(self["webpackChunkclient"]=self["webpackChunkclient"]||[]).push([[998],{95018:function(t,e,n){"use strict";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;var n=[];i.push(n)})),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.Z=/^(539|826)$/.test(n.j)?r:null},73795:function(t,e,n){"use strict";if(n.d(e,{WC:function(){return o},ZP:function(){return a}}),/^(539|826)$/.test(n.j))var r=n(99153);var i=function(t){for(var e=t.nodes,n=void 0===e?[]:e,i=t.edges,o=void 0===i?[]:i,a=[],s={},u=[],l=function t(e){u.push(e),s[e.id]=!0;for(var i=(0,r.Cy)(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])}},l=0;l<i.length;++l)a(l)},c=0;c<n.length;c++){var f=n[c];if(!s[f.id]){l(f);var h=[];while(u.length>0)h.push(u.pop());a.push(h)}}return a},o=function(t){for(var e=t.nodes,n=void 0===e?[]:e,i=t.edges,o=void 0===i?[]:i,a=[],s={},u={},l={},c=[],f=0,h=function t(e){u[e.id]=f,l[e.id]=f,f+=1,a.push(e),s[e.id]=!0;for(var i=(0,r.Cy)(e.id,o,"target").filter((function(t){return n.map((function(t){return t.id})).indexOf(t)>-1})),h=function(r){var o=i[r];if(u[o]||0===u[o])s[o]&&(l[e.id]=Math.min(l[e.id],u[o]));else{var a=n.filter((function(t){return t.id===o}));a.length>0&&t(a[0]),l[e.id]=Math.min(l[e.id],l[o])}},d=0;d<i.length;d++)h(d);if(l[e.id]===u[e.id]){var p=[];while(a.length>0){var g=a.pop();if(s[g.id]=!1,p.push(g),g===e)break}p.length>0&&c.push(p)}},d=0,p=n;d<p.length;d++){var g=p[d];u[g.id]||0===u[g.id]||h(g)}return c};function a(t,e){return e?o(t):i(t)}},33089:function(t,e,n){"use strict";n.d(e,{K_:function(){return o},rU:function(){return i}});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};e.ZP=/^(539|826)$/.test(n.j)?r:null;var i=function(t,e){var n=r(t);return n[e]?r(t)[e].inDegree:0},o=function(t,e){var n=r(t);return n[e]?r(t)[e].outDegree:0}},57777:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return a}}),/^(539|826)$/.test(n.j))var r=n(99153);function i(t){void 0===t&&(t={});var e=t,n=function(){},r=function(){var t={};return function(e){var n=e.next;return!t[n]&&(t[n]=!0,!0)}}();return e.allowTraversal=t.allowTraversal||r,e.enter=t.enter||n,e.leave=t.leave||n,e}function o(t,e,n,i,a){void 0===a&&(a=!0),i.enter({current:e,previous:n});var s=t.edges,u=void 0===s?[]:s;(0,r.Cy)(e,u,a?"target":void 0).forEach((function(r){i.allowTraversal({previous:n,current:e,next:r})&&o(t,r,e,i,a)})),i.leave({current:e,previous:n})}function a(t,e,n,r){void 0===r&&(r=!0),o(t,e,"",i(n),r)}},59217:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(95018);var i=function(t,e){for(var n=(0,r.Z)(t,e),i=[],o=n.length,a=0;a<o;a+=1){i[a]=[];for(var s=0;s<o;s+=1)a===s?i[a][s]=0:0!==n[a][s]&&n[a][s]?i[a][s]=n[a][s]:i[a][s]=1/0}for(var u=0;u<o;u+=1)for(a=0;a<o;a+=1)for(s=0;s<o;s+=1)i[a][s]>i[a][u]+i[u][s]&&(i[a][s]=i[a][u]+i[u][s]);return i};e.Z=/^(539|826)$/.test(n.j)?i:null},37609:function(t,e,n){"use strict";n.r(e),n.d(e,{GADDI:function(){return Zt},Stack:function(){return Ht},breadthFirstSearch:function(){return d},connectedComponent:function(){return p.ZP},cosineSimilarity:function(){return J},default:function(){return Gt},depthFirstSearch:function(){return v.Z},detectAllCycles:function(){return x},detectAllDirectedCycle:function(){return b},detectAllUndirectedCycle:function(){return y},detectCycle:function(){return _},detectDirectedCycle:function(){return $t},dijkstra:function(){return k},findAllPath:function(){return I},findShortestPath:function(){return A},floydWarshall:function(){return O.Z},getAdjMatrix:function(){return r.Z},getDegree:function(){return g.ZP},getInDegree:function(){return g.rU},getNeighbors:function(){return c.Cy},getOutDegree:function(){return g.K_},iLouvain:function(){return G},kCore:function(){return V},kMeans:function(){return q},labelPropagation:function(){return P},louvain:function(){return H},minimumSpanningTree:function(){return lt},nodesCosineSimilarity:function(){return tt},pageRank:function(){return ft}});var r=n(95018),i=function(t,e){return t===e},o=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}(),a=function(){function t(t){void 0===t&&(t=i),this.head=null,this.tail=null,this.compare=t}return t.prototype.prepend=function(t){var e=new o(t,this.head);return this.head=e,this.tail||(this.tail=e),this},t.prototype.append=function(t){var e=new o(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;var e=null;while(this.head&&this.compare(this.head.value,t))e=this.head,this.head=this.head.next;var n=this.head;if(null!==n)while(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;var o=this.head;while(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;var e=this.head;while(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(){var t=[],e=this.head;while(e)t.push(e),e=e.next;return t},t.prototype.reverse=function(){var t=this.head,e=null,n=null;while(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}(),s=a,u=function(){function t(){this.linkedList=new s}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}(),l=u,c=n(99153);function f(t){void 0===t&&(t={});var e=t,n=function(){},r=function(){var t={};return function(e){var n=e.next,r=n;return!t[r]&&(t[r]=!0,!0)}}();return e.allowTraversal=t.allowTraversal||r,e.enter=t.enter||n,e.leave=t.leave||n,e}var h=function(t,e,n,r){void 0===r&&(r=!0);var i=f(n),o=new l,a=t.edges,s=void 0===a?[]:a;o.enqueue(e);var u="",h=function(){var t=o.dequeue();i.enter({current:t,previous:u}),(0,c.Cy)(t,s,r?"target":void 0).forEach((function(e){i.allowTraversal({previous:u,current:t,next:e})&&o.enqueue(e)})),i.leave({current:t,previous:u}),u=t};while(!o.isEmpty())h()},d=h,p=n(73795),g=n(33089),v=n(57777),m=function(t){var e=null,n=t.nodes,r=void 0===n?[]:n,i={},o={},a={},s={};r.forEach((function(t){o[t.id]=t}));var u={enter:function(t){var n=t.current,r=t.previous;if(a[n]){e={};var s=n,u=r;while(u!==n)e[s]=u,s=u,u=i[u];e[s]=u}else a[n]=n,delete o[n],i[n]=r},leave:function(t){var e=t.current;s[e]=e,delete a[e]},allowTraversal:function(t){var n=t.next;return!e&&!s[n]}};while(Object.keys(o).length){var l=Object.keys(o)[0];(0,v.Z)(t,l,u)}return e},y=function(t,e,n){var r,i;void 0===n&&(n=!0);for(var o=[],a=(0,p.ZP)(t,!1),s=0,u=a;s<u.length;s++){var l=u[s];if(l.length){var f=l[0],h=f.id,d=[f],g=(r={},r[h]=f,r),v=(i={},i[h]=new Set,i);while(d.length>0)for(var m=d.pop(),y=m.id,b=(0,c.Cy)(y,t.edges),x=function(r){var i,a=b[r],s=t.nodes.find((function(t){return t.id===a}));if(a===y)o.push((i={},i[a]=m,i));else if(a in v){if(!v[y].has(s)){var u=!0,l=[s,m],c=g[y];while(v[a].size&&!v[a].has(c)){if(l.push(c),c===g[c.id])break;c=g[c.id]}if(l.push(c),e&&n?(u=!1,l.findIndex((function(t){return e.indexOf(t.id)>-1}))>-1&&(u=!0)):e&&!n&&l.findIndex((function(t){return e.indexOf(t.id)>-1}))>-1&&(u=!1),u){for(var f={},h=1;h<l.length;h+=1)f[l[h-1].id]=l[h];l.length&&(f[l[l.length-1].id]=l[0]),o.push(f)}v[a].add(m)}}else g[a]=m,d.push(s),v[a]=new Set([m])},_=0;_<b.length;_+=1)x(_)}}return o},b=function(t,e,n){void 0===n&&(n=!0);for(var r=[],i=new Set,o=[],a=[],s={},u={},l=function(t){var e=[t];while(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())}},f=function t(u,c,f){var h=!1;if(e&&!1===n&&e.indexOf(u.id)>-1)return h;r.push(u),i.add(u);for(var d=f[u.id],p=0;p<d.length;p+=1){var g=s[d[p]];if(g===c){for(var v={},m=1;m<r.length;m+=1)v[r[m-1].id]=r[m];r.length&&(v[r[r.length-1].id]=r[0]),a.push(v),h=!0}else i.has(g)||t(g,c,f)&&(h=!0)}if(h)l(u);else for(p=0;p<d.length;p+=1){g=s[d[p]];o[g.id].has(u)||o[g.id].add(u)}return r.pop(),h},h=t.nodes,d=void 0===h?[]:h,g=0;g<d.length;g+=1){var v=d[g],m=v.id;u[m]=g,s[g]=v}if(e&&n){var y=function(t){var n=e[t];u[d[t].id]=u[n],u[n]=0,s[0]=d.find((function(t){return t.id===n})),s[u[d[t].id]]=d[t]};for(g=0;g<e.length;g++)y(g)}var b=function(r){for(var i,o,s=1/0,l=0;l<r.length;l+=1)for(var f=r[l],h=0;h<f.length;h++){var d=u[f[h].id];d<s&&(s=d,o=l)}var p=r[o],g=[];for(l=0;l<p.length;l+=1){var v=p[l];g[v.id]=[];for(var m=0,y=(0,c.Cy)(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(u[b]):a.push((i={},i[v.id]=v,i))}}return{component:p,adjList:g,minIdx:s}},x=0;while(x<d.length){var _=d.filter((function(t){return u[t.id]>=x})),w=(0,p.WC)({nodes:_,edges:t.edges}).filter((function(t){return t.length>1}));if(0===w.length)break;var S=b(w),E=S.minIdx,T=S.adjList,k=S.component;if(!(k.length>1))break;k.forEach((function(t){o[t.id]=new Set}));var C=s[E];if(e&&n&&-1===e.indexOf(C.id))return a;f(C,C,T),x=E+1}return a},x=function(t,e,n,r){return void 0===r&&(r=!0),e?b(t,n,r):y(t,n,r)},_=m,w=n(97582),S=n(55817),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},T=function(t,e,n,r){var i=t.nodes,o=void 0===i?[]:i,a=t.edges,s=void 0===a?[]:a,u=[],l={},f={},h={};o.forEach((function(t,n){var r=t.id;u.push(r),f[r]=1/0,r===e&&(f[r]=0)}));for(var d=o.length,p=function(t){var e=E(f,o,l),i=e.id;if(l[i]=!0,f[i]===1/0)return"continue";var a=[];a=n?(0,c.g7)(i,s):(0,c.VO)(i,s),a.forEach((function(t){var n=t.target,o=t.source,a=n===i?o:n,s=r&&t[r]?t[r]:1;f[a]>f[e.id]+s?(f[a]=f[e.id]+s,h[a]=[e.id]):f[a]===f[e.id]+s&&h[a].push(e.id)}))},g=0;g<d;g++)p(g);h[e]=[e];var v={};for(var m in f)f[m]!==1/0&&C(e,m,h,v);var y={};for(var m in v)y[m]=v[m][0];return{length:f,path:y,allPath:v}},k=T;function C(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=a[o],u=C(t,s,n,r);if(!u)return;for(var l=0,c=u;l<c.length;l++){var f=c[l];(0,S.isArray)(f)?i.push((0,w.__spreadArray)((0,w.__spreadArray)([],f,!0),[e],!1)):i.push([f,e])}}return r[e]=i,r[e]}var M,A=function(t,e,n,r,i){var o=k(t,e,r,i),a=o.length,s=o.path,u=o.allPath;return{length:a[n],path:s[n],allPath:u[n]}},I=function(t,e,n,r){var i;if(e===n)return[[e]];var o=t.edges,a=void 0===o?[]:o,s=[e],u=(i={},i[e]=!0,i),l=[],f=[],h=r?(0,c.Cy)(e,a,"target"):(0,c.Cy)(e,a);l.push(h);while(s.length>0&&l.length>0){var d=l[l.length-1];if(d.length){var p=d.shift();if(p&&(s.push(p),u[p]=!0,h=r?(0,c.Cy)(p,a,"target"):(0,c.Cy)(p,a),l.push(h.filter((function(t){return!u[t]})))),s[s.length-1]===n){var g=s.map((function(t){return t}));f.push(g);v=s.pop();u[v]=!1,l.pop()}}else{var v=s.pop();u[v]=!1,l.pop()}}return f},O=n(59217),D=function(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===i&&(i=1e3);var o=t.nodes,a=void 0===o?[]:o,s=t.edges,u=void 0===s?[]:s,l={},f={};a.forEach((function(t,e){var n=(0,c.EL)();t.clusterId=n,l[n]={id:n,nodes:[t]},f[t.id]={node:t,idx:e}}));var h=(0,r.Z)(t,e),d=[],p={};h.forEach((function(t,e){var n=0,r=a[e].id;p[r]={},t.forEach((function(t,e){if(t){n+=t;var i=a[e].id;p[r][i]=t}})),d.push(n)}));var g=0,v=function(){var t=!1;if(a.forEach((function(e){var n={};Object.keys(p[e.id]).forEach((function(t){var r=p[e.id][t],i=f[t].node,o=i.clusterId;n[o]||(n[o]=0),n[o]+=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 u=Math.floor(Math.random()*i.length),c=l[i[u]];c.nodes.push(e),e.clusterId=c.id}}})),!t)return"break";g++};while(g<i){var m=v();if("break"===m)break}Object.keys(l).forEach((function(t){var e=l[t];e.nodes&&e.nodes.length||delete l[t]}));var y=[],b={};u.forEach((function(t){var e=t.source,r=t.target,i=t[n]||1,o=f[e].node.clusterId,a=f[r].node.clusterId,s="".concat(o,"---").concat(a);if(b[s])b[s].weight+=i,b[s].count++;else{var u={source:o,target:a,weight:i,count:1};b[s]=u,y.push(u)}}));var x=[];return Object.keys(l).forEach((function(t){x.push(l[t])})),{clusters:x,clusterEdges:y}},P=D,L=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,S.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}(),N=L,R=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"})(M||(M={}));var j=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,S.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]=(0,S.uniq)(r))})),i},F=function(t,e,n){var r=j(t,e,n),i=[];if(!Object.keys(r).length)return i;var o=Object.values(r),a=o.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],o=r[e],s=o.findIndex((function(t){return i===t})),u=[];if(a)u.push(i);else for(var l=0;l<o.length;l++)l===s?u.push(1):u.push(0);n=n.concat(u)})),i[e]=n})),i},B=function(t,e,n,r){void 0===n&&(n=M.EuclideanDistance);var i=0;switch(n){case M.EuclideanDistance:i=new N(t).euclideanDistance(new N(e));break;default:break}return i},z=function(t,e,n,r){for(var i=e.length,o=2*r,a=0,s=0;s<i;s++)for(var u=t[s].clusterId,l=0;l<i;l++){var c=t[l].clusterId;if(u===c){var f=e[s][l]||0,h=n[s]||0,d=n[l]||0;a+=f-h*d/o}}return a*=1/o,a},Z=function(t,e){void 0===t&&(t=[]);for(var n=t.length,r=new N([]),i=0;i<n;i++)r=r.add(new N(e[i]));var o=r.avg(n);o.normalize();var a=0;for(i=0;i<n;i++){var s=new N(e[i]),u=s.squareEuclideanDistance(o);a+=u}var l=[];t.forEach((function(){l.push([])}));for(i=0;i<n;i++){s=new N(e[i]);t[i]["clusterInertial"]=0;for(var c=0;c<n;c++)if(i!==c){var f=new N(e[c]);l[i][c]=s.squareEuclideanDistance(f),t[i]["clusterInertial"]+=l[i][c]}else l[i][c]=0}var h=0,d=2*n*a;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){var v=t[i].clusterInertial*t[c].clusterInertial/Math.pow(d,2)-l[i][c]/d;h+=v}}}return Number(h.toFixed(4))},U=function(t,e,n,i,o,a,s,u,l){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===i&&(i=1e-4),void 0===o&&(o=!1),void 0===a&&(a=void 0),void 0===s&&(s=[]),void 0===u&&(u=["id"]),void 0===l&&(l=1);var c=t.nodes,f=void 0===c?[]:c,h=t.edges,d=void 0===h?[]:h,p=[];if(o){f.forEach((function(t,e){t.properties=t.properties||{},t.originIndex=e}));var g=[];f.every((function(t){return t.hasOwnProperty("nodeType")}))&&(g=Array.from(new Set(f.map((function(t){return t.nodeType})))),f.forEach((function(t){t.properties.nodeType=g.findIndex((function(e){return e===t.nodeType}))})));var v=R(f,a);p=F(v,s,u)}var m=1,y={},b={};f.forEach((function(t,e){var n=String(m++);t.clusterId=n,y[n]={id:n,nodes:[t]},b[t.id]={node:t,idx:e}}));var x=(0,r.Z)(t,e),_=[],w={},E=0;x.forEach((function(t,e){var n=0,r=f[e].id;w[r]={},t.forEach((function(t,e){if(t){n+=t;var i=f[e].id;w[r][i]=t,E+=t}})),_.push(n)})),E/=2;var T=1/0,k=1/0,C=0,M=[],A={};while(1){T=o&&f.every((function(t){return t.hasOwnProperty("properties")}))?z(f,x,_,E)+Z(f,p)*l:z(f,x,_,E),0===C&&(k=T,M=f,A=y);var I=T>0&&T>k&&T-k<i;if(T>k&&(M=f.map((function(t){return{node:t,clusterId:t.clusterId}})),A=(0,S.clone)(y),k=T),I||C>100)break;C++,Object.keys(y).forEach((function(t){var e=0;d.forEach((function(r){var i=r.source,o=r.target,a=b[i].node.clusterId,s=b[o].node.clusterId;(a===t&&s!==t||s===t&&a!==t)&&(e+=r[n]||1)})),y[t].sumTot=e})),f.forEach((function(t,e){var r,i=y[t.clusterId],a=0,s=_[e]/(2*E),u=0,c=i.nodes;c.forEach((function(t){var n=b[t.id].idx;u+=x[e][n]||0}));var f=u-i.sumTot*s,h=c.filter((function(e){return e.id!==t.id})),g=[];h.forEach((function(t,e){g[e]=p[t.originIndex]}));var v=Z(h,p)*l,m=w[t.id];if(Object.keys(m).forEach((function(n){var i=b[n].node,u=i.clusterId;if(u!==t.clusterId){var c=y[u],h=c.nodes;if(h&&h.length){var d=0;h.forEach((function(t){var n=b[t.id].idx;d+=x[e][n]||0}));var g=d-c.sumTot*s,m=h.concat([t]),_=[];m.forEach((function(t,e){_[e]=p[t.originIndex]}));var w=Z(m,p)*l,S=g-f;o&&(S=g+w-(f+v)),S>a&&(a=S,r=c)}}})),a>0){r.nodes.push(t);var S=t.clusterId;t.clusterId=r.id;var T=i.nodes.indexOf(t);i.nodes.splice(T,1);var k=0,C=0;d.forEach((function(t){var e=t.source,i=t.target,o=b[e].node.clusterId,a=b[i].node.clusterId;(o===r.id&&a!==r.id||a===r.id&&o!==r.id)&&(k+=t[n]||1),(o===S&&a!==S||a===S&&o!==S)&&(C+=t[n]||1)})),r.sumTot=k,i.sumTot=C}}))}var O={},D=0;Object.keys(A).forEach((function(t){var e=A[t];if(e.nodes&&e.nodes.length){var n=String(D+1);n!==t&&(e.id=n,e.nodes=e.nodes.map((function(t){return{id:t.id,clusterId:n}})),A[n]=e,O[t]=n,delete A[t],D++)}else delete A[t]})),M.forEach((function(t){var e=t.node,n=t.clusterId;e&&(e.clusterId=n,e.clusterId&&O[e.clusterId]&&(e.clusterId=O[e.clusterId]))}));var P=[],L={};d.forEach((function(t){var e=t.source,r=t.target,i=t[n]||1,o=b[e].node.clusterId,a=b[r].node.clusterId;if(o&&a){var s="".concat(o,"---").concat(a);if(L[s])L[s].weight+=i,L[s].count++;else{var u={source:o,target:a,weight:i,count:1};L[s]=u,P.push(u)}}}));var N=[];return Object.keys(A).forEach((function(t){N.push(A[t])})),{clusters:N,clusterEdges:P}},H=U,$=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),H(t,e,n,r,!0,i,o,a,s)},G=$,W=function(t,e){var n;void 0===e&&(e=1);var r=(0,S.clone)(t),i=r.nodes,o=void 0===i?[]:i,a=r.edges,s=void 0===a?[]:a,u=function(){var t=(0,g.ZP)({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)}))};while(1){var l=u();if("break"===l)break}return{nodes:o,edges:s}},V=W,Y=function(t,e,n){var r=[];switch(t){case M.EuclideanDistance:r=e[n];break;default:r=[];break}return r},X=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=M.EuclideanDistance);var a=t.nodes,s=void 0===a?[]:a,u=t.edges,l=void 0===u?[]:u,c={clusters:[{id:"0",nodes:s}],clusterEdges:[]};if(o===M.EuclideanDistance&&!s.every((function(t){return t.hasOwnProperty(n)})))return c;var f=[],h=[];if(o===M.EuclideanDistance&&(f=R(s,n),h=F(f,r,i)),!h.length)return c;for(var d=(0,S.uniq)(h.map((function(t){return t.join("")}))),p=Math.min(e,s.length,d.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 M.EuclideanDistance:v[g]=h[b];break;default:v[g]=[];break}m.push(b),y[g]=[s[b]],s[b].clusterId=String(g)}else{for(var x=-1/0,_=0,w=function(t){if(!m.includes(t)){for(var e=0,n=0;n<v.length;n++){var r=0;switch(o){case M.EuclideanDistance:r=B(h[s[t].originIndex],v[n],o);break;default:break}e+=r}var i=e/v.length;i>x&&!v.find((function(e){return(0,S.isEqual)(e,Y(o,h,s[t].originIndex))}))&&(x=i,_=t)}},E=0;E<s.length;E++)w(E);v[g]=Y(o,h,_),m.push(_),y[g]=[s[_]],s[_].clusterId=String(g)}var T=0;while(1){for(g=0;g<s.length;g++){var k=0,C=1/0;if(0!==T||!m.includes(g)){for(var A=0;A<v.length;A++){var I=0;switch(o){case M.EuclideanDistance:I=B(h[g],v[A],o);break;default:break}I<C&&(C=I,k=A)}if(void 0!==s[g].clusterId)for(var O=y[Number(s[g].clusterId)].length-1;O>=0;O--)y[Number(s[g].clusterId)][O].id===s[g].id&&y[Number(s[g].clusterId)].splice(O,1);s[g].clusterId=String(k),y[k].push(s[g])}}var D=!1;for(g=0;g<y.length;g++){var P=y[g],L=new N([]);for(A=0;A<P.length;A++)L=L.add(new N(h[P[A].originIndex]));var j=L.avg(P.length);j.equal(new N(v[g]))||(D=!0,v[g]=j.getArr())}if(T++,s.every((function(t){return void 0!==t.clusterId}))&&D||T>=1e3)break}var z=[],Z={};return l.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,u="".concat(o,"---").concat(a);if(Z[u])Z[u].count++;else{var l={source:o,target:a,count:1};Z[u]=l,z.push(l)}})),{clusters:y,clusterEdges:z}},q=X,K=function(t,e){var n=new N(e),r=n.norm2(),i=new N(t),o=i.norm2(),a=n.dot(i),s=r*o,u=s?a/s:0;return u},J=K,Q=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=(0,S.clone)(t.filter((function(t){return t.id!==e.id}))),a=t.findIndex((function(t){return t.id===e.id})),s=R(t,n),u=F(s,r,i),l=u[a],c=[];return o.forEach((function(t,n){if(t.id!==e.id){var r=u[n],i=J(r,l);c.push(i),t.cosineSimilarity=i}})),o.sort((function(t,e){return e.cosineSimilarity-t.cosineSimilarity})),{allCosineSimilarity:c,similarNodes:o}},tt=Q,et=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){while(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}(),nt=et,rt=function(t,e){return t-e},it=function(){function t(t){void 0===t&&(t=rt),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){var e=this.getParent(t);while(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=it,at=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],u=new Set;u.add(s);var l=function(t,n){return e?t.weight-n.weight:0},f=new ot(l);(0,c.VO)(s.id,a).forEach((function(t){f.insert(t)}));while(!f.isEmpty()){var h=f.delMin(),d=h.source,p=h.target;u.has(d)&&u.has(p)||(n.push(h),u.has(d)||(u.add(d),(0,c.VO)(d,a).forEach((function(t){f.insert(t)}))),u.has(p)||(u.add(p),(0,c.VO)(p,a).forEach((function(t){f.insert(t)}))))}return n},st=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}));var u=new nt(i.map((function(t){return t.id})));while(s.length>0){var l=s.shift(),c=l.source,f=l.target;u.connected(c,f)||(n.push(l),u.union(c,f))}return n},ut=function(t,e,n){var r={prim:at,kruskal:st};return n?r[n](t,e):st(t,e)},lt=ut,ct=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,u=void 0===s?[]:s,l=t.edges,f=void 0===l?[]:l,h=u.length,d={},p={},v=0;v<h;++v){var m=u[v],y=m.id;d[y]=1/h,p[y]=1/h}var b=(0,g.ZP)(t);while(a>0&&i>e){o=0;for(v=0;v<h;++v){m=u[v],y=m.id;if(r=0,0===b[m.id].inDegree)d[y]=0;else{for(var x=(0,c.Cy)(y,f,"source"),_=0;_<x.length;++_){var w=x[_],S=b[w].outDegree;S>0&&(r+=p[w]/S)}d[y]=n*r,o+=d[y]}}o=(1-o)/h,i=0;for(v=0;v<h;++v){m=u[v],y=m.id;r=d[y]+o,i+=Math.abs(r-p[y]),p[y]=r}a-=1}return p},ft=ct,ht=-1,dt=-1,pt="-1",gt="-1",vt=-1,mt=function(){function t(t,e,n,r){void 0===t&&(t=ht),void 0===e&&(e=dt),void 0===n&&(n=dt),void 0===r&&(r=pt),this.id=t,this.from=e,this.to=n,this.label=r}return t}(),yt=function(){function t(t,e){void 0===t&&(t=dt),void 0===e&&(e=gt),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}(),bt=function(){function t(t,e,n){void 0===t&&(t=dt),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 yt(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 mt(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 mt(t,n,e,r);this.nodeMap[n].addEdge(o),this.edgeLabelMap[r].push(o)}}},t}(),xt=function(){function t(t,e,n,r,i){this.fromNode=t,this.toNode=e,this.nodeEdgeNodeLabel={nodeLabel1:n||gt,edgeLabel:r||pt,nodeLabel2:i||gt}}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}(),_t=function(){function t(){this.rmpath=[],this.dfsEdgeList=[]}return t.prototype.equalTo=function(t){var e=this.dfsEdgeList.length,n=t.length;if(e!==n)return!1;for(var r=0;r<e;r++)if(this.dfsEdgeList[r]!==t[r])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 xt(t,e,n,r,i)),this.dfsEdgeList},t.prototype.toGraph=function(t,e){void 0===t&&(t=vt),void 0===e&&(e=!1);var n=new bt(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!==gt&&n.addNode(e,o),s!==gt&&n.addNode(r,s),o!==gt&&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,n=e-1;n>=0;n--){var r=this.dfsEdgeList[n],i=r.fromNode,o=r.toNode;i<o&&(void 0===t||o===t)&&(this.rmpath.push(n),t=i)}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}(),wt=function(){function t(t){if(this.his={},this.nodesUsed={},this.edgesUsed={},this.edges=[],t){while(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}(),St=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,u=t.top,l=void 0===u?10:u,c=t.directed,f=void 0!==c&&c,h=t.verbose,d=void 0!==h&&h;this.graphs=e,this.dfsCode=new _t,this.support=0,this.frequentSize1Subgraphs=[],this.frequentSubgraphs=[],this.minSupport=r,this.top=l,this.directed=f,this.counter=0,this.maxNodeNum=s,this.minNodeNum=o,this.verbose=d,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],a=o.edges,s=a.length,u=0;u<s;u++){var l=a[u];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,u=0;u<s;u++){var l=a[u],c=t.nodeMap[l.to];n<=c.label&&!r.hasNode(c)&&i.push(l)}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],u=s.edges,l=u.length,c=0;c<l;c++){var f=u[c],h=o[f.to].label;e.to===f.to||n>h||r.hasNode(o[f.to])||(e.label<f.label||e.label===f.label&&a<=h)&&i.push(f)}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(vt,n),i=r.nodeMap,o=new _t,a={};r.nodes.forEach((function(e){var n=t.findForwardRootEdges(r,e);n.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 xt(0,1,s.nodeLabel1,s.edgeLabel,s.nodeLabel2));var u=function a(s){for(var u=o.buildRmpath(),l=o.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,c=o.dfsEdgeList[u[0]].toNode,f={},h=!1,d=0,p=n?-1:0,g=function(e){if(h)return"break";s.forEach((function(n){var i=new wt(n),a=t.findBackwardEdge(r,i.edges[u[e]],i.edges[u[0]],i);a&&(f[a.label]||(f[a.label]={projected:[],edgeLabel:a.label}),f[a.label].projected.push({graphId:r.id,edge:f,preNode:n}),d=o.dfsEdgeList[u[e]].fromNode,h=!0)}))},v=u.length-1;v>p;v--){var m=g(v);if("break"===m)break}if(h){var y=t.findMinLabel(f);o.dfsEdgeList.push(new xt(c,d,gt,y.edgeLabel,gt));var b=o.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[b]===o.dfsEdgeList[b]&&a(f[y.edgeLabel].projected)}var x={};h=!1;var _=0;s.forEach((function(e){var n=new wt(e),o=t.findForwardPureEdges(r,n.edges[u[0]],l,n);o.length>0&&(h=!0,_=c,o.forEach((function(t){var n="".concat(t.label,"-").concat(i[t.to].label);x[n]||(x[n]={projected:[],edgeLabel:t.label,nodeLabel2:i[t.to].label}),x[n].projected.push({graphId:r.id,edge:t,preNode:e})})))}));var w=u.length,S=function(e){if(h)return"break";var n=u[e];s.forEach((function(e){var a=new wt(e),s=t.findForwardRmpathEdges(r,a.edges[n],l,a);s.length>0&&(h=!0,_=o.dfsEdgeList[n].fromNode,s.forEach((function(t){var n="".concat(t.label,"-").concat(i[t.to].label);x[n]||(x[n]={projected:[],edgeLabel:t.label,nodeLabel2:i[t.to].label}),x[n].projected.push({graphId:r.id,edge:t,preNode:e})})))}))};for(v=0;v<w;v++){var E=S(v);if("break"===E)break}if(!h)return!0;var T=t.findMinLabel(x);o.dfsEdgeList.push(new xt(_,c+1,gt,T.edgeLabel,T.nodeLabel2));var k=o.dfsEdgeList.length-1;return e.dfsEdgeList[k]===o.dfsEdgeList[k]&&a(x["".concat(T.edgeLabel,"-").concat(T.nodeLabel2)].projected)},l="".concat(s.nodeLabel1,"-").concat(s.edgeLabel,"-").concat(s.nodeLabel2);return u(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((0,S.clone)(t))}},t.prototype.subGraphMining=function(t){var e=this,n=this.getSupport(t);if(!(n<this.minSupport)&&this.isMin()){this.report();var r=this.dfsCode.getNodeNum(),i=this.dfsCode.buildRmpath(),o=this.dfsCode.dfsEdgeList[i[0]].toNode,a=this.dfsCode.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,s={},u={};t.forEach((function(t){for(var n=e.graphs[t.graphId],l=n.nodeMap,c=new wt(t),f=i.length-1;f>=0;f--){var h=e.findBackwardEdge(n,c.edges[i[f]],c.edges[i[0]],c);if(h){var d="".concat(e.dfsCode.dfsEdgeList[i[f]].fromNode,"-").concat(h.label);u[d]||(u[d]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[i[f]].fromNode,edgeLabel:h.label}),u[d].projected.push({graphId:t.graphId,edge:h,preNode:t})}}if(!(r>=e.maxNodeNum)){var p=e.findForwardPureEdges(n,c.edges[i[0]],a,c);p.forEach((function(e){var n="".concat(o,"-").concat(e.label,"-").concat(l[e.to].label);s[n]||(s[n]={projected:[],fromNodeId:o,edgeLabel:e.label,nodeLabel2:l[e.to].label}),s[n].projected.push({graphId:t.graphId,edge:e,preNode:t})}));var g=function(r){var o=e.findForwardRmpathEdges(n,c.edges[i[r]],a,c);o.forEach((function(n){var o="".concat(e.dfsCode.dfsEdgeList[i[r]].fromNode,"-").concat(n.label,"-").concat(l[n.to].label);s[o]||(s[o]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[i[r]].fromNode,edgeLabel:n.label,nodeLabel2:l[n.to].label}),s[o].projected.push({graphId:t.graphId,edge:n,preNode:t})}))};for(f=0;f<i.length;f++)g(f)}})),Object.keys(u).forEach((function(t){var n=u[t],r=n.toNodeId,i=n.edgeLabel;e.dfsCode.dfsEdgeList.push(new xt(o,r,"-1",i,"-1")),e.subGraphMining(u[t].projected),e.dfsCode.dfsEdgeList.pop()})),Object.keys(s).forEach((function(t){var n=s[t],r=n.fromNodeId,i=n.edgeLabel,a=n.nodeLabel2;e.dfsCode.dfsEdgeList.push(new xt(r,o+1,gt,i,a)),e.subGraphMining(s[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],u=r.nodeMap;r.nodes.forEach((function(t,r){var l=t.label,c="".concat(n,"-").concat(l);if(!a[c]){var f=i[l]||0;f++,i[l]=f}a[c]={graphKey:n,label:l},t.edges.forEach((function(t){var r=l,i=u[t.to].label;if(!e&&r>i){var a=i;i=r,r=a}var c=t.label,f="".concat(n,"-").concat(r,"-").concat(c,"-").concat(i),h="".concat(r,"-").concat(c,"-").concat(i);if(!o[h]){var d=o[h]||0;d++,o[h]=d}s[f]={graphId:n,nodeLabel1:r,edgeLabel:c,nodeLabel2:i}}))}))})),Object.keys(i).forEach((function(t){var e=i[t];if(!(e<n)){var o={nodes:[],edges:[]};o.nodes.push({id:"0",label:t}),r.push(o)}})),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){var a=t.findForwardRootEdges(i,e);a.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 xt(0,1,o,a,s)),t.subGraphMining(i),t.dfsCode.dfsEdgeList.pop()}))}},t}(),Et=function(t,e,n,r){var i={};return Object.keys(t).forEach((function(o,a){var s=t[o],u=new bt(a,!0,e),l={};s.nodes.forEach((function(t,e){u.addNode(e,t[n]),l[t.id]=e})),s.edges.forEach((function(t,e){var n=l[t.source],i=l[t.target];u.addEdge(-1,n,i,t[r])})),u&&u.getNodeNum()&&(i[u.id]=u)})),i},Tt=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)},n[e]=t.label,n))})),t.edges.forEach((function(t){var e;i.edges.push((e={source:"".concat(t.from),target:"".concat(t.to)},e[n]=t.label,e))})),r.push(i)})),r},kt="cluster",Ct=function(t){var e=t.graphs,n=t.directed,r=void 0!==n&&n,i=t.nodeLabelProp,o=void 0===i?kt:i,a=t.edgeLabelProp,s=void 0===a?kt:a,u=Et(e,r,o,s),l=t.minSupport,c=t.maxNodeNum,f=t.minNodeNum,h=t.verbose,d=t.top,p={graphs:u,minSupport:l,maxNodeNum:c,minNodeNum:f,top:d,verbose:h,directed:r},g=new St(p);g.run();var v=Tt(g.frequentSubgraphs,o,s);return v},Mt=Ct,At=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(It(o,t,e,n,r))})),i},It=function(t,e,n,r,i){var o=[n],a=[],s={};return e.forEach((function(e,u){if(e<=i&&n!==u){o.push(u),a.push(t[u]);var l=t[u][r];s[l]?(s[l].count++,s[l].dists.push(e)):s[l]={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}},Ot=function(t,e,n,r,i){var o=Math.ceil(n/e),a={},s=0;return r.forEach((function(t,r){var u=0,l=0,c=t.nodeIdxs,f=t.neighborNum-1;while(u<o){var h=c[1+Math.floor(Math.random()*f)],d=0;while(a["".concat(r,"-").concat(h)]||a["".concat(h,"-").concat(r)])if(h=Math.floor(Math.random()*e),d++,d>2*e)break;if(d<2*e&&(a["".concat(r,"-").concat(h)]={start:r,end:h,distance:i[r][h]},u++,s++,s>=n))return a;if(l++,l>2*e)break}if(u<o){var p=o-u;o=(o+p)/(e-r-1)}})),a},Dt=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 u=t[o],l=null===(a=e[u.start])||void 0===a?void 0:a.nodeIdxs,c=null===(s=e[u.end])||void 0===s?void 0:s.nodeIdxs;if(l&&c){var f=new Set(c),h=l.filter((function(t){return f.has(t)}));if(h&&h.length){for(var d={},p=h.length,g=0;g<p;g++){var v=i[h[g]];r[o].nodes.push(v),d[v.id]=!0}n.edges.forEach((function(t){d[t.source]&&d[t.target]&&r[o].edges.push(t)}))}}}})),r},Pt=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],u=null===e||void 0===e?void 0:e.nodes[0][n],l=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===u&&o===l||i===l&&o===u)&&s++})),s)},Lt=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]})),a=10,s=[];o.forEach((function(t,e){s[e%a]||(s[e%a]={graphs:[],totalCount:0,aveCount:0}),s[e%a].graphs.push(t),s[e%a].totalCount+=n[t]}));var u=0,l=[];s.forEach((function(t){var e=t.totalCount/t.graphs.length;t.aveCount=e,l.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]))}))})),r/=i*(i-1)/2,u+=r})),u/=s.length;var c=0;l.forEach((function(t,e){l.forEach((function(n,r){e!==r&&(c+=Math.abs(t-n))})),c/=l.length*(l.length-1)/2}));var f=c-u;r<f&&(r=f,i=e)},a=0;a<e;a++)o(a);return{structure:n[i],structureCountMap:t[i]}},Nt=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}},Rt=function(t,e,n){var r={},i={};return t.forEach((function(t,o){r["".concat(c.EL)]={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 u=n[t.target];u&&(u.degree++,u.inDegree++)})),{edgeMap:r,edgeLabelMap:i}},jt=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,u=a;u<r;u++)if(o!==u){var l=t[u].id,c=e[u];i["".concat(s,"-").concat(l)]=c,n||(i["".concat(l,"-").concat(s)]=c)}})),i},Ft=function(t,e,n,r,i,o,a,s,u,l,c){var f,h="".concat(e.id,"-").concat(n.id);if(l&&l[h])return l[h];var d=c?c[h]:void 0;if(!d){var p=(f={},f[h]={start:r[e.id].idx,end:r[n.id].idx,distance:i},f);c=Dt(p,o,t,c),d=c[h]}return Pt(d,a,s,u)},Bt=function(t,e,n,r){var i,o,a,s=null===(i=t[e])||void 0===i?void 0:i.degree,u=null===(o=t[e])||void 0===o?void 0:o.inDegree,l=null===(a=t[e])||void 0===a?void 0:a.outDegree;return void 0===t[e]&&(s=1/0,u=1/0,l=1/0,r[e].forEach((function(t){var e=n[t.id].degree;s>e&&(s=e);var r=n[t.id].inDegree;u>r&&(u=r);var i=n[t.id].outDegree;l>i&&(l=i)})),t[e]={degree:s,inDegree:u,outDegree:l}),{minPatternNodeLabelDegree:s,minPatternNodeLabelInDegree:u,minPatternNodeLabelOutDegree:l}},zt=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 u=t.nodes.length;if(u){var l=(0,O.Z)(t,n),c=(0,O.Z)(e,n),f=jt(t.nodes,l,n),h=jt(e.nodes,c,n),d=Nt(t.nodes,o),p=d.nodeMap,g=d.nodeLabelMap,v=Nt(e.nodes,o),m=v.nodeMap,y=v.nodeLabelMap;Rt(t.edges,a,p);var b=Rt(e.edges,a,m).edgeLabelMap,x=[];null===c||void 0===c||c.forEach((function(t){x=x.concat(t)})),i||(i=Math.max.apply(Math,(0,w.__spreadArray)((0,w.__spreadArray)([],x,!1),[2],!1))),r||(r=i);var _=At(t,l,o,r),S=At(e,c,o,r),E=Math.min(100,u*(u-1)/2),T=Ot(r,u,E,_,l),C=Dt(T,_,t),M=10,A=1,I=1,D=4,P={graphs:C,nodeLabelProp:o,edgeLabelProp:a,minSupport:A,minNodeNum:I,maxNodeNum:D,directed:n},L=Mt(P).slice(0,M),N=L.length,R=[];L.forEach((function(t,e){R[e]={},Object.keys(C).forEach((function(n){var r=C[n],i=Pt(r,t,o,a);R[e][n]=i}))}));var j=Lt(R,N,L),F=j.structure,B=j.structureCountMap,z=e.nodes[0],Z=[],U=null===(s=e.nodes[0])||void 0===s?void 0:s[o],H=-1/0;e.nodes.forEach((function(t){var e=t[o],n=g[e];(null===n||void 0===n?void 0:n.length)>H&&(H=n.length,Z=n,U=e,z=t)}));var $={},G={},W={},V={},Y={},X={};Object.keys(y).forEach((function(r,i){Y[r]=[],n&&(X[r]=[]);var s=-1/0,u=y[r],l={};u.forEach((function(t){var e=h["".concat(z.id,"-").concat(t.id)];if(e&&Y[r].push(e),s<e&&(s=e),l["".concat(z.id,"-").concat(t.id)]={start:0,end:m[t.id].idx,distance:e},n){var i=h["".concat(t.id,"-").concat(z.id)];i&&X[r].push(i)}})),Y[r]=Y[r].sort((function(t,e){return t-e})),n&&(X[r]=X[r].sort((function(t,e){return t-e}))),G=Dt(l,S,e,G);var c=[];if(Object.keys(l).forEach((function(t){if(W[t])c.push(W[t]);else{var e=G[t];W[t]=Pt(e,F,o,a),c.push(W[t])}})),c=c.sort((function(t,e){return e-t})),V["".concat(z.id,"-").concat(r)]=c,r!==U)for(var d=(null===Z||void 0===Z?void 0:Z.length)||0,g=function(e){var n=Z[e],i=_[p[n.id].idx],s=i.nodeLabelCountMap[r],u=y[r].length;if(!s||s.count<u)return Z.splice(e,1),"continue";for(var l=!1,h=0;h<u;h++)if(s.dists[h]>Y[r][h]){l=!0;break}if(l)return Z.splice(e,1),"continue";var d={};i.neighbors.forEach((function(t){var e=f["".concat(n.id,"-").concat(t.id)];d["".concat(n.id,"-").concat(t.id)]={start:p[n.id].idx,end:p[t.id].idx,distance:e}})),C=Dt(d,_,t,C);var g=[];Object.keys(d).forEach((function(t){if(B[t])g.push(B[t]);else{var e=C[t];B[t]=Pt(e,F,o,a),g.push(B[t])}})),g=g.sort((function(t,e){return e-t}));var v=!1;for(h=0;h<u;h++)if(g[h]<c[h]){v=!0;break}return v?(Z.splice(e,1),"continue"):void 0},v=d-1;v>=0;v--)g(v)}));var q=[];null===Z||void 0===Z||Z.forEach((function(r){for(var s=p[r.id].idx,u=It(t.nodes,l[s],s,o,i),c=u.neighbors,h=c.length,d=!1,g=h-1;g>=0;g--){if(c.length+1<e.nodes.length)return void(d=!0);var v=c[g],b=v[o];if(y[b]&&y[b].length)if(Y[b]&&Y[b].length){var x="".concat(r.id,"-").concat(v.id),w=f[x],S=Y[b].length-1,E=Y[b][S];if(w>E)c.splice(g,1);else{if(n){var T="".concat(v.id,"-").concat(r.id),k=f[T];S=X[b].length-1;var M=X[b][S];if(k>M){c.splice(g,1);continue}}var A=B[x]?B[x]:Ft(t,r,v,p,w,_,F,o,a,B,C),I="".concat(z.id,"-").concat(b),O=V[I][V[I].length-1];if(A<O)c.splice(g,1);else{var D=Bt($,b,m,y),P=D.minPatternNodeLabelDegree;D.minPatternNodeLabelInDegree,D.minPatternNodeLabelOutDegree;p[v.id].degree<P&&c.splice(g,1)}}}else c.splice(g,1);else c.splice(g,1)}d||q.push({nodes:[r].concat(c)})}));var K=k(e,z.id,!1).length,J={};n?(Object.keys(K).forEach((function(t){var e=m[t].node[o];J[e]?J[e].push(K[t]):J[e]=[K[t]]})),Object.keys(J).forEach((function(t){J[t].sort((function(t,e){return t-e}))}))):J=Y;for(var Q=q.length,tt=function(r){var i=q[r],s=i.nodes[0],u={},l={};i.nodes.forEach((function(t,e){l[t.id]={idx:e,node:t,degree:0,inDegree:0,outDegree:0};var n=t[o];u[n]?u[n]++:u[n]=1}));var c=[],f={};t.edges.forEach((function(t){l[t.source]&&l[t.target]&&(c.push(t),f[t[a]]?f[t[a]]++:f[t[a]]=1,l[t.source].degree++,l[t.target].degree++,l[t.source].outDegree++,l[t.target].inDegree++)}));for(var h=Object.keys(b).length,d=!1,g=0;g<h;g++){var v=Object.keys(b)[g];if(!f[v]||f[v]<b[v].length){d=!0;break}}if(d)return q.splice(r,1),"continue";var x=c.length;if(x<e.edges.length)return q.splice(r,1),"break";var _=!1,w=function(t){var e=c[t],r=e[a],i=b[r];if(!i||!i.length)return f[r]--,i&&f[r]<i.length?(_=!0,"break"):(c.splice(t,1),l[e.source].degree--,l[e.target].degree--,l[e.source].outDegree--,l[e.target].inDegree--,"continue");var s=l[e.source].node[o],u=l[e.target].node[o],h=!1;return i.forEach((function(t){var e=m[t.source].node,r=m[t.target].node;e[o]===s&&r[o]===u&&(h=!0),n||e[o]!==u||r[o]!==s||(h=!0)})),h?void 0:(f[r]--,i&&f[r]<i.length?(_=!0,"break"):(c.splice(t,1),l[e.source].degree--,l[e.target].degree--,l[e.source].outDegree--,l[e.target].inDegree--,"continue"))};for(g=x-1;g>=0;g--){var S=w(g);if("break"===S)break}if(_)return q.splice(r,1),"continue";i.edges=c;var E=k(i,i.nodes[0].id,!1).length;if(Object.keys(E).reverse().forEach((function(t){if(t!==i.nodes[0].id&&!_){if(E[t]===1/0){var e=l[t].node[o];if(u[e]--,u[e]<y[e].length)return void(_=!0);var n=i.nodes.indexOf(l[t].node);return i.nodes.splice(n,1),void(l[t]=void 0)}var r=p[t].node[o];if(!J[r]||!J[r].length||E[t]>J[r][J[r].length-1]){e=l[t].node[o];if(u[e]--,u[e]<y[e].length)return void(_=!0);n=i.nodes.indexOf(l[t].node);i.nodes.splice(n,1),l[t]=void 0}}})),_)return q.splice(r,1),"continue";var T=!0,C=0;while(T&&!_){T=!1;var M=n?l[s.id].degree<m[z.id].degree||l[s.id].inDegree<m[z.id].inDegree||l[s.id].outDegree<m[z.id].outDegree:l[s.id].degree<m[z.id].degree;if(M){_=!0;break}if(u[s[o]]<y[s[o]].length){_=!0;break}for(var A=i.nodes.length,I=A-1;I>=0;I--){var O=i.nodes[I],D=l[O.id].degree,P=l[O.id].inDegree,L=l[O.id].outDegree,N=O[o],R=Bt($,N,m,y),j=R.minPatternNodeLabelDegree,F=R.minPatternNodeLabelInDegree,B=R.minPatternNodeLabelOutDegree,Z=n?D<j||P<F||L<B:D<j;if(Z){if(u[O[o]]--,u[O[o]]<y[O[o]].length){_=!0;break}i.nodes.splice(I,1),l[O.id]=void 0,T=!0}}if(_||!T&&0!==C)break;x=c.length;for(var U=x-1;U>=0;U--){var H=c[U];if(!l[H.source]||!l[H.target]){c.splice(U,1);var G=H[a];if(f[G]--,l[H.source]&&(l[H.source].degree--,l[H.source].outDegree--),l[H.target]&&(l[H.target].degree--,l[H.target].inDegree--),b[G]&&f[G]<b[G].length){_=!0;break}T=!0}}C++}return _||_||i.nodes.length<e.nodes.length||c.length<e.edges.length?(q.splice(r,1),"continue"):void 0},et=Q-1;et>=0;et--){var nt=tt(et);if("break"===nt)break}var rt=q.length,it=function(t){var e=q[t],n={};e.edges.forEach((function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);n[e]?n[e]++:n[e]=1}));for(var r=function(t){var e=q[t],r={};e.edges.forEach((function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);r[e]?r[e]++:r[e]=1}));var i=!0;Object.keys(r).length!==Object.keys(n).length?i=!1:Object.keys(n).forEach((function(t){r[t]!==n[t]&&(i=!1)})),i&&q.splice(t,1)},i=rt-1;i>t;i--)r(i);rt=q.length};for(et=0;et<=rt-1;et++)it(et);return q}}},Zt=zt,Ut=function(){function t(t){void 0===t&&(t=10),this.linkedList=new s,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(){while(!this.isEmpty())this.pop()},t}(),Ht=Ut,$t=_,Gt={getAdjMatrix:r.Z,breadthFirstSearch:d,connectedComponent:p.ZP,getDegree:g.ZP,getInDegree:g.rU,getOutDegree:g.K_,detectCycle:_,detectDirectedCycle:$t,detectAllCycles:x,detectAllDirectedCycle:b,detectAllUndirectedCycle:y,depthFirstSearch:v.Z,dijkstra:k,findAllPath:I,findShortestPath:A,floydWarshall:O.Z,labelPropagation:P,louvain:H,iLouvain:G,kCore:V,kMeans:q,cosineSimilarity:J,nodesCosineSimilarity:tt,minimumSpanningTree:lt,pageRank:ft,getNeighbors:c.Cy,Stack:Ht,GADDI:Zt}},99153:function(t,e,n){"use strict";n.d(e,{Cy:function(){return r},EL:function(){return a},VO:function(){return o},g7:function(){return i}});var r=function(t,e,n){void 0===e&&(e=[]);var r=e.filter((function(e){return e.source===t||e.target===t}));if("target"===n){var i=function(e){return e.source===t};return r.filter(i).map((function(t){return t.target}))}if("source"===n){var o=function(e){return e.target===t};return r.filter(o).map((function(t){return t.source}))}var a=function(e){return e.source===t?e.target:e.source};return r.map(a)},i=function(t,e){return e.filter((function(e){return e.source===t}))},o=function(t,e){return e.filter((function(e){return e.source===t||e.target===t}))},a=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)}},62238:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var n=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;var n=[];i.push(n)})),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},r=n;e["default"]=r},10369: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(30485),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},83764:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var r=o(n(93026)),i=n(70643);function o(t){return t&&t.__esModule?t:{default:t}}function a(t){void 0===t&&(t={});var e=t,n=function(){},r=function(){var t={};return function(e){var n=e.next,r=n;return!t[r]&&(t[r]=!0,!0)}}();return e.allowTraversal=t.allowTraversal||r,e.enter=t.enter||n,e.leave=t.leave||n,e}var s=function(t,e,n,o){void 0===o&&(o=!0);var s=a(n),u=new r.default,l=t.edges,c=void 0===l?[]:l;u.enqueue(e);var f="",h=function(){var t=u.dequeue();s.enter({current:t,previous:f}),(0,i.getNeighbors)(t,c,o?"target":void 0).forEach((function(e){s.allowTraversal({previous:f,current:t,next:e})&&u.enqueue(e)})),s.leave({current:t,previous:f}),f=t};while(!u.isEmpty())h()},u=s;e["default"]=u},59527:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=a,e.detectStrongConnectComponents=e.detectConnectedComponents=void 0;var r=n(70643),i=function(t){for(var e=t.nodes,n=void 0===e?[]:e,i=t.edges,o=void 0===i?[]:i,a=[],s={},u=[],l=function t(e){u.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])}},l=0;l<i.length;++l)a(l)},c=0;c<n.length;c++){var f=n[c];if(!s[f.id]){l(f);var h=[];while(u.length>0)h.push(u.pop());a.push(h)}}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={},u={},l={},c=[],f=0,h=function t(e){u[e.id]=f,l[e.id]=f,f+=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})),h=function(r){var o=i[r];if(u[o]||0===u[o])s[o]&&(l[e.id]=Math.min(l[e.id],u[o]));else{var a=n.filter((function(t){return t.id===o}));a.length>0&&t(a[0]),l[e.id]=Math.min(l[e.id],l[o])}},d=0;d<i.length;d++)h(d);if(l[e.id]===u[e.id]){var p=[];while(a.length>0){var g=a.pop();if(s[g.id]=!1,p.push(g),g===e)break}p.length>0&&c.push(p)}},d=0,p=n;d<p.length;d++){var g=p[d];u[g.id]||0===u[g.id]||h(g)}return c};function a(t,e){return e?o(t):i(t)}e.detectStrongConnectComponents=o},92935:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.secondReg=e.dateReg=void 0;var n=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/;e.secondReg=n;var r=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;e.dateReg=r},82556:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOutDegree=e.getInDegree=e["default"]=void 0;var n=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},r=n;e["default"]=r;var i=function(t,e){var r=n(t);return r[e]?n(t)[e].inDegree:0};e.getInDegree=i;var o=function(t,e){var r=n(t);return r[e]?n(t)[e].outDegree:0};e.getOutDegree=o},94282:function(t,e,n){"use strict";function r(t){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},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.detectAllUndirectedCycle=e.detectAllDirectedCycle=e.detectAllCycles=e["default"]=void 0;var i=l(n(45891)),o=u(n(59527)),a=n(70643);function s(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}function u(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=s(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 u=o?Object.getOwnPropertyDescriptor(t,a):null;u&&(u.get||u.set)?Object.defineProperty(i,a,u):i[a]=t[a]}return i.default=t,n&&n.set(t,i),i}function l(t){return t&&t.__esModule?t:{default:t}}var c=function(t){var e=null,n=t.nodes,r=void 0===n?[]:n,o={},a={},s={},u={};r.forEach((function(t){a[t.id]=t}));var l={enter:function(t){var n=t.current,r=t.previous;if(s[n]){e={};var i=n,u=r;while(u!==n)e[i]=u,i=u,u=o[u];e[i]=u}else s[n]=n,delete a[n],o[n]=r},leave:function(t){var e=t.current;u[e]=e,delete s[e]},allowTraversal:function(t){var n=t.next;return!e&&!u[n]}};while(Object.keys(a).length){var c=Object.keys(a)[0];(0,i.default)(t,c,l)}return e},f=function(t,e,n){var r,i;void 0===n&&(n=!0);for(var s=[],u=(0,o.default)(t,!1),l=0,c=u;l<c.length;l++){var f=c[l];if(f.length){var h=f[0],d=h.id,p=[h],g=(r={},r[d]=h,r),v=(i={},i[d]=new Set,i);while(p.length>0)for(var m=p.pop(),y=m.id,b=(0,a.getNeighbors)(y,t.edges),x=function(r){var i,o=b[r],a=t.nodes.find((function(t){return t.id===o}));if(o===y)s.push((i={},i[o]=m,i));else if(o in v){if(!v[y].has(a)){var u=!0,l=[a,m],c=g[y];while(v[o].size&&!v[o].has(c)){if(l.push(c),c===g[c.id])break;c=g[c.id]}if(l.push(c),e&&n?(u=!1,l.findIndex((function(t){return e.indexOf(t.id)>-1}))>-1&&(u=!0)):e&&!n&&l.findIndex((function(t){return e.indexOf(t.id)>-1}))>-1&&(u=!1),u){for(var f={},h=1;h<l.length;h+=1)f[l[h-1].id]=l[h];l.length&&(f[l[l.length-1].id]=l[0]),s.push(f)}v[o].add(m)}}else g[o]=m,p.push(a),v[o]=new Set([m])},_=0;_<b.length;_+=1)x(_)}}return s};e.detectAllUndirectedCycle=f;var h=function(t,e,n){void 0===n&&(n=!0);for(var r=[],i=new Set,s=[],u=[],l={},c={},f=function(t){var e=[t];while(e.length>0){var n=e.pop();i.has(n)&&(i.delete(n),s[n.id].forEach((function(t){e.push(t)})),s[n.id].clear())}},h=function t(o,a,c){var h=!1;if(e&&!1===n&&e.indexOf(o.id)>-1)return h;r.push(o),i.add(o);for(var d=c[o.id],p=0;p<d.length;p+=1){var g=l[d[p]];if(g===a){for(var v={},m=1;m<r.length;m+=1)v[r[m-1].id]=r[m];r.length&&(v[r[r.length-1].id]=r[0]),u.push(v),h=!0}else i.has(g)||t(g,a,c)&&(h=!0)}if(h)f(o);else for(p=0;p<d.length;p+=1){g=l[d[p]];s[g.id].has(o)||s[g.id].add(o)}return r.pop(),h},d=t.nodes,p=void 0===d?[]:d,g=0;g<p.length;g+=1){var v=p[g],m=v.id;c[m]=g,l[g]=v}if(e&&n){var y=function(t){var n=e[t];c[p[t].id]=c[n],c[n]=0,l[0]=p.find((function(t){return t.id===n})),l[c[p[t].id]]=p[t]};for(g=0;g<e.length;g++)y(g)}var b=function(r){for(var i,o,s=1/0,l=0;l<r.length;l+=1)for(var f=r[l],h=0;h<f.length;h++){var d=c[f[h].id];d<s&&(s=d,o=l)}var p=r[o],g=[];for(l=0;l<p.length;l+=1){var v=p[l];g[v.id]=[];for(var m=0,y=(0,a.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]):u.push((i={},i[v.id]=v,i))}}return{component:p,adjList:g,minIdx:s}},x=0;while(x<p.length){var _=p.filter((function(t){return c[t.id]>=x})),w=(0,o.detectStrongConnectComponents)({nodes:_,edges:t.edges}).filter((function(t){return t.length>1}));if(0===w.length)break;var S=b(w),E=S.minIdx,T=S.adjList,k=S.component;if(!(k.length>1))break;k.forEach((function(t){s[t.id]=new Set}));var C=l[E];if(e&&n&&-1===e.indexOf(C.id))return u;h(C,C,T),x=E+1}return u};e.detectAllDirectedCycle=h;var d=function(t,e,n,r){return void 0===r&&(r=!0),e?h(t,n,r):f(t,n,r)};e.detectAllCycles=d;var p=c;e["default"]=p},45891:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=a;var r=n(70643);function i(t){void 0===t&&(t={});var e=t,n=function(){},r=function(){var t={};return function(e){var n=e.next;return!t[n]&&(t[n]=!0,!0)}}();return e.allowTraversal=t.allowTraversal||r,e.enter=t.enter||n,e.leave=t.leave||n,e}function o(t,e,n,i,a){void 0===a&&(a=!0),i.enter({current:e,previous:n});var s=t.edges,u=void 0===s?[]:s;(0,r.getNeighbors)(e,u,a?"target":void 0).forEach((function(r){i.allowTraversal({previous:n,current:e,next:r})&&o(t,r,e,i,a)})),i.leave({current:e,previous:n})}function a(t,e,n,r){void 0===r&&(r=!0),o(t,e,"",i(n),r)}},78089:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var r=n(97582),i=n(55817),o=n(70643),a=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},s=function(t,e,n,r){var i=t.nodes,s=void 0===i?[]:i,u=t.edges,c=void 0===u?[]:u,f=[],h={},d={},p={};s.forEach((function(t,n){var r=t.id;f.push(r),d[r]=1/0,r===e&&(d[r]=0)}));for(var g=s.length,v=function(t){var e=a(d,s,h),i=e.id;if(h[i]=!0,d[i]===1/0)return"continue";var u=[];u=n?(0,o.getOutEdgesNodeId)(i,c):(0,o.getEdgesByNodeId)(i,c),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,p[a]=[e.id]):d[a]===d[e.id]+s&&p[a].push(e.id)}))},m=0;m<g;m++)v(m);p[e]=[e];var y={};for(var b in d)d[b]!==1/0&&l(e,b,p,y);var x={};for(var b in y)x[b]=y[b][0];return{length:d,path:x,allPath:y}},u=s;function l(t,e,n,o){if(t===e)return[t];if(o[e])return o[e];for(var a=[],s=0,u=n[e];s<u.length;s++){var c=u[s],f=l(t,c,n,o);if(!f)return;for(var h=0,d=f;h<d.length;h++){var p=d[h];(0,i.isArray)(p)?a.push((0,r.__spreadArray)((0,r.__spreadArray)([],p,!0),[e],!1)):a.push([p,e])}}return o[e]=a,o[e]}e["default"]=u},41727:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findShortestPath=e.findAllPath=void 0;var r=o(n(78089)),i=n(70643);function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t,e,n,i,o){var a=(0,r.default)(t,e,i,o),s=a.length,u=a.path,l=a.allPath;return{length:s[n],path:u[n],allPath:l[n]}};e.findShortestPath=a;var s=function(t,e,n,r){var o;if(e===n)return[[e]];var a=t.edges,s=void 0===a?[]:a,u=[e],l=(o={},o[e]=!0,o),c=[],f=[],h=r?(0,i.getNeighbors)(e,s,"target"):(0,i.getNeighbors)(e,s);c.push(h);while(u.length>0&&c.length>0){var d=c[c.length-1];if(d.length){var p=d.shift();if(p&&(u.push(p),l[p]=!0,h=r?(0,i.getNeighbors)(p,s,"target"):(0,i.getNeighbors)(p,s),c.push(h.filter((function(t){return!l[t]})))),u[u.length-1]===n){var g=u.map((function(t){return t}));f.push(g);v=u.pop();l[v]=!1,c.pop()}}else{var v=u.pop();l[v]=!1,c.pop()}}return f};e.findAllPath=s},75033:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var r=i(n(62238));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(t,e){for(var n=(0,r.default)(t,e),i=[],o=n.length,a=0;a<o;a+=1){i[a]=[];for(var s=0;s<o;s+=1)a===s?i[a][s]=0:0!==n[a][s]&&n[a][s]?i[a][s]=n[a][s]:i[a][s]=1/0}for(var u=0;u<o;u+=1)for(a=0;a<o;a+=1)for(s=0;s<o;s+=1)i[a][s]>i[a][u]+i[u][s]&&(i[a][s]=i[a][u]+i[u][s]);return i},a=o;e["default"]=a},21146:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var r=n(55817),i=n(68575),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,n=t.length;if(e!==n)return!1;for(var r=0;r<e;r++)if(this.dfsEdgeList[r]!==t[r])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,u=o.nodeLabel2;a!==i.VACANT_NODE_LABEL&&n.addNode(e,a),u!==i.VACANT_NODE_LABEL&&n.addNode(r,u),a!==i.VACANT_NODE_LABEL&&u!==a&&n.addEdge(void 0,e,r,s)})),n},t.prototype.buildRmpath=function(){this.rmpath=[];for(var t=void 0,e=this.dfsEdgeList.length,n=e-1;n>=0;n--){var r=this.dfsEdgeList[n],i=r.fromNode,o=r.toNode;i<o&&(void 0===t||o===t)&&(this.rmpath.push(n),t=i)}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){while(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}(),u=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,u=void 0===s?4:s,l=t.top,c=void 0===l?10:l,f=t.directed,h=void 0!==f&&f,d=t.verbose,p=void 0!==d&&d;this.graphs=e,this.dfsCode=new a,this.support=0,this.frequentSize1Subgraphs=[],this.frequentSubgraphs=[],this.minSupport=r,this.top=c,this.directed=h,this.counter=0,this.maxNodeNum=u,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],a=o.edges,s=a.length,u=0;u<s;u++){var l=a[u];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,u=0;u<s;u++){var l=a[u],c=t.nodeMap[l.to];n<=c.label&&!r.hasNode(c)&&i.push(l)}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],u=s.edges,l=u.length,c=0;c<l;c++){var f=u[c],h=o[f.to].label;e.to===f.to||n>h||r.hasNode(o[f.to])||(e.label<f.label||e.label===f.label&&a<=h)&&i.push(f)}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),u=r.nodeMap,l=new a,c={};r.nodes.forEach((function(e){var n=t.findForwardRootEdges(r,e);n.forEach((function(t){var n=u[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 f=this.findMinLabel(c);if(f){l.dfsEdgeList.push(new o(0,1,f.nodeLabel1,f.edgeLabel,f.nodeLabel2));var h=function a(c){for(var f=l.buildRmpath(),h=l.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,d=l.dfsEdgeList[f[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[f[e]],i.edges[f[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=l.dfsEdgeList[f[e]].fromNode,g=!0)}))},b=f.length-1;b>m;b--){var x=y(b);if("break"===x)break}if(g){var _=t.findMinLabel(p);l.dfsEdgeList.push(new o(d,v,i.VACANT_NODE_LABEL,_.edgeLabel,i.VACANT_NODE_LABEL));var w=l.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[w]===l.dfsEdgeList[w]&&a(p[_.edgeLabel].projected)}var S={};g=!1;var E=0;c.forEach((function(e){var n=new s(e),i=t.findForwardPureEdges(r,n.edges[f[0]],h,n);i.length>0&&(g=!0,E=d,i.forEach((function(t){var n="".concat(t.label,"-").concat(u[t.to].label);S[n]||(S[n]={projected:[],edgeLabel:t.label,nodeLabel2:u[t.to].label}),S[n].projected.push({graphId:r.id,edge:t,preNode:e})})))}));var T=f.length,k=function(e){if(g)return"break";var n=f[e];c.forEach((function(e){var i=new s(e),o=t.findForwardRmpathEdges(r,i.edges[n],h,i);o.length>0&&(g=!0,E=l.dfsEdgeList[n].fromNode,o.forEach((function(t){var n="".concat(t.label,"-").concat(u[t.to].label);S[n]||(S[n]={projected:[],edgeLabel:t.label,nodeLabel2:u[t.to].label}),S[n].projected.push({graphId:r.id,edge:t,preNode:e})})))}))};for(b=0;b<T;b++){var C=k(b);if("break"===C)break}if(!g)return!0;var M=t.findMinLabel(S);l.dfsEdgeList.push(new o(E,d+1,i.VACANT_NODE_LABEL,M.edgeLabel,M.nodeLabel2));var A=l.dfsEdgeList.length-1;return e.dfsEdgeList[A]===l.dfsEdgeList[A]&&a(S["".concat(M.edgeLabel,"-").concat(M.nodeLabel2)].projected)},d="".concat(f.nodeLabel1,"-").concat(f.edgeLabel,"-").concat(f.nodeLabel2);return h(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,n=this.getSupport(t);if(!(n<this.minSupport)&&this.isMin()){this.report();var r=this.dfsCode.getNodeNum(),a=this.dfsCode.buildRmpath(),u=this.dfsCode.dfsEdgeList[a[0]].toNode,l=this.dfsCode.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,c={},f={};t.forEach((function(t){for(var n=e.graphs[t.graphId],i=n.nodeMap,o=new s(t),h=a.length-1;h>=0;h--){var d=e.findBackwardEdge(n,o.edges[a[h]],o.edges[a[0]],o);if(d){var p="".concat(e.dfsCode.dfsEdgeList[a[h]].fromNode,"-").concat(d.label);f[p]||(f[p]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[a[h]].fromNode,edgeLabel:d.label}),f[p].projected.push({graphId:t.graphId,edge:d,preNode:t})}}if(!(r>=e.maxNodeNum)){var g=e.findForwardPureEdges(n,o.edges[a[0]],l,o);g.forEach((function(e){var n="".concat(u,"-").concat(e.label,"-").concat(i[e.to].label);c[n]||(c[n]={projected:[],fromNodeId:u,edgeLabel:e.label,nodeLabel2:i[e.to].label}),c[n].projected.push({graphId:t.graphId,edge:e,preNode:t})}));var v=function(r){var s=e.findForwardRmpathEdges(n,o.edges[a[r]],l,o);s.forEach((function(n){var o="".concat(e.dfsCode.dfsEdgeList[a[r]].fromNode,"-").concat(n.label,"-").concat(i[n.to].label);c[o]||(c[o]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[a[r]].fromNode,edgeLabel:n.label,nodeLabel2:i[n.to].label}),c[o].projected.push({graphId:t.graphId,edge:n,preNode:t})}))};for(h=0;h<a.length;h++)v(h)}})),Object.keys(f).forEach((function(t){var n=f[t],r=n.toNodeId,i=n.edgeLabel;e.dfsCode.dfsEdgeList.push(new o(u,r,"-1",i,"-1")),e.subGraphMining(f[t].projected),e.dfsCode.dfsEdgeList.pop()})),Object.keys(c).forEach((function(t){var n=c[t],r=n.fromNodeId,a=n.edgeLabel,s=n.nodeLabel2;e.dfsCode.dfsEdgeList.push(new o(r,u+1,i.VACANT_NODE_LABEL,a,s)),e.subGraphMining(c[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],u=r.nodeMap;r.nodes.forEach((function(t,r){var l=t.label,c="".concat(n,"-").concat(l);if(!a[c]){var f=i[l]||0;f++,i[l]=f}a[c]={graphKey:n,label:l},t.edges.forEach((function(t){var r=l,i=u[t.to].label;if(!e&&r>i){var a=i;i=r,r=a}var c=t.label,f="".concat(n,"-").concat(r,"-").concat(c,"-").concat(i),h="".concat(r,"-").concat(c,"-").concat(i);if(!o[h]){var d=o[h]||0;d++,o[h]=d}s[f]={graphId:n,nodeLabel1:r,edgeLabel:c,nodeLabel2:i}}))}))})),Object.keys(i).forEach((function(t){var e=i[t];if(!(e<n)){var o={nodes:[],edges:[]};o.nodes.push({id:"0",label:t}),r.push(o)}})),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){var a=t.findForwardRootEdges(i,e);a.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,u=r.nodeLabel2;t.dfsCode.dfsEdgeList.push(new o(0,1,a,s,u)),t.subGraphMining(i),t.dfsCode.dfsEdgeList.pop()}))}},t}(),l=function(t,e,n,r){var o={};return Object.keys(t).forEach((function(a,s){var u=t[a],l=new i.Graph(s,!0,e),c={};u.nodes.forEach((function(t,e){l.addNode(e,t[n]),c[t.id]=e})),u.edges.forEach((function(t,e){var n=c[t.source],i=c[t.target];l.addEdge(-1,n,i,t[r])})),l&&l.getNodeNum()&&(o[l.id]=l)})),o},c=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)},n[e]=t.label,n))})),t.edges.forEach((function(t){var e;i.edges.push((e={source:"".concat(t.from),target:"".concat(t.to)},e[n]=t.label,e))})),r.push(i)})),r},f="cluster",h=function(t){var e=t.graphs,n=t.directed,r=void 0!==n&&n,i=t.nodeLabelProp,o=void 0===i?f:i,a=t.edgeLabelProp,s=void 0===a?f:a,h=l(e,r,o,s),d=t.minSupport,p=t.maxNodeNum,g=t.minNodeNum,v=t.verbose,m=t.top,y={graphs:h,minSupport:d,maxNodeNum:p,minNodeNum:g,top:m,verbose:v,directed:r},b=new u(y);b.run();var x=c(b.frequentSubgraphs,o,s);return x},d=h;e["default"]=d},68575:function(t,e){"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 n=-1;e.VACANT_EDGE_ID=n;var r=-1;e.VACANT_NODE_ID=r;var i="-1";e.VACANT_EDGE_LABEL=i;var o="-1";e.VACANT_NODE_LABEL=o;var a=-1;e.VACANT_GRAPH_ID=a;var s="-1";e.AUTO_EDGE_ID=s;var u=function(){function t(t,e,o,a){void 0===t&&(t=n),void 0===e&&(e=r),void 0===o&&(o=r),void 0===a&&(a=i),this.id=t,this.from=e,this.to=o,this.label=a}return t}();e.Edge=u;var l=function(){function t(t,e){void 0===t&&(t=r),void 0===e&&(e=o),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 c=function(){function t(t,e,n){void 0===t&&(t=r),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 u(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 u(t,n,e,r);this.nodeMap[n].addEdge(o),this.edgeLabelMap[r].push(o)}}},t}();e.Graph=c},82812:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var r=n(97582),i=u(n(75033)),o=u(n(21146)),a=u(n(78089)),s=n(70643);function u(t){return t&&t.__esModule?t:{default:t}}var l=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,u){if(e<=i&&n!==u){o.push(u),a.push(t[u]);var l=t[u][r];s[l]?(s[l].count++,s[l].dists.push(e)):s[l]={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}},f=function(t,e,n,r,i){var o=Math.ceil(n/e),a={},s=0;return r.forEach((function(t,r){var u=0,l=0,c=t.nodeIdxs,f=t.neighborNum-1;while(u<o){var h=c[1+Math.floor(Math.random()*f)],d=0;while(a["".concat(r,"-").concat(h)]||a["".concat(h,"-").concat(r)])if(h=Math.floor(Math.random()*e),d++,d>2*e)break;if(d<2*e&&(a["".concat(r,"-").concat(h)]={start:r,end:h,distance:i[r][h]},u++,s++,s>=n))return a;if(l++,l>2*e)break}if(u<o){var p=o-u;o=(o+p)/(e-r-1)}})),a},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 u=t[o],l=null===(a=e[u.start])||void 0===a?void 0:a.nodeIdxs,c=null===(s=e[u.end])||void 0===s?void 0:s.nodeIdxs;if(l&&c){var f=new Set(c),h=l.filter((function(t){return f.has(t)}));if(h&&h.length){for(var d={},p=h.length,g=0;g<p;g++){var v=i[h[g]];r[o].nodes.push(v),d[v.id]=!0}n.edges.forEach((function(t){d[t.source]&&d[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],u=null===e||void 0===e?void 0:e.nodes[0][n],l=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===u&&o===l||i===l&&o===u)&&s++})),s)},p=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]})),a=10,s=[];o.forEach((function(t,e){s[e%a]||(s[e%a]={graphs:[],totalCount:0,aveCount:0}),s[e%a].graphs.push(t),s[e%a].totalCount+=n[t]}));var u=0,l=[];s.forEach((function(t){var e=t.totalCount/t.graphs.length;t.aveCount=e,l.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]))}))})),r/=i*(i-1)/2,u+=r})),u/=s.length;var c=0;l.forEach((function(t,e){l.forEach((function(n,r){e!==r&&(c+=Math.abs(t-n))})),c/=l.length*(l.length-1)/2}));var f=c-u;r<f&&(r=f,i=e)},a=0;a<e;a++)o(a);return{structure:n[i],structureCountMap:t[i]}},g=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}},v=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 u=n[t.source];u&&(u.degree++,u.outDegree++);var l=n[t.target];l&&(l.degree++,l.inDegree++)})),{edgeMap:r,edgeLabelMap:i}},m=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,u=a;u<r;u++)if(o!==u){var l=t[u].id,c=e[u];i["".concat(s,"-").concat(l)]=c,n||(i["".concat(l,"-").concat(s)]=c)}})),i},y=function(t,e,n,r,i,o,a,s,u,l,c){var f,p="".concat(e.id,"-").concat(n.id);if(l&&l[p])return l[p];var g=c?c[p]:void 0;if(!g){var v=(f={},f[p]={start:r[e.id].idx,end:r[n.id].idx,distance:i},f);c=h(v,o,t,c),g=c[p]}return d(g,a,s,u)},b=function(t,e,n,r){var i,o,a,s=null===(i=t[e])||void 0===i?void 0:i.degree,u=null===(o=t[e])||void 0===o?void 0:o.inDegree,l=null===(a=t[e])||void 0===a?void 0:a.outDegree;return void 0===t[e]&&(s=1/0,u=1/0,l=1/0,r[e].forEach((function(t){var e=n[t.id].degree;s>e&&(s=e);var r=n[t.id].inDegree;u>r&&(u=r);var i=n[t.id].outDegree;l>i&&(l=i)})),t[e]={degree:s,inDegree:u,outDegree:l}),{minPatternNodeLabelDegree:s,minPatternNodeLabelInDegree:u,minPatternNodeLabelOutDegree:l}},x=function(t,e,n,s,u,x,_){var w;if(void 0===n&&(n=!1),void 0===x&&(x="cluster"),void 0===_&&(_="cluster"),t&&t.nodes){var S=t.nodes.length;if(S){var E=(0,i.default)(t,n),T=(0,i.default)(e,n),k=m(t.nodes,E,n),C=m(e.nodes,T,n),M=g(t.nodes,x),A=M.nodeMap,I=M.nodeLabelMap,O=g(e.nodes,x),D=O.nodeMap,P=O.nodeLabelMap;v(t.edges,_,A);var L=v(e.edges,_,D).edgeLabelMap,N=[];null===T||void 0===T||T.forEach((function(t){N=N.concat(t)})),u||(u=Math.max.apply(Math,(0,r.__spreadArray)((0,r.__spreadArray)([],N,!1),[2],!1))),s||(s=u);var R=l(t,E,x,s),j=l(e,T,x,s),F=Math.min(100,S*(S-1)/2),B=f(s,S,F,R,E),z=h(B,R,t),Z=10,U=1,H=1,$=4,G={graphs:z,nodeLabelProp:x,edgeLabelProp:_,minSupport:U,minNodeNum:H,maxNodeNum:$,directed:n},W=(0,o.default)(G).slice(0,Z),V=W.length,Y=[];W.forEach((function(t,e){Y[e]={},Object.keys(z).forEach((function(n){var r=z[n],i=d(r,t,x,_);Y[e][n]=i}))}));var X=p(Y,V,W),q=X.structure,K=X.structureCountMap,J=e.nodes[0],Q=[],tt=null===(w=e.nodes[0])||void 0===w?void 0:w[x],et=-1/0;e.nodes.forEach((function(t){var e=t[x],n=I[e];(null===n||void 0===n?void 0:n.length)>et&&(et=n.length,Q=n,tt=e,J=t)}));var nt={},rt={},it={},ot={},at={},st={};Object.keys(P).forEach((function(r,i){at[r]=[],n&&(st[r]=[]);var o=-1/0,a=P[r],s={};a.forEach((function(t){var e=C["".concat(J.id,"-").concat(t.id)];if(e&&at[r].push(e),o<e&&(o=e),s["".concat(J.id,"-").concat(t.id)]={start:0,end:D[t.id].idx,distance:e},n){var i=C["".concat(t.id,"-").concat(J.id)];i&&st[r].push(i)}})),at[r]=at[r].sort((function(t,e){return t-e})),n&&(st[r]=st[r].sort((function(t,e){return t-e}))),rt=h(s,j,e,rt);var u=[];if(Object.keys(s).forEach((function(t){if(it[t])u.push(it[t]);else{var e=rt[t];it[t]=d(e,q,x,_),u.push(it[t])}})),u=u.sort((function(t,e){return e-t})),ot["".concat(J.id,"-").concat(r)]=u,r!==tt)for(var l=(null===Q||void 0===Q?void 0:Q.length)||0,c=function(e){var n=Q[e],i=R[A[n.id].idx],o=i.nodeLabelCountMap[r],a=P[r].length;if(!o||o.count<a)return Q.splice(e,1),"continue";for(var s=!1,l=0;l<a;l++)if(o.dists[l]>at[r][l]){s=!0;break}if(s)return Q.splice(e,1),"continue";var c={};i.neighbors.forEach((function(t){var e=k["".concat(n.id,"-").concat(t.id)];c["".concat(n.id,"-").concat(t.id)]={start:A[n.id].idx,end:A[t.id].idx,distance:e}})),z=h(c,R,t,z);var f=[];Object.keys(c).forEach((function(t){if(K[t])f.push(K[t]);else{var e=z[t];K[t]=d(e,q,x,_),f.push(K[t])}})),f=f.sort((function(t,e){return e-t}));var p=!1;for(l=0;l<a;l++)if(f[l]<u[l]){p=!0;break}return p?(Q.splice(e,1),"continue"):void 0},f=l-1;f>=0;f--)c(f)}));var ut=[];null===Q||void 0===Q||Q.forEach((function(r){for(var i=A[r.id].idx,o=c(t.nodes,E[i],i,x,u),a=o.neighbors,s=a.length,l=!1,f=s-1;f>=0;f--){if(a.length+1<e.nodes.length)return void(l=!0);var h=a[f],d=h[x];if(P[d]&&P[d].length)if(at[d]&&at[d].length){var p="".concat(r.id,"-").concat(h.id),g=k[p],v=at[d].length-1,m=at[d][v];if(g>m)a.splice(f,1);else{if(n){var w="".concat(h.id,"-").concat(r.id),S=k[w];v=st[d].length-1;var T=st[d][v];if(S>T){a.splice(f,1);continue}}var C=K[p]?K[p]:y(t,r,h,A,g,R,q,x,_,K,z),M="".concat(J.id,"-").concat(d),I=ot[M][ot[M].length-1];if(C<I)a.splice(f,1);else{var O=b(nt,d,D,P),L=O.minPatternNodeLabelDegree;O.minPatternNodeLabelInDegree,O.minPatternNodeLabelOutDegree;A[h.id].degree<L&&a.splice(f,1)}}}else a.splice(f,1);else a.splice(f,1)}l||ut.push({nodes:[r].concat(a)})}));var lt=(0,a.default)(e,J.id,!1).length,ct={};n?(Object.keys(lt).forEach((function(t){var e=D[t].node[x];ct[e]?ct[e].push(lt[t]):ct[e]=[lt[t]]})),Object.keys(ct).forEach((function(t){ct[t].sort((function(t,e){return t-e}))}))):ct=at;for(var ft=ut.length,ht=function(r){var i=ut[r],o=i.nodes[0],s={},u={};i.nodes.forEach((function(t,e){u[t.id]={idx:e,node:t,degree:0,inDegree:0,outDegree:0};var n=t[x];s[n]?s[n]++:s[n]=1}));var l=[],c={};t.edges.forEach((function(t){u[t.source]&&u[t.target]&&(l.push(t),c[t[_]]?c[t[_]]++:c[t[_]]=1,u[t.source].degree++,u[t.target].degree++,u[t.source].outDegree++,u[t.target].inDegree++)}));for(var f=Object.keys(L).length,h=!1,d=0;d<f;d++){var p=Object.keys(L)[d];if(!c[p]||c[p]<L[p].length){h=!0;break}}if(h)return ut.splice(r,1),"continue";var g=l.length;if(g<e.edges.length)return ut.splice(r,1),"break";var v=!1,m=function(t){var e=l[t],r=e[_],i=L[r];if(!i||!i.length)return c[r]--,i&&c[r]<i.length?(v=!0,"break"):(l.splice(t,1),u[e.source].degree--,u[e.target].degree--,u[e.source].outDegree--,u[e.target].inDegree--,"continue");var o=u[e.source].node[x],a=u[e.target].node[x],s=!1;return i.forEach((function(t){var e=D[t.source].node,r=D[t.target].node;e[x]===o&&r[x]===a&&(s=!0),n||e[x]!==a||r[x]!==o||(s=!0)})),s?void 0:(c[r]--,i&&c[r]<i.length?(v=!0,"break"):(l.splice(t,1),u[e.source].degree--,u[e.target].degree--,u[e.source].outDegree--,u[e.target].inDegree--,"continue"))};for(d=g-1;d>=0;d--){var y=m(d);if("break"===y)break}if(v)return ut.splice(r,1),"continue";i.edges=l;var w=(0,a.default)(i,i.nodes[0].id,!1).length;if(Object.keys(w).reverse().forEach((function(t){if(t!==i.nodes[0].id&&!v){if(w[t]===1/0){var e=u[t].node[x];if(s[e]--,s[e]<P[e].length)return void(v=!0);var n=i.nodes.indexOf(u[t].node);return i.nodes.splice(n,1),void(u[t]=void 0)}var r=A[t].node[x];if(!ct[r]||!ct[r].length||w[t]>ct[r][ct[r].length-1]){e=u[t].node[x];if(s[e]--,s[e]<P[e].length)return void(v=!0);n=i.nodes.indexOf(u[t].node);i.nodes.splice(n,1),u[t]=void 0}}})),v)return ut.splice(r,1),"continue";var S=!0,E=0;while(S&&!v){S=!1;var T=n?u[o.id].degree<D[J.id].degree||u[o.id].inDegree<D[J.id].inDegree||u[o.id].outDegree<D[J.id].outDegree:u[o.id].degree<D[J.id].degree;if(T){v=!0;break}if(s[o[x]]<P[o[x]].length){v=!0;break}for(var k=i.nodes.length,C=k-1;C>=0;C--){var M=i.nodes[C],I=u[M.id].degree,O=u[M.id].inDegree,N=u[M.id].outDegree,R=M[x],j=b(nt,R,D,P),F=j.minPatternNodeLabelDegree,B=j.minPatternNodeLabelInDegree,z=j.minPatternNodeLabelOutDegree,Z=n?I<F||O<B||N<z:I<F;if(Z){if(s[M[x]]--,s[M[x]]<P[M[x]].length){v=!0;break}i.nodes.splice(C,1),u[M.id]=void 0,S=!0}}if(v||!S&&0!==E)break;g=l.length;for(var U=g-1;U>=0;U--){var H=l[U];if(!u[H.source]||!u[H.target]){l.splice(U,1);var $=H[_];if(c[$]--,u[H.source]&&(u[H.source].degree--,u[H.source].outDegree--),u[H.target]&&(u[H.target].degree--,u[H.target].inDegree--),L[$]&&c[$]<L[$].length){v=!0;break}S=!0}}E++}return v||v||i.nodes.length<e.nodes.length||l.length<e.edges.length?(ut.splice(r,1),"continue"):void 0},dt=ft-1;dt>=0;dt--){var pt=ht(dt);if("break"===pt)break}var gt=ut.length,vt=function(t){var e=ut[t],n={};e.edges.forEach((function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);n[e]?n[e]++:n[e]=1}));for(var r=function(t){var e=ut[t],r={};e.edges.forEach((function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);r[e]?r[e]++:r[e]=1}));var i=!0;Object.keys(r).length!==Object.keys(n).length?i=!1:Object.keys(n).forEach((function(t){r[t]!==n[t]&&(i=!1)})),i&&ut.splice(t,1)},i=gt-1;i>t;i--)r(i);gt=ut.length};for(dt=0;dt<=gt-1;dt++)vt(dt);return ut}}},_=x;e["default"]=_},5170:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var r=o(n(62238)),i=n(70643);function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===o&&(o=1e3);var a=t.nodes,s=void 0===a?[]:a,u=t.edges,l=void 0===u?[]:u,c={},f={};s.forEach((function(t,e){var n=(0,i.uniqueId)();t.clusterId=n,c[n]={id:n,nodes:[t]},f[t.id]={node:t,idx:e}}));var h=(0,r.default)(t,e),d=[],p={};h.forEach((function(t,e){var n=0,r=s[e].id;p[r]={},t.forEach((function(t,e){if(t){n+=t;var i=s[e].id;p[r][i]=t}})),d.push(n)}));var g=0,v=function(){var t=!1;if(s.forEach((function(e){var n={};Object.keys(p[e.id]).forEach((function(t){var r=p[e.id][t],i=f[t].node,o=i.clusterId;n[o]||(n[o]=0),n[o]+=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 u=Math.floor(Math.random()*i.length),l=c[i[u]];l.nodes.push(e),e.clusterId=l.id}}})),!t)return"break";g++};while(g<o){var m=v();if("break"===m)break}Object.keys(c).forEach((function(t){var e=c[t];e.nodes&&e.nodes.length||delete c[t]}));var y=[],b={};l.forEach((function(t){var e=t.source,r=t.target,i=t[n]||1,o=f[e].node.clusterId,a=f[r].node.clusterId,s="".concat(o,"---").concat(a);if(b[s])b[s].weight+=i,b[s].count++;else{var u={source:o,target:a,weight:i,count:1};b[s]=u,y.push(u)}}));var x=[];return Object.keys(c).forEach((function(t){x.push(c[t])})),{clusters:x,clusterEdges:y}},s=a;e["default"]=s},35179:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var r=n(55817),i=u(n(62238)),o=u(n(29741)),a=n(3665),s=n(26838);function u(t){return t&&t.__esModule?t:{default:t}}var l=function(t,e,n,r){for(var i=e.length,o=2*r,a=0,s=0;s<i;s++)for(var u=t[s].clusterId,l=0;l<i;l++){var c=t[l].clusterId;if(u===c){var f=e[s][l]||0,h=n[s]||0,d=n[l]||0;a+=f-h*d/o}}return a*=1/o,a},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++){var u=new o.default(e[i]),l=u.squareEuclideanDistance(a);s+=l}var c=[];t.forEach((function(){c.push([])}));for(i=0;i<n;i++){u=new o.default(e[i]);t[i]["clusterInertial"]=0;for(var f=0;f<n;f++)if(i!==f){var h=new o.default(e[f]);c[i][f]=u.squareEuclideanDistance(h),t[i]["clusterInertial"]+=c[i][f]}else c[i][f]=0}var d=0,p=2*n*s;for(i=0;i<n;i++){var g=t[i].clusterId;for(f=0;f<n;f++){var v=t[f].clusterId;if(i!==f&&g===v){var m=t[i].clusterInertial*t[f].clusterInertial/Math.pow(p,2)-c[i][f]/p;d+=m}}}return Number(d.toFixed(4))},f=function(t,e,n,o,u,f,h,d,p){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===o&&(o=1e-4),void 0===u&&(u=!1),void 0===f&&(f=void 0),void 0===h&&(h=[]),void 0===d&&(d=["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(u){v.forEach((function(t,e){t.properties=t.properties||{},t.originIndex=e}));var x=[];v.every((function(t){return t.hasOwnProperty("nodeType")}))&&(x=Array.from(new Set(v.map((function(t){return t.nodeType})))),v.forEach((function(t){t.properties.nodeType=x.findIndex((function(e){return e===t.nodeType}))})));var _=(0,a.getAllProperties)(v,f);b=(0,s.oneHot)(_,h,d)}var w=1,S={},E={};v.forEach((function(t,e){var n=String(w++);t.clusterId=n,S[n]={id:n,nodes:[t]},E[t.id]={node:t,idx:e}}));var T=(0,i.default)(t,e),k=[],C={},M=0;T.forEach((function(t,e){var n=0,r=v[e].id;C[r]={},t.forEach((function(t,e){if(t){n+=t;var i=v[e].id;C[r][i]=t,M+=t}})),k.push(n)})),M/=2;var A=1/0,I=1/0,O=0,D=[],P={};while(1){A=u&&v.every((function(t){return t.hasOwnProperty("properties")}))?l(v,T,k,M)+c(v,b)*p:l(v,T,k,M),0===O&&(I=A,D=v,P=S);var L=A>0&&A>I&&A-I<o;if(A>I&&(D=v.map((function(t){return{node:t,clusterId:t.clusterId}})),P=(0,r.clone)(S),I=A),L||O>100)break;O++,Object.keys(S).forEach((function(t){var e=0;y.forEach((function(r){var i=r.source,o=r.target,a=E[i].node.clusterId,s=E[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=k[e]/(2*M),s=0,l=i.nodes;l.forEach((function(t){var n=E[t.id].idx;s+=T[e][n]||0}));var f=s-i.sumTot*a,h=l.filter((function(e){return e.id!==t.id})),d=[];h.forEach((function(t,e){d[e]=b[t.originIndex]}));var g=c(h,b)*p,v=C[t.id];if(Object.keys(v).forEach((function(n){var i=E[n].node,s=i.clusterId;if(s!==t.clusterId){var l=S[s],h=l.nodes;if(h&&h.length){var d=0;h.forEach((function(t){var n=E[t.id].idx;d+=T[e][n]||0}));var v=d-l.sumTot*a,m=h.concat([t]),y=[];m.forEach((function(t,e){y[e]=b[t.originIndex]}));var x=c(m,b)*p,_=v-f;u&&(_=v+x-(f+g)),_>o&&(o=_,r=l)}}})),o>0){r.nodes.push(t);var m=t.clusterId;t.clusterId=r.id;var x=i.nodes.indexOf(t);i.nodes.splice(x,1);var _=0,w=0;y.forEach((function(t){var e=t.source,i=t.target,o=E[e].node.clusterId,a=E[i].node.clusterId;(o===r.id&&a!==r.id||a===r.id&&o!==r.id)&&(_+=t[n]||1),(o===m&&a!==m||a===m&&o!==m)&&(w+=t[n]||1)})),r.sumTot=_,i.sumTot=w}}))}var N={},R=0;Object.keys(P).forEach((function(t){var e=P[t];if(e.nodes&&e.nodes.length){var n=String(R+1);n!==t&&(e.id=n,e.nodes=e.nodes.map((function(t){return{id:t.id,clusterId:n}})),P[n]=e,N[t]=n,delete P[t],R++)}else delete P[t]})),D.forEach((function(t){var e=t.node,n=t.clusterId;e&&(e.clusterId=n,e.clusterId&&N[e.clusterId]&&(e.clusterId=N[e.clusterId]))}));var j=[],F={};y.forEach((function(t){var e=t.source,r=t.target,i=t[n]||1,o=E[e].node.clusterId,a=E[r].node.clusterId;if(o&&a){var s="".concat(o,"---").concat(a);if(F[s])F[s].weight+=i,F[s].count++;else{var u={source:o,target:a,weight:i,count:1};F[s]=u,j.push(u)}}}));var B=[];return Object.keys(P).forEach((function(t){B.push(P[t])})),{clusters:B,clusterEdges:j}},h=f;e["default"]=h},89454:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var r=a(n(38823)),i=a(n(57085)),o=n(70643);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,u=void 0===s?[]:s;if(0===a.length)return n;var l=a[0],c=new Set;c.add(l);var f=function(t,n){return e?t.weight-n.weight:0},h=new i.default(f);(0,o.getEdgesByNodeId)(l.id,u).forEach((function(t){h.insert(t)}));while(!h.isEmpty()){var d=h.delMin(),p=d.source,g=d.target;c.has(p)&&c.has(g)||(n.push(d),c.has(p)||(c.add(p),(0,o.getEdgesByNodeId)(p,u).forEach((function(t){h.insert(t)}))),c.has(g)||(c.add(g),(0,o.getEdgesByNodeId)(g,u).forEach((function(t){h.insert(t)}))))}return n},u=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 u=s.map((function(t){return t}));e&&u.sort((function(t,e){return t.weight-e.weight}));var l=new r.default(o.map((function(t){return t.id})));while(u.length>0){var c=u.shift(),f=c.source,h=c.target;l.connected(f,h)||(n.push(c),l.union(f,h))}return n},l=function(t,e,n){var r={prim:s,kruskal:u};return n?r[n](t,e):u(t,e)},c=l;e["default"]=c},74926:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var r=o(n(82556)),i=n(70643);function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t,e,n){"number"!==typeof e&&(e=1e-6),"number"!==typeof n&&(n=.85);for(var o,a=1,s=0,u=1e3,l=t.nodes,c=void 0===l?[]:l,f=t.edges,h=void 0===f?[]:f,d=c.length,p={},g={},v=0;v<d;++v){var m=c[v],y=m.id;p[y]=1/d,g[y]=1/d}var b=(0,r.default)(t);while(u>0&&a>e){s=0;for(v=0;v<d;++v){m=c[v],y=m.id;if(o=0,0===b[m.id].inDegree)p[y]=0;else{for(var x=(0,i.getNeighbors)(y,h,"source"),_=0;_<x.length;++_){var w=x[_],S=b[w].outDegree;S>0&&(o+=g[w]/S)}p[y]=n*o,s+=p[y]}}s=(1-s)/d,a=0;for(v=0;v<d;++v){m=c[v],y=m.id;o=p[y]+s,a+=Math.abs(o-g[y]),g[y]=o}u-=1}return g},s=a;e["default"]=s},57085:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var n=function(t,e){return t-e},r=function(){function t(t){void 0===t&&(t=n),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){var e=this.getParent(t);while(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}(),i=r;e["default"]=i},88481:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=e.LinkedListNode=void 0;var n=function(t,e){return t===e},r=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=r;var i=function(){function t(t){void 0===t&&(t=n),this.head=null,this.tail=null,this.compare=t}return t.prototype.prepend=function(t){var e=new r(t,this.head);return this.head=e,this.tail||(this.tail=e),this},t.prototype.append=function(t){var e=new r(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;var e=null;while(this.head&&this.compare(this.head.value,t))e=this.head,this.head=this.head.next;var n=this.head;if(null!==n)while(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;var o=this.head;while(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;var e=this.head;while(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(){var t=[],e=this.head;while(e)t.push(e),e=e.next;return t},t.prototype.reverse=function(){var t=this.head,e=null,n=null;while(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}(),o=i;e["default"]=o},93026:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var r=i(n(88481));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(){function t(){this.linkedList=new r.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}(),a=o;e["default"]=a},38823:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var n=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){while(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}(),r=n;e["default"]=r},17892:function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.DistanceType=void 0,e.DistanceType=n,function(t){t["EuclideanDistance"]="euclideanDistance"}(n||(e.DistanceType=n={}))},70643:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueId=e.getOutEdgesNodeId=e.getNeighbors=e.getEdgesByNodeId=void 0;var n=function(t,e,n){void 0===e&&(e=[]);var r=e.filter((function(e){return e.source===t||e.target===t}));if("target"===n){var i=function(e){return e.source===t};return r.filter(i).map((function(t){return t.target}))}if("source"===n){var o=function(e){return e.target===t};return r.filter(o).map((function(t){return t.source}))}var a=function(e){return e.source===t?e.target:e.source};return r.map(a)};e.getNeighbors=n;var r=function(t,e){return e.filter((function(e){return e.source===t}))};e.getOutEdgesNodeId=r;var i=function(t,e){return e.filter((function(e){return e.source===t||e.target===t}))};e.getEdgesByNodeId=i;var o=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)};e.uniqueId=o},26838:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.oneHot=e.getDistance=e.getAllKeyValueMap=e["default"]=void 0;var r=n(55817),i=n(17892),o=a(n(29741));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t,e,n){var i=[];(null===e||void 0===e?void 0:e.length)?i=e:(t.forEach((function(t){i=i.concat(Object.keys(t))})),i=(0,r.uniq)(i));var o={};return i.forEach((function(e){var i=[];t.forEach((function(t){void 0!==t[e]&&""!==t[e]&&i.push(t[e])})),i.length&&!(null===n||void 0===n?void 0:n.includes(e))&&(o[e]=(0,r.uniq)(i))})),o};e.getAllKeyValueMap=s;var u=function(t,e,n){var r=s(t,e,n),i=[];if(!Object.keys(r).length)return i;var o=Object.values(r),a=o.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],o=r[e],s=o.findIndex((function(t){return i===t})),u=[];if(a)u.push(i);else for(var l=0;l<o.length;l++)l===s?u.push(1):u.push(0);n=n.concat(u)})),i[e]=n})),i};e.oneHot=u;var l=function(t,e,n,r){void 0===n&&(n=i.DistanceType.EuclideanDistance);var a=0;switch(n){case i.DistanceType.EuclideanDistance:a=new o.default(t).euclideanDistance(new o.default(e));break;default:break}return a};e.getDistance=l;var c={getAllKeyValueMap:s,oneHot:u,getDistance:l};e["default"]=c},3665: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(92935),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 u={getAllSortProperties:i,getPropertyWeight:a,getAllProperties:s};e["default"]=u},29741:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var r=n(55817),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}(),o=i;e["default"]=o},31656:function(t,e,n){"use strict";function r(t){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},r(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 l.default}}),Object.defineProperty(e,"detectCycle",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"dijkstra",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"findAllPath",{enumerable:!0,get:function(){return f.findAllPath}}),Object.defineProperty(e,"findShortestPath",{enumerable:!0,get:function(){return f.findShortestPath}}),Object.defineProperty(e,"floydWarshall",{enumerable:!0,get:function(){return h.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 d.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(62238)),o=_(n(83764)),a=_(n(59527)),s=x(n(82556)),u=_(n(94282)),l=_(n(45891)),c=_(n(78089)),f=n(41727),h=_(n(75033)),d=_(n(5170)),p=_(n(35179)),g=_(n(89454)),v=_(n(74926)),m=_(n(82812)),y=n(70643);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 x(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]}return i.default=t,n&&n.set(t,i),i}function _(t){return t&&t.__esModule?t:{default:t}}},66044:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MESSAGE=e.ALGORITHM=void 0;var n={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.ALGORITHM=n;var r={SUCCESS:"SUCCESS",FAILURE:"FAILURE"};e.MESSAGE=r},70585:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var r=n(66044),i=o(n(12067));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new Promise((function(n,o){var a=new i.default;a.postMessage({_algorithmType:t,data:e}),a.onmessage=function(t){var e=t.data,i=e.data,s=e._algorithmType;r.MESSAGE.SUCCESS===s?n(i):o(),a.terminate()}}))}},s=a;e["default"]=s},30485: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=o(n(70585)),i=n(66044);function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t,e){return(0,r.default)(i.ALGORITHM.getAdjMatrix).apply(void 0,[t,e])};e.getAdjMatrixAsync=a;var s=function(t,e){return(0,r.default)(i.ALGORITHM.connectedComponent).apply(void 0,[t,e])};e.connectedComponentAsync=s;var u=function(t){return(0,r.default)(i.ALGORITHM.getDegree)(t)};e.getDegreeAsync=u;var l=function(t,e){return(0,r.default)(i.ALGORITHM.getInDegree)(t,e)};e.getInDegreeAsync=l;var c=function(t,e){return(0,r.default)(i.ALGORITHM.getOutDegree)(t,e)};e.getOutDegreeAsync=c;var f=function(t){return(0,r.default)(i.ALGORITHM.detectCycle)(t)};e.detectCycleAsync=f;var h=function(t){return(0,r.default)(i.ALGORITHM.detectAllCycles)(t)};e.detectAllCyclesAsync=h;var d=function(t){return(0,r.default)(i.ALGORITHM.detectAllDirectedCycle)(t)};e.detectAllDirectedCycleAsync=d;var p=function(t){return(0,r.default)(i.ALGORITHM.detectAllUndirectedCycle)(t)};e.detectAllUndirectedCycleAsync=p;var g=function(t,e,n,o){return(0,r.default)(i.ALGORITHM.dijkstra).apply(void 0,[t,e,n,o])};e.dijkstraAsync=g;var v=function(t,e,n,o){return(0,r.default)(i.ALGORITHM.findAllPath).apply(void 0,[t,e,n,o])};e.findAllPathAsync=v;var m=function(t,e,n,o,a){return(0,r.default)(i.ALGORITHM.findShortestPath).apply(void 0,[t,e,n,o,a])};e.findShortestPathAsync=m;var y=function(t,e){return(0,r.default)(i.ALGORITHM.floydWarshall).apply(void 0,[t,e])};e.floydWarshallAsync=y;var b=function(t,e,n,o){return void 0===o&&(o=1e3),(0,r.default)(i.ALGORITHM.labelPropagation)(t,e,n,o)};e.labelPropagationAsync=b;var x=function(t,e,n,o){return(0,r.default)(i.ALGORITHM.louvain)(t,e,n,o)};e.louvainAsync=x;var _=function(t,e,n){return(0,r.default)(i.ALGORITHM.minimumSpanningTree).apply(void 0,[t,e,n])};e.minimumSpanningTreeAsync=_;var w=function(t,e,n){return(0,r.default)(i.ALGORITHM.pageRank).apply(void 0,[t,e,n])};e.pageRankAsync=w;var S=function(t,e,n){return(0,r.default)(i.ALGORITHM.getNeighbors).apply(void 0,[t,e,n])};e.getNeighborsAsync=S;var E=function(t,e,n,o,a,s,u){return void 0===n&&(n=!1),void 0===s&&(s="cluster"),void 0===u&&(u="cluster"),(0,r.default)(i.ALGORITHM.GADDI).apply(void 0,[t,e,n,o,a,s,u])};e.GADDIAsync=E},12067:function(t,e,n){"use strict";function r(t){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},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var i=s(n(31656)),o=n(66044);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)}function s(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 u=o?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(i,s,u):i[s]=t[s]}return i.default=t,n&&n.set(t,i),i}var u="undefined"!==typeof self?self:{};u.onmessage=function(t){var e=t.data,n=e._algorithmType,r=e.data;if(n)if("function"!==typeof i[n])u.postMessage({_algorithmType:o.MESSAGE.FAILURE});else{var a=i[n].apply(i,r);u.postMessage({_algorithmType:o.MESSAGE.SUCCESS,data:a})}};var l=null;e["default"]=l},6056:function(t,e,n){"use strict";var r,i,o,a;function s(){r=document.createElement("table"),i=document.createElement("tr"),o=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:i,th:i,"*":document.createElement("div")}}function u(t){r||s();var e=o.test(t)&&RegExp.$1;e&&e in a||(e="*");var n=a[e];t="string"===typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var i=n.childNodes[0];return i&&n.contains(i)&&n.removeChild(i),i}n.d(e,{Z:function(){return u}})},45442:function(t,e,n){"use strict";function r(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}n.d(e,{Z:function(){return r}})},90494:function(t,e,n){"use strict";var r="*",i=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=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this._events[t]||[],a=this._events[r]||[],s=function(r){for(var i=r.length,o=0;o<i;o++)if(r[o]){var a=r[o],s=a.callback,u=a.once;u&&(r.splice(o,1),0===r.length&&delete e._events[t],i--,o--),s.apply(e,n)}};s(o),s(a)},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.Z=/^(539|826)$/.test(n.j)?i:null},73216:function(t,e,n){"use strict";function r(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 i(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape"),o=null,a=null;return n&&(o=n.getCanvasBBox(),e=r(e,o)),i&&(a=i.getCanvasBBox(),e=r(e,a)),e}n.d(e,{J:function(){return i}})},80328:function(t,e,n){"use strict";n.d(e,{AbstractCanvas:function(){return ce},AbstractGroup:function(){return he},AbstractShape:function(){return pe},Event:function(){return H},PathUtil:function(){return r},assembleFont:function(){return Me},getBBoxMethod:function(){return me},getOffScreenContext:function(){return Ee.L},getTextHeight:function(){return Te},invert:function(){return tt.U_},isAllowCapture:function(){return X},multiplyVec2:function(){return tt.rG}});var r={};n.r(r),n.d(r,{catmullRomToBezier:function(){return l},fillPath:function(){return L},fillPathByDiff:function(){return F},formatPath:function(){return Z},intersection:function(){return I},parsePathArray:function(){return m},parsePathString:function(){return u},pathToAbsolute:function(){return f},pathToCurve:function(){return g},rectPath:function(){return S}});var i=n(55817),o="\t\n\v\f\r   ᠎             　\u2028\u2029",a=new RegExp("([a-z])["+o+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+o+"]*,?["+o+"]*)+)","ig"),s=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+o+"]*,?["+o+"]*","ig"),u=function(t){if(!t)return null;if((0,i.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(a,(function(r,i,o){var a=[],u=i.toLowerCase();if(o.replace(s,(function(t,e){e&&a.push(+e)})),"m"===u&&a.length>2&&(n.push([i].concat(a.splice(0,2))),u="l",i="m"===i?"l":"L"),"o"===u&&1===a.length&&n.push([i,a[0]]),"r"===u)n.push([i].concat(a));else while(a.length>=e[u])if(n.push([i].concat(a.splice(0,e[u]))),!e[u])break;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},c=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),u=t+n*Math.cos(-i*a),l=e+n*Math.sin(-r*a),c=e+n*Math.sin(-i*a);o=[["M",s,l],["A",n,n,0,+(i-r>180),0,u,c]]}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},f=function(t){if(t=u(t),!t||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,s=0,f=0;"M"===t[0][0]&&(i=+t[0][1],o=+t[0][2],a=i,s=o,f++,r[0]=["M",i,o]);for(var h=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=void 0,p=void 0,g=f,v=t.length;g<v;g++){if(r.push(d=[]),p=t[g],e=p[0],e!==e.toUpperCase())switch(d[0]=e.toUpperCase(),d[0]){case"A":d[1]=p[1],d[2]=p[2],d[3]=p[3],d[4]=p[4],d[5]=p[5],d[6]=+p[6]+i,d[7]=+p[7]+o;break;case"V":d[1]=+p[1]+o;break;case"H":d[1]=+p[1]+i;break;case"R":n=[i,o].concat(p.slice(1));for(var m=2,y=n.length;m<y;m++)n[m]=+n[m]+i,n[++m]=+n[m]+o;r.pop(),r=r.concat(l(n,h));break;case"O":r.pop(),n=c(i,o,p[1],p[2]),n.push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(c(i,o,p[1],p[2],p[3])),d=["U"].concat(r[r.length-1].slice(-2));break;case"M":a=+p[1]+i,s=+p[2]+o;break;default:for(m=1,y=p.length;m<y;m++)d[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,h)),d=["R"].concat(p.slice(-2));else if("O"===e)r.pop(),n=c(i,o,p[1],p[2]),n.push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(c(i,o,p[1],p[2],p[3])),d=["U"].concat(r[r.length-1].slice(-2));else for(var b=0,x=p.length;b<x;b++)d[b]=p[b];if(e=e.toUpperCase(),"O"!==e)switch(d[0]){case"Z":i=+a,o=+s;break;case"H":i=d[1];break;case"V":o=d[1];break;case"M":a=d[d.length-2],s=d[d.length-1];break;default:i=d[d.length-2],o=d[d.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){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*r,a*i+s*n,a*o+s*r,i,o]},p=function(t,e,n,r,i,o,a,s,u,l){n===r&&(n+=1);var c,f,h,d,g,v=120*Math.PI/180,m=Math.PI/180*(+i||0),y=[],b=function(t,e,n){var r=t*Math.cos(n)-e*Math.sin(n),i=t*Math.sin(n)+e*Math.cos(n);return{x:r,y:i}};if(l)f=l[0],h=l[1],d=l[2],g=l[3];else{c=b(t,e,-m),t=c.x,e=c.y,c=b(s,u,-m),s=c.x,u=c.y,t===s&&e===u&&(s+=1,u+=1);var x=(t-s)/2,_=(e-u)/2,w=x*x/(n*n)+_*_/(r*r);w>1&&(w=Math.sqrt(w),n*=w,r*=w);var S=n*n,E=r*r,T=(o===a?-1:1)*Math.sqrt(Math.abs((S*E-S*_*_-E*x*x)/(S*_*_+E*x*x)));d=T*n*_/r+(t+s)/2,g=T*-r*x/n+(e+u)/2,f=Math.asin(((e-g)/r).toFixed(9)),h=Math.asin(((u-g)/r).toFixed(9)),f=t<d?Math.PI-f:f,h=s<d?Math.PI-h:h,f<0&&(f=2*Math.PI+f),h<0&&(h=2*Math.PI+h),a&&f>h&&(f-=2*Math.PI),!a&&h>f&&(h-=2*Math.PI)}var k=h-f;if(Math.abs(k)>v){var C=h,M=s,A=u;h=f+v*(a&&h>f?1:-1),s=d+n*Math.cos(h),u=g+r*Math.sin(h),y=p(s,u,n,r,i,0,a,M,A,[h,C,d,g])}k=h-f;var I=Math.cos(f),O=Math.sin(f),D=Math.cos(h),P=Math.sin(h),L=Math.tan(k/4),N=4/3*n*L,R=4/3*r*L,j=[t,e],F=[t+N*O,e-R*I],B=[s+N*P,u-R*D],z=[s,u];if(F[0]=2*j[0]-F[0],F[1]=2*j[1]-F[1],l)return[F,B,z].concat(y);y=[F,B,z].concat(y).join().split(",");for(var Z=[],U=0,H=y.length;U<H;U++)Z[U]=U%2?b(y[U-1],y[U],m).y:b(y[U],y[U+1],m).x;return Z},g=function(t,e){var n,r=f(t),i=e&&f(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=[],u=[],l="",c="",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(p.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));break;default:break}return t},v=function(t,e){if(t[e].length>7){t[e].shift();var o=t[e];while(o.length)s[e]="A",i&&(u[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]&&(l=r[y][0]),"C"!==l&&(s[y]=l,y&&(c=s[y-1])),r[y]=g(r[y],o,c),"A"!==s[y]&&"C"===l&&(s[y]="C"),v(r,y),i&&(i[y]&&(l=i[y][0]),"C"!==l&&(u[y]=l,y&&(c=u[y-1])),i[y]=g(i[y],a,c),"A"!==u[y]&&"C"===l&&(u[y]="C"),v(i,y)),m(r,i,o,a,y),m(i,r,a,o,y);var b=r[y],x=i&&i[y],_=b.length,w=i&&x.length;o.x=b[_-2],o.y=b[_-1],o.bx=parseFloat(b[_-4])||o.x,o.by=parseFloat(b[_-3])||o.y,a.bx=i&&(parseFloat(x[w-4])||a.x),a.by=i&&(parseFloat(x[w-3])||a.y),a.x=i&&x[w-2],a.y=i&&x[w-1]}return i?[r,i]:r},v=/,?([a-z]),?/gi,m=function(t){return t.join(",").replace(v,"$1")},y=function(t,e,n,r,i){var o=-3*e+9*n-9*r+3*i,a=t*o+6*e-12*n+6*r;return t*a-3*e+3*n},b=function(t,e,n,r,i,o,a,s,u){null===u&&(u=1),u=u>1?1:u<0?0:u;for(var l=u/2,c=12,f=[-.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,p=0;p<c;p++){var g=l*f[p]+l,v=y(g,t,n,i,a),m=y(g,e,r,o,s),b=v*v+m*m;d+=h[p]*Math.sqrt(b)}return l*d},x=function(t,e,n,r,i,o,a,s){for(var u,l,c,f,h=[],d=[[],[]],p=0;p<2;++p)if(0===p?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,c=3*n-3*t):(l=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;f=-c/l,f>0&&f<1&&h.push(f)}else{var g=l*l-4*c*u,v=Math.sqrt(g);if(!(g<0)){var m=(-l+v)/(2*u);m>0&&m<1&&h.push(m);var y=(-l-v)/(2*u);y>0&&y<1&&h.push(y)}}var b,x=h.length,_=x;while(x--)f=h[x],b=1-f,d[0][x]=b*b*b*t+3*b*b*f*n+3*b*f*f*i+f*f*f*a,d[1][x]=b*b*b*e+3*b*b*f*r+3*b*f*f*o+f*f*f*s;return d[0][_]=t,d[1][_]=e,d[0][_+1]=a,d[1][_+1]=s,d[0].length=d[1].length=_+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},_=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 u=(t*r-e*n)*(i-a)-(t-n)*(i*s-o*a),l=(t*r-e*n)*(o-s)-(e-r)*(i*s-o*a),c=(t-n)*(o-s)-(e-r)*(i-a);if(c){var f=u/c,h=l/c,d=+f.toFixed(2),p=+h.toFixed(2);if(!(d<+Math.min(t,n).toFixed(2)||d>+Math.max(t,n).toFixed(2)||d<+Math.min(i,a).toFixed(2)||d>+Math.max(i,a).toFixed(2)||p<+Math.min(e,r).toFixed(2)||p>+Math.max(e,r).toFixed(2)||p<+Math.min(o,s).toFixed(2)||p>+Math.max(o,s).toFixed(2)))return{x:f,y:h}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},S=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=m,o},E=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:S(t,e,n,r),vb:[t,e,n,r].join(" ")}},T=function(t,e){return t=E(t),e=E(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(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)},k=function(t,e,n,r,o,a,s,u){(0,i.isArray)(t)||(t=[t,e,n,r,o,a,s,u]);var l=x.apply(null,t);return E(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},C=function(t,e,n,r,i,o,a,s,u){var l=1-u,c=Math.pow(l,3),f=Math.pow(l,2),h=u*u,d=h*u,p=c*t+3*f*u*n+3*l*u*u*i+d*a,g=c*e+3*f*u*r+3*l*u*u*o+d*s,v=t+2*u*(n-t)+h*(i-2*n+t),m=e+2*u*(r-e)+h*(o-2*r+e),y=n+2*u*(i-n)+h*(a-2*i+n),b=r+2*u*(o-r)+h*(s-2*o+r),x=l*t+u*n,_=l*e+u*r,w=l*i+u*a,S=l*o+u*s,E=90-180*Math.atan2(v-y,m-b)/Math.PI;return{x:p,y:g,m:{x:v,y:m},n:{x:y,y:b},start:{x:x,y:_},end:{x:w,y:S},alpha:E}},M=function(t,e,n){var r=k(t),i=k(e);if(!T(r,i))return n?0:[];for(var o=b.apply(0,t),a=b.apply(0,e),s=~~(o/8),u=~~(a/8),l=[],c=[],f={},h=n?0:[],d=0;d<s+1;d++){var p=C.apply(0,t.concat(d/s));l.push({x:p.x,y:p.y,t:d/s})}for(d=0;d<u+1;d++){p=C.apply(0,e.concat(d/u));c.push({x:p.x,y:p.y,t:d/u})}for(d=0;d<s;d++)for(var g=0;g<u;g++){var v=l[d],m=l[d+1],y=c[g],x=c[g+1],w=Math.abs(m.x-v.x)<.001?"y":"x",S=Math.abs(x.x-y.x)<.001?"y":"x",E=_(v.x,v.y,m.x,m.y,y.x,y.y,x.x,x.y);if(E){if(f[E.x.toFixed(4)]===E.y.toFixed(4))continue;f[E.x.toFixed(4)]=E.y.toFixed(4);var M=v.t+Math.abs((E[w]-v[w])/(m[w]-v[w]))*(m.t-v.t),A=y.t+Math.abs((E[S]-y[S])/(x[S]-y[S]))*(x.t-y.t);M>=0&&M<=1&&A>=0&&A<=1&&(n?h+=1:h.push({x:E.x,y:E.y,t1:M,t2:A}))}}return h},A=function(t,e,n){var r,i,o,a,s,u,l,c,f,h;t=g(t),e=g(e);for(var d=n?0:[],p=0,v=t.length;p<v;p++){var m=t[p];if("M"===m[0])r=s=m[1],i=u=m[2];else{"C"===m[0]?(f=[r,i].concat(m.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,s,u,s,u],r=s,i=u);for(var y=0,b=e.length;y<b;y++){var x=e[y];if("M"===x[0])o=l=x[1],a=c=x[2];else{"C"===x[0]?(h=[o,a].concat(x.slice(1)),o=h[6],a=h[7]):(h=[o,a,o,a,l,c,l,c],o=l,a=c);var _=M(f,h,n);if(n)d+=_;else{for(var w=0,S=_.length;w<S;w++)_[w].segment1=p,_[w].segment2=y,_[w].bez1=f,_[w].bez2=h;d=d.concat(_)}}}}}return d},I=function(t,e){return A(t,e)};function O(t,e){var n=[],r=[];function i(t,e){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&r.push(t[a+1]),o[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];i(o,e)}}return t.length&&i(t,e),{left:n,right:r.reverse()}}function D(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 u=a/(1-a*s),l=O(o,u);i.push(l.left),o=l.right}i.push(o);var c=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]),e}));return c}var P=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(D(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},L=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 u=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(P(t[i],t[i+1],r))}),[]);return u.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||u.push("Z"),u},N=function(t,e){if(t.length!==e.length)return!1;var n=!0;return(0,i.each)(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function R(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 j=function(t,e){var n,r,i=t.length,o=e.length,a=0;if(0===i||0===o)return null;for(var s=[],u=0;u<=i;u++)s[u]=[],s[u][0]={min:u};for(var l=0;l<=o;l++)s[0][l]={min:l};for(u=1;u<=i;u++){n=t[u-1];for(l=1;l<=o;l++){r=e[l-1],a=N(n,r)?0:1;var c=s[u-1][l].min+1,f=s[u][l-1].min+1,h=s[u-1][l-1].min+a;s[u][l]=R(c,f,h)}}return s},F=function(t,e){var n=j(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i].min!==r){for(var u=1;u<=r;u++){var l=n[u][u].min;s=u;for(var c=a;c<=i;c++)n[u][c].min<l&&(l=n[u][c].min,s=c);a=s,n[u][a].type&&o.push({index:u-1,type:n[u][a].type})}for(u=o.length-1;u>=0;u--)a=o[u].index,"add"===o[u].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}r=t.length;var f=i-r;if(r<i)for(u=0;u<f;u++)"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 B(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=z(e)[0],s=1;s<=n;s++)o*=s,r=Math.floor(t.length*o),0===r?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 z(t){var e=[];switch(t[0]){case"M":e.push([t[1],t[2]]);break;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":e.push([t[1],t[1]]);break;case"V":e.push([t[1],t[1]]);break;default:}return e}var Z=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=z(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=B(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=B(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=B(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},U=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(){var t=this.type;return"[Event (type="+t+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}(),H=U,$=n(97582),G=n(90494);function W(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var V="undefined"!==typeof window&&"undefined"!==typeof window.document;function Y(t,e){if(t.isCanvas())return!0;var n=e.getParent(),r=!1;while(n){if(n===t){r=!0;break}n=n.getParent()}return r}function X(t){return t.cfg.visible&&t.cfg.capture}var q=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=(0,i.mix)(r,e),n}return(0,$.__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}(G.Z),K=q,J=n(43631),Q=n(31506),tt=n(41482),et=Q.vs,nt="matrix",rt=["zIndex","capture","visible","type"],it=["repeat"],ot=":",at="*";function st(t){for(var e=[],n=0;n<t.length;n++)(0,i.isArray)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}function ut(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function lt(t,e){var n={},r=e.attr();return(0,i.each)(t,(function(t,e){-1!==it.indexOf(e)||(0,i.isEqual)(r[e],t)||(n[e]=t)})),n}function ct(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return(0,i.each)(t,(function(t){n+r<t.startTime+t.delay+t.duration&&o>t.delay&&(0,i.each)(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var ft=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return(0,i.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return(0,$.__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((0,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={},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?(W(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr(nt,this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr(nt)},e.prototype.setMatrix=function(t){this.attr(nt,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?(0,tt.xq)(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?(0,tt.xq)(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?(0,tt.rG)(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=(0,tt.U_)(e);if(n)return(0,tt.rG)(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase(),o=(0,i.upperFirst)(t.type),a=r[o];a&&(n=new a({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={};(0,i.each)(e,(function(t,r){(0,i.isArray)(e[r])?n[r]=st(e[r]):n[r]=e[r]}));var r=this.constructor,o=new r({attrs:n});return(0,i.each)(rt,(function(e){o.set(e,t.get(e))})),o},e.prototype.destroy=function(){var e=this.destroyed;e||(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,u,l,c=t[0],f=t[1],h=t[2],d=void 0===h?"easeLinear":h,p=t[3],g=void 0===p?i.noop:p,v=t[4],m=void 0===v?0:v;(0,i.isFunction)(c)?(o=c,c={}):(0,i.isObject)(c)&&c.onFrame&&(o=c.onFrame,a=c.repeat),(0,i.isObject)(f)?(l=f,f=l.duration,d=l.easing||"easeLinear",m=l.delay||0,a=l.repeat||a||!1,g=l.callback||i.noop,s=l.pauseCallback||i.noop,u=l.resumeCallback||i.noop):((0,i.isNumber)(g)&&(m=g,g=null),(0,i.isFunction)(d)?(g=d,d="easeLinear"):d=d||"easeLinear");var y=lt(c,this),b={fromAttrs:ut(y,this),toAttrs:y,duration:f,easing:d,repeat:a,callback:g,pauseCallback:s,resumeCallback:u,delay:m,startTime:n.getTime(),id:(0,i.uniqueId)(),onFrame:o,pathFormatted:!1};r.length>0?r=ct(r,b):n.addAnimator(this),r.push(b),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");(0,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(0,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"),e=t.getTime(),n=this.get("animations"),r=this.get("_pause").pauseTime;return(0,i.each)(n,(function(t){t.startTime=t.startTime+(e-r),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",n),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 a=function(t){var a=o[t],u=a.get("name");if(u){if((a.isGroup()||a.isCanvas&&a.isCanvas())&&n&&Y(a,n))return"break";(0,i.isArray)(u)?(0,i.each)(u,(function(t){r.emitDelegateEvent(a,t,e)})):s.emitDelegateEvent(a,u,e)}},s=this,u=0;u<o.length;u++){var l=a(u);if("break"===l)break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+ot+n.type;(r[i]||r[at])&&(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=et(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=et(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=et(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=et(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=et(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(K),ht=ft,dt={},pt="_INDEX";function gt(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){gt(t,e)}))}}function vt(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){vt(t,e)}))}}function mt(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),W(t.getChildren(),e)}function yt(t){return function(e,n){var r=t(e,n);return 0===r?e[pt]-n[pt]:r}}var bt,xt,_t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,$.__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,o=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));o.length>0?(0,i.each)(o,(function(i){var o=i.getBBox(),a=o.minX,s=o.maxX,u=o.minY,l=o.maxY;a<t&&(t=a),s>e&&(e=s),u<n&&(n=u),l>r&&(r=l)})):(t=0,e=0,n=0,r=0);var a={x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n};return a},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,o=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));o.length>0?(0,i.each)(o,(function(i){var o=i.getCanvasBBox(),a=o.minX,s=o.maxX,u=o.minY,l=o.maxY;a<t&&(t=a),s>e&&(e=s),u<n&&(n=u),l>r&&(r=l)})):(t=0,e=0,n=0,r=0);var a={x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n};return a},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();(0,i.each)(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];(0,i.isObject)(n)?r=n:r["type"]=n;var o=dt[r.type];o||(o=(0,i.upperFirst)(r.type),dt[r.type]=o);var a=this.getShapeBase(),s=new a[o](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],o=t[1];if((0,i.isFunction)(r))n=new r(o||{parent:this});else{var a=r||{},s=this.getGroupBase();n=new s(a)}return this.add(n),n},e.prototype.getCanvas=function(){var t;return t=this.isCanvas()?this:this.get("canvas"),t},e.prototype.getShape=function(t,e,n){if(!X(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(r=this._findShape(i,o[0],o[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,o=t.length-1;o>=0;o--){var a=t[o];if(X(a)&&(a.isGroup()?i=a.getShape(e,n,r):a.isHit(e,n)&&(i=a)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&mt(i,t,!1),t.set("parent",this),e&&gt(t,e),r&&vt(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=this.getChildren();(0,i.each)(t,(function(t,e){return t[pt]=e,t})),t.sort(yt((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),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){var e=this.getChildren();return e[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var e=this.getChildren();return e.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(0,i.each)(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(0,i.each)(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}(ht),wt=_t,St=0,Et=0,Tt=0,kt=1e3,Ct=0,Mt=0,At=0,It="object"===typeof performance&&performance.now?performance:Date,Ot="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Dt(){return Mt||(Ot(Pt),Mt=It.now()+At)}function Pt(){Mt=0}function Lt(){this._call=this._time=this._next=null}function Nt(t,e,n){var r=new Lt;return r.restart(t,e,n),r}function Rt(){Dt(),++St;var t,e=bt;while(e)(t=Mt-e._time)>=0&&e._call.call(null,t),e=e._next;--St}function jt(){Mt=(Ct=It.now())+At,St=Et=0;try{Rt()}finally{St=0,Bt(),Mt=0}}function Ft(){var t=It.now(),e=t-Ct;e>kt&&(At-=e,Ct=t)}function Bt(){var t,e,n=bt,r=1/0;while(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:bt=e);xt=t,zt(r)}function zt(t){if(!St){Et&&(Et=clearTimeout(Et));var e=t-Mt;e>24?(t<1/0&&(Et=setTimeout(jt,t-It.now()-At)),Tt&&(Tt=clearInterval(Tt))):(Tt||(Ct=It.now(),Tt=setInterval(Ft,kt)),St=1,Ot(jt))}}Lt.prototype=Nt.prototype={constructor:Lt,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?Dt():+n)+(null==e?0:+e),this._next||xt===this||(xt?xt._next=this:bt=this,xt=this),this._call=t,this._time=n,zt()},stop:function(){this._call&&(this._call=null,this._time=1/0,zt())}};var Zt=n(45326),Ut=n(51606),Ht=n(94588),$t={};function Gt(t){return $t[t.toLowerCase()]||Ht[t]}var Wt=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},Vt=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},Yt=[1,0,0,0,1,0,0,0,1];function Xt(t,e,n){var r={},o=e.fromAttrs,a=e.toAttrs;if(!t.destroyed){var s;for(var l in a)if(!(0,i.isEqual)(o[l],a[l]))if("path"===l){var c=a[l],f=o[l];c.length>f.length?(c=u(a[l]),f=u(o[l]),f=F(f,c),f=Z(f,c),e.fromAttrs.path=f,e.toAttrs.path=c):e.pathFormatted||(c=u(a[l]),f=u(o[l]),f=Z(f,c),e.fromAttrs.path=f,e.toAttrs.path=c,e.pathFormatted=!0),r[l]=[];for(var h=0;h<c.length;h++){for(var d=c[h],p=f[h],g=[],v=0;v<d.length;v++)(0,i.isNumber)(d[v])&&p&&(0,i.isNumber)(p[v])?(s=(0,Zt.Z)(p[v],d[v]),g.push(s(n))):g.push(d[v]);r[l].push(g)}}else if("matrix"===l){var m=(0,Ut.Z)(o[l]||Yt,a[l]||Yt),y=m(n);r[l]=y}else Wt(l)&&Vt(a[l])?r[l]=a[l]:(0,i.isFunction)(a[l])||(s=(0,Zt.Z)(o[l],a[l]),r[l]=s(n));t.attr(r)}}function qt(t,e,n){var r,i=e.startTime,o=e.delay;if(n<i+o||e._paused)return!1;var a=e.duration,s=e.easing,u=Gt(s);if(n=n-i-e.delay,e.repeat)r=n%a/a,r=u(r);else{if(r=n/a,!(r<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=u(r)}if(e.onFrame){var l=e.onFrame(r);t.attr(l)}else Xt(t,e,r);return!1}var Kt=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,i=!1;this.timer=Nt((function(o){if(r.current=o,r.animators.length>0){for(var a=r.animators.length-1;a>=0;a--)if(t=r.animators[a],t.destroyed)r.removeAnimator(a);else{if(!t.isAnimatePaused()){e=t.get("animations");for(var s=e.length-1;s>=0;s--)n=e[s],i=qt(t,n,o),i&&(e.splice(s,1),i=!1,n.callback&&n.callback())}0===e.length&&r.removeAnimator(a)}var u=r.canvas.get("autoDraw");u||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}(),Jt=Kt,Qt=40,te=0,ee=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function ne(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function re(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&&Y(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var ie=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){var n=e.canvas,r=n.get("el");if(r!==t.target&&(e.dragging||e.currentShape)){var i=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,i,e.draggingShape)}},this._onDocumentMouseUp=function(t){var n=e.canvas,r=n.get("el");if(r!==t.target&&e.dragging){var i=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,i,null),e._emitEvent("dragend",t,i,e.draggingShape),e._afterDrag(e.draggingShape,i,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");(0,i.each)(ee,(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");(0,i.each)(ee,(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 H(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,u=s.get("el");u.style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){n.button===te&&(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(n.button===te){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,u=n.timeStamp,l=u-this.mousedownTimeStamp,c=a.clientX-t.clientX,f=a.clientY-t.clientY,h=c*c+f*f;l>120||h>Qt?s&&s.get("draggable")?(o=this.mousedownShape,o.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,ne(r,t,a);var s=r.getParent();while(s)s.emitDelegation(t,a),a.propagationStopped||re(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{var u=this.canvas;ne(u,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}(),oe=ie,ae="px",se=(0,J.qY)(),ue=se&&"firefox"===se.name,le=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,$.__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");(0,i.isString)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var e=this.get("container");e.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new oe({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Jt(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");V&&(n.style.width=t+ae,n.style.height=e+ae)},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");V&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(ue&&!(0,i.isNil)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!(0,i.isNil)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),r=n.x,o=n.y;return this.getPointByClient(r,o)},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"),r=n.getBoundingClientRect();return{x:t-r.left,y:e-r.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el"),r=n.getBoundingClientRect();return{x:t+r.left,y:e+r.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.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}(wt),ce=le,fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,$.__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}(wt),he=fe,de=function(t){function e(e){return t.call(this,e)||this}return(0,$.__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,o=t.maxY;if(e){var a=(0,tt.rG)(e,[t.minX,t.minY]),s=(0,tt.rG)(e,[t.maxX,t.minY]),u=(0,tt.rG)(e,[t.minX,t.maxY]),l=(0,tt.rG)(e,[t.maxX,t.maxY]);n=Math.min(a[0],s[0],u[0],l[0]),i=Math.max(a[0],s[0],u[0],l[0]),r=Math.min(a[1],s[1],u[1],l[1]),o=Math.max(a[1],s[1],u[1],l[1])}var c=this.attrs;if(c.shadowColor){var f=c.shadowBlur,h=void 0===f?0:f,d=c.shadowOffsetX,p=void 0===d?0:d,g=c.shadowOffsetY,v=void 0===g?0:g,m=n-h+p,y=i+h+p,b=r-h+v,x=o+h+v;n=Math.min(n,m),i=Math.max(i,y),r=Math.min(r,b),o=Math.max(o,x)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:o,width:i-n,height:o-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];i=this.invertFromMatrix(i);var o=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}(ht),pe=de,ge=new Map;function ve(t,e){ge.set(t,e)}function me(t){return ge.get(t)}function ye(t){var e=t.attr(),n=e.x,r=e.y,i=e.width,o=e.height;return{x:n,y:r,width:i,height:o}}function be(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}}var xe=n(32793),_e=n(73216);function we(t){for(var e=t.attr(),n=e.points,r=[],i=[],o=0;o<n.length;o++){var a=n[o];r.push(a[0]),i.push(a[1])}var s=xe.Zr.getBBoxByArray(r,i),u=s.x,l=s.y,c=s.width,f=s.height,h={minX:u,minY:l,maxX:u+c,maxY:l+f};return h=(0,_e.J)(t,h),{x:h.minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}function Se(t){for(var e=t.attr(),n=e.points,r=[],i=[],o=0;o<n.length;o++){var a=n[o];r.push(a[0]),i.push(a[1])}return xe.Zr.getBBoxByArray(r,i)}var Ee=n(67052);function Te(t,e,n){var r=1;if((0,i.isString)(t)&&(r=t.split("\n").length),r>1){var o=ke(e,n);return e*r+o*(r-1)}return e}function ke(t,e){return e?e-t:.14*t}function Ce(t,e){var n=(0,Ee.L)(),r=0;if((0,i.isNil)(t)||""===t)return r;if(n.save(),n.font=e,(0,i.isString)(t)&&t.includes("\n")){var o=t.split("\n");(0,i.each)(o,(function(t){var e=n.measureText(t).width;r<e&&(r=e)}))}else r=n.measureText(t).width;return n.restore(),r}function Me(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()}function Ae(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=Me(e));var u,l=Ce(i,s);if(l){var c=e.textAlign,f=e.textBaseline,h=Te(i,o,a),d={x:n,y:r-h};c&&("end"===c||"right"===c?d.x-=l:"center"===c&&(d.x-=l/2)),f&&("top"===f?d.y+=h:"middle"===f&&(d.y+=h/2)),u={x:d.x,y:d.y,width:l,height:h}}else u={x:n,y:r,width:0,height:0};return u}var Ie=n(33903);function Oe(t,e){for(var n=[],r=[],o=[],a=0;a<t.length;a++){var s=t[a],u=s.currentPoint,l=s.params,c=s.prePoint,f=void 0;switch(s.command){case"Q":f=xe.lD.box(c[0],c[1],l[1],l[2],l[3],l[4]);break;case"C":f=xe.Ll.box(c[0],c[1],l[1],l[2],l[3],l[4],l[5],l[6]);break;case"A":var h=s.arcParams;f=xe.wN.box(h.cx,h.cy,h.rx,h.ry,h.xRotation,h.startAngle,h.endAngle);break;default:n.push(u[0]),r.push(u[1]);break}f&&(s.box=f,n.push(f.x,f.x+f.width),r.push(f.y,f.y+f.height)),e&&("L"===s.command||"M"===s.command)&&s.prePoint&&s.nextPoint&&o.push(s)}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=(0,i.min)(n),p=(0,i.min)(r),g=(0,i.max)(n),v=(0,i.max)(r);if(0===o.length)return{x:d,y:p,width:g-d,height:v-p};for(a=0;a<o.length;a++){s=o[a],u=s.currentPoint;var m=void 0;u[0]===d?(m=De(s,e),d-=m.xExtra):u[0]===g&&(m=De(s,e),g+=m.xExtra),u[1]===p?(m=De(s,e),p-=m.yExtra):u[1]===v&&(m=De(s,e),v+=m.yExtra)}return{x:d,y:p,width:g-d,height:v-p}}function De(t,e){var n=t.prePoint,r=t.currentPoint,o=t.nextPoint,a=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),s=Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2),u=Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2),l=Math.acos((a+s-u)/(2*Math.sqrt(a)*Math.sqrt(s)));if(!l||0===Math.sin(l)||(0,i.isNumberEqual)(l,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(o[1]-r[1],o[0]-r[0])),f=Math.abs(Math.atan2(o[0]-r[0],o[1]-r[1]));c=c>Math.PI/2?Math.PI-c:c,f=f>Math.PI/2?Math.PI-f:f;var h={xExtra:Math.cos(l/2-c)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(f-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0};return h}function Pe(t){var e=t.attr(),n=e.path,r=e.stroke,i=r?e.lineWidth:0,o=t.get("segments")||(0,Ie.zx)(n),a=Oe(o,i),s=a.x,u=a.y,l=a.width,c=a.height,f={minX:s,minY:u,maxX:s+l,maxY:u+c};return f=(0,_e.J)(t,f),{x:f.minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}function Le(t){var e=t.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=Math.min(n,i),s=Math.max(n,i),u=Math.min(r,o),l=Math.max(r,o),c={minX:a,maxX:s,minY:u,maxY:l};return c=(0,_e.J)(t,c),{x:c.minX,y:c.minY,width:c.maxX-c.minX,height:c.maxY-c.minY}}function Ne(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}}ve("rect",ye),ve("image",ye),ve("circle",be),ve("marker",be),ve("polyline",we),ve("polygon",Se),ve("text",Ae),ve("path",Pe),ve("line",Le),ve("ellipse",Ne)},41482:function(t,e,n){"use strict";function r(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],f=t[8],h=e[0],d=e[1],p=e[2],g=e[3],v=e[4],m=e[5],y=e[6],b=e[7],x=e[8];return n[0]=h*r+d*a+p*l,n[1]=h*i+d*s+p*c,n[2]=h*o+d*u+p*f,n[3]=g*r+v*a+m*l,n[4]=g*i+v*s+m*c,n[5]=g*o+v*u+m*f,n[6]=y*r+b*a+x*l,n[7]=y*i+b*s+x*c,n[8]=y*o+b*u+x*f,n}function i(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}function o(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],l=t[7],c=t[8],f=c*a-s*l,h=-c*o+s*u,d=l*o-a*u,p=n*f+r*h+i*d;return p?(p=1/p,e[0]=f*p,e[1]=(-c*r+i*l)*p,e[2]=(s*r-i*a)*p,e[3]=h*p,e[4]=(c*n-i*u)*p,e[5]=(-s*n+i*o)*p,e[6]=d*p,e[7]=(-l*n+r*u)*p,e[8]=(a*n-r*o)*p,e):null}n.d(e,{U_:function(){return o},rG:function(){return i},xq:function(){return r}})},67052:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});var r=null;function i(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}},66769:function(t,e,n){"use strict";n.d(e,{Canvas:function(){return Vt}});var r={};n.r(r),n.d(r,{Base:function(){return J},Circle:function(){return tt},Ellipse:function(){return rt},Image:function(){return at},Line:function(){return ct},Marker:function(){return pt},Path:function(){return It},Polygon:function(){return Pt},Polyline:function(){return Nt},Rect:function(){return Bt},Text:function(){return Zt}});var i=n(97582),o=n(80328),a=n(55817);function s(){return window?window.devicePixelRatio:1}function u(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function l(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r}function c(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function f(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 h(t,e){return t[0]===e[0]&&t[1]===e[1]}var d=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,p=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,g=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,v=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function m(t,e){var n=t.match(v);(0,a.each)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function y(t,e,n){var r,i,o=d.exec(n),a=parseFloat(o[1])%360*(Math.PI/180),s=o[2],u=e.getBBox();a>=0&&a<.5*Math.PI?(r={x:u.minX,y:u.minY},i={x:u.maxX,y:u.maxY}):.5*Math.PI<=a&&a<Math.PI?(r={x:u.maxX,y:u.minY},i={x:u.minX,y:u.maxY}):Math.PI<=a&&a<1.5*Math.PI?(r={x:u.maxX,y:u.maxY},i={x:u.minX,y:u.minY}):(r={x:u.minX,y:u.maxY},i={x:u.maxX,y:u.minY});var l=Math.tan(a),c=l*l,f=(i.x-r.x+l*(i.y-r.y))/(c+1)+r.x,h=l*(i.x-r.x+l*(i.y-r.y))/(c+1)+r.y,p=t.createLinearGradient(r.x,r.y,f,h);return m(s,p),p}function b(t,e,n){var r=p.exec(n),i=parseFloat(r[1]),o=parseFloat(r[2]),a=parseFloat(r[3]),s=r[4];if(0===a){var u=s.match(v);return u[u.length-1].split(":")[1]}var l=e.getBBox(),c=l.maxX-l.minX,f=l.maxY-l.minY,h=Math.sqrt(c*c+f*f)/2,d=t.createRadialGradient(l.minX+c*i,l.minY+f*o,0,l.minX+c/2,l.minY+f/2,a*h);return m(s,d),d}function x(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,o=g.exec(n),a=o[1],s=o[2];function u(){r=t.createPattern(i,a),e.set("pattern",r),e.set("patternSource",n)}switch(a){case"a":a="repeat";break;case"x":a="repeat-x";break;case"y":a="repeat-y";break;case"n":a="no-repeat";break;default:a="no-repeat"}return i=new Image,s.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=s,i.complete?u():(i.onload=u,i.src=i.src),r}function _(t,e,n){var r=e.getBBox();if(isNaN(r.x)||isNaN(r.y)||isNaN(r.width)||isNaN(r.height))return n;if((0,a.isString)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return y(t,e,n);if("r"===n[0])return b(t,e,n);if("p"===n[0])return x(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0}function w(t){var e=0,n=0,r=0,i=0;return(0,a.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,[e,n,r,i]}function S(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function E(t,e){return S(t)*S(e)?(t[0]*e[0]+t[1]*e[1])/(S(t)*S(e)):1}function T(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(E(t,e))}function k(t,e){var n=e[1],r=e[2],i=(0,a.mod)((0,a.toRadian)(e[3]),2*Math.PI),o=e[4],s=e[5],u=t[0],l=t[1],c=e[6],f=e[7],d=Math.cos(i)*(u-c)/2+Math.sin(i)*(l-f)/2,p=-1*Math.sin(i)*(u-c)/2+Math.cos(i)*(l-f)/2,g=d*d/(n*n)+p*p/(r*r);g>1&&(n*=Math.sqrt(g),r*=Math.sqrt(g));var v=n*n*(p*p)+r*r*(d*d),m=v?Math.sqrt((n*n*(r*r)-v)/v):1;o===s&&(m*=-1),isNaN(m)&&(m=0);var y=r?m*n*p/r:0,b=n?m*-r*d/n:0,x=(u+c)/2+Math.cos(i)*y-Math.sin(i)*b,_=(l+f)/2+Math.sin(i)*y+Math.cos(i)*b,w=[(d-y)/n,(p-b)/r],S=[(-1*d-y)/n,(-1*p-b)/r],k=T([1,0],w),C=T(w,S);return E(w,S)<=-1&&(C=Math.PI),E(w,S)>=1&&(C=0),0===s&&C>0&&(C-=2*Math.PI),1===s&&C<0&&(C+=2*Math.PI),{cx:x,cy:_,rx:h(t,[c,f])?0:n,ry:h(t,[c,f])?0:r,startAngle:k,endAngle:k+C,xRotation:i,arcFlag:o,sweepFlag:s}}var C=Math.sin,M=Math.cos,A=Math.atan2,I=Math.PI;function O(t,e,n,r,i,o,a){var s=e.stroke,u=e.lineWidth,l=n-i,c=r-o,f=A(c,l),h=new It({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*M(I/6)+","+10*C(I/6)+" L0,0 L"+10*M(I/6)+",-"+10*C(I/6),stroke:s,lineWidth:u}});h.translate(i,o),h.rotateAtPoint(i,o,f),t.set(a?"startArrowShape":"endArrowShape",h)}function D(t,e,n,r,o,a,s){var u=e.startArrow,l=e.endArrow,c=e.stroke,f=e.lineWidth,h=s?u:l,d=h.d,p=h.fill,g=h.stroke,v=h.lineWidth,m=(0,i.__rest)(h,["d","fill","stroke","lineWidth"]),y=n-o,b=r-a,x=A(b,y);d&&(o-=M(x)*d,a-=C(x)*d);var _=new It({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:(0,i.__assign)((0,i.__assign)({},m),{stroke:g||c,lineWidth:v||f,fill:p})});_.translate(o,a),_.rotateAtPoint(o,a,x),t.set(s?"startArrowShape":"endArrowShape",_)}function P(t,e,n,r,i){var o=A(r-e,n-t);return{dx:M(o)*i,dy:C(o)*i}}function L(t,e,n,r,i,o){"object"===typeof e.startArrow?D(t,e,n,r,i,o,!0):e.startArrow?O(t,e,n,r,i,o,!0):t.set("startArrowShape",null)}function N(t,e,n,r,i,o){"object"===typeof e.endArrow?D(t,e,n,r,i,o,!1):e.endArrow?O(t,e,n,r,i,o,!1):t.set("startArrowShape",null)}var R={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function j(t,e){var n=e.attr();for(var r in n){var i=n[r],o=R[r]?R[r]:r;"matrix"===o&&i?t.transform(i[0],i[1],i[3],i[4],i[6],i[7]):"lineDash"===o&&t.setLineDash?(0,a.isArray)(i)&&t.setLineDash(i):("strokeStyle"===o||"fillStyle"===o?i=_(t,e,i):"globalAlpha"===o&&(i*=t.globalAlpha),t[o]=i)}}function F(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw()}}function B(t,e,n){var r=t.get("refreshElements");(0,a.each)(r,(function(e){if(e!==t){var n=e.cfg.parent;while(n&&n!==t&&!n.cfg.refresh)n.cfg.refresh=!0,n=n.cfg.parent}})),r[0]===t?U(e,n):z(e,n)}function z(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.cfg.visible)if(r.cfg.hasChanged)r.cfg.refresh=!0,r.isGroup()&&U(r.cfg.children,e);else if(r.cfg.refresh)r.isGroup()&&z(r.cfg.children,e);else{var i=H(r,e);r.cfg.refresh=i,i&&r.isGroup()&&z(r.cfg.children,e)}}}function Z(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&Z(n.cfg.children)}}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 H(t,e){var n=t.cfg.cacheCanvasBBox,r=t.cfg.isInView&&n&&c(n,e);return r}function $(t,e,n,r){var i=n.path,o=n.startArrow,a=n.endArrow;if(i){var s=[0,0],u=[0,0],l={dx:0,dy:0};e.beginPath();for(var c=0;c<i.length;c++){var f=i[c],h=f[0];if(0===c&&o&&o.d){var d=t.getStartTangent();l=P(d[0][0],d[0][1],d[1][0],d[1][1],o.d)}else if(c===i.length-2&&"Z"===i[c+1][0]&&a&&a.d){var p=i[c+1];if("Z"===p[0]){d=t.getEndTangent();l=P(d[0][0],d[0][1],d[1][0],d[1][1],a.d)}}else if(c===i.length-1&&a&&a.d&&"Z"!==i[0]){d=t.getEndTangent();l=P(d[0][0],d[0][1],d[1][0],d[1][1],a.d)}var g=l.dx,v=l.dy;switch(h){case"M":e.moveTo(f[1]-g,f[2]-v),u=[f[1],f[2]];break;case"L":e.lineTo(f[1]-g,f[2]-v);break;case"Q":e.quadraticCurveTo(f[1],f[2],f[3]-g,f[4]-v);break;case"C":e.bezierCurveTo(f[1],f[2],f[3],f[4],f[5]-g,f[6]-v);break;case"A":var m=void 0;r?(m=r[c],m||(m=k(s,f),r[c]=m)):m=k(s,f);var y=m.cx,b=m.cy,x=m.rx,_=m.ry,w=m.startAngle,S=m.endAngle,E=m.xRotation,T=m.sweepFlag;if(e.ellipse)e.ellipse(y,b,x,_,E,w,S,1-T);else{var C=x>_?x:_,M=x>_?1:x/_,A=x>_?_/x:1;e.translate(y,b),e.rotate(E),e.scale(M,A),e.arc(0,0,C,w,S,1-T),e.scale(1/M,1/A),e.rotate(-E),e.translate(-y,-b)}break;case"Z":e.closePath();break;default:break}if("Z"===h)s=u;else{var I=f.length;s=[f[I-2],f[I-1]]}}}}function G(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())))}function W(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=f(n,i):r?e=n:o&&(e=i)}return e}function V(t){if(!t.length)return null;var e=[],n=[],r=[],i=[];return(0,a.each)(t,(function(t){var o=W(t);o&&(e.push(o.minX),n.push(o.minY),r.push(o.maxX),i.push(o.maxY))})),{minX:(0,a.min)(e),minY:(0,a.min)(n),maxX:(0,a.max)(r),maxY:(0,a.max)(i)}}function Y(t,e){return t&&e&&c(t,e)?{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)}:null}var X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.onCanvasChange=function(t){G(this,t)},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),j(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];(0,a.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=(0,a.min)(e),o=(0,a.max)(e),s=(0,a.min)(n),u=(0,a.max)(n);r={minX:i,minY:s,x:i,y:s,maxX:o,maxY:u,width:o-i,height:u-s};var l=this.cfg.canvas;if(l){var f=l.getViewRange();this.set("isInView",c(r,f))}}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(),j(t,this),this._applyClip(t,this.getClip()),F(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}(o.AbstractGroup),q=X,K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return q},e.prototype.onCanvasChange=function(t){G(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=(0,o.getBBoxMethod)(t),r=n(this),i=e/2,a=r.x-i,s=r.y-i,u=r.x+r.width+i,l=r.y+r.height+i;return{x:a,minX:a,y:s,minY:s,width:r.width+e,height:r.height+e,maxX:u,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(),j(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(!c(e,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),j(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=c(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()&&((0,a.isNil)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&((0,a.isNil)(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),J=K,Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,s=o.y,l=o.r,c=i/2,f=u(a,s,t,e);return r&&n?f<=l+c:r?f<=l:!!n&&(f>=l-c&&f<=l+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}(J),tt=Q;function et(t,e,n,r){return t/(n*n)+e/(r*r)}var nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,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,u=o.y,l=o.rx,c=o.ry,f=(t-s)*(t-s),h=(e-u)*(e-u);return r&&n?et(f,h,l+a,c+a)<=1:r?et(f,h,l,c)<=1:!!n&&(et(f,h,l-a,c-a)>=1&&et(f,h,l+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,u=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,u),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(J),rt=nt;function it(t){return t instanceof HTMLElement&&(0,a.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,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((0,a.isString)(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)):it(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,u=e.sy,l=e.swidth,c=e.sheight,f=e.img;(f instanceof Image||it(f))&&((0,a.isNil)(s)||(0,a.isNil)(u)||(0,a.isNil)(l)||(0,a.isNil)(c)?t.drawImage(f,n,r,i,o):t.drawImage(f,s,u,l,c,n,r,i,o))},e}(J),at=ot,st=n(32793);function ut(t,e,n,r,i,o,a){var s=Math.min(t,n),u=Math.max(t,n),l=Math.min(e,r),c=Math.max(e,r),f=i/2;return o>=s-f&&o<=u+f&&a>=l-f&&a<=c+f&&st.x1.pointToLine(t,e,n,r,o,a)<=i/2}var lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,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&&L(this,t,r,i,e,n),a&&N(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr(),a=o.x1,s=o.y1,u=o.x2,l=o.y2;return ut(a,s,u,l,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,u={dx:0,dy:0},l={dx:0,dy:0};a&&a.d&&(u=P(n,r,i,o,e.startArrow.d)),s&&s.d&&(l=P(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+u.dx,r+u.dy),t.lineTo(i-l.dx,o-l.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 st.x1.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 st.x1.pointAt(n,r,i,o,t)},e}(J),ct=lt,ft=n(33903),ht={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"]]}},dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,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(0,a.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",u=this._getR(r);if((0,a.isFunction)(s))t=s,n=t(i,o,u),n=(0,ft.wb)(n);else{if(t=e.Symbols[s],!t)return console.warn(s+" marker is not supported."),null;n=t(i,o,u)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");$(this,t,{path:e},n)},e.Symbols=ht,e}(J),pt=dt;function gt(t,e,n){var r=(0,o.getOffScreenContext)();return t.createPath(r),r.isPointInPath(e,n)}var vt=1e-6;function mt(t){return Math.abs(t)<vt?0:t<0?-1:1}function yt(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 bt(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(yt(a,s,[e,n]))return!0;mt(a[1]-n)>0!==mt(s[1]-n)>0&&mt(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}var xt=n(31506),_t=n(77160);function wt(t,e,n,r,i,o,a,s){var l=(Math.atan2(s-e,a-t)+2*Math.PI)%(2*Math.PI);if(l<r||l>i)return!1;var c={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return u(c.x,c.y,a,s)<=o/2}var St=xt.vs;function Et(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r],o=i[0];if("C"===o||"A"===o||"Q"===o){e=!0;break}}return e}function Tt(t,e,n,r,i){for(var o=!1,a=e/2,s=0;s<t.length;s++){var u=t[s],c=u.currentPoint,f=u.params,h=u.prePoint,d=u.box;if(!d||l(d.x-a,d.y-a,d.width+e,d.height+e,n,r)){switch(u.command){case"L":case"Z":o=ut(h[0],h[1],c[0],c[1],e,n,r);break;case"Q":var p=st.lD.pointDistance(h[0],h[1],f[1],f[2],f[3],f[4],n,r);o=p<=e/2;break;case"C":var g=st.Ll.pointDistance(h[0],h[1],f[1],f[2],f[3],f[4],f[5],f[6],n,r,i);o=g<=e/2;break;case"A":var v=u.arcParams,m=v.cx,y=v.cy,b=v.rx,x=v.ry,_=v.startAngle,w=v.endAngle,S=v.xRotation,E=[n,r,1],T=b>x?b:x,k=b>x?1:b/x,C=b>x?x/b:1,M=St(null,[["t",-m,-y],["r",-S],["s",1/k,1/C]]);_t.transformMat3(E,E,M),o=wt(0,0,T,_,w,e,E[0],E[1]);break;default:break}if(o)break}}return o}function kt(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}}var Ct=(0,i.__assign)({hasArc:Et,extractPolygons:kt,isPointInStroke:Tt},o.PathUtil);function Mt(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];if(r=bt(o,e,n),r)break}return r}var At=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,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=(0,ft.wb)(t);var e=Ct.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=(0,ft.zx)(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();L(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){r=this.getEndTangent();N(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 u=this.getTotalLength();s=Ct.isPointInStroke(o,i,t,e,u)}if(!s&&r)if(a)s=gt(this,t,e);else{var l=this.attr("path"),c=Ct.extractPolygons(l);s=Mt(c.polygons,t,e)||Mt(c.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");$(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(0,a.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;(0,a.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((0,a.isNil)(o)||(0,a.isNil)(n))return null;var s=o.length,u=i[n+1];return st.Ll.pointAt(o[s-2],o[s-1],u[1],u[2],u[3],u[4],u[5],u[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",Ct.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,o=0,s=[],u=this.get("curve");u&&((0,a.each)(u,(function(t,e){n=u[e+1],r=t.length,n&&(i+=st.Ll.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?((0,a.each)(u,(function(a,l){n=u[l+1],r=a.length,n&&(t=[],t[0]=o/i,e=st.Ll.length(a[r-2],a[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/i,s.push(t))})),this.set("tCache",s)):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}(J),It=At;function Ot(t,e,n,r,i){var o=t.length;if(o<2)return!1;for(var a=0;a<o-1;a++){var s=t[a][0],u=t[a][1],l=t[a+1][0],c=t[a+1][1];if(ut(s,u,l,c,e,n,r))return!0}if(i){var f=t[0],h=t[o-1];if(ut(f[0],f[1],h[0],h[1],e,n,r))return!0}return!1}var Dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr().points,a=!1;return n&&(a=Ot(o,i,t,e,!0)),!a&&r&&(a=bt(o,t,e)),a},e.prototype.createPath=function(t){var e=this.attr(),n=e.points;if(!(n.length<2)){t.beginPath();for(var r=0;r<n.length;r++){var i=n[r];0===r?t.moveTo(i[0],i[1]):t.lineTo(i[0],i[1])}t.closePath()}},e}(J),Pt=Dt,Lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,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],u=n[o-1][0],l=n[o-1][1];r&&L(this,t,n[1][0],n[1][1],a,s),i&&N(this,t,n[o-2][0],n[o-2][1],u,l)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr().points;return Ot(o,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=n[0][0],s=n[0][1],u=n[o-1][0],l=n[o-1][1];if(r&&r.d){var c=P(a,s,n[1][0],n[1][1],r.d);a+=c.dx,s+=c.dy}if(i&&i.d){c=P(n[o-2][0],n[o-2][1],u,l,i.d);u-=c.dx,l-=c.dy}t.beginPath(),t.moveTo(a,s);for(var f=0;f<o-1;f++){var h=n[f];t.lineTo(h[0],h[1])}t.lineTo(u,l)}},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(0,a.isNil)(e)?(this.set("totalLength",st.aH.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")),(0,a.each)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),st.x1.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=[];(0,a.each)(t,(function(a,s){t[s+1]&&(n=[],n[0]=i/e,r=st.x1.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}(J),Nt=Lt;function Rt(t,e,n,r,i,o,a){var s=i/2;return l(t-s,e-s,n,i,o,a)||l(t+n-s,e-s,i,r,o,a)||l(t+s,e+r-s,n,i,o,a)||l(t-s,e+s,i,r,o,a)}function jt(t,e,n,r,i,o,a,s){return ut(t+i,e,t+n-i,e,o,a,s)||ut(t+n,e+i,t+n,e+r-i,o,a,s)||ut(t+n-i,e+r,t+i,e+r,o,a,s)||ut(t,e+r-i,t,e+i,o,a,s)||wt(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,s)||wt(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,s)||wt(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,s)||wt(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,s)}var Ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,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(),a=o.x,s=o.y,u=o.width,c=o.height,f=o.radius;if(f){var h=!1;return n&&(h=jt(a,s,u,c,f,i,t,e)),!h&&r&&(h=gt(this,t,e)),h}var d=i/2;return r&&n?l(a-d,s-d,u+d,c+d,t,e):r?l(a,s,u,c,t,e):n?Rt(a,s,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=w(a),u=s[0],l=s[1],c=s[2],f=s[3];t.moveTo(n+u,r),t.lineTo(n+i-l,r),0!==l&&t.arc(n+i-l,r+l,l,-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+f,r+o),0!==f&&t.arc(n+f,r+o-f,f,Math.PI/2,Math.PI),t.lineTo(n,r+u),0!==u&&t.arc(n+u,r+u,u,Math.PI,1.5*Math.PI),t.closePath()}},e}(J),Bt=Ft,zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,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=(0,o.assembleFont)(t)},e.prototype._setText=function(t){var e=null;(0,a.isString)(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,u=i.x,l=i.y,c=1*i.fontSize,f=this._getSpaceingY(),h=(0,o.getTextHeight)(i.text,i.fontSize,i.lineHeight);(0,a.each)(e,(function(e,i){r=l+i*(f+c)-h+c,"middle"===s&&(r+=h-c-(h-c)/2),"top"===s&&(r+=h-c),(0,a.isNil)(e)||(n?t.fillText(e,u,r):t.strokeText(e,u,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;(0,a.isNil)(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&&((0,a.isNil)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&((0,a.isNil)(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}(J),Zt=zt;function Ut(t,e){if(e){var n=(0,o.invert)(e);return(0,o.multiplyVec2)(n,t)}return t}function Ht(t,e,n){var r=t.getTotalMatrix();if(r){var i=Ut([e,n,1],r),o=i[0],a=i[1];return[o,a]}return[e,n]}function $t(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!(0,o.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=Ht(t,e,n),i=r[0],a=r[1];if(t.isClipped(i,a))return!1}var s=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=s.minX&&e<=s.maxX&&n>=s.minY&&n<=s.maxY}function Gt(t,e,n){if(!$t(t,e,n))return null;for(var r=null,i=t.getChildren(),o=i.length,a=o-1;a>=0;a--){var s=i[a];if(s.isGroup())r=Gt(s,e,n);else if($t(s,e,n)){var u=s,l=Ht(s,e,n),c=l[0],f=l[1];u.isInShape(c,f)&&(r=s)}if(r)break}return r}var Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__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 r},e.prototype.getGroupBase=function(){return q},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||s();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){var r;return r=this.get("quickHit")?Gt(this,e,n):t.prototype.getShape.call(this,e,n,null),r},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();if(e.length&&e[0]===this)t=n;else if(t=V(e),t){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;var r=this.get("clipView");r&&(t=Y(t,n))}return t},e.prototype.refreshElement=function(t){var e=this.get("refreshElements");e.push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,a.clearAnimationFrame)(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),j(t,this),F(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(),j(t,this),B(this,n,r),F(t,n,r),t.restore()):e.length&&Z(e),(0,a.each)(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=(0,a.requestAnimationFrame)((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),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}(o.AbstractCanvas),Vt=Wt},32793:function(t,e,n){"use strict";n.d(e,{wN:function(){return F},Ll:function(){return k},x1:function(){return f},aH:function(){return $},lD:function(){return x},Zr:function(){return r}});var r={};n.r(r),n.d(r,{distance:function(){return o},getBBoxByArray:function(){return s},getBBoxRange:function(){return u},isNumberEqual:function(){return a},piMod:function(){return l}});var i=n(55817);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=(0,i.min)(t),r=(0,i.min)(e),o=(0,i.max)(t),a=(0,i.max)(e);return{x:n,y:r,width:o-n,height:a-r}}function u(t,e,n,r){return{minX:(0,i.min)([t,n]),maxX:(0,i.max)([t,n]),minY:(0,i.min)([e,r]),maxY:(0,i.max)([e,r])}}function l(t){return(t+2*Math.PI)%(2*Math.PI)}var c=n(31437),f={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);if(s<0)return o(t,e,i,a);var u=(n-t)*(n-t)+(r-e)*(r-e);return s>u?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 u=[i-t,o-e];return Math.abs(c.dot(u,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}},h=1e-4;function d(t,e,n,r,i,a){var s,u=1/0,l=[n,r],c=20;a&&a>200&&(c=a/10);for(var f=1/c,d=f/10,p=0;p<=c;p++){var g=p*f,v=[i.apply(null,t.concat([g])),i.apply(null,e.concat([g]))],m=o(l[0],l[1],v[0],v[1]);m<u&&(s=g,u=m)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var y=t.length;return{x:t[y-1],y:e[y-1]}}u=1/0;for(p=0;p<32;p++){if(d<h)break;var b=s-d,x=s+d;v=[i.apply(null,t.concat([b])),i.apply(null,e.concat([b]))],m=o(l[0],l[1],v[0],v[1]);if(b>=0&&m<u)s=b,u=m;else{var _=[i.apply(null,t.concat([x])),i.apply(null,e.concat([x]))],w=o(l[0],l[1],_[0],_[1]);x<=1&&w<u?(s=x,u=w):d*=.5}}return{x:i.apply(null,t.concat([s])),y:i.apply(null,e.concat([s]))}}function p(t,e){for(var n=0,r=t.length,i=0;i<r;i++){var a=t[i],s=e[i],u=t[(i+1)%r],l=e[(i+1)%r];n+=o(a,s,u,l)}return n/2}function g(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function v(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 m(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function y(t,e,n,r,i,o,a){var s=g(t,n,i,a),u=g(e,r,o,a),l=f.pointAt(t,e,n,r,a),c=f.pointAt(n,r,i,o,a);return[[t,e,l.x,l.y,s,u],[s,u,c.x,c.y,i,o]]}function b(t,e,n,r,i,a,s){if(0===s)return(o(t,e,n,r)+o(n,r,i,a)+o(t,e,i,a))/2;var u=y(t,e,n,r,i,a,.5),l=u[0],c=u[1];return l.push(s-1),c.push(s-1),b.apply(null,l)+b.apply(null,c)}var x={box:function(t,e,n,r,i,o){var a=v(t,n,i)[0],u=v(e,r,o)[0],l=[t,i],c=[e,o];return void 0!==a&&l.push(g(t,n,i,a)),void 0!==u&&c.push(g(e,r,o,u)),s(l,c)},length:function(t,e,n,r,i,o){return b(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,o,a,s){return d([t,n,i],[e,r,o],a,s,g)},pointDistance:function(t,e,n,r,i,a,s,u){var l=this.nearestPoint(t,e,n,r,i,a,s,u);return o(l.x,l.y,s,u)},interpolationAt:g,pointAt:function(t,e,n,r,i,o,a){return{x:g(t,n,i,a),y:g(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return y(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var s=m(t,n,i,a),u=m(e,r,o,a),c=Math.atan2(u,s);return l(c)}};function _(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 w(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 S(t,e,n,r){var i,o,s,u=-3*t+9*e-9*n+3*r,l=6*t-12*e+6*n,c=3*e-3*t,f=[];if(a(u,0))a(l,0)||(i=-c/l,i>=0&&i<=1&&f.push(i));else{var h=l*l-4*u*c;a(h,0)?f.push(-l/(2*u)):h>0&&(s=Math.sqrt(h),i=(-l+s)/(2*u),o=(-l-s)/(2*u),i>=0&&i<=1&&f.push(i),o>=0&&o<=1&&f.push(o))}return f}function E(t,e,n,r,i,o,a,s,u){var l=_(t,n,i,a,u),c=_(e,r,o,s,u),h=f.pointAt(t,e,n,r,u),d=f.pointAt(n,r,i,o,u),p=f.pointAt(i,o,a,s,u),g=f.pointAt(h.x,h.y,d.x,d.y,u),v=f.pointAt(d.x,d.y,p.x,p.y,u);return[[t,e,h.x,h.y,g.x,g.y,l,c],[l,c,v.x,v.y,p.x,p.y,a,s]]}function T(t,e,n,r,i,o,a,s,u){if(0===u)return p([t,n,i,a],[e,r,o,s]);var l=E(t,e,n,r,i,o,a,s,.5),c=l[0],f=l[1];return c.push(u-1),f.push(u-1),T.apply(null,c)+T.apply(null,f)}var k={extrema:S,box:function(t,e,n,r,i,o,a,u){for(var l=[t,a],c=[e,u],f=S(t,n,i,a),h=S(e,r,o,u),d=0;d<f.length;d++)l.push(_(t,n,i,a,f[d]));for(d=0;d<h.length;d++)c.push(_(e,r,o,u,h[d]));return s(l,c)},length:function(t,e,n,r,i,o,a,s){return T(t,e,n,r,i,o,a,s,3)},nearestPoint:function(t,e,n,r,i,o,a,s,u,l,c){return d([t,n,i,a],[e,r,o,s],u,l,_,c)},pointDistance:function(t,e,n,r,i,a,s,u,l,c,f){var h=this.nearestPoint(t,e,n,r,i,a,s,u,l,c,f);return o(h.x,h.y,l,c)},interpolationAt:_,pointAt:function(t,e,n,r,i,o,a,s,u){return{x:_(t,n,i,a,u),y:_(e,r,o,s,u)}},divide:function(t,e,n,r,i,o,a,s,u){return E(t,e,n,r,i,o,a,s,u)},tangentAngle:function(t,e,n,r,i,o,a,s,u){var c=w(t,n,i,a,u),f=w(e,r,o,s,u);return l(Math.atan2(f,c))}};function C(t,e){var n=Math.abs(t);return e>0?n:-1*n}var M={box:function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r}},length:function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(t,e,n,r,i,o){var a=n,s=r;if(0===a||0===s)return{x:t,y:e};for(var u,l,c=i-t,f=o-e,h=Math.abs(c),d=Math.abs(f),p=a*a,g=s*s,v=Math.PI/4,m=0;m<4;m++){u=a*Math.cos(v),l=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,x=u-y,_=l-b,w=h-y,S=d-b,E=Math.hypot(_,x),T=Math.hypot(S,w),k=E*Math.asin((x*S-_*w)/(E*T)),M=k/Math.sqrt(p+g-u*u-l*l);v+=M,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+C(u,c),y:e+C(l,f)}},pointDistance:function(t,e,n,r,i,a){var s=this.nearestPoint(t,e,n,r,i,a);return o(s.x,s.y,i,a)},pointAt:function(t,e,n,r,i){var o=2*Math.PI*i;return{x:t+n*Math.cos(o),y:e+r*Math.sin(o)}},tangentAngle:function(t,e,n,r,i){var o=2*Math.PI*i,a=Math.atan2(r*Math.cos(o),-n*Math.sin(o));return l(a)}};function A(t,e,n,r,i,o,a,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}function I(t,e,n,r,i,o,a,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}function O(t,e,n){return Math.atan(-e/t*Math.tan(n))}function D(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function P(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function L(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function N(t,e,n,r){var i=Math.atan2(r*t,n*e);return(i+2*Math.PI)%(2*Math.PI)}function R(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function j(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}var F={box:function(t,e,n,r,i,o,a){for(var s=O(n,r,i),u=1/0,l=-1/0,c=[o,a],f=2*-Math.PI;f<=2*Math.PI;f+=Math.PI){var h=s+f;o<a?o<h&&h<a&&c.push(h):a<h&&h<o&&c.push(h)}for(f=0;f<c.length;f++){var d=P(t,e,n,r,i,c[f]);d<u&&(u=d),d>l&&(l=d)}var p=D(n,r,i),g=1/0,v=-1/0,m=[o,a];for(f=2*-Math.PI;f<=2*Math.PI;f+=Math.PI){var y=p+f;o<a?o<y&&y<a&&m.push(y):a<y&&y<o&&m.push(y)}for(f=0;f<m.length;f++){var b=L(t,e,n,r,i,m[f]);b<g&&(g=b),b>v&&(v=b)}return{x:u,y:g,width:l-u,height:v-g}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,i,o,a,s,u){var l=j(s-t,u-e,-i),c=l[0],f=l[1],h=M.nearestPoint(0,0,n,r,c,f),d=N(n,r,h.x,h.y);d<o?h=R(n,r,o):d>a&&(h=R(n,r,a));var p=j(h.x,h.y,i);return{x:p[0]+t,y:p[1]+e}},pointDistance:function(t,e,n,r,i,a,s,u,l){var c=this.nearestPoint(t,e,n,r,u,l);return o(c.x,c.y,u,l)},pointAt:function(t,e,n,r,i,o,a,s){var u=(a-o)*s+o;return{x:P(t,e,n,r,i,u),y:L(t,e,n,r,i,u)}},tangentAngle:function(t,e,n,r,i,o,a,s){var u=(a-o)*s+o,c=A(t,e,n,r,i,o,a,u),f=I(t,e,n,r,i,o,a,u);return l(Math.atan2(f,c))}};function B(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]),u={from:i,to:a,length:s};n.push(u),e+=s}return{segments:n,totalLength:e}}function z(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 Z(t,e){if(e>1||e<0||t.length<2)return null;var n=B(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 u=r[s],l=u.from,c=u.to,h=u.length/i;if(e>=o&&e<=o+h){var d=(e-o)/h;a=f.pointAt(l[0],l[1],c[0],c[1],d);break}o+=h}return a}function U(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=B(t),r=n.segments,i=n.totalLength,o=0,a=0,s=0;s<r.length;s++){var u=r[s],l=u.from,c=u.to,f=u.length/i;if(e>=o&&e<=o+f){a=Math.atan2(c[1]-l[1],c[0]-l[0]);break}o+=f}return a}function H(t,e,n){for(var r=1/0,i=0;i<t.length-1;i++){var o=t[i],a=t[i+1],s=f.pointDistance(o[0],o[1],a[0],a[1],e,n);s<r&&(r=s)}return r}var $={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 z(t)},pointAt:function(t,e){return Z(t,e)},pointDistance:function(t,e,n){return H(t,e,n)},tangentAngle:function(t,e){return U(t,e)}}},31767:function(t,e,n){"use strict";n.d(e,{Canvas:function(){return _t}});var r={};n.r(r),n.d(r,{Base:function(){return _},Circle:function(){return S},Dom:function(){return T},Ellipse:function(){return C},Image:function(){return A},Line:function(){return D},Marker:function(){return R},Path:function(){return F},Polygon:function(){return z},Polyline:function(){return U},Rect:function(){return G},Text:function(){return J}});var i=n(97582),o=n(80328),a=n(55817),s={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},u={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"};function l(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function c(t){var e=s[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=l(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var i=n.get("el");i||(i=n.createDom(),n.set("el",i)),i.appendChild(r)}return r}function f(t,e){var n=t.get("el"),r=(0,a.toArray)(n.children).sort(e),i=document.createDocumentFragment();r.forEach((function(t){i.appendChild(t)})),n.appendChild(i)}function h(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)}function d(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")}function p(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]);r=r.join(","),-1===r.indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}}function g(t,e){var n=t.getClip(),r=t.get("el");if(n){if(n&&!r.hasAttribute("clip-path")){c(n),n.createPath(e);var i=e.addClip(n);r.setAttribute("clip-path","url(#"+i+")")}}else r.removeAttribute("clip-path")}function v(t,e){e.forEach((function(e){e.draw(t)}))}function m(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context"),i=t.getParent(),o=i?i.getChildren():[n],a=t.get("el");if("remove"===e){var s=t.get("isClipShape");if(s){var u=a&&a.parentNode,l=u&&u.parentNode;u&&l&&l.removeChild(u)}else a&&a.parentNode&&a.parentNode.removeChild(a)}else if("show"===e)a.setAttribute("visibility","visible");else if("hide"===e)a.setAttribute("visibility","hidden");else if("zIndex"===e)h(a,o.indexOf(t));else if("sort"===e){var c=t.get("children");c&&c.length&&f(t,(function(t,e){return c.indexOf(t)-c.indexOf(e)?1:0}))}else"clear"===e?a&&(a.innerHTML=""):"matrix"===e?p(t):"clip"===e?g(t,r):"attr"===e||"add"===e&&t.draw(r)}}var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=l("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(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){m(this,t)},e.prototype.getShapeBase=function(){return r},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(),g(this,t),this.createPath(t),e.length&&v(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){u[e]&&r.setAttribute(u[e],t)})),p(this)},e}(o.AbstractGroup),b=y,x=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(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,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 b},e.prototype.onCanvasChange=function(t){m(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=(0,o.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,a=e.width,s=e.height,u=this.getHitLineWidth(),l=u/2,c=r-l,f=i-l,h=r+a+l,d=i+s+l;return{x:c,y:f,minX:c,minY:f,maxX:h,maxY:d,width:a+u,height:s+u}}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||c(this),g(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,f=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&&f.setAttribute(u["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&&f.setAttribute(u["strokeOpacity"],l),c&&f.setAttribute(u["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)){var i=t.find("gradient",n);i||(i=t.addGradient(n)),r.setAttribute(u[e],"url(#"+i+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){i=t.find("pattern",n);i||(i=t.addPattern(n)),r.setAttribute(u[e],"url(#"+i+")")}else r.setAttribute(u[e],n);else r.setAttribute(u[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,o=r.shadowOffsetY,a=r.shadowBlur,s=r.shadowColor;(i||o||a||s)&&d(this,t)},e.prototype.transform=function(t){var e=this.attr(),n=(t||e).matrix;n&&p(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"),i=r.get("el").getBoundingClientRect(),o=t+i.left,a=e+i.top,s=document.elementFromPoint(o,a);return!(!s||!s.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),_=x,w=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(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):u[e]&&r.setAttribute(u[e],t)}))},e}(_),S=w,E=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(0,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if((0,a.each)(e||n,(function(t,e){u[e]&&r.setAttribute(u[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,s=o.length-1;s>=0;s--)r.removeChild(o[s]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n["html"]},e}(_),T=E,k=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(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,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");(0,a.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):u[e]&&r.setAttribute(u[e],t)}))},e}(_),C=k,M=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(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,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");(0,a.each)(e||r,(function(t,e){"img"===e?n._setImage(r.img):u[e]&&i.setAttribute(u[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((0,a.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&&(0,a.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}(_),A=M,I=n(32793),O=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(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,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");(0,a.each)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var o=(0,a.isObject)(e)?t.addArrow(n,u[i]):t.getDefaultArrow(n,u[i]);r.setAttribute(u[i],"url(#"+o+")")}else r.removeAttribute(u[i]);else u[i]&&r.setAttribute(u[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return I.x1.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 I.x1.pointAt(n,r,i,o,t)},e}(_),D=O,P={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"]]}},L={get:function(t){return P[t]},register:function(t,e){P[t]=e},remove:function(t){delete P[t]},getAll:function(){return P}},N=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(0,i.__extends)(e,t),e.prototype.createPath=function(t){var e=this.get("el");e.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return(0,a.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=(0,a.isFunction)(o)?o:L.get(o),t?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=L,e}(_),R=N,j=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(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,a.each)(e||r,(function(e,o){if("path"===o&&(0,a.isArray)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var s=(0,a.isObject)(e)?t.addArrow(r,u[o]):t.getDefaultArrow(r,u[o]);i.setAttribute(u[o],"url(#"+s+")")}else i.removeAttribute(u[o]);else u[o]&&i.setAttribute(u[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}(_),F=j,B=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(0,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"points"===e&&(0,a.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):u[e]&&r.setAttribute(u[e],t)}))},e}(_),z=B,Z=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(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,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");(0,a.each)(e||n,(function(t,e){"points"===e&&(0,a.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):u[e]&&r.setAttribute(u[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,a.isNil)(e)?(this.set("totalLength",I.aH.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")),(0,a.each)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),I.x1.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=[];(0,a.each)(t,(function(a,s){t[s+1]&&(n=[],n[0]=i/e,r=I.x1.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=Z;function H(t){var e=0,n=0,r=0,i=0;return(0,a.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}}var $=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(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,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,s=["x","y","width","height","radius"];(0,a.each)(e||r,(function(t,e){-1===s.indexOf(e)||o?-1===s.indexOf(e)&&u[e]&&i.setAttribute(u[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 s=H(o);(0,a.isArray)(o)?1===o.length?s.r1=s.r2=s.r3=s.r4=o[0]:2===o.length?(s.r1=s.r3=o[0],s.r2=s.r4=o[1]):3===o.length?(s.r1=o[0],s.r2=s.r4=o[1],s.r3=o[2]):(s.r1=o[0],s.r2=o[1],s.r3=o[2],s.r4=o[3]):s.r1=s.r2=s.r3=s.r4=o;var u=[["M "+(e+s.r1)+","+n],["l "+(r-s.r1-s.r2)+",0"],["a "+s.r2+","+s.r2+",0,0,1,"+s.r2+","+s.r2],["l 0,"+(i-s.r2-s.r3)],["a "+s.r3+","+s.r3+",0,0,1,"+-s.r3+","+s.r3],["l "+(s.r3+s.r4-r)+",0"],["a "+s.r4+","+s.r4+",0,0,1,"+-s.r4+","+-s.r4],["l 0,"+(s.r4+s.r1-i)],["a "+s.r1+","+s.r1+",0,0,1,"+s.r1+","+-s.r1],["z"]];return u.join(" ")},e}(_),G=$,W=n(43631),V=.3,Y={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},X={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},q={left:"left",start:"left",center:"middle",right:"end",end:"end"},K=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(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,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(),(0,a.each)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?p(n):u[e]&&i.setAttribute(u[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=(0,W.qY)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",X[n]||"alphabetic"):t.setAttribute("alignment-baseline",Y[n]||"baseline"),t.setAttribute("text-anchor",q[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 s=t.split("\n"),u=s.length-1,l="";(0,a.each)(s,(function(t,e){0===e?"alphabetic"===o?l+='<tspan x="'+r+'" dy="'+-u+'em">'+t+"</tspan>":"top"===o?l+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===o?l+='<tspan x="'+r+'" dy="'+-(u-1)/2+'em">'+t+"</tspan>":"bottom"===o?l+='<tspan x="'+r+'" dy="-'+(u+V)+'em">'+t+"</tspan>":"hanging"===o&&(l+='<tspan x="'+r+'" dy="'+(-(u-1)-V)+'em">'+t+"</tspan>"):l+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=l}else e.innerHTML=t;else e.innerHTML=""},e}(_),J=K,Q=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,tt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,et=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function nt(t){var e=t.match(et);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),(0,a.each)(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}function rt(t,e){var n,r,i=Q.exec(t),o=(0,a.mod)((0,a.toRadian)(parseFloat(i[1])),2*Math.PI),s=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 u=Math.tan(o),l=u*u,c=(r.x-n.x+u*(r.y-n.y))/(l+1)+n.x,f=u*(r.x-n.x+u*(r.y-n.y))/(l+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",c),e.setAttribute("y2",f),e.innerHTML=nt(s)}function it(t,e){var n=tt.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),a=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",o),e.innerHTML=nt(a)}var ot=function(){function t(t){this.cfg={};var e=null,n=(0,a.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?(e=l("linearGradient"),rt(t,e)):(e=l("radialGradient"),it(t,e)),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),at=ot,st={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},ut={x:"-40%",y:"-40%",width:"200%",height:"200%"},lt=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=l("filter");return(0,a.each)(ut,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=(0,a.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(0,a.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[st[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}(),ct=lt,ft=function(){function t(t,e){this.cfg={};var n=l("marker"),r=(0,a.uniqueId)("marker_");n.setAttribute("id",r);var i=l("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;(0,a.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}(),ht=ft,dt=function(){function t(t){this.type="clip",this.cfg={};var e=l("clipPath");this.el=e,this.id=(0,a.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}(),pt=dt,gt=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,vt=function(){function t(t){this.cfg={};var e=l("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=l("image");e.appendChild(n);var r=(0,a.uniqueId)("pattern_");e.id=r,this.el=e,this.id=r,this.cfg=t;var i=gt.exec(t),o=i[2];n.setAttribute("href",o);var s=new Image;function u(){e.setAttribute("width",""+s.width),e.setAttribute("height",""+s.height)}return o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o,s.complete?u():(s.onload=u,s.src=s.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),mt=vt,yt=function(){function t(t){var e=l("defs"),n=(0,a.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 ht(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 at(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new ht(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new ct(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new mt(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new pt(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),bt=yt,xt=function(t){function e(e){return t.call(this,(0,i.__assign)((0,i.__assign)({},e),{autoDraw:!0,renderer:"svg"}))||this}return(0,i.__extends)(e,t),e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return b},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!s[r.tagName]){var i=r.parentNode;while(i&&!s[i.tagName])i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=l("svg"),e=new bt(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&&f(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?p(this):"clip"===t?g(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();g(this,t),e.length&&v(t,e)},e}(o.AbstractCanvas),_t=xt},1029:function(t,e,n){"use strict";n.r(e),n.d(e,{Kernel:function(){return Z},World:function(){return Tt}});var r=n(15861),i=n(4942),o=n(15671),a=n(43144),s=n(36719),u=n.n(s),l=n(81763),c=n.n(l),f=n(1469),h=n.n(f),d=n(64687),p=n.n(d),g=1;function v(){return g++}var m;(function(t){t[t["DEPTH_BUFFER_BIT"]=256]="DEPTH_BUFFER_BIT",t[t["STENCIL_BUFFER_BIT"]=1024]="STENCIL_BUFFER_BIT",t[t["COLOR_BUFFER_BIT"]=16384]="COLOR_BUFFER_BIT",t[t["POINTS"]=0]="POINTS",t[t["LINES"]=1]="LINES",t[t["LINE_LOOP"]=2]="LINE_LOOP",t[t["LINE_STRIP"]=3]="LINE_STRIP",t[t["TRIANGLES"]=4]="TRIANGLES",t[t["TRIANGLE_STRIP"]=5]="TRIANGLE_STRIP",t[t["TRIANGLE_FAN"]=6]="TRIANGLE_FAN",t[t["ZERO"]=0]="ZERO",t[t["ONE"]=1]="ONE",t[t["SRC_COLOR"]=768]="SRC_COLOR",t[t["ONE_MINUS_SRC_COLOR"]=769]="ONE_MINUS_SRC_COLOR",t[t["SRC_ALPHA"]=770]="SRC_ALPHA",t[t["ONE_MINUS_SRC_ALPHA"]=771]="ONE_MINUS_SRC_ALPHA",t[t["DST_ALPHA"]=772]="DST_ALPHA",t[t["ONE_MINUS_DST_ALPHA"]=773]="ONE_MINUS_DST_ALPHA",t[t["DST_COLOR"]=774]="DST_COLOR",t[t["ONE_MINUS_DST_COLOR"]=775]="ONE_MINUS_DST_COLOR",t[t["SRC_ALPHA_SATURATE"]=776]="SRC_ALPHA_SATURATE",t[t["FUNC_ADD"]=32774]="FUNC_ADD",t[t["BLEND_EQUATION"]=32777]="BLEND_EQUATION",t[t["BLEND_EQUATION_RGB"]=32777]="BLEND_EQUATION_RGB",t[t["BLEND_EQUATION_ALPHA"]=34877]="BLEND_EQUATION_ALPHA",t[t["FUNC_SUBTRACT"]=32778]="FUNC_SUBTRACT",t[t["FUNC_REVERSE_SUBTRACT"]=32779]="FUNC_REVERSE_SUBTRACT",t[t["MAX_EXT"]=32776]="MAX_EXT",t[t["MIN_EXT"]=32775]="MIN_EXT",t[t["BLEND_DST_RGB"]=32968]="BLEND_DST_RGB",t[t["BLEND_SRC_RGB"]=32969]="BLEND_SRC_RGB",t[t["BLEND_DST_ALPHA"]=32970]="BLEND_DST_ALPHA",t[t["BLEND_SRC_ALPHA"]=32971]="BLEND_SRC_ALPHA",t[t["CONSTANT_COLOR"]=32769]="CONSTANT_COLOR",t[t["ONE_MINUS_CONSTANT_COLOR"]=32770]="ONE_MINUS_CONSTANT_COLOR",t[t["CONSTANT_ALPHA"]=32771]="CONSTANT_ALPHA",t[t["ONE_MINUS_CONSTANT_ALPHA"]=32772]="ONE_MINUS_CONSTANT_ALPHA",t[t["BLEND_COLOR"]=32773]="BLEND_COLOR",t[t["ARRAY_BUFFER"]=34962]="ARRAY_BUFFER",t[t["ELEMENT_ARRAY_BUFFER"]=34963]="ELEMENT_ARRAY_BUFFER",t[t["ARRAY_BUFFER_BINDING"]=34964]="ARRAY_BUFFER_BINDING",t[t["ELEMENT_ARRAY_BUFFER_BINDING"]=34965]="ELEMENT_ARRAY_BUFFER_BINDING",t[t["STREAM_DRAW"]=35040]="STREAM_DRAW",t[t["STATIC_DRAW"]=35044]="STATIC_DRAW",t[t["DYNAMIC_DRAW"]=35048]="DYNAMIC_DRAW",t[t["BUFFER_SIZE"]=34660]="BUFFER_SIZE",t[t["BUFFER_USAGE"]=34661]="BUFFER_USAGE",t[t["CURRENT_VERTEX_ATTRIB"]=34342]="CURRENT_VERTEX_ATTRIB",t[t["FRONT"]=1028]="FRONT",t[t["BACK"]=1029]="BACK",t[t["FRONT_AND_BACK"]=1032]="FRONT_AND_BACK",t[t["CULL_FACE"]=2884]="CULL_FACE",t[t["BLEND"]=3042]="BLEND",t[t["DITHER"]=3024]="DITHER",t[t["STENCIL_TEST"]=2960]="STENCIL_TEST",t[t["DEPTH_TEST"]=2929]="DEPTH_TEST",t[t["SCISSOR_TEST"]=3089]="SCISSOR_TEST",t[t["POLYGON_OFFSET_FILL"]=32823]="POLYGON_OFFSET_FILL",t[t["SAMPLE_ALPHA_TO_COVERAGE"]=32926]="SAMPLE_ALPHA_TO_COVERAGE",t[t["SAMPLE_COVERAGE"]=32928]="SAMPLE_COVERAGE",t[t["NO_ERROR"]=0]="NO_ERROR",t[t["INVALID_ENUM"]=1280]="INVALID_ENUM",t[t["INVALID_VALUE"]=1281]="INVALID_VALUE",t[t["INVALID_OPERATION"]=1282]="INVALID_OPERATION",t[t["OUT_OF_MEMORY"]=1285]="OUT_OF_MEMORY",t[t["CW"]=2304]="CW",t[t["CCW"]=2305]="CCW",t[t["LINE_WIDTH"]=2849]="LINE_WIDTH",t[t["ALIASED_POINT_SIZE_RANGE"]=33901]="ALIASED_POINT_SIZE_RANGE",t[t["ALIASED_LINE_WIDTH_RANGE"]=33902]="ALIASED_LINE_WIDTH_RANGE",t[t["CULL_FACE_MODE"]=2885]="CULL_FACE_MODE",t[t["FRONT_FACE"]=2886]="FRONT_FACE",t[t["DEPTH_RANGE"]=2928]="DEPTH_RANGE",t[t["DEPTH_WRITEMASK"]=2930]="DEPTH_WRITEMASK",t[t["DEPTH_CLEAR_VALUE"]=2931]="DEPTH_CLEAR_VALUE",t[t["DEPTH_FUNC"]=2932]="DEPTH_FUNC",t[t["STENCIL_CLEAR_VALUE"]=2961]="STENCIL_CLEAR_VALUE",t[t["STENCIL_FUNC"]=2962]="STENCIL_FUNC",t[t["STENCIL_FAIL"]=2964]="STENCIL_FAIL",t[t["STENCIL_PASS_DEPTH_FAIL"]=2965]="STENCIL_PASS_DEPTH_FAIL",t[t["STENCIL_PASS_DEPTH_PASS"]=2966]="STENCIL_PASS_DEPTH_PASS",t[t["STENCIL_REF"]=2967]="STENCIL_REF",t[t["STENCIL_VALUE_MASK"]=2963]="STENCIL_VALUE_MASK",t[t["STENCIL_WRITEMASK"]=2968]="STENCIL_WRITEMASK",t[t["STENCIL_BACK_FUNC"]=34816]="STENCIL_BACK_FUNC",t[t["STENCIL_BACK_FAIL"]=34817]="STENCIL_BACK_FAIL",t[t["STENCIL_BACK_PASS_DEPTH_FAIL"]=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",t[t["STENCIL_BACK_PASS_DEPTH_PASS"]=34819]="STENCIL_BACK_PASS_DEPTH_PASS",t[t["STENCIL_BACK_REF"]=36003]="STENCIL_BACK_REF",t[t["STENCIL_BACK_VALUE_MASK"]=36004]="STENCIL_BACK_VALUE_MASK",t[t["STENCIL_BACK_WRITEMASK"]=36005]="STENCIL_BACK_WRITEMASK",t[t["VIEWPORT"]=2978]="VIEWPORT",t[t["SCISSOR_BOX"]=3088]="SCISSOR_BOX",t[t["COLOR_CLEAR_VALUE"]=3106]="COLOR_CLEAR_VALUE",t[t["COLOR_WRITEMASK"]=3107]="COLOR_WRITEMASK",t[t["UNPACK_ALIGNMENT"]=3317]="UNPACK_ALIGNMENT",t[t["PACK_ALIGNMENT"]=3333]="PACK_ALIGNMENT",t[t["MAX_TEXTURE_SIZE"]=3379]="MAX_TEXTURE_SIZE",t[t["MAX_VIEWPORT_DIMS"]=3386]="MAX_VIEWPORT_DIMS",t[t["SUBPIXEL_BITS"]=3408]="SUBPIXEL_BITS",t[t["RED_BITS"]=3410]="RED_BITS",t[t["GREEN_BITS"]=3411]="GREEN_BITS",t[t["BLUE_BITS"]=3412]="BLUE_BITS",t[t["ALPHA_BITS"]=3413]="ALPHA_BITS",t[t["DEPTH_BITS"]=3414]="DEPTH_BITS",t[t["STENCIL_BITS"]=3415]="STENCIL_BITS",t[t["POLYGON_OFFSET_UNITS"]=10752]="POLYGON_OFFSET_UNITS",t[t["POLYGON_OFFSET_FACTOR"]=32824]="POLYGON_OFFSET_FACTOR",t[t["TEXTURE_BINDING_2D"]=32873]="TEXTURE_BINDING_2D",t[t["SAMPLE_BUFFERS"]=32936]="SAMPLE_BUFFERS",t[t["SAMPLES"]=32937]="SAMPLES",t[t["SAMPLE_COVERAGE_VALUE"]=32938]="SAMPLE_COVERAGE_VALUE",t[t["SAMPLE_COVERAGE_INVERT"]=32939]="SAMPLE_COVERAGE_INVERT",t[t["COMPRESSED_TEXTURE_FORMATS"]=34467]="COMPRESSED_TEXTURE_FORMATS",t[t["DONT_CARE"]=4352]="DONT_CARE",t[t["FASTEST"]=4353]="FASTEST",t[t["NICEST"]=4354]="NICEST",t[t["GENERATE_MIPMAP_HINT"]=33170]="GENERATE_MIPMAP_HINT",t[t["BYTE"]=5120]="BYTE",t[t["UNSIGNED_BYTE"]=5121]="UNSIGNED_BYTE",t[t["SHORT"]=5122]="SHORT",t[t["UNSIGNED_SHORT"]=5123]="UNSIGNED_SHORT",t[t["INT"]=5124]="INT",t[t["UNSIGNED_INT"]=5125]="UNSIGNED_INT",t[t["FLOAT"]=5126]="FLOAT",t[t["DEPTH_COMPONENT"]=6402]="DEPTH_COMPONENT",t[t["ALPHA"]=6406]="ALPHA",t[t["RGB"]=6407]="RGB",t[t["RGBA"]=6408]="RGBA",t[t["LUMINANCE"]=6409]="LUMINANCE",t[t["LUMINANCE_ALPHA"]=6410]="LUMINANCE_ALPHA",t[t["UNSIGNED_SHORT_4_4_4_4"]=32819]="UNSIGNED_SHORT_4_4_4_4",t[t["UNSIGNED_SHORT_5_5_5_1"]=32820]="UNSIGNED_SHORT_5_5_5_1",t[t["UNSIGNED_SHORT_5_6_5"]=33635]="UNSIGNED_SHORT_5_6_5",t[t["FRAGMENT_SHADER"]=35632]="FRAGMENT_SHADER",t[t["VERTEX_SHADER"]=35633]="VERTEX_SHADER",t[t["MAX_VERTEX_ATTRIBS"]=34921]="MAX_VERTEX_ATTRIBS",t[t["MAX_VERTEX_UNIFORM_VECTORS"]=36347]="MAX_VERTEX_UNIFORM_VECTORS",t[t["MAX_VARYING_VECTORS"]=36348]="MAX_VARYING_VECTORS",t[t["MAX_COMBINED_TEXTURE_IMAGE_UNITS"]=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",t[t["MAX_VERTEX_TEXTURE_IMAGE_UNITS"]=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",t[t["MAX_TEXTURE_IMAGE_UNITS"]=34930]="MAX_TEXTURE_IMAGE_UNITS",t[t["MAX_FRAGMENT_UNIFORM_VECTORS"]=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",t[t["SHADER_TYPE"]=35663]="SHADER_TYPE",t[t["DELETE_STATUS"]=35712]="DELETE_STATUS",t[t["LINK_STATUS"]=35714]="LINK_STATUS",t[t["VALIDATE_STATUS"]=35715]="VALIDATE_STATUS",t[t["ATTACHED_SHADERS"]=35717]="ATTACHED_SHADERS",t[t["ACTIVE_UNIFORMS"]=35718]="ACTIVE_UNIFORMS",t[t["ACTIVE_ATTRIBUTES"]=35721]="ACTIVE_ATTRIBUTES",t[t["SHADING_LANGUAGE_VERSION"]=35724]="SHADING_LANGUAGE_VERSION",t[t["CURRENT_PROGRAM"]=35725]="CURRENT_PROGRAM",t[t["NEVER"]=512]="NEVER",t[t["LESS"]=513]="LESS",t[t["EQUAL"]=514]="EQUAL",t[t["LEQUAL"]=515]="LEQUAL",t[t["GREATER"]=516]="GREATER",t[t["NOTEQUAL"]=517]="NOTEQUAL",t[t["GEQUAL"]=518]="GEQUAL",t[t["ALWAYS"]=519]="ALWAYS",t[t["KEEP"]=7680]="KEEP",t[t["REPLACE"]=7681]="REPLACE",t[t["INCR"]=7682]="INCR",t[t["DECR"]=7683]="DECR",t[t["INVERT"]=5386]="INVERT",t[t["INCR_WRAP"]=34055]="INCR_WRAP",t[t["DECR_WRAP"]=34056]="DECR_WRAP",t[t["VENDOR"]=7936]="VENDOR",t[t["RENDERER"]=7937]="RENDERER",t[t["VERSION"]=7938]="VERSION",t[t["NEAREST"]=9728]="NEAREST",t[t["LINEAR"]=9729]="LINEAR",t[t["NEAREST_MIPMAP_NEAREST"]=9984]="NEAREST_MIPMAP_NEAREST",t[t["LINEAR_MIPMAP_NEAREST"]=9985]="LINEAR_MIPMAP_NEAREST",t[t["NEAREST_MIPMAP_LINEAR"]=9986]="NEAREST_MIPMAP_LINEAR",t[t["LINEAR_MIPMAP_LINEAR"]=9987]="LINEAR_MIPMAP_LINEAR",t[t["TEXTURE_MAG_FILTER"]=10240]="TEXTURE_MAG_FILTER",t[t["TEXTURE_MIN_FILTER"]=10241]="TEXTURE_MIN_FILTER",t[t["TEXTURE_WRAP_S"]=10242]="TEXTURE_WRAP_S",t[t["TEXTURE_WRAP_T"]=10243]="TEXTURE_WRAP_T",t[t["TEXTURE_2D"]=3553]="TEXTURE_2D",t[t["TEXTURE"]=5890]="TEXTURE",t[t["TEXTURE_CUBE_MAP"]=34067]="TEXTURE_CUBE_MAP",t[t["TEXTURE_BINDING_CUBE_MAP"]=34068]="TEXTURE_BINDING_CUBE_MAP",t[t["TEXTURE_CUBE_MAP_POSITIVE_X"]=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t["TEXTURE_CUBE_MAP_NEGATIVE_X"]=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t["TEXTURE_CUBE_MAP_POSITIVE_Y"]=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Y"]=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t["TEXTURE_CUBE_MAP_POSITIVE_Z"]=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Z"]=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t[t["MAX_CUBE_MAP_TEXTURE_SIZE"]=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",t[t["TEXTURE0"]=33984]="TEXTURE0",t[t["TEXTURE1"]=33985]="TEXTURE1",t[t["TEXTURE2"]=33986]="TEXTURE2",t[t["TEXTURE3"]=33987]="TEXTURE3",t[t["TEXTURE4"]=33988]="TEXTURE4",t[t["TEXTURE5"]=33989]="TEXTURE5",t[t["TEXTURE6"]=33990]="TEXTURE6",t[t["TEXTURE7"]=33991]="TEXTURE7",t[t["TEXTURE8"]=33992]="TEXTURE8",t[t["TEXTURE9"]=33993]="TEXTURE9",t[t["TEXTURE10"]=33994]="TEXTURE10",t[t["TEXTURE11"]=33995]="TEXTURE11",t[t["TEXTURE12"]=33996]="TEXTURE12",t[t["TEXTURE13"]=33997]="TEXTURE13",t[t["TEXTURE14"]=33998]="TEXTURE14",t[t["TEXTURE15"]=33999]="TEXTURE15",t[t["TEXTURE16"]=34e3]="TEXTURE16",t[t["TEXTURE17"]=34001]="TEXTURE17",t[t["TEXTURE18"]=34002]="TEXTURE18",t[t["TEXTURE19"]=34003]="TEXTURE19",t[t["TEXTURE20"]=34004]="TEXTURE20",t[t["TEXTURE21"]=34005]="TEXTURE21",t[t["TEXTURE22"]=34006]="TEXTURE22",t[t["TEXTURE23"]=34007]="TEXTURE23",t[t["TEXTURE24"]=34008]="TEXTURE24",t[t["TEXTURE25"]=34009]="TEXTURE25",t[t["TEXTURE26"]=34010]="TEXTURE26",t[t["TEXTURE27"]=34011]="TEXTURE27",t[t["TEXTURE28"]=34012]="TEXTURE28",t[t["TEXTURE29"]=34013]="TEXTURE29",t[t["TEXTURE30"]=34014]="TEXTURE30",t[t["TEXTURE31"]=34015]="TEXTURE31",t[t["ACTIVE_TEXTURE"]=34016]="ACTIVE_TEXTURE",t[t["REPEAT"]=10497]="REPEAT",t[t["CLAMP_TO_EDGE"]=33071]="CLAMP_TO_EDGE",t[t["MIRRORED_REPEAT"]=33648]="MIRRORED_REPEAT",t[t["FLOAT_VEC2"]=35664]="FLOAT_VEC2",t[t["FLOAT_VEC3"]=35665]="FLOAT_VEC3",t[t["FLOAT_VEC4"]=35666]="FLOAT_VEC4",t[t["INT_VEC2"]=35667]="INT_VEC2",t[t["INT_VEC3"]=35668]="INT_VEC3",t[t["INT_VEC4"]=35669]="INT_VEC4",t[t["BOOL"]=35670]="BOOL",t[t["BOOL_VEC2"]=35671]="BOOL_VEC2",t[t["BOOL_VEC3"]=35672]="BOOL_VEC3",t[t["BOOL_VEC4"]=35673]="BOOL_VEC4",t[t["FLOAT_MAT2"]=35674]="FLOAT_MAT2",t[t["FLOAT_MAT3"]=35675]="FLOAT_MAT3",t[t["FLOAT_MAT4"]=35676]="FLOAT_MAT4",t[t["SAMPLER_2D"]=35678]="SAMPLER_2D",t[t["SAMPLER_CUBE"]=35680]="SAMPLER_CUBE",t[t["VERTEX_ATTRIB_ARRAY_ENABLED"]=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",t[t["VERTEX_ATTRIB_ARRAY_SIZE"]=34339]="VERTEX_ATTRIB_ARRAY_SIZE",t[t["VERTEX_ATTRIB_ARRAY_STRIDE"]=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",t[t["VERTEX_ATTRIB_ARRAY_TYPE"]=34341]="VERTEX_ATTRIB_ARRAY_TYPE",t[t["VERTEX_ATTRIB_ARRAY_NORMALIZED"]=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",t[t["VERTEX_ATTRIB_ARRAY_POINTER"]=34373]="VERTEX_ATTRIB_ARRAY_POINTER",t[t["VERTEX_ATTRIB_ARRAY_BUFFER_BINDING"]=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",t[t["COMPILE_STATUS"]=35713]="COMPILE_STATUS",t[t["LOW_FLOAT"]=36336]="LOW_FLOAT",t[t["MEDIUM_FLOAT"]=36337]="MEDIUM_FLOAT",t[t["HIGH_FLOAT"]=36338]="HIGH_FLOAT",t[t["LOW_INT"]=36339]="LOW_INT",t[t["MEDIUM_INT"]=36340]="MEDIUM_INT",t[t["HIGH_INT"]=36341]="HIGH_INT",t[t["FRAMEBUFFER"]=36160]="FRAMEBUFFER",t[t["RENDERBUFFER"]=36161]="RENDERBUFFER",t[t["RGBA4"]=32854]="RGBA4",t[t["RGB5_A1"]=32855]="RGB5_A1",t[t["RGB565"]=36194]="RGB565",t[t["DEPTH_COMPONENT16"]=33189]="DEPTH_COMPONENT16",t[t["STENCIL_INDEX"]=6401]="STENCIL_INDEX",t[t["STENCIL_INDEX8"]=36168]="STENCIL_INDEX8",t[t["DEPTH_STENCIL"]=34041]="DEPTH_STENCIL",t[t["RENDERBUFFER_WIDTH"]=36162]="RENDERBUFFER_WIDTH",t[t["RENDERBUFFER_HEIGHT"]=36163]="RENDERBUFFER_HEIGHT",t[t["RENDERBUFFER_INTERNAL_FORMAT"]=36164]="RENDERBUFFER_INTERNAL_FORMAT",t[t["RENDERBUFFER_RED_SIZE"]=36176]="RENDERBUFFER_RED_SIZE",t[t["RENDERBUFFER_GREEN_SIZE"]=36177]="RENDERBUFFER_GREEN_SIZE",t[t["RENDERBUFFER_BLUE_SIZE"]=36178]="RENDERBUFFER_BLUE_SIZE",t[t["RENDERBUFFER_ALPHA_SIZE"]=36179]="RENDERBUFFER_ALPHA_SIZE",t[t["RENDERBUFFER_DEPTH_SIZE"]=36180]="RENDERBUFFER_DEPTH_SIZE",t[t["RENDERBUFFER_STENCIL_SIZE"]=36181]="RENDERBUFFER_STENCIL_SIZE",t[t["FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE"]=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",t[t["FRAMEBUFFER_ATTACHMENT_OBJECT_NAME"]=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",t[t["FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL"]=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",t[t["FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE"]=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",t[t["COLOR_ATTACHMENT0"]=36064]="COLOR_ATTACHMENT0",t[t["DEPTH_ATTACHMENT"]=36096]="DEPTH_ATTACHMENT",t[t["STENCIL_ATTACHMENT"]=36128]="STENCIL_ATTACHMENT",t[t["DEPTH_STENCIL_ATTACHMENT"]=33306]="DEPTH_STENCIL_ATTACHMENT",t[t["NONE"]=0]="NONE",t[t["FRAMEBUFFER_COMPLETE"]=36053]="FRAMEBUFFER_COMPLETE",t[t["FRAMEBUFFER_INCOMPLETE_ATTACHMENT"]=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",t[t["FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT"]=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",t[t["FRAMEBUFFER_INCOMPLETE_DIMENSIONS"]=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",t[t["FRAMEBUFFER_UNSUPPORTED"]=36061]="FRAMEBUFFER_UNSUPPORTED",t[t["FRAMEBUFFER_BINDING"]=36006]="FRAMEBUFFER_BINDING",t[t["RENDERBUFFER_BINDING"]=36007]="RENDERBUFFER_BINDING",t[t["MAX_RENDERBUFFER_SIZE"]=34024]="MAX_RENDERBUFFER_SIZE",t[t["INVALID_FRAMEBUFFER_OPERATION"]=1286]="INVALID_FRAMEBUFFER_OPERATION",t[t["UNPACK_FLIP_Y_WEBGL"]=37440]="UNPACK_FLIP_Y_WEBGL",t[t["UNPACK_PREMULTIPLY_ALPHA_WEBGL"]=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",t[t["CONTEXT_LOST_WEBGL"]=37442]="CONTEXT_LOST_WEBGL",t[t["UNPACK_COLORSPACE_CONVERSION_WEBGL"]=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",t[t["BROWSER_DEFAULT_WEBGL"]=37444]="BROWSER_DEFAULT_WEBGL",t[t["COPY_SRC"]=1]="COPY_SRC",t[t["COPY_DST"]=2]="COPY_DST",t[t["SAMPLED"]=4]="SAMPLED",t[t["STORAGE"]=8]="STORAGE",t[t["RENDER_ATTACHMENT"]=16]="RENDER_ATTACHMENT"})(m||(m={}));var y,b,x,_,w=function(){function t(){(0,o.Z)(this,t),this.config=void 0}return(0,a.Z)(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>[]"})(y||(y={})),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"}(b||(b={})),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"}(x||(x={})),function(t){t["GLSL100"]="GLSL100",t["GLSL450"]="GLSL450",t["WGSL"]="WGSL"}(_||(_={}));var S="__DefineValuePlaceholder__";function E(){if("undefined"!==typeof document)return document.createElement("canvas");throw new Error("Cannot create a canvas in this context")}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 k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var C,M,A,I,O,D,P,L,N,R,j,F,B,z,Z=function(){function t(e,n){(0,o.Z)(this,t),this.engine=e,this.configService=n,this.model=void 0,this.dirty=!0,this.compiledBundle=void 0,this.initPromise=void 0}return(0,a.Z)(t,[{key:"init",value:function(){var t=this.configService.get(),e=t.canvas,n=t.engineOptions;this.initPromise=this.engine.init(k({canvas:e||E(),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=c()(e)||u()(e)||h()(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===x.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=(0,r.Z)(p().mark((function t(){var e,n,r=this,i=arguments;return p().wrap((function(t){while(1)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){var e=t.isReferer;return e})).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)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getOutput",value:function(){var t=(0,r.Z)(p().mark((function t(){return p().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this.model.readData());case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"compile",value:function(){var t=(0,r.Z)(p().mark((function t(){var e,n,r;return p().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.initPromise;case 2:return e=k({},this.compiledBundle.context),n=this.engine.supportWebGPU?this.engine.useWGSL?_.WGSL:_.GLSL450:_.GLSL100,r=this.compiledBundle.shaders[n],e.defines.filter((function(t){return t.runtime})).forEach((function(t){var e="".concat(S).concat(t.name);r=r.replace(e,"".concat(t.value))})),e.shader=r,e.uniforms.forEach((function(t){if(!t.data&&t.storageClass===x.StorageBuffer){var n=1;t.type===y.FloatArray?n=1:t.type===y.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)})));function e(){return t.apply(this,arguments)}return e}()}]),t}(),U=n(81550),H=n.n(U),$=function(){function t(e,n){(0,o.Z)(this,t),this.attribute=void 0,this.buffer=void 0;var r=n.buffer,i=n.offset,a=n.stride,s=n.normalized,u=n.size,l=n.divisor;this.buffer=r,this.attribute={buffer:r.get(),offset:i||0,stride:a||0,normalized:s||!1,divisor:l||0},u&&(this.attribute.size=u)}return(0,a.Z)(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}(),G=(C={},(0,i.Z)(C,m.POINTS,"points"),(0,i.Z)(C,m.LINES,"lines"),(0,i.Z)(C,m.LINE_LOOP,"line loop"),(0,i.Z)(C,m.LINE_STRIP,"line strip"),(0,i.Z)(C,m.TRIANGLES,"triangles"),(0,i.Z)(C,m.TRIANGLE_FAN,"triangle fan"),(0,i.Z)(C,m.TRIANGLE_STRIP,"triangle strip"),C),W=(M={},(0,i.Z)(M,m.STATIC_DRAW,"static"),(0,i.Z)(M,m.DYNAMIC_DRAW,"dynamic"),(0,i.Z)(M,m.STREAM_DRAW,"stream"),M),V=(A={},(0,i.Z)(A,m.BYTE,"int8"),(0,i.Z)(A,m.UNSIGNED_INT,"int16"),(0,i.Z)(A,m.INT,"int32"),(0,i.Z)(A,m.UNSIGNED_BYTE,"uint8"),(0,i.Z)(A,m.UNSIGNED_SHORT,"uint16"),(0,i.Z)(A,m.UNSIGNED_INT,"uint32"),(0,i.Z)(A,m.FLOAT,"float"),A),Y=(I={},(0,i.Z)(I,m.ALPHA,"alpha"),(0,i.Z)(I,m.LUMINANCE,"luminance"),(0,i.Z)(I,m.LUMINANCE_ALPHA,"luminance alpha"),(0,i.Z)(I,m.RGB,"rgb"),(0,i.Z)(I,m.RGBA,"rgba"),(0,i.Z)(I,m.RGBA4,"rgba4"),(0,i.Z)(I,m.RGB5_A1,"rgb5 a1"),(0,i.Z)(I,m.RGB565,"rgb565"),(0,i.Z)(I,m.DEPTH_COMPONENT,"depth"),(0,i.Z)(I,m.DEPTH_STENCIL,"depth stencil"),I),X=(O={},(0,i.Z)(O,m.DONT_CARE,"dont care"),(0,i.Z)(O,m.NICEST,"nice"),(0,i.Z)(O,m.FASTEST,"fast"),O),q=(D={},(0,i.Z)(D,m.NEAREST,"nearest"),(0,i.Z)(D,m.LINEAR,"linear"),(0,i.Z)(D,m.LINEAR_MIPMAP_LINEAR,"mipmap"),(0,i.Z)(D,m.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),(0,i.Z)(D,m.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),(0,i.Z)(D,m.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),D),K=(P={},(0,i.Z)(P,m.REPEAT,"repeat"),(0,i.Z)(P,m.CLAMP_TO_EDGE,"clamp"),(0,i.Z)(P,m.MIRRORED_REPEAT,"mirror"),P),J=(L={},(0,i.Z)(L,m.NONE,"none"),(0,i.Z)(L,m.BROWSER_DEFAULT_WEBGL,"browser"),L),Q=(N={},(0,i.Z)(N,m.NEVER,"never"),(0,i.Z)(N,m.ALWAYS,"always"),(0,i.Z)(N,m.LESS,"less"),(0,i.Z)(N,m.LEQUAL,"lequal"),(0,i.Z)(N,m.GREATER,"greater"),(0,i.Z)(N,m.GEQUAL,"gequal"),(0,i.Z)(N,m.EQUAL,"equal"),(0,i.Z)(N,m.NOTEQUAL,"notequal"),N),tt=(R={},(0,i.Z)(R,m.FUNC_ADD,"add"),(0,i.Z)(R,m.MIN_EXT,"min"),(0,i.Z)(R,m.MAX_EXT,"max"),(0,i.Z)(R,m.FUNC_SUBTRACT,"subtract"),(0,i.Z)(R,m.FUNC_REVERSE_SUBTRACT,"reverse subtract"),R),et=(j={},(0,i.Z)(j,m.ZERO,"zero"),(0,i.Z)(j,m.ONE,"one"),(0,i.Z)(j,m.SRC_COLOR,"src color"),(0,i.Z)(j,m.ONE_MINUS_SRC_COLOR,"one minus src color"),(0,i.Z)(j,m.SRC_ALPHA,"src alpha"),(0,i.Z)(j,m.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),(0,i.Z)(j,m.DST_COLOR,"dst color"),(0,i.Z)(j,m.ONE_MINUS_DST_COLOR,"one minus dst color"),(0,i.Z)(j,m.DST_ALPHA,"dst alpha"),(0,i.Z)(j,m.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),(0,i.Z)(j,m.CONSTANT_COLOR,"constant color"),(0,i.Z)(j,m.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),(0,i.Z)(j,m.CONSTANT_ALPHA,"constant alpha"),(0,i.Z)(j,m.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),(0,i.Z)(j,m.SRC_ALPHA_SATURATE,"src alpha saturate"),j),nt=(F={},(0,i.Z)(F,m.NEVER,"never"),(0,i.Z)(F,m.ALWAYS,"always"),(0,i.Z)(F,m.LESS,"less"),(0,i.Z)(F,m.LEQUAL,"lequal"),(0,i.Z)(F,m.GREATER,"greater"),(0,i.Z)(F,m.GEQUAL,"gequal"),(0,i.Z)(F,m.EQUAL,"equal"),(0,i.Z)(F,m.NOTEQUAL,"notequal"),F),rt=(B={},(0,i.Z)(B,m.ZERO,"zero"),(0,i.Z)(B,m.KEEP,"keep"),(0,i.Z)(B,m.REPLACE,"replace"),(0,i.Z)(B,m.INVERT,"invert"),(0,i.Z)(B,m.INCR,"increment"),(0,i.Z)(B,m.DECR,"decrement"),(0,i.Z)(B,m.INCR_WRAP,"increment wrap"),(0,i.Z)(B,m.DECR_WRAP,"decrement wrap"),B),it=(z={},(0,i.Z)(z,m.FRONT,"front"),(0,i.Z)(z,m.BACK,"back"),z),ot=function(){function t(e,n){(0,o.Z)(this,t),this.buffer=void 0;var r=n.data,i=n.usage,a=n.type;this.buffer=e.buffer({data:r,usage:W[i||m.STATIC_DRAW],type:V[a||m.UNSIGNED_BYTE]})}return(0,a.Z)(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}(),at=n(89062);function st(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 ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?st(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var lt="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}",ct=0,ft=!1,ht=function(){function t(e,n){var r=this;(0,o.Z)(this,t),this.reGl=e,this.context=n,this.entity=v(),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===x.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],c=l.textureWidth,f=l.isOutput;i["".concat(e,"Size")]=[c,c],f&&(r.outputTextureName=e,r.context.needPingpong&&(r.outputTextureName="".concat(e,"Output"),r.textureCache[r.outputTextureName]=r.calcDataTexture(e,n,o)))}i[e]=function(){return ft&&console.log("[".concat(r.entity,"]: ").concat(e," ").concat(r.textureCache[e].id)),r.textureCache[e].texture}}else if(s===x.Uniform){if(o&&(Array.isArray(o)||u()(o))&&o.length>16)throw new Error("invalid data type ".concat(n));i[e]=function(){return t.data}}}));var a=this.getOuputDataTexture(),s=a.textureWidth,l=a.texelCount;i.u_OutputTextureSize=[s,s],i.u_OutputTexelCount=l,this.context.output.textureSize=[s,s];var c={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:lt,primitive:"triangle strip",count:4};this.computeCommand=this.reGl(c)}return(0,a.Z)(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()})),ft&&console.log("[".concat(this.entity,"]: output ").concat(this.getOuputDataTexture().id))}},{key:"readData",value:function(){var t=(0,r.Z)(p().mark((function t(){var e,n,r,i,o,a,s,u,l=this;return p().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.reGl({framebuffer:this.texFBO})((function(){e=l.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(u=0;u<e.length;u+=4)1===i?s.push(e[u]):2===i?s.push(e[u],e[u+1]):s.push(e[u],e[u+1],e[u+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)})));function e(){return t.apply(this,arguments)}return e}()},{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,ft&&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){var n=this.context.uniforms.find((function(e){var n=e.name;return n===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,ft&&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 ut(ut({},t),{},{id:ct++,texture:this.reGl.texture({width:n,height:n,data:e,type:"float"})})}},{key:"calcDataTexture",value:function(t,e,n){var r=1;e===y.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)),c=l*l;s<c&&i.push.apply(i,(0,at.Z)(new Array(4*(c-s)).fill(0)));var f=this.reGl.texture({width:l,height:l,data:i,type:"float"});return{id:ct++,data:i,originalDataLength:a,typedArrayConstructor:u()(n)?n.constructor:void 0,textureWidth:l,texture:f,texelCount:s,elementsPerTexel:r,isOutput:t===this.context.output.name}}}]),t}(),dt=function(){function t(e,n){(0,o.Z)(this,t),this.elements=void 0;var r=n.data,i=n.usage,a=n.type,s=n.count;this.elements=e.elements({data:r,usage:W[i||m.STATIC_DRAW],type:V[a||m.UNSIGNED_BYTE],count:s})}return(0,a.Z)(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}(),pt=function(){function t(e,n){(0,o.Z)(this,t),this.framebuffer=void 0;var r=n.width,i=n.height,a=n.color,s=n.colors,u=(n.depth,n.stencil,{width:r,height:i});Array.isArray(s)&&(u.colors=s.map((function(t){return t.get()}))),a&&"boolean"!==typeof a&&(u.color=a.get()),this.framebuffer=e.framebuffer(u)}return(0,a.Z)(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}(),gt=n(71002),vt=n(68630),mt=n.n(vt);function yt(t){var e={};return Object.keys(t).forEach((function(n){bt(n,t[n],e,"")})),e}function bt(t,e,n,r){null===e||"number"===typeof e||"boolean"===typeof e||Array.isArray(e)&&"number"===typeof e[0]||u()(e)||""===e||void 0!==e.resize?n["".concat(r&&r+".").concat(t)]=e:(mt()(e)&&Object.keys(e).forEach((function(i){bt(i,e[i],n,"".concat(r&&r+".").concat(t))})),Array.isArray(e)&&e.forEach((function(e,i){Object.keys(e).forEach((function(o){bt(o,e[o],n,"".concat(r&&r+".").concat(t,"[").concat(i,"]"))}))})))}function xt(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?xt(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var wt=function(){function t(e,n){(0,o.Z)(this,t),this.reGl=void 0,this.drawCommand=void 0,this.uniforms={},this.reGl=e;var r=n.vs,i=n.fs,a=n.defines,s=n.attributes,u=n.uniforms,l=n.primitive,c=n.count,f=n.elements,h=n.depth,d=n.blend,p=n.stencil,g=n.cull,v=n.instances,y=n.scissor,b=n.viewport,x={};u&&(this.uniforms=yt(u),Object.keys(u).forEach((function(t){x[t]=e.prop(t)})));var _={};Object.keys(s).forEach((function(t){_[t]=s[t].get()}));var w=a&&this.generateDefines(a)||"",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:x,vert:"\n".concat(w,"\n").concat(r),primitive:G[void 0===l?m.TRIANGLES:l]};v&&(S.instances=v),c&&(S.count=c),f&&(S.elements=f.get()),y&&(S.scissor=y),b&&(S.viewport=b),this.initDepthDrawParams({depth:h},S),this.initBlendDrawParams({blend:d},S),this.initStencilDrawParams({stencil:p},S),this.initCullDrawParams({cull:g},S),this.drawCommand=e(S)}return(0,a.Z)(t,[{key:"addUniforms",value:function(t){this.uniforms=_t(_t({},this.uniforms),yt(t))}},{key:"draw",value:function(t){var e=_t(_t({},this.uniforms),yt(t.uniforms||{})),n={};Object.keys(e).forEach((function(t){var r=(0,gt.Z)(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:Q[n.func||m.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:et[i&&i.srcRGB||m.SRC_ALPHA],srcAlpha:et[i&&i.srcAlpha||m.SRC_ALPHA],dstRGB:et[i&&i.dstRGB||m.ONE_MINUS_SRC_ALPHA],dstAlpha:et[i&&i.dstAlpha||m.ONE_MINUS_SRC_ALPHA]},equation:{rgb:tt[o&&o.rgb||m.FUNC_ADD],alpha:tt[o&&o.alpha||m.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:m.ALWAYS,ref:0,mask:-1}:a,u=n.opFront,l=void 0===u?{fail:m.KEEP,zfail:m.KEEP,zpass:m.KEEP}:u,c=n.opBack,f=void 0===c?{fail:m.KEEP,zfail:m.KEEP,zpass:m.KEEP}:c;e.stencil={enable:!!r,mask:o,func:_t(_t({},s),{},{cmp:nt[s.cmp]}),opFront:{fail:rt[l.fail],zfail:rt[l.zfail],zpass:rt[l.zpass]},opBack:{fail:rt[f.fail],zfail:rt[f.zfail],zpass:rt[f.zpass]}}}}},{key:"initCullDrawParams",value:function(t,e){var n=t.cull;if(n){var r=n.enable,i=n.face,o=void 0===i?m.BACK:i;e.cull={enable:!!r,face:it[o]}}}},{key:"generateDefines",value:function(t){return Object.keys(t).map((function(e){return"#define ".concat(e," ").concat(Number(t[e]))})).join("\n")}}]),t}(),St=function(){function t(e,n){(0,o.Z)(this,t),this.texture=void 0,this.width=void 0,this.height=void 0;var r=n.data,i=n.type,a=void 0===i?m.UNSIGNED_BYTE:i,s=n.width,u=n.height,l=n.flipY,c=void 0!==l&&l,f=n.format,h=void 0===f?m.RGBA:f,d=n.mipmap,p=void 0!==d&&d,g=n.wrapS,v=void 0===g?m.CLAMP_TO_EDGE:g,y=n.wrapT,b=void 0===y?m.CLAMP_TO_EDGE:y,x=n.aniso,_=void 0===x?0:x,w=n.alignment,S=void 0===w?1:w,E=n.premultiplyAlpha,T=void 0!==E&&E,k=n.mag,C=void 0===k?m.NEAREST:k,M=n.min,A=void 0===M?m.NEAREST:M,I=n.colorSpace,O=void 0===I?m.BROWSER_DEFAULT_WEBGL:I;this.width=s,this.height=u;var D={width:s,height:u,type:V[a],format:Y[h],wrapS:K[v],wrapT:K[b],mag:q[C],min:q[A],alignment:S,flipY:c,colorSpace:J[O],premultiplyAlpha:T,aniso:_};r&&(D.data=r),"number"===typeof p?D.mipmap=X[p]:"boolean"===typeof p&&(D.mipmap=p),this.texture=e.texture(D)}return(0,a.Z)(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;(0,o.Z)(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=(0,r.Z)(p().mark((function t(n){return p().wrap((function(t){while(1)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=(0,r.Z)(p().mark((function t(e){var r;return p().wrap((function(t){while(1)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 wt(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 $(e.gl,t)},this.createBuffer=function(t){return new ot(e.gl,t)},this.createElements=function(t){return new dt(e.gl,t)},this.createTexture2D=function(t){return new St(e.gl,t)},this.createFramebuffer=function(t){return new pt(e.gl,t)},this.useFramebuffer=function(t,n){e.gl({framebuffer:t?t.get():null})(n)},this.createComputeModel=function(){var t=(0,r.Z)(p().mark((function t(n){return p().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new ht(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(m.SCISSOR_TEST),e.gl._gl.scissor(t.box.x,t.box.y,t.box.width,t.box.height)):e.gl._gl.disable(m.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=t.x,i=t.y,o=t.width,a=t.height,s={x:r,y:i,width:o,height:a};return n&&(s.framebuffer=n.get()),e.gl.read(s)},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(0,a.Z)(t,[{key:"init",value:function(){var t=(0,r.Z)(p().mark((function t(e){return p().wrap((function(t){while(1)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){H()({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)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"isFloatSupported",value:function(){return this.gl.limits.readFloat}},{key:"beginFrame",value:function(){}},{key:"endFrame",value:function(){}}]),t}(),Tt=function(){function t(){(0,o.Z)(this,t),this.engine=void 0,this.configService=new w}return(0,a.Z)(t,[{key:"setConfig",value:function(t){this.configService.set(t)}},{key:"setEngine",value:function(t){this.engine=t}},{key:"createEntity",value:function(){return v()}},{key:"createKernel",value:function(t){var e=new Z(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}()},86140:function(t,e,n){"use strict";n.d(e,{DV:function(){return rr},MF:function(){return Cn},Wv:function(){return er},Eh:function(){return Wn},Pi:function(){return ur},Jx:function(){return Vn},bn:function(){return Yn},Zr:function(){return Qn},il:function(){return sr},Z8:function(){return ar},Ux:function(){return or},iZ:function(){return ir}});var r={};n.r(r),n.d(r,{Line:function(){return G},applyMatrix:function(){return M},compare:function(){return w},distance:function(){return O},floydWarshall:function(){return P},fractionToLine:function(){return X},getAdjMatrix:function(){return L},getBBoxBoundLine:function(){return W},getCircleCenterByPoints:function(){return I},getCircleIntersectByPoint:function(){return k},getDegree:function(){return B},getEllipseIntersectByPoint:function(){return C},getLineIntersect:function(){return E},getPointsCenter:function(){return q},getRectIntersectByPoint:function(){return T},intersectBBox:function(){return U},invertMatrix:function(){return A},isPointInPolygon:function(){return Z},isPointsOverlap:function(){return Q},isPolygonsIntersect:function(){return $},itemIntersectByLine:function(){return Y},lerp:function(){return nt},lerpArray:function(){return rt},move:function(){return R},pointLineDistance:function(){return et},pointLineSquareDist:function(){return J},pointRectSquareDist:function(){return tt},rotate:function(){return F},scale:function(){return j},scaleMatrix:function(){return D},squareDist:function(){return K},translate:function(){return N}});var i={};n.r(i),n.d(i,{cloneBesidesImg:function(){return Bt},getAnimateCfgWithCallback:function(){return zt},getBBox:function(){return Tt},getComboBBox:function(){return jt},getLabelPosition:function(){return Ct},getLetterWidth:function(){return Dt},getLoopCfgs:function(){return kt},getTextSize:function(){return Pt},plainCombosToTrees:function(){return Nt},reconstructTree:function(){return Rt},shouldRefreshEdge:function(){return Ft},traverseTree:function(){return It},traverseTreeUp:function(){return Ot},truncateLabelByLength:function(){return Lt}});var o={};n.r(o),n.d(o,{calculationItemsBBox:function(){return Jt},cloneEvent:function(){return Xt},formatPadding:function(){return Yt},isNaN:function(){return Kt},isViewportChanged:function(){return qt},processParallelEdges:function(){return Qt},uniqueId:function(){return Vt}});var a={};n.r(a),n.d(a,{getClosedSpline:function(){return en},getControlPoint:function(){return Je},getSpline:function(){return Ke},getStarPath:function(){return un},paddedHull:function(){return sn},pathToPoints:function(){return tn},pointsToPolygon:function(){return Qe},roundedHull:function(){return an}});var s={};n.r(s),n.d(s,{defaultSubjectColors:function(){return Xn}});var u={};n.r(u),n.d(u,{isForce:function(){return qn}});var l=n(55817),c={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),(0,l.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),(0,l.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}},f=function(){function t(){}return t.registerBehavior=function(e,n){if(!n)throw new Error("please specify handler for this behavior: ".concat(e));var r=(0,l.clone)(c);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&&((0,l.each)(n,(function(t,n){r[n]=(0,l.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}(),h=f,d=h,p=n(97582),g=n(90494),v=n(31506),m=n(37609),y=n(77160),b=n(35600),x=n(31437),_=v.vs,w=function(t){return function(e,n){return e[t]-n[t]}},S=function(t,e,n){return t>=e&&t<=n},E=function(t,e,n,r){var i=1e-4,o={x:n.x-t.x,y:n.y-t.y},a={x:e.x-t.x,y:e.y-t.y},s={x:r.x-n.x,y:r.y-n.y},u=a.x*s.y-a.y*s.x,l=u*u,c=1/u,f=a.x*a.x+a.y*a.y,h=s.x*s.x+s.y*s.y;if(l>i*f*h){var d=(o.x*s.y-o.y*s.x)*c,p=(o.x*a.y-o.y*a.x)*c;return S(d,0,1)&&S(p,0,1)?{x:t.x+d*a.x,y:t.y+d*a.y}:null}return null},T=function(t,e){var n=t.x,r=t.y,i=t.width,o=t.height,a=n+i/2,s=r+o/2,u=[],l={x:a,y:s};u.push({x:n,y:r}),u.push({x:n+i,y:r}),u.push({x:n+i,y:r+o}),u.push({x:n,y:r+o}),u.push({x:n,y:r});for(var c=null,f=1;f<u.length;f++)if(c=E(u[f-1],u[f],l,e),c)break;return c},k=function(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=o-n,u=a-r;if(s*s+u*u<i*i)return null;var l=Math.atan(u/s);return{x:n+Math.abs(i*Math.cos(l))*Math.sign(s),y:r+Math.abs(i*Math.sin(l))*Math.sign(u)}},C=function(t,e){var n=t.rx,r=t.ry,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=Math.atan2(s/r,a/n);return u<0&&(u+=2*Math.PI),{x:i+n*Math.cos(u),y:o+r*Math.sin(u)}},M=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]),y.transformMat3(r,r,e),{x:r[0],y:r[1]}},A=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=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 y.transformMat3(i,i,r),{x:i[0],y:i[1]}},I=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,u=(t.x*t.x-n.x*n.x-n.y*n.y+t.y*t.y)/2,l=i*o-r*a;return{x:-(a*s-i*u)/l,y:-(r*u-o*s)/l}},O=function(t,e){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)},D=function(t,e){var n=[];return t.forEach((function(t){var r=[];t.forEach((function(t){r.push(t*e)})),n.push(r)})),n},P=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},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;var n=[];i.push(n)})),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},N=function(t,e){t.translate(e.x,e.y)},R=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 u=a*i[0],l=s*i[4],c=0,f=0,h=0,d=0;t.animate((function(t){return h=u*t,d=l*t,i=_(i,[["t",h-c,d-f]]),c=h,f=d,{matrix:i}}),r)}else{var p=_(i,[["t",a,s]]);t.setMatrix(p)}},j=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var r=e;(0,l.isArray)(e)||(r=[e,e]),(0,l.isArray)(e)&&1===e.length&&(r=[e[0],e[0]]),n=_(n,[["s",r[0],r[1]]]),t.setMatrix(n)},F=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]),n=_(n,[["r",e]]),t.setMatrix(n)},B=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 z(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 Z=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 u=t[s],l=t[(s+1)%i];if(z(u,l,[e,n]))return!0;a(u[1]-n)>0!==a(l[1]-n)>0&&a(e-(n-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(r=!r)}return r},U=function(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)},H=function(t,e){var n=!1;return(0,l.each)(t,(function(t){if(E(t.from,t.to,e.from,e.to))return n=!0,!1})),n},$=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(!U(i,o))return!1;var a=!1;if((0,l.each)(e,(function(e){if(Z(t,e[0],e[1]))return a=!0,!1})),a)return!0;if((0,l.each)(t,(function(t){if(Z(e,t[0],t[1]))return a=!0,!1})),a)return!0;var s=r(t),u=r(e),c=!1;return(0,l.each)(u,(function(t){if(H(s,t))return c=!0,!1})),c},G=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),i={x:t,y:e,minX:t,minY:e,maxX:n,maxY:r,width:n-t,height:r-e};return i},t}(),W=function(t,e){var n={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]};return n[e]},V=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},Y=function(t,e){for(var n=["top","left","bottom","right"],r=t.getBBox(),i=0,o=[],a=0;a<4;a++){var s=W(r,n[a]),u=s[0],l=s[1],c=s[2],f=s[3];o[a]=E({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},{x:u,y:l},{x:c,y:f}),o[a]&&(i+=1)}return[o,i]},X=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=W(r,n[a]),u=s[0],l=s[1],c=s[2],f=s[3],h=V(e,new G(u,l,c,f));h=Math.abs(h-.5),h>=0&&h<=1&&(o+=1,i=h<i?h:i)}return 0===o?-1:i},q=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}},K=function(t,e){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)},J=function(t,e){var n,r=e.x1,i=e.y1,o=e.x2-r,a=e.y2-i,s=t.x-r,u=t.y-i,l=s*o+u*a;l<=0?n=0:(s=o-s,u=a-u,l=s*o+u*a,n=l<=0?0:l*l/(o*o+a*a));var c=s*s+u*u-n;return c<0&&(c=0),c},Q=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)},tt=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,a=n||r||i||o;if(!a)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 s=Math.min(Math.abs(e.x-t.x),Math.abs(e.x+e.width-t.x)),u=Math.min(Math.abs(e.y-t.y),Math.abs(e.y+e.height-t.y));return s*s+u*u},et=function(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=e.x,s=e.y,u=[i-n,o-r];if(x.exactEquals(u,[0,0]))return NaN;var l=[-u[1],u[0]];x.normalize(l,l);var c=[a-n,s-r];return Math.abs(x.dot(c,l))},nt=function(t,e,n){return t+(e-t)*n},rt=function(t,e,n){for(var r=Math.min(t.length,e.length),i=new Array(r),o=0;o<r;o++)i[o]=nt(t[o],e[o],n);return i},it="rgb(95, 149, 255)",ot="rgb(255, 255, 255)",at="rgb(0, 0, 0)",st="rgb(247, 250, 255)",ut="rgb(239, 244, 255)",lt="rgb(253, 253, 253)",ct="rgb(250, 250, 250)",ft="rgb(224, 224, 224)",ht="rgb(234, 234, 234)",dt="rgb(245, 245, 245)",pt="rgb(191, 213, 255)",gt="#4572d9",vt="rgb(223, 234, 255)",mt={mainStroke:it,mainFill:ut,activeStroke:it,activeFill:st,inactiveStroke:pt,inactiveFill:st,selectedStroke:it,selectedFill:ot,highlightStroke:gt,highlightFill:vt,disableStroke:ft,disableFill:ct,edgeMainStroke:ft,edgeActiveStroke:it,edgeInactiveStroke:ht,edgeSelectedStroke:it,edgeHighlightStroke:it,edgeDisableStroke:dt,comboMainStroke:ft,comboMainFill:lt,comboActiveStroke:it,comboActiveFill:st,comboInactiveStroke:ft,comboInactiveFill:lt,comboSelectedStroke:it,comboSelectedFill:lt,comboHighlightStroke:gt,comboHighlightFill:lt,comboDisableStroke:ht,comboDisableFill:ct},yt={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:mt.mainStroke,fill:ut},size:20,color:mt.mainStroke,linkPoints:{size:8,lineWidth:1,fill:mt.activeFill,stroke:mt.activeStroke}},nodeStateStyles:{active:{fill:mt.activeFill,stroke:mt.activeStroke,lineWidth:2,shadowColor:mt.mainStroke,shadowBlur:10},selected:{fill:mt.selectedFill,stroke:mt.selectedStroke,lineWidth:4,shadowColor:mt.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:mt.highlightFill,stroke:mt.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:mt.inactiveFill,stroke:mt.inactiveStroke,lineWidth:1},disable:{fill:mt.disableFill,stroke:mt.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:at,textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:mt.edgeMainStroke,lineAppendWidth:2},color:mt.edgeMainStroke},edgeStateStyles:{active:{stroke:mt.edgeActiveStroke,lineWidth:1},selected:{stroke:mt.edgeSelectedStroke,lineWidth:2,shadowColor:mt.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:mt.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:mt.edgeInactiveStroke,lineWidth:1},disable:{stroke:mt.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:at,textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:mt.comboMainFill,lineWidth:1,stroke:mt.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:mt.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:mt.comboActiveStroke,lineWidth:1,fill:mt.comboActiveFill},selected:{stroke:mt.comboSelectedStroke,lineWidth:2,fill:mt.comboSelectedFill,shadowColor:mt.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:mt.comboHighlightStroke,lineWidth:2,fill:mt.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:mt.comboInactiveStroke,fill:mt.comboInactiveFill,lineWidth:1},disable:{stroke:mt.comboDisableStroke,fill:mt.comboDisableFill,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"},bt={" ":.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},xt=Math.PI,_t=Math.sin,wt=Math.cos,St=_t(xt/8),Et=wt(xt/8),Tt=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=M(r,o),i=M(i,o)}var a=r.x,s=r.y,u=i.x,l=i.y;return{x:a,y:s,minX:a,minY:s,maxX:u,maxY:l,width:u-a,height:l-s}},kt=function(t){var e=t.sourceNode||t.targetNode,n=e.get("group"),r=n.getMatrix();r||(r=[1,0,0,0,1,0,0,0,1]);var i=e.getKeyShape(),o=i.getBBox(),a=t.loopCfg||{},s=a.dist||2*Math.max(o.width,o.height),u=a.position||yt.defaultLoopPosition,l=[(o.minX+o.maxX)/2+r[6],(o.minY+o.maxY)/2+r[7]],c=[t.startPoint.x,t.startPoint.y],f=[t.endPoint.x,t.endPoint.y],h=o.height/2,d=o.width/2,p=h,g=h,v=p*St,m=p*Et,y=g*St,b=g*Et,_=i.get("type"),w=Math.min(h/2,d/2),S=Math.min(h,d),E=(null===a||void 0===a?void 0:a.pointPadding)?Math.min(S,null===a||void 0===a?void 0:a.pointPadding):w;if(c[0]===f[0]&&c[1]===f[1]){switch(u){case"top":"circle"===_?(c=[l[0]-v,l[1]-m],f=[l[0]+y,l[1]-b]):(c=[l[0]-E,l[1]-h],f=[l[0]+E,l[1]-h]);break;case"top-right":p=h,g=d,"circle"===_?(v=p*St,m=p*Et,y=g*St,b=g*Et,c=[l[0]+v,l[1]-m],f=[l[0]+b,l[1]-y]):(c=[l[0]+d-E,l[1]-h],f=[l[0]+d,l[1]-h+E]);break;case"right":p=d,g=d,"circle"===_?(v=p*St,m=p*Et,y=g*St,b=g*Et,c=[l[0]+m,l[1]-v],f=[l[0]+b,l[1]+y]):(c=[l[0]+d,l[1]-E],f=[l[0]+d,l[1]+E]);break;case"bottom-right":p=d,g=h,"circle"===_?(v=p*St,m=p*Et,y=g*St,b=g*Et,c=[l[0]+m,l[1]+v],f=[l[0]+y,l[1]+b]):(c=[l[0]+d,l[1]+h-E],f=[l[0]+d-E,l[1]+h]);break;case"bottom":p=h,g=h,"circle"===_?(v=p*St,m=p*Et,y=g*St,b=g*Et,c=[l[0]+v,l[1]+m],f=[l[0]-y,l[1]+b]):(c=[l[0]-E,l[1]+h],f=[l[0]+E,l[1]+h]);break;case"bottom-left":p=h,g=d,"circle"===_?(v=p*St,m=p*Et,y=g*St,b=g*Et,c=[l[0]-v,l[1]+m],f=[l[0]-b,l[1]+y]):(c=[l[0]-d,l[1]+h-E],f=[l[0]-d+E,l[1]+h]);break;case"left":p=d,g=d,"circle"===_?(v=p*St,m=p*Et,y=g*St,b=g*Et,c=[l[0]-m,l[1]+v],f=[l[0]-b,l[1]-y]):(c=[l[0]-d,l[1]-E],f=[l[0]-d,l[1]+E]);break;case"top-left":p=d,g=h,"circle"===_?(v=p*St,m=p*Et,y=g*St,b=g*Et,c=[l[0]-m,l[1]-v],f=[l[0]-y,l[1]-b]):(c=[l[0]-d+E,l[1]-h],f=[l[0]-d,l[1]-h+E]);break;default:p=d,g=d,v=p*St,m=p*Et,y=g*St,b=g*Et,c=[l[0]-v,l[1]-m],f=[l[0]+y,l[1]-b]}if(!1===a.clockwise){var T=[c[0],c[1]];c=[f[0],f[1]],f=[T[0],T[1]]}}var k=[c[0]-l[0],c[1]-l[1]],C=(p+s)/p,M=(g+s)/g;!1===a.clockwise&&(C=(g+s)/g,M=(p+s)/p);var A=x.scale([0,0],k,C),I=[l[0]+A[0],l[1]+A[1]],O=[f[0]-l[0],f[1]-l[1]],D=x.scale([0,0],O,M),P=[l[0]+D[0],l[1]+D[1]];return t.startPoint={x:c[0],y:c[1]},t.endPoint={x:f[0],y:f[1]},t.controlPoints=[{x:I[0],y:I[1]},{x:P[0],y:P[1]}],t},Ct=function(t,e,n,r,i){var o=1e-4,a=[],s=null===t||void 0===t?void 0:t.getPoint(e);if(!s)return{x:0,y:0,angle:0};if(e<o)a=t.getStartTangent().reverse();else if(e>1-o)a=t.getEndTangent();else{var u=null===t||void 0===t?void 0:t.getPoint(e+o);a.push([s.x,s.y]),a.push([u.x,u.y])}var l=Math.atan2(a[1][1]-a[0][1],a[1][0]-a[0][0]);if(l<0&&(l+=2*xt),n&&(s.x+=wt(l)*n,s.y+=_t(l)*n),r){var c=l-xt/2;l>.5*xt&&l<1.5*xt&&(c-=xt),s.x+=wt(c)*r,s.y+=_t(c)*r}var f={x:s.x,y:s.y,angle:l};return i?(l>.5*xt&&l<1.5*xt&&(l-=xt),(0,p.__assign)({rotate:l},f)):f},Mt=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},At=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)},It=function(t,e){"function"===typeof e&&Mt(t,null,-1,e)},Ot=function(t,e){"function"===typeof e&&At(t,null,-1,e)},Dt=function(t,e){return e*(bt[t]||1)},Pt=function(t,e){var n=0,r=new RegExp("[一-龥]+");return t.split("").forEach((function(t){r.test(t)?n+=e:n+=Dt(t,e)})),[n,e]},Lt=function(t,e){return"number"!==typeof e||e<=0||e>=t.length?t:t.substring(0,e)+"..."},Nt=function(t,e){var n=[],r={},i={};t.forEach((function(t){i[t.id]=t})),t.forEach((function(t,e){var o=(0,l.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,!a.parentId)return void n.push(a);var s=r[a.parentId];if(s)s.children?s.children.push(o):s.children=[o];else{var u={id:a.parentId,children:[a]};r[a.parentId]=u,r[o.id]=o}}else if((0,l.isString)(t.parentId)){var c=r[t.parentId];if(c)c.children?c.children.push(o):c.children=[o],r[o.id]=o;else{var f={id:t.parentId,children:[o]};r[f.id]=f,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,It(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},Rt=function(t,e,n){var r,i,o=t,a={root:{children:t}},s=!1,u="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 It(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||(u=t.parentId||t.comboId||"root",i=t,"combo"===t.itemType?i.parentId=n:i.comboId=n,s=!0,!1)}))})),o=null===(r=a[u])||void 0===r?void 0:r.children;var l=o?o.indexOf(i):-1;if(l>-1&&o.splice(l,1),s||(i={id:e,itemType:"node",comboId:n},a[e]={children:void 0}),e){var c=!1;if(n){var f=0;(t||[]).forEach((function(t){c||It(t,(function(t){return n!==t.id||(c=!0,t.children?t.children.push(i):t.children=[i],f=t.depth,"node"===i.itemType?i.depth=f+2:i.depth=f+1,!1)}))}))}else n&&c||"node"===i.itemType||t.push(i);var h=i.depth;It(i,(function(t){return"node"===t.itemType?h+=2:h+=1,t.depth=h,!0}))}return t},jt=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||{},a=o.x,s=o.y,u=o.fixSize,c=o.collapsed,f=o.fixCollapseSize,h=c?f:u,d=(0,l.isArray)(h)?h:[h,h],p=d[0],g=d[1],v=[p/2,g/2];return{minX:a-v[0],minY:s-v[1],maxX:a+v[0],maxY:s+v[1],x:a,y:s,width:p,height:g}}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},Ft=function(t){var e=(0,l.isNumber)(t.x)||(0,l.isNumber)(t.y)||t.type||t.anchorPoints||t.size;return t.style&&(e=e||(0,l.isNumber)(t.style.r)||(0,l.isNumber)(t.style.width)||(0,l.isNumber)(t.style.height)||(0,l.isNumber)(t.style.rx)||(0,l.isNumber)(t.style.ry)),e},Bt=function(t){var e={};return Object.keys(t).forEach((function(n){var r=t[n];if("img"!==n||(0,l.isString)(r))if((0,l.isObject)(r)&&!(0,l.isArray)(r)){var i={};Object.keys(r).forEach((function(t){var e=r[t];("img"!==t||(0,l.isString)(e))&&(i[t]=(0,l.clone)(e))})),e[n]=i}else e[n]=(0,l.clone)(r)})),e},zt=function(t){var e,n=t.animateCfg,r=t.callback;if(n)if(e=(0,l.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},Zt=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 It(t,(function(t){return!!(0,l.isString)(t.id)||(o=!1,!1)})),o}var a=(e||[]).find((function(t){return!(0,l.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})),u=null===i||void 0===i?void 0:i.map((function(t){return t.id})),c=(0,p.__spreadArray)((0,p.__spreadArray)([],s,!0),u,!0),f=(n||[]).find((function(t){return!c.includes(t.source)||!c.includes(t.target)}));return!f||(console.warn("G6 Warning Tips: The source %c".concat(f.source,"%c or the target %c").concat(f.target,"%c of the edge do not exist in the nodes or combos."),"font-size: 20px; color: red;","","font-size: 20px; color: red;",""),!1)},Ut=function(t,e){if("node"===t||"combo"===t){if(e.id&&!(0,l.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},Ht=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;(0,l.each)(t,(function(t){(0,l.each)(t,(function(e,n){(0,l.isString)(e)&&(t[n]={type:e})}))}))},t.prototype.setBehaviors=function(t){var e,n=this.graph,r=this.modes[t],i=[];(0,l.each)(r||[],(function(t){var r=h.getBehavior(t.type||t);r&&(e=new r(t),e&&(e.bind(n),i.push(e)))})),this.currentBehaves=i},t.mergeBehaviors=function(t,e){return(0,l.each)(e,(function(e){t.indexOf(e)<0&&((0,l.isString)(e)&&(e={type:e}),t.push(e))})),t},t.filterBehaviors=function(t,e){var n=[];return t.forEach((function(t){var r="";r=(0,l.isString)(t)?t:t.type,e.indexOf(r)<0&&n.push(t)})),n},t.prototype.setMode=function(t){var e=this,n=e.modes,r=e.graph,i=t,o=n[i];o&&(r.emit("beforemodechange",{mode:t}),(0,l.each)(this.currentBehaves,(function(t){t.delegate&&t.delegate.remove(),t.unbind(r)})),this.setBehaviors(i),r.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=(0,l.isArray)(e)?e:[e],(0,l.isArray)(n))return(0,l.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){(0,l.isString)(t)&&(t={type:t});var r=[];if(n&&n!==this.mode&&"default"!==n){if(r=this.modes[n],!r||!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++){s=r[a];if(s.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||!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=r[a];if(s.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}(),$t=Ht,Gt=n(80328),Wt=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(0,p.__extends)(e,t),e}(Gt.Event),Vt=function(t){return"".concat(t,"-").concat(Math.random()).concat(Date.now())},Yt=function(t){if((0,l.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((0,l.isNumber)(t))return[t,t,t,t];if((0,l.isString)(t)){var e=parseInt(t,10);return[e,e,e,e]}return[0,0,0,0]},Xt=function(t){var e=new Wt(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},qt=function(t){if(!t)return!1;for(var e=9,n=[1,0,0,0,1,0,0,0,1],r=0;r<e;r++)if(t[r]!==n[r])return!0;return!1},Kt=function(t){return Number.isNaN(Number(t))},Jt=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],s=a.getBBox(),u=s.minX,l=s.minY,c=s.maxX,f=s.maxY;u<e&&(e=u),l<r&&(r=l),c>n&&(n=c),f>i&&(i=f)}var h=Math.floor(e),d=Math.floor(r),p=Math.ceil(n)-Math.floor(e),g=Math.ceil(i)-Math.floor(r);return{x:h,y:d,width:p,height:g,minX:e,minY:r,maxX:n,maxY:i}},Qt=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"],u={},l=[],c={},f=0;f<o;f++){var h=t[f],d=h.source,p=h.target,g="".concat(d,"-").concat(p);if(!l[f]){u[g]||(u[g]=[]),l[f]=!0,u[g].push(h);for(var v=0;v<o;v++)if(f!==v){var m=t[v],y=m.source,b=m.target;l[v]||(d===b&&p===y?(u[g].push(m),l[v]=!0,c["".concat(y,"|").concat(b,"|").concat(u[g].length-1)]=!0):d===y&&p===b&&(u[g].push(m),l[v]=!0))}}}for(var x in u)for(var _=u[x],w=_.length,S=0;S<w;S++){var E=_[S];if(E.source!==E.target)if(1===w&&r&&E.source!==E.target)E.type=r;else{E.type=n;var T=(S%2===0?1:-1)*(c["".concat(E.source,"|").concat(E.target,"|").concat(S)]?-1:1);E.curveOffset=w%2===1?T*Math.ceil(S/2)*a:T*(Math.floor(S/2)*a+e)}else i&&(E.type=i),E.loopCfg={position:s[S%8],dist:20*Math.floor(S/8)+50}}return t},te=n(31278),ee=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,u=-1/0,l=-1/0;o.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y;a>n&&(a=n),s>r&&(s=r),u<n&&(u=n),l<r&&(l=r)}));var c=i.getMatrix()||[1,0,0,0,1,0,0,0,1],f=M({x:a,y:s},c),h=f.x,d=f.y,p=M({x:u,y:l},c),g=p.x,v=p.y;n={minX:h,maxX:g,minY:d,maxY:v,width:g-h,height:v-d,x:h,y:d}}else n=i.getCanvasBBox();if(0!==n.width&&0!==n.height){var m=this.getViewCenter(),y={x:n.x+n.width/2,y:n.y+n.height/2};r.translate(m.x-y.x,m.y-y.y,t,e)}},t.prototype.animatedFitView=function(t,e,n,r,i,o,a,s){var u=this.graph;n=n||{duration:500,easing:"easeCubic"};var l=[1,0,0,0,1,0,0,0,1],c=r.x+i.x-o.x-r.minX,f=r.y+i.y-o.y-r.minY;if(!Kt(c)&&!Kt(f)){var h=(0,te.vs)(l,[["t",c,f]]);if(s){var d=u.get("minZoom"),p=u.get("maxZoom"),g=a;d&&a<d?(g=d,console.warn("fitview failed, ratio out of range, ratio: %f",a,"graph minzoom has been used instead")):p&&a>p&&(g=p,console.warn("fitview failed, ratio out of range, ratio: %f",a,"graph maxzoom has been used instead"));var v=(0,te.vs)(h,[["t",-i.x,-i.y],["s",g,g],["t",i.x,i.y]]),m=zt({animateCfg:n,callback:function(){t.setMatrix(v),u.emit("viewportchange",{action:"translate",matrix:h}),u.emit("viewportchange",{action:"zoom",matrix:v})}});t.stopAnimate(),t.setMatrix(e),t.animate((function(t){return{matrix:rt(e,v,t)}}),m)}else{var y=zt({animateCfg:n,callback:function(){u.emit("viewportchange",{action:"translate",matrix:h})}});t.animate((function(t){return{matrix:rt(e,h,t)}}),y)}}},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"),u=s.getMatrix()||[1,0,0,0,1,0,0,0,1];s.resetMatrix();var l=r.getNodes();if(l.length>r.get("optimizeThreshold")){var c=1/0,f=1/0,h=-1/0,d=-1/0;l.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y;c>n&&(c=n),f>r&&(f=r),h<n&&(h=n),d<r&&(d=r)})),n={minX:c,maxX:h,minY:f,maxY:d,width:h-c,height:d-f,x:c,y:f}}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,u,e,n,p,g,y,!0);else{var b=p.x-g.x,x=p.y-g.y;if(Kt(b)||Kt(x))return;r.translate(b,x),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,u=t.ratioRule,l=void 0===u?"min":u,c=this.graph,f=this.getFormatPadding(),h=c.get("width"),d=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,x=-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),x<r&&(x=r)})),r={minX:m,maxX:b,minY:y,maxY:x,width:b-m,height:x-y,x:m,y:y}}else r=p.getCanvasBBox();if(0!==r.width&&0!==r.height){var _,w=this.getViewCenter(),S={x:r.x+r.width/2,y:r.y+r.height/2},E=(h-f[1]-f[3])/r.width,T=(d-f[0]-f[2])/r.height;if(_="x"===s?E:"y"===s?T:"max"===l?Math.max(E,T):Math.min(E,T),o&&(_=_<1?_:1),e)this.animatedFitView(p,g,n,r,w,S,_,!0);else{var k=c.getZoom(),C=k*_,M=c.get("minZoom");C<M&&(C=M,console.warn("fitview failed, ratio out of range, ratio: %f",_,"graph minzoom has been used instead")),c.translate(w.x-S.x,w.y-S.y),c.zoomTo(C,w)}}},t.prototype.getFormatPadding=function(){var t=this.graph.get("fitViewPadding");return Yt(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],u=(o.y-t.y)*a[4],l=0,c=0,f=0,h=0;this.graph.get("canvas").animate((function(t){f=s*t,h=u*t,r.graph.translate(f-l,h-c),l=f,c=h}),(0,p.__assign)({},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();n||(n=[1,0,0,0,1,0,0,0,1]);var r=A({x:t,y:e},n);return r},t.prototype.getPointByClient=function(t,e){var n=this.graph.get("canvas"),r=n.getPointByClient(t,e);return this.getPointByCanvas(r.x,r.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]),M({x:t,y:e},n)},t.prototype.focus=function(t,e,n){if((0,l.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"),u=s.getMatrix();u||(u=[1,0,0,0,1,0,0,0,1]),r=u[6],i=u[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"),u=i.get("group"),l=u.getMatrix()||[1,0,0,0,1,0,0,0,1];u.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},f=0,h=t;f<h.length;f++){var d=h[f],p=d.getBBox();p.minX<c.minX&&(c.minX=p.minX),p.minY<c.minY&&(c.minY=p.minY),p.maxX>c.maxX&&(c.maxX=p.maxX),p.maxY>c.maxY&&(c.maxY=p.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 g=this.getViewCenter(),v={x:c.x+c.width/2,y:c.y+c.height/2},m=(a-o[1]-o[3])/c.width,y=(s-o[0]-o[2])/c.height,b=m;m>y&&(b=y),n?this.animatedFitView(u,l,r,c,g,v,b,e):(i.translate(g.x-v.x,g.y-v.y),e&&!i.zoom(b,g)&&console.warn("zoom failed, ratio out of range, ratio: %f",b))}}},t.prototype.changeSize=function(t,e){var n=this.graph;if(!(0,l.isNumber)(t)||!(0,l.isNumber)(e))throw Error("invalid canvas width & height, please make sure width & height type is number");n.set({width:t,height:e});var r=n.get("canvas");r.changeSize(t,e);var i=n.get("plugins");i.forEach((function(t){t.get("gridContainer")&&t.positionInit()}))},t.prototype.destroy=function(){this.graph=null,this.destroyed=!1},t}(),ne=ee;function re(t){return re="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},re(t)}function ie(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;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}))},u=function(){return r(o)},l=null,c=0,f="";while(c<i.length){var h=i[c],d=s('"',"'");if(d||h.trim()){var p="\\"===i[c-1],g=s("}"),v=s("]"),m=s(","),y=u();if(d)if(r(a)!==h||p)f+=h;else{a.pop();var b=e(f);y.push(b),l=b,f=""}else if(v&&","===h)f&&(y.push(e(f)),f="");else if(g&&":"===h)a.push(","),f&&(y.push(f),f="");else if(m&&","===h)f&&(y.push(e(f)),f=""),a.pop();else if("}"===h&&(g||m)){f&&(y.push(e(f)),f=""),m&&a.pop();for(var x={},_=1;_<y.length;_+=2)x[y[_-1]]=y[_];o.pop(),o.length&&r(o).push(x),a.pop(),l=x}else"]"===h&&v?(f&&(y.push(e(f)),f=""),o.pop(),o.length&&r(o).push(y),a.pop(),l=y):"{"===h?(o.push([]),a.push("}")):"["===h?(o.push([]),a.push("]")):'"'===h?a.push('"'):"'"===h?a.push("'"):f+=h;c+=1}else c+=1}return l||f}var oe=function(t){return t.split("-").reduce((function(t,e){return t+e.charAt(0).toUpperCase()+e.slice(1)}))},ae=function(t){return function(e){var n=t.length,r=[],i=0,o="";while(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=(0,l.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 se(t,e){var n={},r=t.getAttributeNames&&t.getAttributeNames()||[],i=t.children&&Array.from(t.children).map((function(t){return se(t,e)})),o={},a=t.tagName?t.tagName.toLowerCase():"group";return"text"===a&&(n.text=t.innerText),o.type=a,"img"===a&&(o.type="image"),Array.from(r).forEach((function(e){var r=oe(e),i=t.getAttribute(e);try{if("style"===r||"attrs"===r){var a=ie(i);n=(0,p.__assign)((0,p.__assign)({},n),a)}else o[r]=ie(i)}catch(s){if("style"===r)throw s;o[r]=i}})),o.attrs=n,e&&e.style&&o.name&&"object"===re(e.style[o.name])&&(o.attrs=(0,p.__assign)((0,p.__assign)({},o.attrs),e.style[o.name])),e&&e.style&&o.keyshape&&(o.attrs=(0,p.__assign)((0,p.__assign)({},o.attrs),e.style)),i.length&&(o.children=i),o}function ue(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=Pt(a.text,a.fontSize||12)[0],r=16,s.y+=r,s.height=r,s.width=i,t.attrs=(0,p.__assign)({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}function le(t,e){var n;void 0===e&&(e={x:0,y:0});var r=(0,p.__assign)({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=(0,p.__assign)({},e);a&&(s.y+=a);for(var u=0;u<t.children.length;u++){t.children[u].attrs.key="".concat(o.key||"root"," -").concat(u," ");var l=le(t.children[u],s);if(l.bbox){var c=l.bbox;"inline"===l.attrs.next?s.x+=l.bbox.width:s.y+=l.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=ue(t,e,r),t.attrs=(0,p.__assign)((0,p.__assign)({},t.attrs),t.bbox),t}function ce(t,e){var n,r,i,o,a=(t||{}).type,s=((null===e||void 0===e?void 0:e.attrs)||{}).key;if(s&&t&&(t.attrs.key=s),!t&&e)return{action:"delete",val:e,type:a,key:s};if(t&&!e)return{action:"add",val:t,type:a};if(!t&&!e)return{action:"same",type:a};var u=[];if((null===(n=t.children)||void 0===n?void 0:n.length)>0||(null===(r=e.children)||void 0===r?void 0:r.length)>0)for(var l=Math.max(null===(i=t.children)||void 0===i?void 0:i.length,null===(o=e.children)||void 0===o?void 0:o.length),c=e.children||[],f=t.children||[],h=0;h<l;h+=1)u.push(ce(f[h],c[h]));var d=Object.keys(e.attrs),p=Object.keys(t.attrs);return e.type!==t.type?{action:"restructure",nowTarget:t,formerTarget:e,key:s,children:u}:d.filter((function(t){return"children"!==t})).some((function(n){return t.attrs[n]!==e.attrs[n]||!p.includes(n)}))?{action:"change",val:t,children:u,type:a,key:s}:{action:"same",children:u,type:a,key:s}}function fe(t){var e={},n=function(e){var n="function"===typeof t?t(e):t,r=ae(n)(e),i=document.createElement("div");i.innerHTML=r;var o=i.children[0],a=le(se(o,e));return i.remove(),a};return{draw:function(t,r){var i=n(t),o=r,a=function t(e){var n=e.attrs,i=void 0===n?{}:n,a=e.bbox,s=e.type,u=e.children,l=(0,p.__rest)(e,["attrs","bbox","type","children"]);if("group"!==e.type){var c=r.addShape(e.type,(0,p.__assign)({attrs:i,origin:{bbox:a,type:s,children:u}},l));e.keyshape&&(o=c)}e.children&&e.children.forEach((function(e){return t(e)}))};return a(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=e[t.id].pop(),u=ce(a,s),l=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)}))},c=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)}))},f=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((0,p.__assign)((0,p.__assign)({},a),e.val.attrs))}break;case"add":l(e.val);break;case"delete":c(e.val);break;case"restructure":c(e.formerTarget),l(e.nowTarget);break;default:break}}e.children&&e.children.forEach((function(e){return t(e)}))};f(u),e[t.id].push(a)},getAnchorPoints:function(){return[[0,.5],[1,.5],[.5,1],[.5,0]]}}}var he={};function de(t){return he[t]||(he[t]=(0,l.upperFirst)(t)),he[t]}var pe={defaultShapeType:"defaultType",className:null,getShape:function(t){var e=this,n=e[t]||e[e.defaultShapeType]||e["simple-circle"];return n},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){var i=this.getShape(t);i.setState(e,n,r)},shouldUpdate:function(t){var e=this.getShape(t);return!!e.update},getControlPoints:function(t,e){var n=this.getShape(t);return n.getControlPoints(e)},getAnchorPoints:function(t,e){var n=this.getShape(t);return n.getAnchorPoints(e)}},ge={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,n=t.anchorPoints||e;return n}},ve=function(){function t(){}return t.registerFactory=function(e,n){var r=de(e),i=pe,o=(0,p.__assign)((0,p.__assign)({},i),n);return t[r]=o,o.className=r,o},t.getFactory=function(e){var n=de(e);return t[n]},t.registerNode=function(e,n,r){var i,o=t.Node;if("string"===typeof n||"function"===typeof n){var a=fe(n);i=(0,p.__assign)((0,p.__assign)({},o.getShape("single-node")),a)}else if(n.jsx){var s=n.jsx;a=fe(s);i=(0,p.__assign)((0,p.__assign)((0,p.__assign)({},o.getShape("single-node")),a),n)}else{o.getShape(r);var u=r?o.getShape(r):ge;i=(0,p.__assign)((0,p.__assign)({},u),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):ge,a=(0,p.__assign)((0,p.__assign)({},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):ge,a=(0,p.__assign)((0,p.__assign)({},o),n);return a.type=e,a.itemType="combo",i[e]=a,a},t}(),me=ve;ve.registerFactory("node",{defaultShapeType:"circle"}),ve.registerFactory("edge",{defaultShapeType:"line"}),ve.registerFactory("combo",{defaultShapeType:"circle"});var ye="bboxCache",be="bboxCanvasCache",xe=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");"undefined"===typeof r?r=Vt(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 u=s[a].options;if(u&&u.stateStyles){var c=this.get("styles")||n.stateStyles;c=(0,l.deepMix)({},u.stateStyles,c),this.set("styles",c)}}}return t.prototype.calculateBBox=function(){var t=this.get("keyShape"),e=this.get("group"),n=Tt(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=Tt(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,e=t.get("shapeFactory"),n=t.get("group"),r=t.get("model");n.clear();var i=r.visible;if(void 0===i||i||t.changeVisibility(i),e){t.updatePosition(r);var o=t.getShapeCfg(r),a=o.type,s=e.draw(a,o,n);s&&(t.set("keyShape",s),s.set("isKeyShape",!0),s.set("draggable",!0)),this.setOriginStyle(),this.set("currentShape",a),this.restoreStates(e,a)}},t.prototype.setOriginStyle=function(){var t=this.get("group"),e=t.get("children"),n=this.getKeyShape(),r=this,i=n.get("name");if(this.get("originStyle")){var o=this.get("originStyle");i&&!o[i]&&(o[i]={});var a=this.getCurrentStatesStyle(),s=function(t){var n=e[t],s=n.get("name"),u=n.attr();if(s&&s!==i){var c=a[s];o[s]||(o[s]={}),c?Object.keys(u).forEach((function(t){var e=u[t];e!==c[t]&&(o[s][t]=e)})):o[s]="image"!==n.get("type")?(0,l.clone)(u):r.getShapeStyleByName(s)}else{var f=n.attr(),h={};Object.keys(a).forEach((function(t){var e=a[t];t!==i&&(0,l.isPlainObject)(e)||(h[t]=e)})),Object.keys(f).forEach((function(t){var e=f[t];h[t]!==e&&(i?o[i][t]=e:o[t]=e)}))}};for(c=0;c<e.length;c++)s(c);delete o.path,delete o.matrix,delete o.x,delete o.y,o[i]&&(delete o[i].x,delete o[i].y,delete o[i].matrix,delete o[i].path),r.set("originStyle",o)}else{for(var u={},c=0;c<e.length;c++){var f=e[c],h=f.get("type"),d=f.get("name");if(d&&d!==i)u[d]="image"!==h?(0,l.clone)(f.attr()):r.getShapeStyleByName(d),"text"===h&&u[d]&&(delete u[d].x,delete u[d].y,delete u[d].matrix);else{var p=r.getShapeStyleByName();if(delete p.path,delete p.matrix,i)if(d)u[i]=p;else{var g=Vt("shape");f.set("name",g),t["shapeMap"][g]=f,u[g]="image"!==h?(0,l.clone)(f.attr()):r.getShapeStyleByName(d)}else Object.assign(u,p)}}r.set("originStyle",u)}},t.prototype.restoreStates=function(t,e){var n=this,r=n.get("states");(0,l.each)(r,(function(r){t.setState(e,r,!0,n)}))},t.prototype.init=function(){var t=me.getFactory(this.get("type"));this.set("shapeFactory",t)},t.prototype.get=function(t){return this._cfg[t]},t.prototype.set=function(t,e){(0,l.isPlainObject)(t)?this._cfg=(0,p.__assign)((0,p.__assign)({},this._cfg),t):this._cfg[t]=e},t.prototype.getDefaultCfg=function(){return{}},t.prototype.clearCache=function(){this.set(ye,null),this.set(be,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(),e){var r={};return(0,l.each)(e.attr(),(function(t,e){("img"!==e||(0,l.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=(0,p.__assign)((0,p.__assign)({},n),t.style),r}return t},t.prototype.getStateStyle=function(t){var e=this.get("styles"),n=e&&e[t];return n},t.prototype.getOriginStyle=function(){return this.get("originStyle")},t.prototype.getCurrentStatesStyle=function(){var t=this,e={},n=t.getStates();return n&&n.length?((0,l.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;(0,l.isString)(e)&&(i="".concat(t,":").concat(e),o="".concat(t,":"));var a=n;if((0,l.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((0,l.isString)(e)){var u=n.filter((function(t){return t.includes(o)}));u.length>0&&this.clearStates(u),a=a.filter((function(t){return!t.includes(o)})),a.push(i),this.set("states",a)}if(r){var c=this.get("model"),f=c.type;r.setState(f,t,e,this)}},t.prototype.clearStates=function(t){var e=this,n=e.getStates(),r=e.get("shapeFactory"),i=e.get("model"),o=i.type;t||(t=n),(0,l.isString)(t)&&(t=[t]);var a=n.filter((function(e){return-1===t.indexOf(e)}));e.set("states",a),t.forEach((function(t){r.setState(o,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){var e=this.getStates();return e.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;(0,l.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(),N(i,{x:n,y:r}),this.clearCache(),!0)},t.prototype.getBBox=function(){var t=this.get(ye);return t||(t=this.calculateBBox(),this.set(ye,t)),t},t.prototype.getCanvasBBox=function(){var t=this.get(be);return t||(t=this.calculateCanvasBBox(),this.set(be,t)),t},t.prototype.toFront=function(){var t=this.get("group");t.toFront()},t.prototype.toBack=function(){var t=this.get("group");t.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}(),_e=xe,we={source:"start",target:"end"},Se="Node",Ee="Point",Te="Anchor",ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,p.__extends)(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=we[t]+Ee,r=t+Se,i=this.get(r);i&&!i.destroyed&&i.removeEdge(this),(0,l.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=we[t]+Ee,i=t+Se,o=this.get(r);if(!o){var a=this.get(i),s=t+Te,u=this.getPrePoint(t,n),c=e[s];(0,l.isNil)(c)||(o=a.getLinkPointByAnchor(c)),o=o||a.getLinkPoint(u),(0,l.isNil)(o.index)||this.set("".concat(t,"AnchorIndex"),o.index)}return o},e.prototype.getPrePoint=function(t,e){if(e&&e.length){var n="source"===t?0:e.length-1;return e[n]}var r="source"===t?"target":"source";return this.getEndPoint(r)},e.prototype.getEndPoint=function(t){var e=t+Se,n=we[t]+Ee,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+Se,n=we[t]+Ee,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,i=r.get("linkCenter"),o=(null===n||void 0===n?void 0:n.includes("move"))?e:t.prototype.getShapeCfg.call(this,e);if(i)o.startPoint=r.getEndCenter("source"),o.endPoint=r.getEndCenter("target");else{var a=o.controlPoints||r.getControlPointsByCenter(o);o.startPoint=r.getLinkPoint("source",e,a),o.endPoint=r.getLinkPoint("target",e,a)}return o.sourceNode=r.get("sourceNode"),o.targetNode=r.get("targetNode"),o},e.prototype.getModel=function(){var t=this.get("model"),e=this.get("source".concat(Se)),n=this.get("target".concat(Se));return e?delete t["source".concat(Se)]:t.source=this.get("start".concat(Ee)),n?delete t["target".concat(Se)]:t.target=this.get("end".concat(Ee)),(0,l.isString)(t.source)||(0,l.isPlainObject)(t.source)||(t.source=t.source.getID()),(0,l.isString)(t.target)||(0,l.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 u=t.stateStyles;(0,l.mix)(s,u),delete t.stateStyles}Object.assign(n,t),this.updateShape(e),this.afterUpdate(),this.clearCache()}},e.prototype.destroy=function(){var e=this.get("source".concat(Se)),n=this.get("target".concat(Se));e&&!e.destroyed&&e.removeEdge(this),n&&!n.destroyed&&n.removeEdge(this),t.prototype.destroy.call(this)},e}(_e),Ce=ke,Me="anchorPointsCache",Ae="bboxCache",Ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,p.__extends)(e,t),e.prototype.getNearestPoint=function(t,e){for(var n=0,r=t[0],i=O(t[0],e),o=0;o<t.length;o++){var a=t[o],s=O(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){var r=function(t){return t.getSource()===e};return n.filter(r).map((function(t){return t.getTarget()}))}if("source"===t){var i=function(t){return t.getTarget()===e};return n.filter(i).map((function(t){return t.getSource()}))}var o=function(t){return t.getSource()===e?t.getTarget():t.getSource()};return n.map(o)},e.prototype.getLinkPointByAnchor=function(t){var e=this.getAnchorPoints();return e[t]},e.prototype.getLinkPoint=function(t){var e,n,r=this.get("keyShape"),i=r.get("type"),o=this.get("type"),a=this.getBBox();"combo"===o?(e=a.centerX||(a.maxX+a.minX)/2,n=a.centerY||(a.maxY+a.minY)/2):(e=a.centerX,n=a.centerY);var s,u=this.getAnchorPoints();switch(i){case"circle":s=k({x:e,y:n,r:a.width/2},t);break;case"ellipse":s=C({x:e,y:n,rx:a.width/2,ry:a.height/2},t);break;default:s=T(a,t)}var l=s;return u.length&&(l||(l=t),l=this.getNearestPoint(u,l)),l||(l={x:e,y:n}),l},e.prototype.getAnchorPoints=function(){var t=this.get(Me);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)||[];(0,l.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(Me,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(Ae,null),this.set(Me,null)},e.prototype.getUpdateType=function(t){var e,n,r,i,o;if(t){var a=!(0,l.isNil)(t.x),s=!(0,l.isNil)(t.y),u=Object.keys(t);if(1===u.length&&(a||s)||2===u.length&&a&&s)return"move";if((0,l.isNumber)(t.x)||(0,l.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)))return"bbox|label";var c=u.includes("label")||u.includes("labelCfg");return c?"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}(_e),Oe=Ie,De="bboxCache",Pe="bboxCanvasCache",Le="sizeCache",Ne="anchorPointsCache",Re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,p.__extends)(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=(0,l.isNumber)(t.size)?[t.size,t.size]:t.size,o=(0,l.isNumber)(t.fixSize)?[t.fixSize,t.fixSize]:t.fixSize,a=i||o||yt.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=(0,p.__assign)((0,p.__assign)((0,p.__assign)({},e),t.style),s);var u=t.padding||yt.defaultCombo.padding;return(0,l.isNumber)(u)?(s.r+=u,s.width+=2*u,s.height+=2*u):(s.r=s.r+Math.max.apply(Math,u),s.width+=u[1]+u[3]||2*u[1],s.height+=u[0]+u[2]||2*u[0]),this.set(Le,s),r}return t},e.prototype.calculateCanvasBBox=function(){if(!this.destroyed){var t=this.get("keyShape"),e=this.get("group"),n=this.get(De)||{},r=n.x,i=n.x,o=this.get(Le),a=Tt(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(Le,o);var s=t.get("type");"circle"===s?(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(Ne,null),a}},e.prototype.getChildren=function(){var t=this;return{nodes:t.getNodes(),combos:t.getCombos()}},e.prototype.getNodes=function(){var t=this;return t.get("nodes")},e.prototype.getCombos=function(){var t=this;return t.get("combos")},e.prototype.addChild=function(t){var e=this,n=t.getType();switch(n){case"node":e.addNode(t);break;case"combo":e.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){var e=this;return e.get("combos").push(t),!0},e.prototype.addNode=function(t){var e=this;return e.get("nodes").push(t),!0},e.prototype.removeChild=function(t){var e=this,n=t.getType();switch(n){case"node":e.removeNode(t);break;case"combo":e.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(){this.set(Pe,null);var t=this.calculateCanvasBBox();return t},e.prototype.clearCache=function(){this.set(De,null),this.set(Pe,null),this.set(Ne,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(Le,null),this.set("bbox",null),e.remove(),this._cfg=null,this.destroyed=!0}},e}(Oe),je=Re,Fe="node",Be="edge",ze="vedge",Ze="combo",Ue="default",He="Mapper",$e="stateStyles",Ge=function(){function t(t){var e=this;this.edgeToBeUpdateMap={},this.throttleRefresh=(0,l.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=t===ze?Be:t,i=n.get("".concat(r,"Group"))||n.get("group"),o=(0,l.upperFirst)(r),a=null,s=n.get(r+(0,l.upperFirst)($e))||{},u=n.get(Ue+o);e[$e]&&(s=e[$e]),u&&(0,l.each)(u,(function(t,n){(0,l.isObject)(t)&&!(0,l.isArray)(t)?e[n]=(0,l.deepMix)({},t,e[n]):(0,l.isArray)(t)?e[n]=e[n]||(0,l.clone)(u[n]):e[n]=e[n]||u[n]}));var c=n.get(r+He);if(c){var f=c(e);f[$e]&&(s=f[$e],delete f[$e]),(0,l.each)(f,(function(t,n){(0,l.isObject)(t)&&!(0,l.isArray)(t)?e[n]=(0,l.deepMix)({},e[n],t):e[n]=f[n]||e[n]}))}if(n.emit("beforeadditem",{type:t,model:e}),t===Be||t===ze){var h=void 0,d=void 0;if(h=e.source,d=e.target,h&&(0,l.isString)(h)&&(h=n.findById(h)),d&&(0,l.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 Ce({model:e,source:h,target:d,styles:s,linkCenter:n.get("linkCenter"),group:i.addGroup()})}else if(t===Fe)a=new Oe({model:e,styles:s,group:i.addGroup()});else if(t===Ze){var p=e.children,g=jt(p,n),v=void 0,m=void 0;if(isNaN(g.x)?isNaN(e.x)&&(v=100*Math.random()):v=g.x,isNaN(g.y)?isNaN(e.y)&&(m=100*Math.random()):m=g.y,isNaN(e.x)||isNaN(e.y))e.x=v,e.y=m;else{var y=e.x-v,b=e.y-m;this.updateComboSucceeds(e.id,y,b,p)}var x=i.addGroup();x.setZIndex(e.depth),a=new je({model:e,styles:s,animate:n.get("animate"),bbox:e.collapsed?jt([],n):g,group:x}),e.collapsed||"circle"!==a.getKeyShape().get("type")||(g.width=Math.hypot(g.height,g.width),g.height=g.width,a.set("bbox",g),a.refresh());var _=a.getModel();(p||[]).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((0,l.isString)(t)&&(t=o.findById(t)),t&&!t.destroyed){var a="";t.getType&&(a=t.getType());var s=o.get(a+He),u=t.getModel(),c=u.x,f=u.y,h=t.getUpdateType(e);if(s){var d=(0,l.deepMix)({},u,e),g=s(d),v=(0,l.deepMix)({},u,g,e);g[$e]&&(t.set("styles",v[$e]),delete v[$e]),(0,l.each)(v,(function(t,n){e[n]=t}))}else(0,l.each)(e,(function(t,n){u[n]&&(0,l.isObject)(t)&&!(0,l.isArray)(t)&&(e[n]=(0,p.__assign)((0,p.__assign)({},u[n]),e[n]))}));if(o.emit("beforeupdateitem",{item:t,cfg:e}),a===Be){if(e.source){var m=e.source;(0,l.isString)(m)&&(m=o.findById(m)),t.setSource(m)}if(e.target){var y=e.target;(0,l.isString)(y)&&(y=o.findById(y)),t.setTarget(y)}t.update(e)}else if(a===Fe){t.update(e,h);var b=t.getEdges();"move"===h?(0,l.each)(b,(function(t){i.edgeToBeUpdateMap[t.getID()]={edge:t,updateType:h},i.throttleRefresh()})):(null===h||void 0===h?void 0:h.includes("bbox"))&&(0,l.each)(b,(function(t){t.refresh(h)}))}else if(a===Ze){if(t.update(e,h),!isNaN(e.x)||!isNaN(e.y)){var x=e.x-c||0,_=e.y-f||0;this.updateComboSucceeds(u.id,x,_)}var w=t.getEdges(),S=(null===h||void 0===h?void 0:h.includes("bbox"))||"move"===h;if(S&&a===Ze){var E=t.get("shapeFactory"),T=u.type||"circle",k=void 0===u.animate||void 0===e.animate?null===(r=null===(n=E[T])||void 0===n?void 0:n.options)||void 0===r?void 0:r.animate:u.animate||e.animate;k?setTimeout((function(){if(t&&!t.destroyed){var e=t.getKeyShape();e&&!e.destroyed&&(0,l.each)(w,(function(t){t&&!t.destroyed&&t.refresh()}))}}),201):(0,l.each)(w,(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((0,l.isString)(t)&&(t=a.findById(t)),t&&!t.destroyed){var s=t.getModel(),u=jt(e,a,t),c=u.x,f=u.y;t.set("bbox",u);var h=c,d=f;n?(h=isNaN(s.x)?c:s.x,d=isNaN(s.y)?f:s.y):(h=isNaN(c)?s.x:c,d=isNaN(f)?s.y:f),t.update({x:h,y:d});var p=t.get("shapeFactory"),g=s.type||"circle",v=void 0===s.animate?null===(i=null===(r=p[g])||void 0===r?void 0:r.options)||void 0===i?void 0:i.animate:s.animate;v?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;(0,l.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){It(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;(0,l.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((0,l.isString)(t)&&(t=n.findById(t)),t&&!t.destroyed){var r=(0,l.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),i===Be){var s=n.get("v".concat(i,"s")),u=s.indexOf(t);u>-1&&s.splice(u,1)}var c=t.get("id"),f=n.get("itemMap");delete f[c];var h=n.get("comboTrees"),d=t.get("id");if(i===Fe){var p=t.getModel().comboId;if(h&&p){var g=h,v=!1;h.forEach((function(t){v||It(t,(function(t){if(t.id===d&&g){var e=g.indexOf(t);return g.splice(e,1),v=!0,!1}return g=t.children,!0}))}))}for(var m=t.getEdges(),y=m.length-1;y>=0;y--)n.removeItem(m[y],!1);p&&n.updateCombo(p)}else if(i===Ze){var b,x=t.getModel().parentId,_=!1;(h||[]).forEach((function(t){_||It(t,(function(t){return t.id!==d||(b=t,_=!0,!1)}))})),b.removed=!0,b&&b.children&&b.children.forEach((function(t){e.removeItem(t.id)}));for(m=t.getEdges(),y=m.length;y>=0;y--)n.removeItem(m[y],!1);x&&n.updateCombo(x)}t.destroy(),n.emit("afterremoveitem",{item:r,type:i})}},t.prototype.setItemState=function(t,e,n){var r=this.graph,i=e;(0,l.isString)(n)&&(i="".concat(e,":").concat(n)),t.hasState(i)===n&&n||(0,l.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;(0,l.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;(0,l.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;(0,l.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){Ot(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((0,l.isString)(t)&&(t=r.findById(t)),t){if(r.emit("beforeitemvisibilitychange",{item:t,visible:e}),t.changeVisibility(e),t.getType&&t.getType()===Fe){var i=t.getEdges();(0,l.each)(i,(function(t){(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e)}))}else if(t.getType&&t.getType()===Ze){var o=r.get("comboTrees"),a=t.get("id"),s=[],u=!1;(o||[]).forEach((function(t){u||t.children&&0!==t.children.length&&It(t,(function(t){return t.id!==a||(s=t.children,u=!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();(0,l.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}(),We=Ge,Ve=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;(0,l.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"),i=(0,l.isString)(e)?[e]:e;i.forEach((function(e){var i=e;r[i]||(r[i]=[]),(0,l.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}(),Ye=Ve,Xe=n(33903),qe=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},Ke=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=(0,Xe.e9)(e);return s.unshift(["M",t[0].x,t[0].y]),s},Je=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];x.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},Qe=function(t,e){var n=t.length;if(!n)return"";for(var r="",i="",o=0;o<n;o++){var a=t[o];i=0===o?"M{x} {y}":"L{x} {y}",r+=qe(i,a)}return e&&(r+="Z"),r},tn=function(t){var e=[];return t.forEach((function(t){var n=t[0];if("A"!==n)for(var r=1;r<t.length;r+=2)e.push([t[r],t[r+1]]);else{var i=t.length;e.push([t[i-2],t[i-1]])}})),e},en=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,u=t[a-1].y,l=t[a].x,c=t[a].y,f=t[a+1].x,h=t[a+1].y,d=a!==t.length-2?t[a+2].x:f,p=a!==t.length-2?t[a+2].y:h,g=l+(f-s)/6,v=c+(h-u)/6,m=f-(d-l)/6,y=h-(p-c)/6;o.push(["C",g,v,m,y,f,h])}return o.unshift(["M",r.x,r.y]),o},nn=function(t,e){return x.scale([0,0],x.normalize([0,0],t),e)},rn=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]},on=function(t,e){return[e[0]-t[0],e[1]-t[1]]};function an(t,e){var n=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)},r=function(t){var n=x.scale([0,0],rn(t[0],t[1]),e),r=x.scale([0,0],n,-1),i=x.add([0,0],t[0],n),o=x.add([0,0],t[1],n),a=x.add([0,0],t[1],r),s=x.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(","))};if(!t||t.length<1)return"";if(1===t.length)return n(t);if(2===t.length)return r(t);for(var i=new Array(t.length),o=0;o<i.length;++o){var a=0===o?t[t.length-1]:t[o-1],s=t[o],u=x.scale([0,0],rn(a,s),e);i[o]=[x.add([0,0],a,u),x.add([0,0],s,u)]}var l="A ".concat([e,e,"0,0,0,"].join(","));return i=i.map((function(t,e){var n="";return 0===e&&(n="M ".concat(i[i.length-1][1]," ")),n+="".concat(l+t[0]," L ").concat(t[1]),n})),i.join(" ")}function sn(t,e){var n=t.length,r=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,e,"0,0,0",r].join(",")," A ").concat([e,e,"0,0,0",n].join(","))},i=function(t){var n=on(t[0],t[1]),r=nn(n,e),i=x.add([0,0],t[0],x.scale([0,0],r,-1)),o=x.add([0,0],t[1],r),a=1.2*e,s=nn(x.normalize([0,0],n),a),u=x.scale([0,0],s,-1),l=x.add([0,0],i,u),c=x.add([0,0],o,u),f=x.add([0,0],i,s);return"M ".concat(i," C ").concat([l,c,o].join(",")," S ").concat([f,i].join(",")," Z")};if(!t||n<1)return"";if(1===n)return r(t);if(2===n)return i(t);for(var o=t.map((function(e,r){var i=t[(r+1)%n];return{p:e,v:x.normalize([0,0],on(e,i))}})),a=0;a<o.length;++a){var s=a>0?a-1:n-1,u=x.normalize([0,0],x.add([0,0],o[s].v,x.scale([0,0],o[a].v,-1)));o[a].p=x.add([0,0],o[a].p,x.scale([0,0],u,e))}return o.map((function(t){var e=t.p;return{x:e[0],y:e[1]}}))}var un=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},ln=function(t,e,n){return(t.y-n.y)*(e.x-n.x)-(t.x-n.x)*(e.y-n.y)},cn=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++){while(s.length>=2&&ln(s[s.length-2],s[s.length-1],e[r])<=0)s.pop();s.push(e[r])}var u=[];for(r=e.length-1;r>=0;r--){while(u.length>=2&&ln(u[u.length-2],u[u.length-1],e[r])<=0)u.pop();u.push(e[r])}u.pop(),s.pop();var l=s.concat(u);return l},fn={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 hn(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,u=r,l=0;l<e.width*e.height;l++){if(i=s,a=u,t.findIndex((function(t){return t.x===s&&t.y===u}))>-1){if(t[0].x===s&&t[0].y===u)return!0}else t.push({x:s,y:u});var c=o(s,u);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:u--;break;case 9:1===i&&(0===a?u-=1:u+=1);break;case 10:case 8:case 11:u++;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 dn=function(t,e,n){var r=Math.ceil(t/n),i=Math.ceil(e/n),o=new Float32Array(Math.max(0,r*i)).fill(0);return{cells:o,width:r,height:i}},pn=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=K(o,a),u=new G(o.x,o.y,a.x,a.y),l=n.reduce((function(t,e){return X(e,u)>0?t+1:t}),0);s*Math.pow(l+1,2)<i&&(r=e,i=s*Math.pow(l+1,2))})),r},gn=function(t,e){var n=Number.POSITIVE_INFINITY,r=null;return t.forEach((function(t){var i=X(t,e);i>=0&&i<n&&(r=t,n=i)})),r},vn=function(t,e,n,r){var i=[],o=[];o.push(t);var a=!0,s=0,u=function(t,e){var n=!1;return e.forEach((function(e){n||(Q(t,{x:e.x1,y:e.y1})||Q(t,{x:e.x2,y:e.y2}))&&(n=!0)})),n},l=function(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n],o=i.getBBox(),a=[[o.x,o.y],[o.x+o.width,o.y],[o.x,o.y+o.height],[o.x+o.width,o.y+o.height]];if(Z(a,t.x,t.y))return!0}return!1};while(a&&s<n){a=!1;var c=function(){var t=o.pop(),n=gn(e,t);if(n){var c=Y(n,t),f=c[0],h=c[1];if(2===h){var d=function(s){var c=r,h=_n(n,c,f,s),d=u(h,o)||u(h,i),p=l(h,e);while(!d&&p&&c>=1)c/=1.5,h=_n(n,c,f,s),d=u(h,o)||u(h,i),p=l(h,e);!h||d||s&&p||(o.push(new G(t.x1,t.y1,h.x,h.y)),o.push(new G(h.x,h.y,t.x2,t.y2)),a=!0)};d(!0),a||d(!1)}}a||i.push(t),s+=1};while(!a&&o.length)c()}while(o.length)i.push(o.pop());return i};function mn(t,e,n,r,i){var o=pn(t,n,e);if(null===o)return[];var a=function(t){var n=[];while(t.length>0){var r=t.pop();if(0===t.length){n.push(r);break}var i=t.pop(),o=new G(r.x1,r.y1,i.x2,i.y2),a=gn(e,o);a?(n.push(r),t.push(i)):t.push(o)}return n},s=new G(t.getModel().x,t.getModel().y,o.getModel().x,o.getModel().y),u=vn(s,e,r,i),l=a(u);return l}var yn=function(t,e,n){var r=Object.assign(fn,n),i=q(t.map((function(t){return{x:t.getModel().x,y:t.getModel().y}})));t=t.sort((function(t,e){return K({x:t.getModel().x,y:t.getModel().y},i)-K({x:e.getModel().x,y:e.getModel().y},i)}));var o=[],a=[];t.forEach((function(t){var n=mn(t,e,o,r.maxRoutingIterations,r.morphBuffer);n.forEach((function(t){a.push(t)})),o.push(t)}));for(var s=bn(t,a,r.nodeR0),u=dn(s.width,s.height,r.pixelGroupSize),l=[],c=[],f=0;f<r.maxMarchingIterations;f++)if(xn(t,e,a,s,u,r),l=[],c=[],new hn(l,u,r.threshold).march()){var h=l.map((function(t){return{x:Math.round(t.x*r.pixelGroupSize+s.minX),y:Math.round(t.y*r.pixelGroupSize+s.minY)}}));if(h){var d=h.length;if(r.skip>1){d=Math.floor(h.length/r.skip);while(d<3&&r.skip>1)r.skip-=1,d=Math.floor(h.length/r.skip)}for(var p=0,g=0;g<d;g+=1,p+=r.skip)c.push({x:h[p].x,y:h[p].y})}var v=function(){for(var e=0,n=t;e<n.length;e++){var r=n[e],i=c.map((function(t){return[t.x,t.y]}));if(!Z(i,r.getBBox().centerX,r.getBBox().centerY))return!1}return!0};if(c&&v())return c;if(r.threshold*=.9,f<=.5*r.maxMarchingIterations)r.memberInfluenceFactor*=1.2,r.edgeInfluenceFactor*=1.2;else{if(!(0!==r.nonMemberInfluenceFactor&&e.length>0))break;r.nonMemberInfluenceFactor*=.8}}return c};function bn(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}function xn(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 u=(o.nodeR0-o.nodeR1)*(o.nodeR0-o.nodeR1),l=(o.edgeR0-o.edgeR1)*(o.edgeR0-o.edgeR1),c=function(t,e){var n=Math.min(a(t.minX,e+r.minX),i.width),o=Math.min(a(t.minY,e+r.minY),i.height),s=Math.min(a(t.maxX,-e+r.minX),i.width),u=Math.min(a(t.maxY,-e+r.minY),i.height);return[n,o,s,u]},f=function(t,e){for(var n=t.getBBox(),a=c(n,o.nodeR1),u=a[0],l=a[1],f=a[2],h=a[3],d=l;d<h;d+=1)for(var p=u;p<f;p+=1)if(!(e<0&&i[p+d*i.width]<=0)){var g=s(p,r.minX),v=s(d,r.minY),m=tt({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+d*i.width]+=e*y*y}}},h=function(t,e){for(var n=t.getBBox(),a=c(n,o.edgeR1),u=a[0],l=a[1],f=a[2],h=a[3],d=l;d<h;d+=1)for(var p=u;p<f;p+=1)if(!(e<0&&i.cells[p+d*i.width]<=0)){var g=s(p,r.minX),v=s(d,r.minY),m=J({x:g,y:v},t);if(m<Math.pow(o.edgeR1,2)){var y=Math.sqrt(m)-o.edgeR1;i.cells[p+d*i.width]+=e*y*y}}};o.nodeInfluenceFactor&&t.forEach((function(t){f(t,o.nodeInfluenceFactor/u)})),o.edgeInfluenceFactor&&n.forEach((function(t){h(t,o.edgeInfluenceFactor/l)})),o.negativeNodeInfluenceFactor&&e.forEach((function(t){f(t,o.negativeNodeInfluenceFactor/u)}))}function _n(t,e,n,r){var i=t.getBBox(),o=n[0],a=n[1],s=n[2],u=n[3],l={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 f(t,e){return i.width*(.5*(t.y-i.minY+(e.y-i.minY)))}if(a){if(o)return r?l.topLeft:l.bottomRight;if(s)return r?l.bottomLeft:l.topRight;var h=f(a,u);return h<.5*c?a.y>u.y?r?l.topLeft:l.bottomRight:r?l.topRight:l.bottomLeft:a.y<u.y?r?l.bottomLeft:l.topRight:r?l.bottomRight:l.topLeft}if(u){if(o)return r?l.topRight:l.bottomLeft;if(s)return r?l.bottomRight:l.topLeft}var d=f(o,s);return d<.5*c?o.x>s.x?r?l.topLeft:l.bottomRight:r?l.bottomLeft:l.topRight:o.x<s.x?r?l.topRight:l.bottomLeft:r?l.bottomRight:l.topLeft}var wn=function(){function t(t,e){this.cfg=(0,l.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(0,l.isString)(e)?t.findById(e):e})),this.nonMembers=this.cfg.nonMembers.map((function(e){return(0,l.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":n=cn(t),i=an(n.map((function(t){return[t.x,t.y]})),this.padding),r=(0,Xe.tr)(i);break;case"smooth-convex":n=cn(t),2===n.length?(i=an(n.map((function(t){return[t.x,t.y]})),this.padding),r=(0,Xe.tr)(i)):n.length>2&&(i=sn(n.map((function(t){return[t.x,t.y]})),this.padding),r=en(i));break;case"bubble":n=yn(t,e,this.cfg.bubbleCfg),r=n.length>=2&&en(n);break;default:}return r},t.prototype.render=function(){this.group.addShape("path",{attrs:(0,p.__assign)({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){(0,l.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){(0,l.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){(0,l.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){(0,l.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(0,l.isString)(t)?n.graph.findById(t):t}))),e&&(this.nonMembers=e.map((function(t){return(0,l.isString)(t)?n.graph.findById(t):t}))),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.updateStyle=function(t){var e=this.group.findById(this.id);e.attr((0,p.__assign)({},t))},t.prototype.updateCfg=function(t){var e=this;this.cfg=(0,l.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(0,l.isString)(t)?e.graph.findById(t):t}))),t.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map((function(t){return(0,l.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;e=(0,l.isString)(t)?this.graph.findById(t):t;var i=e.getKeyShape();if("path"===e.get("type"))n=tn(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]})),$(n,tn(this.path))},t.prototype.destroy=function(){this.group.remove(),this.cfg=null},t}(),Sn=wn,En=v.vs,Tn="node",kn=function(t){function e(e){var n=t.call(this)||this;return n.sortCombos=(0,l.debounce)((function(){var t=n.get("comboSorted");if(n&&!n.destroyed&&!t){n.set("comboSorted",!0);var e=[],r={},i=n.get("comboTrees");(i||[]).forEach((function(t){It(t,(function(t){return e[t.depth]?e[t.depth].push(t.id):e[t.depth]=[t.id],r[t.id]=t.depth,!0}))}));var o=n.getEdges().concat(n.get("vedges"));(o||[]).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=(0,l.deepMix)(n.getDefaultCfg(),e),n.init(),n.animating=!1,n.destroyed=!1,n.cfg.enabledStack&&(n.undoStack=new m.Stack(n.cfg.maxStep),n.redoStack=new m.Stack(n.cfg.maxStep)),n}return(0,p.__extends)(e,t),e.prototype.init=function(){this.initCanvas();var t=new ne(this),e=new $t(this),n=new We(this),r=new Ye(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"),n=(e||{}).id,r=void 0===n?"g6":n,i=t.addGroup({id:"".concat(r,"-root"),className:yt.rootContainerClassName});if(this.get("groupByTypes")){var o=i.addGroup({id:"".concat(r,"-edge"),className:yt.edgeContainerClassName}),a=i.addGroup({id:"".concat(r,"-node"),className:yt.nodeContainerClassName}),s=i.addGroup({id:"".concat(r,"-combo"),className:yt.comboContainerClassName});s.toBack(),this.set({nodeGroup:a,edgeGroup:o,comboGroup:s})}var u=i.addGroup({id:"".concat(r,"-delegate"),className:yt.delegateContainerClassName});this.set({delegateGroup:u}),this.set("group",i)}},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(0,l.isPlainObject)(t)?this.cfg=(0,p.__assign)((0,p.__assign)({},this.cfg),t):this.cfg[t]=e,"enabledStack"!==t||!e||this.undoStack||this.redoStack||(this.undoStack=new m.Stack(this.cfg.maxStep),this.redoStack=new m.Stack(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){(0,l.isString)(t)&&(t=this.findById(t));var n=this.get("itemController");e||(e=t.get("states")),n.clearItemStates(t,e);var r=this.get("stateController");r.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(0,l.each)(r,(function(t,r){if(e(t,r))return n=t,n})),n},e.prototype.findAll=function(t,e){var n=[];return(0,l.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=(0,l.clone)(o.getMatrix());if(a||(a=[1,0,0,0,1,0,0,0,1]),n){var s=zt({animateCfg:r,callback:function(){return i.emit("viewportchange",{action:"translate",matrix:o.getMatrix()})}});R(o,{x:o.getCanvasBBox().x+t,y:o.getCanvasBBox().y+e},n,s||{duration:500,easing:"easeCubic"})}else a=En(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");R(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){var n=this.get("viewController");n.fitCenter(t,e),this.autoPaint()},e.prototype.addBehaviors=function(t,e){var n=this.get("modeController");return n.manipulateBehaviors(t,e,!0),this},e.prototype.removeBehaviors=function(t,e){var n=this.get("modeController");return n.manipulateBehaviors(t,e,!1),this},e.prototype.updateBehavior=function(t,e,n){var r=this.get("modeController");return r.updateBehavior(t,e,n),this},e.prototype.zoom=function(t,e,n,r){var i=this,o=this.get("group"),a=(0,l.clone)(o.getMatrix())||[1,0,0,0,1,0,0,0,1],s=this.get("minZoom"),u=this.get("maxZoom"),c=this.getZoom()||1,f=c*t,h=t,d=!1;if(s&&f<s?(h=s/c,d=!0):u&&f>u&&(h=u/c,d=!0),a=En(a,e?[["t",-e.x,-e.y],["s",h,h],["t",e.x,e.y]]:[["s",h,h]]),n){var p=(0,l.clone)(o.getMatrix());p||(p=[1,0,0,0,1,0,0,0,1]);var g=p[0],v=g*h,m=zt({animateCfg:r,callback:function(){return i.emit("viewportchange",{action:"zoom",matrix:o.getMatrix()})}});o.animate((function(t){if(1===t)p=a;else{var n=nt(g,v,t)/p[0];p=En(p,e?[["t",-e.x,-e.y],["s",n,n],["t",e.x,e.y]]:[["s",n,n]])}return{matrix:p}}),m)}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){var i=this.get("viewController");i.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){var n=this.get("viewController");return n.getPointByClient(t,e)},e.prototype.getClientByPoint=function(t,e){var n=this.get("viewController");return n.getClientByPoint(t,e)},e.prototype.getPointByCanvas=function(t,e){var n=this.get("viewController");return n.getPointByCanvas(t,e)},e.prototype.getCanvasByPoint=function(t,e){var n=this.get("viewController");return n.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"),r=n.changeItemVisibility(t,!0);if(e&&this.get("enabledStack")){var i=r.getID(),o=r.getType(),a={},s={};switch(o){case"node":a.nodes=[{id:i,visible:!1}],s.nodes=[{id:i,visible:!0}];break;case"edge":a.nodes=[{id:i,visible:!1}],s.edges=[{id:i,visible:!0}];break;case"combo":a.nodes=[{id:i,visible:!1}],s.combos=[{id:i,visible:!0}];break;default:break}this.pushStack("visible",{before:a,after:s})}},e.prototype.hideItem=function(t,e){void 0===e&&(e=!0);var n=this.get("itemController"),r=n.changeItemVisibility(t,!1);if(e&&this.get("enabledStack")){var i=r.getID(),o=r.getType(),a={},s={};switch(o){case"node":a.nodes=[{id:i,visible:!0}],s.nodes=[{id:i,visible:!1}];break;case"edge":a.nodes=[{id:i,visible:!0}],s.edges=[{id:i,visible:!1}];break;case"combo":a.nodes=[{id:i,visible:!0}],s.combos=[{id:i,visible:!1}];break;default:break}this.pushStack("visible",{before:a,after:s})}},e.prototype.refreshItem=function(t){var e=this.get("itemController");e.refreshItem(t)},e.prototype.setAutoPaint=function(t){var e=this;e.set("autoPaint",t);var n=e.get("canvas");n.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((0,l.isString)(t)&&(n=this.findById(t)),!n&&(0,l.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=(0,p.__assign)((0,p.__assign)({},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((0,p.__assign)((0,p.__assign)({},a[s].getModel()),{itemType:"edge"}));break;case"edge":o.edges=[i];break;case"combo":o.combos=[i];break;default:break}this.pushStack("delete",{before:o,after:{}})}if("node"===r){var u=n.getModel();u.comboId&&this.updateComboTree(n,void 0,!1)}var c=this.get("itemController");if(c.removeItem(n),"combo"===r){var f=Rt(this.get("comboTrees"));this.set("comboTrees",f)}}},e.prototype.innerAddItem=function(t,e,n){if(!Ut(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||Ot(i,(function(i){if(e.parentId===i.id){a=!0;var s=(0,p.__assign)({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 u=o[i.id];return a&&u&&u.getType&&"combo"===u.getType()&&n.updateCombo(u,i.children),!0}))})),!a){var s=(0,p.__assign)({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&&(0,l.isString)(e.comboId)&&i){var u=this.findById(e.comboId);u&&u.getType&&"combo"!==u.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 c=this.get("itemMap"),f=!1,h=!1;i.forEach((function(t){h||f||Ot(t,(function(t){if(t.id===e.id)return h=!0,!1;if(e.comboId===t.id&&!h){f=!0;var r=(0,l.clone)(e);r.itemType="node",t.children?t.children.push(r):t.children=[r],r.depth=t.depth+1}return f&&c[t.id].getType&&"combo"===c[t.id].getType()&&n.updateCombo(c[t.id],t.children),!0}))}))}else r=n.addItem(t,e);if("node"===t&&e.comboId||"combo"===t&&e.parentId){u=this.findById(e.comboId||e.parentId);u&&u.getType&&"combo"===u.getType()&&u.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 u=(0,p.__assign)((0,p.__assign)({},a.getModel()),{itemType:t}),l={};switch(t){case"node":l.nodes=[u];break;case"edge":l.edges=[u];break;case"combo":l.combos=[u];break;default:break}this.pushStack("add",{before:{},after:l})}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++){var s=t[a];"edge"!==s.type&&"vedge"!==s.type?o.push(this.innerAddItem(s.type,s.model,i)):o.push(void 0)}for(a=0;a<t.length;a++){s=t[a];"edge"!==s.type&&"vedge"!==s.type||(o[a]=this.innerAddItem(s.type,s.model,i))}if(n){var u=this.get("combos");u&&u.length>0&&this.sortCombos()}if(this.autoPaint(),e&&this.get("enabledStack")){var l={nodes:[],edges:[],combos:[]};for(a=0;a<t.length;a++){var c=t[a].type,f=o[a];if(f&&!0!==f){var h=(0,p.__assign)((0,p.__assign)({},f.getModel()),{itemType:c});switch(c){case"node":l.nodes.push(h);break;case"edge":l.edges.push(h);break;case"combo":l.combos.push(h);break;default:break}}}this.pushStack("addItems",{before:{},after:l})}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=(0,l.isString)(t)?this.findById(t):t;var a,s=n&&this.get("enabledStack");s&&(a=(0,l.clone)(i.getModel()));var u="";i.getType&&(u=i.getType());var c=(0,p.__spreadArray)([],i.getStates(),!0);if("combo"===u&&(0,l.each)(c,(function(t){return r.setItemState(i,t,!1)})),o.updateItem(i,e),"combo"===u&&(0,l.each)(c,(function(t){return r.setItemState(i,t,!0)})),s){var f={nodes:[],edges:[],combos:[]},h={nodes:[],edges:[],combos:[]},d=(0,p.__assign)({id:a.id},e);switch(u){case"node":f.nodes.push(a),h.nodes.push(d);break;case"edge":f.edges.push(a),h.edges.push(d);break;case"combo":f.combos.push(a),h.combos.push(d);break;default:break}this.pushStack("update",{before:f,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){(0,l.isString)(t)&&(t=this.findById(t));var r=this.get("itemController");r.setItemState(t,e,n);var i=this.get("stateController");i.updateState(t,e,n)},e.prototype.priorityState=function(t,e){var n=this.get("itemController");n.priorityState(t,e)},e.prototype.data=function(t){Zt(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 u=Nt(s,r);this.set("comboTrees",u),t.addCombos(s)}t.addItems(o.map((function(t){return{type:"edge",model:t}})),!1,!1);var l=t.get("animate");(t.get("fitView")||t.get("fitCenter"))&&t.set("animate",!1);var c=t.get("layoutController");if(c){if(c.layout(f),this.destroyed)return}else f();function f(){(t.get("comboTrees")||[]).forEach((function(e){Ot(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",l),setTimeout((function(){var e;null===(e=t.getCombos())||void 0===e||e.forEach((function(t){t.set("animate",!0)}))}),0)}if(!this.get("groupByTypes"))if(s&&0!==s.length)this.sortCombos();else if(e.nodes&&e.edges&&e.nodes.length<e.edges.length){var h=this.getNodes();h.forEach((function(t){t.toFront()}))}else{var d=this.getEdges();d.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");(0,l.each)(n,(function(n){if(r=o[n.id],r){if(i.get("animate")&&t===Tn){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(!Zt(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 u=this.get("itemMap"),c={nodes:[],edges:[]},f=o.combos;if(f){var h=Nt(f,o.nodes);this.set("comboTrees",h)}else this.set("comboTrees",[]);this.diffItems("node",c,o.nodes),(0,l.each)(u,(function(t,e){u[e].getModel().depth=0,t.getType&&"edge"===t.getType()||(t.getType&&"combo"===t.getType()?(delete u[e],t.destroy()):c.nodes.indexOf(t)<0&&(delete u[e],i.remove(t,!1)))}));for(var d=this.getCombos(),p=d.length,g=p-1;g>=0;g--)d[g].destroyed&&d.splice(g,1);f&&(i.addCombos(f),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",c,o.edges),(0,l.each)(u,(function(t,e){(!t.getType||"node"!==t.getType()&&"combo"!==t.getType())&&c.edges.indexOf(t)<0&&(delete u[e],i.remove(t,!1))})),(this.get("comboTrees")||[]).forEach((function(t){Ot(t,(function(t){var e=r.findById(t.id);return"combo"===e.getType()&&t.collapsed&&r.collapseCombo(t.id,!1),!0}))})),this.set({nodes:c.nodes,edges:c.edges});var v=(this.get("layout")||{}).relayoutAtChangeData,m=void 0===v||v,y=this.get("layoutController");return m&&y&&(y.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")&&!y.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,n=e.get("comboTrees"),r=this.get("itemController");r.addCombos(n,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((0,l.isString)(t))a=t,o={id:t};else{if(a=t.id,!a)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"),u={nodes:[],combos:[]};s&&e.forEach((function(t){var e=r.findById(t),n=e.getType();if("node"===n||"combo"===n){var i=e.getModel();u["".concat(n,"s")].push({id:t,parentId:"node"===n?i.comboId:i.parentId})}}));var c=this.get("comboTrees"),f=new Set(e),h=new Map;c&&(c.forEach((function(t){Ot(t,(function(t,e,n){if(f.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}))})),c=c.filter((function(t){return!f.has(t.id)})),this.set("comboTrees",c));var d={nodes:[],combos:[]},p=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=p,this.addItem("combo",o,!1),this.set("comboSorted",!1),c&&(c.forEach((function(t){It(t,(function(t){return t.id!==a||(t.itemType="combo",t.children=p,!1)}))})),this.sortCombos()),s&&(d.combos.push(o),this.pushStack("createCombo",{before:u,after:d}));var g=this.findById(a);!g.getModel().parentId&&g.getChildren().combos.length&&this.updateComboTree(g,void 0,!1),setTimeout((function(){g.set("animate",!0)}),0)}},e.prototype.uncombo=function(t,e){var n,r,i=this;void 0===e&&(e=!0);var o=this,a=t;if((0,l.isString)(t)&&(a=this.findById(t)),!a||a.getType&&"combo"!==a.getType())console.warn("The item is not a combo!");else{var s=a.getModel(),u=a.getModel().parentId,c=o.get("comboTrees");c||(c=[]);var f,h=this.get("itemMap"),d=a.get("id"),p=[],g=this.get("combos"),v=this.findById(u),m=e&&this.get("enabledStack"),y={};if(m&&(y=(0,l.clone)(s),y.children=[]),c.forEach((function(t){f||Ot(t,(function(t){var e;if(t.id===d){f=t;var n=a.getEdges().map((function(t){return t.getID()}));n.forEach((function(t){i.removeItem(t,!1)}));var r=g.indexOf(a);g.splice(r,1),delete h[d];var o=(0,l.clone)(a.getModel());a.destroy(),i.emit("afterremoveitem",{item:o,type:"combo"})}if(u&&f&&t.id===u){v.removeCombo(a),p=t.children;r=p.indexOf(f);return-1!==r&&p.splice(r,1),null===(e=f.children)||void 0===e||e.forEach((function(t){var e=i.findById(t.id),n=e.getModel();e.getType&&"combo"===e.getType()?(t.parentId=u,delete t.comboId,n.parentId=u,delete n.comboId):e.getType&&"node"===e.getType()&&(t.comboId=u,n.comboId=u),v.addChild(e),p.push(t)})),i.updateCombo(v),!1}return!0}))})),!u&&f){var b=c.indexOf(f);c.splice(b,1),null===(n=f.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&&c.push(t)}))}if(m){var x={nodes:[],combos:[]},_={nodes:[],combos:[]};null===(r=f.children)||void 0===r||r.forEach((function(t){var e=i.findById(t.id),n=e.getType();"node"!==n&&"combo"!==n||(x["".concat(n,"s")].push({id:t.id,parentId:d}),_["".concat(n,"s")].push({id:t.id,parentId:u}))})),x.combos.push(y),this.pushStack("uncombo",{before:x,after:_})}}},e.prototype.updateCombos=function(t){var e=this;void 0===t&&(t=!1);var n=this,r=this.get("comboTrees"),i=n.get("itemController"),o=n.get("itemMap");(r||[]).forEach((function(n){Ot(n,(function(n){var r;if(!n)return!0;var a=o[n.id];if("combo"===(null===(r=null===a||void 0===a?void 0:a.getType)||void 0===r?void 0:r.call(a))){var s=(0,p.__spreadArray)([],a.getStates(),!0);(0,l.each)(s,(function(t){return e.setItemState(a,t,!1)})),i.updateCombo(a,n.children,t),(0,l.each)(s,(function(t){return e.setItemState(a,t,!0)}))}return!0}))})),n.sortCombos()},e.prototype.updateCombo=function(t){var e,n=this,r=this,i=t;if((0,l.isString)(t)&&(i=this.findById(t)),!i||i.getType&&"combo"!==i.getType())console.warn("The item to be updated is not a combo!");else{e=i.get("id");var o=this.get("comboTrees"),a=r.get("itemController"),s=r.get("itemMap");(o||[]).forEach((function(t){Ot(t,(function(t){if(!t)return!0;var r=s[t.id];if(e===t.id&&r&&r.getType&&"combo"===r.getType()){var i=(0,p.__spreadArray)([],r.getStates(),!0);(0,l.each)(i,(function(t){r.getStateStyle(t)&&n.setItemState(r,t,!1)})),a.updateCombo(r,t.children),(0,l.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,i=this;this.set("comboSorted",!1),r=(0,l.isString)(t)?i.findById(t):t;var o=r.getModel(),a=o.comboId||o.parentId,s="";if(r.getType&&(s=r.getType()),e&&"combo"===s){var u,c=this.get("comboTrees"),f=!0;if((c||[]).forEach((function(t){u||It(t,(function(t){if(!u)return t.id===r.getID()&&(u=t),!0}))})),It(u,(function(t){return t.id!==e||(f=!1,!1)})),!f)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 h={},d={};"combo"===s?(h.combos=[{id:o.id,parentId:o.parentId}],d.combos=[{id:o.id,parentId:e}]):"node"===s&&(h.nodes=[{id:o.id,parentId:o.comboId}],d.nodes=[{id:o.id,parentId:e}]),this.pushStack("updateComboTree",{before:h,after:d})}if(o.parentId||o.comboId){var p=this.findById(o.parentId||o.comboId);p&&p.removeChild(r)}if("combo"===s?o.parentId=e:"node"===s&&(o.comboId=e),e){var g=this.findById(e);g&&g.addChild(r)}if(a){g=this.findById(a);g&&g.removeChild(r)}var v=Rt(this.get("comboTrees"),o.id,e);this.set("comboTrees",v),this.updateCombos()},e.prototype.save=function(){var t=[],e=[],n=[];return(0,l.each)(this.get("nodes"),(function(e){t.push(e.getModel())})),(0,l.each)(this.get("edges"),(function(t){e.push(t.getModel())})),(0,l.each)(this.get("combos"),(function(t){n.push(t.getModel())})),{nodes:t,edges:e,combos:n}},e.prototype.changeSize=function(t,e){var n=this.get("viewController");return n.changeSize(t,e),this},e.prototype.refresh=function(){var t=this;if(t.emit("beforegraphrefresh"),t.get("animate"))t.positionsAnimate();else{var e=t.get("nodes"),n=t.get("edges"),r=t.get("edges");(0,l.each)(e,(function(t){t.refresh()})),(0,l.each)(n,(function(t){t.refresh()})),(0,l.each)(r,(function(t){t.refresh()}))}t.emit("aftergraphrefresh"),t.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((0,l.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){(0,l.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 u=r(i,n,t,o||{x:0,y:0});i.set("model",Object.assign(a,u))}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(){(0,l.each)(i,(function(t){t.set("originAttrs",null)})),n.callback&&n.callback(),e.emit("afteranimate"),e.animating=!1}})}),0)},e.prototype.refreshPositions=function(t){var e=this;e.emit("beforegraphrefreshposition");var n,r=e.get("nodes"),i=e.get("edges"),o=e.get("vedges"),a=e.get("combos"),s={},u=function(t){(0,l.each)(t,(function(t){n=t.getModel();var e=t.get("originAttrs");if(!e||n.x!==e.x||n.y!==e.y){var r=t.updatePosition({x:n.x,y:n.y});s[n.id]=r,n.comboId&&(s[n.comboId]=s[n.comboId]||r),n.parentId&&(s[n.parentId]=s[n.parentId]||r)}}))};u(a),u(r),a&&0!==a.length&&(t?(u(a),e.updateCombos()):e.updateCombos()),(0,l.each)(i,(function(t){var e=t.getSource().getModel(),n=t.getTarget();if(!(0,l.isPlainObject)(n)){var r=n.getModel();(s[e.id]||s[r.id]||t.getModel().isComboEdge)&&t.refresh()}})),(0,l.each)(o,(function(t){t.refresh()})),e.emit("aftergraphrefreshposition"),e.autoPaint()},e.prototype.stopAnimate=function(){var t=this.get("canvas"),e=t.cfg.timeline;e&&e.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(){var t=this.get("modeController");return t.getMode()},e.prototype.setMode=function(t){var e=this.get("modeController");return e.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((0,l.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,u=r.minY,l=r.maxY,c={x:(o+s)/2,y:(u+l)/2};"begin"===e&&(c.x=o,c.y=u),i.translate(a.x-c.x,a.y-c.y)}))}var u=(0,p.__assign)({},this.get("layout")),c={};Object.assign(c,u,t),t.pipes&&!t.type?delete c.type:!t.pipes&&c.type&&delete c.pipes,this.set("layout",c),o&&(o.isLayoutTypeSame(c)&&c.gpuEnabled===u.gpuEnabled?o.updateLayoutCfg(c):o.changeLayout(c),r&&this.get("enabledStack")&&this.pushStack("layout",{before:u,after:c}))},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((0,l.isString)(t)&&(t=this.findById(t)),t){this.emit("beforecollapseexpandcombo",{action:"collapse",item:t});var r=t.getModel(),i=this.get("itemController");i.collapseCombo(t,e),r.collapsed=!0;var o=this.getEdges().concat(this.get("vedges")),a=[],s=this.get("comboTrees"),u=!1;(s||[]).forEach((function(t){u||It(t,(function(t){if(u&&t.depth<=r.depth)return!1;if(r.id===t.id&&(u=!0),u){var e=n.findById(t.id);e&&e.getType&&"combo"===e.getType()&&(a=a.concat(e.getNodes()),a=a.concat(e.getCombos()))}return!0}))}));var c={};o.forEach((function(t){var e=t.getModel(),i=e.isVEdge,o=e.size,s=void 0===o?1:o;if(!t.isVisible()||i){var u,l=t.getSource(),f=t.getTarget(),h=null;if(l.getModel().id===r.id||a.includes(l)&&!a.includes(f)?(h=f,u=!1):(f.getModel().id===r.id||!a.includes(l)&&a.includes(f))&&(h=l,u=!0),h){if(i)return void n.removeItem(t,!1);var d=h.getModel();while(!h.isVisible()){var p=d.parentId,g=d.comboId,v=p||g;if(h=n.findById(v),!h||!v)return;d=h.getModel()}var m=d.id,y=u?{source:m,target:r.id,size:s,isVEdge:!0}:{source:r.id,target:m,size:s,isVEdge:!0},b="".concat(y.source,"-").concat(y.target);if(c[b])return void(c[b].size+=s);c[b]=y}}})),this.addItems(Object.values(c).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),(0,l.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(),i=this.get("itemController");i.expandCombo(t,e),r.collapsed=!1;var o=this.getEdges().concat(this.get("vedges")),a=[],s=this.get("comboTrees"),u=!1;(s||[]).forEach((function(t){u||It(t,(function(t){if(u&&t.depth<=r.depth)return!1;if(r.id===t.id&&(u=!0),u){var e=n.findById(t.id);e&&e.getType&&"combo"===e.getType()&&(a=a.concat(e.getNodes()),a=a.concat(e.getCombos()))}return!0}))}));var c={};o.forEach((function(t){if(!t.isVisible()||t.getModel().isVEdge){var e,i=t.getSource(),o=t.getTarget(),s=i.get("id"),u=o.get("id"),l=null;if(s===r.id||a.includes(i)&&!a.includes(o)?(l=o,e=!1):u===r.id||!a.includes(i)&&a.includes(o)?(l=i,e=!0):a.includes(i)&&a.includes(o)&&i.isVisible()&&o.isVisible()&&t.show(),l){var f=t.getModel(),h=f.isVEdge,d=f.size,p=void 0===d?1:d;if(h)return void n.removeItem(t,!1);var g=l.getModel();while(!l.isVisible()){var v=g.parentId,m=g.comboId,y=v||m;if(l=n.findById(y),!l||!y)return;g=l.getModel()}var b=g.id,x=e?o:i,_=x.getModel();while(!x.isVisible()){var w=_.parentId,S=_.comboId,E=w||S;if(x=n.findById(E),!x||!E)return;if(_.comboId===r.id||_.parentId===r.id)break;_=x.getModel()}var T=_.id;if(b){var k=e?{source:b,target:T,isVEdge:!0,size:p}:{source:T,target:b,isVEdge:!0,size:p},C="".concat(k.source,"-").concat(k.target);if(c[C])return void(c[C].size+=p);c[C]=k}}}})),this.addItems(Object.values(c).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),(0,l.isString)(t)&&(t=this.findById(t)),t&&(!t.getType||"combo"===t.getType())){var n=t.getModel(),r=this.findById(n.parentId);while(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)}var o=n.collapsed;o?this.expandCombo(t,e):this.collapseCombo(t,e),this.updateCombo(t)}},e.prototype.getNeighbors=function(t,e){var n=t;return(0,l.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;(0,l.isString)(t)&&(r=this.findById(t));var i=this.get("degrees");i&&!n||(i=(0,m.getDegree)(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;break}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?(0,l.clone)(e):{before:{},after:(0,l.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=(0,m.getAdjMatrix)(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=(0,m.getAdjMatrix)(this.save(),e),this.set("adjMatrix",n)),r&&t||(r=(0,m.floydWarshall)(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"}),e.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 Sn(this,(0,p.__assign)((0,p.__assign)({},t),{group:r})),o=i.id;return n[o]=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=(0,l.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){var n=t[e];n.destroy()})),this.set("hullMap",{}))},e}(g.Z),Cn=kn;function Mn(t){return Mn="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},Mn(t)}var An=v.vs,In="-shape",On="-label",Dn=["startArrow","endArrow"],Pn={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},Ln={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},Nn={edge:Ln,node:Pn,combo:Pn},Rn="-label-bg",jn={options:{labelCfg:{style:{fontFamily:yt.windowFontFamily}},descriptionCfg:{style:{fontFamily:yt.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:(0,l.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+In),e["shapeMap"][this.itemType+In]=n,t.label){var r=this.drawLabel(t,e);r.set("className",this.itemType+On),e["shapeMap"][this.itemType+On]=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=n||{},i=this.getLabelStyle(t,r,e),o=i.rotate;delete i.rotate;var a=e.addShape("text",{attrs:i,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(e["shapeMap"]["text-shape"]=a,!isNaN(o)&&""!==o){var s=a.getBBox(),u=[1,0,0,0,1,0,0,0,1];if(i.rotateCenter)switch(i.rotateCenter){case"center":u=An(u,[["t",-s.width/2,-s.height/2],["r",o],["t",s.width/2,s.height/2]]);break;case"lefttop":u=An(u,[["t",-i.x,-i.y],["r",o],["t",i.x,i.y]]);break;case"leftcenter":u=An(u,[["t",-i.x,-i.y-s.height/2],["r",o],["t",i.x,i.y+s.height/2]]);break;default:u=An(u,[["t",-s.width/2,-s.height/2],["r",o],["t",s.width/2,s.height/2]]);break}else u=An(u,[["t",-i.x,-i.y-s.height/2],["r",o],["t",i.x,i.y+s.height/2]]);a.setMatrix(u)}if(i.background){var l=this.drawLabelBg(t,e,a),c=this.itemType+Rn;l.set("classname",c),e["shapeMap"][c]=l,a.toFront()}return a},drawLabelBg:function(t,e,n){var r=this.options.labelCfg,i=(0,l.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=yt[i]?yt[i].style:null;return(0,p.__assign)((0,p.__assign)((0,p.__assign)({},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=(0,l.mix)({},o.attr(),t.style),s=function(t){var e,n=a[t];if((0,l.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={},e[t]=n,e))};for(var u in a)s(u)},updateLabel:function(t,e,n){var r,i,o=e.getContainer(),a=(this.mergeStyle||this.getOptions({},n)||{}).labelCfg,s=void 0===a?{}:a,u=this.itemType+On,c=o["shapeMap"][u]||o.find((function(t){return t.get("className")===u})),f=this.itemType+Rn,h=o["shapeMap"][f]||o.find((function(t){return t.get("className")===f}));if(c&&void 0===t.label&&(o.removeChild(c),delete o["shapeMap"][u],h&&(o.removeChild(h),delete o["shapeMap"][f])),t.label||""===t.label)if(c){(!n||"bbox|label"===n||"edge"===this.itemType&&"style"!==n)&&(s=(0,l.deepMix)(s,t.labelCfg));var d=this.getLabelStyleByPosition(t,s,o),g=null===(r=t.labelCfg)||void 0===r?void 0:r.style,v=(0,p.__assign)((0,p.__assign)({},d),g),m=v.rotate;if(delete v.rotate,isNaN(m)||""===m)1!==(null===(i=c.getMatrix())||void 0===i?void 0:i[4])&&c.resetMatrix(),c.attr(v);else{var y=[1,0,0,0,1,0,0,0,1];y=An(y,[["t",-v.x,-v.y],["r",m],["t",v.x,v.y]]),v.matrix=y,c.attr(v)}if(h)if(v.background){var b=this.getLabelBgStyleByPosition(c,s);h.attr(b)}else o.removeChild(h);else v.background&&(h=this.drawLabelBg(t,o,c),h.set("classname",f),o["shapeMap"][f]=h,c.toFront())}else{var x=this.drawLabel(t,o);x.set("className",u),o["shapeMap"][u]=x}},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(),u=(0,l.isBoolean)(e)?t:"".concat(t,":").concat(e),c=this.getStateStyle(u,n),f=n.getStateStyle(u);if(f||c){var h=(0,l.mix)({},f||c),d=n.getContainer(),p={x:1,y:1,cx:1,cy:1,matrix:1};if("combo"===s&&(p.r=1,p.width=1,p.height=1),e){var g=function(t){var e,n=h[t];if((0,l.isPlainObject)(n)&&!Dn.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={},e[t]=n,e))};for(var v in h)g(v)}else{var m=Bt(n.getCurrentStatesStyle()),y=n.getModel(),b=(0,l.mix)({},y.style,Bt(n.getOriginStyle())),x=a.get("name"),_=a.attr(),w={};Object.keys(_).forEach((function(t){if("img"!==t){var e=_[t];e&&"object"===Mn(e)?w[t]=(0,l.clone)(e):w[t]=e}}));var S={},E=function(t){var e=h[t];if((0,l.isPlainObject)(e)&&!Dn.includes(t)){var n=d["shapeMap"][t]||d.find((function(e){return e.get("name")===t}));if(n){var r=Bt(n.attr());(0,l.each)(e,(function(e,i){if(t===x&&w[i]&&!p[i]){delete w[i];var o=b[t][i]||Nn[s][i];a.attr(i,o)}else if(r[i]||0===r[i]){delete r[i];var u=b[t][i]||Nn[s][i];n.attr(i,u)}})),S[t]=r}}else if(w[t]&&!p[t]){delete w[t];var i=b[t]||(b[x]?b[x][t]:void 0)||Nn[s][t];a.attr(t,i)}};for(var T in h)E(T);for(var v in x?S[x]=w:(0,l.mix)(S,w),m)if(!p[v]){var k=m[v];(0,l.isPlainObject)(k)&&!Dn.includes(v)||(x?((0,l.mix)(b[x],(i={},i[v]=k,i)),delete b[v]):(0,l.mix)(b,(r={},r[v]=k,r)),delete m[v])}var C={};(0,l.deepMix)(C,b,S,m);var M=!1,A=function(t){var e,n,r=C[t];if((0,l.isPlainObject)(r)&&!Dn.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===x&&("combo"===s&&(delete r.r,delete r.width,delete r.height),M=!0),i.attr(r))}else if(!M){var o=r||Nn[s][t];"combo"===s?x||a.attr((e={},e[t]=o,e)):a.attr((n={},n[t]=o,n))}};for(var I in C)A(I)}}}},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,u=n.stateStyles?n.stateStyles[t]:o&&o[t];return"combo"===r?(0,l.clone)(u):(0,l.mix)({},s,u)},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){var e,n,r=(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);return r}},Fn={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:yt.nodeLabel.offset,getSize:function(t){var e,n=(null===(e=this.mergeStyle)||void 0===e?void 0:e.size)||t.size||this.getOptions({}).size||yt.defaultNode.size;return(0,l.isArray)(n)&&1===n.length&&(n=[n[0],n[0]]),(0,l.isArray)(n)||(n=[n,n]),n},getLabelStyleByPosition:function(t,e){var n=e.maxLength,r=t.label;n&&(r=Lt(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;(0,l.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"};break}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=Yt(r.padding),a=i.width+o[1]+o[3],s=i.height+o[0]+o[2];return(0,p.__assign)((0,p.__assign)({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 u=(0,l.mix)({},n,t.linkPoints),c=u.fill,f=u.stroke,h=u.lineWidth,d=u.size/2;d||(d=u.r);var g=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},v=g.left,m=g.right,y=g.top,b=g.bottom,x=this.getSize(t),_=x[0],w=x[1],S={r:d,fill:c,stroke:f,lineWidth:h};if(i)v||void 0===v?i.attr((0,p.__assign)((0,p.__assign)({},S),{x:-_/2,y:0})):(i.remove(),delete e["shapeMap"]["link-point-left"]);else if(v){var E="link-point-left";e["shapeMap"][E]=e.addShape("circle",{attrs:(0,p.__assign)((0,p.__assign)({},S),{x:-_/2,y:0}),className:E,name:E,isAnchorPoint:!0})}if(o)m||void 0===m||(o.remove(),delete e["shapeMap"]["link-point-right"]),o.attr((0,p.__assign)((0,p.__assign)({},S),{x:_/2,y:0}));else if(m){var T="link-point-right";e["shapeMap"][T]=e.addShape("circle",{attrs:(0,p.__assign)((0,p.__assign)({},S),{x:_/2,y:0}),className:T,name:T,isAnchorPoint:!0})}if(a)y||void 0===y||(a.remove(),delete e["shapeMap"]["link-point-top"]),a.attr((0,p.__assign)((0,p.__assign)({},S),{x:0,y:-w/2}));else if(y){var k="link-point-top";e["shapeMap"][k]=e.addShape("circle",{attrs:(0,p.__assign)((0,p.__assign)({},S),{x:0,y:-w/2}),className:k,name:k,isAnchorPoint:!0})}if(s)b||void 0===b?s.attr((0,p.__assign)((0,p.__assign)({},S),{x:0,y:w/2})):(s.remove(),delete e["shapeMap"]["link-point-bottom"]);else if(b){var C="link-point-bottom";e["shapeMap"][C]=e.addShape("circle",{attrs:(0,p.__assign)((0,p.__assign)({},S),{x:0,y:w/2}),className:C,name:C,isAnchorPoint:!0})}},updateShape:function(t,e,n,r,i){var o=e.get("keyShape");o.attr((0,p.__assign)({},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,u=r["shapeMap"]["".concat(this.type,"-icon")]||r.find((function(t){return t.get("name")==="".concat(n.type,"-icon")}));if(u)if(a||void 0===a){var c=(0,l.mix)({},u.attr(),i),f=c.width,h=void 0===f?20:f,d=c.height,g=void 0===d?20:d;("iconfont"===c.fontFamily||c.hasOwnProperty("text"))&&(h=0,g=0),u.attr((0,p.__assign)((0,p.__assign)({},c),{x:-h/2,y:-g/2}))}else u.remove(),delete r["shapeMap"]["".concat(this.type,"-icon")];else if(a){var v="".concat(this.type,"-icon");if(s)r["shapeMap"][v]=r.addShape("text",{attrs:(0,p.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:v,name:v});else{h=i.width,g=i.height;r["shapeMap"][v]=r.addShape("image",{attrs:(0,p.__assign)((0,p.__assign)({},i),{x:-h/2,y:-g/2}),className:v,name:v})}var m=r["shapeMap"]["node-label"]||r.find((function(t){return"node-label"===t.get("name")}));m&&m.toFront()}}},Bn=(0,p.__assign)((0,p.__assign)({},jn),Fn);me.registerNode("single-node",Bn);var zn="edge-shape";function Zn(t){var e=t;return"start"===t?e="end":"end"===t&&(e="start"),e}var Un={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:yt.defaultEdge.size,style:{x:0,y:0,stroke:yt.defaultEdge.style.stroke,lineAppendWidth:yt.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:yt.edgeLabel.style.fill,fontSize:yt.edgeLabel.style.fontSize,fontFamily:yt.windowFontFamily}},stateStyles:(0,p.__assign)({},yt.edgeStateStyles)},getPath:function(t){var e=[];return(0,l.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=(0,l.mix)({},e,n,t.style),i=t.size||yt.defaultEdge.size;t=this.getPathPoints(t);var o=t.startPoint,a=t.endPoint,s=this.getControlPoints(t),u=[o];s&&(u=u.concat(s)),u.push(a);var c=this.getPath(u),f=(0,l.mix)({},yt.defaultEdge.style,{stroke:yt.defaultEdge.color,lineWidth:i,path:c},r);return f},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;t=this.getPathPoints(t);var s=t.startPoint,u=t.endPoint,c=this.getControlPoints(t),f=[s];c&&(f=f.concat(c)),f.push(u);var h=o.attr(),d=t.style||{};void 0===d.stroke&&(d.stroke=t.color);var g=t.sourceNode,v=t.targetNode,m={radius:d.radius};c||(m={source:g,target:v,offset:d.offset,radius:d.radius});var y=this.getPath(f,m),b={};"move"===n?b={path:y}:(h.endArrow&&!1===d.endArrow&&(t.style.endArrow={path:""}),h.startArrow&&!1===d.startArrow&&(t.style.startArrow={path:""}),b=(0,p.__assign)({},t.style),void 0===b.lineWidth&&(b.lineWidth=((0,l.isNumber)(a)?a:null===a||void 0===a?void 0:a[0])||h.lineWidth),void 0===b.path&&(b.path=y),void 0===b.stroke&&(b.stroke=h.stroke||t.color)),o&&o.attr(b)},getLabelStyleByPosition:function(t,e,n){var r,i=e.position||this.labelPosition,o={},a=null===n||void 0===n?void 0:n["shapeMap"][zn];r="start"===i?0:"end"===i?1:.5;var s,u=e.refX||this.refX,c=e.refY||this.refY;if(t.startPoint.x===t.endPoint.x&&t.startPoint.y===t.endPoint.y)return o.x=t.startPoint.x+u,o.y=t.startPoint.y+c,o.text=t.label,o;s=(0,l.isNil)(e.autoRotate)?this.labelAutoRotate:e.autoRotate;var f=Ct(a,r,u,c,s);return o.x=f.x,o.y=f.y,o.rotate=f.rotate,o.textAlign=this._getTextAlign(i,f.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,o=r.padding,a=n.width+o[1]+o[3],s=n.height+o[0]+o[2],u=(0,p.__assign)((0,p.__assign)({},r),{width:a,height:s,x:n.minX-o[3],y:n.minY-o[0],matrix:[1,0,0,0,1,0,0,0,1]});return i=(0,l.isNil)(e.autoRotate)?this.labelAutoRotate:e.autoRotate,i&&(u.matrix=t.attr("matrix")||[1,0,0,0,1,0,0,0,1]),u},_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:Zn(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:zn,name:zn,attrs:n});return e["shapeMap"][zn]=r,r},drawLabel:function(t,e){var n=this.options.labelCfg,r=(0,l.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),u=this.itemType+Rn;s.set("classname",u),e["shapeMap"][u]=s,a.toFront()}return a},drawLabelBg:function(t,e,n,r,i){var o=this.options.labelCfg,a=(0,l.deepMix)({},o,t.labelCfg),s=this.getLabelBgStyleByPosition(n,a),u=e.addShape("rect",{name:"text-bg-shape",attrs:s,labelRelated:!0});return e["shapeMap"]["text-bg-shape"]=u,u}},Hn=(0,p.__assign)((0,p.__assign)({},jn),Un);me.registerEdge("single-edge",Hn),me.registerEdge("line",{getControlPoints:function(){}},"single-edge"),me.registerEdge("spline",{getPath:function(t){var e=Ke(t);return e}},"single-edge"),me.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(t){var e,n,r=t.startPoint,i=t.endPoint,o={x:(r.x+i.x)/2,y:(r.y+i.y)/2};if(void 0!==t.controlPoints){if(n=t.controlPoints[0],e=I(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),(0,l.isArray)(t.curveOffset)&&(t.curveOffset=t.curveOffset[0]),t.curveOffset<0?this.clockwise=0:this.clockwise=1;var a={x:i.x-r.x,y:i.y-r.y},s=Math.atan2(a.y,a.x);n={x:t.curveOffset*Math.cos(-Math.PI/2+s)+o.x,y:t.curveOffset*Math.sin(-Math.PI/2+s)+o.y},e=I(r,n,i)}var u=O(r,e),c=[{x:u,y:u}];return c},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"),me.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),(0,l.isArray)(t.curveOffset)&&(t.curveOffset=t.curveOffset[0]),(0,l.isArray)(t.curvePosition)&&(t.curvePosition=t.curveOffset[0]);var i=Je(n,r,t.curvePosition,t.curveOffset);e=[i]}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"),me.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),(0,l.isNumber)(t.curveOffset)&&(t.curveOffset=[t.curveOffset,-t.curveOffset]),(0,l.isNumber)(t.curvePosition)&&(t.curvePosition=[t.curvePosition,1-t.curvePosition]),!e||!e.length||e.length<2){var n=t.startPoint,r=t.endPoint,i=Je(n,r,t.curvePosition[0],t.curveOffset[0]),o=Je(n,r,t.curvePosition[1],t.curveOffset[1]);e=[i,o]}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"),me.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),(0,l.isNumber)(t.curveOffset)&&(t.curveOffset=[t.curveOffset,-t.curveOffset]),(0,l.isNumber)(t.minCurveOffset)&&(t.minCurveOffset=[t.minCurveOffset,-t.minCurveOffset]),(0,l.isNumber)(t.curvePosition)&&(t.curvePosition=[t.curvePosition,1-t.curvePosition]);var r=n.y-e.y,i=[0,0];t.curveOffset?i=t.curveOffset:Math.abs(r)<Math.abs(t.minCurveOffset[0])&&(i=t.minCurveOffset);var o={x:e.x,y:e.y+r*this.curvePosition[0]+i[0]},a={x:n.x,y:n.y-r*this.curvePosition[1]+i[1]};return[o,a]}},"cubic"),me.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),(0,l.isNumber)(t.curveOffset)&&(t.curveOffset=[t.curveOffset,-t.curveOffset]),(0,l.isNumber)(t.minCurveOffset)&&(t.minCurveOffset=[t.minCurveOffset,-t.minCurveOffset]),(0,l.isNumber)(t.curvePosition)&&(t.curvePosition=[t.curvePosition,1-t.curvePosition]);var r=n.x-e.x,i=[0,0];t.curveOffset?i=t.curveOffset:Math.abs(r)<Math.abs(t.minCurveOffset[0])&&(i=t.minCurveOffset);var o={x:e.x+r*this.curvePosition[0]+i[0],y:e.y},a={x:n.x-r*this.curvePosition[1]+i[1],y:n.y},s=[o,a];return s}},"cubic"),me.registerEdge("loop",{getPathPoints:function(t){return kt(t)},getControlPoints:function(t){return t.controlPoints},afterDraw:function(t){t.controlPoints=void 0},afterUpdate:function(t){t.controlPoints=void 0}},"cubic");var $n={itemType:"combo",shapeType:"single-combo",labelPosition:"top",refX:yt.comboLabel.refX,refY:yt.comboLabel.refY,options:{style:{stroke:yt.defaultCombo.style.stroke,fill:yt.defaultCombo.style.fill,lineWidth:yt.defaultCombo.style.lineWidth},labelCfg:{style:{fill:yt.comboLabel.style.fill,fontSize:yt.comboLabel.style.fontSize,fontFamily:yt.windowFontFamily}},stateStyles:(0,p.__assign)({},yt.comboStateStyles),collapsedSubstituteIcon:{show:!1,img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*RsnHRqLfJn4AAAAAAAAAAAAAARQnAQ"}},getSize:function(t){var e=(0,l.clone)(t.size||this.options.size||yt.defaultCombo.size);return(0,l.isArray)(e)&&1===e.length&&(e=[e[0],e[0]]),(0,l.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;(0,l.isArray)(i)&&(i=Math.max.apply(Math,i));var o=e.refX,a=e.refY;(0,l.isNil)(o)&&(o=this.refX),(0,l.isNil)(a)&&(a=this.refY);var s,u=this.getSize(t),c=Math.max(r.r,u[0]/2)||u[0]/2,f=c+i;switch(n){case"top":s={x:0,y:-f-a,textBaseline:"bottom",textAlign:"center"};break;case"bottom":s={x:0,y:f+a,textBaseline:"bottom",textAlign:"center"};break;case"left":s={x:-f+o,y:0,textAlign:"left"};break;case"center":s={x:0,y:0,text:t.label,textAlign:"center"};break;default:s={x:f+o,y:0,textAlign:"right"};break}return s.text=t.label,s},drawShape:function(t,e){var n=this.shapeType,r=this.getShapeStyle(t),i=e.addShape(n,{attrs:r,draggable:!0,name:"combo-shape"});return i},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,u=a.img,l=a.width,c=a.height,f=e.getContainer(),h=f.find((function(t){return"combo-collapsed-substitute-icon"===t.get("name")})),d=h&&!h.destroyed,g=e.get("keyShape");if(r&&s){if(d)h.show();else{var v={width:l||2*n.r||n.width,height:c||2*n.r||n.height};h=f.addShape("image",{attrs:(0,p.__assign)({img:u,x:-v.width/2,y:-v.height/2},v),name:"combo-collapsed-substitute-icon",draggable:!0})}g.hide()}else d&&(h.hide(),g.show())},updateShape:function(t,e,n){var r=this,i=e.get("keyShape"),o=e.get("animate"),a=o&&(void 0===t.animate?this.options.animate:t.animate);a&&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((0,p.__assign)({},n)),this.updateCollapsedIcon(t,e,n)),this.updateLabel(t,e)}},Gn=(0,p.__assign)((0,p.__assign)({},jn),$n);me.registerCombo("single-combo",Gn),me.registerCombo("circle",{options:{size:[yt.defaultCombo.size[0],yt.defaultCombo.size[0]],padding:Math.max.apply(Math,yt.defaultCombo.padding),animate:!0,style:{stroke:yt.defaultCombo.style.stroke,fill:yt.defaultCombo.style.fill,lineWidth:yt.defaultCombo.style.lineWidth},labelCfg:{style:{fill:yt.comboLabel.style.fill,fontSize:yt.comboLabel.style.fontSize},refX:0,refY:0},stateStyles:(0,p.__assign)({},yt.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);delete n.height,delete n.width;var r=e.addShape("circle",{attrs:n,className:"circle-combo",name:"circle-combo",draggable:!0});return r},getShapeStyle:function(t){var e=this.options.style,n=t.padding||this.options.padding;(0,l.isArray)(n)&&(n=Math.max.apply(Math,n));var r,i={stroke:t.color},o=(0,l.mix)({},e,i,t.style),a=t.collapsed&&t.fixCollapseSize?t.fixCollapseSize:t.fixSize;if(a)r=(0,l.isNumber)(a)?a/2:a[0]/2;else{var s=this.getSize(t);r=!(0,l.isNumber)(o.r)||isNaN(o.r)?s[0]/2||yt.defaultCombo.style.r:Math.max(o.r,s[0]/2)||s[0]/2}o.r=r+n;var u=(0,p.__assign)({x:0,y:0},o);return t.style?t.style.r=r:t.style={r:r},u},update:function(t,e){var n=this.getSize(t),r=t.padding||this.options.padding;(0,l.isArray)(r)&&(r=Math.max.apply(Math,r));var i,o=(0,l.clone)(t.style),a=t.collapsed&&t.fixCollapseSize?t.fixCollapseSize:t.fixSize;i=a?(0,l.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 u={stroke:t.color},c=e.get("keyShape"),f=(0,l.mix)({},c.attr(),u,o);t.style?t.style.r=i:t.style={r:i},this.updateShape(t,e,f,!0)}},"single-combo"),me.registerCombo("rect",{options:{size:[40,5],padding:[25,20,15,20],animate:!0,style:{radius:0,stroke:yt.defaultCombo.style.stroke,fill:yt.defaultCombo.style.fill,lineWidth:yt.defaultCombo.style.lineWidth},labelCfg:{style:{fill:yt.comboLabel.style.fill,fontSize:yt.comboLabel.style.fontSize,fontFamily:yt.windowFontFamily}},anchorPoints:[[0,.5],[1,.5]],stateStyles:(0,p.__assign)({},yt.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),r=e.addShape("rect",{attrs:n,className:"rect-combo",name:"rect-combo",draggable:!0});return r},getLabelStyleByPosition:function(t,e){var n=e.position||this.labelPosition,r=t.style,i=t.padding||this.options.padding;(0,l.isNumber)(i)&&(i=[i,i,i,i]);var o=e.refX,a=e.refY;(0,l.isNil)(o)&&(o=this.refX),(0,l.isNil)(a)&&(a=this.refY);var s,u=-r.width/2-i[3],c=r.width/2+i[1],f=-r.height/2-i[0],h=r.height/2+i[2];switch(n){case"top":s={x:u+o,y:f+a,textBaseline:"top",textAlign:"left"};break;case"bottom":s={x:0,y:h+a,textBaseline:"top",textAlign:"center"};break;case"left":s={x:u+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:f+a,textBaseline:"top",textAlign:"center"};break;default:s={x:c+o,y:0,textAlign:"right"};break}return s.text=t.label,s},getShapeStyle:function(t){var e=this.options.style,n=t.padding||this.options.padding;(0,l.isNumber)(n)&&(n=[n,n,n,n]);var r,i,o={stroke:t.color},a=(0,l.mix)({},e,o,t.style),s=this.getSize(t),u=t.collapsed&&t.fixCollapseSize?t.fixCollapseSize:t.fixSize;u?(0,l.isNumber)(u)?(r=u,i=u):(r=u[0],i=u[1]):(r=!(0,l.isNumber)(a.width)||isNaN(a.width)?s[0]||yt.defaultCombo.style.width:Math.max(a.width,s[0])||s[0],i=!(0,l.isNumber)(a.height)||isNaN(a.height)?s[1]||yt.defaultCombo.style.height:Math.max(a.height,s[1])||s[1]);var c=-r/2-n[3],f=-i/2-n[0];a.width=r+n[1]+n[3],a.height=i+n[0]+n[2];var h=(0,p.__assign)({x:c,y:f},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;(0,l.isNumber)(r)&&(r=[r,r,r,r]);var i,o,a=(0,l.clone)(t.style),s=t.collapsed&&t.fixCollapseSize?t.fixCollapseSize:t.fixSize;s?(0,l.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 u=e.get("sizeCache");u&&(u.width=a.width,u.height=a.height),a.x=-i/2-r[3],a.y=-o/2-r[0];var c={stroke:t.color},f=e.get("keyShape"),h=(0,l.mix)({},f.attr(),c,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"),me.registerNode("simple-circle",{options:{size:yt.defaultNode.size,style:{x:0,y:0,stroke:yt.defaultNode.style.stroke,fill:yt.defaultNode.style.fill,lineWidth:yt.defaultNode.style.lineWidth},labelCfg:{style:{fill:yt.nodeLabel.style.fill,fontSize:yt.nodeLabel.style.fontSize,fontFamily:yt.windowFontFamily}},stateStyles:(0,p.__assign)({},yt.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=(0,l.deepMix)({},e,n),i=this.getSize(t),o=i[0]/2,a=(0,p.__assign)({x:0,y:0,r:o},r);return a},update:function(t,e,n){var r=this.getSize(t),i={stroke:t.color,r:r[0]/2},o=e.get("keyShape"),a=(0,l.deepMix)({},o.attr(),i,t.style);this.updateShape(t,e,a,!0,n)}},"single-node"),me.registerNode("simple-rect",{options:{size:[100,30],style:{radius:0,stroke:yt.defaultNode.style.stroke,fill:yt.defaultNode.style.fill,lineWidth:yt.defaultNode.style.lineWidth},labelCfg:{style:{fill:yt.nodeLabel.style.fill,fontSize:yt.nodeLabel.style.fontSize,fontFamily:yt.windowFontFamily}},anchorPoints:[[0,.5],[1,.5]],stateStyles:(0,p.__assign)({},yt.nodeStateStyles)},shapeType:"simple-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 r},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,l.mix)({},e,n),i=this.getSize(t),o=r.width||i[0],a=r.height||i[1],s=(0,p.__assign)({x:-o/2,y:-a/2,width:o,height:a},r);return s},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=(0,l.mix)({},r,o.attr(),a);s=(0,l.mix)(s,t.style),this.updateShape(t,e,s,!1,n)}},"single-node"),me.registerNode("image",{options:{img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*eD7nT6tmYgAAAAAAAAAAAABkARQnAQ",size:200,labelCfg:{style:{fontFamily:yt.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:(0,p.__assign)({r:s,x:i,y:o},a)})}else if("rect"===r){var u=n.width,l=n.height,c=i-u/2,f=o-l/2;e.setClip({type:"rect",attrs:(0,p.__assign)({x:c,y:f,width:u,height:l},a)})}else if("ellipse"===r){var h=n.rx,d=n.ry;e.setClip({type:"ellipse",attrs:(0,p.__assign)({x:i,y:o,rx:h,ry:d},a)})}else if("polygon"===r){var g=n.points;e.setClip({type:"polygon",attrs:(0,p.__assign)({points:g},a)})}else if("path"===r){var v=n.path;e.setClip({type:"path",attrs:(0,p.__assign)({path:v},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];n&&(o=n.width||i[0],a=n.height||i[1]);var s=(0,p.__assign)({x:-o/2,y:-a/2,width:o,height:a,img:r},n);return s},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 Wn={triangle:function(t,e,n){void 0===t&&(t=10),void 0===e&&(e=15),void 0===n&&(n=0);var r=2*n,i="M ".concat(r,",0 L ").concat(r+e,",-").concat(t/2," L ").concat(r+e,",").concat(t/2," Z");return i},vee:function(t,e,n){void 0===t&&(t=15),void 0===e&&(e=20),void 0===n&&(n=0);var r=2*n,i="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");return i},circle:function(t,e){void 0===t&&(t=5),void 0===e&&(e=0);var n=2*e,r="M ".concat(n,", 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");return r},rect:function(t,e,n){void 0===t&&(t=10),void 0===e&&(e=10),void 0===n&&(n=0);var r=2*n,i="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");return i},diamond:function(t,e,n){void 0===t&&(t=15),void 0===e&&(e=15),void 0===n&&(n=0);var r=2*n,i="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");return i},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,u="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");return u}},Vn={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"]]}},Yn=me,Xn=["#5F95FF","#61DDAA","#65789B","#F6BD16","#7262FD","#78D3F8","#9661BC","#F6903D","#008685","#F08BB4"],qn=function(t){return"force"===t||"g6force"===t||"gForce"===t||"force2"===t},Kn=v.vs,Jn=(0,p.__assign)((0,p.__assign)((0,p.__assign)((0,p.__assign)((0,p.__assign)((0,p.__assign)((0,p.__assign)({},o),i),a),r),s),u),{transform:Kn,mat3:b}),Qn=Jn,tr=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,e=t.graph,n=t.layoutType,r=t.layoutCfg,i=void 0===r?{}:r;if(e){var o=i.animate,a=void 0===o&&("force"===n||"force2"===n),s=qn(n)&&(o||a);e.get("animate")&&!s?e.positionsAnimate("comboCombined"===n):e.refreshPositions("comboCombined"===n)}},t.prototype.changeLayout=function(t){var e=t.disableTriggerLayout,n=(0,p.__rest)(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=[],u=this.graph.getNodes(),l=this.graph.getEdges(),c=this.graph.getCombos(),f=u.length,h=0;h<f;h++){var d=u[h];if(d&&!d.destroyed){var p=d.getModel();d.isVisible()?e.push(p):n.push(p)}}var g=l.length;for(h=0;h<g;h++){var v=l[h];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(h=0;h<m;h++){var y=c[h];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,r=n.graph,i=n.layoutMethods,o=n.layoutCfg;if(r&&!r.get("destroyed")){var a=Promise.resolve();if(t){this.data=this.setDataFromGraph();var s=this.data.nodes;if(!s)return!1;a=this.initPositions(o.center,s)}r.emit("beforelayout"),null===i||void 0===i||i.forEach((function(t,n){var r=o[n]||o;a=a.then((function(){var t,a=e.execLayoutMethod(r,n);return n===i.length-1&&(null===(t=o.onAllLayoutEnd)||void 0===t||t.call(o)),a}))}))}},t.prototype.filterLayoutData=function(t,e){var n,r,i=t.nodes,o=t.edges,a=(0,p.__rest)(t,["nodes","edges"]);if(!i)return t;n=(0,l.isFunction)(null===e||void 0===e?void 0:e.nodesFilter)?e.nodesFilter:function(){return!0};var s=i.filter(n);if((0,l.isFunction)(null===e||void 0===e?void 0:e.edgesFilter))r=e.edgesFilter;else{var u=s.reduce((function(t,e){return t[e.id]=!0,t}),{});r=function(t){return u[t.source]&&u[t.target]}}return(0,p.__assign)({nodes:s,edges:o.filter(r)},a)},t.prototype.getLayoutBBox=function(t){var e=this.graph,n=(0,l.groupBy)(e.getNodes(),(function(t){return t.getModel().layoutOrder})),r=Object.values(n).map((function(t){var e=Jt(t);return e.size=[e.width,e.height],e})),i=Object.values((0,l.groupBy)(t,"layoutOrder"));return{groupNodes:i,layoutNodes:r}},t.prototype.layoutAnimate=function(){},t.prototype.moveToZero=function(){var t=this.graph,e=t.get("data"),n=e.nodes;if(void 0!==n[0].x&&null!==n[0].x&&!Kt(n[0].x)){for(var r=[0,0],i=n.length,o=0;o<i;o++){var a=n[o];r[0]+=a.x,r[1]+=a.y}r[0]/=n.length,r[1]/=n.length;for(o=0;o<i;o++){a=n[o];a.x-=r[0],a.y-=r[1]}}},t.prototype.initPositions=function(t,e){var n;return(0,p.__awaiter)(this,void 0,void 0,(function(){var r,i,o;return(0,p.__generator)(this,(function(a){return r=this.graph,(null===e||void 0===e?void 0:e.length)?(i=e.filter((function(t){return Kt(t.x)||Kt(t.y)})),o=i?i.length:0,o?[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=Math.ceil(o/a),u=e/(a-1),l=n/(s-1);isFinite(u)&&u||(u=0),isFinite(l)&&u||(l=0);for(var c=t[0]-e/2,f=t[1]-n/2,h=0;h<o;h++){var d=i[h];Kt(+d.x)&&(!1,d.x=h%a*u+c),Kt(+d.y)&&(!1,d.y=Math.floor(h/a)*l+f)}}))]:[2]):[2,Promise.resolve()]}))}))},t.prototype.destroy=function(){this.graph=null,this.destoryLayoutMethods(),this.destroyed=!0},t}(),er=tr,nr=function(){function t(t){this.graph=t,this.destroyed=!1,this.initEvents()}return t}(),rr=nr,ir=Yn.registerNode,or=Yn.registerEdge,ar=Yn.registerCombo,sr=d.registerBehavior,ur=yt;yt.version,Yn.registerNode,Yn.registerEdge,Yn.registerCombo,d.registerBehavior},70549:function(t,e,n){"use strict";n.d(e,{ZP:function(){return li}});var r={};n.r(r),n.d(r,{assign:function(){return Yt},default:function(){return ve},defaultI18n:function(){return Qt},format:function(){return de},parse:function(){return pe},setGlobalDateI18n:function(){return ee},setGlobalDateMasks:function(){return he}});var i=n(6056),o=n(45442),a=n(55817),s=function(){function t(t){this._cfgs=(0,a.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={};(0,a.each)(n,(function(n,i){var o=(0,a.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;(0,a.each)(e,(function(e,n){t.off(n,e)})),this._events=null,this._cfgs=null,this.destroyed=!0},t}(),u=s,l=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])},t(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)}}(),c="url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2UwZTBlMCIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=)",f=function(t){function e(e){return t.call(this,e)||this}return l(e,t),e.prototype.getDefaultCfgs=function(){return{img:c,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")||c;r.includes("url(")||(r='url("'.concat(r,'")'));var o=(0,i.Z)("<div class='g6-grid-container' style=\"position:absolute;overflow:hidden;z-index: -1;\"></div>"),a=(0,i.Z)("<div\n        class='g6-grid'\n        style='position:absolute;\n        background-image: ".concat(r,";\n        user-select: none\n        '></div>"));this.set("container",o),this.set("gridContainer",a),this.positionInit(),o.appendChild(a),e.insertBefore(o,n)},e.prototype.positionInit=function(){var t=this.get("graph"),e=t.get("minZoom"),n=t.get("width"),r=t.get("height");(0,o.Z)(this.get("container"),{width:"".concat(n,"px"),height:"".concat(r,"px")});var i=80*n/e,a=80*r/e;(0,o.Z)(this.get("gridContainer"),{width:"".concat(i,"px"),height:"".concat(a,"px"),left:"-".concat(i/2,"px"),top:"-".concat(a/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"),i="matrix(".concat(n[0],", ").concat(n[1],", ").concat(n[3],", ").concat(n[4],", ").concat(r?n[6]:"0",", ").concat(r?n[7]:"0",")");(0,o.Z)(e,{transform:i})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.destroy=function(){var t=this.get("graph"),e=t.get("container"),n=this.get("container");e.removeChild(n)},e}(u),h=f,d=n(38186),p=n.n(d),g=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])},t(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&&p()("\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 v=function(t){function e(e){return t.call(this,e)||this}return g(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=(0,i.Z)("<div class=".concat(t||"g6-component-contextmenu","></div>"));(0,o.Z)(e,{top:"0px",position:"absolute",visibility:"hidden"});var n=this.get("container");n||(n=this.get("graph").get("container")),(0,a.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();var r=this.get("shouldBegin");if(r(t)){var i=this.get("menu"),s=this.get("getContent"),u=this.get("graph"),l=s(t,u);(0,a.isString)(l)?i.innerHTML=l:i.innerHTML=l.outerHTML,this.removeMenuEventListener();var c=this.get("handleMenuClick");if(c){var f=function(e){c(e.target,t.item,u)};this.set("handleMenuClickWrapper",f),i.addEventListener("click",f)}var h=u.get("width"),d=u.get("height"),p=i.getBoundingClientRect(),g=this.get("offsetX")||0,v=this.get("offsetY")||0,m=u.getContainer().offsetTop,y=u.getContainer().offsetLeft,b=t.canvasX+y+g,x=t.canvasY+m+v;b+p.width>h&&(b=t.canvasX-p.width-g+y),x+p.height>d&&(x=t.canvasY-p.height-v+m),x<0&&(x=0),(0,o.Z)(i,{top:"".concat(x,"px"),left:"".concat(b,"px"),visibility:"visible"});var _="click"===this.get("trigger"),w=function(t){_?_=!1:e.onMenuHide()};document.body.addEventListener("click",w),this.set("handler",w)}},e.prototype.removeMenuEventListener=function(){var t=this.get("handleMenuClickWrapper"),e=this.get("handler");if(t){var n=this.get("menu");n.removeEventListener("click",t),this.set("handleMenuClickWrapper",null)}e&&document.body.removeEventListener("click",e)},e.prototype.onMenuHide=function(){var t=this.get("menu");t&&(0,o.Z)(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")),(0,a.isString)(e)&&(e=document.getElementById(e)),e.removeChild(t)}},e}(u),m=v,y=n(66769),b=n(31767),x=n(31506),_=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])},t(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)}}(),w=function(){return w=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},w.apply(this,arguments)},S=Math.max,E=x.vs,T="default",k="keyShape",C="delegate",M="svg",A=function(t){function e(e){var n=t.call(this,e)||this;return n.handleUpdateCanvas=(0,a.debounce)((function(t){var e=n;e.destroyed||e.updateCanvas()}),100,!1),n}return _(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 s=this.get("canvas"),u=s.get("container"),l=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,c=navigator.userAgent.toLowerCase().indexOf("safari")>-1,f=(0,i.Z)("\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(!c&&!l,"\n      </div>")),h=0,d=0,p=!1,g=0,v=0,m=0,y=0,b=0,x=0,_=c||l?"mousedown":"dragstart";f.addEventListener(_,(function(i){var o,a;if(i.dataTransfer){var s=new Image;s.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,s,0,0);try{i.dataTransfer.setData("text/html","view-port-minimap")}catch(l){i.dataTransfer.setData("text","view-port-minimap")}}if(e.refresh=!1,i.target===f){var u=f.style;g=parseInt(u.left,10),v=parseInt(u.top,10),m=parseInt(u.width,10),y=parseInt(u.height,10),m>n[0]||y>n[1]||(x=r.getZoom(),b=t.get("ratio"),p=!0,h=i.clientX,d=i.clientY)}}),!1);var w=function(t){if(p&&!(0,a.isNil)(t.clientX)&&!(0,a.isNil)(t.clientY)){var e=h-t.clientX,i=d-t.clientY;(g-e<0||g-e+m>=n[0])&&(e=0),(v-i<0||v-i+y>=n[1])&&(i=0),g-=e,v-=i,(0,o.Z)(f,{left:"".concat(g,"px"),top:"".concat(v,"px")}),r.translate(e*x/b,i*x/b),h=t.clientX,d=t.clientY}};c||l||f.addEventListener("drag",w,!1);var S=function(){p=!1,e.refresh=!0},E=c||l?"mouseup":"dragend";f.addEventListener(E,S,!1),u.addEventListener("mouseleave",S),u.addEventListener("mouseup",S),(c||l)&&u.addEventListener("mousemove",w,!1),this.set("viewport",f),u.appendChild(f)}},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"),a=r.get("canvas").get("el"),s=r.get("width")||a.scrollWidth||500,u=r.get("height")||a.scrollHeight||500,l=r.getPointByCanvas(0,0),c=r.getPointByCanvas(s,u),f=this.get("viewport");f||this.initViewport();var h=(c.x-l.x)*t,d=(c.y-l.y)*t,p=l.x*t+e,g=l.y*t+n,v=p+h,m=g+d;p<0&&(h+=p,p=0),v>i[0]&&(h-=v-i[0]),g<0&&(d+=g,g=0),m>i[1]&&(d-=m-i[1]),this.set("ratio",t);var y="".concat(p,"px"),b="".concat(g,"px");(0,o.Z)(f,{left:y,top:b,width:"".concat(h,"px"),height:"".concat(d,"px")})}},e.prototype.updateGraphShapes=function(){var t=this._cfgs.graph,e=this.get("canvas"),n=t.get("group");if(!n.destroyed){var r;e.clear(),this.get("hideEdge")?(r=e.addGroup(),n.get("children").forEach((function(t){t.get("id").includes("-edge")||r.add(t.clone())}))):(r=n.clone(),r.resetMatrix(),e.add(r));var i=t.get("renderer");i===M&&this.updateVisible(r)}},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")||(0,a.each)(e.getEdges(),(function(e){t.updateOneEdgeKeyShape(e,r)})),(0,a.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||((0,a.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 u=r.get("type");"rect"!==u&&"image"!==u||(s.x=i.minX,s.y=i.minY),r.attr(s),t.isVisible()?r.show():r.hide(),r.exist=!0;var l=t.getModel().depth;isNaN(l)||r.set("zIndex",l),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 u=r.get("type");"rect"!==u&&"image"!==u||(s.x=i.minX,s.y=i.minY),r.attr(s),t.isVisible()?r.show():r.hide(),r.exist=!0;var l=t.getModel().depth;isNaN(l)||r.set("zIndex",l),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")||(0,a.each)(e.getEdges(),(function(e){t.updateOneEdgeKeyShape(e,r)})),(0,a.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||((0,a.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:w({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,e=t.get("graph"),n=t.get("size"),r=t.get("className"),o=t.get("container"),s=(0,i.Z)("<div class='".concat(r,"' style='width: ").concat(n[0],"px; height: ").concat(n[1],"px; overflow: hidden'></div>"));(0,a.isString)(o)&&(o=document.getElementById(o)),o?o.appendChild(s):e.get("container").appendChild(s),t.set("container",s);var u,l=(0,i.Z)('<div class="g6-minimap-container" style="position: relative;"></div>');s.appendChild(l),l.addEventListener("dragenter",(function(t){t.preventDefault()})),l.addEventListener("dragover",(function(t){t.preventDefault()}));var c=e.get("renderer");u=c===M?new b.Canvas({container:l,width:n[0],height:n[1]}):new y.Canvas({container:l,width:n[0],height:n[1]}),t.set("canvas",u),t.updateCanvas()},e.prototype.updateCanvas=function(){if(!this.destroyed){var t=this.get("refresh");if(t){var e=this.get("graph");if(!e.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var n=this.get("size"),r=this.get("canvas"),i=this.get("type"),o=this.get("padding");if(!r.destroyed){switch(i){case T:this.updateGraphShapes();break;case k:this.updateKeyShapes();break;case C:this.updateDelegateShapes();break;default:break}var a=r.get("children")[0];if(a){a.resetMatrix();var s=a.getCanvasBBox(),u=e.get("canvas").getCanvasBBox(),l=e.getZoom()||1,c=u.width/l,f=u.height/l;Number.isFinite(s.width)&&(c=S(s.width,c),f=S(s.height,f)),c+=2*o,f+=2*o;var h=Math.min(n[0]/c,n[1]/f),d=[1,0,0,0,1,0,0,0,1],p=0,g=0;Number.isFinite(s.minX)&&(p=-s.minX),Number.isFinite(s.minY)&&(g=-s.minY);var v=(n[0]-(c-2*o)*h)/2,m=(n[1]-(f-2*o)*h)/2;d=E(d,[["t",p,g],["s",h,h],["t",v,m]]),a.setMatrix(d),this.set("ratio",h),this.set("totaldx",v+p*h),this.set("totaldy",m+g*h),this.set("dx",v),this.set("dy",m),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}(u),I=A,O=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])},t(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 D(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 P(t,e){return t.x*e.x+t.y*e.y}function L(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),i=n*(r-e.source.x)+e.source.y;return{x:r,y:i}}var N=function(t){function e(e){return t.call(this,e)||this}return O(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"),n=function(){e&&e(),t.refreshPositions()};this.set("tick",n)},e.prototype.bundling=function(t){var e=this;if(e.set("data",t),!e.isTicking()){var n=t.edges||[],r=t.nodes||[],i={},o=!1;if(r.forEach((function(t){null!==t.x&&null!==!t.y&&void 0!==t.x&&void 0!==!t.y||(o=!0),i[t.id]=t})),o)throw new Error("please layout the graph or assign x and y for nodes first");e.set("nodeIdMap",i);var a=e.get("divisions"),s=e.get("divRate"),u=e.divideEdges(a);e.set("edgePoints",u);var l=e.getEdgeBundles();e.set("edgeBundles",l);for(var c=e.get("cycles"),f=e.get("iterations"),h=e.get("iterRate"),d=e.get("lambda"),p=0;p<c;p++){for(var g=function(t){var r=[];n.forEach((function(t,n){if(t.source!==t.target){var o=i[t.source],s=i[t.target];r[n]=e.getEdgeForces({source:o,target:s},n,a,d);for(var l=0;l<a+1;l++)u[n][l].x+=r[n][l].x,u[n][l].y+=r[n][l].y}}))},v=0;v<f;v++)g(v);d/=2,a*=s,f*=h,u=e.divideEdges(a),e.set("edgePoints",u)}n.forEach((function(t,e){t.source!==t.target&&(t.type="polyline",t.controlPoints=u[e].slice(1,u[e].length-1))}));var m=e.get("graph");m.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],u=r[n.target];if(1===t)i[o].push({x:s.x,y:s.y}),i[o].push({x:.5*(s.x+u.x),y:.5*(s.y+u.y)}),i[o].push({x:u.x,y:u.y});else{var l=0;l=(null===(a=i[o])||void 0===a?void 0:a.length)?e.getEdgeLength(i[o]):D({x:s.x,y:s.y},{x:u.x,y:u.y});var c=l/(t+1),f=c,h=[{x:s.x,y:s.y}];i[o].forEach((function(t,e){if(0!==e){var n=D(t,i[o][e-1]);while(n>f){var r=f/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-=f,f=c}f-=n}})),h.push({x:u.x,y:u.y}),i[o]=h}})),i},e.prototype.getEdgeLength=function(t){var e=0;return t.forEach((function(n,r){0!==r&&(e+=D(n,t[r-1]))})),e},e.prototype.getEdgeBundles=function(){var t=this,e=t.get("data"),n=e.edges||[],r=t.get("bundleThreshold"),i=t.get("nodeIdMap"),o=t.get("edgeBundles");return o||(o=[]),n.forEach((function(t,e){o[e]&&void 0!==o[e]||(o[e]=[])})),n.forEach((function(e,a){var s=i[e.source],u=i[e.target];n.forEach((function(e,n){if(!(n<=a)){var l=i[e.source],c=i[e.target],f=t.getBundleScore({source:s,target:u},{source:l,target:c});f>=r&&(o[a].push(n),o[n].push(a))}}))})),o},e.prototype.getBundleScore=function(t,e){var n=this;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=D({x:t.source.x,y:t.source.y},{x:t.target.x,y:t.target.y}),e.length=D({x:e.source.x,y:e.source.y},{x:e.target.x,y:e.target.y});var r=n.getAngleScore(t,e),i=n.getScaleScore(t,e),o=n.getPositionScore(t,e),a=n.getVisibilityScore(t,e);return r*i*o*a},e.prototype.getAngleScore=function(t,e){var n=P({x:t.vx,y:t.vy},{x:e.vx,y:e.vy});return n/(t.length*e.length)},e.prototype.getScaleScore=function(t,e){var n=(t.length+e.length)/2,r=2/(n/Math.min(t.length,e.length)+Math.max(t.length,e.length)/n);return r},e.prototype.getPositionScore=function(t,e){var n=(t.length+e.length)/2,r={x:(t.source.x+t.target.x)/2,y:(t.source.y+t.target.y)/2},i={x:(e.source.x+e.target.x)/2,y:(e.source.y+e.target.y)/2},o=D(r,i);return n/(n+o)},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=L(e.source,t),r=L(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*D(i,o)/D(n,r))},e.prototype.getEdgeForces=function(t,e,n,r){for(var i=this,o=i.get("edgePoints"),a=i.get("K"),s=a/(D(t.source,t.target)*(n+1)),u=[{x:0,y:0}],l=1;l<n;l++){var c={x:0,y:0},f=i.getSpringForce({pre:o[e][l-1],cur:o[e][l],next:o[e][l+1]},s),h=i.getElectrostaticForce(l,e);c.x=r*(f.x+h.x),c.y=r*(f.y+h.y),u.push(c)}return u.push({x:0,y:0}),u},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 n*=e,r*=e,{x:n,y:r}},e.prototype.getElectrostaticForce=function(t,e){var n=this,r=n.get("eps"),i=n.get("edgeBundles"),o=n.get("edgePoints"),a=i[e],s={x:0,y:0};return a.forEach((function(n){var i={x:o[n][t].x-o[e][t].x,y:o[n][t].y-o[e][t].y};if(Math.abs(i.x)>r||Math.abs(i.y)>r){var a=D(o[n][t],o[e][t]),u=1/a;s.x+=i.x*u,s.y+=i.y*u}})),s},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}(u),R=N,j=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])},t(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)}}(),F=function(){return F=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},F.apply(this,arguments)},B=.05,z={stroke:"#000",strokeOpacity:.8,lineWidth:2,fillOpacity:.1,fill:"#ccc"},Z=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e.prototype.getDefaultCfgs=function(){return{trigger:"mousemove",d:1.5,r:300,delegateStyle:(0,a.clone)(z),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"};break}return t},e.prototype.init=function(){var t=this,e=t.get("r");t.set("cachedMagnifiedModels",[]),t.set("cachedOriginPositions",{}),t.set("r2",e*e);var n=t.get("d");t.set("molecularParam",(n+1)*e)},e.prototype.createDelegate=function(t){var e=this,n=this,r=n.get("delegate");r&&!r.destroyed||(n.magnify(t),r=n.get("delegate"),r.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){var e=this;if(t&&t.originalEvent){t.preventDefault&&t.preventDefault();var n,r=e.get("graph"),i=e.get("delegate"),o=i?{x:i.attr("x"),y:i.attr("y")}:void 0,a=o||r.getPointByClient(t.clientX,t.clientY);n=t.originalEvent.wheelDelta<0?1-B:1/(1-B);var s=e.get("maxR"),u=e.get("minR"),l=e.get("r");(l>(s||r.get("height"))&&n>1||l<(u||.05*r.get("height"))&&n<1)&&(n=1),l*=n,e.set("r",l),e.set("r2",l*l);var c=e.get("d");e.set("molecularParam",(c+1)*l),e.set("delegateCenterDiff",void 0),e.magnify(t,a)}},e.prototype.scaleRByDrag=function(t){var e=this;if(t){var n,r=e.get("dragPrePos"),i=e.get("graph"),o=i.getPointByClient(t.clientX,t.clientY);n=t.x-r.x<0?1-B:1/(1-B);var a=e.get("maxR"),s=e.get("minR"),u=e.get("r");(u>(a||i.get("height"))&&n>1||u<(s||.05*i.get("height"))&&n<1)&&(n=1),u*=n,e.set("r",u),e.set("r2",u*u);var l=e.get("d");e.set("molecularParam",(l+1)*u),e.magnify(t,o),e.set("dragPrePos",{x:t.x,y:t.y})}},e.prototype.scaleDByWheel=function(t){var e=this;if(t||t.originalEvent){t.preventDefault&&t.preventDefault();var n=0;n=t.originalEvent.wheelDelta<0?-.1:.1;var r=e.get("d"),i=r+n,o=e.get("maxD"),a=e.get("minD");if(i<o&&i>a){e.set("d",i);var s=e.get("r");e.set("molecularParam",(i+1)*s);var u=e.get("delegate"),l=u?{x:u.attr("x"),y:u.attr("y")}:void 0;e.set("delegateCenterDiff",void 0),e.magnify(t,l)}}},e.prototype.scaleDByDrag=function(t){var e=this,n=e.get("dragPrePos"),r=t.x-n.x>0?.1:-.1,i=e.get("d"),o=i+r,a=e.get("maxD"),s=e.get("minD");if(o<a&&o>s){e.set("d",o);var u=e.get("r");e.set("molecularParam",(o+1)*u),e.magnify(t)}e.set("dragPrePos",{x:t.x,y:t.y})},e.prototype.magnify=function(t,e){var n=this;n.restoreCache();var r=n.get("graph"),i=n.get("cachedMagnifiedModels"),o=n.get("cachedOriginPositions"),a=n.get("showLabel"),s=n.get("r"),u=n.get("r2"),l=n.get("d"),c=n.get("molecularParam"),f=r.getNodes(),h=f.length,d=e?{x:e.x,y:e.y}:{x:t.x,y:t.y};!n.get("dragging")||"mousemove"!==n.get("trigger")&&"click"!==n.get("trigger")||(d=n.get("cacheCenter"));var p=n.get("delegateCenterDiff");p&&(d.x+=p.x,d.y+=p.y),n.updateDelegate(d,s);for(var g=0;g<h;g++){var v=f[g].getModel(),m=v.x,y=v.y;if(!isNaN(m)&&!isNaN(y)){var b=(m-d.x)*(m-d.x)+(y-d.y)*(y-d.y);if(!isNaN(b)&&b<u&&0!==b){var x=Math.sqrt(b),_=c*x/(l*x+s),w=(m-d.x)/x,S=(y-d.y)/x;if(v.x=w*_+d.x,v.y=S*_+d.y,o[v.id]||(o[v.id]={x:m,y:y,texts:[]}),i.push(v),a&&2*x<s)for(var E=f[g],T=E.getContainer(),k=T.getChildren(),C=k.length,M=0;M<C;M++){var A=k[M];"text"===A.get("type")&&(o[v.id].texts.push({visible:A.get("visible"),shape:A}),A.set("visible",!0))}}}}r.refreshPositions()},e.prototype.restoreCache=function(){for(var t=this,e=t.get("cachedMagnifiedModels"),n=t.get("cachedOriginPositions"),r=e.length,i=0;i<r;i++){var o=e[i],a=o.id,s=n[a];o.x=s.x,o.y=s.y;for(var u=s.texts.length,l=0;l<u;l++){var c=s.texts[l];c.shape.set("visible",c.visible)}}t.set("cachedMagnifiedModels",[]),t.set("cachedOriginPositions",{})},e.prototype.updateParams=function(t){var e=this,n=t.r,r=t.d,i=t.trigger,o=t.minD,a=t.maxD,s=t.minR,u=t.maxR,l=t.scaleDBy,c=t.scaleRBy;isNaN(t.r)||(e.set("r",n),e.set("r2",n*n)),isNaN(r)||e.set("d",r),isNaN(a)||e.set("maxD",a),isNaN(o)||e.set("minD",o),isNaN(u)||e.set("maxR",u),isNaN(s)||e.set("minR",s);var f=e.get("d"),h=e.get("r");if(e.set("molecularParam",(f+1)*h),"mousemove"!==i&&"click"!==i&&"drag"!==i||e.set("trigger",i),"drag"===l||"wheel"===l||"unset"===l){e.set("scaleDBy",l),e.get("delegate").remove(),e.get("delegate").destroy();var d=e.get("dPercentText");d&&(d.remove(),d.destroy())}if("drag"===c||"wheel"===c||"unset"===c){e.set("scaleRBy",c),e.get("delegate").remove(),e.get("delegate").destroy();d=e.get("dPercentText");d&&(d.remove(),d.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")||z;o=a.addShape("circle",{attrs:F({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 u=Math.round((r.get("d")-r.get("minD"))/(r.get("maxD")-r.get("minD"))*100),l=r.get("dPercentText"),c=t.y+e/1.5+16;if(!l||l.destroyed){var f=i.get("group");l=f.addShape("text",{attrs:{text:"".concat(u,"%"),x:t.x,y:c,fill:"#aaa",stroke:"#fff",lineWidth:1,fontSize:12}}),r.set("dPercentText",l)}else l.attr({text:"".concat(u,"%"),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}(u),U=Z,H=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])},t(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)}}(),$=.05;"undefined"!==typeof document&&p()("\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 G=function(t){if(!t)return[];if(t.composedPath)return t.composedPath();var e=[],n=t.target;while(n){if(e.push(n),"HTML"===n.tagName)return e.push(document,window),e;n=n.parentElement}return e},W=function(t){function e(e){return t.call(this,e)||this}return H(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"),r=n(e),s=r;(0,a.isString)(r)&&(s=(0,i.Z)(r));var u=this.get("className");s.setAttribute("class",u||"g6-component-toolbar");var l=this.get("container");l||(l=this.get("graph").get("container")),(0,a.isString)(l)&&(l=document.getElementById(l)),l.appendChild(s),this.set("toolBar",s);var c=this.get("handleClick");s.addEventListener("click",(function(n){var r=G(n).filter((function(t){return"LI"===t.nodeName}));if(0!==r.length){var i=r[0].getAttribute("code");i&&(c?c(i,e):t.handleDefaultOperator(i))}}));var f=this.get("position");f&&(0,o.Z)(s,{top:"".concat(f.y,"px"),left:"".concat(f.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,u=a.length;0===s?(e.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4")):(e.removeAttribute("style"),n.removeAttribute("style")),0===u?(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,(0,a.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,s=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(s.id,!1);break;case"uncombo":var u=i.combos[i.combos.length-1],l=i.nodes.concat(i.combos).map((function(t){return t.id})).filter((function(t){return t!==u.id}));t.createCombo(u,l,!1);break;case"layout":t.updateLayout(i,void 0,void 0,!1);break;default:}}}},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,(0,a.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 s=n.data.before.combos,u=s[s.length-1];t.uncombo(u.id,!1);break;case"layout":t.updateLayout(i,void 0,void 0,!1);break;default:}}}},e.prototype.zoomOut=function(){var t=this.get("graph"),e=t.getZoom(),n=1/(1-$*this.get("zoomSensitivity")),r=this.get("maxZoom")||t.get("maxZoom");n*e>r||t.zoomTo(e*n)},e.prototype.zoomIn=function(){var t=this.get("graph"),e=t.getZoom(),n=1-$*this.get("zoomSensitivity"),r=this.get("minZoom")||t.get("minZoom");n*e<r||t.zoomTo(e*n)},e.prototype.realZoom=function(){var t=this.get("graph");t.zoomTo(1)},e.prototype.autoZoom=function(){var t=this.get("graph");t.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();break;default:}},e.prototype.destroy=function(){var t=this.get("toolBar");if(t){var e=this.get("container");e||(e=this.get("graph").get("container")),(0,a.isString)(e)&&(e=document.getElementById(e)),e.removeChild(t)}var n=this.get("handleClick");n&&t.removeEventListener("click",n)},e}(u),V=W,Y=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])},t(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&&p()("\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 X=function(t){function e(e){return t.call(this,e)||this}return Y(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=(0,i.Z)("<div class='".concat(e,"'></div>")),r=t.get("container");r||(r=t.get("graph").get("container")),(0,a.isString)(r)&&(r=document.getElementById(r)),(0,o.Z)(n,{position:"absolute",visibility:"hidden",display:"none"}),r.appendChild(n),"click"!==t.get("trigger")&&(n.addEventListener("mouseenter",(function(t){(0,o.Z)(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();var t=this.get("graph");t.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"),i=r(t);(0,a.isString)(i)?n.innerHTML=i:(this.clearContainer(),n.appendChild(i)),this.updatePosition(t)}}},e.prototype.hideTooltip=function(){var t=this.get("tooltip");t&&(0,o.Z)(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"),s=r.get("height"),u=this.get("offsetX")||0,l=this.get("offsetY")||0,c=r.getPointByClient(t.clientX,t.clientY),f=this.get("fixToNode"),h=t.item;if(h.getType&&"node"===h.getType()&&f&&(0,a.isArray)(f)&&f.length>=2){var d=h.getBBox();c={x:d.minX+d.width*f[0],y:d.minY+d.height*f[1]}}var p=r.getCanvasByPoint(c.x,c.y),g=p.x,v=p.y,m=r.getContainer(),y={x:g+m.offsetLeft+u,y:v+m.offsetTop+l};(0,o.Z)(n,{visibility:"visible",display:"unset"});var b=n.getBoundingClientRect();g+b.width+u>i&&(y.x-=b.width+u),v+b.height+l>s&&(y.y-=b.height+l,y.y<0&&(y.y=0)),(0,o.Z)(n,{left:"".concat(y.x,"px"),top:"".concat(y.y,"px")})}else(0,o.Z)(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")),(0,a.isString)(e)&&(e=document.getElementById(e)),e.removeChild(t)}},e}(u),q=X,K="timebarstartplay",J="timebarendplay",Q="valuechange",tt="timebarConfigChanged",et="playPauseBtn",nt="nextStepBtn",rt="preStepBtn",it=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,u=void 0===s?[4,4,4,4]:s,l=t.className,c=void 0===l?"g6-component-timebar-tooltip":l,f=t.backgroundColor,h=void 0===f?"#000":f,d=t.textColor,p=void 0===d?"#fff":d,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=h,this.textColor=p,this.x=n,this.y=i,this.text=a,this.padding=u,this.opacity=v,this.fontSize=y,this.render()}return t.prototype.render=function(){var t=this,e=t.className,n=(t.x,t.y,t.backgroundColor),r=t.textColor,s=t.text,u=t.padding,l=t.opacity,c=t.fontSize,f=t.container,h=(0,i.Z)("<div class='".concat(e,"' style=\"position: absolute; width: fit-content; height: fit-content; opacity: ").concat(l,'"></div>'));(0,a.isString)(f)&&(f=document.getElementById(f)),f.appendChild(h),t.parentHeight=f.offsetHeight,t.parentWidth=f.offsetWidth,(0,o.Z)(h,{visibility:"hidden",top:0,left:0});var d=(0,i.Z)("\n      <div style='position: absolute; white-space:nowrap; background-color: ".concat(n,"; font-size: ").concat(c,"px; border-radius: 4px; width: fit-content; height: fit-content; color: ").concat(r,"; padding: ").concat(u[0],"px ").concat(u[1],"px ").concat(u[2],"px ").concat(u[3],"px'></div>"));d.innerHTML=s,h.appendChild(d),t.backgroundDOM=d;var p=(0,i.Z)("<div style='position: absolute; width: 0px; height: 0px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 10px solid ".concat(n,"'></div>"));h.appendChild(p),t.arrowDOM=p,t.container=h},t.prototype.show=function(t){var e=this,n=t.text,r=t.x;t.y,t.clientX,t.clientY;e.backgroundDOM.innerHTML=n;var i=e.backgroundDOM.offsetWidth,a=e.backgroundDOM.offsetHeight,s=e.arrowDOM.offsetWidth,u=e.arrowDOM.offsetHeight;(0,o.Z)(e.container,{top:"".concat(-a-u,"px"),left:"".concat(r,"px"),visibility:"visible"}),(0,o.Z)(e.backgroundDOM,{marginLeft:"".concat(-i/2,"px")}),(0,o.Z)(e.arrowDOM,{marginLeft:"".concat(-s/2,"px"),top:"".concat(a,"px")});var l=r-i/2,c=r+i/2;l<0?(0,o.Z)(e.backgroundDOM,{marginLeft:"".concat(-i/2-l,"px")}):c>e.parentWidth&&(0,o.Z)(e.backgroundDOM,{marginLeft:"".concat(-i/2-c+e.parentWidth+12,"px")})},t.prototype.hide=function(){(0,o.Z)(this.container,{top:0,left:0,visibility:"hidden"})},t}(),ot=it,at=function(){return at=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},at.apply(this,arguments)},st=function(){function t(t){this.config=(0,a.deepMix)({},t),this.init()}return t.prototype.update=function(t){this.config=(0,a.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,u=void 0===s?0:s,l=this.config.x+a,c=this.config.y+u,f=e.addGroup({name:et});this.startMarkerGroup=f.addGroup({name:et}),this.circle=e.addShape("circle",{attrs:at({x:l,y:c,r:this.config.r*i},n),name:et}),this.startMarker=this.startMarkerGroup.addShape("path",{attrs:{path:this.getStartMarkerPath(l,c,i),fill:n.stroke||"#aaa"},name:"start-marker"}),this.pauseMarkerGroup=f.addGroup({name:et});var h=.25*this.config.r*i,d=.5*this.config.r*Math.sqrt(3)*i;this.pauseLeftMarker=this.pauseMarkerGroup.addShape("rect",{attrs:{x:l-.375*this.config.r*i,y:c-d/2,width:h,height:d,fill:n.stroke||"#aaa",lineWidth:0}}),this.pauseRightMarker=this.pauseMarkerGroup.addShape("rect",{attrs:{x:l+1/8*this.config.r*i,y:c-d/2,width:h,height:d,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,u=this.config.y+a;this.circle.attr("x",s),this.circle.attr("y",u),this.circle.attr("r",this.config.r*n),this.startMarker.attr("path",this.getStartMarkerPath(s,u,n));var l=.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",u-c/2),this.pauseLeftMarker.attr("width",l),this.pauseLeftMarker.attr("height",c),this.pauseRightMarker.attr("x",s+1/8*this.config.r*n),this.pauseRightMarker.attr("y",u-c/2),this.pauseRightMarker.attr("width",l),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}(),ut=st,lt=function(){return lt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},lt.apply(this,arguments)},ct=x.vs,ft="#aaa",ht="green",dt={fill:"#aaa",fillOpacity:.35,stroke:"#aaa"},pt={fill:"#fff"},gt={fill:"green"},vt={pointer:{fill:"#aaa",lineWidth:0},scroller:{stroke:"#aaa",fill:"#aaa",lineWidth:1,lineAppendWidth:5,cursor:"pointer"},text:{fill:"#aaa",textBaseline:"top"}},mt={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"}},yt={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:vt,timeTypeControllerStyle:mt},bt=110,xt=50,_t={SINGLE:"single",RANGE:"range"},wt=function(){function t(t){this.controllerCfg=(0,a.deepMix)({},yt,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||_t.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?ft:a,u=t.stroke,l=void 0===u?ht:u,c=t.containerStyle,f=void 0===c?{}:c,h=lt(lt({},dt),t.playBtnStyle||{}),d=lt(lt({},pt),t.preBtnStyle||{}),p=lt(lt({},gt),t.nextBtnStyle||{}),g=n/2-5,v=i+10,m=this.controllerGroup.addShape("rect",{attrs:lt({x:r,y:v,width:e,height:n,stroke:l,fill:s},f),name:"container-rect"});this.playButton?this.playButton.update({x:e/2,y:v,r:g}):this.playButton=new ut({group:this.controllerGroup,x:e/2,y:v+g+5,r:g,isPlay:this.isPlay,style:h});var y=d.offsetX||0,b=d.offsetY||0,x=(d.scale||1)*g;this.controllerGroup.addShape("path",{attrs:lt({path:this.getPreMarkerPath(e/2-5*g+y,v+g+5+b,.5*x)},d),name:rt});var _=p.offsetX||0,w=p.offsetY||0,S=(p.scale||1)*g;this.controllerGroup.addShape("path",{attrs:lt({path:this.getNextMarkerPath(e/2+5*g+_,v+g+5+w,.5*S)},p),name:nt}),m.toBack(),this.renderSpeedBtn(),o||this.renderToggleTime(),this.bindEvent();var E=this.controllerCfg.scale,T=void 0===E?1:E,k=this.controllerGroup.getCanvasBBox(),C=(k.maxX+k.minX)/2,M=(k.maxY+k.minY)/2,A=ct([1,0,0,0,1,0,0,0,1],[["t",-C,-M],["s",T,T],["t",C,M]]);this.controllerGroup.setMatrix(A)},t.prototype.renderSpeedBtn=function(){var t=this.controllerCfg,e=t.y,n=t.width,r=t.hideTimeTypeController,i=lt(lt({},vt),this.controllerCfg.speedControllerStyle||{}),o=i.scroller,a=void 0===o?{}:o,s=i.text,u=void 0===s?{}:s,l=i.pointer,c=void 0===l?{}:l,f=i.scale,h=void 0===f?1:f,d=i.offsetX,p=void 0===d?0:d,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 x=0;x<5;x++){var _=e+this.speedAxisY[x],w=n-(r?xt:bt);m.addShape("line",{attrs:lt({x1:w,x2:w+15,y1:_,y2:_},a),speed:b,name:"speed-rect"}),this.speedAxisY[x]=_,y.push(b),b-=1}this.speedText=m.addShape("text",{attrs:lt({x:n-(r?xt:bt)+20,y:this.speedAxisY[0]+4,text:"1.0X",fontFamily:this.fontFamily||"Arial, sans-serif"},u),name:"speed-text"}),this.speedPoint=m.addShape("path",{attrs:lt({path:this.getPointerPath(n-(r?xt:bt),0),matrix:[1,0,0,0,1,0,0,this.speedAxisY[4],1]},c),name:"speed-pointer"});var S=this.speedGroup.getCanvasBBox(),E=(S.maxX+S.minX)/2,T=(S.maxY+S.minY)/2,k=this.speedGroup.getMatrix()||[1,0,0,0,1,0,0,0,1];k=ct(k,[["t",-E,-T],["s",h,h],["t",E+p*h,T+v*h]]),this.speedGroup.setMatrix(k)},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=lt(lt({},mt),this.controllerCfg.timeTypeControllerStyle||{}),a=o.scale,s=void 0===a?1:a,u=o.offsetX,l=void 0===u?0:u,c=o.offsetY,f=void 0===c?0:c,h=o.box,d=void 0===h?{}:h,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===_t.SINGLE;this.toggleGroup.addShape("rect",{attrs:lt({x:r-xt,y:this.speedAxisY[0]+3.5},d),isChecked:y,name:"toggle-model"}),this.checkedIcon=this.toggleGroup.addShape("path",{attrs:lt({path:[["M",r-xt+3,this.speedAxisY[1]+6],["L",r-xt+7,this.speedAxisY[1]+10],["L",r-xt+12,this.speedAxisY[1]+4]]},g),capture:!1,name:"check-icon"}),y||this.checkedIcon.hide(),this.checkedText=this.toggleGroup.addShape("text",{attrs:lt({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-xt+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(),x=(b.maxX+b.minX)/2,_=(b.maxY+b.minY)/2,w=this.toggleGroup.getMatrix()||[1,0,0,0,1,0,0,0,1];w=ct(w,[["t",-x,-_],["s",s,s],["t",x+l*s,_+f*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=ct(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(tt,{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=ct(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(tt,{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=_t.RANGE):(t.checkedIcon.show(),t.checkedText.attr("text",(null===(n=t.controllerCfg)||void 0===n?void 0:n.timeRangeControllerText)||"时间范围"),t.currentType=_t.SINGLE),e.target.set("isChecked",!i),t.group.emit(tt,{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}(),St=wt,Et=function(){return Et=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Et.apply(this,arguments)},Tt=x.vs,kt={fill:"#5B8FF9"},Ct={fill:"#e6e8e9"},Mt=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,u=t.start,l=t.end,c=t.x,f=void 0===c?0:c,h=t.y,d=void 0===h?0:h,p=t.tickLabelFormatter,g=t.selectedTickStyle,v=void 0===g?kt:g,m=t.unselectedTickStyle,y=void 0===m?Ct:m,b=t.tooltipBackgroundColor,x=t.tooltipFomatter,_=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=u,this.end=l,this.tickLabelFormatter=p,this.tickLabelStyle=_||{},this.selectedTickStyle=v,this.unselectedTickStyle=y,this.controllerCfg=S,this.currentSpeed=S.speed||1,this.x=f,this.y=d,this.tooltipBackgroundColor=b,this.tooltipFomatter=x,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,s=e.start,u=e.end,l=e.tickLabelFormatter,c=e.selectedTickStyle,f=e.unselectedTickStyle,h=e.tickLabelStyle,d=n-2*i,p=10,g=4,v=3*i+g+p,m=r-v-2*i,y=2,b=o.length,x=(d-y*(b-1))/b;this.tickWidth=x;var _=this.sliceGroup,w=[],S=[],E=Math.round(b*s),T=Math.round(b*u);this.startTickRectId=E,this.endTickRectId=T;var k=h.rotate;delete h.rotate,o.forEach((function(e,r){var o=r>=E&&r<=T,s=o?c:f,u=_.addShape("rect",{attrs:Et({x:i+r*(x+y),y:i,width:x,height:m},s),draggable:!0,name:"tick-rect-".concat(r)}),d=_.addShape("rect",{attrs:{x:i+r*x+y*(2*r-1)/2,y:i,width:0===r||r===b-1?x+y/2:x+y,height:m,fill:"#fff",opacity:0},draggable:!0,name:"pick-rect-".concat(r)});d.toFront();var p,v=u.getBBox(),C=(v.minX+v.maxX)/2;if(w.push({rect:u,pickRect:d,value:e.date,x:C,y:v.minY}),l?(p=l(e),!(0,a.isString)(p)&&p&&(p=e.date)):r%Math.round(b/10)===0&&(p=e.date),p){S.push(p);var M=v.maxY+2*i;_.addShape("line",{attrs:{stroke:"#BFBFBF",x1:C,y1:M,x2:C,y2:M+g},name:"tick-line"});var A=M+g+i,I=_.addShape("text",{attrs:Et({fill:"#8c8c8c",stroke:"#fff",lineWidth:1,x:C,y:A,textAlign:"center",text:p,textBaseline:"top",fontSize:10,fontFamily:t.fontFamily||"Arial, sans-serif"},h),capture:!1,name:"tick-label"}),O=I.getBBox();if(O.maxX>n?I.attr("textAlign","right"):O.minX<0&&I.attr("textAlign","left"),(0,a.isNumber)(k)&&10!==S.length){var D=Tt([1,0,0,0,1,0,0,0,1],[["t",-C,-A],["r",k],["t",C-5,A+2]]);I.attr({textAlign:"left",matrix:D})}1===S.length?I.attr({textAlign:"left"}):10===S.length&&I.attr({textAlign:"right"})}})),this.tickRects=w;var C=this.group;this.currentSpeed=1,this.controllerBtnGroup=new St(Et({group:C,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=i.length,u=r/s;t.graph.emit(Q,{value:[u,u]})}}})),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=n.length,u=o/s;t.graph.emit(Q,{value:[u,u]}),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 u=s>=r&&s<=n?o:a;i[s].rect.attr(u)}var l=i.length;t.endTickRectId=n;var c=r/l,f=n/l;t.graph.emit(Q,{value:[c,f]})}})),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,u=r/a;t.graph.emit(Q,{value:[s,u]})}}}));var n=this,r=n.tooltipBackgroundColor,i=n.tooltipFomatter,o=n.canvas,a=new ot({container:o.get("container"),backgroundColor:r}),s=this.tickRects;s.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),r=o.getClientByPoint(s[n].x,s[n].y);a.show({x:s[n].x,y:s[n].y,clientX:r.x,clientY:r.y,text:i?i(s[n].value):s[n].value})}})),e.on("mouseleave",(function(t){a.hide()}))}));var u=this.group;u.on("".concat(et,":click"),(function(){t.isPlay=!t.isPlay,t.changePlayStatus()})),u.on("".concat(nt,":click"),(function(){t.updateStartEnd(1)})),u.on("".concat(rt,":click"),(function(){t.updateStartEnd(-1)})),u.on(tt,(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(K,null)):this.playHandler&&("undefined"!==typeof window&&window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit(J,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,n=this.tickRects,r=n.length,i=this.unselectedTickStyle,o=this.selectedTickStyle,a=e.endTickRectId;if(t>0?e.endTickRectId++:(n[e.endTickRectId].rect.attr(i),e.endTickRectId--),a!==e.startTickRectId)e.endTickRectId<e.startTickRectId&&(e.startTickRectId=e.endTickRectId);else{for(var s=e.startTickRectId;s<=e.endTickRectId-1;s++)n[s].rect.attr(i);e.startTickRectId=e.endTickRectId}if(n[e.endTickRectId]){n[e.endTickRectId].rect.attr(o);var u=e.startTickRectId/r,l=e.endTickRectId/r;this.graph.emit(Q,{value:[u,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(et,":click")),t.off("".concat(nt,":click")),t.off("".concat(rt,":click")),t.off(tt),this.sliceGroup.destroy()},t}(),At=Mt,It=n(33903),Ot={};function Dt(t){return Ot[t]}function Pt(t,e){Ot[t]=e}var Lt=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){(0,a.assign)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return(0,a.map)(this.ticks,(function(e,n){return(0,a.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(0,a.isNil)(r)||!(0,a.isFunction)(r.toString)?"":r.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){(0,a.assign)(this,this.__cfg__),this.setDomain(),(0,a.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((0,a.isString)(t)){var n=Dt(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else(0,a.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(0,a.isNumber)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),Nt=Lt,Rt=n(97582),jt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return(0,Rt.__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=(0,a.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(0,a.isNumber)(e)&&!this.values.includes(e)&&(i=this.values[i]),t.prototype.getText.apply(this,(0,Rt.__spreadArrays)([i],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if((0,a.isNil)(this.getConfig("min"))&&(this.min=0),(0,a.isNil)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(Nt),Ft=jt,Bt=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,zt="\\d\\d?",Zt="\\d\\d",Ut="\\d{3}",Ht="\\d{4}",$t="[^\\s]+",Gt=/\[([^]*?)\]/gm;function Wt(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var Vt=function(t){return function(e,n){var r=n[t].map((function(t){return t.toLowerCase()})),i=r.indexOf(e.toLowerCase());return i>-1?i:null}};function Yt(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 Xt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],qt=["January","February","March","April","May","June","July","August","September","October","November","December"],Kt=Wt(qt,3),Jt=Wt(Xt,3),Qt={dayNamesShort:Jt,dayNames:Xt,monthNamesShort:Kt,monthNames:qt,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},te=Yt({},Qt),ee=function(t){return te=Yt(te,t)},ne=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},re=function(t,e){void 0===e&&(e=2),t=String(t);while(t.length<e)t="0"+t;return t},ie={D:function(t){return String(t.getDate())},DD:function(t){return re(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return re(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 re(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 re(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return re(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return re(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return re(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return re(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return re(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return re(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return re(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?"-":"+")+re(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+re(Math.floor(Math.abs(e)/60),2)+":"+re(Math.abs(e)%60,2)}},oe=function(t){return+t-1},ae=[null,zt],se=[null,$t],ue=["isPm",$t,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],le=["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}],ce={D:["day",zt],DD:["day",Zt],Do:["day",zt+$t,function(t){return parseInt(t,10)}],M:["month",zt,oe],MM:["month",Zt,oe],YY:["year",Zt,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",zt,void 0,"isPm"],hh:["hour",Zt,void 0,"isPm"],H:["hour",zt],HH:["hour",Zt],m:["minute",zt],mm:["minute",Zt],s:["second",zt],ss:["second",Zt],YYYY:["year",Ht],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",Zt,function(t){return 10*+t}],SSS:["millisecond",Ut],d:ae,dd:ae,ddd:se,dddd:se,MMM:["month",$t,Vt("monthNamesShort")],MMMM:["month",$t,Vt("monthNames")],a:ue,A:ue,ZZ:le,Z:le},fe={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"},he=function(t){return Yt(fe,t)},de=function(t,e,n){if(void 0===e&&(e=fe["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");e=fe[e]||e;var r=[];e=e.replace(Gt,(function(t,e){return r.push(e),"@@@"}));var i=Yt(Yt({},te),n);return e=e.replace(Bt,(function(e){return ie[e](t,i)})),e.replace(/@@@/g,(function(){return r.shift()}))};function pe(t,e,n){if(void 0===n&&(n={}),"string"!==typeof e)throw new Error("Invalid format in fecha parse");if(e=fe[e]||e,t.length>1e3)return null;var r=new Date,i={year:r.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],a=[],s=e.replace(Gt,(function(t,e){return a.push(ne(e)),"@@@"})),u={},l={};s=ne(s).replace(Bt,(function(t){var e=ce[t],n=e[0],r=e[1],i=e[3];if(u[n])throw new Error("Invalid format. "+n+" specified twice in format");return u[n]=!0,i&&(l[i]=!0),o.push(e),"("+r+")"})),Object.keys(l).forEach((function(t){if(!u[t])throw new Error("Invalid format. "+t+" is required in specified format")})),s=s.replace(/@@@/g,(function(){return a.shift()}));var c=t.match(new RegExp(s,"i"));if(!c)return null;for(var f,h=Yt(Yt({},te),n),d=1;d<c.length;d++){var p=o[d-1],g=p[0],v=p[2],m=v?v(c[d],h):+c[d];if(null==m)return null;i[g]=m}if(1===i.isPm&&null!=i.hour&&12!==+i.hour?i.hour=+i.hour+12:0===i.isPm&&12===+i.hour&&(i.hour=0),null==i.timezoneOffset){f=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var y=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],b=(d=0,y.length);d<b;d++)if(u[y[d][0]]&&i[y[d][0]]!==f[y[d][1]]())return null}else if(f=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return f}var ge={format:de,parse:pe,defaultI18n:Qt,setGlobalDateI18n:ee,setGlobalDateMasks:he},ve=ge;function me(t){return function(e,n,r,i){var o=(0,a.isNil)(r)?0:r,s=(0,a.isNil)(i)?e.length:i;while(o<s){var u=o+s>>>1;t(e[u])>n?s=u:o=u+1}return o}}var ye="format";function be(t,e){var n=r[ye]||ve[ye];return n(t,e)}function xe(t){return(0,a.isString)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),(0,a.isDate)(t)&&(t=t.getTime()),t}var _e=1e3,we=60*_e,Se=60*we,Ee=24*Se,Te=31*Ee,ke=365*Ee,Ce=[["HH:mm:ss",_e],["HH:mm:ss",10*_e],["HH:mm:ss",30*_e],["HH:mm",we],["HH:mm",10*we],["HH:mm",30*we],["HH",Se],["HH",6*Se],["HH",12*Se],["YYYY-MM-DD",Ee],["YYYY-MM-DD",4*Ee],["YYYY-WW",7*Ee],["YYYY-MM",Te],["YYYY-MM",4*Te],["YYYY-MM",6*Te],["YYYY",380*Ee]];function Me(t,e,n){var r=(e-t)/n,i=me((function(t){return t[1]}))(Ce,r)-1,o=Ce[i];return i<0?o=Ce[0]:i>=Ce.length&&(o=(0,a.last)(Ce)),o}var Ae=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return(0,Rt.__extends)(e,t),e.prototype.translate=function(t){t=xe(t);var e=this.values.indexOf(t);return-1===e&&(e=(0,a.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):be(r,this.mask),r}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;(0,a.each)(e,(function(t,n){e[n]=xe(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(Ft),Ie=Ae,Oe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return(0,Rt.__extends)(e,t),e.prototype.scale=function(t){if((0,a.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax(),r=this.max,i=this.min;if(r===i)return e;var o=this.getScalePercent(t);return e+o*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=(0,a.head)(e),r=(0,a.last)(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),(0,a.isNil)(this.minLimit)||(this.min=n),(0,a.isNil)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=(0,a.getRange)(this.values),e=t.min,n=t.max;(0,a.isNil)(this.min)&&(this.min=e),(0,a.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=(0,a.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}(Nt),De=Oe,Pe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return(0,Rt.__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}(De),Le=Pe;function Ne(t,e){var n,r=Math.E;return n=e>=0?Math.pow(r,Math.log(e)/t):-1*Math.pow(r,Math.log(-e)/t),n}function Re(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function je(t,e,n){(0,a.isNil)(n)&&(n=Math.max.apply(null,t));var r=n;return(0,a.each)(t,(function(t){t>0&&t<r&&(r=t)})),r===n&&(r=n/e),r>1&&(r=1),r}var Fe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return(0,Rt.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=Re(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,a=this.positiveMin;if(a){if(0===t)return 0;e=Re(n,a/n);var s=1/(r-e)*o;if(t<s)return t/s*a}else e=Re(n,this.min);var u=(t-i)/o,l=u*(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=je(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,i=this.base,o=this.positiveMin;return o&&(n=1*o/i),r=t<o?t/o/(Re(i,e)-Re(i,n)):(Re(i,t)-Re(i,n))/(Re(i,e)-Re(i,n)),r},e}(De),Be=Fe,ze=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return(0,Rt.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=Ne(n,this.max),i=Ne(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,i=(Ne(r,t)-Ne(r,n))/(Ne(r,e)-Ne(r,n));return i},e}(De),Ze=ze,Ue=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return(0,Rt.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):be(n,this.mask)},e.prototype.scale=function(e){var n=e;return((0,a.isString)(n)||(0,a.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return xe(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((0,a.isNil)(e)&&(0,a.isNumber)(e)||(this.min=this.translate(this.min)),(0,a.isNil)(n)&&(0,a.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,o=i,s=0;(0,a.each)(t,(function(t){var e=xe(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");i>e?(o=i,i=e):o>e&&(o=e),s<e&&(s=e),r.push(e)})),t.length>1&&(this.minTickInterval=o-i),(0,a.isNil)(e)&&(this.min=i),(0,a.isNil)(n)&&(this.max=s)}},e}(Le),He=Ue,$e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return(0,Rt.__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(0,a.last)(e);if(i<0)return(0,a.head)(e);var o=e[i],s=e[i+1],u=i/(n-1),l=(i+1)/(n-1);return o+(r-u)/(l-u)*(s-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||((0,a.last)(e)!==this.max&&e.push(this.max),(0,a.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<(0,a.head)(e))return 0;if(t>(0,a.last)(e))return 1;var n=0;return(0,a.each)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(De),Ge=$e,We=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return(0,Rt.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(Ge),Ve=We,Ye={};function Xe(t){return Ye[t]}function qe(t,e){if(Xe(t))throw new Error("type '"+t+"' existed.");Ye[t]=e}var Ke=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return(0,Rt.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&(0,a.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}(Nt),Je=Ke;function Qe(t){var e=t.values,n=t.tickInterval,r=t.tickCount,i=t.showLast;if((0,a.isNumber)(n)){var o=(0,a.filter)(e,(function(t,e){return e%n===0})),s=(0,a.last)(e);return i&&(0,a.last)(o)!==s&&o.push(s),o}var u=e.length,l=t.min,c=t.max;if((0,a.isNil)(l)&&(l=0),(0,a.isNil)(c)&&(c=e.length-1),!(0,a.isNumber)(r)||r>=u)return e.slice(l,c+1);if(r<=0||c<=0)return[];for(var f=1===r?u:Math.floor(u/(r-1)),h=[],d=l,p=0;p<r;p++){if(d>=c)break;d=Math.min(l+p*f,c),p===r-1&&i?h.push(e[c]):h.push(e[d])}return h}function tn(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,o=new an;return o.domain([e,n]),r&&o.nice(i),o.ticks(i)}var en=5,nn=Math.sqrt(50),rn=Math.sqrt(10),on=Math.sqrt(2),an=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=en);var r,i=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],u=this._domain[a];return u<s&&(e=[u,s],s=e[0],u=e[1],n=[a,o],o=n[0],a=n[1]),r=un(s,u,t),r>0?(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,r=un(s,u,t)):r<0&&(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,r=un(s,u,t)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=en),sn(this._domain[0],this._domain[this._domain.length-1],t||en)},t}();function sn(t,e,n){var r,i,o,a,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=un(t,e,n))||!isFinite(a))return[];if(a>0){t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));while(++s<i)o[s]=(t+s)*a}else{t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));while(++s<i)o[s]=(t-s)/a}return r&&o.reverse(),o}function un(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>=nn?10:o>=rn?5:o>=on?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=nn?10:o>=rn?5:o>=on?2:1)}function ln(t,e,n){var r;return r="ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e),r*e}function cn(t,e,n){var r=ln(t,n,"floor"),i=ln(e,n,"ceil");r=(0,a.fixedBase)(r,n),i=(0,a.fixedBase)(i,n);for(var o=[],s=Math.max((i-r)/(Math.pow(2,12)-1),n),u=r;u<=i;u+=s){var l=(0,a.fixedBase)(u,s);o.push(l)}return{min:r,max:i,ticks:o}}function fn(t,e,n){var r,i=t.minLimit,o=t.maxLimit,s=t.min,u=t.max,l=t.tickCount,c=void 0===l?5:l,f=(0,a.isNil)(i)?(0,a.isNil)(e)?s:e:i,h=(0,a.isNil)(o)?(0,a.isNil)(n)?u:n:o;if(f>h&&(r=[f,h],h=r[0],f=r[1]),c<=2)return[f,h];for(var d=(h-f)/(c-1),p=[],g=0;g<c;g++)p.push(f+d*g);return p}function hn(t){var e=t.min,n=t.max,r=t.tickInterval,i=t.minLimit,o=t.maxLimit,s=tn(t);return(0,a.isNil)(i)&&(0,a.isNil)(o)?r?cn(e,n,r).ticks:s:fn(t,(0,a.head)(s),(0,a.last)(s))}var dn=n(15326),pn=[1,5,2,2.5,4,3],gn=100*Number.EPSILON;function vn(t,e){return(t%e+e)%e}function mn(t){return Math.round(1e12*t)/1e12}function yn(t,e,n,r,i,o){var s=(0,a.size)(e),u=(0,a.indexOf)(e,t),l=0,c=vn(r,o);return(c<gn||o-c<gn)&&r<=0&&i>=0&&(l=1),1-u/(s-1)-n+l}function bn(t,e,n){var r=(0,a.size)(e),i=(0,a.indexOf)(e,t),o=1;return 1-i/(r-1)-n+o}function xn(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 _n(t,e){return t>=e?2-(t-1)/(e-1):1}function wn(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 Sn(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 En(){return 1}function Tn(t,e,n,r,i,o){void 0===n&&(n=5),void 0===r&&(r=!0),void 0===i&&(i=pn),void 0===o&&(o=[.25,.2,.5,.05]);var s=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!==typeof t||"number"!==typeof e||!s)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===s)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var u=n||5,l=(e-t)/u;return{min:t,max:e,ticks:Array(u).fill(null).map((function(e,n){return(0,dn.C)(t+l*n)}))}}var c={score:-2,lmin:0,lmax:0,lstep:0},f=1;while(f<1/0){for(var h=0;h<i.length;h+=1){var d=i[h],p=bn(d,i,f);if(o[0]*p+o[1]+o[2]+o[3]<c.score){f=1/0;break}var g=2;while(g<1/0){var v=_n(g,s);if(o[0]*p+o[1]+o[2]*v+o[3]<c.score)break;var m=(e-t)/(g+1)/f/d,y=Math.ceil(Math.log10(m));while(y<1/0){var b=f*d*Math.pow(10,y),x=Sn(t,e,b*(g-1));if(o[0]*p+o[1]*x+o[2]*v+o[3]<c.score)break;var _=Math.floor(e/b)*f-(g-1)*f,w=Math.ceil(t/b)*f;if(_<=w){u=w-_;for(var S=0;S<=u;S+=1){var E=_+S,T=E*(b/f),k=T+b*(g-1),C=b,M=yn(d,i,f,T,k,C),A=wn(t,e,T,k),I=xn(g,s,t,e,T,k),O=En(),D=o[0]*M+o[1]*A+o[2]*I+o[3]*O;D>c.score&&(!r||T<=t&&k>=e)&&(c.lmin=T,c.lmax=k,c.lstep=C,c.score=D)}}y+=1}g+=1}}f+=1}var P=(0,dn.C)(c.lmax),L=(0,dn.C)(c.lmin),N=(0,dn.C)(c.lstep),R=Math.floor(mn((P-L)/N))+1,j=new Array(R);j[0]=(0,dn.C)(L);for(h=1;h<R;h++)j[h]=(0,dn.C)(j[h-1]+N);return{min:Math.min(t,(0,a.head)(j)),max:Math.max(e,(0,a.last)(j)),ticks:j}}function kn(t){var e=t.min,n=t.max,r=t.tickCount,i=t.nice,o=t.tickInterval,s=t.minLimit,u=t.maxLimit,l=Tn(e,n,r,i).ticks;return(0,a.isNil)(s)&&(0,a.isNil)(u)?o?cn(e,n,o).ticks:l:fn(t,(0,a.head)(l),(0,a.last)(l))}function Cn(t){var e,n=t.base,r=t.tickCount,i=t.min,o=t.max,a=t.values,s=Re(n,o);if(i>0)e=Math.floor(Re(n,i));else{var u=je(a,n,o);e=Math.floor(Re(n,u))}for(var l=s-e,c=Math.ceil(l/r),f=[],h=e;h<s+c;h+=c)f.push(Math.pow(n,h));return i<=0&&f.unshift(0),f}var Mn=n(74440);function An(t){var e=t.exponent,n=t.tickCount,r=Math.ceil(Ne(e,t.max)),i=Math.floor(Ne(e,t.min)),o=(0,Mn.Z)(i,r,n).ticks;return o.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))}function In(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 On(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(In(r,a))}return i}function Dn(t){var e=t.min,n=t.max,r=t.tickCount,i=t.tickInterval,o=t.minLimit,s=t.maxLimit,u=(0,Mn.Z)(e,n,r).ticks;return(0,a.isNil)(o)&&(0,a.isNil)(s)?i?cn(e,n,i).ticks:u:fn(t,(0,a.head)(u),(0,a.last)(u))}function Pn(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{i=Me(e,n,o)[1];var a=(n-e)/i,s=a/o;s>1&&(i*=Math.ceil(s)),r&&i<r&&(i=r)}i=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),i);for(var u=[],l=e;l<n+i;l+=i)u.push(l);return u}function Ln(t){var e=Qe((0,Rt.__assign)({showLast:!0},t));return e}function Nn(t){return new Date(t).getFullYear()}function Rn(t){return new Date(t,0,1).getTime()}function jn(t){return new Date(t).getMonth()}function Fn(t,e){var n=Nn(t),r=Nn(e),i=jn(t),o=jn(e);return 12*(r-n)+(o-i)%12}function Bn(t,e){return new Date(t,e,1).getTime()}function zn(t,e){return Math.ceil((e-t)/Ee)}function Zn(t,e){return Math.ceil((e-t)/Se)}function Un(t,e){return Math.ceil((e-t)/6e4)}function Hn(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=Nn(e);if(o>ke)for(var u=Nn(n),l=Math.ceil(o/ke),c=s;c<=u+l;c+=l)a.push(Rn(c));else if(o>Te){var f=Math.ceil(o/Te),h=jn(e),d=Fn(e,n);for(c=0;c<=d+f;c+=f)a.push(Bn(s,c+h))}else if(o>Ee){var p=new Date(e),g=p.getFullYear(),v=p.getMonth(),m=p.getDate(),y=Math.ceil(o/Ee),b=zn(e,n);for(c=0;c<b+y;c+=y)a.push(new Date(g,v,m+c).getTime())}else if(o>Se){p=new Date(e),g=p.getFullYear(),v=p.getMonth(),y=p.getDate();var x=p.getHours(),_=Math.ceil(o/Se),w=Zn(e,n);for(c=0;c<=w+_;c+=_)a.push(new Date(g,v,y,x+c).getTime())}else if(o>we){var S=Un(e,n),E=Math.ceil(o/we);for(c=0;c<=S+E;c+=E)a.push(e+c*we)}else{var T=o;T<_e&&(T=_e);var k=Math.floor(e/_e)*_e,C=Math.ceil((n-e)/_e),M=Math.ceil(T/_e);for(c=0;c<C+M;c+=M)a.push(k+c*_e)}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}Pt("cat",Qe),Pt("time-cat",Ln),Pt("wilkinson-extended",kn),Pt("r-pretty",Dn),Pt("time",Pn),Pt("time-pretty",Hn),Pt("log",Cn),Pt("pow",An),Pt("quantile",On),Pt("d3-linear",hn),qe("cat",Ft),qe("category",Ft),qe("identity",Je),qe("linear",Le),qe("log",Be),qe("pow",Ze),qe("time",He),qe("timeCat",Ie),qe("quantize",Ge),qe("quantile",Ve);var $n=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 Gn(t){return(0,a.map)(t,(function(t,e){var n=0===e?"M":"L",r=t[0],i=t[1];return[n,r,i]}))}function Wn(t){return Gn(t)}function Vn(t){if(t.length<=2)return Wn(t);var e=[];(0,a.each)(t,(function(t){(0,a.isEqual)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=It.e9(e,!1),r=(0,a.head)(t),i=r[0],o=r[1];return n.unshift(["M",i,o]),n}function Yn(t,e,n,r){void 0===r&&(r=!0);var i=new Le({values:t}),o=new Ft({values:(0,a.map)(t,(function(t,e){return e}))}),s=(0,a.map)(t,(function(t,r){return[o.scale(r)*e,n-i.scale(t)*n]}));return r?Vn(s):Wn(s)}function Xn(t,e,n,r){void 0===r&&(r=5);for(var i=new Le({values:t}),o=new Ft({values:(0,a.map)(t,(function(t,e){return e}))}),s=(0,a.map)(t,(function(t,r){return[o.scale(r)*e,n-i.scale(t)*n]})),u=[],l=0;l<s.length;l++){var c=s[l],f={x:c[0],y:c[1],y0:n,size:r},h=Jn(f);u.push.apply(u,h)}return Qn(u)}function qn(t,e){var n=new Le({values:t}),r=Math.max(0,n.min);return e-n.scale(r)*e}function Kn(t,e,n,r){var i=$n([],t,!0),o=qn(r,n);return i.push(["L",e,o]),i.push(["L",0,o]),i.push(["Z"]),i}function Jn(t){var e,n,r,i,o=t.x,s=t.y,u=t.y0,l=t.size;(0,a.isArray)(s)?(e=s[0],n=s[1]):(e=u,n=s),(0,a.isArray)(o)?(r=o[0],i=o[1]):(r=o-l/2,i=o+l/2);var c=[{x:r,y:e},{x:r,y:n}];return c.push({x:i,y:n},{x:i,y:e}),c}function Qn(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}var tr=function(){return tr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},tr.apply(this,arguments)},er={stroke:"#C5C5C5",strokeOpacity:.85},nr={fill:"#CACED4",opacity:.85},rr=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,u=void 0===s?26:s,l=t.smooth,c=void 0===l||l,f=t.isArea,h=void 0!==f&&f,d=t.data,p=void 0===d?[]:d,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=u,this.data=p,this.smooth=c,this.isArea=h,this.lineStyle=Object.assign({},er,g),this.areaStyle=Object.assign({},nr,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,u=t.lineStyle,l=t.areaStyle,c=this.group.addGroup({name:"trend-group"});if(o){var f=Yn(o,r,i,a);if(c.addShape("path",{attrs:tr({path:f},u),name:"trend-line"}),s){var h=Kn(f,r,i,o);c.addShape("path",{attrs:tr({path:h},l),name:"trend-area"})}}this.intervalConfig&&c.addShape("path",{attrs:tr({path:Xn(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}(),ir=rr,or=function(){return or=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},or.apply(this,arguments)},ar={fill:"#1890ff",stroke:"#1890ff",type:"trend",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#0050b3"},sr={fill:"#fff",stroke:"#1890ff",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#0050b3"},ur=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,u=t.width,l=void 0===u?2:u,c=t.height,f=void 0===c?24:c,h=t.style,d=void 0===h?{}:h;this.group=e,this.name=n,this.handleType=r,this.x=o,this.y=s,this.width=l,this.height=f,"trend"===r?this.style=or(or({},ar),d):"simple"===r&&(this.style=or(or({},sr),d)),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){(0,a.isNumber)(t)&&(this.x=t),(0,a.isNumber)(e)&&(this.y=e),this.updateXY()},t.prototype.renderHandle=function(){var t=this,e=t.width,n=t.height,r=t.style,i=t.name,o=r.fill,a=r.stroke,s=r.radius,u=r.opacity,l=r.cursor;this.handleGroup=this.group.addGroup(),"trend"===this.handleType?(this.verticalLine=this.handleGroup.addShape("rect",{attrs:{x:0,y:0,width:e,height:n,fill:o,stroke:a,radius:s,opacity:u,cursor:l},name:"".concat(i,"-handler")}),this.topCircle=this.handleGroup.addShape("circle",{attrs:{x:e/2,y:0,r:2*e,fill:o,stroke:a,radius:s,opacity:u,cursor:l,lineAppendWidth:12},name:"".concat(i,"-handler")}),this.bottomCircle=this.handleGroup.addShape("circle",{attrs:{x:e/2,y:n,r:2*e,fill:o,stroke:a,radius:s,opacity:u,cursor:l},name:"".concat(i,"-handler")})):"simple"===this.handleType&&(this.topCircle=this.handleGroup.addShape("circle",{attrs:{x:e/2,y:n/2,r:2*e,fill:o,stroke:a,radius:s,opacity:u,cursor:l,lineWidth:2},name:"".concat(i,"-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}(),lr=ur,cr=function(){return cr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},cr.apply(this,arguments)},fr=x.vs,hr={fill:"#416180",opacity:.05},dr={fill:"#416180",opacity:.15,radius:5},pr={fill:"#5B8FF9",opacity:.3,cursor:"grab"},gr=2,vr={width:gr,height:24},mr={textBaseline:"middle",fill:"#000",opacity:.45},yr={textAlign:"center",textBaseline:"top",fill:"#607889",opacity:.35},br={lineWidth:1,stroke:"#ccc"},xr=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=(0,a.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=(0,a.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,s=t.width,u=void 0===s?100:s,l=t.height,c=t.padding,f=void 0===c?10:c,h=t.trendCfg,d=t.controllerCfg,p=void 0===d?{speed:1}:d,g=t.backgroundStyle,v=void 0===g?{}:g,m=t.foregroundStyle,y=void 0===m?{}:m,b=t.handlerStyle,x=void 0===b?{}:b,_=t.textStyle,w=void 0===_?{}:_,S=t.start,E=void 0===S?0:S,T=t.end,k=void 0===T?1:T,C=t.minText,M=void 0===C?"":C,A=t.maxText,I=void 0===A?"":A,O=t.group,D=t.graph,P=t.canvas,L=t.tick,N=void 0===L?{tickLabelStyle:{},tickLineStyle:{},tickLabelFormatter:function(t){return t},ticks:[]}:L,R=t.type;this.graph=D,this.canvas=P,this.group=O,this.timeBarType=R,this.x=r,this.y=o,this.width=u,this.height=l,this.padding=f,this.ticks=N.ticks,this.trendCfg=h,this.controllerCfg=p,this.currentSpeed=p.speed||1,this.tickLabelFormatter=N.tickLabelFormatter,"trend"===R?this.backgroundStyle=cr(cr({},hr),v):"simple"===R&&(this.backgroundStyle=cr(cr({},dr),v)),this.foregroundStyle=cr(cr({},pr),y),this.handlerStyle=cr(cr({},vr),x),this.textStyle=cr(cr({},mr),w),this.tickLabelStyle=cr(cr({},yr),N.tickLabelStyle),this.tickLineStyle=cr(cr({},br),N.tickLineStyle),this.currentMode=p.defaultTimeType||_t.RANGE,this.start=E,this.end=k,this.minText=M,this.maxText=I,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,s=t.maxText,u=t.start,l=t.end;this.start=Math.min(1,Math.max(u,0)),this.end=Math.min(1,Math.max(l,0)),(0,a.assign)(this,{x:e,y:n,width:r,height:i,minText:o,maxText:s}),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,n=e.width,r=e.height,i=e.timeBarType;if("trend"===i&&(0,a.size)((0,a.get)(this.trendCfg,"data"))){var o=new ir(cr(cr({x:this.x,y:this.y,width:n,height:r},this.trendCfg),{group:this.group}));this.trendComponent=o}var s=this.group.addGroup({name:"slider-group"});s.addShape("rect",{attrs:cr({x:0,y:0,width:n,height:r},this.backgroundStyle),name:"background"});var u=this.group.addGroup();"trend"===i?(this.minTextShape=u.addShape("text",{attrs:cr({x:0,y:r/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=u.addShape("text",{attrs:cr({y:r/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=u.addShape("text",{attrs:cr({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=u.addShape("text",{attrs:cr({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:cr({x:0,y:this.y,height:r},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 l=(0,a.get)(this.handlerStyle,"width",2),c=(0,a.get)(this.handlerStyle,"height",24),f=this.group.addGroup({name:"minHandlerShape"});this.minHandlerShape=new lr({name:"minHandlerShape",group:f,type:i,x:this.x,y:this.y,width:l,height:c,style:this.handlerStyle});var h=this.group.addGroup({name:"maxHandlerShape"});this.maxHandlerShape=new lr({name:"maxHandlerShape",group:h,type:i,x:this.x,y:this.y,width:l,height:c,style:this.handlerStyle});var d=this.ticks,p=n/(d.length-1);this.tickPosList=[],this.textList&&this.textList.length&&this.textList.forEach((function(t){t.destroy()}));var g=-1/0,v=this.tickLabelStyle.rotate;delete this.tickLabelStyle.rotate,this.textList=d.map((function(e,n){var i;t.tickPosList.push(t.x+n*p),t.tickLabelFormatter?(i=t.tickLabelFormatter(e),!(0,a.isString)(i)&&i&&(i=e.date)):i=e.date;var o=t.x+n*p,s=t.y+r+5,u=t.group.addShape("text",{attrs:cr({x:o,y:s,text:i,fontFamily:t.fontFamily||"Arial, sans-serif"},t.tickLabelStyle),name:"tick-label"});if((0,a.isNumber)(v)&&n!==d.length-1){var l=fr([1,0,0,0,1,0,0,0,1],[["t",-o,-s],["r",v],["t",o-5,s+2]]);u.attr({textAlign:"left",matrix:l})}0===n?u.attr({textAlign:"left"}):n!==d.length-1&&u.attr({textAlign:"right"});var c=t.group.addShape("line",{attrs:cr({x1:t.x+n*p,y1:t.y+r+2,x2:t.x+n*p,y2:t.y+r+6},t.tickLineStyle),name:"tick-line"});c.toBack();var f=u.getBBox();return f.minX>g?(u.show(),c.show(),g=f.minX+f.width+10):(u.hide(),c.hide()),u})),this.controllerBtnGroup=new St(cr({group:this.group,x:this.x,y:this.y+r+25,width:n,height:35},this.controllerCfg)),this.updateStartEnd(0),this.updateUI(),s.move(this.x,this.y),this.bindEvents(),this.currentMode===_t.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(et,":click"),(function(){t.isPlay=!t.isPlay,t.currentHandler=t.maxHandlerShape,t.changePlayStatus()})),this.group.on("".concat(nt,":click"),(function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(.01),t.updateUI()})),this.group.on("".concat(rt,":click"),(function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(-.01),t.updateUI()})),this.group.on(tt,(function(e){var n=e.type,r=e.speed;t.currentSpeed=r,t.currentMode=n,n===_t.SINGLE?(t.minHandlerShape.hide(),t.foregroundShape.hide(),t.minTextShape.hide()):n===_t.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;break;default:break}},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=(0,a.get)(this.handlerStyle,"width",gr);this.setText(this.minText,this.maxText);var i=this.dodgeText([e,n]),o=i[0],s=i[1];this.minHandlerShape.setX(e-r/2),(0,a.each)(o,(function(e,n){return t.minTextShape.attr(n,e)})),this.maxHandlerShape.setX(n-r/2),(0,a.each)(s,(function(e,n){return t.maxTextShape.attr(n,e)})),this.currentMode===_t.RANGE?this.graph.emit(Q,{value:[this.start,this.end].sort()}):this.currentMode===_t.SINGLE&&this.graph.emit(Q,{value:[this.end,this.end]})},t.prototype.dodgeText=function(t){var e,n,r=2,i=(0,a.get)(this.handlerStyle,"width",gr),o=this.minTextShape,s=this.maxTextShape,u=t[0],l=t[1],c=!1;u>l&&(e=[l,u],u=e[0],l=e[1],n=[s,o],o=n[0],s=n[1],c=!0);var f=o.getBBox(),h=s.getBBox(),d=null,p=null;return"trend"===this.timeBarType?(d=u-f.width<this.x+r?{x:u+i/2+r,textAlign:"left"}:{x:u-i/2-r,textAlign:"right"},p=l+h.width>this.x+this.width?{x:l-i/2-r,textAlign:"right"}:{x:l+i/2+r,textAlign:"left"}):"simple"===this.timeBarType&&(d=o.attr("x")>f.width?{x:u,textAlign:"center"}:{x:u,textAlign:"left"},p=s.attr("x")>this.width-h.width?{x:l,textAlign:"right"}:{x:l,textAlign:"center"}),c?[p,d]:[d,p]},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,a=o/(1e3*(10-i)/60),s=t.adjustOffsetRange(a/t.width);t.updateStartEnd(s),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(K,null)):this.playHandler&&("undefined"!==typeof window&&window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit(J,null))},t.prototype.destory=function(){this.graph.off(Q,(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(et,":click")),t.off("".concat(nt,":click")),t.off("".concat(rt,":click")),t.off(tt),t.destroy(),this.trendComponent&&this.trendComponent.destory()},t}(),_r=xr,wr=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])},t(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)}}(),Sr=function(){return Sr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Sr.apply(this,arguments)},Er=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},Tr=4,kr=26,Cr=function(t){function e(e){var n=t.call(this,e)||this;return n.afterrenderListener=function(t){return n.filterData({})},n.valueChangeListener=(0,a.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 wr(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,s=r.width,u=r.height,l=r.putInGraphContainer,c=this.get("className")||"g6-component-timebar",f=this.get("container");if(f?((0,a.isString)(f)&&(f=document.getElementById(f)),t=f):(t=(0,i.Z)("<div class='".concat(c,"'></div>")),(0,o.Z)(t,{position:"relative"})),l){var h=this.get("graph").get("container");h.appendChild(t)}this.set("timeBarContainer",t);var d=n.get("renderer");e="SVG"===d?new b.Canvas({container:t,width:s,height:u}):new y.Canvas({container:t,width:s,height:u}),this.get("containerCSS")&&(0,o.Z)(t,this.get("containerCSS")),this.set("canvas",e)},e.prototype.init=function(){this.initContainer();var t=this.get("canvas"),e=t.addGroup({name:"timebar-group"});this.set("timeBarGroup",e),this.renderTrend(),this.initEvent();var n="undefined"!==typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif";this.set("fontFamily",n)},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,u=e.slider,l=e.controllerCfg,c=e.textStyle,f=e.tick,h=e.backgroundStyle,d=e.foregroundStyle,p=s.data,g=Er(s,["data"]),v=n-2*o,m="trend"===a?kr:Tr,y=this.get("graph"),b=this.get("timeBarGroup"),x=this.get("canvas"),_=null;if("trend"===a||"simple"===a){var w=this.get("getValue");_=new _r(Sr(Sr({graph:y,canvas:x,group:b,type:a,x:r+o,y:"trend"===a?i+o:i+o+15,width:v,height:m,padding:o,backgroundStyle:h,foregroundStyle:d,trendCfg:Sr(Sr({},g),{data:p.map((function(t){return(null===w||void 0===w?void 0:w(t))||t.value}))})},u),{tick:{ticks:p,tickLabelFormatter:f.tickLabelFormatter,tickLabelStyle:f.tickLabelStyle,tickLineStyle:f.tickLineStyle},handlerStyle:Sr(Sr({},u.handlerStyle),{height:u.height||m}),controllerCfg:l,textStyle:c}))}else"tick"===a&&(_=new At(Sr({graph:y,canvas:x,group:b,x:r+o,y:i+o,width:n,height:42,padding:2,controllerCfg:l},f)));var S=function e(){var n=t.get("timebar");n.draggingHandler=!1,n.isPlay&&(n.isPlay=!1,n.currentHandler=n.maxHandlerShape,n.changePlayStatus()),document.removeEventListener("mouseup",e)};x.on("mousedown",(function(t){"maxHandlerShape-handler"!==t.target.get("name")&&"minHandlerShape-handler"!==t.target.get("name")&&t.target!==_.foregroundShape||document.addEventListener("mouseup",S)})),this.set("timebar",_)},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"),u=Math.round(i.length*n[0]),l=Math.round(i.length*n[1]);l=l>=i.length?i.length-1:l,u=u>=i.length?i.length-1:u;var c=null===(e=this._cfgs.tick)||void 0===e?void 0:e.tickLabelFormatter,f=c?c(i[u]):i[u].date,h=c?c(i[l]):i[l].date;if("tick"!==o){var d=this.get("timebar");d.setText(f,h)}if(a)a(s,f,h);else{(!this.cacheGraphData||this.cacheGraphData.nodes&&0===this.cacheGraphData.nodes.length)&&(this.cacheGraphData=s.get("data"));var p=this.get("filterItemTypes"),g=this.get("changeData"),v=this.get("getDate"),m=this.get("shouldIgnore"),y=i[u].date,b=i[l].date;if(g||void 0===g){var x=this.cacheGraphData.nodes,_=this.cacheGraphData.edges,w={},S={};s.getNodes().forEach((function(t){return w[t.getID()]=!0})),s.getEdges().forEach((function(t){return S[t.getID()]=!0})),p.includes("node")&&(null===x||void 0===x||x.forEach((function(t){var e=+((null===v||void 0===v?void 0:v(t))||t.date),n=e>=y&&e<=b||(null===m||void 0===m?void 0:m("node",t,{min:y,max:b})),r=w[t.id];r&&!n?(s.removeItem(t.id),w[t.id]=!1):!r&&n&&(s.addItem("node",t),w[t.id]=!0)})),null===_||void 0===_||_.forEach((function(t){var e=w[t.source]&&w[t.target]||(null===m||void 0===m?void 0:m("edge",t,{min:y,max:b})),n=!!s.findById(t.id);n&&!e?(s.removeItem(t.id),S[t.id]=!1):!n&&e?(s.addItem("edge",t),S[t.id]=!0):n||(S[t.id]=!1)}))),(this.get("filterEdge")||p.includes("edge"))&&(null===_||void 0===_||_.filter((function(t){var e=+((null===v||void 0===v?void 0:v(t))||t.date),n=e>=y&&e<=b||(null===m||void 0===m?void 0:m("edge",t,{min:y,max:b})),r=w[t.source]&&w[t.target],i=n&&r,o=S[t.id];o&&!i?(S[t.id]=!1,s.removeItem(t.id)):!o&&i&&(S[t.id]=!0,s.addItem("edge",t))})))}else p.includes("node")&&s.getNodes().forEach((function(t){var e=t.getModel();if(!(null===m||void 0===m?void 0:m("node",e,{min:y,max:b}))){var n=+((null===v||void 0===v?void 0:v(e))||e.date);n<y||n>b?s.hideItem(t):s.showItem(t)}})),(this.get("filterEdge")||p.includes("edge"))&&s.getEdges().forEach((function(t){var e=t.getModel();if(!(null===m||void 0===m?void 0:m("edge",e,{min:i[u].date,max:i[l].date}))){var n=+((null===v||void 0===v?void 0:v(e))||e.date);if(n<i[u].date||n>i[l].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(Q,this.valueChangeListener)},e.prototype.destroy=function(){var e=this.get("graph");e.off("afterchangedata",this.changeData),e.off("afterrender",this.afterrenderListener),e.off(Q,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")),(0,a.isString)(i)&&(i=document.getElementById(i)),i===r&&(i=i.parentElement),i.removeChild(r)}},e}(u),Mr=Cr,Ar=n(86140),Ir=n(35600),Or=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])},t(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)}}(),Dr=Ar.Zr.applyMatrix;function Pr(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]}var Lr=function(t){function e(e){return t.call(this,e)||this}return Or(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");(0,a.isString)(r)&&(r=document.getElementById(r));var s=(0,i.Z)("<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>")),u=0,l=0,c=!1,f=0,h=0,d=0,p=0,g=0,v=0;r.addEventListener("mousedown",(function(r){if(e.refresh=!1,r.target===s){var i=s.style;d=parseInt(i.width,10),p=parseInt(i.height,10);var o=t.get("width"),a=t.get("height");d>o||p>a||(v=n.getZoom(),g=t.get("ratio"),c=!0,u=r.clientX,l=r.clientY)}}),!1),r.addEventListener("mousemove",(function(e){if(c&&!(0,a.isNil)(e.clientX)&&!(0,a.isNil)(e.clientY)){var r=t.get("width"),i=t.get("height"),m=s.style;f=parseInt(m.left,10),h=parseInt(m.top,10),d=parseInt(m.width,10),p=parseInt(m.height,10);var y=u-e.clientX,b=l-e.clientY;f-y<0?y=f:f-y+d>=r&&(y=0),h-b<0?b=h:h-b+p>=i&&(b=0),f-=y,h-=b,(0,o.Z)(s,{left:"".concat(f,"px"),top:"".concat(h,"px")}),n.translate(y*v/g,b*v/g),u=e.clientX,l=e.clientY}}),!1),r.addEventListener("mouseleave",(function(){c=!1,e.refresh=!0}),!1),r.addEventListener("mouseup",(function(){c=!1,e.refresh=!0}),!1),this.set("viewport",s),r.appendChild(s)}},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"),a=r.get("height"),s=i/a,u=r.getGroup(),l=u.getCanvasBBox(),c=[(l.minX+l.maxX)/2,(l.minY+l.maxY)/2],f=[l.maxX-l.minX,l.maxY-l.minY],h={centerX:c[0],centerY:c[1],width:0,height:0,minX:0,minY:0};l[0]/l[1]>s?(h.width=f[0],h.height=h.width/s):(h.height=f[1],h.width=h.height*s),h.minX=c[0]-h.width/2,h.minY=c[1]-h.height/2;var d=u.getMatrix();d||(d=[1,0,0,0,1,0,0,0,1]);var p=Ir.invert([1,0,0,0,1,0,0,0,1],d),g=Dr({x:h.minX,y:h.minY},p),v=r.getCanvasByPoint(g.x,g.y),m=this.get("viewport");m||this.initViewport();var y=i/h.width,b=y*e,x=y*n,_=e*-v.x/h.width,w=n*-v.y/h.height,S=_+b,E=w+x;_<0&&(b+=_,_=0),S>e&&(b-=S-e),w<0&&(x+=w,w=0),E>n&&(x-=E-n),this.set("ratio",t);var T="".concat(_,"px"),k="".concat(w,"px");(0,o.Z)(m,{left:T,top:k,width:"".concat(b,"px"),height:"".concat(x,"px")})}},e.prototype.init=function(){this.initContainer()},e.prototype.initContainer=function(){var t=this,e=t.get("graph"),n=e.get("width"),r=e.get("height"),o=r/n,s=t.get("className"),u=t.get("container"),l=t.get("width"),c=t.get("height");l||c||(l=200),l?(c=o*l,t.set("height",c)):(l=1/o*c,t.set("width",l));var f=(0,i.Z)("<div class='".concat(s,"' style='width: ").concat(l,"px; height: ").concat(c,"px; overflow: hidden; position: relative;'></div>"));(0,a.isString)(u)&&(u=document.getElementById(u)),u?u.appendChild(f):e.get("container").appendChild(f),t.set("container",f);var h=(0,i.Z)('<div class="g6-minimap-container" style="position: relative; width: 100%; height: 100%; text-align: center; display: table;"></div>');f.appendChild(h);var d=(0,i.Z)('<span style="display: table-cell; vertical-align: middle; "></span>');h.appendChild(d),t.set("containerDOM",h),t.set("containerSpan",d);var p=(0,i.Z)('<img alt="" src="'.concat(this.get("graphImg"),'" style="display: inline-block; user-select: none;" draggable="false" />'));t.set("imgDOM",p),t.updateImgSize(),d.appendChild(p),t.updateCanvas()},e.prototype.updateImgSize=function(){var t=this,e=t.get("imgDOM"),n=t.get("width"),r=t.get("height");e.onload=function(){var t=Pr(e);t[0]>t[1]?e.width=n:e.height=r}},e.prototype.updateCanvas=function(){var t=this.get("refresh");if(t){var e=this.get("graph");if(!e.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var n=this.get("width"),r=e.get("canvas").getCanvasBBox(),i=r.width,o=n/i;this.set("ratio",o),this.updateViewport()}}},e.prototype.getViewport=function(){return this.get("viewport")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateGraphImg=function(t){var e=this,n=e.get("imgDOM");n.remove(),e.set("graphImg",t);var r=(0,i.Z)('<img alt="" src="'.concat(t,'" style="display: inline-block;" ondragstart="return false;" onselectstart="return false;"/>'));e.set("imgDOM",r),r.src=t,e.updateImgSize();var o=e.get("containerSpan");o.appendChild(r),e.updateCanvas()},e.prototype.destroy=function(){var t=this.get("container");t.parentNode.removeChild(t)},e}(u),Nr=Lr,Rr=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])},t(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)}}(),jr=function(){return jr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},jr.apply(this,arguments)},Fr=Ar.Zr.distance,Br=.05,zr={stroke:"#000",strokeOpacity:.8,lineWidth:2,fillOpacity:1,fill:"#fff"},Zr=function(t){function e(e){return t.call(this,e)||this}return Rr(e,t),e.prototype.getDefaultCfgs=function(){return{type:"both",trigger:"mousemove",r:60,delegateStyle:(0,a.clone)(zr),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"};break}return t},e.prototype.init=function(){var t=this,e=t.get("showLabel"),n="node"===e||"both"===e,r="edge"===e||"both"===e;t.set("showNodeLabel",n),t.set("showEdgeLabel",r);var i=t.get("shouldShow");i||t.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"),n.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){var e=this;if(t&&t.originalEvent){t.preventDefault&&t.preventDefault();var n,r=e.get("graph"),i=e.get("delegate"),o=i?{x:i.attr("x"),y:i.attr("y")}:void 0;o||r.getPointByClient(t.clientX,t.clientY);n=t.originalEvent.wheelDelta<0?1-Br:1/(1-Br);var a=e.get("maxR"),s=e.get("minR"),u=e.get("r");(u>(a||r.get("height"))&&n>1||u<(s||.05*r.get("height"))&&n<1)&&(n=1),u*=n,e.set("r",u),e.filter(t)}},e.prototype.filter=function(t){var e=this,n=e.get("graph"),r=n.getNodes(),i={},o=e.get("r"),a=e.get("type"),s={x:t.x,y:t.y};e.updateDelegate(s,o);var u=e.get("shouldShow"),l=e.get("vShapes");l&&l.forEach((function(t){t.remove(),t.destroy()})),l=[],r.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y;Fr({x:n,y:r},s)<o&&(i[e.id]=t)}));var c=n.getEdges(),f=[];c.forEach((function(t){var e=t.getModel(),n=e.source,r=e.target;u(e)&&("only-source"===a||"one"===a?i[n]&&!i[r]&&f.push(t):"only-target"===a||"one"===a?i[r]&&!i[n]&&f.push(t):"both"===a&&i[n]&&i[r]&&f.push(t))}));var h=e.get("showNodeLabel"),d=e.get("showEdgelabel"),p=n.get("group");f.forEach((function(t){var e=t.get("group").get("children");e.forEach((function(t){var e=t.get("type"),n=p.addShape(e,{attrs:t.attr()});l.push(n),h&&"text"===e&&n.set("visible",!0)}))})),Object.keys(i).forEach((function(t){var e=i[t],n=e.get("group").clone();if(p.add(n),l.push(n),d)for(var r=n.get("children"),o=0;o<r.length;o++){var a=r[o];"text"===a.get("type")&&a.set("visible",!0)}})),e.set("vShapes",l)},e.prototype.updateParams=function(t){var e=this,n=t.r,r=t.trigger,i=t.minR,o=t.maxR,a=t.scaleRBy,s=t.showLabel,u=t.shouldShow;if(isNaN(t.r)||e.set("r",n),isNaN(o)||e.set("maxR",o),isNaN(i)||e.set("minR",i),"mousemove"!==r&&"click"!==r||e.set("trigger",r),"wheel"===a||"unset"===a){e.set("scaleRBy",a),e.get("delegate").remove(),e.get("delegate").destroy();var l=e.get("dPercentText");l&&(l.remove(),l.destroy())}"node"!==s&&"both"!==s||e.set("showNodeLabel",!0),"edge"!==s&&"both"!==s||e.set("showEdgeLabel",!0),u&&e.set("shouldShow",u)},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")||zr;i=o.addShape("circle",{attrs:jr({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,e=t.get("vShapes");e&&e.forEach((function(t){t.remove(),t.destroy()})),e=[],t.set("vShapes",e);var n=t.get("delegate");n&&!n.destroyed&&(n.remove(),n.destroy())},e.prototype.destroy=function(){this.clear()},e}(u),Ur=Zr,Hr=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])},t(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)}}(),$r=Ar.Zr.pointLineDistance,Gr={stroke:"#FA8C16",lineWidth:1},Wr=function(t){function e(e){return t.call(this,e)||this}return Hr(e,t),e.prototype.getDefaultCfgs=function(){return{line:Gr,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,r=n.getBBox(),i=e.getModel(),o=i.x-r.x,a=i.y-r.y;this.show({x:r.minX+o,y:r.minY+a},{width:r.width,height:r.height})},e.prototype.onDragEnd=function(){this.destory()},e.prototype.initBoxLine=function(){var t=this._cfgs,e=t.horizontalLines,n=t.verticalLines,r=t.itemAlignType,i=this.get("graph"),o=i.getNodes();o.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=(0,a.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,s=i.verticalLines,u=i.tolerance,l={x:n.x+e.width/2,y:n.y},c={x:n.x+e.width/2,y:n.y+e.height/2},f={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},p=[],g=[],v=null;if(this.clearAlignLine(),(0,a.each)(o,(function(t){t[4].isVisible&&(p.push(r.getLineDisObject(t,l)),p.push(r.getLineDisObject(t,c)),p.push(r.getLineDisObject(t,f)))})),(0,a.each)(s,(function(t){t[4].isVisible&&(g.push(r.getLineDisObject(t,h)),g.push(r.getLineDisObject(t,c)),g.push(r.getLineDisObject(t,d)))})),p.sort((function(t,e){return t.dis-e.dis})),g.sort((function(t,e){return t.dis-e.dis})),0!==p.length&&p[0].dis<u){t.y=p[0].line[1]-p[0].point.y+n.y,v={type:"item",horizontals:[p[0]]};for(var m=1;m<3;m++)p[0].dis===p[m].dis&&v.horizontals.push(p[m])}if(0!==g.length&&g[0].dis<u){t.x=g[0].line[0]-g[0].point.x+n.x,v?v.verticals=[g[0]]:v={type:"item",verticals:[g[0]]};for(m=1;m<3;m++)g[0].dis===g[m].dis&&v.verticals.push(g[m])}v&&(v.bbox=e,this.addAlignLine(v))},e.prototype.addAlignLine=function(t){var e=t.bbox,n=t.type,r=t.horizontals,i=t.verticals,o=this._cfgs,s=o.line,u=o.alignLines,l=this.get("graph"),c=l.get("group");"item"===n&&(r&&(0,a.each)(r,(function(t){var n,r,i=t.line,o=t.point,l=(i[0]+i[2])/2;o.x<l?(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 f=(0,a.mix)({x1:n,y1:i[1],x2:r,y2:i[1]},s),h=c.addShape("line",{attrs:f,capture:!1});u.push(h)})),i&&(0,a.each)(i,(function(t){var n,r,i=t.line,o=t.point,l=(i[1]+i[3])/2;o.y<l?(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 f=(0,a.mix)({x1:i[0],y1:n,x2:i[0],y2:r},s),h=c.addShape("line",{attrs:f,capture:!1});u.push(h)})))},e.prototype.getLineDisObject=function(t,e){return{line:t,point:e,dis:$r(t,e)}},e.prototype.getContainer=function(){return this.get("container")},e.prototype.clearAlignLine=function(){var t=this._cfgs.alignLines;(0,a.each)(t,(function(t){t.remove()})),t.length=0},e.prototype.destory=function(){var t=this._cfgs,e=t.horizontalLines,n=t.verticalLines,r=this.get("graph"),i=r.getNodes();i.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}(u),Vr=Wr,Yr=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])},t(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)}}(),Xr=function(){return Xr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Xr.apply(this,arguments)},qr=["click","mouseenter"],Kr=function(t){function e(e){return t.call(this,e)||this}return Yr(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")||{},e=t.multiple;e&&"mouseenter"===t.trigger&&this.set("multiple",!1);var n=this.get("align");if(!n){var r=this.get("position").split("-");r.includes("left")&&(n="left"),n=r.includes("right")?"right":"center",this.set("align",n)}var a=this.get("graph"),s=a.get("container"),u=(0,i.Z)("<div class='g6-legend-container' style=\"position: absolute;\"></div>");s.appendChild(u),this.set("container",u);var l=this.render();(0,o.Z)(u,this.getContainerPos(l)),this.bindEvents()},e.prototype.getContainerPos=function(t){void 0===t&&(t=[0,0]);var e=this,n=e.get("graph"),r=this.get("offsetX"),i=this.get("offsetY"),o=this.get("margin"),a=this.get("position").split("-"),s={top:0,right:1,bottom:2,left:3},u=0,l=0,c={left:(n.getWidth()-t[0])/2+u,top:(n.getHeight()-t[1])/2+l};return a.forEach((function(e){var r=o[s[e]],i=e;switch(e){case"top":r+=l;break;case"left":r+=u;break;case"bottom":r=n.getHeight()-t[1]-r+l,i="top";break;default:r=n.getWidth()-t[0]-r+u,i="left";break}c[i]=r})),c.top+=i+n.getContainer().offsetTop,c.left+=r+n.getContainer().offsetLeft,Object.keys(c).forEach((function(t){c[t]="".concat(c[t],"px")})),c},e.prototype.bindEvents=function(){var t=this,e=t.get("filter");if(e&&e.enable){var n=e.trigger||"click";qr.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();(0,o.Z)(this.get("container"),this.getContainerPos(e))},e.prototype.activateLegend=function(t){var e=this.get("filter"),n=null===e||void 0===e?void 0:e.multiple;n||this.clearActiveLegend();var r=t.get("parent");r.get("active")?(r.set("active",!1),this.findLegendItemsByState("active").length&&r.set("inactive",!0)):(r.set("inactive",!1),r.set("active",!0)),this.findLegendItemsByState("active").length?this.findLegendItemsByState("active","all",!1).forEach((function(t){t.set("inactive",!0)})):this.clearActiveLegend();var i=(null===e||void 0===e?void 0:e.legendStateStyles)||{},o=(null===i||void 0===i?void 0:i.inactive)||{opacity:.5,"text-shape":{opacity:.5}},a=o["text-shape"]||{};this.findLegendItemsByState("inactive").forEach((function(t){var e=t.get("children"),n=e[0],r=e[1];n.attr(Xr(Xr({},n.get("oriAttrs")),o)),r.attr(Xr(Xr({},r.get("oriAttrs")),a))}));var s=(null===i||void 0===i?void 0:i.active)||{stroke:"#000",lineWidth:2,"text-shape":{fontWeight:"bold"}},u=s["text-shape"]||{};this.findLegendItemsByState("active").forEach((function(t){var e=t.get("children"),n=e[0],r=e[1];n.attr(Xr(Xr({},n.get("oriAttrs")),s)),r.attr(Xr(Xr({},r.get("oriAttrs")),u))}))},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"),e=t.find((function(t){return"root"===t.get("name")})),n=[e.find((function(t){return"node-group"===t.get("name")})),e.find((function(t){return"edge-group"===t.get("name")}))];n.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 u=r.find((function(t){return"root"===t.get("name")})),l=u.find((function(t){return"node-group"===t.get("name")})),c=u.find((function(t){return"edge-group"===t.get("name")})),f=l.get("children").filter((function(t){return t.get("active")})),h=c.get("children").filter((function(t){return t.get("active")})),d=0,p=["getNodes","getEdges"];p.forEach((function(t){i[t]().forEach((function(e){var r=!1,s="getNodes"===t?f:h;s.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),d++):(i.setItemState(e,o,!1),i.setItemState(e,a,!0))}))})),d||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 y.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=["nodes","edges"],s=[r,i];a.forEach((function(e,n){o[e].forEach((function(r){var i,o,a=s[n].addGroup({id:r.id,name:"node-container"}),u=r.type,l=t.getShapeSize(r),c=l.width,f=l.height,h=l.r,d=t.getStyle(e.substr(0,4),r);switch(r.type){case"circle":o={r:h,x:0,y:0};break;case"rect":o={width:c,height:f,x:-c/2,y:-f/2};break;case"ellipse":o={rx:c,ry:f,x:0,y:0},u="ellipse";break;case"line":o={x1:-c/2,y1:0,x2:c/2,y2:0},u="line";break;case"quadratic":o={path:[["M",-c/2,0],["Q",0,c/2,c/2,0]]},u="path";break;case"cubic":o={path:[["M",-c/2,0],["C",-c/6,c/2,c/6,-c/2,c/2,0]]},u="path";break;case"diamond":o={path:[["M",0,-f],["L",c,0],["L",0,f],["L",-c,0],["Z"]]},u="path";break;case"triangle":o={path:[["M",-c,f],["L",0,-f],["L",c,f],["Z"]]},u="path";break;case"star":o={path:Ar.Zr.getStarPath(3*h,1.2*h)},u="path";break;default:o={r:h,x:0,y:0};break}var p=a.addShape(u,{attrs:Xr(Xr({},o),d),name:"".concat(r.type,"-node-keyShape"),oriAttrs:Xr({opacity:1},d)});if(r.label){var g=p.getBBox(),v=(null===(i=r.labelCfg)||void 0===i?void 0:i.style)||{},m=Xr({textAlign:"begin",fontSize:12,textBaseline:"middle",fill:"#000",opacity:1,fontWeight:"normal"},v);a.addShape("text",{attrs:Xr({x:g.maxX+4,y:0,text:r.label},m),className:"legend-label",name:"".concat(r.type,"-node-text"),oriAttrs:m})}}))}));var u,l=this.get("padding"),c=n.find((function(t){return"title-container"===t.get("name")})),f={height:0,maxY:0,width:0};if(this.get("title")){c||(c=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")||{},p=Object.assign(h,d.style||{});u=c.addShape("text",{attrs:Xr({text:this.get("title")},p)}),f=c.getCanvasBBox(),c.setMatrix([1,0,0,0,1,0,d.offsetX,d.offsetY,1])}this.layoutItems();var g=n.getCanvasBBox(),v=r.getCanvasBBox(),m=v.minX<0?Math.abs(v.minX)+l[3]:l[3],b=f.maxY<v.minY?Math.abs(f.maxY-v.minY)+l[0]:f.maxY+l[0],x=[1,0,0,0,1,0,m,b,1];r.setMatrix(x),g=n.getCanvasBBox();var _=[g.minX+g.width+l[1],g.minY+g.height+l[2]];if(u){d=Xr({position:"center",offsetX:0,offsetY:0},this.get("titleConfig"));f=c.getCanvasBBox();var w=c.getMatrix()||[1,0,0,0,1,0,0,0,1];"center"===d.position?w[6]=_[0]/2+d.offsetX:"right"===d.position?(w[6]=_[0]-l[3]+d.offsetX,u.attr({textAlign:"right"})):(w[6]=l[3]+d.offsetX,u.attr({textAlign:"left"})),c.setMatrix(w),f=c.getCanvasBBox(),m=v.minX<0?Math.abs(v.minX)+l[3]:l[3],b=v.minY<f.maxY?Math.abs(f.maxY-v.minY)+l[0]:f.maxY+l[0],x=[1,0,0,0,1,0,m,b,1],r.setMatrix(x);var S=[1,0,0,0,1,0,m,b,1];"vertical"===this.get("layout")?S[6]+=v.maxX+this.get("horiSep"):S[7]+=v.maxY+this.get("vertiSep"),i.setMatrix(S)}else{v=r.getCanvasBBox();var E=[1,0,0,0,1,0,0,0,1];"vertical"===this.get("layout")?E[6]+=x[6]+v.maxX+this.get("horiSep"):E[7]+=x[7]+v.maxY+this.get("vertiSep"),i.setMatrix(E)}g=n.getCanvasBBox(),v=r.getCanvasBBox(),x=r.getMatrix()||[1,0,0,0,1,0,0,0,1];var T=i.getMatrix()||[1,0,0,0,1,0,0,0,1],k=i.getCanvasBBox();_=[Math.max(v.width+x[6],k.width+T[6])+l[1],Math.max(v.height+x[7],k.height+T[7])+l[2]],e.changeSize(_[0],_[1]);var C=this.get("containerStyle"),M=n.getMatrix()||[1,0,0,0,1,0,0,0,1],A=Ar.Zr.invertMatrix({x:0,y:0},M),I=n.addShape("rect",{attrs:Xr({x:A.x+(C.lineWidth||1),y:A.y+(C.lineWidth||1),width:_[0]-2*(C.lineWidth||1),height:_[1]-2*(C.lineWidth||1),fill:"#f00",stroke:"#000",lineWidth:1,opacity:.5},C),name:"legend-back-rect",capture:!1});return I.toBack(),_},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")})),u=a.find((function(t){return"edge-group"===t.get("name")})),l={min:0,max:-1/0},c=-1/0;s.get("children").forEach((function(t,i){0===i&&(l.min=o[0]);var a=t.get("children")[0],s=t.getCanvasBBox(),u=a.getBBox(),f=u.width,h=u.height,d=0,p=0,g=0;"vertical"===r?(p=o[1],g=o[0]+f/2,o[0]=g+s.height+n,d=s.maxX+p+f/2):(p=o[0]+f/2,g=o[1],o[0]=p+s.width+e,d=s.maxY+g+h/2),o[0]>l.max&&(l.max=o[0]),d>c&&(c=d),t.setMatrix([1,0,0,0,1,0,p,g,1])}));var f=l.max-l.min,h={min:0,max:-1/0},d=s.getCanvasBBox();o[0]=0,o[1]="vertical"===r?d.maxX+e:d.maxY+n,u.get("children").forEach((function(t,i){0===i&&(h.min=o[0]);var a=t.get("children")[0],s=t.getCanvasBBox(),u=a.getBBox(),l=u.width,c=u.height,f=0,d=0;"vertical"===r?(f=o[1],d=o[0],o[0]=d+s.height+n,t.setMatrix([1,0,0,0,1,0,0,d+c/2,1])):(f=o[0],d=o[1],o[0]=f+s.width+e,t.setMatrix([1,0,0,0,1,0,f+l/2,0,1])),o[0]>h.max&&(h.max=o[0])}));var p=h.max-h.min;if(i&&""!==i&&"left"!==i){var g=f-p,v="center"===i?Math.abs(g)/2:Math.abs(g),m=g<0?s:u;m.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,s,u=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===(s=t.labelCfg)||void 0===s?void 0:s.style)||{};e.nodes.push({id:t.id||(0,a.uniqueId)(),type:t.type||"circle",style:Xr({},t.style),order:t.order,label:t.label,itemType:"node",size:u,labelCfg:{position:"right",style:Xr({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)||{},s=t.size||[(null===(r=t.style)||void 0===r?void 0:r.width)||8,1];e.edges.push({id:t.id||(0,a.uniqueId)(),type:i,size:s,style:Xr({lineWidth:(0,a.isArray)(s)?s[1]:1},t.style),order:t.order,label:t.label,itemType:"edge",labelCfg:{position:"right",style:Xr({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((0,a.isNumber)(e))this.set(t,[e,e,e,e]);else if((0,a.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]]);break;default:break}return this.get(t)},e.prototype.getShapeSize=function(t){var e,n,r;return t.size&&((0,a.isArray)(t.size)?(e=t.size[0],n=t.size[1]||t.size[0],r=t.size[0]/2):(0,a.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){var n="node"===t?{fill:"#ccc",lineWidth:0}:{stroke:"#000",lineWidth:1};return Xr(Xr({},n),e.style||{})},e.prototype.destroy=function(){var t=this.get("legendCanvas");null===t||void 0===t||t.destroy();var e=this.get("graph"),n=e.get("container"),r=this.get("container");n.removeChild(r)},e}(u),Jr=Kr,Qr=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])},t(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)}}(),ti=function(){return ti=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ti.apply(this,arguments)},ei=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&&p()("\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 ni="canvas-annotation",ri=function(t){function e(e){return t.call(this,e)||this}return Qr(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=ti(ti({},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,u=void 0===s?5:s,l=e?"<p class='g6-annotation-expand'>+</p>":"<p class='g6-annotation-collapse'>-</p>",c=e?"":" <p class='g6-annotation-content'>".concat(a,"</p>"),f="<p class='g6-annotation-close'>x</p>",h=e?"".concat(u,"px"):"".concat(u,"px ").concat(u,"px 0 0");return'<div class="g6-annotation-wrapper" style="border-radius: '.concat(u,"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(l,"\n          ").concat(f,"\n        </div>\n        ").concat(c,"\n      </div>")}},e.prototype.init=function(){var t=this;if(!t.destroyed){var e=t.get("graph"),n=e.getContainer(),r=t.get("container"),i=this.get("containerCfg");i?(r=this.createContainer(),n.appendChild(r)):r=n,this.set("container",r);var s=n.getBoundingClientRect(),u=new y.Canvas({container:n,width:s.right-s.left,height:s.bottom-s.top});(0,o.Z)(u.get("el"),{position:"absolute",top:0,left:0,pointerEvents:"none"}),window.addEventListener("resize",(0,a.debounce)((function(){return t.resizeCanvas(t)}),100));var l=u.addGroup({id:"annotation-link-group"});t.set("linkGroup",l),t.set("canvas",u),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 c=t.get("defaultData");c&&this.readData(c)}},e.prototype.createContainer=function(){var t=this;if(!this.destroyed){var e=this.get("containerCfg"),n=this.get("graph"),r=n.getContainer(),s=r.getBoundingClientRect(),u=s.left,l=s.right,c=s.top,f=s.bottom,h=f-c,d=l-u,p=e.position,g=void 0===p?"top":p,v=e.offsetX,m=void 0===v?0:v,y=e.offsetY,b=void 0===y?0:y,x=ei(e,["position","offsetX","offsetY"]),_=e.height,w=void 0===_?"fit-content":_,S=e.width,E=void 0===S?n.getWidth():S;"100%"===w&&(w=h),"100%"===E&&(E=d);var T="unset",k="unset",C={};switch(g){case"right":T="".concat(h,"px"),C={top:0,right:0},C.right+=u+m,C.top+=c+b;break;case"bottom":k="".concat(d,"px"),C={bottom:0,left:0},C.left+=u+m,C.bottom+=c+b;break;case"top":k="".concat(d,"px");case"left":T="".concat(h,"px");default:C={top:0,left:0},C.left+=u+m,C.top+=c+b;break}Object.keys(C).forEach((function(t){C[t]="".concat(C[t],"px")}));var M=(0,i.Z)("<div class='".concat(e.className," g6-annotation-container'></div>"));return(0,o.Z)(M,ti(ti({position:"absolute",display:"top"===g||"bottom"===g?"inline-flex":"unset",width:(0,a.isNumber)(E)?"".concat(E,"px"):E,height:(0,a.isNumber)(w)?"".concat(w,"px"):w,maxHeight:T,maxWidth:k,overflow:"scroll"},C),x)),r.appendChild(M),M.addEventListener("scroll",(function(e){t.updateLinks()})),M}},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),a=r.getPointByCanvas(r.getWidth(),r.getHeight()),s=r.getClientByPoint(i.x,i.y),u=s.x,l=s.y,c=r.getClientByPoint(a.x,a.y),f=c.x,h=c.y;Object.values(n).forEach((function(t){var e=t.card;if(e){var n=e.style,r=si(n.left),i=si(n.top),a=e.getBoundingClientRect(),s=a.width,c=a.height,d=r,p=i;r+s>f-u&&(d=f-u-s),r<0&&(d=0),i+c>h-l&&(p=h-l-c),i<0&&(p=0),(0,o.Z)(e,{left:"".concat(d,"px"),top:"".concat(p,"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={});var s=this;if(!s.destroyed){var u=s.get("cardInfoMap")||{},l=s.get("graph"),c=s.get("container"),f=s.get("containerCfg"),h=Object.assign({},s.get("cardCfg")||{},e),d=h.minHeight,p=h.minWidth,g=h.width,v=h.height,m=h.collapsed,y=void 0!==m&&m,b=h.x,x=h.y,_=h.title,w=h.content,S=h.maxTitleLength,E=h.defaultBegin,T=ei(h,["minHeight","minWidth","width","height","collapsed","x","y","title","content","maxTitleLength","defaultBegin"]),k=s.get("linkGroup"),C=this.get("rows")||[[]],M=null===(n=t.isCanvas)||void 0===n?void 0:n.call(t),A=M?ni:t.getID(),I=u[A]||{},O=I.card,D=I.link,P=I.x,L=I.y,N=I.title,R=I.content,j=this.get("getTitle"),F=this.get("getContent"),B=this.get("getContentPlaceholder")||function(){return""},z=this.get("getTitlePlaceHolder")||function(){return""},Z=B(t),U=z(t),H=(0,i.Z)(this.getDOMContent(ti({itemId:A,collapsed:y,title:(null===(r=N||_||(null===j||void 0===j?void 0:j(t)))||void 0===r?void 0:r.substr(0,S))||U,content:R||w||(null===F||void 0===F?void 0:F(t))||Z},T))),$=(0,a.isNumber)(d)?"".concat(d,"px"):d;(0,o.Z)(H,{minHeight:y?"unset":$,minWidth:(0,a.isNumber)(p)?"".concat(p,"px"):p,height:v,width:g});var G,W=!!O;if(W?(null===D||void 0===D||D.remove(!0),c.replaceChild(H,O)):c.appendChild(H),!f){if(G=c.getBoundingClientRect()||{},void 0!==b&&void 0!==x)P=b,L=x;else if(!W&&!M){var V=G.top,Y=E||{},X=Y.left,q=Y.right,K=void 0===q?16:q,J=Y.top,Q=void 0===J?8:J,tt=Y.bottom,et=K,nt=Q;isNaN(X)||(et=c.scrollWidth-X),isNaN(tt)||(nt=c.scrollHeight-tt);var rt=(0,a.isNumber)(p)?p:100;P=c.scrollWidth-H.scrollWidth-(C.length-1)*rt-et;var it=C[C.length-1],ot=(it[it.length-1]||{}).bbox;L=(null===ot||void 0===ot?void 0:ot.bottom)-V||nt}(0,o.Z)(H,{position:"absolute",left:"".concat(P,"px"),top:"".concat(L,"px"),cusor:f?"unset":"move"})}this.bindListener(H,A);var at=H.getBoundingClientRect();if(!M){var st=ai(t,at,l,this.get("canvas")),ut=this.get("linkStyle");D=k.addShape("path",{attrs:ti({lineWidth:1,lineDash:[5,5],stroke:"#ccc",path:st},ut)})}if(u[A]=ti(ti({},u[A]||{}),{id:A,collapsed:y,card:H,link:D,x:P,y:L,cardBBox:at,content:R||w,title:N||_,contentPlaceholder:Z,titlePlaceholder:U,isCanvas:M}),s.set("cardInfoMap",u),f)this.updateCardPositionsInConatainer(),this.updateLinks();else{var lt=!isNaN(b)&&!isNaN(x);if(!W&&!M&&!lt){var ct=G.bottom,ft=void 0===ct?0:ct;V=G.top;C[C.length-1].push({id:A,bbox:at}),at.top>ft-V-at.height-16&&C.push([]),this.set("rows",C)}}this.updateCardSize(A);var ht=this.get("onAnnotationChange");null===ht||void 0===ht||ht(u[A],W?"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),a=si(i["paddingLeft"])+si(i["paddingRight"]);r-=a,Object.values(t).forEach((function(t){var e=t.card,i=e.getBoundingClientRect().width;switch(n){case"right":(0,o.Z)(e,{marginLeft:r?"".concat(r-i,"px"):"0px"});break;case"top":case"bottom":(0,o.Z)(e,{marginLeft:"8px"});default:break}}))}}},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){var o=this.get("cardCfg").collapseType;"hide"!==o||r?this.toggleAnnotation(i,{collapsed:!r}):this.hideCard(t),n[t]=ti(ti({},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;(0,o.Z)(r,{display:"none"}),null===i||void 0===i||i.hide();var a=this.get("onAnnotationChange");a(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,o=this.get("container");o.removeChild(r),null===i||void 0===i||i.remove(!0),delete e[t];var a=this.get("onAnnotationChange");a(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,o=void 0===i?function(){}:i;o(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,o=void 0===i?function(){}:i;o(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 u=n.get("linkHighlightStyle")||{};s.attr(u)}}})),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 u=n.get("linkHighlightStyle")||{};Object.keys(u).forEach((function(t){s.attr(t,void 0),s.attr(t,void 0)}));var l=n.get("linkStyle");s.attr(l)}}})),t.addEventListener("click",(function(t){var r=(n.get("cardCfg")||{}).onClickIcon;if("g6-annotation-collapse"===t.target.className||"g6-annotation-expand"===t.target.className){var i=n.get("cardCfg").collapseType;"hide"===i?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){var o=n.get("cardCfg").closeType;"remove"===o?n.removeCard(e):n.hideCard(e),null===r||void 0===r||r(t,e,"close")}}));var r=this.get("editable");r&&t.addEventListener("dblclick",(function(t){var r=n.get("cardInfoMap"),o=(n.get("cardCfg")||{}).maxTitleLength,a=void 0===o?20:o;if(r){var s=t.target,u=s.className;if("g6-annotation-title"===u||"g6-annotation-content"===u){var l="g6-annotation-title"===u?s.getBoundingClientRect():s.parentNode.getBoundingClientRect(),c=l.width,f=l.height,h=getComputedStyle(s),d="g6-annotation-title"===u?"input":"textarea",p=(0,i.Z)("<".concat(d,' class="').concat(u,'-input" type="textarea" style="width:').concat(c,"px; height: ").concat(f,'px; min-width: 16px;"/>')),g=(0,i.Z)('<div class="'.concat(u,'-input-wrapper" style="width: ').concat(c,"px; height: ").concat(f,"px; min-width: 16px; margin-right: ").concat(h["marginRight"],'" />'));g.appendChild(p),s.parentNode.replaceChild(g,s);var v=r[e],m=v.contentPlaceholder,y=v.titlePlaceholder,b=v.content,x=v.title,_=b;"g6-annotation-title"===u?(p.name="title",p.maxLength=a,_=x):p.name="content",_?(p.innerHTML=s.innerHTML,p.value=s.innerHTML):p.placeholder="g6-annotation-title"===u?y:m,p.focus(),p.addEventListener("blur",(function(t){p.value&&(s.innerHTML=p.value,v[p.name||"title"]=p.value),g.parentNode.replaceChild(s,g),n.updateCardSize(e);var r=n.get("onAnnotationChange");null===r||void 0===r||r(v,"update")}))}}}));var a=["g6-annotation-title","g6-annotation-content","g6-annotation-title-input","g6-annotation-content-input"];t.draggable=!0,t.addEventListener("dragstart",(function(e){var r=e.target.className;if(!a.includes(r)){var i=t.style;n.set("dragging",{card:t,x:e.clientX,y:e.clientY,left:si(i.left),top:si(i.top)})}})),t.addEventListener("drag",(function(t){t.preventDefault();var r=n.get("cardInfoMap");if(r){var i=t.clientX,a=t.clientY,s=n.get("dragging");if(!isNaN(i)&&!isNaN(a)&&s){var u=s.x,l=s.y,c=s.left,f=s.top,h=s.card,d=i-u,p=a-l;c+=d,f+=p;var g=n.get("graph"),v=g.getPointByCanvas(0,0),m=g.getPointByCanvas(g.getWidth(),g.getHeight()),y=g.getClientByPoint(v.x,v.y),b=y.x,x=y.y,_=g.getClientByPoint(m.x,m.y),w=_.x,S=_.y,E=h.getBoundingClientRect(),T=E.right-E.left,k=E.bottom-E.top;(c>w-b-T&&d>0||c<0&&d<0)&&(c-=d),(f>S-x-k&&p>0||f<0&&p<0)&&(f-=p),(0,o.Z)(h,{left:"".concat(c,"px"),top:"".concat(f,"px"),visibility:"hidden"}),u=i,l=a;var C=(r[e]||{}).link;if(C){var M=g.findById(e);C.attr("path",ai(M,E,g,n.get("canvas")))}n.set("dragging",{x:u,y:l,left:c,top:f,card:h})}}}));var s=function(t){var r=n.get("cardInfoMap");if(r){var i=n.get("dragging");if(i){var a=i.left,s=i.top,u=i.card;r[e].x=a,r[e].y=s,(0,o.Z)(u,{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 c=n.get("onAnnotationChange");null===c||void 0===c||c(r[e],"update")}}};t.addEventListener("dragend",s)}},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 a=getComputedStyle(i),s=si(a["marginLeft"]),u=i.getBoundingClientRect().width;(0,o.Z)(i,{marginRight:"".concat(r-s-24-16-u,"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=e.getID(),a=n[o]||{},s=a.link,u=a.card;if(s){var l=ai(e,u.getBoundingClientRect(),i,r);s.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,u=e.x,l=e.y,c=e.id,f=e.collapsed,h=e.card;if(!h||"none"!==h.style.display||t){var d=n.findById(c)||n.get("canvas");o.push({id:c,x:u,y:l,collapsed:f,title:a||(null===r||void 0===r?void 0:r(d)),content:s||(null===i||void 0===i?void 0:i(d)),visible:h&&"none"!==h.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,u=t.collapsed,l=t.visible,c=n.findById(r);if(c||r!==ni||(c=n.get("canvas")),!c){var f=e.get("cardInfoMap")||{};return f[r]=t,void e.set("cardInfoMap",f)}e.toggleAnnotation(c,{x:i,y:o,title:a,content:s,collapsed:u}),l||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}(u),ii=ri,oi=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 s=e[t],u=a.x-s.x,l=a.y-s.y,c=u*u+l*l;i>c&&(i=c,n=a,r=s,[o,t])}))}));var o=20,a=Ar.Zr.getControlPoint(n,r,.5,o);return[["M",n.x,n.y],["Q",a.x,a.y,r.x,r.y]]},ai=function(t,e,n,r){var i,o,a=t.getType();if("edge"===a)o=[t.getKeyShape().getPoint(.5)];else{var s=null===(i=t.getKeyShape)||void 0===i?void 0:i.call(t).getBBox(),u=s.minX,l=s.minY,c=s.maxX,f=s.maxY,h=t.getModel(),d=h.x,p=h.y;u+=d,l+=p,c+=d,f+=p,o={left:{x:u,y:(l+f)/2},right:{x:c,y:(l+f)/2},top:{x:(u+c)/2,y:l},bottom:{x:(u+c)/2,y:f}}}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 g=e.top,v=void 0===g?0:g,m=e.left,y=void 0===m?0:m,b=e.right,x=void 0===b?0:b,_=e.bottom,w=void 0===_?0:_,S={left:r.getPointByClient(y,(v+w)/2),right:r.getPointByClient(x,(v+w)/2),top:r.getPointByClient((y+x)/2,v),bottom:r.getPointByClient((y+x)/2,w)};return oi(o,S)},si=function(t){return Number(t.replace(/\s+|px/gi,""))||0},ui={PluginBase:u,Menu:m,Grid:h,Minimap:I,Bundling:R,ToolBar:V,Tooltip:q,Fisheye:U,TimeBar:Mr,ImageMinimap:Nr,EdgeFilterLens:Ur,SnapLine:Vr,Legend:Jr,Annotation:ii},li=ui},87483:function(t,e,n){"use strict";n.d(e,{ZP:function(){return Nr}});var r={};n.r(r),n.d(r,{getColorSetsBySubjectColors:function(){return Tt},getColorsWithSubjectColor:function(){return Et},mixColor:function(){return _t}});var i={};n.r(i),n.d(i,{arrayToTextureData:function(){return Vt},attributesToTextureData:function(){return Wt},buildTextureData:function(){return Ht},buildTextureDataWithOneEdgeAttr:function(){return $t},buildTextureDataWithTwoEdgeAttr:function(){return Gt},proccessToFunc:function(){return Ut},radialLayout:function(){return Yt}});var o={};n.r(o),n.d(o,{gpuDetector:function(){return Xt}});var a={};n.r(a),n.d(a,{getBrowserName:function(){return qt}});var s=n(97582),u=n(86140),l=n(37609),c=n(10369),f=n(66769),h=n(31767),d=n(31506),p=n(55817),g=n(6056),v=n(6767),m=n.n(v);function y(t){return y="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},y(t)}var b=/^\s+/,x=/\s+$/;function _(t,e){if(t=t||"",e=e||{},t instanceof _)return t;if(!(this instanceof _))return new _(t,e);var n=w(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.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=n.ok}function w(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"==typeof t&&(t=it(t)),"object"==y(t)&&(rt(t.r)&&rt(t.g)&&rt(t.b)?(e=S(t.r,t.g,t.b),a=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):rt(t.h)&&rt(t.s)&&rt(t.v)?(r=Q(t.s),i=Q(t.v),e=C(t.h,r,i),a=!0,s="hsv"):rt(t.h)&&rt(t.s)&&rt(t.l)&&(r=Q(t.s),o=Q(t.l),e=T(t.h,r,o),a=!0,s="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=W(n),{ok:a,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}function S(t,e,n){return{r:255*V(t,255),g:255*V(e,255),b:255*V(n,255)}}function E(t,e,n){t=V(t,255),e=V(e,255),n=V(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 u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case t:r=(e-n)/u+(e<n?6:0);break;case e:r=(n-t)/u+2;break;case n:r=(t-e)/u+4;break}r/=6}return{h:r,s:i,l:s}}function T(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=V(t,360),e=V(e,100),n=V(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,u=2*n-s;r=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}function k(t,e,n){t=V(t,255),e=V(e,255),n=V(n,255);var r,i,o=Math.max(t,e,n),a=Math.min(t,e,n),s=o,u=o-a;if(i=0===o?0:u/o,o==a)r=0;else{switch(o){case t:r=(e-n)/u+(e<n?6:0);break;case e:r=(n-t)/u+2;break;case n:r=(t-e)/u+4;break}r/=6}return{h:r,s:i,v:s}}function C(t,e,n){t=6*V(t,360),e=V(e,100),n=V(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),u=r%6,l=[n,a,o,o,s,n][u],c=[s,n,n,a,o,o][u],f=[o,o,s,n,n,a][u];return{r:255*l,g:255*c,b:255*f}}function M(t,e,n,r){var i=[J(Math.round(t).toString(16)),J(Math.round(e).toString(16)),J(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 A(t,e,n,r,i){var o=[J(Math.round(t).toString(16)),J(Math.round(e).toString(16)),J(Math.round(n).toString(16)),J(tt(r))];return 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)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function I(t,e,n,r){var i=[J(tt(r)),J(Math.round(t).toString(16)),J(Math.round(e).toString(16)),J(Math.round(n).toString(16))];return i.join("")}function O(t,e){e=0===e?0:e||10;var n=_(t).toHsl();return n.s-=e/100,n.s=Y(n.s),_(n)}function D(t,e){e=0===e?0:e||10;var n=_(t).toHsl();return n.s+=e/100,n.s=Y(n.s),_(n)}function P(t){return _(t).desaturate(100)}function L(t,e){e=0===e?0:e||10;var n=_(t).toHsl();return n.l+=e/100,n.l=Y(n.l),_(n)}function N(t,e){e=0===e?0:e||10;var n=_(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))),_(n)}function R(t,e){e=0===e?0:e||10;var n=_(t).toHsl();return n.l-=e/100,n.l=Y(n.l),_(n)}function j(t,e){var n=_(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,_(n)}function F(t){var e=_(t).toHsl();return e.h=(e.h+180)%360,_(e)}function B(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=_(t).toHsl(),r=[_(t)],i=360/e,o=1;o<e;o++)r.push(_({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function z(t){var e=_(t).toHsl(),n=e.h;return[_(t),_({h:(n+72)%360,s:e.s,l:e.l}),_({h:(n+216)%360,s:e.s,l:e.l})]}function Z(t,e,n){e=e||6,n=n||30;var r=_(t).toHsl(),i=360/n,o=[_(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(_(r));return o}function U(t,e){e=e||6;var n=_(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;while(e--)a.push(_({h:r,s:i,v:o})),o=(o+s)%1;return a}_.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,i,o,a=this.toRgb();return t=a.r/255,e=a.g/255,n=a.b/255,r=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4),i=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),o=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),.2126*r+.7152*i+.0722*o},setAlpha:function(t){return this._a=W(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=k(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=k(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=E(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=E(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 M(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return A(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*V(this._r,255))+"%",g:Math.round(100*V(this._g,255))+"%",b:Math.round(100*V(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*V(this._r,255))+"%, "+Math.round(100*V(this._g,255))+"%, "+Math.round(100*V(this._b,255))+"%)":"rgba("+Math.round(100*V(this._r,255))+"%, "+Math.round(100*V(this._g,255))+"%, "+Math.round(100*V(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&($[M(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+I(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=_(t);n="#"+I(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0,i=!e&&r&&("hex"===t||"hex6"===t||"hex3"===t||"hex4"===t||"hex8"===t||"name"===t);return i?"name"===t&&0===this._a?this.toName():this.toRgbString():("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())},clone:function(){return _(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(L,arguments)},brighten:function(){return this._applyModification(N,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(O,arguments)},saturate:function(){return this._applyModification(D,arguments)},greyscale:function(){return this._applyModification(P,arguments)},spin:function(){return this._applyModification(j,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(Z,arguments)},complement:function(){return this._applyCombination(F,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(B,[3])},tetrad:function(){return this._applyCombination(B,[4])}},_.fromRatio=function(t,e){if("object"==y(t)){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:Q(t[r]));t=n}return _(t,e)},_.equals=function(t,e){return!(!t||!e)&&_(t).toRgbString()==_(e).toRgbString()},_.random=function(){return _.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},_.mix=function(t,e,n){n=0===n?0:n||50;var r=_(t).toRgb(),i=_(e).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return _(a)},_.readability=function(t,e){var n=_(t),r=_(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},_.isReadable=function(t,e,n){var r,i,o=_.readability(t,e);switch(i=!1,r=ot(n),r.level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7;break}return i},_.mostReadable=function(t,e,n){var r,i,o,a,s=null,u=0;n=n||{},i=n.includeFallbackColors,o=n.level,a=n.size;for(var l=0;l<e.length;l++)r=_.readability(t,e[l]),r>u&&(u=r,s=_(e[l]));return _.isReadable(t,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,_.mostReadable(t,["#fff","#000"],n))};var H=_.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"},$=_.hexNames=G(H);function G(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 V(t,e){q(t)&&(t="100%");var n=K(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 Y(t){return Math.min(1,Math.max(0,t))}function X(t){return parseInt(t,16)}function q(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)}function K(t){return"string"===typeof t&&-1!=t.indexOf("%")}function J(t){return 1==t.length?"0"+t:""+t}function Q(t){return t<=1&&(t=100*t+"%"),t}function tt(t){return Math.round(255*parseFloat(t)).toString(16)}function et(t){return X(t)/255}var nt=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",n="(?:"+e+")|(?:"+t+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),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 rt(t){return!!nt.CSS_UNIT.exec(t)}function it(t){t=t.replace(b,"").replace(x,"").toLowerCase();var e,n=!1;if(H[t])t=H[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=nt.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=nt.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=nt.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=nt.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=nt.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=nt.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=nt.hex8.exec(t))?{r:X(e[1]),g:X(e[2]),b:X(e[3]),a:et(e[4]),format:n?"name":"hex8"}:(e=nt.hex6.exec(t))?{r:X(e[1]),g:X(e[2]),b:X(e[3]),format:n?"name":"hex"}:(e=nt.hex4.exec(t))?{r:X(e[1]+""+e[1]),g:X(e[2]+""+e[2]),b:X(e[3]+""+e[3]),a:et(e[4]+""+e[4]),format:n?"name":"hex8"}:!!(e=nt.hex3.exec(t))&&{r:X(e[1]+""+e[1]),g:X(e[2]+""+e[2]),b:X(e[3]+""+e[3]),format:n?"name":"hex"}}function ot(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:e,size:n}}var at=2,st=.16,ut=.05,lt=.05,ct=.15,ft=5,ht=4,dt=[{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 pt(t,e,n){var r;return r=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-at*e:Math.round(t.h)+at*e:n?Math.round(t.h)+at*e:Math.round(t.h)-at*e,r<0?r+=360:r>=360&&(r-=360),r}function gt(t,e,n){return 0===t.h&&0===t.s?t.s:(r=n?t.s-st*e:e===ht?t.s+st:t.s+ut*e,r>1&&(r=1),n&&e===ft&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function vt(t,e,n){var r;return r=n?t.v+lt*e:t.v-ct*e,r>1&&(r=1),Number(r.toFixed(2))}function mt(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=_(t),i=ft;i>0;i-=1){var o=r.toHsv(),a=_({h:pt(o,i,!0),s:gt(o,i,!0),v:vt(o,i,!0)}).toHexString();n.push(a)}n.push(r.toHexString());for(var s=1;s<=ht;s+=1){var u=r.toHsv(),l=_({h:pt(u,s),s:gt(u,s),v:vt(u,s)}).toHexString();n.push(l)}return"dark"===e.theme?dt.map((function(t){var r=t.index,i=t.opacity,o=_.mix(e.backgroundColor||"#141414",n[r],100*i).toHexString();return o})):n}var yt={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"},bt={},xt={};Object.keys(yt).forEach((function(t){bt[t]=mt(yt[t]),bt[t].primary=bt[t][5],xt[t]=mt(yt[t],{theme:"dark",backgroundColor:"#141414"}),xt[t].primary=xt[t][5]}));bt.red,bt.volcano,bt.gold,bt.orange,bt.yellow,bt.lime,bt.green,bt.cyan,bt.blue,bt.geekblue,bt.purple,bt.magenta,bt.grey;var _t=function(t,e,n){var r=m()(t),i=m()(e);return m()([(1-n)*r.red()+n*i.red(),(1-n)*r.green()+n*i.green(),(1-n)*r.blue()+n*i.blue()]).rgb()},wt=function(t,e,n){void 0===e&&(e="#fff"),void 0===n&&(n="rgb(150, 150, 150)");var r=_t(e,t,.05).rgb().toString(),i=_t(e,t,.1).rgb().toString(),o=_t(e,t,.2).rgb().toString(),a=_t(e,t,.4).rgb().toString(),s=_t(e,n,.02).rgb().toString(),u=_t(e,n,.05).rgb().toString(),l=_t(e,n,.1).rgb().toString(),c=_t(e,n,.2).rgb().toString(),f=_t(e,n,.3).rgb().toString(),h=mt(t,{theme:"default",backgroundColor:e}),d=m()(t).hex().toLowerCase(),p=h.indexOf(d),g=t;return-1!==p&&(g=h[p+1]),{mainStroke:t,mainFill:i,activeStroke:t,activeFill:r,inactiveStroke:a,inactiveFill:r,selectedStroke:t,selectedFill:e,highlightStroke:g,highlightFill:o,disableStroke:f,disableFill:u,edgeMainStroke:f,edgeActiveStroke:t,edgeInactiveStroke:c,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:l,comboMainStroke:f,comboMainFill:s,comboActiveStroke:t,comboActiveFill:r,comboInactiveStroke:f,comboInactiveFill:s,comboSelectedStroke:t,comboSelectedFill:s,comboHighlightStroke:g,comboHighlightFill:s,comboDisableStroke:c,comboDisableFill:u}},St=function(t,e,n){void 0===e&&(e="#fff"),void 0===n&&(n="#777");var r=_t(e,t,.2).rgb().toString(),i=_t(e,t,.3).rgb().toString(),o=_t(e,t,.6).rgb().toString(),a=_t(e,t,.8).rgb().toString(),s=_t(e,n,.2).rgb().toString(),u=_t(e,n,.25).rgb().toString(),l=_t(e,n,.3).rgb().toString(),c=_t(e,n,.4).rgb().toString(),f=_t(e,n,.5).rgb().toString(),h=mt(t,{theme:"dark",backgroundColor:e}),d=m()(t).hex().toLowerCase(),p=h.indexOf(d),g=t;return-1!==p&&(g=h[p+1]),{mainStroke:a,mainFill:r,activeStroke:t,activeFill:i,inactiveStroke:a,inactiveFill:r,selectedStroke:t,selectedFill:r,highlightStroke:t,highlightFill:o,disableStroke:f,disableFill:u,edgeMainStroke:n,edgeActiveStroke:t,edgeInactiveStroke:n,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:l,comboMainStroke:c,comboMainFill:u,comboActiveStroke:t,comboActiveFill:s,comboInactiveStroke:c,comboInactiveFill:u,comboSelectedStroke:t,comboSelectedFill:s,comboHighlightStroke:g,comboHighlightFill:u,comboDisableStroke:c,comboDisableFill:s}},Et=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?wt(t,e,"rgb(150, 150, 150)"):St(t,e,"#777")},Tt=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(Et(t,e,n,r))})),i},kt="rgb(95, 149, 255)",Ct="rgb(255, 255, 255)",Mt="rgb(0, 0, 0)",At=Et(kt,Ct),It={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:At.mainStroke,fill:At.mainFill},size:20,color:At.mainStroke,linkPoints:{size:8,lineWidth:1,fill:At.activeFill,stroke:At.activeStroke}},nodeStateStyles:{active:{fill:At.activeFill,stroke:At.activeStroke,lineWidth:2,shadowColor:At.mainStroke,shadowBlur:10},selected:{fill:At.selectedFill,stroke:At.selectedStroke,lineWidth:4,shadowColor:At.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:At.highlightFill,stroke:At.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:At.inactiveFill,stroke:At.inactiveStroke,lineWidth:1},disable:{fill:At.disableFill,stroke:At.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:Mt,textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:At.edgeMainStroke,lineAppendWidth:2},color:At.edgeMainStroke},edgeStateStyles:{active:{stroke:At.edgeActiveStroke,lineWidth:1},selected:{stroke:At.edgeSelectedStroke,lineWidth:2,shadowColor:At.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:At.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:At.edgeInactiveStroke,lineWidth:1},disable:{stroke:At.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:Mt,textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:At.comboMainFill,lineWidth:1,stroke:At.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:At.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:At.comboActiveStroke,lineWidth:1,fill:At.comboActiveFill},selected:{stroke:At.comboSelectedStroke,lineWidth:2,fill:At.comboSelectedFill,shadowColor:At.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:At.comboHighlightStroke,lineWidth:2,fill:At.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:At.comboInactiveStroke,fill:At.comboInactiveFill,lineWidth:1},disable:{stroke:At.comboDisableStroke,fill:At.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"},Ot=function(t){var e=t.clone();return Dt(t,e),e},Dt=function t(e,n){var r;e.isGroup()&&n.isGroup()&&(null===(r=e.get("children"))||void 0===r||r.forEach((function(e,r){var i=n.get("children")[r];t(e,i)})));var i=e.get("type"),o=n.get("type");if("image"===i&&"image"===o){var a=e.get("clipShape");a&&n.setClip({type:a.get("type"),attrs:a.attr()})}};function Pt(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)}}}}var Lt=u.Zr.cloneEvent,Nt=u.Zr.isViewportChanged,Rt=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(0,s.__extends)(e,t),e.prototype.initEvents=function(){var t=this,e=t.graph,n=t.extendEvents,r=void 0===n?[]:n,i=e.get("canvas"),o=i.get("el"),a=(0,p.wrapBehavior)(this,"onCanvasEvents"),s=(0,p.wrapBehavior)(this,"onExtendEvents"),u=(0,p.wrapBehavior)(this,"onWheelEvent");i.off("*").on("*",a),this.canvasHandler=a,r.push(Pt(o,"wheel",u)),"undefined"!==typeof window&&(r.push(Pt(window,"keydown",s)),r.push(Pt(window,"keyup",s)),r.push(Pt(window,"focus",s))),this.resetHandler&&e.off("afterchangedata",this.resetHandler),this.resetHandler=(0,p.wrapBehavior)(this,"resetStatus"),e.on("afterchangedata",this.resetHandler)},e.getItemRoot=function(t){while(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;break;default:break}t.canvasX=t.x,t.canvasY=t.y;var s={x:t.canvasX,y:t.canvasY},u=r.get("group"),l=u.getMatrix();if(l||(l=[1,0,0,0,1,0,0,0,1]),Nt(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 c=e.getItemRoot(o);if(c){var f=c.get("item");if(!f.destroyed){var h=f.getType();if(t.target=o,t.item=f,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){(0,p.isNil)(t.wheelDelta)&&(t.wheelDelta=-t.detail),this.graph.emit("wheel",t)},e.prototype.handleMouseMove=function(t,e){var n=this,r=n.graph,i=n.preItem,o=r.get("canvas"),a=t.target===o?null:t.item;t=Lt(t),i&&i!==a&&!i.destroyed&&(t.item=i,this.emitCustomEvent(i.getType(),"mouseleave",t),this.dragging&&this.emitCustomEvent(i.getType(),"dragleave",t)),a&&i!==a&&(t.item=a,this.emitCustomEvent(e,"mouseenter",t),this.dragging&&this.emitCustomEvent(e,"dragenter",t)),this.preItem=a},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,e=t.graph,n=t.canvasHandler,r=t.extendEvents,i=e.get("canvas");i.off("*",n),(0,p.each)(r,(function(t){t.remove()})),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0},e}(u.DV),jt=Rt,Ft=n(83360),Bt=n(81746),zt=n.n(Bt),Zt=u.Zr.traverseTree,Ut=function(t,e){var n;return n=t?(0,p.isNumber)(t)?function(e){return t}:t:function(t){return e||1},n},Ht=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 u=0;for(o=0;o<t.length;o++){var l=n.length,c=r[o],f=c.length;n[4*o+2]=l,n[4*o+3]=c.length,u=Math.max(u,c.length);for(var h=0;h<f;++h){var d=c[h];n.push(+d)}}while(n.length%4!==0)n.push(0);return{array:new Float32Array(n),maxEdgePerVetex:u}},$t=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 u=e[a];i[o[u.source]].push(o[u.target]),i[o[u.source]].push(n(u)),i[o[u.target]].push(o[u.source]),i[o[u.target]].push(n(u))}var l=0;for(a=0;a<t.length;a++){var c=r.length,f=i[a],h=f.length;r[4*a+2]=c,r[4*a+3]=h/2,l=Math.max(l,h/2);for(var d=0;d<h;++d){var p=f[d];r.push(+p)}}while(r.length%4!==0)r.push(0);return{array:new Float32Array(r),maxEdgePerVetex:l}},Gt=function(t,e,n,r){var i=[],o=[],a={},s=0;for(s=0;s<t.length;s++){var u=t[s];a[u.id]=s,i.push(u.x),i.push(u.y),i.push(0),i.push(0),o.push([])}for(s=0;s<e.length;s++){var l=e[s];o[a[l.source]].push(a[l.target]),o[a[l.source]].push(n(l)),o[a[l.source]].push(r(l)),o[a[l.source]].push(0),o[a[l.target]].push(a[l.source]),o[a[l.target]].push(n(l)),o[a[l.target]].push(r(l)),o[a[l.target]].push(0)}var c=0;for(s=0;s<t.length;s++){var f=i.length,h=o[s],d=h.length;i[4*s+2]=f+1048576*d/4,i[4*s+3]=0,c=Math.max(c,d/4);for(var p=0;p<d;++p){var g=h[p];i.push(+g)}}while(i.length%4!==0)i.push(0);return{array:new Float32Array(i),maxEdgePerVetex:c}},Wt=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)while(n.length%4!==0)n.push(0)}))})),{array:new Float32Array(n),count:Object.keys(i).length}},Vt=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)while(e.length%4!==0)e.push(0)}))},o=0;o<r;o++)i(o);return new Float32Array(e)},Yt=function(t,e){var n=["V","TB","BT"],r={x:1/0,y:1/0},i={x:-1/0,y:-1/0},o="x",a="y";e&&n.indexOf(e)>=0&&(a="x",o="y");var s=0;Zt(t,(function(t){return s++,t.x>i.x&&(i.x=t.x),t.x<r.x&&(r.x=t.x),t.y>i.y&&(i.y=t.y),t.y<r.y&&(r.y=t.y),!0}));var u=2*Math.PI/s,l=i[a]-r[a];return 0===l||Zt(t,(function(e){var n=(e[a]-r[a])/l*(2*Math.PI-u)+u,i=Math.abs("x"===o?e.x-t.x:e.y-t.y);return e.x=i*Math.cos(n),e.y=i*Math.sin(n),!0})),t},Xt=function t(){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(e){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(e){e=e||{};var n=void 0!==e.parent?e.parent:document.body,r=void 0!==e.id?e.id:"oldie",i=t().getWebGLErrorMessage();i.id=r,n.appendChild(i)}}},qt=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"},Kt=(0,s.__assign)((0,s.__assign)((0,s.__assign)((0,s.__assign)((0,s.__assign)({},u.Zr),r),i),o),a),Jt=Kt,Qt=Jt.radialLayout,te=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=zt()[e.type](t,e.config);return Qt(n),n}:this.layoutMethod=function(t){return zt()[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}(),ee=te;(0,Ft.registerLayout)("grid",Ft.GridLayout),(0,Ft.registerLayout)("random",Ft.RandomLayout),(0,Ft.registerLayout)("force",Ft.ForceLayout),(0,Ft.registerLayout)("circular",Ft.CircularLayout),(0,Ft.registerLayout)("dagre",Ft.DagreLayout),(0,Ft.registerLayout)("dagreCompound",Ft.DagreCompoundLayout),(0,Ft.registerLayout)("radial",Ft.RadialLayout),(0,Ft.registerLayout)("concentric",Ft.ConcentricLayout),(0,Ft.registerLayout)("mds",Ft.MDSLayout),(0,Ft.registerLayout)("fruchterman",Ft.FruchtermanLayout),(0,Ft.registerLayout)("fruchterman-gpu",Ft.FruchtermanGPULayout),(0,Ft.registerLayout)("gForce",Ft.GForceLayout),(0,Ft.registerLayout)("force2",Ft.Force2Layout),(0,Ft.registerLayout)("gForce-gpu",Ft.GForceGPULayout),(0,Ft.registerLayout)("comboForce",Ft.ComboForceLayout),(0,Ft.registerLayout)("comboCombined",Ft.ComboCombinedLayout),(0,Ft.registerLayout)("forceAtlas2",Ft.ForceAtlas2Layout);var ne=function(t,e){e.isCustomLayout=!0,Ft.Layouts[t]=(0,Ft.registerLayout)(t,e)},re=function(){function t(t,e){var n=t.toString(),r=new Blob(["importScripts('".concat(e,"');(").concat(n,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(r))}return t}(),ie=re,oe=function(t){function e(){var t={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};function e(e){var n=e.data.type;return n===t.RUN||n===t.GPURUN}function n(e){var n=this,r=e.data.type;switch(r){case t.RUN:var i,o=e.data,a=o.nodes,s=o.edges,u=o.layoutCfg,l=void 0===u?{}:u,c=l.type,f=layout.getLayoutByName(c);if(!f){this.postMessage({type:t.ERROR,message:"layout ".concat(c," not found")});break}l.onLayoutEnd=function(){n.postMessage({type:t.END,nodes:a}),null===i||void 0===i||i.destroy()},i=new f(l),i.init({nodes:a,edges:s}),i.execute();break;case t.GPURUN:var h=e.data,d=h.nodes,p=(s=h.edges,h.layoutCfg),g=(l=void 0===p?{}:p,h.canvas);c=l.type,f=layout.getLayoutByName(c);if(!f){this.postMessage({type:t.ERROR,message:"layout ".concat(c," not found")});break}if("gpu"!==c.split("-")[1]){this.postMessage({type:t.ERROR,message:"layout ".concat(c," does not support GPU")});break}var v=new f(l);v.init({nodes:d,edges:s}),v.executeWithWorker(g,this);break;default:break}}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(t){e(t)&&n(t)}}void 0===t&&(t="https://unpkg.com/@antv/layout@0.3.23/dist/layout.min.js");var n=new ie(e,t);return n},ae={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};function se(t){return se="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},se(t)}var ue=function(t){return setTimeout(t,16)},le=function(t){return clearTimeout(t)},ce={requestAnimationFrame:function(t){var e="undefined"!==typeof window&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||ue;return e(t)},cancelAnimationFrame:function(t){var e="undefined"!==typeof window&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||le;return e(t)}},fe=["fruchterman","gForce"],he=["force","grid","circular"],de=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(0,s.__extends)(e,t),e.prototype.initLayout=function(){},e.prototype.getWorker=function(){return this.worker||("undefined"===typeof Worker?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=oe(this.layoutCfg.workerScriptURL)),this.worker},e.prototype.stopWorker=function(){var t=this.workerData;this.worker&&(this.worker.terminate(),this.worker=null,t.requestId&&(ce.cancelAnimationFrame(t.requestId),t.requestId=null),t.requestId2&&(ce.cancelAnimationFrame(t.requestId2),t.requestId2=null))},e.prototype.execLayoutMethod=function(t,e){var n=this;return new Promise((function(r,i){return(0,s.__awaiter)(n,void 0,void 0,(function(){var n,o,a,l,c,f,h,d,p,g;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:if(n=this.graph,!n||n.get("destroyed"))return[2];o=t.type,t.onLayoutEnd=function(){n.emit("aftersublayout",{type:o}),r()},o&&this.isGPU&&(be(o)?o="".concat(o,"-gpu"):console.warn("The '".concat(o,"' layout does not support GPU calculation for now, it will run in CPU."))),u.Zr.isForce(o)?(a=t.onTick,l=t.animate,c=void 0===l&&("force"===o||"force2"===o),p=function(){a&&a(),(l||c)&&n.refreshPositions()},t.tick=p):"comboForce"!==o&&"comboCombined"!==o||(t.comboTrees=n.get("comboTrees")),f=!1;try{h=new Ft.Layouts[o](t),this.layoutMethods[e]&&this.layoutMethods[e].destroy(),this.layoutMethods[e]=h}catch(v){console.warn("The layout method: '".concat(o,"' does not exist! Please specify it first.")),i()}return f=h.enableTick,f&&(d=t.onTick,p=function(){d&&d(),n.refreshPositions()},h.tick=p),g=this.filterLayoutData(this.data,t),ye(g,e),h.init(g),n.emit("beforesublayout",{type:o}),[4,h.execute()];case 1:return s.sent(),h.isCustomLayout&&t.onLayoutEnd&&t.onLayoutEnd(),[2]}}))}))}))},e.prototype.updateLayoutMethod=function(t,e){var n=this;return new Promise((function(r,i){return(0,s.__awaiter)(n,void 0,void 0,(function(){var n,i,o,a,l,c,f;return(0,s.__generator)(this,(function(s){switch(s.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()},u.Zr.isForce(i)&&(o=e.onTick,a=e.animate,l=void 0===a&&("force"===i||"force2"===i),c=function(){null===o||void 0===o||o(),(a||l)&&n.refreshPositions()},e.tick=c),f=this.filterLayoutData(this.data,e),t.init(f),t.updateCfg(e),n.emit("beforesublayout",{type:i}),[4,t.execute()];case 1:return s.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 u=r.get("width"),l=r.get("height"),c={};Object.assign(c,{width:u,height:l,center:[u/2,l/2]},this.layoutCfg),this.layoutCfg=c;var f=c.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 p=Promise.resolve();h&&f&&1===(null===d||void 0===d?void 0:d.length)&&d[0]===f?this.tweakInit():p=this.initPositions(c.center,o);var g=this.initPositions(c.center,a);g.then(),this.isGPU=xe(c,f);var v=c.onLayoutEnd,m=c.layoutEndFormatted,y=c.adjust;if(m||(c.layoutEndFormatted=!0,c.onAllLayoutEnd=function(){return(0,s.__awaiter)(n,void 0,void 0,(function(){return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return v&&v(o),this.refreshLayout(),y&&c.pipes?[4,this.adjustPipesBox(this.data,y)]:[3,2];case 1:t.sent(),this.refreshLayout(),t.label=2;case 2:return r.emit("afterlayout"),[2]}}))}))}),this.stopWorker(),c.workerEnabled&&this.layoutWithWorker(this.data,t))return!0;var b=!1;return c.type?(b=!0,p=p.then((function(){return(0,s.__awaiter)(n,void 0,void 0,(function(){return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return[4,this.execLayoutMethod(c,0)];case 1:return[2,t.sent()]}}))}))}))):c.pipes&&(b=!0,c.pipes.forEach((function(t,e){p=p.then((function(){return(0,s.__awaiter)(n,void 0,void 0,(function(){return(0,s.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.execLayoutMethod(t,e)];case 1:return[2,n.sent()]}}))}))}))}))),b?p.then((function(){c.onAllLayoutEnd&&c.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,e=t.data,n=t.graph,r=e.nodes,i=e.edges;if(null===r||void 0===r?void 0:r.length){var o={};r.forEach((function(t){var e=t.x,n=t.y;isNaN(e)||isNaN(n)||(o[t.id]={x:e,y:n},t.mass=t.mass||2)})),i.forEach((function(t){var e=t.source,n=t.target,r=o[e],i=o[n];!r&&i?o[e]={x:i.x+80*(Math.random()-.5),y:i.y+80*(Math.random()-.5)}:!i&&r&&(o[n]={x:r.x+80*(Math.random()-.5),y:r.y+80*(Math.random()-.5)})}));var a=n.get("width"),s=n.get("height");r.forEach((function(t){var e=o[t.id]||{x:a/2+20*(Math.random()-.5),y:s/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(0,s.__awaiter)(n,void 0,void 0,(function(){var n,i,o,a,u,l,c;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return n=this,i=n.layoutCfg,o=n.data,a=i.preset,(null===a||void 0===a?void 0:a.type)&&Ft.Layouts[null===a||void 0===a?void 0:a.type]?(u=xe(a,a.type),l=u?"".concat(a.type,"-gpu"):a.type,c=new Ft.Layouts[l](a),delete i.preset,c.init(o),[4,c.execute()]):(null===e||void 0===e||e(),r(),[2,!1]);case 1:return s.sent(),null===t||void 0===t||t(),r(),[2,!0]}}))}))}))},e.prototype.layoutWithWorker=function(t,e){var n=this,r=this,i=r.layoutCfg,o=r.graph,a=this.getWorker(),s=this.workerData;if(!a)return!1;s.requestId=null,s.requestId2=null,s.currentTick=null,s.currentTickData=null,o.emit("beforelayout");var u=Promise.resolve(),l=!1;if(i.type)l=!0,u=u.then((function(){return n.runWebworker(a,t,i)}));else if(i.pipes){l=!0;for(var c=function(e){u=u.then((function(){return n.runWebworker(a,t,e)}))},f=0,h=i.pipes;f<h.length;f++){var d=h[f];c(d)}}return l&&u.then((function(){i.onAllLayoutEnd&&i.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,u=document.createElement("canvas"),l=i&&"undefined"!==typeof window&&window.navigator&&!navigator["gpu"]&&"OffscreenCanvas"in window&&"transferControlToOffscreen"in u,c=ve(n,(function(t){return"function"!==typeof t}));if(l){var f=u.transferControlToOffscreen();c.type="".concat(c.type,"-gpu"),t.postMessage({type:ae.GPURUN,nodes:a,edges:s,layoutCfg:c,canvas:f},[f])}else t.postMessage({type:ae.RUN,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,a=o.graph,s=o.workerData,u=n.data,l=u.type,c=function(){i.onTick&&i.onTick()};switch(l){case ae.TICK:s.currentTick=u.currentTick,s.currentTickData=u,s.requestId||(s.requestId=ce.requestAnimationFrame((function(){ge(r,u),a.refreshPositions(),c(),u.currentTick===u.totalTicks?t():s.currentTick===u.totalTicks&&(s.requestId2=ce.requestAnimationFrame((function(){ge(r,s.currentTickData),a.refreshPositions(),s.requestId2=null,c(),t()}))),s.requestId=null})));break;case ae.END:null==s.currentTick&&(ge(r,u),t());break;case ae.GPUEND:null==s.currentTick&&(me(r,u),t());break;case ae.ERROR:console.warn("Web-Worker layout error!",u.message),e();break;default:e();break}},e.prototype.updateLayoutCfg=function(t){var e=this,n=this,r=n.graph,i=n.layoutMethods;if(r&&!r.get("destroyed")){var o=t.disableTriggerLayout,a=(0,s.__rest)(t,["disableTriggerLayout"]),u=(0,p.mix)({},this.layoutCfg,a);if(this.layoutCfg=u,!o)if(null===i||void 0===i?void 0:i.length){if(this.data=this.setDataFromGraph(),this.stopWorker(),!a.workerEnabled||!this.layoutWithWorker(this.data,null)){r.emit("beforelayout");var l=Promise.resolve(),c=!1;1===(null===i||void 0===i?void 0:i.length)?(c=!0,l=l.then((function(){return(0,s.__awaiter)(e,void 0,void 0,(function(){return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return[4,this.updateLayoutMethod(i[0],u)];case 1:return[2,t.sent()]}}))}))}))):(null===i||void 0===i?void 0:i.length)&&(c=!0,i.forEach((function(t,n){var r=u.pipes[n];l=l.then((function(){return(0,s.__awaiter)(e,void 0,void 0,(function(){return(0,s.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.updateLayoutMethod(t,r)];case 1:return[2,e.sent()]}}))}))}))}))),c&&l.then((function(){u.onAllLayoutEnd&&u.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(),he.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,u=a.layoutNodes,l=(0,p.clone)(u);o.onLayoutEnd=function(){null===u||void 0===u||u.forEach((function(t,e){var n,r,i,o=t.x-(null===(n=l[e])||void 0===n?void 0:n.x),a=t.y-(null===(r=l[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()};var c=new Ft.Layouts[e](o);c.layout({nodes:u})}))},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}(u.Wv),pe=de;function ge(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 ve(t,e){var n={};return t&&"object"===se(t)?(Object.keys(t).forEach((function(r){t.hasOwnProperty(r)&&e(t[r])&&(n[r]=t[r])})),n):t}function me(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],u=r[4*o+1];a.x=s,a.y=u}}function ye(t,e){var n;if(null===(n=null===t||void 0===t?void 0:t.nodes)||void 0===n?void 0:n.length){var r=t.nodes;r.forEach((function(t){t.layoutOrder=e}))}}function be(t){return fe.includes(t)}function xe(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,Xt().webgl||(console.warn("Your browser does not support webGL or GPGPU. The layout will run in CPU."),r=!1)),r&&!be(n)&&(console.warn("The '".concat(n,"' layout does not support GPU calculation for now, it will run in CPU.")),r=!1),r}var _e=d.vs,we="svg",Se=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(0,s.__extends)(e,t),e.prototype.initLayoutController=function(){var t=new pe(this);this.set({layoutController:t})},e.prototype.initEventController=function(){var t=new jt(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=t.clientWidth,n=t.clientHeight,r=this.get("width")||e,i=this.get("height")||n;this.get("width")||this.get("height")||(this.set("width",e),this.set("height",n));var o,a=this.get("renderer");if(a===we)o=new h.Canvas({container:t,width:r,height:i});else{var s={container:t,width:r,height:i},u=this.get("pixelRatio");u&&(s.pixelRatio=u,window.devicePixelRatio=u),o=new f.Canvas(s)}this.set("canvas",o)},e.prototype.initPlugins=function(){var t=this;(0,p.each)(t.get("plugins"),(function(e){!e.destroyed&&e.initPlugin&&e.initPlugin(t)}))},e.prototype.downloadImageWatermark=function(t,e,n,r){return(0,s.__awaiter)(this,void 0,void 0,(function(){var i,o,a;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return i=t.style.backgroundImage,o=i.slice(5,i.length-2),a=new Image,a.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,u=document.querySelector(".g6-graph-watermarker"),l=this.get("canvas"),c=l.getRenderer(),f=o||l.get("el"),h="";t||(t="image/png"),setTimeout((function(){return(0,s.__awaiter)(a,void 0,void 0,(function(){var o,a,l,d,p,g,v,m,y,b;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return"svg"!==c?[3,1]:(o=f.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),l.replaceChild(o,l.documentElement),d=(new XMLSerializer).serializeToString(l),h="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(d)),[3,4]);case 1:return p=void 0,g=f.getContext("2d"),v=r||this.get("width"),m=i||this.get("height"),y=void 0,u?[4,this.downloadImageWatermark(u,g,v,m)]:[3,3];case 2:s.sent(),s.label=3;case 3:if(e){b="undefined"!==typeof window?window.devicePixelRatio:1;try{p=g.getImageData(0,0,v*b,m*b),y=g.globalCompositeOperation,g.globalCompositeOperation="destination-over",g.fillStyle=e,g.fillRect(0,0,v,m)}catch(x){console.error("Download image failed. Out of memory at ImageData creation")}}h=f.toDataURL(t),e&&(g.clearRect(0,0,v,m),g.putImageData(p,0,0),g.globalCompositeOperation=y),s.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"),u=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",s);u.replaceChild(a,u.documentElement);var l=(new XMLSerializer).serializeToString(u);o="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(l))}else{var c=void 0,f=i.getContext("2d"),h=Math.max(this.get("width"),500),d=Math.max(this.get("height"),500),p=void 0;if(e){var g="undefined"!==typeof window&&window.devicePixelRatio||1;try{c=f.getImageData(0,0,h*g,d*g),p=f.globalCompositeOperation,f.globalCompositeOperation="destination-over",f.fillStyle=e,f.fillRect(0,0,h,d)}catch(v){console.error("Download image failed. Out of memory at ImageData creation")}}o=i.toDataURL(t),e&&(f.clearRect(0,0,h,d),f.putImageData(c,0,0),f.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=(0,g.Z)('<div id="virtual-image"></div>'),u=n?n.backgroundColor:void 0,l=n?n.padding:void 0;l?(0,p.isNumber)(l)&&(l=[l,l,l,l]):l=[0,0,0,0];var c=i+l[0]+l[2],d=o+l[1]+l[3],v={container:s,height:c,width:d,quickHit:!0},m="svg"===a?new h.Canvas(v):new f.Canvas(v),y=this.get("group"),b=y.clone(),x=(0,p.clone)(b.getMatrix());x||(x=[1,0,0,0,1,0,0,0,1]);var _=(r.maxX+r.minX)/2,w=(r.maxY+r.minY)/2;x=_e(x,[["t",-_,-w],["t",o/2+l[3],i/2+l[0]]]),b.resetMatrix(),b.setMatrix(x),m.add(b);var S=m.get("el"),E="";e||(e="image/png"),setTimeout((function(){if("svg"===a){var n=S.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);E="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(o))}else{var s=void 0,l=S.getContext("2d"),f=void 0;if(u){var h="undefined"!==typeof window?window.devicePixelRatio:1;try{s=l.getImageData(0,0,d*h,c*h),f=l.globalCompositeOperation,l.globalCompositeOperation="destination-over",l.fillStyle=u,l.fillRect(0,0,d,c)}catch(p){console.error("Download image failed. Out of memory at ImageData creation")}}E=S.toDataURL(e),u&&(l.clearRect(0,0,d,c),l.putImageData(s,0,0),l.globalCompositeOperation=f)}t&&t(E)}),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"),u=(0,g.Z)('<div id="virtual-image"></div>'),l=document.querySelector(".g6-graph-watermarker"),c=n?n.backgroundColor:void 0,d=n?n.padding:void 0;d?(0,p.isNumber)(d)&&(d=[d,d,d,d]):d=[0,0,0,0];var v=o+d[0]+d[2],m=a+d[1]+d[3];if(l){var y=this.get("graphWaterMarker").cfg||{},b=y.width,x=y.height;v=Math.ceil(v/x)*x,m=Math.ceil(m/b)*b}var _={container:u,height:v,width:m},w="svg"===s?new h.Canvas(_):new f.Canvas(_),S=this.get("group"),E=Ot(S),T=(0,p.clone)(E.getMatrix());T||(T=[1,0,0,0,1,0,0,0,1]);var k=(i.maxX+i.minX)/2,C=(i.maxY+i.minY)/2;T=_e(T,[["t",-k,-C],["t",a/2+d[3],o/2+d[0]]]),E.resetMatrix(),E.setMatrix(T),w.add(E);var M=w.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)}),m,v,M)},e.prototype.downloadImage=function(t,e,n){var r=this,i=this;i.stopAnimate();var o=i.get("canvas"),a=o.getRenderer();e||(e="image/png");var s=(t||"graph")+("svg"===a?".svg":".".concat(e.split("/")[1])),u=document.createElement("a");i.asyncToDataUrl(e,n,(function(t){r.dataURLToImage(t,a,u,s);var e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),u.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])}var s=atob(i[1]),u=s.length,l=new Uint8Array(u);while(u--)l[u]=s.charCodeAt(u);var c=new Blob([l],{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){var e=this;t.destroyed||(e.get("plugins").push(t),t.initPlugin(e))},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=It.waterMarkerImage);var n=this.get("container");(0,p.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var r=this.get("graphWaterMarker"),i=(0,p.deepMix)({},It.imageWaterMarkerConfig,e),o=i.width,a=i.height,s=i.compatible,u=i.image;if(!t){var l=s?n:document.querySelector(".g6-graph-watermarker");return l&&(l.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 f.Canvas(c),this.set("graphWaterMarker",r)}r.get("el").style.display="none";var d=r.get("context"),g=u.rotate,v=u.x,m=u.y;d.rotate(-g*Math.PI/180);var y=new Image;y.crossOrigin="anonymous",y.src=t,y.onload=function(){if(d.drawImage(y,v,m,u.width,u.height),d.rotate(g*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"),t.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");(0,p.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var r=this.get("graphWaterMarker"),i=(0,p.deepMix)({},It.textWaterMarkerConfig,e),o=i.width,a=i.height,s=i.compatible,u=i.text;if(!(null===t||void 0===t?void 0:t.length)){var l=s?n:document.querySelector(".g6-graph-watermarker");return l&&(l.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 f.Canvas(c),this.set("graphWaterMarker",r)}r.get("el").style.display="none";var d=r.get("context"),g=u.rotate,v=u.fill,m=u.fontFamily,y=u.fontSize,b=u.baseline,x=u.x,_=u.y,w=u.lineHeight;d.rotate(-g*Math.PI/180),d.font="".concat(y,"px ").concat(m),d.fillStyle=v,d.textBaseline=b;for(var S=(0,p.isString)(t)?[t]:t,E=S.length-1;E>=0;E--)d.fillText(S[E],x,_+E*w);if(d.rotate(g*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"),T.className="g6-graph-watermarker"),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:99;"),n.appendChild(T)}},e.prototype.destroy=function(){var e,n,r,i;(0,p.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 u=s.parentElement;u&&u.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}(u.MF),Ee=Se;function Te(t){return Te="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},Te(t)}function ke(t,e){if(void 0===e&&(e=new WeakMap),null===t)return t;if(t instanceof Date)return new Date(t);if(t instanceof RegExp)return new RegExp(t);if("object"!==Te(t))return t;if(e.get(t))return e.get(t);var n=Array.isArray(t)?[]:{};for(var r in e.set(t,n),t)t.hasOwnProperty(r)&&void 0!==t[r]&&(n[r]=ke(t[r],e));return n}function Ce(t){try{return structuredClone(t)}catch(e){return ke(t)}}var Me=Jt.radialLayout,Ae=Jt.traverseTree,Ie=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(0,s.__extends)(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=zt()[t.type](e,t);return Me(n),n}:function(e){return zt()[t.type](e,t)}):null},e.indexOfChild=function(t,e){var n=-1;return(0,p.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 u=e.get("children");u?u.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(0,p.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){(0,p.each)(t.children||[],(function(t){i.innerUpdateChild(t,o,r)}));var a,s,u=o.get("children");if(u){var l=u.length;if(l>0)for(var c=u.length-1;c>=0;c--){var f=u[c].getModel();-1===e.indexOfChild(t.children||[],f.id)&&(i.innerRemoveChild(f.id,{x:t.x,y:t.y},r),u.splice(c,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((0,p.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");var e=this;e.updateLayout(t)},e.prototype.updateLayout=function(t,e,n,r){void 0===r&&(r=!0);var i=this;if(t){if(r&&this.get("enabledStack")&&this.pushStack("layout",{before:i.get("layout"),after:t}),i.set("layout",t),i.set("layoutMethod",i.getLayout()),i.layout(),e){var o=n;o||(o="begin"===e?{x:0,y:0}:{x:this.getWidth()/2,y:this.getHeight()/2}),o=this.getPointByCanvas(o.x,o.y);var a=this.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];o.x=o.x*a[0]+a[6],o.y=o.y*a[0]+a[7];var s=this.getGroup().getCanvasBBox(),u=s.minX,l=s.maxX,c=s.minY,f=s.maxY,h={x:(u+l)/2,y:(c+f)/2};"begin"===e&&(h.x=u,h.y=c),this.translate(o.x-h.x,o.y-h.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");var e=this;e.layout(t)},e.prototype.layout=function(t){var e=this,n=this,r=n.get("data"),i=n.get("layoutMethod"),o=n.get("layout"),a=r;if(null===o||void 0===o?void 0:o.excludeInvisibles){r=(0,p.clone)(n.get("data"));var s={};Ae(r,(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),o=i?!i.isVisible():!1===n[r].visible;o&&(s[t.id]=s[t.id]||[],s[t.id].push({idx:r,child:n.splice(r,1)[0]}))}})),a=i?i(r,n.get("layout")):r,Ae(a,(function(t){var e=s[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 a=i?i(r,n.get("layout")):r;var u=n.get("animate");if(n.emit("beforerefreshlayout",{data:r,layoutData:a}),n.emit("beforelayout"),n.innerUpdateChild(a,void 0,u),t){var l=n.get("viewController");l.fitView()}u?n.layoutAnimate(a):(n.refresh(),n.paint()),n.emit("afterrefreshlayout",{data:r,layoutData:a}),n.emit("afterlayout")},e.prototype.addChild=function(t,e,n){void 0===n&&(n=!0);var r=this;r.emit("beforeaddchild",{model:t,parent:e}),(0,p.isString)(e)||(e=e.get("id"));var i=r.findDataById(e);if(i){i.children||(i.children=[]),i.children.push(t);var o=r.findById(e);o.refresh(),r.changeData(void 0,n)}},e.prototype.updateChildren=function(t,e,n){void 0===n&&(n=!0);var r=this,i=r.findById(e);if(e&&i){var o=r.findDataById(e);o.children=t,i.refresh(),r.changeData(void 0,n)}else 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);var i=this;if(n&&i.findById(n)){var o=i.findDataById(n),a=i.findById(t.id);if(o.children||(o.children=[]),a){var s=e.indexOfChild(o.children,t.id);s>-1&&(o.children[s]=t)}else o.children.push(t);var u=i.findById(n);null===u||void 0===u||u.refresh(),i.changeData(void 0,r)}else i.changeData(t,r)},e.prototype.removeChild=function(t,n){void 0===n&&(n=!0);var r,i=this,o=i.findById(t);if(r=o?null===o||void 0===o?void 0:o.get("parent"):i.getNodes().find((function(e){var n=e.getModel().children||[];return!!n.find((function(e){return e.id===t}))})),r&&!r.destroyed){var a=r.get("id"),s=i.findDataById(a),u=s&&s.children||[],l=e.indexOfChild(u,t);u.splice(l,1),r.refresh()}i.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(0,p.each)(e.children||[],(function(e){return e.id===t?(r=e,!1):(r=n.findDataById(t,e),!r&&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){Ae(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 u=e(o,r,a,t);o.set("model",Object.assign(s,u))}else s.x=a.x+(i.x-a.x)*r,s.y=a.y+(i.y-a.y)*r}return!0})),(0,p.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(){(0,p.each)(n.getNodes(),(function(t){t.set("originAttrs",null)})),(0,p.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,n=e.get("data");if(!n||!(0,p.isObject)(n)||!Object.keys(n).length)throw new Error("data must be defined first");e.clear(),t&&this.get("enabledStack")&&this.clearStack(),e.emit("beforerender"),e.layout(this.get("fitView")),e.emit("afterrender")},e.prototype.save=function(){return this.get("data")},e.prototype.data=function(e){t.prototype.data.call(this,e),this.set("originData",Ce(e))},e}(Ee),Oe=Ie,De=n(70549),Pe=De.ZP;(0,u.iZ)("circle",{options:{size:u.Pi.defaultNode.size,style:{x:0,y:0,stroke:u.Pi.defaultNode.style.stroke,fill:u.Pi.defaultNode.style.fill,lineWidth:u.Pi.defaultNode.style.lineWidth},labelCfg:{style:{fill:u.Pi.nodeLabel.style.fill,fontSize:u.Pi.nodeLabel.style.fontSize,fontFamily:u.Pi.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:u.Pi.defaultNode.linkPoints.size,lineWidth:u.Pi.defaultNode.linkPoints.lineWidth,fill:u.Pi.defaultNode.linkPoints.fill,stroke:u.Pi.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:(0,s.__assign)({},u.Pi.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=(0,p.deepMix)({},r,t.icon),a="".concat(this.type,"-keyShape"),u=e.addShape("circle",{attrs:i,className:a,name:a,draggable:!0});e["shapeMap"][a]=u;var l=o.width,c=o.height,f=o.show,h=o.text;if(f){var d="".concat(this.type,"-icon");e["shapeMap"][d]=h?e.addShape("text",{attrs:(0,s.__assign)({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:(0,s.__assign)({x:-l/2,y:-c/2},o),className:d,name:d,draggable:!0})}return this.drawLinkPoints(t,e),u},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,u=r.bottom,l=r.size,c=r.r,f=(0,s.__rest)(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0]/2;if(o){var p="link-point-left";e["shapeMap"][p]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:-d,y:0,r:l/2||c||5}),className:p,name:p,isAnchorPoint:!0})}if(a){var g="link-point-right";e["shapeMap"][g]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:d,y:0,r:l/2||c||5}),className:g,name:g,isAnchorPoint:!0})}if(i){var v="link-point-top";e["shapeMap"][v]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:0,y:-d,r:l/2||c||5}),className:v,name:v,isAnchorPoint:!0})}if(u){var m="link-point-bottom";e["shapeMap"][m]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:0,y:d,r:l/2||c||5}),className:m,name:m,isAnchorPoint:!0})}}},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,p.deepMix)({},e,n),i=this.getSize(t),o=i[0]/2,a=(0,s.__assign)({x:0,y:0,r:o},r);return a},update:function(t,e,n){var r=e.getContainer(),i=this.getSize(t),o=(0,s.__assign)({},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"),(0,u.iZ)("rect",{options:{size:[100,30],style:{radius:0,stroke:u.Pi.defaultNode.style.stroke,fill:u.Pi.defaultNode.style.fill,lineWidth:u.Pi.defaultNode.style.lineWidth},labelCfg:{style:{fill:u.Pi.nodeLabel.style.fill,fontSize:u.Pi.nodeLabel.style.fontSize,fontFamily:u.Pi.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:u.Pi.defaultNode.linkPoints.size,lineWidth:u.Pi.defaultNode.linkPoints.lineWidth,fill:u.Pi.defaultNode.linkPoints.fill,stroke:u.Pi.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:(0,s.__assign)({},u.Pi.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,u=r.bottom,l=r.size,c=r.r,f=(0,s.__rest)(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0],p=h[1];o&&(e["shapeMap"]["link-point-left"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:-d/2,y:0,r:l/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e["shapeMap"]["link-point-right"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:d/2,y:0,r:l/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e["shapeMap"]["link-point-top"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:0,y:-p/2,r:l/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e["shapeMap"]["link-point-bottom"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:0,y:p/2,r:l/2||c||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=(0,p.mix)({},e,n),i=this.getSize(t),o=r.width||i[0],a=r.height||i[1],u=(0,s.__assign)({x:-o/2,y:-a/2,width:o,height:a},r);return u},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]},u=(0,p.mix)({},i,a.attr(),s);u=(0,p.mix)(u,t.style),this.updateShape(t,e,u,!1,n),this.updateLinkPoints(t,r)}},"single-node"),(0,u.iZ)("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:u.Pi.defaultNode.style.stroke,fill:u.Pi.defaultNode.style.fill,lineWidth:u.Pi.defaultNode.style.lineWidth},labelCfg:{style:{fill:u.Pi.nodeLabel.style.fill,fontSize:u.Pi.nodeLabel.style.fontSize,fontFamily:u.Pi.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:u.Pi.defaultNode.linkPoints.size,lineWidth:u.Pi.defaultNode.linkPoints.lineWidth,fill:u.Pi.defaultNode.linkPoints.fill,stroke:u.Pi.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:(0,s.__assign)({},u.Pi.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,u=r.height,l=r.show,c=r.text;return l&&(e["shapeMap"]["".concat(this.type,"-icon")]=c?e.addShape("text",{attrs:(0,s.__assign)({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:(0,s.__assign)({x:-a/2,y:-u/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,u=r.bottom,l=r.size,c=r.r,f=(0,s.__rest)(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0]/2,p=h[1]/2;o&&(e["shapeMap"]["link-point-left"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:-d,y:0,r:l/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e["shapeMap"]["link-point-right"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:d,y:0,r:l/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e["shapeMap"]["link-point-top"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:0,y:-p,r:l/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e["shapeMap"]["link-point-bottom"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:0,y:p,r:l/2||c||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=(0,p.mix)({},e,n),i=this.getSize(t),o=i[0]/2,a=i[1]/2,u=(0,s.__assign)({x:0,y:0,rx:o,ry:a},r);return u},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"),u=(0,p.mix)({},i,s.attr(),a);u=(0,p.mix)(u,t.style),this.updateShape(t,e,u,!0,n),this.updateLinkPoints(t,r)}},"single-node"),(0,u.iZ)("diamond",{options:{size:[80,80],style:{stroke:u.Pi.defaultNode.style.stroke,fill:u.Pi.defaultNode.style.fill,lineWidth:u.Pi.defaultNode.style.lineWidth},labelCfg:{style:{fill:u.Pi.nodeLabel.style.fill,fontSize:u.Pi.nodeLabel.style.fontSize,fontFamily:u.Pi.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:u.Pi.defaultNode.linkPoints.size,lineWidth:u.Pi.defaultNode.linkPoints.lineWidth,fill:u.Pi.defaultNode.linkPoints.fill,stroke:u.Pi.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:(0,s.__assign)({},u.Pi.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,u=r.height,l=r.show,c=r.text;return l&&(e["shapeMap"]["".concat(this.type,"-icon")]=c?e.addShape("text",{attrs:(0,s.__assign)({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:(0,s.__assign)({x:-a/2,y:-u/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,u=r.bottom,l=r.size,c=r.r,f=(0,s.__rest)(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0],p=h[1];o&&(e["shapeMap"]["link-point-left"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:-d/2,y:0,r:l/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e["shapeMap"]["link-point-right"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:d/2,y:0,r:l/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e["shapeMap"]["link-point-top"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:0,y:-p/2,r:l/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e["shapeMap"]["link-point-bottom"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:0,y:p/2,r:l/2||c||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],i=[["M",0,-r/2],["L",n/2,0],["L",0,r/2],["L",-n/2,0],["Z"]];return i},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,p.mix)({},e,n),i=this.getPath(t),o=(0,s.__assign)({path:i},r);return o},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"),u=(0,p.mix)({},i,s.attr(),a);u=(0,p.mix)(u,t.style),this.updateShape(t,e,u,!0,n),this.updateLinkPoints(t,r)}},"single-node"),(0,u.iZ)("triangle",{options:{size:40,direction:"up",style:{stroke:u.Pi.defaultNode.style.stroke,fill:u.Pi.defaultNode.style.fill,lineWidth:u.Pi.defaultNode.style.lineWidth},labelCfg:{style:{fill:u.Pi.nodeLabel.style.fill,fontSize:u.Pi.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:u.Pi.defaultNode.linkPoints.size,lineWidth:u.Pi.defaultNode.linkPoints.lineWidth,fill:u.Pi.defaultNode.linkPoints.fill,stroke:u.Pi.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:(0,s.__assign)({},u.Pi.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),u=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 c=i.width,f=i.height,h=i.show,d=i.offset,p=i.text;if(h)if(p)e["shapeMap"]["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,s.__assign)({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 g=-c/2,v=-f/2;"up"!==u&&"down"!==u||(v+=d),"left"!==u&&"right"!==u||(g+=d),e["shapeMap"]["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,s.__assign)({x:g,y:v},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,u=i.top,l=i.left,c=i.right,f=i.bottom,h=i.size,d=i.r,p=(0,s.__rest)(i,["top","left","right","bottom","size","r"]),g=this.getSize(t),v=g[0];if(l){var m=null,y=v*Math.sin(1/3*Math.PI),b=v*Math.sin(1/3*Math.PI);"up"===a?m=[-b,y]:"down"===a?m=[-b,-y]:"left"===a&&(m=[-b,b-y]),m&&(e["shapeMap"]["link-point-left"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},p),{x:m[0],y:m[1],r:h/2||d||5}),className:"link-point-left",name:"link-point-left"}))}if(c){var x=null;y=v*Math.sin(1/3*Math.PI),b=v*Math.sin(1/3*Math.PI);"up"===a?x=[b,y]:"down"===a?x=[b,-y]:"right"===a&&(x=[b,b-y]),x&&(e["shapeMap"]["link-point-right"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},p),{x:x[0],y:x[1],r:h/2||d||5}),className:"link-point-right",name:"link-point-right"}))}if(u){var _=null;y=v*Math.sin(1/3*Math.PI),b=v*Math.sin(1/3*Math.PI);"up"===a?_=[b-y,-y]:"left"===a?_=[b,-y]:"right"===a&&(_=[-b,-y]),_&&(e["shapeMap"]["link-point-top"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},p),{x:_[0],y:_[1],r:h/2||d||5}),className:"link-point-top",name:"link-point-top"}))}if(f){var w=null;y=v*Math.sin(1/3*Math.PI),b=v*Math.sin(1/3*Math.PI);"down"===a?w=[-b+y,y]:"left"===a?w=[b,y]:"right"===a&&(w=[-b,y]),w&&(e["shapeMap"]["link-point-bottom"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},p),{x:w[0],y:w[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),i=r[0],o=i*Math.sin(1/3*Math.PI),a=i*Math.sin(1/3*Math.PI),s=[["M",-a,o],["L",0,-o],["L",a,o],["Z"]];return"down"===n?s=[["M",-a,-o],["L",a,-o],["L",0,o],["Z"]]:"left"===n?s=[["M",-a,a-o],["L",a,-a],["L",a,a],["Z"]]:"right"===n&&(s=[["M",a,a-o],["L",-a,a],["L",-a,-a],["Z"]]),s},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,p.mix)({},e,n),i=this.getPath(t),o=(0,s.__assign)({path:i},r);return o},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"),u=(0,p.mix)({},i,s.attr(),a);u=(0,p.mix)(u,t.style),this.updateShape(t,e,u,!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")})),u=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")})),c=e["shapeMap"]["link-point-bottom"]||e.find((function(t){return"link-point-bottom"===t.get("className")})),f=r,h=a||u||l||c;h&&(f=h.attr());var d=(0,p.mix)({},f,t.linkPoints),g=d.fill,v=d.stroke,m=d.lineWidth,y=d.size/2;y||(y=d.r);var b=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},x=b.left,_=b.right,w=b.top,S=b.bottom,E=this.getSize(t),T=E[0],k={r:y,fill:g,stroke:v,lineWidth:m},C=null,M=T*Math.sin(1/3*Math.PI),A=T*Math.sin(1/3*Math.PI);"up"===o?C=[-A,M]:"down"===o?C=[-A,-M]:"left"===o&&(C=[-A,A-M]),C&&(a?x||void 0===x?a.attr((0,s.__assign)((0,s.__assign)({},k),{x:C[0],y:C[1]})):(a.remove(),delete e["shapeMap"]["link-point-left"]):x&&(e["shapeMap"]["link-point-left"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},k),{x:C[0],y:C[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var I=null;"up"===o?I=[A,M]:"down"===o?I=[A,-M]:"right"===o&&(I=[A,A-M]),I&&(u?_||void 0===_?u.attr((0,s.__assign)((0,s.__assign)({},k),{x:I[0],y:I[1]})):(u.remove(),delete e["shapeMap"]["link-point-right"]):_&&(e["shapeMap"]["link-point-right"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},k),{x:I[0],y:I[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var O=null;"up"===o?O=[A-M,-M]:"left"===o?O=[A,-M]:"right"===o&&(O=[-A,-M]),O&&(l?w||void 0===w?l.attr((0,s.__assign)((0,s.__assign)({},k),{x:O[0],y:O[1]})):(l.remove(),delete e["shapeMap"]["link-point-top"]):w&&(e["shapeMap"]["link-point-top"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},k),{x:O[0],y:O[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var D=null;"down"===o?D=[-A+M,M]:"left"===o?D=[A,M]:"right"===o&&(D=[-A,M]),D&&(c?S||void 0===S?c.attr((0,s.__assign)((0,s.__assign)({},k),{x:D[0],y:D[1]})):(c.remove(),delete e["shapeMap"]["link-point-bottom"]):S&&(e["shapeMap"]["link-point-bottom"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},k),{x:D[0],y:D[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})))}},"single-node"),(0,u.iZ)("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:u.Pi.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:u.Pi.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:u.Pi.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],u=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 c=r.show,f=(0,s.__rest)(r,["show"]);return c&&(e["shapeMap"]["pre-rect"]=e.addShape("rect",{attrs:(0,s.__assign)({x:-a/2,y:-u/2,height:u},f),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),o=i[0];if(r.show){var a=r.width,u=r.height,l=r.x,c=r.y,f=r.offset,h=r.text,d=(0,s.__rest)(r,["width","height","x","y","offset","text"]);e["shapeMap"]["rect-logo-icon"]=h?e.addShape("text",{attrs:(0,s.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):e.addShape("image",{attrs:(0,s.__assign)((0,s.__assign)({},d),{x:l||-o/2+a+f,y:c||-u/2,width:a,height:u}),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),o=i[0];if(r.show){var a=r.width,u=r.height,l=r.x,c=r.y,f=r.offset,h=r.text,d=(0,s.__rest)(r,["width","height","x","y","offset","text"]);e["shapeMap"]["rect-state-icon"]=h?e.addShape("text",{attrs:(0,s.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):e.addShape("image",{attrs:(0,s.__assign)((0,s.__assign)({},d),{x:l||o/2-a+f,y:c||-u/2,width:a,height:u}),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,u=r.bottom,l=r.size,c=r.r,f=(0,s.__rest)(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0],p=h[1];o&&(e["shapeMap"]["link-point-left"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:-d/2,y:0,r:l/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e["shapeMap"]["link-point-right"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:d/2,y:0,r:l/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e["shapeMap"]["link-point-top"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:0,y:-p/2,r:l/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e["shapeMap"]["link-point-bottom"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},f),{x:0,y:p/2,r:l/2||c||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,u=n.descriptionCfg,l=void 0===u?{}:u,c=this.getSize(t),f=c[0],h=null,d=a.show,g=a.width,v=-f/2+i.offset;d&&(v=-f/2+g+i.offset);var m=i.style,y=l.style,b=l.paddingTop;return(0,p.isString)(t.description)?(h=e.addShape("text",{attrs:(0,s.__assign)((0,s.__assign)({},m),{x:v,y:-5,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e["shapeMap"]["text-shape"]=h,e["shapeMap"]["rect-description"]=e.addShape("text",{attrs:(0,s.__assign)((0,s.__assign)({},y),{x:v,y:17+(b||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(h=e.addShape("text",{attrs:(0,s.__assign)((0,s.__assign)({},m),{x:v,y:7,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e["shapeMap"]["text-shape"]=h),h},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,p.mix)({},e,n),i=this.getSize(t),o=r.width||i[0],a=r.height||i[1],u=(0,s.__assign)({x:-o/2,y:-a/2,width:o,height:a},r);return u},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,u=n.descriptionCfg,l=void 0===u?{}:u,c=this.getSize(t),f=c[0],h=c[1],d=e.get("keyShape");d.attr((0,s.__assign)((0,s.__assign)({},i),{x:-f/2,y:-h/2,width:f,height:h}));var g=e.getContainer(),v=g["shapeMap"]["rect-logo-icon"]||g.find((function(t){return"rect-logo-icon"===t.get("className")})),m=v?v.attr():{},y=(0,p.mix)({},m,t.logoIcon),b=y.width;void 0===b&&(b=this.options.logoIcon.width);var x=t.logoIcon?t.logoIcon.show:void 0,_=a.offset,w=-f/2+b+_;x||void 0===x||(w=-f/2+_);var S=g["shapeMap"]["node-label"]||g.find((function(t){return"node-label"===t.get("className")})),E=g["shapeMap"]["rect-description"]||g.find((function(t){return"rect-description"===t.get("className")}));if(t.label)if(S){var T=t.labelCfg?t.labelCfg.style:{},k=(0,p.mix)({},S.attr(),T);t.label&&(k.text=t.label),k.x=w,(0,p.isString)(t.description)&&(k.y=-5),E&&(E.resetMatrix(),E.attr({x:w})),S.resetMatrix(),S.attr(k)}else g["shapeMap"]["node-label"]=g.addShape("text",{attrs:(0,s.__assign)((0,s.__assign)({},a.style),{x:w,y:t.description?-5:7,text:t.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});if((0,p.isString)(t.description)){var C=l.paddingTop;if(E){T=t.descriptionCfg?t.descriptionCfg.style:{};var M=(0,p.mix)({},E.attr(),T);(0,p.isString)(t.description)&&(M.text=t.description),M.x=w,E.resetMatrix(),E.attr((0,s.__assign)((0,s.__assign)({},M),{y:17+(C||0)}))}else g["shapeMap"]["rect-description"]=g.addShape("text",{attrs:(0,s.__assign)((0,s.__assign)({},l.style),{x:w,y:17+(C||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})}var A=g["shapeMap"]["pre-rect"]||g.find((function(t){return"pre-rect"===t.get("className")}));if(A&&!A.destroyed){var I=(0,p.mix)({},A.attr(),t.preRect);A.attr((0,s.__assign)((0,s.__assign)({},I),{x:-f/2,y:-h/2,height:h}))}if(v&&!v.destroyed)if(x||void 0===x){var O=y.width,D=y.height,P=y.x,L=y.y,N=y.offset,R=(0,s.__rest)(y,["width","height","x","y","offset"]);v.attr((0,s.__assign)((0,s.__assign)({},R),{x:P||-f/2+O+N,y:L||-D/2,width:O,height:D}))}else v.remove(),delete g["shapeMap"]["pre-rect"];else x&&this.drawLogoIcon(t,g);var j=g["shapeMap"]["rect-state-icon"]||g.find((function(t){return"rect-state-icon"===t.get("className")})),F=j?j.attr():{},B=(0,p.mix)({},F,t.stateIcon);if(j){B.show||void 0===B.show||(j.remove(),delete g["shapeMap"]["rect-state-icon"]);var z=B.width,Z=(D=B.height,P=B.x,L=B.y,B.offset),U=(0,s.__rest)(B,["width","height","x","y","offset"]);j.attr((0,s.__assign)((0,s.__assign)({},U),{x:P||f/2-z+Z,y:L||-D/2,width:z,height:D}))}else B.show&&this.drawStateIcon(t,g);this.updateLinkPoints(t,g)},getOptions:function(t,e){return"move"===e?t:(0,p.deepMix)({},this.options,this.getCustomConfig(t)||{},t)}},"single-node"),(0,u.iZ)("star",{options:{size:60,style:{stroke:u.Pi.defaultNode.style.stroke,fill:u.Pi.defaultNode.style.fill,lineWidth:u.Pi.defaultNode.style.lineWidth},labelCfg:{style:{fill:u.Pi.nodeLabel.style.fill,fontSize:u.Pi.nodeLabel.style.fontSize,fontFamily:u.Pi.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:u.Pi.defaultNode.linkPoints.size,lineWidth:u.Pi.defaultNode.linkPoints.lineWidth,fill:u.Pi.defaultNode.linkPoints.fill,stroke:u.Pi.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:(0,s.__assign)({},u.Pi.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,u=r.height,l=r.show,c=r.text;return l&&(e["shapeMap"]["".concat(this.type,"-icon")]=c?e.addShape("text",{attrs:(0,s.__assign)({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:(0,s.__assign)({x:-a/2,y:-u/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,u=r.leftBottom,l=r.rightBottom,c=r.size,f=r.r,h=(0,s.__rest)(r,["top","left","right","leftBottom","rightBottom","size","r"]),d=this.getSize(t),p=d[0];if(a){var g=Math.cos(.1*Math.PI)*p,v=Math.sin(.1*Math.PI)*p;e["shapeMap"]["link-point-right"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},h),{x:g,y:-v,r:c/2||f||5}),className:"link-point-right",name:"link-point-right"})}if(i){g=Math.cos(.5*Math.PI)*p,v=Math.sin(.5*Math.PI)*p;e["shapeMap"]["link-point-top"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},h),{x:g,y:-v,r:c/2||f||5}),className:"link-point-top",name:"link-point-top"})}if(o){g=Math.cos(.9*Math.PI)*p,v=Math.sin(.9*Math.PI)*p;e["shapeMap"]["link-point-left"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},h),{x:g,y:-v,r:c/2||f||5}),className:"link-point-left",name:"link-point-left"})}if(u){g=Math.cos(1.3*Math.PI)*p,v=Math.sin(1.3*Math.PI)*p;e["shapeMap"]["link-point-bottom"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},h),{x:g,y:-v,r:c/2||f||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(l){g=Math.cos(1.7*Math.PI)*p,v=Math.sin(1.7*Math.PI)*p;e["shapeMap"]["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},h),{x:g,y:-v,r:c/2||f||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(t){var e=this.getSize(t),n=e[0],r=3*n/8,i=t.innerR||r;return u.Zr.getStarPath(n,i)},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,p.mix)({},e,n),i=this.getPath(t),o=(0,s.__assign)({path:i},r);return o},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"),u=(0,p.mix)({},i,s.attr(),a);u=(0,p.mix)(u,t.style),this.updateShape(t,e,u,!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")})),u=e["shapeMap"]["link-point-left-bottom"]||e.find((function(t){return"link-point-right-bottom"===t.get("className")})),l=n,c=r||i||o||a||u;c&&(l=c.attr());var f=(0,p.mix)({},l,t.linkPoints),h=f.fill,d=f.stroke,g=f.lineWidth,v=f.size/2;v||(v=f.r);var m=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},y=m.left,b=m.right,x=m.top,_=m.leftBottom,w=m.rightBottom,S=this.getSize(t),E=S[0],T={r:v,fill:h,stroke:d,lineWidth:g},k=Math.cos(.1*Math.PI)*E,C=Math.sin(.1*Math.PI)*E;i?b||void 0===b?i.attr((0,s.__assign)((0,s.__assign)({},T),{x:k,y:-C})):(i.remove(),delete e["shapeMap"]["link-point-right"]):b&&(e["shapeMap"]["link-point-right"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},T),{x:k,y:-C}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),k=Math.cos(.5*Math.PI)*E,C=Math.sin(.5*Math.PI)*E,o?x||void 0===x?o.attr((0,s.__assign)((0,s.__assign)({},T),{x:k,y:-C})):(o.remove(),delete e["shapeMap"]["link-point-top"]):x&&(e["shapeMap"]["link-point-top"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},T),{x:k,y:-C}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),k=Math.cos(.9*Math.PI)*E,C=Math.sin(.9*Math.PI)*E,r?y||void 0===y?r.attr((0,s.__assign)((0,s.__assign)({},T),{x:k,y:-C})):(r.remove(),delete e["shapeMap"]["link-point-left"]):y&&(e["shapeMap"]["link-point-left"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},T),{x:k,y:-C}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),k=Math.cos(1.3*Math.PI)*E,C=Math.sin(1.3*Math.PI)*E,a?_||void 0===_?a.attr((0,s.__assign)((0,s.__assign)({},T),{x:k,y:-C})):(a.remove(),delete e["shapeMap"]["link-point-left-bottom"]):_&&(e["shapeMap"]["link-point-left-bottom"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},T),{x:k,y:-C}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),k=Math.cos(1.7*Math.PI)*E,C=Math.sin(1.7*Math.PI)*E,u?w||void 0===w?u.attr((0,s.__assign)((0,s.__assign)({},T),{x:k,y:-C})):(u.remove(),delete e["shapeMap"]["link-point-right-bottom"]):w&&(e["shapeMap"]["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,s.__assign)((0,s.__assign)({},T),{x:k,y:-C}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}))}},"single-node");var Le=u.Zr.defaultSubjectColors,Ne="fan-shape-";(0,u.iZ)("donut",{options:{size:u.Pi.defaultNode.size,style:{x:0,y:0,stroke:u.Pi.defaultNode.style.stroke,fill:u.Pi.defaultNode.style.fill,lineWidth:u.Pi.defaultNode.style.lineWidth},labelCfg:{style:{fill:u.Pi.nodeLabel.style.fill,fontSize:u.Pi.nodeLabel.style.fontSize,fontFamily:u.Pi.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:u.Pi.defaultNode.linkPoints.size,lineWidth:u.Pi.defaultNode.linkPoints.lineWidth,fill:u.Pi.defaultNode.linkPoints.fill,stroke:u.Pi.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:(0,s.__assign)({},u.Pi.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=(0,p.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 u=o.width,l=o.height,c=o.show,f=o.text;return c&&(e["shapeMap"]["".concat(this.type,"-icon")]=f?e.addShape("text",{attrs:(0,s.__assign)({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:(0,s.__assign)({x:-u/2,y:-l/2},o),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),Re(t,e,a),this.drawLinkPoints(t,e),a},updateShape:function(t,e,n,r,i){var o=e.get("keyShape");o.attr((0,s.__assign)({},n)),Fe(t,e,o),this.updateLabel(t,e,i),r&&this.updateIcon(t,e)}},"circle");var Re=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 u=Be(i,a),l=u.configs,c=u.totalValue;if(c){var f=ze(n),h=f.lineWidth,d=f.arcR,p=[d,0],g=0;if(1===s)return void je(e,{arcR:d,arcBegin:p,beginAngle:g,config:l[0],fanIndex:0,lineWidth:h,totalValue:c,drawWhole:!0});for(var v=0;v<l.length;v++){var m=je(e,{arcR:d,arcBegin:p,beginAngle:g,config:l[v],fanIndex:v,lineWidth:h,totalValue:c});if(m.shouldEnd)return;p=m.arcBegin,g=m.beginAngle}}}},je=function(t,e){var n,r,i,o=e.arcR,a=e.arcBegin,s=e.beginAngle,u=e.config,l=e.fanIndex,c=e.lineWidth,f=e.totalValue,h=e.drawWhole,d=void 0!==h&&h,p=e.updateShape,g=void 0===p?void 0:p,v=u.value/f;if(v<.001)return{beginAngle:s,arcBegin:a,shape:void 0,shouldEnd:!1};if(d||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:u.color||(null===g||void 0===g?void 0:g.attr("stroke"))||Le[l%Le.length],lineWidth:c};return g?g.attr(y):t["shapeMap"]["".concat(Ne).concat(l)]=t.addShape("path",{attrs:y,name:"".concat(Ne).concat(l),draggable:!0}),{beginAngle:r,arcBegin:n,shape:t["shapeMap"]["".concat(Ne).concat(l)],shouldEnd:d||v>.999}},Fe=function(t,e,n){var r=t.donutAttrs,i=t.donutColorMap,o=void 0===i?{}:i,a={},s=e.getContainer();if(r){var u=Be(r,o),l=u.configs,c=u.totalValue;if(c)for(var f=ze(n),h=f.lineWidth,d=f.arcR,p=[d,0],g=0,v=0;v<l.length;v++){var m="".concat(Ne).concat(v),y=je(s,{arcR:d,arcBegin:p,beginAngle:g,config:l[v],fanIndex:v,lineWidth:h,totalValue:c,drawWhole:1===l.length,updateShape:s["shapeMap"][m]});if(y.shape&&(a[m]=!0),y.shouldEnd)break;p=y.arcBegin,g=y.beginAngle}}var b=Object.keys(s["shapeMap"]).filter((function(t){return t.includes(Ne)}));b.forEach((function(t){a[t]||(s["shapeMap"][t].remove(!0),delete s["shapeMap"][t])}))},Be=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}},ze=function(t){var e=t.attr("r"),n=.6*e,r=(e+n)/2,i=e-n;return{lineWidth:i,arcR:r}},Ze=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}},Ue=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}},He=function(t){for(var e=[],n={},r=t.length,i=r-1;i>=0;i--){var o=t[i];o.id="".concat(o.x,"|||").concat(o.y),n[o.id]||(n[o.id]=o,e.push(o))}return e},$e=function(t){return He(t)},Ge=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},We=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},Ve=function(t,e,n){var r=We(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}},Ye=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}},Xe=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}]},qe=function(t,e){var n=t.x,r=t.y;return n<e.minX||n>e.maxX||r<e.minY||r>e.maxY},Ke=function(t,e){return e<t.minX||e>t.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]},Je=function(t,e){return e<t.minY||e>t.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]},Qe=function(t,e){return Ke(t,e.x).concat(Je(t,e.y))},tn=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},en=function(t,e){var n=-2,r=0;return e.forEach((function(e){e&&(t.x===e.x&&(r+=n),t.y===e.y&&(r+=n))})),r},nn=function(t,e,n,r,i){return tn(t,e)+tn(t,n)+en(t,[e,n,r,i])},rn=function t(e,n,r,i,o){void 0===o&&(o=0),e.unshift(n[i]),r[i]&&r[i]!==i&&o<=100&&t(e,n,r,r[i],o+1)},on=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,u=n.x-e.x,l=n.y-e.y,c=r.x-e.x,f=r.y-e.y,h=i*s-o*a,d=u*f-l*c,p=i*l-o*u,g=a*f-s*c;return h*d<=0&&p*g<=0},an=function(t,e,n){if(n.width||n.height){var r=Xe(n),i=r[0],o=r[1],a=r[2],s=r[3];return on(t,e,i,o)||on(t,e,i,s)||on(t,e,o,a)||on(t,e,a,s)}return!1},sn=function(t,e,n,r){var i=[];return t.forEach((function(t){if(t!==e&&(t.x===e.x||t.y===e.y)){if(an(t,e,n)||an(t,e,r))return;i.push(t)}})),He(i)},un=function(t,e,n,r,i,o,a){var s,u=[],l=(s={},s[e.id]=e,s),c={},f={},h={};f[e.id]=0,h[e.id]=nn(e,n,e);var d=new pn;d.add({id:e.id,value:h[e.id]});var p,g={};t.forEach((function(t){g[t.id]=t}));while(Object.keys(l).length){var v=d.minId(!1);if(!v)break;if(p=l[v],p===n){var m=[];return rn(m,g,c,n.id),m}delete l[p.id],d.remove(p.id),u.push(p);var y=sn(t,p,r,i),b=function(t){t.forEach((function(t){if(-1===u.indexOf(t)){var r=t.id;l[r]||(l[r]=t);var i=h[p.id]+tn(p,t);f[r]&&i>=f[r]||(c[r]=p.id,f[r]=i,h[r]=f[r]+nn(t,n,e,o,a)),d.add({id:r,value:h[r]})}}))};b(y)}return[e,n]},ln=function(t,e,n){return!(t.x===e.x&&e.x===n.x||t.y===e.y&&e.y===n.y)},cn=function(t,e,n,r){var i=tn(t,e),o=tn(n,e);i<r&&(r=i),o<r&&(r=o);var a={x:e.x-r/i*(e.x-t.x),y:e.y-r/i*(e.y-t.y)},s={x:e.x-r/o*(e.x-n.x),y:e.y-r/o*(e.y-n.y)};return[a,s]},fn=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(ln(r,o,a)){var s=cn(r,o,a,e),u=s[0],l=s[1];n.push("L".concat(u.x," ").concat(u.y)),n.push("Q".concat(o.x," ").concat(o.y," ").concat(l.x," ").concat(l.y)),n.push("L".concat(l.x," ").concat(l.y))}else n.push("L".concat(o.x," ").concat(o.y));else o&&n.push("L".concat(o.x," ").concat(o.y))})),n.join("")},hn=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 u=n.getModel(),l=u.x,c=u.y;o={x:l,y:c,width:s.width,height:s.height,minX:s.minX+l,maxX:s.maxX+l,minY:s.minY+c,maxY:s.maxY+c},o.centerX=(o.minX+o.maxX)/2,o.centerY=(o.minY+o.maxY)/2}else o=Ze(t)}else o=n&&n.getBBox();else o=Ze(t);if(r&&r.getType())if("combo"===r.getType()){var f=r.getKeyShape().getBBox();if(f){var h=r.getModel(),d=h.x,p=h.y;a={x:d,y:p,width:f.width,height:f.height,minX:f.minX+d,maxX:f.maxX+d,minY:f.minY+p,maxY:f.maxY+p},a.centerX=(a.minX+a.maxX)/2,a.centerY=(a.minY+a.maxY)/2}else a=Ze(e)}else a=r&&r.getBBox();else a=Ze(e);var g=Ge(o,i),v=Ge(a,i),m=Ve(g,t,e),y=Ve(v,e,t),b=Ue([m,y]),x=Ye(g,b),_=Ye(v,b),w=[];w=w.concat(Xe(x)).concat(Xe(_));var S={x:(t.x+e.x)/2,y:(t.y+e.y)/2};[b,x,_].forEach((function(t){w=w.concat(Qe(t,S).filter((function(t){return qe(t,g)&&qe(t,v)})))})),[{x:m.x,y:y.y},{x:y.x,y:m.y}].forEach((function(t){qe(t,g)&&qe(t,v)&&w.push(t)})),w.unshift(m),w.push(y),w=He(w);var E=un(w,m,y,o,a,t,e);return E.unshift(t),E.push(e),$e(E)},dn=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=t[o];if(a.x===n.x?r.push(a):(r=[a],n.x=a.x),a.y===n.y?i.push(a):(i=[a],n.y=a.y),r.length>2){var s=t.indexOf(r[1]);s>-1&&t.splice(s,1)}else if(i.length>2){s=t.indexOf(i[1]);s>-1&&t.splice(s,1)}}return t},pn=function(){function t(){this.arr=[],this.map={},this.arr=[],this.map={}}return t.prototype._innerAdd=function(t,e){var n=[0,e-1];while(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(){while(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}(),gn=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},vn=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},mn=function(t,e){return[t,e]},yn=function(t,e,n,r,i){return $e(hn(t,e,n,r,i.offset))},bn={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:gn,fallbackRoute:yn},xn=(Math.PI,function(t,e){var n=Math.round(Math.abs(t/e)),r=t<0?-1:1;return n<0?0:r*n}),_n=function(t,e,n){var r={};return t.forEach((function(t){if(t)for(var i=Ge(t.getBBox(),n),o=xn(i.minX,e);o<=xn(i.maxX,e);o+=1)for(var a=xn(i.minY,e);a<=xn(i.maxY,e);a+=1)r["".concat(o,"|||").concat(a)]=!0})),r},wn=function(t,e){var n=e.x-t.x,r=e.y-t.y;return n||r?Math.atan2(r,n):0},Sn=function(t,e){var n=Math.abs(t-e);return n>Math.PI?2*Math.PI-n:n},En=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},Tn=function(t,e,n,r,i){var o=[];if(!n)return[t];var a=i.directions,s=i.offset,l=n.getBBox(),c=e.x>l.minX&&e.x<l.maxX&&e.y>l.minY&&e.y<l.maxY,f=Ge(l,s);for(var h in f)f[h]=xn(f[h],i.gridSize);if(c){for(var d=0,p=a;d<p.length;d++){var g=p[d],v=[[{x:f.minX,y:f.minY},{x:f.maxX,y:f.minY}],[{x:f.minX,y:f.minY},{x:f.minX,y:f.maxY}],[{x:f.maxX,y:f.minY},{x:f.maxX,y:f.maxY}],[{x:f.minX,y:f.maxY},{x:f.maxX,y:f.maxY}]];for(h=0;h<4;h++){var m=v[h],y=u.Zr.getLineIntersect(t,{x:t.x+g.stepX*f.width,y:t.y+g.stepY*f.height},m[0],m[1]);y&&!an(t,y,l)&&(y.id="".concat(y.x,"|||").concat(y.y),o.push(y))}}return o}var b=Ve(f,t,r);return b.id="".concat(b.x,"|||").concat(b.y),[b]},kn=function(t,e,n,r){var i=wn(t,e),o=n[t.id];if(!o){var a=wn(r,t);return Sn(a,i)}var s=wn({x:o.x,y:o.y},t);return Sn(s,i)},Cn=function(t,e,n,r,i,o,a){var s=[r],u=r,l=t.id,c=t.x,f=t.y,h={x:c,y:f,id:l};kn(h,o,e,n)&&(u={x:o.x===r.x?r.x:h.x*a,y:o.y===r.y?r.y:h.y*a},s.unshift(u));var d=e[l];while(d&&d.id!==l){var p={x:c,y:f,id:l},g={x:d.x,y:d.y,id:d.id},v=kn(g,p,e,n);v&&(u={x:g.x===p.x?u.x:g.x*a,y:g.y===p.y?u.y:g.y*a},s.unshift(u)),l=g.id,c=g.x,f=g.y,d=e[l]}return s[0].x=c===n.x?i.x:u.x,s[0].y=f===n.y?i.y:u.y,s.unshift(i),s},Mn=function(t,e,n,r,i){if(isNaN(t.x)||isNaN(e.x))return[];var o=(0,p.deepMix)(bn,i);o.obstacles=o.obstacles||[];var a=o.penalties,s=o.gridSize,u=_n(o.obstacles.concat([n,r]),s,o.offset),l={x:xn(t.x,s),y:xn(t.y,s)},c={x:xn(e.x,s),y:xn(e.y,s)};t.id="".concat(l.x,"|||").concat(l.y),e.id="".concat(c.x,"|||").concat(c.y);var f=Tn(l,t,n,c,o),h=Tn(c,e,r,l,o);f.forEach((function(t){delete u[t.id]})),h.forEach((function(t){delete u[t.id]}));for(var d={},g={},v={},m={},y={},b=new pn,x=0;x<f.length;x++){var _=f[x];d[_.id]=_,m[_.id]=0,y[_.id]=En(_,h,o.distFunc),b.add({id:_.id,value:y[_.id]})}var w,S,E,T,k,C,M=o.maximumLoops,A=1/0,I={};h.forEach((function(t){I["".concat(t.x,"|||").concat(t.y)]=!0})),Object.keys(d).forEach((function(t){var e=d[t].id;y[e]<=A&&(A=y[e],w=d[e])}));while(Object.keys(d).length>0&&M>0){var O=b.minId((M+1)%30===0);if(!O)break;if(w=d[O],I["".concat(w.x,"|||").concat(w.y)])return Cn(w,v,l,e,t,c,s);delete d[w.id],b.remove(w.id),g[w.id]=!0;for(x=0;x<o.directions.length;x++){S=o.directions[x];var D="".concat(Math.round(w.x)+S.stepX,"|||").concat(Math.round(w.y)+S.stepY);if(E={x:w.x+S.stepX,y:w.y+S.stepY,id:D},!g[D]&&(C=kn(w,E,v,l),!(C>o.maxAllowedDirectionChange)&&!u[D])){d[D]||(d[D]=E);var P=a[C];T=o.distFunc(w,E)+(isNaN(P)?s:P),k=m[w.id]+T;var L=m[D];L&&k>=L||(v[D]=w,m[D]=k,y[D]=k+En(E,h,o.distFunc),b.add({id:D,value:y[D]}))}}M-=1}return o.fallbackRoute(t,e,n,r,o)};(0,u.Ux)("polyline",{options:{color:u.Pi.defaultEdge.color,size:u.Pi.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:u.Pi.defaultEdge.style.stroke,lineAppendWidth:u.Pi.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:u.Pi.edgeLabel.style.fill,fontSize:u.Pi.edgeLabel.style.fontSize,fontFamily:u.Pi.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:(0,s.__assign)({},u.Pi.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=(0,p.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,c=t.targetNode,f=r.radius,h=this.options.routeCfg,d=(0,p.mix)({},h,t.routeCfg);d.offset=r.offset;var g=this.getPath(s,l,c,f,d,!Boolean(a));((0,p.isArray)(g)&&g.length<=1||(0,p.isString)(g)&&-1===g.indexOf("L"))&&(g="M0 0, L0 0"),(isNaN(i.x)||isNaN(i.y)||isNaN(o.x)||isNaN(o.y))&&(g="M0 0, L0 0");var v=(0,p.mix)({},u.Pi.defaultEdge.style,r,{lineWidth:t.size,path:g});return v},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;t=this.getPathPoints(t);var a=t.startPoint,s=t.endPoint,u=this.getControlPoints(t),l=[a];u&&(l=l.concat(u)),l.push(s);var c=i.attr(),f=(0,p.mix)({},r,c,t.style),h=t.sourceNode,d=t.targetNode,g=f.radius,v=this.options.routeCfg,m=(0,p.mix)({},v,t.routeCfg);m.offset=f.offset;var y=this.getPath(l,h,d,g,m,!Boolean(u));((0,p.isArray)(y)&&y.length<=1||(0,p.isString)(y)&&-1===y.indexOf("L"))&&(y="M0 0, L0 0"),(isNaN(a.x)||isNaN(a.y)||isNaN(s.x)||isNaN(s.y))&&(y="M0 0, L0 0"),c.endArrow&&!1===f.endArrow&&(t.style.endArrow={path:""}),c.startArrow&&!1===f.startArrow&&(t.style.startArrow={path:""});var b=(0,p.mix)(r,i.attr(),{lineWidth:o,path:y},t.style);i&&i.attr(b)}},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 fn(t,r);var c=[];return(0,p.each)(t,(function(t,e){0===e?c.push(["M",t.x,t.y]):c.push(["L",t.x,t.y])})),c}!1===l||(null===s||void 0===s?void 0:s.length)||(l=!0);var f=l?hn(t[t.length-1],t[0],n,e,a):Mn(t[0],t[t.length-1],e,n,i);if(!f||!f.length)return"M0 0, L0 0";if(r){var h=fn(f,r);return h}f=dn(f);var d=u.Zr.pointsToPolygon(f);return d}},"single-edge");var An=Jt.cloneEvent,In=Jt.isNaN,On=Math.abs,Dn=10,Pn=["shift","ctrl","alt","control"],Ln={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(!In(n)&&!In(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"),u=this.graph.get("canvas").getCanvasBBox(),l=this.scalableRange,c=this.scalableRange;l<1&&l>-1&&(l*=a,c*=s),(u.minX<=a+l&&u.minX+i>a+l||u.maxX+l>=0&&u.maxX+l+i<0)&&(i=0),(u.minY<=s+c&&u.minY+o>s+c||u.maxY+c>=0&&u.maxY+c+o<0)&&(o=0),this.graph.translate(i,o)}},onTouchStart:function(t){var e=this,n=t.originalEvent.touches,r=n[0],i=n[1];r&&i||(t.preventDefault(),this.mousedown=!0,e.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=this,n=t.originalEvent;if((!n||"touchstart"===t.name||0===n.button)&&("touchstart"===t.name||"undefined"===typeof window||!window.event||window.event.buttons||window.event.button)&&this.shouldBegin(t,this)&&!e.keydown&&this.allowDrag(t)){if(e.origin={x:t.clientX,y:t.clientY},e.dragging=!1,this.enableOptimize){for(var r=this.graph,i=r.getEdges(),o=0,a=i.length;o<a;o++){var s=i[o].get("group").get("children");s&&s.forEach((function(t){t.set("ori-visibility",t.get("ori-visibility")||t.get("visible")),t.hide()}))}for(var u=r.getNodes(),l=0,c=u.length;l<c;l++)for(var f=u[l].getContainer(),h=f.get("children"),d=0,p=h;d<p.length;d++){var g=p[d],v=g.get("isKeyShape");v||(g.set("ori-visibility",g.get("ori-visibility")||g.get("visible")),g.hide())}}if("undefined"!==typeof window){var m=this;this.handleDOMContextMenu=function(t){return m.onMouseUp(t)},document.body.addEventListener("contextmenu",this.handleDOMContextMenu)}}},onTouchMove:function(t){var e=this,n=t.originalEvent.touches,r=n[0],i=n[1];r&&i?this.onMouseUp(t):(t.preventDefault(),e.onDrag(t))},onDrag:function(t){if(this.mousedown){var e=this.graph;if(!this.keydown&&this.allowDrag(t)&&(t=An(t),this.origin)){if(this.dragging)t.type="drag",e.emit("canvas:drag",t);else{if(On(this.origin.x-t.clientX)+On(this.origin.y-t.clientY)<Dn)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 u=r.getEdges(),l=0,c=u.length;l<c;l++){var f=u[l].get("group").get("children");f&&f.forEach((function(t){var e=t.get("ori-visibility");t.set("ori-visibility",void 0),e&&t.show()}))}if(i>s)for(var h=r.getNodes(),d=0,p=h.length;d<p;d++)for(var g=h[d].getContainer(),v=g.get("children"),m=0,y=v;m<y.length;m++){var b=y[m],x=b.get("isKeyShape");if(!x){var _=b.get("ori-visibility");b.set("ori-visibility",void 0),_&&b.show()}}}this.dragging?(t=An(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=this,n=t.key;n&&(Pn.indexOf(n.toLowerCase())>-1?e.keydown=!0:e.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((0,p.isBoolean)(this.allowDragOnItem)&&!this.allowDragOnItem&&!i)return!1;if((0,p.isObject)(this.allowDragOnItem)){var o=this.allowDragOnItem,a=o.node,s=o.edge,u=o.combo,l=null===(n=null===(e=t.item)||void 0===e?void 0:e.getType)||void 0===n?void 0:n.call(e);if(!a&&"node"===l)return!1;if(!s&&"edge"===l)return!1;if(!u&&"combo"===l)return!1}return!0}},Nn={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){if(!this.origin||!t||t.destroyed)return!1;var e=t.getType();return"combo"===e},onTouchStart:function(t){if(t.item){var e=this;try{var n=t.originalEvent.touches,r=n[0],i=n[1];if(r&&i)return;t.preventDefault()}catch(o){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,e.onDragStart(t)}},onTouchMove:function(t){var e=this;try{var n=t.originalEvent.touches,r=n[0],i=n[1];if(r&&i)return void e.onDragEnd(t);t.preventDefault()}catch(t){console.warn("Touch original event not exist!")}e.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((0,s.__assign)((0,s.__assign)({},t),this.mousedown)):(this.dragstart=!0,this.onDragStart(t))):this.onDragEnd()},onDragStart:function(t){var e=this;if(this.currentShouldEnd=!0,this.shouldBegin((0,s.__assign)((0,s.__assign)({},t),this.mousedown),this)){var n=this.mousedown,r=n.item,i=n.target;if(r&&!r.destroyed&&!r.hasLocked()){var o=r.getContainer();if(o.set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(r),i){var a=i.get("isAnchorPoint");if(a)return}var u=this.graph;this.targets=[],this.targetCombo=null;var l=u.findAllByState("node",this.selectedState),c=r.get("id"),f=l.filter((function(t){var e=t.get("id");return c===e}));if(0===f.length?this.targets.push(r):l.length>1?l.forEach((function(t){var n=t.hasLocked();n||e.targets.push(t)})):this.targets.push(r),this.graph.get("enabledStack")&&this.enableStack){var h=[];this.targets.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y,i=e.id;h.push({x:n,y:r,id:i})})),this.set("beforeDragNodes",h)}this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach((function(t){var n=t.getEdges();n.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){var e=t.getContainer();e.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){var e=t.getEdges();e.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",(0,p.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){var e=t.getModel();e.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){var n=t.getModel();n.comboId&&e.updateComboTree(t)})))},onDropNode:function(t){if(this.targets&&0!==this.targets.length){var e=this,n=t.item,r=e.graph,i=n.getModel().comboId,o=i?r.findById(i):void 0;if(this.currentShouldEnd=this.shouldEnd(t,o,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(i){var a=r.findById(i);e.comboActiveState&&r.setItemState(a,e.comboActiveState,!1),this.targets.map((function(t){var e=t.getModel();i!==e.comboId&&r.updateComboTree(t,i)})),r.updateCombo(a)}else this.targets.map((function(t){var e=t.getModel();e.comboId&&r.updateComboTree(t)}));r.emit("dragnodeend",{items:this.targets,targetItem:n})}}},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 u={x:a,y:s};this.get("updateEdge")?this.graph.updateItem(t,u,!1):t.updatePosition(u)},debounceUpdate:(0,p.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,u=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 u=o.x-i.x+r[s].x,l=o.y-i.y+r[s].y,c={x:u,y:l};a?n.updateItem(t,c,!1):t.updatePosition(c)})),s&&u(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=(0,p.deepMix)({},It.delegateStyle,this.delegateStyle),a=this.calculationGroupPosition(t),u=a.x,l=a.y,c=a.width,f=a.height,h=a.minX,d=a.minY;this.originPoint={x:u,y:l,width:c,height:f,minX:h,minY:d},this.delegateRect=i.addShape("rect",{attrs:(0,s.__assign)({width:c,height:f,x:u,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],u=s.getBBox(),l=u.minX,c=u.minY,f=u.maxX,h=u.maxY;l<n&&(n=l),c<i&&(i=c),f>r&&(r=f),h>o&&(o=h)}var d=Math.floor(n),p=Math.floor(i),g=Math.ceil(r)-Math.floor(n),v=Math.ceil(o)-Math.floor(i);return{x:d,y:p,width:g,height:v,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)}))}},Rn=null,jn={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){var e=this;try{var n=t.originalEvent.touches,r=n[0],i=n[1];if(r&&i)return;t.preventDefault()}catch(t){console.warn("Touch original event not exist!")}e.setAllItemStates(t)},clearOnTouchStart:function(t){var e=this;try{var n=t.originalEvent.touches,r=n[0],i=n[1];if(r&&i)return;t.preventDefault()}catch(t){console.warn("Touch original event not exist!")}e.clearActiveState(t)},setAllItemStates:function(t){clearTimeout(this.timer),this.throttleSetAllItemStates(t,this)},clearActiveState:function(t){var e=this,n=this.shouldClearStatusOnSecond;n&&(Rn=null),this.timer=setTimeout((function(){e.throttleClearActiveState(t,e)}),50)},throttleSetAllItemStates:(0,p.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(Rn===o&&i)return e.throttleClearActiveState(t,e),void(Rn=null);for(var a=e.activeState,s=e.inactiveState,u=r.getNodes(),l=r.getCombos(),c=r.getEdges(),f=r.get("vedges"),h=u.length,d=l.length,p=c.length,g=f.length,v=e.inactiveItems||{},m=e.activeItems||{},y=0;y<h;y++){var b=u[y],x=b.getID(),_=b.hasState("selected");e.resetSelected&&_&&r.setItemState(b,"selected",!1),m[x]&&(r.setItemState(b,a,!1),delete m[x]),s&&!v[x]&&(r.setItemState(b,s,!0),v[x]=b)}for(y=0;y<d;y++){var w=l[y],S=w.getID();_=w.hasState("selected");e.resetSelected&&_&&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++){var E=c[y],T=E.getID();m[T]&&(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 k=f[y],C=k.getID();m[C]&&(r.setItemState(k,a,!1),delete m[C]),s&&!v[C]&&(r.setItemState(k,s,!0),v[C]=k)}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 M=n.getEdges(),A=M.length;for(y=0;y<A;y++){E=M[y],T=E.getID();var I=void 0;I=E.getSource()===n?E.getTarget():E.getSource();var O=I.getID();s&&v[O]&&(r.setItemState(I,s,!1),delete v[O]),m[O]||(r.setItemState(I,a,!0),m[O]=I),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&&(Rn=n.getModel().id),r.emit("afteractivaterelations",{item:t.item,action:"activate"})}}),50,{trailing:!0,leading:!0}),throttleClearActiveState:(0,p.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})},Fn=Math.min,Bn=Math.max,zn=Math.abs,Zn="shift",Un=["drag","shift","ctrl","alt","control"],Hn={getDefaultCfg:function(){return{brushStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},selectedState:"selected",trigger:Zn,includeEdges:!0,includeCombos:!1,selectOnCombo:!1,selectedEdges:[],selectedNodes:[],selectedCombos:[]}},getEvents:function(){return Un.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=Zn,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,e=t.graph,n=t.selectedState,r=e.findAllByState("node",n),i=e.findAllByState("edge",n),o=e.findAllByState("combo",n);r.forEach((function(t){return e.setItemState(t,n,!1)})),i.forEach((function(t){return e.setItemState(t,n,!1)})),o.forEach((function(t){return e.setItemState(t,n,!1)})),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),e.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,r=n.graph,i=n.originPoint,o=n.shouldUpdate,a=n.isBBoxCenterInRect,s=this.selectedState,u={x:t.x,y:t.y},l=r.getPointByCanvas(i.x,i.y),c=Fn(u.x,l.x),f=Bn(u.x,l.x),h=Fn(u.y,l.y),d=Bn(u.y,l.y),p=[],g=[];r.getNodes().forEach((function(t){if(t.isVisible()&&a(t,c,f,h,d)&&o(t,"select",e)){p.push(t);var n=t.getModel();g.push(n.id),r.setItemState(t,s,!0)}}));var v=[];this.includeEdges&&p.forEach((function(t){var n=t.getOutEdges();n.forEach((function(t){if(t.isVisible()){var n=t.getModel(),i=n.source,a=n.target;g.includes(i)&&g.includes(a)&&o(t,"select",e)&&(v.push(t),r.setItemState(t,e.selectedState,!0))}}))}));var m=[];this.includeCombos&&r.getCombos().forEach((function(t){if(t.isVisible()&&a(t,c,f,h,d)&&o(t,"select",e)){m.push(t);var n=t.getModel();g.push(n.id),r.setItemState(t,s,!0)}})),this.selectedEdges=v,this.selectedNodes=p,this.selectedCombos=m,this.onSelect&&this.onSelect(p,v,m),r.emit("nodeselectchange",{selectedItems:{nodes:p,edges:v,combos:m},select:!0})},createBrush:function(){var t=this,e=t.graph.get("canvas").addShape("rect",{attrs:t.brushStyle,capture:!1,name:"brush-shape"});return this.brush=e,this.delegate=e,e},updateBrush:function(t){var e=this.originPoint;this.brush.attr({width:zn(t.canvasX-e.x),height:zn(t.canvasY-e.y),x:Fn(t.canvasX,e.x),y:Fn(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}},$n="shift",Gn=["shift","ctrl","alt","control"],Wn={getDefaultCfg:function(){return{multiple:!0,trigger:$n,selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0}},getEvents:function(){var t=this;return Gn.indexOf(t.trigger.toLowerCase())>-1||(t.trigger=$n,console.warn("Behavior click-select 的 trigger 参数不合法，请输入 'drag'、'shift'、'ctrl' 或 'alt'")),t.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,u=e.shouldBegin;if(u(t,e)){if(!o||!a){var l=i.findAllByState("node",e.selectedState).concat(i.findAllByState("edge",e.selectedState)).concat(i.findAllByState("combo",e.selectedState));(0,p.each)(l,(function(t){t!==n&&i.setItemState(t,e.selectedState,!1)}))}var c=function(){switch(r){case"node":return e.selectNode;case"edge":return e.selectEdge;case"combo":return e.selectCombo;default:return!1}}();if(c)if(n.hasState(e.selectedState)){s(t,e)&&i.setItemState(n,e.selectedState,!1);f=i.findAllByState("node",e.selectedState),h=i.findAllByState("edge",e.selectedState),d=i.findAllByState("combo",e.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:f,edges:h,combos:d},select:!1})}else{s(t,e)&&i.setItemState(n,e.selectedState,!0);f=i.findAllByState("node",e.selectedState),h=i.findAllByState("edge",e.selectedState),d=i.findAllByState("combo",e.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:f,edges:h,combos:d},select:!0})}else{var f=i.findAllByState("node",e.selectedState),h=i.findAllByState("edge",e.selectedState),d=i.findAllByState("combo",e.selectedState);i.emit("nodeselectchange",{selectedItems:{nodes:f,edges:h,combos:d},select:!1})}}}},onCanvasClick:function(t){var e=this,n=this,r=n.graph,i=n.shouldBegin;if(i(t,this)){var o=r.findAllByState("node",this.selectedState);(0,p.each)(o,(function(t){r.setItemState(t,e.selectedState,!1)}));var a=r.findAllByState("edge",this.selectedState);(0,p.each)(a,(function(t){r.setItemState(t,e.selectedState,!1)}));var s=r.findAllByState("combo",this.selectedState);(0,p.each)(s,(function(t){r.setItemState(t,e.selectedState,!1)})),r.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})}},onKeyDown:function(t){var e=this,n=t.key;n&&(n.toLowerCase()===this.trigger.toLowerCase()||"control"===n.toLowerCase()?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){var t=this;t.keydown=!1}},Vn=d.vs,Yn=.05,Xn={getDefaultCfg:function(){return this.isFireFox="firefox"===qt(),{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"),u=this.get("maxZoom")||this.graph.get("maxZoom");if(!(a>u||a<s)){var l=this.get("animate"),c=this.get("animateCfg"),f=this.graph.get("canvas"),h=f.getPointByClient(t.clientX,t.clientY);this.graph.zoomTo(a,{x:h.x,y:h.y},l,c),this.graph.emit("wheelzoom",t)}}}},onTouchEnd:function(){this.moveable=!1,this.endPoint=null},onWheel:function(t){var e=this,n=this,r=n.graph,i=n.fixSelectedItems;if((!this.shouldBegin||this.shouldBegin(t,this))&&this.shouldUpdate(t,this)){t.preventDefault();var o=r.get("canvas"),a=o.getPointByClient(t.clientX,t.clientY),s=this.get("sensitivity"),u=r.getZoom(),l=u,c=u;l=this.isFireFox?t.deltaY>0||t.wheelDelta<0?1-Yn*s:1/(1-Yn*s):t.wheelDelta<0?1-Yn*s:1/(1-Yn*s),c=u*l;var f=this.get("minZoom")||r.get("minZoom"),h=this.get("maxZoom")||r.get("maxZoom");c>h?c=h:c<f&&(c=f);var d=this.get("enableOptimize");if(d){var g=this.get("optimizeZoom"),v=this.get("optimized"),m=r.getNodes(),y=r.getEdges(),b=m.length,x=y.length;if(!v){for(var _=0;_<b;_++){var w=m[_];if(!w.destroyed)for(var S=w.get("group").get("children"),E=S.length,T=0;T<E;T++){var k=S[T];k.destoryed||k.get("isKeyShape")||(k.set("ori-visibility",k.get("ori-visibility")||k.get("visible")),k.hide())}}for(var C=0;C<x;C++){var M=y[C];for(S=M.get("group").get("children"),E=S.length,T=0;T<E;T++){k=S[T];k.set("ori-visibility",k.get("ori-visibility")||k.get("visible")),k.hide()}}this.set("optimized",!0)}clearTimeout(this.get("timeout"));var A=setTimeout((function(){var t=r.getZoom(),n=e.get("optimized");if(n){e.set("optimized",!1);for(var i=0;i<b;i++){var o=m[i],a=o.get("group").get("children"),s=a.length;if(t<g){var u=o.getKeyShape(),l=u.get("ori-visibility");u.set("ori-visibility",void 0),l&&u.show()}else for(var c=0;c<s;c++){var f=a[c];l=f.get("ori-visibility");f.set("ori-visibility",void 0),!f.get("visible")&&l&&l&&f.show()}}for(var h=0;h<x;h++){var d=y[h];a=d.get("group").get("children"),s=a.length;if(t<g){u=d.getKeyShape(),l=u.get("ori-visibility");u.set("ori-visibility",void 0),l&&u.show()}else for(c=0;c<s;c++){f=a[c];if(!f.get("visible")){l=f.get("ori-visibility");f.set("ori-visibility",void 0),l&&f.show()}}}}}),100);this.set("timeout",A)}if(u<=1){var I=void 0,O=void 0;if(i.fixAll||i.fixLineWidth||i.fixLabel){I=r.findAllByState("node",i.fixState),O=r.findAllByState("edge",i.fixState);for(var D=u/c,P=I.length,L=0;L<P;L++){w=I[L];var N=w.getContainer(),R=w.getModel(),j=w.getOriginStyle(),F=w.getStateStyle(i.fixState),B=w.get("shapeFactory").getShape(R.type).getStateStyle(i.fixState,w)[i.fixState];if(i.fixAll){if(c<=1){var z=(0,p.clone)(N.getMatrix());z||(z=[1,0,0,0,1,0,0,0,1]);var Z=w.getModel(),U=Z.x,H=Z.y;z=Vn(z,[["t",-U,-H],["s",D,D],["t",U,H]]),N.setMatrix(z)}}else for(S=N.get("children"),E=S.length,T=0;T<E;T++){k=S[T];var $=void 0,G=void 0;if(i.fixLabel){var W=k.get("type");if("text"===W){$=k.attr("fontSize")||12;var V=F[k.get("name")],Y=B[k.get("name")],X=V?V.fontSize:12,q=Y?Y.fontSize:12,K=X||q||12;if(c<=1&&k.attr("fontSize",K/c),G)break}}if(i.fixLineWidth&&k.get("isKeyShape")){G=k.attr("lineWidth")||0;var J=F.lineWidth||B.lineWidth||j.lineWidth||0;if(c<=1&&k.attr("lineWidth",J/c),$)break}}}for(var Q=O.length,tt=0;tt<Q;tt++)for(M=O[tt],N=M.getContainer(),S=N.get("children"),R=M.getModel(),F=M.getStateStyle(i.fixState),B=M.get("shapeFactory").getShape(R.type).getStateStyle(i.fixState,M)[i.fixState],E=S.length,T=0;T<E;T++){k=S[T],$=void 0,G=void 0;if(i.fixLabel||i.fixAll){W=k.get("type");if("text"===W){$=k.attr("fontSize")||12;V=F[k.get("name")],Y=B[k.get("name")],X=V?V.fontSize:12,q=Y?Y.fontSize:12,K=X||q||12;if(c<=1&&k.attr("fontSize",K/c),G)break}}if((i.fixLineWidth||i.fixAll)&&k.get("isKeyShape")){G=k.attr("lineWidth")||0;J=F.lineWidth||B.lineWidth||1;if(c<=1&&k.attr("lineWidth",J/c),$)break}}}}var et=this.get("animate"),nt=this.get("animateCfg");r.zoomTo(c,{x:a.x,y:a.y},et,nt),r.emit("wheelzoom",t)}}},qn=n(45442),Kn={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);e.innerHTML=n,(0,qn.Z)(this.container,{visibility:"visible"}),this.updatePosition(t)}},hideTooltip:function(){(0,qn.Z)(this.container,{visibility:"hidden"})},updatePosition:function(t){var e=this.get("shouldBegin"),n=this,r=n.width,i=n.height,o=n.container,a=n.graph;if(e(t,this)){var s=a.getPointByClient(t.clientX,t.clientY),u=a.getCanvasByPoint(s.x,s.y),l=u.x,c=u.y,f=o.getBoundingClientRect();l>r/2?l-=f.width:l+=this.offset,c>i/2?c-=f.height:c+=this.offset;var h="".concat(l,"px"),d="".concat(c,"px");(0,qn.Z)(this.container,{left:h,top:d,visibility:"visible"})}else(0,qn.Z)(o,{visibility:"hidden"})},createTooltip:function(t){var e=t.get("el");e.style.position="relative";var n=(0,g.Z)('<div class="g6-tooltip g6-'.concat(this.item,'-tooltip"></div>'));return e.parentNode.appendChild(n),(0,qn.Z)(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}},Jn=(0,s.__assign)({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"}}},Kn),Qn=(0,s.__assign)({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"}}},Kn),tr="click",er=["click","dblclick"],nr={getDefaultCfg:function(){return{trigger:tr,onChange:function(){}}},getEvents:function(){var t,e;return er.includes(this.trigger)?e=this.trigger:(e=tr,console.warn("Behavior collapse-expand 的 trigger 参数不合法，请输入 'click' 或 'dblclick'")),t={},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()))}}}}},rr=Jt.calculationItemsBBox,ir=function t(e,n){if(!1!==n(e)&&e){var r=e.get("combos");if(0===r.length)return!1;(0,p.each)(r,(function(e){t(e,n)}))}},or={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;if(!e||e.destroyed)return!1;if(!this.shouldUpdate(t,this))return!1;var n=e.getType();return"combo"===n},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)){this.targets=[];var i=n.findAllByState("combo",this.selectedState),o=r.get("id"),a=i.filter((function(t){var e=t.get("id");return o===e}));0===a.length?this.targets.push(r):this.targets=i;var s=[];this.targets.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y,i=e.id;s.push({x:n,y:r,id:i})})),this.set("beforeDragItems",s),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=[],ir(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,u=a.centerY,l=a.width,c=o.filter((function(t){var n=t.getModel();return i.parentId,n.id!==i.id&&!e.currentItemChildCombos.includes(n.id)}));c.map((function(t){var r=t.getBBox(),i=r.centerX,o=r.centerY,a=r.width,c=s-i,f=u-o,h=2*Math.sqrt(c*c+f*f);l+a-h>.8*l?n.setItemState(t,e.activeState,!0):n.setItemState(t,e.activeState,!1)}))}(0,p.each)(this.targets,(function(n){e.updateCombo(n,t)})),this.onlyChangeComboSize&&this.updateParentCombos()}},updatePositions:function(t,e){var n=this;(this.enableDelegate||e)&&(0,p.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){var o=t.getModel();o.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,i=r.getModel().comboId,o=i?n.findById(i):void 0;if(this.currentShouldEnd=this.shouldEnd(t,o,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd){var a;if(i){if(this.activeState){var s=n.findById(i);n.setItemState(s,this.activeState,!1)}this.targets.map((function(t){e.onlyChangeComboSize?n.updateCombo(t):i!==t.getID()&&(a=n.findById(i),i!==t.getModel().parentId&&n.updateComboTree(t,i,!1))}))}else this.targets.map((function(t){if(e.onlyChangeComboSize)n.updateCombo(t);else{var r=t.getModel();r.comboId&&n.updateComboTree(t,void 0,!1)}}));this.endComparison=!0,this.end(a,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){var i=r.get("delegateGroup");i.clear(),this.delegateShape=null}if(t&&this.activeState&&r.setItemState(t,this.activeState,!1),!t){var o=r.get("enabledStack")&&this.enableStack,a={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(),i=e.x,s=e.y,u=e.id;a.after.combos.push({x:i,y:s,id:u}),r.pushStack("update",a)}else r.updateComboTree(t,void 0,o)}))}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");(0,p.each)(i,(function(t){r.traverse(t,e,n)}));var o=t.get("nodes");(0,p.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,u=e.y-r.y+this.point[a].y;n&&(s+=r.x-e.x,u+=r.y-e.y),i.updateItem(t,{x:s,y:u},!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;o=this.targets.length>1?rr(this.targets):this.targets[0].getBBox();var a=o.x,u=o.y,l=o.width,c=o.height,f=o.minX,h=o.minY;this.originPoint={x:a,y:u,width:l,height:c,minX:f,minY:h};var d=(0,s.__assign)((0,s.__assign)({},It.delegateStyle),this.delegateStyle);this.delegateShape=i.addShape("rect",{attrs:(0,s.__assign)({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,e=t.graph,n=t.targets,r={};null===n||void 0===n||n.forEach((function(t){var n=t.getModel().parentId;n&&(r[n]=e.findById(n))})),Object.values(r).forEach((function(t){t&&e.updateCombo(t)}))}},ar="dblclick",sr=["click","dblclick"],ur={getDefaultCfg:function(){return{trigger:ar,relayout:!0}},getEvents:function(){var t,e;return sr.includes(this.trigger)?e=this.trigger:(e=ar,console.warn("Behavior collapse-expand-group 的 trigger 参数不合法，请输入 'click' 或 'dblclick'")),t={},t["combo:".concat(e)]="onComboClick",t},onComboClick:function(t){var e=t.item,n=this,r=n.graph,i=n.relayout;if(e&&!e.destroyed&&"combo"===e.getType()){var o=e.getModel(),a=o.id;a&&(r.collapseExpandCombo(a),i&&r.get("layout")?r.layout():r.refreshPositions())}}},lr=Jt.isPolygonsIntersect,cr=Jt.pathToPoints,fr="shift",hr=["drag","shift","ctrl","alt","control"],dr=function(t,e){var n,r=t.getKeyShape();if("path"===t.get("type"))n=cr(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 lr(e,n)},pr={getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:fr,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return hr.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=fr,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,n=t.item;n||("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,n=e.graph,r=e.selectedState,i=e.shouldDeselect,o=n.findAllByState("node",r),a=n.findAllByState("edge",r);i&&!i({action:t,nodes:o,edges:a})||(o.forEach((function(t){return n.setItemState(t,r,!1)})),a.forEach((function(t){return n.setItemState(t,r,!1)}))),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var t=this,e=this,n=e.graph,r=e.shouldUpdate,i=this.points.map((function(t){return[n.getCanvasByPoint(t.x,t.y).x,n.getCanvasByPoint(t.x,t.y).y]})),o=this.selectedState,a=[],s=[];n.getNodes().forEach((function(e){if(e.isVisible()&&dr(e,i)&&r(e,"select",t)){a.push(e);var u=e.getModel();s.push(u.id),n.setItemState(e,o,!0)}}));var u=[];this.includeEdges&&a.forEach((function(e){var i=e.getOutEdges();i.forEach((function(e){if(e.isVisible()){var i=e.getModel(),o=i.source,a=i.target;s.includes(o)&&s.includes(a)&&r(e,"select",t)&&(u.push(e),n.setItemState(e,t.selectedState,!0))}}))})),this.selectedEdges=u,this.selectedNodes=a,this.onSelect&&this.onSelect(a,u),n.emit("nodeselectchange",{selectedItems:{nodes:a,edges:u},select:!0})},createLasso:function(){var t=this,e=t.graph.get("delegateGroup").addShape("path",{attrs:(0,s.__assign)({path:[]},t.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=e,this.delegate=e,this.points=[],e},updateLasso:function(t){var e=this;this.lasso.attr({path:e.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}},gr="click",vr=["click","drag"],mr=void 0,yr=["shift","ctrl","control","alt","meta",void 0],br={getDefaultCfg:function(){return{trigger:gr,key:mr,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var t,e=this;return vr.indexOf(e.trigger.toLowerCase())>-1||(e.trigger=gr,console.warn("Behavior create-edge 的 trigger 参数不合法，请输入 'click'，'drag'")),e.key&&-1===yr.indexOf(e.key.toLowerCase())&&(e.trigger=mr,console.warn("Behavior create-edge 的 key 参数不合法，请输入 'shift'，'ctrl'，'alt'，'control'，或 undefined")),"drag"===e.trigger?t={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:"click"===e.trigger&&(t={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),e.key&&(t.keydown="onKeyDown",t.keyup="onKeyUp"),t},onDragEnd:function(t){var e=this;if(!e.key||e.keydown){var n=t.item;n&&n.getID()!==e.source&&"node"===n.getType()||e.cancelCreating({item:e.edge,x:t.x,y:t.y})}},onClick:function(t){var e=this;if(!e.key||e.keydown){var n=t.item,r=e.graph,i=n.getModel(),o=e.getEdgeConfig;if(e.addingEdge&&e.edge){if(!e.shouldEnd(t,e))return;var a=void 0;a=o&&(0,p.isFunction)(o)?o({source:e.source,target:i.id},e):e.edgeConfig;var u=(0,s.__assign)({target:i.id},a);if(e.source===i.id&&(u.type="loop"),r.emit("beforecreateedge",{}),r.updateItem(e.edge,u,!1),r.get("enabledStack")){var l=(0,s.__assign)((0,s.__assign)({},e.edge.getModel()),{itemType:"edge"}),c={};c.edges=[l],r.pushStack("add",{before:{},after:c})}r.emit("aftercreateedge",{edge:e.edge}),e.edge.getKeyShape().set("capture",!0),e.edge=null,e.addingEdge=!1}else{if(!e.shouldBegin(t,e))return;a=void 0;a=o&&(0,p.isFunction)(o)?o({source:i.id,target:i.id},e):e.edgeConfig,e.edge=r.addItem("edge",(0,s.__assign)({source:i.id,target:i.id},a),!1),e.source=i.id,e.addingEdge=!0,e.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(t){var e=this;if(!e.key||e.keydown){e.edge&&e.edge.destroyed&&e.cancelCreating({item:e.edge});var n={x:t.x,y:t.y};e.graph.findById(e.source)?e.addingEdge&&e.edge&&e.graph.updateItem(e.edge,{target:n},!1):e.addingEdge=!1}},cancelCreating:function(t){var e,n,r=this;if(!r.key||r.keydown){var i=r.graph,o=t.item;return r.addingEdge&&(r.edge===o||(null===(n=null===(e=t.target)||void 0===e?void 0:e.isCanvas)||void 0===n?void 0:n.call(e)))?(r.edge&&!r.edge.destroyed&&i.removeItem(r.edge,!1),r.edge=null,void(r.addingEdge=!1)):void 0}},onKeyDown:function(t){var e=this,n=t.key;n&&(n.toLowerCase()===e.key.toLowerCase()?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){var t=this;t.addingEdge&&t.edge&&(t.graph.removeItem(t.edge,!1),t.addingEdge=!1,t.edge=null),this.keydown=!1}},xr="ctrl",_r=["shift","ctrl","alt","control"],wr="1",Sr={getDefaultCfg:function(){return{trigger:xr,combinedKey:wr,functionName:"fitView",functionParams:[]}},getEvents:function(){return _r.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=xr,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}},Er=["shift","ctrl","alt","control","meta"],Tr={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0}},getEvents:function(){return this.zoomKey&&-1!==Er.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];r.includes("control")&&r.push("ctrl");var i=r.some((function(e){return t["".concat(e,"Key")]}));if(i){var o=n.get("canvas"),a=o.getPointByClient(t.clientX,t.clientY),s=n.getZoom();t.wheelDelta>0?s+=.05*s:s-=.05*s,n.zoomTo(s,{x:a.x,y:a.y})}else{var u=t.deltaX||t.movementX,l=t.deltaY||t.movementY;!l&&navigator.userAgent.indexOf("Firefox")>-1&&(l=125*-t.wheelDelta/3);var c=this.graph.get("width"),f=this.graph.get("height"),h=this.graph.get("canvas").getCanvasBBox(),d=this.scalableRange,p=this.scalableRange;d<1&&d>-1&&(d*=c,p*=f);var g=h.minX,v=h.maxX,m=h.minY,y=h.maxY;u>0?v<-d?u=0:v-u<-d&&(u=v+d):u<0&&(g>c+d?u=0:g-u>c+d&&(u=g-(c+d))),l>0?y<-p?l=0:y-l<-p&&(l=y+p):l<0&&(m>f+p?l=0:m-l>f+p&&(l=m-(f+p))),"x"===this.get("direction")?l=0:"y"===this.get("direction")&&(u=0),n.translate(-u,-l)}t.preventDefault();var b=this.get("enableOptimize");if(b){var x=this.get("optimizeZoom"),_=this.get("optimized"),w=n.getNodes(),S=n.getEdges(),E=w.length,T=S.length;if(!_){for(var k=0;k<E;k++){var C=w[k];if(!C.destroyed)for(var M=C.get("group").get("children"),A=M.length,I=0;I<A;I++){var O=M[I];O.destoryed||O.get("isKeyShape")||(O.set("ori-visibility",O.get("ori-visibility")||O.get("visible")),O.hide())}}for(var D=0;D<T;D++){var P=S[D];for(M=P.get("group").get("children"),A=M.length,I=0;I<A;I++){O=M[I];O.set("ori-visibility",O.get("ori-visibility")||O.get("visible")),O.hide()}}this.set("optimized",!0)}clearTimeout(this.get("timeout"));var L=setTimeout((function(){var t=n.getZoom(),r=e.get("optimized");if(r){e.set("optimized",!1);for(var i=0;i<E;i++){var o=w[i],a=o.get("group").get("children"),s=a.length;if(t<x){var u=o.getKeyShape(),l=u.get("ori-visibility");l&&u.show()}else for(var c=0;c<s;c++){var f=a[c];l=f.get("ori-visibility");!f.get("visible")&&l&&l&&f.show()}}for(var h=0;h<T;h++){var d=S[h];a=d.get("group").get("children"),s=a.length;if(t<x){u=d.getKeyShape(),l=u.get("ori-visibility");l&&u.show()}else for(c=0;c<s;c++){f=a[c];if(!f.get("visible")){l=f.get("ori-visibility");l&&f.show()}}}}}),100);this.set("timeout",L)}}},allowDrag:function(t){var e,n,r=t.target,i=r&&r.isCanvas&&r.isCanvas();if((0,p.isBoolean)(this.allowDragOnItem)&&!this.allowDragOnItem&&!i)return!1;if((0,p.isObject)(this.allowDragOnItem)){var o=this.allowDragOnItem,a=o.node,s=o.edge,u=o.combo,l=null===(n=null===(e=t.item)||void 0===e?void 0:e.getType)||void 0===n?void 0:n.call(e);if(!a&&"node"===l)return!1;if(!s&&"edge"===l)return!1;if(!u&&"combo"===l)return!1}return!0}},kr={"drag-canvas":Ln,"zoom-canvas":Xn,"drag-node":Nn,"activate-relations":jn,"brush-select":Hn,"click-select":Wn,"lasso-select":pr,tooltip:Jn,"edge-tooltip":Qn,"collapse-expand":nr,"drag-combo":or,"collapse-expand-combo":ur,"create-edge":br,"shortcuts-call":Sr,"scroll-canvas":Tr};(0,p.each)(kr,(function(t,e){(0,u.il)(e,t)}));var Cr=(0,s.__assign)((0,s.__assign)({},l),c),Mr=(Pe.Grid,Pe.Minimap,Pe.Bundling,Pe.Menu,Pe.Fisheye),Ar=(Pe.ToolBar,Pe.Tooltip,Pe.TimeBar),Ir=Pe.ImageMinimap,Or=Pe.EdgeFilterLens,Dr=Pe.SnapLine,Pr=(Pe.Legend,Pe.Annotation),Lr={version:It.version,Graph:Ee,TreeGraph:Oe,Util:Jt,Layout:Ft.Layouts,TreeLayout:ee,registerLayout:ne,Global:It,registerBehavior:u.il,registerCombo:u.Z8,registerEdge:u.Ux,registerNode:u.iZ,Minimap:Pe.Minimap,Grid:Pe.Grid,Bundling:Pe.Bundling,Menu:Pe.Menu,ToolBar:Pe.ToolBar,Tooltip:Pe.Tooltip,Legend:Pe.Legend,TimeBar:Ar,SnapLine:Dr,Fisheye:Mr,ImageMinimap:Ir,EdgeFilterLens:Or,Annotation:Pr,Algorithm:Cr,Arrow:u.Eh,Marker:u.Jx,Shape:u.bn};Lr.version="4.8.23";var Nr=Lr},1779: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}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{Z:function(){return a}});var a=/^(539|826)$/.test(n.j)?i((function t(){var e=this;o(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){var n,r=e.arr,i=r[t].priority,o=t;while(0!==o){var a;if(n=o>>1,(null===(a=r[n])||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)}})):null},43501:function(t,e,n){"use strict";var r=function(t){var e=new Set,n=[],r=t.nodes();return r.forEach((function(r){var i=[],o=[r];while(o.length>0){var a,s,u=o.pop();if(!e.has(u))e.add(u),i.push(u),null===(a=t.successors(u))||void 0===a||a.forEach((function(t){return o.push(t)})),null===(s=t.predecessors(u))||void 0===s||s.forEach((function(t){return o.push(t)}))}i.length&&n.push(i)})),n};e.Z=/^(539|826)$/.test(n.j)?r:null},64405:function(t,e,n){"use strict";var r=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))},i=function(t,e,n){var i=Array.isArray(e)?e:[e],o=function(e){return t.isDirected()?t.successors(e):t.neighbors(e)},a=[],s=[];return i.forEach((function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);r(t,e,"post"===n,s,o,a)})),a};e.Z=/^(539|826)$/.test(n.j)?i:null},96555:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(16272);var i=function(t,e,n){var i={};return t.nodes().forEach((function(o){return i[String(o)]=(0,r.Z)(t,o,e,n),i})),i};e.Z=/^(539|826)$/.test(n.j)?i:null},16272:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(1779);function i(t,e){return l(t)||u(t,e)||a(t,e)||o()}function o(){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 a(t,e){if(t){if("string"===typeof t)return s(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)?s(t,e):void 0}}function s(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 u(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),e&&o.length===e)break}catch(u){s=!0,i=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}function l(t){if(Array.isArray(t))return t}var c=function(){return 1},f=function(t,e,n,r){return h(t,e,n||c,r||function(e){return t.outEdges(e)})},h=function(t,e,n,o){var a,s,u=new Map,l=new r.Z,c=function(t){var e=t.v!==a?t.v:t.w,r=u.get(e),i=n(t),o=s.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);o<r.distance&&(r.distance=o,r.predecessor=a,l.decrease(e,o))};t.nodes().forEach((function(t){var n=t===e?0:Number.POSITIVE_INFINITY;u.set(t,{distance:n}),l.add(t,n)}));while(l.size()>0){if(a=l.removeMin(),s=u.get(a),s&&s.distance===Number.POSITIVE_INFINITY)break;o(a).forEach(c)}var f={};return Array.from(u.entries()).forEach((function(t){var e=i(t,2),n=e[0],r=e[1];return f[String(n)]=r,f})),f};e.Z=/^(539|826)$/.test(n.j)?f:null},35103:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(23105);var i=function(t){return(0,r.Z)(t).filter((function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))};e.Z=/^(539|826)$/.test(n.j)?i:null},14861:function(t,e,n){"use strict";var r=function(){return 1};function i(t,e,n){return o(t,e||r,n||function(e){return t.outEdges(e)})}function o(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],u=i.distance+o.distance;u<s.distance&&(s.distance=u,s.predecessor=o.predecessor)}))}))})),r}e.Z=/^(539|826)$/.test(n.j)?i:null},91537:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(65296);var i=function(t){try{(0,r.Z)(t)}catch(e){if(e instanceof r.Y)return!1;throw e}return!0};e.Z=/^(539|826)$/.test(n.j)?i:null},474:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(64405);var i=function(t,e){return(0,r.Z)(t,e,"post")};e.Z=/^(539|826)$/.test(n.j)?i:null},84886:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(64405);var i=function(t,e){return(0,r.Z)(t,e,"pre")};e.Z=/^(539|826)$/.test(n.j)?i:null},23105:function(t,e,n){"use strict";var r=function(t){var e=0,n=[],r=new Map,i=[];function o(a){var s,u={onStack:!0,lowlink:e,index:e};if(r.set(a,u),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);u.lowlink=Math.min(u.lowlink,n.index)}}else{o(t);var i=r.get(t);u.lowlink=Math.min(u.lowlink,i.lowlink)}})),u.lowlink===u.index){var l,c=[];do{l=n.pop();var f=r.get(l);f.onStack=!1,c.push(l)}while(a!==l);i.push(c)}}return t.nodes().forEach((function(t){r.has(t)||o(t)})),i};e.Z=/^(539|826)$/.test(n.j)?r:null},65296:function(t,e,n){"use strict";function r(t){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},r(t)}function i(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 o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(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&&g(t,e)}function u(t){var e=d();return function(){var n,r=v(t);if(e){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){var e="function"===typeof Map?new Map:void 0;return f=function(t){if(null===t||!p(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return h(t,arguments,v(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,t)},f(t)}function h(t,e,n){return h=d()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=Function.bind.apply(t,r),o=new i;return n&&g(o,n.prototype),o},h.apply(null,arguments)}function d(){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 p(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function g(t,e){return g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},g(t,e)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}n.d(e,{Y:function(){return m}});var m=/^(539|826)$/.test(n.j)?function(t){s(n,t);var e=u(n);function n(){return a(this,n),e.apply(this,arguments)}return o(n)}(f(Error)):null;function y(t){var e=new Set,n=new Set,r=[];function i(o){if(n.has(o))throw new m;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))}if(t.sinks().forEach(i),e.size!==t.nodeCount())throw new m;return r}e.Z=/^(539|826)$/.test(n.j)?y:null},29921:function(t,e,n){"use strict";n.d(e,{IK:function(){return s},Kn:function(){return i},XK:function(){return u},Yu:function(){return r},hL:function(){return c},kV:function(){return o},mr:function(){return f},qA:function(){return l},wL:function(){return a}});var r=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},i=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},o=function(t,e){var n=t.nodes(),r=n.filter((function(t){return e.hasNode(t)}));return r},a=function(t,e){var n=t.edges(),r=n.filter((function(t){return e.hasEdge(t.v,t.w,t.name)}));return r},s=function(t,e){return t.isCompound()===e.isCompound()&&t.isDirected()===e.isDirected()&&t.isMultigraph()===e.isMultigraph()},u=function(t,e){var n=o(t,e);return n.length===t.nodes().length},l=function(t,e){var n=a(t,e);return n.length===t.edges().length},c=function(t,e){return s(t,e)&&t.nodeCount()===e.nodeCount()&&u(t,e)&&t.edgeCount()===e.edgeCount()&&l(t,e)},f=function(t,e){return u(t,e)&&l(t,e)}},39780:function(t,e,n){"use strict";n.r(e),n.d(e,{Graph:function(){return T},GraphWithEvent:function(){return B},algorithm:function(){return r},comparision:function(){return o},essence:function(){return i},generate:function(){return s}});var r={};n.r(r),n.d(r,{components:function(){return H.Z},dfs:function(){return $.Z},dijkstra:function(){return G.Z},dijkstraAll:function(){return W.Z},findCycles:function(){return V.Z},floydWarshall:function(){return Q.Z},isAcyclic:function(){return Y.Z},postorder:function(){return X.Z},preorder:function(){return q.Z},prim:function(){return U},tarjan:function(){return K.Z},topsort:function(){return J.Z}});var i={};n.r(i),n.d(i,{hasSelfLoop:function(){return ct},isGraph:function(){return st},isNullGraph:function(){return lt},isSimpleGraph:function(){return ut}});var o={};n.r(o),n.d(o,{containAllSameEdges:function(){return tt.qA},containAllSameNodes:function(){return tt.XK},containSameEdges:function(){return tt.Kn},containSameNodes:function(){return tt.Yu},getSameEdges:function(){return tt.wL},getSameNodes:function(){return tt.kV},isGraphComplement:function(){return ft},isGraphContainsAnother:function(){return tt.mr},isGraphOptionSame:function(){return tt.IK},isGraphSame:function(){return tt.hL}});var a,s={};function u(t,e){var n=t.get(e)||0;t.set(e,n+1)}function l(t,e){var n=t.get(e);void 0!==n&&(n-=1,n>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 f(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 h(t,e){return c(t,e.v,e.w,e.name)}function d(t){return"function"===typeof t}n.r(s),n.d(s,{getGraphComplement:function(){return ht}}),function(t){t["DEFAULT_EDGE_NAME"]="\0",t["GRAPH_NODE"]="\0",t["EDGE_KEY_DELIM"]=""}(a||(a={}));var p=function(t){return t.nodes().map((function(e){var n=t.node(e),r=t.parent(e),i={id:e,value:n,parent:r};return void 0===i.value&&delete i.value,void 0===i.parent&&delete i.parent,i}))},g=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}))},v=function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:p(t),edges:g(t),value:t.graph()};return void 0===e.value&&delete e.value,e},m=function(t){var e=new T(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};function y(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 b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}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(t,e,n){return e&&w(t.prototype,e),n&&w(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var E={compound:!1,multigraph:!1,directed:!0},T=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_(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 d(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();var o=void 0===n?e.GRAPH_NODE:n,a=e.parent(o);while(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){var s=function(t){var n=e.parent(t);while(void 0!==n&&!a.hasNode(n))n=e.parent(n);return n};a.nodes().forEach((function(t){a.setParent(t,s(t))}))}return a},this.setDefaultEdgeLabel=function(t){return d(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(h(e.isDirected(),t))},this.hasEdge=function(t,n,r){return e.edgesLabelsMap.has(h(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 v(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=b(b({},E),n);this.compound=r.compound,this.directed=r.directed,this.multigraph=r.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}return S(t,[{key:"setNode",value:function(t,e){var n,r=this.nodesLabelMap,i=this.defaultNodeLabelFn,o=this.isCompound,a=this.parentMap,s=this.childrenMap,u=this.inEdgesMap,l=this.outEdgesMap,c=this.predecessorsMap,f=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[u,l,c,f].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,u=this.predecessorsMap,l=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 f=a.get(t),h=s.get(t);Array.from(f.values()).forEach((function(t){return o(t)})),Array.from(h.values()).forEach((function(t){return o(t)})),c.delete(t),a.delete(t),s.delete(t),u.delete(t),l.delete(t),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(t,e,n,r){var i,o,a=f(this.isDirected(),t,e,r),s=h(this.isDirected(),a),l=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(l),this.setNode(c),this.edgesLabelsMap.set(s,n||this.defaultEdgeLabelFn(l,c,r)),Object.freeze(a),this.edgesMap.set(s,a);var d=this.predecessorsMap.get(c),p=this.successorsMap.get(l);return u(d,l),u(p,c),null===(i=this.inEdgesMap.get(c))||void 0===i||i.set(s,a),null===(o=this.outEdgesMap.get(l))||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),i=this.edgesMap.get(r);if(i){var o=f(this.isDirected(),t,e,n),a=o.v,s=o.w;this.edgesLabelsMap.delete(r),this.edgesMap.delete(r);var u=this.predecessorsMap.get(s),h=this.successorsMap.get(a);l(u,a),l(h,s),this.inEdgesMap.get(s).delete(r),this.outEdgesMap.get(a).delete(r),this.edgeCountNum-=1}return this}}]),t}();function k(t){return k="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},k(t)}function C(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function M(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 A(t,e,n){return e&&M(t.prototype,e),n&&M(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function I(){return I="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=O(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},I.apply(this,arguments)}function O(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=F(t),null===t)break;return t}function D(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&&P(t,e)}function P(t,e){return P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},P(t,e)}function L(t){var e=j();return function(){var n,r=F(t);if(e){var i=F(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return N(this,n)}}function N(t,e){if(e&&("object"===k(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return R(t)}function R(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function j(){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 F(t){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},F(t)}T.fromJSON=m;var B=function(t){D(n,t);var e=L(n);function n(){var t;C(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),t.eventPool={},t}return A(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 I(F(n.prototype),"setNode",this).call(this,t,e),this.emitEvent("nodeAdd",t,e),this}},{key:"removeNode",value:function(t){return I(F(n.prototype),"removeNode",this).call(this,t),this.emitEvent("nodeRemove",t),this}},{key:"setEdge",value:function(t,e,r,i){return I(F(n.prototype),"setEdge",this).call(this,t,e,r,i),this.emitEvent("edgeAdd",t,e,r,i),this}},{key:"removeEdge",value:function(t,e,r){return I(F(n.prototype),"removeEdge",this).call(this,t,e,r),this.emitEvent("edgeRemove",t,e,r),this}}]),n}(T),z=n(1779),Z=function(t,e){var n,r=new T,i=new Map,o=new z.Z;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);var s=!1;while(o.size()>0){var u;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===(u=t.nodeEdges(n))||void 0===u||u.forEach(a)}return r},U=Z,H=n(43501),$=n(64405),G=n(16272),W=n(96555),V=n(35103),Y=n(91537),X=n(474),q=n(84886),K=n(23105),J=n(65296),Q=n(14861),tt=n(29921);function et(t,e){return at(t)||ot(t,e)||rt(t,e)||nt()}function nt(){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 rt(t,e){if(t){if("string"===typeof t)return it(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)?it(t,e):void 0}}function it(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 ot(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),e&&o.length===e)break}catch(u){s=!0,i=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}function at(t){if(Array.isArray(t))return t}function st(t){return t instanceof T}function ut(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=[i.v,i.w].sort(),a=et(o,2),s=a[0],u=a[1],l="".concat(s,"-").concat(u);if(n.has(l))return!1;n.set(l,!0)}return!0}function lt(t){return 0===t.nodes().length}function ct(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 ft=function(t,e){if(!ut(t)||!ut(e))return!1;if(!(0,tt.XK)(t,e))return!1;if((0,tt.Kn)(t,e))return!1;var n=t.nodeCount();return t.edgeCount()+e.edgeCount()===n*(n-1)/2},ht=function(t){if(!ut(t))return null;for(var e=t.nodeCount(),n=new T({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}},81746:function(t){(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(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=36)}([function(t,e,n){"use strict";var r=n(3);e["a"]=function(t){return Array.isArray?Array.isArray(t):Object(r["a"])(t,"Array")}},function(t,e,n){"use strict";var r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};e["a"]=r},function(t,e,n){"use strict";var r=n(3);e["a"]=function(t){return Object(r["a"])(t,"Function")}},function(t,e,n){"use strict";var r={}.toString,i=function(t,e){return r.call(t)==="[object "+e+"]"};e["a"]=i},function(t,e,n){"use strict";var r=n(3);e["a"]=function(t){return Object(r["a"])(t,"String")}},function(t,e,n){"use strict";var r=n(3),i=function(t){return Object(r["a"])(t,"Number")};e["a"]=i},function(t,e,n){var r=n(38),i=r.mix;function o(t,e,n,r){return void 0===r&&(r="height"),"center"===n?(t[r]+e[r])/2:t.height}t.exports={assign:i,getHeight:o}},function(t,e,n){"use strict";var r=function(t){return null===t||void 0===t};e["a"]=r},function(t,e,n){"use strict";var r=n(0),i=n(12);function o(t,e){var n;if(t)if(Object(r["a"])(t)){for(var o=0,a=t.length;o<a;o++)if(n=e(t[o],o),!1===n)break}else if(Object(i["a"])(t))for(var s in t)if(t.hasOwnProperty(s)&&(n=e(t[s],s),!1===n))break}e["a"]=o},function(t,e,n){"use strict";var r=n(7);e["a"]=function(t){return Object(r["a"])(t)?"":t.toString()}},function(t,e,n){"use strict";var r=n(14),i=n(3),o=function(t){if(!Object(r["a"])(t)||!Object(i["a"])(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};e["a"]=o},function(t,e,n){var r=n(18),i=function(){function t(t,e){void 0===e&&(e={});var n=this;n.options=e,n.rootNode=r(t,e)}var e=t.prototype;return e.execute=function(){throw new Error("please override this method")},t}();t.exports=i},function(t,e,n){"use strict";e["a"]=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},function(t,e,n){"use strict";var r=n(1),i=function(t,e){return!!Object(r["a"])(t)&&t.indexOf(e)>-1};e["a"]=i},function(t,e,n){"use strict";var r=function(t){return"object"===typeof t&&null!==t};e["a"]=r},function(t,e,n){"use strict";var r=n(8),i=n(2),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return Object(r["a"])(t,(function(n,r){Object(i["a"])(t)&&"prototype"===r||e.push(n)})),e};e["a"]=o},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function i(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}e["a"]=i},function(t,e,n){var r=n(35),i=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=function(t){return o.indexOf(t)>-1},s=i[0];t.exports=function(t,e,n){var o=e.direction||s;if(e.isHorizontal=a(o),o&&-1===i.indexOf(o))throw new TypeError("Invalid direction: "+o);if(o===i[0])n(t,e);else if(o===i[1])n(t,e),t.right2left();else if(o===i[2])n(t,e);else if(o===i[3])n(t,e),t.bottom2top();else if(o===i[4]||o===i[5]){var u=r(t,e),l=u.left,c=u.right;n(l,e),n(c,e),e.isHorizontal?l.right2left():l.bottom2top(),c.translate(l.x-c.x,l.y-c.y),t.x=l.x,t.y=c.y;var f=t.getBoundingBox();e.isHorizontal?f.top<0&&t.translate(0,-f.top):f.left<0&&t.translate(-f.left,0)}var h=e.fixedRoot;return void 0===h&&(h=!0),h&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var r=n(6),i=18,o=2*i,a=i,s={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||a},getVGap:function(t){return t.vgap||a},getChildren:function(t){return t.children},getHeight:function(t){return t.height||o},getWidth:function(t){var e=t.label||" ";return t.width||e.split("").length*i}};function u(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof u)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}function l(t,e,n){void 0===e&&(e={}),e=r.assign({},s,e);var i,o=new u(t,e),a=[o];if(!n&&!t.collapsed)while(i=a.shift())if(!i.data.collapsed){var l=e.getChildren(i.data),c=l?l.length:0;if(i.children=new Array(c),l&&c)for(var f=0;f<c;f++){var h=new u(l[f],e);i.children[f]=h,a.push(h),h.parent=i,h.depth=i.depth+1}}return o}r.assign(u.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){var n=this;n.hgap+=t,n.vgap+=e,n.width+=2*t,n.height+=2*e},eachNode:function(t){var e,n=this,r=[n];while(e=r.shift())t(e),r=e.children.concat(r)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){var e,n=this,r=[n];while(e=r.shift())t(e),r=r.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,e=t.getBoundingBox();t.eachNode((function(t){t.x=t.x-2*(t.x-e.left)-t.width})),t.translate(e.width,0)},bottom2top:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.y=t.y-2*(t.y-e.top)-t.height})),t.translate(0,e.height)}}),t.exports=l},function(t,e,n){"use strict";var r=n(1),i=function(t,e){if(!Object(r["a"])(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];e(o,i)&&n.push(o)}return n};e["a"]=i},function(t,e,n){"use strict";var r=n(7),i=n(21);function o(t,e){var n=Object(i["a"])(e),o=n.length;if(Object(r["a"])(t))return!o;for(var a=0;a<o;a+=1){var s=n[a];if(e[s]!==t[s]||!(s in t))return!1}return!0}e["a"]=o},function(t,e,n){"use strict";var r=n(8),i=n(2),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Object(r["a"])(t,(function(n,r){Object(i["a"])(t)&&"prototype"===r||e.push(r)})),e};e["a"]=o},function(t,e,n){"use strict";var r=n(0);e["a"]=function(t){if(Object(r["a"])(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])}},function(t,e,n){"use strict";var r=n(0);e["a"]=function(t){if(Object(r["a"])(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])}},function(t,e,n){"use strict";var r=n(1),i=Array.prototype.splice,o=function(t,e){if(!Object(r["a"])(t))return[];var n=t?e.length:0,o=n-1;while(n--){var a=void 0,s=e[n];n!==o&&s===a||(a=s,i.call(t,s,1))}return t};e["a"]=o},function(t,e,n){"use strict";var r=n(8),i=n(0),o=n(10),a=function(t,e,n){if(!Object(i["a"])(t)&&!Object(o["a"])(t))return t;var a=n;return Object(r["a"])(t,(function(t,n){a=e(a,t,n)})),a};e["a"]=a},function(t,e,n){"use strict";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}e["a"]=r},function(t,e,n){"use strict";e["a"]=a;var r=n(0),i=n(2),o=n(28);function a(t,e){if(!e)return{0:t};if(!Object(i["a"])(e)){var n=Object(r["a"])(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 Object(o["a"])(t,e)}},function(t,e,n){"use strict";var r=n(0),i=n(2),o=Object.prototype.hasOwnProperty;function a(t,e){if(!e||!Object(r["a"])(t))return{};for(var n,a={},s=Object(i["a"])(e)?e:function(t){return t[e]},u=0;u<t.length;u++){var l=t[u];n=s(l),o.call(a,n)?a[n].push(l):a[n]=[l]}return a}e["a"]=a},function(t,e,n){"use strict";e["a"]=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){"use strict";var r={}.toString,i=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"")};e["a"]=i},function(t,e,n){"use strict";var r=Object.prototype,i=function(t){var e=t&&t.constructor,n="function"===typeof e&&e.prototype||r;return t===n};e["a"]=i},function(t,e,n){"use strict";var r=n(2);e["a"]=function(t,e){if(!Object(r["a"])(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}},function(t,e,n){"use strict";var r=n(14),i=n(1),o=n(4),a=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(Object(o["a"])(t)||Object(o["a"])(e))return!1;if(Object(i["a"])(t)||Object(i["a"])(e)){if(t.length!==e.length)return!1;for(var n=!0,s=0;s<t.length;s++)if(n=a(t[s],e[s]),!n)break;return n}if(Object(r["a"])(t)||Object(r["a"])(e)){var u=Object.keys(t),l=Object.keys(e);if(u.length!==l.length)return!1;for(n=!0,s=0;s<u.length;s++)if(n=a(t[u[s]],e[u[s]]),!n)break;return n}return!1};e["a"]=a},function(t,e,n){"use strict";var r,i=n(116),o=n(15),a=n(32),s=n(4);e["a"]=Object(a["a"])((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,o=e.fontWeight,a=e.fontStyle,u=e.fontVariant;return r||(r=document.createElement("canvas").getContext("2d")),r.font=[a,u,o,n+"px",i].join(" "),r.measureText(Object(s["a"])(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(i["a"])([t],Object(o["a"])(e)).join("")}))},function(t,e,n){var r=n(18);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"},u=0;u<o;u++){var l=t.children[u],c=s(l,u);"right"===c?i.children.push(l):n.children.push(l)}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(37),dendrogram:n(120),indented:n(122),mindmap:n(124)};t.exports=r},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}var o=n(11),a=n(119),s=n(17),u=n(6),l=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return s(t.rootNode,t.options,a)},e}(o),c={};function f(t,e){return e=u.assign({},c,e),new l(t,e).execute()}t.exports=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13);n.d(e,"contains",(function(){return r["a"]})),n.d(e,"includes",(function(){return r["a"]}));var i=n(39);n.d(e,"difference",(function(){return i["a"]}));var o=n(40);n.d(e,"find",(function(){return o["a"]}));var a=n(41);n.d(e,"findIndex",(function(){return a["a"]}));var s=n(42);n.d(e,"firstValue",(function(){return s["a"]}));var u=n(43);n.d(e,"flatten",(function(){return u["a"]}));var l=n(44);n.d(e,"flattenDeep",(function(){return l["a"]}));var c=n(45);n.d(e,"getRange",(function(){return c["a"]}));var f=n(46);n.d(e,"pull",(function(){return f["a"]}));var h=n(24);n.d(e,"pullAt",(function(){return h["a"]}));var d=n(25);n.d(e,"reduce",(function(){return d["a"]}));var p=n(47);n.d(e,"remove",(function(){return p["a"]}));var g=n(48);n.d(e,"sortBy",(function(){return g["a"]}));var v=n(49);n.d(e,"union",(function(){return v["a"]}));var m=n(26);n.d(e,"uniq",(function(){return m["a"]}));var y=n(50);n.d(e,"valuesOfKey",(function(){return y["a"]}));var b=n(51);n.d(e,"head",(function(){return b["a"]}));var x=n(52);n.d(e,"last",(function(){return x["a"]}));var _=n(53);n.d(e,"startsWith",(function(){return _["a"]}));var w=n(54);n.d(e,"endsWith",(function(){return w["a"]}));var S=n(19);n.d(e,"filter",(function(){return S["a"]}));var E=n(55);n.d(e,"every",(function(){return E["a"]}));var T=n(56);n.d(e,"some",(function(){return T["a"]}));var k=n(57);n.d(e,"group",(function(){return k["a"]}));var C=n(28);n.d(e,"groupBy",(function(){return C["a"]}));var M=n(27);n.d(e,"groupToMap",(function(){return M["a"]}));var A=n(58);n.d(e,"getWrapBehavior",(function(){return A["a"]}));var I=n(59);n.d(e,"wrapBehavior",(function(){return I["a"]}));var O=n(60);n.d(e,"number2color",(function(){return O["a"]}));var D=n(61);n.d(e,"parseRadius",(function(){return D["a"]}));var P=n(62);n.d(e,"clamp",(function(){return P["a"]}));var L=n(63);n.d(e,"fixedBase",(function(){return L["a"]}));var N=n(64);n.d(e,"isDecimal",(function(){return N["a"]}));var R=n(65);n.d(e,"isEven",(function(){return R["a"]}));var j=n(66);n.d(e,"isInteger",(function(){return j["a"]}));var F=n(67);n.d(e,"isNegative",(function(){return F["a"]}));var B=n(68);n.d(e,"isNumberEqual",(function(){return B["a"]}));var z=n(69);n.d(e,"isOdd",(function(){return z["a"]}));var Z=n(70);n.d(e,"isPositive",(function(){return Z["a"]}));var U=n(22);n.d(e,"max",(function(){return U["a"]}));var H=n(71);n.d(e,"maxBy",(function(){return H["a"]}));var $=n(23);n.d(e,"min",(function(){return $["a"]}));var G=n(72);n.d(e,"minBy",(function(){return G["a"]}));var W=n(73);n.d(e,"mod",(function(){return W["a"]}));var V=n(74);n.d(e,"toDegree",(function(){return V["a"]}));var Y=n(75);n.d(e,"toInteger",(function(){return Y["a"]}));var X=n(76);n.d(e,"toRadian",(function(){return X["a"]}));var q=n(77);n.d(e,"forIn",(function(){return q["a"]}));var K=n(29);n.d(e,"has",(function(){return K["a"]}));var J=n(78);n.d(e,"hasKey",(function(){return J["a"]}));var Q=n(79);n.d(e,"hasValue",(function(){return Q["a"]}));var tt=n(21);n.d(e,"keys",(function(){return tt["a"]}));var et=n(20);n.d(e,"isMatch",(function(){return et["a"]}));var nt=n(15);n.d(e,"values",(function(){return nt["a"]}));var rt=n(80);n.d(e,"lowerCase",(function(){return rt["a"]}));var it=n(81);n.d(e,"lowerFirst",(function(){return it["a"]}));var ot=n(82);n.d(e,"substitute",(function(){return ot["a"]}));var at=n(83);n.d(e,"upperCase",(function(){return at["a"]}));var st=n(84);n.d(e,"upperFirst",(function(){return st["a"]}));var ut=n(30);n.d(e,"getType",(function(){return ut["a"]}));var lt=n(85);n.d(e,"isArguments",(function(){return lt["a"]}));var ct=n(0);n.d(e,"isArray",(function(){return ct["a"]}));var ft=n(1);n.d(e,"isArrayLike",(function(){return ft["a"]}));var ht=n(86);n.d(e,"isBoolean",(function(){return ht["a"]}));var dt=n(87);n.d(e,"isDate",(function(){return dt["a"]}));var pt=n(88);n.d(e,"isError",(function(){return pt["a"]}));var gt=n(2);n.d(e,"isFunction",(function(){return gt["a"]}));var vt=n(89);n.d(e,"isFinite",(function(){return vt["a"]}));var mt=n(7);n.d(e,"isNil",(function(){return mt["a"]}));var yt=n(90);n.d(e,"isNull",(function(){return yt["a"]}));var bt=n(5);n.d(e,"isNumber",(function(){return bt["a"]}));var xt=n(12);n.d(e,"isObject",(function(){return xt["a"]}));var _t=n(14);n.d(e,"isObjectLike",(function(){return _t["a"]}));var wt=n(10);n.d(e,"isPlainObject",(function(){return wt["a"]}));var St=n(31);n.d(e,"isPrototype",(function(){return St["a"]}));var Et=n(91);n.d(e,"isRegExp",(function(){return Et["a"]}));var Tt=n(4);n.d(e,"isString",(function(){return Tt["a"]}));var kt=n(3);n.d(e,"isType",(function(){return kt["a"]}));var Ct=n(92);n.d(e,"isUndefined",(function(){return Ct["a"]}));var Mt=n(93);n.d(e,"isElement",(function(){return Mt["a"]}));var At=n(94);n.d(e,"requestAnimationFrame",(function(){return At["a"]}));var It=n(95);n.d(e,"clearAnimationFrame",(function(){return It["a"]}));var Ot=n(96);n.d(e,"augment",(function(){return Ot["a"]}));var Dt=n(97);n.d(e,"clone",(function(){return Dt["a"]}));var Pt=n(98);n.d(e,"debounce",(function(){return Pt["a"]}));var Lt=n(32);n.d(e,"memoize",(function(){return Lt["a"]}));var Nt=n(99);n.d(e,"deepMix",(function(){return Nt["a"]}));var Rt=n(8);n.d(e,"each",(function(){return Rt["a"]}));var jt=n(100);n.d(e,"extend",(function(){return jt["a"]}));var Ft=n(101);n.d(e,"indexOf",(function(){return Ft["a"]}));var Bt=n(102);n.d(e,"isEmpty",(function(){return Bt["a"]}));var zt=n(33);n.d(e,"isEqual",(function(){return zt["a"]}));var Zt=n(103);n.d(e,"isEqualWith",(function(){return Zt["a"]}));var Ut=n(104);n.d(e,"map",(function(){return Ut["a"]}));var Ht=n(105);n.d(e,"mapValues",(function(){return Ht["a"]}));var $t=n(16);n.d(e,"mix",(function(){return $t["a"]})),n.d(e,"assign",(function(){return $t["a"]}));var Gt=n(106);n.d(e,"get",(function(){return Gt["a"]}));var Wt=n(107);n.d(e,"set",(function(){return Wt["a"]}));var Vt=n(108);n.d(e,"pick",(function(){return Vt["a"]}));var Yt=n(109);n.d(e,"omit",(function(){return Yt["a"]}));var Xt=n(110);n.d(e,"throttle",(function(){return Xt["a"]}));var qt=n(111);n.d(e,"toArray",(function(){return qt["a"]}));var Kt=n(9);n.d(e,"toString",(function(){return Kt["a"]}));var Jt=n(112);n.d(e,"uniqueId",(function(){return Jt["a"]}));var Qt=n(113);n.d(e,"noop",(function(){return Qt["a"]}));var te=n(114);n.d(e,"identity",(function(){return te["a"]}));var ee=n(115);n.d(e,"size",(function(){return ee["a"]}));var ne=n(34);n.d(e,"measureTextWidth",(function(){return ne["a"]}));var re=n(117);n.d(e,"getEllipsisText",(function(){return re["a"]}));var ie=n(118);n.d(e,"Cache",(function(){return ie["a"]}))},function(t,e,n){"use strict";var r=n(19),i=n(13),o=function(t,e){return void 0===e&&(e=[]),Object(r["a"])(t,(function(t){return!Object(i["a"])(e,t)}))};e["a"]=o},function(t,e,n){"use strict";var r=n(2),i=n(20),o=n(0),a=n(10);function s(t,e){if(!Object(o["a"])(t))return null;var n;if(Object(r["a"])(e)&&(n=e),Object(a["a"])(e)&&(n=function(t){return Object(i["a"])(t,e)}),n)for(var s=0;s<t.length;s+=1)if(n(t[s]))return t[s];return null}e["a"]=s},function(t,e,n){"use strict";function r(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}e["a"]=r},function(t,e,n){"use strict";var r=n(7),i=n(0),o=function(t,e){for(var n=null,o=0;o<t.length;o++){var a=t[o],s=a[e];if(!Object(r["a"])(s)){n=Object(i["a"])(s)?s[0]:s;break}}return n};e["a"]=o},function(t,e,n){"use strict";var r=n(0),i=function(t){if(!Object(r["a"])(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e};e["a"]=i},function(t,e,n){"use strict";var r=n(0),i=function(t,e){if(void 0===e&&(e=[]),Object(r["a"])(t))for(var n=0;n<t.length;n+=1)i(t[n],e);else e.push(t);return e};e["a"]=i},function(t,e,n){"use strict";var r=n(0),i=n(22),o=n(23),a=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(Object(r["a"])(t[0])){for(var n=[],a=0;a<t.length;a++)n=n.concat(t[a]);e=n}var s=Object(i["a"])(e),u=Object(o["a"])(e);return{min:u,max:s}};e["a"]=a},function(t,e,n){"use strict";var r=Array.prototype,i=r.splice,o=r.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++){var a=e[r],s=-1;while((s=o.call(t,a))>-1)i.call(t,s,1)}return t};e["a"]=a},function(t,e,n){"use strict";var r=n(1),i=n(24),o=function(t,e){var n=[];if(!Object(r["a"])(t))return n;var o=-1,a=[],s=t.length;while(++o<s){var u=t[o];e(u,o,t)&&(n.push(u),a.push(o))}return Object(i["a"])(t,a),n};e["a"]=o},function(t,e,n){"use strict";var r=n(0),i=n(4),o=n(2);function a(t,e){var n;if(Object(o["a"])(e))n=function(t,n){return e(t)-e(n)};else{var a=[];Object(i["a"])(e)?a.push(e):Object(r["a"])(e)&&(a=e),n=function(t,e){for(var n=0;n<a.length;n+=1){var r=a[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}e["a"]=a},function(t,e,n){"use strict";var r=n(26),i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Object(r["a"])([].concat.apply([],t))};e["a"]=i},function(t,e,n){"use strict";var r=n(0),i=n(7);e["a"]=function(t,e){for(var n=[],o={},a=0;a<t.length;a++){var s=t[a],u=s[e];if(!Object(i["a"])(u)){Object(r["a"])(u)||(u=[u]);for(var l=0;l<u.length;l++){var c=u[l];o[c]||(n.push(c),o[c]=!0)}}}return n}},function(t,e,n){"use strict";e["a"]=i;var r=n(1);function i(t){if(Object(r["a"])(t))return t[0]}},function(t,e,n){"use strict";e["a"]=i;var r=n(1);function i(t){if(Object(r["a"])(t)){var e=t;return e[e.length-1]}}},function(t,e,n){"use strict";var r=n(0),i=n(4);function o(t,e){return!(!Object(r["a"])(t)&&!Object(i["a"])(t))&&t[0]===e}e["a"]=o},function(t,e,n){"use strict";var r=n(0),i=n(4);function o(t,e){return!(!Object(r["a"])(t)&&!Object(i["a"])(t))&&t[t.length-1]===e}e["a"]=o},function(t,e,n){"use strict";var r=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0};e["a"]=r},function(t,e,n){"use strict";var r=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1};e["a"]=r},function(t,e,n){"use strict";var r=n(27);e["a"]=function(t,e){if(!e)return[t];var n=Object(r["a"])(t,e),i=[];for(var o in n)i.push(n[o]);return i}},function(t,e,n){"use strict";function r(t,e){return t["_wrap_"+e]}e["a"]=r},function(t,e,n){"use strict";function r(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}e["a"]=r},function(t,e,n){"use strict";var r={};function i(t){var e=r[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,r[t]=e}return e}e["a"]=i},function(t,e,n){"use strict";var r=n(0);function i(t){var e=0,n=0,i=0,o=0;return Object(r["a"])(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,{r1:e,r2:n,r3:i,r4:o}}e["a"]=i},function(t,e,n){"use strict";var r=function(t,e,n){return t<e?e:t>n?n:t};e["a"]=r},function(t,e,n){"use strict";var r=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))};e["a"]=r},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t%1!==0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t%2===0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=Number.isInteger?Number.isInteger:function(t){return Object(r["a"])(t)&&t%1===0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t<0};e["a"]=i},function(t,e,n){"use strict";e["a"]=i;var r=1e-5;function i(t,e,n){return void 0===n&&(n=r),Math.abs(t-e)<n}},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t%2!==0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t>0};e["a"]=i},function(t,e,n){"use strict";var r=n(0),i=n(2);e["a"]=function(t,e){if(Object(r["a"])(t)){for(var n,o=-1/0,a=0;a<t.length;a++){var s=t[a],u=Object(i["a"])(e)?e(s):s[e];u>o&&(n=s,o=u)}return n}}},function(t,e,n){"use strict";var r=n(0),i=n(2);e["a"]=function(t,e){if(Object(r["a"])(t)){for(var n,o=1/0,a=0;a<t.length;a++){var s=t[a],u=Object(i["a"])(e)?e(s):s[e];u<o&&(n=s,o=u)}return n}}},function(t,e,n){"use strict";var r=function(t,e){return(t%e+e)%e};e["a"]=r},function(t,e,n){"use strict";var r=180/Math.PI,i=function(t){return r*t};e["a"]=i},function(t,e,n){"use strict";e["a"]=parseInt},function(t,e,n){"use strict";var r=Math.PI/180,i=function(t){return r*t};e["a"]=i},function(t,e,n){"use strict";var r=n(8);e["a"]=r["a"]},function(t,e,n){"use strict";var r=n(29);e["a"]=r["a"]},function(t,e,n){"use strict";var r=n(13),i=n(15);e["a"]=function(t,e){return Object(r["a"])(Object(i["a"])(t),e)}},function(t,e,n){"use strict";var r=n(9),i=function(t){return Object(r["a"])(t).toLowerCase()};e["a"]=i},function(t,e,n){"use strict";var r=n(9),i=function(t){var e=Object(r["a"])(t);return e.charAt(0).toLowerCase()+e.substring(1)};e["a"]=i},function(t,e,n){"use strict";function r(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}e["a"]=r},function(t,e,n){"use strict";var r=n(9),i=function(t){return Object(r["a"])(t).toUpperCase()};e["a"]=i},function(t,e,n){"use strict";var r=n(9),i=function(t){var e=Object(r["a"])(t);return e.charAt(0).toUpperCase()+e.substring(1)};e["a"]=i},function(t,e,n){"use strict";var r=n(3),i=function(t){return Object(r["a"])(t,"Arguments")};e["a"]=i},function(t,e,n){"use strict";var r=n(3),i=function(t){return Object(r["a"])(t,"Boolean")};e["a"]=i},function(t,e,n){"use strict";var r=n(3),i=function(t){return Object(r["a"])(t,"Date")};e["a"]=i},function(t,e,n){"use strict";var r=n(3),i=function(t){return Object(r["a"])(t,"Error")};e["a"]=i},function(t,e,n){"use strict";var r=n(5);e["a"]=function(t){return Object(r["a"])(t)&&isFinite(t)}},function(t,e,n){"use strict";var r=function(t){return null===t};e["a"]=r},function(t,e,n){"use strict";var r=n(3),i=function(t){return Object(r["a"])(t,"RegExp")};e["a"]=i},function(t,e,n){"use strict";var r=function(t){return void 0===t};e["a"]=r},function(t,e,n){"use strict";var r=function(t){return t instanceof Element||t instanceof HTMLDocument};e["a"]=r},function(t,e,n){"use strict";function r(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}e["a"]=r},function(t,e,n){"use strict";function r(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}e["a"]=r},function(t,e,n){"use strict";var r=n(16),i=n(2),o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],o=1;o<t.length;o++){var a=t[o];Object(i["a"])(a)&&(a=a.prototype),Object(r["a"])(n.prototype,a)}};e["a"]=o},function(t,e,n){"use strict";var r=n(0),i=function(t){if("object"!==typeof t||null===t)return t;var e;if(Object(r["a"])(t)){e=[];for(var n=0,o=t.length;n<o;n++)"object"===typeof t[n]&&null!=t[n]?e[n]=i(t[n]):e[n]=t[n]}else for(var a in e={},t)"object"===typeof t[a]&&null!=t[a]?e[a]=i(t[a]):e[a]=t[a];return e};e["a"]=i},function(t,e,n){"use strict";function r(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}e["a"]=r},function(t,e,n){"use strict";var r=n(0),i=n(10),o=5;function a(t,e,n,s){for(var u in n=n||0,s=s||o,e)if(e.hasOwnProperty(u)){var l=e[u];null!==l&&Object(i["a"])(l)?(Object(i["a"])(t[u])||(t[u]={}),n<s?a(t[u],l,n+1,s):t[u]=e[u]):Object(r["a"])(l)?(t[u]=[],t[u]=t[u].concat(l)):void 0!==l&&(t[u]=l)}}var s=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)a(t,e[r]);return t};e["a"]=s},function(t,e,n){"use strict";var r=n(16),i=n(2),o=function(t,e,n,o){Object(i["a"])(e)||(n=e,e=t,t=function(){});var a=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},s=a(e.prototype,t);return t.prototype=Object(r["a"])(s,t.prototype),t.superclass=a(e.prototype,e),Object(r["a"])(s,n),Object(r["a"])(t,o),t};e["a"]=o},function(t,e,n){"use strict";var r=n(1),i=function(t,e){if(!Object(r["a"])(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};e["a"]=i},function(t,e,n){"use strict";var r=n(7),i=n(1),o=n(30),a=n(31),s=Object.prototype.hasOwnProperty;function u(t){if(Object(r["a"])(t))return!0;if(Object(i["a"])(t))return!t.length;var e=Object(o["a"])(t);if("Map"===e||"Set"===e)return!t.size;if(Object(a["a"])(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}e["a"]=u},function(t,e,n){"use strict";var r=n(2),i=n(33);e["a"]=function(t,e,n){return Object(r["a"])(n)?!!n(t,e):Object(i["a"])(t,e)}},function(t,e,n){"use strict";var r=n(1),i=function(t,e){if(!Object(r["a"])(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(e(o,i))}return n};e["a"]=i},function(t,e,n){"use strict";var r=n(7),i=n(12),o=function(t){return t};e["a"]=function(t,e){void 0===e&&(e=o);var n={};return Object(i["a"])(t)&&!Object(r["a"])(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},function(t,e,n){"use strict";var r=n(4);e["a"]=function(t,e,n){var i=0,o=Object(r["a"])(e)?e.split("."):e;while(t&&i<o.length)t=t[o[i++]];return void 0===t||i<o.length?n:t}},function(t,e,n){"use strict";var r=n(12),i=n(4),o=n(5);e["a"]=function(t,e,n){var a=t,s=Object(i["a"])(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?(Object(r["a"])(a[t])||(a[t]=Object(o["a"])(s[e+1])?[]:{}),a=a[t]):a[t]=n})),t}},function(t,e,n){"use strict";var r=n(8),i=n(10),o=Object.prototype.hasOwnProperty;e["a"]=function(t,e){if(null===t||!Object(i["a"])(t))return{};var n={};return Object(r["a"])(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},function(t,e,n){"use strict";var r=n(25);e["a"]=function(t,e){return Object(r["a"])(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})}},function(t,e,n){"use strict";e["a"]=function(t,e,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var c=e-(l-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l}},function(t,e,n){"use strict";var r=n(1);e["a"]=function(t){return Object(r["a"])(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";var r={};e["a"]=function(t){return t=t||"g",r[t]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";e["a"]=function(){}},function(t,e,n){"use strict";e["a"]=function(t){return t}},function(t,e,n){"use strict";e["a"]=o;var r=n(7),i=n(1);function o(t){return Object(r["a"])(t)?0:Object(i["a"])(t)?t.length:Object.keys(t).length}},function(t,e,n){"use strict";e["a"]=r;Object.create;function r(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(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}Object.create},function(t,e,n){"use strict";var r=n(4),i=n(9),o=n(34);e["a"]=function(t,e,n,a){void 0===a&&(a="...");var s,u,l=16,c=Object(o["a"])(a,n),f=Object(r["a"])(t)?t:Object(i["a"])(t),h=e,d=[];if(Object(o["a"])(t,n)<=e)return t;while(1){if(s=f.substr(0,l),u=Object(o["a"])(s,n),u+c>h&&u>h)break;if(d.push(s),h-=u,f=f.substr(l),!f)return d.join("")}while(1){if(s=f.substr(0,1),u=Object(o["a"])(s,n),u+c>h)break;if(d.push(s),h-=u,f=f.substr(1),!f)return d.join("")}return""+d.join("")+a}},function(t,e,n){"use strict";var r=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}();e["a"]=r},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,n){n?t.y+=e:t.x+=e,t.children.forEach((function(t){r(t,e,n)}))}function i(t,e){var n=e?t.y:t.x;return t.children.forEach((function(t){n=Math.min(i(t,e),n)})),n}function o(t,e){var n=i(t,e);r(t,-n,e)}function a(t,e,n){n?e.y=t.x:e.x=t.x,t.c.forEach((function(t,r){a(t,e.children[r],n)}))}function s(t,e,n){void 0===n&&(n=0),e?(t.x=n,n+=t.width):(t.y=n,n+=t.height),t.children.forEach((function(t){s(t,e,n)}))}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 r=e.isHorizontal;function i(t){if(0!==t.cs){i(t.c[0]);for(var e=x(d(t.c[0].el),0,null),n=1;n<t.cs;++n){i(t.c[n]);var r=d(t.c[n].er);l(t,n,e),e=x(r,n,e)}v(t),u(t)}else u(t)}function u(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 l(t,e,n){var r=t.c[e-1],i=r.mod,o=t.c[e],a=o.mod;while(null!==r&&null!==o){d(r)>n.low&&(n=n.nxt);var s=i+r.prelim+r.w-(a+o.prelim);s>0&&(a+=s,c(t,e,n.index,s));var u=d(r),l=d(o);u<=l&&(r=h(r),null!==r&&(i+=r.mod)),u>=l&&(o=f(o),null!==o&&(a+=o.mod))}!r&&o?p(t,e,o,a):r&&!o&&g(t,e,r,i)}function c(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,y(t,e,n,r)}function f(t){return 0===t.cs?t.tl:t.c[0]}function h(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function d(t){return t.y+t.h}function p(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}function g(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}function v(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}function m(t,e){e+=t.mod,t.x=t.prelim+e,b(t);for(var n=0;n<t.cs;n++)m(t.c[n],e)}function y(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}}function b(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}function x(t,e,n){while(null!==n&&t>=n.low)n=n.nxt;return{low:t,index:e,nxt:n}}s(t,r);var _=n.fromNode(t,r);return i(_),m(_,0),a(_,t,r),o(t,r),t}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}var o=n(11),a=n(121),s=n(17),u=n(6),l=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return t.rootNode.width=0,s(t.rootNode,t.options,a)},e}(o),c={};function f(t,e){return e=u.assign({},c,e),new l(t,e).execute()}t.exports=f},function(t,e,n){var r=n(6);function i(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}var o={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function a(t,e,n){n?(e.x=t.x,e.y=t.y):(e.x=t.y,e.y=t.x),t.children.forEach((function(t,r){a(t,e.children[r],n)}))}t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},o,e);var n,s=0;function u(t){if(!t)return null;t.width=0,t.depth&&t.depth>s&&(s=t.depth);var e=t.children,n=e.length,r=new i(t.height,[]);return e.forEach((function(t,e){var i=u(t);r.children.push(i),0===e&&(r.leftChild=i),e===n-1&&(r.rightChild=i)})),r.originNode=t,r.isLeaf=t.isLeaf(),r}function l(t){if(t.isLeaf||0===t.children.length)t.drawingDepth=s;else{var e=t.children.map((function(t){return l(t)})),n=Math.min.apply(null,e);t.drawingDepth=n-1}return t.drawingDepth}function c(t){t.x=t.drawingDepth*e.rankSep,t.isLeaf?(t.y=0,n&&(t.y=n.y+n.height+e.nodeSep,t.originNode.parent!==n.originNode.parent&&(t.y+=e.subTreeSep)),n=t):(t.children.forEach((function(t){c(t)})),t.y=(t.leftChild.y+t.rightChild.y)/2)}var f=u(t);return l(f),c(f),a(f,t,e.isHorizontal),t}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}var o=n(11),a=n(123),s=n(35),u=n(6),l=["LR","RL","H"],c=l[0],f=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this,e=t.options,n=t.rootNode;e.isHorizontal=!0;var r=e.indent,i=void 0===r?20:r,o=e.dropCap,u=void 0===o||o,f=e.direction,h=void 0===f?c:f,d=e.align;if(h&&-1===l.indexOf(h))throw new TypeError("Invalid direction: "+h);if(h===l[0])a(n,i,u,d);else if(h===l[1])a(n,i,u,d),n.right2left();else if(h===l[2]){var p=s(n,e),g=p.left,v=p.right;a(g,i,u,d),g.right2left(),a(v,i,u,d);var m=g.getBoundingBox();v.translate(m.width,0),n.x=v.x-n.width/2}return n},e}(o),h={};function d(t,e){return e=u.assign({},h,e),new f(t,e).execute()}t.exports=d},function(t,e,n){var r=n(6);function i(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(l){}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,u=s.y+r.getHeight(s,t,o);t.y=u>t.y?u:t.y}}else t.y=0}t.exports=function(t,e,n,r){var o=null;t.eachNode((function(t){i(t,o,e,n,r),o=t}))}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}var o=n(11),a=n(125),s=n(17),u=n(6),l=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return s(t.rootNode,t.options,a)},e}(o),c={};function f(t,e){return e=u.assign({},c,e),new l(t,e).execute()}t.exports=f},function(t,e,n){var r=n(6);function i(t,e){var n=0;return t.children.length?t.children.forEach((function(t){n+=i(t,e)})):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function o(t){var e=t.children,n=e.length;if(n){e.forEach((function(t){o(t)}));var r=e[0],i=e[n-1],a=i.y-r.y+i.height,s=0;if(e.forEach((function(t){s+=t.totalHeight})),a>t.height)t.y=r.y+a/2-t.height/2;else if(1!==e.length||t.height>s){var u=t.y+(t.height-a)/2-r.y;e.forEach((function(t){t.translate(0,u)}))}else t.y=(r.y+r.height/2+i.y+i.height/2)/2-t.height/2}}var a={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},a,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,i(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}}}})),o(t)}}])}))},83360: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(95326);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(2584),e)},62329:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Base=void 0;var n=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=n},64885:function(t,e,n){"use strict";var r=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])},t(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)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CircularLayout=void 0;var i=n(62329),o=n(49784);function a(t,e,n,r){t.forEach((function(e,n){t[n].children=[],t[n].parent=[]})),r?e.forEach((function(e){var r=(0,o.getEdgeTerminal)(e,"source"),i=(0,o.getEdgeTerminal)(e,"target"),a=0;r&&(a=n[r]);var s=0;i&&(s=n[i]);var u=t[a].children,l=t[s].parent;u.push(t[s].id),l.push(t[a].id)})):e.forEach((function(e){var r=(0,o.getEdgeTerminal)(e,"source"),i=(0,o.getEdgeTerminal)(e,"target"),a=0;r&&(a=n[r]);var s=0;i&&(s=n[i]);var u=t[a].children,l=t[s].children;u.push(t[s].id),l.push(t[a].id)}))}function s(t,e,n){for(var r=n.length,i=0;i<r;i++){var a=(0,o.getEdgeTerminal)(n[i],"source"),s=(0,o.getEdgeTerminal)(n[i],"target");if(t.id===a&&e.id===s||e.id===a&&t.id===s)return!0}return!1}function u(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 r(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,n=e.nodes,r=e.edges,i=n.length;if(0!==i){e.width||"undefined"===typeof window||(e.width=window.innerWidth),e.height||"undefined"===typeof window||(e.height=window.innerHeight),e.center||(e.center=[e.width/2,e.height/2]);var a=e.center;if(1===i)return n[0].x=a[0],n[0].y=a[1],void(e.onLayoutEnd&&e.onLayoutEnd());var s=e.radius,u=e.startRadius,l=e.endRadius,c=e.divisions,f=e.startAngle,h=e.endAngle,d=e.angleRatio,p=e.ordering,g=e.clockwise,v=e.nodeSpacing,m=e.nodeSize,y=(h-f)/i,b={};n.forEach((function(t,e){b[t.id]=e})),e.nodeMap=b;var x=(0,o.getDegree)(n.length,b,r);if(e.degrees=x,v){var _=(0,o.getFuncByUnknownType)(10,v),w=(0,o.getFuncByUnknownType)(10,m),S=-1/0;n.forEach((function(t){var e=w(t);S<e&&(S=e)}));var E=0;n.forEach((function(t,e){E+=0===e?S||10:(_(t)||0)+(S||10)})),s=E/(2*Math.PI)}else s||u||l?!u&&l?u=l:u&&!l&&(l=u):s=e.height>e.width?e.width/2:e.height/2;var T=y*d,k=[];k="topology"===p?e.topologyOrdering():"topology-directed"===p?e.topologyOrdering(!0):"degree"===p?e.degreeOrdering():n;for(var C=Math.ceil(i/c),M=0;M<i;++M){var A=s;A||null===u||null===l||(A=u+M*(l-u)/(i-1)),A||(A=10+100*M/(i-1));var I=f+M%C*T+2*Math.PI/c*Math.floor(M/C);g||(I=h-M%C*T-2*Math.PI/c*Math.floor(M/C)),k[M].x=a[0]+Math.cos(I)*A,k[M].y=a[1]+Math.sin(I)*A,k[M].weight=x[M].all}return null===(t=e.onLayoutEnd)||void 0===t||t.call(e),{nodes:k,edges:this.edges}}e.onLayoutEnd&&e.onLayoutEnd()},e.prototype.topologyOrdering=function(t){void 0===t&&(t=!1);var e=this,n=e.degrees,r=e.edges,i=e.nodes,u=(0,o.clone)(i),l=e.nodeMap,c=[u[0]],f=[i[0]],h=[],d=i.length;h[0]=!0,a(u,r,l,t);var p=0;return u.forEach((function(t,e){if(0!==e)if(e!==d-1&&n[e].all===n[e+1].all&&!s(c[p],t,r)||h[e]){for(var o=c[p].children,a=!1,g=0;g<o.length;g++){var v=l[o[g]];if(n[v].all===n[e].all&&!h[v]){c.push(u[v]),f.push(i[l[u[v].id]]),h[v]=!0,a=!0;break}}var m=0;while(!a)if(h[m]||(c.push(u[m]),f.push(i[l[u[m].id]]),h[m]=!0,a=!0),m++,m===d)break}else c.push(t),f.push(i[l[t.id]]),h[e]=!0,p++})),f},e.prototype.degreeOrdering=function(){var t=this,e=t.nodes,n=[],r=t.degrees;return e.forEach((function(t,e){t.degree=r[e].all,n.push(t)})),n.sort(u),n},e.prototype.getType=function(){return"circular"},e}(i.Base);e.CircularLayout=l},63861:function(t,e,n){"use strict";var r=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])},t(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)}}(),i=this&&this.__assign||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],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ComboCombinedLayout=void 0;var o=n(16470),a=n(62329),s=n(49784),u=n(2584),l=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 r(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.center;if(e&&0!==e.length){if(1===e.length)return e[0].x=n[0],e[0].y=n[1],void(t.onLayoutEnd&&t.onLayoutEnd());t.initVals(),t.run(),t.onLayoutEnd&&t.onLayoutEnd()}else t.onLayoutEnd&&t.onLayoutEnd()},e.prototype.run=function(){var t,e=this,n=e.nodes,r=e.edges,a=e.combos,l=e.comboEdges,c=e.center,f={};n.forEach((function(t){f[t.id]=t}));var h={};a.forEach((function(t){h[t.id]=t}));var d=e.getInnerGraphs(f),p=[],g=[],v={},m=!0;this.comboTrees.forEach((function(t){var e=d[t.id];if(e){var n=i(i({},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});g.push(n),isNaN(n.x)||0===n.x||isNaN(n.y)||0===n.y?(n.x=100*Math.random(),n.y=100*Math.random()):m=!1,p.push(t.id),(0,s.traverseTreeUp)(t,(function(e){return e.id!==t.id&&(v[e.id]=t.id),!0}))}})),n.forEach((function(t){if(!t.comboId||!h[t.comboId]){var e=i({},t);g.push(e),isNaN(e.x)||0===e.x||isNaN(e.y)||0===e.y?(e.x=100*Math.random(),e.y=100*Math.random()):m=!1,p.push(t.id)}}));var y=[];if(r.concat(l).forEach((function(t){var e=v[t.source]||t.source,n=v[t.target]||t.target;e!==n&&p.includes(e)&&p.includes(n)&&y.push({source:e,target:n})})),null===g||void 0===g?void 0:g.length){if(1===g.length)g[0].x=c[0],g[0].y=c[1];else{var b={nodes:g,edges:y},x=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=x.getType)||void 0===t?void 0:t.call(x);if(x.updateCfg({center:c,kg:5,preventOverlap:!0,animate:!1}),m&&o.FORCE_LAYOUT_TYPE_MAP[_]){var w=g.length<100?new u.MDSLayout:new u.GridLayout;w.layout(b)}x.layout(b)}g.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=f[t.id];n&&(n.x=t.x,n.y=t.y)}}))}for(var S=Object.keys(d),E=function(t){var e=S[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),f[t.id]&&(f[t.id].x=t.x,f[t.id].y=t.y)})),h[e]&&(h[e].x=n.x,h[e].y=n.y)},T=S.length-1;T>=0;T--)E(T);return{nodes:n,edges:r,combos:a,comboEdges:l}},e.prototype.getInnerGraphs=function(t){var e=this,n=e.comboTrees,r=e.nodeSize,o=e.edges,a=e.comboPadding,l=e.spacing,c={},f=this.innerLayout||new u.ConcentricLayout({type:"concentric",sortBy:"id"});return f.center=[0,0],f.preventOverlap=!0,f.nodeSpacing=l,(n||[]).forEach((function(e){(0,s.traverseTreeUp)(e,(function(e){var n,u=(null===a||void 0===a?void 0:a(e))||10;if((0,s.isArray)(u)&&(u=Math.max.apply(Math,u)),null===(n=e.children)||void 0===n?void 0:n.length){var l=e.children.map((function(e){if("combo"===e.itemType)return c[e.id];var n=t[e.id]||{};return i(i({},n),e)})),h=l.map((function(t){return t.id})),d={nodes:l,edges:o.filter((function(t){return h.includes(t.source)&&h.includes(t.target)}))},p=1/0;l.forEach((function(t){var e;t.size||(t.size=(null===(e=c[t.id])||void 0===e?void 0:e.size)||(null===r||void 0===r?void 0:r(t))||[30,30]),(0,s.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])})),f.layout(d);var g=(0,s.getLayoutBBox)(l),v=g.minX,m=g.minY,y=g.maxX,b=g.maxY,x={x:(y+v)/2,y:(b+m)/2};d.nodes.forEach((function(t){t.x-=x.x,t.y-=x.y}));var _=Math.max(y-v,p)+2*u,w=Math.max(b-m,p)+2*u;c[e.id]={id:e.id,nodes:l,size:[_,w]}}else if("combo"===e.itemType){var S=u?[2*u,2*u]:[30,30];c[e.id]={id:e.id,nodes:[],size:S}}return!0}))})),c},e.prototype.initVals=function(){var t,e,n=this,r=n.nodeSize,i=n.spacing;if(e=(0,s.isNumber)(i)?function(){return i}:(0,s.isFunction)(i)?i:function(){return 0},this.spacing=e,r)if((0,s.isFunction)(r))t=function(t){var n=r(t),i=e(t);if((0,s.isArray)(t.size)){var o=t.size[0]>t.size[1]?t.size[0]:t.size[1];return(o+i)/2}return((n||10)+i)/2};else if((0,s.isArray)(r)){var o=r[0]>r[1]?r[0]:r[1],a=o/2;t=function(t){return a+e(t)/2}}else{var u=r/2;t=function(t){return u+e(t)/2}}else t=function(t){var n=e(t);if(t.size){if((0,s.isArray)(t.size)){var r=t.size[0]>t.size[1]?t.size[0]:t.size[1];return(r+n)/2}if((0,s.isObject)(t.size)){r=t.size.width>t.size.height?t.size.width:t.size.height;return(r+n)/2}return(t.size+n)/2}return 10+n/2};this.nodeSize=t;var l,c=n.comboPadding;l=(0,s.isNumber)(c)?function(){return c}:(0,s.isArray)(c)?function(){return Math.max.apply(null,c)}:(0,s.isFunction)(c)?c:function(){return 0},this.comboPadding=l},e.prototype.getType=function(){return"comboCombined"},e}(a.Base);e.ComboCombinedLayout=l},66590:function(t,e,n){"use strict";var r=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])},t(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)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.ComboForceLayout=void 0;var i=n(62329),o=n(49784),a=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 r(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,e=t.nodes,n=t.center;if(t.comboTree={id:"comboTreeRoot",depth:-1,children:t.comboTrees},e&&0!==e.length){if(1===e.length)return e[0].x=n[0],e[0].y=n[1],void(t.onLayoutEnd&&t.onLayoutEnd());t.initVals(),t.run(),t.onLayoutEnd&&t.onLayoutEnd()}else t.onLayoutEnd&&t.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,a=t.comboMap;t.previousLayouted||t.initPos(a);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,o.isNumber)(t.x)&&(0,o.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()},u=0;u<n;u++)s(u);var l=[0,0];e.forEach((function(t){(0,o.isNumber)(t.x)&&(0,o.isNumber)(t.y)&&(l[0]+=t.x,l[1]+=t.y)})),l[0]/=e.length,l[1]/=e.length;var c=[r[0]-l[0],r[1]-l[1]];e.forEach((function(t,e){(0,o.isNumber)(t.x)&&(0,o.isNumber)(t.y)&&(t.x+=c[0],t.y+=c[1])})),t.combos.forEach((function(t){var e=a[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,e=t.edges,n=t.nodes,r=t.combos,i={},a={},s={};n.forEach((function(t,e){a[t.id]=t,s[t.id]=e})),t.nodeMap=a,t.indexMap=s;var u={};r.forEach((function(t){u[t.id]=t})),t.oriComboMap=u,t.comboMap=t.getComboMap();var l=t.preventOverlap;t.preventComboOverlap=t.preventComboOverlap||l,t.preventNodeOverlap=t.preventNodeOverlap||l;var c=t.collideStrength;c&&(t.comboCollideStrength=c,t.nodeCollideStrength=c),t.comboCollideStrength=t.comboCollideStrength?t.comboCollideStrength:0,t.nodeCollideStrength=t.nodeCollideStrength?t.nodeCollideStrength:0;for(var f=0;f<e.length;++f){var h=(0,o.getEdgeTerminal)(e[f],"source"),d=(0,o.getEdgeTerminal)(e[f],"target");i[h]?i[h]++:i[h]=1,i[d]?i[d]++:i[d]=1}var p=[];for(f=0;f<e.length;++f){h=(0,o.getEdgeTerminal)(e[f],"source"),d=(0,o.getEdgeTerminal)(e[f],"target");p[f]=i[h]/(i[h]+i[d])}this.bias=p;var g,v,m=t.nodeSize,y=t.nodeSpacing;if(v=(0,o.isNumber)(y)?function(){return y}:(0,o.isFunction)(y)?y:function(){return 0},this.nodeSpacing=v,m)if((0,o.isFunction)(m))g=function(t){return m(t)};else if((0,o.isArray)(m)){var b=m[0]>m[1]?m[0]:m[1],x=b/2;g=function(t){return x}}else{var _=m/2;g=function(t){return _}}else g=function(t){if(t.size){if((0,o.isArray)(t.size)){var e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return e/2}if((0,o.isObject)(t.size)){e=t.size.width>t.size.height?t.size.width:t.size.height;return e/2}return t.size/2}return 10};this.nodeSize=g;var w,S=t.comboSpacing;w=(0,o.isNumber)(S)?function(){return S}:(0,o.isFunction)(S)?S:function(){return 0},this.comboSpacing=w;var E,T=t.comboPadding;E=(0,o.isNumber)(T)?function(){return T}:(0,o.isArray)(T)?function(){return Math.max.apply(null,T)}:(0,o.isFunction)(T)?T:function(){return 0},this.comboPadding=E;var k,C=this.linkDistance;C||(C=10),k=(0,o.isNumber)(C)?function(t){return C}:C,this.linkDistance=k;var M,A=this.edgeStrength;A||(A=1),M=(0,o.isNumber)(A)?function(t){return A}:A,this.edgeStrength=M;var I,O=this.nodeStrength;O||(O=30),I=(0,o.isNumber)(O)?function(t){return O}:O,this.nodeStrength=I},e.prototype.initPos=function(t){var e=this,n=e.nodes;n.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 a=[];(0,o.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 u=n.children;u&&u.forEach((function(t){if(!i[t.id]&&!e[t.id])return!0;a.push(t)}));var l=i[n.id];if(l.cx=0,l.cy=0,0===a.length){l.empty=!0;var c=r[n.id];l.cx=c.x,l.cy=c.y}return a.forEach((function(t){if(l.count++,"node"!==t.itemType){var n=i[t.id];return(0,o.isNumber)(n.cx)&&(l.cx+=n.cx),void((0,o.isNumber)(n.cy)&&(l.cy+=n.cy))}var r=e[t.id];r&&((0,o.isNumber)(r.x)&&(l.cx+=r.x),(0,o.isNumber)(r.y)&&(l.cy+=r.y))})),l.cx/=l.count||1,l.cy/=l.count||1,l.children=a,!0}))})),i},e.prototype.applyComboCenterForce=function(t){var e=this,n=e.gravity,r=e.comboGravity||n,i=this.alpha,a=e.comboTrees,s=e.indexMap,u=e.nodeMap,l=e.comboMap;(a||[]).forEach((function(e){(0,o.traverseTreeUp)(e,(function(e){if("node"===e.itemType)return!0;var n=l[e.id];if(!n)return!0;var a=l[e.id],c=(a.depth+1)/10*.5,f=a.cx,h=a.cy;return a.cx=0,a.cy=0,a.children.forEach((function(e){if("node"!==e.itemType){var n=l[e.id];return n&&(0,o.isNumber)(n.cx)&&(a.cx+=n.cx),void(n&&(0,o.isNumber)(n.cy)&&(a.cy+=n.cy))}var d=u[e.id],p=d.x-f||.005,g=d.y-h||.005,v=Math.sqrt(p*p+g*g),m=s[d.id],y=r*i/v*c;t[m].x-=p*y,t[m].y-=g*y,(0,o.isNumber)(d.x)&&(a.cx+=d.x),(0,o.isNumber)(d.y)&&(a.cy+=d.y)})),a.cx/=a.count||1,a.cy/=a.count||1,!0}))}))},e.prototype.applyCalculate=function(t){var e=this,n=e.comboMap,r=e.nodes,i={};r.forEach((function(t,e){r.forEach((function(n,r){if(!(e<r)){var o=t.x-n.x||.005,a=t.y-n.y||.005,s=o*o+a*a,u=Math.sqrt(s);s<1&&(s=u),i["".concat(t.id,"-").concat(n.id)]={vx:o,vy:a,vl2:s,vl:u},i["".concat(n.id,"-").concat(t.id)]={vl2:s,vl:u,vx:-o,vy:-a}}}))})),e.updateComboSizes(n),e.calRepulsive(t,i),e.calAttractive(t,i);var o=e.preventComboOverlap;o&&e.comboNonOverlapping(t,n)},e.prototype.updateComboSizes=function(t){var e=this,n=e.comboTrees,r=e.nodeMap,i=e.nodeSize,a=e.comboSpacing,s=e.comboPadding;(n||[]).forEach((function(n){var u=[];(0,o.traverseTreeUp)(n,(function(n){if("node"===n.itemType)return!0;var l=t[n.id];if(!l)return!1;var c=n.children;c&&c.forEach((function(e){(t[e.id]||r[e.id])&&u.push(e)})),l.minX=1/0,l.minY=1/0,l.maxX=-1/0,l.maxY=-1/0,u.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,u=e.y+n;l.minX>o&&(l.minX=o),l.minY>a&&(l.minY=a),l.maxX<s&&(l.maxX=s),l.maxY<u&&(l.maxY=u)}));var f=e.oriComboMap[n.id].size||10;(0,o.isArray)(f)&&(f=f[0]);var h=Math.max(l.maxX-l.minX,l.maxY-l.minY,f);return l.r=h/2+a(l)/2+s(l),!0}))}))},e.prototype.comboNonOverlapping=function(t,e){var n=this,r=n.comboTree,i=n.comboCollideStrength,a=n.indexMap,s=n.nodeMap;(0,o.traverseTreeUp)(r,(function(n){if(!e[n.id]&&!s[n.id]&&"comboTreeRoot"!==n.id)return!1;var r=n.children;return r&&r.length>1&&r.forEach((function(n,o){if("node"===n.itemType)return!1;var u=e[n.id];u&&r.forEach((function(r,l){if(o<=l)return!1;if("node"===r.itemType)return!1;var c=e[r.id];if(!c)return!1;var f=u.cx-c.cx||.005,h=u.cy-c.cy||.005,d=f*f+h*h,p=u.r||1,g=c.r||1,v=p+g,m=g*g,y=p*p;if(d<v*v){var b=n.children;if(!b||0===b.length)return!1;var x=r.children;if(!x||0===x.length)return!1;var _=Math.sqrt(d),w=(v-_)/_*i,S=f*w,E=h*w,T=m/(y+m),k=1-T;b.forEach((function(e){if("node"!==e.itemType)return!1;if(s[e.id]){var n=a[e.id];x.forEach((function(e){if("node"!==e.itemType)return!1;if(!s[e.id])return!1;var r=a[e.id];t[n].x+=S*T,t[n].y+=E*T,t[r].x-=S*k,t[r].y-=E*k}))}}))}}))})),!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,u=n.preventNodeOverlap,l=n.nodeSize,c=n.nodeSpacing,f=n.depthRepulsiveForceScale,h=n.center;r.forEach((function(d,p){if(d.x&&d.y){if(h){var g=n.gravity,v=d.x-h[0]||.005,m=d.y-h[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 h=e["".concat(d.id,"-").concat(n.id)],g=h.vl2,v=h.vl;if(!(v>i)){var m=e["".concat(d.id,"-").concat(n.id)],y=m.vx,b=m.vy,x=Math.log(Math.abs(n.depth-d.depth)/10)+1||1;x=x<1?1:x,n.comboId!==d.comboId&&(x+=1);var _=x?Math.pow(f,x):1,w=o(n)*a/g*_;if(t[p].x+=y*w,t[p].y+=b*w,p<r&&u){var S=l(d)+c(d)||1,E=l(n)+c(n)||1,T=S+E;if(g<T*T){var k=(T-v)/v*s,C=E*E,M=C/(S*S+C),A=y*k,I=b*k;t[p].x+=A*M,t[p].y+=I*M,M=1-M,t[r].x-=A*M,t[r].y-=I*M}}}}}))}}))},e.prototype.calAttractive=function(t,e){var n=this,r=n.edges,i=n.linkDistance,a=n.alpha,s=n.edgeStrength,u=n.bias,l=n.depthAttractiveForceScale;r.forEach((function(r,c){var f=(0,o.getEdgeTerminal)(r,"source"),h=(0,o.getEdgeTerminal)(r,"target");if(f&&h&&f!==h){var d=n.indexMap[f],p=n.indexMap[h],g=n.nodeMap[f],v=n.nodeMap[h];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(l,m):1;if(g.comboId!==v.comboId&&1===y?y=l/2:g.comboId===v.comboId&&(y=2),(0,o.isNumber)(v.x)&&(0,o.isNumber)(g.x)&&(0,o.isNumber)(v.y)&&(0,o.isNumber)(g.y)){var b=e["".concat(h,"-").concat(f)],x=b.vl,_=b.vx,w=b.vy,S=(x-i(r))/x*a*s(r)*y,E=_*S,T=w*S,k=u[c];t[p].x-=E*k,t[p].y-=T*k,t[d].x+=E*(1-k),t[d].y+=T*(1-k)}}}}))},e.prototype.getType=function(){return"comboForce"},e}(i.Base);e.ComboForceLayout=a},43281:function(t,e,n){"use strict";var r=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])},t(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)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.ConcentricLayout=void 0;var i=n(49784),o=n(62329),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 r(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,o=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 u,l=n.nodeSize,c=n.nodeSpacing,f=[],h=0;u=(0,i.isArray)(l)?Math.max(l[0],l[1]):l,(0,i.isArray)(c)?h=Math.max(c[0],c[1]):(0,i.isNumber)(c)&&(h=c),r.forEach((function(t){f.push(t);var e=u;(0,i.isArray)(t.size)?e=Math.max(t.size[0],t.size[1]):(0,i.isNumber)(t.size)?e=t.size:(0,i.isObject)(t.size)&&(e=Math.max(t.size.width,t.size.height)),u=Math.max(u,e),(0,i.isFunction)(c)&&(h=Math.max(c(t),h))})),n.clockwise=void 0!==n.counterclockwise?!n.counterclockwise:n.clockwise;var d={},p={};if(f.forEach((function(t,e){d[t.id]=t,p[t.id]=e})),("degree"===n.sortBy||!(0,i.isString)(n.sortBy)||void 0===f[0][n.sortBy])&&(n.sortBy="degree",!(0,i.isNumber)(r[0].degree))){var g=(0,i.getDegree)(r.length,p,o);f.forEach((function(t,e){t.degree=g[e].all}))}f.sort((function(t,e){return e[n.sortBy]-t[n.sortBy]})),n.maxValueNode=f[0],n.maxLevelDiff=n.maxLevelDiff||n.maxValueNode[n.sortBy]/4;var v=[[]],m=v[0];f.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=u+(h||n.minNodeSpacing);if(!n.preventOverlap){var b=v.length>0&&v[0].length>1,x=Math.min(n.width,n.height)/2-y,_=x/(v.length+(b?1:0));y=Math.min(y,_)}var w=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));w=Math.max(a,w)}t.r=w,w+=y})),n.equidistant){for(var S=0,E=0,T=0;T<v.length;T++){var k=v[T],C=k.r-E;S=Math.max(S,C)}E=0,v.forEach((function(t,e){0===e&&(E=t.r),t.r=E,E+=S}))}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:o}}null===(t=n.onLayoutEnd)||void 0===t||t.call(n)},e.prototype.getType=function(){return"concentric"},e}(o.Base);e.ConcentricLayout=a},16470:function(t,e){"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}},20171:function(t,e,n){"use strict";var r=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])},t(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)}}(),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DagreLayout=void 0;var o=i(n(41106)),a=n(49784),s=n(62329),u=n(27652),l=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,r=e.nodes,i=r.find((function(e){return e.id===t}));if(i){var o=!1!==i.layout;return o}return!0},n.updateCfg(e),n}return r(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,s=this,l=s.nodes,f=s.nodeSize,h=s.rankdir,d=s.combos,p=s.begin,g=s.radial,v=s.comboEdges,m=void 0===v?[]:v,y=s.vedges,b=void 0===y?[]:y;if(l){var x=s.edges||[],_=new u.Graph({multigraph:!0,compound:!0});s.nodeMap={};var w={};l.forEach((function(t){s.nodeMap[t.id]=t,t.comboId&&(w[t.comboId]=w[t.comboId]||[],w[t.comboId].push(t.id))}));var S,E=[],T={};(null===(t=s.nodeOrder)||void 0===t?void 0:t.length)?(s.nodeOrder.forEach((function(t){T[t]=!0,E.push(s.nodeMap[t])})),l.forEach((function(t){T[t.id]||E.push(t)}))):E=l,S=f?(0,a.isArray)(f)?function(){return f}:function(){return[f,f]}:function(t){return t.size?(0,a.isArray)(t.size)?t.size:(0,a.isObject)(t.size)?[t.size.width||40,t.size.height||40]:[t.size,t.size]:[40,40]};var k=(0,a.getFunc)(s.ranksep,50,s.ranksepFunc),C=(0,a.getFunc)(s.nodesep,50,s.nodesepFunc),M=C,A=k;"LR"!==h&&"RL"!==h||(M=k,A=C),_.setDefaultEdgeLabel((function(){return{}})),_.setGraph(s);var I={};this.sortByCombo&&d&&d.forEach((function(t){if(I[t.id]=t,t.collapsed){var e=S(t),n=A(t),r=M(t),i=e[0]+2*r,o=e[1]+2*n;_.setNode(t.id,{width:i,height:o})}t.parentId&&(I[t.parentId]||_.setNode(t.parentId,{}),_.setParent(t.id,t.parentId))})),E.filter((function(t){return!1!==t.layout})).forEach((function(t){var e=S(t),n=A(t),r=M(t),o=e[0]+2*r,s=e[1]+2*n,u=t.layer;(0,a.isNumber)(u)?_.setNode(t.id,{width:o,height:s,layer:u}):_.setNode(t.id,{width:o,height:s}),i.sortByCombo&&t.comboId&&(I[t.comboId]||(I[t.comboId]={id:t.comboId},_.setNode(t.comboId,{})),_.setParent(t.id,t.comboId))})),x.forEach((function(t){var e=(0,a.getEdgeTerminal)(t,"source"),n=(0,a.getEdgeTerminal)(t,"target");i.layoutNode(e)&&i.layoutNode(n)&&_.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=I[r])||void 0===e?void 0:e.collapsed)?[r]:w[r]||[r],a=(null===(n=I[i])||void 0===n?void 0:n.collapsed)?[i]:w[i]||[i];o.forEach((function(e){a.forEach((function(n){_.setEdge(e,n,{weight:t.weight||1})}))}))}));var O=void 0;(null===(n=s.preset)||void 0===n?void 0:n.nodes)&&(O=new u.Graph({multigraph:!0,compound:!0}),s.preset.nodes.forEach((function(t){null===O||void 0===O||O.setNode(t.id,t)}))),o.default.layout(_,{prevGraph:O,edgeLabelSpace:s.edgeLabelSpace,keepNodeOrder:Boolean(!!s.nodeOrder),nodeOrder:s.nodeOrder});var D=[0,0];if(p){var P=1/0,L=1/0;_.nodes().forEach((function(t){var e=_.node(t);P>e.x&&(P=e.x),L>e.y&&(L=e.y)})),_.edges().forEach((function(t){var e,n=_.edge(t);null===(e=n.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 N="LR"===h||"RL"===h;if(g){var R=this,j=R.focusNode,F=R.ranksep,B=R.getRadialPos,z=(0,a.isString)(j)?j:null===j||void 0===j?void 0:j.id,Z=z?null===(r=_.node(z))||void 0===r?void 0:r._rank:0,U=[],H=N?"y":"x",$=N?"height":"width",G=1/0,W=-1/0;_.nodes().forEach((function(t){var e=_.node(t);if(s.nodeMap[t]){var n=C(s.nodeMap[t]);if(0===Z)U[e._rank]||(U[e._rank]={nodes:[],totalWidth:0,maxSize:-1/0}),U[e._rank].nodes.push(t),U[e._rank].totalWidth+=2*n+e[$],U[e._rank].maxSize<Math.max(e.width,e.height)&&(U[e._rank].maxSize=Math.max(e.width,e.height));else{var r=e._rank-Z;if(0===r)U[r]||(U[r]={nodes:[],totalWidth:0,maxSize:-1/0}),U[r].nodes.push(t),U[r].totalWidth+=2*n+e[$],U[r].maxSize<Math.max(e.width,e.height)&&(U[r].maxSize=Math.max(e.width,e.height));else{var i=Math.abs(r);U[i]||(U[i]={left:[],right:[],totalWidth:0,maxSize:-1/0}),U[i].totalWidth+=2*n+e[$],U[i].maxSize<Math.max(e.width,e.height)&&(U[i].maxSize=Math.max(e.width,e.height)),r<0?U[i].left.push(t):U[i].right.push(t)}}var o=e[H]-e[$]/2-n,a=e[H]+e[$]/2+n;o<G&&(G=o),a>W&&(W=a)}}));var V=F||50,Y={},X=(W-G)/.9,q=[.5*(G+W-X),.5*(G+W+X)],K=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=_.node(t);Y[t]=e;var o=B(n[H],q,X,e,r),a=o.x,u=o.y;if(s.nodeMap[t]){s.nodeMap[t].x=a+D[0],s.nodeMap[t].y=u+D[1],s.nodeMap[t]._order=n._order;var l=k(s.nodeMap[t]);i<l&&(i=l)}})),i},J=!0;U.forEach((function(t){var e,n,r,i,o,a,u;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(J&&1===t.nodes.length){var l=t.nodes[0];if(!s.nodeMap[l])return;return s.nodeMap[l].x=D[0],s.nodeMap[l].y=D[1],Y[t.nodes[0]]=0,V=k(s.nodeMap[l]),void(J=!1)}V=Math.max(V,t.totalWidth/(2*Math.PI));var c=-1/0;if(0===Z||(null===(i=t.nodes)||void 0===i?void 0:i.length))c=K(t.nodes,V,c,[0,1]);else{var f=(null===(o=t.left)||void 0===o?void 0:o.length)/((null===(a=t.left)||void 0===a?void 0:a.length)+(null===(u=t.right)||void 0===u?void 0:u.length));c=K(t.left,V,c,[0,f]),c=K(t.right,V,c,[f+.05,1])}V+=c,J=!1,t.maxSize}})),_.edges().forEach((function(t){var e,n,r,i=_.edge(t),o=x.findIndex((function(e){var n=(0,a.getEdgeTerminal)(e,"source"),r=(0,a.getEdgeTerminal)(e,"target");return n===t.v&&r===t.w}));if(!(o<=-1)&&s.edgeLabelSpace&&s.controlPoints&&"loop"!==x[o].type){var u="x"===H?"y":"x",l=null===(e=null===i||void 0===i?void 0:i.points)||void 0===e?void 0:e.slice(1,i.points.length-1),c=[],f=null===(n=_.node(t.v))||void 0===n?void 0:n[u],h=f-(null===(r=_.node(t.w))||void 0===r?void 0:r[u]),d=Y[t.v],p=d-Y[t.w];null===l||void 0===l||l.forEach((function(t){var e=(t[u]-f)/h*p+d,n=B(t[H],q,X,e);c.push({x:n.x+D[0],y:n.y+D[1]})})),x[o].controlPoints=c}}))}else{var Q=new Set,tt="BT"===h||"RL"===h,et=tt?function(t,e){return e-t}:function(t,e){return t-e};_.nodes().forEach((function(t){var e=_.node(t);if(e){var n=i.nodeMap[t];n||(n=null===d||void 0===d?void 0:d.find((function(e){return e.id===t}))),n&&(n.x=e.x+D[0],n.y=e.y+D[1],n._order=e._order,Q.add(N?n.x:n.y))}}));var nt=Array.from(Q).sort(et),rt=N?function(t,e){return t.x!==e.x}:function(t,e){return t.y!==e.y},it=N?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}))};_.edges().forEach((function(t){var e,n=_.edge(t),r=x.findIndex((function(e){var n=(0,a.getEdgeTerminal)(e,"source"),r=(0,a.getEdgeTerminal)(e,"target");return n===t.v&&r===t.w}));if(!(r<=-1)&&s.edgeLabelSpace&&s.controlPoints&&"loop"!==x[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=s.nodeMap[t.v],o=s.nodeMap[t.w];x[r].controlPoints=c(null===n||void 0===n?void 0:n.points,i,o,nt,N,rt,it)}}))}return s.onLayoutEnd&&s.onLayoutEnd(),{nodes:l,edges:x}}},e.prototype.getRadialPos=function(t,e,n,r,i){void 0===i&&(i=[0,1]);var o=(t-e[0])/n;o=o*(i[1]-i[0])+i[0];var a=2*o*Math.PI;return{x:Math.cos(a)*r,y:Math.sin(a)*r}},e.prototype.getType=function(){return"dagre"},e}(s.Base);e.DagreLayout=l;var c=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 u=e.x,l=e.y,c=n.x,f=n.y;if(i&&(u=e.y,l=e.x,c=n.y,f=n.x),f!==l&&u!==c){var h=r.indexOf(l),d=r[h+1];if(d){var p=s[0],g=i?{x:(l+d)/2,y:(null===p||void 0===p?void 0:p.y)||c}:{x:(null===p||void 0===p?void 0:p.x)||c,y:(l+d)/2};p&&!o(p,g)||s.unshift(g)}var v=r.indexOf(f),m=Math.abs(v-h);if(1===m)s=a(s,e,n),s.length||s.push(i?{x:(l+f)/2,y:u}:{x:u,y:(l+f)/2});else if(m>1){var y=r[v-1];if(y){var b=s[s.length-1],x=i?{x:(f+y)/2,y:(null===b||void 0===b?void 0:b.y)||c}:{x:(null===b||void 0===b?void 0:b.x)||u,y:(f+y)/2};b&&!o(b,x)||s.push(x)}}}}return s}},27652:function(t,e,n){"use strict";var r=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])},t(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)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Graph=void 0;var i=n(39780),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(i.Graph);e.Graph=o},41106: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(65236)),o=n(69209);e["default"]={layout:i.default,util:{time:o.time,notime:o.notime}}},78029: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(40773)),o=function(t){var e=function(t){return function(e){var n;return(null===(n=t.edge(e))||void 0===n?void 0:n.weight)||1}},n="greedy"===t.graph().acyclicer?(0,i.default)(t,e(t)):a(t);null===n||void 0===n||n.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()))}))},a=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},s=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)}}))};e["default"]={run:o,undo:s}},11500:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(69209),i=function(t){var e,n=function(e){var r=t.children(e),i=t.node(e);if((null===r||void 0===r?void 0:r.length)&&r.forEach((function(t){return n(t)})),i.hasOwnProperty("minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,s=i.maxRank+1;a<s;a+=1)o(t,"borderLeft","_bl",e,i,a),o(t,"borderRight","_br",e,i,a)}};null===(e=t.children())||void 0===e||e.forEach((function(t){return n(t)}))},o=function(t,e,n,i,o,a){var s={rank:a,borderType:e,width:0,height:0},u=o[e][a-1],l=(0,r.addDummyNode)(t,"border",s,n);o[e][a]=l,t.setParent(l,i),u&&t.setEdge(u,l,{weight:1})};e["default"]=i},35279:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){var e,n=null===(e=t.graph().rankdir)||void 0===e?void 0:e.toLowerCase();"lr"!==n&&"rl"!==n||i(t)},r=function(t){var e,n=null===(e=t.graph().rankdir)||void 0===e?void 0:e.toLowerCase();"bt"!==n&&"rl"!==n||a(t),"lr"!==n&&"rl"!==n||(u(t),i(t))},i=function(t){t.nodes().forEach((function(e){o(t.node(e))})),t.edges().forEach((function(e){o(t.edge(e))}))},o=function(t){var e=t.width;t.width=t.height,t.height=e},a=function(t){t.nodes().forEach((function(e){s(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 s(t)})),r.hasOwnProperty("y")&&s(r)}))},s=function(t){(null===t||void 0===t?void 0:t.y)&&(t.y=-t.y)},u=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:n,undo:r}},55532:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){if("next"!==t&&"prev"!==t)return e},r=function(t){t.prev.next=t.next,t.next.prev=t.prev,delete t.next,delete t.prev},i=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 r(e),e},t.prototype.enqueue=function(t){var e=this.shortcut;t.prev&&t.next&&r(t),t.next=e.next,e.next.prev=t,e.next=t,t.prev=e},t.prototype.toString=function(){var t=[],e=this.shortcut,r=e.prev;while(r!==e)t.push(JSON.stringify(r,n)),r=null===r||void 0===r?void 0:r.prev;return"[".concat(t.join(", "),"]")},t}();e["default"]=i},40773:function(t,e,n){"use strict";var r=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])},t(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)}}(),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(55532)),a=n(39780),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(o.default),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(a.Graph),l=function(){return 1},c=function(t,e){var n;if(t.nodeCount()<=1)return[];var r=d(t,e||l),i=f(r.graph,r.buckets,r.zeroIdx);return null===(n=i.map((function(e){return t.outEdges(e.v,e.w)})))||void 0===n?void 0:n.flat()},f=function(t,e,n){var r,i=[],o=e[e.length-1],a=e[0];while(t.nodeCount()){while(r=a.dequeue())h(t,e,n,r);while(r=o.dequeue())h(t,e,n,r);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue(),r){i=i.concat(h(t,e,n,r,!0));break}}return i},h=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},d=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,l=0;l<a;l++)o.push(new s);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"]=c},65236: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],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.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(78029)),a=i(n(46171)),s=i(n(76827)),u=n(69209),l=i(n(33562)),c=i(n(59596)),f=i(n(11500)),h=i(n(35279)),d=i(n(19597)),p=i(n(95)),g=i(n(24956)),v=n(27652),m=function(t,e){var n=e&&e.debugTiming?u.time:u.notime;n("layout",(function(){e&&!e.keepNodeOrder&&e.prevGraph&&n("  inheritOrder",(function(){b(t,e.prevGraph)}));var r=n("  buildLayoutGraph",(function(){return A(t)}));e&&!1===e.edgeLabelSpace||n("  makeSpaceForEdgeLabels",(function(){I(r)}));try{n("  runLayout",(function(){y(r,n,e)}))}catch(i){if("Not possible to find intersection inside of the rectangle"===i.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",i);throw i}n("  updateInputGraph",(function(){x(t,r)}))}))},y=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,u.asNonCompoundGraph)(t))})),e("    injectEdgeLabelProxies",(function(){O(t)})),e("    removeEmptyRanks",(function(){(0,u.removeEmptyRanks)(t)})),e("    nestingGraph.cleanup",(function(){c.default.cleanup(t)})),e("    normalizeRanks",(function(){(0,u.normalizeRanks)(t)})),e("    assignRankMinMax",(function(){D(t)})),e("    removeEdgeLabelProxies",(function(){P(t)})),e("    normalize.run",(function(){a.default.run(t)})),e("    parentDummyChains",(function(){(0,l.default)(t)})),e("    addBorderSegments",(function(){(0,f.default)(t)})),n&&n.keepNodeOrder&&e("    initDataOrder",(function(){(0,g.default)(t,n.nodeOrder)})),e("    order",(function(){(0,d.default)(t,null===n||void 0===n?void 0:n.keepNodeOrder)})),e("    insertSelfEdges",(function(){z(t)})),e("    adjustCoordinateSystem",(function(){h.default.adjust(t)})),e("    position",(function(){(0,p.default)(t)})),e("    positionSelfEdges",(function(){Z(t)})),e("    removeBorderNodes",(function(){F(t)})),e("    normalize.undo",(function(){a.default.undo(t)})),e("    fixupEdgeLabelCoords",(function(){R(t)})),e("    undoCoordinateSystem",(function(){h.default.undo(t)})),e("    translateGraph",(function(){L(t)})),e("    assignNodeIntersects",(function(){N(t)})),e("    reversePoints",(function(){j(t)})),e("    acyclic.undo",(function(){o.default.undo(t)}))},b=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}))},x=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"],w={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},S=["acyclicer","ranker","rankdir","align"],E=["width","height","layer","fixorder"],T={width:0,height:0},k=["minlen","weight","width","height","labeloffset"],C={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},M=["labelpos"],A=function(t){var e=new v.Graph({multigraph:!0,compound:!0}),n=H(t.graph()),i={};return null===S||void 0===S||S.forEach((function(t){void 0!==n[t]&&(i[t]=n[t])})),e.setGraph(Object.assign({},w,U(n,_),i)),t.nodes().forEach((function(n){var i=H(t.node(n)),o=r(r({},T),i),a=U(o,E);e.setNode(n,a),e.setParent(n,t.parent(n))})),t.edges().forEach((function(n){var r=H(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({},C,U(r,k),i))})),e},I=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)}))},O=function(t){t.edges().forEach((function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w),o={e:e,rank:(i.rank-r.rank)/2+r.rank};(0,u.addDummyNode)(t,"edge-proxy",o,"_ep")}}))},D=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},P=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))}))},L=function(t){var e,n,r=0,i=0,o=t.graph(),a=o.marginx||0,s=o.marginy||0,u=function(t){if(t){var o=t.x,a=t.y,s=t.width,u=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(u)||(void 0===n&&(n=a-u/2),n=Math.min(n,a-u/2),i=Math.max(i,a+u/2))}};t.nodes().forEach((function(e){u(t.node(e))})),t.edges().forEach((function(e){var n=t.edge(e);(null===n||void 0===n?void 0:n.hasOwnProperty("x"))&&u(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},N=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,u.intersectRect)(o,n)),i.points.push((0,u.intersectRect)(a,r))}))},R=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;break}}))},j=function(t){t.edges().forEach((function(e){var n,r=t.edge(e);r.reversed&&(null===(n=r.points)||void 0===n||n.reverse())}))},F=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),u=t.node(o.borderLeft[(null===(r=o.borderLeft)||void 0===r?void 0:r.length)-1]),l=t.node(o.borderRight[(null===(i=o.borderRight)||void 0===i?void 0:i.length)-1]);o.width=Math.abs((null===l||void 0===l?void 0:l.x)-(null===u||void 0===u?void 0:u.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===u||void 0===u?void 0:u.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)}}))},z=function(t){var e=(0,u.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,u.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}}))},U=function(t,e){var n={};return null===e||void 0===e||e.forEach((function(e){void 0!==t[e]&&(n[e]=+t[e])})),n},H=function(t){void 0===t&&(t={});var e={};return Object.keys(t).forEach((function(n){e[n.toLowerCase()]=t[n]})),e};e["default"]=m},59596:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(69209),i=function(t){var e,n=(0,r.addDummyNode)(t,"root",{},"_root"),i=a(t),u=Math.max.apply(Math,Object.values(i));Math.abs(u)===1/0&&(u=1);var l=u-1,c=2*l+1;t.graph().nestingRoot=n,t.edges().forEach((function(e){t.edge(e).minlen*=c}));var f=s(t)+1;null===(e=t.children())||void 0===e||e.forEach((function(e){o(t,n,c,f,l,i,e)})),t.graph().nodeRankFactor=c},o=function(t,e,n,i,a,s,u){var l=t.children(u);if(null===l||void 0===l?void 0:l.length){var c=(0,r.addBorderNode)(t,"_bt"),f=(0,r.addBorderNode)(t,"_bb"),h=t.node(u);t.setParent(c,u),h.borderTop=c,t.setParent(f,u),h.borderBottom=f,null===l||void 0===l||l.forEach((function(r){o(t,e,n,i,a,s,r);var l=t.node(r),h=l.borderTop?l.borderTop:r,d=l.borderBottom?l.borderBottom:r,p=l.borderTop?i:2*i,g=h!==d?1:a-s[u]+1;t.setEdge(c,h,{minlen:g,weight:p,nestingEdge:!0}),t.setEdge(d,f,{minlen:g,weight:p,nestingEdge:!0})})),t.parent(u)||t.setEdge(e,c,{weight:0,minlen:a+s[u]})}else u!==e&&t.setEdge(e,u,{weight:0,minlen:n})},a=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},s=function(t){var e=0;return t.edges().forEach((function(n){e+=t.edge(n).weight})),e},u=function(t){var e=t.graph();e.nestingRoot&&t.removeNode(e.nestingRoot),delete e.nestingRoot,t.edges().forEach((function(e){var n=t.edge(e);n.nestingEdge&&t.removeEdgeObj(e)}))};e["default"]={run:i,cleanup:u}},46171:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(69209),i=function(t){t.graph().dummyChains=[],t.edges().forEach((function(e){return o(t,e)}))},o=function(t,e){var n=e.v,i=t.node(n).rank,o=e.w,a=t.node(o).rank,s=e.name,u=t.edge(e),l=u.labelRank;if(a!==i+1){t.removeEdgeObj(e);var c,f,h,d=t.graph();for(h=0,++i;i<a;++h,++i)u.points=[],f={edgeLabel:u,width:0,height:0,edgeObj:e,rank:i},c=(0,r.addDummyNode)(t,"edge",f,"_d"),i===l&&(f.width=u.width,f.height=u.height,f.dummy="edge-label",f.labelpos=u.labelpos),t.setEdge(n,c,{weight:u.weight},s),0===h&&(d.dummyChains||(d.dummyChains=[]),d.dummyChains.push(c)),n=c;t.setEdge(n,o,{weight:u.weight},s)}},a=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);var o=e;while(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)}))};e["default"]={run:i,undo:a}},80314:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e,n){var r,i={};null===n||void 0===n||n.forEach((function(n){var o,a,s=t.parent(n);while(s){if(o=t.parent(s),o?(a=i[o],i[o]=s):(a=r,r=s),a&&a!==s)return void e.setEdge(a,s);s=o}}))};e["default"]=n},89921:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=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}}))};e["default"]=n},77006:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(27652),i=function(t,e,n){var i=o(t),a=new r.Graph({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(e){return t.node(e)}));return t.nodes().forEach((function(r){var o,s=t.node(r),u=t.parent(r);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(r),a.setParent(r,u||i),null===(o=t[n](r))||void 0===o||o.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},o=function(t){var e;while(t.hasNode(e="_root".concat(Math.random())));return e};e["default"]=i},32957:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(69209),i=function(t,e,n){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}))})),a=o.flat().filter((function(t){return void 0!==t})),s=1;while(s<n.length)s<<=1;var u=2*s-1;s-=1;var l=Array(u).fill(0,0,u),c=0;return null===a||void 0===a||a.forEach((function(t){if(t){var e=t.pos+s;l[e]+=t.weight;var n=0;while(e>0)e%2&&(n+=l[e+1]),e=e-1>>1,l[e]+=t.weight;c+=t.weight*n}})),c},o=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};e["default"]=o},19597: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(15697)),o=r(n(32957)),a=r(n(77006)),s=r(n(80314)),u=r(n(99455)),l=n(49784),c=n(27652),f=n(69209),h=function(t,e){for(var n=(0,f.maxRank)(t),r=[],a=[],s=1;s<n+1;s++)r.push(s);for(s=n-1;s>-1;s--)a.push(s);var u=d(t,r,"inEdges"),c=d(t,a,"outEdges"),h=(0,i.default)(t);g(t,h);for(var v,m=Number.POSITIVE_INFINITY,y=(s=0,0);y<4;++s,++y){p(s%2?u:c,s%4>=2,!1,e),h=(0,f.buildLayerMatrix)(t);var b=(0,o.default)(t,h);b<m&&(y=0,v=(0,l.clone)(h),m=b)}h=(0,i.default)(t),g(t,h);for(s=0,y=0;y<4;++s,++y){p(s%2?u:c,s%4>=2,!0,e),h=(0,f.buildLayerMatrix)(t);b=(0,o.default)(t,h);b<m&&(y=0,v=(0,l.clone)(h),m=b)}g(t,v)},d=function(t,e,n){return e.map((function(e){return(0,a.default)(t,e,n)}))},p=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,l=(0,u.default)(t,a,i,e,n,r),c=0;c<(null===(o=l.vs)||void 0===o?void 0:o.length);c++){var f=t.node(l.vs[c]);f&&(f.order=c)}(0,s.default)(t,i,l.vs)}))},g=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"]=h},24956:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=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)})),r=n.map((function(e){return t.node(e).rank})),i=Math.max.apply(Math,r),o=[],a=0;a<i+1;a++)o[a]=[];null===e||void 0===e||e.forEach((function(e){var n=t.node(e);n&&!(null===n||void 0===n?void 0:n.dummy)&&(isNaN(n.rank)||(n.fixorder=o[n.rank].length,o[n.rank].push(e)))}))};e["default"]=n},15697:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(36609),i=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 u=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 u(t)}))}},l=n.sort((function(e,n){return t.node(e).rank-t.node(n).rank})),c=l.filter((function(e){return void 0!==t.node(e).fixorder})),f=c.sort((function(e,n){return t.node(e).fixorder-t.node(n).fixorder}));return null===f||void 0===f||f.forEach((function(n){isNaN(t.node(n).rank)||a[t.node(n).rank].push(n),e[n]=!0})),null===l||void 0===l||l.forEach(u),a};e["default"]=i},7043:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=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)},r=function(t){var e,n,r=[],o=function(t){return function(e){e.merged||(void 0===e.barycenter||void 0===t.barycenter||e.barycenter>=t.barycenter)&&i(t,e)}},a=function(e){return function(n){n["in"].push(e),0===--n.indegree&&t.push(n)}},s=function(){var i=t.pop();r.push(i),null===(e=i["in"].reverse())||void 0===e||e.forEach((function(t){return o(i)(t)})),null===(n=i.out)||void 0===n||n.forEach((function(t){return a(i)(t)}))};while(null===t||void 0===t?void 0:t.length)s();var u=r.filter((function(t){return!t.merged})),l=["vs","i","barycenter","weight"];return u.map((function(t){var e={};return null===l||void 0===l||l.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"]=n},99455: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(89921)),o=r(n(7043)),a=r(n(21498)),s=function(t,e,n,r,c,f){var h,d,p,g,v=t.children(e),m=t.node(e),y=m?m.borderLeft:void 0,b=m?m.borderRight:void 0,x={};y&&(v=null===v||void 0===v?void 0:v.filter((function(t){return t!==y&&t!==b})));var _=(0,i.default)(t,v||[]);null===_||void 0===_||_.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,f);x[e.v]=o,o.hasOwnProperty("barycenter")&&l(e,o)}}));var w=(0,o.default)(_,n);u(w,x),null===(h=w.filter((function(t){return t.vs.length>0})))||void 0===h||h.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,f);if(y&&(S.vs=[y,S.vs,b].flat(),null===(d=t.predecessors(y))||void 0===d?void 0:d.length)){var E=t.node((null===(p=t.predecessors(y))||void 0===p?void 0:p[0])||""),T=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+E.order+T.order)/(S.weight+2),S.weight+=2}return S},u=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()}))},l=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},21498:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(69209),i=function(t,e,n,i){var s=(0,r.partition)(t,(function(t){var e=t.hasOwnProperty("fixorder")&&!isNaN(t.fixorder);return i?!e&&t.hasOwnProperty("barycenter"):e||t.hasOwnProperty("barycenter")})),u=s.lhs,l=s.rhs.sort((function(t,e){return-t.i- -e.i})),c=[],f=0,h=0,d=0;null===u||void 0===u||u.sort(a(!!e,!!n)),d=o(c,l,d),null===u||void 0===u||u.forEach((function(t){var e;d+=null===(e=t.vs)||void 0===e?void 0:e.length,c.push(t.vs),f+=t.barycenter*t.weight,h+=t.weight,d=o(c,l,d)}));var p={vs:c.flat()};return h&&(p.barycenter=f/h,p.weight=h),p},o=function(t,e,n){var r,i=n;while(e.length&&(r=e[e.length-1]).i<=i)e.pop(),null===t||void 0===t||t.push(r.vs),i++;return i},a=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"]=i},33562:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var 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},r=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),l=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||l>e[i].lim));o=i,i=r;while(i&&i!==o)s.push(i),i=t.parent(i);return{lca:o,path:a.concat(s.reverse())}},i=function(t){var e,i=n(t);null===(e=t.graph().dummyChains)||void 0===e||e.forEach((function(e){var n,o,a=e,s=t.node(a),u=s.edgeObj;if(u){var l=r(t,i,u.v,u.w),c=l.path,f=l.lca,h=0,d=c[h],p=!0;while(a!==u.w){if(s=t.node(a),p){while(d!==f&&(null===(n=t.node(d))||void 0===n?void 0:n.maxRank)<s.rank)h++,d=c[h];d===f&&(p=!1)}if(!p){while(h<c.length-1&&(null===(o=t.node(c[h+1]))||void 0===o?void 0:o.minRank)<=s.rank)h++;d=c[h]}t.setParent(a,d),a=t.successors(a)[0]}}}))};e["default"]=i},71963:function(t,e,n){"use strict";var r=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])},t(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)}}();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 i=n(39780),o=n(36609),a=n(69209),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(i.Graph),u=function(t,n){var r={},i=function(n,i){var o=0,a=0,s=n.length,u=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,l){var c,f=(0,e.findOtherInnerSegmentNode)(t,n),h=f?t.node(f).order:s;(f||n===u)&&(null===(c=i.slice(a,l+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),u=s.order;!(u<o||h<u)||s.dummy&&(null===(a=t.node(n))||void 0===a?void 0:a.dummy)||(0,e.addConflict)(r,i,n)}))})),a=l+1,o=h)})),i};return(null===n||void 0===n?void 0:n.length)&&n.reduce(i),r};e.findType1Conflicts=u;var l=function(t,n){var r={};function i(n,i,o,a,s){for(var u,l,c,f=i;f<o;f++)c=n[f],(null===(u=t.node(c))||void 0===u?void 0:u.dummy)&&(null===(l=t.predecessors(c))||void 0===l||l.forEach((function(n){var i=t.node(n);i.dummy&&(i.order<a||i.order>s)&&(0,e.addConflict)(r,n,c)})))}function o(t){return JSON.stringify(t.slice(1))}function a(t,e){var n=o(t);e.get(n)||(i.apply(void 0,t),e.set(n,!0))}var s=function(e,n){var r,i=-1,o=0,s=new Map;return null===n||void 0===n||n.forEach((function(u,l){var c;if("border"===(null===(c=t.node(u))||void 0===c?void 0:c.dummy)){var f=t.predecessors(u)||[];f.length&&(r=t.node(f[0]).order,a([n,o,l,i,r],s),o=l,i=r)}a([n,o,n.length,r,e.length],s)})),n};return(null===n||void 0===n?void 0:n.length)&&n.reduce(s),r};e.findType2Conflicts=l;var c=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.findOtherInnerSegmentNode=c;var f=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.addConflict=f;var h=function(t,e,n){var r=e,i=n;if(r>i){var o=e;r=i,i=o}return!!t[r]};e.hasConflict=h;var d=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 u=i(t);if(u.length){u=u.sort((function(t,e){return s[t]-s[e]}));for(var l=(u.length-1)/2,c=Math.floor(l),f=Math.ceil(l);c<=f;++c){var h=u[c];a[t]===t&&n<s[h]&&!(0,e.hasConflict)(r,t,h)&&(a[h]=t,a[t]=o[t]=o[h],n=s[h])}}}))})),{root:o,align:a}};e.verticalAlignment=d;var p=function(t,n,r,i,o){var a,s={},u=(0,e.buildBlockGraph)(t,n,r,o),l=o?"borderLeft":"borderRight",c=function(t,e){var n=u.nodes(),r=n.pop(),i={};while(r)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()},f=function(t){s[t]=(u.inEdges(t)||[]).reduce((function(t,e){return Math.max(t,(s[e.v]||0)+u.edge(e))}),0)},h=function(e){var n=(u.outEdges(e)||[]).reduce((function(t,e){return Math.min(t,(s[e.w]||0)-u.edge(e))}),Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==l&&(s[e]=Math.max(s[e],n))};return c(f,u.predecessors.bind(u)),c(h,u.successors.bind(u)),null===(a=Object.values(i))||void 0===a||a.forEach((function(t){s[t]=s[r[t]]})),s};e.horizontalCompaction=p;var g=function(t,n,r,i){var o=new s,a=t.graph(),u=(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],s=o.edgeFromArgs(a,i);o.setEdge(a,i,Math.max(u(t,e,n),s||0))}n=e}))})),o};e.buildBlockGraph=g;var v=function(t,n){return(0,a.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}))};function m(t,e){var n=Object.values(e),r=(0,o.min)(n),i=(0,o.max)(n);["u","d"].forEach((function(n){["l","r"].forEach((function(a){var s,u=n+a,l=t[u];if(l!==e){var c=Object.values(l);s="l"===a?r-(0,o.min)(c):i-(0,o.max)(c),s&&(t[u]={},Object.keys(l).forEach((function(e){t[u][e]=l[e]+s})))}}))}))}e.findSmallestWidthAlignment=v,e.alignCoordinates=m;var y=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.balance=y;var b=function(t){var n,r=(0,a.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),u=(0,e.verticalAlignment)(t,n,i,s),l=(0,e.horizontalCompaction)(t,n,u.root,u.align,"r"===r);"r"===r&&Object.keys(l).forEach((function(t){l[t]=-l[t]})),o[a+r]=l}))}));var s=(0,e.findSmallestWidthAlignment)(t,o);return m(o,s),(0,e.balance)(o,t.graph().align)};e.positionX=b;var x=function(t,e,n){return function(r,i,o){var a,s=r.node(i),u=r.node(o),l=0;if(l+=s.width/2,s.hasOwnProperty("labelpos"))switch((s.labelpos||"").toLowerCase()){case"l":a=-s.width/2;break;case"r":a=s.width/2;break}if(a&&(l+=n?a:-a),a=0,l+=(s.dummy?e:t)/2,l+=(u.dummy?e:t)/2,l+=u.width/2,u.labelpos)switch((u.labelpos||"").toLowerCase()){case"l":a=u.width/2;break;case"r":a=-u.width/2;break}return a&&(l+=n?a:-a),a=0,l}};e.sep=x;var _=function(t,e){return t.node(e).width||0};e.width=_},95: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(69209),o=n(71963),a=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}))},s=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),u=(0,o.verticalAlignment)(t,a,n,s),l=(0,o.horizontalCompaction)(t,a,u.root,u.align,"r"===e);"r"===e&&Object.keys(l).forEach((function(t){return l[t]=-l[t]})),r[i+e]=l}))}));var s=(0,o.findSmallestWidthAlignment)(t,r);return s&&(0,o.alignCoordinates)(r,s),(0,o.balance)(r,t.graph().align)},u=function(t){var e,n=(0,i.asNonCompoundGraph)(t);a(n);var r=s(n);null===(e=Object.keys(r))||void 0===e||e.forEach((function(t){n.node(t).x=r[t]}))};e["default"]=u},13614:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.feasibleTreeWithLayer=e.feasibleTree=void 0;var r=n(37323),i=n(69209),o=n(27652),a=function(t){var e,n,i=new o.Graph({directed:!1}),a=t.nodes()[0],u=t.nodeCount();i.setNode(a,{});while(s(i,t)<u)e=c(i,t),n=i.hasNode(e.v)?(0,r.slack)(t,e):-(0,r.slack)(t,e),f(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()},u=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;i.setNode(a,{});while(l(i,t)<s)e=c(i,t),n=i.hasNode(e.v)?(0,r.slack)(t,e):-(0,r.slack)(t,e),f(i,t,n);return i};e.feasibleTreeWithLayer=u;var l=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}))},f=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:u}},76827: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(37323),o=n(13614),a=r(n(32253)),s=function(t){switch(t.graph().ranker){case"network-simplex":c(t);break;case"tight-tree":l(t);break;case"longest-path":u(t);break;default:l(t)}},u=i.longestPath,l=function(t){(0,i.longestPathWithLayer)(t),(0,o.feasibleTreeWithLayer)(t)},c=function(t){(0,a.default)(t)};e["default"]=s},32253: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(13614),i=n(37323),o=n(69209),a=n(39780),s=a.algorithm.preorder,u=a.algorithm.postorder,l=function(t){var n=(0,o.simplify)(t);(0,i.longestPath)(n);var a,s,u=(0,r.feasibleTree)(n);(0,e.initLowLimValues)(u),(0,e.initCutValues)(u,n);while(a=(0,e.leaveEdge)(u))s=(0,e.enterEdge)(u,n,a),(0,e.exchangeEdges)(u,n,a,s)},c=function(t,e){var n=u(t,t.nodes());n=null===n||void 0===n?void 0:n.slice(0,(null===n||void 0===n?void 0:n.length)-1),null===n||void 0===n||n.forEach((function(n){f(t,e,n)}))};e.initCutValues=c;var f=function(t,n,r){var i=t.node(r),o=i.parent;t.edgeFromArgs(r,o).cutvalue=(0,e.calcCutValue)(t,n,r)},h=function(t,e,n){var r,i=t.node(n),o=i.parent,a=!0,s=e.edgeFromArgs(n,o),u=0;return s||(a=!1,s=e.edgeFromArgs(o,n)),u=s.weight,null===(r=e.nodeEdges(n))||void 0===r||r.forEach((function(r){var i=r.v===n,s=i?r.w:r.v;if(s!==o){var l=i===a,c=e.edge(r).weight;if(u+=l?c:-c,b(t,n,s)){var f=t.edgeFromArgs(n,s).cutvalue;u+=l?-f:f}}})),u};e.calcCutValue=h;var d=function(t,e){void 0===e&&(e=t.nodes()[0]),p(t,{},1,e)};e.initLowLimValues=d;var p=function(t,e,n,r,i){var o,a=n,s=n,u=t.node(r);return e[r]=!0,null===(o=t.neighbors(r))||void 0===o||o.forEach((function(n){e[n]||(s=p(t,e,s,n,r))})),u.low=a,u.lim=s++,i?u.parent=i:delete u.parent,s},g=function(t){return t.edges().find((function(e){return t.edge(e).cutvalue<0}))};e.leaveEdge=g;var v=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),u=t.node(a),l=s,c=!1;s.lim>u.lim&&(l=u,c=!0);var f=e.edges().filter((function(e){return c===x(t,t.node(e.v),l)&&c!==x(t,t.node(e.w),l)}));return(0,o.minBy)(f,(function(t){return(0,i.slack)(e,t)}))};e.enterEdge=v;var m=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),y(t,n)};e.exchangeEdges=m;var y=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);r=null===r||void 0===r?void 0:r.slice(1),null===r||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)}))},b=function(t,e,n){return t.hasEdge(e,n)},x=function(t,e,n){return n.low<=e.lim&&e.lim<=n.lim};e["default"]=l},37323:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.slack=e.longestPathWithLayer=e.longestPath=void 0;var n=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),i=t.edge(e).minlen,a=n-i;a&&(void 0===o||a<o)&&(o=a)})),o||(o=0),a.rank=o,o):0};null===(e=t.sources())||void 0===e||e.forEach((function(t){return r(t)}))};e.longestPath=n;var r=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),r=t.edge(e).minlen,o=n-r;o&&(void 0===a||o<a)&&(a=o)})),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=r;var i=function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen};e.slack=i,e["default"]={longestPath:n,longestPathWithLayer:r,slack:i}},69209: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(49784),i=n(27652),o=function(t,e){return Number(t)-Number(e)},a=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.addDummyNode=a;var s=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.simplify=s;var u=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.asNonCompoundGraph=u;var l=function(t,e){return null===t||void 0===t?void 0:t.reduce((function(t,n,r){return t[n]=e[r],t}),{})};e.zipObject=l;var c=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.successorWeights=c;var f=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.predecessorWeights=f;var h=function(t,e){var n,r,i=Number(t.x),o=Number(t.y),a=Number(e.x)-i,s=Number(e.y)-o,u=Number(t.width)/2,l=Number(t.height)/2;return a||s?(Math.abs(s)*u>Math.abs(a)*l?(s<0&&(l=-l),n=l*a/s,r=l):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}):{x:0,y:0}};e.intersectRect=h;var d=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;return o(null===(r=t.node(e))||void 0===r?void 0:r.order,null===(i=t.node(n))||void 0===i?void 0:i.order)}));return n};e.buildLayerMatrix=d;var p=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.normalizeRanks=p;var g=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 u=i[s];void 0===u?s%a!==0&&(o-=1):o&&(null===u||void 0===u||u.forEach((function(e){var n=t.node(e);n&&(n.rank=n.rank||0,n.rank+=o)})))}};e.removeEmptyRanks=g;var v=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.addBorderNode=v;var m=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.maxRank=m;var y=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.partition=y;var b=function(t,e){var n=Date.now();try{return e()}finally{console.log("".concat(t," time: ").concat(Date.now()-n,"ms"))}};e.time=b;var x=function(t,e){return e()};e.notime=x;var _=function(t,e){return t.reduce((function(t,n){var r=e(t),i=e(n);return r>i?n:t}))};e.minBy=_},77057:function(t,e,n){"use strict";var r=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])},t(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)}}(),i=this&&this.__assign||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],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)},o=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 a=n(62329),s=n(31969),u=n(49784),l=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 r(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 i(i({},t),{collapsed:!0})})))},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges;if(e){var r=t.getLayoutConfig(),i=r.graphDef,o=r.graphOption,a=r.graphSettings,u=(0,s.buildGraph)(i,o,a),l=(0,s.flatGraph)(u,!0);return this.updatePosition(l),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n}}},e.prototype.getNodePath=function(t){var e=this,n=e.nodes,r=e.combos,i=n.find((function(e){return e.id===t})),o=function(t,e){void 0===e&&(e=[]);var n=r.find((function(e){return e.id===t}));return n?(e.unshift(t),n.parentId?o(n.parentId,e):e):e};return i&&i.comboId?o(i.comboId,[t]):[t]},e.prototype.getLayoutConfig=function(){var t,e,n,r,a=this,l=a.nodes,c=a.edges,f=a.combos,h=a.nodeSize,d=a.rankdir,p=a.align,g=a.edgesep,v=a.nodesep,m=a.ranksep,y=a.settings,b=(f||[]).reduce((function(t,e){var n=l.filter((function(t){return t.comboId===e.id})).map((function(t){return t.id})),r=(f||[]).filter((function(t){return t.parentId===e.id})).map((function(t){return t.id}));return(n.length||r.length)&&(t[e.id]=o(o([],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 x=function(t){return t&&t.size?(0,u.isArray)(t.size)?t.size:[t.size,t.size]:[80,40]},_=x(null===f||void 0===f?void 0:f[0]),w=_[0],S=_[1],E=null===(e=null===(t=a.graphSettings)||void 0===t?void 0:t.subScene)||void 0===e?void 0:e.meta,T=(null===(n=f.find((function(t){return!t.collapsed})))||void 0===n?void 0:n.padding)||[20,20,20,20],k=T[0],C=T[1],M=T[2],A=T[3],I={compound:b,nodes:o([],(l||[]).map((function(t){var e=r(t),n=e[0],o=e[1];return i(i({},t),{width:n,height:o})})),!0),edges:o([],(c||[]).map((function(t){return i(i({},t),{v:t.source,w:t.target})})),!0)},O={expanded:(f||[]).filter((function(t){return!t.collapsed})).map((function(t){return t.id}))},D={graph:{meta:{align:p,rankDir:d,nodeSep:v,edgeSep:g,rankSep:m}},subScene:{meta:{paddingTop:k||(null===E||void 0===E?void 0:E.paddingTop)||20,paddingRight:C||(null===E||void 0===E?void 0:E.paddingRight)||20,paddingBottom:M||(null===E||void 0===E?void 0:E.paddingBottom)||20,paddingLeft:A||(null===E||void 0===E?void 0:E.paddingLeft)||20,labelHeight:0}},nodeSize:{meta:{width:w,height:S}}},P=(0,s.mergeConfig)(y,i({},(0,s.mergeConfig)(D,s.LAYOUT_CONFIG)));return a.graphSettings=P,{graphDef:I,graphOption:O,graphSettings:P}},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,r=n.begin,i=[0,0];if(r){var o=1/0,a=1/0;t.forEach((function(t){o>t.x&&(o=t.x),a>t.y&&(a=t.y)})),e.forEach((function(t){t.points.forEach((function(t){o>t.x&&(o=t.x),a>t.y&&(a=t.y)}))})),i[0]=r[0]-o,i[1]=r[1]-a}return i},e.prototype.updateNodePosition=function(t,e){var n=this,r=n.combos,i=n.nodes,o=n.edges,a=n.anchorPoint,u=n.graphSettings,l=this.getBegin(t,e);t.forEach((function(t){var n,c=t.x,f=t.y,h=t.id,d=t.type,p=t.coreBox;if(d===s.HierarchyNodeType.META&&h!==s.ROOT_NAME){var g=r.findIndex((function(t){return t.id===h})),v=null===(n=null===u||void 0===u?void 0:u.subScene)||void 0===n?void 0:n.meta;r[g].offsetX=c+l[0],r[g].offsetY=f+l[1],r[g].fixSize=[p.width,p.height],r[g].fixCollapseSize=[p.width,p.height],t.expanded?r[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]:r[g].padding=[0,0,0,0]}else if(d===s.HierarchyNodeType.OP){g=i.findIndex((function(t){return t.id===h}));if(i[g].x=c+l[0],i[g].y=f+l[1],a){var m=[],y=e.filter((function(t){return t.v===h})),b=e.filter((function(t){return t.w===h}));y.length>0&&y.forEach((function(e){var n=e.points[0],r=(n.x-c)/t.width+.5,i=(n.y-f)/t.height+.5;m.push([r,i]),e.baseEdgeList.forEach((function(t){var e=o.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,i=(n.y-f)/t.height+.5;m.push([r,i]),e.baseEdgeList.forEach((function(t){var e=o.find((function(e){return e.source===t.v&&e.target===t.w}));e&&(e.targetAnchor=m.length-1)}))})),i[g].anchorPoints=m.length>0?m:i[g].anchorPoints||[]}}}))},e.prototype.updateEdgePosition=function(t,e){var n=this,r=n.combos,a=n.edges,u=n.controlPoints,l=this.getBegin(t,e);u&&(r.forEach((function(t){t.inEdges=[],t.outEdges=[]})),a.forEach((function(e){var a,u,c,f,h=t.find((function(t){return t.id===e.source})),d=t.find((function(t){return t.id===e.target})),p=[],g=[];if(h&&d)g=(0,s.getEdges)(null===h||void 0===h?void 0:h.id,null===d||void 0===d?void 0:d.id,t);else if(!h||!d){var v=n.getNodePath(e.source),m=n.getNodePath(e.target),y=v.reverse().slice(h?0:1).find((function(e){return t.find((function(t){return t.id===e}))})),b=m.reverse().slice(d?0:1).find((function(e){return t.find((function(t){return t.id===e}))}));h=t.find((function(t){return t.id===y})),d=t.find((function(t){return t.id===b})),g=(0,s.getEdges)(null===h||void 0===h?void 0:h.id,null===d||void 0===d?void 0:d.id,t,{v:e.source,w:e.target})}if(p=g.reduce((function(t,e){return o(o([],t,!0),e.points.map((function(t){return i(i({},t),{x:t.x+l[0],y:t.y+l[1]})})),!0)}),[]),p=p.slice(1,-1),e.controlPoints=p,(null===d||void 0===d?void 0:d.type)===s.NodeType.META){var x=r.findIndex((function(t){return t.id===(null===d||void 0===d?void 0:d.id)}));if(!r[x]||(null===(a=r[x].inEdges)||void 0===a?void 0:a.some((function(t){return t.source===h.id&&t.target===d.id}))))return;null===(u=r[x].inEdges)||void 0===u||u.push({source:h.id,target:d.id,controlPoints:p})}if((null===h||void 0===h?void 0:h.type)===s.NodeType.META){x=r.findIndex((function(t){return t.id===(null===h||void 0===h?void 0:h.id)}));if(!r[x]||(null===(c=r[x].outEdges)||void 0===c?void 0:c.some((function(t){return t.source===h.id&&t.target===d.id}))))return;null===(f=r[x].outEdges)||void 0===f||f.push({source:h.id,target:d.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}(a.Base);e.DagreCompoundLayout=l},34015: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],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.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 u=a(n(61614)),l=s(n(88221)),c=s(n(87064)),f=n(20171);function h(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){var e=i.filter((function(e){return e.source===t.id||e.target===t.id}));if(e.length>1){var n=r({},t);delete n.size,s.push(n)}}));var h=[];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&&h.push(t)}));var d=new f.DagreLayout({type:"dagre",ranksep:e.nodeMinGap,nodesep:e.nodeMinGap}),p=d.layout({nodes:s,edges:h}).nodes;n.forEach((function(t){var e=(p||[]).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 g=JSON.parse(JSON.stringify(n)),v=JSON.parse(JSON.stringify(i)),m=u.forceSimulation().nodes(g).force("link",u.forceLink(v).id((function(t){return t.id})).distance((function(t){var e=h.find((function(e){return e.source===t.source&&e.target===t.target}));return e?30:20}))).force("charge",u.forceManyBody()).force("center",u.forceCenter(o/2,a/2)).force("x",u.forceX(o/2)).force("y",u.forceY(a/2)).alpha(.3).alphaDecay(.08).alphaMin(.001),y=new Promise((function(t){m.on("end",(function(){n.forEach((function(t){var e=g.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}))),u=Math.min.apply(Math,n.map((function(t){return t.y}))),f=Math.max.apply(Math,n.map((function(t){return t.y}))),h=o/(s-r),d=a/(f-u);n.forEach((function(t){void 0!==t.x&&h<1&&(t.x=(t.x-r)*h),void 0!==t.y&&d<1&&(t.y=(t.y-u)*d)})),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,l.default)({nodes:n,edges:i},e),t()}))}));return y}e["default"]=h},88221: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(28611));function o(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 u=new i.default;u.init(n,r,{CELL_H:s,CELL_W:a}),t.nodes.forEach((function(t){var e=u.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 l=0;l<t.nodes.length;l++){var c=t.nodes[l],f=u.findGridByNodeId(c.id);if(!f)throw new Error("can not find node cell");var h=f.column,d=f.row;if(c.size[0]+o>a){for(var p=Math.ceil((c.size[0]+o)/a)-1,g=p,v=0;v<p;v++){var m=u.additionColumn.indexOf(h+v+1)>-1;if(!m||u.cells[h+v+1][d].node)break;g--}u.insertColumn(h,g)}if(c.size[1]+o>s){for(p=Math.ceil((c.size[1]+o)/s)-1,g=p,v=0;v<p;v++){m=u.additionRow.indexOf(d+v+1)>-1;if(!m||u.cells[h][d+v+1].node)break;g--}u.insertRow(d,g)}}for(l=0;l<u.columnNum;l++){var y=function(e){var n=u.cells[l][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(v=0;v<u.rowNum;v++)y(v)}}e["default"]=o},28611:function(t,e){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=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 r=0;r<e;r++){this.cells[r+this.columnNum]=[];for(var i=0;i<this.rowNum;i++)this.cells[r+this.columnNum][i]={dx:r,dy:i,x:r*this.CELL_W,y:i*this.CELL_H,occupied:!1,node:null}}for(r=this.columnNum-1;r>t;r--)for(i=0;i<this.rowNum;i++)this.cells[r+e][i]=n(n({},this.cells[r][i]),{x:(r+e)*this.CELL_W,y:i*this.CELL_H}),this.cells[r][i]={x:r*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(r=0;r<e;r++)this.additionColumn.push(t+r+1);this.columnNum+=e}},t.prototype.insertRow=function(t,e){if(!(e<=0)){for(var r=0;r<e;r++)for(var i=0;i<this.columnNum;i++)this.cells[i][r+this.rowNum]={dx:i,dy:r,x:i*this.CELL_W,y:r*this.CELL_H,occupied:!1,node:null};for(i=0;i<this.columnNum;i++)for(r=this.rowNum-1;r>t;r--)this.cells[i][r+e]=n(n({},this.cells[i][r]),{dx:i,dy:r+e,x:i*this.CELL_W,y:(r+e)*this.CELL_H}),this.cells[i][r]={dx:i,dy:r,x:i*this.CELL_W,y:r*this.CELL_H,occupied:!1,node:null};for(r=0;r<this.additionRow.length;r++)this.additionRow[r]>=t&&(this.additionRow[r]+=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"]=r},90441:function(t,e,n){"use strict";var r=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])},t(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)}}(),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ERLayout=void 0;var o=n(62329),a=i(n(34015)),s=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 r(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,a.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}(o.Base);e.ERLayout=s},87064:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=1200,r=800,i=1e7,o=10,a=3.141592653589793,s=1.5707963267948966,u=.375*a,l=.625*a,c=new Map,f=10,h=10,d=.8,p=.1,g=.5;function v(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,c=e.x-e.size[0]/2,f=e.y-e.size[1]/2,h=e.x+e.size[0]/2,d=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),x=0,_=0,w=0,S=0;b>s?(_=i-d,x=c-o,w=parseFloat(_?(_/Math.cos(b)).toFixed(2):x.toFixed(2)),S=parseFloat(x?(x/Math.sin(b)).toFixed(2):_.toFixed(2))):0<b&&b<=s?(_=f-a,x=c-o,w=S=_>x?parseFloat(_?(_/Math.cos(b)).toFixed(2):x.toFixed(2)):parseFloat(x?(x/Math.sin(b)).toFixed(2):_.toFixed(2))):b<-s?(_=i-d,x=-(h-r),w=S=_>x?parseFloat(_?(_/Math.cos(b)).toFixed(2):x.toFixed(2)):parseFloat(x?(x/Math.sin(b)).toFixed(2):_.toFixed(2))):(_=f-a,x=Math.abs(y)>(o-r)/2?r-h:y,w=S=_>x?parseFloat(_?(_/Math.cos(b)).toFixed(2):x.toFixed(2)):parseFloat(x&&0!==b?(x/Math.sin(b)).toFixed(2):_.toFixed(2)));var E=parseFloat(b.toFixed(2)),T=n;return n&&(T=u<E&&E<l),{distance:Math.abs(w<S?w:S),isHoriz:T}}function m(t,e){var n=c.get(t.id)||[],r=n.find((function(t){return t.source===e.id||t.target===e.id})),a=t.size[0]*t.size[1],s=e.size[0]*e.size[1],u=a>s?e:t,l=a>s?t:e,f=u.x-u.size[0]/2,h=u.y-u.size[1]/2,d=u.x+u.size[0]/2,p=u.y+u.size[1]/2,g=l.x-l.size[0]/2,m=l.y-l.size[1]/2,y=l.x+l.size[0]/2,b=l.y+l.size[1]/2,x=u.x,_=u.y,w=l.x,S=l.y,E=d>=g&&y>=f&&p>=m&&b>=h,T=0,k=0;if(E){k=Math.sqrt(Math.pow(w-x,2)+Math.pow(S-_,2));var C=f>g?f:g,M=h>m?h:m,A=d<y?d:y,I=p<b?p:b,O=A-C,D=I-M,P=O*D;0===k&&(k=1e-7),T=1*o/k*100+P,T*=i}else{var L=!1,N=v(u,l,L);k=N.distance,L=N.isHoriz,k<=o?T+=0!==k?r?o+1*i/k:o+i*o/k:i:(T+=k,r&&(T+=k*k))}return T}function y(t){for(var e=0,i=0;i<t.length;i++){var o=t[i];(o.x<0||o.y<0||o.x>n||o.y>r)&&(e+=1e12);for(var a=i+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}))||[],a=[];o.forEach((function(e){var n=e.source===t.id?e.target:e.source,r=i.get(n);r&&a.push(r)}));for(var s=!0,u=0;u<a.length;u++){var l=a[u],c=180*Math.atan((t.y-l.y)/(l.x-t.y)),f=180*Math.atan((e.y-l.y)/(l.x-e.y)),h=c<30||c>150,d=f<30||f>150,p=c>70&&c<110,g=f>70&&f<110;if(h&&!d||c*f<0){s=!1;break}if(p&&!g||c*f<0){s=!1;break}if((l.x-t.x)*(l.x-e.x)<0){s=!1;break}if((l.y-t.y)*(l.y-e.y)<0){s=!1;break}}return s}function x(t,e){for(var n=!1,r=1,i=f*r,o=h*r,a=[i,-i,0,0],s=[0,0,o,-o],u=0;u<t.length;++u)for(var l=t[u],c=_(l,t),v=0;v<a.length;v++){var m=b(l,{x:l.x+a[v],y:l.y+s[v]},t,e);if(m){l.x+=a[v],l.y+=s[v];var x=_(l,t),w=Math.random();x<c||w<d&&w>p?(c=x,n=!0):(l.x-=a[v],l.y-=s[v])}}return d>p&&(d*=g),n?y(t):0}function _(t,e){var i=0;(t.x<0||t.y<0||t.x+t.size[0]+20>n||t.y+t.size[1]+20>r)&&(i+=1e12);for(var o=0;o<e.length;++o)t.id!==e[o].id&&(i+=m(t,e[o]));return i}function w(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}));c.set(t,n)})),t.sort((function(t,e){var n,r;return(null===(n=c.get(t.id))||void 0===n?void 0:n.length)-(null===(r=c.get(e.id))||void 0===r?void 0:r.length)}));var n=y(t),r=20,i=1,o=0,a=50,s=0;while(r>0){if(s++,s>=a)break;var u=x(t,e);0!==u&&(o=u),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}}e["default"]=w},89806: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(61614)),s=n(49784);function u(){function t(t){return function(){return t}}var e,n=function(t){return t.cluster},r=t(1),i=t(-1),o=t(100),u=t(.1),l=[0,0],c=[],f={},h=[],d=100,p=100,g={none:{x:0,y:0}},v=[],m="force",y=!0,b=.1;function x(t){if(!y)return x;e.tick(),k();for(var r=0,i=c.length,o=void 0,a=t*b;r<i;++r)o=c[r],o.vx+=(g[n(o)].x-o.x)*a,o.vy+=(g[n(o)].y-o.y)*a}function _(){c&&w()}function w(){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=S();e=a.forceSimulation(t.nodes).force("x",a.forceX(d).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(t.nodes.length?t.links:[]).distance(o).strength(u)),v=e.nodes(),k()}}function S(){var t=[],e=[],n={},r=[],i={},o=[];return i=E(c),o=T(h),r=Object.keys(i),r.forEach((function(e,r){var o=i[e];t.push({id:e,size:o.count,r:Math.sqrt(o.sumforceNodeSize/Math.PI)}),n[e]=r})),o.forEach((function(t){var r=(0,s.getEdgeTerminal)(t,"source"),i=(0,s.getEdgeTerminal)(t,"target"),o=n[r],a=n[i];void 0!==o&&void 0!==a&&e.push({source:o,target:a,count:t.count})})),{nodes:t,links:e}}function E(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}function T(t){var e={},n=[];t.forEach((function(t){var n=C(t),r=0;void 0!==e[n]&&(r=e[n]),r+=1,e[n]=r}));var r=Object.entries(e);return r.forEach((function(t){var e=t[0],r=t[1],i=e.split("~")[0],o=e.split("~")[1];void 0!==i&&void 0!==o&&n.push({source:i,target:o,count:r})})),n}function k(){return g={none:{x:0,y:0}},v.forEach((function(t){g[t.id]={x:t.x-l[0],y:t.y-l[1]}})),g}function C(t){var e=(0,s.getEdgeTerminal)(t,"source"),r=(0,s.getEdgeTerminal)(t,"target"),i=n(f[e]),o=n(f[r]);return i<=o?"".concat(i,"~").concat(o):"".concat(o,"~").concat(i)}function M(t){f={},t.forEach((function(t){f[t.id]=t}))}function A(t){return arguments.length?(m=t,_(),x):m}function I(t){return arguments.length?"string"===typeof t?(n=function(e){return e[t]},x):(n=t,x):n}function O(t){return arguments.length?(y=t,x):y}function D(t){return arguments.length?(b=t,x):b}function P(t){return arguments.length?(d=t,x):d}function L(t){return arguments.length?(p=t,x):p}function N(t){return arguments.length?(M(t||[]),c=t||[],x):c}function R(t){return arguments.length?(h=t||[],_(),x):h}function j(e){return arguments.length?(r="function"===typeof e?e:t(+e),_(),x):r}function F(e){return arguments.length?(i="function"===typeof e?e:t(+e),_(),x):i}function B(e){return arguments.length?(o="function"===typeof e?e:t(+e),_(),x):o}function z(e){return arguments.length?(u="function"===typeof e?e:t(+e),_(),x):u}function Z(t){return arguments.length?(l=t,x):l}return x.initialize=function(t){c=t,_()},x.template=A,x.groupBy=I,x.enableGrouping=O,x.strength=D,x.centerX=P,x.centerY=L,x.nodes=N,x.links=R,x.forceNodeSize=j,x.nodeSize=x.forceNodeSize,x.forceCharge=F,x.forceLinkDistance=B,x.forceLinkStrength=z,x.offset=Z,x.getFocis=k,x}e["default"]=u},8810:function(t,e,n){"use strict";var r=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])},t(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)}}(),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}),e.ForceLayout=void 0;var u=a(n(61614)),l=s(n(89806)),c=n(49784),f=n(62329),h=n(16470),d=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 r(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){var e=this;e.nodes=t.nodes||[];var n=t.edges||[];e.edges=n.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})),e.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 c=u.forceManyBody();if(e.nodeStrength&&c.strength(e.nodeStrength),i=u.forceSimulation().nodes(n),e.clustering){var f=(0,l.default)();f.centerX(e.center[0]).centerY(e.center[1]).template("force").strength(e.clusterFociStrength),r&&f.links(r),n&&f.nodes(n),f.forceLinkDistance(e.clusterEdgeDistance).forceLinkStrength(e.clusterEdgeStrength).forceCharge(e.clusterNodeStrength).forceNodeSize(e.clusterNodeSize),e.clusterForce=f,i.force("group",f)}if(i.force("center",u.forceCenter(e.center[0],e.center[1])).force("charge",c).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 v=p(i),m=1;m<=v;m++)i.tick(),postMessage({nodes:n,currentTick:m,totalTicks:v,type:h.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(y){e.ticking=!1,console.warn(y)}}},e.prototype.overlapProcess=function(t){var e,n,r=this,i=r.nodeSize,o=r.nodeSpacing,a=r.collideStrength;if(n=(0,c.isNumber)(o)?function(){return o}:(0,c.isFunction)(o)?o:function(){return 0},i)if((0,c.isFunction)(i))e=function(t){var e=i(t);return e+n(t)};else if((0,c.isArray)(i)){var s=i[0]>i[1]?i[0]:i[1],l=s/2;e=function(t){return l+n(t)}}else if((0,c.isNumber)(i)){var f=i/2;e=function(t){return f+n(t)}}else e=function(){return 10};else e=function(t){if(t.size){if((0,c.isArray)(t.size)){var e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return e/2+n(t)}if((0,c.isObject)(t.size)){e=t.size.width>t.size.height?t.size.width:t.size.height;return e/2+n(t)}return t.size/2+n(t)}return 10+n(t)};t.force("collisionForce",u.forceCollide(e).strength(a))},e.prototype.updateCfg=function(t){var e=this;e.ticking&&(e.forceSimulation.stop(),e.ticking=!1),e.forceSimulation=null,Object.assign(e,t)},e.prototype.destroy=function(){var t=this;t.ticking&&(t.forceSimulation.stop(),t.ticking=!1),t.nodes=null,t.edges=null,t.destroyed=!0},e}(f.Base);function p(t){var e=t.alphaMin(),n=t.alphaTarget(),r=t.alpha(),i=Math.log((e-n)/(r-n))/Math.log(1-t.alphaDecay()),o=Math.ceil(i);return o}function g(){return"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}e.ForceLayout=d},85717: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(8810),e)},91019:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forceNBody=void 0;var r=n(76749),i=.81,o=.1;function a(t,e,n,i,o){var a=n/i,u=t.map((function(t,n){var r=e[t.id],i=r.data,o=r.x,s=r.y,u=r.size,l=i.layout.force.nodeStrength;return{x:o,y:s,size:u,index:n,vx:0,vy:0,weight:a*l}})),c=(0,r.quadtree)(u,(function(t){return t.x}),(function(t){return t.y})).visitAfter(s);return u.forEach((function(t){l(t,c)})),u.map((function(n,r){var i=e[t[r].id],a=i.data.layout.force.mass,s=void 0===a?1:a;o[2*r]=n.vx/s,o[2*r+1]=n.vy/s})),o}function s(t){var e=0,n=0,r=0;if(t.length){for(var i=0;i<4;i++){var o=t[i];o&&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{o=t;t.x=o.data.x,t.y=o.data.y,t.weight=o.data.weight}}e.forceNBody=a;var u=function(t,e,n,r,a,s){var u=s.x-t.x||o,l=s.y-t.y||o,c=r-e,f=u*u+l*l,h=Math.sqrt(f)*f;if(c*c*i<f){var d=t.weight/h;return s.vx+=u*d,s.vy+=l*d,!0}if(t.length)return!1;if(t.data!==s){d=t.data.weight/h;s.vx+=u*d,s.vy+=l*d}};function l(t,e){e.visit((function(e,n,r,i,o){return u(e,n,r,i,o,t)}))}},6740:function(t,e,n){"use strict";var r=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])},t(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)}}(),i=this&&this.__assign||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],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Force2Layout=void 0;var o=n(62329),a=n(49784),s=n(91019),u=function(t,e){var n;return n=t?(0,a.isNumber)(t)?function(e){return t}:t:function(t){return e||1},n},l=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 r(e,t),e.prototype.getCentripetalOptions=function(){var t,e=this,n=e.leafCluster,r=e.clustering,o=e.nodeClusterBy,s=e.nodes,u=e.nodeMap,l=e.clusterNodeStrength,c=function(t){return"function"===typeof l?l(t):l},f={};if(n){t=this.getSameTypeLeafMap()||{};var h=Array.from(new Set(null===s||void 0===s?void 0:s.map((function(t){return t[o]}))))||[];f={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===h||void 0===h?void 0:h.length)?1:c(e)},others:1,center:function(e,n,r){var i,o,s=((null===(i=e.data)||void 0===i?void 0:i.layout)||{}).degree;if(!s)return{x:100,y:100};if(1===s){var u=(t[e.id]||{}).sameTypeLeafNodes,l=void 0===u?[]:u;1===l.length?o=void 0:l.length>1&&(o=(0,a.getAvgNodePosition)(l))}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 d=Array.from(new Set(s.map((function(t,e){return t[o]})))).filter((function(t){return void 0!==t})),p={};d.forEach((function(t){var e=s.filter((function(e){return e[o]===t})).map((function(t){return u[t.id]}));p[t]=(0,a.getAvgNodePosition)(e)})),f={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=p[t[o]];return{x:null===r||void 0===r?void 0:r.x,y:null===r||void 0===r?void 0:r.y}}}}this.centripetalOptions=i(i({},this.centripetalOptions),f);var g=this.centripetalOptions,v=g.leaf,m=g.single,y=g.others;v&&"function"!==typeof v&&(this.centripetalOptions.leaf=function(){return v}),m&&"function"!==typeof m&&(this.centripetalOptions.single=function(){return m}),y&&"function"!==typeof y&&(this.centripetalOptions.others=function(){return y})},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 o=t.center;if(1===e.length)return e[0].x=o[0],e[0].y=o[1],void t.onLayoutEnd([i({},e[0])]);t.degreesMap=(0,a.getDegreeMap)(e,n),t.propsGetMass?t.getMass=t.propsGetMass:t.getMass=function(e){var n=1;(0,a.isNumber)(e.mass)&&(n=e.mass);var r=t.degreesMap[e.id].all;return!r||r<5?n:5*r*n};var s,l=t.nodeSize;if(t.preventOverlap){var c,f=t.nodeSpacing;c=(0,a.isNumber)(f)?function(){return f}:(0,a.isFunction)(f)?f:function(){return 0},s=l?(0,a.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,a.isArray)(t.size)?Math.max(t.size[0],t.size[1])+c(t):(0,a.isObject)(t.size)?Math.max(t.size.width,t.size.height)+c(t):t.size+c(t):10+c(t)}}t.nodeSize=s,t.linkDistance=u(t.linkDistance,1),t.nodeStrength=u(t.nodeStrength,1),t.edgeStrength=u(t.edgeStrength,1);var h={},d={};e.forEach((function(e,r){(0,a.isNumber)(e.x)||(e.x=Math.random()*t.width),(0,a.isNumber)(e.y)||(e.y=Math.random()*t.height);var o=t.degreesMap[e.id];h[e.id]=i(i({},e),{data:i(i({},e.data),{size:t.nodeSize(e)||30,layout:{inDegree:o.in,outDegree:o.out,degree:o.all,tDegree:o.in,sDegree:o.out,force:{mass:t.getMass(e),nodeStrength:t.nodeStrength(e,n)}}})}),d[e.id]=r})),t.nodeMap=h,t.nodeIdxMap=d,t.edgeInfos=[],null===n||void 0===n||n.forEach((function(e){var n=h[e.source],o=h[e.target];n&&o?t.edgeInfos.push({edgeStrength:t.edgeStrength(e),linkDistance:r?r(i(i({},e),{source:n,target:o}),n,o):t.linkDistance(e,n,o)||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,u=t.height;if(t.currentMinY=0,t.currentMaxY=u,n){var l=[];if(n.forEach((function(t,e){l[2*e]=0,l[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 f=e,h=!a;if(i||h){for(var d=0;(t.judgingDistance>o||d<1)&&d<f;d++)d,t.runOneStep(d,l);t.onLayoutEnd(Object.values(s))}else{if("undefined"===typeof window)return;var p=0;this.timeInterval=window.setInterval((function(){n&&(t.runOneStep(p,l),p++,(p>=f||t.judgingDistance<o)&&(t.onLayoutEnd(Object.values(s)),window.clearInterval(t.timeInterval)))}),0)}}},e.prototype.runOneStep=function(t,e){var n,r=this,i=r.nodes,o=r.edges,a=(r.nodeMap,r.monitor),s=[];if(null===i||void 0===i?void 0:i.length){r.calRepulsive(s),o&&r.calAttractive(s),r.calGravity(s),r.attractToSide(s);var u=r.interval;if(r.updateVelocity(s,e,u),r.updatePosition(e,u),null===(n=r.tick)||void 0===n||n.call(r),a){var l=this.calTotalEnergy(s);a({energy:l,nodes:i,edges:o,iterations:t})}}},e.prototype.calTotalEnergy=function(t){var e=this,n=e.nodes,r=e.nodeMap;if(!(null===n||void 0===n?void 0:n.length))return 0;var i=0;return n.forEach((function(e,n){var o=t[2*n],a=t[2*n+1],s=o*o+a*a,u=r[e.id].data.layout.force.mass,l=void 0===u?1:u;i+=l*s*.5})),i},e.prototype.calRepulsive=function(t){var e=this,n=e.nodes,r=e.nodeMap,i=e.factor,o=e.coulombDisScale;e.nodeSize;(0,s.forceNBody)(n,r,i,o*o,t)},e.prototype.calAttractive=function(t){var e=this,n=e.edges,r=e.nodeMap,i=e.nodeIdxMap,o=e.edgeInfos;e.nodeSize;n.forEach((function(e,n){var s=(0,a.getEdgeTerminal)(e,"source"),u=(0,a.getEdgeTerminal)(e,"target"),l=r[s],c=r[u];if(l&&c){var f=c.x-l.x,h=c.y-l.y;f||h||(f=.01*Math.random(),h=.01*Math.random());var d=Math.sqrt(f*f+h*h),p=f/d,g=h/d,v=o[n]||{},m=v.linkDistance,y=void 0===m?200:m,b=v.edgeStrength,x=void 0===b?200:b,_=y-d,w=_*x,S=l.data.layout.force.mass||1,E=c.data.layout.force.mass||1,T=1/S,k=1/E,C=p*w,M=g*w,A=2*i[s],I=2*i[u];t[A]-=C*T,t[A+1]-=M*T,t[I]+=C*k,t[I+1]+=M*k}}))},e.prototype.calGravity=function(t){var e,n=this,r=n.nodes,i=n.edges,o=void 0===i?[]:i,s=n.nodeMap,u=n.width,l=n.height,c=n.center,f=n.gravity,h=n.degreesMap,d=n.centripetalOptions;if(r)for(var p=r.length,g=0;g<p;g++){var v=2*g,m=s[r[g].id],y=m.data.layout.force.mass,b=void 0===y?1:y,x=0,_=0,w=f,S=h[m.id],E=S.in,T=S.out,k=S.all,C=null===(e=n.getCenter)||void 0===e?void 0:e.call(n,m,k);if(C){var M=C[0],A=C[1],I=C[2];x=m.x-M,_=m.y-A,w=I}else x=m.x-c[0],_=m.y-c[1];if(w&&(t[v]-=w*x/b,t[v+1]-=w*_/b),d){var O=d.leaf,D=d.single,P=d.others,L=d.center,N=(null===L||void 0===L?void 0:L(m,r,o,u,l))||{x:0,y:0,centerStrength:0},R=N.x,j=N.y,F=N.centerStrength;if(!(0,a.isNumber)(R)||!(0,a.isNumber)(j))continue;var B=(m.x-R)/b,z=(m.y-j)/b;if(F&&(t[v]-=F*B,t[v+1]-=F*z),0===k){var Z=D(m);if(!Z)continue;t[v]-=Z*B,t[v+1]-=Z*z;continue}if(0===E||0===T){var U=O(m,r,o);if(!U)continue;t[v]-=U*B,t[v+1]-=U*z;continue}var H=P(m);if(!H)continue;t[v]-=H*B,t[v+1]-=H*z}}},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,u=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:u,l=Math.abs(o);t[2*r+1]-=l*(e.y-s)}}))},e.prototype.updateVelocity=function(t,e,n){var r=this,i=r.nodes,o=r.damping,a=r.maxSpeed;(null===i||void 0===i?void 0:i.length)&&i.forEach((function(r,i){var s=(e[2*i]+t[2*i]*n)*o||.01,u=(e[2*i+1]+t[2*i+1]*n)*o||.01,l=Math.sqrt(s*s+u*u);if(l>a){var c=a/l;s*=c,u*=c}e[2*i]=s,e[2*i+1]=u}))},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 s=0;"max"===i?n.judgingDistance=-1/0:"min"===i&&(n.judgingDistance=1/0);var u=1/0,l=-1/0;r.forEach((function(r,c){var f=o[r.id];if((0,a.isNumber)(r.fx)&&(0,a.isNumber)(r.fy))return r.x=r.fx,r.y=r.fy,f.x=r.x,void(f.y=r.y);var h=t[2*c]*e,d=t[2*c+1]*e;r.x+=h,r.y+=d,f.x=r.x,f.y=r.y,r.y<u&&(u=r.y),r.y>l&&(l=r.y);var p=Math.sqrt(h*h+d*d);switch(i){case"max":n.judgingDistance<p&&(n.judgingDistance=p);break;case"min":n.judgingDistance>p&&(n.judgingDistance=p);break;default:s+=p;break}})),this.currentMinY=u,this.currentMaxY=l,i&&"mean"!==i||(n.judgingDistance=s/r.length)}else this.judgingDistance=0},e.prototype.stop=function(){this.timeInterval&&"undefined"!==typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.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 s={};return n.forEach((function(t,n){var u=o[t.id].all;1===u&&(s[t.id]=(0,a.getCoreNodeAndRelativeLeafNodes)("leaf",t,r,e,o,i))})),s}},e}(o.Base);e.Force2Layout=l},19712:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=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,r=(this.rx*this.mass+e.rx*e.mass)/n,i=(this.ry*this.mass+e.ry*e.mass)/n,o=this.degree+e.degree,a={rx:r,ry:i,mass:n,degree:o};return new t(a)},t}();e["default"]=n},48564:function(t,e,n){"use strict";var r=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])},t(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)}}(),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ForceAtlas2Layout=void 0;var o=n(62329),a=n(49784),s=i(n(19712)),u=i(n(51638)),l=i(n(62732)),c=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 r(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.onLayoutEnd,r=t.prune,i=t.maxIteration;t.width||"undefined"===typeof window||(t.width=window.innerWidth),t.height||"undefined"===typeof window||(t.height=window.innerHeight);for(var o=[],s=e.length,u=0;u<s;u+=1){var l=e[u],c=10,f=10;(0,a.isNumber)(l.size)&&(c=l.size,f=l.size),(0,a.isArray)(l.size)?(isNaN(l.size[0])||(c=l.size[0]),isNaN(l.size[1])||(f=l.size[1])):(0,a.isObject)(l.size)&&(c=l.size.width,f=l.size.height),t.getWidth&&!isNaN(t.getWidth(l))&&(f=t.getWidth(l)),t.getHeight&&!isNaN(t.getHeight(l))&&(c=t.getHeight(l));var h=Math.max(c,f);o.push(h)}void 0===t.barnesHut&&s>250&&(t.barnesHut=!0),void 0===t.prune&&s>100&&(t.prune=!0),0!==this.maxIteration||t.prune?0===this.maxIteration&&r&&(i=100,s<=200&&s>100?i=500:s>200&&(i=950),this.maxIteration=i):(i=250,s<=200&&s>100?i=1e3:s>200&&(i=1200),this.maxIteration=i),t.kr||(t.kr=50,s>100&&s<=500?t.kr=20:s>500&&(t.kr=1)),t.kg||(t.kg=20,s>100&&s<=500?t.kg=10:s>500&&(t.kg=1)),this.nodes=t.updateNodesByForces(o),n()},e.prototype.updateNodesByForces=function(t){for(var e=this,n=e.edges,r=e.maxIteration,i=e.nodes,o=n.filter((function(t){var e=(0,a.getEdgeTerminal)(t,"source"),n=(0,a.getEdgeTerminal)(t,"target");return e!==n})),s=i.length,u=o.length,l=[],c={},f={},h=[],d=0;d<s;d+=1)c[i[d].id]=d,l[d]=0,(void 0===i[d].x||isNaN(i[d].x))&&(i[d].x=1e3*Math.random()),(void 0===i[d].y||isNaN(i[d].y))&&(i[d].y=1e3*Math.random()),h.push({x:i[d].x,y:i[d].y});for(d=0;d<u;d+=1){for(var p=void 0,g=void 0,v=0,m=0,y=0;y<s;y+=1){var b=(0,a.getEdgeTerminal)(o[d],"source"),x=(0,a.getEdgeTerminal)(o[d],"target");i[y].id===b?(p=i[y],v=y):i[y].id===x&&(g=i[y],m=y),f[d]={sourceIdx:v,targetIdx:m}}p&&(l[c[p.id]]+=1),g&&(l[c[g.id]]+=1)}var _=r;if(i=this.iterate(_,c,f,u,l,t),e.prune){for(y=0;y<u;y+=1)l[f[y].sourceIdx]<=1?(i[f[y].sourceIdx].x=i[f[y].targetIdx].x,i[f[y].sourceIdx].y=i[f[y].targetIdx].y):l[f[y].targetIdx]<=1&&(i[f[y].targetIdx].x=i[f[y].sourceIdx].x,i[f[y].targetIdx].y=i[f[y].sourceIdx].y);e.prune=!1,e.barnesHut=!1,_=100,i=this.iterate(_,c,f,u,l,t)}return i},e.prototype.iterate=function(t,e,n,r,i,o){for(var a=this,u=a.nodes,l=a.kr,c=a.preventOverlap,f=a.barnesHut,h=u.length,d=0,p=100,g=t,v=50,m=[],y=[],b=[],x=0;x<h;x+=1)if(m[2*x]=0,m[2*x+1]=0,f){var _={id:x,rx:u[x].x,ry:u[x].y,mass:1,g:l,degree:i[x]};b[x]=new s.default(_)}while(g>0){for(x=0;x<h;x+=1)y[2*x]=m[2*x],y[2*x+1]=m[2*x+1],m[2*x]=0,m[2*x+1]=0;m=this.getAttrForces(g,v,r,e,n,i,o,m),m=f&&(c&&g>v||!c)?this.getOptRepGraForces(m,b,i):this.getRepGraForces(g,v,m,p,o,i);var w=this.updatePos(m,y,d,i);u=w.nodes,d=w.sg,g--,a.tick&&a.tick()}return u},e.prototype.getAttrForces=function(t,e,n,r,i,o,a,s){for(var u=this,l=u.nodes,c=u.preventOverlap,f=u.dissuadeHubs,h=u.mode,d=u.prune,p=0;p<n;p+=1){var g=l[i[p].sourceIdx],v=i[p].sourceIdx,m=l[i[p].targetIdx],y=i[p].targetIdx;if(!d||!(o[v]<=1||o[y]<=1)){var b=[m.x-g.x,m.y-g.y],x=Math.hypot(b[0],b[1]);x=x<1e-4?1e-4:x,b[0]=b[0]/x,b[1]=b[1]/x,c&&t<e&&(x=x-a[v]-a[y]);var _=x,w=_;"linlog"===h&&(_=Math.log(1+x),w=_),f&&(_=x/o[v],w=x/o[y]),c&&t<e&&x<=0?(_=0,w=0):c&&t<e&&x>0&&(_=x,w=x),s[2*r[g.id]]+=_*b[0],s[2*r[m.id]]-=w*b[0],s[2*r[g.id]+1]+=_*b[1],s[2*r[m.id]+1]-=w*b[1]}}return s},e.prototype.getRepGraForces=function(t,e,n,r,i,o){for(var a=this,s=a.nodes,u=a.preventOverlap,l=a.kr,c=a.kg,f=a.center,h=a.prune,d=s.length,p=0;p<d;p+=1){for(var g=p+1;g<d;g+=1)if(!h||!(o[p]<=1||o[g]<=1)){var v=[s[g].x-s[p].x,s[g].y-s[p].y],m=Math.hypot(v[0],v[1]);m=m<1e-4?1e-4:m,v[0]=v[0]/m,v[1]=v[1]/m,u&&t<e&&(m=m-i[p]-i[g]);var y=l*(o[p]+1)*(o[g]+1)/m;u&&t<e&&m<0?y=r*(o[p]+1)*(o[g]+1):u&&t<e&&0===m?y=0:u&&t<e&&m>0&&(y=l*(o[p]+1)*(o[g]+1)/m),n[2*p]-=y*v[0],n[2*g]+=y*v[0],n[2*p+1]-=y*v[1],n[2*g+1]+=y*v[1]}var b=[s[p].x-f[0],s[p].y-f[1]],x=Math.hypot(b[0],b[1]);b[0]=b[0]/x,b[1]=b[1]/x;var _=c*(o[p]+1);n[2*p]-=_*b[0],n[2*p+1]-=_*b[1]}return n},e.prototype.getOptRepGraForces=function(t,e,n){for(var r=this,i=r.nodes,o=r.kg,a=r.center,s=r.prune,c=i.length,f=9e10,h=-9e10,d=9e10,p=-9e10,g=0;g<c;g+=1)s&&n[g]<=1||(e[g].setPos(i[g].x,i[g].y),i[g].x>=h&&(h=i[g].x),i[g].x<=f&&(f=i[g].x),i[g].y>=p&&(p=i[g].y),i[g].y<=d&&(d=i[g].y));var v=Math.max(h-f,p-d),m={xmid:(h+f)/2,ymid:(p+d)/2,length:v,massCenter:a,mass:c},y=new u.default(m),b=new l.default(y);for(g=0;g<c;g+=1)s&&n[g]<=1||e[g].in(y)&&b.insert(e[g]);for(g=0;g<c;g+=1)if(!(s&&n[g]<=1)){e[g].resetForce(),b.updateForce(e[g]),t[2*g]-=e[g].fx,t[2*g+1]-=e[g].fy;var x=[i[g].x-a[0],i[g].y-a[1]],_=Math.hypot(x[0],x[1]);_=_<1e-4?1e-4:_,x[0]=x[0]/_,x[1]=x[1]/_;var w=o*(n[g]+1);t[2*g]-=w*x[0],t[2*g+1]-=w*x[1]}return t},e.prototype.updatePos=function(t,e,n,r){for(var i=this,o=i.nodes,s=i.ks,u=i.tao,l=i.prune,c=i.ksmax,f=o.length,h=[],d=[],p=0,g=0,v=0;v<f;v+=1)if(!(l&&r[v]<=1)){var m=[t[2*v]-e[2*v],t[2*v+1]-e[2*v+1]],y=Math.hypot(m[0],m[1]),b=[t[2*v]+e[2*v],t[2*v+1]+e[2*v+1]],x=Math.hypot(b[0],b[1]);h[v]=y,d[v]=x/2,p+=(r[v]+1)*h[v],g+=(r[v]+1)*d[v]}var _=n;n=u*g/p,0!==_&&(n=n>1.5*_?1.5*_:n);for(v=0;v<f;v+=1)if(!(l&&r[v]<=1)&&(!(0,a.isNumber)(o[v].fx)||!(0,a.isNumber)(o[v].fy))){var w=s*n/(1+n*Math.sqrt(h[v])),S=Math.hypot(t[2*v],t[2*v+1]);S=S<1e-4?1e-4:S;var E=c/S;w=w>E?E:w;var T=w*t[2*v],k=w*t[2*v+1];o[v].x+=T,o[v].y+=k}return{nodes:o,sg:n}},e}(o.Base);e.ForceAtlas2Layout=c},51638:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=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(){var e=this.xmid-this.length/4,n=this.ymid+this.length/4,r=this.length/2,i={xmid:e,ymid:n,length:r},o=new t(i);return o},t.prototype.NE=function(){var e=this.xmid+this.length/4,n=this.ymid+this.length/4,r=this.length/2,i={xmid:e,ymid:n,length:r},o=new t(i);return o},t.prototype.SW=function(){var e=this.xmid-this.length/4,n=this.ymid-this.length/4,r=this.length/2,i={xmid:e,ymid:n,length:r},o=new t(i);return o},t.prototype.SE=function(){var e=this.xmid+this.length/4,n=this.ymid-this.length/4,r=this.length/2,i={xmid:e,ymid:n,length:r},o=new t(i);return o},t}();e["default"]=n},62732:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=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){if(null!=this.body&&t!==this.body)if(this._isExternal())t.addForce(this.body);else{var e=this.quad?this.quad.getLength():0,n=this.body.distanceTo(t);e/n<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"]=n},80374:function(t,e,n){"use strict";var r=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])},t(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)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.FruchtermanLayout=void 0;var i=n(62329),o=n(49784),a=800,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 r(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,i=r.nodes;if(void 0!==r.timeInterval&&"undefined"!==typeof window&&window.clearInterval(r.timeInterval),i&&0!==i.length){r.width||"undefined"===typeof window||(r.width=window.innerWidth),r.height||"undefined"===typeof window||(r.height=window.innerHeight),r.center||(r.center=[r.width/2,r.height/2]);var a=r.center;if(1===i.length)return i[0].x=a[0],i[0].y=a[1],void(null===(e=r.onLayoutEnd)||void 0===e||e.call(r));var s={},u={};return i.forEach((function(t,e){(0,o.isNumber)(t.x)||(t.x=Math.random()*n.width),(0,o.isNumber)(t.y)||(t.y=Math.random()*n.height),s[t.id]=t,u[t.id]=e})),r.nodeMap=s,r.nodeIdxMap=u,r.run()}null===(t=r.onLayoutEnd)||void 0===t||t.call(r)},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,u={};if(a&&n.forEach((function(t){void 0===u[t.cluster]&&(u[t.cluster]={name:t.cluster,cx:0,cy:0,count:0})})),o||!s){for(var l=0;l<i;l++)e.runOneStep(u);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(u),c++,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,r=n.nodes;if(r){var i=n.edges,s=n.center,u=n.gravity,l=n.speed,c=n.clustering,f=n.height*n.width,h=Math.sqrt(f)/10,d=f/(r.length+1),p=Math.sqrt(d),g=[];if(r.forEach((function(t,e){g[e]={x:0,y:0}})),n.applyCalculate(r,i,g,p,d),c){for(var v in t)t[v].cx=0,t[v].cy=0,t[v].count=0;for(var v in r.forEach((function(e){var n=t[e.cluster];(0,o.isNumber)(e.x)&&(n.cx+=e.x),(0,o.isNumber)(e.y)&&(n.cy+=e.y),n.count++})),t)t[v].cx/=t[v].count,t[v].cy/=t[v].count;var m=n.clusterGravity||u;r.forEach((function(e,n){if((0,o.isNumber)(e.x)&&(0,o.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)),a=p*m;g[n].x-=a*(e.x-r.cx)/i,g[n].y-=a*(e.y-r.cy)/i}}))}r.forEach((function(t,e){if((0,o.isNumber)(t.x)&&(0,o.isNumber)(t.y)){var n=.01*p*u;g[e].x-=n*(t.x-s[0]),g[e].y-=n*(t.y-s[1])}})),r.forEach((function(t,e){if((0,o.isNumber)(t.fx)&&(0,o.isNumber)(t.fy))return t.x=t.fx,void(t.y=t.fy);if((0,o.isNumber)(t.x)&&(0,o.isNumber)(t.y)){var n=Math.sqrt(g[e].x*g[e].x+g[e].y*g[e].y);if(n>0){var r=Math.min(h*(l/a),n);t.x+=g[e].x/n*r,t.y+=g[e].y/n*r}}})),null===(e=n.tick)||void 0===e||e.call(n)}},e.prototype.applyCalculate=function(t,e,n,r,i){var o=this;o.calRepulsive(t,n,i),e&&o.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,a){if(i!==a&&(0,o.isNumber)(r.x)&&(0,o.isNumber)(t.x)&&(0,o.isNumber)(r.y)&&(0,o.isNumber)(t.y)){var s=r.x-t.x,u=r.y-t.y,l=s*s+u*u;if(0===l){l=1;var c=i>a?1:-1;s=.01*c,u=.01*c}var f=n/l;e[i].x+=s*f,e[i].y+=u*f}}))}))},e.prototype.calAttractive=function(t,e,n){var r=this;t.forEach((function(t){var i=(0,o.getEdgeTerminal)(t,"source"),a=(0,o.getEdgeTerminal)(t,"target");if(i&&a){var s=r.nodeIdxMap[i],u=r.nodeIdxMap[a];if(s!==u){var l=r.nodeMap[i],c=r.nodeMap[a];if((0,o.isNumber)(c.x)&&(0,o.isNumber)(l.x)&&(0,o.isNumber)(c.y)&&(0,o.isNumber)(l.y)){var f=c.x-l.x,h=c.y-l.y,d=Math.sqrt(f*f+h*h),p=d*d/n;e[u].x-=f/d*p,e[u].y-=h/d*p,e[s].x+=f/d*p,e[s].y+=h/d*p}}}}))},e.prototype.stop=function(){this.timeInterval&&"undefined"!==typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"fruchterman"},e}(i.Base);e.FruchtermanLayout=s},13653:function(t,e,n){"use strict";var r=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])},t(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)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.GForceLayout=void 0;var i=n(62329),o=n(49784),a=function(t,e){var n;return n=t?(0,o.isNumber)(t)?function(e){return t}:t:function(t){return e||1},n},s=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 r(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 s={},u={};r.forEach((function(t,e){(0,o.isNumber)(t.x)||(t.x=Math.random()*n.width),(0,o.isNumber)(t.y)||(t.y=Math.random()*n.height),s[t.id]=t,u[t.id]=e})),n.nodeMap=s,n.nodeIdxMap=u,n.linkDistance=a(n.linkDistance,1),n.nodeStrength=a(n.nodeStrength,1),n.edgeStrength=a(n.edgeStrength,1);var l,c=n.nodeSize;if(n.preventOverlap){var f,h=n.nodeSpacing;f=(0,o.isNumber)(h)?function(){return h}:(0,o.isFunction)(h)?h:function(){return 0},l=c?(0,o.isArray)(c)?function(t){return Math.max(c[0],c[1])+f(t)}:function(t){return c+f(t)}:function(t){return t.size?(0,o.isArray)(t.size)?Math.max(t.size[0],t.size[1])+f(t):(0,o.isObject)(t.size)?Math.max(t.size.width,t.size.height)+f(t):t.size+f(t):10+f(t)}}n.nodeSize=l;var d=n.edges;n.degrees=(0,o.getDegree)(r.length,n.nodeIdxMap,d),n.getMass||(n.getMass=function(t){var e=t.mass||n.degrees[n.nodeIdxMap[t.id]].all||1;return e}),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 u=e.runOneStep(s);if(e.reachMoveThreshold(r,u,o))break}null===(t=e.onLayoutEnd)||void 0===t||t.call(e)}else{if("undefined"===typeof window)return;var l=0;this.timeInterval=window.setInterval((function(){var t,i;if(r){var a=e.runOneStep(l)||[];e.reachMoveThreshold(r,a,o)&&(null===(t=e.onLayoutEnd)||void 0===t||t.call(e),window.clearInterval(e.timeInterval)),l++,l>=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,r<n},e.prototype.runOneStep=function(t){var e,n=this,r=n.nodes,i=n.edges,o=[],a=[];if(r){r.forEach((function(t,e){o[2*e]=0,o[2*e+1]=0,a[2*e]=0,a[2*e+1]=0})),n.calRepulsive(o,r),i&&n.calAttractive(o,i),n.calGravity(o,r);var s=Math.max(.02,n.interval-.002*t);n.updateVelocity(o,a,s,r);var u=[];return r.forEach((function(t){u.push({x:t.x,y:t.y})})),n.updatePosition(a,s,r),null===(e=n.tick)||void 0===e||e.call(n),u}},e.prototype.calRepulsive=function(t,e){var n=this,r=n.getMass,i=n.factor,o=n.coulombDisScale,a=n.preventOverlap,s=n.collideStrength,u=void 0===s?1:s,l=n.nodeStrength,c=n.nodeSize;e.forEach((function(n,s){var f=r?r(n):1;e.forEach((function(e,h){if(!(s>=h)){var d=n.x-e.x,p=n.y-e.y;0===d&&0===p&&(d=.01*Math.random(),p=.01*Math.random());var g=d*d+p*p,v=Math.sqrt(g),m=(v+.1)*o,y=d/v,b=p/v,x=.5*(l(n)+l(e))*i/(m*m),_=r?r(e):1;if(t[2*s]+=y*x,t[2*s+1]+=b*x,t[2*h]-=y*x,t[2*h+1]-=b*x,a&&(c(n)+c(e))/2>v){var w=u*(l(n)+l(e))*.5/g;t[2*s]+=y*w/f,t[2*s+1]+=b*w/f,t[2*h]-=y*w/_,t[2*h+1]-=b*w/_}}}))}))},e.prototype.calAttractive=function(t,e){var n=this,r=n.nodeMap,i=n.nodeIdxMap,a=n.linkDistance,s=n.edgeStrength,u=n.nodeSize,l=n.getMass;e.forEach((function(e,n){var c=(0,o.getEdgeTerminal)(e,"source"),f=(0,o.getEdgeTerminal)(e,"target"),h=r[c],d=r[f],p=d.x-h.x,g=d.y-h.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=a(e,h,d)||1+(u(h)+u(d)||0)/2,x=b-v,_=x*s(e),w=i[c],S=i[f],E=l?l(h):1,T=l?l(d):1;t[2*w]-=m*_/E,t[2*w+1]-=y*_/E,t[2*S]+=m*_/T,t[2*S+1]+=y*_/T}))},e.prototype.calGravity=function(t,e){for(var n=this,r=n.center,i=n.gravity,a=n.degrees,s=e.length,u=0;u<s;u++){var l=e[u],c=l.x-r[0],f=l.y-r[1],h=i;if(n.getCenter){var d=n.getCenter(l,a[u].all);d&&(0,o.isNumber)(d[0])&&(0,o.isNumber)(d[1])&&(0,o.isNumber)(d[2])&&(c=l.x-d[0],f=l.y-d[1],h=d[2])}h&&(t[2*u]-=h*c,t[2*u+1]-=h*f)}},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,u=Math.sqrt(a*a+s*s);if(u>i.maxSpeed){var l=i.maxSpeed/u;a*=l,s*=l}e[2*r]=a,e[2*r+1]=s}))},e.prototype.updatePosition=function(t,e,n){n.forEach((function(n,r){if((0,o.isNumber)(n.fx)&&(0,o.isNumber)(n.fy))return n.x=n.fx,void(n.y=n.fy);var i=t[2*r]*e,a=t[2*r+1]*e;n.x+=i,n.y+=a}))},e.prototype.stop=function(){this.timeInterval&&"undefined"!==typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"gForce"},e}(i.Base);e.GForceLayout=s},87745:function(t,e,n){"use strict";var r=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])},t(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)}}(),i=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))},o=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(t){return function(e){return u([t,e])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(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=a.trys,!(i=i.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(u){s=[6,u],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0}),e.FruchtermanGPULayout=void 0;var a=n(62329),s=n(49784),u=n(1029),l=n(48835),c=n(8574),f=n(16470),h=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 r(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,gravity:10,speed:1,clustering:!1,clusterGravity:10}},e.prototype.execute=function(){return i(this,void 0,void 0,(function(){var t,e,n,r,i,a=this;return o(this,(function(o){switch(o.label){case 0:return t=this,e=t.nodes,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]),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,s.isNumber)(t.x)||(t.x=Math.random()*a.width),(0,s.isNumber)(t.y)||(t.y=Math.random()*a.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 o.sent(),[2]}}))}))},e.prototype.executeWithWorker=function(t,e){return i(this,void 0,void 0,(function(){var n,r,i,a,u,l=this;return o(this,(function(o){switch(o.label){case 0:return n=this,r=n.nodes,i=n.center,r&&0!==r.length?1===r.length?(r[0].x=i[0],r[0].y=i[1],[2]):(a={},u={},r.forEach((function(t,e){(0,s.isNumber)(t.x)||(t.x=Math.random()*l.width),(0,s.isNumber)(t.y)||(t.y=Math.random()*l.height),a[t.id]=t,u[t.id]=e})),n.nodeMap=a,n.nodeIdxMap=u,[4,n.run(t,e)]):[2];case 1:return o.sent(),[2]}}))}))},e.prototype.run=function(t,e){return i(this,void 0,void 0,(function(){var n,r,a,h,d,p,g,v,m,y,b,x,_,w,S,E,T,k,C,M,A,I,O,D,P,L,N=this;return o(this,(function(R){switch(R.label){case 0:for(n=this,r=n.nodes,a=n.edges,h=n.maxIteration,d=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,x=(0,l.attributesToTextureData)([n.clusterField],r),_=x.array,w=x.count,r.forEach((function(t,e){var n=0,r=0;(0,s.isNumber)(t.fx)&&(0,s.isNumber)(t.fy)&&(n=t.fx||.001,r=t.fy||.001),_[4*e+1]=n,_[4*e+2]=r})),S=r.length,E=(0,l.buildTextureData)(r,a),T=E.maxEdgePerVetex,k=E.array,C=n.workerEnabled,M=C?u.World.create({canvas:t,engineOptions:{supportCompute:!0}}):u.World.create({engineOptions:{supportCompute:!0}}),A=n.onLayoutEnd,I=[],O=0;O<w;O++)I.push(0,0,0,0);return D=M.createKernel(c.fruchtermanBundle).setDispatch([S,1,1]).setBinding({u_Data:k,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:d,u_AttributeArray:_,u_ClusterCenters:I,MAX_EDGE_PER_VERTEX:T,VERTEX_COUNT:S}),b&&(P=M.createKernel(c.clusterBundle).setDispatch([w,1,1]).setBinding({u_Data:k,u_NodeAttributes:_,u_ClusterCenters:I,VERTEX_COUNT:S,CLUSTER_COUNT:w})),L=function(){return i(N,void 0,void 0,(function(){var n,i;return o(this,(function(o){switch(o.label){case 0:n=0,o.label=1;case 1:return n<h?[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:f.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})),A&&A(),[2]}}))}))},[4,L()];case 1:return R.sent(),[2]}}))}))},e.prototype.getType=function(){return"fruchterman-gpu"},e}(a.Base);e.FruchtermanGPULayout=h},8574:function(t,e){"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}}'},85194:function(t,e,n){"use strict";var r=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])},t(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)}}(),i=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))},o=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(t){return function(e){return u([t,e])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(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=a.trys,!(i=i.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(u){s=[6,u],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0}),e.GForceGPULayout=void 0;var a=n(62329),s=n(49784),u=n(1029),l=n(48835),c=n(80628),f=n(49762),h=n(16470),d=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 r(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:2e3,gravity:10,clustering:!1,clusterGravity:10}},e.prototype.execute=function(){return i(this,void 0,void 0,(function(){var t,e,n,r,i;return o(this,(function(o){switch(o.label){case 0:return t=this,e=t.nodes,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]),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,s.isNumber)(e.x)||(e.x=Math.random()*t.width),(0,s.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,l.proccessToFunc)(t.nodeStrength,1),t.edgeStrength=(0,l.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,s.isNumber)(t.x)||(t.x=Math.random()*n.width),(0,s.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,l.proccessToFunc)(n.nodeStrength,1),n.edgeStrength=(0,l.proccessToFunc)(n.edgeStrength,1),n.run(t,e)}},e.prototype.run=function(t,e){return i(this,void 0,void 0,(function(){var n,r,a,d,p,g,v,m,y,b,x,_,w,S,E,T,k,C,M,A,I,O,D,P,L,N,R,j=this;return o(this,(function(F){switch(F.label){case 0:for(n=this,r=n.nodes,a=n.edges,d=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,l.proccessToFunc)(n.linkDistance),n.edgeStrength=(0,l.proccessToFunc)(n.edgeStrength),g=(0,l.buildTextureDataWithTwoEdgeAttr)(r,a,n.linkDistance,n.edgeStrength),v=g.maxEdgePerVetex,m=g.array,n.degrees=(0,c.getDegree)(r.length,n.nodeIdxMap,a).map((function(t){return t.all})),y=[],b=[],x=[],_=[],w=[],S=[],E=[],n.getMass||(n.getMass=function(t){return n.degrees[n.nodeIdxMap[t.id]]||1}),T=n.gravity,k=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=[k[0],k[1],T];if(n.getCenter){var i=n.getCenter(t,n.degrees[e]);i&&(0,s.isNumber)(i[0])&&(0,s.isNumber)(i[1])&&(0,s.isNumber)(i[2])&&(r=i)}x.push(r[0]),_.push(r[1]),w.push(r[2]),(0,s.isNumber)(t.fx)&&(0,s.isNumber)(t.fy)?(S.push(t.fx||.001),E.push(t.fy||.001)):(S.push(0),E.push(0))})),C=(0,l.arrayToTextureData)([y,n.degrees,b,S]),M=(0,l.arrayToTextureData)([x,_,w,E]),A=n.workerEnabled,I=A?u.World.create({canvas:t,engineOptions:{supportCompute:!0}}):u.World.create({engineOptions:{supportCompute:!0}}),O=n.onLayoutEnd,D=[],m.forEach((function(t){D.push(t)})),P=0;P<4;P++)D.push(0);return L=I.createKernel(f.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:C,u_NodeAttributeArray2:M,MAX_EDGE_PER_VERTEX:v,VERTEX_COUNT:p,u_AveMovement:D,u_interval:n.interval}),N=I.createKernel(f.aveMovementBundle).setDispatch([1,1,1]).setBinding({u_Data:m,VERTEX_COUNT:p,u_AveMovement:[0,0,0,0]}),R=function(){return i(j,void 0,void 0,(function(){var i,a,s;return o(this,(function(o){switch(o.label){case 0:i=0,o.label=1;case 1:return i<d?[4,L.execute()]:[3,5];case 2:return o.sent(),N.setBinding({u_Data:L}),[4,N.execute()];case 3:o.sent(),a=Math.max(.02,n.interval-.002*i),L.setBinding({u_interval:a,u_AveMovement:N}),o.label=4;case 4:return i++,[3,1];case 5:return[4,L.getOutput()];case 6:return s=o.sent(),t?e.postMessage({type:h.LAYOUT_MESSAGE.GPUEND,vertexEdgeData:s}):r.forEach((function(t,e){var n=s[4*e],r=s[4*e+1];t.x=n,t.y=r})),O&&O(),[2]}}))}))},[4,R()];case 1:return F.sent(),[2]}}))}))},e.prototype.getType=function(){return"gForce-gpu"},e}(a.Base);e.GForceGPULayout=d},49762:function(t,e){"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}}'},94414:function(t,e,n){"use strict";var r=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])},t(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)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.GridLayout=void 0;var i=n(49784),o=n(62329),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 r(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,o=e.length;if(0===o)return t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n};if(1===o)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,u=t.height,l=t.condense,c=t.preventOverlapPadding,f=t.preventOverlap,h=t.nodeSpacing,d=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,i.isString)(a)||void 0===p[0][a])&&(a="degree",(0,i.isNaN)(e[0].degree))){var v=(0,i.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),u||"undefined"===typeof window||(u=window.innerHeight);var m=t.rows,y=null!=t.cols?t.cols:t.columns;if(t.cells=o,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){var b=t.small(),x=t.large();(b-1)*x>=t.cells?t.small(b-1):(x-1)*b>=t.cells&&t.large(x-1)}else while(t.cols*t.rows<t.cells){b=t.small(),x=t.large();(x+1)*b>=t.cells?t.large(x+1):t.small(b+1)}if(t.cellWidth=s/t.cols,t.cellHeight=u/t.rows,l&&(t.cellWidth=0,t.cellHeight=0),f||h){var _=(0,i.getFuncByUnknownType)(10,h),w=(0,i.getFuncByUnknownType)(30,d,!1);p.forEach((function(e){e.x&&e.y||(e.x=0,e.y=0);var n,r,o=w(e)||30;(0,i.isArray)(o)?(n=o[0],r=o[1]):(n=o,r=o);var a=void 0!==_?_(e):c,s=n+a,u=r+a;t.cellWidth=Math.max(t.cellWidth,s),t.cellHeight=Math.max(t.cellHeight,u)}))}t.cellUsed={},t.row=0,t.col=0,t.id2manPos={};for(var S=0;S<p.length;S++){var E=p[S],T=void 0;if(t.position&&(T=t.position(E)),T&&(void 0!==T.row||void 0!==T.col)){var k={row:T.row,col:T.col};if(void 0===k.col){k.col=0;while(t.used(k.row,k.col))k.col++}else if(void 0===k.row){k.row=0;while(t.used(k.row,k.col))k.row++}t.id2manPos[E.id]=k,t.use(k.row,k.col)}t.getPos(E)}return t.onLayoutEnd&&t.onLayoutEnd(),{edges:n,nodes:p}},e.prototype.small=function(t){var e,n=this,r=n.rows||5,i=n.cols||5;if(null==t)e=Math.min(r,i);else{var o=Math.min(r,i);o===n.rows?n.rows=t:n.cols=t}return e},e.prototype.large=function(t){var e,n=this,r=n.rows||5,i=n.cols||5;if(null==t)e=Math.max(r,i);else{var o=Math.max(r,i);o===n.rows?n.rows=t:n.cols=t}return e},e.prototype.used=function(t,e){var n=this;return n.cellUsed["c-".concat(t,"-").concat(e)]||!1},e.prototype.use=function(t,e){var n=this;n.cellUsed["c-".concat(t,"-").concat(e)]=!0},e.prototype.moveToNextCell=function(){var t=this,e=t.cols||5;t.col++,t.col>=e&&(t.col=0,t.row++)},e.prototype.getPos=function(t){var e,n,r=this,i=r.begin,o=r.cellWidth,a=r.cellHeight,s=r.id2manPos[t.id];if(s)e=s.col*o+o/2+i[0],n=s.row*a+a/2+i[1];else{while(r.used(r.row,r.col))r.moveToNextCell();e=r.col*o+o/2+i[0],n=r.row*a+a/2+i[1],r.use(r.row,r.col),r.moveToNextCell()}t.x=e,t.y=n},e.prototype.getType=function(){return"grid"},e}(o.Base);e.GridLayout=a},2584: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(94414);Object.defineProperty(e,"GridLayout",{enumerable:!0,get:function(){return o.GridLayout}});var a=n(39711);Object.defineProperty(e,"RandomLayout",{enumerable:!0,get:function(){return a.RandomLayout}});var s=n(13653);Object.defineProperty(e,"GForceLayout",{enumerable:!0,get:function(){return s.GForceLayout}});var u=n(6740);Object.defineProperty(e,"Force2Layout",{enumerable:!0,get:function(){return u.Force2Layout}});var l=n(85717);Object.defineProperty(e,"ForceLayout",{enumerable:!0,get:function(){return l.ForceLayout}});var c=n(64885);Object.defineProperty(e,"CircularLayout",{enumerable:!0,get:function(){return c.CircularLayout}});var f=n(20171);Object.defineProperty(e,"DagreLayout",{enumerable:!0,get:function(){return f.DagreLayout}});var h=n(77057);Object.defineProperty(e,"DagreCompoundLayout",{enumerable:!0,get:function(){return h.DagreCompoundLayout}});var d=n(47944);Object.defineProperty(e,"RadialLayout",{enumerable:!0,get:function(){return d.RadialLayout}});var p=n(43281);Object.defineProperty(e,"ConcentricLayout",{enumerable:!0,get:function(){return p.ConcentricLayout}});var g=n(52899);Object.defineProperty(e,"MDSLayout",{enumerable:!0,get:function(){return g.MDSLayout}});var v=n(80374);Object.defineProperty(e,"FruchtermanLayout",{enumerable:!0,get:function(){return v.FruchtermanLayout}});var m=n(87745);Object.defineProperty(e,"FruchtermanGPULayout",{enumerable:!0,get:function(){return m.FruchtermanGPULayout}});var y=n(85194);Object.defineProperty(e,"GForceGPULayout",{enumerable:!0,get:function(){return y.GForceGPULayout}});var b=n(66590);Object.defineProperty(e,"ComboForceLayout",{enumerable:!0,get:function(){return b.ComboForceLayout}});var x=n(63861);Object.defineProperty(e,"ComboCombinedLayout",{enumerable:!0,get:function(){return x.ComboCombinedLayout}});var _=n(48564);Object.defineProperty(e,"ForceAtlas2Layout",{enumerable:!0,get:function(){return _.ForceAtlas2Layout}});var w=n(90441);Object.defineProperty(e,"ERLayout",{enumerable:!0,get:function(){return w.ERLayout}});var S=n(42875);Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return S.Layout}}),Object.defineProperty(e,"Layouts",{enumerable:!0,get:function(){return S.Layouts}}),i(n(32867),e)},42875:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Layouts=e.Layout=void 0;var r=n(95326),i=n(94414),o=n(39711),a=n(6740),s=n(13653),u=n(85717),l=n(64885),c=n(20171),f=n(47944),h=n(43281),d=n(52899),p=n(80374),g=n(87745),v=n(85194),m=n(66590),y=n(63861),b=n(48564),x=n(90441),_=n(77057),w=n(49784),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:u.ForceLayout,fruchterman:p.FruchtermanLayout,forceAtlas2:b.ForceAtlas2Layout,gForce:s.GForceLayout,force2:a.Force2Layout,dagre:c.DagreLayout,dagreCompound:_.DagreCompoundLayout,circular:l.CircularLayout,radial:f.RadialLayout,concentric:h.ConcentricLayout,grid:i.GridLayout,mds:d.MDSLayout,comboForce:m.ComboForceLayout,comboCombined:y.ComboCombinedLayout,random:o.RandomLayout,"gForce-gpu":v.GForceGPULayout,"fruchterman-gpu":g.FruchtermanGPULayout,er:x.ERLayout}},52899:function(t,e,n){"use strict";var r=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])},t(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)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.MDSLayout=void 0;var i=n(65563),o=n(49784),a=n(62329),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 r(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],linkDistance:50}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges,r=void 0===n?[]:n,i=t.center;if(e&&0!==e.length){if(1===e.length)return e[0].x=i[0],e[0].y=i[1],void(t.onLayoutEnd&&t.onLayoutEnd());var a=t.linkDistance,s=(0,o.getAdjMatrix)({nodes:e,edges:r},!1),u=(0,o.floydWarshall)(s);t.handleInfinity(u);var l=(0,o.scaleMatrix)(u,a);t.scaledDistances=l;var c=t.runMDS();return t.positions=c,c.forEach((function(t,n){e[n].x=t[0]+i[0],e[n].y=t[1]+i[1]})),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:r}}t.onLayoutEnd&&t.onLayoutEnd()},e.prototype.runMDS=function(){var t=this,e=2,n=t.scaledDistances,r=i.Matrix.mul(i.Matrix.pow(n,2),-.5),o=r.mean("row"),a=r.mean("column"),s=r.mean();r.add(s).subRowVector(o).subColumnVector(a);var u=new i.SingularValueDecomposition(r),l=i.Matrix.sqrt(u.diagonalMatrix).diagonal();return u.leftSingularVectors.toJSON().map((function(t){return i.Matrix.mul([t],[l]).toJSON()[0].splice(0,e)}))},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}(a.Base);e.MDSLayout=s},47944: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(55974),e)},66082:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(65563),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,e=t.dimension,n=t.distances,i=t.linkDistance;try{var o=r.Matrix.mul(r.Matrix.pow(n,2),-.5),a=o.mean("row"),s=o.mean("column"),u=o.mean();o.add(u).subRowVector(a).subColumnVector(s);var l=new r.SingularValueDecomposition(o),c=r.Matrix.sqrt(l.diagonalMatrix).diagonal();return l.leftSingularVectors.toJSON().map((function(t){return r.Matrix.mul([t],[c]).toJSON()[0].splice(0,e)}))}catch(g){for(var f=[],h=0;h<n.length;h++){var d=Math.random()*i,p=Math.random()*i;f.push([d,p])}return f}},t}();e["default"]=i},55974:function(t,e,n){"use strict";var r=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])},t(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)}}(),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RadialLayout=void 0;var o=n(49784),a=n(62329),s=i(n(66082)),u=i(n(6290));function l(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}function c(t,e){var n=-1;return t.forEach((function(t,r){t.id===e&&(n=r)})),n}function f(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 r(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,a=null;if((0,o.isString)(t.focusNode)){for(var f=!1,h=0;h<e.length;h++)e[h].id===t.focusNode&&(a=e[h],t.focusNode=a,f=!0,h=e.length);f||(a=null)}else a=t.focusNode;a||(a=e[0],t.focusNode=a);var d=c(e,a.id);d<0&&(d=0),t.focusIndex=d;var p=(0,o.getAdjMatrix)({nodes:e,edges:n},!1),g=(0,o.floydWarshall)(p),v=t.maxToFocus(g,d);t.handleInfinity(g,d,v+1),t.distances=g;var m=g[d],y=t.width||500,b=t.height||500,x=y-r[0]>r[0]?r[0]:y-r[0],_=b-r[1]>r[1]?r[1]:b-r[1];0===x&&(x=y/2),0===_&&(_=b/2);var w=_>x?x:_,S=Math.max.apply(Math,m),E=[];m.forEach((function(e,n){t.unitRadius||(t.unitRadius=w/S),E[n]=e*t.unitRadius})),t.radii=E;var T=t.eIdealDisMatrix();t.eIdealDistances=T;var k=l(T);t.weights=k;var C=new s.default({linkDistance:i,distances:T}),M=C.layout();M.forEach((function(t){(0,o.isNaN)(t[0])&&(t[0]=Math.random()*i),(0,o.isNaN)(t[1])&&(t[1]=Math.random()*i)})),t.positions=M,M.forEach((function(t,n){e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]})),M.forEach((function(t){t[0]-=M[d][0],t[1]-=M[d][1]})),t.run();var A,I=t.preventOverlap,O=t.nodeSize,D=t.strictRadial;if(I){var P,L=t.nodeSpacing;P=(0,o.isNumber)(L)?function(){return L}:(0,o.isFunction)(L)?L:function(){return 0},A=O?(0,o.isArray)(O)?function(t){var e=O[0]>O[1]?O[0]:O[1];return e+P(t)}:function(t){return O+P(t)}:function(t){if(t.size){if((0,o.isArray)(t.size)){var e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return e+P(t)}if((0,o.isObject)(t.size)){e=t.size.width>t.size.height?t.size.width:t.size.height;return e+P(t)}return t.size+P(t)}return 10+P(t)};var N={nodes:e,nodeSizeFunc:A,adjMatrix:p,positions:M,radii:E,height:b,width:y,strictRadial:D,focusID:d,iterations:t.maxPreventOverlapIteration||200,k:M.length/4.5},R=new u.default(N);M=R.layout()}return M.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,e=t.maxIteration,n=t.positions||[],r=t.weights||[],i=t.eIdealDistances||[],o=t.radii||[],a=0;a<=e;a++){var s=a/e;t.oneIteration(s,n,o,i,r)}},e.prototype.oneIteration=function(t,e,n,r,i){var o=this,a=1-t,s=o.focusIndex;e.forEach((function(o,u){var l=f(o,[0,0]),c=0===l?0:1/l;if(u!==s){var h=0,d=0,p=0;e.forEach((function(t,e){if(u!==e){var n=f(o,t),a=0===n?0:1/n,s=r[e][u];p+=i[u][e],h+=i[u][e]*(t[0]+s*(o[0]-t[0])*a),d+=i[u][e]*(t[1]+s*(o[1]-t[1])*a)}}));var g=0===n[u]?0:1/n[u];p*=a,p+=t*g*g,h*=a,h+=t*g*o[0]*c,o[0]=h/p,d*=a,d+=t*g*o[1]*c,o[1]=d/p}}))},e.prototype.eIdealDisMatrix=function(){var t=this,e=t.nodes;if(!e)return[];var n=t.distances,r=t.linkDistance,i=t.radii||[],a=t.unitRadius||50,s=[];return n&&n.forEach((function(n,u){var l=[];n.forEach((function(n,s){if(u===s)l.push(0);else if(i[u]===i[s])if("data"===t.sortBy)l.push(n*(Math.abs(u-s)*t.sortStrength)/(i[u]/a));else if(t.sortBy){var c=e[u][t.sortBy]||0,f=e[s][t.sortBy]||0;(0,o.isString)(c)&&(c=c.charCodeAt(0)),(0,o.isString)(f)&&(f=f.charCodeAt(0)),l.push(n*(Math.abs(c-f)*t.sortStrength)/(i[u]/a))}else l.push(n*r/(i[u]/a));else{var h=(r+a)/2;l.push(n*h)}})),s.push(l)})),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}(a.Base);e.RadialLayout=h},6290:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=800,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,e=t.positions,n=[],r=t.iterations,i=t.width/10;t.maxDisplace=i,t.disp=n;for(var o=0;o<r;o++)e.forEach((function(t,e){n[e]={x:0,y:0}})),t.getRepulsion(),t.updatePositions();return e},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,u){if(s!==u&&o[s]===o[u]){var l=a[0]-e[0],c=a[1]-e[1],f=Math.sqrt(l*l+c*c);if(0===f){f=1;var h=s>u?1:-1;l=.01*h,c=.01*h}if(f<t.nodeSizeFunc(n[s])/2+t.nodeSizeFunc(n[u])/2){var d=i*i/f;r[s].x+=l/f*d,r[s].y+=c/f*d}}}))}))},t.prototype.updatePositions=function(){var t=this,e=t.positions,r=t.disp,i=t.speed,o=t.strictRadial,a=t.focusID,s=t.maxDisplace||t.width/10;o&&r.forEach((function(t,n){var r=e[n][0]-e[a][0],i=e[n][1]-e[a][1],o=Math.sqrt(r*r+i*i),s=i/o,u=-r/o,l=Math.sqrt(t.x*t.x+t.y*t.y),c=Math.acos((s*t.x+u*t.y)/l);c>Math.PI/2&&(c-=Math.PI/2,s*=-1,u*=-1);var f=Math.cos(c)*l;t.x=s*f,t.y=u*f}));var u=t.radii;e.forEach((function(t,l){if(l!==a){var c=Math.sqrt(r[l].x*r[l].x+r[l].y*r[l].y);if(c>0&&l!==a){var f=Math.min(s*(i/n),c);if(t[0]+=r[l].x/c*f,t[1]+=r[l].y/c*f,o){var h=t[0]-e[a][0],d=t[1]-e[a][1],p=Math.sqrt(h*h+d*d);h=h/p*u[l],d=d/p*u[l],t[0]=e[a][0]+h,t[1]=e[a][1]+d}}}}))},t}();e["default"]=r},39711:function(t,e,n){"use strict";var r=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])},t(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)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.RandomLayout=void 0;var i=n(62329),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 r(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=.9,r=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=(Math.random()-.5)*n*t.width+r[0],e.y=(Math.random()-.5)*n*t.height+r[1]})),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:this.edges}},e.prototype.getType=function(){return"random"},e}(i.Base);e.RandomLayout=o},32867:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},95326:function(t,e,n){"use strict";var r=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])},t(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)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.getLayoutByName=e.unRegisterLayout=e.registerLayout=void 0;var i=n(62329),o=n(49784),a=new Map,s=function(t,e){if(a.get(t)&&console.warn("The layout with the name ".concat(t," exists already, it will be overridden")),(0,o.isObject)(e)){var n=function(t){function n(n){var r,i=this;i=t.call(this)||this;var o=i,a={},s=Object.assign({},o.getDefaultCfg(),(null===(r=e.getDefaultCfg)||void 0===r?void 0:r.call(e))||{});return Object.assign(a,s,e,n),Object.keys(a).forEach((function(t){var e=a[t];o[t]=e})),i}return r(n,t),n}(i.Base);a.set(t,n)}else a.set(t,e);return a.get(t)};e.registerLayout=s;var u=function(t){a.has(t)&&a.delete(t)};e.unRegisterLayout=u;var l=function(t){return a.has(t)?a.get(t):null};e.getLayoutByName=l},85087:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isArray=void 0,e.isArray=Array.isArray},78732:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFuncByUnknownType=e.getFunc=e.isFunction=void 0;var r=n(49784),i=n(30627),o=function(t){return"function"===typeof t};e.isFunction=o;var a=function(t,e,n){var r;return r=n||((0,i.isNumber)(t)?function(){return t}:function(){return e}),r};e.getFunc=a;var s=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}};e.getFuncByUnknownType=s},48835: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(49784),i=n(80628),o=function(t,e){var n;return n=t?(0,r.isNumber)(t)?function(){return t}:t:function(){return e||1},n};e.proccessToFunc=o;var a=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 u=e[a],l=(0,i.getEdgeTerminal)(u,"source"),c=(0,i.getEdgeTerminal)(u,"target");isNaN(o[l])||isNaN(o[c])||(r[o[l]].push(o[c]),r[o[c]].push(o[l]))}var f=0;for(a=0;a<t.length;a++){var h=n.length,d=r[a],p=d.length;n[4*a+2]=h,n[4*a+3]=p,f=Math.max(f,p);for(var g=0;g<p;++g){var v=d[g];n.push(+v)}}while(n.length%4!==0)n.push(0);return{maxEdgePerVetex:f,array:new Float32Array(n)}};e.buildTextureData=a;var s=function(t,e,n,r){var o=[],a=[],s={},u=0;for(u=0;u<t.length;u++){var l=t[u];s[l.id]=u,o.push(l.x),o.push(l.y),o.push(0),o.push(0),a.push([])}for(u=0;u<e.length;u++){var c=e[u],f=(0,i.getEdgeTerminal)(c,"source"),h=(0,i.getEdgeTerminal)(c,"target");a[s[f]].push(s[h]),a[s[f]].push(n(c)),a[s[f]].push(r(c)),a[s[f]].push(0),a[s[h]].push(s[f]),a[s[h]].push(n(c)),a[s[h]].push(r(c)),a[s[h]].push(0)}var d=0;for(u=0;u<t.length;u++){var p=o.length,g=a[u],v=g.length;o[4*u+2]=p+1048576*v/4,o[4*u+3]=0,d=Math.max(d,v/4);for(var m=0;m<v;++m){var y=g[m];o.push(+y)}}while(o.length%4!==0)o.push(0);return{maxEdgePerVetex:d,array:new Float32Array(o)}};e.buildTextureDataWithTwoEdgeAttr=s;var u=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)while(n.length%4!==0)n.push(0)}))})),{array:new Float32Array(n),count:Object.keys(i).length}};e.attributesToTextureData=u;var l=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)while(e.length%4!==0)e.push(0)}))},o=0;o<r;o++)i(o);return new Float32Array(e)};e.arrayToTextureData=l},49784: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(8055),e),i(n(85087),e),i(n(30627),e),i(n(80628),e),i(n(98130),e),i(n(78732),e)},80628: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(85087),i=n(30627),o=n(98130),a=function(t,e){var n=t[e];return(0,o.isObject)(n)?n.cell:n};e.getEdgeTerminal=a;var s=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.getDegree=s;var u=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.getDegreeMap=u;var l=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.floydWarshall=l;var c=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;var n=[];o.push(n)})),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],u=a[i];void 0!==s&&void 0!==u&&(o[s][u]=1,n||(o[u][s]=1))})),o};e.getAdjMatrix=c;var f=function(t,e){var n=[];return t.forEach((function(t){var r=[];t.forEach((function(t){r.push(t*e)})),n.push(r)})),n};e.scaleMatrix=f;var h=function(t,e){if(t&&t.children)for(var n=t.children.length-1;n>=0;n--)if(!h(t.children[n],e))return;return!!e(t)},d=function(t,e){"function"===typeof e&&h(t,e)};e.traverseTreeUp=d;var p=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 u=[s[0]/2,s[1]/2],l=t.x-u[0],c=t.x+u[0],f=t.y-u[1],h=t.y+u[1];e>l&&(e=l),n>f&&(n=f),o<c&&(o=c),a<h&&(a=h)})),{minX:e,minY:n,maxX:o,maxY:a}};e.getLayoutBBox=p;var g=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}};e.getAvgNodePosition=g;var v=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)||{}},m=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})));break;default:break}var i=new Set(r);return Array.from(i)},y=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},b=function(t,e,n,r,i,o){var a=i[e.id],s=a.in,u=a.out,l=e,c=[];0===s?(l=v("source",e,n),c=m("both",l,n).map((function(t){return o[t]}))):0===u&&(l=v("target",e,n),c=m("both",l,n).map((function(t){return o[t]}))),c=c.filter((function(t){return i[t.id]&&(0===i[t.id].in||0===i[t.id].out)}));var f=y(t,r,e,c,i);return{coreNode:l,relativeLeafNodes:c,sameTypeLeafNodes:f}};e.getCoreNodeAndRelativeLeafNodes=b},30627:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toNumber=e.isNaN=e.isNumber=void 0;var n=function(t){return"number"===typeof t};e.isNumber=n;var r=function(t){return Number.isNaN(Number(t))};e.isNaN=r;var i=function(t){var n=parseFloat(t);return(0,e.isNaN)(n)?t:n};e.toNumber=i},98130:function(t,e){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.clone=e.isObject=void 0;var r=function(t){return null!==t&&"object"===typeof t};e.isObject=r;var i=function(t){if(null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){var r=[];return t.forEach((function(t){r.push(t)})),r.map((function(t){return(0,e.clone)(t)}))}if("object"===typeof t&&Object.keys(t).length){var i=n({},t);return Object.keys(i).forEach((function(t){i[t]=(0,e.clone)(i[t])})),i}return t};e.clone=i},8055:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.camelize=e.isString=void 0;var n=function(t){return"string"===typeof t};e.isString=n;var r=function(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}},i=/-(\w)/g;e.camelize=r((function(t){return t.replace(i,(function(t,e){return e?e.toUpperCase():""}))}))},95681:function(t,e,n){"use strict";function r(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e}function i(t){return"#"+r(t[0])+r(t[1])+r(t[2])}n.d(e,{q:function(){return i}})},45299:function(t,e,n){"use strict";if(n.d(e,{F:function(){return u}}),/^(539|826)$/.test(n.j))var r=n(51030);if(/^(539|826)$/.test(n.j))var i=n(95681);if(/^(539|826)$/.test(n.j))var o=n(82028);function a(t,e,n,r){return t[r]+(e[r]-t[r])*n}function s(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,o=Math.floor(r*n),s=r*n-o,u=t[o],l=o===r?u:t[o+1];return(0,i.q)([a(u,l,s,0),a(u,l,s,1),a(u,l,s,2)])}function u(t){var e="string"===typeof t?t.split("-"):t,n=e.map((function(t){return(0,r.C)(-1===t.indexOf("#")?(0,o.x)(t):t)}));return function(t){return s(n,t)}}},78517:function(t,e,n){"use strict";if(n.d(e,{CI:function(){return r.C},FL:function(){return i.F},ZQ:function(){return a.Z},xr:function(){return o.x}}),/^(539|826)$/.test(n.j))var r=n(51030);if(/^(539|826)$/.test(n.j))var i=n(45299);if(/^(539|826)$/.test(n.j))var o=n(82028);if(/^(539|826)$/.test(n.j))var a=n(18347)},51030: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)]}n.d(e,{C:function(){return r}})},18347:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,i=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function a(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)}function s(t){if(a(t)){var e,n=void 0;if("l"===t[0]){var s=r.exec(t),u=+s[1]+90;n=s[2],e="linear-gradient("+u+"deg, "}else if("r"===t[0]){e="radial-gradient(";s=i.exec(t);n=s[4]}var l=n.match(o);return l.forEach((function(t,n){var r=t.split(":");e+=r[1]+" "+100*Number(r[0])+"%",n!==l.length-1&&(e+=", ")})),e+=")",e}return t}},82028:function(t,e,n){"use strict";n.d(e,{x:function(){return l}});var r,i=n(40736),o=n(95681),a=/rgba?\(([\s.,0-9]+)\)/;function s(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t}function u(t){if("#"===t[0]&&7===t.length)return t;r||(r=s()),r.style.color=t;var e=document.defaultView.getComputedStyle(r,"").getPropertyValue("color"),n=a.exec(e),i=n[1].split(/\s*,\s*/).map((function(t){return Number(t)}));return e=(0,o.q)(i),e}var l=(0,i.Z)(u,(function(t){return t}),256)},34245:function(t,e,n){"use strict";function r(t){var e=document.createElement("div");e.innerHTML=t;var n=e.childNodes[0];return n&&e.contains(n)&&e.removeChild(n),n}n.d(e,{L:function(){return r}})},73755:function(t,e,n){"use strict";if(n.d(e,{L:function(){return r.L},y:function(){return i.y}}),/^(539|826)$/.test(n.j))var r=n(34245);if(/^(539|826)$/.test(n.j))var i=n(49618)},49618:function(t,e,n){"use strict";function r(t,e){if(t)return Object.keys(e).forEach((function(n){t.style[n]=e[n]})),t}n.d(e,{y:function(){return r}})},36609:function(t,e,n){"use strict";if(n.r(e),n.d(e,{Cache:function(){return a.Ct},angleTo:function(){return i.Dg},arcToCubic:function(){return o.Wz},assign:function(){return a.f0},augment:function(){return a.r3},clamp:function(){return a.uZ},clearAnimationFrame:function(){return a.VS},clone:function(){return a.d9},clonePath:function(){return o.U5},contains:function(){return a.FX},createDOM:function(){return u.L},debounce:function(){return a.Ds},deepMix:function(){return a.b$},difference:function(){return a.e5},direction:function(){return i.o7},distanceSquareRoot:function(){return o.yH},each:function(){return a.S6},endsWith:function(){return a.pn},equalizeSegments:function(){return o.xt},every:function(){return a.yW},extend:function(){return a.l7},filter:function(){return a.hX},find:function(){return a.sE},findIndex:function(){return a.cx},firstValue:function(){return a.Wx},fixedBase:function(){return a.ri},flatten:function(){return a.xH},flattenDeep:function(){return a.Ar},forIn:function(){return a.U5},get:function(){return a.U2},getDrawDirection:function(){return o.bx},getPathArea:function(){return o.Y8},getPathBBox:function(){return o.S5},getPathBBoxTotalLength:function(){return o.Kw},getPointAtLength:function(){return o.rB},getRange:function(){return a.rx},getRotatedCurve:function(){return o.gs},getTotalLength:function(){return o.DD},getType:function(){return a.oL},getWrapBehavior:function(){return a.Ik},gradient:function(){return r.FL},group:function(){return a.ru},groupBy:function(){return a.vM},groupToMap:function(){return a.Ms},has:function(){return a.e$},hasKey:function(){return a.wH},hasValue:function(){return a.Uh},head:function(){return a.YM},identity:function(){return a.yR},includes:function(){return a.q9},indexOf:function(){return a.cq},isArguments:function(){return a.Om},isArray:function(){return a.kJ},isArrayLike:function(){return a.zG},isBoolean:function(){return a.jn},isDate:function(){return a.J_},isDecimal:function(){return a.FA},isElement:function(){return a.kK},isEmpty:function(){return a.xb},isEqual:function(){return a.Xy},isEqualWith:function(){return a.A7},isError:function(){return a.VZ},isEven:function(){return a.Gf},isFinite:function(){return a.xV},isFunction:function(){return a.mf},isInteger:function(){return a.U},isMatch:function(){return a.BD},isNegative:function(){return a.nM},isNil:function(){return a.UM},isNull:function(){return a.Ft},isNumber:function(){return a.hj},isNumberEqual:function(){return a.vQ},isObject:function(){return a.Kn},isObjectLike:function(){return a.yD},isOdd:function(){return a.rA},isPlainObject:function(){return a.PO},isPointInPolygon:function(){return s.c},isPointInStroke:function(){return o.Dz},isPolygonsIntersect:function(){return s.W},isPositive:function(){return a.xP},isPrototype:function(){return a.Lk},isRegExp:function(){return a.Kj},isString:function(){return a.HD},isType:function(){return a.P9},isUndefined:function(){return a.o8},keys:function(){return a.XP},last:function(){return a.Z$},lowerCase:function(){return a.vl},lowerFirst:function(){return a.ht},map:function(){return a.UI},mapValues:function(){return a.Q8},max:function(){return a.Fp},maxBy:function(){return a.UT},memoize:function(){return a.HP},min:function(){return a.VV},minBy:function(){return a.F},mix:function(){return a.CD},mod:function(){return a.wQ},modifyCSS:function(){return u.y},noop:function(){return a.ZT},normalizePath:function(){return o.AH},number2color:function(){return a.NO},omit:function(){return a.CE},parseRadius:function(){return a.Fy},path2Absolute:function(){return o.wb},path2Curve:function(){return o.YM},path2String:function(){return o.Zt},pick:function(){return a.ei},pull:function(){return a.X4},pullAt:function(){return a.fx},reduce:function(){return a.u4},remove:function(){return a.Od},requestAnimationFrame:function(){return a.U7},reverseCurve:function(){return o.GG},rgb2arr:function(){return r.CI},set:function(){return a.t8},size:function(){return a.dp},some:function(){return a.G},sortBy:function(){return a.MR},startsWith:function(){return a.Ny},substitute:function(){return a.ng},throttle:function(){return a.P2},toArray:function(){return a.qo},toCSSGradient:function(){return r.ZQ},toDegree:function(){return a.Dc},toInteger:function(){return a.Z3},toRGB:function(){return r.xr},toRadian:function(){return a.c$},toString:function(){return a.BB},transform:function(){return i.vs},union:function(){return a.G0},uniq:function(){return a.jj},uniqueId:function(){return a.EL},upperCase:function(){return a.Lw},upperFirst:function(){return a.jC},values:function(){return a.VO},valuesOfKey:function(){return a.I},vertical:function(){return i.KR},wrapBehavior:function(){return a.Ko}}),/^(539|826)$/.test(n.j))var r=n(78517);if(/^(539|826)$/.test(n.j))var i=n(42205);if(/^(539|826)$/.test(n.j))var o=n(95588);if(/^(539|826)$/.test(n.j))var a=n(65518);if(/^(539|826)$/.test(n.j))var s=n(18229);if(/^(539|826)$/.test(n.j))var u=n(73755)},29579:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(12028);if(/^(539|826)$/.test(n.j))var i=n(38027);var o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],o=1;o<t.length;o++){var a=t[o];(0,i.Z)(a)&&(a=a.prototype),(0,r.Z)(n.prototype,a)}};e.Z=/^(539|826)$/.test(n.j)?o:null},7491:function(t,e,n){"use strict";var r=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}();e.Z=/^(539|826)$/.test(n.j)?r:null},78132:function(t,e,n){"use strict";var r=function(t,e,n){return t<e?e:t>n?n:t};e.Z=/^(539|826)$/.test(n.j)?r:null},72847:function(t,e,n){"use strict";function r(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}n.d(e,{Z:function(){return r}})},23783:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);var i=function(t){if("object"!==typeof t||null===t)return t;var e;if((0,r.Z)(t)){e=[];for(var n=0,o=t.length;n<o;n++)"object"===typeof t[n]&&null!=t[n]?e[n]=i(t[n]):e[n]=t[n]}else for(var a in e={},t)"object"===typeof t[a]&&null!=t[a]?e[a]=i(t[a]):e[a]=t[a];return e};e.Z=/^(539|826)$/.test(n.j)?i:null},10370:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(56953);var i=function(t,e){return!!(0,r.Z)(t)&&t.indexOf(e)>-1};e.Z=/^(539|826)$/.test(n.j)?i:null},82981:function(t,e,n){"use strict";function r(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}e.Z=/^(539|826)$/.test(n.j)?r:null},50323:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);if(/^(539|826)$/.test(n.j))var i=n(1252);var o=5;function a(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 s(t,e,n,u){for(var l in n=n||0,u=u||o,e)if(a(e,l)){var c=e[l];null!==c&&(0,i.Z)(c)?((0,i.Z)(t[l])||(t[l]={}),n<u?s(t[l],c,n+1,u):t[l]=e[l]):(0,r.Z)(c)?(t[l]=[],t[l]=t[l].concat(c)):void 0!==c&&(t[l]=c)}}var u=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)s(t,e[r]);return t};e.Z=/^(539|826)$/.test(n.j)?u:null},24183:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(69546);if(/^(539|826)$/.test(n.j))var i=n(10370);var o=function(t,e){return void 0===e&&(e=[]),(0,r.Z)(t,(function(t){return!(0,i.Z)(e,t)}))};e.Z=/^(539|826)$/.test(n.j)?o:null},15889:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);if(/^(539|826)$/.test(n.j))var i=n(97653);function o(t,e){var n;if(t)if((0,r.Z)(t)){for(var o=0,a=t.length;o<a;o++)if(n=e(t[o],o),!1===n)break}else if((0,i.Z)(t))for(var s in t)if(t.hasOwnProperty(s)&&(n=e(t[s],s),!1===n))break}e.Z=/^(539|826)$/.test(n.j)?o:null},67290:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);if(/^(539|826)$/.test(n.j))var i=n(52940);function o(t,e){return!(!(0,r.Z)(t)&&!(0,i.Z)(t))&&t[t.length-1]===e}e.Z=/^(539|826)$/.test(n.j)?o:null},64798:function(t,e,n){"use strict";var r=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0};e.Z=/^(539|826)$/.test(n.j)?r:null},76234:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(12028);if(/^(539|826)$/.test(n.j))var i=n(38027);var o=function(t,e,n,o){(0,i.Z)(e)||(n=e,e=t,t=function(){});var a=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},s=a(e.prototype,t);return t.prototype=(0,r.Z)(s,t.prototype),t.superclass=a(e.prototype,e),(0,r.Z)(s,n),(0,r.Z)(t,o),t};e.Z=/^(539|826)$/.test(n.j)?o:null},69546:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(56953);var i=function(t,e){if(!(0,r.Z)(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];e(o,i)&&n.push(o)}return n};e.Z=/^(539|826)$/.test(n.j)?i:null},73738:function(t,e,n){"use strict";function r(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}e.Z=/^(539|826)$/.test(n.j)?r:null},63322:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(38027);if(/^(539|826)$/.test(n.j))var i=n(93116);if(/^(539|826)$/.test(n.j))var o=n(59145);if(/^(539|826)$/.test(n.j))var a=n(1252);function s(t,e){if(!(0,o.Z)(t))return null;var n;if((0,r.Z)(e)&&(n=e),(0,a.Z)(e)&&(n=function(t){return(0,i.Z)(t,e)}),n)for(var s=0;s<t.length;s+=1)if(n(t[s]))return t[s];return null}e.Z=/^(539|826)$/.test(n.j)?s:null},3073:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(56385);if(/^(539|826)$/.test(n.j))var i=n(59145);var o=function(t,e){for(var n=null,o=0;o<t.length;o++){var a=t[o],s=a[e];if(!(0,r.Z)(s)){n=(0,i.Z)(s)?s[0]:s;break}}return n};e.Z=/^(539|826)$/.test(n.j)?o:null},7112:function(t,e,n){"use strict";var r=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))};e.Z=/^(539|826)$/.test(n.j)?r:null},17676:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);var i=function(t,e){if(void 0===e&&(e=[]),(0,r.Z)(t))for(var n=0;n<t.length;n+=1)i(t[n],e);else e.push(t);return e};e.Z=/^(539|826)$/.test(n.j)?i:null},42699:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);var i=function(t){if(!(0,r.Z)(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e};e.Z=/^(539|826)$/.test(n.j)?i:null},52569:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(15889);e.Z=/^(539|826)$/.test(n.j)?r.Z:null},91480:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);if(/^(539|826)$/.test(n.j))var i=n(31366);if(/^(539|826)$/.test(n.j))var o=n(35866);var a=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if((0,r.Z)(t[0])){for(var n=[],a=0;a<t.length;a++)n=n.concat(t[a]);e=n}var s=(0,i.Z)(e),u=(0,o.Z)(e);return{min:u,max:s}};e.Z=/^(539|826)$/.test(n.j)?a:null},33710:function(t,e,n){"use strict";var r={}.toString,i=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"")};e.Z=/^(539|826)$/.test(n.j)?i:null},73982:function(t,e,n){"use strict";function r(t,e){return t["_wrap_"+e]}e.Z=/^(539|826)$/.test(n.j)?r:null},39734:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(52940);e.Z=function(t,e,n){var i=0,o=(0,r.Z)(e)?e.split("."):e;while(t&&i<o.length)t=t[o[i++]];return void 0===t||i<o.length?n:t}},63059:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);if(/^(539|826)$/.test(n.j))var i=n(38027);var o=Object.prototype.hasOwnProperty;function a(t,e){if(!e||!(0,r.Z)(t))return{};for(var n,a={},s=(0,i.Z)(e)?e:function(t){return t[e]},u=0;u<t.length;u++){var l=t[u];n=s(l),o.call(a,n)?a[n].push(l):a[n]=[l]}return a}e.Z=/^(539|826)$/.test(n.j)?a:null},22693:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return a}}),/^(539|826)$/.test(n.j))var r=n(59145);if(/^(539|826)$/.test(n.j))var i=n(38027);if(/^(539|826)$/.test(n.j))var o=n(63059);function a(t,e){if(!e)return{0:t};if(!(0,i.Z)(e)){var n=(0,r.Z)(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(0,o.Z)(t,e)}},33383:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(22693);e.Z=function(t,e){if(!e)return[t];var n=(0,r.Z)(t,e),i=[];for(var o in n)i.push(n[o]);return i}},90270:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(48695);e.Z=/^(539|826)$/.test(n.j)?r.Z:null},47362:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(10370);if(/^(539|826)$/.test(n.j))var i=n(35558);e.Z=function(t,e){return(0,r.Z)((0,i.Z)(t),e)}},48695:function(t,e){"use strict";e.Z=function(t,e){return t.hasOwnProperty(e)}},62056:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(56953);function i(t){if((0,r.Z)(t))return t[0]}},6947:function(t,e){"use strict";e.Z=function(t){return t}},46351:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(56953);var i=function(t,e){if(!(0,r.Z)(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};e.Z=/^(539|826)$/.test(n.j)?i:null},65518:function(t,e,n){"use strict";if(n.d(e,{A7:function(){return Zt.Z},Ar:function(){return l.Z},BB:function(){return Kt.Z},BD:function(){return et.Z},CD:function(){return $t.Z},CE:function(){return Yt.Z},Ct:function(){return ne.Z},Dc:function(){return V.Z},Ds:function(){return Pt.Z},EL:function(){return Jt.Z},F:function(){return G.Z},FA:function(){return N.Z},FX:function(){return r.Z},Fp:function(){return U.Z},Ft:function(){return yt.Z},Fy:function(){return D.Z},G:function(){return T.Z},G0:function(){return v.Z},Gf:function(){return R.Z},HD:function(){return Tt.Z},HP:function(){return Lt.Z},I:function(){return y.Z},Ik:function(){return A.Z},J_:function(){return dt.Z},Kj:function(){return Et.Z},Kn:function(){return xt.Z},Ko:function(){return I.Z},Lk:function(){return St.Z},Lw:function(){return at.Z},MR:function(){return g.Z},Ms:function(){return M.Z},NO:function(){return O.Z},Ny:function(){return _.Z},Od:function(){return p.Z},Om:function(){return lt.Z},P2:function(){return Xt.Z},P9:function(){return kt.Z},PO:function(){return wt.Z},Q8:function(){return Ht.Z},S6:function(){return Rt.Z},U:function(){return j.Z},U2:function(){return Gt.Z},U5:function(){return q.Z},U7:function(){return At.Z},UI:function(){return Ut.Z},UM:function(){return mt.Z},UT:function(){return H.Z},Uh:function(){return Q.Z},VO:function(){return nt.Z},VS:function(){return It.Z},VV:function(){return $.Z},VZ:function(){return pt.Z},Wx:function(){return s.Z},X4:function(){return f.Z},XP:function(){return tt.Z},Xy:function(){return zt.Z},YM:function(){return b.Z},Z$:function(){return x.Z},Z3:function(){return Y.Z},ZT:function(){return Qt.Z},b$:function(){return Nt.Z},c$:function(){return X.Z},cq:function(){return Ft.Z},cx:function(){return a.Z},d9:function(){return Dt.Z},dp:function(){return ee.Z},e$:function(){return K.Z},e5:function(){return i.Z},ei:function(){return Vt.Z},f0:function(){return $t.Z},fx:function(){return h.Z},hX:function(){return S.Z},hj:function(){return bt.Z},ht:function(){return it.Z},jC:function(){return st.Z},jj:function(){return m.Z},jn:function(){return ht.Z},kJ:function(){return ct.Z},kK:function(){return Mt.Z},l7:function(){return jt.Z},mf:function(){return gt.Z},nM:function(){return F.Z},ng:function(){return ot.Z},o8:function(){return Ct.Z},oL:function(){return ut.Z},pn:function(){return w.Z},q9:function(){return r.Z},qo:function(){return qt.Z},r3:function(){return Ot.Z},rA:function(){return z.Z},ri:function(){return L.Z},ru:function(){return k.Z},rx:function(){return c.Z},sE:function(){return o.Z},t8:function(){return Wt.Z},u4:function(){return d.Z},uZ:function(){return P.Z},vM:function(){return C.Z},vQ:function(){return B.Z},vl:function(){return rt.Z},wH:function(){return J.Z},wQ:function(){return W.Z},xH:function(){return u.Z},xP:function(){return Z.Z},xV:function(){return vt.Z},xb:function(){return Bt.Z},yD:function(){return _t.Z},yR:function(){return te.Z},yW:function(){return E.Z},zG:function(){return ft.Z}}),/^(539|826)$/.test(n.j))var r=n(10370);if(/^(539|826)$/.test(n.j))var i=n(24183);if(/^(539|826)$/.test(n.j))var o=n(63322);if(/^(539|826)$/.test(n.j))var a=n(73738);if(/^(539|826)$/.test(n.j))var s=n(3073);if(/^(539|826)$/.test(n.j))var u=n(42699);if(/^(539|826)$/.test(n.j))var l=n(17676);if(/^(539|826)$/.test(n.j))var c=n(91480);if(/^(539|826)$/.test(n.j))var f=n(57372);if(/^(539|826)$/.test(n.j))var h=n(34117);if(/^(539|826)$/.test(n.j))var d=n(84490);if(/^(539|826)$/.test(n.j))var p=n(8249);if(/^(539|826)$/.test(n.j))var g=n(44665);if(/^(539|826)$/.test(n.j))var v=n(19972);if(/^(539|826)$/.test(n.j))var m=n(35617);if(/^(539|826)$/.test(n.j))var y=n(58596);if(/^(539|826)$/.test(n.j))var b=n(62056);if(/^(539|826)$/.test(n.j))var x=n(67566);if(/^(539|826)$/.test(n.j))var _=n(84801);if(/^(539|826)$/.test(n.j))var w=n(67290);if(/^(539|826)$/.test(n.j))var S=n(69546);if(/^(539|826)$/.test(n.j))var E=n(64798);if(/^(539|826)$/.test(n.j))var T=n(71303);if(/^(539|826)$/.test(n.j))var k=n(33383);if(/^(539|826)$/.test(n.j))var C=n(63059);if(/^(539|826)$/.test(n.j))var M=n(22693);if(/^(539|826)$/.test(n.j))var A=n(73982);if(/^(539|826)$/.test(n.j))var I=n(40717);if(/^(539|826)$/.test(n.j))var O=n(66909);if(/^(539|826)$/.test(n.j))var D=n(28990);if(/^(539|826)$/.test(n.j))var P=n(78132);if(/^(539|826)$/.test(n.j))var L=n(7112);if(/^(539|826)$/.test(n.j))var N=n(57297);if(/^(539|826)$/.test(n.j))var R=n(7982);if(/^(539|826)$/.test(n.j))var j=n(67729);if(/^(539|826)$/.test(n.j))var F=n(16370);if(/^(539|826)$/.test(n.j))var B=n(5655);if(/^(539|826)$/.test(n.j))var z=n(6179);if(/^(539|826)$/.test(n.j))var Z=n(20415);if(/^(539|826)$/.test(n.j))var U=n(31366);if(/^(539|826)$/.test(n.j))var H=n(64660);if(/^(539|826)$/.test(n.j))var $=n(35866);if(/^(539|826)$/.test(n.j))var G=n(24190);if(/^(539|826)$/.test(n.j))var W=n(53652);if(/^(539|826)$/.test(n.j))var V=n(6544);if(/^(539|826)$/.test(n.j))var Y=n(43252);if(/^(539|826)$/.test(n.j))var X=n(93249);if(/^(539|826)$/.test(n.j))var q=n(52569);if(/^(539|826)$/.test(n.j))var K=n(48695);if(/^(539|826)$/.test(n.j))var J=n(90270);if(/^(539|826)$/.test(n.j))var Q=n(47362);if(/^(539|826)$/.test(n.j))var tt=n(62539);if(/^(539|826)$/.test(n.j))var et=n(93116);if(/^(539|826)$/.test(n.j))var nt=n(35558);if(/^(539|826)$/.test(n.j))var rt=n(32385);if(/^(539|826)$/.test(n.j))var it=n(56113);if(/^(539|826)$/.test(n.j))var ot=n(47985);if(/^(539|826)$/.test(n.j))var at=n(47127);if(/^(539|826)$/.test(n.j))var st=n(13060);if(/^(539|826)$/.test(n.j))var ut=n(33710);if(/^(539|826)$/.test(n.j))var lt=n(35750);if(/^(539|826)$/.test(n.j))var ct=n(59145);if(/^(539|826)$/.test(n.j))var ft=n(56953);if(/^(539|826)$/.test(n.j))var ht=n(46174);if(/^(539|826)$/.test(n.j))var dt=n(57847);if(/^(539|826)$/.test(n.j))var pt=n(32303);if(/^(539|826)$/.test(n.j))var gt=n(38027);if(/^(539|826)$/.test(n.j))var vt=n(55509);if(/^(539|826)$/.test(n.j))var mt=n(56385);if(/^(539|826)$/.test(n.j))var yt=n(78329);if(/^(539|826)$/.test(n.j))var bt=n(61035);if(/^(539|826)$/.test(n.j))var xt=n(97653);if(/^(539|826)$/.test(n.j))var _t=n(21341);if(/^(539|826)$/.test(n.j))var wt=n(1252);if(/^(539|826)$/.test(n.j))var St=n(72849);if(/^(539|826)$/.test(n.j))var Et=n(93651);if(/^(539|826)$/.test(n.j))var Tt=n(52940);if(/^(539|826)$/.test(n.j))var kt=n(19782);if(/^(539|826)$/.test(n.j))var Ct=n(20022);if(/^(539|826)$/.test(n.j))var Mt=n(5015);if(/^(539|826)$/.test(n.j))var At=n(32750);if(/^(539|826)$/.test(n.j))var It=n(72847);if(/^(539|826)$/.test(n.j))var Ot=n(29579);if(/^(539|826)$/.test(n.j))var Dt=n(23783);if(/^(539|826)$/.test(n.j))var Pt=n(82981);if(/^(539|826)$/.test(n.j))var Lt=n(40736);if(/^(539|826)$/.test(n.j))var Nt=n(50323);if(/^(539|826)$/.test(n.j))var Rt=n(15889);if(/^(539|826)$/.test(n.j))var jt=n(76234);if(/^(539|826)$/.test(n.j))var Ft=n(46351);if(/^(539|826)$/.test(n.j))var Bt=n(64218);if(/^(539|826)$/.test(n.j))var zt=n(19823);if(/^(539|826)$/.test(n.j))var Zt=n(8595);if(/^(539|826)$/.test(n.j))var Ut=n(70837);if(/^(539|826)$/.test(n.j))var Ht=n(16330);if(/^(539|826)$/.test(n.j))var $t=n(12028);if(/^(539|826)$/.test(n.j))var Gt=n(39734);if(/^(539|826)$/.test(n.j))var Wt=n(25682);if(/^(539|826)$/.test(n.j))var Vt=n(55680);if(/^(539|826)$/.test(n.j))var Yt=n(54615);if(/^(539|826)$/.test(n.j))var Xt=n(50070);if(/^(539|826)$/.test(n.j))var qt=n(92996);if(/^(539|826)$/.test(n.j))var Kt=n(76562);if(/^(539|826)$/.test(n.j))var Jt=n(71607);if(/^(539|826)$/.test(n.j))var Qt=n(4368);if(/^(539|826)$/.test(n.j))var te=n(6947);if(/^(539|826)$/.test(n.j))var ee=n(73810);if(/^(539|826)$/.test(n.j))var ne=n(7491)},35750:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(19782);var i=function(t){return(0,r.Z)(t,"Arguments")};e.Z=/^(539|826)$/.test(n.j)?i:null},56953:function(t,e,n){"use strict";var r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};e.Z=/^(539|826)$/.test(n.j)?r:null},59145:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(19782);e.Z=function(t){return Array.isArray?Array.isArray(t):(0,r.Z)(t,"Array")}},46174:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(19782);var i=function(t){return(0,r.Z)(t,"Boolean")};e.Z=/^(539|826)$/.test(n.j)?i:null},57847:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(19782);var i=function(t){return(0,r.Z)(t,"Date")};e.Z=/^(539|826)$/.test(n.j)?i:null},57297:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(61035);var i=function(t){return(0,r.Z)(t)&&t%1!==0};e.Z=/^(539|826)$/.test(n.j)?i:null},5015:function(t,e,n){"use strict";var r=function(t){return t instanceof Element||t instanceof Document};e.Z=/^(539|826)$/.test(n.j)?r:null},64218:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(56385);if(/^(539|826)$/.test(n.j))var i=n(56953);if(/^(539|826)$/.test(n.j))var o=n(33710);if(/^(539|826)$/.test(n.j))var a=n(72849);var s=Object.prototype.hasOwnProperty;function u(t){if((0,r.Z)(t))return!0;if((0,i.Z)(t))return!t.length;var e=(0,o.Z)(t);if("Map"===e||"Set"===e)return!t.size;if((0,a.Z)(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}e.Z=/^(539|826)$/.test(n.j)?u:null},8595:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(38027);if(/^(539|826)$/.test(n.j))var i=n(19823);e.Z=function(t,e,n){return(0,r.Z)(n)?!!n(t,e):(0,i.Z)(t,e)}},19823:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(21341);if(/^(539|826)$/.test(n.j))var i=n(56953);if(/^(539|826)$/.test(n.j))var o=n(52940);var a=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if((0,o.Z)(t)||(0,o.Z)(e))return!1;if((0,i.Z)(t)||(0,i.Z)(e)){if(t.length!==e.length)return!1;for(var n=!0,s=0;s<t.length;s++)if(n=a(t[s],e[s]),!n)break;return n}if((0,r.Z)(t)||(0,r.Z)(e)){var u=Object.keys(t),l=Object.keys(e);if(u.length!==l.length)return!1;for(n=!0,s=0;s<u.length;s++)if(n=a(t[u[s]],e[u[s]]),!n)break;return n}return!1};e.Z=/^(539|826)$/.test(n.j)?a:null},32303:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(19782);var i=function(t){return(0,r.Z)(t,"Error")};e.Z=/^(539|826)$/.test(n.j)?i:null},7982:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(61035);var i=function(t){return(0,r.Z)(t)&&t%2===0};e.Z=/^(539|826)$/.test(n.j)?i:null},55509:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(61035);function i(t){return(0,r.Z)(t)&&isFinite(t)}},38027:function(t,e){"use strict";e.Z=function(t){return"function"===typeof t}},67729:function(t,e,n){"use strict";var r=n(61035),i=Number.isInteger?Number.isInteger:function(t){return(0,r.Z)(t)&&t%1===0};e.Z=/^(539|826)$/.test(n.j)?i:null},93116:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(56385);if(/^(539|826)$/.test(n.j))var i=n(62539);function o(t,e){var n=(0,i.Z)(e),o=n.length;if((0,r.Z)(t))return!o;for(var a=0;a<o;a+=1){var s=n[a];if(e[s]!==t[s]||!(s in t))return!1}return!0}e.Z=/^(539|826)$/.test(n.j)?o:null},16370:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(61035);var i=function(t){return(0,r.Z)(t)&&t<0};e.Z=/^(539|826)$/.test(n.j)?i:null},56385:function(t,e,n){"use strict";var r=function(t){return null===t||void 0===t};e.Z=/^(539|826)$/.test(n.j)?r:null},78329:function(t,e,n){"use strict";var r=function(t){return null===t};e.Z=/^(539|826)$/.test(n.j)?r:null},5655:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=1e-5;function i(t,e,n){return void 0===n&&(n=r),Math.abs(t-e)<n}},61035:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(19782);var i=function(t){return(0,r.Z)(t,"Number")};e.Z=/^(539|826)$/.test(n.j)?i:null},21341:function(t,e,n){"use strict";var r=function(t){return"object"===typeof t&&null!==t};e.Z=/^(539|826)$/.test(n.j)?r:null},97653:function(t,e){"use strict";e.Z=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},6179:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(61035);var i=function(t){return(0,r.Z)(t)&&t%2!==0};e.Z=/^(539|826)$/.test(n.j)?i:null},1252:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(21341);if(/^(539|826)$/.test(n.j))var i=n(19782);var o=function(t){if(!(0,r.Z)(t)||!(0,i.Z)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};e.Z=/^(539|826)$/.test(n.j)?o:null},20415:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(61035);var i=function(t){return(0,r.Z)(t)&&t>0};e.Z=/^(539|826)$/.test(n.j)?i:null},72849:function(t,e,n){"use strict";var r=Object.prototype,i=function(t){var e=t&&t.constructor,n="function"===typeof e&&e.prototype||r;return t===n};e.Z=/^(539|826)$/.test(n.j)?i:null},93651:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(19782);var i=function(t){return(0,r.Z)(t,"RegExp")};e.Z=/^(539|826)$/.test(n.j)?i:null},52940:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(19782);e.Z=function(t){return(0,r.Z)(t,"String")}},19782:function(t,e,n){"use strict";var r={}.toString,i=function(t,e){return r.call(t)==="[object "+e+"]"};e.Z=/^(539|826)$/.test(n.j)?i:null},20022:function(t,e,n){"use strict";var r=function(t){return void 0===t};e.Z=/^(539|826)$/.test(n.j)?r:null},62539:function(t,e,n){"use strict";var r=n(15889),i=n(38027),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return(0,r.Z)(t,(function(n,r){(0,i.Z)(t)&&"prototype"===r||e.push(r)})),e};e.Z=/^(539|826)$/.test(n.j)?o:null},67566:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(56953);function i(t){if((0,r.Z)(t)){var e=t;return e[e.length-1]}}},32385:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(76562);var i=function(t){return(0,r.Z)(t).toLowerCase()};e.Z=/^(539|826)$/.test(n.j)?i:null},56113:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(76562);var i=function(t){var e=(0,r.Z)(t);return e.charAt(0).toLowerCase()+e.substring(1)};e.Z=/^(539|826)$/.test(n.j)?i:null},16330:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(56385);if(/^(539|826)$/.test(n.j))var i=n(97653);var o=function(t){return t};e.Z=function(t,e){void 0===e&&(e=o);var n={};return(0,i.Z)(t)&&!(0,r.Z)(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},70837:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(56953);var i=function(t,e){if(!(0,r.Z)(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(e(o,i))}return n};e.Z=/^(539|826)$/.test(n.j)?i:null},64660:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);if(/^(539|826)$/.test(n.j))var i=n(38027);e.Z=function(t,e){if((0,r.Z)(t)){for(var n,o=-1/0,a=0;a<t.length;a++){var s=t[a],u=(0,i.Z)(e)?e(s):s[e];u>o&&(n=s,o=u)}return n}}},31366:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);e.Z=function(t){if((0,r.Z)(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])}},40736:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(82631);if(/^(539|826)$/.test(n.j))var i=n(38027);e.Z=function(t,e,n){if(void 0===n&&(n=128),!(0,i.Z)(t))throw new TypeError("Expected a function");var o=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e?e.apply(this,n):n[0],a=o.cache;if(a.has(i))return a.get(i);var s=t.apply(this,n);return a.set(i,s),s};return o.cache=(0,r.Z)(n),o}},24190:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);if(/^(539|826)$/.test(n.j))var i=n(38027);e.Z=function(t,e){if((0,r.Z)(t)){for(var n,o=1/0,a=0;a<t.length;a++){var s=t[a],u=(0,i.Z)(e)?e(s):s[e];u<o&&(n=s,o=u)}return n}}},35866:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);e.Z=function(t){if((0,r.Z)(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])}},12028:function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function i(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}n.d(e,{Z:function(){return i}})},53652:function(t,e,n){"use strict";var r=function(t,e){return(t%e+e)%e};e.Z=/^(539|826)$/.test(n.j)?r:null},4368:function(t,e){"use strict";e.Z=function(){}},66909:function(t,e,n){"use strict";var r={};function i(t){var e=r[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,r[t]=e}return e}e.Z=/^(539|826)$/.test(n.j)?i:null},54615:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(84490);e.Z=function(t,e){return(0,r.Z)(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})}},28990:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);function i(t){var e=0,n=0,i=0,o=0;return(0,r.Z)(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,{r1:e,r2:n,r3:i,r4:o}}e.Z=/^(539|826)$/.test(n.j)?i:null},55680:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(15889);if(/^(539|826)$/.test(n.j))var i=n(1252);var o=Object.prototype.hasOwnProperty;e.Z=function(t,e){if(null===t||!(0,i.Z)(t))return{};var n={};return(0,r.Z)(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},34117:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(56953);var i=Array.prototype.splice,o=function(t,e){if(!(0,r.Z)(t))return[];var n=t?e.length:0,o=n-1;while(n--){var a=void 0,s=e[n];n!==o&&s===a||(a=s,i.call(t,s,1))}return t};e.Z=/^(539|826)$/.test(n.j)?o:null},57372:function(t,e,n){"use strict";var r=Array.prototype,i=r.splice,o=r.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++){var a=e[r],s=-1;while((s=o.call(t,a))>-1)i.call(t,s,1)}return t};e.Z=/^(539|826)$/.test(n.j)?a:null},84490:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(15889);if(/^(539|826)$/.test(n.j))var i=n(59145);if(/^(539|826)$/.test(n.j))var o=n(1252);var a=function(t,e,n){if(!(0,i.Z)(t)&&!(0,o.Z)(t))return t;var a=n;return(0,r.Z)(t,(function(t,n){a=e(a,t,n)})),a};e.Z=/^(539|826)$/.test(n.j)?a:null},8249:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(56953);if(/^(539|826)$/.test(n.j))var i=n(34117);var o=function(t,e){var n=[];if(!(0,r.Z)(t))return n;var o=-1,a=[],s=t.length;while(++o<s){var u=t[o];e(u,o,t)&&(n.push(u),a.push(o))}return(0,i.Z)(t,a),n};e.Z=/^(539|826)$/.test(n.j)?o:null},32750:function(t,e,n){"use strict";function r(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}n.d(e,{Z:function(){return r}})},25682:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(97653);if(/^(539|826)$/.test(n.j))var i=n(52940);if(/^(539|826)$/.test(n.j))var o=n(61035);e.Z=function(t,e,n){var a=t,s=(0,i.Z)(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?((0,r.Z)(a[t])||(a[t]=(0,o.Z)(s[e+1])?[]:{}),a=a[t]):a[t]=n})),t}},73810:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(56385);if(/^(539|826)$/.test(n.j))var i=n(56953);function o(t){return(0,r.Z)(t)?0:(0,i.Z)(t)?t.length:Object.keys(t).length}},71303:function(t,e,n){"use strict";var r=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1};e.Z=/^(539|826)$/.test(n.j)?r:null},44665:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);if(/^(539|826)$/.test(n.j))var i=n(52940);if(/^(539|826)$/.test(n.j))var o=n(38027);function a(t,e){var n;if((0,o.Z)(e))n=function(t,n){return e(t)-e(n)};else{var a=[];(0,i.Z)(e)?a.push(e):(0,r.Z)(e)&&(a=e),n=function(t,e){for(var n=0;n<a.length;n+=1){var r=a[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}e.Z=/^(539|826)$/.test(n.j)?a:null},84801:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);if(/^(539|826)$/.test(n.j))var i=n(52940);function o(t,e){return!(!(0,r.Z)(t)&&!(0,i.Z)(t))&&t[0]===e}e.Z=/^(539|826)$/.test(n.j)?o:null},47985:function(t,e,n){"use strict";function r(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}e.Z=/^(539|826)$/.test(n.j)?r:null},50070:function(t,e){"use strict";e.Z=function(t,e,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var c=e-(l-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l}},92996:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(56953);e.Z=function(t){return(0,r.Z)(t)?Array.prototype.slice.call(t):[]}},6544:function(t,e,n){"use strict";var r=180/Math.PI,i=function(t){return r*t};e.Z=/^(539|826)$/.test(n.j)?i:null},43252:function(t,e,n){"use strict";e.Z=/^(539|826)$/.test(n.j)?parseInt:null},93249:function(t,e,n){"use strict";var r=Math.PI/180,i=function(t){return r*t};e.Z=/^(539|826)$/.test(n.j)?i:null},76562:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(56385);e.Z=function(t){return(0,r.Z)(t)?"":t.toString()}},19972:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(35617);var i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.Z)([].concat.apply([],t))};e.Z=/^(539|826)$/.test(n.j)?i:null},35617:function(t,e,n){"use strict";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}n.d(e,{Z:function(){return r}})},71607:function(t,e){"use strict";var n={};e.Z=function(t){return t=t||"g",n[t]?n[t]+=1:n[t]=1,t+n[t]}},47127:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(76562);var i=function(t){return(0,r.Z)(t).toUpperCase()};e.Z=/^(539|826)$/.test(n.j)?i:null},13060:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(76562);var i=function(t){var e=(0,r.Z)(t);return e.charAt(0).toUpperCase()+e.substring(1)};e.Z=/^(539|826)$/.test(n.j)?i:null},58596:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(59145);if(/^(539|826)$/.test(n.j))var i=n(56385);e.Z=function(t,e){for(var n=[],o={},a=0;a<t.length;a++){var s=t[a],u=s[e];if(!(0,i.Z)(u)){(0,r.Z)(u)||(u=[u]);for(var l=0;l<u.length;l++){var c=u[l];o[c]||(n.push(c),o[c]=!0)}}}return n}},35558:function(t,e,n){"use strict";var r=n(15889),i=n(38027),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return(0,r.Z)(t,(function(n,r){(0,i.Z)(t)&&"prototype"===r||e.push(n)})),e};e.Z=/^(539|826)$/.test(n.j)?o:null},40717:function(t,e,n){"use strict";function r(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}e.Z=/^(539|826)$/.test(n.j)?r:null},18229:function(t,e,n){"use strict";if(n.d(e,{W:function(){return i.W},c:function(){return r.c}}),/^(539|826)$/.test(n.j))var r=n(7998);if(/^(539|826)$/.test(n.j))var i=n(89634)},7998:function(t,e,n){"use strict";n.d(e,{c:function(){return a}});var r=1e-6;function i(t){return Math.abs(t)<r?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 a(t,e,n){var r=!1,a=t.length;if(a<=2)return!1;for(var s=0;s<a;s++){var u=t[s],l=t[(s+1)%a];if(o(u,l,[e,n]))return!0;i(u[1]-n)>0!==i(l[1]-n)>0&&i(e-(n-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(r=!r)}return r}},89634:function(t,e,n){"use strict";if(n.d(e,{W:function(){return c}}),/^(539|826)$/.test(n.j))var r=n(7998);var i=function(t,e,n){return t>=e&&t<=n};function o(t,e,n,r){var o=.001,a={x:n.x-t.x,y:n.y-t.y},s={x:e.x-t.x,y:e.y-t.y},u={x:r.x-n.x,y:r.y-n.y},l=s.x*u.y-s.y*u.x,c=l*l,f=s.x*s.x+s.y*s.y,h=u.x*u.x+u.y*u.y,d=null;if(c>o*f*h){var p=(a.x*u.y-a.y*u.x)/l,g=(a.x*s.y-a.y*s.x)/l;i(p,0,1)&&i(g,0,1)&&(d={x:t.x+p*s.x,y:t.y+p*s.y})}return d}function a(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 s(t,e){var n=!1;return t.forEach((function(t){if(o(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function u(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 l(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function c(t,e){if(t.length<2||e.length<2)return!1;var n=u(t),i=u(e);if(!l(n,i))return!1;var o=!1;if(e.forEach((function(e){if((0,r.c)(t,e[0],e[1]))return o=!0,!1})),o)return!0;if(t.forEach((function(t){if((0,r.c)(e,t[0],t[1]))return o=!0,!1})),o)return!0;var c=a(t),f=a(e),h=!1;return f.forEach((function(t){if(s(c,t))return h=!0,!1})),h}},62837:function(t,e,n){"use strict";if(n.d(e,{D:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(31437);if(/^(539|826)$/.test(n.j))var i=n(1530);function o(t,e,n){var o=r.angle(t,e),a=(0,i.o)(t,e)>=0;return n?a?2*Math.PI-o:o:a?o:2*Math.PI-o}},1530:function(t,e,n){"use strict";function r(t,e){return t[0]*e[1]-e[0]*t[1]}n.d(e,{o:function(){return r}})},42205:function(t,e,n){"use strict";if(n.d(e,{Dg:function(){return i.D},KR:function(){return a.K},o7:function(){return o.o},vs:function(){return r.v}}),/^(539|826)$/.test(n.j))var r=n(98774);if(/^(539|826)$/.test(n.j))var i=n(62837);if(/^(539|826)$/.test(n.j))var o=n(1530);if(/^(539|826)$/.test(n.j))var a=n(80269)},98774:function(t,e,n){"use strict";if(n.d(e,{v:function(){return u}}),/^(539|826)$/.test(n.j))var r=n(35600);function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.fromTranslation(i,n),r.multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.fromRotation(i,n),r.multiply(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.fromScaling(i,n),r.multiply(t,i,e)}function s(t,e,n){return r.multiply(t,n,e)}function u(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,u=e.length;r<u;r++){var l=e[r];switch(l[0]){case"t":i(n,n,[l[1],l[2]]);break;case"s":a(n,n,[l[1],l[2]]);break;case"r":o(n,n,l[1]);break;case"m":s(n,n,l[1]);break;default:break}}return n}},80269:function(t,e,n){"use strict";function r(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,{K:function(){return r}})},4926:function(t,e,n){"use strict";if(n.d(e,{w:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(10677);if(/^(539|826)$/.test(n.j))var i=n(81224);function o(t){if((0,r.b)(t))return[].concat(t);var e=(0,i.t)(t),n=0,o=0,a=0,s=0;return e.map((function(t){var e,r=t.slice(1).map(Number),i=t[0],u=i.toUpperCase();if("M"===i)return n=r[0],o=r[1],a=n,s=o,["M",n,o];if(i!==u)switch(u){case"A":e=[u,r[0],r[1],r[2],r[3],r[4],r[5]+n,r[6]+o];break;case"V":e=[u,r[0]+o];break;case"H":e=[u,r[0]+n];break;default:var l=r.map((function(t,e){return t+(e%2?o:n)}));e=[u].concat(l)}else e=[u].concat(r);var c=e.length;switch(u){case"Z":n=a,o=s;break;case"H":n=e[1];break;case"V":o=e[1];break;default:n=e[c-2],o=e[c-1],"M"===u&&(a=n,s=o)}return e}))}},4713:function(t,e,n){"use strict";if(n.d(e,{Y:function(){return l}}),/^(539|826)$/.test(n.j))var r=n(97582);if(/^(539|826)$/.test(n.j))var i=n(74132);if(/^(539|826)$/.test(n.j))var o=n(89376);if(/^(539|826)$/.test(n.j))var a=n(11766);if(/^(539|826)$/.test(n.j))var s=n(59197);if(/^(539|826)$/.test(n.j))var u=n(78584);function l(t,e){if(void 0===e&&(e=!1),(0,s.H)(t)){var n=[].concat(t);return e?[n,[]]:n}for(var l,c,f=(0,a.A)(t),h=(0,r.__assign)({},i.z),d=[],p="",g=f.length,v=[],m=0;m<g;m+=1){f[m]&&(p=f[m][0]),d[m]=p;var y=(0,u.Z)(f[m],h);f[m]=y,(0,o.B)(f,d,m),g=f.length,"Z"===p&&v.push(m),l=f[m],c=l.length,h.x1=+l[c-2],h.y1=+l[c-1],h.x2=+l[c-4]||h.x1,h.y2=+l[c-3]||h.y1}return e?[f,v]:f}},48834:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(60927);function i(t,e){return void 0===e&&(e="off"),(0,r.t)(t,e).map((function(t){return t[0]+t.slice(1).join(" ")})).join("")}},95588:function(t,e,n){"use strict";if(n.d(e,{AH:function(){return s.A},DD:function(){return f.D},Dz:function(){return m.D},GG:function(){return u.G},Kw:function(){return h.K},S5:function(){return c.S},U5:function(){return a.U},Wz:function(){return l.W},Y8:function(){return p.Y},YM:function(){return i.Y},Zt:function(){return r.Z},bx:function(){return g.b},gs:function(){return d.g},rB:function(){return v.r},wb:function(){return o.w},xt:function(){return b.x},yH:function(){return y.y}}),/^(539|826)$/.test(n.j))var r=n(48834);if(/^(539|826)$/.test(n.j))var i=n(4713);if(/^(539|826)$/.test(n.j))var o=n(4926);if(/^(539|826)$/.test(n.j))var a=n(13898);if(/^(539|826)$/.test(n.j))var s=n(11766);if(/^(539|826)$/.test(n.j))var u=n(70375);if(/^(539|826)$/.test(n.j))var l=n(79224);if(/^(539|826)$/.test(n.j))var c=n(39067);if(/^(539|826)$/.test(n.j))var f=n(13565);if(/^(539|826)$/.test(n.j))var h=n(75974);if(/^(539|826)$/.test(n.j))var d=n(41862);if(/^(539|826)$/.test(n.j))var p=n(14658);if(/^(539|826)$/.test(n.j))var g=n(61360);if(/^(539|826)$/.test(n.j))var v=n(32299);if(/^(539|826)$/.test(n.j))var m=n(74323);if(/^(539|826)$/.test(n.j))var y=n(87456);if(/^(539|826)$/.test(n.j))var b=n(57467)},61187:function(t,e,n){"use strict";if(n.d(e,{M:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(97738);function i(t){var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),i=t.data;while(i.length>=r.R[n])if("m"===n&&i.length>2?(t.segments.push([e].concat(i.splice(0,2))),n="l",e="m"===e?"l":"L"):t.segments.push([e].concat(i.splice(0,r.R[n]))),!r.R[n])break}},24125:function(t,e,n){"use strict";function r(t){return 97===(32|t)}n.d(e,{U:function(){return r}})},98976:function(t,e,n){"use strict";function r(t){return t>=48&&t<=57||43===t||45===t||46===t}function i(t){return t>=48&&t<=57}n.d(e,{B:function(){return r},X:function(){return i}})},3626:function(t,e,n){"use strict";function r(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}}n.d(e,{C:function(){return r}})},53409:function(t,e,n){"use strict";function r(t){var e=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];return 10===t||13===t||8232===t||8233===t||32===t||9===t||11===t||12===t||160===t||t>=5760&&e.includes(t)}n.d(e,{W:function(){return r}})},97738:function(t,e,n){"use strict";n.d(e,{R:function(){return r}});var r={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0}},74132:function(t,e,n){"use strict";n.d(e,{z:function(){return r}});var r={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null}},81224:function(t,e,n){"use strict";if(n.d(e,{t:function(){return s}}),/^(539|826)$/.test(n.j))var r=n(81583);if(/^(539|826)$/.test(n.j))var i=n(27537);if(/^(539|826)$/.test(n.j))var o=n(97886);if(/^(539|826)$/.test(n.j))var a=n(88418);function s(t){if((0,r.n)(t))return[].concat(t);var e=new a.C(t);(0,o.a)(e);while(e.index<e.max&&!e.err.length)(0,i.J)(e);return e.err?e.err:e.segments}},88418:function(t,e,n){"use strict";n.d(e,{C:function(){return r}});var r=function(){function t(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return t}()},37895:function(t,e,n){"use strict";function r(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 "'+n[e]+'", expecting 0 or 1 at index '+e)}n.d(e,{w:function(){return r}})},65546:function(t,e,n){"use strict";if(n.d(e,{a:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(98976);function i(t){var e,n=t.max,i=t.pathValue,o=t.index,a=o,s=!1,u=!1,l=!1,c=!1;if(a>=n)t.err="[path-util]: Invalid path value at index "+a+', "pathValue" is missing param';else if(e=i.charCodeAt(a),43!==e&&45!==e||(a+=1,e=i.charCodeAt(a)),(0,r.X)(e)||46===e){if(46!==e){if(s=48===e,a+=1,e=i.charCodeAt(a),s&&a<n&&e&&(0,r.X)(e))return void(t.err="[path-util]: Invalid path value at index "+o+', "'+i[o]+'" illegal number');while(a<n&&(0,r.X)(i.charCodeAt(a)))a+=1,u=!0;e=i.charCodeAt(a)}if(46===e){c=!0,a+=1;while((0,r.X)(i.charCodeAt(a)))a+=1,l=!0;e=i.charCodeAt(a)}if(101===e||69===e){if(c&&!u&&!l)return void(t.err="[path-util]: Invalid path value at index "+a+', "'+i[a]+'" invalid float exponent');if(a+=1,e=i.charCodeAt(a),43!==e&&45!==e||(a+=1),!(a<n&&(0,r.X)(i.charCodeAt(a))))return void(t.err="[path-util]: Invalid path value at index "+a+', "'+i[a]+'" invalid integer exponent');while(a<n&&(0,r.X)(i.charCodeAt(a)))a+=1}t.index=a,t.param=+t.pathValue.slice(o,a)}else t.err="[path-util]: Invalid path value at index "+a+', "'+i[a]+'" is not a number'}},27537:function(t,e,n){"use strict";if(n.d(e,{J:function(){return f}}),/^(539|826)$/.test(n.j))var r=n(61187);if(/^(539|826)$/.test(n.j))var i=n(97738);if(/^(539|826)$/.test(n.j))var o=n(37895);if(/^(539|826)$/.test(n.j))var a=n(65546);if(/^(539|826)$/.test(n.j))var s=n(97886);if(/^(539|826)$/.test(n.j))var u=n(3626);if(/^(539|826)$/.test(n.j))var l=n(98976);if(/^(539|826)$/.test(n.j))var c=n(24125);function f(t){var e=t.max,n=t.pathValue,f=t.index,h=n.charCodeAt(f),d=i.R[n[f].toLowerCase()];if(t.segmentStart=f,(0,u.C)(h))if(t.index+=1,(0,s.a)(t),t.data=[],d){for(;;){for(var p=d;p>0;p-=1){if(!(0,c.U)(h)||3!==p&&4!==p?(0,a.a)(t):(0,o.w)(t),t.err.length)return;t.data.push(t.param),(0,s.a)(t),t.index<e&&44===n.charCodeAt(t.index)&&(t.index+=1,(0,s.a)(t))}if(t.index>=t.max)break;if(!(0,l.B)(n.charCodeAt(t.index)))break}(0,r.M)(t)}else(0,r.M)(t);else t.err='[path-util]: Invalid path value "'+n[f]+'" is not a path command'}},97886:function(t,e,n){"use strict";if(n.d(e,{a:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(53409);function i(t){var e=t.pathValue,n=t.max;while(t.index<n&&(0,r.W)(e.charCodeAt(t.index)))t.index+=1}},79224:function(t,e,n){"use strict";if(n.d(e,{W:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(46950);function i(t,e,n,o,a,s,u,l,c,f){var h,d,p,g,v,m=t,y=e,b=n,x=o,_=l,w=c,S=120*Math.PI/180,E=Math.PI/180*(+a||0),T=[];if(f)d=f[0],p=f[1],g=f[2],v=f[3];else{h=(0,r.c)(m,y,-E),m=h.x,y=h.y,h=(0,r.c)(_,w,-E),_=h.x,w=h.y;var k=(m-_)/2,C=(y-w)/2,M=k*k/(b*b)+C*C/(x*x);M>1&&(M=Math.sqrt(M),b*=M,x*=M);var A=b*b,I=x*x,O=(s===u?-1:1)*Math.sqrt(Math.abs((A*I-A*C*C-I*k*k)/(A*C*C+I*k*k)));g=O*b*C/x+(m+_)/2,v=O*-x*k/b+(y+w)/2,d=Math.asin(((y-v)/x*Math.pow(10,9)>>0)/Math.pow(10,9)),p=Math.asin(((w-v)/x*Math.pow(10,9)>>0)/Math.pow(10,9)),d=m<g?Math.PI-d:d,p=_<g?Math.PI-p:p,d<0&&(d=2*Math.PI+d),p<0&&(p=2*Math.PI+p),u&&d>p&&(d-=2*Math.PI),!u&&p>d&&(p-=2*Math.PI)}var D=p-d;if(Math.abs(D)>S){var P=p,L=_,N=w;p=d+S*(u&&p>d?1:-1),_=g+b*Math.cos(p),w=v+x*Math.sin(p),T=i(_,w,b,x,a,0,u,L,N,[p,P,g,v])}D=p-d;var R=Math.cos(d),j=Math.sin(d),F=Math.cos(p),B=Math.sin(p),z=Math.tan(D/4),Z=4/3*b*z,U=4/3*x*z,H=[m,y],$=[m+Z*j,y-U*R],G=[_+Z*B,w-U*F],W=[_,w];if($[0]=2*H[0]-$[0],$[1]=2*H[1]-$[1],f)return $.concat(G,W,T);T=$.concat(G,W,T);for(var V=[],Y=0,X=T.length;Y<X;Y+=1)V[Y]=Y%2?(0,r.c)(T[Y-1],T[Y],E).y:(0,r.c)(T[Y],T[Y+1],E).x;return V}},13898:function(t,e,n){"use strict";function r(t){return t.map((function(t){return Array.isArray(t)?[].concat(t):t}))}n.d(e,{U:function(){return r}})},89376:function(t,e,n){"use strict";function r(t,e,n){if(t[n].length>7){t[n].shift();var r=t[n],i=n;while(r.length)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}n.d(e,{B:function(){return r}})},36540:function(t,e,n){"use strict";if(n.d(e,{w:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(97582);if(/^(539|826)$/.test(n.j))var i=n(68983);var o=function(t,e,n,o){var a=.5,s=(0,i.k)([t,e],[n,o],a);return(0,r.__spreadArray)((0,r.__spreadArray)([],s,!0),[n,o,n,o],!1)}},11766:function(t,e,n){"use strict";if(n.d(e,{A:function(){return u}}),/^(539|826)$/.test(n.j))var r=n(97582);if(/^(539|826)$/.test(n.j))var i=n(6437);if(/^(539|826)$/.test(n.j))var o=n(74132);if(/^(539|826)$/.test(n.j))var a=n(4926);if(/^(539|826)$/.test(n.j))var s=n(73706);function u(t){if((0,i.y)(t))return[].concat(t);for(var e=(0,a.w)(t),n=(0,r.__assign)({},o.z),u=0;u<e.length;u+=1){e[u]=(0,s.V)(e[u],n);var l=e[u],c=l.length;n.x1=+l[c-2],n.y1=+l[c-1],n.x2=+l[c-4]||n.x1,n.y2=+l[c-3]||n.y1}return e}},73706:function(t,e,n){"use strict";function r(t,e){var n=t[0],r=e.x1,i=e.y1,o=e.x2,a=e.y2,s=t.slice(1).map(Number),u=t;if("TQ".includes(n)||(e.qx=null,e.qy=null),"H"===n)u=["L",t[1],i];else if("V"===n)u=["L",r,t[1]];else if("S"===n){var l=2*r-o,c=2*i-a;e.x1=l,e.y1=c,u=["C",l,c].concat(s)}else if("T"===n){var f=2*r-e.qx,h=2*i-e.qy;e.qx=f,e.qy=h,u=["Q",f,h].concat(s)}else if("Q"===n){var d=s[0],p=s[1];e.qx=d,e.qy=p}return u}n.d(e,{V:function(){return r}})},14529:function(t,e,n){"use strict";function r(t,e,n,r,i,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*r,a*i+s*n,a*o+s*r,i,o]}n.d(e,{h:function(){return r}})},70375:function(t,e,n){"use strict";function r(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))})))}n.d(e,{G:function(){return r}})},60927:function(t,e,n){"use strict";function r(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)}))}n.d(e,{t:function(){return r}})},78584:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return a}}),/^(539|826)$/.test(n.j))var r=n(79224);if(/^(539|826)$/.test(n.j))var i=n(14529);if(/^(539|826)$/.test(n.j))var o=n(36540);function a(t,e){var n,a=t[0],s=t.slice(1).map(Number),u=s[0],l=s[1],c=e.x1,f=e.y1,h=e.x,d=e.y;switch("TQ".includes(a)||(e.qx=null,e.qy=null),a){case"M":return e.x=u,e.y=l,t;case"A":return n=[c,f].concat(s),["C"].concat((0,r.W)(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=u,e.qy=l,n=[c,f].concat(s),["C"].concat((0,i.h)(n[0],n[1],n[2],n[3],n[4],n[5]));case"L":return["C"].concat((0,o.w)(c,f,u,l));case"Z":return c===h&&f===d?["C",c,f,h,d,h,d]:["C"].concat((0,o.w)(c,f,h,d));default:}return t}},87456:function(t,e,n){"use strict";function r(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}n.d(e,{y:function(){return r}})},57467:function(t,e,n){"use strict";if(n.d(e,{x:function(){return s}}),/^(539|826)$/.test(n.j))var r=n(68983);if(/^(539|826)$/.test(n.j))var i=n(96734);function o(t,e){void 0===e&&(e=.5);var n=t.slice(0,2),i=t.slice(2,4),o=t.slice(4,6),a=t.slice(6,8),s=(0,r.k)(n,i,e),u=(0,r.k)(i,o,e),l=(0,r.k)(o,a,e),c=(0,r.k)(s,u,e),f=(0,r.k)(u,l,e),h=(0,r.k)(c,f,e);return[["C"].concat(s,c,h),["C"].concat(f,l,a)]}function a(t){return t.map((function(t,e,n){var r,a=e&&n[e-1].slice(-2).concat(t.slice(1)),s=e?(0,i.S)(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],{bbox:!1}).length:0;return r=e?s?o(a):[t,t]:[t],{s:t,ss:r,l:s}}))}function s(t,e,n){var r=a(t),i=a(e),o=r.length,u=i.length,l=r.filter((function(t){return t.l})).length,c=i.filter((function(t){return t.l})).length,f=r.filter((function(t){return t.l})).reduce((function(t,e){var n=e.l;return t+n}),0)/l||0,h=i.filter((function(t){return t.l})).reduce((function(t,e){var n=e.l;return t+n}),0)/c||0,d=n||Math.max(o,u),p=[f,h],g=[d-o,d-u],v=0,m=[r,i].map((function(t,e){return t.l===d?t.map((function(t){return t.s})):t.map((function(t,n){return v=n&&g[e]&&t.l>=p[e],g[e]-=v?1:0,v?t.ss:[t.s]})).flat()}));return m[0].length===m[1].length?m:s(m[0],m[1],d)}},61360:function(t,e,n){"use strict";if(n.d(e,{b:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(14658);function i(t){return(0,r.Y)(t)>=0}},14658:function(t,e,n){"use strict";if(n.d(e,{Y:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(4713);function i(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}function o(t){var e=0,n=0,o=0;return(0,r.Y)(t).map((function(t){var r;switch(t[0]){case"M":return e=t[1],n=t[2],0;default:var a=t.slice(1),s=a[0],u=a[1],l=a[2],c=a[3],f=a[4],h=a[5];return o=i(e,n,s,u,l,c,f,h),r=t.slice(-2),e=r[0],n=r[1],o}})).reduce((function(t,e){return t+e}),0)}},75974:function(t,e,n){"use strict";if(n.d(e,{K:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(97582);if(/^(539|826)$/.test(n.j))var i=n(84040);function o(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=(0,i.s)(t,void 0,(0,r.__assign)((0,r.__assign)({},e),{bbox:!0,length:!0})),o=n.length,a=n.min,s=a.x,u=a.y,l=n.max,c=l.x,f=l.y,h=c-s,d=f-u;return{length:o,width:h,height:d,x:s,y:u,x2:c,y2:f,cx:s+h/2,cy:u+d/2,cz:Math.max(h,d)+Math.min(h,d)/2}}},39067:function(t,e,n){"use strict";if(n.d(e,{S:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(97582);if(/^(539|826)$/.test(n.j))var i=n(84040);function o(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=(0,i.s)(t,void 0,(0,r.__assign)((0,r.__assign)({},e),{length:!1})),o=n.min,a=o.x,s=o.y,u=n.max,l=u.x,c=u.y,f=l-a,h=c-s;return{width:f,height:h,x:a,y:s,x2:l,y2:c,cx:a+f/2,cy:s+h/2,cz:Math.max(f,h)+Math.min(f,h)/2}}},32299:function(t,e,n){"use strict";if(n.d(e,{r:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(97582);if(/^(539|826)$/.test(n.j))var i=n(84040);function o(t,e,n){return(0,i.s)(t,e,(0,r.__assign)((0,r.__assign)({},n),{bbox:!1,length:!0})).point}},93047:function(t,e,n){"use strict";if(n.d(e,{G:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(81224);if(/^(539|826)$/.test(n.j))var i=n(13565);function o(t,e){var n=(0,r.t)(t);if("string"===typeof n)throw TypeError(n);var o=n.slice(),a=(0,i.D)(o),s=o.length-1,u=0,l=0,c=n[0],f=c.slice(-2),h=f[0],d=f[1],p={x:h,y:d};if(s<=0||!e||!Number.isFinite(e))return{segment:c,index:0,length:l,point:p,lengthAtSegment:u};if(e>=a)return o=n.slice(0,-1),u=(0,i.D)(o),l=a-u,{segment:n[s],index:s,length:l,lengthAtSegment:u};var g=[];while(s>0)c=o[s],o=o.slice(0,-1),u=(0,i.D)(o),l=a-u,a=u,g.push({segment:c,index:s,length:l,lengthAtSegment:u}),s-=1;return g.find((function(t){var n=t.lengthAtSegment;return n<=e}))}},88362:function(t,e,n){"use strict";if(n.d(e,{S:function(){return u}}),/^(539|826)$/.test(n.j))var r=n(81224);if(/^(539|826)$/.test(n.j))var i=n(11766);if(/^(539|826)$/.test(n.j))var o=n(32299);if(/^(539|826)$/.test(n.j))var a=n(93047);if(/^(539|826)$/.test(n.j))var s=n(13565);function u(t,e){for(var n,u,l,c,f=(0,r.t)(t),h=(0,i.A)(f),d=(0,s.D)(f),p=function(t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},g=8,v=0,m=0,y=1/0,b=0;b<=d;b+=g)n=(0,o.r)(h,b),v=p(n),v<y&&(u=n,m=b,y=v);g/=2;var x=0,_=0,w=0,S=0;while(g>.5)x=m-g,l=(0,o.r)(h,x),w=p(l),_=m+g,c=(0,o.r)(h,_),S=p(c),x>=0&&w<y?(u=l,m=x,y=w):_<=d&&S<y?(u=c,m=_,y=S):g/=2;var E=(0,a.G)(f,m),T=Math.sqrt(y);return{closest:u,distance:T,segment:E}}},41862:function(t,e,n){"use strict";if(n.d(e,{g:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(87456);function i(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])}))}))}function o(t,e){var n=t.length-1,o=[],a=0,s=0,u=i(t);return u.forEach((function(i,a){t.slice(1).forEach((function(i,o){s+=(0,r.y)(t[(a+o)%n].slice(-2),e[o%n].slice(-2))})),o[a]=s,s=0})),a=o.indexOf(Math.min.apply(null,o)),u[a]}},13565:function(t,e,n){"use strict";if(n.d(e,{D:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(97582);if(/^(539|826)$/.test(n.j))var i=n(84040);function o(t,e){return(0,i.s)(t,void 0,(0,r.__assign)((0,r.__assign)({},e),{bbox:!1,length:!0})).length}},10677:function(t,e,n){"use strict";if(n.d(e,{b:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(81583);function i(t){return(0,r.n)(t)&&t.every((function(t){var e=t[0];return e===e.toUpperCase()}))}},59197:function(t,e,n){"use strict";if(n.d(e,{H:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(6437);function i(t){return(0,r.y)(t)&&t.every((function(t){var e=t[0];return"MC".includes(e)}))}},6437:function(t,e,n){"use strict";if(n.d(e,{y:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(10677);function i(t){return(0,r.b)(t)&&t.every((function(t){var e=t[0];return"ACLMQZ".includes(e)}))}},81583:function(t,e,n){"use strict";if(n.d(e,{n:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(97738);function i(t){return Array.isArray(t)&&t.every((function(t){var e=t[0].toLowerCase();return r.R[e]===t.length-1&&"achlmqstvz".includes(e)}))}},74323:function(t,e,n){"use strict";if(n.d(e,{D:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(88362);function i(t,e){var n=(0,r.S)(t,e).distance;return Math.abs(n)<.001}},68983:function(t,e,n){"use strict";function r(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return[r+(o-r)*n,i+(a-i)*n]}n.d(e,{k:function(){return r}})},84040:function(t,e,n){"use strict";if(n.d(e,{s:function(){return u}}),/^(539|826)$/.test(n.j))var r=n(11766);if(/^(539|826)$/.test(n.j))var i=n(20541);if(/^(539|826)$/.test(n.j))var o=n(10505);if(/^(539|826)$/.test(n.j))var a=n(96734);if(/^(539|826)$/.test(n.j))var s=n(54190);function u(t,e,n){for(var u,l,c,f,h,d,p,g,v,m=(0,r.A)(t),y="number"===typeof e,b=[],x=0,_=0,w=0,S=0,E=[],T=[],k=0,C={x:0,y:0},M=C,A=C,I=C,O=0,D=0,P=m.length;D<P;D+=1)v=m[D],g=v[0],p="M"===g,b=p?b:[x,_].concat(v.slice(1)),p?(w=v[1],S=v[2],C={x:w,y:S},M=C,k=0,y&&e<.001&&(I=C)):"L"===g?(u=(0,i.s)(b[0],b[1],b[2],b[3],(e||0)-O),k=u.length,C=u.min,M=u.max,A=u.point):"A"===g?(l=(0,o.w)(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],(e||0)-O,n||{}),k=l.length,C=l.min,M=l.max,A=l.point):"C"===g?(c=(0,a.S)(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],(e||0)-O,n||{}),k=c.length,C=c.min,M=c.max,A=c.point):"Q"===g?(f=(0,s.b)(b[0],b[1],b[2],b[3],b[4],b[5],(e||0)-O,n||{}),k=f.length,C=f.min,M=f.max,A=f.point):"Z"===g&&(b=[x,_,w,S],h=(0,i.s)(b[0],b[1],b[2],b[3],(e||0)-O),k=h.length,C=h.min,M=h.max,A=h.point),y&&O<e&&O+k>=e&&(I=A),T.push(M),E.push(C),O+=k,d="Z"!==g?v.slice(-2):[w,S],x=d[0],_=d[1];return y&&e>=O&&(I={x:x,y:_}),{length:O,point:I,min:{x:Math.min.apply(null,E.map((function(t){return t.x}))),y:Math.min.apply(null,E.map((function(t){return t.y})))},max:{x:Math.max.apply(null,T.map((function(t){return t.x}))),y:Math.max.apply(null,T.map((function(t){return t.y})))}}}},46950:function(t,e,n){"use strict";function r(t,e,n){var r=t*Math.cos(n)-e*Math.sin(n),i=t*Math.sin(n)+e*Math.cos(n);return{x:r,y:i}}n.d(e,{c:function(){return r}})},10505:function(t,e,n){"use strict";if(n.d(e,{w:function(){return s}}),/^(539|826)$/.test(n.j))var r=n(20541);if(/^(539|826)$/.test(n.j))var i=n(87456);function o(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))),u=n*o-r*i<0?-1:1,l=u*Math.acos(a/s);return l}function a(t,e,n,i,a,s,u,l,c,f){var h=Math.abs,d=Math.sin,p=Math.cos,g=Math.sqrt,v=Math.PI,m=h(n),y=h(i),b=(a%360+360)%360,x=b*(v/180);if(t===l&&e===c)return{x:t,y:e};if(0===m||0===y)return(0,r.s)(t,e,l,c,f).point;var _=(t-l)/2,w=(e-c)/2,S={x:p(x)*_+d(x)*w,y:-d(x)*_+p(x)*w},E=Math.pow(S.x,2)/Math.pow(m,2)+Math.pow(S.y,2)/Math.pow(y,2);E>1&&(m*=g(E),y*=g(E));var T=Math.pow(m,2)*Math.pow(y,2)-Math.pow(m,2)*Math.pow(S.y,2)-Math.pow(y,2)*Math.pow(S.x,2),k=Math.pow(m,2)*Math.pow(S.y,2)+Math.pow(y,2)*Math.pow(S.x,2),C=T/k;C=C<0?0:C;var M=(s!==u?1:-1)*g(C),A={x:M*(m*S.y/y),y:M*(-y*S.x/m)},I={x:p(x)*A.x-d(x)*A.y+(t+l)/2,y:d(x)*A.x+p(x)*A.y+(e+c)/2},O={x:(S.x-A.x)/m,y:(S.y-A.y)/y},D=o({x:1,y:0},O),P={x:(-S.x-A.x)/m,y:(-S.y-A.y)/y},L=o(O,P);!u&&L>0?L-=2*v:u&&L<0&&(L+=2*v),L%=2*v;var N=D+L*f,R=m*p(N),j=y*d(N),F={x:p(x)*R-d(x)*j+I.x,y:d(x)*R+p(x)*j+I.y};return F}function s(t,e,n,r,o,s,u,l,c,f,h){var d,p=h.bbox,g=void 0===p||p,v=h.length,m=void 0===v||v,y=h.sampleSize,b=void 0===y?30:y,x="number"===typeof f,_=t,w=e,S=0,E=[_,w,S],T=[_,w],k=0,C={x:0,y:0},M=[{x:_,y:w}];x&&f<=0&&(C={x:_,y:w});for(var A=0;A<=b;A+=1){if(k=A/b,d=a(t,e,n,r,o,s,u,l,c,k),_=d.x,w=d.y,g&&M.push({x:_,y:w}),m&&(S+=(0,i.y)(T,[_,w])),T=[_,w],x&&S>=f&&f>E[2]){var I=(S-f)/(S-E[2]);C={x:T[0]*(1-I)+E[0]*I,y:T[1]*(1-I)+E[1]*I}}E=[_,w,S]}return x&&f>=S&&(C={x:l,y:c}),{length:S,point:C,min:{x:Math.min.apply(null,M.map((function(t){return t.x}))),y:Math.min.apply(null,M.map((function(t){return t.y})))},max:{x:Math.max.apply(null,M.map((function(t){return t.x}))),y:Math.max.apply(null,M.map((function(t){return t.y})))}}}},96734:function(t,e,n){"use strict";if(n.d(e,{S:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(87456);function i(t,e,n,r,i,o,a,s,u){var l=1-u;return{x:Math.pow(l,3)*t+3*Math.pow(l,2)*u*n+3*l*Math.pow(u,2)*i+Math.pow(u,3)*a,y:Math.pow(l,3)*e+3*Math.pow(l,2)*u*r+3*l*Math.pow(u,2)*o+Math.pow(u,3)*s}}function o(t,e,n,o,a,s,u,l,c,f){var h,d=f.bbox,p=void 0===d||d,g=f.length,v=void 0===g||g,m=f.sampleSize,y=void 0===m?10:m,b="number"===typeof c,x=t,_=e,w=0,S=[x,_,w],E=[x,_],T=0,k={x:0,y:0},C=[{x:x,y:_}];b&&c<=0&&(k={x:x,y:_});for(var M=0;M<=y;M+=1){if(T=M/y,h=i(t,e,n,o,a,s,u,l,T),x=h.x,_=h.y,p&&C.push({x:x,y:_}),v&&(w+=(0,r.y)(E,[x,_])),E=[x,_],b&&w>=c&&c>S[2]){var A=(w-c)/(w-S[2]);k={x:E[0]*(1-A)+S[0]*A,y:E[1]*(1-A)+S[1]*A}}S=[x,_,w]}return b&&c>=w&&(k={x:u,y:l}),{length:w,point:k,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})))}}}},20541:function(t,e,n){"use strict";if(n.d(e,{s:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(68983);if(/^(539|826)$/.test(n.j))var i=n(87456);function o(t,e,n,o,a){var s=(0,i.y)([t,e],[n,o]),u={x:0,y:0};if("number"===typeof a)if(a<=0)u={x:t,y:e};else if(a>=s)u={x:n,y:o};else{var l=(0,r.k)([t,e],[n,o],a/s),c=l[0],f=l[1];u={x:c,y:f}}return{length:s,point:u,min:{x:Math.min(t,n),y:Math.min(e,o)},max:{x:Math.max(t,n),y:Math.max(e,o)}}}},54190:function(t,e,n){"use strict";if(n.d(e,{b:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(87456);function i(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 o(t,e,n,o,a,s,u,l){var c,f=l.bbox,h=void 0===f||f,d=l.length,p=void 0===d||d,g=l.sampleSize,v=void 0===g?10:g,m="number"===typeof u,y=t,b=e,x=0,_=[y,b,x],w=[y,b],S=0,E={x:0,y:0},T=[{x:y,y:b}];m&&u<=0&&(E={x:y,y:b});for(var k=0;k<=v;k+=1){if(S=k/v,c=i(t,e,n,o,a,s,S),y=c.x,b=c.y,h&&T.push({x:y,y:b}),p&&(x+=(0,r.y)(w,[y,b])),w=[y,b],m&&x>=u&&u>_[2]){var C=(x-u)/(x-_[2]);E={x:w[0]*(1-C)+_[0]*C,y:w[1]*(1-C)+_[1]*C}}_=[y,b,x]}return m&&u>=x&&(E={x:a,y:s}),{length:x,point:E,min:{x:Math.min.apply(null,T.map((function(t){return t.x}))),y:Math.min.apply(null,T.map((function(t){return t.y})))},max:{x:Math.max.apply(null,T.map((function(t){return t.x}))),y:Math.max.apply(null,T.map((function(t){return t.y})))}}}},6146:function(t,e,n){"use strict";var r={value:()=>{}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new o(r)}function o(t){this._=t}function a(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function s(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function u(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r=this._,i=a(t+"",r),o=-1,l=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++o<l)if(n=(t=i[o]).type)r[n]=u(r[n],t.name,e);else if(null==e)for(n in r)r[n]=u(r[n],t.name,null);return this}while(++o<l)if((n=(t=i[o]).type)&&(n=s(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(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(r=this._[t],o=0,n=r.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)}},e.Z=/^(539|826)$/.test(n.j)?i:null},17070:function(t,e,n){"use strict";function r(t,e){var n,r=1;function i(){var i,o,a=n.length,s=0,u=0;for(i=0;i<a;++i)o=n[i],s+=o.x,u+=o.y;for(s=(s/a-t)*r,u=(u/a-e)*r,i=0;i<a;++i)o=n[i],o.x-=s,o.y-=u}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}n.d(e,{Z:function(){return r}})},73330:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return u}}),/^(539|826)$/.test(n.j))var r=n(29120);if(/^(539|826)$/.test(n.j))var i=n(11527);if(/^(539|826)$/.test(n.j))var o=n(43679);function a(t){return t.x+t.vx}function s(t){return t.y+t.vy}function u(t){var e,n,u,l=1,c=1;function f(){for(var t,i,f,d,p,g,v,m=e.length,y=0;y<c;++y)for(i=(0,r.Z)(e,a,s).visitAfter(h),t=0;t<m;++t)f=e[t],g=n[f.index],v=g*g,d=f.x+f.vx,p=f.y+f.vy,i.visit(b);function b(t,e,n,r,i){var a=t.data,s=t.r,c=g+s;if(!a)return e>d+c||r<d-c||n>p+c||i<p-c;if(a.index>f.index){var h=d-a.x-a.vx,m=p-a.y-a.vy,y=h*h+m*m;y<c*c&&(0===h&&(h=(0,o.Z)(u),y+=h*h),0===m&&(m=(0,o.Z)(u),y+=m*m),y=(c-(y=Math.sqrt(y)))/y*l,f.vx+=(h*=y)*(c=(s*=s)/(v+s)),f.vy+=(m*=y)*c,a.vx-=h*(c=1-c),a.vy-=m*c)}}}function h(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 d(){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=(0,i.Z)(null==t?1:+t)),f.initialize=function(t,n){e=t,u=n,d()},f.iterations=function(t){return arguments.length?(c=+t,f):c},f.strength=function(t){return arguments.length?(l=+t,f):l},f.radius=function(e){return arguments.length?(t="function"===typeof e?e:(0,i.Z)(+e),d(),f):t},f}},11527:function(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{Z:function(){return r}})},61614:function(t,e,n){"use strict";if(n.r(e),n.d(e,{forceCenter:function(){return r.Z},forceCollide:function(){return i.Z},forceLink:function(){return o.Z},forceManyBody:function(){return a.Z},forceRadial:function(){return s.Z},forceSimulation:function(){return u.Z},forceX:function(){return l.Z},forceY:function(){return c.Z}}),/^(539|826)$/.test(n.j))var r=n(17070);if(/^(539|826)$/.test(n.j))var i=n(73330);if(/^(539|826)$/.test(n.j))var o=n(39527);if(/^(539|826)$/.test(n.j))var a=n(39823);if(/^(539|826)$/.test(n.j))var s=n(52705);if(/^(539|826)$/.test(n.j))var u=n(83780);if(/^(539|826)$/.test(n.j))var l=n(52533);if(/^(539|826)$/.test(n.j))var c=n(73135)},43679:function(t,e,n){"use strict";function r(t){return 1e-6*(t()-.5)}n.d(e,{Z:function(){return r}})},77561:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});const r=1664525,i=1013904223,o=4294967296;function a(){let t=1;return()=>(t=(r*t+i)%o)/o}},39527:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return s}}),/^(539|826)$/.test(n.j))var r=n(11527);if(/^(539|826)$/.test(n.j))var i=n(43679);function o(t){return t.index}function a(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function s(t){var e,n,s,u,l,c,f=o,h=g,d=(0,r.Z)(30),p=1;function g(t){return 1/Math.min(u[t.source.index],u[t.target.index])}function v(r){for(var o=0,a=t.length;o<p;++o)for(var s,u,f,h,d,g,v,m=0;m<a;++m)s=t[m],u=s.source,f=s.target,h=f.x+f.vx-u.x-u.vx||(0,i.Z)(c),d=f.y+f.vy-u.y-u.vy||(0,i.Z)(c),g=Math.sqrt(h*h+d*d),g=(g-n[m])/g*r*e[m],h*=g,d*=g,f.vx-=h*(v=l[m]),f.vy-=d*v,u.vx+=h*(v=1-v),u.vy+=d*v}function m(){if(s){var r,i,o=s.length,c=t.length,h=new Map(s.map(((t,e)=>[f(t,e,s),t])));for(r=0,u=new Array(o);r<c;++r)i=t[r],i.index=r,"object"!==typeof i.source&&(i.source=a(h,i.source)),"object"!==typeof i.target&&(i.target=a(h,i.target)),u[i.source.index]=(u[i.source.index]||0)+1,u[i.target.index]=(u[i.target.index]||0)+1;for(r=0,l=new Array(c);r<c;++r)i=t[r],l[r]=u[i.source.index]/(u[i.source.index]+u[i.target.index]);e=new Array(c),y(),n=new Array(c),b()}}function y(){if(s)for(var n=0,r=t.length;n<r;++n)e[n]=+h(t[n],n,t)}function b(){if(s)for(var e=0,r=t.length;e<r;++e)n[e]=+d(t[e],e,t)}return null==t&&(t=[]),v.initialize=function(t,e){s=t,c=e,m()},v.links=function(e){return arguments.length?(t=e,m(),v):t},v.id=function(t){return arguments.length?(f=t,v):f},v.iterations=function(t){return arguments.length?(p=+t,v):p},v.strength=function(t){return arguments.length?(h="function"===typeof t?t:(0,r.Z)(+t),y(),v):h},v.distance=function(t){return arguments.length?(d="function"===typeof t?t:(0,r.Z)(+t),b(),v):d},v}},39823:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return s}}),/^(539|826)$/.test(n.j))var r=n(29120);if(/^(539|826)$/.test(n.j))var i=n(11527);if(/^(539|826)$/.test(n.j))var o=n(43679);if(/^(539|826)$/.test(n.j))var a=n(83780);function s(){var t,e,n,s,u,l=(0,i.Z)(-30),c=1,f=1/0,h=.81;function d(n){var i,o=t.length,u=(0,r.Z)(t,a.x,a.y).visitAfter(g);for(s=n,i=0;i<o;++i)e=t[i],u.visit(v)}function p(){if(t){var e,n,r=t.length;for(u=new Array(r),e=0;e<r;++e)n=t[e],u[n.index]=+l(n,e,t)}}function g(t){var e,n,r,i,o,a=0,s=0;if(t.length){for(r=i=o=0;o<4;++o)(e=t[o])&&(n=Math.abs(e.value))&&(a+=e.value,s+=n,r+=n*e.x,i+=n*e.y);t.x=r/s,t.y=i/s}else{e=t,e.x=e.data.x,e.y=e.data.y;do{a+=u[e.data.index]}while(e=e.next)}t.value=a}function v(t,r,i,a){if(!t.value)return!0;var l=t.x-e.x,d=t.y-e.y,p=a-r,g=l*l+d*d;if(p*p/h<g)return g<f&&(0===l&&(l=(0,o.Z)(n),g+=l*l),0===d&&(d=(0,o.Z)(n),g+=d*d),g<c&&(g=Math.sqrt(c*g)),e.vx+=l*t.value*s/g,e.vy+=d*t.value*s/g),!0;if(!(t.length||g>=f)){(t.data!==e||t.next)&&(0===l&&(l=(0,o.Z)(n),g+=l*l),0===d&&(d=(0,o.Z)(n),g+=d*d),g<c&&(g=Math.sqrt(c*g)));do{t.data!==e&&(p=u[t.data.index]*s/g,e.vx+=l*p,e.vy+=d*p)}while(t=t.next)}}return d.initialize=function(e,r){t=e,n=r,p()},d.strength=function(t){return arguments.length?(l="function"===typeof t?t:(0,i.Z)(+t),p(),d):l},d.distanceMin=function(t){return arguments.length?(c=t*t,d):Math.sqrt(c)},d.distanceMax=function(t){return arguments.length?(f=t*t,d):Math.sqrt(f)},d.theta=function(t){return arguments.length?(h=t*t,d):Math.sqrt(h)},d}},52705:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(11527);function i(t,e,n){var i,o,a,s=(0,r.Z)(.1);function u(t){for(var r=0,s=i.length;r<s;++r){var u=i[r],l=u.x-e||1e-6,c=u.y-n||1e-6,f=Math.sqrt(l*l+c*c),h=(a[r]-f)*o[r]*t/f;u.vx+=l*h,u.vy+=c*h}}function l(){if(i){var e,n=i.length;for(o=new Array(n),a=new Array(n),e=0;e<n;++e)a[e]=+t(i[e],e,i),o[e]=isNaN(a[e])?0:+s(i[e],e,i)}}return"function"!==typeof t&&(t=(0,r.Z)(+t)),null==e&&(e=0),null==n&&(n=0),u.initialize=function(t){i=t,l()},u.strength=function(t){return arguments.length?(s="function"===typeof t?t:(0,r.Z)(+t),l(),u):s},u.radius=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),l(),u):t},u.x=function(t){return arguments.length?(e=+t,u):e},u.y=function(t){return arguments.length?(n=+t,u):n},u}},83780:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return c},x:function(){return a},y:function(){return s}}),/^(539|826)$/.test(n.j))var r=n(6146);if(/^(539|826)$/.test(n.j))var i=n(78612);if(/^(539|826)$/.test(n.j))var o=n(77561);function a(t){return t.x}function s(t){return t.y}var u=10,l=Math.PI*(3-Math.sqrt(5));function c(t){var e,n=1,a=.001,s=1-Math.pow(a,1/300),c=0,f=.6,h=new Map,d=(0,i.HT)(v),p=(0,r.Z)("tick","end"),g=(0,o.Z)();function v(){m(),p.call("tick",e),n<a&&(d.stop(),p.call("end",e))}function m(r){var i,o,a=t.length;void 0===r&&(r=1);for(var u=0;u<r;++u)for(n+=(c-n)*s,h.forEach((function(t){t(n)})),i=0;i<a;++i)o=t[i],null==o.fx?o.x+=o.vx*=f:(o.x=o.fx,o.vx=0),null==o.fy?o.y+=o.vy*=f:(o.y=o.fy,o.vy=0);return e}function y(){for(var e,n=0,r=t.length;n<r;++n){if(e=t[n],e.index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=u*Math.sqrt(.5+n),o=n*l;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function b(e){return e.initialize&&e.initialize(t,g),e}return null==t&&(t=[]),y(),e={tick:m,restart:function(){return d.restart(v),e},stop:function(){return d.stop(),e},nodes:function(n){return arguments.length?(t=n,y(),h.forEach(b),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(a=+t,e):a},alphaDecay:function(t){return arguments.length?(s=+t,e):+s},alphaTarget:function(t){return arguments.length?(c=+t,e):c},velocityDecay:function(t){return arguments.length?(f=1-t,e):1-f},randomSource:function(t){return arguments.length?(g=t,h.forEach(b),e):g},force:function(t,n){return arguments.length>1?(null==n?h.delete(t):h.set(t,b(n)),e):h.get(t)},find:function(e,n,r){var i,o,a,s,u,l=0,c=t.length;for(null==r?r=1/0:r*=r,l=0;l<c;++l)s=t[l],i=e-s.x,o=n-s.y,a=i*i+o*o,a<r&&(u=s,r=a);return u},on:function(t,n){return arguments.length>1?(p.on(t,n),e):p.on(t)}}}},52533:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(11527);function i(t){var e,n,i,o=(0,r.Z)(.1);function a(t){for(var r,o=0,a=e.length;o<a;++o)r=e[o],r.vx+=(i[o]-r.x)*n[o]*t}function s(){if(e){var r,a=e.length;for(n=new Array(a),i=new Array(a),r=0;r<a;++r)n[r]=isNaN(i[r]=+t(e[r],r,e))?0:+o(e[r],r,e)}}return"function"!==typeof t&&(t=(0,r.Z)(null==t?0:+t)),a.initialize=function(t){e=t,s()},a.strength=function(t){return arguments.length?(o="function"===typeof t?t:(0,r.Z)(+t),s(),a):o},a.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),s(),a):t},a}},73135:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(11527);function i(t){var e,n,i,o=(0,r.Z)(.1);function a(t){for(var r,o=0,a=e.length;o<a;++o)r=e[o],r.vy+=(i[o]-r.y)*n[o]*t}function s(){if(e){var r,a=e.length;for(n=new Array(a),i=new Array(a),r=0;r<a;++r)n[r]=isNaN(i[r]=+t(e[r],r,e))?0:+o(e[r],r,e)}}return"function"!==typeof t&&(t=(0,r.Z)(null==t?0:+t)),a.initialize=function(t){e=t,s()},a.strength=function(t){return arguments.length?(o="function"===typeof t?t:(0,r.Z)(+t),s(),a):o},a.y=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),s(),a):t},a}},76749:function(t,e,n){"use strict";if(n.r(e),n.d(e,{quadtree:function(){return r.Z}}),/^(539|826)$/.test(n.j))var r=n(29120)},19453:function(t,e,n){"use strict";function r(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}n.d(e,{Z:function(){return r}})},29120:function(t,e,n){"use strict";function r(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return i(this.cover(e,n),e,n,t)}function i(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,a,s,u,l,c,f,h,d=t._root,p={data:r},g=t._x0,v=t._y0,m=t._x1,y=t._y1;if(!d)return t._root=p,t;while(d.length)if((l=e>=(o=(g+m)/2))?g=o:m=o,(c=n>=(a=(v+y)/2))?v=a:y=a,i=d,!(d=d[f=c<<1|l]))return i[f]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(l=e>=(o=(g+m)/2))?g=o:m=o,(c=n>=(a=(v+y)/2))?v=a:y=a}while((f=c<<1|l)===(h=(u>=a)<<1|s>=o));return i[h]=d,i[f]=p,t}function o(t){var e,n,r,o,a=t.length,s=new Array(a),u=new Array(a),l=1/0,c=1/0,f=-1/0,h=-1/0;for(n=0;n<a;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(o=+this._y.call(null,e))||(s[n]=r,u[n]=o,r<l&&(l=r),r>f&&(f=r),o<c&&(c=o),o>h&&(h=o));if(l>f||c>h)return this;for(this.cover(l,c).cover(f,h),n=0;n<a;++n)i(this,s[n],u[n],t[n]);return this}function a(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{var a,s,u=i-n||1,l=this._root;while(n>t||t>=i||r>e||e>=o)switch(s=(e<r)<<1|t<n,a=new Array(4),a[s]=l,l=a,u*=2,s){case 0:i=n+u,o=r+u;break;case 1:n=i-u,o=r+u;break;case 2:i=n+u,r=o-u;break;case 3:n=i-u,r=o-u;break}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this}function s(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t}function u(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]]}n.d(e,{Z:function(){return _}});var l=n(19453);function c(t,e,n){var r,i,o,a,s,u,c,f=this._x0,h=this._y0,d=this._x1,p=this._y1,g=[],v=this._root;v&&g.push(new l.Z(v,f,h,d,p)),null==n?n=1/0:(f=t-n,h=e-n,d=t+n,p=e+n,n*=n);while(u=g.pop())if(!(!(v=u.node)||(i=u.x0)>d||(o=u.y0)>p||(a=u.x1)<f||(s=u.y1)<h))if(v.length){var m=(i+a)/2,y=(o+s)/2;g.push(new l.Z(v[3],m,y,a,s),new l.Z(v[2],i,y,m,s),new l.Z(v[1],m,o,a,y),new l.Z(v[0],i,o,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),x=e-+this._y.call(null,v.data),_=b*b+x*x;if(_<n){var w=Math.sqrt(n=_);f=t-w,h=e-w,d=t+w,p=e+w,r=v.data}}return r}function f(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,u,l,c,f,h,d=this._root,p=this._x0,g=this._y0,v=this._x1,m=this._y1;if(!d)return this;if(d.length)while(1){if((l=o>=(s=(p+v)/2))?p=s:v=s,(c=a>=(u=(g+m)/2))?g=u:m=u,e=d,!(d=d[f=c<<1|l]))return this;if(!d.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,h=f)}while(d.data!==t)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[f]=i:delete e[f],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)}function h(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}function d(){return this._root}function p(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t}function g(t){var e,n,r,i,o,a,s=[],u=this._root;u&&s.push(new l.Z(u,this._x0,this._y0,this._x1,this._y1));while(e=s.pop())if(!t(u=e.node,r=e.x0,i=e.y0,o=e.x1,a=e.y1)&&u.length){var c=(r+o)/2,f=(i+a)/2;(n=u[3])&&s.push(new l.Z(n,c,f,o,a)),(n=u[2])&&s.push(new l.Z(n,r,f,c,a)),(n=u[1])&&s.push(new l.Z(n,c,i,o,f)),(n=u[0])&&s.push(new l.Z(n,r,i,c,f))}return this}function v(t){var e,n=[],r=[];this._root&&n.push(new l.Z(this._root,this._x0,this._y0,this._x1,this._y1));while(e=n.pop()){var i=e.node;if(i.length){var o,a=e.x0,s=e.y0,u=e.x1,c=e.y1,f=(a+u)/2,h=(s+c)/2;(o=i[0])&&n.push(new l.Z(o,a,s,f,h)),(o=i[1])&&n.push(new l.Z(o,f,s,u,h)),(o=i[2])&&n.push(new l.Z(o,a,h,f,c)),(o=i[3])&&n.push(new l.Z(o,f,h,u,c))}r.push(e)}while(e=r.pop())t(e.node,e.x0,e.y0,e.x1,e.y1);return this}function m(t){return t[0]}function y(t){return arguments.length?(this._x=t,this):this._x}function b(t){return t[1]}function x(t){return arguments.length?(this._y=t,this):this._y}function _(t,e,n){var r=new w(null==e?m:e,null==n?b:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function w(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 S(t){var e={data:t.data},n=e;while(t=t.next)n=n.next={data:t.data};return e}var E=_.prototype=w.prototype;E.copy=function(){var t,e,n=new w(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=S(r),n;t=[{source:r,target:n._root=new Array(4)}];while(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]=S(e));return n},E.add=r,E.addAll=o,E.cover=a,E.data=s,E.extent=u,E.find=c,E.remove=f,E.removeAll=h,E.root=d,E.size=p,E.visit=g,E.visitAfter=v,E.x=y,E.y=x},78612:function(t,e,n){"use strict";n.d(e,{HT:function(){return m}});var r,i,o=0,a=0,s=0,u=1e3,l=0,c=0,f=0,h="object"===typeof performance&&performance.now?performance:Date,d="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function p(){return c||(d(g),c=h.now()+f)}function g(){c=0}function v(){this._call=this._time=this._next=null}function m(t,e,n){var r=new v;return r.restart(t,e,n),r}function y(){p(),++o;var t,e=r;while(e)(t=c-e._time)>=0&&e._call.call(null,t),e=e._next;--o}function b(){c=(l=h.now())+f,o=a=0;try{y()}finally{o=0,_(),c=0}}function x(){var t=h.now(),e=t-l;e>u&&(f-=e,l=t)}function _(){var t,e,n=r,o=1/0;while(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,w(o)}function w(t){if(!o){a&&(a=clearTimeout(a));var e=t-c;e>24?(t<1/0&&(a=setTimeout(b,t-h.now()-f)),s&&(s=clearInterval(s))):(s||(l=h.now(),s=setInterval(x,u)),o=1,d(b))}}v.prototype=m.prototype={constructor:v,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?p():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},91510:function(t,e,n){"use strict";if(n.d(e,{Q:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(76838);function i(t,e=t,n={}){t=new r.Z(t);let i=!1;if("object"!==typeof e||r.Z.isMatrix(e)||Array.isArray(e)?e=new r.Z(e):(n=e,e=t,i=!0),t.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:o=!0,scale:a=!0}=n;o&&(t.center("column"),i||e.center("column")),a&&(t.scale("column"),i||e.scale("column"));const s=t.standardDeviation("column",{unbiased:!0}),u=i?s:e.standardDeviation("column",{unbiased:!0}),l=t.transpose().mmul(e);for(let r=0;r<l.rows;r++)for(let e=0;e<l.columns;e++)l.set(r,e,l.get(r,e)*(1/(s[r]*u[e]))*(1/(t.rows-1)));return l}},88928:function(t,e,n){"use strict";if(n.d(e,{A:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(76838);function i(t,e=t,n={}){t=new r.Z(t);let i=!1;if("object"!==typeof e||r.Z.isMatrix(e)||Array.isArray(e)?e=new r.Z(e):(n=e,e=t,i=!0),t.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:o=!0}=n;o&&(t=t.center("column"),i||(e=e.center("column")));const a=t.transpose().mmul(e);for(let r=0;r<a.rows;r++)for(let e=0;e<a.columns;e++)a.set(r,e,a.get(r,e)*(1/(t.rows-1)));return a}},21540:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(76838);if(/^(539|826)$/.test(n.j))var i=n(70293);class o{constructor(t){if(t=i.Z.checkMatrix(t),!t.isSymmetric())throw new Error("Matrix is not symmetric");let e,n,o,a=t,s=a.rows,u=new r.Z(s,s),l=!0;for(n=0;n<s;n++){let t=0;for(o=0;o<n;o++){let r=0;for(e=0;e<o;e++)r+=u.get(o,e)*u.get(n,e);r=(a.get(n,o)-r)/u.get(o,o),u.set(n,o,r),t+=r*r}for(t=a.get(n,n)-t,l&=t>0,u.set(n,n,Math.sqrt(Math.max(t,0))),o=n+1;o<s;o++)u.set(n,o,0)}this.L=u,this.positiveDefinite=Boolean(l)}isPositiveDefinite(){return this.positiveDefinite}solve(t){t=i.Z.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,o,a,s=t.columns,u=t.clone();for(a=0;a<n;a++)for(o=0;o<s;o++){for(r=0;r<a;r++)u.set(a,o,u.get(a,o)-u.get(r,o)*e.get(a,r));u.set(a,o,u.get(a,o)/e.get(a,a))}for(a=n-1;a>=0;a--)for(o=0;o<s;o++){for(r=a+1;r<n;r++)u.set(a,o,u.get(a,o)-u.get(r,o)*e.get(r,a));u.set(a,o,u.get(a,o)/e.get(a,a))}return u}get lowerTriangularMatrix(){return this.L}}},43432:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return a}}),/^(539|826)$/.test(n.j))var r=n(76838);if(/^(539|826)$/.test(n.j))var i=n(70293);if(/^(539|826)$/.test(n.j))var o=n(63156);class a{constructor(t,e={}){const{assumeSymmetric:n=!1}=e;if(t=i.Z.checkMatrix(t),!t.isSquare())throw new Error("Matrix is not a square matrix");let o,a,f=t.columns,h=new r.Z(f,f),d=new Float64Array(f),p=new Float64Array(f),g=t,v=!1;if(v=!!n||t.isSymmetric(),v){for(o=0;o<f;o++)for(a=0;a<f;a++)h.set(o,a,g.get(o,a));s(f,p,d,h),u(f,p,d,h)}else{let t=new r.Z(f,f),e=new Float64Array(f);for(a=0;a<f;a++)for(o=0;o<f;o++)t.set(o,a,g.get(o,a));l(f,t,e,h),c(f,p,d,h,t)}this.n=f,this.e=p,this.d=d,this.V=h}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,i=this.e,o=this.d,a=new r.Z(n,n);for(t=0;t<n;t++){for(e=0;e<n;e++)a.set(t,e,0);a.set(t,t,o[t]),i[t]>0?a.set(t,t+1,i[t]):i[t]<0&&a.set(t,t-1,i[t])}return a}}function s(t,e,n,r){let i,o,a,s,u,l,c,f;for(u=0;u<t;u++)n[u]=r.get(t-1,u);for(s=t-1;s>0;s--){for(f=0,a=0,l=0;l<s;l++)f+=Math.abs(n[l]);if(0===f)for(e[s]=n[s-1],u=0;u<s;u++)n[u]=r.get(s-1,u),r.set(s,u,0),r.set(u,s,0);else{for(l=0;l<s;l++)n[l]/=f,a+=n[l]*n[l];for(i=n[s-1],o=Math.sqrt(a),i>0&&(o=-o),e[s]=f*o,a-=i*o,n[s-1]=i-o,u=0;u<s;u++)e[u]=0;for(u=0;u<s;u++){for(i=n[u],r.set(u,s,i),o=e[u]+r.get(u,u)*i,l=u+1;l<=s-1;l++)o+=r.get(l,u)*n[l],e[l]+=r.get(l,u)*i;e[u]=o}for(i=0,u=0;u<s;u++)e[u]/=a,i+=e[u]*n[u];for(c=i/(a+a),u=0;u<s;u++)e[u]-=c*n[u];for(u=0;u<s;u++){for(i=n[u],o=e[u],l=u;l<=s-1;l++)r.set(l,u,r.get(l,u)-(i*e[l]+o*n[l]));n[u]=r.get(s-1,u),r.set(s,u,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),a=n[s+1],0!==a){for(l=0;l<=s;l++)n[l]=r.get(l,s+1)/a;for(u=0;u<=s;u++){for(o=0,l=0;l<=s;l++)o+=r.get(l,s+1)*r.get(l,u);for(l=0;l<=s;l++)r.set(l,u,r.get(l,u)-o*n[l])}}for(l=0;l<=s;l++)r.set(l,s+1,0)}for(u=0;u<t;u++)n[u]=r.get(t-1,u),r.set(t-1,u,0);r.set(t-1,t-1,1),e[0]=0}function u(t,e,n,r){let i,a,s,u,l,c,f,h,d,p,g,v,m,y,b,x,_;for(s=1;s<t;s++)e[s-1]=e[s];e[t-1]=0;let w=0,S=0,E=Number.EPSILON;for(c=0;c<t;c++){S=Math.max(S,Math.abs(n[c])+Math.abs(e[c])),f=c;while(f<t){if(Math.abs(e[f])<=E*S)break;f++}if(f>c){_=0;do{for(_+=1,i=n[c],h=(n[c+1]-i)/(2*e[c]),d=(0,o.G)(h,1),h<0&&(d=-d),n[c]=e[c]/(h+d),n[c+1]=e[c]*(h+d),p=n[c+1],a=i-n[c],s=c+2;s<t;s++)n[s]-=a;for(w+=a,h=n[f],g=1,v=g,m=g,y=e[c+1],b=0,x=0,s=f-1;s>=c;s--)for(m=v,v=g,x=b,i=g*e[s],a=g*h,d=(0,o.G)(h,e[s]),e[s+1]=b*d,b=e[s]/d,g=h/d,h=g*n[s]-b*i,n[s+1]=a+b*(g*i+b*n[s]),l=0;l<t;l++)a=r.get(l,s+1),r.set(l,s+1,b*r.get(l,s)+g*a),r.set(l,s,g*r.get(l,s)-b*a);h=-b*x*m*y*e[c]/p,e[c]=b*h,n[c]=g*h}while(Math.abs(e[c])>E*S)}n[c]=n[c]+w,e[c]=0}for(s=0;s<t-1;s++){for(l=s,h=n[s],u=s+1;u<t;u++)n[u]<h&&(l=u,h=n[u]);if(l!==s)for(n[l]=n[s],n[s]=h,u=0;u<t;u++)h=r.get(u,s),r.set(u,s,r.get(u,l)),r.set(u,l,h)}}function l(t,e,n,r){let i,o,a,s,u,l,c,f=0,h=t-1;for(l=f+1;l<=h-1;l++){for(c=0,s=l;s<=h;s++)c+=Math.abs(e.get(s,l-1));if(0!==c){for(a=0,s=h;s>=l;s--)n[s]=e.get(s,l-1)/c,a+=n[s]*n[s];for(o=Math.sqrt(a),n[l]>0&&(o=-o),a-=n[l]*o,n[l]=n[l]-o,u=l;u<t;u++){for(i=0,s=h;s>=l;s--)i+=n[s]*e.get(s,u);for(i/=a,s=l;s<=h;s++)e.set(s,u,e.get(s,u)-i*n[s])}for(s=0;s<=h;s++){for(i=0,u=h;u>=l;u--)i+=n[u]*e.get(s,u);for(i/=a,u=l;u<=h;u++)e.set(s,u,e.get(s,u)-i*n[u])}n[l]=c*n[l],e.set(l,l-1,c*o)}}for(s=0;s<t;s++)for(u=0;u<t;u++)r.set(s,u,s===u?1:0);for(l=h-1;l>=f+1;l--)if(0!==e.get(l,l-1)){for(s=l+1;s<=h;s++)n[s]=e.get(s,l-1);for(u=l;u<=h;u++){for(o=0,s=l;s<=h;s++)o+=n[s]*r.get(s,u);for(o=o/n[l]/e.get(l,l-1),s=l;s<=h;s++)r.set(s,u,r.get(s,u)+o*n[s])}}}function c(t,e,n,r,i){let o,a,s,u,l,c,h,d,p,g,v,m,y,b,x,_=t-1,w=0,S=t-1,E=Number.EPSILON,T=0,k=0,C=0,M=0,A=0,I=0,O=0,D=0;for(o=0;o<t;o++)for((o<w||o>S)&&(n[o]=i.get(o,o),e[o]=0),a=Math.max(o-1,0);a<t;a++)k+=Math.abs(i.get(o,a));while(_>=w){u=_;while(u>w){if(I=Math.abs(i.get(u-1,u-1))+Math.abs(i.get(u,u)),0===I&&(I=k),Math.abs(i.get(u,u-1))<E*I)break;u--}if(u===_)i.set(_,_,i.get(_,_)+T),n[_]=i.get(_,_),e[_]=0,_--,D=0;else if(u===_-1){if(h=i.get(_,_-1)*i.get(_-1,_),C=(i.get(_-1,_-1)-i.get(_,_))/2,M=C*C+h,O=Math.sqrt(Math.abs(M)),i.set(_,_,i.get(_,_)+T),i.set(_-1,_-1,i.get(_-1,_-1)+T),d=i.get(_,_),M>=0){for(O=C>=0?C+O:C-O,n[_-1]=d+O,n[_]=n[_-1],0!==O&&(n[_]=d-h/O),e[_-1]=0,e[_]=0,d=i.get(_,_-1),I=Math.abs(d)+Math.abs(O),C=d/I,M=O/I,A=Math.sqrt(C*C+M*M),C/=A,M/=A,a=_-1;a<t;a++)O=i.get(_-1,a),i.set(_-1,a,M*O+C*i.get(_,a)),i.set(_,a,M*i.get(_,a)-C*O);for(o=0;o<=_;o++)O=i.get(o,_-1),i.set(o,_-1,M*O+C*i.get(o,_)),i.set(o,_,M*i.get(o,_)-C*O);for(o=w;o<=S;o++)O=r.get(o,_-1),r.set(o,_-1,M*O+C*r.get(o,_)),r.set(o,_,M*r.get(o,_)-C*O)}else n[_-1]=d+C,n[_]=d+C,e[_-1]=O,e[_]=-O;_-=2,D=0}else{if(d=i.get(_,_),p=0,h=0,u<_&&(p=i.get(_-1,_-1),h=i.get(_,_-1)*i.get(_-1,_)),10===D){for(T+=d,o=w;o<=_;o++)i.set(o,o,i.get(o,o)-d);I=Math.abs(i.get(_,_-1))+Math.abs(i.get(_-1,_-2)),d=p=.75*I,h=-.4375*I*I}if(30===D&&(I=(p-d)/2,I=I*I+h,I>0)){for(I=Math.sqrt(I),p<d&&(I=-I),I=d-h/((p-d)/2+I),o=w;o<=_;o++)i.set(o,o,i.get(o,o)-I);T+=I,d=p=h=.964}D+=1,l=_-2;while(l>=u){if(O=i.get(l,l),A=d-O,I=p-O,C=(A*I-h)/i.get(l+1,l)+i.get(l,l+1),M=i.get(l+1,l+1)-O-A-I,A=i.get(l+2,l+1),I=Math.abs(C)+Math.abs(M)+Math.abs(A),C/=I,M/=I,A/=I,l===u)break;if(Math.abs(i.get(l,l-1))*(Math.abs(M)+Math.abs(A))<E*(Math.abs(C)*(Math.abs(i.get(l-1,l-1))+Math.abs(O)+Math.abs(i.get(l+1,l+1)))))break;l--}for(o=l+2;o<=_;o++)i.set(o,o-2,0),o>l+2&&i.set(o,o-3,0);for(s=l;s<=_-1;s++){if(b=s!==_-1,s!==l&&(C=i.get(s,s-1),M=i.get(s+1,s-1),A=b?i.get(s+2,s-1):0,d=Math.abs(C)+Math.abs(M)+Math.abs(A),0!==d&&(C/=d,M/=d,A/=d)),0===d)break;if(I=Math.sqrt(C*C+M*M+A*A),C<0&&(I=-I),0!==I){for(s!==l?i.set(s,s-1,-I*d):u!==l&&i.set(s,s-1,-i.get(s,s-1)),C+=I,d=C/I,p=M/I,O=A/I,M/=C,A/=C,a=s;a<t;a++)C=i.get(s,a)+M*i.get(s+1,a),b&&(C+=A*i.get(s+2,a),i.set(s+2,a,i.get(s+2,a)-C*O)),i.set(s,a,i.get(s,a)-C*d),i.set(s+1,a,i.get(s+1,a)-C*p);for(o=0;o<=Math.min(_,s+3);o++)C=d*i.get(o,s)+p*i.get(o,s+1),b&&(C+=O*i.get(o,s+2),i.set(o,s+2,i.get(o,s+2)-C*A)),i.set(o,s,i.get(o,s)-C),i.set(o,s+1,i.get(o,s+1)-C*M);for(o=w;o<=S;o++)C=d*r.get(o,s)+p*r.get(o,s+1),b&&(C+=O*r.get(o,s+2),r.set(o,s+2,r.get(o,s+2)-C*A)),r.set(o,s,r.get(o,s)-C),r.set(o,s+1,r.get(o,s+1)-C*M)}}}}if(0!==k){for(_=t-1;_>=0;_--)if(C=n[_],M=e[_],0===M)for(u=_,i.set(_,_,1),o=_-1;o>=0;o--){for(h=i.get(o,o)-C,A=0,a=u;a<=_;a++)A+=i.get(o,a)*i.get(a,_);if(e[o]<0)O=h,I=A;else if(u=o,0===e[o]?i.set(o,_,0!==h?-A/h:-A/(E*k)):(d=i.get(o,o+1),p=i.get(o+1,o),M=(n[o]-C)*(n[o]-C)+e[o]*e[o],c=(d*I-O*A)/M,i.set(o,_,c),i.set(o+1,_,Math.abs(d)>Math.abs(O)?(-A-h*c)/d:(-I-p*c)/O)),c=Math.abs(i.get(o,_)),E*c*c>1)for(a=o;a<=_;a++)i.set(a,_,i.get(a,_)/c)}else if(M<0)for(u=_-1,Math.abs(i.get(_,_-1))>Math.abs(i.get(_-1,_))?(i.set(_-1,_-1,M/i.get(_,_-1)),i.set(_-1,_,-(i.get(_,_)-C)/i.get(_,_-1))):(x=f(0,-i.get(_-1,_),i.get(_-1,_-1)-C,M),i.set(_-1,_-1,x[0]),i.set(_-1,_,x[1])),i.set(_,_-1,0),i.set(_,_,1),o=_-2;o>=0;o--){for(g=0,v=0,a=u;a<=_;a++)g+=i.get(o,a)*i.get(a,_-1),v+=i.get(o,a)*i.get(a,_);if(h=i.get(o,o)-C,e[o]<0)O=h,A=g,I=v;else if(u=o,0===e[o]?(x=f(-g,-v,h,M),i.set(o,_-1,x[0]),i.set(o,_,x[1])):(d=i.get(o,o+1),p=i.get(o+1,o),m=(n[o]-C)*(n[o]-C)+e[o]*e[o]-M*M,y=2*(n[o]-C)*M,0===m&&0===y&&(m=E*k*(Math.abs(h)+Math.abs(M)+Math.abs(d)+Math.abs(p)+Math.abs(O))),x=f(d*A-O*g+M*v,d*I-O*v-M*g,m,y),i.set(o,_-1,x[0]),i.set(o,_,x[1]),Math.abs(d)>Math.abs(O)+Math.abs(M)?(i.set(o+1,_-1,(-g-h*i.get(o,_-1)+M*i.get(o,_))/d),i.set(o+1,_,(-v-h*i.get(o,_)-M*i.get(o,_-1))/d)):(x=f(-A-p*i.get(o,_-1),-I-p*i.get(o,_),O,M),i.set(o+1,_-1,x[0]),i.set(o+1,_,x[1]))),c=Math.max(Math.abs(i.get(o,_-1)),Math.abs(i.get(o,_))),E*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<w||o>S)for(a=o;a<t;a++)r.set(o,a,i.get(o,a));for(a=t-1;a>=w;a--)for(o=w;o<=S;o++){for(O=0,s=w;s<=Math.min(a,S);s++)O+=r.get(o,s)*i.get(s,a);r.set(o,a,O)}}}function f(t,e,n,r){let i,o;return Math.abs(n)>Math.abs(r)?(i=r/n,o=n+i*r,[(t+i*e)/o,(e-i*t)/o]):(i=n/r,o=r+i*n,[(i*t+e)/o,(i*e-t)/o])}},5451:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(76838);if(/^(539|826)$/.test(n.j))var i=n(70293);class o{constructor(t){t=i.Z.checkMatrix(t);let e,n,r,o,a,s,u,l,c,f=t.clone(),h=f.rows,d=f.columns,p=new Float64Array(h),g=1;for(e=0;e<h;e++)p[e]=e;for(l=new Float64Array(h),n=0;n<d;n++){for(e=0;e<h;e++)l[e]=f.get(e,n);for(e=0;e<h;e++){for(c=Math.min(e,n),a=0,r=0;r<c;r++)a+=f.get(e,r)*l[r];l[e]-=a,f.set(e,n,l[e])}for(o=n,e=n+1;e<h;e++)Math.abs(l[e])>Math.abs(l[o])&&(o=e);if(o!==n){for(r=0;r<d;r++)s=f.get(o,r),f.set(o,r,f.get(n,r)),f.set(n,r,s);u=p[o],p[o]=p[n],p[n]=u,g=-g}if(n<h&&0!==f.get(n,n))for(e=n+1;e<h;e++)f.set(e,n,f.get(e,n)/f.get(n,n))}this.LU=f,this.pivotVector=p,this.pivotSign=g}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=r.Z.checkMatrix(t);let e=this.LU,n=e.rows;if(n!==t.rows)throw new Error("Invalid matrix dimensions");if(this.isSingular())throw new Error("LU matrix is singular");let i,o,a,s=t.columns,u=t.subMatrixRow(this.pivotVector,0,s-1),l=e.columns;for(a=0;a<l;a++)for(i=a+1;i<l;i++)for(o=0;o<s;o++)u.set(i,o,u.get(i,o)-u.get(a,o)*e.get(i,a));for(a=l-1;a>=0;a--){for(o=0;o<s;o++)u.set(a,o,u.get(a,o)/e.get(a,a));for(i=0;i<a;i++)for(o=0;o<s;o++)u.set(i,o,u.get(i,o)-u.get(a,o)*e.get(i,a))}return u}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,i=new r.Z(e,n);for(let r=0;r<e;r++)for(let e=0;e<n;e++)r>e?i.set(r,e,t.get(r,e)):r===e?i.set(r,e,1):i.set(r,e,0);return i}get upperTriangularMatrix(){let t=this.LU,e=t.rows,n=t.columns,i=new r.Z(e,n);for(let r=0;r<e;r++)for(let e=0;e<n;e++)r<=e?i.set(r,e,t.get(r,e)):i.set(r,e,0);return i}get pivotPermutationVector(){return Array.from(this.pivotVector)}}},64759:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(76838);if(/^(539|826)$/.test(n.j))var i=n(70293);class o{constructor(t,e={}){t=i.Z.checkMatrix(t);let{Y:n}=e;const{scaleScores:o=!1,maxIterations:a=1e3,terminationCriteria:s=1e-10}=e;let u;if(n){if(n=Array.isArray(n)&&"number"===typeof n[0]?r.Z.columnVector(n):i.Z.checkMatrix(n),!n.isColumnVector()||n.rows!==t.rows)throw new Error("Y must be a column vector of length X.rows");u=n}else u=t.getColumnVector(0);let l,c,f,h,d=1;for(let r=0;r<a&&d>s;r++)f=t.transpose().mmul(u).div(u.transpose().mmul(u).get(0,0)),f=f.div(f.norm()),l=t.mmul(f).div(f.transpose().mmul(f).get(0,0)),r>0&&(d=l.clone().sub(h).pow(2).sum()),h=l.clone(),n?(c=n.transpose().mmul(l).div(l.transpose().mmul(l).get(0,0)),c=c.div(c.norm()),u=n.mmul(c).div(c.transpose().mmul(c).get(0,0))):u=l;if(n){let e=t.transpose().mmul(l).div(l.transpose().mmul(l).get(0,0));e=e.div(e.norm());let r=t.clone().sub(l.clone().mmul(e.transpose())),i=u.transpose().mmul(l).div(l.transpose().mmul(l).get(0,0)),o=n.clone().sub(l.clone().mulS(i.get(0,0)).mmul(c.transpose()));this.t=l,this.p=e.transpose(),this.w=f.transpose(),this.q=c,this.u=u,this.s=l.transpose().mmul(l),this.xResidual=r,this.yResidual=o,this.betas=i}else this.w=f.transpose(),this.s=l.transpose().mmul(l).sqrt(),this.t=o?l.clone().div(this.s.get(0,0)):l,this.xResidual=t.sub(l.mmul(f.transpose()))}}},24542:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return a}}),/^(539|826)$/.test(n.j))var r=n(76838);if(/^(539|826)$/.test(n.j))var i=n(70293);if(/^(539|826)$/.test(n.j))var o=n(63156);class a{constructor(t){t=i.Z.checkMatrix(t);let e,n,r,a,s=t.clone(),u=t.rows,l=t.columns,c=new Float64Array(l);for(r=0;r<l;r++){let t=0;for(e=r;e<u;e++)t=(0,o.G)(t,s.get(e,r));if(0!==t){for(s.get(r,r)<0&&(t=-t),e=r;e<u;e++)s.set(e,r,s.get(e,r)/t);for(s.set(r,r,s.get(r,r)+1),n=r+1;n<l;n++){for(a=0,e=r;e<u;e++)a+=s.get(e,r)*s.get(e,n);for(a=-a/s.get(r,r),e=r;e<u;e++)s.set(e,n,s.get(e,n)+a*s.get(e,r))}}c[r]=-t}this.QR=s,this.Rdiag=c}solve(t){t=r.Z.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 i,o,a,s,u=t.columns,l=t.clone(),c=e.columns;for(a=0;a<c;a++)for(o=0;o<u;o++){for(s=0,i=a;i<n;i++)s+=e.get(i,a)*l.get(i,o);for(s=-s/e.get(a,a),i=a;i<n;i++)l.set(i,o,l.get(i,o)+s*e.get(i,a))}for(a=c-1;a>=0;a--){for(o=0;o<u;o++)l.set(a,o,l.get(a,o)/this.Rdiag[a]);for(i=0;i<a;i++)for(o=0;o<u;o++)l.set(i,o,l.get(i,o)-l.get(a,o)*e.get(i,a))}return l.subMatrix(0,c-1,0,u-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,i=n.columns,o=new r.Z(i,i);for(t=0;t<i;t++)for(e=0;e<i;e++)t<e?o.set(t,e,n.get(t,e)):t===e?o.set(t,e,this.Rdiag[t]):o.set(t,e,0);return o}get orthogonalMatrix(){let t,e,n,i,o=this.QR,a=o.rows,s=o.columns,u=new r.Z(a,s);for(n=s-1;n>=0;n--){for(t=0;t<a;t++)u.set(t,n,0);for(u.set(n,n,1),e=n;e<s;e++)if(0!==o.get(n,n)){for(i=0,t=n;t<a;t++)i+=o.get(t,n)*u.get(t,e);for(i=-i/o.get(n,n),t=n;t<a;t++)u.set(t,e,u.get(t,e)+i*o.get(t,n))}}return u}}},87406:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return a}}),/^(539|826)$/.test(n.j))var r=n(76838);if(/^(539|826)$/.test(n.j))var i=n(70293);if(/^(539|826)$/.test(n.j))var o=n(63156);class a{constructor(t,e={}){t=i.Z.checkMatrix(t);let n=t.rows,a=t.columns;const{computeLeftSingularVectors:s=!0,computeRightSingularVectors:u=!0,autoTranspose:l=!1}=e;let c,f=Boolean(s),h=Boolean(u),d=!1;if(n<a)if(l){c=t.transpose(),n=c.rows,a=c.columns,d=!0;let e=f;f=h,h=e}else c=t.clone(),console.warn("Computing SVD on a matrix with more columns than rows. Consider enabling autoTranspose");else c=t.clone();let p=Math.min(n,a),g=Math.min(n+1,a),v=new Float64Array(g),m=new r.Z(n,p),y=new r.Z(a,a),b=new Float64Array(a),x=new Float64Array(n),_=new Float64Array(g);for(let r=0;r<g;r++)_[r]=r;let w=Math.min(n-1,a),S=Math.max(0,Math.min(a-2,n)),E=Math.max(w,S);for(let r=0;r<E;r++){if(r<w){v[r]=0;for(let t=r;t<n;t++)v[r]=(0,o.G)(v[r],c.get(t,r));if(0!==v[r]){c.get(r,r)<0&&(v[r]=-v[r]);for(let t=r;t<n;t++)c.set(t,r,c.get(t,r)/v[r]);c.set(r,r,c.get(r,r)+1)}v[r]=-v[r]}for(let t=r+1;t<a;t++){if(r<w&&0!==v[r]){let e=0;for(let i=r;i<n;i++)e+=c.get(i,r)*c.get(i,t);e=-e/c.get(r,r);for(let i=r;i<n;i++)c.set(i,t,c.get(i,t)+e*c.get(i,r))}b[t]=c.get(r,t)}if(f&&r<w)for(let t=r;t<n;t++)m.set(t,r,c.get(t,r));if(r<S){b[r]=0;for(let t=r+1;t<a;t++)b[r]=(0,o.G)(b[r],b[t]);if(0!==b[r]){b[r+1]<0&&(b[r]=0-b[r]);for(let t=r+1;t<a;t++)b[t]/=b[r];b[r+1]+=1}if(b[r]=-b[r],r+1<n&&0!==b[r]){for(let t=r+1;t<n;t++)x[t]=0;for(let t=r+1;t<n;t++)for(let e=r+1;e<a;e++)x[t]+=b[e]*c.get(t,e);for(let t=r+1;t<a;t++){let e=-b[t]/b[r+1];for(let i=r+1;i<n;i++)c.set(i,t,c.get(i,t)+e*x[i])}}if(h)for(let t=r+1;t<a;t++)y.set(t,r,b[t])}}let T=Math.min(a,n+1);if(w<a&&(v[w]=c.get(w,w)),n<T&&(v[T-1]=0),S+1<T&&(b[S]=c.get(S,T-1)),b[T-1]=0,f){for(let t=w;t<p;t++){for(let e=0;e<n;e++)m.set(e,t,0);m.set(t,t,1)}for(let t=w-1;t>=0;t--)if(0!==v[t]){for(let e=t+1;e<p;e++){let r=0;for(let i=t;i<n;i++)r+=m.get(i,t)*m.get(i,e);r=-r/m.get(t,t);for(let i=t;i<n;i++)m.set(i,e,m.get(i,e)+r*m.get(i,t))}for(let e=t;e<n;e++)m.set(e,t,-m.get(e,t));m.set(t,t,1+m.get(t,t));for(let e=0;e<t-1;e++)m.set(e,t,0)}else{for(let e=0;e<n;e++)m.set(e,t,0);m.set(t,t,1)}}if(h)for(let r=a-1;r>=0;r--){if(r<S&&0!==b[r])for(let t=r+1;t<a;t++){let e=0;for(let n=r+1;n<a;n++)e+=y.get(n,r)*y.get(n,t);e=-e/y.get(r+1,r);for(let n=r+1;n<a;n++)y.set(n,t,y.get(n,t)+e*y.get(n,r))}for(let t=0;t<a;t++)y.set(t,r,0);y.set(r,r,1)}let k=T-1,C=0,M=Number.EPSILON;while(T>0){let t,e;for(t=T-2;t>=-1;t--){if(-1===t)break;const e=Number.MIN_VALUE+M*Math.abs(v[t]+Math.abs(v[t+1]));if(Math.abs(b[t])<=e||Number.isNaN(b[t])){b[t]=0;break}}if(t===T-2)e=4;else{let n;for(n=T-1;n>=t;n--){if(n===t)break;let e=(n!==T?Math.abs(b[n]):0)+(n!==t+1?Math.abs(b[n-1]):0);if(Math.abs(v[n])<=M*e){v[n]=0;break}}n===t?e=3:n===T-1?e=1:(e=2,t=n)}switch(t++,e){case 1:{let e=b[T-2];b[T-2]=0;for(let n=T-2;n>=t;n--){let r=(0,o.G)(v[n],e),i=v[n]/r,s=e/r;if(v[n]=r,n!==t&&(e=-s*b[n-1],b[n-1]=i*b[n-1]),h)for(let t=0;t<a;t++)r=i*y.get(t,n)+s*y.get(t,T-1),y.set(t,T-1,-s*y.get(t,n)+i*y.get(t,T-1)),y.set(t,n,r)}break}case 2:{let e=b[t-1];b[t-1]=0;for(let r=t;r<T;r++){let i=(0,o.G)(v[r],e),a=v[r]/i,s=e/i;if(v[r]=i,e=-s*b[r],b[r]=a*b[r],f)for(let e=0;e<n;e++)i=a*m.get(e,r)+s*m.get(e,t-1),m.set(e,t-1,-s*m.get(e,r)+a*m.get(e,t-1)),m.set(e,r,i)}break}case 3:{const e=Math.max(Math.abs(v[T-1]),Math.abs(v[T-2]),Math.abs(b[T-2]),Math.abs(v[t]),Math.abs(b[t])),r=v[T-1]/e,i=v[T-2]/e,s=b[T-2]/e,u=v[t]/e,l=b[t]/e,c=((i+r)*(i-r)+s*s)/2,d=r*s*(r*s);let p=0;0===c&&0===d||(p=c<0?0-Math.sqrt(c*c+d):Math.sqrt(c*c+d),p=d/(c+p));let g=(u+r)*(u-r)+p,x=u*l;for(let _=t;_<T-1;_++){let e=(0,o.G)(g,x);0===e&&(e=Number.MIN_VALUE);let r=g/e,i=x/e;if(_!==t&&(b[_-1]=e),g=r*v[_]+i*b[_],b[_]=r*b[_]-i*v[_],x=i*v[_+1],v[_+1]=r*v[_+1],h)for(let t=0;t<a;t++)e=r*y.get(t,_)+i*y.get(t,_+1),y.set(t,_+1,-i*y.get(t,_)+r*y.get(t,_+1)),y.set(t,_,e);if(e=(0,o.G)(g,x),0===e&&(e=Number.MIN_VALUE),r=g/e,i=x/e,v[_]=e,g=r*b[_]+i*v[_+1],v[_+1]=-i*b[_]+r*v[_+1],x=i*b[_+1],b[_+1]=r*b[_+1],f&&_<n-1)for(let t=0;t<n;t++)e=r*m.get(t,_)+i*m.get(t,_+1),m.set(t,_+1,-i*m.get(t,_)+r*m.get(t,_+1)),m.set(t,_,e)}b[T-2]=g,C+=1;break}case 4:if(v[t]<=0&&(v[t]=v[t]<0?-v[t]:0,h))for(let e=0;e<=k;e++)y.set(e,t,-y.get(e,t));while(t<k){if(v[t]>=v[t+1])break;let e=v[t];if(v[t]=v[t+1],v[t+1]=e,h&&t<a-1)for(let n=0;n<a;n++)e=y.get(n,t+1),y.set(n,t+1,y.get(n,t)),y.set(n,t,e);if(f&&t<n-1)for(let r=0;r<n;r++)e=m.get(r,t+1),m.set(r,t+1,m.get(r,t)),m.set(r,t,e);t++}C=0,T--;break}}if(d){let t=y;y=m,m=t}this.m=n,this.n=a,this.s=v,this.U=m,this.V=y}solve(t){let e=t,n=this.threshold,i=this.s.length,o=r.Z.zeros(i,i);for(let r=0;r<i;r++)Math.abs(this.s[r])<=n?o.set(r,r,0):o.set(r,r,1/this.s[r]);let a=this.U,s=this.rightSingularVectors,u=s.mmul(o),l=s.rows,c=a.rows,f=r.Z.zeros(l,c);for(let r=0;r<l;r++)for(let t=0;t<c;t++){let e=0;for(let n=0;n<i;n++)e+=u.get(r,n)*a.get(t,n);f.set(r,t,e)}return f.mmul(e)}solveForDiagonal(t){return this.solve(r.Z.diag(t))}inverse(){let t=this.V,e=this.threshold,n=t.rows,i=t.columns,o=new r.Z(n,this.s.length);for(let r=0;r<n;r++)for(let n=0;n<i;n++)Math.abs(this.s[n])>e&&o.set(r,n,t.get(r,n)/this.s[n]);let a=this.U,s=a.rows,u=a.columns,l=new r.Z(n,s);for(let r=0;r<n;r++)for(let t=0;t<s;t++){let e=0;for(let n=0;n<u;n++)e+=o.get(r,n)*a.get(t,n);l.set(r,t,e)}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 r.Z.diag(this.s)}}},63156:function(t,e,n){"use strict";function r(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}n.d(e,{G:function(){return r}})},67074:function(t,e,n){"use strict";if(n.d(e,{F:function(){return l},S:function(){return u}}),/^(539|826)$/.test(n.j))var r=n(5451);if(/^(539|826)$/.test(n.j))var i=n(24542);if(/^(539|826)$/.test(n.j))var o=n(87406);if(/^(539|826)$/.test(n.j))var a=n(76838);if(/^(539|826)$/.test(n.j))var s=n(70293);function u(t,e=!1){return t=s.Z.checkMatrix(t),e?new o.Z(t).inverse():l(t,a.Z.eye(t.rows))}function l(t,e,n=!1){return t=s.Z.checkMatrix(t),e=s.Z.checkMatrix(e),n?new o.Z(t).solve(e):t.isSquare()?new r.Z(t).solve(e):new i.Z(t).solve(e)}},46189:function(t,e,n){"use strict";if(n.d(e,{G:function(){return a}}),/^(539|826)$/.test(n.j))var r=n(5451);if(/^(539|826)$/.test(n.j))var i=n(76838);if(/^(539|826)$/.test(n.j))var o=n(29377);function a(t){if(t=i.Z.checkMatrix(t),t.isSquare()){let e,n,i,s;if(2===t.columns)return e=t.get(0,0),n=t.get(0,1),i=t.get(1,0),s=t.get(1,1),e*s-n*i;if(3===t.columns){let r,s,u;return r=new o.Z(t,[1,2],[1,2]),s=new o.Z(t,[1,2],[0,2]),u=new o.Z(t,[1,2],[0,1]),e=t.get(0,0),n=t.get(0,1),i=t.get(0,2),e*a(r)-n*a(s)+i*a(u)}return new r.Z(t).determinant}throw Error("determinant can only be calculated for a square matrix")}},65563:function(t,e,n){"use strict";if(n.r(e),n.d(e,{AbstractMatrix:function(){return r.X},CHO:function(){return v.Z},CholeskyDecomposition:function(){return v.Z},EVD:function(){return g.Z},EigenvalueDecomposition:function(){return g.Z},LU:function(){return m.Z},LuDecomposition:function(){return m.Z},Matrix:function(){return r.Z},MatrixColumnSelectionView:function(){return i.qK},MatrixColumnView:function(){return i.pb},MatrixFlipColumnView:function(){return i.j},MatrixFlipRowView:function(){return i.sO},MatrixRowSelectionView:function(){return i.BZ},MatrixRowView:function(){return i.EK},MatrixSelectionView:function(){return i.Db},MatrixSubView:function(){return i.Fx},MatrixTransposeView:function(){return i.tU},NIPALS:function(){return b.Z},Nipals:function(){return b.Z},QR:function(){return y.Z},QrDecomposition:function(){return y.Z},SVD:function(){return p.Z},SingularValueDecomposition:function(){return p.Z},WrapperMatrix1D:function(){return a.Z},WrapperMatrix2D:function(){return s.Z},correlation:function(){return d.Q},covariance:function(){return h.A},default:function(){return r.Z},determinant:function(){return l.G},inverse:function(){return u.S},linearDependencies:function(){return c.u},pseudoInverse:function(){return f.y},solve:function(){return u.F},wrap:function(){return o.r}}),/^(539|826)$/.test(n.j))var r=n(76838);if(/^(539|826)$/.test(n.j))var i=n(48251);if(/^(539|826)$/.test(n.j))var o=n(51556);if(/^(539|826)$/.test(n.j))var a=n(22163);if(/^(539|826)$/.test(n.j))var s=n(70293);if(/^(539|826)$/.test(n.j))var u=n(67074);if(/^(539|826)$/.test(n.j))var l=n(46189);if(/^(539|826)$/.test(n.j))var c=n(91167);if(/^(539|826)$/.test(n.j))var f=n(66920);if(/^(539|826)$/.test(n.j))var h=n(88928);if(/^(539|826)$/.test(n.j))var d=n(91510);if(/^(539|826)$/.test(n.j))var p=n(87406);if(/^(539|826)$/.test(n.j))var g=n(43432);if(/^(539|826)$/.test(n.j))var v=n(21540);if(/^(539|826)$/.test(n.j))var m=n(5451);if(/^(539|826)$/.test(n.j))var y=n(24542);if(/^(539|826)$/.test(n.j))var b=n(64759)},91167:function(t,e,n){"use strict";if(n.d(e,{u:function(){return s}}),/^(539|826)$/.test(n.j))var r=n(87406);if(/^(539|826)$/.test(n.j))var i=n(76838);function o(t,e){let n=[];for(let r=0;r<t;r++)r!==e&&n.push(r);return n}function a(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 s(t,e={}){const{thresholdValue:n=1e-9,thresholdError:s=1e-9}=e;t=i.Z.checkMatrix(t);let u=t.rows,l=new i.Z(u,u);for(let c=0;c<u;c++){let e=i.Z.columnVector(t.getRow(c)),f=t.subMatrixRow(o(u,c)).transpose(),h=new r.Z(f),d=h.solve(e),p=i.Z.sub(e,f.mmul(d)).abs().max();l.setRow(c,a(p,d,c,n,s))}return l}},76838:function(t,e,n){"use strict";n.d(e,{X:function(){return L},Z:function(){return R}});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=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],u=r+1;u<a;u++)t[u]>s&&(s=t[u]);return s}function a(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],u=r+1;u<a;u++)t[u]<s&&(s=t[u]);return s}function s(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=a(t),s=o(t);if(r===s)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var u=n.min,l=void 0===u?n.autoMinMax?r:0:u,c=n.max,f=void 0===c?n.autoMinMax?s:1:c;if(l>=f)throw new RangeError("min option must be smaller than max option");for(var h=(f-l)/(s-r),d=0;d<t.length;d++)e[d]=(t[d]-r)*h+l;return e}const u=" ".repeat(2),l=" ".repeat(4);function c(){return f(this)}function f(t,e={}){const{maxRows:n=15,maxColumns:r=10,maxNumSize:i=8}=e;return`${t.constructor.name} {\n${u}[\n${l}${h(t,n,r,i)}\n${u}]\n${u}rows: ${t.rows}\n${u}columns: ${t.columns}\n}`}function h(t,e,n,r){const{rows:i,columns:o}=t,a=Math.min(i,e),s=Math.min(o,n),u=[];for(let l=0;l<a;l++){let e=[];for(let n=0;n<s;n++)e.push(d(t.get(l,n),r));u.push(`${e.join(" ")}`)}return s!==o&&(u[u.length-1]+=` ... ${o-n} more columns`),a!==i&&u.push(`... ${i-e} more rows`),u.join(`\n${l}`)}function d(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 p(t,e){t.prototype.add=function(t){return"number"===typeof t?this.addS(t):this.addM(t)},t.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},t.prototype.addM=function(t){if(t=e.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},t.add=function(t,n){const r=new e(t);return r.add(n)},t.prototype.sub=function(t){return"number"===typeof t?this.subS(t):this.subM(t)},t.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},t.prototype.subM=function(t){if(t=e.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},t.sub=function(t,n){const r=new e(t);return r.sub(n)},t.prototype.subtract=t.prototype.sub,t.prototype.subtractS=t.prototype.subS,t.prototype.subtractM=t.prototype.subM,t.subtract=t.sub,t.prototype.mul=function(t){return"number"===typeof t?this.mulS(t):this.mulM(t)},t.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},t.prototype.mulM=function(t){if(t=e.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},t.mul=function(t,n){const r=new e(t);return r.mul(n)},t.prototype.multiply=t.prototype.mul,t.prototype.multiplyS=t.prototype.mulS,t.prototype.multiplyM=t.prototype.mulM,t.multiply=t.mul,t.prototype.div=function(t){return"number"===typeof t?this.divS(t):this.divM(t)},t.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},t.prototype.divM=function(t){if(t=e.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},t.div=function(t,n){const r=new e(t);return r.div(n)},t.prototype.divide=t.prototype.div,t.prototype.divideS=t.prototype.divS,t.prototype.divideM=t.prototype.divM,t.divide=t.div,t.prototype.mod=function(t){return"number"===typeof t?this.modS(t):this.modM(t)},t.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},t.prototype.modM=function(t){if(t=e.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},t.mod=function(t,n){const r=new e(t);return r.mod(n)},t.prototype.modulus=t.prototype.mod,t.prototype.modulusS=t.prototype.modS,t.prototype.modulusM=t.prototype.modM,t.modulus=t.mod,t.prototype.and=function(t){return"number"===typeof t?this.andS(t):this.andM(t)},t.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},t.prototype.andM=function(t){if(t=e.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},t.and=function(t,n){const r=new e(t);return r.and(n)},t.prototype.or=function(t){return"number"===typeof t?this.orS(t):this.orM(t)},t.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},t.prototype.orM=function(t){if(t=e.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},t.or=function(t,n){const r=new e(t);return r.or(n)},t.prototype.xor=function(t){return"number"===typeof t?this.xorS(t):this.xorM(t)},t.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},t.prototype.xorM=function(t){if(t=e.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},t.xor=function(t,n){const r=new e(t);return r.xor(n)},t.prototype.leftShift=function(t){return"number"===typeof t?this.leftShiftS(t):this.leftShiftM(t)},t.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},t.prototype.leftShiftM=function(t){if(t=e.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},t.leftShift=function(t,n){const r=new e(t);return r.leftShift(n)},t.prototype.signPropagatingRightShift=function(t){return"number"===typeof t?this.signPropagatingRightShiftS(t):this.signPropagatingRightShiftM(t)},t.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},t.prototype.signPropagatingRightShiftM=function(t){if(t=e.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},t.signPropagatingRightShift=function(t,n){const r=new e(t);return r.signPropagatingRightShift(n)},t.prototype.rightShift=function(t){return"number"===typeof t?this.rightShiftS(t):this.rightShiftM(t)},t.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},t.prototype.rightShiftM=function(t){if(t=e.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},t.rightShift=function(t,n){const r=new e(t);return r.rightShift(n)},t.prototype.zeroFillRightShift=t.prototype.rightShift,t.prototype.zeroFillRightShiftS=t.prototype.rightShiftS,t.prototype.zeroFillRightShiftM=t.prototype.rightShiftM,t.zeroFillRightShift=t.rightShift,t.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},t.not=function(t){const n=new e(t);return n.not()},t.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},t.abs=function(t){const n=new e(t);return n.abs()},t.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},t.acos=function(t){const n=new e(t);return n.acos()},t.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},t.acosh=function(t){const n=new e(t);return n.acosh()},t.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},t.asin=function(t){const n=new e(t);return n.asin()},t.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},t.asinh=function(t){const n=new e(t);return n.asinh()},t.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},t.atan=function(t){const n=new e(t);return n.atan()},t.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},t.atanh=function(t){const n=new e(t);return n.atanh()},t.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},t.cbrt=function(t){const n=new e(t);return n.cbrt()},t.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},t.ceil=function(t){const n=new e(t);return n.ceil()},t.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},t.clz32=function(t){const n=new e(t);return n.clz32()},t.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},t.cos=function(t){const n=new e(t);return n.cos()},t.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},t.cosh=function(t){const n=new e(t);return n.cosh()},t.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},t.exp=function(t){const n=new e(t);return n.exp()},t.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},t.expm1=function(t){const n=new e(t);return n.expm1()},t.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},t.floor=function(t){const n=new e(t);return n.floor()},t.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},t.fround=function(t){const n=new e(t);return n.fround()},t.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},t.log=function(t){const n=new e(t);return n.log()},t.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},t.log1p=function(t){const n=new e(t);return n.log1p()},t.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},t.log10=function(t){const n=new e(t);return n.log10()},t.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},t.log2=function(t){const n=new e(t);return n.log2()},t.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},t.round=function(t){const n=new e(t);return n.round()},t.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},t.sign=function(t){const n=new e(t);return n.sign()},t.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},t.sin=function(t){const n=new e(t);return n.sin()},t.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},t.sinh=function(t){const n=new e(t);return n.sinh()},t.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},t.sqrt=function(t){const n=new e(t);return n.sqrt()},t.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},t.tan=function(t){const n=new e(t);return n.tan()},t.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},t.tanh=function(t){const n=new e(t);return n.tanh()},t.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},t.trunc=function(t){const n=new e(t);return n.trunc()},t.pow=function(t,n){const r=new e(t);return r.pow(n)},t.prototype.pow=function(t){return"number"===typeof t?this.powS(t):this.powM(t)},t.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},t.prototype.powM=function(t){if(t=e.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}}var g=n(8761);function v(t){let e=(0,g.B4)(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}function m(t){let e=(0,g.B4)(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}function y(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}function b(t){let e=(0,g.B4)(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}function x(t){let e=(0,g.B4)(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}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}function w(t,e,n){const r=t.rows,i=t.columns,o=[];for(let a=0;a<r;a++){let r=0,s=0,u=0;for(let e=0;e<i;e++)u=t.get(a,e)-n[a],r+=u,s+=u*u;e?o.push((s-r*r/i)/(i-1)):o.push((s-r*r/i)/i)}return o}function S(t,e,n){const r=t.rows,i=t.columns,o=[];for(let a=0;a<i;a++){let i=0,s=0,u=0;for(let e=0;e<r;e++)u=t.get(e,a)-n[a],i+=u,s+=u*u;e?o.push((s-i*i/r)/(r-1)):o.push((s-i*i/r)/r)}return o}function E(t,e,n){const r=t.rows,i=t.columns,o=r*i;let a=0,s=0,u=0;for(let l=0;l<r;l++)for(let e=0;e<i;e++)u=t.get(l,e)-n,a+=u,s+=u*u;return e?(s-a*a/o)/(o-1):(s-a*a/o)/o}function T(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])}function k(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])}function C(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)}function M(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}function A(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])}function I(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}function O(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])}function D(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)}function P(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)}class L{static from1DArray(t,e,n){let r=t*e;if(r!==n.length)throw new RangeError("data length does not match given dimensions");let i=new R(t,e);for(let o=0;o<t;o++)for(let t=0;t<e;t++)i.set(o,t,n[o*e+t]);return i}static rowVector(t){let e=new R(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 R(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 R(t,e)}static ones(t,e){return new R(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 R(t,e);for(let o=0;o<t;o++)for(let t=0;t<e;t++)i.set(o,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 R(t,e);for(let u=0;u<t;u++)for(let t=0;t<e;t++){let e=r+Math.round(o()*a);s.set(u,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 o=0;o<r;o++)i.set(o,o,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 a=0;a<i;a++)o.set(a,a,t[a]);return o}static min(t,e){t=this.checkMatrix(t),e=this.checkMatrix(e);let n=t.rows,r=t.columns,i=new R(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 L.isMatrix(t)?t:new R(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;while(t<this.rows&&r){e=0,i=!1;while(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;while(t<this.rows&&r){e=0,i=!1;while(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;while(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;while(r>=0)if(0===t.maxRow(r))r--;else{let i=0,o=!1;while(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 R(this.rows*e,this.columns*n);for(let i=0;i<e;i++)for(let t=0;t<n;t++)r.setSubMatrix(this,this.rows*i,this.columns*t);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){(0,g.zb)(this,t);let e=[];for(let n=0;n<this.columns;n++)e.push(this.get(t,n));return e}getRowVector(t){return R.rowVector(this.getRow(t))}setRow(t,e){(0,g.zb)(this,t),e=(0,g.on)(this,e);for(let n=0;n<this.columns;n++)this.set(t,n,e[n]);return this}swapRows(t,e){(0,g.zb)(this,t),(0,g.zb)(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){(0,g.bp)(this,t);let e=[];for(let n=0;n<this.rows;n++)e.push(this.get(n,t));return e}getColumnVector(t){return R.columnVector(this.getColumn(t))}setColumn(t,e){(0,g.bp)(this,t),e=(0,g.Um)(this,e);for(let n=0;n<this.rows;n++)this.set(n,t,e[n]);return this}swapColumns(t,e){(0,g.bp)(this,t),(0,g.bp)(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=(0,g.on)(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=(0,g.on)(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=(0,g.on)(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=(0,g.on)(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=(0,g.Um)(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=(0,g.Um)(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=(0,g.Um)(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=(0,g.Um)(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){(0,g.zb)(this,t);for(let n=0;n<this.columns;n++)this.set(t,n,this.get(t,n)*e);return this}mulColumn(t,e){(0,g.bp)(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){(0,g.zb)(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){(0,g.zb)(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){(0,g.zb)(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){(0,g.zb)(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){(0,g.bp)(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){(0,g.bp)(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){(0,g.bp)(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){(0,g.bp)(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){L.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=R.checkMatrix(t);let e=this.rows,n=this.columns,r=t.columns,i=new R(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=R.checkMatrix(t);let e=new R(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),u=this.get(1,1),l=t.get(1,1),c=(n+u)*(r+l),f=(a+u)*r,h=n*(o-l),d=u*(s-r),p=(n+i)*l,g=(a-n)*(r+o),v=(i-u)*(s+l),m=c+d-p+v,y=h+p,b=f+d,x=c-f+h+g;return e.set(0,0,m),e.set(0,1,y),e.set(1,0,b),e.set(1,1,x),e}strassen3x3(t){t=R.checkMatrix(t);let e=new R(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),u=this.get(2,0),l=this.get(2,1),c=this.get(2,2),f=t.get(0,0),h=t.get(0,1),d=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),x=(n+r+i-o-a-l-c)*g,_=(n-o)*(-h+g),w=a*(-f+h+p-g-v-m+b),S=(-n+o+a)*(f-h+g),E=(o+a)*(-f+h),T=n*f,k=(-n+u+l)*(f-d+v),C=(-n+u)*(d-v),M=(u+l)*(-f+d),A=(n+r+i-a-s-u-l)*v,I=l*(-f+d+p-g-v-m+y),O=(-i+l+c)*(g+m-y),D=(i-c)*(g-y),P=i*m,L=(l+c)*(-m+y),N=(-i+a+s)*(v+m-b),j=(i-s)*(v-b),F=(a+s)*(-m+b),B=r*p,z=s*y,Z=o*d,U=u*h,H=c*b,$=T+P+B,G=x+S+E+T+O+P+L,W=T+k+M+A+P+N+F,V=_+w+S+T+P+N+j,Y=_+S+E+T+z,X=P+N+j+F+Z,q=T+k+C+I+O+D+P,K=O+D+P+L+U,J=T+k+C+M+H;return e.set(0,0,$),e.set(0,1,G),e.set(0,2,W),e.set(1,0,V),e.set(1,1,Y),e.set(1,2,X),e.set(2,0,q),e.set(2,1,K),e.set(2,2,J),e}mmulStrassen(t){t=R.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=L.zeros(e,n);return r=r.setSubMatrix(t,0,0),r}}r!==i&&console.warn(`Multiplying ${n} x ${r} and ${i} x ${o} matrix: dimensions do not match.`);let s=Math.max(n,i),u=Math.max(r,o);function l(t,e,n,r){if(n<=512||r<=512)return t.mmul(e);n%2===1&&r%2===1?(t=a(t,n+1,r+1),e=a(e,n+1,r+1)):n%2===1?(t=a(t,n+1,r),e=a(e,n+1,r)):r%2===1&&(t=a(t,n,r+1),e=a(e,n,r+1));let i=parseInt(t.rows/2,10),o=parseInt(t.columns/2,10),s=t.subMatrix(0,i-1,0,o-1),u=e.subMatrix(0,i-1,0,o-1),c=t.subMatrix(0,i-1,o,t.columns-1),f=e.subMatrix(0,i-1,o,e.columns-1),h=t.subMatrix(i,t.rows-1,0,o-1),d=e.subMatrix(i,e.rows-1,0,o-1),p=t.subMatrix(i,t.rows-1,o,t.columns-1),g=e.subMatrix(i,e.rows-1,o,e.columns-1),v=l(L.add(s,p),L.add(u,g),i,o),m=l(L.add(h,p),u,i,o),y=l(s,L.sub(f,g),i,o),b=l(p,L.sub(d,u),i,o),x=l(L.add(s,c),g,i,o),_=l(L.sub(h,s),L.add(u,f),i,o),w=l(L.sub(c,p),L.add(d,g),i,o),S=L.add(v,b);S.sub(x),S.add(w);let E=L.add(y,x),T=L.add(m,b),k=L.sub(v,m);k.add(y),k.add(_);let C=L.zeros(2*S.rows,2*S.columns);return C=C.setSubMatrix(S,0,0),C=C.setSubMatrix(E,S.rows,0),C=C.setSubMatrix(T,0,S.columns),C=C.setSubMatrix(k,S.rows,S.columns),C.subMatrix(0,n-1,0,r-1)}return e=a(e,s,u),t=a(t,s,u),l(e,t,s,u)}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 R(this.rows,this.columns);for(let i=0;i<this.rows;i++){const t=this.getRow(i);s(t,{min:e,max:n,output:t}),r.setRow(i,t)}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 R(this.rows,this.columns);for(let i=0;i<this.columns;i++){const t=this.getColumn(i);s(t,{min:e,max:n,output:t}),r.setColumn(i,t)}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=R.checkMatrix(t);let e=this.rows,n=this.columns,r=t.rows,i=t.columns,o=new R(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 R(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=N){for(let e=0;e<this.rows;e++)this.setRow(e,this.getRow(e).sort(t));return this}sortColumns(t=N){for(let e=0;e<this.columns;e++)this.setColumn(e,this.getColumn(e).sort(t));return this}subMatrix(t,e,n,r){(0,g.J5)(this,t,e,n,r);let i=new R(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 R(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 R(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){t=R.checkMatrix(t);let r=e+t.rows-1,i=n+t.columns-1;(0,g.J5)(this,e,r,n,i);for(let o=0;o<t.rows;o++)for(let r=0;r<t.columns;r++)this.set(e+o,n+r,t.get(o,r));return this}selection(t,e){let n=(0,g.N2)(this,t,e),r=new R(t.length,e.length);for(let i=0;i<n.row.length;i++){let t=n.row[i];for(let e=0;e<n.column.length;e++){let o=n.column[e];r.set(i,e,this.get(t,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 R(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 v(this);case"column":return m(this);case void 0:return y(this);default:throw new Error(`invalid option: ${t}`)}}product(t){switch(t){case"row":return b(this);case"column":return x(this);case void 0:return _(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 w(this,n,r);case"column":if(!Array.isArray(r))throw new TypeError("mean must be an array");return S(this,n,r);case void 0:if("number"!==typeof r)throw new TypeError("mean must be a number");return E(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 r=0;r<n.length;r++)n[r]=Math.sqrt(n[r]);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 T(this,n),this;case"column":if(!Array.isArray(n))throw new TypeError("center must be an array");return k(this,n),this;case void 0:if("number"!==typeof n)throw new TypeError("center must be a number");return C(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=M(this);else if(!Array.isArray(n))throw new TypeError("scale must be an array");return A(this,n),this;case"column":if(void 0===n)n=I(this);else if(!Array.isArray(n))throw new TypeError("scale must be an array");return O(this,n),this;case void 0:if(void 0===n)n=D(this);else if("number"!==typeof n)throw new TypeError("scale must be a number");return P(this,n),this;default:throw new Error(`invalid option: ${t}`)}}toString(t){return f(this,t)}}function N(t,e){return t-e}L.prototype.klass="Matrix","undefined"!==typeof Symbol&&(L.prototype[Symbol.for("nodejs.util.inspect.custom")]=c),L.random=L.rand,L.randomInt=L.randInt,L.diagonal=L.diag,L.prototype.diagonal=L.prototype.diag,L.identity=L.eye,L.prototype.negate=L.prototype.neg,L.prototype.tensorProduct=L.prototype.kroneckerProduct;class R extends L{constructor(t,e){if(super(),R.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,e=n[0].length,"number"!==typeof e||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((0,g.zb)(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),(0,g.zb)(this,t,!0),e=Float64Array.from((0,g.on)(this,e,!0)),this.data.splice(t,0,e),this.rows+=1,this}removeColumn(t){if((0,g.bp)(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){"undefined"===typeof e&&(e=t,t=this.columns),(0,g.bp)(this,t,!0),e=(0,g.Um)(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}}p(L,R)},66920:function(t,e,n){"use strict";if(n.d(e,{y:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(87406);if(/^(539|826)$/.test(n.j))var i=n(76838);function o(t,e=Number.EPSILON){t=i.Z.checkMatrix(t);let n=new r.Z(t,{autoTranspose:!0}),o=n.leftSingularVectors,a=n.rightSingularVectors,s=n.diagonal;for(let r=0;r<s.length;r++)Math.abs(s[r])>e?s[r]=1/s[r]:s[r]=0;return a.mmul(i.Z.diag(s).mmul(o.transpose()))}},8761:function(t,e,n){"use strict";function r(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 i(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 o(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 a(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 s(t,e,n){return{row:u(t,e),column:l(t,n)}}function u(t,e){if("object"!==typeof e)throw new TypeError("unexpected type for row indices");let n=e.some((e=>e<0||e>=t.rows));if(n)throw new RangeError("row indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function l(t,e){if("object"!==typeof e)throw new TypeError("unexpected type for column indices");let n=e.some((e=>e<0||e>=t.columns));if(n)throw new RangeError("column indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function c(t,e,n,r,i){if(5!==arguments.length)throw new RangeError("expected 4 arguments");if(h("startRow",e),h("endRow",n),h("startColumn",r),h("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 f(t,e=0){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function h(t,e){if("number"!==typeof e)throw new TypeError(`${t} must be a number`)}n.d(e,{B4:function(){return f},J5:function(){return c},N2:function(){return s},Um:function(){return a},ZR:function(){return u},bp:function(){return i},g:function(){return l},on:function(){return o},zb:function(){return r}})},91088:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(76838);class i extends(/^(539|826)$/.test(n.j)?r.X:null){constructor(t,e,n){super(),this.matrix=t,this.rows=e,this.columns=n}}},44421:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(8761);if(/^(539|826)$/.test(n.j))var i=n(91088);class o extends(/^(539|826)$/.test(n.j)?i.Z:null){constructor(t,e){(0,r.bp)(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)}}},8902:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(8761);if(/^(539|826)$/.test(n.j))var i=n(91088);class o extends(/^(539|826)$/.test(n.j)?i.Z:null){constructor(t,e){e=(0,r.g)(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])}}},13470:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(91088);class i extends(/^(539|826)$/.test(n.j)?r.Z:null){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)}}},74120:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(91088);class i extends(/^(539|826)$/.test(n.j)?r.Z:null){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)}}},48251:function(t,e,n){"use strict";if(n.d(e,{BZ:function(){return u.Z},Db:function(){return l.Z},EK:function(){return s.Z},Fx:function(){return c.Z},j:function(){return o.Z},pb:function(){return r.Z},qK:function(){return i.Z},sO:function(){return a.Z},tU:function(){return f.Z}}),/^(539|826)$/.test(n.j))var r=n(44421);if(/^(539|826)$/.test(n.j))var i=n(8902);if(/^(539|826)$/.test(n.j))var o=n(13470);if(/^(539|826)$/.test(n.j))var a=n(74120);if(/^(539|826)$/.test(n.j))var s=n(57493);if(/^(539|826)$/.test(n.j))var u=n(47375);if(/^(539|826)$/.test(n.j))var l=n(29377);if(/^(539|826)$/.test(n.j))var c=n(81612);if(/^(539|826)$/.test(n.j))var f=n(63298)},57493:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(8761);if(/^(539|826)$/.test(n.j))var i=n(91088);class o extends(/^(539|826)$/.test(n.j)?i.Z:null){constructor(t,e){(0,r.zb)(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)}}},47375:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(8761);if(/^(539|826)$/.test(n.j))var i=n(91088);class o extends(/^(539|826)$/.test(n.j)?i.Z:null){constructor(t,e){e=(0,r.ZR)(t,e),super(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)}}},29377:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(8761);if(/^(539|826)$/.test(n.j))var i=n(91088);class o extends(/^(539|826)$/.test(n.j)?i.Z:null){constructor(t,e,n){let i=(0,r.N2)(t,e,n);super(t,i.row.length,i.column.length),this.rowIndices=i.row,this.columnIndices=i.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])}}},81612:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(8761);if(/^(539|826)$/.test(n.j))var i=n(91088);class o extends(/^(539|826)$/.test(n.j)?i.Z:null){constructor(t,e,n,i,o){(0,r.J5)(t,e,n,i,o),super(t,n-e+1,o-i+1),this.startRow=e,this.startColumn=i}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)}}},63298:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(91088);class i extends(/^(539|826)$/.test(n.j)?r.Z:null){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)}}},22163:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(76838);class i extends(/^(539|826)$/.test(n.j)?r.X:null){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}}},70293:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(76838);class i extends(/^(539|826)$/.test(n.j)?r.X:null){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]}}},51556:function(t,e,n){"use strict";if(n.d(e,{r:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(22163);if(/^(539|826)$/.test(n.j))var i=n(70293);function o(t,e){if(Array.isArray(t))return t[0]&&Array.isArray(t[0])?new i.Z(t):new r.Z(t,e);throw new Error("the argument is not an array")}},31506:function(t,e,n){"use strict";if(n.d(e,{vs:function(){return u}}),/^(539|826)$/.test(n.j))var r=n(35600);function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.fromTranslation(i,n),r.multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.fromRotation(i,n),r.multiply(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.fromScaling(i,n),r.multiply(t,i,e)}function s(t,e,n){return r.multiply(t,n,e)}function u(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,u=e.length;r<u;r++){var l=e[r];switch(l[0]){case"t":i(n,n,[l[1],l[2]]);break;case"s":a(n,n,[l[1],l[2]]);break;case"r":o(n,n,l[1]);break;case"m":s(n,n,l[1]);break;default:break}}return n}},31278:function(t,e,n){"use strict";var r=n(76752);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,n){return r.mat3.multiply(t,n,e)}function u(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,u=e.length;r<u;r++){var l=e[r];switch(l[0]){case"t":i(n,n,[l[1],l[2]]);break;case"s":a(n,n,[l[1],l[2]]);break;case"r":o(n,n,l[1]);break;case"m":s(n,n,l[1]);break;default:break}}return n}function l(t,e){return t[0]*e[1]-e[0]*t[1]}function c(t,e,n){var i=r.vec2.angle(t,e),o=l(t,e)>=0;return n?o?2*Math.PI-i:i:o?i:2*Math.PI-i}function f(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}e.vs=u},18954:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(31437);function i(t,e,n,i){var o,a,s,u,l,c,f,h=[],d=!!i;if(d){s=i[0],u=i[1];for(var p=0,g=t.length;p<g;p+=1){var v=t[p];s=r.min([0,0],s,v),u=r.max([0,0],u,v)}}p=0;for(var m=t.length;p<m;p+=1){v=t[p];if(0!==p||n)if(p!==m-1||n){var y=[p?p-1:m-1,p-1][n?0:1];o=t[y],a=t[n?(p+1)%m:p+1];var b=[0,0];b=r.sub(b,a,o),b=r.scale(b,b,e);var x=r.distance(v,o),_=r.distance(v,a),w=x+_;0!==w&&(x/=w,_/=w);var S=r.scale([0,0],b,-x),E=r.scale([0,0],b,_);c=r.add([0,0],v,S),l=r.add([0,0],v,E),l=r.min([0,0],l,r.max([0,0],a,v)),l=r.max([0,0],l,r.min([0,0],a,v)),S=r.sub([0,0],l,v),S=r.scale([0,0],S,-x/_),c=r.add([0,0],v,S),c=r.min([0,0],c,r.max([0,0],o,v)),c=r.max([0,0],c,r.min([0,0],o,v)),E=r.sub([0,0],v,c),E=r.scale([0,0],E,_/x),l=r.add([0,0],v,E),d&&(c=r.max([0,0],c,s),c=r.min([0,0],c,u),l=r.max([0,0],l,s),l=r.min([0,0],l,u)),h.push(f),h.push(c),f=l}else c=v,h.push(f),h.push(c);else f=v}return n&&h.push(h.shift()),h}function o(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var r=!!e,o=[],a=0,s=t.length;a<s;a+=2)o.push([t[a],t[a+1]]);var u,l,c,f=i(o,.4,r,n),h=o.length,d=[];for(a=0;a<h-1;a+=1)u=f[2*a],l=f[2*a+1],c=o[a+1],d.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]]);return r&&(u=f[h],l=f[h+1],c=o[0],d.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]])),d}e.Z=/^(539|826)$/.test(n.j)?o:null},33903:function(t,e,n){"use strict";n.d(e,{e9:function(){return u.Z},tr:function(){return h},wb:function(){return g},zx:function(){return w}});var r=n(55817),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;function a(t){var e=t||[];return(0,r.isArray)(e)?e:(0,r.isString)(e)?(e=e.match(i),(0,r.each)(e,(function(t,n){if(t=t.match(o),t[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}(0,r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}var s=a,u=n(18954);var l="\t\n\v\f\r   ᠎             　\u2028\u2029",c=new RegExp("([a-z])["+l+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+l+"]*,?["+l+"]*)+)","ig"),f=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+l+"]*,?["+l+"]*","ig");function h(t){if(!t)return null;if((0,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(c,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(f,(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 while(o.length>=e[a])if(n.push([r].concat(o.splice(0,e[a]))),!e[a])break;return""})),n}var d=/[a-z]/;function p(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function g(t){var e=h(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(d.test(i)||["V","H","T","S"].indexOf(i)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,u=0,l=0,c=0,f=e[0];"M"!==f[0]&&"m"!==f[0]||(a=+f[1],s=+f[2],u=a,l=s,c++,o[0]=["M",a,s]);r=c;for(var g=e.length;r<g;r++){var v=e[r],m=o[r-1],y=[],b=(i=v[0],i.toUpperCase());if(i!==b)switch(y[0]=b,b){case"A":y[1]=v[1],y[2]=v[2],y[3]=v[3],y[4]=v[4],y[5]=v[5],y[6]=+v[6]+a,y[7]=+v[7]+s;break;case"V":y[1]=+v[1]+s;break;case"H":y[1]=+v[1]+a;break;case"M":u=+v[1]+a,l=+v[2]+s,y[1]=u,y[2]=l;break;default:for(var x=1,_=v.length;x<_;x++)y[x]=+v[x]+(x%2?a:s)}else y=e[r];switch(b){case"Z":a=+u,s=+l;break;case"H":a=y[1],y=["L",a,s];break;case"V":s=y[1],y=["L",a,s];break;case"T":a=y[1],s=y[2];var w=p([m[1],m[2]],[m[3],m[4]]);y=["Q",w[0],w[1],a,s];break;case"S":a=y[y.length-2],s=y[y.length-1];var S=m.length,E=p([m[S-4],m[S-3]],[m[S-2],m[S-1]]);y=["C",E[0],E[1],y[1],y[2],a,s];break;case"M":u=y[y.length-2],l=y[y.length-1];break;default:a=y[y.length-2],s=y[y.length-1]}o.push(y)}return o}Math.PI;function v(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function m(t,e){return v(t)*v(e)?(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e)):1}function y(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(m(t,e))}function b(t,e){return t[0]===e[0]&&t[1]===e[1]}function x(t,e){var n=e[1],i=e[2],o=(0,r.mod)((0,r.toRadian)(e[3]),2*Math.PI),a=e[4],s=e[5],u=t[0],l=t[1],c=e[6],f=e[7],h=Math.cos(o)*(u-c)/2+Math.sin(o)*(l-f)/2,d=-1*Math.sin(o)*(u-c)/2+Math.cos(o)*(l-f)/2,p=h*h/(n*n)+d*d/(i*i);p>1&&(n*=Math.sqrt(p),i*=Math.sqrt(p));var g=n*n*(d*d)+i*i*(h*h),v=g?Math.sqrt((n*n*(i*i)-g)/g):1;a===s&&(v*=-1),isNaN(v)&&(v=0);var x=i?v*n*d/i:0,_=n?v*-i*h/n:0,w=(u+c)/2+Math.cos(o)*x-Math.sin(o)*_,S=(l+f)/2+Math.sin(o)*x+Math.cos(o)*_,E=[(h-x)/n,(d-_)/i],T=[(-1*h-x)/n,(-1*d-_)/i],k=y([1,0],E),C=y(E,T);return m(E,T)<=-1&&(C=Math.PI),m(E,T)>=1&&(C=0),0===s&&C>0&&(C-=2*Math.PI),1===s&&C<0&&(C+=2*Math.PI),{cx:w,cy:S,rx:b(t,[c,f])?0:n,ry:b(t,[c,f])?0:i,startAngle:k,endAngle:k+C,xRotation:o,arcFlag:a,sweepFlag:s}}function _(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function w(t){t=s(t);for(var e=[],n=null,r=null,i=null,o=0,a=t.length,u=0;u<a;u++){var l=t[u];r=t[u+1];var c=l[0],f={command:c,prePoint:n,params:l,startTangent:null,endTangent:null};switch(c){case"M":i=[l[1],l[2]],o=u;break;case"A":var h=x(n,l);f["arcParams"]=h;break;default:break}if("Z"===c)n=i,r=t[o+1];else{var d=l.length;n=[l[d-2],l[d-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),f["currentPoint"]=n,e[o]&&b(n,e[o].currentPoint)&&(e[o].prePoint=f.prePoint);var p=r?[r[r.length-2],r[r.length-1]]:null;f["nextPoint"]=p;var g=f.prePoint;if(["L","H","V"].includes(c))f.startTangent=[g[0]-n[0],g[1]-n[1]],f.endTangent=[n[0]-g[0],n[1]-g[1]];else if("Q"===c){var v=[l[1],l[2]];f.startTangent=[g[0]-v[0],g[1]-v[1]],f.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===c){var m=e[u-1];v=_(m.currentPoint,g);"Q"===m.command?(f.command="Q",f.startTangent=[g[0]-v[0],g[1]-v[1]],f.endTangent=[n[0]-v[0],n[1]-v[1]]):(f.command="TL",f.startTangent=[g[0]-n[0],g[1]-n[1]],f.endTangent=[n[0]-g[0],n[1]-g[1]])}else if("C"===c){var y=[l[1],l[2]],w=[l[3],l[4]];f.startTangent=[g[0]-y[0],g[1]-y[1]],f.endTangent=[n[0]-w[0],n[1]-w[1]],0===f.startTangent[0]&&0===f.startTangent[1]&&(f.startTangent=[y[0]-w[0],y[1]-w[1]]),0===f.endTangent[0]&&0===f.endTangent[1]&&(f.endTangent=[w[0]-y[0],w[1]-y[1]])}else if("S"===c){m=e[u-1],y=_(m.currentPoint,g),w=[l[1],l[2]];"C"===m.command?(f.command="C",f.startTangent=[g[0]-y[0],g[1]-y[1]],f.endTangent=[n[0]-w[0],n[1]-w[1]]):(f.command="SQ",f.startTangent=[g[0]-w[0],g[1]-w[1]],f.endTangent=[n[0]-w[0],n[1]-w[1]])}else if("A"===c){var S=.001,E=f["arcParams"]||{},T=E.cx,k=void 0===T?0:T,C=E.cy,M=void 0===C?0:C,A=E.rx,I=void 0===A?0:A,O=E.ry,D=void 0===O?0:O,P=E.sweepFlag,L=void 0===P?0:P,N=E.startAngle,R=void 0===N?0:N,j=E.endAngle,F=void 0===j?0:j;0===L&&(S*=-1);var B=I*Math.cos(R-S)+k,z=D*Math.sin(R-S)+M;f.startTangent=[B-i[0],z-i[1]];var Z=I*Math.cos(R+F+S)+k,U=D*Math.sin(R+F-S)+M;f.endTangent=[g[0]-Z,g[1]-U]}e.push(f)}return e}},15326:function(t,e,n){"use strict";function r(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}n.d(e,{C:function(){return r}})},74440:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(15326);function i(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var i=n<0?0:Math.round(n);if(0===i)return{max:e,min:t,ticks:[]};var o=1.5,a=.5+1.5*o,s=e-t,u=s/i,l=Math.pow(10,Math.floor(Math.log10(u))),c=l;2*l-u<o*(u-c)&&(c=2*l,5*l-u<a*(u-c)&&(c=5*l,10*l-u<o*(u-c)&&(c=10*l)));for(var f=Math.ceil(e/c),h=Math.floor(t/c),d=Math.max(f*c,e),p=Math.min(h*c,t),g=Math.floor((d-p)/c)+1,v=new Array(g),m=0;m<g;m++)v[m]=(0,r.C)(p+m*c);return{min:p,max:d,ticks:v}}},31801:function(t,e,n){"use strict";var r=function(t,e,n){return t<e?e:t>n?n:t};e.Z=/^(539|826)$/.test(n.j)?r:null},24856:function(t,e,n){"use strict";function r(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}n.d(e,{Z:function(){return r}})},78600:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(10696);var i=function(t,e){return!!(0,r.Z)(t)&&t.indexOf(e)>-1};e.Z=/^(539|826)$/.test(n.j)?i:null},74927:function(t,e,n){"use strict";function r(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}e.Z=/^(539|826)$/.test(n.j)?r:null},79961:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(28351);if(/^(539|826)$/.test(n.j))var i=n(78600);var o=function(t,e){return void 0===e&&(e=[]),(0,r.Z)(t,(function(t){return!(0,i.Z)(e,t)}))};e.Z=/^(539|826)$/.test(n.j)?o:null},8919:function(t,e,n){"use strict";var r=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0};e.Z=/^(539|826)$/.test(n.j)?r:null},28351:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(10696);var i=function(t,e){if(!(0,r.Z)(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];e(o,i)&&n.push(o)}return n};e.Z=/^(539|826)$/.test(n.j)?i:null},69014:function(t,e,n){"use strict";function r(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}e.Z=/^(539|826)$/.test(n.j)?r:null},68852:function(t,e,n){"use strict";var r=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))};e.Z=/^(539|826)$/.test(n.j)?r:null},86311:function(t,e,n){"use strict";function r(t,e){return t["_wrap_"+e]}e.Z=/^(539|826)$/.test(n.j)?r:null},4933:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(10966);e.Z=/^(539|826)$/.test(n.j)?r.Z:null},10966:function(t,e){"use strict";e.Z=function(t,e){return t.hasOwnProperty(e)}},95499:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(10696);function i(t){if((0,r.Z)(t))return t[0]}},63532:function(t,e){"use strict";e.Z=function(t){return t}},77097:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(10696);var i=function(t,e){if(!(0,r.Z)(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};e.Z=/^(539|826)$/.test(n.j)?i:null},55817:function(t,e,n){"use strict";n.r(e),n.d(e,{Cache:function(){return dn},assign:function(){return ke.Z},augment:function(){return Me},clamp:function(){return xt.Z},clearAnimationFrame:function(){return Te.Z},clone:function(){return Ie},contains:function(){return r.Z},debounce:function(){return Oe.Z},deepMix:function(){return Re},difference:function(){return i.Z},each:function(){return d},endsWith:function(){return it},every:function(){return at.Z},extend:function(){return Fe},filter:function(){return ot.Z},find:function(){return w},findIndex:function(){return S.Z},firstValue:function(){return T},fixedBase:function(){return _t.Z},flatten:function(){return C},flattenDeep:function(){return A},forIn:function(){return Vt},get:function(){return Xe},getEllipsisText:function(){return fn},getRange:function(){return P},getType:function(){return ae},getWrapBehavior:function(){return dt.Z},group:function(){return ht},groupBy:function(){return ct},groupToMap:function(){return ft},has:function(){return Yt.Z},hasKey:function(){return Xt.Z},hasValue:function(){return Jt},head:function(){return Q.Z},identity:function(){return sn.Z},includes:function(){return r.Z},indexOf:function(){return Be.Z},isArguments:function(){return ue},isArray:function(){return c},isArrayLike:function(){return B.Z},isBoolean:function(){return ce},isDate:function(){return he},isDecimal:function(){return Tt},isElement:function(){return Se.Z},isEmpty:function(){return He},isEqual:function(){return Ge},isEqualWith:function(){return We},isError:function(){return pe},isEven:function(){return Ct},isFinite:function(){return ge},isFunction:function(){return u},isInteger:function(){return At},isMatch:function(){return m},isNegative:function(){return Ot},isNil:function(){return l.Z},isNull:function(){return ve.Z},isNumber:function(){return St},isNumberEqual:function(){return Dt.Z},isObject:function(){return f.Z},isObjectLike:function(){return y.Z},isOdd:function(){return Lt},isPlainObject:function(){return x},isPositive:function(){return Rt},isPrototype:function(){return be},isRegExp:function(){return _e},isString:function(){return V},isType:function(){return s},isUndefined:function(){return we.Z},keys:function(){return g},last:function(){return tt.Z},lowerCase:function(){return Qt.Z},lowerFirst:function(){return te.Z},map:function(){return Ve.Z},mapValues:function(){return Ye.Z},max:function(){return I},maxBy:function(){return jt},measureTextWidth:function(){return cn},memoize:function(){return De},min:function(){return O},minBy:function(){return Ft},mix:function(){return ke.Z},mod:function(){return Bt.Z},noop:function(){return an.Z},number2color:function(){return mt},omit:function(){return Qe},parseRadius:function(){return bt},pick:function(){return Je},pull:function(){return F},pullAt:function(){return U},reduce:function(){return $},remove:function(){return W},requestAnimationFrame:function(){return Ee.Z},set:function(){return qe},size:function(){return un.Z},some:function(){return st.Z},sortBy:function(){return X},startsWith:function(){return nt},substitute:function(){return ee.Z},throttle:function(){return tn.Z},toArray:function(){return en.Z},toDegree:function(){return Ut},toInteger:function(){return Ht.Z},toRadian:function(){return Wt},toString:function(){return nn.Z},union:function(){return q.Z},uniq:function(){return K.Z},uniqueId:function(){return on},upperCase:function(){return ne.Z},upperFirst:function(){return re.Z},values:function(){return Kt},valuesOfKey:function(){return J},wrapBehavior:function(){return pt.Z}});var r=n(78600),i=n(79961),o={}.toString,a=function(t,e){return o.call(t)==="[object "+e+"]"},s=a,u=function(t){return s(t,"Function")},l=n(2038),c=function(t){return Array.isArray?Array.isArray(t):s(t,"Array")},f=n(8025);function h(t,e){var n;if(t)if(c(t)){for(var r=0,i=t.length;r<i;r++)if(n=e(t[r],r),!1===n)break}else if((0,f.Z)(t))for(var o in t)if(t.hasOwnProperty(o)&&(n=e(t[o],o),!1===n))break}var d=h,p=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return d(t,(function(n,r){u(t)&&"prototype"===r||e.push(r)})),e},g=p;function v(t,e){var n=g(e),r=n.length;if((0,l.Z)(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}var m=v,y=n(3322),b=function(t){if(!(0,y.Z)(t)||!s(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},x=b;function _(t,e){if(!c(t))return null;var n;if(u(e)&&(n=e),x(e)&&(n=function(t){return m(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null}var w=_,S=n(69014),E=function(t,e){for(var n=null,r=0;r<t.length;r++){var i=t[r],o=i[e];if(!(0,l.Z)(o)){n=c(o)?o[0]:o;break}}return n},T=E,k=function(t){if(!c(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},C=k,M=function(t,e){if(void 0===e&&(e=[]),c(t))for(var n=0;n<t.length;n+=1)M(t[n],e);else e.push(t);return e},A=M,I=function(t){if(c(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},O=function(t){if(c(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},D=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(c(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var i=I(e),o=O(e);return{min:o,max:i}},P=D,L=Array.prototype,N=L.splice,R=L.indexOf,j=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++){var i=e[r],o=-1;while((o=R.call(t,i))>-1)N.call(t,o,1)}return t},F=j,B=n(10696),z=Array.prototype.splice,Z=function(t,e){if(!(0,B.Z)(t))return[];var n=t?e.length:0,r=n-1;while(n--){var i=void 0,o=e[n];n!==r&&o===i||(i=o,z.call(t,o,1))}return t},U=Z,H=function(t,e,n){if(!c(t)&&!x(t))return t;var r=n;return d(t,(function(t,n){r=e(r,t,n)})),r},$=H,G=function(t,e){var n=[];if(!(0,B.Z)(t))return n;var r=-1,i=[],o=t.length;while(++r<o){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return U(t,i),n},W=G,V=function(t){return s(t,"String")};function Y(t,e){var n;if(u(e))n=function(t,n){return e(t)-e(n)};else{var r=[];V(e)?r.push(e):c(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}var X=Y,q=n(2813),K=n(36512),J=function(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[e];if(!(0,l.Z)(a)){c(a)||(a=[a]);for(var s=0;s<a.length;s++){var u=a[s];r[u]||(n.push(u),r[u]=!0)}}}return n},Q=n(95499),tt=n(4454);function et(t,e){return!(!c(t)&&!V(t))&&t[0]===e}var nt=et;function rt(t,e){return!(!c(t)&&!V(t))&&t[t.length-1]===e}var it=rt,ot=n(28351),at=n(8919),st=n(54529),ut=Object.prototype.hasOwnProperty;function lt(t,e){if(!e||!c(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),ut.call(r,n)?r[n].push(a):r[n]=[a]}return r}var ct=lt;function ft(t,e){if(!e)return{0:t};if(!u(e)){var n=c(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 ct(t,e)}var ht=function(t,e){if(!e)return[t];var n=ft(t,e),r=[];for(var i in n)r.push(n[i]);return r},dt=n(86311),pt=n(94576),gt={};function vt(t){var e=gt[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,gt[t]=e}return e}var mt=vt;function yt(t){var e=0,n=0,r=0,i=0;return c(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}}var bt=yt,xt=n(31801),_t=n(68852),wt=function(t){return s(t,"Number")},St=wt,Et=function(t){return St(t)&&t%1!==0},Tt=Et,kt=function(t){return St(t)&&t%2===0},Ct=kt,Mt=Number.isInteger?Number.isInteger:function(t){return St(t)&&t%1===0},At=Mt,It=function(t){return St(t)&&t<0},Ot=It,Dt=n(30871),Pt=function(t){return St(t)&&t%2!==0},Lt=Pt,Nt=function(t){return St(t)&&t>0},Rt=Nt,jt=function(t,e){if(c(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(c(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}},Bt=n(41459),zt=180/Math.PI,Zt=function(t){return zt*t},Ut=Zt,Ht=n(37687),$t=Math.PI/180,Gt=function(t){return $t*t},Wt=Gt,Vt=d,Yt=n(10966),Xt=n(4933),qt=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return d(t,(function(n,r){u(t)&&"prototype"===r||e.push(n)})),e},Kt=qt,Jt=function(t,e){return(0,r.Z)(Kt(t),e)},Qt=n(88399),te=n(59027),ee=n(1912),ne=n(17949),re=n(31273),ie={}.toString,oe=function(t){return ie.call(t).replace(/^\[object /,"").replace(/]$/,"")},ae=oe,se=function(t){return s(t,"Arguments")},ue=se,le=function(t){return s(t,"Boolean")},ce=le,fe=function(t){return s(t,"Date")},he=fe,de=function(t){return s(t,"Error")},pe=de;function ge(t){return St(t)&&isFinite(t)}var ve=n(66401),me=Object.prototype,ye=function(t){var e=t&&t.constructor,n="function"===typeof e&&e.prototype||me;return t===n},be=ye,xe=function(t){return s(t,"RegExp")},_e=xe,we=n(70884),Se=n(40453),Ee=n(64955),Te=n(24856),ke=n(63542),Ce=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),(0,ke.Z)(n.prototype,i)}},Me=Ce,Ae=function(t){if("object"!==typeof t||null===t)return t;var e;if(c(t)){e=[];for(var n=0,r=t.length;n<r;n++)"object"===typeof t[n]&&null!=t[n]?e[n]=Ae(t[n]):e[n]=t[n]}else for(var i in e={},t)"object"===typeof t[i]&&null!=t[i]?e[i]=Ae(t[i]):e[i]=t[i];return e},Ie=Ae,Oe=n(74927),De=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},Pe=5;function Le(t,e,n,r){for(var i in n=n||0,r=r||Pe,e)if(e.hasOwnProperty(i)){var o=e[i];null!==o&&x(o)?(x(t[i])||(t[i]={}),n<r?Le(t[i],o,n+1,r):t[i]=e[i]):c(o)?(t[i]=[],t[i]=t[i].concat(o)):void 0!==o&&(t[i]=o)}}var Ne=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)Le(t,e[r]);return t},Re=Ne,je=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=(0,ke.Z)(o,t.prototype),t.superclass=i(e.prototype,e),(0,ke.Z)(o,n),(0,ke.Z)(t,r),t},Fe=je,Be=n(77097),ze=Object.prototype.hasOwnProperty;function Ze(t){if((0,l.Z)(t))return!0;if((0,B.Z)(t))return!t.length;var e=ae(t);if("Map"===e||"Set"===e)return!t.size;if(be(t))return!Object.keys(t).length;for(var n in t)if(ze.call(t,n))return!1;return!0}var Ue,He=Ze,$e=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(V(t)||V(e))return!1;if((0,B.Z)(t)||(0,B.Z)(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length;r++)if(n=$e(t[r],e[r]),!n)break;return n}if((0,y.Z)(t)||(0,y.Z)(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;r++)if(n=$e(t[i[r]],e[i[r]]),!n)break;return n}return!1},Ge=$e,We=function(t,e,n){return u(n)?!!n(t,e):Ge(t,e)},Ve=n(87286),Ye=n(77567),Xe=function(t,e,n){var r=0,i=V(e)?e.split("."):e;while(t&&r<i.length)t=t[i[r++]];return void 0===t||r<i.length?n:t},qe=function(t,e,n){var r=t,i=V(e)?e.split("."):e;return i.forEach((function(t,e){e<i.length-1?((0,f.Z)(r[t])||(r[t]=St(i[e+1])?[]:{}),r=r[t]):r[t]=n})),t},Ke=Object.prototype.hasOwnProperty,Je=function(t,e){if(null===t||!x(t))return{};var n={};return d(e,(function(e){Ke.call(t,e)&&(n[e]=t[e])})),n},Qe=function(t,e){return $(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})},tn=n(36785),en=n(7909),nn=n(1215),rn={},on=function(t){return t=t||"g",rn[t]?rn[t]+=1:rn[t]=1,t+rn[t]},an=n(17967),sn=n(63532),un=n(89432),ln=n(97582),cn=De((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return Ue||(Ue=document.createElement("canvas").getContext("2d")),Ue.font=[o,a,i,n+"px",r].join(" "),Ue.measureText(V(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),(0,ln.__spreadArrays)([t],Kt(e)).join("")})),fn=function(t,e,n,r){void 0===r&&(r="...");var i,o,a=16,s=cn(r,n),u=V(t)?t:(0,nn.Z)(t),l=e,c=[];if(cn(t,n)<=e)return t;while(1){if(i=u.substr(0,a),o=cn(i,n),o+s>l&&o>l)break;if(c.push(i),l-=o,u=u.substr(a),!u)return c.join("")}while(1){if(i=u.substr(0,1),o=cn(i,n),o+s>l)break;if(c.push(i),l-=o,u=u.substr(1),!u)return c.join("")}return""+c.join("")+r},hn=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}(),dn=hn},10696:function(t,e,n){"use strict";var r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};e.Z=/^(539|826)$/.test(n.j)?r:null},40453:function(t,e,n){"use strict";var r=function(t){return t instanceof Element||t instanceof HTMLDocument};e.Z=/^(539|826)$/.test(n.j)?r:null},2038:function(t,e,n){"use strict";var r=function(t){return null===t||void 0===t};e.Z=/^(539|826)$/.test(n.j)?r:null},66401:function(t,e,n){"use strict";var r=function(t){return null===t};e.Z=/^(539|826)$/.test(n.j)?r:null},30871:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=1e-5;function i(t,e,n){return void 0===n&&(n=r),Math.abs(t-e)<n}},3322:function(t,e,n){"use strict";var r=function(t){return"object"===typeof t&&null!==t};e.Z=/^(539|826)$/.test(n.j)?r:null},8025:function(t,e){"use strict";e.Z=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},70884:function(t,e,n){"use strict";var r=function(t){return void 0===t};e.Z=/^(539|826)$/.test(n.j)?r:null},4454:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(10696);function i(t){if((0,r.Z)(t)){var e=t;return e[e.length-1]}}},88399:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(1215);var i=function(t){return(0,r.Z)(t).toLowerCase()};e.Z=/^(539|826)$/.test(n.j)?i:null},59027:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(1215);var i=function(t){var e=(0,r.Z)(t);return e.charAt(0).toLowerCase()+e.substring(1)};e.Z=/^(539|826)$/.test(n.j)?i:null},77567:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(2038);if(/^(539|826)$/.test(n.j))var i=n(8025);var o=function(t){return t};e.Z=function(t,e){void 0===e&&(e=o);var n={};return(0,i.Z)(t)&&!(0,r.Z)(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},87286:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(10696);var i=function(t,e){if(!(0,r.Z)(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(e(o,i))}return n};e.Z=/^(539|826)$/.test(n.j)?i:null},63542:function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function i(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}n.d(e,{Z:function(){return i}})},41459:function(t,e,n){"use strict";var r=function(t,e){return(t%e+e)%e};e.Z=/^(539|826)$/.test(n.j)?r:null},17967:function(t,e){"use strict";e.Z=function(){}},64955:function(t,e,n){"use strict";function r(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}n.d(e,{Z:function(){return r}})},89432:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(2038);if(/^(539|826)$/.test(n.j))var i=n(10696);function o(t){return(0,r.Z)(t)?0:(0,i.Z)(t)?t.length:Object.keys(t).length}},54529:function(t,e,n){"use strict";var r=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1};e.Z=/^(539|826)$/.test(n.j)?r:null},1912:function(t,e,n){"use strict";function r(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}e.Z=/^(539|826)$/.test(n.j)?r:null},36785:function(t,e){"use strict";e.Z=function(t,e,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var c=e-(l-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l}},7909:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(10696);e.Z=function(t){return(0,r.Z)(t)?Array.prototype.slice.call(t):[]}},37687:function(t,e,n){"use strict";e.Z=/^(539|826)$/.test(n.j)?parseInt:null},1215:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(2038);e.Z=function(t){return(0,r.Z)(t)?"":t.toString()}},2813:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(36512);var i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.Z)([].concat.apply([],t))};e.Z=/^(539|826)$/.test(n.j)?i:null},36512:function(t,e,n){"use strict";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}n.d(e,{Z:function(){return r}})},17949:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(1215);var i=function(t){return(0,r.Z)(t).toUpperCase()};e.Z=/^(539|826)$/.test(n.j)?i:null},31273:function(t,e,n){"use strict";if(/^(539|826)$/.test(n.j))var r=n(1215);var i=function(t){var e=(0,r.Z)(t);return e.charAt(0).toUpperCase()+e.substring(1)};e.Z=/^(539|826)$/.test(n.j)?i:null},94576:function(t,e,n){"use strict";function r(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}e.Z=/^(539|826)$/.test(n.j)?r:null},23668:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});const r=new Intl.Collator("en",{numeric:!0,sensitivity:"base"}).compare,i=1/0,o=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a="eexxaacctt",s="A-Z",u="a-z",l=(t,e,n)=>t.replace(s,e).replace(u,n),c={unicode:!1,alpha:null,interSplit:"[^A-Za-z\\d']+",intraSplit:"[a-z][A-Z]",intraBound:"[A-Za-z]\\d|\\d[A-Za-z]|[a-z][A-Z]",interLft:0,interRgt:0,interChars:".",interIns:i,intraChars:"[a-z\\d']",intraIns:0,intraContr:"'[a-z]{1,2}\\b",intraMode:0,intraSlice:[1,i],intraSub:0,intraTrn:0,intraDel:0,intraFilt:(t,e,n)=>!0,sort:(t,e,n)=>{let{idx:i,chars:o,terms:a,interLft2:s,interLft1:u,start:l,intraIns:c,interIns:f}=t;return i.map(((t,e)=>e)).sort(((t,n)=>o[n]-o[t]||c[t]-c[n]||a[n]+s[n]+.5*u[n]-(a[t]+s[t]+.5*u[t])||f[t]-f[n]||l[t]-l[n]||r(e[i[t]],e[i[n]])))}},f=(t,e)=>0==e?"":1==e?t+"??":e==i?t+"*?":t+`{0,${e}}?`,h="(?:\\b|_)";function d(t){t=Object.assign({},c,t);let{unicode:e,interLft:n,interRgt:r,intraMode:i,intraSlice:s,intraIns:u,intraSub:d,intraTrn:p,intraDel:v,intraContr:m,intraSplit:y,interSplit:b,intraBound:x,intraChars:_}=t,w=t.letters??t.alpha;if(null!=w){let t=w.toLocaleUpperCase(),e=w.toLocaleLowerCase();b=l(b,t,e),y=l(y,t,e),x=l(x,t,e),_=l(_,t,e),m=l(m,t,e)}let S=e?"u":"";const E='".+?"',T=new RegExp(E,"gi"+S),k=new RegExp(`(?:\\s+|^)-(?:${_}+|${E})`,"gi"+S);let{intraRules:C}=t;null==C&&(C=t=>{let e=c.intraSlice,n=0,r=0,i=0,o=0;if(/[^\d]/.test(t)){let a=t.length;a<=4?a>=3&&(i=Math.min(p,1),4==a&&(n=Math.min(u,1))):(e=s,n=u,r=d,i=p,o=v)}return{intraSlice:e,intraIns:n,intraSub:r,intraTrn:i,intraDel:o}});let M=!!y,A=new RegExp(y,"g"+S),I=new RegExp(b,"g"+S),O=new RegExp("^"+b+"|"+b+"$","g"+S),D=new RegExp(m,"gi"+S);const P=t=>{let e=[];t=t.replace(T,(t=>(e.push(t),a))),t=t.replace(O,"").toLocaleLowerCase(),M&&(t=t.replace(A,(t=>t[0]+" "+t[1])));let n=0;return t.split(I).filter((t=>""!=t)).map((t=>t===a?e[n++]:t))},L=/[^\d]+|\d+/g,N=(e,a=0,s=!1)=>{let l=P(e);if(0==l.length)return[];let c,d=Array(l.length).fill("");if(l=l.map(((t,e)=>t.replace(D,(t=>(d[e]=t,""))))),1==i)c=l.map(((t,e)=>{if('"'===t[0])return o(t.slice(1,-1));let n="";for(let r of t.matchAll(L)){let t=r[0],{intraSlice:i,intraIns:o,intraSub:a,intraTrn:s,intraDel:u}=C(t);if(o+a+s+u==0)n+=t+d[e];else{let[r,l]=i,c=t.slice(0,r),h=t.slice(l),p=t.slice(r,l);1==o&&1==c.length&&c!=p[0]&&(c+="(?!"+c+")");let g=p.length,v=[t];if(a)for(let t=0;t<g;t++)v.push(c+p.slice(0,t)+_+p.slice(t+1)+h);if(s)for(let t=0;t<g-1;t++)p[t]!=p[t+1]&&v.push(c+p.slice(0,t)+p[t+1]+p[t]+p.slice(t+2)+h);if(u)for(let t=0;t<g;t++)v.push(c+p.slice(0,t+1)+"?"+p.slice(t+1)+h);if(o){let t=f(_,1);for(let e=0;e<g;e++)v.push(c+p.slice(0,e)+t+p.slice(e)+h)}n+="(?:"+v.join("|")+")"+d[e]}}return n}));else{let t=f(_,u);2==a&&u>0&&(t=")("+t+")("),c=l.map(((e,n)=>'"'===e[0]?o(e.slice(1,-1)):e.split("").map(((t,e,n)=>(1==u&&0==e&&n.length>1&&t!=n[e+1]&&(t+="(?!"+t+")"),t))).join(t)+d[n]))}let p=2==n?h:"",g=2==r?h:"",v=g+f(t.interChars,t.interIns)+p;return a>0?s?c=p+"("+c.join(")"+g+"|"+p+"(")+")"+g:(c="("+c.join(")("+v+")(")+")",c="(.??"+p+")"+c+"("+g+".*)"):(c=c.join(v),c=p+c+g),[new RegExp(c,"i"+S),l,d]},R=(t,e,n)=>{let[r]=N(e);if(null==r)return null;let i=[];if(null!=n)for(let o=0;o<n.length;o++){let e=n[o];r.test(t[e])&&i.push(e)}else for(let o=0;o<t.length;o++)r.test(t[o])&&i.push(o);return i};let j=!!x,F=new RegExp(b,S),B=new RegExp(x,S);const z=(e,i,o)=>{let[a,s,u]=N(o,1),[l]=N(o,2),c=s.length,f=e.length,h=Array(f).fill(0),d={idx:Array(f),start:h.slice(),chars:h.slice(),terms:h.slice(),interIns:h.slice(),intraIns:h.slice(),interLft2:h.slice(),interRgt2:h.slice(),interLft1:h.slice(),interRgt1:h.slice(),ranges:Array(f)},p=1==n||1==r,g=0;for(let v=0;v<e.length;v++){let o=i[e[v]],f=o.match(a),h=f.index+f[1].length,m=h,y=!1,b=0,x=0,_=0,w=0,E=0,T=0,k=0,C=0,M=[];for(let e=0,i=2;e<c;e++,i+=2){let a=f[i].toLocaleLowerCase(),l=s[e],d='"'==l[0]?l.slice(1,-1):l+u[e],g=d.length,v=a.length,A=a==d;if(!A&&f[i+1].length>=g){let t=f[i+1].toLocaleLowerCase().indexOf(d);t>-1&&(M.push(m,v,t,g),m+=Z(f,i,t,g),a=d,v=g,A=!0,0==e&&(h=m))}if(p||A){let t=m-1,s=m+v,u=!1,l=!1;if(-1==t||F.test(o[t]))A&&b++,u=!0;else{if(2==n){y=!0;break}if(j&&B.test(o[t]+o[t+1]))A&&x++,u=!0;else if(1==n){let t=f[i+1],n=m+v;if(t.length>=g){let r,s=0,l=!1,c=new RegExp(d,"ig"+S);while(r=c.exec(t)){s=r.index;let t=n+s,e=t-1;if(-1==e||F.test(o[e])){b++,l=!0;break}if(B.test(o[e]+o[t])){x++,l=!0;break}}l&&(u=!0,M.push(m,v,s,g),m+=Z(f,i,s,g),a=d,v=g,A=!0,0==e&&(h=m))}if(!u){y=!0;break}}}if(s==o.length||F.test(o[s]))A&&_++,l=!0;else{if(2==r){y=!0;break}if(j&&B.test(o[s-1]+o[s]))A&&w++,l=!0;else if(1==r){y=!0;break}}A&&(E+=g,u&&l&&T++)}if(v>g&&(C+=v-g),e>0&&(k+=f[i-1].length),!t.intraFilt(d,a,m)){y=!0;break}e<c-1&&(m+=v+f[i+1].length)}if(!y){d.idx[g]=e[v],d.interLft2[g]=b,d.interLft1[g]=x,d.interRgt2[g]=_,d.interRgt1[g]=w,d.chars[g]=E,d.terms[g]=T,d.interIns[g]=k,d.intraIns[g]=C,d.start[g]=h;let t=o.match(l),n=t.index+t[1].length,r=M.length,i=r>0?0:1/0,a=r-4;for(let e=2;e<t.length;){let r=t[e].length;if(i<=a&&M[i]==n){let r=M[i+1],o=M[i+2],a=M[i+3],s=e,u="";for(let e=0;e<r;s++)u+=t[s],e+=t[s].length;t.splice(e,s-e,u),n+=Z(t,e,o,a),i+=4}else n+=r,e++}n=t.index+t[1].length;let s=d.ranges[g]=[],u=n,c=n;for(let e=2;e<t.length;e++){let r=t[e].length;n+=r,e%2==0?c=n:r>0&&(s.push(u,c),u=c=n)}c>u&&s.push(u,c),g++}}if(g<e.length)for(let t in d)d[t]=d[t].slice(0,g);return d},Z=(t,e,n,r)=>{let i=t[e]+t[e+1].slice(0,n);return t[e-1]+=i,t[e]=t[e+1].slice(n,n+r),t[e+1]=t[e+1].slice(n+r),i.length},U=5,H=(e,n,r,i=1e3,a)=>{r=r?!0===r?U:r:0;let s=null,u=null,l=[];n=n.replace(k,(t=>{let e=t.trim().slice(1);return'"'===e[0]&&(e=o(e.slice(1,-1))),l.push(e),""}));let c,f=P(n);if(l.length>0){if(c=new RegExp(l.join("|"),"i"+S),0==f.length){let t=[];for(let n=0;n<e.length;n++)c.test(e[n])||t.push(n);return[t,null,null]}}else if(0==f.length)return[null,null,null];if(r>0){let t=P(n);if(t.length>1){let n=t.slice().sort(((t,e)=>e.length-t.length));for(let t=0;t<n.length;t++){if(0==a?.length)return[[],null,null];a=R(e,n[t],a)}if(t.length>r)return[a,null,null];s=g(t).map((t=>t.join(" "))),u=[];let i=new Set;for(let t=0;t<s.length;t++)if(i.size<a.length){let n=a.filter((t=>!i.has(t))),r=R(e,s[t],n);for(let t=0;t<r.length;t++)i.add(r[t]);u.push(r)}else u.push([])}}null==s&&(s=[n],u=[a?.length>0?a:R(e,n)]);let h=null,d=null;l.length>0&&(u=u.map((t=>t.filter((t=>!c.test(e[t]))))));let p=u.reduce(((t,e)=>t+e.length),0);if(p<=i){h={},d=[];for(let n=0;n<u.length;n++){let r=u[n];if(null==r||0==r.length)continue;let i=s[n],o=z(r,e,i),a=t.sort(o,e,i);if(n>0)for(let t=0;t<a.length;t++)a[t]+=d.length;for(let t in o)h[t]=(h[t]??[]).concat(o[t]);d=d.concat(a)}}return[[].concat(...u),h,d]};return{search:(...t)=>{let e=H(...t);return e},split:P,filter:R,info:z,sort:t.sort}}const p=(()=>{let t={A:"ÁÀÃÂÄĄ",a:"áàãâäą",E:"ÉÈÊËĖ",e:"éèêëę",I:"ÍÌÎÏĮ",i:"íìîïį",O:"ÓÒÔÕÖ",o:"óòôõö",U:"ÚÙÛÜŪŲ",u:"úùûüūų",C:"ÇČĆ",c:"çčć",L:"Ł",l:"ł",N:"ÑŃ",n:"ñń",S:"ŠŚ",s:"šś",Z:"ŻŹ",z:"żź"},e=new Map,n="";for(let o in t)t[o].split("").forEach((t=>{n+=t,e.set(t,o)}));let r=new RegExp(`[${n}]`,"g"),i=t=>e.get(t);return t=>{if("string"==typeof t)return t.replace(r,i);let e=Array(t.length);for(let n=0;n<t.length;n++)e[n]=t[n].replace(r,i);return e}})();function g(t){t=t.slice();let e,n,r=t.length,i=[t.slice()],o=new Array(r).fill(0),a=1;while(a<r)o[a]<a?(e=a%2&&o[a],n=t[a],t[a]=t[e],t[e]=n,++o[a],a=1,i.push(t.slice())):(o[a]=0,++a);return i}const v=(t,e)=>e?`<mark>${t}</mark>`:t,m=(t,e)=>t+e;function y(t,e,n=v,r="",i=m){r=i(r,n(t.substring(0,e[0]),!1))??r;for(let o=0;o<e.length;o+=2){let a=e[o],s=e[o+1];r=i(r,n(t.substring(a,s),!0))??r,o<e.length-3&&(r=i(r,n(t.substring(e[o+1],e[o+2]),!1))??r)}return r=i(r,n(t.substring(e[e.length-1]),!1))??r,r}d.latinize=p,d.permute=t=>{let e=g([...Array(t.length).keys()]).sort(((t,e)=>{for(let n=0;n<t.length;n++)if(t[n]!=e[n])return t[n]-e[n];return 0}));return e.map((e=>e.map((e=>t[e]))))},d.highlight=y},89188:function(t,e,n){"use strict";if(n.d(e,{fi:function(){return p},kZ:function(){return d}}),246!=n.j)var r=n(26143);if(246!=n.j)var i=n(40583);if(246!=n.j)var o=n(7994);if(246!=n.j)var a=n(21955);if(246!=n.j)var s=n(50380);if(246!=n.j)var u=n(98293);if(246!=n.j)var l=n(3);if(246!=n.j)var c=n(62556);var f={placement:"bottom",modifiers:[],strategy:"absolute"};function h(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"===typeof t.getBoundingClientRect)}))}function d(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,d=void 0===n?[]:n,p=e.defaultOptions,g=void 0===p?f:p;return function(t,e,n){void 0===n&&(n=g);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},f,g),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},v=[],m=!1,y={state:p,setOptions:function(n){var r="function"===typeof n?n(p.options):n;x(),p.options=Object.assign({},g,p.options,r),p.scrollParents={reference:(0,c.kK)(t)?(0,o.Z)(t):t.contextElement?(0,o.Z)(t.contextElement):[],popper:(0,o.Z)(e)};var i=(0,s.Z)((0,l.Z)([].concat(d,p.options.modifiers)));return p.orderedModifiers=i.filter((function(t){return t.enabled})),b(),y.update()},forceUpdate:function(){if(!m){var t=p.elements,e=t.reference,n=t.popper;if(h(e,n)){p.rects={reference:(0,r.Z)(e,(0,a.Z)(n),"fixed"===p.options.strategy),popper:(0,i.Z)(n)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach((function(t){return p.modifiersData[t.name]=Object.assign({},t.data)}));for(var o=0;o<p.orderedModifiers.length;o++)if(!0!==p.reset){var s=p.orderedModifiers[o],u=s.fn,l=s.options,c=void 0===l?{}:l,f=s.name;"function"===typeof u&&(p=u({state:p,options:c,name:f,instance:y})||p)}else p.reset=!1,o=-1}}},update:(0,u.Z)((function(){return new Promise((function(t){y.forceUpdate(),t(p)}))})),destroy:function(){x(),m=!0}};if(!h(t,e))return y;function b(){p.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,r=void 0===n?{}:n,i=t.effect;if("function"===typeof i){var o=i({state:p,name:e,instance:y,options:r}),a=function(){};v.push(o||a)}}))}function x(){v.forEach((function(t){return t()})),v=[]}return y.setOptions(n).then((function(t){!m&&n.onFirstUpdate&&n.onFirstUpdate(t)})),y}}var p=246!=n.j?d():null},94985:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),246!=n.j)var r=n(62556);function i(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&(0,r.Zq)(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}},50400:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return s}}),246!=n.j)var r=n(62556);if(246!=n.j)var i=n(138);if(246!=n.j)var o=n(62057);if(246!=n.j)var a=n(67977);function s(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var s=t.getBoundingClientRect(),u=1,l=1;e&&(0,r.Re)(t)&&(u=t.offsetWidth>0&&(0,i.NM)(s.width)/t.offsetWidth||1,l=t.offsetHeight>0&&(0,i.NM)(s.height)/t.offsetHeight||1);var c=(0,r.kK)(t)?(0,o.Z)(t):window,f=c.visualViewport,h=!(0,a.Z)()&&n,d=(s.left+(h&&f?f.offsetLeft:0))/u,p=(s.top+(h&&f?f.offsetTop:0))/l,g=s.width/u,v=s.height/l;return{width:g,height:v,top:p,right:d+g,bottom:p+v,left:d,x:d,y:p}}},21437:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return x}}),246!=n.j)var r=n(87701);if(246!=n.j)var i=n(3155);if(246!=n.j)var o=n(27723);if(246!=n.j)var a=n(7994);if(246!=n.j)var s=n(21955);if(246!=n.j)var u=n(67252);if(246!=n.j)var l=n(43062);if(246!=n.j)var c=n(62556);if(246!=n.j)var f=n(50400);if(246!=n.j)var h=n(95923);if(246!=n.j)var d=n(94985);if(246!=n.j)var p=n(96333);if(246!=n.j)var g=n(65626);if(246!=n.j)var v=n(138);function m(t,e){var n=(0,f.Z)(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function y(t,e,n){return e===r.Pj?(0,g.Z)((0,i.Z)(t,n)):(0,c.kK)(e)?m(e,n):(0,g.Z)((0,o.Z)((0,u.Z)(t)))}function b(t){var e=(0,a.Z)((0,h.Z)(t)),n=["absolute","fixed"].indexOf((0,l.Z)(t).position)>=0,r=n&&(0,c.Re)(t)?(0,s.Z)(t):t;return(0,c.kK)(r)?e.filter((function(t){return(0,c.kK)(t)&&(0,d.Z)(t,r)&&"body"!==(0,p.Z)(t)})):[]}function x(t,e,n,r){var i="clippingParents"===e?b(t):[].concat(e),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(e,n){var i=y(t,n,r);return e.top=(0,v.Fp)(i.top,e.top),e.right=(0,v.VV)(i.right,e.right),e.bottom=(0,v.VV)(i.bottom,e.bottom),e.left=(0,v.Fp)(i.left,e.left),e}),y(t,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}},26143:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return h}}),246!=n.j)var r=n(50400);if(246!=n.j)var i=n(64782);if(246!=n.j)var o=n(96333);if(246!=n.j)var a=n(62556);if(246!=n.j)var s=n(4063);if(246!=n.j)var u=n(67252);if(246!=n.j)var l=n(60611);if(246!=n.j)var c=n(138);function f(t){var e=t.getBoundingClientRect(),n=(0,c.NM)(e.width)/t.offsetWidth||1,r=(0,c.NM)(e.height)/t.offsetHeight||1;return 1!==n||1!==r}function h(t,e,n){void 0===n&&(n=!1);var c=(0,a.Re)(e),h=(0,a.Re)(e)&&f(e),d=(0,u.Z)(e),p=(0,r.Z)(t,h,n),g={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(c||!c&&!n)&&(("body"!==(0,o.Z)(e)||(0,l.Z)(d))&&(g=(0,i.Z)(e)),(0,a.Re)(e)?(v=(0,r.Z)(e,!0),v.x+=e.clientLeft,v.y+=e.clientTop):d&&(v.x=(0,s.Z)(d))),{x:p.left+g.scrollLeft-v.x,y:p.top+g.scrollTop-v.y,width:p.width,height:p.height}}},43062:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),246!=n.j)var r=n(62057);function i(t){return(0,r.Z)(t).getComputedStyle(t)}},67252:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),246!=n.j)var r=n(62556);function i(t){return(((0,r.kK)(t)?t.ownerDocument:t.document)||window.document).documentElement}},27723:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return u}}),246!=n.j)var r=n(67252);if(246!=n.j)var i=n(43062);if(246!=n.j)var o=n(4063);if(246!=n.j)var a=n(82163);if(246!=n.j)var s=n(138);function u(t){var e,n=(0,r.Z)(t),u=(0,a.Z)(t),l=null==(e=t.ownerDocument)?void 0:e.body,c=(0,s.Fp)(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),f=(0,s.Fp)(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),h=-u.scrollLeft+(0,o.Z)(t),d=-u.scrollTop;return"rtl"===(0,i.Z)(l||n).direction&&(h+=(0,s.Fp)(n.clientWidth,l?l.clientWidth:0)-c),{width:c,height:f,x:h,y:d}}},18328:function(t,e,n){"use strict";function r(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}n.d(e,{Z:function(){return r}})},40583:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),246!=n.j)var r=n(50400);function i(t){var e=(0,r.Z)(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}},96333:function(t,e,n){"use strict";function r(t){return t?(t.nodeName||"").toLowerCase():null}n.d(e,{Z:function(){return r}})},64782:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return s}}),246!=n.j)var r=n(82163);if(246!=n.j)var i=n(62057);if(246!=n.j)var o=n(62556);if(246!=n.j)var a=n(18328);function s(t){return t!==(0,i.Z)(t)&&(0,o.Re)(t)?(0,a.Z)(t):(0,r.Z)(t)}},21955:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return h}}),246!=n.j)var r=n(62057);if(246!=n.j)var i=n(96333);if(246!=n.j)var o=n(43062);if(246!=n.j)var a=n(62556);if(246!=n.j)var s=n(67313);if(246!=n.j)var u=n(95923);if(246!=n.j)var l=n(85918);function c(t){return(0,a.Re)(t)&&"fixed"!==(0,o.Z)(t).position?t.offsetParent:null}function f(t){var e=/firefox/i.test((0,l.Z)()),n=/Trident/i.test((0,l.Z)());if(n&&(0,a.Re)(t)){var r=(0,o.Z)(t);if("fixed"===r.position)return null}var s=(0,u.Z)(t);(0,a.Zq)(s)&&(s=s.host);while((0,a.Re)(s)&&["html","body"].indexOf((0,i.Z)(s))<0){var c=(0,o.Z)(s);if("none"!==c.transform||"none"!==c.perspective||"paint"===c.contain||-1!==["transform","perspective"].indexOf(c.willChange)||e&&"filter"===c.willChange||e&&c.filter&&"none"!==c.filter)return s;s=s.parentNode}return null}function h(t){var e=(0,r.Z)(t),n=c(t);while(n&&(0,s.Z)(n)&&"static"===(0,o.Z)(n).position)n=c(n);return n&&("html"===(0,i.Z)(n)||"body"===(0,i.Z)(n)&&"static"===(0,o.Z)(n).position)?e:n||f(t)||e}},95923:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return a}}),246!=n.j)var r=n(96333);if(246!=n.j)var i=n(67252);if(246!=n.j)var o=n(62556);function a(t){return"html"===(0,r.Z)(t)?t:t.assignedSlot||t.parentNode||((0,o.Zq)(t)?t.host:null)||(0,i.Z)(t)}},97523:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return s}}),246!=n.j)var r=n(95923);if(246!=n.j)var i=n(60611);if(246!=n.j)var o=n(96333);if(246!=n.j)var a=n(62556);function s(t){return["html","body","#document"].indexOf((0,o.Z)(t))>=0?t.ownerDocument.body:(0,a.Re)(t)&&(0,i.Z)(t)?t:s((0,r.Z)(t))}},3155:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return s}}),246!=n.j)var r=n(62057);if(246!=n.j)var i=n(67252);if(246!=n.j)var o=n(4063);if(246!=n.j)var a=n(67977);function s(t,e){var n=(0,r.Z)(t),s=(0,i.Z)(t),u=n.visualViewport,l=s.clientWidth,c=s.clientHeight,f=0,h=0;if(u){l=u.width,c=u.height;var d=(0,a.Z)();(d||!d&&"fixed"===e)&&(f=u.offsetLeft,h=u.offsetTop)}return{width:l,height:c,x:f+(0,o.Z)(t),y:h}}},62057:function(t,e,n){"use strict";function r(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}n.d(e,{Z:function(){return r}})},82163:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),246!=n.j)var r=n(62057);function i(t){var e=(0,r.Z)(t),n=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:n,scrollTop:i}}},4063:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return a}}),246!=n.j)var r=n(50400);if(246!=n.j)var i=n(67252);if(246!=n.j)var o=n(82163);function a(t){return(0,r.Z)((0,i.Z)(t)).left+(0,o.Z)(t).scrollLeft}},62556:function(t,e,n){"use strict";if(n.d(e,{Re:function(){return o},Zq:function(){return a},kK:function(){return i}}),246!=n.j)var r=n(62057);function i(t){var e=(0,r.Z)(t).Element;return t instanceof e||t instanceof Element}function o(t){var e=(0,r.Z)(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function a(t){if("undefined"===typeof ShadowRoot)return!1;var e=(0,r.Z)(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}},67977:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),246!=n.j)var r=n(85918);function i(){return!/^((?!chrome|android).)*safari/i.test((0,r.Z)())}},60611:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),246!=n.j)var r=n(43062);function i(t){var e=(0,r.Z)(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}},67313:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),246!=n.j)var r=n(96333);function i(t){return["table","td","th"].indexOf((0,r.Z)(t))>=0}},7994:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return s}}),246!=n.j)var r=n(97523);if(246!=n.j)var i=n(95923);if(246!=n.j)var o=n(62057);if(246!=n.j)var a=n(60611);function s(t,e){var n;void 0===e&&(e=[]);var u=(0,r.Z)(t),l=u===(null==(n=t.ownerDocument)?void 0:n.body),c=(0,o.Z)(u),f=l?[c].concat(c.visualViewport||[],(0,a.Z)(u)?u:[]):u,h=e.concat(f);return l?h:h.concat(s((0,i.Z)(f)))}},87701:function(t,e,n){"use strict";n.d(e,{BL:function(){return l},Ct:function(){return v},DH:function(){return _},F2:function(){return o},I:function(){return i},MS:function(){return T},N7:function(){return m},Pj:function(){return h},XM:function(){return x},YP:function(){return p},bw:function(){return g},cW:function(){return E},d7:function(){return s},ij:function(){return y},iv:function(){return S},k5:function(){return d},mv:function(){return u},r5:function(){return b},t$:function(){return a},ut:function(){return c},wX:function(){return w},we:function(){return r},xs:function(){return k},zV:function(){return f}});var r="top",i="bottom",o="right",a="left",s="auto",u=[r,i,o,a],l="start",c="end",f="clippingParents",h="viewport",d="popper",p="reference",g=246!=n.j?u.reduce((function(t,e){return t.concat([e+"-"+l,e+"-"+c])}),[]):null,v=246!=n.j?[].concat(u,[s]).reduce((function(t,e){return t.concat([e,e+"-"+l,e+"-"+c])}),[]):null,m="beforeRead",y="read",b="afterRead",x="beforeMain",_="main",w="afterMain",S="beforeWrite",E="write",T="afterWrite",k=[m,y,b,x,_,w,S,E,T]},17824:function(t,e,n){"use strict";var r=n(96333),i=n(62556);function o(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},o=e.attributes[t]||{},a=e.elements[t];(0,i.Re)(a)&&(0,r.Z)(a)&&(Object.assign(a.style,n),Object.keys(o).forEach((function(t){var e=o[t];!1===e?a.removeAttribute(t):a.setAttribute(t,!0===e?"":e)})))}))}function a(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],a=e.attributes[t]||{},s=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]),u=s.reduce((function(t,e){return t[e]="",t}),{});(0,i.Re)(o)&&(0,r.Z)(o)&&(Object.assign(o.style,u),Object.keys(a).forEach((function(t){o.removeAttribute(t)})))}))}}e.Z={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:a,requires:["computeStyles"]}},66896:function(t,e,n){"use strict";var r=n(6206),i=n(40583),o=n(94985),a=n(21955),s=n(11516),u=n(57516),l=n(63293),c=n(33706),f=n(87701),h=function(t,e){return t="function"===typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t,(0,l.Z)("number"!==typeof t?t:(0,c.Z)(t,f.mv))};function d(t){var e,n=t.state,o=t.name,l=t.options,c=n.elements.arrow,d=n.modifiersData.popperOffsets,p=(0,r.Z)(n.placement),g=(0,s.Z)(p),v=[f.t$,f.F2].indexOf(p)>=0,m=v?"height":"width";if(c&&d){var y=h(l.padding,n),b=(0,i.Z)(c),x="y"===g?f.we:f.t$,_="y"===g?f.I:f.F2,w=n.rects.reference[m]+n.rects.reference[g]-d[g]-n.rects.popper[m],S=d[g]-n.rects.reference[g],E=(0,a.Z)(c),T=E?"y"===g?E.clientHeight||0:E.clientWidth||0:0,k=w/2-S/2,C=y[x],M=T-b[m]-y[_],A=T/2-b[m]/2+k,I=(0,u.u)(C,A,M),O=g;n.modifiersData[o]=(e={},e[O]=I,e.centerOffset=I-A,e)}}function p(t){var e=t.state,n=t.options,r=n.element,i=void 0===r?"[data-popper-arrow]":r;null!=i&&("string"!==typeof i||(i=e.elements.popper.querySelector(i),i))&&(0,o.Z)(e.elements.popper,i)&&(e.elements.arrow=i)}e.Z={name:"arrow",enabled:!0,phase:"main",fn:d,effect:p,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},36531:function(t,e,n){"use strict";var r=n(87701),i=n(21955),o=n(62057),a=n(67252),s=n(43062),u=n(6206),l=n(14943),c=n(138),f={top:"auto",right:"auto",bottom:"auto",left:"auto"};function h(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:(0,c.NM)(n*i)/i||0,y:(0,c.NM)(r*i)/i||0}}function d(t){var e,n=t.popper,u=t.popperRect,l=t.placement,c=t.variation,d=t.offsets,p=t.position,g=t.gpuAcceleration,v=t.adaptive,m=t.roundOffsets,y=t.isFixed,b=d.x,x=void 0===b?0:b,_=d.y,w=void 0===_?0:_,S="function"===typeof m?m({x:x,y:w}):{x:x,y:w};x=S.x,w=S.y;var E=d.hasOwnProperty("x"),T=d.hasOwnProperty("y"),k=r.t$,C=r.we,M=window;if(v){var A=(0,i.Z)(n),I="clientHeight",O="clientWidth";if(A===(0,o.Z)(n)&&(A=(0,a.Z)(n),"static"!==(0,s.Z)(A).position&&"absolute"===p&&(I="scrollHeight",O="scrollWidth")),l===r.we||(l===r.t$||l===r.F2)&&c===r.ut){C=r.I;var D=y&&A===M&&M.visualViewport?M.visualViewport.height:A[I];w-=D-u.height,w*=g?1:-1}if(l===r.t$||(l===r.we||l===r.I)&&c===r.ut){k=r.F2;var P=y&&A===M&&M.visualViewport?M.visualViewport.width:A[O];x-=P-u.width,x*=g?1:-1}}var L,N=Object.assign({position:p},v&&f),R=!0===m?h({x:x,y:w},(0,o.Z)(n)):{x:x,y:w};return x=R.x,w=R.y,g?Object.assign({},N,(L={},L[C]=T?"0":"",L[k]=E?"0":"",L.transform=(M.devicePixelRatio||1)<=1?"translate("+x+"px, "+w+"px)":"translate3d("+x+"px, "+w+"px, 0)",L)):Object.assign({},N,(e={},e[C]=T?w+"px":"",e[k]=E?x+"px":"",e.transform="",e))}function p(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,c=void 0===s||s,f={placement:(0,u.Z)(e.placement),variation:(0,l.Z)(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,d(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,d(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}e.Z={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:p,data:{}}},82372:function(t,e,n){"use strict";var r=n(62057),i={passive:!0};function o(t){var e=t.state,n=t.instance,o=t.options,a=o.scroll,s=void 0===a||a,u=o.resize,l=void 0===u||u,c=(0,r.Z)(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&f.forEach((function(t){t.addEventListener("scroll",n.update,i)})),l&&c.addEventListener("resize",n.update,i),function(){s&&f.forEach((function(t){t.removeEventListener("scroll",n.update,i)})),l&&c.removeEventListener("resize",n.update,i)}}e.Z={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:o,data:{}}},68855:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var r={left:"right",right:"left",bottom:"top",top:"bottom"};function i(t){return t.replace(/left|right|bottom|top/g,(function(t){return r[t]}))}var o=n(6206),a={start:"end",end:"start"};function s(t){return t.replace(/start|end/g,(function(t){return a[t]}))}var u=n(23161),l=n(14943),c=n(87701);function f(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,f=n.flipVariations,h=n.allowedAutoPlacements,d=void 0===h?c.Ct:h,p=(0,l.Z)(r),g=p?f?c.bw:c.bw.filter((function(t){return(0,l.Z)(t)===p})):c.mv,v=g.filter((function(t){return d.indexOf(t)>=0}));0===v.length&&(v=g);var m=v.reduce((function(e,n){return e[n]=(0,u.Z)(t,{placement:n,boundary:i,rootBoundary:a,padding:s})[(0,o.Z)(n)],e}),{});return Object.keys(m).sort((function(t,e){return m[t]-m[e]}))}function h(t){if((0,o.Z)(t)===c.d7)return[];var e=i(t);return[s(t),e,s(e)]}function d(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var a=n.mainAxis,s=void 0===a||a,d=n.altAxis,p=void 0===d||d,g=n.fallbackPlacements,v=n.padding,m=n.boundary,y=n.rootBoundary,b=n.altBoundary,x=n.flipVariations,_=void 0===x||x,w=n.allowedAutoPlacements,S=e.options.placement,E=(0,o.Z)(S),T=E===S,k=g||(T||!_?[i(S)]:h(S)),C=[S].concat(k).reduce((function(t,n){return t.concat((0,o.Z)(n)===c.d7?f(e,{placement:n,boundary:m,rootBoundary:y,padding:v,flipVariations:_,allowedAutoPlacements:w}):n)}),[]),M=e.rects.reference,A=e.rects.popper,I=new Map,O=!0,D=C[0],P=0;P<C.length;P++){var L=C[P],N=(0,o.Z)(L),R=(0,l.Z)(L)===c.BL,j=[c.we,c.I].indexOf(N)>=0,F=j?"width":"height",B=(0,u.Z)(e,{placement:L,boundary:m,rootBoundary:y,altBoundary:b,padding:v}),z=j?R?c.F2:c.t$:R?c.I:c.we;M[F]>A[F]&&(z=i(z));var Z=i(z),U=[];if(s&&U.push(B[N]<=0),p&&U.push(B[z]<=0,B[Z]<=0),U.every((function(t){return t}))){D=L,O=!1;break}I.set(L,U)}if(O)for(var H=_?3:1,$=function(t){var e=C.find((function(e){var n=I.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return D=e,"break"},G=H;G>0;G--){var W=$(G);if("break"===W)break}e.placement!==D&&(e.modifiersData[r]._skip=!0,e.placement=D,e.reset=!0)}}var p={name:"flip",enabled:!0,phase:"main",fn:d,requiresIfExists:["offset"],data:{_skip:!1}}},19892:function(t,e,n){"use strict";var r=n(87701),i=n(23161);function o(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function a(t){return[r.we,r.F2,r.I,r.t$].some((function(e){return t[e]>=0}))}function s(t){var e=t.state,n=t.name,r=e.rects.reference,s=e.rects.popper,u=e.modifiersData.preventOverflow,l=(0,i.Z)(e,{elementContext:"reference"}),c=(0,i.Z)(e,{altBoundary:!0}),f=o(l,r),h=o(c,s,u),d=a(f),p=a(h);e.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:h,isReferenceHidden:d,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}e.Z={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:s}},29309:function(t,e,n){"use strict";if(n.d(e,{Cp:function(){return u.Z},JK:function(){return a.Z},OC:function(){return c.Z},RR:function(){return s.Z},Yj:function(){return f.Z},Zs:function(){return r.Z},cv:function(){return l.Z},o:function(){return o.Z},x7:function(){return i.Z}}),246!=n.j)var r=n(17824);if(246!=n.j)var i=n(66896);if(246!=n.j)var o=n(36531);if(246!=n.j)var a=n(82372);if(246!=n.j)var s=n(68855);if(246!=n.j)var u=n(19892);if(246!=n.j)var l=n(82122);if(246!=n.j)var c=n(77421);if(246!=n.j)var f=n(394)},82122:function(t,e,n){"use strict";var r=n(6206),i=n(87701);function o(t,e,n){var o=(0,r.Z)(t),a=[i.t$,i.we].indexOf(o)>=0?-1:1,s="function"===typeof n?n(Object.assign({},e,{placement:t})):n,u=s[0],l=s[1];return u=u||0,l=(l||0)*a,[i.t$,i.F2].indexOf(o)>=0?{x:l,y:u}:{x:u,y:l}}function a(t){var e=t.state,n=t.options,r=t.name,a=n.offset,s=void 0===a?[0,0]:a,u=i.Ct.reduce((function(t,n){return t[n]=o(n,e.rects,s),t}),{}),l=u[e.placement],c=l.x,f=l.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=f),e.modifiersData[r]=u}e.Z={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:a}},77421:function(t,e,n){"use strict";var r=n(72581);function i(t){var e=t.state,n=t.name;e.modifiersData[n]=(0,r.Z)({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}e.Z={name:"popperOffsets",enabled:!0,phase:"read",fn:i,data:{}}},394:function(t,e,n){"use strict";n.d(e,{Z:function(){return g}});var r=n(87701),i=n(6206),o=n(11516);function a(t){return"x"===t?"y":"x"}var s=n(57516),u=n(40583),l=n(21955),c=n(23161),f=n(14943),h=n(23607),d=n(138);function p(t){var e=t.state,n=t.options,p=t.name,g=n.mainAxis,v=void 0===g||g,m=n.altAxis,y=void 0!==m&&m,b=n.boundary,x=n.rootBoundary,_=n.altBoundary,w=n.padding,S=n.tether,E=void 0===S||S,T=n.tetherOffset,k=void 0===T?0:T,C=(0,c.Z)(e,{boundary:b,rootBoundary:x,padding:w,altBoundary:_}),M=(0,i.Z)(e.placement),A=(0,f.Z)(e.placement),I=!A,O=(0,o.Z)(M),D=a(O),P=e.modifiersData.popperOffsets,L=e.rects.reference,N=e.rects.popper,R="function"===typeof k?k(Object.assign({},e.rects,{placement:e.placement})):k,j="number"===typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(P){if(v){var z,Z="y"===O?r.we:r.t$,U="y"===O?r.I:r.F2,H="y"===O?"height":"width",$=P[O],G=$+C[Z],W=$-C[U],V=E?-N[H]/2:0,Y=A===r.BL?L[H]:N[H],X=A===r.BL?-N[H]:-L[H],q=e.elements.arrow,K=E&&q?(0,u.Z)(q):{width:0,height:0},J=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:(0,h.Z)(),Q=J[Z],tt=J[U],et=(0,s.u)(0,L[H],K[H]),nt=I?L[H]/2-V-et-Q-j.mainAxis:Y-et-Q-j.mainAxis,rt=I?-L[H]/2+V+et+tt+j.mainAxis:X+et+tt+j.mainAxis,it=e.elements.arrow&&(0,l.Z)(e.elements.arrow),ot=it?"y"===O?it.clientTop||0:it.clientLeft||0:0,at=null!=(z=null==F?void 0:F[O])?z:0,st=$+nt-at-ot,ut=$+rt-at,lt=(0,s.u)(E?(0,d.VV)(G,st):G,$,E?(0,d.Fp)(W,ut):W);P[O]=lt,B[O]=lt-$}if(y){var ct,ft="x"===O?r.we:r.t$,ht="x"===O?r.I:r.F2,dt=P[D],pt="y"===D?"height":"width",gt=dt+C[ft],vt=dt-C[ht],mt=-1!==[r.we,r.t$].indexOf(M),yt=null!=(ct=null==F?void 0:F[D])?ct:0,bt=mt?gt:dt-L[pt]-N[pt]-yt+j.altAxis,xt=mt?dt+L[pt]+N[pt]-yt-j.altAxis:vt,_t=E&&mt?(0,s.q)(bt,dt,xt):(0,s.u)(E?bt:gt,dt,E?xt:vt);P[D]=_t,B[D]=_t-dt}e.modifiersData[p]=B}}var g={name:"preventOverflow",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"]}},83151:function(t,e,n){"use strict";n.d(e,{fi:function(){return l}});var r=n(89188),i=n(82372),o=n(77421),a=n(36531),s=n(17824),u=[i.Z,o.Z,a.Z,s.Z],l=(0,r.kZ)({defaultModifiers:u})},20804:function(t,e,n){"use strict";n.d(e,{fi:function(){return p}});var r=n(89188),i=n(82372),o=n(77421),a=n(36531),s=n(17824),u=n(82122),l=n(68855),c=n(394),f=n(66896),h=n(19892),d=[i.Z,o.Z,a.Z,s.Z,u.Z,l.Z,c.Z,f.Z,h.Z],p=(0,r.kZ)({defaultModifiers:d})},72581:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return s}}),246!=n.j)var r=n(6206);if(246!=n.j)var i=n(14943);if(246!=n.j)var o=n(11516);if(246!=n.j)var a=n(87701);function s(t){var e,n=t.reference,s=t.element,u=t.placement,l=u?(0,r.Z)(u):null,c=u?(0,i.Z)(u):null,f=n.x+n.width/2-s.width/2,h=n.y+n.height/2-s.height/2;switch(l){case a.we:e={x:f,y:n.y-s.height};break;case a.I:e={x:f,y:n.y+n.height};break;case a.F2:e={x:n.x+n.width,y:h};break;case a.t$:e={x:n.x-s.width,y:h};break;default:e={x:n.x,y:n.y}}var d=l?(0,o.Z)(l):null;if(null!=d){var p="y"===d?"height":"width";switch(c){case a.BL:e[d]=e[d]-(n[p]/2-s[p]/2);break;case a.ut:e[d]=e[d]+(n[p]/2-s[p]/2);break;default:}}return e}},98293:function(t,e,n){"use strict";function r(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}n.d(e,{Z:function(){return r}})},23161:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return h}}),246!=n.j)var r=n(21437);if(246!=n.j)var i=n(67252);if(246!=n.j)var o=n(50400);if(246!=n.j)var a=n(72581);if(246!=n.j)var s=n(65626);if(246!=n.j)var u=n(87701);if(246!=n.j)var l=n(62556);if(246!=n.j)var c=n(63293);if(246!=n.j)var f=n(33706);function h(t,e){void 0===e&&(e={});var n=e,h=n.placement,d=void 0===h?t.placement:h,p=n.strategy,g=void 0===p?t.strategy:p,v=n.boundary,m=void 0===v?u.zV:v,y=n.rootBoundary,b=void 0===y?u.Pj:y,x=n.elementContext,_=void 0===x?u.k5:x,w=n.altBoundary,S=void 0!==w&&w,E=n.padding,T=void 0===E?0:E,k=(0,c.Z)("number"!==typeof T?T:(0,f.Z)(T,u.mv)),C=_===u.k5?u.YP:u.k5,M=t.rects.popper,A=t.elements[S?C:_],I=(0,r.Z)((0,l.kK)(A)?A:A.contextElement||(0,i.Z)(t.elements.popper),m,b,g),O=(0,o.Z)(t.elements.reference),D=(0,a.Z)({reference:O,element:M,strategy:"absolute",placement:d}),P=(0,s.Z)(Object.assign({},M,D)),L=_===u.k5?P:O,N={top:I.top-L.top+k.top,bottom:L.bottom-I.bottom+k.bottom,left:I.left-L.left+k.left,right:L.right-I.right+k.right},R=t.modifiersData.offset;if(_===u.k5&&R){var j=R[d];Object.keys(N).forEach((function(t){var e=[u.F2,u.I].indexOf(t)>=0?1:-1,n=[u.we,u.I].indexOf(t)>=0?"y":"x";N[t]+=j[n]*e}))}return N}},33706:function(t,e,n){"use strict";function r(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}n.d(e,{Z:function(){return r}})},6206:function(t,e,n){"use strict";function r(t){return t.split("-")[0]}n.d(e,{Z:function(){return r}})},23607:function(t,e,n){"use strict";function r(){return{top:0,right:0,bottom:0,left:0}}n.d(e,{Z:function(){return r}})},11516:function(t,e,n){"use strict";function r(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}n.d(e,{Z:function(){return r}})},14943:function(t,e,n){"use strict";function r(t){return t.split("-")[1]}n.d(e,{Z:function(){return r}})},138:function(t,e,n){"use strict";n.d(e,{Fp:function(){return r},NM:function(){return o},VV:function(){return i}});var r=Math.max,i=Math.min,o=Math.round},3:function(t,e,n){"use strict";function r(t){var e=t.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}n.d(e,{Z:function(){return r}})},63293:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),246!=n.j)var r=n(23607);function i(t){return Object.assign({},(0,r.Z)(),t)}},50380:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),246!=n.j)var r=n(87701);function i(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name);var o=[].concat(t.requires||[],t.requiresIfExists||[]);o.forEach((function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||i(t)})),r}function o(t){var e=i(t);return r.xs.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}},65626:function(t,e,n){"use strict";function r(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}n.d(e,{Z:function(){return r}})},85918:function(t,e,n){"use strict";function r(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}n.d(e,{Z:function(){return r}})},57516:function(t,e,n){"use strict";if(n.d(e,{q:function(){return o},u:function(){return i}}),246!=n.j)var r=n(138);function i(t,e,n){return(0,r.Fp)(t,(0,r.VV)(e,n))}function o(t,e,n){var r=i(t,e,n);return r>n?n:r}},81280:function(t,e,n){"use strict";n.d(e,{X:function(){return i},q:function(){return r}});const r="devtools-plugin:setup",i="plugin:settings:set"},81021:function(t,e,n){"use strict";function r(){return i().__VUE_DEVTOOLS_GLOBAL_HOOK__}function i(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{}}n.d(e,{U9:function(){return i},jA:function(){return o},y5:function(){return r}});const o="function"===typeof Proxy},61021:function(t,e,n){"use strict";if(n.d(e,{B:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(81280);if(/^(539|826)$/.test(n.j))var i=n(65159);class o{constructor(t,e){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=e;const n={};if(t.settings)for(const r in t.settings){const e=t.settings[r];n[r]=e.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},n);try{const t=localStorage.getItem(o),e=JSON.parse(t);Object.assign(a,e)}catch(s){}this.fallbacks={getSettings(){return a},setSettings(t){try{localStorage.setItem(o,JSON.stringify(t))}catch(s){}a=t},now(){return(0,i.z)()}},e&&e.on(r.X,((t,e)=>{t===this.plugin.id&&this.fallbacks.setSettings(e)})),this.proxiedOn=new Proxy({},{get:(t,e)=>this.target?this.target.on[e]:(...t)=>{this.onQueue.push({method:e,args:t})}}),this.proxiedTarget=new Proxy({},{get:(t,e)=>this.target?this.target[e]:"on"===e?this.proxiedOn:Object.keys(this.fallbacks).includes(e)?(...t)=>(this.targetQueue.push({method:e,args:t,resolve:()=>{}}),this.fallbacks[e](...t)):(...t)=>new Promise((n=>{this.targetQueue.push({method:e,args:t,resolve:n})}))})}async setRealTarget(t){this.target=t;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}},65159:function(t,e,n){"use strict";let r,i;function o(){var t;return void 0!==r||("undefined"!==typeof window&&window.performance?(r=!0,i=window.performance):"undefined"!==typeof n.g&&(null===(t=n.g.perf_hooks)||void 0===t?void 0:t.performance)?(r=!0,i=n.g.perf_hooks.performance):r=!1),r}function a(){return o()?i.now():Date.now()}n.d(e,{z:function(){return a}})},2262:function(t,e,n){"use strict";n.d(e,{$y:function(){return Rt},B:function(){return a},BK:function(){return ne},Bj:function(){return o},EB:function(){return l},Fl:function(){return se},IU:function(){return Bt},Jd:function(){return M},OT:function(){return Dt},PG:function(){return Nt},SU:function(){return Kt},Um:function(){return Ot},Vh:function(){return ie},WL:function(){return Qt},X$:function(){return D},X3:function(){return Ft},XI:function(){return Vt},Xl:function(){return zt},YS:function(){return Pt},ZM:function(){return ee},cE:function(){return E},dq:function(){return Gt},iH:function(){return Wt},j:function(){return I},lk:function(){return A},nZ:function(){return u},oR:function(){return qt},qj:function(){return It},qq:function(){return w},sT:function(){return T},yT:function(){return jt}});var r=n(3577);let i;class o{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=i,!t&&i&&(this.index=(i.scopes||(i.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=i;try{return i=this,t()}finally{i=e}}else 0}on(){i=this}off(){i=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0,this._active=!1}}}function a(t){return new o(t)}function s(t,e=i){e&&e.active&&e.effects.push(t)}function u(){return i}function l(t){i&&i.cleanups.push(t)}const c=t=>{const e=new Set(t);return e.w=0,e.n=0,e},f=t=>(t.w&m)>0,h=t=>(t.n&m)>0,d=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=m},p=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const i=e[r];f(i)&&!h(i)?i.delete(t):e[n++]=i,i.w&=~m,i.n&=~m}e.length=n}},g=new WeakMap;let v=0,m=1;const y=30;let b;const x=Symbol(""),_=Symbol("");class w{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,s(this,n)}run(){if(!this.active)return this.fn();let t=b,e=k;while(t){if(t===this)return;t=t.parent}try{return this.parent=b,b=this,k=!0,m=1<<++v,v<=y?d(this):S(this),this.fn()}finally{v<=y&&p(this),m=1<<--v,b=this.parent,k=e,this.parent=void 0,this.deferStop&&this.stop()}}stop(){b===this?this.deferStop=!0:this.active&&(S(this),this.onStop&&this.onStop(),this.active=!1)}}function S(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}function E(t,e){t.effect&&(t=t.effect.fn);const n=new w(t);e&&((0,r.l7)(n,e),e.scope&&s(n,e.scope)),e&&e.lazy||n.run();const i=n.run.bind(n);return i.effect=n,i}function T(t){t.effect.stop()}let k=!0;const C=[];function M(){C.push(k),k=!1}function A(){const t=C.pop();k=void 0===t||t}function I(t,e,n){if(k&&b){let e=g.get(t);e||g.set(t,e=new Map);let r=e.get(n);r||e.set(n,r=c());const i=void 0;O(r,i)}}function O(t,e){let n=!1;v<=y?h(t)||(t.n|=m,n=!f(t)):n=!t.has(b),n&&(t.add(b),b.deps.push(t))}function D(t,e,n,i,o,a){const s=g.get(t);if(!s)return;let u=[];if("clear"===e)u=[...s.values()];else if("length"===n&&(0,r.kJ)(t)){const t=Number(i);s.forEach(((e,n)=>{("length"===n||n>=t)&&u.push(e)}))}else switch(void 0!==n&&u.push(s.get(n)),e){case"add":(0,r.kJ)(t)?(0,r.S0)(n)&&u.push(s.get("length")):(u.push(s.get(x)),(0,r._N)(t)&&u.push(s.get(_)));break;case"delete":(0,r.kJ)(t)||(u.push(s.get(x)),(0,r._N)(t)&&u.push(s.get(_)));break;case"set":(0,r._N)(t)&&u.push(s.get(x));break}if(1===u.length)u[0]&&P(u[0]);else{const t=[];for(const e of u)e&&t.push(...e);P(c(t))}}function P(t,e){const n=(0,r.kJ)(t)?t:[...t];for(const r of n)r.computed&&L(r,e);for(const r of n)r.computed||L(r,e)}function L(t,e){(t!==b||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function N(t,e){var n;return null===(n=g.get(t))||void 0===n?void 0:n.get(e)}const R=(0,r.fY)("__proto__,__v_isRef,__isVue"),j=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(r.yk)),F=G(),B=G(!1,!0),z=G(!0),Z=G(!0,!0),U=H();function H(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=Bt(this);for(let e=0,i=this.length;e<i;e++)I(n,"get",e+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(Bt)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){M();const n=Bt(this)[e].apply(this,t);return A(),n}})),t}function $(t){const e=Bt(this);return I(e,"has",t),e.hasOwnProperty(t)}function G(t=!1,e=!1){return function(n,i,o){if("__v_isReactive"===i)return!t;if("__v_isReadonly"===i)return t;if("__v_isShallow"===i)return e;if("__v_raw"===i&&o===(t?e?Ct:kt:e?Tt:Et).get(n))return n;const a=(0,r.kJ)(n);if(!t){if(a&&(0,r.RI)(U,i))return Reflect.get(U,i,o);if("hasOwnProperty"===i)return $}const s=Reflect.get(n,i,o);return((0,r.yk)(i)?j.has(i):R(i))?s:(t||I(n,"get",i),e?s:Gt(s)?a&&(0,r.S0)(i)?s:s.value:(0,r.Kn)(s)?t?Dt(s):It(s):s)}}const W=Y(),V=Y(!0);function Y(t=!1){return function(e,n,i,o){let a=e[n];if(Rt(a)&&Gt(a)&&!Gt(i))return!1;if(!t&&(jt(i)||Rt(i)||(a=Bt(a),i=Bt(i)),!(0,r.kJ)(e)&&Gt(a)&&!Gt(i)))return a.value=i,!0;const s=(0,r.kJ)(e)&&(0,r.S0)(n)?Number(n)<e.length:(0,r.RI)(e,n),u=Reflect.set(e,n,i,o);return e===Bt(o)&&(s?(0,r.aU)(i,a)&&D(e,"set",n,i,a):D(e,"add",n,i)),u}}function X(t,e){const n=(0,r.RI)(t,e),i=t[e],o=Reflect.deleteProperty(t,e);return o&&n&&D(t,"delete",e,void 0,i),o}function q(t,e){const n=Reflect.has(t,e);return(0,r.yk)(e)&&j.has(e)||I(t,"has",e),n}function K(t){return I(t,"iterate",(0,r.kJ)(t)?"length":x),Reflect.ownKeys(t)}const J={get:F,set:W,deleteProperty:X,has:q,ownKeys:K},Q={get:z,set(t,e){return!0},deleteProperty(t,e){return!0}},tt=(0,r.l7)({},J,{get:B,set:V}),et=(0,r.l7)({},Q,{get:Z}),nt=t=>t,rt=t=>Reflect.getPrototypeOf(t);function it(t,e,n=!1,r=!1){t=t["__v_raw"];const i=Bt(t),o=Bt(e);n||(e!==o&&I(i,"get",e),I(i,"get",o));const{has:a}=rt(i),s=r?nt:n?Ut:Zt;return a.call(i,e)?s(t.get(e)):a.call(i,o)?s(t.get(o)):void(t!==i&&t.get(e))}function ot(t,e=!1){const n=this["__v_raw"],r=Bt(n),i=Bt(t);return e||(t!==i&&I(r,"has",t),I(r,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)}function at(t,e=!1){return t=t["__v_raw"],!e&&I(Bt(t),"iterate",x),Reflect.get(t,"size",t)}function st(t){t=Bt(t);const e=Bt(this),n=rt(e),r=n.has.call(e,t);return r||(e.add(t),D(e,"add",t,t)),this}function ut(t,e){e=Bt(e);const n=Bt(this),{has:i,get:o}=rt(n);let a=i.call(n,t);a||(t=Bt(t),a=i.call(n,t));const s=o.call(n,t);return n.set(t,e),a?(0,r.aU)(e,s)&&D(n,"set",t,e,s):D(n,"add",t,e),this}function lt(t){const e=Bt(this),{has:n,get:r}=rt(e);let i=n.call(e,t);i||(t=Bt(t),i=n.call(e,t));const o=r?r.call(e,t):void 0,a=e.delete(t);return i&&D(e,"delete",t,void 0,o),a}function ct(){const t=Bt(this),e=0!==t.size,n=void 0,r=t.clear();return e&&D(t,"clear",void 0,void 0,n),r}function ft(t,e){return function(n,r){const i=this,o=i["__v_raw"],a=Bt(o),s=e?nt:t?Ut:Zt;return!t&&I(a,"iterate",x),o.forEach(((t,e)=>n.call(r,s(t),s(e),i)))}}function ht(t,e,n){return function(...i){const o=this["__v_raw"],a=Bt(o),s=(0,r._N)(a),u="entries"===t||t===Symbol.iterator&&s,l="keys"===t&&s,c=o[t](...i),f=n?nt:e?Ut:Zt;return!e&&I(a,"iterate",l?_:x),{next(){const{value:t,done:e}=c.next();return e?{value:t,done:e}:{value:u?[f(t[0]),f(t[1])]:f(t),done:e}},[Symbol.iterator](){return this}}}}function dt(t){return function(...e){return"delete"!==t&&this}}function pt(){const t={get(t){return it(this,t)},get size(){return at(this)},has:ot,add:st,set:ut,delete:lt,clear:ct,forEach:ft(!1,!1)},e={get(t){return it(this,t,!1,!0)},get size(){return at(this)},has:ot,add:st,set:ut,delete:lt,clear:ct,forEach:ft(!1,!0)},n={get(t){return it(this,t,!0)},get size(){return at(this,!0)},has(t){return ot.call(this,t,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:ft(!0,!1)},r={get(t){return it(this,t,!0,!0)},get size(){return at(this,!0)},has(t){return ot.call(this,t,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:ft(!0,!0)},i=["keys","values","entries",Symbol.iterator];return i.forEach((i=>{t[i]=ht(i,!1,!1),n[i]=ht(i,!0,!1),e[i]=ht(i,!1,!0),r[i]=ht(i,!0,!0)})),[t,n,e,r]}const[gt,vt,mt,yt]=pt();function bt(t,e){const n=e?t?yt:mt:t?vt:gt;return(e,i,o)=>"__v_isReactive"===i?!t:"__v_isReadonly"===i?t:"__v_raw"===i?e:Reflect.get((0,r.RI)(n,i)&&i in e?n:e,i,o)}const xt={get:bt(!1,!1)},_t={get:bt(!1,!0)},wt={get:bt(!0,!1)},St={get:bt(!0,!0)};const Et=new WeakMap,Tt=new WeakMap,kt=new WeakMap,Ct=new WeakMap;function Mt(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function At(t){return t["__v_skip"]||!Object.isExtensible(t)?0:Mt((0,r.W7)(t))}function It(t){return Rt(t)?t:Lt(t,!1,J,xt,Et)}function Ot(t){return Lt(t,!1,tt,_t,Tt)}function Dt(t){return Lt(t,!0,Q,wt,kt)}function Pt(t){return Lt(t,!0,et,St,Ct)}function Lt(t,e,n,i,o){if(!(0,r.Kn)(t))return t;if(t["__v_raw"]&&(!e||!t["__v_isReactive"]))return t;const a=o.get(t);if(a)return a;const s=At(t);if(0===s)return t;const u=new Proxy(t,2===s?i:n);return o.set(t,u),u}function Nt(t){return Rt(t)?Nt(t["__v_raw"]):!(!t||!t["__v_isReactive"])}function Rt(t){return!(!t||!t["__v_isReadonly"])}function jt(t){return!(!t||!t["__v_isShallow"])}function Ft(t){return Nt(t)||Rt(t)}function Bt(t){const e=t&&t["__v_raw"];return e?Bt(e):t}function zt(t){return(0,r.Nj)(t,"__v_skip",!0),t}const Zt=t=>(0,r.Kn)(t)?It(t):t,Ut=t=>(0,r.Kn)(t)?Dt(t):t;function Ht(t){k&&b&&(t=Bt(t),O(t.dep||(t.dep=c())))}function $t(t,e){t=Bt(t);const n=t.dep;n&&P(n)}function Gt(t){return!(!t||!0!==t.__v_isRef)}function Wt(t){return Yt(t,!1)}function Vt(t){return Yt(t,!0)}function Yt(t,e){return Gt(t)?t:new Xt(t,e)}class Xt{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Bt(t),this._value=e?t:Zt(t)}get value(){return Ht(this),this._value}set value(t){const e=this.__v_isShallow||jt(t)||Rt(t);t=e?t:Bt(t),(0,r.aU)(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:Zt(t),$t(this,t))}}function qt(t){$t(t,void 0)}function Kt(t){return Gt(t)?t.value:t}const Jt={get:(t,e,n)=>Kt(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return Gt(i)&&!Gt(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function Qt(t){return Nt(t)?t:new Proxy(t,Jt)}class te{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:e,set:n}=t((()=>Ht(this)),(()=>$t(this)));this._get=e,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}function ee(t){return new te(t)}function ne(t){const e=(0,r.kJ)(t)?new Array(t.length):{};for(const n in t)e[n]=ie(t,n);return e}class re{constructor(t,e,n){this._object=t,this._key=e,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return N(Bt(this._object),this._key)}}function ie(t,e,n){const r=t[e];return Gt(r)?r:new re(t,e,n)}var oe;class ae{constructor(t,e,n,r){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this[oe]=!1,this._dirty=!0,this.effect=new w(t,(()=>{this._dirty||(this._dirty=!0,$t(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this["__v_isReadonly"]=n}get value(){const t=Bt(this);return Ht(t),!t._dirty&&t._cacheable||(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function se(t,e,n=!1){let i,o;const a=(0,r.mf)(t);a?(i=t,o=r.dG):(i=t.get,o=t.set);const s=new ae(i,o,a||!o,n);return s}oe="__v_isReadonly"},66252:function(t,e,n){"use strict";n.d(e,{$d:function(){return u},$y:function(){return r.$y},Ah:function(){return Jt},B:function(){return r.B},BK:function(){return r.BK},Bj:function(){return r.Bj},Bz:function(){return Mr},C3:function(){return Zn},C_:function(){return i.C_},Cn:function(){return U},EB:function(){return r.EB},Eo:function(){return fn},F4:function(){return Yn},FN:function(){return ur},Fl:function(){return kr},G:function(){return Gr},HX:function(){return H},HY:function(){return Tn},Ho:function(){return Xn},IU:function(){return r.IU},JJ:function(){return ct},Jd:function(){return Kt},KU:function(){return s},Ko:function(){return de},LL:function(){return le},MW:function(){return Cr},MX:function(){return Zr},Mr:function(){return zr},Nv:function(){return pe},OT:function(){return r.OT},Ob:function(){return jt},P$:function(){return Et},PG:function(){return r.PG},Q2:function(){return ce},Q6:function(){return It},RC:function(){return Pt},Rh:function(){return dt},Rr:function(){return Or},S3:function(){return l},SU:function(){return r.SU},U2:function(){return kt},Uc:function(){return Fr},Uk:function(){return qn},Um:function(){return r.Um},Us:function(){return cn},Vh:function(){return r.Vh},WI:function(){return ge},WL:function(){return r.WL},WY:function(){return Ar},Wm:function(){return Wn},Wu:function(){return a},X3:function(){return r.X3},XI:function(){return r.XI},Xl:function(){return r.Xl},Xn:function(){return Xt},Y1:function(){return yr},Y3:function(){return x},Y8:function(){return _t},YP:function(){return vt},YS:function(){return r.YS},Yq:function(){return te},ZK:function(){return o},ZM:function(){return r.ZM},Zq:function(){return Br},_:function(){return Gn},_A:function(){return i._A},aZ:function(){return Ot},b9:function(){return Ir},bT:function(){return ee},bv:function(){return Yt},cE:function(){return r.cE},d1:function(){return ne},dD:function(){return Z},dG:function(){return nr},dl:function(){return Bt},dq:function(){return r.dq},ec:function(){return L},eq:function(){return Wr},f3:function(){return ft},h:function(){return jr},hR:function(){return i.hR},i8:function(){return Hr},iD:function(){return jn},iH:function(){return r.iH},ic:function(){return qt},j4:function(){return Fn},j5:function(){return i.j5},kC:function(){return i.kC},kq:function(){return Jn},l1:function(){return Dr},lA:function(){return Bn},lR:function(){return Sn},m0:function(){return ht},mW:function(){return O},mv:function(){return Rr},mx:function(){return me},n4:function(){return tt},nK:function(){return At},nQ:function(){return Ur},nZ:function(){return r.nZ},oR:function(){return r.oR},of:function(){return br},p1:function(){return Nr},qG:function(){return Mn},qZ:function(){return Nn},qb:function(){return T},qj:function(){return r.qj},qq:function(){return r.qq},ry:function(){return Vr},sT:function(){return r.sT},se:function(){return zt},sv:function(){return Cn},uE:function(){return Kn},u_:function(){return Lr},up:function(){return se},vl:function(){return Qt},vs:function(){return i.vs},w5:function(){return $},wF:function(){return Vt},wg:function(){return On},wy:function(){return re},xv:function(){return kn},yT:function(){return r.yT},yX:function(){return pt},zw:function(){return i.zw}});var r=n(2262),i=n(3577);function o(t,...e){}function a(t,e){}function s(t,e,n,r){let i;try{i=r?t(...r):t()}catch(o){l(o,e,n)}return i}function u(t,e,n,r){if((0,i.mf)(t)){const o=s(t,e,n,r);return o&&(0,i.tI)(o)&&o.catch((t=>{l(t,e,n)})),o}const o=[];for(let i=0;i<t.length;i++)o.push(u(t[i],e,n,r));return o}function l(t,e,n,r=!0){const i=e?e.vnode:null;if(e){let r=e.parent;const i=e.proxy,o=n;while(r){const e=r.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,i,o))return;r=r.parent}const a=e.appContext.config.errorHandler;if(a)return void s(a,null,10,[t,i,o])}c(t,n,i,r)}function c(t,e,n,r=!0){console.error(t)}let f=!1,h=!1;const d=[];let p=0;const g=[];let v=null,m=0;const y=Promise.resolve();let b=null;function x(t){const e=b||y;return t?e.then(this?t.bind(this):t):e}function _(t){let e=p+1,n=d.length;while(e<n){const r=e+n>>>1,i=M(d[r]);i<t?e=r+1:n=r}return e}function w(t){d.length&&d.includes(t,f&&t.allowRecurse?p+1:p)||(null==t.id?d.push(t):d.splice(_(t.id),0,t),S())}function S(){f||h||(h=!0,b=y.then(I))}function E(t){const e=d.indexOf(t);e>p&&d.splice(e,1)}function T(t){(0,i.kJ)(t)?g.push(...t):v&&v.includes(t,t.allowRecurse?m+1:m)||g.push(t),S()}function k(t,e=(f?p+1:0)){for(0;e<d.length;e++){const t=d[e];t&&t.pre&&(d.splice(e,1),e--,t())}}function C(t){if(g.length){const t=[...new Set(g)];if(g.length=0,v)return void v.push(...t);for(v=t,v.sort(((t,e)=>M(t)-M(e))),m=0;m<v.length;m++)v[m]();v=null,m=0}}const M=t=>null==t.id?1/0:t.id,A=(t,e)=>{const n=M(t)-M(e);if(0===n){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function I(t){h=!1,f=!0,d.sort(A);i.dG;try{for(p=0;p<d.length;p++){const t=d[p];t&&!1!==t.active&&s(t,null,14)}}finally{p=0,d.length=0,C(t),f=!1,b=null,(d.length||g.length)&&I(t)}}new Set;new Map;let O,D=246!=n.j?[]:null,P=!1;function L(t,e){var n,r;if(O=t,O)O.enabled=!0,D.forEach((({event:t,args:e})=>O.emit(t,...e))),D=[];else if("undefined"!==typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){const t=e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[];t.push((t=>{L(t,e)})),setTimeout((()=>{O||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,P=!0,D=[])}),3e3)}else P=!0,D=[]}function N(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||i.kT;let o=n;const a=e.startsWith("update:"),s=a&&e.slice(7);if(s&&s in r){const t=`${"modelValue"===s?"model":s}Modifiers`,{number:e,trim:a}=r[t]||i.kT;a&&(o=n.map((t=>(0,i.HD)(t)?t.trim():t))),e&&(o=n.map(i.h5))}let l;let c=r[l=(0,i.hR)(e)]||r[l=(0,i.hR)((0,i._A)(e))];!c&&a&&(c=r[l=(0,i.hR)((0,i.rs)(e))]),c&&u(c,t,6,o);const f=r[l+"Once"];if(f){if(t.emitted){if(t.emitted[l])return}else t.emitted={};t.emitted[l]=!0,u(f,t,6,o)}}function R(t,e,n=!1){const r=e.emitsCache,o=r.get(t);if(void 0!==o)return o;const a=t.emits;let s={},u=!1;if(!(0,i.mf)(t)){const r=t=>{const n=R(t,e,!0);n&&(u=!0,(0,i.l7)(s,n))};!n&&e.mixins.length&&e.mixins.forEach(r),t.extends&&r(t.extends),t.mixins&&t.mixins.forEach(r)}return a||u?((0,i.kJ)(a)?a.forEach((t=>s[t]=null)):(0,i.l7)(s,a),(0,i.Kn)(t)&&r.set(t,s),s):((0,i.Kn)(t)&&r.set(t,null),null)}function j(t,e){return!(!t||!(0,i.F7)(e))&&(e=e.slice(2).replace(/Once$/,""),(0,i.RI)(t,e[0].toLowerCase()+e.slice(1))||(0,i.RI)(t,(0,i.rs)(e))||(0,i.RI)(t,e))}let F=null,B=null;function z(t){const e=F;return F=t,B=t&&t.type.__scopeId||null,e}function Z(t){B=t}function U(){B=null}const H=t=>$;function $(t,e=F,n){if(!e)return t;if(t._n)return t;const r=(...n)=>{r._d&&Nn(-1);const i=z(e);let o;try{o=t(...n)}finally{z(i),r._d&&Nn(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function G(t){const{type:e,vnode:n,proxy:r,withProxy:o,props:a,propsOptions:[s],slots:u,attrs:c,emit:f,render:h,renderCache:d,data:p,setupState:g,ctx:v,inheritAttrs:m}=t;let y,b;const x=z(t);try{if(4&n.shapeFlag){const t=o||r;y=Qn(h.call(t,t,d,a,g,p,v)),b=c}else{const t=e;0,y=Qn(t.length>1?t(a,{attrs:c,slots:u,emit:f}):t(a,null)),b=e.props?c:V(c)}}catch(w){An.length=0,l(w,t,1),y=Wn(Cn)}let _=y;if(b&&!1!==m){const t=Object.keys(b),{shapeFlag:e}=_;t.length&&7&e&&(s&&t.some(i.tR)&&(b=Y(b,s)),_=Xn(_,b))}return n.dirs&&(_=Xn(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),y=_,z(x),y}function W(t){let e;for(let n=0;n<t.length;n++){const r=t[n];if(!Bn(r))return;if(r.type!==Cn||"v-if"===r.children){if(e)return;e=r}}return e}const V=t=>{let e;for(const n in t)("class"===n||"style"===n||(0,i.F7)(n))&&((e||(e={}))[n]=t[n]);return e},Y=(t,e)=>{const n={};for(const r in t)(0,i.tR)(r)&&r.slice(9)in e||(n[r]=t[r]);return n};function X(t,e,n){const{props:r,children:i,component:o}=t,{props:a,children:s,patchFlag:u}=e,l=o.emitsOptions;if(e.dirs||e.transition)return!0;if(!(n&&u>=0))return!(!i&&!s||s&&s.$stable)||r!==a&&(r?!a||q(r,a,l):!!a);if(1024&u)return!0;if(16&u)return r?q(r,a,l):!!a;if(8&u){const t=e.dynamicProps;for(let e=0;e<t.length;e++){const n=t[e];if(a[n]!==r[n]&&!j(l,n))return!0}}return!1}function q(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(e[o]!==t[o]&&!j(n,o))return!0}return!1}function K({vnode:t,parent:e},n){while(e&&e.subTree===t)(t=e.vnode).el=n,e=e.parent}const J=t=>t.__isSuspense,Q={name:"Suspense",__isSuspense:!0,process(t,e,n,r,i,o,a,s,u,l){null==t?nt(e,n,r,i,o,a,s,u,l):rt(t,e,n,r,i,a,s,u,l)},hydrate:ot,create:it,normalize:at},tt=246!=n.j?Q:null;function et(t,e){const n=t.props&&t.props[e];(0,i.mf)(n)&&n()}function nt(t,e,n,r,i,o,a,s,u){const{p:l,o:{createElement:c}}=u,f=c("div"),h=t.suspense=it(t,i,r,e,f,n,o,a,s,u);l(null,h.pendingBranch=t.ssContent,f,null,r,h,o,a),h.deps>0?(et(t,"onPending"),et(t,"onFallback"),l(null,t.ssFallback,e,n,r,null,o,a),lt(h,t.ssFallback)):h.resolve()}function rt(t,e,n,r,i,o,a,s,{p:u,um:l,o:{createElement:c}}){const f=e.suspense=t.suspense;f.vnode=e,e.el=t.el;const h=e.ssContent,d=e.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:v,isHydrating:m}=f;if(g)f.pendingBranch=h,zn(h,g)?(u(g,h,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():v&&(u(p,d,n,r,i,null,o,a,s),lt(f,d))):(f.pendingId++,m?(f.isHydrating=!1,f.activeBranch=g):l(g,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),v?(u(null,h,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():(u(p,d,n,r,i,null,o,a,s),lt(f,d))):p&&zn(h,p)?(u(p,h,n,r,i,f,o,a,s),f.resolve(!0)):(u(null,h,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0&&f.resolve()));else if(p&&zn(h,p))u(p,h,n,r,i,f,o,a,s),lt(f,h);else if(et(e,"onPending"),f.pendingBranch=h,f.pendingId++,u(null,h,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0)f.resolve();else{const{timeout:t,pendingId:e}=f;t>0?setTimeout((()=>{f.pendingId===e&&f.fallback(d)}),t):0===t&&f.fallback(d)}}function it(t,e,n,r,o,a,s,u,c,f,h=!1){const{p:d,m:p,um:g,n:v,o:{parentNode:m,remove:y}}=f,b=t.props?(0,i.He)(t.props.timeout):void 0;const x={vnode:t,parent:e,parentComponent:n,isSVG:s,container:r,hiddenContainer:o,anchor:a,deps:0,pendingId:0,timeout:"number"===typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:h,isUnmounted:!1,effects:[],resolve(t=!1){const{vnode:e,activeBranch:n,pendingBranch:r,pendingId:i,effects:o,parentComponent:a,container:s}=x;if(x.isHydrating)x.isHydrating=!1;else if(!t){const t=n&&r.transition&&"out-in"===r.transition.mode;t&&(n.transition.afterLeave=()=>{i===x.pendingId&&p(r,s,e,0)});let{anchor:e}=x;n&&(e=v(n),g(n,a,x,!0)),t||p(r,s,e,0)}lt(x,r),x.pendingBranch=null,x.isInFallback=!1;let u=x.parent,l=!1;while(u){if(u.pendingBranch){u.effects.push(...o),l=!0;break}u=u.parent}l||T(o),x.effects=[],et(e,"onResolve")},fallback(t){if(!x.pendingBranch)return;const{vnode:e,activeBranch:n,parentComponent:r,container:i,isSVG:o}=x;et(e,"onFallback");const a=v(n),s=()=>{x.isInFallback&&(d(null,t,i,a,r,null,o,u,c),lt(x,t))},l=t.transition&&"out-in"===t.transition.mode;l&&(n.transition.afterLeave=s),x.isInFallback=!0,g(n,r,null,!0),l||s()},move(t,e,n){x.activeBranch&&p(x.activeBranch,t,e,n),x.container=t},next(){return x.activeBranch&&v(x.activeBranch)},registerDep(t,e){const n=!!x.pendingBranch;n&&x.deps++;const r=t.vnode.el;t.asyncDep.catch((e=>{l(e,t,0)})).then((i=>{if(t.isUnmounted||x.isUnmounted||x.pendingId!==t.suspenseId)return;t.asyncResolved=!0;const{vnode:o}=t;mr(t,i,!1),r&&(o.el=r);const a=!r&&t.subTree.el;e(t,o,m(r||t.subTree.el),r?null:v(t.subTree),x,s,c),a&&y(a),K(t,o.el),n&&0===--x.deps&&x.resolve()}))},unmount(t,e){x.isUnmounted=!0,x.activeBranch&&g(x.activeBranch,n,t,e),x.pendingBranch&&g(x.pendingBranch,n,t,e)}};return x}function ot(t,e,n,r,i,o,a,s,u){const l=e.suspense=it(e,r,n,t.parentNode,document.createElement("div"),null,i,o,a,s,!0),c=u(t,l.pendingBranch=e.ssContent,n,l,o,a);return 0===l.deps&&l.resolve(),c}function at(t){const{shapeFlag:e,children:n}=t,r=32&e;t.ssContent=st(r?n.default:n),t.ssFallback=r?st(n.fallback):Wn(Cn)}function st(t){let e;if((0,i.mf)(t)){const n=Ln&&t._c;n&&(t._d=!1,On()),t=t(),n&&(t._d=!0,e=In,Dn())}if((0,i.kJ)(t)){const e=W(t);0,t=e}return t=Qn(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter((e=>e!==t))),t}function ut(t,e){e&&e.pendingBranch?(0,i.kJ)(t)?e.effects.push(...t):e.effects.push(t):T(t)}function lt(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t,i=n.el=e.el;r&&r.subTree===n&&(r.vnode.el=i,K(r,i))}function ct(t,e){if(sr){let n=sr.provides;const r=sr.parent&&sr.parent.provides;r===n&&(n=sr.provides=Object.create(r)),n[t]=e}else 0}function ft(t,e,n=!1){const r=sr||F;if(r){const o=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&t in o)return o[t];if(arguments.length>1)return n&&(0,i.mf)(e)?e.call(r.proxy):e}else 0}function ht(t,e){return mt(t,null,e)}function dt(t,e){return mt(t,null,{flush:"post"})}function pt(t,e){return mt(t,null,{flush:"sync"})}const gt={};function vt(t,e,n){return mt(t,e,n)}function mt(t,e,{immediate:n,deep:o,flush:a,onTrack:l,onTrigger:c}=i.kT){const f=(0,r.nZ)()===(null===sr||void 0===sr?void 0:sr.scope)?sr:null;let h,d,p=!1,g=!1;if((0,r.dq)(t)?(h=()=>t.value,p=(0,r.yT)(t)):(0,r.PG)(t)?(h=()=>t,o=!0):(0,i.kJ)(t)?(g=!0,p=t.some((t=>(0,r.PG)(t)||(0,r.yT)(t))),h=()=>t.map((t=>(0,r.dq)(t)?t.value:(0,r.PG)(t)?xt(t):(0,i.mf)(t)?s(t,f,2):void 0))):h=(0,i.mf)(t)?e?()=>s(t,f,2):()=>{if(!f||!f.isUnmounted)return d&&d(),u(t,f,3,[m])}:i.dG,e&&o){const t=h;h=()=>xt(t())}let v,m=t=>{d=_.onStop=()=>{s(t,f,4)}};if(pr){if(m=i.dG,e?n&&u(e,f,3,[h(),g?[]:void 0,m]):h(),"sync"!==a)return i.dG;{const t=Br();v=t.__watcherHandles||(t.__watcherHandles=[])}}let y=g?new Array(t.length).fill(gt):gt;const b=()=>{if(_.active)if(e){const t=_.run();(o||p||(g?t.some(((t,e)=>(0,i.aU)(t,y[e]))):(0,i.aU)(t,y)))&&(d&&d(),u(e,f,3,[t,y===gt?void 0:g&&y[0]===gt?[]:y,m]),y=t)}else _.run()};let x;b.allowRecurse=!!e,"sync"===a?x=b:"post"===a?x=()=>ln(b,f&&f.suspense):(b.pre=!0,f&&(b.id=f.uid),x=()=>w(b));const _=new r.qq(h,x);e?n?b():y=_.run():"post"===a?ln(_.run.bind(_),f&&f.suspense):_.run();const S=()=>{_.stop(),f&&f.scope&&(0,i.Od)(f.scope.effects,_)};return v&&v.push(S),S}function yt(t,e,n){const r=this.proxy,o=(0,i.HD)(t)?t.includes(".")?bt(r,t):()=>r[t]:t.bind(r,r);let a;(0,i.mf)(e)?a=e:(a=e.handler,n=e);const s=sr;lr(this);const u=mt(o,a.bind(r),n);return s?lr(s):cr(),u}function bt(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t<n.length&&e;t++)e=e[n[t]];return e}}function xt(t,e){if(!(0,i.Kn)(t)||t["__v_skip"])return t;if(e=e||new Set,e.has(t))return t;if(e.add(t),(0,r.dq)(t))xt(t.value,e);else if((0,i.kJ)(t))for(let n=0;n<t.length;n++)xt(t[n],e);else if((0,i.DM)(t)||(0,i._N)(t))t.forEach((t=>{xt(t,e)}));else if((0,i.PO)(t))for(const n in t)xt(t[n],e);return t}function _t(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Yt((()=>{t.isMounted=!0})),Kt((()=>{t.isUnmounting=!0})),t}const wt=[Function,Array],St={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:wt,onEnter:wt,onAfterEnter:wt,onEnterCancelled:wt,onBeforeLeave:wt,onLeave:wt,onAfterLeave:wt,onLeaveCancelled:wt,onBeforeAppear:wt,onAppear:wt,onAfterAppear:wt,onAppearCancelled:wt},setup(t,{slots:e}){const n=ur(),i=_t();let o;return()=>{const a=e.default&&It(e.default(),!0);if(!a||!a.length)return;let s=a[0];if(a.length>1){let t=!1;for(const e of a)if(e.type!==Cn){0,s=e,t=!0;break}}const u=(0,r.IU)(t),{mode:l}=u;if(i.isLeaving)return Ct(s);const c=Mt(s);if(!c)return Ct(s);const f=kt(c,u,i,n);At(c,f);const h=n.subTree,d=h&&Mt(h);let p=!1;const{getTransitionKey:g}=c.type;if(g){const t=g();void 0===o?o=t:t!==o&&(o=t,p=!0)}if(d&&d.type!==Cn&&(!zn(c,d)||p)){const t=kt(d,u,i,n);if(At(d,t),"out-in"===l)return i.isLeaving=!0,t.afterLeave=()=>{i.isLeaving=!1,!1!==n.update.active&&n.update()},Ct(s);"in-out"===l&&c.type!==Cn&&(t.delayLeave=(t,e,n)=>{const r=Tt(i,d);r[String(d.key)]=d,t._leaveCb=()=>{e(),t._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=n})}return s}}},Et=246!=n.j?St:null;function Tt(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function kt(t,e,n,r){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:d,onLeave:p,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:m,onAppear:y,onAfterAppear:b,onAppearCancelled:x}=e,_=String(t.key),w=Tt(n,t),S=(t,e)=>{t&&u(t,r,9,e)},E=(t,e)=>{const n=e[1];S(t,e),(0,i.kJ)(t)?t.every((t=>t.length<=1))&&n():t.length<=1&&n()},T={mode:a,persisted:s,beforeEnter(e){let r=l;if(!n.isMounted){if(!o)return;r=m||l}e._leaveCb&&e._leaveCb(!0);const i=w[_];i&&zn(t,i)&&i.el._leaveCb&&i.el._leaveCb(),S(r,[e])},enter(t){let e=c,r=f,i=h;if(!n.isMounted){if(!o)return;e=y||c,r=b||f,i=x||h}let a=!1;const s=t._enterCb=e=>{a||(a=!0,S(e?i:r,[t]),T.delayedLeave&&T.delayedLeave(),t._enterCb=void 0)};e?E(e,[t,s]):s()},leave(e,r){const i=String(t.key);if(e._enterCb&&e._enterCb(!0),n.isUnmounting)return r();S(d,[e]);let o=!1;const a=e._leaveCb=n=>{o||(o=!0,r(),S(n?v:g,[e]),e._leaveCb=void 0,w[i]===t&&delete w[i])};w[i]=t,p?E(p,[e,a]):a()},clone(t){return kt(t,e,n,r)}};return T}function Ct(t){if(Nt(t))return t=Xn(t),t.children=null,t}function Mt(t){return Nt(t)?t.children?t.children[0]:void 0:t}function At(t,e){6&t.shapeFlag&&t.component?At(t.component.subTree,e):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function It(t,e=!1,n){let r=[],i=0;for(let o=0;o<t.length;o++){let a=t[o];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:o);a.type===Tn?(128&a.patchFlag&&i++,r=r.concat(It(a.children,e,s))):(e||a.type!==Cn)&&r.push(null!=s?Xn(a,{key:s}):a)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function Ot(t){return(0,i.mf)(t)?{setup:t,name:t.name}:t}const Dt=t=>!!t.type.__asyncLoader;function Pt(t){(0,i.mf)(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:a=200,timeout:s,suspensible:u=!0,onError:c}=t;let f,h=null,d=0;const p=()=>(d++,h=null,g()),g=()=>{let t;return h||(t=h=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),c)return new Promise(((e,n)=>{const r=()=>e(p()),i=()=>n(t);c(t,r,i,d+1)}));throw t})).then((e=>t!==h&&h?h:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),f=e,e))))};return Ot({name:"AsyncComponentWrapper",__asyncLoader:g,get __asyncResolved(){return f},setup(){const t=sr;if(f)return()=>Lt(f,t);const e=e=>{h=null,l(e,t,13,!o)};if(u&&t.suspense||pr)return g().then((e=>()=>Lt(e,t))).catch((t=>(e(t),()=>o?Wn(o,{error:t}):null)));const i=(0,r.iH)(!1),c=(0,r.iH)(),d=(0,r.iH)(!!a);return a&&setTimeout((()=>{d.value=!1}),a),null!=s&&setTimeout((()=>{if(!i.value&&!c.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),c.value=t}}),s),g().then((()=>{i.value=!0,t.parent&&Nt(t.parent.vnode)&&w(t.parent.update)})).catch((t=>{e(t),c.value=t})),()=>i.value&&f?Lt(f,t):c.value&&o?Wn(o,{error:c.value}):n&&!d.value?Wn(n):void 0}})}function Lt(t,e){const{ref:n,props:r,children:i,ce:o}=e.vnode,a=Wn(t,r,i);return a.ref=n,a.ce=o,delete e.vnode.ce,a}const Nt=t=>t.type.__isKeepAlive,Rt={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=ur(),r=n.ctx;if(!r.renderer)return()=>{const t=e.default&&e.default();return t&&1===t.length?t[0]:t};const o=new Map,a=new Set;let s=null;const u=n.suspense,{renderer:{p:l,m:c,um:f,o:{createElement:h}}}=r,d=h("div");function p(t){Ht(t),f(t,n,u,!0)}function g(t){o.forEach(((e,n)=>{const r=Er(e.type);!r||t&&t(r)||v(n)}))}function v(t){const e=o.get(t);s&&zn(e,s)?s&&Ht(s):p(e),o.delete(t),a.delete(t)}r.activate=(t,e,n,r,o)=>{const a=t.component;c(t,e,n,0,u),l(a.vnode,t,e,n,a,u,r,t.slotScopeIds,o),ln((()=>{a.isDeactivated=!1,a.a&&(0,i.ir)(a.a);const e=t.props&&t.props.onVnodeMounted;e&&rr(e,a.parent,t)}),u)},r.deactivate=t=>{const e=t.component;c(t,d,null,1,u),ln((()=>{e.da&&(0,i.ir)(e.da);const n=t.props&&t.props.onVnodeUnmounted;n&&rr(n,e.parent,t),e.isDeactivated=!0}),u)},vt((()=>[t.include,t.exclude]),(([t,e])=>{t&&g((e=>Ft(t,e))),e&&g((t=>!Ft(e,t)))}),{flush:"post",deep:!0});let m=null;const y=()=>{null!=m&&o.set(m,$t(n.subTree))};return Yt(y),qt(y),Kt((()=>{o.forEach((t=>{const{subTree:e,suspense:r}=n,i=$t(e);if(t.type!==i.type||t.key!==i.key)p(t);else{Ht(i);const t=i.component.da;t&&ln(t,r)}}))})),()=>{if(m=null,!e.default)return null;const n=e.default(),r=n[0];if(n.length>1)return s=null,n;if(!Bn(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return s=null,r;let i=$t(r);const u=i.type,l=Er(Dt(i)?i.type.__asyncResolved||{}:u),{include:c,exclude:f,max:h}=t;if(c&&(!l||!Ft(c,l))||f&&l&&Ft(f,l))return s=i,r;const d=null==i.key?u:i.key,p=o.get(d);return i.el&&(i=Xn(i),128&r.shapeFlag&&(r.ssContent=i)),m=d,p?(i.el=p.el,i.component=p.component,i.transition&&At(i,i.transition),i.shapeFlag|=512,a.delete(d),a.add(d)):(a.add(d),h&&a.size>parseInt(h,10)&&v(a.values().next().value)),i.shapeFlag|=256,s=i,J(r.type)?r:i}}},jt=246!=n.j?Rt:null;function Ft(t,e){return(0,i.kJ)(t)?t.some((t=>Ft(t,e))):(0,i.HD)(t)?t.split(",").includes(e):!!(0,i.Kj)(t)&&t.test(e)}function Bt(t,e){Zt(t,"a",e)}function zt(t,e){Zt(t,"da",e)}function Zt(t,e,n=sr){const r=t.__wdc||(t.__wdc=()=>{let e=n;while(e){if(e.isDeactivated)return;e=e.parent}return t()});if(Gt(e,r,n),n){let t=n.parent;while(t&&t.parent)Nt(t.parent.vnode)&&Ut(r,e,n,t),t=t.parent}}function Ut(t,e,n,r){const o=Gt(e,t,r,!0);Jt((()=>{(0,i.Od)(r[e],o)}),n)}function Ht(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function $t(t){return 128&t.shapeFlag?t.ssContent:t}function Gt(t,e,n=sr,i=!1){if(n){const o=n[t]||(n[t]=[]),a=e.__weh||(e.__weh=(...i)=>{if(n.isUnmounted)return;(0,r.Jd)(),lr(n);const o=u(e,n,t,i);return cr(),(0,r.lk)(),o});return i?o.unshift(a):o.push(a),a}}const Wt=t=>(e,n=sr)=>(!pr||"sp"===t)&&Gt(t,((...t)=>e(...t)),n),Vt=Wt("bm"),Yt=Wt("m"),Xt=Wt("bu"),qt=Wt("u"),Kt=Wt("bum"),Jt=Wt("um"),Qt=Wt("sp"),te=Wt("rtg"),ee=Wt("rtc");function ne(t,e=sr){Gt("ec",t,e)}function re(t,e){const n=F;if(null===n)return t;const r=Sr(n)||n.proxy,o=t.dirs||(t.dirs=[]);for(let a=0;a<e.length;a++){let[t,n,s,u=i.kT]=e[a];t&&((0,i.mf)(t)&&(t={mounted:t,updated:t}),t.deep&&xt(n),o.push({dir:t,instance:r,value:n,oldValue:void 0,arg:s,modifiers:u}))}return t}function ie(t,e,n,i){const o=t.dirs,a=e&&e.dirs;for(let s=0;s<o.length;s++){const l=o[s];a&&(l.oldValue=a[s].value);let c=l.dir[i];c&&((0,r.Jd)(),u(c,n,8,[t.el,l,t,e]),(0,r.lk)())}}const oe="components",ae="directives";function se(t,e){return fe(oe,t,!0,e)||t}const ue=Symbol();function le(t){return(0,i.HD)(t)?fe(oe,t,!1)||t:t||ue}function ce(t){return fe(ae,t)}function fe(t,e,n=!0,r=!1){const o=F||sr;if(o){const n=o.type;if(t===oe){const t=Er(n,!1);if(t&&(t===e||t===(0,i._A)(e)||t===(0,i.kC)((0,i._A)(e))))return n}const a=he(o[t]||n[t],e)||he(o.appContext[t],e);return!a&&r?n:a}}function he(t,e){return t&&(t[e]||t[(0,i._A)(e)]||t[(0,i.kC)((0,i._A)(e))])}function de(t,e,n,r){let o;const a=n&&n[r];if((0,i.kJ)(t)||(0,i.HD)(t)){o=new Array(t.length);for(let n=0,r=t.length;n<r;n++)o[n]=e(t[n],n,void 0,a&&a[n])}else if("number"===typeof t){0,o=new Array(t);for(let n=0;n<t;n++)o[n]=e(n+1,n,void 0,a&&a[n])}else if((0,i.Kn)(t))if(t[Symbol.iterator])o=Array.from(t,((t,n)=>e(t,n,void 0,a&&a[n])));else{const n=Object.keys(t);o=new Array(n.length);for(let r=0,i=n.length;r<i;r++){const i=n[r];o[r]=e(t[i],i,r,a&&a[r])}}else o=[];return n&&(n[r]=o),o}function pe(t,e){for(let n=0;n<e.length;n++){const r=e[n];if((0,i.kJ)(r))for(let e=0;e<r.length;e++)t[r[e].name]=r[e].fn;else r&&(t[r.name]=r.key?(...t)=>{const e=r.fn(...t);return e&&(e.key=r.key),e}:r.fn)}return t}function ge(t,e,n={},r,i){if(F.isCE||F.parent&&Dt(F.parent)&&F.parent.isCE)return"default"!==e&&(n.name=e),Wn("slot",n,r&&r());let o=t[e];o&&o._c&&(o._d=!1),On();const a=o&&ve(o(n)),s=Fn(Tn,{key:n.key||a&&a.key||`_${e}`},a||(r?r():[]),a&&1===t._?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function ve(t){return t.some((t=>!Bn(t)||t.type!==Cn&&!(t.type===Tn&&!ve(t.children))))?t:null}function me(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:(0,i.hR)(r)]=t[r];return n}const ye=t=>t?fr(t)?Sr(t)||t.proxy:ye(t.parent):null,be=(0,i.l7)(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>ye(t.parent),$root:t=>ye(t.root),$emit:t=>t.emit,$options:t=>Me(t),$forceUpdate:t=>t.f||(t.f=()=>w(t.update)),$nextTick:t=>t.n||(t.n=x.bind(t.proxy)),$watch:t=>yt.bind(t)}),xe=(t,e)=>t!==i.kT&&!t.__isScriptSetup&&(0,i.RI)(t,e),_e={get({_:t},e){const{ctx:n,setupState:o,data:a,props:s,accessCache:u,type:l,appContext:c}=t;let f;if("$"!==e[0]){const r=u[e];if(void 0!==r)switch(r){case 1:return o[e];case 2:return a[e];case 4:return n[e];case 3:return s[e]}else{if(xe(o,e))return u[e]=1,o[e];if(a!==i.kT&&(0,i.RI)(a,e))return u[e]=2,a[e];if((f=t.propsOptions[0])&&(0,i.RI)(f,e))return u[e]=3,s[e];if(n!==i.kT&&(0,i.RI)(n,e))return u[e]=4,n[e];Se&&(u[e]=0)}}const h=be[e];let d,p;return h?("$attrs"===e&&(0,r.j)(t,"get",e),h(t)):(d=l.__cssModules)&&(d=d[e])?d:n!==i.kT&&(0,i.RI)(n,e)?(u[e]=4,n[e]):(p=c.config.globalProperties,(0,i.RI)(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:r,setupState:o,ctx:a}=t;return xe(o,e)?(o[e]=n,!0):r!==i.kT&&(0,i.RI)(r,e)?(r[e]=n,!0):!(0,i.RI)(t.props,e)&&(("$"!==e[0]||!(e.slice(1)in t))&&(a[e]=n,!0))},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:o,propsOptions:a}},s){let u;return!!n[s]||t!==i.kT&&(0,i.RI)(t,s)||xe(e,s)||(u=a[0])&&(0,i.RI)(u,s)||(0,i.RI)(r,s)||(0,i.RI)(be,s)||(0,i.RI)(o.config.globalProperties,s)},defineProperty(t,e,n){return null!=n.get?t._.accessCache[e]=0:(0,i.RI)(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};const we=(0,i.l7)({},_e,{get(t,e){if(e!==Symbol.unscopables)return _e.get(t,e,t)},has(t,e){const n="_"!==e[0]&&!(0,i.e1)(e);return n}});let Se=!0;function Ee(t){const e=Me(t),n=t.proxy,o=t.ctx;Se=!1,e.beforeCreate&&ke(e.beforeCreate,t,"bc");const{data:a,computed:s,methods:u,watch:l,provide:c,inject:f,created:h,beforeMount:d,mounted:p,beforeUpdate:g,updated:v,activated:m,deactivated:y,beforeDestroy:b,beforeUnmount:x,destroyed:_,unmounted:w,render:S,renderTracked:E,renderTriggered:T,errorCaptured:k,serverPrefetch:C,expose:M,inheritAttrs:A,components:I,directives:O,filters:D}=e,P=null;if(f&&Te(f,o,P,t.appContext.config.unwrapInjectedRef),u)for(const r in u){const t=u[r];(0,i.mf)(t)&&(o[r]=t.bind(n))}if(a){0;const e=a.call(n,n);0,(0,i.Kn)(e)&&(t.data=(0,r.qj)(e))}if(Se=!0,s)for(const r in s){const t=s[r],e=(0,i.mf)(t)?t.bind(n,n):(0,i.mf)(t.get)?t.get.bind(n,n):i.dG;0;const a=!(0,i.mf)(t)&&(0,i.mf)(t.set)?t.set.bind(n):i.dG,u=kr({get:e,set:a});Object.defineProperty(o,r,{enumerable:!0,configurable:!0,get:()=>u.value,set:t=>u.value=t})}if(l)for(const r in l)Ce(l[r],o,n,r);if(c){const t=(0,i.mf)(c)?c.call(n):c;Reflect.ownKeys(t).forEach((e=>{ct(e,t[e])}))}function L(t,e){(0,i.kJ)(e)?e.forEach((e=>t(e.bind(n)))):e&&t(e.bind(n))}if(h&&ke(h,t,"c"),L(Vt,d),L(Yt,p),L(Xt,g),L(qt,v),L(Bt,m),L(zt,y),L(ne,k),L(ee,E),L(te,T),L(Kt,x),L(Jt,w),L(Qt,C),(0,i.kJ)(M))if(M.length){const e=t.exposed||(t.exposed={});M.forEach((t=>{Object.defineProperty(e,t,{get:()=>n[t],set:e=>n[t]=e})}))}else t.exposed||(t.exposed={});S&&t.render===i.dG&&(t.render=S),null!=A&&(t.inheritAttrs=A),I&&(t.components=I),O&&(t.directives=O)}function Te(t,e,n=i.dG,o=!1){(0,i.kJ)(t)&&(t=Pe(t));for(const a in t){const n=t[a];let s;s=(0,i.Kn)(n)?"default"in n?ft(n.from||a,n.default,!0):ft(n.from||a):ft(n),(0,r.dq)(s)&&o?Object.defineProperty(e,a,{enumerable:!0,configurable:!0,get:()=>s.value,set:t=>s.value=t}):e[a]=s}}function ke(t,e,n){u((0,i.kJ)(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,n)}function Ce(t,e,n,r){const o=r.includes(".")?bt(n,r):()=>n[r];if((0,i.HD)(t)){const n=e[t];(0,i.mf)(n)&&vt(o,n)}else if((0,i.mf)(t))vt(o,t.bind(n));else if((0,i.Kn)(t))if((0,i.kJ)(t))t.forEach((t=>Ce(t,e,n,r)));else{const r=(0,i.mf)(t.handler)?t.handler.bind(n):e[t.handler];(0,i.mf)(r)&&vt(o,r,t)}else 0}function Me(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:o,optionsCache:a,config:{optionMergeStrategies:s}}=t.appContext,u=a.get(e);let l;return u?l=u:o.length||n||r?(l={},o.length&&o.forEach((t=>Ae(l,t,s,!0))),Ae(l,e,s)):l=e,(0,i.Kn)(e)&&a.set(e,l),l}function Ae(t,e,n,r=!1){const{mixins:i,extends:o}=e;o&&Ae(t,o,n,!0),i&&i.forEach((e=>Ae(t,e,n,!0)));for(const a in e)if(r&&"expose"===a);else{const r=Ie[a]||n&&n[a];t[a]=r?r(t[a],e[a]):e[a]}return t}const Ie={data:Oe,props:Ne,emits:Ne,methods:Ne,computed:Ne,beforeCreate:Le,created:Le,beforeMount:Le,mounted:Le,beforeUpdate:Le,updated:Le,beforeDestroy:Le,beforeUnmount:Le,destroyed:Le,unmounted:Le,activated:Le,deactivated:Le,errorCaptured:Le,serverPrefetch:Le,components:Ne,directives:Ne,watch:Re,provide:Oe,inject:De};function Oe(t,e){return e?t?function(){return(0,i.l7)((0,i.mf)(t)?t.call(this,this):t,(0,i.mf)(e)?e.call(this,this):e)}:e:t}function De(t,e){return Ne(Pe(t),Pe(e))}function Pe(t){if((0,i.kJ)(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Le(t,e){return t?[...new Set([].concat(t,e))]:e}function Ne(t,e){return t?(0,i.l7)((0,i.l7)(Object.create(null),t),e):e}function Re(t,e){if(!t)return e;if(!e)return t;const n=(0,i.l7)(Object.create(null),t);for(const r in e)n[r]=Le(t[r],e[r]);return n}function je(t,e,n,o=!1){const a={},s={};(0,i.Nj)(s,Un,1),t.propsDefaults=Object.create(null),Be(t,e,a,s);for(const r in t.propsOptions[0])r in a||(a[r]=void 0);n?t.props=o?a:(0,r.Um)(a):t.type.props?t.props=a:t.props=s,t.attrs=s}function Fe(t,e,n,o){const{props:a,attrs:s,vnode:{patchFlag:u}}=t,l=(0,r.IU)(a),[c]=t.propsOptions;let f=!1;if(!(o||u>0)||16&u){let r;Be(t,e,a,s)&&(f=!0);for(const o in l)e&&((0,i.RI)(e,o)||(r=(0,i.rs)(o))!==o&&(0,i.RI)(e,r))||(c?!n||void 0===n[o]&&void 0===n[r]||(a[o]=ze(c,l,o,void 0,t,!0)):delete a[o]);if(s!==l)for(const t in s)e&&(0,i.RI)(e,t)||(delete s[t],f=!0)}else if(8&u){const n=t.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(j(t.emitsOptions,o))continue;const u=e[o];if(c)if((0,i.RI)(s,o))u!==s[o]&&(s[o]=u,f=!0);else{const e=(0,i._A)(o);a[e]=ze(c,l,e,u,t,!1)}else u!==s[o]&&(s[o]=u,f=!0)}}f&&(0,r.X$)(t,"set","$attrs")}function Be(t,e,n,o){const[a,s]=t.propsOptions;let u,l=!1;if(e)for(let r in e){if((0,i.Gg)(r))continue;const c=e[r];let f;a&&(0,i.RI)(a,f=(0,i._A)(r))?s&&s.includes(f)?(u||(u={}))[f]=c:n[f]=c:j(t.emitsOptions,r)||r in o&&c===o[r]||(o[r]=c,l=!0)}if(s){const e=(0,r.IU)(n),o=u||i.kT;for(let r=0;r<s.length;r++){const u=s[r];n[u]=ze(a,e,u,o[u],t,!(0,i.RI)(o,u))}}return l}function ze(t,e,n,r,o,a){const s=t[n];if(null!=s){const t=(0,i.RI)(s,"default");if(t&&void 0===r){const t=s.default;if(s.type!==Function&&(0,i.mf)(t)){const{propsDefaults:i}=o;n in i?r=i[n]:(lr(o),r=i[n]=t.call(null,e),cr())}else r=t}s[0]&&(a&&!t?r=!1:!s[1]||""!==r&&r!==(0,i.rs)(n)||(r=!0))}return r}function Ze(t,e,n=!1){const r=e.propsCache,o=r.get(t);if(o)return o;const a=t.props,s={},u=[];let l=!1;if(!(0,i.mf)(t)){const r=t=>{l=!0;const[n,r]=Ze(t,e,!0);(0,i.l7)(s,n),r&&u.push(...r)};!n&&e.mixins.length&&e.mixins.forEach(r),t.extends&&r(t.extends),t.mixins&&t.mixins.forEach(r)}if(!a&&!l)return(0,i.Kn)(t)&&r.set(t,i.Z6),i.Z6;if((0,i.kJ)(a))for(let f=0;f<a.length;f++){0;const t=(0,i._A)(a[f]);Ue(t)&&(s[t]=i.kT)}else if(a){0;for(const t in a){const e=(0,i._A)(t);if(Ue(e)){const n=a[t],r=s[e]=(0,i.kJ)(n)||(0,i.mf)(n)?{type:n}:Object.assign({},n);if(r){const t=Ge(Boolean,r.type),n=Ge(String,r.type);r[0]=t>-1,r[1]=n<0||t<n,(t>-1||(0,i.RI)(r,"default"))&&u.push(e)}}}}const c=[s,u];return(0,i.Kn)(t)&&r.set(t,c),c}function Ue(t){return"$"!==t[0]}function He(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:null===t?"null":""}function $e(t,e){return He(t)===He(e)}function Ge(t,e){return(0,i.kJ)(e)?e.findIndex((e=>$e(e,t))):(0,i.mf)(e)&&$e(e,t)?0:-1}const We=t=>"_"===t[0]||"$stable"===t,Ve=t=>(0,i.kJ)(t)?t.map(Qn):[Qn(t)],Ye=(t,e,n)=>{if(e._n)return e;const r=$(((...t)=>Ve(e(...t))),n);return r._c=!1,r},Xe=(t,e,n)=>{const r=t._ctx;for(const o in t){if(We(o))continue;const n=t[o];if((0,i.mf)(n))e[o]=Ye(o,n,r);else if(null!=n){0;const t=Ve(n);e[o]=()=>t}}},qe=(t,e)=>{const n=Ve(e);t.slots.default=()=>n},Ke=(t,e)=>{if(32&t.vnode.shapeFlag){const n=e._;n?(t.slots=(0,r.IU)(e),(0,i.Nj)(e,"_",n)):Xe(e,t.slots={})}else t.slots={},e&&qe(t,e);(0,i.Nj)(t.slots,Un,1)},Je=(t,e,n)=>{const{vnode:r,slots:o}=t;let a=!0,s=i.kT;if(32&r.shapeFlag){const t=e._;t?n&&1===t?a=!1:((0,i.l7)(o,e),n||1!==t||delete o._):(a=!e.$stable,Xe(e,o)),s=e}else e&&(qe(t,e),s={default:1});if(a)for(const i in o)We(i)||i in s||delete o[i]};function Qe(){return{app:null,config:{isNativeTag:i.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let tn=0;function en(t,e){return function(n,r=null){(0,i.mf)(n)||(n=Object.assign({},n)),null==r||(0,i.Kn)(r)||(r=null);const o=Qe(),a=new Set;let s=!1;const u=o.app={_uid:tn++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Hr,get config(){return o.config},set config(t){0},use(t,...e){return a.has(t)||(t&&(0,i.mf)(t.install)?(a.add(t),t.install(u,...e)):(0,i.mf)(t)&&(a.add(t),t(u,...e))),u},mixin(t){return o.mixins.includes(t)||o.mixins.push(t),u},component(t,e){return e?(o.components[t]=e,u):o.components[t]},directive(t,e){return e?(o.directives[t]=e,u):o.directives[t]},mount(i,a,l){if(!s){0;const c=Wn(n,r);return c.appContext=o,a&&e?e(c,i):t(c,i,l),s=!0,u._container=i,i.__vue_app__=u,Sr(c.component)||c.component.proxy}},unmount(){s&&(t(null,u._container),delete u._container.__vue_app__)},provide(t,e){return o.provides[t]=e,u}};return u}}function nn(t,e,n,o,a=!1){if((0,i.kJ)(t))return void t.forEach(((t,r)=>nn(t,e&&((0,i.kJ)(e)?e[r]:e),n,o,a)));if(Dt(o)&&!a)return;const u=4&o.shapeFlag?Sr(o.component)||o.component.proxy:o.el,l=a?null:u,{i:c,r:f}=t;const h=e&&e.r,d=c.refs===i.kT?c.refs={}:c.refs,p=c.setupState;if(null!=h&&h!==f&&((0,i.HD)(h)?(d[h]=null,(0,i.RI)(p,h)&&(p[h]=null)):(0,r.dq)(h)&&(h.value=null)),(0,i.mf)(f))s(f,c,12,[l,d]);else{const e=(0,i.HD)(f),o=(0,r.dq)(f);if(e||o){const r=()=>{if(t.f){const n=e?(0,i.RI)(p,f)?p[f]:d[f]:f.value;a?(0,i.kJ)(n)&&(0,i.Od)(n,u):(0,i.kJ)(n)?n.includes(u)||n.push(u):e?(d[f]=[u],(0,i.RI)(p,f)&&(p[f]=d[f])):(f.value=[u],t.k&&(d[t.k]=f.value))}else e?(d[f]=l,(0,i.RI)(p,f)&&(p[f]=l)):o&&(f.value=l,t.k&&(d[t.k]=l))};l?(r.id=-1,ln(r,n)):r()}else 0}}let rn=!1;const on=t=>/svg/.test(t.namespaceURI)&&"foreignObject"!==t.tagName,an=t=>8===t.nodeType;function sn(t){const{mt:e,p:n,o:{patchProp:r,createText:o,nextSibling:a,parentNode:s,remove:u,insert:l,createComment:c}}=t,f=(t,e)=>{if(!e.hasChildNodes())return n(null,t,e),C(),void(e._vnode=t);rn=!1,h(e.firstChild,t,null,null,null),C(),e._vnode=t,rn&&console.error("Hydration completed but contains mismatches.")},h=(n,r,i,u,c,f=!1)=>{const y=an(n)&&"["===n.data,b=()=>v(n,r,i,u,c,y),{type:x,ref:_,shapeFlag:w,patchFlag:S}=r;let E=n.nodeType;r.el=n,-2===S&&(f=!1,r.dynamicChildren=null);let T=null;switch(x){case kn:3!==E?""===r.children?(l(r.el=o(""),s(n),n),T=n):T=b():(n.data!==r.children&&(rn=!0,n.data=r.children),T=a(n));break;case Cn:T=8!==E||y?b():a(n);break;case Mn:if(y&&(n=a(n),E=n.nodeType),1===E||3===E){T=n;const t=!r.children.length;for(let e=0;e<r.staticCount;e++)t&&(r.children+=1===T.nodeType?T.outerHTML:T.data),e===r.staticCount-1&&(r.anchor=T),T=a(T);return y?a(T):T}b();break;case Tn:T=y?g(n,r,i,u,c,f):b();break;default:if(1&w)T=1!==E||r.type.toLowerCase()!==n.tagName.toLowerCase()?b():d(n,r,i,u,c,f);else if(6&w){r.slotScopeIds=c;const t=s(n);if(e(r,t,null,i,u,on(t),f),T=y?m(n):a(n),T&&an(T)&&"teleport end"===T.data&&(T=a(T)),Dt(r)){let e;y?(e=Wn(Tn),e.anchor=T?T.previousSibling:t.lastChild):e=3===n.nodeType?qn(""):Wn("div"),e.el=n,r.component.subTree=e}}else 64&w?T=8!==E?b():r.type.hydrate(n,r,i,u,c,f,t,p):128&w&&(T=r.type.hydrate(n,r,i,u,on(s(n)),c,f,t,h))}return null!=_&&nn(_,null,u,r),T},d=(t,e,n,o,a,s)=>{s=s||!!e.dynamicChildren;const{type:l,props:c,patchFlag:f,shapeFlag:h,dirs:d}=e,g="input"===l&&d||"option"===l;if(g||-1!==f){if(d&&ie(e,null,n,"created"),c)if(g||!s||48&f)for(const e in c)(g&&e.endsWith("value")||(0,i.F7)(e)&&!(0,i.Gg)(e))&&r(t,e,null,c[e],!1,void 0,n);else c.onClick&&r(t,"onClick",null,c.onClick,!1,void 0,n);let l;if((l=c&&c.onVnodeBeforeMount)&&rr(l,n,e),d&&ie(e,null,n,"beforeMount"),((l=c&&c.onVnodeMounted)||d)&&ut((()=>{l&&rr(l,n,e),d&&ie(e,null,n,"mounted")}),o),16&h&&(!c||!c.innerHTML&&!c.textContent)){let r=p(t.firstChild,e,t,n,o,a,s);while(r){rn=!0;const t=r;r=r.nextSibling,u(t)}}else 8&h&&t.textContent!==e.children&&(rn=!0,t.textContent=e.children)}return t.nextSibling},p=(t,e,r,i,o,a,s)=>{s=s||!!e.dynamicChildren;const u=e.children,l=u.length;for(let c=0;c<l;c++){const e=s?u[c]:u[c]=Qn(u[c]);if(t)t=h(t,e,i,o,a,s);else{if(e.type===kn&&!e.children)continue;rn=!0,n(null,e,r,null,i,o,on(r),a)}}return t},g=(t,e,n,r,i,o)=>{const{slotScopeIds:u}=e;u&&(i=i?i.concat(u):u);const f=s(t),h=p(a(t),e,f,n,r,i,o);return h&&an(h)&&"]"===h.data?a(e.anchor=h):(rn=!0,l(e.anchor=c("]"),f,h),h)},v=(t,e,r,i,o,l)=>{if(rn=!0,e.el=null,l){const e=m(t);while(1){const n=a(t);if(!n||n===e)break;u(n)}}const c=a(t),f=s(t);return u(t),n(null,e,f,c,r,i,on(f),o),c},m=t=>{let e=0;while(t)if(t=a(t),t&&an(t)&&("["===t.data&&e++,"]"===t.data)){if(0===e)return a(t);e--}return t};return[f,h]}function un(){}const ln=ut;function cn(t){return hn(t)}function fn(t){return hn(t,sn)}function hn(t,e){un();const n=(0,i.E9)();n.__VUE__=!0;const{insert:o,remove:a,patchProp:s,createElement:u,createText:l,createComment:c,setText:f,setElementText:h,parentNode:d,nextSibling:p,setScopeId:g=i.dG,insertStaticContent:v}=t,m=(t,e,n,r=null,i=null,o=null,a=!1,s=null,u=!!e.dynamicChildren)=>{if(t===e)return;t&&!zn(t,e)&&(r=J(t),$(t,i,o,!0),t=null),-2===e.patchFlag&&(u=!1,e.dynamicChildren=null);const{type:l,ref:c,shapeFlag:f}=e;switch(l){case kn:y(t,e,n,r);break;case Cn:b(t,e,n,r);break;case Mn:null==t&&x(e,n,r,a);break;case Tn:L(t,e,n,r,i,o,a,s,u);break;default:1&f?T(t,e,n,r,i,o,a,s,u):6&f?N(t,e,n,r,i,o,a,s,u):(64&f||128&f)&&l.process(t,e,n,r,i,o,a,s,u,tt)}null!=c&&i&&nn(c,t&&t.ref,o,e||t,!e)},y=(t,e,n,r)=>{if(null==t)o(e.el=l(e.children),n,r);else{const n=e.el=t.el;e.children!==t.children&&f(n,e.children)}},b=(t,e,n,r)=>{null==t?o(e.el=c(e.children||""),n,r):e.el=t.el},x=(t,e,n,r)=>{[t.el,t.anchor]=v(t.children,e,n,r,t.el,t.anchor)},_=({el:t,anchor:e},n,r)=>{let i;while(t&&t!==e)i=p(t),o(t,n,r),t=i;o(e,n,r)},S=({el:t,anchor:e})=>{let n;while(t&&t!==e)n=p(t),a(t),t=n;a(e)},T=(t,e,n,r,i,o,a,s,u)=>{a=a||"svg"===e.type,null==t?M(e,n,r,i,o,a,s,u):O(t,e,i,o,a,s,u)},M=(t,e,n,r,a,l,c,f)=>{let d,p;const{type:g,props:v,shapeFlag:m,transition:y,dirs:b}=t;if(d=t.el=u(t.type,l,v&&v.is,v),8&m?h(d,t.children):16&m&&I(t.children,d,null,r,a,l&&"foreignObject"!==g,c,f),b&&ie(t,null,r,"created"),A(d,t,t.scopeId,c,r),v){for(const e in v)"value"===e||(0,i.Gg)(e)||s(d,e,null,v[e],l,t.children,r,a,q);"value"in v&&s(d,"value",null,v.value),(p=v.onVnodeBeforeMount)&&rr(p,r,t)}b&&ie(t,null,r,"beforeMount");const x=(!a||a&&!a.pendingBranch)&&y&&!y.persisted;x&&y.beforeEnter(d),o(d,e,n),((p=v&&v.onVnodeMounted)||x||b)&&ln((()=>{p&&rr(p,r,t),x&&y.enter(d),b&&ie(t,null,r,"mounted")}),a)},A=(t,e,n,r,i)=>{if(n&&g(t,n),r)for(let o=0;o<r.length;o++)g(t,r[o]);if(i){let n=i.subTree;if(e===n){const e=i.vnode;A(t,e,e.scopeId,e.slotScopeIds,i.parent)}}},I=(t,e,n,r,i,o,a,s,u=0)=>{for(let l=u;l<t.length;l++){const u=t[l]=s?tr(t[l]):Qn(t[l]);m(null,u,e,n,r,i,o,a,s)}},O=(t,e,n,r,o,a,u)=>{const l=e.el=t.el;let{patchFlag:c,dynamicChildren:f,dirs:d}=e;c|=16&t.patchFlag;const p=t.props||i.kT,g=e.props||i.kT;let v;n&&dn(n,!1),(v=g.onVnodeBeforeUpdate)&&rr(v,n,e,t),d&&ie(e,t,n,"beforeUpdate"),n&&dn(n,!0);const m=o&&"foreignObject"!==e.type;if(f?D(t.dynamicChildren,f,l,n,r,m,a):u||z(t,e,l,null,n,r,m,a,!1),c>0){if(16&c)P(l,e,p,g,n,r,o);else if(2&c&&p.class!==g.class&&s(l,"class",null,g.class,o),4&c&&s(l,"style",p.style,g.style,o),8&c){const i=e.dynamicProps;for(let e=0;e<i.length;e++){const a=i[e],u=p[a],c=g[a];c===u&&"value"!==a||s(l,a,u,c,o,t.children,n,r,q)}}1&c&&t.children!==e.children&&h(l,e.children)}else u||null!=f||P(l,e,p,g,n,r,o);((v=g.onVnodeUpdated)||d)&&ln((()=>{v&&rr(v,n,e,t),d&&ie(e,t,n,"updated")}),r)},D=(t,e,n,r,i,o,a)=>{for(let s=0;s<e.length;s++){const u=t[s],l=e[s],c=u.el&&(u.type===Tn||!zn(u,l)||70&u.shapeFlag)?d(u.el):n;m(u,l,c,null,r,i,o,a,!0)}},P=(t,e,n,r,o,a,u)=>{if(n!==r){if(n!==i.kT)for(const l in n)(0,i.Gg)(l)||l in r||s(t,l,n[l],null,u,e.children,o,a,q);for(const l in r){if((0,i.Gg)(l))continue;const c=r[l],f=n[l];c!==f&&"value"!==l&&s(t,l,f,c,u,e.children,o,a,q)}"value"in r&&s(t,"value",n.value,r.value)}},L=(t,e,n,r,i,a,s,u,c)=>{const f=e.el=t?t.el:l(""),h=e.anchor=t?t.anchor:l("");let{patchFlag:d,dynamicChildren:p,slotScopeIds:g}=e;g&&(u=u?u.concat(g):g),null==t?(o(f,n,r),o(h,n,r),I(e.children,n,h,i,a,s,u,c)):d>0&&64&d&&p&&t.dynamicChildren?(D(t.dynamicChildren,p,n,i,a,s,u),(null!=e.key||i&&e===i.subTree)&&pn(t,e,!0)):z(t,e,n,h,i,a,s,u,c)},N=(t,e,n,r,i,o,a,s,u)=>{e.slotScopeIds=s,null==t?512&e.shapeFlag?i.ctx.activate(e,n,r,a,u):R(e,n,r,i,o,a,u):j(t,e,u)},R=(t,e,n,r,i,o,a)=>{const s=t.component=ar(t,r,i);if(Nt(t)&&(s.ctx.renderer=tt),gr(s),s.asyncDep){if(i&&i.registerDep(s,F),!t.el){const t=s.subTree=Wn(Cn);b(null,t,e,n)}}else F(s,t,e,n,i,o,a)},j=(t,e,n)=>{const r=e.component=t.component;if(X(t,e,n)){if(r.asyncDep&&!r.asyncResolved)return void B(r,e,n);r.next=e,E(r.update),r.update()}else e.el=t.el,r.vnode=e},F=(t,e,n,o,a,s,u)=>{const l=()=>{if(t.isMounted){let e,{next:n,bu:r,u:o,parent:l,vnode:c}=t,f=n;0,dn(t,!1),n?(n.el=c.el,B(t,n,u)):n=c,r&&(0,i.ir)(r),(e=n.props&&n.props.onVnodeBeforeUpdate)&&rr(e,l,n,c),dn(t,!0);const h=G(t);0;const p=t.subTree;t.subTree=h,m(p,h,d(p.el),J(p),t,a,s),n.el=h.el,null===f&&K(t,h.el),o&&ln(o,a),(e=n.props&&n.props.onVnodeUpdated)&&ln((()=>rr(e,l,n,c)),a)}else{let r;const{el:u,props:l}=e,{bm:c,m:f,parent:h}=t,d=Dt(e);if(dn(t,!1),c&&(0,i.ir)(c),!d&&(r=l&&l.onVnodeBeforeMount)&&rr(r,h,e),dn(t,!0),u&&nt){const n=()=>{t.subTree=G(t),nt(u,t.subTree,t,a,null)};d?e.type.__asyncLoader().then((()=>!t.isUnmounted&&n())):n()}else{0;const r=t.subTree=G(t);0,m(null,r,n,o,t,a,s),e.el=r.el}if(f&&ln(f,a),!d&&(r=l&&l.onVnodeMounted)){const t=e;ln((()=>rr(r,h,t)),a)}(256&e.shapeFlag||h&&Dt(h.vnode)&&256&h.vnode.shapeFlag)&&t.a&&ln(t.a,a),t.isMounted=!0,e=n=o=null}},c=t.effect=new r.qq(l,(()=>w(f)),t.scope),f=t.update=()=>c.run();f.id=t.uid,dn(t,!0),f()},B=(t,e,n)=>{e.component=t;const i=t.vnode.props;t.vnode=e,t.next=null,Fe(t,e.props,i,n),Je(t,e.children,n),(0,r.Jd)(),k(),(0,r.lk)()},z=(t,e,n,r,i,o,a,s,u=!1)=>{const l=t&&t.children,c=t?t.shapeFlag:0,f=e.children,{patchFlag:d,shapeFlag:p}=e;if(d>0){if(128&d)return void U(l,f,n,r,i,o,a,s,u);if(256&d)return void Z(l,f,n,r,i,o,a,s,u)}8&p?(16&c&&q(l,i,o),f!==l&&h(n,f)):16&c?16&p?U(l,f,n,r,i,o,a,s,u):q(l,i,o,!0):(8&c&&h(n,""),16&p&&I(f,n,r,i,o,a,s,u))},Z=(t,e,n,r,o,a,s,u,l)=>{t=t||i.Z6,e=e||i.Z6;const c=t.length,f=e.length,h=Math.min(c,f);let d;for(d=0;d<h;d++){const r=e[d]=l?tr(e[d]):Qn(e[d]);m(t[d],r,n,null,o,a,s,u,l)}c>f?q(t,o,a,!0,!1,h):I(e,n,r,o,a,s,u,l,h)},U=(t,e,n,r,o,a,s,u,l)=>{let c=0;const f=e.length;let h=t.length-1,d=f-1;while(c<=h&&c<=d){const r=t[c],i=e[c]=l?tr(e[c]):Qn(e[c]);if(!zn(r,i))break;m(r,i,n,null,o,a,s,u,l),c++}while(c<=h&&c<=d){const r=t[h],i=e[d]=l?tr(e[d]):Qn(e[d]);if(!zn(r,i))break;m(r,i,n,null,o,a,s,u,l),h--,d--}if(c>h){if(c<=d){const t=d+1,i=t<f?e[t].el:r;while(c<=d)m(null,e[c]=l?tr(e[c]):Qn(e[c]),n,i,o,a,s,u,l),c++}}else if(c>d)while(c<=h)$(t[c],o,a,!0),c++;else{const p=c,g=c,v=new Map;for(c=g;c<=d;c++){const t=e[c]=l?tr(e[c]):Qn(e[c]);null!=t.key&&v.set(t.key,c)}let y,b=0;const x=d-g+1;let _=!1,w=0;const S=new Array(x);for(c=0;c<x;c++)S[c]=0;for(c=p;c<=h;c++){const r=t[c];if(b>=x){$(r,o,a,!0);continue}let i;if(null!=r.key)i=v.get(r.key);else for(y=g;y<=d;y++)if(0===S[y-g]&&zn(r,e[y])){i=y;break}void 0===i?$(r,o,a,!0):(S[i-g]=c+1,i>=w?w=i:_=!0,m(r,e[i],n,null,o,a,s,u,l),b++)}const E=_?gn(S):i.Z6;for(y=E.length-1,c=x-1;c>=0;c--){const t=g+c,i=e[t],h=t+1<f?e[t+1].el:r;0===S[c]?m(null,i,n,h,o,a,s,u,l):_&&(y<0||c!==E[y]?H(i,n,h,2):y--)}}},H=(t,e,n,r,i=null)=>{const{el:a,type:s,transition:u,children:l,shapeFlag:c}=t;if(6&c)return void H(t.component.subTree,e,n,r);if(128&c)return void t.suspense.move(e,n,r);if(64&c)return void s.move(t,e,n,tt);if(s===Tn){o(a,e,n);for(let t=0;t<l.length;t++)H(l[t],e,n,r);return void o(t.anchor,e,n)}if(s===Mn)return void _(t,e,n);const f=2!==r&&1&c&&u;if(f)if(0===r)u.beforeEnter(a),o(a,e,n),ln((()=>u.enter(a)),i);else{const{leave:t,delayLeave:r,afterLeave:i}=u,s=()=>o(a,e,n),l=()=>{t(a,(()=>{s(),i&&i()}))};r?r(a,s,l):l()}else o(a,e,n)},$=(t,e,n,r=!1,i=!1)=>{const{type:o,props:a,ref:s,children:u,dynamicChildren:l,shapeFlag:c,patchFlag:f,dirs:h}=t;if(null!=s&&nn(s,null,n,t,!0),256&c)return void e.ctx.deactivate(t);const d=1&c&&h,p=!Dt(t);let g;if(p&&(g=a&&a.onVnodeBeforeUnmount)&&rr(g,e,t),6&c)Y(t.component,n,r);else{if(128&c)return void t.suspense.unmount(n,r);d&&ie(t,null,e,"beforeUnmount"),64&c?t.type.remove(t,e,n,i,tt,r):l&&(o!==Tn||f>0&&64&f)?q(l,e,n,!1,!0):(o===Tn&&384&f||!i&&16&c)&&q(u,e,n),r&&W(t)}(p&&(g=a&&a.onVnodeUnmounted)||d)&&ln((()=>{g&&rr(g,e,t),d&&ie(t,null,e,"unmounted")}),n)},W=t=>{const{type:e,el:n,anchor:r,transition:i}=t;if(e===Tn)return void V(n,r);if(e===Mn)return void S(t);const o=()=>{a(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&t.shapeFlag&&i&&!i.persisted){const{leave:e,delayLeave:r}=i,a=()=>e(n,o);r?r(t.el,o,a):a()}else o()},V=(t,e)=>{let n;while(t!==e)n=p(t),a(t),t=n;a(e)},Y=(t,e,n)=>{const{bum:r,scope:o,update:a,subTree:s,um:u}=t;r&&(0,i.ir)(r),o.stop(),a&&(a.active=!1,$(s,t,e,n)),u&&ln(u,e),ln((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},q=(t,e,n,r=!1,i=!1,o=0)=>{for(let a=o;a<t.length;a++)$(t[a],e,n,r,i)},J=t=>6&t.shapeFlag?J(t.component.subTree):128&t.shapeFlag?t.suspense.next():p(t.anchor||t.el),Q=(t,e,n)=>{null==t?e._vnode&&$(e._vnode,null,null,!0):m(e._vnode||null,t,e,null,null,null,n),k(),C(),e._vnode=t},tt={p:m,um:$,m:H,r:W,mt:R,mc:I,pc:z,pbc:D,n:J,o:t};let et,nt;return e&&([et,nt]=e(tt)),{render:Q,hydrate:et,createApp:en(Q,et)}}function dn({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function pn(t,e,n=!1){const r=t.children,o=e.children;if((0,i.kJ)(r)&&(0,i.kJ)(o))for(let i=0;i<r.length;i++){const t=r[i];let e=o[i];1&e.shapeFlag&&!e.dynamicChildren&&((e.patchFlag<=0||32===e.patchFlag)&&(e=o[i]=tr(o[i]),e.el=t.el),n||pn(t,e)),e.type===kn&&(e.el=t.el)}}function gn(t){const e=t.slice(),n=[0];let r,i,o,a,s;const u=t.length;for(r=0;r<u;r++){const u=t[r];if(0!==u){if(i=n[n.length-1],t[i]<u){e[r]=i,n.push(r);continue}o=0,a=n.length-1;while(o<a)s=o+a>>1,t[n[s]]<u?o=s+1:a=s;u<t[n[o]]&&(o>0&&(e[r]=n[o-1]),n[o]=r)}}o=n.length,a=n[o-1];while(o-- >0)n[o]=a,a=e[a];return n}const vn=t=>t.__isTeleport,mn=t=>t&&(t.disabled||""===t.disabled),yn=t=>"undefined"!==typeof SVGElement&&t instanceof SVGElement,bn=(t,e)=>{const n=t&&t.to;if((0,i.HD)(n)){if(e){const t=e(n);return t}return null}return n},xn={__isTeleport:!0,process(t,e,n,r,i,o,a,s,u,l){const{mc:c,pc:f,pbc:h,o:{insert:d,querySelector:p,createText:g,createComment:v}}=l,m=mn(e.props);let{shapeFlag:y,children:b,dynamicChildren:x}=e;if(null==t){const t=e.el=g(""),l=e.anchor=g("");d(t,n,r),d(l,n,r);const f=e.target=bn(e.props,p),h=e.targetAnchor=g("");f&&(d(h,f),a=a||yn(f));const v=(t,e)=>{16&y&&c(b,t,e,i,o,a,s,u)};m?v(n,l):f&&v(f,h)}else{e.el=t.el;const r=e.anchor=t.anchor,c=e.target=t.target,d=e.targetAnchor=t.targetAnchor,g=mn(t.props),v=g?n:c,y=g?r:d;if(a=a||yn(c),x?(h(t.dynamicChildren,x,v,i,o,a,s),pn(t,e,!0)):u||f(t,e,v,y,i,o,a,s,!1),m)g||_n(e,n,r,l,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const t=e.target=bn(e.props,p);t&&_n(e,t,null,l,0)}else g&&_n(e,c,d,l,1)}En(e)},remove(t,e,n,r,{um:i,o:{remove:o}},a){const{shapeFlag:s,children:u,anchor:l,targetAnchor:c,target:f,props:h}=t;if(f&&o(c),(a||!mn(h))&&(o(l),16&s))for(let d=0;d<u.length;d++){const t=u[d];i(t,e,n,!0,!!t.dynamicChildren)}},move:_n,hydrate:wn};function _n(t,e,n,{o:{insert:r},m:i},o=2){0===o&&r(t.targetAnchor,e,n);const{el:a,anchor:s,shapeFlag:u,children:l,props:c}=t,f=2===o;if(f&&r(a,e,n),(!f||mn(c))&&16&u)for(let h=0;h<l.length;h++)i(l[h],e,n,2);f&&r(s,e,n)}function wn(t,e,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:u}},l){const c=e.target=bn(e.props,u);if(c){const u=c._lpa||c.firstChild;if(16&e.shapeFlag)if(mn(e.props))e.anchor=l(a(t),e,s(t),n,r,i,o),e.targetAnchor=u;else{e.anchor=a(t);let s=u;while(s)if(s=a(s),s&&8===s.nodeType&&"teleport anchor"===s.data){e.targetAnchor=s,c._lpa=e.targetAnchor&&a(e.targetAnchor);break}l(u,e,c,n,r,i,o)}En(e)}return e.anchor&&a(e.anchor)}const Sn=246!=n.j?xn:null;function En(t){const e=t.ctx;if(e&&e.ut){let n=t.children[0].el;while(n!==t.targetAnchor)1===n.nodeType&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}const Tn=Symbol(void 0),kn=Symbol(void 0),Cn=Symbol(void 0),Mn=Symbol(void 0),An=[];let In=null;function On(t=!1){An.push(In=t?null:[])}function Dn(){An.pop(),In=An[An.length-1]||null}let Pn,Ln=1;function Nn(t){Ln+=t}function Rn(t){return t.dynamicChildren=Ln>0?In||i.Z6:null,Dn(),Ln>0&&In&&In.push(t),t}function jn(t,e,n,r,i,o){return Rn(Gn(t,e,n,r,i,o,!0))}function Fn(t,e,n,r,i){return Rn(Wn(t,e,n,r,i,!0))}function Bn(t){return!!t&&!0===t.__v_isVNode}function zn(t,e){return t.type===e.type&&t.key===e.key}function Zn(t){Pn=t}const Un="__vInternal",Hn=({key:t})=>null!=t?t:null,$n=({ref:t,ref_key:e,ref_for:n})=>null!=t?(0,i.HD)(t)||(0,r.dq)(t)||(0,i.mf)(t)?{i:F,r:t,k:e,f:!!n}:t:null;function Gn(t,e=null,n=null,r=0,o=null,a=(t===Tn?0:1),s=!1,u=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Hn(e),ref:e&&$n(e),scopeId:B,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:F};return u?(er(l,n),128&a&&t.normalize(l)):n&&(l.shapeFlag|=(0,i.HD)(n)?8:16),Ln>0&&!s&&In&&(l.patchFlag>0||6&a)&&32!==l.patchFlag&&In.push(l),l}const Wn=Vn;function Vn(t,e=null,n=null,o=0,a=null,s=!1){if(t&&t!==ue||(t=Cn),Bn(t)){const r=Xn(t,e,!0);return n&&er(r,n),Ln>0&&!s&&In&&(6&r.shapeFlag?In[In.indexOf(t)]=r:In.push(r)),r.patchFlag|=-2,r}if(Tr(t)&&(t=t.__vccOpts),e){e=Yn(e);let{class:t,style:n}=e;t&&!(0,i.HD)(t)&&(e.class=(0,i.C_)(t)),(0,i.Kn)(n)&&((0,r.X3)(n)&&!(0,i.kJ)(n)&&(n=(0,i.l7)({},n)),e.style=(0,i.j5)(n))}const u=(0,i.HD)(t)?1:J(t)?128:vn(t)?64:(0,i.Kn)(t)?4:(0,i.mf)(t)?2:0;return Gn(t,e,n,o,a,u,s,!0)}function Yn(t){return t?(0,r.X3)(t)||Un in t?(0,i.l7)({},t):t:null}function Xn(t,e,n=!1){const{props:r,ref:o,patchFlag:a,children:s}=t,u=e?nr(r||{},e):r,l={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&Hn(u),ref:e&&e.ref?n&&o?(0,i.kJ)(o)?o.concat($n(e)):[o,$n(e)]:$n(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Tn?-1===a?16:16|a:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Xn(t.ssContent),ssFallback:t.ssFallback&&Xn(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l}function qn(t=" ",e=0){return Wn(kn,null,t,e)}function Kn(t,e){const n=Wn(Mn,null,t);return n.staticCount=e,n}function Jn(t="",e=!1){return e?(On(),Fn(Cn,null,t)):Wn(Cn,null,t)}function Qn(t){return null==t||"boolean"===typeof t?Wn(Cn):(0,i.kJ)(t)?Wn(Tn,null,t.slice()):"object"===typeof t?tr(t):Wn(kn,null,String(t))}function tr(t){return null===t.el&&-1!==t.patchFlag||t.memo?t:Xn(t)}function er(t,e){let n=0;const{shapeFlag:r}=t;if(null==e)e=null;else if((0,i.kJ)(e))n=16;else if("object"===typeof e){if(65&r){const n=e.default;return void(n&&(n._c&&(n._d=!1),er(t,n()),n._c&&(n._d=!0)))}{n=32;const r=e._;r||Un in e?3===r&&F&&(1===F.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=F}}else(0,i.mf)(e)?(e={default:e,_ctx:F},n=32):(e=String(e),64&r?(n=16,e=[qn(e)]):n=8);t.children=e,t.shapeFlag|=n}function nr(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const t in r)if("class"===t)e.class!==r.class&&(e.class=(0,i.C_)([e.class,r.class]));else if("style"===t)e.style=(0,i.j5)([e.style,r.style]);else if((0,i.F7)(t)){const n=e[t],o=r[t];!o||n===o||(0,i.kJ)(n)&&n.includes(o)||(e[t]=n?[].concat(n,o):o)}else""!==t&&(e[t]=r[t])}return e}function rr(t,e,n,r=null){u(t,e,7,[n,r])}const ir=Qe();let or=0;function ar(t,e,n){const o=t.type,a=(e?e.appContext:t.appContext)||ir,s={uid:or++,vnode:t,type:o,parent:e,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new r.Bj(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ze(o,a),emitsOptions:R(o,a),emit:null,emitted:null,propsDefaults:i.kT,inheritAttrs:o.inheritAttrs,ctx:i.kT,data:i.kT,props:i.kT,attrs:i.kT,slots:i.kT,refs:i.kT,setupState:i.kT,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=e?e.root:s,s.emit=N.bind(null,s),t.ce&&t.ce(s),s}let sr=null;const ur=()=>sr||F,lr=t=>{sr=t,t.scope.on()},cr=()=>{sr&&sr.scope.off(),sr=null};function fr(t){return 4&t.vnode.shapeFlag}let hr,dr,pr=!1;function gr(t,e=!1){pr=e;const{props:n,children:r}=t.vnode,i=fr(t);je(t,n,i,e),Ke(t,r);const o=i?vr(t,e):void 0;return pr=!1,o}function vr(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=(0,r.Xl)(new Proxy(t.ctx,_e));const{setup:o}=n;if(o){const n=t.setupContext=o.length>1?wr(t):null;lr(t),(0,r.Jd)();const a=s(o,t,0,[t.props,n]);if((0,r.lk)(),cr(),(0,i.tI)(a)){if(a.then(cr,cr),e)return a.then((n=>{mr(t,n,e)})).catch((e=>{l(e,t,0)}));t.asyncDep=a}else mr(t,a,e)}else xr(t,e)}function mr(t,e,n){(0,i.mf)(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:(0,i.Kn)(e)&&(t.setupState=(0,r.WL)(e)),xr(t,n)}function yr(t){hr=t,dr=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,we))}}const br=()=>!hr;function xr(t,e,n){const o=t.type;if(!t.render){if(!e&&hr&&!o.render){const e=o.template||Me(t).template;if(e){0;const{isCustomElement:n,compilerOptions:r}=t.appContext.config,{delimiters:a,compilerOptions:s}=o,u=(0,i.l7)((0,i.l7)({isCustomElement:n,delimiters:a},r),s);o.render=hr(e,u)}}t.render=o.render||i.dG,dr&&dr(t)}lr(t),(0,r.Jd)(),Ee(t),(0,r.lk)(),cr()}function _r(t){return new Proxy(t.attrs,{get(e,n){return(0,r.j)(t,"get","$attrs"),e[n]}})}function wr(t){const e=e=>{t.exposed=e||{}};let n;return{get attrs(){return n||(n=_r(t))},slots:t.slots,emit:t.emit,expose:e}}function Sr(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy((0,r.WL)((0,r.Xl)(t.exposed)),{get(e,n){return n in e?e[n]:n in be?be[n](t):void 0},has(t,e){return e in t||e in be}}))}function Er(t,e=!0){return(0,i.mf)(t)?t.displayName||t.name:t.name||e&&t.__name}function Tr(t){return(0,i.mf)(t)&&"__vccOpts"in t}const kr=(t,e)=>(0,r.Fl)(t,e,pr);function Cr(){return null}function Mr(){return null}function Ar(t){0}function Ir(t,e){return null}function Or(){return Pr().slots}function Dr(){return Pr().attrs}function Pr(){const t=ur();return t.setupContext||(t.setupContext=wr(t))}function Lr(t,e){const n=(0,i.kJ)(t)?t.reduce(((t,e)=>(t[e]={},t)),{}):t;for(const r in e){const t=n[r];t?(0,i.kJ)(t)||(0,i.mf)(t)?n[r]={type:t,default:e[r]}:t.default=e[r]:null===t&&(n[r]={default:e[r]})}return n}function Nr(t,e){const n={};for(const r in t)e.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>t[r]});return n}function Rr(t){const e=ur();let n=t();return cr(),(0,i.tI)(n)&&(n=n.catch((t=>{throw lr(e),t}))),[n,()=>lr(e)]}function jr(t,e,n){const r=arguments.length;return 2===r?(0,i.Kn)(e)&&!(0,i.kJ)(e)?Bn(e)?Wn(t,null,[e]):Wn(t,e):Wn(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Bn(n)&&(n=[n]),Wn(t,e,n))}const Fr=Symbol(""),Br=()=>{{const t=ft(Fr);return t}};function zr(){return void 0}function Zr(t,e,n,r){const i=n[r];if(i&&Ur(i,t))return i;const o=e();return o.memo=t.slice(),n[r]=o}function Ur(t,e){const n=t.memo;if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if((0,i.aU)(n[r],e[r]))return!1;return Ln>0&&In&&In.push(t),!0}const Hr="3.2.47",$r={createComponentInstance:ar,setupComponent:gr,renderComponentRoot:G,setCurrentRenderingInstance:z,isVNode:Bn,normalizeVNode:Qn},Gr=246!=n.j?$r:null,Wr=null,Vr=null},49963:function(t,e,n){"use strict";n.r(e),n.d(e,{BaseTransition:function(){return i.P$},Comment:function(){return i.sv},EffectScope:function(){return i.Bj},Fragment:function(){return i.HY},KeepAlive:function(){return i.Ob},ReactiveEffect:function(){return i.qq},Static:function(){return i.qG},Suspense:function(){return i.n4},Teleport:function(){return i.lR},Text:function(){return i.xv},Transition:function(){return H},TransitionGroup:function(){return lt},VueElement:function(){return R},assertNumber:function(){return i.Wu},callWithAsyncErrorHandling:function(){return i.$d},callWithErrorHandling:function(){return i.KU},camelize:function(){return i._A},capitalize:function(){return i.kC},cloneVNode:function(){return i.Ho},compatUtils:function(){return i.ry},computed:function(){return i.Fl},createApp:function(){return $t},createBlock:function(){return i.j4},createCommentVNode:function(){return i.kq},createElementBlock:function(){return i.iD},createElementVNode:function(){return i._},createHydrationRenderer:function(){return i.Eo},createPropsRestProxy:function(){return i.p1},createRenderer:function(){return i.Us},createSSRApp:function(){return Gt},createSlots:function(){return i.Nv},createStaticVNode:function(){return i.uE},createTextVNode:function(){return i.Uk},createVNode:function(){return i.Wm},customRef:function(){return i.ZM},defineAsyncComponent:function(){return i.RC},defineComponent:function(){return i.aZ},defineCustomElement:function(){return P},defineEmits:function(){return i.Bz},defineExpose:function(){return i.WY},defineProps:function(){return i.MW},defineSSRCustomElement:function(){return L},devtools:function(){return i.mW},effect:function(){return i.cE},effectScope:function(){return i.B},getCurrentInstance:function(){return i.FN},getCurrentScope:function(){return i.nZ},getTransitionRawChildren:function(){return i.Q6},guardReactiveProps:function(){return i.F4},h:function(){return i.h},handleError:function(){return i.S3},hydrate:function(){return Ht},initCustomFormatter:function(){return i.Mr},initDirectivesForSSR:function(){return Yt},inject:function(){return i.f3},isMemoSame:function(){return i.nQ},isProxy:function(){return i.X3},isReactive:function(){return i.PG},isReadonly:function(){return i.$y},isRef:function(){return i.dq},isRuntimeOnly:function(){return i.of},isShallow:function(){return i.yT},isVNode:function(){return i.lA},markRaw:function(){return i.Xl},mergeDefaults:function(){return i.u_},mergeProps:function(){return i.dG},nextTick:function(){return i.Y3},normalizeClass:function(){return i.C_},normalizeProps:function(){return i.vs},normalizeStyle:function(){return i.j5},onActivated:function(){return i.dl},onBeforeMount:function(){return i.wF},onBeforeUnmount:function(){return i.Jd},onBeforeUpdate:function(){return i.Xn},onDeactivated:function(){return i.se},onErrorCaptured:function(){return i.d1},onMounted:function(){return i.bv},onRenderTracked:function(){return i.bT},onRenderTriggered:function(){return i.Yq},onScopeDispose:function(){return i.EB},onServerPrefetch:function(){return i.vl},onUnmounted:function(){return i.Ah},onUpdated:function(){return i.ic},openBlock:function(){return i.wg},popScopeId:function(){return i.Cn},provide:function(){return i.JJ},proxyRefs:function(){return i.WL},pushScopeId:function(){return i.dD},queuePostFlushCb:function(){return i.qb},reactive:function(){return i.qj},readonly:function(){return i.OT},ref:function(){return i.iH},registerRuntimeCompiler:function(){return i.Y1},render:function(){return Ut},renderList:function(){return i.Ko},renderSlot:function(){return i.WI},resolveComponent:function(){return i.up},resolveDirective:function(){return i.Q2},resolveDynamicComponent:function(){return i.LL},resolveFilter:function(){return i.eq},resolveTransitionHooks:function(){return i.U2},setBlockTracking:function(){return i.qZ},setDevtoolsHook:function(){return i.ec},setTransitionHooks:function(){return i.nK},shallowReactive:function(){return i.Um},shallowReadonly:function(){return i.YS},shallowRef:function(){return i.XI},ssrContextKey:function(){return i.Uc},ssrUtils:function(){return i.G},stop:function(){return i.sT},toDisplayString:function(){return i.zw},toHandlerKey:function(){return i.hR},toHandlers:function(){return i.mx},toRaw:function(){return i.IU},toRef:function(){return i.Vh},toRefs:function(){return i.BK},transformVNodeArgs:function(){return i.C3},triggerRef:function(){return i.oR},unref:function(){return i.SU},useAttrs:function(){return i.l1},useCssModule:function(){return j},useCssVars:function(){return F},useSSRContext:function(){return i.Zq},useSlots:function(){return i.Rr},useTransitionState:function(){return i.Y8},vModelCheckbox:function(){return yt},vModelDynamic:function(){return Tt},vModelRadio:function(){return xt},vModelSelect:function(){return _t},vModelText:function(){return mt},vShow:function(){return Lt},version:function(){return i.i8},warn:function(){return i.ZK},watch:function(){return i.YP},watchEffect:function(){return i.m0},watchPostEffect:function(){return i.Rh},watchSyncEffect:function(){return i.yX},withAsyncContext:function(){return i.mv},withCtx:function(){return i.w5},withDefaults:function(){return i.b9},withDirectives:function(){return i.wy},withKeys:function(){return Pt},withMemo:function(){return i.MX},withModifiers:function(){return Ot},withScopeId:function(){return i.HX}});var r=n(3577),i=n(66252),o=n(2262);const a="http://www.w3.org/2000/svg",s="undefined"!==typeof document?document:null,u=s&&s.createElement("template"),l={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e?s.createElementNS(a,t):s.createElement(t,n?{is:n}:void 0);return"select"===t&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:t=>s.createTextNode(t),createComment:t=>s.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>s.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,o){const a=n?n.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling)){while(1)if(e.insertBefore(i.cloneNode(!0),n),i===o||!(i=i.nextSibling))break}else{u.innerHTML=r?`<svg>${t}</svg>`:t;const i=u.content;if(r){const t=i.firstChild;while(t.firstChild)i.appendChild(t.firstChild);i.removeChild(t)}e.insertBefore(i,n)}return[a?a.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function c(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),null==e?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function f(t,e,n){const i=t.style,o=(0,r.HD)(n);if(n&&!o){if(e&&!(0,r.HD)(e))for(const t in e)null==n[t]&&d(i,t,"");for(const t in n)d(i,t,n[t])}else{const r=i.display;o?e!==n&&(i.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(i.display=r)}}const h=/\s*!important$/;function d(t,e,n){if((0,r.kJ)(n))n.forEach((n=>d(t,e,n)));else if(null==n&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=v(t,e);h.test(n)?t.setProperty((0,r.rs)(i),n.replace(h,""),"important"):t[i]=n}}const p=["Webkit","Moz","ms"],g={};function v(t,e){const n=g[e];if(n)return n;let i=(0,r._A)(e);if("filter"!==i&&i in t)return g[e]=i;i=(0,r.kC)(i);for(let r=0;r<p.length;r++){const n=p[r]+i;if(n in t)return g[e]=n}return e}const m="http://www.w3.org/1999/xlink";function y(t,e,n,i,o){if(i&&e.startsWith("xlink:"))null==n?t.removeAttributeNS(m,e.slice(6,e.length)):t.setAttributeNS(m,e,n);else{const i=(0,r.Pq)(e);null==n||i&&!(0,r.yA)(n)?t.removeAttribute(e):t.setAttribute(e,i?"":n)}}function b(t,e,n,i,o,a,s){if("innerHTML"===e||"textContent"===e)return i&&s(i,o,a),void(t[e]=null==n?"":n);if("value"===e&&"PROGRESS"!==t.tagName&&!t.tagName.includes("-")){t._value=n;const r=null==n?"":n;return t.value===r&&"OPTION"!==t.tagName||(t.value=r),void(null==n&&t.removeAttribute(e))}let u=!1;if(""===n||null==n){const i=typeof t[e];"boolean"===i?n=(0,r.yA)(n):null==n&&"string"===i?(n="",u=!0):"number"===i&&(n=0,u=!0)}try{t[e]=n}catch(l){0}u&&t.removeAttribute(e)}function x(t,e,n,r){t.addEventListener(e,n,r)}function _(t,e,n,r){t.removeEventListener(e,n,r)}function w(t,e,n,r,i=null){const o=t._vei||(t._vei={}),a=o[e];if(r&&a)a.value=r;else{const[n,s]=E(e);if(r){const a=o[e]=M(r,i);x(t,n,a,s)}else a&&(_(t,n,a,s),o[e]=void 0)}}const S=/(?:Once|Passive|Capture)$/;function E(t){let e;if(S.test(t)){let n;e={};while(n=t.match(S))t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}const n=":"===t[2]?t.slice(3):(0,r.rs)(t.slice(2));return[n,e]}let T=0;const k=Promise.resolve(),C=()=>T||(k.then((()=>T=0)),T=Date.now());function M(t,e){const n=t=>{if(t._vts){if(t._vts<=n.attached)return}else t._vts=Date.now();(0,i.$d)(A(t,n.value),e,5,[t])};return n.value=t,n.attached=C(),n}function A(t,e){if((0,r.kJ)(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t&&t(e)))}return e}const I=/^on[a-z]/,O=(t,e,n,i,o=!1,a,s,u,l)=>{"class"===e?c(t,i,o):"style"===e?f(t,n,i):(0,r.F7)(e)?(0,r.tR)(e)||w(t,e,n,i,s):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):D(t,e,i,o))?b(t,e,i,a,s,u,l):("true-value"===e?t._trueValue=i:"false-value"===e&&(t._falseValue=i),y(t,e,i,o))};function D(t,e,n,i){return i?"innerHTML"===e||"textContent"===e||!!(e in t&&I.test(e)&&(0,r.mf)(n)):"spellcheck"!==e&&"draggable"!==e&&"translate"!==e&&("form"!==e&&(("list"!==e||"INPUT"!==t.tagName)&&(("type"!==e||"TEXTAREA"!==t.tagName)&&((!I.test(e)||!(0,r.HD)(n))&&e in t))))}function P(t,e){const n=(0,i.aZ)(t);class r extends R{constructor(t){super(n,t,e)}}return r.def=n,r}const L=t=>P(t,Ht),N="undefined"!==typeof HTMLElement?HTMLElement:class{};class R extends(246!=n.j?N:null){constructor(t,e={},n){super(),this._def=t,this._props=e,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,(0,i.Y3)((()=>{this._connected||(Ut(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);new MutationObserver((t=>{for(const e of t)this._setAttr(e.attributeName)})).observe(this,{attributes:!0});const t=(t,e=!1)=>{const{props:n,styles:i}=t;let o;if(n&&!(0,r.kJ)(n))for(const a in n){const t=n[a];(t===Number||t&&t.type===Number)&&(a in this._props&&(this._props[a]=(0,r.He)(this._props[a])),(o||(o=Object.create(null)))[(0,r._A)(a)]=!0)}this._numberProps=o,e&&this._resolveProps(t),this._applyStyles(i),this._update()},e=this._def.__asyncLoader;e?e().then((e=>t(e,!0))):t(this._def)}_resolveProps(t){const{props:e}=t,n=(0,r.kJ)(e)?e:Object.keys(e||{});for(const r of Object.keys(this))"_"!==r[0]&&n.includes(r)&&this._setProp(r,this[r],!0,!1);for(const i of n.map(r._A))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(t){this._setProp(i,t)}})}_setAttr(t){let e=this.getAttribute(t);const n=(0,r._A)(t);this._numberProps&&this._numberProps[n]&&(e=(0,r.He)(e)),this._setProp(n,e,!1)}_getProp(t){return this._props[t]}_setProp(t,e,n=!0,i=!0){e!==this._props[t]&&(this._props[t]=e,i&&this._instance&&this._update(),n&&(!0===e?this.setAttribute((0,r.rs)(t),""):"string"===typeof e||"number"===typeof e?this.setAttribute((0,r.rs)(t),e+""):e||this.removeAttribute((0,r.rs)(t))))}_update(){Ut(this._createVNode(),this.shadowRoot)}_createVNode(){const t=(0,i.Wm)(this._def,(0,r.l7)({},this._props));return this._instance||(t.ce=t=>{this._instance=t,t.isCE=!0;const e=(t,e)=>{this.dispatchEvent(new CustomEvent(t,{detail:e}))};t.emit=(t,...n)=>{e(t,n),(0,r.rs)(t)!==t&&e((0,r.rs)(t),n)};let n=this;while(n=n&&(n.parentNode||n.host))if(n instanceof R){t.parent=n._instance,t.provides=n._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach((t=>{const e=document.createElement("style");e.textContent=t,this.shadowRoot.appendChild(e)}))}}function j(t="$style"){{const e=(0,i.FN)();if(!e)return r.kT;const n=e.type.__cssModules;if(!n)return r.kT;const o=n[t];return o||r.kT}}function F(t){const e=(0,i.FN)();if(!e)return;const n=e.ut=(n=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach((t=>z(t,n)))},r=()=>{const r=t(e.proxy);B(e.subTree,r),n(r)};(0,i.Rh)(r),(0,i.bv)((()=>{const t=new MutationObserver(r);t.observe(e.subTree.el.parentNode,{childList:!0}),(0,i.Ah)((()=>t.disconnect()))}))}function B(t,e){if(128&t.shapeFlag){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{B(n.activeBranch,e)}))}while(t.component)t=t.component.subTree;if(1&t.shapeFlag&&t.el)z(t.el,e);else if(t.type===i.HY)t.children.forEach((t=>B(t,e)));else if(t.type===i.qG){let{el:n,anchor:r}=t;while(n){if(z(n,e),n===r)break;n=n.nextSibling}}}function z(t,e){if(1===t.nodeType){const n=t.style;for(const t in e)n.setProperty(`--${t}`,e[t])}}const Z="transition",U="animation",H=(t,{slots:e})=>(0,i.h)(i.P$,Y(t),e);H.displayName="Transition";const $={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},G=H.props=(0,r.l7)({},i.P$.props,$),W=(t,e=[])=>{(0,r.kJ)(t)?t.forEach((t=>t(...e))):t&&t(...e)},V=t=>!!t&&((0,r.kJ)(t)?t.some((t=>t.length>1)):t.length>1);function Y(t){const e={};for(const r in t)r in $||(e[r]=t[r]);if(!1===t.css)return e;const{name:n="v",type:i,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:u=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:c=s,appearToClass:f=u,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=t,g=X(o),v=g&&g[0],m=g&&g[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:x,onLeave:_,onLeaveCancelled:w,onBeforeAppear:S=y,onAppear:E=b,onAppearCancelled:T=x}=e,k=(t,e,n)=>{J(t,e?f:u),J(t,e?c:s),n&&n()},C=(t,e)=>{t._isLeaving=!1,J(t,h),J(t,p),J(t,d),e&&e()},M=t=>(e,n)=>{const r=t?E:b,o=()=>k(e,t,n);W(r,[e,o]),Q((()=>{J(e,t?l:a),K(e,t?f:u),V(r)||et(e,i,v,o)}))};return(0,r.l7)(e,{onBeforeEnter(t){W(y,[t]),K(t,a),K(t,s)},onBeforeAppear(t){W(S,[t]),K(t,l),K(t,c)},onEnter:M(!1),onAppear:M(!0),onLeave(t,e){t._isLeaving=!0;const n=()=>C(t,e);K(t,h),ot(),K(t,d),Q((()=>{t._isLeaving&&(J(t,h),K(t,p),V(_)||et(t,i,m,n))})),W(_,[t,n])},onEnterCancelled(t){k(t,!1),W(x,[t])},onAppearCancelled(t){k(t,!0),W(T,[t])},onLeaveCancelled(t){C(t),W(w,[t])}})}function X(t){if(null==t)return null;if((0,r.Kn)(t))return[q(t.enter),q(t.leave)];{const e=q(t);return[e,e]}}function q(t){const e=(0,r.He)(t);return e}function K(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.add(e))),(t._vtc||(t._vtc=new Set)).add(e)}function J(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.remove(e)));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function Q(t){requestAnimationFrame((()=>{requestAnimationFrame(t)}))}let tt=0;function et(t,e,n,r){const i=t._endId=++tt,o=()=>{i===t._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:u}=nt(t,e);if(!a)return r();const l=a+"end";let c=0;const f=()=>{t.removeEventListener(l,h),o()},h=e=>{e.target===t&&++c>=u&&f()};setTimeout((()=>{c<u&&f()}),s+1),t.addEventListener(l,h)}function nt(t,e){const n=window.getComputedStyle(t),r=t=>(n[t]||"").split(", "),i=r(`${Z}Delay`),o=r(`${Z}Duration`),a=rt(i,o),s=r(`${U}Delay`),u=r(`${U}Duration`),l=rt(s,u);let c=null,f=0,h=0;e===Z?a>0&&(c=Z,f=a,h=o.length):e===U?l>0&&(c=U,f=l,h=u.length):(f=Math.max(a,l),c=f>0?a>l?Z:U:null,h=c?c===Z?o.length:u.length:0);const d=c===Z&&/\b(transform|all)(,|$)/.test(r(`${Z}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:d}}function rt(t,e){while(t.length<e.length)t=t.concat(t);return Math.max(...e.map(((e,n)=>it(e)+it(t[n]))))}function it(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function ot(){return document.body.offsetHeight}const at=new WeakMap,st=new WeakMap,ut={name:"TransitionGroup",props:(0,r.l7)({},G,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=(0,i.FN)(),r=(0,i.Y8)();let a,s;return(0,i.ic)((()=>{if(!a.length)return;const e=t.moveClass||`${t.name||"v"}-move`;if(!dt(a[0].el,n.vnode.el,e))return;a.forEach(ct),a.forEach(ft);const r=a.filter(ht);ot(),r.forEach((t=>{const n=t.el,r=n.style;K(n,e),r.transform=r.webkitTransform=r.transitionDuration="";const i=n._moveCb=t=>{t&&t.target!==n||t&&!/transform$/.test(t.propertyName)||(n.removeEventListener("transitionend",i),n._moveCb=null,J(n,e))};n.addEventListener("transitionend",i)}))})),()=>{const u=(0,o.IU)(t),l=Y(u);let c=u.tag||i.HY;a=s,s=e.default?(0,i.Q6)(e.default()):[];for(let t=0;t<s.length;t++){const e=s[t];null!=e.key&&(0,i.nK)(e,(0,i.U2)(e,l,r,n))}if(a)for(let t=0;t<a.length;t++){const e=a[t];(0,i.nK)(e,(0,i.U2)(e,l,r,n)),at.set(e,e.el.getBoundingClientRect())}return(0,i.Wm)(c,null,s)}}};ut.props;const lt=246!=n.j?ut:null;function ct(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function ft(t){st.set(t,t.el.getBoundingClientRect())}function ht(t){const e=at.get(t),n=st.get(t),r=e.left-n.left,i=e.top-n.top;if(r||i){const e=t.el.style;return e.transform=e.webkitTransform=`translate(${r}px,${i}px)`,e.transitionDuration="0s",t}}function dt(t,e,n){const r=t.cloneNode();t._vtc&&t._vtc.forEach((t=>{t.split(/\s+/).forEach((t=>t&&r.classList.remove(t)))})),n.split(/\s+/).forEach((t=>t&&r.classList.add(t))),r.style.display="none";const i=1===e.nodeType?e:e.parentNode;i.appendChild(r);const{hasTransform:o}=nt(r);return i.removeChild(r),o}const pt=t=>{const e=t.props["onUpdate:modelValue"]||!1;return(0,r.kJ)(e)?t=>(0,r.ir)(e,t):e};function gt(t){t.target.composing=!0}function vt(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const mt={created(t,{modifiers:{lazy:e,trim:n,number:i}},o){t._assign=pt(o);const a=i||o.props&&"number"===o.props.type;x(t,e?"change":"input",(e=>{if(e.target.composing)return;let i=t.value;n&&(i=i.trim()),a&&(i=(0,r.h5)(i)),t._assign(i)})),n&&x(t,"change",(()=>{t.value=t.value.trim()})),e||(x(t,"compositionstart",gt),x(t,"compositionend",vt),x(t,"change",vt))},mounted(t,{value:e}){t.value=null==e?"":e},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:i,number:o}},a){if(t._assign=pt(a),t.composing)return;if(document.activeElement===t&&"range"!==t.type){if(n)return;if(i&&t.value.trim()===e)return;if((o||"number"===t.type)&&(0,r.h5)(t.value)===e)return}const s=null==e?"":e;t.value!==s&&(t.value=s)}},yt={deep:!0,created(t,e,n){t._assign=pt(n),x(t,"change",(()=>{const e=t._modelValue,n=St(t),i=t.checked,o=t._assign;if((0,r.kJ)(e)){const t=(0,r.hq)(e,n),a=-1!==t;if(i&&!a)o(e.concat(n));else if(!i&&a){const n=[...e];n.splice(t,1),o(n)}}else if((0,r.DM)(e)){const t=new Set(e);i?t.add(n):t.delete(n),o(t)}else o(Et(t,i))}))},mounted:bt,beforeUpdate(t,e,n){t._assign=pt(n),bt(t,e,n)}};function bt(t,{value:e,oldValue:n},i){t._modelValue=e,(0,r.kJ)(e)?t.checked=(0,r.hq)(e,i.props.value)>-1:(0,r.DM)(e)?t.checked=e.has(i.props.value):e!==n&&(t.checked=(0,r.WV)(e,Et(t,!0)))}const xt={created(t,{value:e},n){t.checked=(0,r.WV)(e,n.props.value),t._assign=pt(n),x(t,"change",(()=>{t._assign(St(t))}))},beforeUpdate(t,{value:e,oldValue:n},i){t._assign=pt(i),e!==n&&(t.checked=(0,r.WV)(e,i.props.value))}},_t={deep:!0,created(t,{value:e,modifiers:{number:n}},i){const o=(0,r.DM)(e);x(t,"change",(()=>{const e=Array.prototype.filter.call(t.options,(t=>t.selected)).map((t=>n?(0,r.h5)(St(t)):St(t)));t._assign(t.multiple?o?new Set(e):e:e[0])})),t._assign=pt(i)},mounted(t,{value:e}){wt(t,e)},beforeUpdate(t,e,n){t._assign=pt(n)},updated(t,{value:e}){wt(t,e)}};function wt(t,e){const n=t.multiple;if(!n||(0,r.kJ)(e)||(0,r.DM)(e)){for(let i=0,o=t.options.length;i<o;i++){const o=t.options[i],a=St(o);if(n)(0,r.kJ)(e)?o.selected=(0,r.hq)(e,a)>-1:o.selected=e.has(a);else if((0,r.WV)(St(o),e))return void(t.selectedIndex!==i&&(t.selectedIndex=i))}n||-1===t.selectedIndex||(t.selectedIndex=-1)}}function St(t){return"_value"in t?t._value:t.value}function Et(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const Tt={created(t,e,n){Ct(t,e,n,null,"created")},mounted(t,e,n){Ct(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){Ct(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){Ct(t,e,n,r,"updated")}};function kt(t,e){switch(t){case"SELECT":return _t;case"TEXTAREA":return mt;default:switch(e){case"checkbox":return yt;case"radio":return xt;default:return mt}}}function Ct(t,e,n,r,i){const o=kt(t.tagName,n.props&&n.props.type),a=o[i];a&&a(t,e,n,r)}function Mt(){mt.getSSRProps=({value:t})=>({value:t}),xt.getSSRProps=({value:t},e)=>{if(e.props&&(0,r.WV)(e.props.value,t))return{checked:!0}},yt.getSSRProps=({value:t},e)=>{if((0,r.kJ)(t)){if(e.props&&(0,r.hq)(t,e.props.value)>-1)return{checked:!0}}else if((0,r.DM)(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},Tt.getSSRProps=(t,e)=>{if("string"!==typeof e.type)return;const n=kt(e.type.toUpperCase(),e.props&&e.props.type);return n.getSSRProps?n.getSSRProps(t,e):void 0}}const At=["ctrl","shift","alt","meta"],It={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&0!==t.button,middle:t=>"button"in t&&1!==t.button,right:t=>"button"in t&&2!==t.button,exact:(t,e)=>At.some((n=>t[`${n}Key`]&&!e.includes(n)))},Ot=(t,e)=>(n,...r)=>{for(let t=0;t<e.length;t++){const r=It[e[t]];if(r&&r(n,e))return}return t(n,...r)},Dt={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Pt=(t,e)=>n=>{if(!("key"in n))return;const i=(0,r.rs)(n.key);return e.some((t=>t===i||Dt[t]===i))?t(n):void 0},Lt={beforeMount(t,{value:e},{transition:n}){t._vod="none"===t.style.display?"":t.style.display,n&&e?n.beforeEnter(t):Nt(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!==!n&&(r?e?(r.beforeEnter(t),Nt(t,!0),r.enter(t)):r.leave(t,(()=>{Nt(t,!1)})):Nt(t,e))},beforeUnmount(t,{value:e}){Nt(t,e)}};function Nt(t,e){t.style.display=e?t._vod:"none"}function Rt(){Lt.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const jt=(0,r.l7)({patchProp:O},l);let Ft,Bt=!1;function zt(){return Ft||(Ft=(0,i.Us)(jt))}function Zt(){return Ft=Bt?Ft:(0,i.Eo)(jt),Bt=!0,Ft}const Ut=(...t)=>{zt().render(...t)},Ht=(...t)=>{Zt().hydrate(...t)},$t=(...t)=>{const e=zt().createApp(...t);const{mount:n}=e;return e.mount=t=>{const i=Wt(t);if(!i)return;const o=e._component;(0,r.mf)(o)||o.render||o.template||(o.template=i.innerHTML),i.innerHTML="";const a=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},e},Gt=(...t)=>{const e=Zt().createApp(...t);const{mount:n}=e;return e.mount=t=>{const e=Wt(t);if(e)return n(e,!0,e instanceof SVGElement)},e};function Wt(t){if((0,r.HD)(t)){const e=document.querySelector(t);return e}return t}let Vt=!1;const Yt=()=>{Vt||(Vt=!0,Mt(),Rt())}},3577:function(t,e,n){"use strict";function r(t,e){const n=Object.create(null),r=t.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}n.d(e,{C_:function(){return p},DM:function(){return H},E9:function(){return mt},F7:function(){return N},Gg:function(){return nt},HD:function(){return V},He:function(){return gt},Kj:function(){return G},Kn:function(){return X},Kp:function(){return u},NO:function(){return P},Nj:function(){return dt},Od:function(){return F},PO:function(){return tt},Pq:function(){return S},RI:function(){return z},S0:function(){return et},W7:function(){return Q},WB:function(){return _},WV:function(){return k},Z6:function(){return O},_A:function(){return at},_N:function(){return U},aN:function(){return x},aU:function(){return ft},dG:function(){return D},e1:function(){return a},eS:function(){return b},fY:function(){return r},h5:function(){return pt},hR:function(){return ct},hq:function(){return C},ir:function(){return ht},j5:function(){return l},kC:function(){return lt},kJ:function(){return Z},kT:function(){return I},l7:function(){return j},m:function(){return i},mf:function(){return W},rs:function(){return ut},tI:function(){return q},tR:function(){return R},vs:function(){return g},wh:function(){return rt},yA:function(){return E},yL:function(){return d},yk:function(){return Y},zw:function(){return M}});const i={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"HYDRATE_EVENTS",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},o=246!=n.j?"Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt":null,a=246!=n.j?r(o):null,s=2;function u(t,e=0,n=t.length){let r=t.split(/(\r?\n)/);const i=r.filter(((t,e)=>e%2===1));r=r.filter(((t,e)=>e%2===0));let o=0;const a=[];for(let u=0;u<r.length;u++)if(o+=r[u].length+(i[u]&&i[u].length||0),o>=e){for(let t=u-s;t<=u+s||n>o;t++){if(t<0||t>=r.length)continue;const s=t+1;a.push(`${s}${" ".repeat(Math.max(3-String(s).length,0))}|  ${r[t]}`);const l=r[t].length,c=i[t]&&i[t].length||0;if(t===u){const t=e-(o-(l+c)),r=Math.max(1,n>o?l-t:n-e);a.push("   |  "+" ".repeat(t)+"^".repeat(r))}else if(t>u){if(n>o){const t=Math.max(Math.min(n-o,l),1);a.push("   |  "+"^".repeat(t))}o+=l+c}}break}return a.join("\n")}function l(t){if(Z(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=V(r)?d(r):l(r);if(i)for(const t in i)e[t]=i[t]}return e}return V(t)||X(t)?t:void 0}const c=/;(?![^(]*\))/g,f=/:([^]+)/,h=/\/\*.*?\*\//gs;function d(t){const e={};return t.replace(h,"").split(c).forEach((t=>{if(t){const n=t.split(f);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function p(t){let e="";if(V(t))e=t;else if(Z(t))for(let n=0;n<t.length;n++){const r=p(t[n]);r&&(e+=r+" ")}else if(X(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function g(t){if(!t)return null;let{class:e,style:n}=t;return e&&!V(e)&&(t.class=p(e)),n&&(t.style=l(n)),t}const v=246!=n.j?"html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot":null,m=246!=n.j?"svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view":null,y="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",b=246!=n.j?r(v):null,x=246!=n.j?r(m):null,_=246!=n.j?r(y):null,w="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",S=246!=n.j?r(w):null;function E(t){return!!t||""===t}function T(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=k(t[r],e[r]);return n}function k(t,e){if(t===e)return!0;let n=$(t),r=$(e);if(n||r)return!(!n||!r)&&t.getTime()===e.getTime();if(n=Y(t),r=Y(e),n||r)return t===e;if(n=Z(t),r=Z(e),n||r)return!(!n||!r)&&T(t,e);if(n=X(t),r=X(e),n||r){if(!n||!r)return!1;const i=Object.keys(t).length,o=Object.keys(e).length;if(i!==o)return!1;for(const n in t){const r=t.hasOwnProperty(n),i=e.hasOwnProperty(n);if(r&&!i||!r&&i||!k(t[n],e[n]))return!1}}return String(t)===String(e)}function C(t,e){return t.findIndex((t=>k(t,e)))}const M=t=>V(t)?t:null==t?"":Z(t)||X(t)&&(t.toString===K||!W(t.toString))?JSON.stringify(t,A,2):String(t),A=(t,e)=>e&&e.__v_isRef?A(t,e.value):U(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,n])=>(t[`${e} =>`]=n,t)),{})}:H(e)?{[`Set(${e.size})`]:[...e.values()]}:!X(e)||Z(e)||tt(e)?e:String(e),I={},O=[],D=()=>{},P=()=>!1,L=/^on[^a-z]/,N=t=>L.test(t),R=t=>t.startsWith("onUpdate:"),j=Object.assign,F=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},B=Object.prototype.hasOwnProperty,z=(t,e)=>B.call(t,e),Z=Array.isArray,U=t=>"[object Map]"===J(t),H=t=>"[object Set]"===J(t),$=t=>"[object Date]"===J(t),G=t=>"[object RegExp]"===J(t),W=t=>"function"===typeof t,V=t=>"string"===typeof t,Y=t=>"symbol"===typeof t,X=t=>null!==t&&"object"===typeof t,q=t=>X(t)&&W(t.then)&&W(t.catch),K=Object.prototype.toString,J=t=>K.call(t),Q=t=>J(t).slice(8,-1),tt=t=>"[object Object]"===J(t),et=t=>V(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,nt=246!=n.j?r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"):null,rt=246!=n.j?r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"):null,it=t=>{const e=Object.create(null);return n=>{const r=e[n];return r||(e[n]=t(n))}},ot=/-(\w)/g,at=it((t=>t.replace(ot,((t,e)=>e?e.toUpperCase():"")))),st=/\B([A-Z])/g,ut=it((t=>t.replace(st,"-$1").toLowerCase())),lt=it((t=>t.charAt(0).toUpperCase()+t.slice(1))),ct=it((t=>t?`on${lt(t)}`:"")),ft=(t,e)=>!Object.is(t,e),ht=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},dt=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},pt=t=>{const e=parseFloat(t);return isNaN(e)?t:e},gt=t=>{const e=V(t)?Number(t):NaN;return isNaN(e)?t:e};let vt;const mt=()=>vt||(vt="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{})},21297:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r=n(2262),i=n(66252);function o(t){return-1!==[null,void 0,!1].indexOf(t)}function a(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function s(t){var e={exports:{}};return t(e,e.exports),e.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self&&self;var u=s((function(t,e){t.exports=function(){var t=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function e(t){return t.split("").reverse().join("")}function n(t,e){return t.substring(0,e.length)===e}function r(t,e){return t.slice(-1*e.length)===e}function i(t,e,n){if((t[e]||t[n])&&t[e]===t[n])throw new Error(e)}function o(t){return"number"==typeof t&&isFinite(t)}function a(t,e){return t=t.toString().split("e"),(+((t=(t=Math.round(+(t[0]+"e"+(t[1]?+t[1]+e:e)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]-e:-e))).toFixed(e)}function s(t,n,r,i,s,u,l,c,f,h,d,p){var g,v,m,y=p,b="",x="";return u&&(p=u(p)),!!o(p)&&(!1!==t&&0===parseFloat(p.toFixed(t))&&(p=0),p<0&&(g=!0,p=Math.abs(p)),!1!==t&&(p=a(p,t)),-1!==(p=p.toString()).indexOf(".")?(m=(v=p.split("."))[0],r&&(b=r+v[1])):m=p,n&&(m=e(m).match(/.{1,3}/g),m=e(m.join(e(n)))),g&&c&&(x+=c),i&&(x+=i),g&&f&&(x+=f),x+=m,x+=b,s&&(x+=s),h&&(x=h(x,y)),x)}function u(t,e,i,a,s,u,l,c,f,h,d,p){var g,v="";return d&&(p=d(p)),!(!p||"string"!=typeof p)&&(c&&n(p,c)&&(p=p.replace(c,""),g=!0),a&&n(p,a)&&(p=p.replace(a,"")),f&&n(p,f)&&(p=p.replace(f,""),g=!0),s&&r(p,s)&&(p=p.slice(0,-1*s.length)),e&&(p=p.split(e).join("")),i&&(p=p.replace(i,".")),g&&(v+="-"),""!==(v=(v+=p).replace(/[^0-9\.\-.]/g,""))&&(v=Number(v),l&&(v=l(v)),!!o(v)&&v))}function l(e){var n,r,o,a={};for(void 0===e.suffix&&(e.suffix=e.postfix),n=0;n<t.length;n+=1)if(void 0===(o=e[r=t[n]]))"negative"!==r||a.negativeBefore?"mark"===r&&"."!==a.thousand?a[r]=".":a[r]=!1:a[r]="-";else if("decimals"===r){if(!(o>=0&&o<8))throw new Error(r);a[r]=o}else if("encoder"===r||"decoder"===r||"edit"===r||"undo"===r){if("function"!=typeof o)throw new Error(r);a[r]=o}else{if("string"!=typeof o)throw new Error(r);a[r]=o}return i(a,"mark","thousand"),i(a,"prefix","negative"),i(a,"prefix","negativeBefore"),a}function c(e,n,r){var i,o=[];for(i=0;i<t.length;i+=1)o.push(e[t[i]]);return o.push(r),n.apply("",o)}function f(t){if(!(this instanceof f))return new f(t);"object"==typeof t&&(t=l(t),this.to=function(e){return c(t,s,e)},this.from=function(e){return c(t,u,e)})}return f}()})),l=a(s((function(t,e){!function(t){function e(t){return n(t)&&"function"==typeof t.from}function n(t){return"object"==typeof t&&"function"==typeof t.to}function r(t){t.parentElement.removeChild(t)}function i(t){return null!=t}function o(t){t.preventDefault()}function a(t){return t.filter((function(t){return!this[t]&&(this[t]=!0)}),{})}function s(t,e){return Math.round(t/e)*e}function u(t,e){var n=t.getBoundingClientRect(),r=t.ownerDocument,i=r.documentElement,o=m(r);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(o.x=0),e?n.top+o.y-i.clientTop:n.left+o.x-i.clientLeft}function l(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function c(t,e,n){n>0&&(p(t,e),setTimeout((function(){g(t,e)}),n))}function f(t){return Math.max(Math.min(t,100),0)}function h(t){return Array.isArray(t)?t:[t]}function d(t){var e=(t=String(t)).split(".");return e.length>1?e[1].length:0}function p(t,e){t.classList&&!/\s/.test(e)?t.classList.add(e):t.className+=" "+e}function g(t,e){t.classList&&!/\s/.test(e)?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function v(t,e){return t.classList?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)}function m(t){var e=void 0!==window.pageXOffset,n="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:n?t.documentElement.scrollLeft:t.body.scrollLeft,y:e?window.pageYOffset:n?t.documentElement.scrollTop:t.body.scrollTop}}function y(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function b(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}function x(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function _(t,e){return 100/(e-t)}function w(t,e,n){return 100*e/(t[n+1]-t[n])}function S(t,e){return w(t,t[0]<0?e+Math.abs(t[0]):e-t[0],0)}function E(t,e){return e*(t[1]-t[0])/100+t[0]}function T(t,e){for(var n=1;t>=e[n];)n+=1;return n}function k(t,e,n){if(n>=t.slice(-1)[0])return 100;var r=T(n,t),i=t[r-1],o=t[r],a=e[r-1],s=e[r];return a+S([i,o],n)/_(a,s)}function C(t,e,n){if(n>=100)return t.slice(-1)[0];var r=T(n,e),i=t[r-1],o=t[r],a=e[r-1];return E([i,o],(n-a)*_(a,e[r]))}function M(t,e,n,r){if(100===r)return r;var i=T(r,t),o=t[i-1],a=t[i];return n?r-o>(a-o)/2?a:o:e[i-1]?t[i-1]+s(r-t[i-1],e[i-1]):r}var A,I;t.PipsMode=void 0,(I=t.PipsMode||(t.PipsMode={})).Range="range",I.Steps="steps",I.Positions="positions",I.Count="count",I.Values="values",t.PipsType=void 0,(A=t.PipsType||(t.PipsType={}))[A.None=-1]="None",A[A.NoValue=0]="NoValue",A[A.LargeValue=1]="LargeValue",A[A.SmallValue=2]="SmallValue";var O=function(){function t(t,e,n){var r;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=e;var i=[];for(Object.keys(t).forEach((function(e){i.push([h(t[e]),e])})),i.sort((function(t,e){return t[0][0]-e[0][0]})),r=0;r<i.length;r++)this.handleEntryPoint(i[r][1],i[r][0]);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)this.handleStepPoint(r,this.xNumSteps[r])}return t.prototype.getDistance=function(t){for(var e=[],n=0;n<this.xNumSteps.length-1;n++)e[n]=w(this.xVal,t,n);return e},t.prototype.getAbsoluteDistance=function(t,e,n){var r,i=0;if(t<this.xPct[this.xPct.length-1])for(;t>this.xPct[i+1];)i++;else t===this.xPct[this.xPct.length-1]&&(i=this.xPct.length-2);n||t!==this.xPct[i+1]||i++,null===e&&(e=[]);var o=1,a=e[i],s=0,u=0,l=0,c=0;for(r=n?(t-this.xPct[i])/(this.xPct[i+1]-this.xPct[i]):(this.xPct[i+1]-t)/(this.xPct[i+1]-this.xPct[i]);a>0;)s=this.xPct[i+1+c]-this.xPct[i+c],e[i+c]*o+100-100*r>100?(u=s*r,o=(a-100*r)/e[i+c],r=1):(u=e[i+c]*s/100*o,o=0),n?(l-=u,this.xPct.length+c>=1&&c--):(l+=u,this.xPct.length-c>=1&&c++),a=e[i+c]*o;return t+l},t.prototype.toStepping=function(t){return k(this.xVal,this.xPct,t)},t.prototype.fromStepping=function(t){return C(this.xVal,this.xPct,t)},t.prototype.getStep=function(t){return M(this.xPct,this.xSteps,this.snap,t)},t.prototype.getDefaultStep=function(t,e,n){var r=T(t,this.xPct);return(100===t||e&&t===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/n},t.prototype.getNearbySteps=function(t){var e=T(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e],step:this.xNumSteps[e],highestStep:this.xHighestCompleteStep[e]}}},t.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(d);return Math.max.apply(null,t)},t.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},t.prototype.convert=function(t){return this.getStep(this.toStepping(t))},t.prototype.handleEntryPoint=function(t,e){var n;if(!l(n="min"===t?0:"max"===t?100:parseFloat(t))||!l(e[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(e[0]);var r=Number(e[1]);n?this.xSteps.push(!isNaN(r)&&r):isNaN(r)||(this.xSteps[0]=r),this.xHighestCompleteStep.push(0)},t.prototype.handleStepPoint=function(t,e){if(e)if(this.xVal[t]!==this.xVal[t+1]){this.xSteps[t]=w([this.xVal[t],this.xVal[t+1]],e,0)/_(this.xPct[t],this.xPct[t+1]);var n=(this.xVal[t+1]-this.xVal[t])/this.xNumSteps[t],r=Math.ceil(Number(n.toFixed(3))-1),i=this.xVal[t]+this.xNumSteps[t]*r;this.xHighestCompleteStep[t]=i}else this.xSteps[t]=this.xHighestCompleteStep[t]=this.xVal[t]},t}(),D={to:function(t){return void 0===t?"":t.toFixed(2)},from:Number},P={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},L={tooltips:".__tooltips",aria:".__aria"};function N(t,e){if(!l(e))throw new Error("noUiSlider: 'step' is not numeric.");t.singleStep=e}function R(t,e){if(!l(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");t.keyboardPageMultiplier=e}function j(t,e){if(!l(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");t.keyboardMultiplier=e}function F(t,e){if(!l(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");t.keyboardDefaultStep=e}function B(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");t.spectrum=new O(e,t.snap||!1,t.singleStep)}function z(t,e){if(e=h(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");t.handles=e.length,t.start=e}function Z(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'snap' option must be a boolean.");t.snap=e}function U(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'animate' option must be a boolean.");t.animate=e}function H(t,e){if("number"!=typeof e)throw new Error("noUiSlider: 'animationDuration' option must be a number.");t.animationDuration=e}function $(t,e){var n,r=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(n=1;n<t.handles;n++)r.push(e);r.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");r=e}t.connect=r}function G(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function W(t,e){if(!l(e))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==e&&(t.margin=t.spectrum.getDistance(e))}function V(t,e){if(!l(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(t.limit=t.spectrum.getDistance(e),!t.limit||t.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function Y(t,e){var n;if(!l(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&2!==e.length&&!l(e[0])&&!l(e[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==e){for(Array.isArray(e)||(e=[e,e]),t.padding=[t.spectrum.getDistance(e[0]),t.spectrum.getDistance(e[1])],n=0;n<t.spectrum.xNumSteps.length-1;n++)if(t.padding[0][n]<0||t.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var r=e[0]+e[1],i=t.spectrum.xVal[0];if(r/(t.spectrum.xVal[t.spectrum.xVal.length-1]-i)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function X(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function q(t,e){if("string"!=typeof e)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=e.indexOf("tap")>=0,r=e.indexOf("drag")>=0,i=e.indexOf("fixed")>=0,o=e.indexOf("snap")>=0,a=e.indexOf("hover")>=0,s=e.indexOf("unconstrained")>=0,u=e.indexOf("drag-all")>=0,l=e.indexOf("smooth-steps")>=0;if(i){if(2!==t.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");W(t,t.start[1]-t.start[0])}if(s&&(t.margin||t.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:n||o,drag:r,dragAll:u,smoothSteps:l,fixed:i,snap:o,hover:a,unconstrained:s}}function K(t,e){if(!1!==e)if(!0===e||n(e)){t.tooltips=[];for(var r=0;r<t.handles;r++)t.tooltips.push(e)}else{if((e=h(e)).length!==t.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach((function(t){if("boolean"!=typeof t&&!n(t))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")})),t.tooltips=e}}function J(t,e){if(e.length!==t.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");t.handleAttributes=e}function Q(t,e){if(!n(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");t.ariaFormat=e}function tt(t,n){if(!e(n))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");t.format=n}function et(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");t.keyboardSupport=e}function nt(t,e){t.documentElement=e}function rt(t,e){if("string"!=typeof e&&!1!==e)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function it(t,e){if("object"!=typeof e)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof t.cssPrefix?(t.cssClasses={},Object.keys(e).forEach((function(n){t.cssClasses[n]=t.cssPrefix+e[n]}))):t.cssClasses=e}function ot(t){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:D,format:D},n={step:{r:!1,t:N},keyboardPageMultiplier:{r:!1,t:R},keyboardMultiplier:{r:!1,t:j},keyboardDefaultStep:{r:!1,t:F},start:{r:!0,t:z},connect:{r:!0,t:$},direction:{r:!0,t:X},snap:{r:!1,t:Z},animate:{r:!1,t:U},animationDuration:{r:!1,t:H},range:{r:!0,t:B},orientation:{r:!1,t:G},margin:{r:!1,t:W},limit:{r:!1,t:V},padding:{r:!1,t:Y},behaviour:{r:!0,t:q},ariaFormat:{r:!1,t:Q},format:{r:!1,t:tt},tooltips:{r:!1,t:K},keyboardSupport:{r:!0,t:et},documentElement:{r:!1,t:nt},cssPrefix:{r:!0,t:rt},cssClasses:{r:!0,t:it},handleAttributes:{r:!1,t:J}},r={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:P,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(n).forEach((function(o){if(i(t[o])||void 0!==r[o])n[o].t(e,i(t[o])?t[o]:r[o]);else if(n[o].r)throw new Error("noUiSlider: '"+o+"' is required.")})),e.pips=t.pips;var o=document.createElement("div"),a=void 0!==o.style.msTransform,s=void 0!==o.style.transform;e.transformRule=s?"transform":a?"msTransform":"webkitTransform";var u=[["left","top"],["right","bottom"]];return e.style=u[e.dir][e.ort],e}function at(e,n,s){var l,d,_,w,S,E=y(),T=x()&&b(),k=e,C=n.spectrum,M=[],A=[],I=[],O=0,D={},P=e.ownerDocument,N=n.documentElement||P.documentElement,R=P.body,j="rtl"===P.dir||1===n.ort?0:100;function F(t,e){var n=P.createElement("div");return e&&p(n,e),t.appendChild(n),n}function B(t,e){var r=F(t,n.cssClasses.origin),i=F(r,n.cssClasses.handle);if(F(i,n.cssClasses.touchArea),i.setAttribute("data-handle",String(e)),n.keyboardSupport&&(i.setAttribute("tabindex","0"),i.addEventListener("keydown",(function(t){return dt(t,e)}))),void 0!==n.handleAttributes){var o=n.handleAttributes[e];Object.keys(o).forEach((function(t){i.setAttribute(t,o[t])}))}return i.setAttribute("role","slider"),i.setAttribute("aria-orientation",n.ort?"vertical":"horizontal"),0===e?p(i,n.cssClasses.handleLower):e===n.handles-1&&p(i,n.cssClasses.handleUpper),r}function z(t,e){return!!e&&F(t,n.cssClasses.connect)}function Z(t,e){var r=F(e,n.cssClasses.connects);d=[],(_=[]).push(z(r,t[0]));for(var i=0;i<n.handles;i++)d.push(B(e,i)),I[i]=i,_.push(z(r,t[i+1]))}function U(t){return p(t,n.cssClasses.target),0===n.dir?p(t,n.cssClasses.ltr):p(t,n.cssClasses.rtl),0===n.ort?p(t,n.cssClasses.horizontal):p(t,n.cssClasses.vertical),p(t,"rtl"===getComputedStyle(t).direction?n.cssClasses.textDirectionRtl:n.cssClasses.textDirectionLtr),F(t,n.cssClasses.base)}function H(t,e){return!(!n.tooltips||!n.tooltips[e])&&F(t.firstChild,n.cssClasses.tooltip)}function $(){return k.hasAttribute("disabled")}function G(t){return d[t].hasAttribute("disabled")}function W(){S&&(mt("update"+L.tooltips),S.forEach((function(t){t&&r(t)})),S=null)}function V(){W(),S=d.map(H),gt("update"+L.tooltips,(function(t,e,r){if(S&&n.tooltips&&!1!==S[e]){var i=t[e];!0!==n.tooltips[e]&&(i=n.tooltips[e].to(r[e])),S[e].innerHTML=i}}))}function Y(){mt("update"+L.aria),gt("update"+L.aria,(function(t,e,r,i,o){I.forEach((function(t){var e=d[t],i=bt(A,t,0,!0,!0,!0),a=bt(A,t,100,!0,!0,!0),s=o[t],u=String(n.ariaFormat.to(r[t]));i=C.fromStepping(i).toFixed(1),a=C.fromStepping(a).toFixed(1),s=C.fromStepping(s).toFixed(1),e.children[0].setAttribute("aria-valuemin",i),e.children[0].setAttribute("aria-valuemax",a),e.children[0].setAttribute("aria-valuenow",s),e.children[0].setAttribute("aria-valuetext",u)}))}))}function X(e){if(e.mode===t.PipsMode.Range||e.mode===t.PipsMode.Steps)return C.xVal;if(e.mode===t.PipsMode.Count){if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var n=e.values-1,r=100/n,i=[];n--;)i[n]=n*r;return i.push(100),q(i,e.stepped)}return e.mode===t.PipsMode.Positions?q(e.values,e.stepped):e.mode===t.PipsMode.Values?e.stepped?e.values.map((function(t){return C.fromStepping(C.getStep(C.toStepping(t)))})):e.values:[]}function q(t,e){return t.map((function(t){return C.fromStepping(e?C.getStep(t):t)}))}function K(e){function n(t,e){return Number((t+e).toFixed(7))}var r=X(e),i={},o=C.xVal[0],s=C.xVal[C.xVal.length-1],u=!1,l=!1,c=0;return(r=a(r.slice().sort((function(t,e){return t-e}))))[0]!==o&&(r.unshift(o),u=!0),r[r.length-1]!==s&&(r.push(s),l=!0),r.forEach((function(o,a){var s,f,h,d,p,g,v,m,y,b,x=o,_=r[a+1],w=e.mode===t.PipsMode.Steps;for(w&&(s=C.xNumSteps[a]),s||(s=_-x),void 0===_&&(_=x),s=Math.max(s,1e-7),f=x;f<=_;f=n(f,s)){for(m=(p=(d=C.toStepping(f))-c)/(e.density||1),b=p/(y=Math.round(m)),h=1;h<=y;h+=1)i[(g=c+h*b).toFixed(5)]=[C.fromStepping(g),0];v=r.indexOf(f)>-1?t.PipsType.LargeValue:w?t.PipsType.SmallValue:t.PipsType.NoValue,!a&&u&&f!==_&&(v=0),f===_&&l||(i[d.toFixed(5)]=[f,v]),c=d}})),i}function J(e,r,i){var o,a,s=P.createElement("div"),u=((o={})[t.PipsType.None]="",o[t.PipsType.NoValue]=n.cssClasses.valueNormal,o[t.PipsType.LargeValue]=n.cssClasses.valueLarge,o[t.PipsType.SmallValue]=n.cssClasses.valueSub,o),l=((a={})[t.PipsType.None]="",a[t.PipsType.NoValue]=n.cssClasses.markerNormal,a[t.PipsType.LargeValue]=n.cssClasses.markerLarge,a[t.PipsType.SmallValue]=n.cssClasses.markerSub,a),c=[n.cssClasses.valueHorizontal,n.cssClasses.valueVertical],f=[n.cssClasses.markerHorizontal,n.cssClasses.markerVertical];function h(t,e){var r=e===n.cssClasses.value,i=r?u:l;return e+" "+(r?c:f)[n.ort]+" "+i[t]}function d(e,o,a){if((a=r?r(o,a):a)!==t.PipsType.None){var u=F(s,!1);u.className=h(a,n.cssClasses.marker),u.style[n.style]=e+"%",a>t.PipsType.NoValue&&((u=F(s,!1)).className=h(a,n.cssClasses.value),u.setAttribute("data-value",String(o)),u.style[n.style]=e+"%",u.innerHTML=String(i.to(o)))}}return p(s,n.cssClasses.pips),p(s,0===n.ort?n.cssClasses.pipsHorizontal:n.cssClasses.pipsVertical),Object.keys(e).forEach((function(t){d(t,e[t][0],e[t][1])})),s}function Q(){w&&(r(w),w=null)}function tt(t){Q();var e=K(t),n=t.filter,r=t.format||{to:function(t){return String(Math.round(t))}};return w=k.appendChild(J(e,n,r))}function et(){var t=l.getBoundingClientRect(),e="offset"+["Width","Height"][n.ort];return 0===n.ort?t.width||l[e]:t.height||l[e]}function nt(t,e,r,i){var o=function(o){var a=rt(o,i.pageOffset,i.target||e);return!!a&&!($()&&!i.doNotReject)&&!(v(k,n.cssClasses.tap)&&!i.doNotReject)&&!(t===E.start&&void 0!==a.buttons&&a.buttons>1)&&(!i.hover||!a.buttons)&&(T||a.preventDefault(),a.calcPoint=a.points[n.ort],void r(a,i))},a=[];return t.split(" ").forEach((function(t){e.addEventListener(t,o,!!T&&{passive:!0}),a.push([t,o])})),a}function rt(t,e,n){var r=0===t.type.indexOf("touch"),i=0===t.type.indexOf("mouse"),o=0===t.type.indexOf("pointer"),a=0,s=0;if(0===t.type.indexOf("MSPointer")&&(o=!0),"mousedown"===t.type&&!t.buttons&&!t.touches)return!1;if(r){var u=function(e){var r=e.target;return r===n||n.contains(r)||t.composed&&t.composedPath().shift()===n};if("touchstart"===t.type){var l=Array.prototype.filter.call(t.touches,u);if(l.length>1)return!1;a=l[0].pageX,s=l[0].pageY}else{var c=Array.prototype.find.call(t.changedTouches,u);if(!c)return!1;a=c.pageX,s=c.pageY}}return e=e||m(P),(i||o)&&(a=t.clientX+e.x,s=t.clientY+e.y),t.pageOffset=e,t.points=[a,s],t.cursor=i||o,t}function it(t){var e=100*(t-u(l,n.ort))/et();return e=f(e),n.dir?100-e:e}function at(t){var e=100,n=!1;return d.forEach((function(r,i){if(!G(i)){var o=A[i],a=Math.abs(o-t);(a<e||a<=e&&t>o||100===a&&100===e)&&(n=i,e=a)}})),n}function st(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&lt(t,e)}function ut(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return lt(t,e);var r=(n.dir?-1:1)*(t.calcPoint-e.startCalcPoint);_t(r>0,100*r/e.baseSize,e.locations,e.handleNumbers,e.connect)}function lt(t,e){e.handle&&(g(e.handle,n.cssClasses.active),O-=1),e.listeners.forEach((function(t){N.removeEventListener(t[0],t[1])})),0===O&&(g(k,n.cssClasses.drag),Et(),t.cursor&&(R.style.cursor="",R.removeEventListener("selectstart",o))),n.events.smoothSteps&&(e.handleNumbers.forEach((function(t){Tt(t,A[t],!0,!0,!1,!1)})),e.handleNumbers.forEach((function(t){yt("update",t)}))),e.handleNumbers.forEach((function(t){yt("change",t),yt("set",t),yt("end",t)}))}function ct(t,e){if(!e.handleNumbers.some(G)){var r;1===e.handleNumbers.length&&(r=d[e.handleNumbers[0]].children[0],O+=1,p(r,n.cssClasses.active)),t.stopPropagation();var i=[],a=nt(E.move,N,ut,{target:t.target,handle:r,connect:e.connect,listeners:i,startCalcPoint:t.calcPoint,baseSize:et(),pageOffset:t.pageOffset,handleNumbers:e.handleNumbers,buttonsProperty:t.buttons,locations:A.slice()}),s=nt(E.end,N,lt,{target:t.target,handle:r,listeners:i,doNotReject:!0,handleNumbers:e.handleNumbers}),u=nt("mouseout",N,st,{target:t.target,handle:r,listeners:i,doNotReject:!0,handleNumbers:e.handleNumbers});i.push.apply(i,a.concat(s,u)),t.cursor&&(R.style.cursor=getComputedStyle(t.target).cursor,d.length>1&&p(k,n.cssClasses.drag),R.addEventListener("selectstart",o,!1)),e.handleNumbers.forEach((function(t){yt("start",t)}))}}function ft(t){t.stopPropagation();var e=it(t.calcPoint),r=at(e);!1!==r&&(n.events.snap||c(k,n.cssClasses.tap,n.animationDuration),Tt(r,e,!0,!0),Et(),yt("slide",r,!0),yt("update",r,!0),n.events.snap?ct(t,{handleNumbers:[r]}):(yt("change",r,!0),yt("set",r,!0)))}function ht(t){var e=it(t.calcPoint),n=C.getStep(e),r=C.fromStepping(n);Object.keys(D).forEach((function(t){"hover"===t.split(".")[0]&&D[t].forEach((function(t){t.call(jt,r)}))}))}function dt(t,e){if($()||G(e))return!1;var r=["Left","Right"],i=["Down","Up"],o=["PageDown","PageUp"],a=["Home","End"];n.dir&&!n.ort?r.reverse():n.ort&&!n.dir&&(i.reverse(),o.reverse());var s,u=t.key.replace("Arrow",""),l=u===o[0],c=u===o[1],f=u===i[0]||u===r[0]||l,h=u===i[1]||u===r[1]||c,d=u===a[0],p=u===a[1];if(!(f||h||d||p))return!0;if(t.preventDefault(),h||f){var g=f?0:1,v=Pt(e)[g];if(null===v)return!1;!1===v&&(v=C.getDefaultStep(A[e],f,n.keyboardDefaultStep)),v*=c||l?n.keyboardPageMultiplier:n.keyboardMultiplier,v=Math.max(v,1e-7),v*=f?-1:1,s=M[e]+v}else s=p?n.spectrum.xVal[n.spectrum.xVal.length-1]:n.spectrum.xVal[0];return Tt(e,C.toStepping(s),!0,!0),yt("slide",e),yt("update",e),yt("change",e),yt("set",e),!1}function pt(t){t.fixed||d.forEach((function(t,e){nt(E.start,t.children[0],ct,{handleNumbers:[e]})})),t.tap&&nt(E.start,l,ft,{}),t.hover&&nt(E.move,l,ht,{hover:!0}),t.drag&&_.forEach((function(e,r){if(!1!==e&&0!==r&&r!==_.length-1){var i=d[r-1],o=d[r],a=[e],s=[i,o],u=[r-1,r];p(e,n.cssClasses.draggable),t.fixed&&(a.push(i.children[0]),a.push(o.children[0])),t.dragAll&&(s=d,u=I),a.forEach((function(t){nt(E.start,t,ct,{handles:s,handleNumbers:u,connect:e})}))}}))}function gt(t,e){D[t]=D[t]||[],D[t].push(e),"update"===t.split(".")[0]&&d.forEach((function(t,e){yt("update",e)}))}function vt(t){return t===L.aria||t===L.tooltips}function mt(t){var e=t&&t.split(".")[0],n=e?t.substring(e.length):t;Object.keys(D).forEach((function(t){var r=t.split(".")[0],i=t.substring(r.length);e&&e!==r||n&&n!==i||vt(i)&&n!==i||delete D[t]}))}function yt(t,e,r){Object.keys(D).forEach((function(i){var o=i.split(".")[0];t===o&&D[i].forEach((function(t){t.call(jt,M.map(n.format.to),e,M.slice(),r||!1,A.slice(),jt)}))}))}function bt(t,e,r,i,o,a,s){var u;return d.length>1&&!n.events.unconstrained&&(i&&e>0&&(u=C.getAbsoluteDistance(t[e-1],n.margin,!1),r=Math.max(r,u)),o&&e<d.length-1&&(u=C.getAbsoluteDistance(t[e+1],n.margin,!0),r=Math.min(r,u))),d.length>1&&n.limit&&(i&&e>0&&(u=C.getAbsoluteDistance(t[e-1],n.limit,!1),r=Math.min(r,u)),o&&e<d.length-1&&(u=C.getAbsoluteDistance(t[e+1],n.limit,!0),r=Math.max(r,u))),n.padding&&(0===e&&(u=C.getAbsoluteDistance(0,n.padding[0],!1),r=Math.max(r,u)),e===d.length-1&&(u=C.getAbsoluteDistance(100,n.padding[1],!0),r=Math.min(r,u))),s||(r=C.getStep(r)),!((r=f(r))===t[e]&&!a)&&r}function xt(t,e){var r=n.ort;return(r?e:t)+", "+(r?t:e)}function _t(t,e,r,i,o){var a=r.slice(),s=i[0],u=n.events.smoothSteps,l=[!t,t],c=[t,!t];i=i.slice(),t&&i.reverse(),i.length>1?i.forEach((function(t,n){var r=bt(a,t,a[t]+e,l[n],c[n],!1,u);!1===r?e=0:(e=r-a[t],a[t]=r)})):l=c=[!0];var f=!1;i.forEach((function(t,n){f=Tt(t,r[t]+e,l[n],c[n],!1,u)||f})),f&&(i.forEach((function(t){yt("update",t),yt("slide",t)})),null!=o&&yt("drag",s))}function wt(t,e){return n.dir?100-t-e:t}function St(t,e){A[t]=e,M[t]=C.fromStepping(e);var r="translate("+xt(wt(e,0)-j+"%","0")+")";d[t].style[n.transformRule]=r,kt(t),kt(t+1)}function Et(){I.forEach((function(t){var e=A[t]>50?-1:1,n=3+(d.length+e*t);d[t].style.zIndex=String(n)}))}function Tt(t,e,n,r,i,o){return i||(e=bt(A,t,e,n,r,!1,o)),!1!==e&&(St(t,e),!0)}function kt(t){if(_[t]){var e=0,r=100;0!==t&&(e=A[t-1]),t!==_.length-1&&(r=A[t]);var i=r-e,o="translate("+xt(wt(e,i)+"%","0")+")",a="scale("+xt(i/100,"1")+")";_[t].style[n.transformRule]=o+" "+a}}function Ct(t,e){return null===t||!1===t||void 0===t?A[e]:("number"==typeof t&&(t=String(t)),!1!==(t=n.format.from(t))&&(t=C.toStepping(t)),!1===t||isNaN(t)?A[e]:t)}function Mt(t,e,r){var i=h(t),o=void 0===A[0];e=void 0===e||e,n.animate&&!o&&c(k,n.cssClasses.tap,n.animationDuration),I.forEach((function(t){Tt(t,Ct(i[t],t),!0,!1,r)}));var a=1===I.length?0:1;if(o&&C.hasNoSize()&&(r=!0,A[0]=0,I.length>1)){var s=100/(I.length-1);I.forEach((function(t){A[t]=t*s}))}for(;a<I.length;++a)I.forEach((function(t){Tt(t,A[t],!0,!0,r)}));Et(),I.forEach((function(t){yt("update",t),null!==i[t]&&e&&yt("set",t)}))}function At(t){Mt(n.start,t)}function It(t,e,n,r){if(!((t=Number(t))>=0&&t<I.length))throw new Error("noUiSlider: invalid handle number, got: "+t);Tt(t,Ct(e,t),!0,!0,r),yt("update",t),n&&yt("set",t)}function Ot(t){if(void 0===t&&(t=!1),t)return 1===M.length?M[0]:M.slice(0);var e=M.map(n.format.to);return 1===e.length?e[0]:e}function Dt(){for(mt(L.aria),mt(L.tooltips),Object.keys(n.cssClasses).forEach((function(t){g(k,n.cssClasses[t])}));k.firstChild;)k.removeChild(k.firstChild);delete k.noUiSlider}function Pt(t){var e=A[t],r=C.getNearbySteps(e),i=M[t],o=r.thisStep.step,a=null;if(n.snap)return[i-r.stepBefore.startValue||null,r.stepAfter.startValue-i||null];!1!==o&&i+o>r.stepAfter.startValue&&(o=r.stepAfter.startValue-i),a=i>r.thisStep.startValue?r.thisStep.step:!1!==r.stepBefore.step&&i-r.stepBefore.highestStep,100===e?o=null:0===e&&(a=null);var s=C.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(s))),null!==a&&!1!==a&&(a=Number(a.toFixed(s))),[a,o]}function Lt(){return I.map(Pt)}function Nt(t,e){var r=Ot(),o=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];o.forEach((function(e){void 0!==t[e]&&(s[e]=t[e])}));var a=ot(s);o.forEach((function(e){void 0!==t[e]&&(n[e]=a[e])})),C=a.spectrum,n.margin=a.margin,n.limit=a.limit,n.padding=a.padding,n.pips?tt(n.pips):Q(),n.tooltips?V():W(),A=[],Mt(i(t.start)?t.start:r,e)}function Rt(){l=U(k),Z(n.connect,l),pt(n.events),Mt(n.start),n.pips&&tt(n.pips),n.tooltips&&V(),Y()}Rt();var jt={destroy:Dt,steps:Lt,on:gt,off:mt,get:Ot,set:Mt,setHandle:It,reset:At,__moveHandles:function(t,e,n){_t(t,e,A,n)},options:s,updateOptions:Nt,target:k,removePips:Q,removeTooltips:W,getPositions:function(){return A.slice()},getTooltips:function(){return S},getOrigins:function(){return d},pips:tt};return jt}function st(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+t);if(t.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var n=at(t,ot(e),e);return t.noUiSlider=n,n}var ut={__spectrum:O,cssClasses:P,create:st};t.create=st,t.cssClasses=P,t.default=ut,Object.defineProperty(t,"__esModule",{value:!0})}(e)})));function c(t,e){if(!Array.isArray(t)||!Array.isArray(e))return!1;const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every((function(t,e){return t===n[e]}))}var f={name:"Slider",emits:["input","update:modelValue","start","slide","drag","update","change","set","end"],props:{value:{validator:function(t){return t=>"number"==typeof t||t instanceof Array||null==t||!1===t},required:!1},modelValue:{validator:function(t){return t=>"number"==typeof t||t instanceof Array||null==t||!1===t},required:!1},id:{type:[String,Number],required:!1},disabled:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},orientation:{type:String,required:!1,default:"horizontal"},direction:{type:String,required:!1,default:"ltr"},tooltips:{type:Boolean,required:!1,default:!0},options:{type:Object,required:!1,default:()=>({})},merge:{type:Number,required:!1,default:-1},format:{type:[Object,Function,Boolean],required:!1,default:null},classes:{type:Object,required:!1,default:()=>({})},showTooltip:{type:String,required:!1,default:"always"},tooltipPosition:{type:String,required:!1,default:null},lazy:{type:Boolean,required:!1,default:!0},ariaLabelledby:{type:String,required:!1,default:void 0},aria:{required:!1,type:Object,default:()=>({})}},setup(t,e){const n=function(t,e,n){const{value:i,modelValue:a,min:s}=(0,r.BK)(t);let u=a&&void 0!==a.value?a:i;const l=(0,r.iH)(u.value);if(o(u.value)&&(u=(0,r.iH)(s.value)),Array.isArray(u.value)&&0==u.value.length)throw new Error("Slider v-model must not be an empty array");return{value:u,initialValue:l}}(t),a=function(t,e,n){const{classes:o,showTooltip:a,tooltipPosition:s,orientation:u}=(0,r.BK)(t),l=(0,i.Fl)((()=>({target:"slider-target",focused:"slider-focused",tooltipFocus:"slider-tooltip-focus",tooltipDrag:"slider-tooltip-drag",ltr:"slider-ltr",rtl:"slider-rtl",horizontal:"slider-horizontal",vertical:"slider-vertical",textDirectionRtl:"slider-txt-dir-rtl",textDirectionLtr:"slider-txt-dir-ltr",base:"slider-base",connects:"slider-connects",connect:"slider-connect",origin:"slider-origin",handle:"slider-handle",handleLower:"slider-handle-lower",handleUpper:"slider-handle-upper",touchArea:"slider-touch-area",tooltip:"slider-tooltip",tooltipTop:"slider-tooltip-top",tooltipBottom:"slider-tooltip-bottom",tooltipLeft:"slider-tooltip-left",tooltipRight:"slider-tooltip-right",tooltipHidden:"slider-tooltip-hidden",active:"slider-active",draggable:"slider-draggable",tap:"slider-state-tap",drag:"slider-state-drag",pips:"slider-pips",pipsHorizontal:"slider-pips-horizontal",pipsVertical:"slider-pips-vertical",marker:"slider-marker",markerHorizontal:"slider-marker-horizontal",markerVertical:"slider-marker-vertical",markerNormal:"slider-marker-normal",markerLarge:"slider-marker-large",markerSub:"slider-marker-sub",value:"slider-value",valueHorizontal:"slider-value-horizontal",valueVertical:"slider-value-vertical",valueNormal:"slider-value-normal",valueLarge:"slider-value-large",valueSub:"slider-value-sub",...o.value})));return{classList:(0,i.Fl)((()=>{const t={...l.value};return Object.keys(t).forEach((e=>{t[e]=Array.isArray(t[e])?t[e].filter((t=>null!==t)).join(" "):t[e]})),"always"!==a.value&&(t.target+=` ${"drag"===a.value?t.tooltipDrag:t.tooltipFocus}`),"horizontal"===u.value&&(t.tooltip+="bottom"===s.value?` ${t.tooltipBottom}`:` ${t.tooltipTop}`),"vertical"===u.value&&(t.tooltip+="right"===s.value?` ${t.tooltipRight}`:` ${t.tooltipLeft}`),t}))}}(t),s=function(t,e,n){const{format:o,step:a}=(0,r.BK)(t),s=n.value,l=n.classList,c=(0,i.Fl)((()=>o&&o.value?"function"==typeof o.value?{to:o.value}:u({...o.value}):u({decimals:a.value>=0?0:2}))),f=(0,i.Fl)((()=>Array.isArray(s.value)?s.value.map((t=>c.value)):c.value));return{tooltipFormat:c,tooltipsFormat:f,tooltipsMerge:(t,e,n)=>{var r="rtl"===getComputedStyle(t).direction,i="rtl"===t.noUiSlider.options.direction,o="vertical"===t.noUiSlider.options.orientation,a=t.noUiSlider.getTooltips(),s=t.noUiSlider.getOrigins();a.forEach((function(t,e){t&&s[e].appendChild(t)})),t.noUiSlider.on("update",(function(t,s,u,f,h){var d=[[]],p=[[]],g=[[]],v=0;a[0]&&(d[0][0]=0,p[0][0]=h[0],g[0][0]=c.value.to(parseFloat(t[0])));for(var m=1;m<t.length;m++)(!a[m]||t[m]-t[m-1]>e)&&(d[++v]=[],g[v]=[],p[v]=[]),a[m]&&(d[v].push(m),g[v].push(c.value.to(parseFloat(t[m]))),p[v].push(h[m]));d.forEach((function(t,e){for(var s=t.length,u=0;u<s;u++){var c=t[u];if(u===s-1){var f=0;p[e].forEach((function(t){f+=1e3-t}));var h=o?"bottom":"right",d=i?0:s-1,v=1e3-p[e][d];f=(r&&!o?100:0)+f/s-v,a[c].innerHTML=g[e].join(n),a[c].style.display="block",a[c].style[h]=f+"%",l.value.tooltipHidden.split(" ").forEach((t=>{a[c].classList.contains(t)&&a[c].classList.remove(t)}))}else a[c].style.display="none",l.value.tooltipHidden.split(" ").forEach((t=>{a[c].classList.add(t)}))}}))}))}}}(t,0,{value:n.value,classList:a.classList}),f=function(t,e,n){const{orientation:a,direction:s,tooltips:u,step:f,min:h,max:d,merge:p,id:g,disabled:v,options:m,classes:y,format:b,lazy:x,ariaLabelledby:_,aria:w}=(0,r.BK)(t),S=n.value,E=n.initialValue,T=n.tooltipsFormat,k=n.tooltipsMerge,C=n.tooltipFormat,M=n.classList,A=(0,r.iH)(null),I=(0,r.iH)(null),O=(0,r.iH)(!1),D=(0,i.Fl)((()=>{let t={cssPrefix:"",cssClasses:M.value,orientation:a.value,direction:s.value,tooltips:!!u.value&&T.value,connect:"lower",start:o(S.value)?h.value:S.value,range:{min:h.value,max:d.value}};if(f.value>0&&(t.step=f.value),Array.isArray(S.value)&&(t.connect=!0),_&&_.value||w&&Object.keys(w.value).length){let e=Array.isArray(S.value)?S.value:[S.value];t.handleAttributes=e.map((t=>Object.assign({},w.value,_&&_.value?{"aria-labelledby":_.value}:{})))}return b.value&&(t.ariaFormat=C.value),t})),P=(0,i.Fl)((()=>{let t={id:g&&g.value?g.value:void 0};return v.value&&(t.disabled=!0),t})),L=(0,i.Fl)((()=>Array.isArray(S.value))),N=()=>{let t=I.value.get();return Array.isArray(t)?t.map((t=>parseFloat(t))):parseFloat(t)},R=function(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];I.value.set(t,e)},j=t=>{e.emit("input",t),e.emit("update:modelValue",t),e.emit("update",t)},F=()=>{I.value=l.create(A.value,Object.assign({},D.value,m.value)),u.value&&L.value&&p.value>=0&&k(A.value,p.value," - "),I.value.on("set",(()=>{const t=N();e.emit("change",t),e.emit("set",t),x.value&&j(t)})),I.value.on("update",(()=>{if(!O.value)return;const t=N();L.value&&c(S.value,t)||!L.value&&S.value==t?e.emit("update",t):x.value||j(t)})),I.value.on("start",(()=>{e.emit("start",N())})),I.value.on("end",(()=>{e.emit("end",N())})),I.value.on("slide",(()=>{e.emit("slide",N())})),I.value.on("drag",(()=>{e.emit("drag",N())})),A.value.querySelectorAll("[data-handle]").forEach((t=>{t.onblur=()=>{A.value&&M.value.focused.split(" ").forEach((t=>{A.value.classList.remove(t)}))},t.onfocus=()=>{M.value.focused.split(" ").forEach((t=>{A.value.classList.add(t)}))}})),O.value=!0},B=()=>{I.value.off(),I.value.destroy(),I.value=null},z=(t,e)=>{O.value=!1,B(),F()};return(0,i.bv)(F),(0,i.Ah)(B),(0,i.YP)(L,z,{immediate:!1}),(0,i.YP)(h,z,{immediate:!1}),(0,i.YP)(d,z,{immediate:!1}),(0,i.YP)(f,z,{immediate:!1}),(0,i.YP)(a,z,{immediate:!1}),(0,i.YP)(s,z,{immediate:!1}),(0,i.YP)(u,z,{immediate:!1}),(0,i.YP)(p,z,{immediate:!1}),(0,i.YP)(b,z,{immediate:!1,deep:!0}),(0,i.YP)(m,z,{immediate:!1,deep:!0}),(0,i.YP)(y,z,{immediate:!1,deep:!0}),(0,i.YP)(S,((t,e)=>{e&&("object"==typeof e&&"object"==typeof t&&t&&Object.keys(e)>Object.keys(t)||"object"==typeof e&&"object"!=typeof t||o(t))&&z()}),{immediate:!1}),(0,i.YP)(S,(t=>{if(o(t))return void R(h.value,!1);let e=N();L.value&&!Array.isArray(e)&&(e=[e]),(L.value&&!c(t,e)||!L.value&&t!=e)&&R(t,!1)}),{deep:!0}),{slider:A,slider$:I,isRange:L,sliderProps:P,init:F,destroy:B,refresh:z,update:R,reset:()=>{j(E.value)}}}(t,e,{value:n.value,initialValue:n.initialValue,tooltipFormat:s.tooltipFormat,tooltipsFormat:s.tooltipsFormat,tooltipsMerge:s.tooltipsMerge,classList:a.classList});return{...a,...s,...f}},render:function(t,e,n,r,o,a){return(0,i.wg)(),(0,i.iD)("div",(0,i.dG)(t.sliderProps,{ref:"slider"}),null,16)},__file:"src/Slider.vue"}},3682:function(t,e,n){"use strict";var r=new Map;function i(t){var e=r.get(t);e&&e.destroy()}function o(t){var e=r.get(t);e&&e.update()}var a=null;"undefined"==typeof window?((a=function(t){return t}).destroy=function(t){return t},a.update=function(t){return t}):((a=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],(function(t){return function(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!r.has(t)){var e,n=null,i=window.getComputedStyle(t),o=(e=t.value,function(){s({testForHeightReduction:""===e||!t.value.startsWith(e),restoreTextAlign:null}),e=t.value}),a=function(e){t.removeEventListener("autosize:destroy",a),t.removeEventListener("autosize:update",u),t.removeEventListener("input",o),window.removeEventListener("resize",u),Object.keys(e).forEach((function(n){return t.style[n]=e[n]})),r.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",a),t.addEventListener("autosize:update",u),t.addEventListener("input",o),window.addEventListener("resize",u),t.style.overflowX="hidden",t.style.wordWrap="break-word",r.set(t,{destroy:a,update:u}),u()}function s(e){var r,o,a=e.restoreTextAlign,u=void 0===a?null:a,l=e.testForHeightReduction,c=void 0===l||l,f=i.overflowY;if(0!==t.scrollHeight&&("vertical"===i.resize?t.style.resize="none":"both"===i.resize&&(t.style.resize="horizontal"),c&&(r=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push([t.parentNode,t.parentNode.scrollTop]),t=t.parentNode;return function(){return e.forEach((function(t){var e=t[0],n=t[1];e.style.scrollBehavior="auto",e.scrollTop=n,e.style.scrollBehavior=null}))}}(t),t.style.height=""),o="content-box"===i.boxSizing?t.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):t.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&o>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(t.style.overflow="scroll"),o=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(t.style.overflow="hidden"),t.style.height=o+"px",u&&(t.style.textAlign=u),r&&r(),n!==o&&(t.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),f!==i.overflow&&!u)){var h=i.textAlign;"hidden"===i.overflow&&(t.style.textAlign="start"===h?"end":"start"),s({restoreTextAlign:h,testForHeightReduction:!0})}}function u(){s({testForHeightReduction:!0,restoreTextAlign:null})}}(t)})),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],i),t},a.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],o),t});var s=/^(539|826)$/.test(n.j)?a:null;e.Z=/^(539|826)$/.test(n.j)?s:null},15577:function(t){
/*!
  * Bootstrap v5.3.2 (https://getbootstrap.com/)
  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */
(function(e,n){t.exports=n()})(0,(function(){"use strict";const t=new Map,e={set(e,n,r){t.has(e)||t.set(e,new Map);const i=t.get(e);i.has(n)||0===i.size?i.set(n,r):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get(e,n){return t.has(e)&&t.get(e).get(n)||null},remove(e,n){if(!t.has(e))return;const r=t.get(e);r.delete(n),0===r.size&&t.delete(e)}},n=1e6,r=1e3,i="transitionend",o=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),a=t=>null===t||void 0===t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),s=t=>{do{t+=Math.floor(Math.random()*n)}while(document.getElementById(t));return t},u=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const i=Number.parseFloat(e),o=Number.parseFloat(n);return i||o?(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*r):0},l=t=>{t.dispatchEvent(new Event(i))},c=t=>!(!t||"object"!==typeof t)&&("undefined"!==typeof t.jquery&&(t=t[0]),"undefined"!==typeof t.nodeType),f=t=>c(t)?t.jquery?t[0]:t:"string"===typeof t&&t.length>0?document.querySelector(o(t)):null,h=t=>{if(!c(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const e=t.closest("summary");if(e&&e.parentNode!==n)return!1;if(null===e)return!1}return e},d=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||("undefined"!==typeof t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),p=t=>{if(!document.documentElement.attachShadow)return null;if("function"===typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?p(t.parentNode):null},g=()=>{},v=t=>{t.offsetHeight},m=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,y=[],b=t=>{"loading"===document.readyState?(y.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of y)t()})),y.push(t)):t()},x=()=>"rtl"===document.documentElement.dir,_=t=>{b((()=>{const e=m();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}}))},w=(t,e=[],n=t)=>"function"===typeof t?t(...e):n,S=(t,e,n=!0)=>{if(!n)return void w(t);const r=5,o=u(e)+r;let a=!1;const s=({target:n})=>{n===e&&(a=!0,e.removeEventListener(i,s),w(t))};e.addEventListener(i,s),setTimeout((()=>{a||l(e)}),o)},E=(t,e,n,r)=>{const i=t.length;let o=t.indexOf(e);return-1===o?!n&&r?t[i-1]:t[0]:(o+=n?1:-1,r&&(o=(o+i)%i),t[Math.max(0,Math.min(o,i-1))])},T=/[^.]*(?=\..*)\.|.*/,k=/\..*/,C=/::\d+$/,M={};let A=1;const I={mouseenter:"mouseover",mouseleave:"mouseout"},O=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function D(t,e){return e&&`${e}::${A++}`||t.uidEvent||A++}function P(t){const e=D(t);return t.uidEvent=e,M[e]=M[e]||{},M[e]}function L(t,e){return function n(r){return H(r,{delegateTarget:t}),n.oneOff&&U.off(t,r.type,e),e.apply(t,[r])}}function N(t,e,n){return function r(i){const o=t.querySelectorAll(e);for(let{target:a}=i;a&&a!==this;a=a.parentNode)for(const s of o)if(s===a)return H(i,{delegateTarget:a}),r.oneOff&&U.off(t,i.type,e,n),n.apply(a,[i])}}function R(t,e,n=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===n))}function j(t,e,n){const r="string"===typeof e,i=r?n:e||n;let o=Z(t);return O.has(o)||(o=t),[r,i,o]}function F(t,e,n,r,i){if("string"!==typeof e||!t)return;let[o,a,s]=j(e,n,r);if(e in I){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};a=t(a)}const u=P(t),l=u[s]||(u[s]={}),c=R(l,a,o?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const f=D(a,e.replace(T,"")),h=o?N(t,n,a):L(t,a);h.delegationSelector=o?n:null,h.callable=a,h.oneOff=i,h.uidEvent=f,l[f]=h,t.addEventListener(s,h,o)}function B(t,e,n,r,i){const o=R(e[n],r,i);o&&(t.removeEventListener(n,o,Boolean(i)),delete e[n][o.uidEvent])}function z(t,e,n,r){const i=e[n]||{};for(const[o,a]of Object.entries(i))o.includes(r)&&B(t,e,n,a.callable,a.delegationSelector)}function Z(t){return t=t.replace(k,""),I[t]||t}const U={on(t,e,n,r){F(t,e,n,r,!1)},one(t,e,n,r){F(t,e,n,r,!0)},off(t,e,n,r){if("string"!==typeof e||!t)return;const[i,o,a]=j(e,n,r),s=a!==e,u=P(t),l=u[a]||{},c=e.startsWith(".");if("undefined"===typeof o){if(c)for(const n of Object.keys(u))z(t,u,n,e.slice(1));for(const[n,r]of Object.entries(l)){const i=n.replace(C,"");s&&!e.includes(i)||B(t,u,a,r.callable,r.delegationSelector)}}else{if(!Object.keys(l).length)return;B(t,u,a,o,i?n:null)}},trigger(t,e,n){if("string"!==typeof e||!t)return null;const r=m(),i=Z(e),o=e!==i;let a=null,s=!0,u=!0,l=!1;o&&r&&(a=r.Event(e,n),r(t).trigger(a),s=!a.isPropagationStopped(),u=!a.isImmediatePropagationStopped(),l=a.isDefaultPrevented());const c=H(new Event(e,{bubbles:s,cancelable:!0}),n);return l&&c.preventDefault(),u&&t.dispatchEvent(c),c.defaultPrevented&&a&&a.preventDefault(),c}};function H(t,e={}){for(const[r,i]of Object.entries(e))try{t[r]=i}catch(n){Object.defineProperty(t,r,{configurable:!0,get(){return i}})}return t}function $(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!==typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function G(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const W={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${G(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${G(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const r of n){let n=r.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=$(t.dataset[r])}return e},getDataAttribute(t,e){return $(t.getAttribute(`data-bs-${G(e)}`))}};class V{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const n=c(e)?W.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"===typeof n?n:{},...c(e)?W.getDataAttributes(e):{},..."object"===typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[n,r]of Object.entries(e)){const e=t[n],i=c(e)?"element":a(e);if(!new RegExp(r).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}}const Y="5.3.2";class X extends V{constructor(t,n){super(),t=f(t),t&&(this._element=t,this._config=this._getConfig(n),e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){e.remove(this._element,this.constructor.DATA_KEY),U.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,n=!0){S(t,e,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return e.get(f(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"===typeof e?e:null)}static get VERSION(){return Y}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const q=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&"#"!==n?o(n.trim()):null}return e},K={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter((t=>t.matches(e)))},parents(t,e){const n=[];let r=t.parentNode.closest(e);while(r)n.push(r),r=r.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;while(n){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;while(n){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!d(t)&&h(t)))},getSelectorFromElement(t){const e=q(t);return e&&K.findOne(e)?e:null},getElementFromSelector(t){const e=q(t);return e?K.findOne(e):null},getMultipleElementsFromSelector(t){const e=q(t);return e?K.find(e):[]}},J=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;U.on(document,n,`[data-bs-dismiss="${r}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),d(this))return;const i=K.getElementFromSelector(this)||this.closest(`.${r}`),o=t.getOrCreateInstance(i);o[e]()}))},Q="alert",tt="bs.alert",et=`.${tt}`,nt=`close${et}`,rt=`closed${et}`,it="fade",ot="show";class at extends X{static get NAME(){return Q}close(){const t=U.trigger(this._element,nt);if(t.defaultPrevented)return;this._element.classList.remove(ot);const e=this._element.classList.contains(it);this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),U.trigger(this._element,rt),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=at.getOrCreateInstance(this);if("string"===typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}J(at,"close"),_(at);const st="button",ut="bs.button",lt=`.${ut}`,ct=".data-api",ft="active",ht='[data-bs-toggle="button"]',dt=`click${lt}${ct}`;class pt extends X{static get NAME(){return st}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(ft))}static jQueryInterface(t){return this.each((function(){const e=pt.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}U.on(document,dt,ht,(t=>{t.preventDefault();const e=t.target.closest(ht),n=pt.getOrCreateInstance(e);n.toggle()})),_(pt);const gt="swipe",vt=".bs.swipe",mt=`touchstart${vt}`,yt=`touchmove${vt}`,bt=`touchend${vt}`,xt=`pointerdown${vt}`,_t=`pointerup${vt}`,wt="touch",St="pen",Et="pointer-event",Tt=40,kt={endCallback:null,leftCallback:null,rightCallback:null},Ct={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Mt extends V{constructor(t,e){super(),this._element=t,t&&Mt.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return kt}static get DefaultType(){return Ct}static get NAME(){return gt}dispose(){U.off(this._element,vt)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),w(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Tt)return;const e=t/this._deltaX;this._deltaX=0,e&&w(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(U.on(this._element,xt,(t=>this._start(t))),U.on(this._element,_t,(t=>this._end(t))),this._element.classList.add(Et)):(U.on(this._element,mt,(t=>this._start(t))),U.on(this._element,yt,(t=>this._move(t))),U.on(this._element,bt,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===St||t.pointerType===wt)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const At="carousel",It="bs.carousel",Ot=`.${It}`,Dt=".data-api",Pt="ArrowLeft",Lt="ArrowRight",Nt=500,Rt="next",jt="prev",Ft="left",Bt="right",zt=`slide${Ot}`,Zt=`slid${Ot}`,Ut=`keydown${Ot}`,Ht=`mouseenter${Ot}`,$t=`mouseleave${Ot}`,Gt=`dragstart${Ot}`,Wt=`load${Ot}${Dt}`,Vt=`click${Ot}${Dt}`,Yt="carousel",Xt="active",qt="slide",Kt="carousel-item-end",Jt="carousel-item-start",Qt="carousel-item-next",te="carousel-item-prev",ee=".active",ne=".carousel-item",re=ee+ne,ie=".carousel-item img",oe=".carousel-indicators",ae="[data-bs-slide], [data-bs-slide-to]",se='[data-bs-ride="carousel"]',ue={[Pt]:Bt,[Lt]:Ft},le={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ce={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class fe extends X{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=K.findOne(oe,this._element),this._addEventListeners(),this._config.ride===Yt&&this.cycle()}static get Default(){return le}static get DefaultType(){return ce}static get NAME(){return At}next(){this._slide(Rt)}nextWhenVisible(){!document.hidden&&h(this._element)&&this.next()}prev(){this._slide(jt)}pause(){this._isSliding&&l(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?U.one(this._element,Zt,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void U.one(this._element,Zt,(()=>this.to(t)));const n=this._getItemIndex(this._getActive());if(n===t)return;const r=t>n?Rt:jt;this._slide(r,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&U.on(this._element,Ut,(t=>this._keydown(t))),"hover"===this._config.pause&&(U.on(this._element,Ht,(()=>this.pause())),U.on(this._element,$t,(()=>this._maybeEnableCycle()))),this._config.touch&&Mt.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of K.find(ie,this._element))U.on(n,Gt,(t=>t.preventDefault()));const t=()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),Nt+this._config.interval))},e={leftCallback:()=>this._slide(this._directionToOrder(Ft)),rightCallback:()=>this._slide(this._directionToOrder(Bt)),endCallback:t};this._swipeHelper=new Mt(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=ue[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=K.findOne(ee,this._indicatorsElement);e.classList.remove(Xt),e.removeAttribute("aria-current");const n=K.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(Xt),n.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const n=this._getActive(),r=t===Rt,i=e||E(this._getItems(),n,r,this._config.wrap);if(i===n)return;const o=this._getItemIndex(i),a=e=>U.trigger(this._element,e,{relatedTarget:i,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:o}),s=a(zt);if(s.defaultPrevented)return;if(!n||!i)return;const u=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=i;const l=r?Jt:Kt,c=r?Qt:te;i.classList.add(c),v(i),n.classList.add(l),i.classList.add(l);const f=()=>{i.classList.remove(l,c),i.classList.add(Xt),n.classList.remove(Xt,c,l),this._isSliding=!1,a(Zt)};this._queueCallback(f,n,this._isAnimated()),u&&this.cycle()}_isAnimated(){return this._element.classList.contains(qt)}_getActive(){return K.findOne(re,this._element)}_getItems(){return K.find(ne,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return x()?t===Ft?jt:Rt:t===Ft?Rt:jt}_orderToDirection(t){return x()?t===jt?Ft:Bt:t===jt?Bt:Ft}static jQueryInterface(t){return this.each((function(){const e=fe.getOrCreateInstance(this,t);if("number"!==typeof t){if("string"===typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}U.on(document,Vt,ae,(function(t){const e=K.getElementFromSelector(this);if(!e||!e.classList.contains(Yt))return;t.preventDefault();const n=fe.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");return r?(n.to(r),void n._maybeEnableCycle()):"next"===W.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),U.on(window,Wt,(()=>{const t=K.find(se);for(const e of t)fe.getOrCreateInstance(e)})),_(fe);const he="collapse",de="bs.collapse",pe=`.${de}`,ge=".data-api",ve=`show${pe}`,me=`shown${pe}`,ye=`hide${pe}`,be=`hidden${pe}`,xe=`click${pe}${ge}`,_e="show",we="collapse",Se="collapsing",Ee="collapsed",Te=`:scope .${we} .${we}`,ke="collapse-horizontal",Ce="width",Me="height",Ae=".collapse.show, .collapse.collapsing",Ie='[data-bs-toggle="collapse"]',Oe={parent:null,toggle:!0},De={parent:"(null|element)",toggle:"boolean"};class Pe extends X{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=K.find(Ie);for(const r of n){const t=K.getSelectorFromElement(r),e=K.find(t).filter((t=>t===this._element));null!==t&&e.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Oe}static get DefaultType(){return De}static get NAME(){return he}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Ae).filter((t=>t!==this._element)).map((t=>Pe.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;const e=U.trigger(this._element,ve);if(e.defaultPrevented)return;for(const a of t)a.hide();const n=this._getDimension();this._element.classList.remove(we),this._element.classList.add(Se),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Se),this._element.classList.add(we,_e),this._element.style[n]="",U.trigger(this._element,me)},i=n[0].toUpperCase()+n.slice(1),o=`scroll${i}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown())return;const t=U.trigger(this._element,ye);if(t.defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,v(this._element),this._element.classList.add(Se),this._element.classList.remove(we,_e);for(const r of this._triggerArray){const t=K.getElementFromSelector(r);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([r],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(Se),this._element.classList.add(we),U.trigger(this._element,be)};this._element.style[e]="",this._queueCallback(n,this._element,!0)}_isShown(t=this._element){return t.classList.contains(_e)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=f(t.parent),t}_getDimension(){return this._element.classList.contains(ke)?Ce:Me}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Ie);for(const e of t){const t=K.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=K.find(Te,this._config.parent);return K.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle(Ee,!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"===typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const n=Pe.getOrCreateInstance(this,e);if("string"===typeof t){if("undefined"===typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}U.on(document,xe,Ie,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const e of K.getMultipleElementsFromSelector(this))Pe.getOrCreateInstance(e,{toggle:!1}).toggle()})),_(Pe);var Le="top",Ne="bottom",Re="right",je="left",Fe="auto",Be=[Le,Ne,Re,je],ze="start",Ze="end",Ue="clippingParents",He="viewport",$e="popper",Ge="reference",We=Be.reduce((function(t,e){return t.concat([e+"-"+ze,e+"-"+Ze])}),[]),Ve=[].concat(Be,[Fe]).reduce((function(t,e){return t.concat([e,e+"-"+ze,e+"-"+Ze])}),[]),Ye="beforeRead",Xe="read",qe="afterRead",Ke="beforeMain",Je="main",Qe="afterMain",tn="beforeWrite",en="write",nn="afterWrite",rn=[Ye,Xe,qe,Ke,Je,Qe,tn,en,nn];function on(t){return t?(t.nodeName||"").toLowerCase():null}function an(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function sn(t){var e=an(t).Element;return t instanceof e||t instanceof Element}function un(t){var e=an(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ln(t){if("undefined"===typeof ShadowRoot)return!1;var e=an(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function cn(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];un(i)&&on(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))}function fn(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]),a=o.reduce((function(t,e){return t[e]="",t}),{});un(r)&&on(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}}const hn={name:"applyStyles",enabled:!0,phase:"write",fn:cn,effect:fn,requires:["computeStyles"]};function dn(t){return t.split("-")[0]}var pn=Math.max,gn=Math.min,vn=Math.round;function mn(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function yn(){return!/^((?!chrome|android).)*safari/i.test(mn())}function bn(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&un(t)&&(i=t.offsetWidth>0&&vn(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&vn(r.height)/t.offsetHeight||1);var a=sn(t)?an(t):window,s=a.visualViewport,u=!yn()&&n,l=(r.left+(u&&s?s.offsetLeft:0))/i,c=(r.top+(u&&s?s.offsetTop:0))/o,f=r.width/i,h=r.height/o;return{width:f,height:h,top:c,right:l+f,bottom:c+h,left:l,x:l,y:c}}function xn(t){var e=bn(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function _n(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&ln(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function wn(t){return an(t).getComputedStyle(t)}function Sn(t){return["table","td","th"].indexOf(on(t))>=0}function En(t){return((sn(t)?t.ownerDocument:t.document)||window.document).documentElement}function Tn(t){return"html"===on(t)?t:t.assignedSlot||t.parentNode||(ln(t)?t.host:null)||En(t)}function kn(t){return un(t)&&"fixed"!==wn(t).position?t.offsetParent:null}function Cn(t){var e=/firefox/i.test(mn()),n=/Trident/i.test(mn());if(n&&un(t)){var r=wn(t);if("fixed"===r.position)return null}var i=Tn(t);ln(i)&&(i=i.host);while(un(i)&&["html","body"].indexOf(on(i))<0){var o=wn(i);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return i;i=i.parentNode}return null}function Mn(t){var e=an(t),n=kn(t);while(n&&Sn(n)&&"static"===wn(n).position)n=kn(n);return n&&("html"===on(n)||"body"===on(n)&&"static"===wn(n).position)?e:n||Cn(t)||e}function An(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function In(t,e,n){return pn(t,gn(e,n))}function On(t,e,n){var r=In(t,e,n);return r>n?n:r}function Dn(){return{top:0,right:0,bottom:0,left:0}}function Pn(t){return Object.assign({},Dn(),t)}function Ln(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var Nn=function(t,e){return t="function"===typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t,Pn("number"!==typeof t?t:Ln(t,Be))};function Rn(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=dn(n.placement),u=An(s),l=[je,Re].indexOf(s)>=0,c=l?"height":"width";if(o&&a){var f=Nn(i.padding,n),h=xn(o),d="y"===u?Le:je,p="y"===u?Ne:Re,g=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],v=a[u]-n.rects.reference[u],m=Mn(o),y=m?"y"===u?m.clientHeight||0:m.clientWidth||0:0,b=g/2-v/2,x=f[d],_=y-h[c]-f[p],w=y/2-h[c]/2+b,S=In(x,w,_),E=u;n.modifiersData[r]=(e={},e[E]=S,e.centerOffset=S-w,e)}}function jn(t){var e=t.state,n=t.options,r=n.element,i=void 0===r?"[data-popper-arrow]":r;null!=i&&("string"!==typeof i||(i=e.elements.popper.querySelector(i),i))&&_n(e.elements.popper,i)&&(e.elements.arrow=i)}const Fn={name:"arrow",enabled:!0,phase:"main",fn:Rn,effect:jn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bn(t){return t.split("-")[1]}var zn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zn(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:vn(n*i)/i||0,y:vn(r*i)/i||0}}function Un(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,a=t.offsets,s=t.position,u=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,f=t.isFixed,h=a.x,d=void 0===h?0:h,p=a.y,g=void 0===p?0:p,v="function"===typeof c?c({x:d,y:g}):{x:d,y:g};d=v.x,g=v.y;var m=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=je,x=Le,_=window;if(l){var w=Mn(n),S="clientHeight",E="clientWidth";if(w===an(n)&&(w=En(n),"static"!==wn(w).position&&"absolute"===s&&(S="scrollHeight",E="scrollWidth")),i===Le||(i===je||i===Re)&&o===Ze){x=Ne;var T=f&&w===_&&_.visualViewport?_.visualViewport.height:w[S];g-=T-r.height,g*=u?1:-1}if(i===je||(i===Le||i===Ne)&&o===Ze){b=Re;var k=f&&w===_&&_.visualViewport?_.visualViewport.width:w[E];d-=k-r.width,d*=u?1:-1}}var C,M=Object.assign({position:s},l&&zn),A=!0===c?Zn({x:d,y:g},an(n)):{x:d,y:g};return d=A.x,g=A.y,u?Object.assign({},M,(C={},C[x]=y?"0":"",C[b]=m?"0":"",C.transform=(_.devicePixelRatio||1)<=1?"translate("+d+"px, "+g+"px)":"translate3d("+d+"px, "+g+"px, 0)",C)):Object.assign({},M,(e={},e[x]=y?g+"px":"",e[b]=m?d+"px":"",e.transform="",e))}function Hn(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,l={placement:dn(e.placement),variation:Bn(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Un(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Un(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const $n={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Hn,data:{}};var Gn={passive:!0};function Wn(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=an(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&l.forEach((function(t){t.addEventListener("scroll",n.update,Gn)})),s&&u.addEventListener("resize",n.update,Gn),function(){o&&l.forEach((function(t){t.removeEventListener("scroll",n.update,Gn)})),s&&u.removeEventListener("resize",n.update,Gn)}}const Vn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wn,data:{}};var Yn={left:"right",right:"left",bottom:"top",top:"bottom"};function Xn(t){return t.replace(/left|right|bottom|top/g,(function(t){return Yn[t]}))}var qn={start:"end",end:"start"};function Kn(t){return t.replace(/start|end/g,(function(t){return qn[t]}))}function Jn(t){var e=an(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Qn(t){return bn(En(t)).left+Jn(t).scrollLeft}function tr(t,e){var n=an(t),r=En(t),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;var l=yn();(l||!l&&"fixed"===e)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s+Qn(t),y:u}}function er(t){var e,n=En(t),r=Jn(t),i=null==(e=t.ownerDocument)?void 0:e.body,o=pn(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=pn(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Qn(t),u=-r.scrollTop;return"rtl"===wn(i||n).direction&&(s+=pn(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}function nr(t){var e=wn(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function rr(t){return["html","body","#document"].indexOf(on(t))>=0?t.ownerDocument.body:un(t)&&nr(t)?t:rr(Tn(t))}function ir(t,e){var n;void 0===e&&(e=[]);var r=rr(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),o=an(r),a=i?[o].concat(o.visualViewport||[],nr(r)?r:[]):r,s=e.concat(a);return i?s:s.concat(ir(Tn(a)))}function or(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ar(t,e){var n=bn(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function sr(t,e,n){return e===He?or(tr(t,n)):sn(e)?ar(e,n):or(er(En(t)))}function ur(t){var e=ir(Tn(t)),n=["absolute","fixed"].indexOf(wn(t).position)>=0,r=n&&un(t)?Mn(t):t;return sn(r)?e.filter((function(t){return sn(t)&&_n(t,r)&&"body"!==on(t)})):[]}function lr(t,e,n,r){var i="clippingParents"===e?ur(t):[].concat(e),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(e,n){var i=sr(t,n,r);return e.top=pn(i.top,e.top),e.right=gn(i.right,e.right),e.bottom=gn(i.bottom,e.bottom),e.left=pn(i.left,e.left),e}),sr(t,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function cr(t){var e,n=t.reference,r=t.element,i=t.placement,o=i?dn(i):null,a=i?Bn(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case Le:e={x:s,y:n.y-r.height};break;case Ne:e={x:s,y:n.y+n.height};break;case Re:e={x:n.x+n.width,y:u};break;case je:e={x:n.x-r.width,y:u};break;default:e={x:n.x,y:n.y}}var l=o?An(o):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case ze:e[l]=e[l]-(n[c]/2-r[c]/2);break;case Ze:e[l]=e[l]+(n[c]/2-r[c]/2);break}}return e}function fr(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=void 0===r?t.placement:r,o=n.strategy,a=void 0===o?t.strategy:o,s=n.boundary,u=void 0===s?Ue:s,l=n.rootBoundary,c=void 0===l?He:l,f=n.elementContext,h=void 0===f?$e:f,d=n.altBoundary,p=void 0!==d&&d,g=n.padding,v=void 0===g?0:g,m=Pn("number"!==typeof v?v:Ln(v,Be)),y=h===$e?Ge:$e,b=t.rects.popper,x=t.elements[p?y:h],_=lr(sn(x)?x:x.contextElement||En(t.elements.popper),u,c,a),w=bn(t.elements.reference),S=cr({reference:w,element:b,strategy:"absolute",placement:i}),E=or(Object.assign({},b,S)),T=h===$e?E:w,k={top:_.top-T.top+m.top,bottom:T.bottom-_.bottom+m.bottom,left:_.left-T.left+m.left,right:T.right-_.right+m.right},C=t.modifiersData.offset;if(h===$e&&C){var M=C[i];Object.keys(k).forEach((function(t){var e=[Re,Ne].indexOf(t)>=0?1:-1,n=[Le,Ne].indexOf(t)>=0?"y":"x";k[t]+=M[n]*e}))}return k}function hr(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,l=void 0===u?Ve:u,c=Bn(r),f=c?s?We:We.filter((function(t){return Bn(t)===c})):Be,h=f.filter((function(t){return l.indexOf(t)>=0}));0===h.length&&(h=f);var d=h.reduce((function(e,n){return e[n]=fr(t,{placement:n,boundary:i,rootBoundary:o,padding:a})[dn(n)],e}),{});return Object.keys(d).sort((function(t,e){return d[t]-d[e]}))}function dr(t){if(dn(t)===Fe)return[];var e=Xn(t);return[Kn(t),e,Kn(e)]}function pr(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,l=n.padding,c=n.boundary,f=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,p=void 0===d||d,g=n.allowedAutoPlacements,v=e.options.placement,m=dn(v),y=m===v,b=u||(y||!p?[Xn(v)]:dr(v)),x=[v].concat(b).reduce((function(t,n){return t.concat(dn(n)===Fe?hr(e,{placement:n,boundary:c,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),_=e.rects.reference,w=e.rects.popper,S=new Map,E=!0,T=x[0],k=0;k<x.length;k++){var C=x[k],M=dn(C),A=Bn(C)===ze,I=[Le,Ne].indexOf(M)>=0,O=I?"width":"height",D=fr(e,{placement:C,boundary:c,rootBoundary:f,altBoundary:h,padding:l}),P=I?A?Re:je:A?Ne:Le;_[O]>w[O]&&(P=Xn(P));var L=Xn(P),N=[];if(o&&N.push(D[M]<=0),s&&N.push(D[P]<=0,D[L]<=0),N.every((function(t){return t}))){T=C,E=!1;break}S.set(C,N)}if(E)for(var R=p?3:1,j=function(t){var e=x.find((function(e){var n=S.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return T=e,"break"},F=R;F>0;F--){var B=j(F);if("break"===B)break}e.placement!==T&&(e.modifiersData[r]._skip=!0,e.placement=T,e.reset=!0)}}const gr={name:"flip",enabled:!0,phase:"main",fn:pr,requiresIfExists:["offset"],data:{_skip:!1}};function vr(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function mr(t){return[Le,Re,Ne,je].some((function(e){return t[e]>=0}))}function yr(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=fr(e,{elementContext:"reference"}),s=fr(e,{altBoundary:!0}),u=vr(a,r),l=vr(s,i,o),c=mr(u),f=mr(l);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const br={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yr};function xr(t,e,n){var r=dn(t),i=[je,Le].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[je,Re].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function _r(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=void 0===i?[0,0]:i,a=Ve.reduce((function(t,n){return t[n]=xr(n,e.rects,o),t}),{}),s=a[e.placement],u=s.x,l=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=l),e.modifiersData[r]=a}const wr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_r};function Sr(t){var e=t.state,n=t.name;e.modifiersData[n]=cr({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Er={name:"popperOffsets",enabled:!0,phase:"read",fn:Sr,data:{}};function Tr(t){return"x"===t?"y":"x"}function kr(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,f=n.padding,h=n.tether,d=void 0===h||h,p=n.tetherOffset,g=void 0===p?0:p,v=fr(e,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),m=dn(e.placement),y=Bn(e.placement),b=!y,x=An(m),_=Tr(x),w=e.modifiersData.popperOffsets,S=e.rects.reference,E=e.rects.popper,T="function"===typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,k="number"===typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),C=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,M={x:0,y:0};if(w){if(o){var A,I="y"===x?Le:je,O="y"===x?Ne:Re,D="y"===x?"height":"width",P=w[x],L=P+v[I],N=P-v[O],R=d?-E[D]/2:0,j=y===ze?S[D]:E[D],F=y===ze?-E[D]:-S[D],B=e.elements.arrow,z=d&&B?xn(B):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Dn(),U=Z[I],H=Z[O],$=In(0,S[D],z[D]),G=b?S[D]/2-R-$-U-k.mainAxis:j-$-U-k.mainAxis,W=b?-S[D]/2+R+$+H+k.mainAxis:F+$+H+k.mainAxis,V=e.elements.arrow&&Mn(e.elements.arrow),Y=V?"y"===x?V.clientTop||0:V.clientLeft||0:0,X=null!=(A=null==C?void 0:C[x])?A:0,q=P+G-X-Y,K=P+W-X,J=In(d?gn(L,q):L,P,d?pn(N,K):N);w[x]=J,M[x]=J-P}if(s){var Q,tt="x"===x?Le:je,et="x"===x?Ne:Re,nt=w[_],rt="y"===_?"height":"width",it=nt+v[tt],ot=nt-v[et],at=-1!==[Le,je].indexOf(m),st=null!=(Q=null==C?void 0:C[_])?Q:0,ut=at?it:nt-S[rt]-E[rt]-st+k.altAxis,lt=at?nt+S[rt]+E[rt]-st-k.altAxis:ot,ct=d&&at?On(ut,nt,lt):In(d?ut:it,nt,d?lt:ot);w[_]=ct,M[_]=ct-nt}e.modifiersData[r]=M}}const Cr={name:"preventOverflow",enabled:!0,phase:"main",fn:kr,requiresIfExists:["offset"]};function Mr(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Ar(t){return t!==an(t)&&un(t)?Mr(t):Jn(t)}function Ir(t){var e=t.getBoundingClientRect(),n=vn(e.width)/t.offsetWidth||1,r=vn(e.height)/t.offsetHeight||1;return 1!==n||1!==r}function Or(t,e,n){void 0===n&&(n=!1);var r=un(e),i=un(e)&&Ir(e),o=En(e),a=bn(t,i,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==on(e)||nr(o))&&(s=Ar(e)),un(e)?(u=bn(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):o&&(u.x=Qn(o))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function Dr(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name);var o=[].concat(t.requires||[],t.requiresIfExists||[]);o.forEach((function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||i(t)})),r}function Pr(t){var e=Dr(t);return rn.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}function Lr(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}function Nr(t){var e=t.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}var Rr={placement:"bottom",modifiers:[],strategy:"absolute"};function jr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"===typeof t.getBoundingClientRect)}))}function Fr(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,r=void 0===n?[]:n,i=e.defaultOptions,o=void 0===i?Rr:i;return function(t,e,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rr,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},a=[],s=!1,u={state:i,setOptions:function(n){var a="function"===typeof n?n(i.options):n;c(),i.options=Object.assign({},o,i.options,a),i.scrollParents={reference:sn(t)?ir(t):t.contextElement?ir(t.contextElement):[],popper:ir(e)};var s=Pr(Nr([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter((function(t){return t.enabled})),l(),u.update()},forceUpdate:function(){if(!s){var t=i.elements,e=t.reference,n=t.popper;if(jr(e,n)){i.rects={reference:Or(e,Mn(n),"fixed"===i.options.strategy),popper:xn(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(t){return i.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,l=o.options,c=void 0===l?{}:l,f=o.name;"function"===typeof a&&(i=a({state:i,options:c,name:f,instance:u})||i)}else i.reset=!1,r=-1}}},update:Lr((function(){return new Promise((function(t){u.forceUpdate(),t(i)}))})),destroy:function(){c(),s=!0}};if(!jr(t,e))return u;function l(){i.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,r=void 0===n?{}:n,o=t.effect;if("function"===typeof o){var s=o({state:i,name:e,instance:u,options:r}),l=function(){};a.push(s||l)}}))}function c(){a.forEach((function(t){return t()})),a=[]}return u.setOptions(n).then((function(t){!s&&n.onFirstUpdate&&n.onFirstUpdate(t)})),u}}var Br=Fr(),zr=[Vn,Er,$n,hn],Zr=Fr({defaultModifiers:zr}),Ur=[Vn,Er,$n,hn,wr,gr,Cr,Fn,br],Hr=Fr({defaultModifiers:Ur});const $r=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Qe,afterRead:qe,afterWrite:nn,applyStyles:hn,arrow:Fn,auto:Fe,basePlacements:Be,beforeMain:Ke,beforeRead:Ye,beforeWrite:tn,bottom:Ne,clippingParents:Ue,computeStyles:$n,createPopper:Hr,createPopperBase:Br,createPopperLite:Zr,detectOverflow:fr,end:Ze,eventListeners:Vn,flip:gr,hide:br,left:je,main:Je,modifierPhases:rn,offset:wr,placements:Ve,popper:$e,popperGenerator:Fr,popperOffsets:Er,preventOverflow:Cr,read:Xe,reference:Ge,right:Re,start:ze,top:Le,variationPlacements:We,viewport:He,write:en},Symbol.toStringTag,{value:"Module"})),Gr="dropdown",Wr="bs.dropdown",Vr=`.${Wr}`,Yr=".data-api",Xr="Escape",qr="Tab",Kr="ArrowUp",Jr="ArrowDown",Qr=2,ti=`hide${Vr}`,ei=`hidden${Vr}`,ni=`show${Vr}`,ri=`shown${Vr}`,ii=`click${Vr}${Yr}`,oi=`keydown${Vr}${Yr}`,ai=`keyup${Vr}${Yr}`,si="show",ui="dropup",li="dropend",ci="dropstart",fi="dropup-center",hi="dropdown-center",di='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',pi=`${di}.${si}`,gi=".dropdown-menu",vi=".navbar",mi=".navbar-nav",yi=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",bi=x()?"top-end":"top-start",xi=x()?"top-start":"top-end",_i=x()?"bottom-end":"bottom-start",wi=x()?"bottom-start":"bottom-end",Si=x()?"left-start":"right-start",Ei=x()?"right-start":"left-start",Ti="top",ki="bottom",Ci={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Mi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ai extends X{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=K.next(this._element,gi)[0]||K.prev(this._element,gi)[0]||K.findOne(gi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ci}static get DefaultType(){return Mi}static get NAME(){return Gr}toggle(){return this._isShown()?this.hide():this.show()}show(){if(d(this._element)||this._isShown())return;const t={relatedTarget:this._element},e=U.trigger(this._element,ni,t);if(!e.defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(mi))for(const t of[].concat(...document.body.children))U.on(t,"mouseover",g);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(si),this._element.classList.add(si),U.trigger(this._element,ri,t)}}hide(){if(d(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){const e=U.trigger(this._element,ti,t);if(!e.defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))U.off(t,"mouseover",g);this._popper&&this._popper.destroy(),this._menu.classList.remove(si),this._element.classList.remove(si),this._element.setAttribute("aria-expanded","false"),W.removeDataAttribute(this._menu,"popper"),U.trigger(this._element,ei,t)}}_getConfig(t){if(t=super._getConfig(t),"object"===typeof t.reference&&!c(t.reference)&&"function"!==typeof t.reference.getBoundingClientRect)throw new TypeError(`${Gr.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if("undefined"===typeof $r)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:c(this._config.reference)?t=f(this._config.reference):"object"===typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Hr(t,this._menu,e)}_isShown(){return this._menu.classList.contains(si)}_getPlacement(){const t=this._parent;if(t.classList.contains(li))return Si;if(t.classList.contains(ci))return Ei;if(t.classList.contains(fi))return Ti;if(t.classList.contains(hi))return ki;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains(ui)?e?xi:bi:e?wi:_i}_detectNavbar(){return null!==this._element.closest(vi)}_getOffset(){const{offset:t}=this._config;return"string"===typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"===typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(W.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...w(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const n=K.find(yi,this._menu).filter((t=>h(t)));n.length&&E(n,e,t===Jr,!n.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Ai.getOrCreateInstance(this,t);if("string"===typeof t){if("undefined"===typeof e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(t.button===Qr||"keyup"===t.type&&t.key!==qr)return;const e=K.find(pi);for(const n of e){const e=Ai.getInstance(n);if(!e||!1===e._config.autoClose)continue;const r=t.composedPath(),i=r.includes(e._menu);if(r.includes(e._element)||"inside"===e._config.autoClose&&!i||"outside"===e._config.autoClose&&i)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&t.key===qr||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n=t.key===Xr,r=[Kr,Jr].includes(t.key);if(!r&&!n)return;if(e&&!n)return;t.preventDefault();const i=this.matches(di)?this:K.prev(this,di)[0]||K.next(this,di)[0]||K.findOne(di,t.delegateTarget.parentNode),o=Ai.getOrCreateInstance(i);if(r)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),i.focus())}}U.on(document,oi,di,Ai.dataApiKeydownHandler),U.on(document,oi,gi,Ai.dataApiKeydownHandler),U.on(document,ii,Ai.clearMenus),U.on(document,ai,Ai.clearMenus),U.on(document,ii,di,(function(t){t.preventDefault(),Ai.getOrCreateInstance(this).toggle()})),_(Ai);const Ii="backdrop",Oi="fade",Di="show",Pi=`mousedown.bs.${Ii}`,Li={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ni={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ri extends V{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Li}static get DefaultType(){return Ni}static get NAME(){return Ii}show(t){if(!this._config.isVisible)return void w(t);this._append();const e=this._getElement();this._config.isAnimated&&v(e),e.classList.add(Di),this._emulateAnimation((()=>{w(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Di),this._emulateAnimation((()=>{this.dispose(),w(t)}))):w(t)}dispose(){this._isAppended&&(U.off(this._element,Pi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(Oi),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=f(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),U.on(t,Pi,(()=>{w(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){S(t,this._getElement(),this._config.isAnimated)}}const ji="focustrap",Fi="bs.focustrap",Bi=`.${Fi}`,zi=`focusin${Bi}`,Zi=`keydown.tab${Bi}`,Ui="Tab",Hi="forward",$i="backward",Gi={autofocus:!0,trapElement:null},Wi={autofocus:"boolean",trapElement:"element"};class Vi extends V{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Gi}static get DefaultType(){return Wi}static get NAME(){return ji}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),U.off(document,Bi),U.on(document,zi,(t=>this._handleFocusin(t))),U.on(document,Zi,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,U.off(document,Bi))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const n=K.focusableChildren(e);0===n.length?e.focus():this._lastTabNavDirection===$i?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){t.key===Ui&&(this._lastTabNavDirection=t.shiftKey?$i:Hi)}}const Yi=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Xi=".sticky-top",qi="padding-right",Ki="margin-right";class Ji{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,qi,(e=>e+t)),this._setElementAttributes(Yi,qi,(e=>e+t)),this._setElementAttributes(Xi,Ki,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,qi),this._resetElementAttributes(Yi,qi),this._resetElementAttributes(Xi,Ki)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const r=this.getWidth(),i=t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+r)return;this._saveInitialAttribute(t,e);const i=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${n(Number.parseFloat(i))}px`)};this._applyManipulationCallback(t,i)}_saveInitialAttribute(t,e){const n=t.style.getPropertyValue(e);n&&W.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){const n=t=>{const n=W.getDataAttribute(t,e);null!==n?(W.removeDataAttribute(t,e),t.style.setProperty(e,n)):t.style.removeProperty(e)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,e){if(c(t))e(t);else for(const n of K.find(t,this._element))e(n)}}const Qi="modal",to="bs.modal",eo=`.${to}`,no=".data-api",ro="Escape",io=`hide${eo}`,oo=`hidePrevented${eo}`,ao=`hidden${eo}`,so=`show${eo}`,uo=`shown${eo}`,lo=`resize${eo}`,co=`click.dismiss${eo}`,fo=`mousedown.dismiss${eo}`,ho=`keydown.dismiss${eo}`,po=`click${eo}${no}`,go="modal-open",vo="fade",mo="show",yo="modal-static",bo=".modal.show",xo=".modal-dialog",_o=".modal-body",wo='[data-bs-toggle="modal"]',So={backdrop:!0,focus:!0,keyboard:!0},Eo={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class To extends X{constructor(t,e){super(t,e),this._dialog=K.findOne(xo,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ji,this._addEventListeners()}static get Default(){return So}static get DefaultType(){return Eo}static get NAME(){return Qi}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;const e=U.trigger(this._element,so,{relatedTarget:t});e.defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(go),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){if(!this._isShown||this._isTransitioning)return;const t=U.trigger(this._element,io);t.defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(mo),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){U.off(window,eo),U.off(this._dialog,eo),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ri({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Vi({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=K.findOne(_o,this._dialog);e&&(e.scrollTop=0),v(this._element),this._element.classList.add(mo);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,U.trigger(this._element,uo,{relatedTarget:t})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){U.on(this._element,ho,(t=>{t.key===ro&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),U.on(window,lo,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),U.on(this._element,fo,(t=>{U.one(this._element,co,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(go),this._resetAdjustments(),this._scrollBar.reset(),U.trigger(this._element,ao)}))}_isAnimated(){return this._element.classList.contains(vo)}_triggerBackdropTransition(){const t=U.trigger(this._element,oo);if(t.defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;"hidden"===n||this._element.classList.contains(yo)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(yo),this._queueCallback((()=>{this._element.classList.remove(yo),this._queueCallback((()=>{this._element.style.overflowY=n}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;if(n&&!t){const t=x()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!n&&t){const t=x()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const n=To.getOrCreateInstance(this,t);if("string"===typeof t){if("undefined"===typeof n[t])throw new TypeError(`No method named "${t}"`);n[t](e)}}))}}U.on(document,po,wo,(function(t){const e=K.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),U.one(e,so,(t=>{t.defaultPrevented||U.one(e,ao,(()=>{h(this)&&this.focus()}))}));const n=K.findOne(bo);n&&To.getInstance(n).hide();const r=To.getOrCreateInstance(e);r.toggle(this)})),J(To),_(To);const ko="offcanvas",Co="bs.offcanvas",Mo=`.${Co}`,Ao=".data-api",Io=`load${Mo}${Ao}`,Oo="Escape",Do="show",Po="showing",Lo="hiding",No="offcanvas-backdrop",Ro=".offcanvas.show",jo=`show${Mo}`,Fo=`shown${Mo}`,Bo=`hide${Mo}`,zo=`hidePrevented${Mo}`,Zo=`hidden${Mo}`,Uo=`resize${Mo}`,Ho=`click${Mo}${Ao}`,$o=`keydown.dismiss${Mo}`,Go='[data-bs-toggle="offcanvas"]',Wo={backdrop:!0,keyboard:!0,scroll:!1},Vo={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Yo extends X{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Wo}static get DefaultType(){return Vo}static get NAME(){return ko}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;const e=U.trigger(this._element,jo,{relatedTarget:t});if(e.defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Ji).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Po);const n=()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Do),this._element.classList.remove(Po),U.trigger(this._element,Fo,{relatedTarget:t})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown)return;const t=U.trigger(this._element,Bo);if(t.defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Lo),this._backdrop.hide();const e=()=>{this._element.classList.remove(Do,Lo),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Ji).reset(),U.trigger(this._element,Zo)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{"static"!==this._config.backdrop?this.hide():U.trigger(this._element,zo)},e=Boolean(this._config.backdrop);return new Ri({className:No,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new Vi({trapElement:this._element})}_addEventListeners(){U.on(this._element,$o,(t=>{t.key===Oo&&(this._config.keyboard?this.hide():U.trigger(this._element,zo))}))}static jQueryInterface(t){return this.each((function(){const e=Yo.getOrCreateInstance(this,t);if("string"===typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}U.on(document,Ho,Go,(function(t){const e=K.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),d(this))return;U.one(e,Zo,(()=>{h(this)&&this.focus()}));const n=K.findOne(Ro);n&&n!==e&&Yo.getInstance(n).hide();const r=Yo.getOrCreateInstance(e);r.toggle(this)})),U.on(window,Io,(()=>{for(const t of K.find(Ro))Yo.getOrCreateInstance(t).show()})),U.on(window,Uo,(()=>{for(const t of K.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Yo.getOrCreateInstance(t).hide()})),J(Yo),_(Yo);const Xo=/^aria-[\w-]*$/i,qo={"*":["class","dir","id","lang","role",Xo],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ko=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Jo=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Qo=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!Ko.has(n)||Boolean(Jo.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(n)))};function ta(t,e,n){if(!t.length)return t;if(n&&"function"===typeof n)return n(t);const r=new window.DOMParser,i=r.parseFromString(t,"text/html"),o=[].concat(...i.body.querySelectorAll("*"));for(const a of o){const t=a.nodeName.toLowerCase();if(!Object.keys(e).includes(t)){a.remove();continue}const n=[].concat(...a.attributes),r=[].concat(e["*"]||[],e[t]||[]);for(const e of n)Qo(e,r)||a.removeAttribute(e.nodeName)}return i.body.innerHTML}const ea="TemplateFactory",na={allowList:qo,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ra={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ia={entry:"(string|element|function|null)",selector:"(string|element)"};class oa extends V{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return na}static get DefaultType(){return ra}static get NAME(){return ea}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[r,i]of Object.entries(this._config.content))this._setContent(t,i,r);const e=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&e.classList.add(...n.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,n]of Object.entries(t))super._typeCheckConfig({selector:e,entry:n},ia)}_setContent(t,e,n){const r=K.findOne(n,t);r&&(e=this._resolvePossibleFunction(e),e?c(e)?this._putElementInTemplate(f(e),r):this._config.html?r.innerHTML=this._maybeSanitize(e):r.textContent=e:r.remove())}_maybeSanitize(t){return this._config.sanitize?ta(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return w(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const aa="tooltip",sa=new Set(["sanitize","allowList","sanitizeFn"]),ua="fade",la="modal",ca="show",fa=".tooltip-inner",ha=`.${la}`,da="hide.bs.modal",pa="hover",ga="focus",va="click",ma="manual",ya="hide",ba="hidden",xa="show",_a="shown",wa="inserted",Sa="click",Ea="focusin",Ta="focusout",ka="mouseenter",Ca="mouseleave",Ma={AUTO:"auto",TOP:"top",RIGHT:x()?"left":"right",BOTTOM:"bottom",LEFT:x()?"right":"left"},Aa={allowList:qo,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Ia={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Oa extends X{constructor(t,e){if("undefined"===typeof $r)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Aa}static get DefaultType(){return Ia}static get NAME(){return aa}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),U.off(this._element.closest(ha),da,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=U.trigger(this._element,this.constructor.eventName(xa)),e=p(this._element),n=(e||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!n)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(r),U.trigger(this._element,this.constructor.eventName(wa))),this._popper=this._createPopper(r),r.classList.add(ca),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))U.on(a,"mouseover",g);const o=()=>{U.trigger(this._element,this.constructor.eventName(_a)),!1===this._isHovered&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown())return;const t=U.trigger(this._element,this.constructor.eventName(ya));if(t.defaultPrevented)return;const e=this._getTipElement();if(e.classList.remove(ca),"ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))U.off(r,"mouseover",g);this._activeTrigger[va]=!1,this._activeTrigger[ga]=!1,this._activeTrigger[pa]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),U.trigger(this._element,this.constructor.eventName(ba)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(ua,ca),e.classList.add(`bs-${this.constructor.NAME}-auto`);const n=s(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(ua),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new oa({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[fa]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ua)}_isShown(){return this.tip&&this.tip.classList.contains(ca)}_createPopper(t){const e=w(this._config.placement,[this,t,this._element]),n=Ma[e.toUpperCase()];return Hr(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return"string"===typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"===typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return w(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...w(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)U.on(this._element,this.constructor.eventName(Sa),this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e.toggle()}));else if(e!==ma){const t=e===pa?this.constructor.eventName(ka):this.constructor.eventName(Ea),n=e===pa?this.constructor.eventName(Ca):this.constructor.eventName(Ta);U.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?ga:pa]=!0,e._enter()})),U.on(this._element,n,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?ga:pa]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},U.on(this._element.closest(ha),da,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=W.getDataAttributes(this._element);for(const n of Object.keys(e))sa.has(n)&&delete e[n];return t={...e,..."object"===typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:f(t.container),"number"===typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"===typeof t.title&&(t.title=t.title.toString()),"number"===typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,n]of Object.entries(this._config))this.constructor.Default[e]!==n&&(t[e]=n);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=Oa.getOrCreateInstance(this,t);if("string"===typeof t){if("undefined"===typeof e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}_(Oa);const Da="popover",Pa=".popover-header",La=".popover-body",Na={...Oa.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Ra={...Oa.DefaultType,content:"(null|string|element|function)"};class ja extends Oa{static get Default(){return Na}static get DefaultType(){return Ra}static get NAME(){return Da}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Pa]:this._getTitle(),[La]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=ja.getOrCreateInstance(this,t);if("string"===typeof t){if("undefined"===typeof e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}_(ja);const Fa="scrollspy",Ba="bs.scrollspy",za=`.${Ba}`,Za=".data-api",Ua=`activate${za}`,Ha=`click${za}`,$a=`load${za}${Za}`,Ga="dropdown-item",Wa="active",Va='[data-bs-spy="scroll"]',Ya="[href]",Xa=".nav, .list-group",qa=".nav-link",Ka=".nav-item",Ja=".list-group-item",Qa=`${qa}, ${Ka} > ${qa}, ${Ja}`,ts=".dropdown",es=".dropdown-toggle",ns={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},rs={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class is extends X{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return ns}static get DefaultType(){return rs}static get NAME(){return Fa}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=f(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"===typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(U.off(this._config.target,Ha),U.on(this._config.target,Ha,Ya,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const n=this._rootElement||window,r=e.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:r,behavior:"smooth"});n.scrollTop=r}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),n=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&t){if(n(o),!r)return}else i||t||n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=K.find(Ya,this._config.target);for(const e of t){if(!e.hash||d(e))continue;const t=K.findOne(decodeURI(e.hash),this._element);h(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Wa),this._activateParents(t),U.trigger(this._element,Ua,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(Ga))K.findOne(es,t.closest(ts)).classList.add(Wa);else for(const e of K.parents(t,Xa))for(const t of K.prev(e,Qa))t.classList.add(Wa)}_clearActiveClass(t){t.classList.remove(Wa);const e=K.find(`${Ya}.${Wa}`,t);for(const n of e)n.classList.remove(Wa)}static jQueryInterface(t){return this.each((function(){const e=is.getOrCreateInstance(this,t);if("string"===typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}U.on(window,$a,(()=>{for(const t of K.find(Va))is.getOrCreateInstance(t)})),_(is);const os="tab",as="bs.tab",ss=`.${as}`,us=`hide${ss}`,ls=`hidden${ss}`,cs=`show${ss}`,fs=`shown${ss}`,hs=`click${ss}`,ds=`keydown${ss}`,ps=`load${ss}`,gs="ArrowLeft",vs="ArrowRight",ms="ArrowUp",ys="ArrowDown",bs="Home",xs="End",_s="active",ws="fade",Ss="show",Es="dropdown",Ts=".dropdown-toggle",ks=".dropdown-menu",Cs=`:not(${Ts})`,Ms='.list-group, .nav, [role="tablist"]',As=".nav-item, .list-group-item",Is=`.nav-link${Cs}, .list-group-item${Cs}, [role="tab"]${Cs}`,Os='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ds=`${Is}, ${Os}`,Ps=`.${_s}[data-bs-toggle="tab"], .${_s}[data-bs-toggle="pill"], .${_s}[data-bs-toggle="list"]`;class Ls extends X{constructor(t){super(t),this._parent=this._element.closest(Ms),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),U.on(this._element,ds,(t=>this._keydown(t))))}static get NAME(){return os}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),n=e?U.trigger(e,us,{relatedTarget:t}):null,r=U.trigger(t,cs,{relatedTarget:e});r.defaultPrevented||n&&n.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(_s),this._activate(K.getElementFromSelector(t));const n=()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),U.trigger(t,fs,{relatedTarget:e})):t.classList.add(Ss)};this._queueCallback(n,t,t.classList.contains(ws))}_deactivate(t,e){if(!t)return;t.classList.remove(_s),t.blur(),this._deactivate(K.getElementFromSelector(t));const n=()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),U.trigger(t,ls,{relatedTarget:e})):t.classList.remove(Ss)};this._queueCallback(n,t,t.classList.contains(ws))}_keydown(t){if(![gs,vs,ms,ys,bs,xs].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!d(t)));let n;if([bs,xs].includes(t.key))n=e[t.key===bs?0:e.length-1];else{const r=[vs,ys].includes(t.key);n=E(e,t.target,r,!0)}n&&(n.focus({preventScroll:!0}),Ls.getOrCreateInstance(n).show())}_getChildren(){return K.find(Ds,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const n of e)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",e),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=K.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const n=this._getOuterElement(t);if(!n.classList.contains(Es))return;const r=(t,r)=>{const i=K.findOne(t,n);i&&i.classList.toggle(r,e)};r(Ts,_s),r(ks,Ss),n.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,n){t.hasAttribute(e)||t.setAttribute(e,n)}_elemIsActive(t){return t.classList.contains(_s)}_getInnerElement(t){return t.matches(Ds)?t:K.findOne(Ds,t)}_getOuterElement(t){return t.closest(As)||t}static jQueryInterface(t){return this.each((function(){const e=Ls.getOrCreateInstance(this);if("string"===typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}U.on(document,hs,Os,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),d(this)||Ls.getOrCreateInstance(this).show()})),U.on(window,ps,(()=>{for(const t of K.find(Ps))Ls.getOrCreateInstance(t)})),_(Ls);const Ns="toast",Rs="bs.toast",js=`.${Rs}`,Fs=`mouseover${js}`,Bs=`mouseout${js}`,zs=`focusin${js}`,Zs=`focusout${js}`,Us=`hide${js}`,Hs=`hidden${js}`,$s=`show${js}`,Gs=`shown${js}`,Ws="fade",Vs="hide",Ys="show",Xs="showing",qs={animation:"boolean",autohide:"boolean",delay:"number"},Ks={animation:!0,autohide:!0,delay:5e3};class Js extends X{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Ks}static get DefaultType(){return qs}static get NAME(){return Ns}show(){const t=U.trigger(this._element,$s);if(t.defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Ws);const e=()=>{this._element.classList.remove(Xs),U.trigger(this._element,Gs),this._maybeScheduleHide()};this._element.classList.remove(Vs),v(this._element),this._element.classList.add(Ys,Xs),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown())return;const t=U.trigger(this._element,Us);if(t.defaultPrevented)return;const e=()=>{this._element.classList.add(Vs),this._element.classList.remove(Xs,Ys),U.trigger(this._element,Hs)};this._element.classList.add(Xs),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Ys),super.dispose()}isShown(){return this._element.classList.contains(Ys)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e;break}if(e)return void this._clearTimeout();const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){U.on(this._element,Fs,(t=>this._onInteraction(t,!0))),U.on(this._element,Bs,(t=>this._onInteraction(t,!1))),U.on(this._element,zs,(t=>this._onInteraction(t,!0))),U.on(this._element,Zs,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=Js.getOrCreateInstance(this,t);if("string"===typeof t){if("undefined"===typeof e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}J(Js),_(Js);const Qs={Alert:at,Button:pt,Carousel:fe,Collapse:Pe,Dropdown:Ai,Modal:To,Offcanvas:Yo,Popover:ja,ScrollSpy:is,Tab:Ls,Toast:Js,Tooltip:Oa};return Qs}))},40101:function(t,e,n){"use strict";var r={};n.r(r),n.d(r,{afterMain:function(){return i.wX},afterRead:function(){return i.r5},afterWrite:function(){return i.MS},applyStyles:function(){return o.Zs},arrow:function(){return o.x7},auto:function(){return i.d7},basePlacements:function(){return i.mv},beforeMain:function(){return i.XM},beforeRead:function(){return i.N7},beforeWrite:function(){return i.iv},bottom:function(){return i.I},clippingParents:function(){return i.zV},computeStyles:function(){return o.o},createPopper:function(){return u.fi},createPopperBase:function(){return a.fi},createPopperLite:function(){return l.fi},detectOverflow:function(){return s.Z},end:function(){return i.ut},eventListeners:function(){return o.JK},flip:function(){return o.RR},hide:function(){return o.Cp},left:function(){return i.t$},main:function(){return i.DH},modifierPhases:function(){return i.xs},offset:function(){return o.cv},placements:function(){return i.Ct},popper:function(){return i.k5},popperGenerator:function(){return a.kZ},popperOffsets:function(){return o.OC},preventOverflow:function(){return o.Yj},read:function(){return i.ij},reference:function(){return i.YP},right:function(){return i.F2},start:function(){return i.BL},top:function(){return i.we},variationPlacements:function(){return i.bw},viewport:function(){return i.Pj},write:function(){return i.cW}});var i=n(87701),o=n(29309),a=n(89188),s=n(23161),u=n(20804),l=n(83151);
/*!
  * Bootstrap v5.3.2 (https://getbootstrap.com/)
  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */
const c=new Map,f={set(t,e,n){c.has(t)||c.set(t,new Map);const r=c.get(t);r.has(e)||0===r.size?r.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get(t,e){return c.has(t)&&c.get(t).get(e)||null},remove(t,e){if(!c.has(t))return;const n=c.get(t);n.delete(e),0===n.size&&c.delete(t)}},h=1e6,d=1e3,p="transitionend",g=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),v=t=>null===t||void 0===t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),m=t=>{do{t+=Math.floor(Math.random()*h)}while(document.getElementById(t));return t},y=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),i=Number.parseFloat(n);return r||i?(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*d):0},b=t=>{t.dispatchEvent(new Event(p))},x=t=>!(!t||"object"!==typeof t)&&("undefined"!==typeof t.jquery&&(t=t[0]),"undefined"!==typeof t.nodeType),_=t=>x(t)?t.jquery?t[0]:t:"string"===typeof t&&t.length>0?document.querySelector(g(t)):null,w=t=>{if(!x(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const e=t.closest("summary");if(e&&e.parentNode!==n)return!1;if(null===e)return!1}return e},S=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||("undefined"!==typeof t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),E=t=>{if(!document.documentElement.attachShadow)return null;if("function"===typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?E(t.parentNode):null},T=()=>{},k=t=>{t.offsetHeight},C=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,M=[],A=t=>{"loading"===document.readyState?(M.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of M)t()})),M.push(t)):t()},I=()=>"rtl"===document.documentElement.dir,O=t=>{A((()=>{const e=C();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}}))},D=(t,e=[],n=t)=>"function"===typeof t?t(...e):n,P=(t,e,n=!0)=>{if(!n)return void D(t);const r=5,i=y(e)+r;let o=!1;const a=({target:n})=>{n===e&&(o=!0,e.removeEventListener(p,a),D(t))};e.addEventListener(p,a),setTimeout((()=>{o||b(e)}),i)},L=(t,e,n,r)=>{const i=t.length;let o=t.indexOf(e);return-1===o?!n&&r?t[i-1]:t[0]:(o+=n?1:-1,r&&(o=(o+i)%i),t[Math.max(0,Math.min(o,i-1))])},N=/[^.]*(?=\..*)\.|.*/,R=/\..*/,j=/::\d+$/,F={};let B=1;const z={mouseenter:"mouseover",mouseleave:"mouseout"},Z=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function U(t,e){return e&&`${e}::${B++}`||t.uidEvent||B++}function H(t){const e=U(t);return t.uidEvent=e,F[e]=F[e]||{},F[e]}function $(t,e){return function n(r){return Q(r,{delegateTarget:t}),n.oneOff&&J.off(t,r.type,e),e.apply(t,[r])}}function G(t,e,n){return function r(i){const o=t.querySelectorAll(e);for(let{target:a}=i;a&&a!==this;a=a.parentNode)for(const s of o)if(s===a)return Q(i,{delegateTarget:a}),r.oneOff&&J.off(t,i.type,e,n),n.apply(a,[i])}}function W(t,e,n=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===n))}function V(t,e,n){const r="string"===typeof e,i=r?n:e||n;let o=K(t);return Z.has(o)||(o=t),[r,i,o]}function Y(t,e,n,r,i){if("string"!==typeof e||!t)return;let[o,a,s]=V(e,n,r);if(e in z){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};a=t(a)}const u=H(t),l=u[s]||(u[s]={}),c=W(l,a,o?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const f=U(a,e.replace(N,"")),h=o?G(t,n,a):$(t,a);h.delegationSelector=o?n:null,h.callable=a,h.oneOff=i,h.uidEvent=f,l[f]=h,t.addEventListener(s,h,o)}function X(t,e,n,r,i){const o=W(e[n],r,i);o&&(t.removeEventListener(n,o,Boolean(i)),delete e[n][o.uidEvent])}function q(t,e,n,r){const i=e[n]||{};for(const[o,a]of Object.entries(i))o.includes(r)&&X(t,e,n,a.callable,a.delegationSelector)}function K(t){return t=t.replace(R,""),z[t]||t}const J={on(t,e,n,r){Y(t,e,n,r,!1)},one(t,e,n,r){Y(t,e,n,r,!0)},off(t,e,n,r){if("string"!==typeof e||!t)return;const[i,o,a]=V(e,n,r),s=a!==e,u=H(t),l=u[a]||{},c=e.startsWith(".");if("undefined"===typeof o){if(c)for(const n of Object.keys(u))q(t,u,n,e.slice(1));for(const[n,r]of Object.entries(l)){const i=n.replace(j,"");s&&!e.includes(i)||X(t,u,a,r.callable,r.delegationSelector)}}else{if(!Object.keys(l).length)return;X(t,u,a,o,i?n:null)}},trigger(t,e,n){if("string"!==typeof e||!t)return null;const r=C(),i=K(e),o=e!==i;let a=null,s=!0,u=!0,l=!1;o&&r&&(a=r.Event(e,n),r(t).trigger(a),s=!a.isPropagationStopped(),u=!a.isImmediatePropagationStopped(),l=a.isDefaultPrevented());const c=Q(new Event(e,{bubbles:s,cancelable:!0}),n);return l&&c.preventDefault(),u&&t.dispatchEvent(c),c.defaultPrevented&&a&&a.preventDefault(),c}};function Q(t,e={}){for(const[r,i]of Object.entries(e))try{t[r]=i}catch(n){Object.defineProperty(t,r,{configurable:!0,get(){return i}})}return t}function tt(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!==typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function et(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const nt={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${et(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${et(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const r of n){let n=r.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=tt(t.dataset[r])}return e},getDataAttribute(t,e){return tt(t.getAttribute(`data-bs-${et(e)}`))}};class rt{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const n=x(e)?nt.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"===typeof n?n:{},...x(e)?nt.getDataAttributes(e):{},..."object"===typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[n,r]of Object.entries(e)){const e=t[n],i=x(e)?"element":v(e);if(!new RegExp(r).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}}const it="5.3.2";class ot extends rt{constructor(t,e){super(),t=_(t),t&&(this._element=t,this._config=this._getConfig(e),f.set(this._element,this.constructor.DATA_KEY,this))}dispose(){f.remove(this._element,this.constructor.DATA_KEY),J.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,n=!0){P(t,e,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return f.get(_(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"===typeof e?e:null)}static get VERSION(){return it}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const at=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&"#"!==n?g(n.trim()):null}return e},st={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter((t=>t.matches(e)))},parents(t,e){const n=[];let r=t.parentNode.closest(e);while(r)n.push(r),r=r.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;while(n){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;while(n){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!S(t)&&w(t)))},getSelectorFromElement(t){const e=at(t);return e&&st.findOne(e)?e:null},getElementFromSelector(t){const e=at(t);return e?st.findOne(e):null},getMultipleElementsFromSelector(t){const e=at(t);return e?st.find(e):[]}},ut=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;J.on(document,n,`[data-bs-dismiss="${r}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),S(this))return;const i=st.getElementFromSelector(this)||this.closest(`.${r}`),o=t.getOrCreateInstance(i);o[e]()}))},lt="alert",ct="bs.alert",ft=`.${ct}`,ht=`close${ft}`,dt=`closed${ft}`,pt="fade",gt="show";class vt extends ot{static get NAME(){return lt}close(){const t=J.trigger(this._element,ht);if(t.defaultPrevented)return;this._element.classList.remove(gt);const e=this._element.classList.contains(pt);this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),J.trigger(this._element,dt),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=vt.getOrCreateInstance(this);if("string"===typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}ut(vt,"close"),O(vt);const mt="button",yt="bs.button",bt=`.${yt}`,xt=".data-api",_t="active",wt='[data-bs-toggle="button"]',St=`click${bt}${xt}`;class Et extends ot{static get NAME(){return mt}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(_t))}static jQueryInterface(t){return this.each((function(){const e=Et.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}J.on(document,St,wt,(t=>{t.preventDefault();const e=t.target.closest(wt),n=Et.getOrCreateInstance(e);n.toggle()})),O(Et);const Tt="swipe",kt=".bs.swipe",Ct=`touchstart${kt}`,Mt=`touchmove${kt}`,At=`touchend${kt}`,It=`pointerdown${kt}`,Ot=`pointerup${kt}`,Dt="touch",Pt="pen",Lt="pointer-event",Nt=40,Rt={endCallback:null,leftCallback:null,rightCallback:null},jt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ft extends rt{constructor(t,e){super(),this._element=t,t&&Ft.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Rt}static get DefaultType(){return jt}static get NAME(){return Tt}dispose(){J.off(this._element,kt)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),D(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Nt)return;const e=t/this._deltaX;this._deltaX=0,e&&D(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(J.on(this._element,It,(t=>this._start(t))),J.on(this._element,Ot,(t=>this._end(t))),this._element.classList.add(Lt)):(J.on(this._element,Ct,(t=>this._start(t))),J.on(this._element,Mt,(t=>this._move(t))),J.on(this._element,At,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===Pt||t.pointerType===Dt)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Bt="carousel",zt="bs.carousel",Zt=`.${zt}`,Ut=".data-api",Ht="ArrowLeft",$t="ArrowRight",Gt=500,Wt="next",Vt="prev",Yt="left",Xt="right",qt=`slide${Zt}`,Kt=`slid${Zt}`,Jt=`keydown${Zt}`,Qt=`mouseenter${Zt}`,te=`mouseleave${Zt}`,ee=`dragstart${Zt}`,ne=`load${Zt}${Ut}`,re=`click${Zt}${Ut}`,ie="carousel",oe="active",ae="slide",se="carousel-item-end",ue="carousel-item-start",le="carousel-item-next",ce="carousel-item-prev",fe=".active",he=".carousel-item",de=fe+he,pe=".carousel-item img",ge=".carousel-indicators",ve="[data-bs-slide], [data-bs-slide-to]",me='[data-bs-ride="carousel"]',ye={[Ht]:Xt,[$t]:Yt},be={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},xe={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class _e extends ot{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=st.findOne(ge,this._element),this._addEventListeners(),this._config.ride===ie&&this.cycle()}static get Default(){return be}static get DefaultType(){return xe}static get NAME(){return Bt}next(){this._slide(Wt)}nextWhenVisible(){!document.hidden&&w(this._element)&&this.next()}prev(){this._slide(Vt)}pause(){this._isSliding&&b(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?J.one(this._element,Kt,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void J.one(this._element,Kt,(()=>this.to(t)));const n=this._getItemIndex(this._getActive());if(n===t)return;const r=t>n?Wt:Vt;this._slide(r,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&J.on(this._element,Jt,(t=>this._keydown(t))),"hover"===this._config.pause&&(J.on(this._element,Qt,(()=>this.pause())),J.on(this._element,te,(()=>this._maybeEnableCycle()))),this._config.touch&&Ft.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of st.find(pe,this._element))J.on(n,ee,(t=>t.preventDefault()));const t=()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),Gt+this._config.interval))},e={leftCallback:()=>this._slide(this._directionToOrder(Yt)),rightCallback:()=>this._slide(this._directionToOrder(Xt)),endCallback:t};this._swipeHelper=new Ft(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=ye[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=st.findOne(fe,this._indicatorsElement);e.classList.remove(oe),e.removeAttribute("aria-current");const n=st.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(oe),n.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const n=this._getActive(),r=t===Wt,i=e||L(this._getItems(),n,r,this._config.wrap);if(i===n)return;const o=this._getItemIndex(i),a=e=>J.trigger(this._element,e,{relatedTarget:i,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:o}),s=a(qt);if(s.defaultPrevented)return;if(!n||!i)return;const u=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=i;const l=r?ue:se,c=r?le:ce;i.classList.add(c),k(i),n.classList.add(l),i.classList.add(l);const f=()=>{i.classList.remove(l,c),i.classList.add(oe),n.classList.remove(oe,c,l),this._isSliding=!1,a(Kt)};this._queueCallback(f,n,this._isAnimated()),u&&this.cycle()}_isAnimated(){return this._element.classList.contains(ae)}_getActive(){return st.findOne(de,this._element)}_getItems(){return st.find(he,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return I()?t===Yt?Vt:Wt:t===Yt?Wt:Vt}_orderToDirection(t){return I()?t===Vt?Yt:Xt:t===Vt?Xt:Yt}static jQueryInterface(t){return this.each((function(){const e=_e.getOrCreateInstance(this,t);if("number"!==typeof t){if("string"===typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}J.on(document,re,ve,(function(t){const e=st.getElementFromSelector(this);if(!e||!e.classList.contains(ie))return;t.preventDefault();const n=_e.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");return r?(n.to(r),void n._maybeEnableCycle()):"next"===nt.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),J.on(window,ne,(()=>{const t=st.find(me);for(const e of t)_e.getOrCreateInstance(e)})),O(_e);const we="collapse",Se="bs.collapse",Ee=`.${Se}`,Te=".data-api",ke=`show${Ee}`,Ce=`shown${Ee}`,Me=`hide${Ee}`,Ae=`hidden${Ee}`,Ie=`click${Ee}${Te}`,Oe="show",De="collapse",Pe="collapsing",Le="collapsed",Ne=`:scope .${De} .${De}`,Re="collapse-horizontal",je="width",Fe="height",Be=".collapse.show, .collapse.collapsing",ze='[data-bs-toggle="collapse"]',Ze={parent:null,toggle:!0},Ue={parent:"(null|element)",toggle:"boolean"};class He extends ot{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=st.find(ze);for(const r of n){const t=st.getSelectorFromElement(r),e=st.find(t).filter((t=>t===this._element));null!==t&&e.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Ze}static get DefaultType(){return Ue}static get NAME(){return we}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Be).filter((t=>t!==this._element)).map((t=>He.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;const e=J.trigger(this._element,ke);if(e.defaultPrevented)return;for(const a of t)a.hide();const n=this._getDimension();this._element.classList.remove(De),this._element.classList.add(Pe),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Pe),this._element.classList.add(De,Oe),this._element.style[n]="",J.trigger(this._element,Ce)},i=n[0].toUpperCase()+n.slice(1),o=`scroll${i}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown())return;const t=J.trigger(this._element,Me);if(t.defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,k(this._element),this._element.classList.add(Pe),this._element.classList.remove(De,Oe);for(const r of this._triggerArray){const t=st.getElementFromSelector(r);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([r],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(Pe),this._element.classList.add(De),J.trigger(this._element,Ae)};this._element.style[e]="",this._queueCallback(n,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Oe)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=_(t.parent),t}_getDimension(){return this._element.classList.contains(Re)?je:Fe}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(ze);for(const e of t){const t=st.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=st.find(Ne,this._config.parent);return st.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle(Le,!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"===typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const n=He.getOrCreateInstance(this,e);if("string"===typeof t){if("undefined"===typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}J.on(document,Ie,ze,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const e of st.getMultipleElementsFromSelector(this))He.getOrCreateInstance(e,{toggle:!1}).toggle()})),O(He);const $e="dropdown",Ge="bs.dropdown",We=`.${Ge}`,Ve=".data-api",Ye="Escape",Xe="Tab",qe="ArrowUp",Ke="ArrowDown",Je=2,Qe=`hide${We}`,tn=`hidden${We}`,en=`show${We}`,nn=`shown${We}`,rn=`click${We}${Ve}`,on=`keydown${We}${Ve}`,an=`keyup${We}${Ve}`,sn="show",un="dropup",ln="dropend",cn="dropstart",fn="dropup-center",hn="dropdown-center",dn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',pn=`${dn}.${sn}`,gn=".dropdown-menu",vn=".navbar",mn=".navbar-nav",yn=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",bn=I()?"top-end":"top-start",xn=I()?"top-start":"top-end",_n=I()?"bottom-end":"bottom-start",wn=I()?"bottom-start":"bottom-end",Sn=I()?"left-start":"right-start",En=I()?"right-start":"left-start",Tn="top",kn="bottom",Cn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Mn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class An extends ot{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=st.next(this._element,gn)[0]||st.prev(this._element,gn)[0]||st.findOne(gn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Cn}static get DefaultType(){return Mn}static get NAME(){return $e}toggle(){return this._isShown()?this.hide():this.show()}show(){if(S(this._element)||this._isShown())return;const t={relatedTarget:this._element},e=J.trigger(this._element,en,t);if(!e.defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(mn))for(const t of[].concat(...document.body.children))J.on(t,"mouseover",T);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(sn),this._element.classList.add(sn),J.trigger(this._element,nn,t)}}hide(){if(S(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){const e=J.trigger(this._element,Qe,t);if(!e.defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))J.off(t,"mouseover",T);this._popper&&this._popper.destroy(),this._menu.classList.remove(sn),this._element.classList.remove(sn),this._element.setAttribute("aria-expanded","false"),nt.removeDataAttribute(this._menu,"popper"),J.trigger(this._element,tn,t)}}_getConfig(t){if(t=super._getConfig(t),"object"===typeof t.reference&&!x(t.reference)&&"function"!==typeof t.reference.getBoundingClientRect)throw new TypeError(`${$e.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if("undefined"===typeof r)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:x(this._config.reference)?t=_(this._config.reference):"object"===typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=u.fi(t,this._menu,e)}_isShown(){return this._menu.classList.contains(sn)}_getPlacement(){const t=this._parent;if(t.classList.contains(ln))return Sn;if(t.classList.contains(cn))return En;if(t.classList.contains(fn))return Tn;if(t.classList.contains(hn))return kn;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains(un)?e?xn:bn:e?wn:_n}_detectNavbar(){return null!==this._element.closest(vn)}_getOffset(){const{offset:t}=this._config;return"string"===typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"===typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(nt.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...D(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const n=st.find(yn,this._menu).filter((t=>w(t)));n.length&&L(n,e,t===Ke,!n.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=An.getOrCreateInstance(this,t);if("string"===typeof t){if("undefined"===typeof e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(t.button===Je||"keyup"===t.type&&t.key!==Xe)return;const e=st.find(pn);for(const n of e){const e=An.getInstance(n);if(!e||!1===e._config.autoClose)continue;const r=t.composedPath(),i=r.includes(e._menu);if(r.includes(e._element)||"inside"===e._config.autoClose&&!i||"outside"===e._config.autoClose&&i)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&t.key===Xe||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n=t.key===Ye,r=[qe,Ke].includes(t.key);if(!r&&!n)return;if(e&&!n)return;t.preventDefault();const i=this.matches(dn)?this:st.prev(this,dn)[0]||st.next(this,dn)[0]||st.findOne(dn,t.delegateTarget.parentNode),o=An.getOrCreateInstance(i);if(r)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),i.focus())}}J.on(document,on,dn,An.dataApiKeydownHandler),J.on(document,on,gn,An.dataApiKeydownHandler),J.on(document,rn,An.clearMenus),J.on(document,an,An.clearMenus),J.on(document,rn,dn,(function(t){t.preventDefault(),An.getOrCreateInstance(this).toggle()})),O(An);const In="backdrop",On="fade",Dn="show",Pn=`mousedown.bs.${In}`,Ln={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Nn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Rn extends rt{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Ln}static get DefaultType(){return Nn}static get NAME(){return In}show(t){if(!this._config.isVisible)return void D(t);this._append();const e=this._getElement();this._config.isAnimated&&k(e),e.classList.add(Dn),this._emulateAnimation((()=>{D(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Dn),this._emulateAnimation((()=>{this.dispose(),D(t)}))):D(t)}dispose(){this._isAppended&&(J.off(this._element,Pn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(On),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=_(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),J.on(t,Pn,(()=>{D(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){P(t,this._getElement(),this._config.isAnimated)}}const jn="focustrap",Fn="bs.focustrap",Bn=`.${Fn}`,zn=`focusin${Bn}`,Zn=`keydown.tab${Bn}`,Un="Tab",Hn="forward",$n="backward",Gn={autofocus:!0,trapElement:null},Wn={autofocus:"boolean",trapElement:"element"};class Vn extends rt{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Gn}static get DefaultType(){return Wn}static get NAME(){return jn}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),J.off(document,Bn),J.on(document,zn,(t=>this._handleFocusin(t))),J.on(document,Zn,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,J.off(document,Bn))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const n=st.focusableChildren(e);0===n.length?e.focus():this._lastTabNavDirection===$n?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){t.key===Un&&(this._lastTabNavDirection=t.shiftKey?$n:Hn)}}const Yn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Xn=".sticky-top",qn="padding-right",Kn="margin-right";class Jn{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,qn,(e=>e+t)),this._setElementAttributes(Yn,qn,(e=>e+t)),this._setElementAttributes(Xn,Kn,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,qn),this._resetElementAttributes(Yn,qn),this._resetElementAttributes(Xn,Kn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const r=this.getWidth(),i=t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+r)return;this._saveInitialAttribute(t,e);const i=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${n(Number.parseFloat(i))}px`)};this._applyManipulationCallback(t,i)}_saveInitialAttribute(t,e){const n=t.style.getPropertyValue(e);n&&nt.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){const n=t=>{const n=nt.getDataAttribute(t,e);null!==n?(nt.removeDataAttribute(t,e),t.style.setProperty(e,n)):t.style.removeProperty(e)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,e){if(x(t))e(t);else for(const n of st.find(t,this._element))e(n)}}const Qn="modal",tr="bs.modal",er=`.${tr}`,nr=".data-api",rr="Escape",ir=`hide${er}`,or=`hidePrevented${er}`,ar=`hidden${er}`,sr=`show${er}`,ur=`shown${er}`,lr=`resize${er}`,cr=`click.dismiss${er}`,fr=`mousedown.dismiss${er}`,hr=`keydown.dismiss${er}`,dr=`click${er}${nr}`,pr="modal-open",gr="fade",vr="show",mr="modal-static",yr=".modal.show",br=".modal-dialog",xr=".modal-body",_r='[data-bs-toggle="modal"]',wr={backdrop:!0,focus:!0,keyboard:!0},Sr={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Er extends ot{constructor(t,e){super(t,e),this._dialog=st.findOne(br,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Jn,this._addEventListeners()}static get Default(){return wr}static get DefaultType(){return Sr}static get NAME(){return Qn}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;const e=J.trigger(this._element,sr,{relatedTarget:t});e.defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(pr),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){if(!this._isShown||this._isTransitioning)return;const t=J.trigger(this._element,ir);t.defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(vr),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){J.off(window,er),J.off(this._dialog,er),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Rn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Vn({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=st.findOne(xr,this._dialog);e&&(e.scrollTop=0),k(this._element),this._element.classList.add(vr);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,J.trigger(this._element,ur,{relatedTarget:t})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){J.on(this._element,hr,(t=>{t.key===rr&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),J.on(window,lr,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),J.on(this._element,fr,(t=>{J.one(this._element,cr,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(pr),this._resetAdjustments(),this._scrollBar.reset(),J.trigger(this._element,ar)}))}_isAnimated(){return this._element.classList.contains(gr)}_triggerBackdropTransition(){const t=J.trigger(this._element,or);if(t.defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;"hidden"===n||this._element.classList.contains(mr)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(mr),this._queueCallback((()=>{this._element.classList.remove(mr),this._queueCallback((()=>{this._element.style.overflowY=n}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;if(n&&!t){const t=I()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!n&&t){const t=I()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const n=Er.getOrCreateInstance(this,t);if("string"===typeof t){if("undefined"===typeof n[t])throw new TypeError(`No method named "${t}"`);n[t](e)}}))}}J.on(document,dr,_r,(function(t){const e=st.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),J.one(e,sr,(t=>{t.defaultPrevented||J.one(e,ar,(()=>{w(this)&&this.focus()}))}));const n=st.findOne(yr);n&&Er.getInstance(n).hide();const r=Er.getOrCreateInstance(e);r.toggle(this)})),ut(Er),O(Er);const Tr="offcanvas",kr="bs.offcanvas",Cr=`.${kr}`,Mr=".data-api",Ar=`load${Cr}${Mr}`,Ir="Escape",Or="show",Dr="showing",Pr="hiding",Lr="offcanvas-backdrop",Nr=".offcanvas.show",Rr=`show${Cr}`,jr=`shown${Cr}`,Fr=`hide${Cr}`,Br=`hidePrevented${Cr}`,zr=`hidden${Cr}`,Zr=`resize${Cr}`,Ur=`click${Cr}${Mr}`,Hr=`keydown.dismiss${Cr}`,$r='[data-bs-toggle="offcanvas"]',Gr={backdrop:!0,keyboard:!0,scroll:!1},Wr={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Vr extends ot{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Gr}static get DefaultType(){return Wr}static get NAME(){return Tr}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;const e=J.trigger(this._element,Rr,{relatedTarget:t});if(e.defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Jn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Dr);const n=()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Or),this._element.classList.remove(Dr),J.trigger(this._element,jr,{relatedTarget:t})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown)return;const t=J.trigger(this._element,Fr);if(t.defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Pr),this._backdrop.hide();const e=()=>{this._element.classList.remove(Or,Pr),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Jn).reset(),J.trigger(this._element,zr)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{"static"!==this._config.backdrop?this.hide():J.trigger(this._element,Br)},e=Boolean(this._config.backdrop);return new Rn({className:Lr,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new Vn({trapElement:this._element})}_addEventListeners(){J.on(this._element,Hr,(t=>{t.key===Ir&&(this._config.keyboard?this.hide():J.trigger(this._element,Br))}))}static jQueryInterface(t){return this.each((function(){const e=Vr.getOrCreateInstance(this,t);if("string"===typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}J.on(document,Ur,$r,(function(t){const e=st.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),S(this))return;J.one(e,zr,(()=>{w(this)&&this.focus()}));const n=st.findOne(Nr);n&&n!==e&&Vr.getInstance(n).hide();const r=Vr.getOrCreateInstance(e);r.toggle(this)})),J.on(window,Ar,(()=>{for(const t of st.find(Nr))Vr.getOrCreateInstance(t).show()})),J.on(window,Zr,(()=>{for(const t of st.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Vr.getOrCreateInstance(t).hide()})),ut(Vr),O(Vr);const Yr=/^aria-[\w-]*$/i,Xr={"*":["class","dir","id","lang","role",Yr],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},qr=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Kr=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Jr=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!qr.has(n)||Boolean(Kr.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(n)))};function Qr(t,e,n){if(!t.length)return t;if(n&&"function"===typeof n)return n(t);const r=new window.DOMParser,i=r.parseFromString(t,"text/html"),o=[].concat(...i.body.querySelectorAll("*"));for(const a of o){const t=a.nodeName.toLowerCase();if(!Object.keys(e).includes(t)){a.remove();continue}const n=[].concat(...a.attributes),r=[].concat(e["*"]||[],e[t]||[]);for(const e of n)Jr(e,r)||a.removeAttribute(e.nodeName)}return i.body.innerHTML}const ti="TemplateFactory",ei={allowList:Xr,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ni={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ri={entry:"(string|element|function|null)",selector:"(string|element)"};class ii extends rt{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return ei}static get DefaultType(){return ni}static get NAME(){return ti}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[r,i]of Object.entries(this._config.content))this._setContent(t,i,r);const e=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&e.classList.add(...n.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,n]of Object.entries(t))super._typeCheckConfig({selector:e,entry:n},ri)}_setContent(t,e,n){const r=st.findOne(n,t);r&&(e=this._resolvePossibleFunction(e),e?x(e)?this._putElementInTemplate(_(e),r):this._config.html?r.innerHTML=this._maybeSanitize(e):r.textContent=e:r.remove())}_maybeSanitize(t){return this._config.sanitize?Qr(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return D(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const oi="tooltip",ai=new Set(["sanitize","allowList","sanitizeFn"]),si="fade",ui="modal",li="show",ci=".tooltip-inner",fi=`.${ui}`,hi="hide.bs.modal",di="hover",pi="focus",gi="click",vi="manual",mi="hide",yi="hidden",bi="show",xi="shown",_i="inserted",wi="click",Si="focusin",Ei="focusout",Ti="mouseenter",ki="mouseleave",Ci={AUTO:"auto",TOP:"top",RIGHT:I()?"left":"right",BOTTOM:"bottom",LEFT:I()?"right":"left"},Mi={allowList:Xr,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Ai={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Ii extends ot{constructor(t,e){if("undefined"===typeof r)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Mi}static get DefaultType(){return Ai}static get NAME(){return oi}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),J.off(this._element.closest(fi),hi,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=J.trigger(this._element,this.constructor.eventName(bi)),e=E(this._element),n=(e||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!n)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(r),J.trigger(this._element,this.constructor.eventName(_i))),this._popper=this._createPopper(r),r.classList.add(li),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))J.on(a,"mouseover",T);const o=()=>{J.trigger(this._element,this.constructor.eventName(xi)),!1===this._isHovered&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown())return;const t=J.trigger(this._element,this.constructor.eventName(mi));if(t.defaultPrevented)return;const e=this._getTipElement();if(e.classList.remove(li),"ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))J.off(r,"mouseover",T);this._activeTrigger[gi]=!1,this._activeTrigger[pi]=!1,this._activeTrigger[di]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),J.trigger(this._element,this.constructor.eventName(yi)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(si,li),e.classList.add(`bs-${this.constructor.NAME}-auto`);const n=m(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(si),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new ii({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ci]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(si)}_isShown(){return this.tip&&this.tip.classList.contains(li)}_createPopper(t){const e=D(this._config.placement,[this,t,this._element]),n=Ci[e.toUpperCase()];return u.fi(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return"string"===typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"===typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return D(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...D(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)J.on(this._element,this.constructor.eventName(wi),this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e.toggle()}));else if(e!==vi){const t=e===di?this.constructor.eventName(Ti):this.constructor.eventName(Si),n=e===di?this.constructor.eventName(ki):this.constructor.eventName(Ei);J.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?pi:di]=!0,e._enter()})),J.on(this._element,n,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?pi:di]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},J.on(this._element.closest(fi),hi,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=nt.getDataAttributes(this._element);for(const n of Object.keys(e))ai.has(n)&&delete e[n];return t={...e,..."object"===typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:_(t.container),"number"===typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"===typeof t.title&&(t.title=t.title.toString()),"number"===typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,n]of Object.entries(this._config))this.constructor.Default[e]!==n&&(t[e]=n);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=Ii.getOrCreateInstance(this,t);if("string"===typeof t){if("undefined"===typeof e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}O(Ii);const Oi="popover",Di=".popover-header",Pi=".popover-body",Li={...Ii.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Ni={...Ii.DefaultType,content:"(null|string|element|function)"};class Ri extends Ii{static get Default(){return Li}static get DefaultType(){return Ni}static get NAME(){return Oi}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Di]:this._getTitle(),[Pi]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=Ri.getOrCreateInstance(this,t);if("string"===typeof t){if("undefined"===typeof e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}O(Ri);const ji="scrollspy",Fi="bs.scrollspy",Bi=`.${Fi}`,zi=".data-api",Zi=`activate${Bi}`,Ui=`click${Bi}`,Hi=`load${Bi}${zi}`,$i="dropdown-item",Gi="active",Wi='[data-bs-spy="scroll"]',Vi="[href]",Yi=".nav, .list-group",Xi=".nav-link",qi=".nav-item",Ki=".list-group-item",Ji=`${Xi}, ${qi} > ${Xi}, ${Ki}`,Qi=".dropdown",to=".dropdown-toggle",eo={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},no={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ro extends ot{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return eo}static get DefaultType(){return no}static get NAME(){return ji}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=_(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"===typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(J.off(this._config.target,Ui),J.on(this._config.target,Ui,Vi,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const n=this._rootElement||window,r=e.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:r,behavior:"smooth"});n.scrollTop=r}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),n=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&t){if(n(o),!r)return}else i||t||n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=st.find(Vi,this._config.target);for(const e of t){if(!e.hash||S(e))continue;const t=st.findOne(decodeURI(e.hash),this._element);w(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Gi),this._activateParents(t),J.trigger(this._element,Zi,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains($i))st.findOne(to,t.closest(Qi)).classList.add(Gi);else for(const e of st.parents(t,Yi))for(const t of st.prev(e,Ji))t.classList.add(Gi)}_clearActiveClass(t){t.classList.remove(Gi);const e=st.find(`${Vi}.${Gi}`,t);for(const n of e)n.classList.remove(Gi)}static jQueryInterface(t){return this.each((function(){const e=ro.getOrCreateInstance(this,t);if("string"===typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}J.on(window,Hi,(()=>{for(const t of st.find(Wi))ro.getOrCreateInstance(t)})),O(ro);const io="tab",oo="bs.tab",ao=`.${oo}`,so=`hide${ao}`,uo=`hidden${ao}`,lo=`show${ao}`,co=`shown${ao}`,fo=`click${ao}`,ho=`keydown${ao}`,po=`load${ao}`,go="ArrowLeft",vo="ArrowRight",mo="ArrowUp",yo="ArrowDown",bo="Home",xo="End",_o="active",wo="fade",So="show",Eo="dropdown",To=".dropdown-toggle",ko=".dropdown-menu",Co=`:not(${To})`,Mo='.list-group, .nav, [role="tablist"]',Ao=".nav-item, .list-group-item",Io=`.nav-link${Co}, .list-group-item${Co}, [role="tab"]${Co}`,Oo='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Do=`${Io}, ${Oo}`,Po=`.${_o}[data-bs-toggle="tab"], .${_o}[data-bs-toggle="pill"], .${_o}[data-bs-toggle="list"]`;class Lo extends ot{constructor(t){super(t),this._parent=this._element.closest(Mo),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),J.on(this._element,ho,(t=>this._keydown(t))))}static get NAME(){return io}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),n=e?J.trigger(e,so,{relatedTarget:t}):null,r=J.trigger(t,lo,{relatedTarget:e});r.defaultPrevented||n&&n.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(_o),this._activate(st.getElementFromSelector(t));const n=()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),J.trigger(t,co,{relatedTarget:e})):t.classList.add(So)};this._queueCallback(n,t,t.classList.contains(wo))}_deactivate(t,e){if(!t)return;t.classList.remove(_o),t.blur(),this._deactivate(st.getElementFromSelector(t));const n=()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),J.trigger(t,uo,{relatedTarget:e})):t.classList.remove(So)};this._queueCallback(n,t,t.classList.contains(wo))}_keydown(t){if(![go,vo,mo,yo,bo,xo].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!S(t)));let n;if([bo,xo].includes(t.key))n=e[t.key===bo?0:e.length-1];else{const r=[vo,yo].includes(t.key);n=L(e,t.target,r,!0)}n&&(n.focus({preventScroll:!0}),Lo.getOrCreateInstance(n).show())}_getChildren(){return st.find(Do,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const n of e)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",e),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=st.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const n=this._getOuterElement(t);if(!n.classList.contains(Eo))return;const r=(t,r)=>{const i=st.findOne(t,n);i&&i.classList.toggle(r,e)};r(To,_o),r(ko,So),n.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,n){t.hasAttribute(e)||t.setAttribute(e,n)}_elemIsActive(t){return t.classList.contains(_o)}_getInnerElement(t){return t.matches(Do)?t:st.findOne(Do,t)}_getOuterElement(t){return t.closest(Ao)||t}static jQueryInterface(t){return this.each((function(){const e=Lo.getOrCreateInstance(this);if("string"===typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}J.on(document,fo,Oo,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),S(this)||Lo.getOrCreateInstance(this).show()})),J.on(window,po,(()=>{for(const t of st.find(Po))Lo.getOrCreateInstance(t)})),O(Lo);const No="toast",Ro="bs.toast",jo=`.${Ro}`,Fo=`mouseover${jo}`,Bo=`mouseout${jo}`,zo=`focusin${jo}`,Zo=`focusout${jo}`,Uo=`hide${jo}`,Ho=`hidden${jo}`,$o=`show${jo}`,Go=`shown${jo}`,Wo="fade",Vo="hide",Yo="show",Xo="showing",qo={animation:"boolean",autohide:"boolean",delay:"number"},Ko={animation:!0,autohide:!0,delay:5e3};class Jo extends ot{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Ko}static get DefaultType(){return qo}static get NAME(){return No}show(){const t=J.trigger(this._element,$o);if(t.defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Wo);const e=()=>{this._element.classList.remove(Xo),J.trigger(this._element,Go),this._maybeScheduleHide()};this._element.classList.remove(Vo),k(this._element),this._element.classList.add(Yo,Xo),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown())return;const t=J.trigger(this._element,Uo);if(t.defaultPrevented)return;const e=()=>{this._element.classList.add(Vo),this._element.classList.remove(Xo,Yo),J.trigger(this._element,Ho)};this._element.classList.add(Xo),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Yo),super.dispose()}isShown(){return this._element.classList.contains(Yo)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e;break}if(e)return void this._clearTimeout();const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){J.on(this._element,Fo,(t=>this._onInteraction(t,!0))),J.on(this._element,Bo,(t=>this._onInteraction(t,!1))),J.on(this._element,zo,(t=>this._onInteraction(t,!0))),J.on(this._element,Zo,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=Jo.getOrCreateInstance(this,t);if("string"===typeof t){if("undefined"===typeof e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}ut(Jo),O(Jo)},8874:function(t){"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]}},19818:function(t,e,n){var r=n(8874),i=n(86851),o=Object.hasOwnProperty,a=Object.create(null);for(var s in r)o.call(r,s)&&(a[r[s]]=s);var u=t.exports={to:{},get:{}};function l(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}u.get=function(t){var e,n,r=t.substring(0,3).toLowerCase();switch(r){case"hsl":e=u.get.hsl(t),n="hsl";break;case"hwb":e=u.get.hwb(t),n="hwb";break;default:e=u.get.rgb(t),n="rgb";break}return e?{model:n,value:e}:null},u.get.rgb=function(t){if(!t)return null;var e,n,i,a=/^#([a-f0-9]{3,4})$/i,s=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,u=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,c=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,f=/^(\w+)$/,h=[0,0,0,1];if(e=t.match(s)){for(i=e[2],e=e[1],n=0;n<3;n++){var d=2*n;h[n]=parseInt(e.slice(d,d+2),16)}i&&(h[3]=parseInt(i,16)/255)}else if(e=t.match(a)){for(e=e[1],i=e[3],n=0;n<3;n++)h[n]=parseInt(e[n]+e[n],16);i&&(h[3]=parseInt(i+i,16)/255)}else if(e=t.match(u)){for(n=0;n<3;n++)h[n]=parseInt(e[n+1],0);e[4]&&(e[5]?h[3]=.01*parseFloat(e[4]):h[3]=parseFloat(e[4]))}else{if(!(e=t.match(c)))return(e=t.match(f))?"transparent"===e[1]?[0,0,0,0]:o.call(r,e[1])?(h=r[e[1]],h[3]=1,h):null:null;for(n=0;n<3;n++)h[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(e[5]?h[3]=.01*parseFloat(e[4]):h[3]=parseFloat(e[4]))}for(n=0;n<3;n++)h[n]=l(h[n],0,255);return h[3]=l(h[3],0,1),h},u.get.hsl=function(t){if(!t)return null;var e=/^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*)?\)$/,n=t.match(e);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,o=l(parseFloat(n[2]),0,100),a=l(parseFloat(n[3]),0,100),s=l(isNaN(r)?1:r,0,1);return[i,o,a,s]}return null},u.get.hwb=function(t){if(!t)return null;var e=/^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*)?\)$/,n=t.match(e);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,o=l(parseFloat(n[2]),0,100),a=l(parseFloat(n[3]),0,100),s=l(isNaN(r)?1:r,0,1);return[i,o,a,s]}return null},u.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])):"")},u.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]+")"},u.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]+")"},u.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]+")"},u.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+")"},u.to.keyword=function(t){return a[t.slice(0,3)]}},6767:function(t,e,n){"use strict";var r=n(19818),i=n(80978),o=[].slice,a=["keyword","gray","hex"],s={};Object.keys(i).forEach((function(t){s[o.call(i[t].labels).sort().join("")]=t}));var u={};function l(t,e){if(!(this instanceof l))return new l(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 l)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"===typeof t){var f=r.get(t);if(null===f)throw new Error("Unable to parse color from string: "+t);this.model=f.model,c=i[this.model].channels,this.color=f.value.slice(0,c),this.valpha="number"===typeof f.value[c]?f.value[c]:1}else if(t.length){this.model=e||"rgb",c=i[this.model].channels;var h=o.call(t,0,c);this.color=g(h,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 d=Object.keys(t);"alpha"in t&&(d.splice(d.indexOf("alpha"),1),this.valpha="number"===typeof t.alpha?t.alpha:0);var p=d.sort().join("");if(!(p in s))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=s[p];var v=i[this.model].labels,m=[];for(n=0;n<v.length;n++)m.push(t[v[n]]);this.color=g(m)}if(u[this.model])for(c=i[this.model].channels,n=0;n<c;n++){var y=u[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){return Number(t.toFixed(e))}function f(t){return function(e){return c(e,t)}}function h(t,e,n){return t=Array.isArray(t)?t:[t],t.forEach((function(t){(u[t]||(u[t]=[]))[e]=n})),t=t[0],function(r){var i;return arguments.length?(n&&(r=n(r)),i=this[t](),i.color[e]=r,i):(i=this[t]().color[e],n&&(i=n(i)),i)}}function d(t){return function(e){return Math.max(0,Math.min(t,e))}}function p(t){return Array.isArray(t)?t:[t]}function g(t,e){for(var n=0;n<e;n++)"number"!==typeof t[n]&&(t[n]=0);return t}l.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();e=e.round("number"===typeof t?t:1);var n=1===e.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 l(this.color.map(f(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new l(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:h("rgb",0,d(255)),green:h("rgb",1,d(255)),blue:h("rgb",2,d(255)),hue:h(["hsl","hsv","hsl","hwb","hcg"],0,(function(t){return(t%360+360)%360})),saturationl:h("hsl",1,d(100)),lightness:h("hsl",2,d(100)),saturationv:h("hsv",1,d(100)),value:h("hsv",2,d(100)),chroma:h("hcg",1,d(100)),gray:h("hcg",2,d(100)),white:h("hwb",1,d(100)),wblack:h("hwb",2,d(100)),cyan:h("cmyk",0,d(100)),magenta:h("cmyk",1,d(100)),yellow:h("cmyk",2,d(100)),black:h("cmyk",3,d(100)),x:h("xyz",0,d(100)),y:h("xyz",1,d(100)),z:h("xyz",2,d(100)),l:h("lab",0,d(100)),a:h("lab",1),b:h("lab",2),keyword:function(t){return arguments.length?new l(t):i[this.model].keyword(this.color)},hex:function(t){return arguments.length?new l(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,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return e<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 l.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+t)%360,n=n<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,u=1-s;return l.rgb(s*n.red()+u*r.red(),s*n.green()+u*r.green(),s*n.blue()+u*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;l.prototype[t]=function(){if(this.model===t)return new l(this);if(arguments.length)return new l(arguments,t);var n="number"===typeof arguments[e]?e:this.valpha;return new l(p(i[this.model][t].raw(this.color)).concat(n),t)},l[t]=function(n){return"number"===typeof n&&(n=g(o.call(arguments),e)),new l(n,t)}}})),t.exports=l},12956:function(t,e,n){var r=n(58900),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 u=a[s].channels,l=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:l})}function c(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}a.rgb.hsl=function(t){var e,n,r,i=t[0]/255,o=t[1]/255,a=t[2]/255,s=Math.min(i,o,a),u=Math.max(i,o,a),l=u-s;return u===s?e=0:i===u?e=(o-a)/l:o===u?e=2+(a-i)/l:a===u&&(e=4+(i-o)/l),e=Math.min(60*e,360),e<0&&(e+=360),r=(s+u)/2,n=u===s?0:r<=.5?l/(u+s):l/(2-u-s),[e,100*n,100*r]},a.rgb.hsv=function(t){var e,n,r,i,o,a=t[0]/255,s=t[1]/255,u=t[2]/255,l=Math.max(a,s,u),c=l-Math.min(a,s,u),f=function(t){return(l-t)/6/c+.5};return 0===c?i=o=0:(o=c/l,e=f(a),n=f(s),r=f(u),a===l?i=r-n:s===l?i=1/3+e-r:u===l&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},a.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2],i=a.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(n,r));return r=1-1/255*Math.max(e,Math.max(n,r)),[i,100*o,100*r]},a.rgb.cmyk=function(t){var e,n,r,i,o=t[0]/255,a=t[1]/255,s=t[2]/255;return i=Math.min(1-o,1-a,1-s),e=(1-o-i)/(1-i)||0,n=(1-a-i)/(1-i)||0,r=(1-s-i)/(1-i)||0,[100*e,100*n,100*r,100*i]},a.rgb.keyword=function(t){var e=i[t];if(e)return e;var n,o=1/0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=c(t,s);u<o&&(o=u,n=a)}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;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var i=.4124*e+.3576*n+.1805*r,o=.2126*e+.7152*n+.0722*r,a=.0193*e+.1192*n+.9505*r;return[100*i,100*o,100*a]},a.rgb.lab=function(t){var e,n,r,i=a.rgb.xyz(t),o=i[0],s=i[1],u=i[2];return o/=95.047,s/=100,u/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,e=116*s-16,n=500*(o-s),r=200*(s-u),[e,n,r]},a.hsl.rgb=function(t){var e,n,r,i,o,a=t[0]/360,s=t[1]/100,u=t[2]/100;if(0===s)return o=255*u,[o,o,o];n=u<.5?u*(1+s):u+s-u*s,e=2*u-n,i=[0,0,0];for(var l=0;l<3;l++)r=a+1/3*-(l-1),r<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[l]=255*o;return i},a.hsl.hsv=function(t){var e,n,r=t[0],i=t[1]/100,o=t[2]/100,a=i,s=Math.max(o,.01);return o*=2,i*=o<=1?o:2-o,a*=s<=1?s:2-s,n=(o+i)/2,e=0===o?2*a/(s+a):2*i/(o+i),[r,100*e,100*n]},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),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,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,e=(2-o)*s,n=o*s,n/=e<=1?e:2-e,n=n||0,r/=2,[i,100*n,100*r]},a.hwb.rgb=function(t){var e,n,r,i,o,a,s,u=t[0]/360,l=t[1]/100,c=t[2]/100,f=l+c;switch(f>1&&(l/=f,c/=f),e=Math.floor(6*u),n=1-c,r=6*u-e,0!==(1&e)&&(r=1-r),i=l+r*(n-l),e){default:case 6:case 0:o=n,a=i,s=l;break;case 1:o=i,a=n,s=l;break;case 2:o=l,a=n,s=i;break;case 3:o=l,a=i,s=n;break;case 4:o=i,a=l,s=n;break;case 5:o=n,a=l,s=i;break}return[255*o,255*a,255*s]},a.cmyk.rgb=function(t){var e,n,r,i=t[0]/100,o=t[1]/100,a=t[2]/100,s=t[3]/100;return e=1-Math.min(1,i*(1-s)+s),n=1-Math.min(1,o*(1-s)+s),r=1-Math.min(1,a*(1-s)+s),[255*e,255*n,255*r]},a.xyz.rgb=function(t){var e,n,r,i=t[0]/100,o=t[1]/100,a=t[2]/100;return e=3.2406*i+-1.5372*o+-.4986*a,n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,e=e>.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,e=Math.min(Math.max(0,e),1),n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),[255*e,255*n,255*r]},a.xyz.lab=function(t){var e,n,r,i=t[0],o=t[1],a=t[2];return i/=95.047,o/=100,a/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,e=116*o-16,n=500*(i-o),r=200*(o-a),[e,n,r]},a.lab.xyz=function(t){var e,n,r,i=t[0],o=t[1],a=t[2];n=(i+16)/116,e=o/500+n,r=n-a/200;var s=Math.pow(n,3),u=Math.pow(e,3),l=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,e=u>.008856?u:(e-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,e*=95.047,n*=100,r*=108.883,[e,n,r]},a.lab.lch=function(t){var e,n,r,i=t[0],o=t[1],a=t[2];return e=Math.atan2(a,o),n=360*e/2/Math.PI,n<0&&(n+=360),r=Math.sqrt(o*o+a*a),[i,r,n]},a.lch.lab=function(t){var e,n,r,i=t[0],o=t[1],a=t[2];return r=a/360*2*Math.PI,e=o*Math.cos(r),n=o*Math.sin(r),[i,e,n]},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(i=Math.round(i/50),0===i)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];if(e===n&&n===r)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i},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,e];var n=.5*(1+~~(t>50)),r=(1&e)*n*255,i=(e>>1&1)*n*255,o=(e>>2&1)*n*255;return[r,i,o]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;t-=16;var r=Math.floor(t/36)/5*255,i=Math.floor((n=t%36)/6)/5*255,o=n%6/5*255;return[r,i,o]},a.rgb.hex=function(t){var e=((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2])),n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n},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),i=r>>16&255,o=r>>8&255,a=255&r;return[i,o,a]},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),u=a-s;return e=u<1?s/(1-u):0,n=u<=0?0:a===r?(i-o)/u%6:a===i?2+(o-r)/u:4+(r-i)/u+4,n/=6,n%=1,[360*n,100*u,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),r<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=[0,0,0],o=e%1*6,a=o%1,s=1-a,u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return u=(1-n)*r,[255*(n*i[0]+u),255*(n*i[1]+u),255*(n*i[2]+u)]},a.hcg.hsv=function(t){var e=t[1]/100,n=t[2]/100,r=e+n*(1-e),i=0;return r>0&&(i=e/r),[t[0],100*i,100*r]},a.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100,r=n*(1-e)+.5*e,i=0;return r>0&&r<.5?i=e/(2*r):r>=.5&&r<1&&(i=e/(2*(1-r))),[t[0],100*i,100*r]},a.hcg.hwb=function(t){var e=t[1]/100,n=t[2]/100,r=e+n*(1-e);return[t[0],100*(r-e),100*(1-r)]},a.hwb.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1-n,i=r-e,o=0;return i<1&&(o=(r-i)/(1-i)),[t[0],100*i,100*o]},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,r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}},80978:function(t,e,n){var r=n(12956),i=n(87774),o={},a=Object.keys(r);function s(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}function u(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}a.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),n=Object.keys(e);n.forEach((function(n){var r=e[n];o[t][n]=u(r),o[t][n].raw=s(r)}))})),t.exports=o},87774:function(t,e,n){var r=n(12956);function i(){for(var t={},e=Object.keys(r),n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}function o(t){var e=i(),n=[t];e[t].distance=0;while(n.length)for(var o=n.pop(),a=Object.keys(r[o]),s=a.length,u=0;u<s;u++){var l=a[u],c=e[l];-1===c.distance&&(c.distance=e[o].distance+1,c.parent=o,n.unshift(l))}return e}function a(t,e){return function(n){return e(t(n))}}function s(t,e){var n=[e[t].parent,t],i=r[e[t].parent][t],o=e[t].parent;while(e[o].parent)n.unshift(e[o].parent),i=a(r[e[o].parent][o],i),o=e[o].parent;return i.conversion=n,i}t.exports=function(t){for(var e=o(t),n={},r=Object.keys(e),i=r.length,a=0;a<i;a++){var u=r[a],l=e[u];null!==l.parent&&(n[u]=s(u,e))}return n}},58900:function(t){"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]}},15138:function(t,e,n){"use strict";n.d(e,{CG:function(){return o},G2:function(){return i},XL:function(){return a}});var r=1.70158,i=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(r),o=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(r),a=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}(r)},9168:function(t,e,n){"use strict";n.d(e,{gJ:function(){return p},h9:function(){return d},yD:function(){return g}});var r=4/11,i=/^(539|826)$/.test(n.j)?6/11:null,o=/^(539|826)$/.test(n.j)?8/11:null,a=/^(539|826)$/.test(n.j)?3/4:null,s=/^(539|826)$/.test(n.j)?9/11:null,u=/^(539|826)$/.test(n.j)?10/11:null,l=/^(539|826)$/.test(n.j)?15/16:null,c=/^(539|826)$/.test(n.j)?21/22:null,f=/^(539|826)$/.test(n.j)?63/64:null,h=1/r/r;function d(t){return 1-p(1-t)}function p(t){return(t=+t)<r?h*t*t:t<o?h*(t-=i)*t+a:t<u?h*(t-=s)*t+l:h*(t-=c)*t+f}function g(t){return((t*=2)<=1?1-p(1-t):p(t-1)+1)/2}},99742:function(t,e,n){"use strict";function r(t){return 1-Math.sqrt(1-t*t)}function i(t){return Math.sqrt(1- --t*t)}function o(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}n.d(e,{WE:function(){return o},rf:function(){return r},v2:function(){return i}})},68716:function(t,e,n){"use strict";function r(t){return t*t*t}function i(t){return--t*t*t+1}function o(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.d(e,{_e:function(){return i},tw:function(){return o},yD:function(){return r}})},95921:function(t,e,n){"use strict";n.d(e,{NL:function(){return l},_D:function(){return u},x8:function(){return s}});var r=n(90812),i=2*Math.PI,o=1,a=.3,s=function t(e,n){var o=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function a(t){return e*(0,r.N)(- --t)*Math.sin((o-t)/n)}return a.amplitude=function(e){return t(e,n*i)},a.period=function(n){return t(e,n)},a}(o,a),u=function t(e,n){var o=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function a(t){return 1-e*(0,r.N)(t=+t)*Math.sin((t+o)/n)}return a.amplitude=function(e){return t(e,n*i)},a.period=function(n){return t(e,n)},a}(o,a),l=function t(e,n){var o=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function a(t){return((t=2*t-1)<0?e*(0,r.N)(-t)*Math.sin((o-t)/n):2-e*(0,r.N)(t)*Math.sin((o+t)/n))/2}return a.amplitude=function(e){return t(e,n*i)},a.period=function(n){return t(e,n)},a}(o,a)},92454:function(t,e,n){"use strict";if(n.d(e,{M4:function(){return o},Oo:function(){return a},oP:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(90812);function i(t){return(0,r.N)(1-+t)}function o(t){return 1-(0,r.N)(t)}function a(t){return((t*=2)<=1?(0,r.N)(1-t):2-(0,r.N)(t-1))/2}},94588:function(t,e,n){"use strict";if(n.r(e),n.d(e,{easeBack:function(){return f.XL},easeBackIn:function(){return f.G2},easeBackInOut:function(){return f.XL},easeBackOut:function(){return f.CG},easeBounce:function(){return c.gJ},easeBounceIn:function(){return c.h9},easeBounceInOut:function(){return c.yD},easeBounceOut:function(){return c.gJ},easeCircle:function(){return l.WE},easeCircleIn:function(){return l.rf},easeCircleInOut:function(){return l.WE},easeCircleOut:function(){return l.v2},easeCubic:function(){return o.tw},easeCubicIn:function(){return o.yD},easeCubicInOut:function(){return o.tw},easeCubicOut:function(){return o._e},easeElastic:function(){return h._D},easeElasticIn:function(){return h.x8},easeElasticInOut:function(){return h.NL},easeElasticOut:function(){return h._D},easeExp:function(){return u.Oo},easeExpIn:function(){return u.oP},easeExpInOut:function(){return u.Oo},easeExpOut:function(){return u.M4},easeLinear:function(){return r.G},easePoly:function(){return a.SE},easePolyIn:function(){return a.RY},easePolyInOut:function(){return a.SE},easePolyOut:function(){return a.fW},easeQuad:function(){return i.U2},easeQuadIn:function(){return i.Kl},easeQuadInOut:function(){return i.U2},easeQuadOut:function(){return i.u4},easeSin:function(){return s.xU},easeSinIn:function(){return s.yx},easeSinInOut:function(){return s.xU},easeSinOut:function(){return s.Dh}}),/^(539|826)$/.test(n.j))var r=n(25728);if(/^(539|826)$/.test(n.j))var i=n(72396);if(/^(539|826)$/.test(n.j))var o=n(68716);if(/^(539|826)$/.test(n.j))var a=n(93630);if(/^(539|826)$/.test(n.j))var s=n(8790);if(/^(539|826)$/.test(n.j))var u=n(92454);if(/^(539|826)$/.test(n.j))var l=n(99742);if(/^(539|826)$/.test(n.j))var c=n(9168);if(/^(539|826)$/.test(n.j))var f=n(15138);if(/^(539|826)$/.test(n.j))var h=n(95921)},25728:function(t,e,n){"use strict";function r(t){return+t}n.d(e,{G:function(){return r}})},90812:function(t,e,n){"use strict";function r(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}n.d(e,{N:function(){return r}})},93630:function(t,e,n){"use strict";n.d(e,{RY:function(){return i},SE:function(){return a},fW:function(){return o}});var r=3,i=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(r),o=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(r),a=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}(r)},72396:function(t,e,n){"use strict";function r(t){return t*t}function i(t){return t*(2-t)}function o(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}n.d(e,{Kl:function(){return r},U2:function(){return o},u4:function(){return i}})},8790:function(t,e,n){"use strict";n.d(e,{Dh:function(){return a},xU:function(){return s},yx:function(){return o}});var r=Math.PI,i=r/2;function o(t){return 1===+t?1:1-Math.cos(t*i)}function a(t){return Math.sin(t*i)}function s(t){return(1-Math.cos(r*t))/2}},31969:function(t,e,n){"use strict";n.r(e),n.d(e,{BRIDGE_GRAPH_NAME:function(){return s},GraphType:function(){return c},HierarchyNodeType:function(){return f},InclusionType:function(){return l},LAYOUT_CONFIG:function(){return r},NodeType:function(){return u},ROOT_NAME:function(){return a},buildGraph:function(){return au},flatGraph:function(){return su},getEdges:function(){return uu},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)),u=(null===(n=null==t?void 0:t.graph)||void 0===n?void 0:n.meta)||{},l=(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)||{},f=(null===(a=null==t?void 0:t.nodeSize)||void 0===a?void 0:a.node)||{},h=s.nodeSize.bridge;return{graph:{meta:Object.assign(s.graph.meta,u)},subScene:{meta:Object.assign(s.subScene.meta,l)},nodeSize:{meta:Object.assign(s.nodeSize.meta,c),node:Object.assign(s.nodeSize.node,f),bridge:h}}}function o(t){return`◬${t}◬`}const a=o("ROOT"),s=o("BRIDGE_GRAPH");var u,l,c,f;!function(t){t[t.META=0]="META",t[t.NODE=1]="NODE",t[t.BRIDGE=2]="BRIDGE"}(u||(u={})),function(t){t[t.INCLUDE=0]="INCLUDE",t[t.EXCLUDE=1]="EXCLUDE",t[t.UNSPECIFIED=2]="UNSPECIFIED"}(l||(l={})),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"}(f||(f={}));var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function d(t,e){return t(e={exports:{}},e.exports),e.exports}var p=function(){this.__data__=[],this.size=0},g=function(t,e){return t===e||t!=t&&e!=e},v=function(t,e){for(var n=t.length;n--;)if(g(t[n][0],e))return n;return-1},m=Array.prototype.splice,y=function(t){var e=this.__data__,n=v(e,t);return!(n<0)&&(n==e.length-1?e.pop():m.call(e,n,1),--this.size,!0)},b=function(t){var e=this.__data__,n=v(e,t);return n<0?void 0:e[n][1]},x=function(t){return v(this.__data__,t)>-1},_=function(t,e){var n=this.__data__,r=v(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function w(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])}}w.prototype.clear=p,w.prototype.delete=y,w.prototype.get=b,w.prototype.has=x,w.prototype.set=_;var S,E=w,T=function(){this.__data__=new E,this.size=0},k=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},C=function(t){return this.__data__.get(t)},M=function(t){return this.__data__.has(t)},A="object"==typeof h&&h&&h.Object===Object&&h,I="object"==typeof self&&self&&self.Object===Object&&self,O=A||I||Function("return this")(),D=O.Symbol,P=Object.prototype,L=P.hasOwnProperty,N=P.toString,R=D?D.toStringTag:void 0,j=function(t){var e=L.call(t,R),n=t[R];try{t[R]=void 0;var r=!0}catch(t){}var i=N.call(t);return r&&(e?t[R]=n:delete t[R]),i},F=Object.prototype.toString,B=function(t){return F.call(t)},z=D?D.toStringTag:void 0,Z=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":z&&z in Object(t)?j(t):B(t)},U=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},H=function(t){if(!U(t))return!1;var e=Z(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},$=O["__core-js_shared__"],G=(S=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",W=function(t){return!!G&&G in t},V=Function.prototype.toString,Y=function(t){if(null!=t){try{return V.call(t)}catch(t){}try{return t+""}catch(t){}}return""},X=/^\[object .+?Constructor\]$/,q=Function.prototype,K=Object.prototype,J=q.toString,Q=K.hasOwnProperty,tt=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),et=function(t){return!(!U(t)||W(t))&&(H(t)?tt:X).test(Y(t))},nt=function(t,e){return null==t?void 0:t[e]},rt=function(t,e){var n=nt(t,e);return et(n)?n:void 0},it=rt(O,"Map"),ot=rt(Object,"create"),at=function(){this.__data__=ot?ot(null):{},this.size=0},st=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ut=Object.prototype.hasOwnProperty,lt=function(t){var e=this.__data__;if(ot){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return ut.call(e,t)?e[t]:void 0},ct=Object.prototype.hasOwnProperty,ft=function(t){var e=this.__data__;return ot?void 0!==e[t]:ct.call(e,t)},ht=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ot&&void 0===e?"__lodash_hash_undefined__":e,this};function dt(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])}}dt.prototype.clear=at,dt.prototype.delete=st,dt.prototype.get=lt,dt.prototype.has=ft,dt.prototype.set=ht;var pt=dt,gt=function(){this.size=0,this.__data__={hash:new pt,map:new(it||E),string:new pt}},vt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},mt=function(t,e){var n=t.__data__;return vt(e)?n["string"==typeof e?"string":"hash"]:n.map},yt=function(t){var e=mt(this,t).delete(t);return this.size-=e?1:0,e},bt=function(t){return mt(this,t).get(t)},xt=function(t){return mt(this,t).has(t)},_t=function(t,e){var n=mt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function wt(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])}}wt.prototype.clear=gt,wt.prototype.delete=yt,wt.prototype.get=bt,wt.prototype.has=xt,wt.prototype.set=_t;var St=wt,Et=function(t,e){var n=this.__data__;if(n instanceof E){var r=n.__data__;if(!it||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new St(r)}return n.set(t,e),this.size=n.size,this};function Tt(t){var e=this.__data__=new E(t);this.size=e.size}Tt.prototype.clear=T,Tt.prototype.delete=k,Tt.prototype.get=C,Tt.prototype.has=M,Tt.prototype.set=Et;var kt=Tt,Ct=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t},Mt=function(){try{var t=rt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),At=function(t,e,n){"__proto__"==e&&Mt?Mt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},It=Object.prototype.hasOwnProperty,Ot=function(t,e,n){var r=t[e];It.call(t,e)&&g(r,n)&&(void 0!==n||e in t)||At(t,e,n)},Dt=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?At(n,s,u):Ot(n,s,u)}return n},Pt=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},Lt=function(t){return null!=t&&"object"==typeof t},Nt=function(t){return Lt(t)&&"[object Arguments]"==Z(t)},Rt=Object.prototype,jt=Rt.hasOwnProperty,Ft=Rt.propertyIsEnumerable,Bt=Nt(function(){return arguments}())?Nt:function(t){return Lt(t)&&jt.call(t,"callee")&&!Ft.call(t,"callee")},zt=Array.isArray,Zt=function(){return!1},Ut=d((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n?O.Buffer:void 0,o=(i?i.isBuffer:void 0)||Zt;t.exports=o})),Ht=/^(?:0|[1-9]\d*)$/,$t=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ht.test(t))&&t>-1&&t%1==0&&t<e},Gt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Wt={};Wt["[object Float32Array]"]=Wt["[object Float64Array]"]=Wt["[object Int8Array]"]=Wt["[object Int16Array]"]=Wt["[object Int32Array]"]=Wt["[object Uint8Array]"]=Wt["[object Uint8ClampedArray]"]=Wt["[object Uint16Array]"]=Wt["[object Uint32Array]"]=!0,Wt["[object Arguments]"]=Wt["[object Array]"]=Wt["[object ArrayBuffer]"]=Wt["[object Boolean]"]=Wt["[object DataView]"]=Wt["[object Date]"]=Wt["[object Error]"]=Wt["[object Function]"]=Wt["[object Map]"]=Wt["[object Number]"]=Wt["[object Object]"]=Wt["[object RegExp]"]=Wt["[object Set]"]=Wt["[object String]"]=Wt["[object WeakMap]"]=!1;var Vt=function(t){return Lt(t)&&Gt(t.length)&&!!Wt[Z(t)]},Yt=function(t){return function(e){return t(e)}},Xt=d((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n&&A.process,o=function(){try{var t=r&&r.require&&r.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=o})),qt=Xt&&Xt.isTypedArray,Kt=qt?Yt(qt):Vt,Jt=Object.prototype.hasOwnProperty,Qt=function(t,e){var n=zt(t),r=!n&&Bt(t),i=!n&&!r&&Ut(t),o=!n&&!r&&!i&&Kt(t),a=n||r||i||o,s=a?Pt(t.length,String):[],u=s.length;for(var l in t)!e&&!Jt.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||$t(l,u))||s.push(l);return s},te=Object.prototype,ee=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||te)},ne=function(t,e){return function(n){return t(e(n))}},re=ne(Object.keys,Object),ie=Object.prototype.hasOwnProperty,oe=function(t){if(!ee(t))return re(t);var e=[];for(var n in Object(t))ie.call(t,n)&&"constructor"!=n&&e.push(n);return e},ae=function(t){return null!=t&&Gt(t.length)&&!H(t)},se=function(t){return ae(t)?Qt(t):oe(t)},ue=function(t,e){return t&&Dt(e,se(e),t)},le=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},ce=Object.prototype.hasOwnProperty,fe=function(t){if(!U(t))return le(t);var e=ee(t),n=[];for(var r in t)("constructor"!=r||!e&&ce.call(t,r))&&n.push(r);return n},he=function(t){return ae(t)?Qt(t,!0):fe(t)},de=function(t,e){return t&&Dt(e,he(e),t)},pe=d((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n?O.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}})),ge=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e},ve=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},me=function(){return[]},ye=Object.prototype.propertyIsEnumerable,be=Object.getOwnPropertySymbols,xe=be?function(t){return null==t?[]:(t=Object(t),ve(be(t),(function(e){return ye.call(t,e)})))}:me,_e=function(t,e){return Dt(t,xe(t),e)},we=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t},Se=ne(Object.getPrototypeOf,Object),Ee=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)we(e,xe(t)),t=Se(t);return e}:me,Te=function(t,e){return Dt(t,Ee(t),e)},ke=function(t,e,n){var r=e(t);return zt(t)?r:we(r,n(t))},Ce=function(t){return ke(t,se,xe)},Me=function(t){return ke(t,he,Ee)},Ae=rt(O,"DataView"),Ie=rt(O,"Promise"),Oe=rt(O,"Set"),De=rt(O,"WeakMap"),Pe=Y(Ae),Le=Y(it),Ne=Y(Ie),Re=Y(Oe),je=Y(De),Fe=Z;(Ae&&"[object DataView]"!=Fe(new Ae(new ArrayBuffer(1)))||it&&"[object Map]"!=Fe(new it)||Ie&&"[object Promise]"!=Fe(Ie.resolve())||Oe&&"[object Set]"!=Fe(new Oe)||De&&"[object WeakMap]"!=Fe(new De))&&(Fe=function(t){var e=Z(t),n="[object Object]"==e?t.constructor:void 0,r=n?Y(n):"";if(r)switch(r){case Pe:return"[object DataView]";case Le:return"[object Map]";case Ne:return"[object Promise]";case Re:return"[object Set]";case je:return"[object WeakMap]"}return e});var Be=Fe,ze=Object.prototype.hasOwnProperty,Ze=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&ze.call(t,"index")&&(n.index=t.index,n.input=t.input),n},Ue=O.Uint8Array,He=function(t){var e=new t.constructor(t.byteLength);return new Ue(e).set(new Ue(t)),e},$e=function(t,e){var n=e?He(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)},Ge=/\w*$/,We=function(t){var e=new t.constructor(t.source,Ge.exec(t));return e.lastIndex=t.lastIndex,e},Ve=D?D.prototype:void 0,Ye=Ve?Ve.valueOf:void 0,Xe=function(t){return Ye?Object(Ye.call(t)):{}},qe=function(t,e){var n=e?He(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},Ke=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return He(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return $e(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 qe(t,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return We(t);case"[object Set]":return new r;case"[object Symbol]":return Xe(t)}},Je=Object.create,Qe=function(){function t(){}return function(e){if(!U(e))return{};if(Je)return Je(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),tn=function(t){return"function"!=typeof t.constructor||ee(t)?{}:Qe(Se(t))},en=function(t){return Lt(t)&&"[object Map]"==Be(t)},nn=Xt&&Xt.isMap,rn=nn?Yt(nn):en,on=function(t){return Lt(t)&&"[object Set]"==Be(t)},an=Xt&&Xt.isSet,sn=an?Yt(an):on,un={};un["[object Arguments]"]=un["[object Array]"]=un["[object ArrayBuffer]"]=un["[object DataView]"]=un["[object Boolean]"]=un["[object Date]"]=un["[object Float32Array]"]=un["[object Float64Array]"]=un["[object Int8Array]"]=un["[object Int16Array]"]=un["[object Int32Array]"]=un["[object Map]"]=un["[object Number]"]=un["[object Object]"]=un["[object RegExp]"]=un["[object Set]"]=un["[object String]"]=un["[object Symbol]"]=un["[object Uint8Array]"]=un["[object Uint8ClampedArray]"]=un["[object Uint16Array]"]=un["[object Uint32Array]"]=!0,un["[object Error]"]=un["[object Function]"]=un["[object WeakMap]"]=!1;var ln=function t(e,n,r,i,o,a){var s,u=1&n,l=2&n,c=4&n;if(r&&(s=o?r(e,i,o,a):r(e)),void 0!==s)return s;if(!U(e))return e;var f=zt(e);if(f){if(s=Ze(e),!u)return ge(e,s)}else{var h=Be(e),d="[object Function]"==h||"[object GeneratorFunction]"==h;if(Ut(e))return pe(e,u);if("[object Object]"==h||"[object Arguments]"==h||d&&!o){if(s=l||d?{}:tn(e),!u)return l?Te(e,de(s,e)):_e(e,ue(s,e))}else{if(!un[h])return o?e:{};s=Ke(e,h,u)}}a||(a=new kt);var p=a.get(e);if(p)return p;a.set(e,s),sn(e)?e.forEach((function(i){s.add(t(i,n,r,i,e,a))})):rn(e)&&e.forEach((function(i,o){s.set(o,t(i,n,r,o,e,a))}));var g=f?void 0:(c?l?Me:Ce:l?he:se)(e);return Ct(g||e,(function(i,o){g&&(i=e[o=i]),Ot(s,o,t(i,n,r,o,e,a))})),s},cn=function(t){return ln(t,4)},fn=function(t){return function(){return t}},hn=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}(),dn=function(t,e){return t&&hn(t,e,se)},pn=function(t,e){return function(n,r){if(null==n)return n;if(!ae(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Object(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}(dn),gn=function(t){return t},vn=function(t){return"function"==typeof t?t:gn},mn=function(t,e){return(zt(t)?Ct:pn)(t,vn(e))},yn=mn,bn=function(t,e){var n=[];return pn(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n},xn=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},_n=function(t){return this.__data__.has(t)};function wn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new St;++e<n;)this.add(t[e])}wn.prototype.add=wn.prototype.push=xn,wn.prototype.has=_n;var Sn=wn,En=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},Tn=function(t,e){return t.has(e)},kn=function(t,e,n,r,i,o){var a=1&n,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(t),c=o.get(e);if(l&&c)return l==e&&c==t;var f=-1,h=!0,d=2&n?new Sn:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var p=t[f],g=e[f];if(r)var v=a?r(g,p,f,e,t,o):r(p,g,f,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(d){if(!En(e,(function(t,e){if(!Tn(d,e)&&(p===t||i(p,t,n,r,o)))return d.push(e)}))){h=!1;break}}else if(p!==g&&!i(p,g,n,r,o)){h=!1;break}}return o.delete(t),o.delete(e),h},Cn=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n},Mn=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},An=D?D.prototype:void 0,In=An?An.valueOf:void 0,On=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 Ue(t),new Ue(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return g(+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=Cn;case"[object Set]":var u=1&r;if(s||(s=Mn),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;r|=2,a.set(t,e);var c=kn(s(t),s(e),r,i,o,a);return a.delete(t),c;case"[object Symbol]":if(In)return In.call(t)==In.call(e)}return!1},Dn=Object.prototype.hasOwnProperty,Pn=function(t,e,n,r,i,o){var a=1&n,s=Ce(t),u=s.length;if(u!=Ce(e).length&&!a)return!1;for(var l=u;l--;){var c=s[l];if(!(a?c in e:Dn.call(e,c)))return!1}var f=o.get(t),h=o.get(e);if(f&&h)return f==e&&h==t;var d=!0;o.set(t,e),o.set(e,t);for(var p=a;++l<u;){var g=t[c=s[l]],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)){d=!1;break}p||(p="constructor"==c)}if(d&&!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||(d=!1)}return o.delete(t),o.delete(e),d},Ln=Object.prototype.hasOwnProperty,Nn=function(t,e,n,r,i,o){var a=zt(t),s=zt(e),u=a?"[object Array]":Be(t),l=s?"[object Array]":Be(e),c="[object Object]"==(u="[object Arguments]"==u?"[object Object]":u),f="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),h=u==l;if(h&&Ut(t)){if(!Ut(e))return!1;a=!0,c=!1}if(h&&!c)return o||(o=new kt),a||Kt(t)?kn(t,e,n,r,i,o):On(t,e,u,n,r,i,o);if(!(1&n)){var d=c&&Ln.call(t,"__wrapped__"),p=f&&Ln.call(e,"__wrapped__");if(d||p){var g=d?t.value():t,v=p?e.value():e;return o||(o=new kt),i(g,v,n,r,o)}}return!!h&&(o||(o=new kt),Pn(t,e,n,r,i,o))},Rn=function t(e,n,r,i,o){return e===n||(null==e||null==n||!Lt(e)&&!Lt(n)?e!=e&&n!=n:Nn(e,n,r,i,t,o))},jn=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 u=(s=n[i])[0],l=t[u],c=s[1];if(a&&s[2]){if(void 0===l&&!(u in t))return!1}else{var f=new kt;if(r)var h=r(l,c,u,t,e,f);if(!(void 0===h?Rn(c,l,3,r,f):h))return!1}}return!0},Fn=function(t){return t==t&&!U(t)},Bn=function(t){for(var e=se(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Fn(i)]}return e},zn=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}},Zn=function(t){var e=Bn(t);return 1==e.length&&e[0][2]?zn(e[0][0],e[0][1]):function(n){return n===t||jn(n,t,e)}},Un=function(t){return"symbol"==typeof t||Lt(t)&&"[object Symbol]"==Z(t)},Hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$n=/^\w*$/,Gn=function(t,e){if(zt(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Un(t))||$n.test(t)||!Hn.test(t)||null!=e&&t in Object(e)};function Wn(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(Wn.Cache||St),n}Wn.Cache=St;var Vn,Yn=Wn,Xn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qn=/\\(\\)?/g,Kn=function(t){var e=Yn(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Xn,(function(t,n,r,i){e.push(r?i.replace(qn,"$1"):n||t)})),e})),Jn=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},Qn=D?D.prototype:void 0,tr=Qn?Qn.toString:void 0,er=function t(e){if("string"==typeof e)return e;if(zt(e))return Jn(e,t)+"";if(Un(e))return tr?tr.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},nr=function(t){return null==t?"":er(t)},rr=function(t,e){return zt(t)?t:Gn(t,e)?[t]:Kn(nr(t))},ir=function(t){if("string"==typeof t||Un(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},or=function(t,e){for(var n=0,r=(e=rr(e,t)).length;null!=t&&n<r;)t=t[ir(e[n++])];return n&&n==r?t:void 0},ar=function(t,e,n){var r=null==t?void 0:or(t,e);return void 0===r?n:r},sr=function(t,e){return null!=t&&e in Object(t)},ur=function(t,e,n){for(var r=-1,i=(e=rr(e,t)).length,o=!1;++r<i;){var a=ir(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Gt(i)&&$t(a,i)&&(zt(t)||Bt(t))},lr=function(t,e){return null!=t&&ur(t,e,sr)},cr=function(t,e){return Gn(t)&&Fn(e)?zn(ir(t),e):function(n){var r=ar(n,t);return void 0===r&&r===e?lr(n,t):Rn(e,r,3)}},fr=function(t){return function(e){return null==e?void 0:e[t]}},hr=function(t){return function(e){return or(e,t)}},dr=function(t){return Gn(t)?fr(ir(t)):hr(t)},pr=function(t){return"function"==typeof t?t:null==t?gn:"object"==typeof t?zt(t)?cr(t[0],t[1]):Zn(t):dr(t)},gr=function(t,e){return(zt(t)?ve:bn)(t,pr(e))},vr=Object.prototype.hasOwnProperty,mr=function(t,e){return null!=t&&vr.call(t,e)},yr=function(t,e){return null!=t&&ur(t,e,mr)},br=Object.prototype.hasOwnProperty,xr=function(t){if(null==t)return!0;if(ae(t)&&(zt(t)||"string"==typeof t||"function"==typeof t.splice||Ut(t)||Kt(t)||Bt(t)))return!t.length;var e=Be(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(ee(t))return!oe(t).length;for(var n in t)if(br.call(t,n))return!1;return!0},_r=function(t){return void 0===t},wr=function(t,e){var n=-1,r=ae(t)?Array(t.length):[];return pn(t,(function(t,i,o){r[++n]=e(t,i,o)})),r},Sr=function(t,e){return(zt(t)?Jn:wr)(t,pr(e))},Er=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},Tr=function(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n},kr=function(t,e,n){var r=zt(t)?Er:Tr,i=arguments.length<3;return r(t,pr(e),n,i,pn)},Cr=function(t){return"string"==typeof t||!zt(t)&&Lt(t)&&"[object String]"==Z(t)},Mr=fr("length"),Ar=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Ir=function(t){return Ar.test(t)},Or="[\\ud800-\\udfff]",Dr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Pr="\\ud83c[\\udffb-\\udfff]",Lr="[^\\ud800-\\udfff]",Nr="(?:\\ud83c[\\udde6-\\uddff]){2}",Rr="[\\ud800-\\udbff][\\udc00-\\udfff]",jr="(?:"+Dr+"|"+Pr+")?",Fr="[\\ufe0e\\ufe0f]?"+jr+"(?:\\u200d(?:"+[Lr,Nr,Rr].join("|")+")[\\ufe0e\\ufe0f]?"+jr+")*",Br="(?:"+[Lr+Dr+"?",Dr,Nr,Rr,Or].join("|")+")",zr=RegExp(Pr+"(?="+Pr+")|"+Br+Fr,"g"),Zr=function(t){for(var e=zr.lastIndex=0;zr.test(t);)++e;return e},Ur=function(t){return Ir(t)?Zr(t):Mr(t)},Hr=function(t){if(null==t)return 0;if(ae(t))return Cr(t)?Ur(t):t.length;var e=Be(t);return"[object Map]"==e||"[object Set]"==e?t.size:oe(t).length},$r=function(t,e,n){var r=zt(t),i=r||Ut(t)||Kt(t);if(e=pr(e),null==n){var o=t&&t.constructor;n=i?r?new o:[]:U(t)&&H(o)?Qe(Se(t)):{}}return(i?Ct:dn)(t,(function(t,r,i){return e(n,t,r,i)})),n},Gr=D?D.isConcatSpreadable:void 0,Wr=function(t){return zt(t)||Bt(t)||!!(Gr&&t&&t[Gr])},Vr=function t(e,n,r,i,o){var a=-1,s=e.length;for(r||(r=Wr),o||(o=[]);++a<s;){var u=e[a];n>0&&r(u)?n>1?t(u,n-1,r,i,o):we(o,u):i||(o[o.length]=u)}return o},Yr=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)},Xr=Math.max,qr=function(t,e,n){return e=Xr(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Xr(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),Yr(t,this,s)}},Kr=Mt?function(t,e){return Mt(t,"toString",{configurable:!0,enumerable:!1,value:fn(e),writable:!0})}:gn,Jr=Date.now,Qr=function(t){var e=0,n=0;return function(){var r=Jr(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Kr),ti=function(t,e){return Qr(qr(t,e,gn),t+"")},ei=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},ni=function(t){return t!=t},ri=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1},ii=function(t,e,n){return e==e?ri(t,e,n):ei(t,ni,n)},oi=function(t,e){return!(null==t||!t.length)&&ii(t,e,0)>-1},ai=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},si=function(){},ui=Oe&&1/Mn(new Oe([,-0]))[1]==1/0?function(t){return new Oe(t)}:si,li=function(t,e,n){var r=-1,i=oi,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=ai;else if(o>=200){var l=e?null:ui(t);if(l)return Mn(l);a=!1,i=Tn,u=new Sn}else u=e?[]:s;t:for(;++r<o;){var c=t[r],f=e?e(c):c;if(c=n||0!==c?c:0,a&&f==f){for(var h=u.length;h--;)if(u[h]===f)continue t;e&&u.push(f),s.push(c)}else i(u,f,n)||(u!==s&&u.push(f),s.push(c))}return s},ci=function(t){return Lt(t)&&ae(t)},fi=ti((function(t){return li(Vr(t,1,ci,!0))})),hi=function(t,e){return Jn(e,(function(e){return t[e]}))},di=function(t){return null==t?[]:hi(t,se(t))};try{Vn={clone:cn,constant:fn,each:yn,filter:gr,has:yr,isArray:zt,isEmpty:xr,isFunction:H,isUndefined:_r,keys:se,map:Sr,reduce:kr,size:Hr,transform:$r,union:fi,values:di}}catch(r){}Vn||(Vn=window._);var pi=Vn,gi=vi;function vi(t){this._isDirected=!pi.has(t,"directed")||t.directed,this._isMultigraph=!!pi.has(t,"multigraph")&&t.multigraph,this._isCompound=!!pi.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=pi.constant(void 0),this._defaultEdgeLabelFn=pi.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 mi(t,e){t[e]?t[e]++:t[e]=1}function yi(t,e){--t[e]||delete t[e]}function bi(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}return i+""+o+""+(pi.isUndefined(r)?"\0":r)}function xi(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}function _i(t,e){return bi(t,e.v,e.w,e.name)}vi.prototype._nodeCount=0,vi.prototype._edgeCount=0,vi.prototype.isDirected=function(){return this._isDirected},vi.prototype.isMultigraph=function(){return this._isMultigraph},vi.prototype.isCompound=function(){return this._isCompound},vi.prototype.setGraph=function(t){return this._label=t,this},vi.prototype.graph=function(){return this._label},vi.prototype.setDefaultNodeLabel=function(t){return pi.isFunction(t)||(t=pi.constant(t)),this._defaultNodeLabelFn=t,this},vi.prototype.nodeCount=function(){return this._nodeCount},vi.prototype.nodes=function(){return pi.keys(this._nodes)},vi.prototype.sources=function(){var t=this;return pi.filter(this.nodes(),(function(e){return pi.isEmpty(t._in[e])}))},vi.prototype.sinks=function(){var t=this;return pi.filter(this.nodes(),(function(e){return pi.isEmpty(t._out[e])}))},vi.prototype.setNodes=function(t,e){var n=arguments,r=this;return pi.each(t,(function(t){n.length>1?r.setNode(t,e):r.setNode(t)})),this},vi.prototype.setNode=function(t,e){return pi.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)},vi.prototype.node=function(t){return this._nodes[t]},vi.prototype.hasNode=function(t){return pi.has(this._nodes,t)},vi.prototype.removeNode=function(t){var e=this;if(pi.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],pi.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),pi.each(pi.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],pi.each(pi.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},vi.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(pi.isUndefined(e))e="\0";else{for(var n=e+="";!pi.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},vi.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},vi.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},vi.prototype.children=function(t){if(pi.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return pi.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},vi.prototype.predecessors=function(t){var e=this._preds[t];if(e)return pi.keys(e)},vi.prototype.successors=function(t){var e=this._sucs[t];if(e)return pi.keys(e)},vi.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return pi.union(e,this.successors(t))},vi.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},vi.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;pi.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),pi.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var r={};function i(t){var o=n.parent(t);return void 0===o||e.hasNode(o)?(r[t]=o,o):o in r?r[o]:i(o)}return this._isCompound&&pi.each(e.nodes(),(function(t){e.setParent(t,i(t))})),e},vi.prototype.setDefaultEdgeLabel=function(t){return pi.isFunction(t)||(t=pi.constant(t)),this._defaultEdgeLabelFn=t,this},vi.prototype.edgeCount=function(){return this._edgeCount},vi.prototype.edges=function(){return pi.values(this._edgeObjs)},vi.prototype.setPath=function(t,e){var n=this,r=arguments;return pi.reduce(t,(function(t,i){return r.length>1?n.setEdge(t,i,e):n.setEdge(t,i),i})),this},vi.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,pi.isUndefined(n)||(n=""+n);var a=bi(this._isDirected,t,e,n);if(pi.has(this._edgeLabels,a))return i&&(this._edgeLabels[a]=r),this;if(!pi.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=xi(this._isDirected,t,e,n);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[a]=s,mi(this._preds[e],t),mi(this._sucs[t],e),this._in[e][a]=s,this._out[t][a]=s,this._edgeCount++,this},vi.prototype.edge=function(t,e,n){var r=1===arguments.length?_i(this._isDirected,arguments[0]):bi(this._isDirected,t,e,n);return this._edgeLabels[r]},vi.prototype.hasEdge=function(t,e,n){var r=1===arguments.length?_i(this._isDirected,arguments[0]):bi(this._isDirected,t,e,n);return pi.has(this._edgeLabels,r)},vi.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?_i(this._isDirected,arguments[0]):bi(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],yi(this._preds[e],t),yi(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},vi.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var r=pi.values(n);return e?pi.filter(r,(function(t){return t.v===e})):r}},vi.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var r=pi.values(n);return e?pi.filter(r,(function(t){return t.w===e})):r}},vi.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))};var wi={Graph:gi,version:"2.1.8"},Si={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:Ei(t),edges:Ti(t)};return pi.isUndefined(t.graph())||(e.value=pi.clone(t.graph())),e},read:function(t){var e=new gi(t.options).setGraph(t.value);return pi.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),pi.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}};function Ei(t){return pi.map(t.nodes(),(function(e){var n=t.node(e),r=t.parent(e),i={v:e};return pi.isUndefined(n)||(i.value=n),pi.isUndefined(r)||(i.parent=r),i}))}function Ti(t){return pi.map(t.edges(),(function(e){var n=t.edge(e),r={v:e.v,w:e.w};return pi.isUndefined(e.name)||(r.name=e.name),pi.isUndefined(n)||(r.value=n),r}))}var ki=function(t){var e,n={},r=[];function i(r){pi.has(n,r)||(n[r]=!0,e.push(r),pi.each(t.successors(r),i),pi.each(t.predecessors(r),i))}return pi.each(t.nodes(),(function(t){e=[],i(t),e.length&&r.push(e)})),r},Ci=Mi;function Mi(){this._arr=[],this._keyIndices={}}Mi.prototype.size=function(){return this._arr.length},Mi.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},Mi.prototype.has=function(t){return pi.has(this._keyIndices,t)},Mi.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},Mi.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},Mi.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!pi.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},Mi.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},Mi.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)},Mi.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)))},Mi.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},Mi.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 Ai=function(t,e,n,r){return function(t,e,n,r){var i,o,a={},s=new Ci,u=function(t){var e=t.v!==i?t.v:t.w,r=a[e],u=n(t),l=o.distance+u;if(u<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+u);l<r.distance&&(r.distance=l,r.predecessor=i,s.decrease(e,l))};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(u);return a}(t,String(e),n||Ii,r||function(e){return t.outEdges(e)})},Ii=pi.constant(1),Oi=function(t,e,n){return pi.transform(t.nodes(),(function(r,i){r[i]=Ai(t,i,e,n)}),{})},Di=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){pi.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 u,l=[];do{u=n.pop(),r[u].onStack=!1,l.push(u)}while(a!==u);i.push(l)}}return t.nodes().forEach((function(t){pi.has(r,t)||o(t)})),i},Pi=function(t){return pi.filter(Di(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))},Li=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||Ni,n||function(e){return t.outEdges(e)})},Ni=pi.constant(1),Ri=ji;function ji(t){var e={},n={},r=[];if(pi.each(t.sinks(),(function i(o){if(pi.has(n,o))throw new Fi;pi.has(e,o)||(n[o]=!0,e[o]=!0,pi.each(t.predecessors(o),i),delete n[o],r.push(o))})),pi.size(e)!==t.nodeCount())throw new Fi;return r}function Fi(){}ji.CycleException=Fi,Fi.prototype=new Error;var Bi=function(t,e,n){pi.isArray(e)||(e=[e]);var r=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],o={};return pi.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);zi(t,e,"post"===n,o,r,i)})),i};function zi(t,e,n,r,i,o){pi.has(r,e)||(r[e]=!0,n||o.push(e),pi.each(i(e),(function(e){zi(t,e,n,r,i,o)})),n&&o.push(e))}var Zi,Ui={Graph:wi.Graph,json:Si,alg:{components:ki,dijkstra:Ai,dijkstraAll:Oi,findCycles:Pi,floydWarshall:Li,isAcyclic:function(t){try{Ri(t)}catch(t){if(t instanceof Ri.CycleException)return!1;throw t}return!0},postorder:function(t,e){return Bi(t,e,"post")},preorder:function(t,e){return Bi(t,e,"pre")},prim:function(t,e){var n,r=new gi,i={},o=new Ci;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;pi.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(),pi.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:Di,topsort:Ri},version:wi.version};try{Zi=Ui}catch(r){}Zi||(Zi=window.graphlib);var Hi,$i=Zi,Gi=function(t){return ln(t,5)},Wi=function(t,e,n){if(!U(n))return!1;var r=typeof e;return!!("number"==r?ae(n)&&$t(e,n.length):"string"==r&&e in n)&&g(n[e],t)},Vi=Object.prototype,Yi=Vi.hasOwnProperty,Xi=ti((function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&Wi(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=he(o),s=-1,u=a.length;++s<u;){var l=a[s],c=t[l];(void 0===c||g(c,Vi[l])&&!Yi.call(t,l))&&(t[l]=o[l])}return t})),qi=function(t){return function(e,n,r){var i=Object(e);if(!ae(e)){var o=pr(n);e=se(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}},Ki=/^\s+|\s+$/g,Ji=/^[-+]0x[0-9a-f]+$/i,Qi=/^0b[01]+$/i,to=/^0o[0-7]+$/i,eo=parseInt,no=function(t){if("number"==typeof t)return t;if(Un(t))return NaN;if(U(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=U(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ki,"");var n=Qi.test(t);return n||to.test(t)?eo(t.slice(2),n?2:8):Ji.test(t)?NaN:+t},ro=function(t){return t?1/0===(t=no(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},io=function(t){var e=ro(t),n=e%1;return e==e?n?e-n:e:0},oo=Math.max,ao=qi((function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:io(n);return i<0&&(i=oo(r+i,0)),ei(t,pr(e),i)})),so=function(t){return null!=t&&t.length?Vr(t,1):[]},uo=function(t,e){return null==t?t:hn(t,vn(e),he)},lo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},co=function(t,e){var n={};return e=pr(e),dn(t,(function(t,r,i){At(n,r,e(t,r,i))})),n},fo=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&&!Un(a):n(a,s)))var s=a,u=o}return u},ho=function(t,e){return t>e},po=function(t){return t&&t.length?fo(t,gn,ho):void 0},go=function(t,e,n){(void 0!==n&&!g(t[e],n)||void 0===n&&!(e in t))&&At(t,e,n)},vo=Function.prototype,mo=Object.prototype,yo=vo.toString,bo=mo.hasOwnProperty,xo=yo.call(Object),_o=function(t){if(!Lt(t)||"[object Object]"!=Z(t))return!1;var e=Se(t);if(null===e)return!0;var n=bo.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&yo.call(n)==xo},wo=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},So=function(t){return Dt(t,he(t))},Eo=function(t,e,n,r,i,o,a){var s=wo(t,n),u=wo(e,n),l=a.get(u);if(l)go(t,n,l);else{var c=o?o(s,u,n+"",t,e,a):void 0,f=void 0===c;if(f){var h=zt(u),d=!h&&Ut(u),p=!h&&!d&&Kt(u);c=u,h||d||p?zt(s)?c=s:ci(s)?c=ge(s):d?(f=!1,c=pe(u,!0)):p?(f=!1,c=qe(u,!0)):c=[]:_o(u)||Bt(u)?(c=s,Bt(s)?c=So(s):U(s)&&!H(s)||(c=tn(u))):f=!1}f&&(a.set(u,c),i(c,u,r,o,a),a.delete(u)),go(t,n,c)}},To=function t(e,n,r,i,o){e!==n&&hn(n,(function(a,s){if(o||(o=new kt),U(a))Eo(e,n,s,r,t,i,o);else{var u=i?i(wo(e,s),a,s+"",e,n,o):void 0;void 0===u&&(u=a),go(e,s,u)}}),he)},ko=function(t){return ti((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&&Wi(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,o)}return e}))}((function(t,e,n){To(t,e,n)})),Co=function(t,e){return t<e},Mo=function(t){return t&&t.length?fo(t,gn,Co):void 0},Ao=function(t,e){return t&&t.length?fo(t,pr(e),Co):void 0},Io=function(){return O.Date.now()},Oo=function(t,e,n,r){if(!U(t))return t;for(var i=-1,o=(e=rr(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var u=ir(e[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=a){var c=s[u];void 0===(l=r?r(c,u,s):void 0)&&(l=U(c)?c:$t(e[i+1])?[]:{})}Ot(s,u,l),s=s[u]}return t},Do=function(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=or(t,a);n(s,a)&&Oo(o,rr(a,t),s)}return o},Po=function(t,e){return Do(t,e,(function(e,n){return lr(t,n)}))},Lo=function(t){return Qr(qr(t,void 0,so),t+"")}((function(t,e){return null==t?{}:Po(t,e)})),No=Math.ceil,Ro=Math.max,jo=function(t,e,n,r){for(var i=-1,o=Ro(No((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a},Fo=function(t){return function(e,n,r){return r&&"number"!=typeof r&&Wi(e,n,r)&&(n=r=void 0),e=ro(e),void 0===n?(n=e,e=0):n=ro(n),r=void 0===r?e<n?1:-1:ro(r),jo(e,n,r,t)}}(),Bo=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t},zo=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Un(t),a=void 0!==e,s=null===e,u=e==e,l=Un(e);if(!s&&!l&&!o&&t>e||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t<e||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0},Zo=function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;++r<a;){var u=zo(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return t.index-e.index},Uo=function(t,e,n){e=e.length?Jn(e,(function(t){return zt(t)?function(e){return or(e,1===t.length?t[0]:t)}:t})):[gn];var r=-1;e=Jn(e,Yt(pr));var i=wr(t,(function(t,n,i){return{criteria:Jn(e,(function(e){return e(t)})),index:++r,value:t}}));return Bo(i,(function(t,e){return Zo(t,e,n)}))},Ho=ti((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Wi(t,e[0],e[1])?e=[]:n>2&&Wi(e[0],e[1],e[2])&&(e=[e[0]]),Uo(t,Vr(e,1),[])})),$o=0,Go=function(t){var e=++$o;return nr(t)+e},Wo=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},Vo=function(t,e){return Wo(t||[],e||[],Ot)};try{Hi={cloneDeep:Gi,constant:fn,defaults:Xi,each:yn,filter:gr,find:ao,flatten:so,forEach:mn,forIn:uo,has:yr,isUndefined:_r,last:lo,map:Sr,mapValues:co,max:po,merge:ko,min:Mo,minBy:Ao,now:Io,pick:Lo,range:Fo,reduce:kr,sortBy:Ho,uniqueId:Go,values:di,zipObject:Vo}}catch(r){}Hi||(Hi=window._);var Yo=Hi,Xo=qo;function qo(){var t={};t._next=t._prev=t,this._sentinel=t}function Ko(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function Jo(t,e){if("_next"!==t&&"_prev"!==t)return e}qo.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return Ko(e),e},qo.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&Ko(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},qo.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,Jo)),n=n._prev;return"["+t.join(", ")+"]"};var Qo=$i.Graph,ta=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new Qo,r=0,i=0;Yo.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),Yo.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=Yo.range(i+r+3).map((function(){return new Xo})),a=r+1;return Yo.forEach(n.nodes(),(function(t){ra(o,a,n.node(t))})),{graph:n,buckets:o,zeroIdx:a}}(t,e||ea),r=function(t,e,n){for(var r,i=[],o=e[e.length-1],a=e[0];t.nodeCount();){for(;r=a.dequeue();)na(t,e,n,r);for(;r=o.dequeue();)na(t,e,n,r);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue()){i=i.concat(na(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return Yo.flatten(Yo.map(r,(function(e){return t.outEdges(e.v,e.w)})),!0)},ea=Yo.constant(1);function na(t,e,n,r,i){var o=i?[]:void 0;return Yo.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,ra(e,n,s)})),Yo.forEach(t.outEdges(r.v),(function(r){var i=t.edge(r),o=r.w,a=t.node(o);a.in-=i,ra(e,n,a)})),t.removeNode(r.v),o}function ra(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 ia={run:function(t){var e="greedy"===t.graph().acyclicer?ta(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},r={};function i(o){Yo.has(r,o)||(r[o]=!0,n[o]=!0,Yo.forEach(t.outEdges(o),(function(t){Yo.has(n,t.w)?e.push(t):i(t.w)})),delete n[o])}return Yo.forEach(t.nodes(),i),e}(t);Yo.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,Yo.uniqueId("rev"))}))},undo:function(t){Yo.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)}}))}},oa=$i.Graph,aa={addDummyNode:sa,simplify:function(t){var e=(new oa).setGraph(t.graph());return Yo.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),Yo.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 oa({multigraph:t.isMultigraph()}).setGraph(t.graph());return Yo.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),Yo.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=Yo.map(t.nodes(),(function(e){var n={};return Yo.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return Yo.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=Yo.map(t.nodes(),(function(e){var n={};return Yo.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return Yo.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,u=t.width/2,l=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*l?(s<0&&(l=-l),n=l*a/s,r=l):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=Yo.map(Yo.range(ua(t)+1),(function(){return[]}));return Yo.forEach(t.nodes(),(function(n){var r=t.node(n),i=r.rank;Yo.isUndefined(i)||(e[i][r.order]=n)})),e},normalizeRanks:function(t){var e=Yo.min(Yo.map(t.nodes(),(function(e){return t.node(e).rank})));Yo.forEach(t.nodes(),(function(n){var r=t.node(n);Yo.has(r,"rank")&&(r.rank-=e)}))},removeEmptyRanks:function(t){var e=Yo.min(Yo.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];Yo.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;Yo.forEach(n,(function(e,n){Yo.isUndefined(e)&&n%i!=0?--r:r&&Yo.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),sa(t,"border",i,e)},maxRank:ua,partition:function(t,e){var n={lhs:[],rhs:[]};return Yo.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=Yo.now();try{return e()}finally{console.log(t+" time: "+(Yo.now()-n)+"ms")}},notime:function(t,e){return e()}};function sa(t,e,n,r){var i;do{i=Yo.uniqueId(r)}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function ua(t){return Yo.max(Yo.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!Yo.isUndefined(n))return n})))}var la={run:function(t){t.graph().dummyChains=[],Yo.forEach(t.edges(),(function(e){!function(t,e){var n,r,i,o=e.v,a=t.node(o).rank,s=e.w,u=t.node(s).rank,l=e.name,c=t.edge(e),f=c.labelRank;if(u!==a+1){for(t.removeEdge(e),i=0,++a;a<u;++i,++a)c.points=[],r={width:0,height:0,edgeLabel:c,edgeObj:e,rank:a},n=aa.addDummyNode(t,"edge",r,"_d"),a===f&&(r.width=c.width,r.height=c.height,r.dummy="edge-label",r.labelpos=c.labelpos),t.setEdge(o,n,{weight:c.weight},l),0===i&&t.graph().dummyChains.push(n),o=n;t.setEdge(o,s,{weight:c.weight},l)}}(t,e)}))},undo:function(t){Yo.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)}))}},ca=function(t){var e={};Yo.forEach(t.sources(),(function n(r){var i=t.node(r);if(Yo.has(e,r))return i.rank;e[r]=!0;var o=Yo.min(Yo.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}))},fa=function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen},ha=$i.Graph,da=fa,pa=function(t){var e,n,r=new ha({directed:!1}),i=t.nodes()[0],o=t.nodeCount();for(r.setNode(i,{});ga(r,t)<o;)e=va(r,t),n=r.hasNode(e.v)?da(t,e):-da(t,e),ma(r,t,n);return r};function ga(t,e){return Yo.forEach(t.nodes(),(function n(r){Yo.forEach(e.nodeEdges(r),(function(i){var o=i.v,a=r===o?i.w:o;t.hasNode(a)||da(e,i)||(t.setNode(a,{}),t.setEdge(r,a,{}),n(a))}))})),t.nodeCount()}function va(t,e){return Yo.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return da(e,n)}))}function ma(t,e,n){Yo.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}var ya=fa,ba=ca,xa=$i.alg.preorder,_a=$i.alg.postorder,wa=aa.simplify,Sa=Ea;function Ea(t){t=wa(t),ba(t);var e,n=pa(t);for(Ca(n),Ta(n,t);e=Aa(n);)Oa(n,t,e,Ia(n,t,e))}function Ta(t,e){var n=_a(t,t.nodes());n=n.slice(0,n.length-1),Yo.forEach(n,(function(n){!function(t,e,n){var r=t.node(n).parent;t.edge(n,r).cutvalue=ka(t,e,n)}(t,e,n)}))}function ka(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,Yo.forEach(e.nodeEdges(n),(function(o){var s,u,l=o.v===n,c=l?o.w:o.v;if(c!==r){var f=l===i,h=e.edge(o).weight;if(a+=f?h:-h,s=n,u=c,t.hasEdge(s,u)){var d=t.edge(n,c).cutvalue;a+=f?-d:d}}})),a}function Ca(t,e){arguments.length<2&&(e=t.nodes()[0]),Ma(t,{},1,e)}function Ma(t,e,n,r,i){var o=n,a=t.node(r);return e[r]=!0,Yo.forEach(t.neighbors(r),(function(i){Yo.has(e,i)||(n=Ma(t,e,n,i,r))})),a.low=o,a.lim=n++,i?a.parent=i:delete a.parent,n}function Aa(t){return Yo.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function Ia(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,u=!1;o.lim>a.lim&&(s=a,u=!0);var l=Yo.filter(e.edges(),(function(e){return u===Da(t,t.node(e.v),s)&&u!==Da(t,t.node(e.w),s)}));return Yo.minBy(l,(function(t){return ya(e,t)}))}function Oa(t,e,n,r){var i=n.v,o=n.w;t.removeEdge(i,o),t.setEdge(r.v,r.w,{}),Ca(t),Ta(t,e),function(t,e){var n=Yo.find(t.nodes(),(function(t){return!e.node(t).parent})),r=xa(t,n);r=r.slice(1),Yo.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 Da(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}Ea.initLowLimValues=Ca,Ea.initCutValues=Ta,Ea.calcCutValue=ka,Ea.leaveEdge=Aa,Ea.enterEdge=Ia,Ea.exchangeEdges=Oa;var Pa=ca,La=function(t){switch(t.graph().ranker){case"network-simplex":Ra(t);break;case"tight-tree":!function(t){Pa(t),pa(t)}(t);break;case"longest-path":Na(t);break;default:Ra(t)}},Na=Pa;function Ra(t){Sa(t)}var ja=function(t){var e=function(t){var e={},n=0;function r(i){var o=n;Yo.forEach(t.children(i),r),e[i]={low:o,lim:n++}}return Yo.forEach(t.children(),r),e}(t);Yo.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=[],u=Math.min(e[n].low,e[r].low),l=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||l>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,u=0,l=a[u],c=!0;n!==i.w;){if(r=t.node(n),c){for(;(l=a[u])!==s&&t.node(l).maxRank<r.rank;)u++;l===s&&(c=!1)}if(!c){for(;u<a.length-1&&t.node(l=a[u+1]).minRank<=r.rank;)u++;l=a[u]}t.setParent(n,l),n=t.successors(n)[0]}}))},Fa={run:function(t){var e=aa.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(r,i){var o=t.children(r);o&&o.length&&Yo.forEach(o,(function(t){n(t,i+1)})),e[r]=i}return Yo.forEach(t.children(),(function(t){n(t,1)})),e}(t),r=Yo.max(Yo.values(n))-1,i=2*r+1;t.graph().nestingRoot=e,Yo.forEach(t.edges(),(function(e){t.edge(e).minlen*=i}));var o=function(t){return Yo.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;Yo.forEach(t.children(),(function(a){Ba(t,e,i,o,r,n,a)})),t.graph().nodeRankFactor=i},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,Yo.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}};function Ba(t,e,n,r,i,o,a){var s=t.children(a);if(s.length){var u=aa.addBorderNode(t,"_bt"),l=aa.addBorderNode(t,"_bb"),c=t.node(a);t.setParent(u,a),c.borderTop=u,t.setParent(l,a),c.borderBottom=l,Yo.forEach(s,(function(s){Ba(t,e,n,r,i,o,s);var c=t.node(s),f=c.borderTop?c.borderTop:s,h=c.borderBottom?c.borderBottom:s,d=c.borderTop?r:2*r,p=f!==h?1:i-o[a]+1;t.setEdge(u,f,{weight:d,minlen:p,nestingEdge:!0}),t.setEdge(h,l,{weight:d,minlen:p,nestingEdge:!0})})),t.parent(a)||t.setEdge(e,u,{weight:0,minlen:i+o[a]})}else a!==e&&t.setEdge(e,a,{weight:0,minlen:n})}var za=function(t){Yo.forEach(t.children(),(function e(n){var r=t.children(n),i=t.node(n);if(r.length&&Yo.forEach(r,e),Yo.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)Za(t,"borderLeft","_bl",n,i,o),Za(t,"borderRight","_br",n,i,o)}}))};function Za(t,e,n,r,i,o){var a={width:0,height:0,rank:o,borderType:e},s=i[e][o-1],u=aa.addDummyNode(t,"border",a,n);i[e][o]=u,t.setParent(u,r),s&&t.setEdge(s,u,{weight:1})}var Ua={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||Ha(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){Yo.forEach(t.nodes(),(function(e){Ga(t.node(e))})),Yo.forEach(t.edges(),(function(e){var n=t.edge(e);Yo.forEach(n.points,Ga),Yo.has(n,"y")&&Ga(n)}))}(t),"lr"!==e&&"rl"!==e||(function(t){Yo.forEach(t.nodes(),(function(e){Wa(t.node(e))})),Yo.forEach(t.edges(),(function(e){var n=t.edge(e);Yo.forEach(n.points,Wa),Yo.has(n,"x")&&Wa(n)}))}(t),Ha(t))}};function Ha(t){Yo.forEach(t.nodes(),(function(e){$a(t.node(e))})),Yo.forEach(t.edges(),(function(e){$a(t.edge(e))}))}function $a(t){var e=t.width;t.width=t.height,t.height=e}function Ga(t){t.y=-t.y}function Wa(t){var e=t.x;t.x=t.y,t.y=e}var Va=function(t){var e={},n=Yo.filter(t.nodes(),(function(e){return!t.children(e).length})),r=Yo.max(Yo.map(n,(function(e){return t.node(e).rank}))),i=Yo.map(Yo.range(r+1),(function(){return[]}));function o(n){if(!Yo.has(e,n)){e[n]=!0;var r=t.node(n);i[r.rank].push(n),Yo.forEach(t.successors(n),o)}}var a=Yo.sortBy(n,(function(e){return t.node(e).rank}));return Yo.forEach(a,o),i},Ya=function(t,e){for(var n=0,r=1;r<e.length;++r)n+=Xa(t,e[r-1],e[r]);return n};function Xa(t,e,n){for(var r=Yo.zipObject(n,Yo.map(n,(function(t,e){return e}))),i=Yo.flatten(Yo.map(e,(function(e){return Yo.sortBy(Yo.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=Yo.map(new Array(a),(function(){return 0})),u=0;return Yo.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;u+=t.weight*n}))),u}var qa=function(t,e){return Yo.map(e,(function(e){var n=t.inEdges(e);if(n.length){var r=Yo.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}}))},Ka=function(t,e){var n={};return Yo.forEach(t,(function(t,e){var r=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};Yo.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)})),Yo.forEach(e.edges(),(function(t){var e=n[t.v],r=n[t.w];Yo.isUndefined(e)||Yo.isUndefined(r)||(r.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){e.merged||(Yo.isUndefined(e.barycenter)||Yo.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),Yo.forEach(i.in.reverse(),n(i)),Yo.forEach(i.out,r(i))}return Yo.map(Yo.filter(e,(function(t){return!t.merged})),(function(t){return Yo.pick(t,["vs","i","barycenter","weight"])}))}(Yo.filter(n,(function(t){return!t.indegree})))},Ja=function(t,e){var n,r=aa.partition(t,(function(t){return Yo.has(t,"barycenter")})),i=r.lhs,o=Yo.sortBy(r.rhs,(function(t){return-t.i})),a=[],s=0,u=0,l=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})),l=Qa(a,o,l),Yo.forEach(i,(function(t){l+=t.vs.length,a.push(t.vs),s+=t.barycenter*t.weight,u+=t.weight,l=Qa(a,o,l)}));var c={vs:Yo.flatten(a,!0)};return u&&(c.barycenter=s/u,c.weight=u),c};function Qa(t,e,n){for(var r;e.length&&(r=Yo.last(e)).i<=n;)e.pop(),t.push(r.vs),n++;return n}var ts=function t(e,n,r,i){var o=e.children(n),a=e.node(n),s=a?a.borderLeft:void 0,u=a?a.borderRight:void 0,l={};s&&(o=Yo.filter(o,(function(t){return t!==s&&t!==u})));var c=qa(e,o);Yo.forEach(c,(function(n){if(e.children(n.v).length){var o=t(e,n.v,r,i);l[n.v]=o,Yo.has(o,"barycenter")&&(a=n,s=o,Yo.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 f=Ka(c,r);!function(t,e){Yo.forEach(t,(function(t){t.vs=Yo.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(f,l);var h=Ja(f,i);if(s&&(h.vs=Yo.flatten([s,h.vs,u],!0),e.predecessors(s).length)){var d=e.node(e.predecessors(s)[0]),p=e.node(e.predecessors(u)[0]);Yo.has(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+d.order+p.order)/(h.weight+2),h.weight+=2}return h},es=$i.Graph,ns=function(t,e,n){var r=function(t){for(var e;t.hasNode(e=Yo.uniqueId("_root")););return e}(t),i=new es({compound:!0}).setGraph({root:r}).setDefaultNodeLabel((function(e){return t.node(e)}));return Yo.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),Yo.forEach(t[n](o),(function(e){var n=e.v===o?e.w:e.v,r=i.edge(n,o),a=Yo.isUndefined(r)?0:r.weight;i.setEdge(n,o,{weight:t.edge(e).weight+a})})),Yo.has(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))})),i},rs=function(t,e,n){var r,i={};Yo.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}}))},is=$i.Graph,os=function(t){var e=aa.maxRank(t),n=as(t,Yo.range(1,e+1),"inEdges"),r=as(t,Yo.range(e-1,-1,-1),"outEdges"),i=Va(t);us(t,i);for(var o,a=Number.POSITIVE_INFINITY,s=0,u=0;u<4;++s,++u){ss(s%2?n:r,s%4>=2),i=aa.buildLayerMatrix(t);var l=Ya(t,i);l<a&&(u=0,o=Yo.cloneDeep(i),a=l)}us(t,o)};function as(t,e,n){return Yo.map(e,(function(e){return ns(t,e,n)}))}function ss(t,e){var n=new is;Yo.forEach(t,(function(t){var r=t.graph().root,i=ts(t,r,n,e);Yo.forEach(i.vs,(function(e,n){t.node(e).order=n})),rs(t,n,i.vs)}))}function us(t,e){Yo.forEach(e,(function(e){Yo.forEach(e,(function(e,n){t.node(e).order=n}))}))}var ls=$i.Graph,cs=function(t){var e,n=aa.buildLayerMatrix(t),r=Yo.merge(fs(t,n),hs(t,n)),i={};Yo.forEach(["u","d"],(function(o){e="u"===o?n:Yo.values(n).reverse(),Yo.forEach(["l","r"],(function(n){"r"===n&&(e=Yo.map(e,(function(t){return Yo.values(t).reverse()})));var a=("u"===o?t.predecessors:t.successors).bind(t),s=gs(t,e,r,a),u=vs(t,e,s.root,s.align,"r"===n);"r"===n&&(u=Yo.mapValues(u,(function(t){return-t}))),i[o+n]=u}))}));var o=ms(t,i);return ys(i,o),bs(i,t.graph().align)};function fs(t,e){var n={};return Yo.reduce(e,(function(e,r){var i=0,o=0,a=e.length,s=Yo.last(r);return Yo.forEach(r,(function(e,u){var l=function(t,e){if(t.node(e).dummy)return Yo.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),c=l?t.node(l).order:a;(l||e===s)&&(Yo.forEach(r.slice(o,u+1),(function(e){Yo.forEach(t.predecessors(e),(function(r){var o=t.node(r),a=o.order;!(a<i||c<a)||o.dummy&&t.node(e).dummy||ds(n,r,e)}))})),o=u+1,i=c)})),r})),n}function hs(t,e){var n={};function r(e,r,i,o,a){var s;Yo.forEach(Yo.range(r,i),(function(r){s=e[r],t.node(s).dummy&&Yo.forEach(t.predecessors(s),(function(e){var r=t.node(e);r.dummy&&(r.order<o||r.order>a)&&ds(n,e,s)}))}))}return Yo.reduce(e,(function(e,n){var i,o=-1,a=0;return Yo.forEach(n,(function(s,u){if("border"===t.node(s).dummy){var l=t.predecessors(s);l.length&&(i=t.node(l[0]).order,r(n,a,u,o,i),a=u,o=i)}r(n,a,n.length,i,e.length)})),n})),n}function ds(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 ps(t,e,n){if(e>n){var r=e;e=n,n=r}return Yo.has(t[e],n)}function gs(t,e,n,r){var i={},o={},a={};return Yo.forEach(e,(function(t){Yo.forEach(t,(function(t,e){i[t]=t,o[t]=t,a[t]=e}))})),Yo.forEach(e,(function(t){var e=-1;Yo.forEach(t,(function(t){var s=r(t);if(s.length)for(var u=((s=Yo.sortBy(s,(function(t){return a[t]}))).length-1)/2,l=Math.floor(u),c=Math.ceil(u);l<=c;++l){var f=s[l];o[t]===t&&e<a[f]&&!ps(n,t,f)&&(o[f]=t,o[t]=i[t]=i[f],e=a[f])}}))})),{root:i,align:o}}function vs(t,e,n,r,i){var o={},a=function(t,e,n,r){var i=new ls,o=t.graph(),a=function(t,e,n){return function(r,i,o){var a,s=r.node(i),u=r.node(o),l=0;if(l+=s.width/2,Yo.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":a=-s.width/2;break;case"r":a=s.width/2}if(a&&(l+=n?a:-a),a=0,l+=(s.dummy?e:t)/2,l+=(u.dummy?e:t)/2,l+=u.width/2,Yo.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":a=u.width/2;break;case"r":a=-u.width/2}return a&&(l+=n?a:-a),a=0,l}}(o.nodesep,o.edgesep,r);return Yo.forEach(e,(function(e){var r;Yo.forEach(e,(function(e){var o=n[e];if(i.setNode(o),r){var s=n[r],u=i.edge(s,o);i.setEdge(s,o,Math.max(a(t,e,r),u||0))}r=e}))})),i}(t,e,n,i),s=i?"borderLeft":"borderRight";function u(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 u((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)),u((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)),Yo.forEach(r,(function(t){o[t]=o[n[t]]})),o}function ms(t,e){return Yo.minBy(Yo.values(e),(function(e){var n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return Yo.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}))}function ys(t,e){var n=Yo.values(e),r=Yo.min(n),i=Yo.max(n);Yo.forEach(["u","d"],(function(n){Yo.forEach(["l","r"],(function(o){var a,s=n+o,u=t[s];if(u!==e){var l=Yo.values(u);(a="l"===o?r-Yo.min(l):i-Yo.max(l))&&(t[s]=Yo.mapValues(u,(function(t){return t+a})))}}))}))}function bs(t,e){return Yo.mapValues(t.ul,(function(n,r){if(e)return t[e.toLowerCase()][r];var i=Yo.sortBy(Yo.map(t,r));return(i[1]+i[2])/2}))}var xs=cs,_s=function(t){(function(t){var e=aa.buildLayerMatrix(t),n=t.graph().ranksep,r=0;Yo.forEach(e,(function(e){var i=Yo.max(Yo.map(e,(function(e){return t.node(e).height})));Yo.forEach(e,(function(e){t.node(e).y=r+i/2})),r+=i+n}))})(t=aa.asNonCompoundGraph(t)),Yo.forEach(xs(t),(function(e,n){t.node(n).x=e}))},ws=aa.normalizeRanks,Ss=aa.removeEmptyRanks,Es=aa,Ts=$i.Graph,ks=function(t,e){var n=e&&e.debugTiming?Es.time:Es.notime;n("layout",(function(){var e=n("  buildLayoutGraph",(function(){return function(t){var e=new Ts({multigraph:!0,compound:!0}),n=Rs(t.graph());return e.setGraph(Yo.merge({},Ms,Ns(n,Cs),Yo.pick(n,As))),Yo.forEach(t.nodes(),(function(n){var r=Rs(t.node(n));e.setNode(n,Yo.defaults(Ns(r,Is),Os)),e.setParent(n,t.parent(n))})),Yo.forEach(t.edges(),(function(n){var r=Rs(t.edge(n));e.setEdge(n,Yo.merge({},Ps,Ns(r,Ds),Yo.pick(r,Ls)))})),e}(t)}));n("  runLayout",(function(){!function(t,e){e("    makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,Yo.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){Yo.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(){ia.run(t)})),e("    nestingGraph.run",(function(){Fa.run(t)})),e("    rank",(function(){La(Es.asNonCompoundGraph(t))})),e("    injectEdgeLabelProxies",(function(){!function(t){Yo.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};Es.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e("    removeEmptyRanks",(function(){Ss(t)})),e("    nestingGraph.cleanup",(function(){Fa.cleanup(t)})),e("    normalizeRanks",(function(){ws(t)})),e("    assignRankMinMax",(function(){!function(t){var e=0;Yo.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=Yo.max(e,r.maxRank))})),t.graph().maxRank=e}(t)})),e("    removeEdgeLabelProxies",(function(){!function(t){Yo.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(){la.run(t)})),e("    parentDummyChains",(function(){ja(t)})),e("    addBorderSegments",(function(){za(t)})),e("    order",(function(){os(t)})),e("    insertSelfEdges",(function(){!function(t){var e=Es.buildLayerMatrix(t);Yo.forEach(e,(function(e){var n=0;Yo.forEach(e,(function(e,r){var i=t.node(e);i.order=r+n,Yo.forEach(i.selfEdges,(function(e){Es.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(){Ua.adjust(t)})),e("    position",(function(){_s(t)})),e("    positionSelfEdges",(function(){!function(t){Yo.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){Yo.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(Yo.last(n.borderLeft)),a=t.node(Yo.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}})),Yo.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e("    normalize.undo",(function(){la.undo(t)})),e("    fixupEdgeLabelCoords",(function(){!function(t){Yo.forEach(t.edges(),(function(e){var n=t.edge(e);if(Yo.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(){Ua.undo(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 u(t){var o=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,o-s/2),n=Math.max(n,o+s/2),r=Math.min(r,a-u/2),i=Math.max(i,a+u/2)}Yo.forEach(t.nodes(),(function(e){u(t.node(e))})),Yo.forEach(t.edges(),(function(e){var n=t.edge(e);Yo.has(n,"x")&&u(n)})),e-=a,r-=s,Yo.forEach(t.nodes(),(function(n){var i=t.node(n);i.x-=e,i.y-=r})),Yo.forEach(t.edges(),(function(n){var i=t.edge(n);Yo.forEach(i.points,(function(t){t.x-=e,t.y-=r})),Yo.has(i,"x")&&(i.x-=e),Yo.has(i,"y")&&(i.y-=r)})),o.width=n-e+a,o.height=i-r+s}(t)})),e("    assignNodeIntersects",(function(){!function(t){Yo.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(Es.intersectRect(o,n)),i.points.push(Es.intersectRect(a,r))}))}(t)})),e("    reversePoints",(function(){!function(t){Yo.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e("    acyclic.undo",(function(){ia.undo(t)}))}(e,n)})),n("  updateInputGraph",(function(){!function(t,e){Yo.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))})),Yo.forEach(t.edges(),(function(n){var r=t.edge(n),i=e.edge(n);r.points=i.points,Yo.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)}))}))},Cs=["nodesep","edgesep","ranksep","marginx","marginy"],Ms={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},As=["acyclicer","ranker","rankdir","align"],Is=["width","height"],Os={width:0,height:0},Ds=["minlen","weight","width","height","labeloffset"],Ps={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Ls=["labelpos"];function Ns(t,e){return Yo.mapValues(Yo.pick(t,e),Number)}function Rs(t){var e={};return Yo.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}var js=$i.Graph,Fs={graphlib:$i,layout:ks,debug:{debugOrdering:function(t){var e=aa.buildLayerMatrix(t),n=new js({compound:!0,multigraph:!0}).setGraph({});return Yo.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),Yo.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),Yo.forEach(e,(function(t,e){var r="layer"+e;n.setNode(r,{rank:"same"}),Yo.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}},util:{time:aa.time,notime:aa.notime},version:"0.8.5"},Bs=Fs.graphlib,zs=Fs.layout;class Zs{constructor(t){this.cardinality=1,this.include=l.UNSPECIFIED,this.isGroupNode=!1,this.parentNode=null,this.type=u.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 Us{constructor(){this.nodes={},this.edges=[],this.nodes={},this.edges=[]}}function Hs(t){const e=new Us;return t.nodes.map((t=>new Zs(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}class $s{constructor(t,e={}){this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=l.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=u.META,this.path=[],this.name=t,this.metaGraph=Ys(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,t.nodes().forEach((e=>n.push(t.node(e))))):e.push(r.name)}return e}}class Gs{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 Ws(t,e={}){return new $s(t,e)}function Vs(t,e){return new Gs(t,e)}function Ys(t,e,n){const r=n||{},i=new Bs.Graph(r);return i.setGraph({name:t,rankdir:r.rankdir,type:e,align:r.align}),i}class Xs{constructor(t={}){this.graphOptions=t,this.index={},this.graphOptions.compound=!0,this.root=Ws(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=Ys(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),u={v:i?a:s,w:i?s:a};let l=r.edge(u);l||(l=Vs(u.v,u.w),l.inbound=i,r.setEdge(u.v,u.w,l)),l.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 Ks(i,t,e,n),Ks(o,t,e,n),n}}function qs(t,e){const{rankDirection:n,align:r}=e,i=new Xs({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=Ws(n,t.graphOptions),a.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),u=o(e.nodes[a.w],i);for(;r[s]===i[u];)if(s--,u--,s<0||u<0)throw Error("No difference found between ancestor paths.");const l=n[r[s+1]],c=r[s],f=i[u];let h=l.metaGraph.edge(c,f);h||(h=Vs(c,f),l.metaGraph.setEdge(c,f,h)),h.addBaseEdge(a,t)}))}(i,t),i}function Ks(t,e,n,r){(n?t.inEdges(e.name):t.outEdges(e.name)).forEach((e=>{const n=t.edge(e);r.push(n)}))}class Js{constructor(t){this.hierarchy=t,this.index={},this.hasSubHierarchy={},this.root=new eu(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!==u.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 tu(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),f=!!r.node(e.w),[h,d]=f?[e.w,e.v]:[e.v,e.w],p=e=>{const n=f?{v:e,w:t}:{v:t,w:e};return a.coreGraph.edge(n)};let g=p(d);g||(g=p(s(f,d,o.name)));const v=s(f,t),m=s(f,d,t);let y=i.node(m);if(!y){let t=i.node(v);if(!t){const e={name:v,type:u.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:l.UNSPECIFIED,inbound:f,attr:{}};t=new Qs(e),this.index[v]=t,i.setNode(v,t)}const e={name:m,type:u.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:l.UNSPECIFIED,inbound:f,attr:{}};y=new Qs(e),this.index[m]=y,i.setNode(m,y),i.setParent(m,v),t.node.cardinality++}const b=new tu(n);b.adjoiningMetaEdge=g,f?i.setEdge(m,h,b):i.setEdge(h,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 eu(e,this.hierarchy.graphOptions):new Qs(e),this.index[t]):null}getRenderNodeByName(t){return this.index[t]}getNodeByName(t){return this.hierarchy.node(t)}}class Qs{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 tu{constructor(t){this.metaEdge=t,this.adjoiningMetaEdge=null,this.weight=1,this.points=[]}}class eu extends(/^(539|826)$/.test(n.j)?Qs:null){constructor(t,e){super(t);const n=t.metaGraph.graph();e.compound=!0,this.coreGraph=Ys(n.name,c.CORE,e)}}function nu(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,l;const{height:c,width:f}=t;switch(t.node.type){case u.NODE:Object.assign(t,n.nodeSize.node),t.height=c||n.nodeSize.node.height,t.width=f||n.nodeSize.node.width;break;case u.BRIDGE:Object.assign(t,n.nodeSize.bridge);break;case u.META:t.expanded?nu(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===(l=null===(s=null==e?void 0:e.nodeSize)||void 0===s?void 0:s.bridge)||void 0===l?void 0:l.width)))}}))}(t,e),t.node.type===u.META&&function(t,e){const n=i(e),r=n.subScene.meta;Object.assign(t,r);const{nodeSep:o,rankSep:a,edgeSep:s,align:l}=n.graph.meta,c={nodesep:o,ranksep:a,edgesep:s,align:l};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!==u.BRIDGE&&a.push(e)})),!a.length)return{width:0,height:0};zs(t);let s=1/0,l=1/0,c=-1/0,f=-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,u=n.y-a,h=n.y+a;l=u<l?u:l,f=h>f?h:f})),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=ru(t[0],t[1]);for(let n=1;n<t.length-1;n++){const r=ru(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:iu(r);n.points[0].x=t}if(null!=i){const t=i.expanded?i.x:iu(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]=ou(o,i));const a=n.points[1];null!=r&&(n.points[0]=ou(a,r)),n.points.forEach((t=>{s=t.x<s?t.x:s,c=t.x>c?t.x:c,l=t.y<l?t.y:l,f=t.y>f?t.y:f}))})),t.nodes().forEach((e=>{const n=t.node(e);n.x-=s,n.y-=l})),t.edges().forEach((e=>{t.edge(e).points.forEach((t=>{t.x-=s,t.y-=l}))})),{width:c-s,height:f-l}}(t.coreGraph,c));let f=0;t.coreGraph.nodeCount()>0&&f++;const h=f<=1?0:f;t.coreBox.width+=h+h,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 ru(t,e){const n=e.x-t.x,r=e.y-t.y;return 180*Math.atan(r/n)/Math.PI}function iu(t){return t.expanded?t.x:t.x-t.width/2+0+t.coreBox.width/2}function ou(t,e){const n=e.expanded?e.x:iu(e),r=e.y,i=t.x-n,o=t.y-r;let a,s,u=e.expanded?e.width:e.coreBox.width,l=e.expanded?e.height:e.coreBox.height;return Math.abs(o)*u/2>Math.abs(i)*l/2?(o<0&&(l=-l),a=0===o?0:l/2*i/o,s=l/2):(i<0&&(u=-u),a=u/2,s=0===i?0:u/2*o/i),{x:n+a,y:r+s}}function au(t,e,n){var i,o,a,s;const u=t.nodes.filter(((t,e,n)=>n.findIndex((e=>e.id===t.id))!==e)).map((t=>t.id));if(u.length)throw new Error(`Duplicated ids found: ${u.join(", ")}`);const l=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[r,a]of i)n(r,i)?o[r]=a:e=e.concat(r,a);return r(o,e)};return r(t).filter((t=>e.includes(t)))}(t.compound||{},(null==e?void 0:e.expanded)||[]),f=function(t,e){return function(t){return new Js(t)}(qs(Hs(t),e))}(l,{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){e.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)}))}(f,c),nu(f.root,n),lu(f.root)}function su(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 uu(t,e,n,r){var i,o;let s=[];const u=(null===(i=n.find((e=>e.id===t)))||void 0===i?void 0:i.path)||[],l=(null===(o=n.find((t=>t.id===e)))||void 0===o?void 0:o.path)||[],c=[a,...u].slice(0,u.length).reverse(),f=[a,...l].slice(0,l.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))))))})),f.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 lu(t){const e=t.coreGraph.nodes().map((e=>t.coreGraph.node(e)));return Object.assign(Object.assign({},cu(t)),{expanded:t.expanded,nodes:t.expanded?(n=e,n.map((t=>t.node.type===u.META?lu(t):cu(t)))):[],edges:t.expanded?fu(t):[]});var n}function cu(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}}function fu(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,u=t.y-t.height/2,l=o.x-s,c=o.y-u,f=-t.paddingLeft,h=-(t.paddingTop+t.labelHeight);a.x=l+f,a.y=c+h}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}}))}},39741:function(t,e,n){var r,i;(function(o,a){"use strict";r=a,i="function"===typeof r?r.call(e,n,e,t):r,void 0===i||(t.exports=i)})(window,(function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],n=0;n<e.length;n++){var r=e[n],i=r+"MatchesSelector";if(t[i])return i}}();return function(e,n){return e[t](n)}}))},43631:function(t,e,n){"use strict";n.d(e,{qY:function(){return p}});var r=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))},i=function(){function t(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"}return t}(),o=function(){function t(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return t}(),a=function(){function t(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"}return t}(),s=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),u=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),l=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,c=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,f=3,h=[["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",l]],d=/^(539|826)$/.test(n.j)?[["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/]]:null;function p(t){return t?v(t):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new u:"undefined"!==typeof navigator?v(navigator.userAgent):y()}function g(t){return""!==t&&h.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 v(t){var e=g(t);if(!e)return null;var n=e[0],o=e[1];if("searchbot"===n)return new s;var u=o[1]&&o[1].split(".").join("_").split("_").slice(0,3);u?u.length<f&&(u=r(r([],u,!0),b(f-u.length),!0)):u=[];var l=u.join("."),h=m(t),d=c.exec(t);return d&&d[1]?new a(n,l,h,d[1]):new i(n,l,h)}function m(t){for(var e=0,n=d.length;e<n;e++){var r=d[e],i=r[0],o=r[1],a=o.exec(t);if(a)return i}return null}function y(){var t="undefined"!==typeof process&&process.version;return t?new o(process.version.slice(1)):null}function b(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}},18299:function(t,e,n){"use strict";n.d(e,{ZT:function(){return i}});
/*! *****************************************************************************
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])},r(t,e)};function i(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.create;Object.create},7158:function(t,e,n){var r,i;(function(o,a){r=a,i="function"===typeof r?r.call(e,n,e,t):r,void 0===i||(t.exports=i)})("undefined"!=typeof window&&window,(function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},r=n[t]=n[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{},r=n[t]=n[t]||{};return r[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var r=n.indexOf(e);return-1!=r&&n.splice(r,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],i=0;i<n.length;i++){var o=n[i],a=r&&r[o];a&&(this.off(t,o),delete r[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}))},99047:function(t,e,n){var r,i;(function(o,a){r=[n(39741)],i=function(t){return a(o,t)}.apply(e,r),void 0===i||(t.exports=i)})(window,(function(t,e){"use strict";var n={extend:function(t,e){for(var n in e)t[n]=e[n];return t},modulo:function(t,e){return(t%e+e)%e}},r=Array.prototype.slice;n.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?r.call(t):[t]},n.removeFrom=function(t,e){var n=t.indexOf(e);-1!=n&&t.splice(n,1)},n.getParent=function(t,n){while(t.parentNode&&t!=document.body)if(t=t.parentNode,e(t,n))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,r){t=n.makeArray(t);var i=[];return t.forEach((function(t){if(t instanceof HTMLElement)if(r){e(t,r)&&i.push(t);for(var n=t.querySelectorAll(r),o=0;o<n.length;o++)i.push(n[o])}else i.push(t)})),i},n.debounceMethod=function(t,e,n){n=n||100;var r=t.prototype[e],i=e+"Timeout";t.prototype[e]=function(){var t=this[i];clearTimeout(t);var e=arguments,o=this;this[i]=setTimeout((function(){r.apply(o,e),delete o[i]}),n)}},n.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,n){return e+"-"+n})).toLowerCase()};var i=t.console;return n.htmlInit=function(e,r){n.docReady((function(){var o=n.toDashed(r),a="data-"+o,s=document.querySelectorAll("["+a+"]"),u=document.querySelectorAll(".js-"+o),l=n.makeArray(s).concat(n.makeArray(u)),c=a+"-options",f=t.jQuery;l.forEach((function(t){var n,o=t.getAttribute(a)||t.getAttribute(c);try{n=o&&JSON.parse(o)}catch(u){return void(i&&i.error("Error parsing "+a+" on "+t.className+": "+u))}var s=new e(t,n);f&&f.data(t,r,s)}))}))},n}))},66131:function(t,e,n){var r,i;
/*!
 * getSize v2.0.3
 * measure size of elements
 * MIT license
 */(function(o,a){r=a,i="function"===typeof r?r.call(e,n,e,t):r,void 0===i||(t.exports=i)})(window,(function(){"use strict";function t(t){var e=parseFloat(t),n=-1==t.indexOf("%")&&!isNaN(e);return n&&e}function e(){}var n="undefined"==typeof console?e:function(t){console.error(t)},r=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],i=r.length;function o(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<i;e++){var n=r[e];t[n]=0}return t}function a(t){var e=getComputedStyle(t);return e||n("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}var s,u=!1;function l(){if(!u){u=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(e);var r=a(e);s=200==Math.round(t(r.width)),c.isBoxSizeOuter=s,n.removeChild(e)}}function c(e){if(l(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var n=a(e);if("none"==n.display)return o();var u={};u.width=e.offsetWidth,u.height=e.offsetHeight;for(var c=u.isBorderBox="border-box"==n.boxSizing,f=0;f<i;f++){var h=r[f],d=n[h],p=parseFloat(d);u[h]=isNaN(p)?0:p}var g=u.paddingLeft+u.paddingRight,v=u.paddingTop+u.paddingBottom,m=u.marginLeft+u.marginRight,y=u.marginTop+u.marginBottom,b=u.borderLeftWidth+u.borderRightWidth,x=u.borderTopWidth+u.borderBottomWidth,_=c&&s,w=t(n.width);!1!==w&&(u.width=w+(_?0:g+b));var S=t(n.height);return!1!==S&&(u.height=S+(_?0:v+x)),u.innerWidth=u.width-(g+b),u.innerHeight=u.height-(v+x),u.outerWidth=u.width+m,u.outerHeight=u.height+y,u}}return c}))},49685:function(t,e,n){"use strict";n.r(e),n.d(e,{ARRAY_TYPE:function(){return i},EPSILON:function(){return r},RANDOM:function(){return o},equals:function(){return l},setMatrixArrayType:function(){return a},toRadian:function(){return u}});var r=1e-6,i="undefined"!==typeof Float32Array?Float32Array:Array,o=Math.random;function a(t){i=t}var s=Math.PI/180;function u(t){return t*s}function l(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}Math.hypot||(Math.hypot=function(){var t=0,e=arguments.length;while(e--)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},76752:function(t,e,n){"use strict";if(n.r(e),n.d(e,{glMatrix:function(){return r},mat2:function(){return i},mat2d:function(){return o},mat3:function(){return a},mat4:function(){return s},quat:function(){return u},quat2:function(){return l},vec2:function(){return c},vec3:function(){return f},vec4:function(){return h}}),/^(539|826)$/.test(n.j))var r=n(49685);if(/^(539|826)$/.test(n.j))var i=n(68075);if(/^(539|826)$/.test(n.j))var o=n(2870);if(/^(539|826)$/.test(n.j))var a=n(35600);if(/^(539|826)$/.test(n.j))var s=n(85975);if(/^(539|826)$/.test(n.j))var u=n(32945);if(/^(539|826)$/.test(n.j))var l=n(72322);if(/^(539|826)$/.test(n.j))var c=n(31437);if(/^(539|826)$/.test(n.j))var f=n(77160);if(/^(539|826)$/.test(n.j))var h=n(98333)},68075:function(t,e,n){"use strict";if(n.r(e),n.d(e,{LDU:function(){return _},add:function(){return w},adjoint:function(){return h},clone:function(){return o},copy:function(){return a},create:function(){return i},determinant:function(){return d},equals:function(){return T},exactEquals:function(){return E},frob:function(){return x},fromRotation:function(){return m},fromScaling:function(){return y},fromValues:function(){return u},identity:function(){return s},invert:function(){return f},mul:function(){return M},multiply:function(){return p},multiplyScalar:function(){return k},multiplyScalarAndAdd:function(){return C},rotate:function(){return g},scale:function(){return v},set:function(){return l},str:function(){return b},sub:function(){return A},subtract:function(){return S},transpose:function(){return c}}),/^(539|826)$/.test(n.j))var r=n(49685);function i(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}function o(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t}function u(t,e,n,i){var o=new r.ARRAY_TYPE(4);return o[0]=t,o[1]=e,o[2]=n,o[3]=i,o}function l(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function c(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 f(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 h(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t}function d(t){return t[0]*t[3]-t[2]*t[1]}function p(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1],l=n[2],c=n[3];return t[0]=r*s+o*u,t[1]=i*s+a*u,t[2]=r*l+o*c,t[3]=i*l+a*c,t}function g(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+o*s,t[1]=i*u+a*s,t[2]=r*-s+o*u,t[3]=i*-s+a*u,t}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1];return t[0]=r*s,t[1]=i*s,t[2]=o*u,t[3]=a*u,t}function m(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 y(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t}function b(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function x(t){return Math.hypot(t[0],t[1],t[2],t[3])}function _(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 w(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 S(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 E(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function T(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=e[0],u=e[1],l=e[2],c=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(a-c)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(c))}function k(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 C(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 M=/^(539|826)$/.test(n.j)?p:null,A=/^(539|826)$/.test(n.j)?S:null},2870:function(t,e,n){"use strict";if(n.r(e),n.d(e,{add:function(){return _},clone:function(){return o},copy:function(){return a},create:function(){return i},determinant:function(){return f},equals:function(){return k},exactEquals:function(){return T},frob:function(){return x},fromRotation:function(){return v},fromScaling:function(){return m},fromTranslation:function(){return y},fromValues:function(){return u},identity:function(){return s},invert:function(){return c},mul:function(){return C},multiply:function(){return h},multiplyScalar:function(){return S},multiplyScalarAndAdd:function(){return E},rotate:function(){return d},scale:function(){return p},set:function(){return l},str:function(){return b},sub:function(){return M},subtract:function(){return w},translate:function(){return g}}),/^(539|826)$/.test(n.j))var r=n(49685);function i(){var t=new r.ARRAY_TYPE(6);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t}function o(t){var e=new r.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 a(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 s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function u(t,e,n,i,o,a){var s=new r.ARRAY_TYPE(6);return s[0]=t,s[1]=e,s[2]=n,s[3]=i,s[4]=o,s[5]=a,s}function l(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 c(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=n*o-r*i;return u?(u=1/u,t[0]=o*u,t[1]=-r*u,t[2]=-i*u,t[3]=n*u,t[4]=(i*s-o*a)*u,t[5]=(r*a-n*s)*u,t):null}function f(t){return t[0]*t[3]-t[1]*t[2]}function h(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=n[0],c=n[1],f=n[2],h=n[3],d=n[4],p=n[5];return t[0]=r*l+o*c,t[1]=i*l+a*c,t[2]=r*f+o*h,t[3]=i*f+a*h,t[4]=r*d+o*p+s,t[5]=i*d+a*p+u,t}function d(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=Math.sin(n),c=Math.cos(n);return t[0]=r*c+o*l,t[1]=i*c+a*l,t[2]=r*-l+o*c,t[3]=i*-l+a*c,t[4]=s,t[5]=u,t}function p(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=n[0],c=n[1];return t[0]=r*l,t[1]=i*l,t[2]=o*c,t[3]=a*c,t[4]=s,t[5]=u,t}function g(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=n[0],c=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=r*l+o*c+s,t[5]=i*l+a*c+u,t}function v(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 m(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 y(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 b(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"}function x(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)}function _(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 w(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 S(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 E(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 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]}function k(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=e[0],c=e[1],f=e[2],h=e[3],d=e[4],p=e[5];return Math.abs(n-l)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(i-c)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-f)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(a-h)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(s-d)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(d))&&Math.abs(u-p)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(p))}var C=/^(539|826)$/.test(n.j)?h:null,M=/^(539|826)$/.test(n.j)?w:null},35600:function(t,e,n){"use strict";if(n.r(e),n.d(e,{add:function(){return M},adjoint:function(){return d},clone:function(){return a},copy:function(){return s},create:function(){return i},determinant:function(){return p},equals:function(){return P},exactEquals:function(){return D},frob:function(){return C},fromMat2d:function(){return w},fromMat4:function(){return o},fromQuat:function(){return S},fromRotation:function(){return x},fromScaling:function(){return _},fromTranslation:function(){return b},fromValues:function(){return u},identity:function(){return c},invert:function(){return h},mul:function(){return L},multiply:function(){return g},multiplyScalar:function(){return I},multiplyScalarAndAdd:function(){return O},normalFromMat4:function(){return E},projection:function(){return T},rotate:function(){return m},scale:function(){return y},set:function(){return l},str:function(){return k},sub:function(){return N},subtract:function(){return A},translate:function(){return v},transpose:function(){return f}}),/^(539|826)$/.test(n.j))var r=n(49685);function i(){var t=new r.ARRAY_TYPE(9);return r.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 o(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 a(t){var e=new r.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 s(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 u(t,e,n,i,o,a,s,u,l){var c=new r.ARRAY_TYPE(9);return c[0]=t,c[1]=e,c[2]=n,c[3]=i,c[4]=o,c[5]=a,c[6]=s,c[7]=u,c[8]=l,c}function l(t,e,n,r,i,o,a,s,u,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]=u,t[8]=l,t}function c(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 f(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 h(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8],f=c*a-s*l,h=-c*o+s*u,d=l*o-a*u,p=n*f+r*h+i*d;return p?(p=1/p,t[0]=f*p,t[1]=(-c*r+i*l)*p,t[2]=(s*r-i*a)*p,t[3]=h*p,t[4]=(c*n-i*u)*p,t[5]=(-s*n+i*o)*p,t[6]=d*p,t[7]=(-l*n+r*u)*p,t[8]=(a*n-r*o)*p,t):null}function d(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8];return t[0]=a*c-s*l,t[1]=i*l-r*c,t[2]=r*s-i*a,t[3]=s*u-o*c,t[4]=n*c-i*u,t[5]=i*o-n*s,t[6]=o*l-a*u,t[7]=r*u-n*l,t[8]=n*a-r*o,t}function p(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],l=t[8];return e*(l*o-a*u)+n*(-l*i+a*s)+r*(u*i-o*s)}function g(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],f=e[8],h=n[0],d=n[1],p=n[2],g=n[3],v=n[4],m=n[5],y=n[6],b=n[7],x=n[8];return t[0]=h*r+d*a+p*l,t[1]=h*i+d*s+p*c,t[2]=h*o+d*u+p*f,t[3]=g*r+v*a+m*l,t[4]=g*i+v*s+m*c,t[5]=g*o+v*u+m*f,t[6]=y*r+b*a+x*l,t[7]=y*i+b*s+x*c,t[8]=y*o+b*u+x*f,t}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],f=e[8],h=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=h*r+d*a+l,t[7]=h*i+d*s+c,t[8]=h*o+d*u+f,t}function m(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],f=e[8],h=Math.sin(n),d=Math.cos(n);return t[0]=d*r+h*a,t[1]=d*i+h*s,t[2]=d*o+h*u,t[3]=d*a-h*r,t[4]=d*s-h*i,t[5]=d*u-h*o,t[6]=l,t[7]=c,t[8]=f,t}function y(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 b(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 x(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 _(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 w(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 S(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,l=n*a,c=r*a,f=r*s,h=i*a,d=i*s,p=i*u,g=o*a,v=o*s,m=o*u;return t[0]=1-f-p,t[3]=c-m,t[6]=h+v,t[1]=c+m,t[4]=1-l-p,t[7]=d-g,t[2]=h-v,t[5]=d+g,t[8]=1-l-f,t}function E(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8],f=e[9],h=e[10],d=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*s-r*a,b=n*u-i*a,x=n*l-o*a,_=r*u-i*s,w=r*l-o*s,S=i*l-o*u,E=c*g-f*p,T=c*v-h*p,k=c*m-d*p,C=f*v-h*g,M=f*m-d*g,A=h*m-d*v,I=y*A-b*M+x*C+_*k-w*T+S*E;return I?(I=1/I,t[0]=(s*A-u*M+l*C)*I,t[1]=(u*k-a*A-l*T)*I,t[2]=(a*M-s*k+l*E)*I,t[3]=(i*M-r*A-o*C)*I,t[4]=(n*A-i*k+o*T)*I,t[5]=(r*k-n*M-o*E)*I,t[6]=(g*S-v*w+m*_)*I,t[7]=(v*x-p*S-m*b)*I,t[8]=(p*w-g*x+m*y)*I,t):null}function T(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 k(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function C(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function M(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 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[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 I(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 O(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 D(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 P(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],f=t[8],h=e[0],d=e[1],p=e[2],g=e[3],v=e[4],m=e[5],y=e[6],b=e[7],x=e[8];return Math.abs(n-h)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(i-d)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-p)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-g)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-v)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(u-m)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(l-y)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(c-b)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(f-x)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(x))}var L=/^(539|826)$/.test(n.j)?g:null,N=/^(539|826)$/.test(n.j)?A:null},85975:function(t,e,n){"use strict";if(n.r(e),n.d(e,{add:function(){return V},adjoint:function(){return h},clone:function(){return o},copy:function(){return a},create:function(){return i},determinant:function(){return d},equals:function(){return J},exactEquals:function(){return K},frob:function(){return W},fromQuat:function(){return L},fromQuat2:function(){return M},fromRotation:function(){return S},fromRotationTranslation:function(){return C},fromRotationTranslationScale:function(){return D},fromRotationTranslationScaleOrigin:function(){return P},fromScaling:function(){return w},fromTranslation:function(){return _},fromValues:function(){return s},fromXRotation:function(){return E},fromYRotation:function(){return T},fromZRotation:function(){return k},frustum:function(){return N},getRotation:function(){return O},getScaling:function(){return I},getTranslation:function(){return A},identity:function(){return l},invert:function(){return f},lookAt:function(){return H},mul:function(){return Q},multiply:function(){return p},multiplyScalar:function(){return X},multiplyScalarAndAdd:function(){return q},ortho:function(){return Z},orthoNO:function(){return z},orthoZO:function(){return U},perspective:function(){return j},perspectiveFromFieldOfView:function(){return B},perspectiveNO:function(){return R},perspectiveZO:function(){return F},rotate:function(){return m},rotateX:function(){return y},rotateY:function(){return b},rotateZ:function(){return x},scale:function(){return v},set:function(){return u},str:function(){return G},sub:function(){return tt},subtract:function(){return Y},targetTo:function(){return $},translate:function(){return g},transpose:function(){return c}}),/^(539|826)$/.test(n.j))var r=n(49685);function i(){var t=new r.ARRAY_TYPE(16);return r.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 o(t){var e=new r.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 a(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 s(t,e,n,i,o,a,s,u,l,c,f,h,d,p,g,v){var m=new r.ARRAY_TYPE(16);return m[0]=t,m[1]=e,m[2]=n,m[3]=i,m[4]=o,m[5]=a,m[6]=s,m[7]=u,m[8]=l,m[9]=c,m[10]=f,m[11]=h,m[12]=d,m[13]=p,m[14]=g,m[15]=v,m}function u(t,e,n,r,i,o,a,s,u,l,c,f,h,d,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]=u,t[8]=l,t[9]=c,t[10]=f,t[11]=h,t[12]=d,t[13]=p,t[14]=g,t[15]=v,t}function l(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 c(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 f(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8],f=e[9],h=e[10],d=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*s-r*a,b=n*u-i*a,x=n*l-o*a,_=r*u-i*s,w=r*l-o*s,S=i*l-o*u,E=c*g-f*p,T=c*v-h*p,k=c*m-d*p,C=f*v-h*g,M=f*m-d*g,A=h*m-d*v,I=y*A-b*M+x*C+_*k-w*T+S*E;return I?(I=1/I,t[0]=(s*A-u*M+l*C)*I,t[1]=(i*M-r*A-o*C)*I,t[2]=(g*S-v*w+m*_)*I,t[3]=(h*w-f*S-d*_)*I,t[4]=(u*k-a*A-l*T)*I,t[5]=(n*A-i*k+o*T)*I,t[6]=(v*x-p*S-m*b)*I,t[7]=(c*S-h*x+d*b)*I,t[8]=(a*M-s*k+l*E)*I,t[9]=(r*k-n*M-o*E)*I,t[10]=(p*w-g*x+m*y)*I,t[11]=(f*x-c*w-d*y)*I,t[12]=(s*T-a*C-u*E)*I,t[13]=(n*C-r*T+i*E)*I,t[14]=(g*b-p*_-v*y)*I,t[15]=(c*_-f*b+h*y)*I,t):null}function h(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8],f=e[9],h=e[10],d=e[11],p=e[12],g=e[13],v=e[14],m=e[15];return t[0]=s*(h*m-d*v)-f*(u*m-l*v)+g*(u*d-l*h),t[1]=-(r*(h*m-d*v)-f*(i*m-o*v)+g*(i*d-o*h)),t[2]=r*(u*m-l*v)-s*(i*m-o*v)+g*(i*l-o*u),t[3]=-(r*(u*d-l*h)-s*(i*d-o*h)+f*(i*l-o*u)),t[4]=-(a*(h*m-d*v)-c*(u*m-l*v)+p*(u*d-l*h)),t[5]=n*(h*m-d*v)-c*(i*m-o*v)+p*(i*d-o*h),t[6]=-(n*(u*m-l*v)-a*(i*m-o*v)+p*(i*l-o*u)),t[7]=n*(u*d-l*h)-a*(i*d-o*h)+c*(i*l-o*u),t[8]=a*(f*m-d*g)-c*(s*m-l*g)+p*(s*d-l*f),t[9]=-(n*(f*m-d*g)-c*(r*m-o*g)+p*(r*d-o*f)),t[10]=n*(s*m-l*g)-a*(r*m-o*g)+p*(r*l-o*s),t[11]=-(n*(s*d-l*f)-a*(r*d-o*f)+c*(r*l-o*s)),t[12]=-(a*(f*v-h*g)-c*(s*v-u*g)+p*(s*h-u*f)),t[13]=n*(f*v-h*g)-c*(r*v-i*g)+p*(r*h-i*f),t[14]=-(n*(s*v-u*g)-a*(r*v-i*g)+p*(r*u-i*s)),t[15]=n*(s*h-u*f)-a*(r*h-i*f)+c*(r*u-i*s),t}function d(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],l=t[8],c=t[9],f=t[10],h=t[11],d=t[12],p=t[13],g=t[14],v=t[15],m=e*a-n*o,y=e*s-r*o,b=e*u-i*o,x=n*s-r*a,_=n*u-i*a,w=r*u-i*s,S=l*p-c*d,E=l*g-f*d,T=l*v-h*d,k=c*g-f*p,C=c*v-h*p,M=f*v-h*g;return m*M-y*C+b*k+x*T-_*E+w*S}function p(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],f=e[8],h=e[9],d=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],b=n[0],x=n[1],_=n[2],w=n[3];return t[0]=b*r+x*s+_*f+w*g,t[1]=b*i+x*u+_*h+w*v,t[2]=b*o+x*l+_*d+w*m,t[3]=b*a+x*c+_*p+w*y,b=n[4],x=n[5],_=n[6],w=n[7],t[4]=b*r+x*s+_*f+w*g,t[5]=b*i+x*u+_*h+w*v,t[6]=b*o+x*l+_*d+w*m,t[7]=b*a+x*c+_*p+w*y,b=n[8],x=n[9],_=n[10],w=n[11],t[8]=b*r+x*s+_*f+w*g,t[9]=b*i+x*u+_*h+w*v,t[10]=b*o+x*l+_*d+w*m,t[11]=b*a+x*c+_*p+w*y,b=n[12],x=n[13],_=n[14],w=n[15],t[12]=b*r+x*s+_*f+w*g,t[13]=b*i+x*u+_*h+w*v,t[14]=b*o+x*l+_*d+w*m,t[15]=b*a+x*c+_*p+w*y,t}function g(t,e,n){var r,i,o,a,s,u,l,c,f,h,d,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],u=e[5],l=e[6],c=e[7],f=e[8],h=e[9],d=e[10],p=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=l,t[7]=c,t[8]=f,t[9]=h,t[10]=d,t[11]=p,t[12]=r*g+s*v+f*m+e[12],t[13]=i*g+u*v+h*m+e[13],t[14]=o*g+l*v+d*m+e[14],t[15]=a*g+c*v+p*m+e[15]),t}function v(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 m(t,e,n,i){var o,a,s,u,l,c,f,h,d,p,g,v,m,y,b,x,_,w,S,E,T,k,C,M,A=i[0],I=i[1],O=i[2],D=Math.hypot(A,I,O);return D<r.EPSILON?null:(D=1/D,A*=D,I*=D,O*=D,o=Math.sin(n),a=Math.cos(n),s=1-a,u=e[0],l=e[1],c=e[2],f=e[3],h=e[4],d=e[5],p=e[6],g=e[7],v=e[8],m=e[9],y=e[10],b=e[11],x=A*A*s+a,_=I*A*s+O*o,w=O*A*s-I*o,S=A*I*s-O*o,E=I*I*s+a,T=O*I*s+A*o,k=A*O*s+I*o,C=I*O*s-A*o,M=O*O*s+a,t[0]=u*x+h*_+v*w,t[1]=l*x+d*_+m*w,t[2]=c*x+p*_+y*w,t[3]=f*x+g*_+b*w,t[4]=u*S+h*E+v*T,t[5]=l*S+d*E+m*T,t[6]=c*S+p*E+y*T,t[7]=f*S+g*E+b*T,t[8]=u*k+h*C+v*M,t[9]=l*k+d*C+m*M,t[10]=c*k+p*C+y*M,t[11]=f*k+g*C+b*M,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function y(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[4],a=e[5],s=e[6],u=e[7],l=e[8],c=e[9],f=e[10],h=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+l*r,t[5]=a*i+c*r,t[6]=s*i+f*r,t[7]=u*i+h*r,t[8]=l*i-o*r,t[9]=c*i-a*r,t[10]=f*i-s*r,t[11]=h*i-u*r,t}function b(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],l=e[8],c=e[9],f=e[10],h=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-l*r,t[1]=a*i-c*r,t[2]=s*i-f*r,t[3]=u*i-h*r,t[8]=o*r+l*i,t[9]=a*r+c*i,t[10]=s*r+f*i,t[11]=u*r+h*i,t}function x(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],l=e[4],c=e[5],f=e[6],h=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+l*r,t[1]=a*i+c*r,t[2]=s*i+f*r,t[3]=u*i+h*r,t[4]=l*i-o*r,t[5]=c*i-a*r,t[6]=f*i-s*r,t[7]=h*i-u*r,t}function _(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 w(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 S(t,e,n){var i,o,a,s=n[0],u=n[1],l=n[2],c=Math.hypot(s,u,l);return c<r.EPSILON?null:(c=1/c,s*=c,u*=c,l*=c,i=Math.sin(e),o=Math.cos(e),a=1-o,t[0]=s*s*a+o,t[1]=u*s*a+l*i,t[2]=l*s*a-u*i,t[3]=0,t[4]=s*u*a-l*i,t[5]=u*u*a+o,t[6]=l*u*a+s*i,t[7]=0,t[8]=s*l*a+u*i,t[9]=u*l*a-s*i,t[10]=l*l*a+o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function E(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 T(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 k(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 C(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=r+r,u=i+i,l=o+o,c=r*s,f=r*u,h=r*l,d=i*u,p=i*l,g=o*l,v=a*s,m=a*u,y=a*l;return t[0]=1-(d+g),t[1]=f+y,t[2]=h-m,t[3]=0,t[4]=f-y,t[5]=1-(c+g),t[6]=p+v,t[7]=0,t[8]=h+m,t[9]=p-v,t[10]=1-(c+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function M(t,e){var n=new r.ARRAY_TYPE(3),i=-e[0],o=-e[1],a=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],f=e[7],h=i*i+o*o+a*a+s*s;return h>0?(n[0]=2*(u*s+f*i+l*a-c*o)/h,n[1]=2*(l*s+f*o+c*i-u*a)/h,n[2]=2*(c*s+f*a+u*o-l*i)/h):(n[0]=2*(u*s+f*i+l*a-c*o),n[1]=2*(l*s+f*o+c*i-u*a),n[2]=2*(c*s+f*a+u*o-l*i)),C(t,e,n),t}function A(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function I(t,e){var n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],u=e[8],l=e[9],c=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(o,a,s),t[2]=Math.hypot(u,l,c),t}function O(t,e){var n=new r.ARRAY_TYPE(3);I(n,e);var i=1/n[0],o=1/n[1],a=1/n[2],s=e[0]*i,u=e[1]*o,l=e[2]*a,c=e[4]*i,f=e[5]*o,h=e[6]*a,d=e[8]*i,p=e[9]*o,g=e[10]*a,v=s+f+g,m=0;return v>0?(m=2*Math.sqrt(v+1),t[3]=.25*m,t[0]=(h-p)/m,t[1]=(d-l)/m,t[2]=(u-c)/m):s>f&&s>g?(m=2*Math.sqrt(1+s-f-g),t[3]=(h-p)/m,t[0]=.25*m,t[1]=(u+c)/m,t[2]=(d+l)/m):f>g?(m=2*Math.sqrt(1+f-s-g),t[3]=(d-l)/m,t[0]=(u+c)/m,t[1]=.25*m,t[2]=(h+p)/m):(m=2*Math.sqrt(1+g-s-f),t[3]=(u-c)/m,t[0]=(d+l)/m,t[1]=(h+p)/m,t[2]=.25*m),t}function D(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3],u=i+i,l=o+o,c=a+a,f=i*u,h=i*l,d=i*c,p=o*l,g=o*c,v=a*c,m=s*u,y=s*l,b=s*c,x=r[0],_=r[1],w=r[2];return t[0]=(1-(p+v))*x,t[1]=(h+b)*x,t[2]=(d-y)*x,t[3]=0,t[4]=(h-b)*_,t[5]=(1-(f+v))*_,t[6]=(g+m)*_,t[7]=0,t[8]=(d+y)*w,t[9]=(g-m)*w,t[10]=(1-(f+p))*w,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function P(t,e,n,r,i){var o=e[0],a=e[1],s=e[2],u=e[3],l=o+o,c=a+a,f=s+s,h=o*l,d=o*c,p=o*f,g=a*c,v=a*f,m=s*f,y=u*l,b=u*c,x=u*f,_=r[0],w=r[1],S=r[2],E=i[0],T=i[1],k=i[2],C=(1-(g+m))*_,M=(d+x)*_,A=(p-b)*_,I=(d-x)*w,O=(1-(h+m))*w,D=(v+y)*w,P=(p+b)*S,L=(v-y)*S,N=(1-(h+g))*S;return t[0]=C,t[1]=M,t[2]=A,t[3]=0,t[4]=I,t[5]=O,t[6]=D,t[7]=0,t[8]=P,t[9]=L,t[10]=N,t[11]=0,t[12]=n[0]+E-(C*E+I*T+P*k),t[13]=n[1]+T-(M*E+O*T+L*k),t[14]=n[2]+k-(A*E+D*T+N*k),t[15]=1,t}function L(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,l=n*a,c=r*a,f=r*s,h=i*a,d=i*s,p=i*u,g=o*a,v=o*s,m=o*u;return t[0]=1-f-p,t[1]=c+m,t[2]=h-v,t[3]=0,t[4]=c-m,t[5]=1-l-p,t[6]=d+g,t[7]=0,t[8]=h+v,t[9]=d-g,t[10]=1-l-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function N(t,e,n,r,i,o,a){var s=1/(n-e),u=1/(i-r),l=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*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(a+o)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*l,t[15]=0,t}function R(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 j=/^(539|826)$/.test(n.j)?R:null;function F(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 B(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),u=2/(a+s),l=2/(i+o);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(a-s)*u*.5,t[9]=(i-o)*l*.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 z(t,e,n,r,i,o,a){var s=1/(e-n),u=1/(r-i),l=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(a+o)*l,t[15]=1,t}var Z=/^(539|826)$/.test(n.j)?z:null;function U(t,e,n,r,i,o,a){var s=1/(e-n),u=1/(r-i),l=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=o*l,t[15]=1,t}function H(t,e,n,i){var o,a,s,u,c,f,h,d,p,g,v=e[0],m=e[1],y=e[2],b=i[0],x=i[1],_=i[2],w=n[0],S=n[1],E=n[2];return Math.abs(v-w)<r.EPSILON&&Math.abs(m-S)<r.EPSILON&&Math.abs(y-E)<r.EPSILON?l(t):(h=v-w,d=m-S,p=y-E,g=1/Math.hypot(h,d,p),h*=g,d*=g,p*=g,o=x*p-_*d,a=_*h-b*p,s=b*d-x*h,g=Math.hypot(o,a,s),g?(g=1/g,o*=g,a*=g,s*=g):(o=0,a=0,s=0),u=d*s-p*a,c=p*o-h*s,f=h*a-d*o,g=Math.hypot(u,c,f),g?(g=1/g,u*=g,c*=g,f*=g):(u=0,c=0,f=0),t[0]=o,t[1]=u,t[2]=h,t[3]=0,t[4]=a,t[5]=c,t[6]=d,t[7]=0,t[8]=s,t[9]=f,t[10]=p,t[11]=0,t[12]=-(o*v+a*m+s*y),t[13]=-(u*v+c*m+f*y),t[14]=-(h*v+d*m+p*y),t[15]=1,t)}function $(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=r[0],u=r[1],l=r[2],c=i-n[0],f=o-n[1],h=a-n[2],d=c*c+f*f+h*h;d>0&&(d=1/Math.sqrt(d),c*=d,f*=d,h*=d);var p=u*h-l*f,g=l*c-s*h,v=s*f-u*c;return d=p*p+g*g+v*v,d>0&&(d=1/Math.sqrt(d),p*=d,g*=d,v*=d),t[0]=p,t[1]=g,t[2]=v,t[3]=0,t[4]=f*v-h*g,t[5]=h*p-c*v,t[6]=c*g-f*p,t[7]=0,t[8]=c,t[9]=f,t[10]=h,t[11]=0,t[12]=i,t[13]=o,t[14]=a,t[15]=1,t}function G(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 W(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 V(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 Y(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 X(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 q(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 K(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 J(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],f=t[8],h=t[9],d=t[10],p=t[11],g=t[12],v=t[13],m=t[14],y=t[15],b=e[0],x=e[1],_=e[2],w=e[3],S=e[4],E=e[5],T=e[6],k=e[7],C=e[8],M=e[9],A=e[10],I=e[11],O=e[12],D=e[13],P=e[14],L=e[15];return Math.abs(n-b)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(i-x)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(o-_)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(_))&&Math.abs(a-w)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(s-S)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(u-E)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(l-T)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(c-k)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(k))&&Math.abs(f-C)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(C))&&Math.abs(h-M)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(M))&&Math.abs(d-A)<=r.EPSILON*Math.max(1,Math.abs(d),Math.abs(A))&&Math.abs(p-I)<=r.EPSILON*Math.max(1,Math.abs(p),Math.abs(I))&&Math.abs(g-O)<=r.EPSILON*Math.max(1,Math.abs(g),Math.abs(O))&&Math.abs(v-D)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(D))&&Math.abs(m-P)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(P))&&Math.abs(y-L)<=r.EPSILON*Math.max(1,Math.abs(y),Math.abs(L))}var Q=/^(539|826)$/.test(n.j)?p:null,tt=/^(539|826)$/.test(n.j)?Y:null},32945:function(t,e,n){"use strict";n.r(e),n.d(e,{add:function(){return O},calculateW:function(){return v},clone:function(){return C},conjugate:function(){return S},copy:function(){return A},create:function(){return s},dot:function(){return L},equals:function(){return U},exactEquals:function(){return Z},exp:function(){return m},fromEuler:function(){return T},fromMat3:function(){return E},fromValues:function(){return M},getAngle:function(){return f},getAxisAngle:function(){return c},identity:function(){return u},invert:function(){return w},len:function(){return j},length:function(){return R},lerp:function(){return N},ln:function(){return y},mul:function(){return D},multiply:function(){return h},normalize:function(){return z},pow:function(){return b},random:function(){return _},rotateX:function(){return d},rotateY:function(){return p},rotateZ:function(){return g},rotationTo:function(){return H},scale:function(){return P},set:function(){return I},setAxes:function(){return G},setAxisAngle:function(){return l},slerp:function(){return x},sqlerp:function(){return $},sqrLen:function(){return B},squaredLength:function(){return F},str:function(){return k}});var r=n(49685),i=n(35600),o=n(77160),a=n(98333);function s(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function u(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}function l(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 c(t,e){var n=2*Math.acos(e[3]),i=Math.sin(n/2);return i>r.EPSILON?(t[0]=e[0]/i,t[1]=e[1]/i,t[2]=e[2]/i):(t[0]=1,t[1]=0,t[2]=0),n}function f(t,e){var n=L(t,e);return Math.acos(2*n*n-1)}function h(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1],l=n[2],c=n[3];return t[0]=r*c+a*s+i*l-o*u,t[1]=i*c+a*u+o*s-r*l,t[2]=o*c+a*l+r*u-i*s,t[3]=a*c-r*s-i*u-o*l,t}function d(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+a*s,t[1]=i*u+o*s,t[2]=o*u-i*s,t[3]=a*u-r*s,t}function p(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u-o*s,t[1]=i*u+a*s,t[2]=o*u+r*s,t[3]=a*u-i*s,t}function g(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+i*s,t[1]=i*u-r*s,t[2]=o*u+a*s,t[3]=a*u-o*s,t}function v(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 m(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),u=a>0?s*Math.sin(a)/a:0;return t[0]=n*u,t[1]=r*u,t[2]=i*u,t[3]=s*Math.cos(a),t}function y(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 b(t,e,n){return y(t,e),P(t,t,n),m(t,t),t}function x(t,e,n,i){var o,a,s,u,l,c=e[0],f=e[1],h=e[2],d=e[3],p=n[0],g=n[1],v=n[2],m=n[3];return a=c*p+f*g+h*v+d*m,a<0&&(a=-a,p=-p,g=-g,v=-v,m=-m),1-a>r.EPSILON?(o=Math.acos(a),s=Math.sin(o),u=Math.sin((1-i)*o)/s,l=Math.sin(i*o)/s):(u=1-i,l=i),t[0]=u*c+l*p,t[1]=u*f+l*g,t[2]=u*h+l*v,t[3]=u*d+l*m,t}function _(t){var e=r.RANDOM(),n=r.RANDOM(),i=r.RANDOM(),o=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=o*Math.sin(2*Math.PI*n),t[1]=o*Math.cos(2*Math.PI*n),t[2]=a*Math.sin(2*Math.PI*i),t[3]=a*Math.cos(2*Math.PI*i),t}function w(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 S(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function E(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 T(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),u=Math.cos(n),l=Math.sin(r),c=Math.cos(r);return t[0]=o*u*c-a*s*l,t[1]=a*s*c+o*u*l,t[2]=a*u*l-o*s*c,t[3]=a*u*c+o*s*l,t}function k(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var C=a.clone,M=a.fromValues,A=a.copy,I=a.set,O=a.add,D=/^(539|826)$/.test(n.j)?h:null,P=a.scale,L=a.dot,N=a.lerp,R=a.length,j=/^(539|826)$/.test(n.j)?R:null,F=a.squaredLength,B=/^(539|826)$/.test(n.j)?F:null,z=a.normalize,Z=a.exactEquals,U=a.equals,H=function(){var t=o.create(),e=o.fromValues(1,0,0),n=o.fromValues(0,1,0);return function(r,i,a){var s=o.dot(i,a);return s<-.999999?(o.cross(t,e,i),o.len(t)<1e-6&&o.cross(t,n,i),o.normalize(t,t),l(r,t,Math.PI),r):s>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(o.cross(t,i,a),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+s,z(r,r))}}(),$=function(){var t=s(),e=s();return function(n,r,i,o,a,s){return x(t,r,a,s),x(e,i,o,s),x(n,t,e,2*s*(1-s)),n}}(),G=function(){var t=i.create();return function(e,n,r,i){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],z(e,E(e,t))}}()},72322:function(t,e,n){"use strict";if(n.r(e),n.d(e,{add:function(){return A},clone:function(){return s},conjugate:function(){return R},copy:function(){return p},create:function(){return a},dot:function(){return P},equals:function(){return $},exactEquals:function(){return H},fromMat4:function(){return d},fromRotation:function(){return h},fromRotationTranslation:function(){return c},fromRotationTranslationValues:function(){return l},fromTranslation:function(){return f},fromValues:function(){return u},getDual:function(){return y},getReal:function(){return m},getTranslation:function(){return _},identity:function(){return g},invert:function(){return N},len:function(){return F},length:function(){return j},lerp:function(){return L},mul:function(){return O},multiply:function(){return I},normalize:function(){return Z},rotateAroundAxis:function(){return M},rotateByQuatAppend:function(){return k},rotateByQuatPrepend:function(){return C},rotateX:function(){return S},rotateY:function(){return E},rotateZ:function(){return T},scale:function(){return D},set:function(){return v},setDual:function(){return x},setReal:function(){return b},sqrLen:function(){return z},squaredLength:function(){return B},str:function(){return U},translate:function(){return w}}),/^(539|826)$/.test(n.j))var r=n(49685);var i=n(32945);if(/^(539|826)$/.test(n.j))var o=n(85975);function a(){var t=new r.ARRAY_TYPE(8);return r.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 s(t){var e=new r.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 u(t,e,n,i,o,a,s,u){var l=new r.ARRAY_TYPE(8);return l[0]=t,l[1]=e,l[2]=n,l[3]=i,l[4]=o,l[5]=a,l[6]=s,l[7]=u,l}function l(t,e,n,i,o,a,s){var u=new r.ARRAY_TYPE(8);u[0]=t,u[1]=e,u[2]=n,u[3]=i;var l=.5*o,c=.5*a,f=.5*s;return u[4]=l*i+c*n-f*e,u[5]=c*i+f*t-l*n,u[6]=f*i+l*e-c*t,u[7]=-l*t-c*e-f*n,u}function c(t,e,n){var r=.5*n[0],i=.5*n[1],o=.5*n[2],a=e[0],s=e[1],u=e[2],l=e[3];return t[0]=a,t[1]=s,t[2]=u,t[3]=l,t[4]=r*l+i*u-o*s,t[5]=i*l+o*a-r*u,t[6]=o*l+r*s-i*a,t[7]=-r*a-i*s-o*u,t}function f(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 h(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 d(t,e){var n=i.create();o.getRotation(n,e);var a=new r.ARRAY_TYPE(3);return o.getTranslation(a,e),c(t,n,a),t}function p(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 g(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 v(t,e,n,r,i,o,a,s,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]=u,t}var m=i.copy;function y(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t}var b=i.copy;function x(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t}function _(t,e){var n=e[4],r=e[5],i=e[6],o=e[7],a=-e[0],s=-e[1],u=-e[2],l=e[3];return t[0]=2*(n*l+o*a+r*u-i*s),t[1]=2*(r*l+o*s+i*a-n*u),t[2]=2*(i*l+o*u+n*s-r*a),t}function w(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=.5*n[0],u=.5*n[1],l=.5*n[2],c=e[4],f=e[5],h=e[6],d=e[7];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=a*s+i*l-o*u+c,t[5]=a*u+o*s-r*l+f,t[6]=a*l+r*u-i*s+h,t[7]=-r*s-i*u-o*l+d,t}function S(t,e,n){var r=-e[0],o=-e[1],a=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],f=e[7],h=u*s+f*r+l*a-c*o,d=l*s+f*o+c*r-u*a,p=c*s+f*a+u*o-l*r,g=f*s-u*r-l*o-c*a;return i.rotateX(t,e,n),r=t[0],o=t[1],a=t[2],s=t[3],t[4]=h*s+g*r+d*a-p*o,t[5]=d*s+g*o+p*r-h*a,t[6]=p*s+g*a+h*o-d*r,t[7]=g*s-h*r-d*o-p*a,t}function E(t,e,n){var r=-e[0],o=-e[1],a=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],f=e[7],h=u*s+f*r+l*a-c*o,d=l*s+f*o+c*r-u*a,p=c*s+f*a+u*o-l*r,g=f*s-u*r-l*o-c*a;return i.rotateY(t,e,n),r=t[0],o=t[1],a=t[2],s=t[3],t[4]=h*s+g*r+d*a-p*o,t[5]=d*s+g*o+p*r-h*a,t[6]=p*s+g*a+h*o-d*r,t[7]=g*s-h*r-d*o-p*a,t}function T(t,e,n){var r=-e[0],o=-e[1],a=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],f=e[7],h=u*s+f*r+l*a-c*o,d=l*s+f*o+c*r-u*a,p=c*s+f*a+u*o-l*r,g=f*s-u*r-l*o-c*a;return i.rotateZ(t,e,n),r=t[0],o=t[1],a=t[2],s=t[3],t[4]=h*s+g*r+d*a-p*o,t[5]=d*s+g*o+p*r-h*a,t[6]=p*s+g*a+h*o-d*r,t[7]=g*s-h*r-d*o-p*a,t}function k(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],u=e[1],l=e[2],c=e[3];return t[0]=s*a+c*r+u*o-l*i,t[1]=u*a+c*i+l*r-s*o,t[2]=l*a+c*o+s*i-u*r,t[3]=c*a-s*r-u*i-l*o,s=e[4],u=e[5],l=e[6],c=e[7],t[4]=s*a+c*r+u*o-l*i,t[5]=u*a+c*i+l*r-s*o,t[6]=l*a+c*o+s*i-u*r,t[7]=c*a-s*r-u*i-l*o,t}function C(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1],l=n[2],c=n[3];return t[0]=r*c+a*s+i*l-o*u,t[1]=i*c+a*u+o*s-r*l,t[2]=o*c+a*l+r*u-i*s,t[3]=a*c-r*s-i*u-o*l,s=n[4],u=n[5],l=n[6],c=n[7],t[4]=r*c+a*s+i*l-o*u,t[5]=i*c+a*u+o*s-r*l,t[6]=o*c+a*l+r*u-i*s,t[7]=a*c-r*s-i*u-o*l,t}function M(t,e,n,i){if(Math.abs(i)<r.EPSILON)return p(t,e);var o=Math.hypot(n[0],n[1],n[2]);i*=.5;var a=Math.sin(i),s=a*n[0]/o,u=a*n[1]/o,l=a*n[2]/o,c=Math.cos(i),f=e[0],h=e[1],d=e[2],g=e[3];t[0]=f*c+g*s+h*l-d*u,t[1]=h*c+g*u+d*s-f*l,t[2]=d*c+g*l+f*u-h*s,t[3]=g*c-f*s-h*u-d*l;var v=e[4],m=e[5],y=e[6],b=e[7];return t[4]=v*c+b*s+m*l-y*u,t[5]=m*c+b*u+y*s-v*l,t[6]=y*c+b*l+v*u-m*s,t[7]=b*c-v*s-m*u-y*l,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[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 I(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[4],u=n[5],l=n[6],c=n[7],f=e[4],h=e[5],d=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*l-o*u+f*y+p*g+h*m-d*v,t[5]=i*c+a*u+o*s-r*l+h*y+p*v+d*g-f*m,t[6]=o*c+a*l+r*u-i*s+d*y+p*m+f*v-h*g,t[7]=a*c-r*s-i*u-o*l+p*y-f*g-h*v-d*m,t}var O=/^(539|826)$/.test(n.j)?I:null;function D(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 P=i.dot;function L(t,e,n,r){var i=1-r;return P(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 N(t,e){var n=B(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 R(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 j=i.length,F=/^(539|826)$/.test(n.j)?j:null,B=i.squaredLength,z=/^(539|826)$/.test(n.j)?B:null;function Z(t,e){var n=B(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],u=e[5],l=e[6],c=e[7],f=r*s+i*u+o*l+a*c;t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=(s-r*f)/n,t[5]=(u-i*f)/n,t[6]=(l-o*f)/n,t[7]=(c-a*f)/n}return t}function U(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"}function H(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 $(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],f=e[0],h=e[1],d=e[2],p=e[3],g=e[4],v=e[5],m=e[6],y=e[7];return Math.abs(n-f)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-h)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(o-d)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(a-p)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(s-g)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(u-v)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(l-m)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(c-y)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))}},31437:function(t,e,n){"use strict";n.r(e),n.d(e,{add:function(){return l},angle:function(){return R},ceil:function(){return d},clone:function(){return o},copy:function(){return s},create:function(){return i},cross:function(){return M},dist:function(){return G},distance:function(){return x},div:function(){return $},divide:function(){return h},dot:function(){return C},equals:function(){return z},exactEquals:function(){return B},floor:function(){return p},forEach:function(){return Y},fromValues:function(){return a},inverse:function(){return T},len:function(){return Z},length:function(){return w},lerp:function(){return A},max:function(){return v},min:function(){return g},mul:function(){return H},multiply:function(){return f},negate:function(){return E},normalize:function(){return k},random:function(){return I},rotate:function(){return N},round:function(){return m},scale:function(){return y},scaleAndAdd:function(){return b},set:function(){return u},sqrDist:function(){return W},sqrLen:function(){return V},squaredDistance:function(){return _},squaredLength:function(){return S},str:function(){return F},sub:function(){return U},subtract:function(){return c},transformMat2:function(){return O},transformMat2d:function(){return D},transformMat3:function(){return P},transformMat4:function(){return L},zero:function(){return j}});var r=n(49685);function i(){var t=new r.ARRAY_TYPE(2);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t){var e=new r.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e}function a(t,e){var n=new r.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n}function s(t,e){return t[0]=e[0],t[1]=e[1],t}function u(t,e,n){return t[0]=e,t[1]=n,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function p(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function _(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function w(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function S(t){var e=t[0],n=t[1];return e*e+n*n}function E(t,e){return t[0]=-e[0],t[1]=-e[1],t}function T(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function k(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function C(t,e){return t[0]*e[0]+t[1]*e[1]}function M(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function A(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}function I(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}function O(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}function D(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 P(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}function L(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}function N(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}function R(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))}function j(t){return t[0]=0,t[1]=0,t}function F(t){return"vec2("+t[0]+", "+t[1]+")"}function B(t,e){return t[0]===e[0]&&t[1]===e[1]}function z(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))}var Z=/^(539|826)$/.test(n.j)?w:null,U=/^(539|826)$/.test(n.j)?c:null,H=/^(539|826)$/.test(n.j)?f:null,$=/^(539|826)$/.test(n.j)?h:null,G=/^(539|826)$/.test(n.j)?x:null,W=/^(539|826)$/.test(n.j)?_:null,V=/^(539|826)$/.test(n.j)?S:null,Y=function(){var t=i();return function(e,n,r,i,o,a){var s,u;for(n||(n=2),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],o(t,t,a),e[s]=t[0],e[s+1]=t[1];return e}}()},77160:function(t,e,n){"use strict";n.r(e),n.d(e,{add:function(){return c},angle:function(){return B},bezier:function(){return O},ceil:function(){return p},clone:function(){return o},copy:function(){return u},create:function(){return i},cross:function(){return M},dist:function(){return V},distance:function(){return _},div:function(){return W},divide:function(){return d},dot:function(){return C},equals:function(){return H},exactEquals:function(){return U},floor:function(){return g},forEach:function(){return K},fromValues:function(){return s},hermite:function(){return I},inverse:function(){return T},len:function(){return X},length:function(){return a},lerp:function(){return A},max:function(){return m},min:function(){return v},mul:function(){return G},multiply:function(){return h},negate:function(){return E},normalize:function(){return k},random:function(){return D},rotateX:function(){return R},rotateY:function(){return j},rotateZ:function(){return F},round:function(){return y},scale:function(){return b},scaleAndAdd:function(){return x},set:function(){return l},sqrDist:function(){return Y},sqrLen:function(){return q},squaredDistance:function(){return w},squaredLength:function(){return S},str:function(){return Z},sub:function(){return $},subtract:function(){return f},transformMat3:function(){return L},transformMat4:function(){return P},transformQuat:function(){return N},zero:function(){return z}});var r=n(49685);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=new r.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function s(t,e,n){var i=new r.ARRAY_TYPE(3);return i[0]=t,i[1]=e,i[2]=n,i}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function l(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function c(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function f(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function d(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function v(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}function m(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}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function x(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}function _(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 w(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 S(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function E(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function T(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function k(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function C(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function M(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2];return t[0]=i*u-o*s,t[1]=o*a-r*u,t[2]=r*s-i*a,t}function A(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}function I(t,e,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,u=a*(o-2)+o,l=a*(o-1),c=a*(3-2*o);return t[0]=e[0]*s+n[0]*u+r[0]*l+i[0]*c,t[1]=e[1]*s+n[1]*u+r[1]*l+i[1]*c,t[2]=e[2]*s+n[2]*u+r[2]*l+i[2]*c,t}function O(t,e,n,r,i,o){var a=1-o,s=a*a,u=o*o,l=s*a,c=3*o*s,f=3*u*a,h=u*o;return t[0]=e[0]*l+n[0]*c+r[0]*f+i[0]*h,t[1]=e[1]*l+n[1]*c+r[1]*f+i[1]*h,t[2]=e[2]*l+n[2]*c+r[2]*f+i[2]*h,t}function D(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}function P(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}function L(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}function N(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],u=e[1],l=e[2],c=i*l-o*u,f=o*s-r*l,h=r*u-i*s,d=i*h-o*f,p=o*c-r*h,g=r*f-i*c,v=2*a;return c*=v,f*=v,h*=v,d*=2,p*=2,g*=2,t[0]=s+c+d,t[1]=u+f+p,t[2]=l+h+g,t}function R(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}function j(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}function F(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}function B(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],u=Math.sqrt(n*n+r*r+i*i),l=Math.sqrt(o*o+a*a+s*s),c=u*l,f=c&&C(t,e)/c;return Math.acos(Math.min(Math.max(f,-1),1))}function z(t){return t[0]=0,t[1]=0,t[2]=0,t}function Z(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function U(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function H(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],s=e[1],u=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-u)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(u))}var $=/^(539|826)$/.test(n.j)?f:null,G=/^(539|826)$/.test(n.j)?h:null,W=/^(539|826)$/.test(n.j)?d:null,V=/^(539|826)$/.test(n.j)?_:null,Y=/^(539|826)$/.test(n.j)?w:null,X=/^(539|826)$/.test(n.j)?a:null,q=/^(539|826)$/.test(n.j)?S:null,K=function(){var t=i();return function(e,n,r,i,o,a){var s,u;for(n||(n=3),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],o(t,t,a),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}()},98333:function(t,e,n){"use strict";n.r(e),n.d(e,{add:function(){return l},ceil:function(){return d},clone:function(){return o},copy:function(){return s},create:function(){return i},cross:function(){return M},dist:function(){return z},distance:function(){return x},div:function(){return B},divide:function(){return h},dot:function(){return C},equals:function(){return R},exactEquals:function(){return N},floor:function(){return p},forEach:function(){return $},fromValues:function(){return a},inverse:function(){return T},len:function(){return U},length:function(){return w},lerp:function(){return A},max:function(){return v},min:function(){return g},mul:function(){return F},multiply:function(){return f},negate:function(){return E},normalize:function(){return k},random:function(){return I},round:function(){return m},scale:function(){return y},scaleAndAdd:function(){return b},set:function(){return u},sqrDist:function(){return Z},sqrLen:function(){return H},squaredDistance:function(){return _},squaredLength:function(){return S},str:function(){return L},sub:function(){return j},subtract:function(){return c},transformMat4:function(){return O},transformQuat:function(){return D},zero:function(){return P}});var r=n(49685);function i(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function o(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function a(t,e,n,i){var o=new r.ARRAY_TYPE(4);return o[0]=t,o[1]=e,o[2]=n,o[3]=i,o}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function u(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,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[3]=e[3]+n[3],t}function c(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 f(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 h(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 d(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 p(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 g(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 v(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 m(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 y(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 b(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 x(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 _(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 w(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function S(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function E(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}function T(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 k(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 C(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function M(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],u=n[1]*r[3]-n[3]*r[1],l=n[2]*r[3]-n[3]*r[2],c=e[0],f=e[1],h=e[2],d=e[3];return t[0]=f*l-h*u+d*s,t[1]=-c*l+h*a-d*o,t[2]=c*u-f*a+d*i,t[3]=-c*s+f*o-h*i,t}function A(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 I(t,e){var n,i,o,a,s,u;e=e||1;do{n=2*r.RANDOM()-1,i=2*r.RANDOM()-1,s=n*n+i*i}while(s>=1);do{o=2*r.RANDOM()-1,a=2*r.RANDOM()-1,u=o*o+a*a}while(u>=1);var l=Math.sqrt((1-s)/u);return t[0]=e*n,t[1]=e*i,t[2]=e*o*l,t[3]=e*a*l,t}function O(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 D(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2],l=n[3],c=l*r+s*o-u*i,f=l*i+u*r-a*o,h=l*o+a*i-s*r,d=-a*r-s*i-u*o;return t[0]=c*l+d*-a+f*-u-h*-s,t[1]=f*l+d*-s+h*-a-c*-u,t[2]=h*l+d*-u+c*-s-f*-a,t[3]=e[3],t}function P(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}function L(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function N(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function R(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=e[0],u=e[1],l=e[2],c=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(a-c)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(c))}var j=/^(539|826)$/.test(n.j)?c:null,F=/^(539|826)$/.test(n.j)?f:null,B=/^(539|826)$/.test(n.j)?h:null,z=/^(539|826)$/.test(n.j)?x:null,Z=/^(539|826)$/.test(n.j)?_:null,U=/^(539|826)$/.test(n.j)?w:null,H=/^(539|826)$/.test(n.j)?S:null,$=function(){var t=i();return function(e,n,r,i,o,a){var s,u;for(n||(n=4),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],t[3]=e[s+3],o(t,t,a),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2],e[s+3]=t[3];return e}}()},38186:function(t){var e=[],n=[],r="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function i(t,i){if(i=i||{},void 0===t)throw new Error(r);var a,s=!0===i.prepend?"prepend":"append",u=void 0!==i.container?i.container:document.querySelector("head"),l=e.indexOf(u);return-1===l&&(l=e.push(u)-1,n[l]={}),void 0!==n[l]&&void 0!==n[l][s]?a=n[l][s]:(a=n[l][s]=o(),"prepend"===s?u.insertBefore(a,u.childNodes[0]):u.appendChild(a)),65279===t.charCodeAt(0)&&(t=t.substr(1,t.length)),a.styleSheet?a.styleSheet.cssText+=t:a.textContent+=t,a}function o(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}t.exports=i,t.exports.insertCss=i},24322:function(t,e,n){var r,i,o;
/*!
 * fitColumns layout mode for Isotope
 * v1.1.4
 * https://isotope.metafizzy.co/layout-modes/fitcolumns.html
 */(function(a,s){i=[n(41835)],r=s,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})(window,(function(t){"use strict";var e=t.create("fitColumns"),n=e.prototype;return n._resetLayout=function(){this.x=0,this.y=0,this.maxX=0},n._getItemLayoutPosition=function(t){t.getSize(),0!==this.y&&t.size.outerHeight+this.y>this.isotope.size.innerHeight&&(this.y=0,this.x=this.maxX);var e={x:this.x,y:this.y};return this.maxX=Math.max(this.maxX,this.x+t.size.outerWidth),this.y+=t.size.outerHeight,e},n._getContainerSize=function(){return{width:this.maxX}},n.needsResizeLayout=function(){return this.needsVerticalResizeLayout()},e}))},13391:function(t,e,n){var r,i;
/*!
 * Isotope v3.0.6
 *
 * Licensed GPLv3 for open source use
 * or Isotope Commercial License for commercial use
 *
 * https://isotope.metafizzy.co
 * Copyright 2010-2018 Metafizzy
 */(function(o,a){r=[n(71794),n(66131),n(39741),n(99047),n(65568),n(41835),n(80666),n(98947),n(33157)],i=function(t,e,n,r,i,s){return a(o,t,e,n,r,i,s)}.apply(e,r),void 0===i||(t.exports=i)})(window,(function(t,e,n,r,i,o,a){"use strict";var s=t.jQuery,u=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},l=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});l.Item=o,l.LayoutMode=a;var c=l.prototype;c._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],a.modes)this._initLayoutMode(t)},c.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},c._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),n=0;n<t.length;n++){var r=t[n];r.id=this.itemGUID++}return this._updateItemsSortData(t),t},c._initLayoutMode=function(t){var e=a.modes[t],n=this.options[t]||{};this.options[t]=e.options?i.extend(e.options,n):n,this.modes[t]=new e(this)},c.layout=function(){this._isLayoutInited||!this._getOption("initLayout")?this._layout():this.arrange()},c._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},c.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},c._init=c.arrange,c._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},c._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},c._bindArrangeComplete=function(){var t,e,n,r=this;function i(){t&&e&&n&&r.dispatchEvent("arrangeComplete",null,[r.filteredItems])}this.once("layoutComplete",(function(){t=!0,i()})),this.once("hideComplete",(function(){e=!0,i()})),this.once("revealComplete",(function(){n=!0,i()}))},c._filter=function(t){var e=this.options.filter;e=e||"*";for(var n=[],r=[],i=[],o=this._getFilterTest(e),a=0;a<t.length;a++){var s=t[a];if(!s.isIgnored){var u=o(s);u&&n.push(s),u&&s.isHidden?r.push(s):u||s.isHidden||i.push(s)}}return{matches:n,needReveal:r,needHide:i}},c._getFilterTest=function(t){return s&&this.options.isJQueryFiltering?function(e){return s(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return r(e.element,t)}},c.updateSortData=function(t){var e;t?(t=i.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},c._getSorters=function(){var t=this.options.getSortData;for(var e in t){var n=t[e];this._sorters[e]=f(n)}},c._updateItemsSortData=function(t){for(var e=t&&t.length,n=0;e&&n<e;n++){var r=t[n];r.updateSortData()}};var f=function(){function t(t){if("string"!=typeof t)return t;var n=u(t).split(" "),r=n[0],i=r.match(/^\[(.+)\]$/),o=i&&i[1],a=e(o,r),s=l.sortDataParsers[n[1]];return t=s?function(t){return t&&s(a(t))}:function(t){return t&&a(t)},t}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var n=t.querySelector(e);return n&&n.textContent}}return t}();function h(t,e){return function(n,r){for(var i=0;i<t.length;i++){var o=t[i],a=n.sortData[o],s=r.sortData[o];if(a>s||a<s){var u=void 0!==e[o]?e[o]:e,l=u?1:-1;return(a>s?1:-1)*l}}return 0}}l.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},c._sort=function(){if(this.options.sortBy){var t=i.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=h(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},c._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},c._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},c._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},c._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},c._manageStamp=function(t){this._mode()._manageStamp(t)},c._getContainerSize=function(){return this._mode()._getContainerSize()},c.needsResizeLayout=function(){return this._mode().needsResizeLayout()},c.appended=function(t){var e=this.addItems(t);if(e.length){var n=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(n)}},c.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var n=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=n.concat(this.filteredItems),this.items=e.concat(this.items)}},c._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},c.insert=function(t){var e=this.addItems(t);if(e.length){var n,r,i=e.length;for(n=0;n<i;n++)r=e[n],this.element.appendChild(r.element);var o=this._filter(e).matches;for(n=0;n<i;n++)e[n].isLayoutInstant=!0;for(this.arrange(),n=0;n<i;n++)delete e[n].isLayoutInstant;this.reveal(o)}};var d=c.remove;return c.remove=function(t){t=i.makeArray(t);var e=this.getItems(t);d.call(this,t);for(var n=e&&e.length,r=0;n&&r<n;r++){var o=e[r];i.removeFrom(this.filteredItems,o)}},c.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},c._noTransition=function(t,e){var n=this.options.transitionDuration;this.options.transitionDuration=0;var r=t.apply(this,e);return this.options.transitionDuration=n,r},c.getFilteredItemElements=function(){return this.filteredItems.map((function(t){return t.element}))},l}))},65568:function(t,e,n){var r,i,o;(function(a,s){i=[n(71794)],r=s,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})(window,(function(t){"use strict";function e(){t.Item.apply(this,arguments)}var n=e.prototype=Object.create(t.Item.prototype),r=n._create;n._create=function(){this.id=this.layout.itemGUID++,r.call(this),this.sortData={}},n.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var n in t){var r=e[n];this.sortData[n]=r(this.element,this)}}};var i=n.destroy;return n.destroy=function(){i.apply(this,arguments),this.css({display:""})},e}))},41835:function(t,e,n){var r,i,o;(function(a,s){i=[n(66131),n(71794)],r=s,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})(window,(function(t,e){"use strict";function n(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var r=n.prototype,i=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return i.forEach((function(t){r[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}})),r.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),n=this.isotope.size&&e;return n&&e.innerHeight!=this.isotope.size.innerHeight},r._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},r.getColumnWidth=function(){this.getSegmentSize("column","Width")},r.getRowHeight=function(){this.getSegmentSize("row","Height")},r.getSegmentSize=function(t,e){var n=t+e,r="outer"+e;if(this._getMeasurement(n,r),!this[n]){var i=this.getFirstItemSize();this[n]=i&&i[r]||this.isotope.size["inner"+e]}},r.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},r.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},r.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return i.prototype=Object.create(r),i.prototype.constructor=i,e&&(i.options=e),i.prototype.namespace=t,n.modes[t]=i,i},n}))},98947:function(t,e,n){var r,i,o;(function(a,s){i=[n(41835)],r=s,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})(window,(function(t){"use strict";var e=t.create("fitRows"),n=e.prototype;return n._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,n=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>n&&(this.x=0,this.y=this.maxY);var r={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,r},n._getContainerSize=function(){return{height:this.maxY}},e}))},80666:function(t,e,n){var r,i,o;
/*!
 * Masonry layout mode
 * sub-classes Masonry
 * https://masonry.desandro.com
 */(function(a,s){i=[n(41835),n(58751)],r=s,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})(window,(function(t,e){"use strict";var n=t.create("masonry"),r=n.prototype,i={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var o in e.prototype)i[o]||(r[o]=e.prototype[o]);var a=r.measureColumns;r.measureColumns=function(){this.items=this.isotope.filteredItems,a.call(this)};var s=r._getOption;return r._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.isotope,arguments)},n}))},33157:function(t,e,n){var r,i,o;(function(a,s){i=[n(41835)],r=s,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})(window,(function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),n=e.prototype;return n._resetLayout=function(){this.y=0},n._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,n=this.y;return this.y+=t.size.outerHeight,{x:e,y:n}},n._getContainerSize=function(){return{height:this.y}},e}))},19755:function(t,e){var n,r;
/*!
 * jQuery JavaScript Library v3.7.1
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-08-28T13:37Z
 */(function(e,n){"use strict";"object"===typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)})("undefined"!==typeof window?window:this,(function(i,o){"use strict";var a=[],s=Object.getPrototypeOf,u=a.slice,l=a.flat?function(t){return a.flat.call(t)}:function(t){return a.concat.apply([],t)},c=a.push,f=a.indexOf,h={},d=h.toString,p=h.hasOwnProperty,g=p.toString,v=g.call(Object),m={},y=function(t){return"function"===typeof t&&"number"!==typeof t.nodeType&&"function"!==typeof t.item},b=function(t){return null!=t&&t===t.window},x=i.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,n){n=n||x;var r,i,o=n.createElement("script");if(o.text=t,e)for(r in _)i=e[r]||e.getAttribute&&e.getAttribute(r),i&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function S(t){return null==t?t+"":"object"===typeof t||"function"===typeof t?h[d.call(t)]||"object":typeof t}var E="3.7.1",T=/HTML$/i,k=function(t,e){return new k.fn.init(t,e)};function C(t){var e=!!t&&"length"in t&&t.length,n=S(t);return!y(t)&&!b(t)&&("array"===n||0===e||"number"===typeof e&&e>0&&e-1 in t)}function M(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}k.fn=k.prototype={jquery:E,constructor:k,length:0,toArray:function(){return u.call(this)},get:function(t){return null==t?u.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=k.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return k.each(this,t)},map:function(t){return this.pushStack(k.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},k.extend=k.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"===typeof a&&(l=a,a=arguments[s]||{},s++),"object"===typeof a||y(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(t=arguments[s]))for(e in t)r=t[e],"__proto__"!==e&&a!==r&&(l&&r&&(k.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[e],o=i&&!Array.isArray(n)?[]:i||k.isPlainObject(n)?n:{},i=!1,a[e]=k.extend(l,o,r)):void 0!==r&&(a[e]=r));return a},k.extend({expando:"jQuery"+(E+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==d.call(t))&&(e=s(t),!e||(n=p.call(e,"constructor")&&e.constructor,"function"===typeof n&&g.call(n)===v))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){w(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(C(t)){for(n=t.length;r<n;r++)if(!1===e.call(t[r],r,t[r]))break}else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},text:function(t){var e,n="",r=0,i=t.nodeType;if(!i)while(e=t[r++])n+=k.text(e);return 1===i||11===i?t.textContent:9===i?t.documentElement.textContent:3===i||4===i?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(C(Object(t))?k.merge(n,"string"===typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:f.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!T.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r,i=[],o=0,a=t.length,s=!n;o<a;o++)r=!e(t[o],o),r!==s&&i.push(t[o]);return i},map:function(t,e,n){var r,i,o=0,a=[];if(C(t))for(r=t.length;o<r;o++)i=e(t[o],o,n),null!=i&&a.push(i);else for(o in t)i=e(t[o],o,n),null!=i&&a.push(i);return l(a)},guid:1,support:m}),"function"===typeof Symbol&&(k.fn[Symbol.iterator]=a[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){h["[object "+e+"]"]=e.toLowerCase()}));var A=a.pop,I=a.sort,O=a.splice,D="[\\x20\\t\\r\\n\\f]",P=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");k.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var L=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function N(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}k.escapeSelector=function(t){return(t+"").replace(L,N)};var R=x,j=c;(function(){var t,e,n,r,o,s,l,c,h,d,g=j,v=k.expando,y=0,b=0,x=et(),_=et(),w=et(),S=et(),E=function(t,e){return t===e&&(o=!0),0},T="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",C="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",L="\\["+D+"*("+C+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+C+"))|)"+D+"*\\]",N=":("+C+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+L+")*)|.*)\\)|)",F=new RegExp(D+"+","g"),B=new RegExp("^"+D+"*,"+D+"*"),z=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),Z=new RegExp(D+"|>"),U=new RegExp(N),H=new RegExp("^"+C+"$"),$={ID:new RegExp("^#("+C+")"),CLASS:new RegExp("^\\.("+C+")"),TAG:new RegExp("^("+C+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+T+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),q=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},K=function(){lt()},J=dt((function(t){return!0===t.disabled&&M(t,"fieldset")}),{dir:"parentNode",next:"legend"});function Q(){try{return s.activeElement}catch(t){}}try{g.apply(a=u.call(R.childNodes),R.childNodes),a[R.childNodes.length].nodeType}catch(wt){g={apply:function(t,e){j.apply(t,u.call(e))},call:function(t){j.apply(t,u.call(arguments,1))}}}function tt(t,e,n,r){var i,o,a,u,l,f,d,p=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!==typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!r&&(lt(e),e=e||s,c)){if(11!==y&&(l=V.exec(t)))if(i=l[1]){if(9===y){if(!(a=e.getElementById(i)))return n;if(a.id===i)return g.call(n,a),n}else if(p&&(a=p.getElementById(i))&&tt.contains(e,a)&&a.id===i)return g.call(n,a),n}else{if(l[2])return g.apply(n,e.getElementsByTagName(t)),n;if((i=l[3])&&e.getElementsByClassName)return g.apply(n,e.getElementsByClassName(i)),n}if(!S[t+" "]&&(!h||!h.test(t))){if(d=t,p=e,1===y&&(Z.test(t)||z.test(t))){p=Y.test(t)&&ut(e.parentNode)||e,p==e&&m.scope||((u=e.getAttribute("id"))?u=k.escapeSelector(u):e.setAttribute("id",u=v)),f=ft(t),o=f.length;while(o--)f[o]=(u?"#"+u:":scope")+" "+ht(f[o]);d=f.join(",")}try{return g.apply(n,p.querySelectorAll(d)),n}catch(b){S(t,!0)}finally{u===v&&e.removeAttribute("id")}}}return _t(t.replace(P,"$1"),e,n,r)}function et(){var t=[];function n(r,i){return t.push(r+" ")>e.cacheLength&&delete n[t.shift()],n[r+" "]=i}return n}function nt(t){return t[v]=!0,t}function rt(t){var e=s.createElement("fieldset");try{return!!t(e)}catch(wt){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return M(e,"input")&&e.type===t}}function ot(t){return function(e){return(M(e,"input")||M(e,"button"))&&e.type===t}}function at(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&J(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function st(t){return nt((function(e){return e=+e,nt((function(n,r){var i,o=t([],n.length,e),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ut(t){return t&&"undefined"!==typeof t.getElementsByTagName&&t}function lt(t){var n,i=t?t.ownerDocument||t:R;return i!=s&&9===i.nodeType&&i.documentElement?(s=i,l=s.documentElement,c=!k.isXMLDoc(s),d=l.matches||l.webkitMatchesSelector||l.msMatchesSelector,l.msMatchesSelector&&R!=s&&(n=s.defaultView)&&n.top!==n&&n.addEventListener("unload",K),m.getById=rt((function(t){return l.appendChild(t).id=k.expando,!s.getElementsByName||!s.getElementsByName(k.expando).length})),m.disconnectedMatch=rt((function(t){return d.call(t,"*")})),m.scope=rt((function(){return s.querySelectorAll(":scope")})),m.cssHas=rt((function(){try{return s.querySelector(":has(*,:jqfake)"),!1}catch(wt){return!0}})),m.getById?(e.filter.ID=function(t){var e=t.replace(X,q);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if("undefined"!==typeof e.getElementById&&c){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(X,q);return function(t){var n="undefined"!==typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if("undefined"!==typeof e.getElementById&&c){var n,r,i,o=e.getElementById(t);if(o){if(n=o.getAttributeNode("id"),n&&n.value===t)return[o];i=e.getElementsByName(t),r=0;while(o=i[r++])if(n=o.getAttributeNode("id"),n&&n.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return"undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if("undefined"!==typeof e.getElementsByClassName&&c)return e.getElementsByClassName(t)},h=[],rt((function(t){var e;l.appendChild(t).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||h.push("\\["+D+"*(?:value|"+T+")"),t.querySelectorAll("[id~="+v+"-]").length||h.push("~="),t.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll(":checked").length||h.push(":checked"),e=s.createElement("input"),e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),l.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),e=s.createElement("input"),e.setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),m.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),E=function(t,e){if(t===e)return o=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!m.sortDetached&&e.compareDocumentPosition(t)===n?t===s||t.ownerDocument==R&&tt.contains(R,t)?-1:e===s||e.ownerDocument==R&&tt.contains(R,e)?1:r?f.call(r,t)-f.call(r,e):0:4&n?-1:1)},s):s}for(t in tt.matches=function(t,e){return tt(t,null,null,e)},tt.matchesSelector=function(t,e){if(lt(t),c&&!S[e+" "]&&(!h||!h.test(e)))try{var n=d.call(t,e);if(n||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(wt){S(e,!0)}return tt(e,s,null,[t]).length>0},tt.contains=function(t,e){return(t.ownerDocument||t)!=s&&lt(t),k.contains(t,e)},tt.attr=function(t,n){(t.ownerDocument||t)!=s&&lt(t);var r=e.attrHandle[n.toLowerCase()],i=r&&p.call(e.attrHandle,n.toLowerCase())?r(t,n,!c):void 0;return void 0!==i?i:t.getAttribute(n)},tt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},k.uniqueSort=function(t){var e,n=[],i=0,a=0;if(o=!m.sortStable,r=!m.sortStable&&u.call(t,0),I.call(t,E),o){while(e=t[a++])e===t[a]&&(i=n.push(a));while(i--)O.call(t,n[i],1)}return r=null,t},k.fn.uniqueSort=function(){return this.pushStack(k.uniqueSort(u.apply(this)))},e=k.expr={cacheLength:50,createPseudo:nt,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(X,q),t[3]=(t[3]||t[4]||t[5]||"").replace(X,q),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||tt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&tt.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return $.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&U.test(n)&&(e=ft(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(X,q).toLowerCase();return"*"===t?function(){return!0}:function(t){return M(t,e)}},CLASS:function(t){var e=x[t+" "];return e||(e=new RegExp("(^|"+D+")"+t+"("+D+"|$)"))&&x(t,(function(t){return e.test("string"===typeof t.className&&t.className||"undefined"!==typeof t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=tt.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(F," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,h,d,p=o!==a?"nextSibling":"previousSibling",g=e.parentNode,m=s&&e.nodeName.toLowerCase(),b=!u&&!s,x=!1;if(g){if(o){while(p){f=e;while(f=f[p])if(s?M(f,m):1===f.nodeType)return!1;d=p="only"===t&&!d&&"nextSibling"}return!0}if(d=[a?g.firstChild:g.lastChild],a&&b){c=g[v]||(g[v]={}),l=c[t]||[],h=l[0]===y&&l[1],x=h&&l[2],f=h&&g.childNodes[h];while(f=++h&&f&&f[p]||(x=h=0)||d.pop())if(1===f.nodeType&&++x&&f===e){c[t]=[y,h,x];break}}else if(b&&(c=e[v]||(e[v]={}),l=c[t]||[],h=l[0]===y&&l[1],x=h),!1===x)while(f=++h&&f&&f[p]||(x=h=0)||d.pop())if((s?M(f,m):1===f.nodeType)&&++x&&(b&&(c=f[v]||(f[v]={}),c[t]=[y,x]),f===e))break;return x-=i,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(t,n){var r,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||tt.error("unsupported pseudo: "+t);return i[v]?i(n):i.length>1?(r=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?nt((function(t,e){var r,o=i(t,n),a=o.length;while(a--)r=f.call(t,o[a]),t[r]=!(e[r]=o[a])})):function(t){return i(t,0,r)}):i}},pseudos:{not:nt((function(t){var e=[],n=[],r=xt(t.replace(P,"$1"));return r[v]?nt((function(t,e,n,i){var o,a=r(t,null,i,[]),s=t.length;while(s--)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}})),has:nt((function(t){return function(e){return tt(t,e).length>0}})),contains:nt((function(t){return t=t.replace(X,q),function(e){return(e.textContent||k.text(e)).indexOf(t)>-1}})),lang:nt((function(t){return H.test(t||"")||tt.error("unsupported lang: "+t),t=t.replace(X,q).toLowerCase(),function(e){var n;do{if(n=c?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===l},focus:function(t){return t===Q()&&s.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:at(!1),disabled:at(!0),checked:function(t){return M(t,"input")&&!!t.checked||M(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return W.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){return M(t,"input")&&"button"===t.type||M(t,"button")},text:function(t){var e;return M(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:st((function(){return[0]})),last:st((function(t,e){return[e-1]})),eq:st((function(t,e,n){return[n<0?n+e:n]})),even:st((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:st((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:st((function(t,e,n){var r;for(r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t})),gt:st((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=ot(t);function ct(){}function ft(t,n){var r,i,o,a,s,u,l,c=_[t+" "];if(c)return n?0:c.slice(0);s=t,u=[],l=e.preFilter;while(s){for(a in r&&!(i=B.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=z.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(P," ")}),s=s.slice(r.length)),e.filter)!(i=$[a].exec(s))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?tt.error(t):_(t,u).slice(0)}function ht(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function dt(t,e,n){var r=e.dir,i=e.next,o=i||r,a=n&&"parentNode"===o,s=b++;return e.first?function(e,n,i){while(e=e[r])if(1===e.nodeType||a)return t(e,n,i);return!1}:function(e,n,u){var l,c,f=[y,s];if(u){while(e=e[r])if((1===e.nodeType||a)&&t(e,n,u))return!0}else while(e=e[r])if(1===e.nodeType||a)if(c=e[v]||(e[v]={}),i&&M(e,i))e=e[r]||e;else{if((l=c[o])&&l[0]===y&&l[1]===s)return f[2]=l[2];if(c[o]=f,f[2]=t(e,n,u))return!0}return!1}}function pt(t){return t.length>1?function(e,n,r){var i=t.length;while(i--)if(!t[i](e,n,r))return!1;return!0}:t[0]}function gt(t,e,n){for(var r=0,i=e.length;r<i;r++)tt(t,e[r],n);return n}function vt(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),l&&e.push(s)));return a}function mt(t,e,n,r,i,o){return r&&!r[v]&&(r=mt(r)),i&&!i[v]&&(i=mt(i,o)),nt((function(o,a,s,u){var l,c,h,d,p=[],v=[],m=a.length,y=o||gt(e||"*",s.nodeType?[s]:s,[]),b=!t||!o&&e?y:vt(y,p,t,s,u);if(n?(d=i||(o?t:m||r)?[]:a,n(b,d,s,u)):d=b,r){l=vt(d,v),r(l,[],s,u),c=l.length;while(c--)(h=l[c])&&(d[v[c]]=!(b[v[c]]=h))}if(o){if(i||t){if(i){l=[],c=d.length;while(c--)(h=d[c])&&l.push(b[c]=h);i(null,d=[],l,u)}c=d.length;while(c--)(h=d[c])&&(l=i?f.call(o,h):p[c])>-1&&(o[l]=!(a[l]=h))}}else d=vt(d===a?d.splice(m,d.length):d),i?i(null,a,d,u):g.apply(a,d)}))}function yt(t){for(var r,i,o,a=t.length,s=e.relative[t[0].type],u=s||e.relative[" "],l=s?1:0,c=dt((function(t){return t===r}),u,!0),h=dt((function(t){return f.call(r,t)>-1}),u,!0),d=[function(t,e,i){var o=!s&&(i||e!=n)||((r=e).nodeType?c(t,e,i):h(t,e,i));return r=null,o}];l<a;l++)if(i=e.relative[t[l].type])d=[dt(pt(d),i)];else{if(i=e.filter[t[l].type].apply(null,t[l].matches),i[v]){for(o=++l;o<a;o++)if(e.relative[t[o].type])break;return mt(l>1&&pt(d),l>1&&ht(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(P,"$1"),i,l<o&&yt(t.slice(l,o)),o<a&&yt(t=t.slice(o)),o<a&&ht(t))}d.push(i)}return pt(d)}function bt(t,r){var i=r.length>0,o=t.length>0,a=function(a,u,l,f,h){var d,p,v,m=0,b="0",x=a&&[],_=[],w=n,S=a||o&&e.find.TAG("*",h),E=y+=null==w?1:Math.random()||.1,T=S.length;for(h&&(n=u==s||u||h);b!==T&&null!=(d=S[b]);b++){if(o&&d){p=0,u||d.ownerDocument==s||(lt(d),l=!c);while(v=t[p++])if(v(d,u||s,l)){g.call(f,d);break}h&&(y=E)}i&&((d=!v&&d)&&m--,a&&x.push(d))}if(m+=b,i&&b!==m){p=0;while(v=r[p++])v(x,_,u,l);if(a){if(m>0)while(b--)x[b]||_[b]||(_[b]=A.call(f));_=vt(_)}g.apply(f,_),h&&!a&&_.length>0&&m+r.length>1&&k.uniqueSort(f)}return h&&(y=E,n=w),x};return i?nt(a):a}function xt(t,e){var n,r=[],i=[],o=w[t+" "];if(!o){e||(e=ft(t)),n=e.length;while(n--)o=yt(e[n]),o[v]?r.push(o):i.push(o);o=w(t,bt(i,r)),o.selector=t}return o}function _t(t,n,r,i){var o,a,s,u,l,f="function"===typeof t&&t,h=!i&&ft(t=f.selector||t);if(r=r||[],1===h.length){if(a=h[0]=h[0].slice(0),a.length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&c&&e.relative[a[1].type]){if(n=(e.find.ID(s.matches[0].replace(X,q),n)||[])[0],!n)return r;f&&(n=n.parentNode),t=t.slice(a.shift().value.length)}o=$.needsContext.test(t)?0:a.length;while(o--){if(s=a[o],e.relative[u=s.type])break;if((l=e.find[u])&&(i=l(s.matches[0].replace(X,q),Y.test(a[0].type)&&ut(n.parentNode)||n))){if(a.splice(o,1),t=i.length&&ht(a),!t)return g.apply(r,i),r;break}}}return(f||xt(t,h))(i,n,!c,r,!n||Y.test(t)&&ut(n.parentNode)||n),r}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,m.sortStable=v.split("").sort(E).join("")===v,lt(),m.sortDetached=rt((function(t){return 1&t.compareDocumentPosition(s.createElement("fieldset"))})),k.find=tt,k.expr[":"]=k.expr.pseudos,k.unique=k.uniqueSort,tt.compile=xt,tt.select=_t,tt.setDocument=lt,tt.tokenize=ft,tt.escape=k.escapeSelector,tt.getText=k.text,tt.isXML=k.isXMLDoc,tt.selectors=k.expr,tt.support=k.support,tt.uniqueSort=k.uniqueSort})();var F=function(t,e,n){var r=[],i=void 0!==n;while((t=t[e])&&9!==t.nodeType)if(1===t.nodeType){if(i&&k(t).is(n))break;r.push(t)}return r},B=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},z=k.expr.match.needsContext,Z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function U(t,e,n){return y(e)?k.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?k.grep(t,(function(t){return t===e!==n})):"string"!==typeof e?k.grep(t,(function(t){return f.call(e,t)>-1!==n})):k.filter(e,t,n)}k.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?k.find.matchesSelector(r,t)?[r]:[]:k.find.matches(t,k.grep(e,(function(t){return 1===t.nodeType})))},k.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!==typeof t)return this.pushStack(k(t).filter((function(){for(e=0;e<r;e++)if(k.contains(i[e],this))return!0})));for(n=this.pushStack([]),e=0;e<r;e++)k.find(t,i[e],n);return r>1?k.uniqueSort(n):n},filter:function(t){return this.pushStack(U(this,t||[],!1))},not:function(t){return this.pushStack(U(this,t||[],!0))},is:function(t){return!!U(this,"string"===typeof t&&z.test(t)?k(t):t||[],!1).length}});var H,$=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,G=k.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||H,"string"===typeof t){if(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:$.exec(t),!r||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:x,!0)),Z.test(r[1])&&k.isPlainObject(e))for(r in e)y(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return i=x.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(k):k.makeArray(t,this)};G.prototype=k.fn,H=k(x);var W=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function Y(t,e){while((t=t[e])&&1!==t.nodeType);return t}k.fn.extend({has:function(t){var e=k(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(k.contains(this,e[t]))return!0}))},closest:function(t,e){var n,r=0,i=this.length,o=[],a="string"!==typeof t&&k(t);if(!z.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(t){return t?"string"===typeof t?f.call(k(t),this[0]):f.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return F(t,"parentNode")},parentsUntil:function(t,e,n){return F(t,"parentNode",n)},next:function(t){return Y(t,"nextSibling")},prev:function(t){return Y(t,"previousSibling")},nextAll:function(t){return F(t,"nextSibling")},prevAll:function(t){return F(t,"previousSibling")},nextUntil:function(t,e,n){return F(t,"nextSibling",n)},prevUntil:function(t,e,n){return F(t,"previousSibling",n)},siblings:function(t){return B((t.parentNode||{}).firstChild,t)},children:function(t){return B(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(M(t,"template")&&(t=t.content||t),k.merge([],t.childNodes))}},(function(t,e){k.fn[t]=function(n,r){var i=k.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"===typeof r&&(i=k.filter(r,i)),this.length>1&&(V[t]||k.uniqueSort(i),W.test(t)&&i.reverse()),this.pushStack(i)}}));var X=/[^\x20\t\r\n\f]+/g;function q(t){var e={};return k.each(t.match(X)||[],(function(t,n){e[n]=!0})),e}function K(t){return t}function J(t){throw t}function Q(t,e,n,r){var i;try{t&&y(i=t.promise)?i.call(t).done(e).fail(n):t&&y(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}k.Callbacks=function(t){t="string"===typeof t?q(t):k.extend({},t);var e,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||t.once,r=e=!0;a.length;s=-1){n=a.shift();while(++s<o.length)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1)}t.memory||(n=!1),e=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){k.each(n,(function(n,r){y(r)?t.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==S(r)&&e(r)}))}(arguments),n&&!e&&u()),this},remove:function(){return k.each(arguments,(function(t,e){var n;while((n=k.inArray(e,o,n))>-1)o.splice(n,1),n<=s&&s--})),this},has:function(t){return t?k.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},k.extend({Deferred:function(t){var e=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return k.Deferred((function(n){k.each(e,(function(e,r){var i=y(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,r){var o=0;function a(t,e,n,r){return function(){var s=this,u=arguments,l=function(){var i,l;if(!(t<o)){if(i=n.apply(s,u),i===e.promise())throw new TypeError("Thenable self-resolution");l=i&&("object"===typeof i||"function"===typeof i)&&i.then,y(l)?r?l.call(i,a(o,e,K,r),a(o,e,J,r)):(o++,l.call(i,a(o,e,K,r),a(o,e,J,r),a(o,e,K,e.notifyWith))):(n!==K&&(s=void 0,u=[i]),(r||e.resolveWith)(s,u))}},c=r?l:function(){try{l()}catch(r){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(r,c.error),t+1>=o&&(n!==J&&(s=void 0,u=[r]),e.rejectWith(s,u))}};t?c():(k.Deferred.getErrorHook?c.error=k.Deferred.getErrorHook():k.Deferred.getStackHook&&(c.error=k.Deferred.getStackHook()),i.setTimeout(c))}}return k.Deferred((function(i){e[0][3].add(a(0,i,y(r)?r:K,i.notifyWith)),e[1][3].add(a(0,i,y(t)?t:K)),e[2][3].add(a(0,i,y(n)?n:J))})).promise()},promise:function(t){return null!=t?k.extend(t,r):r}},o={};return k.each(e,(function(t,i){var a=i[2],s=i[5];r[i[1]]=a.add,s&&a.add((function(){n=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=u.call(arguments),o=k.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?u.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(Q(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||y(i[n]&&i[n].then)))return o.then();while(n--)Q(i[n],a(n),o.reject);return o.promise()}});var tt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&tt.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},k.readyException=function(t){i.setTimeout((function(){throw t}))};var et=k.Deferred();function nt(){x.removeEventListener("DOMContentLoaded",nt),i.removeEventListener("load",nt),k.ready()}k.fn.ready=function(t){return et.then(t).catch((function(t){k.readyException(t)})),this},k.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==t&&--k.readyWait>0||et.resolveWith(x,[k]))}}),k.ready.then=et.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?i.setTimeout(k.ready):(x.addEventListener("DOMContentLoaded",nt),i.addEventListener("load",nt));var rt=function(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if("object"===S(n))for(s in i=!0,n)rt(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,y(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(k(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):o},it=/^-ms-/,ot=/-([a-z])/g;function at(t,e){return e.toUpperCase()}function st(t){return t.replace(it,"ms-").replace(ot,at)}var ut=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function lt(){this.expando=k.expando+lt.uid++}lt.uid=1,lt.prototype={cache:function(t){var e=t[this.expando];return e||(e={},ut(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"===typeof e)i[st(e)]=n;else for(r in e)i[st(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][st(e)]},access:function(t,e,n){return void 0===e||e&&"string"===typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){Array.isArray(e)?e=e.map(st):(e=st(e),e=e in r?[e]:e.match(X)||[]),n=e.length;while(n--)delete r[e[n]]}(void 0===e||k.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!k.isEmptyObject(e)}};var ct=new lt,ft=new lt,ht=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,dt=/[A-Z]/g;function pt(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ht.test(t)?JSON.parse(t):t)}function gt(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(dt,"-$&").toLowerCase(),n=t.getAttribute(r),"string"===typeof n){try{n=pt(n)}catch(i){}ft.set(t,e,n)}else n=void 0;return n}k.extend({hasData:function(t){return ft.hasData(t)||ct.hasData(t)},data:function(t,e,n){return ft.access(t,e,n)},removeData:function(t,e){ft.remove(t,e)},_data:function(t,e,n){return ct.access(t,e,n)},_removeData:function(t,e){ct.remove(t,e)}}),k.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=ft.get(o),1===o.nodeType&&!ct.get(o,"hasDataAttrs"))){n=a.length;while(n--)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=st(r.slice(5)),gt(o,r,i[r])));ct.set(o,"hasDataAttrs",!0)}return i}return"object"===typeof t?this.each((function(){ft.set(this,t)})):rt(this,(function(e){var n;if(o&&void 0===e)return n=ft.get(o,t),void 0!==n?n:(n=gt(o,t),void 0!==n?n:void 0);this.each((function(){ft.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){ft.remove(this,t)}))}}),k.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=ct.get(t,e),n&&(!r||Array.isArray(n)?r=ct.access(t,e,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=k.queue(t,e),r=n.length,i=n.shift(),o=k._queueHooks(t,e),a=function(){k.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return ct.get(t,n)||ct.access(t,n,{empty:k.Callbacks("once memory").add((function(){ct.remove(t,[e+"queue",n])}))})}}),k.fn.extend({queue:function(t,e){var n=2;return"string"!==typeof t&&(e=t,t="fx",n--),arguments.length<n?k.queue(this[0],t):void 0===e?this:this.each((function(){var n=k.queue(this,t,e);k._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&k.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){k.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=k.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!==typeof t&&(e=t,t=void 0),t=t||"fx";while(a--)n=ct.get(o[a],t+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var vt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,mt=new RegExp("^(?:([+-])=|)("+vt+")([a-z%]*)$","i"),yt=["Top","Right","Bottom","Left"],bt=x.documentElement,xt=function(t){return k.contains(t.ownerDocument,t)},_t={composed:!0};bt.getRootNode&&(xt=function(t){return k.contains(t.ownerDocument,t)||t.getRootNode(_t)===t.ownerDocument});var wt=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&xt(t)&&"none"===k.css(t,"display")};function St(t,e,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return k.css(t,e,"")},u=s(),l=n&&n[3]||(k.cssNumber[e]?"":"px"),c=t.nodeType&&(k.cssNumber[e]||"px"!==l&&+u)&&mt.exec(k.css(t,e));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)k.style(t,e,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,k.style(t,e,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var Et={};function Tt(t){var e,n=t.ownerDocument,r=t.nodeName,i=Et[r];return i||(e=n.body.appendChild(n.createElement(r)),i=k.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),Et[r]=i,i)}function kt(t,e){for(var n,r,i=[],o=0,a=t.length;o<a;o++)r=t[o],r.style&&(n=r.style.display,e?("none"===n&&(i[o]=ct.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&wt(r)&&(i[o]=Tt(r))):"none"!==n&&(i[o]="none",ct.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}k.fn.extend({show:function(){return kt(this,!0)},hide:function(){return kt(this)},toggle:function(t){return"boolean"===typeof t?t?this.show():this.hide():this.each((function(){wt(this)?k(this).show():k(this).hide()}))}});var Ct=/^(?:checkbox|radio)$/i,Mt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,At=/^$|^module$|\/(?:java|ecma)script/i;(function(){var t=x.createDocumentFragment(),e=t.appendChild(x.createElement("div")),n=x.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),m.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="<option></option>",m.option=!!e.lastChild})();var It={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ot(t,e){var n;return n="undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!==typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&M(t,e)?k.merge([t],n):n}function Dt(t,e){for(var n=0,r=t.length;n<r;n++)ct.set(t[n],"globalEval",!e||ct.get(e[n],"globalEval"))}It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,It.th=It.td,m.option||(It.optgroup=It.option=[1,"<select multiple='multiple'>","</select>"]);var Pt=/<|&#?\w+;/;function Lt(t,e,n,r,i){for(var o,a,s,u,l,c,f=e.createDocumentFragment(),h=[],d=0,p=t.length;d<p;d++)if(o=t[d],o||0===o)if("object"===S(o))k.merge(h,o.nodeType?[o]:o);else if(Pt.test(o)){a=a||f.appendChild(e.createElement("div")),s=(Mt.exec(o)||["",""])[1].toLowerCase(),u=It[s]||It._default,a.innerHTML=u[1]+k.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;k.merge(h,a.childNodes),a=f.firstChild,a.textContent=""}else h.push(e.createTextNode(o));f.textContent="",d=0;while(o=h[d++])if(r&&k.inArray(o,r)>-1)i&&i.push(o);else if(l=xt(o),a=Ot(f.appendChild(o),"script"),l&&Dt(a),n){c=0;while(o=a[c++])At.test(o.type||"")&&n.push(o)}return f}var Nt=/^([^.]*)(?:\.(.+)|)/;function Rt(){return!0}function jt(){return!1}function Ft(t,e,n,r,i,o){var a,s;if("object"===typeof e){for(s in"string"!==typeof n&&(r=r||n,n=void 0),e)Ft(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"===typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=jt;else if(!i)return t;return 1===o&&(a=i,i=function(t){return k().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=k.guid++)),t.each((function(){k.event.add(this,e,i,r,n)}))}function Bt(t,e,n){n?(ct.set(t,e,!1),k.event.add(t,e,{namespace:!1,handler:function(t){var n,r=ct.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(k.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=u.call(arguments),ct.set(this,e,r),this[e](),n=ct.get(this,e),ct.set(this,e,!1),r!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else r&&(ct.set(this,e,k.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Rt)}})):void 0===ct.get(t,e)&&k.event.add(t,e,Rt)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,d,p,g,v=ct.get(t);if(ut(t)){n.handler&&(o=n,n=o.handler,i=o.selector),i&&k.find.matchesSelector(bt,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!==typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(X)||[""],l=e.length;while(l--)s=Nt.exec(e[l])||[],d=g=s[1],p=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=u[d])||(h=u[d]=[],h.delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),k.event.global[d]=!0)}},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,d,p,g,v=ct.hasData(t)&&ct.get(t);if(v&&(u=v.events)){e=(e||"").match(X)||[""],l=e.length;while(l--)if(s=Nt.exec(e[l])||[],d=g=s[1],p=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,h=u[d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;while(o--)c=h[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,p,v.handle)||k.removeEvent(t,d,v.handle),delete u[d])}else for(d in u)k.event.remove(t,d+e[l],n,r,!0);k.isEmptyObject(u)&&ct.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=new Array(arguments.length),u=k.event.fix(t),l=(ct.get(this,"events")||Object.create(null))[u.type]||[],c=k.event.special[u.type]||{};for(s[0]=u,e=1;e<arguments.length;e++)s[e]=arguments[e];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=k.event.handlers.call(this,u,l),e=0;while((i=a[e++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,r=((k.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,r,i,o,a,s=[],u=e.delegateCount,l=t.target;if(u&&l.nodeType&&!("click"===t.type&&t.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)r=e[n],i=r.selector+" ",void 0===a[i]&&(a[i]=r.needsContext?k(i,this).index(l)>-1:k.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<e.length&&s.push({elem:l,handlers:e.slice(u)}),s},addProp:function(t,e){Object.defineProperty(k.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[k.expando]?t:new k.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Ct.test(e.type)&&e.click&&M(e,"input")&&Bt(e,"click",!0),!1},trigger:function(t){var e=this||t;return Ct.test(e.type)&&e.click&&M(e,"input")&&Bt(e,"click"),!0},_default:function(t){var e=t.target;return Ct.test(e.type)&&e.click&&M(e,"input")&&ct.get(e,"click")||M(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},k.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},k.Event=function(t,e){if(!(this instanceof k.Event))return new k.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Rt:jt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&k.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:jt,isPropagationStopped:jt,isImmediatePropagationStopped:jt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Rt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Rt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Rt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(x.documentMode){var n=ct.get(this,"handle"),r=k.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else k.event.simulate(e,t.target,k.event.fix(t))}k.event.special[t]={setup:function(){var r;if(Bt(this,t,!0),!x.documentMode)return!1;r=ct.get(this,e),r||this.addEventListener(e,n),ct.set(this,e,(r||0)+1)},trigger:function(){return Bt(this,t),!0},teardown:function(){var t;if(!x.documentMode)return!1;t=ct.get(this,e)-1,t?ct.set(this,e,t):(this.removeEventListener(e,n),ct.remove(this,e))},_default:function(e){return ct.get(e.target,t)},delegateType:e},k.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=x.documentMode?this:r,o=ct.get(i,e);o||(x.documentMode?this.addEventListener(e,n):r.addEventListener(t,n,!0)),ct.set(i,e,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=x.documentMode?this:r,o=ct.get(i,e)-1;o?ct.set(i,e,o):(x.documentMode?this.removeEventListener(e,n):r.removeEventListener(t,n,!0),ct.remove(i,e))}}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){k.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||k.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}})),k.fn.extend({on:function(t,e,n,r){return Ft(this,t,e,n,r)},one:function(t,e,n,r){return Ft(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,k(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"===typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!==typeof e||(n=e,e=void 0),!1===n&&(n=jt),this.each((function(){k.event.remove(this,t,n,e)}))}});var zt=/<script|<style|<link/i,Zt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ut=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ht(t,e){return M(t,"table")&&M(11!==e.nodeType?e:e.firstChild,"tr")&&k(t).children("tbody")[0]||t}function $t(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Gt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Wt(t,e){var n,r,i,o,a,s,u;if(1===e.nodeType){if(ct.hasData(t)&&(o=ct.get(t),u=o.events,u))for(i in ct.remove(e,"handle events"),u)for(n=0,r=u[i].length;n<r;n++)k.event.add(e,i,u[i][n]);ft.hasData(t)&&(a=ft.access(t),s=k.extend({},a),ft.set(e,s))}}function Vt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Ct.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Yt(t,e,n,r){e=l(e);var i,o,a,s,u,c,f=0,h=t.length,d=h-1,p=e[0],g=y(p);if(g||h>1&&"string"===typeof p&&!m.checkClone&&Zt.test(p))return t.each((function(i){var o=t.eq(i);g&&(e[0]=p.call(this,i,o.html())),Yt(o,e,n,r)}));if(h&&(i=Lt(e,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=k.map(Ot(i,"script"),$t),s=a.length;f<h;f++)u=i,f!==d&&(u=k.clone(u,!0,!0),s&&k.merge(a,Ot(u,"script"))),n.call(t[f],u,f);if(s)for(c=a[a.length-1].ownerDocument,k.map(a,Gt),f=0;f<s;f++)u=a[f],At.test(u.type||"")&&!ct.access(u,"globalEval")&&k.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?k._evalUrl&&!u.noModule&&k._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):w(u.textContent.replace(Ut,""),u,c))}return t}function Xt(t,e,n){for(var r,i=e?k.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||k.cleanData(Ot(r)),r.parentNode&&(n&&xt(r)&&Dt(Ot(r,"script")),r.parentNode.removeChild(r));return t}k.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,o,a,s=t.cloneNode(!0),u=xt(t);if(!m.noCloneChecked&&(1===t.nodeType||11===t.nodeType)&&!k.isXMLDoc(t))for(a=Ot(s),o=Ot(t),r=0,i=o.length;r<i;r++)Vt(o[r],a[r]);if(e)if(n)for(o=o||Ot(t),a=a||Ot(s),r=0,i=o.length;r<i;r++)Wt(o[r],a[r]);else Wt(t,s);return a=Ot(s,"script"),a.length>0&&Dt(a,!u&&Ot(t,"script")),s},cleanData:function(t){for(var e,n,r,i=k.event.special,o=0;void 0!==(n=t[o]);o++)if(ut(n)){if(e=n[ct.expando]){if(e.events)for(r in e.events)i[r]?k.event.remove(n,r):k.removeEvent(n,r,e.handle);n[ct.expando]=void 0}n[ft.expando]&&(n[ft.expando]=void 0)}}}),k.fn.extend({detach:function(t){return Xt(this,t,!0)},remove:function(t){return Xt(this,t)},text:function(t){return rt(this,(function(t){return void 0===t?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Yt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ht(this,t);e.appendChild(t)}}))},prepend:function(){return Yt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ht(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Yt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Yt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(k.cleanData(Ot(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return k.clone(this,t,e)}))},html:function(t){return rt(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"===typeof t&&!zt.test(t)&&!It[(Mt.exec(t)||["",""])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;n<r;n++)e=this[n]||{},1===e.nodeType&&(k.cleanData(Ot(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Yt(this,arguments,(function(e){var n=this.parentNode;k.inArray(this,t)<0&&(k.cleanData(Ot(this)),n&&n.replaceChild(e,this))}),t)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){k.fn[t]=function(t){for(var n,r=[],i=k(t),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),k(i[a])[e](n),c.apply(r,n.get());return this.pushStack(r)}}));var qt=new RegExp("^("+vt+")(?!px)[a-z%]+$","i"),Kt=/^--/,Jt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Qt=function(t,e,n){var r,i,o={};for(i in e)o[i]=t.style[i],t.style[i]=e[i];for(i in r=n.call(t),e)t.style[i]=o[i];return r},te=new RegExp(yt.join("|"),"i");function ee(t,e,n){var r,i,o,a,s=Kt.test(e),u=t.style;return n=n||Jt(t),n&&(a=n.getPropertyValue(e)||n[e],s&&a&&(a=a.replace(P,"$1")||void 0),""!==a||xt(t)||(a=k.style(t,e)),!m.pixelBoxStyles()&&qt.test(a)&&te.test(e)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function ne(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}(function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",bt.appendChild(l).appendChild(c);var t=i.getComputedStyle(c);n="1%"!==t.top,u=12===e(t.marginLeft),c.style.right="60%",a=36===e(t.right),r=36===e(t.width),c.style.position="absolute",o=12===e(c.offsetWidth/3),bt.removeChild(l),c=null}}function e(t){return Math.round(parseFloat(t))}var n,r,o,a,s,u,l=x.createElement("div"),c=x.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===c.style.backgroundClip,k.extend(m,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,n,r;return null==s&&(t=x.createElement("table"),e=x.createElement("tr"),n=x.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",bt.appendChild(t).appendChild(e).appendChild(n),r=i.getComputedStyle(e),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,bt.removeChild(t)),s}}))})();var re=["Webkit","Moz","ms"],ie=x.createElement("div").style,oe={};function ae(t){var e=t[0].toUpperCase()+t.slice(1),n=re.length;while(n--)if(t=re[n]+e,t in ie)return t}function se(t){var e=k.cssProps[t]||oe[t];return e||(t in ie?t:oe[t]=ae(t)||t)}var ue=/^(none|table(?!-c[ea]).+)/,le={position:"absolute",visibility:"hidden",display:"block"},ce={letterSpacing:"0",fontWeight:"400"};function fe(t,e,n){var r=mt.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function he(t,e,n,r,i,o){var a="width"===e?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=k.css(t,n+yt[a],!0,i)),r?("content"===n&&(u-=k.css(t,"padding"+yt[a],!0,i)),"margin"!==n&&(u-=k.css(t,"border"+yt[a]+"Width",!0,i))):(u+=k.css(t,"padding"+yt[a],!0,i),"padding"!==n?u+=k.css(t,"border"+yt[a]+"Width",!0,i):s+=k.css(t,"border"+yt[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-u-s-.5))||0),u+l}function de(t,e,n){var r=Jt(t),i=!m.boxSizingReliable()||n,o=i&&"border-box"===k.css(t,"boxSizing",!1,r),a=o,s=ee(t,e,r),u="offset"+e[0].toUpperCase()+e.slice(1);if(qt.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&o||!m.reliableTrDimensions()&&M(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===k.css(t,"display",!1,r))&&t.getClientRects().length&&(o="border-box"===k.css(t,"boxSizing",!1,r),a=u in t,a&&(s=t[u])),s=parseFloat(s)||0,s+he(t,e,n||(o?"border":"content"),a,r,s)+"px"}function pe(t,e,n,r,i){return new pe.prototype.init(t,e,n,r,i)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=ee(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=st(e),u=Kt.test(e),l=t.style;if(u||(e=se(s)),a=k.cssHooks[e]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:l[e];o=typeof n,"string"===o&&(i=mt.exec(n))&&i[1]&&(n=St(t,e,i),o="number"),null!=n&&n===n&&("number"!==o||u||(n+=i&&i[3]||(k.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(u?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,r){var i,o,a,s=st(e),u=Kt.test(e);return u||(e=se(s)),a=k.cssHooks[e]||k.cssHooks[s],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=ee(t,e,r)),"normal"===i&&e in ce&&(i=ce[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),k.each(["height","width"],(function(t,e){k.cssHooks[e]={get:function(t,n,r){if(n)return!ue.test(k.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?de(t,e,r):Qt(t,le,(function(){return de(t,e,r)}))},set:function(t,n,r){var i,o=Jt(t),a=!m.scrollboxSize()&&"absolute"===o.position,s=a||r,u=s&&"border-box"===k.css(t,"boxSizing",!1,o),l=r?he(t,e,r,u,o):0;return u&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-he(t,e,"border",!1,o)-.5)),l&&(i=mt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=k.css(t,e)),fe(t,n,l)}}})),k.cssHooks.marginLeft=ne(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(ee(t,"marginLeft"))||t.getBoundingClientRect().left-Qt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(t,e){k.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"===typeof n?n.split(" "):[n];r<4;r++)i[t+yt[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(k.cssHooks[t+e].set=fe)})),k.fn.extend({css:function(t,e){return rt(this,(function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=Jt(t),i=e.length;a<i;a++)o[e[a]]=k.css(t,e[a],!1,r);return o}return void 0!==n?k.style(t,e,n):k.css(t,e)}),t,e,arguments.length>1)}}),k.Tween=pe,pe.prototype={constructor:pe,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var t=pe.propHooks[this.prop];return t&&t.get?t.get(this):pe.propHooks._default.get(this)},run:function(t){var e,n=pe.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):pe.propHooks._default.set(this),this}},pe.prototype.init.prototype=pe.prototype,pe.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=k.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||!k.cssHooks[t.prop]&&null==t.elem.style[se(t.prop)]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}},pe.propHooks.scrollTop=pe.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},k.fx=pe.prototype.init,k.fx.step={};var ge,ve,me=/^(?:toggle|show|hide)$/,ye=/queueHooks$/;function be(){ve&&(!1===x.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(be):i.setTimeout(be,k.fx.interval),k.fx.tick())}function xe(){return i.setTimeout((function(){ge=void 0})),ge=Date.now()}function _e(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)n=yt[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function we(t,e,n){for(var r,i=(Te.tweeners[e]||[]).concat(Te.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function Se(t,e,n){var r,i,o,a,s,u,l,c,f="width"in e||"height"in e,h=this,d={},p=t.style,g=t.nodeType&&wt(t),v=ct.get(t,"fxshow");for(r in n.queue||(a=k._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,k.queue(t,"fx").length||a.empty.fire()}))}))),e)if(i=e[r],me.test(i)){if(delete e[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||k.style(t,r)}if(u=!k.isEmptyObject(e),u||!k.isEmptyObject(d))for(r in f&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=v&&v.display,null==l&&(l=ct.get(t,"display")),c=k.css(t,"display"),"none"===c&&(l?c=l:(kt([t],!0),l=t.style.display||l,c=k.css(t,"display"),kt([t]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===k.css(t,"float")&&(u||(h.done((function(){p.display=l})),null==l&&(c=p.display,l="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=ct.access(t,"fxshow",{display:l}),o&&(v.hidden=!g),g&&kt([t],!0),h.done((function(){for(r in g||kt([t]),ct.remove(t,"fxshow"),d)k.style(t,r,d[r])}))),u=we(g?v[r]:0,r,h),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}function Ee(t,e){var n,r,i,o,a;for(n in t)if(r=st(n),i=e[r],o=t[n],Array.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),a=k.cssHooks[r],a&&"expand"in a)for(n in o=a.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}function Te(t,e,n){var r,i,o=0,a=Te.prefilters.length,s=k.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var e=ge||xe(),n=Math.max(0,l.startTime+l.duration-e),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;a<u;a++)l.tweens[a].run(o);return s.notifyWith(t,[l,o,n]),o<1&&u?n:(u||s.notifyWith(t,[l,1,0]),s.resolveWith(t,[l]),!1)},l=s.promise({elem:t,props:k.extend({},e),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:e,originalOptions:n,startTime:ge||xe(),duration:n.duration,tweens:[],createTween:function(e,n){var r=k.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return e?(s.notifyWith(t,[l,1,0]),s.resolveWith(t,[l,e])):s.rejectWith(t,[l,e]),this}}),c=l.props;for(Ee(c,l.opts.specialEasing);o<a;o++)if(r=Te.prefilters[o].call(l,t,c,l.opts),r)return y(r.stop)&&(k._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return k.map(c,we,l),y(l.opts.start)&&l.opts.start.call(t,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),k.fx.timer(k.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l}k.Animation=k.extend(Te,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return St(n.elem,t,mt.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(X);for(var n,r=0,i=t.length;r<i;r++)n=t[r],Te.tweeners[n]=Te.tweeners[n]||[],Te.tweeners[n].unshift(e)},prefilters:[Se],prefilter:function(t,e){e?Te.prefilters.unshift(t):Te.prefilters.push(t)}}),k.speed=function(t,e,n){var r=t&&"object"===typeof t?k.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return k.fx.off?r.duration=0:"number"!==typeof r.duration&&(r.duration in k.fx.speeds?r.duration=k.fx.speeds[r.duration]:r.duration=k.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(t,e,n,r){return this.filter(wt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=k.isEmptyObject(t),o=k.speed(e,n,r),a=function(){var e=Te(this,k.extend({},t),o);(i||ct.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!==typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,i=null!=t&&t+"queueHooks",o=k.timers,a=ct.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ye.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||k.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=ct.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=k.timers,a=r?r.length:0;for(n.finish=!0,k.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish}))}}),k.each(["toggle","show","hide"],(function(t,e){var n=k.fn[e];k.fn[e]=function(t,r,i){return null==t||"boolean"===typeof t?n.apply(this,arguments):this.animate(_e(e,!0),t,r,i)}})),k.each({slideDown:_e("show"),slideUp:_e("hide"),slideToggle:_e("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){k.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}})),k.timers=[],k.fx.tick=function(){var t,e=0,n=k.timers;for(ge=Date.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||k.fx.stop(),ge=void 0},k.fx.timer=function(t){k.timers.push(t),k.fx.start()},k.fx.interval=13,k.fx.start=function(){ve||(ve=!0,be())},k.fx.stop=function(){ve=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(t,e){return t=k.fx&&k.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}}))},function(){var t=x.createElement("input"),e=x.createElement("select"),n=e.appendChild(x.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=n.selected,t=x.createElement("input"),t.value="t",t.type="radio",m.radioValue="t"===t.value}();var ke,Ce=k.expr.attrHandle;k.fn.extend({attr:function(t,e){return rt(this,k.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){k.removeAttr(this,t)}))}}),k.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"===typeof t.getAttribute?k.prop(t,e,n):(1===o&&k.isXMLDoc(t)||(i=k.attrHooks[e.toLowerCase()]||(k.expr.match.bool.test(e)?ke:void 0)),void 0!==n?null===n?void k.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=k.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&M(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(X);if(i&&1===t.nodeType)while(n=i[r++])t.removeAttribute(n)}}),ke={set:function(t,e,n){return!1===e?k.removeAttr(t,n):t.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=Ce[e]||k.find.attr;Ce[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=Ce[a],Ce[a]=i,i=null!=n(t,e,r)?a:null,Ce[a]=o),i}}));var Me=/^(?:input|select|textarea|button)$/i,Ae=/^(?:a|area)$/i;function Ie(t){var e=t.match(X)||[];return e.join(" ")}function Oe(t){return t.getAttribute&&t.getAttribute("class")||""}function De(t){return Array.isArray(t)?t:"string"===typeof t&&t.match(X)||[]}k.fn.extend({prop:function(t,e){return rt(this,k.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[k.propFix[t]||t]}))}}),k.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(t)||(e=k.propFix[e]||e,i=k.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=k.find.attr(t,"tabindex");return e?parseInt(e,10):Me.test(t.nodeName)||Ae.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(k.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(t){var e,n,r,i,o,a;return y(t)?this.each((function(e){k(this).addClass(t.call(this,e,Oe(this)))})):(e=De(t),e.length?this.each((function(){if(r=Oe(this),n=1===this.nodeType&&" "+Ie(r)+" ",n){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Ie(n),r!==a&&this.setAttribute("class",a)}})):this)},removeClass:function(t){var e,n,r,i,o,a;return y(t)?this.each((function(e){k(this).removeClass(t.call(this,e,Oe(this)))})):arguments.length?(e=De(t),e.length?this.each((function(){if(r=Oe(this),n=1===this.nodeType&&" "+Ie(r)+" ",n){for(o=0;o<e.length;o++){i=e[o];while(n.indexOf(" "+i+" ")>-1)n=n.replace(" "+i+" "," ")}a=Ie(n),r!==a&&this.setAttribute("class",a)}})):this):this.attr("class","")},toggleClass:function(t,e){var n,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return y(t)?this.each((function(n){k(this).toggleClass(t.call(this,n,Oe(this),e),e)})):"boolean"===typeof e&&s?e?this.addClass(t):this.removeClass(t):(n=De(t),this.each((function(){if(s)for(o=k(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||(r=Oe(this),r&&ct.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":ct.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,r=0;e=" "+t+" ";while(n=this[r++])if(1===n.nodeType&&(" "+Ie(Oe(n))+" ").indexOf(e)>-1)return!0;return!1}});var Pe=/\r/g;k.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=y(t),this.each((function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,k(this).val()):t,null==i?i="":"number"===typeof i?i+="":Array.isArray(i)&&(i=k.map(i,(function(t){return null==t?"":t+""}))),e=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=k.valHooks[i.type]||k.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"===typeof n?n.replace(Pe,""):null==n?"":n)):void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:Ie(k.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(n=i[r],(n.selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!M(n.parentNode,"optgroup"))){if(e=k(n).val(),a)return e;s.push(e)}return s},set:function(t,e){var n,r,i=t.options,o=k.makeArray(e),a=i.length;while(a--)r=i[a],(r.selected=k.inArray(k.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=k.inArray(k(t).val(),e)>-1}},m.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Le=i.location,Ne={guid:Date.now()},Re=/\?/;k.parseXML=function(t){var e,n;if(!t||"string"!==typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(r){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||k.error("Invalid XML: "+(n?k.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var je=/^(?:focusinfocus|focusoutblur)$/,Fe=function(t){t.stopPropagation()};k.extend(k.event,{trigger:function(t,e,n,r){var o,a,s,u,l,c,f,h,d=[n||x],g=p.call(t,"type")?t.type:t,v=p.call(t,"namespace")?t.namespace.split("."):[];if(a=h=s=n=n||x,3!==n.nodeType&&8!==n.nodeType&&!je.test(g+k.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),l=g.indexOf(":")<0&&"on"+g,t=t[k.expando]?t:new k.Event(g,"object"===typeof t&&t),t.isTrigger=r?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:k.makeArray(e,[t]),f=k.event.special[g]||{},r||!f.trigger||!1!==f.trigger.apply(n,e))){if(!r&&!f.noBubble&&!b(n)){for(u=f.delegateType||g,je.test(u+g)||(a=a.parentNode);a;a=a.parentNode)d.push(a),s=a;s===(n.ownerDocument||x)&&d.push(s.defaultView||s.parentWindow||i)}o=0;while((a=d[o++])&&!t.isPropagationStopped())h=a,t.type=o>1?u:f.bindType||g,c=(ct.get(a,"events")||Object.create(null))[t.type]&&ct.get(a,"handle"),c&&c.apply(a,e),c=l&&a[l],c&&c.apply&&ut(a)&&(t.result=c.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(d.pop(),e)||!ut(n)||l&&y(n[g])&&!b(n)&&(s=n[l],s&&(n[l]=null),k.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Fe),n[g](),t.isPropagationStopped()&&h.removeEventListener(g,Fe),k.event.triggered=void 0,s&&(n[l]=s)),t.result}},simulate:function(t,e,n){var r=k.extend(new k.Event,n,{type:t,isSimulated:!0});k.event.trigger(r,null,e)}}),k.fn.extend({trigger:function(t,e){return this.each((function(){k.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return k.event.trigger(t,e,n,!0)}});var Be=/\[\]$/,ze=/\r?\n/g,Ze=/^(?:submit|button|image|reset|file)$/i,Ue=/^(?:input|select|textarea|keygen)/i;function He(t,e,n,r){var i;if(Array.isArray(e))k.each(e,(function(e,i){n||Be.test(t)?r(t,i):He(t+"["+("object"===typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==S(e))r(t,e);else for(i in e)He(t+"["+i+"]",e[i],n,r)}k.param=function(t,e){var n,r=[],i=function(t,e){var n=y(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,(function(){i(this.name,this.value)}));else for(n in t)He(n,t[n],e,i);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&Ue.test(this.nodeName)&&!Ze.test(t)&&(this.checked||!Ct.test(t))})).map((function(t,e){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,(function(t){return{name:e.name,value:t.replace(ze,"\r\n")}})):{name:e.name,value:n.replace(ze,"\r\n")}})).get()}});var $e=/%20/g,Ge=/#.*$/,We=/([?&])_=[^&]*/,Ve=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ye=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Xe=/^(?:GET|HEAD)$/,qe=/^\/\//,Ke={},Je={},Qe="*/".concat("*"),tn=x.createElement("a");function en(t){return function(e,n){"string"!==typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(X)||[];if(y(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function nn(t,e,n,r){var i={},o=t===Je;function a(s){var u;return i[s]=!0,k.each(t[s]||[],(function(t,s){var l=s(e,n,r);return"string"!==typeof l||o||i[l]?o?!(u=l):void 0:(e.dataTypes.unshift(l),a(l),!1)})),u}return a(e.dataTypes[0])||!i["*"]&&a("*")}function rn(t,e){var n,r,i=k.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&k.extend(!0,t,r),t}function on(t,e,n){var r,i,o,a,s=t.contents,u=t.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function an(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];o=c.shift();while(o)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift(),o)if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=l[u+" "+o]||l["* "+o],!a)for(i in l)if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]],a)){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}tn.href=Le.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Le.href,type:"GET",isLocal:Ye.test(Le.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?rn(rn(t,k.ajaxSettings),e):rn(k.ajaxSettings,t)},ajaxPrefilter:en(Ke),ajaxTransport:en(Je),ajax:function(t,e){"object"===typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,a,s,u,l,c,f,h,d=k.ajaxSetup({},e),p=d.context||d,g=d.context&&(p.nodeType||p.jquery)?k(p):k.event,v=k.Deferred(),m=k.Callbacks("once memory"),y=d.statusCode||{},b={},_={},w="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(l){if(!a){a={};while(e=Ve.exec(o))a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2])}e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(t,e){return null==l&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==l&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)S.always(t[S.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||w;return n&&n.abort(e),E(0,e),this}};if(v.promise(S),d.url=((t||d.url||Le.href)+"").replace(qe,Le.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(X)||[""],null==d.crossDomain){u=x.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=tn.protocol+"//"+tn.host!==u.protocol+"//"+u.host}catch(T){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!==typeof d.data&&(d.data=k.param(d.data,d.traditional)),nn(Ke,d,e,S),l)return S;for(f in c=k.event&&d.global,c&&0===k.active++&&k.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Xe.test(d.type),r=d.url.replace(Ge,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace($e,"+")):(h=d.url.slice(r.length),d.data&&(d.processData||"string"===typeof d.data)&&(r+=(Re.test(r)?"&":"?")+d.data,delete d.data),!1===d.cache&&(r=r.replace(We,"$1"),h=(Re.test(r)?"&":"?")+"_="+Ne.guid+++h),d.url=r+h),d.ifModified&&(k.lastModified[r]&&S.setRequestHeader("If-Modified-Since",k.lastModified[r]),k.etag[r]&&S.setRequestHeader("If-None-Match",k.etag[r])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&S.setRequestHeader("Content-Type",d.contentType),S.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Qe+"; q=0.01":""):d.accepts["*"]),d.headers)S.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(p,S,d)||l))return S.abort();if(w="abort",m.add(d.complete),S.done(d.success),S.fail(d.error),n=nn(Je,d,e,S),n){if(S.readyState=1,c&&g.trigger("ajaxSend",[S,d]),l)return S;d.async&&d.timeout>0&&(s=i.setTimeout((function(){S.abort("timeout")}),d.timeout));try{l=!1,n.send(b,E)}catch(T){if(l)throw T;E(-1,T)}}else E(-1,"No Transport");function E(t,e,a,u){var f,h,b,x,_,w=e;l||(l=!0,s&&i.clearTimeout(s),n=void 0,o=u||"",S.readyState=t>0?4:0,f=t>=200&&t<300||304===t,a&&(x=on(d,S,a)),!f&&k.inArray("script",d.dataTypes)>-1&&k.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),x=an(d,x,S,f),f?(d.ifModified&&(_=S.getResponseHeader("Last-Modified"),_&&(k.lastModified[r]=_),_=S.getResponseHeader("etag"),_&&(k.etag[r]=_)),204===t||"HEAD"===d.type?w="nocontent":304===t?w="notmodified":(w=x.state,h=x.data,b=x.error,f=!b)):(b=w,!t&&w||(w="error",t<0&&(t=0))),S.status=t,S.statusText=(e||w)+"",f?v.resolveWith(p,[h,w,S]):v.rejectWith(p,[S,w,b]),S.statusCode(y),y=void 0,c&&g.trigger(f?"ajaxSuccess":"ajaxError",[S,d,f?h:b]),m.fireWith(p,[S,w]),c&&(g.trigger("ajaxComplete",[S,d]),--k.active||k.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,n){return k.get(t,e,n,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],(function(t,e){k[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),k.ajax(k.extend({url:t,type:e,dataType:i,data:n,success:r},k.isPlainObject(t)&&t))}})),k.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),k._evalUrl=function(t,e,n){return k.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){k.globalEval(t,e,n)}})},k.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=k(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){var t=this;while(t.firstElementChild)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return y(t)?this.each((function(e){k(this).wrapInner(t.call(this,e))})):this.each((function(){var e=k(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y(t);return this.each((function(n){k(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(t){return!k.expr.pseudos.visible(t)},k.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var sn={0:200,1223:204},un=k.ajaxSettings.xhr();m.cors=!!un&&"withCredentials"in un,m.ajax=un=!!un,k.ajaxTransport((function(t){var e,n;if(m.cors||un&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!==typeof s.status?o(0,"error"):o(s.status,s.statusText):o(sn[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout((function(){e&&n()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(u){if(e)throw u}},abort:function(){e&&e()}}})),k.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),k.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=k("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),x.head.appendChild(e[0])},abort:function(){n&&n()}}}));var ln=[],cn=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ln.pop()||k.expando+"_"+Ne.guid++;return this[t]=!0,t}}),k.ajaxPrefilter("json jsonp",(function(t,e,n){var r,o,a,s=!1!==t.jsonp&&(cn.test(t.url)?"url":"string"===typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&cn.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(cn,"$1"+r):!1!==t.jsonp&&(t.url+=(Re.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||k.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always((function(){void 0===o?k(i).removeProp(r):i[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,ln.push(r)),a&&y(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=function(){var t=x.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),k.parseHTML=function(t,e,n){return"string"!==typeof t?[]:("boolean"===typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?(e=x.implementation.createHTMLDocument(""),r=e.createElement("base"),r.href=x.location.href,e.head.appendChild(r)):e=x),i=Z.exec(t),o=!n&&[],i?[e.createElement(i[1])]:(i=Lt([t],e,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(t,e,n){var r,i,o,a=this,s=t.indexOf(" ");return s>-1&&(r=Ie(t.slice(s)),t=t.slice(0,s)),y(e)?(n=e,e=void 0):e&&"object"===typeof e&&(i="POST"),a.length>0&&k.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(r?k("<div>").append(k.parseHTML(t)).find(r):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},k.expr.pseudos.animated=function(t){return k.grep(k.timers,(function(e){return t===e.elem})).length},k.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l,c=k.css(t,"position"),f=k(t),h={};"static"===c&&(t.style.position="relative"),s=f.offset(),o=k.css(t,"top"),u=k.css(t,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),y(e)&&(e=e.call(t,n,k.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+i),"using"in e?e.using.call(t,h):f.css(h)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){k.offset.setOffset(this,t,e)}));var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))e=r.getBoundingClientRect();else{e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;while(t&&(t===n.body||t===n.documentElement)&&"static"===k.css(t,"position"))t=t.parentNode;t&&t!==r&&1===t.nodeType&&(i=k(t).offset(),i.top+=k.css(t,"borderTopWidth",!0),i.left+=k.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-k.css(r,"marginTop",!0),left:e.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){var t=this.offsetParent;while(t&&"static"===k.css(t,"position"))t=t.offsetParent;return t||bt}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;k.fn[t]=function(r){return rt(this,(function(t,r,i){var o;if(b(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[e]:t[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i}),t,r,arguments.length)}})),k.each(["top","left"],(function(t,e){k.cssHooks[e]=ne(m.pixelPosition,(function(t,n){if(n)return n=ee(t,e),qt.test(n)?k(t).position()[e]+"px":n}))})),k.each({Height:"height",Width:"width"},(function(t,e){k.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){k.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!==typeof i),s=n||(!0===i||!0===o?"margin":"border");return rt(this,(function(e,n,i){var o;return b(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?k.css(e,n,s):k.style(e,n,i,s)}),e,a?i:void 0,a)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){k.fn[e]=function(t){return this.on(e,t)}})),k.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){k.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var fn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;k.proxy=function(t,e){var n,r,i;if("string"===typeof e&&(n=t[e],e=t,t=n),y(t))return r=u.call(arguments,2),i=function(){return t.apply(e||this,r.concat(u.call(arguments)))},i.guid=t.guid=t.guid||k.guid++,i},k.holdReady=function(t){t?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=M,k.isFunction=y,k.isWindow=b,k.camelCase=st,k.type=S,k.now=Date.now,k.isNumeric=function(t){var e=k.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},k.trim=function(t){return null==t?"":(t+"").replace(fn,"$1")},n=[],r=function(){return k}.apply(e,n),void 0===r||(t.exports=r);var hn=i.jQuery,dn=i.$;return k.noConflict=function(t){return i.$===k&&(i.$=dn),t&&i.jQuery===k&&(i.jQuery=hn),k},"undefined"===typeof o&&(i.jQuery=i.$=k),k}))},62705:function(t,e,n){var r=n(55639),i=r.Symbol;t.exports=i},44239:function(t,e,n){var r=n(62705),i=n(89607),o=n(2333),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;function l(t){return null==t?void 0===t?s:a:u&&u in Object(t)?i(t):o(t)}t.exports=l},38749:function(t,e,n){var r=n(44239),i=n(41780),o=n(37005),a="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",h="[object Map]",d="[object Number]",p="[object Object]",g="[object RegExp]",v="[object Set]",m="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",x="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",S="[object Int8Array]",E="[object Int16Array]",T="[object Int32Array]",k="[object Uint8Array]",C="[object Uint8ClampedArray]",M="[object Uint16Array]",A="[object Uint32Array]",I={};function O(t){return o(t)&&i(t.length)&&!!I[r(t)]}I[_]=I[w]=I[S]=I[E]=I[T]=I[k]=I[C]=I[M]=I[A]=!0,I[a]=I[s]=I[b]=I[u]=I[x]=I[l]=I[c]=I[f]=I[h]=I[d]=I[p]=I[g]=I[v]=I[m]=I[y]=!1,t.exports=O},7518:function(t){function e(t){return function(e){return t(e)}}t.exports=e},31957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},85924:function(t,e,n){var r=n(5569),i=r(Object.getPrototypeOf,Object);t.exports=i},89607:function(t,e,n){var r=n(62705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function u(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(u){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}t.exports=u},31167:function(t,e,n){t=n.nmd(t);var r=n(31957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();t.exports=u},2333:function(t){var e=Object.prototype,n=e.toString;function r(t){return n.call(t)}t.exports=r},5569:function(t){function e(t,e){return function(n){return t(e(n))}}t.exports=e},55639:function(t,e,n){var r=n(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},1469:function(t){var e=Array.isArray;t.exports=e},41780:function(t){var e=9007199254740991;function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=e}t.exports=n},81763:function(t,e,n){var r=n(44239),i=n(37005),o="[object Number]";function a(t){return"number"==typeof t||i(t)&&r(t)==o}t.exports=a},37005:function(t){function e(t){return null!=t&&"object"==typeof t}t.exports=e},68630:function(t,e,n){var r=n(44239),i=n(85924),o=n(37005),a="[object Object]",s=Function.prototype,u=Object.prototype,l=s.toString,c=u.hasOwnProperty,f=l.call(Object);function h(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&&l.call(n)==f}t.exports=h},36719:function(t,e,n){var r=n(38749),i=n(7518),o=n(31167),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},96486:function(t,e,n){var r;
/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */t=n.nmd(t),function(){var i,o="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",d=1,p=2,g=4,v=1,m=2,y=1,b=2,x=4,_=8,w=16,S=32,E=64,T=128,k=256,C=512,M=30,A="...",I=800,O=16,D=1,P=2,L=3,N=1/0,R=9007199254740991,j=17976931348623157e292,F=NaN,B=4294967295,z=B-1,Z=B>>>1,U=[["ary",T],["bind",y],["bindKey",b],["curry",_],["curryRight",w],["flip",C],["partial",S],["partialRight",E],["rearg",k]],H="[object Arguments]",$="[object Array]",G="[object AsyncFunction]",W="[object Boolean]",V="[object Date]",Y="[object DOMException]",X="[object Error]",q="[object Function]",K="[object GeneratorFunction]",J="[object Map]",Q="[object Number]",tt="[object Null]",et="[object Object]",nt="[object Promise]",rt="[object Proxy]",it="[object RegExp]",ot="[object Set]",at="[object String]",st="[object Symbol]",ut="[object Undefined]",lt="[object WeakMap]",ct="[object WeakSet]",ft="[object ArrayBuffer]",ht="[object DataView]",dt="[object Float32Array]",pt="[object Float64Array]",gt="[object Int8Array]",vt="[object Int16Array]",mt="[object Int32Array]",yt="[object Uint8Array]",bt="[object Uint8ClampedArray]",xt="[object Uint16Array]",_t="[object Uint32Array]",wt=/\b__p \+= '';/g,St=/\b(__p \+=) '' \+/g,Et=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tt=/&(?:amp|lt|gt|quot|#39);/g,kt=/[&<>"']/g,Ct=RegExp(Tt.source),Mt=RegExp(kt.source),At=/<%-([\s\S]+?)%>/g,It=/<%([\s\S]+?)%>/g,Ot=/<%=([\s\S]+?)%>/g,Dt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pt=/^\w*$/,Lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nt=/[\\^$.*+?()[\]{}|]/g,Rt=RegExp(Nt.source),jt=/^\s+/,Ft=/\s/,Bt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,zt=/\{\n\/\* \[wrapped with (.+)\] \*/,Zt=/,? & /,Ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ht=/[()=,{}\[\]\/\s]/,$t=/\\(\\)?/g,Gt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Wt=/\w*$/,Vt=/^[-+]0x[0-9a-f]+$/i,Yt=/^0b[01]+$/i,Xt=/^\[object .+?Constructor\]$/,qt=/^0o[0-7]+$/i,Kt=/^(?:0|[1-9]\d*)$/,Jt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qt=/($^)/,te=/['\n\r\u2028\u2029\\]/g,ee="\\ud800-\\udfff",ne="\\u0300-\\u036f",re="\\ufe20-\\ufe2f",ie="\\u20d0-\\u20ff",oe=ne+re+ie,ae="\\u2700-\\u27bf",se="a-z\\xdf-\\xf6\\xf8-\\xff",ue="\\xac\\xb1\\xd7\\xf7",le="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ce="\\u2000-\\u206f",fe=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="A-Z\\xc0-\\xd6\\xd8-\\xde",de="\\ufe0e\\ufe0f",pe=ue+le+ce+fe,ge="['’]",ve="["+ee+"]",me="["+pe+"]",ye="["+oe+"]",be="\\d+",xe="["+ae+"]",_e="["+se+"]",we="[^"+ee+pe+be+ae+se+he+"]",Se="\\ud83c[\\udffb-\\udfff]",Ee="(?:"+ye+"|"+Se+")",Te="[^"+ee+"]",ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Ce="[\\ud800-\\udbff][\\udc00-\\udfff]",Me="["+he+"]",Ae="\\u200d",Ie="(?:"+_e+"|"+we+")",Oe="(?:"+Me+"|"+we+")",De="(?:"+ge+"(?:d|ll|m|re|s|t|ve))?",Pe="(?:"+ge+"(?:D|LL|M|RE|S|T|VE))?",Le=Ee+"?",Ne="["+de+"]?",Re="(?:"+Ae+"(?:"+[Te,ke,Ce].join("|")+")"+Ne+Le+")*",je="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Be=Ne+Le+Re,ze="(?:"+[xe,ke,Ce].join("|")+")"+Be,Ze="(?:"+[Te+ye+"?",ye,ke,Ce,ve].join("|")+")",Ue=RegExp(ge,"g"),He=RegExp(ye,"g"),$e=RegExp(Se+"(?="+Se+")|"+Ze+Be,"g"),Ge=RegExp([Me+"?"+_e+"+"+De+"(?="+[me,Me,"$"].join("|")+")",Oe+"+"+Pe+"(?="+[me,Me+Ie,"$"].join("|")+")",Me+"?"+Ie+"+"+De,Me+"+"+Pe,Fe,je,be,ze].join("|"),"g"),We=RegExp("["+Ae+ee+oe+de+"]"),Ve=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ye=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xe=-1,qe={};qe[dt]=qe[pt]=qe[gt]=qe[vt]=qe[mt]=qe[yt]=qe[bt]=qe[xt]=qe[_t]=!0,qe[H]=qe[$]=qe[ft]=qe[W]=qe[ht]=qe[V]=qe[X]=qe[q]=qe[J]=qe[Q]=qe[et]=qe[it]=qe[ot]=qe[at]=qe[lt]=!1;var Ke={};Ke[H]=Ke[$]=Ke[ft]=Ke[ht]=Ke[W]=Ke[V]=Ke[dt]=Ke[pt]=Ke[gt]=Ke[vt]=Ke[mt]=Ke[J]=Ke[Q]=Ke[et]=Ke[it]=Ke[ot]=Ke[at]=Ke[st]=Ke[yt]=Ke[bt]=Ke[xt]=Ke[_t]=!0,Ke[X]=Ke[q]=Ke[lt]=!1;var Je={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"},Qe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},en={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,on="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,an="object"==typeof self&&self&&self.Object===Object&&self,sn=on||an||Function("return this")(),un=e&&!e.nodeType&&e,ln=un&&t&&!t.nodeType&&t,cn=ln&&ln.exports===un,fn=cn&&on.process,hn=function(){try{var t=ln&&ln.require&&ln.require("util").types;return t||fn&&fn.binding&&fn.binding("util")}catch(e){}}(),dn=hn&&hn.isArrayBuffer,pn=hn&&hn.isDate,gn=hn&&hn.isMap,vn=hn&&hn.isRegExp,mn=hn&&hn.isSet,yn=hn&&hn.isTypedArray;function bn(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)}function xn(t,e,n,r){var i=-1,o=null==t?0:t.length;while(++i<o){var a=t[i];e(r,a,n(a),t)}return r}function _n(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}function wn(t,e){var n=null==t?0:t.length;while(n--)if(!1===e(t[n],n,t))break;return t}function Sn(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!e(t[n],n,t))return!1;return!0}function En(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function Tn(t,e){var n=null==t?0:t.length;return!!n&&jn(t,e,0)>-1}function kn(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}function Cn(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}function Mn(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}function An(t,e,n,r){var i=-1,o=null==t?0:t.length;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}function In(t,e,n,r){var i=null==t?0:t.length;r&&i&&(n=t[--i]);while(i--)n=e(n,t[i],i,t);return n}function On(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}var Dn=Zn("length");function Pn(t){return t.split("")}function Ln(t){return t.match(Ut)||[]}function Nn(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Rn(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}function jn(t,e,n){return e===e?dr(t,e,n):Rn(t,Bn,n)}function Fn(t,e,n,r){var i=n-1,o=t.length;while(++i<o)if(r(t[i],e))return i;return-1}function Bn(t){return t!==t}function zn(t,e){var n=null==t?0:t.length;return n?Gn(t,e)/n:F}function Zn(t){return function(e){return null==e?i:e[t]}}function Un(t){return function(e){return null==t?i:t[e]}}function Hn(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function $n(t,e){var n=t.length;t.sort(e);while(n--)t[n]=t[n].value;return t}function Gn(t,e){var n,r=-1,o=t.length;while(++r<o){var a=e(t[r]);a!==i&&(n=n===i?a:n+a)}return n}function Wn(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}function Vn(t,e){return Cn(e,(function(e){return[e,t[e]]}))}function Yn(t){return t?t.slice(0,mr(t)+1).replace(jt,""):t}function Xn(t){return function(e){return t(e)}}function qn(t,e){return Cn(e,(function(e){return t[e]}))}function Kn(t,e){return t.has(e)}function Jn(t,e){var n=-1,r=t.length;while(++n<r&&jn(e,t[n],0)>-1);return n}function Qn(t,e){var n=t.length;while(n--&&jn(e,t[n],0)>-1);return n}function tr(t,e){var n=t.length,r=0;while(n--)t[n]===e&&++r;return r}var er=Un(Je),nr=Un(Qe);function rr(t){return"\\"+en[t]}function ir(t,e){return null==t?i:t[e]}function or(t){return We.test(t)}function ar(t){return Ve.test(t)}function sr(t){var e,n=[];while(!(e=t.next()).done)n.push(e.value);return n}function ur(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function lr(t,e){return function(n){return t(e(n))}}function cr(t,e){var n=-1,r=t.length,i=0,o=[];while(++n<r){var a=t[n];a!==e&&a!==h||(t[n]=h,o[i++]=n)}return o}function fr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function hr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function dr(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}function pr(t,e,n){var r=n+1;while(r--)if(t[r]===e)return r;return r}function gr(t){return or(t)?br(t):Dn(t)}function vr(t){return or(t)?xr(t):Pn(t)}function mr(t){var e=t.length;while(e--&&Ft.test(t.charAt(e)));return e}var yr=Un(tn);function br(t){var e=$e.lastIndex=0;while($e.test(t))++e;return e}function xr(t){return t.match($e)||[]}function _r(t){return t.match(Ge)||[]}var wr=function t(e){e=null==e?sn:Sr.defaults(sn.Object(),e,Sr.pick(sn,Ye));var n=e.Array,r=e.Date,Ft=e.Error,Ut=e.Function,ee=e.Math,ne=e.Object,re=e.RegExp,ie=e.String,oe=e.TypeError,ae=n.prototype,se=Ut.prototype,ue=ne.prototype,le=e["__core-js_shared__"],ce=se.toString,fe=ue.hasOwnProperty,he=0,de=function(){var t=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),pe=ue.toString,ge=ce.call(ne),ve=sn._,me=re("^"+ce.call(fe).replace(Nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ye=cn?e.Buffer:i,be=e.Symbol,xe=e.Uint8Array,_e=ye?ye.allocUnsafe:i,we=lr(ne.getPrototypeOf,ne),Se=ne.create,Ee=ue.propertyIsEnumerable,Te=ae.splice,ke=be?be.isConcatSpreadable:i,Ce=be?be.iterator:i,Me=be?be.toStringTag:i,Ae=function(){try{var t=Va(ne,"defineProperty");return t({},"",{}),t}catch(e){}}(),Ie=e.clearTimeout!==sn.clearTimeout&&e.clearTimeout,Oe=r&&r.now!==sn.Date.now&&r.now,De=e.setTimeout!==sn.setTimeout&&e.setTimeout,Pe=ee.ceil,Le=ee.floor,Ne=ne.getOwnPropertySymbols,Re=ye?ye.isBuffer:i,je=e.isFinite,Fe=ae.join,Be=lr(ne.keys,ne),ze=ee.max,Ze=ee.min,$e=r.now,Ge=e.parseInt,We=ee.random,Ve=ae.reverse,Je=Va(e,"DataView"),Qe=Va(e,"Map"),tn=Va(e,"Promise"),en=Va(e,"Set"),on=Va(e,"WeakMap"),an=Va(ne,"create"),un=on&&new on,ln={},fn=Ds(Je),hn=Ds(Qe),Dn=Ds(tn),Pn=Ds(en),Un=Ds(on),dr=be?be.prototype:i,br=dr?dr.valueOf:i,xr=dr?dr.toString:i;function wr(t){if(Tc(t)&&!uc(t)&&!(t instanceof Cr)){if(t instanceof kr)return t;if(fe.call(t,"__wrapped__"))return Ls(t)}return new kr(t)}var Er=function(){function t(){}return function(e){if(!Ec(e))return{};if(Se)return Se(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function Tr(){}function kr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Cr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function Mr(){var t=new Cr(this.__wrapped__);return t.__actions__=ia(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ia(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ia(this.__views__),t}function Ar(){if(this.__filtered__){var t=new Cr(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Ir(){var t=this.__wrapped__.value(),e=this.__dir__,n=uc(t),r=e<0,i=n?t.length:0,o=Ja(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,h=0,d=Ze(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return Bo(t,this.__actions__);var p=[];t:while(u--&&h<d){l+=e;var g=-1,v=t[l];while(++g<f){var m=c[g],y=m.iteratee,b=m.type,x=y(v);if(b==P)v=x;else if(!x){if(b==D)continue t;break t}}p[h++]=v}return p}function Or(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Dr(){this.__data__=an?an(null):{},this.size=0}function Pr(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Lr(t){var e=this.__data__;if(an){var n=e[t];return n===c?i:n}return fe.call(e,t)?e[t]:i}function Nr(t){var e=this.__data__;return an?e[t]!==i:fe.call(e,t)}function Rr(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=an&&e===i?c:e,this}function jr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Fr(){this.__data__=[],this.size=0}function Br(t){var e=this.__data__,n=ci(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Te.call(e,n,1),--this.size,!0}function zr(t){var e=this.__data__,n=ci(e,t);return n<0?i:e[n][1]}function Zr(t){return ci(this.__data__,t)>-1}function Ur(t,e){var n=this.__data__,r=ci(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Hr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function $r(){this.size=0,this.__data__={hash:new Or,map:new(Qe||jr),string:new Or}}function Gr(t){var e=Ga(this,t)["delete"](t);return this.size-=e?1:0,e}function Wr(t){return Ga(this,t).get(t)}function Vr(t){return Ga(this,t).has(t)}function Yr(t,e){var n=Ga(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Xr(t){var e=-1,n=null==t?0:t.length;this.__data__=new Hr;while(++e<n)this.add(t[e])}function qr(t){return this.__data__.set(t,c),this}function Kr(t){return this.__data__.has(t)}function Jr(t){var e=this.__data__=new jr(t);this.size=e.size}function Qr(){this.__data__=new jr,this.size=0}function ti(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}function ei(t){return this.__data__.get(t)}function ni(t){return this.__data__.has(t)}function ri(t,e){var n=this.__data__;if(n instanceof jr){var r=n.__data__;if(!Qe||r.length<a-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Hr(r)}return n.set(t,e),this.size=n.size,this}function ii(t,e){var n=uc(t),r=!n&&sc(t),i=!n&&!r&&dc(t),o=!n&&!r&&!i&&zc(t),a=n||r||i||o,s=a?Wn(t.length,ie):[],u=s.length;for(var l in t)!e&&!fe.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||as(l,u))||s.push(l);return s}function oi(t){var e=t.length;return e?t[yo(0,e-1)]:i}function ai(t,e){return As(ia(t),vi(e,0,t.length))}function si(t){return As(ia(t))}function ui(t,e,n){(n!==i&&!ic(t[e],n)||n===i&&!(e in t))&&pi(t,e,n)}function li(t,e,n){var r=t[e];fe.call(t,e)&&ic(r,n)&&(n!==i||e in t)||pi(t,e,n)}function ci(t,e){var n=t.length;while(n--)if(ic(t[n][0],e))return n;return-1}function fi(t,e,n,r){return wi(t,(function(t,i,o){e(r,t,n(t),o)})),r}function hi(t,e){return t&&oa(e,Sf(e),t)}function di(t,e){return t&&oa(e,Ef(e),t)}function pi(t,e,n){"__proto__"==e&&Ae?Ae(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function gi(t,e){var r=-1,o=e.length,a=n(o),s=null==t;while(++r<o)a[r]=s?i:mf(t,e[r]);return a}function vi(t,e,n){return t===t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function mi(t,e,n,r,o,a){var s,u=e&d,l=e&p,c=e&g;if(n&&(s=o?n(t,r,o,a):n(t)),s!==i)return s;if(!Ec(t))return t;var f=uc(t);if(f){if(s=es(t),!u)return ia(t,s)}else{var h=Ka(t),v=h==q||h==K;if(dc(t))return Yo(t,u);if(h==et||h==H||v&&!o){if(s=l||v?{}:ns(t),!u)return l?sa(t,di(s,t)):aa(t,hi(s,t))}else{if(!Ke[h])return o?t:{};s=rs(t,h,u)}}a||(a=new Jr);var m=a.get(t);if(m)return m;a.set(t,s),jc(t)?t.forEach((function(r){s.add(mi(r,e,n,r,t,a))})):kc(t)&&t.forEach((function(r,i){s.set(i,mi(r,e,n,i,t,a))}));var y=c?l?za:Ba:l?Ef:Sf,b=f?i:y(t);return _n(b||t,(function(r,i){b&&(i=r,r=t[i]),li(s,i,mi(r,e,n,i,t,a))})),s}function yi(t){var e=Sf(t);return function(n){return bi(n,t,e)}}function bi(t,e,n){var r=n.length;if(null==t)return!r;t=ne(t);while(r--){var o=n[r],a=e[o],s=t[o];if(s===i&&!(o in t)||!a(s))return!1}return!0}function xi(t,e,n){if("function"!=typeof t)throw new oe(u);return Ts((function(){t.apply(i,n)}),e)}function _i(t,e,n,r){var i=-1,o=Tn,s=!0,u=t.length,l=[],c=e.length;if(!u)return l;n&&(e=Cn(e,Xn(n))),r?(o=kn,s=!1):e.length>=a&&(o=Kn,s=!1,e=new Xr(e));t:while(++i<u){var f=t[i],h=null==n?f:n(f);if(f=r||0!==f?f:0,s&&h===h){var d=c;while(d--)if(e[d]===h)continue t;l.push(f)}else o(e,h,r)||l.push(f)}return l}wr.templateSettings={escape:At,evaluate:It,interpolate:Ot,variable:"",imports:{_:wr}},wr.prototype=Tr.prototype,wr.prototype.constructor=wr,kr.prototype=Er(Tr.prototype),kr.prototype.constructor=kr,Cr.prototype=Er(Tr.prototype),Cr.prototype.constructor=Cr,Or.prototype.clear=Dr,Or.prototype["delete"]=Pr,Or.prototype.get=Lr,Or.prototype.has=Nr,Or.prototype.set=Rr,jr.prototype.clear=Fr,jr.prototype["delete"]=Br,jr.prototype.get=zr,jr.prototype.has=Zr,jr.prototype.set=Ur,Hr.prototype.clear=$r,Hr.prototype["delete"]=Gr,Hr.prototype.get=Wr,Hr.prototype.has=Vr,Hr.prototype.set=Yr,Xr.prototype.add=Xr.prototype.push=qr,Xr.prototype.has=Kr,Jr.prototype.clear=Qr,Jr.prototype["delete"]=ti,Jr.prototype.get=ei,Jr.prototype.has=ni,Jr.prototype.set=ri;var wi=ca(Oi),Si=ca(Di,!0);function Ei(t,e){var n=!0;return wi(t,(function(t,r,i){return n=!!e(t,r,i),n})),n}function Ti(t,e,n){var r=-1,o=t.length;while(++r<o){var a=t[r],s=e(a);if(null!=s&&(u===i?s===s&&!Bc(s):n(s,u)))var u=s,l=a}return l}function ki(t,e,n,r){var o=t.length;n=Yc(n),n<0&&(n=-n>o?0:o+n),r=r===i||r>o?o:Yc(r),r<0&&(r+=o),r=n>r?0:Xc(r);while(n<r)t[n++]=e;return t}function Ci(t,e){var n=[];return wi(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function Mi(t,e,n,r,i){var o=-1,a=t.length;n||(n=os),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?Mi(s,e-1,n,r,i):Mn(i,s):r||(i[i.length]=s)}return i}var Ai=fa(),Ii=fa(!0);function Oi(t,e){return t&&Ai(t,e,Sf)}function Di(t,e){return t&&Ii(t,e,Sf)}function Pi(t,e){return En(e,(function(e){return _c(t[e])}))}function Li(t,e){e=$o(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[Os(e[n++])];return n&&n==r?t:i}function Ni(t,e,n){var r=e(t);return uc(t)?r:Mn(r,n(t))}function Ri(t){return null==t?t===i?ut:tt:Me&&Me in ne(t)?Ya(t):bs(t)}function ji(t,e){return t>e}function Fi(t,e){return null!=t&&fe.call(t,e)}function Bi(t,e){return null!=t&&e in ne(t)}function zi(t,e,n){return t>=Ze(e,n)&&t<ze(e,n)}function Zi(t,e,r){var o=r?kn:Tn,a=t[0].length,s=t.length,u=s,l=n(s),c=1/0,f=[];while(u--){var h=t[u];u&&e&&(h=Cn(h,Xn(e))),c=Ze(h.length,c),l[u]=!r&&(e||a>=120&&h.length>=120)?new Xr(u&&h):i}h=t[0];var d=-1,p=l[0];t:while(++d<a&&f.length<c){var g=h[d],v=e?e(g):g;if(g=r||0!==g?g:0,!(p?Kn(p,v):o(f,v,r))){u=s;while(--u){var m=l[u];if(!(m?Kn(m,v):o(t[u],v,r)))continue t}p&&p.push(v),f.push(g)}}return f}function Ui(t,e,n,r){return Oi(t,(function(t,i,o){e(r,n(t),i,o)})),r}function Hi(t,e,n){e=$o(e,t),t=_s(t,e);var r=null==t?t:t[Os(ou(e))];return null==r?i:bn(r,t,n)}function $i(t){return Tc(t)&&Ri(t)==H}function Gi(t){return Tc(t)&&Ri(t)==ft}function Wi(t){return Tc(t)&&Ri(t)==V}function Vi(t,e,n,r,i){return t===e||(null==t||null==e||!Tc(t)&&!Tc(e)?t!==t&&e!==e:Yi(t,e,n,r,Vi,i))}function Yi(t,e,n,r,i,o){var a=uc(t),s=uc(e),u=a?$:Ka(t),l=s?$:Ka(e);u=u==H?et:u,l=l==H?et:l;var c=u==et,f=l==et,h=u==l;if(h&&dc(t)){if(!dc(e))return!1;a=!0,c=!1}if(h&&!c)return o||(o=new Jr),a||zc(t)?Na(t,e,n,r,i,o):Ra(t,e,u,n,r,i,o);if(!(n&v)){var d=c&&fe.call(t,"__wrapped__"),p=f&&fe.call(e,"__wrapped__");if(d||p){var g=d?t.value():t,m=p?e.value():e;return o||(o=new Jr),i(g,m,n,r,o)}}return!!h&&(o||(o=new Jr),ja(t,e,n,r,i,o))}function Xi(t){return Tc(t)&&Ka(t)==J}function qi(t,e,n,r){var o=n.length,a=o,s=!r;if(null==t)return!a;t=ne(t);while(o--){var u=n[o];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}while(++o<a){u=n[o];var l=u[0],c=t[l],f=u[1];if(s&&u[2]){if(c===i&&!(l in t))return!1}else{var h=new Jr;if(r)var d=r(c,f,l,t,e,h);if(!(d===i?Vi(f,c,v|m,r,h):d))return!1}}return!0}function Ki(t){if(!Ec(t)||fs(t))return!1;var e=_c(t)?me:Xt;return e.test(Ds(t))}function Ji(t){return Tc(t)&&Ri(t)==it}function Qi(t){return Tc(t)&&Ka(t)==ot}function to(t){return Tc(t)&&Sc(t.length)&&!!qe[Ri(t)]}function eo(t){return"function"==typeof t?t:null==t?Oh:"object"==typeof t?uc(t)?so(t[0],t[1]):ao(t):$h(t)}function no(t){if(!ds(t))return Be(t);var e=[];for(var n in ne(t))fe.call(t,n)&&"constructor"!=n&&e.push(n);return e}function ro(t){if(!Ec(t))return ys(t);var e=ds(t),n=[];for(var r in t)("constructor"!=r||!e&&fe.call(t,r))&&n.push(r);return n}function io(t,e){return t<e}function oo(t,e){var r=-1,i=cc(t)?n(t.length):[];return wi(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}function ao(t){var e=Wa(t);return 1==e.length&&e[0][2]?gs(e[0][0],e[0][1]):function(n){return n===t||qi(n,t,e)}}function so(t,e){return us(t)&&ps(e)?gs(Os(t),e):function(n){var r=mf(n,t);return r===i&&r===e?bf(n,t):Vi(e,r,v|m)}}function uo(t,e,n,r,o){t!==e&&Ai(e,(function(a,s){if(o||(o=new Jr),Ec(a))lo(t,e,s,n,uo,r,o);else{var u=r?r(Ss(t,s),a,s+"",t,e,o):i;u===i&&(u=a),ui(t,s,u)}}),Ef)}function lo(t,e,n,r,o,a,s){var u=Ss(t,n),l=Ss(e,n),c=s.get(l);if(c)ui(t,n,c);else{var f=a?a(u,l,n+"",t,e,s):i,h=f===i;if(h){var d=uc(l),p=!d&&dc(l),g=!d&&!p&&zc(l);f=l,d||p||g?uc(u)?f=u:fc(u)?f=ia(u):p?(h=!1,f=Yo(l,!0)):g?(h=!1,f=Qo(l,!0)):f=[]:Lc(l)||sc(l)?(f=u,sc(u)?f=Kc(u):Ec(u)&&!_c(u)||(f=ns(l))):h=!1}h&&(s.set(l,f),o(f,l,r,a,s),s["delete"](l)),ui(t,n,f)}}function co(t,e){var n=t.length;if(n)return e+=e<0?n:0,as(e,n)?t[e]:i}function fo(t,e,n){e=e.length?Cn(e,(function(t){return uc(t)?function(e){return Li(e,1===t.length?t[0]:t)}:t})):[Oh];var r=-1;e=Cn(e,Xn($a()));var i=oo(t,(function(t,n,i){var o=Cn(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return $n(i,(function(t,e){return ea(t,e,n)}))}function ho(t,e){return po(t,e,(function(e,n){return bf(t,n)}))}function po(t,e,n){var r=-1,i=e.length,o={};while(++r<i){var a=e[r],s=Li(t,a);n(s,a)&&Eo(o,$o(a,t),s)}return o}function go(t){return function(e){return Li(e,t)}}function vo(t,e,n,r){var i=r?Fn:jn,o=-1,a=e.length,s=t;t===e&&(e=ia(e)),n&&(s=Cn(t,Xn(n)));while(++o<a){var u=0,l=e[o],c=n?n(l):l;while((u=i(s,c,u,r))>-1)s!==t&&Te.call(s,u,1),Te.call(t,u,1)}return t}function mo(t,e){var n=t?e.length:0,r=n-1;while(n--){var i=e[n];if(n==r||i!==o){var o=i;as(i)?Te.call(t,i,1):Ro(t,i)}}return t}function yo(t,e){return t+Le(We()*(e-t+1))}function bo(t,e,r,i){var o=-1,a=ze(Pe((e-t)/(r||1)),0),s=n(a);while(a--)s[i?a:++o]=t,t+=r;return s}function xo(t,e){var n="";if(!t||e<1||e>R)return n;do{e%2&&(n+=t),e=Le(e/2),e&&(t+=t)}while(e);return n}function _o(t,e){return ks(xs(t,e,Oh),t+"")}function wo(t){return oi(Uf(t))}function So(t,e){var n=Uf(t);return As(n,vi(e,0,n.length))}function Eo(t,e,n,r){if(!Ec(t))return t;e=$o(e,t);var o=-1,a=e.length,s=a-1,u=t;while(null!=u&&++o<a){var l=Os(e[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(o!=s){var f=u[l];c=r?r(f,l,u):i,c===i&&(c=Ec(f)?f:as(e[o+1])?[]:{})}li(u,l,c),u=u[l]}return t}var To=un?function(t,e){return un.set(t,e),t}:Oh,ko=Ae?function(t,e){return Ae(t,"toString",{configurable:!0,enumerable:!1,value:Ch(e),writable:!0})}:Oh;function Co(t){return As(Uf(t))}function Mo(t,e,r){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;var a=n(o);while(++i<o)a[i]=t[i+e];return a}function Ao(t,e){var n;return wi(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}function Io(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e===e&&i<=Z){while(r<i){var o=r+i>>>1,a=t[o];null!==a&&!Bc(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return Oo(t,e,Oh,n)}function Oo(t,e,n,r){var o=0,a=null==t?0:t.length;if(0===a)return 0;e=n(e);var s=e!==e,u=null===e,l=Bc(e),c=e===i;while(o<a){var f=Le((o+a)/2),h=n(t[f]),d=h!==i,p=null===h,g=h===h,v=Bc(h);if(s)var m=r||g;else m=c?g&&(r||d):u?g&&d&&(r||!p):l?g&&d&&!p&&(r||!v):!p&&!v&&(r?h<=e:h<e);m?o=f+1:a=f}return Ze(a,z)}function Do(t,e){var n=-1,r=t.length,i=0,o=[];while(++n<r){var a=t[n],s=e?e(a):a;if(!n||!ic(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Po(t){return"number"==typeof t?t:Bc(t)?F:+t}function Lo(t){if("string"==typeof t)return t;if(uc(t))return Cn(t,Lo)+"";if(Bc(t))return xr?xr.call(t):"";var e=t+"";return"0"==e&&1/t==-N?"-0":e}function No(t,e,n){var r=-1,i=Tn,o=t.length,s=!0,u=[],l=u;if(n)s=!1,i=kn;else if(o>=a){var c=e?null:Aa(t);if(c)return fr(c);s=!1,i=Kn,l=new Xr}else l=e?[]:u;t:while(++r<o){var f=t[r],h=e?e(f):f;if(f=n||0!==f?f:0,s&&h===h){var d=l.length;while(d--)if(l[d]===h)continue t;e&&l.push(h),u.push(f)}else i(l,h,n)||(l!==u&&l.push(h),u.push(f))}return u}function Ro(t,e){return e=$o(e,t),t=_s(t,e),null==t||delete t[Os(ou(e))]}function jo(t,e,n,r){return Eo(t,e,n(Li(t,e)),r)}function Fo(t,e,n,r){var i=t.length,o=r?i:-1;while((r?o--:++o<i)&&e(t[o],o,t));return n?Mo(t,r?0:o,r?o+1:i):Mo(t,r?o+1:0,r?i:o)}function Bo(t,e){var n=t;return n instanceof Cr&&(n=n.value()),An(e,(function(t,e){return e.func.apply(e.thisArg,Mn([t],e.args))}),n)}function zo(t,e,r){var i=t.length;if(i<2)return i?No(t[0]):[];var o=-1,a=n(i);while(++o<i){var s=t[o],u=-1;while(++u<i)u!=o&&(a[o]=_i(a[o]||s,t[u],e,r))}return No(Mi(a,1),e,r)}function Zo(t,e,n){var r=-1,o=t.length,a=e.length,s={};while(++r<o){var u=r<a?e[r]:i;n(s,t[r],u)}return s}function Uo(t){return fc(t)?t:[]}function Ho(t){return"function"==typeof t?t:Oh}function $o(t,e){return uc(t)?t:us(t,e)?[t]:Is(Qc(t))}var Go=_o;function Wo(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:Mo(t,e,n)}var Vo=Ie||function(t){return sn.clearTimeout(t)};function Yo(t,e){if(e)return t.slice();var n=t.length,r=_e?_e(n):new t.constructor(n);return t.copy(r),r}function Xo(t){var e=new t.constructor(t.byteLength);return new xe(e).set(new xe(t)),e}function qo(t,e){var n=e?Xo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Ko(t){var e=new t.constructor(t.source,Wt.exec(t));return e.lastIndex=t.lastIndex,e}function Jo(t){return br?ne(br.call(t)):{}}function Qo(t,e){var n=e?Xo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ta(t,e){if(t!==e){var n=t!==i,r=null===t,o=t===t,a=Bc(t),s=e!==i,u=null===e,l=e===e,c=Bc(e);if(!u&&!c&&!a&&t>e||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&t<e||c&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!l)return-1}return 0}function ea(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;while(++r<a){var u=ta(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return t.index-e.index}function na(t,e,r,i){var o=-1,a=t.length,s=r.length,u=-1,l=e.length,c=ze(a-s,0),f=n(l+c),h=!i;while(++u<l)f[u]=e[u];while(++o<s)(h||o<a)&&(f[r[o]]=t[o]);while(c--)f[u++]=t[o++];return f}function ra(t,e,r,i){var o=-1,a=t.length,s=-1,u=r.length,l=-1,c=e.length,f=ze(a-u,0),h=n(f+c),d=!i;while(++o<f)h[o]=t[o];var p=o;while(++l<c)h[p+l]=e[l];while(++s<u)(d||o<a)&&(h[p+r[s]]=t[o++]);return h}function ia(t,e){var r=-1,i=t.length;e||(e=n(i));while(++r<i)e[r]=t[r];return e}function oa(t,e,n,r){var o=!n;n||(n={});var a=-1,s=e.length;while(++a<s){var u=e[a],l=r?r(n[u],t[u],u,n,t):i;l===i&&(l=t[u]),o?pi(n,u,l):li(n,u,l)}return n}function aa(t,e){return oa(t,Xa(t),e)}function sa(t,e){return oa(t,qa(t),e)}function ua(t,e){return function(n,r){var i=uc(n)?xn:fi,o=e?e():{};return i(n,t,$a(r,2),o)}}function la(t){return _o((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;a=t.length>3&&"function"==typeof a?(o--,a):i,s&&ss(n[0],n[1],s)&&(a=o<3?i:a,o=1),e=ne(e);while(++r<o){var u=n[r];u&&t(e,u,r,a)}return e}))}function ca(t,e){return function(n,r){if(null==n)return n;if(!cc(n))return t(n,r);var i=n.length,o=e?i:-1,a=ne(n);while(e?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}function fa(t){return function(e,n,r){var i=-1,o=ne(e),a=r(e),s=a.length;while(s--){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}function ha(t,e,n){var r=e&y,i=ga(t);function o(){var e=this&&this!==sn&&this instanceof o?i:t;return e.apply(r?n:this,arguments)}return o}function da(t){return function(e){e=Qc(e);var n=or(e)?vr(e):i,r=n?n[0]:e.charAt(0),o=n?Wo(n,1).join(""):e.slice(1);return r[t]()+o}}function pa(t){return function(e){return An(wh(Xf(e).replace(Ue,"")),t,"")}}function ga(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Er(t.prototype),r=t.apply(n,e);return Ec(r)?r:n}}function va(t,e,r){var o=ga(t);function a(){var s=arguments.length,u=n(s),l=s,c=Ha(a);while(l--)u[l]=arguments[l];var f=s<3&&u[0]!==c&&u[s-1]!==c?[]:cr(u,c);if(s-=f.length,s<r)return Ca(t,e,ba,a.placeholder,i,u,f,i,i,r-s);var h=this&&this!==sn&&this instanceof a?o:t;return bn(h,this,u)}return a}function ma(t){return function(e,n,r){var o=ne(e);if(!cc(e)){var a=$a(n,3);e=Sf(e),n=function(t){return a(o[t],t,o)}}var s=t(e,n,r);return s>-1?o[a?e[s]:s]:i}}function ya(t){return Fa((function(e){var n=e.length,r=n,o=kr.prototype.thru;t&&e.reverse();while(r--){var a=e[r];if("function"!=typeof a)throw new oe(u);if(o&&!s&&"wrapper"==Ua(a))var s=new kr([],!0)}r=s?r:n;while(++r<n){a=e[r];var l=Ua(a),c="wrapper"==l?Za(a):i;s=c&&cs(c[0])&&c[1]==(T|_|S|k)&&!c[4].length&&1==c[9]?s[Ua(c[0])].apply(s,c[3]):1==a.length&&cs(a)?s[l]():s.thru(a)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&uc(r))return s.plant(r).value();var i=0,o=n?e[i].apply(this,t):r;while(++i<n)o=e[i].call(this,o);return o}}))}function ba(t,e,r,o,a,s,u,l,c,f){var h=e&T,d=e&y,p=e&b,g=e&(_|w),v=e&C,m=p?i:ga(t);function x(){var i=arguments.length,y=n(i),b=i;while(b--)y[b]=arguments[b];if(g)var _=Ha(x),w=tr(y,_);if(o&&(y=na(y,o,a,g)),s&&(y=ra(y,s,u,g)),i-=w,g&&i<f){var S=cr(y,_);return Ca(t,e,ba,x.placeholder,r,y,S,l,c,f-i)}var E=d?r:this,T=p?E[t]:t;return i=y.length,l?y=ws(y,l):v&&i>1&&y.reverse(),h&&c<i&&(y.length=c),this&&this!==sn&&this instanceof x&&(T=m||ga(T)),T.apply(E,y)}return x}function xa(t,e){return function(n,r){return Ui(n,t,e(r),{})}}function _a(t,e){return function(n,r){var o;if(n===i&&r===i)return e;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=Lo(n),r=Lo(r)):(n=Po(n),r=Po(r)),o=t(n,r)}return o}}function wa(t){return Fa((function(e){return e=Cn(e,Xn($a())),_o((function(n){var r=this;return t(e,(function(t){return bn(t,r,n)}))}))}))}function Sa(t,e){e=e===i?" ":Lo(e);var n=e.length;if(n<2)return n?xo(e,t):e;var r=xo(e,Pe(t/gr(e)));return or(e)?Wo(vr(r),0,t).join(""):r.slice(0,t)}function Ea(t,e,r,i){var o=e&y,a=ga(t);function s(){var e=-1,u=arguments.length,l=-1,c=i.length,f=n(c+u),h=this&&this!==sn&&this instanceof s?a:t;while(++l<c)f[l]=i[l];while(u--)f[l++]=arguments[++e];return bn(h,o?r:this,f)}return s}function Ta(t){return function(e,n,r){return r&&"number"!=typeof r&&ss(e,n,r)&&(n=r=i),e=Vc(e),n===i?(n=e,e=0):n=Vc(n),r=r===i?e<n?1:-1:Vc(r),bo(e,n,r,t)}}function ka(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=qc(e),n=qc(n)),t(e,n)}}function Ca(t,e,n,r,o,a,s,u,l,c){var f=e&_,h=f?s:i,d=f?i:s,p=f?a:i,g=f?i:a;e|=f?S:E,e&=~(f?E:S),e&x||(e&=~(y|b));var v=[t,e,o,p,h,g,d,u,l,c],m=n.apply(i,v);return cs(t)&&Es(m,v),m.placeholder=r,Cs(m,t,e)}function Ma(t){var e=ee[t];return function(t,n){if(t=qc(t),n=null==n?0:Ze(Yc(n),292),n&&je(t)){var r=(Qc(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return r=(Qc(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}var Aa=en&&1/fr(new en([,-0]))[1]==N?function(t){return new en(t)}:Bh;function Ia(t){return function(e){var n=Ka(e);return n==J?ur(e):n==ot?hr(e):Vn(e,t(e))}}function Oa(t,e,n,r,o,a,s,l){var c=e&b;if(!c&&"function"!=typeof t)throw new oe(u);var f=r?r.length:0;if(f||(e&=~(S|E),r=o=i),s=s===i?s:ze(Yc(s),0),l=l===i?l:Yc(l),f-=o?o.length:0,e&E){var h=r,d=o;r=o=i}var p=c?i:Za(t),g=[t,e,n,r,o,h,d,a,s,l];if(p&&ms(g,p),t=g[0],e=g[1],n=g[2],r=g[3],o=g[4],l=g[9]=g[9]===i?c?0:t.length:ze(g[9]-f,0),!l&&e&(_|w)&&(e&=~(_|w)),e&&e!=y)v=e==_||e==w?va(t,e,l):e!=S&&e!=(y|S)||o.length?ba.apply(i,g):Ea(t,e,n,r);else var v=ha(t,e,n);var m=p?To:Es;return Cs(m(v,g),t,e)}function Da(t,e,n,r){return t===i||ic(t,ue[n])&&!fe.call(r,n)?e:t}function Pa(t,e,n,r,o,a){return Ec(t)&&Ec(e)&&(a.set(e,t),uo(t,e,i,Pa,a),a["delete"](e)),t}function La(t){return Lc(t)?i:t}function Na(t,e,n,r,o,a){var s=n&v,u=t.length,l=e.length;if(u!=l&&!(s&&l>u))return!1;var c=a.get(t),f=a.get(e);if(c&&f)return c==e&&f==t;var h=-1,d=!0,p=n&m?new Xr:i;a.set(t,e),a.set(e,t);while(++h<u){var g=t[h],y=e[h];if(r)var b=s?r(y,g,h,e,t,a):r(g,y,h,t,e,a);if(b!==i){if(b)continue;d=!1;break}if(p){if(!On(e,(function(t,e){if(!Kn(p,e)&&(g===t||o(g,t,n,r,a)))return p.push(e)}))){d=!1;break}}else if(g!==y&&!o(g,y,n,r,a)){d=!1;break}}return a["delete"](t),a["delete"](e),d}function Ra(t,e,n,r,i,o,a){switch(n){case ht:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ft:return!(t.byteLength!=e.byteLength||!o(new xe(t),new xe(e)));case W:case V:case Q:return ic(+t,+e);case X:return t.name==e.name&&t.message==e.message;case it:case at:return t==e+"";case J:var s=ur;case ot:var u=r&v;if(s||(s=fr),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;r|=m,a.set(t,e);var c=Na(s(t),s(e),r,i,o,a);return a["delete"](t),c;case st:if(br)return br.call(t)==br.call(e)}return!1}function ja(t,e,n,r,o,a){var s=n&v,u=Ba(t),l=u.length,c=Ba(e),f=c.length;if(l!=f&&!s)return!1;var h=l;while(h--){var d=u[h];if(!(s?d in e:fe.call(e,d)))return!1}var p=a.get(t),g=a.get(e);if(p&&g)return p==e&&g==t;var m=!0;a.set(t,e),a.set(e,t);var y=s;while(++h<l){d=u[h];var b=t[d],x=e[d];if(r)var _=s?r(x,b,d,e,t,a):r(b,x,d,t,e,a);if(!(_===i?b===x||o(b,x,n,r,a):_)){m=!1;break}y||(y="constructor"==d)}if(m&&!y){var w=t.constructor,S=e.constructor;w==S||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(m=!1)}return a["delete"](t),a["delete"](e),m}function Fa(t){return ks(xs(t,i,Ys),t+"")}function Ba(t){return Ni(t,Sf,Xa)}function za(t){return Ni(t,Ef,qa)}var Za=un?function(t){return un.get(t)}:Bh;function Ua(t){var e=t.name+"",n=ln[e],r=fe.call(ln,e)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Ha(t){var e=fe.call(wr,"placeholder")?wr:t;return e.placeholder}function $a(){var t=wr.iteratee||Dh;return t=t===Dh?eo:t,arguments.length?t(arguments[0],arguments[1]):t}function Ga(t,e){var n=t.__data__;return ls(e)?n["string"==typeof e?"string":"hash"]:n.map}function Wa(t){var e=Sf(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,ps(i)]}return e}function Va(t,e){var n=ir(t,e);return Ki(n)?n:i}function Ya(t){var e=fe.call(t,Me),n=t[Me];try{t[Me]=i;var r=!0}catch(a){}var o=pe.call(t);return r&&(e?t[Me]=n:delete t[Me]),o}var Xa=Ne?function(t){return null==t?[]:(t=ne(t),En(Ne(t),(function(e){return Ee.call(t,e)})))}:Yh,qa=Ne?function(t){var e=[];while(t)Mn(e,Xa(t)),t=we(t);return e}:Yh,Ka=Ri;function Ja(t,e,n){var r=-1,i=n.length;while(++r<i){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=Ze(e,t+a);break;case"takeRight":t=ze(t,e-a);break}}return{start:t,end:e}}function Qa(t){var e=t.match(zt);return e?e[1].split(Zt):[]}function ts(t,e,n){e=$o(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=Os(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=null==t?0:t.length,!!i&&Sc(i)&&as(a,i)&&(uc(t)||sc(t)))}function es(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&fe.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function ns(t){return"function"!=typeof t.constructor||ds(t)?{}:Er(we(t))}function rs(t,e,n){var r=t.constructor;switch(e){case ft:return Xo(t);case W:case V:return new r(+t);case ht:return qo(t,n);case dt:case pt:case gt:case vt:case mt:case yt:case bt:case xt:case _t:return Qo(t,n);case J:return new r;case Q:case at:return new r(t);case it:return Ko(t);case ot:return new r;case st:return Jo(t)}}function is(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Bt,"{\n/* [wrapped with "+e+"] */\n")}function os(t){return uc(t)||sc(t)||!!(ke&&t&&t[ke])}function as(t,e){var n=typeof t;return e=null==e?R:e,!!e&&("number"==n||"symbol"!=n&&Kt.test(t))&&t>-1&&t%1==0&&t<e}function ss(t,e,n){if(!Ec(n))return!1;var r=typeof e;return!!("number"==r?cc(n)&&as(e,n.length):"string"==r&&e in n)&&ic(n[e],t)}function us(t,e){if(uc(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Bc(t))||(Pt.test(t)||!Dt.test(t)||null!=e&&t in ne(e))}function ls(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function cs(t){var e=Ua(t),n=wr[e];if("function"!=typeof n||!(e in Cr.prototype))return!1;if(t===n)return!0;var r=Za(n);return!!r&&t===r[0]}function fs(t){return!!de&&de in t}(Je&&Ka(new Je(new ArrayBuffer(1)))!=ht||Qe&&Ka(new Qe)!=J||tn&&Ka(tn.resolve())!=nt||en&&Ka(new en)!=ot||on&&Ka(new on)!=lt)&&(Ka=function(t){var e=Ri(t),n=e==et?t.constructor:i,r=n?Ds(n):"";if(r)switch(r){case fn:return ht;case hn:return J;case Dn:return nt;case Pn:return ot;case Un:return lt}return e});var hs=le?_c:Xh;function ds(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||ue;return t===n}function ps(t){return t===t&&!Ec(t)}function gs(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==i||t in ne(n)))}}function vs(t){var e=zl(t,(function(t){return n.size===f&&n.clear(),t})),n=e.cache;return e}function ms(t,e){var n=t[1],r=e[1],i=n|r,o=i<(y|b|T),a=r==T&&n==_||r==T&&n==k&&t[7].length<=e[8]||r==(T|k)&&e[7].length<=e[8]&&n==_;if(!o&&!a)return t;r&y&&(t[2]=e[2],i|=n&y?0:x);var s=e[3];if(s){var u=t[3];t[3]=u?na(u,s,e[4]):s,t[4]=u?cr(t[3],h):e[4]}return s=e[5],s&&(u=t[5],t[5]=u?ra(u,s,e[6]):s,t[6]=u?cr(t[5],h):e[6]),s=e[7],s&&(t[7]=s),r&T&&(t[8]=null==t[8]?e[8]:Ze(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function ys(t){var e=[];if(null!=t)for(var n in ne(t))e.push(n);return e}function bs(t){return pe.call(t)}function xs(t,e,r){return e=ze(e===i?t.length-1:e,0),function(){var i=arguments,o=-1,a=ze(i.length-e,0),s=n(a);while(++o<a)s[o]=i[e+o];o=-1;var u=n(e+1);while(++o<e)u[o]=i[o];return u[e]=r(s),bn(t,this,u)}}function _s(t,e){return e.length<2?t:Li(t,Mo(e,0,-1))}function ws(t,e){var n=t.length,r=Ze(e.length,n),o=ia(t);while(r--){var a=e[r];t[r]=as(a,n)?o[a]:i}return t}function Ss(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var Es=Ms(To),Ts=De||function(t,e){return sn.setTimeout(t,e)},ks=Ms(ko);function Cs(t,e,n){var r=e+"";return ks(t,is(r,Ps(Qa(r),n)))}function Ms(t){var e=0,n=0;return function(){var r=$e(),o=O-(r-n);if(n=r,o>0){if(++e>=I)return arguments[0]}else e=0;return t.apply(i,arguments)}}function As(t,e){var n=-1,r=t.length,o=r-1;e=e===i?r:e;while(++n<e){var a=yo(n,o),s=t[a];t[a]=t[n],t[n]=s}return t.length=e,t}var Is=vs((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Lt,(function(t,n,r,i){e.push(r?i.replace($t,"$1"):n||t)})),e}));function Os(t){if("string"==typeof t||Bc(t))return t;var e=t+"";return"0"==e&&1/t==-N?"-0":e}function Ds(t){if(null!=t){try{return ce.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Ps(t,e){return _n(U,(function(n){var r="_."+n[0];e&n[1]&&!Tn(t,r)&&t.push(r)})),t.sort()}function Ls(t){if(t instanceof Cr)return t.clone();var e=new kr(t.__wrapped__,t.__chain__);return e.__actions__=ia(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function Ns(t,e,r){e=(r?ss(t,e,r):e===i)?1:ze(Yc(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];var a=0,s=0,u=n(Pe(o/e));while(a<o)u[s++]=Mo(t,a,a+=e);return u}function Rs(t){var e=-1,n=null==t?0:t.length,r=0,i=[];while(++e<n){var o=t[e];o&&(i[r++]=o)}return i}function js(){var t=arguments.length;if(!t)return[];var e=n(t-1),r=arguments[0],i=t;while(i--)e[i-1]=arguments[i];return Mn(uc(r)?ia(r):[r],Mi(e,1))}var Fs=_o((function(t,e){return fc(t)?_i(t,Mi(e,1,fc,!0)):[]})),Bs=_o((function(t,e){var n=ou(e);return fc(n)&&(n=i),fc(t)?_i(t,Mi(e,1,fc,!0),$a(n,2)):[]})),zs=_o((function(t,e){var n=ou(e);return fc(n)&&(n=i),fc(t)?_i(t,Mi(e,1,fc,!0),i,n):[]}));function Zs(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===i?1:Yc(e),Mo(t,e<0?0:e,r)):[]}function Us(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===i?1:Yc(e),e=r-e,Mo(t,0,e<0?0:e)):[]}function Hs(t,e){return t&&t.length?Fo(t,$a(e,3),!0,!0):[]}function $s(t,e){return t&&t.length?Fo(t,$a(e,3),!0):[]}function Gs(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&ss(t,e,n)&&(n=0,r=i),ki(t,e,n,r)):[]}function Ws(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Yc(n);return i<0&&(i=ze(r+i,0)),Rn(t,$a(e,3),i)}function Vs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==i&&(o=Yc(n),o=n<0?ze(r+o,0):Ze(o,r-1)),Rn(t,$a(e,3),o,!0)}function Ys(t){var e=null==t?0:t.length;return e?Mi(t,1):[]}function Xs(t){var e=null==t?0:t.length;return e?Mi(t,N):[]}function qs(t,e){var n=null==t?0:t.length;return n?(e=e===i?1:Yc(e),Mi(t,e)):[]}function Ks(t){var e=-1,n=null==t?0:t.length,r={};while(++e<n){var i=t[e];r[i[0]]=i[1]}return r}function Js(t){return t&&t.length?t[0]:i}function Qs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Yc(n);return i<0&&(i=ze(r+i,0)),jn(t,e,i)}function tu(t){var e=null==t?0:t.length;return e?Mo(t,0,-1):[]}var eu=_o((function(t){var e=Cn(t,Uo);return e.length&&e[0]===t[0]?Zi(e):[]})),nu=_o((function(t){var e=ou(t),n=Cn(t,Uo);return e===ou(n)?e=i:n.pop(),n.length&&n[0]===t[0]?Zi(n,$a(e,2)):[]})),ru=_o((function(t){var e=ou(t),n=Cn(t,Uo);return e="function"==typeof e?e:i,e&&n.pop(),n.length&&n[0]===t[0]?Zi(n,i,e):[]}));function iu(t,e){return null==t?"":Fe.call(t,e)}function ou(t){var e=null==t?0:t.length;return e?t[e-1]:i}function au(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==i&&(o=Yc(n),o=o<0?ze(r+o,0):Ze(o,r-1)),e===e?pr(t,e,o):Rn(t,Bn,o,!0)}function su(t,e){return t&&t.length?co(t,Yc(e)):i}var uu=_o(lu);function lu(t,e){return t&&t.length&&e&&e.length?vo(t,e):t}function cu(t,e,n){return t&&t.length&&e&&e.length?vo(t,e,$a(n,2)):t}function fu(t,e,n){return t&&t.length&&e&&e.length?vo(t,e,i,n):t}var hu=Fa((function(t,e){var n=null==t?0:t.length,r=gi(t,e);return mo(t,Cn(e,(function(t){return as(t,n)?+t:t})).sort(ta)),r}));function du(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;e=$a(e,3);while(++r<o){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return mo(t,i),n}function pu(t){return null==t?t:Ve.call(t)}function gu(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&ss(t,e,n)?(e=0,n=r):(e=null==e?0:Yc(e),n=n===i?r:Yc(n)),Mo(t,e,n)):[]}function vu(t,e){return Io(t,e)}function mu(t,e,n){return Oo(t,e,$a(n,2))}function yu(t,e){var n=null==t?0:t.length;if(n){var r=Io(t,e);if(r<n&&ic(t[r],e))return r}return-1}function bu(t,e){return Io(t,e,!0)}function xu(t,e,n){return Oo(t,e,$a(n,2),!0)}function _u(t,e){var n=null==t?0:t.length;if(n){var r=Io(t,e,!0)-1;if(ic(t[r],e))return r}return-1}function wu(t){return t&&t.length?Do(t):[]}function Su(t,e){return t&&t.length?Do(t,$a(e,2)):[]}function Eu(t){var e=null==t?0:t.length;return e?Mo(t,1,e):[]}function Tu(t,e,n){return t&&t.length?(e=n||e===i?1:Yc(e),Mo(t,0,e<0?0:e)):[]}function ku(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===i?1:Yc(e),e=r-e,Mo(t,e<0?0:e,r)):[]}function Cu(t,e){return t&&t.length?Fo(t,$a(e,3),!1,!0):[]}function Mu(t,e){return t&&t.length?Fo(t,$a(e,3)):[]}var Au=_o((function(t){return No(Mi(t,1,fc,!0))})),Iu=_o((function(t){var e=ou(t);return fc(e)&&(e=i),No(Mi(t,1,fc,!0),$a(e,2))})),Ou=_o((function(t){var e=ou(t);return e="function"==typeof e?e:i,No(Mi(t,1,fc,!0),i,e)}));function Du(t){return t&&t.length?No(t):[]}function Pu(t,e){return t&&t.length?No(t,$a(e,2)):[]}function Lu(t,e){return e="function"==typeof e?e:i,t&&t.length?No(t,i,e):[]}function Nu(t){if(!t||!t.length)return[];var e=0;return t=En(t,(function(t){if(fc(t))return e=ze(t.length,e),!0})),Wn(e,(function(e){return Cn(t,Zn(e))}))}function Ru(t,e){if(!t||!t.length)return[];var n=Nu(t);return null==e?n:Cn(n,(function(t){return bn(e,i,t)}))}var ju=_o((function(t,e){return fc(t)?_i(t,e):[]})),Fu=_o((function(t){return zo(En(t,fc))})),Bu=_o((function(t){var e=ou(t);return fc(e)&&(e=i),zo(En(t,fc),$a(e,2))})),zu=_o((function(t){var e=ou(t);return e="function"==typeof e?e:i,zo(En(t,fc),i,e)})),Zu=_o(Nu);function Uu(t,e){return Zo(t||[],e||[],li)}function Hu(t,e){return Zo(t||[],e||[],Eo)}var $u=_o((function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,Ru(t,n)}));function Gu(t){var e=wr(t);return e.__chain__=!0,e}function Wu(t,e){return e(t),t}function Vu(t,e){return e(t)}var Yu=Fa((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return gi(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Cr&&as(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Vu,args:[o],thisArg:i}),new kr(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)}));function Xu(){return Gu(this)}function qu(){return new kr(this.value(),this.__chain__)}function Ku(){this.__values__===i&&(this.__values__=Wc(this.value()));var t=this.__index__>=this.__values__.length,e=t?i:this.__values__[this.__index__++];return{done:t,value:e}}function Ju(){return this}function Qu(t){var e,n=this;while(n instanceof Tr){var r=Ls(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e}function tl(){var t=this.__wrapped__;if(t instanceof Cr){var e=t;return this.__actions__.length&&(e=new Cr(this)),e=e.reverse(),e.__actions__.push({func:Vu,args:[pu],thisArg:i}),new kr(e,this.__chain__)}return this.thru(pu)}function el(){return Bo(this.__wrapped__,this.__actions__)}var nl=ua((function(t,e,n){fe.call(t,n)?++t[n]:pi(t,n,1)}));function rl(t,e,n){var r=uc(t)?Sn:Ei;return n&&ss(t,e,n)&&(e=i),r(t,$a(e,3))}function il(t,e){var n=uc(t)?En:Ci;return n(t,$a(e,3))}var ol=ma(Ws),al=ma(Vs);function sl(t,e){return Mi(vl(t,e),1)}function ul(t,e){return Mi(vl(t,e),N)}function ll(t,e,n){return n=n===i?1:Yc(n),Mi(vl(t,e),n)}function cl(t,e){var n=uc(t)?_n:wi;return n(t,$a(e,3))}function fl(t,e){var n=uc(t)?wn:Si;return n(t,$a(e,3))}var hl=ua((function(t,e,n){fe.call(t,n)?t[n].push(e):pi(t,n,[e])}));function dl(t,e,n,r){t=cc(t)?t:Uf(t),n=n&&!r?Yc(n):0;var i=t.length;return n<0&&(n=ze(i+n,0)),Fc(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&jn(t,e,n)>-1}var pl=_o((function(t,e,r){var i=-1,o="function"==typeof e,a=cc(t)?n(t.length):[];return wi(t,(function(t){a[++i]=o?bn(e,t,r):Hi(t,e,r)})),a})),gl=ua((function(t,e,n){pi(t,n,e)}));function vl(t,e){var n=uc(t)?Cn:oo;return n(t,$a(e,3))}function ml(t,e,n,r){return null==t?[]:(uc(e)||(e=null==e?[]:[e]),n=r?i:n,uc(n)||(n=null==n?[]:[n]),fo(t,e,n))}var yl=ua((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));function bl(t,e,n){var r=uc(t)?An:Hn,i=arguments.length<3;return r(t,$a(e,4),n,i,wi)}function xl(t,e,n){var r=uc(t)?In:Hn,i=arguments.length<3;return r(t,$a(e,4),n,i,Si)}function _l(t,e){var n=uc(t)?En:Ci;return n(t,Zl($a(e,3)))}function wl(t){var e=uc(t)?oi:wo;return e(t)}function Sl(t,e,n){e=(n?ss(t,e,n):e===i)?1:Yc(e);var r=uc(t)?ai:So;return r(t,e)}function El(t){var e=uc(t)?si:Co;return e(t)}function Tl(t){if(null==t)return 0;if(cc(t))return Fc(t)?gr(t):t.length;var e=Ka(t);return e==J||e==ot?t.size:no(t).length}function kl(t,e,n){var r=uc(t)?On:Ao;return n&&ss(t,e,n)&&(e=i),r(t,$a(e,3))}var Cl=_o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&ss(t,e[0],e[1])?e=[]:n>2&&ss(e[0],e[1],e[2])&&(e=[e[0]]),fo(t,Mi(e,1),[])})),Ml=Oe||function(){return sn.Date.now()};function Al(t,e){if("function"!=typeof e)throw new oe(u);return t=Yc(t),function(){if(--t<1)return e.apply(this,arguments)}}function Il(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Oa(t,T,i,i,i,i,e)}function Ol(t,e){var n;if("function"!=typeof e)throw new oe(u);return t=Yc(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Dl=_o((function(t,e,n){var r=y;if(n.length){var i=cr(n,Ha(Dl));r|=S}return Oa(t,r,e,n,i)})),Pl=_o((function(t,e,n){var r=y|b;if(n.length){var i=cr(n,Ha(Pl));r|=S}return Oa(e,r,t,n,i)}));function Ll(t,e,n){e=n?i:e;var r=Oa(t,_,i,i,i,i,i,e);return r.placeholder=Ll.placeholder,r}function Nl(t,e,n){e=n?i:e;var r=Oa(t,w,i,i,i,i,i,e);return r.placeholder=Nl.placeholder,r}function Rl(t,e,n){var r,o,a,s,l,c,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new oe(u);function g(e){var n=r,a=o;return r=o=i,f=e,s=t.apply(a,n),s}function v(t){return f=t,l=Ts(b,e),h?g(t):s}function m(t){var n=t-c,r=t-f,i=e-n;return d?Ze(i,a-r):i}function y(t){var n=t-c,r=t-f;return c===i||n>=e||n<0||d&&r>=a}function b(){var t=Ml();if(y(t))return x(t);l=Ts(b,m(t))}function x(t){return l=i,p&&r?g(t):(r=o=i,s)}function _(){l!==i&&Vo(l),f=0,r=c=o=l=i}function w(){return l===i?s:x(Ml())}function S(){var t=Ml(),n=y(t);if(r=arguments,o=this,c=t,n){if(l===i)return v(c);if(d)return Vo(l),l=Ts(b,e),g(c)}return l===i&&(l=Ts(b,e)),s}return e=qc(e)||0,Ec(n)&&(h=!!n.leading,d="maxWait"in n,a=d?ze(qc(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),S.cancel=_,S.flush=w,S}var jl=_o((function(t,e){return xi(t,1,e)})),Fl=_o((function(t,e,n){return xi(t,qc(e)||0,n)}));function Bl(t){return Oa(t,C)}function zl(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new oe(u);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(zl.Cache||Hr),n}function Zl(t){if("function"!=typeof t)throw new oe(u);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Ul(t){return Ol(2,t)}zl.Cache=Hr;var Hl=Go((function(t,e){e=1==e.length&&uc(e[0])?Cn(e[0],Xn($a())):Cn(Mi(e,1),Xn($a()));var n=e.length;return _o((function(r){var i=-1,o=Ze(r.length,n);while(++i<o)r[i]=e[i].call(this,r[i]);return bn(t,this,r)}))})),$l=_o((function(t,e){var n=cr(e,Ha($l));return Oa(t,S,i,e,n)})),Gl=_o((function(t,e){var n=cr(e,Ha(Gl));return Oa(t,E,i,e,n)})),Wl=Fa((function(t,e){return Oa(t,k,i,i,i,e)}));function Vl(t,e){if("function"!=typeof t)throw new oe(u);return e=e===i?e:Yc(e),_o(t,e)}function Yl(t,e){if("function"!=typeof t)throw new oe(u);return e=null==e?0:ze(Yc(e),0),_o((function(n){var r=n[e],i=Wo(n,0,e);return r&&Mn(i,r),bn(t,this,i)}))}function Xl(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new oe(u);return Ec(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Rl(t,e,{leading:r,maxWait:e,trailing:i})}function ql(t){return Il(t,1)}function Kl(t,e){return $l(Ho(e),t)}function Jl(){if(!arguments.length)return[];var t=arguments[0];return uc(t)?t:[t]}function Ql(t){return mi(t,g)}function tc(t,e){return e="function"==typeof e?e:i,mi(t,g,e)}function ec(t){return mi(t,d|g)}function nc(t,e){return e="function"==typeof e?e:i,mi(t,d|g,e)}function rc(t,e){return null==e||bi(t,e,Sf(e))}function ic(t,e){return t===e||t!==t&&e!==e}var oc=ka(ji),ac=ka((function(t,e){return t>=e})),sc=$i(function(){return arguments}())?$i:function(t){return Tc(t)&&fe.call(t,"callee")&&!Ee.call(t,"callee")},uc=n.isArray,lc=dn?Xn(dn):Gi;function cc(t){return null!=t&&Sc(t.length)&&!_c(t)}function fc(t){return Tc(t)&&cc(t)}function hc(t){return!0===t||!1===t||Tc(t)&&Ri(t)==W}var dc=Re||Xh,pc=pn?Xn(pn):Wi;function gc(t){return Tc(t)&&1===t.nodeType&&!Lc(t)}function vc(t){if(null==t)return!0;if(cc(t)&&(uc(t)||"string"==typeof t||"function"==typeof t.splice||dc(t)||zc(t)||sc(t)))return!t.length;var e=Ka(t);if(e==J||e==ot)return!t.size;if(ds(t))return!no(t).length;for(var n in t)if(fe.call(t,n))return!1;return!0}function mc(t,e){return Vi(t,e)}function yc(t,e,n){n="function"==typeof n?n:i;var r=n?n(t,e):i;return r===i?Vi(t,e,i,n):!!r}function bc(t){if(!Tc(t))return!1;var e=Ri(t);return e==X||e==Y||"string"==typeof t.message&&"string"==typeof t.name&&!Lc(t)}function xc(t){return"number"==typeof t&&je(t)}function _c(t){if(!Ec(t))return!1;var e=Ri(t);return e==q||e==K||e==G||e==rt}function wc(t){return"number"==typeof t&&t==Yc(t)}function Sc(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=R}function Ec(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Tc(t){return null!=t&&"object"==typeof t}var kc=gn?Xn(gn):Xi;function Cc(t,e){return t===e||qi(t,e,Wa(e))}function Mc(t,e,n){return n="function"==typeof n?n:i,qi(t,e,Wa(e),n)}function Ac(t){return Pc(t)&&t!=+t}function Ic(t){if(hs(t))throw new Ft(s);return Ki(t)}function Oc(t){return null===t}function Dc(t){return null==t}function Pc(t){return"number"==typeof t||Tc(t)&&Ri(t)==Q}function Lc(t){if(!Tc(t)||Ri(t)!=et)return!1;var e=we(t);if(null===e)return!0;var n=fe.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ce.call(n)==ge}var Nc=vn?Xn(vn):Ji;function Rc(t){return wc(t)&&t>=-R&&t<=R}var jc=mn?Xn(mn):Qi;function Fc(t){return"string"==typeof t||!uc(t)&&Tc(t)&&Ri(t)==at}function Bc(t){return"symbol"==typeof t||Tc(t)&&Ri(t)==st}var zc=yn?Xn(yn):to;function Zc(t){return t===i}function Uc(t){return Tc(t)&&Ka(t)==lt}function Hc(t){return Tc(t)&&Ri(t)==ct}var $c=ka(io),Gc=ka((function(t,e){return t<=e}));function Wc(t){if(!t)return[];if(cc(t))return Fc(t)?vr(t):ia(t);if(Ce&&t[Ce])return sr(t[Ce]());var e=Ka(t),n=e==J?ur:e==ot?fr:Uf;return n(t)}function Vc(t){if(!t)return 0===t?t:0;if(t=qc(t),t===N||t===-N){var e=t<0?-1:1;return e*j}return t===t?t:0}function Yc(t){var e=Vc(t),n=e%1;return e===e?n?e-n:e:0}function Xc(t){return t?vi(Yc(t),0,B):0}function qc(t){if("number"==typeof t)return t;if(Bc(t))return F;if(Ec(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ec(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Yn(t);var n=Yt.test(t);return n||qt.test(t)?rn(t.slice(2),n?2:8):Vt.test(t)?F:+t}function Kc(t){return oa(t,Ef(t))}function Jc(t){return t?vi(Yc(t),-R,R):0===t?t:0}function Qc(t){return null==t?"":Lo(t)}var tf=la((function(t,e){if(ds(e)||cc(e))oa(e,Sf(e),t);else for(var n in e)fe.call(e,n)&&li(t,n,e[n])})),ef=la((function(t,e){oa(e,Ef(e),t)})),nf=la((function(t,e,n,r){oa(e,Ef(e),t,r)})),rf=la((function(t,e,n,r){oa(e,Sf(e),t,r)})),of=Fa(gi);function af(t,e){var n=Er(t);return null==e?n:hi(n,e)}var sf=_o((function(t,e){t=ne(t);var n=-1,r=e.length,o=r>2?e[2]:i;o&&ss(e[0],e[1],o)&&(r=1);while(++n<r){var a=e[n],s=Ef(a),u=-1,l=s.length;while(++u<l){var c=s[u],f=t[c];(f===i||ic(f,ue[c])&&!fe.call(t,c))&&(t[c]=a[c])}}return t})),uf=_o((function(t){return t.push(i,Pa),bn(Mf,i,t)}));function lf(t,e){return Nn(t,$a(e,3),Oi)}function cf(t,e){return Nn(t,$a(e,3),Di)}function ff(t,e){return null==t?t:Ai(t,$a(e,3),Ef)}function hf(t,e){return null==t?t:Ii(t,$a(e,3),Ef)}function df(t,e){return t&&Oi(t,$a(e,3))}function pf(t,e){return t&&Di(t,$a(e,3))}function gf(t){return null==t?[]:Pi(t,Sf(t))}function vf(t){return null==t?[]:Pi(t,Ef(t))}function mf(t,e,n){var r=null==t?i:Li(t,e);return r===i?n:r}function yf(t,e){return null!=t&&ts(t,e,Fi)}function bf(t,e){return null!=t&&ts(t,e,Bi)}var xf=xa((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=pe.call(e)),t[e]=n}),Ch(Oh)),_f=xa((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=pe.call(e)),fe.call(t,e)?t[e].push(n):t[e]=[n]}),$a),wf=_o(Hi);function Sf(t){return cc(t)?ii(t):no(t)}function Ef(t){return cc(t)?ii(t,!0):ro(t)}function Tf(t,e){var n={};return e=$a(e,3),Oi(t,(function(t,r,i){pi(n,e(t,r,i),t)})),n}function kf(t,e){var n={};return e=$a(e,3),Oi(t,(function(t,r,i){pi(n,r,e(t,r,i))})),n}var Cf=la((function(t,e,n){uo(t,e,n)})),Mf=la((function(t,e,n,r){uo(t,e,n,r)})),Af=Fa((function(t,e){var n={};if(null==t)return n;var r=!1;e=Cn(e,(function(e){return e=$o(e,t),r||(r=e.length>1),e})),oa(t,za(t),n),r&&(n=mi(n,d|p|g,La));var i=e.length;while(i--)Ro(n,e[i]);return n}));function If(t,e){return Df(t,Zl($a(e)))}var Of=Fa((function(t,e){return null==t?{}:ho(t,e)}));function Df(t,e){if(null==t)return{};var n=Cn(za(t),(function(t){return[t]}));return e=$a(e),po(t,n,(function(t,n){return e(t,n[0])}))}function Pf(t,e,n){e=$o(e,t);var r=-1,o=e.length;o||(o=1,t=i);while(++r<o){var a=null==t?i:t[Os(e[r])];a===i&&(r=o,a=n),t=_c(a)?a.call(t):a}return t}function Lf(t,e,n){return null==t?t:Eo(t,e,n)}function Nf(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Eo(t,e,n,r)}var Rf=Ia(Sf),jf=Ia(Ef);function Ff(t,e,n){var r=uc(t),i=r||dc(t)||zc(t);if(e=$a(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Ec(t)&&_c(o)?Er(we(t)):{}}return(i?_n:Oi)(t,(function(t,r,i){return e(n,t,r,i)})),n}function Bf(t,e){return null==t||Ro(t,e)}function zf(t,e,n){return null==t?t:jo(t,e,Ho(n))}function Zf(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:jo(t,e,Ho(n),r)}function Uf(t){return null==t?[]:qn(t,Sf(t))}function Hf(t){return null==t?[]:qn(t,Ef(t))}function $f(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=qc(n),n=n===n?n:0),e!==i&&(e=qc(e),e=e===e?e:0),vi(qc(t),e,n)}function Gf(t,e,n){return e=Vc(e),n===i?(n=e,e=0):n=Vc(n),t=qc(t),zi(t,e,n)}function Wf(t,e,n){if(n&&"boolean"!=typeof n&&ss(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=Vc(t),e===i?(e=t,t=0):e=Vc(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=We();return Ze(t+o*(e-t+nn("1e-"+((o+"").length-1))),e)}return yo(t,e)}var Vf=pa((function(t,e,n){return e=e.toLowerCase(),t+(n?Yf(e):e)}));function Yf(t){return _h(Qc(t).toLowerCase())}function Xf(t){return t=Qc(t),t&&t.replace(Jt,er).replace(He,"")}function qf(t,e,n){t=Qc(t),e=Lo(e);var r=t.length;n=n===i?r:vi(Yc(n),0,r);var o=n;return n-=e.length,n>=0&&t.slice(n,o)==e}function Kf(t){return t=Qc(t),t&&Mt.test(t)?t.replace(kt,nr):t}function Jf(t){return t=Qc(t),t&&Rt.test(t)?t.replace(Nt,"\\$&"):t}var Qf=pa((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),th=pa((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),eh=da("toLowerCase");function nh(t,e,n){t=Qc(t),e=Yc(e);var r=e?gr(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Sa(Le(i),n)+t+Sa(Pe(i),n)}function rh(t,e,n){t=Qc(t),e=Yc(e);var r=e?gr(t):0;return e&&r<e?t+Sa(e-r,n):t}function ih(t,e,n){t=Qc(t),e=Yc(e);var r=e?gr(t):0;return e&&r<e?Sa(e-r,n)+t:t}function oh(t,e,n){return n||null==e?e=0:e&&(e=+e),Ge(Qc(t).replace(jt,""),e||0)}function ah(t,e,n){return e=(n?ss(t,e,n):e===i)?1:Yc(e),xo(Qc(t),e)}function sh(){var t=arguments,e=Qc(t[0]);return t.length<3?e:e.replace(t[1],t[2])}var uh=pa((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));function lh(t,e,n){return n&&"number"!=typeof n&&ss(t,e,n)&&(e=n=i),n=n===i?B:n>>>0,n?(t=Qc(t),t&&("string"==typeof e||null!=e&&!Nc(e))&&(e=Lo(e),!e&&or(t))?Wo(vr(t),0,n):t.split(e,n)):[]}var ch=pa((function(t,e,n){return t+(n?" ":"")+_h(e)}));function fh(t,e,n){return t=Qc(t),n=null==n?0:vi(Yc(n),0,t.length),e=Lo(e),t.slice(n,n+e.length)==e}function hh(t,e,n){var r=wr.templateSettings;n&&ss(t,e,n)&&(e=i),t=Qc(t),e=nf({},e,r,Da);var o,a,s=nf({},e.imports,r.imports,Da),u=Sf(s),c=qn(s,u),f=0,h=e.interpolate||Qt,d="__p += '",p=re((e.escape||Qt).source+"|"+h.source+"|"+(h===Ot?Gt:Qt).source+"|"+(e.evaluate||Qt).source+"|$","g"),g="//# sourceURL="+(fe.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xe+"]")+"\n";t.replace(p,(function(e,n,r,i,s,u){return r||(r=i),d+=t.slice(f,u).replace(te,rr),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=u+e.length,e})),d+="';\n";var v=fe.call(e,"variable")&&e.variable;if(v){if(Ht.test(v))throw new Ft(l)}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(wt,""):d).replace(St,"$1").replace(Et,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Sh((function(){return Ut(u,g+"return "+d).apply(i,c)}));if(m.source=d,bc(m))throw m;return m}function dh(t){return Qc(t).toLowerCase()}function ph(t){return Qc(t).toUpperCase()}function gh(t,e,n){if(t=Qc(t),t&&(n||e===i))return Yn(t);if(!t||!(e=Lo(e)))return t;var r=vr(t),o=vr(e),a=Jn(r,o),s=Qn(r,o)+1;return Wo(r,a,s).join("")}function vh(t,e,n){if(t=Qc(t),t&&(n||e===i))return t.slice(0,mr(t)+1);if(!t||!(e=Lo(e)))return t;var r=vr(t),o=Qn(r,vr(e))+1;return Wo(r,0,o).join("")}function mh(t,e,n){if(t=Qc(t),t&&(n||e===i))return t.replace(jt,"");if(!t||!(e=Lo(e)))return t;var r=vr(t),o=Jn(r,vr(e));return Wo(r,o).join("")}function yh(t,e){var n=M,r=A;if(Ec(e)){var o="separator"in e?e.separator:o;n="length"in e?Yc(e.length):n,r="omission"in e?Lo(e.omission):r}t=Qc(t);var a=t.length;if(or(t)){var s=vr(t);a=s.length}if(n>=a)return t;var u=n-gr(r);if(u<1)return r;var l=s?Wo(s,0,u).join(""):t.slice(0,u);if(o===i)return l+r;if(s&&(u+=l.length-u),Nc(o)){if(t.slice(u).search(o)){var c,f=l;o.global||(o=re(o.source,Qc(Wt.exec(o))+"g")),o.lastIndex=0;while(c=o.exec(f))var h=c.index;l=l.slice(0,h===i?u:h)}}else if(t.indexOf(Lo(o),u)!=u){var d=l.lastIndexOf(o);d>-1&&(l=l.slice(0,d))}return l+r}function bh(t){return t=Qc(t),t&&Ct.test(t)?t.replace(Tt,yr):t}var xh=pa((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),_h=da("toUpperCase");function wh(t,e,n){return t=Qc(t),e=n?i:e,e===i?ar(t)?_r(t):Ln(t):t.match(e)||[]}var Sh=_o((function(t,e){try{return bn(t,i,e)}catch(n){return bc(n)?n:new Ft(n)}})),Eh=Fa((function(t,e){return _n(e,(function(e){e=Os(e),pi(t,e,Dl(t[e],t))})),t}));function Th(t){var e=null==t?0:t.length,n=$a();return t=e?Cn(t,(function(t){if("function"!=typeof t[1])throw new oe(u);return[n(t[0]),t[1]]})):[],_o((function(n){var r=-1;while(++r<e){var i=t[r];if(bn(i[0],this,n))return bn(i[1],this,n)}}))}function kh(t){return yi(mi(t,d))}function Ch(t){return function(){return t}}function Mh(t,e){return null==t||t!==t?e:t}var Ah=ya(),Ih=ya(!0);function Oh(t){return t}function Dh(t){return eo("function"==typeof t?t:mi(t,d))}function Ph(t){return ao(mi(t,d))}function Lh(t,e){return so(t,mi(e,d))}var Nh=_o((function(t,e){return function(n){return Hi(n,t,e)}})),Rh=_o((function(t,e){return function(n){return Hi(t,n,e)}}));function jh(t,e,n){var r=Sf(e),i=Pi(e,r);null!=n||Ec(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Pi(e,Sf(e)));var o=!(Ec(n)&&"chain"in n)||!!n.chain,a=_c(t);return _n(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=ia(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Mn([this.value()],arguments))})})),t}function Fh(){return sn._===this&&(sn._=ve),this}function Bh(){}function zh(t){return t=Yc(t),_o((function(e){return co(e,t)}))}var Zh=wa(Cn),Uh=wa(Sn),Hh=wa(On);function $h(t){return us(t)?Zn(Os(t)):go(t)}function Gh(t){return function(e){return null==t?i:Li(t,e)}}var Wh=Ta(),Vh=Ta(!0);function Yh(){return[]}function Xh(){return!1}function qh(){return{}}function Kh(){return""}function Jh(){return!0}function Qh(t,e){if(t=Yc(t),t<1||t>R)return[];var n=B,r=Ze(t,B);e=$a(e),t-=B;var i=Wn(r,e);while(++n<t)e(n);return i}function td(t){return uc(t)?Cn(t,Os):Bc(t)?[t]:ia(Is(Qc(t)))}function ed(t){var e=++he;return Qc(t)+e}var nd=_a((function(t,e){return t+e}),0),rd=Ma("ceil"),id=_a((function(t,e){return t/e}),1),od=Ma("floor");function ad(t){return t&&t.length?Ti(t,Oh,ji):i}function sd(t,e){return t&&t.length?Ti(t,$a(e,2),ji):i}function ud(t){return zn(t,Oh)}function ld(t,e){return zn(t,$a(e,2))}function cd(t){return t&&t.length?Ti(t,Oh,io):i}function fd(t,e){return t&&t.length?Ti(t,$a(e,2),io):i}var hd=_a((function(t,e){return t*e}),1),dd=Ma("round"),pd=_a((function(t,e){return t-e}),0);function gd(t){return t&&t.length?Gn(t,Oh):0}function vd(t,e){return t&&t.length?Gn(t,$a(e,2)):0}return wr.after=Al,wr.ary=Il,wr.assign=tf,wr.assignIn=ef,wr.assignInWith=nf,wr.assignWith=rf,wr.at=of,wr.before=Ol,wr.bind=Dl,wr.bindAll=Eh,wr.bindKey=Pl,wr.castArray=Jl,wr.chain=Gu,wr.chunk=Ns,wr.compact=Rs,wr.concat=js,wr.cond=Th,wr.conforms=kh,wr.constant=Ch,wr.countBy=nl,wr.create=af,wr.curry=Ll,wr.curryRight=Nl,wr.debounce=Rl,wr.defaults=sf,wr.defaultsDeep=uf,wr.defer=jl,wr.delay=Fl,wr.difference=Fs,wr.differenceBy=Bs,wr.differenceWith=zs,wr.drop=Zs,wr.dropRight=Us,wr.dropRightWhile=Hs,wr.dropWhile=$s,wr.fill=Gs,wr.filter=il,wr.flatMap=sl,wr.flatMapDeep=ul,wr.flatMapDepth=ll,wr.flatten=Ys,wr.flattenDeep=Xs,wr.flattenDepth=qs,wr.flip=Bl,wr.flow=Ah,wr.flowRight=Ih,wr.fromPairs=Ks,wr.functions=gf,wr.functionsIn=vf,wr.groupBy=hl,wr.initial=tu,wr.intersection=eu,wr.intersectionBy=nu,wr.intersectionWith=ru,wr.invert=xf,wr.invertBy=_f,wr.invokeMap=pl,wr.iteratee=Dh,wr.keyBy=gl,wr.keys=Sf,wr.keysIn=Ef,wr.map=vl,wr.mapKeys=Tf,wr.mapValues=kf,wr.matches=Ph,wr.matchesProperty=Lh,wr.memoize=zl,wr.merge=Cf,wr.mergeWith=Mf,wr.method=Nh,wr.methodOf=Rh,wr.mixin=jh,wr.negate=Zl,wr.nthArg=zh,wr.omit=Af,wr.omitBy=If,wr.once=Ul,wr.orderBy=ml,wr.over=Zh,wr.overArgs=Hl,wr.overEvery=Uh,wr.overSome=Hh,wr.partial=$l,wr.partialRight=Gl,wr.partition=yl,wr.pick=Of,wr.pickBy=Df,wr.property=$h,wr.propertyOf=Gh,wr.pull=uu,wr.pullAll=lu,wr.pullAllBy=cu,wr.pullAllWith=fu,wr.pullAt=hu,wr.range=Wh,wr.rangeRight=Vh,wr.rearg=Wl,wr.reject=_l,wr.remove=du,wr.rest=Vl,wr.reverse=pu,wr.sampleSize=Sl,wr.set=Lf,wr.setWith=Nf,wr.shuffle=El,wr.slice=gu,wr.sortBy=Cl,wr.sortedUniq=wu,wr.sortedUniqBy=Su,wr.split=lh,wr.spread=Yl,wr.tail=Eu,wr.take=Tu,wr.takeRight=ku,wr.takeRightWhile=Cu,wr.takeWhile=Mu,wr.tap=Wu,wr.throttle=Xl,wr.thru=Vu,wr.toArray=Wc,wr.toPairs=Rf,wr.toPairsIn=jf,wr.toPath=td,wr.toPlainObject=Kc,wr.transform=Ff,wr.unary=ql,wr.union=Au,wr.unionBy=Iu,wr.unionWith=Ou,wr.uniq=Du,wr.uniqBy=Pu,wr.uniqWith=Lu,wr.unset=Bf,wr.unzip=Nu,wr.unzipWith=Ru,wr.update=zf,wr.updateWith=Zf,wr.values=Uf,wr.valuesIn=Hf,wr.without=ju,wr.words=wh,wr.wrap=Kl,wr.xor=Fu,wr.xorBy=Bu,wr.xorWith=zu,wr.zip=Zu,wr.zipObject=Uu,wr.zipObjectDeep=Hu,wr.zipWith=$u,wr.entries=Rf,wr.entriesIn=jf,wr.extend=ef,wr.extendWith=nf,jh(wr,wr),wr.add=nd,wr.attempt=Sh,wr.camelCase=Vf,wr.capitalize=Yf,wr.ceil=rd,wr.clamp=$f,wr.clone=Ql,wr.cloneDeep=ec,wr.cloneDeepWith=nc,wr.cloneWith=tc,wr.conformsTo=rc,wr.deburr=Xf,wr.defaultTo=Mh,wr.divide=id,wr.endsWith=qf,wr.eq=ic,wr.escape=Kf,wr.escapeRegExp=Jf,wr.every=rl,wr.find=ol,wr.findIndex=Ws,wr.findKey=lf,wr.findLast=al,wr.findLastIndex=Vs,wr.findLastKey=cf,wr.floor=od,wr.forEach=cl,wr.forEachRight=fl,wr.forIn=ff,wr.forInRight=hf,wr.forOwn=df,wr.forOwnRight=pf,wr.get=mf,wr.gt=oc,wr.gte=ac,wr.has=yf,wr.hasIn=bf,wr.head=Js,wr.identity=Oh,wr.includes=dl,wr.indexOf=Qs,wr.inRange=Gf,wr.invoke=wf,wr.isArguments=sc,wr.isArray=uc,wr.isArrayBuffer=lc,wr.isArrayLike=cc,wr.isArrayLikeObject=fc,wr.isBoolean=hc,wr.isBuffer=dc,wr.isDate=pc,wr.isElement=gc,wr.isEmpty=vc,wr.isEqual=mc,wr.isEqualWith=yc,wr.isError=bc,wr.isFinite=xc,wr.isFunction=_c,wr.isInteger=wc,wr.isLength=Sc,wr.isMap=kc,wr.isMatch=Cc,wr.isMatchWith=Mc,wr.isNaN=Ac,wr.isNative=Ic,wr.isNil=Dc,wr.isNull=Oc,wr.isNumber=Pc,wr.isObject=Ec,wr.isObjectLike=Tc,wr.isPlainObject=Lc,wr.isRegExp=Nc,wr.isSafeInteger=Rc,wr.isSet=jc,wr.isString=Fc,wr.isSymbol=Bc,wr.isTypedArray=zc,wr.isUndefined=Zc,wr.isWeakMap=Uc,wr.isWeakSet=Hc,wr.join=iu,wr.kebabCase=Qf,wr.last=ou,wr.lastIndexOf=au,wr.lowerCase=th,wr.lowerFirst=eh,wr.lt=$c,wr.lte=Gc,wr.max=ad,wr.maxBy=sd,wr.mean=ud,wr.meanBy=ld,wr.min=cd,wr.minBy=fd,wr.stubArray=Yh,wr.stubFalse=Xh,wr.stubObject=qh,wr.stubString=Kh,wr.stubTrue=Jh,wr.multiply=hd,wr.nth=su,wr.noConflict=Fh,wr.noop=Bh,wr.now=Ml,wr.pad=nh,wr.padEnd=rh,wr.padStart=ih,wr.parseInt=oh,wr.random=Wf,wr.reduce=bl,wr.reduceRight=xl,wr.repeat=ah,wr.replace=sh,wr.result=Pf,wr.round=dd,wr.runInContext=t,wr.sample=wl,wr.size=Tl,wr.snakeCase=uh,wr.some=kl,wr.sortedIndex=vu,wr.sortedIndexBy=mu,wr.sortedIndexOf=yu,wr.sortedLastIndex=bu,wr.sortedLastIndexBy=xu,wr.sortedLastIndexOf=_u,wr.startCase=ch,wr.startsWith=fh,wr.subtract=pd,wr.sum=gd,wr.sumBy=vd,wr.template=hh,wr.times=Qh,wr.toFinite=Vc,wr.toInteger=Yc,wr.toLength=Xc,wr.toLower=dh,wr.toNumber=qc,wr.toSafeInteger=Jc,wr.toString=Qc,wr.toUpper=ph,wr.trim=gh,wr.trimEnd=vh,wr.trimStart=mh,wr.truncate=yh,wr.unescape=bh,wr.uniqueId=ed,wr.upperCase=xh,wr.upperFirst=_h,wr.each=cl,wr.eachRight=fl,wr.first=Js,jh(wr,function(){var t={};return Oi(wr,(function(e,n){fe.call(wr.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),wr.VERSION=o,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){wr[t].placeholder=wr})),_n(["drop","take"],(function(t,e){Cr.prototype[t]=function(n){n=n===i?1:ze(Yc(n),0);var r=this.__filtered__&&!e?new Cr(this):this.clone();return r.__filtered__?r.__takeCount__=Ze(n,r.__takeCount__):r.__views__.push({size:Ze(n,B),type:t+(r.__dir__<0?"Right":"")}),r},Cr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),_n(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=n==D||n==L;Cr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:$a(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),_n(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Cr.prototype[t]=function(){return this[n](1).value()[0]}})),_n(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Cr.prototype[t]=function(){return this.__filtered__?new Cr(this):this[n](1)}})),Cr.prototype.compact=function(){return this.filter(Oh)},Cr.prototype.find=function(t){return this.filter(t).head()},Cr.prototype.findLast=function(t){return this.reverse().find(t)},Cr.prototype.invokeMap=_o((function(t,e){return"function"==typeof t?new Cr(this):this.map((function(n){return Hi(n,t,e)}))})),Cr.prototype.reject=function(t){return this.filter(Zl($a(t)))},Cr.prototype.slice=function(t,e){t=Yc(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Cr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(e=Yc(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},Cr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Cr.prototype.toArray=function(){return this.take(B)},Oi(Cr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=wr[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);o&&(wr.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,u=e instanceof Cr,l=s[0],c=u||uc(e),f=function(t){var e=o.apply(wr,Mn([t],s));return r&&h?e[0]:e};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var h=this.__chain__,d=!!this.__actions__.length,p=a&&!h,g=u&&!d;if(!a&&c){e=g?e:new Cr(this);var v=t.apply(e,s);return v.__actions__.push({func:Vu,args:[f],thisArg:i}),new kr(v,h)}return p&&g?t.apply(this,s):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),_n(["pop","push","shift","sort","splice","unshift"],(function(t){var e=ae[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);wr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(uc(i)?i:[],t)}return this[n]((function(n){return e.apply(uc(n)?n:[],t)}))}})),Oi(Cr.prototype,(function(t,e){var n=wr[e];if(n){var r=n.name+"";fe.call(ln,r)||(ln[r]=[]),ln[r].push({name:e,func:n})}})),ln[ba(i,b).name]=[{name:"wrapper",func:i}],Cr.prototype.clone=Mr,Cr.prototype.reverse=Ar,Cr.prototype.value=Ir,wr.prototype.at=Yu,wr.prototype.chain=Xu,wr.prototype.commit=qu,wr.prototype.next=Ku,wr.prototype.plant=Qu,wr.prototype.reverse=tl,wr.prototype.toJSON=wr.prototype.valueOf=wr.prototype.value=el,wr.prototype.first=wr.prototype.head,Ce&&(wr.prototype[Ce]=Ju),wr},Sr=wr();sn._=Sr,r=function(){return Sr}.call(e,n,e,t),r===i||(t.exports=r)}.call(this)},58751:function(t,e,n){var r,i,o;
/*!
 * Masonry v4.2.2
 * Cascading grid layout library
 * https://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */(function(a,s){i=[n(71794),n(66131)],r=s,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})(window,(function(t,e){"use strict";var n=t.create("masonry");n.compatOptions.fitWidth="isFitWidth";var r=n.prototype;return r._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},r.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],n=t&&t.element;this.columnWidth=n&&e(n).outerWidth||this.containerWidth}var r=this.columnWidth+=this.gutter,i=this.containerWidth+this.gutter,o=i/r,a=r-i%r,s=a&&a<1?"round":"floor";o=Math[s](o),this.cols=Math.max(o,1)},r.getContainerWidth=function(){var t=this._getOption("fitWidth"),n=t?this.element.parentNode:this.element,r=e(n);this.containerWidth=r&&r.innerWidth},r._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,n=e&&e<1?"round":"ceil",r=Math[n](t.size.outerWidth/this.columnWidth);r=Math.min(r,this.cols);for(var i=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",o=this[i](r,t),a={x:this.columnWidth*o.col,y:o.y},s=o.y+t.size.outerHeight,u=r+o.col,l=o.col;l<u;l++)this.colYs[l]=s;return a},r._getTopColPosition=function(t){var e=this._getTopColGroup(t),n=Math.min.apply(Math,e);return{col:e.indexOf(n),y:n}},r._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],n=this.cols+1-t,r=0;r<n;r++)e[r]=this._getColGroupY(r,t);return e},r._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var n=this.colYs.slice(t,t+e);return Math.max.apply(Math,n)},r._getHorizontalColPosition=function(t,e){var n=this.horizontalColIndex%this.cols,r=t>1&&n+t>this.cols;n=r?0:n;var i=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=i?n+t:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,t)}},r._manageStamp=function(t){var n=e(t),r=this._getElementOffset(t),i=this._getOption("originLeft"),o=i?r.left:r.right,a=o+n.outerWidth,s=Math.floor(o/this.columnWidth);s=Math.max(0,s);var u=Math.floor(a/this.columnWidth);u-=a%this.columnWidth?0:1,u=Math.min(this.cols-1,u);for(var l=this._getOption("originTop"),c=(l?r.top:r.bottom)+n.outerHeight,f=s;f<=u;f++)this.colYs[f]=Math.max(c,this.colYs[f])},r._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},r._getContainerFitWidth=function(){var t=0,e=this.cols;while(--e){if(0!==this.colYs[e])break;t++}return(this.cols-t)*this.columnWidth-this.gutter},r.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},n}))},58366:function(){},10652:function(t,e,n){var r,i,o;(function(a,s){i=[n(7158),n(66131)],r=s,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})(window,(function(t,e){"use strict";function n(t){for(var e in t)return!1;return null,!0}var r=document.documentElement.style,i="string"==typeof r.transition?"transition":"WebkitTransition",o="string"==typeof r.transform?"transform":"WebkitTransform",a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[i],s={transform:o,transition:i,transitionDuration:i+"Duration",transitionProperty:i+"Property",transitionDelay:i+"Delay"};function u(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var l=u.prototype=Object.create(t.prototype);function c(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}l.constructor=u,l._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.getSize=function(){this.size=e(this.element)},l.css=function(t){var e=this.element.style;for(var n in t){var r=s[n]||n;e[r]=t[n]}},l.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),r=t[e?"left":"right"],i=t[n?"top":"bottom"],o=parseFloat(r),a=parseFloat(i),s=this.layout.size;-1!=r.indexOf("%")&&(o=o/100*s.width),-1!=i.indexOf("%")&&(a=a/100*s.height),o=isNaN(o)?0:o,a=isNaN(a)?0:a,o-=e?s.paddingLeft:s.paddingRight,a-=n?s.paddingTop:s.paddingBottom,this.position.x=o,this.position.y=a},l.layoutPosition=function(){var t=this.layout.size,e={},n=this.layout._getOption("originLeft"),r=this.layout._getOption("originTop"),i=n?"paddingLeft":"paddingRight",o=n?"left":"right",a=n?"right":"left",s=this.position.x+t[i];e[o]=this.getXValue(s),e[a]="";var u=r?"paddingTop":"paddingBottom",l=r?"top":"bottom",c=r?"bottom":"top",f=this.position.y+t[u];e[l]=this.getYValue(f),e[c]="",this.css(e),this.emitEvent("layout",[this])},l.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},l.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},l._transitionTo=function(t,e){this.getPosition();var n=this.position.x,r=this.position.y,i=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),!i||this.isTransitioning){var o=t-n,a=e-r,s={};s.transform=this.getTranslate(o,a),this.transition({to:s,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},l.getTranslate=function(t,e){var n=this.layout._getOption("originLeft"),r=this.layout._getOption("originTop");return t=n?t:-t,e=r?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},l.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},l.moveTo=l._transitionTo,l.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},l._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},l.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var n in t.onTransitionEnd)e.onEnd[n]=t.onTransitionEnd[n];for(n in t.to)e.ingProperties[n]=!0,t.isCleaning&&(e.clean[n]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var f="opacity,"+c(o);l.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:f,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(a,this,!1)}},l.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},l.onotransitionend=function(t){this.ontransitionend(t)};var h={"-webkit-transform":"transform"};l.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,r=h[t.propertyName]||t.propertyName;if(delete e.ingProperties[r],n(e.ingProperties)&&this.disableTransition(),r in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[r]),r in e.onEnd){var i=e.onEnd[r];i.call(this),delete e.onEnd[r]}this.emitEvent("transitionEnd",[this])}},l.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},l._removeStyles=function(t){var e={};for(var n in t)e[n]="";this.css(e)};var d={transitionProperty:"",transitionDuration:"",transitionDelay:""};return l.removeTransitionStyles=function(){this.css(d)},l.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},l.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},l.remove=function(){i&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},l.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},n=this.getHideRevealTransitionEndProperty("visibleStyle");e[n]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},l.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},l.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var n in e)return n},l.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},n=this.getHideRevealTransitionEndProperty("hiddenStyle");e[n]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},l.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},l.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},u}))},71794:function(t,e,n){var r,i;
/*!
 * Outlayer v2.1.1
 * the brains and guts of a layout library
 * MIT license
 */(function(o,a){"use strict";r=[n(7158),n(66131),n(99047),n(10652)],i=function(t,e,n,r){return a(o,t,e,n,r)}.apply(e,r),void 0===i||(t.exports=i)})(window,(function(t,e,n,r,i){"use strict";var o=t.console,a=t.jQuery,s=function(){},u=0,l={};function c(t,e){var n=r.getQueryElement(t);if(n){this.element=n,a&&(this.$element=a(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(e);var i=++u;this.element.outlayerGUID=i,l[i]=this,this._create();var s=this._getOption("initLayout");s&&this.layout()}else o&&o.error("Bad element for "+this.constructor.namespace+": "+(n||t))}c.namespace="outlayer",c.Item=i,c.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=c.prototype;function h(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}r.extend(f,e.prototype),f.option=function(t){r.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},c.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),r.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),n=this.constructor.Item,r=[],i=0;i<e.length;i++){var o=e[i],a=new n(o,this);r.push(a)}return r},f._filterFindItemElements=function(t){return r.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map((function(t){return t.element}))},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=n(this.element)},f._getMeasurement=function(t,e){var r,i=this.options[t];i?("string"==typeof i?r=this.element.querySelector(i):i instanceof HTMLElement&&(r=i),this[t]=r?n(r)[e]:i):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter((function(t){return!t.isIgnored}))},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var n=[];t.forEach((function(t){var r=this._getItemLayoutPosition(t);r.item=t,r.isInstant=e||t.isLayoutInstant,n.push(r)}),this),this._processLayoutQueue(n)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach((function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)}),this)},f.updateStagger=function(){var t=this.options.stagger;if(null!==t&&void 0!==t)return this.stagger=p(t),this.stagger;this.stagger=0},f._positionItem=function(t,e,n,r,i){r?t.goTo(e,n):(t.stagger(i*this.stagger),t.moveTo(e,n))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=s,f._setContainerMeasure=function(t,e){if(void 0!==t){var n=this.size;n.isBorderBox&&(t+=e?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){var n=this;function r(){n.dispatchEvent(t+"Complete",null,[e])}var i=e.length;if(e&&i){var o=0;e.forEach((function(e){e.once(t,a)}))}else r();function a(){o++,o==i&&r()}},f.dispatchEvent=function(t,e,n){var r=e?[e].concat(n):n;if(this.emitEvent(t,r),a)if(this.$element=this.$element||a(this.element),e){var i=a.Event(e);i.type=t,this.$element.trigger(i,n)}else this.$element.trigger(t,n)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach((function(t){r.removeFrom(this.stamps,t),this.unignore(t)}),this)},f._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=r.makeArray(t),t},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=s,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),r=this._boundingRect,i=n(t),o={left:e.left-r.left-i.marginLeft,top:e.top-r.top-i.marginTop,right:r.right-e.right-i.marginRight,bottom:r.bottom-e.bottom-i.marginBottom};return o},f.handleEvent=r.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},r.debounceMethod(c,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=n(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var n=this.items.slice(0);this.items=e.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(n)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach((function(t,n){t.stagger(n*e),t.reveal()}))}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach((function(t,n){t.stagger(n*e),t.hide()}))}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var n=this.items[e];if(n.element==t)return n}},f.getItems=function(t){t=r.makeArray(t);var e=[];return t.forEach((function(t){var n=this.getItem(t);n&&e.push(n)}),this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach((function(t){t.remove(),r.removeFrom(this.items,t)}),this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach((function(t){t.destroy()})),this.unbindResize();var e=this.element.outlayerGUID;delete l[e],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},c.data=function(t){t=r.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&l[e]},c.create=function(t,e){var n=h(c);return n.defaults=r.extend({},c.defaults),r.extend(n.defaults,e),n.compatOptions=r.extend({},c.compatOptions),n.namespace=t,n.data=c.data,n.Item=h(i),r.htmlInit(n,t),a&&a.bridget&&a.bridget(t,n),n};var d={ms:1,s:1e3};function p(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),n=e&&e[1],r=e&&e[2];if(!n.length)return 0;n=parseFloat(n);var i=d[r]||1;return n*i}return c.Item=i,c}))},81550:function(t){(function(e,n){t.exports=n()})(0,(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){return"undefined"!==typeof atob?atob(t):"base64:"+t}function i(t){var e=new Error("(regl) "+t);throw console.error(e),e}function o(t,e){t||i(e)}function a(t){return t?": "+t:""}function s(t,e,n){t in e||i("unknown parameter ("+t+")"+a(n)+". possible values: "+Object.keys(e).join())}function u(e,n){t(e)||i("invalid parameter type"+a(n)+". must be a typed array")}function l(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"undefined"===typeof t;case"symbol":return"symbol"===typeof t}}function c(t,e,n){l(t,e)||i("invalid parameter type"+a(n)+". expected "+e+", got "+typeof t)}function f(t,e){t>=0&&(0|t)===t||i("invalid parameter type, ("+t+")"+a(e)+". must be a nonnegative integer")}function h(t,e,n){e.indexOf(t)<0&&i("invalid value"+a(n)+". must be one of: "+e)}var d=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function p(t){Object.keys(t).forEach((function(t){d.indexOf(t)<0&&i('invalid regl constructor argument "'+t+'". must be one of '+d)}))}function g(t,e){t+="";while(t.length<e)t=" "+t;return t}function v(){this.name="unknown",this.lines=[],this.index={},this.hasErrors=!1}function m(t,e){this.number=t,this.line=e,this.errors=[]}function y(t,e,n){this.file=t,this.line=e,this.message=n}function b(){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 x(){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 _(t,e){var n=t.split("\n"),i=1,o=0,a={unknown:new v,0:new v};a.unknown.name=a[0].name=e||b(),a.unknown.lines.push(new m(0,""));for(var s=0;s<n.length;++s){var u=n[s],l=/^\s*#\s*(\w+)\s+(.+)\s*$/.exec(u);if(l)switch(l[1]){case"line":var c=/(\d+)(\s+\d+)?/.exec(l[2]);c&&(i=0|c[1],c[2]&&(o=0|c[2],o in a||(a[o]=new v)));break;case"define":var f=/SHADER_NAME(_B64)?\s+(.*)$/.exec(l[2]);f&&(a[o].name=f[1]?r(f[2]):f[2]);break}a[o].lines.push(new m(i++,u))}return Object.keys(a).forEach((function(t){var e=a[t];e.lines.forEach((function(t){e.index[t.number]=t}))})),a}function w(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 y(0|n[1],0|n[2],n[3].trim())):t.length>0&&e.push(new y("unknown",0,t))}})),e}function S(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)}))}function E(t,e,r,i,a){if(!t.getShaderParameter(e,t.COMPILE_STATUS)){var s=t.getShaderInfoLog(e),u=i===t.FRAGMENT_SHADER?"fragment":"vertex";O(r,"string",u+" shader source must be a string",a);var l=_(r,a),c=w(s);S(l,c),Object.keys(l).forEach((function(t){var e=l[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(g(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="=";break}e=Math.max(t.line.indexOf(s,e),0)}else e=0;o(g("| ",6)),o(g("^^^",e+3)+n,"font-weight:bold"),o(g("| ",6)),o(i+n,"font-weight:bold")})),o(g("| ",6)+n)}else o(g(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||"")}})),o.raise("Error compiling "+u+" shader, "+l[0].name)}}function T(t,e,r,i,a){if(!t.getProgramParameter(e,t.LINK_STATUS)){var s=t.getProgramInfoLog(e),u=_(r,a),l=_(i,a),c='Error linking program with vertex shader, "'+l[0].name+'", and fragment shader "'+u[0].name+'"';"undefined"!==typeof document?console.log("%c"+c+n+"%c"+s,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(c+n+s),o.raise(c)}}function k(t){t._commandRef=b()}function C(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}))}k(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}function M(t,e){var n=x();i(t+" in command "+(e||b())+("unknown"===n?"":" called from "+n))}function A(t,e,n){t||M(e,n||b())}function I(t,e,n,r){t in e||M("unknown parameter ("+t+")"+a(n)+". possible values: "+Object.keys(e).join(),r||b())}function O(t,e,n,r){l(t,e)||M("invalid parameter type"+a(n)+". expected "+e+", got "+typeof t,r||b())}function D(t){t()}function P(t,e,n){t.texture?h(t.texture._texture.internalformat,e,"unsupported texture format for attachment"):h(t.renderbuffer._renderbuffer.format,n,"unsupported renderbuffer format for attachment")}var L=33071,N=9728,R=9984,j=9985,F=9986,B=9987,z=5120,Z=5121,U=5122,H=5123,$=5124,G=5125,W=5126,V=32819,Y=32820,X=33635,q=34042,K=36193,J={};function Q(t,e){return t===Y||t===V||t===X?2:t===q?4:J[t]*e}function tt(t){return!(t&t-1)&&!!t}function et(t,e,n){var r,i=e.width,a=e.height,s=e.channels;o(i>0&&i<=n.maxTextureSize&&a>0&&a<=n.maxTextureSize,"invalid texture shape"),t.wrapS===L&&t.wrapT===L||o(tt(i)&&tt(a),"incompatible wrap mode for texture, both width and height must be power of 2"),1===e.mipmask?1!==i&&1!==a&&o(t.minFilter!==R&&t.minFilter!==F&&t.minFilter!==j&&t.minFilter!==B,"min filter requires mipmap"):(o(tt(i)&&tt(a),"texture must be a square power of 2 to support mipmapping"),o(e.mipmask===(i<<1)-1,"missing or incomplete mipmap data")),e.type===W&&(n.extensions.indexOf("oes_texture_float_linear")<0&&o(t.minFilter===N&&t.magFilter===N,"filter not supported, must enable oes_texture_float_linear"),o(!t.genMipmaps,"mipmap generation not supported with float textures"));var u=e.images;for(r=0;r<16;++r)if(u[r]){var l=i>>r,c=a>>r;o(e.mipmask&1<<r,"missing mipmap data");var f=u[r];if(o(f.width===l&&f.height===c,"invalid shape for mip images"),o(f.format===e.format&&f.internalformat===e.internalformat&&f.type===e.type,"incompatible type for mip image"),f.compressed);else if(f.data){var h=Math.ceil(Q(f.type,s)*l/f.unpackAlignment)*f.unpackAlignment;o(f.data.byteLength===h*c,"invalid data for image, buffer size is inconsistent with image format")}else f.element||f.copy}else t.genMipmaps||o(0===(e.mipmask&1<<r),"extra mipmap data");e.compressed&&o(!t.genMipmaps,"mipmap generation for compressed images not supported")}function nt(t,e,n,r){var i=t.width,a=t.height,s=t.channels;o(i>0&&i<=r.maxTextureSize&&a>0&&a<=r.maxTextureSize,"invalid texture shape"),o(i===a,"cube map must be square"),o(e.wrapS===L&&e.wrapT===L,"wrap mode not supported by cube map");for(var u=0;u<n.length;++u){var l=n[u];o(l.width===i&&l.height===a,"inconsistent cube map face shape"),e.genMipmaps&&(o(!l.compressed,"can not generate mipmap for compressed textures"),o(1===l.mipmask,"can not specify mipmaps and generate mipmaps"));for(var c=l.images,f=0;f<16;++f){var h=c[f];if(h){var d=i>>f,p=a>>f;o(l.mipmask&1<<f,"missing mipmap data"),o(h.width===d&&h.height===p,"invalid shape for mip images"),o(h.format===t.format&&h.internalformat===t.internalformat&&h.type===t.type,"incompatible type for mip image"),h.compressed||(h.data?o(h.data.byteLength===d*p*Math.max(Q(h.type,s),h.unpackAlignment),"invalid data for image, buffer size is inconsistent with image format"):h.element||h.copy)}}}}J[z]=J[Z]=1,J[U]=J[H]=J[K]=J[X]=J[V]=J[Y]=2,J[$]=J[G]=J[W]=J[q]=4;var rt=e(o,{optional:D,raise:i,commandRaise:M,command:A,parameter:s,commandParameter:I,constructor:p,type:c,commandType:O,isTypedArray:u,nni:f,oneOf:h,shaderError:E,linkError:T,callSite:x,saveCommandRef:k,saveDrawInfo:C,framebufferFormat:P,guessCommand:b,texture2D:et,textureCube:nt}),it=0,ot=0,at=5,st=6;function ut(t,e){this.id=it++,this.type=t,this.data=e}function lt(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function ct(t){if(0===t.length)return[];var e=t.charAt(0),n=t.charAt(t.length-1);if(t.length>1&&e===n&&('"'===e||"'"===e))return['"'+lt(t.substr(1,t.length-2))+'"'];var r=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(t);if(r)return ct(t.substr(0,r.index)).concat(ct(r[1])).concat(ct(t.substr(r.index+r[0].length)));var i=t.split(".");if(1===i.length)return['"'+lt(t)+'"'];for(var o=[],a=0;a<i.length;++a)o=o.concat(ct(i[a]));return o}function ft(t){return"["+ct(t).join("][")+"]"}function ht(t,e){return new ut(t,ft(e+""))}function dt(t){return"function"===typeof t&&!t._reglType||t instanceof ut}function pt(t,e){return"function"===typeof t?new ut(ot,t):"number"===typeof t||"boolean"===typeof t?new ut(at,t):Array.isArray(t)?new ut(st,t.map(((t,n)=>pt(t,e+"["+n+"]")))):t instanceof ut?t:void rt(!1,"invalid option type in uniform "+e)}var gt={DynamicVariable:ut,define:ht,isDynamic:dt,unbox:pt,accessor:ft},vt={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},mt="undefined"!==typeof performance&&performance.now?function(){return performance.now()}:function(){return+new Date};function yt(){var t={"":0},e=[""];return{id:function(n){var r=t[n];return r||(r=t[n]=e.length,e.push(n),r)},str:function(t){return e[t]}}}function bt(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"})}function s(){i?i.disconnect():window.removeEventListener("resize",a),t.removeChild(o)}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)})),i.observe(t)):window.addEventListener("resize",a,!1),a(),{canvas:o,onDestroy:s}}function xt(t,e){function n(n){try{return t.getContext(n,e)}catch(r){return null}}return n("webgl")||n("experimental-webgl")||n("webgl-experimental")}function _t(t){return"string"===typeof t.nodeName&&"function"===typeof t.appendChild&&"function"===typeof t.getBoundingClientRect}function wt(t){return"function"===typeof t.drawArrays||"function"===typeof t.drawElements}function St(t){return"string"===typeof t?t.split():(rt(Array.isArray(t),"invalid extension array"),t)}function Et(t){return"string"===typeof t?(rt("undefined"!==typeof document,"not supported outside of DOM"),document.querySelector(t)):t}function Tt(t){var e,n,r,i,o=t||{},a={},s=[],u=[],l="undefined"===typeof window?1:window.devicePixelRatio,c=!1,f=function(t){t&&rt.raise(t)},h=function(){};if("string"===typeof o?(rt("undefined"!==typeof document,"selector queries only supported in DOM enviroments"),e=document.querySelector(o),rt(e,"invalid query string for element")):"object"===typeof o?_t(o)?e=o:wt(o)?(i=o,r=i.canvas):(rt.constructor(o),"gl"in o?i=o.gl:"canvas"in o?r=Et(o.canvas):"container"in o&&(n=Et(o.container)),"attributes"in o&&(a=o.attributes,rt.type(a,"object","invalid context attributes")),"extensions"in o&&(s=St(o.extensions)),"optionalExtensions"in o&&(u=St(o.optionalExtensions)),"onDone"in o&&(rt.type(o.onDone,"function","invalid or missing onDone callback"),f=o.onDone),"profile"in o&&(c=!!o.profile),"pixelRatio"in o&&(l=+o.pixelRatio,rt(l>0,"invalid pixel ratio"))):rt.raise("invalid arguments to regl"),e&&("canvas"===e.nodeName.toLowerCase()?r=e:n=e),!i){if(!r){rt("undefined"!==typeof document,"must manually specify webgl context outside of DOM environments");var d=bt(n||document.body,f,l);if(!d)return null;r=d.canvas,h=d.onDestroy}void 0===a.premultipliedAlpha&&(a.premultipliedAlpha=!0),i=xt(r,a)}return i?{gl:i,canvas:r,container:n,extensions:s,optionalExtensions:u,pixelRatio:l,profile:c,onDone:f,onDestroy:h}:(h(),f("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function kt(t,e){var n={};function r(e){rt.type(e,"string","extension name must be string");var r,i=e.toLowerCase();try{r=n[i]=t.getExtension(i)}catch(o){}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)}))}}}function Ct(t,e){for(var n=Array(t),r=0;r<t;++r)n[r]=e(r);return n}var Mt=5120,At=5121,It=5122,Ot=5123,Dt=5124,Pt=5125,Lt=5126;function Nt(t){for(var e=16;e<=1<<28;e*=16)if(t<=e)return e;return 0}function Rt(t){var e,n;return e=(t>65535)<<4,t>>>=e,n=(t>255)<<3,t>>>=n,e|=n,n=(t>15)<<2,t>>>=n,e|=n,n=(t>3)<<1,t>>>=n,e|=n,e|t>>1}function jt(){var t=Ct(8,(function(){return[]}));function e(e){var n=Nt(e),r=t[Rt(n)>>2];return r.length>0?r.pop():new ArrayBuffer(n)}function n(e){t[Rt(e.byteLength)>>2].push(e)}function r(t,n){var r=null;switch(t){case Mt:r=new Int8Array(e(n),0,n);break;case At:r=new Uint8Array(e(n),0,n);break;case It:r=new Int16Array(e(2*n),0,n);break;case Ot:r=new Uint16Array(e(2*n),0,n);break;case Dt:r=new Int32Array(e(4*n),0,n);break;case Pt:r=new Uint32Array(e(4*n),0,n);break;case Lt:r=new Float32Array(e(4*n),0,n);break;default:return null}return r.length!==n?r.subarray(0,n):r}function i(t){n(t.buffer)}return{alloc:e,free:n,allocType:r,freeType:i}}var Ft=jt();Ft.zero=jt();var Bt=3408,zt=3410,Zt=3411,Ut=3412,Ht=3413,$t=3414,Gt=3415,Wt=33901,Vt=33902,Yt=3379,Xt=3386,qt=34921,Kt=36347,Jt=36348,Qt=35661,te=35660,ee=34930,ne=36349,re=34076,ie=34024,oe=7936,ae=7937,se=7938,ue=35724,le=34047,ce=36063,fe=34852,he=3553,de=34067,pe=34069,ge=33984,ve=6408,me=5126,ye=5121,be=36160,xe=36053,_e=36064,we=16384,Se=function(t,e){var n=1;e.ext_texture_filter_anisotropic&&(n=t.getParameter(le));var r=1,i=1;e.webgl_draw_buffers&&(r=t.getParameter(fe),i=t.getParameter(ce));var o=!!e.oes_texture_float;if(o){var a=t.createTexture();t.bindTexture(he,a),t.texImage2D(he,0,ve,1,1,0,ve,me,null);var s=t.createFramebuffer();if(t.bindFramebuffer(be,s),t.framebufferTexture2D(be,_e,he,a,0),t.bindTexture(he,null),t.checkFramebufferStatus(be)!==xe)o=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(we);var u=Ft.allocType(me,4);t.readPixels(0,0,1,1,ve,me,u),t.getError()?o=!1:(t.deleteFramebuffer(s),t.deleteTexture(a),o=1===u[0]),Ft.freeType(u)}}var l="undefined"!==typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),c=!0;if(!l){var f=t.createTexture(),h=Ft.allocType(ye,36);t.activeTexture(ge),t.bindTexture(de,f),t.texImage2D(pe,0,ve,3,3,0,ve,ye,h),Ft.freeType(h),t.bindTexture(de,null),t.deleteTexture(f),c=!t.getError()}return{colorBits:[t.getParameter(zt),t.getParameter(Zt),t.getParameter(Ut),t.getParameter(Ht)],depthBits:t.getParameter($t),stencilBits:t.getParameter(Gt),subpixelBits:t.getParameter(Bt),extensions:Object.keys(e).filter((function(t){return!!e[t]})),maxAnisotropic:n,maxDrawbuffers:r,maxColorAttachments:i,pointSizeDims:t.getParameter(Wt),lineWidthDims:t.getParameter(Vt),maxViewportDims:t.getParameter(Xt),maxCombinedTextureUnits:t.getParameter(Qt),maxCubeMapSize:t.getParameter(re),maxRenderbufferSize:t.getParameter(ie),maxTextureUnits:t.getParameter(ee),maxTextureSize:t.getParameter(Yt),maxAttributes:t.getParameter(qt),maxVertexUniforms:t.getParameter(Kt),maxVertexTextureUnits:t.getParameter(te),maxVaryingVectors:t.getParameter(Jt),maxFragmentUniforms:t.getParameter(ne),glsl:t.getParameter(ue),renderer:t.getParameter(ae),vendor:t.getParameter(oe),version:t.getParameter(se),readFloat:o,npotTextureCube:c}};function Ee(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 Te=function(t){return Object.keys(t).map((function(e){return t[e]}))},ke={shape:De,flatten:Oe};function Ce(t,e,n){for(var r=0;r<e;++r)n[r]=t[r]}function Me(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]}function Ae(t,e,n,r,i,o){for(var a=o,s=0;s<e;++s)for(var u=t[s],l=0;l<n;++l)for(var c=u[l],f=0;f<r;++f)i[a++]=c[f]}function Ie(t,e,n,r,i){for(var o=1,a=n+1;a<e.length;++a)o*=e[a];var s=e[n];if(e.length-n===4){var u=e[n+1],l=e[n+2],c=e[n+3];for(a=0;a<s;++a)Ae(t[a],u,l,c,r,i),i+=o}else for(a=0;a<s;++a)Ie(t[a],e,n+1,r,i),i+=o}function Oe(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||Ft.allocType(n,i);switch(e.length){case 0:break;case 1:Ce(t,e[0],a);break;case 2:Me(t,e[0],e[1],a);break;case 3:Ae(t,e[0],e[1],e[2],a,0);break;default:Ie(t,e,0,a,0)}return a}function De(t){for(var e=[],n=t;n.length;n=n[0])e.push(n.length);return e}var Pe={"[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},Le=5120,Ne=5122,Re=5124,je=5121,Fe=5123,Be=5125,ze=5126,Ze=5126,Ue={int8:Le,int16:Ne,int32:Re,uint8:je,uint16:Fe,uint32:Be,float:ze,float32:Ze},He=35048,$e=35040,Ge={dynamic:He,stream:$e,static:35044},We=ke.flatten,Ve=ke.shape,Ye=35044,Xe=35040,qe=5121,Ke=5126,Je=[];function Qe(t){return 0|Pe[Object.prototype.toString.call(t)]}function tn(t,e){for(var n=0;n<e.length;++n)t[n]=e[n]}function en(t,e,n,r,i,o,a){for(var s=0,u=0;u<n;++u)for(var l=0;l<r;++l)t[s++]=e[i*u+o*l+a]}function nn(e,n,r,i){var o=0,a={};function s(t){this.id=o++,this.buffer=e.createBuffer(),this.type=t,this.usage=Ye,this.byteLength=0,this.dimension=1,this.dtype=qe,this.persistentData=null,r.profile&&(this.stats={size:0})}s.prototype.bind=function(){e.bindBuffer(this.type,this.buffer)},s.prototype.destroy=function(){d(this)};var u=[];function l(t,e){var n=u.pop();return n||(n=new s(t)),n.bind(),h(n,e,Xe,0,1,!1),n}function c(t){u.push(t)}function f(t,n,r){t.byteLength=n.byteLength,e.bufferData(t.type,n,r)}function h(e,n,r,i,o,a){var s,u;if(e.usage=r,Array.isArray(n)){if(e.dtype=i||Ke,n.length>0)if(Array.isArray(n[0])){s=Ve(n);for(var l=1,c=1;c<s.length;++c)l*=s[c];e.dimension=l,u=We(n,s,e.dtype),f(e,u,r),a?e.persistentData=u:Ft.freeType(u)}else if("number"===typeof n[0]){e.dimension=o;var h=Ft.allocType(e.dtype,n.length);tn(h,n),f(e,h,r),a?e.persistentData=h:Ft.freeType(h)}else t(n[0])?(e.dimension=n[0].length,e.dtype=i||Qe(n[0])||Ke,u=We(n,[n.length,n[0].length],e.dtype),f(e,u,r),a?e.persistentData=u:Ft.freeType(u)):rt.raise("invalid buffer data")}else if(t(n))e.dtype=i||Qe(n),e.dimension=o,f(e,n,r),a&&(e.persistentData=new Uint8Array(new Uint8Array(n.buffer)));else if(Ee(n)){s=n.shape;var d=n.stride,p=n.offset,g=0,v=0,m=0,y=0;1===s.length?(g=s[0],v=1,m=d[0],y=0):2===s.length?(g=s[0],v=s[1],m=d[0],y=d[1]):rt.raise("invalid shape"),e.dtype=i||Qe(n.data)||Ke,e.dimension=v;var b=Ft.allocType(e.dtype,g*v);en(b,n.data,g,v,m,y,p),f(e,b,r),a?e.persistentData=b:Ft.freeType(b)}else n instanceof ArrayBuffer?(e.dtype=qe,e.dimension=o,f(e,n,r),a&&(e.persistentData=new Uint8Array(new Uint8Array(n)))):rt.raise("invalid buffer data")}function d(t){n.bufferCount--,i(t);var r=t.buffer;rt(r,"buffer must not be deleted already"),e.deleteBuffer(r),t.buffer=null,delete a[t.id]}function p(i,o,u,l){n.bufferCount++;var c=new s(o);function f(n){var i=Ye,o=null,a=0,s=0,u=1;return Array.isArray(n)||t(n)||Ee(n)||n instanceof ArrayBuffer?o=n:"number"===typeof n?a=0|n:n&&(rt.type(n,"object","buffer arguments must be an object, a number or an array"),"data"in n&&(rt(null===o||Array.isArray(o)||t(o)||Ee(o),"invalid data for buffer"),o=n.data),"usage"in n&&(rt.parameter(n.usage,Ge,"invalid buffer usage"),i=Ge[n.usage]),"type"in n&&(rt.parameter(n.type,Ue,"invalid buffer type"),s=Ue[n.type]),"dimension"in n&&(rt.type(n.dimension,"number","invalid dimension"),u=0|n.dimension),"length"in n&&(rt.nni(a,"buffer length must be a nonnegative integer"),a=0|n.length)),c.bind(),o?h(c,o,i,s,u,l):(a&&e.bufferData(c.type,a,i),c.dtype=s||qe,c.usage=i,c.dimension=u,c.byteLength=a),r.profile&&(c.stats.size=c.byteLength*Je[c.dtype]),f}function p(t,n){rt(n+t.byteLength<=c.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 "+c.byteLength),e.bufferSubData(c.type,n,t)}function g(e,n){var r,i=0|(n||0);if(c.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=Ft.allocType(c.dtype,e.length);tn(o,e),p(o,i),Ft.freeType(o)}else if(Array.isArray(e[0])||t(e[0])){r=Ve(e);var a=We(e,r,c.dtype);p(a,i),Ft.freeType(a)}else rt.raise("invalid buffer data")}else if(Ee(e)){r=e.shape;var s=e.stride,u=0,l=0,h=0,d=0;1===r.length?(u=r[0],l=1,h=s[0],d=0):2===r.length?(u=r[0],l=r[1],h=s[0],d=s[1]):rt.raise("invalid shape");var g=Array.isArray(e.data)?c.dtype:Qe(e.data),v=Ft.allocType(g,u*l);en(v,e.data,u,l,h,d,e.offset),p(v,i),Ft.freeType(v)}else rt.raise("invalid data for buffer subdata");return f}return a[c.id]=c,u||f(i),f._reglType="buffer",f._buffer=c,f.subdata=g,r.profile&&(f.stats=c.stats),f.destroy=function(){d(c)},f}function g(){Te(a).forEach((function(t){t.buffer=e.createBuffer(),e.bindBuffer(t.type,t.buffer),e.bufferData(t.type,t.persistentData||t.byteLength,t.usage)}))}return r.profile&&(n.getTotalBufferSize=function(){var t=0;return Object.keys(a).forEach((function(e){t+=a[e].stats.size})),t}),{create:p,createStream:l,destroyStream:c,clear:function(){Te(a).forEach(d),u.forEach(d)},getBuffer:function(t){return t&&t._buffer instanceof s?t._buffer:null},restore:g,_initBuffer:h}}Je[5120]=1,Je[5122]=2,Je[5124]=4,Je[5121]=1,Je[5123]=2,Je[5125]=4,Je[5126]=4;var rn=0,on=0,an=1,sn=1,un=4,ln=4,cn={points:rn,point:on,lines:an,line:sn,triangles:un,triangle:ln,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},fn=0,hn=1,dn=4,pn=5120,gn=5121,vn=5122,mn=5123,yn=5124,bn=5125,xn=34963,_n=35040,wn=35044;function Sn(e,n,r,i){var o={},a=0,s={uint8:gn,uint16:mn};function u(t){this.id=a++,o[this.id]=this,this.buffer=t,this.primType=dn,this.vertCount=0,this.type=0}n.oes_element_index_uint&&(s.uint32=bn),u.prototype.bind=function(){this.buffer.bind()};var l=[];function c(t){var e=l.pop();return e||(e=new u(r.create(null,xn,!0,!1)._buffer)),h(e,t,_n,-1,-1,0,0),e}function f(t){l.push(t)}function h(i,o,a,s,u,l,c){var f;if(i.buffer.bind(),o){var h=c;c||t(o)&&(!Ee(o)||t(o.data))||(h=n.oes_element_index_uint?bn:mn),r._initBuffer(i.buffer,o,a,h,3)}else e.bufferData(xn,l,a),i.buffer.dtype=f||gn,i.buffer.usage=a,i.buffer.dimension=3,i.buffer.byteLength=l;if(f=c,!c){switch(i.buffer.dtype){case gn:case pn:f=gn;break;case mn:case vn:f=mn;break;case bn:case yn:f=bn;break;default:rt.raise("unsupported type for element array")}i.buffer.dtype=f}i.type=f,rt(f!==bn||!!n.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var d=u;d<0&&(d=i.buffer.byteLength,f===mn?d>>=1:f===bn&&(d>>=2)),i.vertCount=d;var p=s;if(s<0){p=dn;var g=i.buffer.dimension;1===g&&(p=fn),2===g&&(p=hn),3===g&&(p=dn)}i.primType=p}function d(t){i.elementsCount--,rt(null!==t.buffer,"must not double destroy elements"),delete o[t.id],t.buffer.destroy(),t.buffer=null}function p(e,n){var o=r.create(null,xn,!0),a=new u(o._buffer);function l(e){if(e)if("number"===typeof e)o(e),a.primType=dn,a.vertCount=0|e,a.type=gn;else{var n=null,r=wn,i=-1,u=-1,c=0,f=0;Array.isArray(e)||t(e)||Ee(e)?n=e:(rt.type(e,"object","invalid arguments for elements"),"data"in e&&(n=e.data,rt(Array.isArray(n)||t(n)||Ee(n),"invalid data for element buffer")),"usage"in e&&(rt.parameter(e.usage,Ge,"invalid element buffer usage"),r=Ge[e.usage]),"primitive"in e&&(rt.parameter(e.primitive,cn,"invalid element buffer primitive"),i=cn[e.primitive]),"count"in e&&(rt("number"===typeof e.count&&e.count>=0,"invalid vertex count for elements"),u=0|e.count),"type"in e&&(rt.parameter(e.type,s,"invalid buffer type"),f=s[e.type]),"length"in e?c=0|e.length:(c=u,f===mn||f===vn?c*=2:f!==bn&&f!==yn||(c*=4))),h(a,n,r,i,u,c,f)}else o(),a.primType=dn,a.vertCount=0,a.type=gn;return l}return i.elementsCount++,l(e),l._reglType="elements",l._elements=a,l.subdata=function(t,e){return o.subdata(t,e),l},l.destroy=function(){d(a)},l}return{create:p,createStream:c,destroyStream:f,getElements:function(t){return"function"===typeof t&&t._elements instanceof u?t._elements:null},clear:function(){Te(o).forEach(d)}}}var En=new Float32Array(1),Tn=new Uint32Array(En.buffer),kn=5123;function Cn(t){for(var e=Ft.allocType(kn,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{En[0]=t[n];var r=Tn[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 Mn(e){return Array.isArray(e)||t(e)}var An=function(t){return!(t&t-1)&&!!t},In=34467,On=3553,Dn=34067,Pn=34069,Ln=6408,Nn=6406,Rn=6407,jn=6409,Fn=6410,Bn=32854,zn=32855,Zn=36194,Un=32819,Hn=32820,$n=33635,Gn=34042,Wn=6402,Vn=34041,Yn=35904,Xn=35906,qn=36193,Kn=33776,Jn=33777,Qn=33778,tr=33779,er=35986,nr=35987,rr=34798,ir=35840,or=35841,ar=35842,sr=35843,ur=36196,lr=5121,cr=5123,fr=5125,hr=5126,dr=10242,pr=10243,gr=10497,vr=33071,mr=33648,yr=10240,br=10241,xr=9728,_r=9729,wr=9984,Sr=9985,Er=9986,Tr=9987,kr=33170,Cr=4352,Mr=4353,Ar=4354,Ir=34046,Or=3317,Dr=37440,Pr=37441,Lr=37443,Nr=37444,Rr=33984,jr=[wr,Er,Sr,Tr],Fr=[0,jn,Fn,Rn,Ln],Br={};function zr(t){return"[object "+t+"]"}Br[jn]=Br[Nn]=Br[Wn]=1,Br[Vn]=Br[Fn]=2,Br[Rn]=Br[Yn]=3,Br[Ln]=Br[Xn]=4;var Zr=zr("HTMLCanvasElement"),Ur=zr("OffscreenCanvas"),Hr=zr("CanvasRenderingContext2D"),$r=zr("ImageBitmap"),Gr=zr("HTMLImageElement"),Wr=zr("HTMLVideoElement"),Vr=Object.keys(Pe).concat([Zr,Ur,Hr,$r,Gr,Wr]),Yr=[];Yr[lr]=1,Yr[hr]=4,Yr[qn]=2,Yr[cr]=2,Yr[fr]=4;var Xr=[];function qr(t){return Array.isArray(t)&&(0===t.length||"number"===typeof t[0])}function Kr(t){if(!Array.isArray(t))return!1;var e=t.length;return!(0===e||!Mn(t[0]))}function Jr(t){return Object.prototype.toString.call(t)}function Qr(t){return Jr(t)===Zr}function ti(t){return Jr(t)===Ur}function ei(t){return Jr(t)===Hr}function ni(t){return Jr(t)===$r}function ri(t){return Jr(t)===Gr}function ii(t){return Jr(t)===Wr}function oi(t){if(!t)return!1;var e=Jr(t);return Vr.indexOf(e)>=0||(qr(t)||Kr(t)||Ee(t))}function ai(t){return 0|Pe[Object.prototype.toString.call(t)]}function si(t,e){var n=e.length;switch(t.type){case lr:case cr:case fr:case hr:var r=Ft.allocType(t.type,n);r.set(e),t.data=r;break;case qn:t.data=Cn(e);break;default:rt.raise("unsupported texture type, must specify a typed array")}}function ui(t,e){return Ft.allocType(t.type===qn?hr:t.type,e)}function li(t,e){t.type===qn?(t.data=Cn(e),Ft.freeType(e)):t.data=e}function ci(t,e,n,r,i,o){for(var a=t.width,s=t.height,u=t.channels,l=a*s*u,c=ui(t,l),f=0,h=0;h<s;++h)for(var d=0;d<a;++d)for(var p=0;p<u;++p)c[f++]=e[n*d+r*h+i*p+o];li(t,c)}function fi(t,e,n,r,i,o){var a;if(a="undefined"!==typeof Xr[t]?Xr[t]:Br[t]*Yr[e],o&&(a*=6),i){var s=0,u=n;while(u>=1)s+=a*u*u,u/=2;return s}return a*n*r}function hi(n,r,i,o,a,s,u){var l={"don't care":Cr,"dont care":Cr,nice:Ar,fast:Mr},c={repeat:gr,clamp:vr,mirror:mr},f={nearest:xr,linear:_r},h=e({mipmap:Tr,"nearest mipmap nearest":wr,"linear mipmap nearest":Sr,"nearest mipmap linear":Er,"linear mipmap linear":Tr},f),d={none:0,browser:Nr},p={uint8:lr,rgba4:Un,rgb565:$n,"rgb5 a1":Hn},g={alpha:Nn,luminance:jn,"luminance alpha":Fn,rgb:Rn,rgba:Ln,rgba4:Bn,"rgb5 a1":zn,rgb565:Zn},v={};r.ext_srgb&&(g.srgb=Yn,g.srgba=Xn),r.oes_texture_float&&(p.float32=p.float=hr),r.oes_texture_half_float&&(p["float16"]=p["half float"]=qn),r.webgl_depth_texture&&(e(g,{depth:Wn,"depth stencil":Vn}),e(p,{uint16:cr,uint32:fr,"depth stencil":Gn})),r.webgl_compressed_texture_s3tc&&e(v,{"rgb s3tc dxt1":Kn,"rgba s3tc dxt1":Jn,"rgba s3tc dxt3":Qn,"rgba s3tc dxt5":tr}),r.webgl_compressed_texture_atc&&e(v,{"rgb atc":er,"rgba atc explicit alpha":nr,"rgba atc interpolated alpha":rr}),r.webgl_compressed_texture_pvrtc&&e(v,{"rgb pvrtc 4bppv1":ir,"rgb pvrtc 2bppv1":or,"rgba pvrtc 4bppv1":ar,"rgba pvrtc 2bppv1":sr}),r.webgl_compressed_texture_etc1&&(v["rgb etc1"]=ur);var m=Array.prototype.slice.call(n.getParameter(In));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 x=[];Object.keys(p).forEach((function(t){var e=p[t];x[e]=t}));var _=[];Object.keys(f).forEach((function(t){var e=f[t];_[e]=t}));var w=[];Object.keys(h).forEach((function(t){var e=h[t];w[e]=t}));var S=[];Object.keys(c).forEach((function(t){var e=c[t];S[e]=t}));var E=y.reduce((function(t,e){var n=g[e];return n===jn||n===Nn||n===jn||n===Fn||n===Wn||n===Vn||r.ext_srgb&&(n===Yn||n===Xn)?t[n]=n:n===zn||e.indexOf("rgba")>=0?t[n]=Ln:t[n]=Rn,t}),{});function T(){this.internalformat=Ln,this.format=Ln,this.type=lr,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Nr,this.width=0,this.height=0,this.channels=0}function k(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 C(t,e){if("object"===typeof e&&e){if("premultiplyAlpha"in e&&(rt.type(e.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),t.premultiplyAlpha=e.premultiplyAlpha),"flipY"in e&&(rt.type(e.flipY,"boolean","invalid texture flip"),t.flipY=e.flipY),"alignment"in e&&(rt.oneOf(e.alignment,[1,2,4,8],"invalid texture unpack alignment"),t.unpackAlignment=e.alignment),"colorSpace"in e&&(rt.parameter(e.colorSpace,d,"invalid colorSpace"),t.colorSpace=d[e.colorSpace]),"type"in e){var n=e.type;rt(r.oes_texture_float||!("float"===n||"float32"===n),"you must enable the OES_texture_float extension in order to use floating point textures."),rt(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."),rt(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."),rt.parameter(n,p,"invalid texture type"),t.type=p[n]}var o=t.width,a=t.height,s=t.channels,u=!1;"shape"in e?(rt(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],rt(s>0&&s<=4,"invalid number of channels"),u=!0),rt(o>=0&&o<=i.maxTextureSize,"invalid width"),rt(a>=0&&a<=i.maxTextureSize,"invalid height")):("radius"in e&&(o=a=e.radius,rt(o>=0&&o<=i.maxTextureSize,"invalid radius")),"width"in e&&(o=e.width,rt(o>=0&&o<=i.maxTextureSize,"invalid width")),"height"in e&&(a=e.height,rt(a>=0&&a<=i.maxTextureSize,"invalid height")),"channels"in e&&(s=e.channels,rt(s>0&&s<=4,"invalid number of channels"),u=!0)),t.width=0|o,t.height=0|a,t.channels=0|s;var l=!1;if("format"in e){var c=e.format;rt(r.webgl_depth_texture||!("depth"===c||"depth stencil"===c),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),rt.parameter(c,g,"invalid texture format");var f=t.internalformat=g[c];t.format=E[f],c in p&&("type"in e||(t.type=p[c])),c in v&&(t.compressed=!0),l=!0}!u&&l?t.channels=Br[t.format]:u&&!l?t.channels!==Fr[t.format]&&(t.format=t.internalformat=Fr[t.channels]):l&&u&&rt(t.channels===Br[t.format],"number of channels inconsistent with specified format")}}function M(t){n.pixelStorei(Dr,t.flipY),n.pixelStorei(Pr,t.premultiplyAlpha),n.pixelStorei(Lr,t.colorSpace),n.pixelStorei(Or,t.unpackAlignment)}function A(){T.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function I(e,n){var r=null;if(oi(n)?r=n:n&&(rt.type(n,"object","invalid pixel data type"),C(e,n),"x"in n&&(e.xOffset=0|n.x),"y"in n&&(e.yOffset=0|n.y),oi(n.data)&&(r=n.data)),rt(!e.compressed||r instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),n.copy){rt(!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,rt(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!==lr||(e.type=ai(r));else if(qr(r))e.channels=e.channels||4,si(e,r),e.alignment=1,e.needsFree=!0;else if(Ee(r)){var u=r.data;Array.isArray(u)||e.type!==lr||(e.type=ai(u));var l,c,f,h,d,p,g=r.shape,v=r.stride;3===g.length?(f=g[2],p=v[2]):(rt(2===g.length,"invalid ndarray pixel data, must be 2 or 3D"),f=1,p=1),l=g[0],c=g[1],h=v[0],d=v[1],e.alignment=1,e.width=l,e.height=c,e.channels=f,e.format=e.internalformat=Fr[f],e.needsFree=!0,ci(e,u,h,d,p,r.offset)}else if(Qr(r)||ti(r)||ei(r))Qr(r)||ti(r)?e.element=r:e.element=r.canvas,e.width=e.element.width,e.height=e.element.height,e.channels=4;else if(ni(r))e.element=r,e.width=r.width,e.height=r.height,e.channels=4;else if(ri(r))e.element=r,e.width=r.naturalWidth,e.height=r.naturalHeight,e.channels=4;else if(ii(r))e.element=r,e.width=r.videoWidth,e.height=r.videoHeight,e.channels=4;else if(Kr(r)){var m=e.width||r[0].length,y=e.height||r.length,b=e.channels;b=Mn(r[0][0])?b||r[0][0].length:b||1;for(var x=ke.shape(r),_=1,w=0;w<x.length;++w)_*=x[w];var S=ui(e,_);ke.flatten(r,x,"",S),li(e,S),e.alignment=1,e.width=m,e.height=y,e.channels=b,e.format=e.internalformat=Fr[b],e.needsFree=!0}}else e.width=e.width||1,e.height=e.height||1,e.channels=e.channels||4;e.type===hr?rt(i.extensions.indexOf("oes_texture_float")>=0,"oes_texture_float extension not enabled"):e.type===qn&&rt(i.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function O(t,e,r){var i=t.element,a=t.data,s=t.internalformat,u=t.format,l=t.type,c=t.width,f=t.height;M(t),i?n.texImage2D(e,r,u,u,l,i):t.compressed?n.compressedTexImage2D(e,r,s,c,f,0,a):t.needsCopy?(o(),n.copyTexImage2D(e,r,u,t.xOffset,t.yOffset,c,f,0)):n.texImage2D(e,r,u,c,f,0,u,l,a||null)}function D(t,e,r,i,a){var s=t.element,u=t.data,l=t.internalformat,c=t.format,f=t.type,h=t.width,d=t.height;M(t),s?n.texSubImage2D(e,a,r,i,c,f,s):t.compressed?n.compressedTexSubImage2D(e,a,r,i,l,h,d,u):t.needsCopy?(o(),n.copyTexSubImage2D(e,a,r,i,t.xOffset,t.yOffset,h,d)):n.texSubImage2D(e,a,r,i,h,d,c,f,u)}var P=[];function L(){return P.pop()||new A}function N(t){t.needsFree&&Ft.freeType(t.data),A.call(t),P.push(t)}function R(){T.call(this),this.genMipmaps=!1,this.mipmapHint=Cr,this.mipmask=0,this.images=Array(16)}function j(t,e,n){var r=t.images[0]=L();t.mipmask=1,r.width=t.width=e,r.height=t.height=n,r.channels=t.channels=4}function F(t,e){var n=null;if(oi(e))n=t.images[0]=L(),k(n,t),I(n,e),t.mipmask=1;else if(C(t,e),Array.isArray(e.mipmap))for(var r=e.mipmap,i=0;i<r.length;++i)n=t.images[i]=L(),k(n,t),n.width>>=i,n.height>>=i,I(n,r[i]),t.mipmask|=1<<i;else n=t.images[0]=L(),k(n,t),I(n,e),t.mipmask=1;k(t,t.images[0]),!t.compressed||t.internalformat!==Kn&&t.internalformat!==Jn&&t.internalformat!==Qn&&t.internalformat!==tr||rt(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 B(t,e){for(var n=t.images,r=0;r<n.length;++r){if(!n[r])return;O(n[r],e,r)}}var z=[];function Z(){var t=z.pop()||new R;T.call(t),t.mipmask=0;for(var e=0;e<16;++e)t.images[e]=null;return t}function U(t){for(var e=t.images,n=0;n<e.length;++n)e[n]&&N(e[n]),e[n]=null;z.push(t)}function H(){this.minFilter=xr,this.magFilter=xr,this.wrapS=vr,this.wrapT=vr,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=Cr}function $(t,e){if("min"in e){var n=e.min;rt.parameter(n,h),t.minFilter=h[n],jr.indexOf(t.minFilter)>=0&&!("faces"in e)&&(t.genMipmaps=!0)}if("mag"in e){var r=e.mag;rt.parameter(r,f),t.magFilter=f[r]}var o=t.wrapS,a=t.wrapT;if("wrap"in e){var s=e.wrap;"string"===typeof s?(rt.parameter(s,c),o=a=c[s]):Array.isArray(s)&&(rt.parameter(s[0],c),rt.parameter(s[1],c),o=c[s[0]],a=c[s[1]])}else{if("wrapS"in e){var u=e.wrapS;rt.parameter(u,c),o=c[u]}if("wrapT"in e){var d=e.wrapT;rt.parameter(d,c),a=c[d]}}if(t.wrapS=o,t.wrapT=a,"anisotropic"in e){var p=e.anisotropic;rt("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":rt.parameter(e.mipmap,l,"invalid mipmap hint"),t.mipmapHint=l[e.mipmap],t.genMipmaps=!0,g=!0;break;case"boolean":g=t.genMipmaps=e.mipmap;break;case"object":rt(Array.isArray(e.mipmap),"invalid mipmap type"),t.genMipmaps=!1,g=!0;break;default:rt.raise("invalid mipmap type")}g&&!("min"in e)&&(t.minFilter=wr)}}function G(t,e){n.texParameteri(e,br,t.minFilter),n.texParameteri(e,yr,t.magFilter),n.texParameteri(e,dr,t.wrapS),n.texParameteri(e,pr,t.wrapT),r.ext_texture_filter_anisotropic&&n.texParameteri(e,Ir,t.anisotropic),t.genMipmaps&&(n.hint(kr,t.mipmapHint),n.generateMipmap(e))}var W=0,V={},Y=i.maxTextureUnits,X=Array(Y).map((function(){return null}));function q(t){T.call(this),this.mipmask=0,this.internalformat=Ln,this.id=W++,this.refCount=1,this.target=t,this.texture=n.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new H,u.profile&&(this.stats={size:0})}function K(t){n.activeTexture(Rr),n.bindTexture(t.target,t.texture)}function J(){var t=X[0];t?n.bindTexture(t.target,t.texture):n.bindTexture(On,null)}function Q(t){var e=t.texture;rt(e,"must not double destroy texture");var r=t.unit,i=t.target;r>=0&&(n.activeTexture(Rr+r),n.bindTexture(i,null),X[r]=null),n.deleteTexture(e),t.texture=null,t.params=null,t.pixels=null,t.refCount=0,delete V[t.id],s.textureCount--}function tt(t,e){var r=new q(On);function o(t,e){var n=r.texInfo;H.call(n);var a=Z();return"number"===typeof t?j(a,0|t,"number"===typeof e?0|e:0|t):t?(rt.type(t,"object","invalid arguments to regl.texture"),$(n,t),F(a,t)):j(a,1,1),n.genMipmaps&&(a.mipmask=(a.width<<1)-1),r.mipmask=a.mipmask,k(r,a),rt.texture2D(n,a,i),r.internalformat=a.internalformat,o.width=a.width,o.height=a.height,K(r),B(a,On),G(n,On),J(),U(a),u.profile&&(r.stats.size=fi(r.internalformat,r.type,a.width,a.height,n.genMipmaps,!1)),o.format=b[r.internalformat],o.type=x[r.type],o.mag=_[n.magFilter],o.min=w[n.minFilter],o.wrapS=S[n.wrapS],o.wrapT=S[n.wrapT],o}function a(t,e,n,i){rt(!!t,"must specify image data");var a=0|e,s=0|n,u=0|i,l=L();return k(l,r),l.width=0,l.height=0,I(l,t),l.width=l.width||(r.width>>u)-a,l.height=l.height||(r.height>>u)-s,rt(r.type===l.type&&r.format===l.format&&r.internalformat===l.internalformat,"incompatible format for texture.subimage"),rt(a>=0&&s>=0&&a+l.width<=r.width&&s+l.height<=r.height,"texture.subimage write out of bounds"),rt(r.mipmask&1<<u,"missing mipmap data"),rt(l.data||l.element||l.needsCopy,"missing image data"),K(r),D(l,On,a,s,u),J(),N(l),o}function l(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 l=i>>s,c=a>>s;if(!l||!c)break;n.texImage2D(On,s,r.format,l,c,0,r.format,r.type,null)}return J(),u.profile&&(r.stats.size=fi(r.internalformat,r.type,i,a,!1,!1)),o}return V[r.id]=r,s.textureCount++,o(t,e),o.subimage=a,o.resize=l,o._reglType="texture2d",o._texture=r,u.profile&&(o.stats=r.stats),o.destroy=function(){r.decRef()},o}function et(t,e,r,o,a,l){var c=new q(Dn);V[c.id]=c,s.cubeCount++;var f=new Array(6);function h(t,e,n,r,o,a){var s,l=c.texInfo;for(H.call(l),s=0;s<6;++s)f[s]=Z();if("number"!==typeof t&&t)if("object"===typeof t)if(e)F(f[0],t),F(f[1],e),F(f[2],n),F(f[3],r),F(f[4],o),F(f[5],a);else if($(l,t),C(c,t),"faces"in t){var d=t.faces;for(rt(Array.isArray(d)&&6===d.length,"cube faces must be a length 6 array"),s=0;s<6;++s)rt("object"===typeof d[s]&&!!d[s],"invalid input for cube map face"),k(f[s],c),F(f[s],d[s])}else for(s=0;s<6;++s)F(f[s],t);else rt.raise("invalid arguments to cube map");else{var p=0|t||1;for(s=0;s<6;++s)j(f[s],p,p)}for(k(c,f[0]),i.npotTextureCube||rt(An(c.width)&&An(c.height),"your browser does not support non power or two texture dimensions"),l.genMipmaps?c.mipmask=(f[0].width<<1)-1:c.mipmask=f[0].mipmask,rt.textureCube(c,l,f,i),c.internalformat=f[0].internalformat,h.width=f[0].width,h.height=f[0].height,K(c),s=0;s<6;++s)B(f[s],Pn+s);for(G(l,Dn),J(),u.profile&&(c.stats.size=fi(c.internalformat,c.type,h.width,h.height,l.genMipmaps,!0)),h.format=b[c.internalformat],h.type=x[c.type],h.mag=_[l.magFilter],h.min=w[l.minFilter],h.wrapS=S[l.wrapS],h.wrapT=S[l.wrapT],s=0;s<6;++s)U(f[s]);return h}function d(t,e,n,r,i){rt(!!e,"must specify image data"),rt("number"===typeof t&&t===(0|t)&&t>=0&&t<6,"invalid face");var o=0|n,a=0|r,s=0|i,u=L();return k(u,c),u.width=0,u.height=0,I(u,e),u.width=u.width||(c.width>>s)-o,u.height=u.height||(c.height>>s)-a,rt(c.type===u.type&&c.format===u.format&&c.internalformat===u.internalformat,"incompatible format for texture.subimage"),rt(o>=0&&a>=0&&o+u.width<=c.width&&a+u.height<=c.height,"texture.subimage write out of bounds"),rt(c.mipmask&1<<s,"missing mipmap data"),rt(u.data||u.element||u.needsCopy,"missing image data"),K(c),D(u,Pn+t,o,a,s),J(),N(u),h}function p(t){var e=0|t;if(e!==c.width){h.width=c.width=e,h.height=c.height=e,K(c);for(var r=0;r<6;++r)for(var i=0;c.mipmask>>i;++i)n.texImage2D(Pn+r,i,c.format,e>>i,e>>i,0,c.format,c.type,null);return J(),u.profile&&(c.stats.size=fi(c.internalformat,c.type,h.width,h.height,!1,!0)),h}}return h(t,e,r,o,a,l),h.subimage=d,h.resize=p,h._reglType="textureCube",h._texture=c,u.profile&&(h.stats=c.stats),h.destroy=function(){c.decRef()},h}function nt(){for(var t=0;t<Y;++t)n.activeTexture(Rr+t),n.bindTexture(On,null),X[t]=null;Te(V).forEach(Q),s.cubeCount=0,s.textureCount=0}function it(){for(var t=0;t<Y;++t){var e=X[t];e&&(e.bindCount=0,e.unit=-1,X[t]=null)}Te(V).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===On)n.texImage2D(On,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(Pn+r,e,t.internalformat,t.width>>e,t.height>>e,0,t.internalformat,t.type,null);G(t.texInfo,t.target)}))}function ot(){for(var t=0;t<Y;++t){var e=X[t];e&&(e.bindCount=0,e.unit=-1,X[t]=null),n.activeTexture(Rr+t),n.bindTexture(On,null),n.bindTexture(Dn,null)}}return e(q.prototype,{bind:function(){var t=this;t.bindCount+=1;var e=t.unit;if(e<0){for(var r=0;r<Y;++r){var i=X[r];if(i){if(i.bindCount>0)continue;i.unit=-1}X[r]=t,e=r;break}e>=Y&&rt.raise("insufficient number of texture units"),u.profile&&s.maxTextureUnits<e+1&&(s.maxTextureUnits=e+1),t.unit=e,n.activeTexture(Rr+e),n.bindTexture(t.target,t.texture)}return e},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&Q(this)}}),u.profile&&(s.getTotalTextureSize=function(){var t=0;return Object.keys(V).forEach((function(e){t+=V[e].stats.size})),t}),{create2D:tt,createCube:et,clear:nt,getTexture:function(t){return null},restore:it,refresh:ot}}Xr[Bn]=2,Xr[zn]=2,Xr[Zn]=2,Xr[Vn]=4,Xr[Kn]=.5,Xr[Jn]=.5,Xr[Qn]=1,Xr[tr]=1,Xr[er]=.5,Xr[nr]=1,Xr[rr]=1,Xr[ir]=.5,Xr[or]=.25,Xr[ar]=.5,Xr[sr]=.25,Xr[ur]=.5;var di=36161,pi=32854,gi=32855,vi=36194,mi=33189,yi=36168,bi=34041,xi=35907,_i=34836,wi=34842,Si=34843,Ei=[];function Ti(t,e,n){return Ei[t]*e*n}Ei[pi]=2,Ei[gi]=2,Ei[vi]=2,Ei[mi]=2,Ei[yi]=1,Ei[bi]=4,Ei[xi]=4,Ei[_i]=16,Ei[wi]=8,Ei[Si]=6;var ki=function(t,e,n,r,i){var o={rgba4:pi,rgb565:vi,"rgb5 a1":gi,depth:mi,stencil:yi,"depth stencil":bi};e.ext_srgb&&(o["srgba"]=xi),e.ext_color_buffer_half_float&&(o["rgba16f"]=wi,o["rgb16f"]=Si),e.webgl_color_buffer_float&&(o["rgba32f"]=_i);var a=[];Object.keys(o).forEach((function(t){var e=o[t];a[e]=t}));var s=0,u={};function l(t){this.id=s++,this.refCount=1,this.renderbuffer=t,this.format=pi,this.width=0,this.height=0,i.profile&&(this.stats={size:0})}function c(e){var n=e.renderbuffer;rt(n,"must not double destroy renderbuffer"),t.bindRenderbuffer(di,null),t.deleteRenderbuffer(n),e.renderbuffer=null,e.refCount=0,delete u[e.id],r.renderbufferCount--}function f(e,s){var c=new l(t.createRenderbuffer());function f(e,r){var s=0,u=0,l=pi;if("object"===typeof e&&e){var h=e;if("shape"in h){var d=h.shape;rt(Array.isArray(d)&&d.length>=2,"invalid renderbuffer shape"),s=0|d[0],u=0|d[1]}else"radius"in h&&(s=u=0|h.radius),"width"in h&&(s=0|h.width),"height"in h&&(u=0|h.height);"format"in h&&(rt.parameter(h.format,o,"invalid renderbuffer format"),l=o[h.format])}else"number"===typeof e?(s=0|e,u="number"===typeof r?0|r:s):e?rt.raise("invalid arguments to renderbuffer constructor"):s=u=1;if(rt(s>0&&u>0&&s<=n.maxRenderbufferSize&&u<=n.maxRenderbufferSize,"invalid renderbuffer size"),s!==c.width||u!==c.height||l!==c.format)return f.width=c.width=s,f.height=c.height=u,c.format=l,t.bindRenderbuffer(di,c.renderbuffer),t.renderbufferStorage(di,l,s,u),rt(0===t.getError(),"invalid render buffer format"),i.profile&&(c.stats.size=Ti(c.format,c.width,c.height)),f.format=a[c.format],f}function h(e,r){var o=0|e,a=0|r||o;return o===c.width&&a===c.height||(rt(o>0&&a>0&&o<=n.maxRenderbufferSize&&a<=n.maxRenderbufferSize,"invalid renderbuffer size"),f.width=c.width=o,f.height=c.height=a,t.bindRenderbuffer(di,c.renderbuffer),t.renderbufferStorage(di,c.format,o,a),rt(0===t.getError(),"invalid render buffer format"),i.profile&&(c.stats.size=Ti(c.format,c.width,c.height))),f}return u[c.id]=c,r.renderbufferCount++,f(e,s),f.resize=h,f._reglType="renderbuffer",f._renderbuffer=c,i.profile&&(f.stats=c.stats),f.destroy=function(){c.decRef()},f}function h(){Te(u).forEach((function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(di,e.renderbuffer),t.renderbufferStorage(di,e.format,e.width,e.height)})),t.bindRenderbuffer(di,null)}return l.prototype.decRef=function(){--this.refCount<=0&&c(this)},i.profile&&(r.getTotalRenderbufferSize=function(){var t=0;return Object.keys(u).forEach((function(e){t+=u[e].stats.size})),t}),{create:f,clear:function(){Te(u).forEach(c)},restore:h}},Ci=36160,Mi=36161,Ai=3553,Ii=34069,Oi=36064,Di=36096,Pi=36128,Li=33306,Ni=36053,Ri=36054,ji=36055,Fi=36057,Bi=36061,zi=36193,Zi=5121,Ui=5126,Hi=6407,$i=6408,Gi=6402,Wi=[Hi,$i],Vi=[];Vi[$i]=4,Vi[Hi]=3;var Yi=[];Yi[Zi]=1,Yi[Ui]=4,Yi[zi]=2;var Xi=32854,qi=32855,Ki=36194,Ji=33189,Qi=36168,to=34041,eo=35907,no=34836,ro=34842,io=34843,oo=[Xi,qi,Ki,eo,ro,io,no],ao={};function so(t,n,r,i,o,a){var s={cur:null,next:null,dirty:!1,setFBO:null},u=["rgba"],l=["rgba4","rgb565","rgb5 a1"];n.ext_srgb&&l.push("srgba"),n.ext_color_buffer_half_float&&l.push("rgba16f","rgb16f"),n.webgl_color_buffer_float&&l.push("rgba32f");var c=["uint8"];function f(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 h(t){t&&(t.texture&&t.texture._texture.decRef(),t.renderbuffer&&t.renderbuffer._renderbuffer.decRef())}function d(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);rt(i===e&&o===n,"inconsistent width/height for supplied texture"),r.refCount+=1}else{var a=t.renderbuffer._renderbuffer;rt(a.width===e&&a.height===n,"inconsistent width/height for renderbuffer"),a.refCount+=1}}function p(e,n){n&&(n.texture?t.framebufferTexture2D(Ci,e,n.target,n.texture._texture.texture,0):t.framebufferRenderbuffer(Ci,e,Mi,n.renderbuffer._renderbuffer.renderbuffer))}function g(t){var e=Ai,n=null,r=null,i=t;"object"===typeof t&&(i=t.data,"target"in t&&(e=0|t.target)),rt.type(i,"function","invalid attachment data");var o=i._reglType;return"texture2d"===o?(n=i,rt(e===Ai)):"textureCube"===o?(n=i,rt(e>=Ii&&e<Ii+6,"invalid cube map target")):"renderbuffer"===o?(r=i,e=Mi):rt.raise("invalid regl object for attachment"),new f(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 f(Ai,s,null)}var u=o.create({width:t,height:e,format:r});return u._renderbuffer.refCount=0,new f(Mi,null,u)}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,x={};function _(){this.id=b++,x[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(h),h(t.depthAttachment),h(t.stencilAttachment),h(t.depthStencilAttachment)}function S(e){var n=e.framebuffer;rt(n,"must not double destroy framebuffer"),t.deleteFramebuffer(n),e.framebuffer=null,a.framebufferCount--,delete x[e.id]}function E(e){var n;t.bindFramebuffer(Ci,e.framebuffer);var i=e.colorAttachments;for(n=0;n<i.length;++n)p(Oi+n,i[n]);for(n=i.length;n<r.maxColorAttachments;++n)t.framebufferTexture2D(Ci,Oi+n,Ai,null,0);t.framebufferTexture2D(Ci,Li,Ai,null,0),t.framebufferTexture2D(Ci,Di,Ai,null,0),t.framebufferTexture2D(Ci,Pi,Ai,null,0),p(Di,e.depthAttachment),p(Pi,e.stencilAttachment),p(Li,e.depthStencilAttachment);var o=t.checkFramebufferStatus(Ci);t.isContextLost()||o===Ni||rt.raise("framebuffer configuration not supported, status = "+ao[o]),t.bindFramebuffer(Ci,s.next?s.next.framebuffer:null),s.cur=s.next,t.getError()}function T(t,i){var o=new _;function f(t,e){var i;rt(s.next!==o,"can not update framebuffer which is currently in use");var a=0,h=0,p=!0,y=!0,b=null,x=!0,_="rgba",S="uint8",T=1,k=null,C=null,M=null,A=!1;if("number"===typeof t)a=0|t,h=0|e||a;else if(t){rt.type(t,"object","invalid arguments for framebuffer");var I=t;if("shape"in I){var O=I.shape;rt(Array.isArray(O)&&O.length>=2,"invalid shape for framebuffer"),a=O[0],h=O[1]}else"radius"in I&&(a=h=I.radius),"width"in I&&(a=I.width),"height"in I&&(h=I.height);("color"in I||"colors"in I)&&(b=I.color||I.colors,Array.isArray(b)&&rt(1===b.length||n.webgl_draw_buffers,"multiple render targets not supported")),b||("colorCount"in I&&(T=0|I.colorCount,rt(T>0,"invalid color buffer count")),"colorTexture"in I&&(x=!!I.colorTexture,_="rgba4"),"colorType"in I&&(S=I.colorType,x?(rt(n.oes_texture_float||!("float"===S||"float32"===S),"you must enable OES_texture_float in order to use floating point framebuffer objects"),rt(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?(rt(n.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),_="rgba16f"):"float"!==S&&"float32"!==S||(rt(n.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),_="rgba32f"),rt.oneOf(S,c,"invalid color type")),"colorFormat"in I&&(_=I.colorFormat,u.indexOf(_)>=0?x=!0:l.indexOf(_)>=0?x=!1:x?rt.oneOf(I.colorFormat,u,"invalid color format for texture"):rt.oneOf(I.colorFormat,l,"invalid color format for renderbuffer"))),("depthTexture"in I||"depthStencilTexture"in I)&&(A=!(!I.depthTexture&&!I.depthStencilTexture),rt(!A||n.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in I&&("boolean"===typeof I.depth?p=I.depth:(k=I.depth,y=!1)),"stencil"in I&&("boolean"===typeof I.stencil?y=I.stencil:(C=I.stencil,p=!1)),"depthStencil"in I&&("boolean"===typeof I.depthStencil?p=y=I.depthStencil:(M=I.depthStencil,p=!1,y=!1))}else a=h=1;var D=null,P=null,L=null,N=null;if(Array.isArray(b))D=b.map(g);else if(b)D=[g(b)];else for(D=new Array(T),i=0;i<T;++i)D[i]=v(a,h,x,_,S);rt(n.webgl_draw_buffers||D.length<=1,"you must enable the WEBGL_draw_buffers extension in order to use multiple color buffers."),rt(D.length<=r.maxColorAttachments,"too many color attachments, not supported"),a=a||D[0].width,h=h||D[0].height,k?P=g(k):p&&!y&&(P=v(a,h,A,"depth","uint32")),C?L=g(C):y&&!p&&(L=v(a,h,!1,"stencil","uint8")),M?N=g(M):!k&&!C&&y&&p&&(N=v(a,h,A,"depth stencil","depth stencil")),rt(!!k+!!C+!!M<=1,"invalid framebuffer configuration, can specify exactly one depth/stencil attachment");var R=null;for(i=0;i<D.length;++i)if(d(D[i],a,h),rt(!D[i]||D[i].texture&&Wi.indexOf(D[i].texture._texture.format)>=0||D[i].renderbuffer&&oo.indexOf(D[i].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+i+" is invalid"),D[i]&&D[i].texture){var j=Vi[D[i].texture._texture.format]*Yi[D[i].texture._texture.type];null===R?R=j:rt(R===j,"all color attachments much have the same number of bits per pixel.")}return d(P,a,h),rt(!P||P.texture&&P.texture._texture.format===Gi||P.renderbuffer&&P.renderbuffer._renderbuffer.format===Ji,"invalid depth attachment for framebuffer object"),d(L,a,h),rt(!L||L.renderbuffer&&L.renderbuffer._renderbuffer.format===Qi,"invalid stencil attachment for framebuffer object"),d(N,a,h),rt(!N||N.texture&&N.texture._texture.format===to||N.renderbuffer&&N.renderbuffer._renderbuffer.format===to,"invalid depth-stencil attachment for framebuffer object"),w(o),o.width=a,o.height=h,o.colorAttachments=D,o.depthAttachment=P,o.stencilAttachment=L,o.depthStencilAttachment=N,f.color=D.map(m),f.depth=m(P),f.stencil=m(L),f.depthStencil=m(N),f.width=o.width,f.height=o.height,E(o),f}function h(t,e){rt(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 f;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=f.width=n,o.height=f.height=r,E(o),f}return a.framebufferCount++,f(t,i),e(f,{resize:h,_reglType:"framebuffer",_framebuffer:o,destroy:function(){S(o),w(o)},use:function(t){s.setFBO({framebuffer:f},t)}})}function k(t){var o=Array(6);function a(t){var r;rt(o.indexOf(s.next)<0,"can not update framebuffer which is currently in use");var l,f={color:null},h=0,d=null,p="rgba",g="uint8",v=1;if("number"===typeof t)h=0|t;else if(t){rt.type(t,"object","invalid arguments for framebuffer");var m=t;if("shape"in m){var y=m.shape;rt(Array.isArray(y)&&y.length>=2,"invalid shape for framebuffer"),rt(y[0]===y[1],"cube framebuffer must be square"),h=y[0]}else"radius"in m&&(h=0|m.radius),"width"in m?(h=0|m.width,"height"in m&&rt(m.height===h,"must be square")):"height"in m&&(h=0|m.height);("color"in m||"colors"in m)&&(d=m.color||m.colors,Array.isArray(d)&&rt(1===d.length||n.webgl_draw_buffers,"multiple render targets not supported")),d||("colorCount"in m&&(v=0|m.colorCount,rt(v>0,"invalid color buffer count")),"colorType"in m&&(rt.oneOf(m.colorType,c,"invalid color type"),g=m.colorType),"colorFormat"in m&&(p=m.colorFormat,rt.oneOf(m.colorFormat,u,"invalid color format for texture"))),"depth"in m&&(f.depth=m.depth),"stencil"in m&&(f.stencil=m.stencil),"depthStencil"in m&&(f.depthStencil=m.depthStencil)}else h=1;if(d)if(Array.isArray(d))for(l=[],r=0;r<d.length;++r)l[r]=d[r];else l=[d];else{l=Array(v);var b={radius:h,format:p,type:g};for(r=0;r<v;++r)l[r]=i.createCube(b)}for(f.color=Array(l.length),r=0;r<l.length;++r){var x=l[r];rt("function"===typeof x&&"textureCube"===x._reglType,"invalid cube map"),h=h||x.width,rt(x.width===h&&x.height===h,"invalid cube map shape"),f.color[r]={target:Ii,data:l[r]}}for(r=0;r<6;++r){for(var _=0;_<l.length;++_)f.color[_].target=Ii+r;r>0&&(f.depth=o[0].depth,f.stencil=o[0].stencil,f.depthStencil=o[0].depthStencil),o[r]?o[r](f):o[r]=T(f)}return e(a,{width:h,height:h,color:l})}function l(t){var e,n=0|t;if(rt(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}return a(t),e(a,{faces:o,resize:l,_reglType:"framebufferCube",destroy:function(){o.forEach((function(t){t.destroy()}))}})}function C(){s.cur=null,s.next=null,s.dirty=!0,Te(x).forEach((function(e){e.framebuffer=t.createFramebuffer(),E(e)}))}return e(s,{getFramebuffer:function(t){if("function"===typeof t&&"framebuffer"===t._reglType){var e=t._framebuffer;if(e instanceof _)return e}return null},create:T,createCube:k,clear:function(){Te(x).forEach(S)},restore:C})}ao[Ni]="complete",ao[Ri]="incomplete attachment",ao[Fi]="incomplete dimensions",ao[ji]="incomplete, missing attachment",ao[Bi]="unsupported";var uo=5126,lo=34962;function co(){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=uo,this.offset=0,this.stride=0,this.divisor=0}function fo(e,n,r,i,o){for(var a=r.maxAttributes,s=new Array(a),u=0;u<a;++u)s[u]=new co;var l=0,c={},f={Record:co,scope:{},state:s,currentVAO:null,targetVAO:null,restore:d()?x:function(){},createVAO:_,getVAO:g,destroyBuffer:h,setVAO:d()?v:m,clear:d()?y:function(){}};function h(t){for(var n=0;n<s.length;++n){var r=s[n];r.buffer===t&&(e.disableVertexAttribArray(n),r.buffer=null)}}function d(){return n.oes_vertex_array_object}function p(){return n.angle_instanced_arrays}function g(t){return"function"===typeof t&&t._vao?t._vao:null}function v(t){if(t!==f.currentVAO){var e=d();t?e.bindVertexArrayOES(t.vao):e.bindVertexArrayOES(null),f.currentVAO=t}}function m(t){if(t!==f.currentVAO){if(t)t.bindAttrs();else for(var n=p(),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))}f.currentVAO=t}}function y(){Te(c).forEach((function(t){t.destroy()}))}function b(){this.id=++l,this.attributes=[];var t=d();this.vao=t?t.createVertexArrayOES():null,c[this.id]=this,this.buffers=[]}function x(){var t=d();t&&Te(c).forEach((function(t){t.refresh()}))}function _(e){var r=new b;function s(e){rt(Array.isArray(e),"arguments to vertex array constructor must be an array"),rt(e.length<a,"too many attributes"),rt(e.length>0,"must specify at least one attribute");var i={},u=r.attributes;u.length=e.length;for(var l=0;l<e.length;++l){var c,f=e[l],h=u[l]=new co,d=f.data||f;if(Array.isArray(d)||t(d)||Ee(d))r.buffers[l]&&(c=r.buffers[l],t(d)&&c._buffer.byteLength>=d.byteLength?c.subdata(d):(c.destroy(),r.buffers[l]=null)),r.buffers[l]||(c=r.buffers[l]=o.create(f,lo,!1,!0)),h.buffer=o.getBuffer(c),h.size=0|h.buffer.dimension,h.normalized=!1,h.type=h.buffer.dtype,h.offset=0,h.stride=0,h.divisor=0,h.state=1,i[l]=1;else o.getBuffer(f)?(h.buffer=o.getBuffer(f),h.size=0|h.buffer.dimension,h.normalized=!1,h.type=h.buffer.dtype,h.offset=0,h.stride=0,h.divisor=0,h.state=1):o.getBuffer(f.buffer)?(h.buffer=o.getBuffer(f.buffer),h.size=0|(+f.size||h.buffer.dimension),h.normalized=!!f.normalized||!1,"type"in f?(rt.parameter(f.type,Ue,"invalid buffer type"),h.type=Ue[f.type]):h.type=h.buffer.dtype,h.offset=0|(f.offset||0),h.stride=0|(f.stride||0),h.divisor=0|(f.divisor||0),h.state=1,rt(h.size>=1&&h.size<=4,"size must be between 1 and 4"),rt(h.offset>=0,"invalid offset"),rt(h.stride>=0&&h.stride<=255,"stride must be between 0 and 255"),rt(h.divisor>=0,"divisor must be positive"),rt(!h.divisor||!!n.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in f?(rt(l>0,"first attribute must not be a constant"),h.x=+f.x||0,h.y=+f.y||0,h.z=+f.z||0,h.w=+f.w||0,h.state=2):rt(!1,"invalid attribute spec for location "+l)}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)}return b.prototype.bindAttrs=function(){for(var t=p(),n=this.attributes,r=0;r<n.length;++r){var i=n[r];i.buffer?(e.enableVertexAttribArray(r),e.bindBuffer(lo,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)},b.prototype.refresh=function(){var t=d();t&&(t.bindVertexArrayOES(this.vao),this.bindAttrs(),f.currentVAO=this)},b.prototype.destroy=function(){if(this.vao){var t=d();this===f.currentVAO&&(f.currentVAO=null,t.bindVertexArrayOES(null)),t.deleteVertexArrayOES(this.vao),this.vao=null}c[this.id]&&(delete c[this.id],i.vaoCount-=1)},f}var ho=35632,po=35633,go=35718,vo=35721;function mo(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 u(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 l(e,r,i){var s=e===ho?o:a,u=s[r];if(!u){var l=n.str(r);u=t.createShader(e),t.shaderSource(u,l),t.compileShader(u),rt.shaderError(t,u,l,e,i),s[r]=u}return u}var c={},f=[],h=0;function d(t,e){this.id=h++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,i.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function p(e,r,o){var a,c,f=l(ho,e.fragId),h=l(po,e.vertId),d=e.program=t.createProgram();if(t.attachShader(d,f),t.attachShader(d,h),o)for(a=0;a<o.length;++a){var p=o[a];t.bindAttribLocation(d,p[0],p[1])}t.linkProgram(d),rt.linkError(t,d,n.str(e.fragId),n.str(e.vertId),r);var g=t.getProgramParameter(d,go);i.profile&&(e.stats.uniformsCount=g);var v=e.uniforms;for(a=0;a<g;++a)if(c=t.getActiveUniform(d,a),c)if(c.size>1)for(var m=0;m<c.size;++m){var y=c.name.replace("[0]","["+m+"]");u(v,new s(y,n.id(y),t.getUniformLocation(d,y),c))}else u(v,new s(c.name,n.id(c.name),t.getUniformLocation(d,c.name),c));var b=t.getProgramParameter(d,vo);i.profile&&(e.stats.attributesCount=b);var x=e.attributes;for(a=0;a<b;++a)c=t.getActiveAttrib(d,a),c&&u(x,new s(c.name,n.id(c.name),t.getAttribLocation(d,c.name),c))}function g(){o={},a={};for(var t=0;t<f.length;++t)p(f[t],null,f[t].attributes.map((function(t){return[t.location,t.name]})))}return i.profile&&(r.getMaxUniformsCount=function(){var t=0;return f.forEach((function(e){e.stats.uniformsCount>t&&(t=e.stats.uniformsCount)})),t},r.getMaxAttributesCount=function(){var t=0;return f.forEach((function(e){e.stats.attributesCount>t&&(t=e.stats.attributesCount)})),t}),{clear:function(){var e=t.deleteShader.bind(t);Te(o).forEach(e),o={},Te(a).forEach(e),a={},f.forEach((function(e){t.deleteProgram(e.program)})),f.length=0,c={},r.shaderCount=0},program:function(n,i,s,u){rt.command(n>=0,"missing vertex shader",s),rt.command(i>=0,"missing fragment shader",s);var l=c[i];l||(l=c[i]={});var h=l[n];if(h&&(h.refCount++,!u))return h;var g=new d(i,n);return r.shaderCount++,p(g,s,u),h||(l[n]=g),f.push(g),e(g,{destroy:function(){if(g.refCount--,g.refCount<=0){t.deleteProgram(g.program);var e=f.indexOf(g);f.splice(e,1),r.shaderCount--}l[g.vertId].refCount<=0&&(t.deleteShader(a[g.vertId]),delete a[g.vertId],delete c[g.fragId][g.vertId]),Object.keys(c[g.fragId]).length||(t.deleteShader(o[g.fragId]),delete o[g.fragId],delete c[g.fragId])}})},restore:g,shader:l,frag:-1,vert:-1}}var yo=6408,bo=5121,xo=3333,_o=5126;function wo(e,n,r,i,o,a,s){function u(u){var l;null===n.next?(rt(o.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),l=bo):(rt(null!==n.next.colorAttachments[0].texture,"You cannot read from a renderbuffer"),l=n.next.colorAttachments[0].texture._texture.type,a.oes_texture_float?(rt(l===bo||l===_o,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),l===_o&&rt(s.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):rt(l===bo,"Reading from a framebuffer is only allowed for the type 'uint8'"));var c=0,f=0,h=i.framebufferWidth,d=i.framebufferHeight,p=null;t(u)?p=u:u&&(rt.type(u,"object","invalid arguments to regl.read()"),c=0|u.x,f=0|u.y,rt(c>=0&&c<i.framebufferWidth,"invalid x offset for regl.read"),rt(f>=0&&f<i.framebufferHeight,"invalid y offset for regl.read"),h=0|(u.width||i.framebufferWidth-c),d=0|(u.height||i.framebufferHeight-f),p=u.data||null),p&&(l===bo?rt(p instanceof Uint8Array,"buffer must be 'Uint8Array' when reading from a framebuffer of type 'uint8'"):l===_o&&rt(p instanceof Float32Array,"buffer must be 'Float32Array' when reading from a framebuffer of type 'float'")),rt(h>0&&h+c<=i.framebufferWidth,"invalid width for read pixels"),rt(d>0&&d+f<=i.framebufferHeight,"invalid height for read pixels"),r();var g=h*d*4;return p||(l===bo?p=new Uint8Array(g):l===_o&&(p=p||new Float32Array(g))),rt.isTypedArray(p,"data buffer for regl.read() must be a typedarray"),rt(p.byteLength>=g,"data buffer for regl.read() too small"),e.pixelStorei(xo,4),e.readPixels(c,f,h,d,yo,l,p),p}function l(t){var e;return n.setFBO({framebuffer:t.framebuffer},(function(){e=u(t)})),e}function c(t){return t&&"framebuffer"in t?l(t):u(t)}return c}function So(t){return Array.prototype.slice.call(t)}function Eo(t){return So(t).join("")}function To(){var t=0,n=[],r=[];function i(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}function o(){var n=[];function r(){n.push.apply(n,So(arguments))}var i=[];function o(){var e="v"+t++;return i.push(e),arguments.length>0&&(n.push(e,"="),n.push.apply(n,So(arguments)),n.push(";")),e}return e(r,{def:o,toString:function(){return Eo([i.length>0?"var "+i.join(",")+";":"",Eo(n)])}})}function a(){var t=o(),n=o(),r=t.toString,i=n.toString;function a(e,r){n(e,r,"=",t.def(e,r),";")}return e((function(){t.apply(t,So(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()+i()}})}function s(){var t=Eo(arguments),n=a(),r=a(),i=n.toString,o=r.toString;return e(n,{then:function(){return n.apply(n,So(arguments)),this},else:function(){return r.apply(r,So(arguments)),this},toString:function(){var e=o();return e&&(e="else{"+e+"}"),Eo(["if(",t,"){",i(),"}",e])}})}var u=o(),l={};function c(t,n){var r=[];function i(){var t="a"+r.length;return r.push(t),t}n=n||0;for(var o=0;o<n;++o)i();var s=a(),u=s.toString,c=l[t]=e(s,{arg:i,toString:function(){return Eo(["function(",r.join(),"){",u(),"}"])}});return c}function f(){var t=['"use strict";',u,"return {"];Object.keys(l).forEach((function(e){t.push('"',e,'":',l[e].toString(),",")})),t.push("}");var e=Eo(t).replace(/;/g,";\n").replace(/}/g,"}\n").replace(/{/g,"{\n"),i=Function.apply(null,n.concat(e));return i.apply(null,r)}return{global:u,link:i,block:o,proc:c,scope:a,cond:s,compile:f}}var ko="xyzw".split(""),Co=5121,Mo=1,Ao=2,Io=0,Oo=1,Do=2,Po=3,Lo=4,No=5,Ro=6,jo="dither",Fo="blend.enable",Bo="blend.color",zo="blend.equation",Zo="blend.func",Uo="depth.enable",Ho="depth.func",$o="depth.range",Go="depth.mask",Wo="colorMask",Vo="cull.enable",Yo="cull.face",Xo="frontFace",qo="lineWidth",Ko="polygonOffset.enable",Jo="polygonOffset.offset",Qo="sample.alpha",ta="sample.enable",ea="sample.coverage",na="stencil.enable",ra="stencil.mask",ia="stencil.func",oa="stencil.opFront",aa="stencil.opBack",sa="scissor.enable",ua="scissor.box",la="viewport",ca="profile",fa="framebuffer",ha="vert",da="frag",pa="elements",ga="primitive",va="count",ma="offset",ya="instances",ba="vao",xa="Width",_a="Height",wa=fa+xa,Sa=fa+_a,Ea=la+xa,Ta=la+_a,ka="drawingBuffer",Ca=ka+xa,Ma=ka+_a,Aa=[Zo,zo,ia,oa,aa,ea,la,ua,Jo],Ia=34962,Oa=34963,Da=35632,Pa=35633,La=3553,Na=34067,Ra=2884,ja=3042,Fa=3024,Ba=2960,za=2929,Za=3089,Ua=32823,Ha=32926,$a=32928,Ga=5126,Wa=35664,Va=35665,Ya=35666,Xa=5124,qa=35667,Ka=35668,Ja=35669,Qa=35670,ts=35671,es=35672,ns=35673,rs=35674,is=35675,os=35676,as=35678,ss=35680,us=4,ls=1028,cs=1029,fs=2304,hs=2305,ds=32775,ps=32776,gs=519,vs=7680,ms=0,ys=1,bs=32774,xs=513,_s=36160,ws=36064,Ss={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},Es=["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"],Ts={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},ks={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Cs={frag:Da,vert:Pa},Ms={cw:fs,ccw:hs};function As(e){return Array.isArray(e)||t(e)||Ee(e)}function Is(t){return t.sort((function(t,e){return t===la?-1:e===la?1:t<e?-1:1}))}function Os(t,e,n,r){this.thisDep=t,this.contextDep=e,this.propDep=n,this.append=r}function Ds(t){return t&&!(t.thisDep||t.contextDep||t.propDep)}function Ps(t){return new Os(!1,!1,!1,t)}function Ls(t,e){var n=t.type;if(n===Io){var r=t.data.length;return new Os(!0,r>=1,r>=2,e)}if(n===Lo){var i=t.data;return new Os(i.thisDep,i.contextDep,i.propDep,e)}if(n===No)return new Os(!1,!1,!1,e);if(n===Ro){for(var o=!1,a=!1,s=!1,u=0;u<t.data.length;++u){var l=t.data[u];if(l.type===Oo)s=!0;else if(l.type===Do)a=!0;else if(l.type===Po)o=!0;else if(l.type===Io){o=!0;var c=l.data;c>=1&&(a=!0),c>=2&&(s=!0)}else l.type===Lo&&(o=o||l.data.thisDep,a=a||l.data.contextDep,s=s||l.data.propDep)}return new Os(o,a,s,e)}return new Os(n===Po,n===Do,n===Oo,e)}var Ns=new Os(!1,!1,!1,(function(){}));function Rs(t,n,r,i,o,a,s,u,l,c,f,h,d,p,g){var v=c.Record,m={add:32774,subtract:32778,"reverse subtract":32779};r.ext_blend_minmax&&(m.min=ds,m.max=ps);var y=r.angle_instanced_arrays,b=r.webgl_draw_buffers,x={dirty:!0,profile:g.profile},_={},w=[],S={},E={};function T(t){return t.replace(".","_")}function k(t,e,n){var r=T(t);w.push(t),_[r]=x[r]=!!n,S[r]=e}function C(t,e,n){var r=T(t);w.push(t),Array.isArray(n)?(x[r]=n.slice(),_[r]=n.slice()):x[r]=_[r]=n,E[r]=e}k(jo,Fa),k(Fo,ja),C(Bo,"blendColor",[0,0,0,0]),C(zo,"blendEquationSeparate",[bs,bs]),C(Zo,"blendFuncSeparate",[ys,ms,ys,ms]),k(Uo,za,!0),C(Ho,"depthFunc",xs),C($o,"depthRange",[0,1]),C(Go,"depthMask",!0),C(Wo,Wo,[!0,!0,!0,!0]),k(Vo,Ra),C(Yo,"cullFace",cs),C(Xo,Xo,hs),C(qo,qo,1),k(Ko,Ua),C(Jo,"polygonOffset",[0,0]),k(Qo,Ha),k(ta,$a),C(ea,"sampleCoverage",[1,!1]),k(na,Ba),C(ra,"stencilMask",-1),C(ia,"stencilFunc",[gs,0,-1]),C(oa,"stencilOpSeparate",[ls,vs,vs,vs]),C(aa,"stencilOpSeparate",[cs,vs,vs,vs]),k(sa,Za),C(ua,"scissor",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),C(la,la,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var M={gl:t,context:d,strings:n,next:_,current:x,draw:h,elements:a,buffer:o,shader:f,attributes:c.state,vao:c,uniforms:l,framebuffer:u,extensions:r,timer:p,isBufferArgs:As},A={primTypes:cn,compareFuncs:Ts,blendFuncs:Ss,blendEquations:m,stencilOps:ks,glTypes:Ue,orientationType:Ms};rt.optional((function(){M.isArrayLike=Mn})),b&&(A.backBuffer=[cs],A.drawBuffer=Ct(i.maxDrawbuffers,(function(t){return 0===t?[0]:Ct(t,(function(t){return ws+t}))})));var I=0;function O(){var t=To(),e=t.link,r=t.global;t.id=I++,t.batchId="0";var i=e(M),o=t.shared={props:"a0"};Object.keys(M).forEach((function(t){o[t]=r.def(i,".",t)})),rt.optional((function(){t.CHECK=e(rt),t.commandStr=rt.guessCommand(),t.command=e(t.commandStr),t.assert=function(t,n,r){t("if(!(",n,"))",this.CHECK,".commandRaise(",e(r),",",this.command,");")},A.invalidBlendCombinations=Es}));var a=t.next={},s=t.current={};Object.keys(E).forEach((function(t){Array.isArray(x[t])&&(a[t]=r.def(o.next,".",t),s[t]=r.def(o.current,".",t))}));var u=t.constants={};Object.keys(A).forEach((function(t){u[t]=r.def(JSON.stringify(A[t]))})),t.invoke=function(n,r){switch(r.type){case Io:var i=["this",o.context,o.props,t.batchId];return n.def(e(r.data),".call(",i.slice(0,Math.max(r.data.length+1,4)),")");case Oo:return n.def(o.props,r.data);case Do:return n.def(o.context,r.data);case Po:return n.def("this",r.data);case Lo:return r.data.append(t,n),r.data.ref;case No:return r.data.toString();case Ro:return r.data.map((function(e){return t.invoke(n,e)}))}},t.attribCache={};var l={};return t.scopeAttrib=function(t){var r=n.id(t);if(r in l)return l[r];var i=c.scope[r];i||(i=c.scope[r]=new v);var o=l[r]=e(i);return o},t}function D(t){var e,n=t.static,r=t.dynamic;if(ca in n){var i=!!n[ca];e=Ps((function(t,e){return i})),e.enable=i}else if(ca in r){var o=r[ca];e=Ls(o,(function(t,e){return t.invoke(e,o)}))}return e}function P(t,e){var n=t.static,r=t.dynamic;if(fa in n){var i=n[fa];return i?(i=u.getFramebuffer(i),rt.command(i,"invalid framebuffer object"),Ps((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,"."+wa,n+".width"),e.set(o,"."+Sa,n+".height"),n}))):Ps((function(t,e){var n=t.shared;e.set(n.framebuffer,".next","null");var r=n.context;return e.set(r,"."+wa,r+"."+Ca),e.set(r,"."+Sa,r+"."+Ma),"null"}))}if(fa in r){var o=r[fa];return Ls(o,(function(t,e){var n=t.invoke(e,o),r=t.shared,i=r.framebuffer,a=e.def(i,".getFramebuffer(",n,")");rt.optional((function(){t.assert(e,"!"+n+"||"+a,"invalid framebuffer object")})),e.set(i,".next",a);var s=r.context;return e.set(s,"."+wa,a+"?"+a+".width:"+s+"."+Ca),e.set(s,"."+Sa,a+"?"+a+".height:"+s+"."+Ma),a}))}return null}function L(t,e,n){var r=t.static,i=t.dynamic;function o(t){if(t in r){var o=r[t];rt.commandType(o,"object","invalid "+t,n.commandStr);var a,s,u=!0,l=0|o.x,c=0|o.y;return"width"in o?(a=0|o.width,rt.command(a>=0,"invalid "+t,n.commandStr)):u=!1,"height"in o?(s=0|o.height,rt.command(s>=0,"invalid "+t,n.commandStr)):u=!1,new Os(!u&&e&&e.thisDep,!u&&e&&e.contextDep,!u&&e&&e.propDep,(function(t,e){var n=t.shared.context,r=a;"width"in o||(r=e.def(n,".",wa,"-",l));var i=s;return"height"in o||(i=e.def(n,".",Sa,"-",c)),[l,c,r,i]}))}if(t in i){var f=i[t],h=Ls(f,(function(e,n){var r=e.invoke(n,f);rt.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,".",wa,"-",o,")"),u=n.def('"height" in ',r,"?",r,".height|0:","(",i,".",Sa,"-",a,")");return rt.optional((function(){e.assert(n,s+">=0&&"+u+">=0","invalid "+t)})),[o,a,s,u]}));return e&&(h.thisDep=h.thisDep||e.thisDep,h.contextDep=h.contextDep||e.contextDep,h.propDep=h.propDep||e.propDep),h}return e?new Os(e.thisDep,e.contextDep,e.propDep,(function(t,e){var n=t.shared.context;return[0,0,e.def(n,".",wa),e.def(n,".",Sa)]})):null}var a=o(la);if(a){var s=a;a=new Os(a.thisDep,a.contextDep,a.propDep,(function(t,e){var n=s.append(t,e),r=t.shared.context;return e.set(r,"."+Ea,n[2]),e.set(r,"."+Ta,n[3]),n}))}return{viewport:a,scissor_box:o(ua)}}function N(t,e){var n=t.static,r="string"===typeof n[da]&&"string"===typeof n[ha];if(r){if(Object.keys(e.dynamic).length>0)return null;var i=e.static,o=Object.keys(i);if(o.length>0&&"number"===typeof i[o[0]]){for(var a=[],s=0;s<o.length;++s)rt("number"===typeof i[o[s]],"must specify all vertex attribute locations when using vaos"),a.push([0|i[o[s]],o[s]]);return a}}return null}function R(t,e,r){var i=t.static,o=t.dynamic;function a(t){if(t in i){var e=n.id(i[t]);rt.optional((function(){f.shader(Cs[t],e,rt.guessCommand())}));var r=Ps((function(){return e}));return r.id=e,r}if(t in o){var a=o[t];return Ls(a,(function(e,n){var r=e.invoke(n,a),i=n.def(e.shared.strings,".id(",r,")");return rt.optional((function(){n(e.shared.shader,".shader(",Cs[t],",",i,",",e.command,");")})),i}))}return null}var s,u=a(da),l=a(ha),c=null;return Ds(u)&&Ds(l)?(c=f.program(l.id,u.id,null,r),s=Ps((function(t,e){return t.link(c)}))):s=new Os(u&&u.thisDep||l&&l.thisDep,u&&u.contextDep||l&&l.contextDep,u&&u.propDep||l&&l.propDep,(function(t,e){var n,r,i=t.shared.shader;n=u?u.append(t,e):e.def(i,".",da),r=l?l.append(t,e):e.def(i,".",ha);var o=i+".program("+r+","+n;return rt.optional((function(){o+=","+t.command})),e.def(o+")")})),{frag:u,vert:l,progVar:s,program:c}}function j(t,e){var n=t.static,r=t.dynamic;function i(){if(pa in n){var t=n[pa];As(t)?t=a.getElements(a.create(t,!0)):t&&(t=a.getElements(t),rt.command(t,"invalid elements",e.commandStr));var i=Ps((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(pa in r){var o=r[pa];return Ls(o,(function(t,e){var n=t.shared,r=n.isBufferArgs,i=n.elements,a=t.invoke(e,o),s=e.def("null"),u=e.def(r,"(",a,")"),l=t.cond(u).then(s,"=",i,".createStream(",a,");").else(s,"=",i,".getElements(",a,");");return rt.optional((function(){t.assert(l.else,"!"+a+"||"+s,"invalid elements")})),e.entry(l),e.exit(t.cond(u).then(i,".destroyStream(",s,");")),t.ELEMENTS=s,s}))}return null}var o=i();function s(){if(ga in n){var t=n[ga];return rt.commandParameter(t,cn,"invalid primitve",e.commandStr),Ps((function(e,n){return cn[t]}))}if(ga in r){var i=r[ga];return Ls(i,(function(t,e){var n=t.constants.primTypes,r=t.invoke(e,i);return rt.optional((function(){t.assert(e,r+" in "+n,"invalid primitive, must be one of "+Object.keys(cn))})),e.def(n,"[",r,"]")}))}return o?Ds(o)?o.value?Ps((function(t,e){return e.def(t.ELEMENTS,".primType")})):Ps((function(){return us})):new Os(o.thisDep,o.contextDep,o.propDep,(function(t,e){var n=t.ELEMENTS;return e.def(n,"?",n,".primType:",us)})):null}function u(t,i){if(t in n){var a=0|n[t];return rt.command(!i||a>=0,"invalid "+t,e.commandStr),Ps((function(t,e){return i&&(t.OFFSET=a),a}))}if(t in r){var s=r[t];return Ls(s,(function(e,n){var r=e.invoke(n,s);return i&&(e.OFFSET=r,rt.optional((function(){e.assert(n,r+">=0","invalid "+t)}))),r}))}return i&&o?Ps((function(t,e){return t.OFFSET="0",0})):null}var l=u(ma,!0);function c(){if(va in n){var t=0|n[va];return rt.command("number"===typeof t&&t>=0,"invalid vertex count",e.commandStr),Ps((function(){return t}))}if(va in r){var i=r[va];return Ls(i,(function(t,e){var n=t.invoke(e,i);return rt.optional((function(){t.assert(e,"typeof "+n+'==="number"&&'+n+">=0&&"+n+"===("+n+"|0)","invalid vertex count")})),n}))}if(o){if(Ds(o)){if(o)return l?new Os(l.thisDep,l.contextDep,l.propDep,(function(t,e){var n=e.def(t.ELEMENTS,".vertCount-",t.OFFSET);return rt.optional((function(){t.assert(e,n+">=0","invalid vertex offset/element buffer too small")})),n})):Ps((function(t,e){return e.def(t.ELEMENTS,".vertCount")}));var a=Ps((function(){return-1}));return rt.optional((function(){a.MISSING=!0})),a}var s=new Os(o.thisDep||l.thisDep,o.contextDep||l.contextDep,o.propDep||l.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 rt.optional((function(){s.DYNAMIC=!0})),s}return null}return{elements:o,primitive:s(),count:c(),instances:u(ya,!1),offset:l}}function F(t,e){var n=t.static,r=t.dynamic,o={};return w.forEach((function(t){var a=T(t);function s(e,i){if(t in n){var s=e(n[t]);o[a]=Ps((function(){return s}))}else if(t in r){var u=r[t];o[a]=Ls(u,(function(t,e){return i(t,e,t.invoke(e,u))}))}}switch(t){case Vo:case Fo:case jo:case na:case Uo:case sa:case Ko:case Qo:case ta:case Go:return s((function(n){return rt.commandType(n,"boolean",t,e.commandStr),n}),(function(e,n,r){return rt.optional((function(){e.assert(n,"typeof "+r+'==="boolean"',"invalid flag "+t,e.commandStr)})),r}));case Ho:return s((function(n){return rt.commandParameter(n,Ts,"invalid "+t,e.commandStr),Ts[n]}),(function(e,n,r){var i=e.constants.compareFuncs;return rt.optional((function(){e.assert(n,r+" in "+i,"invalid "+t+", must be one of "+Object.keys(Ts))})),n.def(i,"[",r,"]")}));case $o:return s((function(t){return rt.command(Mn(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){rt.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")}));var r=e.def("+",n,"[0]"),i=e.def("+",n,"[1]");return[r,i]}));case Zo:return s((function(t){rt.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 rt.commandParameter(n,Ss,a+".srcRGB",e.commandStr),rt.commandParameter(r,Ss,a+".srcAlpha",e.commandStr),rt.commandParameter(i,Ss,a+".dstRGB",e.commandStr),rt.commandParameter(o,Ss,a+".dstAlpha",e.commandStr),rt.command(-1===Es.indexOf(n+", "+i),"unallowed blending combination (srcRGB, dstRGB) = ("+n+", "+i+")",e.commandStr),[Ss[n],Ss[i],Ss[r],Ss[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 rt.optional((function(){e.assert(n,s+" in "+i,"invalid "+t+"."+o+a+", must be one of "+Object.keys(Ss))})),s}rt.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");rt.optional((function(){var t=e.constants.invalidBlendCombinations;e.assert(n,t+".indexOf("+a+'+", "+'+s+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")}));var u=n.def(i,"[",a,"]"),l=n.def(i,"[",o("src","Alpha"),"]"),c=n.def(i,"[",s,"]"),f=n.def(i,"[",o("dst","Alpha"),"]");return[u,c,l,f]}));case zo:return s((function(n){return"string"===typeof n?(rt.commandParameter(n,m,"invalid "+t,e.commandStr),[m[n],m[n]]):"object"===typeof n?(rt.commandParameter(n.rgb,m,t+".rgb",e.commandStr),rt.commandParameter(n.alpha,m,t+".alpha",e.commandStr),[m[n.rgb],m[n.alpha]]):void rt.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 rt.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 Bo:return s((function(t){return rt.command(Mn(t)&&4===t.length,"blend.color must be a 4d array",e.commandStr),Ct(4,(function(e){return+t[e]}))}),(function(t,e,n){return rt.optional((function(){t.assert(e,t.shared.isArrayLike+"("+n+")&&"+n+".length===4","blend.color must be a 4d array")})),Ct(4,(function(t){return e.def("+",n,"[",t,"]")}))}));case ra:return s((function(t){return rt.commandType(t,"number",a,e.commandStr),0|t}),(function(t,e,n){return rt.optional((function(){t.assert(e,"typeof "+n+'==="number"',"invalid stencil.mask")})),e.def(n,"|0")}));case ia:return s((function(n){rt.commandType(n,"object",a,e.commandStr);var r=n.cmp||"keep",i=n.ref||0,o="mask"in n?n.mask:-1;return rt.commandParameter(r,Ts,t+".cmp",e.commandStr),rt.commandType(i,"number",t+".ref",e.commandStr),rt.commandType(o,"number",t+".mask",e.commandStr),[Ts[r],i,o]}),(function(t,e,n){var r=t.constants.compareFuncs;rt.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,")")}));var i=e.def('"cmp" in ',n,"?",r,"[",n,".cmp]",":",vs),o=e.def(n,".ref|0"),a=e.def('"mask" in ',n,"?",n,".mask|0:-1");return[i,o,a]}));case oa:case aa:return s((function(n){rt.commandType(n,"object",a,e.commandStr);var r=n.fail||"keep",i=n.zfail||"keep",o=n.zpass||"keep";return rt.commandParameter(r,ks,t+".fail",e.commandStr),rt.commandParameter(i,ks,t+".zfail",e.commandStr),rt.commandParameter(o,ks,t+".zpass",e.commandStr),[t===aa?cs:ls,ks[r],ks[i],ks[o]]}),(function(e,n,r){var i=e.constants.stencilOps;function o(o){return rt.optional((function(){e.assert(n,'!("'+o+'" in '+r+")||("+r+"."+o+" in "+i+")","invalid "+t+"."+o+", must be one of "+Object.keys(ks))})),n.def('"',o,'" in ',r,"?",i,"[",r,".",o,"]:",vs)}return rt.optional((function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+t)})),[t===aa?cs:ls,o("fail"),o("zfail"),o("zpass")]}));case Jo:return s((function(t){rt.commandType(t,"object",a,e.commandStr);var n=0|t.factor,r=0|t.units;return rt.commandType(n,"number",a+".factor",e.commandStr),rt.commandType(r,"number",a+".units",e.commandStr),[n,r]}),(function(e,n,r){rt.optional((function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+t)}));var i=n.def(r,".factor|0"),o=n.def(r,".units|0");return[i,o]}));case Yo:return s((function(t){var n=0;return"front"===t?n=ls:"back"===t&&(n=cs),rt.command(!!n,a,e.commandStr),n}),(function(t,e,n){return rt.optional((function(){t.assert(e,n+'==="front"||'+n+'==="back"',"invalid cull.face")})),e.def(n,'==="front"?',ls,":",cs)}));case qo:return s((function(t){return rt.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 rt.optional((function(){t.assert(e,"typeof "+n+'==="number"&&'+n+">="+i.lineWidthDims[0]+"&&"+n+"<="+i.lineWidthDims[1],"invalid line width")})),n}));case Xo:return s((function(t){return rt.commandParameter(t,Ms,a,e.commandStr),Ms[t]}),(function(t,e,n){return rt.optional((function(){t.assert(e,n+'==="cw"||'+n+'==="ccw"',"invalid frontFace, must be one of cw,ccw")})),e.def(n+'==="cw"?'+fs+":"+hs)}));case Wo:return s((function(t){return rt.command(Mn(t)&&4===t.length,"color.mask must be length 4 array",e.commandStr),t.map((function(t){return!!t}))}),(function(t,e,n){return rt.optional((function(){t.assert(e,t.shared.isArrayLike+"("+n+")&&"+n+".length===4","invalid color.mask")})),Ct(4,(function(t){return"!!"+n+"["+t+"]"}))}));case ea:return s((function(t){rt.command("object"===typeof t&&t,a,e.commandStr);var n="value"in t?t.value:1,r=!!t.invert;return rt.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){rt.optional((function(){t.assert(e,n+"&&typeof "+n+'==="object"',"invalid sample.coverage")}));var r=e.def('"value" in ',n,"?+",n,".value:1"),i=e.def("!!",n,".invert");return[r,i]}))}})),o}function B(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=Ps((function(){return o}));else if("function"===typeof o){var a=o._reglType;"texture2d"===a||"textureCube"===a?r=Ps((function(t){return t.link(o)})):"framebuffer"===a||"framebufferCube"===a?(rt.command(o.color.length>0,'missing color attachment for framebuffer sent to uniform "'+t+'"',e.commandStr),r=Ps((function(t){return t.link(o.color[0])}))):rt.commandRaise('invalid data for uniform "'+t+'"',e.commandStr)}else Mn(o)?r=Ps((function(e){var n=e.global.def("[",Ct(o.length,(function(n){return rt.command("number"===typeof o[n]||"boolean"===typeof o[n],"invalid uniform "+t,e.commandStr),o[n]})),"]");return n})):rt.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]=Ls(e,(function(t,n){return t.invoke(n,e)}))})),i}function z(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),u=new v;if(As(i))u.state=Mo,u.buffer=o.getBuffer(o.create(i,Ia,!1,!0)),u.type=0;else{var l=o.getBuffer(i);if(l)u.state=Mo,u.buffer=l,u.type=0;else if(rt.command("object"===typeof i&&i,"invalid data for attribute "+t,e.commandStr),"constant"in i){var c=i.constant;u.buffer="null",u.state=Ao,"number"===typeof c?u.x=c:(rt.command(Mn(c)&&c.length>0&&c.length<=4,"invalid constant for attribute "+t,e.commandStr),ko.forEach((function(t,e){e<c.length&&(u[t]=c[e])})))}else{l=As(i.buffer)?o.getBuffer(o.create(i.buffer,Ia,!1,!0)):o.getBuffer(i.buffer),rt.command(!!l,'missing buffer for attribute "'+t+'"',e.commandStr);var f=0|i.offset;rt.command(f>=0,'invalid offset for attribute "'+t+'"',e.commandStr);var h=0|i.stride;rt.command(h>=0&&h<256,'invalid stride for attribute "'+t+'", must be integer betweeen [0, 255]',e.commandStr);var d=0|i.size;rt.command(!("size"in i)||d>0&&d<=4,'invalid size for attribute "'+t+'", must be 1,2,3,4',e.commandStr);var p=!!i.normalized,g=0;"type"in i&&(rt.commandParameter(i.type,Ue,"invalid type for attribute "+t,e.commandStr),g=Ue[i.type]);var m=0|i.divisor;"divisor"in i&&(rt.command(0===m||y,'cannot specify divisor for attribute "'+t+'", instancing not supported',e.commandStr),rt.command(m>=0,'invalid divisor for attribute "'+t+'"',e.commandStr)),rt.optional((function(){var n=e.commandStr,r=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(i).forEach((function(e){rt.command(r.indexOf(e)>=0,'unknown parameter "'+e+'" for attribute pointer "'+t+'" (valid parameters are '+r+")",n)}))})),u.buffer=l,u.state=Mo,u.size=d,u.normalized=p,u.type=g||l.dtype,u.offset=f,u.stride=h,u.divisor=m}}a[t]=Ps((function(t,e){var n=t.attribCache;if(s in n)return n[s];var r={isStream:!1};return Object.keys(u).forEach((function(t){r[t]=u[t]})),u.buffer&&(r.buffer=t.link(u.buffer),r.type=r.type||r.buffer+".dtype"),n[s]=r,r}))})),Object.keys(i).forEach((function(t){var e=i[t];function n(n,r){var i=n.invoke(r,e),o=n.shared,a=n.constants,s=o.isBufferArgs,u=o.buffer;rt.optional((function(){n.assert(r,i+"&&(typeof "+i+'==="object"||typeof '+i+'==="function")&&('+s+"("+i+")||"+u+".getBuffer("+i+")||"+u+".getBuffer("+i+".buffer)||"+s+"("+i+'.buffer)||("constant" in '+i+"&&(typeof "+i+'.constant==="number"||'+o.isArrayLike+"("+i+".constant))))",'invalid dynamic attribute "'+t+'"')}));var l={isStream:r.def(!1)},c=new v;c.state=Mo,Object.keys(c).forEach((function(t){l[t]=r.def(""+c[t])}));var f=l.buffer,h=l.type;function d(t){r(l[t],"=",i,".",t,"|0;")}return r("if(",s,"(",i,")){",l.isStream,"=true;",f,"=",u,".createStream(",Ia,",",i,");",h,"=",f,".dtype;","}else{",f,"=",u,".getBuffer(",i,");","if(",f,"){",h,"=",f,".dtype;",'}else if("constant" in ',i,"){",l.state,"=",Ao,";","if(typeof "+i+'.constant === "number"){',l[ko[0]],"=",i,".constant;",ko.slice(1).map((function(t){return l[t]})).join("="),"=0;","}else{",ko.map((function(t,e){return l[t]+"="+i+".constant.length>"+e+"?"+i+".constant["+e+"]:0;"})).join(""),"}}else{","if(",s,"(",i,".buffer)){",f,"=",u,".createStream(",Ia,",",i,".buffer);","}else{",f,"=",u,".getBuffer(",i,".buffer);","}",h,'="type" in ',i,"?",a.glTypes,"[",i,".type]:",f,".dtype;",l.normalized,"=!!",i,".normalized;"),d("size"),d("offset"),d("stride"),d("divisor"),r("}}"),r.exit("if(",l.isStream,"){",u,".destroyStream(",f,");","}"),l}a[t]=Ls(e,n)})),a}function Z(t,e){var n=t.static,r=t.dynamic;if(ba in n){var i=n[ba];return null!==i&&null===c.getVAO(i)&&(i=c.createVAO(i)),Ps((function(t){return t.link(c.getVAO(i))}))}if(ba in r){var o=r[ba];return Ls(o,(function(t,e){var n=t.invoke(e,o);return e.def(t.shared.vao+".getVAO("+n+")")}))}return null}function U(t){var e=t.static,n=t.dynamic,r={};return Object.keys(e).forEach((function(t){var n=e[t];r[t]=Ps((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]=Ls(e,(function(t,n){return t.invoke(n,e)}))})),r}function H(t,e,n,i,o){var a=t.static,s=t.dynamic;rt.optional((function(){var t=[fa,ha,da,pa,ga,ma,va,ya,ca,ba].concat(w);function e(e){Object.keys(e).forEach((function(e){rt.command(t.indexOf(e)>=0,'unknown parameter "'+e+'"',o.commandStr)}))}e(a),e(s)}));var u=N(t,e),l=P(t,o),f=L(t,l,o),h=j(t,o),d=F(t,o),p=R(t,o,u);function g(t){var e=f[t];e&&(d[t]=e)}g(la),g(T(ua));var v=Object.keys(d).length>0,m={framebuffer:l,draw:h,shader:p,state:d,dirty:v,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(m.profile=D(t,o),m.uniforms=B(n,o),m.drawVAO=m.scopeVAO=Z(t,o),!m.drawVAO&&p.program&&!u&&r.angle_instanced_arrays){var y=!0,b=p.program.attributes.map((function(t){var n=e.static[t];return y=y&&!!n,n}));if(y&&b.length>0){var x=c.getVAO(c.createVAO(b));m.drawVAO=new Os(null,null,null,(function(t,e){return t.link(x)})),m.useVAO=!0}}return u?m.useVAO=!0:m.attributes=z(e,o),m.context=U(i,o),m}function $(t,e,n){var r=t.shared,i=r.context,o=t.scope();Object.keys(n).forEach((function(r){e.save(i,"."+r);var a=n[r],s=a.append(t,e);Array.isArray(s)?o(i,".",r,"=[",s.join(),"];"):o(i,".",r,"=",s,";")})),e(o)}function G(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 u,l=t.constants,c=l.drawBuffer,f=l.backBuffer;u=n?n.append(t,e):e.def(s,".next"),r||e("if(",u,"!==",s,".cur){"),e("if(",u,"){",a,".bindFramebuffer(",_s,",",u,".framebuffer);"),b&&e(i,".drawBuffersWEBGL(",c,"[",u,".colorAttachments.length]);"),e("}else{",a,".bindFramebuffer(",_s,",null);"),b&&e(i,".drawBuffersWEBGL(",f,");"),e("}",s,".cur=",u,";"),r||e("}")}function W(t,e,n){var r=t.shared,i=r.gl,o=t.current,a=t.next,s=r.current,u=r.next,l=t.cond(s,".dirty");w.forEach((function(e){var r,c,f=T(e);if(!(f in n.state))if(f in a){r=a[f],c=o[f];var h=Ct(x[f].length,(function(t){return l.def(r,"[",t,"]")}));l(t.cond(h.map((function(t,e){return t+"!=="+c+"["+e+"]"})).join("||")).then(i,".",E[f],"(",h,");",h.map((function(t,e){return c+"["+e+"]="+t})).join(";"),";"))}else{r=l.def(u,".",f);var d=t.cond(r,"!==",s,".",f);l(d),f in S?d(t.cond(r).then(i,".enable(",S[f],");").else(i,".disable(",S[f],");"),s,".",f,"=",r,";"):d(i,".",E[f],"(",r,");",s,".",f,"=",r,";")}})),0===Object.keys(n.state).length&&l(s,".dirty=false;"),e(l)}function V(t,e,n,r){var i=t.shared,o=t.current,a=i.current,s=i.gl;Is(Object.keys(n)).forEach((function(i){var u=n[i];if(!r||r(u)){var l=u.append(t,e);if(S[i]){var c=S[i];Ds(u)?e(s,l?".enable(":".disable(",c,");"):e(t.cond(l).then(s,".enable(",c,");").else(s,".disable(",c,");")),e(a,".",i,"=",l,";")}else if(Mn(l)){var f=o[i];e(s,".",E[i],"(",l,");",l.map((function(t,e){return f+"["+e+"]="+t})).join(";"),";")}else e(s,".",E[i],"(",l,");",a,".",i,"=",l,";")}}))}function Y(t,e){y&&(t.instancing=e.def(t.shared.extensions,".angle_instanced_arrays"))}function X(t,e,n,r,i){var o,a,s,u=t.shared,l=t.stats,c=u.current,f=u.timer,h=n.profile;function d(){return"undefined"===typeof performance?"Date.now()":"performance.now()"}function g(t){o=e.def(),t(o,"=",d(),";"),"string"===typeof i?t(l,".count+=",i,";"):t(l,".count++;"),p&&(r?(a=e.def(),t(a,"=",f,".getNumPendingQueries();")):t(f,".beginQuery(",l,");"))}function v(t){t(l,".cpuTime+=",d(),"-",o,";"),p&&(r?t(f,".pushScopeStats(",a,",",f,".getNumPendingQueries(),",l,");"):t(f,".endQuery();"))}function m(t){var n=e.def(c,".profile");e(c,".profile=",t,";"),e.exit(c,".profile=",n,";")}if(h){if(Ds(h))return void(h.enable?(g(e),v(e.exit),m("true")):m("false"));s=h.append(t,e),m(s)}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 q(t,e,n,r,i){var o=t.shared;function a(t){switch(t){case Wa:case qa:case ts:return 2;case Va:case Ka:case es:return 3;case Ya:case Ja:case ns:return 4;default:return 1}}function s(n,r,i){var a=o.gl,s=e.def(n,".location"),u=e.def(o.attributes,"[",s,"]"),l=i.state,c=i.buffer,f=[i.x,i.y,i.z,i.w],h=["buffer","normalized","offset","stride"];function d(){e("if(!",u,".buffer){",a,".enableVertexAttribArray(",s,");}");var n,o=i.type;if(n=i.size?e.def(i.size,"||",r):r,e("if(",u,".type!==",o,"||",u,".size!==",n,"||",h.map((function(t){return u+"."+t+"!=="+i[t]})).join("||"),"){",a,".bindBuffer(",Ia,",",c,".buffer);",a,".vertexAttribPointer(",[s,n,o,i.normalized,i.stride,i.offset],");",u,".type=",o,";",u,".size=",n,";",h.map((function(t){return u+"."+t+"="+i[t]+";"})).join(""),"}"),y){var l=i.divisor;e("if(",u,".divisor!==",l,"){",t.instancing,".vertexAttribDivisorANGLE(",[s,l],");",u,".divisor=",l,";}")}}function p(){e("if(",u,".buffer){",a,".disableVertexAttribArray(",s,");",u,".buffer=null;","}if(",ko.map((function(t,e){return u+"."+t+"!=="+f[e]})).join("||"),"){",a,".vertexAttrib4f(",s,",",f,");",ko.map((function(t,e){return u+"."+t+"="+f[e]+";"})).join(""),"}")}l===Mo?d():l===Ao?p():(e("if(",l,"===",Mo,"){"),d(),e("}else{"),p(),e("}"))}r.forEach((function(r){var o,u=r.name,l=n.attributes[u];if(l){if(!i(l))return;o=l.append(t,e)}else{if(!i(Ns))return;var c=t.scopeAttrib(u);rt.optional((function(){t.assert(e,c+".state","missing attribute "+u)})),o={},Object.keys(new v).forEach((function(t){o[t]=e.def(c,".",t)}))}s(t.link(r),a(r.info.type),o)}))}function K(t,e,r,i,o){for(var a,s=t.shared,u=s.gl,l=0;l<i.length;++l){var c,f=i[l],h=f.name,d=f.info.type,p=r.uniforms[h],g=t.link(f),v=g+".location";if(p){if(!o(p))continue;if(Ds(p)){var m=p.value;if(rt.command(null!==m&&"undefined"!==typeof m,'missing uniform "'+h+'"',t.commandStr),d===as||d===ss){rt.command("function"===typeof m&&(d===as&&("texture2d"===m._reglType||"framebuffer"===m._reglType)||d===ss&&("textureCube"===m._reglType||"framebufferCube"===m._reglType)),"invalid texture for uniform "+h,t.commandStr);var y=t.link(m._texture||m.color[0]._texture);e(u,".uniform1i(",v,",",y+".bind());"),e.exit(y,".unbind();")}else if(d===rs||d===is||d===os){rt.optional((function(){rt.command(Mn(m),"invalid matrix for uniform "+h,t.commandStr),rt.command(d===rs&&4===m.length||d===is&&9===m.length||d===os&&16===m.length,"invalid length for matrix uniform "+h,t.commandStr)}));var b=t.global.def("new Float32Array(["+Array.prototype.slice.call(m)+"])"),x=2;d===is?x=3:d===os&&(x=4),e(u,".uniformMatrix",x,"fv(",v,",false,",b,");")}else{switch(d){case Ga:rt.commandType(m,"number","uniform "+h,t.commandStr),a="1f";break;case Wa:rt.command(Mn(m)&&2===m.length,"uniform "+h,t.commandStr),a="2f";break;case Va:rt.command(Mn(m)&&3===m.length,"uniform "+h,t.commandStr),a="3f";break;case Ya:rt.command(Mn(m)&&4===m.length,"uniform "+h,t.commandStr),a="4f";break;case Qa:rt.commandType(m,"boolean","uniform "+h,t.commandStr),a="1i";break;case Xa:rt.commandType(m,"number","uniform "+h,t.commandStr),a="1i";break;case ts:rt.command(Mn(m)&&2===m.length,"uniform "+h,t.commandStr),a="2i";break;case qa:rt.command(Mn(m)&&2===m.length,"uniform "+h,t.commandStr),a="2i";break;case es:rt.command(Mn(m)&&3===m.length,"uniform "+h,t.commandStr),a="3i";break;case Ka:rt.command(Mn(m)&&3===m.length,"uniform "+h,t.commandStr),a="3i";break;case ns:rt.command(Mn(m)&&4===m.length,"uniform "+h,t.commandStr),a="4i";break;case Ja:rt.command(Mn(m)&&4===m.length,"uniform "+h,t.commandStr),a="4i";break}e(u,".uniform",a,"(",v,",",Mn(m)?Array.prototype.slice.call(m):m,");")}continue}c=p.append(t,e)}else{if(!o(Ns))continue;c=e.def(s.uniforms,"[",n.id(h),"]")}d===as?(rt(!Array.isArray(c),"must specify a scalar prop for textures"),e("if(",c,"&&",c,'._reglType==="framebuffer"){',c,"=",c,".color[0];","}")):d===ss&&(rt(!Array.isArray(c),"must specify a scalar prop for cube maps"),e("if(",c,"&&",c,'._reglType==="framebufferCube"){',c,"=",c,".color[0];","}")),rt.optional((function(){function n(n,r){t.assert(e,n,'bad data or missing for uniform "'+h+'".  '+r)}function r(t){rt(!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)?rt(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){rt(!Array.isArray(c),"must not specify a value type"),n("typeof "+c+'==="function"&&'+c+'._reglType==="texture'+(e===La?"2d":"Cube")+'"',"invalid texture type",t.commandStr)}switch(d){case Xa:r("number");break;case qa:i(2,"number");break;case Ka:i(3,"number");break;case Ja:i(4,"number");break;case Ga:r("number");break;case Wa:i(2,"number");break;case Va:i(3,"number");break;case Ya:i(4,"number");break;case Qa:r("boolean");break;case ts:i(2,"boolean");break;case es:i(3,"boolean");break;case ns:i(4,"boolean");break;case rs:i(4,"number");break;case is:i(9,"number");break;case os:i(16,"number");break;case as:o(La);break;case ss:o(Na);break}}));var _=1;switch(d){case as:case ss:var w=e.def(c,"._texture");e(u,".uniform1i(",v,",",w,".bind());"),e.exit(w,".unbind();");continue;case Xa:case Qa:a="1i";break;case qa:case ts:a="2i",_=2;break;case Ka:case es:a="3i",_=3;break;case Ja:case ns:a="4i",_=4;break;case Ga:a="1f";break;case Wa:a="2f",_=2;break;case Va:a="3f",_=3;break;case Ya:a="4f",_=4;break;case rs:a="Matrix2fv";break;case is:a="Matrix3fv";break;case os:a="Matrix4fv";break}if(e(u,".uniform",a,"(",v,","),"M"===a.charAt(0)){var S=Math.pow(d-rs+2,2),E=t.global.def("new Float32Array(",S,")");Array.isArray(c)?e("false,(",Ct(S,(function(t){return E+"["+t+"]="+c[t]})),",",E,")"):e("false,(Array.isArray(",c,")||",c," instanceof Float32Array)?",c,":(",Ct(S,(function(t){return E+"["+t+"]="+c+"["+t+"]"})),",",E,")")}else _>1?e(Ct(_,(function(t){return Array.isArray(c)?c[t]:c+"["+t+"]"}))):(rt(!Array.isArray(c),"uniform value must not be an array"),e(c));e(");")}}function J(t,e,n,r){var i=t.shared,o=i.gl,a=i.draw,s=r.draw;function u(){var i,u=s.elements,l=e;return u?((u.contextDep&&r.contextDynamic||u.propDep)&&(l=n),i=u.append(t,l)):i=l.def(a,".",pa),i&&l("if("+i+")"+o+".bindBuffer("+Oa+","+i+".buffer.buffer);"),i}function l(){var i,o=s.count,u=e;return o?((o.contextDep&&r.contextDynamic||o.propDep)&&(u=n),i=o.append(t,u),rt.optional((function(){o.MISSING&&t.assert(e,"false","missing vertex count"),o.DYNAMIC&&t.assert(u,i+">=0","missing vertex count")}))):(i=u.def(a,".",va),rt.optional((function(){t.assert(u,i+">=0","missing vertex count")}))),i}var c=u();function f(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 h,d,p=f(ga),g=f(ma),v=l();if("number"===typeof v){if(0===v)return}else n("if(",v,"){"),n.exit("}");y&&(h=f(ya),d=t.instancing);var m=c+".type",b=s.elements&&Ds(s.elements);function x(){function t(){n(d,".drawElementsInstancedANGLE(",[p,v,m,g+"<<(("+m+"-"+Co+")>>1)",h],");")}function e(){n(d,".drawArraysInstancedANGLE(",[p,g,v,h],");")}c?b?t():(n("if(",c,"){"),t(),n("}else{"),e(),n("}")):e()}function _(){function t(){n(o+".drawElements("+[p,v,m,g+"<<(("+m+"-"+Co+")>>1)"]+");")}function e(){n(o+".drawArrays("+[p,g,v]+");")}c?b?t():(n("if(",c,"){"),t(),n("}else{"),e(),n("}")):e()}y&&("number"!==typeof h||h>=0)?"string"===typeof h?(n("if(",h,">0){"),x(),n("}else if(",h,"<0){"),_(),n("}")):x():_()}function Q(t,e,n,r,i){var o=O(),a=o.proc("body",i);return rt.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 tt(t,e,n,r){Y(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);"),q(t,e,n,r.attributes,(function(){return!0}))),K(t,e,n,r.uniforms,(function(){return!0})),J(t,e,e,n)}function et(t,e){var n=t.proc("draw",1);Y(t,n),$(t,n,e.context),G(t,n,e.framebuffer),W(t,n,e),V(t,n,e.state),X(t,n,e,!1,!0);var r=e.shader.progVar.append(t,n);if(n(t.shared.gl,".useProgram(",r,".program);"),e.shader.program)tt(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 Q(tt,t,e,n,1)})),"(",r,");",a,".call(this,a0);"))}Object.keys(e.state).length>0&&n(t.shared.current,".dirty=true;")}function nt(t,e,n,r){function i(){return!0}t.batchId="a1",Y(t,e),q(t,e,n,r.attributes,i),K(t,e,n,r.uniforms,i),J(t,e,e,n)}function it(t,e,n,r){Y(t,e);var i=n.contextDep,o=e.def(),a="a0",s="a1",u=e.def();t.shared.props=u,t.batchId=o;var l=t.scope(),c=t.scope();function f(t){return t.contextDep&&i||t.propDep}function h(t){return!f(t)}if(e(l.entry,"for(",o,"=0;",o,"<",s,";++",o,"){",u,"=",a,"[",o,"];",c,"}",l.exit),n.needsContext&&$(t,c,n.context),n.needsFramebuffer&&G(t,c,n.framebuffer),V(t,c,n.state,f),n.profile&&f(n.profile)&&X(t,c,n,!1,!0),r)n.useVAO?n.drawVAO?f(n.drawVAO)?c(t.shared.vao,".setVAO(",n.drawVAO.append(t,c),");"):l(t.shared.vao,".setVAO(",n.drawVAO.append(t,l),");"):l(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(l(t.shared.vao,".setVAO(null);"),q(t,l,n,r.attributes,h),q(t,c,n,r.attributes,f)),K(t,l,n,r.uniforms,h),K(t,c,n,r.uniforms,f),J(t,l,c,n);else{var d=t.global.def("{}"),p=n.shader.progVar.append(t,c),g=c.def(p,".id"),v=c.def(d,"[",g,"]");c(t.shared.gl,".useProgram(",p,".program);","if(!",v,"){",v,"=",d,"[",g,"]=",t.link((function(e){return Q(nt,t,n,e,2)})),"(",p,");}",v,".call(this,a0[",o,"],",o,");")}}function ot(t,e){var n=t.proc("batch",2);t.batchId="0",Y(t,n);var r=!1,i=!0;Object.keys(e.context).forEach((function(t){r=r||e.context[t].propDep})),r||($(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||G(t,n,o)):G(t,n,null),e.state.viewport&&e.state.viewport.propDep&&(r=!0),W(t,n,e),V(t,n,e.state,(function(t){return!s(t)})),e.profile&&s(e.profile)||X(t,n,e,!1,"a1"),e.contextDep=r,e.needsContext=i,e.needsFramebuffer=a;var u=e.shader.progVar;if(u.contextDep&&r||u.propDep)it(t,n,e,null);else{var l=u.append(t,n);if(n(t.shared.gl,".useProgram(",l,".program);"),e.shader.program)it(t,n,e,e.shader.program);else{n(t.shared.vao,".setVAO(null);");var c=t.global.def("{}"),f=n.def(l,".id"),h=n.def(c,"[",f,"]");n(t.cond(h).then(h,".call(this,a0,a1);").else(h,"=",c,"[",f,"]=",t.link((function(n){return Q(it,t,e,n,2)})),"(",l,");",h,".call(this,a0,a1);"))}}Object.keys(e.state).length>0&&n(t.shared.current,".dirty=true;")}function at(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))}$(t,r,e.context),e.framebuffer&&e.framebuffer.append(t,r),Is(Object.keys(e.state)).forEach((function(n){var o=e.state[n],a=o.append(t,r);Mn(a)?a.forEach((function(e,i){r.set(t.next[n],"["+i+"]",e)})):r.set(i.next,"."+n,a)})),X(t,r,e,!0,!0),[pa,ma,va,ya,ga].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(ha),a(da),Object.keys(e.state).length>0&&(r(o,".dirty=true;"),r.exit(o,".dirty=true;")),r("a1(",t.shared.context,",a0,",t.batchId,");")}function st(t){if("object"===typeof t&&!Mn(t)){for(var e=Object.keys(t),n=0;n<e.length;++n)if(gt.isDynamic(t[e[n]]))return!0;return!1}}function ut(t,e,n){var r=e.static[n];if(r&&st(r)){var i=t.global,o=Object.keys(r),a=!1,s=!1,u=!1,l=t.global.def("{}");o.forEach((function(e){var n=r[e];if(gt.isDynamic(n)){"function"===typeof n&&(n=r[e]=gt.unbox(n));var o=Ls(n,null);a=a||o.thisDep,u=u||o.propDep,s=s||o.contextDep}else{switch(i(l,".",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));break}i(";")}})),e.dynamic[n]=new gt.DynamicVariable(Lo,{thisDep:a,contextDep:s,propDep:u,ref:l,append:c}),delete e.static[n]}function c(t,e){o.forEach((function(n){var i=r[n];if(gt.isDynamic(i)){var o=t.invoke(e,i);e(l,".",n,"=",o,";")}}))}}function lt(t,n,r,i,o){var a=O();a.stats=a.link(o),Object.keys(n.static).forEach((function(t){ut(a,n,t)})),Aa.forEach((function(e){ut(a,t,e)}));var s=H(t,n,r,i,a);return et(a,s),at(a,s),ot(a,s),e(a.compile(),{destroy:function(){s.shader.program.destroy()}})}return{next:_,current:x,procs:function(){var t=O(),e=t.proc("poll"),n=t.proc("refresh"),o=t.block();e(o),n(o);var a,s=t.shared,u=s.gl,l=s.next,c=s.current;o(c,".dirty=false;"),G(t,e),G(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 f=0;f<i.maxAttributes;++f){var h=n.def(s.attributes,"[",f,"]"),d=t.cond(h,".buffer");d.then(u,".enableVertexAttribArray(",f,");",u,".bindBuffer(",Ia,",",h,".buffer.buffer);",u,".vertexAttribPointer(",f,",",h,".size,",h,".type,",h,".normalized,",h,".stride,",h,".offset);").else(u,".disableVertexAttribArray(",f,");",u,".vertexAttrib4f(",f,",",h,".x,",h,".y,",h,".z,",h,".w);",h,".buffer=null;"),n(d),y&&n(a,".vertexAttribDivisorANGLE(",f,",",h,".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(l,".",r),s=t.block();s("if(",a,"){",u,".enable(",i,")}else{",u,".disable(",i,")}",c,".",r,"=",a,";"),n(s),e("if(",a,"!==",c,".",r,"){",s,"}")})),Object.keys(E).forEach((function(r){var i,a,s=E[r],f=x[r],h=t.block();if(h(u,".",s,"("),Mn(f)){var d=f.length;i=t.global.def(l,".",r),a=t.global.def(c,".",r),h(Ct(d,(function(t){return i+"["+t+"]"})),");",Ct(d,(function(t){return a+"["+t+"]="+i+"["+t+"];"})).join("")),e("if(",Ct(d,(function(t){return i+"["+t+"]!=="+a+"["+t+"]"})).join("||"),"){",h,"}")}else i=o.def(l,".",r),a=o.def(c,".",r),h(i,");",c,".",r,"=",i,";"),e("if(",i,"!==",a,"){",h,"}");n(h)})),t.compile()}(),compile:lt}}function js(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var Fs=34918,Bs=34919,zs=35007,Zs=function(t,e){if(!e.ext_disjoint_timer_query)return null;var n=[];function r(){return n.pop()||e.ext_disjoint_timer_query.createQueryEXT()}function i(t){n.push(t)}var o=[];function a(t){var n=r();e.ext_disjoint_timer_query.beginQueryEXT(zs,n),o.push(n),d(o.length-1,o.length,t)}function s(){e.ext_disjoint_timer_query.endQueryEXT(zs)}function u(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var l=[];function c(){return l.pop()||new u}function f(t){l.push(t)}var h=[];function d(t,e,n){var r=c();r.startQueryIndex=t,r.endQueryIndex=e,r.sum=0,r.stats=n,h.push(r)}var p=[],g=[];function v(){var t,n,r=o.length;if(0!==r){g.length=Math.max(g.length,r+1),p.length=Math.max(p.length,r+1),p[0]=0,g[0]=0;var a=0;for(t=0,n=0;n<o.length;++n){var s=o[n];e.ext_disjoint_timer_query.getQueryObjectEXT(s,Bs)?(a+=e.ext_disjoint_timer_query.getQueryObjectEXT(s,Fs),i(s)):o[t++]=s,p[n+1]=a,g[n+1]=t}for(o.length=t,t=0,n=0;n<h.length;++n){var u=h[n],l=u.startQueryIndex,c=u.endQueryIndex;u.sum+=p[c]-p[l];var d=g[l],v=g[c];v===d?(u.stats.gpuTime+=u.sum/1e6,f(u)):(u.startQueryIndex=d,u.endQueryIndex=v,h[t++]=u)}h.length=t}}return{beginQuery:a,endQuery:s,pushScopeStats:d,update:v,getNumPendingQueries:function(){return o.length},clear:function(){n.push.apply(n,o);for(var t=0;t<n.length;t++)e.ext_disjoint_timer_query.deleteQueryEXT(n[t]);o.length=0,n.length=0},restore:function(){o.length=0,n.length=0}}},Us=16384,Hs=256,$s=1024,Gs=34962,Ws="webglcontextlost",Vs="webglcontextrestored",Ys=1,Xs=2,qs=3;function Ks(t,e){for(var n=0;n<t.length;++n)if(t[n]===e)return n;return-1}function Js(t){var n=Tt(t);if(!n)return null;var r=n.gl,i=r.getContextAttributes(),o=r.isContextLost(),a=kt(r,n);if(!a)return null;var s=yt(),u=js(),l=a.extensions,c=Zs(r,l),f=mt(),h=r.drawingBufferWidth,d=r.drawingBufferHeight,p={tick:0,time:0,viewportWidth:h,viewportHeight:d,framebufferWidth:h,framebufferHeight:d,drawingBufferWidth:h,drawingBufferHeight:d,pixelRatio:n.pixelRatio},g={},v={elements:null,primitive:4,count:-1,offset:0,instances:-1},m=Se(r,l),y=nn(r,u,n,x),b=fo(r,l,m,u,y);function x(t){return b.destroyBuffer(t)}var _=Sn(r,l,y,u),w=mo(r,s,u,n),S=hi(r,l,m,(function(){k.procs.poll()}),p,u,n),E=ki(r,l,m,u,n),T=so(r,l,m,S,E,u),k=Rs(r,s,l,m,y,_,S,T,g,b,w,v,p,c,n),C=wo(r,T,k.procs.poll,p,i,l,m),M=k.next,A=r.canvas,I=[],O=[],D=[],P=[n.onDestroy],L=null;function N(){if(0===I.length)return c&&c.update(),void(L=null);L=vt.next(N),V();for(var t=I.length-1;t>=0;--t){var e=I[t];e&&e(p,null,0)}r.flush(),c&&c.update()}function R(){!L&&I.length>0&&(L=vt.next(N))}function j(){L&&(vt.cancel(N),L=null)}function F(t){t.preventDefault(),o=!0,j(),O.forEach((function(t){t()}))}function B(t){r.getError(),o=!1,a.restore(),w.restore(),y.restore(),S.restore(),E.restore(),T.restore(),b.restore(),c&&c.restore(),k.procs.refresh(),R(),D.forEach((function(t){t()}))}function z(){I.length=0,j(),A&&(A.removeEventListener(Ws,F),A.removeEventListener(Vs,B)),w.clear(),T.clear(),E.clear(),S.clear(),_.clear(),y.clear(),b.clear(),c&&c.clear(),P.forEach((function(t){t()}))}function Z(t){function n(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}function r(t,e){var n={},r={};return Object.keys(t).forEach((function(i){var o=t[i];if(gt.isDynamic(o))r[i]=gt.unbox(o,i);else{if(e&&Array.isArray(o))for(var a=0;a<o.length;++a)if(gt.isDynamic(o[a]))return void(r[i]=gt.unbox(o,i));n[i]=o}})),{dynamic:r,static:n}}rt(!!t,"invalid args to regl({...})"),rt.type(t,"object","invalid args to regl({...})");var i=r(t.context||{},!0),a=r(t.uniforms||{},!0),s=r(t.attributes||{},!1),u=r(n(t),!1),l={gpuTime:0,cpuTime:0,count:0},c=k.compile(u,s,a,i,l),f=c.draw,h=c.batch,d=c.scope,p=[];function g(t){while(p.length<t)p.push(null);return p}function v(t,e){var n;if(o&&rt.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,g(0|t),0|t)}else{if(!Array.isArray(t))return f.call(this,t);if(t.length)return h.call(this,t,t.length)}}return e(v,{stats:l,destroy:function(){c.destroy()}})}A&&(A.addEventListener(Ws,F,!1),A.addEventListener(Vs,B,!1));var U=T.setFBO=Z({framebuffer:gt.define.call(null,Ys,"framebuffer")});function H(t,e){var n=0;k.procs.poll();var i=e.color;i&&(r.clearColor(+i[0]||0,+i[1]||0,+i[2]||0,+i[3]||0),n|=Us),"depth"in e&&(r.clearDepth(+e.depth),n|=Hs),"stencil"in e&&(r.clearStencil(0|e.stencil),n|=$s),rt(!!n,"called regl.clear with no buffer specified"),r.clear(n)}function $(t){if(rt("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)U(e({framebuffer:t.framebuffer.faces[n]},t),H);else U(t,H);else H(null,t)}function G(t){function e(){var e=Ks(I,t);function n(){var t=Ks(I,n);I[t]=I[I.length-1],I.length-=1,I.length<=0&&j()}rt(e>=0,"cannot cancel a frame twice"),I[e]=n}return rt.type(t,"function","regl.frame() callback must be a function"),I.push(t),R(),{cancel:e}}function W(){var t=M.viewport,e=M.scissor_box;t[0]=t[1]=e[0]=e[1]=0,p.viewportWidth=p.framebufferWidth=p.drawingBufferWidth=t[2]=e[2]=r.drawingBufferWidth,p.viewportHeight=p.framebufferHeight=p.drawingBufferHeight=t[3]=e[3]=r.drawingBufferHeight}function V(){p.tick+=1,p.time=X(),W(),k.procs.poll()}function Y(){S.refresh(),W(),k.procs.refresh(),c&&c.update()}function X(){return(mt()-f)/1e3}function q(t,e){var n;switch(rt.type(e,"function","listener callback must be a function"),t){case"frame":return G(e);case"lost":n=O;break;case"restore":n=D;break;case"destroy":n=P;break;default:rt.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()}}}Y();var K=e(Z,{clear:$,prop:gt.define.bind(null,Ys),context:gt.define.bind(null,Xs),this:gt.define.bind(null,qs),draw:Z({}),buffer:function(t){return y.create(t,Gs,!1,!1)},elements:function(t){return _.create(t,!1)},texture:S.create2D,cube:S.createCube,renderbuffer:E.create,framebuffer:T.create,framebufferCube:T.createCube,vao:b.createVAO,attributes:i,frame:G,on:q,limits:m,hasExtension:function(t){return m.extensions.indexOf(t.toLowerCase())>=0},read:C,destroy:z,_gl:r,_refresh:Y,poll:function(){V(),c&&c.update()},now:X,stats:u});return n.onDone(null,K),K}return Js}))},86851:function(t,e,n){"use strict";var r=n(89594),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))}}},89594:function(t){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))}},90795:function(t,e,n){(function(){var e={7679:function(t,e){var n,r,i;(function(o,a){r=[],n=a,i="function"===typeof n?n.apply(e,r):n,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(d.stack)||a.exec(d.stack),u=s&&s[1]||!1,l=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");u===c&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var h=0;h<f.length;h++){if("interactive"===f[h].readyState)return f[h];if(f[h].src===u)return f[h];if(u===c&&f[h].innerHTML&&f[h].innerHTML.trim()===i)return f[h]}return null}}return t}))},9662:function(t,e,n){var r=n(614),i=n(6330),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},6077:function(t,e,n){var r=n(614),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},1223:function(t,e,n){var r=n(5112),i=n(30),o=n(3070).f,a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},1530:function(t,e,n){"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},9670:function(t,e,n){var r=n(111),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},8533:function(t,e,n){"use strict";var r=n(2092).forEach,i=n(9341),o=i("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},8457:function(t,e,n){"use strict";var r=n(9974),i=n(6916),o=n(7908),a=n(3411),s=n(7659),u=n(4411),l=n(6244),c=n(6135),f=n(8554),h=n(1246),d=Array;t.exports=function(t){var e=o(t),n=u(this),p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g;v&&(g=r(g,p>2?arguments[2]:void 0));var m,y,b,x,_,w,S=h(e),E=0;if(!S||this===d&&s(S))for(m=l(e),y=n?new this(m):d(m);m>E;E++)w=v?g(e[E],E):e[E],c(y,E,w);else for(x=f(e,S),_=x.next,y=n?new this:[];!(b=i(_,x)).done;E++)w=v?a(x,g,[b.value,E],!0):b.value,c(y,E,w);return y.length=E,y}},1318:function(t,e,n){var r=n(5656),i=n(1400),o=n(6244),a=function(t){return function(e,n,a){var s,u=r(e),l=o(u),c=i(a,l);if(t&&n!=n){while(l>c)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:function(t,e,n){var r=n(9974),i=n(1702),o=n(8361),a=n(7908),s=n(6244),u=n(5417),l=i([].push),c=function(t){var e=1==t,n=2==t,i=3==t,c=4==t,f=6==t,h=7==t,d=5==t||f;return function(p,g,v,m){for(var y,b,x=a(p),_=o(x),w=r(g,v),S=s(_),E=0,T=m||u,k=e?T(p,S):n||h?T(p,0):void 0;S>E;E++)if((d||E in _)&&(y=_[E],b=w(y,E,x),t))if(e)k[E]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return E;case 2:l(k,y)}else switch(t){case 4:return!1;case 7:l(k,y)}return f?-1:i||c?c:k}};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)}},1194:function(t,e,n){var r=n(7293),i=n(5112),o=n(7392),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,n){"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},1589:function(t,e,n){var r=n(1400),i=n(6244),o=n(6135),a=Array,s=Math.max;t.exports=function(t,e,n){for(var u=i(t),l=r(e,u),c=r(void 0===n?u:n,u),f=a(s(c-l,0)),h=0;l<c;l++,h++)o(f,h,t[l]);return f.length=h,f}},206:function(t,e,n){var r=n(1702);t.exports=r([].slice)},7475:function(t,e,n){var r=n(3157),i=n(4411),o=n(111),a=n(5112),s=a("species"),u=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,i(e)&&(e===u||r(e.prototype))?e=void 0:o(e)&&(e=e[s],null===e&&(e=void 0))),void 0===e?u:e}},5417:function(t,e,n){var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},3411:function(t,e,n){var r=n(9670),i=n(9212);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(a){i(t,"throw",a)}}},7072:function(t,e,n){var r=n(5112),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(u){}return n}},4326:function(t,e,n){var r=n(1702),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},648:function(t,e,n){var r=n(1694),i=n(614),o=n(4326),a=n(5112),s=a("toStringTag"),u=Object,l="Arguments"==o(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(n){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=u(t),s))?n:l?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},7741:function(t,e,n){var r=n(1702),i=Error,o=r("".replace),a=function(t){return String(i(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(a);t.exports=function(t,e){if(u&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,s,"");return t}},9920:function(t,e,n){var r=n(2597),i=n(3887),o=n(1236),a=n(3070);t.exports=function(t,e,n){for(var s=i(e),u=a.f,l=o.f,c=0;c<s.length;c++){var f=s[c];r(t,f)||n&&r(n,f)||u(t,f,l(e,f))}}},8544:function(t,e,n){var r=n(7293);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:function(t,e,n){"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=n(9114),a=n(8003),s=n(7497),u=function(){return this};t.exports=function(t,e,n,l){var c=e+" Iterator";return t.prototype=i(r,{next:o(+!l,n)}),a(t,c,!1,!0),s[c]=u,t}},8880:function(t,e,n){var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,n){"use strict";var r=n(4948),i=n(3070),o=n(9114);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},8052:function(t,e,n){var r=n(614),i=n(8880),o=n(6339),a=n(3072);t.exports=function(t,e,n,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:e;return r(n)&&o(n,l,s),s.global?u?t[e]=n:a(e,n):(s.unsafe?t[e]&&(u=!0):delete t[e],u?t[e]=n:i(t,e,n)),t}},3072:function(t,e,n){var r=n(7854),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}},654:function(t,e,n){"use strict";var r=n(2109),i=n(6916),o=n(1913),a=n(6530),s=n(614),u=n(4994),l=n(9518),c=n(7674),f=n(8003),h=n(8880),d=n(8052),p=n(5112),g=n(7497),v=n(3383),m=a.PROPER,y=a.CONFIGURABLE,b=v.IteratorPrototype,x=v.BUGGY_SAFARI_ITERATORS,_=p("iterator"),w="keys",S="values",E="entries",T=function(){return this};t.exports=function(t,e,n,a,p,v,k){u(n,e,a);var C,M,A,I=function(t){if(t===p&&N)return N;if(!x&&t in P)return P[t];switch(t){case w:return function(){return new n(this,t)};case S:return function(){return new n(this,t)};case E:return function(){return new n(this,t)}}return function(){return new n(this)}},O=e+" Iterator",D=!1,P=t.prototype,L=P[_]||P["@@iterator"]||p&&P[p],N=!x&&L||I(p),R="Array"==e&&P.entries||L;if(R&&(C=l(R.call(new t)),C!==Object.prototype&&C.next&&(o||l(C)===b||(c?c(C,b):s(C[_])||d(C,_,T)),f(C,O,!0,!0),o&&(g[O]=T))),m&&p==S&&L&&L.name!==S&&(!o&&y?h(P,"name",S):(D=!0,N=function(){return i(L,this)})),p)if(M={values:I(S),keys:v?N:I(w),entries:I(E)},k)for(A in M)(x||D||!(A in P))&&d(P,A,M[A]);else r({target:e,proto:!0,forced:x||D},M);return o&&!k||P[_]===N||d(P,_,N,{name:p}),g[e]=N,M}},7235:function(t,e,n){var r=n(857),i=n(2597),o=n(6061),a=n(3070).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},9781:function(t,e,n){var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,n){var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8324: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}},8509:function(t,e,n){var r=n(317),i=r("span").classList,o=i&&i.constructor&&i.constructor.prototype;t.exports=o===Object.prototype?void 0:o},8113:function(t,e,n){var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:function(t,e,n){var r,i,o=n(7854),a=n(8113),s=o.process,u=o.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(r=c.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(t,e,n){var r=n(7293),i=n(9114);t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},2109:function(t,e,n){var r=n(7854),i=n(1236).f,o=n(8880),a=n(8052),s=n(3072),u=n(9920),l=n(4705);t.exports=function(t,e){var n,c,f,h,d,p,g=t.target,v=t.global,m=t.stat;if(c=v?r:m?r[g]||s(g,{}):(r[g]||{}).prototype,c)for(f in e){if(d=e[f],t.dontCallGetSet?(p=i(c,f),h=p&&p.value):h=c[f],n=l(v?f:g+(m?".":"#")+f,t.forced),!n&&void 0!==h){if(typeof d==typeof h)continue;u(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0),a(c,f,d,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},7007:function(t,e,n){"use strict";n(4916);var r=n(1702),i=n(8052),o=n(2261),a=n(7293),s=n(5112),u=n(8880),l=s("species"),c=RegExp.prototype;t.exports=function(t,e,n,f){var h=s(t),d=!a((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),p=d&&!a((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!d||!p||n){var g=r(/./[h]),v=e(h,""[t],(function(t,e,n,i,a){var s=r(t),u=e.exec;return u===o||u===c.exec?d&&!a?{done:!0,value:g(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,v[0]),i(c,h,v[1])}f&&u(c[h],"sham",!0)}},2104:function(t,e,n){var r=n(4374),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)})},9974:function(t,e,n){var r=n(1702),i=n(9662),o=n(4374),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)}}},4374:function(t,e,n){var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){var r=n(4374),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(t,e,n){var r=n(9781),i=n(2597),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,l=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},1702:function(t,e,n){var r=n(4374),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)}}},5005:function(t,e,n){var r=n(7854),i=n(614),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},1246:function(t,e,n){var r=n(648),i=n(8173),o=n(7497),a=n(5112),s=a("iterator");t.exports=function(t){if(void 0!=t)return i(t,s)||i(t,"@@iterator")||o[r(t)]}},8554:function(t,e,n){var r=n(6916),i=n(9662),o=n(9670),a=n(6330),s=n(1246),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(i(n))return o(r(n,t));throw u(a(t)+" is not iterable")}},8173:function(t,e,n){var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},647:function(t,e,n){var r=n(1702),i=n(7908),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,h){var d=n+t.length,p=r.length,g=c;return void 0!==f&&(f=i(f),g=l),s(h,g,(function(i,s){var l;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,d);case"<":l=f[u(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>p){var h=o(c/10);return 0===h?i:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):i}l=r[c-1]}return void 0===l?"":l}))}},7854: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")()},2597:function(t,e,n){var r=n(1702),i=n(7908),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},3501:function(t){t.exports={}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(1702),i=n(7293),o=n(4326),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):a(t)}:a},9587:function(t,e,n){var r=n(614),i=n(111),o=n(7674);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},2788:function(t,e,n){var r=n(1702),i=n(614),o=n(5465),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},8340:function(t,e,n){var r=n(111),i=n(8880);t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},9909:function(t,e,n){var r,i,o,a=n(8536),s=n(7854),u=n(1702),l=n(111),c=n(8880),f=n(2597),h=n(5465),d=n(6200),p=n(3501),g="Object already initialized",v=s.TypeError,m=s.WeakMap,y=function(t){return o(t)?i(t):r(t,{})},b=function(t){return function(e){var n;if(!l(e)||(n=i(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return n}};if(a||h.state){var x=h.state||(h.state=new m),_=u(x.get),w=u(x.has),S=u(x.set);r=function(t,e){if(w(x,t))throw new v(g);return e.facade=t,S(x,t,e),e},i=function(t){return _(x,t)||{}},o=function(t){return w(x,t)}}else{var E=d("state");p[E]=!0,r=function(t,e){if(f(t,E))throw new v(g);return e.facade=t,c(t,E,e),e},i=function(t){return f(t,E)?t[E]:{}},o=function(t){return f(t,E)}}t.exports={set:r,get:i,has:o,enforce:y,getterFor:b}},7659:function(t,e,n){var r=n(5112),i=n(7497),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:function(t){t.exports=function(t){return"function"==typeof t}},4411:function(t,e,n){var r=n(1702),i=n(7293),o=n(614),a=n(648),s=n(5005),u=n(2788),l=function(){},c=[],f=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),p=!h.exec(l),g=function(t){if(!o(t))return!1;try{return f(l,c,t),!0}catch(e){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(h,u(t))}catch(e){return!0}};v.sham=!0,t.exports=!f||i((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?v:g},4705:function(t,e,n){var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n==c||n!=l&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a},111:function(t,e,n){var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},2190:function(t,e,n){var r=n(5005),i=n(614),o=n(7976),a=n(3307),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},9212:function(t,e,n){var r=n(6916),i=n(9670),o=n(8173);t.exports=function(t,e,n){var a,s;i(t);try{if(a=o(t,"return"),!a){if("throw"===e)throw n;return n}a=r(a,t)}catch(u){s=!0,a=u}if("throw"===e)throw n;if(s)throw a;return i(a),n}},3383:function(t,e,n){"use strict";var r,i,o,a=n(7293),s=n(614),u=n(30),l=n(9518),c=n(8052),f=n(5112),h=n(1913),d=f("iterator"),p=!1;[].keys&&(o=[].keys(),"next"in o?(i=l(l(o)),i!==Object.prototype&&(r=i)):p=!0);var g=void 0==r||a((function(){var t={};return r[d].call(t)!==t}));g?r={}:h&&(r=u(r)),s(r[d])||c(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},7497:function(t){t.exports={}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},6339:function(t,e,n){var r=n(7293),i=n(614),o=n(2597),a=n(9781),s=n(6530).CONFIGURABLE,u=n(2788),l=n(9909),c=l.enforce,f=l.get,h=Object.defineProperty,d=a&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),p=String(String).split("String"),g=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||s&&t.name!==e)&&h(t,"name",{value:e,configurable:!0}),d&&n&&o(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=c(t);return o(r,"source")||(r.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=g((function(){return i(this)&&f(this).source||u(this)}),"toString")},4758:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},735:function(t,e,n){var r=n(133);t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},133:function(t,e,n){var r=n(7392),i=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(t,e,n){var r=n(7854),i=n(614),o=n(2788),a=r.WeakMap;t.exports=i(a)&&/native code/.test(o(a))},6277:function(t,e,n){var r=n(1340);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},30:function(t,e,n){var r,i=n(9670),o=n(6048),a=n(748),s=n(3501),u=n(490),l=n(317),c=n(6200),f=">",h="<",d="prototype",p="script",g=c("IE_PROTO"),v=function(){},m=function(t){return h+p+f+t+h+"/"+p+f},y=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=l("iframe"),n="java"+p+":";return e.style.display="none",u.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(m("document.F=Object")),t.close(),t.F},x=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}x="undefined"!=typeof document?document.domain&&r?y(r):b():y(r);var t=a.length;while(t--)delete x[d][a[t]];return x()};s[g]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(v[d]=i(t),n=new v,v[d]=null,n[g]=t):n=x(),void 0===e?n:o.f(n,e)}},6048:function(t,e,n){var r=n(9781),i=n(3353),o=n(3070),a=n(9670),s=n(5656),u=n(1956);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);var n,r=s(e),i=u(e),l=i.length,c=0;while(l>c)o.f(t,n=i[c++],r[n]);return t}},3070:function(t,e,n){var r=n(9781),i=n(4664),o=n(3353),a=n(9670),s=n(4948),u=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",d="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=c(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return l(t,e,n)}catch(r){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),i=n(6916),o=n(5296),a=n(9114),s=n(5656),u=n(4948),l=n(2597),c=n(4664),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),c)try{return f(t,e)}catch(n){}if(l(t,e))return a(!i(o.f,t,e),t[e])}},1156:function(t,e,n){var r=n(4326),i=n(5656),o=n(8006).f,a=n(1589),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(e){return a(s)}};t.exports.f=function(t){return s&&"Window"==r(t)?u(t):o(i(t))}},8006:function(t,e,n){var r=n(6324),i=n(748),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,n){var r=n(2597),i=n(614),o=n(7908),a=n(6200),s=n(8544),u=a("IE_PROTO"),l=Object,c=l.prototype;t.exports=s?l.getPrototypeOf:function(t){var e=o(t);if(r(e,u))return e[u];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof l?c:null}},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),i=n(2597),o=n(5656),a=n(1318).indexOf,s=n(3501),u=r([].push);t.exports=function(t,e){var n,r=o(t),l=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&u(c,n);while(e.length>l)i(r,n=e[l++])&&(~a(c,n)||u(c,n));return c}},1956:function(t,e,n){var r=n(6324),i=n(748);t.exports=Object.keys||function(t){return r(t,i)}},5296: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},7674:function(t,e,n){var r=n(1702),i=n(9670),o=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},4699:function(t,e,n){var r=n(9781),i=n(1702),o=n(1956),a=n(5656),s=n(5296).f,u=i(s),l=i([].push),c=function(t){return function(e){var n,i=a(e),s=o(i),c=s.length,f=0,h=[];while(c>f)n=s[f++],r&&!u(i,n)||l(h,t?[n,i[n]]:i[n]);return h}};t.exports={entries:c(!0),values:c(!1)}},288:function(t,e,n){"use strict";var r=n(1694),i=n(648);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(t,e,n){var r=n(6916),i=n(614),o=n(111),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw a("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),i=n(1702),o=n(8006),a=n(5181),s=n(9670),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?u(e,n(t)):e}},857:function(t,e,n){var r=n(7854);t.exports=r},2626:function(t,e,n){var r=n(3070).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},7651:function(t,e,n){var r=n(6916),i=n(9670),o=n(614),a=n(4326),s=n(2261),u=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var l=r(n,t,e);return null!==l&&i(l),l}if("RegExp"===a(t))return r(s,t,e);throw u("RegExp#exec called on incompatible receiver")}},2261:function(t,e,n){"use strict";var r=n(6916),i=n(1702),o=n(1340),a=n(7066),s=n(2999),u=n(2309),l=n(30),c=n(9909).get,f=n(9441),h=n(7168),d=u("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,v=i("".charAt),m=i("".indexOf),y=i("".replace),b=i("".slice),x=function(){var t=/a/,e=/b*/g;return r(p,t,"a"),r(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),_=s.BROKEN_CARET,w=void 0!==/()??/.exec("")[1],S=x||w||_||f||h;S&&(g=function(t){var e,n,i,s,u,f,h,S=this,E=c(S),T=o(t),k=E.raw;if(k)return k.lastIndex=S.lastIndex,e=r(g,k,T),S.lastIndex=k.lastIndex,e;var C=E.groups,M=_&&S.sticky,A=r(a,S),I=S.source,O=0,D=T;if(M&&(A=y(A,"y",""),-1===m(A,"g")&&(A+="g"),D=b(T,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==v(T,S.lastIndex-1))&&(I="(?: "+I+")",D=" "+D,O++),n=new RegExp("^(?:"+I+")",A)),w&&(n=new RegExp("^"+I+"$(?!\\s)",A)),x&&(i=S.lastIndex),s=r(p,M?n:S,D),M?s?(s.input=b(s.input,O),s[0]=b(s[0],O),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:x&&s&&(S.lastIndex=S.global?s.index+s[0].length:i),w&&s&&s.length>1&&r(d,s[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)})),s&&C)for(s.groups=f=l(null),u=0;u<C.length;u++)h=C[u],f[h[0]]=s[h[1]];return s}),t.exports=g},7066:function(t,e,n){"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},4706:function(t,e,n){var r=n(6916),i=n(2597),o=n(7976),a=n(7066),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!o(s,t)?e:r(a,t)}},2999:function(t,e,n){var r=n(7293),i=n(7854),o=i.RegExp,a=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),s=a||r((function(){return!o("a","y").sticky})),u=a||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:u,MISSED_STICKY:s,UNSUPPORTED_Y:a}},9441:function(t,e,n){var r=n(7293),i=n(7854),o=i.RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:function(t,e,n){var r=n(7293),i=n(7854),o=i.RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:function(t){var e=TypeError;t.exports=function(t){if(void 0==t)throw e("Can't call method on "+t);return t}},8003:function(t,e,n){var r=n(3070).f,i=n(2597),o=n(5112),a=o("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,a)&&r(t,a,{configurable:!0,value:e})}},6200:function(t,e,n){var r=n(2309),i=n(9711),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:function(t,e,n){var r=n(7854),i=n(3072),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},2309:function(t,e,n){var r=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.8",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE",source:"https://github.com/zloirock/core-js"})},8710:function(t,e,n){var r=n(1702),i=n(9303),o=n(1340),a=n(4488),s=r("".charAt),u=r("".charCodeAt),l=r("".slice),c=function(t){return function(e,n){var r,c,f=o(a(e)),h=i(n),d=f.length;return h<0||h>=d?t?"":void 0:(r=u(f,h),r<55296||r>56319||h+1===d||(c=u(f,h+1))<56320||c>57343?t?s(f,h):r:t?l(f,h,h+2):c-56320+(r-55296<<10)+65536)}};t.exports={codeAt:c(!1),charAt:c(!0)}},8415:function(t,e,n){"use strict";var r=n(9303),i=n(1340),o=n(4488),a=RangeError;t.exports=function(t){var e=i(o(this)),n="",s=r(t);if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(n+=e);return n}},3111:function(t,e,n){var r=n(1702),i=n(4488),o=n(1340),a=n(1361),s=r("".replace),u="["+a+"]",l=RegExp("^"+u+u+"*"),c=RegExp(u+u+"*$"),f=function(t){return function(e){var n=o(i(e));return 1&t&&(n=s(n,l,"")),2&t&&(n=s(n,c,"")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},6532:function(t,e,n){var r=n(6916),i=n(5005),o=n(5112),a=n(8052);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return r(n,this)}),{arity:1})}},863:function(t,e,n){var r=n(1702);t.exports=r(1..valueOf)},1400:function(t,e,n){var r=n(9303),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)}},5656:function(t,e,n){var r=n(8361),i=n(4488);t.exports=function(t){return r(i(t))}},9303:function(t,e,n){var r=n(4758);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},7466:function(t,e,n){var r=n(9303),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(4488),i=Object;t.exports=function(t){return i(r(t))}},7593:function(t,e,n){var r=n(6916),i=n(111),o=n(2190),a=n(8173),s=n(2140),u=n(5112),l=TypeError,c=u("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,u=a(t,c);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!i(n)||o(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},4948:function(t,e,n){var r=n(7593),i=n(2190);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},1694:function(t,e,n){var r=n(5112),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},1340:function(t,e,n){var r=n(648),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},9711:function(t,e,n){var r=n(1702),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},3307:function(t,e,n){var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var r=n(9781),i=n(7293);t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},6061:function(t,e,n){var r=n(5112);e.f=r},5112:function(t,e,n){var r=n(7854),i=n(2309),o=n(2597),a=n(9711),s=n(133),u=n(3307),l=i("wks"),c=r.Symbol,f=c&&c["for"],h=u?c:c&&c.withoutSetter||a;t.exports=function(t){if(!o(l,t)||!s&&"string"!=typeof l[t]){var e="Symbol."+t;s&&o(c,t)?l[t]=c[t]:l[t]=u&&f?f(e):h(e)}return l[t]}},1361:function(t){t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},9191:function(t,e,n){"use strict";var r=n(5005),i=n(2597),o=n(8880),a=n(7976),s=n(7674),u=n(9920),l=n(2626),c=n(9587),f=n(6277),h=n(8340),d=n(7741),p=n(2914),g=n(9781),v=n(1913);t.exports=function(t,e,n,m){var y="stackTraceLimit",b=m?2:1,x=t.split("."),_=x[x.length-1],w=r.apply(null,x);if(w){var S=w.prototype;if(!v&&i(S,"cause")&&delete S.cause,!n)return w;var E=r("Error"),T=e((function(t,e){var n=f(m?e:t,void 0),r=m?new w(t):new w;return void 0!==n&&o(r,"message",n),p&&o(r,"stack",d(r.stack,2)),this&&a(S,this)&&c(r,this,T),arguments.length>b&&h(r,arguments[b]),r}));if(T.prototype=S,"Error"!==_?s?s(T,E):u(T,E,{name:!0}):g&&y in w&&(l(T,w,y),l(T,w,"prepareStackTrace")),u(T,w),!v)try{S.name!==_&&o(S,"name",_),S.constructor=T}catch(k){}return T}}},7327:function(t,e,n){"use strict";var r=n(2109),i=n(2092).filter,o=n(1194),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},1038:function(t,e,n){var r=n(2109),i=n(8457),o=n(7072),a=!o((function(t){Array.from(t)}));r({target:"Array",stat:!0,forced:a},{from:i})},6992:function(t,e,n){"use strict";var r=n(5656),i=n(1223),o=n(7497),a=n(9909),s=n(3070).f,u=n(654),l=n(1913),c=n(9781),f="Array Iterator",h=a.set,d=a.getterFor(f);t.exports=u(Array,"Array",(function(t,e){h(this,{type:f,target:r(t),index:0,kind:e})}),(function(){var t=d(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"),!l&&c&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(g){}},1249:function(t,e,n){"use strict";var r=n(2109),i=n(2092).map,o=n(1194),a=o("map");r({target:"Array",proto:!0,forced:!a},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},7042:function(t,e,n){"use strict";var r=n(2109),i=n(3157),o=n(4411),a=n(111),s=n(1400),u=n(6244),l=n(5656),c=n(6135),f=n(5112),h=n(1194),d=n(206),p=h("slice"),g=f("species"),v=Array,m=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,r,f,h=l(this),p=u(h),y=s(t,p),b=s(void 0===e?p:e,p);if(i(h)&&(n=h.constructor,o(n)&&(n===v||i(n.prototype))?n=void 0:a(n)&&(n=n[g],null===n&&(n=void 0)),n===v||void 0===n))return d(h,y,b);for(r=new(void 0===n?v:n)(m(b-y,0)),f=0;y<b;y++,f++)y in h&&c(r,f,h[y]);return r.length=f,r}})},1703:function(t,e,n){var r=n(2109),i=n(7854),o=n(2104),a=n(9191),s="WebAssembly",u=i[s],l=7!==Error("e",{cause:7}).cause,c=function(t,e){var n={};n[t]=a(t,e,l),r({global:!0,constructor:!0,arity:1,forced:l},n)},f=function(t,e){if(u&&u[t]){var n={};n[t]=a(s+"."+t,e,l),r({target:s,stat:!0,constructor:!0,arity:1,forced:l},n)}};c("Error",(function(t){return function(e){return o(t,this,arguments)}})),c("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),c("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),c("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),c("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),c("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),c("URIError",(function(t){return function(e){return o(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},8309:function(t,e,n){var r=n(9781),i=n(6530).EXISTS,o=n(1702),a=n(3070).f,s=Function.prototype,u=o(s.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(l.exec),f="name";r&&!i&&a(s,f,{configurable:!0,get:function(){try{return c(l,u(this))[1]}catch(t){return""}}})},8862:function(t,e,n){var r=n(2109),i=n(5005),o=n(2104),a=n(6916),s=n(1702),u=n(7293),l=n(3157),c=n(614),f=n(111),h=n(2190),d=n(206),p=n(133),g=i("JSON","stringify"),v=s(/./.exec),m=s("".charAt),y=s("".charCodeAt),b=s("".replace),x=s(1..toString),_=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,E=!p||u((function(){var t=i("Symbol")();return"[null]"!=g([t])||"{}"!=g({a:t})||"{}"!=g(Object(t))})),T=u((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),k=function(t,e){var n=d(arguments),r=e;if((f(e)||void 0!==t)&&!h(t))return l(e)||(e=function(t,e){if(c(r)&&(e=a(r,this,t,e)),!h(e))return e}),n[1]=e,o(g,null,n)},C=function(t,e,n){var r=m(n,e-1),i=m(n,e+1);return v(w,t)&&!v(S,i)||v(S,t)&&!v(w,r)?"\\u"+x(y(t,0),16):t};g&&r({target:"JSON",stat:!0,arity:3,forced:E||T},{stringify:function(t,e,n){var r=d(arguments),i=o(E?k:g,null,r);return T&&"string"==typeof i?b(i,_,C):i}})},9653:function(t,e,n){"use strict";var r=n(9781),i=n(7854),o=n(1702),a=n(4705),s=n(8052),u=n(2597),l=n(9587),c=n(7976),f=n(2190),h=n(7593),d=n(7293),p=n(8006).f,g=n(1236).f,v=n(3070).f,m=n(863),y=n(3111).trim,b="Number",x=i[b],_=x.prototype,w=i.TypeError,S=o("".slice),E=o("".charCodeAt),T=function(t){var e=h(t,"number");return"bigint"==typeof e?e:k(e)},k=function(t){var e,n,r,i,o,a,s,u,l=h(t,"number");if(f(l))throw w("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=y(l),e=E(l,0),43===e||45===e){if(n=E(l,2),88===n||120===n)return NaN}else if(48===e){switch(E(l,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+l}for(o=S(l,2),a=o.length,s=0;s<a;s++)if(u=E(o,s),u<48||u>i)return NaN;return parseInt(o,r)}return+l};if(a(b,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var C,M=function(t){var e=arguments.length<1?0:x(T(t)),n=this;return c(_,n)&&d((function(){m(n)}))?l(Object(e),n,M):e},A=r?p(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),I=0;A.length>I;I++)u(x,C=A[I])&&!u(M,C)&&v(M,C,g(x,C));M.prototype=_,_.constructor=M,s(i,b,M,{constructor:!0})}},6977:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(9303),a=n(863),s=n(8415),u=n(7293),l=RangeError,c=String,f=Math.floor,h=i(s),d=i("".slice),p=i(1..toFixed),g=function(t,e,n){return 0===e?n:e%2===1?g(t,e-1,n*t):g(t*t,e/2,n)},v=function(t){var e=0,n=t;while(n>=4096)e+=12,n/=4096;while(n>=2)e+=1,n/=2;return e},m=function(t,e,n){var r=-1,i=n;while(++r<6)i+=e*t[r],t[r]=i%1e7,i=f(i/1e7)},y=function(t,e){var n=6,r=0;while(--n>=0)r+=t[n],t[n]=f(r/e),r=r%e*1e7},b=function(t){var e=6,n="";while(--e>=0)if(""!==n||0===e||0!==t[e]){var r=c(t[e]);n=""===n?r:n+h("0",7-r.length)+r}return n},x=u((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!u((function(){p({})}));r({target:"Number",proto:!0,forced:x},{toFixed:function(t){var e,n,r,i,s=a(this),u=o(t),f=[0,0,0,0,0,0],p="",x="0";if(u<0||u>20)throw l("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(p="-",s=-s),s>1e-21)if(e=v(s*g(2,69,1))-69,n=e<0?s*g(2,-e,1):s/g(2,e,1),n*=4503599627370496,e=52-e,e>0){m(f,0,n),r=u;while(r>=7)m(f,1e7,0),r-=7;m(f,g(10,r,1),0),r=e-1;while(r>=23)y(f,1<<23),r-=23;y(f,1<<r),m(f,1,1),y(f,2),x=b(f)}else m(f,0,n),m(f,1<<-e,0),x=b(f)+h("0",u);return u>0?(i=x.length,x=p+(i<=u?"0."+h("0",u-i)+x:d(x,0,i-u)+"."+d(x,i-u))):x=p+x,x}})},5003:function(t,e,n){var r=n(2109),i=n(7293),o=n(5656),a=n(1236).f,s=n(9781),u=i((function(){a(1)})),l=!s||u;r({target:"Object",stat:!0,forced:l,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},9337:function(t,e,n){var r=n(2109),i=n(9781),o=n(3887),a=n(5656),s=n(1236),u=n(6135);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){var e,n,r=a(t),i=s.f,l=o(r),c={},f=0;while(l.length>f)n=i(r,e=l[f++]),void 0!==n&&u(c,e,n);return c}})},9660:function(t,e,n){var r=n(2109),i=n(133),o=n(7293),a=n(5181),s=n(7908),u=!i||o((function(){a.f(1)}));r({target:"Object",stat:!0,forced:u},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},7941:function(t,e,n){var r=n(2109),i=n(7908),o=n(1956),a=n(7293),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(t){return o(i(t))}})},1539:function(t,e,n){var r=n(1694),i=n(8052),o=n(288);r||i(Object.prototype,"toString",o,{unsafe:!0})},6833:function(t,e,n){var r=n(2109),i=n(4699).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},4916:function(t,e,n){"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},7601:function(t,e,n){"use strict";n(4916);var r=n(2109),i=n(6916),o=n(1702),a=n(614),s=n(111),u=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),l=TypeError,c=o(/./.test);r({target:"RegExp",proto:!0,forced:!u},{test:function(t){var e=this.exec;if(!a(e))return c(this,t);var n=i(e,this,t);if(null!==n&&!s(n))throw new l("RegExp exec method returned something other than an Object or null");return!!n}})},9714:function(t,e,n){"use strict";var r=n(6530).PROPER,i=n(8052),o=n(9670),a=n(1340),s=n(7293),u=n(4706),l="toString",c=RegExp.prototype,f=c[l],h=s((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),d=r&&f.name!=l;(h||d)&&i(RegExp.prototype,l,(function(){var t=o(this),e=a(t.source),n=a(u(t));return"/"+e+"/"+n}),{unsafe:!0})},8783:function(t,e,n){"use strict";var r=n(8710).charAt,i=n(1340),o=n(9909),a=n(654),s="String Iterator",u=o.set,l=o.getterFor(s);a(String,"String",(function(t){u(this,{type:s,string:i(t),index:0})}),(function(){var t,e=l(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})}))},5306:function(t,e,n){"use strict";var r=n(2104),i=n(6916),o=n(1702),a=n(7007),s=n(7293),u=n(9670),l=n(614),c=n(9303),f=n(7466),h=n(1340),d=n(4488),p=n(1530),g=n(8173),v=n(647),m=n(7651),y=n(5112),b=y("replace"),x=Math.max,_=Math.min,w=o([].concat),S=o([].push),E=o("".indexOf),T=o("".slice),k=function(t){return void 0===t?t:String(t)},C=function(){return"$0"==="a".replace(/./,"$0")}(),M=function(){return!!/./[b]&&""===/./[b]("a","$0")}(),A=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));a("replace",(function(t,e,n){var o=M?"$":"$0";return[function(t,n){var r=d(this),o=void 0==t?void 0:g(t,b);return o?i(o,t,r,n):i(e,h(r),t,n)},function(t,i){var a=u(this),s=h(t);if("string"==typeof i&&-1===E(i,o)&&-1===E(i,"$<")){var d=n(e,a,s,i);if(d.done)return d.value}var g=l(i);g||(i=h(i));var y=a.global;if(y){var b=a.unicode;a.lastIndex=0}var C=[];while(1){var M=m(a,s);if(null===M)break;if(S(C,M),!y)break;var A=h(M[0]);""===A&&(a.lastIndex=p(s,f(a.lastIndex),b))}for(var I="",O=0,D=0;D<C.length;D++){M=C[D];for(var P=h(M[0]),L=x(_(c(M.index),s.length),0),N=[],R=1;R<M.length;R++)S(N,k(M[R]));var j=M.groups;if(g){var F=w([P],N,L,s);void 0!==j&&S(F,j);var B=h(r(i,void 0,F))}else B=v(P,s,L,N,j,i);L>=O&&(I+=T(s,O,L)+B,O=L+P.length)}return I+T(s,O)}]}),!A||!C||M)},4032:function(t,e,n){"use strict";var r=n(2109),i=n(7854),o=n(6916),a=n(1702),s=n(1913),u=n(9781),l=n(133),c=n(7293),f=n(2597),h=n(7976),d=n(9670),p=n(5656),g=n(4948),v=n(1340),m=n(9114),y=n(30),b=n(1956),x=n(8006),_=n(1156),w=n(5181),S=n(1236),E=n(3070),T=n(6048),k=n(5296),C=n(8052),M=n(2309),A=n(6200),I=n(3501),O=n(9711),D=n(5112),P=n(6061),L=n(7235),N=n(6532),R=n(8003),j=n(9909),F=n(2092).forEach,B=A("hidden"),z="Symbol",Z="prototype",U=j.set,H=j.getterFor(z),$=Object[Z],G=i.Symbol,W=G&&G[Z],V=i.TypeError,Y=i.QObject,X=S.f,q=E.f,K=_.f,J=k.f,Q=a([].push),tt=M("symbols"),et=M("op-symbols"),nt=M("wks"),rt=!Y||!Y[Z]||!Y[Z].findChild,it=u&&c((function(){return 7!=y(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=X($,e);r&&delete $[e],q(t,e,n),r&&t!==$&&q($,e,r)}:q,ot=function(t,e){var n=tt[t]=y(W);return U(n,{type:z,tag:t,description:e}),u||(n.description=e),n},at=function(t,e,n){t===$&&at(et,e,n),d(t);var r=g(e);return d(n),f(tt,r)?(n.enumerable?(f(t,B)&&t[B][r]&&(t[B][r]=!1),n=y(n,{enumerable:m(0,!1)})):(f(t,B)||q(t,B,m(1,{})),t[B][r]=!0),it(t,r,n)):q(t,r,n)},st=function(t,e){d(t);var n=p(e),r=b(n).concat(ht(n));return F(r,(function(e){u&&!o(lt,n,e)||at(t,e,n[e])})),t},ut=function(t,e){return void 0===e?y(t):st(y(t),e)},lt=function(t){var e=g(t),n=o(J,this,e);return!(this===$&&f(tt,e)&&!f(et,e))&&(!(n||!f(this,e)||!f(tt,e)||f(this,B)&&this[B][e])||n)},ct=function(t,e){var n=p(t),r=g(e);if(n!==$||!f(tt,r)||f(et,r)){var i=X(n,r);return!i||!f(tt,r)||f(n,B)&&n[B][r]||(i.enumerable=!0),i}},ft=function(t){var e=K(p(t)),n=[];return F(e,(function(t){f(tt,t)||f(I,t)||Q(n,t)})),n},ht=function(t){var e=t===$,n=K(e?et:p(t)),r=[];return F(n,(function(t){!f(tt,t)||e&&!f($,t)||Q(r,tt[t])})),r};l||(G=function(){if(h(W,this))throw V("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=O(t),n=function(t){this===$&&o(n,et,t),f(this,B)&&f(this[B],e)&&(this[B][e]=!1),it(this,e,m(1,t))};return u&&rt&&it($,e,{configurable:!0,set:n}),ot(e,t)},W=G[Z],C(W,"toString",(function(){return H(this).tag})),C(G,"withoutSetter",(function(t){return ot(O(t),t)})),k.f=lt,E.f=at,T.f=st,S.f=ct,x.f=_.f=ft,w.f=ht,P.f=function(t){return ot(D(t),t)},u&&(q(W,"description",{configurable:!0,get:function(){return H(this).description}}),s||C($,"propertyIsEnumerable",lt,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:G}),F(b(nt),(function(t){L(t)})),r({target:z,stat:!0,forced:!l},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!u},{create:ut,defineProperty:at,defineProperties:st,getOwnPropertyDescriptor:ct}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ft}),N(),R(G,z),I[B]=!0},1817:function(t,e,n){"use strict";var r=n(2109),i=n(9781),o=n(7854),a=n(1702),s=n(2597),u=n(614),l=n(7976),c=n(1340),f=n(3070).f,h=n(9920),d=o.Symbol,p=d&&d.prototype;if(i&&u(d)&&(!("description"in p)||void 0!==d().description)){var g={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),e=l(p,this)?new d(t):void 0===t?d():d(t);return""===t&&(g[e]=!0),e};h(v,d),v.prototype=p,p.constructor=v;var m="Symbol(test)"==String(d("test")),y=a(p.toString),b=a(p.valueOf),x=/^Symbol\((.*)\)[^)]+$/,_=a("".replace),w=a("".slice);f(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):_(e,x,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:v})}},763:function(t,e,n){var r=n(2109),i=n(5005),o=n(2597),a=n(1340),s=n(2309),u=n(735),l=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=a(t);if(o(l,e))return l[e];var n=i("Symbol")(e);return l[e]=n,c[n]=e,n}})},2165:function(t,e,n){var r=n(7235);r("iterator")},2526:function(t,e,n){n(4032),n(763),n(6620),n(8862),n(9660)},6620:function(t,e,n){var r=n(2109),i=n(2597),o=n(2190),a=n(6330),s=n(2309),u=n(735),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!o(t))throw TypeError(a(t)+" is not a symbol");if(i(l,t))return l[t]}})},4747:function(t,e,n){var r=n(7854),i=n(8324),o=n(8509),a=n(8533),s=n(8880),u=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(e){t.forEach=a}};for(var l in i)i[l]&&u(r[l]&&r[l].prototype);u(o)},3948:function(t,e,n){var r=n(7854),i=n(8324),o=n(8509),a=n(6992),s=n(8880),u=n(5112),l=u("iterator"),c=u("toStringTag"),f=a.values,h=function(t,e){if(t){if(t[l]!==f)try{s(t,l,f)}catch(r){t[l]=f}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(r){t[n]=a[n]}}};for(var d in i)h(r[d]&&r[d].prototype,d);h(o,"DOMTokenList")},3744:function(t,e){"use strict";e.Z=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n}}},r={};function i(t){var n=r[t];if(void 0!==n)return n.exports;var o=r[t]={exports:{}};return e[t].call(o.exports,o,o.exports,i),o.exports}!function(){i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){i.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){i.p=""}();var o={};!function(){"use strict";if(i.r(o),i.d(o,{default:function(){return Ci},install:function(){return Si}}),"undefined"!==typeof window){var t=window.document.currentScript,e=i(7679);t=e(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:e});var r=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(i.p=r[1])}var a=n(29812),s=["width","height"],u={key:0,id:"title"},l=["transform"],c=["transform","width","height"],f=["transform"],h=["width","height","y"],d=["x","y","dy"],p={key:1},g=["x","y"],v=["x1","x2","y1","y2"],m=["x1","y1","x2","y2","stroke-width","stroke"],y={key:0},b=["x1","x2","y1","y2"],x={key:1},_=["x1","x2","y1"],w=["x1","y1","x2","y2"],S=["y"];function E(t,e,n,r,i,o){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",{width:o.fullSvgWidth,height:o.fullSvgHeight,"aria-labelledby":"title",role:"img"},[n.title?((0,a.openBlock)(),(0,a.createElementBlock)("title",u,(0,a.toDisplayString)(n.title),1)):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("g",{transform:"translate(0,".concat(n.showYAxis?i.extraTopHeightForYAxisLabel:0,")")},[(0,a.createElementVNode)("g",{transform:"translate(".concat(n.showYAxis?o.yAxisWidth:0,",0)"),width:o.innerChartWidth,height:o.innerChartHeight},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.chartData,(function(e){return(0,a.openBlock)(),(0,a.createElementBlock)("g",{key:e.index,transform:"translate(".concat(e.x,",0)")},[(0,a.createElementVNode)("title",null,[(0,a.renderSlot)(t.$slots,"title",{bar:e},(function(){return[(0,a.createElementVNode)("tspan",null,(0,a.toDisplayString)(e.staticValue),1)]}))]),(0,a.createElementVNode)("rect",{width:e.width,height:e.height,x:2,y:e.yOffset,style:(0,a.normalizeStyle)({fill:e.barColor})},null,12,h),n.showValues?((0,a.openBlock)(),(0,a.createElementBlock)("text",{key:0,x:e.midPoint,y:e.yOffset,dy:"".concat(e.height<22?"-5px":"15px"),"text-anchor":"middle",style:(0,a.normalizeStyle)({fill:e.height<22?e.textColor:e.textAltColor,font:n.textFont})},(0,a.toDisplayString)(e.staticValue),13,d)):(0,a.createCommentVNode)("",!0),n.showXAxis?((0,a.openBlock)(),(0,a.createElementBlock)("g",p,[(0,a.renderSlot)(t.$slots,"label",{bar:e,textStyle:{fill:n.textColor,font:n.textFont}},(function(){return[(0,a.createElementVNode)("text",{x:e.midPoint,y:"".concat(e.yLabel+10,"px"),"text-anchor":"middle",style:(0,a.normalizeStyle)({fill:n.textColor,font:n.textFont})},(0,a.toDisplayString)(e.label),13,g)]})),(0,a.createElementVNode)("line",{x1:e.midPoint,x2:e.midPoint,y1:o.innerChartHeight+3,y2:o.innerChartHeight,stroke:"#555555","stroke-width":"1"},null,8,v)])):(0,a.createCommentVNode)("",!0)],8,f)})),128)),n.showTrendLine?((0,a.openBlock)(),(0,a.createElementBlock)("line",{key:0,x1:o.trendLine.x1,y1:o.trendLine.y1,x2:o.trendLine.x2,y2:o.trendLine.y2,"stroke-width":n.trendLineWidth,stroke:n.trendLineColor},null,8,m)):(0,a.createCommentVNode)("",!0)],8,c),n.showXAxis?((0,a.openBlock)(),(0,a.createElementBlock)("g",y,[(0,a.createElementVNode)("line",{x1:n.showYAxis?o.yAxisWidth-1:2,x2:o.innerChartWidth+o.yAxisWidth,y1:o.innerChartHeight,y2:o.innerChartHeight,stroke:"#555555","stroke-width":"1"},null,8,b)])):(0,a.createCommentVNode)("",!0),n.showYAxis?((0,a.openBlock)(),(0,a.createElementBlock)("g",x,[(0,a.createElementVNode)("line",{x1:o.yAxisWidth-1,x2:o.yAxisWidth-1,y1:o.innerChartHeight,y2:"0",stroke:"#555555","stroke-width":"1"},null,8,_),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.getTicks(),(function(t){return(0,a.openBlock)(),(0,a.createElementBlock)("g",{key:t.key},[(0,a.createElementVNode)("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:"#555555","stroke-width":"1"},null,8,w),(0,a.createElementVNode)("text",{x:"0",y:t.yText,"alignment-baseline":"central",style:(0,a.normalizeStyle)({fill:n.textColor,font:n.textFont})},(0,a.toDisplayString)(t.text),13,S)])})),128))])):(0,a.createCommentVNode)("",!0)],8,l)],8,s)}i(7941),i(2526),i(7327),i(1539),i(5003),i(4747),i(9337);function T(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k(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 C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach((function(e){T(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function M(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 A(t){if(Array.isArray(t))return M(t)}i(1817),i(2165),i(6992),i(8783),i(3948),i(1038);function I(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}i(7042),i(8309),i(4916),i(7601);function O(t,e){if(t){if("string"===typeof t)return M(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)?M(t,e):void 0}}i(1703);function D(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(t){return A(t)||I(t)||O(t)||D()}function L(t){return L="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(t)}i(9653),i(1249),i(6977),i(9714),i(6833),i(5306);function N(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function R(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
/*!
 * GSAP 3.10.4
 * https://greensock.com
 *
 * @license Copyright 2008-2022, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/var j,F,B,z,Z,U,H,$,G,W={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},V={duration:.5,overwrite:!1,delay:0},Y=1e8,X=1/Y,q=2*Math.PI,K=q/4,J=0,Q=Math.sqrt,tt=Math.cos,et=Math.sin,nt=function(t){return"string"===typeof t},rt=function(t){return"function"===typeof t},it=function(t){return"number"===typeof t},ot=function(t){return"undefined"===typeof t},at=function(t){return"object"===typeof t},st=function(t){return!1!==t},ut=function(){return"undefined"!==typeof window},lt=function(t){return rt(t)||nt(t)},ct="function"===typeof ArrayBuffer&&ArrayBuffer.isView||function(){},ft=Array.isArray,ht=/(?:-?\.?\d|\.)+/gi,dt=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,pt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,gt=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,vt=/[+-]=-?[.\d]+/,mt=/[^,'"\[\]\s]+/gi,yt=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,bt={},xt={},_t=function(t){return(xt=Yt(t,bt))&&nr},wt=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},St=function(t,e){return!e&&console.warn(t)},Et=function(t,e){return t&&(bt[t]=e)&&xt&&(xt[t]=e)||bt},Tt=function(){return 0},kt={},Ct=[],Mt={},At={},It={},Ot=30,Dt=[],Pt="",Lt=function(t){var e,n,r=t[0];if(at(r)||rt(r)||(t=[t]),!(e=(r._gsap||{}).harness)){n=Dt.length;while(n--&&!Dt[n].targetTest(r));e=Dt[n]}n=t.length;while(n--)t[n]&&(t[n]._gsap||(t[n]._gsap=new _n(t[n],e)))||t.splice(n,1);return t},Nt=function(t){return t._gsap||Lt(Ie(t))[0]._gsap},Rt=function(t,e,n){return(n=t[e])&&rt(n)?t[e]():ot(n)&&t.getAttribute&&t.getAttribute(e)||n},jt=function(t,e){return(t=t.split(",")).forEach(e)||t},Ft=function(t){return Math.round(1e5*t)/1e5||0},Bt=function(t){return Math.round(1e7*t)/1e7||0},zt=function(t,e){var n=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),"+"===n?t+r:"-"===n?t-r:"*"===n?t*r:t/r},Zt=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},Ut=function(){var t,e,n=Ct.length,r=Ct.slice(0);for(Mt={},Ct.length=0,t=0;t<n;t++)e=r[t],e&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Ht=function(t,e,n,r){Ct.length&&Ut(),t.render(e,n,r),Ct.length&&Ut()},$t=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(mt).length<2?e:nt(t)?t.trim():t},Gt=function(t){return t},Wt=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Vt=function(t){return function(e,n){for(var r in n)r in e||"duration"===r&&t||"ease"===r||(e[r]=n[r])}},Yt=function(t,e){for(var n in e)t[n]=e[n];return t},Xt=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=at(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},qt=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},Kt=function(t){var e=t.parent||F,n=t.keyframes?Vt(ft(t.keyframes)):Wt;if(st(t.inherit))while(e)n(t,e.vars.defaults),e=e.parent||e._dp;return t},Jt=function(t,e){var n=t.length,r=n===e.length;while(r&&n--&&t[n]===e[n]);return n<0},Qt=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var o,a=t[r];if(i){o=e[i];while(a&&a[i]>o)a=a._prev}return a?(e._next=a._next,a._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=a,e.parent=e._dp=t,e},te=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,o=e._next;i?i._next=o:t[n]===e&&(t[n]=o),o?o._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},ee=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},ne=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0)){var n=t;while(n)n._dirty=1,n=n.parent}return t},re=function(t){var e=t.parent;while(e&&e.parent)e._dirty=1,e.totalDuration(),e=e.parent;return t},ie=function t(e){return!e||e._ts&&t(e.parent)},oe=function(t){return t._repeat?ae(t._tTime,t=t.duration()+t._rDelay)*t:0},ae=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},se=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},ue=function(t){return t._end=Bt(t._start+(t._tDur/Math.abs(t._ts||t._rts||X)||0))},le=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Bt(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),ue(t),n._dirty||ne(n,t)),t},ce=function(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=se(t.rawTime(),e),(!e._dur||Ee(0,e.totalDuration(),n)-e._tTime>X)&&e.render(n,!0)),ne(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration()){n=t;while(n._dp)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp}t._zTime=-X}},fe=function(t,e,n,r){return e.parent&&ee(e),e._start=Bt((it(n)?n:n||t!==F?_e(t,n,e):t._time)+e._delay),e._end=Bt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Qt(t,e,"_first","_last",t._sort?"_start":0),ge(e)||(t._recent=e),r||ce(t,e),t},he=function(t,e){return(bt.ScrollTrigger||wt("scrollTrigger",e))&&bt.ScrollTrigger.create(e,t)},de=function(t,e,n,r){return In(t,e),t._initted?!n&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&H!==an.frame?(Ct.push(t),t._lazy=[e,r],1):void 0:1},pe=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},ge=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},ve=function(t,e,n,r){var i,o,a,s=t.ratio,u=e<0||!e&&(!t._start&&pe(t)&&(t._initted||!ge(t))||(t._ts<0||t._dp._ts<0)&&!ge(t))?0:1,l=t._rDelay,c=0;if(l&&t._repeat&&(c=Ee(0,t._tDur,e),o=ae(c,l),t._yoyo&&1&o&&(u=1-u),o!==ae(t._tTime,l)&&(s=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==s||r||t._zTime===X||!e&&t._zTime){if(!t._initted&&de(t,e,r,n))return;a=t._zTime,t._zTime=e||(n?X:0),n||(n=e&&!a),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=c,i=t._pt;while(i)i.r(u,i.d),i=i._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!n&&Ve(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&Ve(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&ee(t,1),n||(Ve(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},me=function(t,e,n){var r;if(n>e){r=t._first;while(r&&r._start<=n){if("isPause"===r.data&&r._start>e)return r;r=r._next}}else{r=t._last;while(r&&r._start>=n){if("isPause"===r.data&&r._start<e)return r;r=r._prev}}},ye=function(t,e,n,r){var i=t._repeat,o=Bt(e)||0,a=t._tTime/t._tDur;return a&&!r&&(t._time*=o/t._dur),t._dur=o,t._tDur=i?i<0?1e10:Bt(o*(i+1)+t._rDelay*i):o,a>0&&!r?le(t,t._tTime=t._tDur*a):t.parent&&ue(t),n||ne(t.parent,t),t},be=function(t){return t instanceof Sn?ne(t):ye(t,t._dur)},xe={_start:0,endTime:Tt,totalDuration:Tt},_e=function t(e,n,r){var i,o,a,s=e.labels,u=e._recent||xe,l=e.duration()>=Y?u.endTime(!1):e._dur;return nt(n)&&(isNaN(n)||n in s)?(o=n.charAt(0),a="%"===n.substr(-1),i=n.indexOf("="),"<"===o||">"===o?(i>=0&&(n=n.replace(/=/,"")),("<"===o?u._start:u.endTime(u._repeat>=0))+(parseFloat(n.substr(1))||0)*(a?(i<0?u:r).totalDuration()/100:1)):i<0?(n in s||(s[n]=l),s[n]):(o=parseFloat(n.charAt(i-1)+n.substr(i+1)),a&&r&&(o=o/100*(ft(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+o:l+o)):null==n?l:+n},we=function(t,e,n){var r,i,o=it(e[1]),a=(o?2:1)+(t<2?0:1),s=e[a];if(o&&(s.duration=e[1]),s.parent=n,t){r=s,i=n;while(i&&!("immediateRender"in r))r=i.vars.defaults||{},i=st(i.vars.inherit)&&i.parent;s.immediateRender=st(r.immediateRender),t<2?s.runBackwards=1:s.startAt=e[a-1]}return new jn(e[0],s,e[a+1])},Se=function(t,e){return t||0===t?e(t):e},Ee=function(t,e,n){return n<t?t:n>e?e:n},Te=function(t,e){return nt(t)&&(e=yt.exec(t))?e[1]:""},ke=function(t,e,n){return Se(n,(function(n){return Ee(t,e,n)}))},Ce=[].slice,Me=function(t,e){return t&&at(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&at(t[0]))&&!t.nodeType&&t!==B},Ae=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return nt(t)&&!e||Me(t,1)?(r=n).push.apply(r,Ie(t)):n.push(t)}))||n},Ie=function(t,e,n){return!nt(t)||n||!z&&sn()?ft(t)?Ae(t,n):Me(t)?Ce.call(t,0):t?[t]:[]:Ce.call((e||Z).querySelectorAll(t),0)},Oe=function(t){return t=Ie(t)[0]||St("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return Ie(e,n.querySelectorAll?n:n===t?St("Invalid scope")||Z.createElement("div"):t)}},De=function(t){return t.sort((function(){return.5-Math.random()}))},Pe=function(t){if(rt(t))return t;var e=at(t)?t:{each:t},n=vn(e.ease),r=e.from||0,i=parseFloat(e.base)||0,o={},a=r>0&&r<1,s=isNaN(r)||a,u=e.axis,l=r,c=r;return nt(r)?l=c={center:.5,edges:.5,end:1}[r]||0:!a&&s&&(l=r[0],c=r[1]),function(t,a,f){var h,d,p,g,v,m,y,b,x,_=(f||e).length,w=o[_];if(!w){if(x="auto"===e.grid?0:(e.grid||[1,Y])[1],!x){y=-Y;while(y<(y=f[x++].getBoundingClientRect().left)&&x<_);x--}for(w=o[_]=[],h=s?Math.min(x,_)*l-.5:r%x,d=x===Y?0:s?_*c/x-.5:r/x|0,y=0,b=Y,m=0;m<_;m++)p=m%x-h,g=d-(m/x|0),w[m]=v=u?Math.abs("y"===u?g:p):Q(p*p+g*g),v>y&&(y=v),v<b&&(b=v);"random"===r&&De(w),w.max=y-b,w.min=b,w.v=_=(parseFloat(e.amount)||parseFloat(e.each)*(x>_?_-1:u?"y"===u?_/x:x:Math.max(x,_/x))||0)*("edges"===r?-1:1),w.b=_<0?i-_:i,w.u=Te(e.amount||e.each)||0,n=n&&_<0?pn(n):n}return _=(w[t]-w.min)/w.max||0,Bt(w.b+(n?n(_):_)*w.v)+w.u}},Le=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Math.round(parseFloat(n)/t)*t*e;return(r-r%1)/e+(it(n)?0:Te(n))}},Ne=function(t,e){var n,r,i=ft(t);return!i&&at(t)&&(n=i=t.radius||Y,t.values?(t=Ie(t.values),(r=!it(t[0]))&&(n*=n)):t=Le(t.increment)),Se(e,i?rt(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){var i,o,a=parseFloat(r?e.x:e),s=parseFloat(r?e.y:0),u=Y,l=0,c=t.length;while(c--)r?(i=t[c].x-a,o=t[c].y-s,i=i*i+o*o):i=Math.abs(t[c]-a),i<u&&(u=i,l=c);return l=!n||u<=n?t[l]:e,r||l===e||it(e)?l:l+Te(e)}:Le(t))},Re=function(t,e,n,r){return Se(ft(t)?!e:!0===n?!!(n=0):!r,(function(){return ft(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+.99*n))/n)*n*r)/r}))},je=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},Fe=function(t,e){return function(n){return t(parseFloat(n))+(e||Te(n))}},Be=function(t,e,n){return $e(t,e,0,1,n)},ze=function(t,e,n){return Se(n,(function(n){return t[~~e(n)]}))},Ze=function t(e,n,r){var i=n-e;return ft(e)?ze(e,t(0,e.length),n):Se(r,(function(t){return(i+(t-e)%i)%i+e}))},Ue=function t(e,n,r){var i=n-e,o=2*i;return ft(e)?ze(e,t(0,e.length-1),n):Se(r,(function(t){return t=(o+(t-e)%o)%o||0,e+(t>i?o-t:t)}))},He=function(t){var e,n,r,i,o=0,a="";while(~(e=t.indexOf("random(",o)))r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?mt:ht),a+=t.substr(o,e-o)+Re(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),o=r+1;return a+t.substr(o,t.length-o)},$e=function(t,e,n,r,i){var o=e-t,a=r-n;return Se(i,(function(e){return n+((e-t)/o*a||0)}))},Ge=function t(e,n,r,i){var o=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!o){var a,s,u,l,c,f=nt(e),h={};if(!0===r&&(i=1)&&(r=null),f)e={p:e},n={p:n};else if(ft(e)&&!ft(n)){for(u=[],l=e.length,c=l-2,s=1;s<l;s++)u.push(t(e[s-1],e[s]));l--,o=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},r=n}else i||(e=Yt(ft(e)?[]:{},e));if(!u){for(a in n)Cn.call(h,e,a,"get",n[a]);o=function(t){return Wn(t,h)||(f?e.p:e)}}}return Se(r,o)},We=function(t,e,n){var r,i,o,a=t.labels,s=Y;for(r in a)i=a[r]-e,i<0===!!n&&i&&s>(i=Math.abs(i))&&(o=r,s=i);return o},Ve=function(t,e,n){var r,i,o=t.vars,a=o[e];if(a)return r=o[e+"Params"],i=o.callbackScope||t,n&&Ct.length&&Ut(),r?a.apply(i,r):a.call(i)},Ye=function(t){return ee(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&Ve(t,"onInterrupt"),t},Xe=function(t){t=!t.name&&t["default"]||t;var e=t.name,n=rt(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:Tt,render:Wn,add:Cn,kill:Yn,modifier:Vn,rawVars:0},o={targetTest:0,get:0,getSetter:Un,aliases:{},register:0};if(sn(),t!==r){if(At[e])return;Wt(r,Wt(qt(t,i),o)),Yt(r.prototype,Yt(i,qt(t,o))),At[r.prop=e]=r,t.targetTest&&(Dt.push(r),kt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Et(e,r),t.register&&t.register(nr,r,Kn)},qe=255,Ke={aqua:[0,qe,qe],lime:[0,qe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,qe],navy:[0,0,128],white:[qe,qe,qe],olive:[128,128,0],yellow:[qe,qe,0],orange:[qe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[qe,0,0],pink:[qe,192,203],cyan:[0,qe,qe],transparent:[qe,qe,qe,0]},Je=function(t,e,n){return t+=t<0?1:t>1?-1:0,(6*t<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*qe+.5|0},Qe=function(t,e,n){var r,i,o,a,s,u,l,c,f,h,d=t?it(t)?[t>>16,t>>8&qe,t&qe]:0:Ke.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ke[t])d=Ke[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),o=t.charAt(3),t="#"+r+r+i+i+o+o+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return d=parseInt(t.substr(1,6),16),[d>>16,d>>8&qe,d&qe,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),d=[t>>16,t>>8&qe,t&qe]}else if("hsl"===t.substr(0,3))if(d=h=t.match(ht),e){if(~t.indexOf("="))return d=t.match(dt),n&&d.length<4&&(d[3]=1),d}else a=+d[0]%360/360,s=+d[1]/100,u=+d[2]/100,i=u<=.5?u*(s+1):u+s-u*s,r=2*u-i,d.length>3&&(d[3]*=1),d[0]=Je(a+1/3,r,i),d[1]=Je(a,r,i),d[2]=Je(a-1/3,r,i);else d=t.match(ht)||Ke.transparent;d=d.map(Number)}return e&&!h&&(r=d[0]/qe,i=d[1]/qe,o=d[2]/qe,l=Math.max(r,i,o),c=Math.min(r,i,o),u=(l+c)/2,l===c?a=s=0:(f=l-c,s=u>.5?f/(2-l-c):f/(l+c),a=l===r?(i-o)/f+(i<o?6:0):l===i?(o-r)/f+2:(r-i)/f+4,a*=60),d[0]=~~(a+.5),d[1]=~~(100*s+.5),d[2]=~~(100*u+.5)),n&&d.length<4&&(d[3]=1),d},tn=function(t){var e=[],n=[],r=-1;return t.split(nn).forEach((function(t){var i=t.match(pt)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},en=function(t,e,n){var r,i,o,a,s="",u=(t+s).match(nn),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map((function(t){return(t=Qe(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(o=tn(t),r=n.c,r.join(s)!==o.c.join(s)))for(i=t.replace(nn,"1").split(pt),a=i.length-1;c<a;c++)s+=i[c]+(~r.indexOf(c)?u.shift()||l+"0,0,0,0)":(o.length?o:u.length?u:n).shift());if(!i)for(i=t.split(nn),a=i.length-1;c<a;c++)s+=i[c]+u[c];return s+i[a]},nn=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ke)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),rn=/hsl[a]?\(/,on=function(t){var e,n=t.join(" ");if(nn.lastIndex=0,nn.test(n))return e=rn.test(n),t[1]=en(t[1],e),t[0]=en(t[0],e,tn(t[1])),!0},an=function(){var t,e,n,r,i,o,a=Date.now,s=500,u=33,l=a(),c=l,f=1e3/240,h=f,d=[],p=function n(p){var g,v,m,y,b=a()-c,x=!0===p;if(b>s&&(l+=b-u),c+=b,m=c-l,g=m-h,(g>0||x)&&(y=++r.frame,i=m-1e3*r.time,r.time=m/=1e3,h+=g+(g>=f?4:f-g),v=1),x||(t=e(n)),v)for(o=0;o<d.length;o++)d[o](m,i,y,p)};return r={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){U&&(!z&&ut()&&(B=z=window,Z=B.document||{},bt.gsap=nr,(B.gsapVersions||(B.gsapVersions=[])).push(nr.version),_t(xt||B.GreenSockGlobals||!B.gsap&&B||{}),n=B.requestAnimationFrame),t&&r.sleep(),e=n||function(t){return setTimeout(t,h-1e3*r.time+1|0)},G=1,p(2))},sleep:function(){(n?B.cancelAnimationFrame:clearTimeout)(t),G=0,e=Tt},lagSmoothing:function(t,e){s=t||1/X,u=Math.min(e,s,0)},fps:function(t){f=1e3/(t||240),h=1e3*r.time+f},add:function(t,e,n){var i=e?function(e,n,o,a){t(e,n,o,a),r.remove(i)}:t;return r.remove(t),d[n?"unshift":"push"](i),sn(),i},remove:function(t,e){~(e=d.indexOf(t))&&d.splice(e,1)&&o>=e&&o--},_listeners:d},r}(),sn=function(){return!G&&an.wake()},un={},ln=/^[\d.\-M][\d.\-,\s]/,cn=/["']/g,fn=function(t){for(var e,n,r,i={},o=t.substr(1,t.length-3).split(":"),a=o[0],s=1,u=o.length;s<u;s++)n=o[s],e=s!==u-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[a]=isNaN(r)?r.replace(cn,"").trim():+r,a=n.substr(e+1).trim();return i},hn=function(t){var e=t.indexOf("(")+1,n=t.indexOf(")"),r=t.indexOf("(",e);return t.substring(e,~r&&r<n?t.indexOf(")",n+1):n)},dn=function(t){var e=(t+"").split("("),n=un[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[fn(e[1])]:hn(t).split(",").map($t)):un._CE&&ln.test(t)?un._CE("",t):n},pn=function(t){return function(e){return 1-t(1-e)}},gn=function t(e,n){var r,i=e._first;while(i)i instanceof Sn?t(i,n):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===n||(i.timeline?t(i.timeline,n):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=n)),i=i._next},vn=function(t,e){return t&&(rt(t)?t:un[t]||dn(t))||e},mn=function(t,e,n,r){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,o={easeIn:e,easeOut:n,easeInOut:r};return jt(t,(function(t){for(var e in un[t]=bt[t]=o,un[i=t.toLowerCase()]=n,o)un[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=un[t+"."+e]=o[e]})),o},yn=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},bn=function t(e,n,r){var i=n>=1?n:1,o=(r||(e?.3:.45))/(n<1?n:1),a=o/q*(Math.asin(1/i)||0),s=function(t){return 1===t?1:i*Math.pow(2,-10*t)*et((t-a)*o)+1},u="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:yn(s);return o=q/o,u.config=function(n,r){return t(e,n,r)},u},xn=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:yn(r);return i.config=function(n){return t(e,n)},i};jt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;mn(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),un.Linear.easeNone=un.none=un.Linear.easeIn,mn("Elastic",bn("in"),bn("out"),bn()),function(t,e){var n=1/e,r=2*n,i=2.5*n,o=function(o){return o<n?t*o*o:o<r?t*Math.pow(o-1.5/e,2)+.75:o<i?t*(o-=2.25/e)*o+.9375:t*Math.pow(o-2.625/e,2)+.984375};mn("Bounce",(function(t){return 1-o(1-t)}),o)}(7.5625,2.75),mn("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),mn("Circ",(function(t){return-(Q(1-t*t)-1)})),mn("Sine",(function(t){return 1===t?1:1-tt(t*K)})),mn("Back",xn("in"),xn("out"),xn()),un.SteppedEase=un.steps=bt.SteppedEase={config:function(t,e){void 0===t&&(t=1);var n=1/t,r=t+(e?0:1),i=e?1:0,o=1-X;return function(t){return((r*Ee(0,o,t)|0)+i)*n}}},V.ease=un["quad.out"],jt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return Pt+=t+","+t+"Params,"}));var _n=function(t,e){this.id=J++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Rt,this.set=e?e.getSetter:Un},wn=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,ye(this,+t.duration,1,1),this.data=t.data,G||an.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,ye(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(sn(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){le(this,t),!n._dp||n.parent||ce(n,this);while(n&&n.parent)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&fe(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===X||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Ht(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+oe(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+oe(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?ae(this._tTime,n)+1:1},e.timeScale=function(t){if(!arguments.length)return this._rts===-X?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?se(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-X?0:this._rts,this.totalTime(Ee(-this._delay,this._tDur,e),!0),ue(this),re(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(sn(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==X&&(this._tTime-=X)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&fe(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(st(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?se(e.rawTime(t),this):this._tTime:this._tTime},e.globalTime=function(t){var e=this,n=arguments.length?t:e.rawTime();while(e)n=e._start+n/(e._ts||1),e=e._dp;return n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,be(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,be(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(_e(this,t),st(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,st(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-X:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-X,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<this.endTime(!0)-X))},e.eventCallback=function(t,e,n){var r=this.vars;return arguments.length>1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=rt(t)?t:Gt,i=function(){var t=e.then;e.then=null,rt(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){Ye(this)},t}();Wt(wn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-X,_prom:0,_ps:!1,_rts:1});var Sn=function(t){function e(e,n){var r;return void 0===e&&(e={}),r=t.call(this,e)||this,r.labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=st(e.sortChildren),F&&fe(e.parent||F,N(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&he(N(r),e.scrollTrigger),r}R(e,t);var n=e.prototype;return n.to=function(t,e,n){return we(0,arguments,this),this},n.from=function(t,e,n){return we(1,arguments,this),this},n.fromTo=function(t,e,n,r){return we(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Kt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new jn(t,e,_e(this,n),1),this},n.call=function(t,e,n){return fe(this,jn.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,o,a){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=o,n.onCompleteParams=a,n.parent=this,new jn(t,n,_e(this,i)),this},n.staggerFrom=function(t,e,n,r,i,o,a){return n.runBackwards=1,Kt(n).immediateRender=st(n.immediateRender),this.staggerTo(t,e,n,r,i,o,a)},n.staggerFromTo=function(t,e,n,r,i,o,a,s){return r.startAt=n,Kt(r).immediateRender=st(r.immediateRender),this.staggerTo(t,e,r,i,o,a,s)},n.render=function(t,e,n){var r,i,o,a,s,u,l,c,f,h,d,p,g=this._time,v=this._dirty?this.totalDuration():this._tDur,m=this._dur,y=t<=0?0:Bt(t),b=this._zTime<0!==t<0&&(this._initted||!m);if(this!==F&&y>v&&t>=0&&(y=v),y!==this._tTime||n||b){if(g!==this._time&&m&&(y+=this._time-g,t+=this._time-g),r=y,f=this._start,c=this._ts,u=!c,b&&(m||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,s=m+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,n);if(r=Bt(y%s),y===v?(a=this._repeat,r=m):(a=~~(y/s),a&&a===y/s&&(r=m,a--),r>m&&(r=m)),h=ae(this._tTime,s),!g&&this._tTime&&h!==a&&(h=a),d&&1&a&&(r=m-r,p=1),a!==h&&!this._lock){var x=d&&1&h,_=x===(d&&1&a);if(a<h&&(x=!x),g=x?0:m,this._lock=1,this.render(g||(p?0:Bt(a*s)),e,!m)._lock=0,this._tTime=y,!e&&this.parent&&Ve(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),g&&g!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(m=this._dur,v=this._tDur,_&&(this._lock=2,g=x?m:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;gn(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=me(this,Bt(g),Bt(r)),l&&(y-=r-(r=l._start))),this._tTime=y,this._time=r,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&r&&!e&&(Ve(this,"onStart"),this._tTime!==y))return this;if(r>=g&&t>=0){i=this._first;while(i){if(o=i._next,(i._act||r>=i._start)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!u){l=0,o&&(y+=this._zTime=-X);break}}i=o}}else{i=this._last;var w=t<0?t:r;while(i){if(o=i._prev,(i._act||w<=i._end)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(w-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(w-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!u){l=0,o&&(y+=this._zTime=w?-X:X);break}}i=o}}if(l&&!e&&(this.pause(),l.render(r>=g?0:-X)._zTime=r>=g?1:-1,this._ts))return this._start=f,ue(this),this.render(t,e,n);this._onUpdate&&!e&&Ve(this,"onUpdate",!0),(y===v&&this._tTime>=this.totalDuration()||!y&&g)&&(f!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!m)&&(y===v&&this._ts>0||!y&&this._ts<0)&&ee(this,1),e||t<0&&!g||!y&&!g&&v||(Ve(this,y===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<v&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(it(e)||(e=_e(this,e,t)),!(t instanceof wn)){if(ft(t))return t.forEach((function(t){return n.add(t,e)})),this;if(nt(t))return this.addLabel(t,e);if(!rt(t))return this;t=jn.delayedCall(0,t)}return this!==t?fe(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-Y);var i=[],o=this._first;while(o)o._start>=r&&(o instanceof jn?e&&i.push(o):(n&&i.push(o),t&&i.push.apply(i,o.getChildren(!0,e,n)))),o=o._next;return i},n.getById=function(t){var e=this.getChildren(1,1,1),n=e.length;while(n--)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return nt(t)?this.removeLabel(t):rt(t)?this.killTweensOf(t):(te(this,t),t===this._recent&&(this._recent=this._last),ne(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Bt(an.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=_e(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=jn.delayedCall(0,e||Tt,n);return r.data="isPause",this._hasPause=1,fe(this,r,_e(this,t))},n.removePause=function(t){var e=this._first;t=_e(this,t);while(e)e._start===t&&"isPause"===e.data&&ee(e),e=e._next},n.killTweensOf=function(t,e,n){var r=this.getTweensOf(t,n),i=r.length;while(i--)En!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){var n,r=[],i=Ie(t),o=this._first,a=it(e);while(o)o instanceof jn?Zt(o._targets,i)&&(a?(!En||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&r.push(o):(n=o.getTweensOf(i,e)).length&&r.push.apply(r,n),o=o._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=_e(r,t),o=e,a=o.startAt,s=o.onStart,u=o.onStartParams,l=o.immediateRender,c=jn.to(r,Wt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(a&&"time"in a?a.time:r._time))/r.timeScale())||X,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(a&&"time"in a?a.time:r._time))/r.timeScale());c._dur!==t&&ye(c,t,0,1).render(c._time,!0,!0),n=1}s&&s.apply(c,u||[])}},e));return l?c.render(0):c},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,Wt({startAt:{time:_e(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),We(this,_e(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),We(this,_e(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+X)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);var r,i=this._first,o=this.labels;while(i)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in o)o[r]>=n&&(o[r]+=t);return ne(this)},n.invalidate=function(){var e=this._first;this._lock=0;while(e)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},n.clear=function(t){void 0===t&&(t=!0);var e,n=this._first;while(n)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),ne(this)},n.totalDuration=function(t){var e,n,r,i=0,o=this,a=o._last,s=Y;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){r=o.parent;while(a)e=a._prev,a._dirty&&a.totalDuration(),n=a._start,n>s&&o._sort&&a._ts&&!o._lock?(o._lock=1,fe(o,a,n-a._delay,1)._lock=0):s=n,n<0&&a._ts&&(i-=n,(!r&&!o._dp||r&&r.smoothChildTiming)&&(o._start+=n/o._ts,o._time-=n,o._tTime-=n),o.shiftChildren(-n,!1,-Infinity),s=0),a._end>i&&a._ts&&(i=a._end),a=e;ye(o,o===F&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(t){if(F._ts&&(Ht(F,se(t,F)),H=an.frame),an.frame>=Ot){Ot+=W.autoSleep||120;var e=F._first;if((!e||!e._ts)&&W.autoSleep&&an._listeners.length<2){while(e&&!e._ts)e=e._next;e||an.sleep()}}},e}(wn);Wt(Sn.prototype,{_lock:0,_hasPause:0,_forcing:0});var En,Tn,kn=function(t,e,n,r,i,o,a){var s,u,l,c,f,h,d,p,g=new Kn(this._pt,t,e,0,1,Gn,null,i),v=0,m=0;g.b=n,g.e=r,n+="",r+="",(d=~r.indexOf("random("))&&(r=He(r)),o&&(p=[n,r],o(p,t,e),n=p[0],r=p[1]),u=n.match(gt)||[];while(s=gt.exec(r))c=s[0],f=r.substring(v,s.index),l?l=(l+1)%5:"rgba("===f.substr(-5)&&(l=1),c!==u[m++]&&(h=parseFloat(u[m-1])||0,g._pt={_next:g._pt,p:f||1===m?f:",",s:h,c:"="===c.charAt(1)?zt(h,c)-h:parseFloat(c)-h,m:l&&l<4?Math.round:0},v=gt.lastIndex);return g.c=v<r.length?r.substring(v,r.length):"",g.fp=a,(vt.test(r)||d)&&(g.e=0),this._pt=g,g},Cn=function(t,e,n,r,i,o,a,s,u){rt(r)&&(r=r(i||0,t,o));var l,c=t[e],f="get"!==n?n:rt(c)?u?t[e.indexOf("set")||!rt(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():c,h=rt(c)?u?zn:Bn:Fn;if(nt(r)&&(~r.indexOf("random(")&&(r=He(r)),"="===r.charAt(1)&&(l=zt(f,r)+(Te(f)||0),(l||0===l)&&(r=l))),f!==r||Tn)return isNaN(f*r)||""===r?(!c&&!(e in t)&&wt(e,r),kn.call(this,t,e,f,r,h,s||W.stringFilter,u)):(l=new Kn(this._pt,t,e,+f||0,r-(f||0),"boolean"===typeof c?$n:Hn,0,h),u&&(l.fp=u),a&&l.modifier(a,this,t),this._pt=l)},Mn=function(t,e,n,r,i){if(rt(t)&&(t=Ln(t,i,e,n,r)),!at(t)||t.style&&t.nodeType||ft(t)||ct(t))return nt(t)?Ln(t,i,e,n,r):t;var o,a={};for(o in t)a[o]=Ln(t[o],i,e,n,r);return a},An=function(t,e,n,r,i,o){var a,s,u,l;if(At[t]&&!1!==(a=new At[t]).init(i,a.rawVars?e[t]:Mn(e[t],r,i,o,n),n,r,o)&&(n._pt=s=new Kn(n._pt,i,t,0,1,a.render,a,0,a.priority),n!==$)){u=n._ptLookup[n._targets.indexOf(i)],l=a._props.length;while(l--)u[a._props[l]]=s}return a},In=function t(e,n){var r,i,o,a,s,u,l,c,f,h,d,p,g,v=e.vars,m=v.ease,y=v.startAt,b=v.immediateRender,x=v.lazy,_=v.onUpdate,w=v.onUpdateParams,S=v.callbackScope,E=v.runBackwards,T=v.yoyoEase,k=v.keyframes,C=v.autoRevert,M=e._dur,A=e._startAt,I=e._targets,O=e.parent,D=O&&"nested"===O.data?O.parent._targets:I,P="auto"===e._overwrite&&!j,L=e.timeline;if(L&&(!k||!m)&&(m="none"),e._ease=vn(m,V.ease),e._yEase=T?pn(vn(!0===T?m:T,V.ease)):0,T&&e._yoyo&&!e._repeat&&(T=e._yEase,e._yEase=e._ease,e._ease=T),e._from=!L&&!!v.runBackwards,!L||k&&!v.stagger){if(c=I[0]?Nt(I[0]).harness:0,p=c&&v[c.prop],r=qt(v,kt),A&&(ee(A.render(-1,!0)),A._lazy=0),y)if(ee(e._startAt=jn.set(I,Wt({data:"isStart",overwrite:!1,parent:O,immediateRender:!0,lazy:st(x),startAt:null,delay:0,onUpdate:_,onUpdateParams:w,callbackScope:S,stagger:0},y))),n<0&&!b&&!C&&e._startAt.render(-1,!0),b){if(n>0&&!C&&(e._startAt=0),M&&n<=0)return void(n&&(e._zTime=n))}else!1===C&&(e._startAt=0);else if(E&&M)if(A)!C&&(e._startAt=0);else if(n&&(b=!1),o=Wt({overwrite:!1,data:"isFromStart",lazy:b&&st(x),immediateRender:b,stagger:0,parent:O},r),p&&(o[c.prop]=p),ee(e._startAt=jn.set(I,o)),n<0&&e._startAt.render(-1,!0),e._zTime=n,b){if(!n)return}else t(e._startAt,X);for(e._pt=e._ptCache=0,x=M&&st(x)||x&&!M,i=0;i<I.length;i++){if(s=I[i],l=s._gsap||Lt(I)[i]._gsap,e._ptLookup[i]=h={},Mt[l.id]&&Ct.length&&Ut(),d=D===I?i:D.indexOf(s),c&&!1!==(f=new c).init(s,p||r,e,d,D)&&(e._pt=a=new Kn(e._pt,s,f.name,0,1,f.render,f,0,f.priority),f._props.forEach((function(t){h[t]=a})),f.priority&&(u=1)),!c||p)for(o in r)At[o]&&(f=An(o,r,e,d,s,D))?f.priority&&(u=1):h[o]=a=Cn.call(e,s,o,"get",r[o],d,D,0,v.stringFilter);e._op&&e._op[i]&&e.kill(s,e._op[i]),P&&e._pt&&(En=e,F.killTweensOf(s,h,e.globalTime(n)),g=!e.parent,En=0),e._pt&&x&&(Mt[l.id]=1)}u&&qn(e),e._onInit&&e._onInit(e)}e._onUpdate=_,e._initted=(!e._op||e._pt)&&!g,k&&n<=0&&L.render(Y,!0,!0)},On=function(t,e,n,r,i,o,a){var s,u,l,c=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!c){c=t._ptCache[e]=[],u=t._ptLookup,l=t._targets.length;while(l--){if(s=u[l][e],s&&s.d&&s.d._pt){s=s.d._pt;while(s&&s.p!==e)s=s._next}if(!s)return Tn=1,t.vars[e]="+=0",In(t,a),Tn=0,1;c.push(s)}}l=c.length;while(l--)s=c[l],s.s=!r&&0!==r||i?s.s+(r||0)+o*s.c:r,s.c=n-s.s,s.e&&(s.e=Ft(n)+Te(s.e)),s.b&&(s.b=s.s+Te(s.b))},Dn=function(t,e){var n,r,i,o,a=t[0]?Nt(t[0]).harness:0,s=a&&a.aliases;if(!s)return e;for(r in n=Yt({},e),s)if(r in n){o=s[r].split(","),i=o.length;while(i--)n[o[i]]=n[r]}return n},Pn=function(t,e,n,r){var i,o,a=e.ease||r||"power1.inOut";if(ft(e))o=n[t]||(n[t]=[]),e.forEach((function(t,n){return o.push({t:n/(e.length-1)*100,v:t,e:a})}));else for(i in e)o=n[i]||(n[i]=[]),"ease"===i||o.push({t:parseFloat(t),v:e[i],e:a})},Ln=function(t,e,n,r,i){return rt(t)?t.call(e,n,r,i):nt(t)&&~t.indexOf("random(")?He(t):t},Nn=Pt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Rn={};jt(Nn+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return Rn[t]=1}));var jn=function(t){function e(e,n,r,i){var o;"number"===typeof n&&(r.duration=n,n=r,r=null),o=t.call(this,i?n:Kt(n))||this;var a,s,u,l,c,f,h,d,p=o.vars,g=p.duration,v=p.delay,m=p.immediateRender,y=p.stagger,b=p.overwrite,x=p.keyframes,_=p.defaults,w=p.scrollTrigger,S=p.yoyoEase,E=n.parent||F,T=(ft(e)||ct(e)?it(e[0]):"length"in n)?[e]:Ie(e);if(o._targets=T.length?Lt(T):St("GSAP target "+e+" not found. https://greensock.com",!W.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=b,x||y||lt(g)||lt(v)){if(n=o.vars,a=o.timeline=new Sn({data:"nested",defaults:_||{}}),a.kill(),a.parent=a._dp=N(o),a._start=0,y||lt(g)||lt(v)){if(l=T.length,h=y&&Pe(y),at(y))for(c in y)~Nn.indexOf(c)&&(d||(d={}),d[c]=y[c]);for(s=0;s<l;s++)u=qt(n,Rn),u.stagger=0,S&&(u.yoyoEase=S),d&&Yt(u,d),f=T[s],u.duration=+Ln(g,N(o),s,f,T),u.delay=(+Ln(v,N(o),s,f,T)||0)-o._delay,!y&&1===l&&u.delay&&(o._delay=v=u.delay,o._start+=v,u.delay=0),a.to(f,u,h?h(s,f,T):0),a._ease=un.none;a.duration()?g=v=0:o.timeline=0}else if(x){Kt(Wt(a.vars.defaults,{ease:"none"})),a._ease=vn(x.ease||n.ease||"none");var k,C,M,A=0;if(ft(x))x.forEach((function(t){return a.to(T,t,">")}));else{for(c in u={},x)"ease"===c||"easeEach"===c||Pn(c,x[c],u,x.easeEach);for(c in u)for(k=u[c].sort((function(t,e){return t.t-e.t})),A=0,s=0;s<k.length;s++)C=k[s],M={ease:C.e,duration:(C.t-(s?k[s-1].t:0))/100*g},M[c]=C.v,a.to(T,M,A),A+=M.duration;a.duration()<g&&a.to({},{duration:g-a.duration()})}}g||o.duration(g=a.duration())}else o.timeline=0;return!0!==b||j||(En=N(o),F.killTweensOf(T),En=0),fe(E,N(o),r),n.reversed&&o.reverse(),n.paused&&o.paused(!0),(m||!g&&!x&&o._start===Bt(E._time)&&st(m)&&ie(N(o))&&"nested"!==E.data)&&(o._tTime=-X,o.render(Math.max(0,-v))),w&&he(N(o),w),o}R(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,o,a,s,u,l,c,f,h=this._time,d=this._tDur,p=this._dur,g=t>d-X&&t>=0?d:t<X?0:t;if(p){if(g!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==t<0){if(r=g,c=this.timeline,this._repeat){if(a=p+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,n);if(r=Bt(g%a),g===d?(o=this._repeat,r=p):(o=~~(g/a),o&&o===g/a&&(r=p,o--),r>p&&(r=p)),u=this._yoyo&&1&o,u&&(f=this._yEase,r=p-r),s=ae(this._tTime,a),r===h&&!n&&this._initted)return this._tTime=g,this;o!==s&&(c&&this._yEase&&gn(c,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=n=1,this.render(Bt(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(de(this,t<0?t:r,n,e))return this._tTime=0,this;if(h!==this._time)return this;if(p!==this._dur)return this.render(t,e,n)}if(this._tTime=g,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=l=(f||this._ease)(r/p),this._from&&(this.ratio=l=1-l),r&&!h&&!e&&(Ve(this,"onStart"),this._tTime!==g))return this;i=this._pt;while(i)i.r(l,i.d),i=i._next;c&&c.render(t<0?t:!r&&u?-X:c._dur*c._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,n),Ve(this,"onUpdate")),this._repeat&&o!==s&&this.vars.onRepeat&&!e&&this.parent&&Ve(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&ee(this,1),e||t<0&&!h||!g&&!h||(Ve(this,g===d?"onComplete":"onReverseComplete",!0),this._prom&&!(g<d&&this.timeScale()>0)&&this._prom()))}}else ve(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},n.resetTo=function(t,e,n,r){G||an.wake(),this._ts||this.play();var i,o=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||In(this,o),i=this._ease(o/this._dur),On(this,t,e,n,r,i,o)?this.resetTo(t,e,n,r):(le(this,0),this.parent||Qt(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(t,e){if(void 0===e&&(e="all"),!t&&(!e||"all"===e))return this._lazy=this._pt=0,this.parent?Ye(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,En&&!0!==En.vars.overwrite)._first||Ye(this),this.parent&&n!==this.timeline.totalDuration()&&ye(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,o,a,s,u,l,c=this._targets,f=t?Ie(t):c,h=this._ptLookup,d=this._pt;if((!e||"all"===e)&&Jt(c,f))return"all"===e&&(this._pt=0),Ye(this);r=this._op=this._op||[],"all"!==e&&(nt(e)&&(s={},jt(e,(function(t){return s[t]=1})),e=s),e=Dn(c,e)),l=c.length;while(l--)if(~f.indexOf(c[l]))for(s in i=h[l],"all"===e?(r[l]=e,a=i,o={}):(o=r[l]=r[l]||{},a=e),a)u=i&&i[s],u&&("kill"in u.d&&!0!==u.d.kill(s)||te(this,u,"_pt"),delete i[s]),"all"!==o&&(o[s]=1);return this._initted&&!this._pt&&d&&Ye(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return we(1,arguments)},e.delayedCall=function(t,n,r,i){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},e.fromTo=function(t,e,n){return we(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return F.killTweensOf(t,e,n)},e}(wn);Wt(jn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),jt("staggerTo,staggerFrom,staggerFromTo",(function(t){jn[t]=function(){var e=new Sn,n=Ce.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var Fn=function(t,e,n){return t[e]=n},Bn=function(t,e,n){return t[e](n)},zn=function(t,e,n,r){return t[e](r.fp,n)},Zn=function(t,e,n){return t.setAttribute(e,n)},Un=function(t,e){return rt(t[e])?Bn:ot(t[e])&&t.setAttribute?Zn:Fn},Hn=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},$n=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Gn=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{while(n)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},Wn=function(t,e){var n=e._pt;while(n)n.r(t,n.d),n=n._next},Vn=function(t,e,n,r){var i,o=this._pt;while(o)i=o._next,o.p===r&&o.modifier(t,e,n),o=i},Yn=function(t){var e,n,r=this._pt;while(r)n=r._next,r.p===t&&!r.op||r.op===t?te(this,r,"_pt"):r.dep||(e=1),r=n;return!e},Xn=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},qn=function(t){var e,n,r,i,o=t._pt;while(o){e=o._next,n=r;while(n&&n.pr>o.pr)n=n._next;(o._prev=n?n._prev:i)?o._prev._next=o:r=o,(o._next=n)?n._prev=o:i=o,o=e}t._pt=r},Kn=function(){function t(t,e,n,r,i,o,a,s,u){this.t=e,this.s=r,this.c=i,this.p=n,this.r=o||Hn,this.d=a||this,this.set=s||Fn,this.pr=u||0,this._next=t,t&&(t._prev=this)}var e=t.prototype;return e.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=Xn,this.m=t,this.mt=n,this.tween=e},t}();jt(Pt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return kt[t]=1})),bt.TweenMax=bt.TweenLite=jn,bt.TimelineLite=bt.TimelineMax=Sn,F=new Sn({sortChildren:!1,defaults:V,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),W.stringFilter=on;var Jn={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach((function(t){return Xe(t)}))},timeline:function(t){return new Sn(t)},getTweensOf:function(t,e){return F.getTweensOf(t,e)},getProperty:function(t,e,n,r){nt(t)&&(t=Ie(t)[0]);var i=Nt(t||{}).get,o=n?Gt:$t;return"native"===n&&(n=""),t?e?o((At[e]&&At[e].get||i)(t,e,n,r)):function(e,n,r){return o((At[e]&&At[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if(t=Ie(t),t.length>1){var r=t.map((function(t){return nr.quickSetter(t,e,n)})),i=r.length;return function(t){var e=i;while(e--)r[e](t)}}t=t[0]||{};var o=At[e],a=Nt(t),s=a.harness&&(a.harness.aliases||{})[e]||e,u=o?function(e){var r=new o;$._pt=0,r.init(t,n?e+n:e,$,0,[t]),r.render(1,r),$._pt&&Wn(1,$)}:a.set(t,s);return o?u:function(e){return u(t,s,n?e+n:e,a,1)}},quickTo:function(t,e,n){var r,i=nr.to(t,Yt((r={},r[e]="+=0.1",r.paused=!0,r),n||{})),o=function(t,n,r){return i.resetTo(e,t,n,r)};return o.tween=i,o},isTweening:function(t){return F.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=vn(t.ease,V.ease)),Xt(V,t||{})},config:function(t){return Xt(W,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,o=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!At[t]&&!bt[t]&&St(e+" effect requires "+t+" plugin.")})),It[e]=function(t,e,r){return n(Ie(t),Wt(e||{},i),r)},o&&(Sn.prototype[e]=function(t,n,r){return this.add(It[e](t,at(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){un[t]=vn(e)},parseEase:function(t,e){return arguments.length?vn(t,e):un},getById:function(t){return F.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new Sn(t);i.smoothChildTiming=st(t.smoothChildTiming),F.remove(i),i._dp=0,i._time=i._tTime=F._time,n=F._first;while(n)r=n._next,!e&&!n._dur&&n instanceof jn&&n.vars.onComplete===n._targets[0]||fe(i,n,n._start-n._delay),n=r;return fe(F,i,0),i},utils:{wrap:Ze,wrapYoyo:Ue,distribute:Pe,random:Re,snap:Ne,normalize:Be,getUnit:Te,clamp:ke,splitColor:Qe,toArray:Ie,selector:Oe,mapRange:$e,pipe:je,unitize:Fe,interpolate:Ge,shuffle:De},install:_t,effects:It,ticker:an,updateRoot:Sn.updateRoot,plugins:At,globalTimeline:F,core:{PropTween:Kn,globals:Et,Tween:jn,Timeline:Sn,Animation:wn,getCache:Nt,_removeLinkedListItem:te,suppressOverwrites:function(t){return j=t}}};jt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Jn[t]=jn[t]})),an.add(Sn.updateRoot),$=Jn.to({},{duration:0});var Qn=function(t,e){var n=t._pt;while(n&&n.p!==e&&n.op!==e&&n.fp!==e)n=n._next;return n},tr=function(t,e){var n,r,i,o=t._targets;for(n in e){r=o.length;while(r--)i=t._ptLookup[r][n],i&&(i=i.d)&&(i._pt&&(i=Qn(i,n)),i&&i.modifier&&i.modifier(e[n],t,o[r],n))}},er=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(nt(n)&&(r={},jt(n,(function(t){return r[t]=1})),n=r),e){for(i in r={},n)r[i]=e(n[i]);n=r}tr(t,n)}}}},nr=Jn.registerPlugin({name:"attr",init:function(t,e,n,r,i){var o,a;for(o in e)a=this.add(t,"setAttribute",(t.getAttribute(o)||0)+"",e[o],r,i,0,0,o),a&&(a.op=o),this._props.push(o)}},{name:"endArray",init:function(t,e){var n=e.length;while(n--)this.add(t,n,t[n]||0,e[n])}},er("roundProps",Le),er("modifiers"),er("snap",Ne))||Jn;jn.version=Sn.version=nr.version="3.10.4",U=1,ut()&&sn();un.Power0,un.Power1,un.Power2,un.Power3,un.Power4,un.Linear,un.Quad,un.Cubic,un.Quart,un.Quint,un.Strong,un.Elastic,un.Back,un.SteppedEase,un.Bounce,un.Sine,un.Expo,un.Circ;var rr,ir,or,ar,sr,ur,lr,cr=function(){return"undefined"!==typeof window},fr={},hr=180/Math.PI,dr=Math.PI/180,pr=Math.atan2,gr=1e8,vr=/([A-Z])/g,mr=/(left|right|width|margin|padding|x)/i,yr=/[\s,\(]\S/,br={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},xr=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},_r=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},wr=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Sr=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},Er=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Tr=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},kr=function(t,e,n){return t.style[e]=n},Cr=function(t,e,n){return t.style.setProperty(e,n)},Mr=function(t,e,n){return t._gsap[e]=n},Ar=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},Ir=function(t,e,n,r,i){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(i,o)},Or=function(t,e,n,r,i){var o=t._gsap;o[e]=n,o.renderTransform(i,o)},Dr="transform",Pr=Dr+"Origin",Lr=function(t,e){var n=ir.createElementNS?ir.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ir.createElement(t);return n.style?n:ir.createElement(t)},Nr=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(vr,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,jr(n)||n,1)||""},Rr="O,Moz,ms,Ms,Webkit".split(","),jr=function(t,e,n){var r=e||sr,i=r.style,o=5;if(t in i&&!n)return t;t=t.charAt(0).toUpperCase()+t.substr(1);while(o--&&!(Rr[o]+t in i));return o<0?null:(3===o?"ms":o>=0?Rr[o]:"")+t},Fr=function(){cr()&&window.document&&(rr=window,ir=rr.document,or=ir.documentElement,sr=Lr("div")||{style:{}},Lr("div"),Dr=jr(Dr),Pr=Dr+"Origin",sr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",lr=!!jr("perspective"),ar=1)},Br=function t(e){var n,r=Lr("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,o=this.nextSibling,a=this.style.cssText;if(or.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(s){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(o?i.insertBefore(this,o):i.appendChild(this)),or.removeChild(r),this.style.cssText=a,n},zr=function(t,e){var n=e.length;while(n--)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},Zr=function(t){var e;try{e=t.getBBox()}catch(n){e=Br.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Br||(e=Br.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+zr(t,["x","cx","x1"])||0,y:+zr(t,["y","cy","y1"])||0,width:0,height:0}},Ur=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Zr(t))},Hr=function(t,e){if(e){var n=t.style;e in fr&&e!==Pr&&(e=Dr),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(vr,"-$1").toLowerCase())):n.removeAttribute(e)}},$r=function(t,e,n,r,i,o){var a=new Kn(t._pt,e,n,0,1,o?Tr:Er);return t._pt=a,a.b=r,a.e=i,t._props.push(n),a},Gr={deg:1,rad:1,turn:1},Wr=function t(e,n,r,i){var o,a,s,u,l=parseFloat(r)||0,c=(r+"").trim().substr((l+"").length)||"px",f=sr.style,h=mr.test(n),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(h?"Width":"Height"),g=100,v="px"===i,m="%"===i;return i===c||!l||Gr[i]||Gr[c]?l:("px"!==c&&!v&&(l=t(e,n,r,"px")),u=e.getCTM&&Ur(e),!m&&"%"!==c||!fr[n]&&!~n.indexOf("adius")?(f[h?"width":"height"]=g+(v?c:i),a=~n.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==ir&&a.appendChild||(a=ir.body),s=a._gsap,s&&m&&s.width&&h&&s.time===an.time?Ft(l/s.width*g):((m||"%"===c)&&(f.position=Nr(e,"position")),a===e&&(f.position="static"),a.appendChild(sr),o=sr[p],a.removeChild(sr),f.position="absolute",h&&m&&(s=Nt(a),s.time=an.time,s.width=a[p]),Ft(v?o*l/g:o&&l?g/o*l:0))):(o=u?e.getBBox()[h?"width":"height"]:e[p],Ft(m?l/o*g:l/100*o)))},Vr=function(t,e,n,r){var i;return ar||Fr(),e in br&&"transform"!==e&&(e=br[e],~e.indexOf(",")&&(e=e.split(",")[0])),fr[e]&&"transform"!==e?(i=oi(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:ai(Nr(t,Pr))+" "+i.zOrigin+"px"):(i=t.style[e],(!i||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Jr[e]&&Jr[e](t,e,n)||Nr(t,e)||Rt(t,e)||("opacity"===e?1:0))),n&&!~(i+"").trim().indexOf(" ")?Wr(t,e,i,n)+n:i},Yr=function(t,e,n,r){if(!n||"none"===n){var i=jr(e,t,1),o=i&&Nr(t,i,1);o&&o!==n?(e=i,n=o):"borderColor"===e&&(n=Nr(t,"borderTopColor"))}var a,s,u,l,c,f,h,d,p,g,v,m,y=new Kn(this._pt,t.style,e,0,1,Gn),b=0,x=0;if(y.b=n,y.e=r,n+="",r+="","auto"===r&&(t.style[e]=r,r=Nr(t,e)||r,t.style[e]=n),a=[n,r],on(a),n=a[0],r=a[1],u=n.match(pt)||[],m=r.match(pt)||[],m.length){while(s=pt.exec(r))h=s[0],p=r.substring(b,s.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),h!==(f=u[x++]||"")&&(l=parseFloat(f)||0,v=f.substr((l+"").length),"="===h.charAt(1)&&(h=zt(l,h)+v),d=parseFloat(h),g=h.substr((d+"").length),b=pt.lastIndex-g.length,g||(g=g||W.units[e]||v,b===r.length&&(r+=g,y.e+=g)),v!==g&&(l=Wr(t,e,f,g)||0),y._pt={_next:y._pt,p:p||1===x?p:",",s:l,c:d-l,m:c&&c<4||"zIndex"===e?Math.round:0});y.c=b<r.length?r.substring(b,r.length):""}else y.r="display"===e&&"none"===r?Tr:Er;return vt.test(r)&&(y.e=0),this._pt=y,y},Xr={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},qr=function(t){var e=t.split(" "),n=e[0],r=e[1]||"50%";return"top"!==n&&"bottom"!==n&&"left"!==r&&"right"!==r||(t=n,n=r,r=t),e[0]=Xr[n]||n,e[1]=Xr[r]||r,e.join(" ")},Kr=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,o=e.t,a=o.style,s=e.u,u=o._gsap;if("all"===s||!0===s)a.cssText="",r=1;else{s=s.split(","),i=s.length;while(--i>-1)n=s[i],fr[n]&&(r=1,n="transformOrigin"===n?Pr:Dr),Hr(o,n)}r&&(Hr(o,Dr),u&&(u.svg&&o.removeAttribute("transform"),oi(o,1),u.uncache=1))}},Jr={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var o=t._pt=new Kn(t._pt,e,n,0,0,Kr);return o.u=r,o.pr=-10,o.tween=i,t._props.push(n),1}}},Qr=[1,0,0,1,0,0],ti={},ei=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},ni=function(t){var e=Nr(t,Dr);return ei(e)?Qr:e.substr(7).match(dt).map(Ft)},ri=function(t,e){var n,r,i,o,a=t._gsap||Nt(t),s=t.style,u=ni(t);return a.svg&&t.getAttribute("transform")?(i=t.transform.baseVal.consolidate().matrix,u=[i.a,i.b,i.c,i.d,i.e,i.f],"1,0,0,1,0,0"===u.join(",")?Qr:u):(u!==Qr||t.offsetParent||t===or||a.svg||(i=s.display,s.display="block",n=t.parentNode,n&&t.offsetParent||(o=1,r=t.nextSibling,or.appendChild(t)),u=ni(t),i?s.display=i:Hr(t,"display"),o&&(r?n.insertBefore(t,r):n?n.appendChild(t):or.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},ii=function(t,e,n,r,i,o){var a,s,u,l,c=t._gsap,f=i||ri(t,!0),h=c.xOrigin||0,d=c.yOrigin||0,p=c.xOffset||0,g=c.yOffset||0,v=f[0],m=f[1],y=f[2],b=f[3],x=f[4],_=f[5],w=e.split(" "),S=parseFloat(w[0])||0,E=parseFloat(w[1])||0;n?f!==Qr&&(s=v*b-m*y)&&(u=S*(b/s)+E*(-y/s)+(y*_-b*x)/s,l=S*(-m/s)+E*(v/s)-(v*_-m*x)/s,S=u,E=l):(a=Zr(t),S=a.x+(~w[0].indexOf("%")?S/100*a.width:S),E=a.y+(~(w[1]||w[0]).indexOf("%")?E/100*a.height:E)),r||!1!==r&&c.smooth?(x=S-h,_=E-d,c.xOffset=p+(x*v+_*y)-x,c.yOffset=g+(x*m+_*b)-_):c.xOffset=c.yOffset=0,c.xOrigin=S,c.yOrigin=E,c.smooth=!!r,c.origin=e,c.originIsAbsolute=!!n,t.style[Pr]="0px 0px",o&&($r(o,c,"xOrigin",h,S),$r(o,c,"yOrigin",d,E),$r(o,c,"xOffset",p,c.xOffset),$r(o,c,"yOffset",g,c.yOffset)),t.setAttribute("data-svg-origin",S+" "+E)},oi=function(t,e){var n=t._gsap||new _n(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,o,a,s,u,l,c,f,h,d,p,g,v,m,y,b,x,_,w,S,E,T,k,C,M,A,I,O,D,P,L,N=t.style,R=n.scaleX<0,j="px",F="deg",B=Nr(t,Pr)||"0";return r=i=o=u=l=c=f=h=d=0,a=s=1,n.svg=!(!t.getCTM||!Ur(t)),v=ri(t,n.svg),n.svg&&(k=(!n.uncache||"0px 0px"===B)&&!e&&t.getAttribute("data-svg-origin"),ii(t,k||B,!!k||n.originIsAbsolute,!1!==n.smooth,v)),p=n.xOrigin||0,g=n.yOrigin||0,v!==Qr&&(x=v[0],_=v[1],w=v[2],S=v[3],r=E=v[4],i=T=v[5],6===v.length?(a=Math.sqrt(x*x+_*_),s=Math.sqrt(S*S+w*w),u=x||_?pr(_,x)*hr:0,f=w||S?pr(w,S)*hr+u:0,f&&(s*=Math.abs(Math.cos(f*dr))),n.svg&&(r-=p-(p*x+g*w),i-=g-(p*_+g*S))):(L=v[6],D=v[7],A=v[8],I=v[9],O=v[10],P=v[11],r=v[12],i=v[13],o=v[14],m=pr(L,O),l=m*hr,m&&(y=Math.cos(-m),b=Math.sin(-m),k=E*y+A*b,C=T*y+I*b,M=L*y+O*b,A=E*-b+A*y,I=T*-b+I*y,O=L*-b+O*y,P=D*-b+P*y,E=k,T=C,L=M),m=pr(-w,O),c=m*hr,m&&(y=Math.cos(-m),b=Math.sin(-m),k=x*y-A*b,C=_*y-I*b,M=w*y-O*b,P=S*b+P*y,x=k,_=C,w=M),m=pr(_,x),u=m*hr,m&&(y=Math.cos(m),b=Math.sin(m),k=x*y+_*b,C=E*y+T*b,_=_*y-x*b,T=T*y-E*b,x=k,E=C),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),a=Ft(Math.sqrt(x*x+_*_+w*w)),s=Ft(Math.sqrt(T*T+L*L)),m=pr(E,T),f=Math.abs(m)>2e-4?m*hr:0,d=P?1/(P<0?-P:P):0),n.svg&&(k=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!ei(Nr(t,Dr)),k&&t.setAttribute("transform",k))),Math.abs(f)>90&&Math.abs(f)<270&&(R?(a*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(s*=-1,f+=f<=0?180:-180)),e=e||n.uncache,n.x=r-((n.xPercent=r&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+j,n.y=i-((n.yPercent=i&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+j,n.z=o+j,n.scaleX=Ft(a),n.scaleY=Ft(s),n.rotation=Ft(u)+F,n.rotationX=Ft(l)+F,n.rotationY=Ft(c)+F,n.skewX=f+F,n.skewY=h+F,n.transformPerspective=d+j,(n.zOrigin=parseFloat(B.split(" ")[2])||0)&&(N[Pr]=ai(B)),n.xOffset=n.yOffset=0,n.force3D=W.force3D,n.renderTransform=n.svg?di:lr?hi:ui,n.uncache=0,n},ai=function(t){return(t=t.split(" "))[0]+" "+t[1]},si=function(t,e,n){var r=Te(e);return Ft(parseFloat(e)+parseFloat(Wr(t,"x",n+"px",r)))+r},ui=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,hi(t,e)},li="0deg",ci="0px",fi=") ",hi=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,o=n.x,a=n.y,s=n.z,u=n.rotation,l=n.rotationY,c=n.rotationX,f=n.skewX,h=n.skewY,d=n.scaleX,p=n.scaleY,g=n.transformPerspective,v=n.force3D,m=n.target,y=n.zOrigin,b="",x="auto"===v&&t&&1!==t||!0===v;if(y&&(c!==li||l!==li)){var _,w=parseFloat(l)*dr,S=Math.sin(w),E=Math.cos(w);w=parseFloat(c)*dr,_=Math.cos(w),o=si(m,o,S*_*-y),a=si(m,a,-Math.sin(w)*-y),s=si(m,s,E*_*-y+y)}g!==ci&&(b+="perspective("+g+fi),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(x||o!==ci||a!==ci||s!==ci)&&(b+=s!==ci||x?"translate3d("+o+", "+a+", "+s+") ":"translate("+o+", "+a+fi),u!==li&&(b+="rotate("+u+fi),l!==li&&(b+="rotateY("+l+fi),c!==li&&(b+="rotateX("+c+fi),f===li&&h===li||(b+="skew("+f+", "+h+fi),1===d&&1===p||(b+="scale("+d+", "+p+fi),m.style[Dr]=b||"translate(0, 0)"},di=function(t,e){var n,r,i,o,a,s=e||this,u=s.xPercent,l=s.yPercent,c=s.x,f=s.y,h=s.rotation,d=s.skewX,p=s.skewY,g=s.scaleX,v=s.scaleY,m=s.target,y=s.xOrigin,b=s.yOrigin,x=s.xOffset,_=s.yOffset,w=s.forceCSS,S=parseFloat(c),E=parseFloat(f);h=parseFloat(h),d=parseFloat(d),p=parseFloat(p),p&&(p=parseFloat(p),d+=p,h+=p),h||d?(h*=dr,d*=dr,n=Math.cos(h)*g,r=Math.sin(h)*g,i=Math.sin(h-d)*-v,o=Math.cos(h-d)*v,d&&(p*=dr,a=Math.tan(d-p),a=Math.sqrt(1+a*a),i*=a,o*=a,p&&(a=Math.tan(p),a=Math.sqrt(1+a*a),n*=a,r*=a)),n=Ft(n),r=Ft(r),i=Ft(i),o=Ft(o)):(n=g,o=v,r=i=0),(S&&!~(c+"").indexOf("px")||E&&!~(f+"").indexOf("px"))&&(S=Wr(m,"x",c,"px"),E=Wr(m,"y",f,"px")),(y||b||x||_)&&(S=Ft(S+y-(y*n+b*i)+x),E=Ft(E+b-(y*r+b*o)+_)),(u||l)&&(a=m.getBBox(),S=Ft(S+u/100*a.width),E=Ft(E+l/100*a.height)),a="matrix("+n+","+r+","+i+","+o+","+S+","+E+")",m.setAttribute("transform",a),w&&(m.style[Dr]=a)},pi=function(t,e,n,r,i){var o,a,s=360,u=nt(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?hr:1),c=l-r,f=r+c+"deg";return u&&(o=i.split("_")[1],"short"===o&&(c%=s,c!==c%(s/2)&&(c+=c<0?s:-s)),"cw"===o&&c<0?c=(c+s*gr)%s-~~(c/s)*s:"ccw"===o&&c>0&&(c=(c-s*gr)%s-~~(c/s)*s)),t._pt=a=new Kn(t._pt,e,n,r,c,_r),a.e=f,a.u="deg",t._props.push(n),a},gi=function(t,e){for(var n in e)t[n]=e[n];return t},vi=function(t,e,n){var r,i,o,a,s,u,l,c,f=gi({},n._gsap),h="perspective,force3D,transformOrigin,svgOrigin",d=n.style;for(i in f.svg?(o=n.getAttribute("transform"),n.setAttribute("transform",""),d[Dr]=e,r=oi(n,1),Hr(n,Dr),n.setAttribute("transform",o)):(o=getComputedStyle(n)[Dr],d[Dr]=e,r=oi(n,1),d[Dr]=o),fr)o=f[i],a=r[i],o!==a&&h.indexOf(i)<0&&(l=Te(o),c=Te(a),s=l!==c?Wr(n,i,o,c):parseFloat(o),u=parseFloat(a),t._pt=new Kn(t._pt,r,i,s,u-s,xr),t._pt.u=c||0,t._props.push(i));gi(r,f)};jt("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",o="Left",a=(e<3?[n,r,i,o]:[n+o,n+r,i+r,i+o]).map((function(n){return e<2?t+n:"border"+n+t}));Jr[e>1?"border"+t:t]=function(t,e,n,r,i){var o,s;if(arguments.length<4)return o=a.map((function(e){return Vr(t,e,n)})),s=o.join(" "),5===s.split(o[0]).length?o[0]:s;o=(r+"").split(" "),s={},a.forEach((function(t,e){return s[t]=o[e]=o[e]||o[(e-1)/2|0]})),t.init(e,s,i)}}));var mi={name:"css",register:Fr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,d,p,g,v,m,y,b,x=this._props,_=t.style,w=n.vars.startAt;for(f in ar||Fr(),e)if("autoRound"!==f&&(a=e[f],!At[f]||!An(f,e,n,r,t,i)))if(l=typeof a,c=Jr[f],"function"===l&&(a=a.call(n,r,t,i),l=typeof a),"string"===l&&~a.indexOf("random(")&&(a=He(a)),c)c(this,t,f,a,n)&&(b=1);else if("--"===f.substr(0,2))o=(getComputedStyle(t).getPropertyValue(f)+"").trim(),a+="",nn.lastIndex=0,nn.test(o)||(h=Te(o),d=Te(a)),d?h!==d&&(o=Wr(t,f,o,d)+d):h&&(a+=h),this.add(_,"setProperty",o,a,r,i,0,0,f),x.push(f);else if("undefined"!==l){if(w&&f in w?(o="function"===typeof w[f]?w[f].call(n,r,t,i):w[f],nt(o)&&~o.indexOf("random(")&&(o=He(o)),Te(o+"")||(o+=W.units[f]||Te(Vr(t,f))||""),"="===(o+"").charAt(1)&&(o=Vr(t,f))):o=Vr(t,f),u=parseFloat(o),p="string"===l&&"="===a.charAt(1)&&a.substr(0,2),p&&(a=a.substr(2)),s=parseFloat(a),f in br&&("autoAlpha"===f&&(1===u&&"hidden"===Vr(t,"visibility")&&s&&(u=0),$r(this,_,"visibility",u?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==f&&"transform"!==f&&(f=br[f],~f.indexOf(",")&&(f=f.split(",")[0]))),g=f in fr,g)if(v||(m=t._gsap,m.renderTransform&&!e.parseTransform||oi(t,e.parseTransform),y=!1!==e.smoothOrigin&&m.smooth,v=this._pt=new Kn(this._pt,_,Dr,0,1,m.renderTransform,m,0,-1),v.dep=1),"scale"===f)this._pt=new Kn(this._pt,m,"scaleY",m.scaleY,(p?zt(m.scaleY,p+s):s)-m.scaleY||0),x.push("scaleY",f),f+="X";else{if("transformOrigin"===f){a=qr(a),m.svg?ii(t,a,0,y,0,this):(d=parseFloat(a.split(" ")[2])||0,d!==m.zOrigin&&$r(this,m,"zOrigin",m.zOrigin,d),$r(this,_,f,ai(o),ai(a)));continue}if("svgOrigin"===f){ii(t,a,1,y,0,this);continue}if(f in ti){pi(this,m,f,u,p?zt(u,p+a):a);continue}if("smoothOrigin"===f){$r(this,m,"smooth",m.smooth,a);continue}if("force3D"===f){m[f]=a;continue}if("transform"===f){vi(this,a,t);continue}}else f in _||(f=jr(f)||f);if(g||(s||0===s)&&(u||0===u)&&!yr.test(a)&&f in _)h=(o+"").substr((u+"").length),s||(s=0),d=Te(a)||(f in W.units?W.units[f]:h),h!==d&&(u=Wr(t,f,o,d)),this._pt=new Kn(this._pt,g?m:_,f,u,(p?zt(u,p+s):s)-u,g||"px"!==d&&"zIndex"!==f||!1===e.autoRound?xr:Sr),this._pt.u=d||0,h!==d&&"%"!==d&&(this._pt.b=o,this._pt.r=wr);else if(f in _)Yr.call(this,t,f,o,p?p+a:a);else{if(!(f in t)){wt(f,a);continue}this.add(t,f,o||t[f],p?p+a:a,r,i)}x.push(f)}b&&qn(this)},get:Vr,aliases:br,getSetter:function(t,e,n){var r=br[e];return r&&r.indexOf(",")<0&&(e=r),e in fr&&e!==Pr&&(t._gsap.x||Vr(t,"x"))?n&&ur===n?"scale"===e?Ar:Mr:(ur=n||{})&&("scale"===e?Ir:Or):t.style&&!ot(t.style[e])?kr:~e.indexOf("-")?Cr:Un(t,e)},core:{_removeProperty:Hr,_getMatrix:ri}};nr.utils.checkPrefix=jr,function(t,e,n,r){var i=jt(t+","+e+","+n,(function(t){fr[t]=1}));jt(e,(function(t){W.units[t]="deg",ti[t]=1})),br[i[13]]=t+","+e,jt(r,(function(t){var e=t.split(":");br[e[1]]=i[e[0]]}))}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),jt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){W.units[t]="px"})),nr.registerPlugin(mi);var yi=nr.registerPlugin(mi)||nr,bi=(yi.core.Tween,{props:{title:{type:String,default:""},points:{type:Array,default:function(){return[]}},height:{type:Number,default:100},width:{type:Number,default:300},showYAxis:{type:Boolean,default:!1},showXAxis:{type:Boolean,default:!1},labelHeight:{type:Number,default:12},showTrendLine:{type:Boolean,default:!1},trendLineColor:{type:String,default:"green"},trendLineWidth:{type:Number,default:2},easeIn:{type:Boolean,default:!0},showValues:{type:Boolean,default:!1},maxYAxis:{type:Number,default:0},animationDuration:{type:Number,default:.5},barColor:{type:String,default:"deepskyblue"},textColor:{type:String,default:"black"},textAltColor:{type:String,default:"black"},textFont:{type:String,default:"10px sans-serif"},useCustomLabels:{type:Boolean,default:!1},customLabels:{type:Array,default:function(){return[]}}},data:function(){return{dynamicPoints:[],staticPoints:[],extraTopHeightForYAxisLabel:4,extraBottomHeightForYAxisLabel:4,digitsUsedInYAxis:0}},computed:{usingObjectsForDataPoints:function(){return this.points.every((function(t){return"object"===L(t)}))},dataPoints:function(){return this.usingObjectsForDataPoints?this.points.map((function(t){return t.value})):this.points},dataLabels:function(){var t=this;return this.points.map((function(e,n){return t.useCustomLabels?t.customLabels[n]:t.usingObjectsForDataPoints?e.label:n+1}))},dataColors:function(){var t=this;return this.points.map((function(e){return{barColor:e&&e.barColor?e.barColor:t.barColor,textColor:e&&e.textColor?e.textColor:t.textColor,textAltColor:e&&e.textAltColor?e.textAltColor:t.textAltColor}}))},yAxisWidth:function(){return 5.8*this.digitsUsedInYAxis+5},xAxisHeight:function(){return this.showYAxis?this.labelHeight:this.labelHeight+this.extraBottomHeightForYAxisLabel+this.extraTopHeightForYAxisLabel},fullSvgWidth:function(){return this.width},fullSvgHeight:function(){return this.height},innerChartWidth:function(){return this.showYAxis?this.width-this.yAxisWidth:this.width},innerChartHeight:function(){var t=this.height;return this.showYAxis&&(t-=this.extraTopHeightForYAxisLabel+this.extraBottomHeightForYAxisLabel),this.showXAxis&&(t-=this.xAxisHeight),t},partitionWidth:function(){return this.innerChartWidth/this.dataPoints.length},maxDomain:function(){return this.maxYAxis?this.maxYAxis:Math.ceil(Math.max.apply(Math,P(this.dataPoints)))},chartData:function(){var t=this;return this.dynamicPoints.map((function(e,n){return{staticValue:t.staticPoints[n],index:n,label:t.dataLabels[n],width:t.partitionWidth-2,midPoint:t.partitionWidth/2,yLabel:t.innerChartHeight+4,x:n*t.partitionWidth,xMidpoint:n*t.partitionWidth+t.partitionWidth/2,yOffset:t.innerChartHeight-t.y(e),height:t.y(e),barColor:t.dataColors[n].barColor,textColor:t.dataColors[n].textColor,textAltColor:t.dataColors[n].textAltColor}}))},trendLine:function(){var t=this.applySlope(this.dynamicPoints);return{x1:this.partitionWidth/2,y1:this.roundTo(this.innerChartHeight-this.y(t[0]),2),x2:this.innerChartWidth-this.partitionWidth/2,y2:this.roundTo(this.innerChartHeight-this.y(t[t.length-1]),2)}}},watch:{dataPoints:function(t){this.tween(t)}},created:function(){this.easeIn?this.tween(this.dataPoints):(this.dynamicPoints=this.dataPoints,this.staticPoints=this.dataPoints)},methods:{y:function(t){return t/this.maxDomain*this.innerChartHeight},roundTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!1,r=t;r<0&&(n=!0,r*=-1);var i=Math.pow(10,e);return r=parseFloat((r*i).toFixed(11)),r=(Math.round(r)/i).toFixed(2),n&&(r=(-1*r).toFixed(2)),r},tween:function(t){for(var e=this,n={},r={},i=0;i<t.length;i+=1){var o=i.toString();n[o]=t[i],r[o]=this.dynamicPoints[i]||0}var a=function(){var t=Object.values(r);t.pop(),e.dynamicPoints=t};yi.to(r,C(C({},n),{},{onUpdate:a,duration:this.animationDuration})),this.staticPoints=t},getTicks:function(){for(var t=this,e=6;e>0;e-=1)if(this.maxDomain%e===0){var n=function(){var n=e<3,r=n?3:e;return t.digitsUsedInYAxis=t.maxDomain.toFixed(n?1:0).replace(".","").length,{v:P(new Array(r+1)).map((function(e,i){var o=t.maxDomain/r*(r-i),a=t.innerChartHeight/r*i;return{key:i,text:n?o.toFixed(1):o,yText:a<10?10:a+4,x1:t.yAxisWidth-4,y1:a,x2:t.yAxisWidth-1,y2:a}}))}}();if("object"===L(n))return n.v}return[]},applySlope:function(t){for(var e=0,n=0,r=0;r<t.length;r+=1)e+=r,n+=t[r];e/=t.length,n/=t.length;for(var i=0,o=0,a=0;a<t.length;a+=1)i+=(a-e)*(t[a]-n),o+=Math.pow(a-e,2);for(var s=i/o,u=n-s*e,l=[],c=0;c<t.length;c+=1)l.push(s*c+u);return l}}}),xi=i(3744);const _i=(0,xi.Z)(bi,[["render",E]]);var wi=_i;function Si(t){Si.installed||(Si.installed=!0,t.component("VueBarGraph",wi))}var Ei={install:Si},Ti=null;"undefined"!==typeof window?Ti=window.Vue:"undefined"!==typeof i.g&&(Ti=i.g.Vue),Ti&&Ti.use(Ei);var ki=wi,Ci=ki}(),t.exports=o})()},59634:function(t,e,n){"use strict";n.d(e,{ZP:function(){return $}});var r=n(2262),i=void 0;var o=n(66252),a=n(73903),s=n(54849),u=null;function l(t){return u||(u=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),u(t)}var c=null;function f(t){c||(c=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),c(t)}function h(t){var e=document.createElement("style");return e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),(document.querySelector("head")||document.body).appendChild(e),e}function d(t,e){void 0===e&&(e={});var n=document.createElement(t);return Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function p(t,e,n){var r=window.getComputedStyle(t,n||null)||{display:"none"};return r[e]}function g(t){if(!document.documentElement.contains(t))return{detached:!0,rendered:!1};var e=t;while(e!==document){if("none"===p(e,"display"))return{detached:!1,rendered:!1};e=e.parentNode}return{detached:!1,rendered:!0}}var v='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',m=0,y=null;function b(t,e){t.__resize_mutation_handler__||(t.__resize_mutation_handler__=w.bind(t));var n=t.__resize_listeners__;if(!n)if(t.__resize_listeners__=[],window.ResizeObserver){var r=t.offsetWidth,i=t.offsetHeight,o=new ResizeObserver((function(){(t.__resize_observer_triggered__||(t.__resize_observer_triggered__=!0,t.offsetWidth!==r||t.offsetHeight!==i))&&E(t)})),a=g(t),s=a.detached,u=a.rendered;t.__resize_observer_triggered__=!1===s&&!1===u,t.__resize_observer__=o,o.observe(t)}else if(t.attachEvent&&t.addEventListener)t.__resize_legacy_resize_handler__=function(){E(t)},t.attachEvent("onresize",t.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);else if(m||(y=h(v)),T(t),t.__resize_rendered__=g(t).rendered,window.MutationObserver){var l=new MutationObserver(t.__resize_mutation_handler__);l.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),t.__resize_mutation_observer__=l}t.__resize_listeners__.push(e),m++}function x(t,e){var n=t.__resize_listeners__;if(n){if(e&&n.splice(n.indexOf(e),1),!n.length||!e){if(t.detachEvent&&t.removeEventListener)return t.detachEvent("onresize",t.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);t.__resize_observer__?(t.__resize_observer__.unobserve(t),t.__resize_observer__.disconnect(),t.__resize_observer__=null):(t.__resize_mutation_observer__&&(t.__resize_mutation_observer__.disconnect(),t.__resize_mutation_observer__=null),t.removeEventListener("scroll",S),t.removeChild(t.__resize_triggers__.triggers),t.__resize_triggers__=null),t.__resize_listeners__=null}! --m&&y&&y.parentNode.removeChild(y)}}function _(t){var e=t.__resize_last__,n=e.width,r=e.height,i=t.offsetWidth,o=t.offsetHeight;return i!==n||o!==r?{width:i,height:o}:null}function w(){var t=g(this),e=t.rendered,n=t.detached;e!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(k(this),this.addEventListener("scroll",S,!0)),this.__resize_rendered__=e,E(this))}function S(){var t=this;k(this),this.__resize_raf__&&f(this.__resize_raf__),this.__resize_raf__=l((function(){var e=_(t);e&&(t.__resize_last__=e,E(t))}))}function E(t){t&&t.__resize_listeners__&&t.__resize_listeners__.forEach((function(e){e.call(t,t)}))}function T(t){var e=p(t,"position");e&&"static"!==e||(t.style.position="relative"),t.__resize_old_position__=e,t.__resize_last__={};var n=d("div",{className:"resize-triggers"}),r=d("div",{className:"resize-expand-trigger"}),i=d("div"),o=d("div",{className:"resize-contract-trigger"});r.appendChild(i),n.appendChild(r),n.appendChild(o),t.appendChild(n),t.__resize_triggers__={triggers:n,expand:r,expandChild:i,contract:o},k(t),t.addEventListener("scroll",S,!0),t.__resize_last__={width:t.offsetWidth,height:t.offsetHeight}}function k(t){var e=t.__resize_triggers__,n=e.expand,r=e.expandChild,i=e.contract,o=i.scrollWidth,a=i.scrollHeight,s=n.offsetWidth,u=n.offsetHeight,l=n.scrollWidth,c=n.scrollHeight;i.scrollLeft=o,i.scrollTop=a,r.style.width=s+1+"px",r.style.height=u+1+"px",n.scrollLeft=l,n.scrollTop=c}var C=function(){return C=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},C.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var M=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function A(t){return e=Object.create(null),M.forEach((function(n){e[n]=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(!t.value)throw new Error("ECharts is not initialized yet.");return t.value[e].apply(t.value,n)}}(n)})),e;var e}var I={autoresize:[Boolean,Object]},O=/^on[^a-z]/,D=function(t){return O.test(t)};function P(t,e){var n=(0,r.SU)(t);return n&&"object"==typeof n&&"value"in n?n.value||e:n||e}var L="ecLoadingOptions",N={loading:Boolean,loadingOptions:Object},R=null,j="x-vue-echarts",F=[],B=[];!function(t,e){if(t&&"undefined"!=typeof document){var n,r=!0===e.prepend?"prepend":"append",i=!0===e.singleTag,o="string"==typeof e.container?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(i){var a=F.indexOf(o);-1===a&&(a=F.push(o)-1,B[a]={}),n=B[a]&&B[a][r]?B[a][r]:B[a][r]=s()}else n=s();65279===t.charCodeAt(0)&&(t=t.substring(1)),n.styleSheet?n.styleSheet.cssText+=t:n.appendChild(document.createTextNode(t))}function s(){var t=document.createElement("style");if(t.setAttribute("type","text/css"),e.attributes)for(var n=Object.keys(e.attributes),i=0;i<n.length;i++)t.setAttribute(n[i],e.attributes[n[i]]);var a="prepend"===r?"afterbegin":"beforeend";return o.insertAdjacentElement(a,t),t}}("x-vue-echarts{display:flex;flex-direction:column;width:100%;height:100%;min-width:0}\n.vue-echarts-inner{flex-grow:1;min-width:0}\n",{});var z=function(){if(null!=R)return R;if("undefined"==typeof HTMLElement||"undefined"==typeof customElements)return R=!1;try{new Function("tag","class EChartsElement extends HTMLElement {\n  __dispose = null;\n\n  disconnectedCallback() {\n    if (this.__dispose) {\n      this.__dispose();\n      this.__dispose = null;\n    }\n  }\n}\n\nif (customElements.get(tag) == null) {\n  customElements.define(tag, EChartsElement);\n}\n")(j)}catch(t){return R=!1}return R=!0}();i&&i.config.ignoredElements.push(j);var Z="ecTheme",U="ecInitOptions",H="ecUpdateOptions",$=(0,o.aZ)({name:"echarts",props:C(C({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},I),N),emits:{},inheritAttrs:!1,setup:function(t,e){var n=e.attrs,i=(0,r.XI)(),u=(0,r.XI)(),l=(0,r.XI)(),c=(0,r.XI)(),f=(0,o.f3)(Z,null),h=(0,o.f3)(U,null),d=(0,o.f3)(H,null),p=(0,r.BK)(t),g=p.autoresize,v=p.manualUpdate,m=p.loading,y=p.loadingOptions,_=(0,o.Fl)((function(){return c.value||t.option||null})),w=(0,o.Fl)((function(){return t.theme||P(f,{})})),S=(0,o.Fl)((function(){return t.initOptions||P(h,{})})),E=(0,o.Fl)((function(){return t.updateOptions||P(d,{})})),T=(0,o.Fl)((function(){return function(t){var e={};for(var n in t)D(n)||(e[n]=t[n]);return e}(n)})),k=(0,o.FN)().proxy.$listeners;function M(e){if(u.value){var r=l.value=(0,a.S1)(u.value,w.value,S.value);t.group&&(r.group=t.group);var i=k;i||(i={},Object.keys(n).filter((function(t){return 0===t.indexOf("on")&&t.length>2})).forEach((function(t){var e=t.charAt(2).toLowerCase()+t.slice(3);"Once"===e.substring(e.length-4)&&(e="~".concat(e.substring(0,e.length-4))),i[e]=n[t]}))),Object.keys(i).forEach((function(t){var e=i[t];if(e){var n=t.toLowerCase();"~"===n.charAt(0)&&(n=n.substring(1),e.__once__=!0);var o=r;if(0===n.indexOf("zr:")&&(o=r.getZr(),n=n.substring(3)),e.__once__){delete e.__once__;var a=e;e=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];a.apply(void 0,t),o.off(n,e)}}o.on(n,e)}})),g.value?(0,o.Y3)((function(){r&&!r.isDisposed()&&r.resize(),s()})):s()}function s(){var t=e||_.value;t&&r.setOption(t,E.value)}}function I(){l.value&&(l.value.dispose(),l.value=void 0)}var O=null;(0,o.YP)(v,(function(e){"function"==typeof O&&(O(),O=null),e||(O=(0,o.YP)((function(){return t.option}),(function(t,e){t&&(l.value?l.value.setOption(t,C({notMerge:t!==e},E.value)):M())}),{deep:!0}))}),{immediate:!0}),(0,o.YP)([w,S],(function(){I(),M()}),{deep:!0}),(0,o.m0)((function(){t.group&&l.value&&(l.value.group=t.group)}));var N=A(l);return function(t,e,n){var r=(0,o.f3)(L,{}),i=(0,o.Fl)((function(){return C(C({},P(r,{})),null==n?void 0:n.value)}));(0,o.m0)((function(){var n=t.value;n&&(e.value?n.showLoading(i.value):n.hideLoading())}))}(l,m,y),function(t,e,n){var r=null;(0,o.YP)([n,t,e],(function(t,e,n){var i=t[0],o=t[1],a=t[2];if(i&&o&&a){var u=!0===a?{}:a,l=u.throttle,c=void 0===l?100:l,f=u.onResize,h=function(){o.resize(),null==f||f()};r=c?(0,s.P2)(h,c):h,b(i,r)}n((function(){i&&r&&x(i,r)}))}))}(l,g,u),(0,o.bv)((function(){M()})),(0,o.Jd)((function(){z&&i.value?i.value.__dispose=I:I()})),C({chart:l,root:i,inner:u,setOption:function(e,n){t.manualUpdate&&(c.value=e),l.value?l.value.setOption(e,n||{}):M(e)},nonEventAttrs:T},N)},render:function(){var t=i?{attrs:this.nonEventAttrs}:C({},this.nonEventAttrs);return t.ref="root",t.class=t.class?["echarts"].concat(t.class):"echarts",(0,o.h)(j,t,[(0,o.h)("div",{ref:"inner",class:"vue-echarts-inner"})])}})},83744:function(t,e){"use strict";e.Z=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n}},59200:function(t,e,n){"use strict";n.d(e,{ri:function(){return r.createApp}});var r=n(49963),i=n(66252),o=n(3577);function a(t){throw t}function s(t){}function u(t,e,n,r){const i=t,o=new SyntaxError(String(i));return o.code=t,o.loc=e,o}const l=Symbol(""),c=Symbol(""),f=Symbol(""),h=Symbol(""),d=Symbol(""),p=Symbol(""),g=Symbol(""),v=Symbol(""),m=Symbol(""),y=Symbol(""),b=Symbol(""),x=Symbol(""),_=Symbol(""),w=Symbol(""),S=Symbol(""),E=Symbol(""),T=Symbol(""),k=Symbol(""),C=Symbol(""),M=Symbol(""),A=Symbol(""),I=Symbol(""),O=Symbol(""),D=Symbol(""),P=Symbol(""),L=Symbol(""),N=Symbol(""),R=Symbol(""),j=Symbol(""),F=Symbol(""),B=Symbol(""),z=Symbol(""),Z=Symbol(""),U=Symbol(""),H=Symbol(""),$=Symbol(""),G=Symbol(""),W=Symbol(""),V=Symbol(""),Y={[l]:"Fragment",[c]:"Teleport",[f]:"Suspense",[h]:"KeepAlive",[d]:"BaseTransition",[p]:"openBlock",[g]:"createBlock",[v]:"createElementBlock",[m]:"createVNode",[y]:"createElementVNode",[b]:"createCommentVNode",[x]:"createTextVNode",[_]:"createStaticVNode",[w]:"resolveComponent",[S]:"resolveDynamicComponent",[E]:"resolveDirective",[T]:"resolveFilter",[k]:"withDirectives",[C]:"renderList",[M]:"renderSlot",[A]:"createSlots",[I]:"toDisplayString",[O]:"mergeProps",[D]:"normalizeClass",[P]:"normalizeStyle",[L]:"normalizeProps",[N]:"guardReactiveProps",[R]:"toHandlers",[j]:"camelize",[F]:"capitalize",[B]:"toHandlerKey",[z]:"setBlockTracking",[Z]:"pushScopeId",[U]:"popScopeId",[H]:"withCtx",[$]:"unref",[G]:"isRef",[W]:"withMemo",[V]:"isMemoSame"};function X(t){Object.getOwnPropertySymbols(t).forEach((e=>{Y[e]=t[e]}))}const q={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function K(t,e=q){return{type:0,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:e}}function J(t,e,n,r,i,o,a,s=!1,u=!1,l=!1,c=q){return t&&(s?(t.helper(p),t.helper(Ot(t.inSSR,l))):t.helper(It(t.inSSR,l)),a&&t.helper(k)),{type:13,tag:e,props:n,children:r,patchFlag:i,dynamicProps:o,directives:a,isBlock:s,disableTracking:u,isComponent:l,loc:c}}function Q(t,e=q){return{type:17,loc:e,elements:t}}function tt(t,e=q){return{type:15,loc:e,properties:t}}function et(t,e){return{type:16,loc:q,key:(0,o.HD)(t)?nt(t,!0):t,value:e}}function nt(t,e=!1,n=q,r=0){return{type:4,loc:n,content:t,isStatic:e,constType:e?3:r}}function rt(t,e=q){return{type:8,loc:e,children:t}}function it(t,e=[],n=q){return{type:14,loc:n,callee:t,arguments:e}}function ot(t,e=void 0,n=!1,r=!1,i=q){return{type:18,params:t,returns:e,newline:n,isSlot:r,loc:i}}function at(t,e,n,r=!0){return{type:19,test:t,consequent:e,alternate:n,newline:r,loc:q}}function st(t,e,n=!1){return{type:20,index:t,value:e,isVNode:n,loc:q}}function ut(t){return{type:21,body:t,loc:q}}const lt=t=>4===t.type&&t.isStatic,ct=(t,e)=>t===e||t===(0,o.rs)(e);function ft(t){return ct(t,"Teleport")?c:ct(t,"Suspense")?f:ct(t,"KeepAlive")?h:ct(t,"BaseTransition")?d:void 0}const ht=/^\d|[^\$\w]/,dt=t=>!ht.test(t),pt=/[A-Za-z_$\xA0-\uFFFF]/,gt=/[\.\?\w$\xA0-\uFFFF]/,vt=/\s+[.[]\s*|\s*[.[]\s+/g,mt=t=>{t=t.trim().replace(vt,(t=>t.trim()));let e=0,n=[],r=0,i=0,o=null;for(let a=0;a<t.length;a++){const s=t.charAt(a);switch(e){case 0:if("["===s)n.push(e),e=1,r++;else if("("===s)n.push(e),e=2,i++;else if(!(0===a?pt:gt).test(s))return!1;break;case 1:"'"===s||'"'===s||"`"===s?(n.push(e),e=3,o=s):"["===s?r++:"]"===s&&(--r||(e=n.pop()));break;case 2:if("'"===s||'"'===s||"`"===s)n.push(e),e=3,o=s;else if("("===s)i++;else if(")"===s){if(a===t.length-1)return!1;--i||(e=n.pop())}break;case 3:s===o&&(e=n.pop(),o=null);break}}return!r&&!i},yt=mt;function bt(t,e,n){const r=t.source.slice(e,e+n),i={source:r,start:xt(t.start,t.source,e),end:t.end};return null!=n&&(i.end=xt(t.start,t.source,e+n)),i}function xt(t,e,n=e.length){return _t((0,o.l7)({},t),e,n)}function _t(t,e,n=e.length){let r=0,i=-1;for(let o=0;o<n;o++)10===e.charCodeAt(o)&&(r++,i=o);return t.offset+=n,t.line+=r,t.column=-1===i?t.column+n:n-i,t}function wt(t,e,n=!1){for(let r=0;r<t.props.length;r++){const i=t.props[r];if(7===i.type&&(n||i.exp)&&((0,o.HD)(e)?i.name===e:e.test(i.name)))return i}}function St(t,e,n=!1,r=!1){for(let i=0;i<t.props.length;i++){const o=t.props[i];if(6===o.type){if(n)continue;if(o.name===e&&(o.value||r))return o}else if("bind"===o.name&&(o.exp||r)&&Et(o.arg,e))return o}}function Et(t,e){return!(!t||!lt(t)||t.content!==e)}function Tt(t){return t.props.some((t=>7===t.type&&"bind"===t.name&&(!t.arg||4!==t.arg.type||!t.arg.isStatic)))}function kt(t){return 5===t.type||2===t.type}function Ct(t){return 7===t.type&&"slot"===t.name}function Mt(t){return 1===t.type&&3===t.tagType}function At(t){return 1===t.type&&2===t.tagType}function It(t,e){return t||e?m:y}function Ot(t,e){return t||e?g:v}const Dt=new Set([L,N]);function Pt(t,e=[]){if(t&&!(0,o.HD)(t)&&14===t.type){const n=t.callee;if(!(0,o.HD)(n)&&Dt.has(n))return Pt(t.arguments[0],e.concat(t))}return[t,e]}function Lt(t,e,n){let r,i,a=13===t.type?t.props:t.arguments[2],s=[];if(a&&!(0,o.HD)(a)&&14===a.type){const t=Pt(a);a=t[0],s=t[1],i=s[s.length-1]}if(null==a||(0,o.HD)(a))r=tt([e]);else if(14===a.type){const t=a.arguments[0];(0,o.HD)(t)||15!==t.type?a.callee===R?r=it(n.helper(O),[tt([e]),a]):a.arguments.unshift(tt([e])):Nt(e,t)||t.properties.unshift(e),!r&&(r=a)}else 15===a.type?(Nt(e,a)||a.properties.unshift(e),r=a):(r=it(n.helper(O),[tt([e]),a]),i&&i.callee===N&&(i=s[s.length-2]));13===t.type?i?i.arguments[0]=r:t.props=r:i?i.arguments[0]=r:t.arguments[2]=r}function Nt(t,e){let n=!1;if(4===t.key.type){const r=t.key.content;n=e.properties.some((t=>4===t.key.type&&t.key.content===r))}return n}function Rt(t,e){return`_${e}_${t.replace(/[^\w]/g,((e,n)=>"-"===e?"_":t.charCodeAt(n).toString()))}`}function jt(t){return 14===t.type&&t.callee===W?t.arguments[1].returns:t}function Ft(t,{helper:e,removeHelper:n,inSSR:r}){t.isBlock||(t.isBlock=!0,n(It(r,t.isComponent)),e(p),e(Ot(r,t.isComponent)))}function Bt(t,e){const n=e.options?e.options.compatConfig:e.compatConfig,r=n&&n[t];return"MODE"===t?r||3:r}function zt(t,e){const n=Bt("MODE",e),r=Bt(t,e);return 3===n?!0===r:!1!==r}function Zt(t,e,n,...r){const i=zt(t,e);return i}const Ut=/&(gt|lt|amp|apos|quot);/g,Ht={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},$t={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:o.NO,isPreTag:o.NO,isCustomElement:o.NO,decodeEntities:t=>t.replace(Ut,((t,e)=>Ht[e])),onError:a,onWarn:s,comments:!1};function Gt(t,e={}){const n=Wt(t,e),r=ue(n);return K(Vt(n,0,[]),le(n,r))}function Wt(t,e){const n=(0,o.l7)({},$t);let r;for(r in e)n[r]=void 0===e[r]?$t[r]:e[r];return{options:n,column:1,line:1,offset:0,originalSource:t,source:t,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function Vt(t,e,n){const r=ce(n),i=r?r.ns:0,a=[];while(!ve(t,e,n)){const s=t.source;let u;if(0===e||1===e)if(!t.inVPre&&fe(s,t.options.delimiters[0]))u=oe(t,e);else if(0===e&&"<"===s[0])if(1===s.length)ge(t,5,1);else if("!"===s[1])fe(s,"\x3c!--")?u=qt(t):fe(s,"<!DOCTYPE")?u=Kt(t):fe(s,"<![CDATA[")?0!==i?u=Xt(t,n):(ge(t,1),u=Kt(t)):(ge(t,11),u=Kt(t));else if("/"===s[1])if(2===s.length)ge(t,5,2);else{if(">"===s[2]){ge(t,14,2),he(t,3);continue}if(/[a-z]/i.test(s[2])){ge(t,23),te(t,1,r);continue}ge(t,12,2),u=Kt(t)}else/[a-z]/i.test(s[1])?(u=Jt(t,n),zt("COMPILER_NATIVE_TEMPLATE",t)&&u&&"template"===u.tag&&!u.props.some((t=>7===t.type&&Qt(t.name)))&&(u=u.children)):"?"===s[1]?(ge(t,21,1),u=Kt(t)):ge(t,12,1);if(u||(u=ae(t,e)),(0,o.kJ)(u))for(let t=0;t<u.length;t++)Yt(a,u[t]);else Yt(a,u)}let s=!1;if(2!==e&&1!==e){const e="preserve"!==t.options.whitespace;for(let n=0;n<a.length;n++){const r=a[n];if(2===r.type)if(t.inPre)r.content=r.content.replace(/\r\n/g,"\n");else if(/[^\t\r\n\f ]/.test(r.content))e&&(r.content=r.content.replace(/[\t\r\n\f ]+/g," "));else{const t=a[n-1],i=a[n+1];!t||!i||e&&(3===t.type&&3===i.type||3===t.type&&1===i.type||1===t.type&&3===i.type||1===t.type&&1===i.type&&/[\r\n]/.test(r.content))?(s=!0,a[n]=null):r.content=" "}else 3!==r.type||t.options.comments||(s=!0,a[n]=null)}if(t.inPre&&r&&t.options.isPreTag(r.tag)){const t=a[0];t&&2===t.type&&(t.content=t.content.replace(/^\r?\n/,""))}}return s?a.filter(Boolean):a}function Yt(t,e){if(2===e.type){const n=ce(t);if(n&&2===n.type&&n.loc.end.offset===e.loc.start.offset)return n.content+=e.content,n.loc.end=e.loc.end,void(n.loc.source+=e.loc.source)}t.push(e)}function Xt(t,e){he(t,9);const n=Vt(t,3,e);return 0===t.source.length?ge(t,6):he(t,3),n}function qt(t){const e=ue(t);let n;const r=/--(\!)?>/.exec(t.source);if(r){r.index<=3&&ge(t,0),r[1]&&ge(t,10),n=t.source.slice(4,r.index);const e=t.source.slice(0,r.index);let i=1,o=0;while(-1!==(o=e.indexOf("\x3c!--",i)))he(t,o-i+1),o+4<e.length&&ge(t,16),i=o+1;he(t,r.index+r[0].length-i+1)}else n=t.source.slice(4),he(t,t.source.length),ge(t,7);return{type:3,content:n,loc:le(t,e)}}function Kt(t){const e=ue(t),n="?"===t.source[1]?1:2;let r;const i=t.source.indexOf(">");return-1===i?(r=t.source.slice(n),he(t,t.source.length)):(r=t.source.slice(n,i),he(t,i+1)),{type:3,content:r,loc:le(t,e)}}function Jt(t,e){const n=t.inPre,r=t.inVPre,i=ce(e),o=te(t,0,i),a=t.inPre&&!n,s=t.inVPre&&!r;if(o.isSelfClosing||t.options.isVoidTag(o.tag))return a&&(t.inPre=!1),s&&(t.inVPre=!1),o;e.push(o);const u=t.options.getTextMode(o,i),l=Vt(t,u,e);e.pop();{const e=o.props.find((t=>6===t.type&&"inline-template"===t.name));if(e&&Zt("COMPILER_INLINE_TEMPLATE",t,e.loc)){const n=le(t,o.loc.end);e.value={type:2,content:n.source,loc:n}}}if(o.children=l,me(t.source,o.tag))te(t,1,i);else if(ge(t,24,0,o.loc.start),0===t.source.length&&"script"===o.tag.toLowerCase()){const e=l[0];e&&fe(e.loc.source,"\x3c!--")&&ge(t,8)}return o.loc=le(t,o.loc.start),a&&(t.inPre=!1),s&&(t.inVPre=!1),o}const Qt=(0,o.fY)("if,else,else-if,for,slot");function te(t,e,n){const r=ue(t),i=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(t.source),a=i[1],s=t.options.getNamespace(a,n);he(t,i[0].length),de(t);const u=ue(t),l=t.source;t.options.isPreTag(a)&&(t.inPre=!0);let c=ne(t,e);0===e&&!t.inVPre&&c.some((t=>7===t.type&&"pre"===t.name))&&(t.inVPre=!0,(0,o.l7)(t,u),t.source=l,c=ne(t,e).filter((t=>"v-pre"!==t.name)));let f=!1;if(0===t.source.length?ge(t,9):(f=fe(t.source,"/>"),1===e&&f&&ge(t,4),he(t,f?2:1)),1===e)return;let h=0;return t.inVPre||("slot"===a?h=2:"template"===a?c.some((t=>7===t.type&&Qt(t.name)))&&(h=3):ee(a,c,t)&&(h=1)),{type:1,ns:s,tag:a,tagType:h,props:c,isSelfClosing:f,children:[],loc:le(t,r),codegenNode:void 0}}function ee(t,e,n){const r=n.options;if(r.isCustomElement(t))return!1;if("component"===t||/^[A-Z]/.test(t)||ft(t)||r.isBuiltInComponent&&r.isBuiltInComponent(t)||r.isNativeTag&&!r.isNativeTag(t))return!0;for(let i=0;i<e.length;i++){const t=e[i];if(6===t.type){if("is"===t.name&&t.value){if(t.value.content.startsWith("vue:"))return!0;if(Zt("COMPILER_IS_ON_ELEMENT",n,t.loc))return!0}}else{if("is"===t.name)return!0;if("bind"===t.name&&Et(t.arg,"is")&&Zt("COMPILER_IS_ON_ELEMENT",n,t.loc))return!0}}}function ne(t,e){const n=[],r=new Set;while(t.source.length>0&&!fe(t.source,">")&&!fe(t.source,"/>")){if(fe(t.source,"/")){ge(t,22),he(t,1),de(t);continue}1===e&&ge(t,3);const i=re(t,r);6===i.type&&i.value&&"class"===i.name&&(i.value.content=i.value.content.replace(/\s+/g," ").trim()),0===e&&n.push(i),/^[^\t\r\n\f />]/.test(t.source)&&ge(t,15),de(t)}return n}function re(t,e){const n=ue(t),r=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(t.source),i=r[0];e.has(i)&&ge(t,2),e.add(i),"="===i[0]&&ge(t,19);{const e=/["'<]/g;let n;while(n=e.exec(i))ge(t,17,n.index)}let o;he(t,i.length),/^[\t\r\n\f ]*=/.test(t.source)&&(de(t),he(t,1),de(t),o=ie(t),o||ge(t,13));const a=le(t,n);if(!t.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(i)){const e=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(i);let r,s=fe(i,"."),u=e[1]||(s||fe(i,":")?"bind":fe(i,"@")?"on":"slot");if(e[2]){const o="slot"===u,a=i.lastIndexOf(e[2]),s=le(t,pe(t,n,a),pe(t,n,a+e[2].length+(o&&e[3]||"").length));let l=e[2],c=!0;l.startsWith("[")?(c=!1,l.endsWith("]")?l=l.slice(1,l.length-1):(ge(t,27),l=l.slice(1))):o&&(l+=e[3]||""),r={type:4,content:l,isStatic:c,constType:c?3:0,loc:s}}if(o&&o.isQuoted){const t=o.loc;t.start.offset++,t.start.column++,t.end=xt(t.start,o.content),t.source=t.source.slice(1,-1)}const l=e[3]?e[3].slice(1).split("."):[];return s&&l.push("prop"),"bind"===u&&r&&l.includes("sync")&&Zt("COMPILER_V_BIND_SYNC",t,a,r.loc.source)&&(u="model",l.splice(l.indexOf("sync"),1)),{type:7,name:u,exp:o&&{type:4,content:o.content,isStatic:!1,constType:0,loc:o.loc},arg:r,modifiers:l,loc:a}}return!t.inVPre&&fe(i,"v-")&&ge(t,26),{type:6,name:i,value:o&&{type:2,content:o.content,loc:o.loc},loc:a}}function ie(t){const e=ue(t);let n;const r=t.source[0],i='"'===r||"'"===r;if(i){he(t,1);const e=t.source.indexOf(r);-1===e?n=se(t,t.source.length,4):(n=se(t,e,4),he(t,1))}else{const e=/^[^\t\r\n\f >]+/.exec(t.source);if(!e)return;const r=/["'<=`]/g;let i;while(i=r.exec(e[0]))ge(t,18,i.index);n=se(t,e[0].length,4)}return{content:n,isQuoted:i,loc:le(t,e)}}function oe(t,e){const[n,r]=t.options.delimiters,i=t.source.indexOf(r,n.length);if(-1===i)return void ge(t,25);const o=ue(t);he(t,n.length);const a=ue(t),s=ue(t),u=i-n.length,l=t.source.slice(0,u),c=se(t,u,e),f=c.trim(),h=c.indexOf(f);h>0&&_t(a,l,h);const d=u-(c.length-f.length-h);return _t(s,l,d),he(t,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:f,loc:le(t,a,s)},loc:le(t,o)}}function ae(t,e){const n=3===e?["]]>"]:["<",t.options.delimiters[0]];let r=t.source.length;for(let a=0;a<n.length;a++){const e=t.source.indexOf(n[a],1);-1!==e&&r>e&&(r=e)}const i=ue(t),o=se(t,r,e);return{type:2,content:o,loc:le(t,i)}}function se(t,e,n){const r=t.source.slice(0,e);return he(t,e),2!==n&&3!==n&&r.includes("&")?t.options.decodeEntities(r,4===n):r}function ue(t){const{column:e,line:n,offset:r}=t;return{column:e,line:n,offset:r}}function le(t,e,n){return n=n||ue(t),{start:e,end:n,source:t.originalSource.slice(e.offset,n.offset)}}function ce(t){return t[t.length-1]}function fe(t,e){return t.startsWith(e)}function he(t,e){const{source:n}=t;_t(t,n,e),t.source=n.slice(e)}function de(t){const e=/^[\t\r\n\f ]+/.exec(t.source);e&&he(t,e[0].length)}function pe(t,e,n){return xt(e,t.originalSource.slice(e.offset,n),n)}function ge(t,e,n,r=ue(t)){n&&(r.offset+=n,r.column+=n),t.options.onError(u(e,{start:r,end:r,source:""}))}function ve(t,e,n){const r=t.source;switch(e){case 0:if(fe(r,"</"))for(let t=n.length-1;t>=0;--t)if(me(r,n[t].tag))return!0;break;case 1:case 2:{const t=ce(n);if(t&&me(r,t.tag))return!0;break}case 3:if(fe(r,"]]>"))return!0;break}return!r}function me(t,e){return fe(t,"</")&&t.slice(2,2+e.length).toLowerCase()===e.toLowerCase()&&/[\t\r\n\f />]/.test(t[2+e.length]||">")}function ye(t,e){xe(t,e,be(t,t.children[0]))}function be(t,e){const{children:n}=t;return 1===n.length&&1===e.type&&!At(e)}function xe(t,e,n=!1){const{children:r}=t,i=r.length;let a=0;for(let o=0;o<r.length;o++){const t=r[o];if(1===t.type&&0===t.tagType){const r=n?0:_e(t,e);if(r>0){if(r>=2){t.codegenNode.patchFlag="-1",t.codegenNode=e.hoist(t.codegenNode),a++;continue}}else{const n=t.codegenNode;if(13===n.type){const r=ke(n);if((!r||512===r||1===r)&&Ee(t,e)>=2){const r=Te(t);r&&(n.props=e.hoist(r))}n.dynamicProps&&(n.dynamicProps=e.hoist(n.dynamicProps))}}}if(1===t.type){const n=1===t.tagType;n&&e.scopes.vSlot++,xe(t,e),n&&e.scopes.vSlot--}else if(11===t.type)xe(t,e,1===t.children.length);else if(9===t.type)for(let n=0;n<t.branches.length;n++)xe(t.branches[n],e,1===t.branches[n].children.length)}a&&e.transformHoist&&e.transformHoist(r,e,t),a&&a===i&&1===t.type&&0===t.tagType&&t.codegenNode&&13===t.codegenNode.type&&(0,o.kJ)(t.codegenNode.children)&&(t.codegenNode.children=e.hoist(Q(t.codegenNode.children)))}function _e(t,e){const{constantCache:n}=e;switch(t.type){case 1:if(0!==t.tagType)return 0;const r=n.get(t);if(void 0!==r)return r;const i=t.codegenNode;if(13!==i.type)return 0;if(i.isBlock&&"svg"!==t.tag&&"foreignObject"!==t.tag)return 0;const a=ke(i);if(a)return n.set(t,0),0;{let r=3;const o=Ee(t,e);if(0===o)return n.set(t,0),0;o<r&&(r=o);for(let i=0;i<t.children.length;i++){const o=_e(t.children[i],e);if(0===o)return n.set(t,0),0;o<r&&(r=o)}if(r>1)for(let i=0;i<t.props.length;i++){const o=t.props[i];if(7===o.type&&"bind"===o.name&&o.exp){const i=_e(o.exp,e);if(0===i)return n.set(t,0),0;i<r&&(r=i)}}if(i.isBlock){for(let e=0;e<t.props.length;e++){const r=t.props[e];if(7===r.type)return n.set(t,0),0}e.removeHelper(p),e.removeHelper(Ot(e.inSSR,i.isComponent)),i.isBlock=!1,e.helper(It(e.inSSR,i.isComponent))}return n.set(t,r),r}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return _e(t.content,e);case 4:return t.constType;case 8:let s=3;for(let n=0;n<t.children.length;n++){const r=t.children[n];if((0,o.HD)(r)||(0,o.yk)(r))continue;const i=_e(r,e);if(0===i)return 0;i<s&&(s=i)}return s;default:return 0}}const we=new Set([D,P,L,N]);function Se(t,e){if(14===t.type&&!(0,o.HD)(t.callee)&&we.has(t.callee)){const n=t.arguments[0];if(4===n.type)return _e(n,e);if(14===n.type)return Se(n,e)}return 0}function Ee(t,e){let n=3;const r=Te(t);if(r&&15===r.type){const{properties:t}=r;for(let r=0;r<t.length;r++){const{key:i,value:o}=t[r],a=_e(i,e);if(0===a)return a;let s;if(a<n&&(n=a),s=4===o.type?_e(o,e):14===o.type?Se(o,e):0,0===s)return s;s<n&&(n=s)}}return n}function Te(t){const e=t.codegenNode;if(13===e.type)return e.props}function ke(t){const e=t.patchFlag;return e?parseInt(e,10):void 0}function Ce(t,{filename:e="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:i=!1,nodeTransforms:u=[],directiveTransforms:l={},transformHoist:c=null,isBuiltInComponent:f=o.dG,isCustomElement:h=o.dG,expressionPlugins:d=[],scopeId:p=null,slotted:g=!0,ssr:v=!1,inSSR:m=!1,ssrCssVars:y="",bindingMetadata:b=o.kT,inline:x=!1,isTS:_=!1,onError:w=a,onWarn:S=s,compatConfig:E}){const T=e.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={selfName:T&&(0,o.kC)((0,o._A)(T[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:i,nodeTransforms:u,directiveTransforms:l,transformHoist:c,isBuiltInComponent:f,isCustomElement:h,expressionPlugins:d,scopeId:p,slotted:g,ssr:v,inSSR:m,ssrCssVars:y,bindingMetadata:b,inline:x,isTS:_,onError:w,onWarn:S,compatConfig:E,root:t,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:t,childIndex:0,inVOnce:!1,helper(t){const e=k.helpers.get(t)||0;return k.helpers.set(t,e+1),t},removeHelper(t){const e=k.helpers.get(t);if(e){const n=e-1;n?k.helpers.set(t,n):k.helpers.delete(t)}},helperString(t){return`_${Y[k.helper(t)]}`},replaceNode(t){k.parent.children[k.childIndex]=k.currentNode=t},removeNode(t){const e=k.parent.children,n=t?e.indexOf(t):k.currentNode?k.childIndex:-1;t&&t!==k.currentNode?k.childIndex>n&&(k.childIndex--,k.onNodeRemoved()):(k.currentNode=null,k.onNodeRemoved()),k.parent.children.splice(n,1)},onNodeRemoved:()=>{},addIdentifiers(t){},removeIdentifiers(t){},hoist(t){(0,o.HD)(t)&&(t=nt(t)),k.hoists.push(t);const e=nt(`_hoisted_${k.hoists.length}`,!1,t.loc,2);return e.hoisted=t,e},cache(t,e=!1){return st(k.cached++,t,e)}};return k.filters=new Set,k}function Me(t,e){const n=Ce(t,e);Oe(t,n),e.hoistStatic&&ye(t,n),e.ssr||Ae(t,n),t.helpers=new Set([...n.helpers.keys()]),t.components=[...n.components],t.directives=[...n.directives],t.imports=n.imports,t.hoists=n.hoists,t.temps=n.temps,t.cached=n.cached,t.filters=[...n.filters]}function Ae(t,e){const{helper:n}=e,{children:r}=t;if(1===r.length){const n=r[0];if(be(t,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&Ft(r,e),t.codegenNode=r}else t.codegenNode=n}else if(r.length>1){let r=64;o.m[64];0,t.codegenNode=J(e,n(l),void 0,t.children,r+"",void 0,void 0,!0,void 0,!1)}}function Ie(t,e){let n=0;const r=()=>{n--};for(;n<t.children.length;n++){const i=t.children[n];(0,o.HD)(i)||(e.parent=t,e.childIndex=n,e.onNodeRemoved=r,Oe(i,e))}}function Oe(t,e){e.currentNode=t;const{nodeTransforms:n}=e,r=[];for(let a=0;a<n.length;a++){const i=n[a](t,e);if(i&&((0,o.kJ)(i)?r.push(...i):r.push(i)),!e.currentNode)return;t=e.currentNode}switch(t.type){case 3:e.ssr||e.helper(b);break;case 5:e.ssr||e.helper(I);break;case 9:for(let n=0;n<t.branches.length;n++)Oe(t.branches[n],e);break;case 10:case 11:case 1:case 0:Ie(t,e);break}e.currentNode=t;let i=r.length;while(i--)r[i]()}function De(t,e){const n=(0,o.HD)(t)?e=>e===t:e=>t.test(e);return(t,r)=>{if(1===t.type){const{props:i}=t;if(3===t.tagType&&i.some(Ct))return;const o=[];for(let a=0;a<i.length;a++){const s=i[a];if(7===s.type&&n(s.name)){i.splice(a,1),a--;const n=e(t,s,r);n&&o.push(n)}}return o}}}const Pe="/*#__PURE__*/",Le=t=>`${Y[t]}: _${Y[t]}`;function Ne(t,{mode:e="function",prefixIdentifiers:n="module"===e,sourceMap:r=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:a=!1,runtimeGlobalName:s="Vue",runtimeModuleName:u="vue",ssrRuntimeModuleName:l="vue/server-renderer",ssr:c=!1,isTS:f=!1,inSSR:h=!1}){const d={mode:e,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:o,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:u,ssrRuntimeModuleName:l,ssr:c,isTS:f,inSSR:h,source:t.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(t){return`_${Y[t]}`},push(t,e){d.code+=t},indent(){p(++d.indentLevel)},deindent(t=!1){t?--d.indentLevel:p(--d.indentLevel)},newline(){p(d.indentLevel)}};function p(t){d.push("\n"+"  ".repeat(t))}return d}function Re(t,e={}){const n=Ne(t,e);e.onContextCreated&&e.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:o,indent:a,deindent:s,newline:u,scopeId:l,ssr:c}=n,f=Array.from(t.helpers),h=f.length>0,d=!o&&"module"!==r,p=!1,g=p?Ne(t,e):n;je(t,g);const v=c?"ssrRender":"render",m=c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"],y=m.join(", ");if(i(`function ${v}(${y}) {`),a(),d&&(i("with (_ctx) {"),a(),h&&(i(`const { ${f.map(Le).join(", ")} } = _Vue`),i("\n"),u())),t.components.length&&(Fe(t.components,"component",n),(t.directives.length||t.temps>0)&&u()),t.directives.length&&(Fe(t.directives,"directive",n),t.temps>0&&u()),t.filters&&t.filters.length&&(u(),Fe(t.filters,"filter",n),u()),t.temps>0){i("let ");for(let e=0;e<t.temps;e++)i(`${e>0?", ":""}_temp${e}`)}return(t.components.length||t.directives.length||t.temps)&&(i("\n"),u()),c||i("return "),t.codegenNode?Ue(t.codegenNode,n):i("null"),d&&(s(),i("}")),s(),i("}"),{ast:t,code:n.code,preamble:p?g.code:"",map:n.map?n.map.toJSON():void 0}}function je(t,e){const{ssr:n,prefixIdentifiers:r,push:i,newline:o,runtimeModuleName:a,runtimeGlobalName:s,ssrRuntimeModuleName:u}=e,l=s,c=Array.from(t.helpers);if(c.length>0&&(i(`const _Vue = ${l}\n`),t.hoists.length)){const t=[m,y,b,x,_].filter((t=>c.includes(t))).map(Le).join(", ");i(`const { ${t} } = _Vue\n`)}Be(t.hoists,e),o(),i("return ")}function Fe(t,e,{helper:n,push:r,newline:i,isTS:o}){const a=n("filter"===e?T:"component"===e?w:E);for(let s=0;s<t.length;s++){let n=t[s];const u=n.endsWith("__self");u&&(n=n.slice(0,-6)),r(`const ${Rt(n,e)} = ${a}(${JSON.stringify(n)}${u?", true":""})${o?"!":""}`),s<t.length-1&&i()}}function Be(t,e){if(!t.length)return;e.pure=!0;const{push:n,newline:r,helper:i,scopeId:o,mode:a}=e;r();for(let s=0;s<t.length;s++){const i=t[s];i&&(n(`const _hoisted_${s+1} = `),Ue(i,e),r())}e.pure=!1}function ze(t,e){const n=t.length>3||!1;e.push("["),n&&e.indent(),Ze(t,e,n),n&&e.deindent(),e.push("]")}function Ze(t,e,n=!1,r=!0){const{push:i,newline:a}=e;for(let s=0;s<t.length;s++){const u=t[s];(0,o.HD)(u)?i(u):(0,o.kJ)(u)?ze(u,e):Ue(u,e),s<t.length-1&&(n?(r&&i(","),a()):r&&i(", "))}}function Ue(t,e){if((0,o.HD)(t))e.push(t);else if((0,o.yk)(t))e.push(e.helper(t));else switch(t.type){case 1:case 9:case 11:Ue(t.codegenNode,e);break;case 2:He(t,e);break;case 4:$e(t,e);break;case 5:Ge(t,e);break;case 12:Ue(t.codegenNode,e);break;case 8:We(t,e);break;case 3:Ye(t,e);break;case 13:Xe(t,e);break;case 14:Ke(t,e);break;case 15:Je(t,e);break;case 17:Qe(t,e);break;case 18:tn(t,e);break;case 19:en(t,e);break;case 20:nn(t,e);break;case 21:Ze(t.body,e,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:0}}function He(t,e){e.push(JSON.stringify(t.content),t)}function $e(t,e){const{content:n,isStatic:r}=t;e.push(r?JSON.stringify(n):n,t)}function Ge(t,e){const{push:n,helper:r,pure:i}=e;i&&n(Pe),n(`${r(I)}(`),Ue(t.content,e),n(")")}function We(t,e){for(let n=0;n<t.children.length;n++){const r=t.children[n];(0,o.HD)(r)?e.push(r):Ue(r,e)}}function Ve(t,e){const{push:n}=e;if(8===t.type)n("["),We(t,e),n("]");else if(t.isStatic){const e=dt(t.content)?t.content:JSON.stringify(t.content);n(e,t)}else n(`[${t.content}]`,t)}function Ye(t,e){const{push:n,helper:r,pure:i}=e;i&&n(Pe),n(`${r(b)}(${JSON.stringify(t.content)})`,t)}function Xe(t,e){const{push:n,helper:r,pure:i}=e,{tag:o,props:a,children:s,patchFlag:u,dynamicProps:l,directives:c,isBlock:f,disableTracking:h,isComponent:d}=t;c&&n(r(k)+"("),f&&n(`(${r(p)}(${h?"true":""}), `),i&&n(Pe);const g=f?Ot(e.inSSR,d):It(e.inSSR,d);n(r(g)+"(",t),Ze(qe([o,a,s,u,l]),e),n(")"),f&&n(")"),c&&(n(", "),Ue(c,e),n(")"))}function qe(t){let e=t.length;while(e--)if(null!=t[e])break;return t.slice(0,e+1).map((t=>t||"null"))}function Ke(t,e){const{push:n,helper:r,pure:i}=e,a=(0,o.HD)(t.callee)?t.callee:r(t.callee);i&&n(Pe),n(a+"(",t),Ze(t.arguments,e),n(")")}function Je(t,e){const{push:n,indent:r,deindent:i,newline:o}=e,{properties:a}=t;if(!a.length)return void n("{}",t);const s=a.length>1||!1;n(s?"{":"{ "),s&&r();for(let u=0;u<a.length;u++){const{key:t,value:r}=a[u];Ve(t,e),n(": "),Ue(r,e),u<a.length-1&&(n(","),o())}s&&i(),n(s?"}":" }")}function Qe(t,e){ze(t.elements,e)}function tn(t,e){const{push:n,indent:r,deindent:i}=e,{params:a,returns:s,body:u,newline:l,isSlot:c}=t;c&&n(`_${Y[H]}(`),n("(",t),(0,o.kJ)(a)?Ze(a,e):a&&Ue(a,e),n(") => "),(l||u)&&(n("{"),r()),s?(l&&n("return "),(0,o.kJ)(s)?ze(s,e):Ue(s,e)):u&&Ue(u,e),(l||u)&&(i(),n("}")),c&&(t.isNonScopedSlot&&n(", undefined, true"),n(")"))}function en(t,e){const{test:n,consequent:r,alternate:i,newline:o}=t,{push:a,indent:s,deindent:u,newline:l}=e;if(4===n.type){const t=!dt(n.content);t&&a("("),$e(n,e),t&&a(")")}else a("("),Ue(n,e),a(")");o&&s(),e.indentLevel++,o||a(" "),a("? "),Ue(r,e),e.indentLevel--,o&&l(),o||a(" "),a(": ");const c=19===i.type;c||e.indentLevel++,Ue(i,e),c||e.indentLevel--,o&&u(!0)}function nn(t,e){const{push:n,helper:r,indent:i,deindent:o,newline:a}=e;n(`_cache[${t.index}] || (`),t.isVNode&&(i(),n(`${r(z)}(-1),`),a()),n(`_cache[${t.index}] = `),Ue(t.value,e),t.isVNode&&(n(","),a(),n(`${r(z)}(1),`),a(),n(`_cache[${t.index}]`),o()),n(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const rn=De(/^(if|else|else-if)$/,((t,e,n)=>on(t,e,n,((t,e,r)=>{const i=n.parent.children;let o=i.indexOf(t),a=0;while(o-- >=0){const t=i[o];t&&9===t.type&&(a+=t.branches.length)}return()=>{if(r)t.codegenNode=sn(e,a,n);else{const r=ln(t.codegenNode);r.alternate=sn(e,a+t.branches.length-1,n)}}}))));function on(t,e,n,r){if("else"!==e.name&&(!e.exp||!e.exp.content.trim())){const r=e.exp?e.exp.loc:t.loc;n.onError(u(28,e.loc)),e.exp=nt("true",!1,r)}if("if"===e.name){const i=an(t,e),o={type:9,loc:t.loc,branches:[i]};if(n.replaceNode(o),r)return r(o,i,!0)}else{const i=n.parent.children;let o=i.indexOf(t);while(o-- >=-1){const a=i[o];if(a&&3===a.type)n.removeNode(a);else{if(!a||2!==a.type||a.content.trim().length){if(a&&9===a.type){"else-if"===e.name&&void 0===a.branches[a.branches.length-1].condition&&n.onError(u(30,t.loc)),n.removeNode();const i=an(t,e);0,a.branches.push(i);const o=r&&r(a,i,!1);Oe(i,n),o&&o(),n.currentNode=null}else n.onError(u(30,t.loc));break}n.removeNode(a)}}}}function an(t,e){const n=3===t.tagType;return{type:10,loc:t.loc,condition:"else"===e.name?void 0:e.exp,children:n&&!wt(t,"for")?t.children:[t],userKey:St(t,"key"),isTemplateIf:n}}function sn(t,e,n){return t.condition?at(t.condition,un(t,e,n),it(n.helper(b),['""',"true"])):un(t,e,n)}function un(t,e,n){const{helper:r}=n,i=et("key",nt(`${e}`,!1,q,2)),{children:a}=t,s=a[0],u=1!==a.length||1!==s.type;if(u){if(1===a.length&&11===s.type){const t=s.codegenNode;return Lt(t,i,n),t}{let e=64;o.m[64];return J(n,r(l),tt([i]),a,e+"",void 0,void 0,!0,!1,!1,t.loc)}}{const t=s.codegenNode,e=jt(t);return 13===e.type&&Ft(e,n),Lt(e,i,n),t}}function ln(t){while(1)if(19===t.type){if(19!==t.alternate.type)return t;t=t.alternate}else 20===t.type&&(t=t.value)}const cn=De("for",((t,e,n)=>{const{helper:r,removeHelper:i}=n;return fn(t,e,n,(e=>{const o=it(r(C),[e.source]),a=Mt(t),s=wt(t,"memo"),u=St(t,"key"),c=u&&(6===u.type?nt(u.value.content,!0):u.exp),f=u?et("key",c):null,h=4===e.source.type&&e.source.constType>0,d=h?64:u?128:256;return e.codegenNode=J(n,r(l),void 0,o,d+"",void 0,void 0,!0,!h,!1,t.loc),()=>{let u;const{children:d}=e;const g=1!==d.length||1!==d[0].type,v=At(t)?t:a&&1===t.children.length&&At(t.children[0])?t.children[0]:null;if(v?(u=v.codegenNode,a&&f&&Lt(u,f,n)):g?u=J(n,r(l),f?tt([f]):void 0,t.children,"64",void 0,void 0,!0,void 0,!1):(u=d[0].codegenNode,a&&f&&Lt(u,f,n),u.isBlock!==!h&&(u.isBlock?(i(p),i(Ot(n.inSSR,u.isComponent))):i(It(n.inSSR,u.isComponent))),u.isBlock=!h,u.isBlock?(r(p),r(Ot(n.inSSR,u.isComponent))):r(It(n.inSSR,u.isComponent))),s){const t=ot(mn(e.parseResult,[nt("_cached")]));t.body=ut([rt(["const _memo = (",s.exp,")"]),rt(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(V)}(_cached, _memo)) return _cached`]),rt(["const _item = ",u]),nt("_item.memo = _memo"),nt("return _item")]),o.arguments.push(t,nt("_cache"),nt(String(n.cached++)))}else o.arguments.push(ot(mn(e.parseResult),u,!0))}}))}));function fn(t,e,n,r){if(!e.exp)return void n.onError(u(31,e.loc));const i=gn(e.exp,n);if(!i)return void n.onError(u(32,e.loc));const{addIdentifiers:o,removeIdentifiers:a,scopes:s}=n,{source:l,value:c,key:f,index:h}=i,d={type:11,loc:e.loc,source:l,valueAlias:c,keyAlias:f,objectIndexAlias:h,parseResult:i,children:Mt(t)?t.children:[t]};n.replaceNode(d),s.vFor++;const p=r&&r(d);return()=>{s.vFor--,p&&p()}}const hn=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,dn=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,pn=/^\(|\)$/g;function gn(t,e){const n=t.loc,r=t.content,i=r.match(hn);if(!i)return;const[,o,a]=i,s={source:vn(n,a.trim(),r.indexOf(a,o.length)),value:void 0,key:void 0,index:void 0};let u=o.trim().replace(pn,"").trim();const l=o.indexOf(u),c=u.match(dn);if(c){u=u.replace(dn,"").trim();const t=c[1].trim();let e;if(t&&(e=r.indexOf(t,l+u.length),s.key=vn(n,t,e)),c[2]){const i=c[2].trim();i&&(s.index=vn(n,i,r.indexOf(i,s.key?e+t.length:l+u.length)))}}return u&&(s.value=vn(n,u,l)),s}function vn(t,e,n){return nt(e,!1,bt(t,n,e.length))}function mn({value:t,key:e,index:n},r=[]){return yn([t,e,n,...r])}function yn(t){let e=t.length;while(e--)if(t[e])break;return t.slice(0,e+1).map(((t,e)=>t||nt("_".repeat(e+1),!1)))}const bn=nt("undefined",!1),xn=(t,e)=>{if(1===t.type&&(1===t.tagType||3===t.tagType)){const n=wt(t,"slot");if(n)return n.exp,e.scopes.vSlot++,()=>{e.scopes.vSlot--}}},_n=(t,e,n)=>ot(t,e,!1,!0,e.length?e[0].loc:n);function wn(t,e,n=_n){e.helper(H);const{children:r,loc:i}=t,o=[],a=[];let s=e.scopes.vSlot>0||e.scopes.vFor>0;const l=wt(t,"slot",!0);if(l){const{arg:t,exp:e}=l;t&&!lt(t)&&(s=!0),o.push(et(t||nt("default",!0),n(e,r,i)))}let c=!1,f=!1;const h=[],d=new Set;let p=0;for(let m=0;m<r.length;m++){const t=r[m];let i;if(!Mt(t)||!(i=wt(t,"slot",!0))){3!==t.type&&h.push(t);continue}if(l){e.onError(u(37,i.loc));break}c=!0;const{children:g,loc:v}=t,{arg:y=nt("default",!0),exp:b,loc:x}=i;let _;lt(y)?_=y?y.content:"default":s=!0;const w=n(b,g,v);let S,E,T;if(S=wt(t,"if"))s=!0,a.push(at(S.exp,Sn(y,w,p++),bn));else if(E=wt(t,/^else(-if)?$/,!0)){let t,n=m;while(n--)if(t=r[n],3!==t.type)break;if(t&&Mt(t)&&wt(t,"if")){r.splice(m,1),m--;let t=a[a.length-1];while(19===t.alternate.type)t=t.alternate;t.alternate=E.exp?at(E.exp,Sn(y,w,p++),bn):Sn(y,w,p++)}else e.onError(u(30,E.loc))}else if(T=wt(t,"for")){s=!0;const t=T.parseResult||gn(T.exp,e);t?a.push(it(e.helper(C),[t.source,ot(mn(t),Sn(y,w),!0)])):e.onError(u(32,T.loc))}else{if(_){if(d.has(_)){e.onError(u(38,x));continue}d.add(_),"default"===_&&(f=!0)}o.push(et(y,w))}}if(!l){const t=(t,r)=>{const o=n(t,r,i);return e.compatConfig&&(o.isNonScopedSlot=!0),et("default",o)};c?h.length&&h.some((t=>Tn(t)))&&(f?e.onError(u(39,h[0].loc)):o.push(t(void 0,h))):o.push(t(void 0,r))}const g=s?2:En(t.children)?3:1;let v=tt(o.concat(et("_",nt(g+"",!1))),i);return a.length&&(v=it(e.helper(A),[v,Q(a)])),{slots:v,hasDynamicSlots:s}}function Sn(t,e,n){const r=[et("name",t),et("fn",e)];return null!=n&&r.push(et("key",nt(String(n),!0))),tt(r)}function En(t){for(let e=0;e<t.length;e++){const n=t[e];switch(n.type){case 1:if(2===n.tagType||En(n.children))return!0;break;case 9:if(En(n.branches))return!0;break;case 10:case 11:if(En(n.children))return!0;break}}return!1}function Tn(t){return 2!==t.type&&12!==t.type||(2===t.type?!!t.content.trim():Tn(t.content))}const kn=new WeakMap,Cn=(t,e)=>function(){if(t=e.currentNode,1!==t.type||0!==t.tagType&&1!==t.tagType)return;const{tag:n,props:r}=t,i=1===t.tagType;let a=i?Mn(t,e):`"${n}"`;const s=(0,o.Kn)(a)&&a.callee===S;let u,l,d,p,g,v,m=0,y=s||a===c||a===f||!i&&("svg"===n||"foreignObject"===n);if(r.length>0){const n=An(t,e,void 0,i,s);u=n.props,m=n.patchFlag,g=n.dynamicPropNames;const r=n.directives;v=r&&r.length?Q(r.map((t=>Dn(t,e)))):void 0,n.shouldUseBlock&&(y=!0)}if(t.children.length>0){a===h&&(y=!0,m|=1024);const n=i&&a!==c&&a!==h;if(n){const{slots:n,hasDynamicSlots:r}=wn(t,e);l=n,r&&(m|=1024)}else if(1===t.children.length&&a!==c){const n=t.children[0],r=n.type,i=5===r||8===r;i&&0===_e(n,e)&&(m|=1),l=i||2===r?n:t.children}else l=t.children}0!==m&&(d=String(m),g&&g.length&&(p=Pn(g))),t.codegenNode=J(e,a,u,l,d,p,v,!!y,!1,i,t.loc)};function Mn(t,e,n=!1){let{tag:r}=t;const i=Ln(r),o=St(t,"is");if(o)if(i||zt("COMPILER_IS_ON_ELEMENT",e)){const t=6===o.type?o.value&&nt(o.value.content,!0):o.exp;if(t)return it(e.helper(S),[t])}else 6===o.type&&o.value.content.startsWith("vue:")&&(r=o.value.content.slice(4));const a=!i&&wt(t,"is");if(a&&a.exp)return it(e.helper(S),[a.exp]);const s=ft(r)||e.isBuiltInComponent(r);return s?(n||e.helper(s),s):(e.helper(w),e.components.add(r),Rt(r,"component"))}function An(t,e,n=t.props,r,i,a=!1){const{tag:s,loc:l,children:c}=t;let f=[];const h=[],d=[],p=c.length>0;let g=!1,v=0,m=!1,y=!1,b=!1,x=!1,_=!1,w=!1;const S=[],E=t=>{f.length&&(h.push(tt(In(f),l)),f=[]),t&&h.push(t)},T=({key:t,value:n})=>{if(lt(t)){const a=t.content,s=(0,o.F7)(a);if(!s||r&&!i||"onclick"===a.toLowerCase()||"onUpdate:modelValue"===a||(0,o.Gg)(a)||(x=!0),s&&(0,o.Gg)(a)&&(w=!0),20===n.type||(4===n.type||8===n.type)&&_e(n,e)>0)return;"ref"===a?m=!0:"class"===a?y=!0:"style"===a?b=!0:"key"===a||S.includes(a)||S.push(a),!r||"class"!==a&&"style"!==a||S.includes(a)||S.push(a)}else _=!0};for(let C=0;C<n.length;C++){const i=n[C];if(6===i.type){const{loc:t,name:n,value:r}=i;let o=!0;if("ref"===n&&(m=!0,e.scopes.vFor>0&&f.push(et(nt("ref_for",!0),nt("true")))),"is"===n&&(Ln(s)||r&&r.content.startsWith("vue:")||zt("COMPILER_IS_ON_ELEMENT",e)))continue;f.push(et(nt(n,!0,bt(t,0,n.length)),nt(r?r.content:"",o,r?r.loc:t)))}else{const{name:n,arg:c,exp:v,loc:m}=i,y="bind"===n,b="on"===n;if("slot"===n){r||e.onError(u(40,m));continue}if("once"===n||"memo"===n)continue;if("is"===n||y&&Et(c,"is")&&(Ln(s)||zt("COMPILER_IS_ON_ELEMENT",e)))continue;if(b&&a)continue;if((y&&Et(c,"key")||b&&p&&Et(c,"vue:before-update"))&&(g=!0),y&&Et(c,"ref")&&e.scopes.vFor>0&&f.push(et(nt("ref_for",!0),nt("true"))),!c&&(y||b)){if(_=!0,v)if(y){if(E(),zt("COMPILER_V_BIND_OBJECT_ORDER",e)){h.unshift(v);continue}h.push(v)}else E({type:14,loc:m,callee:e.helper(R),arguments:r?[v]:[v,"true"]});else e.onError(u(y?34:35,m));continue}const x=e.directiveTransforms[n];if(x){const{props:n,needRuntime:r}=x(i,t,e);!a&&n.forEach(T),b&&c&&!lt(c)?E(tt(n,l)):f.push(...n),r&&(d.push(i),(0,o.yk)(r)&&kn.set(i,r))}else(0,o.wh)(n)||(d.push(i),p&&(g=!0))}}let k;if(h.length?(E(),k=h.length>1?it(e.helper(O),h,l):h[0]):f.length&&(k=tt(In(f),l)),_?v|=16:(y&&!r&&(v|=2),b&&!r&&(v|=4),S.length&&(v|=8),x&&(v|=32)),g||0!==v&&32!==v||!(m||w||d.length>0)||(v|=512),!e.inSSR&&k)switch(k.type){case 15:let t=-1,n=-1,r=!1;for(let e=0;e<k.properties.length;e++){const i=k.properties[e].key;lt(i)?"class"===i.content?t=e:"style"===i.content&&(n=e):i.isHandlerKey||(r=!0)}const i=k.properties[t],o=k.properties[n];r?k=it(e.helper(L),[k]):(i&&!lt(i.value)&&(i.value=it(e.helper(D),[i.value])),o&&(b||4===o.value.type&&"["===o.value.content.trim()[0]||17===o.value.type)&&(o.value=it(e.helper(P),[o.value])));break;case 14:break;default:k=it(e.helper(L),[it(e.helper(N),[k])]);break}return{props:k,directives:d,patchFlag:v,dynamicPropNames:S,shouldUseBlock:g}}function In(t){const e=new Map,n=[];for(let r=0;r<t.length;r++){const i=t[r];if(8===i.key.type||!i.key.isStatic){n.push(i);continue}const a=i.key.content,s=e.get(a);s?("style"===a||"class"===a||(0,o.F7)(a))&&On(s,i):(e.set(a,i),n.push(i))}return n}function On(t,e){17===t.value.type?t.value.elements.push(e.value):t.value=Q([t.value,e.value],t.loc)}function Dn(t,e){const n=[],r=kn.get(t);r?n.push(e.helperString(r)):(e.helper(E),e.directives.add(t.name),n.push(Rt(t.name,"directive")));const{loc:i}=t;if(t.exp&&n.push(t.exp),t.arg&&(t.exp||n.push("void 0"),n.push(t.arg)),Object.keys(t.modifiers).length){t.arg||(t.exp||n.push("void 0"),n.push("void 0"));const e=nt("true",!1,i);n.push(tt(t.modifiers.map((t=>et(t,e))),i))}return Q(n,t.loc)}function Pn(t){let e="[";for(let n=0,r=t.length;n<r;n++)e+=JSON.stringify(t[n]),n<r-1&&(e+=", ");return e+"]"}function Ln(t){return"component"===t||"Component"===t}const Nn=t=>{const e=Object.create(null);return n=>{const r=e[n];return r||(e[n]=t(n))}},Rn=/-(\w)/g,jn=Nn((t=>t.replace(Rn,((t,e)=>e?e.toUpperCase():"")))),Fn=(t,e)=>{if(At(t)){const{children:n,loc:r}=t,{slotName:i,slotProps:o}=Bn(t,e),a=[e.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let s=2;o&&(a[2]=o,s=3),n.length&&(a[3]=ot([],n,!1,!1,r),s=4),e.scopeId&&!e.slotted&&(s=5),a.splice(s),t.codegenNode=it(e.helper(M),a,r)}};function Bn(t,e){let n,r='"default"';const i=[];for(let o=0;o<t.props.length;o++){const e=t.props[o];6===e.type?e.value&&("name"===e.name?r=JSON.stringify(e.value.content):(e.name=jn(e.name),i.push(e))):"bind"===e.name&&Et(e.arg,"name")?e.exp&&(r=e.exp):("bind"===e.name&&e.arg&&lt(e.arg)&&(e.arg.content=jn(e.arg.content)),i.push(e))}if(i.length>0){const{props:r,directives:o}=An(t,e,i,!1,!1);n=r,o.length&&e.onError(u(36,o[0].loc))}return{slotName:r,slotProps:n}}const zn=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Zn=(t,e,n,r)=>{const{loc:i,modifiers:a,arg:s}=t;let l;if(t.exp||a.length||n.onError(u(35,i)),4===s.type)if(s.isStatic){let t=s.content;t.startsWith("vue:")&&(t=`vnode-${t.slice(4)}`);const n=0!==e.tagType||t.startsWith("vnode")||!/[A-Z]/.test(t)?(0,o.hR)((0,o._A)(t)):`on:${t}`;l=nt(n,!0,s.loc)}else l=rt([`${n.helperString(B)}(`,s,")"]);else l=s,l.children.unshift(`${n.helperString(B)}(`),l.children.push(")");let c=t.exp;c&&!c.content.trim()&&(c=void 0);let f=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const t=yt(c.content),e=!(t||zn.test(c.content)),n=c.content.includes(";");0,(e||f&&t)&&(c=rt([`${e?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let h={props:[et(l,c||nt("() => {}",!1,i))]};return r&&(h=r(h)),f&&(h.props[0].value=n.cache(h.props[0].value)),h.props.forEach((t=>t.key.isHandlerKey=!0)),h},Un=(t,e,n)=>{const{exp:r,modifiers:i,loc:a}=t,s=t.arg;return 4!==s.type?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),i.includes("camel")&&(4===s.type?s.isStatic?s.content=(0,o._A)(s.content):s.content=`${n.helperString(j)}(${s.content})`:(s.children.unshift(`${n.helperString(j)}(`),s.children.push(")"))),n.inSSR||(i.includes("prop")&&Hn(s,"."),i.includes("attr")&&Hn(s,"^")),!r||4===r.type&&!r.content.trim()?(n.onError(u(34,a)),{props:[et(s,nt("",!0,a))]}):{props:[et(s,r)]}},Hn=(t,e)=>{4===t.type?t.isStatic?t.content=e+t.content:t.content=`\`${e}\${${t.content}}\``:(t.children.unshift(`'${e}' + (`),t.children.push(")"))},$n=(t,e)=>{if(0===t.type||1===t.type||11===t.type||10===t.type)return()=>{const n=t.children;let r,i=!1;for(let t=0;t<n.length;t++){const e=n[t];if(kt(e)){i=!0;for(let i=t+1;i<n.length;i++){const o=n[i];if(!kt(o)){r=void 0;break}r||(r=n[t]=rt([e],e.loc)),r.children.push(" + ",o),n.splice(i,1),i--}}}if(i&&(1!==n.length||0!==t.type&&(1!==t.type||0!==t.tagType||t.props.find((t=>7===t.type&&!e.directiveTransforms[t.name]))||"template"===t.tag)))for(let t=0;t<n.length;t++){const r=n[t];if(kt(r)||8===r.type){const i=[];2===r.type&&" "===r.content||i.push(r),e.ssr||0!==_e(r,e)||i.push("1"),n[t]={type:12,content:r,loc:r.loc,codegenNode:it(e.helper(x),i)}}}}},Gn=new WeakSet,Wn=(t,e)=>{if(1===t.type&&wt(t,"once",!0)){if(Gn.has(t)||e.inVOnce)return;return Gn.add(t),e.inVOnce=!0,e.helper(z),()=>{e.inVOnce=!1;const t=e.currentNode;t.codegenNode&&(t.codegenNode=e.cache(t.codegenNode,!0))}}},Vn=(t,e,n)=>{const{exp:r,arg:i}=t;if(!r)return n.onError(u(41,t.loc)),Yn();const a=r.loc.source,s=4===r.type?r.content:a,l=n.bindingMetadata[a];if("props"===l||"props-aliased"===l)return n.onError(u(44,r.loc)),Yn();const c=!1;if(!s.trim()||!yt(s)&&!c)return n.onError(u(42,r.loc)),Yn();const f=i||nt("modelValue",!0),h=i?lt(i)?`onUpdate:${(0,o._A)(i.content)}`:rt(['"onUpdate:" + ',i]):"onUpdate:modelValue";let d;const p=n.isTS?"($event: any)":"$event";d=rt([`${p} => ((`,r,") = $event)"]);const g=[et(f,t.exp),et(h,d)];if(t.modifiers.length&&1===e.tagType){const e=t.modifiers.map((t=>(dt(t)?t:JSON.stringify(t))+": true")).join(", "),n=i?lt(i)?`${i.content}Modifiers`:rt([i,' + "Modifiers"']):"modelModifiers";g.push(et(n,nt(`{ ${e} }`,!1,t.loc,2)))}return Yn(g)};function Yn(t=[]){return{props:t}}const Xn=/[\w).+\-_$\]]/,qn=(t,e)=>{zt("COMPILER_FILTER",e)&&(5===t.type&&Kn(t.content,e),1===t.type&&t.props.forEach((t=>{7===t.type&&"for"!==t.name&&t.exp&&Kn(t.exp,e)})))};function Kn(t,e){if(4===t.type)Jn(t,e);else for(let n=0;n<t.children.length;n++){const r=t.children[n];"object"===typeof r&&(4===r.type?Jn(r,e):8===r.type?Kn(t,e):5===r.type&&Kn(r.content,e))}}function Jn(t,e){const n=t.content;let r,i,o,a,s=!1,u=!1,l=!1,c=!1,f=0,h=0,d=0,p=0,g=[];for(o=0;o<n.length;o++)if(i=r,r=n.charCodeAt(o),s)39===r&&92!==i&&(s=!1);else if(u)34===r&&92!==i&&(u=!1);else if(l)96===r&&92!==i&&(l=!1);else if(c)47===r&&92!==i&&(c=!1);else if(124!==r||124===n.charCodeAt(o+1)||124===n.charCodeAt(o-1)||f||h||d){switch(r){case 34:u=!0;break;case 39:s=!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:f++;break;case 125:f--;break}if(47===r){let t,e=o-1;for(;e>=0;e--)if(t=n.charAt(e)," "!==t)break;t&&Xn.test(t)||(c=!0)}}else void 0===a?(p=o+1,a=n.slice(0,o).trim()):v();function v(){g.push(n.slice(p,o).trim()),p=o+1}if(void 0===a?a=n.slice(0,o).trim():0!==p&&v(),g.length){for(o=0;o<g.length;o++)a=Qn(a,g[o],e);t.content=a}}function Qn(t,e,n){n.helper(T);const r=e.indexOf("(");if(r<0)return n.filters.add(e),`${Rt(e,"filter")}(${t})`;{const i=e.slice(0,r),o=e.slice(r+1);return n.filters.add(i),`${Rt(i,"filter")}(${t}${")"!==o?","+o:o}`}}const tr=new WeakSet,er=(t,e)=>{if(1===t.type){const n=wt(t,"memo");if(!n||tr.has(t))return;return tr.add(t),()=>{const r=t.codegenNode||e.currentNode.codegenNode;r&&13===r.type&&(1!==t.tagType&&Ft(r,e),t.codegenNode=it(e.helper(W),[n.exp,ot(void 0,r),"_cache",String(e.cached++)]))}}};function nr(t){return[[Wn,rn,er,cn,qn,Fn,Cn,xn,$n],{on:Zn,bind:Un,model:Vn}]}function rr(t,e={}){const n=e.onError||a,r="module"===e.mode;!0===e.prefixIdentifiers?n(u(47)):r&&n(u(48));const i=!1;e.cacheHandlers&&n(u(49)),e.scopeId&&!r&&n(u(50));const s=(0,o.HD)(t)?Gt(t,e):t,[l,c]=nr();return Me(s,(0,o.l7)({},e,{prefixIdentifiers:i,nodeTransforms:[...l,...e.nodeTransforms||[]],directiveTransforms:(0,o.l7)({},c,e.directiveTransforms||{})})),Re(s,(0,o.l7)({},e,{prefixIdentifiers:i}))}const ir=()=>({props:[]}),or=Symbol(""),ar=Symbol(""),sr=Symbol(""),ur=Symbol(""),lr=Symbol(""),cr=Symbol(""),fr=Symbol(""),hr=Symbol(""),dr=Symbol(""),pr=Symbol("");let gr;function vr(t,e=!1){return gr||(gr=document.createElement("div")),e?(gr.innerHTML=`<div foo="${t.replace(/"/g,"&quot;")}">`,gr.children[0].getAttribute("foo")):(gr.innerHTML=t,gr.textContent)}X({[or]:"vModelRadio",[ar]:"vModelCheckbox",[sr]:"vModelText",[ur]:"vModelSelect",[lr]:"vModelDynamic",[cr]:"withModifiers",[fr]:"withKeys",[hr]:"vShow",[dr]:"Transition",[pr]:"TransitionGroup"});const mr=(0,o.fY)("style,iframe,script,noscript",!0),yr={isVoidTag:o.WB,isNativeTag:t=>(0,o.eS)(t)||(0,o.aN)(t),isPreTag:t=>"pre"===t,decodeEntities:vr,isBuiltInComponent:t=>ct(t,"Transition")?dr:ct(t,"TransitionGroup")?pr:void 0,getNamespace(t,e){let n=e?e.ns:0;if(e&&2===n)if("annotation-xml"===e.tag){if("svg"===t)return 1;e.props.some((t=>6===t.type&&"encoding"===t.name&&null!=t.value&&("text/html"===t.value.content||"application/xhtml+xml"===t.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&"mglyph"!==t&&"malignmark"!==t&&(n=0);else e&&1===n&&("foreignObject"!==e.tag&&"desc"!==e.tag&&"title"!==e.tag||(n=0));if(0===n){if("svg"===t)return 1;if("math"===t)return 2}return n},getTextMode({tag:t,ns:e}){if(0===e){if("textarea"===t||"title"===t)return 1;if(mr(t))return 2}return 0}},br=t=>{1===t.type&&t.props.forEach(((e,n)=>{6===e.type&&"style"===e.name&&e.value&&(t.props[n]={type:7,name:"bind",arg:nt("style",!0,e.loc),exp:xr(e.value.content,e.loc),modifiers:[],loc:e.loc})}))},xr=(t,e)=>{const n=(0,o.yL)(t);return nt(JSON.stringify(n),!1,e,3)};function _r(t,e){return u(t,e,void 0)}const wr=(t,e,n)=>{const{exp:r,loc:i}=t;return r||n.onError(_r(51,i)),e.children.length&&(n.onError(_r(52,i)),e.children.length=0),{props:[et(nt("innerHTML",!0,i),r||nt("",!0))]}},Sr=(t,e,n)=>{const{exp:r,loc:i}=t;return r||n.onError(_r(53,i)),e.children.length&&(n.onError(_r(54,i)),e.children.length=0),{props:[et(nt("textContent",!0),r?_e(r,n)>0?r:it(n.helperString(I),[r],i):nt("",!0))]}},Er=(t,e,n)=>{const r=Vn(t,e,n);if(!r.props.length||1===e.tagType)return r;t.arg&&n.onError(_r(56,t.arg.loc));const{tag:i}=e,o=n.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||o){let a=sr,s=!1;if("input"===i||o){const r=St(e,"type");if(r){if(7===r.type)a=lr;else if(r.value)switch(r.value.content){case"radio":a=or;break;case"checkbox":a=ar;break;case"file":s=!0,n.onError(_r(57,t.loc));break;default:break}}else Tt(e)&&(a=lr)}else"select"===i&&(a=ur);s||(r.needRuntime=n.helper(a))}else n.onError(_r(55,t.loc));return r.props=r.props.filter((t=>!(4===t.key.type&&"modelValue"===t.key.content))),r},Tr=(0,o.fY)("passive,once,capture"),kr=(0,o.fY)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Cr=(0,o.fY)("left,right"),Mr=(0,o.fY)("onkeyup,onkeydown,onkeypress",!0),Ar=(t,e,n,r)=>{const i=[],o=[],a=[];for(let s=0;s<e.length;s++){const u=e[s];"native"===u&&Zt("COMPILER_V_ON_NATIVE",n,r)||Tr(u)?a.push(u):Cr(u)?lt(t)?Mr(t.content)?i.push(u):o.push(u):(i.push(u),o.push(u)):kr(u)?o.push(u):i.push(u)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:a}},Ir=(t,e)=>{const n=lt(t)&&"onclick"===t.content.toLowerCase();return n?nt(e,!0):4!==t.type?rt(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t},Or=(t,e,n)=>Zn(t,e,n,(e=>{const{modifiers:r}=t;if(!r.length)return e;let{key:i,value:a}=e.props[0];const{keyModifiers:s,nonKeyModifiers:u,eventOptionModifiers:l}=Ar(i,r,n,t.loc);if(u.includes("right")&&(i=Ir(i,"onContextmenu")),u.includes("middle")&&(i=Ir(i,"onMouseup")),u.length&&(a=it(n.helper(cr),[a,JSON.stringify(u)])),!s.length||lt(i)&&!Mr(i.content)||(a=it(n.helper(fr),[a,JSON.stringify(s)])),l.length){const t=l.map(o.kC).join("");i=lt(i)?nt(`${i.content}${t}`,!0):rt(["(",i,`) + "${t}"`])}return{props:[et(i,a)]}})),Dr=(t,e,n)=>{const{exp:r,loc:i}=t;return r||n.onError(_r(59,i)),{props:[],needRuntime:n.helper(hr)}};const Pr=(t,e)=>{1!==t.type||0!==t.tagType||"script"!==t.tag&&"style"!==t.tag||(e.onError(_r(61,t.loc)),e.removeNode())},Lr=[br],Nr={cloak:ir,html:wr,text:Sr,model:Er,on:Or,show:Dr};function Rr(t,e={}){return rr(t,(0,o.l7)({},yr,e,{nodeTransforms:[Pr,...Lr,...e.nodeTransforms||[]],directiveTransforms:(0,o.l7)({},Nr,e.directiveTransforms||{}),transformHoist:null}))}const jr=Object.create(null);function Fr(t,e){if(!(0,o.HD)(t)){if(!t.nodeType)return o.dG;t=t.innerHTML}const n=t,i=jr[n];if(i)return i;if("#"===t[0]){const e=document.querySelector(t);0,t=e?e.innerHTML:""}const a=(0,o.l7)({hoistStatic:!0,onError:void 0,onWarn:o.dG},e);a.isCustomElement||"undefined"===typeof customElements||(a.isCustomElement=t=>!!customElements.get(t));const{code:s}=Rr(t,a);const u=new Function("Vue",s)(r);return u._rc=!0,jr[n]=u}(0,i.Y1)(Fr)},29812:function(t,e,n){"use strict";if(n.r(e),n.d(e,{BaseTransition:function(){return r.BaseTransition},Comment:function(){return r.Comment},EffectScope:function(){return r.EffectScope},Fragment:function(){return r.Fragment},KeepAlive:function(){return r.KeepAlive},ReactiveEffect:function(){return r.ReactiveEffect},Static:function(){return r.Static},Suspense:function(){return r.Suspense},Teleport:function(){return r.Teleport},Text:function(){return r.Text},Transition:function(){return r.Transition},TransitionGroup:function(){return r.TransitionGroup},VueElement:function(){return r.VueElement},assertNumber:function(){return r.assertNumber},callWithAsyncErrorHandling:function(){return r.callWithAsyncErrorHandling},callWithErrorHandling:function(){return r.callWithErrorHandling},camelize:function(){return r.camelize},capitalize:function(){return r.capitalize},cloneVNode:function(){return r.cloneVNode},compatUtils:function(){return r.compatUtils},compile:function(){return i},computed:function(){return r.computed},createApp:function(){return r.createApp},createBlock:function(){return r.createBlock},createCommentVNode:function(){return r.createCommentVNode},createElementBlock:function(){return r.createElementBlock},createElementVNode:function(){return r.createElementVNode},createHydrationRenderer:function(){return r.createHydrationRenderer},createPropsRestProxy:function(){return r.createPropsRestProxy},createRenderer:function(){return r.createRenderer},createSSRApp:function(){return r.createSSRApp},createSlots:function(){return r.createSlots},createStaticVNode:function(){return r.createStaticVNode},createTextVNode:function(){return r.createTextVNode},createVNode:function(){return r.createVNode},customRef:function(){return r.customRef},defineAsyncComponent:function(){return r.defineAsyncComponent},defineComponent:function(){return r.defineComponent},defineCustomElement:function(){return r.defineCustomElement},defineEmits:function(){return r.defineEmits},defineExpose:function(){return r.defineExpose},defineProps:function(){return r.defineProps},defineSSRCustomElement:function(){return r.defineSSRCustomElement},devtools:function(){return r.devtools},effect:function(){return r.effect},effectScope:function(){return r.effectScope},getCurrentInstance:function(){return r.getCurrentInstance},getCurrentScope:function(){return r.getCurrentScope},getTransitionRawChildren:function(){return r.getTransitionRawChildren},guardReactiveProps:function(){return r.guardReactiveProps},h:function(){return r.h},handleError:function(){return r.handleError},hydrate:function(){return r.hydrate},initCustomFormatter:function(){return r.initCustomFormatter},initDirectivesForSSR:function(){return r.initDirectivesForSSR},inject:function(){return r.inject},isMemoSame:function(){return r.isMemoSame},isProxy:function(){return r.isProxy},isReactive:function(){return r.isReactive},isReadonly:function(){return r.isReadonly},isRef:function(){return r.isRef},isRuntimeOnly:function(){return r.isRuntimeOnly},isShallow:function(){return r.isShallow},isVNode:function(){return r.isVNode},markRaw:function(){return r.markRaw},mergeDefaults:function(){return r.mergeDefaults},mergeProps:function(){return r.mergeProps},nextTick:function(){return r.nextTick},normalizeClass:function(){return r.normalizeClass},normalizeProps:function(){return r.normalizeProps},normalizeStyle:function(){return r.normalizeStyle},onActivated:function(){return r.onActivated},onBeforeMount:function(){return r.onBeforeMount},onBeforeUnmount:function(){return r.onBeforeUnmount},onBeforeUpdate:function(){return r.onBeforeUpdate},onDeactivated:function(){return r.onDeactivated},onErrorCaptured:function(){return r.onErrorCaptured},onMounted:function(){return r.onMounted},onRenderTracked:function(){return r.onRenderTracked},onRenderTriggered:function(){return r.onRenderTriggered},onScopeDispose:function(){return r.onScopeDispose},onServerPrefetch:function(){return r.onServerPrefetch},onUnmounted:function(){return r.onUnmounted},onUpdated:function(){return r.onUpdated},openBlock:function(){return r.openBlock},popScopeId:function(){return r.popScopeId},provide:function(){return r.provide},proxyRefs:function(){return r.proxyRefs},pushScopeId:function(){return r.pushScopeId},queuePostFlushCb:function(){return r.queuePostFlushCb},reactive:function(){return r.reactive},readonly:function(){return r.readonly},ref:function(){return r.ref},registerRuntimeCompiler:function(){return r.registerRuntimeCompiler},render:function(){return r.render},renderList:function(){return r.renderList},renderSlot:function(){return r.renderSlot},resolveComponent:function(){return r.resolveComponent},resolveDirective:function(){return r.resolveDirective},resolveDynamicComponent:function(){return r.resolveDynamicComponent},resolveFilter:function(){return r.resolveFilter},resolveTransitionHooks:function(){return r.resolveTransitionHooks},setBlockTracking:function(){return r.setBlockTracking},setDevtoolsHook:function(){return r.setDevtoolsHook},setTransitionHooks:function(){return r.setTransitionHooks},shallowReactive:function(){return r.shallowReactive},shallowReadonly:function(){return r.shallowReadonly},shallowRef:function(){return r.shallowRef},ssrContextKey:function(){return r.ssrContextKey},ssrUtils:function(){return r.ssrUtils},stop:function(){return r.stop},toDisplayString:function(){return r.toDisplayString},toHandlerKey:function(){return r.toHandlerKey},toHandlers:function(){return r.toHandlers},toRaw:function(){return r.toRaw},toRef:function(){return r.toRef},toRefs:function(){return r.toRefs},transformVNodeArgs:function(){return r.transformVNodeArgs},triggerRef:function(){return r.triggerRef},unref:function(){return r.unref},useAttrs:function(){return r.useAttrs},useCssModule:function(){return r.useCssModule},useCssVars:function(){return r.useCssVars},useSSRContext:function(){return r.useSSRContext},useSlots:function(){return r.useSlots},useTransitionState:function(){return r.useTransitionState},vModelCheckbox:function(){return r.vModelCheckbox},vModelDynamic:function(){return r.vModelDynamic},vModelRadio:function(){return r.vModelRadio},vModelSelect:function(){return r.vModelSelect},vModelText:function(){return r.vModelText},vShow:function(){return r.vShow},version:function(){return r.version},warn:function(){return r.warn},watch:function(){return r.watch},watchEffect:function(){return r.watchEffect},watchPostEffect:function(){return r.watchPostEffect},watchSyncEffect:function(){return r.watchSyncEffect},withAsyncContext:function(){return r.withAsyncContext},withCtx:function(){return r.withCtx},withDefaults:function(){return r.withDefaults},withDirectives:function(){return r.withDirectives},withKeys:function(){return r.withKeys},withMemo:function(){return r.withMemo},withModifiers:function(){return r.withModifiers},withScopeId:function(){return r.withScopeId}}),/^(539|826)$/.test(n.j))var r=n(49963);const i=()=>{0}},18162:function(t,e,n){"use strict";n.d(e,{MT:function(){return V},rn:function(){return q}});var r=n(66252),i=n(2262),o=n(81021),a=n(81280),s=n(61021);function u(t,e){const n=t,r=(0,o.U9)(),i=(0,o.y5)(),u=o.jA&&n.enableEarlyProxy;if(!i||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&u){const t=u?new s.B(n,i):null,o=r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[];o.push({pluginDescriptor:n,setupFn:e,proxy:t}),t&&e(t.proxiedTarget)}else i.emit(a.q,t,e)}
/*!
 * vuex v4.1.0
 * (c) 2022 Evan You
 * @license MIT
 */
var l="store";function c(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function f(t){return null!==t&&"object"===typeof t}function h(t){return t&&"function"===typeof t.then}function d(t,e){return function(){return t(e)}}function p(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 g(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;m(t,n,[],t._modules.root,!0),v(t,n,e)}function v(t,e,n){var o=t._state,a=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var s=t._wrappedGetters,u={},l={},f=(0,i.B)(!0);f.run((function(){c(s,(function(e,n){u[n]=d(e,t),l[n]=(0,r.Fl)((function(){return u[n]()})),Object.defineProperty(t.getters,n,{get:function(){return l[n].value},enumerable:!0})}))})),t._state=(0,i.qj)({data:e}),t._scope=f,t.strict&&S(t),o&&n&&t._withCommit((function(){o.data=null})),a&&a.stop()}function m(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=E(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){s[u]=r.state}))}var l=r.context=y(t,a,n);r.forEachMutation((function(e,n){var r=a+n;x(t,r,e,l)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;_(t,r,i,l)})),r.forEachGetter((function(e,n){var r=a+n;w(t,r,e,l)})),r.forEachChild((function(r,o){m(t,e,n.concat(o),r,i)}))}function y(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=e+u),t.dispatch(u,a)},commit:r?t.commit:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=e+u),t.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return b(t,e)}},state:{get:function(){return E(t.state,n)}}}),i}function b(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]}function x(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))}function _(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return h(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}function w(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function S(t){(0,r.YP)((function(){return t._state.data}),(function(){0}),{deep:!0,flush:"sync"})}function E(t,e){return e.reduce((function(t,e){return t[e]}),t)}function T(t,e,n){return f(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}var k="vuex bindings",C="vuex:mutations",M="vuex:actions",A="vuex",I=0;function O(t,e){u({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[k]},(function(n){n.addTimelineLayer({id:C,label:"Vuex Mutations",color:D}),n.addTimelineLayer({id:M,label:"Vuex Actions",color:D}),n.addInspector({id:A,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===t&&n.inspectorId===A)if(n.filter){var r=[];F(r,e._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[j(e._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===t&&n.inspectorId===A){var r=n.nodeId;b(e,r),n.state=B(Z(e._modules,r),"root"===r?e.getters:e._makeLocalGettersCache,r)}})),n.on.editInspectorState((function(n){if(n.app===t&&n.inspectorId===A){var r=n.nodeId,i=n.path;"root"!==r&&(i=r.split("/").filter(Boolean).concat(i)),e._withCommit((function(){n.set(e._state.data,i,n.state.value)}))}})),e.subscribe((function(t,e){var r={};t.payload&&(r.payload=t.payload),r.state=e,n.notifyComponentUpdate(),n.sendInspectorTree(A),n.sendInspectorState(A),n.addTimelineEvent({layerId:C,event:{time:Date.now(),title:t.type,data:r}})})),e.subscribeAction({before:function(t,e){var r={};t.payload&&(r.payload=t.payload),t._id=I++,t._time=Date.now(),r.state=e,n.addTimelineEvent({layerId:M,event:{time:t._time,title:t.type,groupId:t._id,subtitle:"start",data:r}})},after:function(t,e){var r={},i=Date.now()-t._time;r.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},t.payload&&(r.payload=t.payload),r.state=e,n.addTimelineEvent({layerId:M,event:{time:Date.now(),title:t.type,groupId:t._id,subtitle:"end",data:r}})}})}))}var D=8702998,P=6710886,L=16777215,N={label:"namespaced",textColor:L,backgroundColor:P};function R(t){return t&&"root"!==t?t.split("/").slice(-2,-1)[0]:"Root"}function j(t,e){return{id:e||"root",label:R(e),tags:t.namespaced?[N]:[],children:Object.keys(t._children).map((function(n){return j(t._children[n],e+n+"/")}))}}function F(t,e,n,r){r.includes(n)&&t.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:e.namespaced?[N]:[]}),Object.keys(e._children).forEach((function(i){F(t,e._children[i],n,r+i+"/")}))}function B(t,e,n){e="root"===n?e:e[n];var r=Object.keys(e),i={state:Object.keys(t.state).map((function(e){return{key:e,editable:!0,value:t.state[e]}}))};if(r.length){var o=z(e);i.getters=Object.keys(o).map((function(t){return{key:t.endsWith("/")?R(t):t,editable:!1,value:U((function(){return o[t]}))}}))}return i}function z(t){var e={};return Object.keys(t).forEach((function(n){var r=n.split("/");if(r.length>1){var i=e,o=r.pop();r.forEach((function(t){i[t]||(i[t]={_custom:{value:{},display:t,tooltip:"Module",abstract:!0}}),i=i[t]._custom.value})),i[o]=U((function(){return t[n]}))}else e[n]=U((function(){return t[n]}))})),e}function Z(t,e){var n=e.split("/").filter((function(t){return t}));return n.reduce((function(t,r,i){var o=t[r];if(!o)throw new Error('Missing module "'+r+'" for path "'+e+'".');return i===n.length-1?o:o._children}),"root"===e?t:t.root._children)}function U(t){try{return t()}catch(e){return e}}var H=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)||{}},$={namespaced:{configurable:!0}};$.namespaced.get=function(){return!!this._rawModule.namespaced},H.prototype.addChild=function(t,e){this._children[t]=e},H.prototype.removeChild=function(t){delete this._children[t]},H.prototype.getChild=function(t){return this._children[t]},H.prototype.hasChild=function(t){return t in this._children},H.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)},H.prototype.forEachChild=function(t){c(this._children,t)},H.prototype.forEachGetter=function(t){this._rawModule.getters&&c(this._rawModule.getters,t)},H.prototype.forEachAction=function(t){this._rawModule.actions&&c(this._rawModule.actions,t)},H.prototype.forEachMutation=function(t){this._rawModule.mutations&&c(this._rawModule.mutations,t)},Object.defineProperties(H.prototype,$);var G=function(t){this.register([],t,!1)};function W(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;W(t.concat(r),e.getChild(r),n.modules[r])}}G.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},G.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},G.prototype.update=function(t){W([],this.root,t)},G.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new H(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&c(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},G.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)},G.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};function V(t){return new Y(t)}var Y=function(t){var e=this;void 0===t&&(t={});var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1);var i=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new G(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;var o=this,a=this,s=a.dispatch,u=a.commit;this.dispatch=function(t,e){return s.call(o,t,e)},this.commit=function(t,e,n){return u.call(o,t,e,n)},this.strict=r;var l=this._modules.root.state;m(this,l,[],this._modules.root),v(this,l),n.forEach((function(t){return t(e)}))},X={state:{configurable:!0}};Y.prototype.install=function(t,e){t.provide(e||l,this),t.config.globalProperties.$store=this;var n=void 0!==this._devtools&&this._devtools;n&&O(t,this)},X.state.get=function(){return this._state.data},X.state.set=function(t){0},Y.prototype.commit=function(t,e,n){var r=this,i=T(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},Y.prototype.dispatch=function(t,e){var n=this,r=T(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(l){0}var u=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){u.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(l){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(l){0}e(t)}))}))}},Y.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},Y.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return p(n,this._actionSubscribers,e)},Y.prototype.watch=function(t,e,n){var i=this;return(0,r.YP)((function(){return t(i.state,i.getters)}),e,Object.assign({},n))},Y.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._state.data=t}))},Y.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),m(this,this.state,t,this._modules.get(t),n.preserveState),v(this,this.state)},Y.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=E(e.state,t.slice(0,-1));delete n[t[t.length-1]]})),g(this)},Y.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},Y.prototype.hotUpdate=function(t){this._modules.update(t),g(this,!0)},Y.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(Y.prototype,X);var q=Q((function(t,e){var n={};return K(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=tt(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}));Q((function(t,e){var n={};return K(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=tt(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})),Q((function(t,e){var n={};return K(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||tt(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),Q((function(t,e){var n={};return K(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=tt(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 K(t){return J(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 J(t){return Array.isArray(t)||f(t)}function Q(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function tt(t,e,n){var r=t._modulesNamespaceMap[n];return r}},4311:function(t,e,n){"use strict";n.d(e,{ZT:function(){return i}});
/*! *****************************************************************************
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])},r(t,e)};function i(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.create;Object.create},17061:function(t,e,n){var r=n(18698)["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},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(e){h=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof x?e:x,o=Object.create(i.prototype),a=new P(r||[]);return s(o,"_invoke",{value:A(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=d;var g="suspendedStart",v="suspendedYield",m="executing",y="completed",b={};function x(){}function _(){}function w(){}var S={};h(S,l,(function(){return this}));var E=Object.getPrototypeOf,T=E&&E(E(L([])));T&&T!==o&&a.call(T,l)&&(S=T);var k=w.prototype=x.prototype=Object.create(S);function C(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function M(t,e){function n(i,o,s,u){var l=p(t[i],t,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==r(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):e.resolve(f).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,u)}))}u(l.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 A(t,n,r){var i=g;return function(o,a){if(i===m)throw new 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 u=I(s,r);if(u){if(u===b)continue;return u}}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 l=p(t,n,r);if("normal"===l.type){if(i=r.done?y:v,l.arg===b)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=y,r.method="throw",r.arg=l.arg)}}}function I(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,I(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 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 D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[l];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 _.prototype=w,s(k,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:_,configurable:!0}),_.displayName=h(w,f,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,f,"GeneratorFunction")),t.prototype=Object.create(k),t},n.awrap=function(t){return{__await:t}},C(M.prototype),h(M.prototype,c,(function(){return this})),n.AsyncIterator=M,n.async=function(t,e,r,i,o){void 0===o&&(o=Promise);var a=new M(d(t,e,r,i),o);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(k),h(k,f,"Generator"),h(k,l,(function(){return this})),h(k,"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 u=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(u&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new 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 new 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},18698:function(t){function e(n){return t.exports=e="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,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},64687:function(t,e,n){var r=n(17061)();t.exports=r;try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30907:function(t,e,n){"use strict";function r(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}n.d(e,{Z:function(){return r}})},45057:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(30907);function i(t){if(Array.isArray(t))return(0,r.Z)(t)}},15861:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(l){return void n(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}}n.d(e,{Z:function(){return i}})},15671:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{Z:function(){return r}})},43144:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(67343);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,(0,r.Z)(i.key),i)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},4942:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(67343);function i(t,e,n){return e=(0,r.Z)(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},59199:function(t,e,n){"use strict";function r(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n.d(e,{Z:function(){return r}})},42786:function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{Z:function(){return r}})},89062:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return s}}),/^(539|826)$/.test(n.j))var r=n(45057);if(/^(539|826)$/.test(n.j))var i=n(59199);if(/^(539|826)$/.test(n.j))var o=n(40181);if(/^(539|826)$/.test(n.j))var a=n(42786);function s(t){return(0,r.Z)(t)||(0,i.Z)(t)||(0,o.Z)(t)||(0,a.Z)()}},35512:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(71002);function i(t,e){if("object"!=(0,r.Z)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}},67343:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(71002);if(/^(539|826)$/.test(n.j))var i=n(35512);function o(t){var e=(0,i.Z)(t,"string");return"symbol"==(0,r.Z)(e)?e:String(e)}},71002:function(t,e,n){"use strict";function r(t){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},r(t)}n.d(e,{Z:function(){return r}})},40181:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(30907);function i(t,e){if(t){if("string"===typeof t)return(0,r.Z)(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)?(0,r.Z)(t,e):void 0}}},23636:function(t,e,n){"use strict";function r(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 i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(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 u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return d(t)||g(t,e)||v(t,e)||b()}function f(t){return h(t)||p(t)||v(t)||y()}function h(t){if(Array.isArray(t))return m(t)}function d(t){if(Array.isArray(t))return t}function p(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function g(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),e&&o.length===e)break}catch(u){s=!0,i=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}function v(t,e){if(t){if("string"===typeof t)return m(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)?m(t,e):void 0}}function m(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 y(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{vI:function(){return lr},vz:function(){return cr}});var x=function(){},_={},w={},S=null,E={mark:x,measure:x};try{"undefined"!==typeof window&&(_=window),"undefined"!==typeof document&&(w=document),"undefined"!==typeof MutationObserver&&(S=MutationObserver),"undefined"!==typeof performance&&(E=performance)}catch(fr){}var T,k,C,M,A,I=_.navigator||{},O=I.userAgent,D=void 0===O?"":O,P=_,L=w,N=S,R=E,j=(P.document,!!L.documentElement&&!!L.head&&"function"===typeof L.addEventListener&&"function"===typeof L.createElement),F=~D.indexOf("MSIE")||~D.indexOf("Trident/"),B="___FONT_AWESOME___",z=16,Z="fa",U="svg-inline--fa",H="data-fa-i2svg",$="data-fa-pseudo-element",G="data-fa-pseudo-element-pending",W="data-prefix",V="data-icon",Y="fontawesome-i2svg",X="async",q=["HTML","HEAD","STYLE","SCRIPT"],K=function(){try{return!0}catch(fr){return!1}}(),J="classic",Q="sharp",tt=[J,Q];function et(t){return new Proxy(t,{get:function(t,e){return e in t?t[e]:t[J]}})}var nt=et((T={},l(T,J,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),l(T,Q,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),T)),rt=et((k={},l(k,J,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),l(k,Q,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),k)),it=et((C={},l(C,J,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),l(C,Q,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),C)),ot=et((M={},l(M,J,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),l(M,Q,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),M)),at=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,st="fa-layers-text",ut=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,lt=et((A={},l(A,J,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),l(A,Q,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),A)),ct=[1,2,3,4,5,6,7,8,9,10],ft=ct.concat([11,12,13,14,15,16,17,18,19,20]),ht=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],dt={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},pt=new Set;Object.keys(rt[J]).map(pt.add.bind(pt)),Object.keys(rt[Q]).map(pt.add.bind(pt));var gt=[].concat(tt,f(pt),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",dt.GROUP,dt.SWAP_OPACITY,dt.PRIMARY,dt.SECONDARY]).concat(ct.map((function(t){return"".concat(t,"x")}))).concat(ft.map((function(t){return"w-".concat(t)}))),vt=P.FontAwesomeConfig||{};function mt(t){var e=L.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}function yt(t){return""===t||"false"!==t&&("true"===t||t)}if(L&&"function"===typeof L.querySelector){var bt=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];bt.forEach((function(t){var e=c(t,2),n=e[0],r=e[1],i=yt(mt(n));void 0!==i&&null!==i&&(vt[r]=i)}))}var xt={styleDefault:"solid",familyDefault:"classic",cssPrefix:Z,replacementClass:U,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};vt.familyPrefix&&(vt.cssPrefix=vt.familyPrefix);var _t=i(i({},xt),vt);_t.autoReplaceSvg||(_t.observeMutations=!1);var wt={};Object.keys(xt).forEach((function(t){Object.defineProperty(wt,t,{enumerable:!0,set:function(e){_t[t]=e,St.forEach((function(t){return t(wt)}))},get:function(){return _t[t]}})})),Object.defineProperty(wt,"familyPrefix",{enumerable:!0,set:function(t){_t.cssPrefix=t,St.forEach((function(t){return t(wt)}))},get:function(){return _t.cssPrefix}}),P.FontAwesomeConfig=wt;var St=[];function Et(t){return St.push(t),function(){St.splice(St.indexOf(t),1)}}var Tt=z,kt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Ct(t){if(t&&j){var e=L.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=L.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return L.head.insertBefore(e,r),t}}var Mt="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function At(){var t=12,e="";while(t-- >0)e+=Mt[62*Math.random()|0];return e}function It(t){for(var e=[],n=(t||[]).length>>>0;n--;)e[n]=t[n];return e}function Ot(t){return t.classList?It(t.classList):(t.getAttribute("class")||"").split(" ").filter((function(t){return t}))}function Dt(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Pt(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,'="').concat(Dt(t[n]),'" ')}),"").trim()}function Lt(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,": ").concat(t[n].trim(),";")}),"")}function Nt(t){return t.size!==kt.size||t.x!==kt.x||t.y!==kt.y||t.rotate!==kt.rotate||t.flipX||t.flipY}function Rt(t){var e=t.transform,n=t.containerWidth,r=t.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*e.x,", ").concat(32*e.y,") "),a="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),s="rotate(".concat(e.rotate," 0 0)"),u={transform:"".concat(o," ").concat(a," ").concat(s)},l={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:l}}function jt(t){var e=t.transform,n=t.width,r=void 0===n?z:n,i=t.height,o=void 0===i?z:i,a=t.startCentered,s=void 0!==a&&a,u="";return u+=s&&F?"translate(".concat(e.x/Tt-r/2,"em, ").concat(e.y/Tt-o/2,"em) "):s?"translate(calc(-50% + ".concat(e.x/Tt,"em), calc(-50% + ").concat(e.y/Tt,"em)) "):"translate(".concat(e.x/Tt,"em, ").concat(e.y/Tt,"em) "),u+="scale(".concat(e.size/Tt*(e.flipX?-1:1),", ").concat(e.size/Tt*(e.flipY?-1:1),") "),u+="rotate(".concat(e.rotate,"deg) "),u}var Ft=':root, :host {\n  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n  overflow: visible;\n  box-sizing: content-box;\n}\n\n.svg-inline--fa {\n  display: var(--fa-display, inline-block);\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n  vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n  vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n  vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n  vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n  vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-li {\n  width: var(--fa-li-width, 2em);\n  top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n  width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: var(--fa-counter-background-color, #ff253a);\n  border-radius: var(--fa-counter-border-radius, 1em);\n  box-sizing: border-box;\n  color: var(--fa-inverse, #fff);\n  line-height: var(--fa-counter-line-height, 1);\n  max-width: var(--fa-counter-max-width, 5em);\n  min-width: var(--fa-counter-min-width, 1.5em);\n  overflow: hidden;\n  padding: var(--fa-counter-padding, 0.25em 0.5em);\n  right: var(--fa-right, 0);\n  text-overflow: ellipsis;\n  top: var(--fa-top, 0);\n  -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n          transform: scale(var(--fa-counter-scale, 0.25));\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: var(--fa-bottom, 0);\n  right: var(--fa-right, 0);\n  top: auto;\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: var(--fa-bottom, 0);\n  left: var(--fa-left, 0);\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  top: var(--fa-top, 0);\n  right: var(--fa-right, 0);\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: var(--fa-left, 0);\n  right: auto;\n  top: var(--fa-top, 0);\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-2xs {\n  font-size: 0.625em;\n  line-height: 0.1em;\n  vertical-align: 0.225em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n  line-height: 0.0833333337em;\n  vertical-align: 0.125em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n  line-height: 0.0714285718em;\n  vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n  font-size: 1.25em;\n  line-height: 0.05em;\n  vertical-align: -0.075em;\n}\n\n.fa-xl {\n  font-size: 1.5em;\n  line-height: 0.0416666682em;\n  vertical-align: -0.125em;\n}\n\n.fa-2xl {\n  font-size: 2em;\n  line-height: 0.03125em;\n  vertical-align: -0.1875em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: var(--fa-li-margin, 2.5em);\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: calc(var(--fa-li-width, 2em) * -1);\n  position: absolute;\n  text-align: center;\n  width: var(--fa-li-width, 2em);\n  line-height: inherit;\n}\n\n.fa-border {\n  border-color: var(--fa-border-color, #eee);\n  border-radius: var(--fa-border-radius, 0.1em);\n  border-style: var(--fa-border-style, solid);\n  border-width: var(--fa-border-width, 0.08em);\n  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n  float: left;\n  margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n  float: right;\n  margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n  -webkit-animation-name: fa-beat;\n          animation-name: fa-beat;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n          animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n  -webkit-animation-name: fa-bounce;\n          animation-name: fa-bounce;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n  -webkit-animation-name: fa-fade;\n          animation-name: fa-fade;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n  -webkit-animation-name: fa-beat-fade;\n          animation-name: fa-beat-fade;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n  -webkit-animation-name: fa-flip;\n          animation-name: fa-flip;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n          animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n  -webkit-animation-name: fa-shake;\n          animation-name: fa-shake;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n          animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n  -webkit-animation-name: fa-spin;\n          animation-name: fa-spin;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 2s);\n          animation-duration: var(--fa-animation-duration, 2s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n          animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n  --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n  -webkit-animation-name: fa-spin;\n          animation-name: fa-spin;\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n          animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n    -webkit-animation-delay: -1ms;\n            animation-delay: -1ms;\n    -webkit-animation-duration: 1ms;\n            animation-duration: 1ms;\n    -webkit-animation-iteration-count: 1;\n            animation-iteration-count: 1;\n    -webkit-transition-delay: 0s;\n            transition-delay: 0s;\n    -webkit-transition-duration: 0s;\n            transition-duration: 0s;\n  }\n}\n@-webkit-keyframes fa-beat {\n  0%, 90% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  45% {\n    -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n            transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@keyframes fa-beat {\n  0%, 90% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  45% {\n    -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n            transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@-webkit-keyframes fa-bounce {\n  0% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n}\n@keyframes fa-bounce {\n  0% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n}\n@-webkit-keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@-webkit-keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n            transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n            transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@-webkit-keyframes fa-flip {\n  50% {\n    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@keyframes fa-flip {\n  50% {\n    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@-webkit-keyframes fa-shake {\n  0% {\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n  }\n  4% {\n    -webkit-transform: rotate(15deg);\n            transform: rotate(15deg);\n  }\n  8%, 24% {\n    -webkit-transform: rotate(-18deg);\n            transform: rotate(-18deg);\n  }\n  12%, 28% {\n    -webkit-transform: rotate(18deg);\n            transform: rotate(18deg);\n  }\n  16% {\n    -webkit-transform: rotate(-22deg);\n            transform: rotate(-22deg);\n  }\n  20% {\n    -webkit-transform: rotate(22deg);\n            transform: rotate(22deg);\n  }\n  32% {\n    -webkit-transform: rotate(-12deg);\n            transform: rotate(-12deg);\n  }\n  36% {\n    -webkit-transform: rotate(12deg);\n            transform: rotate(12deg);\n  }\n  40%, 100% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n}\n@keyframes fa-shake {\n  0% {\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n  }\n  4% {\n    -webkit-transform: rotate(15deg);\n            transform: rotate(15deg);\n  }\n  8%, 24% {\n    -webkit-transform: rotate(-18deg);\n            transform: rotate(-18deg);\n  }\n  12%, 28% {\n    -webkit-transform: rotate(18deg);\n            transform: rotate(18deg);\n  }\n  16% {\n    -webkit-transform: rotate(-22deg);\n            transform: rotate(-22deg);\n  }\n  20% {\n    -webkit-transform: rotate(22deg);\n            transform: rotate(22deg);\n  }\n  32% {\n    -webkit-transform: rotate(-12deg);\n            transform: rotate(-12deg);\n  }\n  36% {\n    -webkit-transform: rotate(12deg);\n            transform: rotate(12deg);\n  }\n  40%, 100% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n}\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n  -webkit-transform: rotate(var(--fa-rotate-angle, none));\n          transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n  display: inline-block;\n  vertical-align: middle;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n  z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}';function Bt(){var t=Z,e=U,n=wt.cssPrefix,r=wt.replacementClass,i=Ft;if(n!==t||r!==e){var o=new RegExp("\\.".concat(t,"\\-"),"g"),a=new RegExp("\\--".concat(t,"\\-"),"g"),s=new RegExp("\\.".concat(e),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var zt=!1;function Zt(){wt.autoAddCss&&!zt&&(Ct(Bt()),zt=!0)}var Ut={mixout:function(){return{dom:{css:Bt,insertCss:Zt}}},hooks:function(){return{beforeDOMElementCreation:function(){Zt()},beforeI2svg:function(){Zt()}}}},Ht=P||{};Ht[B]||(Ht[B]={}),Ht[B].styles||(Ht[B].styles={}),Ht[B].hooks||(Ht[B].hooks={}),Ht[B].shims||(Ht[B].shims=[]);var $t=Ht[B],Gt=[],Wt=function t(){L.removeEventListener("DOMContentLoaded",t),Vt=1,Gt.map((function(t){return t()}))},Vt=!1;function Yt(t){j&&(Vt?setTimeout(t,0):Gt.push(t))}function Xt(t){var e=t.tag,n=t.attributes,r=void 0===n?{}:n,i=t.children,o=void 0===i?[]:i;return"string"===typeof t?Dt(t):"<".concat(e," ").concat(Pt(r),">").concat(o.map(Xt).join(""),"</").concat(e,">")}function qt(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}j&&(Vt=(L.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(L.readyState),Vt||L.addEventListener("DOMContentLoaded",Wt));var Kt=function(t,e){return function(n,r,i,o){return t.call(e,n,r,i,o)}},Jt=function(t,e,n,r){var i,o,a,s=Object.keys(t),u=s.length,l=void 0!==r?Kt(e,r):e;for(void 0===n?(i=1,a=t[s[0]]):(i=0,a=n);i<u;i++)o=s[i],a=l(a,t[o],o,t);return a};function Qt(t){var e=[],n=0,r=t.length;while(n<r){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=t.charCodeAt(n++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),n--)}else e.push(i)}return e}function te(t){var e=Qt(t);return 1===e.length?e[0].toString(16):null}function ee(t,e){var n,r=t.length,i=t.charCodeAt(e);return i>=55296&&i<=56319&&r>e+1&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?1024*(i-55296)+n-56320+65536:i}function ne(t){return Object.keys(t).reduce((function(e,n){var r=t[n],i=!!r.icon;return i?e[r.iconName]=r.icon:e[n]=r,e}),{})}function re(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,o=void 0!==r&&r,a=ne(e);"function"!==typeof $t.hooks.addPack||o?$t.styles[t]=i(i({},$t.styles[t]||{}),a):$t.hooks.addPack(t,ne(e)),"fas"===t&&re("fa",e)}var ie,oe,ae,se=$t.styles,ue=$t.shims,le=(ie={},l(ie,J,Object.values(it[J])),l(ie,Q,Object.values(it[Q])),ie),ce=null,fe={},he={},de={},pe={},ge={},ve=(oe={},l(oe,J,Object.keys(nt[J])),l(oe,Q,Object.keys(nt[Q])),oe);function me(t){return~gt.indexOf(t)}function ye(t,e){var n=e.split("-"),r=n[0],i=n.slice(1).join("-");return r!==t||""===i||me(i)?null:i}var be=function(){var t=function(t){return Jt(se,(function(e,n,r){return e[r]=Jt(n,t,{}),e}),{})};fe=t((function(t,e,n){if(e[3]&&(t[e[3]]=n),e[2]){var r=e[2].filter((function(t){return"number"===typeof t}));r.forEach((function(e){t[e.toString(16)]=n}))}return t})),he=t((function(t,e,n){if(t[n]=n,e[2]){var r=e[2].filter((function(t){return"string"===typeof t}));r.forEach((function(e){t[e]=n}))}return t})),ge=t((function(t,e,n){var r=e[2];return t[n]=n,r.forEach((function(e){t[e]=n})),t}));var e="far"in se||wt.autoFetchSvg,n=Jt(ue,(function(t,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||e||(i="fas"),"string"===typeof r&&(t.names[r]={prefix:i,iconName:o}),"number"===typeof r&&(t.unicodes[r.toString(16)]={prefix:i,iconName:o}),t}),{names:{},unicodes:{}});de=n.names,pe=n.unicodes,ce=Ce(wt.styleDefault,{family:wt.familyDefault})};function xe(t,e){return(fe[t]||{})[e]}function _e(t,e){return(he[t]||{})[e]}function we(t,e){return(ge[t]||{})[e]}function Se(t){return de[t]||{prefix:null,iconName:null}}function Ee(t){var e=pe[t],n=xe("fas",t);return e||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Te(){return ce}Et((function(t){ce=Ce(t.styleDefault,{family:wt.familyDefault})})),be();var ke=function(){return{prefix:null,iconName:null,rest:[]}};function Ce(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.family,r=void 0===n?J:n,i=nt[r][t],o=rt[r][t]||rt[r][i],a=t in $t.styles?t:null;return o||a||null}var Me=(ae={},l(ae,J,Object.keys(it[J])),l(ae,Q,Object.keys(it[Q])),ae);function Ae(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipLookups,i=void 0!==r&&r,o=(e={},l(e,J,"".concat(wt.cssPrefix,"-").concat(J)),l(e,Q,"".concat(wt.cssPrefix,"-").concat(Q)),e),a=null,s=J;(t.includes(o[J])||t.some((function(t){return Me[J].includes(t)})))&&(s=J),(t.includes(o[Q])||t.some((function(t){return Me[Q].includes(t)})))&&(s=Q);var u=t.reduce((function(t,e){var n=ye(wt.cssPrefix,e);if(se[e]?(e=le[s].includes(e)?ot[s][e]:e,a=e,t.prefix=e):ve[s].indexOf(e)>-1?(a=e,t.prefix=Ce(e,{family:s})):n?t.iconName=n:e!==wt.replacementClass&&e!==o[J]&&e!==o[Q]&&t.rest.push(e),!i&&t.prefix&&t.iconName){var r="fa"===a?Se(t.iconName):{},u=we(t.prefix,t.iconName);r.prefix&&(a=null),t.iconName=r.iconName||u||t.iconName,t.prefix=r.prefix||t.prefix,"far"!==t.prefix||se["far"]||!se["fas"]||wt.autoFetchSvg||(t.prefix="fas")}return t}),ke());return(t.includes("fa-brands")||t.includes("fab"))&&(u.prefix="fab"),(t.includes("fa-duotone")||t.includes("fad"))&&(u.prefix="fad"),u.prefix||s!==Q||!se["fass"]&&!wt.autoFetchSvg||(u.prefix="fass",u.iconName=we(u.prefix,u.iconName)||u.iconName),"fa"!==u.prefix&&"fa"!==a||(u.prefix=Te()||"fas"),u}var Ie=function(){function t(){a(this,t),this.definitions={}}return u(t,[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach((function(e){t.definitions[e]=i(i({},t.definitions[e]||{}),o[e]),re(e,o[e]);var n=it[J][e];n&&re(n,o[e]),be()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,e){var n=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(n).map((function(e){var r=n[e],i=r.prefix,o=r.iconName,a=r.icon,s=a[2];t[i]||(t[i]={}),s.length>0&&s.forEach((function(e){"string"===typeof e&&(t[i][e]=a)})),t[i][o]=a})),t}}]),t}(),Oe=[],De={},Pe={},Le=Object.keys(Pe);function Ne(t,e){var n=e.mixoutsTo;return Oe=t,De={},Object.keys(Pe).forEach((function(t){-1===Le.indexOf(t)&&delete Pe[t]})),Oe.forEach((function(t){var e=t.mixout?t.mixout():{};if(Object.keys(e).forEach((function(t){"function"===typeof e[t]&&(n[t]=e[t]),"object"===o(e[t])&&Object.keys(e[t]).forEach((function(r){n[t]||(n[t]={}),n[t][r]=e[t][r]}))})),t.hooks){var r=t.hooks();Object.keys(r).forEach((function(t){De[t]||(De[t]=[]),De[t].push(r[t])}))}t.provides&&t.provides(Pe)})),n}function Re(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=De[t]||[];return o.forEach((function(t){e=t.apply(null,[e].concat(r))})),e}function je(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=De[t]||[];i.forEach((function(t){t.apply(null,n)}))}function Fe(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1);return Pe[t]?Pe[t].apply(null,e):void 0}function Be(t){"fa"===t.prefix&&(t.prefix="fas");var e=t.iconName,n=t.prefix||Te();if(e)return e=we(n,e)||e,qt(ze.definitions,n,e)||qt($t.styles,n,e)}var ze=new Ie,Ze=function(){wt.autoReplaceSvg=!1,wt.observeMutations=!1,je("noAuto")},Ue={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return j?(je("beforeI2svg",t),Fe("pseudoElements2svg",t),Fe("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoReplaceSvgRoot;!1===wt.autoReplaceSvg&&(wt.autoReplaceSvg=!0),wt.observeMutations=!0,Yt((function(){Ge({autoReplaceSvgRoot:e}),je("watch",t)}))}},He={icon:function(t){if(null===t)return null;if("object"===o(t)&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:we(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&2===t.length){var e=0===t[1].indexOf("fa-")?t[1].slice(3):t[1],n=Ce(t[0]);return{prefix:n,iconName:we(n,e)||e}}if("string"===typeof t&&(t.indexOf("".concat(wt.cssPrefix,"-"))>-1||t.match(at))){var r=Ae(t.split(" "),{skipLookups:!0});return{prefix:r.prefix||Te(),iconName:we(r.prefix,r.iconName)||r.iconName}}if("string"===typeof t){var i=Te();return{prefix:i,iconName:we(i,t)||t}}}},$e={noAuto:Ze,config:wt,dom:Ue,parse:He,library:ze,findIconDefinition:Be,toHtml:Xt},Ge=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoReplaceSvgRoot,n=void 0===e?L:e;(Object.keys($t.styles).length>0||wt.autoFetchSvg)&&j&&wt.autoReplaceSvg&&$e.dom.i2svg({node:n})};function We(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map((function(t){return Xt(t)}))}}),Object.defineProperty(t,"node",{get:function(){if(j){var e=L.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function Ve(t){var e=t.children,n=t.main,r=t.mask,o=t.attributes,a=t.styles,s=t.transform;if(Nt(s)&&n.found&&!r.found){var u=n.width,l=n.height,c={x:u/l/2,y:.5};o["style"]=Lt(i(i({},a),{},{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:e}]}function Ye(t){var e=t.prefix,n=t.iconName,r=t.children,o=t.attributes,a=t.symbol,s=!0===a?"".concat(e,"-").concat(wt.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:i(i({},o),{},{id:s}),children:r}]}]}function Xe(t){var e=t.icons,n=e.main,r=e.mask,o=t.prefix,a=t.iconName,s=t.transform,u=t.symbol,l=t.title,c=t.maskId,f=t.titleId,h=t.extra,d=t.watchable,p=void 0!==d&&d,g=r.found?r:n,v=g.width,m=g.height,y="fak"===o,b=[wt.replacementClass,a?"".concat(wt.cssPrefix,"-").concat(a):""].filter((function(t){return-1===h.classes.indexOf(t)})).filter((function(t){return""!==t||!!t})).concat(h.classes).join(" "),x={children:[],attributes:i(i({},h.attributes),{},{"data-prefix":o,"data-icon":a,class:b,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(m)})},_=y&&!~h.classes.indexOf("fa-fw")?{width:"".concat(v/m*16*.0625,"em")}:{};p&&(x.attributes[H]=""),l&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(f||At())},children:[l]}),delete x.attributes.title);var w=i(i({},x),{},{prefix:o,iconName:a,main:n,mask:r,maskId:c,transform:s,symbol:u,styles:i(i({},_),h.styles)}),S=r.found&&n.found?Fe("generateAbstractMask",w)||{children:[],attributes:{}}:Fe("generateAbstractIcon",w)||{children:[],attributes:{}},E=S.children,T=S.attributes;return w.children=E,w.attributes=T,u?Ye(w):Ve(w)}function qe(t){var e=t.content,n=t.width,r=t.height,o=t.transform,a=t.title,s=t.extra,u=t.watchable,l=void 0!==u&&u,c=i(i(i({},s.attributes),a?{title:a}:{}),{},{class:s.classes.join(" ")});l&&(c[H]="");var f=i({},s.styles);Nt(o)&&(f["transform"]=jt({transform:o,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f["transform"]);var h=Lt(f);h.length>0&&(c["style"]=h);var d=[];return d.push({tag:"span",attributes:c,children:[e]}),a&&d.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),d}function Ke(t){var e=t.content,n=t.title,r=t.extra,o=i(i(i({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=Lt(r.styles);a.length>0&&(o["style"]=a);var s=[];return s.push({tag:"span",attributes:o,children:[e]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var Je=$t.styles;function Qe(t){var e=t[0],n=t[1],r=t.slice(4),i=c(r,1),o=i[0],a=null;return a=Array.isArray(o)?{tag:"g",attributes:{class:"".concat(wt.cssPrefix,"-").concat(dt.GROUP)},children:[{tag:"path",attributes:{class:"".concat(wt.cssPrefix,"-").concat(dt.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(wt.cssPrefix,"-").concat(dt.PRIMARY),fill:"currentColor",d:o[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:e,height:n,icon:a}}var tn={found:!1,width:512,height:512};function en(t,e){K||wt.showMissingIcons||!t||console.error('Icon with name "'.concat(t,'" and prefix "').concat(e,'" is missing.'))}function nn(t,e){var n=e;return"fa"===e&&null!==wt.styleDefault&&(e=Te()),new Promise((function(r,o){Fe("missingIconAbstract");if("fa"===n){var a=Se(t)||{};t=a.iconName||t,e=a.prefix||e}if(t&&e&&Je[e]&&Je[e][t]){var s=Je[e][t];return r(Qe(s))}en(t,e),r(i(i({},tn),{},{icon:wt.showMissingIcons&&t&&Fe("missingIconAbstract")||{}}))}))}var rn=function(){},on=wt.measurePerformance&&R&&R.mark&&R.measure?R:{mark:rn,measure:rn},an='FA "6.5.1"',sn=function(t){return on.mark("".concat(an," ").concat(t," begins")),function(){return un(t)}},un=function(t){on.mark("".concat(an," ").concat(t," ends")),on.measure("".concat(an," ").concat(t),"".concat(an," ").concat(t," begins"),"".concat(an," ").concat(t," ends"))},ln={begin:sn,end:un},cn=function(){};function fn(t){var e=t.getAttribute?t.getAttribute(H):null;return"string"===typeof e}function hn(t){var e=t.getAttribute?t.getAttribute(W):null,n=t.getAttribute?t.getAttribute(V):null;return e&&n}function dn(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(wt.replacementClass)}function pn(){if(!0===wt.autoReplaceSvg)return bn.replace;var t=bn[wt.autoReplaceSvg];return t||bn.replace}function gn(t){return L.createElementNS("http://www.w3.org/2000/svg",t)}function vn(t){return L.createElement(t)}function mn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.ceFn,r=void 0===n?"svg"===t.tag?gn:vn:n;if("string"===typeof t)return L.createTextNode(t);var i=r(t.tag);Object.keys(t.attributes||[]).forEach((function(e){i.setAttribute(e,t.attributes[e])}));var o=t.children||[];return o.forEach((function(t){i.appendChild(mn(t,{ceFn:r}))})),i}function yn(t){var e=" ".concat(t.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}var bn={replace:function(t){var e=t[0];if(e.parentNode)if(t[1].forEach((function(t){e.parentNode.insertBefore(mn(t),e)})),null===e.getAttribute(H)&&wt.keepOriginalSource){var n=L.createComment(yn(e));e.parentNode.replaceChild(n,e)}else e.remove()},nest:function(t){var e=t[0],n=t[1];if(~Ot(e).indexOf(wt.replacementClass))return bn.replace(t);var r=new RegExp("".concat(wt.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce((function(t,e){return e===wt.replacementClass||e.match(r)?t.toSvg.push(e):t.toNode.push(e),t}),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?e.removeAttribute("class"):e.setAttribute("class",i.toNode.join(" "))}var o=n.map((function(t){return Xt(t)})).join("\n");e.setAttribute(H,""),e.innerHTML=o}};function xn(t){t()}function _n(t,e){var n="function"===typeof e?e:cn;if(0===t.length)n();else{var r=xn;wt.mutateApproach===X&&(r=P.requestAnimationFrame||xn),r((function(){var e=pn(),r=ln.begin("mutate");t.map(e),r(),n()}))}}var wn=!1;function Sn(){wn=!0}function En(){wn=!1}var Tn=null;function kn(t){if(N&&wt.observeMutations){var e=t.treeCallback,n=void 0===e?cn:e,r=t.nodeCallback,i=void 0===r?cn:r,o=t.pseudoElementsCallback,a=void 0===o?cn:o,s=t.observeMutationsRoot,u=void 0===s?L:s;Tn=new N((function(t){if(!wn){var e=Te();It(t).forEach((function(t){if("childList"===t.type&&t.addedNodes.length>0&&!fn(t.addedNodes[0])&&(wt.searchPseudoElements&&a(t.target),n(t.target)),"attributes"===t.type&&t.target.parentNode&&wt.searchPseudoElements&&a(t.target.parentNode),"attributes"===t.type&&fn(t.target)&&~ht.indexOf(t.attributeName))if("class"===t.attributeName&&hn(t.target)){var r=Ae(Ot(t.target)),o=r.prefix,s=r.iconName;t.target.setAttribute(W,o||e),s&&t.target.setAttribute(V,s)}else dn(t.target)&&i(t.target)}))}})),j&&Tn.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Cn(){Tn&&Tn.disconnect()}function Mn(t){var e=t.getAttribute("style"),n=[];return e&&(n=e.split(";").reduce((function(t,e){var n=e.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(t[r]=i.join(":").trim()),t}),{})),n}function An(t){var e=t.getAttribute("data-prefix"),n=t.getAttribute("data-icon"),r=void 0!==t.innerText?t.innerText.trim():"",i=Ae(Ot(t));return i.prefix||(i.prefix=Te()),e&&n&&(i.prefix=e,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=_e(i.prefix,t.innerText)||xe(i.prefix,te(t.innerText))),!i.iconName&&wt.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=t.firstChild.data)),i}function In(t){var e=It(t.attributes).reduce((function(t,e){return"class"!==t.name&&"style"!==t.name&&(t[e.name]=e.value),t}),{}),n=t.getAttribute("title"),r=t.getAttribute("data-fa-title-id");return wt.autoA11y&&(n?e["aria-labelledby"]="".concat(wt.replacementClass,"-title-").concat(r||At()):(e["aria-hidden"]="true",e["focusable"]="false")),e}function On(){return{iconName:null,title:null,titleId:null,prefix:null,transform:kt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Dn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=An(t),r=n.iconName,o=n.prefix,a=n.rest,s=In(t),u=Re("parseNodeAttributes",{},t),l=e.styleParser?Mn(t):[];return i({iconName:r,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:o,transform:kt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:l,attributes:s}},u)}var Pn=$t.styles;function Ln(t){var e="nest"===wt.autoReplaceSvg?Dn(t,{styleParser:!1}):Dn(t);return~e.extra.classes.indexOf(st)?Fe("generateLayersText",t,e):Fe("generateSvgReplacementMutation",t,e)}var Nn=new Set;function Rn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!j)return Promise.resolve();var n=L.documentElement.classList,r=function(t){return n.add("".concat(Y,"-").concat(t))},i=function(t){return n.remove("".concat(Y,"-").concat(t))},o=wt.autoFetchSvg?Nn:tt.map((function(t){return"fa-".concat(t)})).concat(Object.keys(Pn));o.includes("fa")||o.push("fa");var a=[".".concat(st,":not([").concat(H,"])")].concat(o.map((function(t){return".".concat(t,":not([").concat(H,"])")}))).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=It(t.querySelectorAll(a))}catch(fr){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var u=ln.begin("onTree"),l=s.reduce((function(t,e){try{var n=Ln(e);n&&t.push(n)}catch(fr){K||"MissingIcon"===fr.name&&console.error(fr)}return t}),[]);return new Promise((function(t,n){Promise.all(l).then((function(n){_n(n,(function(){r("active"),r("complete"),i("pending"),"function"===typeof e&&e(),u(),t()}))})).catch((function(t){u(),n(t)}))}))}function jn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Ln(t).then((function(t){t&&_n([t],e)}))}function Fn(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(e||{}).icon?e:Be(e||{}),o=n.mask;return o&&(o=(o||{}).icon?o:Be(o||{})),t(r,i(i({},n),{},{mask:o}))}}tt.map((function(t){Nn.add("fa-".concat(t))})),Object.keys(nt[J]).map(Nn.add.bind(Nn)),Object.keys(nt[Q]).map(Nn.add.bind(Nn)),Nn=f(Nn);var Bn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,r=void 0===n?kt:n,o=e.symbol,a=void 0!==o&&o,s=e.mask,u=void 0===s?null:s,l=e.maskId,c=void 0===l?null:l,f=e.title,h=void 0===f?null:f,d=e.titleId,p=void 0===d?null:d,g=e.classes,v=void 0===g?[]:g,m=e.attributes,y=void 0===m?{}:m,b=e.styles,x=void 0===b?{}:b;if(t){var _=t.prefix,w=t.iconName,S=t.icon;return We(i({type:"icon"},t),(function(){return je("beforeDOMElementCreation",{iconDefinition:t,params:e}),wt.autoA11y&&(h?y["aria-labelledby"]="".concat(wt.replacementClass,"-title-").concat(p||At()):(y["aria-hidden"]="true",y["focusable"]="false")),Xe({icons:{main:Qe(S),mask:u?Qe(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:w,transform:i(i({},kt),r),symbol:a,title:h,maskId:c,titleId:p,extra:{attributes:y,styles:x,classes:v}})}))}},zn={mixout:function(){return{icon:Fn(Bn)}},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=Rn,t.nodeCallback=jn,t}}},provides:function(t){t.i2svg=function(t){var e=t.node,n=void 0===e?L:e,r=t.callback,i=void 0===r?function(){}:r;return Rn(n,i)},t.generateSvgReplacementMutation=function(t,e){var n=e.iconName,r=e.title,i=e.titleId,o=e.prefix,a=e.transform,s=e.symbol,u=e.mask,l=e.maskId,f=e.extra;return new Promise((function(e,h){Promise.all([nn(n,o),u.iconName?nn(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(u){var h=c(u,2),d=h[0],p=h[1];e([t,Xe({icons:{main:d,mask:p},prefix:o,iconName:n,transform:a,symbol:s,maskId:l,title:r,titleId:i,extra:f,watchable:!0})])})).catch(h)}))},t.generateAbstractIcon=function(t){var e,n=t.children,r=t.attributes,i=t.main,o=t.transform,a=t.styles,s=Lt(a);return s.length>0&&(r["style"]=s),Nt(o)&&(e=Fe("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(e||i.icon),{children:n,attributes:r}}}},Zn={mixout:function(){return{layer:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.classes,r=void 0===n?[]:n;return We({type:"layer"},(function(){je("beforeDOMElementCreation",{assembler:t,params:e});var n=[];return t((function(t){Array.isArray(t)?t.map((function(t){n=n.concat(t.abstract)})):n=n.concat(t.abstract)})),[{tag:"span",attributes:{class:["".concat(wt.cssPrefix,"-layers")].concat(f(r)).join(" ")},children:n}]}))}}}},Un={mixout:function(){return{counter:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.title,r=void 0===n?null:n,i=e.classes,o=void 0===i?[]:i,a=e.attributes,s=void 0===a?{}:a,u=e.styles,l=void 0===u?{}:u;return We({type:"counter",content:t},(function(){return je("beforeDOMElementCreation",{content:t,params:e}),Ke({content:t.toString(),title:r,extra:{attributes:s,styles:l,classes:["".concat(wt.cssPrefix,"-layers-counter")].concat(f(o))}})}))}}}},Hn={mixout:function(){return{text:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,r=void 0===n?kt:n,o=e.title,a=void 0===o?null:o,s=e.classes,u=void 0===s?[]:s,l=e.attributes,c=void 0===l?{}:l,h=e.styles,d=void 0===h?{}:h;return We({type:"text",content:t},(function(){return je("beforeDOMElementCreation",{content:t,params:e}),qe({content:t,transform:i(i({},kt),r),title:a,extra:{attributes:c,styles:d,classes:["".concat(wt.cssPrefix,"-layers-text")].concat(f(u))}})}))}}},provides:function(t){t.generateLayersText=function(t,e){var n=e.title,r=e.transform,i=e.extra,o=null,a=null;if(F){var s=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();o=u.width/s,a=u.height/s}return wt.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([t,qe({content:t.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}},$n=new RegExp('"',"ug"),Gn=[1105920,1112319];function Wn(t){var e=t.replace($n,""),n=ee(e,0),r=n>=Gn[0]&&n<=Gn[1],i=2===e.length&&e[0]===e[1];return{value:te(i?e[0]:e),isSecondary:r||i}}function Vn(t,e){var n="".concat(G).concat(e.replace(":","-"));return new Promise((function(r,o){if(null!==t.getAttribute(n))return r();var a=It(t.children),s=a.filter((function(t){return t.getAttribute($)===e}))[0],u=P.getComputedStyle(t,e),l=u.getPropertyValue("font-family").match(ut),c=u.getPropertyValue("font-weight"),f=u.getPropertyValue("content");if(s&&!l)return t.removeChild(s),r();if(l&&"none"!==f&&""!==f){var h=u.getPropertyValue("content"),d=~["Sharp"].indexOf(l[2])?Q:J,p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?rt[d][l[2].toLowerCase()]:lt[d][c],g=Wn(h),v=g.value,m=g.isSecondary,y=l[0].startsWith("FontAwesome"),b=xe(p,v),x=b;if(y){var _=Ee(v);_.iconName&&_.prefix&&(b=_.iconName,p=_.prefix)}if(!b||m||s&&s.getAttribute(W)===p&&s.getAttribute(V)===x)r();else{t.setAttribute(n,x),s&&t.removeChild(s);var w=On(),S=w.extra;S.attributes[$]=e,nn(b,p).then((function(o){var a=Xe(i(i({},w),{},{icons:{main:o,mask:ke()},prefix:p,iconName:x,extra:S,watchable:!0})),s=L.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===e?t.insertBefore(s,t.firstChild):t.appendChild(s),s.outerHTML=a.map((function(t){return Xt(t)})).join("\n"),t.removeAttribute(n),r()})).catch(o)}}else r()}))}function Yn(t){return Promise.all([Vn(t,"::before"),Vn(t,"::after")])}function Xn(t){return t.parentNode!==document.head&&!~q.indexOf(t.tagName.toUpperCase())&&!t.getAttribute($)&&(!t.parentNode||"svg"!==t.parentNode.tagName)}function qn(t){if(j)return new Promise((function(e,n){var r=It(t.querySelectorAll("*")).filter(Xn).map(Yn),i=ln.begin("searchPseudoElements");Sn(),Promise.all(r).then((function(){i(),En(),e()})).catch((function(){i(),En(),n()}))}))}var Kn={hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=qn,t}}},provides:function(t){t.pseudoElements2svg=function(t){var e=t.node,n=void 0===e?L:e;wt.searchPseudoElements&&qn(n)}}},Jn=!1,Qn={mixout:function(){return{dom:{unwatch:function(){Sn(),Jn=!0}}}},hooks:function(){return{bootstrap:function(){kn(Re("mutationObserverCallbacks",{}))},noAuto:function(){Cn()},watch:function(t){var e=t.observeMutationsRoot;Jn?En():kn(Re("mutationObserverCallbacks",{observeMutationsRoot:e}))}}}},tr=function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce((function(t,e){var n=e.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return t.flipX=!0,t;if(r&&"v"===i)return t.flipY=!0,t;if(i=parseFloat(i),isNaN(i))return t;switch(r){case"grow":t.size=t.size+i;break;case"shrink":t.size=t.size-i;break;case"left":t.x=t.x-i;break;case"right":t.x=t.x+i;break;case"up":t.y=t.y-i;break;case"down":t.y=t.y+i;break;case"rotate":t.rotate=t.rotate+i;break}return t}),e)},er={mixout:function(){return{parse:{transform:function(t){return tr(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,e){var n=e.getAttribute("data-fa-transform");return n&&(t.transform=tr(n)),t}}},provides:function(t){t.generateAbstractTransformGrouping=function(t){var e=t.main,n=t.transform,r=t.containerWidth,o=t.iconWidth,a={transform:"translate(".concat(r/2," 256)")},s="translate(".concat(32*n.x,", ").concat(32*n.y,") "),u="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={transform:"".concat(s," ").concat(u," ").concat(l)},f={transform:"translate(".concat(o/2*-1," -256)")},h={outer:a,inner:c,path:f};return{tag:"g",attributes:i({},h.outer),children:[{tag:"g",attributes:i({},h.inner),children:[{tag:e.icon.tag,children:e.icon.children,attributes:i(i({},e.icon.attributes),h.path)}]}]}}}},nr={x:0,y:0,width:"100%",height:"100%"};function rr(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function ir(t){return"g"===t.tag?t.children:[t]}var or={hooks:function(){return{parseNodeAttributes:function(t,e){var n=e.getAttribute("data-fa-mask"),r=n?Ae(n.split(" ").map((function(t){return t.trim()}))):ke();return r.prefix||(r.prefix=Te()),t.mask=r,t.maskId=e.getAttribute("data-fa-mask-id"),t}}},provides:function(t){t.generateAbstractMask=function(t){var e=t.children,n=t.attributes,r=t.main,o=t.mask,a=t.maskId,s=t.transform,u=r.width,l=r.icon,c=o.width,f=o.icon,h=Rt({transform:s,containerWidth:c,iconWidth:u}),d={tag:"rect",attributes:i(i({},nr),{},{fill:"white"})},p=l.children?{children:l.children.map(rr)}:{},g={tag:"g",attributes:i({},h.inner),children:[rr(i({tag:l.tag,attributes:i(i({},l.attributes),h.path)},p))]},v={tag:"g",attributes:i({},h.outer),children:[g]},m="mask-".concat(a||At()),y="clip-".concat(a||At()),b={tag:"mask",attributes:i(i({},nr),{},{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[d,v]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:ir(f)},b]};return e.push(x,{tag:"rect",attributes:i({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(m,")")},nr)}),{children:e,attributes:n}}}},ar={provides:function(t){var e=!1;P.matchMedia&&(e=P.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var t=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};t.push({tag:"path",attributes:i(i({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=i(i({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:i(i({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||a.children.push({tag:"animate",attributes:i(i({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:i(i({},o),{},{values:"1;0;1;1;0;1;"})}),t.push(a),t.push({tag:"path",attributes:i(i({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:i(i({},o),{},{values:"1;0;0;0;0;1;"})}]}),e||t.push({tag:"path",attributes:i(i({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:i(i({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:t}}}},sr={hooks:function(){return{parseNodeAttributes:function(t,e){var n=e.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return t["symbol"]=r,t}}}},ur=[Ut,zn,Zn,Un,Hn,Kn,Qn,er,or,ar,sr];Ne(ur,{mixoutsTo:$e});$e.noAuto,$e.config;var lr=$e.library,cr=$e.dom;$e.parse,$e.findIconDefinition,$e.toHtml,$e.icon,$e.layer,$e.text,$e.counter},93024:function(t,e,n){"use strict";n.d(e,{D9H:function(){return s},Fgt:function(){return r},f7t:function(){return a},hwn:function(){return o},mdU:function(){return l},xYR:function(){return i},zhw:function(){return u}});var r={prefix:"fab",iconName:"orcid",icon:[512,512,[],"f8d2","M294.75 188.19h-45.92V342h47.47c67.62 0 83.12-51.34 83.12-76.91 0-41.64-26.54-76.9-84.67-76.9zM256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm-80.79 360.76h-29.84v-207.5h29.84zm-14.92-231.14a19.57 19.57 0 1 1 19.57-19.57 19.64 19.64 0 0 1-19.57 19.57zM300 369h-81V161.26h80.6c76.73 0 110.44 54.83 110.44 103.85C410 318.39 368.38 369 300 369z"]},i={prefix:"fab",iconName:"google",icon:[488,512,[],"f1a0","M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"]},o={prefix:"fab",iconName:"linkedin-in",icon:[448,512,[],"f0e1","M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"]},a={prefix:"fab",iconName:"searchengin",icon:[460,512,[],"f3eb","M220.6 130.3l-67.2 28.2V43.2L98.7 233.5l54.7-24.2v130.3l67.2-209.3zm-83.2-96.7l-1.3 4.7-15.2 52.9C80.6 106.7 52 145.8 52 191.5c0 52.3 34.3 95.9 83.4 105.5v53.6C57.5 340.1 0 272.4 0 191.6c0-80.5 59.8-147.2 137.4-158zm311.4 447.2c-11.2 11.2-23.1 12.3-28.6 10.5-5.4-1.8-27.1-19.9-60.4-44.4-33.3-24.6-33.6-35.7-43-56.7-9.4-20.9-30.4-42.6-57.5-52.4l-9.7-14.7c-24.7 16.9-53 26.9-81.3 28.7l2.1-6.6 15.9-49.5c46.5-11.9 80.9-54 80.9-104.2 0-54.5-38.4-102.1-96-107.1V32.3C254.4 37.4 320 106.8 320 191.6c0 33.6-11.2 64.7-29 90.4l14.6 9.6c9.8 27.1 31.5 48 52.4 57.4s32.2 9.7 56.8 43c24.6 33.2 42.7 54.9 44.5 60.3s.7 17.3-10.5 28.5zm-9.9-17.9c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8 8-3.6 8-8z"]},s={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},u={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]},l={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]}},59417:function(t,e,n){"use strict";n.d(e,{$aW:function(){return U},A35:function(){return ht},Bkj:function(){return it},Cv1:function(){return T},Elr:function(){return H},FDd:function(){return L},FL8:function(){return vt},FPD:function(){return rt},FU$:function(){return $},G_j:function(){return I},HEx:function(){return p},I4f:function(){return c},ILF:function(){return b},Krp:function(){return M},LM3:function(){return pt},NdV:function(){return S},O51:function(){return a},OEL:function(){return i},QDM:function(){return C},QGx:function(){return u},Quw:function(){return Y},SBo:function(){return E},TzT:function(){return l},Usx:function(){return B},Uu6:function(){return h},VPG:function(){return z},Wx7:function(){return ct},XSk:function(){return at},YIN:function(){return ut},Yem:function(){return w},Yo6:function(){return K},Zrf:function(){return m},_tD:function(){return dt},a3n:function(){return v},bpC:function(){return G},dT$:function(){return O},e7M:function(){return bt},eFW:function(){return P},eHv:function(){return yt},fT7:function(){return gt},g4A:function(){return x},g82:function(){return st},hz8:function(){return J},icc:function(){return D},j1w:function(){return Z},jZZ:function(){return X},lIc:function(){return f},mTx:function(){return y},mXR:function(){return s},pL1:function(){return A},ptq:function(){return nt},qxT:function(){return _t},r6l:function(){return j},sqG:function(){return V},t5N:function(){return xt},tMT:function(){return ft},tho:function(){return N},vAW:function(){return St},vCl:function(){return Tt},wn1:function(){return et},y1i:function(){return lt},yGG:function(){return Q}});var r={prefix:"fas",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM112 256H272c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64H272c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64H272c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},i=r,o={prefix:"fas",iconName:"sort-down",icon:[320,512,["sort-desc"],"f0dd","M182.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8H288c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-128 128z"]},a=o,s={prefix:"fas",iconName:"right-from-bracket",icon:[512,512,["sign-out-alt"],"f2f5","M377.9 105.9L500.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L377.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1-128 0c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM160 96L96 96c-17.7 0-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-53 0-96-43-96-96L0 128C0 75 43 32 96 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32z"]},u={prefix:"fas",iconName:"fingerprint",icon:[512,512,[],"f577","M48 256C48 141.1 141.1 48 256 48c63.1 0 119.6 28.1 157.8 72.5c8.6 10.1 23.8 11.2 33.8 2.6s11.2-23.8 2.6-33.8C403.3 34.6 333.7 0 256 0C114.6 0 0 114.6 0 256v40c0 13.3 10.7 24 24 24s24-10.7 24-24V256zm458.5-52.9c-2.7-13-15.5-21.3-28.4-18.5s-21.3 15.5-18.5 28.4c2.9 13.9 4.5 28.3 4.5 43.1v40c0 13.3 10.7 24 24 24s24-10.7 24-24V256c0-18.1-1.9-35.8-5.5-52.9zM256 80c-19 0-37.4 3-54.5 8.6c-15.2 5-18.7 23.7-8.3 35.9c7.1 8.3 18.8 10.8 29.4 7.9c10.6-2.9 21.8-4.4 33.4-4.4c70.7 0 128 57.3 128 128v24.9c0 25.2-1.5 50.3-4.4 75.3c-1.7 14.6 9.4 27.8 24.2 27.8c11.8 0 21.9-8.6 23.3-20.3c3.3-27.4 5-55 5-82.7V256c0-97.2-78.8-176-176-176zM150.7 148.7c-9.1-10.6-25.3-11.4-33.9-.4C93.7 178 80 215.4 80 256v24.9c0 24.2-2.6 48.4-7.8 71.9C68.8 368.4 80.1 384 96.1 384c10.5 0 19.9-7 22.2-17.3c6.4-28.1 9.7-56.8 9.7-85.8V256c0-27.2 8.5-52.4 22.9-73.1c7.2-10.4 8-24.6-.2-34.2zM256 160c-53 0-96 43-96 96v24.9c0 35.9-4.6 71.5-13.8 106.1c-3.8 14.3 6.7 29 21.5 29c9.5 0 17.9-6.2 20.4-15.4c10.5-39 15.9-79.2 15.9-119.7V256c0-28.7 23.3-52 52-52s52 23.3 52 52v24.9c0 36.3-3.5 72.4-10.4 107.9c-2.7 13.9 7.7 27.2 21.8 27.2c10.2 0 19-7 21-17c7.7-38.8 11.6-78.3 11.6-118.1V256c0-53-43-96-96-96zm24 96c0-13.3-10.7-24-24-24s-24 10.7-24 24v24.9c0 59.9-11 119.3-32.5 175.2l-5.9 15.3c-4.8 12.4 1.4 26.3 13.8 31s26.3-1.4 31-13.8l5.9-15.3C267.9 411.9 280 346.7 280 280.9V256z"]},l={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},c={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"]},f={prefix:"fas",iconName:"binoculars",icon:[512,512,[],"f1e5","M128 32h32c17.7 0 32 14.3 32 32V96H96V64c0-17.7 14.3-32 32-32zm64 96V448c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32V388.9c0-34.6 9.4-68.6 27.2-98.3C40.9 267.8 49.7 242.4 53 216L60.5 156c2-16 15.6-28 31.8-28H192zm227.8 0c16.1 0 29.8 12 31.8 28L459 216c3.3 26.4 12.1 51.8 25.8 74.6c17.8 29.7 27.2 63.7 27.2 98.3V448c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V128h99.8zM320 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32V96H320V64zm-32 64V288H224V128h64z"]},h={prefix:"fas",iconName:"caret-left",icon:[256,512,[],"f0d9","M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l128-128c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 256c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-128-128z"]},d={prefix:"fas",iconName:"arrow-right-from-bracket",icon:[512,512,["sign-out"],"f08b","M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 192 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l210.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128zM160 96c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 32C43 32 0 75 0 128L0 384c0 53 43 96 96 96l64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l64 0z"]},p=d,g={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},v=g,m={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V232c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V392c0-13.3-10.7-24-24-24H40z"]},y={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},b={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"]},x={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6H344.3c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z"]},_={prefix:"fas",iconName:"arrow-right-to-bracket",icon:[512,512,["sign-in"],"f090","M352 96l64 0c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c53 0 96-43 96-96l0-256c0-53-43-96-96-96l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm-9.4 182.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L242.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l210.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128z"]},w=_,S={prefix:"fas",iconName:"user-group",icon:[640,512,[128101,"user-friends"],"f500","M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM609.3 512H471.4c5.4-9.4 8.6-20.3 8.6-32v-8c0-60.7-27.1-115.2-69.8-151.8c2.4-.1 4.7-.2 7.1-.2h61.4C567.8 320 640 392.2 640 481.3c0 17-13.8 30.7-30.7 30.7zM432 256c-31 0-59-12.6-79.3-32.9C372.4 196.5 384 163.6 384 128c0-26.8-6.6-52.1-18.3-74.3C384.3 40.1 407.2 32 432 32c61.9 0 112 50.1 112 112s-50.1 112-112 112z"]},E={prefix:"fas",iconName:"city",icon:[640,512,[127961],"f64f","M480 48c0-26.5-21.5-48-48-48H336c-26.5 0-48 21.5-48 48V96H224V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V96H112V24c0-13.3-10.7-24-24-24S64 10.7 64 24V96H48C21.5 96 0 117.5 0 144v96V464c0 26.5 21.5 48 48 48H304h32 96H592c26.5 0 48-21.5 48-48V240c0-26.5-21.5-48-48-48H480V48zm96 320v32c0 8.8-7.2 16-16 16H528c-8.8 0-16-7.2-16-16V368c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16zM240 416H208c-8.8 0-16-7.2-16-16V368c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16zM128 400c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V368c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32zM560 256c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H528c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16h32zM256 176v32c0 8.8-7.2 16-16 16H208c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16zM112 160c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h32zM256 304c0 8.8-7.2 16-16 16H208c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32zM112 320H80c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16zm304-48v32c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16zM400 64c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16V80c0-8.8 7.2-16 16-16h32zm16 112v32c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16z"]},T={prefix:"fas",iconName:"user-tie",icon:[448,512,[],"f508","M96 128a128 128 0 1 0 256 0A128 128 0 1 0 96 128zm94.5 200.2l18.6 31L175.8 483.1l-36-146.9c-2-8.1-9.8-13.4-17.9-11.3C51.9 342.4 0 405.8 0 481.3c0 17 13.8 30.7 30.7 30.7H162.5c0 0 0 0 .1 0H168 280h5.5c0 0 0 0 .1 0H417.3c17 0 30.7-13.8 30.7-30.7c0-75.5-51.9-138.9-121.9-156.4c-8.1-2-15.9 3.3-17.9 11.3l-36 146.9L238.9 359.2l18.6-31c6.4-10.7-1.3-24.2-13.7-24.2H224 204.3c-12.4 0-20.1 13.6-13.7 24.2z"]},k={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H352c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V432c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H160c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},C=k,M={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},A={prefix:"fas",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96z"]},I={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M3.9 54.9C10.5 40.9 24.5 32 40 32H472c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9V448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6V320.9L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"]},O={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"]},D={prefix:"fas",iconName:"file-excel",icon:[384,512,[],"f1c3","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM155.7 250.2L192 302.1l36.3-51.9c7.6-10.9 22.6-13.5 33.4-5.9s13.5 22.6 5.9 33.4L221.3 344l46.4 66.2c7.6 10.9 5 25.8-5.9 33.4s-25.8 5-33.4-5.9L192 385.8l-36.3 51.9c-7.6 10.9-22.6 13.5-33.4 5.9s-13.5-22.6-5.9-33.4L162.7 344l-46.4-66.2c-7.6-10.9-5-25.8 5.9-33.4s25.8-5 33.4 5.9z"]},P={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},L={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},N={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5V80C0 53.5 21.5 32 48 32H197.5c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},R={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32H64zm0 96c0-17.7 14.3-32 32-32H288c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V128zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},j=R,F={prefix:"fas",iconName:"sort-up",icon:[320,512,["sort-asc"],"f0de","M182.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},B=F,z={prefix:"fas",iconName:"hand-holding-dollar",icon:[576,512,["hand-holding-usd"],"f4c0","M312 24V34.5c6.4 1.2 12.6 2.7 18.2 4.2c12.8 3.4 20.4 16.6 17 29.4s-16.6 20.4-29.4 17c-10.9-2.9-21.1-4.9-30.2-5c-7.3-.1-14.7 1.7-19.4 4.4c-2.1 1.3-3.1 2.4-3.5 3c-.3 .5-.7 1.2-.7 2.8c0 .3 0 .5 0 .6c.2 .2 .9 1.2 3.3 2.6c5.8 3.5 14.4 6.2 27.4 10.1l.9 .3c11.1 3.3 25.9 7.8 37.9 15.3c13.7 8.6 26.1 22.9 26.4 44.9c.3 22.5-11.4 38.9-26.7 48.5c-6.7 4.1-13.9 7-21.3 8.8V232c0 13.3-10.7 24-24 24s-24-10.7-24-24V220.6c-9.5-2.3-18.2-5.3-25.6-7.8c-2.1-.7-4.1-1.4-6-2c-12.6-4.2-19.4-17.8-15.2-30.4s17.8-19.4 30.4-15.2c2.6 .9 5 1.7 7.3 2.5c13.6 4.6 23.4 7.9 33.9 8.3c8 .3 15.1-1.6 19.2-4.1c1.9-1.2 2.8-2.2 3.2-2.9c.4-.6 .9-1.8 .8-4.1l0-.2c0-1 0-2.1-4-4.6c-5.7-3.6-14.3-6.4-27.1-10.3l-1.9-.6c-10.8-3.2-25-7.5-36.4-14.4c-13.5-8.1-26.5-22-26.6-44.1c-.1-22.9 12.9-38.6 27.7-47.4c6.4-3.8 13.3-6.4 20.2-8.2V24c0-13.3 10.7-24 24-24s24 10.7 24 24zM568.2 336.3c13.1 17.8 9.3 42.8-8.5 55.9L433.1 485.5c-23.4 17.2-51.6 26.5-80.7 26.5H192 32c-17.7 0-32-14.3-32-32V416c0-17.7 14.3-32 32-32H68.8l44.9-36c22.7-18.2 50.9-28 80-28H272h16 64c17.7 0 32 14.3 32 32s-14.3 32-32 32H288 272c-8.8 0-16 7.2-16 16s7.2 16 16 16H392.6l119.7-88.2c17.8-13.1 42.8-9.3 55.9 8.5zM193.6 384l0 0-.9 0c.3 0 .6 0 .9 0z"]},Z={prefix:"fas",iconName:"phone",icon:[512,512,[128222,128379],"f095","M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"]},U={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},H={prefix:"fas",iconName:"quote-right",icon:[448,512,[8221,"quote-right-alt"],"f10e","M448 296c0 66.3-53.7 120-120 120h-8c-17.7 0-32-14.3-32-32s14.3-32 32-32h8c30.9 0 56-25.1 56-56v-8H320c-35.3 0-64-28.7-64-64V160c0-35.3 28.7-64 64-64h64c35.3 0 64 28.7 64 64v32 32 72zm-256 0c0 66.3-53.7 120-120 120H64c-17.7 0-32-14.3-32-32s14.3-32 32-32h8c30.9 0 56-25.1 56-56v-8H64c-35.3 0-64-28.7-64-64V160c0-35.3 28.7-64 64-64h64c35.3 0 64 28.7 64 64v32 32 72z"]},$={prefix:"fas",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]},G={prefix:"fas",iconName:"circle-nodes",icon:[512,512,[],"e4e2","M418.4 157.9c35.3-8.3 61.6-40 61.6-77.9c0-44.2-35.8-80-80-80c-43.4 0-78.7 34.5-80 77.5L136.2 151.1C121.7 136.8 101.9 128 80 128c-44.2 0-80 35.8-80 80s35.8 80 80 80c12.2 0 23.8-2.7 34.1-7.6L259.7 407.8c-2.4 7.6-3.7 15.8-3.7 24.2c0 44.2 35.8 80 80 80s80-35.8 80-80c0-27.7-14-52.1-35.4-66.4l37.8-207.7zM156.3 232.2c2.2-6.9 3.5-14.2 3.7-21.7l183.8-73.5c3.6 3.5 7.4 6.7 11.6 9.5L317.6 354.1c-5.5 1.3-10.8 3.1-15.8 5.5L156.3 232.2z"]},W={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},V=W,Y={prefix:"fas",iconName:"piggy-bank",icon:[576,512,[],"f4d3","M400 96l0 .7c-5.3-.4-10.6-.7-16-.7H256c-16.5 0-32.5 2.1-47.8 6c-.1-2-.2-4-.2-6c0-53 43-96 96-96s96 43 96 96zm-16 32c3.5 0 7 .1 10.4 .3c4.2 .3 8.4 .7 12.6 1.3C424.6 109.1 450.8 96 480 96h11.5c10.4 0 18 9.8 15.5 19.9l-13.8 55.2c15.8 14.8 28.7 32.8 37.5 52.9H544c17.7 0 32 14.3 32 32v96c0 17.7-14.3 32-32 32H512c-9.1 12.1-19.9 22.9-32 32v64c0 17.7-14.3 32-32 32H416c-17.7 0-32-14.3-32-32V448H256v32c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V416c-34.9-26.2-58.7-66.3-63.2-112H68c-37.6 0-68-30.4-68-68s30.4-68 68-68h4c13.3 0 24 10.7 24 24s-10.7 24-24 24H68c-11 0-20 9-20 20s9 20 20 20H99.2c12.1-59.8 57.7-107.5 116.3-122.8c12.9-3.4 26.5-5.2 40.5-5.2H384zm64 136a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]},X={prefix:"fas",iconName:"flask",icon:[448,512,[],"f0c3","M288 0H160 128C110.3 0 96 14.3 96 32s14.3 32 32 32V196.8c0 11.8-3.3 23.5-9.5 33.5L10.3 406.2C3.6 417.2 0 429.7 0 442.6C0 480.9 31.1 512 69.4 512H378.6c38.3 0 69.4-31.1 69.4-69.4c0-12.8-3.6-25.4-10.3-36.4L329.5 230.4c-6.2-10.1-9.5-21.7-9.5-33.5V64c17.7 0 32-14.3 32-32s-14.3-32-32-32H288zM192 196.8V64h64V196.8c0 23.7 6.6 46.9 19 67.1L309.5 320h-171L173 263.9c12.4-20.2 19-43.4 19-67.1z"]},q={prefix:"fas",iconName:"delete-left",icon:[576,512,[9003,"backspace"],"f55a","M576 128c0-35.3-28.7-64-64-64H205.3c-17 0-33.3 6.7-45.3 18.7L9.4 233.4c-6 6-9.4 14.1-9.4 22.6s3.4 16.6 9.4 22.6L160 429.3c12 12 28.3 18.7 45.3 18.7H512c35.3 0 64-28.7 64-64V128zM271 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},K=q,J={prefix:"fas",iconName:"arrows-left-right-to-line",icon:[640,512,[],"e4ba","M32 64c17.7 0 32 14.3 32 32l0 320c0 17.7-14.3 32-32 32s-32-14.3-32-32V96C0 78.3 14.3 64 32 64zm214.6 73.4c12.5 12.5 12.5 32.8 0 45.3L205.3 224l229.5 0-41.4-41.4c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L434.7 288l-229.5 0 41.4 41.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0zM640 96V416c0 17.7-14.3 32-32 32s-32-14.3-32-32V96c0-17.7 14.3-32 32-32s32 14.3 32 32z"]},Q={prefix:"fas",iconName:"font",icon:[448,512,[],"f031","M254 52.8C249.3 40.3 237.3 32 224 32s-25.3 8.3-30 20.8L57.8 416H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32h-1.8l18-48H303.8l18 48H320c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H390.2L254 52.8zM279.8 304H168.2L224 155.1 279.8 304z"]},tt={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},et=tt,nt={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},rt={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},it={prefix:"fas",iconName:"diagram-project",icon:[576,512,["project-diagram"],"f542","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48V96H384V80c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H432c-26.5 0-48-21.5-48-48V160H192v16c0 1.7-.1 3.4-.3 5L272 288h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H272c-26.5 0-48-21.5-48-48V336c0-1.7 .1-3.4 .3-5L144 224H48c-26.5 0-48-21.5-48-48V80z"]},ot={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},at=ot,st={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},ut=st,lt={prefix:"fas",iconName:"quote-left",icon:[448,512,[8220,"quote-left-alt"],"f10d","M0 216C0 149.7 53.7 96 120 96h8c17.7 0 32 14.3 32 32s-14.3 32-32 32h-8c-30.9 0-56 25.1-56 56v8h64c35.3 0 64 28.7 64 64v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V320 288 216zm256 0c0-66.3 53.7-120 120-120h8c17.7 0 32 14.3 32 32s-14.3 32-32 32h-8c-30.9 0-56 25.1-56 56v8h64c35.3 0 64 28.7 64 64v64c0 35.3-28.7 64-64 64H320c-35.3 0-64-28.7-64-64V320 288 216z"]},ct={prefix:"fas",iconName:"map",icon:[576,512,[128506,62072],"f279","M384 476.1L192 421.2V35.9L384 90.8V476.1zm32-1.2V88.4L543.1 37.5c15.8-6.3 32.9 5.3 32.9 22.3V394.6c0 9.8-6 18.6-15.1 22.3L416 474.8zM15.1 95.1L160 37.2V423.6L32.9 474.5C17.1 480.8 0 469.2 0 452.2V117.4c0-9.8 6-18.6 15.1-22.3z"]},ft={prefix:"fas",iconName:"rocket",icon:[512,512,[],"f135","M156.6 384.9L125.7 354c-8.5-8.5-11.5-20.8-7.7-32.2c3-8.9 7-20.5 11.8-33.8L24 288c-8.6 0-16.6-4.6-20.9-12.1s-4.2-16.7 .2-24.1l52.5-88.5c13-21.9 36.5-35.3 61.9-35.3l82.3 0c2.4-4 4.8-7.7 7.2-11.3C289.1-4.1 411.1-8.1 483.9 5.3c11.6 2.1 20.6 11.2 22.8 22.8c13.4 72.9 9.3 194.8-111.4 276.7c-3.5 2.4-7.3 4.8-11.3 7.2v82.3c0 25.4-13.4 49-35.3 61.9l-88.5 52.5c-7.4 4.4-16.6 4.5-24.1 .2s-12.1-12.2-12.1-20.9V380.8c-14.1 4.9-26.4 8.9-35.7 11.9c-11.2 3.6-23.4 .5-31.8-7.8zM384 168a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},ht={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},dt={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},pt={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z"]},gt={prefix:"fas",iconName:"calendar",icon:[448,512,[128197,128198],"f133","M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"]},vt={prefix:"fas",iconName:"book",icon:[448,512,[128212],"f02d","M96 0C43 0 0 43 0 96V416c0 53 43 96 96 96H384h32c17.7 0 32-14.3 32-32s-14.3-32-32-32V384c17.7 0 32-14.3 32-32V32c0-17.7-14.3-32-32-32H384 96zm0 384H352v64H96c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16zm16 48H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},mt={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},yt=mt,bt=mt,xt={prefix:"fas",iconName:"database",icon:[448,512,[],"f1c0","M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432V346.1z"]},_t={prefix:"fas",iconName:"brain",icon:[512,512,[129504],"f5dc","M184 0c30.9 0 56 25.1 56 56V456c0 30.9-25.1 56-56 56c-28.9 0-52.7-21.9-55.7-50.1c-5.2 1.4-10.7 2.1-16.3 2.1c-35.3 0-64-28.7-64-64c0-7.4 1.3-14.6 3.6-21.2C21.4 367.4 0 338.2 0 304c0-31.9 18.7-59.5 45.8-72.3C37.1 220.8 32 207 32 192c0-30.7 21.6-56.3 50.4-62.6C80.8 123.9 80 118 80 112c0-29.9 20.6-55.1 48.3-62.1C131.3 21.9 155.1 0 184 0zM328 0c28.9 0 52.6 21.9 55.7 49.9c27.8 7 48.3 32.1 48.3 62.1c0 6-.8 11.9-2.4 17.4c28.8 6.2 50.4 31.9 50.4 62.6c0 15-5.1 28.8-13.8 39.7C493.3 244.5 512 272.1 512 304c0 34.2-21.4 63.4-51.6 74.8c2.3 6.6 3.6 13.8 3.6 21.2c0 35.3-28.7 64-64 64c-5.6 0-11.1-.7-16.3-2.1c-3 28.2-26.8 50.1-55.7 50.1c-30.9 0-56-25.1-56-56V56c0-30.9 25.1-56 56-56z"]},wt={prefix:"fas",iconName:"building-columns",icon:[512,512,["bank","institution","museum","university"],"f19c","M243.4 2.6l-224 96c-14 6-21.8 21-18.7 35.8S16.8 160 32 160v8c0 13.3 10.7 24 24 24H456c13.3 0 24-10.7 24-24v-8c15.2 0 28.3-10.7 31.3-25.6s-4.8-29.9-18.7-35.8l-224-96c-8-3.4-17.2-3.4-25.2 0zM128 224H64V420.3c-.6 .3-1.2 .7-1.8 1.1l-48 32c-11.7 7.8-17 22.4-12.9 35.9S17.9 512 32 512H480c14.1 0 26.5-9.2 30.6-22.7s-1.1-28.1-12.9-35.9l-48-32c-.6-.4-1.2-.7-1.8-1.1V224H384V416H344V224H280V416H232V224H168V416H128V224zM256 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},St=wt,Et={prefix:"fas",iconName:"graduation-cap",icon:[640,512,[127891,"mortar-board"],"f19d","M320 32c-8.1 0-16.1 1.4-23.7 4.1L15.8 137.4C6.3 140.9 0 149.9 0 160s6.3 19.1 15.8 22.6l57.9 20.9C57.3 229.3 48 259.8 48 291.9v28.1c0 28.4-10.8 57.7-22.3 80.8c-6.5 13-13.9 25.8-22.5 37.6C0 442.7-.9 448.3 .9 453.4s6 8.9 11.2 10.2l64 16c4.2 1.1 8.7 .3 12.4-2s6.3-6.1 7.1-10.4c8.6-42.8 4.3-81.2-2.1-108.7C90.3 344.3 86 329.8 80 316.5V291.9c0-30.2 10.2-58.7 27.9-81.5c12.9-15.5 29.6-28 49.2-35.7l157-61.7c8.2-3.2 17.5 .8 20.7 9s-.8 17.5-9 20.7l-157 61.7c-12.4 4.9-23.3 12.4-32.2 21.6l159.6 57.6c7.6 2.7 15.6 4.1 23.7 4.1s16.1-1.4 23.7-4.1L624.2 182.6c9.5-3.4 15.8-12.5 15.8-22.6s-6.3-19.1-15.8-22.6L343.7 36.1C336.1 33.4 328.1 32 320 32zM128 408c0 35.3 86 72 192 72s192-36.7 192-72L496.7 262.6 354.5 314c-11.1 4-22.8 6-34.5 6s-23.5-2-34.5-6L143.3 262.6 128 408z"]},Tt=Et},55135:function(t,e,n){"use strict";n.d(e,{Z:function(){return _e}});var r=n(2262),i=n(66252),o=n(3577),a=n(49963);function s(t){return-1!==[null,void 0].indexOf(t)}function u(t,e,n){const{object:o,valueProp:a,mode:u}=(0,r.BK)(t),l=(0,i.FN)().proxy,c=n.iv,f=(t,n=!0)=>{c.value=d(t);const r=h(t);e.emit("change",r,l),n&&(e.emit("input",r),e.emit("update:modelValue",r))},h=t=>o.value||s(t)?t:Array.isArray(t)?t.map((t=>t[a.value])):t[a.value],d=t=>s(t)?"single"===u.value?{}:[]:t;return{update:f}}function l(t,e){const{value:n,modelValue:o,mode:a,valueProp:s}=(0,r.BK)(t),u=(0,r.iH)("single"!==a.value?[]:{}),l=(0,i.Fl)((()=>o&&void 0!==o.value?o.value:n.value)),c=(0,i.Fl)((()=>"single"===a.value?u.value[s.value]:u.value.map((t=>t[s.value])))),f=(0,i.Fl)((()=>"single"!==a.value?u.value.map((t=>t[s.value])).join(","):u.value[s.value]));return{iv:u,internalValue:u,ev:l,externalValue:l,textValue:f,plainValue:c}}function c(t,e,n){const{regex:o}=(0,r.BK)(t),a=(0,i.FN)().proxy,s=n.isOpen,u=n.open,l=(0,r.iH)(null),c=()=>{l.value=""},f=t=>{l.value=t.target.value},h=t=>{if(o&&o.value){let e=o.value;"string"===typeof e&&(e=new RegExp(e)),t.key.match(e)||t.preventDefault()}},d=t=>{if(o&&o.value){let e=t.clipboardData||window.clipboardData,n=e.getData("Text"),r=o.value;"string"===typeof r&&(r=new RegExp(r)),n.split("").every((t=>!!t.match(r)))||t.preventDefault()}e.emit("paste",t,a)};return(0,i.YP)(l,(t=>{!s.value&&t&&u(),e.emit("search-change",t,a)})),{search:l,clearSearch:c,handleSearchInput:f,handleKeypress:h,handlePaste:d}}function f(t,e,n){const{groupSelect:i,mode:o,groups:a,disabledProp:s}=(0,r.BK)(t),u=(0,r.iH)(null),l=t=>{void 0===t||null!==t&&t[s.value]||a.value&&t&&t.group&&("single"===o.value||!i.value)||(u.value=t)},c=()=>{l(null)};return{pointer:u,setPointer:l,clearPointer:c}}function h(t,e=!0){return e?String(t).toLowerCase().trim():String(t).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function d(t){return"[object Object]"===Object.prototype.toString.call(t)}function p(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every((function(t,e){return t===n[e]}))}function g(t,e,n){const{options:o,mode:a,trackBy:u,limit:l,hideSelected:c,createTag:f,createOption:g,label:v,appendNewTag:m,appendNewOption:y,multipleLabel:b,object:x,loading:_,delay:w,resolveOnLoad:S,minChars:E,filterResults:T,clearOnSearch:k,clearOnSelect:C,valueProp:M,allowAbsent:A,groupLabel:I,canDeselect:O,max:D,strict:P,closeOnSelect:L,closeOnDeselect:N,groups:R,reverse:j,infinite:F,groupOptions:B,groupHideEmpty:z,groupSelect:Z,onCreate:U,disabledProp:H,searchStart:$,searchFilter:G}=(0,r.BK)(t),W=(0,i.FN)().proxy,V=n.iv,Y=n.ev,X=n.search,q=n.clearSearch,K=n.update,J=n.pointer,Q=n.setPointer,tt=n.clearPointer,et=n.focus,nt=n.deactivate,rt=n.close,it=n.localize,ot=(0,r.iH)([]),at=(0,r.iH)([]),st=(0,r.iH)(!1),ut=(0,r.iH)(null),lt=(0,r.iH)(F.value&&-1===l.value?10:l.value),ct=(0,i.Fl)((()=>f.value||g.value||!1)),ft=(0,i.Fl)((()=>void 0!==m.value?m.value:void 0===y.value||y.value)),ht=(0,i.Fl)((()=>{if(R.value){let t=gt.value||[],e=[];return t.forEach((t=>{Yt(t[B.value]).forEach((n=>{e.push(Object.assign({},n,t[H.value]?{[H.value]:!0}:{}))}))})),e}{let t=Yt(at.value||[]);return ot.value.length&&(t=t.concat(ot.value)),t}})),dt=(0,i.Fl)((()=>{let t=ht.value;return j.value&&(t=t.reverse()),wt.value.length&&(t=wt.value.concat(t)),Vt(t)})),pt=(0,i.Fl)((()=>{let t=dt.value;return lt.value>0&&(t=t.slice(0,lt.value)),t})),gt=(0,i.Fl)((()=>{if(!R.value)return[];let t=[],e=at.value||[];return ot.value.length&&t.push({[I.value]:" ",[B.value]:[...ot.value],__CREATE__:!0}),t.concat(e)})),vt=(0,i.Fl)((()=>{let t=[...gt.value].map((t=>({...t})));return wt.value.length&&(t[0]&&t[0].__CREATE__?t[0][B.value]=[...wt.value,...t[0][B.value]]:t=[{[I.value]:" ",[B.value]:[...wt.value],__CREATE__:!0}].concat(t)),t})),mt=(0,i.Fl)((()=>{if(!R.value)return[];let t=vt.value;return Wt((t||[]).map(((t,e)=>{const n=Yt(t[B.value]);return{...t,index:e,group:!0,[B.value]:Vt(n,!1).map((e=>Object.assign({},e,t[H.value]?{[H.value]:!0}:{}))),__VISIBLE__:Vt(n).map((e=>Object.assign({},e,t[H.value]?{[H.value]:!0}:{})))}})))})),yt=(0,i.Fl)((()=>{switch(a.value){case"single":return!s(V.value[M.value]);case"multiple":case"tags":return!s(V.value)&&V.value.length>0}})),bt=(0,i.Fl)((()=>void 0!==b&&void 0!==b.value?b.value(V.value,W):V.value&&V.value.length>1?`${V.value.length} options selected`:"1 option selected")),xt=(0,i.Fl)((()=>!ht.value.length&&!st.value&&!wt.value.length)),_t=(0,i.Fl)((()=>ht.value.length>0&&0==pt.value.length&&(X.value&&R.value||!R.value))),wt=(0,i.Fl)((()=>!1!==ct.value&&X.value?-1!==Ht(X.value)?[]:[{[M.value]:X.value,[St.value[0]]:X.value,[v.value]:X.value,__CREATE__:!0}]:[])),St=(0,i.Fl)((()=>u.value?Array.isArray(u.value)?u.value:[u.value]:[v.value])),Et=(0,i.Fl)((()=>{switch(a.value){case"single":return null;case"multiple":case"tags":return[]}})),Tt=(0,i.Fl)((()=>_.value||st.value)),kt=t=>{switch("object"!==typeof t&&(t=Ut(t)),a.value){case"single":K(t);break;case"multiple":case"tags":K(V.value.concat(t));break}e.emit("select",Mt(t),t,W)},Ct=t=>{switch("object"!==typeof t&&(t=Ut(t)),a.value){case"single":Ot();break;case"tags":case"multiple":K(Array.isArray(t)?V.value.filter((e=>-1===t.map((t=>t[M.value])).indexOf(e[M.value]))):V.value.filter((e=>e[M.value]!=t[M.value])));break}e.emit("deselect",Mt(t),t,W)},Mt=t=>x.value?t:t[M.value],At=t=>{Ct(t)},It=(t,e)=>{0===e.button?At(t):e.preventDefault()},Ot=()=>{K(Et.value),e.emit("clear",W)},Dt=t=>{if(void 0!==t.group)return"single"!==a.value&&(Zt(t[B.value])&&t[B.value].length);switch(a.value){case"single":return!s(V.value)&&V.value[M.value]==t[M.value];case"tags":case"multiple":return!s(V.value)&&-1!==V.value.map((t=>t[M.value])).indexOf(t[M.value])}},Pt=t=>!0===t[H.value],Lt=()=>!(void 0===D||-1===D.value||!yt.value&&D.value>0)&&V.value.length>=D.value,Nt=t=>{if(!Pt(t))return U&&U.value&&!Dt(t)&&t.__CREATE__&&(t={...t},delete t.__CREATE__,t=U.value(t,W),t instanceof Promise)?(st.value=!0,void t.then((t=>{st.value=!1,Rt(t)}))):void Rt(t)},Rt=t=>{switch(t.__CREATE__&&(t={...t},delete t.__CREATE__),a.value){case"single":if(t&&Dt(t))return O.value&&Ct(t),void(N.value&&(tt(),rt()));t&&Ft(t),C.value&&q(),L.value&&(tt(),rt()),t&&kt(t);break;case"multiple":if(t&&Dt(t))return Ct(t),void(N.value&&(tt(),rt()));if(Lt())return void e.emit("max",W);t&&(Ft(t),kt(t)),C.value&&q(),c.value&&tt(),L.value&&rt();break;case"tags":if(t&&Dt(t))return Ct(t),void(N.value&&(tt(),rt()));if(Lt())return void e.emit("max",W);t&&Ft(t),C.value&&q(),t&&kt(t),c.value&&tt(),L.value&&rt();break}L.value||et()},jt=t=>{if(!Pt(t)&&"single"!==a.value&&Z.value){switch(a.value){case"multiple":case"tags":zt(t[B.value])?Ct(t[B.value]):kt(t[B.value].filter((t=>-1===V.value.map((t=>t[M.value])).indexOf(t[M.value]))).filter((t=>!t[H.value])).filter(((t,e)=>V.value.length+1+e<=D.value||-1===D.value))),c.value&&J.value&&Q(mt.value.filter((t=>!t[H.value]))[J.value.index]);break}L.value&&nt()}},Ft=t=>{void 0===Ut(t[M.value])&&ct.value&&(e.emit("tag",t[M.value],W),e.emit("option",t[M.value],W),e.emit("create",t[M.value],W),ft.value&&Gt(t),q())},Bt=()=>{"single"!==a.value&&kt(pt.value.filter((t=>!t.disabled&&!Dt(t))))},zt=t=>void 0===t.find((t=>!Dt(t)&&!t[H.value])),Zt=t=>void 0===t.find((t=>!Dt(t))),Ut=t=>ht.value[ht.value.map((t=>String(t[M.value]))).indexOf(String(t))],Ht=t=>ht.value.findIndex((e=>St.value.some((n=>(parseInt(e[n])==e[n]?parseInt(e[n]):e[n])===(parseInt(t)==t?parseInt(t):t))))),$t=t=>-1!==["tags","multiple"].indexOf(a.value)&&c.value&&Dt(t),Gt=t=>{ot.value.push(t)},Wt=t=>z.value?t.filter((t=>X.value?t.__VISIBLE__.length:t[B.value].length)):t.filter((t=>!X.value||t.__VISIBLE__.length)),Vt=(t,e=!0)=>{let n=t;if(X.value&&T.value){let t=G.value;t||(t=(t,e,n)=>St.value.some((n=>{let r=h(it(t[n]),P.value);return $.value?r.startsWith(h(e,P.value)):-1!==r.indexOf(h(e,P.value))}))),n=n.filter((e=>t(e,X.value,W)))}return c.value&&e&&(n=n.filter((t=>!$t(t)))),n},Yt=t=>{let e=t;return d(e)&&(e=Object.keys(e).map((t=>{let n=e[t];return{[M.value]:t,[St.value[0]]:n,[v.value]:n}}))),e=e.map((t=>"object"===typeof t?t:{[M.value]:t,[St.value[0]]:t,[v.value]:t})),e},Xt=()=>{s(Y.value)||(V.value=Qt(Y.value))},qt=t=>(st.value=!0,new Promise(((e,n)=>{o.value(X.value,W).then((e=>{at.value=e||[],"function"==typeof t&&t(e),st.value=!1})).catch((t=>{console.error(t),at.value=[],st.value=!1})).finally((()=>{e()}))}))),Kt=()=>{if(yt.value)if("single"===a.value){let t=Ut(V.value[M.value]);if(void 0!==t){let e=t[v.value];V.value[v.value]=e,x.value&&(Y.value[v.value]=e)}}else V.value.forEach(((t,e)=>{let n=Ut(V.value[e][M.value]);if(void 0!==n){let t=n[v.value];V.value[e][v.value]=t,x.value&&(Y.value[e][v.value]=t)}}))},Jt=t=>{qt(t)},Qt=t=>s(t)?"single"===a.value?{}:[]:x.value?t:"single"===a.value?Ut(t)||(A.value?{[v.value]:t,[M.value]:t,[St.value[0]]:t}:{}):t.filter((t=>!!Ut(t)||A.value)).map((t=>Ut(t)||{[v.value]:t,[M.value]:t,[St.value[0]]:t})),te=()=>{ut.value=(0,i.YP)(X,(t=>{t.length<E.value||!t&&0!==E.value||(st.value=!0,k.value&&(at.value=[]),setTimeout((()=>{t==X.value&&o.value(X.value,W).then((e=>{t!=X.value&&X.value||(at.value=e,J.value=pt.value.filter((t=>!0!==t[H.value]))[0]||null,st.value=!1)})).catch((t=>{console.error(t)}))}),w.value))}),{flush:"sync"})};if("single"!==a.value&&!s(Y.value)&&!Array.isArray(Y.value))throw new Error(`v-model must be an array when using "${a.value}" mode`);return o&&"function"==typeof o.value?S.value?qt(Xt):1==x.value&&Xt():(at.value=o.value,Xt()),w.value>-1&&te(),(0,i.YP)(w,((t,e)=>{ut.value&&ut.value(),t>=0&&te()})),(0,i.YP)(Y,(t=>{if(s(t))K(Qt(t),!1);else switch(a.value){case"single":(x.value?t[M.value]!=V.value[M.value]:t!=V.value[M.value])&&K(Qt(t),!1);break;case"multiple":case"tags":p(x.value?t.map((t=>t[M.value])):t,V.value.map((t=>t[M.value])))||K(Qt(t),!1);break}}),{deep:!0}),(0,i.YP)(o,((e,n)=>{"function"===typeof t.options?S.value&&(!n||e&&e.toString()!==n.toString())&&qt():(at.value=t.options,Object.keys(V.value).length||Xt(),Kt())})),(0,i.YP)(v,Kt),(0,i.YP)(l,((t,e)=>{lt.value=F.value&&-1===t?10:t})),{pfo:dt,fo:pt,filteredOptions:pt,hasSelected:yt,multipleLabelText:bt,eo:ht,extendedOptions:ht,eg:gt,extendedGroups:gt,fg:mt,filteredGroups:mt,noOptions:xt,noResults:_t,resolving:st,busy:Tt,offset:lt,select:kt,deselect:Ct,remove:At,selectAll:Bt,clear:Ot,isSelected:Dt,isDisabled:Pt,isMax:Lt,getOption:Ut,handleOptionClick:Nt,handleGroupClick:jt,handleTagRemove:It,refreshOptions:Jt,resolveOptions:qt,refreshLabels:Kt}}function v(t,e,n){const{valueProp:o,showOptions:a,searchable:s,groupLabel:u,groups:l,mode:c,groupSelect:f,disabledProp:h,groupOptions:d}=(0,r.BK)(t),p=n.fo,g=n.fg,v=n.handleOptionClick,m=n.handleGroupClick,y=n.search,b=n.pointer,x=n.setPointer,_=n.clearPointer,w=n.multiselect,S=n.isOpen,E=(0,i.Fl)((()=>p.value.filter((t=>!t[h.value])))),T=(0,i.Fl)((()=>g.value.filter((t=>!t[h.value])))),k=(0,i.Fl)((()=>"single"!==c.value&&f.value)),C=(0,i.Fl)((()=>b.value&&b.value.group)),M=(0,i.Fl)((()=>U(b.value))),A=(0,i.Fl)((()=>{const t=C.value?b.value:U(b.value),e=T.value.map((t=>t[u.value])).indexOf(t[u.value]);let n=T.value[e-1];return void 0===n&&(n=O.value),n})),I=(0,i.Fl)((()=>{let t=T.value.map((t=>t.label)).indexOf(C.value?b.value[u.value]:U(b.value)[u.value])+1;return T.value.length<=t&&(t=0),T.value[t]})),O=(0,i.Fl)((()=>[...T.value].slice(-1)[0])),D=(0,i.Fl)((()=>b.value.__VISIBLE__.filter((t=>!t[h.value]))[0])),P=(0,i.Fl)((()=>{const t=M.value.__VISIBLE__.filter((t=>!t[h.value]));return t[t.map((t=>t[o.value])).indexOf(b.value[o.value])-1]})),L=(0,i.Fl)((()=>{const t=U(b.value).__VISIBLE__.filter((t=>!t[h.value]));return t[t.map((t=>t[o.value])).indexOf(b.value[o.value])+1]})),N=(0,i.Fl)((()=>[...A.value.__VISIBLE__.filter((t=>!t[h.value]))].slice(-1)[0])),R=(0,i.Fl)((()=>[...O.value.__VISIBLE__.filter((t=>!t[h.value]))].slice(-1)[0])),j=t=>!(!b.value||!(!t.group&&b.value[o.value]===t[o.value]||void 0!==t.group&&b.value[u.value]===t[u.value]))||void 0,F=()=>{x(E.value[0]||null)},B=()=>{b.value&&!0!==b.value[h.value]&&(C.value?m(b.value):v(b.value))},z=()=>{if(null===b.value)x((l.value&&k.value?T.value[0].__CREATE__?E.value[0]:T.value[0]:E.value[0])||null);else if(l.value&&k.value){let t=C.value?D.value:L.value;void 0===t&&(t=I.value,t.__CREATE__&&(t=t[d.value][0])),x(t||null)}else{let t=E.value.map((t=>t[o.value])).indexOf(b.value[o.value])+1;E.value.length<=t&&(t=0),x(E.value[t]||null)}(0,i.Y3)((()=>{H()}))},Z=()=>{if(null===b.value){let t=E.value[E.value.length-1];l.value&&k.value&&(t=R.value,void 0===t&&(t=O.value)),x(t||null)}else if(l.value&&k.value){let t=C.value?N.value:P.value;void 0===t&&(t=C.value?A.value:M.value,t.__CREATE__&&(t=N.value,void 0===t&&(t=A.value))),x(t||null)}else{let t=E.value.map((t=>t[o.value])).indexOf(b.value[o.value])-1;t<0&&(t=E.value.length-1),x(E.value[t]||null)}(0,i.Y3)((()=>{H()}))},U=t=>T.value.find((e=>-1!==e.__VISIBLE__.map((t=>t[o.value])).indexOf(t[o.value]))),H=()=>{let t=w.value.querySelector("[data-pointed]");if(!t)return;let e=t.parentElement.parentElement;l.value&&(e=C.value?t.parentElement.parentElement.parentElement:t.parentElement.parentElement.parentElement.parentElement),t.offsetTop+t.offsetHeight>e.clientHeight+e.scrollTop&&(e.scrollTop=t.offsetTop+t.offsetHeight-e.clientHeight),t.offsetTop<e.scrollTop&&(e.scrollTop=t.offsetTop)};return(0,i.YP)(y,(t=>{s.value&&(t.length&&a.value?F():_())})),(0,i.YP)(S,(t=>{if(t){let t=w.value.querySelectorAll("[data-selected]")[0];if(!t)return;let e=t.parentElement.parentElement;(0,i.Y3)((()=>{e.scrollTop>0||(e.scrollTop=t.offsetTop)}))}})),{pointer:b,canPointGroups:k,isPointed:j,setPointerFirst:F,selectPointer:B,forwardPointer:z,backwardPointer:Z}}function m(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function y(t){var e=m(t).Element;return t instanceof e||t instanceof Element}function b(t){var e=m(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function x(t){if("undefined"===typeof ShadowRoot)return!1;var e=m(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var _=Math.max,w=Math.min,S=Math.round;function E(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function T(){return!/^((?!chrome|android).)*safari/i.test(E())}function k(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&b(t)&&(i=t.offsetWidth>0&&S(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&S(r.height)/t.offsetHeight||1);var a=y(t)?m(t):window,s=a.visualViewport,u=!T()&&n,l=(r.left+(u&&s?s.offsetLeft:0))/i,c=(r.top+(u&&s?s.offsetTop:0))/o,f=r.width/i,h=r.height/o;return{width:f,height:h,top:c,right:l+f,bottom:c+h,left:l,x:l,y:c}}function C(t){var e=m(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function M(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function A(t){return t!==m(t)&&b(t)?M(t):C(t)}function I(t){return t?(t.nodeName||"").toLowerCase():null}function O(t){return((y(t)?t.ownerDocument:t.document)||window.document).documentElement}function D(t){return k(O(t)).left+C(t).scrollLeft}function P(t){return m(t).getComputedStyle(t)}function L(t){var e=P(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function N(t){var e=t.getBoundingClientRect(),n=S(e.width)/t.offsetWidth||1,r=S(e.height)/t.offsetHeight||1;return 1!==n||1!==r}function R(t,e,n){void 0===n&&(n=!1);var r=b(e),i=b(e)&&N(e),o=O(e),a=k(t,i,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==I(e)||L(o))&&(s=A(e)),b(e)?(u=k(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):o&&(u.x=D(o))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function j(t){var e=k(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function F(t){return"html"===I(t)?t:t.assignedSlot||t.parentNode||(x(t)?t.host:null)||O(t)}function B(t){return["html","body","#document"].indexOf(I(t))>=0?t.ownerDocument.body:b(t)&&L(t)?t:B(F(t))}function z(t,e){var n;void 0===e&&(e=[]);var r=B(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),o=m(r),a=i?[o].concat(o.visualViewport||[],L(r)?r:[]):r,s=e.concat(a);return i?s:s.concat(z(F(a)))}function Z(t){return["table","td","th"].indexOf(I(t))>=0}function U(t){return b(t)&&"fixed"!==P(t).position?t.offsetParent:null}function H(t){var e=/firefox/i.test(E()),n=/Trident/i.test(E());if(n&&b(t)){var r=P(t);if("fixed"===r.position)return null}var i=F(t);x(i)&&(i=i.host);while(b(i)&&["html","body"].indexOf(I(i))<0){var o=P(i);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return i;i=i.parentNode}return null}function $(t){var e=m(t),n=U(t);while(n&&Z(n)&&"static"===P(n).position)n=U(n);return n&&("html"===I(n)||"body"===I(n)&&"static"===P(n).position)?e:n||H(t)||e}var G="top",W="bottom",V="right",Y="left",X="auto",q=[G,W,V,Y],K="start",J="end",Q="clippingParents",tt="viewport",et="popper",nt="reference",rt=q.reduce((function(t,e){return t.concat([e+"-"+K,e+"-"+J])}),[]),it=[].concat(q,[X]).reduce((function(t,e){return t.concat([e,e+"-"+K,e+"-"+J])}),[]),ot="beforeRead",at="read",st="afterRead",ut="beforeMain",lt="main",ct="afterMain",ft="beforeWrite",ht="write",dt="afterWrite",pt=[ot,at,st,ut,lt,ct,ft,ht,dt];function gt(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name);var o=[].concat(t.requires||[],t.requiresIfExists||[]);o.forEach((function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||i(t)})),r}function vt(t){var e=gt(t);return pt.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}function mt(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}function yt(t){var e=t.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}function bt(t,e){var n=m(t),r=O(t),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;var l=T();(l||!l&&"fixed"===e)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s+D(t),y:u}}function xt(t){var e,n=O(t),r=C(t),i=null==(e=t.ownerDocument)?void 0:e.body,o=_(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=_(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+D(t),u=-r.scrollTop;return"rtl"===P(i||n).direction&&(s+=_(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}function _t(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&x(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function wt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function St(t,e){var n=k(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Et(t,e,n){return e===tt?wt(bt(t,n)):y(e)?St(e,n):wt(xt(O(t)))}function Tt(t){var e=z(F(t)),n=["absolute","fixed"].indexOf(P(t).position)>=0,r=n&&b(t)?$(t):t;return y(r)?e.filter((function(t){return y(t)&&_t(t,r)&&"body"!==I(t)})):[]}function kt(t,e,n,r){var i="clippingParents"===e?Tt(t):[].concat(e),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(e,n){var i=Et(t,n,r);return e.top=_(i.top,e.top),e.right=w(i.right,e.right),e.bottom=w(i.bottom,e.bottom),e.left=_(i.left,e.left),e}),Et(t,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ct(t){return t.split("-")[0]}function Mt(t){return t.split("-")[1]}function At(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function It(t){var e,n=t.reference,r=t.element,i=t.placement,o=i?Ct(i):null,a=i?Mt(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case G:e={x:s,y:n.y-r.height};break;case W:e={x:s,y:n.y+n.height};break;case V:e={x:n.x+n.width,y:u};break;case Y:e={x:n.x-r.width,y:u};break;default:e={x:n.x,y:n.y}}var l=o?At(o):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case K:e[l]=e[l]-(n[c]/2-r[c]/2);break;case J:e[l]=e[l]+(n[c]/2-r[c]/2);break}}return e}function Ot(){return{top:0,right:0,bottom:0,left:0}}function Dt(t){return Object.assign({},Ot(),t)}function Pt(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function Lt(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=void 0===r?t.placement:r,o=n.strategy,a=void 0===o?t.strategy:o,s=n.boundary,u=void 0===s?Q:s,l=n.rootBoundary,c=void 0===l?tt:l,f=n.elementContext,h=void 0===f?et:f,d=n.altBoundary,p=void 0!==d&&d,g=n.padding,v=void 0===g?0:g,m=Dt("number"!==typeof v?v:Pt(v,q)),b=h===et?nt:et,x=t.rects.popper,_=t.elements[p?b:h],w=kt(y(_)?_:_.contextElement||O(t.elements.popper),u,c,a),S=k(t.elements.reference),E=It({reference:S,element:x,strategy:"absolute",placement:i}),T=wt(Object.assign({},x,E)),C=h===et?T:S,M={top:w.top-C.top+m.top,bottom:C.bottom-w.bottom+m.bottom,left:w.left-C.left+m.left,right:C.right-w.right+m.right},A=t.modifiersData.offset;if(h===et&&A){var I=A[i];Object.keys(M).forEach((function(t){var e=[V,W].indexOf(t)>=0?1:-1,n=[G,W].indexOf(t)>=0?"y":"x";M[t]+=I[n]*e}))}return M}var Nt={placement:"bottom",modifiers:[],strategy:"absolute"};function Rt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"===typeof t.getBoundingClientRect)}))}function jt(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,r=void 0===n?[]:n,i=e.defaultOptions,o=void 0===i?Nt:i;return function(t,e,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Nt,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},a=[],s=!1,u={state:i,setOptions:function(n){var a="function"===typeof n?n(i.options):n;c(),i.options=Object.assign({},o,i.options,a),i.scrollParents={reference:y(t)?z(t):t.contextElement?z(t.contextElement):[],popper:z(e)};var s=vt(yt([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter((function(t){return t.enabled})),l(),u.update()},forceUpdate:function(){if(!s){var t=i.elements,e=t.reference,n=t.popper;if(Rt(e,n)){i.rects={reference:R(e,$(n),"fixed"===i.options.strategy),popper:j(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(t){return i.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,l=o.options,c=void 0===l?{}:l,f=o.name;"function"===typeof a&&(i=a({state:i,options:c,name:f,instance:u})||i)}else i.reset=!1,r=-1}}},update:mt((function(){return new Promise((function(t){u.forceUpdate(),t(i)}))})),destroy:function(){c(),s=!0}};if(!Rt(t,e))return u;function l(){i.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,r=void 0===n?{}:n,o=t.effect;if("function"===typeof o){var s=o({state:i,name:e,instance:u,options:r}),l=function(){};a.push(s||l)}}))}function c(){a.forEach((function(t){return t()})),a=[]}return u.setOptions(n).then((function(t){!s&&n.onFirstUpdate&&n.onFirstUpdate(t)})),u}}var Ft={passive:!0};function Bt(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=m(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&l.forEach((function(t){t.addEventListener("scroll",n.update,Ft)})),s&&u.addEventListener("resize",n.update,Ft),function(){o&&l.forEach((function(t){t.removeEventListener("scroll",n.update,Ft)})),s&&u.removeEventListener("resize",n.update,Ft)}}var zt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Bt,data:{}};function Zt(t){var e=t.state,n=t.name;e.modifiersData[n]=It({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Ut={name:"popperOffsets",enabled:!0,phase:"read",fn:Zt,data:{}},Ht={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $t(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:S(n*i)/i||0,y:S(r*i)/i||0}}function Gt(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,a=t.offsets,s=t.position,u=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,f=t.isFixed,h=a.x,d=void 0===h?0:h,p=a.y,g=void 0===p?0:p,v="function"===typeof c?c({x:d,y:g}):{x:d,y:g};d=v.x,g=v.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),x=Y,_=G,w=window;if(l){var S=$(n),E="clientHeight",T="clientWidth";if(S===m(n)&&(S=O(n),"static"!==P(S).position&&"absolute"===s&&(E="scrollHeight",T="scrollWidth")),i===G||(i===Y||i===V)&&o===J){_=W;var k=f&&S===w&&w.visualViewport?w.visualViewport.height:S[E];g-=k-r.height,g*=u?1:-1}if(i===Y||(i===G||i===W)&&o===J){x=V;var C=f&&S===w&&w.visualViewport?w.visualViewport.width:S[T];d-=C-r.width,d*=u?1:-1}}var M,A=Object.assign({position:s},l&&Ht),I=!0===c?$t({x:d,y:g},m(n)):{x:d,y:g};return d=I.x,g=I.y,u?Object.assign({},A,(M={},M[_]=b?"0":"",M[x]=y?"0":"",M.transform=(w.devicePixelRatio||1)<=1?"translate("+d+"px, "+g+"px)":"translate3d("+d+"px, "+g+"px, 0)",M)):Object.assign({},A,(e={},e[_]=b?g+"px":"",e[x]=y?d+"px":"",e.transform="",e))}function Wt(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,l={placement:Ct(e.placement),variation:Mt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Gt(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Gt(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Vt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Wt,data:{}};function Yt(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];b(i)&&I(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))}function Xt(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]),a=o.reduce((function(t,e){return t[e]="",t}),{});b(r)&&I(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}}var qt={name:"applyStyles",enabled:!0,phase:"write",fn:Yt,effect:Xt,requires:["computeStyles"]},Kt=[zt,Ut,Vt,qt],Jt=jt({defaultModifiers:Kt});function Qt(t){return"x"===t?"y":"x"}function te(t,e,n){return _(t,w(e,n))}function ee(t,e,n){var r=te(t,e,n);return r>n?n:r}function ne(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,f=n.padding,h=n.tether,d=void 0===h||h,p=n.tetherOffset,g=void 0===p?0:p,v=Lt(e,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),m=Ct(e.placement),y=Mt(e.placement),b=!y,x=At(m),S=Qt(x),E=e.modifiersData.popperOffsets,T=e.rects.reference,k=e.rects.popper,C="function"===typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,M="number"===typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(E){if(o){var O,D="y"===x?G:Y,P="y"===x?W:V,L="y"===x?"height":"width",N=E[x],R=N+v[D],F=N-v[P],B=d?-k[L]/2:0,z=y===K?T[L]:k[L],Z=y===K?-k[L]:-T[L],U=e.elements.arrow,H=d&&U?j(U):{width:0,height:0},X=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ot(),q=X[D],J=X[P],Q=te(0,T[L],H[L]),tt=b?T[L]/2-B-Q-q-M.mainAxis:z-Q-q-M.mainAxis,et=b?-T[L]/2+B+Q+J+M.mainAxis:Z+Q+J+M.mainAxis,nt=e.elements.arrow&&$(e.elements.arrow),rt=nt?"y"===x?nt.clientTop||0:nt.clientLeft||0:0,it=null!=(O=null==A?void 0:A[x])?O:0,ot=N+tt-it-rt,at=N+et-it,st=te(d?w(R,ot):R,N,d?_(F,at):F);E[x]=st,I[x]=st-N}if(s){var ut,lt="x"===x?G:Y,ct="x"===x?W:V,ft=E[S],ht="y"===S?"height":"width",dt=ft+v[lt],pt=ft-v[ct],gt=-1!==[G,Y].indexOf(m),vt=null!=(ut=null==A?void 0:A[S])?ut:0,mt=gt?dt:ft-T[ht]-k[ht]-vt+M.altAxis,yt=gt?ft+T[ht]+k[ht]-vt-M.altAxis:pt,bt=d&&gt?ee(mt,ft,yt):te(d?mt:dt,ft,d?yt:pt);E[S]=bt,I[S]=bt-ft}e.modifiersData[r]=I}}var re={name:"preventOverflow",enabled:!0,phase:"main",fn:ne,requiresIfExists:["offset"]},ie={left:"right",right:"left",bottom:"top",top:"bottom"};function oe(t){return t.replace(/left|right|bottom|top/g,(function(t){return ie[t]}))}var ae={start:"end",end:"start"};function se(t){return t.replace(/start|end/g,(function(t){return ae[t]}))}function ue(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,l=void 0===u?it:u,c=Mt(r),f=c?s?rt:rt.filter((function(t){return Mt(t)===c})):q,h=f.filter((function(t){return l.indexOf(t)>=0}));0===h.length&&(h=f);var d=h.reduce((function(e,n){return e[n]=Lt(t,{placement:n,boundary:i,rootBoundary:o,padding:a})[Ct(n)],e}),{});return Object.keys(d).sort((function(t,e){return d[t]-d[e]}))}function le(t){if(Ct(t)===X)return[];var e=oe(t);return[se(t),e,se(e)]}function ce(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,l=n.padding,c=n.boundary,f=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,p=void 0===d||d,g=n.allowedAutoPlacements,v=e.options.placement,m=Ct(v),y=m===v,b=u||(y||!p?[oe(v)]:le(v)),x=[v].concat(b).reduce((function(t,n){return t.concat(Ct(n)===X?ue(e,{placement:n,boundary:c,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),_=e.rects.reference,w=e.rects.popper,S=new Map,E=!0,T=x[0],k=0;k<x.length;k++){var C=x[k],M=Ct(C),A=Mt(C)===K,I=[G,W].indexOf(M)>=0,O=I?"width":"height",D=Lt(e,{placement:C,boundary:c,rootBoundary:f,altBoundary:h,padding:l}),P=I?A?V:Y:A?W:G;_[O]>w[O]&&(P=oe(P));var L=oe(P),N=[];if(o&&N.push(D[M]<=0),s&&N.push(D[P]<=0,D[L]<=0),N.every((function(t){return t}))){T=C,E=!1;break}S.set(C,N)}if(E)for(var R=p?3:1,j=function(t){var e=x.find((function(e){var n=S.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return T=e,"break"},F=R;F>0;F--){var B=j(F);if("break"===B)break}e.placement!==T&&(e.modifiersData[r]._skip=!0,e.placement=T,e.reset=!0)}}var fe={name:"flip",enabled:!0,phase:"main",fn:ce,requiresIfExists:["offset"],data:{_skip:!1}};function he(t,e,n){const{disabled:o,appendTo:a,appendToBody:s,openDirection:u}=(0,r.BK)(t),l=(0,i.FN)().proxy,c=n.multiselect,f=n.dropdown,h=(0,r.iH)(!1),d=(0,r.iH)(null),p=(0,r.iH)(null),g=(0,i.Fl)((()=>a.value||s.value)),v=(0,i.Fl)((()=>"top"===u.value&&"bottom"===p.value||"bottom"===u.value&&"top"!==p.value?"bottom":"top")),m=()=>{h.value||o.value||(h.value=!0,e.emit("open",l),g.value&&(0,i.Y3)((()=>{b()})))},y=()=>{h.value&&(h.value=!1,e.emit("close",l))},b=()=>{if(!d.value)return;let t=parseInt(window.getComputedStyle(f.value).borderTopWidth.replace("px","")),e=parseInt(window.getComputedStyle(f.value).borderBottomWidth.replace("px",""));d.value.setOptions((n=>({...n,modifiers:[...n.modifiers,{name:"offset",options:{offset:[0,-1*("top"===v.value?t:e)]}}]}))),d.value.update()},x=t=>{while(t&&t!==document.body){const e=getComputedStyle(t);if("fixed"===e.position)return!0;t=t.parentElement}return!1};return(0,i.bv)((()=>{g.value&&(d.value=Jt(c.value,f.value,{strategy:x(c.value)?"fixed":void 0,placement:u.value,modifiers:[re,fe,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:t})=>{t.styles.popper.width=`${t.rects.reference.width}px`},effect:({state:t})=>{t.elements.popper.style.width=`${t.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:t}){p.value=t.placement}}]}))})),(0,i.Jd)((()=>{g.value&&d.value&&(d.value.destroy(),d.value=null)})),{popper:d,isOpen:h,open:m,close:y,placement:v,updatePopper:b}}function de(t,e,n){const{searchable:o,disabled:a,clearOnBlur:s}=(0,r.BK)(t),u=n.input,l=n.open,c=n.close,f=n.clearSearch,h=n.isOpen,d=n.wrapper,p=n.tags,g=(0,r.iH)(!1),v=(0,r.iH)(!1),m=(0,i.Fl)((()=>o.value||a.value?-1:0)),y=()=>{o.value&&u.value.blur(),d.value.blur()},b=()=>{o.value&&!a.value&&u.value.focus()},x=(t=!0)=>{a.value||(g.value=!0,t&&l())},_=()=>{g.value=!1,setTimeout((()=>{g.value||(c(),s.value&&f())}),1)},w=t=>{t.target.closest("[data-tags]")&&"INPUT"!==t.target.nodeName||t.target.closest("[data-clear]")||x(v.value)},S=()=>{_()},E=()=>{_(),y()},T=t=>{v.value=!0,h.value&&(t.target.isEqualNode(d.value)||t.target.isEqualNode(p.value))?setTimeout((()=>{_()}),0):h.value||!document.activeElement.isEqualNode(d.value)&&!document.activeElement.isEqualNode(u.value)||x(),setTimeout((()=>{v.value=!1}),0)};return{tabindex:m,isActive:g,mouseClicked:v,blur:y,focus:b,activate:x,deactivate:_,handleFocusIn:w,handleFocusOut:S,handleCaretClick:E,handleMousedown:T}}function pe(t,e,n){const{mode:o,addTagOn:a,openDirection:s,searchable:u,showOptions:l,valueProp:c,groups:f,addOptionOn:h,createTag:d,createOption:p,reverse:g}=(0,r.BK)(t),v=(0,i.FN)().proxy,m=n.iv,y=n.update,b=n.deselect,x=n.search,_=n.setPointer,w=n.selectPointer,S=n.backwardPointer,E=n.forwardPointer,T=n.multiselect,k=n.wrapper,C=n.tags,M=n.isOpen,A=n.open,I=n.blur,O=n.fo,D=(0,i.Fl)((()=>d.value||p.value||!1)),P=(0,i.Fl)((()=>void 0!==a.value?a.value:void 0!==h.value?h.value:["enter"])),L=()=>{"tags"===o.value&&!l.value&&D.value&&u.value&&!f.value&&_(O.value[O.value.map((t=>t[c.value])).indexOf(x.value)])},N=t=>{let n,r;switch(e.emit("keydown",t,v),-1!==["ArrowLeft","ArrowRight","Enter"].indexOf(t.key)&&"tags"===o.value&&(n=[...T.value.querySelectorAll("[data-tags] > *")].filter((t=>t!==C.value)),r=n.findIndex((t=>t===document.activeElement))),t.key){case"Backspace":if("single"===o.value)return;if(u.value&&-1===[null,""].indexOf(x.value))return;if(0===m.value.length)return;let e=m.value.filter((t=>!t.disabled&&!1!==t.remove));e.length&&b(e[e.length-1]);break;case"Enter":if(t.preventDefault(),229===t.keyCode)return;if(-1!==r&&void 0!==r)return y([...m.value].filter(((t,e)=>e!==r))),void(r===n.length-1&&(n.length-1?n[n.length-2].focus():u.value?C.value.querySelector("input").focus():k.value.focus()));if(-1===P.value.indexOf("enter")&&D.value)return;L(),w();break;case" ":if(!D.value&&!u.value)return t.preventDefault(),L(),void w();if(!D.value)return!1;if(-1===P.value.indexOf("space")&&D.value)return;t.preventDefault(),L(),w();break;case"Tab":case";":case",":if(-1===P.value.indexOf(t.key.toLowerCase())||!D.value)return;L(),w(),t.preventDefault();break;case"Escape":I();break;case"ArrowUp":if(t.preventDefault(),!l.value)return;M.value||A(),S();break;case"ArrowDown":if(t.preventDefault(),!l.value)return;M.value||A(),E();break;case"ArrowLeft":if(u.value&&C.value&&C.value.querySelector("input").selectionStart||t.shiftKey||"tags"!==o.value||!m.value||!m.value.length)return;t.preventDefault(),-1===r?n[n.length-1].focus():r>0&&n[r-1].focus();break;case"ArrowRight":if(-1===r||t.shiftKey||"tags"!==o.value||!m.value||!m.value.length)return;t.preventDefault(),n.length>r+1?n[r+1].focus():u.value?C.value.querySelector("input").focus():u.value||k.value.focus();break}},R=t=>{e.emit("keyup",t,v)};return{handleKeydown:N,handleKeyup:R,preparePointer:L}}function ge(t,e,n){const{classes:o,disabled:a,showOptions:s,breakTags:u}=(0,r.BK)(t),l=n.isOpen,c=n.isPointed,f=n.isSelected,h=n.isDisabled,d=n.isActive,p=n.canPointGroups,g=n.resolving,v=n.fo,m=n.placement,y=(0,i.Fl)((()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...o.value}))),b=(0,i.Fl)((()=>!!(l.value&&s.value&&(!g.value||g.value&&v.value.length)))),x=(0,i.Fl)((()=>{const t=y.value;return{container:[t.container].concat(a.value?t.containerDisabled:[]).concat(b.value&&"top"===m.value?t.containerOpenTop:[]).concat(b.value&&"top"!==m.value?t.containerOpen:[]).concat(d.value?t.containerActive:[]),wrapper:t.wrapper,spacer:t.spacer,singleLabel:t.singleLabel,singleLabelText:t.singleLabelText,multipleLabel:t.multipleLabel,search:t.search,tags:t.tags,tag:[t.tag].concat(a.value?t.tagDisabled:[]),tagWrapper:[t.tagWrapper,u.value?t.tagWrapperBreak:null],tagDisabled:t.tagDisabled,tagRemove:t.tagRemove,tagRemoveIcon:t.tagRemoveIcon,tagsSearchWrapper:t.tagsSearchWrapper,tagsSearch:t.tagsSearch,tagsSearchCopy:t.tagsSearchCopy,placeholder:t.placeholder,caret:[t.caret].concat(l.value?t.caretOpen:[]),clear:t.clear,clearIcon:t.clearIcon,spinner:t.spinner,inifinite:t.inifinite,inifiniteSpinner:t.inifiniteSpinner,dropdown:[t.dropdown].concat("top"===m.value?t.dropdownTop:[]).concat(l.value&&s.value&&b.value?[]:t.dropdownHidden),options:[t.options].concat("top"===m.value?t.optionsTop:[]),group:t.group,groupLabel:e=>{let n=[t.groupLabel];return c(e)?n.push(f(e)?t.groupLabelSelectedPointed:t.groupLabelPointed):f(e)&&p.value?n.push(h(e)?t.groupLabelSelectedDisabled:t.groupLabelSelected):h(e)&&n.push(t.groupLabelDisabled),p.value&&n.push(t.groupLabelPointable),n},groupOptions:t.groupOptions,option:(e,n)=>{let r=[t.option];return c(e)?r.push(f(e)?t.optionSelectedPointed:t.optionPointed):f(e)?r.push(h(e)?t.optionSelectedDisabled:t.optionSelected):(h(e)||n&&h(n))&&r.push(t.optionDisabled),r},noOptions:t.noOptions,noResults:t.noResults,assist:t.assist,fakeInput:t.fakeInput}}));return{classList:x,showDropdown:b}}function ve(t,e,n){const{limit:o,infinite:a}=(0,r.BK)(t),s=n.isOpen,u=n.offset,l=n.search,c=n.pfo,f=n.eo,h=(0,r.iH)(null),d=(0,r.iH)(null),p=(0,i.Fl)((()=>u.value<c.value.length)),g=t=>{const{isIntersecting:e,target:n}=t[0];if(e){const t=n.offsetParent,e=t.scrollTop;u.value+=-1==o.value?10:o.value,(0,i.Y3)((()=>{t.scrollTop=e}))}},v=()=>{s.value&&u.value<c.value.length?h.value.observe(d.value):!s.value&&h.value&&h.value.disconnect()};return(0,i.YP)(s,(()=>{a.value&&v()})),(0,i.YP)(l,(()=>{a.value&&(u.value=o.value,v())}),{flush:"post"}),(0,i.YP)(f,(()=>{a.value&&v()}),{immediate:!1,flush:"post"}),(0,i.bv)((()=>{window&&window.IntersectionObserver&&(h.value=new IntersectionObserver(g))})),{hasMore:p,infiniteLoader:d}}function me(t,e,n){const{placeholder:o,id:a,valueProp:s,label:u,mode:l,groupLabel:c,aria:f,searchable:h}=(0,r.BK)(t),d=n.pointer,p=n.iv,g=n.hasSelected,v=n.multipleLabelText,m=(0,r.iH)(null),y=(0,i.Fl)((()=>{let t=[];return a&&a.value&&t.push(a.value),t.push("assist"),t.join("-")})),b=(0,i.Fl)((()=>{let t=[];return a&&a.value&&t.push(a.value),t.push("multiselect-options"),t.join("-")})),x=(0,i.Fl)((()=>{let t=[];if(a&&a.value&&t.push(a.value),d.value)return t.push(d.value.group?"multiselect-group":"multiselect-option"),t.push(d.value.group?d.value.index:d.value[s.value]),t.join("-")})),_=(0,i.Fl)((()=>o.value)),w=(0,i.Fl)((()=>"single"!==l.value)),S=(0,i.Fl)((()=>{let t="";return"single"===l.value&&g.value&&(t+=p.value[u.value]),"multiple"===l.value&&g.value&&(t+=v.value),"tags"===l.value&&g.value&&(t+=p.value.map((t=>t[u.value])).join(", ")),t})),E=(0,i.Fl)((()=>{let t={...f.value};return h.value&&(t["aria-labelledby"]=t["aria-labelledby"]?`${y.value} ${t["aria-labelledby"]}`:y.value,S.value&&t["aria-label"]&&(t["aria-label"]=`${S.value}, ${t["aria-label"]}`)),t})),T=t=>{let e=[];return a&&a.value&&e.push(a.value),e.push("multiselect-option"),e.push(t[s.value]),e.join("-")},k=t=>{let e=[];return a&&a.value&&e.push(a.value),e.push("multiselect-group"),e.push(t.index),e.join("-")},C=t=>{let e=[];return e.push(t),e.join(" ")},M=t=>{let e=[];return e.push(t),e.join(" ")},A=t=>`${t} ❎`;return(0,i.bv)((()=>{if(a&&a.value&&document&&document.querySelector){let t=document.querySelector(`[for="${a.value}"]`);m.value=t?t.innerText:null}})),{arias:E,ariaLabel:S,ariaAssist:y,ariaControls:b,ariaPlaceholder:_,ariaMultiselectable:w,ariaActiveDescendant:x,ariaOptionId:T,ariaOptionLabel:C,ariaGroupId:k,ariaGroupLabel:M,ariaTagLabel:A}}function ye(t,e,n){const{locale:i,fallbackLocale:o}=(0,r.BK)(t),a=t=>t&&"object"===typeof t?t&&t[i.value]?t[i.value]:t&&i.value&&t[i.value.toUpperCase()]?t[i.value.toUpperCase()]:t&&t[o.value]?t[o.value]:t&&o.value&&t[o.value.toUpperCase()]?t[o.value.toUpperCase()]:t&&Object.keys(t)[0]?t[Object.keys(t)[0]]:"":t;return{localize:a}}function be(t,e,n){const i=(0,r.iH)(null),o=(0,r.iH)(null),a=(0,r.iH)(null),s=(0,r.iH)(null),u=(0,r.iH)(null);return{multiselect:i,wrapper:o,tags:a,input:s,dropdown:u}}function xe(t,e,n,r={}){return n.forEach((n=>{n&&(r={...r,...n(t,e,r)})})),r}var _e={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup(t,e){return xe(t,e,[be,ye,l,f,he,c,u,de,g,ve,v,pe,ge,me])},beforeMount(){(this.$root.constructor?.version?.match(/^2\./)||2===this.vueVersionMs)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const we=["id","dir"],Se=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],Ee=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Te=["onKeyup","aria-label"],ke=["onClick"],Ce=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Me=["innerHTML"],Ae=["id"],Ie=["id"],Oe=["id","aria-label","aria-selected"],De=["data-pointed","onMouseenter","onMousedown"],Pe=["innerHTML"],Le=["aria-label"],Ne=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],Re=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],je=["innerHTML"],Fe=["innerHTML"],Be=["value"],ze=["name","value"],Ze=["name","value"],Ue=["id"];function He(t,e,n,r,s,u){return(0,i.wg)(),(0,i.iD)("div",{ref:"multiselect",class:(0,o.C_)(t.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:e[10]||(e[10]=(...e)=>t.handleFocusIn&&t.handleFocusIn(...e)),onFocusout:e[11]||(e[11]=(...e)=>t.handleFocusOut&&t.handleFocusOut(...e)),onKeyup:e[12]||(e[12]=(...e)=>t.handleKeyup&&t.handleKeyup(...e)),onKeydown:e[13]||(e[13]=(...e)=>t.handleKeydown&&t.handleKeydown(...e))},[(0,i._)("div",(0,i.dG)({class:t.classList.wrapper,onMousedown:e[9]||(e[9]=(...e)=>t.handleMousedown&&t.handleMousedown(...e)),ref:"wrapper",tabindex:t.tabindex,"aria-controls":n.searchable?void 0:t.ariaControls,"aria-placeholder":n.searchable?void 0:t.ariaPlaceholder,"aria-expanded":n.searchable?void 0:t.isOpen,"aria-activedescendant":n.searchable?void 0:t.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:t.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:t.arias),[(0,i.kq)(" Search "),"tags"!==n.mode&&n.searchable&&!n.disabled?((0,i.wg)(),(0,i.iD)("input",(0,i.dG)({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:e[0]||(e[0]=(...e)=>t.handleSearchInput&&t.handleSearchInput(...e)),onKeypress:e[1]||(e[1]=(...e)=>t.handleKeypress&&t.handleKeypress(...e)),onPaste:e[2]||(e[2]=(0,a.withModifiers)(((...e)=>t.handlePaste&&t.handlePaste(...e)),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,Ee)):(0,i.kq)("v-if",!0),(0,i.kq)(" Tags (with search) "),"tags"==n.mode?((0,i.wg)(),(0,i.iD)("div",{key:1,class:(0,o.C_)(t.classList.tags),"data-tags":""},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.iv,((e,r,s)=>(0,i.WI)(t.$slots,"tag",{option:e,handleTagRemove:t.handleTagRemove,disabled:n.disabled},(()=>[((0,i.wg)(),(0,i.iD)("span",{class:(0,o.C_)([t.classList.tag,e.disabled?t.classList.tagDisabled:null]),tabindex:"-1",onKeyup:(0,a.withKeys)((n=>t.handleTagRemove(e,n)),["enter"]),key:s,"aria-label":t.ariaTagLabel(t.localize(e[n.label]))},[(0,i._)("span",{class:(0,o.C_)(t.classList.tagWrapper)},(0,o.zw)(t.localize(e[n.label])),3),n.disabled||e.disabled?(0,i.kq)("v-if",!0):((0,i.wg)(),(0,i.iD)("span",{key:0,class:(0,o.C_)(t.classList.tagRemove),onClick:(0,a.withModifiers)((n=>t.handleTagRemove(e,n)),["stop"])},[(0,i._)("span",{class:(0,o.C_)(t.classList.tagRemoveIcon)},null,2)],10,ke))],42,Te))])))),256)),(0,i._)("div",{class:(0,o.C_)(t.classList.tagsSearchWrapper),ref:"tags"},[(0,i.kq)(" Used for measuring search width "),(0,i._)("span",{class:(0,o.C_)(t.classList.tagsSearchCopy)},(0,o.zw)(t.search),3),(0,i.kq)(" Actual search input "),n.searchable&&!n.disabled?((0,i.wg)(),(0,i.iD)("input",(0,i.dG)({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:e[3]||(e[3]=(...e)=>t.handleSearchInput&&t.handleSearchInput(...e)),onKeypress:e[4]||(e[4]=(...e)=>t.handleKeypress&&t.handleKeypress(...e)),onPaste:e[5]||(e[5]=(0,a.withModifiers)(((...e)=>t.handlePaste&&t.handlePaste(...e)),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,Ce)):(0,i.kq)("v-if",!0)],2)],2)):(0,i.kq)("v-if",!0),(0,i.kq)(" Single label "),"single"==n.mode&&t.hasSelected&&!t.search&&t.iv?(0,i.WI)(t.$slots,"singlelabel",{key:2,value:t.iv},(()=>[(0,i._)("div",{class:(0,o.C_)(t.classList.singleLabel)},[(0,i._)("span",{class:(0,o.C_)(t.classList.singleLabelText)},(0,o.zw)(t.localize(t.iv[n.label])),3)],2)])):(0,i.kq)("v-if",!0),(0,i.kq)(" Multiple label "),"multiple"==n.mode&&t.hasSelected&&!t.search?(0,i.WI)(t.$slots,"multiplelabel",{key:3,values:t.iv},(()=>[(0,i._)("div",{class:(0,o.C_)(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,Me)])):(0,i.kq)("v-if",!0),(0,i.kq)(" Placeholder "),!n.placeholder||t.hasSelected||t.search?(0,i.kq)("v-if",!0):(0,i.WI)(t.$slots,"placeholder",{key:4},(()=>[(0,i._)("div",{class:(0,o.C_)(t.classList.placeholder),"aria-hidden":"true"},(0,o.zw)(n.placeholder),3)])),(0,i.kq)(" Spinner "),n.loading||t.resolving?(0,i.WI)(t.$slots,"spinner",{key:5},(()=>[(0,i._)("span",{class:(0,o.C_)(t.classList.spinner),"aria-hidden":"true"},null,2)])):(0,i.kq)("v-if",!0),(0,i.kq)(" Clear "),t.hasSelected&&!n.disabled&&n.canClear&&!t.busy?(0,i.WI)(t.$slots,"clear",{key:6,clear:t.clear},(()=>[(0,i._)("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:(0,o.C_)(t.classList.clear),onClick:e[6]||(e[6]=(...e)=>t.clear&&t.clear(...e)),onKeyup:e[7]||(e[7]=(0,a.withKeys)(((...e)=>t.clear&&t.clear(...e)),["enter"]))},[(0,i._)("span",{class:(0,o.C_)(t.classList.clearIcon)},null,2)],34)])):(0,i.kq)("v-if",!0),(0,i.kq)(" Caret "),n.caret&&n.showOptions?(0,i.WI)(t.$slots,"caret",{key:7,handleCaretClick:t.handleCaretClick,isOpen:t.isOpen},(()=>[(0,i._)("span",{class:(0,o.C_)(t.classList.caret),onClick:e[8]||(e[8]=(...e)=>t.handleCaretClick&&t.handleCaretClick(...e)),"aria-hidden":"true"},null,2)])):(0,i.kq)("v-if",!0)],16,Se),(0,i.kq)(" Options "),((0,i.wg)(),(0,i.j4)(i.lR,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[(0,i._)("div",{id:`${n.id}-dropdown`,class:(0,o.C_)(t.classList.dropdown),tabindex:"-1",ref:"dropdown"},[(0,i.WI)(t.$slots,"beforelist",{options:t.fo}),(0,i._)("ul",{class:(0,o.C_)(t.classList.options),id:t.ariaControls,role:"listbox"},[n.groups?((0,i.wg)(!0),(0,i.iD)(i.HY,{key:0},(0,i.Ko)(t.fg,((e,r,s)=>((0,i.wg)(),(0,i.iD)("li",{class:(0,o.C_)(t.classList.group),key:s,id:t.ariaGroupId(e),"aria-label":t.ariaGroupLabel(t.localize(e[n.groupLabel])),"aria-selected":t.isSelected(e),role:"option"},[e.__CREATE__?(0,i.kq)("v-if",!0):((0,i.wg)(),(0,i.iD)("div",{key:0,class:(0,o.C_)(t.classList.groupLabel(e)),"data-pointed":t.isPointed(e),onMouseenter:n=>t.setPointer(e,r),onMousedown:(0,a.withModifiers)((n=>t.handleGroupClick(e)),["prevent"])},[(0,i.WI)(t.$slots,"grouplabel",{group:e,isSelected:t.isSelected,isPointed:t.isPointed},(()=>[(0,i._)("span",{innerHTML:t.localize(e[n.groupLabel])},null,8,Pe)]))],42,De)),(0,i._)("ul",{class:(0,o.C_)(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(t.localize(e[n.groupLabel])),role:"group"},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.__VISIBLE__,((r,s,u)=>((0,i.wg)(),(0,i.iD)("li",{class:(0,o.C_)(t.classList.option(r,e)),"data-pointed":t.isPointed(r),"data-selected":t.isSelected(r)||void 0,key:u,onMouseenter:e=>t.setPointer(r),onMousedown:(0,a.withModifiers)((e=>t.handleOptionClick(r)),["prevent"]),id:t.ariaOptionId(r),"aria-selected":t.isSelected(r),"aria-label":t.ariaOptionLabel(t.localize(r[n.label])),role:"option"},[(0,i.WI)(t.$slots,"option",{option:r,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},(()=>[(0,i._)("span",null,(0,o.zw)(t.localize(r[n.label])),1)]))],42,Ne)))),128))],10,Le)],10,Oe)))),128)):((0,i.wg)(!0),(0,i.iD)(i.HY,{key:1},(0,i.Ko)(t.fo,((e,r,s)=>((0,i.wg)(),(0,i.iD)("li",{class:(0,o.C_)(t.classList.option(e)),"data-pointed":t.isPointed(e),"data-selected":t.isSelected(e)||void 0,key:s,onMouseenter:n=>t.setPointer(e),onMousedown:(0,a.withModifiers)((n=>t.handleOptionClick(e)),["prevent"]),id:t.ariaOptionId(e),"aria-selected":t.isSelected(e),"aria-label":t.ariaOptionLabel(t.localize(e[n.label])),role:"option"},[(0,i.WI)(t.$slots,"option",{option:e,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},(()=>[(0,i._)("span",null,(0,o.zw)(t.localize(e[n.label])),1)]))],42,Re)))),128))],10,Ie),t.noOptions?(0,i.WI)(t.$slots,"nooptions",{key:0},(()=>[(0,i._)("div",{class:(0,o.C_)(t.classList.noOptions),innerHTML:t.localize(n.noOptionsText)},null,10,je)])):(0,i.kq)("v-if",!0),t.noResults?(0,i.WI)(t.$slots,"noresults",{key:1},(()=>[(0,i._)("div",{class:(0,o.C_)(t.classList.noResults),innerHTML:t.localize(n.noResultsText)},null,10,Fe)])):(0,i.kq)("v-if",!0),n.infinite&&t.hasMore?((0,i.wg)(),(0,i.iD)("div",{key:2,class:(0,o.C_)(t.classList.inifinite),ref:"infiniteLoader"},[(0,i.WI)(t.$slots,"infinite",{},(()=>[(0,i._)("span",{class:(0,o.C_)(t.classList.inifiniteSpinner)},null,2)]))],2)):(0,i.kq)("v-if",!0),(0,i.WI)(t.$slots,"afterlist",{options:t.fo})],10,Ae)],8,["to","disabled"])),(0,i.kq)(" Hacky input element to show HTML5 required warning "),n.required?((0,i.wg)(),(0,i.iD)("input",{key:0,class:(0,o.C_)(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,Be)):(0,i.kq)("v-if",!0),(0,i.kq)(" Native input support "),n.nativeSupport?((0,i.wg)(),(0,i.iD)(i.HY,{key:1},["single"==n.mode?((0,i.wg)(),(0,i.iD)("input",{key:0,type:"hidden",name:n.name,value:void 0!==t.plainValue?t.plainValue:""},null,8,ze)):((0,i.wg)(!0),(0,i.iD)(i.HY,{key:1},(0,i.Ko)(t.plainValue,((t,e)=>((0,i.wg)(),(0,i.iD)("input",{type:"hidden",name:`${n.name}[]`,value:t,key:e},null,8,Ze)))),128))],64)):(0,i.kq)("v-if",!0),(0,i.kq)(" Screen reader assistive text "),n.searchable&&t.hasSelected?((0,i.wg)(),(0,i.iD)("div",{key:2,class:(0,o.C_)(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},(0,o.zw)(t.ariaLabel),11,Ue)):(0,i.kq)("v-if",!0),(0,i.kq)(" Create height for empty input "),(0,i._)("div",{class:(0,o.C_)(t.classList.spacer)},null,2)],42,we)}_e.render=He,_e.__file="src/Multiselect.vue"},49037:function(t,e,n){"use strict";n.d(e,{Z:function(){return S}});var r=n(98113),i=n(84198),o=n(1992),a=n(58308),s=n(63343),u=n(45315),l=n(18738),c=n(12913),f=n(71333),h=n(59619),d=n(82312),p=n(12719),g=n(23650),v=n(72141);function m(t,e){let n=0;const r=(0,v.Z)(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,u=r(s),l=o<=a;n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&l?(a-o)/u:void 0,event:i};c[e?"download":"upload"]=!0,t(c)}}const y="undefined"!==typeof XMLHttpRequest;var b=y&&function(t){return new Promise((function(e,n){let i=t.data;const v=g.Z.from(t.headers).normalize();let y,b,{responseType:x,withXSRFToken:_}=t;function w(){t.cancelToken&&t.cancelToken.unsubscribe(y),t.signal&&t.signal.removeEventListener("abort",y)}if(r.Z.isFormData(i))if(p.Z.hasStandardBrowserEnv||p.Z.hasStandardBrowserWebWorkerEnv)v.setContentType(!1);else if(!1!==(b=v.getContentType())){const[t,...e]=b?b.split(";").map((t=>t.trim())).filter(Boolean):[];v.setContentType([t||"multipart/form-data",...e].join("; "))}let S=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";v.set("Authorization","Basic "+btoa(e+":"+n))}const E=(0,u.Z)(t.baseURL,t.url);function T(){if(!S)return;const r=g.Z.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),i=x&&"text"!==x&&"json"!==x?S.response:S.responseText,a={data:i,status:S.status,statusText:S.statusText,headers:r,config:t,request:S};(0,o.Z)((function(t){e(t),w()}),(function(t){n(t),w()}),a),S=null}if(S.open(t.method.toUpperCase(),(0,s.Z)(E,t.params,t.paramsSerializer),!0),S.timeout=t.timeout,"onloadend"in S?S.onloadend=T:S.onreadystatechange=function(){S&&4===S.readyState&&(0!==S.status||S.responseURL&&0===S.responseURL.indexOf("file:"))&&setTimeout(T)},S.onabort=function(){S&&(n(new f.Z("Request aborted",f.Z.ECONNABORTED,t,S)),S=null)},S.onerror=function(){n(new f.Z("Network Error",f.Z.ERR_NETWORK,t,S)),S=null},S.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||c.Z;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new f.Z(e,r.clarifyTimeoutError?f.Z.ETIMEDOUT:f.Z.ECONNABORTED,t,S)),S=null},p.Z.hasStandardBrowserEnv&&(_&&r.Z.isFunction(_)&&(_=_(t)),_||!1!==_&&(0,l.Z)(E))){const e=t.xsrfHeaderName&&t.xsrfCookieName&&a.Z.read(t.xsrfCookieName);e&&v.set(t.xsrfHeaderName,e)}void 0===i&&v.setContentType(null),"setRequestHeader"in S&&r.Z.forEach(v.toJSON(),(function(t,e){S.setRequestHeader(e,t)})),r.Z.isUndefined(t.withCredentials)||(S.withCredentials=!!t.withCredentials),x&&"json"!==x&&(S.responseType=t.responseType),"function"===typeof t.onDownloadProgress&&S.addEventListener("progress",m(t.onDownloadProgress,!0)),"function"===typeof t.onUploadProgress&&S.upload&&S.upload.addEventListener("progress",m(t.onUploadProgress)),(t.cancelToken||t.signal)&&(y=e=>{S&&(n(!e||e.type?new h.Z(null,t,S):e),S.abort(),S=null)},t.cancelToken&&t.cancelToken.subscribe(y),t.signal&&(t.signal.aborted?y():t.signal.addEventListener("abort",y)));const k=(0,d.Z)(E);k&&-1===p.Z.protocols.indexOf(k)?n(new f.Z("Unsupported protocol "+k+":",f.Z.ERR_BAD_REQUEST,t)):S.send(i||null)}))};const x={http:i.Z,xhr:b};r.Z.forEach(x,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(n){}Object.defineProperty(t,"adapterName",{value:e})}}));const _=t=>`- ${t}`,w=t=>r.Z.isFunction(t)||null===t||!1===t;var S={getAdapter:t=>{t=r.Z.isArray(t)?t:[t];const{length:e}=t;let n,i;const o={};for(let r=0;r<e;r++){let e;if(n=t[r],i=n,!w(n)&&(i=x[(e=String(n)).toLowerCase()],void 0===i))throw new f.Z(`Unknown adapter '${e}'`);if(i)break;o[e||"#"+r]=i}if(!i){const t=Object.entries(o).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let n=e?t.length>1?"since :\n"+t.map(_).join("\n"):" "+_(t[0]):"as no adapter specified";throw new f.Z("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i},adapters:x}},39423:function(t,e,n){"use strict";n.d(e,{Z:function(){return F}});var r=n(98113),i=n(36524),o=n(63343);class a{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){r.Z.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}var s=a,u=n(14293),l=n(59126),c=n(19307),f=n(59619),h=n(23650),d=n(49037);function p(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new f.Z(null,t)}function g(t){p(t),t.headers=h.Z.from(t.headers),t.data=u.Z.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const e=d.Z.getAdapter(t.adapter||c.Z.adapter);return e(t).then((function(e){return p(t),e.data=u.Z.call(t,t.transformResponse,e),e.headers=h.Z.from(e.headers),e}),(function(e){return(0,l.Z)(e)||(p(t),e&&e.response&&(e.response.data=u.Z.call(t,t.transformResponse,e.response),e.response.headers=h.Z.from(e.response.headers))),Promise.reject(e)}))}const v=t=>t instanceof h.Z?t.toJSON():t;function m(t,e){e=e||{};const n={};function i(t,e,n){return r.Z.isPlainObject(t)&&r.Z.isPlainObject(e)?r.Z.merge.call({caseless:n},t,e):r.Z.isPlainObject(e)?r.Z.merge({},e):r.Z.isArray(e)?e.slice():e}function o(t,e,n){return r.Z.isUndefined(e)?r.Z.isUndefined(t)?void 0:i(void 0,t,n):i(t,e,n)}function a(t,e){if(!r.Z.isUndefined(e))return i(void 0,e)}function s(t,e){return r.Z.isUndefined(e)?r.Z.isUndefined(t)?void 0:i(void 0,t):i(void 0,e)}function u(n,r,o){return o in e?i(n,r):o in t?i(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(t,e)=>o(v(t),v(e),!0)};return r.Z.forEach(Object.keys(Object.assign({},t,e)),(function(i){const a=l[i]||o,s=a(t[i],e[i],i);r.Z.isUndefined(s)&&a!==u||(n[i]=s)})),n}var y=n(45315);const b="1.6.2";var x=n(71333);const _={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{_[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const w={};function S(t,e,n){if("object"!==typeof t)throw new x.Z("options must be an object",x.Z.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;while(i-- >0){const o=r[i],a=e[o];if(a){const e=t[o],n=void 0===e||a(e,o,t);if(!0!==n)throw new x.Z("option "+o+" must be "+n,x.Z.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new x.Z("Unknown option "+o,x.Z.ERR_BAD_OPTION)}}_.transitional=function(t,e,n){function r(t,e){return"[Axios v"+b+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new x.Z(r(i," has been removed"+(e?" in "+e:"")),x.Z.ERR_DEPRECATED);return e&&!w[i]&&(w[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}};var E={assertOptions:S,validators:_};const T=E.validators;class k{constructor(t){this.defaults=t,this.interceptors={request:new s,response:new s}}request(t,e){"string"===typeof t?(e=e||{},e.url=t):e=t||{},e=m(this.defaults,e);const{transitional:n,paramsSerializer:i,headers:o}=e;void 0!==n&&E.assertOptions(n,{silentJSONParsing:T.transitional(T.boolean),forcedJSONParsing:T.transitional(T.boolean),clarifyTimeoutError:T.transitional(T.boolean)},!1),null!=i&&(r.Z.isFunction(i)?e.paramsSerializer={serialize:i}:E.assertOptions(i,{encode:T.function,serialize:T.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let a=o&&r.Z.merge(o.common,o[e.method]);o&&r.Z.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=h.Z.concat(a,o);const s=[];let u=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(u=u&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let f,d=0;if(!u){const t=[g.bind(this),void 0];t.unshift.apply(t,s),t.push.apply(t,l),f=t.length,c=Promise.resolve(e);while(d<f)c=c.then(t[d++],t[d++]);return c}f=s.length;let p=e;d=0;while(d<f){const t=s[d++],e=s[d++];try{p=t(p)}catch(v){e.call(this,v);break}}try{c=g.call(this,p)}catch(v){return Promise.reject(v)}d=0,f=l.length;while(d<f)c=c.then(l[d++],l[d++]);return c}getUri(t){t=m(this.defaults,t);const e=(0,y.Z)(t.baseURL,t.url);return(0,o.Z)(e,t.params,t.paramsSerializer)}}r.Z.forEach(["delete","get","head","options"],(function(t){k.prototype[t]=function(e,n){return this.request(m(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.Z.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(m(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}k.prototype[t]=e(),k.prototype[t+"Form"]=e(!0)}));var C=k,M=n(84510);class A{constructor(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;while(e-- >0)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,i){n.reason||(n.reason=new f.Z(t,r,i),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;const e=new A((function(e){t=e}));return{token:e,cancel:t}}}var I=A,O=n(85238);function D(t){return function(e){return t.apply(null,e)}}function P(t){return r.Z.isObject(t)&&!0===t.isAxiosError}const L={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(L).forEach((([t,e])=>{L[e]=t}));var N=L;function R(t){const e=new C(t),n=(0,i.Z)(C.prototype.request,e);return r.Z.extend(n,C.prototype,e,{allOwnKeys:!0}),r.Z.extend(n,e,null,{allOwnKeys:!0}),n.create=function(e){return R(m(t,e))},n}const j=R(c.Z);j.Axios=C,j.CanceledError=f.Z,j.CancelToken=I,j.isCancel=l.Z,j.VERSION=b,j.toFormData=O.Z,j.AxiosError=x.Z,j.Cancel=j.CanceledError,j.all=function(t){return Promise.all(t)},j.spread=D,j.isAxiosError=P,j.mergeConfig=m,j.AxiosHeaders=h.Z,j.formToJSON=t=>(0,M.Z)(r.Z.isHTMLForm(t)?new FormData(t):t),j.getAdapter=d.Z.getAdapter,j.HttpStatusCode=N,j.default=j;var F=j},59619:function(t,e,n){"use strict";var r=n(71333),i=n(98113);function o(t,e,n){r.Z.call(this,null==t?"canceled":t,r.Z.ERR_CANCELED,e,n),this.name="CanceledError"}i.Z.inherits(o,r.Z,{__CANCEL__:!0}),e.Z=246!=n.j?o:null},59126:function(t,e,n){"use strict";function r(t){return!(!t||!t.__CANCEL__)}n.d(e,{Z:function(){return r}})},71333:function(t,e,n){"use strict";var r=n(98113);function i(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.Z.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.Z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{a[t]={value:t}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=(t,e,n,a,s,u)=>{const l=Object.create(o);return r.Z.toFlatObject(t,l,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),i.call(l,t.message,e,n,a,s),l.cause=t,l.name=t.name,u&&Object.assign(l,u),l},e.Z=246!=n.j?i:null},23650:function(t,e,n){"use strict";n.d(e,{Z:function(){return g}});var r=n(98113);const i=r.Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var o=t=>{const e={};let n,r,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&i[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e};const a=Symbol("internals");function s(t){return t&&String(t).trim().toLowerCase()}function u(t){return!1===t||null==t?t:r.Z.isArray(t)?t.map(u):String(t)}function l(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(t))e[r[1]]=r[2];return e}const c=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function f(t,e,n,i,o){return r.Z.isFunction(i)?i.call(this,e,n):(o&&(e=n),r.Z.isString(e)?r.Z.isString(i)?-1!==e.indexOf(i):r.Z.isRegExp(i)?i.test(e):void 0:void 0)}function h(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}function d(t,e){const n=r.Z.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})}))}class p{constructor(t){t&&this.set(t)}set(t,e,n){const i=this;function a(t,e,n){const o=s(e);if(!o)throw new Error("header name must be a non-empty string");const a=r.Z.findKey(i,o);(!a||void 0===i[a]||!0===n||void 0===n&&!1!==i[a])&&(i[a||e]=u(t))}const l=(t,e)=>r.Z.forEach(t,((t,n)=>a(t,n,e)));return r.Z.isPlainObject(t)||t instanceof this.constructor?l(t,e):r.Z.isString(t)&&(t=t.trim())&&!c(t)?l(o(t),e):null!=t&&a(e,t,n),this}get(t,e){if(t=s(t),t){const n=r.Z.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return l(t);if(r.Z.isFunction(e))return e.call(this,t,n);if(r.Z.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=s(t),t){const n=r.Z.findKey(this,t);return!(!n||void 0===this[n]||e&&!f(this,this[n],n,e))}return!1}delete(t,e){const n=this;let i=!1;function o(t){if(t=s(t),t){const o=r.Z.findKey(n,t);!o||e&&!f(n,n[o],o,e)||(delete n[o],i=!0)}}return r.Z.isArray(t)?t.forEach(o):o(t),i}clear(t){const e=Object.keys(this);let n=e.length,r=!1;while(n--){const i=e[n];t&&!f(this,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return r.Z.forEach(this,((i,o)=>{const a=r.Z.findKey(n,o);if(a)return e[a]=u(i),void delete e[o];const s=t?h(o):String(o).trim();s!==o&&delete e[o],e[s]=u(i),n[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return r.Z.forEach(this,((n,i)=>{null!=n&&!1!==n&&(e[i]=t&&r.Z.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=this[a]=this[a]={accessors:{}},n=e.accessors,i=this.prototype;function o(t){const e=s(t);n[e]||(d(i,t),n[e]=!0)}return r.Z.isArray(t)?t.forEach(o):o(t),this}}p.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),r.Z.reduceDescriptors(p.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),r.Z.freezeMethods(p);var g=p},45315:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),246!=n.j)var r=n(88474);if(246!=n.j)var i=n(14318);function o(t,e){return t&&!(0,r.Z)(e)?(0,i.Z)(t,e):e}},1992:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),246!=n.j)var r=n(71333);function i(t,e,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(new r.Z("Request failed with status code "+n.status,[r.Z.ERR_BAD_REQUEST,r.Z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}},14293:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return a}}),246!=n.j)var r=n(98113);if(246!=n.j)var i=n(19307);if(246!=n.j)var o=n(23650);function a(t,e){const n=this||i.Z,a=e||n,s=o.Z.from(a.headers);let u=a.data;return r.Z.forEach(t,(function(t){u=t.call(n,u,s.normalize(),e?e.status:void 0)})),s.normalize(),u}},19307:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var r=n(98113),i=n(71333),o=n(12913),a=n(85238),s=n(12719);function u(t,e){return(0,a.Z)(t,new s.Z.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,i){return s.Z.isNode&&r.Z.isBuffer(t)?(this.append(e,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}var l=n(84510);function c(t,e,n){if(r.Z.isString(t))try{return(e||JSON.parse)(t),r.Z.trim(t)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(t)}const f={transitional:o.Z,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,o=r.Z.isObject(t);o&&r.Z.isHTMLForm(t)&&(t=new FormData(t));const s=r.Z.isFormData(t);if(s)return i&&i?JSON.stringify((0,l.Z)(t)):t;if(r.Z.isArrayBuffer(t)||r.Z.isBuffer(t)||r.Z.isStream(t)||r.Z.isFile(t)||r.Z.isBlob(t))return t;if(r.Z.isArrayBufferView(t))return t.buffer;if(r.Z.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return u(t,this.formSerializer).toString();if((f=r.Z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return(0,a.Z)(f?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||i?(e.setContentType("application/json",!1),c(t)):t}],transformResponse:[function(t){const e=this.transitional||f.transitional,n=e&&e.forcedJSONParsing,o="json"===this.responseType;if(t&&r.Z.isString(t)&&(n&&!this.responseType||o)){const n=e&&e.silentJSONParsing,r=!n&&o;try{return JSON.parse(t)}catch(a){if(r){if("SyntaxError"===a.name)throw i.Z.from(a,i.Z.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:s.Z.classes.FormData,Blob:s.Z.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};r.Z.forEach(["delete","get","head","post","put","patch"],(t=>{f.headers[t]={}}));var h=f},12913:function(t,e){"use strict";e.Z={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},67709:function(t,e,n){"use strict";var r=n(85238);function i(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function o(t,e){this._pairs=[],t&&(0,r.Z)(t,this,e)}const a=o.prototype;a.append=function(t,e){this._pairs.push([t,e])},a.toString=function(t){const e=t?function(e){return t.call(this,e,i)}:i;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")},e.Z=246!=n.j?o:null},36524:function(t,e,n){"use strict";function r(t,e){return function(){return t.apply(e,arguments)}}n.d(e,{Z:function(){return r}})},63343:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return a}}),246!=n.j)var r=n(98113);if(246!=n.j)var i=n(67709);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function a(t,e,n){if(!e)return t;const a=n&&n.encode||o,s=n&&n.serialize;let u;if(u=s?s(e,n):r.Z.isURLSearchParams(e)?e.toString():new i.Z(e,n).toString(a),u){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+u}return t}},14318:function(t,e,n){"use strict";function r(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}n.d(e,{Z:function(){return r}})},58308:function(t,e,n){"use strict";var r=n(98113),i=n(12719);e.Z=i.Z.hasStandardBrowserEnv?{write(t,e,n,i,o,a){const s=[t+"="+encodeURIComponent(e)];r.Z.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.Z.isString(i)&&s.push("path="+i),r.Z.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}}},84510:function(t,e,n){"use strict";if(246!=n.j)var r=n(98113);function i(t){return r.Z.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}function o(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}function a(t){function e(t,n,i,a){let s=t[a++];const u=Number.isFinite(+s),l=a>=t.length;if(s=!s&&r.Z.isArray(i)?i.length:s,l)return r.Z.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!u;i[s]&&r.Z.isObject(i[s])||(i[s]=[]);const c=e(t,n,i[s],a);return c&&r.Z.isArray(i[s])&&(i[s]=o(i[s])),!u}if(r.Z.isFormData(t)&&r.Z.isFunction(t.entries)){const n={};return r.Z.forEachEntry(t,((t,r)=>{e(i(t),r,n,0)})),n}return null}e.Z=246!=n.j?a:null},88474:function(t,e,n){"use strict";function r(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}n.d(e,{Z:function(){return r}})},18738:function(t,e,n){"use strict";var r=n(98113),i=n(12719);e.Z=i.Z.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function i(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=i(window.location.href),function(t){const e=r.Z.isString(t)?i(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return function(){return!0}}()},84198:function(t,e){"use strict";e.Z=null},82312:function(t,e,n){"use strict";function r(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}n.d(e,{Z:function(){return r}})},72141:function(t,e,n){"use strict";function r(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,o=0,a=0;return e=void 0!==e?e:1e3,function(s){const u=Date.now(),l=r[a];i||(i=u),n[o]=s,r[o]=u;let c=a,f=0;while(c!==o)f+=n[c++],c%=t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),u-i<e)return;const h=l&&u-l;return h?Math.round(1e3*f/h):void 0}}e.Z=246!=n.j?r:null},85238:function(t,e,n){"use strict";var r=n(98113);if(246!=n.j)var i=n(71333);if(246!=n.j)var o=n(84198);function a(t){return r.Z.isPlainObject(t)||r.Z.isArray(t)}function s(t){return r.Z.endsWith(t,"[]")?t.slice(0,-2):t}function u(t,e,n){return t?t.concat(e).map((function(t,e){return t=s(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}function l(t){return r.Z.isArray(t)&&!t.some(a)}const c=r.Z.toFlatObject(r.Z,{},null,(function(t){return/^is[A-Z]/.test(t)}));function f(t,e,n){if(!r.Z.isObject(t))throw new TypeError("target must be an object");e=e||new(o.Z||FormData),n=r.Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!r.Z.isUndefined(e[t])}));const f=n.metaTokens,h=n.visitor||y,d=n.dots,p=n.indexes,g=n.Blob||"undefined"!==typeof Blob&&Blob,v=g&&r.Z.isSpecCompliantForm(e);if(!r.Z.isFunction(h))throw new TypeError("visitor must be a function");function m(t){if(null===t)return"";if(r.Z.isDate(t))return t.toISOString();if(!v&&r.Z.isBlob(t))throw new i.Z("Blob is not supported. Use a Buffer instead.");return r.Z.isArrayBuffer(t)||r.Z.isTypedArray(t)?v&&"function"===typeof Blob?new Blob([t]):Buffer.from(t):t}function y(t,n,i){let o=t;if(t&&!i&&"object"===typeof t)if(r.Z.endsWith(n,"{}"))n=f?n:n.slice(0,-2),t=JSON.stringify(t);else if(r.Z.isArray(t)&&l(t)||(r.Z.isFileList(t)||r.Z.endsWith(n,"[]"))&&(o=r.Z.toArray(t)))return n=s(n),o.forEach((function(t,i){!r.Z.isUndefined(t)&&null!==t&&e.append(!0===p?u([n],i,d):null===p?n:n+"[]",m(t))})),!1;return!!a(t)||(e.append(u(i,n,d),m(t)),!1)}const b=[],x=Object.assign(c,{defaultVisitor:y,convertValue:m,isVisitable:a});function _(t,n){if(!r.Z.isUndefined(t)){if(-1!==b.indexOf(t))throw Error("Circular reference detected in "+n.join("."));b.push(t),r.Z.forEach(t,(function(t,i){const o=!(r.Z.isUndefined(t)||null===t)&&h.call(e,t,r.Z.isString(i)?i.trim():i,n,x);!0===o&&_(t,n?n.concat(i):[i])})),b.pop()}}if(!r.Z.isObject(t))throw new TypeError("data must be an object");return _(t),e}e.Z=246!=n.j?f:null},12719:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var r={};n.r(r),n.d(r,{hasBrowserEnv:function(){return l},hasStandardBrowserEnv:function(){return c},hasStandardBrowserWebWorkerEnv:function(){return f}});var i=n(67709),o="undefined"!==typeof URLSearchParams?URLSearchParams:i.Z,a="undefined"!==typeof FormData?FormData:null,s="undefined"!==typeof Blob?Blob:null,u={isBrowser:!0,classes:{URLSearchParams:o,FormData:a,Blob:s},protocols:["http","https","file","blob","url","data"]};const l="undefined"!==typeof window&&"undefined"!==typeof document,c=(t=>l&&["ReactNative","NativeScript","NS"].indexOf(t)<0)("undefined"!==typeof navigator&&navigator.product),f=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)();var h={...r,...u}},98113:function(t,e,n){"use strict";var r=n(36524);const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,a=(t=>e=>{const n=i.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),s=t=>(t=t.toLowerCase(),e=>a(e)===t),u=t=>e=>typeof e===t,{isArray:l}=Array,c=u("undefined");function f(t){return null!==t&&!c(t)&&null!==t.constructor&&!c(t.constructor)&&g(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const h=s("ArrayBuffer");function d(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&h(t.buffer),e}const p=u("string"),g=u("function"),v=u("number"),m=t=>null!==t&&"object"===typeof t,y=t=>!0===t||!1===t,b=t=>{if("object"!==a(t))return!1;const e=o(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},x=s("Date"),_=s("File"),w=s("Blob"),S=s("FileList"),E=t=>m(t)&&g(t.pipe),T=t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||g(t.append)&&("formdata"===(e=a(t))||"object"===e&&g(t.toString)&&"[object FormData]"===t.toString()))},k=s("URLSearchParams"),C=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function M(t,e,{allOwnKeys:n=!1}={}){if(null===t||"undefined"===typeof t)return;let r,i;if("object"!==typeof t&&(t=[t]),l(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(r=0;r<o;r++)a=i[r],e.call(null,t[a],a,t)}}function A(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;while(i-- >0)if(r=n[i],e===r.toLowerCase())return r;return null}const I=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),O=t=>!c(t)&&t!==I;function D(){const{caseless:t}=O(this)&&this||{},e={},n=(n,r)=>{const i=t&&A(e,r)||r;b(e[i])&&b(n)?e[i]=D(e[i],n):b(n)?e[i]=D({},n):l(n)?e[i]=n.slice():e[i]=n};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&M(arguments[r],n);return e}const P=(t,e,n,{allOwnKeys:i}={})=>(M(e,((e,i)=>{n&&g(e)?t[i]=(0,r.Z)(e,n):t[i]=e}),{allOwnKeys:i}),t),L=t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),N=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},R=(t,e,n,r)=>{let i,a,s;const u={};if(e=e||{},null==t)return e;do{i=Object.getOwnPropertyNames(t),a=i.length;while(a-- >0)s=i[a],r&&!r(s,t,e)||u[s]||(e[s]=t[s],u[s]=!0);t=!1!==n&&o(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},j=(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},F=t=>{if(!t)return null;if(l(t))return t;let e=t.length;if(!v(e))return null;const n=new Array(e);while(e-- >0)n[e]=t[e];return n},B=(t=>e=>t&&e instanceof t)("undefined"!==typeof Uint8Array&&o(Uint8Array)),z=(t,e)=>{const n=t&&t[Symbol.iterator],r=n.call(t);let i;while((i=r.next())&&!i.done){const n=i.value;e.call(t,n[0],n[1])}},Z=(t,e)=>{let n;const r=[];while(null!==(n=t.exec(e)))r.push(n);return r},U=s("HTMLFormElement"),H=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),$=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),G=s("RegExp"),W=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};M(n,((n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)})),Object.defineProperties(t,r)},V=t=>{W(t,((e,n)=>{if(g(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];g(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},Y=(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return l(t)?r(t):r(String(t).split(e)),n},X=()=>{},q=(t,e)=>(t=+t,Number.isFinite(t)?t:e),K="abcdefghijklmnopqrstuvwxyz",J="0123456789",Q={DIGIT:J,ALPHA:K,ALPHA_DIGIT:K+K.toUpperCase()+J},tt=(t=16,e=Q.ALPHA_DIGIT)=>{let n="";const{length:r}=e;while(t--)n+=e[Math.random()*r|0];return n};function et(t){return!!(t&&g(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])}const nt=t=>{const e=new Array(10),n=(t,r)=>{if(m(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const i=l(t)?[]:{};return M(t,((t,e)=>{const o=n(t,r+1);!c(o)&&(i[e]=o)})),e[r]=void 0,i}}return t};return n(t,0)},rt=s("AsyncFunction"),it=t=>t&&(m(t)||g(t))&&g(t.then)&&g(t.catch);e.Z={isArray:l,isArrayBuffer:h,isBuffer:f,isFormData:T,isArrayBufferView:d,isString:p,isNumber:v,isBoolean:y,isObject:m,isPlainObject:b,isUndefined:c,isDate:x,isFile:_,isBlob:w,isRegExp:G,isFunction:g,isStream:E,isURLSearchParams:k,isTypedArray:B,isFileList:S,forEach:M,merge:D,extend:P,trim:C,stripBOM:L,inherits:N,toFlatObject:R,kindOf:a,kindOfTest:s,endsWith:j,toArray:F,forEachEntry:z,matchAll:Z,isHTMLForm:U,hasOwnProperty:$,hasOwnProp:$,reduceDescriptors:W,freezeMethods:V,toObjectSet:Y,toCamelCase:H,noop:X,toFiniteNumber:q,findKey:A,global:I,isContextDefined:O,ALPHABET:Q,generateString:tt,isSpecCompliantForm:et,toJSONObject:nt,isAsyncFn:rt,isThenable:it}},32462:function(t,e,n){"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function o(){}n.d(e,{ZP:function(){return S},B8:function(){return C}});var a=.7,s=1/a,u="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3,8})$/,h=new RegExp(`^rgb\\(${u},${u},${u}\\)$`),d=new RegExp(`^rgb\\(${c},${c},${c}\\)$`),p=new RegExp(`^rgba\\(${u},${u},${u},${l}\\)$`),g=new RegExp(`^rgba\\(${c},${c},${c},${l}\\)$`),v=new RegExp(`^hsl\\(${l},${c},${c}\\)$`),m=new RegExp(`^hsla\\(${l},${c},${c},${l}\\)$`),y={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 b(){return this.rgb().formatHex()}function x(){return this.rgb().formatHex8()}function _(){return R(this).formatHsl()}function w(){return this.rgb().formatRgb()}function S(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=f.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?E(e):3===n?new M(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?T(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?T(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new M(e[1],e[2],e[3],1):(e=d.exec(t))?new M(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=p.exec(t))?T(e[1],e[2],e[3],e[4]):(e=g.exec(t))?T(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=v.exec(t))?N(e[1],e[2]/100,e[3]/100,1):(e=m.exec(t))?N(e[1],e[2]/100,e[3]/100,e[4]):y.hasOwnProperty(t)?E(y[t]):"transparent"===t?new M(NaN,NaN,NaN,0):null}function E(t){return new M(t>>16&255,t>>8&255,255&t,1)}function T(t,e,n,r){return r<=0&&(t=e=n=NaN),new M(t,e,n,r)}function k(t){return t instanceof o||(t=S(t)),t?(t=t.rgb(),new M(t.r,t.g,t.b,t.opacity)):new M}function C(t,e,n,r){return 1===arguments.length?k(t):new M(t,e,n,null==r?1:r)}function M(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function A(){return`#${L(this.r)}${L(this.g)}${L(this.b)}`}function I(){return`#${L(this.r)}${L(this.g)}${L(this.b)}${L(255*(isNaN(this.opacity)?1:this.opacity))}`}function O(){const t=D(this.opacity);return`${1===t?"rgb(":"rgba("}${P(this.r)}, ${P(this.g)}, ${P(this.b)}${1===t?")":`, ${t})`}`}function D(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function P(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function L(t){return t=P(t),(t<16?"0":"")+t.toString(16)}function N(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new F(t,e,n,r)}function R(t){if(t instanceof F)return new F(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=S(t)),!t)return new F;if(t instanceof F)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-i,l=(a+i)/2;return u?(s=e===a?(n-r)/u+6*(n<r):n===a?(r-e)/u+2:(e-n)/u+4,u/=l<.5?a+i:2-a-i,s*=60):u=l>0&&l<1?0:s,new F(s,u,l,t.opacity)}function j(t,e,n,r){return 1===arguments.length?R(t):new F(t,e,n,null==r?1:r)}function F(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function B(t){return t=(t||0)%360,t<0?t+360:t}function z(t){return Math.max(0,Math.min(1,t||0))}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)}r(o,S,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:b,formatHex:b,formatHex8:x,formatHsl:_,formatRgb:w,toString:w}),r(M,C,i(o,{brighter(t){return t=null==t?s:Math.pow(s,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?a:Math.pow(a,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new M(P(this.r),P(this.g),P(this.b),D(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:A,formatHex:A,formatHex8:I,formatRgb:O,toString:O})),r(F,j,i(o,{brighter(t){return t=null==t?s:Math.pow(s,t),new F(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?a:Math.pow(a,t),new F(this.h,this.s,this.l*t,this.opacity)},rgb(){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 M(Z(t>=240?t-240:t+120,i,r),Z(t,i,r),Z(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new F(B(this.h),z(this.s),z(this.l),D(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=D(this.opacity);return`${1===t?"hsl(":"hsla("}${B(this.h)}, ${100*z(this.s)}%, ${100*z(this.l)}%${1===t?")":`, ${t})`}`}}))},51606:function(t,e,n){"use strict";if(n.d(e,{M:function(){return a},Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(45326);if(/^(539|826)$/.test(n.j))var i=n(45401);function o(t,e){return((0,i.v)(e)?i.Z:a)(t,e)}function a(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),s=new Array(i);for(n=0;n<o;++n)a[n]=(0,r.Z)(t[n],e[n]);for(;n<i;++n)s[n]=e[n];return function(t){for(n=0;n<o;++n)s[n]=a[n](t);return s}}},27265:function(t,e,n){"use strict";function r(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}function i(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,u=i<e-1?t[i+2]:2*a-o;return r((n-i/e)*e,s,o,a,u)}}n.d(e,{Z:function(){return i},t:function(){return r}})},22954:function(t,e){"use strict";e.Z=t=>()=>t},56246:function(t,e,n){"use strict";function r(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}n.d(e,{Z:function(){return r}})},68063:function(t,e,n){"use strict";function r(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}n.d(e,{Z:function(){return r}})},45401:function(t,e,n){"use strict";function r(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 i(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}n.d(e,{Z:function(){return r},v:function(){return i}})},58296:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(45326);function i(t,e){var n,i={},o={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?i[n]=(0,r.Z)(t[n],e[n]):o[n]=e[n];return function(t){for(n in i)o[n]=i[n](t);return o}}},99912:function(t,e,n){"use strict";n.d(e,{ZP:function(){return f}});var r=n(32462),i=n(27265);function o(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],a=t[r%e],s=t[(r+1)%e],u=t[(r+2)%e];return(0,i.t)((n-r/e)*e,o,a,s,u)}}var a=n(22954);function s(t,e){return function(n){return t+n*e}}function u(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)}}function l(t){return 1===(t=+t)?c:function(e,n){return n-e?u(e,n,t):(0,a.Z)(isNaN(e)?n:e)}}function c(t,e){var n=e-t;return n?s(t,n):(0,a.Z)(isNaN(t)?e:t)}var f=function t(e){var n=l(e);function i(t,e){var i=n((t=(0,r.B8)(t)).r,(e=(0,r.B8)(e)).r),o=n(t.g,e.g),a=n(t.b,e.b),s=c(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=o(e),t.b=a(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1);function h(t){return function(e){var n,i,o=e.length,a=new Array(o),s=new Array(o),u=new Array(o);for(n=0;n<o;++n)i=(0,r.B8)(e[n]),a[n]=i.r||0,s[n]=i.g||0,u[n]=i.b||0;return a=t(a),s=t(s),u=t(u),i.opacity=1,function(t){return i.r=a(t),i.g=s(t),i.b=u(t),i+""}}}h(i.Z),h(o)},16773:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return u}}),/^(539|826)$/.test(n.j))var r=n(68063);var i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");function a(t){return function(){return t}}function s(t){return function(e){return t(e)+""}}function u(t,e){var n,u,l,c=i.lastIndex=o.lastIndex=0,f=-1,h=[],d=[];t+="",e+="";while((n=i.exec(t))&&(u=o.exec(e)))(l=u.index)>c&&(l=e.slice(c,l),h[f]?h[f]+=l:h[++f]=l),(n=n[0])===(u=u[0])?h[f]?h[f]+=u:h[++f]=u:(h[++f]=null,d.push({i:f,x:(0,r.Z)(n,u)})),c=o.lastIndex;return c<e.length&&(l=e.slice(c),h[f]?h[f]+=l:h[++f]=l),h.length<2?d[0]?s(d[0].x):a(e):(e=d.length,function(t){for(var n,r=0;r<e;++r)h[(n=d[r]).i]=n.x(t);return h.join("")})}},45326:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return h}}),/^(539|826)$/.test(n.j))var r=n(32462);if(/^(539|826)$/.test(n.j))var i=n(99912);if(/^(539|826)$/.test(n.j))var o=n(51606);if(/^(539|826)$/.test(n.j))var a=n(56246);if(/^(539|826)$/.test(n.j))var s=n(68063);if(/^(539|826)$/.test(n.j))var u=n(58296);if(/^(539|826)$/.test(n.j))var l=n(16773);if(/^(539|826)$/.test(n.j))var c=n(22954);if(/^(539|826)$/.test(n.j))var f=n(45401);function h(t,e){var n,h=typeof e;return null==e||"boolean"===h?(0,c.Z)(e):("number"===h?s.Z:"string"===h?(n=(0,r.ZP)(e))?(e=n,i.ZP):l.Z:e instanceof r.ZP?i.ZP:e instanceof Date?a.Z:(0,f.v)(e)?f.Z:Array.isArray(e)?o.M:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?u.Z:s.Z)(t,e)}},7574:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(66252),i=n(2262);const o=["childRow","column-sizing","column-visibility","destroy","draw","error","init","length","order","page","preDraw","preInit","preXhr","processing","requestChild","search","stateLoadParams","stateLoaded","stateSaveParams","xhr","autoFill","preAutoFill","buttons-action","buttons-processing","column-reorder","key","key-blur","key-focus","key-refocus","key-return-submit","responsive-display","responsive-resize","rowgroup-datasrc","pre-row-reorder","row-reorder","row-reordered","dtsb-inserted","deselect","select","select-blur","selectItems","selectStyle","user-select","stateRestore-change"];let a;const s={name:"Datatables.netVue",inheritAttrs:!1,use(t){a=t}},u=(0,r.aZ)({...s,props:{ajax:null,columns:null,data:null,options:null},emits:o,setup(t,{expose:e}){const n=t,s=(0,i.iH)(null),u=(0,i.iH)(),l=(0,i.iH)([]);function c(t){l.value=t.value?t.value.slice():t.slice()}return(0,r.YP)((()=>n.data),(t=>{var e,n,r,i;let o=null==(e=u.value)?void 0:e.data().toArray();for(let a of t)null!=o&&o.includes(a)||null==(n=u.value)||n.row.add(a);if(typeof o<"u")for(let a of o)t.includes(a)||null==(r=u.value)||r.row(((t,e)=>e===a)).remove();null==(i=u.value)||i.rows().invalidate().draw(!1),c(t)}),{deep:!0}),(0,r.bv)((()=>{const t=(0,r.FN)();let e=n.options||{};if(n.data&&(e.data=n.data,c(e.data)),n.columns&&(e.columns=n.columns),n.ajax&&(e.ajax=n.ajax),!a)throw new Error("DataTables library not set. See https://datatables.net/tn/19 for details.");u.value=new a((0,i.SU)(s),e);for(let n of o)u.value&&t&&u.value.on(n,(function(){var e=Array.from(arguments),r=e.shift();e.unshift({event:r,dt:u}),e.unshift(n),t.emit.apply(t,e)}))})),(0,r.Jd)((()=>{var t;null==(t=u.value)||t.destroy(!0)})),e({dt:u}),(t,e)=>e[0]||((0,r.qZ)(-1),e[0]=(0,r._)("div",{class:"datatable"},[(0,r._)("table",(0,r.dG)({ref_key:"table",ref:s},t.$attrs,{style:{width:"100%"}}),[(0,r.WI)(t.$slots,"default")],16)]),(0,r.qZ)(1),e[0])}}),l=/^(539|826)$/.test(n.j)?(()=>{const t=u;return t.install=e=>{e.component("Datatables.netVue",t)},t})():null},30991:function(t,e,n){"use strict";var r,i,o,a,s=n(19755),u=s,l=function(t,e){if(l.factory(t,e))return l;if(this instanceof l)return u(t).DataTable(e);e=t,this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new i(t?pe(this[r.iApiIndex]):this)},this.fnAddData=function(t,e){var n=this.api(!0),r=Array.isArray(t)&&(Array.isArray(t[0])||u.isPlainObject(t[0]))?n.rows.add(t):n.row.add(t);return(void 0===e||e)&&n.draw(),r.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),n=e.settings()[0],r=n.oScroll;void 0===t||t?e.draw(!1):""===r.sX&&""===r.sY||Xt(n)},this.fnClearTable=function(t){var e=this.api(!0).clear();(void 0===t||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,n){var r=this.api(!0),i=r.rows(t),o=i.settings()[0],a=o.aoData[i[0][0]];return i.remove(),e&&e.call(this,o,a),(void 0===n||n)&&r.draw(),a},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,n,r,i,o){var a=this.api(!0);null===e||void 0===e?a.search(t,n,r,o):a.column(e).search(t,n,r,o),a.draw()},this.fnGetData=function(t,e){var n=this.api(!0);if(void 0!==t){var r=t.nodeName?t.nodeName.toLowerCase():"";return void 0!==e||"td"==r||"th"==r?n.cell(t,e).data():n.row(t).data()||null}return n.data().toArray()},this.fnGetNodes=function(t){var e=this.api(!0);return void 0!==t?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),n=t.nodeName.toUpperCase();if("TR"==n)return e.row(t).index();if("TD"==n||"TH"==n){var r=e.cell(t).index();return[r.row,r.columnVisible,r.column]}return null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,n){return this.api(!0).row(t).child(e,n).show().child()[0]},this.fnPageChange=function(t,e){var n=this.api(!0).page(t);(void 0===e||e)&&n.draw(!1)},this.fnSetColumnVis=function(t,e,n){var r=this.api(!0).column(t).visible(e);(void 0===n||n)&&r.columns.adjust().draw()},this.fnSettings=function(){return pe(this[r.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,n){this.api(!0).order.listener(t,e,n)},this.fnUpdate=function(t,e,n,r,i){var o=this.api(!0);return void 0===n||null===n?o.row(e).data(t):o.cell(e,n).data(t),(void 0===i||i)&&o.columns.adjust(),(void 0===r||r)&&o.draw(),0},this.fnVersionCheck=r.fnVersionCheck;var n=this,o=void 0===e,a=this.length;for(var s in o&&(e={}),this.oApi=this.internal=r.internal,l.ext.internal)s&&(this[s]=sn(s));return this.each((function(){var t,r={},i=a>1?me(r,e,!0):e,s=0,c=this.getAttribute("id"),f=!1,h=l.defaults,d=u(this);if("table"==this.nodeName.toLowerCase()){N(h),R(h.column),D(h,h,!0),D(h.column,h.column,!0),D(h,u.extend(i,d.data()),!0);var p=l.settings;for(s=0,t=p.length;s<t;s++){var g=p[s];if(g.nTable==this||g.nTHead&&g.nTHead.parentNode==this||g.nTFoot&&g.nTFoot.parentNode==this){var v=void 0!==i.bRetrieve?i.bRetrieve:h.bRetrieve,m=void 0!==i.bDestroy?i.bDestroy:h.bDestroy;if(o||v)return g.oInstance;if(m){g.oInstance.fnDestroy();break}return void ge(g,0,"Cannot reinitialise DataTable",3)}if(g.sTableId==this.id){p.splice(s,1);break}}null!==c&&""!==c||(c="DataTables_Table_"+l.ext._unique++,this.id=c);var y=u.extend(!0,{},l.models.oSettings,{sDestroyWidth:d[0].style.width,sInstance:c,sTableId:c});y.nTable=this,y.oApi=n.internal,y.oInit=i,p.push(y),y.oInstance=1===n.length?n:d.dataTable(),N(i),P(i.oLanguage),i.aLengthMenu&&!i.iDisplayLength&&(i.iDisplayLength=Array.isArray(i.aLengthMenu[0])?i.aLengthMenu[0][0]:i.aLengthMenu[0]),i=me(u.extend(!0,{},h),i),ve(y.oFeatures,i,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),ve(y,i,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),ve(y.oScroll,i,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),ve(y.oLanguage,i,"fnInfoCallback"),be(y,"aoDrawCallback",i.fnDrawCallback,"user"),be(y,"aoServerParams",i.fnServerParams,"user"),be(y,"aoStateSaveParams",i.fnStateSaveParams,"user"),be(y,"aoStateLoadParams",i.fnStateLoadParams,"user"),be(y,"aoStateLoaded",i.fnStateLoaded,"user"),be(y,"aoRowCallback",i.fnRowCallback,"user"),be(y,"aoRowCreatedCallback",i.fnCreatedRow,"user"),be(y,"aoHeaderCallback",i.fnHeaderCallback,"user"),be(y,"aoFooterCallback",i.fnFooterCallback,"user"),be(y,"aoInitComplete",i.fnInitComplete,"user"),be(y,"aoPreDrawCallback",i.fnPreDrawCallback,"user"),y.rowIdFn=rt(i.rowId),j(y);var b=y.oClasses;if(u.extend(b,l.ext.classes,i.oClasses),d.addClass(b.sTable),void 0===y.iInitDisplayStart&&(y.iInitDisplayStart=i.iDisplayStart,y._iDisplayStart=i.iDisplayStart),null!==i.iDeferLoading){y.bDeferLoading=!0;var x=Array.isArray(i.iDeferLoading);y._iRecordsDisplay=x?i.iDeferLoading[0]:i.iDeferLoading,y._iRecordsTotal=x?i.iDeferLoading[1]:i.iDeferLoading}var _=y.oLanguage;u.extend(!0,_,i.oLanguage),_.sUrl?(u.ajax({dataType:"json",url:_.sUrl,success:function(t){D(h.oLanguage,t),P(t),u.extend(!0,_,t,y.oInit.oLanguage),xe(y,null,"i18n",[y]),zt(y)},error:function(){zt(y)}}),f=!0):xe(y,null,"i18n",[y]),null===i.asStripeClasses&&(y.asStripeClasses=[b.sStripeOdd,b.sStripeEven]);var w=y.asStripeClasses,S=d.children("tbody").find("tr").eq(0);-1!==u.inArray(!0,u.map(w,(function(t,e){return S.hasClass(t)})))&&(u("tbody tr",this).removeClass(w.join(" ")),y.asDestroyStripes=w.slice());var E,T=[],k=this.getElementsByTagName("thead");if(0!==k.length&&(mt(y.aoHeader,k[0]),T=yt(y)),null===i.aoColumns)for(E=[],s=0,t=T.length;s<t;s++)E.push(null);else E=i.aoColumns;for(s=0,t=E.length;s<t;s++)B(y,T?T[s]:null);if(V(y,i.aoColumnDefs,E,(function(t,e){z(y,t,e)})),S.length){var C=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};u(S[0]).children("th, td").each((function(t,e){var n=y.aoColumns[t];if(n||ge(y,0,"Incorrect column count",18),n.mData===t){var r=C(e,"sort")||C(e,"order"),i=C(e,"filter")||C(e,"search");null===r&&null===i||(n.mData={_:t+".display",sort:null!==r?t+".@data-"+r:void 0,type:null!==r?t+".@data-"+r:void 0,filter:null!==i?t+".@data-"+i:void 0},n._isArrayHost=!0,z(y,t))}}))}var M=y.oFeatures,A=function(){if(void 0===i.aaSorting){var e=y.aaSorting;for(s=0,t=e.length;s<t;s++)e[s][1]=y.aoColumns[s].asSorting[0]}le(y),M.bSort&&be(y,"aoDrawCallback",(function(){if(y.bSorted){var t=ie(y),e={};u.each(t,(function(t,n){e[n.src]=n.dir})),xe(y,null,"order",[y,t,e]),ae(y)}})),be(y,"aoDrawCallback",(function(){(y.bSorted||"ssp"===Se(y)||M.bDeferRender)&&le(y)}),"sc");var n=d.children("caption").each((function(){this._captionSide=u(this).css("caption-side")})),r=d.children("thead");0===r.length&&(r=u("<thead/>").appendTo(d)),y.nTHead=r[0];var o=d.children("tbody");0===o.length&&(o=u("<tbody/>").insertAfter(r)),y.nTBody=o[0];var a=d.children("tfoot");if(0===a.length&&n.length>0&&(""!==y.oScroll.sX||""!==y.oScroll.sY)&&(a=u("<tfoot/>").appendTo(d)),0===a.length||0===a.children().length?d.addClass(b.sNoFooter):a.length>0&&(y.nTFoot=a[0],mt(y.aoFooter,y.nTFoot)),i.aaData)for(s=0;s<i.aaData.length;s++)Y(y,i.aaData[s]);else(y.bDeferLoading||"dom"==Se(y))&&X(y,u(y.nTBody).children("tr"));y.aiDisplay=y.aiDisplayMaster.slice(),y.bInitialised=!0,!1===f&&zt(y)};be(y,"aoDrawCallback",fe,"state_save"),i.bStateSave?(M.bStateSave=!0,he(y,i,A)):A()}else ge(null,0,"Non-table node initialisation ("+this.nodeName+")",2)})),n=null,this},c={},f=/[\r\n\u2028]/g,h=/<.*?>/g,d=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,p=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),g=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,v=function(t){return!t||!0===t||"-"===t},m=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},y=function(t,e){return c[e]||(c[e]=new RegExp(Ot(e),"g")),"string"===typeof t&&"."!==e?t.replace(/\./g,"").replace(c[e],"."):t},b=function(t,e,n){var r=typeof t,i="string"===r;return"number"===r||"bigint"===r||(!!v(t)||(e&&i&&(t=y(t,e)),n&&i&&(t=t.replace(g,"")),!isNaN(parseFloat(t))&&isFinite(t)))},x=function(t){return v(t)||"string"===typeof t},_=function(t,e,n){if(v(t))return!0;var r=x(t);return r&&!!b(k(t),e,n)||null},w=function(t,e,n){var r=[],i=0,o=t.length;if(void 0!==n)for(;i<o;i++)t[i]&&t[i][e]&&r.push(t[i][e][n]);else for(;i<o;i++)t[i]&&r.push(t[i][e]);return r},S=function(t,e,n,r){var i=[],o=0,a=e.length;if(void 0!==r)for(;o<a;o++)t[e[o]][n]&&i.push(t[e[o]][n][r]);else for(;o<a;o++)i.push(t[e[o]][n]);return i},E=function(t,e){var n,r=[];void 0===e?(e=0,n=t):(n=e,e=t);for(var i=e;i<n;i++)r.push(i);return r},T=function(t){for(var e=[],n=0,r=t.length;n<r;n++)t[n]&&e.push(t[n]);return e},k=function(t){return t.replace(h,"").replace(/<script/i,"")},C=function(t){if(t.length<2)return!0;for(var e=t.slice().sort(),n=e[0],r=1,i=e.length;r<i;r++){if(e[r]===n)return!1;n=e[r]}return!0},M=function(t){if(C(t))return t.slice();var e,n,r,i=[],o=t.length,a=0;t:for(n=0;n<o;n++){for(e=t[n],r=0;r<a;r++)if(i[r]===e)continue t;i.push(e),a++}return i},A=function(t,e){if(Array.isArray(e))for(var n=0;n<e.length;n++)A(t,e[n]);else t.push(e);return t},I=function(t,e){return void 0===e&&(e=0),-1!==this.indexOf(t,e)};
/*! DataTables 1.13.7
 * ©2008-2023 SpryMedia Ltd - datatables.net/license
 */function O(t){var e,n,r="a aa ai ao as b fn i m o s ",i={};u.each(t,(function(o,a){e=o.match(/^([^A-Z]+?)([A-Z])/),e&&-1!==r.indexOf(e[1]+" ")&&(n=o.replace(e[0],e[2].toLowerCase()),i[n]=o,"o"===e[1]&&O(t[o]))})),t._hungarianMap=i}function D(t,e,n){var r;t._hungarianMap||O(t),u.each(e,(function(i,o){r=t._hungarianMap[i],void 0===r||!n&&void 0!==e[r]||("o"===r.charAt(0)?(e[r]||(e[r]={}),u.extend(!0,e[r],e[i]),D(t[r],e[r],n)):e[r]=e[i])}))}function P(t){var e=l.defaults.oLanguage,n=e.sDecimal;if(n&&qe(n),t){var r=t.sZeroRecords;!t.sEmptyTable&&r&&"No data available in table"===e.sEmptyTable&&ve(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&r&&"Loading..."===e.sLoadingRecords&&ve(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands);var i=t.sDecimal;i&&n!==i&&qe(i)}}Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.prototype.includes||(Array.prototype.includes=I),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),String.prototype.includes||(String.prototype.includes=I),l.util={throttle:function(t,e){var n,r,i=void 0!==e?e:200;return function(){var e=this,o=+new Date,a=arguments;n&&o<n+i?(clearTimeout(r),r=setTimeout((function(){n=void 0,t.apply(e,a)}),i)):(n=o,t.apply(e,a))}},escapeRegex:function(t){return t.replace(p,"\\$1")},set:function(t){if(u.isPlainObject(t))return l.util.set(t._);if(null===t)return function(){};if("function"===typeof t)return function(e,n,r){t(e,"set",n,r)};if("string"!==typeof t||-1===t.indexOf(".")&&-1===t.indexOf("[")&&-1===t.indexOf("("))return function(e,n){e[t]=n};var e=function(t,n,r){for(var i,o,a,s,u,l=nt(r),c=l[l.length-1],f=0,h=l.length-1;f<h;f++){if("__proto__"===l[f]||"constructor"===l[f])throw new Error("Cannot set prototype values");if(o=l[f].match(tt),a=l[f].match(et),o){if(l[f]=l[f].replace(tt,""),t[l[f]]=[],i=l.slice(),i.splice(0,f+1),u=i.join("."),Array.isArray(n))for(var d=0,p=n.length;d<p;d++)s={},e(s,n[d],u),t[l[f]].push(s);else t[l[f]]=n;return}a&&(l[f]=l[f].replace(et,""),t=t[l[f]](n)),null!==t[l[f]]&&void 0!==t[l[f]]||(t[l[f]]={}),t=t[l[f]]}c.match(et)?t=t[c.replace(et,"")](n):t[c.replace(tt,"")]=n};return function(n,r){return e(n,r,t)}},get:function(t){if(u.isPlainObject(t)){var e={};return u.each(t,(function(t,n){n&&(e[t]=l.util.get(n))})),function(t,n,r,i){var o=e[n]||e._;return void 0!==o?o(t,n,r,i):t}}if(null===t)return function(t){return t};if("function"===typeof t)return function(e,n,r,i){return t(e,n,r,i)};if("string"!==typeof t||-1===t.indexOf(".")&&-1===t.indexOf("[")&&-1===t.indexOf("("))return function(e,n){return e[t]};var n=function(t,e,r){var i,o,a,s;if(""!==r)for(var u=nt(r),l=0,c=u.length;l<c;l++){if(i=u[l].match(tt),o=u[l].match(et),i){if(u[l]=u[l].replace(tt,""),""!==u[l]&&(t=t[u[l]]),a=[],u.splice(0,l+1),s=u.join("."),Array.isArray(t))for(var f=0,h=t.length;f<h;f++)a.push(n(t[f],e,s));var d=i[0].substring(1,i[0].length-1);t=""===d?a:a.join(d);break}if(o)u[l]=u[l].replace(et,""),t=t[u[l]]();else{if(null===t||null===t[u[l]])return null;if(void 0===t||void 0===t[u[l]])return;t=t[u[l]]}}return t};return function(e,r){return n(e,r,t)}}};var L=function(t,e,n){void 0!==t[e]&&(t[n]=t[e])};function N(t){L(t,"ordering","bSort"),L(t,"orderMulti","bSortMulti"),L(t,"orderClasses","bSortClasses"),L(t,"orderCellsTop","bSortCellsTop"),L(t,"order","aaSorting"),L(t,"orderFixed","aaSortingFixed"),L(t,"paging","bPaginate"),L(t,"pagingType","sPaginationType"),L(t,"pageLength","iDisplayLength"),L(t,"searching","bFilter"),"boolean"===typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"===typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":"");var e=t.aoSearchCols;if(e)for(var n=0,r=e.length;n<r;n++)e[n]&&D(l.models.oSearch,e[n])}function R(t){L(t,"orderable","bSortable"),L(t,"orderData","aDataSort"),L(t,"orderSequence","asSorting"),L(t,"orderDataType","sortDataType");var e=t.aDataSort;"number"!==typeof e||Array.isArray(e)||(t.aDataSort=[e])}function j(t){if(!l.__browser){var e={};l.__browser=e;var n=u("<div/>").css({position:"fixed",top:0,left:-1*u(window).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(u("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(u("<div/>").css({width:"100%",height:10}))).appendTo("body"),r=n.children(),i=r.children();e.barWidth=r[0].offsetWidth-r[0].clientWidth,e.bScrollOversize=100===i[0].offsetWidth&&100!==r[0].clientWidth,e.bScrollbarLeft=1!==Math.round(i.offset().left),e.bBounding=!!n[0].getBoundingClientRect().width,n.remove()}u.extend(t.oBrowser,l.__browser),t.oScroll.iBarWidth=l.__browser.barWidth}function F(t,e,n,r,i,o){var a,s=r,u=!1;void 0!==n&&(a=n,u=!0);while(s!==i)t.hasOwnProperty(s)&&(a=u?e(a,t[s],s,t):t[s],u=!0,s+=o);return a}function B(t,e){var n=l.defaults.column,r=t.aoColumns.length,i=u.extend({},l.models.oColumn,n,{nTh:e||document.createElement("th"),sTitle:n.sTitle?n.sTitle:e?e.innerHTML:"",aDataSort:n.aDataSort?n.aDataSort:[r],mData:n.mData?n.mData:r,idx:r});t.aoColumns.push(i);var o=t.aoPreSearchCols;o[r]=u.extend({},l.models.oSearch,o[r]),z(t,r,u(e).data())}function z(t,e,n){var r=t.aoColumns[e],i=t.oClasses,o=u(r.nTh);if(!r.sWidthOrig){r.sWidthOrig=o.attr("width")||null;var a=(o.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);a&&(r.sWidthOrig=a[1])}if(void 0!==n&&null!==n){R(n),D(l.defaults.column,n,!0),void 0===n.mDataProp||n.mData||(n.mData=n.mDataProp),n.sType&&(r._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),n.sClass&&o.addClass(n.sClass);var s=r.sClass;u.extend(r,n),ve(r,n,"sWidth","sWidthOrig"),s!==r.sClass&&(r.sClass=s+" "+r.sClass),void 0!==n.iDataSort&&(r.aDataSort=[n.iDataSort]),ve(r,n,"aDataSort"),r.ariaTitle||(r.ariaTitle=o.attr("aria-label"))}var c=r.mData,f=rt(c),h=r.mRender?rt(r.mRender):null,d=function(t){return"string"===typeof t&&-1!==t.indexOf("@")};r._bAttrSrc=u.isPlainObject(c)&&(d(c.sort)||d(c.type)||d(c.filter)),r._setter=null,r.fnGetData=function(t,e,n){var r=f(t,e,void 0,n);return h&&e?h(r,e,t,n):r},r.fnSetData=function(t,e,n){return it(c)(t,e,n)},"number"===typeof c||r._isArrayHost||(t._rowReadObject=!0),t.oFeatures.bSort||(r.bSortable=!1,o.addClass(i.sSortableNone));var p=-1!==u.inArray("asc",r.asSorting),g=-1!==u.inArray("desc",r.asSorting);r.bSortable&&(p||g)?p&&!g?(r.sSortingClass=i.sSortableAsc,r.sSortingClassJUI=i.sSortJUIAscAllowed):!p&&g?(r.sSortingClass=i.sSortableDesc,r.sSortingClassJUI=i.sSortJUIDescAllowed):(r.sSortingClass=i.sSortable,r.sSortingClassJUI=i.sSortJUI):(r.sSortingClass=i.sSortableNone,r.sSortingClassJUI="")}function Z(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;Jt(t);for(var n=0,r=e.length;n<r;n++)e[n].nTh.style.width=e[n].sWidth}var i=t.oScroll;""===i.sY&&""===i.sX||Xt(t),xe(t,null,"column-sizing",[t])}function U(t,e){var n=G(t,"bVisible");return"number"===typeof n[e]?n[e]:null}function H(t,e){var n=G(t,"bVisible"),r=u.inArray(e,n);return-1!==r?r:null}function $(t){var e=0;return u.each(t.aoColumns,(function(t,n){n.bVisible&&"none"!==u(n.nTh).css("display")&&e++})),e}function G(t,e){var n=[];return u.map(t.aoColumns,(function(t,r){t[e]&&n.push(r)})),n}function W(t){var e,n,r,i,o,a,s,u,c,f=t.aoColumns,h=t.aoData,d=l.ext.type.detect;for(e=0,n=f.length;e<n;e++)if(s=f[e],c=[],!s.sType&&s._sManualType)s.sType=s._sManualType;else if(!s.sType){for(r=0,i=d.length;r<i;r++){for(o=0,a=h.length;o<a;o++){if(void 0===c[o]&&(c[o]=J(t,o,e,"type")),u=d[r](c[o],t),!u&&r!==d.length-1)break;if("html"===u&&!v(c[o]))break}if(u){s.sType=u;break}}s.sType||(s.sType="string")}}function V(t,e,n,r){var i,o,a,s,l,c,f,h=t.aoColumns;if(e)for(i=e.length-1;i>=0;i--){f=e[i];var d=void 0!==f.target?f.target:void 0!==f.targets?f.targets:f.aTargets;for(Array.isArray(d)||(d=[d]),a=0,s=d.length;a<s;a++)if("number"===typeof d[a]&&d[a]>=0){while(h.length<=d[a])B(t);r(d[a],f)}else if("number"===typeof d[a]&&d[a]<0)r(h.length+d[a],f);else if("string"===typeof d[a])for(l=0,c=h.length;l<c;l++)("_all"==d[a]||u(h[l].nTh).hasClass(d[a]))&&r(l,f)}if(n)for(i=0,o=n.length;i<o;i++)r(i,n[i])}function Y(t,e,n,r){var i=t.aoData.length,o=u.extend(!0,{},l.models.oRow,{src:n?"dom":"data",idx:i});o._aData=e,t.aoData.push(o);for(var a=t.aoColumns,s=0,c=a.length;s<c;s++)a[s].sType=null;t.aiDisplayMaster.push(i);var f=t.rowIdFn(e);return void 0!==f&&(t.aIds[f]=o),!n&&t.oFeatures.bDeferRender||ct(t,i,n,r),i}function X(t,e){var n;return e instanceof u||(e=u(e)),e.map((function(e,r){return n=lt(t,r),Y(t,n.data,r,n.cells)}))}function q(t,e){return void 0!==e._DT_RowIndex?e._DT_RowIndex:null}function K(t,e,n){return u.inArray(n,t.aoData[e].anCells)}function J(t,e,n,r){"search"===r?r="filter":"order"===r&&(r="sort");var i=t.iDraw,o=t.aoColumns[n],a=t.aoData[e]._aData,s=o.sDefaultContent,u=o.fnGetData(a,r,{settings:t,row:e,col:n});if(void 0===u)return t.iDrawError!=i&&null===s&&(ge(t,0,"Requested unknown parameter "+("function"==typeof o.mData?"{function}":"'"+o.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=i),s;if(u!==a&&null!==u||null===s||void 0===r){if("function"===typeof u)return u.call(a)}else u=s;if(null===u&&"display"===r)return"";if("filter"===r){var c=l.ext.type.search;c[o.sType]&&(u=c[o.sType](u))}return u}function Q(t,e,n,r){var i=t.aoColumns[n],o=t.aoData[e]._aData;i.fnSetData(o,r,{settings:t,row:e,col:n})}var tt=/\[.*?\]$/,et=/\(\)$/;function nt(t){return u.map(t.match(/(\\.|[^\.])+/g)||[""],(function(t){return t.replace(/\\\./g,".")}))}var rt=l.util.get,it=l.util.set;function ot(t){return w(t.aoData,"_aData")}function at(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function st(t,e,n){for(var r=-1,i=0,o=t.length;i<o;i++)t[i]==e?r=i:t[i]>e&&t[i]--;-1!=r&&void 0===n&&t.splice(r,1)}function ut(t,e,n,r){var i,o,a=t.aoData[e],s=function(n,r){while(n.childNodes.length)n.removeChild(n.firstChild);n.innerHTML=J(t,e,r,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==a.src)){var u=a.anCells;if(u)if(void 0!==r)s(u[r],r);else for(i=0,o=u.length;i<o;i++)s(u[i],i)}else a._aData=lt(t,a,r,void 0===r?void 0:a._aData).data;a._aSortData=null,a._aFilterData=null;var l=t.aoColumns;if(void 0!==r)l[r].sType=null;else{for(i=0,o=l.length;i<o;i++)l[i].sType=null;ft(t,a)}}function lt(t,e,n,r){var i,o,a,s=[],u=e.firstChild,l=0,c=t.aoColumns,f=t._rowReadObject;r=void 0!==r?r:f?{}:[];var h=function(t,e){if("string"===typeof t){var n=t.indexOf("@");if(-1!==n){var i=t.substring(n+1),o=it(t);o(r,e.getAttribute(i))}}},d=function(t){if(void 0===n||n===l)if(o=c[l],a=t.innerHTML.trim(),o&&o._bAttrSrc){var e=it(o.mData._);e(r,a),h(o.mData.sort,t),h(o.mData.type,t),h(o.mData.filter,t)}else f?(o._setter||(o._setter=it(o.mData)),o._setter(r,a)):r[l]=a;l++};if(u)while(u)i=u.nodeName.toUpperCase(),"TD"!=i&&"TH"!=i||(d(u),s.push(u)),u=u.nextSibling;else{s=e.anCells;for(var p=0,g=s.length;p<g;p++)d(s[p])}var v=e.firstChild?e:e.nTr;if(v){var m=v.getAttribute("id");m&&it(t.rowId)(r,m)}return{data:r,cells:s}}function ct(t,e,n,r){var i,o,a,s,l,c,f=t.aoData[e],h=f._aData,d=[];if(null===f.nTr){for(i=n||document.createElement("tr"),f.nTr=i,f.anCells=d,i._DT_RowIndex=e,ft(t,f),s=0,l=t.aoColumns.length;s<l;s++)a=t.aoColumns[s],c=!n,o=c?document.createElement(a.sCellType):r[s],o||ge(t,0,"Incorrect column count",18),o._DT_CellIndex={row:e,column:s},d.push(o),!c&&(!a.mRender&&a.mData===s||u.isPlainObject(a.mData)&&a.mData._===s+".display")||(o.innerHTML=J(t,e,s,"display")),a.sClass&&(o.className+=" "+a.sClass),a.bVisible&&!n?i.appendChild(o):!a.bVisible&&n&&o.parentNode.removeChild(o),a.fnCreatedCell&&a.fnCreatedCell.call(t.oInstance,o,J(t,e,s),h,e,s);xe(t,"aoRowCreatedCallback",null,[i,h,e,d])}}function ft(t,e){var n=e.nTr,r=e._aData;if(n){var i=t.rowIdFn(r);if(i&&(n.id=i),r.DT_RowClass){var o=r.DT_RowClass.split(" ");e.__rowc=e.__rowc?M(e.__rowc.concat(o)):o,u(n).removeClass(e.__rowc.join(" ")).addClass(r.DT_RowClass)}r.DT_RowAttr&&u(n).attr(r.DT_RowAttr),r.DT_RowData&&u(n).data(r.DT_RowData)}}function ht(t){var e,n,r,i,o,a=t.nTHead,s=t.nTFoot,l=0===u("th, td",a).length,c=t.oClasses,f=t.aoColumns;for(l&&(i=u("<tr/>").appendTo(a)),e=0,n=f.length;e<n;e++)o=f[e],r=u(o.nTh).addClass(o.sClass),l&&r.appendTo(i),t.oFeatures.bSort&&(r.addClass(o.sSortingClass),!1!==o.bSortable&&(r.attr("tabindex",t.iTabIndex).attr("aria-controls",t.sTableId),ue(t,o.nTh,e))),o.sTitle!=r[0].innerHTML&&r.html(o.sTitle),we(t,"header")(t,r,o,c);if(l&&mt(t.aoHeader,a),u(a).children("tr").children("th, td").addClass(c.sHeaderTH),u(s).children("tr").children("th, td").addClass(c.sFooterTH),null!==s){var h=t.aoFooter[0];for(e=0,n=h.length;e<n;e++)o=f[e],o?(o.nTf=h[e].cell,o.sClass&&u(o.nTf).addClass(o.sClass)):ge(t,0,"Incorrect column count",18)}}function dt(t,e,n){var r,i,o,a,s,l,c,f,h,d=[],p=[],g=t.aoColumns.length;if(e){for(void 0===n&&(n=!1),r=0,i=e.length;r<i;r++){for(d[r]=e[r].slice(),d[r].nTr=e[r].nTr,o=g-1;o>=0;o--)t.aoColumns[o].bVisible||n||d[r].splice(o,1);p.push([])}for(r=0,i=d.length;r<i;r++){if(c=d[r].nTr,c)while(l=c.firstChild)c.removeChild(l);for(o=0,a=d[r].length;o<a;o++)if(f=1,h=1,void 0===p[r][o]){c.appendChild(d[r][o].cell),p[r][o]=1;while(void 0!==d[r+f]&&d[r][o].cell==d[r+f][o].cell)p[r+f][o]=1,f++;while(void 0!==d[r][o+h]&&d[r][o].cell==d[r][o+h].cell){for(s=0;s<f;s++)p[r+s][o+h]=1;h++}u(d[r][o].cell).attr("rowspan",f).attr("colspan",h)}}}}function pt(t,e){bt(t);var n=xe(t,"aoPreDrawCallback","preDraw",[t]);if(-1===u.inArray(!1,n)){var r=[],i=0,o=t.asStripeClasses,a=o.length,s=t.oLanguage,l="ssp"==Se(t),c=t.aiDisplay,f=t._iDisplayStart,h=t.fnDisplayEnd();if(t.bDrawing=!0,t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,Vt(t,!1);else if(l){if(!t.bDestroying&&!e)return void _t(t)}else t.iDraw++;if(0!==c.length)for(var d=l?0:f,p=l?t.aoData.length:h,g=d;g<p;g++){var v=c[g],m=t.aoData[v];null===m.nTr&&ct(t,v);var y=m.nTr;if(0!==a){var b=o[i%a];m._sRowStripe!=b&&(u(y).removeClass(m._sRowStripe).addClass(b),m._sRowStripe=b)}xe(t,"aoRowCallback",null,[y,m._aData,i,g,v]),r.push(y),i++}else{var x=s.sZeroRecords;1==t.iDraw&&"ajax"==Se(t)?x=s.sLoadingRecords:s.sEmptyTable&&0===t.fnRecordsTotal()&&(x=s.sEmptyTable),r[0]=u("<tr/>",{class:a?o[0]:""}).append(u("<td />",{valign:"top",colSpan:$(t),class:t.oClasses.sRowEmpty}).html(x))[0]}xe(t,"aoHeaderCallback","header",[u(t.nTHead).children("tr")[0],ot(t),f,h,c]),xe(t,"aoFooterCallback","footer",[u(t.nTFoot).children("tr")[0],ot(t),f,h,c]);var _=u(t.nTBody);_.children().detach(),_.append(u(r)),xe(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}else Vt(t,!1)}function gt(t,e){var n=t.oFeatures,r=n.bSort,i=n.bFilter;r&&oe(t),i?kt(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,pt(t),t._drawHold=!1}function vt(t){var e=t.oClasses,n=u(t.nTable),r=u("<div/>").insertBefore(n),i=t.oFeatures,o=u("<div/>",{id:t.sTableId+"_wrapper",class:e.sWrapper+(t.nTFoot?"":" "+e.sNoFooter)});t.nHolding=r[0],t.nTableWrapper=o[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var a,s,c,f,h,d,p=t.sDom.split(""),g=0;g<p.length;g++){if(a=null,s=p[g],"<"==s){if(c=u("<div/>")[0],f=p[g+1],"'"==f||'"'==f){h="",d=2;while(p[g+d]!=f)h+=p[g+d],d++;if("H"==h?h=e.sJUIHeader:"F"==h&&(h=e.sJUIFooter),-1!=h.indexOf(".")){var v=h.split(".");c.id=v[0].substr(1,v[0].length-1),c.className=v[1]}else"#"==h.charAt(0)?c.id=h.substr(1,h.length-1):c.className=h;g+=d}o.append(c),o=u(c)}else if(">"==s)o=o.parent();else if("l"==s&&i.bPaginate&&i.bLengthChange)a=Ht(t);else if("f"==s&&i.bFilter)a=Tt(t);else if("r"==s&&i.bProcessing)a=Wt(t);else if("t"==s)a=Yt(t);else if("i"==s&&i.bInfo)a=jt(t);else if("p"==s&&i.bPaginate)a=$t(t);else if(0!==l.ext.feature.length)for(var m=l.ext.feature,y=0,b=m.length;y<b;y++)if(s==m[y].cFeature){a=m[y].fnInit(t);break}if(a){var x=t.aanFeatures;x[s]||(x[s]=[]),x[s].push(a),o.append(a)}}r.replaceWith(o),t.nHolding=null}function mt(t,e){var n,r,i,o,a,s,l,c,f,h,d,p=u(e).children("tr"),g=function(t,e,n){var r=t[e];while(r[n])n++;return n};for(t.splice(0,t.length),i=0,s=p.length;i<s;i++)t.push([]);for(i=0,s=p.length;i<s;i++){n=p[i],c=0,r=n.firstChild;while(r){if("TD"==r.nodeName.toUpperCase()||"TH"==r.nodeName.toUpperCase())for(f=1*r.getAttribute("colspan"),h=1*r.getAttribute("rowspan"),f=f&&0!==f&&1!==f?f:1,h=h&&0!==h&&1!==h?h:1,l=g(t,i,c),d=1===f,a=0;a<f;a++)for(o=0;o<h;o++)t[i+o][l+a]={cell:r,unique:d},t[i+o].nTr=n;r=r.nextSibling}}}function yt(t,e,n){var r=[];n||(n=t.aoHeader,e&&(n=[],mt(n,e)));for(var i=0,o=n.length;i<o;i++)for(var a=0,s=n[i].length;a<s;a++)!n[i][a].unique||r[a]&&t.bSortCellsTop||(r[a]=n[i][a].cell);return r}function bt(t){var e="ssp"==Se(t),n=t.iInitDisplayStart;void 0!==n&&-1!==n&&(t._iDisplayStart=e?n:n>=t.fnRecordsDisplay()?0:n,t.iInitDisplayStart=-1)}function xt(t,e,n){if(xe(t,"aoServerParams","serverParams",[e]),e&&Array.isArray(e)){var r={},i=/(.*?)\[\]$/;u.each(e,(function(t,e){var n=e.name.match(i);if(n){var o=n[0];r[o]||(r[o]=[]),r[o].push(e.value)}else r[e.name]=e.value})),e=r}var o,a=t.ajax,s=t.oInstance,l=function(e){var r=t.jqXHR?t.jqXHR.status:null;(null===e||"number"===typeof r&&204==r)&&(e={},Et(t,e,[]));var i=e.error||e.sError;i&&ge(t,0,i),t.json=e,xe(t,null,"xhr",[t,e,t.jqXHR]),n(e)};if(u.isPlainObject(a)&&a.data){o=a.data;var c="function"===typeof o?o(e,t):o;e="function"===typeof o&&c?c:u.extend(!0,e,c),delete a.data}var f={data:e,success:l,dataType:"json",cache:!1,type:t.sServerMethod,error:function(e,n,r){var i=xe(t,null,"xhr",[t,null,t.jqXHR]);-1===u.inArray(!0,i)&&("parsererror"==n?ge(t,0,"Invalid JSON response",1):4===e.readyState&&ge(t,0,"Ajax error",7)),Vt(t,!1)}};t.oAjaxData=e,xe(t,null,"preXhr",[t,e]),t.fnServerData?t.fnServerData.call(s,t.sAjaxSource,u.map(e,(function(t,e){return{name:e,value:t}})),l,t):t.sAjaxSource||"string"===typeof a?t.jqXHR=u.ajax(u.extend(f,{url:a||t.sAjaxSource})):"function"===typeof a?t.jqXHR=a.call(s,e,l,t):(t.jqXHR=u.ajax(u.extend(f,a)),a.data=o)}function _t(t){t.iDraw++,Vt(t,!0);var e=t._drawHold;xt(t,wt(t),(function(n){t._drawHold=e,St(t,n),t._drawHold=!1}))}function wt(t){var e,n,r,i,o=t.aoColumns,a=o.length,s=t.oFeatures,c=t.oPreviousSearch,f=t.aoPreSearchCols,h=[],d=ie(t),p=t._iDisplayStart,g=!1!==s.bPaginate?t._iDisplayLength:-1,v=function(t,e){h.push({name:t,value:e})};v("sEcho",t.iDraw),v("iColumns",a),v("sColumns",w(o,"sName").join(",")),v("iDisplayStart",p),v("iDisplayLength",g);var m={draw:t.iDraw,columns:[],order:[],start:p,length:g,search:{value:c.sSearch,regex:c.bRegex}};for(e=0;e<a;e++)r=o[e],i=f[e],n="function"==typeof r.mData?"function":r.mData,m.columns.push({data:n,name:r.sName,searchable:r.bSearchable,orderable:r.bSortable,search:{value:i.sSearch,regex:i.bRegex}}),v("mDataProp_"+e,n),s.bFilter&&(v("sSearch_"+e,i.sSearch),v("bRegex_"+e,i.bRegex),v("bSearchable_"+e,r.bSearchable)),s.bSort&&v("bSortable_"+e,r.bSortable);s.bFilter&&(v("sSearch",c.sSearch),v("bRegex",c.bRegex)),s.bSort&&(u.each(d,(function(t,e){m.order.push({column:e.col,dir:e.dir}),v("iSortCol_"+t,e.col),v("sSortDir_"+t,e.dir)})),v("iSortingCols",d.length));var y=l.ext.legacy.ajax;return null===y?t.sAjaxSource?h:m:y?h:m}function St(t,e){var n=function(t,n){return void 0!==e[t]?e[t]:e[n]},r=Et(t,e),i=n("sEcho","draw"),o=n("iTotalRecords","recordsTotal"),a=n("iTotalDisplayRecords","recordsFiltered");if(void 0!==i){if(1*i<t.iDraw)return;t.iDraw=1*i}r||(r=[]),at(t),t._iRecordsTotal=parseInt(o,10),t._iRecordsDisplay=parseInt(a,10);for(var s=0,u=r.length;s<u;s++)Y(t,r[s]);t.aiDisplay=t.aiDisplayMaster.slice(),pt(t,!0),t._bInitComplete||Zt(t,e),Vt(t,!1)}function Et(t,e,n){var r=u.isPlainObject(t.ajax)&&void 0!==t.ajax.dataSrc?t.ajax.dataSrc:t.sAjaxDataProp;if(!n)return"data"===r?e.aaData||e[r]:""!==r?rt(r)(e):e;it(r)(e,n)}function Tt(t){var e=t.oClasses,n=t.sTableId,r=t.oLanguage,i=t.oPreviousSearch,o=t.aanFeatures,a='<input type="search" class="'+e.sFilterInput+'"/>',s=r.sSearch;s=s.match(/_INPUT_/)?s.replace("_INPUT_",a):s+a;var l=u("<div/>",{id:o.f?null:n+"_filter",class:e.sFilter}).append(u("<label/>").append(s)),c=function(e){o.f;var n=this.value?this.value:"";i["return"]&&"Enter"!==e.key||n!=i.sSearch&&(kt(t,{sSearch:n,bRegex:i.bRegex,bSmart:i.bSmart,bCaseInsensitive:i.bCaseInsensitive,return:i["return"]}),t._iDisplayStart=0,pt(t))},f=null!==t.searchDelay?t.searchDelay:"ssp"===Se(t)?400:0,h=u("input",l).val(i.sSearch).attr("placeholder",r.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",f?Qt(c,f):c).on("mouseup.DT",(function(t){setTimeout((function(){c.call(h[0],t)}),10)})).on("keypress.DT",(function(t){if(13==t.keyCode)return!1})).attr("aria-controls",n);return u(t.nTable).on("search.dt.DT",(function(e,n){if(t===n)try{h[0]!==document.activeElement&&h.val(i.sSearch)}catch(r){}})),l[0]}function kt(t,e,n){var r=t.oPreviousSearch,i=t.aoPreSearchCols,o=function(t){r.sSearch=t.sSearch,r.bRegex=t.bRegex,r.bSmart=t.bSmart,r.bCaseInsensitive=t.bCaseInsensitive,r["return"]=t["return"]},a=function(t){return void 0!==t.bEscapeRegex?!t.bEscapeRegex:t.bRegex};if(W(t),"ssp"!=Se(t)){At(t,e.sSearch,n,a(e),e.bSmart,e.bCaseInsensitive),o(e);for(var s=0;s<i.length;s++)Mt(t,i[s].sSearch,s,a(i[s]),i[s].bSmart,i[s].bCaseInsensitive);Ct(t)}else o(e);t.bFiltered=!0,xe(t,null,"search",[t])}function Ct(t){for(var e,n,r=l.ext.search,i=t.aiDisplay,o=0,a=r.length;o<a;o++){for(var s=[],c=0,f=i.length;c<f;c++)n=i[c],e=t.aoData[n],r[o](t,e._aFilterData,n,e._aData,c)&&s.push(n);i.length=0,u.merge(i,s)}}function Mt(t,e,n,r,i,o){if(""!==e){for(var a,s=[],u=t.aiDisplay,l=It(e,r,i,o),c=0;c<u.length;c++)a=t.aoData[u[c]]._aFilterData[n],l.test(a)&&s.push(u[c]);t.aiDisplay=s}}function At(t,e,n,r,i,o){var a,s,u,c=It(e,r,i,o),f=t.oPreviousSearch.sSearch,h=t.aiDisplayMaster,d=[];if(0!==l.ext.search.length&&(n=!0),s=Lt(t),e.length<=0)t.aiDisplay=h.slice();else{for((s||n||r||f.length>e.length||0!==e.indexOf(f)||t.bSorted)&&(t.aiDisplay=h.slice()),a=t.aiDisplay,u=0;u<a.length;u++)c.test(t.aoData[a[u]]._sFilterRow)&&d.push(a[u]);t.aiDisplay=d}}function It(t,e,n,r){if(t=e?t:Ot(t),n){var i=u.map(t.match(/["\u201C][^"\u201D]+["\u201D]|[^ ]+/g)||[""],(function(t){if('"'===t.charAt(0)){var e=t.match(/^"(.*)"$/);t=e?e[1]:t}else if("“"===t.charAt(0)){e=t.match(/^\u201C(.*)\u201D$/);t=e?e[1]:t}return t.replace('"',"")}));t="^(?=.*?"+i.join(")(?=.*?")+").*$"}return new RegExp(t,r?"i":"")}var Ot=l.util.escapeRegex,Dt=u("<div>")[0],Pt=void 0!==Dt.textContent;function Lt(t){var e,n,r,i,o,a,s,u,l=t.aoColumns,c=!1;for(n=0,i=t.aoData.length;n<i;n++)if(u=t.aoData[n],!u._aFilterData){for(a=[],r=0,o=l.length;r<o;r++)e=l[r],e.bSearchable?(s=J(t,n,r,"filter"),null===s&&(s=""),"string"!==typeof s&&s.toString&&(s=s.toString())):s="",s.indexOf&&-1!==s.indexOf("&")&&(Dt.innerHTML=s,s=Pt?Dt.textContent:Dt.innerText),s.replace&&(s=s.replace(/[\r\n\u2028]/g,"")),a.push(s);u._aFilterData=a,u._sFilterRow=a.join("  "),c=!0}return c}function Nt(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function Rt(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function jt(t){var e=t.sTableId,n=t.aanFeatures.i,r=u("<div/>",{class:t.oClasses.sInfo,id:n?null:e+"_info"});return n||(t.aoDrawCallback.push({fn:Ft,sName:"information"}),r.attr("role","status").attr("aria-live","polite"),u(t.nTable).attr("aria-describedby",e+"_info")),r[0]}function Ft(t){var e=t.aanFeatures.i;if(0!==e.length){var n=t.oLanguage,r=t._iDisplayStart+1,i=t.fnDisplayEnd(),o=t.fnRecordsTotal(),a=t.fnRecordsDisplay(),s=a?n.sInfo:n.sInfoEmpty;a!==o&&(s+=" "+n.sInfoFiltered),s+=n.sInfoPostFix,s=Bt(t,s);var l=n.fnInfoCallback;null!==l&&(s=l.call(t.oInstance,t,r,i,o,a,s)),u(e).html(s)}}function Bt(t,e){var n=t.fnFormatNumber,r=t._iDisplayStart+1,i=t._iDisplayLength,o=t.fnRecordsDisplay(),a=-1===i;return e.replace(/_START_/g,n.call(t,r)).replace(/_END_/g,n.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,n.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(t,o)).replace(/_PAGE_/g,n.call(t,a?1:Math.ceil(r/i))).replace(/_PAGES_/g,n.call(t,a?1:Math.ceil(o/i)))}function zt(t){var e,n,r,i=t.iInitDisplayStart,o=t.aoColumns,a=t.oFeatures,s=t.bDeferLoading;if(t.bInitialised){for(vt(t),ht(t),dt(t,t.aoHeader),dt(t,t.aoFooter),Vt(t,!0),a.bAutoWidth&&Jt(t),e=0,n=o.length;e<n;e++)r=o[e],r.sWidth&&(r.nTh.style.width=re(r.sWidth));xe(t,null,"preInit",[t]),gt(t);var u=Se(t);("ssp"!=u||s)&&("ajax"==u?xt(t,[],(function(n){var r=Et(t,n);for(e=0;e<r.length;e++)Y(t,r[e]);t.iInitDisplayStart=i,gt(t),Vt(t,!1),Zt(t,n)}),t):(Vt(t,!1),Zt(t)))}else setTimeout((function(){zt(t)}),200)}function Zt(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&Z(t),xe(t,null,"plugin-init",[t,e]),xe(t,"aoInitComplete","init",[t,e])}function Ut(t,e){var n=parseInt(e,10);t._iDisplayLength=n,_e(t),xe(t,null,"length",[t,n])}function Ht(t){for(var e=t.oClasses,n=t.sTableId,r=t.aLengthMenu,i=Array.isArray(r[0]),o=i?r[0]:r,a=i?r[1]:r,s=u("<select/>",{name:n+"_length","aria-controls":n,class:e.sLengthSelect}),l=0,c=o.length;l<c;l++)s[0][l]=new Option("number"===typeof a[l]?t.fnFormatNumber(a[l]):a[l],o[l]);var f=u("<div><label/></div>").addClass(e.sLength);return t.aanFeatures.l||(f[0].id=n+"_length"),f.children().append(t.oLanguage.sLengthMenu.replace("_MENU_",s[0].outerHTML)),u("select",f).val(t._iDisplayLength).on("change.DT",(function(e){Ut(t,u(this).val()),pt(t)})),u(t.nTable).on("length.dt.DT",(function(e,n,r){t===n&&u("select",f).val(r)})),f[0]}function $t(t){var e=t.sPaginationType,n=l.ext.pager[e],r="function"===typeof n,i=function(t){pt(t)},o=u("<div/>").addClass(t.oClasses.sPaging+e)[0],a=t.aanFeatures;return r||n.fnInit(t,o,i),a.p||(o.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(t){if(r){var e,o,s=t._iDisplayStart,u=t._iDisplayLength,l=t.fnRecordsDisplay(),c=-1===u,f=c?0:Math.ceil(s/u),h=c?1:Math.ceil(l/u),d=n(f,h);for(e=0,o=a.p.length;e<o;e++)we(t,"pageButton")(t,a.p[e],e,d,f,h)}else n.fnUpdate(t,i)},sName:"pagination"})),o}function Gt(t,e,n){var r=t._iDisplayStart,i=t._iDisplayLength,o=t.fnRecordsDisplay();0===o||-1===i?r=0:"number"===typeof e?(r=e*i,r>o&&(r=0)):"first"==e?r=0:"previous"==e?(r=i>=0?r-i:0,r<0&&(r=0)):"next"==e?r+i<o&&(r+=i):"last"==e?r=Math.floor((o-1)/i)*i:ge(t,0,"Unknown paging action: "+e,5);var a=t._iDisplayStart!==r;return t._iDisplayStart=r,a?(xe(t,null,"page",[t]),n&&pt(t)):xe(t,null,"page-nc",[t]),a}function Wt(t){return u("<div/>",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing,role:"status"}).html(t.oLanguage.sProcessing).append("<div><div></div><div></div><div></div><div></div></div>").insertBefore(t.nTable)[0]}function Vt(t,e){t.oFeatures.bProcessing&&u(t.aanFeatures.r).css("display",e?"block":"none"),xe(t,null,"processing",[t,e])}function Yt(t){var e=u(t.nTable),n=t.oScroll;if(""===n.sX&&""===n.sY)return t.nTable;var r=n.sX,i=n.sY,o=t.oClasses,a=e.children("caption"),s=a.length?a[0]._captionSide:null,l=u(e[0].cloneNode(!1)),c=u(e[0].cloneNode(!1)),f=e.children("tfoot"),h="<div/>",d=function(t){return t?re(t):null};f.length||(f=null);var p=u(h,{class:o.sScrollWrapper}).append(u(h,{class:o.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:r?d(r):"100%"}).append(u(h,{class:o.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===s?a:null).append(e.children("thead"))))).append(u(h,{class:o.sScrollBody}).css({position:"relative",overflow:"auto",width:d(r)}).append(e));f&&p.append(u(h,{class:o.sScrollFoot}).css({overflow:"hidden",border:0,width:r?d(r):"100%"}).append(u(h,{class:o.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===s?a:null).append(e.children("tfoot")))));var g=p.children(),v=g[0],m=g[1],y=f?g[2]:null;return r&&u(m).on("scroll.DT",(function(t){var e=this.scrollLeft;v.scrollLeft=e,f&&(y.scrollLeft=e)})),u(m).css("max-height",i),n.bCollapse||u(m).css("height",i),t.nScrollHead=v,t.nScrollBody=m,t.nScrollFoot=y,t.aoDrawCallback.push({fn:Xt,sName:"scrolling"}),p[0]}function Xt(t){var e,n,r,i,o,a,s,l,c,f=t.oScroll,h=f.sX,d=f.sXInner,p=f.sY,g=f.iBarWidth,v=u(t.nScrollHead),m=v[0].style,y=v.children("div"),b=y[0].style,x=y.children("table"),_=t.nScrollBody,S=u(_),E=_.style,T=u(t.nScrollFoot),k=T.children("div"),C=k.children("table"),M=u(t.nTHead),A=u(t.nTable),I=A[0],O=I.style,D=t.nTFoot?u(t.nTFoot):null,P=t.oBrowser,L=P.bScrollOversize,N=(w(t.aoColumns,"nTh"),[]),R=[],j=[],F=[],B=function(t){var e=t.style;e.paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0},z=_.scrollHeight>_.clientHeight;if(t.scrollBarVis!==z&&void 0!==t.scrollBarVis)return t.scrollBarVis=z,void Z(t);t.scrollBarVis=z,A.children("thead, tfoot").remove(),D&&(a=D.clone().prependTo(A),n=D.find("tr"),i=a.find("tr"),a.find("[id]").removeAttr("id")),o=M.clone().prependTo(A),e=M.find("tr"),r=o.find("tr"),o.find("th, td").removeAttr("tabindex"),o.find("[id]").removeAttr("id"),h||(E.width="100%",v[0].style.width="100%"),u.each(yt(t,o),(function(e,n){s=U(t,e),n.style.width=t.aoColumns[s].sWidth})),D&&qt((function(t){t.style.width=""}),i),c=A.outerWidth(),""===h?(O.width="100%",L&&(A.find("tbody").height()>_.offsetHeight||"scroll"==S.css("overflow-y"))&&(O.width=re(A.outerWidth()-g)),c=A.outerWidth()):""!==d&&(O.width=re(d),c=A.outerWidth()),qt(B,r),qt((function(t){var e=window.getComputedStyle?window.getComputedStyle(t).width:re(u(t).width());j.push(t.innerHTML),N.push(e)}),r),qt((function(t,e){t.style.width=N[e]}),e),u(r).css("height",0),D&&(qt(B,i),qt((function(t){F.push(t.innerHTML),R.push(re(u(t).css("width")))}),i),qt((function(t,e){t.style.width=R[e]}),n),u(i).height(0)),qt((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+j[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=N[e]}),r),D&&qt((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+F[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=R[e]}),i),Math.round(A.outerWidth())<Math.round(c)?(l=_.scrollHeight>_.offsetHeight||"scroll"==S.css("overflow-y")?c+g:c,L&&(_.scrollHeight>_.offsetHeight||"scroll"==S.css("overflow-y"))&&(O.width=re(l-g)),""!==h&&""===d||ge(t,1,"Possible column misalignment",6)):l="100%",E.width=re(l),m.width=re(l),D&&(t.nScrollFoot.style.width=re(l)),p||L&&(E.height=re(I.offsetHeight+g));var H=A.outerWidth();x[0].style.width=re(H),b.width=re(H);var $=A.height()>_.clientHeight||"scroll"==S.css("overflow-y"),G="padding"+(P.bScrollbarLeft?"Left":"Right");b[G]=$?g+"px":"0px",D&&(C[0].style.width=re(H),k[0].style.width=re(H),k[0].style[G]=$?g+"px":"0px"),A.children("colgroup").insertBefore(A.children("thead")),S.trigger("scroll"),!t.bSorted&&!t.bFiltered||t._drawHold||(_.scrollTop=0)}function qt(t,e,n){var r,i,o=0,a=0,s=e.length;while(a<s){r=e[a].firstChild,i=n?n[a].firstChild:null;while(r)1===r.nodeType&&(n?t(r,i,o):t(r,o),o++),r=r.nextSibling,i=n?i.nextSibling:null;a++}}var Kt=/<.*?>/g;function Jt(t){var e,n,r,i=t.nTable,o=t.aoColumns,a=t.oScroll,s=a.sY,l=a.sX,c=a.sXInner,f=o.length,h=G(t,"bVisible"),d=u("th",t.nTHead),p=i.getAttribute("width"),g=i.parentNode,v=!1,m=t.oBrowser,y=m.bScrollOversize,b=i.style.width;b&&-1!==b.indexOf("%")&&(p=b);var x=te(w(o,"sWidthOrig"),g);for(e=0;e<h.length;e++)n=o[h[e]],null!==n.sWidth&&(n.sWidth=x[e],v=!0);if(y||!v&&!l&&!s&&f==$(t)&&f==d.length)for(e=0;e<f;e++){var _=U(t,e);null!==_&&(o[_].sWidth=re(d.eq(e).width()))}else{var S=u(i).clone().css("visibility","hidden").removeAttr("id");S.find("tbody tr").remove();var E=u("<tr/>").appendTo(S.find("tbody"));for(S.find("thead, tfoot").remove(),S.append(u(t.nTHead).clone()).append(u(t.nTFoot).clone()),S.find("tfoot th, tfoot td").css("width",""),d=yt(t,S.find("thead")[0]),e=0;e<h.length;e++)n=o[h[e]],d[e].style.width=null!==n.sWidthOrig&&""!==n.sWidthOrig?re(n.sWidthOrig):"",n.sWidthOrig&&l&&u(d[e]).append(u("<div/>").css({width:n.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(t.aoData.length)for(e=0;e<h.length;e++)r=h[e],n=o[r],u(ee(t,r)).clone(!1).append(n.sContentPadding).appendTo(E);u("[name]",S).removeAttr("name");var T=u("<div/>").css(l||s?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(S).appendTo(g);l&&c?S.width(c):l?(S.css("width","auto"),S.removeAttr("width"),S.width()<g.clientWidth&&p&&S.width(g.clientWidth)):s?S.width(g.clientWidth):p&&S.width(p);var k=0;for(e=0;e<h.length;e++){var C=u(d[e]),M=C.outerWidth()-C.width(),A=m.bBounding?Math.ceil(d[e].getBoundingClientRect().width):C.outerWidth();k+=A,o[h[e]].sWidth=re(A-M)}i.style.width=re(k),T.remove()}if(p&&(i.style.width=re(p)),(p||l)&&!t._reszEvt){var I=function(){u(window).on("resize.DT-"+t.sInstance,Qt((function(){Z(t)})))};y?setTimeout(I,1e3):I(),t._reszEvt=!0}}var Qt=l.util.throttle;function te(t,e){for(var n=[],r=[],i=0;i<t.length;i++)t[i]?n.push(u("<div/>").css("width",re(t[i])).appendTo(e||document.body)):n.push(null);for(i=0;i<t.length;i++)r.push(n[i]?n[i][0].offsetWidth:null);return u(n).remove(),r}function ee(t,e){var n=ne(t,e);if(n<0)return null;var r=t.aoData[n];return r.nTr?r.anCells[e]:u("<td/>").html(J(t,n,e,"display"))[0]}function ne(t,e){for(var n,r=-1,i=-1,o=0,a=t.aoData.length;o<a;o++)n=J(t,o,e,"display")+"",n=n.replace(Kt,""),n=n.replace(/&nbsp;/g," "),n.length>r&&(r=n.length,i=o);return i}function re(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function ie(t){var e,n,r,i,o,a,s,c=[],f=t.aoColumns,h=t.aaSortingFixed,d=u.isPlainObject(h),p=[],g=function(t){t.length&&!Array.isArray(t[0])?p.push(t):u.merge(p,t)};for(Array.isArray(h)&&g(h),d&&h.pre&&g(h.pre),g(t.aaSorting),d&&h.post&&g(h.post),e=0;e<p.length;e++)for(s=p[e][0],i=f[s].aDataSort,n=0,r=i.length;n<r;n++)o=i[n],a=f[o].sType||"string",void 0===p[e]._idx&&(p[e]._idx=u.inArray(p[e][1],f[o].asSorting)),c.push({src:s,col:o,dir:p[e][1],index:p[e]._idx,type:a,formatter:l.ext.type.order[a+"-pre"]});return c}function oe(t){var e,n,r,i,o,a=[],s=l.ext.type.order,u=t.aoData,c=(t.aoColumns,0),f=t.aiDisplayMaster;for(W(t),o=ie(t),e=0,n=o.length;e<n;e++)i=o[e],i.formatter&&c++,ce(t,i.col);if("ssp"!=Se(t)&&0!==o.length){for(e=0,r=f.length;e<r;e++)a[f[e]]=e;c===o.length?f.sort((function(t,e){var n,r,i,s,l,c=o.length,f=u[t]._aSortData,h=u[e]._aSortData;for(i=0;i<c;i++)if(l=o[i],n=f[l.col],r=h[l.col],s=n<r?-1:n>r?1:0,0!==s)return"asc"===l.dir?s:-s;return n=a[t],r=a[e],n<r?-1:n>r?1:0})):f.sort((function(t,e){var n,r,i,l,c,f,h=o.length,d=u[t]._aSortData,p=u[e]._aSortData;for(i=0;i<h;i++)if(c=o[i],n=d[c.col],r=p[c.col],f=s[c.type+"-"+c.dir]||s["string-"+c.dir],l=f(n,r),0!==l)return l;return n=a[t],r=a[e],n<r?-1:n>r?1:0}))}t.bSorted=!0}function ae(t){for(var e,n,r=t.aoColumns,i=ie(t),o=t.oLanguage.oAria,a=0,s=r.length;a<s;a++){var u=r[a],l=u.asSorting,c=u.ariaTitle||u.sTitle.replace(/<.*?>/g,""),f=u.nTh;f.removeAttribute("aria-sort"),u.bSortable?(i.length>0&&i[0].col==a?(f.setAttribute("aria-sort","asc"==i[0].dir?"ascending":"descending"),n=l[i[0].index+1]||l[0]):n=l[0],e=c+("asc"===n?o.sSortAscending:o.sSortDescending)):e=c,f.setAttribute("aria-label",e)}}function se(t,e,n,r){var i,o=t.aoColumns[e],a=t.aaSorting,s=o.asSorting,l=function(t,e){var n=t._idx;return void 0===n&&(n=u.inArray(t[1],s)),n+1<s.length?n+1:e?null:0};if("number"===typeof a[0]&&(a=t.aaSorting=[a]),n&&t.oFeatures.bSortMulti){var c=u.inArray(e,w(a,"0"));-1!==c?(i=l(a[c],!0),null===i&&1===a.length&&(i=0),null===i?a.splice(c,1):(a[c][1]=s[i],a[c]._idx=i)):(a.push([e,s[0],0]),a[a.length-1]._idx=0)}else a.length&&a[0][0]==e?(i=l(a[0]),a.length=1,a[0][1]=s[i],a[0]._idx=i):(a.length=0,a.push([e,s[0]]),a[0]._idx=0);gt(t),"function"==typeof r&&r(t)}function ue(t,e,n,r){var i=t.aoColumns[n];ye(e,{},(function(e){!1!==i.bSortable&&(t.oFeatures.bProcessing?(Vt(t,!0),setTimeout((function(){se(t,n,e.shiftKey,r),"ssp"!==Se(t)&&Vt(t,!1)}),0)):se(t,n,e.shiftKey,r))}))}function le(t){var e,n,r,i=t.aLastSort,o=t.oClasses.sSortColumn,a=ie(t),s=t.oFeatures;if(s.bSort&&s.bSortClasses){for(e=0,n=i.length;e<n;e++)r=i[e].src,u(w(t.aoData,"anCells",r)).removeClass(o+(e<2?e+1:3));for(e=0,n=a.length;e<n;e++)r=a[e].src,u(w(t.aoData,"anCells",r)).addClass(o+(e<2?e+1:3))}t.aLastSort=a}function ce(t,e){var n,r,i,o=t.aoColumns[e],a=l.ext.order[o.sSortDataType];a&&(n=a.call(t.oInstance,t,e,H(t,e)));for(var s=l.ext.type.order[o.sType+"-pre"],u=0,c=t.aoData.length;u<c;u++)r=t.aoData[u],r._aSortData||(r._aSortData=[]),r._aSortData[e]&&!a||(i=a?n[u]:J(t,u,e,"sort"),r._aSortData[e]=s?s(i):i)}function fe(t){if(!t._bLoadingState){var e={time:+new Date,start:t._iDisplayStart,length:t._iDisplayLength,order:u.extend(!0,[],t.aaSorting),search:Nt(t.oPreviousSearch),columns:u.map(t.aoColumns,(function(e,n){return{visible:e.bVisible,search:Nt(t.aoPreSearchCols[n])}}))};t.oSavedState=e,xe(t,"aoStateSaveParams","stateSaveParams",[t,e]),t.oFeatures.bStateSave&&!t.bDestroying&&t.fnStateSaveCallback.call(t.oInstance,t,e)}}function he(t,e,n){if(t.oFeatures.bStateSave){var r=function(e){de(t,e,n)},i=t.fnStateLoadCallback.call(t.oInstance,t,r);return void 0!==i&&de(t,i,n),!0}n()}function de(t,e,n){var r,i,o=t.aoColumns;t._bLoadingState=!0;var a=t._bInitComplete?new l.Api(t):null;if(!e||!e.time)return t._bLoadingState=!1,void n();var s=xe(t,"aoStateLoadParams","stateLoadParams",[t,e]);if(-1!==u.inArray(!1,s))return t._bLoadingState=!1,void n();var c=t.iStateDuration;if(c>0&&e.time<+new Date-1e3*c)return t._bLoadingState=!1,void n();if(e.columns&&o.length!==e.columns.length)return t._bLoadingState=!1,void n();if(t.oLoadedState=u.extend(!0,{},e),void 0!==e.length&&(a?a.page.len(e.length):t._iDisplayLength=e.length),void 0!==e.start&&(null===a?(t._iDisplayStart=e.start,t.iInitDisplayStart=e.start):Gt(t,e.start/t._iDisplayLength)),void 0!==e.order&&(t.aaSorting=[],u.each(e.order,(function(e,n){t.aaSorting.push(n[0]>=o.length?[0,n[1]]:n)}))),void 0!==e.search&&u.extend(t.oPreviousSearch,Rt(e.search)),e.columns){for(r=0,i=e.columns.length;r<i;r++){var f=e.columns[r];void 0!==f.visible&&(a?a.column(r).visible(f.visible,!1):o[r].bVisible=f.visible),void 0!==f.search&&u.extend(t.aoPreSearchCols[r],Rt(f.search))}a&&a.columns.adjust()}t._bLoadingState=!1,xe(t,"aoStateLoaded","stateLoaded",[t,e]),n()}function pe(t){var e=l.settings,n=u.inArray(t,w(e,"nTable"));return-1!==n?e[n]:null}function ge(t,e,n,r){if(n="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+n,r&&(n+=". For more information about this error, please see https://datatables.net/tn/"+r),e)window.console&&console.log&&console.log(n);else{var i=l.ext,o=i.sErrMode||i.errMode;if(t&&xe(t,null,"error",[t,r,n]),"alert"==o)alert(n);else{if("throw"==o)throw new Error(n);"function"==typeof o&&o(t,r,n)}}}function ve(t,e,n,r){Array.isArray(n)?u.each(n,(function(n,r){Array.isArray(r)?ve(t,e,r[0],r[1]):ve(t,e,r)})):(void 0===r&&(r=n),void 0!==e[n]&&(t[r]=e[n]))}function me(t,e,n){var r;for(var i in e)e.hasOwnProperty(i)&&(r=e[i],u.isPlainObject(r)?(u.isPlainObject(t[i])||(t[i]={}),u.extend(!0,t[i],r)):n&&"data"!==i&&"aaData"!==i&&Array.isArray(r)?t[i]=r.slice():t[i]=r);return t}function ye(t,e,n){u(t).on("click.DT",e,(function(e){u(t).trigger("blur"),n(e)})).on("keypress.DT",e,(function(t){13===t.which&&(t.preventDefault(),n(t))})).on("selectstart.DT",(function(){return!1}))}function be(t,e,n,r){n&&t[e].push({fn:n,sName:r})}function xe(t,e,n,r){var i=[];if(e&&(i=u.map(t[e].slice().reverse(),(function(e,n){return e.fn.apply(t.oInstance,r)}))),null!==n){var o=u.Event(n+".dt"),a=u(t.nTable);a.trigger(o,r),0===a.parents("body").length&&u("body").trigger(o,r),i.push(o.result)}return i}function _e(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),r=t._iDisplayLength;e>=n&&(e=n-r),e-=e%r,(-1===r||e<0)&&(e=0),t._iDisplayStart=e}function we(t,e){var n=t.renderer,r=l.ext.renderer[e];return u.isPlainObject(n)&&n[e]?r[n[e]]||r._:"string"===typeof n&&r[n]||r._}function Se(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}var Ee=[],Te=Array.prototype,ke=function(t){var e,n,r=l.settings,i=u.map(r,(function(t,e){return t.nTable}));return t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?(e=u.inArray(t,i),-1!==e?[r[e]]:null):t&&"function"===typeof t.settings?t.settings().toArray():("string"===typeof t?n=u(t):t instanceof u&&(n=t),n?n.map((function(t){return e=u.inArray(this,i),-1!==e?r[e]:null})).toArray():void 0):[]};i=function(t,e){if(!(this instanceof i))return new i(t,e);var n=[],r=function(t){var e=ke(t);e&&n.push.apply(n,e)};if(Array.isArray(t))for(var o=0,a=t.length;o<a;o++)r(t[o]);else r(t);this.context=M(n),e&&u.merge(this,e),this.selector={rows:null,cols:null,opts:null},i.extend(this,this,Ee)},l.Api=i,u.extend(i.prototype,{any:function(){return 0!==this.count()},concat:Te.concat,context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,n=this.length;e<n;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new i(e[t],this[t]):null},filter:function(t){var e=[];if(Te.filter)e=Te.filter.call(this,t,this);else for(var n=0,r=this.length;n<r;n++)t.call(this,this[n],n,this)&&e.push(this[n]);return new i(this.context,e)},flatten:function(){var t=[];return new i(this.context,t.concat.apply(t,this.toArray()))},join:Te.join,indexOf:Te.indexOf||function(t,e){for(var n=e||0,r=this.length;n<r;n++)if(this[n]===t)return n;return-1},iterator:function(t,e,n,r){var o,a,s,u,l,c,f,h,d=[],p=this.context,g=this.selector;for("string"===typeof t&&(r=n,n=e,e=t,t=!1),a=0,s=p.length;a<s;a++){var v=new i(p[a]);if("table"===e)o=n.call(v,p[a],a),void 0!==o&&d.push(o);else if("columns"===e||"rows"===e)o=n.call(v,p[a],this[a],a),void 0!==o&&d.push(o);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(f=this[a],"column-rows"===e&&(c=De(p[a],g.opts)),u=0,l=f.length;u<l;u++)h=f[u],o="cell"===e?n.call(v,p[a],h.row,h.column,a,u):n.call(v,p[a],h,a,u,c),void 0!==o&&d.push(o)}if(d.length||r){var m=new i(p,t?d.concat.apply([],d):d),y=m.selector;return y.rows=g.rows,y.cols=g.cols,y.opts=g.opts,m}return this},lastIndexOf:Te.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(Te.map)e=Te.map.call(this,t,this);else for(var n=0,r=this.length;n<r;n++)e.push(t.call(this,this[n],n));return new i(this.context,e)},pluck:function(t){var e=l.util.get(t);return this.map((function(t){return e(t)}))},pop:Te.pop,push:Te.push,reduce:Te.reduce||function(t,e){return F(this,t,e,0,this.length,1)},reduceRight:Te.reduceRight||function(t,e){return F(this,t,e,this.length-1,-1,-1)},reverse:Te.reverse,selector:null,shift:Te.shift,slice:function(){return new i(this.context,this)},sort:Te.sort,splice:Te.splice,toArray:function(){return Te.slice.call(this)},to$:function(){return u(this)},toJQuery:function(){return u(this)},unique:function(){return new i(this.context,M(this))},unshift:Te.unshift}),i.extend=function(t,e,n){if(n.length&&e&&(e instanceof i||e.__dt_wrapper)){var r,o,a,s=function(t,e,n){return function(){var r=e.apply(t,arguments);return i.extend(r,r,n.methodExt),r}};for(r=0,o=n.length;r<o;r++)a=n[r],e[a.name]="function"===a.type?s(t,a.val,a):"object"===a.type?{}:a.val,e[a.name].__dt_wrapper=!0,i.extend(t,e[a.name],a.propExt)}},i.register=o=function(t,e){if(Array.isArray(t))for(var n=0,r=t.length;n<r;n++)i.register(t[n],e);else{var o,a,s,l,c=t.split("."),f=Ee,h=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n].name===e)return t[n];return null};for(o=0,a=c.length;o<a;o++){l=-1!==c[o].indexOf("()"),s=l?c[o].replace("()",""):c[o];var d=h(f,s);d||(d={name:s,val:{},methodExt:[],propExt:[],type:"object"},f.push(d)),o===a-1?(d.val=e,d.type="function"===typeof e?"function":u.isPlainObject(e)?"object":"other"):f=l?d.methodExt:d.propExt}}},i.registerPlural=a=function(t,e,n){i.register(t,n),i.register(e,(function(){var t=n.apply(this,arguments);return t===this?this:t instanceof i?t.length?Array.isArray(t[0])?new i(t.context,t[0]):t[0]:void 0:t}))};var Ce=function(t,e){if(Array.isArray(t))return u.map(t,(function(t){return Ce(t,e)}));if("number"===typeof t)return[e[t]];var n=u.map(e,(function(t,e){return t.nTable}));return u(n).filter(t).map((function(t){var r=u.inArray(this,n);return e[r]})).toArray()};o("tables()",(function(t){return void 0!==t&&null!==t?new i(Ce(t,this.context)):this})),o("table()",(function(t){var e=this.tables(t),n=e.context;return n.length?new i(n[0]):e})),a("tables().nodes()","table().node()",(function(){return this.iterator("table",(function(t){return t.nTable}),1)})),a("tables().body()","table().body()",(function(){return this.iterator("table",(function(t){return t.nTBody}),1)})),a("tables().header()","table().header()",(function(){return this.iterator("table",(function(t){return t.nTHead}),1)})),a("tables().footer()","table().footer()",(function(){return this.iterator("table",(function(t){return t.nTFoot}),1)})),a("tables().containers()","table().container()",(function(){return this.iterator("table",(function(t){return t.nTableWrapper}),1)})),o("draw()",(function(t){return this.iterator("table",(function(e){"page"===t?pt(e):("string"===typeof t&&(t="full-hold"!==t),gt(e,!1===t))}))})),o("page()",(function(t){return void 0===t?this.page.info().page:this.iterator("table",(function(e){Gt(e,t)}))})),o("page.info()",(function(t){if(0!==this.context.length){var e=this.context[0],n=e._iDisplayStart,r=e.oFeatures.bPaginate?e._iDisplayLength:-1,i=e.fnRecordsDisplay(),o=-1===r;return{page:o?0:Math.floor(n/r),pages:o?1:Math.ceil(i/r),start:n,end:e.fnDisplayEnd(),length:r,recordsTotal:e.fnRecordsTotal(),recordsDisplay:i,serverSide:"ssp"===Se(e)}}})),o("page.len()",(function(t){return void 0===t?0!==this.context.length?this.context[0]._iDisplayLength:void 0:this.iterator("table",(function(e){Ut(e,t)}))}));var Me=function(t,e,n){if(n){var r=new i(t);r.one("draw",(function(){n(r.ajax.json())}))}if("ssp"==Se(t))gt(t,e);else{Vt(t,!0);var o=t.jqXHR;o&&4!==o.readyState&&o.abort(),xt(t,[],(function(n){at(t);for(var r=Et(t,n),i=0,o=r.length;i<o;i++)Y(t,r[i]);gt(t,e),Vt(t,!1)}))}};o("ajax.json()",(function(){var t=this.context;if(t.length>0)return t[0].json})),o("ajax.params()",(function(){var t=this.context;if(t.length>0)return t[0].oAjaxData})),o("ajax.reload()",(function(t,e){return this.iterator("table",(function(n){Me(n,!1===e,t)}))})),o("ajax.url()",(function(t){var e=this.context;if(void 0===t){if(0===e.length)return;return e=e[0],e.ajax?u.isPlainObject(e.ajax)?e.ajax.url:e.ajax:e.sAjaxSource}return this.iterator("table",(function(e){u.isPlainObject(e.ajax)?e.ajax.url=t:e.ajax=t}))})),o("ajax.url().load()",(function(t,e){return this.iterator("table",(function(n){Me(n,!1===e,t)}))}));var Ae=function(t,e,n,i,o){var a,s,u,l,c,f,h=[],d=typeof e;for(e&&"string"!==d&&"function"!==d&&void 0!==e.length||(e=[e]),u=0,l=e.length;u<l;u++)for(s=e[u]&&e[u].split&&!e[u].match(/[\[\(:]/)?e[u].split(","):[e[u]],c=0,f=s.length;c<f;c++)a=n("string"===typeof s[c]?s[c].trim():s[c]),a&&a.length&&(h=h.concat(a));var p=r.selector[t];if(p.length)for(u=0,l=p.length;u<l;u++)h=p[u](i,o,h);return M(h)},Ie=function(t){return t||(t={}),t.filter&&void 0===t.search&&(t.search=t.filter),u.extend({search:"none",order:"current",page:"all"},t)},Oe=function(t){for(var e=0,n=t.length;e<n;e++)if(t[e].length>0)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t},De=function(t,e){var n,r=[],i=t.aiDisplay,o=t.aiDisplayMaster,a=e.search,s=e.order,l=e.page;if("ssp"==Se(t))return"removed"===a?[]:E(0,o.length);if("current"==l)for(f=t._iDisplayStart,h=t.fnDisplayEnd();f<h;f++)r.push(i[f]);else if("current"==s||"applied"==s){if("none"==a)r=o.slice();else if("applied"==a)r=i.slice();else if("removed"==a){for(var c={},f=0,h=i.length;f<h;f++)c[i[f]]=null;r=u.map(o,(function(t){return c.hasOwnProperty(t)?null:t}))}}else if("index"==s||"original"==s)for(f=0,h=t.aoData.length;f<h;f++)"none"==a?r.push(f):(n=u.inArray(f,i),(-1===n&&"removed"==a||n>=0&&"applied"==a)&&r.push(f));return r},Pe=function(t,e,n){var r,i=function(e){var i=m(e),o=t.aoData;if(null!==i&&!n)return[i];if(r||(r=De(t,n)),null!==i&&-1!==u.inArray(i,r))return[i];if(null===e||void 0===e||""===e)return r;if("function"===typeof e)return u.map(r,(function(t){var n=o[t];return e(t,n._aData,n.nTr)?t:null}));if(e.nodeName){var a=e._DT_RowIndex,s=e._DT_CellIndex;if(void 0!==a)return o[a]&&o[a].nTr===e?[a]:[];if(s)return o[s.row]&&o[s.row].nTr===e.parentNode?[s.row]:[];var l=u(e).closest("*[data-dt-row]");return l.length?[l.data("dt-row")]:[]}if("string"===typeof e&&"#"===e.charAt(0)){var c=t.aIds[e.replace(/^#/,"")];if(void 0!==c)return[c.idx]}var f=T(S(t.aoData,r,"nTr"));return u(f).filter(e).map((function(){return this._DT_RowIndex})).toArray()};return Ae("row",e,i,t,n)};o("rows()",(function(t,e){void 0===t?t="":u.isPlainObject(t)&&(e=t,t=""),e=Ie(e);var n=this.iterator("table",(function(n){return Pe(n,t,e)}),1);return n.selector.rows=t,n.selector.opts=e,n})),o("rows().nodes()",(function(){return this.iterator("row",(function(t,e){return t.aoData[e].nTr||void 0}),1)})),o("rows().data()",(function(){return this.iterator(!0,"rows",(function(t,e){return S(t.aoData,e,"_aData")}),1)})),a("rows().cache()","row().cache()",(function(t){return this.iterator("row",(function(e,n){var r=e.aoData[n];return"search"===t?r._aFilterData:r._aSortData}),1)})),a("rows().invalidate()","row().invalidate()",(function(t){return this.iterator("row",(function(e,n){ut(e,n,t)}))})),a("rows().indexes()","row().index()",(function(){return this.iterator("row",(function(t,e){return e}),1)})),a("rows().ids()","row().id()",(function(t){for(var e=[],n=this.context,r=0,o=n.length;r<o;r++)for(var a=0,s=this[r].length;a<s;a++){var u=n[r].rowIdFn(n[r].aoData[this[r][a]]._aData);e.push((!0===t?"#":"")+u)}return new i(n,e)})),a("rows().remove()","row().remove()",(function(){var t=this;return this.iterator("row",(function(e,n,r){var i,o,a,s,u,l,c=e.aoData,f=c[n];for(c.splice(n,1),i=0,o=c.length;i<o;i++)if(u=c[i],l=u.anCells,null!==u.nTr&&(u.nTr._DT_RowIndex=i),null!==l)for(a=0,s=l.length;a<s;a++)l[a]._DT_CellIndex.row=i;st(e.aiDisplayMaster,n),st(e.aiDisplay,n),st(t[r],n,!1),e._iRecordsDisplay>0&&e._iRecordsDisplay--,_e(e);var h=e.rowIdFn(f._aData);void 0!==h&&delete e.aIds[h]})),this.iterator("table",(function(t){for(var e=0,n=t.aoData.length;e<n;e++)t.aoData[e].idx=e})),this})),o("rows.add()",(function(t){var e=this.iterator("table",(function(e){var n,r,i,o=[];for(r=0,i=t.length;r<i;r++)n=t[r],n.nodeName&&"TR"===n.nodeName.toUpperCase()?o.push(X(e,n)[0]):o.push(Y(e,n));return o}),1),n=this.rows(-1);return n.pop(),u.merge(n,e),n})),o("row()",(function(t,e){return Oe(this.rows(t,e))})),o("row().data()",(function(t){var e=this.context;if(void 0===t)return e.length&&this.length?e[0].aoData[this[0]]._aData:void 0;var n=e[0].aoData[this[0]];return n._aData=t,Array.isArray(t)&&n.nTr&&n.nTr.id&&it(e[0].rowId)(t,n.nTr.id),ut(e[0],this[0],"data"),this})),o("row().node()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null})),o("row.add()",(function(t){t instanceof u&&t.length&&(t=t[0]);var e=this.iterator("table",(function(e){return t.nodeName&&"TR"===t.nodeName.toUpperCase()?X(e,t)[0]:Y(e,t)}));return this.row(e[0])})),u(document).on("plugin-init.dt",(function(t,e){var n=new i(e),r="on-plugin-init",o="stateSaveParams."+r,a="destroy. "+r;n.on(o,(function(t,e,n){for(var r=e.rowIdFn,i=e.aoData,o=[],a=0;a<i.length;a++)i[a]._detailsShow&&o.push("#"+r(i[a]._aData));n.childRows=o})),n.on(a,(function(){n.off(o+" "+a)}));var s=n.state.loaded();s&&s.childRows&&n.rows(u.map(s.childRows,(function(t){return t.replace(/:/g,"\\:")}))).every((function(){xe(e,null,"requestChild",[this])}))}));var Le=function(t,e,n,r){var i=[],o=function(e,n){if(Array.isArray(e)||e instanceof u)for(var r=0,a=e.length;r<a;r++)o(e[r],n);else if(e.nodeName&&"tr"===e.nodeName.toLowerCase())i.push(e);else{var s=u("<tr><td></td></tr>").addClass(n);u("td",s).addClass(n).html(e)[0].colSpan=$(t),i.push(s[0])}};o(n,r),e._details&&e._details.detach(),e._details=u(i),e._detailsShow&&e._details.insertAfter(e.nTr)},Ne=l.util.throttle((function(t){fe(t[0])}),500),Re=function(t,e){var n=t.context;if(n.length){var r=n[0].aoData[void 0!==e?e:t[0]];r&&r._details&&(r._details.remove(),r._detailsShow=void 0,r._details=void 0,u(r.nTr).removeClass("dt-hasChild"),Ne(n))}},je=function(t,e){var n=t.context;if(n.length&&t.length){var r=n[0].aoData[t[0]];r._details&&(r._detailsShow=e,e?(r._details.insertAfter(r.nTr),u(r.nTr).addClass("dt-hasChild")):(r._details.detach(),u(r.nTr).removeClass("dt-hasChild")),xe(n[0],null,"childRow",[e,t.row(t[0])]),Fe(n[0]),Ne(n))}},Fe=function(t){var e=new i(t),n=".dt.DT_details",r="draw"+n,o="column-sizing"+n,a="destroy"+n,s=t.aoData;e.off(r+" "+o+" "+a),w(s,"_details").length>0&&(e.on(r,(function(n,r){t===r&&e.rows({page:"current"}).eq(0).each((function(t){var e=s[t];e._detailsShow&&e._details.insertAfter(e.nTr)}))})),e.on(o,(function(e,n,r,i){if(t===n)for(var o,a=$(n),l=0,c=s.length;l<c;l++)o=s[l],o._details&&o._details.each((function(){var t=u(this).children("td");1==t.length&&t.attr("colspan",a)}))})),e.on(a,(function(n,r){if(t===r)for(var i=0,o=s.length;i<o;i++)s[i]._details&&Re(e,i)})))},Be="",ze=Be+"row().child",Ze=ze+"()";o(Ze,(function(t,e){var n=this.context;return void 0===t?n.length&&this.length?n[0].aoData[this[0]]._details:void 0:(!0===t?this.child.show():!1===t?Re(this):n.length&&this.length&&Le(n[0],n[0].aoData[this[0]],t,e),this)})),o([ze+".show()",Ze+".show()"],(function(t){return je(this,!0),this})),o([ze+".hide()",Ze+".hide()"],(function(){return je(this,!1),this})),o([ze+".remove()",Ze+".remove()"],(function(){return Re(this),this})),o(ze+".isShown()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1}));var Ue=/^([^:]+):(name|visIdx|visible)$/,He=function(t,e,n,r,i){for(var o=[],a=0,s=i.length;a<s;a++)o.push(J(t,i[a],e));return o},$e=function(t,e,n){var r=t.aoColumns,i=w(r,"sName"),o=w(r,"nTh"),a=function(e){var a=m(e);if(""===e)return E(r.length);if(null!==a)return[a>=0?a:r.length+a];if("function"===typeof e){var s=De(t,n);return u.map(r,(function(n,r){return e(r,He(t,r,0,0,s),o[r])?r:null}))}var l="string"===typeof e?e.match(Ue):"";if(l)switch(l[2]){case"visIdx":case"visible":var c=parseInt(l[1],10);if(c<0){var f=u.map(r,(function(t,e){return t.bVisible?e:null}));return[f[f.length+c]]}return[U(t,c)];case"name":return u.map(i,(function(t,e){return t===l[1]?e:null}));default:return[]}if(e.nodeName&&e._DT_CellIndex)return[e._DT_CellIndex.column];var h=u(o).filter(e).map((function(){return u.inArray(this,o)})).toArray();if(h.length||!e.nodeName)return h;var d=u(e).closest("*[data-dt-column]");return d.length?[d.data("dt-column")]:[]};return Ae("column",e,a,t,n)},Ge=function(t,e,n){var r,i,o,a,s=t.aoColumns,l=s[e],c=t.aoData;if(void 0===n)return l.bVisible;if(l.bVisible!==n){if(n){var f=u.inArray(!0,w(s,"bVisible"),e+1);for(i=0,o=c.length;i<o;i++)a=c[i].nTr,r=c[i].anCells,a&&a.insertBefore(r[e],r[f]||null)}else u(w(t.aoData,"anCells",e)).detach();l.bVisible=n}};o("columns()",(function(t,e){void 0===t?t="":u.isPlainObject(t)&&(e=t,t=""),e=Ie(e);var n=this.iterator("table",(function(n){return $e(n,t,e)}),1);return n.selector.cols=t,n.selector.opts=e,n})),a("columns().header()","column().header()",(function(t,e){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTh}),1)})),a("columns().footer()","column().footer()",(function(t,e){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTf}),1)})),a("columns().data()","column().data()",(function(){return this.iterator("column-rows",He,1)})),a("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].mData}),1)})),a("columns().cache()","column().cache()",(function(t){return this.iterator("column-rows",(function(e,n,r,i,o){return S(e.aoData,o,"search"===t?"_aFilterData":"_aSortData",n)}),1)})),a("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(t,e,n,r,i){return S(t.aoData,i,"anCells",e)}),1)})),a("columns().visible()","column().visible()",(function(t,e){var n=this,r=this.iterator("column",(function(e,n){if(void 0===t)return e.aoColumns[n].bVisible;Ge(e,n,t)}));return void 0!==t&&this.iterator("table",(function(r){dt(r,r.aoHeader),dt(r,r.aoFooter),r.aiDisplay.length||u(r.nTBody).find("td[colspan]").attr("colspan",$(r)),fe(r),n.iterator("column",(function(n,r){xe(n,null,"column-visibility",[n,r,t,e])})),(void 0===e||e)&&n.columns.adjust()})),r})),a("columns().indexes()","column().index()",(function(t){return this.iterator("column",(function(e,n){return"visible"===t?H(e,n):n}),1)})),o("columns.adjust()",(function(){return this.iterator("table",(function(t){Z(t)}),1)})),o("column.index()",(function(t,e){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===t||"toData"===t)return U(n,e);if("fromData"===t||"toVisible"===t)return H(n,e)}})),o("column()",(function(t,e){return Oe(this.columns(t,e))}));var We=function(t,e,n){var r,i,o,a,s,l,c,f=t.aoData,h=De(t,n),d=T(S(f,h,"anCells")),p=u(A([],d)),g=t.aoColumns.length,v=function(e){var n="function"===typeof e;if(null===e||void 0===e||n){for(i=[],o=0,a=h.length;o<a;o++)for(r=h[o],s=0;s<g;s++)l={row:r,column:s},n?(c=f[r],e(l,J(t,r,s),c.anCells?c.anCells[s]:null)&&i.push(l)):i.push(l);return i}if(u.isPlainObject(e))return void 0!==e.column&&void 0!==e.row&&-1!==u.inArray(e.row,h)?[e]:[];var d=p.filter(e).map((function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}})).toArray();return d.length||!e.nodeName?d:(c=u(e).closest("*[data-dt-row]"),c.length?[{row:c.data("dt-row"),column:c.data("dt-column")}]:[])};return Ae("cell",e,v,t,n)};o("cells()",(function(t,e,n){if(u.isPlainObject(t)&&(void 0===t.row?(n=t,t=null):(n=e,e=null)),u.isPlainObject(e)&&(n=e,e=null),null===e||void 0===e)return this.iterator("table",(function(e){return We(e,t,Ie(n))}));var r,i,o,a,s=n?{page:n.page,order:n.order,search:n.search}:{},l=this.columns(e,s),c=this.rows(t,s),f=this.iterator("table",(function(t,e){var n=[];for(r=0,i=c[e].length;r<i;r++)for(o=0,a=l[e].length;o<a;o++)n.push({row:c[e][r],column:l[e][o]});return n}),1),h=n&&n.selected?this.cells(f,n):f;return u.extend(h.selector,{cols:e,rows:t,opts:n}),h})),a("cells().nodes()","cell().node()",(function(){return this.iterator("cell",(function(t,e,n){var r=t.aoData[e];return r&&r.anCells?r.anCells[n]:void 0}),1)})),o("cells().data()",(function(){return this.iterator("cell",(function(t,e,n){return J(t,e,n)}),1)})),a("cells().cache()","cell().cache()",(function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",(function(e,n,r){return e.aoData[n][t][r]}),1)})),a("cells().render()","cell().render()",(function(t){return this.iterator("cell",(function(e,n,r){return J(e,n,r,t)}),1)})),a("cells().indexes()","cell().index()",(function(){return this.iterator("cell",(function(t,e,n){return{row:e,column:n,columnVisible:H(t,n)}}),1)})),a("cells().invalidate()","cell().invalidate()",(function(t){return this.iterator("cell",(function(e,n,r){ut(e,n,t,r)}))})),o("cell()",(function(t,e,n){return Oe(this.cells(t,e,n))})),o("cell().data()",(function(t){var e=this.context,n=this[0];return void 0===t?e.length&&n.length?J(e[0],n[0].row,n[0].column):void 0:(Q(e[0],n[0].row,n[0].column,t),ut(e[0],n[0].row,"data",n[0].column),this)})),o("order()",(function(t,e){var n=this.context;return void 0===t?0!==n.length?n[0].aaSorting:void 0:("number"===typeof t?t=[[t,e]]:t.length&&!Array.isArray(t[0])&&(t=Array.prototype.slice.call(arguments)),this.iterator("table",(function(e){e.aaSorting=t.slice()})))})),o("order.listener()",(function(t,e,n){return this.iterator("table",(function(r){ue(r,t,e,n)}))})),o("order.fixed()",(function(t){if(!t){var e=this.context,n=e.length?e[0].aaSortingFixed:void 0;return Array.isArray(n)?{pre:n}:n}return this.iterator("table",(function(e){e.aaSortingFixed=u.extend(!0,{},t)}))})),o(["columns().order()","column().order()"],(function(t){var e=this;return this.iterator("table",(function(n,r){var i=[];u.each(e[r],(function(e,n){i.push([n,t])})),n.aaSorting=i}))})),o("search()",(function(t,e,n,r){var i=this.context;return void 0===t?0!==i.length?i[0].oPreviousSearch.sSearch:void 0:this.iterator("table",(function(i){i.oFeatures.bFilter&&kt(i,u.extend({},i.oPreviousSearch,{sSearch:t+"",bRegex:null!==e&&e,bSmart:null===n||n,bCaseInsensitive:null===r||r}),1)}))})),a("columns().search()","column().search()",(function(t,e,n,r){return this.iterator("column",(function(i,o){var a=i.aoPreSearchCols;if(void 0===t)return a[o].sSearch;i.oFeatures.bFilter&&(u.extend(a[o],{sSearch:t+"",bRegex:null!==e&&e,bSmart:null===n||n,bCaseInsensitive:null===r||r}),kt(i,i.oPreviousSearch,1))}))})),o("state()",(function(){return this.context.length?this.context[0].oSavedState:null})),o("state.clear()",(function(){return this.iterator("table",(function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})}))})),o("state.loaded()",(function(){return this.context.length?this.context[0].oLoadedState:null})),o("state.save()",(function(){return this.iterator("table",(function(t){fe(t)}))})),l.use=function(t,e){"lib"===e||t.fn?u=t:"win"==e||t.document?(window=t,document=t.document):"datetime"!==e&&"DateTime"!==t.type||(l.DateTime=t)},l.factory=function(t,e){var n=!1;return t&&t.document&&(window=t,document=t.document),e&&e.fn&&e.fn.jquery&&(u=e,n=!0),n},l.versionCheck=l.fnVersionCheck=function(t){for(var e,n,r=l.version.split("."),i=t.split("."),o=0,a=i.length;o<a;o++)if(e=parseInt(r[o],10)||0,n=parseInt(i[o],10)||0,e!==n)return e>n;return!0},l.isDataTable=l.fnIsDataTable=function(t){var e=u(t).get(0),n=!1;return t instanceof l.Api||(u.each(l.settings,(function(t,r){var i=r.nScrollHead?u("table",r.nScrollHead)[0]:null,o=r.nScrollFoot?u("table",r.nScrollFoot)[0]:null;r.nTable!==e&&i!==e&&o!==e||(n=!0)})),n)},l.tables=l.fnTables=function(t){var e=!1;u.isPlainObject(t)&&(e=t.api,t=t.visible);var n=u.map(l.settings,(function(e){if(!t||t&&u(e.nTable).is(":visible"))return e.nTable}));return e?new i(n):n},l.camelToHungarian=D,o("$()",(function(t,e){var n=this.rows(e).nodes(),r=u(n);return u([].concat(r.filter(t).toArray(),r.find(t).toArray()))})),u.each(["on","one","off"],(function(t,e){o(e+"()",(function(){var t=Array.prototype.slice.call(arguments);t[0]=u.map(t[0].split(/\s/),(function(t){return t.match(/\.dt\b/)?t:t+".dt"})).join(" ");var n=u(this.tables().nodes());return n[e].apply(n,t),this}))})),o("clear()",(function(){return this.iterator("table",(function(t){at(t)}))})),o("settings()",(function(){return new i(this.context,this.context)})),o("init()",(function(){var t=this.context;return t.length?t[0].oInit:null})),o("data()",(function(){return this.iterator("table",(function(t){return w(t.aoData,"_aData")})).flatten()})),o("destroy()",(function(t){return t=t||!1,this.iterator("table",(function(e){var n,r=e.oClasses,o=e.nTable,a=e.nTBody,s=e.nTHead,c=e.nTFoot,f=u(o),h=u(a),d=u(e.nTableWrapper),p=u.map(e.aoData,(function(t){return t.nTr}));e.bDestroying=!0,xe(e,"aoDestroyCallback","destroy",[e]),t||new i(e).columns().visible(!0),d.off(".DT").find(":not(tbody *)").off(".DT"),u(window).off(".DT-"+e.sInstance),o!=s.parentNode&&(f.children("thead").detach(),f.append(s)),c&&o!=c.parentNode&&(f.children("tfoot").detach(),f.append(c)),e.aaSorting=[],e.aaSortingFixed=[],le(e),u(p).removeClass(e.asStripeClasses.join(" ")),u("th, td",s).removeClass(r.sSortable+" "+r.sSortableAsc+" "+r.sSortableDesc+" "+r.sSortableNone),h.children().detach(),h.append(p);var g=e.nTableWrapper.parentNode,v=t?"remove":"detach";f[v](),d[v](),!t&&g&&(g.insertBefore(o,e.nTableReinsertBefore),f.css("width",e.sDestroyWidth).removeClass(r.sTable),n=e.asDestroyStripes.length,n&&h.children().each((function(t){u(this).addClass(e.asDestroyStripes[t%n])})));var m=u.inArray(e,l.settings);-1!==m&&l.settings.splice(m,1)}))})),u.each(["column","row","cell"],(function(t,e){o(e+"s().every()",(function(t){var n=this.selector.opts,r=this;return this.iterator(e,(function(i,o,a,s,u){t.call(r[e](o,"cell"===e?a:n,"cell"===e?n:void 0),o,a,s,u)}))}))})),o("i18n()",(function(t,e,n){var r=this.context[0],i=rt(t)(r.oLanguage);return void 0===i&&(i=e),void 0!==n&&u.isPlainObject(i)&&(i=void 0!==i[n]?i[n]:i._),"string"===typeof i?i.replace("%d",n):i})),l.version="1.13.7",l.settings=[],l.models={},l.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0,return:!1},l.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},l.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},l.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(e){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(n){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:u.extend({},l.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},O(l.defaults),l.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},O(l.defaults.column),l.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,jqXHR:null,json:void 0,oAjaxData:void 0,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Se(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Se(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,r=this.aiDisplay.length,i=this.oFeatures,o=i.bPaginate;return i.bServerSide?!1===o||-1===t?e+r:Math.min(e+t,this._iRecordsDisplay):!o||n>r||-1===t?r:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},l.ext=r={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:l.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:l.version},u.extend(r,{afnFiltering:r.search,aTypes:r.type.detect,ofnSearch:r.type.search,oSort:r.type.order,afnSortData:r.order,aoFeatures:r.feature,oApi:r.internal,oStdClasses:r.classes,oPagination:r.pager}),u.extend(l.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_desc_disabled",sSortableDesc:"sorting_asc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Ve=l.ext.pager;function Ye(t,e){var n=[],r=Ve.numbers_length,i=Math.floor(r/2);return e<=r?n=E(0,e):t<=i?(n=E(0,r-2),n.push("ellipsis"),n.push(e-1)):t>=e-1-i?(n=E(e-(r-2),e),n.splice(0,0,"ellipsis"),n.splice(0,0,0)):(n=E(t-i+2,t+i-1),n.push("ellipsis"),n.push(e-1),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}u.extend(Ve,{simple:function(t,e){return["previous","next"]},full:function(t,e){return["first","previous","next","last"]},numbers:function(t,e){return[Ye(t,e)]},simple_numbers:function(t,e){return["previous",Ye(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Ye(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Ye(t,e),"last"]},_numbers:Ye,numbers_length:7}),u.extend(!0,l.ext.renderer,{pageButton:{_:function(t,e,n,r,i,o){var a,s,l,c=t.oClasses,f=t.oLanguage.oPaginate,h=t.oLanguage.oAria.paginate||{},d=function(e,r){var l,p,g,v,m=c.sPageButtonDisabled,y=function(e){Gt(t,e.data.action,!0)};for(l=0,p=r.length;l<p;l++)if(v=r[l],Array.isArray(v)){var b=u("<"+(v.DT_el||"div")+"/>").appendTo(e);d(b,v)}else{var x=!1;switch(a=null,s=v,v){case"ellipsis":e.append('<span class="ellipsis">&#x2026;</span>');break;case"first":a=f.sFirst,0===i&&(x=!0);break;case"previous":a=f.sPrevious,0===i&&(x=!0);break;case"next":a=f.sNext,0!==o&&i!==o-1||(x=!0);break;case"last":a=f.sLast,0!==o&&i!==o-1||(x=!0);break;default:a=t.fnFormatNumber(v+1),s=i===v?c.sPageButtonActive:"";break}if(null!==a){var _=t.oInit.pagingTag||"a";x&&(s+=" "+m),g=u("<"+_+">",{class:c.sPageButton+" "+s,"aria-controls":t.sTableId,"aria-disabled":x?"true":null,"aria-label":h[v],role:"link","aria-current":s===c.sPageButtonActive?"page":null,"data-dt-idx":v,tabindex:x?-1:t.iTabIndex,id:0===n&&"string"===typeof v?t.sTableId+"_"+v:null}).html(a).appendTo(e),ye(g,{action:v},y)}}};try{l=u(e).find(document.activeElement).data("dt-idx")}catch(p){}d(u(e).empty(),r),void 0!==l&&u(e).find("[data-dt-idx="+l+"]").trigger("focus")}}}),u.extend(l.ext.type.detect,[function(t,e){var n=e.oLanguage.sDecimal;return b(t,n)?"num"+n:null},function(t,e){if(t&&!(t instanceof Date)&&!d.test(t))return null;var n=Date.parse(t);return null!==n&&!isNaN(n)||v(t)?"date":null},function(t,e){var n=e.oLanguage.sDecimal;return b(t,n,!0)?"num-fmt"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return _(t,n)?"html-num"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return _(t,n,!0)?"html-num-fmt"+n:null},function(t,e){return v(t)||"string"===typeof t&&-1!==t.indexOf("<")?"html":null}]),u.extend(l.ext.type.search,{html:function(t){return v(t)?t:"string"===typeof t?t.replace(f," ").replace(h,""):""},string:function(t){return v(t)?t:"string"===typeof t?t.replace(f," "):t}});var Xe=function(t,e,n,r){if(0!==t&&(!t||"-"===t))return-1/0;var i=typeof t;return"number"===i||"bigint"===i?t:(e&&(t=y(t,e)),t.replace&&(n&&(t=t.replace(n,"")),r&&(t=t.replace(r,""))),1*t)};function qe(t){u.each({num:function(e){return Xe(e,t)},"num-fmt":function(e){return Xe(e,t,g)},"html-num":function(e){return Xe(e,t,h)},"html-num-fmt":function(e){return Xe(e,t,h,g)}},(function(e,n){r.type.order[e+t+"-pre"]=n,e.match(/^html\-/)&&(r.type.search[e+t]=r.type.search.html)}))}u.extend(r.type.order,{"date-pre":function(t){var e=Date.parse(t);return isNaN(e)?-1/0:e},"html-pre":function(t){return v(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return v(t)?"":"string"===typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:t>e?1:0},"string-desc":function(t,e){return t<e?1:t>e?-1:0}}),qe(""),u.extend(!0,l.ext.renderer,{header:{_:function(t,e,n,r){u(t.nTable).on("order.dt.DT",(function(i,o,a,s){if(t===o){var u=n.idx;e.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[u]?r.sSortAsc:"desc"==s[u]?r.sSortDesc:n.sSortingClass)}}))},jqueryui:function(t,e,n,r){u("<div/>").addClass(r.sSortJUIWrapper).append(e.contents()).append(u("<span/>").addClass(r.sSortIcon+" "+n.sSortingClassJUI)).appendTo(e),u(t.nTable).on("order.dt.DT",(function(i,o,a,s){if(t===o){var u=n.idx;e.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[u]?r.sSortAsc:"desc"==s[u]?r.sSortDesc:n.sSortingClass),e.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==s[u]?r.sSortJUIAsc:"desc"==s[u]?r.sSortJUIDesc:n.sSortingClassJUI)}}))}}});var Ke=function(t){return Array.isArray(t)&&(t=t.join(",")),"string"===typeof t?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):t};function Je(t,e,n,r,i){return window.moment?t[e](i):window.luxon?t[n](i):r?t[r](i):t}var Qe=!1;function tn(t,e,n){var r;if(window.moment){if(r=window.moment.utc(t,e,n,!0),!r.isValid())return null}else if(window.luxon){if(r=e&&"string"===typeof t?window.luxon.DateTime.fromFormat(t,e):window.luxon.DateTime.fromISO(t),!r.isValid)return null;r.setLocale(n)}else e?(Qe||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),Qe=!0):r=new Date(t);return r}function en(t){return function(e,n,r,i){0===arguments.length?(r="en",n=null,e=null):1===arguments.length?(r="en",n=e,e=null):2===arguments.length&&(r=n,n=e,e=null);var o="datetime-"+n;return l.ext.type.order[o]||(l.ext.type.detect.unshift((function(t){return t===o&&o})),l.ext.type.order[o+"-asc"]=function(t,e){var n=t.valueOf(),r=e.valueOf();return n===r?0:n<r?-1:1},l.ext.type.order[o+"-desc"]=function(t,e){var n=t.valueOf(),r=e.valueOf();return n===r?0:n>r?-1:1}),function(a,s){if(null===a||void 0===a)if("--now"===i){var u=new Date;a=new Date(Date.UTC(u.getFullYear(),u.getMonth(),u.getDate(),u.getHours(),u.getMinutes(),u.getSeconds()))}else a="";if("type"===s)return o;if(""===a)return"sort"!==s?"":tn("0000-01-01 00:00:00",null,r);if(null!==n&&e===n&&"sort"!==s&&"type"!==s&&!(a instanceof Date))return a;var l=tn(a,e,r);if(null===l)return a;if("sort"===s)return l;var c=null===n?Je(l,"toDate","toJSDate","")[t]():Je(l,"format","toFormat","toISOString",n);return"display"===s?Ke(c):c}}}var nn=",",rn=".";if(void 0!==window.Intl)try{for(var on=(new Intl.NumberFormat).formatToParts(100000.1),an=0;an<on.length;an++)"group"===on[an].type?nn=on[an].value:"decimal"===on[an].type&&(rn=on[an].value)}catch(un){}function sn(t){return function(){var e=[pe(this[l.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return l.ext.internal[t].apply(this,e)}}l.datetime=function(t,e){var n="datetime-detect-"+t;e||(e="en"),l.ext.type.order[n]||(l.ext.type.detect.unshift((function(r){var i=tn(r,t,e);return!(""!==r&&!i)&&n})),l.ext.type.order[n+"-pre"]=function(n){return tn(n,t,e)||0})},l.render={date:en("toLocaleDateString"),datetime:en("toLocaleString"),time:en("toLocaleTimeString"),number:function(t,e,n,r,i){return null!==t&&void 0!==t||(t=nn),null!==e&&void 0!==e||(e=rn),{display:function(o){if("number"!==typeof o&&"string"!==typeof o)return o;if(""===o||null===o)return o;var a=o<0?"-":"",s=parseFloat(o);if(isNaN(s))return Ke(o);s=s.toFixed(n),o=Math.abs(s);var u=parseInt(o,10),l=n?e+(o-u).toFixed(n).substring(2):"";return 0===u&&0===parseFloat(l)&&(a=""),a+(r||"")+u.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+l+(i||"")}}},text:function(){return{display:Ke,filter:Ke}}},u.extend(l.ext.internal,{_fnExternApiFunc:sn,_fnBuildAjax:xt,_fnAjaxUpdate:_t,_fnAjaxParameters:wt,_fnAjaxUpdateDraw:St,_fnAjaxDataSrc:Et,_fnAddColumn:B,_fnColumnOptions:z,_fnAdjustColumnSizing:Z,_fnVisibleToColumnIndex:U,_fnColumnIndexToVisible:H,_fnVisbleColumns:$,_fnGetColumns:G,_fnColumnTypes:W,_fnApplyColumnDefs:V,_fnHungarianMap:O,_fnCamelToHungarian:D,_fnLanguageCompat:P,_fnBrowserDetect:j,_fnAddData:Y,_fnAddTr:X,_fnNodeToDataIndex:q,_fnNodeToColumnIndex:K,_fnGetCellData:J,_fnSetCellData:Q,_fnSplitObjNotation:nt,_fnGetObjectDataFn:rt,_fnSetObjectDataFn:it,_fnGetDataMaster:ot,_fnClearTable:at,_fnDeleteIndex:st,_fnInvalidate:ut,_fnGetRowElements:lt,_fnCreateTr:ct,_fnBuildHead:ht,_fnDrawHead:dt,_fnDraw:pt,_fnReDraw:gt,_fnAddOptionsHtml:vt,_fnDetectHeader:mt,_fnGetUniqueThs:yt,_fnFeatureHtmlFilter:Tt,_fnFilterComplete:kt,_fnFilterCustom:Ct,_fnFilterColumn:Mt,_fnFilter:At,_fnFilterCreateSearch:It,_fnEscapeRegex:Ot,_fnFilterData:Lt,_fnFeatureHtmlInfo:jt,_fnUpdateInfo:Ft,_fnInfoMacros:Bt,_fnInitialise:zt,_fnInitComplete:Zt,_fnLengthChange:Ut,_fnFeatureHtmlLength:Ht,_fnFeatureHtmlPaginate:$t,_fnPageChange:Gt,_fnFeatureHtmlProcessing:Wt,_fnProcessingDisplay:Vt,_fnFeatureHtmlTable:Yt,_fnScrollDraw:Xt,_fnApplyToChildren:qt,_fnCalculateColumnWidths:Jt,_fnThrottle:Qt,_fnConvertToWidth:te,_fnGetWidestNode:ee,_fnGetMaxLenString:ne,_fnStringToCss:re,_fnSortFlatten:ie,_fnSort:oe,_fnSortAria:ae,_fnSortListener:se,_fnSortAttachListener:ue,_fnSortingClasses:le,_fnSortData:ce,_fnSaveState:fe,_fnLoadState:he,_fnImplementState:de,_fnSettingsFromNode:pe,_fnLog:ge,_fnMap:ve,_fnBindAction:ye,_fnCallbackReg:be,_fnCallbackFire:xe,_fnLengthOverflow:_e,_fnRenderer:we,_fnDataSource:Se,_fnRowAttributes:ft,_fnExtend:me,_fnCalculateEnd:function(){}}),u.fn.dataTable=l,l.$=u,u.fn.dataTableSettings=l.settings,u.fn.dataTableExt=l.ext,u.fn.DataTable=function(t){return u(this).dataTable(t).api()},u.each(l,(function(t,e){u.fn.DataTable[t]=e})),e.Z=/^(539|826)$/.test(n.j)?l:null},51058:function(t,e,n){"use strict";if(n.d(e,{D:function(){return u},KZ:function(){return l},XD:function(){return d},Zi:function(){return p},_W:function(){return g},bX:function(){return f},eq:function(){return c},ke:function(){return a}}),/^(539|826)$/.test(n.j))var r=n(95797);var i=n(38496),o=(0,i.Yf)();function a(t,e,n,i,o){var a;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();a=s&&s.animation}var u=e&&e.isAnimationEnabled(),l="update"===t;if(u){var c=void 0,f=void 0,h=void 0;i?(c=(0,r.pD)(i.duration,200),f=(0,r.pD)(i.easing,"cubicOut"),h=0):(c=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(c=a.duration),null!=a.easing&&(f=a.easing),null!=a.delay&&(h=a.delay)),(0,r.mf)(h)&&(h=h(n,o)),(0,r.mf)(c)&&(c=c(n));var d={duration:c||0,delay:h,easing:f};return d}return null}function s(t,e,n,i,o,s,u){var l,c=!1;(0,r.mf)(o)?(u=s,s=o,o=null):(0,r.Kn)(o)&&(s=o.cb,u=o.during,c=o.isFrom,l=o.removeOpt,o=o.dataIndex);var f="leave"===t;f||e.stopAnimation("leave");var h=a(t,i,o,f?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null);if(h&&h.duration>0){var d=h.duration,p=h.delay,g=h.easing,v={duration:d,delay:p||0,easing:g,done:s,force:!!s||!!u,setToFinal:!f,scope:t,during:u};c?e.animateFrom(n,v):e.animateTo(n,v)}else e.stopAnimation(),!c&&e.attr(n),u&&u(1),s&&s()}function u(t,e,n,r,i,o){s("update",t,e,n,r,i,o)}function l(t,e,n,r,i,o){s("enter",t,e,n,r,i,o)}function c(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("leave"===n.scope)return!0}return!1}function f(t,e,n,r,i,o){c(t)||s("leave",t,e,n,r,i,o)}function h(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),f(t,{style:{opacity:0}},e,n,r)}function d(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||h(t,e,n,r)})):h(t,e,n,r)}function p(t){o(t).oldStyle=t.style}function g(t){return o(t).oldStyle}},29256:function(t,e,n){"use strict";if(n.d(e,{S:function(){return f},W:function(){return h}}),/^(539|826)$/.test(n.j))var r=n(52e3);if(/^(539|826)$/.test(n.j))var i=n(23256);if(/^(539|826)$/.test(n.j))var o=n(95797);if(/^(539|826)$/.test(n.j))var a=n(51058);var s=n(27473);function u(t){return(0,o.kJ)(t[0])}function l(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 u=n[s].many;if(u.length<=1){if(!s)return n;s=0}o=u.length;var l=Math.ceil(o/2);n[i].many=u.slice(l,o),n[s].many=u.slice(0,l),s++}return n}var c={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=(0,s.U5)(t.path);i.setStyle("opacity",n),e.push(i)}return e},split:null};function f(t,e,n,i,s,f){if(t.length&&e.length){var h=(0,a.ke)("update",i,s);if(h&&h.duration>0){var d,p,g=i.getModel("universalTransition").get("delay"),v=Object.assign({setToFinal:!0},h);u(t)&&(d=t,p=e),u(e)&&(d=e,p=t);for(var m=d?d===t:t.length>e.length,y=d?l(p,d):l(m?e:t,[m?t:e]),b=0,x=0;x<y.length;x++)b+=y[x].many.length;var _=0;for(x=0;x<y.length;x++)w(y[x],m,_,b),_+=y[x].many.length}}function w(t,e,i,a,s){var u=t.many,l=t.one;if(1!==u.length||s)for(var h=(0,o.ce)({dividePath:c[n],individualDelay:g&&function(t,e,n,r){return g(t+i,a)}},v),d=e?(0,r.a4)(u,l,h):(0,r.nY)(l,u,h),p=d.fromIndividuals,m=d.toIndividuals,y=p.length,b=0;b<y;b++){S=g?(0,o.ce)({delay:g(b,y)},v):v;f(p[b],m[b],e?u[b]:t.one,e?t.one:u[b],S)}else{var x=e?u[0]:l,_=e?l:u[0];if((0,r.j)(x))w({many:[x],one:_},!0,i,a,!0);else{var S=g?(0,o.ce)({delay:g(i,a)},v):v;(0,r.xQ)(x,_,S),f(x,_,x,_,S)}}}}function h(t){if(!t)return[];if((0,o.kJ)(t)){for(var e=[],n=0;n<t.length;n++)e.push(h(t[n]));return e}var r=[];return t.traverse((function(t){t instanceof i.ZP&&!t.disableMorphing&&!t.invisible&&!t.ignore&&r.push(t)})),r}},20820:function(t,e,n){"use strict";if(n.d(e,{z:function(){return D}}),/^(539|826)$/.test(n.j))var r=n(84895);if(/^(539|826)$/.test(n.j))var i=n(95797);if(/^(539|826)$/.test(n.j))var o=n(29256);if(/^(539|826)$/.test(n.j))var a=n(23256);if(/^(539|826)$/.test(n.j))var s=n(51058);if(/^(539|826)$/.test(n.j))var u=n(56441);var l=n(38496);if(/^(539|826)$/.test(n.j))n(3313);if(/^(539|826)$/.test(n.j))var c=n(68992);var f=1e4,h=0,d=1,p=2,g=(0,l.Yf)();function v(t,e){for(var n=t.dimensions,r=0;r<n.length;r++){var i=t.getDimensionInfo(n[r]);if(i&&0===i.otherDims[e])return n[r]}}function m(t,e,n){var r=t.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var o=t.get(r.name,e);return i&&i.categories[o]||o+""}}function y(t,e,n,r){var i=r?"itemChildGroupId":"itemGroupId",o=v(t,i);if(o){var a=m(t,e,o);return a}var s=t.getRawDataItem(e),u=r?"childGroupId":"groupId";return s&&s[u]?s[u]+"":r?void 0:n||t.getId(e)}function b(t){var e=[];return(0,i.S6)(t,(function(t){var n=t.data,r=t.dataGroupId;if(!(n.count()>f))for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:y(n,o,r,!1),childGroupId:y(n,o,r,!0),divide:t.divide,dataIndex:o})})),e}function x(t,e,n){t.traverse((function(t){t instanceof a.ZP&&(0,s.KZ)(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function _(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function w(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function S(t,e,n){var r=(0,s.ke)("update",n,e);r&&t.traverse((function(t){if(t instanceof c.ZP){var e=(0,s._W)(t);e&&t.animateFrom({style:e},r)}}))}function E(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}function T(t,e,n){var r=b(t),l=b(e);function c(t,e,n,r,o){(n||t)&&e.animateFrom({style:n&&n!==t?(0,i.l7)((0,i.l7)({},n.style),t.style):t.style},o)}var f=!1,g=h,v=(0,i.kW)(),m=(0,i.kW)();r.forEach((function(t){t.groupId&&v.set(t.groupId,!0),t.childGroupId&&m.set(t.childGroupId,!0)}));for(var y=0;y<l.length;y++){var T=l[y].groupId;if(m.get(T)){g=d;break}var k=l[y].childGroupId;if(k&&v.get(k)){g=p;break}}function C(t,e){return function(n){var r=n.data,i=n.dataIndex;return e?r.getId(i):t?g===d?n.childGroupId:n.groupId:g===p?n.childGroupId:n.groupId}}var M=E(r,l),A={};if(!M)for(y=0;y<l.length;y++){var I=l[y],O=I.data.getItemGraphicEl(I.dataIndex);O&&(A[O.id]=!0)}function D(t,e){var n=r[e],i=l[t],a=i.data.hostModel,s=n.data.getItemGraphicEl(n.dataIndex),u=i.data.getItemGraphicEl(i.dataIndex);s!==u?s&&A[s.id]||u&&(w(u),s?(w(s),_(s),f=!0,(0,o.S)((0,o.W)(s),(0,o.W)(u),i.divide,a,t,c)):x(u,a,t)):u&&S(u,i.dataIndex,a)}new u.Z(r,l,C(!0,M),C(!1,M),null,"multiple").update(D).updateManyToOne((function(t,e){var n=l[t],a=n.data,s=a.hostModel,u=a.getItemGraphicEl(n.dataIndex),h=(0,i.hX)((0,i.UI)(e,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==u&&!A[t.id]}));u&&(w(u),h.length?((0,i.S6)(h,(function(t){w(t),_(t)})),f=!0,(0,o.S)((0,o.W)(h),(0,o.W)(u),n.divide,s,t,c)):x(u,s,n.dataIndex))})).updateOneToMany((function(t,e){var n=r[e],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!A[a.id]){var s=(0,i.hX)((0,i.UI)(t,(function(t){return l[t].data.getItemGraphicEl(l[t].dataIndex)})),(function(t){return t&&t!==a})),u=l[t[0]].data.hostModel;s.length&&((0,i.S6)(s,(function(t){return w(t)})),a?(w(a),_(a),f=!0,(0,o.S)((0,o.W)(a),(0,o.W)(s),n.divide,u,t[0],c)):(0,i.S6)(s,(function(e){return x(e,u,t[0])})))}})).updateManyToMany((function(t,e){new u.Z(e,t,(function(t){return r[t].data.getId(r[t].dataIndex)}),(function(t){return l[t].data.getId(l[t].dataIndex)})).update((function(n,r){D(t[n],e[r])})).execute()})).execute(),f&&(0,i.S6)(e,(function(t){var e=t.data,r=e.hostModel,i=r&&n.getViewOfSeriesModel(r),o=(0,s.ke)("update",r,0);i&&r.isAnimationEnabled()&&o&&o.duration>0&&i.group.traverse((function(t){t instanceof a.ZP&&!t.animators.length&&t.animateFrom({style:{opacity:0}},o)}))}))}function k(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function C(t){return(0,i.kJ)(t)?t.sort().join(","):t}function M(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function A(t,e){var n=(0,i.kW)(),r=(0,i.kW)(),o=(0,i.kW)();return(0,i.S6)(t.oldSeries,(function(e,n){var a=t.oldDataGroupIds[n],s=t.oldData[n],u=k(e),l=C(u);r.set(l,{dataGroupId:a,data:s}),(0,i.kJ)(u)&&(0,i.S6)(u,(function(t){o.set(t,{key:l,dataGroupId:a,data:s})}))})),(0,i.S6)(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),a=t.getData(),s=k(t),u=C(s),l=r.get(u);if(l)n.set(u,{oldSeries:[{dataGroupId:l.dataGroupId,divide:M(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:M(a),data:a}]});else if((0,i.kJ)(s)){0;var c=[];(0,i.S6)(s,(function(t){var e=r.get(t);e.data&&c.push({dataGroupId:e.dataGroupId,divide:M(e.data),data:e.data})})),c.length&&n.set(u,{oldSeries:c,newSeries:[{dataGroupId:e,data:a,divide:M(a)}]})}else{var f=o.get(s);if(f){var h=n.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:M(f.data)}],newSeries:[]},n.set(f.key,h)),h.newSeries.push({dataGroupId:e,data:a,divide:M(a)})}}}})),n}function I(t,e){for(var n=0;n<t.length;n++){var r=null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id;if(r)return n}}function O(t,e,n,r){var o=[],a=[];(0,i.S6)((0,l.kF)(t.from),(function(t){var n=I(e.oldSeries,t);n>=0&&o.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:M(e.oldData[n]),groupIdDim:t.dimension})})),(0,i.S6)((0,l.kF)(t.to),(function(t){var r=I(n.updatedSeries,t);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:e.oldDataGroupIds[r],data:i,divide:M(i),groupIdDim:t.dimension})}})),o.length>0&&a.length>0&&T(o,a,r)}function D(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){(0,i.S6)((0,l.kF)(n.seriesTransition),(function(t){(0,i.S6)((0,l.kF)(t.to),(function(t){for(var e=n.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][r.V]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var o=g(e);if(o.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)(0,i.S6)((0,l.kF)(a),(function(t){O(t,o,n,e)}));else{var s=A(o,n);(0,i.S6)(s.keys(),(function(t){var n=s.get(t);T(n.oldSeries,n.newSeries,e)}))}(0,i.S6)(n.updatedSeries,(function(t){t[r.V]&&(t[r.V]=!1)}))}for(var u=t.getSeries(),c=o.oldSeries=[],h=o.oldDataGroupIds=[],d=o.oldData=[],p=0;p<u.length;p++){var v=u[p].getData();v.count()<f&&(c.push(u[p]),h.push(u[p].get("dataGroupId")),d.push(v))}}))}},73592:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(38496);function i(){var t=(0,r.Yf)();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"}}},44329:function(t,e,n){"use strict";if(n.d(e,{Gx:function(){return a},d1:function(){return i},n3:function(){return s}}),/^(539|826)$/.test(n.j))var r=n(95797);function i(t,e,n){if(t&&r.cq(e,t.type)>=0){var i=n.getData().tree.root,o=t.targetNode;if(r.HD(o)&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var a=t.targetNodeId;if(null!=a&&(o=i.getNodeById(a)))return{node:o}}}function o(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function a(t,e){var n=o(t);return r.cq(n,e)>=0}function s(t,e){var n=[];while(t){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}},75644:function(t,e,n){"use strict";n.d(e,{Z:function(){return S}});var r=n(18299),i=n(95797),o=n(61221),a=n(32262),s=n(50876),u=n(38496),l=n(99799),c=n(24427),f=n(26214),h=n(86366),d=n(45452),p=n(86594);function g(t,e){var n,r=t.get("coordinateSystem"),o=l.Z.get(r);return e&&e.coordSysDims&&(n=i.UI(e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=(0,s.T)(i)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}function v(t,e,n){var r,o;return n&&i.S6(t,(function(t,i){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=i),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(o=!0)})),o||null==r||(t[r].otherDims.itemName=0),r}function m(t,e,n){n=n||{};var r,s=e.getSourceManager(),u=!1;t?(u=!0,r=(0,f.nx)(t)):(r=s.getSource(),u=r.sourceFormat===p.cy);var l=(0,c.b)(e),m=g(e,l),b=n.useEncodeDefaulter,x=i.mf(b)?b:b?i.WA(d.pY,m,e):null,_={coordDimensions:m,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:x,canOmitUnusedDimensions:!u},w=(0,a.Z)(r,_),S=v(w.dimensions,n.createInvertedIndices,l),E=u?null:s.getSharedDataStore(w),T=(0,h.BM)(e,{schema:w,store:E}),k=new o.Z(w,e);k.setCalculationInfo(T);var C=null!=S&&y(r)?function(t,e,n,r){return r===S?n:this.defaultDimValueGetter(t,e,n,r)}:null;return k.hasItemOption=!1,k.initData(u?r:E,null,C),k}function y(t){if(t.sourceFormat===p.cy){var e=b(t.data||[]);return!i.kJ((0,u.C4)(e))}}function b(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var x=m,_=n(84895),w=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(t,e){return x(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}(_.Z),S=w},79246:function(t,e,n){"use strict";n.d(e,{Z:function(){return P}});var r=n(18299),i=n(3082),o=n(51058),a=n(22995),s=n(86741),u=n(75195),l=n(10859),c=n(29221);function f(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=(0,c.hk)(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push((0,c.hk)(t,e,n[a]));return o.join(" ")}}var h=n(95797),d=n(19552),p=n(12222),g=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return(0,r.ZT)(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=(0,s.th)(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=v,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(){(0,l.fD)(this.childAt(0))},e.prototype.downplay=function(){(0,l.Mh)(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 a=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,u=e.getSymbolSize(t,n),l=a!==this._symbolType,c=i&&i.disableAnimation;if(l){var f=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,u,f)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:u[0]/2,scaleY:u[1]/2};c?h.attr(d):o.D(h,d,s,n),(0,o.Zi)(h)}if(this._updateCommon(t,n,u,r,i),l){h=this.childAt(0);if(!c){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,o.KZ(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,u,c,g,v,m,y,b,x=this.childAt(0),_=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,u=r.selectItemStyle,c=r.focus,g=r.blurScope,m=r.labelStatesModels,y=r.hoverScale,b=r.cursorStyle,v=r.emphasisDisabled),!r||t.hasItemOption){var w=r&&r.itemModel?r.itemModel:t.getItemModel(e),S=w.getModel("emphasis");o=S.getModel("itemStyle").getItemStyle(),u=w.getModel(["select","itemStyle"]).getItemStyle(),a=w.getModel(["blur","itemStyle"]).getItemStyle(),c=S.get("focus"),g=S.get("blurScope"),v=S.get("disabled"),m=(0,d.k3)(w),y=S.getShallow("scale"),b=w.getShallow("cursor")}var E=t.getItemVisual(e,"symbolRotate");x.attr("rotation",(E||0)*Math.PI/180||0);var T=(0,s.Cq)(t.getItemVisual(e,"symbolOffset"),n);T&&(x.x=T[0],x.y=T[1]),b&&x.attr("cursor",b);var k=t.getItemVisual(e,"style"),C=k.fill;if(x instanceof p.ZP){var M=x.style;x.useStyle((0,h.l7)({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},k))}else x.__isEmptyBrush?x.useStyle((0,h.l7)({},k)):x.useStyle(k),x.style.decal=null,x.setColor(C,i&&i.symbolInnerColor),x.style.strokeNoScale=!0;var A=t.getItemVisual(e,"liftZ"),I=this._z2;null!=A?null==I&&(this._z2=x.z2,x.z2+=A):null!=I&&(x.z2=I,this._z2=null);var O=i&&i.useNameLabel;function D(e){return O?t.getName(e):f(t,e)}(0,d.ni)(x,m,{labelFetcher:_,labelDataIndex:e,defaultText:D,inheritColor:C,defaultOpacity:k.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var P=x.ensureState("emphasis");P.style=o,x.ensureState("select").style=u,x.ensureState("blur").style=a;var L=null==y||!0===y?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;P.scaleX=this._sizeX*L,P.scaleY=this._sizeY*L,this.setSymbolScale(1),(0,l.k5)(this,c,g,v)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=(0,u.A)(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var s=r.getTextContent();s&&o.bX(s,{style:{opacity:0}},e,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();o.bX(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:a})},e.getSymbolSize=function(t,e){return(0,s.zp)(t.getItemVisual(e,"symbolSize"))},e}(i.Z);function v(t,e){this.parent.drift(t,e)}var m=g;function y(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 b(t){return null==t||(0,h.Kn)(t)||(t={isIgnore:t}),t||{}}function x(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:(0,d.k3)(e),cursorStyle:e.get("cursor")}}var _=function(){function t(t){this.group=new i.Z,this._SymbolCtor=t||m}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=b(e);var n=this.group,r=t.hostModel,i=this._data,a=this._SymbolCtor,s=e.disableAnimation,u=x(t),l={disableAnimation:s},c=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i=c(r);if(y(t,i,r,e)){var o=new a(t,r,u,l);o.setPosition(i),t.setItemGraphicEl(r,o),n.add(o)}})).update((function(f,h){var d=i.getItemGraphicEl(h),p=c(f);if(y(t,p,f,e)){var g=t.getItemVisual(f,"symbol")||"circle",v=d&&d.getSymbolType&&d.getSymbolType();if(!d||v&&v!==g)n.remove(d),d=new a(t,f,u,l),d.setPosition(p);else{d.updateData(t,f,u,l);var m={x:p[0],y:p[1]};s?d.attr(m):o.D(d,m,r)}n.add(d),t.setItemGraphicEl(f,d)}else n.remove(d)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=c,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=x(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=b(n);for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(y(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){a.traverseElements(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}(),w=_,S=n(96805),E=n(23256),T=4,k=function(){function t(){}return t}(),C=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,r.ZT)(e,t),e.prototype.getDefaultShape=function(){return new k},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,u=s&&i[0]<T,l=this.softClipShape;if(u)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],f=r[n++];isNaN(c)||isNaN(f)||(l&&!l.contain(c,f)||(a.x=c-i[0]/2,a.y=f-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 u=2*s,l=r[u]-o/2,c=r[u+1]-a/2;if(t>=l&&e>=c&&t<=l+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(t=n[0],e=n[1],r.contain(t,e)){var i=this.hoverDataIdx=this.findDataIndex(t,e);return i>=0}return 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,u=-1/0,l=-1/0,c=0;c<n.length;){var f=n[c++],h=n[c++];a=Math.min(f,a),u=Math.max(f,u),s=Math.min(h,s),l=Math.max(h,l)}t=this._rect=new S.Z(a-i/2,s-o/2,u-a+i,l-s+o)}return t},e}(E.ZP),M=function(){function t(){this.group=new i.Z}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 u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new C({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=(0,s.th)(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<T;t.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),l=a&&a.fill;l&&t.setColor(l);var c=(0,u.A)(t);c.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){c.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(c.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),A=M,I=n(41248),O=n(55486),D=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._updateSymbolDraw(r,t);i.updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData(),i=this._updateSymbolDraw(r,t);i.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=(0,I.Z)("").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){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext,i=r.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new A:new w,this._isLargeDraw=i,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}(O.Z),P=D},10153:function(t,e,n){"use strict";if(n.d(e,{N:function(){return u}}),/^(539|826)$/.test(n.j))var r=n(35183);if(/^(539|826)$/.test(n.j))var i=n(75644);if(/^(539|826)$/.test(n.j))var o=n(79246);if(/^(539|826)$/.test(n.j))var a=n(44714);if(/^(539|826)$/.test(n.j))var s=n(41248);function u(t){(0,r.D)(a.N),t.registerSeriesModel(i.Z),t.registerChartView(o.Z),t.registerLayout((0,s.Z)("scatter"))}},10022:function(t,e,n){"use strict";n.d(e,{Z:function(){return I}});var r=n(18299),i=n(95797),o=n(84895),a=n(38496),s=(0,a.Yf)();function u(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,g(e,n,t),(0,i.S6)(n,(function(n){(0,i.S6)(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,(0,i.WA)(l,t))}))})),e.wrapMethod("cloneShallow",(0,i.WA)(f,t)),(0,i.S6)(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,(0,i.WA)(c,t))})),(0,i.hu)(n[e.dataType]===e)}function l(t,e){if(p(this)){var n=(0,i.l7)({},s(this).datas);n[this.dataType]=e,g(e,n,t)}else v(e,this.dataType,s(this).mainData,t);return e}function c(t,e){return t.struct&&t.struct.update(),e}function f(t,e){return(0,i.S6)(s(e).datas,(function(n,r){n!==e&&v(n.cloneShallow(),r,e,t)})),e}function h(t){var e=s(this).mainData;return null==t||null==e?e:s(e).datas[t]}function d(){var t=s(this).mainData;return null==t?[{data:t}]:(0,i.UI)((0,i.XP)(s(t).datas),(function(e){return{type:e,data:s(t).datas[e]}}))}function p(t){return s(t).mainData===t}function g(t,e,n){s(t).datas={},(0,i.S6)(e,(function(e,r){v(e,r,t,n)}))}function v(t,e,n,r){s(n).datas[e]=t,s(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=h,t.getLinkedDataAll=d}var m=u,y=n(61221),b=n(32262),x=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){i.mf(t)&&(n=e,e=t,t=null),t=t||{},i.HD(t)&&(t={order:t});var r,o=t.order||"preorder",a=this[t.attr||"children"];"preorder"===o&&(r=e.call(n,this));for(var s=0;!r&&s<a.length;s++)a[s].eachNode(t,e,n);"postorder"===o&&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){var e=[],n=t?this:this.parentNode;while(n)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){var t=[],e=this;while(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)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.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){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),_=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 o=new t(n),s=[],u=1;function l(t,e){var n=t.value;u=Math.max(u,i.kJ(n)?n.length:1),s.push(t);var r=new x((0,a.U5)(t.name,""),o);e?w(r,e):o.root=r,o._nodes.push(r);var c=t.children;if(c)for(var f=0;f<c.length;f++)l(c[f],r)}l(e),o.root.updateDepthAndHeight(0);var c=(0,b.Z)(s,{coordDimensions:["value"],dimensionsCount:u}).dimensions,f=new y.Z(c,n);return f.initData(s),r&&r(f),m({mainData:f,struct:o,structAttr:"tree"}),o.update(),o},t}();function w(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var S=_,E=n(44329),T=n(85632),k=n(25650);function C(t){var e=t.getData(),n=e.tree,r={};n.eachNode((function(e){var n=e;while(n&&n.depth>1)n=n.parentNode;var i=(0,k.i)(t.ecModel,n.name||n.dataIndex+"",r);e.setVisual("decal",i)}))}var M=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};A(n);var r=this._levelModels=i.UI(t.levels||[],(function(t){return new T.Z(t,this,e)}),this),o=S.createTree(n,this,a);function a(t){t.wrapMethod("getItemModel",(function(t,e){var n=o.getNodeByDataIndex(e),i=r[n.depth];return i&&(t.parentModel=i),t}))}return o.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=(0,E.n3)(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(){C(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}(o.Z);function A(t){var e=0;i.S6(t.children,(function(t){A(t);var n=t.value;i.kJ(n)&&(n=n[0]),e+=n}));var n=t.value;i.kJ(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),i.kJ(t.value)?t.value[0]=n:t.value=n}var I=M},93464:function(t,e,n){"use strict";n.d(e,{Z:function(){return T}});var r=n(18299),i=n(95797),o=n(55486),a=n(49386),s=n(51058),u=n(60497),l=n(10859),c=n(19552),f=n(75195),h=n(66332);function d(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;(0,i.kJ)(r)||(r=[r,r,r,r]);var o=Math.abs(e.r||0-e.r0||0);return{cornerRadius:(0,i.UI)(r,(function(t){return(0,h.GM)(t,o)}))}}var p=n(4258),g=n(79214),v=n(41201),m=2,y=4,b=function(t){function e(e,n,r,i){var o=t.call(this)||this;o.z2=m,o.textConfig={inside:!0},(0,f.A)(o).seriesIndex=n.seriesIndex;var s=new a.ZP({z2:y,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,n,r,i),o}return(0,r.ZT)(e,t),e.prototype.updateData=function(t,e,n,r,o){this.node=e,e.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var a=this;(0,f.A)(a).dataIndex=e.dataIndex;var u=e.getModel(),c=u.getModel("emphasis"),h=e.getLayout(),g=i.l7({},h);g.label=null;var v=e.getVisual("style");v.lineJoin="bevel";var m=e.getVisual("decal");m&&(v.decal=(0,p.I)(m,o));var y=d(u.getModel("itemStyle"),g,!0);i.l7(g,y),i.S6(l.L1,(function(t){var e=a.ensureState(t),n=u.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var r=d(n,g);r&&(e.shape=r)})),t?(a.setShape(g),a.shape.r=h.r0,s.KZ(a,{shape:{r:h.r}},n,e.dataIndex)):(s.D(a,{shape:g},n),(0,s.Zi)(a)),a.useStyle(v),this._updateLabel(n);var b=u.getShallow("cursor");b&&a.attr("cursor",b),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var x=c.get("focus"),_="ancestor"===x?e.getAncestorsIndices():"descendant"===x?e.getDescendantIndices():x;(0,l.k5)(this,_,c.get("blurScope"),c.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),r=n.getModel("label"),o=this.node.getLayout(),a=o.endAngle-o.startAngle,s=(o.startAngle+o.endAngle)/2,u=Math.cos(s),f=Math.sin(s),h=this,d=h.getTextContent(),p=this.node.dataIndex,m=r.get("minAngle")/180*Math.PI,y=r.get("show")&&!(null!=m&&Math.abs(a)<m);function b(t,e){var n=t.get(e);return null==n?r.get(e):n}d.ignore=!y,i.S6(l.qc,(function(r){var l="normal"===r?n.getModel("label"):n.getModel([r,"label"]),m="normal"===r,y=m?d:d.ensureState(r),x=t.getFormattedLabel(p,r);m&&(x=x||e.node.name),y.style=(0,c.Lr)(l,{},null,"normal"!==r,!0),x&&(y.style.text=x);var _=l.get("show");null==_||m||(y.ignore=!_);var w,S=b(l,"position"),E=m?h:h.states[r],T=E.style.fill;E.textConfig={outsideFill:"inherit"===l.get("color")?T:null,inside:"outside"!==S};var k=b(l,"distance")||0,C=b(l,"align"),M=b(l,"rotate"),A=.5*Math.PI,I=1.5*Math.PI,O=(0,g.m)("tangential"===M?Math.PI/2-s:s),D=O>A&&!(0,v.mW)(O-A)&&O<I;"outside"===S?(w=o.r+k,C=D?"right":"left"):C&&"center"!==C?"left"===C?(w=o.r0+k,C=D?"right":"left"):"right"===C&&(w=o.r-k,C=D?"left":"right"):(w=a===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,C="center"),y.style.align=C,y.style.verticalAlign=b(l,"verticalAlign")||"middle",y.x=w*u+o.cx,y.y=w*f+o.cy;var P=0;"radial"===M?P=(0,g.m)(-s)+(D?Math.PI:0):"tangential"===M?P=(0,g.m)(Math.PI/2-s)+(D?Math.PI:0):i.hj(M)&&(P=M*Math.PI/180),y.rotation=(0,g.m)(P)})),d.dirtyStyle()},e}(u.C),x=b,_=n(56441),w=n(99271),S=n(41054),E=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n,r){var o=this;this.seriesModel=t,this.api=n,this.ecModel=e;var a=t.getData(),s=a.tree.root,u=t.getViewRoot(),l=this.group,c=t.get("renderLabelForZeroData"),f=[];u.eachNode((function(t){f.push(t)}));var h=this._oldChildren||[];function d(t,e){function n(t){return t.getId()}function r(n,r){var i=null==n?null:t[n],o=null==r?null:e[r];p(i,o)}0===t.length&&0===e.length||new _.Z(e,t,n,n).add(r).update(r).remove(i.WA(r,null)).execute()}function p(r,i){if(c||!r||r.getValue()||(r=null),r!==s&&i!==s)if(i&&i.piece)r?(i.piece.updateData(!1,r,t,e,n),a.setItemGraphicEl(r.dataIndex,i.piece)):g(i);else if(r){var o=new x(r,t,e,n);l.add(o),a.setItemGraphicEl(r.dataIndex,o)}}function g(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}function v(r,i){i.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,r,t,e,n):(o.virtualPiece=new x(r,t,e,n),l.add(o.virtualPiece)),i.piece.off("click"),o.virtualPiece.on("click",(function(t){o._rootToNode(i.parentNode)}))):o.virtualPiece&&(l.remove(o.virtualPiece),o.virtualPiece=null)}d(f,h),v(s,u),this._initEvents(),this._oldChildren=f},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1,r=t.seriesModel.getViewRoot();r.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){var s=o.get("target",!0)||"_blank";(0,S.MI)(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:w.Y,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData(),r=n.getItemLayout(0);if(r){var i=t[0]-r.cx,o=t[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},e.type="sunburst",e}(o.Z),T=E},38392:function(t,e,n){"use strict";if(n.d(e,{N:function(){return c}}),/^(539|826)$/.test(n.j))var r=n(93464);if(/^(539|826)$/.test(n.j))var i=n(10022);if(/^(539|826)$/.test(n.j))var o=n(83583);if(/^(539|826)$/.test(n.j))var a=n(76138);if(/^(539|826)$/.test(n.j))var s=n(51124);if(/^(539|826)$/.test(n.j))var u=n(95797);if(/^(539|826)$/.test(n.j))var l=n(99271);function c(t){t.registerChartView(r.Z),t.registerSeriesModel(i.Z),t.registerLayout((0,u.WA)(o.Z,"sunburst")),t.registerProcessor((0,u.WA)(s.Z,"sunburst")),t.registerVisual(a.Z),(0,l.C)(t)}},99271:function(t,e,n){"use strict";if(n.d(e,{C:function(){return u},Y:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(44329);var o="sunburstRootToNode",a="sunburstHighlight",s="sunburstUnhighlight";function u(t){t.registerAction({type:o,update:"updateView"},(function(t,e){function n(e,n){var r=(0,i.d1)(t,[o],e);if(r){var a=e.getViewRoot();a&&(t.direction=(0,i.Gx)(a,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:a,update:"none"},(function(t,e,n){function o(e){var n=(0,i.d1)(t,[a],e);n&&(t.dataIndex=n.node.dataIndex)}t=(0,r.l7)({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},o),n.dispatchAction((0,r.l7)(t,{type:"highlight"}))})),t.registerAction({type:s,update:"updateView"},(function(t,e,n){t=(0,r.l7)({},t),n.dispatchAction((0,r.l7)(t,{type:"downplay"}))}))}},83583:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return a}}),/^(539|826)$/.test(n.j))var r=n(41201);if(/^(539|826)$/.test(n.j))var i=n(95797);var o=Math.PI/180;function a(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),a=t.get("radius");i.kJ(a)||(a=[0,a]),i.kJ(e)||(e=[e,e]);var u=n.getWidth(),l=n.getHeight(),c=Math.min(u,l),f=(0,r.GM)(e[0],u),h=(0,r.GM)(e[1],l),d=(0,r.GM)(a[0],c/2),p=(0,r.GM)(a[1],c/2),g=-t.get("startAngle")*o,v=t.get("minAngle")*o,m=t.getData().tree.root,y=t.getViewRoot(),b=y.depth,x=t.get("sort");null!=x&&s(y,x);var _=0;i.S6(y.children,(function(t){!isNaN(t.getValue())&&_++}));var w=y.getValue(),S=Math.PI/(w||_)*2,E=y.depth>0,T=y.height-(E?-1:1),k=(p-d)/(T||1),C=t.get("clockwise"),M=t.get("stillShowZeroSum"),A=C?1:-1,I=function(e,n){if(e){var o=n;if(e!==m){var a=e.getValue(),s=0===w&&M?S:a*S;s<v&&(s=v),o=n+A*s;var u=e.depth-b-(E?-1:1),l=d+k*u,p=d+k*(u+1),g=t.getLevelModel(e);if(g){var y=g.get("r0",!0),x=g.get("r",!0),_=g.get("radius",!0);null!=_&&(y=_[0],x=_[1]),null!=y&&(l=(0,r.GM)(y,c/2)),null!=x&&(p=(0,r.GM)(x,c/2))}e.setLayout({angle:s,startAngle:n,endAngle:o,clockwise:C,cx:f,cy:h,r0:l,r:p})}if(e.children&&e.children.length){var T=0;i.S6(e.children,(function(t){T+=I(t,n+T)}))}return o-n}};if(E){var O=d,D=d+k,P=2*Math.PI;m.setLayout({angle:P,startAngle:g,endAngle:g+P,clockwise:C,cx:f,cy:h,r0:O,r:D})}I(y,g)}))}function s(t,e){var n=t.children||[];t.children=u(n,e),n.length&&i.S6(t.children,(function(t){s(t,e)}))}function u(t,e){if(i.mf(e)){var n=i.UI(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)})),i.UI(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}))}},76138:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(76171);if(/^(539|826)$/.test(n.j))var i=n(95797);function o(t){var e={};function n(t,n,o){var a=t;while(a&&a.depth>1)a=a.parentNode;var s=n.getColorFromPalette(a.name||a.dataIndex+"",e);return t.depth>1&&(0,i.HD)(s)&&(s=(0,r.xb)(s,(t.depth-1)/(o-1)*.5)),s}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),r=e.tree;r.eachNode((function(o){var a=o.getModel(),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=n(o,t,r.root.height));var u=e.ensureUniqueItemVisual(o.dataIndex,"style");(0,i.l7)(u,s)}))}))}},57180:function(t,e,n){"use strict";var r=n(95797),i=n(3082),o=n(22940),a=n(22995),s=n(49386),u=n(75195),l=n(19552),c=n(85632),f=n(41201),h=n(86741),d=n(66012),p=n(15468),g=n(80148),v=n(96695),m=Math.PI,y=function(){function t(t,e){this.group=new i.Z,this.opt=e,this.axisModel=t,(0,r.ce)(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new i.Z({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!b[t]},t.prototype.add=function(t){b[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=(0,f.wW)(e-t);return(0,f.mW)(o)?(i=n>0?"top":"bottom",r="center"):(0,f.mW)(o-m)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<m?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}(),b={axisLine:function(t,e,n,i){var s=e.get(["axisLine","show"]);if("auto"===s&&t.handleAutoShown&&(s=t.handleAutoShown("axisLine")),s){var u=e.axis.getExtent(),l=i.transform,c=[u[0],0],f=[u[1],0],d=c[0]>f[0];l&&((0,p.Ne)(c,c,l),(0,p.Ne)(f,f,l));var g=(0,r.l7)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),v=new o.Z({shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:g,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});a.subPixelOptimizeLine(v.shape,v.style.lineWidth),v.anid="line",n.add(v);var m=e.get(["axisLine","symbol"]);if(null!=m){var y=e.get(["axisLine","symbolSize"]);(0,r.HD)(m)&&(m=[m,m]),((0,r.HD)(y)||(0,r.hj)(y))&&(y=[y,y]);var b=(0,h.Cq)(e.get(["axisLine","symbolOffset"])||0,y),x=y[0],_=y[1];(0,r.S6)([{rotate:t.rotation+Math.PI/2,offset:b[0],r:0},{rotate:t.rotation-Math.PI/2,offset:b[1],r:Math.sqrt((c[0]-f[0])*(c[0]-f[0])+(c[1]-f[1])*(c[1]-f[1]))}],(function(e,r){if("none"!==m[r]&&null!=m[r]){var i=(0,h.th)(m[r],-x/2,-_/2,x,_,g.stroke,!0),o=e.r+e.offset,a=d?f:c;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,i){var o=k(n,i,e,t),a=M(n,i,e,t);if(_(e,a,o),C(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var s=(0,v.VT)((0,r.UI)(a,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));(0,v.yl)(s)}},axisName:function(t,e,n,i){var o=(0,r.Jv)(t.axisName,e.get("name"));if(o){var c,f,h=e.get("nameLocation"),d=t.nameDirection,p=e.getModel("nameTextStyle"),g=e.get("nameGap")||0,v=e.axis.getExtent(),b=v[0]>v[1]?-1:1,_=["start"===h?v[0]-b*g:"end"===h?v[1]+b*g:(v[0]+v[1])/2,E(h)?t.labelOffset+d*g:0],w=e.get("nameRotate");null!=w&&(w=w*m/180),E(h)?c=y.innerTextLayout(t.rotation,null!=w?w:t.rotation,d):(c=x(t.rotation,h,w||0,v),f=t.axisNameAvailableWidth,null!=f&&(f=Math.abs(f/Math.sin(c.rotation)),!isFinite(f)&&(f=null)));var S=p.getFont(),T=e.get("nameTruncate",!0)||{},k=T.ellipsis,C=(0,r.Jv)(t.nameTruncateMaxWidth,T.maxWidth,f),M=new s.ZP({x:_[0],y:_[1],rotation:c.rotation,silent:y.isLabelSilent(e),style:(0,l.Lr)(p,{text:o,font:S,overflow:"truncate",width:C,ellipsis:k,fill:p.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:p.get("align")||c.textAlign,verticalAlign:p.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(a.setTooltipConfig({el:M,componentModel:e,itemName:o}),M.__fullText=o,M.anid="name",e.get("triggerEvent")){var A=y.makeAxisEventDataBase(e);A.targetType="axisName",A.name=o,(0,u.A)(M).eventData=A}i.add(M),M.updateTransform(),n.add(M),M.decomposeTransform()}}};function x(t,e,n,r){var i,o,a=(0,f.wW)(n-t),s=r[0]>r[1],u="start"===e&&!s||"start"!==e&&s;return(0,f.mW)(a-m/2)?(o=u?"bottom":"top",i="center"):(0,f.mW)(a-1.5*m)?(o=u?"top":"bottom",i="center"):(o="middle",i=a<1.5*m&&a>m/2?u?"left":"right":u?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function _(t,e,n){if(!(0,g.WY)(t.axis)){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],u=e[e.length-2],l=n[0],c=n[1],f=n[n.length-1],h=n[n.length-2];!1===r?(w(o),w(l)):S(o,a)&&(r?(w(a),w(c)):(w(o),w(l))),!1===i?(w(s),w(f)):S(u,s)&&(i?(w(u),w(h)):(w(s),w(f)))}}function w(t){t&&(t.ignore=!0)}function S(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=d.yR([]);return d.U1(i,i,-t.rotation),n.applyTransform(d.dC([],i,t.getLocalTransform())),r.applyTransform(d.dC([],i,e.getLocalTransform())),n.intersect(r)}}function E(t){return"middle"===t||"center"===t}function T(t,e,n,r,i){for(var s=[],u=[],l=[],c=0;c<t.length;c++){var f=t[c].coord;u[0]=f,u[1]=0,l[0]=f,l[1]=n,e&&((0,p.Ne)(u,u,e),(0,p.Ne)(l,l,e));var h=new o.Z({shape:{x1:u[0],y1:u[1],x2:l[0],y2:l[1]},style:r,z2:2,autoBatch:!0,silent:!0});a.subPixelOptimizeLine(h.shape,h.style.lineWidth),h.anid=i+"_"+t[c].tickValue,s.push(h)}return s}function k(t,e,n,i){var o=n.axis,a=n.getModel("axisTick"),s=a.get("show");if("auto"===s&&i.handleAutoShown&&(s=i.handleAutoShown("axisTick")),s&&!o.scale.isBlank()){for(var u=a.getModel("lineStyle"),l=i.tickDirection*a.get("length"),c=o.getTicksCoords(),f=T(c,e.transform,l,(0,r.ce)(u.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)t.add(f[h]);return f}}function C(t,e,n,i){var o=n.axis,a=n.getModel("minorTick");if(a.get("show")&&!o.scale.isBlank()){var s=o.getMinorTicksCoords();if(s.length)for(var u=a.getModel("lineStyle"),l=i*a.get("length"),c=(0,r.ce)(u.getLineStyle(),(0,r.ce)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),f=0;f<s.length;f++)for(var h=T(s[f],e.transform,l,c,"minorticks_"+f),d=0;d<h.length;d++)t.add(h[d])}}function M(t,e,n,i){var o=n.axis,a=(0,r.Jv)(i.axisLabelShow,n.get(["axisLabel","show"]));if(a&&!o.scale.isBlank()){var f=n.getModel("axisLabel"),h=f.get("margin"),d=o.getViewLabels(),p=((0,r.Jv)(i.labelRotate,f.get("rotate"))||0)*m/180,g=y.innerTextLayout(i.rotation,p,i.labelDirection),v=n.getCategories&&n.getCategories(!0),b=[],x=y.isLabelSilent(n),_=n.get("triggerEvent");return(0,r.S6)(d,(function(a,p){var m="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(a.tickValue):a.tickValue,w=a.formattedLabel,S=a.rawLabel,E=f;if(v&&v[m]){var T=v[m];(0,r.Kn)(T)&&T.textStyle&&(E=new c.Z(T.textStyle,f,n.ecModel))}var k=E.getTextColor()||n.get(["axisLine","lineStyle","color"]),C=o.dataToCoord(m),M=E.getShallow("align",!0)||g.textAlign,A=(0,r.pD)(E.getShallow("alignMinLabel",!0),M),I=(0,r.pD)(E.getShallow("alignMaxLabel",!0),M),O=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||g.textVerticalAlign,D=(0,r.pD)(E.getShallow("verticalAlignMinLabel",!0),O),P=(0,r.pD)(E.getShallow("verticalAlignMaxLabel",!0),O),L=new s.ZP({x:C,y:i.labelOffset+i.labelDirection*h,rotation:g.rotation,silent:x,z2:10+(a.level||0),style:(0,l.Lr)(E,{text:w,align:0===p?A:p===d.length-1?I:M,verticalAlign:0===p?D:p===d.length-1?P:O,fill:(0,r.mf)(k)?k("category"===o.type?S:"value"===o.type?m+"":m,p):k})});if(L.anid="label_"+m,_){var N=y.makeAxisEventDataBase(n);N.targetType="axisLabel",N.value=S,N.tickIndex=p,"category"===o.type&&(N.dataIndex=m),(0,u.A)(L).eventData=N}e.add(L),L.updateTransform(),b.push(L),t.add(L),L.decomposeTransform()})),b}}e.Z=/^(539|826)$/.test(n.j)?y:null},32616:function(t,e,n){"use strict";var r=n(18299),i=n(30846),o=n(59160),a={},s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(e,n,r,o){this.axisPointerClass&&i.iG(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 o=e.getAxisPointerClass(this.axisPointerClass);if(o){var a=i.np(t);a?(this._axisPointer||(this._axisPointer=new o)).render(t,a,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){a[t]=e},e.getAxisPointerClass=function(t){return t&&a[t]},e.type="axis",e}(o.Z);e.Z=/^(539|826)$/.test(n.j)?s:null},62759:function(t,e,n){"use strict";n.d(e,{Tf:function(){return _},$l:function(){return w}});var r=n(18299),i=n(95797),o=n(3082),a=n(22995),s=n(22940),u=n(57180),l=n(32616),c=n(40705),f=n(96354),h=n(38496),d=(0,h.Yf)();function p(t,e,n,r){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitArea"),s=a.getModel("areaStyle"),u=s.get("color"),l=r.coordinateSystem.getRect(),c=o.getTicksCoords({tickModel:a,clamp:!0});if(c.length){var h=u.length,p=d(t).splitAreaColors,g=i.kW(),v=0;if(p)for(var m=0;m<c.length;m++){var y=p.get(c[m].tickValue);if(null!=y){v=(y+(h-1)*m)%h;break}}var b=o.toGlobalCoord(c[0].coord),x=s.getAreaStyle();u=i.kJ(u)?u:[u];for(m=1;m<c.length;m++){var _=o.toGlobalCoord(c[m].coord),w=void 0,S=void 0,E=void 0,T=void 0;o.isHorizontal()?(w=b,S=l.y,E=_-w,T=l.height,b=w+E):(w=l.x,S=b,E=l.width,T=_-S,b=S+T);var k=c[m-1].tickValue;null!=k&&g.set(k,v),e.add(new f.Z({anid:null!=k?"area_"+k:null,shape:{x:w,y:S,width:E,height:T},style:i.ce({fill:u[v]},x),autoBatch:!0,silent:!0})),v=(v+1)%h}d(t).splitAreaColors=g}}}function g(t){d(t).splitAreaColors=null}var v=n(89583),m=["axisLine","axisTickLabel","axisName"],y=["splitArea","splitLine","minorSplitLine"],b=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return(0,r.ZT)(e,t),e.prototype.render=function(e,n,r,s){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new o.Z,this.group.add(this._axisGroup),e.get("show")){var f=e.getCoordSysModel(),h=c.bK(f,e),d=new u.Z(e,i.l7({handleAutoShown:function(t){for(var n=f.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if((0,v.lM)(n[r].getOtherAxis(e.axis).scale))return!0;return!1}},h));i.S6(m,d.add,d),this._axisGroup.add(d.getGroup()),i.S6(y,(function(t){e.get([t,"show"])&&x[t](this,this._axisGroup,e,f)}),this);var p=s&&"changeAxisOrder"===s.type&&s.isInitSort;p||a.groupTransition(l,this._axisGroup,e),t.prototype.render.call(this,e,n,r,s)}},e.prototype.remove=function(){g(this)},e.type="cartesianAxis",e}(l.Z),x={splitLine:function(t,e,n,r){var o=n.axis;if(!o.scale.isBlank()){var u=n.getModel("splitLine"),l=u.getModel("lineStyle"),c=l.get("color");c=i.kJ(c)?c:[c];for(var f=r.coordinateSystem.getRect(),h=o.isHorizontal(),d=0,p=o.getTicksCoords({tickModel:u}),g=[],v=[],m=l.getLineStyle(),y=0;y<p.length;y++){var b=o.toGlobalCoord(p[y].coord);h?(g[0]=b,g[1]=f.y,v[0]=b,v[1]=f.y+f.height):(g[0]=f.x,g[1]=b,v[0]=f.x+f.width,v[1]=b);var x=d++%c.length,_=p[y].tickValue,w=new s.Z({anid:null!=_?"line_"+p[y].tickValue:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},style:i.ce({stroke:c[x]},m),silent:!0});a.subPixelOptimizeLine(w.shape,m.lineWidth),e.add(w)}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=n.getModel("minorSplitLine"),u=o.getModel("lineStyle"),l=r.coordinateSystem.getRect(),c=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var h=[],d=[],p=u.getLineStyle(),g=0;g<f.length;g++)for(var v=0;v<f[g].length;v++){var m=i.toGlobalCoord(f[g][v].coord);c?(h[0]=m,h[1]=l.y,d[0]=m,d[1]=l.y+l.height):(h[0]=l.x,h[1]=m,d[0]=l.x+l.width,d[1]=m);var y=new s.Z({anid:"minor_line_"+f[g][v].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:p,silent:!0});a.subPixelOptimizeLine(y.shape,p.lineWidth),e.add(y)}},splitArea:function(t,e,n,r){p(t,e,n,r)}},_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.type="xAxis",e}(b),w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=_.type,e}return(0,r.ZT)(e,t),e.type="yAxis",e}(b)},20807:function(t,e,n){"use strict";var r=n(18299),i=n(13350),o=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!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}(i.Z);e.Z=/^(539|826)$/.test(n.j)?o:null},55736:function(t,e,n){"use strict";var r=n(18299),i=n(72461),o=n(59160),a=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),o=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";i.z("axisPointer",n,(function(t,e,n){"none"!==o&&("leave"===t||o.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){i.E("axisPointer",e)},e.prototype.dispose=function(t,e){i.E("axisPointer",e)},e.type="axisPointer",e}(o.Z);e.Z=/^(539|826)$/.test(n.j)?a:null},36578:function(t,e,n){"use strict";n.d(e,{Z:function(){return A}});var r=n(18299),i=n(95797),o=n(3082),a=n(22995),s=n(49386),u=n(51058),l=n(30846),c=n(14834),f=n(54849),h=n(38496),d=(0,h.Yf)(),p=i.d9,g=i.ak,v=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var a=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==a||this._lastStatus!==s){this._lastValue=a,this._lastStatus=s;var u=this._group,l=this._handle;if(!s||"hide"===s)return u&&u.hide(),void(l&&l.hide());u&&u.show(),l&&l.show();var c={};this.makeElOption(c,a,t,e,n);var f=c.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(u){var d=i.WA(m,e,h);this.updatePointerEl(u,c,d),this.updateLabelEl(u,c,d,e)}else u=this._group=new o.Z,this.createPointerEl(u,c,t,e),this.createLabelEl(u,c,t,e),n.getZr().add(u);_(u,e,!0),this._renderHandle(a)}},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=l.r(t).seriesDataCount,u=r.getExtent();return Math.abs(u[0]-u[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=d(t).pointerEl=new a[i.type](p(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=d(t).labelEl=new s.ZP(p(e.label));t.add(i),b(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=d(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=d(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),b(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),o=this._handle,s=n.getModel("handle"),u=n.get("status");if(!s.get("show")||!u||"hide"===u)return o&&r.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=a.createIcon(s.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){c.sT(t.event)},onmousedown:g(this._onHandleDragMove,this,0,0),drift:g(this._onHandleDragMove,this),ondragend:g(this._onHandleDragEnd,this)}),r.add(o)),_(o,n,!1),o.setStyle(s.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=s.get("size");i.kJ(l)||(l=[l,l]),o.scaleX=l[0]/2,o.scaleY=l[1]/2,f.T9(this,"_doDispatchAxisPointer",s.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){m(this._axisPointerModel,!e&&this._moveAnimation,this._handle,x(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(x(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(x(r)),d(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),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),f.ZH(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function m(t,e,n,r){y(d(n).lastProp,r)||(d(n).lastProp=r,e?u.D(n,r,t):(n.stopAnimation(),n.attr(r)))}function y(t,e){if(i.Kn(t)&&i.Kn(e)){var n=!0;return i.S6(e,(function(e,r){n=n&&y(t[r],e)})),!!n}return t===e}function b(t,e){t[e.get(["label","show"])?"show":"hide"]()}function x(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function _(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 w=v,S=n(56964),E=n(40705),T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),u=k(a,o).getOtherAxis(o).getGlobalExtent(),l=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=S.fk(r),f=C[s](o,l,u);f.style=c,t.graphicKey=f.type,t.pointer=f}var h=E.bK(a.model,n);S.gf(e,t,h,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=E.bK(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=S.Zh(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=k(o,i).getOtherAxis(i).getGlobalExtent(),u="x"===i.dim?0:1,l=[t.x,t.y];l[u]+=e[u],l[u]=Math.min(a[1],l[u]),l[u]=Math.max(a[0],l[u]);var c=(s[1]+s[0])/2,f=[c,c];f[u]=l[u];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:f,tooltipOption:h[u]}},e}(w);function k(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var C={line:function(t,e,n){var r=S.BL([e,n[0]],[e,n[1]],M(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:S.uE([e-r/2,n[0]],[r,i],M(t))}}};function M(t){return"x"===t.dim?0:1}var A=T},66425:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(38496);if(/^(539|826)$/.test(n.j))var i=n(30846);if(/^(539|826)$/.test(n.j))var o=n(13337);if(/^(539|826)$/.test(n.j))var a=n(95797);var s=(0,r.Yf)();function u(t,e,n){var r=t.currTrigger,i=[t.x,t.y],s=t,u=t.dispatchAction||(0,a.ak)(n.dispatchAction,n),c=e.getComponent("axisPointer").coordSysAxesInfo;if(c){y(i)&&(i=(0,o.Z)({seriesIndex:s.seriesIndex,dataIndex:s.dataIndex},e).point);var b=y(i),x=s.axesInfo,_=c.axesInfo,w="leave"===r||y(i),S={},E={},T={list:[],map:{}},k={showPointer:(0,a.WA)(f,E),showTooltip:(0,a.WA)(h,T)};(0,a.S6)(c.coordSysMap,(function(t,e){var n=b||t.containPoint(i);(0,a.S6)(c.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=v(x,t);if(!w&&n&&(!x||o)){var a=o&&o.value;null!=a||b||(a=r.pointToData(i)),null!=a&&l(t,a,k,!1,S)}}))}));var C={};return(0,a.S6)(_,(function(t,e){var n=t.linkGroup;n&&!E[e]&&(0,a.S6)(n.axesInfo,(function(e,r){var i=E[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,m(e),m(t)))),C[t.key]=o}}))})),(0,a.S6)(C,(function(t,e){l(_[e],t,k,!0,S)})),d(E,_,S),p(T,i,t,u),g(_,u,n),S}}function l(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var s=c(e,t),u=s.payloadBatch,l=s.snapToValue;u[0]&&null==i.seriesIndex&&(0,a.l7)(i,u[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,u),n.showTooltip(t,s,l)}else n.showPointer(t,e)}function c(t,e){var n=e.axis,r=n.dim,i=t,o=[],s=Number.MAX_VALUE,u=-1;return(0,a.S6)(e.seriesModels,(function(e,l){var c,f,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);f=d.dataIndices,c=d.nestestValue}else{if(f=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!f.length)return;c=e.getData().get(h[0],f[0])}if(null!=c&&isFinite(c)){var p=t-c,g=Math.abs(p);g<=s&&((g<s||p>=0&&u<0)&&(s=g,u=p,i=c,o.length=0),(0,a.S6)(f,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}function f(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function h(t,e,n,r){var o=n.payloadBatch,a=e.axis,s=a.model,u=e.axisPointerModel;if(e.triggerTooltip&&o.length){var l=e.coordSys.model,c=i.zm(l),f=t.map[c];f||(f=t.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:r,valueLabelOpt:{precision:u.get(["label","precision"]),formatter:u.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function d(t,e,n){var r=n.axesInfo=[];(0,a.S6)(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})}))}function p(t,e,n,r){if(!y(e)&&t.list.length){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})}else r({type:"hideTip"})}function g(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=s(r)[i]||{},u=s(r)[i]={};(0,a.S6)(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&(0,a.S6)(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;u[e]=t}))}));var l=[],c=[];(0,a.S6)(o,(function(t,e){!u[e]&&c.push(t)})),(0,a.S6)(u,(function(t,e){!o[e]&&l.push(t)})),c.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:c}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function v(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}}function m(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 y(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}},13337:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(38496);function o(t,e){var n,o=[],a=t.seriesIndex;if(null==a||!(n=e.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),u=i.gO(s,t);if(null==u||u<0||r.kJ(u))return{point:[]};var l=s.getItemGraphicEl(u),c=n.coordinateSystem;if(n.getTooltipPosition)o=n.getTooltipPosition(u)||[];else if(c&&c.dataToPoint)if(t.isStacked){var f=c.getBaseAxis(),h=c.getOtherAxis(f),d=h.dim,p=f.dim,g="x"===d||"radius"===d?1:0,v=s.mapDimension(p),m=[];m[g]=s.get(v,u),m[1-g]=s.get(s.getCalculationInfo("stackResultDimension"),u),o=c.dataToPoint(m)||[]}else o=c.dataToPoint(s.getValues(r.UI(c.dimensions,(function(t){return s.mapDimension(t)})),u))||[];else if(l){var y=l.getBoundingRect().clone();y.applyTransform(l.transform),o=[y.x+y.width/2,y.y+y.height/2]}return{point:o,el:l}}},72461:function(t,e,n){"use strict";n.d(e,{E:function(){return p},z:function(){return u}});var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(59979);var o=n(38496),a=(0,o.Yf)(),s=r.S6;function u(t,e,n){if(!i.Z.node){var r=e.getZr();a(r).records||(a(r).records={}),l(r,e);var o=a(r).records[t]||(a(r).records[t]={});o.handler=n}}function l(t,e){function n(n,r){t.on(n,(function(n){var i=d(e);s(a(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),c(i.pendings,e)}))}a(t).initialized||(a(t).initialized=!0,n("click",r.WA(h,"click")),n("mousemove",r.WA(h,"mousemove")),n("globalout",f))}function c(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))}function f(t,e,n){t.handler("leave",null,n)}function h(t,e,n,r){e.handler(t,n,r)}function d(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}}function p(t,e){if(!i.Z.node){var n=e.getZr(),r=(a(n).records||{})[t];r&&(a(n).records[t]=null)}}},14887:function(t,e,n){"use strict";if(n.d(e,{N:function(){return c}}),/^(539|826)$/.test(n.j))var r=n(32616);if(/^(539|826)$/.test(n.j))var i=n(36578);if(/^(539|826)$/.test(n.j))var o=n(20807);if(/^(539|826)$/.test(n.j))var a=n(55736);if(/^(539|826)$/.test(n.j))var s=n(95797);if(/^(539|826)$/.test(n.j))var u=n(30846);if(/^(539|826)$/.test(n.j))var l=n(66425);function c(t){r.Z.registerAxisPointerClass("CartesianAxisPointer",i.Z),t.registerComponentModel(o.Z),t.registerComponentView(a.Z),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!(0,s.kJ)(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=(0,u.KM)(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},l.Z)}},30846:function(t,e,n){"use strict";if(n.d(e,{KM:function(){return o},iG:function(){return f},np:function(){return d},r:function(){return h},zm:function(){return g}}),/^(539|826)$/.test(n.j))var r=n(85632);if(/^(539|826)$/.test(n.j))var i=n(95797);function o(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return a(n,t,e),n.seriesInvolved&&u(n,t),n}function a(t,e,n){var r=e.getComponent("tooltip"),o=e.getComponent("axisPointer"),a=o.get("link",!0)||[],u=[];(0,i.S6)(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var c=g(n.model),f=t.coordSysAxesInfo[c]={};t.coordSysMap[c]=n;var h=n.model,d=h.getModel("tooltip",r);if((0,i.S6)(n.getAxes(),(0,i.WA)(b,!1,null)),n.getTooltipAxes&&r&&d.get("show")){var v="axis"===d.get("trigger"),m="cross"===d.get(["axisPointer","type"]),y=n.getTooltipAxes(d.get(["axisPointer","axis"]));(v||m)&&(0,i.S6)(y.baseAxes,(0,i.WA)(b,!m||"cross",v)),m&&(0,i.S6)(y.otherAxes,(0,i.WA)(b,"cross",!1))}}function b(r,i,c){var h=c.model.getModel("axisPointer",o),v=h.get("show");if(v&&("auto"!==v||r||p(h))){null==i&&(i=h.get("triggerTooltip")),h=r?s(c,d,o,e,r,i):h;var m=h.get("snap"),y=h.get("triggerEmphasis"),b=g(c.model),x=i||m||"category"===c.type,_=t.axesInfo[b]={key:b,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:i,triggerEmphasis:y,involveSeries:x,snap:m,useHandle:p(h),seriesModels:[],linkGroup:null};f[b]=_,t.seriesInvolved=t.seriesInvolved||x;var w=l(a,c);if(null!=w){var S=u[w]||(u[w]={axesInfo:{}});S.axesInfo[b]=_,S.mapper=a[w].mapper,_.linkGroup=S}}}}))}function s(t,e,n,o,a,s){var u=e.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],c={};(0,i.S6)(l,(function(t){c[t]=(0,i.d9)(u.get(t))})),c.snap="category"!==t.type&&!!s,"cross"===u.get("type")&&(c.type="line");var f=c.label||(c.label={});if(null==f.show&&(f.show=!1),"cross"===a){var h=u.get(["label","show"]);if(f.show=null==h||h,!s){var d=c.lineStyle=u.get("crossStyle");d&&(0,i.ce)(f,d.textStyle)}}return t.model.getModel("axisPointer",new r.Z(c,n,o))}function u(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),o=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==o&&!1!==e.get(["axisPointer","show"],!0)&&(0,i.S6)(t.coordSysAxesInfo[g(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())}))}))}function l(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(c(o[r+"AxisId"],n.id)||c(o[r+"AxisIndex"],n.componentIndex)||c(o[r+"AxisName"],n.name))return i}}function c(t,e){return"all"===t||(0,i.kJ)(t)&&(0,i.cq)(t,e)>=0||t===e}function f(t){var e=h(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=p(n);null==o&&(i.status=s?"show":"hide");var u=r.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==a||a>u[1])&&(a=u[1]),a<u[0]&&(a=u[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function h(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[g(t)]}function d(t){var e=h(t);return e&&e.axisPointerModel}function p(t){return!!t.get(["handle","show"])}function g(t){return t.type+"||"+t.id}},56964:function(t,e,n){"use strict";if(n.d(e,{BL:function(){return m},Zh:function(){return g},fk:function(){return f},gf:function(){return v},gk:function(){return p},uE:function(){return y}}),/^(539|826)$/.test(n.j))var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(22995);if(/^(539|826)$/.test(n.j))var o=n(66332);if(/^(539|826)$/.test(n.j))var a=n(41054);if(/^(539|826)$/.test(n.j))var s=n(66012);if(/^(539|826)$/.test(n.j))var u=n(80148);if(/^(539|826)$/.test(n.j))var l=n(57180);if(/^(539|826)$/.test(n.j))var c=n(19552);function f(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle(),e.fill=null):"shadow"===n&&(e=r.getAreaStyle(),e.stroke=null),e}function h(t,e,n,r,i){var s=n.get("value"),u=p(s,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),f=a.MY(l.get("padding")||0),h=l.getFont(),g=o.lP(u,h),v=i.position,m=g.width+f[1]+f[3],y=g.height+f[0]+f[2],b=i.align;"right"===b&&(v[0]-=m),"center"===b&&(v[0]-=m/2);var x=i.verticalAlign;"bottom"===x&&(v[1]-=y),"middle"===x&&(v[1]-=y/2),d(v,m,y,r);var _=l.get("backgroundColor");_&&"auto"!==_||(_=e.get(["axisLine","lineStyle","color"])),t.label={x:v[0],y:v[1],style:(0,c.Lr)(l,{text:u,font:h,fill:l.getTextColor(),padding:f,backgroundColor:_}),z2:10}}function d(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)}function p(t,e,n,i,o){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:o.precision}),s=o.formatter;if(s){var l={value:u.DX(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};r.S6(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&l.seriesData.push(i)})),r.HD(s)?a=s.replace("{value}",a):r.mf(s)&&(a=s(l))}return a}function g(t,e,n){var r=s.Ue();return s.U1(r,r,n.rotation),s.Iu(r,r,n.position),i.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function v(t,e,n,r,i,o){var a=l.Z.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),h(e,r,i,o,{position:g(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function m(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function y(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}},3133:function(t,e,n){"use strict";if(n.d(e,{N:function(){return a}}),/^(539|826)$/.test(n.j))var r=n(44714);if(/^(539|826)$/.test(n.j))var i=n(14887);if(/^(539|826)$/.test(n.j))var o=n(35183);function a(t){(0,o.D)(r.N),(0,o.D)(i.N)}},44714:function(t,e,n){"use strict";n.d(e,{N:function(){return p}});var r=n(18299),i=n(59160);if(/^(539|826)$/.test(n.j))var o=n(5613);var a=n(96354),s=n(95797);if(/^(539|826)$/.test(n.j))var u=n(25440);if(/^(539|826)$/.test(n.j))var l=n(44749);if(/^(539|826)$/.test(n.j))var c=n(26871);if(/^(539|826)$/.test(n.j))var f=n(62759);var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return(0,r.ZT)(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new a.Z({shape:t.coordinateSystem.getRect(),style:(0,s.ce)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(i.Z),d={offset:0};function p(t){t.registerComponentView(h),t.registerComponentModel(o.Z),t.registerCoordinateSystem("cartesian2d",c.Z),(0,l.Z)(t,"x",u.I,d),(0,l.Z)(t,"y",u.I,d),t.registerComponentView(f.Tf),t.registerComponentView(f.$l),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}},42172:function(t,e,n){"use strict";var r=n(18299),i=n(95797),o=n(85632),a=n(38496),s=n(13350),u=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},l=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(0,r.ZT)(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"]),i.kJ(e)&&i.S6(e,(function(t,r){i.HD(t)&&(t={type:t}),e[r]=i.TS(t,u(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 s=r.legendVisualProvider,u=s.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(u)),u.length?e=e.concat(u):i=!0}else i=!0;i&&(0,a.yu)(r)&&e.push(r.name)})),this._availableNames=n;var r=this.get("data")||e,s=i.kW(),u=i.UI(r,(function(t){return(i.HD(t)||i.hj(t))&&(t={name:t}),s.get(t.name)?null:(s.set(t.name,!0),new o.Z(t,this,this.ecModel))}),this);this._data=i.hX(u,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var r=this._data;i.S6(r,(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;i.S6(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;i.S6(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])&&i.cq(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}(s.Z);e.Z=/^(539|826)$/.test(n.j)?l:null},32339:function(t,e,n){"use strict";n.d(e,{Z:function(){return A}});var r=n(18299),i=n(95797),o=n(76171),a=n(3082),s=n(49386),u=n(96354),l=n(22995),c=n(10859),f=n(19552),h=n(41054);function d(t,e){var n=h.MY(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new u.Z({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}),t}var p=n(16457),g=n(59160),v=n(86741),m=n(4258),y=n(75195),b=i.WA,x=i.S6,_=a.Z,w=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return(0,r.ZT)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new _),this.group.add(this._selectorGroup=new _),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 o=t.get("align"),a=t.get("orient");o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===a?"right":"left");var s=t.get("selector",!0),u=t.get("selectorPosition",!0);!s||u&&"auto"!==u||(u="horizontal"===a?"end":"start"),this.renderInner(o,t,e,n,s,a,u);var l=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},f=t.get("padding"),h=p.ME(l,c,f),g=this.layoutInner(t,o,h,r,s,u),v=p.ME(i.ce({width:g.width,height:g.height},l),c,f);this.group.x=v.x-g.x,this.group.y=v.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=d(g,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,a,s,u){var l=this.getContentGroup(),c=i.kW(),f=e.get("selectedMode"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),x(e.getData(),(function(a,s){var u=a.get("name");if(!this.newlineDisabled&&(""===u||"\n"===u)){var d=new _;return d.newline=!0,void l.add(d)}var p=n.getSeriesByName(u)[0];if(!c.get(u)){if(p){var g=p.getData(),v=g.getVisual("legendLineStyle")||{},m=g.getVisual("legendIcon"),x=g.getVisual("style"),w=this._createItem(p,u,s,a,e,t,v,x,m,f,r);w.on("click",b(T,u,null,r,h)).on("mouseover",b(C,p.name,null,r,h)).on("mouseout",b(M,p.name,null,r,h)),n.ssr&&w.eachChild((function(t){var e=(0,y.A)(t);e.seriesIndex=p.seriesIndex,e.dataIndex=s,e.ssrType="legend"})),c.set(u,!0)}else n.eachRawSeries((function(l){if(!c.get(u)&&l.legendVisualProvider){var d=l.legendVisualProvider;if(!d.containName(u))return;var p=d.indexOfName(u),g=d.getItemVisual(p,"style"),v=d.getItemVisual(p,"legendIcon"),m=(0,o.Qc)(g.fill);m&&0===m[3]&&(m[3]=.2,g=i.l7(i.l7({},g),{fill:(0,o.Pz)(m,"rgba")}));var x=this._createItem(l,u,s,a,e,t,{},g,v,f,r);x.on("click",b(T,null,u,r,h)).on("mouseover",b(C,null,u,r,h)).on("mouseout",b(M,null,u,r,h)),n.ssr&&x.eachChild((function(t){var e=(0,y.A)(t);e.seriesIndex=l.seriesIndex,e.dataIndex=s,e.ssrType="legend"})),c.set(u,!0)}}),this);0}}),this),a&&this._createSelector(a,e,r,s,u)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();x(t,(function(t){var r=t.type,i=new s.ZP({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),u=e.getModel(["emphasis","selectorLabel"]);(0,f.ni)(i,{normal:a,emphasis:u},{defaultText:t.title}),(0,c.vF)(i)}))},e.prototype._createItem=function(t,e,n,r,o,a,h,d,p,g,v){var m=t.visualDrawType,y=o.get("itemWidth"),b=o.get("itemHeight"),x=o.isSelected(e),w=r.get("symbolRotate"),T=r.get("symbolKeepAspect"),k=r.get("icon");p=k||p||"roundRect";var C=S(p,r,h,d,m,x,v),M=new _,A=r.getModel("textStyle");if(!i.mf(t.getLegendIcon)||k&&"inherit"!==k){var I="inherit"===k&&t.getData().getVisual("symbol")?"inherit"===w?t.getData().getVisual("symbolRotate"):w:0;M.add(E({itemWidth:y,itemHeight:b,icon:p,iconRotate:I,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:T}))}else M.add(t.getLegendIcon({itemWidth:y,itemHeight:b,icon:p,iconRotate:w,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:T}));var O="left"===a?y+5:-5,D=a,P=o.get("formatter"),L=e;i.HD(P)&&P?L=P.replace("{name}",null!=e?e:""):i.mf(P)&&(L=P(e));var N=x?A.getTextColor():r.get("inactiveColor");M.add(new s.ZP({style:(0,f.Lr)(A,{text:L,x:O,y:b/2,fill:N,align:D,verticalAlign:"middle"},{inheritColor:N})}));var R=new u.Z({shape:M.getBoundingRect(),style:{fill:"transparent"}}),j=r.getModel("tooltip");return j.get("show")&&l.setTooltipConfig({el:R,componentModel:o,itemName:e,itemTooltipOption:j.option}),M.add(R),M.eachChild((function(t){t.silent=!0})),R.silent=!g,this.getContentGroup().add(M),(0,c.vF)(M),M.__legendDataIndex=n,M},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();p.BZ(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var u=a.getBoundingRect(),l=[-u.x,-u.y];if(s.markRedraw(),a.markRedraw(),i){p.BZ("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),f=[-c.x,-c.y],h=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=0===d?"width":"height",v=0===d?"height":"width",m=0===d?"y":"x";"end"===o?f[d]+=u[g]+h:l[d]+=c[g]+h,f[1-d]+=u[v]/2-c[v]/2,s.x=f[0],s.y=f[1],a.x=l[0],a.y=l[1];var y={x:0,y:0};return y[g]=u[g]+h+c[g],y[v]=Math.max(u[v],c[v]),y[m]=Math.min(0,c[m]+f[1-d]),y}return a.x=l[0],a.y=l[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(g.Z);function S(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),x(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var u=e.getModel("itemStyle"),l=u.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",f=u.getShallow("decal");l.decal=f&&"inherit"!==f?(0,m.I)(f,a):r.decal,"inherit"===l.fill&&(l.fill=r[i]),"inherit"===l.stroke&&(l.stroke=r[c]),"inherit"===l.opacity&&(l.opacity=("fill"===i?r:n).opacity),s(l,r);var h=e.getModel("lineStyle"),d=h.getLineStyle();if(s(d,n),"auto"===l.fill&&(l.fill=r.fill),"auto"===l.stroke&&(l.stroke=r.fill),"auto"===d.stroke&&(d.stroke=r.fill),!o){var p=e.get("inactiveBorderWidth"),g=l[c];l.lineWidth="auto"===p?r.lineWidth>0&&g?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:l,lineStyle:d}}function E(t){var e=t.icon||"roundRect",n=(0,v.th)(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return 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),n}function T(t,e,n,r){M(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),C(t,e,n,r)}function k(t){var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;while(r<i&&!(e=n[r].states.emphasis))r++;return e&&e.hoverLayer}function C(t,e,n,r){k(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function M(t,e,n,r){k(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}var A=w},43703:function(t,e,n){"use strict";var r=n(18299),i=n(42172),o=n(16457),a=n(40259),s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=(0,o.tE)(e);t.prototype.init.call(this,e,n,r),u(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),u(this,this.option,e)},e.type="legend.scroll",e.defaultOption=(0,a.ZL)(i.Z.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}(i.Z);function u(t,e,n){var r=t.getOrient(),i=[1,1];i[r.index]=0,(0,o.dt)(e,n,{type:"box",ignoreSize:!!i})}e.Z=/^(539|826)$/.test(n.j)?s:null},33443:function(t,e,n){"use strict";var r=n(18299),i=n(95797),o=n(3082),a=n(49386),s=n(22995),u=n(96354),l=n(51058),c=n(16457),f=n(32339),h=o.Z,d=["width","height"],p=["x","y"],g=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(0,r.ZT)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new h),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new h)},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,o,u,l,c){var f=this;t.prototype.renderInner.call(this,e,n,r,o,u,l,c);var h=this._controllerGroup,d=n.get("pageIconSize",!0),p=i.kJ(d)?d:[d,d];v("pagePrev",0);var g=n.getModel("pageTextStyle");function v(t,e){var r=t+"DataIndex",a=s.createIcon(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:i.ak(f._pageGo,f,r,n,o)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});a.name=t,h.add(a)}h.add(new a.ZP({name:"pageText",style:{text:"xx/xx",fill:g.getTextColor(),font:g.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,o,a){var s=this.getSelectorGroup(),u=t.getOrient().index,l=d[u],f=p[u],h=d[1-u],g=p[1-u];o&&c.BZ("horizontal",s,t.get("selectorItemGap",!0));var v=t.get("selectorButtonGap",!0),m=s.getBoundingRect(),y=[-m.x,-m.y],b=i.d9(n);o&&(b[l]=n[l]-m[l]-v);var x=this._layoutContentAndController(t,r,b,u,l,h,g,f);if(o){if("end"===a)y[u]+=x[l]+v;else{var _=m[l]+v;y[u]-=_,x[f]-=_}x[l]+=m[l]+v,y[1-u]+=x[g]+x[h]/2-m[h]/2,x[h]=Math.max(x[h],m[h]),x[g]=Math.min(x[g],m[g]+y[1-u]),s.x=y[0],s.y=y[1],s.markRedraw()}return x},e.prototype._layoutContentAndController=function(t,e,n,r,o,a,s,f){var h=this.getContentGroup(),d=this._containerGroup,p=this._controllerGroup;c.BZ(t.get("orient"),h,t.get("itemGap"),r?n.width:null,r?null:n.height),c.BZ("horizontal",p,t.get("pageButtonItemGap",!0));var g=h.getBoundingRect(),v=p.getBoundingRect(),m=this._showController=g[o]>n[o],y=[-g.x,-g.y];e||(y[r]=h[f]);var b=[0,0],x=[-v.x,-v.y],_=i.pD(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(m){var w=t.get("pageButtonPosition",!0);"end"===w?x[r]+=n[o]-v[o]:b[r]+=v[o]+_}x[1-r]+=g[a]/2-v[a]/2,h.setPosition(y),d.setPosition(b),p.setPosition(x);var S={x:0,y:0};if(S[o]=m?n[o]:g[o],S[a]=Math.max(g[a],v[a]),S[s]=Math.min(0,v[s]+x[1-r]),d.__rectSize=n[o],m){var E={x:0,y:0};E[o]=Math.max(n[o]-v[o]-_,0),E[a]=S[a],d.setClipPath(new u.Z({shape:E})),d.__rectSize=E[o]}else p.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var T=this._getPageInfo(t);return null!=T.pageIndex&&l.D(h,{x:T.contentPosition[0],y:T.contentPosition[1]},m?t:null),this._updatePageInfoView(t,T),S},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;i.S6(["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=e[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),o=t.get("pageFormatter"),a=e.pageIndex,s=null!=a?a+1:0,u=e.pageCount;r&&o&&r.setStyle("text",i.HD(o)?o.replace("{current}",null==s?"":s+"").replace("{total}",null==u?"":u+""):o({current:s,total:u}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=d[i],a=p[i],s=this._findTargetItemIndex(e),u=n.children(),l=u[s],c=u.length,f=c?1:0,h={contentPosition:[n.x,n.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return h;var g=x(l);h.contentPosition[i]=-g.s;for(var v=s+1,m=g,y=g,b=null;v<=c;++v)b=x(u[v]),(!b&&y.e>m.s+r||b&&!_(b,m.s))&&(m=y.i>m.i?y:b,m&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=m.i),++h.pageCount)),y=b;for(v=s-1,m=g,y=g,b=null;v>=-1;--v)b=x(u[v]),b&&_(y,b.s)||!(m.i<y.i)||(y=m,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=m.i),++h.pageCount,++h.pageIndex),m=b;return h;function x(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n},e.type="legend.scroll",e}(f.Z);e.Z=/^(539|826)$/.test(n.j)?g:null},97194:function(t,e,n){"use strict";if(n.d(e,{N:function(){return a}}),/^(539|826)$/.test(n.j))var r=n(35183);if(/^(539|826)$/.test(n.j))var i=n(38488);if(/^(539|826)$/.test(n.j))var o=n(57889);function a(t){(0,r.D)(i.N),(0,r.D)(o.N)}},38488:function(t,e,n){"use strict";if(n.d(e,{N:function(){return s}}),/^(539|826)$/.test(n.j))var r=n(42172);if(/^(539|826)$/.test(n.j))var i=n(32339);if(/^(539|826)$/.test(n.j))var o=n(95127);if(/^(539|826)$/.test(n.j))var a=n(72419);function s(t){t.registerComponentModel(r.Z),t.registerComponentView(i.Z),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,o.Z),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),(0,a.U)(t)}},57889:function(t,e,n){"use strict";if(n.d(e,{N:function(){return u}}),/^(539|826)$/.test(n.j))var r=n(35183);if(/^(539|826)$/.test(n.j))var i=n(38488);if(/^(539|826)$/.test(n.j))var o=n(43703);if(/^(539|826)$/.test(n.j))var a=n(33443);if(/^(539|826)$/.test(n.j))var s=n(10860);function u(t){(0,r.D)(i.N),t.registerComponentModel(o.Z),t.registerComponentView(a.Z),(0,s.Z)(t)}},72419:function(t,e,n){"use strict";if(n.d(e,{U:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(95797);function i(t,e,n){var i,o={},a="toggleSelected"===t;return n.eachComponent("legend",(function(n){a&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var s=n.getData();(0,r.S6)(s,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var r=n.isSelected(e);o.hasOwnProperty(e)?o[e]=o[e]&&r:o[e]=r}}))})),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}function o(t){t.registerAction("legendToggleSelect","legendselectchanged",(0,r.WA)(i,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",(0,r.WA)(i,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",(0,r.WA)(i,"inverseSelect")),t.registerAction("legendSelect","legendselected",(0,r.WA)(i,"select")),t.registerAction("legendUnSelect","legendunselected",(0,r.WA)(i,"unSelect"))}},95127:function(t,e,n){"use strict";function r(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}))}n.d(e,{Z:function(){return r}})},10860:function(t,e,n){"use strict";function r(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)}))}))}n.d(e,{Z:function(){return r}})},49956:function(t,e,n){"use strict";n.d(e,{N:function(){return g}});var r=n(18299),i=n(95797),o=n(49386),a=n(96354),s=n(75195),u=n(19552),l=n(16457),c=n(13350),f=n(59160),h=n(41054),d=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(0,r.ZT)(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}(c.Z),p=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,c=t.getModel("textStyle"),f=t.getModel("subtextStyle"),d=t.get("textAlign"),p=i.pD(t.get("textBaseline"),t.get("textVerticalAlign")),g=new o.ZP({style:(0,u.Lr)(c,{text:t.get("text"),fill:c.getTextColor()},{disableBox:!0}),z2:10}),v=g.getBoundingRect(),m=t.get("subtext"),y=new o.ZP({style:(0,u.Lr)(f,{text:m,fill:f.getTextColor(),y:v.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),b=t.get("link"),x=t.get("sublink"),_=t.get("triggerEvent",!0);g.silent=!b&&!_,y.silent=!x&&!_,b&&g.on("click",(function(){(0,h.MI)(b,"_"+t.get("target"))})),x&&y.on("click",(function(){(0,h.MI)(x,"_"+t.get("subtarget"))})),(0,s.A)(g).eventData=(0,s.A)(y).eventData=_?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(g),m&&r.add(y);var w=r.getBoundingRect(),S=t.getBoxLayoutParams();S.width=w.width,S.height=w.height;var E=(0,l.ME)(S,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));d||(d=t.get("left")||t.get("right"),"middle"===d&&(d="center"),"right"===d?E.x+=E.width:"center"===d&&(E.x+=E.width/2)),p||(p=t.get("top")||t.get("bottom"),"center"===p&&(p="middle"),"bottom"===p?E.y+=E.height:"middle"===p&&(E.y+=E.height/2),p=p||"top"),r.x=E.x,r.y=E.y,r.markRedraw();var T={align:d,verticalAlign:p};g.setStyle(T),y.setStyle(T),w=r.getBoundingRect();var k=E.margin,C=t.getItemStyle(["color","opacity"]);C.fill=t.get("backgroundColor");var M=new a.Z({shape:{x:w.x-k[3],y:w.y-k[0],width:w.width+k[1]+k[3],height:w.height+k[0]+k[2],r:t.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});r.add(M)}},e.type="title",e}(f.Z);function g(t){t.registerComponentModel(d),t.registerComponentView(p)}},89079:function(t,e,n){"use strict";var r=n(18299),i=n(13350),o=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(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}(i.Z);e.Z=/^(539|826)$/.test(n.j)?o:null},86586:function(t,e,n){"use strict";n.d(e,{Z:function(){return ot}});var r=n(18299),i=n(95797),o=n(59979),a=n(14834),s=n(27311),u=n(41054);function l(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function c(t){if(o.Z.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var f=c(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),h=c(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function d(t,e){if(!t)return e;e=(0,u.zW)(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function p(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var g=n(43803),v=d(h,"transition"),m=d(f,"transform"),y="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(o.Z.transform3dSupported?"will-change:transform;":"");function b(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function x(t,e,n){if(!(0,i.HD)(n)||"inside"===n)return"";var r=t.get("backgroundColor"),o=t.get("borderWidth");e=(0,u.Lz)(e);var a,s=b(n),l=Math.max(1.5*Math.round(o),6),c="",f=m+":";(0,i.cq)(["left","right"],s)>-1?(c+="top:50%",f+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(c+="left:50%",f+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,d=l+o,p=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),g=Math.round(100*((p-Math.SQRT2*o)/2+Math.SQRT2*o-(p-d)/2))/100;c+=";"+s+":-"+g+"px";var v=e+" solid "+o+"px;",y=["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",c+";"+f+";","border-bottom:"+v,"border-right:"+v,"background-color:"+r+";"];return'<div style="'+y.join("")+'"></div>'}function _(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=o.Z.transformSupported?","+m+r:",left"+r+",top"+r),v+":"+i}function w(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!o.Z.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=o.Z.transform3dSupported,s="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return n?"top:0;left:0;"+m+":"+s+";":[["top",0],["left",0],[f,s]]}function S(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 o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+u+"px "+a+"px "+o),(0,i.S6)(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}function E(t,e,n){var r=[],o=t.get("transitionDuration"),a=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),c=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),h=t.getModel("textStyle"),d=(0,g.d_)(t,"html"),p=c+"px "+f+"px "+s+"px "+l;return r.push("box-shadow:"+p),e&&o&&r.push(_(o,n)),a&&r.push("background-color:"+a),(0,i.S6)(["width","color","radius"],(function(e){var n="border-"+e,i=(0,u.zW)(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(S(h)),null!=d&&r.push("padding:"+(0,u.MY)(d).join("px ")+"px"),r.join(";")+";"}function T(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&(0,s.YB)(t,a,n,r,i)}else{t[0]=r,t[1]=i;var u=o&&o.getViewportRootOffset();u&&(t[0]+=u.offsetLeft,t[1]+=u.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var k=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,o.Z.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=t.getZr(),s=e.appendTo,u=s&&((0,i.HD)(s)?document.querySelector(s):(0,i.Mh)(s)?s:(0,i.mf)(s)&&s(t.getDom()));T(this._styleCoord,r,u,t.getWidth()/2,t.getHeight()/2),(u||t.getDom()).appendChild(n),this._api=t,this._container=u;var l=this;n.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=r.handler,n=r.painter.getViewportRoot();(0,a.OD)(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=p(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,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=y+E(t,!this._firstShow,this._longHide)+w(i[0],i[1],!0)+"border-color:"+(0,u.Lz)(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,o){var a=this.el;if(null!=t){var s="";if((0,i.HD)(o)&&"item"===n.get("trigger")&&!l(n)&&(s=x(n,r,o)),(0,i.HD)(t))a.innerHTML=t+s;else if(t){a.innerHTML="",(0,i.kJ)(t)||(t=[t]);for(var u=0;u<t.length;u++)(0,i.Mh)(t[u])&&t[u].parentNode!==a&&a.appendChild(t[u]);if(s&&a.childNodes.length){var c=document.createElement("div");c.innerHTML=s,a.appendChild(c)}}}else a.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(T(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style,o=w(n[0],n[1]);(0,i.S6)(o,(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",o.Z.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((0,i.ak)(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}(),C=k,M=n(49386),A=n(3313),I=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),P(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,o){var a=this;i.Kn(t)&&(0,A._y)(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new M.ZP({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:(0,g.d_)(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),i.S6(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){a.el.style[t]=n.get(t)})),i.S6(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){a.el.style[t]=s.get(t)||0})),this._zr.add(this.el);var u=this;this.el.on("mouseover",(function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0})),this.el.on("mouseout",(function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=D(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;P(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=O(i.borderWidth||0),a=D(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(i.ak(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function O(t){return Math.max(0,t)}function D(t){var e=O(t.shadowBlur||0),n=O(t.shadowOffsetX||0),r=O(t.shadowOffsetY||0);return{left:O(e-n),right:O(e+n),top:O(e-r),bottom:O(e+r)}}function P(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var L=I,N=n(41201),R=n(96354),j=n(13337),F=n(16457),B=n(85632),z=n(72461),Z=n(80148),U=n(56964),H=n(38496),$=n(59160),G=n(31360),W=n(75195),V=n(4735),Y=n(78834),X=n(54849),q=new R.Z({shape:{x:-1,y:-1,width:2,height:2}}),K=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.init=function(t,e){if(!o.Z.node&&e.getDom()){var n=t.getComponent("tooltip"),r=this._renderMode=(0,H.U9)(n.get("renderMode"));this._tooltipContent="richText"===r?new L(e):new C(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!o.Z.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")?(0,X.T9)(this,"_updatePosition",50,"fixRate"):(0,X.ZH)(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");z.z("itemTooltip",this._api,(0,i.ak)((function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&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&&!o.Z.node&&n.getDom()){var i=Q(r,n);this._ticket="";var a=r.dataByCoordSys,s=it(r,e,n);if(s){var u=s.el.getBoundingRect().clone();u.applyTransform(s.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:s.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=q;l.x=r.x,l.y=r.y,l.update(),(0,W.A)(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var c=(0,j.Z)(r,e),f=c.point[0],h=c.point[1];null!=f&&null!=h&&this._tryShow({offsetX:f,offsetY:h,target:c.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(Q(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){var u=s.getData(),l=J([u.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===l.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,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var o,a,s=(0,W.A)(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,(0,Y.o)(n,(function(t){return null!=(0,W.A)(t).dataIndex?(o=t,!0):null!=(0,W.A)(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=(0,i.ak)(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,o=[e.offsetX,e.offsetY],a=J([e.tooltipOption],r),s=this._renderMode,l=[],c=(0,g.TX)("section",{blocks:[],noHeader:!0}),f=[],h=new g.iv;(0,i.S6)(t,(function(t){(0,i.S6)(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),o=t.value;if(e&&null!=o){var a=U.gk(o,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),d=(0,g.TX)("section",{header:a,noHeader:!(0,i.fy)(a),sortBlocks:!0,blocks:[]});c.blocks.push(d),(0,i.S6)(t.seriesDataIndices,(function(c){var p=n.getSeriesByIndex(c.seriesIndex),g=c.dataIndexInside,v=p.getDataParams(g);if(!(v.dataIndex<0)){v.axisDim=t.axisDim,v.axisIndex=t.axisIndex,v.axisType=t.axisType,v.axisId=t.axisId,v.axisValue=Z.DX(e.axis,{value:o}),v.axisValueLabel=a,v.marker=h.makeTooltipMarker("item",(0,u.Lz)(v.color),s);var m=(0,V.f)(p.formatTooltip(g,!0,null)),y=m.frag;if(y){var b=J([p],r).get("valueFormatter");d.blocks.push(b?(0,i.l7)({valueFormatter:b},y):y)}m.text&&f.push(m.text),l.push(v)}}))}}))})),c.blocks.reverse(),f.reverse();var d=e.position,p=a.get("order"),v=(0,g.BY)(c,h,s,p,n.get("useUTC"),a.get("textStyle"));v&&f.unshift(v);var m="richText"===s?"\n\n":"<br/>",y=f.join(m);this._showOrMove(a,(function(){this._updateContentNotChangedOnAxis(t,l)?this._updatePosition(a,d,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(a,y,l,Math.random()+"",o[0],o[1],d,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,o=(0,W.A)(e),a=o.seriesIndex,s=r.getSeriesByIndex(a),l=o.dataModel||s,c=o.dataIndex,f=o.dataType,h=l.getData(f),d=this._renderMode,p=t.positionDefault,v=J([h.getItemModel(c),l,s&&(s.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=v.get("trigger");if(null==m||"item"===m){var y=l.getDataParams(c,f),b=new g.iv;y.marker=b.makeTooltipMarker("item",(0,u.Lz)(y.color),d);var x=(0,V.f)(l.formatTooltip(c,!1,f)),_=v.get("order"),w=v.get("valueFormatter"),S=x.frag,E=S?(0,g.BY)(w?(0,i.l7)({valueFormatter:w},S):S,b,d,_,r.get("useUTC"),v.get("textStyle")):x.text,T="item_"+l.name+"_"+c;this._showOrMove(v,(function(){this._showTooltipContent(v,E,y,T,t.offsetX,t.offsetY,t.position,t.target,b)})),n({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:a,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=(0,W.A)(e),o=r.tooltipConfig,a=o.option||{};if((0,i.HD)(a)){var s=a;a={content:s,formatter:s}}var u=[a],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&u.push(l),u.push({formatter:a.content});var c=t.positionDefault,f=J(u,this._tooltipModel,c?{position:c}:null),h=f.get("content"),d=Math.random()+"",p=new g.iv;this._showOrMove(f,(function(){var n=(0,i.d9)(f.get("formatterParams")||{});this._showTooltipContent(f,h,n,d,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,o,a,s,l,c){if(this._ticket="",t.get("showContent")&&t.get("show")){var f=this._tooltipContent;f.setEnterable(t.get("enterable"));var h=t.get("formatter");s=s||t.get("position");var d=e,p=this._getNearestPoint([o,a],n,t.get("trigger"),t.get("borderColor")),g=p.color;if(h)if((0,i.HD)(h)){var v=t.ecModel.get("useUTC"),m=(0,i.kJ)(n)?n[0]:n,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=h,y&&(d=(0,G.WU)(m.axisValue,d,v)),d=(0,u.kF)(d,n,!0)}else if((0,i.mf)(h)){var b=(0,i.ak)((function(e,r){e===this._ticket&&(f.setContent(r,c,t,g,s),this._updatePosition(t,s,o,a,f,n,l))}),this);this._ticket=r,d=h(n,r,b)}else d=h;f.setContent(d,c,t,g,s),f.show(t,g),this._updatePosition(t,s,o,a,f,n,l)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||(0,i.kJ)(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:(0,i.kJ)(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,o,a,s){var u=this._api.getWidth(),c=this._api.getHeight();e=e||t.get("position");var f=o.getSize(),h=t.get("align"),d=t.get("verticalAlign"),p=s&&s.getBoundingRect().clone();if(s&&p.applyTransform(s.transform),(0,i.mf)(e)&&(e=e([n,r],a,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),(0,i.kJ)(e))n=(0,N.GM)(e[0],u),r=(0,N.GM)(e[1],c);else if((0,i.Kn)(e)){var g=e;g.width=f[0],g.height=f[1];var v=(0,F.ME)(g,{width:u,height:c});n=v.x,r=v.y,h=null,d=null}else if((0,i.HD)(e)&&s){var m=nt(e,p,f,t.get("borderWidth"));n=m[0],r=m[1]}else{m=tt(n,r,o,u,c,h?null:20,d?null:20);n=m[0],r=m[1]}if(h&&(n-=rt(h)?f[0]/2:"right"===h?f[0]:0),d&&(r-=rt(d)?f[1]/2:"bottom"===d?f[1]:0),l(t)){m=et(n,r,o,u,c);n=m[0],r=m[1]}o.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,o=!!n&&n.length===t.length;return o&&(0,i.S6)(n,(function(n,a){var s=n.dataByAxis||[],u=t[a]||{},l=u.dataByAxis||[];o=o&&s.length===l.length,o&&(0,i.S6)(s,(function(t,n){var a=l[n]||{},s=t.seriesDataIndices||[],u=a.seriesDataIndices||[];o=o&&t.value===a.value&&t.axisType===a.axisType&&t.axisId===a.axisId&&s.length===u.length,o&&(0,i.S6)(s,(function(t,e){var n=u[e];o=o&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&(0,i.S6)(t.seriesDataIndices,(function(t){var n=t.seriesIndex,i=e[n],a=r[n];i&&a&&a.data!==i.data&&(o=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!o.Z.node&&e.getDom()&&((0,X.ZH)(this,"_updatePosition"),this._tooltipContent.dispose(),z.E("itemTooltip",e))},e.type="tooltip",e}($.Z);function J(t,e,n){var r,o=e.ecModel;n?(r=new B.Z(n,o,o),r=new B.Z(e.option,r,o)):r=e;for(var a=t.length-1;a>=0;a--){var s=t[a];s&&(s instanceof B.Z&&(s=s.get("tooltip",!0)),(0,i.HD)(s)&&(s={formatter:s}),s&&(r=new B.Z(s,r,o)))}return r}function Q(t,e){return t.dispatchAction||(0,i.ak)(e.dispatchAction,e)}function tt(t,e,n,r,i,o,a){var s=n.getSize(),u=s[0],l=s[1];return null!=o&&(t+u+o+2>r?t-=u+o:t+=o),null!=a&&(e+l+a>i?e-=l+a:e+=a),[t,e]}function et(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]}function nt(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,u=0,l=e.width,c=e.height;switch(t){case"inside":s=e.x+l/2-i/2,u=e.y+c/2-o/2;break;case"top":s=e.x+l/2-i/2,u=e.y-o-a;break;case"bottom":s=e.x+l/2-i/2,u=e.y+c+a;break;case"left":s=e.x-i-a,u=e.y+c/2-o/2;break;case"right":s=e.x+l+a,u=e.y+c/2-o/2}return[s,u]}function rt(t){return"center"===t||"middle"===t}function it(t,e,n){var r=(0,H.zH)(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=(0,H.HZ)(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,u=n.getViewOfComponentModel(a);return u.group.traverse((function(e){var n=(0,W.A)(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var ot=K},1525:function(t,e,n){"use strict";if(n.d(e,{N:function(){return u}}),/^(539|826)$/.test(n.j))var r=n(14887);if(/^(539|826)$/.test(n.j))var i=n(35183);if(/^(539|826)$/.test(n.j))var o=n(89079);if(/^(539|826)$/.test(n.j))var a=n(86586);if(/^(539|826)$/.test(n.j))var s=n(95797);function u(t){(0,i.D)(r.N),t.registerComponentModel(o.Z),t.registerComponentView(a.Z),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},s.ZT),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},s.ZT)}},43803:function(t,e,n){"use strict";if(n.d(e,{BY:function(){return y},TX:function(){return h},d_:function(){return k},iv:function(){return C},jT:function(){return T}}),/^(539|826)$/.test(n.j))var r=n(27311);var i=n(41054),o=n(95797);if(/^(539|826)$/.test(n.j))var a=n(63354);var s=n(41201),u="line-height:1";function l(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,o=t.fontWeight||"400",a=t.color||"#464646",s=t.fontSize||14,u=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+(0,r.F1)(i+"")+"px;color:"+(0,r.F1)(n)+";font-weight:"+(0,r.F1)(o+""),valueStyle:"font-size:"+(0,r.F1)(s+"")+"px;color:"+(0,r.F1)(a)+";font-weight:"+(0,r.F1)(u+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:s,fill:a,fontWeight:u}}}var c=/^(539|826)$/.test(n.j)?[0,10,20,30]:null,f=/^(539|826)$/.test(n.j)?["","\n","\n\n","\n\n\n"]:null;function h(t,e){return e.type=t,e}function d(t){return"section"===t.type}function p(t){return d(t)?v:m}function g(t){if(d(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return(0,o.S6)(t.blocks,(function(t){var n=g(t);n>=e&&(e=n+ +(r&&(!n||d(t)&&!t.noHeader)))})),e}return 0}function v(t,e,n,s){var c=e.noHeader,f=b(g(e)),h=[],d=e.blocks||[];(0,o.hu)(!d||(0,o.kJ)(d)),d=d||[];var v=t.orderMode;if(e.sortBlocks&&v){d=d.slice();var m={valueAsc:"asc",valueDesc:"desc"};if((0,o.RI)(m,v)){var y=new a.ID(m[v],null);d.sort((function(t,e){return y.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===v&&d.reverse()}(0,o.S6)(d,(function(n,r){var i=e.valueFormatter,a=p(n)(i?(0,o.l7)((0,o.l7)({},t),{valueFormatter:i}):t,n,r>0?f.html:0,s);null!=a&&h.push(a)}));var _="richText"===t.renderMode?h.join(f.richText):x(h.join(""),c?n:f.html);if(c)return _;var w=(0,i.uX)(e.header,"ordinal",t.useUTC),E=l(s,t.renderMode).nameStyle;return"richText"===t.renderMode?S(t,w,E)+f.richText+_:x('<div style="'+E+";"+u+';">'+(0,r.F1)(w)+"</div>"+_,n)}function m(t,e,n,r){var a=t.renderMode,s=e.noName,u=e.noValue,c=!e.markerType,f=e.name,h=t.useUTC,d=e.valueFormatter||t.valueFormatter||function(t){return t=(0,o.kJ)(t)?t:[t],(0,o.UI)(t,(function(t,e){return(0,i.uX)(t,(0,o.kJ)(v)?v[e]:v,h)}))};if(!s||!u){var p=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),g=s?"":(0,i.uX)(f,"ordinal",h),v=e.valueType,m=u?[]:d(e.value,e.dataIndex),y=!c||!s,b=!c&&s,T=l(r,a),k=T.nameStyle,C=T.valueStyle;return"richText"===a?(c?"":p)+(s?"":S(t,g,k))+(u?"":E(t,m,y,b,C)):x((c?"":p)+(s?"":_(g,!c,k))+(u?"":w(m,y,b,C)),n)}}function y(t,e,n,r,i,o){if(t){var a=p(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function b(t){return{html:c[t],richText:f[t]}}function x(t,e){var n='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+u+';">'+t+n+"</div>"}function _(t,e,n){var i=e?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+(0,r.F1)(t)+"</span>"}function w(t,e,n,i){var a=n?"10px":"20px",s=e?"float:right;margin-left:"+a:"";return t=(0,o.kJ)(t)?t:[t],'<span style="'+s+";"+i+'">'+(0,o.UI)(t,(function(t){return(0,r.F1)(t)})).join("&nbsp;&nbsp;")+"</span>"}function S(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function E(t,e,n,r,i){var a=[i],s=r?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle((0,o.kJ)(e)?e.join("  "):e,a)}function T(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return(0,i.Lz)(r)}function k(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var C=function(){function t(){this.richTextStyles={},this._nextStyleNameId=(0,s.jj)()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,a=(0,i.A0)({color:e,type:t,renderMode:n,markerId:r});return(0,o.HD)(a)?a:(this.richTextStyles[r]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};(0,o.kJ)(e)?(0,o.S6)(e,(function(t){return(0,o.l7)(n,t)})):(0,o.l7)(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}()},87256:function(t,e,n){"use strict";n.d(e,{U:function(){return r}});var r={value:1,category:1,time:1,log:1}},53364:function(t,e,n){"use strict";var r=n(95797),i={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)"]}}},o=r.TS({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},i),a=r.TS({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}}},i),s=r.TS({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},a),u=r.ce({logBase:10},a);e.Z={category:o,value:a,time:s,log:u}},80148:function(t,e,n){"use strict";if(n.d(e,{DX:function(){return b},Do:function(){return x},J9:function(){return y},Jk:function(){return g},PY:function(){return E},WY:function(){return S},Xv:function(){return d},Yb:function(){return m},aG:function(){return v},rk:function(){return w}}),/^(539|826)$/.test(n.j))var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(5535);if(/^(539|826)$/.test(n.j))var o=n(28584);if(/^(539|826)$/.test(n.j))var a=n(85558);if(/^(539|826)$/.test(n.j))var s=n(95848);if(/^(539|826)$/.test(n.j))var u=n(96805);if(/^(539|826)$/.test(n.j))var l=n(1678);if(/^(539|826)$/.test(n.j))var c=n(19764);if(/^(539|826)$/.test(n.j))var f=n(86366);if(/^(539|826)$/.test(n.j))var h=n(42731);function d(t,e){var n=t.type,i=(0,h.Qw)(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var o=i.min,a=i.max,u=e.ecModel;if(u&&"time"===n){var l=(0,s.Ge)("bar",u),c=!1;if(r.S6(l,(function(t){c=c||t.getBaseAxis()===e.axis})),c){var f=(0,s.My)(l),d=p(o,a,e,f);o=d.min,a=d.max}}return{extent:[o,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function p(t,e,n,i){var o=n.axis.getExtent(),a=o[1]-o[0],u=(0,s.G_)(i,n.axis);if(void 0===u)return{min:t,max:e};var l=1/0;r.S6(u,(function(t){l=Math.min(t.offset,l)}));var c=-1/0;r.S6(u,(function(t){c=Math.max(t.offset+t.width,c)})),l=Math.abs(l),c=Math.abs(c);var f=l+c,h=e-t,d=1-(l+c)/a,p=h/d-h;return e+=p*(c/f),t-=p*(l/f),{min:t,max:e}}function g(t,e){var n=e,r=d(t,n),i=r.extent,o=n.get("splitNumber");t instanceof c.Z&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),u="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:u?n.get("minInterval"):null,maxInterval:u?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function v(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new i.Z({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new l.Z({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(a.Z.getClass(e)||o.Z)}}function m(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function y(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,r){return t.scale.getFormattedLabel(n,r,e)}}(e):r.HD(e)?function(e){return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i}}(e):r.mf(e)?function(e){return function(r,i){return null!=n&&(i=r.value-n),e(b(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function b(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function x(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,o,a=n.getExtent();n instanceof i.Z?o=n.count():(r=n.getTicks(),o=r.length);var s,u=t.getLabelModel(),l=y(t),c=1;o>40&&(c=Math.ceil(o/40));for(var f=0;f<o;f+=c){var h=r?r[f]:{value:a[0]+f},d=l(h,f),p=u.getTextRect(d),g=_(p,u.get("rotate")||0);s?s.union(g):s=g}return s}}function _(t,e){var n=e*Math.PI/180,r=t.width,i=t.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new u.Z(t.x,t.y,o,a);return s}function w(t){var e=t.get("interval");return null==e?"auto":e}function S(t){return"category"===t.type&&0===w(t.getLabelModel())}function E(t,e){var n={};return r.S6(t.mapDimensionsAll(e),(function(e){n[(0,f.IR)(t,e)]=!0})),r.XP(n)}},44749:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return l}}),/^(539|826)$/.test(n.j))var r=n(18299);if(/^(539|826)$/.test(n.j))var i=n(53364);if(/^(539|826)$/.test(n.j))var o=n(16457);if(/^(539|826)$/.test(n.j))var a=n(41021);if(/^(539|826)$/.test(n.j))var s=n(87256);if(/^(539|826)$/.test(n.j))var u=n(95797);function l(t,e,n,l){(0,u.S6)(s.U,(function(s,f){var h=(0,u.TS)((0,u.TS)({},i.Z[f],!0),l,!0),d=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+f,n}return(0,r.ZT)(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,o.YD)(this),r=n?(0,o.tE)(t):{},i=e.getTheme();(0,u.TS)(t,i.get(f+"Axis")),(0,u.TS)(t,this.getDefaultOption()),t.type=c(t),n&&(0,o.dt)(t,r,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=a.Z.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."+f,n.defaultOption=h,n}(n);t.registerComponentModel(d)})),t.registerSubTypeDefaulter(e+"Axis",c)}function c(t){return t.type||(t.data?"category":"value")}},25440:function(t,e,n){"use strict";n.d(e,{I:function(){return u}});var r=n(18299),i=n(95797),o=n(13350),a=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),s=n(38496),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",s.C6).models[0]},e.type="cartesian2dAxis",e}(o.Z);i.jB(u,a)},26871:function(t,e,n){"use strict";n.d(e,{Z:function(){return K}});var r=n(95797),i=n(16457),o=n(80148),a=n(18299),s=n(96805),u=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 r.UI(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),r.hX(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}(),l=u,c=n(66012),f=n(15468),h=["x","y"];function d(t){return"interval"===t.type||"time"===t.type}var p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=h,e}return(0,a.ZT)(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(d(t)&&d(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 u=(o[0]-i[0])/a,l=(o[1]-i[1])/s,f=i[0]-n[0]*u,h=i[1]-r[0]*l,p=this._transform=[u,0,0,l,f,h];this._invTransform=(0,c.U_)([],p)}}},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 s.Z(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(0,f.Ne)(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||[],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(0,f.Ne)(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(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(e[0],e[1])-t,i=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-r+t,a=Math.max(n[0],n[1])-i+t;return new s.Z(r,i,o,a)},e}(l),g=p,v=n(41201),m=n(66332),y=n(38496),b=(0,y.Yf)();function x(t){return"category"===t.type?w(t):T(t)}function _(t,e){return"category"===t.type?E(t,e):{ticks:r.UI(t.scale.getTicks(),(function(t){return t.value}))}}function w(t){var e=t.getLabelModel(),n=S(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function S(t,e){var n,i,a=k(t,"labels"),s=(0,o.rk)(e),u=C(a,s);return u||(r.mf(s)?n=P(t,s):(i="auto"===s?A(t):s,n=D(t,i)),M(a,s,{labels:n,labelCategoryInterval:i}))}function E(t,e){var n,i,a=k(t,"ticks"),s=(0,o.rk)(e),u=C(a,s);if(u)return u;if(e.get("show")&&!t.scale.isBlank()||(n=[]),r.mf(s))n=P(t,s,!0);else if("auto"===s){var l=S(t,t.getLabelModel());i=l.labelCategoryInterval,n=r.UI(l.labels,(function(t){return t.tickValue}))}else i=s,n=D(t,i,!0);return M(a,s,{ticks:n,tickCategoryInterval:i})}function T(t){var e=t.scale.getTicks(),n=(0,o.J9)(t);return{labels:r.UI(e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function k(t,e){return b(t)[e]||(b(t)[e]=[])}function C(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function M(t,e,n){return t.push({key:e,value:n}),n}function A(t){var e=b(t).autoInterval;return null!=e?e:b(t).autoInterval=t.calculateCategoryInterval()}function I(t){var e=O(t),n=(0,o.J9)(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,a=i.getExtent(),s=i.count();if(a[1]-a[0]<1)return 0;var u=1;s>40&&(u=Math.max(1,Math.floor(s/40)));for(var l=a[0],c=t.dataToCoord(l+1)-t.dataToCoord(l),f=Math.abs(c*Math.cos(r)),h=Math.abs(c*Math.sin(r)),d=0,p=0;l<=a[1];l+=u){var g=0,v=0,y=m.lP(n({value:l}),e.font,"center","top");g=1.3*y.width,v=1.3*y.height,d=Math.max(d,g,7),p=Math.max(p,v,7)}var x=d/f,_=p/h;isNaN(x)&&(x=1/0),isNaN(_)&&(_=1/0);var w=Math.max(0,Math.floor(Math.min(x,_))),S=b(t.model),E=t.getExtent(),T=S.lastAutoInterval,k=S.lastTickCount;return null!=T&&null!=k&&Math.abs(T-w)<=1&&Math.abs(k-s)<=1&&T>w&&S.axisExtent0===E[0]&&S.axisExtent1===E[1]?w=T:(S.lastTickCount=s,S.lastAutoInterval=w,S.axisExtent0=E[0],S.axisExtent1=E[1]),w}function O(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()}}function D(t,e,n){var r=(0,o.J9)(t),i=t.scale,a=i.getExtent(),s=t.getLabelModel(),u=[],l=Math.max((e||0)+1,1),c=a[0],f=i.count();0!==c&&l>1&&f/l>2&&(c=Math.round(Math.ceil(c/l)*l));var h=(0,o.WY)(t),d=s.get("showMinLabel")||h,p=s.get("showMaxLabel")||h;d&&c!==a[0]&&v(a[0]);for(var g=c;g<=a[1];g+=l)v(g);function v(t){var e={value:t};u.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return p&&g-l!==a[1]&&v(a[1]),u}function P(t,e,n){var i=t.scale,a=(0,o.J9)(t),s=[];return r.S6(i.getTicks(),(function(t){var r=i.getLabel(t),o=t.value;e(t.value,r)&&s.push(n?o:{formattedLabel:a(t),rawLabel:r,tickValue:o})})),s}var L=[0,1],N=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(0,v.M9)(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&&(n=n.slice(),R(n,r.count())),(0,v.NU)(t,L,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),R(n,r.count()));var i=(0,v.NU)(t,n,L,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=_(this,e),i=n.ticks,o=(0,r.UI)(i,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),a=e.get("alignWithLabel");return j(this,o,a,t.clamp),o},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=(0,r.UI)(n,(function(t){return(0,r.UI)(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return i},t.prototype.getViewLabels=function(){return x(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 I(this)},t}();function R(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function j(t,e,n,i){var o=e.length;if(t.onBand&&!n&&o){var a,s,u=t.getExtent();if(1===o)e[0].coord=u[0],a=e[1]={coord:u[1]};else{var l=e[o-1].tickValue-e[0].tickValue,c=(e[o-1].coord-e[0].coord)/l;(0,r.S6)(e,(function(t){t.coord-=c/2}));var f=t.scale.getExtent();s=1+f[1]-e[o-1].tickValue,a={coord:e[o-1].coord+c*s},e.push(a)}var h=u[0]>u[1];d(e[0].coord,u[0])&&(i?e[0].coord=u[0]:e.shift()),i&&d(u[0],e[0].coord)&&e.unshift({coord:u[0]}),d(u[1],a.coord)&&(i?a.coord=u[1]:e.pop()),i&&d(a.coord,u[1])&&e.push({coord:u[1]})}function d(t,e){return t=(0,v.NM)(t),e=(0,v.NM)(e),h?t>e:t<e}}var F=N,B=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(0,a.ZT)(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}(F),z=B,Z=n(40705),U=n(89583),H=n(28584),$=Math.log;function G(t,e,n){var r=H.Z.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,!0),s=i.length-1,u=r.getInterval.call(n),l=(0,o.Xv)(t,e),c=l.extent,f=l.fixMin,h=l.fixMax;if("log"===t.type){var d=$(t.base);c=[$(c[0])/d,$(c[1])/d]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:s,fixMin:f,fixMax:h});var p=r.getExtent.call(t);f&&(c[0]=p[0]),h&&(c[1]=p[1]);var g=r.getInterval.call(t),m=c[0],y=c[1];if(f&&h)g=(y-m)/s;else if(f){y=c[0]+g*s;while(y<c[1]&&isFinite(y)&&isFinite(c[1]))g=(0,U.r1)(g),y=c[0]+g*s}else if(h){m=c[1]-g*s;while(m>c[0]&&isFinite(m)&&isFinite(c[0]))g=(0,U.r1)(g),m=c[1]-g*s}else{var b=t.getTicks().length-1;b>s&&(g=(0,U.r1)(g));var x=g*s;y=Math.ceil(c[1]/g)*g,m=(0,v.NM)(y-x),m<0&&c[0]>=0?(m=0,y=(0,v.NM)(x)):y>0&&c[1]<=0&&(y=0,m=-(0,v.NM)(x))}var _=(i[0].value-a[0].value)/u,w=(i[s].value-a[s].value)/u;r.setExtent.call(t,m+g*_,y+g*w),r.setInterval.call(t,g),(_||w)&&r.setNiceExtent.call(t,m+g,y-g)}var W=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=h,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 i(t){var e,n=(0,r.XP)(t),i=n.length;if(i){for(var a=[],s=i-1;s>=0;s--){var u=+n[s],l=t[u],c=l.model,f=l.scale;(0,U.lM)(f)&&c.get("alignTicks")&&null==c.get("interval")?a.push(l):((0,o.Jk)(f,c),(0,U.lM)(f)&&(e=l))}a.length&&(e||(e=a.pop(),(0,o.Jk)(e.scale,e.model)),(0,r.S6)(a,(function(t){G(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var a={};(0,r.S6)(n.x,(function(t){Y(n,"y",t,a)})),(0,r.S6)(n.y,(function(t){Y(n,"x",t,a)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),s=!n&&t.get("containLabel"),u=(0,i.ME)(a,{width:e.getWidth(),height:e.getHeight()});this._rect=u;var l=this._axesList;function c(){(0,r.S6)(l,(function(t){var e=t.isHorizontal(),n=e?[0,u.width]:[0,u.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),q(t,e?u.x:u.y)}))}c(),s&&((0,r.S6)(l,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=(0,o.Do)(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);u[n]-=e[n]+r,"top"===t.position?u.y+=e.height+r:"left"===t.position&&(u.x+=e.width+r)}}})),c()),(0,r.S6)(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]}(0,r.Kn)(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===e)return o[i]},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,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis",y.C6).models[0],a=t.yAxisModel||i&&i.getReferringComponents("yAxis",y.C6).models[0],s=t.gridModel,u=this._coordsList;if(i)e=i.coordinateSystem,(0,r.cq)(u,e)<0&&(e=null);else if(o&&a)e=this.getCartesian(o.componentIndex,a.componentIndex);else if(o)n=this.getAxis("x",o.componentIndex);else if(a)n=this.getAxis("y",a.componentIndex);else if(s){var l=s.coordinateSystem;l===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 i=this,a=this,s={left:!1,right:!1,top:!1,bottom:!1},u={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",c("x"),this),e.eachComponent("yAxis",c("y"),this),!l.x||!l.y)return this._axesMap={},void(this._axesList=[]);function c(e){return function(n,r){if(V(n,t)){var i=n.get("position");"x"===e?"top"!==i&&"bottom"!==i&&(i=s.bottom?"top":"bottom"):"left"!==i&&"right"!==i&&(i=s.left?"right":"left"),s[i]=!0;var c=new z(e,(0,o.aG)(n),[0,0],n.get("type"),i),f="category"===c.type;c.onBand=f&&n.get("boundaryGap"),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=a,c.index=r,a._axesList.push(c),u[e][r]=c,l[e]++}}}this._axesMap=u,(0,r.S6)(u.x,(function(e,n){(0,r.S6)(u.y,(function(r,o){var a="x"+n+"y"+o,s=new g(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){(0,r.S6)((0,o.PY)(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}(0,r.S6)(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((0,Z.Yh)(t)){var r=(0,Z.Mk)(t),i=r.xAxisModel,o=r.yAxisModel;if(!V(i,e)||!V(o,e))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),u=a.getAxis("x"),l=a.getAxis("y");n(s,u),n(s,l)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return(0,r.S6)(this.getCartesians(),(function(i){var o=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(o);(0,r.cq)(e,o)<0&&e.push(o),(0,r.cq)(n,a)<0&&n.push(a)})),{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((0,Z.Yh)(t)){var e=(0,Z.Mk)(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=h,t}();function V(t,e){return t.getCoordSysModel()===e}function Y(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),u=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=u)X(o[u])&&(i=o[u]);else for(var l in o)if(o.hasOwnProperty(l)&&X(o[l])&&!r[c(o[l])]){i=o[l];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function X(t){return t&&"category"!==t.type&&"time"!==t.type&&(0,o.Yb)(t)}function q(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}}var K=W},5613:function(t,e,n){"use strict";var r=n(18299),i=n(13350),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(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}(i.Z);e.Z=/^(539|826)$/.test(n.j)?o:null},40705:function(t,e,n){"use strict";if(n.d(e,{Mk:function(){return s},Yh:function(){return a},bK:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(38496);function o(t,e,n){n=n||{};var i=t.coordinateSystem,o=e.axis,a={},s=o.getAxesOnZeroOf()[0],u=o.position,l=s?"onZero":u,c=o.dim,f=i.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,g="x"===c?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(s){var v=s.toGlobalCoord(s.dataToCoord(0));g[d.onZero]=Math.max(Math.min(v,g[1]),g[0])}a.position=["y"===c?g[d[l]]:h[0],"x"===c?g[d[l]]:h[3]],a.rotation=Math.PI/2*("x"===c?0:1);var m={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=m[u],a.labelOffset=s?g[d[u]]-g[d.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),r.Jv(n.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=e.get(["axisLabel","rotate"]);return a.labelRotate="top"===l?-y:y,a.z2=1,a}function a(t){return"cartesian2d"===t.get("coordinateSystem")}function s(t){var e={xAxisModel:null,yAxisModel:null};return r.S6(e,(function(n,r){var o=r.replace(/Model$/,""),a=t.getReferringComponents(o,i.C6).models[0];e[r]=a})),e}},42731:function(t,e,n){"use strict";n.d(e,{Qw:function(){return u}});var r=n(95797),i=n(66332),o=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 o=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=this._modelMinRaw=e.get("min",!0);(0,r.mf)(a)?this._modelMinNum=l(t,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=l(t,a));var s=this._modelMaxRaw=e.get("max",!0);if((0,r.mf)(s)?this._modelMaxNum=l(t,s({min:n[0],max:n[1]})):"dataMax"!==s&&(this._modelMaxNum=l(t,s)),o)this._axisDataLen=e.getCategories().length;else{var u=e.get("boundaryGap"),c=(0,r.kJ)(u)?u:[u||0,u||0];"boolean"===typeof c[0]||"boolean"===typeof c[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[(0,i.GM)(c[0],1),(0,i.GM)(c[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=t?null:n-e||Math.abs(e),s="dataMin"===this._modelMinRaw?e:this._modelMinNum,u="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=s,c=null!=u;null==s&&(s=t?i?0:NaN:e-o[0]*a),null==u&&(u=t?i?i-1:NaN:n+o[1]*a),(null==s||!isFinite(s))&&(s=NaN),(null==u||!isFinite(u))&&(u=NaN);var f=(0,r.Bu)(s)||(0,r.Bu)(u)||t&&!i;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!c&&(u=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(s=h,l=!0),null!=d&&(u=d,c=!0),{min:s,max:u,minFixed:l,maxFixed:c,isBlank:f}},t.prototype.modifyDataMinMax=function(t,e){this[s[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=a[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),a={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function u(t,e,n){var r=t.rawExtentInfo;return r||(r=new o(t,e,n),t.rawExtentInfo=r,r)}function l(t,e){return null==e?null:(0,r.Bu)(e)?NaN:t.parse(e)}},99799:function(t,e,n){"use strict";var r=n(95797),i={},o=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];r.S6(i,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){r.S6(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){i[t]=e},t.get=function(t){return i[t]},t}();e.Z=/^(539|826)$/.test(n.j)?o:null},73903:function(t,e,n){"use strict";n.d(e,{Hr:function(){return Be},S1:function(){return Pn},zl:function(){return Zn},RS:function(){return Un},qR:function(){return Hn},yn:function(){return Vn},je:function(){return Yn},sq:function(){return Fn},Br:function(){return Bn},ds:function(){return Rn},Pu:function(){return jn},OB:function(){return Xn},YK:function(){return zn},Og:function(){return $n}});var r=n(18299),i=n(24503),o=n(95797),a=n(59979),s=n(1994),u=n(18626),l=n(38496),c=n(85632),f=n(13350),h="";"undefined"!==typeof navigator&&(h=navigator.platform||"");var d="rgba(0, 0, 0, 0.2)",p={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:d,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:d,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:d,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:d,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:d,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:d,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:h.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},g=n(45452),v=(0,o.kW)();function m(t,e,n){var r=v.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}var y,b,x,_=n(25650),w="\0_ec_inner",S=1;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new c.Z(r),this._locale=new c.Z(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=A(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,A(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)):x(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,e))}if(!t||"recreate"===t||"media"===t){var s=r.getMediaOption(this);s.length&&(0,o.S6)(s,(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,a=[],s=(0,o.kW)(),u=e&&e.replaceMergeMainTypeMap;function c(e){var a=m(this,e,l.kF(t[e])),s=r.get(e),c=s?u&&u.get(e)?"replaceMerge":"normalMerge":"replaceAll",h=l.ab(s,a,c);l.O0(h,e,f.Z),n[e]=null,r.set(e,null),i.set(e,0);var d,p=[],g=[],v=0;(0,o.S6)(h,(function(t,n){var r=t.existing,i=t.newOption;if(i){var a="series"===e,s=f.Z.getClass(e,t.keyInfo.subType,!a);if(!s)return;if("tooltip"===e){if(d)return void 0;d=!0}if(r&&r.constructor===s)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var u=(0,o.l7)({componentIndex:n},t.keyInfo);r=new s(i,this,this,u),(0,o.l7)(r,u),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(p.push(r.option),g.push(r),v++):(p.push(void 0),g.push(void 0))}),this),n[e]=p,r.set(e,g),i.set(e,v),"series"===e&&y(this)}(0,g.md)(this),(0,o.S6)(t,(function(t,e){null!=t&&(f.Z.hasClass(e)?e&&(a.push(e),s.set(e,!0)):n[e]=null==n[e]?(0,o.d9)(t):(0,o.TS)(n[e],t,!0))})),u&&u.each((function(t,e){f.Z.hasClass(e)&&!s.get(e)&&(a.push(e),s.set(e,!0))})),f.Z.topologicalTravel(a,f.Z.getAllClassMainTypes(),c,this),this._seriesIndices||y(this)},e.prototype.getOption=function(){var t=(0,o.d9)(this.option);return(0,o.S6)(t,(function(e,n){if(f.Z.hasClass(n)){for(var r=l.kF(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!l.lY(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[w],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,a=t.name,s=this._componentsMap.get(e);return s&&s.length?(null!=r?(n=[],(0,o.S6)(l.kF(r),(function(t){s[t]&&n.push(s[t])}))):n=null!=i?C("id",i,s):null!=a?C("name",a,s):(0,o.hX)(s,(function(t){return!!t})),M(n,t)):[]},e.prototype.findComponents=function(t){var e=t.query,n=t.mainType,r=a(e),i=r?this.queryComponents(r):(0,o.hX)(this._componentsMap.get(n),(function(t){return!!t}));return s(M(i,t));function a(t){var e=n+"Index",r=n+"Id",i=n+"Name";return!t||null==t[e]&&null==t[r]&&null==t[i]?null:{mainType:n,index:t[e],id:t[r],name:t[i]}}function s(e){return t.filter?(0,o.hX)(e,t.filter):e}},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if((0,o.mf)(t)){var i=e,a=t;r.each((function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&a.call(i,e,r,r.componentIndex)}}))}else for(var s=(0,o.HD)(t)?r.get(t):(0,o.Kn)(t)?this.findComponents(t):null,u=0;s&&u<s.length;u++){var l=s[u];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=l.U5(t,null);return(0,o.hX)(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(0,o.hX)(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return(0,o.hX)(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){b(this),(0,o.S6)(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},e.prototype.eachRawSeries=function(t,e){(0,o.S6)(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){b(this),(0,o.S6)(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(0,o.S6)(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return b(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){b(this);var n=[];(0,o.S6)(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=(0,o.kW)(n)},e.prototype.restoreData=function(t){y(this);var e=this._componentsMap,n=[];e.each((function(t,e){f.Z.hasClass(e)&&n.push(e)})),f.Z.topologicalTravel(n,f.Z.getAllClassMainTypes(),(function(n){(0,o.S6)(e.get(n),(function(e){!e||"series"===n&&T(e,t)||e.restoreData()}))}))},e.internalField=function(){y=function(t){var e=t._seriesIndices=[];(0,o.S6)(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=(0,o.kW)(e)},b=function(t){0},x=function(t,e){t.option={},t.option[w]=S,t._componentsMap=(0,o.kW)({series:[]}),t._componentsCount=(0,o.kW)();var n=e.aria;(0,o.Kn)(n)&&null==n.enabled&&(n.enabled=!0),k(e,t._theme.option),(0,o.TS)(e,p,!1),t._mergeOption(e,null)}}(),e}(c.Z);function T(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}}function k(t,e){var n=t.color&&!t.colorLayer;(0,o.S6)(e,(function(e,r){"colorLayer"===r&&n||f.Z.hasClass(r)||("object"===typeof e?t[r]=t[r]?(0,o.TS)(t[r],e,!1):(0,o.d9)(e):null==t[r]&&(t[r]=e))}))}function C(t,e,n){if((0,o.kJ)(e)){var r=(0,o.kW)();return(0,o.S6)(e,(function(t){if(null!=t){var e=l.U5(t,null);null!=e&&r.set(t,!0)}})),(0,o.hX)(n,(function(e){return e&&r.get(e[t])}))}var i=l.U5(e,null);return(0,o.hX)(n,(function(e){return e&&null!=i&&e[t]===i}))}function M(t,e){return e.hasOwnProperty("subType")?(0,o.hX)(t,(function(t){return t&&t.subType===e.subType})):t}function A(t){var e=(0,o.kW)();return t&&(0,o.S6)(l.kF(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}(0,o.jB)(E,_._);var I=E,O=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],D=function(){function t(t){o.S6(O,(function(e){this[e]=o.ak(t[e],t)}),this)}return t}(),P=D,L=n(99799),N=/^(min|max)?(.+)$/,R=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&((0,o.S6)((0,l.kF)(t.series),(function(t){t&&t.data&&(0,o.fU)(t.data)&&(0,o.s7)(t.data)})),(0,o.S6)((0,l.kF)(t.dataset),(function(t){t&&t.source&&(0,o.fU)(t.source)&&(0,o.s7)(t.source)}))),t=(0,o.d9)(t);var r=this._optionBackup,i=j(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=[],(0,o.d9)(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=(0,o.d9)(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],s=[];if(!r.length&&!i)return s;for(var u=0,l=r.length;u<l;u++)F(r[u].query,e,n)&&a.push(u);return!a.length&&i&&(a=[-1]),a.length&&!z(a,this._currentMediaIndices)&&(s=(0,o.UI)(a,(function(t){return(0,o.d9)(-1===t?i.option:r[t].option)}))),this._currentMediaIndices=a,s},t}();function j(t,e,n){var r,i,a=[],s=t.baseOption,u=t.timeline,l=t.options,c=t.media,f=!!t.media,h=!!(l||u||s&&s.timeline);function d(t){(0,o.S6)(e,(function(e){e(t,n)}))}return s?(i=s,i.timeline||(i.timeline=u)):((h||f)&&(t.options=t.media=null),i=t),f&&(0,o.kJ)(c)&&(0,o.S6)(c,(function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))})),d(i),(0,o.S6)(l,(function(t){return d(t)})),(0,o.S6)(a,(function(t){return d(t.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:a}}function F(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return(0,o.S6)(t,(function(t,e){var n=e.match(N);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();B(r[a],t,o)||(i=!1)}})),i}function B(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function z(t,e){return t.join(",")===e.join(",")}var Z=R,U=n(6463);function H(t,e){for(var n=e.split(","),r=t,i=0;i<n.length;i++)if(r=r&&r[n[i]],null==r)break;return r}function $(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)i=o[s],null==a[i]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}function G(t){t&&(0,o.S6)(W,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var W=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],V=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Y=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function X(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Y.length;n++){var r=Y[n][1],i=Y[n][0];null!=e[r]&&(e[i]=e[r])}}function q(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function K(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function J(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function Q(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Q(t[n].children,e)}function tt(t,e){(0,U.Z)(t,e),t.series=(0,l.kF)(t.series),(0,o.S6)(t.series,(function(t){if((0,o.Kn)(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),q(t.label);var n=t.data;if(n&&!(0,o.fU)(n))for(var r=0;r<n.length;r++)q(n[r]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=H(t,"pointer.color");null!=i&&$(t,"itemStyle.color",i)}else if("bar"===e){X(t),X(t.backgroundStyle),X(t.emphasis);n=t.data;if(n&&!(0,o.fU)(n))for(r=0;r<n.length;r++)"object"===typeof n[r]&&(X(n[r]),X(n[r]&&n[r].emphasis))}else if("sunburst"===e){var a=t.highlightPolicy;a&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),K(t),Q(t.data,K)}else"graph"===e||"sankey"===e?J(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&(0,o.ce)(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),G(t)}})),t.dataRange&&(t.visualMap=t.dataRange),(0,o.S6)(V,(function(e){var n=t[e];n&&((0,o.kJ)(n)||(n=[n]),(0,o.S6)(n,(function(t){G(t)})))}))}var et=n(41201);function nt(t){var e=(0,o.kW)();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(rt)}function rt(t){(0,o.S6)(t,(function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,u=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,l,c){var f,h,d=a.get(e.stackedDimension,c);if(isNaN(d))return i;s?h=a.getRawIndex(c):f=a.get(e.stackedByDimension,c);for(var p=NaN,g=n-1;g>=0;g--){var v=t[g];if(s||(h=v.data.rawIndexOf(v.stackedByDimension,f)),h>=0){var m=v.data.getByRawIndex(v.stackResultDimension,h);if("all"===u||"positive"===u&&m>0||"negative"===u&&m<0||"samesign"===u&&d>=0&&m>0||"samesign"===u&&d<=0&&m<0){d=(0,et.S$)(d,m),p=m;break}}}return r[0]=d,r[1]=p,r}))}))}var it=n(84895),ot=n(59160),at=n(55486),st=n(96354),ut=n(12222),lt=n(51058),ct=n(23256),ft=n(75195),ht=n(10859),dt=n(54849),pt=n(26314),gt=n(63918),vt=n(61599),mt=(0,l.Yf)(),yt={itemStyle:(0,pt.Z)(gt.t,!0),lineStyle:(0,pt.Z)(vt.v,!0)},bt={lineStyle:"stroke",itemStyle:"fill"};function xt(t,e){var n=t.visualStyleMapper||yt[e];return n||(console.warn("Unknown style type '"+e+"'."),yt.itemStyle)}function _t(t,e){var n=t.visualDrawType||bt[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var wt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),a=xt(t,r),s=a(i),u=i.getShallow("decal");u&&(n.setVisual("decal",u),u.dirty=!0);var l=_t(t,r),c=s[l],f=(0,o.mf)(c)?c:null,h="auto"===s.fill||"auto"===s.stroke;if(!s[l]||f||h){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());s[l]||(s[l]=d,n.setVisual("colorFromPalette",!0)),s.fill="auto"===s.fill||(0,o.mf)(s.fill)?d:s.fill,s.stroke="auto"===s.stroke||(0,o.mf)(s.stroke)?d:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=(0,o.l7)({},s);i[l]=f(r),e.setItemVisual(n,"style",i)}}}},St=new c.Z,Et={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=xt(t,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){St.option=n[r];var s=i(St),u=t.ensureUniqueItemVisual(e,"style");(0,o.l7)(u,s),St.option.decal&&(t.setItemVisual(e,"decal",St.option.decal),St.option.decal.dirty=!0),a in s&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Tt={performRawSeries:!0,overallReset:function(t){var e=(0,o.kW)();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)),mt(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=mt(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=_t(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t],u=i.getItemVisual(a,"colorFromPalette");if(u){var l=i.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",f=n.count();l[s]=e.getColorFromPalette(c,o,f)}}))}}))}},kt=n(3082),Ct=n(49386),Mt=n(13026),At=Math.PI;function It(t,e){e=e||{},o.ce(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 kt.Z,r=new st.Z({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,a=new Ct.ZP({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),s=new st.Z({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(s),e.showSpinner&&(i=new Mt.Z({shape:{startAngle:-At/2,endAngle:-At/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*At/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*At/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=a.getBoundingRect().width,o=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-2*o-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:o),l=t.getHeight()/2;e.showSpinner&&i.setShape({cx:u,cy:l}),s.setShape({x:u-o,y:l-o,width:2*o,height:2*o}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Ot=n(17787),Dt=n(40259),Pt=function(){function t(t,e,n,r){this._stageTaskMap=(0,o.kW)(),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,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},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(),i=r.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=(0,o.kW)();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;(0,o.S6)(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),a="";(0,o.hu)(!(r.reset&&r.overallReset),a),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,a=this;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}(0,o.S6)(t,(function(t,o){if(!r.visualType||r.visualType===t.visualType){var u=a._stageTaskMap.get(t.uid),l=u.seriesTaskMap,c=u.overallTask;if(c){var f,h=c.agentStubMap;h.each((function(t){s(r,t)&&(t.dirty(),f=!0)})),f&&c.dirty(),a.updatePayload(c,n);var d=a.getPerformArgs(c,r.block);h.each((function(t){t.perform(d)})),c.perform(d)&&(i=!0)}else l&&l.each((function(o,u){s(r,o)&&o.dirty();var l=a.getPerformArgs(o,r.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(o.context.model),a.updatePayload(o,n),o.perform(l)&&(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,a=e.seriesTaskMap,s=e.seriesTaskMap=(0,o.kW)(),u=t.seriesType,l=t.getTargetSeries;function c(e){var o=e.uid,u=s.set(o,a&&a.get(o)||(0,Ot.v)({plan:Ft,reset:Bt,count:Ut}));u.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,u)}t.createOnAllSeries?n.eachRawSeries(c):u?n.eachRawSeriesByType(u,c):l&&l(n,r).each(c)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,a=e.overallTask=e.overallTask||(0,Ot.v)({reset:Lt});a.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var s=a.agentStubMap,u=a.agentStubMap=(0,o.kW)(),l=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,d="";function p(t){var e=t.uid,n=u.set(e,s&&s.get(e)||(h=!0,(0,Ot.v)({reset:Nt,onDirty:jt})));n.context={model:t,overallProgress:f},n.agent=a,n.__block=f,i._pipe(t,n)}(0,o.hu)(!t.createOnAllSeries,d),l?n.eachRawSeriesByType(l,p):c?c(n,r).each(p):(f=!1,(0,o.S6)(n.getSeries(),p)),h&&a.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(0,o.mf)(t)&&(t={overallReset:t,seriesType:Ht(t)}),t.uid=(0,Dt.Kr)("stageHandler"),e&&(t.visualType=e),t},t}();function Lt(t){t.overallReset(t.ecModel,t.api,t.payload)}function Nt(t){return t.overallProgress&&Rt}function Rt(){this.agent.dirty(),this.getDownstream().dirty()}function jt(){this.agent&&this.agent.dirty()}function Ft(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Bt(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=(0,l.kF)(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?(0,o.UI)(e,(function(t,e){return Zt(e)})):zt}var zt=Zt(0);function Zt(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 Ut(t){return t.data.count()}function Ht(t){$t=null;try{t(Gt,Wt)}catch(e){}return $t}var $t,Gt={},Wt={};function Vt(t,e){for(var n in e.prototype)t[n]=o.ZT}Vt(Gt,I),Vt(Wt,P),Gt.eachSeriesByType=Gt.eachRawSeriesByType=function(t){$t=t},Gt.eachComponent=function(t){"series"===t.mainType&&t.subType&&($t=t.subType)};var Yt=Pt,Xt=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],qt={color:Xt,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Xt]},Kt="#B9B8CE",Jt="#100C2A",Qt=function(){return{axisLine:{lineStyle:{color:Kt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},te=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],ee={darkMode:!0,color:te,backgroundColor:Jt,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Kt}},textStyle:{color:Kt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Kt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Kt},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:Kt}},timeline:{lineStyle:{color:Kt},label:{color:Kt},controlStyle:{color:Kt,borderColor:Kt}},calendar:{itemStyle:{color:Jt},dayLabel:{color:Kt},monthLabel:{color:Kt},yearLabel:{color:Kt}},timeAxis:Qt(),logAxis:Qt(),valueAxis:Qt(),categoryAxis:Qt(),line:{symbol:"circle"},graph:{color:te},gauge:{title:{color:Kt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Kt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};ee.categoryAxis.splitLine.show=!1;var ne=ee,re=n(6990),ie=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(o.HD(t)){var i=(0,re.u9)(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o.S6(t,(function(t,i){for(var o=!1,u=0;u<a.length;u++){var l=a[u],c=i.lastIndexOf(l);if(c>0&&c===i.length-l.length){var f=i.slice(0,c);"data"!==f&&(e.mainType=f,e[l.toLowerCase()]=t,o=!0)}}s.hasOwnProperty(i)&&(n[i]=t,o=!0),o||(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,u=e.dataQuery;return l(s,o,"mainType")&&l(s,o,"subType")&&l(s,o,"index","componentIndex")&&l(s,o,"name")&&l(s,o,"id")&&l(u,i,"name")&&l(u,i,"dataIndex")&&l(u,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function l(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),oe=["symbol","symbolSize","symbolRotate","symbolOffset"],ae=oe.concat(["symbolKeepAspect"]),se={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={},a=!1,s=0;s<oe.length;s++){var u=oe[s],l=t.get(u);(0,o.mf)(l)?(a=!0,i[u]=l):r[u]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual((0,o.l7)({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var c=(0,o.XP)(i);return{dataEach:a?f:null}}}function f(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(n,s,i[s](r,o))}}}},ue={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var n=t.getData();return{dataEach:n.hasItemOption?r:null}}function r(t,e){for(var n=t.getItemModel(e),r=0;r<ae.length;r++){var i=ae[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}}};function le(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[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 ce(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}var fe=n(3313);function he(t,e,n,r,i){var a=t+e;n.isSilent(a)||r.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,s=i.selected,u=0;u<s.length;u++)if(s[u].seriesIndex===e){var c=t.getData(),f=(0,l.gO)(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:t.id,name:(0,o.kJ)(f)?c.getName(f[0]):c.getName(f),selected:(0,o.HD)(r)?r:(0,o.l7)({},r)})}}))}function de(t,e,n){t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(he("map","selectchanged",e,r,t),he("pie","selectchanged",e,r,t)):"select"===t.fromAction?(he("map","selected",e,r,t),he("pie","selected",e,r,t)):"unselect"===t.fromAction&&(he("map","unselected",e,r,t),he("pie","unselected",e,r,t))}))}var pe=n(19874),ge=n(62645),ve=n(78834),me=n(4258);function ye(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");if(n){var i=r.ensureUniqueItemVisual(t,"style");i.decal=(0,me.I)(n,e)}}));var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=(0,me.I)(i,e)}}}))}var be=new u.Z,xe=be,_e=n(9886),we=n(25587),Se=1,Ee=800,Te=900,ke=1e3,Ce=2e3,Me=5e3,Ae=1e3,Ie=1100,Oe=2e3,De=3e3,Pe=4e3,Le=4500,Ne=4600,Re=5e3,je=6e3,Fe=7e3,Be={PROCESSOR:{FILTER:ke,SERIES_FILTER:Ee,STATISTIC:Me},VISUAL:{LAYOUT:Ae,PROGRESSIVE_LAYOUT:Ie,GLOBAL:Oe,CHART:De,POST_CHART_LAYOUT:Ne,COMPONENT:Pe,BRUSH:Re,CHART_ITEM:Le,ARIA:je,DECAL:Fe}},ze="__flagInMainProcess",Ze="__pendingUpdate",Ue="__needsUpdateStatus",He=/^[a-zA-Z0-9_]+$/,$e="__connectUpdateStatus",Ge=0,We=1,Ve=2;function Ye(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return qe(this,t,e);_n(this.id)}}function Xe(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return qe(this,t,e)}}function qe(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),u.Z.prototype[e].apply(t,n)}var Ke,Je,Qe,tn,en,nn,rn,on,an,sn,un,ln,cn,fn,hn,dn,pn,gn,vn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e}(u.Z),mn=vn.prototype;mn.on=Xe("on"),mn.off=Xe("off");var yn=function(t){function e(e,n,r){var a=t.call(this,new ie)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],r=r||{},(0,o.HD)(n)&&(n=Cn[n]),a._dom=e;var u="canvas",l="auto",c=!1;r.ssr&&i.Qq((function(t){var e=(0,ft.A)(t),n=e.dataIndex;if(null!=n){var r=(0,o.kW)();return r.set("series_index",e.seriesIndex),r.set("data_index",n),e.ssrType&&r.set("ssr_type",e.ssrType),r}}));var f=a._zr=i.S1(e,{renderer:r.renderer||u,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:(0,o.pD)(r.useDirtyRect,c),useCoarsePointer:(0,o.pD)(r.useCoarsePointer,l),pointerSize:r.pointerSize});a._ssr=r.ssr,a._throttledZrFlush=(0,dt.P2)((0,o.ak)(f.flush,f),17),n=(0,o.d9)(n),n&&tt(n,!0),a._theme=n,a._locale=(0,ge.D0)(r.locale||ge.sO),a._coordSysMgr=new L.Z;var h=a._api=hn(a);function d(t,e){return t.__prio-e.__prio}return(0,s.Z)(kn,d),(0,s.Z)(En,d),a._scheduler=new Yt(a,h,En,kn),a._messageCenter=new vn,a._initEvents(),a.resize=(0,o.ak)(a.resize,a),f.animation.on("frame",a._onframe,a),sn(f,a),un(f,a),(0,o.s7)(a),a}return(0,r.ZT)(e,t),e.prototype._onframe=function(){if(!this._disposed){gn(this);var t=this._scheduler;if(this[Ze]){var e=this[Ze].silent;this[ze]=!0;try{Ke(this),tn.update.call(this,null,this[Ze].updateParams)}catch(a){throw this[ze]=!1,this[Ze]=null,a}this._zr.flush(),this[ze]=!1,this[Ze]=null,on.call(this,e),an.call(this,e)}else if(t.unfinished){var n=Se,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),nn(this,r),t.performVisualTasks(r),fn(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[ze])if(this._disposed)_n(this.id);else{var r,i,a;if((0,o.Kn)(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,a=e.transition,e=e.notMerge),this[ze]=!0,!this._model||e){var s=new Z(this._api),u=this._theme,l=this._model=new I;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,u,this._locale,s)}this._model.setOption(t,{replaceMerge:i},Tn);var c={seriesTransition:a,optionChanged:!0};if(n)this[Ze]={silent:r,updateParams:c},this[ze]=!1,this.getZr().wakeUp();else{try{Ke(this),tn.update.call(this,null,c)}catch(f){throw this[Ze]=null,this[ze]=!1,f}this._ssr||this._zr.flush(),this[Ze]=null,this[ze]=!1,on.call(this,r),an.call(this,r)}}},e.prototype.setTheme=function(){(0,fe.Sh)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||a.Z.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(a.Z.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return(0,o.S6)(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;(0,o.S6)(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 a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return(0,o.S6)(r,(function(t){t.group.ignore=!1})),a}_n(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,a=Math.max,s=1/0;if(In[n]){var u=s,l=s,c=-s,f=-s,h=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();(0,o.S6)(An,(function(i,s){if(i.group===n){var d=e?i.getZr().painter.getSvgDom().innerHTML:i.renderToCanvas((0,o.d9)(t)),p=i.getDom().getBoundingClientRect();u=r(p.left,u),l=r(p.top,l),c=a(p.right,c),f=a(p.bottom,f),h.push({dom:d,left:p.left,top:p.top})}})),u*=d,l*=d,c*=d,f*=d;var p=c-u,g=f-l,v=_e.qW.createCanvas(),m=i.S1(v,{renderer:e?"svg":"canvas"});if(m.resize({width:p,height:g}),e){var y="";return(0,o.S6)(h,(function(t){var e=t.left-u,n=t.top-l;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),m.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return t.connectedBackgroundColor&&m.add(new st.Z({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),(0,o.S6)(h,(function(t){var e=new ut.ZP({style:{x:t.left*d-u,y:t.top*d-l,image:t.dom}});m.add(e)})),m.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}_n(this.id)},e.prototype.convertToPixel=function(t,e){return en(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return en(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=l.pm(r,t);return(0,o.S6)(i,(function(t,r){r.indexOf("Models")>=0&&(0,o.S6)(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}_n(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=l.pm(n,t,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?le(o,a,e):ce(o,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=this;(0,o.S6)(xn,(function(e){var n=function(n){var r,i=t.getModel(),a=n.target,s="globalout"===e;if(s?r={}:a&&(0,ve.o)(a,(function(t){var e=(0,ft.A)(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType,a)||{},!0}if(e.eventData)return r=(0,o.l7)({},e.eventData),!0}),!0),r){var u=r.componentType,l=r.componentIndex;"markLine"!==u&&"markPoint"!==u&&"markArea"!==u||(u="series",l=r.seriesIndex);var c=u&&null!=l&&i.getComponent(u,l),f=c&&t["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:a,packedEvent:r,model:c,view:f},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),(0,o.S6)(Sn,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),(0,o.S6)(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),de(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?_n(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)_n(this.id);else{this._disposed=!0;var t=this.getDom();t&&l.P$(this.getDom(),Dn,"");var e=this,n=e._api,r=e._model;(0,o.S6)(e._componentsViews,(function(t){t.dispose(r,n)})),(0,o.S6)(e._chartsViews,(function(t){t.dispose(r,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete An[e.id]}},e.prototype.resize=function(t){if(!this[ze])if(this._disposed)_n(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[Ze]&&(null==r&&(r=this[Ze].silent),n=!0,this[Ze]=null),this[ze]=!0;try{n&&Ke(this),tn.update.call(this,{type:"resize",animation:(0,o.l7)({duration:0},t&&t.animation)})}catch(i){throw this[ze]=!1,i}this[ze]=!1,on.call(this,r),an.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)_n(this.id);else if((0,o.Kn)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Mn[t]){var n=Mn[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?_n(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=(0,o.l7)({},t);return e.type=Sn[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)_n(this.id);else if((0,o.Kn)(e)||(e={silent:!!e}),wn[t.type]&&this._model)if(this[ze])this._pendingActions.push(t);else{var n=e.silent;rn.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&a.Z.browser.weChat&&this._throttledZrFlush(),on.call(this,n),an.call(this,n)}},e.prototype.updateLabelLayout=function(){xe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)_n(this.id);else{var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);0,r.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){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,a,u=e.concat(n);(0,s.Z)(u,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),(0,o.S6)(u,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,o=e.key;null!=i&&(r=Math.max(i,r)),o?(r===i&&o!==a&&r++,a=o):a&&(r===i&&r++,a=""),i=r,n.setZLevel(r)}))}}function n(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===ht.wU&&t.states.emphasis?e.push("emphasis"):t.hoverState===ht.CX&&t.states.blur&&e.push("blur"),t.useStates(e)}function i(t,e){var n=t._zr,r=n.storage,i=0;r.traverse((function(t){t.isGroup||i++})),i>e.get("hoverLayerThreshold")&&!a.Z.node&&!a.Z.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)}))}}))}function u(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function c(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return f(t,n,r,-1/0),!0}))}}function f(t,e,n,r){var i=t.getTextContent(),o=t.getTextGuideLine(),a=t.isGroup;if(a)for(var s=t.childrenRef(),u=0;u<s.length;u++)r=Math.max(f(s[u],e,n,r),r);else t.z=e,t.zlevel=n,r=Math.max(t.z2,r);if(i&&(i.z=e,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),o){var l=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(r)&&(o.z2=r+(l&&l.showAbove?1:-1))}return r}function h(t,e){e.eachRendered((function(t){if(!lt.eq(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 d(t,e){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;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(lt.eq(t))return;if(t instanceof ct.ZP&&(0,ht.e9)(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}Ke=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Je(t,!0),Je(t,!1),e.plan()},Je=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,u=0;u<i.length;u++)i[u].__alive=!1;function l(t){var u=t.__requireNewView;t.__requireNewView=!1;var l="_ec_"+t.id+"_"+t.type,c=!u&&o[l];if(!c){var f=(0,re.u9)(t.type),h=e?ot.Z.getClass(f.main,f.sub):at.Z.getClass(f.sub);0,c=new h,c.init(n,s),o[l]=c,i.push(c),a.add(c.group)}t.__viewId=c.__id=l,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&&l(e)})):n.eachSeries(l);for(u=0;u<i.length;){var c=i[u];c.__alive?u++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(u,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Qe=function(t,e,n,r,i){var a=t._model;if(a.setUpdatePayload(n),r){var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var u={mainType:r,query:s};i&&(u.subType=i);var c,f=n.excludeSeriesId;null!=f&&(c=(0,o.kW)(),(0,o.S6)(l.kF(f),(function(t){var e=l.U5(t,null);null!=e&&c.set(e,!0)}))),a&&a.eachComponent(u,(function(e){var r=c&&null!=c.get(e.id);if(!r)if((0,ht.xp)(n))if(e instanceof it.Z)n.type!==ht.Ki||n.notBlur||e.get(["emphasis","disabled"])||(0,ht.UL)(e,n,t._api);else{var i=(0,ht.oJ)(e.mainType,e.componentIndex,n.name,t._api),a=i.focusSelf,s=i.dispatchers;n.type===ht.Ki&&a&&!n.notBlur&&(0,ht.zI)(e.mainType,e.componentIndex,t._api),s&&(0,o.S6)(s,(function(t){n.type===ht.Ki?(0,ht.fD)(t):(0,ht.Mh)(t)}))}else(0,ht.aG)(n)&&e instanceof it.Z&&((0,ht.og)(e,n,t._api),(0,ht.ci)(e),pn(t))}),t),a&&a.eachComponent(u,(function(e){var n=c&&null!=c.get(e.id);n||h(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else(0,o.S6)([].concat(t._componentsViews).concat(t._chartsViews),h);function h(r){r&&r.__alive&&r[e]&&r[e](r.__model,a,t._api,n)}},tn={prepareAndUpdate:function(t){Ke(this),tn.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),nn(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e),ln(this,r,i,e,n);var u=r.get("backgroundColor")||"transparent",l=r.get("darkMode");o.setBackgroundColor(u),null!=l&&"auto"!==l&&o.setDarkMode(l),xe.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var a=[];r.eachComponent((function(t,o){if("series"!==t){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var u=s.updateTransform(o,r,i,e);u&&u.update&&a.push(s)}else a.push(s)}}));var s=(0,o.kW)();r.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var a=o.updateTransform(t,r,i,e);a&&a.update&&s.set(t.uid,1)}else s.set(t.uid,1)})),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:s}),fn(this,r,i,e,{},s),xe.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),at.Z.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),ln(this,n,this._api,e,{}),xe.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()})),at.Z.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){var i=n._chartsMap[t.__viewId];i.updateVisual(t,r,n._api,e)})),xe.trigger("afterupdate",r,this._api))},updateLayout:function(t){tn.update.call(this,t)}},en=function(t,e,n,r){if(t._disposed)_n(t.id);else{for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=l.pm(o,n),u=0;u<a.length;u++){var c=a[u];if(c[e]&&null!=(i=c[e](o,s,r)))return i}0}},nn=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},rn=function(t,e){var n=this,r=this.getModel(),i=t.type,a=t.escapeConnect,s=wn[i],u=s.actionInfo,c=(u.update||"update").split(":"),f=c.pop(),h=null!=c[0]&&(0,re.u9)(c[0]);this[ze]=!0;var d=[t],p=!1;t.batch&&(p=!0,d=(0,o.UI)(t.batch,(function(e){return e=(0,o.ce)((0,o.l7)({},e),t),e.batch=null,e})));var g,v=[],m=(0,ht.aG)(t),y=(0,ht.xp)(t);if(y&&(0,ht.T5)(this._api),(0,o.S6)(d,(function(e){if(g=s.action(e,n._model,n._api),g=g||(0,o.l7)({},e),g.type=u.event||g.type,v.push(g),y){var r=l.zH(t),i=r.queryOptionMap,a=r.mainTypeSpecified,c=a?i.keys()[0]:"series";Qe(n,f,e,c),pn(n)}else m?(Qe(n,f,e,"series"),pn(n)):h&&Qe(n,f,e,h.main,h.sub)})),"none"!==f&&!y&&!m&&!h)try{this[Ze]?(Ke(this),tn.update.call(this,t),this[Ze]=null):tn[f].call(this,t)}catch(_){throw this[ze]=!1,_}if(g=p?{type:u.event||i,escapeConnect:a,batch:v}:v[0],this[ze]=!1,!e){var b=this._messageCenter;if(b.trigger(g.type,g),m){var x={type:"selectchanged",escapeConnect:a,selected:(0,ht.C5)(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};b.trigger(x.type,x)}}},on=function(t){var e=this._pendingActions;while(e.length){var n=e.shift();rn.call(this,n,t)}},an=function(t){!t&&this.trigger("updated")},sn=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Ze]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},un=function(t,e){t.on("mouseover",(function(t){var n=t.target,r=(0,ve.o)(n,ht.Av);r&&((0,ht.$l)(r,t,e._api),pn(e))})).on("mouseout",(function(t){var n=t.target,r=(0,ve.o)(n,ht.Av);r&&((0,ht.xr)(r,t,e._api),pn(e))})).on("click",(function(t){var n=t.target,r=(0,ve.o)(n,(function(t){return null!=(0,ft.A)(t).dataIndex}),!0);if(r){var i=r.selected?"unselect":"select",o=(0,ft.A)(r);e._api.dispatchAction({type:i,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},ln=function(t,n,r,i,a){e(n),cn(t,n,r,i,a),(0,o.S6)(t._chartsViews,(function(t){t.__alive=!1})),fn(t,n,r,i,a),(0,o.S6)(t._chartsViews,(function(t){t.__alive||t.remove(n,r)}))},cn=function(t,e,n,r,i,a){(0,o.S6)(a||t._componentsViews,(function(t){var i=t.__model;h(i,t),t.render(i,e,n,r),c(i,t),d(i,t)}))},fn=function(t,e,n,r,a,s){var l=t._scheduler;a=(0,o.l7)(a||{},{updatedSeries:e.getSeries()}),xe.trigger("series:beforeupdate",e,n,a);var f=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;l.updatePayload(i,r),h(e,n),s&&s.get(e.uid)&&i.dirty(),i.perform(l.getPerformArgs(i))&&(f=!0),n.group.silent=!!e.get("silent"),u(e,n),(0,ht.ci)(e)})),l.unfinished=f||l.unfinished,xe.trigger("series:layoutlabels",e,n,a),xe.trigger("series:transition",e,n,a),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];c(e,n),d(e,n)})),i(t,e),xe.trigger("series:afterupdate",e,n,a)},pn=function(t){t[Ue]=!0,t.getZr().wakeUp()},gn=function(t){t[Ue]&&(t.getZr().storage.traverse((function(t){lt.eq(t)||n(t)})),t[Ue]=!1)},hn=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){while(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){(0,ht.fD)(e,n),pn(t)},n.prototype.leaveEmphasis=function(e,n){(0,ht.Mh)(e,n),pn(t)},n.prototype.enterBlur=function(e){(0,ht.SX)(e),pn(t)},n.prototype.leaveBlur=function(e){(0,ht.VP)(e),pn(t)},n.prototype.enterSelect=function(e){(0,ht.XX)(e),pn(t)},n.prototype.leaveSelect=function(e){(0,ht.SJ)(e),pn(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}(P))(t)},dn=function(t){function e(t,e){for(var n=0;n<t.length;n++){var r=t[n];r[$e]=e}}(0,o.S6)(Sn,(function(n,r){t._messageCenter.on(r,(function(n){if(In[t.group]&&t[$e]!==Ge){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];(0,o.S6)(An,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,Ge),(0,o.S6)(i,(function(t){t[$e]!==We&&t.dispatchAction(r)})),e(i,Ve)}}))}))}}(),e}(u.Z),bn=yn.prototype;bn.on=Ye("on"),bn.off=Ye("off"),bn.one=function(t,e,n){var r=this;function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),r.off(t,i)}(0,fe.Sh)("ECharts#one is deprecated."),this.on.call(this,t,i,n)};var xn=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function _n(t){0}var wn={},Sn={},En=[],Tn=[],kn=[],Cn={},Mn={},An={},In={},On=+new Date-0,Dn=(new Date,"_echarts_instance_");function Pn(t,e,n){var r=!(n&&n.ssr);if(r){0;var i=Ln(t);if(i)return i;0}var o=new yn(t,e,n);return o.id="ec_"+On++,An[o.id]=o,r&&l.P$(t,Dn,o.id),dn(o),xe.trigger("afterinit",o),o}function Ln(t){return An[l.IL(t,Dn)]}function Nn(t,e){Cn[t]=e}function Rn(t){(0,o.cq)(Tn,t)<0&&Tn.push(t)}function jn(t,e){Wn(En,t,e,Ce)}function Fn(t){zn("afterinit",t)}function Bn(t){zn("afterupdate",t)}function zn(t,e){xe.on(t,e)}function Zn(t,e,n){(0,o.mf)(e)&&(n=e,e="");var r=(0,o.Kn)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,Sn[e]||((0,o.hu)(He.test(r)&&He.test(e)),wn[r]||(wn[r]={action:n,actionInfo:t}),Sn[e]=r)}function Un(t,e){L.Z.register(t,e)}function Hn(t,e){Wn(kn,t,e,Ae,"layout")}function $n(t,e){Wn(kn,t,e,De,"visual")}var Gn=[];function Wn(t,e,n,r,i){if(((0,o.mf)(e)||(0,o.Kn)(e))&&(n=e,e=r),!((0,o.cq)(Gn,n)>=0)){Gn.push(n);var a=Yt.wrapStageHandler(n,i);a.__prio=e,a.__raw=n,t.push(a)}}function Vn(t,e){Mn[t]=e}function Yn(t,e,n){var r=(0,we.C)("registerMap");r&&r(t,e,n)}var Xn=pe.DA;$n(Oe,wt),$n(Le,Et),$n(Le,Tt),$n(Oe,se),$n(Le,ue),$n(Fe,ye),Rn(tt),jn(Te,nt),Vn("default",It),Zn({type:ht.Ki,event:ht.Ki,update:ht.Ki},o.ZT),Zn({type:ht.yx,event:ht.yx,update:ht.yx},o.ZT),Zn({type:ht.Hg,event:ht.Hg,update:ht.Hg},o.ZT),Zn({type:ht.JQ,event:ht.JQ,update:ht.JQ},o.ZT),Zn({type:ht.iK,event:ht.iK,update:ht.iK},o.ZT),Nn("light",qt),Nn("dark",ne)},25587:function(t,e,n){"use strict";n.d(e,{C:function(){return o},M:function(){return i}});var r={};function i(t,e){r[t]=e}function o(t){return r[t]}},62645:function(t,e,n){"use strict";n.d(e,{sO:function(){return d},D0:function(){return g},Li:function(){return m},G8:function(){return v}});var r=n(85632),i=n(59979),o={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",custom:"Custom chart",chart:"Chart"}},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:". "}}}},a={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:"旭日图",custom:"自定义图表",chart:"图表"}},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:""}}}},s=n(95797),u="ZH",l="EN",c=l,f={},h={},d=i.Z.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||c).toUpperCase();return t.indexOf(u)>-1?u:c}():c;function p(t,e){t=t.toUpperCase(),h[t]=new r.Z(e),f[t]=e}function g(t){if((0,s.HD)(t)){var e=f[t.toUpperCase()]||{};return t===u||t===l?(0,s.d9)(e):(0,s.TS)((0,s.d9)(e),(0,s.d9)(f[c]),!1)}return(0,s.TS)((0,s.d9)(t),(0,s.d9)(f[c]),!1)}function v(t){return h[t]}function m(){return h[c]}p(l,o),p(u,a)},17787:function(t,e,n){"use strict";n.d(e,{v:function(){return i}});var r=n(95797);function i(t){return new o(t)}var o=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,i=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var a,s=f(this._modBy),u=this._modDataCount||0,l=f(t&&t.modBy),c=t&&t.modDataCount||0;function f(t){return!(t>=1)&&(t=1),t}s===l&&u===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=this._doReset(i)),this._modBy=l,this._modDataCount=c;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,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(a||d<p)){var g=this._progress;if((0,r.kJ)(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],d,p,l,c);else this._doProgress(g,d,p,l,c)}this._dueIndex=p;var m=null!=this._settedOutputEnd?this._settedOutputEnd:p;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){a.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:a.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&&e.progress&&(n=e.forceFirstProgress,e=e.progress),(0,r.kJ)(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.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}(),a=function(){var t,e,n,r,i,o={reset:function(u,l,c,f){e=u,t=l,n=c,r=f,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}}()},56441:function(t,e,n){"use strict";function r(t){return null==t?0:t.length||1}function i(t){return t}var o=function(){function t(t,e,n,r,o,a){this._old=t,this._new=e,this._oldKeyGetter=n||i,this._newKeyGetter=r||i,this.context=o,this._diffModeMultiple="multiple"===a}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={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=i[a],u=n[s],l=r(u);if(l>1){var c=u.shift();1===u.length&&(n[s]=u[0]),this._update&&this._update(c,a)}else 1===l?(n[s]=null,this._update&&this._update(u,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var u=o[s],l=n[u],c=i[u],f=r(l),h=r(c);if(f>1&&1===h)this._updateManyToOne&&this._updateManyToOne(c,l),i[u]=null;else if(1===f&&h>1)this._updateOneToMany&&this._updateOneToMany(c,l),i[u]=null;else if(1===f&&1===h)this._update&&this._update(c,l),i[u]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,l),i[u]=null;else if(f>1)for(var d=0;d<f;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(a,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],a=r(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else 1===a&&this._add&&this._add(o);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[i](t[a],a);if(o||(n[a]=s),e){var u=e[s],l=r(u);0===l?(e[s]=a,o&&n.push(s)):1===l?e[s]=[u,a]:u.push(a)}}},t}();e.Z=/^(539|826)$/.test(n.j)?o:null},18517:function(t,e,n){"use strict";n.d(e,{hG:function(){return c}});var r,i=n(95797),o=n(63354),a=n(26214),s="undefined",u=typeof Uint32Array===s?Array:Uint32Array,l=typeof Uint16Array===s?Array:Uint16Array,c=typeof Int32Array===s?Array:Int32Array,f=typeof Float64Array===s?Array:Float64Array,h={float:f,int:c,ordinal:Array,number:Array,time:f};function d(t){return t>65535?u:l}function p(){return[1/0,-1/0]}function g(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function v(t,e,n,r,i){var o=h[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var u=new o(r),l=0;l<s;l++)u[l]=a[l];t[e]=u}}else t[e]=new o(r)}var m=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=(0,i.kW)()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=t.getSource(),s=this.defaultDimValueGetter=r[o.sourceFormat];this._dimValueGetter=n||s,this._rawExtent=[];(0,a.QY)(o);this._dimensions=(0,i.UI)(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 h[e||"float"](this._rawCount),this._rawExtent[i]=p(),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]=p());for(var s=i[t],u=o;u<a;u++){var l=n[u]=e.parseAndCollect(n[u]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},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,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),u=s+Math.max(t.length,e||0),l=0;l<o;l++){var c=i[l];v(n,l,c.type,u,!0)}for(var f=[],h=s;h<u;h++)for(var d=h-s,p=0;p<o;p++){c=i[p];var g=r.arrayRows.call(this,t[d]||f,c.property,d,p);n[p][h]=g;var m=a[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,u=this._rawExtent,l=(0,i.UI)(a,(function(t){return t.property})),c=0;c<s;c++){var f=a[c];u[c]||(u[c]=p()),v(o,c,f.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,o,u);else for(var h=[],d=t;d<e;d++){h=r.getItem(d,h);for(var g=0;g<s;g++){var m=o[g],y=this._dimValueGetter(h,l[g],d,g);m[d]=y;var b=u[g];y<b[0]&&(b[0]=y),y>b[1]&&(b[1]=y)}}!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=this._chunks[t],n=0;if(e)for(var r=0,i=this.count();r<i;r++){var o=this.get(t,r);isNaN(o)||(n+=o)}return n},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;var r=0,i=this._count-1;while(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,i=r[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,u=0,l=0,c=this.count();l<c;l++){var f=this.getRawIndex(l),h=e-i[f],d=Math.abs(h);d<=n&&((d<a||d===a&&h>=0&&s<0)&&(a=d,s=h,u=0),h===s&&(o[u++]=l))}return o.length=u,o},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{n=d(this._rawCount);t=new n(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=d(n._rawCount),o=new i(r),a=[],s=t.length,u=0,l=t[0],c=n._chunks,f=0;f<r;f++){var h=void 0,p=n.getRawIndex(f);if(0===s)h=e(f);else if(1===s){var g=c[l][p];h=e(g,f)}else{for(var v=0;v<s;v++)a[v]=c[t[v]][p];a[v]=f,h=e.apply(null,a)}h&&(o[u++]=p)}return u<r&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=(0,i.XP)(t),o=r.length;if(!o)return this;var a=e.count(),s=d(e._rawCount),u=new s(a),l=0,c=r[0],f=t[c][0],h=t[c][1],p=e._chunks,g=!1;if(!e._indices){var v=0;if(1===o){for(var m=p[r[0]],y=0;y<n;y++){var b=m[y];(b>=f&&b<=h||isNaN(b))&&(u[l++]=v),v++}g=!0}else if(2===o){m=p[r[0]];var x=p[r[1]],_=t[r[1]][0],w=t[r[1]][1];for(y=0;y<n;y++){b=m[y];var S=x[y];(b>=f&&b<=h||isNaN(b))&&(S>=_&&S<=w||isNaN(S))&&(u[l++]=v),v++}g=!0}}if(!g)if(1===o)for(y=0;y<a;y++){var E=e.getRawIndex(y);b=p[r[0]][E];(b>=f&&b<=h||isNaN(b))&&(u[l++]=E)}else for(y=0;y<a;y++){for(var T=!0,k=(E=e.getRawIndex(y),0);k<o;k++){var C=r[k];b=p[C][E];(b<t[C][0]||b>t[C][1])&&(T=!1)}T&&(u[l++]=e.getRawIndex(y))}return l<a&&(e._indices=u),e._count=l,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=[],u=t._rawExtent,l=0;l<e.length;l++)u[e[l]]=p();for(var c=0;c<a;c++){for(var f=t.getRawIndex(c),h=0;h<o;h++)s[h]=r[e[h]][f];s[o]=c;var d=n&&n.apply(null,s);if(null!=d){"object"!==typeof d&&(i[0]=d,d=i);for(l=0;l<d.length;l++){var g=e[l],v=d[l],m=u[g],y=r[g];y&&(y[f]=v),v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks,s=a[t],u=this.count(),l=0,c=Math.floor(1/e),f=this.getRawIndex(0),h=new(d(this._rawCount))(Math.min(2*(Math.ceil(u/c)+2),u));h[l++]=f;for(var p=1;p<u-1;p+=c){for(var g=Math.min(p+c,u-1),v=Math.min(p+2*c,u),m=(v+g)/2,y=0,b=g;b<v;b++){var x=this.getRawIndex(b),_=s[x];isNaN(_)||(y+=_)}y/=v-g;var w=p,S=Math.min(p+c,u),E=p-1,T=s[f];n=-1,i=w;var k=-1,C=0;for(b=w;b<S;b++){x=this.getRawIndex(b),_=s[x];isNaN(_)?(C++,k<0&&(k=x)):(r=Math.abs((E-m)*(_-T)-(E-b)*(y-T)),r>n&&(n=r,i=x))}C>0&&C<S-w&&(h[l++]=Math.min(k,i),i=Math.max(k,i)),h[l++]=i,f=i}return h[l++]=this.getRawIndex(u-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),u=o[t],l=this.count(),c=i._rawExtent[t]=p(),f=new(d(this._rawCount))(Math.ceil(l/s)),h=0,g=0;g<l;g+=s){s>l-g&&(s=l-g,a.length=s);for(var v=0;v<s;v++){var m=this.getRawIndex(g+v);a[v]=u[m]}var y=n(a),b=this.getRawIndex(Math.min(g+r(a,y)||0,l-1));u[b]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),f[h++]=b}return i._count=h,i._indices=f,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,u=[];s<n;s++)u[s]=r[t[s]][a];u[s]=i,e.apply(null,u)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=p();if(!e)return n;var r,i=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(r=this._extent[t],r)return r.slice();r=n;for(var a=r[0],s=r[1],u=0;u<i;u++){var l=this.getRawIndex(u),c=e[l];c<a&&(a=c),c>s&&(s=c)}return r=[a,s],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=new t,o=this._chunks,a=e&&(0,i.u4)(e,(function(t,e){return t[e]=!0,t}),{});if(a)for(var s=0;s<o.length;s++)r._chunks[s]=a[s]?g(o[s]):o[s];else r._chunks=o;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=(0,i.d9)(this._extent),t._rawExtent=(0,i.d9)(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(0,o.yQ)(t[r],this._dimensions[r])}r={arrayRows:t,objectRows:function(t,e,n,r){return(0,o.yQ)(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return(0,o.yQ)(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}();e.ZP=/^(539|826)$/.test(n.j)?m:null},41021:function(t,e,n){"use strict";var r=n(95797),i=0,o=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++i}return t.createByAxisModel=function(e){var n=e.option,i=n.data,o=i&&(0,r.UI)(i,a);return new t({categories:o,needCollect:!o,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(!(0,r.HD)(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=(0,r.kW)(this.categories))},t}();function a(t){return(0,r.Kn)(t)&&null!=t.value?t.value:t+""}e.Z=/^(539|826)$/.test(n.j)?o:null},61221:function(t,e,n){"use strict";var r,i,o,a,s,u,l,c=n(95797),f=n(85632),h=n(56441),d=n(29221),p=n(50876),g=n(87112),v=n(86594),m=n(38496),y=n(75195),b=n(26214),x=n(18517),_=n(7846),w=c.Kn,S=c.UI,E="undefined"===typeof Int32Array?Array:Int32Array,T="e\0\0",k=-1,C=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],M=["_approximateExtent"],A=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;(0,_.bB)(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,u={},l=0;l<n.length;l++){var f=n[l],h=c.HD(f)?new g.Z({name:f}):f instanceof g.Z?f:new g.Z(f),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(d),i[d]=h,null!=u[d]&&(s=!0),h.createInvertedIndices&&(a[d]=[]),0===p.itemName&&(this._nameDimIdx=l),0===p.itemId&&(this._idDimIdx=l),r&&(h.storeDimIndex=l)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var v=this._dimIdxToName=c.kW();c.S6(o,(function(t){v.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(c.hj(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){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof x.ZP&&(r=t),!r){var o=this.dimensions,a=(0,b.Ld)(t)||c.zG(t)?new d.Pl(t,o.length):t;r=new x.ZP;var s=S(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=(0,p.y)(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&&l(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!==v.J5&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,u=s===v.cy;if(u&&!i.pure)for(var c=[],f=t;f<e;f++){var h=i.getItem(f,c);if(!this.hasItemOption&&(0,m.Co)(h)&&(this.hasItemOption=!0),h){var d=h.name;null==o[f]&&null!=d&&(o[f]=(0,m.U5)(d,null));var p=h.id;null==a[f]&&null!=p&&(a[f]=(0,m.U5)(p,null))}}if(this._shouldMakeIdFromName())for(f=t;f<e;f++)l(this,f);r(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){w(t)?c.l7(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=o(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 i(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 c.kJ(t)?r.getValues(S(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)?k:r},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){c.mf(t)&&(n=e,e=t,t=[]);var r=n||this,i=S(a(t),this._getStoreDimIndex,this);this._store.each(i,r?c.ak(e,r):e)},t.prototype.filterSelf=function(t,e,n){c.mf(t)&&(n=e,e=t,t=[]);var r=n||this,i=S(a(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?c.ak(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={},r=c.XP(t),i=[];return c.S6(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){c.mf(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=S(a(t),this._getStoreDimIndex,this),s=u(this);return s._store=this._store.map(o,i?c.ak(e,i):e),s},t.prototype.modify=function(t,e,n,r){var i=n||r||this;var o=S(a(t),this._getStoreDimIndex,this);this._store.modify(o,i?c.ak(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=u(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=u(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 f.Z(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new h.Z(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return i(t,e)}),(function(t){return i(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||{},w(t)?c.l7(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),c.kJ(i)?i=i.slice():w(i)&&(i=c.l7({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,w(e)?c.l7(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){w(t)?c.l7(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?c.l7(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;(0,y.Q)(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){c.S6(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:S(this.dimensions,this._getDimInfo,this),this.hostModel)),s(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];c.mf(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(c.tP(arguments)))})},t.internalField=function(){r=function(t){var e=t._invertedIndicesMap;c.S6(e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new E(o.categories.length);for(var s=0;s<n.length;s++)n[s]=k;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},o=function(t,e,n){return(0,m.U5)(t._getCategory(e,n),null)},i=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=o(t,t._idDimIdx,e)),null==n&&(n=T+e),n},a=function(t){return c.kJ(t)||(t=null!=t?[t]:[]),t},u=function(e){var n=new t(e._schema?e._schema:S(e.dimensions,e._getDimInfo,e),e.hostModel);return s(n,e),n},s=function(t,e){c.S6(C.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,c.S6(M,(function(n){t[n]=c.d9(e[n])})),t._calculationInfo=c.l7({},e._calculationInfo)},l=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,a=t._idDimIdx,s=n[e],u=r[e];if(null==s&&null!=i&&(n[e]=s=o(t,i,e)),null==u&&null!=a&&(r[e]=u=o(t,a,e)),null==u&&null!=s){var l=t._nameRepeatCount,c=l[s]=(l[s]||0)+1;u=s,c>1&&(u+="__ec__"+c),r[e]=u}}}(),t}();e.Z=/^(539|826)$/.test(n.j)?A:null},87112:function(t,e,n){"use strict";var r=n(95797),i=function(){function t(t){this.otherDims={},null!=t&&r.l7(this,t)}return t}();e.Z=/^(539|826)$/.test(n.j)?i:null},26214:function(t,e,n){"use strict";if(n.d(e,{Kp:function(){return h},Ld:function(){return u},ML:function(){return f},QY:function(){return m},_P:function(){return l},nx:function(){return c}}),/^(539|826)$/.test(n.j))var r=n(95797);var i=n(86594);if(/^(539|826)$/.test(n.j))var o=n(38496);var a=n(45452),s=function(){function t(t){this.data=t.data||(t.sourceFormat===i.hL?{}:[]),this.sourceFormat=t.sourceFormat||i.RA,this.seriesLayoutBy=t.seriesLayoutBy||i.fY,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&&(0,a.u7)(this,n)===a.Dq.Must&&(r.type="ordinal")}}return t}();function u(t){return t instanceof s}function l(t,e,n){n=n||h(t);var i=e.seriesLayoutBy,o=d(t,n,i,e.sourceHeader,e.dimensions),a=new s({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:(0,r.d9)(e)});return a}function c(t){return new s({data:t,sourceFormat:(0,r.fU)(t)?i.J5:i.cy})}function f(t){return new s({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:(0,r.d9)(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function h(t){var e=i.RA;if((0,r.fU)(t))e=i.J5;else if((0,r.kJ)(t)){0===t.length&&(e=i.XD);for(var n=0,o=t.length;n<o;n++){var a=t[n];if(null!=a){if((0,r.kJ)(a)||(0,r.fU)(a)){e=i.XD;break}if((0,r.Kn)(a)){e=i.qb;break}}}}else if((0,r.Kn)(t))for(var s in t)if((0,r.RI)(t,s)&&(0,r.zG)(t[s])){e=i.hL;break}return e}function d(t,e,n,a,s){var u,l;if(!t)return{dimensionsDefine:g(s),startIndex:l,dimensionsDetectedCount:u};if(e===i.XD){var c=t;"auto"===a||null==a?v((function(t){null!=t&&"-"!==t&&((0,r.HD)(t)?null==l&&(l=1):l=0)}),n,c,10):l=(0,r.hj)(a)?a:a?1:0,s||1!==l||(s=[],v((function(t,e){s[e]=null!=t?t+"":""}),n,c,1/0)),u=s?s.length:n===i.Wc?c.length:c[0]?c[0].length:null}else if(e===i.qb)s||(s=p(t));else if(e===i.hL)s||(s=[],(0,r.S6)(t,(function(t,e){s.push(e)})));else if(e===i.cy){var f=(0,o.C4)(t[0]);u=(0,r.kJ)(f)&&f.length||1}else i.J5;return{startIndex:l,dimensionsDefine:g(s),dimensionsDetectedCount:u}}function p(t){var e,n=0;while(n<t.length&&!(e=t[n++]));if(e)return(0,r.XP)(e)}function g(t){if(t){var e=(0,r.kW)();return(0,r.UI)(t,(function(t,n){t=(0,r.Kn)(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var o=e.get(i.name);return o?i.name+="-"+o.count++:e.set(i.name,{count:1}),i}))}}function v(t,e,n,r){if(e===i.Wc)for(var o=0;o<n.length&&o<r;o++)t(n[o]?n[o][0]:null,o);else{var a=n[0]||[];for(o=0;o<a.length&&o<r;o++)t(a[o],o)}}function m(t){var e=t.sourceFormat;return e===i.qb||e===i.hL}},7846:function(t,e,n){"use strict";n.d(e,{Eo:function(){return u},Jj:function(){return f},Jl:function(){return h},bB:function(){return l},v5:function(){return c}});var r=n(95797),i=n(38496),o=n(26214),a=(0,i.Yf)(),s={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},u=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=f(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return(0,r.pD)(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=(0,o.QY)(this.source),n=!h(t),r="",i=[],a=0,u=0;a<t;a++){var l=void 0,c=void 0,f=void 0,d=this.dimensions[u];if(d&&d.storeDimIndex===a)l=e?d.name:null,c=d.type,f=d.ordinalMeta,u++;else{var p=this.getSourceDimension(a);p&&(l=e?p.name:null,c=p.type)}i.push({property:l,type:c,ordinalMeta:f}),!e||null==l||d&&d.isCalculationCoord||(r+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),r+="$",r+=s[c]||"f",f&&(r+=f.uid),r+="$"}var g=this.source,v=[g.seriesLayoutBy,g.startIndex,r].join("$$");return{dimensions:i,hash:v}},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 l(t){return t instanceof u}function c(t){for(var e=(0,r.kW)(),n=0;n<(t||[]).length;n++){var i=t[n],o=(0,r.Kn)(i)?i.name:i;null!=o&&null==e.get(o)&&e.set(o,n)}return e}function f(t){var e=a(t);return e.dimNameMap||(e.dimNameMap=c(t.dimensionsDefine))}function h(t){return t>30}},32262:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return f}}),/^(539|826)$/.test(n.j))var r=n(86594);if(/^(539|826)$/.test(n.j))var i=n(87112);if(/^(539|826)$/.test(n.j))var o=n(95797);if(/^(539|826)$/.test(n.j))var a=n(26214);if(/^(539|826)$/.test(n.j))var s=n(18517);if(/^(539|826)$/.test(n.j))var u=n(38496);if(/^(539|826)$/.test(n.j))var l=n(45452);if(/^(539|826)$/.test(n.j))var c=n(7846);function f(t,e){(0,a.Ld)(t)||(t=(0,a.nx)(t)),e=e||{};var n=e.coordDimensions||[],f=e.dimensionsDefine||t.dimensionsDefine||[],g=(0,o.kW)(),v=[],m=d(t,n,f,e.dimensionsCount),y=e.canOmitUnusedDimensions&&(0,c.Jl)(m),b=f===t.dimensionsDefine,x=b?(0,c.Jj)(t):(0,c.v5)(f),_=e.encodeDefine;!_&&e.encodeDefaulter&&(_=e.encodeDefaulter(t,m));for(var w=(0,o.kW)(_),S=new s.hG(m),E=0;E<S.length;E++)S[E]=-1;function T(t){var e=S[t];if(e<0){var n=f[t],r=(0,o.Kn)(n)?n:{name:n},a=new i.Z,s=r.name;null!=s&&null!=x.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var u=v.length;return S[t]=u,a.storeDimIndex=t,v.push(a),a}return v[e]}if(!y)for(E=0;E<m;E++)T(E);w.each((function(t,e){var n=(0,u.kF)(t).slice();if(1===n.length&&!(0,o.HD)(n[0])&&n[0]<0)w.set(e,!1);else{var r=w.set(e,[]);(0,o.S6)(n,(function(t,n){var i=(0,o.HD)(t)?x.get(t):t;null!=i&&i<m&&(r[n]=i,C(T(i),e,n))}))}}));var k=0;function C(t,e,n){null!=r.f7.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,g.set(e,!0))}(0,o.S6)(n,(function(t){var e,n,r,i;if((0,o.HD)(t))e=t,i={};else{i=t,e=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=(0,o.l7)({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=w.get(e);if(!1!==s){if(s=(0,u.kF)(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){while(k<m&&null!=T(k).coordDim)k++;k<m&&s.push(k++)}(0,o.S6)(s,(function(t,a){var s=T(t);if(b&&null!=i.type&&(s.type=i.type),C((0,o.ce)(s,i),e,a),null==s.name&&n){var u=n[a];!(0,o.Kn)(u)&&(u={name:u}),s.name=s.displayName=u.name,s.defaultTooltip=u.defaultTooltip}r&&(0,o.ce)(s.otherDims,r)}))}}));var M=e.generateCoord,A=e.generateCoordCount,I=null!=A;A=M?A||1:0;var O=M||"value";function D(t){null==t.name&&(t.name=t.coordDim)}if(y)(0,o.S6)(v,(function(t){D(t)})),v.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var P=0;P<m;P++){var L=T(P),N=L.coordDim;null==N&&(L.coordDim=p(O,g,I),L.coordDimIndex=0,(!M||A<=0)&&(L.isExtraCoord=!0),A--),D(L),null!=L.type||(0,l.u7)(t,P)!==l.Dq.Must&&(!L.isExtraCoord||null==L.otherDims.itemName&&null==L.otherDims.seriesName)||(L.type="ordinal")}return h(v),new c.Eo({source:t,dimensions:v,fullDimensionCount:m,dimensionOmitted:y})}function h(t){for(var e=(0,o.kW)(),n=0;n<t.length;n++){var r=t[n],i=r.name,a=e.get(i)||0;a>0&&(r.name=i+(a-1)),a++,e.set(i,a)}}function d(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return(0,o.S6)(e,(function(t){var e;(0,o.Kn)(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}function p(t,e,n){if(n||e.hasKey(t)){var r=0;while(e.hasKey(t+r))r++;t+=r}return e.set(t,!0),t}},29221:function(t,e,n){"use strict";n.d(e,{Pl:function(){return h},_j:function(){return g},a:function(){return y},hk:function(){return S},tB:function(){return _}});var r,i,o,a,s,u=n(95797),l=n(38496),c=n(26214),f=n(86594),h=function(){function t(t,e){var n=(0,c.Ld)(t)?t:(0,c.nx)(t);this._source=n;var r=this._data=n.data;n.sourceFormat===f.J5&&(this._offset=0,this._dimSize=e,this._data=r),s(this,r,n)}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=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;s=function(t,i,o){var s=o.sourceFormat,l=o.seriesLayoutBy,c=o.startIndex,h=o.dimensionsDefine,d=a[w(s,l)];if((0,u.l7)(t,d),s===f.J5)t.getItem=e,t.count=r,t.fillStorage=n;else{var p=g(s,l);t.getItem=(0,u.ak)(p,null,i,c,h);var v=y(s,l);t.count=(0,u.ak)(v,null,i,c,h)}};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],u=null==s[0]?1/0:s[0],l=null==s[1]?-1/0:s[1],c=e-t,f=n[a],h=0;h<c;h++){var d=i[h*o+a];f[t+h]=d,d<u&&(u=d),d>l&&(l=d)}s[0]=u,s[1]=l}},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={},t[f.XD+"_"+f.fY]={pure:!0,appendData:i},t[f.XD+"_"+f.Wc]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[f.qb]={pure:!0,appendData:i},t[f.hL]={pure:!0,appendData:function(t){var e=this._data;(0,u.S6)(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},t[f.cy]={appendData:i},t[f.J5]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},a=t}(),t}(),d=function(t,e,n,r){return t[r]},p=(r={},r[f.XD+"_"+f.fY]=function(t,e,n,r){return t[r+e]},r[f.XD+"_"+f.Wc]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var u=a[s];o[s]=u?u[r]:null}return o},r[f.qb]=d,r[f.hL]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name;0;var u=t[s];o[a]=u?u[r]:null}return o},r[f.cy]=d,r);function g(t,e){var n=p[w(t,e)];return n}var v=function(t,e,n){return t.length},m=(i={},i[f.XD+"_"+f.fY]=function(t,e,n){return Math.max(0,t.length-e)},i[f.XD+"_"+f.Wc]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},i[f.qb]=v,i[f.hL]=function(t,e,n){var r=n[0].name;var i=t[r];return i?i.length:0},i[f.cy]=v,i);function y(t,e){var n=m[w(t,e)];return n}var b=function(t,e,n){return t[e]},x=(o={},o[f.XD]=b,o[f.qb]=function(t,e,n){return t[n]},o[f.hL]=b,o[f.cy]=function(t,e,n){var r=(0,l.C4)(t);return r instanceof Array?r[e]:r},o[f.J5]=b,o);function _(t){var e=x[t];return e}function w(t,e){return t===f.XD?t+"_"+e:t}function S(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 _(o)(r,a,s)}var u=r;return o===f.cy&&(u=(0,l.C4)(r)),u}}}},86366:function(t,e,n){"use strict";if(n.d(e,{BM:function(){return o},IR:function(){return u},M:function(){return s}}),/^(539|826)$/.test(n.j))var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(7846);function o(t,e,n){n=n||{};var i,o,s,u=n.byIndex,l=n.stackedCoordDimension;a(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var c,f,h,d,p=!(!t||!t.get("stack"));if((0,r.S6)(i,(function(t,e){(0,r.HD)(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(u||c||!t.ordinalMeta||(c=t),f||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(f=t))})),!f||u||c||(u=!0),f){h="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var g=f.coordDim,v=f.type,m=0;(0,r.S6)(i,(function(t){t.coordDim===g&&m++}));var y={name:h,coordDim:g,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},b={name:d,coordDim:d,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(d,v),b.storeDimIndex=s.ensureCalculationDimension(h,v)),o.appendCalculationDimension(y),o.appendCalculationDimension(b)):(i.push(y),i.push(b))}return{stackedDimension:f&&f.name,stackedByDimension:c&&c.name,isStackedByIndex:u,stackedOverDimension:d,stackResultDimension:h}}function a(t){return!(0,i.bB)(t.schema)}function s(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function u(t,e){return s(t,e)?t.getCalculationInfo("stackResultDimension"):e}},63354:function(t,e,n){"use strict";n.d(e,{ID:function(){return u},yQ:function(){return a}});var r=n(41201),i=n(95797),o=n(3313);function a(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||(0,i.hj)(t)||null==t||"-"===t||(t=+(0,r.sG)(t)),null==t||""===t?NaN:+t)}(0,i.kW)({number:function(t){return parseFloat(t)},time:function(t){return+(0,r.sG)(t)},trim:function(t){return(0,i.HD)(t)?(0,i.fy)(t):t}});var s={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}},u=(function(){function t(t,e){if(!(0,i.hj)(e)){var n="";0,(0,o._y)(n)}this._opFn=s[t],this._rvalFloat=(0,r.FK)(e)}t.prototype.evaluate=function(t){return(0,i.hj)(t)?this._opFn(t,this._rvalFloat):this._opFn((0,r.FK)(t),this._rvalFloat)}}(),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=(0,i.hj)(t)?t:(0,r.FK)(t),o=(0,i.hj)(e)?e:(0,r.FK)(e),a=isNaN(n),s=isNaN(o);if(a&&(n=this._incomparable),s&&(o=this._incomparable),a&&s){var u=(0,i.HD)(t),l=(0,i.HD)(e);u&&(n=l?t:0),l&&(o=u?e:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},t}());(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=(0,r.FK)(e)}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=(0,r.FK)(t)===this._rvalFloat)}return this._isEQ?e:!e}})()},50876:function(t,e,n){"use strict";if(n.d(e,{T:function(){return u},y:function(){return a}}),/^(539|826)$/.test(n.j))var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(86594);var o=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 a(t,e){var n={},a=n.encode={},u=(0,r.kW)(),c=[],f=[],h={};(0,r.S6)(t.dimensions,(function(e){var n=t.getDimensionInfo(e),r=n.coordDim;if(r){0;var o=n.coordDimIndex;s(a,r)[o]=e,n.isExtraCoord||(u.set(r,1),l(n.type)&&(c[0]=e),s(h,r)[o]=t.getDimensionIndex(n.name)),n.defaultTooltip&&f.push(e)}i.f7.each((function(t,e){var r=s(a,e),i=n.otherDims[e];null!=i&&!1!==i&&(r[i]=n.name)}))}));var d=[],p={};u.each((function(t,e){var n=a[e];p[e]=n[0],d=d.concat(n)})),n.dataDimsOnCoord=d,n.dataDimIndicesOnCoord=(0,r.UI)(d,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=p;var g=a.label;g&&g.length&&(c=g.slice());var v=a.tooltip;return v&&v.length?f=v.slice():f.length||(f=c.slice()),a.defaultedLabel=c,a.defaultedTooltip=f,n.userOutput=new o(h,e),n}function s(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function u(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function l(t){return!("ordinal"===t||"time"===t)}},45452:function(t,e,n){"use strict";n.d(e,{Dq:function(){return a},JT:function(){return f},Wd:function(){return c},md:function(){return u},pY:function(){return l},u7:function(){return h}});var r=n(38496);if(/^(539|826)$/.test(n.j))var i=n(95797);if(/^(539|826)$/.test(n.j))var o=n(86594);var a={Must:1,Might:2,Not:3},s=(0,r.Yf)();function u(t){s(t).datasetMap=(0,i.kW)()}function l(t,e,n){var r={},o=c(e);if(!o||!t)return r;var a,u,l=[],f=[],h=e.ecModel,d=s(h).datasetMap,p=o.uid+"_"+n.seriesLayoutBy;t=t.slice(),(0,i.S6)(t,(function(e,n){var o=(0,i.Kn)(e)?e:t[n]={name:e};"ordinal"===o.type&&null==a&&(a=n,u=m(o)),r[o.name]=[]}));var g=d.get(p)||d.set(p,{categoryWayDim:u,valueWayDim:0});function v(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function m(t){var e=t.dimsDef;return e?e.length:1}return(0,i.S6)(t,(function(t,e){var n=t.name,i=m(t);if(null==a){var o=g.valueWayDim;v(r[n],o,i),v(f,o,i),g.valueWayDim+=i}else if(a===e)v(r[n],0,i),v(l,0,i);else{o=g.categoryWayDim;v(r[n],o,i),v(f,o,i),g.categoryWayDim+=i}})),l.length&&(r.itemName=l),f.length&&(r.seriesName=f),r}function c(t){var e=t.get("data",!0);if(!e)return(0,r.HZ)(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},r.C6).models[0]}function f(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?(0,r.HZ)(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},r.C6).models:[]}function h(t,e){return d(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function d(t,e,n,s,u,l){var c,f,h,d=5;if((0,i.fU)(t))return a.Not;if(s){var p=s[l];(0,i.Kn)(p)?(f=p.name,h=p.type):(0,i.HD)(p)&&(f=p)}if(null!=h)return"ordinal"===h?a.Must:a.Not;if(e===o.XD){var g=t;if(n===o.Wc){for(var v=g[l],m=0;m<(v||[]).length&&m<d;m++)if(null!=(c=E(v[u+m])))return c}else for(m=0;m<g.length&&m<d;m++){var y=g[u+m];if(y&&null!=(c=E(y[l])))return c}}else if(e===o.qb){var b=t;if(!f)return a.Not;for(m=0;m<b.length&&m<d;m++){var x=b[m];if(x&&null!=(c=E(x[f])))return c}}else if(e===o.hL){var _=t;if(!f)return a.Not;v=_[f];if(!v||(0,i.fU)(v))return a.Not;for(m=0;m<v.length&&m<d;m++)if(null!=(c=E(v[m])))return c}else if(e===o.cy){var w=t;for(m=0;m<w.length&&m<d;m++){x=w[m];var S=(0,r.C4)(x);if(!(0,i.kJ)(S))return a.Not;if(null!=(c=E(S[l])))return c}}function E(t){var e=(0,i.HD)(t);return null!=t&&isFinite(t)&&""!==t?e?a.Might:a.Not:e&&"-"!==t?a.Must:void 0}return a.Not}},19874:function(t,e,n){"use strict";if(n.d(e,{DA:function(){return m},vK:function(){return y}}),/^(539|826)$/.test(n.j))var r=n(86594);if(/^(539|826)$/.test(n.j))var i=n(38496);var o=n(95797);if(/^(539|826)$/.test(n.j))var a=n(29221);var s=n(63354);if(/^(539|826)$/.test(n.j))var u=n(3313);if(/^(539|826)$/.test(n.j))var l=n(26214);var c=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(0,s.yQ)(t,e)},t}();function f(t,e){var n=new c,i=t.data,s=n.sourceFormat=t.sourceFormat,l=t.startIndex,f="";t.seriesLayoutBy!==r.fY&&(0,u._y)(f);var v=[],m={},y=t.dimensionsDefine;if(y)(0,o.S6)(y,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(v.push(r),null!=n){var i="";(0,o.RI)(m,n)&&(0,u._y)(i),m[n]=r}}));else for(var b=0;b<t.dimensionsDetectedCount;b++)v.push({index:b});var x=(0,a._j)(s,r.fY);e.__isBuiltIn&&(n.getRawDataItem=function(t){return x(i,l,v,t)},n.getRawData=(0,o.ak)(h,null,t)),n.cloneRawData=(0,o.ak)(d,null,t);var _=(0,a.a)(s,r.fY);n.count=(0,o.ak)(_,null,i,l,v);var w=(0,a.tB)(s);n.retrieveValue=function(t,e){var n=x(i,l,v,t);return S(n,e)};var S=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=v[e];return n?w(t,e,n.name):void 0}};return n.getDimensionInfo=(0,o.ak)(p,null,v,m),n.cloneAllDimensionInfo=(0,o.ak)(g,null,v),n}function h(t){var e=t.sourceFormat;if(!x(e)){var n="";0,(0,u._y)(n)}return t.data}function d(t){var e=t.sourceFormat,n=t.data;if(!x(e)){var i="";0,(0,u._y)(i)}if(e===r.XD){for(var a=[],s=0,l=n.length;s<l;s++)a.push(n[s].slice());return a}if(e===r.qb){for(a=[],s=0,l=n.length;s<l;s++)a.push((0,o.l7)({},n[s]));return a}}function p(t,e,n){if(null!=n)return(0,o.hj)(n)||!isNaN(n)&&!(0,o.RI)(e,n)?t[n]:(0,o.RI)(e,n)?e[n]:void 0}function g(t){return(0,o.d9)(t)}var v=(0,o.kW)();function m(t){t=(0,o.d9)(t);var e=t.type,n="";e||(0,u._y)(n);var r=e.split(":");2!==r.length&&(0,u._y)(n);var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,v.set(e,t)}function y(t,e,n){var r=(0,i.kF)(t),o=r.length,a="";o||(0,u._y)(a);for(var s=0,l=o;s<l;s++){var c=r[s];e=b(c,e,n,1===o?null:s),s!==l-1&&(e.length=Math.max(e.length,1))}return e}function b(t,e,n,a){var s="";e.length||(0,u._y)(s),(0,o.Kn)(t)||(0,u._y)(s);var c=t.type,h=v.get(c);h||(0,u._y)(s);var d=(0,o.UI)(e,(function(t){return f(t,h)})),p=(0,i.kF)(h.transform({upstream:d[0],upstreamList:d,config:(0,o.d9)(t.config)}));return(0,o.UI)(p,(function(t,n){var i="";(0,o.Kn)(t)||(0,u._y)(i),t.data||(0,u._y)(i);var a,s=(0,l.Kp)(t.data);x(s)||(0,u._y)(i);var c=e[0];if(c&&0===n&&!t.dimensions){var f=c.startIndex;f&&(t.data=c.data.slice(0,f).concat(t.data)),a={seriesLayoutBy:r.fY,sourceHeader:f,dimensions:c.metaRawOption.dimensions}}else a={seriesLayoutBy:r.fY,sourceHeader:0,dimensions:t.dimensions};return(0,l._P)(t.data,a,null)}))}function x(t){return t===r.XD||t===r.qb}},35183:function(t,e,n){"use strict";n.d(e,{D:function(){return d}});var r=n(73903),i=n(59160),o=n(55486),a=n(13350),s=n(84895);if(/^(539|826)$/.test(n.j))var u=n(95797);var l=n(25587),c=n(24503),f=/^(539|826)$/.test(n.j)?[]:null,h={registerPreprocessor:r.ds,registerProcessor:r.Pu,registerPostInit:r.sq,registerPostUpdate:r.Br,registerUpdateLifecycle:r.YK,registerAction:r.zl,registerCoordinateSystem:r.RS,registerLayout:r.qR,registerVisual:r.Og,registerTransform:r.OB,registerLoading:r.yn,registerMap:r.je,registerImpl:l.M,PRIORITY:r.Hr,ComponentModel:a.Z,ComponentView:i.Z,SeriesModel:s.Z,ChartView:o.Z,registerComponentModel:function(t){a.Z.registerClass(t)},registerComponentView:function(t){i.Z.registerClass(t)},registerSeriesModel:function(t){s.Z.registerClass(t)},registerChartView:function(t){o.Z.registerClass(t)},registerSubTypeDefaulter:function(t,e){a.Z.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){(0,c.wm)(t,e)}};function d(t){(0,u.kJ)(t)?(0,u.S6)(t,(function(t){d(t)})):(0,u.cq)(f,t)>=0||(f.push(t),(0,u.mf)(t)&&(t={install:t}),t.install(h))}},80086:function(t,e,n){"use strict";n.d(e,{Z:function(){return Q}});var r=n(96805),i=n(51058),o=n(75195),a=n(41201),s=n(87184),u=n(11123),l=n(23256),c=n(12484),f=n(85727),h=n(79214),d=n(3816),p=n(95797),g=n(66012),v=n(15468),m=n(10859),y=2*Math.PI,b=f.Z.CMD,x=["top","right","bottom","left"];function _(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);break}}function w(t,e,n,r,i,o,a,s,u){a-=t,s-=e;var l=Math.sqrt(a*a+s*s);a/=l,s/=l;var c=a*n+t,f=s*n+e;if(Math.abs(r-i)%y<1e-4)return u[0]=c,u[1]=f,l-n;if(o){var d=r;r=(0,h.m)(i),i=(0,h.m)(d)}else r=(0,h.m)(r),i=(0,h.m)(i);r>i&&(i+=y);var p=Math.atan2(s,a);if(p<0&&(p+=y),p>=r&&p<=i||p+y>=r&&p+y<=i)return u[0]=c,u[1]=f,l-n;var g=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=n*Math.cos(i)+t,b=n*Math.sin(i)+e,x=(g-a)*(g-a)+(v-s)*(v-s),_=(m-a)*(m-a)+(b-s)*(b-s);return x<_?(u[0]=g,u[1]=v,Math.sqrt(x)):(u[0]=m,u[1]=b,Math.sqrt(_))}function S(t,e,n,r,i,o,a,s){var u=i-t,l=o-e,c=n-t,f=r-e,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var d=u*c+l*f,p=d/h;s&&(p=Math.min(Math.max(p,0),1)),p*=h;var g=a[0]=t+p*c,v=a[1]=e+p*f;return Math.sqrt((g-i)*(g-i)+(v-o)*(v-o))}function E(t,e,n,r,i,o,a){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r);var s=t+n,u=e+r,l=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),u);return Math.sqrt((l-i)*(l-i)+(c-o)*(c-o))}var T=[];function k(t,e,n){var r=E(e.x,e.y,e.width,e.height,t.x,t.y,T);return n.set(T[0],T[1]),r}function C(t,e,n){for(var r,i,o=0,a=0,s=0,u=0,l=1/0,c=e.data,f=t.x,h=t.y,p=0;p<c.length;){var g=c[p++];1===p&&(o=c[p],a=c[p+1],s=o,u=a);var v=l;switch(g){case b.M:s=c[p++],u=c[p++],o=s,a=u;break;case b.L:v=S(o,a,c[p],c[p+1],f,h,T,!0),o=c[p++],a=c[p++];break;case b.C:v=(0,d.t1)(o,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],f,h,T),o=c[p++],a=c[p++];break;case b.Q:v=(0,d.Wr)(o,a,c[p++],c[p++],c[p],c[p+1],f,h,T),o=c[p++],a=c[p++];break;case b.A:var m=c[p++],y=c[p++],x=c[p++],_=c[p++],k=c[p++],C=c[p++];p+=1;var M=!!(1-c[p++]);r=Math.cos(k)*x+m,i=Math.sin(k)*_+y,p<=1&&(s=r,u=i);var A=(f-m)*_/x+m;v=w(m,y,_,k,k+C,M,A,h,T),o=Math.cos(k+C)*x+m,a=Math.sin(k+C)*_+y;break;case b.R:s=o=c[p++],u=a=c[p++];var I=c[p++],O=c[p++];v=E(s,u,I,O,f,h,T);break;case b.Z:v=S(o,a,s,u,f,h,T,!0),o=s,a=u;break}v<l&&(l=v,n.set(T[0],T[1]))}return l}var M=new u.Z,A=new u.Z,I=new u.Z,O=new u.Z,D=new u.Z;function P(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||x,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,f=i.anchor,h=t.getComputedTransform(),d=h&&(0,g.U_)([],h),p=e.get("length2")||0;f&&I.copy(f);for(var v=0;v<a.length;v++){var m=a[v];_(m,0,s,M,O),u.Z.scaleAndAdd(A,M,O,p),A.transform(d);var y=t.getBoundingRect(),b=f?f.distance(A):t instanceof l.ZP?C(A,t.path,I):k(A,y,I);b<c&&(c=b,A.transform(h),I.transform(h),I.toArray(o[0]),A.toArray(o[1]),M.toArray(o[2]))}R(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var L=[],N=new u.Z;function R(t,e){if(e<=180&&e>0){e=e/180*Math.PI,M.fromArray(t[0]),A.fromArray(t[1]),I.fromArray(t[2]),u.Z.sub(O,M,A),u.Z.sub(D,I,A);var n=O.len(),r=D.len();if(!(n<.001||r<.001)){O.scale(1/n),D.scale(1/r);var i=O.dot(D),o=Math.cos(e);if(o<i){var a=S(A.x,A.y,I.x,I.y,M.x,M.y,L,!1);N.fromArray(L),N.scaleAndAdd(D,a/Math.tan(Math.PI-e));var s=I.x!==A.x?(N.x-A.x)/(I.x-A.x):(N.y-A.y)/(I.y-A.y);if(isNaN(s))return;s<0?u.Z.copy(N,A):s>1&&u.Z.copy(N,I),N.toArray(t[1])}}}}function j(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 F(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=v.TK(r[0],r[1]),o=v.TK(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=v.t7([],r[1],r[0],a/i),u=v.t7([],r[1],r[2],a/o),l=v.t7([],s,u,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),t.bezierCurveTo(u[0],u[1],u[0],u[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 B(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var o=e.normal,a=o.get("show"),s=i.ignore,u=0;u<m.qc.length;u++){var l=m.qc[u],f=e[l],h="normal"===l;if(f){var d=f.get("show"),g=h?s:(0,p.pD)(i.states[l]&&i.states[l].ignore,s);if(g||!(0,p.pD)(d,a)){var v=h?r:r&&r.states[l];v&&(v.ignore=!0),r&&j(r,!0,l,f);continue}r||(r=new c.Z,t.setTextGuideLine(r),h||!s&&a||j(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),j(r,!1,l,f)}}if(r){(0,p.ce)(r.style,n),r.style.fill=null;var y=o.get("showAbove"),b=t.textGuideLineConfig=t.textGuideLineConfig||{};b.showAbove=y||!1,r.buildPath=F}}else r&&t.removeTextGuideLine()}function z(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<m.L1.length;r++){var i=m.L1[r];n[i]=t.getModel([i,e])}return n}var Z=n(38496),U=n(96695),H=n(19552);function $(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function G(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:$(r&&r.shape.points)}}var W=["align","verticalAlign","width","height","fontSize"],V=new s.ZP,Y=(0,Z.Yf)(),X=(0,Z.Yf)();function q(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}var K=["x","y","rotation"],J=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,o){var a=i.style,s=i.__hostTarget,u=s.textConfig||{},l=i.getComputedTransform(),c=i.getBoundingRect().plain();r.Z.applyTransform(c,c,l),l?V.setLocalTransform(l):(V.x=V.y=V.rotation=V.originX=V.originY=0,V.scaleX=V.scaleY=1),V.rotation=(0,h.m)(V.rotation);var f,d=i.__hostTarget;if(d){f=d.getBoundingRect().plain();var p=d.getComputedTransform();r.Z.applyTransform(f,f,p)}var g=f&&d.getTextGuideLine();this._labelList.push({label:i,labelLine:g,seriesModel:n,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:c,hostRect:f,priority:f?f.width*f.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:g&&g.ignore,x:V.x,y:V.y,scaleX:V.scaleX,scaleY:V.scaleY,rotation:V.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:u.position,attachedRot:u.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");((0,p.mf)(r)||(0,p.XP)(r).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent(),a=(0,o.A)(t);i&&!i.disableLabelLayout&&e._addLabel(a.dataIndex,a.dataType,n,i,r)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function r(t,e){return function(){P(t,e)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,u=s.__hostTarget,l=o.defaultAttr,c=void 0;c=(0,p.mf)(o.layoutOption)?o.layoutOption(G(o,u)):o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;u&&u.setTextConfig({local:!1,position:null!=c.x||null!=c.y?null:l.attachedPos,rotation:null!=c.rotate?c.rotate*f:l.attachedRot,offset:[c.dx||0,c.dy||0]});var h=!1;if(null!=c.x?(s.x=(0,a.GM)(c.x,e),s.setStyle("x",0),h=!0):(s.x=l.x,s.setStyle("x",l.style.x)),null!=c.y?(s.y=(0,a.GM)(c.y,n),s.setStyle("y",0),h=!0):(s.y=l.y,s.setStyle("y",l.style.y)),c.labelLinePoints){var d=u.getTextGuideLine();d&&(d.setShape({points:c.labelLinePoints}),h=!1)}var g=Y(s);g.needsUpdateLabelLine=h,s.rotation=null!=c.rotate?c.rotate*f:l.rotation,s.scaleX=l.scaleX,s.scaleY=l.scaleY;for(var v=0;v<W.length;v++){var m=W[v];s.setStyle(m,null!=c[m]?c[m]:l.style[m])}if(c.draggable){if(s.draggable=!0,s.cursor="move",u){var y=o.seriesModel;if(null!=o.dataIndex){var b=o.seriesModel.getData(o.dataType);y=b.getItemModel(o.dataIndex)}s.on("drag",r(u,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),r=(0,U.VT)(this._labelList),i=(0,p.hX)(r,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=(0,p.hX)(r,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));(0,U.WE)(i,0,e),(0,U.GI)(o,0,n);var a=(0,p.hX)(r,(function(t){return t.layoutOption.hideOverlap}));(0,U.yl)(a)},t.prototype.processLabelsOverall=function(){var t=this;(0,p.S6)(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=Y(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=(0,o.A)(t),i=r.dataIndex;if(n&&null!=i){var a=e.getData(r.dataType),s=a.getItemModel(i),u={},l=a.getItemVisual(i,"style");if(l){var c=a.getVisual("drawType");u.stroke=l[c]}var f=s.getModel("labelLine");B(t,z(s),u),P(t,f)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),r=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!(0,i.eq)(t))){var a=Y(n),s=a.oldLayout,u=(0,o.A)(t),l=u.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},f=e.getData(u.dataType);if(s){n.attr(s);var h=t.prevStates;h&&((0,p.cq)(h,"select")>=0&&n.attr(a.oldLayoutSelect),(0,p.cq)(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),(0,i.D)(n,c,e,l)}else if(n.attr(c),!(0,H.qA)(n).valueAnimation){var d=(0,p.pD)(n.style.opacity,1);n.style.opacity=0,(0,i.KZ)(n,{style:{opacity:d}},e,l)}if(a.oldLayout=c,n.states.select){var g=a.oldLayoutSelect={};q(g,c,K),q(g,n.states.select,K)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};q(v,c,K),q(v,n.states.emphasis,K)}(0,H.tD)(n,l,f,e,e)}if(r&&!r.ignore&&!r.invisible){a=X(r),s=a.oldLayout;var m={points:r.shape.points};s?(r.attr({shape:s}),(0,i.D)(r,{shape:m},e)):(r.setShape(m),r.style.strokePercent=0,(0,i.KZ)(r,{style:{strokePercent:1}},e)),a.oldLayout=m}},t}(),Q=J},80166:function(t,e,n){"use strict";n.d(e,{T:function(){return a}});var r=n(38496);if(/^(539|826)$/.test(n.j))var i=n(80086);var o=(0,r.Yf)();function a(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=o(e).labelManager;r||(r=o(e).labelManager=new i.Z),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=o(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}},96695:function(t,e,n){"use strict";if(n.d(e,{GI:function(){return u},VT:function(){return o},WE:function(){return s},yl:function(){return l}}),/^(539|826)$/.test(n.j))var r=n(63772);if(/^(539|826)$/.test(n.j))var i=n(96805);function o(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var o=i.label,a=o.getComputedTransform(),s=o.getBoundingRect(),u=!a||a[1]<1e-5&&a[2]<1e-5,l=o.style.margin||0,c=s.clone();c.applyTransform(a),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var f=u?new r.Z(s,a):null;e.push({label:o,labelLine:i.labelLine,rect:c,localRect:s,obb:f,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:u,transform:a})}}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,u=0,l=!1,c=[],f=0,h=0;h<a;h++){var d=t[h],p=d.rect;s=p[e]-u,s<0&&(p[e]-=s,d.label[e]-=s,l=!0);var g=Math.max(-s,0);c.push(g),f+=g,u=p[e]+p[n]}f>0&&o&&w(-f/a,0,a);var v,m,y=t[0],b=t[a-1];return x(),v<0&&S(-v,.8),m<0&&S(m,.8),x(),_(v,m,1),_(m,v,-1),x(),v<0&&E(-v),m<0&&E(m),l}function x(){v=y.rect[e]-r,m=i-b.rect[e]-b.rect[n]}function _(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&&(l=!0);for(var o=r;o<i;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function S(r,i){for(var o=[],s=0,u=1;u<a;u++){var l=t[u-1].rect,c=Math.max(t[u].rect[e]-l[e]-l[n],0);o.push(c),s+=c}if(s){var f=Math.min(Math.abs(r)/s,i);if(r>0)for(u=0;u<a-1;u++){var h=o[u]*f;w(h,0,u+1)}else for(u=a-1;u>0;u--){h=o[u-1]*f;w(-h,u,a)}}}function E(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,t<=0)return}}function s(t,e,n,r){return a(t,"x","width",e,n,r)}function u(t,e,n,r){return a(t,"y","height",e,n,r)}function l(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new i.Z(0,0,0,0);function o(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var a=0;a<t.length;a++){var s=t[a],u=s.axisAligned,l=s.localRect,c=s.transform,f=s.label,h=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=s.obb,p=!1,g=0;g<e.length;g++){var v=e[g];if(n.intersect(v.rect)){if(u&&v.axisAligned){p=!0;break}if(v.obb||(v.obb=new r.Z(v.localRect,v.transform)),d||(d=new r.Z(l,c)),d.intersect(v.obb)){p=!0;break}}}p?(o(f),h&&o(h)):(f.attr("ignore",s.defaultAttr.ignore),h&&h.attr("ignore",s.defaultAttr.labelGuideIgnore),e.push(s))}}},19552:function(t,e,n){"use strict";if(n.d(e,{Lr:function(){return d},k3:function(){return h},ni:function(){return f},qA:function(){return w},qT:function(){return _},tD:function(){return S}}),/^(539|826)$/.test(n.j))var r=n(49386);if(/^(539|826)$/.test(n.j))var i=n(95797);if(/^(539|826)$/.test(n.j))var o=n(10859);var a=n(38496);if(/^(539|826)$/.test(n.j))var s=n(51058);var u={};function l(t,e){for(var n=0;n<o.L1.length;n++){var r=o.L1[n],i=e[r],a=t.ensureState(r);a.style=a.style||{},a.style.text=i}var s=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(s,!0)}function c(t,e,n){var r,a=t.labelFetcher,s=t.labelDataIndex,u=t.labelDimIndex,l=e.normal;a&&(r=a.getFormattedLabel(s,"normal",null,u,l&&l.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=(0,i.mf)(t.defaultText)?t.defaultText(s,t,n):t.defaultText);for(var c={normal:r},f=0;f<o.L1.length;f++){var h=o.L1[f],d=e[h];c[h]=(0,i.pD)(a?a.getFormattedLabel(s,h,null,u,d&&d.get("formatter")):null,r)}return c}function f(t,e,n,a){n=n||u;for(var s=t instanceof r.ZP,f=!1,h=0;h<o.qc.length;h++){var g=e[o.qc[h]];if(g&&g.getShallow("show")){f=!0;break}}var v=s?t:t.getTextContent();if(f){s||(v||(v=new r.ZP,t.setTextContent(v)),t.stateProxy&&(v.stateProxy=t.stateProxy));var m=c(n,e),y=e.normal,b=!!y.getShallow("show"),x=d(y,a&&a.normal,n,!1,!s);x.text=m.normal,s||t.setTextConfig(p(y,n,!1));for(h=0;h<o.L1.length;h++){var _=o.L1[h];g=e[_];if(g){var S=v.ensureState(_),E=!!(0,i.pD)(g.getShallow("show"),b);if(E!==b&&(S.ignore=!E),S.style=d(g,a&&a[_],n,!0,!s),S.style.text=m[_],!s){var T=t.ensureState(_);T.textConfig=p(g,n,!0)}}}v.silent=!!y.getShallow("silent"),null!=v.style.x&&(x.x=v.style.x),null!=v.style.y&&(x.y=v.style.y),v.ignore=!b,v.useStyle(x),v.dirty(),n.enableTextSetter&&(w(v).setLabelText=function(t){var r=c(n,e,t);l(v,r)})}else v&&(v.ignore=!0);t.dirty()}function h(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<o.L1.length;r++){var i=o.L1[r];n[i]=t.getModel([i,e])}return n}function d(t,e,n,r,o){var a={};return g(a,t,n,r,o),e&&(0,i.l7)(a,e),a}function p(t,e,n){e=e||{};var r,o={},a=t.getShallow("rotate"),s=(0,i.pD)(t.getShallow("distance"),n?null:5),u=t.getShallow("offset");return r=t.getShallow("position")||(n?null:"inside"),"outside"===r&&(r=e.defaultOutsidePosition||"top"),null!=r&&(o.position=r),null!=u&&(o.offset=u),null!=a&&(a*=Math.PI/180,o.rotation=a),null!=s&&(o.distance=s),o.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",o}function g(t,e,n,r,i){n=n||u;var o,a=e.ecModel,s=a&&a.option.textStyle,l=v(e);if(l)for(var c in o={},l)if(l.hasOwnProperty(c)){var f=e.getModel(["rich",c]);x(o[c]={},f,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),x(t,e,s,n,r,i,!0,!1)}function v(t){var e;while(t&&t!==t.ecModel){var n=(t.option||u).rich;if(n){e=e||{};for(var r=(0,i.XP)(n),o=0;o<r.length;o++){var a=r[o];e[a]=1}}t=t.parentModel}return e}var m=/^(539|826)$/.test(n.j)?["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"]:null,y=/^(539|826)$/.test(n.j)?["align","lineHeight","width","height","tag","verticalAlign","ellipsis"]:null,b=/^(539|826)$/.test(n.j)?["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]:null;function x(t,e,n,r,o,a,s,l){n=!o&&n||u;var c=r&&r.inheritColor,f=e.getShallow("color"),h=e.getShallow("textBorderColor"),d=(0,i.pD)(e.getShallow("opacity"),n.opacity);"inherit"!==f&&"auto"!==f||(f=c||null),"inherit"!==h&&"auto"!==h||(h=c||null),a||(f=f||n.color,h=h||n.textBorderColor),null!=f&&(t.fill=f),null!=h&&(t.stroke=h);var p=(0,i.pD)(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var g=(0,i.pD)(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var v=(0,i.pD)(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=v&&(t.lineDashOffset=v),o||null!=d||l||(d=r&&r.defaultOpacity),null!=d&&(t.opacity=d),o||a||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var x=0;x<m.length;x++){var _=m[x],w=(0,i.pD)(e.getShallow(_),n[_]);null!=w&&(t[_]=w)}for(x=0;x<y.length;x++){_=y[x],w=e.getShallow(_);null!=w&&(t[_]=w)}if(null==t.verticalAlign){var S=e.getShallow("baseline");null!=S&&(t.verticalAlign=S)}if(!s||!r.disableBox){for(x=0;x<b.length;x++){_=b[x],w=e.getShallow(_);null!=w&&(t[_]=w)}var E=e.getShallow("borderType");null!=E&&(t.borderDash=E),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}function _(t,e){var n=e&&e.getModel("textStyle");return(0,i.fy)([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 w=(0,a.Yf)();function S(t,e,n,r,o){var u=w(t);if(u.valueAnimation&&u.prevValue!==u.value){var f=u.defaultInterpolatedText,h=(0,i.pD)(u.interpolatedValue,u.prevValue),d=u.value;t.percent=0,(null==u.prevValue?s.KZ:s.D)(t,{percent:1},r,e,null,p)}function p(r){var i=(0,a.pk)(n,u.precision,h,d,r);u.interpolatedValue=1===r?null:i;var s=c({labelDataIndex:e,labelFetcher:o,defaultText:f?f(i):i+""},u.statesModels,i);l(t,s)}}},95848:function(t,e,n){"use strict";if(n.d(e,{G_:function(){return h},Ge:function(){return u},My:function(){return c}}),/^(539|826)$/.test(n.j))var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(41201);var o="__ec_stack_";function a(t){return t.get("stack")||o+t.seriesIndex}function s(t){return t.dim+t.index}function u(t,e){var n=[];return e.eachSeriesByType(t,(function(t){d(t)&&n.push(t)})),n}function l(t){var e={};(0,r.S6)(t,(function(t){var n=t.coordinateSystem,r=n.getBaseAxis();if("time"===r.type||"value"===r.type)for(var i=t.getData(),o=r.dim+"_"+r.index,a=i.getDimensionIndex(i.mapDimension(r.dim)),s=i.getStore(),u=0,l=s.count();u<l;++u){var c=s.get(a,u);e[o]?e[o].push(c):e[o]=[c]}}));var n={};for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];if(o){o.sort((function(t,e){return t-e}));for(var a=null,s=1;s<o.length;++s){var u=o[s]-o[s-1];u>0&&(a=null===a?u:Math.min(a,u))}n[i]=a}}return n}function c(t){var e=l(t),n=[];return(0,r.S6)(t,(function(t){var r,o=t.coordinateSystem,u=o.getBaseAxis(),l=u.getExtent();if("category"===u.type)r=u.getBandWidth();else if("value"===u.type||"time"===u.type){var c=u.dim+"_"+u.index,f=e[c],h=Math.abs(l[1]-l[0]),d=u.scale.getExtent(),g=Math.abs(d[1]-d[0]);r=f?h/g*f:h}else{var v=t.getData();r=Math.abs(l[1]-l[0])/v.count()}var m=(0,i.GM)(t.get("barWidth"),r),y=(0,i.GM)(t.get("barMaxWidth"),r),b=(0,i.GM)(t.get("barMinWidth")||(p(t)?.5:1),r),x=t.get("barGap"),_=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:m,barMaxWidth:y,barMinWidth:b,barGap:x,barCategoryGap:_,axisKey:s(u),stackId:a(t)})})),f(n)}function f(t){var e={};(0,r.S6)(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 u=t.barWidth;u&&!a[s].width&&(a[s].width=u,u=Math.min(o.remainedWidth,u),o.remainedWidth-=u);var l=t.barMaxWidth;l&&(a[s].maxWidth=l);var c=t.barMinWidth;c&&(a[s].minWidth=c);var f=t.barGap;null!=f&&(o.gap=f);var h=t.barCategoryGap;null!=h&&(o.categoryGap=h)}));var n={};return(0,r.S6)(e,(function(t,e){n[e]={};var o=t.stacks,a=t.bandWidth,s=t.categoryGap;if(null==s){var u=(0,r.XP)(o).length;s=Math.max(35-4*u,15)+"%"}var l=(0,i.GM)(s,a),c=(0,i.GM)(t.gap,1),f=t.remainedWidth,h=t.autoWidthCount,d=(f-l)/(h+(h-1)*c);d=Math.max(d,0),(0,r.S6)(o,(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,f-=r+c*r,h--}else{var r=d;e&&e<r&&(r=Math.min(e,f)),n&&n>r&&(r=n),r!==d&&(t.width=r,f-=r+c*r,h--)}})),d=(f-l)/(h+(h-1)*c),d=Math.max(d,0);var p,g=0;(0,r.S6)(o,(function(t,e){t.width||(t.width=d),p=t,g+=t.width*(1+c)})),p&&(g-=p.width*c);var v=-g/2;(0,r.S6)(o,(function(t,r){n[e][r]=n[e][r]||{bandWidth:a,offset:v,width:t.width},v+=t.width*(1+c)}))})),n}function h(t,e,n){if(t&&e){var r=t[s(e)];return null!=r&&null!=n?r[a(n)]:r}}function d(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function p(t){return t.pipelineContext&&t.pipelineContext.large}},41248:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return s}}),/^(539|826)$/.test(n.j))var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(73592);if(/^(539|826)$/.test(n.j))var o=n(86366);if(/^(539|826)$/.test(n.j))var a=n(81278);function s(t,e){return{seriesType:t,plan:(0,i.Z)(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,s=t.pipelineContext,u=e||s.large;if(i){var l=(0,r.UI)(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),c=l.length,f=n.getCalculationInfo("stackResultDimension");(0,o.M)(n,l[0])&&(l[0]=f),(0,o.M)(n,l[1])&&(l[1]=f);var h=n.getStore(),d=n.getDimensionIndex(l[0]),p=n.getDimensionIndex(l[1]);return c&&{progress:function(t,e){for(var n=t.end-t.start,r=u&&(0,a.o)(n*c),o=[],s=[],l=t.start,f=0;l<t.end;l++){var g=void 0;if(1===c){var v=h.get(d,l);g=i.dataToPoint(v,null,s)}else o[0]=h.get(d,l),o[1]=h.get(p,l),g=i.dataToPoint(o,null,s);u?(r[f++]=g[0],r[f++]=g[1]):e.setItemLayout(l,g.slice())}u&&e.setLayout("points",r)}}}}}}},13350:function(t,e,n){"use strict";var r=n(18299),i=n(95797),o=n(85632),a=n(40259),s=n(6990),u=n(38496),l=n(16457),c=(0,u.Yf)(),f=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=a.Kr("ec_cpt_model"),i}return(0,r.ZT)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=l.YD(this),r=n?l.tE(t):{},o=e.getTheme();i.TS(t,o.get(this.mainType)),i.TS(t,this.getDefaultOption()),n&&l.dt(t,r,n)},e.prototype.mergeOption=function(t,e){i.TS(this.option,t,!0);var n=l.YD(this);n&&l.dt(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!(0,s.PT)(t))return t.defaultOption;var e=c(this);if(!e.defaultOption){var n=[],r=t;while(r){var o=r.prototype.defaultOption;o&&n.push(o),r=r.superClass}for(var a={},u=n.length-1;u>=0;u--)a=i.TS(a,n[u],!0);e.defaultOption=a}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return(0,u.HZ)(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(o.Z);function h(t){var e=[];return i.S6(f.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=i.UI(e,(function(t){return(0,s.u9)(t).main})),"dataset"!==t&&i.cq(e,"dataset")<=0&&e.unshift("dataset"),e}(0,s.pw)(f,o.Z),(0,s.au)(f),a.cj(f),a.jS(f,h),e.Z=/^(539|826)$/.test(n.j)?f:null},85632:function(t,e,n){"use strict";n.d(e,{Z:function(){return x}});var r=n(59979),i=n(6990),o=n(26314),a=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],s=(0,o.Z)(a),u=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return s(this,t,e)},t}(),l=n(19552),c=n(49386),f=["textStyle","color"],h=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],d=new c.ZP,p=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(f):null)},t.prototype.getFont=function(){return(0,l.qT)({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<h.length;n++)e[h[n]]=this.getShallow(h[n]);return d.useStyle(e),d.update(),d.getBoundingRect()},t}(),g=p,v=n(61599),m=n(63918),y=n(95797),b=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){(0,y.TS)(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,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t((0,y.d9)(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(!r.Z.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;r++)if(t[r]&&(n=n&&"object"===typeof n?n[t[r]]:null,null==n))break;return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();(0,i.dm)(b),(0,i.Qj)(b),(0,y.jB)(b,v.K),(0,y.jB)(b,m.D),(0,y.jB)(b,u),(0,y.jB)(b,g);var x=b},84895:function(t,e,n){"use strict";n.d(e,{V:function(){return C},Z:function(){return j}});var r=n(18299),i=n(95797),o=n(59979),a=n(38496),s=n(13350),u=n(25650),l=n(4735),c=n(16457),f=n(17787),h=n(6990),d=n(26214),p=n(86594),g=n(45452),v=n(19874),m=n(18517),y=n(29221),b=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(),o=!!r.length;if(x(n)){var a=n,s=void 0,u=void 0,l=void 0;if(o){var c=r[0];c.prepareSource(),l=c.getSource(),s=l.data,u=l.sourceFormat,e=[c._getVersionSign()]}else s=a.get("data",!0),u=(0,i.fU)(s)?p.J5:p.cy,e=[];var f=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},g=(0,i.pD)(f.seriesLayoutBy,h.seriesLayoutBy)||null,v=(0,i.pD)(f.sourceHeader,h.sourceHeader),m=(0,i.pD)(f.dimensions,h.dimensions),y=g!==h.seriesLayoutBy||!!v!==!!h.sourceHeader||m;t=y?[(0,d._P)(s,{seriesLayoutBy:g,sourceHeader:v,dimensions:m},u)]:[]}else{var b=n;if(o){var _=this._applyTransform(r);t=_.sourceList,e=_.upstreamSignList}else{var w=b.get("source",!0);t=[(0,d._P)(w,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),o=n.get("fromTransformResult",!0);if(null!=o){var a="";1!==t.length&&_(a)}var s=[],u=[];return(0,i.S6)(t,(function(t){t.prepareSource();var e=t.getSource(o||0),n="";null==o||e||_(n),s.push(e),u.push(t._getVersionSign())})),r?e=(0,v.vK)(r,s,{datasetIndex:n.componentIndex}):null!=o&&(e=[(0,d.ML)(s[0])]),{sourceList:e,upstreamSignList:u}},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=0,i=this._storeList,o=i[r];o||(o=i[r]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];x(this._sourceHost)&&s?a=s._innerGetDataStore(t,e,n):(a=new m.ZP,a.initData(new y.Pl(e,t.length),t)),o[n]=a}return a},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(x(t)){var e=(0,g.Wd)(t);return e?[e.getSourceManager()]:[]}return(0,i.UI)((0,g.JT)(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(x(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 x(t){return"series"===t.mainType}function _(t){throw new Error(t)}var w=n(43803);function S(t){var e,n,r,o,s=t.series,u=t.dataIndex,l=t.multipleSeries,c=s.getData(),f=c.mapDimensionsAll("defaultedTooltip"),h=f.length,d=s.getRawValue(u),p=(0,i.kJ)(d),g=(0,w.jT)(s,u);if(h>1||p&&!h){var v=E(d,s,u,f,g);e=v.inlineValues,n=v.inlineValueTypes,r=v.blocks,o=v.inlineValues[0]}else if(h){var m=c.getDimensionInfo(f[0]);o=e=(0,y.hk)(c,u,f[0]),n=m.type}else o=e=p?d[0]:d;var b=(0,a.yu)(s),x=b&&s.name||"",_=c.getName(u),S=l?x:_;return(0,w.TX)("section",{header:x,noHeader:l||!b,sortParam:o,blocks:[(0,w.TX)("nameValue",{markerType:"item",markerColor:g,name:S,noName:!(0,i.fy)(S),value:e,valueType:n,dataIndex:u})].concat(r||[])})}function E(t,e,n,r,o){var a=e.getData(),s=(0,i.u4)(t,(function(t,e,n){var r=a.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),u=[],l=[],c=[];function f(t,e){var n=a.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(s?c.push((0,w.TX)("nameValue",{markerType:"subItem",markerColor:o,name:n.displayName,value:t,valueType:n.type})):(u.push(t),l.push(n.type)))}return r.length?(0,i.S6)(r,(function(t){f((0,y.hk)(a,n,t),t)})):(0,i.S6)(t,f),{inlineValues:u,inlineValueTypes:l,blocks:c}}var T=a.Yf();function k(t,e){return t.getName(e)||t.getId(e)}var C="__universalTransitionEnabled",M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return(0,r.ZT)(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=(0,f.v)({count:O,reset:D}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=T(this).sourceManager=new b(this);r.prepareSource();var i=this.getInitialData(t,n);L(i,this),this.dataTask.context.data=i,T(this).dataBeforeProcessed=i,A(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,c.YD)(this),r=n?(0,c.tE)(t):{},o=this.subType;s.Z.hasClass(o)&&(o+="Series"),i.TS(t,e.getTheme().get(this.subType)),i.TS(t,this.getDefaultOption()),a.Cc(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&(0,c.dt)(t,r,n)},e.prototype.mergeOption=function(t,e){t=i.TS(this.option,t,!0),this.fillDataTextStyle(t.data);var n=(0,c.YD)(this);n&&(0,c.dt)(this.option,t,n);var r=T(this).sourceManager;r.dirty(),r.prepareSource();var o=this.getInitialData(t,e);L(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,T(this).dataBeforeProcessed=o,A(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!i.fU(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&a.Cc(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=R(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return T(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=R(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}T(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return i.kW(t)},e.prototype.getSourceManager=function(){return T(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return T(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"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 S({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(o.Z.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=u._.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=t[o],s=k(i,a);n[s]=!1,this._selectedDataIndicesMap[s]=-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=i.XP(t),n=[],r=0;r<e.length;r++){var o=t[e[r]];o>=0&&n.push(o)}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[k(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[C])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,o=this.option,a=o.selectedMode,s=e.length;if(a&&s)if("series"===a)o.selectedMap="all";else if("multiple"===a){i.Kn(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,l=0;l<s;l++){var c=e[l],f=k(t,c);u[f]=!0,this._selectedDataIndicesMap[f]=t.getRawIndex(c)}}else if("single"===a||!0===a){var h=e[s-1];f=k(t,h);o.selectedMap=(n={},n[f]=!0,n),this._selectedDataIndicesMap=(r={},r[f]=t.getRawIndex(h),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 s.Z.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(s.Z);function A(t){var e=t.name;a.yu(t)||(t.name=I(t)||e)}function I(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return i.S6(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}function O(t){return t.model.getRawData().count()}function D(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),P}function P(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function L(t,e){i.S6(i.WW(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,i.WA(N,e))}))}function N(t,e){var n=R(t);return n&&n.setOutputEnd((e||this).count()),e}function R(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}}i.jB(M,l.X),i.jB(M,u._),(0,h.pw)(M,s.Z);var j=M},4735:function(t,e,n){"use strict";n.d(e,{X:function(){return s},f:function(){return u}});var r=n(95797),i=n(29221),o=n(41054),a=/\{@(.+?)\}/g,s=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"),u=s&&s[n.getItemVisual(t,"drawType")||"fill"],l=s&&s.stroke,c=this.mainType,f="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:u,borderColor:l,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,s,u,l){e=e||"normal";var c=this.getData(n),f=this.getDataParams(t,n);if(l&&(f.value=l.interpolatedValue),null!=s&&r.kJ(f.value)&&(f.value=f.value[s]),!u){var h=c.getItemModel(t);u=h.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(r.mf(u))return f.status=e,f.dimensionIndex=s,u(f);if(r.HD(u)){var d=(0,o.kF)(u,f);return d.replace(a,(function(e,n){var o=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(o-1)&&(a=+a.slice(1,o-1));var s=(0,i.hk)(c,t,a);if(l&&r.kJ(l.interpolatedValue)){var u=c.getDimensionIndex(a);u>=0&&(s=l.interpolatedValue[u])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return(0,i.hk)(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function u(t){var e,n;return r.Kn(t)?t.type&&(n=t):e=t,{text:e,frag:n}}},63918:function(t,e,n){"use strict";n.d(e,{D:function(){return a},t:function(){return i}});var r=n(26314),i=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o=(0,r.Z)(i),a=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return o(this,t,e)},t}()},61599:function(t,e,n){"use strict";n.d(e,{K:function(){return a},v:function(){return i}});var r=n(26314),i=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o=(0,r.Z)(i),a=function(){function t(){}return t.prototype.getLineStyle=function(t){return o(this,t)},t}()},26314:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(95797);function i(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,i,o){for(var a={},s=0;s<t.length;s++){var u=t[s][1];if(!(i&&r.cq(i,u)>=0||o&&r.cq(o,u)<0)){var l=n.getShallow(u,e);null!=l&&(a[t[s][0]]=l)}}return a}}},25650:function(t,e,n){"use strict";n.d(e,{_:function(){return a},i:function(){return s}});var r=n(38496),i=(0,r.Yf)(),o=(0,r.Yf)(),a=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var o=(0,r.kF)(this.get("color",!0)),a=this.get("colorLayer",!0);return l(this,i,o,a,t,e,n)},t.prototype.clearColorPalette=function(){c(this,i)},t}();function s(t,e,n,i){var a=(0,r.kF)(t.get(["aria","decal","decals"]));return l(t,o,a,null,e,n,i)}function u(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function l(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var f=null!=a&&r?u(r,a):n;if(f=f||n,f&&f.length){var h=f[l];return i&&(c[i]=h),s.paletteIdx=(l+1)%f.length,h}}function c(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}},24427:function(t,e,n){"use strict";n.d(e,{b:function(){return a}});var r=n(95797),i=n(38496),o=function(){function t(t){this.coordSysDims=[],this.axisMap=(0,r.kW)(),this.categoryAxisMap=(0,r.kW)(),this.coordSysName=t}return t}();function a(t){var e=t.get("coordinateSystem"),n=new o(e),r=s[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var s={cartesian2d:function(t,e,n,r){var o=t.getReferringComponents("xAxis",i.C6).models[0],a=t.getReferringComponents("yAxis",i.C6).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",a),u(o)&&(r.set("x",o),e.firstCategoryDimIndex=0),u(a)&&(r.set("y",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var o=t.getReferringComponents("singleAxis",i.C6).models[0];e.coordSysDims=["single"],n.set("single",o),u(o)&&(r.set("single",o),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var o=t.getReferringComponents("polar",i.C6).models[0],a=o.findAxisModel("radiusAxis"),s=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",s),u(a)&&(r.set("radius",a),e.firstCategoryDimIndex=0),u(s)&&(r.set("angle",s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var o=t.ecModel,a=o.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=a.dimensions.slice();(0,r.S6)(a.parallelAxisIndex,(function(t,r){var a=o.getComponent("parallelAxis",t),l=s[r];n.set(l,a),u(a)&&(i.set(l,a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=r))}))}};function u(t){return"category"===t.get("type")}},6463:function(t,e,n){"use strict";n.d(e,{Z:function(){return v}});var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(38496);var o=r.S6,a=r.Kn,s=/^(539|826)$/.test(n.j)?["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"]:null;function u(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=s.length;n<i;n++){var o=s[n],a=e.normal,u=e.emphasis;a&&a[o]&&(t[o]=t[o]||{},t[o].normal?r.TS(t[o].normal,a[o]):t[o].normal=a[o],a[o]=null),u&&u[o]&&(t[o]=t[o]||{},t[o].emphasis?r.TS(t[o].emphasis,u[o]):t[o].emphasis=u[o],u[o]=null)}}function l(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,o=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,r.ce(t[e],i)):t[e]=i),o&&(t.emphasis=t.emphasis||{},t.emphasis[e]=o,o.focus&&(t.emphasis.focus=o.focus),o.blurScope&&(t.emphasis.blurScope=o.blurScope))}}function c(t){l(t,"itemStyle"),l(t,"lineStyle"),l(t,"areaStyle"),l(t,"label"),l(t,"labelLine"),l(t,"upperLabel"),l(t,"edgeLabel")}function f(t,e){var n=a(t)&&t[e],r=a(n)&&n.textStyle;if(r){0;for(var o=0,s=i.Td.length;o<s;o++){var u=i.Td[o];r.hasOwnProperty(u)&&(n[u]=r[u])}}}function h(t){t&&(c(t),f(t,"label"),t.emphasis&&f(t.emphasis,"label"))}function d(t){if(a(t)){u(t),c(t),f(t,"label"),f(t,"upperLabel"),f(t,"edgeLabel"),t.emphasis&&(f(t.emphasis,"label"),f(t.emphasis,"upperLabel"),f(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(u(e),h(e));var n=t.markLine;n&&(u(n),h(n));var i=t.markArea;i&&h(i);var o=t.data;if("graph"===t.type){o=o||t.nodes;var s=t.links||t.edges;if(s&&!r.fU(s))for(var d=0;d<s.length;d++)h(s[d]);r.S6(t.categories,(function(t){c(t)}))}if(o&&!r.fU(o))for(d=0;d<o.length;d++)h(o[d]);if(e=t.markPoint,e&&e.data){var p=e.data;for(d=0;d<p.length;d++)h(p[d])}if(n=t.markLine,n&&n.data){var g=n.data;for(d=0;d<g.length;d++)r.kJ(g[d])?(h(g[d][0]),h(g[d][1])):h(g[d])}"gauge"===t.type?(f(t,"axisLabel"),f(t,"title"),f(t,"detail")):"treemap"===t.type?(l(t.breadcrumb,"itemStyle"),r.S6(t.levels,(function(t){c(t)}))):"tree"===t.type&&c(t.leaves)}}function p(t){return r.kJ(t)?t:t?[t]:[]}function g(t){return(r.kJ(t)?t[0]:t)||{}}function v(t,e){o(p(t.series),(function(t){a(t)&&d(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),o(n,(function(e){o(p(t[e]),(function(t){t&&(f(t,"axisLabel"),f(t.axisPointer,"label"))}))})),o(p(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;f(e,"axisLabel"),f(e&&e.axisPointer,"label")})),o(p(t.calendar),(function(t){l(t,"itemStyle"),f(t,"dayLabel"),f(t,"monthLabel"),f(t,"yearLabel")})),o(p(t.radar),(function(t){f(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)})),o(p(t.geo),(function(t){a(t)&&(h(t),o(p(t.regions),(function(t){h(t)})))})),o(p(t.timeline),(function(t){h(t),l(t,"label"),l(t,"itemStyle"),l(t,"controlStyle",!0);var e=t.data;r.kJ(e)&&r.S6(e,(function(t){r.Kn(t)&&(l(t,"label"),l(t,"itemStyle"))}))})),o(p(t.toolbox),(function(t){l(t,"iconStyle"),o(t.feature,(function(t){l(t,"iconStyle")}))})),f(g(t.axisPointer),"label"),f(g(t.tooltip).axisPointer,"label")}},51124:function(t,e,n){"use strict";function r(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}))}}}}n.d(e,{Z:function(){return r}})},74530:function(t,e,n){"use strict";if(n.d(e,{N:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(14168);function i(t){t.registerPainter("canvas",r.Z)}},28584:function(t,e,n){"use strict";var r=n(18299),i=n(41201),o=n(41054),a=n(85558),s=n(89583),u=i.NM,l=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(0,r.ZT)(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return s.XS(t,this._extent)},e.prototype.normalize=function(t){return s.Fv(t,this._extent)},e.prototype.scale=function(t){return s.bA(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=s.lb(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]<r[0]&&(t?o.push({value:u(r[0]-e,i)}):o.push({value:n[0]}));var s=r[0];while(s<=r[1]){if(o.push({value:s}),s=u(s+e,i),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(t?o.push({value:u(l+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++){var o=e[i],a=e[i-1],s=0,l=[],c=o.value-a.value,f=c/t;while(s<t-1){var h=u(a.value+(s+1)*f);h>r[0]&&h<r[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=i.p8(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=u(t.value,n,!0);return o.OD(r)},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=s.Qf(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[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]=u(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=u(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(a.Z);a.Z.registerClass(l),e.Z=/^(539|826)$/.test(n.j)?l:null},19764:function(t,e,n){"use strict";var r=n(18299),i=n(95797),o=n(85558),a=n(41201),s=n(89583),u=n(28584),l=o.Z.prototype,c=u.Z.prototype,f=a.NM,h=Math.floor,d=Math.ceil,p=Math.pow,g=Math.log,v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new u.Z,e._interval=0,e}return(0,r.ZT)(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),o=c.getTicks.call(this,t);return i.UI(o,(function(t){var e=t.value,i=a.NM(p(this.base,e));return i=e===n[0]&&this._fixMin?y(i,r[0]):i,i=e===n[1]&&this._fixMax?y(i,r[1]):i,{value:i}}),this)},e.prototype.setExtent=function(t,e){var n=g(this.base);t=g(Math.max(0,t))/n,e=g(Math.max(0,e))/n,c.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=l.getExtent.call(this);e[0]=p(t,e[0]),e[1]=p(t,e[1]);var n=this._originalScale,r=n.getExtent();return this._fixMin&&(e[0]=y(e[0],r[0])),this._fixMax&&(e[1]=y(e[1],r[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=g(t[0])/g(e),t[1]=g(t[1])/g(e),l.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=a.Xd(n),i=t/n*r;i<=.5&&(r*=10);while(!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0)r*=10;var o=[a.NM(d(e[0]/r)*r),a.NM(h(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){c.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 t=g(t)/g(this.base),s.XS(t,this._extent)},e.prototype.normalize=function(t){return t=g(t)/g(this.base),s.Fv(t,this._extent)},e.prototype.scale=function(t){return t=s.bA(t,this._extent),p(this.base,t)},e.type="log",e}(o.Z),m=v.prototype;function y(t,e){return f(t,a.p8(e))}m.getMinorTicks=c.getMinorTicks,m.getLabel=c.getLabel,o.Z.registerClass(v),e.Z=/^(539|826)$/.test(n.j)?v:null},5535:function(t,e,n){"use strict";var r=n(18299),i=n(85558),o=n(41021),a=n(89583),s=n(95797),u=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new o.Z({})),(0,s.kJ)(r)&&(r=new o.Z({categories:(0,s.UI)(r,(function(t){return(0,s.Kn)(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return(0,r.ZT)(e,t),e.prototype.parse=function(t){return null==t?NaN:(0,s.HD)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),a.XS(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),a.Fv(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(a.bA(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(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 u=0;i<o;++i){while(null!=r[u])u++;n.push(u),r[u]=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}(i.Z);i.Z.registerClass(u),e.Z=/^(539|826)$/.test(n.j)?u:null},85558:function(t,e,n){"use strict";var r=n(6990),i=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}();r.au(i),e.Z=/^(539|826)$/.test(n.j)?i:null},1678:function(t,e,n){"use strict";var r=n(18299),i=n(41201),o=n(31360),a=n(89583),s=n(28584),u=n(85558),l=n(95797),c=function(t,e,n,r){while(n<r){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n},f=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return(0,r.ZT)(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return(0,o.WU)(t.value,o.V8[(0,o.xC)((0,o.Tj)(this._minLevelUnit))]||o.V8.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return(0,o.k7)(t,e,n,i,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=x(this._minLevelUnit,this._approxInterval,r,e);return n=n.concat(i),n.push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=o.s2,e[1]+=o.s2),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]-o.s2}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=h.length,a=Math.min(c(h,this._approxInterval,0,o),o-1);this._interval=h[a][1],this._minLevelUnit=h[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return(0,l.hj)(t)?t:+i.sG(t)},e.prototype.contain=function(t){return a.XS(this.parse(t),this._extent)},e.prototype.normalize=function(t){return a.Fv(this.parse(t),this._extent)},e.prototype.scale=function(t){return a.bA(t,this._extent)},e.type="time",e}(s.Z),h=[["second",o.WT],["minute",o.yR],["hour",o.dV],["quarter-day",6*o.dV],["half-day",12*o.dV],["day",1.2*o.s2],["half-week",3.5*o.s2],["week",7*o.s2],["month",31*o.s2],["quarter",95*o.s2],["half-year",o.P5/2],["year",o.P5]];function d(t,e,n,r){var a=i.sG(e),s=i.sG(n),u=function(t){return(0,o.q5)(a,t,r)===(0,o.q5)(s,t,r)},l=function(){return u("year")},c=function(){return l()&&u("month")},f=function(){return c()&&u("day")},h=function(){return f()&&u("hour")},d=function(){return h()&&u("minute")},p=function(){return d()&&u("second")},g=function(){return p()&&u("millisecond")};switch(t){case"year":return l();case"month":return c();case"day":return f();case"hour":return h();case"minute":return d();case"second":return p();case"millisecond":return g()}}function p(t,e){return t/=o.s2,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function g(t){var e=30*o.s2;return t/=e,t>6?6:t>3?3:t>2?2:1}function v(t){return t/=o.dV,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function m(t,e){return t/=e?o.yR:o.WT,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function y(t){return i.kx(t,!0)}function b(t,e,n){var r=new Date(t);switch((0,o.Tj)(e)){case"year":case"month":r[(0,o.vh)(n)](0);case"day":r[(0,o.f5)(n)](1);case"hour":r[(0,o.En)(n)](0);case"minute":r[(0,o.eN)(n)](0);case"second":r[(0,o.rM)(n)](0),r[(0,o.cb)(n)](0)}return r.getTime()}function x(t,e,n,r){var i=1e4,a=o.FW,s=0;function u(t,e,n,i,o,a,s){var u=new Date(e),l=e,c=u[i]();while(l<n&&l<=r[1])s.push({value:l}),c+=t,u[o](c),l=u.getTime();s.push({value:l,notAdd:!0})}function c(t,i,a){var s=[],l=!i.length;if(!d((0,o.Tj)(t),r[0],r[1],n)){l&&(i=[{value:b(new Date(r[0]),t,n)},{value:r[1]}]);for(var c=0;c<i.length-1;c++){var f=i[c].value,h=i[c+1].value;if(f!==h){var x=void 0,_=void 0,w=void 0,S=!1;switch(t){case"year":x=Math.max(1,Math.round(e/o.s2/365)),_=(0,o.sx)(n),w=(0,o.xL)(n);break;case"half-year":case"quarter":case"month":x=g(e),_=(0,o.CW)(n),w=(0,o.vh)(n);break;case"week":case"half-week":case"day":x=p(e,31),_=(0,o.xz)(n),w=(0,o.f5)(n),S=!0;break;case"half-day":case"quarter-day":case"hour":x=v(e),_=(0,o.Wp)(n),w=(0,o.En)(n);break;case"minute":x=m(e,!0),_=(0,o.fn)(n),w=(0,o.eN)(n);break;case"second":x=m(e,!1),_=(0,o.MV)(n),w=(0,o.rM)(n);break;case"millisecond":x=y(e),_=(0,o.RZ)(n),w=(0,o.cb)(n);break}u(x,f,h,_,w,S,s),"year"===t&&a.length>1&&0===c&&a.unshift({value:a[0].value-x})}}for(c=0;c<s.length;c++)a.push(s[c]);return s}}for(var f=[],h=[],x=0,_=0,w=0;w<a.length&&s++<i;++w){var S=(0,o.Tj)(a[w]);if((0,o.$K)(a[w])){c(a[w],f[f.length-1]||[],h);var E=a[w+1]?(0,o.Tj)(a[w+1]):null;if(S!==E){if(h.length){_=x,h.sort((function(t,e){return t.value-e.value}));for(var T=[],k=0;k<h.length;++k){var C=h[k].value;0!==k&&h[k-1].value===C||(T.push(h[k]),C>=r[0]&&C<=r[1]&&x++)}var M=(r[1]-r[0])/e;if(x>1.5*M&&_>M/1.5)break;if(f.push(T),x>M||t===a[w])break}h=[]}}}var A=(0,l.hX)((0,l.UI)(f,(function(t){return(0,l.hX)(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),I=[],O=A.length-1;for(w=0;w<A.length;++w)for(var D=A[w],P=0;P<D.length;++P)I.push({value:D[P].value,level:O-w});I.sort((function(t,e){return t.value-e.value}));var L=[];for(w=0;w<I.length;++w)0!==w&&I[w].value===I[w-1].value||L.push(I[w]);return L}u.Z.registerClass(f),e.Z=/^(539|826)$/.test(n.j)?f:null},89583:function(t,e,n){"use strict";if(n.d(e,{Fv:function(){return f},Qf:function(){return o},XS:function(){return c},bA:function(){return h},lM:function(){return i},lb:function(){return s},r1:function(){return a}}),/^(539|826)$/.test(n.j))var r=n(41201);function i(t){return"interval"===t.type||"log"===t.type}function o(t,e,n,i){var o={},a=t[1]-t[0],u=o.interval=(0,r.kx)(a/e,!0);null!=n&&u<n&&(u=o.interval=n),null!=i&&u>i&&(u=o.interval=i);var c=o.intervalPrecision=s(u),f=o.niceTickExtent=[(0,r.NM)(Math.ceil(t[0]/u)*u,c),(0,r.NM)(Math.floor(t[1]/u)*u,c)];return l(f,t),o}function a(t){var e=Math.pow(10,(0,r.xW)(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,(0,r.NM)(n*e)}function s(t){return(0,r.p8)(t)+2}function u(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function l(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),u(t,0,e),u(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function c(t,e){return t>=e[0]&&t<=e[1]}function f(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function h(t,e){return t*(e[1]-e[0])+e[0]}},6990:function(t,e,n){"use strict";if(n.d(e,{PT:function(){return c},Qj:function(){return g},au:function(){return y},dm:function(){return f},pw:function(){return d},u9:function(){return u}}),/^(539|826)$/.test(n.j))var r=n(18299);if(/^(539|826)$/.test(n.j))var i=n(95797);var o=".",a="___EC__COMPONENT__CONTAINER___",s="___EC__EXTENDED_CLASS___";function u(t){var e={main:"",sub:""};if(t){var n=t.split(o);e.main=n[0]||"",e.sub=n[1]||""}return e}function l(t){i.hu(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function c(t){return!(!t||!t[s])}function f(t,e){t.$constructor=t,t.extend=function(t){var e,n=this;return h(n)?e=function(t){function e(){return t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e}(n):(e=function(){(t.$constructor||n).apply(this,arguments)},i.XW(e,this)),i.l7(e.prototype,t),e[s]=!0,e.extend=this.extend,e.superCall=v,e.superApply=m,e.superClass=n,e}}function h(t){return i.mf(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function d(t,e){t.extend=e.extend}var p=Math.round(10*Math.random());function g(t){var e=["__\0is_clz",p++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function v(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 m(t,e,n){return this.superClass.prototype[e].apply(t,n)}function y(t){var e={};function n(t){var n=e[t.main];return n&&n[a]||(n=e[t.main]={},n[a]=!0),n}t.registerClass=function(t){var r=t.type||t.prototype.type;if(r){l(r),t.prototype.type=r;var i=u(r);if(i.sub){if(i.sub!==a){var o=n(i);o[i.sub]=t}}else e[i.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[a]&&(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=u(t),r=[],o=e[n.main];return o&&o[a]?i.S6(o,(function(t,e){e!==a&&r.push(t)})):r.push(o),r},t.hasClass=function(t){var n=u(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return i.S6(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=u(t),r=e[n.main];return r&&r[a]}}},40259:function(t,e,n){"use strict";if(n.d(e,{Kr:function(){return a},ZL:function(){return l},cj:function(){return s},jS:function(){return u}}),/^(539|826)$/.test(n.j))var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(6990);var o=Math.round(10*Math.random());function a(t){return[t||"",o++].join("_")}function s(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=(0,i.u9)(t);e[r.main]=n},t.determineSubType=function(n,r){var o=r.type;if(!o){var a=(0,i.u9)(n).main;t.hasSubTypes(n)&&e[a]&&(o=e[a](r))}return o}}function u(t,e){function n(t){var n={},a=[];return r.S6(t,(function(s){var u=i(n,s),l=u.originalDeps=e(s),c=o(l,t);u.entryCount=c.length,0===u.entryCount&&a.push(s),r.S6(c,(function(t){r.cq(u.predecessor,t)<0&&u.predecessor.push(t);var e=i(n,t);r.cq(e.successor,t)<0&&e.successor.push(s)}))})),{graph:n,noEntryList:a}}function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function o(t,e){var n=[];return r.S6(t,(function(t){r.cq(e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,i,o){if(t.length){var a=n(e),s=a.graph,u=a.noEntryList,l={};r.S6(t,(function(t){l[t]=!0}));while(u.length){var c=u.pop(),f=s[c],h=!!l[c];h&&(i.call(o,c,f.originalDeps.slice()),delete l[c]),r.S6(f.successor,h?p:d)}r.S6(l,(function(){var t="";throw new Error(t)}))}function d(t){s[t].entryCount--,0===s[t].entryCount&&u.push(t)}function p(t){l[t]=!0,d(t)}}}function l(t,e){return r.TS(r.TS({},t,!0),e,!0)}},4258:function(t,e,n){"use strict";n.d(e,{I:function(){return v}});var r=Math.round(9*Math.random()),i="function"===typeof Object.defineProperty,o=function(){function t(){this._id="__ec_inner_"+r++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return i?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}(),a=o,s=n(86634),u=n(95797),l=n(41201),c=n(86741),f=n(80943),h=n(9886),d=new a,p=new s.ZP(100),g=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function v(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&d["delete"](t);var o=d.get(t);if(o)return o;var a=(0,u.ce)(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 v(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,d.set(t,s),t.dirty=!1,s;function v(t){for(var e,o=[n],s=!0,d=0;d<g.length;++d){var v=a[g[d]];if(null!=v&&!(0,u.kJ)(v)&&!(0,u.HD)(v)&&!(0,u.hj)(v)&&"boolean"!==typeof v){s=!1;break}o.push(v)}if(s){e=o.join(",")+(i?"-svg":"");var w=p.get(e);w&&(i?t.svgElement=w:t.image=w)}var S,E=y(a.dashArrayX),T=b(a.dashArrayY),k=m(a.symbol),C=x(E),M=_(T),A=!i&&h.qW.createCanvas(),I=i&&{tag:"g",attrs:{},key:"dcl",children:[]},O=D();function D(){for(var t=1,e=0,n=C.length;e<n;++e)t=(0,l.nl)(t,C[e]);var r=1;for(e=0,n=k.length;e<n;++e)r=(0,l.nl)(r,k[e].length);t*=r;var i=M*C.length*k.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}function P(){S&&(S.clearRect(0,0,A.width,A.height),a.backgroundColor&&(S.fillStyle=a.backgroundColor,S.fillRect(0,0,A.width,A.height)));for(var t=0,e=0;e<T.length;++e)t+=T[e];if(!(t<=0)){var o=-M,s=0,u=0,l=0;while(o<O.height){if(s%2===0){var h=u/2%k.length,d=0,p=0,g=0;while(d<2*O.width){var v=0;for(e=0;e<E[l].length;++e)v+=E[l][e];if(v<=0)break;if(p%2===0){var m=.5*(1-a.symbolSize),y=d+E[l][p]*m,b=o+T[s]*m,x=E[l][p]*a.symbolSize,_=T[s]*a.symbolSize,w=g/2%k[h].length;C(y,b,x,_,k[h][w])}d+=E[l][p],++g,++p,p===E[l].length&&(p=0)}++l,l===E.length&&(l=0)}o+=T[s],++u,++s,s===T.length&&(s=0)}}function C(t,e,o,s,u){var l=i?1:n,h=(0,c.th)(u,t*l,e*l,o*l,s*l,a.color,a.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(h);d&&I.children.push(d)}else(0,f.RV)(S,h)}}A&&(A.width=O.width*n,A.height=O.height*n,S=A.getContext("2d")),P(),s&&p.put(e,A||I),t.image=A,t.svgElement=I,t.svgWidth=O.width,t.svgHeight=O.height}}function m(t){if(!t||0===t.length)return[["rect"]];if((0,u.HD)(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!(0,u.HD)(t[n])){e=!1;break}if(e)return m([t]);var r=[];for(n=0;n<t.length;++n)(0,u.HD)(t[n])?r.push([t[n]]):r.push(t[n]);return r}function y(t){if(!t||0===t.length)return[[0,0]];if((0,u.hj)(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!(0,u.hj)(t[r])){n=!1;break}if(n)return y([t]);var i=[];for(r=0;r<t.length;++r)if((0,u.hj)(t[r])){e=Math.ceil(t[r]);i.push([e,e])}else{e=(0,u.UI)(t[r],(function(t){return Math.ceil(t)}));e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function b(t){if(!t||"object"===typeof t&&0===t.length)return[0,0];if((0,u.hj)(t)){var e=Math.ceil(t);return[e,e]}var n=(0,u.UI)(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}function x(t){return(0,u.UI)(t,(function(t){return _(t)}))}function _(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}},78834:function(t,e,n){"use strict";function r(t,e,n){var r;while(t){if(e(t)&&(r=t,n))break;t=t.__hostTarget||t.parent}return r}n.d(e,{o:function(){return r}})},41054:function(t,e,n){"use strict";n.d(e,{A0:function(){return p},Lz:function(){return g},MI:function(){return v},MY:function(){return l},OD:function(){return s},kF:function(){return d},uX:function(){return c},zW:function(){return u}});var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(27311);if(/^(539|826)$/.test(n.j))var o=n(41201);if(/^(539|826)$/.test(n.j))var a=n(31360);function s(t){if(!(0,o.kE)(t))return r.HD(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function u(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 l=r.MY;function c(t,e,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function u(t){return t&&r.fy(t)?t:"-"}function l(t){return!(null==t||isNaN(t)||!isFinite(t))}var c="time"===e,f=t instanceof Date;if(c||f){var h=c?(0,o.sG)(t):t;if(!isNaN(+h))return(0,a.WU)(h,i,n);if(f)return"-"}if("ordinal"===e)return r.cd(t)?u(t):r.hj(t)&&l(t)?t+"":"-";var d=(0,o.FK)(t);return l(d)?s(d):r.cd(t)?u(t):"boolean"===typeof t?t+"":"-"}var f=/^(539|826)$/.test(n.j)?["a","b","c","d","e","f","g"]:null,h=function(t,e){return"{"+t+(null==e?"":e)+"}"};function d(t,e,n){r.kJ(e)||(e=[e]);var o=e.length;if(!o)return"";for(var a=e[0].$vars||[],s=0;s<a.length;s++){var u=f[s];t=t.replace(h(u),h(u,0))}for(var l=0;l<o;l++)for(var c=0;c<a.length;c++){var d=e[l][a[c]];t=t.replace(h(f[c],l),n?(0,i.F1)(d):d)}return t}function p(t,e){var n=r.HD(t)?{color:t,extraCssText:e}:t||{},o=n.color,a=n.type;e=n.extraCssText;var s=n.renderMode||"html";if(!o)return"";if("html"===s)return"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+(0,i.F1)(o)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+(0,i.F1)(o)+";"+(e||"")+'"></span>';var u=n.markerId||"markerX";return{renderMode:s,content:"{"+u+"|}  ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}}function g(t,e){return e=e||"transparent",r.HD(t)?t:r.Kn(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function v(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}},22995:function(t,e,n){"use strict";n.r(e),n.d(e,{Arc:function(){return I.Z},BezierCurve:function(){return A},BoundingRect:function(){return L.Z},Circle:function(){return f.Z},CompoundPath:function(){return O.Z},Ellipse:function(){return g},Group:function(){return l.Z},Image:function(){return u.ZP},IncrementalDisplayable:function(){return j.Z},Line:function(){return S.Z},LinearGradient:function(){return D.Z},OrientedBoundingRect:function(){return N.Z},Path:function(){return a.ZP},Point:function(){return R.Z},Polygon:function(){return x.Z},Polyline:function(){return _.Z},RadialGradient:function(){return P.Z},Rect:function(){return w.Z},Ring:function(){return b},Sector:function(){return v.C},Text:function(){return c.ZP},applyTransform:function(){return ot},clipPointsByRect:function(){return ct},clipRectByRect:function(){return ft},createIcon:function(){return ht},extendPath:function(){return V},extendShape:function(){return G},getShapeClass:function(){return X},getTransform:function(){return it},groupTransition:function(){return lt},initProps:function(){return Z.KZ},isElementRemoved:function(){return Z.eq},lineLineIntersect:function(){return pt},linePolygonIntersect:function(){return dt},makeImage:function(){return K},makePath:function(){return q},mergePath:function(){return Q},registerShape:function(){return Y},removeElement:function(){return Z.bX},removeElementWithFadeOut:function(){return Z.XD},resizePath:function(){return tt},setTooltipConfig:function(){return mt},subPixelOptimize:function(){return rt},subPixelOptimizeLine:function(){return et},subPixelOptimizeRect:function(){return nt},transformDirection:function(){return at},traverseElements:function(){return bt},updateProps:function(){return Z.D}});var r=n(27473),i=n(66012),o=n(15468),a=n(23256),s=n(87184),u=n(12222),l=n(3082),c=n(49386),f=n(79001),h=n(4311),d=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),p=function(t){function e(e){return t.call(this,e)||this}return(0,h.ZT)(e,t),e.prototype.getDefaultShape=function(){return new d},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,u=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-u,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-u,r+o,i),t.bezierCurveTo(r+o,i+u,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+u,r-o,i),t.closePath()},e}(a.ZP);p.prototype.type="ellipse";var g=p,v=n(60497),m=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),y=function(t){function e(e){return t.call(this,e)||this}return(0,h.ZT)(e,t),e.prototype.getDefaultShape=function(){return new m},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}(a.ZP);y.prototype.type="ring";var b=y,x=n(86941),_=n(12484),w=n(96354),S=n(22940),E=n(3816),T=[],k=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function C(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?E.X_:E.af)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?E.X_:E.af)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?E.AZ:E.Zm)(t.x1,t.cpx1,t.x2,e),(n?E.AZ:E.Zm)(t.y1,t.cpy1,t.y2,e)]}var M=function(t){function e(e){return t.call(this,e)||this}return(0,h.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new k},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,u=e.cpx2,l=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,r),null==u||null==l?(c<1&&((0,E.Lx)(n,a,i,c,T),a=T[1],i=T[2],(0,E.Lx)(r,s,o,c,T),s=T[1],o=T[2]),t.quadraticCurveTo(a,s,i,o)):(c<1&&((0,E.Vz)(n,a,u,i,c,T),a=T[1],u=T[2],i=T[3],(0,E.Vz)(r,s,l,o,c,T),s=T[1],l=T[2],o=T[3]),t.bezierCurveTo(a,s,u,l,i,o)))},e.prototype.pointAt=function(t){return C(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=C(this.shape,t,!0);return o.Fv(e,e)},e}(a.ZP);M.prototype.type="bezier-curve";var A=M,I=n(13026),O=n(82586),D=n(60816),P=n(6870),L=n(96805),N=n(63772),R=n(11123),j=n(4331),F=n(96751),B=n(95797),z=n(75195),Z=n(51058),U=Math.max,H=Math.min,$={};function G(t){return a.ZP.extend(t)}var W=r.Pc;function V(t,e){return W(t,e)}function Y(t,e){$[t]=e}function X(t){if($.hasOwnProperty(t))return $[t]}function q(t,e,n,i){var o=r.iR(t,e);return n&&("center"===i&&(n=J(n,o.getBoundingRect())),tt(o,n)),o}function K(t,e,n){var r=new u.ZP({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(J(e,i))}}});return r}function J(t,e){var n,r=e.width/e.height,i=t.height*r;i<=t.width?n=t.height:(i=t.width,n=i/r);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-i/2,y:a-n/2,width:i,height:n}}var Q=r.AA;function tt(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function et(t,e){return F._3(t,t,{lineWidth:e}),t}function nt(t){return F.Pw(t.shape,t.shape,t.style),t}var rt=F.vu;function it(t,e){var n=i.yR([]);while(t&&t!==e)i.dC(n,t.getLocalTransform(),n),t=t.parent;return n}function ot(t,e,n){return e&&!(0,B.zG)(e)&&(e=s.ZP.getLocalTransform(e)),n&&(e=i.U_([],e)),o.Ne([],t,e)}function at(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=ot(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function st(t){return!t.isGroup}function ut(t){return null!=t.shape}function lt(t,e,n){if(t&&e){var r=i(t);e.traverse((function(t){if(st(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),(0,Z.D)(t,i,n,(0,z.A)(t).dataIndex)}}}))}function i(t){var e={};return t.traverse((function(t){st(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return ut(t)&&(e.shape=(0,B.l7)({},t.shape)),e}}function ct(t,e){return(0,B.UI)(t,(function(t){var n=t[0];n=U(n,e.x),n=H(n,e.x+e.width);var r=t[1];return r=U(r,e.y),r=H(r,e.y+e.height),[n,r]}))}function ft(t,e){var n=U(t.x,e.x),r=H(t.x+t.width,e.x+e.width),i=U(t.y,e.y),o=H(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 ht(t,e,n){var r=(0,B.l7)({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),(0,B.ce)(i,n),new u.ZP(r)):q(t.replace("path://",""),r,n,"center")}function dt(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(pt(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function pt(t,e,n,r,i,o,a,s){var u=n-t,l=r-e,c=a-i,f=s-o,h=gt(c,f,u,l);if(vt(h))return!1;var d=t-i,p=e-o,g=gt(d,p,u,l)/h;if(g<0||g>1)return!1;var v=gt(d,p,c,f)/h;return!(v<0||v>1)}function gt(t,e,n,r){return t*r-n*e}function vt(t){return t<=1e-6&&t>=-1e-6}function mt(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=(0,B.HD)(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var u=t.formatterParamsExtra;u&&(0,B.S6)((0,B.XP)(u),(function(t){(0,B.RI)(s,t)||(s[t]=u[t],s.$vars.push(t))}));var l=(0,z.A)(t.el);l.componentMainType=o,l.componentIndex=a,l.tooltipConfig={name:r,option:(0,B.ce)({content:r,formatterParams:s},i)}}function yt(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function bt(t,e){if(t)if((0,B.kJ)(t))for(var n=0;n<t.length;n++)yt(t[n],e);else yt(t,e)}Y("circle",f.Z),Y("ellipse",g),Y("sector",v.C),Y("ring",b),Y("polygon",x.Z),Y("polyline",_.Z),Y("rect",w.Z),Y("line",S.Z),Y("bezierCurve",A),Y("arc",I.Z)},75195:function(t,e,n){"use strict";n.d(e,{A:function(){return i},Q:function(){return o}});var r=n(38496),i=(0,r.Yf)(),o=function(t,e,n,r){if(r){var o=i(r);o.dataIndex=n,o.dataType=e,o.seriesIndex=t,o.ssrType="chart","group"===r.type&&r.traverse((function(r){var o=i(r);o.seriesIndex=t,o.dataIndex=n,o.dataType=e,o.ssrType="chart"}))}}},16457:function(t,e,n){"use strict";n.d(e,{BZ:function(){return f},ME:function(){return h},YD:function(){return d},dt:function(){return p},tE:function(){return g}});var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(96805);if(/^(539|826)$/.test(n.j))var o=n(41201);if(/^(539|826)$/.test(n.j))var a=n(41054);var s=r.S6,u=/^(539|826)$/.test(n.j)?["left","right","top","bottom","width","height"]:null,l=/^(539|826)$/.test(n.j)?[["width","left","right"],["height","top","bottom"]]:null;function c(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(u,l){var c,f,h=u.getBoundingRect(),d=e.childAt(l+1),p=d&&d.getBoundingRect();if("horizontal"===t){var g=h.width+(p?-p.x+h.x:0);c=o+g,c>r||u.newline?(o=0,c=g,a+=s+n,s=h.height):s=Math.max(s,h.height)}else{var v=h.height+(p?-p.y+h.y:0);f=a+v,f>i||u.newline?(o+=s+n,a=0,f=v,s=h.width):s=Math.max(s,h.width)}u.newline||(u.x=o,u.y=a,u.markRedraw(),"horizontal"===t?o=c+n:a=f+n)}))}var f=/^(539|826)$/.test(n.j)?c:null;r.WA(c,"vertical"),r.WA(c,"horizontal");function h(t,e,n){n=a.MY(n||0);var r=e.width,s=e.height,u=(0,o.GM)(t.left,r),l=(0,o.GM)(t.top,s),c=(0,o.GM)(t.right,r),f=(0,o.GM)(t.bottom,s),h=(0,o.GM)(t.width,r),d=(0,o.GM)(t.height,s),p=n[2]+n[0],g=n[1]+n[3],v=t.aspect;switch(isNaN(h)&&(h=r-c-g-u),isNaN(d)&&(d=s-f-p-l),null!=v&&(isNaN(h)&&isNaN(d)&&(v>r/s?h=.8*r:d=.8*s),isNaN(h)&&(h=v*d),isNaN(d)&&(d=h/v)),isNaN(u)&&(u=r-c-h-g),isNaN(l)&&(l=s-f-d-p),t.left||t.right){case"center":u=r/2-h/2-n[3];break;case"right":u=r-h-g;break}switch(t.top||t.bottom){case"middle":case"center":l=s/2-d/2-n[0];break;case"bottom":l=s-d-p;break}u=u||0,l=l||0,isNaN(h)&&(h=r-g-u-(c||0)),isNaN(d)&&(d=s-p-l-(f||0));var m=new i.Z(u+n[3],l+n[0],h,d);return m.margin=n,m}function d(t){var e=t.layoutMode||t.constructor.layoutMode;return r.Kn(e)?e:e?{type:e}:null}function p(t,e,n){var i=n&&n.ignoreSize;!r.kJ(i)&&(i=[i,i]);var o=u(l[0],0),a=u(l[1],1);function u(n,r){var o={},a=0,u={},l=0,h=2;if(s(n,(function(e){u[e]=t[e]})),s(n,(function(t){c(e,t)&&(o[t]=u[t]=e[t]),f(o,t)&&a++,f(u,t)&&l++})),i[r])return f(e,n[1])?u[n[2]]=null:f(e,n[2])&&(u[n[1]]=null),u;if(l!==h&&a){if(a>=h)return o;for(var d=0;d<n.length;d++){var p=n[d];if(!c(o,p)&&c(t,p)){o[p]=t[p];break}}return o}return u}function c(t,e){return t.hasOwnProperty(e)}function f(t,e){return null!=t[e]&&"auto"!==t[e]}function h(t,e,n){s(t,(function(t){e[t]=n[t]}))}h(l[0],t,o),h(l[1],t,a)}function g(t){return v({},t)}function v(t,e){return e&&t&&s(u,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}},3313:function(t,e,n){"use strict";n.d(e,{Sh:function(){return u},ZK:function(){return s},_y:function(){return l}});var r="[ECharts] ",i={},o="undefined"!==typeof console&&console.warn&&console.log;function a(t,e,n){if(o){if(n){if(i[e])return;i[e]=!0}console[t](r+e)}}function s(t,e){a("warn",t,e)}function u(t){0}function l(t){throw new Error(t)}},38496:function(t,e,n){"use strict";if(n.d(e,{C4:function(){return h},C6:function(){return P},Cc:function(){return c},Co:function(){return d},HZ:function(){return L},IL:function(){return R},O0:function(){return k},P$:function(){return N},Td:function(){return f},U5:function(){return S},U9:function(){return j},Yf:function(){return A},ab:function(){return p},gO:function(){return M},kF:function(){return l},lY:function(){return T},pk:function(){return F},pm:function(){return O},yu:function(){return E},zH:function(){return D}}),/^(539|826)$/.test(n.j))var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(59979);var o=n(41201);function a(t,e,n){return(e-t)*n+t}var s="series\0",u="\0_ec_\0";function l(t){return t instanceof Array?t:null==t?[]:[t]}function c(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 f=/^(539|826)$/.test(n.j)?["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"]:null;function h(t){return!(0,r.Kn)(t)||(0,r.kJ)(t)||t instanceof Date?t:t.value}function d(t){return(0,r.Kn)(t)&&!(t instanceof Array)}function p(t,e,n){var i="normalMerge"===n,o="replaceMerge"===n,a="replaceAll"===n;t=t||[],e=(e||[]).slice();var s=(0,r.kW)();(0,r.S6)(e,(function(t,n){(0,r.Kn)(t)||(e[n]=null)}));var u=g(t,s,n);return(i||o)&&v(u,t,s,e),i&&m(u,e),i||o?y(u,e,o):a&&b(u,e),x(u),u}function g(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||T(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function v(t,e,n,i){(0,r.S6)(i,(function(o,a){if(o&&null!=o.id){var s=w(o.id),u=n.get(s);if(null!=u){var l=t[u];(0,r.hu)(!l.newOption,'Duplicated option on id "'+s+'".'),l.newOption=o,l.existing=e[u],i[a]=null}}}))}function m(t,e){(0,r.S6)(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)&&!T(n)&&!T(o)&&_("name",o,n))return t[i].newOption=n,void(e[r]=null)}}))}function y(t,e,n){(0,r.S6)(e,(function(e){if(e){var r,i=0;while((r=t[i])&&(r.newOption||T(r.existing)||r.existing&&null!=e.id&&!_("id",e,r.existing)))i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}}))}function b(t,e){(0,r.S6)(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}function x(t){var e=(0,r.kW)();(0,r.S6)(t,(function(t){var n=t.existing;n&&e.set(n.id,t)})),(0,r.S6)(t,(function(t){var n=t.newOption;(0,r.hu)(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),(0,r.S6)(t,(function(t,n){var i=t.existing,o=t.newOption,a=t.keyInfo;if((0,r.Kn)(o)){if(a.name=null!=o.name?w(o.name):i?i.name:s+n,i)a.id=w(i.id);else if(null!=o.id)a.id=w(o.id);else{var u=0;do{a.id="\0"+a.name+"\0"+u++}while(e.get(a.id))}e.set(a.id,t)}}))}function _(t,e,n){var r=S(e[t],null),i=S(n[t],null);return null!=r&&null!=i&&r===i}function w(t){return S(t,"")}function S(t,e){return null==t?e:(0,r.HD)(t)?t:(0,r.hj)(t)||(0,r.cd)(t)?t+"":e}function E(t){var e=t.name;return!(!e||!e.indexOf(s))}function T(t){return t&&null!=t.id&&0===w(t.id).indexOf(u)}function k(t,e,n){(0,r.S6)(t,(function(t){var i=t.newOption;(0,r.Kn)(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=C(e,i,t.existing,n))}))}function C(t,e,n,r){var i=e.type?e.type:n?n.subType:r.determineSubType(t,e);return i}function M(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?(0,r.kJ)(e.dataIndex)?(0,r.UI)(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?(0,r.kJ)(e.name)?(0,r.UI)(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function A(){var t="__ec_inner_"+I++;return function(e){return e[t]||(e[t]={})}}var I=(0,o.jj)();function O(t,e,n){var r=D(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,u=n?n.defaultMainType:null;return!i&&u&&o.set(u,{}),o.each((function(e,r){var i=L(t,r,e,{useDefault:u===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[r+"Models"]=i.models,s[r+"Model"]=i.models[0]})),s}function D(t,e){var n;if((0,r.HD)(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var o=(0,r.kW)(),a={},s=!1;return(0,r.S6)(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],u=i[1],l=(i[2]||"").toLowerCase();if(u&&l&&!(e&&e.includeMainTypes&&(0,r.cq)(e.includeMainTypes,u)<0)){s=s||!!u;var c=o.get(u)||o.set(u,{});c[l]=t}}else a[n]=t})),{mainTypeSpecified:s,queryOptionMap:o,others:a}}var P={useDefault:!0,enableAll:!1,enableNone:!1};function L(t,e,n,i){i=i||P;var o=n.index,a=n.id,s=n.name,u={models:null,specified:null!=o||null!=a||null!=s};if(!u.specified){var l=void 0;return u.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],u}return"none"===o||!1===o?((0,r.hu)(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),u.models=[],u):("all"===o&&((0,r.hu)(i.enableAll,'`"all"` is not a valid value on index option.'),o=a=s=null),u.models=t.queryComponents({mainType:e,index:o,id:a,name:s}),u)}function N(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function R(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function j(t){return"auto"===t?i.Z.domSupported?"html":"richText":t||"html"}function F(t,e,n,i,s){var u=null==e||"auto"===e;if(null==i)return i;if((0,r.hj)(i)){var l=a(n||0,i,s);return(0,o.NM)(l,u?Math.max((0,o.p8)(n||0),(0,o.p8)(i)):e)}if((0,r.HD)(i))return s<1?n:i;for(var c=[],f=n,h=i,d=Math.max(f?f.length:0,h.length),p=0;p<d;++p){var g=t.getDimensionInfo(p);if(g&&"ordinal"===g.type)c[p]=(s<1&&f?f:h)[p];else{var v=f&&f[p]?f[p]:0,m=h[p];l=a(v,m,s);c[p]=(0,o.NM)(l,u?Math.max((0,o.p8)(v),(0,o.p8)(m)):e)}}return c}},41201:function(t,e,n){"use strict";if(n.d(e,{FK:function(){return _},GM:function(){return u},M9:function(){return h},NM:function(){return l},NU:function(){return s},S$:function(){return d},Xd:function(){return y},jj:function(){return S},kE:function(){return w},kx:function(){return x},mW:function(){return g},nl:function(){return T},p8:function(){return c},sG:function(){return m},wW:function(){return p},xW:function(){return b}}),/^(539|826)$/.test(n.j))var r=n(95797);var i=1e-4,o=20;function a(t){return t.replace(/^\s+|\s+$/g,"")}function s(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],u=o-i,l=s-a;if(0===u)return 0===l?a:(a+s)/2;if(r)if(u>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)/u*l+a}function u(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return r.HD(t)?a(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function l(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),o),t=(+t).toFixed(e),n?t:+t}function c(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 f(t)}function f(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 h(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 d(t,e){var n=Math.max(c(t),c(e)),r=t+e;return n>o?r:l(r,n)}function p(t){var e=2*Math.PI;return(t%e+e)%e}function g(t){return t>-i&&t<i}var v=/^(?:(\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 m(t){if(t instanceof Date)return t;if(r.HD(t)){var e=v.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 y(t){return Math.pow(10,b(t))}function b(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 x(t,e){var n,r=b(t),i=Math.pow(10,r),o=t/i;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*i,r>=-20?+t.toFixed(r<0?-r:0):t}function _(t){var e=parseFloat(t);return e==t&&(0!==e||!r.HD(t)||t.indexOf("x")<=0)?e:NaN}function w(t){return!isNaN(_(t))}function S(){return Math.round(9*Math.random())}function E(t,e){return 0===e?t:E(e,t%e)}function T(t,e){return null==t?e:null==e?t:t*e/E(t,e)}},10859:function(t,e,n){"use strict";if(n.d(e,{$l:function(){return tt},Av:function(){return ct},C5:function(){return it},CX:function(){return d},Hg:function(){return _},JQ:function(){return w},Ki:function(){return b},L1:function(){return g},Mh:function(){return H},RW:function(){return ft},SJ:function(){return V},SX:function(){return $},T5:function(){return X},UL:function(){return J},VP:function(){return G},XX:function(){return W},aG:function(){return ht},ci:function(){return rt},e9:function(){return pt},fD:function(){return U},iK:function(){return S},k5:function(){return st},oJ:function(){return Q},og:function(){return nt},qc:function(){return v},vF:function(){return ot},wU:function(){return p},xp:function(){return dt},xr:function(){return et},yx:function(){return x},zI:function(){return K}}),/^(539|826)$/.test(n.j))var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(75195);if(/^(539|826)$/.test(n.j))var o=n(76171);var a=n(38496);if(/^(539|826)$/.test(n.j))var s=n(23256);var u=1,l={},c=(0,a.Yf)(),f=(0,a.Yf)(),h=0,d=1,p=2,g=/^(539|826)$/.test(n.j)?["emphasis","blur","select"]:null,v=/^(539|826)$/.test(n.j)?["normal","emphasis","blur","select"]:null,m=10,y=9,b="highlight",x="downplay",_="select",w="unselect",S="toggleSelect";function E(t){return null!=t&&"none"!==t}function T(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function k(t){T(t,"emphasis",p)}function C(t){t.hoverState===p&&T(t,"normal",h)}function M(t){T(t,"blur",d)}function A(t){t.hoverState===d&&T(t,"normal",h)}function I(t){t.selected=!0}function O(t){t.selected=!1}function D(t,e,n){e(t,n)}function P(t,e,n){D(t,e,n),t.isGroup&&t.traverse((function(t){D(t,e,n)}))}function L(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],u=i[s];o[s]=null==u?r&&r[s]:u}for(a=0;a<t.animators.length;a++){var l=t.animators[a];l.__fromStateTransition&&l.__fromStateTransition.indexOf(n)<0&&"style"===l.targetName&&l.saveTo(o,e)}return o}function N(t,e,n,i){var a=n&&(0,r.cq)(n,"select")>=0,u=!1;if(t instanceof s.ZP){var l=c(t),f=a&&l.selectFill||l.normalFill,h=a&&l.selectStroke||l.normalStroke;if(E(f)||E(h)){i=i||{};var d=i.style||{};"inherit"===d.fill?(u=!0,i=(0,r.l7)({},i),d=(0,r.l7)({},d),d.fill=f):!E(d.fill)&&E(f)?(u=!0,i=(0,r.l7)({},i),d=(0,r.l7)({},d),d.fill=(0,o.fD)(f)):!E(d.stroke)&&E(h)&&(u||(i=(0,r.l7)({},i),d=(0,r.l7)({},d)),d.stroke=(0,o.fD)(h)),i.style=d}}if(i&&null==i.z2){u||(i=(0,r.l7)({},i));var p=t.z2EmphasisLift;i.z2=t.z2+(null!=p?p:m)}return i}function R(t,e,n){if(n&&null==n.z2){n=(0,r.l7)({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:y)}return n}function j(t,e,n){var i=(0,r.cq)(t.currentStates,e)>=0,o=t.style.opacity,a=i?null:L(t,["opacity"],e,{opacity:1});n=n||{};var s=n.style||{};return null==s.opacity&&(n=(0,r.l7)({},n),s=(0,r.l7)({opacity:i?o:.1*a.opacity},s),n.style=s),n}function F(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return N(this,t,e,n);if("blur"===t)return j(this,t,n);if("select"===t)return R(this,t,n)}return n}function B(t){t.stateProxy=F;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=F),n&&(n.stateProxy=F)}function z(t,e){!Y(t,e)&&!t.__highByOuter&&P(t,k)}function Z(t,e){!Y(t,e)&&!t.__highByOuter&&P(t,C)}function U(t,e){t.__highByOuter|=1<<(e||0),P(t,k)}function H(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&P(t,C)}function $(t){P(t,M)}function G(t){P(t,A)}function W(t){P(t,I)}function V(t){P(t,O)}function Y(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function X(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var o=f(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(t){A(t)})),a&&n.push(r)),o.isBlured=!1})),(0,r.S6)(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function q(t,e,n,i){var o=i.getModel();function a(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&G(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var s=o.getSeriesByIndex(t),u=s.coordinateSystem;u&&u.master&&(u=u.master);var l=[];o.eachSeries((function(t){var o=s===t,c=t.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&u?c===u:o;if(!("series"===n&&!o||"coordinateSystem"===n&&!h||"series"===e&&o)){var d=i.getViewOfSeriesModel(t);if(d.group.traverse((function(t){t.__highByOuter&&o&&"self"===e||M(t)})),(0,r.zG)(e))a(t.getData(),e);else if((0,r.Kn)(e))for(var p=(0,r.XP)(e),g=0;g<p.length;g++)a(t.getData(p[g]),e[p[g]]);l.push(t),f(t).isBlured=!0}})),o.eachComponent((function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,o)}}))}}function K(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){f(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){M(t)}))}}}function J(t,e,n){var o=t.seriesIndex,s=t.getData(e.dataType);if(s){var u=(0,a.gO)(s,e);u=((0,r.kJ)(u)?u[0]:u)||0;var l=s.getItemGraphicEl(u);if(!l){var c=s.count(),f=0;while(!l&&f<c)l=s.getItemGraphicEl(f++)}if(l){var h=(0,i.A)(l);q(o,h.focus,h.blurScope,n)}else{var d=t.get(["emphasis","focus"]),p=t.get(["emphasis","blurScope"]);null!=d&&q(o,d,p,n)}}}function Q(t,e,n,r){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return o;var a=r.getModel().getComponent(t,e);if(!a)return o;var s=r.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return o;for(var u,l=s.findHighDownDispatchers(n),c=0;c<l.length;c++)if("self"===(0,i.A)(l[c]).focus){u=!0;break}return{focusSelf:u,dispatchers:l}}function tt(t,e,n){var o=(0,i.A)(t),a=Q(o.componentMainType,o.componentIndex,o.componentHighDownName,n),s=a.dispatchers,u=a.focusSelf;s?(u&&K(o.componentMainType,o.componentIndex,n),(0,r.S6)(s,(function(t){return z(t,e)}))):(q(o.seriesIndex,o.focus,o.blurScope,n),"self"===o.focus&&K(o.componentMainType,o.componentIndex,n),z(t,e))}function et(t,e,n){X(n);var o=(0,i.A)(t),a=Q(o.componentMainType,o.componentIndex,o.componentHighDownName,n).dispatchers;a?(0,r.S6)(a,(function(t){return Z(t,e)})):Z(t,e)}function nt(t,e,n){if(ht(e)){var i=e.dataType,o=t.getData(i),s=(0,a.gO)(o,e);(0,r.kJ)(s)||(s=[s]),t[e.type===S?"toggleSelect":e.type===_?"select":"unselect"](s,i)}}function rt(t){var e=t.getAllData();(0,r.S6)(e,(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,r)?W(e):V(e)}))}))}function it(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();(0,r.S6)(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}function ot(t,e,n){lt(t,!0),P(t,B),ut(t,e,n)}function at(t){lt(t,!1)}function st(t,e,n,r){r?at(t):ot(t,e,n)}function ut(t,e,n){var r=(0,i.A)(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}function lt(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 ct(t){return!(!t||!t.__highDownDispatcher)}function ft(t){var e=l[t];return null==e&&u<=32&&(e=l[t]=u++),e}function ht(t){var e=t.type;return e===_||e===w||e===S}function dt(t){var e=t.type;return e===b||e===x}function pt(t){var e=c(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}},86741:function(t,e,n){"use strict";n.d(e,{Cq:function(){return S},th:function(){return _},zp:function(){return w}});var r=n(95797),i=n(23256),o=n(22940),a=n(96354),s=n(79001);if(/^(539|826)$/.test(n.j))var u=n(22995);if(/^(539|826)$/.test(n.j))var l=n(96805);var c=n(66332);if(/^(539|826)$/.test(n.j))var f=n(41201);var h=i.ZP.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()}}),d=i.ZP.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()}}),p=i.ZP.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),u=r-o+a+s,l=Math.asin(s/a),c=Math.cos(l)*a,f=Math.sin(l),h=Math.cos(l),d=.6*a,p=.7*a;t.moveTo(n-c,u+s),t.arc(n,u,a,Math.PI-l,2*Math.PI+l),t.bezierCurveTo(n+c-f*d,u+s+h*d,n,r-p,n,r),t.bezierCurveTo(n,r-p,n-c+f*d,u+s+h*d,n-c,u+s),t.closePath()}}),g=i.ZP.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()}}),v={line:o.Z,rect:a.Z,roundRect:a.Z,square:a.Z,circle:s.Z,diamond:d,pin:p,arrow:g,triangle:h},m={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}},y={};(0,r.S6)(v,(function(t,e){y[e]=new t}));var b=i.ZP.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=(0,c.wI)(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=y[r];i||(r="rect",i=y[r]),m[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function x(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 _(t,e,n,r,i,o,a){var s,c=0===t.indexOf("empty");return c&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),s=0===t.indexOf("image://")?u.makeImage(t.slice(8),new l.Z(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?u.makePath(t.slice(7),{},new l.Z(e,n,r,i),a?"center":"cover"):new b({shape:{symbolType:t,x:e,y:n,width:r,height:i}}),s.__isEmptyBrush=c,s.setColor=x,o&&s.setColor(o),s}function w(t){return(0,r.kJ)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function S(t,e){if(null!=t)return(0,r.kJ)(t)||(t=[t,t]),[(0,f.GM)(t[0],e[0])||0,(0,f.GM)((0,r.pD)(t[1],t[0]),e[1])||0]}},54849:function(t,e,n){"use strict";n.d(e,{P2:function(){return a},T9:function(){return s},ZH:function(){return u}});var r="\0__throttleOriginMethod",i="\0__throttleRate",o="\0__throttleType";function a(t,e,n){var r,i,o,a,s,u=0,l=0,c=null;function f(){l=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var h=function(){for(var t=[],h=0;h<arguments.length;h++)t[h]=arguments[h];r=(new Date).getTime(),o=this,a=t;var d=s||e,p=s||n;s=null,i=r-(p?u:l)-d,clearTimeout(c),p?c=setTimeout(f,d):i>=0?f():c=setTimeout(f,-i),u=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(t){s=t},h}function s(t,e,n,s){var u=t[e];if(u){var l=u[r]||u,c=u[o],f=u[i];if(f!==n||c!==s){if(null==n||!s)return t[e]=l;u=t[e]=a(l,n,"debounce"===s),u[r]=l,u[o]=s,u[i]=n}return u}}function u(t,e){var n=t[e];n&&n[r]&&(n.clear&&n.clear(),t[e]=n[r])}},31360:function(t,e,n){"use strict";if(n.d(e,{$K:function(){return b},CW:function(){return k},En:function(){return N},FW:function(){return v},MV:function(){return I},P5:function(){return f},RZ:function(){return O},Tj:function(){return y},V8:function(){return p},WT:function(){return s},WU:function(){return _},Wp:function(){return M},cb:function(){return F},dV:function(){return l},eN:function(){return R},f5:function(){return L},fn:function(){return A},k7:function(){return w},q5:function(){return E},rM:function(){return j},s2:function(){return c},sx:function(){return T},vh:function(){return P},xC:function(){return x},xL:function(){return D},xz:function(){return C},yR:function(){return u}}),/^(539|826)$/.test(n.j))var r=n(95797);if(/^(539|826)$/.test(n.j))var i=n(41201);if(/^(539|826)$/.test(n.j))var o=n(62645);if(/^(539|826)$/.test(n.j))var a=n(85632);var s=1e3,u=60*s,l=60*u,c=24*l,f=365*c,h={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}"},d="{yyyy}-{MM}-{dd}",p={year:"{yyyy}",month:"{yyyy}-{MM}",day:d,hour:d+" "+h.hour,minute:d+" "+h.minute,second:d+" "+h.second,millisecond:h.none},g=/^(539|826)$/.test(n.j)?["year","month","day","hour","minute","second","millisecond"]:null,v=/^(539|826)$/.test(n.j)?["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"]:null;function m(t,e){return t+="","0000".substr(0,e-t.length)+t}function y(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 b(t){return t===y(t)}function x(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function _(t,e,n,r){var s=i.sG(t),u=s[T(n)](),l=s[k(n)]()+1,c=Math.floor((l-1)/3)+1,f=s[C(n)](),h=s["get"+(n?"UTC":"")+"Day"](),d=s[M(n)](),p=(d-1)%12+1,g=s[A(n)](),v=s[I(n)](),y=s[O(n)](),b=r instanceof a.Z?r:(0,o.G8)(r||o.sO)||(0,o.Li)(),x=b.getModel("time"),_=x.get("month"),w=x.get("monthAbbr"),S=x.get("dayOfWeek"),E=x.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,u+"").replace(/{yy}/g,m(u%100+"",2)).replace(/{Q}/g,c+"").replace(/{MMMM}/g,_[l-1]).replace(/{MMM}/g,w[l-1]).replace(/{MM}/g,m(l,2)).replace(/{M}/g,l+"").replace(/{dd}/g,m(f,2)).replace(/{d}/g,f+"").replace(/{eeee}/g,S[h]).replace(/{ee}/g,E[h]).replace(/{e}/g,h+"").replace(/{HH}/g,m(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,m(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,m(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,m(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,m(y,3)).replace(/{S}/g,y+"")}function w(t,e,n,i,o){var a=null;if(r.HD(n))a=n;else if(r.mf(n))a=n(t.value,e,{level:t.level});else{var s=r.l7({},h);if(t.level>0)for(var u=0;u<g.length;++u)s[g[u]]="{primary|"+s[g[u]]+"}";var l=n?!1===n.inherit?n:r.ce(n,s):s,c=S(t.value,o);if(l[c])a=l[c];else if(l.inherit){var f=v.indexOf(c);for(u=f-1;u>=0;--u)if(l[c]){a=l[c];break}a=a||s.none}if(r.kJ(a)){var d=null==t.level?0:t.level>=0?t.level:a.length+t.level;d=Math.min(d,a.length-1),a=a[d]}}return _(new Date(t.value),a,o,i)}function S(t,e){var n=i.sG(t),r=n[k(e)]()+1,o=n[C(e)](),a=n[M(e)](),s=n[A(e)](),u=n[I(e)](),l=n[O(e)](),c=0===l,f=c&&0===u,h=f&&0===s,d=h&&0===a,p=d&&1===o,g=p&&1===r;return g?"year":p?"month":d?"day":h?"hour":f?"minute":c?"second":"millisecond"}function E(t,e,n){var o=r.hj(t)?i.sG(t):t;switch(e=e||S(t,n),e){case"year":return o[T(n)]();case"half-year":return o[k(n)]()>=6?1:0;case"quarter":return Math.floor((o[k(n)]()+1)/4);case"month":return o[k(n)]();case"day":return o[C(n)]();case"half-day":return o[M(n)]()/24;case"hour":return o[M(n)]();case"minute":return o[A(n)]();case"second":return o[I(n)]();case"millisecond":return o[O(n)]()}}function T(t){return t?"getUTCFullYear":"getFullYear"}function k(t){return t?"getUTCMonth":"getMonth"}function C(t){return t?"getUTCDate":"getDate"}function M(t){return t?"getUTCHours":"getHours"}function A(t){return t?"getUTCMinutes":"getMinutes"}function I(t){return t?"getUTCSeconds":"getSeconds"}function O(t){return t?"getUTCMilliseconds":"getMilliseconds"}function D(t){return t?"setUTCFullYear":"setFullYear"}function P(t){return t?"setUTCMonth":"setMonth"}function L(t){return t?"setUTCDate":"setDate"}function N(t){return t?"setUTCHours":"setHours"}function R(t){return t?"setUTCMinutes":"setMinutes"}function j(t){return t?"setUTCSeconds":"setSeconds"}function F(t){return t?"setUTCMilliseconds":"setMilliseconds"}},86594:function(t,e,n){"use strict";n.d(e,{J5:function(){return l},RA:function(){return c},Wc:function(){return h},XD:function(){return a},cy:function(){return o},f7:function(){return i},fY:function(){return f},hL:function(){return u},qb:function(){return s}});var r=n(95797),i=(0,r.kW)(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),o="original",a="arrayRows",s="objectRows",u="keyedColumns",l="typedArray",c="unknown",f="column",h="row"},81278:function(t,e,n){"use strict";if(n.d(e,{o:function(){return a}}),/^(539|826)$/.test(n.j))var r=n(95797);var i="undefined"!==typeof Float32Array,o=i?Float32Array:Array;function a(t){return(0,r.kJ)(t)?i?new Float32Array(t):t:new o(t)}},55486:function(t,e,n){"use strict";var r=n(95797),i=n(3082),o=n(40259),a=n(6990),s=n(38496),u=n(10859),l=n(17787),c=n(73592),f=n(22995),h=s.Yf(),d=(0,c.Z)(),p=function(){function t(){this.group=new i.Z,this.uid=o.Kr("viewChart"),this.renderTask=(0,l.v)({plan:m,reset:y}),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&&v(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&v(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){(0,f.traverseElements)(this.group,t)},t.markUpdateMethod=function(t,e){h(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function g(t,e,n){t&&(0,u.Av)(t)&&("emphasis"===e?u.fD:u.Mh)(t,n)}function v(t,e,n){var i=s.gO(t,e),o=e&&null!=e.highlightKey?(0,u.RW)(e.highlightKey):null;null!=i?(0,r.S6)(s.kF(i),(function(e){g(t.getItemGraphicEl(e),n,o)})):t.eachItemGraphicEl((function(t){g(t,n,o)}))}function m(t){return d(t.model)}function y(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&h(i).updateMethod,u=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==u&&a[u](e,n,r,i),b[u]}a.dm(p,["dispose"]),a.au(p);var b={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)}}};e.Z=/^(539|826)$/.test(n.j)?p:null},59160:function(t,e,n){"use strict";var r=n(3082),i=n(40259),o=n(6990),a=function(){function t(){this.group=new r.Z,this.uid=i.Kr("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}();o.dm(a),o.au(a),e.Z=/^(539|826)$/.test(n.j)?a:null},82631:function(t,e,n){"use strict";function r(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.d(e,{Z:function(){return r}})},98918:function(t,e,n){"use strict";n.d(e,{W_:function(){return o},tl:function(){return s}});n(13433);var r=n(7185);function i(t,e,n,i){return t.params.createElements&&Object.keys(i).forEach((o=>{if(!n[o]&&!0===n.auto){let a=(0,r.e)(t.el,`.${i[o]}`)[0];a||(a=(0,r.c)("div",i[o]),a.className=i[o],t.el.append(a)),n[o]=a,e[o]=a}})),n}function o(t){let{swiper:e,extendParams:n,on:r,emit:o}=t;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const a=t=>(Array.isArray(t)?t:[t]).filter((t=>!!t));function s(t){let n;return t&&"string"===typeof t&&e.isElement&&(n=e.el.querySelector(t),n)?n:(t&&("string"===typeof t&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"===typeof t&&n.length>1&&1===e.el.querySelectorAll(t).length&&(n=e.el.querySelector(t))),t&&!n?t:n)}function u(t,n){const r=e.params.navigation;t=a(t),t.forEach((t=>{t&&(t.classList[n?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](r.lockClass))}))}function l(){const{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop)return u(n,!1),void u(t,!1);u(n,e.isBeginning&&!e.params.rewind),u(t,e.isEnd&&!e.params.rewind)}function c(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),o("navigationPrev"))}function f(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),o("navigationNext"))}function h(){const t=e.params.navigation;if(e.params.navigation=i(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let n=s(t.nextEl),r=s(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:r}),n=a(n),r=a(r);const o=(n,r)=>{n&&n.addEventListener("click","next"===r?f:c),!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};n.forEach((t=>o(t,"next"))),r.forEach((t=>o(t,"prev")))}function d(){let{nextEl:t,prevEl:n}=e.navigation;t=a(t),n=a(n);const r=(t,n)=>{t.removeEventListener("click","next"===n?f:c),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach((t=>r(t,"next"))),n.forEach((t=>r(t,"prev")))}r("init",(()=>{!1===e.params.navigation.enabled?g():(h(),l())})),r("toEdge fromEdge lock unlock",(()=>{l()})),r("destroy",(()=>{d()})),r("enable disable",(()=>{let{nextEl:t,prevEl:n}=e.navigation;t=a(t),n=a(n),e.enabled?l():[...t,...n].filter((t=>!!t)).forEach((t=>t.classList.add(e.params.navigation.lockClass)))})),r("click",((t,n)=>{let{nextEl:r,prevEl:i}=e.navigation;r=a(r),i=a(i);const s=n.target;if(e.params.navigation.hideOnClick&&!i.includes(s)&&!r.includes(s)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===s||e.pagination.el.contains(s)))return;let t;r.length?t=r[0].classList.contains(e.params.navigation.hiddenClass):i.length&&(t=i[0].classList.contains(e.params.navigation.hiddenClass)),o(!0===t?"navigationShow":"navigationHide"),[...r,...i].filter((t=>!!t)).forEach((t=>t.classList.toggle(e.params.navigation.hiddenClass)))}}));const p=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),h(),l()},g=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:p,disable:g,update:l,init:h,destroy:d})}var a=n(57869);function s(t){let{swiper:e,extendParams:n,on:o,emit:s}=t;const u="swiper-pagination";let l;n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:`${u}-bullet`,bulletActiveClass:`${u}-bullet-active`,modifierClass:`${u}-`,currentClass:`${u}-current`,totalClass:`${u}-total`,hiddenClass:`${u}-hidden`,progressbarFillClass:`${u}-progressbar-fill`,progressbarOppositeClass:`${u}-progressbar-opposite`,clickableClass:`${u}-clickable`,lockClass:`${u}-lock`,horizontalClass:`${u}-horizontal`,verticalClass:`${u}-vertical`,paginationDisabledClass:`${u}-disabled`}}),e.pagination={el:null,bullets:[]};let c=0;const f=t=>(Array.isArray(t)?t:[t]).filter((t=>!!t));function h(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function d(t,n){const{bulletActiveClass:r}=e.params.pagination;t&&(t=t[("prev"===n?"previous":"next")+"ElementSibling"],t&&(t.classList.add(`${r}-${n}`),t=t[("prev"===n?"previous":"next")+"ElementSibling"],t&&t.classList.add(`${r}-${n}-${n}`)))}function p(t){const n=t.target.closest((0,a.c)(e.params.pagination.bulletClass));if(!n)return;t.preventDefault();const i=(0,r.g)(n)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===i)return;const t=e.realIndex,n=e.getSlideIndexByData(i),r=e.getSlideIndexByData(e.realIndex),o=r=>{const i=e.activeIndex;e.loopFix({direction:r,activeSlideIndex:n,slideTo:!1});const o=e.activeIndex;i===o&&e.slideToLoop(t,0,!1,!0)};if(n>e.slides.length-e.loopedSlides)o(n>r?"next":"prev");else if(e.params.centeredSlides){const t="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(parseFloat(e.params.slidesPerView,10));n<Math.floor(t/2)&&o("prev")}e.slideToLoop(i)}else e.slideTo(i)}function g(){const t=e.rtl,n=e.params.pagination;if(h())return;let i,o,u=e.pagination.el;u=f(u);const p=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,g=e.params.loop?Math.ceil(p/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(o=e.previousRealIndex||0,i=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):"undefined"!==typeof e.snapIndex?(i=e.snapIndex,o=e.previousSnapIndex):(o=e.previousIndex||0,i=e.activeIndex||0),"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const a=e.pagination.bullets;let s,f,h;if(n.dynamicBullets&&(l=(0,r.f)(a[0],e.isHorizontal()?"width":"height",!0),u.forEach((t=>{t.style[e.isHorizontal()?"width":"height"]=l*(n.dynamicMainBullets+4)+"px"})),n.dynamicMainBullets>1&&void 0!==o&&(c+=i-(o||0),c>n.dynamicMainBullets-1?c=n.dynamicMainBullets-1:c<0&&(c=0)),s=Math.max(i-c,0),f=s+(Math.min(a.length,n.dynamicMainBullets)-1),h=(f+s)/2),a.forEach((t=>{const e=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((t=>`${n.bulletActiveClass}${t}`))].map((t=>"string"===typeof t&&t.includes(" ")?t.split(" "):t)).flat();t.classList.remove(...e)})),u.length>1)a.forEach((t=>{const o=(0,r.g)(t);o===i?t.classList.add(...n.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),n.dynamicBullets&&(o>=s&&o<=f&&t.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),o===s&&d(t,"prev"),o===f&&d(t,"next"))}));else{const t=a[i];if(t&&t.classList.add(...n.bulletActiveClass.split(" ")),e.isElement&&a.forEach(((t,e)=>{t.setAttribute("part",e===i?"bullet-active":"bullet")})),n.dynamicBullets){const t=a[s],e=a[f];for(let r=s;r<=f;r+=1)a[r]&&a[r].classList.add(...`${n.bulletActiveClass}-main`.split(" "));d(t,"prev"),d(e,"next")}}if(n.dynamicBullets){const r=Math.min(a.length,n.dynamicMainBullets+4),i=(l*r-l)/2-h*l,o=t?"right":"left";a.forEach((t=>{t.style[e.isHorizontal()?o:"top"]=`${i}px`}))}}u.forEach(((t,r)=>{if("fraction"===n.type&&(t.querySelectorAll((0,a.c)(n.currentClass)).forEach((t=>{t.textContent=n.formatFractionCurrent(i+1)})),t.querySelectorAll((0,a.c)(n.totalClass)).forEach((t=>{t.textContent=n.formatFractionTotal(g)}))),"progressbar"===n.type){let r;r=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const o=(i+1)/g;let s=1,u=1;"horizontal"===r?s=o:u=o,t.querySelectorAll((0,a.c)(n.progressbarFillClass)).forEach((t=>{t.style.transform=`translate3d(0,0,0) scaleX(${s}) scaleY(${u})`,t.style.transitionDuration=`${e.params.speed}ms`}))}"custom"===n.type&&n.renderCustom?(t.innerHTML=n.renderCustom(e,i+1,g),0===r&&s("paginationRender",t)):(0===r&&s("paginationRender",t),s("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](n.lockClass)}))}function v(){const t=e.params.pagination;if(h())return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let r=e.pagination.el;r=f(r);let i="";if("bullets"===t.type){let r=e.params.loop?Math.ceil(n/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&r>n&&(r=n);for(let n=0;n<r;n+=1)t.renderBullet?i+=t.renderBullet.call(e,n,t.bulletClass):i+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(i=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(i=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],r.forEach((n=>{"custom"!==t.type&&(n.innerHTML=i||""),"bullets"===t.type&&e.pagination.bullets.push(...n.querySelectorAll((0,a.c)(t.bulletClass)))})),"custom"!==t.type&&s("paginationRender",r[0])}function m(){e.params.pagination=i(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let n;"string"===typeof t.el&&e.isElement&&(n=e.el.querySelector(t.el)),n||"string"!==typeof t.el||(n=[...document.querySelectorAll(t.el)]),n||(n=t.el),n&&0!==n.length&&(e.params.uniqueNavElements&&"string"===typeof t.el&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1&&(n=n.filter((t=>(0,r.a)(t,".swiper")[0]===e.el))[0])),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(e.pagination,{el:n}),n=f(n),n.forEach((n=>{"bullets"===t.type&&t.clickable&&n.classList.add(...(t.clickableClass||"").split(" ")),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),c=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener("click",p),e.enabled||n.classList.add(t.lockClass)})))}function y(){const t=e.params.pagination;if(h())return;let n=e.pagination.el;n&&(n=f(n),n.forEach((n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||"").split(" ")),n.removeEventListener("click",p))}))),e.pagination.bullets&&e.pagination.bullets.forEach((e=>e.classList.remove(...t.bulletActiveClass.split(" "))))}o("changeDirection",(()=>{if(!e.pagination||!e.pagination.el)return;const t=e.params.pagination;let{el:n}=e.pagination;n=f(n),n.forEach((n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)}))})),o("init",(()=>{!1===e.params.pagination.enabled?x():(m(),v(),g())})),o("activeIndexChange",(()=>{"undefined"===typeof e.snapIndex&&g()})),o("snapIndexChange",(()=>{g()})),o("snapGridLengthChange",(()=>{v(),g()})),o("destroy",(()=>{y()})),o("enable disable",(()=>{let{el:t}=e.pagination;t&&(t=f(t),t.forEach((t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass))))})),o("lock unlock",(()=>{g()})),o("click",((t,n)=>{const r=n.target,i=f(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&i&&i.length>0&&!r.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&r===e.navigation.nextEl||e.navigation.prevEl&&r===e.navigation.prevEl))return;const t=i[0].classList.contains(e.params.pagination.hiddenClass);s(!0===t?"paginationShow":"paginationHide"),i.forEach((t=>t.classList.toggle(e.params.pagination.hiddenClass)))}}));const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=f(t),t.forEach((t=>t.classList.remove(e.params.pagination.paginationDisabledClass)))),m(),v(),g()},x=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=f(t),t.forEach((t=>t.classList.add(e.params.pagination.paginationDisabledClass)))),y()};Object.assign(e.pagination,{enable:b,disable:x,render:v,update:g,init:m,destroy:y})}},57869:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}n.d(e,{c:function(){return r}})},13433:function(t,e,n){"use strict";function r(t){return null!==t&&"object"===typeof t&&"constructor"in t&&t.constructor===Object}function i(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(e).forEach((n=>{"undefined"===typeof t[n]?t[n]=e[n]:r(e[n])&&r(t[n])&&Object.keys(e[n]).length>0&&i(t[n],e[n])}))}n.d(e,{a:function(){return u},g:function(){return a}});const o={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const t="undefined"!==typeof document?document:{};return i(t,o),t}const s={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return"undefined"===typeof setTimeout?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){"undefined"!==typeof setTimeout&&clearTimeout(t)}};function u(){const t="undefined"!==typeof window?window:{};return i(t,s),t}},7185:function(t,e,n){"use strict";n.d(e,{a:function(){return x},c:function(){return g},d:function(){return a},e:function(){return p},f:function(){return _},g:function(){return b},h:function(){return u},l:function(){return y},m:function(){return m},n:function(){return o},o:function(){return v},p:function(){return d},q:function(){return f},r:function(){return i},s:function(){return h}});var r=n(13433);function i(t){const e=t;Object.keys(e).forEach((t=>{try{e[t]=null}catch(n){}try{delete e[t]}catch(n){}}))}function o(t,e){return void 0===e&&(e=0),setTimeout(t,e)}function a(){return Date.now()}function s(t){const e=(0,r.a)();let n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}function u(t,e){void 0===e&&(e="x");const n=(0,r.a)();let i,o,a;const u=s(t);return n.WebKitCSSMatrix?(o=u.transform||u.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map((t=>t.replace(",","."))).join(", ")),a=new n.WebKitCSSMatrix("none"===o?"":o)):(a=u.MozTransform||u.OTransform||u.MsTransform||u.msTransform||u.transform||u.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=a.toString().split(",")),"x"===e&&(o=n.WebKitCSSMatrix?a.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===e&&(o=n.WebKitCSSMatrix?a.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),o||0}function l(t){return"object"===typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function c(t){return"undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement?t instanceof HTMLElement:t&&(1===t.nodeType||11===t.nodeType)}function f(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(void 0!==r&&null!==r&&!c(r)){const n=Object.keys(Object(r)).filter((t=>e.indexOf(t)<0));for(let e=0,i=n.length;e<i;e+=1){const i=n[e],o=Object.getOwnPropertyDescriptor(r,i);void 0!==o&&o.enumerable&&(l(t[i])&&l(r[i])?r[i].__swiper__?t[i]=r[i]:f(t[i],r[i]):!l(t[i])&&l(r[i])?(t[i]={},r[i].__swiper__?t[i]=r[i]:f(t[i],r[i])):t[i]=r[i])}}}return t}function h(t,e,n){t.style.setProperty(e,n)}function d(t){let{swiper:e,targetPosition:n,side:i}=t;const o=(0,r.a)(),a=-e.translate;let s,u=null;const l=e.params.speed;e.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(e.cssModeFrameID);const c=n>a?"next":"prev",f=(t,e)=>"next"===c&&t>=e||"prev"===c&&t<=e,h=()=>{s=(new Date).getTime(),null===u&&(u=s);const t=Math.max(Math.min((s-u)/l,1),0),r=.5-Math.cos(t*Math.PI)/2;let c=a+r*(n-a);if(f(c,n)&&(c=n),e.wrapperEl.scrollTo({[i]:c}),f(c,n))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout((()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:c})})),void o.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=o.requestAnimationFrame(h)};h()}function p(t,e){return void 0===e&&(e=""),[...t.children].filter((t=>t.matches(e)))}function g(t,e){void 0===e&&(e=[]);const n=document.createElement(t);return n.classList.add(...Array.isArray(e)?e:[e]),n}function v(t,e){const n=[];while(t.previousElementSibling){const r=t.previousElementSibling;e?r.matches(e)&&n.push(r):n.push(r),t=r}return n}function m(t,e){const n=[];while(t.nextElementSibling){const r=t.nextElementSibling;e?r.matches(e)&&n.push(r):n.push(r),t=r}return n}function y(t,e){const n=(0,r.a)();return n.getComputedStyle(t,null).getPropertyValue(e)}function b(t){let e,n=t;if(n){e=0;while(null!==(n=n.previousSibling))1===n.nodeType&&(e+=1);return e}}function x(t,e){const n=[];let r=t.parentElement;while(r)e?r.matches(e)&&n.push(r):n.push(r),r=r.parentElement;return n}function _(t,e,n){const i=(0,r.a)();return n?t["width"===e?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(t,null).getPropertyValue("width"===e?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(t,null).getPropertyValue("width"===e?"margin-left":"margin-bottom")):t.offsetWidth}},99977:function(t,e,n){"use strict";n.d(e,{Z:function(){return Ot}});var r=n(13433),i=n(7185);let o,a,s;function u(){const t=(0,r.a)(),e=(0,r.g)();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function l(){return o||(o=u()),o}function c(t){let{userAgent:e}=void 0===t?{}:t;const n=l(),i=(0,r.a)(),o=i.navigator.platform,a=e||i.navigator.userAgent,s={ios:!1,android:!1},u=i.screen.width,c=i.screen.height,f=a.match(/(Android);?[\s\/]+([\d.]+)?/);let h=a.match(/(iPad).*OS\s([\d_]+)/);const d=a.match(/(iPod)(.*OS\s([\d_]+))?/),p=!h&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),g="Win32"===o;let v="MacIntel"===o;const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!h&&v&&n.touch&&m.indexOf(`${u}x${c}`)>=0&&(h=a.match(/(Version)\/([\d.]+)/),h||(h=[0,1,"13_0_0"]),v=!1),f&&!g&&(s.os="android",s.android=!0),(h||p||d)&&(s.os="ios",s.ios=!0),s}function f(t){return void 0===t&&(t={}),a||(a=c(t)),a}function h(){const t=(0,r.a)();let e=!1;function n(){const e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}if(n()){const n=String(t.navigator.userAgent);if(n.includes("Version/")){const[t,r]=n.split("Version/")[1].split(" ")[0].split(".").map((t=>Number(t)));e=t<16||16===t&&r<2}}return{isSafari:e||n(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function d(){return s||(s=h()),s}function p(t){let{swiper:e,on:n,emit:i}=t;const o=(0,r.a)();let a=null,s=null;const u=()=>{e&&!e.destroyed&&e.initialized&&(i("beforeResize"),i("resize"))},l=()=>{e&&!e.destroyed&&e.initialized&&(a=new ResizeObserver((t=>{s=o.requestAnimationFrame((()=>{const{width:n,height:r}=e;let i=n,o=r;t.forEach((t=>{let{contentBoxSize:n,contentRect:r,target:a}=t;a&&a!==e.el||(i=r?r.width:(n[0]||n).inlineSize,o=r?r.height:(n[0]||n).blockSize)})),i===n&&o===r||u()}))})),a.observe(e.el))},c=()=>{s&&o.cancelAnimationFrame(s),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},f=()=>{e&&!e.destroyed&&e.initialized&&i("orientationchange")};n("init",(()=>{e.params.resizeObserver&&"undefined"!==typeof o.ResizeObserver?l():(o.addEventListener("resize",u),o.addEventListener("orientationchange",f))})),n("destroy",(()=>{c(),o.removeEventListener("resize",u),o.removeEventListener("orientationchange",f)}))}function g(t){let{swiper:e,extendParams:n,on:o,emit:a}=t;const s=[],u=(0,r.a)(),l=function(t,n){void 0===n&&(n={});const r=u.MutationObserver||u.WebkitMutationObserver,i=new r((t=>{if(e.__preventObserver__)return;if(1===t.length)return void a("observerUpdate",t[0]);const n=function(){a("observerUpdate",t[0])};u.requestAnimationFrame?u.requestAnimationFrame(n):u.setTimeout(n,0)}));i.observe(t,{attributes:"undefined"===typeof n.attributes||n.attributes,childList:"undefined"===typeof n.childList||n.childList,characterData:"undefined"===typeof n.characterData||n.characterData}),s.push(i)},c=()=>{if(e.params.observer){if(e.params.observeParents){const t=(0,i.a)(e.hostEl);for(let e=0;e<t.length;e+=1)l(t[e])}l(e.hostEl,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},f=()=>{s.forEach((t=>{t.disconnect()})),s.splice(0,s.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",c),o("destroy",f)}var v={on(t,e,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!==typeof e)return r;const i=n?"unshift":"push";return t.split(" ").forEach((t=>{r.eventsListeners[t]||(r.eventsListeners[t]=[]),r.eventsListeners[t][i](e)})),r},once(t,e,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!==typeof e)return r;function i(){r.off(t,i),i.__emitterProxy&&delete i.__emitterProxy;for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];e.apply(r,o)}return i.__emitterProxy=e,r.on(t,i,n)},onAny(t,e){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!==typeof t)return n;const r=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[r](t),n},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsAnyListeners)return e;const n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(t.split(" ").forEach((t=>{"undefined"===typeof e?n.eventsListeners[t]=[]:n.eventsListeners[t]&&n.eventsListeners[t].forEach(((r,i)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&n.eventsListeners[t].splice(i,1)}))})),n):n},emit(){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let e,n,r;for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];"string"===typeof o[0]||Array.isArray(o[0])?(e=o[0],n=o.slice(1,o.length),r=t):(e=o[0].events,n=o[0].data,r=o[0].context||t),n.unshift(r);const s=Array.isArray(e)?e:e.split(" ");return s.forEach((e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach((t=>{t.apply(r,[e,...n])})),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach((t=>{t.apply(r,n)}))})),t}};function m(){const t=this;let e,n;const r=t.el;e="undefined"!==typeof t.params.width&&null!==t.params.width?t.params.width:r.clientWidth,n="undefined"!==typeof t.params.height&&null!==t.params.height?t.params.height:r.clientHeight,0===e&&t.isHorizontal()||0===n&&t.isVertical()||(e=e-parseInt((0,i.l)(r,"padding-left")||0,10)-parseInt((0,i.l)(r,"padding-right")||0,10),n=n-parseInt((0,i.l)(r,"padding-top")||0,10)-parseInt((0,i.l)(r,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Object.assign(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function y(){const t=this;function e(e){return t.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}function n(t,n){return parseFloat(t.getPropertyValue(e(n))||0)}const r=t.params,{wrapperEl:o,slidesEl:a,size:s,rtlTranslate:u,wrongRTL:l}=t,c=t.virtual&&r.virtual.enabled,f=c?t.virtual.slides.length:t.slides.length,h=(0,i.e)(a,`.${t.params.slideClass}, swiper-slide`),d=c?t.virtual.slides.length:h.length;let p=[];const g=[],v=[];let m=r.slidesOffsetBefore;"function"===typeof m&&(m=r.slidesOffsetBefore.call(t));let y=r.slidesOffsetAfter;"function"===typeof y&&(y=r.slidesOffsetAfter.call(t));const b=t.snapGrid.length,x=t.slidesGrid.length;let _=r.spaceBetween,w=-m,S=0,E=0;if("undefined"===typeof s)return;"string"===typeof _&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*s:"string"===typeof _&&(_=parseFloat(_)),t.virtualSize=-_,h.forEach((t=>{u?t.style.marginLeft="":t.style.marginRight="",t.style.marginBottom="",t.style.marginTop=""})),r.centeredSlides&&r.cssMode&&((0,i.s)(o,"--swiper-centered-offset-before",""),(0,i.s)(o,"--swiper-centered-offset-after",""));const T=r.grid&&r.grid.rows>1&&t.grid;let k;T&&t.grid.initSlides(d);const C="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter((t=>"undefined"!==typeof r.breakpoints[t].slidesPerView)).length>0;for(let M=0;M<d;M+=1){let o;if(k=0,h[M]&&(o=h[M]),T&&t.grid.updateSlide(M,o,d,e),!h[M]||"none"!==(0,i.l)(o,"display")){if("auto"===r.slidesPerView){C&&(h[M].style[e("width")]="");const a=getComputedStyle(o),s=o.style.transform,u=o.style.webkitTransform;if(s&&(o.style.transform="none"),u&&(o.style.webkitTransform="none"),r.roundLengths)k=t.isHorizontal()?(0,i.f)(o,"width",!0):(0,i.f)(o,"height",!0);else{const t=n(a,"width"),e=n(a,"padding-left"),r=n(a,"padding-right"),i=n(a,"margin-left"),s=n(a,"margin-right"),u=a.getPropertyValue("box-sizing");if(u&&"border-box"===u)k=t+i+s;else{const{clientWidth:n,offsetWidth:a}=o;k=t+e+r+i+s+(a-n)}}s&&(o.style.transform=s),u&&(o.style.webkitTransform=u),r.roundLengths&&(k=Math.floor(k))}else k=(s-(r.slidesPerView-1)*_)/r.slidesPerView,r.roundLengths&&(k=Math.floor(k)),h[M]&&(h[M].style[e("width")]=`${k}px`);h[M]&&(h[M].swiperSlideSize=k),v.push(k),r.centeredSlides?(w=w+k/2+S/2+_,0===S&&0!==M&&(w=w-s/2-_),0===M&&(w=w-s/2-_),Math.abs(w)<.001&&(w=0),r.roundLengths&&(w=Math.floor(w)),E%r.slidesPerGroup===0&&p.push(w),g.push(w)):(r.roundLengths&&(w=Math.floor(w)),(E-Math.min(t.params.slidesPerGroupSkip,E))%t.params.slidesPerGroup===0&&p.push(w),g.push(w),w=w+k+_),t.virtualSize+=k+_,S=k,E+=1}}if(t.virtualSize=Math.max(t.virtualSize,s)+y,u&&l&&("slide"===r.effect||"coverflow"===r.effect)&&(o.style.width=`${t.virtualSize+_}px`),r.setWrapperSize&&(o.style[e("width")]=`${t.virtualSize+_}px`),T&&t.grid.updateWrapperSize(k,p,e),!r.centeredSlides){const e=[];for(let n=0;n<p.length;n+=1){let i=p[n];r.roundLengths&&(i=Math.floor(i)),p[n]<=t.virtualSize-s&&e.push(i)}p=e,Math.floor(t.virtualSize-s)-Math.floor(p[p.length-1])>1&&p.push(t.virtualSize-s)}if(c&&r.loop){const e=v[0]+_;if(r.slidesPerGroup>1){const n=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/r.slidesPerGroup),i=e*r.slidesPerGroup;for(let t=0;t<n;t+=1)p.push(p[p.length-1]+i)}for(let n=0;n<t.virtual.slidesBefore+t.virtual.slidesAfter;n+=1)1===r.slidesPerGroup&&p.push(p[p.length-1]+e),g.push(g[g.length-1]+e),t.virtualSize+=e}if(0===p.length&&(p=[0]),0!==_){const n=t.isHorizontal()&&u?"marginLeft":e("marginRight");h.filter(((t,e)=>!(r.cssMode&&!r.loop)||e!==h.length-1)).forEach((t=>{t.style[n]=`${_}px`}))}if(r.centeredSlides&&r.centeredSlidesBounds){let t=0;v.forEach((e=>{t+=e+(_||0)})),t-=_;const e=t-s;p=p.map((t=>t<=0?-m:t>e?e+y:t))}if(r.centerInsufficientSlides){let t=0;if(v.forEach((e=>{t+=e+(_||0)})),t-=_,t<s){const e=(s-t)/2;p.forEach(((t,n)=>{p[n]=t-e})),g.forEach(((t,n)=>{g[n]=t+e}))}}if(Object.assign(t,{slides:h,snapGrid:p,slidesGrid:g,slidesSizesGrid:v}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){(0,i.s)(o,"--swiper-centered-offset-before",-p[0]+"px"),(0,i.s)(o,"--swiper-centered-offset-after",t.size/2-v[v.length-1]/2+"px");const e=-t.snapGrid[0],n=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map((t=>t+e)),t.slidesGrid=t.slidesGrid.map((t=>t+n))}if(d!==f&&t.emit("slidesLengthChange"),p.length!==b&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),g.length!==x&&t.emit("slidesGridLengthChange"),r.watchSlidesProgress&&t.updateSlidesOffset(),!c&&!r.cssMode&&("slide"===r.effect||"fade"===r.effect)){const e=`${r.containerModifierClass}backface-hidden`,n=t.el.classList.contains(e);d<=r.maxBackfaceHiddenSlides?n||t.el.classList.add(e):n&&t.el.classList.remove(e)}}function b(t){const e=this,n=[],r=e.virtual&&e.params.virtual.enabled;let i,o=0;"number"===typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);const a=t=>r?e.slides[e.getSlideIndexByData(t)]:e.slides[t];if("auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach((t=>{n.push(t)}));else for(i=0;i<Math.ceil(e.params.slidesPerView);i+=1){const t=e.activeIndex+i;if(t>e.slides.length&&!r)break;n.push(a(t))}else n.push(a(e.activeIndex));for(i=0;i<n.length;i+=1)if("undefined"!==typeof n[i]){const t=n[i].offsetHeight;o=t>o?t:o}(o||0===o)&&(e.wrapperEl.style.height=`${o}px`)}function x(){const t=this,e=t.slides,n=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let r=0;r<e.length;r+=1)e[r].swiperSlideOffset=(t.isHorizontal()?e[r].offsetLeft:e[r].offsetTop)-n-t.cssOverflowAdjustment()}function _(t){void 0===t&&(t=this&&this.translate||0);const e=this,n=e.params,{slides:r,rtlTranslate:i,snapGrid:o}=e;if(0===r.length)return;"undefined"===typeof r[0].swiperSlideOffset&&e.updateSlidesOffset();let a=-t;i&&(a=t),r.forEach((t=>{t.classList.remove(n.slideVisibleClass)})),e.visibleSlidesIndexes=[],e.visibleSlides=[];let s=n.spaceBetween;"string"===typeof s&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*e.size:"string"===typeof s&&(s=parseFloat(s));for(let u=0;u<r.length;u+=1){const t=r[u];let l=t.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(l-=r[0].swiperSlideOffset);const c=(a+(n.centeredSlides?e.minTranslate():0)-l)/(t.swiperSlideSize+s),f=(a-o[0]+(n.centeredSlides?e.minTranslate():0)-l)/(t.swiperSlideSize+s),h=-(a-l),d=h+e.slidesSizesGrid[u],p=h>=0&&h<e.size-1||d>1&&d<=e.size||h<=0&&d>=e.size;p&&(e.visibleSlides.push(t),e.visibleSlidesIndexes.push(u),r[u].classList.add(n.slideVisibleClass)),t.progress=i?-c:c,t.originalProgress=i?-f:f}}function w(t){const e=this;if("undefined"===typeof t){const n=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*n||0}const n=e.params,r=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:o,isEnd:a,progressLoop:s}=e;const u=o,l=a;if(0===r)i=0,o=!0,a=!0;else{i=(t-e.minTranslate())/r;const n=Math.abs(t-e.minTranslate())<1,s=Math.abs(t-e.maxTranslate())<1;o=n||i<=0,a=s||i>=1,n&&(i=0),s&&(i=1)}if(n.loop){const n=e.getSlideIndexByData(0),r=e.getSlideIndexByData(e.slides.length-1),i=e.slidesGrid[n],o=e.slidesGrid[r],a=e.slidesGrid[e.slidesGrid.length-1],u=Math.abs(t);s=u>=i?(u-i)/a:(u+a-o)/a,s>1&&(s-=1)}Object.assign(e,{progress:i,progressLoop:s,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),o&&!u&&e.emit("reachBeginning toEdge"),a&&!l&&e.emit("reachEnd toEdge"),(u&&!o||l&&!a)&&e.emit("fromEdge"),e.emit("progress",i)}function S(){const t=this,{slides:e,params:n,slidesEl:r,activeIndex:o}=t,a=t.virtual&&n.virtual.enabled,s=t=>(0,i.e)(r,`.${n.slideClass}${t}, swiper-slide${t}`)[0];let u;if(e.forEach((t=>{t.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)})),a)if(n.loop){let e=o-t.virtual.slidesBefore;e<0&&(e=t.virtual.slides.length+e),e>=t.virtual.slides.length&&(e-=t.virtual.slides.length),u=s(`[data-swiper-slide-index="${e}"]`)}else u=s(`[data-swiper-slide-index="${o}"]`);else u=e[o];if(u){u.classList.add(n.slideActiveClass);let t=(0,i.m)(u,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!t&&(t=e[0]),t&&t.classList.add(n.slideNextClass);let r=(0,i.o)(u,`.${n.slideClass}, swiper-slide`)[0];n.loop&&0===!r&&(r=e[e.length-1]),r&&r.classList.add(n.slidePrevClass)}t.emitSlidesClasses()}const E=(t,e)=>{if(!t||t.destroyed||!t.params)return;const n=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,r=e.closest(n());if(r){let e=r.querySelector(`.${t.params.lazyPreloaderClass}`);!e&&t.isElement&&(r.shadowRoot?e=r.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{r.shadowRoot&&(e=r.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),e&&e.remove())}))),e&&e.remove()}},T=(t,e)=>{if(!t.slides[e])return;const n=t.slides[e].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},k=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const n=t.slides.length;if(!n||!e||e<0)return;e=Math.min(e,n);const r="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),i=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const n=i,o=[n-e];return o.push(...Array.from({length:e}).map(((t,e)=>n+r+e))),void t.slides.forEach(((e,n)=>{o.includes(e.column)&&T(t,n)}))}const o=i+r-1;if(t.params.rewind||t.params.loop)for(let a=i-e;a<=o+e;a+=1){const e=(a%n+n)%n;(e<i||e>o)&&T(t,e)}else for(let a=Math.max(i-e,0);a<=Math.min(o+e,n-1);a+=1)a!==i&&(a>o||a<i)&&T(t,a)};function C(t){const{slidesGrid:e,params:n}=t,r=t.rtlTranslate?t.translate:-t.translate;let i;for(let o=0;o<e.length;o+=1)"undefined"!==typeof e[o+1]?r>=e[o]&&r<e[o+1]-(e[o+1]-e[o])/2?i=o:r>=e[o]&&r<e[o+1]&&(i=o+1):r>=e[o]&&(i=o);return n.normalizeSlideIndex&&(i<0||"undefined"===typeof i)&&(i=0),i}function M(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:a,snapIndex:s}=e;let u,l=t;const c=t=>{let n=t-e.virtual.slidesBefore;return n<0&&(n=e.virtual.slides.length+n),n>=e.virtual.slides.length&&(n-=e.virtual.slides.length),n};if("undefined"===typeof l&&(l=C(e)),r.indexOf(n)>=0)u=r.indexOf(n);else{const t=Math.min(i.slidesPerGroupSkip,l);u=t+Math.floor((l-t)/i.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),l===o)return u!==s&&(e.snapIndex=u,e.emit("snapIndexChange")),void(e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=c(l)));let f;f=e.virtual&&i.virtual.enabled&&i.loop?c(l):e.slides[l]?parseInt(e.slides[l].getAttribute("data-swiper-slide-index")||l,10):l,Object.assign(e,{previousSnapIndex:s,snapIndex:u,previousRealIndex:a,realIndex:f,previousIndex:o,activeIndex:l}),e.initialized&&k(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function A(t,e){const n=this,r=n.params;let i=t.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach((t=>{!i&&t.matches&&t.matches(`.${r.slideClass}, swiper-slide`)&&(i=t)}));let o,a=!1;if(i)for(let s=0;s<n.slides.length;s+=1)if(n.slides[s]===i){a=!0,o=s;break}if(!i||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o,r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var I={updateSize:m,updateSlides:y,updateAutoHeight:b,updateSlidesOffset:x,updateSlidesProgress:_,updateProgress:w,updateSlidesClasses:S,updateActiveIndex:M,updateClickedSlide:A};function O(t){void 0===t&&(t=this.isHorizontal()?"x":"y");const e=this,{params:n,rtlTranslate:r,translate:o,wrapperEl:a}=e;if(n.virtualTranslate)return r?-o:o;if(n.cssMode)return o;let s=(0,i.h)(a,t);return s+=e.cssOverflowAdjustment(),r&&(s=-s),s||0}function D(t,e){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:a}=n;let s=0,u=0;const l=0;let c;n.isHorizontal()?s=r?-t:t:u=t,i.roundLengths&&(s=Math.floor(s),u=Math.floor(u)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:u,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-s:-u:i.virtualTranslate||(n.isHorizontal()?s-=n.cssOverflowAdjustment():u-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${s}px, ${u}px, ${l}px)`);const f=n.maxTranslate()-n.minTranslate();c=0===f?0:(t-n.minTranslate())/f,c!==a&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)}function P(){return-this.snapGrid[0]}function L(){return-this.snapGrid[this.snapGrid.length-1]}function N(t,e,n,r,o){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0),void 0===r&&(r=!0);const a=this,{params:s,wrapperEl:u}=a;if(a.animating&&s.preventInteractionOnTransition)return!1;const l=a.minTranslate(),c=a.maxTranslate();let f;if(f=r&&t>l?l:r&&t<c?c:t,a.updateProgress(f),s.cssMode){const t=a.isHorizontal();if(0===e)u[t?"scrollLeft":"scrollTop"]=-f;else{if(!a.support.smoothScroll)return(0,i.p)({swiper:a,targetPosition:-f,side:t?"left":"top"}),!0;u.scrollTo({[t?"left":"top"]:-f,behavior:"smooth"})}return!0}return 0===e?(a.setTransition(0),a.setTranslate(f),n&&(a.emit("beforeTransitionStart",e,o),a.emit("transitionEnd"))):(a.setTransition(e),a.setTranslate(f),n&&(a.emit("beforeTransitionStart",e,o),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(t){a&&!a.destroyed&&t.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,n&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}var R={getTranslate:O,setTranslate:D,minTranslate:P,maxTranslate:L,translateTo:N};function j(t,e){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${t}ms`,n.wrapperEl.style.transitionDelay=0===t?"0ms":""),n.emit("setTransition",t,e)}function F(t){let{swiper:e,runCallbacks:n,direction:r,step:i}=t;const{activeIndex:o,previousIndex:a}=e;let s=r;if(s||(s=o>a?"next":o<a?"prev":"reset"),e.emit(`transition${i}`),n&&o!==a){if("reset"===s)return void e.emit(`slideResetTransition${i}`);e.emit(`slideChangeTransition${i}`),"next"===s?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`)}}function B(t,e){void 0===t&&(t=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),F({swiper:n,runCallbacks:t,direction:e,step:"Start"}))}function z(t,e){void 0===t&&(t=!0);const n=this,{params:r}=n;n.animating=!1,r.cssMode||(n.setTransition(0),F({swiper:n,runCallbacks:t,direction:e,step:"End"}))}var Z={setTransition:j,transitionStart:B,transitionEnd:z};function U(t,e,n,r,o){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0),"string"===typeof t&&(t=parseInt(t,10));const a=this;let s=t;s<0&&(s=0);const{params:u,snapGrid:l,slidesGrid:c,previousIndex:f,activeIndex:h,rtlTranslate:d,wrapperEl:p,enabled:g}=a;if(a.animating&&u.preventInteractionOnTransition||!g&&!r&&!o)return!1;const v=Math.min(a.params.slidesPerGroupSkip,s);let m=v+Math.floor((s-v)/a.params.slidesPerGroup);m>=l.length&&(m=l.length-1);const y=-l[m];if(u.normalizeSlideIndex)for(let i=0;i<c.length;i+=1){const t=-Math.floor(100*y),e=Math.floor(100*c[i]),n=Math.floor(100*c[i+1]);"undefined"!==typeof c[i+1]?t>=e&&t<n-(n-e)/2?s=i:t>=e&&t<n&&(s=i+1):t>=e&&(s=i)}if(a.initialized&&s!==h){if(!a.allowSlideNext&&(d?y>a.translate&&y>a.minTranslate():y<a.translate&&y<a.minTranslate()))return!1;if(!a.allowSlidePrev&&y>a.translate&&y>a.maxTranslate()&&(h||0)!==s)return!1}let b;if(s!==(f||0)&&n&&a.emit("beforeSlideChangeStart"),a.updateProgress(y),b=s>h?"next":s<h?"prev":"reset",d&&-y===a.translate||!d&&y===a.translate)return a.updateActiveIndex(s),u.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==u.effect&&a.setTranslate(y),"reset"!==b&&(a.transitionStart(n,b),a.transitionEnd(n,b)),!1;if(u.cssMode){const t=a.isHorizontal(),n=d?y:-y;if(0===e){const e=a.virtual&&a.params.virtual.enabled;e&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),e&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{p[t?"scrollLeft":"scrollTop"]=n}))):p[t?"scrollLeft":"scrollTop"]=n,e&&requestAnimationFrame((()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1}))}else{if(!a.support.smoothScroll)return(0,i.p)({swiper:a,targetPosition:n,side:t?"left":"top"}),!0;p.scrollTo({[t?"left":"top"]:n,behavior:"smooth"})}return!0}return a.setTransition(e),a.setTranslate(y),a.updateActiveIndex(s),a.updateSlidesClasses(),a.emit("beforeTransitionStart",e,r),a.transitionStart(n,b),0===e?a.transitionEnd(n,b):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(t){a&&!a.destroyed&&t.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,b))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0}function H(t,e,n,r){if(void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0),"string"===typeof t){const e=parseInt(t,10);t=e}const i=this;let o=t;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?o+=i.virtual.slidesBefore:o=i.getSlideIndexByData(o)),i.slideTo(o,e,n,r)}function $(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);const r=this,{enabled:i,params:o,animating:a}=r;if(!i)return r;let s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));const u=r.activeIndex<o.slidesPerGroupSkip?1:s,l=r.virtual&&o.virtual.enabled;if(o.loop){if(a&&!l&&o.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&o.cssMode)return requestAnimationFrame((()=>{r.slideTo(r.activeIndex+u,t,e,n)})),!0}return o.rewind&&r.isEnd?r.slideTo(0,t,e,n):r.slideTo(r.activeIndex+u,t,e,n)}function G(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);const r=this,{params:i,snapGrid:o,slidesGrid:a,rtlTranslate:s,enabled:u,animating:l}=r;if(!u)return r;const c=r.virtual&&i.virtual.enabled;if(i.loop){if(l&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=s?r.translate:-r.translate;function h(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const d=h(f),p=o.map((t=>h(t)));let g=o[p.indexOf(d)-1];if("undefined"===typeof g&&i.cssMode){let t;o.forEach(((e,n)=>{d>=e&&(t=n)})),"undefined"!==typeof t&&(g=o[t>0?t-1:t])}let v=0;if("undefined"!==typeof g&&(v=a.indexOf(g),v<0&&(v=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(v=v-r.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),i.rewind&&r.isBeginning){const i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,t,e,n)}return i.loop&&0===r.activeIndex&&i.cssMode?(requestAnimationFrame((()=>{r.slideTo(v,t,e,n)})),!0):r.slideTo(v,t,e,n)}function W(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);const r=this;return r.slideTo(r.activeIndex,t,e,n)}function V(t,e,n,r){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),void 0===r&&(r=.5);const i=this;let o=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),u=i.rtlTranslate?i.translate:-i.translate;if(u>=i.snapGrid[s]){const t=i.snapGrid[s],e=i.snapGrid[s+1];u-t>(e-t)*r&&(o+=i.params.slidesPerGroup)}else{const t=i.snapGrid[s-1],e=i.snapGrid[s];u-t<=(e-t)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,t,e,n)}function Y(){const t=this,{params:e,slidesEl:n}=t,r="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let o,a=t.clickedIndex;const s=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;o=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?a<t.loopedSlides-r/2||a>t.slides.length-t.loopedSlides+r/2?(t.loopFix(),a=t.getSlideIndex((0,i.e)(n,`${s}[data-swiper-slide-index="${o}"]`)[0]),(0,i.n)((()=>{t.slideTo(a)}))):t.slideTo(a):a>t.slides.length-r?(t.loopFix(),a=t.getSlideIndex((0,i.e)(n,`${s}[data-swiper-slide-index="${o}"]`)[0]),(0,i.n)((()=>{t.slideTo(a)}))):t.slideTo(a)}else t.slideTo(a)}var X={slideTo:U,slideToLoop:H,slideNext:$,slidePrev:G,slideReset:W,slideToClosest:V,slideToClickedSlide:Y};function q(t){const e=this,{params:n,slidesEl:r}=e;if(!n.loop||e.virtual&&e.params.virtual.enabled)return;const o=(0,i.e)(r,`.${n.slideClass}, swiper-slide`);o.forEach(((t,e)=>{t.setAttribute("data-swiper-slide-index",e)})),e.loopFix({slideRealIndex:t,direction:n.centeredSlides?void 0:"next"})}function K(t){let{slideRealIndex:e,slideTo:n=!0,direction:r,setTranslate:i,activeSlideIndex:o,byController:a,byMousewheel:s}=void 0===t?{}:t;const u=this;if(!u.params.loop)return;u.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:f,slidesEl:h,params:d}=u;if(u.allowSlidePrev=!0,u.allowSlideNext=!0,u.virtual&&d.virtual.enabled)return n&&(d.centeredSlides||0!==u.snapIndex?d.centeredSlides&&u.snapIndex<d.slidesPerView?u.slideTo(u.virtual.slides.length+u.snapIndex,0,!1,!0):u.snapIndex===u.snapGrid.length-1&&u.slideTo(u.virtual.slidesBefore,0,!1,!0):u.slideTo(u.virtual.slides.length,0,!1,!0)),u.allowSlidePrev=c,u.allowSlideNext=f,void u.emit("loopFix");const p="auto"===d.slidesPerView?u.slidesPerViewDynamic():Math.ceil(parseFloat(d.slidesPerView,10));let g=d.loopedSlides||p;g%d.slidesPerGroup!==0&&(g+=d.slidesPerGroup-g%d.slidesPerGroup),u.loopedSlides=g;const v=[],m=[];let y=u.activeIndex;"undefined"===typeof o?o=u.getSlideIndex(u.slides.filter((t=>t.classList.contains(d.slideActiveClass)))[0]):y=o;const b="next"===r||!r,x="prev"===r||!r;let _=0,w=0;if(o<g){_=Math.max(g-o,d.slidesPerGroup);for(let t=0;t<g-o;t+=1){const e=t-Math.floor(t/l.length)*l.length;v.push(l.length-e-1)}}else if(o>u.slides.length-2*g){w=Math.max(o-(u.slides.length-2*g),d.slidesPerGroup);for(let t=0;t<w;t+=1){const e=t-Math.floor(t/l.length)*l.length;m.push(e)}}if(x&&v.forEach((t=>{u.slides[t].swiperLoopMoveDOM=!0,h.prepend(u.slides[t]),u.slides[t].swiperLoopMoveDOM=!1})),b&&m.forEach((t=>{u.slides[t].swiperLoopMoveDOM=!0,h.append(u.slides[t]),u.slides[t].swiperLoopMoveDOM=!1})),u.recalcSlides(),"auto"===d.slidesPerView&&u.updateSlides(),d.watchSlidesProgress&&u.updateSlidesOffset(),n)if(v.length>0&&x)if("undefined"===typeof e){const t=u.slidesGrid[y],e=u.slidesGrid[y+_],n=e-t;s?u.setTranslate(u.translate-n):(u.slideTo(y+_,0,!1,!0),i&&(u.touches[u.isHorizontal()?"startX":"startY"]+=n,u.touchEventsData.currentTranslate=u.translate))}else i&&(u.slideToLoop(e,0,!1,!0),u.touchEventsData.currentTranslate=u.translate);else if(m.length>0&&b)if("undefined"===typeof e){const t=u.slidesGrid[y],e=u.slidesGrid[y-w],n=e-t;s?u.setTranslate(u.translate-n):(u.slideTo(y-w,0,!1,!0),i&&(u.touches[u.isHorizontal()?"startX":"startY"]+=n,u.touchEventsData.currentTranslate=u.translate))}else u.slideToLoop(e,0,!1,!0);if(u.allowSlidePrev=c,u.allowSlideNext=f,u.controller&&u.controller.control&&!a){const t={slideRealIndex:e,direction:r,setTranslate:i,activeSlideIndex:o,byController:!0};Array.isArray(u.controller.control)?u.controller.control.forEach((e=>{!e.destroyed&&e.params.loop&&e.loopFix({...t,slideTo:e.params.slidesPerView===d.slidesPerView&&n})})):u.controller.control instanceof u.constructor&&u.controller.control.params.loop&&u.controller.control.loopFix({...t,slideTo:u.controller.control.params.slidesPerView===d.slidesPerView&&n})}u.emit("loopFix")}function J(){const t=this,{params:e,slidesEl:n}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const r=[];t.slides.forEach((t=>{const e="undefined"===typeof t.swiperSlideIndex?1*t.getAttribute("data-swiper-slide-index"):t.swiperSlideIndex;r[e]=t})),t.slides.forEach((t=>{t.removeAttribute("data-swiper-slide-index")})),r.forEach((t=>{n.append(t)})),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Q={loopCreate:q,loopFix:K,loopDestroy:J};function tt(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n="container"===e.params.touchEventsTarget?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1}))}function et(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1})))}var nt={setGrabCursor:tt,unsetGrabCursor:et};function rt(t,e){function n(e){if(!e||e===(0,r.g)()||e===(0,r.a)())return null;e.assignedSlot&&(e=e.assignedSlot);const i=e.closest(t);return i||e.getRootNode?i||n(e.getRootNode().host):null}return void 0===e&&(e=this),n(e)}function it(t){const e=this,n=(0,r.g)(),o=(0,r.a)(),a=e.touchEventsData;a.evCache.push(t);const{params:s,touches:u,enabled:l}=e;if(!l)return;if(!s.simulateTouch&&"mouse"===t.pointerType)return;if(e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let c=t;c.originalEvent&&(c=c.originalEvent);let f=c.target;if("wrapper"===s.touchEventsTarget&&!e.wrapperEl.contains(f))return;if("which"in c&&3===c.which)return;if("button"in c&&c.button>0)return;if(a.isTouched&&a.isMoved)return;const h=!!s.noSwipingClass&&""!==s.noSwipingClass,d=t.composedPath?t.composedPath():t.path;h&&c.target&&c.target.shadowRoot&&d&&(f=d[0]);const p=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,g=!(!c.target||!c.target.shadowRoot);if(s.noSwiping&&(g?rt(p,f):f.closest(p)))return void(e.allowClick=!0);if(s.swipeHandler&&!f.closest(s.swipeHandler))return;u.currentX=c.pageX,u.currentY=c.pageY;const v=u.currentX,m=u.currentY,y=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,b=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(y&&(v<=b||v>=o.innerWidth-b)){if("prevent"!==y)return;t.preventDefault()}Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),u.startX=v,u.startY=m,a.touchStartTime=(0,i.d)(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(a.allowThresholdMove=!1);let x=!0;f.matches(a.focusableElements)&&(x=!1,"SELECT"===f.nodeName&&(a.isTouched=!1)),n.activeElement&&n.activeElement.matches(a.focusableElements)&&n.activeElement!==f&&n.activeElement.blur();const _=x&&e.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!_||f.isContentEditable||c.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",c)}function ot(t){const e=(0,r.g)(),n=this,o=n.touchEventsData,{params:a,touches:s,rtlTranslate:u,enabled:l}=n;if(!l)return;if(!a.simulateTouch&&"mouse"===t.pointerType)return;let c=t;if(c.originalEvent&&(c=c.originalEvent),!o.isTouched)return void(o.startMoving&&o.isScrolling&&n.emit("touchMoveOpposite",c));const f=o.evCache.findIndex((t=>t.pointerId===c.pointerId));f>=0&&(o.evCache[f]=c);const h=o.evCache.length>1?o.evCache[0]:c,d=h.pageX,p=h.pageY;if(c.preventedByNestedSwiper)return s.startX=d,void(s.startY=p);if(!n.allowTouchMove)return c.target.matches(o.focusableElements)||(n.allowClick=!1),void(o.isTouched&&(Object.assign(s,{startX:d,startY:p,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:d,currentY:p}),o.touchStartTime=(0,i.d)()));if(a.touchReleaseOnEdges&&!a.loop)if(n.isVertical()){if(p<s.startY&&n.translate<=n.maxTranslate()||p>s.startY&&n.translate>=n.minTranslate())return o.isTouched=!1,void(o.isMoved=!1)}else if(d<s.startX&&n.translate<=n.maxTranslate()||d>s.startX&&n.translate>=n.minTranslate())return;if(e.activeElement&&c.target===e.activeElement&&c.target.matches(o.focusableElements))return o.isMoved=!0,void(n.allowClick=!1);if(o.allowTouchCallbacks&&n.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;s.currentX=d,s.currentY=p;const g=s.currentX-s.startX,v=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(g**2+v**2)<n.params.threshold)return;if("undefined"===typeof o.isScrolling){let t;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?o.isScrolling=!1:g*g+v*v>=25&&(t=180*Math.atan2(Math.abs(v),Math.abs(g))/Math.PI,o.isScrolling=n.isHorizontal()?t>a.touchAngle:90-t>a.touchAngle)}if(o.isScrolling&&n.emit("touchMoveOpposite",c),"undefined"===typeof o.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(o.startMoving=!0)),o.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&o.evCache.length>1)return void(o.isTouched=!1);if(!o.startMoving)return;n.allowClick=!1,!a.cssMode&&c.cancelable&&c.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&c.stopPropagation();let m=n.isHorizontal()?g:v,y=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;a.oneWayMovement&&(m=Math.abs(m)*(u?1:-1),y=Math.abs(y)*(u?1:-1)),s.diff=m,m*=a.touchRatio,u&&(m=-m,y=-y);const b=n.touchesDirection;n.swipeDirection=m>0?"prev":"next",n.touchesDirection=y>0?"prev":"next";const x=n.params.loop&&!a.cssMode,_="next"===n.swipeDirection&&n.allowSlideNext||"prev"===n.swipeDirection&&n.allowSlidePrev;if(!o.isMoved){if(x&&_&&n.loopFix({direction:n.swipeDirection}),o.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const t=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(t)}o.allowMomentumBounce=!1,!a.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}let w;o.isMoved&&b!==n.touchesDirection&&x&&_&&Math.abs(m)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),w=!0),n.emit("sliderMove",c),o.isMoved=!0,o.currentTranslate=m+o.startTranslate;let S=!0,E=a.resistanceRatio;if(a.touchReleaseOnEdges&&(E=0),m>0?(x&&_&&!w&&o.currentTranslate>(a.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>n.minTranslate()&&(S=!1,a.resistance&&(o.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+o.startTranslate+m)**E))):m<0&&(x&&_&&!w&&o.currentTranslate<(a.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===a.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),o.currentTranslate<n.maxTranslate()&&(S=!1,a.resistance&&(o.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-o.startTranslate-m)**E))),S&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&o.currentTranslate<o.startTranslate&&(o.currentTranslate=o.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&o.currentTranslate>o.startTranslate&&(o.currentTranslate=o.startTranslate),n.allowSlidePrev||n.allowSlideNext||(o.currentTranslate=o.startTranslate),a.threshold>0){if(!(Math.abs(m)>a.threshold||o.allowThresholdMove))return void(o.currentTranslate=o.startTranslate);if(!o.allowThresholdMove)return o.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,o.currentTranslate=o.startTranslate,void(s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}a.followFinger&&!a.cssMode&&((a.freeMode&&a.freeMode.enabled&&n.freeMode||a.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(o.currentTranslate),n.setTranslate(o.currentTranslate))}function at(t){const e=this,n=e.touchEventsData,r=n.evCache.findIndex((e=>e.pointerId===t.pointerId));if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(t.type)){const n=["pointercancel","contextmenu"].includes(t.type)&&(e.browser.isSafari||e.browser.isWebView);if(!n)return}const{params:o,touches:a,rtlTranslate:s,slidesGrid:u,enabled:l}=e;if(!l)return;if(!o.simulateTouch&&"mouse"===t.pointerType)return;let c=t;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const f=(0,i.d)(),h=f-n.touchStartTime;if(e.allowClick){const t=c.path||c.composedPath&&c.composedPath();e.updateClickedSlide(t&&t[0]||c.target,t),e.emit("tap click",c),h<300&&f-n.lastClickTime<300&&e.emit("doubleTap doubleClick",c)}if(n.lastClickTime=(0,i.d)(),(0,i.n)((()=>{e.destroyed||(e.allowClick=!0)})),!n.isTouched||!n.isMoved||!e.swipeDirection||0===a.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let d;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,d=o.followFinger?s?e.translate:-e.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void e.freeMode.onTouchEnd({currentPos:d});let p=0,g=e.slidesSizesGrid[0];for(let i=0;i<u.length;i+=i<o.slidesPerGroupSkip?1:o.slidesPerGroup){const t=i<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;"undefined"!==typeof u[i+t]?d>=u[i]&&d<u[i+t]&&(p=i,g=u[i+t]-u[i]):d>=u[i]&&(p=i,g=u[u.length-1]-u[u.length-2])}let v=null,m=null;o.rewind&&(e.isBeginning?m=o.virtual&&o.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const y=(d-u[p])/g,b=p<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(h>o.longSwipesMs){if(!o.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(y>=o.longSwipesRatio?e.slideTo(o.rewind&&e.isEnd?v:p+b):e.slideTo(p)),"prev"===e.swipeDirection&&(y>1-o.longSwipesRatio?e.slideTo(p+b):null!==m&&y<0&&Math.abs(y)>o.longSwipesRatio?e.slideTo(m):e.slideTo(p))}else{if(!o.shortSwipes)return void e.slideTo(e.activeIndex);const t=e.navigation&&(c.target===e.navigation.nextEl||c.target===e.navigation.prevEl);t?c.target===e.navigation.nextEl?e.slideTo(p+b):e.slideTo(p):("next"===e.swipeDirection&&e.slideTo(null!==v?v:p+b),"prev"===e.swipeDirection&&e.slideTo(null!==m?m:p))}}function st(){const t=this,{params:e,el:n}=t;if(n&&0===n.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const s=a&&e.loop;!("auto"===e.slidesPerView||e.slidesPerView>1)||!t.isEnd||t.isBeginning||t.params.centeredSlides||s?t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0):t.slideTo(t.slides.length-1,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout((()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()}),500)),t.allowSlidePrev=i,t.allowSlideNext=r,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function ut(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function lt(){const t=this,{wrapperEl:e,rtlTranslate:n,enabled:r}=t;if(!r)return;let i;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const o=t.maxTranslate()-t.minTranslate();i=0===o?0:(t.translate-t.minTranslate())/o,i!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function ct(t){const e=this;E(e,t.target),e.params.cssMode||"auto"!==e.params.slidesPerView&&!e.params.autoHeight||e.update()}let ft=!1;function ht(){}const dt=(t,e)=>{const n=(0,r.g)(),{params:i,el:o,wrapperEl:a,device:s}=t,u=!!i.nested,l="on"===e?"addEventListener":"removeEventListener",c=e;o[l]("pointerdown",t.onTouchStart,{passive:!1}),n[l]("pointermove",t.onTouchMove,{passive:!1,capture:u}),n[l]("pointerup",t.onTouchEnd,{passive:!0}),n[l]("pointercancel",t.onTouchEnd,{passive:!0}),n[l]("pointerout",t.onTouchEnd,{passive:!0}),n[l]("pointerleave",t.onTouchEnd,{passive:!0}),n[l]("contextmenu",t.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&o[l]("click",t.onClick,!0),i.cssMode&&a[l]("scroll",t.onScroll),i.updateOnWindowResize?t[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",st,!0):t[c]("observerUpdate",st,!0),o[l]("load",t.onLoad,{capture:!0})};function pt(){const t=this,e=(0,r.g)(),{params:n}=t;t.onTouchStart=it.bind(t),t.onTouchMove=ot.bind(t),t.onTouchEnd=at.bind(t),n.cssMode&&(t.onScroll=lt.bind(t)),t.onClick=ut.bind(t),t.onLoad=ct.bind(t),ft||(e.addEventListener("touchstart",ht),ft=!0),dt(t,"on")}function gt(){const t=this;dt(t,"off")}var vt={attachEvents:pt,detachEvents:gt};const mt=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function yt(){const t=this,{realIndex:e,initialized:n,params:r,el:o}=t,a=r.breakpoints;if(!a||a&&0===Object.keys(a).length)return;const s=t.getBreakpoint(a,t.params.breakpointsBase,t.el);if(!s||t.currentBreakpoint===s)return;const u=s in a?a[s]:void 0,l=u||t.originalParams,c=mt(t,r),f=mt(t,l),h=r.enabled;c&&!f?(o.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&f&&(o.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===r.grid.fill)&&o.classList.add(`${r.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((e=>{if("undefined"===typeof l[e])return;const n=r[e]&&r[e].enabled,i=l[e]&&l[e].enabled;n&&!i&&t[e].disable(),!n&&i&&t[e].enable()}));const d=l.direction&&l.direction!==r.direction,p=r.loop&&(l.slidesPerView!==r.slidesPerView||d),g=r.loop;d&&n&&t.changeDirection(),(0,i.q)(t.params,l);const v=t.params.enabled,m=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),h&&!v?t.disable():!h&&v&&t.enable(),t.currentBreakpoint=s,t.emit("_beforeBreakpoint",l),n&&(p?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!g&&m?(t.loopCreate(e),t.updateSlides()):g&&!m&&t.loopDestroy()),t.emit("breakpoint",l)}function bt(t,e,n){if(void 0===e&&(e="window"),!t||"container"===e&&!n)return;let i=!1;const o=(0,r.a)(),a="window"===e?o.innerHeight:n.clientHeight,s=Object.keys(t).map((t=>{if("string"===typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1)),n=a*e;return{value:n,point:t}}return{value:t,point:t}}));s.sort(((t,e)=>parseInt(t.value,10)-parseInt(e.value,10)));for(let r=0;r<s.length;r+=1){const{point:t,value:a}=s[r];"window"===e?o.matchMedia(`(min-width: ${a}px)`).matches&&(i=t):a<=n.clientWidth&&(i=t)}return i||"max"}var xt={setBreakpoint:yt,getBreakpoint:bt};function _t(t,e){const n=[];return t.forEach((t=>{"object"===typeof t?Object.keys(t).forEach((r=>{t[r]&&n.push(e+r)})):"string"===typeof t&&n.push(e+t)})),n}function wt(){const t=this,{classNames:e,params:n,rtl:r,el:i,device:o}=t,a=_t(["initialized",n.direction,{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);e.push(...a),i.classList.add(...e),t.emitContainerClasses()}function St(){const t=this,{el:e,classNames:n}=t;e.classList.remove(...n),t.emitContainerClasses()}var Et={addClasses:wt,removeClasses:St};function Tt(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:r}=n;if(r){const e=t.slides.length-1,n=t.slidesGrid[e]+t.slidesSizesGrid[e]+2*r;t.isLocked=t.size>n}else t.isLocked=1===t.snapGrid.length;!0===n.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===n.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var kt={checkOverflow:Tt},Ct={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Mt(t,e){return function(n){void 0===n&&(n={});const r=Object.keys(n)[0],o=n[r];"object"===typeof o&&null!==o?(!0===t[r]&&(t[r]={enabled:!0}),"navigation"===r&&t[r]&&t[r].enabled&&!t[r].prevEl&&!t[r].nextEl&&(t[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&t[r]&&t[r].enabled&&!t[r].el&&(t[r].auto=!0),r in t&&"enabled"in o?("object"!==typeof t[r]||"enabled"in t[r]||(t[r].enabled=!0),t[r]||(t[r]={enabled:!1}),(0,i.q)(e,n)):(0,i.q)(e,n)):(0,i.q)(e,n)}}const At={eventsEmitter:v,update:I,translate:R,transition:Z,slide:X,loop:Q,grabCursor:nt,events:vt,breakpoints:xt,checkOverflow:kt,classes:Et},It={};class Ot{constructor(){let t,e;for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];1===o.length&&o[0].constructor&&"Object"===Object.prototype.toString.call(o[0]).slice(8,-1)?e=o[0]:[t,e]=o,e||(e={}),e=(0,i.q)({},e),t&&!e.el&&(e.el=t);const s=(0,r.g)();if(e.el&&"string"===typeof e.el&&s.querySelectorAll(e.el).length>1){const t=[];return s.querySelectorAll(e.el).forEach((n=>{const r=(0,i.q)({},e,{el:n});t.push(new Ot(r))})),t}const u=this;u.__swiper__=!0,u.support=l(),u.device=f({userAgent:e.userAgent}),u.browser=d(),u.eventsListeners={},u.eventsAnyListeners=[],u.modules=[...u.__modules__],e.modules&&Array.isArray(e.modules)&&u.modules.push(...e.modules);const c={};u.modules.forEach((t=>{t({params:e,swiper:u,extendParams:Mt(e,c),on:u.on.bind(u),once:u.once.bind(u),off:u.off.bind(u),emit:u.emit.bind(u)})}));const h=(0,i.q)({},Ct,c);return u.params=(0,i.q)({},h,It,e),u.originalParams=(0,i.q)({},u.params),u.passedParams=(0,i.q)({},e),u.params&&u.params.on&&Object.keys(u.params.on).forEach((t=>{u.on(t,u.params.on[t])})),u.params&&u.params.onAny&&u.onAny(u.params.onAny),Object.assign(u,{enabled:u.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===u.params.direction},isVertical(){return"vertical"===u.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:u.params.allowSlideNext,allowSlidePrev:u.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:u.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.emit("_swiper"),u.params.init&&u.init(),u}getSlideIndex(t){const{slidesEl:e,params:n}=this,r=(0,i.e)(e,`.${n.slideClass}, swiper-slide`),o=(0,i.g)(r[0]);return(0,i.g)(t)-o}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")===t))[0])}recalcSlides(){const t=this,{slidesEl:e,params:n}=t;t.slides=(0,i.e)(e,`.${n.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,e){const n=this;t=Math.min(Math.max(t,0),1);const r=n.minTranslate(),i=n.maxTranslate(),o=(i-r)*t+r;n.translateTo(o,"undefined"===typeof e?0:e),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=t.el.className.split(" ").filter((e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass)));t.emit("_containerClasses",e.join(" "))}getSlideClasses(t){const e=this;return e.destroyed?"":t.className.split(" ").filter((t=>0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass))).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=[];t.slides.forEach((n=>{const r=t.getSlideClasses(n);e.push({slideEl:n,classNames:r}),t.emit("_slideClass",n,r)})),t.emit("_slideClasses",e)}slidesPerViewDynamic(t,e){void 0===t&&(t="current"),void 0===e&&(e=!1);const n=this,{params:r,slides:i,slidesGrid:o,slidesSizesGrid:a,size:s,activeIndex:u}=n;let l=1;if("number"===typeof r.slidesPerView)return r.slidesPerView;if(r.centeredSlides){let t,e=i[u]?i[u].swiperSlideSize:0;for(let n=u+1;n<i.length;n+=1)i[n]&&!t&&(e+=i[n].swiperSlideSize,l+=1,e>s&&(t=!0));for(let n=u-1;n>=0;n-=1)i[n]&&!t&&(e+=i[n].swiperSlideSize,l+=1,e>s&&(t=!0))}else if("current"===t)for(let c=u+1;c<i.length;c+=1){const t=e?o[c]+a[c]-o[u]<s:o[c]-o[u]<s;t&&(l+=1)}else for(let c=u-1;c>=0;c-=1){const t=o[u]-o[c]<s;t&&(l+=1)}return l}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:n}=t;function r(){const e=t.rtlTranslate?-1*t.translate:t.translate,n=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}let i;if(n.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach((e=>{e.complete&&E(t,e)})),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&t.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&t.isEnd&&!n.centeredSlides){const e=t.virtual&&n.virtual.enabled?t.virtual.slides:t.slides;i=t.slideTo(e.length-1,0,!1,!0)}else i=t.slideTo(t.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e){void 0===e&&(e=!0);const n=this,r=n.params.direction;return t||(t="horizontal"===r?"vertical":"horizontal"),t===r||"horizontal"!==t&&"vertical"!==t||(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${t}`),n.emitContainerClasses(),n.params.direction=t,n.slides.forEach((e=>{"vertical"===t?e.style.width="":e.style.height=""})),n.emit("changeDirection"),e&&n.update()),n}changeLanguageDirection(t){const e=this;e.rtl&&"rtl"===t||!e.rtl&&"ltr"===t||(e.rtl="rtl"===t,e.rtlTranslate="horizontal"===e.params.direction&&e.rtl,e.rtl?(e.el.classList.add(`${e.params.containerModifierClass}rtl`),e.el.dir="rtl"):(e.el.classList.remove(`${e.params.containerModifierClass}rtl`),e.el.dir="ltr"),e.update())}mount(t){const e=this;if(e.mounted)return!0;let n=t||e.params.el;if("string"===typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=e,n.parentNode&&n.parentNode.host&&"SWIPER-CONTAINER"===n.parentNode.host.nodeName&&(e.isElement=!0);const r=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`,o=()=>{if(n&&n.shadowRoot&&n.shadowRoot.querySelector){const t=n.shadowRoot.querySelector(r());return t}return(0,i.e)(n,r())[0]};let a=o();return!a&&e.params.createElements&&(a=(0,i.c)("div",e.params.wrapperClass),n.append(a),(0,i.e)(n,`.${e.params.slideClass}`).forEach((t=>{a.append(t)}))),Object.assign(e,{el:n,wrapperEl:a,slidesEl:e.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:e.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===(0,i.l)(n,"direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===(0,i.l)(n,"direction")),wrongRTL:"-webkit-box"===(0,i.l)(a,"display")}),!0}init(t){const e=this;if(e.initialized)return e;const n=e.mount(t);if(!1===n)return e;e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.loop&&e.virtual&&e.params.virtual.enabled?e.slideTo(e.params.initialSlide+e.virtual.slidesBefore,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.params.loop&&e.loopCreate(),e.attachEvents();const r=[...e.el.querySelectorAll('[loading="lazy"]')];return e.isElement&&r.push(...e.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach((t=>{t.complete?E(e,t):t.addEventListener("load",(t=>{E(e,t.target)}))})),k(e),e.initialized=!0,k(e),e.emit("init"),e.emit("afterInit"),e}destroy(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);const n=this,{params:r,el:o,wrapperEl:a,slides:s}=n;return"undefined"===typeof n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),e&&(n.removeClasses(),o.removeAttribute("style"),a.removeAttribute("style"),s&&s.length&&s.forEach((t=>{t.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),t.removeAttribute("style"),t.removeAttribute("data-swiper-slide-index")}))),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((t=>{n.off(t)})),!1!==t&&(n.el.swiper=null,(0,i.r)(n)),n.destroyed=!0),null}static extendDefaults(t){(0,i.q)(It,t)}static get extendedDefaults(){return It}static get defaults(){return Ct}static installModule(t){Ot.prototype.__modules__||(Ot.prototype.__modules__=[]);const e=Ot.prototype.__modules__;"function"===typeof t&&e.indexOf(t)<0&&e.push(t)}static use(t){return Array.isArray(t)?(t.forEach((t=>Ot.installModule(t))),Ot):(Ot.installModule(t),Ot)}}Object.keys(At).forEach((t=>{Object.keys(At[t]).forEach((e=>{Ot.prototype[e]=At[t][e]}))})),Ot.use([p,g])},97582:function(t,e,n){"use strict";n.r(e),n.d(e,{__addDisposableResource:function(){return L},__assign:function(){return o},__asyncDelegator:function(){return T},__asyncGenerator:function(){return E},__asyncValues:function(){return k},__await:function(){return S},__awaiter:function(){return p},__classPrivateFieldGet:function(){return O},__classPrivateFieldIn:function(){return P},__classPrivateFieldSet:function(){return D},__createBinding:function(){return v},__decorate:function(){return s},__disposeResources:function(){return R},__esDecorate:function(){return l},__exportStar:function(){return m},__extends:function(){return i},__generator:function(){return g},__importDefault:function(){return I},__importStar:function(){return A},__makeTemplateObject:function(){return C},__metadata:function(){return d},__param:function(){return u},__propKey:function(){return f},__read:function(){return b},__rest:function(){return a},__runInitializers:function(){return c},__setFunctionName:function(){return h},__spread:function(){return x},__spreadArray:function(){return w},__spreadArrays:function(){return _},__values:function(){return y}});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])},r(t,e)};function i(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)}var o=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],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(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 s(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}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e,n,r,i,o){function a(t){if(void 0!==t&&"function"!==typeof t)throw new TypeError("Function expected");return t}for(var s,u=r.kind,l="getter"===u?"get":"setter"===u?"set":"value",c=!e&&t?r["static"]?t:t.prototype:null,f=e||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),h=!1,d=n.length-1;d>=0;d--){var p={};for(var g in r)p[g]="access"===g?{}:r[g];for(var g in r.access)p.access[g]=r.access[g];p.addInitializer=function(t){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(t||null))};var v=(0,n[d])("accessor"===u?{get:f.get,set:f.set}:f[l],p);if("accessor"===u){if(void 0===v)continue;if(null===v||"object"!==typeof v)throw new TypeError("Object expected");(s=a(v.get))&&(f.get=s),(s=a(v.set))&&(f.set=s),(s=a(v.init))&&i.unshift(s)}else(s=a(v))&&("field"===u?i.unshift(s):f[l]=s)}c&&Object.defineProperty(c,r.name,f),h=!0}function c(t,e,n){for(var r=arguments.length>2,i=0;i<e.length;i++)n=r?e[i].call(t,n):e[i].call(t);return r?n:void 0}function f(t){return"symbol"===typeof t?t:"".concat(t)}function h(t,e,n){return"symbol"===typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})}function d(t,e){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,e)}function p(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function g(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(t){return function(e){return u([t,e])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(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=a.trys,!(i=i.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(u){s=[6,u],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var v=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]};function m(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||v(e,t,n)}function y(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 b(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function x(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function _(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(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}function w(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 S(t){return this instanceof S?(this.v=t,this):new S(t)}function E(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{u(i[t](e))}catch(n){f(o[0][3],n)}}function u(t){t.value instanceof S?Promise.resolve(t.value.v).then(l,c):f(o[0][2],t)}function l(t){s("next",t)}function c(t){s("throw",t)}function f(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function T(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:S(t[r](e)),done:!1}:i?i(e):e}:i}}function k(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"===typeof y?y(t):t[Symbol.iterator](),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,o){e=t[n](e),i(r,o,e.done,e.value)}))}}function i(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}}function C(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var M=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t["default"]=e};function A(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)&&v(e,t,n);return M(e,t),e}function I(t){return t&&t.__esModule?t:{default:t}}function O(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)}function D(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}function P(t,e){if(null===e||"object"!==typeof e&&"function"!==typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof t?e===t:t.has(e)}function L(t,e,n){if(null!==e&&void 0!==e){if("object"!==typeof e&&"function"!==typeof e)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose]}if("function"!==typeof r)throw new TypeError("Object not disposable.");t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}var N="function"===typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function R(t){function e(e){t.error=t.hasError?new N(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}function n(){while(t.stack.length){var r=t.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(t){return e(t),n()}))}catch(o){e(o)}}if(t.hasError)throw t.error}return n()}e["default"]={__extends:i,__assign:o,__rest:a,__decorate:s,__param:u,__metadata:d,__awaiter:p,__generator:g,__createBinding:v,__exportStar:m,__values:y,__read:b,__spread:x,__spreadArrays:_,__spreadArray:w,__await:S,__asyncGenerator:E,__asyncDelegator:T,__asyncValues:k,__makeTemplateObject:C,__importStar:A,__importDefault:I,__classPrivateFieldGet:O,__classPrivateFieldSet:D,__classPrivateFieldIn:P,__addDisposableResource:L,__disposeResources:R}},22201:function(t,e,n){"use strict";n.d(e,{PO:function(){return B},p7:function(){return ee}});var r=n(66252),i=n(2262);
/*!
  * vue-router v4.2.5
  * (c) 2023 Eduardo San Martin Morote
  * @license MIT
  */
const o="undefined"!==typeof window;function a(t){return t.__esModule||"Module"===t[Symbol.toStringTag]}const s=Object.assign;function u(t,e){const n={};for(const r in e){const i=e[r];n[r]=c(i)?i.map(t):t(i)}return n}const l=()=>{},c=Array.isArray;const f=/\/$/,h=t=>t.replace(f,"");function d(t,e,n="/"){let r,i={},o="",a="";const s=e.indexOf("#");let u=e.indexOf("?");return s<u&&s>=0&&(u=-1),u>-1&&(r=e.slice(0,u),o=e.slice(u+1,s>-1?s:e.length),i=t(o)),s>-1&&(r=r||e.slice(0,s),a=e.slice(s,e.length)),r=_(null!=r?r:e,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:a}}function p(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function g(t,e){return e&&t.toLowerCase().startsWith(e.toLowerCase())?t.slice(e.length)||"/":t}function v(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&m(e.matched[r],n.matched[i])&&y(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function m(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function y(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!b(t[n],e[n]))return!1;return!0}function b(t,e){return c(t)?x(t,e):c(e)?x(e,t):t===e}function x(t,e){return c(e)?t.length===e.length&&t.every(((t,n)=>t===e[n])):1===t.length&&t[0]===e}function _(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),i=r[r.length-1];".."!==i&&"."!==i||r.push("");let o,a,s=n.length-1;for(o=0;o<r.length;o++)if(a=r[o],"."!==a){if(".."!==a)break;s>1&&s--}return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var w,S;(function(t){t["pop"]="pop",t["push"]="push"})(w||(w={})),function(t){t["back"]="back",t["forward"]="forward",t["unknown"]=""}(S||(S={}));function E(t){if(!t)if(o){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return"/"!==t[0]&&"#"!==t[0]&&(t="/"+t),h(t)}const T=/^[^#]+#/;function k(t,e){return t.replace(T,"#")+e}function C(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const M=()=>({left:window.pageXOffset,top:window.pageYOffset});function A(t){let e;if("el"in t){const n=t.el,r="string"===typeof n&&n.startsWith("#");0;const i="string"===typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=C(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(null!=e.left?e.left:window.pageXOffset,null!=e.top?e.top:window.pageYOffset)}function I(t,e){const n=history.state?history.state.position-e:-1;return n+t}const O=new Map;function D(t,e){O.set(t,e)}function P(t){const e=O.get(t);return O.delete(t),e}let L=()=>location.protocol+"//"+location.host;function N(t,e){const{pathname:n,search:r,hash:i}=e,o=t.indexOf("#");if(o>-1){let e=i.includes(t.slice(o))?t.slice(o).length:1,n=i.slice(e);return"/"!==n[0]&&(n="/"+n),g(n,"")}const a=g(n,t);return a+r+i}function R(t,e,n,r){let i=[],o=[],a=null;const u=({state:o})=>{const s=N(t,location),u=n.value,l=e.value;let c=0;if(o){if(n.value=s,e.value=o,a&&a===u)return void(a=null);c=l?o.position-l.position:0}else r(s);i.forEach((t=>{t(n.value,u,{delta:c,type:w.pop,direction:c?c>0?S.forward:S.back:S.unknown})}))};function l(){a=n.value}function c(t){i.push(t);const e=()=>{const e=i.indexOf(t);e>-1&&i.splice(e,1)};return o.push(e),e}function f(){const{history:t}=window;t.state&&t.replaceState(s({},t.state,{scroll:M()}),"")}function h(){for(const t of o)t();o=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:l,listen:c,destroy:h}}function j(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?M():null}}function F(t){const{history:e,location:n}=window,r={value:N(t,n)},i={value:e.state};function o(r,o,a){const s=t.indexOf("#"),u=s>-1?(n.host&&document.querySelector("base")?t:t.slice(s))+r:L()+t+r;try{e[a?"replaceState":"pushState"](o,"",u),i.value=o}catch(l){console.error(l),n[a?"replace":"assign"](u)}}function a(t,n){const a=s({},e.state,j(i.value.back,t,i.value.forward,!0),n,{position:i.value.position});o(t,a,!0),r.value=t}function u(t,n){const a=s({},i.value,e.state,{forward:t,scroll:M()});o(a.current,a,!0);const u=s({},j(r.value,t,null),{position:a.position+1},n);o(t,u,!1),r.value=t}return i.value||o(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0),{location:r,state:i,push:u,replace:a}}function B(t){t=E(t);const e=F(t),n=R(t,e.state,e.location,e.replace);function r(t,e=!0){e||n.pauseListeners(),history.go(t)}const i=s({location:"",base:t,go:r,createHref:k.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function z(t){return"string"===typeof t||t&&"object"===typeof t}function Z(t){return"string"===typeof t||"symbol"===typeof t}const U={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},H=Symbol("");var $;(function(t){t[t["aborted"]=4]="aborted",t[t["cancelled"]=8]="cancelled",t[t["duplicated"]=16]="duplicated"})($||($={}));function G(t,e){return s(new Error,{type:t,[H]:!0},e)}function W(t,e){return t instanceof Error&&H in t&&(null==e||!!(t.type&e))}const V="[^/]+?",Y={sensitive:!1,strict:!1,start:!0,end:!0},X=/[.+*?^${}()[\]/\\]/g;function q(t,e){const n=s({},Y,e),r=[];let i=n.start?"^":"";const o=[];for(const s of t){const t=s.length?[]:[90];n.strict&&!s.length&&(i+="/");for(let e=0;e<s.length;e++){const r=s[e];let a=40+(n.sensitive?.25:0);if(0===r.type)e||(i+="/"),i+=r.value.replace(X,"\\$&"),a+=40;else if(1===r.type){const{value:t,repeatable:n,optional:u,regexp:l}=r;o.push({name:t,repeatable:n,optional:u});const c=l||V;if(c!==V){a+=10;try{new RegExp(`(${c})`)}catch(f){throw new Error(`Invalid custom RegExp for param "${t}" (${c}): `+f.message)}}let h=n?`((?:${c})(?:/(?:${c}))*)`:`(${c})`;e||(h=u&&s.length<2?`(?:/${h})`:"/"+h),u&&(h+="?"),i+=h,a+=20,u&&(a+=-8),n&&(a+=-20),".*"===c&&(a+=-50)}t.push(a)}r.push(t)}if(n.strict&&n.end){const t=r.length-1;r[t][r[t].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const a=new RegExp(i,n.sensitive?"":"i");function u(t){const e=t.match(a),n={};if(!e)return null;for(let r=1;r<e.length;r++){const t=e[r]||"",i=o[r-1];n[i.name]=t&&i.repeatable?t.split("/"):t}return n}function l(e){let n="",r=!1;for(const i of t){r&&n.endsWith("/")||(n+="/"),r=!1;for(const t of i)if(0===t.type)n+=t.value;else if(1===t.type){const{value:o,repeatable:a,optional:s}=t,u=o in e?e[o]:"";if(c(u)&&!a)throw new Error(`Provided param "${o}" is an array but it is not repeatable (* or + modifiers)`);const l=c(u)?u.join("/"):u;if(!l){if(!s)throw new Error(`Missing required param "${o}"`);i.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=l}}return n||"/"}return{re:a,score:r,keys:o,parse:u,stringify:l}}function K(t,e){let n=0;while(n<t.length&&n<e.length){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?1===t.length&&80===t[0]?-1:1:t.length>e.length?1===e.length&&80===e[0]?1:-1:0}function J(t,e){let n=0;const r=t.score,i=e.score;while(n<r.length&&n<i.length){const t=K(r[n],i[n]);if(t)return t;n++}if(1===Math.abs(i.length-r.length)){if(Q(r))return 1;if(Q(i))return-1}return i.length-r.length}function Q(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const tt={type:0,value:""},et=/[a-zA-Z0-9_]/;function nt(t){if(!t)return[[]];if("/"===t)return[[tt]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(t){throw new Error(`ERR (${n})/"${l}": ${t}`)}let n=0,r=n;const i=[];let o;function a(){o&&i.push(o),o=[]}let s,u=0,l="",c="";function f(){l&&(0===n?o.push({type:0,value:l}):1===n||2===n||3===n?(o.length>1&&("*"===s||"+"===s)&&e(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:l,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):e("Invalid state to consume buffer"),l="")}function h(){l+=s}while(u<t.length)if(s=t[u++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(l&&f(),a()):":"===s?(f(),n=1):h();break;case 4:h(),n=r;break;case 1:"("===s?n=2:et.test(s)?h():(f(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&u--);break;case 2:")"===s?"\\"==c[c.length-1]?c=c.slice(0,-1)+s:n=3:c+=s;break;case 3:f(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&u--,c="";break;default:e("Unknown state");break}else r=n,n=4;return 2===n&&e(`Unfinished custom RegExp for param "${l}"`),f(),a(),i}function rt(t,e,n){const r=q(nt(t.path),n);const i=s(r,{record:t,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf===!e.record.aliasOf&&e.children.push(i),i}function it(t,e){const n=[],r=new Map;function i(t){return r.get(t)}function o(t,n,r){const i=!r,u=at(t);u.aliasOf=r&&r.record;const f=ct(e,t),h=[u];if("alias"in t){const e="string"===typeof t.alias?[t.alias]:t.alias;for(const t of e)h.push(s({},u,{components:r?r.record.components:u.components,path:t,aliasOf:r?r.record:u}))}let d,p;for(const e of h){const{path:s}=e;if(n&&"/"!==s[0]){const t=n.record.path,r="/"===t[t.length-1]?"":"/";e.path=n.record.path+(s&&r+s)}if(d=rt(e,n,f),r?r.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),i&&t.name&&!ut(d)&&a(t.name)),u.children){const t=u.children;for(let e=0;e<t.length;e++)o(t[e],d,r&&r.children[e])}r=r||d,(d.record.components&&Object.keys(d.record.components).length||d.record.name||d.record.redirect)&&c(d)}return p?()=>{a(p)}:l}function a(t){if(Z(t)){const e=r.get(t);e&&(r.delete(t),n.splice(n.indexOf(e),1),e.children.forEach(a),e.alias.forEach(a))}else{const e=n.indexOf(t);e>-1&&(n.splice(e,1),t.record.name&&r.delete(t.record.name),t.children.forEach(a),t.alias.forEach(a))}}function u(){return n}function c(t){let e=0;while(e<n.length&&J(t,n[e])>=0&&(t.record.path!==n[e].record.path||!ft(t,n[e])))e++;n.splice(e,0,t),t.record.name&&!ut(t)&&r.set(t.record.name,t)}function f(t,e){let i,o,a,u={};if("name"in t&&t.name){if(i=r.get(t.name),!i)throw G(1,{location:t});0,a=i.record.name,u=s(ot(e.params,i.keys.filter((t=>!t.optional)).map((t=>t.name))),t.params&&ot(t.params,i.keys.map((t=>t.name)))),o=i.stringify(u)}else if("path"in t)o=t.path,i=n.find((t=>t.re.test(o))),i&&(u=i.parse(o),a=i.record.name);else{if(i=e.name?r.get(e.name):n.find((t=>t.re.test(e.path))),!i)throw G(1,{location:t,currentLocation:e});a=i.record.name,u=s({},e.params,t.params),o=i.stringify(u)}const l=[];let c=i;while(c)l.unshift(c.record),c=c.parent;return{name:a,path:o,params:u,matched:l,meta:lt(l)}}return e=ct({strict:!1,end:!0,sensitive:!1},e),t.forEach((t=>o(t))),{addRoute:o,resolve:f,removeRoute:a,getRoutes:u,getRecordMatcher:i}}function ot(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function at(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:st(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function st(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]="object"===typeof n?n[r]:n;return e}function ut(t){while(t){if(t.record.aliasOf)return!0;t=t.parent}return!1}function lt(t){return t.reduce(((t,e)=>s(t,e.meta)),{})}function ct(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function ft(t,e){return e.children.some((e=>e===t||ft(t,e)))}const ht=/#/g,dt=/&/g,pt=/\//g,gt=/=/g,vt=/\?/g,mt=/\+/g,yt=/%5B/g,bt=/%5D/g,xt=/%5E/g,_t=/%60/g,wt=/%7B/g,St=/%7C/g,Et=/%7D/g,Tt=/%20/g;function kt(t){return encodeURI(""+t).replace(St,"|").replace(yt,"[").replace(bt,"]")}function Ct(t){return kt(t).replace(wt,"{").replace(Et,"}").replace(xt,"^")}function Mt(t){return kt(t).replace(mt,"%2B").replace(Tt,"+").replace(ht,"%23").replace(dt,"%26").replace(_t,"`").replace(wt,"{").replace(Et,"}").replace(xt,"^")}function At(t){return Mt(t).replace(gt,"%3D")}function It(t){return kt(t).replace(ht,"%23").replace(vt,"%3F")}function Ot(t){return null==t?"":It(t).replace(pt,"%2F")}function Dt(t){try{return decodeURIComponent(""+t)}catch(e){}return""+t}function Pt(t){const e={};if(""===t||"?"===t)return e;const n="?"===t[0],r=(n?t.slice(1):t).split("&");for(let i=0;i<r.length;++i){const t=r[i].replace(mt," "),n=t.indexOf("="),o=Dt(n<0?t:t.slice(0,n)),a=n<0?null:Dt(t.slice(n+1));if(o in e){let t=e[o];c(t)||(t=e[o]=[t]),t.push(a)}else e[o]=a}return e}function Lt(t){let e="";for(let n in t){const r=t[n];if(n=At(n),null==r){void 0!==r&&(e+=(e.length?"&":"")+n);continue}const i=c(r)?r.map((t=>t&&Mt(t))):[r&&Mt(r)];i.forEach((t=>{void 0!==t&&(e+=(e.length?"&":"")+n,null!=t&&(e+="="+t))}))}return e}function Nt(t){const e={};for(const n in t){const r=t[n];void 0!==r&&(e[n]=c(r)?r.map((t=>null==t?null:""+t)):null==r?r:""+r)}return e}const Rt=Symbol(""),jt=Symbol(""),Ft=Symbol(""),Bt=Symbol(""),zt=Symbol("");function Zt(){let t=[];function e(e){return t.push(e),()=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function Ut(t,e,n,r,i){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise(((a,s)=>{const u=t=>{!1===t?s(G(4,{from:n,to:e})):t instanceof Error?s(t):z(t)?s(G(2,{from:e,to:t})):(o&&r.enterCallbacks[i]===o&&"function"===typeof t&&o.push(t),a())},l=t.call(r&&r.instances[i],e,n,u);let c=Promise.resolve(l);t.length<3&&(c=c.then(u)),c.catch((t=>s(t)))}))}function Ht(t,e,n,r){const i=[];for(const o of t){0;for(const t in o.components){let s=o.components[t];if("beforeRouteEnter"===e||o.instances[t])if($t(s)){const a=s.__vccOpts||s,u=a[e];u&&i.push(Ut(u,n,r,o,t))}else{let u=s();0,i.push((()=>u.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${t}" at "${o.path}"`));const s=a(i)?i.default:i;o.components[t]=s;const u=s.__vccOpts||s,l=u[e];return l&&Ut(l,n,r,o,t)()}))))}}}return i}function $t(t){return"object"===typeof t||"displayName"in t||"props"in t||"__vccOpts"in t}function Gt(t){const e=(0,r.f3)(Ft),n=(0,r.f3)(Bt),o=(0,r.Fl)((()=>e.resolve((0,i.SU)(t.to)))),a=(0,r.Fl)((()=>{const{matched:t}=o.value,{length:e}=t,r=t[e-1],i=n.matched;if(!r||!i.length)return-1;const a=i.findIndex(m.bind(null,r));if(a>-1)return a;const s=qt(t[e-2]);return e>1&&qt(r)===s&&i[i.length-1].path!==s?i.findIndex(m.bind(null,t[e-2])):a})),s=(0,r.Fl)((()=>a.value>-1&&Xt(n.params,o.value.params))),u=(0,r.Fl)((()=>a.value>-1&&a.value===n.matched.length-1&&y(n.params,o.value.params)));function c(n={}){return Yt(n)?e[(0,i.SU)(t.replace)?"replace":"push"]((0,i.SU)(t.to)).catch(l):Promise.resolve()}return{route:o,href:(0,r.Fl)((()=>o.value.href)),isActive:s,isExactActive:u,navigate:c}}const Wt=(0,r.aZ)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Gt,setup(t,{slots:e}){const n=(0,i.qj)(Gt(t)),{options:o}=(0,r.f3)(Ft),a=(0,r.Fl)((()=>({[Kt(t.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Kt(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const i=e.default&&e.default(n);return t.custom?i:(0,r.h)("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),Vt=/^(539|826)$/.test(n.j)?Wt:null;function Yt(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){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Xt(t,e){for(const n in e){const r=e[n],i=t[n];if("string"===typeof r){if(r!==i)return!1}else if(!c(i)||i.length!==r.length||r.some(((t,e)=>t!==i[e])))return!1}return!0}function qt(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Kt=(t,e,n)=>null!=t?t:null!=e?e:n,Jt=(0,r.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const o=(0,r.f3)(zt),a=(0,r.Fl)((()=>t.route||o.value)),u=(0,r.f3)(jt,0),l=(0,r.Fl)((()=>{let t=(0,i.SU)(u);const{matched:e}=a.value;let n;while((n=e[t])&&!n.components)t++;return t})),c=(0,r.Fl)((()=>a.value.matched[l.value]));(0,r.JJ)(jt,(0,r.Fl)((()=>l.value+1))),(0,r.JJ)(Rt,c),(0,r.JJ)(zt,a);const f=(0,i.iH)();return(0,r.YP)((()=>[f.value,c.value,t.name]),(([t,e,n],[r,i,o])=>{e&&(e.instances[n]=t,i&&i!==e&&t&&t===r&&(e.leaveGuards.size||(e.leaveGuards=i.leaveGuards),e.updateGuards.size||(e.updateGuards=i.updateGuards))),!t||!e||i&&m(e,i)&&r||(e.enterCallbacks[n]||[]).forEach((e=>e(t)))}),{flush:"post"}),()=>{const i=a.value,o=t.name,u=c.value,l=u&&u.components[o];if(!l)return Qt(n.default,{Component:l,route:i});const h=u.props[o],d=h?!0===h?i.params:"function"===typeof h?h(i):h:null,p=t=>{t.component.isUnmounted&&(u.instances[o]=null)},g=(0,r.h)(l,s({},d,e,{onVnodeUnmounted:p,ref:f}));return Qt(n.default,{Component:g,route:i})||g}}});function Qt(t,e){if(!t)return null;const n=t(e);return 1===n.length?n[0]:n}const te=/^(539|826)$/.test(n.j)?Jt:null;function ee(t){const e=it(t.routes,t),n=t.parseQuery||Pt,a=t.stringifyQuery||Lt,f=t.history;const h=Zt(),g=Zt(),m=Zt(),y=(0,i.XI)(U);let b=U;o&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const x=u.bind(null,(t=>""+t)),_=u.bind(null,Ot),S=u.bind(null,Dt);function E(t,n){let r,i;return Z(t)?(r=e.getRecordMatcher(t),i=n):i=t,e.addRoute(i,r)}function T(t){const n=e.getRecordMatcher(t);n&&e.removeRoute(n)}function k(){return e.getRoutes().map((t=>t.record))}function C(t){return!!e.getRecordMatcher(t)}function O(t,r){if(r=s({},r||y.value),"string"===typeof t){const i=d(n,t,r.path),o=e.resolve({path:i.path},r),a=f.createHref(i.fullPath);return s(i,o,{params:S(o.params),hash:Dt(i.hash),redirectedFrom:void 0,href:a})}let i;if("path"in t)i=s({},t,{path:d(n,t.path,r.path).path});else{const e=s({},t.params);for(const t in e)null==e[t]&&delete e[t];i=s({},t,{params:_(e)}),r.params=_(r.params)}const o=e.resolve(i,r),u=t.hash||"";o.params=x(S(o.params));const l=p(a,s({},t,{hash:Ct(u),path:o.path})),c=f.createHref(l);return s({fullPath:l,hash:u,query:a===Lt?Nt(t.query):t.query||{}},o,{redirectedFrom:void 0,href:c})}function L(t){return"string"===typeof t?d(n,t,y.value.path):s({},t)}function N(t,e){if(b!==t)return G(8,{from:e,to:t})}function R(t){return B(t)}function j(t){return R(s(L(t),{replace:!0}))}function F(t){const e=t.matched[t.matched.length-1];if(e&&e.redirect){const{redirect:n}=e;let r="function"===typeof n?n(t):n;return"string"===typeof r&&(r=r.includes("?")||r.includes("#")?r=L(r):{path:r},r.params={}),s({query:t.query,hash:t.hash,params:"path"in r?{}:t.params},r)}}function B(t,e){const n=b=O(t),r=y.value,i=t.state,o=t.force,u=!0===t.replace,l=F(n);if(l)return B(s(L(l),{state:"object"===typeof l?s({},i,l.state):i,force:o,replace:u}),e||n);const c=n;let f;return c.redirectedFrom=e,!o&&v(a,r,n)&&(f=G(16,{to:c,from:r}),rt(r,r,!0,!1)),(f?Promise.resolve(f):$(c,r)).catch((t=>W(t)?W(t,2)?t:nt(t):tt(t,c,r))).then((t=>{if(t){if(W(t,2))return B(s({replace:u},L(t.to),{state:"object"===typeof t.to?s({},i,t.to.state):i,force:o}),e||c)}else t=Y(c,r,!0,u,i);return V(c,r,t),t}))}function z(t,e){const n=N(t,e);return n?Promise.reject(n):Promise.resolve()}function H(t){const e=st.values().next().value;return e&&"function"===typeof e.runWithContext?e.runWithContext(t):t()}function $(t,e){let n;const[r,i,o]=ne(t,e);n=Ht(r.reverse(),"beforeRouteLeave",t,e);for(const s of r)s.leaveGuards.forEach((r=>{n.push(Ut(r,t,e))}));const a=z.bind(null,t,e);return n.push(a),lt(n).then((()=>{n=[];for(const r of h.list())n.push(Ut(r,t,e));return n.push(a),lt(n)})).then((()=>{n=Ht(i,"beforeRouteUpdate",t,e);for(const r of i)r.updateGuards.forEach((r=>{n.push(Ut(r,t,e))}));return n.push(a),lt(n)})).then((()=>{n=[];for(const r of o)if(r.beforeEnter)if(c(r.beforeEnter))for(const i of r.beforeEnter)n.push(Ut(i,t,e));else n.push(Ut(r.beforeEnter,t,e));return n.push(a),lt(n)})).then((()=>(t.matched.forEach((t=>t.enterCallbacks={})),n=Ht(o,"beforeRouteEnter",t,e),n.push(a),lt(n)))).then((()=>{n=[];for(const r of g.list())n.push(Ut(r,t,e));return n.push(a),lt(n)})).catch((t=>W(t,8)?t:Promise.reject(t)))}function V(t,e,n){m.list().forEach((r=>H((()=>r(t,e,n)))))}function Y(t,e,n,r,i){const a=N(t,e);if(a)return a;const u=e===U,l=o?history.state:{};n&&(r||u?f.replace(t.fullPath,s({scroll:u&&l&&l.scroll},i)):f.push(t.fullPath,i)),y.value=t,rt(t,e,n,u),nt()}let X;function q(){X||(X=f.listen(((t,e,n)=>{if(!ut.listening)return;const r=O(t),i=F(r);if(i)return void B(s(i,{replace:!0}),r).catch(l);b=r;const a=y.value;o&&D(I(a.fullPath,n.delta),M()),$(r,a).catch((t=>W(t,12)?t:W(t,2)?(B(t.to,r).then((t=>{W(t,20)&&!n.delta&&n.type===w.pop&&f.go(-1,!1)})).catch(l),Promise.reject()):(n.delta&&f.go(-n.delta,!1),tt(t,r,a)))).then((t=>{t=t||Y(r,a,!1),t&&(n.delta&&!W(t,8)?f.go(-n.delta,!1):n.type===w.pop&&W(t,20)&&f.go(-1,!1)),V(r,a,t)})).catch(l)})))}let K,J=Zt(),Q=Zt();function tt(t,e,n){nt(t);const r=Q.list();return r.length?r.forEach((r=>r(t,e,n))):console.error(t),Promise.reject(t)}function et(){return K&&y.value!==U?Promise.resolve():new Promise(((t,e)=>{J.add([t,e])}))}function nt(t){return K||(K=!t,q(),J.list().forEach((([e,n])=>t?n(t):e())),J.reset()),t}function rt(e,n,i,a){const{scrollBehavior:s}=t;if(!o||!s)return Promise.resolve();const u=!i&&P(I(e.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return(0,r.Y3)().then((()=>s(e,n,u))).then((t=>t&&A(t))).catch((t=>tt(t,e,n)))}const ot=t=>f.go(t);let at;const st=new Set,ut={currentRoute:y,listening:!0,addRoute:E,removeRoute:T,hasRoute:C,getRoutes:k,resolve:O,options:t,push:R,replace:j,go:ot,back:()=>ot(-1),forward:()=>ot(1),beforeEach:h.add,beforeResolve:g.add,afterEach:m.add,onError:Q.add,isReady:et,install(t){const e=this;t.component("RouterLink",Vt),t.component("RouterView",te),t.config.globalProperties.$router=e,Object.defineProperty(t.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,i.SU)(y)}),o&&!at&&y.value===U&&(at=!0,R(f.location).catch((t=>{0})));const n={};for(const i in U)Object.defineProperty(n,i,{get:()=>y.value[i],enumerable:!0});t.provide(Ft,e),t.provide(Bt,(0,i.Um)(n)),t.provide(zt,y);const r=t.unmount;st.add(t),t.unmount=function(){st.delete(t),st.size<1&&(b=U,X&&X(),X=null,y.value=U,at=!1,K=!1),r()}}};function lt(t){return t.reduce(((t,e)=>t.then((()=>H(e)))),Promise.resolve())}return ut}function ne(t,e){const n=[],r=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let a=0;a<o;a++){const o=e.matched[a];o&&(t.matched.find((t=>m(t,o)))?r.push(o):n.push(o));const s=t.matched[a];s&&(e.matched.find((t=>m(t,s)))||i.push(s))}return[n,r,i]}},84105:function(t,e,n){"use strict";n.d(e,{NC:function(){return Sd},P6:function(){return Hd}});
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
var r,i={version:"0.20.2"},o=1200,a=1252,s=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],u={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},l=function(t){-1!=s.indexOf(t)&&(a=u[0]=t)};function c(){l(1252)}var f=function(t){o=t,l(t)};function h(){f(1200),c()}function d(t){for(var e=[],n=0;n<t.length>>1;++n)e[n]=String.fromCharCode(t.charCodeAt(2*n+1)+(t.charCodeAt(2*n)<<8));return e.join("")}var p=function(t){return String.fromCharCode(t)},g=function(t){return String.fromCharCode(t)};var v=null,m=!0,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function b(t){for(var e="",n=0,r=0,i=0,o=0,a=0,s=0,u=0,l=0;l<t.length;)n=t.charCodeAt(l++),o=n>>2,r=t.charCodeAt(l++),a=(3&n)<<4|r>>4,i=t.charCodeAt(l++),s=(15&r)<<2|i>>6,u=63&i,isNaN(r)?s=u=64:isNaN(i)&&(u=64),e+=y.charAt(o)+y.charAt(a)+y.charAt(s)+y.charAt(u);return e}function x(t){for(var e="",n=0,r=0,i=0,o=0,a=0,s=0,u=0,l=0;l<t.length;)n=t.charCodeAt(l++),n>255&&(n=95),o=n>>2,r=t.charCodeAt(l++),r>255&&(r=95),a=(3&n)<<4|r>>4,i=t.charCodeAt(l++),i>255&&(i=95),s=(15&r)<<2|i>>6,u=63&i,isNaN(r)?s=u=64:isNaN(i)&&(u=64),e+=y.charAt(o)+y.charAt(a)+y.charAt(s)+y.charAt(u);return e}function _(t){for(var e="",n=0,r=0,i=0,o=0,a=0,s=0,u=0,l=0;l<t.length;)n=t[l++],o=n>>2,r=t[l++],a=(3&n)<<4|r>>4,i=t[l++],s=(15&r)<<2|i>>6,u=63&i,isNaN(r)?s=u=64:isNaN(i)&&(u=64),e+=y.charAt(o)+y.charAt(a)+y.charAt(s)+y.charAt(u);return e}function w(t){var e="",n=0,r=0,i=0,o=0,a=0,s=0,u=0;if("data:"==t.slice(0,5)){var l=t.slice(0,1024).indexOf(";base64,");l>-1&&(t=t.slice(l+8))}t=t.replace(/[^\w\+\/\=]/g,"");for(l=0;l<t.length;)o=y.indexOf(t.charAt(l++)),a=y.indexOf(t.charAt(l++)),n=o<<2|a>>4,e+=String.fromCharCode(n),s=y.indexOf(t.charAt(l++)),r=(15&a)<<4|s>>2,64!==s&&(e+=String.fromCharCode(r)),u=y.indexOf(t.charAt(l++)),i=(3&s)<<6|u,64!==u&&(e+=String.fromCharCode(i));return e}var S=function(){return"undefined"!==typeof Buffer&&"undefined"!==typeof process&&"undefined"!==typeof process.versions&&!!process.versions.node}(),E=function(){if("undefined"!==typeof Buffer){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch(e){t=!0}return t?function(t,e){return e?new Buffer(t,e):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}(),T=function(){if("undefined"===typeof Buffer)return!1;var t=E([65,0]);if(!t)return!1;var e=t.toString("utf16le");return 1==e.length}();function k(t){return S?Buffer.alloc?Buffer.alloc(t):new Buffer(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}function C(t){return S?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}var M=function(t){return S?E(t,"binary"):t.split("").map((function(t){return 255&t.charCodeAt(0)}))};function A(t){if("undefined"===typeof ArrayBuffer)return M(t);for(var e=new ArrayBuffer(t.length),n=new Uint8Array(e),r=0;r!=t.length;++r)n[r]=255&t.charCodeAt(r);return e}function I(t){if(Array.isArray(t))return t.map((function(t){return String.fromCharCode(t)})).join("");for(var e=[],n=0;n<t.length;++n)e[n]=String.fromCharCode(t[n]);return e.join("")}function O(t){if("undefined"===typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(t)}var D=S?function(t){return Buffer.concat(t.map((function(t){return Buffer.isBuffer(t)?t:E(t)})))}:function(t){if("undefined"!==typeof Uint8Array){var e=0,n=0;for(e=0;e<t.length;++e)n+=t[e].length;var r=new Uint8Array(n),i=0;for(e=0,n=0;e<t.length;n+=i,++e)i=t[e].length,t[e]instanceof Uint8Array?r.set(t[e],n):"string"==typeof t[e]?r.set(new Uint8Array(M(t[e])),n):r.set(new Uint8Array(t[e]),n);return r}return[].concat.apply([],t.map((function(t){return Array.isArray(t)?t:[].slice.call(t)})))};function P(t){for(var e=[],n=0,r=t.length+250,i=k(t.length+255),o=0;o<t.length;++o){var a=t.charCodeAt(o);if(a<128)i[n++]=a;else if(a<2048)i[n++]=192|a>>6&31,i[n++]=128|63&a;else if(a>=55296&&a<57344){a=64+(1023&a);var s=1023&t.charCodeAt(++o);i[n++]=240|a>>8&7,i[n++]=128|a>>2&63,i[n++]=128|s>>6&15|(3&a)<<4,i[n++]=128|63&s}else i[n++]=224|a>>12&15,i[n++]=128|a>>6&63,i[n++]=128|63&a;n>r&&(e.push(i.slice(0,n)),n=0,i=k(65535),r=65530)}return e.push(i.slice(0,n)),D(e)}var L=/\u0000/g,N=/[\u0001-\u0006]/g;function R(t){var e="",n=t.length-1;while(n>=0)e+=t.charAt(n--);return e}function j(t,e){var n=""+t;return n.length>=e?n:pe("0",e-n.length)+n}function F(t,e){var n=""+t;return n.length>=e?n:pe(" ",e-n.length)+n}function B(t,e){var n=""+t;return n.length>=e?n:n+pe(" ",e-n.length)}function z(t,e){var n=""+Math.round(t);return n.length>=e?n:pe("0",e-n.length)+n}function Z(t,e){var n=""+t;return n.length>=e?n:pe("0",e-n.length)+n}var U=Math.pow(2,32);function H(t,e){if(t>U||t<-U)return z(t,e);var n=Math.round(t);return Z(n,e)}function G(t,e){return e=e||0,t.length>=7+e&&103===(32|t.charCodeAt(e))&&101===(32|t.charCodeAt(e+1))&&110===(32|t.charCodeAt(e+2))&&101===(32|t.charCodeAt(e+3))&&114===(32|t.charCodeAt(e+4))&&97===(32|t.charCodeAt(e+5))&&108===(32|t.charCodeAt(e+6))}var W=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],V=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Y(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',t}var X={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},q={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},K={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function J(t,e,n){var r=t<0?-1:1,i=t*r,o=0,a=1,s=0,u=1,l=0,c=0,f=Math.floor(i);while(l<e){if(f=Math.floor(i),s=f*a+o,c=f*l+u,i-f<5e-8)break;i=1/(i-f),o=a,a=s,u=l,l=c}if(c>e&&(l>e?(c=u,s=o):(c=l,s=a)),!n)return[0,r*s,c];var h=Math.floor(r*s/c);return[h,r*s-h*c,c]}function Q(t){var e=t.toPrecision(16);if(e.indexOf("e")>-1){var n=e.slice(0,e.indexOf("e"));return n=n.indexOf(".")>-1?n.slice(0,"0."==n.slice(0,2)?17:16):n.slice(0,15)+pe("0",n.length-15),n+e.slice(e.indexOf("e"))}var r=e.indexOf(".")>-1?e.slice(0,"0."==e.slice(0,2)?17:16):e.slice(0,15)+pe("0",e.length-15);return Number(r)}function tt(t,e,n){if(t>2958465||t<0)return null;t=Q(t);var r=0|t,i=Math.floor(86400*(t-r)),o=0,a=[],s={D:r,T:i,u:86400*(t-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),e&&e.date1904&&(r+=1462),s.u>.9999&&(s.u=0,86400==++i&&(s.T=i=0,++r,++s.D)),60===r)a=n?[1317,10,29]:[1900,2,29],o=3;else if(0===r)a=n?[1317,8,29]:[1900,1,0],o=6;else{r>60&&--r;var u=new Date(1900,0,1);u.setDate(u.getDate()+r-1),a=[u.getFullYear(),u.getMonth()+1,u.getDate()],o=u.getDay(),r<60&&(o=(o+6)%7),n&&(o=st(u,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=o,s}function et(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function nt(t){return-1==t.indexOf("E")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function rt(t){var e=t<0?12:11,n=et(t.toFixed(12));return n.length<=e?n:(n=t.toPrecision(10),n.length<=e?n:t.toExponential(5))}function it(t){var e=et(t.toFixed(11));return e.length>(t<0?12:11)||"0"===e||"-0"===e?t.toPrecision(6):e}function ot(t){var e,n=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return e=n>=-4&&n<=-1?t.toPrecision(10+n):Math.abs(n)<=9?rt(t):10===n?t.toFixed(10).substr(0,12):it(t),et(nt(e.toUpperCase()))}function at(t,e){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):ot(t);case"undefined":return"";case"object":if(null==t)return"";if(t instanceof Date)return Ft(14,ae(t,e&&e.date1904),e)}throw new Error("unsupported value in General format: "+t)}function st(t,e){e[0]-=581;var n=t.getDay();return t<60&&(n=(n+6)%7),n}function ut(t,e,n,r){var i,o="",a=0,s=0,u=n.y,l=0;switch(t){case 98:u=n.y+543;case 121:switch(e.length){case 1:case 2:i=u%100,l=2;break;default:i=u%1e4,l=4;break}break;case 109:switch(e.length){case 1:case 2:i=n.m,l=e.length;break;case 3:return V[n.m-1][1];case 5:return V[n.m-1][0];default:return V[n.m-1][2]}break;case 100:switch(e.length){case 1:case 2:i=n.d,l=e.length;break;case 3:return W[n.q][0];default:return W[n.q][1]}break;case 104:switch(e.length){case 1:case 2:i=1+(n.H+11)%12,l=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:i=n.H,l=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:i=n.M,l=e.length;break;default:throw"bad minute format: "+e}break;case 115:if("s"!=e&&"ss"!=e&&".0"!=e&&".00"!=e&&".000"!=e)throw"bad second format: "+e;return 0!==n.u||"s"!=e&&"ss"!=e?(s=r>=2?3===r?1e3:100:1===r?10:1,a=Math.round(s*(n.S+n.u)),a>=60*s&&(a=0),"s"===e?0===a?"0":""+a/s:(o=j(a,2+r),"ss"===e?o.substr(0,2):"."+o.substr(2,e.length-1))):j(n.S,e.length);case 90:switch(e){case"[h]":case"[hh]":i=24*n.D+n.H;break;case"[m]":case"[mm]":i=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":i=60*(60*(24*n.D+n.H)+n.M)+(0==r?Math.round(n.S+n.u):n.S);break;default:throw"bad abstime format: "+e}l=3===e.length?1:2;break;case 101:i=u,l=1;break}var c=l>0?j(i,l):"";return c}function lt(t){var e=3;if(t.length<=e)return t;for(var n=t.length%e,r=t.substr(0,n);n!=t.length;n+=e)r+=(r.length>0?",":"")+t.substr(n,e);return r}var ct=/%/g;function ft(t,e,n){var r=e.replace(ct,""),i=e.length-r.length;return It(t,r,n*Math.pow(10,2*i))+pe("%",i)}function ht(t,e,n){var r=e.length-1;while(44===e.charCodeAt(r-1))--r;return It(t,e.substr(0,r),n/Math.pow(10,3*(e.length-r)))}function dt(t,e){var n,r=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==e)return"0.0E+0";if(e<0)return"-"+dt(t,-e);var i=t.indexOf(".");-1===i&&(i=t.indexOf("E"));var o=Math.floor(Math.log(e)*Math.LOG10E)%i;if(o<0&&(o+=i),n=(e/Math.pow(10,o)).toPrecision(r+1+(i+o)%i),-1===n.indexOf("e")){var a=Math.floor(Math.log(e)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(a-n.length+o):n+="E+"+(a-o);while("0."===n.substr(0,2))n=n.charAt(0)+n.substr(2,i)+"."+n.substr(2+i),n=n.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(t,e,n,r){return e+n+r.substr(0,(i+o)%i)+"."+r.substr(o)+"E"}))}else n=e.toExponential(r);return t.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),t.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var pt=/# (\?+)( ?)\/( ?)(\d+)/;function gt(t,e,n){var r=parseInt(t[4],10),i=Math.round(e*r),o=Math.floor(i/r),a=i-o*r,s=r;return n+(0===o?"":""+o)+" "+(0===a?pe(" ",t[1].length+1+t[4].length):F(a,t[1].length)+t[2]+"/"+t[3]+j(s,t[4].length))}function vt(t,e,n){return n+(0===e?"":""+e)+pe(" ",t[1].length+2+t[4].length)}var mt=/^#*0*\.([0#]+)/,yt=/\)[^)]*[0#]/,bt=/\(###\) ###\\?-####/;function xt(t){for(var e,n="",r=0;r!=t.length;++r)switch(e=t.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(e)}return n}function _t(t,e){var n=Math.pow(10,e);return""+Math.round(t*n)/n}function wt(t,e){var n=t-Math.floor(t),r=Math.pow(10,e);return e<(""+Math.round(n*r)).length?0:Math.round(n*r)}function St(t,e){return e<(""+Math.round((t-Math.floor(t))*Math.pow(10,e))).length?1:0}function Et(t){return t<2147483647&&t>-2147483648?""+(t>=0?0|t:t-1|0):""+Math.floor(t)}function Tt(t,e,n){if(40===t.charCodeAt(0)&&!e.match(yt)){var r=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?Tt("n",r,n):"("+Tt("n",r,-n)+")"}if(44===e.charCodeAt(e.length-1))return ht(t,e,n);if(-1!==e.indexOf("%"))return ft(t,e,n);if(-1!==e.indexOf("E"))return dt(e,n);if(36===e.charCodeAt(0))return"$"+Tt(t,e.substr(" "==e.charAt(1)?2:1),n);var i,o,a,s,u=Math.abs(n),l=n<0?"-":"";if(e.match(/^00+$/))return l+H(u,e.length);if(e.match(/^[#?]+$/))return i=H(n,0),"0"===i&&(i=""),i.length>e.length?i:xt(e.substr(0,e.length-i.length))+i;if(o=e.match(pt))return gt(o,u,l);if(e.match(/^#+0+$/))return l+H(u,e.length-e.indexOf("0"));if(o=e.match(mt))return i=_t(n,o[1].length).replace(/^([^\.]+)$/,"$1."+xt(o[1])).replace(/\.$/,"."+xt(o[1])).replace(/\.(\d*)$/,(function(t,e){return"."+e+pe("0",xt(o[1]).length-e.length)})),-1!==e.indexOf("0.")?i:i.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),o=e.match(/^(0*)\.(#*)$/))return l+_t(u,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=e.match(/^#{1,3},##0(\.?)$/))return l+lt(H(u,0));if(o=e.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Tt(t,e,-n):lt(""+(Math.floor(n)+St(n,o[1].length)))+"."+j(wt(n,o[1].length),o[1].length);if(o=e.match(/^#,#*,#0/))return Tt(t,e.replace(/^#,#*,/,""),n);if(o=e.match(/^([0#]+)(\\?-([0#]+))+$/))return i=R(Tt(t,e.replace(/[\\-]/g,""),n)),a=0,R(R(e.replace(/\\/g,"")).replace(/[0#]/g,(function(t){return a<i.length?i.charAt(a++):"0"===t?"0":""})));if(e.match(bt))return i=Tt(t,"##########",n),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(o=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(o[4].length,7),s=J(u,Math.pow(10,a)-1,!1),i=""+l,c=It("n",o[1],s[1])," "==c.charAt(c.length-1)&&(c=c.substr(0,c.length-1)+"0"),i+=c+o[2]+"/"+o[3],c=B(s[2],a),c.length<o[4].length&&(c=xt(o[4].substr(o[4].length-c.length))+c),i+=c,i;if(o=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(o[1].length,o[4].length),7),s=J(u,Math.pow(10,a)-1,!0),l+(s[0]||(s[1]?"":"0"))+" "+(s[1]?F(s[1],a)+o[2]+"/"+o[3]+B(s[2],a):pe(" ",2*a+1+o[2].length+o[3].length));if(o=e.match(/^[#0?]+$/))return i=H(n,0),e.length<=i.length?i:xt(e.substr(0,e.length-i.length))+i;if(o=e.match(/^([#0?]+)\.([#0]+)$/)){i=""+n.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),a=i.indexOf(".");var f=e.indexOf(".")-a,h=e.length-i.length-f;return xt(e.substr(0,f)+i+e.substr(e.length-h))}if(o=e.match(/^00,000\.([#0]*0)$/))return a=wt(n,o[1].length),n<0?"-"+Tt(t,e,-n):lt(Et(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(t){return"00,"+(t.length<3?j(0,3-t.length):"")+t}))+"."+j(a,o[1].length);switch(e){case"###,##0.00":return Tt(t,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var d=lt(H(u,0));return"0"!==d?l+d:"";case"###,###.00":return Tt(t,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return Tt(t,"#,##0.00",n).replace(/^0\./,".");default:}throw new Error("unsupported format |"+e+"|")}function kt(t,e,n){var r=e.length-1;while(44===e.charCodeAt(r-1))--r;return It(t,e.substr(0,r),n/Math.pow(10,3*(e.length-r)))}function Ct(t,e,n){var r=e.replace(ct,""),i=e.length-r.length;return It(t,r,n*Math.pow(10,2*i))+pe("%",i)}function Mt(t,e){var n,r=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==e)return"0.0E+0";if(e<0)return"-"+Mt(t,-e);var i=t.indexOf(".");-1===i&&(i=t.indexOf("E"));var o=Math.floor(Math.log(e)*Math.LOG10E)%i;if(o<0&&(o+=i),n=(e/Math.pow(10,o)).toPrecision(r+1+(i+o)%i),!n.match(/[Ee]/)){var a=Math.floor(Math.log(e)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(a-n.length+o):n+="E+"+(a-o),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(t,e,n,r){return e+n+r.substr(0,(i+o)%i)+"."+r.substr(o)+"E"}))}else n=e.toExponential(r);return t.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),t.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function At(t,e,n){if(40===t.charCodeAt(0)&&!e.match(yt)){var r=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?At("n",r,n):"("+At("n",r,-n)+")"}if(44===e.charCodeAt(e.length-1))return kt(t,e,n);if(-1!==e.indexOf("%"))return Ct(t,e,n);if(-1!==e.indexOf("E"))return Mt(e,n);if(36===e.charCodeAt(0))return"$"+At(t,e.substr(" "==e.charAt(1)?2:1),n);var i,o,a,s,u=Math.abs(n),l=n<0?"-":"";if(e.match(/^00+$/))return l+j(u,e.length);if(e.match(/^[#?]+$/))return i=""+n,0===n&&(i=""),i.length>e.length?i:xt(e.substr(0,e.length-i.length))+i;if(o=e.match(pt))return vt(o,u,l);if(e.match(/^#+0+$/))return l+j(u,e.length-e.indexOf("0"));if(o=e.match(mt))return i=(""+n).replace(/^([^\.]+)$/,"$1."+xt(o[1])).replace(/\.$/,"."+xt(o[1])),i=i.replace(/\.(\d*)$/,(function(t,e){return"."+e+pe("0",xt(o[1]).length-e.length)})),-1!==e.indexOf("0.")?i:i.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),o=e.match(/^(0*)\.(#*)$/))return l+(""+u).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=e.match(/^#{1,3},##0(\.?)$/))return l+lt(""+u);if(o=e.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+At(t,e,-n):lt(""+n)+"."+pe("0",o[1].length);if(o=e.match(/^#,#*,#0/))return At(t,e.replace(/^#,#*,/,""),n);if(o=e.match(/^([0#]+)(\\?-([0#]+))+$/))return i=R(At(t,e.replace(/[\\-]/g,""),n)),a=0,R(R(e.replace(/\\/g,"")).replace(/[0#]/g,(function(t){return a<i.length?i.charAt(a++):"0"===t?"0":""})));if(e.match(bt))return i=At(t,"##########",n),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(o=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(o[4].length,7),s=J(u,Math.pow(10,a)-1,!1),i=""+l,c=It("n",o[1],s[1])," "==c.charAt(c.length-1)&&(c=c.substr(0,c.length-1)+"0"),i+=c+o[2]+"/"+o[3],c=B(s[2],a),c.length<o[4].length&&(c=xt(o[4].substr(o[4].length-c.length))+c),i+=c,i;if(o=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(o[1].length,o[4].length),7),s=J(u,Math.pow(10,a)-1,!0),l+(s[0]||(s[1]?"":"0"))+" "+(s[1]?F(s[1],a)+o[2]+"/"+o[3]+B(s[2],a):pe(" ",2*a+1+o[2].length+o[3].length));if(o=e.match(/^[#0?]+$/))return i=""+n,e.length<=i.length?i:xt(e.substr(0,e.length-i.length))+i;if(o=e.match(/^([#0]+)\.([#0]+)$/)){i=""+n.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),a=i.indexOf(".");var f=e.indexOf(".")-a,h=e.length-i.length-f;return xt(e.substr(0,f)+i+e.substr(e.length-h))}if(o=e.match(/^00,000\.([#0]*0)$/))return n<0?"-"+At(t,e,-n):lt(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(t){return"00,"+(t.length<3?j(0,3-t.length):"")+t}))+"."+j(0,o[1].length);switch(e){case"###,###":case"##,###":case"#,###":var d=lt(""+u);return"0"!==d?l+d:"";default:if(e.match(/\.[0#?]*$/))return At(t,e.slice(0,e.lastIndexOf(".")),n)+xt(e.slice(e.lastIndexOf(".")))}throw new Error("unsupported format |"+e+"|")}function It(t,e,n){return(0|n)===n?At(t,e,n):Tt(t,e,n)}function Ot(t){for(var e=[],n=!1,r=0,i=0;r<t.length;++r)switch(t.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:e[e.length]=t.substr(i,r-i),i=r+1}if(e[e.length]=t.substr(i),!0===n)throw new Error("Format |"+t+"| unterminated string ");return e}var Dt=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Pt(t){var e=0,n="",r="";while(e<t.length)switch(n=t.charAt(e)){case"G":G(t,e)&&(e+=6),e++;break;case'"':for(;34!==t.charCodeAt(++e)&&e<t.length;);++e;break;case"\\":e+=2;break;case"_":e+=2;break;case"@":++e;break;case"B":case"b":if("1"===t.charAt(e+1)||"2"===t.charAt(e+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===t.substr(e,3).toUpperCase())return!0;if("AM/PM"===t.substr(e,5).toUpperCase())return!0;if("上午/下午"===t.substr(e,5).toUpperCase())return!0;++e;break;case"[":r=n;while("]"!==t.charAt(e++)&&e<t.length)r+=t.charAt(e);if(r.match(Dt))return!0;break;case".":case"0":case"#":while(e<t.length&&("0#?.,E+-%".indexOf(n=t.charAt(++e))>-1||"\\"==n&&"-"==t.charAt(e+1)&&"0#".indexOf(t.charAt(e+2))>-1));break;case"?":while(t.charAt(++e)===n);break;case"*":++e," "!=t.charAt(e)&&"*"!=t.charAt(e)||++e;break;case"(":case")":++e;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":while(e<t.length&&"0123456789".indexOf(t.charAt(++e))>-1);break;case" ":++e;break;default:++e;break}return!1}function Lt(t,e,n,r){var i,o,a,s=[],u="",l=0,c="",f="t",h="H";while(l<t.length)switch(c=t.charAt(l)){case"G":if(!G(t,l))throw new Error("unrecognized character "+c+" in "+t);s[s.length]={t:"G",v:"General"},l+=7;break;case'"':for(u="";34!==(a=t.charCodeAt(++l))&&l<t.length;)u+=String.fromCharCode(a);s[s.length]={t:"t",v:u},++l;break;case"\\":var d=t.charAt(++l),p="("===d||")"===d?d:"t";s[s.length]={t:p,v:d},++l;break;case"_":s[s.length]={t:"t",v:" "},l+=2;break;case"@":s[s.length]={t:"T",v:e},++l;break;case"B":case"b":if("1"===t.charAt(l+1)||"2"===t.charAt(l+1)){if(null==i&&(i=tt(e,n,"2"===t.charAt(l+1)),null==i))return"";s[s.length]={t:"X",v:t.substr(l,2)},f=c,l+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":c=c.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(e<0)return"";if(null==i&&(i=tt(e,n),null==i))return"";u=c;while(++l<t.length&&t.charAt(l).toLowerCase()===c)u+=c;"m"===c&&"h"===f.toLowerCase()&&(c="M"),"h"===c&&(c=h),s[s.length]={t:c,v:u},f=c;break;case"A":case"a":case"上":var g={t:c,v:c};if(null==i&&(i=tt(e,n)),"A/P"===t.substr(l,3).toUpperCase()?(null!=i&&(g.v=i.H>=12?t.charAt(l+2):c),g.t="T",h="h",l+=3):"AM/PM"===t.substr(l,5).toUpperCase()?(null!=i&&(g.v=i.H>=12?"PM":"AM"),g.t="T",l+=5,h="h"):"上午/下午"===t.substr(l,5).toUpperCase()?(null!=i&&(g.v=i.H>=12?"下午":"上午"),g.t="T",l+=5,h="h"):(g.t="t",++l),null==i&&"T"===g.t)return"";s[s.length]=g,f=c;break;case"[":u=c;while("]"!==t.charAt(l++)&&l<t.length)u+=t.charAt(l);if("]"!==u.slice(-1))throw'unterminated "[" block: |'+u+"|";if(u.match(Dt)){if(null==i&&(i=tt(e,n),null==i))return"";s[s.length]={t:"Z",v:u.toLowerCase()},f=u.charAt(1)}else u.indexOf("$")>-1&&(u=(u.match(/\$([^-\[\]]*)/)||[])[1]||"$",Pt(t)||(s[s.length]={t:"t",v:u}));break;case".":if(null!=i){u=c;while(++l<t.length&&"0"===(c=t.charAt(l)))u+=c;s[s.length]={t:"s",v:u};break}case"0":case"#":u=c;while(++l<t.length&&"0#?.,E+-%".indexOf(c=t.charAt(l))>-1)u+=c;s[s.length]={t:"n",v:u};break;case"?":u=c;while(t.charAt(++l)===c)u+=c;s[s.length]={t:c,v:u},f=c;break;case"*":++l," "!=t.charAt(l)&&"*"!=t.charAt(l)||++l;break;case"(":case")":s[s.length]={t:1===r?"t":c,v:c},++l;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":u=c;while(l<t.length&&"0123456789".indexOf(t.charAt(++l))>-1)u+=t.charAt(l);s[s.length]={t:"D",v:u};break;case" ":s[s.length]={t:c,v:c},++l;break;case"$":s[s.length]={t:"t",v:"$"},++l;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c))throw new Error("unrecognized character "+c+" in "+t);s[s.length]={t:"t",v:c},++l;break}var v,m,y=0,b=0;for(l=s.length-1,f="t";l>=0;--l)switch(s[l].t){case"h":case"H":s[l].t=h,f="h",y<1&&(y=1);break;case"s":(v=s[l].v.match(/\.0+$/))&&(b=Math.max(b,v[0].length-1),y=4),y<3&&(y=3);case"d":case"y":case"e":f=s[l].t;break;case"M":f=s[l].t,y<2&&(y=2);break;case"m":"s"===f&&(s[l].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&s[l].v.match(/[Hh]/)&&(y=1),y<2&&s[l].v.match(/[Mm]/)&&(y=2),y<3&&s[l].v.match(/[Ss]/)&&(y=3)}switch(y){case 0:break;case 1:case 2:case 3:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H),i.H>=24&&(i.H=0,++i.D,m=tt(i.D),m.u=i.u,m.S=i.S,m.M=i.M,m.H=i.H,i=m);break;case 4:switch(b){case 1:i.u=Math.round(10*i.u)/10;break;case 2:i.u=Math.round(100*i.u)/100;break;case 3:i.u=Math.round(1e3*i.u)/1e3;break}i.u>=1&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H),i.H>=24&&(i.H=0,++i.D,m=tt(i.D),m.u=i.u,m.S=i.S,m.M=i.M,m.H=i.H,i=m);break}var x,_="";for(l=0;l<s.length;++l)switch(s[l].t){case"t":case"T":case" ":case"D":break;case"X":s[l].v="",s[l].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":s[l].v=ut(s[l].t.charCodeAt(0),s[l].v,i,b),s[l].t="t";break;case"n":case"?":x=l+1;while(null!=s[x]&&("?"===(c=s[x].t)||"D"===c||(" "===c||"t"===c)&&null!=s[x+1]&&("?"===s[x+1].t||"t"===s[x+1].t&&"/"===s[x+1].v)||"("===s[l].t&&(" "===c||"n"===c||")"===c)||"t"===c&&("/"===s[x].v||" "===s[x].v&&null!=s[x+1]&&"?"==s[x+1].t)))s[l].v+=s[x].v,s[x]={v:"",t:";"},++x;_+=s[l].v,l=x-1;break;case"G":s[l].t="t",s[l].v=at(e,n);break}var w,S,E="";if(_.length>0){40==_.charCodeAt(0)?(w=e<0&&45===_.charCodeAt(0)?-e:e,S=It("n",_,w)):(w=e<0&&r>1?-e:e,S=It("n",_,w),w<0&&s[0]&&"t"==s[0].t&&(S=S.substr(1),s[0].v="-"+s[0].v)),x=S.length-1;var T=s.length;for(l=0;l<s.length;++l)if(null!=s[l]&&"t"!=s[l].t&&s[l].v.indexOf(".")>-1){T=l;break}var k=s.length;if(T===s.length&&-1===S.indexOf("E")){for(l=s.length-1;l>=0;--l)null!=s[l]&&-1!=="n?".indexOf(s[l].t)&&(x>=s[l].v.length-1?(x-=s[l].v.length,s[l].v=S.substr(x+1,s[l].v.length)):x<0?s[l].v="":(s[l].v=S.substr(0,x+1),x=-1),s[l].t="t",k=l);x>=0&&k<s.length&&(s[k].v=S.substr(0,x+1)+s[k].v)}else if(T!==s.length&&-1===S.indexOf("E")){for(x=S.indexOf(".")-1,l=T;l>=0;--l)if(null!=s[l]&&-1!=="n?".indexOf(s[l].t)){for(o=s[l].v.indexOf(".")>-1&&l===T?s[l].v.indexOf(".")-1:s[l].v.length-1,E=s[l].v.substr(o+1);o>=0;--o)x>=0&&("0"===s[l].v.charAt(o)||"#"===s[l].v.charAt(o))&&(E=S.charAt(x--)+E);s[l].v=E,s[l].t="t",k=l}for(x>=0&&k<s.length&&(s[k].v=S.substr(0,x+1)+s[k].v),x=S.indexOf(".")+1,l=T;l<s.length;++l)if(null!=s[l]&&(-1!=="n?(".indexOf(s[l].t)||l===T)){for(o=s[l].v.indexOf(".")>-1&&l===T?s[l].v.indexOf(".")+1:0,E=s[l].v.substr(0,o);o<s[l].v.length;++o)x<S.length&&(E+=S.charAt(x++));s[l].v=E,s[l].t="t",k=l}}}for(l=0;l<s.length;++l)null!=s[l]&&"n?".indexOf(s[l].t)>-1&&(w=r>1&&e<0&&l>0&&"-"===s[l-1].v?-e:e,s[l].v=It(s[l].t,s[l].v,w),s[l].t="t");var C="";for(l=0;l!==s.length;++l)null!=s[l]&&(C+=s[l].v);return C}var Nt=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Rt(t,e){if(null==e)return!1;var n=parseFloat(e[2]);switch(e[1]){case"=":if(t==n)return!0;break;case">":if(t>n)return!0;break;case"<":if(t<n)return!0;break;case"<>":if(t!=n)return!0;break;case">=":if(t>=n)return!0;break;case"<=":if(t<=n)return!0;break}return!1}function jt(t,e){var n=Ot(t),r=n.length,i=n[r-1].indexOf("@");if(r<4&&i>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!==typeof e)return[4,4===n.length||i>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=i>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=i>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=i>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"];break;case 4:break}var o=e>0?n[0]:e<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,o];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var a=n[0].match(Nt),s=n[1].match(Nt);return Rt(e,a)?[r,n[0]]:Rt(e,s)?[r,n[1]]:[r,n[null!=a&&null!=s?2:1]]}return[r,o]}function Ft(t,e,n){null==n&&(n={});var r="";switch(typeof t){case"string":r="m/d/yy"==t&&n.dateNF?n.dateNF:t;break;case"number":r=14==t&&n.dateNF?n.dateNF:(null!=n.table?n.table:X)[t],null==r&&(r=n.table&&n.table[q[t]]||X[q[t]]),null==r&&(r=K[t]||"General");break}if(G(r,0))return at(e,n);e instanceof Date&&(e=ae(e,n.date1904));var i=jt(r,e);if(G(i[1]))return at(e,n);if(!0===e)e="TRUE";else if(!1===e)e="FALSE";else if(""===e||null==e)return"";return Lt(i[1],e,n,i[0])}function Bt(t,e){if("number"!=typeof e){e=+e||-1;for(var n=0;n<392;++n)if(void 0!=X[n]){if(X[n]==t){e=n;break}}else e<0&&(e=n);e<0&&(e=391)}return X[e]=t,e}function zt(t){for(var e=0;392!=e;++e)void 0!==t[e]&&Bt(t[e],e)}function Zt(){X=Y()}var Ut=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Ht(t){var e="number"==typeof t?X[t]:t;return e=e.replace(Ut,"(\\d+)"),Ut.lastIndex=0,new RegExp("^"+e+"$")}function $t(t,e,n){var r=-1,i=-1,o=-1,a=-1,s=-1,u=-1;(e.match(Ut)||[]).forEach((function(t,e){var l=parseInt(n[e+1],10);switch(t.toLowerCase().charAt(0)){case"y":r=l;break;case"d":o=l;break;case"h":a=l;break;case"s":u=l;break;case"m":a>=0?s=l:i=l;break}})),Ut.lastIndex=0,u>=0&&-1==s&&i>=0&&(s=i,i=-1);var l=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);7==l.length&&(l="0"+l),8==l.length&&(l="20"+l);var c=("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(u>=0?u:0)).slice(-2);return-1==a&&-1==s&&-1==u?l:-1==r&&-1==i&&-1==o?c:l+"T"+c}var Gt={"d.m":"d\\.m"};function Wt(t,e){return Bt(Gt[t]||t,e)}var Vt,Yt=function(){var t={};function e(){for(var t=0,e=new Array(256),n=0;256!=n;++n)t=n,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,e[n]=t;return"undefined"!==typeof Int32Array?new Int32Array(e):e}t.version="1.2.0";var n=e();function r(t){var e=0,n=0,r=0,i="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)i[r]=t[r];for(r=0;256!=r;++r)for(n=t[r],e=256+r;e<4096;e+=256)n=i[e]=n>>>8^t[255&n];var o=[];for(r=1;16!=r;++r)o[r-1]="undefined"!==typeof Int32Array&&"function"==typeof i.subarray?i.subarray(256*r,256*r+256):i.slice(256*r,256*r+256);return o}var i=r(n),o=i[0],a=i[1],s=i[2],u=i[3],l=i[4],c=i[5],f=i[6],h=i[7],d=i[8],p=i[9],g=i[10],v=i[11],m=i[12],y=i[13],b=i[14];function x(t,e){for(var r=-1^e,i=0,o=t.length;i<o;)r=r>>>8^n[255&(r^t.charCodeAt(i++))];return~r}function _(t,e){for(var r=-1^e,i=t.length-15,x=0;x<i;)r=b[t[x++]^255&r]^y[t[x++]^r>>8&255]^m[t[x++]^r>>16&255]^v[t[x++]^r>>>24]^g[t[x++]]^p[t[x++]]^d[t[x++]]^h[t[x++]]^f[t[x++]]^c[t[x++]]^l[t[x++]]^u[t[x++]]^s[t[x++]]^a[t[x++]]^o[t[x++]]^n[t[x++]];i+=15;while(x<i)r=r>>>8^n[255&(r^t[x++])];return~r}function w(t,e){for(var r=-1^e,i=0,o=t.length,a=0,s=0;i<o;)a=t.charCodeAt(i++),a<128?r=r>>>8^n[255&(r^a)]:a<2048?(r=r>>>8^n[255&(r^(192|a>>6&31))],r=r>>>8^n[255&(r^(128|63&a))]):a>=55296&&a<57344?(a=64+(1023&a),s=1023&t.charCodeAt(i++),r=r>>>8^n[255&(r^(240|a>>8&7))],r=r>>>8^n[255&(r^(128|a>>2&63))],r=r>>>8^n[255&(r^(128|s>>6&15|(3&a)<<4))],r=r>>>8^n[255&(r^(128|63&s))]):(r=r>>>8^n[255&(r^(224|a>>12&15))],r=r>>>8^n[255&(r^(128|a>>6&63))],r=r>>>8^n[255&(r^(128|63&a))]);return~r}return t.table=n,t.bstr=x,t.buf=_,t.str=w,t}(),Xt=function(){var t,e={};function n(t,e){for(var n=t.split("/"),r=e.split("/"),i=0,o=0,a=Math.min(n.length,r.length);i<a;++i){if(o=n[i].length-r[i].length)return o;if(n[i]!=r[i])return n[i]<r[i]?-1:1}return n.length-r.length}function r(t){if("/"==t.charAt(t.length-1))return-1===t.slice(0,-1).indexOf("/")?t:r(t.slice(0,-1));var e=t.lastIndexOf("/");return-1===e?t:t.slice(0,e+1)}function i(t){if("/"==t.charAt(t.length-1))return i(t.slice(0,-1));var e=t.lastIndexOf("/");return-1===e?t:t.slice(e+1)}function o(t,e){"string"===typeof e&&(e=new Date(e));var n=e.getHours();n=n<<6|e.getMinutes(),n=n<<5|e.getSeconds()>>>1,t.write_shift(2,n);var r=e.getFullYear()-1980;r=r<<4|e.getMonth()+1,r=r<<5|e.getDate(),t.write_shift(2,r)}function a(t){var e=65535&t.read_shift(2),n=65535&t.read_shift(2),r=new Date,i=31&n;n>>>=5;var o=15&n;n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(o-1),r.setDate(i);var a=31&e;e>>>=5;var s=63&e;return e>>>=6,r.setHours(e),r.setMinutes(s),r.setSeconds(a<<1),r}function s(t){Bn(t,0);var e={},n=0;while(t.l<=t.length-4){var r=t.read_shift(2),i=t.read_shift(2),o=t.l+i,a={};switch(r){case 21589:n=t.read_shift(1),1&n&&(a.mtime=t.read_shift(4)),i>5&&(2&n&&(a.atime=t.read_shift(4)),4&n&&(a.ctime=t.read_shift(4))),a.mtime&&(a.mt=new Date(1e3*a.mtime));break;case 1:var s=t.read_shift(4),u=t.read_shift(4);a.usz=u*Math.pow(2,32)+s,s=t.read_shift(4),u=t.read_shift(4),a.csz=u*Math.pow(2,32)+s;break}t.l=o,e[r]=a}return e}function u(){return t||(t=Vt)}function l(t,e){if(80==t[0]&&75==t[1])return Ot(t,e);if(109==(32|t[0])&&105==(32|t[1]))return zt(t,e);if(t.length<512)throw new Error("CFB file size "+t.length+" < 512");var n=3,r=512,i=0,o=0,a=0,s=0,u=0,l=[],p=t.slice(0,512);Bn(p,0);var v=c(p);switch(n=v[0],n){case 3:r=512;break;case 4:r=4096;break;case 0:if(0==v[1])return Ot(t,e);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==r&&(p=t.slice(0,r),Bn(p,28));var b=t.slice(0,r);f(p,n);var x=p.read_shift(4,"i");if(3===n&&0!==x)throw new Error("# Directory Sectors: Expected 0 saw "+x);p.l+=4,a=p.read_shift(4,"i"),p.l+=4,p.chk("00100000","Mini Stream Cutoff Size: "),s=p.read_shift(4,"i"),i=p.read_shift(4,"i"),u=p.read_shift(4,"i"),o=p.read_shift(4,"i");for(var _=-1,w=0;w<109;++w){if(_=p.read_shift(4,"i"),_<0)break;l[w]=_}var S=h(t,r);g(u,o,S,r,l);var E=m(S,a,l,r);a<E.length&&(E[a].name="!Directory"),i>0&&s!==B&&(E[s].name="!MiniFAT"),E[l[0]].name="!FAT",E.fat_addrs=l,E.ssz=r;var T={},k=[],C=[],M=[];y(a,E,S,k,i,T,C,s),d(C,M,k),k.shift();var A={FileIndex:C,FullPaths:M};return e&&e.raw&&(A.raw={header:b,sectors:S}),A}function c(t){if(80==t[t.l]&&75==t[t.l+1])return[0,0];t.chk(z,"Header Signature: "),t.l+=16;var e=t.read_shift(2,"u");return[t.read_shift(2,"u"),e]}function f(t,e){var n=9;switch(t.l+=2,n=t.read_shift(2)){case 9:if(3!=e)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=e)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}t.chk("0600","Mini Sector Shift: "),t.chk("000000000000","Reserved: ")}function h(t,e){for(var n=Math.ceil(t.length/e)-1,r=[],i=1;i<n;++i)r[i-1]=t.slice(i*e,(i+1)*e);return r[n-1]=t.slice(n*e),r}function d(t,e,n){for(var r=0,i=0,o=0,a=0,s=0,u=n.length,l=[],c=[];r<u;++r)l[r]=c[r]=r,e[r]=n[r];for(;s<c.length;++s)r=c[s],i=t[r].L,o=t[r].R,a=t[r].C,l[r]===r&&(-1!==i&&l[i]!==i&&(l[r]=l[i]),-1!==o&&l[o]!==o&&(l[r]=l[o])),-1!==a&&(l[a]=r),-1!==i&&r!=l[r]&&(l[i]=l[r],c.lastIndexOf(i)<s&&c.push(i)),-1!==o&&r!=l[r]&&(l[o]=l[r],c.lastIndexOf(o)<s&&c.push(o));for(r=1;r<u;++r)l[r]===r&&(-1!==o&&l[o]!==o?l[r]=l[o]:-1!==i&&l[i]!==i&&(l[r]=l[i]));for(r=1;r<u;++r)if(0!==t[r].type){if(s=r,s!=l[s])do{s=l[s],e[r]=e[s]+"/"+e[r]}while(0!==s&&-1!==l[s]&&s!=l[s]);l[r]=-1}for(e[0]+="/",r=1;r<u;++r)2!==t[r].type&&(e[r]+="/")}function p(t,e,n){var r=t.start,i=t.size,o=[],a=r;while(n&&i>0&&a>=0)o.push(e.slice(a*F,a*F+F)),i-=F,a=On(n,4*a);return 0===o.length?Zn(0):D(o).slice(0,t.size)}function g(t,e,n,r,i){var o=B;if(t===B){if(0!==e)throw new Error("DIFAT chain shorter than expected")}else if(-1!==t){var a=n[t],s=(r>>>2)-1;if(!a)return;for(var u=0;u<s;++u){if((o=On(a,4*u))===B)break;i.push(o)}e>=1&&g(On(a,r-4),e-1,n,r,i)}}function v(t,e,n,r,i){var o=[],a=[];i||(i=[]);var s=r-1,u=0,l=0;for(u=e;u>=0;){i[u]=!0,o[o.length]=u,a.push(t[u]);var c=n[Math.floor(4*u/r)];if(l=4*u&s,r<4+l)throw new Error("FAT boundary crossed: "+u+" 4 "+r);if(!t[c])break;u=On(t[c],l)}return{nodes:o,data:an([a])}}function m(t,e,n,r){var i=t.length,o=[],a=[],s=[],u=[],l=r-1,c=0,f=0,h=0,d=0;for(c=0;c<i;++c)if(s=[],h=c+e,h>=i&&(h-=i),!a[h]){u=[];var p=[];for(f=h;f>=0;){p[f]=!0,a[f]=!0,s[s.length]=f,u.push(t[f]);var g=n[Math.floor(4*f/r)];if(d=4*f&l,r<4+d)throw new Error("FAT boundary crossed: "+f+" 4 "+r);if(!t[g])break;if(f=On(t[g],d),p[f])break}o[h]={nodes:s,data:an([u])}}return o}function y(t,e,n,r,i,o,a,s){for(var u,l=0,c=r.length?2:0,f=e[t].data,h=0,d=0;h<f.length;h+=128){var g=f.slice(h,h+128);Bn(g,64),d=g.read_shift(2),u=un(g,0,d-c),r.push(u);var m={name:u,type:g.read_shift(1),color:g.read_shift(1),L:g.read_shift(4,"i"),R:g.read_shift(4,"i"),C:g.read_shift(4,"i"),clsid:g.read_shift(16),state:g.read_shift(4,"i"),start:0,size:0},y=g.read_shift(2)+g.read_shift(2)+g.read_shift(2)+g.read_shift(2);0!==y&&(m.ct=x(g,g.l-8));var b=g.read_shift(2)+g.read_shift(2)+g.read_shift(2)+g.read_shift(2);0!==b&&(m.mt=x(g,g.l-8)),m.start=g.read_shift(4,"i"),m.size=g.read_shift(4,"i"),m.size<0&&m.start<0&&(m.size=m.type=0,m.start=B,m.name=""),5===m.type?(l=m.start,i>0&&l!==B&&(e[l].name="!StreamData")):m.size>=4096?(m.storage="fat",void 0===e[m.start]&&(e[m.start]=v(n,m.start,e.fat_addrs,e.ssz)),e[m.start].name=m.name,m.content=e[m.start].data.slice(0,m.size)):(m.storage="minifat",m.size<0?m.size=0:l!==B&&m.start!==B&&e[l]&&(m.content=p(m,e[l].data,(e[s]||{}).data))),m.content&&Bn(m.content,0),o[u]=m,a.push(m)}}function x(t,e){return new Date(1e3*(In(t,e+4)/1e7*Math.pow(2,32)+In(t,e)/1e7-11644473600))}function _(e,n){return u(),l(t.readFileSync(e),n)}function T(t,e){var n=e&&e.type;switch(n||S&&Buffer.isBuffer(t)&&(n="buffer"),n||"base64"){case"file":return _(t,e);case"base64":return l(M(w(t)),e);case"binary":return l(M(t),e)}return l(t,e)}function A(t,e){var n=e||{},r=n.root||"Root Entry";if(t.FullPaths||(t.FullPaths=[]),t.FileIndex||(t.FileIndex=[]),t.FullPaths.length!==t.FileIndex.length)throw new Error("inconsistent CFB structure");0===t.FullPaths.length&&(t.FullPaths[0]=r+"/",t.FileIndex[0]={name:r,type:5}),n.CLSID&&(t.FileIndex[0].clsid=n.CLSID),I(t)}function I(t){var e="Sh33tJ5";if(!Xt.find(t,"/"+e)){var n=Zn(4);n[0]=55,n[1]=n[3]=50,n[2]=54,t.FileIndex.push({name:e,type:2,content:n,size:4,L:69,R:69,C:69}),t.FullPaths.push(t.FullPaths[0]+e),O(t)}}function O(t,e){A(t);for(var o=!1,a=!1,s=t.FullPaths.length-1;s>=0;--s){var u=t.FileIndex[s];switch(u.type){case 0:a?o=!0:(t.FileIndex.pop(),t.FullPaths.pop());break;case 1:case 2:case 5:a=!0,isNaN(u.R*u.L*u.C)&&(o=!0),u.R>-1&&u.L>-1&&u.R==u.L&&(o=!0);break;default:o=!0;break}}if(o||e){var l=new Date(1987,1,19),c=0,f=Object.create?Object.create(null):{},h=[];for(s=0;s<t.FullPaths.length;++s)f[t.FullPaths[s]]=!0,0!==t.FileIndex[s].type&&h.push([t.FullPaths[s],t.FileIndex[s]]);for(s=0;s<h.length;++s){var d=r(h[s][0]);a=f[d];while(!a){while(r(d)&&!f[r(d)])d=r(d);h.push([d,{name:i(d).replace("/",""),type:1,clsid:U,ct:l,mt:l,content:null}]),f[d]=!0,d=r(h[s][0]),a=f[d]}}for(h.sort((function(t,e){return n(t[0],e[0])})),t.FullPaths=[],t.FileIndex=[],s=0;s<h.length;++s)t.FullPaths[s]=h[s][0],t.FileIndex[s]=h[s][1];for(s=0;s<h.length;++s){var p=t.FileIndex[s],g=t.FullPaths[s];if(p.name=i(g).replace("/",""),p.L=p.R=p.C=-(p.color=1),p.size=p.content?p.content.length:0,p.start=0,p.clsid=p.clsid||U,0===s)p.C=h.length>1?1:-1,p.size=0,p.type=5;else if("/"==g.slice(-1)){for(c=s+1;c<h.length;++c)if(r(t.FullPaths[c])==g)break;for(p.C=c>=h.length?-1:c,c=s+1;c<h.length;++c)if(r(t.FullPaths[c])==r(g))break;p.R=c>=h.length?-1:c,p.type=1}else r(t.FullPaths[s+1]||"")==r(g)&&(p.R=s+1),p.type=2}}}function P(t,e){var n=e||{};if("mad"==n.fileType)return Zt(t,n);switch(O(t),n.fileType){case"zip":return Pt(t,n)}var r=function(t){for(var e=0,n=0,r=0;r<t.FileIndex.length;++r){var i=t.FileIndex[r];if(i.content){var o=i.content.length;o>0&&(o<4096?e+=o+63>>6:n+=o+511>>9)}}var a=t.FullPaths.length+3>>2,s=e+7>>3,u=e+127>>7,l=s+n+a+u,c=l+127>>7,f=c<=109?0:Math.ceil((c-109)/127);while(l+c+f+127>>7>c)f=++c<=109?0:Math.ceil((c-109)/127);var h=[1,f,c,u,a,n,e,0];return t.FileIndex[0].size=e<<6,h[7]=(t.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3),h}(t),i=Zn(r[7]<<9),o=0,a=0;for(o=0;o<8;++o)i.write_shift(1,Z[o]);for(o=0;o<8;++o)i.write_shift(2,0);for(i.write_shift(2,62),i.write_shift(2,3),i.write_shift(2,65534),i.write_shift(2,9),i.write_shift(2,6),o=0;o<3;++o)i.write_shift(2,0);for(i.write_shift(4,0),i.write_shift(4,r[2]),i.write_shift(4,r[0]+r[1]+r[2]+r[3]-1),i.write_shift(4,0),i.write_shift(4,4096),i.write_shift(4,r[3]?r[0]+r[1]+r[2]-1:B),i.write_shift(4,r[3]),i.write_shift(-4,r[1]?r[0]-1:B),i.write_shift(4,r[1]),o=0;o<109;++o)i.write_shift(-4,o<r[2]?r[1]+o:-1);if(r[1])for(a=0;a<r[1];++a){for(;o<236+127*a;++o)i.write_shift(-4,o<r[2]?r[1]+o:-1);i.write_shift(-4,a===r[1]-1?B:a+1)}var s=function(t){for(a+=t;o<a-1;++o)i.write_shift(-4,o+1);t&&(++o,i.write_shift(-4,B))};for(a=o=0,a+=r[1];o<a;++o)i.write_shift(-4,H.DIFSECT);for(a+=r[2];o<a;++o)i.write_shift(-4,H.FATSECT);s(r[3]),s(r[4]);for(var u=0,l=0,c=t.FileIndex[0];u<t.FileIndex.length;++u)c=t.FileIndex[u],c.content&&(l=c.content.length,l<4096||(c.start=a,s(l+511>>9)));s(r[6]+7>>3);while(511&i.l)i.write_shift(-4,H.ENDOFCHAIN);for(a=o=0,u=0;u<t.FileIndex.length;++u)c=t.FileIndex[u],c.content&&(l=c.content.length,!l||l>=4096||(c.start=a,s(l+63>>6)));while(511&i.l)i.write_shift(-4,H.ENDOFCHAIN);for(o=0;o<r[4]<<2;++o){var f=t.FullPaths[o];if(f&&0!==f.length){c=t.FileIndex[o],0===o&&(c.start=c.size?c.start-1:B);var h=0===o&&n.root||c.name;if(h.length>31&&(console.error("Name "+h+" will be truncated to "+h.slice(0,31)),h=h.slice(0,31)),l=2*(h.length+1),i.write_shift(64,h,"utf16le"),i.write_shift(2,l),i.write_shift(1,c.type),i.write_shift(1,c.color),i.write_shift(-4,c.L),i.write_shift(-4,c.R),i.write_shift(-4,c.C),c.clsid)i.write_shift(16,c.clsid,"hex");else for(u=0;u<4;++u)i.write_shift(4,0);i.write_shift(4,c.state||0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,c.start),i.write_shift(4,c.size),i.write_shift(4,0)}else{for(u=0;u<17;++u)i.write_shift(4,0);for(u=0;u<3;++u)i.write_shift(4,-1);for(u=0;u<12;++u)i.write_shift(4,0)}}for(o=1;o<t.FileIndex.length;++o)if(c=t.FileIndex[o],c.size>=4096)if(i.l=c.start+1<<9,S&&Buffer.isBuffer(c.content))c.content.copy(i,i.l,0,c.size),i.l+=c.size+511&-512;else{for(u=0;u<c.size;++u)i.write_shift(1,c.content[u]);for(;511&u;++u)i.write_shift(1,0)}for(o=1;o<t.FileIndex.length;++o)if(c=t.FileIndex[o],c.size>0&&c.size<4096)if(S&&Buffer.isBuffer(c.content))c.content.copy(i,i.l,0,c.size),i.l+=c.size+63&-64;else{for(u=0;u<c.size;++u)i.write_shift(1,c.content[u]);for(;63&u;++u)i.write_shift(1,0)}if(S)i.l=i.length;else while(i.l<i.length)i.write_shift(1,0);return i}function R(t,e){var n=t.FullPaths.map((function(t){return t.toUpperCase()})),r=n.map((function(t){var e=t.split("/");return e[e.length-("/"==t.slice(-1)?2:1)]})),i=!1;47===e.charCodeAt(0)?(i=!0,e=n[0].slice(0,-1)+e):i=-1!==e.indexOf("/");var o=e.toUpperCase(),a=!0===i?n.indexOf(o):r.indexOf(o);if(-1!==a)return t.FileIndex[a];var s=!o.match(N);for(o=o.replace(L,""),s&&(o=o.replace(N,"!")),a=0;a<n.length;++a){if((s?n[a].replace(N,"!"):n[a]).replace(L,"")==o)return t.FileIndex[a];if((s?r[a].replace(N,"!"):r[a]).replace(L,"")==o)return t.FileIndex[a]}return null}e.version="1.2.2";var j,F=64,B=-2,z="d0cf11e0a1b11ae1",Z=[208,207,17,224,161,177,26,225],U="00000000000000000000000000000000",H={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:B,FREESECT:-1,HEADER_SIGNATURE:z,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:U,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function $(e,n,r){u();var i=P(e,r);t.writeFileSync(n,i)}function G(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=String.fromCharCode(t[n]);return e.join("")}function W(e,n){var r=P(e,n);switch(n&&n.type||"buffer"){case"file":return u(),t.writeFileSync(n.filename,r),r;case"binary":return"string"==typeof r?r:G(r);case"base64":return b("string"==typeof r?r:G(r));case"buffer":if(S)return Buffer.isBuffer(r)?r:E(r);case"array":return"string"==typeof r?M(r):r}return r}function V(t){try{var e=t.InflateRaw,n=new e;if(n._processChunk(new Uint8Array([3,0]),n._finishFlushFlag),!n.bytesRead)throw new Error("zlib does not expose bytesRead");j=t}catch(r){console.error("cannot use native zlib: "+(r.message||r))}}function Y(t,e){if(!j)return At(t,e);var n=j.InflateRaw,r=new n,i=r._processChunk(t.slice(t.l),r._finishFlushFlag);return t.l+=r.bytesRead,i}function X(t){return j?j.deflateRawSync(t):_t(t)}var q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],K=[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],J=[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];function Q(t){var e=139536&(t<<1|t<<11)|558144&(t<<5|t<<15);return 255&(e>>16|e>>8|e)}for(var tt="undefined"!==typeof Uint8Array,et=tt?new Uint8Array(256):[],nt=0;nt<256;++nt)et[nt]=Q(nt);function rt(t,e){var n=et[255&t];return e<=8?n>>>8-e:(n=n<<8|et[t>>8&255],e<=16?n>>>16-e:(n=n<<8|et[t>>16&255],n>>>24-e))}function it(t,e){var n=7&e,r=e>>>3;return(t[r]|(n<=6?0:t[r+1]<<8))>>>n&3}function ot(t,e){var n=7&e,r=e>>>3;return(t[r]|(n<=5?0:t[r+1]<<8))>>>n&7}function at(t,e){var n=7&e,r=e>>>3;return(t[r]|(n<=4?0:t[r+1]<<8))>>>n&15}function st(t,e){var n=7&e,r=e>>>3;return(t[r]|(n<=3?0:t[r+1]<<8))>>>n&31}function ut(t,e){var n=7&e,r=e>>>3;return(t[r]|(n<=1?0:t[r+1]<<8))>>>n&127}function lt(t,e,n){var r=7&e,i=e>>>3,o=(1<<n)-1,a=t[i]>>>r;return n<8-r?a&o:(a|=t[i+1]<<8-r,n<16-r?a&o:(a|=t[i+2]<<16-r,n<24-r||(a|=t[i+3]<<24-r),a&o))}function ct(t,e,n){var r=7&e,i=e>>>3;return r<=5?t[i]|=(7&n)<<r:(t[i]|=n<<r&255,t[i+1]=(7&n)>>8-r),e+3}function ft(t,e,n){var r=7&e,i=e>>>3;return n=(1&n)<<r,t[i]|=n,e+1}function ht(t,e,n){var r=7&e,i=e>>>3;return n<<=r,t[i]|=255&n,n>>>=8,t[i+1]=n,e+8}function dt(t,e,n){var r=7&e,i=e>>>3;return n<<=r,t[i]|=255&n,n>>>=8,t[i+1]=255&n,t[i+2]=n>>>8,e+16}function pt(t,e){var n=t.length,r=2*n>e?2*n:e+5,i=0;if(n>=e)return t;if(S){var o=C(r);if(t.copy)t.copy(o);else for(;i<t.length;++i)o[i]=t[i];return o}if(tt){var a=new Uint8Array(r);if(a.set)a.set(t);else for(;i<n;++i)a[i]=t[i];return a}return t.length=r,t}function gt(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function vt(t,e,n){var r=1,i=0,o=0,a=0,s=0,u=t.length,l=tt?new Uint16Array(32):gt(32);for(o=0;o<32;++o)l[o]=0;for(o=u;o<n;++o)t[o]=0;u=t.length;var c=tt?new Uint16Array(u):gt(u);for(o=0;o<u;++o)l[i=t[o]]++,r<i&&(r=i),c[o]=0;for(l[0]=0,o=1;o<=r;++o)l[o+16]=s=s+l[o-1]<<1;for(o=0;o<u;++o)s=t[o],0!=s&&(c[o]=l[s+16]++);var f=0;for(o=0;o<u;++o)if(f=t[o],0!=f)for(s=rt(c[o],r)>>r-f,a=(1<<r+4-f)-1;a>=0;--a)e[s|a<<f]=15&f|o<<4;return r}var mt=tt?new Uint16Array(512):gt(512),yt=tt?new Uint16Array(32):gt(32);if(!tt){for(var bt=0;bt<512;++bt)mt[bt]=0;for(bt=0;bt<32;++bt)yt[bt]=0}(function(){for(var t=[],e=0;e<32;e++)t.push(5);vt(t,yt,32);var n=[];for(e=0;e<=143;e++)n.push(8);for(;e<=255;e++)n.push(9);for(;e<=279;e++)n.push(7);for(;e<=287;e++)n.push(8);vt(n,mt,288)})();var xt=function(){for(var t=tt?new Uint8Array(32768):[],e=0,n=0;e<J.length-1;++e)for(;n<J[e+1];++n)t[n]=e;for(;n<32768;++n)t[n]=29;var r=tt?new Uint8Array(259):[];for(e=0,n=0;e<K.length-1;++e)for(;n<K[e+1];++n)r[n]=e;function i(t,e){var n=0;while(n<t.length){var r=Math.min(65535,t.length-n),i=n+r==t.length;e.write_shift(1,+i),e.write_shift(2,r),e.write_shift(2,65535&~r);while(r-- >0)e[e.l++]=t[n++]}return e.l}function o(e,n){var i=0,o=0,a=tt?new Uint16Array(32768):[];while(o<e.length){var s=Math.min(65535,e.length-o);if(s<10){i=ct(n,i,+!(o+s!=e.length)),7&i&&(i+=8-(7&i)),n.l=i/8|0,n.write_shift(2,s),n.write_shift(2,65535&~s);while(s-- >0)n[n.l++]=e[o++];i=8*n.l}else{i=ct(n,i,+!(o+s!=e.length)+2);var u=0;while(s-- >0){var l=e[o];u=32767&(u<<5^l);var c=-1,f=0;if((c=a[u])&&(c|=-32768&o,c>o&&(c-=32768),c<o))while(e[c+f]==e[o+f]&&f<250)++f;if(f>2){l=r[f],l<=22?i=ht(n,i,et[l+1]>>1)-1:(ht(n,i,3),i+=5,ht(n,i,et[l-23]>>5),i+=3);var h=l<8?0:l-4>>2;h>0&&(dt(n,i,f-K[l]),i+=h),l=t[o-c],i=ht(n,i,et[l]>>3),i-=3;var d=l<4?0:l-2>>1;d>0&&(dt(n,i,o-c-J[l]),i+=d);for(var p=0;p<f;++p)a[u]=32767&o,u=32767&(u<<5^e[o]),++o;s-=f-1}else l<=143?l+=48:i=ft(n,i,1),i=ht(n,i,et[l]),a[u]=32767&o,++o}i=ht(n,i,0)-1}}return n.l=(i+7)/8|0,n.l}return function(t,e){return t.length<8?i(t,e):o(t,e)}}();function _t(t){var e=Zn(50+Math.floor(1.1*t.length)),n=xt(t,e);return e.slice(0,n)}var wt=tt?new Uint16Array(32768):gt(32768),St=tt?new Uint16Array(32768):gt(32768),Et=tt?new Uint16Array(128):gt(128),Tt=1,kt=1;function Ct(t,e){var n=st(t,e)+257;e+=5;var r=st(t,e)+1;e+=5;var i=at(t,e)+4;e+=4;for(var o=0,a=tt?new Uint8Array(19):gt(19),s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],u=1,l=tt?new Uint8Array(8):gt(8),c=tt?new Uint8Array(8):gt(8),f=a.length,h=0;h<i;++h)a[q[h]]=o=ot(t,e),u<o&&(u=o),l[o]++,e+=3;var d=0;for(l[0]=0,h=1;h<=u;++h)c[h]=d=d+l[h-1]<<1;for(h=0;h<f;++h)0!=(d=a[h])&&(s[h]=c[d]++);var p=0;for(h=0;h<f;++h)if(p=a[h],0!=p){d=et[s[h]]>>8-p;for(var g=(1<<7-p)-1;g>=0;--g)Et[d|g<<p]=7&p|h<<3}var v=[];for(u=1;v.length<n+r;)switch(d=Et[ut(t,e)],e+=7&d,d>>>=3){case 16:o=3+it(t,e),e+=2,d=v[v.length-1];while(o-- >0)v.push(d);break;case 17:o=3+ot(t,e),e+=3;while(o-- >0)v.push(0);break;case 18:o=11+ut(t,e),e+=7;while(o-- >0)v.push(0);break;default:v.push(d),u<d&&(u=d);break}var m=v.slice(0,n),y=v.slice(n);for(h=n;h<286;++h)m[h]=0;for(h=r;h<30;++h)y[h]=0;return Tt=vt(m,wt,286),kt=vt(y,St,30),e}function Mt(t,e){if(3==t[0]&&!(3&t[1]))return[k(e),2];var n=0,r=0,i=C(e||1<<18),o=0,a=i.length>>>0,s=0,u=0;while(0==(1&r))if(r=ot(t,n),n+=3,r>>>1!=0)for(r>>1==1?(s=9,u=5):(n=Ct(t,n),s=Tt,u=kt);;){!e&&a<o+32767&&(i=pt(i,o+32767),a=i.length);var l=lt(t,n,s),c=r>>>1==1?mt[l]:wt[l];if(n+=15&c,c>>>=4,0===(c>>>8&255))i[o++]=c;else{if(256==c)break;c-=257;var f=c<8?0:c-4>>2;f>5&&(f=0);var h=o+K[c];f>0&&(h+=lt(t,n,f),n+=f),l=lt(t,n,u),c=r>>>1==1?yt[l]:St[l],n+=15&c,c>>>=4;var d=c<4?0:c-2>>1,p=J[c];d>0&&(p+=lt(t,n,d),n+=d),!e&&a<h&&(i=pt(i,h+100),a=i.length);while(o<h)i[o]=i[o-p],++o}}else{7&n&&(n+=8-(7&n));var g=t[n>>>3]|t[1+(n>>>3)]<<8;if(n+=32,g>0){!e&&a<o+g&&(i=pt(i,o+g),a=i.length);while(g-- >0)i[o++]=t[n>>>3],n+=8}}return e?[i,n+7>>>3]:[i.slice(0,o),n+7>>>3]}function At(t,e){var n=t.slice(t.l||0),r=Mt(n,e);return t.l+=r[1],r[0]}function It(t,e){if(!t)throw new Error(e);"undefined"!==typeof console&&console.error(e)}function Ot(t,e){var n=t;Bn(n,0);var r=[],i=[],o={FileIndex:r,FullPaths:i};A(o,{root:e.root});var a=n.length-4;while((80!=n[a]||75!=n[a+1]||5!=n[a+2]||6!=n[a+3])&&a>=0)--a;n.l=a+4,n.l+=4;var u=n.read_shift(2);n.l+=6;var l=n.read_shift(4);for(n.l=l,a=0;a<u;++a){n.l+=20;var c=n.read_shift(4),f=n.read_shift(4),h=n.read_shift(2),d=n.read_shift(2),p=n.read_shift(2);n.l+=8;var g=n.read_shift(4),v=s(n.slice(n.l+h,n.l+h+d));n.l+=h+d+p;var m=n.l;n.l=g+4,v&&v[1]&&((v[1]||{}).usz&&(f=v[1].usz),(v[1]||{}).csz&&(c=v[1].csz)),Dt(n,c,f,o,v),n.l=m}return o}function Dt(t,e,n,r,i){t.l+=2;var o=t.read_shift(2),u=t.read_shift(2),l=a(t);if(8257&o)throw new Error("Unsupported ZIP encryption");for(var c=t.read_shift(4),f=t.read_shift(4),h=t.read_shift(4),d=t.read_shift(2),p=t.read_shift(2),g="",v=0;v<d;++v)g+=String.fromCharCode(t[t.l++]);if(p){var m=s(t.slice(t.l,t.l+p));(m[21589]||{}).mt&&(l=m[21589].mt),(m[1]||{}).usz&&(h=m[1].usz),(m[1]||{}).csz&&(f=m[1].csz),i&&((i[21589]||{}).mt&&(l=i[21589].mt),(i[1]||{}).usz&&(h=m[1].usz),(i[1]||{}).csz&&(f=m[1].csz))}t.l+=p;var y=t.slice(t.l,t.l+f);switch(u){case 8:y=Y(t,h);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+u)}var b=!1;8&o&&(c=t.read_shift(4),134695760==c&&(c=t.read_shift(4),b=!0),f=t.read_shift(4),h=t.read_shift(4)),f!=e&&It(b,"Bad compressed size: "+e+" != "+f),h!=n&&It(b,"Bad uncompressed size: "+n+" != "+h),Ht(r,g,y,{unsafe:!0,mt:l})}function Pt(t,e){var n=e||{},r=[],i=[],a=Zn(1),s=n.compression?8:0,u=0,l=!1;l&&(u|=8);var c=0,f=0,h=0,d=0,p=t.FullPaths[0],g=p,v=t.FileIndex[0],m=[],y=0;for(c=1;c<t.FullPaths.length;++c)if(g=t.FullPaths[c].slice(p.length),v=t.FileIndex[c],v.size&&v.content&&"Sh33tJ5"!=g){var b=h,x=Zn(g.length);for(f=0;f<g.length;++f)x.write_shift(1,127&g.charCodeAt(f));x=x.slice(0,x.l),m[d]="string"==typeof v.content?Yt.bstr(v.content,0):Yt.buf(v.content,0);var _="string"==typeof v.content?M(v.content):v.content;8==s&&(_=X(_)),a=Zn(30),a.write_shift(4,67324752),a.write_shift(2,20),a.write_shift(2,u),a.write_shift(2,s),v.mt?o(a,v.mt):a.write_shift(4,0),a.write_shift(-4,8&u?0:m[d]),a.write_shift(4,8&u?0:_.length),a.write_shift(4,8&u?0:v.content.length),a.write_shift(2,x.length),a.write_shift(2,0),h+=a.length,r.push(a),h+=x.length,r.push(x),h+=_.length,r.push(_),8&u&&(a=Zn(12),a.write_shift(-4,m[d]),a.write_shift(4,_.length),a.write_shift(4,v.content.length),h+=a.l,r.push(a)),a=Zn(46),a.write_shift(4,33639248),a.write_shift(2,0),a.write_shift(2,20),a.write_shift(2,u),a.write_shift(2,s),a.write_shift(4,0),a.write_shift(-4,m[d]),a.write_shift(4,_.length),a.write_shift(4,v.content.length),a.write_shift(2,x.length),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(4,0),a.write_shift(4,b),y+=a.l,i.push(a),y+=x.length,i.push(x),++d}return a=Zn(22),a.write_shift(4,101010256),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,d),a.write_shift(2,d),a.write_shift(4,y),a.write_shift(4,h),a.write_shift(2,0),D([D(r),D(i),a])}var Lt={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Nt(t,e){if(t.ctype)return t.ctype;var n=t.name||"",r=n.match(/\.([^\.]+)$/);return r&&Lt[r[1]]||e&&(r=(n=e).match(/[\.\\]([^\.\\])+$/),r&&Lt[r[1]])?Lt[r[1]]:"application/octet-stream"}function Rt(t){for(var e=b(t),n=[],r=0;r<e.length;r+=76)n.push(e.slice(r,r+76));return n.join("\r\n")+"\r\n"}function jt(t){var e=t.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(t){var e=t.charCodeAt(0).toString(16).toUpperCase();return"="+(1==e.length?"0"+e:e)}));e=e.replace(/ $/gm,"=20").replace(/\t$/gm,"=09"),"\n"==e.charAt(0)&&(e="=0D"+e.slice(1)),e=e.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A");for(var n=[],r=e.split("\r\n"),i=0;i<r.length;++i){var o=r[i];if(0!=o.length)for(var a=0;a<o.length;){var s=76,u=o.slice(a,a+s);"="==u.charAt(s-1)?s--:"="==u.charAt(s-2)?s-=2:"="==u.charAt(s-3)&&(s-=3),u=o.slice(a,a+s),a+=s,a<o.length&&(u+="="),n.push(u)}else n.push("")}return n.join("\r\n")}function Ft(t){for(var e=[],n=0;n<t.length;++n){var r=t[n];while(n<=t.length&&"="==r.charAt(r.length-1))r=r.slice(0,r.length-1)+t[++n];e.push(r)}for(var i=0;i<e.length;++i)e[i]=e[i].replace(/[=][0-9A-Fa-f]{2}/g,(function(t){return String.fromCharCode(parseInt(t.slice(1),16))}));return M(e.join("\r\n"))}function Bt(t,e,n){for(var r,i="",o="",a="",s=0;s<10;++s){var u=e[s];if(!u||u.match(/^\s*$/))break;var l=u.match(/^([^:]*?):\s*([^\s].*)$/);if(l)switch(l[1].toLowerCase()){case"content-location":i=l[2].trim();break;case"content-type":a=l[2].trim();break;case"content-transfer-encoding":o=l[2].trim();break}}switch(++s,o.toLowerCase()){case"base64":r=M(w(e.slice(s).join("")));break;case"quoted-printable":r=Ft(e.slice(s));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+o)}var c=Ht(t,i.slice(n.length),r,{unsafe:!0});a&&(c.ctype=a)}function zt(t,e){if("mime-version:"!=G(t.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=e&&e.root||"",r=(S&&Buffer.isBuffer(t)?t.toString("binary"):G(t)).split("\r\n"),i=0,o="";for(i=0;i<r.length;++i)if(o=r[i],/^Content-Location:/i.test(o)&&(o=o.slice(o.indexOf("file")),n||(n=o.slice(0,o.lastIndexOf("/")+1)),o.slice(0,n.length)!=n))while(n.length>0)if(n=n.slice(0,n.length-1),n=n.slice(0,n.lastIndexOf("/")+1),o.slice(0,n.length)==n)break;var a=(r[1]||"").match(/boundary="(.*?)"/);if(!a)throw new Error("MAD cannot find boundary");var s="--"+(a[1]||""),u=[],l=[],c={FileIndex:u,FullPaths:l};A(c);var f,h=0;for(i=0;i<r.length;++i){var d=r[i];d!==s&&d!==s+"--"||(h++&&Bt(c,r.slice(f,i),n),f=i)}return c}function Zt(t,e){var n=e||{},r=n.boundary||"SheetJS";r="------="+r;for(var i=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+r.slice(2)+'"',"","",""],o=t.FullPaths[0],a=o,s=t.FileIndex[0],u=1;u<t.FullPaths.length;++u)if(a=t.FullPaths[u].slice(o.length),s=t.FileIndex[u],s.size&&s.content&&"Sh33tJ5"!=a){a=a.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(t){return"_x"+t.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(t){return"_u"+t.charCodeAt(0).toString(16)+"_"}));for(var l=s.content,c=S&&Buffer.isBuffer(l)?l.toString("binary"):G(l),f=0,h=Math.min(1024,c.length),d=0,p=0;p<=h;++p)(d=c.charCodeAt(p))>=32&&d<128&&++f;var g=f>=4*h/5;i.push(r),i.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+a),i.push("Content-Transfer-Encoding: "+(g?"quoted-printable":"base64")),i.push("Content-Type: "+Nt(s,a)),i.push(""),i.push(g?jt(c):Rt(c))}return i.push(r+"--\r\n"),i.join("\r\n")}function Ut(t){var e={};return A(e,t),e}function Ht(t,e,n,r){var o=r&&r.unsafe;o||A(t);var a=!o&&Xt.find(t,e);if(!a){var s=t.FullPaths[0];e.slice(0,s.length)==s?s=e:("/"!=s.slice(-1)&&(s+="/"),s=(s+e).replace("//","/")),a={name:i(e),type:2},t.FileIndex.push(a),t.FullPaths.push(s),o||Xt.utils.cfb_gc(t)}return a.content=n,a.size=n?n.length:0,r&&(r.CLSID&&(a.clsid=r.CLSID),r.mt&&(a.mt=r.mt),r.ct&&(a.ct=r.ct)),a}function $t(t,e){A(t);var n=Xt.find(t,e);if(n)for(var r=0;r<t.FileIndex.length;++r)if(t.FileIndex[r]==n)return t.FileIndex.splice(r,1),t.FullPaths.splice(r,1),!0;return!1}function Gt(t,e,n){A(t);var r=Xt.find(t,e);if(r)for(var o=0;o<t.FileIndex.length;++o)if(t.FileIndex[o]==r)return t.FileIndex[o].name=i(n),t.FullPaths[o]=n,!0;return!1}function Wt(t){O(t,!0)}return e.find=R,e.read=T,e.parse=l,e.write=W,e.writeFile=$,e.utils={cfb_new:Ut,cfb_add:Ht,cfb_del:$t,cfb_mov:Gt,cfb_gc:Wt,ReadShift:Pn,CheckField:Fn,prep_blob:Bn,bconcat:D,use_zlib:V,_deflateRaw:_t,_inflateRaw:At,consts:H},e}();function qt(t){return"string"===typeof t?A(t):Array.isArray(t)?O(t):t}function Kt(t,e,n){if("undefined"!==typeof Vt&&Vt.writeFileSync)return n?Vt.writeFileSync(t,e,n):Vt.writeFileSync(t,e);if("undefined"!==typeof Deno){if(n&&"string"==typeof e)switch(n){case"utf8":e=new TextEncoder(n).encode(e);break;case"binary":e=A(e);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(t,e)}var r="utf8"==n?Ge(e):e;if("undefined"!==typeof IE_SaveFile)return IE_SaveFile(r,t);if("undefined"!==typeof Blob){var i=new Blob([qt(r)],{type:"application/octet-stream"});if("undefined"!==typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(i,t);if("undefined"!==typeof saveAs)return saveAs(i,t);if("undefined"!==typeof URL&&"undefined"!==typeof document&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(i);if("object"===typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!==typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(o)}),6e4),chrome.downloads.download({url:o,filename:t,saveAs:!0});var a=document.createElement("a");if(null!=a.download)return a.download=t,a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&"undefined"!==typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(o)}),6e4),o}else if("undefined"!==typeof URL&&!URL.createObjectURL&&"object"===typeof chrome){var s="data:application/octet-stream;base64,"+_(new Uint8Array(qt(r)));return chrome.downloads.download({url:s,filename:t,saveAs:!0})}}if("undefined"!==typeof $&&"undefined"!==typeof File&&"undefined"!==typeof Folder)try{var u=File(t);return u.open("w"),u.encoding="binary",Array.isArray(e)&&(e=I(e)),u.write(e),u.close(),e}catch(l){if(!l.message||-1==l.message.indexOf("onstruct"))throw l}throw new Error("cannot save file "+t)}function Jt(t){for(var e=Object.keys(t),n=[],r=0;r<e.length;++r)Object.prototype.hasOwnProperty.call(t,e[r])&&n.push(e[r]);return n}function Qt(t,e){for(var n=[],r=Jt(t),i=0;i!==r.length;++i)null==n[t[r[i]][e]]&&(n[t[r[i]][e]]=r[i]);return n}function te(t){for(var e=[],n=Jt(t),r=0;r!==n.length;++r)e[t[n[r]]]=n[r];return e}function ee(t){for(var e=[],n=Jt(t),r=0;r!==n.length;++r)e[t[n[r]]]=parseInt(n[r],10);return e}function ne(t){for(var e=[],n=Jt(t),r=0;r!==n.length;++r)null==e[t[n[r]]]&&(e[t[n[r]]]=[]),e[t[n[r]]].push(n[r]);return e}var re=Date.UTC(1899,11,30,0,0,0),ie=Date.UTC(1899,11,31,0,0,0),oe=Date.UTC(1904,0,1,0,0,0);function ae(t,e){var n=t.getTime(),r=(n-re)/864e5;return e?(r-=1462,r<-1402?r-1:r):r<60?r-1:r}function se(t){if(t>=60&&t<61)return t;var e=new Date;return e.setTime(24*(t>60?t:t+1)*60*60*1e3+re),e}var ue=/^(\d+):(\d+)(:\d+)?(\.\d+)?$/,le=/^(\d+)-(\d+)-(\d+)$/,ce=/^(\d+)-(\d+)-(\d+)[T ](\d+):(\d+)(:\d+)?(\.\d+)?$/;function fe(t,e){if(t instanceof Date)return t;var n=t.match(ue);if(n)return new Date((e?oe:ie)+1e3*(60*(60*parseInt(n[1],10)+parseInt(n[2],10))+(n[3]?parseInt(n[3].slice(1),10):0))+(n[4]?parseInt((n[4]+"000").slice(1,4),10):0));if(n=t.match(le),n)return new Date(Date.UTC(+n[1],+n[2]-1,+n[3],0,0,0,0));if(n=t.match(ce),n)return new Date(Date.UTC(+n[1],+n[2]-1,+n[3],+n[4],+n[5],n[6]&&parseInt(n[6].slice(1),10)||0,n[7]&&parseInt((n[7]+"0000").slice(1,4),10)||0));var r=new Date(t);return r}function he(t,e){if(S&&Buffer.isBuffer(t)){if(e&&T){if(255==t[0]&&254==t[1])return Ge(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Ge(d(t.slice(2).toString("binary")))}return t.toString("binary")}if("undefined"!==typeof TextDecoder)try{if(e){if(255==t[0]&&254==t[1])return Ge(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return Ge(new TextDecoder("utf-16be").decode(t.slice(2)))}var n={"€":"","‚":"","ƒ":"","„":"","…":"","†":"","‡":"","ˆ":"","‰":"","Š":"","‹":"","Œ":"","Ž":"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"","š":"","›":"","œ":"","ž":"","Ÿ":""};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(t){return n[t]||t}))}catch(o){}var r=[],i=0;try{for(i=0;i<t.length-65536;i+=65536)r.push(String.fromCharCode.apply(0,t.slice(i,i+65536)));r.push(String.fromCharCode.apply(0,t.slice(i)))}catch(o){try{for(;i<t.length-16384;i+=16384)r.push(String.fromCharCode.apply(0,t.slice(i,i+16384)));r.push(String.fromCharCode.apply(0,t.slice(i)))}catch(o){for(;i!=t.length;++i)r.push(String.fromCharCode(t[i]))}}return r.join("")}function de(t){if("undefined"!=typeof JSON&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if("object"!=typeof t||null==t)return t;if(t instanceof Date)return new Date(t.getTime());var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=de(t[n]));return e}function pe(t,e){var n="";while(n.length<e)n+=t;return n}function ge(t){var e=Number(t);if(!isNaN(e))return isFinite(e)?e:NaN;if(!/\d/.test(t))return e;var n=1,r=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return n*=100,""}));return isNaN(e=Number(r))?(r=r.replace(/[(]([^()]*)[)]/,(function(t,e){return n=-n,e})),isNaN(e=Number(r))?e:e/n):e/n}var ve=/^(0?\d|1[0-2])(?:|:([0-5]?\d)(?:|(\.\d+)(?:|:([0-5]?\d))|:([0-5]?\d)(|\.\d+)))\s+([ap])m?$/,me=/^([01]?\d|2[0-3])(?:|:([0-5]?\d)(?:|(\.\d+)(?:|:([0-5]?\d))|:([0-5]?\d)(|\.\d+)))$/,ye=/^(\d+)-(\d+)-(\d+)[T ](\d+):(\d+)(:\d+)(\.\d+)?[Z]?$/,be=-177984e5==new Date("6/9/69 00:00 UTC").valueOf();function xe(t){return t[2]?t[3]?t[4]?new Date(Date.UTC(1899,11,31,+t[1]%12+("p"==t[7]?12:0),+t[2],+t[4],1e3*parseFloat(t[3]))):new Date(Date.UTC(1899,11,31,"p"==t[7]?12:0,+t[1],+t[2],1e3*parseFloat(t[3]))):t[5]?new Date(Date.UTC(1899,11,31,+t[1]%12+("p"==t[7]?12:0),+t[2],+t[5],t[6]?1e3*parseFloat(t[6]):0)):new Date(Date.UTC(1899,11,31,+t[1]%12+("p"==t[7]?12:0),+t[2],0,0)):new Date(Date.UTC(1899,11,31,+t[1]%12+("p"==t[7]?12:0),0,0,0))}function _e(t){return t[2]?t[3]?t[4]?new Date(Date.UTC(1899,11,31,+t[1],+t[2],+t[4],1e3*parseFloat(t[3]))):new Date(Date.UTC(1899,11,31,0,+t[1],+t[2],1e3*parseFloat(t[3]))):t[5]?new Date(Date.UTC(1899,11,31,+t[1],+t[2],+t[5],t[6]?1e3*parseFloat(t[6]):0)):new Date(Date.UTC(1899,11,31,+t[1],+t[2],0,0)):new Date(Date.UTC(1899,11,31,+t[1],0,0,0))}var we=["january","february","march","april","may","june","july","august","september","october","november","december"];function Se(t){if(ye.test(t))return-1==t.indexOf("Z")?Te(new Date(t)):new Date(t);var e=t.toLowerCase(),n=e.replace(/\s+/g," ").trim(),r=n.match(ve);if(r)return xe(r);if(r=n.match(me),r)return _e(r);if(r=n.match(ce),r)return new Date(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4],+r[5],r[6]&&parseInt(r[6].slice(1),10)||0,r[7]&&parseInt((r[7]+"0000").slice(1,4),10)||0));var i=new Date(be&&-1==t.indexOf("UTC")?t+" UTC":t),o=new Date(NaN),a=i.getYear(),s=(i.getMonth(),i.getDate());if(isNaN(s))return o;if(e.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(e=e.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),e.length>3&&-1==we.indexOf(e))return o}else if(e.replace(/[ap]m?/,"").match(/[a-z]/))return o;return a<0||a>8099||t.match(/[^-0-9:,\/\\\ ]/)?o:i}function Ee(t){return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())}function Te(t){return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))}function ke(t,e,n){if(t.FullPaths){var r;if("string"==typeof n)return r=S?E(n):P(n),Xt.utils.cfb_add(t,e,r);Xt.utils.cfb_add(t,e,n)}else t.file(e,n)}function Ce(){return Xt.utils.cfb_new()}var Me='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n';var Ae={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},Ie=te(Ae),Oe=/[&<>'"]/g,De=/[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;function Pe(t){var e=t+"";return e.replace(Oe,(function(t){return Ie[t]})).replace(De,(function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function Le(t){return Pe(t).replace(/ /g,"_x0020_")}var Ne=/[\u0000-\u001f]/g;function Re(t){var e=t+"";return e.replace(Oe,(function(t){return Ie[t]})).replace(/\n/g,"<br/>").replace(Ne,(function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"}))}function je(t){var e=t+"";return e.replace(Oe,(function(t){return Ie[t]})).replace(Ne,(function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"}))}function Fe(t){return t.replace(/(\r\n|[\r\n])/g,"&#10;")}function Be(t){switch(t){case 1:case!0:case"1":case"true":return!0;case 0:case!1:case"0":case"false":return!1}return!1}function ze(t){var e="",n=0,r=0,i=0,o=0,a=0,s=0;while(n<t.length)r=t.charCodeAt(n++),r<128?e+=String.fromCharCode(r):(i=t.charCodeAt(n++),r>191&&r<224?(a=(31&r)<<6,a|=63&i,e+=String.fromCharCode(a)):(o=t.charCodeAt(n++),r<240?e+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&o):(a=t.charCodeAt(n++),s=((7&r)<<18|(63&i)<<12|(63&o)<<6|63&a)-65536,e+=String.fromCharCode(55296+(s>>>10&1023)),e+=String.fromCharCode(56320+(1023&s)))));return e}function Ze(t){var e,n,r,i=k(2*t.length),o=1,a=0,s=0;for(n=0;n<t.length;n+=o)o=1,(r=t.charCodeAt(n))<128?e=r:r<224?(e=64*(31&r)+(63&t.charCodeAt(n+1)),o=2):r<240?(e=4096*(15&r)+64*(63&t.charCodeAt(n+1))+(63&t.charCodeAt(n+2)),o=3):(o=4,e=262144*(7&r)+4096*(63&t.charCodeAt(n+1))+64*(63&t.charCodeAt(n+2))+(63&t.charCodeAt(n+3)),e-=65536,s=55296+(e>>>10&1023),e=56320+(1023&e)),0!==s&&(i[a++]=255&s,i[a++]=s>>>8,s=0),i[a++]=e%256,i[a++]=e>>>8;return i.slice(0,a).toString("ucs2")}function Ue(t){return E(t,"binary").toString("utf8")}var He="foo bar bazâð£",$e=S&&(Ue(He)==ze(He)&&Ue||Ze(He)==ze(He)&&Ze)||ze,Ge=S?function(t){return E(t,"utf8").toString("binary")}:function(t){var e=[],n=0,r=0,i=0;while(n<t.length)switch(r=t.charCodeAt(n++),!0){case r<128:e.push(String.fromCharCode(r));break;case r<2048:e.push(String.fromCharCode(192+(r>>6))),e.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,i=t.charCodeAt(n++)-56320+(r<<10),e.push(String.fromCharCode(240+(i>>18&7))),e.push(String.fromCharCode(144+(i>>12&63))),e.push(String.fromCharCode(128+(i>>6&63))),e.push(String.fromCharCode(128+(63&i)));break;default:e.push(String.fromCharCode(224+(r>>12))),e.push(String.fromCharCode(128+(r>>6&63))),e.push(String.fromCharCode(128+(63&r)))}return e.join("")},We=function(){var t=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]}));return function(e){for(var n=e.replace(/^[\t\n\r ]+/,"").replace(/(^|[^\t\n\r ])[\t\n\r ]+$/,"$1").replace(/>\s+/g,">").replace(/\b\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^<>]*>/g,""),r=0;r<t.length;++r)n=n.replace(t[r][0],t[r][1]);return n}}();var Ve=/(^\s|\s$|\n)/;function Ye(t,e){return"<"+t+(e.match(Ve)?' xml:space="preserve"':"")+">"+e+"</"+t+">"}function Xe(t){return Jt(t).map((function(e){return" "+e+'="'+t[e]+'"'})).join("")}function qe(t,e,n){return"<"+t+(null!=n?Xe(n):"")+(null!=e?(e.match(Ve)?' xml:space="preserve"':"")+">"+e+"</"+t:"/")+">"}function Ke(t,e){try{return t.toISOString().replace(/\.\d*/,"")}catch(n){if(e)throw n}return""}function Je(t,e){switch(typeof t){case"string":var n=qe("vt:lpwstr",Pe(t));return e&&(n=n.replace(/&quot;/g,"_x0022_")),n;case"number":return qe((0|t)==t?"vt:i4":"vt:r8",Pe(String(t)));case"boolean":return qe("vt:bool",t?"true":"false")}if(t instanceof Date)return qe("vt:filetime",Ke(t));throw new Error("Unable to serialize "+t)}var Qe={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},tn=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],en={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function nn(t,e){for(var n=1-2*(t[e+7]>>>7),r=((127&t[e+7])<<4)+(t[e+6]>>>4&15),i=15&t[e+6],o=5;o>=0;--o)i=256*i+t[e+o];return 2047==r?0==i?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,i+=Math.pow(2,52)),n*Math.pow(2,r-52)*i)}function rn(t,e,n){var r=(e<0||1/e==-1/0?1:0)<<7,i=0,o=0,a=r?-e:e;isFinite(a)?0==a?i=o=0:(i=Math.floor(Math.log(a)/Math.LN2),o=a*Math.pow(2,52-i),i<=-1023&&(!isFinite(o)||o<Math.pow(2,52))?i=-1022:(o-=Math.pow(2,52),i+=1023)):(i=2047,o=isNaN(e)?26985:0);for(var s=0;s<=5;++s,o/=256)t[n+s]=255&o;t[n+6]=(15&i)<<4|15&o,t[n+7]=i>>4|r}var on=function(t){for(var e=[],n=10240,r=0;r<t[0].length;++r)if(t[0][r])for(var i=0,o=t[0][r].length;i<o;i+=n)e.push.apply(e,t[0][r].slice(i,i+n));return e},an=S?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map((function(t){return Buffer.isBuffer(t)?t:E(t)}))):on(t)}:on,sn=function(t,e,n){for(var r=[],i=e;i<n;i+=2)r.push(String.fromCharCode(Mn(t,i)));return r.join("").replace(L,"")},un=S?function(t,e,n){return Buffer.isBuffer(t)&&T?t.toString("utf16le",e,n).replace(L,""):sn(t,e,n)}:sn,ln=function(t,e,n){for(var r=[],i=e;i<e+n;++i)r.push(("0"+t[i].toString(16)).slice(-2));return r.join("")},cn=S?function(t,e,n){return Buffer.isBuffer(t)?t.toString("hex",e,e+n):ln(t,e,n)}:ln,fn=function(t,e,n){for(var r=[],i=e;i<n;i++)r.push(String.fromCharCode(Cn(t,i)));return r.join("")},hn=S?function(t,e,n){return Buffer.isBuffer(t)?t.toString("utf8",e,n):fn(t,e,n)}:fn,dn=function(t,e){var n=In(t,e);return n>0?hn(t,e+4,e+4+n-1):""},pn=dn,gn=function(t,e){var n=In(t,e);return n>0?hn(t,e+4,e+4+n-1):""},vn=gn,mn=function(t,e){var n=2*In(t,e);return n>0?hn(t,e+4,e+4+n-1):""},yn=mn,bn=function(t,e){var n=In(t,e);return n>0?un(t,e+4,e+4+n):""},xn=bn,_n=function(t,e){var n=In(t,e);return n>0?hn(t,e+4,e+4+n):""},wn=_n,Sn=function(t,e){return nn(t,e)},En=Sn,Tn=function(t){return Array.isArray(t)||"undefined"!==typeof Uint8Array&&t instanceof Uint8Array};function kn(){un=function(t,e,n){return r.utils.decode(1200,t.slice(e,n)).replace(L,"")},hn=function(t,e,n){return r.utils.decode(65001,t.slice(e,n))},pn=function(t,e){var n=In(t,e);return n>0?r.utils.decode(a,t.slice(e+4,e+4+n-1)):""},vn=function(t,e){var n=In(t,e);return n>0?r.utils.decode(o,t.slice(e+4,e+4+n-1)):""},yn=function(t,e){var n=2*In(t,e);return n>0?r.utils.decode(1200,t.slice(e+4,e+4+n-1)):""},xn=function(t,e){var n=In(t,e);return n>0?r.utils.decode(1200,t.slice(e+4,e+4+n)):""},wn=function(t,e){var n=In(t,e);return n>0?r.utils.decode(65001,t.slice(e+4,e+4+n)):""}}S&&(pn=function(t,e){if(!Buffer.isBuffer(t))return dn(t,e);var n=t.readUInt32LE(e);return n>0?t.toString("utf8",e+4,e+4+n-1):""},vn=function(t,e){if(!Buffer.isBuffer(t))return gn(t,e);var n=t.readUInt32LE(e);return n>0?t.toString("utf8",e+4,e+4+n-1):""},yn=function(t,e){if(!Buffer.isBuffer(t)||!T)return mn(t,e);var n=2*t.readUInt32LE(e);return t.toString("utf16le",e+4,e+4+n-1)},xn=function(t,e){if(!Buffer.isBuffer(t)||!T)return bn(t,e);var n=t.readUInt32LE(e);return t.toString("utf16le",e+4,e+4+n)},wn=function(t,e){if(!Buffer.isBuffer(t))return _n(t,e);var n=t.readUInt32LE(e);return t.toString("utf8",e+4,e+4+n)},En=function(t,e){return Buffer.isBuffer(t)?t.readDoubleLE(e):Sn(t,e)},Tn=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||"undefined"!==typeof Uint8Array&&t instanceof Uint8Array}),"undefined"!==typeof r&&kn();var Cn=function(t,e){return t[e]},Mn=function(t,e){return 256*t[e+1]+t[e]},An=function(t,e){var n=256*t[e+1]+t[e];return n<32768?n:-1*(65535-n+1)},In=function(t,e){return t[e+3]*(1<<24)+(t[e+2]<<16)+(t[e+1]<<8)+t[e]},On=function(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]},Dn=function(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]};function Pn(t,e){var n,i,a,s,u,l,c="",f=[];switch(e){case"dbcs":if(l=this.l,S&&Buffer.isBuffer(this)&&T)c=this.slice(this.l,this.l+2*t).toString("utf16le");else for(u=0;u<t;++u)c+=String.fromCharCode(Mn(this,l)),l+=2;t*=2;break;case"utf8":c=hn(this,this.l,this.l+t);break;case"utf16le":t*=2,c=un(this,this.l,this.l+t);break;case"wstr":if("undefined"===typeof r)return Pn.call(this,t,"dbcs");c=r.utils.decode(o,this.slice(this.l,this.l+2*t)),t*=2;break;case"lpstr-ansi":c=pn(this,this.l),t=4+In(this,this.l);break;case"lpstr-cp":c=vn(this,this.l),t=4+In(this,this.l);break;case"lpwstr":c=yn(this,this.l),t=4+2*In(this,this.l);break;case"lpp4":t=4+In(this,this.l),c=xn(this,this.l),2&t&&(t+=2);break;case"8lpp4":t=4+In(this,this.l),c=wn(this,this.l),3&t&&(t+=4-(3&t));break;case"cstr":t=0,c="";while(0!==(a=Cn(this,this.l+t++)))f.push(p(a));c=f.join("");break;case"_wstr":t=0,c="";while(0!==(a=Mn(this,this.l+t)))f.push(p(a)),t+=2;t+=2,c=f.join("");break;case"dbcs-cont":for(c="",l=this.l,u=0;u<t;++u){if(this.lens&&-1!==this.lens.indexOf(l))return a=Cn(this,l),this.l=l+1,s=Pn.call(this,t-u,a?"dbcs-cont":"sbcs-cont"),f.join("")+s;f.push(p(Mn(this,l))),l+=2}c=f.join(""),t*=2;break;case"cpstr":if("undefined"!==typeof r){c=r.utils.decode(o,this.slice(this.l,this.l+t));break}case"sbcs-cont":for(c="",l=this.l,u=0;u!=t;++u){if(this.lens&&-1!==this.lens.indexOf(l))return a=Cn(this,l),this.l=l+1,s=Pn.call(this,t-u,a?"dbcs-cont":"sbcs-cont"),f.join("")+s;f.push(p(Cn(this,l))),l+=1}c=f.join("");break;default:switch(t){case 1:return n=Cn(this,this.l),this.l++,n;case 2:return n=("i"===e?An:Mn)(this,this.l),this.l+=2,n;case 4:case-4:return"i"===e||0===(128&this[this.l+3])?(n=(t>0?On:Dn)(this,this.l),this.l+=4,n):(i=In(this,this.l),this.l+=4,i);case 8:case-8:if("f"===e)return i=8==t?En(this,this.l):En([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;t=8;case 16:c=cn(this,this.l,t);break}}return this.l+=t,c}var Ln=function(t,e,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24&255},Nn=function(t,e,n){t[n]=255&e,t[n+1]=e>>8&255,t[n+2]=e>>16&255,t[n+3]=e>>24&255},Rn=function(t,e,n){t[n]=255&e,t[n+1]=e>>>8&255};function jn(t,e,n){var i=0,s=0;if("dbcs"===n){for(s=0;s!=e.length;++s)Rn(this,e.charCodeAt(s),this.l+2*s);i=2*e.length}else if("sbcs"===n||"cpstr"==n)if("undefined"!==typeof r&&874==a){for(s=0;s!=e.length;++s){var u=r.utils.encode(a,e.charAt(s));this[this.l+s]=u[0]}i=e.length}else if("undefined"!==typeof r&&"cpstr"==n){if(u=r.utils.encode(o,e),u.length==e.length)for(s=0;s<e.length;++s)0==u[s]&&0!=e.charCodeAt(s)&&(u[s]=95);if(u.length==2*e.length)for(s=0;s<e.length;++s)0==u[2*s]&&0==u[2*s+1]&&0!=e.charCodeAt(s)&&(u[2*s]=95);for(s=0;s<u.length;++s)this[this.l+s]=u[s];i=u.length}else{for(e=e.replace(/[^\x00-\x7F]/g,"_"),s=0;s!=e.length;++s)this[this.l+s]=255&e.charCodeAt(s);i=e.length}else{if("hex"===n){for(;s<t;++s)this[this.l++]=parseInt(e.slice(2*s,2*s+2),16)||0;return this}if("utf16le"===n){var l=Math.min(this.l+t,this.length);for(s=0;s<Math.min(e.length,t);++s){var c=e.charCodeAt(s);this[this.l++]=255&c,this[this.l++]=c>>8}while(this.l<l)this[this.l++]=0;return this}switch(t){case 1:i=1,this[this.l]=255&e;break;case 2:i=2,this[this.l]=255&e,e>>>=8,this[this.l+1]=255&e;break;case 3:i=3,this[this.l]=255&e,e>>>=8,this[this.l+1]=255&e,e>>>=8,this[this.l+2]=255&e;break;case 4:i=4,Ln(this,e,this.l);break;case 8:if(i=8,"f"===n){rn(this,e,this.l);break}case 16:break;case-4:i=4,Nn(this,e,this.l);break}}return this.l+=i,this}function Fn(t,e){var n=cn(this,this.l,t.length>>1);if(n!==t)throw new Error(e+"Expected "+t+" saw "+n);this.l+=t.length>>1}function Bn(t,e){t.l=e,t.read_shift=Pn,t.chk=Fn,t.write_shift=jn}function zn(t,e){t.l+=e}function Zn(t){var e=k(t);return Bn(e,0),e}function Un(){var t=[],e=S?256:2048,n=function(t){var e=Zn(t);return Bn(e,0),e},r=n(e),i=function(){r&&(r.l&&(r.length>r.l&&(r=r.slice(0,r.l),r.l=r.length),r.length>0&&t.push(r)),r=null)},o=function(t){return r&&t<r.length-r.l?r:(i(),r=n(Math.max(t+1,e)))},a=function(){return i(),D(t)},s=function(t){i(),r=t,null==r.l&&(r.l=r.length),o(e)};return{next:o,push:s,end:a,_bufs:t}}function Hn(t,e,n,r){var i,o=+e;if(!isNaN(o)){r||(r=Lf[o].p||(n||[]).length||0),i=1+(o>=128?1:0)+1,r>=128&&++i,r>=16384&&++i,r>=2097152&&++i;var a=t.next(i);o<=127?a.write_shift(1,o):(a.write_shift(1,128+(127&o)),a.write_shift(1,o>>7));for(var s=0;4!=s;++s){if(!(r>=128)){a.write_shift(1,r);break}a.write_shift(1,128+(127&r)),r>>=7}r>0&&Tn(n)&&t.push(n)}}function $n(t,e,n){var r=de(t);if(e.s?(r.cRel&&(r.c+=e.s.c),r.rRel&&(r.r+=e.s.r)):(r.cRel&&(r.c+=e.c),r.rRel&&(r.r+=e.r)),!n||n.biff<12){while(r.c>=256)r.c-=256;while(r.r>=65536)r.r-=65536}return r}function Gn(t,e,n){var r=de(t);return r.s=$n(r.s,e.s,n),r.e=$n(r.e,e.s,n),r}function Wn(t,e){if(t.cRel&&t.c<0){t=de(t);while(t.c<0)t.c+=e>8?16384:256}if(t.rRel&&t.r<0){t=de(t);while(t.r<0)t.r+=e>8?1048576:e>5?65536:16384}var n=ir(t);return t.cRel||null==t.cRel||(n=tr(n)),t.rRel||null==t.rRel||(n=qn(n)),n}function Vn(t,e){return 0!=t.s.r||t.s.rRel||t.e.r!=(e.biff>=12?1048575:e.biff>=8?65536:16384)||t.e.rRel?0!=t.s.c||t.s.cRel||t.e.c!=(e.biff>=12?16383:255)||t.e.cRel?Wn(t.s,e.biff)+":"+Wn(t.e,e.biff):(t.s.rRel?"":"$")+Xn(t.s.r)+":"+(t.e.rRel?"":"$")+Xn(t.e.r):(t.s.cRel?"":"$")+Qn(t.s.c)+":"+(t.e.cRel?"":"$")+Qn(t.e.c)}function Yn(t){return parseInt(Kn(t),10)-1}function Xn(t){return""+(t+1)}function qn(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function Kn(t){return t.replace(/\$(\d+)$/,"$1")}function Jn(t){for(var e=er(t),n=0,r=0;r!==e.length;++r)n=26*n+e.charCodeAt(r)-64;return n-1}function Qn(t){if(t<0)throw new Error("invalid column "+t);var e="";for(++t;t;t=Math.floor((t-1)/26))e=String.fromCharCode((t-1)%26+65)+e;return e}function tr(t){return t.replace(/^([A-Z])/,"$$$1")}function er(t){return t.replace(/^\$([A-Z])/,"$1")}function nr(t){return t.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function rr(t){for(var e=0,n=0,r=0;r<t.length;++r){var i=t.charCodeAt(r);i>=48&&i<=57?e=10*e+(i-48):i>=65&&i<=90&&(n=26*n+(i-64))}return{c:n-1,r:e-1}}function ir(t){for(var e=t.c+1,n="";e;e=(e-1)/26|0)n=String.fromCharCode((e-1)%26+65)+n;return n+(t.r+1)}function or(t){var e=t.indexOf(":");return-1==e?{s:rr(t),e:rr(t)}:{s:rr(t.slice(0,e)),e:rr(t.slice(e+1))}}function ar(t,e){return"undefined"===typeof e||"number"===typeof e?ar(t.s,t.e):("string"!==typeof t&&(t=ir(t)),"string"!==typeof e&&(e=ir(e)),t==e?t:t+":"+e)}function sr(t){var e=or(t);return"$"+Qn(e.s.c)+"$"+Xn(e.s.r)+":$"+Qn(e.e.c)+"$"+Xn(e.e.r)}function ur(t,e){if(!t&&!(e&&e.biff<=5&&e.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t.replace(/'/g,"''")+"'":t}function lr(t){var e={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,i=0,o=t.length;for(n=0;r<o;++r){if((i=t.charCodeAt(r)-64)<1||i>26)break;n=26*n+i}for(e.s.c=--n,n=0;r<o;++r){if((i=t.charCodeAt(r)-48)<0||i>9)break;n=10*n+i}if(e.s.r=--n,r===o||10!=i)return e.e.c=e.s.c,e.e.r=e.s.r,e;for(++r,n=0;r!=o;++r){if((i=t.charCodeAt(r)-64)<1||i>26)break;n=26*n+i}for(e.e.c=--n,n=0;r!=o;++r){if((i=t.charCodeAt(r)-48)<0||i>9)break;n=10*n+i}return e.e.r=--n,e}function cr(t,e){var n="d"==t.t&&e instanceof Date;if(null!=t.z)try{return t.w=Ft(t.z,n?ae(e):e)}catch(r){}try{return t.w=Ft((t.XF||{}).numFmtId||(n?14:0),n?ae(e):e)}catch(r){return""+e}}function fr(t,e,n){return null==t||null==t.t||"z"==t.t?"":void 0!==t.w?t.w:("d"==t.t&&!t.z&&n&&n.dateNF&&(t.z=n.dateNF),"e"==t.t?ci[t.v]||t.v:cr(t,void 0==e?t.v:e))}function hr(t,e){var n=e&&e.sheet?e.sheet:"Sheet1",r={};return r[n]=t,{SheetNames:[n],Sheets:r}}function dr(t){var e={},n=t||{};return n.dense&&(e["!data"]=[]),e}function pr(t,e,n){var r=n||{},i=t?null!=t["!data"]:r.dense;null!=v&&null==i&&(i=v);var o=t||{};i&&!o["!data"]&&(o["!data"]=[]);var a=0,s=0;if(o&&null!=r.origin)if("number"==typeof r.origin)a=r.origin;else{var u="string"==typeof r.origin?rr(r.origin):r.origin;a=u.r,s=u.c}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var c=lr(o["!ref"]);l.s.c=c.s.c,l.s.r=c.s.r,l.e.c=Math.max(l.e.c,c.e.c),l.e.r=Math.max(l.e.r,c.e.r),-1==a&&(l.e.r=a=o["!ref"]?c.e.r+1:0)}else l.s.c=l.e.c=l.s.r=l.e.r=0;for(var f=[],h=!1,d=0;d!=e.length;++d)if(e[d]){if(!Array.isArray(e[d]))throw new Error("aoa_to_sheet expects an array of arrays");var p=a+d,g=""+(p+1);i&&(o["!data"][p]||(o["!data"][p]=[]),f=o["!data"][p]);for(var m=0;m!=e[d].length;++m)if("undefined"!==typeof e[d][m]){var y={v:e[d][m]},b=s+m;if(l.s.r>p&&(l.s.r=p),l.s.c>b&&(l.s.c=b),l.e.r<p&&(l.e.r=p),l.e.c<b&&(l.e.c=b),h=!0,!e[d][m]||"object"!==typeof e[d][m]||Array.isArray(e[d][m])||e[d][m]instanceof Date)if(Array.isArray(y.v)&&(y.f=e[d][m][1],y.v=y.v[0]),null===y.v)if(y.f)y.t="n";else if(r.nullError)y.t="e",y.v=0;else{if(!r.sheetStubs)continue;y.t="z"}else"number"===typeof y.v?y.t="n":"boolean"===typeof y.v?y.t="b":y.v instanceof Date?(y.z=r.dateNF||X[14],r.UTC||(y.v=Te(y.v)),r.cellDates?(y.t="d",y.w=Ft(y.z,ae(y.v,r.date1904))):(y.t="n",y.v=ae(y.v,r.date1904),y.w=Ft(y.z,y.v))):y.t="s";else y=e[d][m];if(i)f[b]&&f[b].z&&(y.z=f[b].z),f[b]=y;else{var x=Qn(b)+g;o[x]&&o[x].z&&(y.z=o[x].z),o[x]=y}}}return h&&l.s.c<104e5&&(o["!ref"]=ar(l)),o}function gr(t,e){return pr(null,t,e)}function vr(t){return t.read_shift(4,"i")}function mr(t,e){return e||(e=Zn(4)),e.write_shift(4,t),e}function yr(t){var e=t.read_shift(4);return 0===e?"":t.read_shift(e,"dbcs")}function br(t,e){var n=!1;return null==e&&(n=!0,e=Zn(4+2*t.length)),e.write_shift(4,t.length),t.length>0&&e.write_shift(0,t,"dbcs"),n?e.slice(0,e.l):e}function xr(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function _r(t,e){return e||(e=Zn(4)),e.write_shift(2,t.ich||0),e.write_shift(2,t.ifnt||0),e}function wr(t,e){var n=t.l,r=t.read_shift(1),i=yr(t),o=[],a={t:i,h:i};if(0!==(1&r)){for(var s=t.read_shift(4),u=0;u!=s;++u)o.push(xr(t));a.r=o}else a.r=[{ich:0,ifnt:0}];return t.l=n+e,a}function Sr(t,e){var n=!1;return null==e&&(n=!0,e=Zn(15+4*t.t.length)),e.write_shift(1,0),br(t.t,e),n?e.slice(0,e.l):e}var Er=wr;function Tr(t,e){var n=!1;return null==e&&(n=!0,e=Zn(23+4*t.t.length)),e.write_shift(1,1),br(t.t,e),e.write_shift(4,1),_r({ich:0,ifnt:0},e),n?e.slice(0,e.l):e}function kr(t){var e=t.read_shift(4),n=t.read_shift(2);return n+=t.read_shift(1)<<16,t.l++,{c:e,iStyleRef:n}}function Cr(t,e){return null==e&&(e=Zn(8)),e.write_shift(-4,t.c),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}function Mr(t){var e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:e}}function Ar(t,e){return null==e&&(e=Zn(4)),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}var Ir=yr,Or=br;function Dr(t){var e=t.read_shift(4);return 0===e||4294967295===e?"":t.read_shift(e,"dbcs")}function Pr(t,e){var n=!1;return null==e&&(n=!0,e=Zn(127)),e.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&e.write_shift(0,t,"dbcs"),n?e.slice(0,e.l):e}var Lr=yr,Nr=Dr,Rr=Pr;function jr(t){var e=t.slice(t.l,t.l+4),n=1&e[0],r=2&e[0];t.l+=4;var i=0===r?En([0,0,0,0,252&e[0],e[1],e[2],e[3]],0):On(e,0)>>2;return n?i/100:i}function Fr(t,e){null==e&&(e=Zn(4));var n=0,r=0,i=100*t;if(t==(0|t)&&t>=-(1<<29)&&t<1<<29?r=1:i==(0|i)&&i>=-(1<<29)&&i<1<<29&&(r=1,n=1),!r)throw new Error("unsupported RkNumber "+t);e.write_shift(-4,((n?i:t)<<2)+(n+2))}function Br(t){var e={s:{},e:{}};return e.s.r=t.read_shift(4),e.e.r=t.read_shift(4),e.s.c=t.read_shift(4),e.e.c=t.read_shift(4),e}function zr(t,e){return e||(e=Zn(16)),e.write_shift(4,t.s.r),e.write_shift(4,t.e.r),e.write_shift(4,t.s.c),e.write_shift(4,t.e.c),e}var Zr=Br,Ur=zr;function Hr(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function $r(t,e){return(e||Zn(8)).write_shift(8,t,"f")}function Gr(t){var e={},n=t.read_shift(1),r=n>>>1,i=t.read_shift(1),o=t.read_shift(2,"i"),a=t.read_shift(1),s=t.read_shift(1),u=t.read_shift(1);switch(t.l++,r){case 0:e.auto=1;break;case 1:e.index=i;var l=li[i];l&&(e.rgb=ea(l));break;case 2:e.rgb=ea([a,s,u]);break;case 3:e.theme=i;break}return 0!=o&&(e.tint=o>0?o/32767:o/32768),e}function Wr(t,e){if(e||(e=Zn(8)),!t||t.auto)return e.write_shift(4,0),e.write_shift(4,0),e;null!=t.index?(e.write_shift(1,2),e.write_shift(1,t.index)):null!=t.theme?(e.write_shift(1,6),e.write_shift(1,t.theme)):(e.write_shift(1,5),e.write_shift(1,0));var n=t.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),e.write_shift(2,n),t.rgb&&null==t.theme){var r=t.rgb||"FFFFFF";"number"==typeof r&&(r=("000000"+r.toString(16)).slice(-6)),e.write_shift(1,parseInt(r.slice(0,2),16)),e.write_shift(1,parseInt(r.slice(2,4),16)),e.write_shift(1,parseInt(r.slice(4,6),16)),e.write_shift(1,255)}else e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0);return e}function Vr(t){var e=t.read_shift(1);t.l++;var n={fBold:1&e,fItalic:2&e,fUnderline:4&e,fStrikeout:8&e,fOutline:16&e,fShadow:32&e,fCondense:64&e,fExtend:128&e};return n}function Yr(t,e){e||(e=Zn(2));var n=(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0);return e.write_shift(1,n),e.write_shift(1,0),e}var Xr=2,qr=3,Kr=11,Jr=19,Qr=64,ti=65,ei=71,ni=4108,ri=4126,ii=80,oi={1:{n:"CodePage",t:Xr},2:{n:"Category",t:ii},3:{n:"PresentationFormat",t:ii},4:{n:"ByteCount",t:qr},5:{n:"LineCount",t:qr},6:{n:"ParagraphCount",t:qr},7:{n:"SlideCount",t:qr},8:{n:"NoteCount",t:qr},9:{n:"HiddenCount",t:qr},10:{n:"MultimediaClipCount",t:qr},11:{n:"ScaleCrop",t:Kr},12:{n:"HeadingPairs",t:ni},13:{n:"TitlesOfParts",t:ri},14:{n:"Manager",t:ii},15:{n:"Company",t:ii},16:{n:"LinksUpToDate",t:Kr},17:{n:"CharacterCount",t:qr},19:{n:"SharedDoc",t:Kr},22:{n:"HyperlinksChanged",t:Kr},23:{n:"AppVersion",t:qr,p:"version"},24:{n:"DigSig",t:ti},26:{n:"ContentType",t:ii},27:{n:"ContentStatus",t:ii},28:{n:"Language",t:ii},29:{n:"Version",t:ii},255:{},2147483648:{n:"Locale",t:Jr},2147483651:{n:"Behavior",t:Jr},1919054434:{}},ai={1:{n:"CodePage",t:Xr},2:{n:"Title",t:ii},3:{n:"Subject",t:ii},4:{n:"Author",t:ii},5:{n:"Keywords",t:ii},6:{n:"Comments",t:ii},7:{n:"Template",t:ii},8:{n:"LastAuthor",t:ii},9:{n:"RevNumber",t:ii},10:{n:"EditTime",t:Qr},11:{n:"LastPrinted",t:Qr},12:{n:"CreatedDate",t:Qr},13:{n:"ModifiedDate",t:Qr},14:{n:"PageCount",t:qr},15:{n:"WordCount",t:qr},16:{n:"CharCount",t:qr},17:{n:"Thumbnail",t:ei},18:{n:"Application",t:ii},19:{n:"DocSecurity",t:qr},255:{},2147483648:{n:"Locale",t:Jr},2147483651:{n:"Behavior",t:Jr},1919054434:{}};function si(t){return t.map((function(t){return[t>>16&255,t>>8&255,255&t]}))}var ui=si([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,0,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),li=de(ui),ci={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},fi={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},hi=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"],di={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},pi={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function gi(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function vi(t,e,n){var r,i=ne(di),o=[];n||(o[o.length]=Me,o[o.length]=qe("Types",null,{xmlns:Qe.CT,"xmlns:xsd":Qe.xsd,"xmlns:xsi":Qe.xsi}),o=o.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(t){return qe("Default",null,{Extension:t[0],ContentType:t[1]})}))));var a=function(n){t[n]&&t[n].length>0&&(r=t[n][0],o[o.length]=qe("Override",null,{PartName:("/"==r[0]?"":"/")+r,ContentType:pi[n][e.bookType]||pi[n]["xlsx"]}))},s=function(n){(t[n]||[]).forEach((function(t){o[o.length]=qe("Override",null,{PartName:("/"==t[0]?"":"/")+t,ContentType:pi[n][e.bookType]||pi[n]["xlsx"]})}))},u=function(e){(t[e]||[]).forEach((function(t){o[o.length]=qe("Override",null,{PartName:("/"==t[0]?"":"/")+t,ContentType:i[e][0]})}))};return a("workbooks"),s("sheets"),s("charts"),u("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(u),u("vba"),u("comments"),u("threadedcomments"),u("drawings"),s("metadata"),u("people"),!n&&o.length>2&&(o[o.length]="</Types>",o[1]=o[1].replace("/>",">")),o.join("")}var mi={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",CONN:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function yi(t){var e=t.lastIndexOf("/");return t.slice(0,e+1)+"_rels/"+t.slice(e+1)+".rels"}function bi(t){var e=[Me,qe("Relationships",null,{xmlns:Qe.RELS})];return Jt(t["!id"]).forEach((function(n){e[e.length]=qe("Relationship",null,t["!id"][n])})),e.length>2&&(e[e.length]="</Relationships>",e[1]=e[1].replace("/>",">")),e.join("")}function xi(t,e,n,r,i,o){if(i||(i={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),e<0)for(e=t["!idx"];t["!id"]["rId"+e];++e);if(t["!idx"]=e+1,i.Id="rId"+e,i.Type=r,i.Target=n,o?i.TargetMode=o:[mi.HLINK,mi.XPATH,mi.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),t["!id"][i.Id])throw new Error("Cannot rewrite rId "+e);return t["!id"][i.Id]=i,t[("/"+i.Target).replace("//","/")]=i,e}function _i(t){var e=[Me];e.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),e.push('  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var n=0;n<t.length;++n)e.push('  <manifest:file-entry manifest:full-path="'+t[n][0]+'" manifest:media-type="'+t[n][1]+'"/>\n');return e.push("</manifest:manifest>"),e.join("")}function wi(t,e,n){return['  <rdf:Description rdf:about="'+t+'">\n','    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+e+'"/>\n',"  </rdf:Description>\n"].join("")}function Si(t,e){return['  <rdf:Description rdf:about="'+t+'">\n','    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+e+'"/>\n',"  </rdf:Description>\n"].join("")}function Ei(t){var e=[Me];e.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var n=0;n!=t.length;++n)e.push(wi(t[n][0],t[n][1])),e.push(Si("",t[n][0]));return e.push(wi("","Document","pkg")),e.push("</rdf:RDF>"),e.join("")}function Ti(t,e){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+i.version+"</meta:generator></office:meta></office:document-meta>"}var ki=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Ci(t,e,n,r,i){null==i[t]&&null!=e&&""!==e&&(i[t]=e,e=Pe(e),r[r.length]=n?qe(t,e,n):Ye(t,e))}function Mi(t,e){var n=e||{},r=[Me,qe("cp:coreProperties",null,{"xmlns:cp":Qe.CORE_PROPS,"xmlns:dc":Qe.dc,"xmlns:dcterms":Qe.dcterms,"xmlns:dcmitype":Qe.dcmitype,"xmlns:xsi":Qe.xsi})],i={};if(!t&&!n.Props)return r.join("");t&&(null!=t.CreatedDate&&Ci("dcterms:created","string"===typeof t.CreatedDate?t.CreatedDate:Ke(t.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i),null!=t.ModifiedDate&&Ci("dcterms:modified","string"===typeof t.ModifiedDate?t.ModifiedDate:Ke(t.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i));for(var o=0;o!=ki.length;++o){var a=ki[o],s=n.Props&&null!=n.Props[a[1]]?n.Props[a[1]]:t?t[a[1]]:null;!0===s?s="1":!1===s?s="0":"number"==typeof s&&(s=String(s)),null!=s&&Ci(a[0],s,null,r,i)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var Ai=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Ii=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Oi(t){var e=[],n=qe;return t||(t={}),t.Application="SheetJS",e[e.length]=Me,e[e.length]=qe("Properties",null,{xmlns:Qe.EXT_PROPS,"xmlns:vt":Qe.vt}),Ai.forEach((function(r){if(void 0!==t[r[1]]){var i;switch(r[2]){case"string":i=Pe(String(t[r[1]]));break;case"bool":i=t[r[1]]?"true":"false";break}void 0!==i&&(e[e.length]=n(r[0],i))}})),e[e.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),e[e.length]=n("TitlesOfParts",n("vt:vector",t.SheetNames.map((function(t){return"<vt:lpstr>"+Pe(t)+"</vt:lpstr>"})).join(""),{size:t.Worksheets,baseType:"lpstr"})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}function Di(t){var e=[Me,qe("Properties",null,{xmlns:Qe.CUST_PROPS,"xmlns:vt":Qe.vt})];if(!t)return e.join("");var n=1;return Jt(t).forEach((function(r){++n,e[e.length]=qe("property",Je(t[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:Pe(r)})})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}var Pi={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Li(t,e){var n=[];return Jt(Pi).map((function(t){for(var e=0;e<ki.length;++e)if(ki[e][1]==t)return ki[e];for(e=0;e<Ai.length;++e)if(Ai[e][1]==t)return Ai[e];throw t})).forEach((function(r){if(null!=t[r[1]]){var i=e&&e.Props&&null!=e.Props[r[1]]?e.Props[r[1]]:t[r[1]];switch(r[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}"number"==typeof i?i=String(i):!0===i||!1===i?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),n.push(Ye(Pi[r[1]]||r[1],i))}})),qe("DocumentProperties",n.join(""),{xmlns:en.o})}function Ni(t,e){var n=["Worksheets","SheetNames"],r="CustomDocumentProperties",i=[];return t&&Jt(t).forEach((function(e){if(Object.prototype.hasOwnProperty.call(t,e)){for(var r=0;r<ki.length;++r)if(e==ki[r][1])return;for(r=0;r<Ai.length;++r)if(e==Ai[r][1])return;for(r=0;r<n.length;++r)if(e==n[r])return;var o=t[e],a="string";"number"==typeof o?(a="float",o=String(o)):!0===o||!1===o?(a="boolean",o=o?"1":"0"):o=String(o),i.push(qe(Le(e),o,{"dt:dt":a}))}})),e&&Jt(e).forEach((function(n){if(Object.prototype.hasOwnProperty.call(e,n)&&(!t||!Object.prototype.hasOwnProperty.call(t,n))){var r=e[n],o="string";"number"==typeof r?(o="float",r=String(r)):!0===r||!1===r?(o="boolean",r=r?"1":"0"):r instanceof Date?(o="dateTime.tz",r=r.toISOString()):r=String(r),i.push(qe(Le(n),r,{"dt:dt":o}))}})),"<"+r+' xmlns="'+en.o+'">'+i.join("")+"</"+r+">"}function Ri(t){var e="string"==typeof t?new Date(Date.parse(t)):t,n=e.getTime()/1e3+11644473600,r=n%Math.pow(2,32),i=(n-r)/Math.pow(2,32);r*=1e7,i*=1e7;var o=r/Math.pow(2,32)|0;o>0&&(r%=Math.pow(2,32),i+=o);var a=Zn(8);return a.write_shift(4,r),a.write_shift(4,i),a}function ji(t,e){var n=Zn(4),r=Zn(4);switch(n.write_shift(4,80==t?31:t),t){case 3:r.write_shift(-4,e);break;case 5:r=Zn(8),r.write_shift(8,e,"f");break;case 11:r.write_shift(4,e?1:0);break;case 64:r=Ri(e);break;case 31:case 80:r=Zn(4+2*(e.length+1)+(e.length%2?0:2)),r.write_shift(4,e.length+1),r.write_shift(0,e,"dbcs");while(r.l!=r.length)r.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+e)}return D([n,r])}var Fi=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Bi(t){switch(typeof t){case"boolean":return 11;case"number":return(0|t)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64;break}return-1}function zi(t,e,n){var r=Zn(8),i=[],o=[],a=8,s=0,u=Zn(8),l=Zn(8);if(u.write_shift(4,2),u.write_shift(4,1200),l.write_shift(4,1),o.push(u),i.push(l),a+=8+u.length,!e){l=Zn(8),l.write_shift(4,0),i.unshift(l);var c=[Zn(4)];for(c[0].write_shift(4,t.length),s=0;s<t.length;++s){var f=t[s][0];u=Zn(8+2*(f.length+1)+(f.length%2?0:2)),u.write_shift(4,s+2),u.write_shift(4,f.length+1),u.write_shift(0,f,"dbcs");while(u.l!=u.length)u.write_shift(1,0);c.push(u)}u=D(c),o.unshift(u),a+=8+u.length}for(s=0;s<t.length;++s)if((!e||e[t[s][0]])&&!(Fi.indexOf(t[s][0])>-1||Ii.indexOf(t[s][0])>-1)&&null!=t[s][1]){var h=t[s][1],d=0;if(e){d=+e[t[s][0]];var p=n[d];if("version"==p.p&&"string"==typeof h){var g=h.split(".");h=(+g[0]<<16)+(+g[1]||0)}u=ji(p.t,h)}else{var v=Bi(h);-1==v&&(v=31,h=String(h)),u=ji(v,h)}o.push(u),l=Zn(8),l.write_shift(4,e?d:2+s),i.push(l),a+=8+u.length}var m=8*(o.length+1);for(s=0;s<o.length;++s)i[s].write_shift(4,m),m+=o[s].length;return r.write_shift(4,a),r.write_shift(4,o.length),D([r].concat(i).concat(o))}function Zi(t,e,n,r,i,o){var a=Zn(i?68:48),s=[a];a.write_shift(2,65534),a.write_shift(2,0),a.write_shift(4,842412599),a.write_shift(16,Xt.utils.consts.HEADER_CLSID,"hex"),a.write_shift(4,i?2:1),a.write_shift(16,e,"hex"),a.write_shift(4,i?68:48);var u=zi(t,n,r);if(s.push(u),i){var l=zi(i,null,null);a.write_shift(16,o,"hex"),a.write_shift(4,68+u.length),s.push(l)}return D(s)}function Ui(t,e){e||(e=Zn(t));for(var n=0;n<t;++n)e.write_shift(1,0);return e}function Hi(t,e){return 1===t.read_shift(e)}function $i(t,e){return e||(e=Zn(2)),e.write_shift(2,+!!t),e}function Gi(t){return t.read_shift(2,"u")}function Wi(t,e){return e||(e=Zn(2)),e.write_shift(2,t),e}function Vi(t,e,n){return n||(n=Zn(2)),n.write_shift(1,"e"==e?+t:+!!t),n.write_shift(1,"e"==e?1:0),n}function Yi(t,e,n){var r=t.read_shift(n&&n.biff>=12?2:1),i="sbcs-cont",a=o;if(n&&n.biff>=8&&(o=1200),n&&8!=n.biff)12==n.biff&&(i="wstr");else{var s=t.read_shift(1);s&&(i="dbcs-cont")}n.biff>=2&&n.biff<=5&&(i="cpstr");var u=r?t.read_shift(r,i):"";return o=a,u}function Xi(t){var e=t.t||"",n=1,r=Zn(3+(n>1?2:0));r.write_shift(2,e.length),r.write_shift(1,1|(n>1?8:0)),n>1&&r.write_shift(2,n);var i=Zn(2*e.length);i.write_shift(2*e.length,e,"utf16le");var o=[r,i];return D(o)}function qi(t,e,n){var r;if(n){if(n.biff>=2&&n.biff<=5)return t.read_shift(e,"cpstr");if(n.biff>=12)return t.read_shift(e,"dbcs-cont")}var i=t.read_shift(1);return r=0===i?t.read_shift(e,"sbcs-cont"):t.read_shift(e,"dbcs-cont"),r}function Ki(t,e,n){var r=t.read_shift(n&&2==n.biff?1:2);return 0===r?(t.l++,""):qi(t,r,n)}function Ji(t,e,n){if(n.biff>5)return Ki(t,e,n);var r=t.read_shift(1);return 0===r?(t.l++,""):t.read_shift(r,n.biff<=4||!t.lens?"cpstr":"sbcs-cont")}function Qi(t,e,n){return n||(n=Zn(3+2*t.length)),n.write_shift(2,t.length),n.write_shift(1,1),n.write_shift(31,t,"utf16le"),n}function to(t,e){e||(e=Zn(6+2*t.length)),e.write_shift(4,1+t.length);for(var n=0;n<t.length;++n)e.write_shift(2,t.charCodeAt(n));return e.write_shift(2,0),e}function eo(t){var e=Zn(512),n=0,r=t.Target;"file://"==r.slice(0,7)&&(r=r.slice(7));var i=r.indexOf("#"),o=i>-1?31:23;switch(r.charAt(0)){case"#":o=28;break;case".":o&=-3;break}e.write_shift(4,2),e.write_shift(4,o);var a=[8,6815827,6619237,4849780,83];for(n=0;n<a.length;++n)e.write_shift(4,a[n]);if(28==o)r=r.slice(1),to(r,e);else if(2&o){for(a="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<a.length;++n)e.write_shift(1,parseInt(a[n],16));var s=i>-1?r.slice(0,i):r;for(e.write_shift(4,2*(s.length+1)),n=0;n<s.length;++n)e.write_shift(2,s.charCodeAt(n));e.write_shift(2,0),8&o&&to(i>-1?r.slice(i+1):"",e)}else{for(a="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n<a.length;++n)e.write_shift(1,parseInt(a[n],16));var u=0;while("../"==r.slice(3*u,3*u+3)||"..\\"==r.slice(3*u,3*u+3))++u;for(e.write_shift(2,u),e.write_shift(4,r.length-3*u+1),n=0;n<r.length-3*u;++n)e.write_shift(1,255&r.charCodeAt(n+3*u));for(e.write_shift(1,0),e.write_shift(2,65535),e.write_shift(2,57005),n=0;n<6;++n)e.write_shift(4,0)}return e.slice(0,e.l)}function no(t,e,n,r){return r||(r=Zn(6)),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n||0),r}function ro(t,e,n){var r=n.biff>8?4:2,i=t.read_shift(r),o=t.read_shift(r,"i"),a=t.read_shift(r,"i");return[i,o,a]}function io(t){var e=t.read_shift(2),n=t.read_shift(2),r=t.read_shift(2),i=t.read_shift(2);return{s:{c:r,r:e},e:{c:i,r:n}}}function oo(t,e){return e||(e=Zn(8)),e.write_shift(2,t.s.r),e.write_shift(2,t.e.r),e.write_shift(2,t.s.c),e.write_shift(2,t.e.c),e}function ao(t,e,n){var r=1536,i=16;switch(n.bookType){case"biff8":break;case"biff5":r=1280,i=8;break;case"biff4":r=4,i=6;break;case"biff3":r=3,i=6;break;case"biff2":r=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var o=Zn(i);return o.write_shift(2,r),o.write_shift(2,e),i>4&&o.write_shift(2,29282),i>6&&o.write_shift(2,1997),i>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function so(t,e){var n=!e||8==e.biff,r=Zn(n?112:54);r.write_shift(8==e.biff?2:1,7),n&&r.write_shift(1,0),r.write_shift(4,859007059),r.write_shift(4,5458548|(n?0:536870912));while(r.l<r.length)r.write_shift(1,n?0:32);return r}function uo(t,e){var n=!e||e.biff>=8?2:1,r=Zn(8+n*t.name.length);r.write_shift(4,t.pos),r.write_shift(1,t.hs||0),r.write_shift(1,t.dt),r.write_shift(1,t.name.length),e.biff>=8&&r.write_shift(1,1),r.write_shift(n*t.name.length,t.name,e.biff<8?"sbcs":"utf16le");var i=r.slice(0,r.l);return i.l=r.l,i}function lo(t,e){var n=Zn(8);n.write_shift(4,t.Count),n.write_shift(4,t.Unique);for(var r=[],i=0;i<t.length;++i)r[i]=Xi(t[i],e);var o=D([n].concat(r));return o.parts=[n.length].concat(r.map((function(t){return t.length}))),o}function co(){var t=Zn(18);return t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,29280),t.write_shift(2,17600),t.write_shift(2,56),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,1),t.write_shift(2,500),t}function fo(t){var e=Zn(18),n=1718;return t&&t.RTL&&(n|=64),e.write_shift(2,n),e.write_shift(4,0),e.write_shift(4,64),e.write_shift(4,0),e.write_shift(4,0),e}function ho(t,e){var n=t.name||"Arial",r=e&&5==e.biff,i=r?15+n.length:16+2*n.length,o=Zn(i);return o.write_shift(2,20*(t.sz||12)),o.write_shift(4,0),o.write_shift(2,400),o.write_shift(4,0),o.write_shift(2,0),o.write_shift(1,n.length),r||o.write_shift(1,1),o.write_shift((r?1:2)*n.length,n,r?"sbcs":"utf16le"),o}function po(t,e,n,r){var i=Zn(10);return no(t,e,r,i),i.write_shift(4,n),i}function go(t,e,n,r,i){var o=!i||8==i.biff,a=Zn(+o+8+(1+o)*n.length);return no(t,e,r,a),a.write_shift(2,n.length),o&&a.write_shift(1,1),a.write_shift((1+o)*n.length,n,o?"utf16le":"sbcs"),a}function vo(t,e,n,r){var i=n&&5==n.biff;r||(r=Zn(i?3+e.length:5+2*e.length)),r.write_shift(2,t),r.write_shift(i?1:2,e.length),i||r.write_shift(1,1),r.write_shift((i?1:2)*e.length,e,i?"sbcs":"utf16le");var o=r.length>r.l?r.slice(0,r.l):r;return null==o.l&&(o.l=o.length),o}function mo(t){var e=Zn(1+t.length);return e.write_shift(1,t.length),e.write_shift(t.length,t,"sbcs"),e}function yo(t){var e=Zn(3+t.length);return e.l+=2,e.write_shift(1,t.length),e.write_shift(t.length,t,"sbcs"),e}function bo(t,e){var n=8!=e.biff&&e.biff?2:4,r=Zn(2*n+6);return r.write_shift(n,t.s.r),r.write_shift(n,t.e.r+1),r.write_shift(2,t.s.c),r.write_shift(2,t.e.c+1),r.write_shift(2,0),r}function xo(t,e,n,r){var i=n&&5==n.biff;r||(r=Zn(i?16:20)),r.write_shift(2,0),t.style?(r.write_shift(2,t.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,t.numFmtId||0),r.write_shift(2,e<<4));var o=0;return t.numFmtId>0&&i&&(o|=1024),r.write_shift(4,o),r.write_shift(4,0),i||r.write_shift(4,0),r.write_shift(2,0),r}function _o(t){var e=Zn(4);return e.l+=2,e.write_shift(1,t.numFmtId),e.l++,e}function wo(t){var e=Zn(12);return e.l++,e.write_shift(1,t.numFmtId),e.l+=10,e}var So=wo;function Eo(t){var e=Zn(8);return e.write_shift(4,0),e.write_shift(2,t[0]?t[0]+1:0),e.write_shift(2,t[1]?t[1]+1:0),e}function To(t,e,n,r,i,o){var a=Zn(8);return no(t,e,r,a),Vi(n,o,a),a}function ko(t,e,n,r){var i=Zn(14);return no(t,e,r,i),$r(n,i),i}function Co(t,e,n){if(n.biff<8)return Mo(t,e,n);if(!(n.biff>8)&&e==t[t.l]+(3==t[t.l+1]?1:0)+1)return Mo(t,e,n);var r=[],i=t.l+e,o=t.read_shift(n.biff>8?4:2);while(0!==o--)r.push(ro(t,n.biff>8?12:6,n));if(t.l!=i)throw new Error("Bad ExternSheet: "+t.l+" != "+i);return r}function Mo(t,e,n){3==t[t.l+1]&&t[t.l]++;var r=Yi(t,e,n);return 3==r.charCodeAt(0)?r.slice(1):r}function Ao(t,e,n,r){var i=Zn(6+(r||t.length));return i.write_shift(2,e),i.write_shift(2,n),i.write_shift(2,r||t.length),i.write_shift(t.length,t,"sbcs"),i}function Io(t){var e=Zn(2+8*t.length);e.write_shift(2,t.length);for(var n=0;n<t.length;++n)oo(t[n],e);return e}function Oo(t){var e=Zn(24),n=rr(t[0]);e.write_shift(2,n.r),e.write_shift(2,n.r),e.write_shift(2,n.c),e.write_shift(2,n.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)e.write_shift(1,parseInt(r[i],16));return D([e,eo(t[1])])}function Do(t){var e=t[1].Tooltip,n=Zn(10+2*(e.length+1));n.write_shift(2,2048);var r=rr(t[0]);n.write_shift(2,r.r),n.write_shift(2,r.r),n.write_shift(2,r.c),n.write_shift(2,r.c);for(var i=0;i<e.length;++i)n.write_shift(2,e.charCodeAt(i));return n.write_shift(2,0),n}function Po(t){return t||(t=Zn(4)),t.write_shift(2,1),t.write_shift(2,1),t}function Lo(t,e,n){if(!n.cellStyles)return zn(t,e);var r=n&&n.biff>=12?4:2,i=t.read_shift(r),o=t.read_shift(r),a=t.read_shift(r),s=t.read_shift(r),u=t.read_shift(2);2==r&&(t.l+=2);var l={s:i,e:o,w:a,ixfe:s,flags:u};return(n.biff>=5||!n.biff)&&(l.level=u>>8&7),l}function No(t,e){var n=Zn(12);n.write_shift(2,e),n.write_shift(2,e),n.write_shift(2,256*t.width),n.write_shift(2,0);var r=0;return t.hidden&&(r|=1),n.write_shift(1,r),r=t.level||0,n.write_shift(1,r),n.write_shift(2,0),n}function Ro(t){for(var e=Zn(2*t),n=0;n<t;++n)e.write_shift(2,n+1);return e}function jo(t,e,n,r,i){return t||(t=Zn(7)),t.write_shift(2,e),t.write_shift(2,n),t.write_shift(1,r||0),t.write_shift(1,i||0),t.write_shift(1,0),t}function Fo(t,e,n,r,i){var o=Zn(15);return jo(o,t,e,r||0,i||0),o.write_shift(8,n,"f"),o}function Bo(t,e,n,r,i){var o=Zn(9);return jo(o,t,e,r||0,i||0),o.write_shift(2,n),o}var zo=function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},e=te({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(e,n){var i=[],o=k(1);switch(n.type){case"base64":o=M(w(e));break;case"binary":o=M(e);break;case"buffer":case"array":o=e;break}Bn(o,0);var a=o.read_shift(1),s=!!(136&a),u=!1,l=!1;switch(a){case 2:break;case 3:break;case 48:u=!0,s=!0;break;case 49:u=!0,s=!0;break;case 131:break;case 139:break;case 140:l=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+a.toString(16))}var c=0,f=521;2==a&&(c=o.read_shift(2)),o.l+=3,2!=a&&(c=o.read_shift(4)),c>1048576&&(c=1e6),2!=a&&(f=o.read_shift(2));var h=o.read_shift(2),d=n.codepage||1252;2!=a&&(o.l+=16,o.read_shift(1),0!==o[o.l]&&(d=t[o[o.l]]),o.l+=1,o.l+=2),l&&(o.l+=36);var p=[],g={},v=Math.min(o.length,2==a?521:f-10-(u?264:0)),m=l?32:11;while(o.l<v&&13!=o[o.l])switch(g={},g.name=("undefined"!==typeof r?r.utils.decode(d,o.slice(o.l,o.l+m)):I(o.slice(o.l,o.l+m))).replace(/[\u0000\r\n][\S\s]*$/g,""),o.l+=m,g.type=String.fromCharCode(o.read_shift(1)),2==a||l||(g.offset=o.read_shift(4)),g.len=o.read_shift(1),2==a&&(g.offset=o.read_shift(2)),g.dec=o.read_shift(1),g.name.length&&p.push(g),2!=a&&(o.l+=l?13:14),g.type){case"B":u&&8==g.len||!n.WTF||console.log("Skipping "+g.name+":"+g.type);break;case"G":case"P":n.WTF&&console.log("Skipping "+g.name+":"+g.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+g.type)}if(13!==o[o.l]&&(o.l=f-1),13!==o.read_shift(1))throw new Error("DBF Terminator not found "+o.l+" "+o[o.l]);o.l=f;var y=0,b=0;for(i[0]=[],b=0;b!=p.length;++b)i[0][b]=p[b].name;while(c-- >0)if(42!==o[o.l])for(++o.l,i[++y]=[],b=0,b=0;b!=p.length;++b){var x=o.slice(o.l,o.l+p[b].len);o.l+=p[b].len,Bn(x,0);var _="undefined"!==typeof r?r.utils.decode(d,x):I(x);switch(p[b].type){case"C":_.trim().length&&(i[y][b]=_.replace(/([^\s])\s+$/,"$1"));break;case"D":8===_.length?(i[y][b]=new Date(Date.UTC(+_.slice(0,4),+_.slice(4,6)-1,+_.slice(6,8),0,0,0,0)),n&&n.UTC||(i[y][b]=Ee(i[y][b]))):i[y][b]=_;break;case"F":i[y][b]=parseFloat(_.trim());break;case"+":case"I":i[y][b]=l?2147483648^x.read_shift(-4,"i"):x.read_shift(4,"i");break;case"L":switch(_.trim().toUpperCase()){case"Y":case"T":i[y][b]=!0;break;case"N":case"F":i[y][b]=!1;break;case"":case"\0":case"?":break;default:throw new Error("DBF Unrecognized L:|"+_+"|")}break;case"M":if(!s)throw new Error("DBF Unexpected MEMO for type "+a.toString(16));i[y][b]="##MEMO##"+(l?parseInt(_.trim(),10):x.read_shift(4));break;case"N":_=_.replace(/\u0000/g,"").trim(),_&&"."!=_&&(i[y][b]=+_||0);break;case"@":i[y][b]=new Date(x.read_shift(-8,"f")-621356832e5);break;case"T":var S=x.read_shift(4),E=x.read_shift(4);if(0==S&&0==E)break;i[y][b]=new Date(864e5*(S-2440588)+E),n&&n.UTC||(i[y][b]=Ee(i[y][b]));break;case"Y":i[y][b]=x.read_shift(4,"i")/1e4+x.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":i[y][b]=-x.read_shift(-8,"f");break;case"B":if(u&&8==p[b].len){i[y][b]=x.read_shift(8,"f");break}case"G":case"P":x.l+=p[b].len;break;case"0":if("_NullFlags"===p[b].name)break;default:throw new Error("DBF Unsupported data type "+p[b].type)}}else o.l+=h;if(2!=a&&o.l<o.length&&26!=o[o.l++])throw new Error("DBF EOF Marker missing "+(o.l-1)+" of "+o.length+" "+o[o.l-1].toString(16));return n&&n.sheetRows&&(i=i.slice(0,n.sheetRows)),n.DBF=p,i}function i(t,e){var r=e||{};r.dateNF||(r.dateNF="yyyymmdd");var i=gr(n(t,r),r);return i["!cols"]=r.DBF.map((function(t){return{wch:t.len,DBF:t}})),delete r.DBF,i}function s(t,e){try{var n=hr(i(t,e),e);return n.bookType="dbf",n}catch(r){if(e&&e.WTF)throw r}return{SheetNames:[],Sheets:{}}}var u={B:8,C:250,L:1,D:8,"?":0,"":0};function l(n,i){if(!n["!ref"])throw new Error("Cannot export empty sheet to DBF");var s=i||{},l=o;if(+s.codepage>=0&&f(+s.codepage),"string"==s.type)throw new Error("Cannot write DBF to JS string");var c=Un(),h=Td(n,{header:1,raw:!0,cellDates:!0}),d=h[0],p=h.slice(1),g=n["!cols"]||[],v=0,m=0,y=0,b=1;for(v=0;v<d.length;++v)if(((g[v]||{}).DBF||{}).name)d[v]=g[v].DBF.name,++y;else if(null!=d[v]){if(++y,"number"===typeof d[v]&&(d[v]=d[v].toString(10)),"string"!==typeof d[v])throw new Error("DBF Invalid column name "+d[v]+" |"+typeof d[v]+"|");if(d.indexOf(d[v])!==v)for(m=0;m<1024;++m)if(-1==d.indexOf(d[v]+"_"+m)){d[v]+="_"+m;break}}var x=lr(n["!ref"]),_=[],w=[],S=[];for(v=0;v<=x.e.c-x.s.c;++v){var E="",T="",k=0,C=[];for(m=0;m<p.length;++m)null!=p[m][v]&&C.push(p[m][v]);if(0!=C.length&&null!=d[v]){for(m=0;m<C.length;++m){switch(typeof C[m]){case"number":T="B";break;case"string":T="C";break;case"boolean":T="L";break;case"object":T=C[m]instanceof Date?"D":"C";break;default:T="C"}k=Math.max(k,("undefined"!==typeof r&&"string"==typeof C[m]?r.utils.encode(a,C[m]):String(C[m])).length),E=E&&E!=T?"C":T}k>250&&(k=250),T=((g[v]||{}).DBF||{}).type,"C"==T&&g[v].DBF.len>k&&(k=g[v].DBF.len),"B"==E&&"N"==T&&(E="N",S[v]=g[v].DBF.dec,k=g[v].DBF.len),w[v]="C"==E||"N"==T?k:u[E]||0,b+=w[v],_[v]=E}else _[v]="?"}var M=c.next(32);for(M.write_shift(4,318902576),M.write_shift(4,p.length),M.write_shift(2,296+32*y),M.write_shift(2,b),v=0;v<4;++v)M.write_shift(4,0);var A=+e[o]||3;for(M.write_shift(4,0|A<<8),t[A]!=+s.codepage&&(s.codepage&&console.error("DBF Unsupported codepage "+o+", using 1252"),o=1252),v=0,m=0;v<d.length;++v)if(null!=d[v]){var I=c.next(32),O=(d[v].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);I.write_shift(1,O,"sbcs"),I.write_shift(1,"?"==_[v]?"C":_[v],"sbcs"),I.write_shift(4,m),I.write_shift(1,w[v]||u[_[v]]||0),I.write_shift(1,S[v]||0),I.write_shift(1,2),I.write_shift(4,0),I.write_shift(1,0),I.write_shift(4,0),I.write_shift(4,0),m+=w[v]||u[_[v]]||0}var D=c.next(264);for(D.write_shift(4,13),v=0;v<65;++v)D.write_shift(4,0);for(v=0;v<p.length;++v){var P=c.next(b);for(P.write_shift(1,0),m=0;m<d.length;++m)if(null!=d[m])switch(_[m]){case"L":P.write_shift(1,null==p[v][m]?63:p[v][m]?84:70);break;case"B":P.write_shift(8,p[v][m]||0,"f");break;case"N":var L="0";for("number"==typeof p[v][m]&&(L=p[v][m].toFixed(S[m]||0)),L.length>w[m]&&(L=L.slice(0,w[m])),y=0;y<w[m]-L.length;++y)P.write_shift(1,32);P.write_shift(1,L,"sbcs");break;case"D":p[v][m]?(P.write_shift(4,("0000"+p[v][m].getFullYear()).slice(-4),"sbcs"),P.write_shift(2,("00"+(p[v][m].getMonth()+1)).slice(-2),"sbcs"),P.write_shift(2,("00"+p[v][m].getDate()).slice(-2),"sbcs")):P.write_shift(8,"00000000","sbcs");break;case"C":var N=P.l,R=String(null!=p[v][m]?p[v][m]:"").slice(0,w[m]);for(P.write_shift(1,R,"cpstr"),N+=w[m]-P.l,y=0;y<N;++y)P.write_shift(1,32);break}}return o=l,c.next(1).write_shift(1,26),c.end()}return{to_workbook:s,to_sheet:i,from_sheet:l}}(),Zo=function(){var t={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},e=new RegExp("N("+Jt(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1").replace("{","\\{")+"|\\|)","gm");try{e=new RegExp("N("+Jt(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm")}catch(v){}var n=function(e,n){var r=t[n];return"number"==typeof r?g(r):r},i=function(t,e,n){var r=e.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?t:g(r)};t["|"]=254;var o=function(t){return t.replace(/\n/g," :").replace(/\r/g," =")};function a(t,e){switch(e.type){case"base64":return s(w(t),e);case"binary":return s(t,e);case"buffer":return s(S&&Buffer.isBuffer(t)?t.toString("binary"):I(t),e);case"array":return s(he(t),e)}throw new Error("Unrecognized type "+e.type)}function s(t,o){var a,s=t.split(/[\n\r]+/),u=-1,l=-1,c=0,h=0,d=[],p=[],g=null,v={},m=[],y=[],b=[],x=0,_={Workbook:{WBProps:{},Names:[]}};for(+o.codepage>=0&&f(+o.codepage);c!==s.length;++c){x=0;var w,S=s[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(e,n),E=S.replace(/;;/g,"\0").split(";").map((function(t){return t.replace(/\u0000/g,";")})),T=E[0];if(S.length>0)switch(T){case"ID":break;case"E":break;case"B":break;case"O":for(h=1;h<E.length;++h)switch(E[h].charAt(0)){case"V":var k=parseInt(E[h].slice(1),10);k>=1&&k<=4&&(_.Workbook.WBProps.date1904=!0);break}break;case"W":break;case"P":switch(E[1].charAt(0)){case"P":p.push(S.slice(3).replace(/;;/g,";"));break}break;case"NN":var C={Sheet:0};for(h=1;h<E.length;++h)switch(E[h].charAt(0)){case"N":C.Name=E[h].slice(1);break;case"E":C.Ref=(o&&o.sheet||"Sheet1")+"!"+cs(E[h].slice(1));break}_.Workbook.Names.push(C);break;case"C":var M=!1,A=!1,I=!1,O=!1,D=-1,P=-1,L="",N="z",R="";for(h=1;h<E.length;++h)switch(E[h].charAt(0)){case"A":R=E[h].slice(1);break;case"X":l=parseInt(E[h].slice(1),10)-1,A=!0;break;case"Y":for(u=parseInt(E[h].slice(1),10)-1,A||(l=0),a=d.length;a<=u;++a)d[a]=[];break;case"K":w=E[h].slice(1),'"'===w.charAt(0)?(w=w.slice(1,w.length-1),N="s"):"TRUE"===w||"FALSE"===w?(w="TRUE"===w,N="b"):"#"==w.charAt(0)&&null!=fi[w]?(N="e",w=fi[w]):isNaN(ge(w))||(w=ge(w),N="n",null!==g&&Pt(g)&&o.cellDates&&(w=se(_.Workbook.WBProps.date1904?w+1462:w),N="number"==typeof w?"n":"d")),"undefined"!==typeof r&&"string"==typeof w&&"string"!=(o||{}).type&&(o||{}).codepage&&(w=r.utils.decode(o.codepage,w)),M=!0;break;case"E":O=!0,L=cs(E[h].slice(1),{r:u,c:l});break;case"S":I=!0;break;case"G":break;case"R":D=parseInt(E[h].slice(1),10)-1;break;case"C":P=parseInt(E[h].slice(1),10)-1;break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+S)}if(M&&(d[u][l]?(d[u][l].t=N,d[u][l].v=w):d[u][l]={t:N,v:w},g&&(d[u][l].z=g),!1!==o.cellText&&g&&(d[u][l].w=Ft(d[u][l].z,d[u][l].v,{date1904:_.Workbook.WBProps.date1904})),g=null),I){if(O)throw new Error("SYLK shared formula cannot have own formula");var j=D>-1&&d[D][P];if(!j||!j[1])throw new Error("SYLK shared formula cannot find base");L=ds(j[1],{r:u-D,c:l-P})}L&&(d[u][l]?d[u][l].f=L:d[u][l]={t:"n",f:L}),R&&(d[u][l]||(d[u][l]={t:"z"}),d[u][l].c=[{a:"SheetJSYLK",t:R}]);break;case"F":var F=0;for(h=1;h<E.length;++h)switch(E[h].charAt(0)){case"X":l=parseInt(E[h].slice(1),10)-1,++F;break;case"Y":for(u=parseInt(E[h].slice(1),10)-1,a=d.length;a<=u;++a)d[a]=[];break;case"M":x=parseInt(E[h].slice(1),10)/20;break;case"F":break;case"G":break;case"P":g=p[parseInt(E[h].slice(1),10)];break;case"S":break;case"D":break;case"N":break;case"W":for(b=E[h].slice(1).split(" "),a=parseInt(b[0],10);a<=parseInt(b[1],10);++a)x=parseInt(b[2],10),y[a-1]=0===x?{hidden:!0}:{wch:x};break;case"C":l=parseInt(E[h].slice(1),10)-1,y[l]||(y[l]={});break;case"R":u=parseInt(E[h].slice(1),10)-1,m[u]||(m[u]={}),x>0?(m[u].hpt=x,m[u].hpx=fa(x)):0===x&&(m[u].hidden=!0);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+S)}F<1&&(g=null);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+S)}}return m.length>0&&(v["!rows"]=m),y.length>0&&(v["!cols"]=y),y.forEach((function(t){sa(t)})),o&&o.sheetRows&&(d=d.slice(0,o.sheetRows)),[d,v,_]}function u(t,e){var n=a(t,e),r=n[0],i=n[1],o=n[2],s=de(e);s.date1904=(((o||{}).Workbook||{}).WBProps||{}).date1904;var u=gr(r,s);Jt(i).forEach((function(t){u[t]=i[t]}));var l=hr(u,e);return Jt(o).forEach((function(t){l[t]=o[t]})),l.bookType="sylk",l}function l(t,e,n,r,i,o){var a="C;Y"+(n+1)+";X"+(r+1)+";K";switch(t.t){case"n":a+=t.v||0,t.f&&!t.F&&(a+=";E"+hs(t.f,{r:n,c:r}));break;case"b":a+=t.v?"TRUE":"FALSE";break;case"e":a+=t.w||ci[t.v]||t.v;break;case"d":a+=ae(fe(t.v,o),o);break;case"s":a+='"'+(null==t.v?"":String(t.v)).replace(/"/g,"").replace(/;/g,";;")+'"';break}return a}function c(t,e,n){var r="C;Y"+(e+1)+";X"+(n+1)+";A";return r+=o(t.map((function(t){return t.t})).join("")),r}function h(t,e){e.forEach((function(e,n){var r="F;W"+(n+1)+" "+(n+1)+" ";e.hidden?r+="0":("number"!=typeof e.width||e.wpx||(e.wpx=ia(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=oa(e.wpx)),"number"==typeof e.wch&&(r+=Math.round(e.wch)))," "!=r.charAt(r.length-1)&&t.push(r)}))}function d(t,e){e.forEach((function(e,n){var r="F;";e.hidden?r+="M0;":e.hpt?r+="M"+20*e.hpt+";":e.hpx&&(r+="M"+20*ca(e.hpx)+";"),r.length>2&&t.push(r+"R"+(n+1))}))}function p(t,e,n){e||(e={}),e._formats=["General"];var r,i=["ID;PSheetJS;N;E"],o=[],a=lr(t["!ref"]||"A1"),s=null!=t["!data"],u="\r\n",f=(((n||{}).Workbook||{}).WBProps||{}).date1904,p="General";i.push("P;PGeneral");var g=a.s.r,v=a.s.c,m=[];if(t["!ref"])for(g=a.s.r;g<=a.e.r;++g)if(!s||t["!data"][g]){for(m=[],v=a.s.c;v<=a.e.c;++v)r=s?t["!data"][g][v]:t[Qn(v)+Xn(g)],r&&r.c&&m.push(c(r.c,g,v));m.length&&o.push(m.join(u))}if(t["!ref"])for(g=a.s.r;g<=a.e.r;++g)if(!s||t["!data"][g]){for(m=[],v=a.s.c;v<=a.e.c;++v)if(r=s?t["!data"][g][v]:t[Qn(v)+Xn(g)],r&&(null!=r.v||r.f&&!r.F)){if((r.z||("d"==r.t?X[14]:"General"))!=p){var y=e._formats.indexOf(r.z);-1==y&&(e._formats.push(r.z),y=e._formats.length-1,i.push("P;P"+r.z.replace(/;/g,";;"))),m.push("F;P"+y+";Y"+(g+1)+";X"+(v+1))}m.push(l(r,t,g,v,e,f))}o.push(m.join(u))}return i.push("F;P0;DG0G8;M255"),t["!cols"]&&h(i,t["!cols"]),t["!rows"]&&d(i,t["!rows"]),t["!ref"]&&i.push("B;Y"+(a.e.r-a.s.r+1)+";X"+(a.e.c-a.s.c+1)+";D"+[a.s.c,a.s.r,a.e.c,a.e.r].join(" ")),i.push("O;L;D;B"+(f?";V4":"")+";K47;G100 0.001"),delete e._formats,i.join(u)+u+o.join(u)+u+"E"+u}return{to_workbook:u,from_sheet:p}}(),Uo=function(){function t(t,n){switch(n.type){case"base64":return e(w(t),n);case"binary":return e(t,n);case"buffer":return e(S&&Buffer.isBuffer(t)?t.toString("binary"):I(t),n);case"array":return e(he(t),n)}throw new Error("Unrecognized type "+n.type)}function e(t,e){for(var n=t.split("\n"),r=-1,i=-1,o=0,a=[];o!==n.length;++o)if("BOT"!==n[o].trim()){if(!(r<0)){var s=n[o].trim().split(","),u=s[0],l=s[1];++o;var c=n[o]||"";while(1&(c.match(/["]/g)||[]).length&&o<n.length-1)c+="\n"+n[++o];switch(c=c.trim(),+u){case-1:if("BOT"===c){a[++r]=[],i=0;continue}if("EOD"!==c)throw new Error("Unrecognized DIF special command "+c);break;case 0:"TRUE"===c?a[r][i]=!0:"FALSE"===c?a[r][i]=!1:isNaN(ge(l))?isNaN(Se(l).getDate())?a[r][i]=l:(a[r][i]=fe(l),e&&e.UTC||(a[r][i]=Ee(a[r][i]))):a[r][i]=ge(l),++i;break;case 1:c=c.slice(1,c.length-1),c=c.replace(/""/g,'"'),m&&c&&c.match(/^=".*"$/)&&(c=c.slice(2,-1)),a[r][i++]=""!==c?c:null;break}if("EOD"===c)break}}else a[++r]=[],i=0;return e&&e.sheetRows&&(a=a.slice(0,e.sheetRows)),a}function n(e,n){return gr(t(e,n),n)}function r(t,e){var r=hr(n(t,e),e);return r.bookType="dif",r}function i(t,e){return"0,"+String(t)+"\r\n"+e}function o(t){return'1,0\r\n"'+t.replace(/"/g,'""')+'"'}function a(t){var e=m;if(!t["!ref"])throw new Error("Cannot export empty sheet to DIF");for(var n=lr(t["!ref"]),r=null!=t["!data"],a=['TABLE\r\n0,1\r\n"sheetjs"\r\n',"VECTORS\r\n0,"+(n.e.r-n.s.r+1)+'\r\n""\r\n',"TUPLES\r\n0,"+(n.e.c-n.s.c+1)+'\r\n""\r\n','DATA\r\n0,0\r\n""\r\n'],s=n.s.r;s<=n.e.r;++s){for(var u=r?t["!data"][s]:[],l="-1,0\r\nBOT\r\n",c=n.s.c;c<=n.e.c;++c){var f=r?u&&u[c]:t[ir({r:s,c:c})];if(null!=f){switch(f.t){case"n":e?null!=f.w?l+="0,"+f.w+"\r\nV":null!=f.v?l+=i(f.v,"V"):null==f.f||f.F?l+='1,0\r\n""':l+=o("="+f.f):null==f.v?l+='1,0\r\n""':l+=i(f.v,"V");break;case"b":l+=f.v?i(1,"TRUE"):i(0,"FALSE");break;case"s":l+=o(!e||isNaN(+f.v)?f.v:'="'+f.v+'"');break;case"d":f.w||(f.w=Ft(f.z||X[14],ae(fe(f.v)))),l+=e?i(f.w,"V"):o(f.w);break;default:l+='1,0\r\n""'}l+="\r\n"}else l+='1,0\r\n""\r\n'}a.push(l)}return a.join("")+"-1,0\r\nEOD"}return{to_workbook:r,to_sheet:n,from_sheet:a}}(),Ho=function(){function t(t){return t.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}function e(t){return t.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function n(e,n){for(var r=e.split("\n"),i=-1,o=-1,a=0,s=[];a!==r.length;++a){var u=r[a].trim().split(":");if("cell"===u[0]){var l=rr(u[1]);if(s.length<=l.r)for(i=s.length;i<=l.r;++i)s[i]||(s[i]=[]);switch(i=l.r,o=l.c,u[2]){case"t":s[i][o]=t(u[3]);break;case"v":s[i][o]=+u[3];break;case"vtf":var c=u[u.length-1];case"vtc":switch(u[3]){case"nl":s[i][o]=!!+u[4];break;default:s[i][o]=+u[4];break}"vtf"==u[2]&&(s[i][o]=[s[i][o],c])}}}return n&&n.sheetRows&&(s=s.slice(0,n.sheetRows)),s}function r(t,e){return gr(n(t,e),e)}function i(t,e){return hr(r(t,e),e)}var o=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),a=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),u="--SocialCalcSpreadsheetControlSave--";function l(t){if(!t||!t["!ref"])return"";for(var n,r=[],i=[],o="",a=or(t["!ref"]),s=null!=t["!data"],u=a.s.r;u<=a.e.r;++u)for(var l=a.s.c;l<=a.e.c;++l)if(o=ir({r:u,c:l}),n=s?(t["!data"][u]||[])[l]:t[o],n&&null!=n.v&&"z"!==n.t){switch(i=["cell",o,"t"],n.t){case"s":case"str":i.push(e(n.v));break;case"n":n.f?(i[2]="vtf",i[3]="n",i[4]=n.v,i[5]=e(n.f)):(i[2]="v",i[3]=n.v);break;case"b":i[2]="vt"+(n.f?"f":"c"),i[3]="nl",i[4]=n.v?"1":"0",i[5]=e(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var c=ae(fe(n.v));i[2]="vtc",i[3]="nd",i[4]=""+c,i[5]=n.w||Ft(n.z||X[14],c);break;case"e":continue}r.push(i.join(":"))}return r.push("sheet:c:"+(a.e.c-a.s.c+1)+":r:"+(a.e.r-a.s.r+1)+":tvf:1"),r.push("valueformat:1:text-wiki"),r.join("\n")}function c(t){return[o,a,s,a,l(t),u].join("\n")}return{to_workbook:i,to_sheet:r,from_sheet:c}}(),$o=function(){function t(t,e,n,r,i){i.raw?e[n][r]=t:""===t||("TRUE"===t?e[n][r]=!0:"FALSE"===t?e[n][r]=!1:isNaN(ge(t))?isNaN(Se(t).getDate())?e[n][r]=t:e[n][r]=fe(t):e[n][r]=ge(t))}function e(e,n){var r=n||{},i=[];if(!e||0===e.length)return i;var o=e.split(/[\r\n]/),a=o.length-1;while(a>=0&&0===o[a].length)--a;for(var s=10,u=0,l=0;l<=a;++l)u=o[l].indexOf(" "),-1==u?u=o[l].length:u++,s=Math.max(s,u);for(l=0;l<=a;++l){i[l]=[];var c=0;for(t(o[l].slice(0,s).trim(),i,l,c,r),c=1;c<=(o[l].length-s)/10+1;++c)t(o[l].slice(s+10*(c-1),s+10*c).trim(),i,l,c,r)}return r.sheetRows&&(i=i.slice(0,r.sheetRows)),i}var n={44:",",9:"\t",59:";",124:"|"},i={44:3,9:2,59:1,124:0};function o(t){for(var e={},r=!1,o=0,a=0;o<t.length;++o)34==(a=t.charCodeAt(o))?r=!r:!r&&a in n&&(e[a]=(e[a]||0)+1);for(o in a=[],e)Object.prototype.hasOwnProperty.call(e,o)&&a.push([e[o],o]);if(!a.length)for(o in e=i,e)Object.prototype.hasOwnProperty.call(e,o)&&a.push([e[o],o]);return a.sort((function(t,e){return t[0]-e[0]||i[t[1]]-i[e[1]]})),n[a.pop()[1]]||44}function a(t,e){var n=e||{},r="";null!=v&&null==n.dense&&(n.dense=v);var i={};n.dense&&(i["!data"]=[]);var a={s:{c:0,r:0},e:{c:0,r:0}};"sep="==t.slice(0,4)?13==t.charCodeAt(5)&&10==t.charCodeAt(6)?(r=t.charAt(4),t=t.slice(7)):13==t.charCodeAt(5)||10==t.charCodeAt(5)?(r=t.charAt(4),t=t.slice(6)):r=o(t.slice(0,1024)):r=n&&n.FS?n.FS:o(t.slice(0,1024));var s=0,u=0,l=0,c=0,f=0,h=r.charCodeAt(0),d=!1,p=0,g=t.charCodeAt(0),m=null!=n.dateNF?Ht(n.dateNF):null;function y(){var e=t.slice(c,f);"\r"==e.slice(-1)&&(e=e.slice(0,-1));var r={};if('"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.slice(1,-1).replace(/""/g,'"')),!1!==n.cellText&&(r.w=e),0===e.length)r.t="z";else if(n.raw)r.t="s",r.v=e;else if(0===e.trim().length)r.t="s",r.v=e;else if(61==e.charCodeAt(0))34==e.charCodeAt(1)&&34==e.charCodeAt(e.length-1)?(r.t="s",r.v=e.slice(2,-1).replace(/""/g,'"')):ps(e)?(r.t="s",r.f=e.slice(1),r.v=e):(r.t="s",r.v=e);else if("TRUE"==e)r.t="b",r.v=!0;else if("FALSE"==e)r.t="b",r.v=!1;else if(isNaN(l=ge(e)))if(!isNaN((l=Se(e)).getDate())||m&&e.match(m)){if(r.z=n.dateNF||X[14],m&&e.match(m)){var o=$t(e,n.dateNF,e.match(m)||[]);l=fe(o),n&&!1===n.UTC&&(l=Ee(l))}else n&&!1===n.UTC?l=Ee(l):!1!==n.cellText&&n.dateNF&&(r.w=Ft(r.z,l));n.cellDates?(r.t="d",r.v=l):(r.t="n",r.v=ae(l)),n.cellNF||delete r.z}else r.t="s",r.v=e;else r.t="n",r.v=l;if("z"==r.t||(n.dense?(i["!data"][s]||(i["!data"][s]=[]),i["!data"][s][u]=r):i[ir({c:u,r:s})]=r),c=f+1,g=t.charCodeAt(c),a.e.c<u&&(a.e.c=u),a.e.r<s&&(a.e.r=s),p==h)++u;else if(u=0,++s,n.sheetRows&&n.sheetRows<=s)return!0}t:for(;f<t.length;++f)switch(p=t.charCodeAt(f)){case 34:34===g&&(d=!d);break;case 13:if(d)break;10==t.charCodeAt(f+1)&&++f;case h:case 10:if(!d&&y())break t;break;default:break}return f-c>0&&y(),i["!ref"]=ar(a),i}function s(t,n){return n&&n.PRN?n.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?a(t,n):gr(e(t,n),n):a(t,n)}function u(t,e){var n="",i="string"==e.type?[0,0,0,0]:hd(t,e);switch(e.type){case"base64":n=w(t);break;case"binary":n=t;break;case"buffer":n=65001==e.codepage?t.toString("utf8"):e.codepage&&"undefined"!==typeof r?r.utils.decode(e.codepage,t):S&&Buffer.isBuffer(t)?t.toString("binary"):I(t);break;case"array":n=he(t);break;case"string":n=t;break;default:throw new Error("Unrecognized type "+e.type)}return 239==i[0]&&187==i[1]&&191==i[2]?n=$e(n.slice(3)):"string"!=e.type&&"buffer"!=e.type&&65001==e.codepage?n=$e(n):"binary"==e.type&&"undefined"!==typeof r&&e.codepage&&(n=r.utils.decode(e.codepage,r.utils.encode(28591,n))),"socialcalc:version:"==n.slice(0,19)?Ho.to_sheet("string"==e.type?n:$e(n),e):s(n,e)}function l(t,e){return hr(u(t,e),e)}function c(t){var e=[];if(!t["!ref"])return"";for(var n,r=lr(t["!ref"]),i=null!=t["!data"],o=r.s.r;o<=r.e.r;++o){for(var a=[],s=r.s.c;s<=r.e.c;++s){var u=ir({r:o,c:s});if(n=i?(t["!data"][o]||[])[s]:t[u],n&&null!=n.v){var l=(n.w||(fr(n),n.w)||"").slice(0,10);while(l.length<10)l+=" ";a.push(l+(0===s?" ":""))}else a.push("          ")}e.push(a.join(""))}return e.join("\n")}return{to_workbook:l,to_sheet:u,from_sheet:c}}();var Go=function(){function t(t,e,n){if(t){Bn(t,t.l||0);var r=n.Enum||H;while(t.l<t.length){var i=t.read_shift(2),o=r[i]||r[65535],a=t.read_shift(2),s=t.l+a,u=o.f&&o.f(t,a,n);if(t.l=s,e(u,o,i))return}}}function e(t,e){switch(e.type){case"base64":return r(M(w(t)),e);case"binary":return r(M(t),e);case"buffer":case"array":return r(t,e)}throw"Unsupported type "+e.type}var n=["mmmm","dd-mmm-yyyy","dd-mmm","mmm-yyyy","@","mm/dd","hh:mm:ss AM/PM","hh:mm AM/PM","mm/dd/yyyy","mm/dd","hh:mm:ss","hh:mm"];function r(e,r){if(!e)return e;var i=r||{};null!=v&&null==i.dense&&(i.dense=v);var o={},a="Sheet1",s="",u=0,l={},c=[],f=[],h=[];i.dense&&(h=o["!data"]=[]);var d={s:{r:0,c:0},e:{r:0,c:0}},p=i.sheetRows||0,g={};if(81==e[4]&&80==e[5]&&87==e[6])return V(e,r);if(0==e[2]&&(8==e[3]||9==e[3])&&e.length>=16&&5==e[14]&&108===e[15])throw new Error("Unsupported Works 3 for Mac file");if(2==e[2])i.Enum=H,t(e,(function(t,e,r){switch(r){case 0:i.vers=t,t>=4096&&(i.qpro=!0);break;case 255:i.vers=t,i.works=!0;break;case 6:d=t;break;case 204:t&&(s=t);break;case 222:s=t;break;case 15:case 51:(!i.qpro&&!i.works||51==r)&&t[1].v.charCodeAt(0)<48&&(t[1].v=t[1].v.slice(1)),(i.works||i.works2)&&(t[1].v=t[1].v.replace(/\r\n/g,"\n"));case 13:case 14:case 16:112==(112&t[2])&&(15&t[2])>1&&(15&t[2])<15&&(t[1].z=i.dateNF||n[(15&t[2])-1]||X[14],i.cellDates&&(t[1].v=se(t[1].v),t[1].t="number"==typeof t[1].v?"n":"d")),i.qpro&&t[3]>u&&(o["!ref"]=ar(d),l[a]=o,c.push(a),o={},i.dense&&(h=o["!data"]=[]),d={s:{r:0,c:0},e:{r:0,c:0}},u=t[3],a=s||"Sheet"+(u+1),s="");var f=i.dense?(h[t[0].r]||[])[t[0].c]:o[ir(t[0])];if(f){f.t=t[1].t,f.v=t[1].v,null!=t[1].z&&(f.z=t[1].z),null!=t[1].f&&(f.f=t[1].f),g=f;break}i.dense?(h[t[0].r]||(h[t[0].r]=[]),h[t[0].r][t[0].c]=t[1]):o[ir(t[0])]=t[1],g=t[1];break;case 21509:i.works2=!0;break;case 21506:5281==t&&(g.z="hh:mm:ss",i.cellDates&&"n"==g.t&&(g.v=se(g.v),g.t="number"==typeof g.v?"n":"d"));break}}),i);else{if(26!=e[2]&&14!=e[2])throw new Error("Unrecognized LOTUS BOF "+e[2]);i.Enum=$,14==e[2]&&(i.qpro=!0,e.l=0),t(e,(function(t,e,n){switch(n){case 204:a=t;break;case 22:t[1].v.charCodeAt(0)<48&&(t[1].v=t[1].v.slice(1)),t[1].v=t[1].v.replace(/\x0F./g,(function(t){return String.fromCharCode(t.charCodeAt(1)-32)})).replace(/\r\n/g,"\n");case 23:case 24:case 25:case 37:case 39:case 40:if(t[3]>u&&(o["!ref"]=ar(d),l[a]=o,c.push(a),o={},i.dense&&(h=o["!data"]=[]),d={s:{r:0,c:0},e:{r:0,c:0}},u=t[3],a="Sheet"+(u+1)),p>0&&t[0].r>=p)break;i.dense?(h[t[0].r]||(h[t[0].r]=[]),h[t[0].r][t[0].c]=t[1]):o[ir(t[0])]=t[1],d.e.c<t[0].c&&(d.e.c=t[0].c),d.e.r<t[0].r&&(d.e.r=t[0].r);break;case 27:t[14e3]&&(f[t[14e3][0]]=t[14e3][1]);break;case 1537:f[t[0]]=t[1],t[0]==u&&(a=t[1]);break;default:break}}),i)}if(o["!ref"]=ar(d),l[s||a]=o,c.push(s||a),!f.length)return{SheetNames:c,Sheets:l};for(var m={},y=[],b=0;b<f.length;++b)l[c[b]]?(y.push(f[b]||c[b]),m[f[b]]=l[f[b]]||l[c[b]]):(y.push(f[b]),m[f[b]]={"!ref":"A1"});return{SheetNames:y,Sheets:m}}function i(t,e){var n=e||{};if(+n.codepage>=0&&f(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r=Un();if(!t["!ref"])throw new Error("Cannot export empty sheet to WK1");var i=lr(t["!ref"]),o=null!=t["!data"],s=[];Nf(r,0,a(1030)),Nf(r,6,l(i));for(var u=Math.min(i.e.r,8191),c=i.s.c;c<=i.e.c;++c)s[c]=Qn(c);for(var h=i.s.r;h<=u;++h){var d=Xn(h);for(c=i.s.c;c<=i.e.c;++c){var g=o?(t["!data"][h]||[])[c]:t[s[c]+d];if(g&&"z"!=g.t)switch(g.t){case"n":(0|g.v)==g.v&&g.v>=-32768&&g.v<=32767?Nf(r,13,y(h,c,g)):Nf(r,14,x(h,c,g));break;case"d":var v=ae(g.v);(0|v)==v&&v>=-32768&&v<=32767?Nf(r,13,y(h,c,{t:"n",v:v,z:g.z||X[14]})):Nf(r,14,x(h,c,{t:"n",v:v,z:g.z||X[14]}));break;default:var m=fr(g);Nf(r,15,p(h,c,m.slice(0,239)))}}}return Nf(r,1),r.end()}function o(t,e){var n=e||{};if(+n.codepage>=0&&f(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=Un();Nf(r,0,s(t));for(var i=0,o=0;i<t.SheetNames.length;++i)(t.Sheets[t.SheetNames[i]]||{})["!ref"]&&Nf(r,27,U(t.SheetNames[i],o++));var a=0;for(i=0;i<t.SheetNames.length;++i){var u=t.Sheets[t.SheetNames[i]];if(u&&u["!ref"]){for(var l=lr(u["!ref"]),c=null!=u["!data"],h=[],d=Math.min(l.e.r,8191),p=l.s.r;p<=d;++p)for(var g=Xn(p),v=l.s.c;v<=l.e.c;++v){p===l.s.r&&(h[v]=Qn(v));var m=h[v]+g,y=c?(u["!data"][p]||[])[v]:u[m];if(y&&"z"!=y.t)if("n"==y.t)Nf(r,23,P(p,v,a,y.v));else{var b=fr(y);Nf(r,22,I(p,v,a,b.slice(0,239)))}}++a}}return Nf(r,1),r.end()}function a(t){var e=Zn(2);return e.write_shift(2,t),e}function s(t){var e=Zn(26);e.write_shift(2,4096),e.write_shift(2,4),e.write_shift(4,0);for(var n=0,r=0,i=0,o=0;o<t.SheetNames.length;++o){var a=t.SheetNames[o],s=t.Sheets[a];if(s&&s["!ref"]){++i;var u=or(s["!ref"]);n<u.e.r&&(n=u.e.r),r<u.e.c&&(r=u.e.c)}}return n>8191&&(n=8191),e.write_shift(2,n),e.write_shift(1,i),e.write_shift(1,r),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(1,1),e.write_shift(1,2),e.write_shift(4,0),e.write_shift(4,0),e}function u(t,e,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==e&&n.qpro?(r.s.c=t.read_shift(1),t.l++,r.s.r=t.read_shift(2),r.e.c=t.read_shift(1),t.l++,r.e.r=t.read_shift(2),r):(r.s.c=t.read_shift(2),r.s.r=t.read_shift(2),12==e&&n.qpro&&(t.l+=2),r.e.c=t.read_shift(2),r.e.r=t.read_shift(2),12==e&&n.qpro&&(t.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}function l(t){var e=Zn(8);return e.write_shift(2,t.s.c),e.write_shift(2,t.s.r),e.write_shift(2,t.e.c),e.write_shift(2,t.e.r),e}function c(t,e,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=t.read_shift(1),r[3]=t.read_shift(1),r[0].r=t.read_shift(2),t.l+=2):n.works?(r[0].c=t.read_shift(2),r[0].r=t.read_shift(2),r[2]=t.read_shift(2)):(r[2]=t.read_shift(1),r[0].c=t.read_shift(2),r[0].r=t.read_shift(2)),r}function h(t){return t.z&&Pt(t.z)?240|(n.indexOf(t.z)+1||2):255}function d(t,e,n){var r=t.l+e,i=c(t,e,n);if(i[1].t="s",20768==(65534&n.vers)){t.l++;var o=t.read_shift(1);return i[1].v=t.read_shift(o,"utf8"),i}return n.qpro&&t.l++,i[1].v=t.read_shift(r-t.l,"cstr"),i}function p(t,e,n){var r=Zn(7+n.length);r.write_shift(1,255),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(1,39);for(var i=0;i<r.length;++i){var o=n.charCodeAt(i);r.write_shift(1,o>=128?95:o)}return r.write_shift(1,0),r}function g(t,e,n){var r=t.l+e,i=c(t,e,n);if(i[1].t="s",20768==n.vers){var o=t.read_shift(1);return i[1].v=t.read_shift(o,"utf8"),i}return i[1].v=t.read_shift(r-t.l,"cstr"),i}function m(t,e,n){var r=c(t,e,n);return r[1].v=t.read_shift(2,"i"),r}function y(t,e,n){var r=Zn(7);return r.write_shift(1,h(n)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(2,n.v,"i"),r}function b(t,e,n){var r=c(t,e,n);return r[1].v=t.read_shift(8,"f"),r}function x(t,e,n){var r=Zn(13);return r.write_shift(1,h(n)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(8,n.v,"f"),r}function _(t,e,n){var r=t.l+e,i=c(t,e,n);if(i[1].v=t.read_shift(8,"f"),n.qpro)t.l=r;else{var o=t.read_shift(2);k(t.slice(t.l,t.l+o),i),t.l+=o}return i}function S(t,e,n){var r=32768&e;return e&=-32769,e=(r?t:0)+(e>=8192?e-16384:e),(r?"":"$")+(n?Qn(e):Xn(e))}var E={31:["NA",0],33:["ABS",1],34:["TRUNC",1],35:["SQRT",1],36:["LOG",1],37:["LN",1],38:["PI",0],39:["SIN",1],40:["COS",1],41:["TAN",1],42:["ATAN2",2],43:["ATAN",1],44:["ASIN",1],45:["ACOS",1],46:["EXP",1],47:["MOD",2],49:["ISNA",1],50:["ISERR",1],51:["FALSE",0],52:["TRUE",0],53:["RAND",0],54:["DATE",3],63:["ROUND",2],64:["TIME",3],68:["ISNUMBER",1],69:["ISTEXT",1],70:["LEN",1],71:["VALUE",1],73:["MID",3],74:["CHAR",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],102:["UPPER",1],103:["LOWER",1],107:["PROPER",1],109:["TRIM",1],111:["T",1]},T=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function k(t,e){Bn(t,0);var n=[],r=0,i="",o="",a="",s="";while(t.l<t.length){var u=t[t.l++];switch(u){case 0:n.push(t.read_shift(8,"f"));break;case 1:o=S(e[0].c,t.read_shift(2),!0),i=S(e[0].r,t.read_shift(2),!1),n.push(o+i);break;case 2:var l=S(e[0].c,t.read_shift(2),!0),c=S(e[0].r,t.read_shift(2),!1);o=S(e[0].c,t.read_shift(2),!0),i=S(e[0].r,t.read_shift(2),!1),n.push(l+c+":"+o+i);break;case 3:if(t.l<t.length)return void console.error("WK1 premature formula end");break;case 4:n.push("("+n.pop()+")");break;case 5:n.push(t.read_shift(2));break;case 6:var f="";while(u=t[t.l++])f+=String.fromCharCode(u);n.push('"'+f.replace(/"/g,'""')+'"');break;case 8:n.push("-"+n.pop());break;case 23:n.push("+"+n.pop());break;case 22:n.push("NOT("+n.pop()+")");break;case 20:case 21:s=n.pop(),a=n.pop(),n.push(["AND","OR"][u-20]+"("+a+","+s+")");break;default:if(u<32&&T[u])s=n.pop(),a=n.pop(),n.push(a+T[u]+s);else{if(!E[u])return u<=7?console.error("WK1 invalid opcode "+u.toString(16)):u<=24?console.error("WK1 unsupported op "+u.toString(16)):u<=30?console.error("WK1 invalid opcode "+u.toString(16)):u<=115?console.error("WK1 unsupported function opcode "+u.toString(16)):console.error("WK1 unrecognized opcode "+u.toString(16));if(r=E[u][1],69==r&&(r=t[t.l++]),r>n.length)return void console.error("WK1 bad formula parse 0x"+u.toString(16)+":|"+n.join("|")+"|");var h=n.slice(-r);n.length-=r,n.push(E[u][0]+"("+h.join(",")+")")}}}1==n.length?e[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}function C(t){var e=[{c:0,r:0},{t:"n",v:0},0];return e[0].r=t.read_shift(2),e[3]=t[t.l++],e[0].c=t[t.l++],e}function A(t,e){var n=C(t,e);return n[1].t="s",n[1].v=t.read_shift(e-4,"cstr"),n}function I(t,e,n,r){var i=Zn(6+r.length);i.write_shift(2,t),i.write_shift(1,n),i.write_shift(1,e),i.write_shift(1,39);for(var o=0;o<r.length;++o){var a=r.charCodeAt(o);i.write_shift(1,a>=128?95:a)}return i.write_shift(1,0),i}function O(t,e){var n=C(t,e);n[1].v=t.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64;break}return n[1].v=r,n}function D(t,e){var n=C(t,e),r=t.read_shift(4),i=t.read_shift(4),o=t.read_shift(2);if(65535==o)return 0===r&&3221225472===i?(n[1].t="e",n[1].v=15):0===r&&3489660928===i?(n[1].t="e",n[1].v=42):n[1].v=0,n;var a=32768&o;return o=(32767&o)-16446,n[1].v=(1-2*a)*(i*Math.pow(2,o+32)+r*Math.pow(2,o)),n}function P(t,e,n,r){var i=Zn(14);if(i.write_shift(2,t),i.write_shift(1,n),i.write_shift(1,e),0==r)return i.write_shift(4,0),i.write_shift(4,0),i.write_shift(2,65535),i;var o=0,a=0,s=0,u=0;return r<0&&(o=1,r=-r),a=0|Math.log2(r),r/=Math.pow(2,a-31),u=r>>>0,0==(2147483648&u)&&(r/=2,++a,u=r>>>0),r-=u,u|=2147483648,u>>>=0,r*=Math.pow(2,32),s=r>>>0,i.write_shift(4,s),i.write_shift(4,u),a+=16383+(o?32768:0),i.write_shift(2,a),i}function L(t,e){var n=D(t,14);return t.l+=e-14,n}function N(t,e){var n=C(t,e),r=t.read_shift(4);return n[1].v=r>>6,n}function R(t,e){var n=C(t,e),r=t.read_shift(8,"f");return n[1].v=r,n}function j(t,e){var n=R(t,12);return t.l+=e-12,n}function F(t,e){return 0==t[t.l+e-1]?t.read_shift(e,"cstr"):""}function B(t,e){var n=t[t.l++];n>e-1&&(n=e-1);var r="";while(r.length<n)r+=String.fromCharCode(t[t.l++]);return r}function z(t,e,n){if(n.qpro&&!(e<21)){var r=t.read_shift(1);t.l+=17,t.l+=1,t.l+=2;var i=t.read_shift(e-21,"cstr");return[r,i]}}function Z(t,e){var n={},r=t.l+e;while(t.l<r){var i=t.read_shift(2);if(14e3==i){n[i]=[0,""],n[i][0]=t.read_shift(2);while(t[t.l])n[i][1]+=String.fromCharCode(t[t.l]),t.l++;t.l++}}return n}function U(t,e){var n=Zn(5+t.length);n.write_shift(2,14e3),n.write_shift(2,e);for(var r=0;r<t.length;++r){var i=t.charCodeAt(r);n[n.l++]=i>127?95:i}return n[n.l++]=0,n}var H={0:{n:"BOF",f:Gi},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:u},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:m},14:{n:"NUMBER",f:b},15:{n:"LABEL",f:d},16:{n:"FORMULA",f:_},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:g},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:F},222:{n:"SHEETNAMELP",f:B},255:{n:"BOF",f:Gi},21506:{n:"WKSNF",f:Gi},65535:{n:""}},$={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:A},23:{n:"NUMBER17",f:D},24:{n:"NUMBER18",f:O},25:{n:"FORMULA19",f:L},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:Z},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:N},38:{n:"??"},39:{n:"NUMBER27",f:R},40:{n:"FORMULA28",f:j},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:F},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:z},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}},G={5:"dd-mmm-yy",6:"dd-mmm",7:"mmm-yy",8:"mm/dd/yy",10:"hh:mm:ss AM/PM",11:"hh:mm AM/PM",14:"dd-mmm-yyyy",15:"mmm-yyyy",34:"0.00",50:"0.00;[Red]0.00",66:"0.00;(0.00)",82:"0.00;[Red](0.00)",162:'"$"#,##0.00;\\("$"#,##0.00\\)',288:"0%",304:"0E+00",320:"# ?/?"};function W(t){var e=t.read_shift(2),n=t.read_shift(1);if(0!=n)throw"unsupported QPW string type "+n.toString(16);return t.read_shift(e,"sbcs-cont")}function V(t,e){Bn(t,0);var n=e||{};null!=v&&null==n.dense&&(n.dense=v);var r={};n.dense&&(r["!data"]=[]);var i=[],o="",a={s:{r:-1,c:-1},e:{r:-1,c:-1}},s=0,u=0,l=0,c=0,f={SheetNames:[],Sheets:{}},h=[];t:while(t.l<t.length){var d=t.read_shift(2),p=t.read_shift(2),g=t.slice(t.l,t.l+p);switch(Bn(g,0),d){case 1:if(962023505!=g.read_shift(4))throw"Bad QPW9 BOF!";break;case 2:break t;case 8:break;case 10:for(var m=g.read_shift(4),y=(g.length-g.l)/m|0,b=0;b<m;++b){var x=g.l+y,_={};g.l+=2,_.numFmtId=g.read_shift(2),G[_.numFmtId]&&(_.z=G[_.numFmtId]),g.l=x,h.push(_)}break;case 1025:break;case 1026:break;case 1031:g.l+=12;while(g.l<g.length)s=g.read_shift(2),u=g.read_shift(1),i.push(g.read_shift(s,"cstr"));break;case 1032:break;case 1537:var w=g.read_shift(2);r={},n.dense&&(r["!data"]=[]),a.s.c=g.read_shift(2),a.e.c=g.read_shift(2),a.s.r=g.read_shift(4),a.e.r=g.read_shift(4),g.l+=4,g.l+2<g.length&&(s=g.read_shift(2),u=g.read_shift(1),o=0==s?"":g.read_shift(s,"cstr")),o||(o=Qn(w));break;case 1538:if(a.s.c>255||a.s.r>999999)break;a.e.c<a.s.c&&(a.e.c=a.s.c),a.e.r<a.s.r&&(a.e.r=a.s.r),r["!ref"]=ar(a),Rd(f,r,o);break;case 2561:l=g.read_shift(2),a.e.c<l&&(a.e.c=l),a.s.c>l&&(a.s.c=l),c=g.read_shift(4),a.s.r>c&&(a.s.r=c),c=g.read_shift(4),a.e.r<c&&(a.e.r=c);break;case 3073:c=g.read_shift(4),s=g.read_shift(4),a.s.r>c&&(a.s.r=c),a.e.r<c+s-1&&(a.e.r=c+s-1);var S=Qn(l);while(g.l<g.length){var E={t:"z"},T=g.read_shift(1),k=-1;128&T&&(k=g.read_shift(2));var C=64&T?g.read_shift(2)-1:0;switch(31&T){case 0:break;case 1:break;case 2:E={t:"n",v:g.read_shift(2)};break;case 3:E={t:"n",v:g.read_shift(2,"i")};break;case 4:E={t:"n",v:jr(g)};break;case 5:E={t:"n",v:g.read_shift(8,"f")};break;case 7:E={t:"s",v:i[u=g.read_shift(4)-1]};break;case 8:E={t:"n",v:g.read_shift(8,"f")},g.l+=2,g.l+=4,isNaN(E.v)&&(E={t:"e",v:15});break;default:throw"Unrecognized QPW cell type "+(31&T)}-1!=k&&(h[k-1]||{}).z&&(E.z=h[k-1].z);var M=0;if(32&T)switch(31&T){case 2:M=g.read_shift(2);break;case 3:M=g.read_shift(2,"i");break;case 7:M=g.read_shift(2);break;default:throw"Unsupported delta for QPW cell type "+(31&T)}if(n.sheetStubs||"z"!=E.t){var A=de(E);"n"==E.t&&E.z&&Pt(E.z)&&n.cellDates&&(A.v=se(E.v),A.t="number"==typeof A.v?"n":"d"),null!=r["!data"]?(r["!data"][c]||(r["!data"][c]=[]),r["!data"][c][l]=A):r[S+Xn(c)]=A}++c,--s;while(C-- >0&&s>=0){if(32&T)switch(31&T){case 2:E={t:"n",v:E.v+M&65535};break;case 3:E={t:"n",v:E.v+M&65535},E.v>32767&&(E.v-=65536);break;case 7:E={t:"s",v:i[u=u+M>>>0]};break;default:throw"Cannot apply delta for QPW cell type "+(31&T)}else switch(31&T){case 1:E={t:"z"};break;case 2:E={t:"n",v:g.read_shift(2)};break;case 7:E={t:"s",v:i[u=g.read_shift(4)-1]};break;default:throw"Cannot apply repeat for QPW cell type "+(31&T)}(n.sheetStubs||"z"!=E.t)&&(null!=r["!data"]?(r["!data"][c]||(r["!data"][c]=[]),r["!data"][c][l]=E):r[S+Xn(c)]=E),++c,--s}}break;case 3074:l=g.read_shift(2),c=g.read_shift(4);var I=W(g);null!=r["!data"]?(r["!data"][c]||(r["!data"][c]=[]),r["!data"][c][l]={t:"s",v:I}):r[Qn(l)+Xn(c)]={t:"s",v:I};break;default:break}t.l+=p}return f}return{sheet_to_wk1:i,book_to_wk3:o,to_workbook:e}}();var Wo=/^\s|\s$|[\t\n\r]/;function Vo(t,e){if(!e.bookSST)return"";var n=[Me];n[n.length]=qe("sst",null,{xmlns:tn[0],count:t.Count,uniqueCount:t.Unique});for(var r=0;r!=t.length;++r)if(null!=t[r]){var i=t[r],o="<si>";i.r?o+=i.r:(o+="<t",i.t||(i.t=""),"string"!==typeof i.t&&(i.t=String(i.t)),i.t.match(Wo)&&(o+=' xml:space="preserve"'),o+=">"+Pe(i.t)+"</t>"),o+="</si>",n[n.length]=o}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}function Yo(t){return[t.read_shift(4),t.read_shift(4)]}function Xo(t,e){return e||(e=Zn(8)),e.write_shift(4,t.Count),e.write_shift(4,t.Unique),e}var qo=Sr;function Ko(t){var e=Un();Hn(e,159,Xo(t));for(var n=0;n<t.length;++n)Hn(e,19,qo(t[n]));return Hn(e,160),e.end()}function Jo(t){if("undefined"!==typeof r)return r.utils.encode(a,t);for(var e=[],n=t.split(""),i=0;i<n.length;++i)e[i]=n[i].charCodeAt(0);return e}function Qo(t){var e,n,r,i,o,a,s=0,u=Jo(t),l=u.length+1;for(e=k(l),e[0]=u.length,n=1;n!=l;++n)e[n]=u[n-1];for(n=l-1;n>=0;--n)r=e[n],i=0===(16384&s)?0:1,o=s<<1&32767,a=i|o,s=a^r;return 52811^s}function ta(t,e){var n=["{\\rtf1\\ansi"];if(!t["!ref"])return n[0]+"}";for(var r,i=lr(t["!ref"]),o=null!=t["!data"],a=[],s=i.s.r;s<=i.e.r;++s){n.push("\\trowd\\trautofit1");for(var u=i.s.c;u<=i.e.c;++u)n.push("\\cellx"+(u+1));for(n.push("\\pard\\intbl"),o&&(a=t["!data"][s]||[]),u=i.s.c;u<=i.e.c;++u){var l=ir({r:s,c:u});r=o?a[u]:t[l],r&&(null!=r.v||r.f&&!r.F)?(n.push(" "+(r.w||(fr(r),r.w)||"").replace(/[\r\n]/g,"\\par ")),n.push("\\cell")):n.push(" \\cell")}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}function ea(t){for(var e=0,n=1;3!=e;++e)n=256*n+(t[e]>255?255:t[e]<0?0:t[e]);return n.toString(16).toUpperCase().slice(1)}var na=6,ra=na;function ia(t){return Math.floor((t+Math.round(128/ra)/256)*ra)}function oa(t){return Math.floor((t-5)/ra*100+.5)/100}function aa(t){return Math.round((t*ra+5)/ra*256)/256}function sa(t){t.width?(t.wpx=ia(t.width),t.wch=oa(t.wpx),t.MDW=ra):t.wpx?(t.wch=oa(t.wpx),t.width=aa(t.wch),t.MDW=ra):"number"==typeof t.wch&&(t.width=aa(t.wch),t.wpx=ia(t.width),t.MDW=ra),t.customWidth&&delete t.customWidth}var ua=96,la=ua;function ca(t){return 96*t/la}function fa(t){return t*la/96}function ha(t){var e=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=t[r]&&(e[e.length]=qe("numFmt",null,{numFmtId:r,formatCode:Pe(t[r])}))})),1===e.length?"":(e[e.length]="</numFmts>",e[0]=qe("numFmts",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function da(t){var e=[];return e[e.length]=qe("cellXfs",null),t.forEach((function(t){e[e.length]=qe("xf",null,t)})),e[e.length]="</cellXfs>",2===e.length?"":(e[0]=qe("cellXfs",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function pa(t,e){var n,r=[Me,qe("styleSheet",null,{xmlns:tn[0],"xmlns:vt":Qe.vt})];return t.SSF&&null!=(n=ha(t.SSF))&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=da(e.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function ga(t,e){var n=t.read_shift(2),r=yr(t,e-2);return[n,r]}function va(t,e,n){n||(n=Zn(6+4*e.length)),n.write_shift(2,t),br(e,n);var r=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),r}function ma(t,e,n){var r={};r.sz=t.read_shift(2)/20;var i=Vr(t,2,n);i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1);var o=t.read_shift(2);switch(700===o&&(r.bold=1),t.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript";break}var a=t.read_shift(1);0!=a&&(r.underline=a);var s=t.read_shift(1);s>0&&(r.family=s);var u=t.read_shift(1);switch(u>0&&(r.charset=u),t.l++,r.color=Gr(t,8),t.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor";break}return r.name=yr(t,e-21),r}function ya(t,e){e||(e=Zn(153)),e.write_shift(2,20*t.sz),Yr(t,e),e.write_shift(2,t.bold?700:400);var n=0;"superscript"==t.vertAlign?n=1:"subscript"==t.vertAlign&&(n=2),e.write_shift(2,n),e.write_shift(1,t.underline||0),e.write_shift(1,t.family||0),e.write_shift(1,t.charset||0),e.write_shift(1,0),Wr(t.color,e);var r=0;return"major"==t.scheme&&(r=1),"minor"==t.scheme&&(r=2),e.write_shift(1,r),br(t.name,e),e.length>e.l?e.slice(0,e.l):e}var ba,xa=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],_a=zn;function wa(t,e){e||(e=Zn(84)),ba||(ba=te(xa));var n=ba[t.patternType];null==n&&(n=40),e.write_shift(4,n);var r=0;if(40!=n)for(Wr({auto:1},e),Wr({auto:1},e);r<12;++r)e.write_shift(4,0);else{for(;r<4;++r)e.write_shift(4,0);for(;r<12;++r)e.write_shift(4,0)}return e.length>e.l?e.slice(0,e.l):e}function Sa(t,e){var n=t.l+e,r=t.read_shift(2),i=t.read_shift(2);return t.l=n,{ixfe:r,numFmtId:i}}function Ea(t,e,n){n||(n=Zn(16)),n.write_shift(2,e||0),n.write_shift(2,t.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0);var r=0;return n.write_shift(1,r),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function Ta(t,e){return e||(e=Zn(10)),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(4,0),e}var ka=zn;function Ca(t,e){return e||(e=Zn(51)),e.write_shift(1,0),Ta(null,e),Ta(null,e),Ta(null,e),Ta(null,e),Ta(null,e),e.length>e.l?e.slice(0,e.l):e}function Ma(t,e){return e||(e=Zn(52)),e.write_shift(4,t.xfId),e.write_shift(2,1),e.write_shift(1,+t.builtinId),e.write_shift(1,0),Pr(t.name||"",e),e.length>e.l?e.slice(0,e.l):e}function Aa(t,e,n){var r=Zn(2052);return r.write_shift(4,t),Pr(e,r),Pr(n,r),r.length>r.l?r.slice(0,r.l):r}function Ia(t,e){if(e){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(t){for(var r=t[0];r<=t[1];++r)null!=e[r]&&++n})),0!=n&&(Hn(t,615,mr(n)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=e[r]&&Hn(t,44,va(r,e[r]))})),Hn(t,616))}}function Oa(t){var e=1;0!=e&&(Hn(t,611,mr(e)),Hn(t,43,ya({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Hn(t,612))}function Da(t){var e=2;0!=e&&(Hn(t,603,mr(e)),Hn(t,45,wa({patternType:"none"})),Hn(t,45,wa({patternType:"gray125"})),Hn(t,604))}function Pa(t){var e=1;0!=e&&(Hn(t,613,mr(e)),Hn(t,46,Ca({})),Hn(t,614))}function La(t){var e=1;Hn(t,626,mr(e)),Hn(t,47,Ea({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Hn(t,627)}function Na(t,e){Hn(t,617,mr(e.length)),e.forEach((function(e){Hn(t,47,Ea(e,0))})),Hn(t,618)}function Ra(t){var e=1;Hn(t,619,mr(e)),Hn(t,48,Ma({xfId:0,builtinId:0,name:"Normal"})),Hn(t,620)}function ja(t){var e=0;Hn(t,505,mr(e)),Hn(t,506)}function Fa(t){var e=0;Hn(t,508,Aa(e,"TableStyleMedium9","PivotStyleMedium4")),Hn(t,509)}function Ba(){}function za(t,e){var n=Un();return Hn(n,278),Ia(n,t.SSF),Oa(n,t),Da(n,t),Pa(n,t),La(n,t),Na(n,e.cellXfs),Ra(n,t),ja(n,t),Fa(n,t),Ba(n,t),Hn(n,279),n.end()}function Za(t,e){if(e&&e.themeXLSX)return e.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var n=[Me];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function Ua(t,e){return{flags:t.read_shift(4),version:t.read_shift(4),name:yr(t,e-8)}}function Ha(t){var e=Zn(12+2*t.name.length);return e.write_shift(4,t.flags),e.write_shift(4,t.version),br(t.name,e),e.slice(0,e.l)}function $a(t){var e=[],n=t.read_shift(4);while(n-- >0)e.push([t.read_shift(4),t.read_shift(4)]);return e}function Ga(t){var e=Zn(4+8*t.length);e.write_shift(4,t.length);for(var n=0;n<t.length;++n)e.write_shift(4,t[n][0]),e.write_shift(4,t[n][1]);return e}function Wa(t,e){var n=Zn(8+2*e.length);return n.write_shift(4,t),br(e,n),n.slice(0,n.l)}function Va(t){return t.l+=4,0!=t.read_shift(4)}function Ya(t,e){var n=Zn(8);return n.write_shift(4,t),n.write_shift(4,e?1:0),n}function Xa(){var t=Un();return Hn(t,332),Hn(t,334,mr(1)),Hn(t,335,Ha({name:"XLDAPR",version:12e4,flags:3496657072})),Hn(t,336),Hn(t,339,Wa(1,"XLDAPR")),Hn(t,52),Hn(t,35,mr(514)),Hn(t,4096,mr(0)),Hn(t,4097,Wi(1)),Hn(t,36),Hn(t,53),Hn(t,340),Hn(t,337,Ya(1,!0)),Hn(t,51,Ga([[1,0]])),Hn(t,338),Hn(t,333),t.end()}function qa(){var t=[Me];return t.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n  <metadataTypes count="1">\n    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n  </metadataTypes>\n  <futureMetadata name="XLDAPR" count="1">\n    <bk>\n      <extLst>\n        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n        </ext>\n      </extLst>\n    </bk>\n  </futureMetadata>\n  <cellMetadata count="1">\n    <bk>\n      <rc t="1" v="0"/>\n    </bk>\n  </cellMetadata>\n</metadata>'),t.join("")}function Ka(t){var e={};e.i=t.read_shift(4);var n={};n.r=t.read_shift(4),n.c=t.read_shift(4),e.r=ir(n);var r=t.read_shift(1);return 2&r&&(e.l="1"),8&r&&(e.a="1"),e}function Ja(t,e,n){var r=[21600,21600],i=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),o=[qe("xml",null,{"xmlns:v":en.v,"xmlns:o":en.o,"xmlns:x":en.x,"xmlns:mv":en.mv}).replace(/\/>/,">"),qe("o:shapelayout",qe("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"})],a=65536*t,s=e||[];return s.length>0&&o.push(qe("v:shapetype",[qe("v:stroke",null,{joinstyle:"miter"}),qe("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202",coordsize:r.join(","),"o:spt":202,path:i})),s.forEach((function(t){++a,o.push(Qa(t,a))})),o.push("</xml>"),o.join("")}function Qa(t,e,n){var r=rr(t[0]),i={color2:"#BEFF82",type:"gradient"};"gradient"==i.type&&(i.angle="-180");var o="gradient"==i.type?qe("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,a=qe("v:fill",o,i),s={on:"t",obscured:"t"};return["<v:shape"+Xe({id:"_x0000_s"+e,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(t[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",a,qe("v:shadow",null,s),qe("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Ye("x:Anchor",[r.c+1,0,r.r+1,0,r.c+3,20,r.r+5,20].join(",")),Ye("x:AutoFill","False"),Ye("x:Row",String(r.r)),Ye("x:Column",String(r.c)),t[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"].join("")}function ts(t){var e=[Me,qe("comments",null,{xmlns:tn[0]})],n=[];return e.push("<authors>"),t.forEach((function(t){t[1].forEach((function(t){var r=Pe(t.a);-1==n.indexOf(r)&&(n.push(r),e.push("<author>"+r+"</author>")),t.T&&t.ID&&-1==n.indexOf("tc="+t.ID)&&(n.push("tc="+t.ID),e.push("<author>tc="+t.ID+"</author>"))}))})),0==n.length&&(n.push("SheetJ5"),e.push("<author>SheetJ5</author>")),e.push("</authors>"),e.push("<commentList>"),t.forEach((function(t){var r=0,i=[],o=0;if(t[1][0]&&t[1][0].T&&t[1][0].ID&&(r=n.indexOf("tc="+t[1][0].ID)),t[1].forEach((function(t){t.a&&(r=n.indexOf(Pe(t.a))),t.T&&++o,i.push(null==t.t?"":Pe(t.t))})),0===o)t[1].forEach((function(r){e.push('<comment ref="'+t[0]+'" authorId="'+n.indexOf(Pe(r.a))+'"><text>'),e.push(Ye("t",null==r.t?"":Pe(r.t))),e.push("</text></comment>")}));else{t[1][0]&&t[1][0].T&&t[1][0].ID&&(r=n.indexOf("tc="+t[1][0].ID)),e.push('<comment ref="'+t[0]+'" authorId="'+r+'"><text>');for(var a="Comment:\n    "+i[0]+"\n",s=1;s<i.length;++s)a+="Reply:\n    "+i[s]+"\n";e.push(Ye("t",Pe(a))),e.push("</text></comment>")}})),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function es(t,e,n){var r=[Me,qe("ThreadedComments",null,{xmlns:Qe.TCMNT}).replace(/[\/]>/,">")];return t.forEach((function(t){var i="";(t[1]||[]).forEach((function(o,a){if(o.T){o.a&&-1==e.indexOf(o.a)&&e.push(o.a);var s={ref:t[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==a?i=s.id:s.parentId=i,o.ID=s.id,o.a&&(s.personId="{54EE7950-7262-4200-6969-"+("000000000000"+e.indexOf(o.a)).slice(-12)+"}"),r.push(qe("threadedComment",Ye("text",o.t||""),s))}else delete o.ID}))})),r.push("</ThreadedComments>"),r.join("")}function ns(t){var e=[Me,qe("personList",null,{xmlns:Qe.TCMNT,"xmlns:x":tn[0]}).replace(/[\/]>/,">")];return t.forEach((function(t,n){e.push(qe("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:t,providerId:"None"}))})),e.push("</personList>"),e.join("")}function rs(t){var e={};e.iauthor=t.read_shift(4);var n=Zr(t,16);return e.rfx=n.s,e.ref=ir(n.s),t.l+=16,e}function is(t,e){return null==e&&(e=Zn(36)),e.write_shift(4,t[1].iauthor),Ur(t[0],e),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e}var os=yr;function as(t){return br(t.slice(0,54))}function ss(t){var e=Un(),n=[];return Hn(e,628),Hn(e,630),t.forEach((function(t){t[1].forEach((function(t){n.indexOf(t.a)>-1||(n.push(t.a.slice(0,54)),Hn(e,632,as(t.a)),t.T&&t.ID&&-1==n.indexOf("tc="+t.ID)&&(n.push("tc="+t.ID),Hn(e,632,as("tc="+t.ID))))}))})),Hn(e,631),Hn(e,633),t.forEach((function(t){t[1].forEach((function(r){var i=-1;r.ID&&(i=n.indexOf("tc="+r.ID)),-1==i&&t[1][0].T&&t[1][0].ID&&(i=n.indexOf("tc="+t[1][0].ID)),-1==i&&(i=n.indexOf(r.a)),r.iauthor=i;var o={s:rr(t[0]),e:rr(t[0])};Hn(e,635,is([o,r])),r.t&&r.t.length>0&&Hn(e,637,Tr(r)),Hn(e,636),delete r.iauthor}))})),Hn(e,634),Hn(e,629),e.end()}function us(t,e){e.FullPaths.forEach((function(n,r){if(0!=r){var i=n.replace(/^[\/]*[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==i.slice(-1)&&Xt.utils.cfb_add(t,i,e.FileIndex[r].content)}}))}var ls=["xlsb","xlsm","xlam","biff8","xla"];var cs=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,e={r:0,c:0};function n(t,n,r,i){var o=!1,a=!1;0==r.length?a=!0:"["==r.charAt(0)&&(a=!0,r=r.slice(1,-1)),0==i.length?o=!0:"["==i.charAt(0)&&(o=!0,i=i.slice(1,-1));var s=r.length>0?0|parseInt(r,10):0,u=i.length>0?0|parseInt(i,10):0;return o?u+=e.c:--u,a?s+=e.r:--s,n+(o?"":"$")+Qn(u)+(a?"":"$")+Xn(s)}return function(r,i){return e=i,r.replace(t,n)}}(),fs=/(^|[^._A-Z0-9])(\$?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])(\$?)(\d{1,7})(?![_.\(A-Za-z0-9])/g;try{fs=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g}catch($d){}var hs=function(){return function(t,e){return t.replace(fs,(function(t,n,r,i,o,a){var s=Jn(i)-(r?0:e.c),u=Yn(a)-(o?0:e.r),l="$"==o?u+1:0==u?"":"["+u+"]",c="$"==r?s+1:0==s?"":"["+s+"]";return n+"R"+l+"C"+c}))}}();function ds(t,e){return t.replace(fs,(function(t,n,r,i,o,a){return n+("$"==r?r+i:Qn(Jn(i)+e.c))+("$"==o?o+a:Xn(Yn(a)+e.r))}))}function ps(t){return 1!=t.length}function gs(t){t.l+=1}function vs(t,e){var n=t.read_shift(1==e?1:2);return[16383&n,n>>14&1,n>>15&1]}function ms(t,e,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return ys(t,e,n);12==n.biff&&(r=4)}var i=t.read_shift(r),o=t.read_shift(r),a=vs(t,2),s=vs(t,2);return{s:{r:i,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function ys(t){var e=vs(t,2),n=vs(t,2),r=t.read_shift(1),i=t.read_shift(1);return{s:{r:e[0],c:r,cRel:e[1],rRel:e[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function bs(t,e,n){if(n.biff<8)return ys(t,e,n);var r=t.read_shift(12==n.biff?4:2),i=t.read_shift(12==n.biff?4:2),o=vs(t,2),a=vs(t,2);return{s:{r:r,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}function xs(t,e,n){if(n&&n.biff>=2&&n.biff<=5)return _s(t,e,n);var r=t.read_shift(n&&12==n.biff?4:2),i=vs(t,2);return{r:r,c:i[0],cRel:i[1],rRel:i[2]}}function _s(t){var e=vs(t,2),n=t.read_shift(1);return{r:e[0],c:n,cRel:e[1],rRel:e[2]}}function ws(t){var e=t.read_shift(2),n=t.read_shift(2);return{r:e,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function Ss(t,e,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return Es(t,e,n);var i=t.read_shift(r>=12?4:2),o=t.read_shift(2),a=(16384&o)>>14,s=(32768&o)>>15;if(o&=16383,1==s)while(i>524287)i-=1048576;if(1==a)while(o>8191)o-=16384;return{r:i,c:o,cRel:a,rRel:s}}function Es(t){var e=t.read_shift(2),n=t.read_shift(1),r=(32768&e)>>15,i=(16384&e)>>14;return e&=16383,1==r&&e>=8192&&(e-=16384),1==i&&n>=128&&(n-=256),{r:e,c:n,cRel:i,rRel:r}}function Ts(t,e,n){var r=(96&t[t.l++])>>5,i=ms(t,n.biff>=2&&n.biff<=5?6:8,n);return[r,i]}function ks(t,e,n){var r=(96&t[t.l++])>>5,i=t.read_shift(2,"i"),o=8;if(n)switch(n.biff){case 5:t.l+=12,o=6;break;case 12:o=12;break}var a=ms(t,o,n);return[r,i,a]}function Cs(t,e,n){var r=(96&t[t.l++])>>5;return t.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}function Ms(t,e,n){var r=(96&t[t.l++])>>5,i=t.read_shift(2),o=8;if(n)switch(n.biff){case 5:t.l+=12,o=6;break;case 12:o=12;break}return t.l+=o,[r,i]}function As(t,e,n){var r=(96&t[t.l++])>>5,i=bs(t,e-1,n);return[r,i]}function Is(t,e,n){var r=(96&t[t.l++])>>5;return t.l+=2==n.biff?6:12==n.biff?14:7,[r]}function Os(t){var e=1&t[t.l+1],n=1;return t.l+=4,[e,n]}function Ds(t,e,n){t.l+=2;for(var r=t.read_shift(n&&2==n.biff?1:2),i=[],o=0;o<=r;++o)i.push(t.read_shift(n&&2==n.biff?1:2));return i}function Ps(t,e,n){var r=255&t[t.l+1]?1:0;return t.l+=2,[r,t.read_shift(n&&2==n.biff?1:2)]}function Ls(t,e,n){var r=255&t[t.l+1]?1:0;return t.l+=2,[r,t.read_shift(n&&2==n.biff?1:2)]}function Ns(t){var e=255&t[t.l+1]?1:0;return t.l+=2,[e,t.read_shift(2)]}function Rs(t,e,n){var r=255&t[t.l+1]?1:0;return t.l+=n&&2==n.biff?3:4,[r]}function js(t){var e=t.read_shift(1),n=t.read_shift(1);return[e,n]}function Fs(t){return t.read_shift(2),js(t,2)}function Bs(t){return t.read_shift(2),js(t,2)}function zs(t,e,n){var r=(96&t[t.l])>>5;t.l+=1;var i=xs(t,0,n);return[r,i]}function Zs(t,e,n){var r=(96&t[t.l])>>5;t.l+=1;var i=Ss(t,0,n);return[r,i]}function Us(t,e,n){var r=(96&t[t.l])>>5;t.l+=1;var i=t.read_shift(2);n&&5==n.biff&&(t.l+=12);var o=xs(t,0,n);return[r,i,o]}function Hs(t,e,n){var r=(96&t[t.l])>>5;t.l+=1;var i=t.read_shift(n&&n.biff<=3?1:2);return[fl[i],cl[i],r]}function $s(t,e,n){var r=t[t.l++],i=t.read_shift(1),o=n&&n.biff<=3?[88==r?-1:0,t.read_shift(1)]:Gs(t);return[i,(0===o[0]?cl:ll)[o[1]]]}function Gs(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}function Ws(t,e,n){t.l+=n&&2==n.biff?3:4}function Vs(t,e,n){if(t.l++,n&&12==n.biff)return[t.read_shift(4,"i"),0];var r=t.read_shift(2),i=t.read_shift(n&&2==n.biff?1:2);return[r,i]}function Ys(t){return t.l++,ci[t.read_shift(1)]}function Xs(t){return t.l++,t.read_shift(2)}function qs(t){return t.l++,0!==t.read_shift(1)}function Ks(t){return t.l++,Hr(t,8)}function Js(t,e,n){return t.l++,Yi(t,e-1,n)}function Qs(t,e){var n=[t.read_shift(1)];if(12==e)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2;break}switch(n[0]){case 4:n[1]=Hi(t,1)?"TRUE":"FALSE",12!=e&&(t.l+=7);break;case 37:case 16:n[1]=ci[t[t.l]],t.l+=12==e?4:8;break;case 0:t.l+=8;break;case 1:n[1]=Hr(t,8);break;case 2:n[1]=Ji(t,0,{biff:e>0&&e<8?2:e});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function tu(t,e,n){for(var r=t.read_shift(12==n.biff?4:2),i=[],o=0;o!=r;++o)i.push((12==n.biff?Zr:io)(t,8));return i}function eu(t,e,n){var r=0,i=0;12==n.biff?(r=t.read_shift(4),i=t.read_shift(4)):(i=1+t.read_shift(1),r=1+t.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--i&&(i=256));for(var o=0,a=[];o!=r&&(a[o]=[]);++o)for(var s=0;s!=i;++s)a[o][s]=Qs(t,n.biff);return a}function nu(t,e,n){var r=t.read_shift(1)>>>5&3,i=!n||n.biff>=8?4:2,o=t.read_shift(i);switch(n.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12;break}return[r,0,o]}function ru(t,e,n){if(5==n.biff)return iu(t,e,n);var r=t.read_shift(1)>>>5&3,i=t.read_shift(2),o=t.read_shift(4);return[r,i,o]}function iu(t){var e=t.read_shift(1)>>>5&3,n=t.read_shift(2,"i");t.l+=8;var r=t.read_shift(2);return t.l+=12,[e,n,r]}function ou(t,e,n){var r=t.read_shift(1)>>>5&3;t.l+=n&&2==n.biff?3:4;var i=t.read_shift(n&&2==n.biff?1:2);return[r,i]}function au(t,e,n){var r=t.read_shift(1)>>>5&3,i=t.read_shift(n&&2==n.biff?1:2);return[r,i]}function su(t,e,n){var r=t.read_shift(1)>>>5&3;return t.l+=4,n.biff<8&&t.l--,12==n.biff&&(t.l+=2),[r]}function uu(t,e,n){var r=(96&t[t.l++])>>5,i=t.read_shift(2),o=4;if(n)switch(n.biff){case 5:o=15;break;case 12:o=6;break}return t.l+=o,[r,i]}var lu=zn,cu=zn,fu=zn;function hu(t,e,n){return t.l+=2,[ws(t,4,n)]}function du(t){return t.l+=6,[]}var pu=hu,gu=du,vu=du,mu=hu;function yu(t){return t.l+=2,[Gi(t),1&t.read_shift(2)]}var bu=hu,xu=yu,_u=du,wu=hu,Su=hu,Eu=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Tu(t){t.l+=2;var e=t.read_shift(2),n=t.read_shift(2),r=t.read_shift(4),i=t.read_shift(2),o=t.read_shift(2),a=Eu[n>>2&31];return{ixti:e,coltype:3&n,rt:a,idx:r,c:i,C:o}}function ku(t){return t.l+=2,[t.read_shift(4)]}function Cu(t,e,n){return t.l+=5,t.l+=2,t.l+=2==n.biff?1:4,["PTGSHEET"]}function Mu(t,e,n){return t.l+=2==n.biff?4:5,["PTGENDSHEET"]}function Au(t){var e=t.read_shift(1)>>>5&3,n=t.read_shift(2);return[e,n]}function Iu(t){var e=t.read_shift(1)>>>5&3,n=t.read_shift(2);return[e,n]}function Ou(t){return t.l+=4,[0,0]}var Du={1:{n:"PtgExp",f:Vs},2:{n:"PtgTbl",f:fu},3:{n:"PtgAdd",f:gs},4:{n:"PtgSub",f:gs},5:{n:"PtgMul",f:gs},6:{n:"PtgDiv",f:gs},7:{n:"PtgPower",f:gs},8:{n:"PtgConcat",f:gs},9:{n:"PtgLt",f:gs},10:{n:"PtgLe",f:gs},11:{n:"PtgEq",f:gs},12:{n:"PtgGe",f:gs},13:{n:"PtgGt",f:gs},14:{n:"PtgNe",f:gs},15:{n:"PtgIsect",f:gs},16:{n:"PtgUnion",f:gs},17:{n:"PtgRange",f:gs},18:{n:"PtgUplus",f:gs},19:{n:"PtgUminus",f:gs},20:{n:"PtgPercent",f:gs},21:{n:"PtgParen",f:gs},22:{n:"PtgMissArg",f:gs},23:{n:"PtgStr",f:Js},26:{n:"PtgSheet",f:Cu},27:{n:"PtgEndSheet",f:Mu},28:{n:"PtgErr",f:Ys},29:{n:"PtgBool",f:qs},30:{n:"PtgInt",f:Xs},31:{n:"PtgNum",f:Ks},32:{n:"PtgArray",f:Is},33:{n:"PtgFunc",f:Hs},34:{n:"PtgFuncVar",f:$s},35:{n:"PtgName",f:nu},36:{n:"PtgRef",f:zs},37:{n:"PtgArea",f:Ts},38:{n:"PtgMemArea",f:ou},39:{n:"PtgMemErr",f:lu},40:{n:"PtgMemNoMem",f:cu},41:{n:"PtgMemFunc",f:au},42:{n:"PtgRefErr",f:su},43:{n:"PtgAreaErr",f:Cs},44:{n:"PtgRefN",f:Zs},45:{n:"PtgAreaN",f:As},46:{n:"PtgMemAreaN",f:Au},47:{n:"PtgMemNoMemN",f:Iu},57:{n:"PtgNameX",f:ru},58:{n:"PtgRef3d",f:Us},59:{n:"PtgArea3d",f:ks},60:{n:"PtgRefErr3d",f:uu},61:{n:"PtgAreaErr3d",f:Ms},255:{}},Pu={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Lu={1:{n:"PtgElfLel",f:yu},2:{n:"PtgElfRw",f:wu},3:{n:"PtgElfCol",f:pu},6:{n:"PtgElfRwV",f:Su},7:{n:"PtgElfColV",f:mu},10:{n:"PtgElfRadical",f:bu},11:{n:"PtgElfRadicalS",f:_u},13:{n:"PtgElfColS",f:gu},15:{n:"PtgElfColSV",f:vu},16:{n:"PtgElfRadicalLel",f:xu},25:{n:"PtgList",f:Tu},29:{n:"PtgSxName",f:ku},255:{}},Nu={0:{n:"PtgAttrNoop",f:Ou},1:{n:"PtgAttrSemi",f:Rs},2:{n:"PtgAttrIf",f:Ls},4:{n:"PtgAttrChoose",f:Ds},8:{n:"PtgAttrGoto",f:Ps},16:{n:"PtgAttrSum",f:Ws},32:{n:"PtgAttrBaxcel",f:Os},33:{n:"PtgAttrBaxcel",f:Os},64:{n:"PtgAttrSpace",f:Fs},65:{n:"PtgAttrSpaceSemi",f:Bs},128:{n:"PtgAttrIfError",f:Ns},255:{}};function Ru(t,e,n,r){if(r.biff<8)return zn(t,e);for(var i=t.l+e,o=[],a=0;a!==n.length;++a)switch(n[a][0]){case"PtgArray":n[a][1]=eu(t,0,r),o.push(n[a][1]);break;case"PtgMemArea":n[a][2]=tu(t,n[a][1],r),o.push(n[a][2]);break;case"PtgExp":r&&12==r.biff&&(n[a][1][1]=t.read_shift(4),o.push(n[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[a][0];default:break}return e=i-t.l,0!==e&&o.push(zn(t,e)),o}function ju(t,e,n){var r,i,o=t.l+e,a=[];while(o!=t.l)e=o-t.l,i=t[t.l],r=Du[i]||Du[Pu[i]],24!==i&&25!==i||(r=(24===i?Lu:Nu)[t[t.l+1]]),r&&r.f?a.push([r.n,r.f(t,e,n)]):zn(t,e);return a}function Fu(t){for(var e=[],n=0;n<t.length;++n){for(var r=t[n],i=[],o=0;o<r.length;++o){var a=r[o];if(a)switch(a[0]){case 2:i.push('"'+a[1].replace(/"/g,'""')+'"');break;default:i.push(a[1])}else i.push("")}e.push(i.join(","))}return e.join(";")}var Bu={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function zu(t,e){var n=t.lastIndexOf("!"),r=e.lastIndexOf("!");return-1==n&&-1==r?t+":"+e:n>0&&r>0&&t.slice(0,n).toLowerCase()==e.slice(0,r).toLowerCase()?t+":"+e.slice(r+1):(console.error("Cannot hydrate range",t,e),t+":"+e)}function Zu(t,e,n){if(!t)return"SH33TJSERR0";if(n.biff>8&&(!t.XTI||!t.XTI[e]))return t.SheetNames[e];if(!t.XTI)return"SH33TJSERR6";var r=t.XTI[e];if(n.biff<8)return e>1e4&&(e-=65536),e<0&&(e=-e),0==e?"":t.XTI[e-1];if(!r)return"SH33TJSERR1";var i="";if(n.biff>8)switch(t[r[0]][0]){case 357:return i=-1==r[1]?"#REF":t.SheetNames[r[1]],r[1]==r[2]?i:i+":"+t.SheetNames[r[2]];case 358:return null!=n.SID?t.SheetNames[n.SID]:"SH33TJSSAME"+t[r[0]][0];case 355:default:return"SH33TJSSRC"+t[r[0]][0]}switch(t[r[0]][0][0]){case 1025:return i=-1==r[1]?"#REF":t.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+t.SheetNames[r[2]];case 14849:return t[r[0]].slice(1).map((function(t){return t.Name})).join(";;");default:return t[r[0]][0][3]?(i=-1==r[1]?"#REF":t[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+t[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Uu(t,e,n){var r=Zu(t,e,n);return"#REF"==r?r:ur(r,n)}function Hu(t,e,n,r,i){var o,a,s,u,l=i&&i.biff||8,c={s:{c:0,r:0},e:{c:0,r:0}},f=[],h=0,d=0,p="";if(!t[0]||!t[0][0])return"";for(var g=-1,v="",m=0,y=t[0].length;m<y;++m){var b=t[0][m];switch(b[0]){case"PtgUminus":f.push("-"+f.pop());break;case"PtgUplus":f.push("+"+f.pop());break;case"PtgPercent":f.push(f.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(o=f.pop(),a=f.pop(),g>=0){switch(t[0][g][1][0]){case 0:v=pe(" ",t[0][g][1][1]);break;case 1:v=pe("\r",t[0][g][1][1]);break;default:if(v="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][g][1][0])}a+=v,g=-1}f.push(a+Bu[b[0]]+o);break;case"PtgIsect":o=f.pop(),a=f.pop(),f.push(a+" "+o);break;case"PtgUnion":o=f.pop(),a=f.pop(),f.push(a+","+o);break;case"PtgRange":o=f.pop(),a=f.pop(),f.push(zu(a,o));break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":s=$n(b[1][1],c,i),f.push(Wn(s,l));break;case"PtgRefN":s=n?$n(b[1][1],n,i):b[1][1],f.push(Wn(s,l));break;case"PtgRef3d":h=b[1][1],s=$n(b[1][2],c,i),p=Uu(r,h,i);f.push(p+"!"+Wn(s,l));break;case"PtgFunc":case"PtgFuncVar":var x=b[1][0],_=b[1][1];x||(x=0),x&=127;var w=0==x?[]:f.slice(-x);f.length-=x,"User"===_&&(_=w.shift()),f.push(_+"("+w.join(",")+")");break;case"PtgBool":f.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":f.push(b[1]);break;case"PtgNum":f.push(String(b[1]));break;case"PtgStr":f.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgErr":f.push(b[1]);break;case"PtgAreaN":u=Gn(b[1][1],n?{s:n}:c,i),f.push(Vn(u,i));break;case"PtgArea":u=Gn(b[1][1],c,i),f.push(Vn(u,i));break;case"PtgArea3d":h=b[1][1],u=b[1][2],p=Uu(r,h,i),f.push(p+"!"+Vn(u,i));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=b[1][2];var S=(r.names||[])[d-1]||(r[0]||[])[d],E=S?S.Name:"SH33TJSNAME"+String(d);E&&"_xlfn."==E.slice(0,6)&&!i.xlfn&&(E=E.slice(6)),f.push(E);break;case"PtgNameX":var T,k=b[1][1];if(d=b[1][2],!(i.biff<=5)){var C="";if(14849==((r[k]||[])[0]||[])[0]||(1025==((r[k]||[])[0]||[])[0]?r[k][d]&&r[k][d].itab>0&&(C=r.SheetNames[r[k][d].itab-1]+"!"):C=r.SheetNames[d-1]+"!"),r[k]&&r[k][d])C+=r[k][d].Name;else if(r[0]&&r[0][d])C+=r[0][d].Name;else{var M=(Zu(r,k,i)||"").split(";;");M[d-1]?C=M[d-1]:C+="SH33TJSERRX"}f.push(C);break}k<0&&(k=-k),r[k]&&(T=r[k][d]),T||(T={Name:"SH33TJSERRY"}),f.push(T.Name);break;case"PtgParen":var A="(",I=")";if(g>=0){switch(v="",t[0][g][1][0]){case 2:A=pe(" ",t[0][g][1][1])+A;break;case 3:A=pe("\r",t[0][g][1][1])+A;break;case 4:I=pe(" ",t[0][g][1][1])+I;break;case 5:I=pe("\r",t[0][g][1][1])+I;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][g][1][0])}g=-1}f.push(A+f.pop()+I);break;case"PtgRefErr":f.push("#REF!");break;case"PtgRefErr3d":f.push("#REF!");break;case"PtgExp":s={c:b[1][1],r:b[1][0]};var O={c:n.c,r:n.r};if(r.sharedf[ir(s)]){var D=r.sharedf[ir(s)];f.push(Hu(D,c,O,r,i))}else{var P=!1;for(o=0;o!=r.arrayf.length;++o)if(a=r.arrayf[o],!(s.c<a[0].s.c||s.c>a[0].e.c)&&!(s.r<a[0].s.r||s.r>a[0].e.r)){f.push(Hu(a[1],c,O,r,i)),P=!0;break}P||f.push(b[1])}break;case"PtgArray":f.push("{"+Fu(b[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=m;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":f.push("");break;case"PtgAreaErr":f.push("#REF!");break;case"PtgAreaErr3d":f.push("#REF!");break;case"PtgList":f.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(b));default:throw new Error("Unrecognized Formula Token: "+String(b))}var L=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(3!=i.biff&&g>=0&&-1==L.indexOf(t[0][m][0])){b=t[0][g];var N=!0;switch(b[1][0]){case 4:N=!1;case 0:v=pe(" ",b[1][1]);break;case 5:N=!1;case 1:v=pe("\r",b[1][1]);break;default:if(v="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}f.push((N?v:"")+f.pop()+(N?"":v)),g=-1}}if(f.length>1&&i.WTF)throw new Error("bad formula stack");return"TRUE"==f[0]||"FALSE"!=f[0]&&f[0]}function $u(t){if(null==t){var e=Zn(8);return e.write_shift(1,3),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,65535),e}return $r("number"==typeof t?t:0)}function Gu(t,e,n,r,i){var o=no(e,n,i),a=$u(t.v),s=Zn(6),u=33;s.write_shift(2,u),s.write_shift(4,0);for(var l=Zn(t.bf.length),c=0;c<t.bf.length;++c)l[c]=t.bf[c];var f=D([o,a,s,l]);return f}function Wu(t,e,n){var r=t.read_shift(4),i=ju(t,r,n),o=t.read_shift(4),a=o>0?Ru(t,o,i,n):null;return[i,a]}var Vu=Wu,Yu=Wu,Xu=Wu,qu=Wu;function Ku(t){if((0|t)==t&&t<Math.pow(2,16)&&t>=0){var e=Zn(11);return e.write_shift(4,3),e.write_shift(1,30),e.write_shift(2,t),e.write_shift(4,0),e}var n=Zn(17);return n.write_shift(4,11),n.write_shift(1,31),n.write_shift(8,t),n.write_shift(4,0),n}function Ju(t){var e=Zn(10);return e.write_shift(4,2),e.write_shift(1,28),e.write_shift(1,t),e.write_shift(4,0),e}function Qu(t){var e=Zn(10);return e.write_shift(4,2),e.write_shift(1,29),e.write_shift(1,t?1:0),e.write_shift(4,0),e}function tl(t){var e=Zn(7);e.write_shift(4,3+2*t.length),e.write_shift(1,23),e.write_shift(2,t.length);var n=Zn(2*t.length);n.write_shift(2*t.length,t,"utf16le");var r=Zn(4);return r.write_shift(4,0),D([e,n,r])}function el(t){var e=rr(t),n=Zn(15);return n.write_shift(4,7),n.write_shift(1,36),n.write_shift(4,e.r),n.write_shift(2,e.c|("$"==t.charAt(0)?0:1)<<14|(t.match(/\$\d/)?0:1)<<15),n.write_shift(4,0),n}function nl(t,e){var n=t.lastIndexOf("!"),r=t.slice(0,n);t=t.slice(n+1);var i=rr(t);"'"==r.charAt(0)&&(r=r.slice(1,-1).replace(/''/g,"'"));var o=Zn(17);return o.write_shift(4,9),o.write_shift(1,58),o.write_shift(2,2+e.SheetNames.map((function(t){return t.toLowerCase()})).indexOf(r.toLowerCase())),o.write_shift(4,i.r),o.write_shift(2,i.c|("$"==t.charAt(0)?0:1)<<14|(t.match(/\$\d/)?0:1)<<15),o.write_shift(4,0),o}function rl(t,e){var n=t.lastIndexOf("!"),r=t.slice(0,n);t=t.slice(n+1),"'"==r.charAt(0)&&(r=r.slice(1,-1).replace(/''/g,"'"));var i=Zn(17);return i.write_shift(4,9),i.write_shift(1,60),i.write_shift(2,2+e.SheetNames.map((function(t){return t.toLowerCase()})).indexOf(r.toLowerCase())),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(4,0),i}function il(t){var e=t.split(":"),n=e[0],r=Zn(23);r.write_shift(4,15),n=e[0];var i=rr(n);return r.write_shift(1,36),r.write_shift(4,i.r),r.write_shift(2,i.c|("$"==n.charAt(0)?0:1)<<14|(n.match(/\$\d/)?0:1)<<15),r.write_shift(4,0),n=e[1],i=rr(n),r.write_shift(1,36),r.write_shift(4,i.r),r.write_shift(2,i.c|("$"==n.charAt(0)?0:1)<<14|(n.match(/\$\d/)?0:1)<<15),r.write_shift(4,0),r.write_shift(1,17),r.write_shift(4,0),r}function ol(t,e){var n=t.lastIndexOf("!"),r=t.slice(0,n);t=t.slice(n+1),"'"==r.charAt(0)&&(r=r.slice(1,-1).replace(/''/g,"'"));var i=t.split(":"),o=Zn(27);o.write_shift(4,19);var a=i[0],s=rr(a);return o.write_shift(1,58),o.write_shift(2,2+e.SheetNames.map((function(t){return t.toLowerCase()})).indexOf(r.toLowerCase())),o.write_shift(4,s.r),o.write_shift(2,s.c|("$"==a.charAt(0)?0:1)<<14|(a.match(/\$\d/)?0:1)<<15),a=i[1],s=rr(a),o.write_shift(1,58),o.write_shift(2,2+e.SheetNames.map((function(t){return t.toLowerCase()})).indexOf(r.toLowerCase())),o.write_shift(4,s.r),o.write_shift(2,s.c|("$"==a.charAt(0)?0:1)<<14|(a.match(/\$\d/)?0:1)<<15),o.write_shift(1,17),o.write_shift(4,0),o}function al(t,e){var n=t.lastIndexOf("!"),r=t.slice(0,n);t=t.slice(n+1),"'"==r.charAt(0)&&(r=r.slice(1,-1).replace(/''/g,"'"));var i=or(t),o=Zn(23);return o.write_shift(4,15),o.write_shift(1,59),o.write_shift(2,2+e.SheetNames.map((function(t){return t.toLowerCase()})).indexOf(r.toLowerCase())),o.write_shift(4,i.s.r),o.write_shift(4,i.e.r),o.write_shift(2,i.s.c),o.write_shift(2,i.e.c),o.write_shift(4,0),o}function sl(t,e){if("number"==typeof t)return Ku(t);if("boolean"==typeof t)return Qu(t);if(/^#(DIV\/0!|GETTING_DATA|N\/A|NAME\?|NULL!|NUM!|REF!|VALUE!)$/.test(t))return Ju(+fi[t]);if(t.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return el(t);if(t.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return il(t);if(t.match(/^#REF!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return al(t,e);if(t.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return nl(t,e);if(t.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return ol(t,e);if(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!#REF!$/.test(t))return rl(t,e);if(/^".*"$/.test(t))return tl(t);if(/^[+-]\d+$/.test(t))return Ku(parseInt(t,10));throw"Formula |"+t+"| not supported for XLSB"}var ul=sl,ll={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},cl={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},fl={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function hl(t){var e="of:="+t.replace(fs,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return e.replace(/;/g,"|").replace(/,/g,";")}function dl(t){return t.replace(/!/,".").replace(/:/,":.")}var pl="undefined"!==typeof Map;function gl(t,e,n){var r=0,i=t.length;if(n){if(pl?n.has(e):Object.prototype.hasOwnProperty.call(n,e))for(var o=pl?n.get(e):n[e];r<o.length;++r)if(t[o[r]].t===e)return t.Count++,o[r]}else for(;r<i;++r)if(t[r].t===e)return t.Count++,r;return t[i]={t:e},t.Count++,t.Unique++,n&&(pl?(n.has(e)||n.set(e,[]),n.get(e).push(i)):(Object.prototype.hasOwnProperty.call(n,e)||(n[e]=[]),n[e].push(i))),i}function vl(t,e){var n={min:t+1,max:t+1},r=-1;return e.MDW&&(ra=e.MDW),null!=e.width?n.customWidth=1:null!=e.wpx?r=oa(e.wpx):null!=e.wch&&(r=e.wch),r>-1?(n.width=aa(r),n.customWidth=1):null!=e.width&&(n.width=e.width),e.hidden&&(n.hidden=!0),null!=e.level&&(n.outlineLevel=n.level=e.level),n}function ml(t,e){if(t){var n=[.7,.7,.75,.75,.3,.3];"xlml"==e&&(n=[1,1,1,1,.5,.5]),null==t.left&&(t.left=n[0]),null==t.right&&(t.right=n[1]),null==t.top&&(t.top=n[2]),null==t.bottom&&(t.bottom=n[3]),null==t.header&&(t.header=n[4]),null==t.footer&&(t.footer=n[5])}}function yl(t,e,n){var r=n.revssf[null!=e.z?e.z:"General"],i=60,o=t.length;if(null==r&&n.ssf)for(;i<392;++i)if(null==n.ssf[i]){Wt(e.z,i),n.ssf[i]=e.z,n.revssf[e.z]=r=i;break}for(i=0;i!=o;++i)if(t[i].numFmtId===r)return i;return t[o]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function bl(t,e,n){if(t&&t["!ref"]){var r=lr(t["!ref"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error("Bad range ("+n+"): "+t["!ref"])}}function xl(t){if(0===t.length)return"";for(var e='<mergeCells count="'+t.length+'">',n=0;n!=t.length;++n)e+='<mergeCell ref="'+ar(t[n])+'"/>';return e+"</mergeCells>"}function _l(t,e,n,r,i){var o=!1,a={},s=null;if("xlsx"!==r.bookType&&e.vbaraw){var u=e.SheetNames[n];try{e.Workbook&&(u=e.Workbook.Sheets[n].CodeName||u)}catch($d){}o=!0,a.codeName=Ge(Pe(u))}if(t&&t["!outline"]){var l={summaryBelow:1,summaryRight:1};t["!outline"].above&&(l.summaryBelow=0),t["!outline"].left&&(l.summaryRight=0),s=(s||"")+qe("outlinePr",null,l)}(o||s)&&(i[i.length]=qe("sheetPr",s,a))}var wl=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Sl=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function El(t){var e={sheet:1};return wl.forEach((function(n){null!=t[n]&&t[n]&&(e[n]="1")})),Sl.forEach((function(n){null==t[n]||t[n]||(e[n]="0")})),t.password&&(e.password=Qo(t.password).toString(16).toUpperCase()),qe("sheetProtection",null,e)}function Tl(t){return ml(t),qe("pageMargins",null,t)}function kl(t,e){for(var n,r=["<cols>"],i=0;i!=e.length;++i)(n=e[i])&&(r[r.length]=qe("col",null,vl(i,n)));return r[r.length]="</cols>",r.join("")}function Cl(t,e,n,r){var i="string"==typeof t.ref?t.ref:ar(t.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var o=n.Workbook.Names,a=or(i);a.s.r==a.e.r&&(a.e.r=or(e["!ref"]).e.r,i=ar(a));for(var s=0;s<o.length;++s){var u=o[s];if("_xlnm._FilterDatabase"==u.Name&&u.Sheet==r){u.Ref=ur(n.SheetNames[r])+"!"+sr(i);break}}return s==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+i}),qe("autoFilter",null,{ref:i})}function Ml(t,e,n,r){var i={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),qe("sheetViews",qe("sheetView",null,i),{})}function Al(t,e,n,r,i,o,a){if(t.c&&n["!comments"].push([e,t.c]),(void 0===t.v||"z"===t.t&&!(r||{}).sheetStubs)&&"string"!==typeof t.f&&"undefined"==typeof t.z)return"";var s="",u=t.t,l=t.v;if("z"!==t.t)switch(t.t){case"b":s=t.v?"1":"0";break;case"n":isNaN(t.v)?(t.t="e",s=ci[t.v=36]):isFinite(t.v)?s=""+t.v:(t.t="e",s=ci[t.v=7]);break;case"e":s=ci[t.v];break;case"d":if(r&&r.cellDates){var c=fe(t.v,a);s=c.toISOString(),c.getUTCFullYear()<1900&&(s=s.slice(s.indexOf("T")+1).replace("Z",""))}else t=de(t),t.t="n",s=""+(t.v=ae(fe(t.v,a),a));"undefined"===typeof t.z&&(t.z=X[14]);break;default:s=t.v;break}var f="z"==t.t||null==t.v?"":Ye("v",Pe(s)),h={r:e},d=yl(r.cellXfs,t,r);switch(0!==d&&(h.s=d),t.t){case"n":break;case"d":h.t="d";break;case"b":h.t="b";break;case"e":h.t="e";break;case"z":break;default:if(null==t.v){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){f=Ye("v",""+gl(r.Strings,t.v,r.revStrings)),h.t="s";break}h.t="str";break}if(t.t!=u&&(t.t=u,t.v=l),"string"==typeof t.f&&t.f){var p=t.F&&t.F.slice(0,e.length)==e?{t:"array",ref:t.F}:null;f=qe("f",Pe(t.f),p)+(null!=t.v?f:"")}return t.l&&(t.l.display=Pe(s),n["!links"].push([e,t.l])),t.D&&(h.cm=1),qe("c",f,h)}function Il(t,e,n,r){var i,o,a=[],s=[],u=lr(t["!ref"]),l="",c="",f=[],h=0,d=0,p=t["!rows"],g=null!=t["!data"],v={r:c},m=-1,y=(((r||{}).Workbook||{}).WBProps||{}).date1904;for(d=u.s.c;d<=u.e.c;++d)f[d]=Qn(d);for(h=u.s.r;h<=u.e.r;++h){for(s=[],c=Xn(h),d=u.s.c;d<=u.e.c;++d){i=f[d]+c;var b=g?(t["!data"][h]||[])[d]:t[i];void 0!==b&&(null!=(l=Al(b,i,t,e,n,r,y))&&s.push(l))}(s.length>0||p&&p[h])&&(v={r:c},p&&p[h]&&(o=p[h],o.hidden&&(v.hidden=1),m=-1,o.hpx?m=ca(o.hpx):o.hpt&&(m=o.hpt),m>-1&&(v.ht=m,v.customHeight=1),o.level&&(v.outlineLevel=o.level)),a[a.length]=qe("row",s.join(""),v))}if(p)for(;h<p.length;++h)p&&p[h]&&(v={r:h+1},o=p[h],o.hidden&&(v.hidden=1),m=-1,o.hpx?m=ca(o.hpx):o.hpt&&(m=o.hpt),m>-1&&(v.ht=m,v.customHeight=1),o.level&&(v.outlineLevel=o.level),a[a.length]=qe("row","",v));return a.join("")}function Ol(t,e,n,r){var i=[Me,qe("worksheet",null,{xmlns:tn[0],"xmlns:r":Qe.r})],o=n.SheetNames[t],a=0,s="",u=n.Sheets[o];null==u&&(u={});var l=u["!ref"]||"A1",c=lr(l);if(c.e.c>16383||c.e.r>1048575){if(e.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),l=ar(c)}r||(r={}),u["!comments"]=[];var f=[];_l(u,n,t,e,i),i[i.length]=qe("dimension",null,{ref:l}),i[i.length]=Ml(u,e,t,n),e.sheetFormat&&(i[i.length]=qe("sheetFormatPr",null,{defaultRowHeight:e.sheetFormat.defaultRowHeight||"16",baseColWidth:e.sheetFormat.baseColWidth||"10",outlineLevelRow:e.sheetFormat.outlineLevelRow||"7"})),null!=u["!cols"]&&u["!cols"].length>0&&(i[i.length]=kl(u,u["!cols"])),i[a=i.length]="<sheetData/>",u["!links"]=[],null!=u["!ref"]&&(s=Il(u,e,t,n,r),s.length>0&&(i[i.length]=s)),i.length>a+1&&(i[i.length]="</sheetData>",i[a]=i[a].replace("/>",">")),u["!protect"]&&(i[i.length]=El(u["!protect"])),null!=u["!autofilter"]&&(i[i.length]=Cl(u["!autofilter"],u,n,t)),null!=u["!merges"]&&u["!merges"].length>0&&(i[i.length]=xl(u["!merges"]));var h,d=-1,p=-1;return u["!links"].length>0&&(i[i.length]="<hyperlinks>",u["!links"].forEach((function(t){t[1].Target&&(h={ref:t[0]},"#"!=t[1].Target.charAt(0)&&(p=xi(r,-1,Pe(t[1].Target).replace(/#[\s\S]*$/,""),mi.HLINK),h["r:id"]="rId"+p),(d=t[1].Target.indexOf("#"))>-1&&(h.location=Pe(t[1].Target.slice(d+1))),t[1].Tooltip&&(h.tooltip=Pe(t[1].Tooltip)),h.display=t[1].display,i[i.length]=qe("hyperlink",null,h))})),i[i.length]="</hyperlinks>"),delete u["!links"],null!=u["!margins"]&&(i[i.length]=Tl(u["!margins"])),e&&!e.ignoreEC&&void 0!=e.ignoreEC||(i[i.length]=Ye("ignoredErrors",qe("ignoredError",null,{numberStoredAsText:1,sqref:l}))),f.length>0&&(p=xi(r,-1,"../drawings/drawing"+(t+1)+".xml",mi.DRAW),i[i.length]=qe("drawing",null,{"r:id":"rId"+p}),u["!drawing"]=f),u["!comments"].length>0&&(p=xi(r,-1,"../drawings/vmlDrawing"+(t+1)+".vml",mi.VML),i[i.length]=qe("legacyDrawing",null,{"r:id":"rId"+p}),u["!legacy"]=p),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function Dl(t,e){var n={},r=t.l+e;n.r=t.read_shift(4),t.l+=4;var i=t.read_shift(2);t.l+=1;var o=t.read_shift(1);return t.l=r,7&o&&(n.level=7&o),16&o&&(n.hidden=!0),32&o&&(n.hpt=i/20),n}function Pl(t,e,n){var r=Zn(145),i=(n["!rows"]||[])[t]||{};r.write_shift(4,t),r.write_shift(4,0);var o=320;i.hpx?o=20*ca(i.hpx):i.hpt&&(o=20*i.hpt),r.write_shift(2,o),r.write_shift(1,0);var a=0;i.level&&(a|=i.level),i.hidden&&(a|=16),(i.hpx||i.hpt)&&(a|=32),r.write_shift(1,a),r.write_shift(1,0);var s=0,u=r.l;r.l+=4;for(var l={r:t,c:0},c=null!=n["!data"],f=0;f<16;++f)if(!(e.s.c>f+1<<10||e.e.c<f<<10)){for(var h=-1,d=-1,p=f<<10;p<f+1<<10;++p){l.c=p;var g=c?(n["!data"][l.r]||[])[l.c]:n[ir(l)];g&&(h<0&&(h=p),d=p)}h<0||(++s,r.write_shift(4,h),r.write_shift(4,d))}var v=r.l;return r.l=u,r.write_shift(4,s),r.l=v,r.length>r.l?r.slice(0,r.l):r}function Ll(t,e,n,r){var i=Pl(r,n,e);(i.length>17||(e["!rows"]||[])[r])&&Hn(t,0,i)}var Nl=Zr,Rl=Ur;function jl(){}function Fl(t,e){var n={},r=t[t.l];return++t.l,n.above=!(64&r),n.left=!(128&r),t.l+=18,n.name=Ir(t,e-19),n}function Bl(t,e,n){null==n&&(n=Zn(84+4*t.length));var r=192;e&&(e.above&&(r&=-65),e.left&&(r&=-129)),n.write_shift(1,r);for(var i=1;i<3;++i)n.write_shift(1,0);return Wr({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),Or(t,n),n.slice(0,n.l)}function zl(t){var e=kr(t);return[e]}function Zl(t,e,n){return null==n&&(n=Zn(8)),Cr(e,n)}function Ul(t){var e=Mr(t);return[e]}function Hl(t,e,n){return null==n&&(n=Zn(4)),Ar(e,n)}function $l(t){var e=kr(t),n=t.read_shift(1);return[e,n,"b"]}function Gl(t,e,n){return null==n&&(n=Zn(9)),Cr(e,n),n.write_shift(1,t.v?1:0),n}function Wl(t){var e=Mr(t),n=t.read_shift(1);return[e,n,"b"]}function Vl(t,e,n){return null==n&&(n=Zn(5)),Ar(e,n),n.write_shift(1,t.v?1:0),n}function Yl(t){var e=kr(t),n=t.read_shift(1);return[e,n,"e"]}function Xl(t,e,n){return null==n&&(n=Zn(9)),Cr(e,n),n.write_shift(1,t.v),n}function ql(t){var e=Mr(t),n=t.read_shift(1);return[e,n,"e"]}function Kl(t,e,n){return null==n&&(n=Zn(8)),Ar(e,n),n.write_shift(1,t.v),n.write_shift(2,0),n.write_shift(1,0),n}function Jl(t){var e=kr(t),n=t.read_shift(4);return[e,n,"s"]}function Ql(t,e,n){return null==n&&(n=Zn(12)),Cr(e,n),n.write_shift(4,e.v),n}function tc(t){var e=Mr(t),n=t.read_shift(4);return[e,n,"s"]}function ec(t,e,n){return null==n&&(n=Zn(8)),Ar(e,n),n.write_shift(4,e.v),n}function nc(t){var e=kr(t),n=Hr(t);return[e,n,"n"]}function rc(t,e,n){return null==n&&(n=Zn(16)),Cr(e,n),$r(t.v,n),n}function ic(t){var e=Mr(t),n=Hr(t);return[e,n,"n"]}function oc(t,e,n){return null==n&&(n=Zn(12)),Ar(e,n),$r(t.v,n),n}function ac(t){var e=kr(t),n=jr(t);return[e,n,"n"]}function sc(t,e,n){return null==n&&(n=Zn(12)),Cr(e,n),Fr(t.v,n),n}function uc(t){var e=Mr(t),n=jr(t);return[e,n,"n"]}function lc(t,e,n){return null==n&&(n=Zn(8)),Ar(e,n),Fr(t.v,n),n}function cc(t){var e=kr(t),n=wr(t);return[e,n,"is"]}function fc(t){var e=kr(t),n=yr(t);return[e,n,"str"]}function hc(t,e,n){var r=null==t.v?"":String(t.v);return null==n&&(n=Zn(12+4*t.v.length)),Cr(e,n),br(r,n),n.length>n.l?n.slice(0,n.l):n}function dc(t){var e=Mr(t),n=yr(t);return[e,n,"str"]}function pc(t,e,n){var r=null==t.v?"":String(t.v);return null==n&&(n=Zn(8+4*r.length)),Ar(e,n),br(r,n),n.length>n.l?n.slice(0,n.l):n}function gc(t,e,n){var r=t.l+e,i=kr(t);i.r=n["!row"];var o=t.read_shift(1),a=[i,o,"b"];if(n.cellFormula){t.l+=2;var s=Yu(t,r-t.l,n);a[3]=Hu(s,null,i,n.supbooks,n)}else t.l=r;return a}function vc(t,e,n){var r=t.l+e,i=kr(t);i.r=n["!row"];var o=t.read_shift(1),a=[i,o,"e"];if(n.cellFormula){t.l+=2;var s=Yu(t,r-t.l,n);a[3]=Hu(s,null,i,n.supbooks,n)}else t.l=r;return a}function mc(t,e,n){var r=t.l+e,i=kr(t);i.r=n["!row"];var o=Hr(t),a=[i,o,"n"];if(n.cellFormula){t.l+=2;var s=Yu(t,r-t.l,n);a[3]=Hu(s,null,i,n.supbooks,n)}else t.l=r;return a}function yc(t,e,n){var r=t.l+e,i=kr(t);i.r=n["!row"];var o=yr(t),a=[i,o,"str"];if(n.cellFormula){t.l+=2;var s=Yu(t,r-t.l,n);a[3]=Hu(s,null,i,n.supbooks,n)}else t.l=r;return a}var bc=Zr,xc=Ur;function _c(t,e){return null==e&&(e=Zn(4)),e.write_shift(4,t),e}function wc(t,e){var n=t.l+e,r=Zr(t,16),i=Dr(t),o=yr(t),a=yr(t),s=yr(t);t.l=n;var u={rfx:r,relId:i,loc:o,display:s};return a&&(u.Tooltip=a),u}function Sc(t,e){var n=Zn(50+4*(t[1].Target.length+(t[1].Tooltip||"").length));Ur({s:rr(t[0]),e:rr(t[0])},n),Rr("rId"+e,n);var r=t[1].Target.indexOf("#"),i=-1==r?"":t[1].Target.slice(r+1);return br(i||"",n),br(t[1].Tooltip||"",n),br("",n),n.slice(0,n.l)}function Ec(){}function Tc(t,e,n){var r=t.l+e,i=Br(t,16),o=t.read_shift(1),a=[i];if(a[2]=o,n.cellFormula){var s=Vu(t,r-t.l,n);a[1]=s}else t.l=r;return a}function kc(t,e,n){var r=t.l+e,i=Zr(t,16),o=[i];if(n.cellFormula){var a=qu(t,r-t.l,n);o[1]=a,t.l=r}else t.l=r;return o}function Cc(t,e,n){null==n&&(n=Zn(18));var r=vl(t,e);n.write_shift(-4,t),n.write_shift(-4,t),n.write_shift(4,256*(r.width||10)),n.write_shift(4,0);var i=0;return e.hidden&&(i|=1),"number"==typeof r.width&&(i|=2),e.level&&(i|=e.level<<8),n.write_shift(2,i),n}var Mc=["left","right","top","bottom","header","footer"];function Ac(t){var e={};return Mc.forEach((function(n){e[n]=Hr(t,8)})),e}function Ic(t,e){return null==e&&(e=Zn(48)),ml(t),Mc.forEach((function(n){$r(t[n],e)})),e}function Oc(t){var e=t.read_shift(2);return t.l+=28,{RTL:32&e}}function Dc(t,e,n){null==n&&(n=Zn(30));var r=924;return(((e||{}).Views||[])[0]||{}).RTL&&(r|=32),n.write_shift(2,r),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}function Pc(t){var e=Zn(24);return e.write_shift(4,4),e.write_shift(4,1),Ur(t,e),e}function Lc(t,e){return null==e&&(e=Zn(66)),e.write_shift(2,t.password?Qo(t.password):0),e.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(n){n[1]?e.write_shift(4,null==t[n[0]]||t[n[0]]?0:1):e.write_shift(4,null!=t[n[0]]&&t[n[0]]?0:1)})),e}function Nc(){}function Rc(){}function jc(t,e,n,r,i,o,a,s){var u={r:n,c:r};if(e.c&&o["!comments"].push([ir(u),e.c]),void 0===e.v)return!1;var l="";switch(e.t){case"b":l=e.v?"1":"0";break;case"d":e=de(e),e.z=e.z||X[14],e.v=ae(fe(e.v,s),s),e.t="n";break;case"n":case"e":l=""+e.v;break;default:l=e.v;break}switch(u.s=yl(i.cellXfs,e,i),e.l&&o["!links"].push([ir(u),e.l]),e.t){case"s":case"str":return i.bookSST?(l=gl(i.Strings,null==e.v?"":String(e.v),i.revStrings),u.t="s",u.v=l,a?Hn(t,18,ec(e,u)):Hn(t,7,Ql(e,u))):(u.t="str",a?Hn(t,17,pc(e,u)):Hn(t,6,hc(e,u))),!0;case"n":return e.v==(0|e.v)&&e.v>-1e3&&e.v<1e3?a?Hn(t,13,lc(e,u)):Hn(t,2,sc(e,u)):isNaN(e.v)?a?Hn(t,14,Kl({t:"e",v:36},u)):Hn(t,3,Xl({t:"e",v:36},u)):isFinite(e.v)?a?Hn(t,16,oc(e,u)):Hn(t,5,rc(e,u)):a?Hn(t,14,Kl({t:"e",v:7},u)):Hn(t,3,Xl({t:"e",v:7},u)),!0;case"b":return u.t="b",a?Hn(t,15,Vl(e,u)):Hn(t,4,Gl(e,u)),!0;case"e":return u.t="e",a?Hn(t,14,Kl(e,u)):Hn(t,3,Xl(e,u)),!0}return a?Hn(t,12,Hl(e,u)):Hn(t,1,Zl(e,u)),!0}function Fc(t,e,n,r,i){var o,a=lr(e["!ref"]||"A1"),s="",u=[],l=(((i||{}).Workbook||{}).WBProps||{}).date1904;Hn(t,145);var c=null!=e["!data"],f=a.e.r;e["!rows"]&&(f=Math.max(a.e.r,e["!rows"].length-1));for(var h=a.s.r;h<=f;++h){s=Xn(h),Ll(t,e,a,h);var d=!1;if(h<=a.e.r)for(var p=a.s.c;p<=a.e.c;++p){h===a.s.r&&(u[p]=Qn(p)),o=u[p]+s;var g=c?(e["!data"][h]||[])[p]:e[o];g?d=jc(t,g,h,p,r,e,d,l):d=!1}}Hn(t,146)}function Bc(t,e){e&&e["!merges"]&&(Hn(t,177,_c(e["!merges"].length)),e["!merges"].forEach((function(e){Hn(t,176,xc(e))})),Hn(t,178))}function zc(t,e){e&&e["!cols"]&&(Hn(t,390),e["!cols"].forEach((function(e,n){e&&Hn(t,60,Cc(n,e))})),Hn(t,391))}function Zc(t,e){e&&e["!ref"]&&(Hn(t,648),Hn(t,649,Pc(lr(e["!ref"]))),Hn(t,650))}function Uc(t,e,n){e["!links"].forEach((function(e){if(e[1].Target){var r=xi(n,-1,e[1].Target.replace(/#[\s\S]*$/,""),mi.HLINK);Hn(t,494,Sc(e,r))}})),delete e["!links"]}function Hc(t,e,n,r){if(e["!comments"].length>0){var i=xi(r,-1,"../drawings/vmlDrawing"+(n+1)+".vml",mi.VML);Hn(t,551,Rr("rId"+i)),e["!legacy"]=i}}function $c(t,e,n,r){if(e["!autofilter"]){var i=e["!autofilter"],o="string"===typeof i.ref?i.ref:ar(i.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var a=n.Workbook.Names,s=or(o);s.s.r==s.e.r&&(s.e.r=or(e["!ref"]).e.r,o=ar(s));for(var u=0;u<a.length;++u){var l=a[u];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==r){l.Ref=ur(n.SheetNames[r])+"!"+sr(o);break}}u==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:ur(n.SheetNames[r])+"!"+sr(o)}),Hn(t,161,Ur(lr(o))),Hn(t,162)}}function Gc(t,e,n){Hn(t,133),Hn(t,137,Dc(e,n)),Hn(t,138),Hn(t,134)}function Wc(){}function Vc(t,e){e["!protect"]&&Hn(t,535,Lc(e["!protect"]))}function Yc(t,e,n,r){var i=Un(),o=n.SheetNames[t],a=n.Sheets[o]||{},s=o;try{n&&n.Workbook&&(s=n.Workbook.Sheets[t].CodeName||s)}catch($d){}var u=lr(a["!ref"]||"A1");if(u.e.c>16383||u.e.r>1048575){if(e.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575)}return a["!links"]=[],a["!comments"]=[],Hn(i,129),(n.vbaraw||a["!outline"])&&Hn(i,147,Bl(s,a["!outline"])),Hn(i,148,Rl(u)),Gc(i,a,n.Workbook),Wc(i,a),zc(i,a,t,e,n),Fc(i,a,t,e,n),Vc(i,a),$c(i,a,n,t),Bc(i,a),Uc(i,a,r),a["!margins"]&&Hn(i,476,Ic(a["!margins"])),e&&!e.ignoreEC&&void 0!=e.ignoreEC||Zc(i,a),Hc(i,a,t,r),Hn(i,130),i.end()}function Xc(t,e){t.l+=10;var n=yr(t,e-10);return{name:n}}var qc=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function Kc(t){return t.Workbook&&t.Workbook.WBProps&&Be(t.Workbook.WBProps.date1904)?"true":"false"}var Jc=":][*?/\\".split("");function Qc(t,e){try{if(""==t)throw new Error("Sheet name cannot be blank");if(t.length>31)throw new Error("Sheet name cannot exceed 31 chars");if(39==t.charCodeAt(0)||39==t.charCodeAt(t.length-1))throw new Error("Sheet name cannot start or end with apostrophe (')");if("history"==t.toLowerCase())throw new Error("Sheet name cannot be 'History'");Jc.forEach((function(e){if(-1!=t.indexOf(e))throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}))}catch($d){if(e)return!1;throw $d}return!0}function tf(t,e,n){t.forEach((function(r,i){Qc(r);for(var o=0;o<i;++o)if(r==t[o])throw new Error("Duplicate Sheet Name: "+r);if(n){var a=e&&e[i]&&e[i].CodeName||r;if(95==a.charCodeAt(0)&&a.length>22)throw new Error("Bad Code Name: Worksheet"+a)}}))}function ef(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var e=t.Workbook&&t.Workbook.Sheets||[];tf(t.SheetNames,e,!!t.vbaraw);for(var n=0;n<t.SheetNames.length;++n)bl(t.Sheets[t.SheetNames[n]],t.SheetNames[n],n);t.SheetNames.forEach((function(e,n){var r=t.Sheets[e];if(r&&r["!autofilter"]){var i;t.Workbook||(t.Workbook={}),t.Workbook.Names||(t.Workbook.Names=[]),t.Workbook.Names.forEach((function(t){"_xlnm._FilterDatabase"==t.Name&&t.Sheet==n&&(i=t)}));var o=ur(e)+"!"+sr(r["!autofilter"].ref);i?i.Ref=o:t.Workbook.Names.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:o})}}))}function nf(t){var e=[Me];e[e.length]=qe("workbook",null,{xmlns:tn[0],"xmlns:r":Qe.r});var n=t.Workbook&&(t.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(qc.forEach((function(e){null!=t.Workbook.WBProps[e[0]]&&t.Workbook.WBProps[e[0]]!=e[1]&&(r[e[0]]=t.Workbook.WBProps[e[0]])})),t.Workbook.WBProps.CodeName&&(r.codeName=t.Workbook.WBProps.CodeName,delete r.CodeName)),e[e.length]=qe("workbookPr",null,r);var i=t.Workbook&&t.Workbook.Sheets||[],o=0;if(i&&i[0]&&i[0].Hidden){for(e[e.length]="<bookViews>",o=0;o!=t.SheetNames.length;++o){if(!i[o])break;if(!i[o].Hidden)break}o==t.SheetNames.length&&(o=0),e[e.length]='<workbookView firstSheet="'+o+'" activeTab="'+o+'"/>',e[e.length]="</bookViews>"}for(e[e.length]="<sheets>",o=0;o!=t.SheetNames.length;++o){var a={name:Pe(t.SheetNames[o].slice(0,31))};if(a.sheetId=""+(o+1),a["r:id"]="rId"+(o+1),i[o])switch(i[o].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden";break}e[e.length]=qe("sheet",null,a)}return e[e.length]="</sheets>",n&&(e[e.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach((function(t){var n={name:t.Name};t.Comment&&(n.comment=t.Comment),null!=t.Sheet&&(n.localSheetId=""+t.Sheet),t.Hidden&&(n.hidden="1"),t.Ref&&(e[e.length]=qe("definedName",Pe(t.Ref),n))})),e[e.length]="</definedNames>"),e.length>2&&(e[e.length]="</workbook>",e[1]=e[1].replace("/>",">")),e.join("")}function rf(t,e){var n={};return n.Hidden=t.read_shift(4),n.iTabID=t.read_shift(4),n.strRelID=Nr(t,e-8),n.name=yr(t),n}function of(t,e){return e||(e=Zn(127)),e.write_shift(4,t.Hidden),e.write_shift(4,t.iTabID),Rr(t.strRelID,e),br(t.name.slice(0,31),e),e.length>e.l?e.slice(0,e.l):e}function af(t,e){var n={},r=t.read_shift(4);n.defaultThemeVersion=t.read_shift(4);var i=e>8?yr(t):"";return i.length>0&&(n.CodeName=i),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=["userSet","never","always"][r>>8&3],n}function sf(t,e){e||(e=Zn(72));var n=0;return t&&(t.date1904&&(n|=1),t.filterPrivacy&&(n|=8)),e.write_shift(4,n),e.write_shift(4,0),Or(t&&t.CodeName||"ThisWorkbook",e),e.slice(0,e.l)}function uf(t,e,n){var r=t.l+e,i=t.read_shift(4);t.l+=1;var o,a=t.read_shift(4),s=Lr(t),u="";try{o=Xu(t,0,n);try{u=Dr(t)}catch($d){}}catch($d){console.error("Could not parse defined name "+s)}32&i&&(s="_xlnm."+s),t.l=r;var l={Name:s,Ptg:o,Flags:i};return a<268435455&&(l.Sheet=a),u&&(l.Comment=u),l}function lf(t,e){var n=Zn(9),r=0,i=t.Name;hi.indexOf(i)>-1&&(r|=32,i=i.slice(6)),n.write_shift(4,r),n.write_shift(1,0),n.write_shift(4,null==t.Sheet?4294967295:t.Sheet);var o=[n,br(i),ul(t.Ref,e)];if(t.Comment)o.push(Pr(t.Comment));else{var a=Zn(4);a.write_shift(4,4294967295),o.push(a)}return D(o)}function cf(t,e){Hn(t,143);for(var n=0;n!=e.SheetNames.length;++n){var r=e.Workbook&&e.Workbook.Sheets&&e.Workbook.Sheets[n]&&e.Workbook.Sheets[n].Hidden||0,i={Hidden:r,iTabID:n+1,strRelID:"rId"+(n+1),name:e.SheetNames[n]};Hn(t,156,of(i))}Hn(t,144)}function ff(t,e){e||(e=Zn(127));for(var n=0;4!=n;++n)e.write_shift(4,0);return br("SheetJS",e),br(i.version,e),br(i.version,e),br("7262",e),e.length>e.l?e.slice(0,e.l):e}function hf(t,e){e||(e=Zn(29)),e.write_shift(-4,0),e.write_shift(-4,460),e.write_shift(4,28800),e.write_shift(4,17600),e.write_shift(4,500),e.write_shift(4,t),e.write_shift(4,t);var n=120;return e.write_shift(1,n),e.length>e.l?e.slice(0,e.l):e}function df(t,e){if(e.Workbook&&e.Workbook.Sheets){for(var n=e.Workbook.Sheets,r=0,i=-1,o=-1;r<n.length;++r)!n[r]||!n[r].Hidden&&-1==i?i=r:1==n[r].Hidden&&-1==o&&(o=r);o>i||(Hn(t,135),Hn(t,158,hf(i)),Hn(t,136))}}function pf(t,e){e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(n){try{if(14&n.Flags)return;Hn(t,39,lf(n,e))}catch($d){console.error("Could not serialize defined name "+JSON.stringify(n))}}))}function gf(t){var e=t.SheetNames.length,n=Zn(12*e+28);n.write_shift(4,e+2),n.write_shift(4,0),n.write_shift(4,-2),n.write_shift(4,-2),n.write_shift(4,0),n.write_shift(4,-1),n.write_shift(4,-1);for(var r=0;r<e;++r)n.write_shift(4,0),n.write_shift(4,r),n.write_shift(4,r);return n}function vf(t,e){Hn(t,353),Hn(t,357),Hn(t,362,gf(e,0)),Hn(t,354)}function mf(t,e){var n=Un();return Hn(n,131),Hn(n,128,ff()),Hn(n,153,sf(t.Workbook&&t.Workbook.WBProps||null)),df(n,t,e),cf(n,t,e),vf(n,t),(t.Workbook||{}).Names&&pf(n,t),Hn(n,132),n.end()}function yf(t,e){var n=[];return t.Props&&n.push(Li(t.Props,e)),t.Custprops&&n.push(Ni(t.Props,t.Custprops,e)),n.join("")}function bf(t){return(((t||{}).Workbook||{}).WBProps||{}).date1904?'<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"><Date1904/></ExcelWorkbook>':""}function xf(t,e){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return e.cellXfs.forEach((function(t,e){var r=[];r.push(qe("NumberFormat",null,{"ss:Format":Pe(X[t.numFmtId])}));var i={"ss:ID":"s"+(21+e)};n.push(qe("Style",r.join(""),i))})),qe("Styles",n.join(""))}function _f(t){return qe("NamedRange",null,{"ss:Name":"_xlnm."==t.Name.slice(0,6)?t.Name.slice(6):t.Name,"ss:RefersTo":"="+hs(t.Ref,{r:0,c:0})})}function wf(t){if(!((t||{}).Workbook||{}).Names)return"";for(var e=t.Workbook.Names,n=[],r=0;r<e.length;++r){var i=e[r];null==i.Sheet&&(i.Name.match(/^_xlfn\./)||n.push(_f(i)))}return qe("Names",n.join(""))}function Sf(t,e,n,r){if(!t)return"";if(!((r||{}).Workbook||{}).Names)return"";for(var i=r.Workbook.Names,o=[],a=0;a<i.length;++a){var s=i[a];s.Sheet==n&&(s.Name.match(/^_xlfn\./)||o.push(_f(s)))}return o.join("")}function Ef(t,e,n,r){if(!t)return"";var i=[];if(t["!margins"]&&(i.push("<PageSetup>"),t["!margins"].header&&i.push(qe("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&i.push(qe("Footer",null,{"x:Margin":t["!margins"].footer})),i.push(qe("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),i.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[n])if(r.Workbook.Sheets[n].Hidden)i.push(qe("Visible",1==r.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var o=0;o<n;++o)if(r.Workbook.Sheets[o]&&!r.Workbook.Sheets[o].Hidden)break;o==n&&i.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),t["!protect"]&&(i.push(Ye("ProtectContents","True")),t["!protect"].objects&&i.push(Ye("ProtectObjects","True")),t["!protect"].scenarios&&i.push(Ye("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null==t["!protect"].selectUnlockedCells||t["!protect"].selectUnlockedCells||i.push(Ye("EnableSelection","UnlockedCells")):i.push(Ye("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(e){t["!protect"][e[0]]&&i.push("<"+e[1]+"/>")}))),0==i.length?"":qe("WorksheetOptions",i.join(""),{xmlns:en.x})}function Tf(t){return t.map((function(e){var n=Fe(e.t||""),r=qe("ss:Data",n,{xmlns:"http://www.w3.org/TR/REC-html40"}),i={};return e.a&&(i["ss:Author"]=e.a),t.hidden||(i["ss:ShowAlways"]="1"),qe("Comment",r,i)})).join("")}function kf(t,e,n,r,i,o,a){if(!t||void 0==t.v&&void 0==t.f)return"";var s={};if(t.f&&(s["ss:Formula"]="="+Pe(hs(t.f,a))),t.F&&t.F.slice(0,e.length)==e){var u=rr(t.F.slice(e.length+1));s["ss:ArrayRange"]="RC:R"+(u.r==a.r?"":"["+(u.r-a.r)+"]")+"C"+(u.c==a.c?"":"["+(u.c-a.c)+"]")}if(t.l&&t.l.Target&&(s["ss:HRef"]=Pe(t.l.Target),t.l.Tooltip&&(s["x:HRefScreenTip"]=Pe(t.l.Tooltip))),n["!merges"])for(var l=n["!merges"],c=0;c!=l.length;++c)l[c].s.c==a.c&&l[c].s.r==a.r&&(l[c].e.c>l[c].s.c&&(s["ss:MergeAcross"]=l[c].e.c-l[c].s.c),l[c].e.r>l[c].s.r&&(s["ss:MergeDown"]=l[c].e.r-l[c].s.r));var f="",h="";switch(t.t){case"z":if(!r.sheetStubs)return"";break;case"n":f="Number",h=String(t.v);break;case"b":f="Boolean",h=t.v?"1":"0";break;case"e":f="Error",h=ci[t.v];break;case"d":f="DateTime",h=new Date(t.v).toISOString(),null==t.z&&(t.z=t.z||X[14]);break;case"s":f="String",h=je(t.v||"");break}var d=yl(r.cellXfs,t,r);s["ss:StyleID"]="s"+(21+d),s["ss:Index"]=a.c+1;var p=null!=t.v?h:"",g="z"==t.t?"":'<Data ss:Type="'+f+'">'+p+"</Data>";return(t.c||[]).length>0&&(g+=Tf(t.c)),qe("Cell",g,s)}function Cf(t,e){var n='<Row ss:Index="'+(t+1)+'"';return e&&(e.hpt&&!e.hpx&&(e.hpx=fa(e.hpt)),e.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+e.hpx+'"'),e.hidden&&(n+=' ss:Hidden="1"')),n+">"}function Mf(t,e,n,r){if(!t["!ref"])return"";var i=lr(t["!ref"]),o=t["!merges"]||[],a=0,s=[];t["!cols"]&&t["!cols"].forEach((function(t,e){sa(t);var n=!!t.width,r=vl(e,t),i={"ss:Index":e+1};n&&(i["ss:Width"]=ia(r.width)),t.hidden&&(i["ss:Hidden"]="1"),s.push(qe("Column",null,i))}));for(var u=null!=t["!data"],l=i.s.r;l<=i.e.r;++l){for(var c=[Cf(l,(t["!rows"]||[])[l])],f=i.s.c;f<=i.e.c;++f){var h=!1;for(a=0;a!=o.length;++a)if(!(o[a].s.c>f)&&!(o[a].s.r>l)&&!(o[a].e.c<f)&&!(o[a].e.r<l)){o[a].s.c==f&&o[a].s.r==l||(h=!0);break}if(!h){var d={r:l,c:f},p=Qn(f)+Xn(l),g=u?(t["!data"][l]||[])[f]:t[p];c.push(kf(g,p,t,e,n,r,d))}}c.push("</Row>"),c.length>2&&s.push(c.join(""))}return s.join("")}function Af(t,e,n){var r=[],i=n.SheetNames[t],o=n.Sheets[i],a=o?Sf(o,e,t,n):"";return a.length>0&&r.push("<Names>"+a+"</Names>"),a=o?Mf(o,e,t,n):"",a.length>0&&r.push("<Table>"+a+"</Table>"),r.push(Ef(o,e,t,n)),o["!autofilter"]&&r.push('<AutoFilter x:Range="'+hs(sr(o["!autofilter"].ref),{r:0,c:0})+'" xmlns="urn:schemas-microsoft-com:office:excel"></AutoFilter>'),r.join("")}function If(t,e){e||(e={}),t.SSF||(t.SSF=de(X)),t.SSF&&(Zt(),zt(t.SSF),e.revssf=ee(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF,e.cellXfs=[],yl(e.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(yf(t,e)),n.push(bf(t,e)),n.push(""),n.push("");for(var r=0;r<t.SheetNames.length;++r)n.push(qe("Worksheet",Af(r,e,t),{"ss:Name":Pe(t.SheetNames[r])}));return n[2]=xf(t,e),n[3]=wf(t,e),Me+qe("Workbook",n.join(""),{xmlns:en.ss,"xmlns:o":en.o,"xmlns:x":en.x,"xmlns:ss":en.ss,"xmlns:dt":en.dt,"xmlns:html":en.html})}var Of={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Df(t,e){var n,r=[],i=[],o=[],a=0,s=Qt(oi,"n"),u=Qt(ai,"n");if(t.Props)for(n=Jt(t.Props),a=0;a<n.length;++a)(Object.prototype.hasOwnProperty.call(s,n[a])?r:Object.prototype.hasOwnProperty.call(u,n[a])?i:o).push([n[a],t.Props[n[a]]]);if(t.Custprops)for(n=Jt(t.Custprops),a=0;a<n.length;++a)Object.prototype.hasOwnProperty.call(t.Props||{},n[a])||(Object.prototype.hasOwnProperty.call(s,n[a])?r:Object.prototype.hasOwnProperty.call(u,n[a])?i:o).push([n[a],t.Custprops[n[a]]]);var l=[];for(a=0;a<o.length;++a)Fi.indexOf(o[a][0])>-1||Ii.indexOf(o[a][0])>-1||null!=o[a][1]&&l.push(o[a]);i.length&&Xt.utils.cfb_add(e,"/SummaryInformation",Zi(i,Of.SI,u,ai)),(r.length||l.length)&&Xt.utils.cfb_add(e,"/DocumentSummaryInformation",Zi(r,Of.DSI,s,oi,l.length?l:null,Of.UDI))}function Pf(t,e){var n=e||{},r=Xt.utils.cfb_new({root:"R"}),i="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":i="/Workbook",n.biff=8;break;case"biff5":i="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return Xt.utils.cfb_add(r,i,rh(t,n)),8==n.biff&&(t.Props||t.Custprops)&&Df(t,r),8==n.biff&&t.vbaraw&&us(r,Xt.read(t.vbaraw,{type:"string"==typeof t.vbaraw?"binary":"buffer"})),r}var Lf={0:{f:Dl},1:{f:zl},2:{f:ac},3:{f:Yl},4:{f:$l},5:{f:nc},6:{f:fc},7:{f:Jl},8:{f:yc},9:{f:mc},10:{f:gc},11:{f:vc},12:{f:Ul},13:{f:uc},14:{f:ql},15:{f:Wl},16:{f:ic},17:{f:dc},18:{f:tc},19:{f:wr},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:uf},40:{},42:{},43:{f:ma},44:{f:ga},45:{f:_a},46:{f:ka},47:{f:Sa},48:{},49:{f:vr},50:{},51:{f:$a},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Lo},62:{f:cc},63:{f:Ka},64:{f:Nc},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:zn,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:Oc},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Fl},148:{f:Nl,p:16},151:{f:Ec},152:{},153:{f:af},154:{},155:{},156:{f:rf},157:{},158:{},159:{T:1,f:Yo},160:{T:-1},161:{T:1,f:Zr},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:bc},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Ua},336:{T:-1},337:{f:Va,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Nr},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Co},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Tc},427:{f:kc},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:Ac},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:jl},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:wc},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Nr},551:{f:Dr},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:os},633:{T:1},634:{T:-1},635:{T:1,f:rs},636:{T:-1},637:{f:Er},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:Xc},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:Rc},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function Nf(t,e,n,r){var i=e;if(!isNaN(i)){var o=r||(n||[]).length||0,a=t.next(4);a.write_shift(2,i),a.write_shift(2,o),o>0&&Tn(n)&&t.push(n)}}function Rf(t,e,n,r){var i=r||(n||[]).length||0;if(i<=8224)return Nf(t,e,n,i);var o=e;if(!isNaN(o)){var a=n.parts||[],s=0,u=0,l=0;while(l+(a[s]||8224)<=8224)l+=a[s]||8224,s++;var c=t.next(4);c.write_shift(2,o),c.write_shift(2,l),t.push(n.slice(u,u+l)),u+=l;while(u<i){c=t.next(4),c.write_shift(2,60),l=0;while(l+(a[s]||8224)<=8224)l+=a[s]||8224,s++;c.write_shift(2,l),t.push(n.slice(u,u+l)),u+=l}}}function jf(t,e,n,r){var i=Zn(9);return jo(i,t,e),Vi(n,r||"b",i),i}function Ff(t,e,n){var r=Zn(8+2*n.length);return jo(r,t,e),r.write_shift(1,n.length),r.write_shift(n.length,n,"sbcs"),r.l<r.length?r.slice(0,r.l):r}function Bf(t,e){e.forEach((function(e){var n=e[0].map((function(t){return t.t})).join("");if(n.length<=2048)return Nf(t,28,Ao(n,e[1],e[2]));Nf(t,28,Ao(n.slice(0,2048),e[1],e[2],n.length));for(var r=2048;r<n.length;r+=2048)Nf(t,28,Ao(n.slice(r,Math.min(r+2048,n.length)),-1,-1,Math.min(2048,n.length-r)))}))}function zf(t,e,n,r,i,o){var a=0;null!=e.z&&(a=i._BIFF2FmtTable.indexOf(e.z),-1==a&&(i._BIFF2FmtTable.push(e.z),a=i._BIFF2FmtTable.length-1));var s=0;if(null!=e.z){for(;s<i.cellXfs.length;++s)if(i.cellXfs[s].numFmtId==a)break;s==i.cellXfs.length&&i.cellXfs.push({numFmtId:a})}if(null!=e.v)switch(e.t){case"d":case"n":var u="d"==e.t?ae(fe(e.v,o),o):e.v;return void(2==i.biff&&u==(0|u)&&u>=0&&u<65536?Nf(t,2,Bo(n,r,u,s,a)):isNaN(u)?Nf(t,5,jf(n,r,36,"e")):isFinite(u)?Nf(t,3,Fo(n,r,u,s,a)):Nf(t,5,jf(n,r,7,"e")));case"b":case"e":return void Nf(t,5,jf(n,r,e.v,e.t));case"s":case"str":return void Nf(t,4,Ff(n,r,null==e.v?"":String(e.v).slice(0,255)))}Nf(t,1,jo(null,n,r))}function Zf(t,e,n,r,i){var o=null!=e["!data"],a=lr(e["!ref"]||"A1"),s="",u=[];if(a.e.c>255||a.e.r>16383){if(r.WTF)throw new Error("Range "+(e["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383)}for(var l=(((i||{}).Workbook||{}).WBProps||{}).date1904,c=[],f=[],h=a.s.c;h<=a.e.c;++h)u[h]=Qn(h);for(var d=a.s.r;d<=a.e.r;++d)for(o&&(c=e["!data"][d]||[]),s=Xn(d),h=a.s.c;h<=a.e.c;++h){var p=o?c[h]:e[u[h]+s];p&&(zf(t,p,d,h,r,l),p.c&&f.push([p.c,d,h]))}Bf(t,f)}function Uf(t,e){for(var n=e||{},r=Un(),i=0,o=0;o<t.SheetNames.length;++o)t.SheetNames[o]==n.sheet&&(i=o);if(0==i&&n.sheet&&t.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);Nf(r,4==n.biff?1033:3==n.biff?521:9,ao(t,16,n)),((t.Workbook||{}).WBProps||{}).date1904&&Nf(r,34,$i(!0)),n.cellXfs=[{numFmtId:0}],n._BIFF2FmtTable=["General"],n._Fonts=[];var a=Un();return Zf(a,t.Sheets[t.SheetNames[i]],i,n,t),n._BIFF2FmtTable.forEach((function(t){n.biff<=3?Nf(r,30,mo(t)):Nf(r,1054,yo(t))})),n.cellXfs.forEach((function(t){switch(n.biff){case 2:Nf(r,67,_o(t));break;case 3:Nf(r,579,wo(t));break;case 4:Nf(r,1091,So(t));break}})),delete n._BIFF2FmtTable,delete n.cellXfs,delete n._Fonts,r.push(a.end()),Nf(r,10),r.end()}var Hf=1,$f=[];function Gf(){var t=Zn(82+8*$f.length);t.write_shift(2,15),t.write_shift(2,61440),t.write_shift(4,74+8*$f.length),t.write_shift(2,0),t.write_shift(2,61446),t.write_shift(4,16+8*$f.length),t.write_shift(4,Hf),t.write_shift(4,$f.length+1);for(var e=0,n=0;n<$f.length;++n)e+=$f[n]&&$f[n][1]||0;return t.write_shift(4,e),t.write_shift(4,$f.length),$f.forEach((function(e){t.write_shift(4,e[0]),t.write_shift(4,e[2])})),t.write_shift(2,51),t.write_shift(2,61451),t.write_shift(4,18),t.write_shift(2,191),t.write_shift(4,524296),t.write_shift(2,385),t.write_shift(4,134217793),t.write_shift(2,448),t.write_shift(4,134217792),t.write_shift(2,64),t.write_shift(2,61726),t.write_shift(4,16),t.write_shift(4,134217741),t.write_shift(4,134217740),t.write_shift(4,134217751),t.write_shift(4,268435703),t}function Wf(t,e){var n,r=[],i=0,o=Un(),a=Hf;e.forEach((function(t,e){var a="",s=t[0].map((function(t){return t.a&&!a&&(a=t.a),t.t})).join("");++Hf;var u=Zn(150);u.write_shift(2,15),u.write_shift(2,61444),u.write_shift(4,150),u.write_shift(2,3234),u.write_shift(2,61450),u.write_shift(4,8),u.write_shift(4,Hf),u.write_shift(4,2560),u.write_shift(2,227),u.write_shift(2,61451),u.write_shift(4,84),u.write_shift(2,128),u.write_shift(4,0),u.write_shift(2,139),u.write_shift(4,2),u.write_shift(2,191),u.write_shift(4,524296),u.write_shift(2,344),u.l+=4,u.write_shift(2,385),u.write_shift(4,134217808),u.write_shift(2,387),u.write_shift(4,134217808),u.write_shift(2,389),u.write_shift(4,268435700),u.write_shift(2,447),u.write_shift(4,1048592),u.write_shift(2,448),u.write_shift(4,134217809),u.write_shift(2,451),u.write_shift(4,268435700),u.write_shift(2,513),u.write_shift(4,134217809),u.write_shift(2,515),u.write_shift(4,268435700),u.write_shift(2,575),u.write_shift(4,196609),u.write_shift(2,959),u.write_shift(4,131072|(t[0].hidden?2:0)),u.l+=2,u.write_shift(2,61456),u.write_shift(4,18),u.write_shift(2,3),u.write_shift(2,t[2]+2),u.l+=2,u.write_shift(2,t[1]+1),u.l+=2,u.write_shift(2,t[2]+4),u.l+=2,u.write_shift(2,t[1]+5),u.l+=2,u.l+=2,u.write_shift(2,61457),u.l+=4,u.l=150,0==e?n=u:Nf(o,236,u),i+=150;var l=Zn(52);l.write_shift(2,21),l.write_shift(2,18),l.write_shift(2,25),l.write_shift(2,Hf),l.write_shift(2,0),l.l=22,l.write_shift(2,13),l.write_shift(2,22),l.write_shift(4,1651663474),l.write_shift(4,2503426821),l.write_shift(4,2150634280),l.write_shift(4,1768515844+256*Hf),l.write_shift(2,0),l.write_shift(4,0),l.l+=4,Nf(o,93,l);var c=Zn(8);c.l+=2,c.write_shift(2,61453),c.l+=4,Nf(o,236,c),i+=8;var f=Zn(18);f.write_shift(2,18),f.l+=8,f.write_shift(2,s.length),f.write_shift(2,16),f.l+=4,Nf(o,438,f);var h=Zn(1+s.length);h.write_shift(1,0),h.write_shift(s.length,s,"sbcs"),Nf(o,60,h);var d=Zn(16);d.l+=8,d.write_shift(2,s.length),d.l+=6,Nf(o,60,d);var p=Zn(12+a.length);p.write_shift(2,t[1]),p.write_shift(2,t[2]),p.write_shift(2,0|(t[0].hidden?0:2)),p.write_shift(2,Hf),p.write_shift(2,a.length),p.write_shift(1,0),p.write_shift(a.length,a,"sbcs"),p.l++,r.push(p)}));var s=Zn(80);s.write_shift(2,15),s.write_shift(2,61442),s.write_shift(4,i+s.length-8),s.write_shift(2,16),s.write_shift(2,61448),s.write_shift(4,8),s.write_shift(4,e.length+1),s.write_shift(4,Hf),s.write_shift(2,15),s.write_shift(2,61443),s.write_shift(4,i+48),s.write_shift(2,15),s.write_shift(2,61444),s.write_shift(4,40),s.write_shift(2,1),s.write_shift(2,61449),s.write_shift(4,16),s.l+=16,s.write_shift(2,2),s.write_shift(2,61450),s.write_shift(4,8),s.write_shift(4,a),s.write_shift(4,5),Nf(t,236,n?D([s,n]):s),t.push(o.end()),r.forEach((function(e){Nf(t,28,e)})),$f.push([a,e.length+1,Hf]),++Hf}function Vf(t,e,n){Nf(t,49,ho({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},n))}function Yf(t,e,n){e&&[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var i=r[0];i<=r[1];++i)null!=e[i]&&Nf(t,1054,vo(i,e[i],n))}))}function Xf(t,e){var n=Zn(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),Nf(t,2151,n),n=Zn(39),n.write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),oo(lr(e["!ref"]||"A1"),n),n.write_shift(4,4),Nf(t,2152,n)}function qf(t,e){for(var n=0;n<16;++n)Nf(t,224,xo({numFmtId:0,style:!0},0,e));e.cellXfs.forEach((function(n){Nf(t,224,xo(n,0,e))}))}function Kf(t,e){for(var n=0;n<e["!links"].length;++n){var r=e["!links"][n];Nf(t,440,Oo(r)),r[1].Tooltip&&Nf(t,2048,Do(r))}delete e["!links"]}function Jf(t,e){if(e){var n=0;e.forEach((function(e,r){++n<=256&&e&&Nf(t,125,No(vl(r,e),r))}))}}function Qf(t,e,n,r,i,o){var a=16+yl(i.cellXfs,e,i);if(null!=e.v||e.bf)if(e.bf)Nf(t,6,Gu(e,n,r,i,a));else switch(e.t){case"d":case"n":var s="d"==e.t?ae(fe(e.v,o),o):e.v;isNaN(s)?Nf(t,517,To(n,r,36,a,i,"e")):isFinite(s)?Nf(t,515,ko(n,r,s,a,i)):Nf(t,517,To(n,r,7,a,i,"e"));break;case"b":case"e":Nf(t,517,To(n,r,e.v,a,i,e.t));break;case"s":case"str":if(i.bookSST){var u=gl(i.Strings,null==e.v?"":String(e.v),i.revStrings);Nf(t,253,po(n,r,u,a,i))}else Nf(t,516,go(n,r,(null==e.v?"":String(e.v)).slice(0,255),a,i));break;default:Nf(t,513,no(n,r,a))}else Nf(t,513,no(n,r,a))}function th(t,e,n){var r,i=Un(),o=n.SheetNames[t],a=n.Sheets[o]||{},s=(n||{}).Workbook||{},u=(s.Sheets||[])[t]||{},l=null!=a["!data"],c=8==e.biff,f="",h=[],d=lr(a["!ref"]||"A1"),p=c?65536:16384;if(d.e.c>255||d.e.r>=p){if(e.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");d.e.c=Math.min(d.e.c,255),d.e.r=Math.min(d.e.c,p-1)}Nf(i,2057,ao(n,16,e)),Nf(i,13,Wi(1)),Nf(i,12,Wi(100)),Nf(i,15,$i(!0)),Nf(i,17,$i(!1)),Nf(i,16,$r(.001)),Nf(i,95,$i(!0)),Nf(i,42,$i(!1)),Nf(i,43,$i(!1)),Nf(i,130,Wi(1)),Nf(i,128,Eo([0,0])),Nf(i,131,$i(!1)),Nf(i,132,$i(!1)),c&&Jf(i,a["!cols"]),Nf(i,512,bo(d,e));var g=(((n||{}).Workbook||{}).WBProps||{}).date1904;c&&(a["!links"]=[]);for(var v=d.s.c;v<=d.e.c;++v)h[v]=Qn(v);for(var m=[],y=[],b=d.s.r;b<=d.e.r;++b)for(l&&(y=a["!data"][b]||[]),f=Xn(b),v=d.s.c;v<=d.e.c;++v){r=h[v]+f;var x=l?y[v]:a[r];x&&(Qf(i,x,b,v,e,g),c&&x.l&&a["!links"].push([r,x.l]),x.c&&m.push([x.c,b,v]))}var _=u.CodeName||u.name||o;return c?Wf(i,m):Bf(i,m),c&&Nf(i,574,fo((s.Views||[])[0])),c&&(a["!merges"]||[]).length&&Nf(i,229,Io(a["!merges"])),c&&Kf(i,a),Nf(i,442,Qi(_,e)),c&&Xf(i,a),Nf(i,10),i.end()}function eh(t,e,n){var r=Un(),i=(t||{}).Workbook||{},o=i.Sheets||[],a=i.WBProps||{},s=8==n.biff,u=5==n.biff;if(Nf(r,2057,ao(t,5,n)),"xla"==n.bookType&&Nf(r,135),Nf(r,225,s?Wi(1200):null),Nf(r,193,Ui(2)),u&&Nf(r,191),u&&Nf(r,192),Nf(r,226),Nf(r,92,so("SheetJS",n)),Nf(r,66,Wi(s?1200:1252)),s&&Nf(r,353,Wi(0)),s&&Nf(r,448),Nf(r,317,Ro(t.SheetNames.length)),s&&t.vbaraw&&Nf(r,211),s&&t.vbaraw){var l=a.CodeName||"ThisWorkbook";Nf(r,442,Qi(l,n))}Nf(r,156,Wi(17)),Nf(r,25,$i(!1)),Nf(r,18,$i(!1)),Nf(r,19,Wi(0)),s&&Nf(r,431,$i(!1)),s&&Nf(r,444,Wi(0)),Nf(r,61,co(n)),Nf(r,64,$i(!1)),Nf(r,141,Wi(0)),Nf(r,34,$i("true"==Kc(t))),Nf(r,14,$i(!0)),s&&Nf(r,439,$i(!1)),Nf(r,218,Wi(0)),Vf(r,t,n),Yf(r,t.SSF,n),qf(r,n),s&&Nf(r,352,$i(!1));var c=r.end(),f=Un();s&&Nf(f,140,Po()),s&&$f.length&&Nf(f,235,Gf()),s&&n.Strings&&Rf(f,252,lo(n.Strings,n)),Nf(f,10);var h=f.end(),d=Un(),p=0,g=0;for(g=0;g<t.SheetNames.length;++g)p+=(s?12:11)+(s?2:1)*t.SheetNames[g].length;var v=c.length+p+h.length;for(g=0;g<t.SheetNames.length;++g){var m=o[g]||{};Nf(d,133,uo({pos:v,hs:m.Hidden||0,dt:0,name:t.SheetNames[g]},n)),v+=e[g].length}var y=d.end();if(p!=y.length)throw new Error("BS8 "+p+" != "+y.length);var b=[];return c.length&&b.push(c),y.length&&b.push(y),h.length&&b.push(h),D(b)}function nh(t,e){var n=e||{},r=[];t&&!t.SSF&&(t.SSF=de(X)),t&&t.SSF&&(Zt(),zt(t.SSF),n.revssf=ee(t.SSF),n.revssf[t.SSF[65535]]=0,n.ssf=t.SSF),Hf=1,$f=[],n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,ld(n),n.cellXfs=[],yl(n.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var i=0;i<t.SheetNames.length;++i)r[r.length]=th(i,n,t);return r.unshift(eh(t,r,n)),D(r)}function rh(t,e){for(var n=0;n<=t.SheetNames.length;++n){var r=t.Sheets[t.SheetNames[n]];if(r&&r["!ref"]){var i=or(r["!ref"]);i.e.c>255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+t.SheetNames[n]+"' extends beyond column IV (255).  Data may be lost.")}}var o=e||{};switch(o.biff||2){case 8:case 5:return nh(t,e);case 4:case 3:case 2:return Uf(t,e)}throw new Error("invalid type "+o.bookType+" for BIFF")}function ih(t,e,n,r){for(var i=t["!merges"]||[],o=[],a={},s=null!=t["!data"],u=e.s.c;u<=e.e.c;++u){for(var l=0,c=0,f=0;f<i.length;++f)if(!(i[f].s.r>n||i[f].s.c>u)&&!(i[f].e.r<n||i[f].e.c<u)){if(i[f].s.r<n||i[f].s.c<u){l=-1;break}l=i[f].e.r-i[f].s.r+1,c=i[f].e.c-i[f].s.c+1;break}if(!(l<0)){var h=Qn(u)+Xn(n),d=s?(t["!data"][n]||[])[u]:t[h],p=d&&null!=d.v&&(d.h||Re(d.w||(fr(d),d.w)||""))||"";a={},l>1&&(a.rowspan=l),c>1&&(a.colspan=c),r.editable?p='<span contenteditable="true">'+p+"</span>":d&&(a["data-t"]=d&&d.t||"z",null!=d.v&&(a["data-v"]=Re(d.v instanceof Date?d.v.toISOString():d.v)),null!=d.z&&(a["data-z"]=d.z),d.l&&"#"!=(d.l.Target||"#").charAt(0)&&(p='<a href="'+Re(d.l.Target)+'">'+p+"</a>")),a.id=(r.id||"sjs")+"-"+h,o.push(qe("td",p,a))}}var g="<tr>";return g+o.join("")+"</tr>"}var oh='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',ah="</body></html>";function sh(t,e,n){var r=[];return r.join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}function uh(t,e){var n=e||{},r=null!=n.header?n.header:oh,i=null!=n.footer?n.footer:ah,o=[r],a=or(t["!ref"]||"A1");if(o.push(sh(t,a,n)),t["!ref"])for(var s=a.s.r;s<=a.e.r;++s)o.push(ih(t,a,s,n));return o.push("</table>"+i),o.join("")}function lh(t,e,n){var r=e.rows;if(!r)throw"Unsupported origin when "+e.tagName+" is not a TABLE";var i=n||{},o=null!=t["!data"],a=0,s=0;if(null!=i.origin)if("number"==typeof i.origin)a=i.origin;else{var u="string"==typeof i.origin?rr(i.origin):i.origin;a=u.r,s=u.c}var l=Math.min(i.sheetRows||1e7,r.length),c={s:{r:0,c:0},e:{r:a,c:s}};if(t["!ref"]){var f=or(t["!ref"]);c.s.r=Math.min(c.s.r,f.s.r),c.s.c=Math.min(c.s.c,f.s.c),c.e.r=Math.max(c.e.r,f.e.r),c.e.c=Math.max(c.e.c,f.e.c),-1==a&&(c.e.r=a=f.e.r+1)}var h=[],d=0,p=t["!rows"]||(t["!rows"]=[]),g=0,v=0,m=0,y=0,b=0,x=0;for(t["!cols"]||(t["!cols"]=[]);g<r.length&&v<l;++g){var _=r[g];if(hh(_)){if(i.display)continue;p[v]={hidden:!0}}var w=_.cells;for(m=y=0;m<w.length;++m){var S=w[m];if(!i.display||!hh(S)){var E=S.hasAttribute("data-v")?S.getAttribute("data-v"):S.hasAttribute("v")?S.getAttribute("v"):We(S.innerHTML),T=S.getAttribute("data-z")||S.getAttribute("z");for(d=0;d<h.length;++d){var k=h[d];k.s.c==y+s&&k.s.r<v+a&&v+a<=k.e.r&&(y=k.e.c+1-s,d=-1)}x=+S.getAttribute("colspan")||1,((b=+S.getAttribute("rowspan")||1)>1||x>1)&&h.push({s:{r:v+a,c:y+s},e:{r:v+a+(b||1)-1,c:y+s+(x||1)-1}});var C={t:"s",v:E},M=S.getAttribute("data-t")||S.getAttribute("t")||"";null!=E&&(0==E.length?C.t=M||"z":i.raw||0==E.trim().length||"s"==M||("TRUE"===E?C={t:"b",v:!0}:"FALSE"===E?C={t:"b",v:!1}:isNaN(ge(E))?isNaN(Se(E).getDate())||(C={t:"d",v:fe(E)},i.UTC&&(C.v=Te(C.v)),i.cellDates||(C={t:"n",v:ae(C.v)}),C.z=i.dateNF||X[14]):C={t:"n",v:ge(E)})),void 0===C.z&&null!=T&&(C.z=T);var A="",I=S.getElementsByTagName("A");if(I&&I.length)for(var O=0;O<I.length;++O)if(I[O].hasAttribute("href")&&(A=I[O].getAttribute("href"),"#"!=A.charAt(0)))break;A&&"#"!=A.charAt(0)&&"javascript:"!=A.slice(0,11).toLowerCase()&&(C.l={Target:A}),o?(t["!data"][v+a]||(t["!data"][v+a]=[]),t["!data"][v+a][y+s]=C):t[ir({c:y+s,r:v+a})]=C,c.e.c<y+s&&(c.e.c=y+s),y+=x}}++v}return h.length&&(t["!merges"]=(t["!merges"]||[]).concat(h)),c.e.r=Math.max(c.e.r,v-1+a),t["!ref"]=ar(c),v>=l&&(t["!fullref"]=ar((c.e.r=r.length-g+v-1+a,c))),t}function ch(t,e){var n=e||{},r={};return n.dense&&(r["!data"]=[]),lh(r,t,e)}function fh(t,e){var n=hr(ch(t,e),e);return n}function hh(t){var e="",n=dh(t);return n&&(e=n(t).getPropertyValue("display")),e||(e=t.style&&t.style.display),"none"===e}function dh(t){return t.ownerDocument.defaultView&&"function"===typeof t.ownerDocument.defaultView.getComputedStyle?t.ownerDocument.defaultView.getComputedStyle:"function"===typeof getComputedStyle?getComputedStyle:null}var ph=function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),e="<office:document-styles "+Xe({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return Me+e}}();function gh(t,e){var n="number",r="",i={"style:name":e},o="",a=0;t=t.replace(/"[$]"/g,"$");t:if(t.indexOf(";")>-1&&(console.error("Unsupported ODS Style Map exported.  Using first branch of "+t),t=t.slice(0,t.indexOf(";"))),"@"!=t){if(t.indexOf(/\$/)>-1&&(n="currency"),'"'==t[a]){o="";while('"'!=t[++a]||'"'==t[++a])o+=t[a];--a,"*"==t[a+1]?(a++,r+="<number:fill-character>"+Pe(o.replace(/""/g,'"'))+"</number:fill-character>"):r+="<number:text>"+Pe(o.replace(/""/g,'"'))+"</number:text>",t=t.slice(a+1),a=0}var s=t.match(/# (\?+)\/(\?+)/);if(s)r+=qe("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":s[1].length,"number:max-denominator-value":Math.max(+s[1].replace(/./g,"9"),+s[2].replace(/./g,"9"))});else if(s=t.match(/# (\?+)\/(\d+)/))r+=qe("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":s[1].length,"number:denominator-value":+s[2]});else if(s=t.match(/\b(\d+)(|\.\d+)%/))n="percentage",r+=qe("number:number",null,{"number:decimal-places":s[2]&&s.length-1||0,"number:min-decimal-places":s[2]&&s.length-1||0,"number:min-integer-digits":s[1].length})+"<number:text>%</number:text>";else{var u=!1;if(["y","m","d"].indexOf(t[0])>-1){n="date";e:for(;a<t.length;++a)switch(o=t[a].toLowerCase()){case"h":case"s":u=!0,--a;break e;case"m":n:for(var l=a+1;l<t.length;++l)switch(t[l]){case"y":case"d":break n;case"h":case"s":u=!0,--a;break e}case"y":case"d":while((t[++a]||"").toLowerCase()==o[0])o+=o[0];switch(--a,o){case"y":case"yy":r+="<number:year/>";break;case"yyy":case"yyyy":r+='<number:year number:style="long"/>';break;case"mmmmm":console.error("ODS has no equivalent of format |mmmmm|");case"m":case"mm":case"mmm":case"mmmm":r+='<number:month number:style="'+(o.length%2?"short":"long")+'" number:textual="'+(o.length>=3?"true":"false")+'"/>';break;case"d":case"dd":r+='<number:day number:style="'+(o.length%2?"short":"long")+'"/>';break;case"ddd":case"dddd":r+='<number:day-of-week number:style="'+(o.length%2?"short":"long")+'"/>';break}break;case'"':while('"'!=t[++a]||'"'==t[++a])o+=t[a];--a,r+="<number:text>"+Pe(o.slice(1).replace(/""/g,'"'))+"</number:text>";break;case"\\":o=t[++a],r+="<number:text>"+Pe(o)+"</number:text>";break;case"/":case":":r+="<number:text>"+Pe(o)+"</number:text>";break;default:console.error("unrecognized character "+o+" in ODF format "+t)}if(!u)break t;t=t.slice(a+1),a=0}if(t.match(/^\[?[hms]/))for("number"==n&&(n="time"),t.match(/\[/)&&(t=t.replace(/[\[\]]/g,""),i["number:truncate-on-overflow"]="false");a<t.length;++a)switch(o=t[a].toLowerCase()){case"h":case"m":case"s":while((t[++a]||"").toLowerCase()==o[0])o+=o[0];switch(--a,o){case"h":case"hh":r+='<number:hours number:style="'+(o.length%2?"short":"long")+'"/>';break;case"m":case"mm":r+='<number:minutes number:style="'+(o.length%2?"short":"long")+'"/>';break;case"s":case"ss":if("."==t[a+1])do{o+=t[a+1],++a}while("0"==t[a+1]);r+='<number:seconds number:style="'+(o.match("ss")?"long":"short")+'"'+(o.match(/\./)?' number:decimal-places="'+(o.match(/0+/)||[""])[0].length+'"':"")+"/>";break}break;case'"':while('"'!=t[++a]||'"'==t[++a])o+=t[a];--a,r+="<number:text>"+Pe(o.slice(1).replace(/""/g,'"'))+"</number:text>";break;case"/":case":":r+="<number:text>"+Pe(o)+"</number:text>";break;case"a":if("a/p"==t.slice(a,a+3).toLowerCase()){r+="<number:am-pm/>",a+=2;break}if("am/pm"==t.slice(a,a+5).toLowerCase()){r+="<number:am-pm/>",a+=4;break}default:console.error("unrecognized character "+o+" in ODF format "+t)}else{if(t.indexOf(/\$/)>-1&&(n="currency"),"$"==t[0]&&(r+='<number:currency-symbol number:language="en" number:country="US">$</number:currency-symbol>',t=t.slice(1),a=0),a=0,'"'==t[a]){while('"'!=t[++a]||'"'==t[++a])o+=t[a];--a,"*"==t[a+1]?(a++,r+="<number:fill-character>"+Pe(o.replace(/""/g,'"'))+"</number:fill-character>"):r+="<number:text>"+Pe(o.replace(/""/g,'"'))+"</number:text>",t=t.slice(a+1),a=0}var c=t.match(/([#0][0#,]*)(\.[0#]*|)(E[+]?0*|)/i);if(c&&c[0]){var f=c[1].replace(/,/g,"");r+="<number:"+(c[3]?"scientific-":"")+'number number:min-integer-digits="'+(-1==f.indexOf("0")?"0":f.length-f.indexOf("0"))+'"'+(c[0].indexOf(",")>-1?' number:grouping="true"':"")+(c[2]&&' number:decimal-places="'+(c[2].length-1)+'"'||' number:decimal-places="0"')+(c[3]&&c[3].indexOf("+")>-1?' number:forced-exponent-sign="true"':"")+(c[3]?' number:min-exponent-digits="'+c[3].match(/0+/)[0].length+'"':"")+"></number:"+(c[3]?"scientific-":"")+"number>",a=c.index+c[0].length}else console.error("Could not find numeric part of "+t);if('"'==t[a]){o="";while('"'!=t[++a]||'"'==t[++a])o+=t[a];--a,r+="<number:text>"+Pe(o.replace(/""/g,'"'))+"</number:text>"}}}}else n="text",r="<number:text-content/>";return r?qe("number:"+n+"-style",r,i):(console.error("Could not generate ODS number format for |"+t+"|"),"")}function vh(t,e,n){for(var r=[],i=0;i<t.length;++i){var o=t[i];o&&(o.Sheet==(-1==n?null:n)&&r.push(o))}return r.length?"      <table:named-expressions>\n"+r.map((function(t){var e=(-1==n?"$":"")+dl(t.Ref);return"        "+qe("table:named-range",null,{"table:name":t.Name,"table:cell-range-address":e,"table:base-cell-address":e.replace(/[\.][^\.]*$/,".$A$1")})})).join("\n")+"\n      </table:named-expressions>\n":""}var mh=function(){var t=function(t,e){return Pe(t).replace(/  +/g,(function(t){return'<text:s text:c="'+t.length+'"/>'})).replace(/\t/g,"<text:tab/>").replace(/\n/g,e?"<text:line-break/>":"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},e="          <table:table-cell />\n",n=function(n,r,i,o,a,s){var u=[];u.push('      <table:table table:name="'+Pe(r.SheetNames[i])+'" table:style-name="ta1">\n');var l=0,c=0,f=or(n["!ref"]||"A1"),h=n["!merges"]||[],d=0,p=null!=n["!data"];if(n["!cols"])for(c=0;c<=f.e.c;++c)u.push("        <table:table-column"+(n["!cols"][c]?' table:style-name="co'+n["!cols"][c].ods+'"':"")+"></table:table-column>\n");var g="",v=n["!rows"]||[];for(l=0;l<f.s.r;++l)g=v[l]?' table:style-name="ro'+v[l].ods+'"':"",u.push("        <table:table-row"+g+"></table:table-row>\n");for(;l<=f.e.r;++l){for(g=v[l]?' table:style-name="ro'+v[l].ods+'"':"",u.push("        <table:table-row"+g+">\n"),c=0;c<f.s.c;++c)u.push(e);for(;c<=f.e.c;++c){var m=!1,y={},b="";for(d=0;d!=h.length;++d)if(!(h[d].s.c>c)&&!(h[d].s.r>l)&&!(h[d].e.c<c)&&!(h[d].e.r<l)){h[d].s.c==c&&h[d].s.r==l||(m=!0),y["table:number-columns-spanned"]=h[d].e.c-h[d].s.c+1,y["table:number-rows-spanned"]=h[d].e.r-h[d].s.r+1;break}if(m)u.push("          <table:covered-table-cell/>\n");else{var x=ir({r:l,c:c}),_=p?(n["!data"][l]||[])[c]:n[x];if(_&&_.f&&(y["table:formula"]=Pe(hl(_.f)),_.F&&_.F.slice(0,x.length)==x)){var w=or(_.F);y["table:number-matrix-columns-spanned"]=w.e.c-w.s.c+1,y["table:number-matrix-rows-spanned"]=w.e.r-w.s.r+1}if(_){switch(_.t){case"b":b=_.v?"TRUE":"FALSE",y["office:value-type"]="boolean",y["office:boolean-value"]=_.v?"true":"false";break;case"n":b=_.w||String(_.v||0),y["office:value-type"]="float",y["office:value"]=_.v||0;break;case"s":case"str":b=null==_.v?"":_.v,y["office:value-type"]="string";break;case"d":b=_.w||fe(_.v,s).toISOString(),y["office:value-type"]="date",y["office:date-value"]=fe(_.v,s).toISOString(),y["table:style-name"]="ce1";break;default:u.push(e);continue}var S=t(b);if(_.l&&_.l.Target){var E=_.l.Target;E="#"==E.charAt(0)?"#"+dl(E.slice(1)):E,"#"==E.charAt(0)||E.match(/^\w+:/)||(E="../"+E),S=qe("text:a",S,{"xlink:href":E.replace(/&/g,"&amp;")})}a[_.z]&&(y["table:style-name"]="ce"+a[_.z].slice(1));var T=qe("text:p",S,{});if(_.c){for(var k="",C="",M={},A=0;A<_.c.length;++A)!k&&_.c[A].a&&(k=_.c[A].a),C+="<text:p>"+t(_.c[A].t)+"</text:p>";_.c.hidden||(M["office:display"]=!0),T=qe("office:annotation",C,M)+T}u.push("          "+qe("table:table-cell",T,y)+"\n")}else u.push(e)}}u.push("        </table:table-row>\n")}return(r.Workbook||{}).Names&&u.push(vh(r.Workbook.Names,r.SheetNames,i)),u.push("      </table:table>\n"),u.join("")},r=function(t,e){t.push(" <office:automatic-styles>\n");var n=0;e.SheetNames.map((function(t){return e.Sheets[t]})).forEach((function(e){if(e&&e["!cols"])for(var r=0;r<e["!cols"].length;++r)if(e["!cols"][r]){var i=e["!cols"][r];if(null==i.width&&null==i.wpx&&null==i.wch)continue;sa(i),i.ods=n;var o=e["!cols"][r].wpx+"px";t.push('  <style:style style:name="co'+n+'" style:family="table-column">\n'),t.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+o+'"/>\n'),t.push("  </style:style>\n"),++n}}));var r=0;e.SheetNames.map((function(t){return e.Sheets[t]})).forEach((function(e){if(e&&e["!rows"])for(var n=0;n<e["!rows"].length;++n)if(e["!rows"][n]){e["!rows"][n].ods=r;var i=e["!rows"][n].hpx+"px";t.push('  <style:style style:name="ro'+r+'" style:family="table-row">\n'),t.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+i+'"/>\n'),t.push("  </style:style>\n"),++r}})),t.push('  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),t.push('   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),t.push("  </style:style>\n"),t.push('  <number:date-style style:name="N37" number:automatic-order="true">\n'),t.push('   <number:month number:style="long"/>\n'),t.push("   <number:text>/</number:text>\n"),t.push('   <number:day number:style="long"/>\n'),t.push("   <number:text>/</number:text>\n"),t.push("   <number:year/>\n"),t.push("  </number:date-style>\n");var i={},o=69;return e.SheetNames.map((function(t){return e.Sheets[t]})).forEach((function(e){if(e){var n=null!=e["!data"];if(e["!ref"])for(var r=or(e["!ref"]),a=0;a<=r.e.r;++a)for(var s=0;s<=r.e.c;++s){var u=n?(e["!data"][a]||[])[s]:e[ir({r:a,c:s})];if(u&&u.z&&"general"!=u.z.toLowerCase()&&!i[u.z]){var l=gh(u.z,"N"+o);l&&(i[u.z]="N"+o,++o,t.push(l+"\n"))}}}})),t.push('  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),Jt(i).forEach((function(e){t.push('<style:style style:name="ce'+i[e].slice(1)+'" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="'+i[e]+'"/>\n')})),t.push(" </office:automatic-styles>\n"),i};return function(t,e){var i=[Me],o=Xe({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),a=Xe({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==e.bookType?(i.push("<office:document"+o+a+">\n"),i.push(Ti().replace(/<office:document-meta[^<>]*?>/,"").replace(/<\/office:document-meta>/,"")+"\n")):i.push("<office:document-content"+o+">\n");var s=r(i,t);i.push("  <office:body>\n"),i.push("    <office:spreadsheet>\n"),((t.Workbook||{}).WBProps||{}).date1904&&i.push('      <table:calculation-settings table:case-sensitive="false" table:search-criteria-must-apply-to-whole-cell="true" table:use-wildcards="true" table:use-regular-expressions="false" table:automatic-find-labels="false">\n        <table:null-date table:date-value="1904-01-01"/>\n      </table:calculation-settings>\n');for(var u=0;u!=t.SheetNames.length;++u)i.push(n(t.Sheets[t.SheetNames[u]],t,u,e,s,((t.Workbook||{}).WBProps||{}).date1904));return(t.Workbook||{}).Names&&i.push(vh(t.Workbook.Names,t.SheetNames,-1)),i.push("    </office:spreadsheet>\n"),i.push("  </office:body>\n"),"fods"==e.bookType?i.push("</office:document>"):i.push("</office:document-content>"),i.join("")}}();function yh(t,e){if("fods"==e.bookType)return mh(t,e);var n=Ce(),r="",i=[],o=[];return r="mimetype",ke(n,r,"application/vnd.oasis.opendocument.spreadsheet"),r="content.xml",ke(n,r,mh(t,e)),i.push([r,"text/xml"]),o.push([r,"ContentFile"]),r="styles.xml",ke(n,r,ph(t,e)),i.push([r,"text/xml"]),o.push([r,"StylesFile"]),r="meta.xml",ke(n,r,Me+Ti()),i.push([r,"text/xml"]),o.push([r,"MetadataFile"]),r="manifest.rdf",ke(n,r,Ei(o)),i.push([r,"application/rdf+xml"]),r="META-INF/manifest.xml",ke(n,r,_i(i)),n}
/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */var bh=function(){try{return"undefined"==typeof Uint8Array||"undefined"==typeof Uint8Array.prototype.subarray?"slice":"undefined"!==typeof Buffer?"undefined"==typeof Buffer.prototype.subarray?"slice":("function"==typeof Buffer.from?Buffer.from([72,62]):new Buffer([72,62]))instanceof Uint8Array?"subarray":"slice":"subarray"}catch($d){return"slice"}}();function xh(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function _h(t){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(t):$e(I(t))}function wh(t){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t):M(Ge(t))}function Sh(t){for(var e=0,n=0;n<t.length;++n)e+=t[n].length;var r=new Uint8Array(e),i=0;for(n=0;n<t.length;++n){var o=t[n],a=o.length;if(a<250)for(var s=0;s<a;++s)r[i++]=o[s];else r.set(o,i),i+=a}return r}function Eh(t,e,n){var r=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-16,i=n/Math.pow(10,r-6176);t[e+15]|=r>>7,t[e+14]|=(127&r)<<1;for(var o=0;i>=1;++o,i/=256)t[e+o]=255&i;t[e+15]|=n>=0?0:128}function Th(t,e){var n=e.l,r=127&t[n];t:if(t[n++]>=128){if(r|=(127&t[n])<<7,t[n++]<128)break t;if(r|=(127&t[n])<<14,t[n++]<128)break t;if(r|=(127&t[n])<<21,t[n++]<128)break t;if(r+=(127&t[n])*Math.pow(2,28),++n,t[n++]<128)break t;if(r+=(127&t[n])*Math.pow(2,35),++n,t[n++]<128)break t;if(r+=(127&t[n])*Math.pow(2,42),++n,t[n++]<128)break t}return e.l=n,r}function kh(t){var e=new Uint8Array(7);e[0]=127&t;var n=1;t:if(t>127){if(e[n-1]|=128,e[n]=t>>7&127,++n,t<=16383)break t;if(e[n-1]|=128,e[n]=t>>14&127,++n,t<=2097151)break t;if(e[n-1]|=128,e[n]=t>>21&127,++n,t<=268435455)break t;if(e[n-1]|=128,e[n]=t/256>>>21&127,++n,t<=34359738367)break t;if(e[n-1]|=128,e[n]=t/65536>>>21&127,++n,t<=4398046511103)break t;e[n-1]|=128,e[n]=t/16777216>>>21&127,++n}return e[bh](0,n)}function Ch(t){var e={l:0},n=[];while(e.l<t.length)n.push(Th(t,e));return n}function Mh(t){return Sh(t.map((function(t){return kh(t)})))}function Ah(t){var e=0,n=127&t[e];return t[e++]<128?n:(n|=(127&t[e])<<7,t[e++]<128?n:(n|=(127&t[e])<<14,t[e++]<128?n:(n|=(127&t[e])<<21,t[e++]<128||(n|=(15&t[e])<<28),n)))}function Ih(t){var e=[],n={l:0};while(n.l<t.length){var r,i=n.l,o=Th(t,n),a=7&o;o=o/8|0;var s=n.l;switch(a){case 0:while(t[s++]>=128);r=t[bh](n.l,s),n.l=s;break;case 1:r=t[bh](s,s+8),n.l=s+8;break;case 2:var u=Th(t,n);r=t[bh](n.l,n.l+u),n.l+=u;break;case 5:r=t[bh](s,s+4),n.l=s+4;break;default:throw new Error("PB Type ".concat(a," for Field ").concat(o," at offset ").concat(i))}var l={data:r,type:a};null==e[o]&&(e[o]=[]),e[o].push(l)}return e}function Oh(t){var e=[];return t.forEach((function(t,n){0!=n&&t.forEach((function(t){t.data&&(e.push(kh(8*n+t.type)),2==t.type&&e.push(kh(t.data.length)),e.push(t.data))}))})),Sh(e)}function Dh(t,e){return(null==t?void 0:t.map((function(t){return e(t.data)})))||[]}function Ph(t){var e,n=[],r={l:0};while(r.l<t.length){var i=Th(t,r),o=Ih(t[bh](r.l,r.l+i));r.l+=i;var a={id:Ah(o[1][0].data),messages:[]};o[2].forEach((function(e){var n=Ih(e.data),i=Ah(n[3][0].data);a.messages.push({meta:n,data:t[bh](r.l,r.l+i)}),r.l+=i})),(null==(e=o[3])?void 0:e[0])&&(a.merge=Ah(o[3][0].data)>>>0>0),n.push(a)}return n}function Lh(t){var e=[];return t.forEach((function(t){var n=[[],[{data:kh(t.id),type:0}],[]];null!=t.merge&&(n[3]=[{data:kh(+!!t.merge),type:0}]);var r=[];t.messages.forEach((function(t){r.push(t.data),t.meta[3]=[{type:0,data:kh(t.data.length)}],n[2].push({data:Oh(t.meta),type:2})}));var i=Oh(n);e.push(kh(i.length)),e.push(i),r.forEach((function(t){return e.push(t)}))})),Sh(e)}function Nh(t,e){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));var n={l:0},r=Th(e,n),i=[],o=n.l;while(o<e.length){var a=3&e[o];if(0!=a){var s=0,u=0;if(1==a?(u=4+(e[o]>>2&7),s=(224&e[o++])<<3,s|=e[o++]):(u=1+(e[o++]>>2),2==a?(s=e[o]|e[o+1]<<8,o+=2):(s=(e[o]|e[o+1]<<8|e[o+2]<<16|e[o+3]<<24)>>>0,o+=4)),0==s)throw new Error("Invalid offset 0");var l=i.length-1,c=s;while(l>=0&&c>=i[l].length)c-=i[l].length,--l;if(l<0){if(0!=c)throw new Error("Invalid offset beyond length");c=i[l=0].length}if(u<c)i.push(i[l][bh](i[l].length-c,i[l].length-c+u));else{c>0&&(i.push(i[l][bh](i[l].length-c)),u-=c),++l;while(u>=i[l].length)i.push(i[l]),u-=i[l].length,++l;u&&i.push(i[l][bh](0,u))}i.length>25&&(i=[Sh(i)])}else{var f=e[o++]>>2;if(f<60)++f;else{var h=f-59;f=e[o],h>1&&(f|=e[o+1]<<8),h>2&&(f|=e[o+2]<<16),h>3&&(f|=e[o+3]<<24),f>>>=0,f++,o+=h}i.push(e[bh](o,o+f)),o+=f}}for(var d=0,p=0;p<i.length;++p)d+=i[p].length;if(d!=r)throw new Error("Unexpected length: ".concat(d," != ").concat(r));return i}function Rh(t){Array.isArray(t)&&(t=new Uint8Array(t));var e=[],n=0;while(n<t.length){var r=t[n++],i=t[n]|t[n+1]<<8|t[n+2]<<16;n+=3,e.push.apply(e,Nh(r,t[bh](n,n+i))),n+=i}if(n!==t.length)throw new Error("data is not a valid framed stream!");return 1==e.length?e[0]:Sh(e)}function jh(t){var e=[],n=0;while(n<t.length){var r=Math.min(t.length-n,268435455),i=new Uint8Array(4);e.push(i);var o=kh(r),a=o.length;e.push(o),r<=60?(a++,e.push(new Uint8Array([r-1<<2]))):r<=256?(a+=2,e.push(new Uint8Array([240,r-1&255]))):r<=65536?(a+=3,e.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(a+=4,e.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(a+=5,e.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),e.push(t[bh](n,n+r)),a+=r,i[0]=0,i[1]=255&a,i[2]=a>>8&255,i[3]=a>>16&255,n+=r}return Sh(e)}function Fh(t,e){var n=new Uint8Array(32),r=xh(n),i=12,o=0;switch(n[0]=5,t.t){case"n":if(t.z&&Pt(t.z)){n[1]=5,r.setFloat64(i,(se(t.v+1462).getTime()-Date.UTC(2001,0,1))/1e3,!0),o|=4,i+=8;break}n[1]=2,Eh(n,i,t.v),o|=1,i+=16;break;case"b":n[1]=6,r.setFloat64(i,t.v?1:0,!0),o|=2,i+=8;break;case"s":var a=null==t.v?"":String(t.v);if(t.l){var s=e.rsst.findIndex((function(e){var n;return e.v==a&&e.l==(null==(n=t.l)?void 0:n.Target)}));-1==s&&(e.rsst[s=e.rsst.length]={v:a,l:t.l.Target}),n[1]=9,r.setUint32(i,s,!0),o|=16,i+=4}else{var u=e.sst.indexOf(a);-1==u&&(e.sst[u=e.sst.length]=a),n[1]=3,r.setUint32(i,u,!0),o|=8,i+=4}break;case"d":n[1]=5,r.setFloat64(i,(t.v.getTime()-Date.UTC(2001,0,1))/1e3,!0),o|=4,i+=8;break;case"z":n[1]=0;break;default:throw"unsupported cell type "+t.t}return t.c&&(e.cmnt.push($h(t.c)),r.setUint32(i,e.cmnt.length-1,!0),o|=524288,i+=4),r.setUint32(8,o,!0),n[bh](0,i)}function Bh(t,e){var n=new Uint8Array(32),r=xh(n),i=12,o=0,a="";switch(n[0]=4,t.t){case"n":break;case"b":break;case"s":if(a=null==t.v?"":String(t.v),t.l){var s=e.rsst.findIndex((function(e){var n;return e.v==a&&e.l==(null==(n=t.l)?void 0:n.Target)}));-1==s&&(e.rsst[s=e.rsst.length]={v:a,l:t.l.Target}),n[1]=9,r.setUint32(i,s,!0),o|=512,i+=4}break;case"d":break;case"e":break;case"z":break;default:throw"unsupported cell type "+t.t}switch(t.c&&(r.setUint32(i,e.cmnt.length-1,!0),o|=4096,i+=4),t.t){case"n":n[1]=2,r.setFloat64(i,t.v,!0),o|=32,i+=8;break;case"b":n[1]=6,r.setFloat64(i,t.v?1:0,!0),o|=32,i+=8;break;case"s":if(a=null==t.v?"":String(t.v),t.l);else{var u=e.sst.indexOf(a);-1==u&&(e.sst[u=e.sst.length]=a),n[1]=3,r.setUint32(i,u,!0),o|=16,i+=4}break;case"d":n[1]=5,r.setFloat64(i,(t.v.getTime()-Date.UTC(2001,0,1))/1e3,!0),o|=64,i+=8;break;case"z":n[1]=0;break;default:throw"unsupported cell type "+t.t}return r.setUint32(8,o,!0),n[bh](0,i)}function zh(t){var e=Ih(t);return Ah(e[1][0].data)}function Zh(t){return Oh([[],[{type:0,data:kh(t)}]])}function Uh(t,e){var n,r=(null==(n=t.messages[0].meta[5])?void 0:n[0])?Ch(t.messages[0].meta[5][0].data):[],i=r.indexOf(e);-1==i&&(r.push(e),t.messages[0].meta[5]=[{type:2,data:Mh(r)}])}function Hh(t,e){var n,r=(null==(n=t.messages[0].meta[5])?void 0:n[0])?Ch(t.messages[0].meta[5][0].data):[];t.messages[0].meta[5]=[{type:2,data:Mh(r.filter((function(t){return t!=e})))}]}function $h(t){for(var e={a:"",t:"",replies:[]},n=0;n<t.length;++n)0==n?(e.a=t[n].a,e.t=t[n].t):e.replies.push({a:t[n].a,t:t[n].t});return e}function Gh(t,e,n){var r,i,o,a=[[],[{type:0,data:kh(0)}],[{type:0,data:kh(0)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},(function(){return 255})))}],[{type:0,data:kh(5)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},(function(){return 255})))}],[{type:0,data:kh(1)}]];if(!(null==(r=a[6])?void 0:r[0])||!(null==(i=a[7])?void 0:i[0]))throw"Mutation only works on post-BNC storages!";var s=0;if(a[7][0].data.length<2*t.length){var u=new Uint8Array(2*t.length);u.set(a[7][0].data),a[7][0].data=u}if(a[4][0].data.length<2*t.length){var l=new Uint8Array(2*t.length);l.set(a[4][0].data),a[4][0].data=l}for(var c=xh(a[7][0].data),f=0,h=[],d=xh(a[4][0].data),p=0,g=[],v=n?4:1,m=0;m<t.length;++m)if(null==t[m]||"z"==t[m].t&&!(null==(o=t[m].c)?void 0:o.length)||"e"==t[m].t)c.setUint16(2*m,65535,!0),d.setUint16(2*m,65535);else{var y,b;switch(c.setUint16(2*m,f/v,!0),d.setUint16(2*m,p/v,!0),t[m].t){case"d":if(t[m].v instanceof Date){y=Fh(t[m],e),b=Bh(t[m],e);break}y=Fh(t[m],e),b=Bh(t[m],e);break;case"s":case"n":case"b":case"z":y=Fh(t[m],e),b=Bh(t[m],e);break;default:throw new Error("Unsupported value "+t[m])}h.push(y),f+=y.length,g.push(b),p+=b.length,++s}for(a[2][0].data=kh(s),a[5][0].data=kh(5);m<a[7][0].data.length/2;++m)c.setUint16(2*m,65535,!0),d.setUint16(2*m,65535,!0);return a[6][0].data=Sh(h),a[3][0].data=Sh(g),a[8]=[{type:0,data:kh(n?1:0)}],a}function Wh(t,e){return{meta:[[],[{type:0,data:kh(t)}]],data:e}}function Vh(t,e){e.last||(e.last=927262);for(var n=e.last;n<2e6;++n)if(!e[n])return e[e.last=n]=t,n;throw new Error("Too many messages")}function Yh(t){var e={},n=[];return t.FileIndex.map((function(e,n){return[e,t.FullPaths[n]]})).forEach((function(t){var r=t[0],i=t[1];2==r.type&&r.name.match(/\.iwa/)&&0==r.content[0]&&Ph(Rh(r.content)).forEach((function(t){n.push(t.id),e[t.id]={deps:[],location:i,type:Ah(t.messages[0].meta[1][0].data)}}))})),t.FileIndex.forEach((function(t){t.name.match(/\.iwa/)&&0==t.content[0]&&Ph(Rh(t.content)).forEach((function(t){t.messages.forEach((function(n){[5,6].forEach((function(r){n.meta[r]&&n.meta[r].forEach((function(n){e[t.id].deps.push(Ah(n.data))}))}))}))}))})),e}function Xh(t,e,n){return Oh([[],[{type:0,data:kh(1)}],[],[{type:5,data:new Uint8Array(Float32Array.from([t/255]).buffer)}],[{type:5,data:new Uint8Array(Float32Array.from([e/255]).buffer)}],[{type:5,data:new Uint8Array(Float32Array.from([n/255]).buffer)}],[{type:5,data:new Uint8Array(Float32Array.from([1]).buffer)}],[],[],[],[],[],[{type:0,data:kh(1)}]])}function qh(t){switch(t){case 0:return Xh(99,222,171);case 1:return Xh(162,197,240);case 2:return Xh(255,189,189)}return Xh(255*Math.random(),255*Math.random(),255*Math.random())}function Kh(t,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=Xt.read(e.numbers,{type:"base64"}),r=Yh(n),i=Qh(n,r,1);if(null==i)throw"Could not find message ".concat(1," in Numbers template");var o=Dh(Ih(i.messages[0].data)[1],zh);if(o.length>1)throw new Error("Template NUMBERS file must have exactly one sheet");return t.SheetNames.forEach((function(e,a){a>=1&&(id(n,r,a+1),i=Qh(n,r,1),o=Dh(Ih(i.messages[0].data)[1],zh)),od(n,r,t.Sheets[e],e,a,o[a])})),n}function Jh(t,e,n,r){var i=Xt.find(t,e[n].location);if(!i)throw"Could not find ".concat(e[n].location," in Numbers template");var o=Ph(Rh(i.content)),a=o.find((function(t){return t.id==n}));r(a,o),i.content=jh(Lh(o)),i.size=i.content.length}function Qh(t,e,n){var r=Xt.find(t,e[n].location);if(!r)throw"Could not find ".concat(e[n].location," in Numbers template");var i=Ph(Rh(r.content)),o=i.find((function(t){return t.id==n}));return o}function td(t,e,n){t[3].push({type:2,data:Oh([[],[{type:0,data:kh(e)}],[{type:2,data:wh(n.replace(/-[\s\S]*$/,""))}],[{type:2,data:wh(n)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:kh(0)}],[],[{type:0,data:kh(0)}]])}),t[1]=[{type:0,data:kh(Math.max(e+1,Ah(t[1][0].data)))}]}function ed(t,e,n,r,i,o){o||(o=Vh({deps:[],location:"",type:e},i));var a="".concat(r,"-").concat(o,".iwa");i[o].location="Root Entry"+a,Xt.utils.cfb_add(t,a,jh(Lh([{id:o,messages:[Wh(e,Oh(n))]}])));var s=a.replace(/^[\/]/,"").replace(/^Index\//,"").replace(/\.iwa$/,"");return Jh(t,i,2,(function(t){var e=Ih(t.messages[0].data);td(e,o||0,s),t.messages[0].data=Oh(e)})),o}function nd(t,e,n,r){var i=e[n].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,""),o=t[3].findIndex((function(t){var e,n,r=Ih(t.data);return(null==(e=r[3])?void 0:e[0])?_h(r[3][0].data)==i:!(!(null==(n=r[2])?void 0:n[0])||_h(r[2][0].data)!=i)})),a=Ih(t[3][o].data);a[6]||(a[6]=[]),(Array.isArray(r)?r:[r]).forEach((function(t){a[6].push({type:2,data:Oh([[],[{type:0,data:kh(t)}]])})})),t[3][o].data=Oh(a)}function rd(t,e,n,r){var i=e[n].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,""),o=t[3].findIndex((function(t){var e,n,r=Ih(t.data);return(null==(e=r[3])?void 0:e[0])?_h(r[3][0].data)==i:!(!(null==(n=r[2])?void 0:n[0])||_h(r[2][0].data)!=i)})),a=Ih(t[3][o].data);a[6]||(a[6]=[]),a[6]=a[6].filter((function(t){return Ah(Ih(t.data)[1][0].data)!=r})),t[3][o].data=Oh(a)}function id(t,e,n){var r=-1,i=-1,o={};Jh(t,e,1,(function(n,a){var s=Ih(n.messages[0].data);r=zh(Ih(n.messages[0].data)[1][0].data),i=Vh({deps:[1],location:e[r].location,type:2},e),o[r]=i,Uh(n,i),s[1].push({type:2,data:Zh(i)});var u=Qh(t,e,r);u.id=i,e[1].location==e[i].location?a.push(u):Jh(t,e,i,(function(t,e){return e.push(u)})),n.messages[0].data=Oh(s)}));var a=-1;Jh(t,e,i,(function(n,r){for(var s=Ih(n.messages[0].data),u=3;u<=69;++u)delete s[u];var l=Dh(s[2],zh);l.forEach((function(t){return Hh(n,t)})),a=Vh({deps:[i],location:e[l[0]].location,type:e[l[0]].type},e),Uh(n,a),o[l[0]]=a,s[2]=[{type:2,data:Zh(a)}];var c=Qh(t,e,l[0]);c.id=a,e[l[0]].location==e[i].location?r.push(c):(Jh(t,e,2,(function(t){var n=Ih(t.messages[0].data);nd(n,e,i,a),t.messages[0].data=Oh(n)})),Jh(t,e,a,(function(t,e){return e.push(c)}))),n.messages[0].data=Oh(s)}));var s=-1;Jh(t,e,a,(function(n,r){for(var i=Ih(n.messages[0].data),u=Ih(i[1][0].data),l=3;l<=69;++l)delete u[l];var c=zh(u[2][0].data);u[2][0].data=Zh(o[c]),i[1][0].data=Oh(u);var f=zh(i[2][0].data);Hh(n,f),s=Vh({deps:[a],location:e[f].location,type:e[f].type},e),Uh(n,s),o[f]=s,i[2][0].data=Zh(s);var h=Qh(t,e,f);h.id=s,e[a].location==e[s].location?r.push(h):Jh(t,e,s,(function(t,e){return e.push(h)})),n.messages[0].data=Oh(i)})),Jh(t,e,s,(function(r,i){var a,u,l=Ih(r.messages[0].data),c=_h(l[1][0].data),f=c.replace(/-[A-Z0-9]*/,"-".concat(("0000"+n.toString(16)).slice(-4)));if(l[1][0].data=wh(f),[12,13,29,31,32,33,39,44,47,81,82,84].forEach((function(t){return delete l[t]})),l[45]){var h=Ih(l[45][0].data),d=zh(h[1][0].data);Hh(r,d),delete l[45]}if(l[70]){var p=Ih(l[70][0].data);null==(a=p[2])||a.forEach((function(t){var e=Ih(t.data);[2,3].map((function(t){return e[t][0]})).forEach((function(t){var e=Ih(t.data);if(e[8]){var n=zh(e[8][0].data);Hh(r,n)}}))})),delete l[70]}[46,30,34,35,36,38,48,49,60,61,62,63,64,71,72,73,74,75,85,86,87,88,89].forEach((function(t){if(l[t]){var e=zh(l[t][0].data);delete l[t],Hh(r,e)}}));var g=Ih(l[4][0].data);[2,4,5,6,11,12,13,15,16,17,18,19,20,21,22].forEach((function(n){var a;if(null==(a=g[n])?void 0:a[0]){var u=zh(g[n][0].data),l=Vh({deps:[s],location:e[u].location,type:e[u].type},e);Hh(r,u),Uh(r,l),o[u]=l;var c=Qh(t,e,u);if(c.id=l,e[u].location==e[s].location)i.push(c);else{e[l].location=e[u].location.replace(u.toString(),l.toString()),e[l].location==e[u].location&&(e[l].location=e[l].location.replace(/\.iwa/,"-".concat(l,".iwa"))),Xt.utils.cfb_add(t,e[l].location,jh(Lh([c])));var f=e[l].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,"");Jh(t,e,2,(function(t){var n=Ih(t.messages[0].data);td(n,l,f),nd(n,e,s,l),t.messages[0].data=Oh(n)}))}g[n][0].data=Zh(l)}}));var v=Ih(g[1][0].data);null==(u=v[2])||u.forEach((function(n){var a=zh(n.data),u=Vh({deps:[s],location:e[a].location,type:e[a].type},e);Hh(r,a),Uh(r,u),o[a]=u;var l=Qh(t,e,a);if(l.id=u,e[a].location==e[s].location)i.push(l);else{e[u].location=e[a].location.replace(a.toString(),u.toString()),e[u].location==e[a].location&&(e[u].location=e[u].location.replace(/\.iwa/,"-".concat(u,".iwa"))),Xt.utils.cfb_add(t,e[u].location,jh(Lh([l])));var c=e[u].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,"");Jh(t,e,2,(function(t){var n=Ih(t.messages[0].data);td(n,u,c),nd(n,e,s,u),t.messages[0].data=Oh(n)}))}n.data=Zh(u)})),g[1][0].data=Oh(v);var m=Ih(g[3][0].data);m[1].forEach((function(n){var i=Ih(n.data),a=zh(i[2][0].data),u=o[a];if(!o[a]){u=Vh({deps:[s],location:"",type:e[a].type},e),e[u].location="Root Entry/Index/Tables/Tile-".concat(u,".iwa"),o[a]=u;var l=Qh(t,e,a);l.id=u,Hh(r,a),Uh(r,u),Xt.utils.cfb_add(t,"/Index/Tables/Tile-".concat(u,".iwa"),jh(Lh([l]))),Jh(t,e,2,(function(t){var n=Ih(t.messages[0].data);n[3].push({type:2,data:Oh([[],[{type:0,data:kh(u)}],[{type:2,data:wh("Tables/Tile")}],[{type:2,data:wh("Tables/Tile-".concat(u))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:kh(0)}],[],[{type:0,data:kh(0)}]])}),n[1]=[{type:0,data:kh(Math.max(u+1,Ah(n[1][0].data)))}],nd(n,e,s,u),t.messages[0].data=Oh(n)}))}i[2][0].data=Zh(u),n.data=Oh(i)})),g[3][0].data=Oh(m),l[4][0].data=Oh(g),r.messages[0].data=Oh(l)}))}function od(t,e,n,r,i,o){var a=[];Jh(t,e,o,(function(t){var e=Ih(t.messages[0].data);e[1]=[{type:2,data:wh(r)}],a=Dh(e[2],zh),t.messages[0].data=Oh(e)}));var s=Qh(t,e,a[0]),u=zh(Ih(s.messages[0].data)[2][0].data);Jh(t,e,u,(function(r,i){return sd(t,e,n,r,i,u)}))}var ad=!0;function sd(t,e,n,r,i,o){if(!n["!ref"])throw new Error("Cannot export empty sheet to NUMBERS");var a=or(n["!ref"]);a.s.r=a.s.c=0;var s=!1;a.e.c>999&&(s=!0,a.e.c=999),a.e.r>999999&&(s=!0,a.e.r=999999),s&&console.error("Truncating to ".concat(ar(a)));var u=[];if(n["!data"])u=n["!data"];else{for(var l=[],c=0;c<=a.e.c;++c)l[c]=Qn(c);for(var f=0;f<=a.e.r;++f){u[f]=[];var h=""+(f+1);for(c=0;c<=a.e.c;++c){var d=n[l[c]+h];d&&(u[f][c]=d)}}}var p={cmnt:[{a:"~54ee77S~",t:"... the people who are crazy enough to think they can change the world, are the ones who do."}],ferr:[],fmla:[],nfmt:[],ofmt:[],rsst:[{v:"~54ee77S~",l:"https://sheetjs.com/"}],sst:["~Sh33tJ5~"]},g=Ih(r.messages[0].data);g[6][0].data=kh(a.e.r+1),g[7][0].data=kh(a.e.c+1),delete g[46];var v=Ih(g[4][0].data),m=zh(Ih(v[1][0].data)[2][0].data);Jh(t,e,m,(function(t,e){var n,r=Ih(t.messages[0].data);if(null==(n=null==r?void 0:r[2])?void 0:n[0])for(var i=0;i<u.length;++i){var o=Ih(r[2][0].data);o[1][0].data=kh(i),o[4][0].data=kh(u[i].length),r[2][i]={type:r[2][0].type,data:Oh(o)}}t.messages[0].data=Oh(r)}));var y=zh(v[2][0].data);Jh(t,e,y,(function(t,e){for(var n=Ih(t.messages[0].data),r=0;r<=a.e.c;++r){var i=Ih(n[2][0].data);i[1][0].data=kh(r),i[4][0].data=kh(a.e.r+1),n[2][r]={type:n[2][0].type,data:Oh(i)}}t.messages[0].data=Oh(n)}));var b=Ih(v[9][0].data);b[1]=[];var x=Ih(v[3][0].data),_=256;x[2]=[{type:0,data:kh(_)}];var w=zh(Ih(x[1][0].data)[2][0].data),S=function(){var n=Qh(t,e,2),r=Ih(n.messages[0].data),i=r[3].filter((function(t){return Ah(Ih(t.data)[1][0].data)==w}));return(null==i?void 0:i.length)?Ah(Ih(i[0].data)[12][0].data):0}();Xt.utils.cfb_del(t,e[w].location),Jh(t,e,2,(function(t){var n=Ih(t.messages[0].data);n[3]=n[3].filter((function(t){return Ah(Ih(t.data)[1][0].data)!=w})),rd(n,e,o,w),t.messages[0].data=Oh(n)})),Hh(r,w),x[1]=[];for(var E=Math.ceil((a.e.r+1)/_),T=0;T<E;++T){var k=Vh({deps:[],location:"",type:6002},e);e[k].location="Root Entry/Index/Tables/Tile-".concat(k,".iwa");for(var C=[[],[{type:0,data:kh(0)}],[{type:0,data:kh(Math.min(a.e.r+1,(T+1)*_))}],[{type:0,data:kh(0)}],[{type:0,data:kh(Math.min((T+1)*_,a.e.r+1)-T*_)}],[],[{type:0,data:kh(5)}],[{type:0,data:kh(1)}],[{type:0,data:kh(ad?1:0)}]],M=T*_;M<=Math.min(a.e.r,(T+1)*_-1);++M){var A=Gh(u[M],p,ad);A[1][0].data=kh(M-T*_),C[5].push({data:Oh(A),type:2})}x[1].push({type:2,data:Oh([[],[{type:0,data:kh(T)}],[{type:2,data:Zh(k)}]])});var I={id:k,messages:[Wh(6002,Oh(C))]},O=jh(Lh([I]));Xt.utils.cfb_add(t,"/Index/Tables/Tile-".concat(k,".iwa"),O),Jh(t,e,2,(function(t){var n=Ih(t.messages[0].data);n[3].push({type:2,data:Oh([[],[{type:0,data:kh(k)}],[{type:2,data:wh("Tables/Tile")}],[{type:2,data:wh("Tables/Tile-".concat(k))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:kh(0)}],[],[{type:0,data:kh(S)}]])}),n[1]=[{type:0,data:kh(Math.max(k+1,Ah(n[1][0].data)))}],nd(n,e,o,k),t.messages[0].data=Oh(n)})),Uh(r,k),b[1].push({type:2,data:Oh([[],[{type:0,data:kh(T*_)}],[{type:0,data:kh(T)}]])})}if(v[3][0].data=Oh(x),v[9][0].data=Oh(b),v[10]=[{type:2,data:new Uint8Array([])}],n["!merges"]){var D=Vh({type:6144,deps:[o],location:e[o].location},e);i.push({id:D,messages:[Wh(6144,Oh([[],n["!merges"].map((function(t){return{type:2,data:Oh([[],[{type:2,data:Oh([[],[{type:5,data:new Uint8Array(new Uint16Array([t.s.r,t.s.c]).buffer)}]])}],[{type:2,data:Oh([[],[{type:5,data:new Uint8Array(new Uint16Array([t.e.r-t.s.r+1,t.e.c-t.s.c+1]).buffer)}]])}]])}}))]))]}),v[13]=[{type:2,data:Zh(D)}],Jh(t,e,2,(function(t){var n=Ih(t.messages[0].data);nd(n,e,o,D),t.messages[0].data=Oh(n)})),Uh(r,D)}else delete v[13];var P=zh(v[4][0].data);Jh(t,e,P,(function(t){var e=Ih(t.messages[0].data);e[3]=[],p.sst.forEach((function(t,n){0!=n&&e[3].push({type:2,data:Oh([[],[{type:0,data:kh(n)}],[{type:0,data:kh(1)}],[{type:2,data:wh(t)}]])})})),t.messages[0].data=Oh(e)}));var L=zh(v[17][0].data);if(Jh(t,e,L,(function(n){var r=Ih(n.messages[0].data);r[3]=[];var i=[904980,903835,903815,903845];p.rsst.forEach((function(o,a){if(0!=a){var s=[[],[{type:0,data:new Uint8Array([5])}],[],[{type:2,data:wh(o.v)}]];s[10]=[{type:0,data:new Uint8Array([1])}],s[19]=[{type:2,data:new Uint8Array([10,6,8,0,18,2,101,110])}],s[5]=[{type:2,data:new Uint8Array([10,8,8,0,18,4,8,155,149,55])}],s[2]=[{type:2,data:new Uint8Array([8,148,158,55])}],s[6]=[{type:2,data:new Uint8Array([10,6,8,0,16,0,24,0])}],s[7]=[{type:2,data:new Uint8Array([10,8,8,0,18,4,8,135,149,55])}],s[8]=[{type:2,data:new Uint8Array([10,8,8,0,18,4,8,165,149,55])}],s[14]=[{type:2,data:new Uint8Array([10,6,8,0,16,0,24,0])}],s[24]=[{type:2,data:new Uint8Array([10,6,8,0,16,0,24,0])}];var u=Vh({deps:[],location:"",type:2001},e),l=[];if(o.l){var c=ed(t,2032,[[],[],[{type:2,data:wh(o.l)}]],"/Index/Tables/DataList",e);s[11]=[];var f=[[],[]];f[1]||(f[1]=[]),f[1].push({type:2,data:Oh([[],[{type:0,data:kh(0)}],[{type:2,data:Zh(c)}]])}),s[11][0]={type:2,data:Oh(f)},l.push(c)}ed(t,2001,s,"/Index/Tables/DataList",e,u),Jh(t,e,u,(function(t){i.forEach((function(e){return Uh(t,e)})),l.forEach((function(e){return Uh(t,e)}))}));var h=ed(t,6218,[[],[{type:2,data:Zh(u)}],[],[{type:2,data:new Uint8Array([13,255,255,255,0,18,10,16,255,255,1,24,255,255,255,255,7])}]],"/Index/Tables/DataList",e);Jh(t,e,h,(function(t){return Uh(t,u)})),r[3].push({type:2,data:Oh([[],[{type:0,data:kh(a)}],[{type:0,data:kh(1)}],[],[],[],[],[],[],[{type:2,data:Zh(h)}]])}),Uh(n,h),Jh(t,e,2,(function(t){var n=Ih(t.messages[0].data);nd(n,e,L,h),nd(n,e,h,u),nd(n,e,u,l),nd(n,e,u,i),t.messages[0].data=Oh(n)}))}})),n.messages[0].data=Oh(r)})),p.cmnt.length>1){var N=zh(v[19][0].data),R={},j=0;Jh(t,e,N,(function(n){var r=Ih(n.messages[0].data);r[3]=[],p.cmnt.forEach((function(i,o){if(0!=o){var a=[];i.replies&&i.replies.forEach((function(n){R[n.a||""]||(R[n.a||""]=ed(t,212,[[],[{type:2,data:wh(n.a||"")}],[{type:2,data:qh(++j)}],[],[{type:0,data:kh(0)}]],"/Index/Tables/DataList",e));var r=R[n.a||""],i=ed(t,3056,[[],[{type:2,data:wh(n.t||"")}],[{type:2,data:Oh([[],[{type:1,data:new Uint8Array([0,0,0,128,116,109,182,65])}]])}],[{type:2,data:Zh(r)}]],"/Index/Tables/DataList",e);Jh(t,e,i,(function(t){return Uh(t,r)})),a.push(i),Jh(t,e,2,(function(t){var n=Ih(t.messages[0].data);nd(n,e,i,r),t.messages[0].data=Oh(n)}))})),R[i.a||""]||(R[i.a||""]=ed(t,212,[[],[{type:2,data:wh(i.a||"")}],[{type:2,data:qh(++j)}],[],[{type:0,data:kh(0)}]],"/Index/Tables/DataList",e));var s=R[i.a||""],u=ed(t,3056,[[],[{type:2,data:wh(i.t||"")}],[{type:2,data:Oh([[],[{type:1,data:new Uint8Array([0,0,0,128,116,109,182,65])}]])}],[{type:2,data:Zh(s)}],a.map((function(t){return{type:2,data:Zh(t)}})),[{type:2,data:Oh([[],[{type:0,data:kh(o)}],[{type:0,data:kh(0)}]])}]],"/Index/Tables/DataList",e);Jh(t,e,u,(function(t){Uh(t,s),a.forEach((function(e){return Uh(t,e)}))})),r[3].push({type:2,data:Oh([[],[{type:0,data:kh(o)}],[{type:0,data:kh(1)}],[],[],[],[],[],[],[],[{type:2,data:Zh(u)}]])}),Uh(n,u),Jh(t,e,2,(function(t){var n=Ih(t.messages[0].data);nd(n,e,N,u),nd(n,e,u,s),a.length&&nd(n,e,u,a),t.messages[0].data=Oh(n)}))}})),r[2][0].data=kh(p.cmnt.length+1),n.messages[0].data=Oh(r)}))}g[4][0].data=Oh(v),r.messages[0].data=Oh(g)}function ud(t){return function(e){for(var n=0;n!=t.length;++n){var r=t[n];void 0===e[r[0]]&&(e[r[0]]=r[1]),"n"===r[2]&&(e[r[0]]=Number(e[r[0]]))}}}function ld(t){ud([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function cd(t,e){t&&!t.SSF&&(t.SSF=de(X)),t&&t.SSF&&(Zt(),zt(t.SSF),e.revssf=ee(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,pl?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var n="bin",r=!0,i=gi();ld(e=e||{});var o=Ce(),a="",s=0;if(e.cellXfs=[],yl(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),a="docProps/core.xml",ke(o,a,Mi(t.Props,e)),i.coreprops.push(a),xi(e.rels,2,a,mi.CORE_PROPS),a="docProps/app.xml",t.Props&&t.Props.SheetNames);else if(t.Workbook&&t.Workbook.Sheets){for(var u=[],l=0;l<t.SheetNames.length;++l)2!=(t.Workbook.Sheets[l]||{}).Hidden&&u.push(t.SheetNames[l]);t.Props.SheetNames=u}else t.Props.SheetNames=t.SheetNames;t.Props.Worksheets=t.Props.SheetNames.length,ke(o,a,Oi(t.Props,e)),i.extprops.push(a),xi(e.rels,3,a,mi.EXT_PROPS),t.Custprops!==t.Props&&Jt(t.Custprops||{}).length>0&&(a="docProps/custom.xml",ke(o,a,Di(t.Custprops,e)),i.custprops.push(a),xi(e.rels,4,a,mi.CUST_PROPS));var c=["SheetJ5"];for(e.tcid=0,s=1;s<=t.SheetNames.length;++s){var f={"!id":{}},h=t.Sheets[t.SheetNames[s-1]],d=(h||{})["!type"]||"sheet";switch(d){case"chart":default:a="xl/worksheets/sheet"+s+"."+n,ke(o,a,Yc(s-1,e,t,f)),i.sheets.push(a),xi(e.wbrels,-1,"worksheets/sheet"+s+"."+n,mi.WS[0])}if(h){var p=h["!comments"],g=!1,v="";if(p&&p.length>0){var m=!1;p.forEach((function(t){t[1].forEach((function(t){1==t.T&&(m=!0)}))})),m&&(v="xl/threadedComments/threadedComment"+s+".xml",ke(o,v,es(p,c,e)),i.threadedcomments.push(v),xi(f,-1,"../threadedComments/threadedComment"+s+".xml",mi.TCMNT)),v="xl/comments"+s+"."+n,ke(o,v,ss(p,e)),i.comments.push(v),xi(f,-1,"../comments"+s+"."+n,mi.CMNT),g=!0}h["!legacy"]&&g&&ke(o,"xl/drawings/vmlDrawing"+s+".vml",Ja(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}f["!id"].rId1&&ke(o,yi(a),bi(f))}null!=e.Strings&&e.Strings.length>0&&(a="xl/sharedStrings."+n,ke(o,a,Ko(e.Strings,e)),i.strs.push(a),xi(e.wbrels,-1,"sharedStrings."+n,mi.SST)),a="xl/workbook."+n,ke(o,a,mf(t,e)),i.workbooks.push(a),xi(e.rels,1,a,mi.WB),a="xl/theme/theme1.xml";var y=Za(t.Themes,e);return ke(o,a,y),i.themes.push(a),xi(e.wbrels,-1,"theme/theme1.xml",mi.THEME),a="xl/styles."+n,ke(o,a,za(t,e)),i.styles.push(a),xi(e.wbrels,-1,"styles."+n,mi.STY),t.vbaraw&&r&&(a="xl/vbaProject.bin",ke(o,a,t.vbaraw),i.vba.push(a),xi(e.wbrels,-1,"vbaProject.bin",mi.VBA)),a="xl/metadata."+n,ke(o,a,Xa()),i.metadata.push(a),xi(e.wbrels,-1,"metadata."+n,mi.XLMETA),c.length>1&&(a="xl/persons/person.xml",ke(o,a,ns(c,e)),i.people.push(a),xi(e.wbrels,-1,"persons/person.xml",mi.PEOPLE)),ke(o,"[Content_Types].xml",vi(i,e)),ke(o,"_rels/.rels",bi(e.rels)),ke(o,"xl/_rels/workbook."+n+".rels",bi(e.wbrels)),delete e.revssf,delete e.ssf,o}function fd(t,e){t&&!t.SSF&&(t.SSF=de(X)),t&&t.SSF&&(Zt(),zt(t.SSF),e.revssf=ee(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,pl?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var n="xml",r=ls.indexOf(e.bookType)>-1,i=gi();ld(e=e||{});var o=Ce(),a="",s=0;if(e.cellXfs=[],yl(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),a="docProps/core.xml",ke(o,a,Mi(t.Props,e)),i.coreprops.push(a),xi(e.rels,2,a,mi.CORE_PROPS),a="docProps/app.xml",t.Props&&t.Props.SheetNames);else if(t.Workbook&&t.Workbook.Sheets){for(var u=[],l=0;l<t.SheetNames.length;++l)2!=(t.Workbook.Sheets[l]||{}).Hidden&&u.push(t.SheetNames[l]);t.Props.SheetNames=u}else t.Props.SheetNames=t.SheetNames;t.Props.Worksheets=t.Props.SheetNames.length,ke(o,a,Oi(t.Props,e)),i.extprops.push(a),xi(e.rels,3,a,mi.EXT_PROPS),t.Custprops!==t.Props&&Jt(t.Custprops||{}).length>0&&(a="docProps/custom.xml",ke(o,a,Di(t.Custprops,e)),i.custprops.push(a),xi(e.rels,4,a,mi.CUST_PROPS));var c=["SheetJ5"];for(e.tcid=0,s=1;s<=t.SheetNames.length;++s){var f={"!id":{}},h=t.Sheets[t.SheetNames[s-1]],d=(h||{})["!type"]||"sheet";switch(d){case"chart":default:a="xl/worksheets/sheet"+s+"."+n,ke(o,a,Ol(s-1,e,t,f)),i.sheets.push(a),xi(e.wbrels,-1,"worksheets/sheet"+s+"."+n,mi.WS[0])}if(h){var p=h["!comments"],g=!1,v="";if(p&&p.length>0){var m=!1;p.forEach((function(t){t[1].forEach((function(t){1==t.T&&(m=!0)}))})),m&&(v="xl/threadedComments/threadedComment"+s+".xml",ke(o,v,es(p,c,e)),i.threadedcomments.push(v),xi(f,-1,"../threadedComments/threadedComment"+s+".xml",mi.TCMNT)),v="xl/comments"+s+"."+n,ke(o,v,ts(p,e)),i.comments.push(v),xi(f,-1,"../comments"+s+"."+n,mi.CMNT),g=!0}h["!legacy"]&&g&&ke(o,"xl/drawings/vmlDrawing"+s+".vml",Ja(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}f["!id"].rId1&&ke(o,yi(a),bi(f))}return null!=e.Strings&&e.Strings.length>0&&(a="xl/sharedStrings."+n,ke(o,a,Vo(e.Strings,e)),i.strs.push(a),xi(e.wbrels,-1,"sharedStrings."+n,mi.SST)),a="xl/workbook."+n,ke(o,a,nf(t,e)),i.workbooks.push(a),xi(e.rels,1,a,mi.WB),a="xl/theme/theme1.xml",ke(o,a,Za(t.Themes,e)),i.themes.push(a),xi(e.wbrels,-1,"theme/theme1.xml",mi.THEME),a="xl/styles."+n,ke(o,a,pa(t,e)),i.styles.push(a),xi(e.wbrels,-1,"styles."+n,mi.STY),t.vbaraw&&r&&(a="xl/vbaProject.bin",ke(o,a,t.vbaraw),i.vba.push(a),xi(e.wbrels,-1,"vbaProject.bin",mi.VBA)),a="xl/metadata."+n,ke(o,a,qa()),i.metadata.push(a),xi(e.wbrels,-1,"metadata."+n,mi.XLMETA),c.length>1&&(a="xl/persons/person.xml",ke(o,a,ns(c,e)),i.people.push(a),xi(e.wbrels,-1,"persons/person.xml",mi.PEOPLE)),ke(o,"[Content_Types].xml",vi(i,e)),ke(o,"_rels/.rels",bi(e.rels)),ke(o,"xl/_rels/workbook."+n+".rels",bi(e.wbrels)),delete e.revssf,delete e.ssf,o}function hd(t,e){var n="";switch((e||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":n=w(t.slice(0,12));break;case"binary":n=t;break;case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function dd(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return Kt(e.file,Xt.write(t,{type:S?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return Xt.write(t,e)}function pd(t,e){switch(e.bookType){case"ods":return yh(t,e);case"numbers":return Kh(t,e);case"xlsb":return cd(t,e);default:return fd(t,e)}}function gd(t,e){var n=de(e||{}),r=pd(t,n);return vd(r,n)}function vd(t,e){var n={},r=S?"nodebuffer":"undefined"!==typeof Uint8Array?"array":"string";if(e.compression&&(n.compression="DEFLATE"),e.password)n.type=r;else switch(e.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":n.type=r;break;default:throw new Error("Unrecognized type "+e.type)}var i=t.FullPaths?Xt.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!e.compression}):t.generate(n);if("undefined"!==typeof Deno&&"string"==typeof i){if("binary"==e.type||"base64"==e.type)return i;i=new Uint8Array(A(i))}return e.password&&"undefined"!==typeof encrypt_agile?dd(encrypt_agile(i,e.password),e):"file"===e.type?Kt(e.file,i):"string"==e.type?$e(i):i}function md(t,e){var n=e||{},r=Pf(t,n);return dd(r,n)}function yd(t,e,n){n||(n="");var r=n+t;switch(e.type){case"base64":return b(Ge(r));case"binary":return Ge(r);case"string":return t;case"file":return Kt(e.file,r,"utf8");case"buffer":return S?E(r,"utf8"):"undefined"!==typeof TextEncoder?(new TextEncoder).encode(r):yd(r,{type:"binary"}).split("").map((function(t){return t.charCodeAt(0)}))}throw new Error("Unrecognized type "+e.type)}function bd(t,e){switch(e.type){case"base64":return x(t);case"binary":return t;case"string":return t;case"file":return Kt(e.file,t,"binary");case"buffer":return S?E(t,"binary"):t.split("").map((function(t){return t.charCodeAt(0)}))}throw new Error("Unrecognized type "+e.type)}function xd(t,e){switch(e.type){case"string":case"base64":case"binary":for(var n="",r=0;r<t.length;++r)n+=String.fromCharCode(t[r]);return"base64"==e.type?b(n):"string"==e.type?$e(n):n;case"file":return Kt(e.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+e.type)}}function _d(t,e){h(),ef(t);var n=de(e||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var r=_d(t,n);return n.type="array",A(r)}var i=0;if(n.sheet&&(i="number"==typeof n.sheet?n.sheet:t.SheetNames.indexOf(n.sheet),!t.SheetNames[i]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return yd(If(t,n),n);case"slk":case"sylk":return yd(Zo.from_sheet(t.Sheets[t.SheetNames[i]],n,t),n);case"htm":case"html":return yd(uh(t.Sheets[t.SheetNames[i]],n),n);case"txt":return bd(Ad(t.Sheets[t.SheetNames[i]],n),n);case"csv":return yd(Md(t.Sheets[t.SheetNames[i]],n),n,"\ufeff");case"dif":return yd(Uo.from_sheet(t.Sheets[t.SheetNames[i]],n),n);case"dbf":return xd(zo.from_sheet(t.Sheets[t.SheetNames[i]],n),n);case"prn":return yd($o.from_sheet(t.Sheets[t.SheetNames[i]],n),n);case"rtf":return yd(ta(t.Sheets[t.SheetNames[i]],n),n);case"eth":return yd(Ho.from_sheet(t.Sheets[t.SheetNames[i]],n),n);case"fods":return yd(yh(t,n),n);case"wk1":return xd(Go.sheet_to_wk1(t.Sheets[t.SheetNames[i]],n),n);case"wk3":return xd(Go.book_to_wk3(t,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),xd(rh(t,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),md(t,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return gd(t,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function wd(t){if(!t.bookType){var e={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},n=t.file.slice(t.file.lastIndexOf(".")).toLowerCase();n.match(/^\.[a-z]+$/)&&(t.bookType=n.slice(1)),t.bookType=e[t.bookType]||t.bookType}}function Sd(t,e,n){var r=n||{};return r.type="file",r.file=e,wd(r),_d(t,r)}function Ed(t,e,n,r,i,o,a){var s=Xn(n),u=a.defval,l=a.raw||!Object.prototype.hasOwnProperty.call(a,"raw"),c=!0,f=null!=t["!data"],h=1===i?[]:{};if(1!==i)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:n,enumerable:!1})}catch($d){h.__rowNum__=n}else h.__rowNum__=n;if(!f||t["!data"][n])for(var d=e.s.c;d<=e.e.c;++d){var p=f?(t["!data"][n]||[])[d]:t[r[d]+s];if(null!=p&&void 0!==p.t){var g=p.v;switch(p.t){case"z":if(null==g)break;continue;case"e":g=0==g?null:void 0;break;case"s":case"b":case"n":if(!p.z||!Pt(p.z))break;if(g=se(g),"number"==typeof g)break;case"d":a&&(a.UTC||!1===a.raw)||(g=Ee(new Date(g)));break;default:throw new Error("unrecognized type "+p.t)}if(null!=o[d]){if(null==g)if("e"==p.t&&null===g)h[o[d]]=null;else if(void 0!==u)h[o[d]]=u;else{if(!l||null!==g)continue;h[o[d]]=null}else h[o[d]]=("n"===p.t&&"boolean"===typeof a.rawNumbers?a.rawNumbers:l)?g:fr(p,g,a);null!=g&&(c=!1)}}else{if(void 0===u)continue;null!=o[d]&&(h[o[d]]=u)}}return{row:h,isempty:c}}function Td(t,e){if(null==t||null==t["!ref"])return[];var n={t:"n",v:0},r=0,i=1,o=[],a=0,s="",u={s:{r:0,c:0},e:{r:0,c:0}},l=e||{},c=null!=l.range?l.range:t["!ref"];switch(1===l.header?r=1:"A"===l.header?r=2:Array.isArray(l.header)?r=3:null==l.header&&(r=0),typeof c){case"string":u=lr(c);break;case"number":u=lr(t["!ref"]),u.s.r=c;break;default:u=c}r>0&&(i=0);var f=Xn(u.s.r),h=[],d=[],p=0,g=0,v=null!=t["!data"],m=u.s.r,y=0,b={};v&&!t["!data"][m]&&(t["!data"][m]=[]);var x=l.skipHidden&&t["!cols"]||[],_=l.skipHidden&&t["!rows"]||[];for(y=u.s.c;y<=u.e.c;++y)if(!(x[y]||{}).hidden)switch(h[y]=Qn(y),n=v?t["!data"][m][y]:t[h[y]+f],r){case 1:o[y]=y-u.s.c;break;case 2:o[y]=h[y];break;case 3:o[y]=l.header[y-u.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),s=a=fr(n,null,l),g=b[a]||0,g){do{s=a+"_"+g++}while(b[s]);b[a]=g,b[s]=1}else b[a]=1;o[y]=s}for(m=u.s.r+i;m<=u.e.r;++m)if(!(_[m]||{}).hidden){var w=Ed(t,u,m,h,r,o,l);(!1===w.isempty||(1===r?!1!==l.blankrows:l.blankrows))&&(d[p++]=w.row)}return d.length=p,d}var kd=/"/g;function Cd(t,e,n,r,i,o,a,s){for(var u=!0,l=[],c="",f=Xn(n),h=null!=t["!data"],d=h&&t["!data"][n]||[],p=e.s.c;p<=e.e.c;++p)if(r[p]){var g=h?d[p]:t[r[p]+f];if(null==g)c="";else if(null!=g.v){u=!1,c=""+(s.rawNumbers&&"n"==g.t?g.v:fr(g,null,s));for(var v=0,m=0;v!==c.length;++v)if((m=c.charCodeAt(v))===i||m===o||34===m||s.forceQuotes){c='"'+c.replace(kd,'""')+'"';break}"ID"==c&&(c='"ID"')}else null==g.f||g.F?c="":(u=!1,c="="+g.f,c.indexOf(",")>=0&&(c='"'+c.replace(kd,'""')+'"'));l.push(c)}if(s.strip)while(""===l[l.length-1])--l.length;return!1===s.blankrows&&u?null:l.join(a)}function Md(t,e){var n=[],r=null==e?{}:e;if(null==t||null==t["!ref"])return"";for(var i=lr(t["!ref"]),o=void 0!==r.FS?r.FS:",",a=o.charCodeAt(0),s=void 0!==r.RS?r.RS:"\n",u=s.charCodeAt(0),l="",c=[],f=r.skipHidden&&t["!cols"]||[],h=r.skipHidden&&t["!rows"]||[],d=i.s.c;d<=i.e.c;++d)(f[d]||{}).hidden||(c[d]=Qn(d));for(var p=0,g=i.s.r;g<=i.e.r;++g)(h[g]||{}).hidden||(l=Cd(t,i,g,c,a,u,o,r),null!=l&&(l||!1!==r.blankrows)&&n.push((p++?s:"")+l));return n.join("")}function Ad(t,e){e||(e={}),e.FS="\t",e.RS="\n";var n=Md(t,e);if("undefined"==typeof r||"string"==e.type)return n;var i=r.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+i}function Id(t){var e,n="",r="";if(null==t||null==t["!ref"])return[];var i,o=lr(t["!ref"]),a="",s=[],u=[],l=null!=t["!data"];for(i=o.s.c;i<=o.e.c;++i)s[i]=Qn(i);for(var c=o.s.r;c<=o.e.r;++c)for(a=Xn(c),i=o.s.c;i<=o.e.c;++i)if(n=s[i]+a,e=l?(t["!data"][c]||[])[i]:t[n],r="",void 0!==e){if(null!=e.F){if(n=e.F,!e.f)continue;r=e.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=e.f)r=e.f;else{if("z"==e.t)continue;if("n"==e.t&&null!=e.v)r=""+e.v;else if("b"==e.t)r=e.v?"TRUE":"FALSE";else if(void 0!==e.w)r="'"+e.w;else{if(void 0===e.v)continue;r="s"==e.t?"'"+e.v:""+e.v}}u[u.length]=n+"="+r}return u}function Od(t,e,n){var r=n||{},i=t?null!=t["!data"]:r.dense;null!=v&&null==i&&(i=v);var o=+!r.skipHeader,a=t||{};!t&&i&&(a["!data"]=[]);var s=0,u=0;if(a&&null!=r.origin)if("number"==typeof r.origin)s=r.origin;else{var l="string"==typeof r.origin?rr(r.origin):r.origin;s=l.r,u=l.c}var c={s:{c:0,r:0},e:{c:u,r:s+e.length-1+o}};if(a["!ref"]){var f=lr(a["!ref"]);c.e.c=Math.max(c.e.c,f.e.c),c.e.r=Math.max(c.e.r,f.e.r),-1==s&&(s=f.e.r+1,c.e.r=s+e.length-1+o)}else-1==s&&(s=0,c.e.r=e.length-1+o);var h=r.header||[],d=0,p=[];e.forEach((function(t,e){i&&!a["!data"][s+e+o]&&(a["!data"][s+e+o]=[]),i&&(p=a["!data"][s+e+o]),Jt(t).forEach((function(n){-1==(d=h.indexOf(n))&&(h[d=h.length]=n);var l=t[n],c="z",f="",g=i?"":Qn(u+d)+Xn(s+e+o),v=i?p[u+d]:a[g];!l||"object"!==typeof l||l instanceof Date?("number"==typeof l?c="n":"boolean"==typeof l?c="b":"string"==typeof l?c="s":l instanceof Date?(c="d",r.UTC||(l=Te(l)),r.cellDates||(c="n",l=ae(l)),f=null!=v&&v.z&&Pt(v.z)?v.z:r.dateNF||X[14]):null===l&&r.nullError&&(c="e",l=0),v?(v.t=c,v.v=l,delete v.w,delete v.R,f&&(v.z=f)):i?p[u+d]=v={t:c,v:l}:a[g]=v={t:c,v:l},f&&(v.z=f)):i?p[u+d]=l:a[g]=l}))})),c.e.c=Math.max(c.e.c,u+h.length-1);var g=Xn(s);if(i&&!a["!data"][s]&&(a["!data"][s]=[]),o)for(d=0;d<h.length;++d)i?a["!data"][s][d+u]={t:"s",v:h[d]}:a[Qn(d+u)+g]={t:"s",v:h[d]};return a["!ref"]=ar(c),a}function Dd(t,e){return Od(null,t,e)}function Pd(t,e,n){if("string"==typeof e){if(null!=t["!data"]){var r=rr(e);return t["!data"][r.r]||(t["!data"][r.r]=[]),t["!data"][r.r][r.c]||(t["!data"][r.r][r.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return Pd(t,"number"!=typeof e?ir(e):Qn(n||0)+Xn(e))}function Ld(t,e){if("number"==typeof e){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}if("string"==typeof e){var n=t.SheetNames.indexOf(e);if(n>-1)return n;throw new Error("Cannot find sheet name |"+e+"|")}throw new Error("Cannot find sheet |"+e+"|")}function Nd(t,e){var n={SheetNames:[],Sheets:{}};return t&&Rd(n,t,e||"Sheet1"),n}function Rd(t,e,n,r){var i=1;if(!n)for(;i<=65535;++i,n=void 0)if(-1==t.SheetNames.indexOf(n="Sheet"+i))break;if(!n||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&t.SheetNames.indexOf(n)>=0&&n.length<32){var o=n.match(/\d+$/);i=o&&+o[0]||0;var a=o&&n.slice(0,o.index)||n;for(++i;i<=65535;++i)if(-1==t.SheetNames.indexOf(n=a+i))break}if(Qc(n),t.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return t.SheetNames.push(n),t.Sheets[n]=e,n}function jd(t,e,n){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var r=Ld(t,e);switch(t.Workbook.Sheets[r]||(t.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}t.Workbook.Sheets[r].Hidden=n}function Fd(t,e){return t.z=e,t}function Bd(t,e,n){return e?(t.l={Target:e},n&&(t.l.Tooltip=n)):delete t.l,t}function zd(t,e,n){return Bd(t,"#"+e,n)}function Zd(t,e,n){t.c||(t.c=[]),t.c.push({t:e,a:n||"SheetJS"})}function Ud(t,e,n,r){for(var i="string"!=typeof e?e:lr(e),o="string"==typeof e?e:ar(e),a=i.s.r;a<=i.e.r;++a)for(var s=i.s.c;s<=i.e.c;++s){var u=Pd(t,a,s);u.t="n",u.F=o,delete u.v,a==i.s.r&&s==i.s.c&&(u.f=n,r&&(u.D=!0))}var l=or(t["!ref"]);return l.s.r>i.s.r&&(l.s.r=i.s.r),l.s.c>i.s.c&&(l.s.c=i.s.c),l.e.r<i.e.r&&(l.e.r=i.e.r),l.e.c<i.e.c&&(l.e.c=i.e.c),t["!ref"]=ar(l),t}var Hd={encode_col:Qn,encode_row:Xn,encode_cell:ir,encode_range:ar,decode_col:Jn,decode_row:Yn,split_cell:nr,decode_cell:rr,decode_range:or,format_cell:fr,sheet_new:dr,sheet_add_aoa:pr,sheet_add_json:Od,sheet_add_dom:lh,aoa_to_sheet:gr,json_to_sheet:Dd,table_to_sheet:ch,table_to_book:fh,sheet_to_csv:Md,sheet_to_txt:Ad,sheet_to_json:Td,sheet_to_html:uh,sheet_to_formulae:Id,sheet_to_row_object_array:Td,sheet_get_cell:Pd,book_new:Nd,book_append_sheet:Rd,book_set_sheet_visibility:jd,cell_set_number_format:Fd,cell_set_hyperlink:Bd,cell_set_internal_link:zd,cell_add_comment:Zd,sheet_set_array_formula:Ud,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};i.version},88452:function(t,e,n){"use strict";var r=n(87184),i=n(6997),o=n(96805),a=n(18626),s=n(66332),u=n(95797),l=n(25815),c=n(76171),f=n(8088),h="__zr_normal__",d=r.dN.concat(["ignore"]),p=(0,u.u4)(r.dN,(function(t,e){return t[e]=!0,t}),{ignore:!1}),g={},v=new o.Z(0,0,0,0),m=function(){function t(t){this.id=(0,u.M8)(),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;break}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,u=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var c=v;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,c):(0,s.wI)(g,n,c),i.x=g.x,i.y=g.y,o=g.align,a=g.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var d=void 0,p=void 0;"center"===h?(d=.5*c.width,p=.5*c.height):(d=(0,s.GM)(h[0],c.width),p=(0,s.GM)(h[1],c.height)),l=!0,i.originX=-i.x+d+(r?0:c.x),i.originY=-i.y+p+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var m=n.offset;m&&(i.x+=m[0],i.y+=m[1],l||(i.originX=-m[0],i.originY=-m[1]));var y=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,_=void 0,w=void 0;y&&this.canBeInsideText()?(x=n.insideFill,_=n.insideStroke,null!=x&&"auto"!==x||(x=this.getInsideTextFill()),null!=_&&"auto"!==_||(_=this.getInsideTextStroke(x),w=!0)):(x=n.outsideFill,_=n.outsideStroke,null!=x&&"auto"!==x||(x=this.getOutsideFill()),null!=_&&"auto"!==_||(_=this.getOutsideStroke(x),w=!0)),x=x||"#000",x===b.fill&&_===b.stroke&&w===b.autoStroke&&o===b.align&&a===b.verticalAlign||(u=!0,b.fill=x,b.stroke=_,b.autoStroke=w,b.align=o,b.verticalAlign=a,e.setDefaultTextStyle(b)),e.__dirty|=f.YV,u&&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()?l.GD:l.vU},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&(0,c.Qc)(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,(0,c.Pz)(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||{},(0,u.l7)(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((0,u.Kn)(t))for(var n=t,r=(0,u.XP)(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&&i!==h)){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,d)},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(h,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===h,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!((0,u.cq)(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||i){i||this.saveCurrentToNormalState(l);var c=!!(l&&l.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var d=this._textContent,p=this._textGuide;return d&&d.useState(t,e,n,c),p&&p.useState(t,e,n,c),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~f.YV),l}(0,u.H)("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 u=t[s],l=void 0;this.stateProxy&&(l=this.stateProxy(u,t)),l||(l=this.states[u]),l&&r.push(l)}var c=r[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var g=this._textContent,v=this._textGuide;g&&g.useStates(t,e,h),v&&v.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~f.YV)}else this.clearStates()},t.prototype.isSilent=function(){var t=this.silent,e=this.parent;while(!t&&e){if(e.silent){t=!0;break}e=e.parent}return t},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=(0,u.cq)(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=(0,u.cq)(r,t),o=(0,u.cq)(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];(0,u.l7)(n,i),i.textConfig&&(e=e||{},(0,u.l7)(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=(0,u.l7)({},r?this.textConfig:n.textConfig),(0,u.l7)(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,c=0;c<d.length;c++){var f=d[c],h=i&&p[f];e&&null!=e[f]?h?(l=!0,s[f]=e[f]):this[f]=e[f]:a&&null!=n[f]&&(h?(l=!0,s[f]=n[f]):this[f]=n[f])}if(!i)for(c=0;c<this.animators.length;c++){var g=this.animators[c],v=g.targetName;g.getLoop()||g.__changeFinalValue(v?(e||n)[v]: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 r.ZP,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),(0,u.l7)(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|=f.YV;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 o=new i.Z(r,e,n);return t&&(o.targetName=t),this.addAnimator(o,t),o},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=(0,u.cq)(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){y(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){y(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=y(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=f.YV;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(){if(!this[n]){var t=this[n]=[];o(this,t)}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 y(t,e,n,r,i){n=n||{};var o=[];E(t,"",t,e,n,r,o,i);var a=o.length,s=!1,u=n.done,l=n.aborted,c=function(){s=!0,a--,a<=0&&(s?u&&u():l&&l())},f=function(){a--,a<=0&&(s?u&&u():l&&l())};a||u&&u(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var h=0;h<o.length;h++){var d=o[h];c&&d.done(c),f&&d.aborted(f),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function b(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function x(t){return(0,u.zG)(t[0])}function _(t,e,n){if((0,u.zG)(e[n]))if((0,u.zG)(t[n])||(t[n]=[]),(0,u.fU)(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),b(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(x(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?b(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else b(o,i,a);o.length=i.length}else t[n]=e[n]}function w(t,e){return t===e||(0,u.zG)(t)&&(0,u.zG)(e)&&S(t,e)}function S(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}function E(t,e,n,r,o,a,s,l){for(var c=(0,u.XP)(r),f=o.duration,h=o.delay,d=o.additive,p=o.setToFinal,g=!(0,u.Kn)(a),v=t.animators,m=[],y=0;y<c.length;y++){var b=c[y],x=r[b];if(null!=x&&null!=n[b]&&(g||a[b]))if(!(0,u.Kn)(x)||(0,u.zG)(x)||(0,u.Qq)(x))m.push(b);else{if(e){l||(n[b]=x,t.updateDuringAnimation(e));continue}E(t,b,n[b],x,o,a&&a[b],s,l)}else l||(n[b]=x,t.updateDuringAnimation(e),m.push(b))}var S=m.length;if(!d&&S)for(var T=0;T<v.length;T++){var k=v[T];if(k.targetName===e){var C=k.stopTracks(m);if(C){var M=(0,u.cq)(v,k);v.splice(M,1)}}}if(o.force||(m=(0,u.hX)(m,(function(t){return!w(r[t],n[t])})),S=m.length),S>0||o.force&&!s.length){var A=void 0,I=void 0,O=void 0;if(l){I={},p&&(A={});for(T=0;T<S;T++){b=m[T];I[b]=n[b],p?A[b]=r[b]:n[b]=r[b]}}else if(p){O={};for(T=0;T<S;T++){b=m[T];O[b]=(0,i.V)(n[b]),_(n,r,b)}}k=new i.Z(n,!1,!1,d?(0,u.hX)(v,(function(t){return t.targetName===e})):null);k.targetName=e,o.scope&&(k.scope=o.scope),p&&A&&k.whenWithKeys(0,A,m),O&&k.whenWithKeys(0,O,m),k.whenWithKeys(null==f?500:f,l?I:r,m).delay(h||0),t.addAnimator(k,e),s.push(k)}}(0,u.jB)(m,a.Z),(0,u.jB)(m,r.ZP),e.Z=/^(539|826)$/.test(n.j)?m:null},6997:function(t,e,n){"use strict";n.d(e,{V:function(){return S},Z:function(){return F}});var r={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,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.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-r.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*r.bounceIn(2*t):.5*r.bounceOut(2*t-1)+.5}},i=r,o=n(95797),a=n(3816),s=/cubic-bezier\(([0-9,\.e ]+)\)/;function u(t){var e=t&&s.exec(t);if(e){var n=e[1].split(","),r=+(0,o.fy)(n[0]),i=+(0,o.fy)(n[1]),u=+(0,o.fy)(n[2]),l=+(0,o.fy)(n[3]);if(isNaN(r+i+u+l))return;var c=[];return function(t){return t<=0?0:t>=1?1:(0,a.kD)(0,r,u,1,t,c)&&(0,a.af)(0,i,l,1,c[0])}}}var l=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||o.ZT,this.ondestroy=t.ondestroy||o.ZT,this.onrestart=t.onrestart||o.ZT,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=(0,o.mf)(t)?t:i[t]||u(t)},t}(),c=l,f=n(76171),h=n(59979);Math.round;function d(t){return"linear"===t.type}function p(t){return"radial"===t.type}(function(){h.Z.hasGlobalWindow&&(0,o.mf)(window.btoa)})();var g=Array.prototype.slice;function v(t,e,n){return(e-t)*n+t}function m(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=v(e[o],n[o],r);return t}function y(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]=v(e[a][s],n[a][s],r)}return t}function b(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function x(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 _(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 w(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var u=o;u<a;u++)r.push(1===n?i[u]:g.call(i[u]))}var l=r[0]&&r[0].length;for(u=0;u<r.length;u++)if(1===n)isNaN(r[u])&&(r[u]=i[u]);else for(var c=0;c<l;c++)isNaN(r[u][c])&&(r[u][c]=i[u][c])}}function S(t){if((0,o.zG)(t)){var e=t.length;if((0,o.zG)(t[0])){for(var n=[],r=0;r<e;r++)n.push(g.call(t[r]));return n}return g.call(t)}return t}function E(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(",")+")"}function T(t){return(0,o.zG)(t&&t[0])?2:1}var k=0,C=1,M=2,A=3,I=4,O=5,D=6;function P(t){return t===I||t===O}function L(t){return t===C||t===M}var N=[0,0,0,0],R=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,a=r.length,s=!1,l=D,c=e;if((0,o.zG)(e)){var h=T(e);l=h,(1===h&&!(0,o.hj)(e[0])||2===h&&!(0,o.hj)(e[0][0]))&&(s=!0)}else if((0,o.hj)(e)&&!(0,o.Bu)(e))l=k;else if((0,o.HD)(e))if(isNaN(+e)){var g=f.Qc(e);g&&(c=g,l=A)}else l=k;else if((0,o.Qq)(e)){var v=(0,o.l7)({},c);v.colorStops=(0,o.UI)(e.colorStops,(function(t){return{offset:t.offset,color:f.Qc(t.color)}})),d(e)?l=I:p(e)&&(l=O),c=v}0===a?this.valType=l:l===this.valType&&l!==D||(s=!0),this.discrete=this.discrete||s;var m={time:t,value:c,rawValue:e,percent:0};return n&&(m.easing=n,m.easingFunc=(0,o.mf)(n)?n:i[n]||u(n)),r.push(m),m},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=L(r),u=P(r),l=0;l<i;l++){var c=n[l],f=c.value,h=o.value;c.percent=c.time/t,a||(s&&l!==i-1?w(f,h,r):u&&_(f.colorStops,h.colorStops))}if(!a&&r!==O&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var d=n[0].value;for(l=0;l<i;l++)r===k?n[l].additiveValue=n[l].value-d:r===A?n[l].additiveValue=b([],n[l].value,d,-1):L(r)&&(n[l].additiveValue=r===C?b([],n[l].value,d,-1):x([],n[l].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,a=null!=this._additiveTrack,s=a?"additiveValue":"value",u=this.valType,l=this.keyframes,c=l.length,f=this.propName,h=u===A,d=this._lastFr,p=Math.min;if(1===c)r=i=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){var g=p(d+1,c-1);for(n=g;n>=0;n--)if(l[n].percent<=e)break;n=p(n,c-2)}else{for(n=d;n<c;n++)if(l[n].percent>e)break;n=p(n-1,c-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var b=i.percent-r.percent,x=0===b?1:p((e-r.percent)/b,1);i.easingFunc&&(x=i.easingFunc(x));var _=a?this._additiveValue:h?N:t[f];if(!L(u)&&!h||_||(_=this._additiveValue=[]),this.discrete)t[f]=x<1?r.rawValue:i.rawValue;else if(L(u))u===C?m(_,r[s],i[s],x):y(_,r[s],i[s],x);else if(P(u)){var w=r[s],S=i[s],T=u===I;t[f]={type:T?"linear":"radial",x:v(w.x,S.x,x),y:v(w.y,S.y,x),colorStops:(0,o.UI)(w.colorStops,(function(t,e){var n=S.colorStops[e];return{offset:v(t.offset,n.offset,x),color:E(m([],t.color,n.color,x))}})),global:S.global},T?(t[f].x2=v(w.x2,S.x2,x),t[f].y2=v(w.y2,S.y2,x)):t[f].r=v(w.r,S.r,x)}else if(h)m(_,r[s],i[s],x),a||(t[f]=E(_));else{var k=v(r[s],i[s],x);a?this._additiveValue=k:t[f]=k}a&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===k?t[n]=t[n]+r:e===A?(f.Qc(t[n],N),b(N,N,r,1),t[n]=E(N)):e===C?b(t[n],t[n],r,1):e===M&&x(t[n],t[n],r,1)},t}(),j=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?(0,o.H)("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,(0,o.XP)(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 R(a);var u=void 0,l=this._getAdditiveTrack(a);if(l){var c=l.keyframes,f=c[c.length-1];u=f&&f.value,l.valType===A&&u&&(u=E(u))}else u=this._target[a];if(null==u)continue;t>0&&s.addKeyframe(0,S(u),r),this._trackKeys.push(a)}s.addKeyframe(t,S(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),u=a.keyframes,l=u.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var f=u[l-1];f&&(e._target[a.propName]=f.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new c({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(0,o.UI)(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]=S(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||(0,o.XP)(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var s=a.pop();i.addKeyframe(s.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),F=j},33851:function(t,e,n){"use strict";var r,i=n(59979);r=i.Z.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},e.Z=/^(539|826)$/.test(n.j)?r:null},14168:function(t,e,n){"use strict";n.d(e,{Z:function(){return E}});var r=n(25815),i=n(95797),o=n(4311),a=n(18626),s=n(24250),u=n(80943),l=n(96805),c=n(8088),f=n(9886);function h(t,e,n){var r=f.qW.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 d=function(t){function e(e,n,o){var a,s=t.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,o=o||r.KL,"string"===typeof e?a=h(e,n,o):i.Kn(e)&&(a=e,e=a.id),s.id=e,s.dom=a;var u=a.style;return u&&(i.$j(a),a.onselectstart=function(){return!1},u.padding="0",u.margin="0",u.borderWidth="0"),s.painter=n,s.dpr=o,s}return(0,o.ZT)(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=h("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,u=new l.Z(0,0,0,0);function f(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new l.Z(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,r=1/0,i=0,c=0;c<o.length;++c){var f=o[c];if(f.intersect(t)){var h=new l.Z(0,0,0,0);h.copy(f),h.union(t),o[c]=h,n=!0;break}if(s){u.copy(t),u.union(f);var d=t.width*t.height,p=f.width*f.height,g=u.width*u.height,v=g-d-p;v<r&&(r=v,i=c)}}if(s&&(o[i].union(t),n=!0),!n){e=new l.Z(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var d=t[h];if(d){var p=d.shouldBePainted(n,r,!0,!0),g=d.__isRendered&&(d.__dirty&c.YV||!p)?d.getPrevPaintRect():null;g&&f(g);var v=p&&(d.__dirty&c.YV||!d.__isRendered)?d.getPaintRect():null;v&&f(v)}}for(h=this.__prevStartIndex;h<this.__prevEndIndex;++h){d=e[h],p=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!p||!d.__zr)&&d.__isRendered){g=d.getPrevPaintRect();g&&f(g)}}do{i=!1;for(h=0;h<o.length;)if(o[h].isZero())o.splice(h,1);else{for(var m=h+1;m<o.length;)o[h].intersect(o[m])?(i=!0,o[h].union(o[m]),o.splice(m,1)):m++;h++}}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,o=this.ctx,a=r.width,l=r.height;e=e||this.clearColor;var c=this.motionBlur&&!t,f=this.lastFrameAlpha,h=this.dpr,d=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/h,l/h));var p=this.domBack;function g(t,n,r,a){if(o.clearRect(t,n,r,a),e&&"transparent"!==e){var l=void 0;if(i.Qq(e)){var g=e.global||e.__width===r&&e.__height===a;l=g&&e.__canvasGradient||(0,s.ZF)(o,e,{x:0,y:0,width:r,height:a}),e.__canvasGradient=l,e.__width=r,e.__height=a}else i.dL(e)&&(e.scaleX=e.scaleX||h,e.scaleY=e.scaleY||h,l=(0,u.RZ)(o,e,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=l||e,o.fillRect(t,n,r,a),o.restore()}c&&(o.save(),o.globalAlpha=f,o.drawImage(p,t,n,r,a),o.restore())}!n||c?g(0,0,a,l):n.length&&i.S6(n,(function(t){g(t.x*h,t.y*h,t.width*h,t.height*h)}))},e}(a.Z),p=d,g=n(33851),v=n(59979),m=1e5,y=314159,b=.01,x=.001;function _(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}function w(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}var S=function(){function t(t,e,n,o){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=i.l7({},n||{}),this.dpr=n.devicePixelRatio||r.KL,this._singleCanvas=a,this.root=t;var u=t.style;u&&(i.$j(t),t.innerHTML=""),this.storage=e;var l=this._zlevelList;this._prevDisplayList=[];var c=this._layers;if(a){var f=t,h=f.width,d=f.height;null!=n.width&&(h=n.width),null!=n.height&&(d=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=d*this.dpr,this._width=h,this._height=d;var g=new p(f,this,this.dpr);g.__builtin__=!0,g.initContext(),c[y]=g,g.zlevel=y,l.push(y),this._domRoot=t}else{this._width=(0,s.ap)(t,0,n),this._height=(0,s.ap)(t,1,n);var v=this._domRoot=w(this._width,this._height);t.appendChild(v)}}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(m)),r||(r=n.ctx,r.save()),(0,u.Dm)(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(m)},t.prototype.paintOne=function(t,e){(0,u.RV)(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;(0,g.Z)((function(){s._paintList(t,e,n,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(y).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,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&o.push(l)}for(var c=!0,f=!1,h=function(i){var s,u=o[i],l=u.ctx,h=a&&u.createRepaintRects(t,e,d._width,d._height),p=n?u.__startIndex:u.__drawIndex,g=!n&&u.incremental&&Date.now,v=g&&Date.now(),m=u.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(u.__startIndex===u.__endIndex)u.clear(!1,m,h);else if(p===u.__startIndex){var y=t[p];y.incremental&&y.notClear&&!n||u.clear(!1,m,h)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=u.__startIndex);var b=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=p;s<u.__endIndex;s++){var i=t[s];if(i.__inHover&&(f=!0),r._doPaintEl(i,u,a,e,n,s===u.__endIndex-1),g){var o=Date.now()-v;if(o>15)break}}n.prevElClipPaths&&l.restore()};if(h)if(0===h.length)s=u.__endIndex;else for(var x=d.dpr,_=0;_<h.length;++_){var w=h[_];l.save(),l.beginPath(),l.rect(w.x*x,w.y*x,w.width*x,w.height*x),l.clip(),b(w),l.restore()}else l.save(),b(),l.restore();u.__drawIndex=s,u.__drawIndex<u.__endIndex&&(c=!1)},d=this,p=0;p<o.length;p++)h(p);return v.Z.wxa&&i.S6(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:c,needsRefreshHover:f}},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))&&((0,u.Dm)(a,t,i,o),t.setPrevPaintRect(s))}else(0,u.Dm)(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=y);var n=this._layers[t];return n||(n=new p("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?i.TS(n,this._layerConfig[t],!0):this._layerConfig[t-b]&&i.TS(n,this._layerConfig[t-b],!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]&&_(e)){if(i>0&&t>r[0]){for(s=0;s<i-1;s++)if(r[s]<t&&r[s+1]>t)break;a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var u=a.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(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){s&&(s.__endIndex!==t&&(s.__dirty=!0),s.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){var r=t[n];if(r.zlevel!==t[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var o,a,s=null,u=0;for(a=0;a<t.length;a++){r=t[a];var l=r.zlevel,f=void 0;o!==l&&(o=l,u=0),r.incremental?(f=this.getLayer(l+x,this._needsManuallyCompositing),f.incremental=!0,u=1):f=this.getLayer(l+(u>0?b:0),this._needsManuallyCompositing),f.__builtin__||i.H("ZLevel "+l+" has been used by unkown layer "+f.id),f!==s&&(f.__used=!0,f.__startIndex!==a&&(f.__dirty=!0),f.__startIndex=a,f.incremental?f.__drawIndex=-1:f.__drawIndex=a,e(a),s=f),r.__dirty&c.YV&&!r.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=a))}e(a),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,i.S6(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?i.TS(n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];if(o===t||o===t+b){var a=this._layers[o];i.TS(a,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(i.cq(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=(0,s.ap)(i,0,r),e=(0,s.ap)(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(y).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[y].dom;var e=new p("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 c=a[s];(0,u.Dm)(n,c,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),E=S},7645:function(t,e,n){"use strict";if(n.d(e,{a:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(95797);function i(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:(0,r.hj)(t)?[t]:(0,r.kJ)(t)?t:null:null}function o(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&i(e.lineDash,e.lineWidth),o=e.lineDashOffset;if(n){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(n=(0,r.UI)(n,(function(t){return t/a})),o/=a)}return[n,o]}},80943:function(t,e,n){"use strict";if(n.d(e,{Dm:function(){return z},RV:function(){return B},RZ:function(){return x}}),/^(539|826)$/.test(n.j))var r=n(68992);var i=n(85727);if(/^(539|826)$/.test(n.j))var o=n(50322);if(/^(539|826)$/.test(n.j))var a=n(24250);if(/^(539|826)$/.test(n.j))var s=n(23256);if(/^(539|826)$/.test(n.j))var u=n(12222);if(/^(539|826)$/.test(n.j))var l=n(29912);if(/^(539|826)$/.test(n.j))var c=n(95797);if(/^(539|826)$/.test(n.j))var f=n(7645);if(/^(539|826)$/.test(n.j))var h=n(8088);if(/^(539|826)$/.test(n.j))var d=n(9886);var p=new i.Z(!0);function g(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function v(t){return"string"===typeof t&&"none"!==t}function m(t){var e=t.fill;return null!=e&&"none"!==e}function y(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 b(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 x(t,e,n){var r=(0,o.Gq)(e.image,e.__image,n);if((0,o.v5)(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*c.I3),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function _(t,e,n,r){var i,o=g(n),s=m(n),u=n.strokePercent,l=u<1,c=!e.path;e.silent&&!l||!c||e.createPathProxy();var d=e.path||p,v=e.__dirty;if(!r){var _=n.fill,w=n.stroke,S=s&&!!_.colorStops,E=o&&!!w.colorStops,T=s&&!!_.image,k=o&&!!w.image,C=void 0,M=void 0,A=void 0,I=void 0,O=void 0;(S||E)&&(O=e.getBoundingRect()),S&&(C=v?(0,a.ZF)(t,_,O):e.__canvasFillGradient,e.__canvasFillGradient=C),E&&(M=v?(0,a.ZF)(t,w,O):e.__canvasStrokeGradient,e.__canvasStrokeGradient=M),T&&(A=v||!e.__canvasFillPattern?x(t,_,e):e.__canvasFillPattern,e.__canvasFillPattern=A),k&&(I=v||!e.__canvasStrokePattern?x(t,w,e):e.__canvasStrokePattern,e.__canvasStrokePattern=A),S?t.fillStyle=C:T&&(A?t.fillStyle=A:s=!1),E?t.strokeStyle=M:k&&(I?t.strokeStyle=I:o=!1)}var D,P,L=e.getGlobalScale();d.setScale(L[0],L[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(i=(0,f.a)(e),D=i[0],P=i[1]);var N=!0;(c||v&h.RH)&&(d.setDPR(t.dpr),l?d.setContext(null):(d.setContext(t),N=!1),d.reset(),e.buildPath(d,e.shape,r),d.toStatic(),e.pathUpdated()),N&&d.rebuildPath(t,l?u:1),D&&(t.setLineDash(D),t.lineDashOffset=P),r||(n.strokeFirst?(o&&b(t,n),s&&y(t,n)):(s&&y(t,n),o&&b(t,n))),D&&t.setLineDash([])}function w(t,e,n){var r=e.__image=(0,o.Gq)(n.image,e.__image,e,e.onload);if(r&&(0,o.v5)(r)){var i=n.x||0,a=n.y||0,s=e.getWidth(),u=e.getHeight(),l=r.width/r.height;if(null==s&&null!=u?s=u*l:null==u&&null!=s?u=s/l:null==s&&null==u&&(s=r.width,u=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,f=n.sy||0;t.drawImage(r,c,f,n.sWidth,n.sHeight,i,a,s,u)}else if(n.sx&&n.sy){c=n.sx,f=n.sy;var h=s-c,d=u-f;t.drawImage(r,c,f,h,d,i,a,s,u)}else t.drawImage(r,i,a,s,u)}}function S(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||d.Uo,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=(0,f.a)(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(g(n)&&t.strokeText(i,n.x,n.y),m(n)&&t.fillText(i,n.x,n.y)):(m(n)&&t.fillText(i,n.x,n.y),g(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}var E=/^(539|826)$/.test(n.j)?["shadowBlur","shadowOffsetX","shadowOffsetY"]:null,T=/^(539|826)$/.test(n.j)?[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]]:null;function k(t,e,n,i,o){var a=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){j(t,o),a=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?r.tj.opacity:s}(i||e.blend!==n.blend)&&(a||(j(t,o),a=!0),t.globalCompositeOperation=e.blend||r.tj.blend);for(var u=0;u<E.length;u++){var l=E[u];(i||e[l]!==n[l])&&(a||(j(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(a||(j(t,o),a=!0),t.shadowColor=e.shadowColor||r.tj.shadowColor),a}function C(t,e,n,r,i){var o=F(e,i.inHover),a=r?null:n&&F(n,i.inHover)||{};if(o===a)return!1;var s=k(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(j(t,i),s=!0),v(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(j(t,i),s=!0),v(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(j(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var u=o.lineWidth,l=u/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(j(t,i),s=!0),t.lineWidth=l)}for(var c=0;c<T.length;c++){var f=T[c],h=f[0];(r||o[h]!==a[h])&&(s||(j(t,i),s=!0),t[h]=o[h]||f[1])}return s}function M(t,e,n,r,i){return k(t,F(e,i.inHover),n&&F(n,i.inHover),r,i)}function A(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)}function I(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),A(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}function O(t,e){return t&&e?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&&!e)}var D=1,P=2,L=3,N=4;function R(t){var e=m(t),n=g(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)}function j(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function F(t,e){return e&&t.__hoverStyle||t.style}function B(t,e){z(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function z(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~h.YV,void(e.__isRendered=!1);var o=e.__clipPaths,c=n.prevElClipPaths,f=!1,d=!1;if(c&&!(0,a.cF)(o,c)||(c&&c.length&&(j(t,n),t.restore(),d=f=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(j(t,n),t.save(),I(o,t,n),f=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var p=n.prevEl;p||(d=f=!0);var g=e instanceof s.ZP&&e.autoBatch&&R(e.style);f||O(i,p.transform)?(j(t,n),A(t,e)):g||j(t,n);var v=F(e,n.inHover);e instanceof s.ZP?(n.lastDrawType!==D&&(d=!0,n.lastDrawType=D),C(t,e,p,d,n),g&&(n.batchFill||n.batchStroke)||t.beginPath(),_(t,e,v,g),g&&(n.batchFill=v.fill||"",n.batchStroke=v.stroke||"")):e instanceof l.Z?(n.lastDrawType!==L&&(d=!0,n.lastDrawType=L),C(t,e,p,d,n),S(t,e,v)):e instanceof u.ZP?(n.lastDrawType!==P&&(d=!0,n.lastDrawType=P),M(t,e,p,d,n),w(t,e,v)):e.getTemporalDisplayables&&(n.lastDrawType!==N&&(d=!0,n.lastDrawType=N),Z(t,e,n)),g&&r&&j(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}function Z(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 u=r[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),z(t,u,s,o===a-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),s.prevEl=u}for(var l=0,c=i.length;l<c;l++){u=i[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),z(t,u,s,l===c-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),s.prevEl=u}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}},24250:function(t,e,n){"use strict";function r(t){return isFinite(t)}function i(t,e,n){var i=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,s=null==e.y2?0:e.y2;e.global||(i=i*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),i=r(i)?i:0,o=r(o)?o:1,a=r(a)?a:0,s=r(s)?s:0;var u=t.createLinearGradient(i,a,o,s);return u}function o(t,e,n){var i=n.width,o=n.height,a=Math.min(i,o),s=null==e.x?.5:e.x,u=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(s=s*i+n.x,u=u*o+n.y,l*=a),s=r(s)?s:.5,u=r(u)?u:.5,l=l>=0&&r(l)?l:.5;var c=t.createRadialGradient(s,u,0,s,u,l);return c}function a(t,e,n){for(var r="radial"===e.type?o(t,e,n):i(t,e,n),a=e.colorStops,s=0;s<a.length;s++)r.addColorStop(a[s].offset,a[s].color);return r}function s(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}function u(t){return parseInt(t,10)}function l(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]||u(s[r])||u(t.style[r]))-(u(s[o])||0)-(u(s[a])||0)|0}n.d(e,{ZF:function(){return a},ap:function(){return l},cF:function(){return s}})},25815:function(t,e,n){"use strict";n.d(e,{Ak:function(){return a},GD:function(){return u},KL:function(){return o},iv:function(){return l},vU:function(){return s}});var r=n(59979),i=1;r.Z.hasGlobalWindow&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var o=/^(539|826)$/.test(n.j)?i:null,a=.4,s="#333",u="#ccc",l="#eee"},4792:function(t,e,n){"use strict";if(n.d(e,{m:function(){return o}}),/^(539|826)$/.test(n.j))var r=n(79214);var i=2*Math.PI;function o(t,e,n,o,a,s,u,l,c){if(0===u)return!1;var f=u;l-=t,c-=e;var h=Math.sqrt(l*l+c*c);if(h-f>n||h+f<n)return!1;if(Math.abs(o-a)%i<1e-4)return!0;if(s){var d=o;o=(0,r.m)(a),a=(0,r.m)(d)}else o=(0,r.m)(o),a=(0,r.m)(a);o>a&&(a+=i);var p=Math.atan2(c,l);return p<0&&(p+=i),p>=o&&p<=a||p+i>=o&&p+i<=a}},57753:function(t,e,n){"use strict";if(n.d(e,{m:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(3816);function i(t,e,n,i,o,a,s,u,l,c,f){if(0===l)return!1;var h=l;if(f>e+h&&f>i+h&&f>a+h&&f>u+h||f<e-h&&f<i-h&&f<a-h&&f<u-h||c>t+h&&c>n+h&&c>o+h&&c>s+h||c<t-h&&c<n-h&&c<o-h&&c<s-h)return!1;var d=r.t1(t,e,n,i,o,a,s,u,c,f,null);return d<=h/2}},47438:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,u=0,l=t;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;u=(e-r)/(t-n),l=(t*r-n*e)/(t-n);var c=u*o-a+l,f=c*c/(u*u+1);return f<=s/2*s/2}n.d(e,{m:function(){return r}})},91221:function(t,e,n){"use strict";if(n.d(e,{m:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(3816);function i(t,e,n,i,o,a,s,u,l){if(0===s)return!1;var c=s;if(l>e+c&&l>i+c&&l>a+c||l<e-c&&l<i-c&&l<a-c||u>t+c&&u>n+c&&u>o+c||u<t-c&&u<n-c&&u<o-c)return!1;var f=(0,r.Wr)(t,e,n,i,o,a,u,l,null);return f<=c/2}},66332:function(t,e,n){"use strict";if(n.d(e,{Dp:function(){return h},GM:function(){return d},M3:function(){return c},dz:function(){return s},lP:function(){return l},mU:function(){return f},wI:function(){return p}}),/^(539|826)$/.test(n.j))var r=n(96805);if(/^(539|826)$/.test(n.j))var i=n(86634);if(/^(539|826)$/.test(n.j))var o=n(9886);var a={};function s(t,e){e=e||o.Uo;var n=a[e];n||(n=a[e]=new i.ZP(500));var r=n.get(t);return null==r&&(r=o.qW.measureText(t,e).width,n.put(t,r)),r}function u(t,e,n,i){var o=s(t,e),a=h(e),u=c(0,o,n),l=f(0,a,i),d=new r.Z(u,l,o,a);return d}function l(t,e,n,i){var o=((t||"")+"").split("\n"),a=o.length;if(1===a)return u(o[0],e,n,i);for(var s=new r.Z(0,0,0,0),l=0;l<o.length;l++){var c=u(o[l],e,n,i);0===l?s.copy(c):s.union(c)}return s}function c(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function f(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function h(t){return s("国",t)}function d(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function p(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,u=n.x,l=n.y,c="left",f="top";if(r instanceof Array)u+=d(r[0],n.width),l+=d(r[1],n.height),c=null,f=null;else switch(r){case"left":u-=i,l+=s,c="right",f="middle";break;case"right":u+=i+a,l+=s,f="middle";break;case"top":u+=a/2,l-=i,c="center",f="bottom";break;case"bottom":u+=a/2,l+=o+i,c="center";break;case"inside":u+=a/2,l+=s,c="center",f="middle";break;case"insideLeft":u+=i,l+=s,f="middle";break;case"insideRight":u+=a-i,l+=s,c="right",f="middle";break;case"insideTop":u+=a/2,l+=i,c="center";break;case"insideBottom":u+=a/2,l+=o-i,c="center",f="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=a-i,l+=i,c="right";break;case"insideBottomLeft":u+=i,l+=o-i,f="bottom";break;case"insideBottomRight":u+=a-i,l+=o-i,c="right",f="bottom";break}return t=t||{},t.x=u,t.y=l,t.align=c,t.verticalAlign=f,t}},79214:function(t,e,n){"use strict";n.d(e,{m:function(){return i}});var r=2*Math.PI;function i(t){return t%=r,t<0&&(t+=r),t}},81757:function(t,e,n){"use strict";function r(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 u=a*(n-t)+t;return u===i?1/0:u>i?s:0}n.d(e,{Z:function(){return r}})},96805:function(t,e,n){"use strict";var r=n(66012),i=n(11123),o=Math.min,a=Math.max,s=new i.Z,u=new i.Z,l=new i.Z,c=new i.Z,f=new i.Z,h=new i.Z,d=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=o(t.x,this.x),n=o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(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,i=t.height/e.height,o=r.Ue();return r.Iu(o,o,[-e.x,-e.y]),r.bA(o,o,[n,i]),r.Iu(o,o,[t.x,t.y]),o},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,o=r.x,a=r.x+r.width,s=r.y,u=r.y+r.height,l=e.x,c=e.x+e.width,d=e.y,p=e.y+e.height,g=!(a<l||c<o||u<d||p<s);if(n){var v=1/0,m=0,y=Math.abs(a-l),b=Math.abs(c-o),x=Math.abs(u-d),_=Math.abs(p-s),w=Math.min(y,b),S=Math.min(x,_);a<l||c<o?w>m&&(m=w,y<b?i.Z.set(h,-y,0):i.Z.set(h,b,0)):w<v&&(v=w,y<b?i.Z.set(f,y,0):i.Z.set(f,-b,0)),u<d||p<s?S>m&&(m=S,x<_?i.Z.set(h,0,-x):i.Z.set(h,0,_)):w<v&&(v=w,x<_?i.Z.set(f,0,x):i.Z.set(f,0,-_))}return n&&i.Z.copy(n,g?f:h),g},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.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],f=r[3],h=r[4],d=r[5];return e.x=n.x*i+h,e.y=n.y*f+d,e.width=n.width*i,e.height=n.height*f,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}s.x=l.x=n.x,s.y=c.y=n.y,u.x=c.x=n.x+n.width,u.y=l.y=n.y+n.height,s.transform(r),c.transform(r),u.transform(r),l.transform(r),e.x=o(s.x,u.x,l.x,c.x),e.y=o(s.y,u.y,l.y,c.y);var p=a(s.x,u.x,l.x,c.x),g=a(s.y,u.y,l.y,c.y);e.width=p-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}();e.Z=/^(539|826)$/.test(n.j)?d:null},18626:function(t,e,n){"use strict";var r=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},u=i[t].length-1,l=i[t][u];return l&&l.callAtLast?i[t].splice(u,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 u=r[s];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}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,u=0;u<s;u++){var l=r[u];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(a);break;case 1:l.h.call(a,e[0]);break;case 2:l.h.call(a,e[0],e[1]);break;default:l.h.apply(a,e.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}();e.Z=/^(539|826)$/.test(n.j)?r:null},86634:function(t,e,n){"use strict";var r=function(){function t(t){this.value=t}return 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 u=n.head;n.remove(u),delete i[u.key],o=u.value,this._lastRemovedEntry=u}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.ZP=/^(539|826)$/.test(n.j)?o:null},63772:function(t,e,n){"use strict";var r=n(11123),i=[0,0],o=[0,0],a=new r.Z,s=new r.Z,u=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new r.Z;for(n=0;n<2;n++)this._axes[n]=new r.Z;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,u=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,u),n[3].set(o,u),e)for(var l=0;l<4;l++)n[l].transform(e);r.Z.sub(i[0],n[1],n[0]),r.Z.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,a,s,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,a,s,i,-1)&&(n=!1,i)||i||r.Z.copy(e,n?a:s),n},t.prototype._intersectCheckOneSide=function(t,e,n,a,s,u){for(var l=!0,c=0;c<2;c++){var f=this._axes[c];if(this._getProjMinMaxOnAxis(c,t._corners,i),this._getProjMinMaxOnAxis(c,e._corners,o),i[1]<o[0]||i[0]>o[1]){if(l=!1,s)return l;var h=Math.abs(o[0]-i[1]),d=Math.abs(i[0]-o[1]);Math.min(h,d)>a.len()&&(h<d?r.Z.scale(a,f,-h*u):r.Z.scale(a,f,d*u))}else if(n){h=Math.abs(o[0]-i[1]),d=Math.abs(i[0]-o[1]);Math.min(h,d)<n.len()&&(h<d?r.Z.scale(n,f,h*u):r.Z.scale(n,f,-d*u))}}return l},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,u=1;u<e.length;u++){var l=e[u].dot(r)+i[t];a=Math.min(l,a),s=Math.max(l,s)}n[0]=a,n[1]=s},t}();e.Z=/^(539|826)$/.test(n.j)?u:null},85727:function(t,e,n){"use strict";var r=n(15468),i=n(96805),o=n(25815),a=n(87100),s=n(3816),u={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},l=[],c=[],f=[],h=[],d=[],p=[],g=Math.min,v=Math.max,m=Math.cos,y=Math.sin,b=Math.abs,x=Math.PI,_=2*x,w="undefined"!==typeof Float32Array,S=[];function E(t){var e=Math.round(t/x*1e8)/1e8;return e%2*x}function T(t,e){var n=E(t[0]);n<0&&(n+=_);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=_?i=n+_:e&&n-i>=_?i=n-_:!e&&n>i?i=n+(_-E(n-i)):e&&n<i&&(i=n-(_-E(i-n))),t[0]=n,t[1]=i}var k=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=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=b(n/o.KL/t)||0,this._uy=b(n/o.KL/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(u.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=b(t-this._xi),r=b(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(u.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(u.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(u.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(),S[0]=r,S[1]=i,T(S,o),r=S[0],i=S[1];var a=i-r;return this.addData(u.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=m(i)*n+t,this._yi=y(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(u.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(u.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||!w||(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();w&&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,u){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var c=0;c<arguments.length;c++)l[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,w&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){f[0]=f[1]=d[0]=d[1]=Number.MAX_VALUE,h[0]=h[1]=p[0]=p[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,s=0,l=0;for(t=0;t<this._len;){var c=e[t++],g=1===t;switch(g&&(n=e[t],o=e[t+1],s=n,l=o),c){case u.M:n=s=e[t++],o=l=e[t++],d[0]=s,d[1]=l,p[0]=s,p[1]=l;break;case u.L:(0,a.u4)(n,o,e[t],e[t+1],d,p),n=e[t++],o=e[t++];break;case u.C:(0,a.H9)(n,o,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],d,p),n=e[t++],o=e[t++];break;case u.Q:(0,a.mJ)(n,o,e[t++],e[t++],e[t],e[t+1],d,p),n=e[t++],o=e[t++];break;case u.A:var v=e[t++],b=e[t++],x=e[t++],_=e[t++],w=e[t++],S=e[t++]+w;t+=1;var E=!e[t++];g&&(s=m(w)*x+v,l=y(w)*_+b),(0,a.qL)(v,b,x,_,w,S,E,d,p),n=m(S)*x+v,o=y(S)*_+b;break;case u.R:s=n=e[t++],l=o=e[t++];var T=e[t++],k=e[t++];(0,a.u4)(s,l,s+T,l+k,d,p);break;case u.Z:n=s,o=l;break}r.VV(f,f,d),r.Fp(h,h,p)}return 0===t&&(f[0]=f[1]=h[0]=h[1]=0),new i.Z(f[0],f[1],h[0]-f[0],h[1]-f[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,f=0,h=0,d=0;d<e;){var p=t[d++],x=1===d;x&&(i=t[d],o=t[d+1],a=i,l=o);var w=-1;switch(p){case u.M:i=a=t[d++],o=l=t[d++];break;case u.L:var S=t[d++],E=t[d++],T=S-i,k=E-o;(b(T)>n||b(k)>r||d===e-1)&&(w=Math.sqrt(T*T+k*k),i=S,o=E);break;case u.C:var C=t[d++],M=t[d++],A=(S=t[d++],E=t[d++],t[d++]),I=t[d++];w=(0,s.Ci)(i,o,C,M,S,E,A,I,10),i=A,o=I;break;case u.Q:C=t[d++],M=t[d++],S=t[d++],E=t[d++];w=(0,s.wQ)(i,o,C,M,S,E,10),i=S,o=E;break;case u.A:var O=t[d++],D=t[d++],P=t[d++],L=t[d++],N=t[d++],R=t[d++],j=R+N;d+=1,x&&(a=m(N)*P+O,l=y(N)*L+D),w=v(P,L)*g(_,Math.abs(R)),i=m(j)*P+O,o=y(j)*L+D;break;case u.R:a=i=t[d++],l=o=t[d++];var F=t[d++],B=t[d++];w=2*F+2*B;break;case u.Z:T=a-i,k=l-o;w=Math.sqrt(T*T+k*k),i=a,o=l;break}w>=0&&(c[h++]=w,f+=w)}return this._pathLen=f,f},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,f,h,d,p,x,_,w=this.data,S=this._ux,E=this._uy,T=this._len,k=e<1,C=0,M=0,A=0;if(!k||(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,d=this._pathLen,p=e*d,p))t:for(var I=0;I<T;){var O=w[I++],D=1===I;switch(D&&(i=w[I],o=w[I+1],n=i,r=o),O!==u.L&&A>0&&(t.lineTo(x,_),A=0),O){case u.M:n=i=w[I++],r=o=w[I++],t.moveTo(i,o);break;case u.L:a=w[I++],f=w[I++];var P=b(a-i),L=b(f-o);if(P>S||L>E){if(k){var N=h[M++];if(C+N>p){var R=(p-C)/N;t.lineTo(i*(1-R)+a*R,o*(1-R)+f*R);break t}C+=N}t.lineTo(a,f),i=a,o=f,A=0}else{var j=P*P+L*L;j>A&&(x=a,_=f,A=j)}break;case u.C:var F=w[I++],B=w[I++],z=w[I++],Z=w[I++],U=w[I++],H=w[I++];if(k){N=h[M++];if(C+N>p){R=(p-C)/N;(0,s.Vz)(i,F,z,U,R,l),(0,s.Vz)(o,B,Z,H,R,c),t.bezierCurveTo(l[1],c[1],l[2],c[2],l[3],c[3]);break t}C+=N}t.bezierCurveTo(F,B,z,Z,U,H),i=U,o=H;break;case u.Q:F=w[I++],B=w[I++],z=w[I++],Z=w[I++];if(k){N=h[M++];if(C+N>p){R=(p-C)/N;(0,s.Lx)(i,F,z,R,l),(0,s.Lx)(o,B,Z,R,c),t.quadraticCurveTo(l[1],c[1],l[2],c[2]);break t}C+=N}t.quadraticCurveTo(F,B,z,Z),i=z,o=Z;break;case u.A:var $=w[I++],G=w[I++],W=w[I++],V=w[I++],Y=w[I++],X=w[I++],q=w[I++],K=!w[I++],J=W>V?W:V,Q=b(W-V)>.001,tt=Y+X,et=!1;if(k){N=h[M++];C+N>p&&(tt=Y+X*(p-C)/N,et=!0),C+=N}if(Q&&t.ellipse?t.ellipse($,G,W,V,q,Y,tt,K):t.arc($,G,J,Y,tt,K),et)break t;D&&(n=m(Y)*W+$,r=y(Y)*V+G),i=m(tt)*W+$,o=y(tt)*V+G;break;case u.R:n=i=w[I],r=o=w[I+1],a=w[I++],f=w[I++];var nt=w[I++],rt=w[I++];if(k){N=h[M++];if(C+N>p){var it=p-C;t.moveTo(a,f),t.lineTo(a+g(it,nt),f),it-=nt,it>0&&t.lineTo(a+nt,f+g(it,rt)),it-=rt,it>0&&t.lineTo(a+v(nt-it,0),f+rt),it-=nt,it>0&&t.lineTo(a,f+v(rt-it,0));break t}C+=N}t.rect(a,f,nt,rt);break;case u.Z:if(k){N=h[M++];if(C+N>p){R=(p-C)/N;t.lineTo(i*(1-R)+n*R,o*(1-R)+r*R);break t}C+=N}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=u,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();e.Z=/^(539|826)$/.test(n.j)?k:null},11123:function(t,e,n){"use strict";var r=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}();e.Z=/^(539|826)$/.test(n.j)?r:null},87184:function(t,e,n){"use strict";n.d(e,{dN:function(){return d}});var r=n(66012),i=n(15468),o=r.yR,a=5e-5;function s(t){return t>a||t<-a}var u=[],l=[],c=r.Ue(),f=Math.abs,h=function(){function t(){}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 s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||r.Ue(),e?this.getLocalTransform(n):o(n),t&&(e?r.dC(n,t,n):r.JG(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(o(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(u);var n=u[0]<0?-1:1,i=u[1]<0?-1:1,o=((u[0]-n)*e+n)/u[0]||0,a=((u[1]-i)*e+i)/u[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||r.Ue(),r.U_(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(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&&(t.invTransform=t.invTransform||r.Ue(),r.dC(l,t.invTransform,e),e=l);var n=this.originX,i=this.originY;(n||i)&&(c[4]=n,c[5]=i,r.dC(l,e,c),l[4]-=n,l[5]-=i,e=l),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&&i.Ne(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&i.Ne(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&f(t[0]-1)>1e-10&&f(t[3]-1)>1e-10?Math.sqrt(f(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){p(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,c=t.x,f=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var p=n+s,g=i+u;e[4]=-p*o-h*g*a,e[5]=-g*a-d*p*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=d*o,e[2]=h*a,l&&r.U1(e,e,l),e[4]+=n+c,e[5]+=i+f,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),d=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function p(t,e){for(var n=0;n<d.length;n++){var r=d[n];t[r]=e[r]}}e.ZP=/^(539|826)$/.test(n.j)?h:null},87100:function(t,e,n){"use strict";n.d(e,{H9:function(){return m},mJ:function(){return y},qL:function(){return b},u4:function(){return p},zk:function(){return d}});var r=n(15468);if(/^(539|826)$/.test(n.j))var i=n(3816);var o=Math.min,a=Math.max,s=Math.sin,u=Math.cos,l=2*Math.PI,c=r.Ue(),f=r.Ue(),h=r.Ue();function d(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],s=r[0],u=r[1],l=r[1],c=1;c<t.length;c++)r=t[c],i=o(i,r[0]),s=a(s,r[0]),u=o(u,r[1]),l=a(l,r[1]);e[0]=i,e[1]=u,n[0]=s,n[1]=l}}function p(t,e,n,r,i,s){i[0]=o(t,n),i[1]=o(e,r),s[0]=a(t,n),s[1]=a(e,r)}var g=/^(539|826)$/.test(n.j)?[]:null,v=/^(539|826)$/.test(n.j)?[]:null;function m(t,e,n,r,s,u,l,c,f,h){var d=i.pP,p=i.af,m=d(t,n,s,l,g);f[0]=1/0,f[1]=1/0,h[0]=-1/0,h[1]=-1/0;for(var y=0;y<m;y++){var b=p(t,n,s,l,g[y]);f[0]=o(b,f[0]),h[0]=a(b,h[0])}m=d(e,r,u,c,v);for(y=0;y<m;y++){var x=p(e,r,u,c,v[y]);f[1]=o(x,f[1]),h[1]=a(x,h[1])}f[0]=o(t,f[0]),h[0]=a(t,h[0]),f[0]=o(l,f[0]),h[0]=a(l,h[0]),f[1]=o(e,f[1]),h[1]=a(e,h[1]),f[1]=o(c,f[1]),h[1]=a(c,h[1])}function y(t,e,n,r,s,u,l,c){var f=i.QC,h=i.Zm,d=a(o(f(t,n,s),1),0),p=a(o(f(e,r,u),1),0),g=h(t,n,s,d),v=h(e,r,u,p);l[0]=o(t,s,g),l[1]=o(e,u,v),c[0]=a(t,s,g),c[1]=a(e,u,v)}function b(t,e,n,i,o,a,d,p,g){var v=r.VV,m=r.Fp,y=Math.abs(o-a);if(y%l<1e-4&&y>1e-4)return p[0]=t-n,p[1]=e-i,g[0]=t+n,void(g[1]=e+i);if(c[0]=u(o)*n+t,c[1]=s(o)*i+e,f[0]=u(a)*n+t,f[1]=s(a)*i+e,v(p,c,f),m(g,c,f),o%=l,o<0&&(o+=l),a%=l,a<0&&(a+=l),o>a&&!d?a+=l:o<a&&d&&(o+=l),d){var b=a;a=o,o=b}for(var x=0;x<a;x+=Math.PI/2)x>o&&(h[0]=u(x)*n+t,h[1]=s(x)*i+e,v(p,h,p),m(g,h,g))}},3816:function(t,e,n){"use strict";n.d(e,{AZ:function(){return S},Ci:function(){return _},Jz:function(){return E},Lx:function(){return k},QC:function(){return T},Vz:function(){return b},Wr:function(){return C},X_:function(){return v},Zm:function(){return w},af:function(){return g},kD:function(){return m},pP:function(){return y},t1:function(){return x},wQ:function(){return M}});var r=n(15468),i=Math.pow,o=Math.sqrt,a=1e-8,s=1e-4,u=o(3),l=/^(539|826)$/.test(n.j)?1/3:null,c=(0,r.Ue)(),f=(0,r.Ue)(),h=(0,r.Ue)();function d(t){return t>-a&&t<a}function p(t){return t>a||t<-a}function g(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 v(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function m(t,e,n,r,a,s){var c=r+3*(e-n)-t,f=3*(n-2*e+t),h=3*(e-t),p=t-a,g=f*f-3*c*h,v=f*h-9*c*p,m=h*h-3*f*p,y=0;if(d(g)&&d(v))if(d(f))s[0]=0;else{var b=-h/f;b>=0&&b<=1&&(s[y++]=b)}else{var x=v*v-4*g*m;if(d(x)){var _=v/g,w=(b=-f/c+_,-_/2);b>=0&&b<=1&&(s[y++]=b),w>=0&&w<=1&&(s[y++]=w)}else if(x>0){var S=o(x),E=g*f+1.5*c*(-v+S),T=g*f+1.5*c*(-v-S);E=E<0?-i(-E,l):i(E,l),T=T<0?-i(-T,l):i(T,l);b=(-f-(E+T))/(3*c);b>=0&&b<=1&&(s[y++]=b)}else{var k=(2*g*f-3*c*v)/(2*o(g*g*g)),C=Math.acos(k)/3,M=o(g),A=Math.cos(C),I=(b=(-f-2*M*A)/(3*c),w=(-f+M*(A+u*Math.sin(C)))/(3*c),(-f+M*(A-u*Math.sin(C)))/(3*c));b>=0&&b<=1&&(s[y++]=b),w>=0&&w<=1&&(s[y++]=w),I>=0&&I<=1&&(s[y++]=I)}}return y}function y(t,e,n,r,i){var a=6*n-12*e+6*t,s=9*e+3*r-3*t-9*n,u=3*e-3*t,l=0;if(d(s)){if(p(a)){var c=-u/a;c>=0&&c<=1&&(i[l++]=c)}}else{var f=a*a-4*s*u;if(d(f))i[0]=-a/(2*s);else if(f>0){var h=o(f),g=(c=(-a+h)/(2*s),(-a-h)/(2*s));c>=0&&c<=1&&(i[l++]=c),g>=0&&g<=1&&(i[l++]=g)}}return l}function b(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,u=(r-n)*i+n,l=(s-a)*i+a,c=(u-s)*i+s,f=(c-l)*i+l;o[0]=t,o[1]=a,o[2]=l,o[3]=f,o[4]=f,o[5]=c,o[6]=u,o[7]=r}function x(t,e,n,i,a,u,l,d,p,v,m){var y,b,x,_,w,S=.005,E=1/0;c[0]=p,c[1]=v;for(var T=0;T<1;T+=.05)f[0]=g(t,n,a,l,T),f[1]=g(e,i,u,d,T),_=(0,r.WU)(c,f),_<E&&(y=T,E=_);E=1/0;for(var k=0;k<32;k++){if(S<s)break;b=y-S,x=y+S,f[0]=g(t,n,a,l,b),f[1]=g(e,i,u,d,b),_=(0,r.WU)(f,c),b>=0&&_<E?(y=b,E=_):(h[0]=g(t,n,a,l,x),h[1]=g(e,i,u,d,x),w=(0,r.WU)(h,c),x<=1&&w<E?(y=x,E=w):S*=.5)}return m&&(m[0]=g(t,n,a,l,y),m[1]=g(e,i,u,d,y)),o(E)}function _(t,e,n,r,i,o,a,s,u){for(var l=t,c=e,f=0,h=1/u,d=1;d<=u;d++){var p=d*h,v=g(t,n,i,a,p),m=g(e,r,o,s,p),y=v-l,b=m-c;f+=Math.sqrt(y*y+b*b),l=v,c=m}return f}function w(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function S(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function E(t,e,n,r,i){var a=t-2*e+n,s=2*(e-t),u=t-r,l=0;if(d(a)){if(p(s)){var c=-u/s;c>=0&&c<=1&&(i[l++]=c)}}else{var f=s*s-4*a*u;if(d(f)){c=-s/(2*a);c>=0&&c<=1&&(i[l++]=c)}else if(f>0){var h=o(f),g=(c=(-s+h)/(2*a),(-s-h)/(2*a));c>=0&&c<=1&&(i[l++]=c),g>=0&&g<=1&&(i[l++]=g)}}return l}function T(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function k(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 C(t,e,n,i,a,u,l,d,p){var g,v=.005,m=1/0;c[0]=l,c[1]=d;for(var y=0;y<1;y+=.05){f[0]=w(t,n,a,y),f[1]=w(e,i,u,y);var b=(0,r.WU)(c,f);b<m&&(g=y,m=b)}m=1/0;for(var x=0;x<32;x++){if(v<s)break;var _=g-v,S=g+v;f[0]=w(t,n,a,_),f[1]=w(e,i,u,_);b=(0,r.WU)(f,c);if(_>=0&&b<m)g=_,m=b;else{h[0]=w(t,n,a,S),h[1]=w(e,i,u,S);var E=(0,r.WU)(h,c);S<=1&&E<m?(g=S,m=E):v*=.5}}return p&&(p[0]=w(t,n,a,g),p[1]=w(e,i,u,g)),o(m)}function M(t,e,n,r,i,o,a){for(var s=t,u=e,l=0,c=1/a,f=1;f<=a;f++){var h=f*c,d=w(t,n,i,h),p=w(e,r,o,h),g=d-s,v=p-u;l+=Math.sqrt(g*g+v*v),s=d,u=p}return l}},27311:function(t,e,n){"use strict";if(n.d(e,{A4:function(){return u},F1:function(){return p},UK:function(){return f},YB:function(){return s}}),/^(539|826)$/.test(n.j))var r=n(59979);if(/^(539|826)$/.test(n.j))var i=n(44788);var o="___zrEVENTSAVED",a=/^(539|826)$/.test(n.j)?[]:null;function s(t,e,n,r,i){return u(a,e,r,i,!0)&&u(t,n,a[0],a[1])}function u(t,e,n,i,a){if(e.getBoundingClientRect&&r.Z.domSupported&&!f(e)){var s=e[o]||(e[o]={}),u=l(e,s),h=c(u,s,a);if(h)return h(t,n,i),!0}return!1}function l(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,u=o%2,l=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[u]+":0",i[l]+":0",r[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function c(t,e,n){for(var r=n?"invTrans":"trans",o=e[r],a=e.srcCoords,s=[],u=[],l=!0,c=0;c<4;c++){var f=t[c].getBoundingClientRect(),h=2*c,d=f.left,p=f.top;s.push(d,p),l=l&&a&&d===a[h]&&p===a[h+1],u.push(t[c].offsetLeft,t[c].offsetTop)}return l&&o?o:(e.srcCoords=s,e[r]=n?(0,i.Q)(u,s):(0,i.Q)(s,u))}function f(t){return"CANVAS"===t.nodeName.toUpperCase()}var h=/([&<>"'])/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function p(t){return null==t?"":(t+"").replace(h,(function(t,e){return d[e]}))}},59979:function(t,e,n){"use strict";var r=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),i=function(){function t(){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}return t}(),o=new i;function a(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}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),e.Z=/^(539|826)$/.test(n.j)?o:null},14834:function(t,e,n){"use strict";n.d(e,{OD:function(){return f},Oo:function(){return d},eV:function(){return u},iP:function(){return c},sT:function(){return g},xg:function(){return p}});var r=n(59979);if(/^(539|826)$/.test(n.j))var i=n(27311);var o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=/^(539|826)$/.test(n.j)?[]:null,s=r.Z.browser.firefox&&+r.Z.browser.version.split(".")[0]<39;function u(t,e,n,r){return n=n||{},r?l(t,e,n):s&&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):l(t,e,n),n}function l(t,e,n){if(r.Z.domSupported&&t.getBoundingClientRect){var o=e.clientX,s=e.clientY;if((0,i.UK)(t)){var u=t.getBoundingClientRect();return n.zrX=o-u.left,void(n.zrY=s-u.top)}if((0,i.A4)(a,t,o,s))return n.zrX=a[0],void(n.zrY=a[1])}n.zrX=n.zrY=0}function c(t){return t||window.event}function f(t,e,n){if(e=c(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var a="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];a&&u(t,a,e,n)}else{u(t,e,e,n);var s=h(e);e.zrDelta=s?s/120:-(e.detail||0)/3}var l=e.button;return null==e.which&&void 0!==l&&o.test(e.type)&&(e.which=1&l?1:2&l?3:4&l?2:0),e}function h(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function d(t,e,n,r){t.addEventListener(e,n,r)}function p(t,e,n,r){t.removeEventListener(e,n,r)}var g=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}},44788:function(t,e,n){"use strict";n.d(e,{Q:function(){return o}});var r=Math.log(2);function i(t,e,n,o,a,s){var u=o+"-"+a,l=t.length;if(s.hasOwnProperty(u))return s[u];if(1===e){var c=Math.round(Math.log((1<<l)-1&~a)/r);return t[n][c]}var f=o|1<<n,h=n+1;while(o&1<<h)h++;for(var d=0,p=0,g=0;p<l;p++){var v=1<<p;v&a||(d+=(g%2?-1:1)*t[n][p]*i(t,e-1,h,f,a|v,s),g++)}return s[u]=d,d}function o(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={},o=i(n,8,0,0,0,r);if(0!==o){for(var a=[],s=0;s<8;s++)for(var u=0;u<8;u++)null==a[u]&&(a[u]=0),a[u]+=((s+u)%2?-1:1)*i(n,7,0===s?1:0,1<<s,1<<u,r)/o*e[s];return function(t,e,n){var r=e*a[6]+n*a[7]+1;t[0]=(e*a[0]+n*a[1]+a[2])/r,t[1]=(e*a[3]+n*a[4]+a[5])/r}}}},66012:function(t,e,n){"use strict";function r(){return[1,0,0,1,0,0]}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(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 a(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],u=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]=u,t}function s(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 u(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],u=e[3],l=e[5],c=Math.sin(n),f=Math.cos(n);return t[0]=i*f+s*c,t[1]=-i*c+s*f,t[2]=o*f+u*c,t[3]=-o*c+f*u,t[4]=f*(a-r[0])+c*(l-r[1])+r[0],t[5]=f*(l-r[1])-c*(a-r[0])+r[1],t}function l(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 c(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],u=n*a-o*r;return u?(u=1/u,t[0]=a*u,t[1]=-o*u,t[2]=-r*u,t[3]=n*u,t[4]=(r*s-a*i)*u,t[5]=(o*i-n*s)*u,t):null}n.d(e,{Iu:function(){return s},JG:function(){return o},U1:function(){return u},U_:function(){return c},Ue:function(){return r},bA:function(){return l},dC:function(){return a},yR:function(){return i}})},9886:function(t,e,n){"use strict";n.d(e,{Uo:function(){return o},n5:function(){return r},qW:function(){return f}});var r=12,i="sans-serif",o=r+"px "+i,a=20,s=100,u="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function l(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}var c=l(u),f={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,i){if(!t){var a=f.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==i&&(e=t.font=i||o),t.measureText(n);n=n||"",i=i||o;var s=/(\d+)px/.exec(i),u=s&&+s[1]||r,l=0;if(i.indexOf("mono")>=0)l=u*n.length;else for(var h=0;h<n.length;h++){var d=c[n[h]];l+=null==d?u:d*u}return{width:l}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}}},1994:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var r=32,i=7;function o(t){var e=0;while(t>=r)e|=1&t,t>>=1;return t+e}function a(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){while(i<n&&r(t[i],t[i-1])<0)i++;s(t,e,i)}else while(i<n&&r(t[i],t[i-1])>=0)i++;return i-e}function s(t,e,n){n--;while(e<n){var r=t[e];t[e++]=t[n],t[n--]=r}}function u(t,e,n,r,i){for(r===e&&r++;r<n;r++){var o,a=t[r],s=e,u=r;while(s<u)o=s+u>>>1,i(a,t[o])<0?u=o:s=o+1;var l=r-s;switch(l){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:while(l>0)t[s+l]=t[s+l-1],l--}t[s]=a}}function l(t,e,n,r,i,o){var a=0,s=0,u=1;if(o(t,e[n+i])>0){s=r-i;while(u<s&&o(t,e[n+i+u])>0)a=u,u=1+(u<<1),u<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}else{s=i+1;while(u<s&&o(t,e[n+i-u])<=0)a=u,u=1+(u<<1),u<=0&&(u=s);u>s&&(u=s);var l=a;a=i-u,u=i-l}a++;while(a<u){var c=a+(u-a>>>1);o(t,e[n+c])>0?a=c+1:u=c}return u}function c(t,e,n,r,i,o){var a=0,s=0,u=1;if(o(t,e[n+i])<0){s=i+1;while(u<s&&o(t,e[n+i-u])<0)a=u,u=1+(u<<1),u<=0&&(u=s);u>s&&(u=s);var l=a;a=i-u,u=i-l}else{s=r-i;while(u<s&&o(t,e[n+i+u])>=0)a=u,u=1+(u<<1),u<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}a++;while(a<u){var c=a+(u-a>>>1);o(t,e[n+c])<0?u=c:a=c+1}return u}function f(t,e){var n,r,o=i,a=0,s=[];function u(t,e){n[a]=t,r[a]=e,a+=1}function f(){while(a>1){var t=a-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;d(t)}}function h(){while(a>1){var t=a-2;t>0&&r[t-1]<r[t+1]&&t--,d(t)}}function d(i){var o=n[i],s=r[i],u=n[i+1],f=r[i+1];r[i]=s+f,i===a-3&&(n[i+1]=n[i+2],r[i+1]=r[i+2]),a--;var h=c(t[u],t,o,s,0,e);o+=h,s-=h,0!==s&&(f=l(t[o+s-1],t,u,f,f-1,e),0!==f&&(s<=f?p(o,s,u,f):g(o,s,u,f)))}function p(n,r,a,u){var f=0;for(f=0;f<r;f++)s[f]=t[n+f];var h=0,d=a,p=n;if(t[p++]=t[d++],0!==--u)if(1!==r){var g,v,m,y=o;while(1){g=0,v=0,m=!1;do{if(e(t[d],s[h])<0){if(t[p++]=t[d++],v++,g=0,0===--u){m=!0;break}}else if(t[p++]=s[h++],g++,v=0,1===--r){m=!0;break}}while((g|v)<y);if(m)break;do{if(g=c(t[d],s,h,r,0,e),0!==g){for(f=0;f<g;f++)t[p+f]=s[h+f];if(p+=g,h+=g,r-=g,r<=1){m=!0;break}}if(t[p++]=t[d++],0===--u){m=!0;break}if(v=l(s[h],t,d,u,0,e),0!==v){for(f=0;f<v;f++)t[p+f]=t[d+f];if(p+=v,d+=v,u-=v,0===u){m=!0;break}}if(t[p++]=s[h++],1===--r){m=!0;break}y--}while(g>=i||v>=i);if(m)break;y<0&&(y=0),y+=2}if(o=y,o<1&&(o=1),1===r){for(f=0;f<u;f++)t[p+f]=t[d+f];t[p+u]=s[h]}else{if(0===r)throw new Error;for(f=0;f<r;f++)t[p+f]=s[h+f]}}else{for(f=0;f<u;f++)t[p+f]=t[d+f];t[p+u]=s[h]}else for(f=0;f<r;f++)t[p+f]=s[h+f]}function g(n,r,a,u){var f=0;for(f=0;f<u;f++)s[f]=t[a+f];var h=n+r-1,d=u-1,p=a+u-1,g=0,v=0;if(t[p--]=t[h--],0!==--r)if(1!==u){var m=o;while(1){var y=0,b=0,x=!1;do{if(e(s[d],t[h])<0){if(t[p--]=t[h--],y++,b=0,0===--r){x=!0;break}}else if(t[p--]=s[d--],b++,y=0,1===--u){x=!0;break}}while((y|b)<m);if(x)break;do{if(y=r-c(s[d],t,n,r,r-1,e),0!==y){for(p-=y,h-=y,r-=y,v=p+1,g=h+1,f=y-1;f>=0;f--)t[v+f]=t[g+f];if(0===r){x=!0;break}}if(t[p--]=s[d--],1===--u){x=!0;break}if(b=u-l(t[h],s,0,u,u-1,e),0!==b){for(p-=b,d-=b,u-=b,v=p+1,g=d+1,f=0;f<b;f++)t[v+f]=s[g+f];if(u<=1){x=!0;break}}if(t[p--]=t[h--],0===--r){x=!0;break}m--}while(y>=i||b>=i);if(x)break;m<0&&(m=0),m+=2}if(o=m,o<1&&(o=1),1===u){for(p-=r,h-=r,v=p+1,g=h+1,f=r-1;f>=0;f--)t[v+f]=t[g+f];t[p]=s[d]}else{if(0===u)throw new Error;for(g=p-(u-1),f=0;f<u;f++)t[g+f]=s[f]}}else{for(p-=r,h-=r,v=p+1,g=h+1,f=r-1;f>=0;f--)t[v+f]=t[g+f];t[p]=s[d]}else for(g=p-(u-1),f=0;f<u;f++)t[g+f]=s[f]}return n=[],r=[],{mergeRuns:f,forceMergeRuns:h,pushRun:u}}function h(t,e,n,i){n||(n=0),i||(i=t.length);var s=i-n;if(!(s<2)){var l=0;if(s<r)return l=a(t,n,i,e),void u(t,n,i,n+l,e);var c=f(t,e),h=o(s);do{if(l=a(t,n,i,e),l<h){var d=s;d>h&&(d=h),u(t,n,n+d,n+l,e),l=d}c.pushRun(n,l),c.mergeRuns(),s-=l,n+=l}while(0!==s);c.forceMergeRuns()}}},95797:function(t,e,n){"use strict";n.d(e,{$j:function(){return lt},Bu:function(){return G},H:function(){return m},HD:function(){return R},I3:function(){return ht},Jv:function(){return W},Kn:function(){return B},M8:function(){return v},MY:function(){return q},Mh:function(){return U},Qq:function(){return H},R1:function(){return Y},RI:function(){return ct},S6:function(){return k},TS:function(){return b},UI:function(){return C},WA:function(){return P},WW:function(){return st},XP:function(){return I},XW:function(){return S},ZT:function(){return ft},ak:function(){return D},cd:function(){return j},ce:function(){return _},cq:function(){return w},d9:function(){return y},dL:function(){return $},fU:function(){return Z},fy:function(){return J},hX:function(){return A},hj:function(){return F},hu:function(){return K},jB:function(){return E},kJ:function(){return L},kW:function(){return at},l7:function(){return x},mf:function(){return N},nW:function(){return ut},pD:function(){return V},s7:function(){return tt},tP:function(){return X},u4:function(){return M},zG:function(){return T}});var r=n(9886),i=M(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=M(["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,u=s.forEach,l=s.filter,c=s.slice,f=s.map,h=function(){}.constructor,d=h?h.prototype:null,p="__proto__",g=2311;function v(){return g++}function m(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!==typeof console&&console.error.apply(console,t)}function y(t){if(null==t||"object"!==typeof t)return t;var e=t,n=a.call(t);if("[object Array]"===n){if(!et(t)){e=[];for(var r=0,s=t.length;r<s;r++)e[r]=y(t[r])}}else if(o[n]){if(!et(t)){var u=t.constructor;if(u.from)e=u.from(t);else{e=new u(t.length);for(r=0,s=t.length;r<s;r++)e[r]=t[r]}}}else if(!i[n]&&!et(t)&&!U(t))for(var l in e={},t)t.hasOwnProperty(l)&&l!==p&&(e[l]=y(t[l]));return e}function b(t,e,n){if(!B(e)||!B(t))return n?y(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==p){var i=t[r],o=e[r];!B(o)||!B(i)||L(o)||L(i)||U(o)||U(i)||z(o)||z(i)||et(o)||et(i)?!n&&r in t||(t[r]=y(e[r])):b(i,o,n)}return t}function x(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 _(t,e,n){for(var r=I(e),i=0;i<r.length;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}r.qW.createCanvas;function w(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}function S(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}function E(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 _(t,e,n)}function T(t){return!!t&&("string"!==typeof t&&"number"===typeof t.length)}function k(t,e,n){if(t&&e)if(t.forEach&&t.forEach===u)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 C(t,e,n){if(!t)return[];if(!e)return X(t);if(t.map&&t.map===f)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}function M(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 A(t,e,n){if(!t)return[];if(!e)return X(t);if(t.filter&&t.filter===l)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}function I(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}function O(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)))}}var D=d&&N(d.bind)?d.call.bind(d.bind):O;function P(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 L(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function N(t){return"function"===typeof t}function R(t){return"string"===typeof t}function j(t){return"[object String]"===a.call(t)}function F(t){return"number"===typeof t}function B(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function z(t){return!!i[a.call(t)]}function Z(t){return!!o[a.call(t)]}function U(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function H(t){return null!=t.colorStops}function $(t){return null!=t.image}function G(t){return t!==t}function W(){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]}function V(t,e){return null!=t?t:e}function Y(t,e,n){return null!=t?t:null!=e?e:n}function X(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return c.apply(t,e)}function q(t){if("number"===typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function K(t,e){if(!t)throw new Error(e)}function J(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Q="__ec_primitive__";function tt(t){t[Q]=!0}function et(t){return t[Q]}var nt=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 I(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),rt="function"===typeof Map;function it(){return rt?new Map:new nt}var ot=function(){function t(e){var n=L(e);this.data=it();var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&k(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 rt?Array.from(t):t},t.prototype.removeKey=function(t){this.data["delete"](t)},t}();function at(t){return new ot(t)}function st(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];var i=t.length;for(r=0;r<e.length;r++)n[r+i]=e[r];return n}function ut(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&x(n,e),n}function lt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ct(t,e){return t.hasOwnProperty(e)}function ft(){}var ht=180/Math.PI},15468:function(t,e,n){"use strict";function r(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function i(t){return[t[0],t[1]]}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){return Math.sqrt(u(t))}n.d(e,{Fp:function(){return y},Fv:function(){return c},IH:function(){return o},Ne:function(){return v},TE:function(){return f},TK:function(){return h},Ue:function(){return r},VV:function(){return m},WU:function(){return p},bA:function(){return l},d9:function(){return i},lu:function(){return a},t7:function(){return g}});function u(t){return t[0]*t[0]+t[1]*t[1]}function l(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function c(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 f(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var h=/^(539|826)$/.test(n.j)?f:null;function d(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var p=/^(539|826)$/.test(n.j)?d:null;function g(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 v(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 m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},82586:function(t,e,n){"use strict";var r=n(4311),i=n(23256),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return(0,r.ZT)(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),i.ZP.prototype.getBoundingRect.call(this)},e}(i.ZP);e.Z=/^(539|826)$/.test(n.j)?o:null},68992:function(t,e,n){"use strict";n.d(e,{ik:function(){return c},tj:function(){return l}});var r=n(4311),i=n(88452),o=n(96805),a=n(95797),s=n(8088),u="__zr_style_"+Math.round(10*Math.random()),l={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},c={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};l[u]=!0;var f=["z","z2","invisible"],h=["invisible"],d=function(t){function e(e){return t.call(this,e)||this}return(0,r.ZT)(e,t),e.prototype._init=function(e){for(var n=(0,a.XP)(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&&v(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){var a=this.parent;while(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),r=this.getBoundingRect();return r.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,a=r.shadowOffsetX||0,s=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new o.Z(0,0,0,0)),e?o.Z.applyTransform(t,n,e):t.copy(n),(i||a||s)&&(t.width+=2*i+Math.abs(a),t.height+=2*i+Math.abs(s),t.x=Math.min(t.x,t.x+a-i),t.y=Math.min(t.y,t.y+s-i));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+2*u),t.height=Math.ceil(t.height+1+2*u))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new o.Z(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:(0,a.l7)(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=s.SE,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&s.SE)},e.prototype.styleUpdated=function(){this.__dirty&=~s.SE},e.prototype.createStyle=function(t){return(0,a.nW)(l,t)},e.prototype.useStyle=function(t){t[u]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[u]},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,f)},e.prototype._applyStateObj=function(e,n,r,i,o,s){t.prototype._applyStateObj.call(this,e,n,r,i,o,s);var u,l=!(n&&i);if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(u,n.style)):l&&(u=r.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var d=(0,a.XP)(c),p=0;p<d.length;p++){var g=d[p];g in u&&(u[g]=u[g],this.style[g]=c[g])}var v=(0,a.XP)(u);for(p=0;p<v.length;p++){g=v[p];this.style[g]=this.style[g]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);var m=this.__inHover?h:f;for(p=0;p<m.length;p++){g=m[p];n&&null!=n[g]?this[g]=n[g]:l&&null!=r[g]&&(this[g]=r[g])}},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(0,a.l7)(t,e),t},e.prototype.getAnimationStyleProps=function(){return c},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=s.YV|s.SE}(),e}(i.Z),p=new o.Z(0,0,0,0),g=new o.Z(0,0,0,0);function v(t,e,n){return p.copy(t.getBoundingRect()),t.transform&&p.applyTransform(t.transform),g.width=e,g.height=n,!p.intersect(g)}e.ZP=/^(539|826)$/.test(n.j)?d:null},15263:function(t,e,n){"use strict";var r=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();e.Z=/^(539|826)$/.test(n.j)?r:null},3082:function(t,e,n){"use strict";var r=n(4311),i=n(95797),o=n(88452),a=n(96805),s=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return(0,r.ZT)(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=i.cq(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=i.cq(n,t);return r<0||(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++){var r=this._children[n];r.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new a.Z(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var s=n[o];if(!s.ignore&&!s.invisible){var u=s.getBoundingRect(),l=s.getLocalTransform(r);l?(a.Z.applyTransform(e,u,l),i=i||e.clone(),i.union(e)):(i=i||u.clone(),i.union(u))}}return i||e},e}(o.Z);s.prototype.type="group",e.Z=/^(539|826)$/.test(n.j)?s:null},12222:function(t,e,n){"use strict";var r=n(4311),i=n(68992),o=n(96805),a=n(95797),s=(0,a.ce)({x:0,y:0},i.tj),u={style:(0,a.ce)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i.ik.style)};function l(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.createStyle=function(t){return(0,a.nW)(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=l(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return u},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o.Z(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(i.ZP);c.prototype.type="image",e.ZP=/^(539|826)$/.test(n.j)?c:null},4331:function(t,e,n){"use strict";var r=n(4311),i=n(68992),o=n(96805),a=[],s=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(0,r.ZT)(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++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new o.Z(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(a)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(r.contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var o=this._displayables[i];if(o.contain(t,e))return!0}return!1},e}(i.ZP);e.Z=/^(539|826)$/.test(n.j)?s:null},60816:function(t,e,n){"use strict";var r=n(4311),i=n(15263),o=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(0,r.ZT)(e,t),e}(i.Z);e.Z=/^(539|826)$/.test(n.j)?o:null},23256:function(t,e,n){"use strict";n.d(e,{$t:function(){return I},ZP:function(){return L}});var r=n(4311),i=n(68992),o=n(85727),a=n(47438),s=n(57753),u=n(91221),l=n(4792),c=n(3816),f=n(81757),h=o.Z.CMD,d=2*Math.PI,p=1e-4;function g(t,e){return Math.abs(t-e)<p}var v=[-1,-1,-1],m=[-1,-1];function y(){var t=m[0];m[0]=m[1],m[1]=t}function b(t,e,n,r,i,o,a,s,u,l){if(l>e&&l>r&&l>o&&l>s||l<e&&l<r&&l<o&&l<s)return 0;var f=c.kD(e,r,o,s,l,v);if(0===f)return 0;for(var h=0,d=-1,p=void 0,g=void 0,b=0;b<f;b++){var x=v[b],_=0===x||1===x?.5:1,w=c.af(t,n,i,a,x);w<u||(d<0&&(d=c.pP(e,r,o,s,m),m[1]<m[0]&&d>1&&y(),p=c.af(e,r,o,s,m[0]),d>1&&(g=c.af(e,r,o,s,m[1]))),2===d?x<m[0]?h+=p<e?_:-_:x<m[1]?h+=g<p?_:-_:h+=s<g?_:-_:x<m[0]?h+=p<e?_:-_:h+=s<p?_:-_)}return h}function x(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var u=c.Jz(e,r,o,s,v);if(0===u)return 0;var l=c.QC(e,r,o);if(l>=0&&l<=1){for(var f=0,h=c.Zm(e,r,o,l),d=0;d<u;d++){var p=0===v[d]||1===v[d]?.5:1,g=c.Zm(t,n,i,v[d]);g<a||(v[d]<l?f+=h<e?p:-p:f+=o<h?p:-p)}return f}p=0===v[0]||1===v[0]?.5:1,g=c.Zm(t,n,i,v[0]);return g<a?0:o<e?p:-p}function _(t,e,n,r,i,o,a,s){if(s-=e,s>n||s<-n)return 0;var u=Math.sqrt(n*n-s*s);v[0]=-u,v[1]=u;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=d-1e-4){r=0,i=d;var c=o?1:-1;return a>=v[0]+t&&a<=v[1]+t?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=d,i+=d);for(var h=0,p=0;p<2;p++){var g=v[p];if(g+t>a){var m=Math.atan2(s,g);c=o?1:-1;m<0&&(m=d+m),(m>=r&&m<=i||m+d>=r&&m+d<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),h+=c)}}return h}function w(t,e,n,r,i){for(var o,c,d=t.data,p=t.len(),v=0,m=0,y=0,w=0,S=0,E=0;E<p;){var T=d[E++],k=1===E;switch(T===h.M&&E>1&&(n||(v+=(0,f.Z)(m,y,w,S,r,i))),k&&(m=d[E],y=d[E+1],w=m,S=y),T){case h.M:w=d[E++],S=d[E++],m=w,y=S;break;case h.L:if(n){if(a.m(m,y,d[E],d[E+1],e,r,i))return!0}else v+=(0,f.Z)(m,y,d[E],d[E+1],r,i)||0;m=d[E++],y=d[E++];break;case h.C:if(n){if(s.m(m,y,d[E++],d[E++],d[E++],d[E++],d[E],d[E+1],e,r,i))return!0}else v+=b(m,y,d[E++],d[E++],d[E++],d[E++],d[E],d[E+1],r,i)||0;m=d[E++],y=d[E++];break;case h.Q:if(n){if(u.m(m,y,d[E++],d[E++],d[E],d[E+1],e,r,i))return!0}else v+=x(m,y,d[E++],d[E++],d[E],d[E+1],r,i)||0;m=d[E++],y=d[E++];break;case h.A:var C=d[E++],M=d[E++],A=d[E++],I=d[E++],O=d[E++],D=d[E++];E+=1;var P=!!(1-d[E++]);o=Math.cos(O)*A+C,c=Math.sin(O)*I+M,k?(w=o,S=c):v+=(0,f.Z)(m,y,o,c,r,i);var L=(r-C)*I/A+C;if(n){if(l.m(C,M,I,O,O+D,P,e,L,i))return!0}else v+=_(C,M,I,O,O+D,P,L,i);m=Math.cos(O+D)*A+C,y=Math.sin(O+D)*I+M;break;case h.R:w=m=d[E++],S=y=d[E++];var N=d[E++],R=d[E++];if(o=w+N,c=S+R,n){if(a.m(w,S,o,S,e,r,i)||a.m(o,S,o,c,e,r,i)||a.m(o,c,w,c,e,r,i)||a.m(w,c,w,S,e,r,i))return!0}else v+=(0,f.Z)(o,S,o,c,r,i),v+=(0,f.Z)(w,c,w,S,r,i);break;case h.Z:if(n){if(a.m(m,y,w,S,e,r,i))return!0}else v+=(0,f.Z)(m,y,w,S,r,i);m=w,y=S;break}}return n||g(y,S)||(v+=(0,f.Z)(m,y,w,S,r,i)||0),0!==v}function S(t,e,n){return w(t,0,!1,e,n)}function E(t,e,n,r){return w(t,e,!0,n,r)}var T=n(95797),k=n(76171),C=n(25815),M=n(8088),A=n(87184),I=(0,T.ce)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},i.tj),O={style:(0,T.ce)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},i.ik.style)},D=A.dN.concat(["invisible","culling","z","z2","zlevel","parent"]),P=function(t){function e(e){return t.call(this,e)||this}return(0,r.ZT)(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<D.length;++s)i[D[s]]=this[D[s]];i.__dirty|=M.YV}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=(0,T.XP)(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?(0,T.l7)(this.style,a):this.useStyle(a):"shape"===o?(0,T.l7)(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((0,T.HD)(t)){var e=(0,k.L0)(t,0);return e>.5?C.vU:e>.2?C.iv:C.GD}if(t)return C.GD}return C.vU},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if((0,T.HD)(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=(0,k.L0)(t,0)<C.Ak;if(r===i)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~M.RH},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 o.Z(!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,e=t.fill;return null!=e&&"none"!==e},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&M.RH)&&(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 u=this.strokeContainThreshold;s=Math.max(s,null==u?4:u)}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)),E(o,a/s,t,e)))return!0}if(this.hasFill())return S(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=M.RH,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:(0,T.l7)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&M.RH)},e.prototype.createStyle=function(t){return(0,T.nW)(I,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=(0,T.l7)({},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,u=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=(0,T.l7)({},r.shape),(0,T.l7)(s,n.shape)):(s=(0,T.l7)({},i?this.shape:r.shape),(0,T.l7)(s,n.shape)):u&&(s=r.shape),s)if(o){this.shape=(0,T.l7)({},this.shape);for(var l={},c=(0,T.XP)(s),f=0;f<c.length;f++){var h=c[f];"object"===typeof s[h]?this.shape[h]=s[h]:l[h]=s[h]}this._transitionState(e,{shape:l},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 O},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(0,r.ZT)(n,e),n.prototype.getDefaultStyle=function(){return(0,T.d9)(t.style)},n.prototype.getDefaultShape=function(){return(0,T.d9)(t.shape)},n}(e);for(var i in t)"function"===typeof t[i]&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=M.YV|M.SE|M.RH}(),e}(i.ZP),L=P},6870:function(t,e,n){"use strict";var r=n(4311),i=n(15263),o=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(0,r.ZT)(e,t),e}(i.Z);e.Z=/^(539|826)$/.test(n.j)?o:null},29912:function(t,e,n){"use strict";var r=n(4311),i=n(68992),o=n(66332),a=n(23256),s=n(95797),u=n(9886),l=(0,s.ce)({strokeFirst:!0,font:u.Uo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a.$t),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(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,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return(0,s.nW)(l,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=(0,o.lP)(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=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(i.ZP);c.prototype.type="tspan",e.Z=/^(539|826)$/.test(n.j)?c:null},49386:function(t,e,n){"use strict";n.d(e,{ZP:function(){return G}});var r=n(4311),i=n(50322),o=n(95797),a=n(66332),s=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function u(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=l(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=c(o[a],i);return o.join("\n")}function l(t,e,n,r){r=r||{};var i=(0,o.l7)({},r);i.font=e,n=(0,o.pD)(n,"..."),i.maxIterations=(0,o.pD)(r.maxIterations,2);var s=i.minChar=(0,o.pD)(r.minChar,0);i.cnCharWidth=(0,a.dz)("国",e);var u=i.ascCharWidth=(0,a.dz)("a",e);i.placeholder=(0,o.pD)(r.placeholder,"");for(var l=t=Math.max(0,t-1),c=0;c<s&&l>=u;c++)l-=u;var f=(0,a.dz)(n,e);return f>l&&(n="",f=0),l=t-f,i.ellipsis=n,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=t,i}function c(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=(0,a.dz)(t,r);if(o<=n)return t;for(var s=0;;s++){if(o<=i||s>=e.maxIterations){t+=e.ellipsis;break}var u=0===s?f(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,u),o=(0,a.dz)(t,r)}return""===t&&(t=e.placeholder),t}function f(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}function h(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,s=e.font,u="truncate"===r,f=(0,a.Dp)(s),h=(0,o.pD)(e.lineHeight,f),d=!!e.backgroundColor,p="truncate"===e.lineOverflow,g=e.width;n=null==g||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?_(t,e.font,g,"breakAll"===r,0).lines:[];var v=n.length*h,m=(0,o.pD)(e.height,v);if(v>m&&p){var y=Math.floor(m/h);n=n.slice(0,y)}if(t&&u&&null!=g)for(var b=l(g,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x=0;x<n.length;x++)n[x]=c(n[x],b);var w=m,S=0;for(x=0;x<n.length;x++)S=Math.max((0,a.dz)(n[x],s),S);null==g&&(g=S);var E=S;return i&&(w+=i[0]+i[2],E+=i[1]+i[3],g+=i[1]+i[3]),d&&(E=g),{lines:n,height:m,outerWidth:E,outerHeight:w,lineHeight:h,calculatedLineHeight:f,contentWidth:S,contentHeight:v,width:g}}var d=function(){function t(){}return t}(),p=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),g=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function v(t,e){var n=new g;if(null!=t&&(t+=""),!t)return n;var r,l=e.width,c=e.height,f=e.overflow,h="break"!==f&&"breakAll"!==f||null==l?null:{width:l,accumWidth:0,breakAll:"breakAll"===f},d=s.lastIndex=0;while(null!=(r=s.exec(t))){var p=r.index;p>d&&m(n,t.substring(d,p),e,h),m(n,r[2],e,h,r[1]),d=s.lastIndex}d<t.length&&m(n,t.substring(d,t.length),e,h);var v=[],y=0,b=0,x=e.padding,_="truncate"===f,w="truncate"===e.lineOverflow;function S(t,e,n){t.width=e,t.lineHeight=n,y+=n,b=Math.max(b,e)}t:for(var E=0;E<n.lines.length;E++){for(var T=n.lines[E],k=0,C=0,M=0;M<T.tokens.length;M++){var A=T.tokens[M],I=A.styleName&&e.rich[A.styleName]||{},O=A.textPadding=I.padding,D=O?O[1]+O[3]:0,P=A.font=I.font||e.font;A.contentHeight=(0,a.Dp)(P);var L=(0,o.pD)(I.height,A.contentHeight);if(A.innerHeight=L,O&&(L+=O[0]+O[2]),A.height=L,A.lineHeight=(0,o.R1)(I.lineHeight,e.lineHeight,L),A.align=I&&I.align||e.align,A.verticalAlign=I&&I.verticalAlign||"middle",w&&null!=c&&y+A.lineHeight>c){M>0?(T.tokens=T.tokens.slice(0,M),S(T,C,k),n.lines=n.lines.slice(0,E+1)):n.lines=n.lines.slice(0,E);break t}var N=I.width,R=null==N||"auto"===N;if("string"===typeof N&&"%"===N.charAt(N.length-1))A.percentWidth=N,v.push(A),A.contentWidth=(0,a.dz)(A.text,P);else{if(R){var j=I.backgroundColor,F=j&&j.image;F&&(F=i.ko(F),i.v5(F)&&(A.width=Math.max(A.width,F.width*L/F.height)))}var B=_&&null!=l?l-C:null;null!=B&&B<A.width?!R||B<D?(A.text="",A.width=A.contentWidth=0):(A.text=u(A.text,B-D,P,e.ellipsis,{minChar:e.truncateMinChar}),A.width=A.contentWidth=(0,a.dz)(A.text,P)):A.contentWidth=(0,a.dz)(A.text,P)}A.width+=D,C+=A.width,I&&(k=Math.max(k,A.lineHeight))}S(T,C,k)}n.outerWidth=n.width=(0,o.pD)(l,b),n.outerHeight=n.height=(0,o.pD)(c,y),n.contentHeight=y,n.contentWidth=b,x&&(n.outerWidth+=x[1]+x[3],n.outerHeight+=x[0]+x[2]);for(E=0;E<v.length;E++){A=v[E];var z=A.percentWidth;A.width=parseInt(z,10)/100*n.width}return n}function m(t,e,n,r,i){var o,s,u=""===e,l=i&&n.rich[i]||{},c=t.lines,f=l.font||n.font,h=!1;if(r){var g=l.padding,v=g?g[1]+g[3]:0;if(null!=l.width&&"auto"!==l.width){var m=(0,a.GM)(l.width,r.width)+v;c.length>0&&m+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=m}else{var y=_(e,f,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+v,s=y.linesWidths,o=y.lines}}else o=e.split("\n");for(var b=0;b<o.length;b++){var x=o[b],w=new d;if(w.styleName=i,w.text=x,w.isLineHolder=!x&&!u,"number"===typeof l.width?w.width=l.width:w.width=s?s[b]:(0,a.dz)(x,f),b||h)c.push(new p([w]));else{var S=(c[c.length-1]||(c[0]=new p)).tokens,E=S.length;1===E&&S[0].isLineHolder?S[0]=w:(x||!E||u)&&S.push(w)}}}function y(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var b=(0,o.u4)(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function x(t){return!y(t)||!!b[t]}function _(t,e,n,r,i){for(var o=[],s=[],u="",l="",c=0,f=0,h=0;h<t.length;h++){var d=t.charAt(h);if("\n"!==d){var p=(0,a.dz)(d,e),g=!r&&!x(d);(o.length?f+p>n:i+f+p>n)?f?(u||l)&&(g?(u||(u=l,l="",c=0,f=c),o.push(u),s.push(f-c),l+=d,c+=p,u="",f=c):(l&&(u+=l,l="",c=0),o.push(u),s.push(f),u=d,f=p)):g?(o.push(l),s.push(c),l=d,c=p):(o.push(d),s.push(p)):(f+=p,g?(l+=d,c+=p):(l&&(u+=l,l="",c=0),u+=d))}else l&&(u+=l,f+=c),o.push(u),s.push(f),u="",l="",c=0,f=0}return o.length||u||(u=t,l="",c=0),l&&(u+=l),u&&(o.push(u),s.push(f)),1===o.length&&(f+=i),{accumWidth:f,lines:o,linesWidths:s}}var w=n(29912),S=n(12222),E=n(96354),T=n(96805),k=n(68992),C=n(9886),M={fill:"#000"},A=2,I={style:(0,o.ce)({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},k.ik.style)},O=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=M,n.attr(e),n}return(0,r.ZT)(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(){this._childCursor=0,F(this.style),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 T.Z(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(),r.union(t)):(r=r||a.clone(),r.union(a))}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||M},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(0,o.l7)(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=(0,o.XP)(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},(0,o.l7)(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return I},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||C.Uo,n=t.padding,r=H(t),i=h(r,t),o=$(t),s=!!t.backgroundColor,u=i.outerHeight,l=i.outerWidth,c=i.contentWidth,f=i.lines,d=i.lineHeight,p=this._defaultStyle,g=t.x||0,v=t.y||0,m=t.align||p.align||"left",y=t.verticalAlign||p.verticalAlign||"top",b=g,x=(0,a.mU)(v,i.contentHeight,y);if(o||n){var _=(0,a.M3)(g,l,m),S=(0,a.mU)(v,u,y);o&&this._renderBackground(t,t,_,S,l,u)}x+=d/2,n&&(b=U(g,m,n),"top"===y?x+=n[0]:"bottom"===y&&(x-=n[2]));for(var E=0,k=!1,M=(Z("fill"in t?t.fill:(k=!0,p.fill))),I=(z("stroke"in t?t.stroke:s||p.autoStroke&&!k?null:(E=A,p.stroke))),O=t.textShadowBlur>0,D=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),P=i.calculatedLineHeight,L=0;L<f.length;L++){var N=this._getOrCreateChild(w.Z),j=N.createStyle();N.useStyle(j),j.text=f[L],j.x=b,j.y=x,m&&(j.textAlign=m),j.textBaseline="middle",j.opacity=t.opacity,j.strokeFirst=!0,O&&(j.shadowBlur=t.textShadowBlur||0,j.shadowColor=t.textShadowColor||"transparent",j.shadowOffsetX=t.textShadowOffsetX||0,j.shadowOffsetY=t.textShadowOffsetY||0),j.stroke=I,j.fill=M,I&&(j.lineWidth=t.lineWidth||E,j.lineDash=t.lineDash,j.lineDashOffset=t.lineDashOffset||0),j.font=e,R(j,t),x+=d,D&&N.setBoundingRect(new T.Z((0,a.M3)(j.x,t.width,j.textAlign),(0,a.mU)(j.y,P,j.textBaseline),c,P))}},e.prototype._updateRichTexts=function(){var t=this.style,e=H(t),n=v(e,t),r=n.width,i=n.outerWidth,o=n.outerHeight,s=t.padding,u=t.x||0,l=t.y||0,c=this._defaultStyle,f=t.align||c.align,h=t.verticalAlign||c.verticalAlign,d=(0,a.M3)(u,i,f),p=(0,a.mU)(l,o,h),g=d,m=p;s&&(g+=s[3],m+=s[0]);var y=g+r;$(t)&&this._renderBackground(t,t,d,p,i,o);for(var b=!!t.backgroundColor,x=0;x<n.lines.length;x++){var _=n.lines[x],w=_.tokens,S=w.length,E=_.lineHeight,T=_.width,k=0,C=g,M=y,A=S-1,I=void 0;while(k<S&&(I=w[k],!I.align||"left"===I.align))this._placeToken(I,t,E,m,C,"left",b),T-=I.width,C+=I.width,k++;while(A>=0&&(I=w[A],"right"===I.align))this._placeToken(I,t,E,m,M,"right",b),T-=I.width,M-=I.width,A--;C+=(r-(C-g)-(y-M)-T)/2;while(k<=A)I=w[k],this._placeToken(I,t,E,m,C+I.width/2,"center",b),C+=I.width,k++;m+=E}},e.prototype._placeToken=function(t,e,n,r,i,s,u){var l=e.rich[t.styleName]||{};l.text=t.text;var c=t.verticalAlign,f=r+n/2;"top"===c?f=r+t.height/2:"bottom"===c&&(f=r+n-t.height/2);var h=!t.isLineHolder&&$(l);h&&this._renderBackground(l,e,"right"===s?i-t.width:"center"===s?i-t.width/2:i,f-t.height/2,t.width,t.height);var d=!!l.backgroundColor,p=t.textPadding;p&&(i=U(i,s,p),f-=t.height/2-p[0]-t.innerHeight/2);var g=this._getOrCreateChild(w.Z),v=g.createStyle();g.useStyle(v);var m=this._defaultStyle,y=!1,b=0,x=Z("fill"in l?l.fill:"fill"in e?e.fill:(y=!0,m.fill)),_=z("stroke"in l?l.stroke:"stroke"in e?e.stroke:d||u||m.autoStroke&&!y?null:(b=A,m.stroke)),S=l.textShadowBlur>0||e.textShadowBlur>0;v.text=t.text,v.x=i,v.y=f,S&&(v.shadowBlur=l.textShadowBlur||e.textShadowBlur||0,v.shadowColor=l.textShadowColor||e.textShadowColor||"transparent",v.shadowOffsetX=l.textShadowOffsetX||e.textShadowOffsetX||0,v.shadowOffsetY=l.textShadowOffsetY||e.textShadowOffsetY||0),v.textAlign=s,v.textBaseline="middle",v.font=t.font||C.Uo,v.opacity=(0,o.R1)(l.opacity,e.opacity,1),R(v,l),_&&(v.lineWidth=(0,o.R1)(l.lineWidth,e.lineWidth,b),v.lineDash=(0,o.pD)(l.lineDash,e.lineDash),v.lineDashOffset=e.lineDashOffset||0,v.stroke=_),x&&(v.fill=x);var E=t.contentWidth,k=t.contentHeight;g.setBoundingRect(new T.Z((0,a.M3)(v.x,E,v.textAlign),(0,a.mU)(v.y,k,v.textBaseline),E,k))},e.prototype._renderBackground=function(t,e,n,r,i,a){var s,u,l=t.backgroundColor,c=t.borderWidth,f=t.borderColor,h=l&&l.image,d=l&&!h,p=t.borderRadius,g=this;if(d||t.lineHeight||c&&f){s=this._getOrCreateChild(E.Z),s.useStyle(s.createStyle()),s.style.fill=null;var v=s.shape;v.x=n,v.y=r,v.width=i,v.height=a,v.r=p,s.dirtyShape()}if(d){var m=s.style;m.fill=l||null,m.fillOpacity=(0,o.pD)(t.fillOpacity,1)}else if(h){u=this._getOrCreateChild(S.ZP),u.onload=function(){g.dirtyStyle()};var y=u.style;y.image=l.image,y.x=n,y.y=r,y.width=i,y.height=a}if(c&&f){m=s.style;m.lineWidth=c,m.stroke=f,m.strokeOpacity=(0,o.pD)(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var b=(s||u).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=(0,o.R1)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return j(t)&&(e=[t.fontStyle,t.fontWeight,N(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&(0,o.fy)(e)||t.textFont||t.font},e}(k.ZP),D={left:!0,right:1,center:1},P={top:1,bottom:1,middle:1},L=["fontStyle","fontWeight","fontSize","fontFamily"];function N(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?C.n5+"px":t+"px":t}function R(t,e){for(var n=0;n<L.length;n++){var r=L[n],i=e[r];null!=i&&(t[r]=i)}}function j(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function F(t){return B(t),(0,o.S6)(t.rich,B),t}function B(t){if(t){t.font=O.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||D[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||P[n]?n:"top";var r=t.padding;r&&(t.padding=(0,o.MY)(t.padding))}}function z(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Z(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function U(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function H(t){var e=t.text;return null!=e&&(e+=""),e}function $(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var G=O},8088:function(t,e,n){"use strict";n.d(e,{RH:function(){return o},SE:function(){return i},YV:function(){return r}});var r=1,i=2,o=4},50322:function(t,e,n){"use strict";n.d(e,{Gq:function(){return s},ko:function(){return a},v5:function(){return l}});var r=n(86634);if(/^(539|826)$/.test(n.j))var i=n(9886);var o=new r.ZP(50);function a(t){if("string"===typeof t){var e=o.get(t);return e&&e.image}return t}function s(t,e,n,r,a){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=o.get(t),c={hostEl:n,cb:r,cbPayload:a};return s?(e=s.image,!l(e)&&s.pending.push(c)):(e=i.qW.loadImage(t,u,u),e.__zrImageSrc=t,o.put(t,e.__cachedImgObj={image:e,pending:[c]})),e}return t}return e}function u(){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 l(t){return t&&t.width&&t.height}},64860:function(t,e,n){"use strict";if(n.d(e,{L:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(97404);function i(t,e,n){var i=e.smooth,o=e.points;if(o&&o.length>=2){if(i){var a=(0,r.Z)(o,i,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var s=o.length,u=0;u<(n?s:s-1);u++){var l=a[2*u],c=a[2*u+1],f=o[(u+1)%s];t.bezierCurveTo(l[0],l[1],c[0],c[1],f[0],f[1])}}else{t.moveTo(o[0][0],o[0][1]);u=1;for(var h=o.length;u<h;u++)t.lineTo(o[u][0],o[u][1])}n&&t.closePath()}}},97404:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return i}}),/^(539|826)$/.test(n.j))var r=n(15468);function i(t,e,n,i){var o,a,s,u,l=[],c=[],f=[],h=[];if(i){s=[1/0,1/0],u=[-1/0,-1/0];for(var d=0,p=t.length;d<p;d++)(0,r.VV)(s,s,t[d]),(0,r.Fp)(u,u,t[d]);(0,r.VV)(s,s,i[0]),(0,r.Fp)(u,u,i[1])}for(d=0,p=t.length;d<p;d++){var g=t[d];if(n)o=t[d?d-1:p-1],a=t[(d+1)%p];else{if(0===d||d===p-1){l.push((0,r.d9)(t[d]));continue}o=t[d-1],a=t[d+1]}(0,r.lu)(c,a,o),(0,r.bA)(c,c,e);var v=(0,r.TE)(g,o),m=(0,r.TE)(g,a),y=v+m;0!==y&&(v/=y,m/=y),(0,r.bA)(f,c,-v),(0,r.bA)(h,c,m);var b=(0,r.IH)([],g,f),x=(0,r.IH)([],g,h);i&&((0,r.Fp)(b,b,s),(0,r.VV)(b,b,u),(0,r.Fp)(x,x,s),(0,r.VV)(x,x,u)),l.push(b),l.push(x)}return n&&l.push(l.shift()),l}},96751:function(t,e,n){"use strict";n.d(e,{Pw:function(){return o},_3:function(){return i},vu:function(){return a}});var r=Math.round;function i(t,e,n){if(e){var i=e.x1,o=e.x2,s=e.y1,u=e.y2;t.x1=i,t.x2=o,t.y1=s,t.y2=u;var l=n&&n.lineWidth;return l?(r(2*i)===r(2*o)&&(t.x1=t.x2=a(i,l,!0)),r(2*s)===r(2*u)&&(t.y1=t.y2=a(s,l,!0)),t):t}}function o(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,s=e.height;t.x=r,t.y=i,t.width=o,t.height=s;var u=n&&n.lineWidth;return u?(t.x=a(r,u,!0),t.y=a(i,u,!0),t.width=Math.max(a(r+o,u,!1)-t.x,0===o?0:1),t.height=Math.max(a(i+s,u,!1)-t.y,0===s?0:1),t):t}}function a(t,e,n){if(!e)return t;var i=r(2*t);return(i+r(e))%2===0?i/2:(i+(n?1:-1))/2}},13026:function(t,e,n){"use strict";var r=n(4311),i=n(23256),o=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),a=function(t){function e(e){return t.call(this,e)||this}return(0,r.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},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,u=Math.cos(o),l=Math.sin(o);t.moveTo(u*i+n,l*i+r),t.arc(n,r,i,o,a,!s)},e}(i.ZP);a.prototype.type="arc",e.Z=/^(539|826)$/.test(n.j)?a:null},79001:function(t,e,n){"use strict";var r=n(4311),i=n(23256),o=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),a=function(t){function e(e){return t.call(this,e)||this}return(0,r.ZT)(e,t),e.prototype.getDefaultShape=function(){return new o},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}(i.ZP);a.prototype.type="circle",e.Z=/^(539|826)$/.test(n.j)?a:null},22940:function(t,e,n){"use strict";var r=n(4311),i=n(23256),o=n(96751),a={},s=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),u=function(t){function e(e){return t.call(this,e)||this}return(0,r.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,r,i,s;if(this.subPixelOptimize){var u=(0,o._3)(a,e,this.style);n=u.x1,r=u.y1,i=u.x2,s=u.y2}else n=e.x1,r=e.y1,i=e.x2,s=e.y2;var l=e.percent;0!==l&&(t.moveTo(n,r),l<1&&(i=n*(1-l)+i*l,s=r*(1-l)+s*l),t.lineTo(i,s))},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}(i.ZP);u.prototype.type="line",e.Z=/^(539|826)$/.test(n.j)?u:null},86941:function(t,e,n){"use strict";var r=n(4311),i=n(23256),o=n(64860),a=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),s=function(t){function e(e){return t.call(this,e)||this}return(0,r.ZT)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.L(t,e,!0)},e}(i.ZP);s.prototype.type="polygon",e.Z=/^(539|826)$/.test(n.j)?s:null},12484:function(t,e,n){"use strict";var r=n(4311),i=n(23256),o=n(64860),a=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),s=function(t){function e(e){return t.call(this,e)||this}return(0,r.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.L(t,e,!1)},e}(i.ZP);s.prototype.type="polyline",e.Z=/^(539|826)$/.test(n.j)?s:null},96354:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(4311),i=n(23256);function o(t,e){var n,r,i,o,a,s=e.x,u=e.y,l=e.width,c=e.height,f=e.r;l<0&&(s+=l,l=-l),c<0&&(u+=c,c=-c),"number"===typeof f?n=r=i=o=f:f instanceof Array?1===f.length?n=r=i=o=f[0]:2===f.length?(n=i=f[0],r=o=f[1]):3===f.length?(n=f[0],r=o=f[1],i=f[2]):(n=f[0],r=f[1],i=f[2],o=f[3]):n=r=i=o=0,n+r>l&&(a=n+r,n*=l/a,r*=l/a),i+o>l&&(a=i+o,i*=l/a,o*=l/a),r+i>c&&(a=r+i,r*=c/a,i*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),t.moveTo(s+n,u),t.lineTo(s+l-r,u),0!==r&&t.arc(s+l-r,u+r,r,-Math.PI/2,0),t.lineTo(s+l,u+c-i),0!==i&&t.arc(s+l-i,u+c-i,i,0,Math.PI/2),t.lineTo(s+o,u+c),0!==o&&t.arc(s+o,u+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,u+n),0!==n&&t.arc(s+n,u+n,n,Math.PI,1.5*Math.PI)}var a=n(96751),s=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),u={},l=function(t){function e(e){return t.call(this,e)||this}return(0,r.ZT)(e,t),e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,r,i,s;if(this.subPixelOptimize){var l=(0,a.Pw)(u,e,this.style);n=l.x,r=l.y,i=l.width,s=l.height,l.r=e.r,e=l}else n=e.x,r=e.y,i=e.width,s=e.height;e.r?o(t,e):t.rect(n,r,i,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(i.ZP);l.prototype.type="rect";var c=l},60497:function(t,e,n){"use strict";n.d(e,{C:function(){return S}});var r=n(4311),i=n(23256),o=n(95797),a=Math.PI,s=2*a,u=Math.sin,l=Math.cos,c=Math.acos,f=Math.atan2,h=Math.abs,d=Math.sqrt,p=Math.max,g=Math.min,v=1e-4;function m(t,e,n,r,i,o,a,s){var u=n-t,l=r-e,c=a-i,f=s-o,h=f*u-c*l;if(!(h*h<v))return h=(c*(e-o)-f*(t-i))/h,[t+h*u,e+h*l]}function y(t,e,n,r,i,o,a){var s=t-n,u=e-r,l=(a?o:-o)/d(s*s+u*u),c=l*u,f=-l*s,h=t+c,g=e+f,v=n+c,m=r+f,y=(h+v)/2,b=(g+m)/2,x=v-h,_=m-g,w=x*x+_*_,S=i-o,E=h*m-v*g,T=(_<0?-1:1)*d(p(0,S*S*w-E*E)),k=(E*_-x*T)/w,C=(-E*x-_*T)/w,M=(E*_+x*T)/w,A=(-E*x+_*T)/w,I=k-y,O=C-b,D=M-y,P=A-b;return I*I+O*O>D*D+P*P&&(k=M,C=A),{cx:k,cy:C,x0:-c,y0:-f,x1:k*(i/S-1),y1:C*(i/S-1)}}function b(t){var e;if((0,o.kJ)(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}function x(t,e){var n,r=p(e.r,0),i=p(e.r0||0,0),o=r>0,x=i>0;if(o||x){if(o||(r=i,i=0),i>r){var _=r;r=i,i=_}var w=e.startAngle,S=e.endAngle;if(!isNaN(w)&&!isNaN(S)){var E=e.cx,T=e.cy,k=!!e.clockwise,C=h(S-w),M=C>s&&C%s;if(M>v&&(C=M),r>v)if(C>s-v)t.moveTo(E+r*l(w),T+r*u(w)),t.arc(E,T,r,w,S,!k),i>v&&(t.moveTo(E+i*l(S),T+i*u(S)),t.arc(E,T,i,S,w,k));else{var A=void 0,I=void 0,O=void 0,D=void 0,P=void 0,L=void 0,N=void 0,R=void 0,j=void 0,F=void 0,B=void 0,z=void 0,Z=void 0,U=void 0,H=void 0,$=void 0,G=r*l(w),W=r*u(w),V=i*l(S),Y=i*u(S),X=C>v;if(X){var q=e.cornerRadius;q&&(n=b(q),A=n[0],I=n[1],O=n[2],D=n[3]);var K=h(r-i)/2;if(P=g(K,O),L=g(K,D),N=g(K,A),R=g(K,I),B=j=p(P,L),z=F=p(N,R),(j>v||F>v)&&(Z=r*l(S),U=r*u(S),H=i*l(w),$=i*u(w),C<a)){var J=m(G,W,H,$,Z,U,V,Y);if(J){var Q=G-J[0],tt=W-J[1],et=Z-J[0],nt=U-J[1],rt=1/u(c((Q*et+tt*nt)/(d(Q*Q+tt*tt)*d(et*et+nt*nt)))/2),it=d(J[0]*J[0]+J[1]*J[1]);B=g(j,(r-it)/(rt+1)),z=g(F,(i-it)/(rt-1))}}}if(X)if(B>v){var ot=g(O,B),at=g(D,B),st=y(H,$,G,W,r,ot,k),ut=y(Z,U,V,Y,r,at,k);t.moveTo(E+st.cx+st.x0,T+st.cy+st.y0),B<j&&ot===at?t.arc(E+st.cx,T+st.cy,B,f(st.y0,st.x0),f(ut.y0,ut.x0),!k):(ot>0&&t.arc(E+st.cx,T+st.cy,ot,f(st.y0,st.x0),f(st.y1,st.x1),!k),t.arc(E,T,r,f(st.cy+st.y1,st.cx+st.x1),f(ut.cy+ut.y1,ut.cx+ut.x1),!k),at>0&&t.arc(E+ut.cx,T+ut.cy,at,f(ut.y1,ut.x1),f(ut.y0,ut.x0),!k))}else t.moveTo(E+G,T+W),t.arc(E,T,r,w,S,!k);else t.moveTo(E+G,T+W);if(i>v&&X)if(z>v){ot=g(A,z),at=g(I,z),st=y(V,Y,Z,U,i,-at,k),ut=y(G,W,H,$,i,-ot,k);t.lineTo(E+st.cx+st.x0,T+st.cy+st.y0),z<F&&ot===at?t.arc(E+st.cx,T+st.cy,z,f(st.y0,st.x0),f(ut.y0,ut.x0),!k):(at>0&&t.arc(E+st.cx,T+st.cy,at,f(st.y0,st.x0),f(st.y1,st.x1),!k),t.arc(E,T,i,f(st.cy+st.y1,st.cx+st.x1),f(ut.cy+ut.y1,ut.cx+ut.x1),k),ot>0&&t.arc(E+ut.cx,T+ut.cy,ot,f(ut.y1,ut.x1),f(ut.y0,ut.x0),!k))}else t.lineTo(E+V,T+Y),t.arc(E,T,i,S,w,k);else t.lineTo(E+V,T+Y)}else t.moveTo(E,T);t.closePath()}}}var _=function(){function t(){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}return t}(),w=function(t){function e(e){return t.call(this,e)||this}return(0,r.ZT)(e,t),e.prototype.getDefaultShape=function(){return new _},e.prototype.buildPath=function(t,e){x(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(i.ZP);w.prototype.type="sector";var S=w},76171:function(t,e,n){"use strict";n.d(e,{L0:function(){return x},Pz:function(){return b},Qc:function(){return v},fD:function(){return w},xb:function(){return y}});var r=n(86634);if(/^(539|826)$/.test(n.j))var i=n(95797);var o={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 a(t){return t=Math.round(t),t<0?0:t>255?255:t}function s(t){return t<0?0:t>1?1:t}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(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 f(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 r.ZP(20),p=null;function g(t,e){p&&h(p,e),p=d.put(t,p||e.slice())}function v(t,e){if(t){e=e||[];var n=d.get(t);if(n)return h(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in o)return h(e,o[r]),g(t,e),e;var i=r.length;if("#"!==r.charAt(0)){var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===i){var c=r.substr(0,a),p=r.substr(a+1,s-(a+1)).split(","),v=1;switch(c){case"rgba":if(4!==p.length)return 3===p.length?f(e,+p[0],+p[1],+p[2],1):f(e,0,0,0,1);v=l(p.pop());case"rgb":return p.length>=3?(f(e,u(p[0]),u(p[1]),u(p[2]),3===p.length?v:l(p[3])),g(t,e),e):void f(e,0,0,0,1);case"hsla":return 4!==p.length?void f(e,0,0,0,1):(p[3]=l(p[3]),m(p,e),g(t,e),e);case"hsl":return 3!==p.length?void f(e,0,0,0,1):(m(p,e),g(t,e),e);default:return}}f(e,0,0,0,1)}else{if(4===i||5===i){var y=parseInt(r.slice(1,4),16);return y>=0&&y<=4095?(f(e,(3840&y)>>4|(3840&y)>>8,240&y|(240&y)>>4,15&y|(15&y)<<4,5===i?parseInt(r.slice(4),16)/15:1),g(t,e),e):void f(e,0,0,0,1)}if(7===i||9===i){y=parseInt(r.slice(1,7),16);return y>=0&&y<=16777215?(f(e,(16711680&y)>>16,(65280&y)>>8,255&y,9===i?parseInt(r.slice(7),16)/255:1),g(t,e),e):void f(e,0,0,0,1)}}}}function m(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=l(t[1]),i=l(t[2]),o=i<=.5?i*(r+1):i+r-i*r,s=2*i-o;return e=e||[],f(e,a(255*c(s,o,n+1/3)),a(255*c(s,o,n)),a(255*c(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e){var n=v(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 b(n,4===n.length?"rgba":"rgb")}}function b(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+")"}}function x(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var _=new r.ZP(100);function w(t){if((0,i.HD)(t)){var e=_.get(t);return e||(e=y(t,-.1),_.put(t,e)),e}if((0,i.Qq)(t)){var n=(0,i.l7)({},t);return n.colorStops=(0,i.UI)(t.colorStops,(function(t){return{offset:t.offset,color:y(t.color,-.1)}})),n}return t}},53197:function(t,e,n){"use strict";if(n.d(e,{J:function(){return s},y:function(){return l}}),/^(539|826)$/.test(n.j))var r=n(3816);var i=n(85727),o=i.Z.CMD;function a(t,e){return Math.abs(t-e)<1e-5}function s(t){var e,n,r,i,s,u=t.data,l=t.len(),c=[],f=0,h=0,d=0,p=0;function g(t,n){e&&e.length>2&&c.push(e),e=[t,n]}function v(t,n,r,i){a(t,r)&&a(n,i)||e.push(t,n,r,i,r,i)}function m(t,n,r,i,o,a){var s=Math.abs(n-t),u=4*Math.tan(s/4)/3,l=n<t?-1:1,c=Math.cos(t),f=Math.sin(t),h=Math.cos(n),d=Math.sin(n),p=c*o+r,g=f*a+i,v=h*o+r,m=d*a+i,y=o*u*l,b=a*u*l;e.push(p-y*f,g+b*c,v+y*d,m-b*h,v,m)}for(var y=0;y<l;){var b=u[y++],x=1===y;switch(x&&(f=u[y],h=u[y+1],d=f,p=h,b!==o.L&&b!==o.C&&b!==o.Q||(e=[d,p])),b){case o.M:f=d=u[y++],h=p=u[y++],g(d,p);break;case o.L:n=u[y++],r=u[y++],v(f,h,n,r),f=n,h=r;break;case o.C:e.push(u[y++],u[y++],u[y++],u[y++],f=u[y++],h=u[y++]);break;case o.Q:n=u[y++],r=u[y++],i=u[y++],s=u[y++],e.push(f+2/3*(n-f),h+2/3*(r-h),i+2/3*(n-i),s+2/3*(r-s),i,s),f=i,h=s;break;case o.A:var _=u[y++],w=u[y++],S=u[y++],E=u[y++],T=u[y++],k=u[y++]+T;y+=1;var C=!u[y++];n=Math.cos(T)*S+_,r=Math.sin(T)*E+w,x?(d=n,p=r,g(d,p)):v(f,h,n,r),f=Math.cos(k)*S+_,h=Math.sin(k)*E+w;for(var M=(C?-1:1)*Math.PI/2,A=T;C?A>k:A<k;A+=M){var I=C?Math.max(A+M,k):Math.min(A+M,k);m(A,I,_,w,S,E)}break;case o.R:d=f=u[y++],p=h=u[y++],n=d+u[y++],r=p+u[y++],g(n,p),v(n,p,n,r),v(n,r,d,r),v(d,r,d,p),v(d,p,n,p);break;case o.Z:e&&v(f,h,d,p),f=d,h=p;break}}return e&&e.length>2&&c.push(e),c}function u(t,e,n,i,o,s,l,c,f,h){if(a(t,n)&&a(e,i)&&a(o,l)&&a(s,c))f.push(l,c);else{var d=2/h,p=d*d,g=l-t,v=c-e,m=Math.sqrt(g*g+v*v);g/=m,v/=m;var y=n-t,b=i-e,x=o-l,_=s-c,w=y*y+b*b,S=x*x+_*_;if(w<p&&S<p)f.push(l,c);else{var E=g*y+v*b,T=-g*x-v*_,k=w-E*E,C=S-T*T;if(k<p&&E>=0&&C<p&&T>=0)f.push(l,c);else{var M=[],A=[];(0,r.Vz)(t,n,o,l,.5,M),(0,r.Vz)(e,i,s,c,.5,A),u(M[0],A[0],M[1],A[1],M[2],A[2],M[3],A[3],f,h),u(M[4],A[4],M[5],A[5],M[6],A[6],M[7],A[7],f,h)}}}}function l(t,e){var n=s(t),r=[];e=e||1;for(var i=0;i<n.length;i++){var o=n[i],a=[],l=o[0],c=o[1];a.push(l,c);for(var f=2;f<o.length;){var h=o[f++],d=o[f++],p=o[f++],g=o[f++],v=o[f++],m=o[f++];u(l,c,h,d,p,g,v,m,a,e),l=v,c=m}r.push(a)}return r}},29207:function(t,e,n){"use strict";if(n.d(e,{V:function(){return T}}),/^(539|826)$/.test(n.j))var r=n(87100);if(/^(539|826)$/.test(n.j))var i=n(96805);if(/^(539|826)$/.test(n.j))var o=n(11123);if(/^(539|826)$/.test(n.j))var a=n(95797);if(/^(539|826)$/.test(n.j))var s=n(86941);if(/^(539|826)$/.test(n.j))var u=n(96354);if(/^(539|826)$/.test(n.j))var l=n(60497);if(/^(539|826)$/.test(n.j))var c=n(53197);if(/^(539|826)$/.test(n.j))var f=n(27473);function h(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 u=[],l=0;l<a;l++)u.push(s);var c=a*s,f=n-c;if(f>0)for(l=0;l<f;l++)u[l%a]+=1;return u}function d(t,e,n){for(var r=t.r0,i=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),u=s*i,l=i-r,c=u>Math.abs(l),f=h([u,l],c?0:1,e),d=(c?s:l)/f.length,p=0;p<f.length;p++)for(var g=(c?l:s)/f[p],v=0;v<f[p];v++){var m={};c?(m.startAngle=o+d*p,m.endAngle=o+d*(p+1),m.r0=r+g*v,m.r=r+g*(v+1)):(m.startAngle=o+g*v,m.endAngle=o+g*(v+1),m.r0=r+d*p,m.r=r+d*(p+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,n.push(m)}}function p(t,e,n){for(var r=t.width,i=t.height,o=r>i,a=h([r,i],o?0:1,e),s=o?"width":"height",u=o?"height":"width",l=o?"x":"y",c=o?"y":"x",f=t[s]/a.length,d=0;d<a.length;d++)for(var p=t[u]/a[d],g=0;g<a[d];g++){var v={};v[l]=d*f,v[c]=g*p,v[s]=f,v[u]=p,v.x+=t.x,v.y+=t.y,n.push(v)}}function g(t,e,n,r){return t*r-n*e}function v(t,e,n,r,i,a,s,u){var l=n-t,c=r-e,f=s-i,h=u-a,d=g(f,h,l,c);if(Math.abs(d)<1e-6)return null;var p=t-i,v=e-a,m=g(p,v,f,h)/d;return m<0||m>1?null:new o.Z(m*l+t,m*c+e)}function m(t,e,n){var r=new o.Z;o.Z.sub(r,n,e),r.normalize();var i=new o.Z;o.Z.sub(i,t,e);var a=i.dot(r);return a}function y(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function b(t,e,n){for(var r=t.length,i=[],o=0;o<r;o++){var a=t[o],s=t[(o+1)%r],u=v(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);u&&i.push({projPt:m(u,e,n),pt:u,idx:o})}if(i.length<2)return[{points:t},{points:t}];i.sort((function(t,e){return t.projPt-e.projPt}));var l=i[0],c=i[i.length-1];if(c.idx<l.idx){var f=l;l=c,c=f}var h=[l.pt.x,l.pt.y],d=[c.pt.x,c.pt.y],p=[h],g=[d];for(o=l.idx+1;o<=c.idx;o++)y(p,t[o].slice());y(p,d),y(p,h);for(o=c.idx+1;o<=l.idx+r;o++)y(g,t[o%r].slice());return y(g,h),y(g,d),[{points:p},{points:g}]}function x(t){var e=t.points,n=[],a=[];(0,r.zk)(e,n,a);var s=new i.Z(n[0],n[1],a[0]-n[0],a[1]-n[1]),u=s.width,l=s.height,c=s.x,f=s.y,h=new o.Z,d=new o.Z;return u>l?(h.x=d.x=c+u/2,h.y=f,d.y=f+l):(h.y=d.y=f+l/2,h.x=c,d.x=c+u),b(e,h,d)}function _(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);_(t,o[0],i,r),_(t,o[1],n-i,r)}return r}function w(t,e){for(var n=[],r=0;r<e;r++)n.push((0,f.U5)(t));return n}function S(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function E(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function T(t,e){var n,i=[],o=t.shape;switch(t.type){case"rect":p(o,e,i),n=u.Z;break;case"sector":d(o,e,i),n=l.C;break;case"circle":d({r0:0,r:o.r,startAngle:0,endAngle:2*Math.PI,cx:o.cx,cy:o.cy},e,i),n=l.C;break;default:var f=t.getComputedTransform(),h=f?Math.sqrt(Math.max(f[0]*f[0]+f[1]*f[1],f[2]*f[2]+f[3]*f[3])):1,g=(0,a.UI)((0,c.y)(t.getUpdatedPathProxy(),h),(function(t){return E(t)})),v=g.length;if(0===v)_(x,{points:g[0]},e,i);else if(v===e)for(var m=0;m<v;m++)i.push({points:g[m]});else{var y=0,b=(0,a.UI)(g,(function(t){var e=[],n=[];(0,r.zk)(t,e,n);var i=(n[1]-e[1])*(n[0]-e[0]);return y+=i,{poly:t,area:i}}));b.sort((function(t,e){return e.area-t.area}));var T=e;for(m=0;m<v;m++){var k=b[m];if(T<=0)break;var C=m===v-1?T:Math.ceil(k.area/y*e);C<0||(_(x,{points:k.poly},C,i),T-=C)}}n=s.Z;break}if(!n)return w(t,e);var M=[];for(m=0;m<i.length;m++){var A=new n;A.setShape(i[m]),S(t,A),M.push(A)}return M}},52e3:function(t,e,n){"use strict";if(n.d(e,{a4:function(){return A},j:function(){return y},nY:function(){return I},xQ:function(){return E}}),/^(539|826)$/.test(n.j))var r=n(3816);if(/^(539|826)$/.test(n.j))var i=n(23256);if(/^(539|826)$/.test(n.j))var o=n(95797);if(/^(539|826)$/.test(n.j))var a=n(15468);if(/^(539|826)$/.test(n.j))var s=n(27473);if(/^(539|826)$/.test(n.j))var u=n(87184);if(/^(539|826)$/.test(n.j))var l=n(29207);if(/^(539|826)$/.test(n.j))var c=n(53197);function f(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var o=[],a=[],s=n<i?t:e,u=Math.min(n,i),l=Math.abs(i-n)/6,c=(u-2)/6,f=Math.ceil(l/c)+1,h=[s[0],s[1]],d=l,p=2;p<u;){var g=s[p-2],v=s[p-1],m=s[p++],y=s[p++],b=s[p++],x=s[p++],_=s[p++],w=s[p++];if(d<=0)h.push(m,y,b,x,_,w);else{for(var S=Math.min(d,f-1)+1,E=1;E<=S;E++){var T=E/S;(0,r.Vz)(g,m,b,_,T,o),(0,r.Vz)(v,y,x,w,T,a),g=o[3],v=a[3],h.push(o[1],a[1],o[2],a[2],g,v),m=o[5],y=a[5],b=o[6],x=a[6]}d-=S-1}}return s===t?[h,e]:[t,h]}function h(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 d(t,e){for(var n,r,i,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var u=t[s],l=e[s],c=void 0,d=void 0;u?l?(n=f(u,l),c=n[0],d=n[1],r=c,i=d):(d=h(i||u,u),c=u):(c=h(r||l,l),d=l),o.push(c),a.push(d)}return[o,a]}function p(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],u=t[a+1],l=t[o],c=t[o+1],f=s*c-l*u;e+=f,n+=(s+l)*f,r+=(u+c)*f}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function g(t,e,n,r){for(var i=(t.length-2)/6,o=1/0,a=0,s=t.length,u=s-2,l=0;l<i;l++){for(var c=6*l,f=0,h=0;h<s;h+=2){var d=0===h?c:(c+h-2)%u+2,p=t[d]-n[0],g=t[d+1]-n[1],v=e[h]-r[0],m=e[h+1]-r[1],y=v-p,b=m-g;f+=y*y+b*b}f<o&&(o=f,a=l)}return a}function v(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 m(t,e,n,r){for(var i,o=[],a=0;a<t.length;a++){var s=t[a],u=e[a],l=p(s),c=p(u);null==i&&(i=l[2]<0!==c[2]<0);var f=[],h=[],d=0,m=1/0,y=[],b=s.length;i&&(s=v(s));for(var x=6*g(s,u,l,c),_=b-2,w=0;w<_;w+=2){var S=(x+w)%_+2;f[w+2]=s[S]-l[0],f[w+3]=s[S+1]-l[1]}if(f[0]=s[x]-l[0],f[1]=s[x+1]-l[1],n>0)for(var E=r/n,T=-r/2;T<=r/2;T+=E){var k=Math.sin(T),C=Math.cos(T),M=0;for(w=0;w<s.length;w+=2){var A=f[w],I=f[w+1],O=u[w]-c[0],D=u[w+1]-c[1],P=O*C-D*k,L=O*k+D*C;y[w]=P,y[w+1]=L;var N=P-A,R=L-I;M+=N*N+R*R}if(M<m){m=M,d=T;for(var j=0;j<y.length;j++)h[j]=y[j]}}else for(var F=0;F<b;F+=2)h[F]=u[F]-c[0],h[F+1]=u[F+1]-c[1];o.push({from:f,to:h,fromCp:l,toCp:c,rotation:-d})}return o}function y(t){return t.__isCombineMorphing}var b="__mOriginal_";function x(t,e,n){var r=b+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 _(t,e){var n=b+e;t[n]&&(t[e]=t[n],t[n]=null)}function w(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 S(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),i=d((0,c.J)(n),(0,c.J)(r)),o=i[0],s=i[1],u=t.getComputedTransform(),l=e.getComputedTransform();function f(){this.transform=null}u&&w(o,u),l&&w(s,l),x(e,"updateTransform",{replace:f}),e.transform=null;var h=m(o,s,10,Math.PI),p=[];x(e,"buildPath",{replace:function(t){for(var n=e.__morphT,r=1-n,i=[],o=0;o<h.length;o++){var s=h[o],u=s.from,l=s.to,c=s.rotation*n,f=s.fromCp,d=s.toCp,g=Math.sin(c),v=Math.cos(c);(0,a.t7)(i,f,d,n);for(var m=0;m<u.length;m+=2){var y=u[m],b=u[m+1],x=l[m],_=l[m+1],w=y*r+x*n,S=b*r+_*n;p[m]=w*v-S*g+i[0],p[m+1]=w*g+S*v+i[1]}var E=p[0],T=p[1];t.moveTo(E,T);for(m=2;m<u.length;){x=p[m++],_=p[m++];var k=p[m++],C=p[m++],M=p[m++],A=p[m++];E===x&&T===_&&k===M&&C===A?t.lineTo(M,A):t.bezierCurveTo(x,_,k,C,M,A),E=M,T=A}}}})}function E(t,e,n){if(!t||!e)return e;var r=n.done,i=n.during;function a(){_(e,"buildPath"),_(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return S(t,e),e.__morphT=0,e.animateTo({__morphT:1},(0,o.ce)({during:function(t){e.dirtyShape(),i&&i(t)},done:function(){a(),r&&r()}},n)),e}function T(t,e,n,r,i,o){var a=16;t=i===n?0:Math.round(32767*(t-n)/(i-n)),e=o===r?0:Math.round(32767*(e-r)/(o-r));for(var s,u=0,l=(1<<a)/2;l>0;l/=2){var c=0,f=0;(t&l)>0&&(c=1),(e&l)>0&&(f=1),u+=l*l*(3*c^f),0===f&&(1===c&&(t=l-1-t,e=l-1-e),s=t,t=e,e=s)}return u}function k(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,a=(0,o.UI)(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),u=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(u,n),r=Math.max(s,r),i=Math.max(u,i),[s,u]})),s=(0,o.UI)(a,(function(o,a){return{cp:o,z:T(o[0],o[1],e,n,r,i),path:t[a]}}));return s.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function C(t){return(0,l.V)(t.path,t.count)}function M(){return{fromIndividuals:[],toIndividuals:[],count:0}}function A(t,e,n){var r=[];function a(t){for(var e=0;e<t.length;e++){var n=t[e];y(n)?a(n.childrenRef()):n instanceof i.ZP&&r.push(n)}}a(t);var s=r.length;if(!s)return M();var l=n.dividePath||C,c=l({path:e,count:s});if(c.length!==s)return console.error("Invalid morphing: unmatched splitted path"),M();r=k(r),c=k(c);for(var f=n.done,h=n.during,d=n.individualDelay,p=new u.ZP,g=0;g<s;g++){var v=r[g],m=c[g];m.parent=e,m.copyTransform(p),d||S(v,m)}function b(t){for(var e=0;e<c.length;e++)c[e].addSelfToZr(t)}function w(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,_(e,"addSelfToZr"),_(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return c},x(e,"addSelfToZr",{after:function(t){b(t)}}),x(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<c.length;e++)c[e].removeSelfFromZr(t)}});var T=c.length;if(d){var A=T,I=function(){A--,0===A&&(w(),f&&f())};for(g=0;g<T;g++){var O=d?(0,o.ce)({delay:(n.delay||0)+d(g,T,r[g],c[g]),done:I},n):n;E(r[g],c[g],O)}}else e.__morphT=0,e.animateTo({__morphT:1},(0,o.ce)({during:function(t){for(var n=0;n<T;n++){var r=c[n];r.__morphT=e.__morphT,r.dirtyShape()}h&&h(t)},done:function(){w();for(var e=0;e<t.length;e++)_(t[e],"updateTransform");f&&f()}},n));return e.__zr&&b(e.__zr),{fromIndividuals:r,toIndividuals:c,count:T}}function I(t,e,n){var r=e.length,a=[],u=n.dividePath||C;function l(t){for(var e=0;e<t.length;e++){var n=t[e];y(n)?l(n.childrenRef()):n instanceof i.ZP&&a.push(n)}}if(y(t)){l(t.childrenRef());var c=a.length;if(c<r)for(var f=0,h=c;h<r;h++)a.push((0,s.U5)(a[f++%c]));a.length=r}else{a=u({path:t,count:r});var d=t.getComputedTransform();for(h=0;h<a.length;h++)a[h].setLocalTransform(d);if(a.length!==r)return console.error("Invalid morphing: unmatched splitted path"),M()}a=k(a),e=k(e);var p=n.individualDelay;for(h=0;h<r;h++){var g=p?(0,o.ce)({delay:(n.delay||0)+p(h,r,a[h],e[h])},n):n;E(a[h],e[h],g)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}},27473:function(t,e,n){"use strict";n.d(e,{AA:function(){return E},Pc:function(){return S},U5:function(){return T},iR:function(){return w}});var r=n(4311),i=n(23256);if(/^(539|826)$/.test(n.j))var o=n(85727);if(/^(539|826)$/.test(n.j))var a=n(1620);if(/^(539|826)$/.test(n.j))var s=n(95797);var u=Math.sqrt,l=Math.sin,c=Math.cos,f=Math.PI;function h(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function d(t,e){return(t[0]*e[0]+t[1]*e[1])/(h(t)*h(e))}function p(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(d(t,e))}function g(t,e,n,r,i,o,a,s,h,g,v){var m=h*(f/180),y=c(m)*(t-n)/2+l(m)*(e-r)/2,b=-1*l(m)*(t-n)/2+c(m)*(e-r)/2,x=y*y/(a*a)+b*b/(s*s);x>1&&(a*=u(x),s*=u(x));var _=(i===o?-1:1)*u((a*a*(s*s)-a*a*(b*b)-s*s*(y*y))/(a*a*(b*b)+s*s*(y*y)))||0,w=_*a*b/s,S=_*-s*y/a,E=(t+n)/2+c(m)*w-l(m)*S,T=(e+r)/2+l(m)*w+c(m)*S,k=p([1,0],[(y-w)/a,(b-S)/s]),C=[(y-w)/a,(b-S)/s],M=[(-1*y-w)/a,(-1*b-S)/s],A=p(C,M);if(d(C,M)<=-1&&(A=f),d(C,M)>=1&&(A=0),A<0){var I=Math.round(A/f*1e6)/1e6;A=2*f+I%2*f}v.addData(g,E,T,a,s,k,A,m,o)}var v=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,m=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function y(t){var e=new o.Z;if(!t)return e;var n,r=0,i=0,a=r,s=i,u=o.Z.CMD,l=t.match(v);if(!l)return e;for(var c=0;c<l.length;c++){for(var f=l[c],h=f.charAt(0),d=void 0,p=f.match(m)||[],y=p.length,b=0;b<y;b++)p[b]=parseFloat(p[b]);var x=0;while(x<y){var _=void 0,w=void 0,S=void 0,E=void 0,T=void 0,k=void 0,C=void 0,M=r,A=i,I=void 0,O=void 0;switch(h){case"l":r+=p[x++],i+=p[x++],d=u.L,e.addData(d,r,i);break;case"L":r=p[x++],i=p[x++],d=u.L,e.addData(d,r,i);break;case"m":r+=p[x++],i+=p[x++],d=u.M,e.addData(d,r,i),a=r,s=i,h="l";break;case"M":r=p[x++],i=p[x++],d=u.M,e.addData(d,r,i),a=r,s=i,h="L";break;case"h":r+=p[x++],d=u.L,e.addData(d,r,i);break;case"H":r=p[x++],d=u.L,e.addData(d,r,i);break;case"v":i+=p[x++],d=u.L,e.addData(d,r,i);break;case"V":i=p[x++],d=u.L,e.addData(d,r,i);break;case"C":d=u.C,e.addData(d,p[x++],p[x++],p[x++],p[x++],p[x++],p[x++]),r=p[x-2],i=p[x-1];break;case"c":d=u.C,e.addData(d,p[x++]+r,p[x++]+i,p[x++]+r,p[x++]+i,p[x++]+r,p[x++]+i),r+=p[x-2],i+=p[x-1];break;case"S":_=r,w=i,I=e.len(),O=e.data,n===u.C&&(_+=r-O[I-4],w+=i-O[I-3]),d=u.C,M=p[x++],A=p[x++],r=p[x++],i=p[x++],e.addData(d,_,w,M,A,r,i);break;case"s":_=r,w=i,I=e.len(),O=e.data,n===u.C&&(_+=r-O[I-4],w+=i-O[I-3]),d=u.C,M=r+p[x++],A=i+p[x++],r+=p[x++],i+=p[x++],e.addData(d,_,w,M,A,r,i);break;case"Q":M=p[x++],A=p[x++],r=p[x++],i=p[x++],d=u.Q,e.addData(d,M,A,r,i);break;case"q":M=p[x++]+r,A=p[x++]+i,r+=p[x++],i+=p[x++],d=u.Q,e.addData(d,M,A,r,i);break;case"T":_=r,w=i,I=e.len(),O=e.data,n===u.Q&&(_+=r-O[I-4],w+=i-O[I-3]),r=p[x++],i=p[x++],d=u.Q,e.addData(d,_,w,r,i);break;case"t":_=r,w=i,I=e.len(),O=e.data,n===u.Q&&(_+=r-O[I-4],w+=i-O[I-3]),r+=p[x++],i+=p[x++],d=u.Q,e.addData(d,_,w,r,i);break;case"A":S=p[x++],E=p[x++],T=p[x++],k=p[x++],C=p[x++],M=r,A=i,r=p[x++],i=p[x++],d=u.A,g(M,A,r,i,k,C,S,E,T,d,e);break;case"a":S=p[x++],E=p[x++],T=p[x++],k=p[x++],C=p[x++],M=r,A=i,r+=p[x++],i+=p[x++],d=u.A,g(M,A,r,i,k,C,S,E,T,d,e);break}}"z"!==h&&"Z"!==h||(d=u.Z,e.addData(d),r=a,i=s),n=d}return e.toStatic(),e}var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.applyTransform=function(t){},e}(i.ZP);function x(t){return null!=t.setData}function _(t,e){var n=y(t),r=(0,s.l7)({},e);return r.buildPath=function(t){if(x(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){(0,a.Z)(n,t),this.dirtyShape()},r}function w(t,e){return new b(_(t,e))}function S(t,e){var n=_(t,e),i=function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return(0,r.ZT)(e,t),e}(b);return i}function E(t,e){for(var n=[],r=t.length,o=0;o<r;o++){var a=t[o];n.push(a.getUpdatedPathProxy(!0))}var s=new i.ZP(e);return s.createPathProxy(),s.buildPath=function(t){if(x(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},s}function T(t,e){e=e||{};var n=new i.ZP;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?(0,a.Z)(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}},1620:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(85727);if(/^(539|826)$/.test(n.j))var i=n(15468);var o=r.Z.CMD,a=/^(539|826)$/.test(n.j)?[[],[],[]]:null,s=Math.sqrt,u=Math.atan2;function l(t,e){if(e){var n,r,l,c,f,h,d=t.data,p=t.len(),g=o.M,v=o.C,m=o.L,y=o.R,b=o.A,x=o.Q;for(l=0,c=0;l<p;){switch(n=d[l++],c=l,r=0,n){case g:r=1;break;case m:r=1;break;case v:r=3;break;case x:r=2;break;case b:var _=e[4],w=e[5],S=s(e[0]*e[0]+e[1]*e[1]),E=s(e[2]*e[2]+e[3]*e[3]),T=u(-e[1]/E,e[0]/S);d[l]*=S,d[l++]+=_,d[l]*=E,d[l++]+=w,d[l++]*=S,d[l++]*=E,d[l++]+=T,d[l++]+=T,l+=2,c=l;break;case y:h[0]=d[l++],h[1]=d[l++],(0,i.Ne)(h,h,e),d[c++]=h[0],d[c++]=h[1],h[0]+=d[l++],h[1]+=d[l++],(0,i.Ne)(h,h,e),d[c++]=h[0],d[c++]=h[1]}for(f=0;f<r;f++){var k=a[f];k[0]=d[l++],k[1]=d[l++],(0,i.Ne)(k,k,e),d[c++]=k[0],d[c++]=k[1]}}t.increaseVersion()}}},24503:function(t,e,n){"use strict";n.d(e,{S1:function(){return gt},wm:function(){return vt},Qq:function(){return mt}});var r=n(59979),i=n(95797),o=n(4311),a=n(15468),s=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),u=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){var e=t.target;while(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 s(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 s(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,u=this._dropTarget;this._dropTarget=a,e!==a&&(u&&a!==u&&this.handler.dispatchToElement(new s(u,t),"dragleave",t.event),a&&a!==u&&this.handler.dispatchToElement(new s(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new s(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),l=u,c=n(18626),f=n(14834),h=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],u=f.eV(n,s,{});i.points.push([u.zrX,u.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in g)if(g.hasOwnProperty(e)){var n=g[e](this._track,t);if(n)return n}},t}();function d(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function p(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var g={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=d(r)/d(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=p(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},v=n(96805),m="silent";function y(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:b}}function b(){f.sT(this.event)}var x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return(0,o.ZT)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(c.Z),_=function(){function t(t,e){this.x=t,this.y=e}return t}(),w=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],S=new v.Z(0,0,0,0),E=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new _(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new x,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new l(a),a}return(0,o.ZT)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(i.S6(w,(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=C(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new _(e,n):this.findHover(e,n),s=a.target,u=this.proxy;u.setCursor&&u.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 _(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){t=t||{};var r=t.target;if(!r||!r.silent){var i="on"+e,o=y(e,t,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;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 _(t,e);if(k(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,u=new v.Z(t-s,e-s,a,a),l=r.length-1;l>=0;l--){var c=r[l];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(S.copy(c.getBoundingRect()),c.transform&&S.applyTransform(c.transform),S.intersect(u)&&o.push(c))}if(o.length)for(var f=4,h=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=f)for(var g=0;g<d;g+=h){var m=t+p*Math.cos(g),y=e+p*Math.sin(g);if(k(o,i,m,y,n),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new h);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 _;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(c.Z);function T(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var r=t,i=void 0,o=!1;while(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||m}return!1}function k(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=T(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==m)){e.target=a;break}}}function C(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}i.S6(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){E.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,s=C(this,i,o);if("mouseup"===t&&s||(n=this.findHover(i,o),r=n.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||a.TK(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var M=E,A=n(1994),I=n(8088),O=!1;function D(){O||(O=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function P(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var L=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=P}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,(0,A.Z)(n,P)},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():[];var i=r,o=t;while(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 u=a[s];t.__dirty&&(u.__dirty|=I.YV),this._updateAndAddDisplayable(u,e,n)}t.__dirty=0}else{var l=t;e&&e.length?l.__clipPaths=e:l.__clipPaths&&l.__clipPaths.length>0&&(l.__clipPaths=[]),isNaN(l.z)&&(D(),l.z=0),isNaN(l.z2)&&(D(),l.z2=0),isNaN(l.zlevel)&&(D(),l.zlevel=0),this._displayList[this._displayListLen++]=l}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,e,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,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=i.cq(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}(),N=L,R=n(33851),j=n(6997);function F(){return(new Date).getTime()}var B=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(0,o.ZT)(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){var e=F()-this._pausedTime,n=e-this._time,r=this._head;while(r){var i=r.next,o=r.step(e,n);o?(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;function e(){t._running&&((0,R.Z)(e),!t._paused&&t.update())}this._running=!0,(0,R.Z)(e)},e.prototype.start=function(){this._running||(this._time=F(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=F(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=F()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(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 j.Z(t,e.loop);return this.addAnimator(n),n},e}(c.Z),z=B,Z=300,U=r.Z.domSupported,H=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=i.UI(t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:r}}(),$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},G=!1;function W(t){var e=t.pointerType;return"pen"===e||"touch"===e}function V(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function Y(t){t&&(t.zrByTouch=!0)}function X(t,e){return(0,f.OD)(t.dom,new K(t,e),!0)}function q(t,e){var n=e,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return r}var K=function(){function t(t,e){this.stopPropagation=i.ZT,this.stopImmediatePropagation=i.ZT,this.preventDefault=i.ZT,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),J={mousedown:function(t){t=(0,f.OD)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,f.OD)(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=(0,f.OD)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=(0,f.OD)(this.dom,t);var e=t.toElement||t.relatedTarget;q(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){G=!0,t=(0,f.OD)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){G||(t=(0,f.OD)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=(0,f.OD)(this.dom,t),Y(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),J.mousemove.call(this,t),J.mousedown.call(this,t)},touchmove:function(t){t=(0,f.OD)(this.dom,t),Y(t),this.handler.processGesture(t,"change"),J.mousemove.call(this,t)},touchend:function(t){t=(0,f.OD)(this.dom,t),Y(t),this.handler.processGesture(t,"end"),J.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<Z&&J.click.call(this,t)},pointerdown:function(t){J.mousedown.call(this,t)},pointermove:function(t){W(t)||J.mousemove.call(this,t)},pointerup:function(t){J.mouseup.call(this,t)},pointerout:function(t){W(t)||J.mouseout.call(this,t)}};i.S6(["click","dblclick","contextmenu"],(function(t){J[t]=function(e){e=(0,f.OD)(this.dom,e),this.trigger(t,e)}}));var Q={pointermove:function(t){W(t)||Q.mousemove.call(this,t)},pointerup:function(t){Q.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 tt(t,e){var n=e.domHandlers;r.Z.pointerEventsSupported?i.S6(H.pointer,(function(r){nt(e,r,(function(e){n[r].call(t,e)}))})):(r.Z.touchEventsSupported&&i.S6(H.touch,(function(r){nt(e,r,(function(i){n[r].call(t,i),V(e)}))})),i.S6(H.mouse,(function(r){nt(e,r,(function(i){i=(0,f.iP)(i),e.touching||n[r].call(t,i)}))})))}function et(t,e){function n(n){function r(r){r=(0,f.iP)(r),q(t,r.target)||(r=X(t,r),e.domHandlers[n].call(t,r))}nt(e,n,r,{capture:!0})}r.Z.pointerEventsSupported?i.S6($.pointer,n):r.Z.touchEventsSupported||i.S6($.mouse,n)}function nt(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,(0,f.Oo)(t.domTarget,e,n,r)}function rt(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&(0,f.xg)(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var it=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),ot=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 it(e,J),U&&(r._globalHandlerScope=new it(document,Q)),tt(r,r._localHandlerScope),r}return(0,o.ZT)(e,t),e.prototype.dispose=function(){rt(this._localHandlerScope),U&&rt(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,U&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?et(this,e):rt(e)}},e}(c.Z),at=ot,st=n(76171),ut=n(25815),lt=n(3082),ct={},ft={};function ht(t){delete ft[t]}function dt(t){if(!t)return!1;if("string"===typeof t)return(0,st.L0)(t,1)<ut.Ak;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=(0,st.L0)(e[i].color,1);return n/=r,n<ut.Ak}return!1}var pt=function(){function t(t,e,n){var o=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 a=new N,s=n.renderer||"canvas";ct[s]||(s=i.XP(ct)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var u=new ct[s](e,a,n,t),l=n.ssr||u.ssrOnly;this.storage=a,this.painter=u;var c,f=r.Z.node||r.Z.worker||l?null:new at(u.getViewportRoot(),u.root),h=n.useCoarsePointer,d=null==h||"auto"===h?r.Z.touchEventsSupported:!!h,p=44;d&&(c=i.pD(n.pointerSize,p)),this.handler=new M(a,u,f,u.root,c),this.animation=new z({stage:{update:l?null:function(){return o._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=dt(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){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=F();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=F();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._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof lt.Z&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,ht(this.id))},t}();function gt(t,e){var n=new pt(i.M8(),t,e);return ft[n.id]=n,n}function vt(t,e){ct[t]=e}function mt(t){t}}}]);
//# sourceMappingURL=chunk-vendors.3558e9ca.js.map