diff --git a/css/@logicflow_core@2.0-CugW5BGX.css b/css/@logicflow_core@2.0-CugW5BGX.css deleted file mode 100644 index 3d3e6f5e..00000000 --- a/css/@logicflow_core@2.0-CugW5BGX.css +++ /dev/null @@ -1 +0,0 @@ -.lf-graph{position:relative;z-index:0;width:100%;height:100%;background:#fff;-webkit-user-select:none;-moz-user-select:none;user-select:none}.lf-element-text{cursor:text}.lf-text-disabled{pointer-events:none}.lf-text-draggable{cursor:move}.lf-node-anchor{cursor:crosshair}.lf-node-anchor-hover{visibility:hidden}.lf-anchor:hover .lf-node-anchor-hover{visibility:visible}.lf-edge.pointer-none{pointer-events:none}.lf-edge-append{cursor:pointer}.lf-edge-animation{stroke-dashoffset:100%;-webkit-animation:lf_animate_dash 5s linear infinite;animation:lf_animate_dash 5s linear infinite}@-webkit-keyframes lf_animate_dash{to{stroke-dashoffset:0}}@keyframes lf_animate_dash{to{stroke-dashoffset:0}}.lf-node-not-allow{cursor:not-allowed}.lf-polyline-append-ns-resize{cursor:ns-resize}.lf-polyline-append-ew-resize{cursor:ew-resize}.lf-dragging,.lf-dragging .lf-element-text{cursor:move}.lf-draggable{cursor:default}.lf-bezier-adjust-anchor{cursor:pointer}.lf-background,.lf-grid{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.lf-background-area{width:100%;height:100%}.lf-html-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}.lf-html-overlay__transform>*{pointer-events:all}.lf-text-editable{pointer-events:all}.lf-text-input{position:absolute;box-sizing:border-box;min-width:100px;min-height:20px;padding:5px;line-height:1.2;white-space:pre;text-align:center;background:#fff;border:1px solid #edefed;border-radius:3px;outline:none;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);resize:none}.lf-get-text-height{display:inline-block;box-sizing:border-box;word-break:break-all;border:1px solid transparent}.lf-node-text-auto-wrap{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box}.lf-node-text-auto-wrap-content{width:100%;line-height:1.2;text-align:center;word-break:break-all;background:transparent}.lf-node-text-ellipsis-content{width:100%;line-height:1.2;white-space:nowrap;text-align:center;background:transparent}.lf-node-text-ellipsis-content>div{overflow:hidden;text-overflow:ellipsis}.lf-tool-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;overflow:hidden;pointer-events:none}.lf-tool-overlay>*{pointer-events:all}.modification-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;overflow:hidden;pointer-events:none}.modification-overlay>*{pointer-events:all}.lf-outline,.lf-snapline{pointer-events:none}.lf-keyboard-tips{float:right}.lf-node-select-decorate{position:absolute;border:1px dashed #343435;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.lf-multiple-select{position:absolute;border:2px dashed #187dffcc;box-shadow:0 0 3px #187dff80;cursor:move}.lf-edge-adjust-point{cursor:move}.lf-rotate-control{cursor:-webkit-grabbing;cursor:grabbing}.lf-resize-control-nw{cursor:nw-resize}.lf-resize-control-n{cursor:n-resize}.lf-resize-control-ne{cursor:ne-resize}.lf-resize-control-e{cursor:e-resize}.lf-resize-control-se{cursor:se-resize}.lf-resize-control-s{cursor:s-resize}.lf-resize-control-sw{cursor:sw-resize}.lf-resize-control-w{cursor:w-resize} diff --git a/css/@logicflow_core@2.0-CugW5BGX.css.gz b/css/@logicflow_core@2.0-CugW5BGX.css.gz deleted file mode 100644 index 75aef209..00000000 Binary files a/css/@logicflow_core@2.0-CugW5BGX.css.gz and /dev/null differ diff --git a/css/@logicflow_core@2.0-Z6H4Q2Ml.css b/css/@logicflow_core@2.0-Z6H4Q2Ml.css new file mode 100644 index 00000000..6ad2400a --- /dev/null +++ b/css/@logicflow_core@2.0-Z6H4Q2Ml.css @@ -0,0 +1 @@ +.lf-graph{position:relative;z-index:0;width:100%;height:100%;background:#fff;-webkit-user-select:none;-moz-user-select:none;user-select:none}.lf-element-text{cursor:text}.lf-text-disabled{pointer-events:none}.lf-text-draggable{cursor:move}*:focus{outline:none}.lf-node-anchor{cursor:crosshair}.lf-node-anchor-hover{visibility:hidden}.lf-anchor:hover .lf-node-anchor-hover{visibility:visible}.lf-edge.pointer-none{pointer-events:none}.lf-edge-append{cursor:pointer}.lf-edge-animation{stroke-dashoffset:100%;-webkit-animation:lf_animate_dash 5s linear infinite;animation:lf_animate_dash 5s linear infinite}@-webkit-keyframes lf_animate_dash{to{stroke-dashoffset:0}}@keyframes lf_animate_dash{to{stroke-dashoffset:0}}.lf-node-not-allow{cursor:not-allowed}.lf-polyline-append-ns-resize{cursor:ns-resize}.lf-polyline-append-ew-resize{cursor:ew-resize}.lf-dragging,.lf-dragging .lf-element-text{cursor:move}.lf-draggable{cursor:default}.lf-bezier-adjust-anchor{cursor:pointer}.lf-background,.lf-grid{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.lf-background-area{width:100%;height:100%}.lf-html-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}.lf-html-overlay__transform>*{pointer-events:all}.lf-text-editable{pointer-events:all}.lf-text-input{position:absolute;box-sizing:border-box;min-width:100px;min-height:20px;padding:5px;line-height:1.2;white-space:pre;text-align:center;background:#fff;border:1px solid #edefed;border-radius:3px;outline:none;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);resize:none}.lf-get-text-height{display:inline-block;box-sizing:border-box;word-break:break-all;border:1px solid transparent}.lf-node-text-auto-wrap{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box}.lf-node-text-auto-wrap-content{width:100%;line-height:1.2;text-align:center;word-break:break-all;background:transparent}.lf-node-text-ellipsis-content{width:100%;line-height:1.2;white-space:nowrap;text-align:center;background:transparent}.lf-node-text-ellipsis-content>div{overflow:hidden;text-overflow:ellipsis}.lf-tool-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;overflow:hidden;pointer-events:none}.lf-tool-overlay>*{pointer-events:all}.modification-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;overflow:hidden;pointer-events:none}.modification-overlay>*{pointer-events:all}.lf-outline,.lf-snapline{pointer-events:none}.lf-keyboard-tips{float:right}.lf-node-select-decorate{position:absolute;border:1px dashed #343435;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.lf-multiple-select{position:absolute;border:2px dashed #187dffcc;box-shadow:0 0 3px #187dff80;cursor:move}.lf-edge-adjust-point{cursor:move}.lf-rotate-control{cursor:-webkit-grabbing;cursor:grabbing}.lf-resize-control-nw{cursor:nw-resize}.lf-resize-control-n{cursor:n-resize}.lf-resize-control-ne{cursor:ne-resize}.lf-resize-control-e{cursor:e-resize}.lf-resize-control-se{cursor:se-resize}.lf-resize-control-s{cursor:s-resize}.lf-resize-control-sw{cursor:sw-resize}.lf-resize-control-w{cursor:w-resize} diff --git a/css/@logicflow_core@2.0-Z6H4Q2Ml.css.gz b/css/@logicflow_core@2.0-Z6H4Q2Ml.css.gz new file mode 100644 index 00000000..174ac919 Binary files /dev/null and b/css/@logicflow_core@2.0-Z6H4Q2Ml.css.gz differ diff --git a/index.html b/index.html index e10cd2eb..eac28ffb 100644 --- a/index.html +++ b/index.html @@ -8,30 +8,30 @@ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> Ray Template - - - - - - + + + + + + - - + + - - + + - - - + + + @@ -40,34 +40,34 @@ - + - + - + - - + + - - + + - + - - - - + + + + - + diff --git a/index.html.gz b/index.html.gz index 406b3dd9..bfe5a657 100644 Binary files a/index.html.gz and b/index.html.gz differ diff --git a/js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js.gz b/js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js.gz deleted file mode 100644 index 1120e70f..00000000 Binary files a/js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js.gz and /dev/null differ diff --git a/js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js b/js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js similarity index 83% rename from js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js rename to js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js index 168fb623..c74e6d28 100644 --- a/js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js +++ b/js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js @@ -1,3 +1,3 @@ -import{i as u}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";const i="@css-render/vue3-ssr";function o(e,n){return``}function c(e,n,t){const{styles:r,ids:s}=t;s.has(e)||r!==null&&(s.add(e),r.push(o(e,n)))}const d=typeof document<"u";function l(){if(d)return;const e=u(i,null);if(e!==null)return{adapter:(n,t)=>c(n,t,e),context:e}}export{l as u}; diff --git a/js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js.gz b/js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js.gz new file mode 100644 index 00000000..09e0e3fc Binary files /dev/null and b/js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js.gz differ diff --git a/js/@logicflow_core@2.0.10-Dy_oAVRl.js b/js/@logicflow_core@2.0.10-Dy_oAVRl.js new file mode 100644 index 00000000..6e53fc26 --- /dev/null +++ b/js/@logicflow_core@2.0.10-Dy_oAVRl.js @@ -0,0 +1,10 @@ +import{o as yo}from"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import{u as x,x as K,g as Ur,b as Gn,n as Zn}from"./preact@10.25.4--QYavupV.js";import{a as k,c as C,m as Fn,g as Wr,n as dn,p as Kt,f as W,t as bt,b as St,d as Ht,i as Qt,e as ht,s as go,h as vo,j as Vn,k as _n,l as _o,o as Zr,q as mo,r as xo,u as Kn,v as Eo,w as Vr,x as Mo,y as Oo}from"./lodash-es@4.17.21-BbYRMHep.js";import{c as So,t as mt,i as Kr,s as wo,o as E,a as F,b as m,r as Ao}from"./mobx@5.15.7-BvNiR7Ki.js";import{v as Po}from"./uuid@9.0.1-CtRu48qb.js";import{c as To}from"./classnames@2.5.1-BXd8anFz.js";import{M as Do}from"./mousetrap@1.6.5-D2xAa-oQ.js";import{d as No}from"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";var bo=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);oy.step||Math.abs(y.sumDeltaY)>y.step)){var O=y.sumDeltaX%y.step,w=y.sumDeltaY%y.step,A=y.sumDeltaX-O,b=y.sumDeltaY-w;y.sumDeltaX=O,y.sumDeltaY=w;var R=(M=y.model)===null||M===void 0?void 0:M.getData();y.isDragging||((S=y.eventCenter)===null||S===void 0||S.emit(T["".concat(y.eventType,"_DRAGSTART")],{e:_,data:y.data||R}),y.onDragStart({event:_})),y.isDragging=!0,Promise.resolve().then(function(){var L,z;y.onDragging({deltaX:A,deltaY:b,event:_}),(L=y.eventCenter)===null||L===void 0||L.emit(T["".concat(y.eventType,"_MOUSEMOVE")],{deltaX:A,deltaY:b,e:_,data:y.data||R}),(z=y.eventCenter)===null||z===void 0||z.emit(T["".concat(y.eventType,"_DRAG")],{e:_,data:y.data||R})})}},this.handleMouseUp=function(_){var M=window.document;y.isStartDragging=!1,y.isStopPropagation&&_.stopPropagation(),Promise.resolve().then(function(){var S,O,w;M.removeEventListener("mousemove",y.handleMouseMove,!1),M.removeEventListener("mouseup",y.handleMouseUp,!1);var A=(S=y.model)===null||S===void 0?void 0:S.getData();(O=y.eventCenter)===null||O===void 0||O.emit(T["".concat(y.eventType,"_MOUSEUP")],{e:_,data:y.data||A}),y.isDragging&&(y.isDragging=!1,y.onDragEnd({event:_}),(w=y.eventCenter)===null||w===void 0||w.emit(T["".concat(y.eventType,"_DROP")],{e:_,data:y.data||A}))})},this.cancelDrag=function(){var _=window==null?void 0:window.document;_.removeEventListener("mousemove",y.handleMouseMove,!1),_.removeEventListener("mouseup",y.handleMouseUp,!1),y.onDragEnd({event:void 0}),y.isDragging=!1},this.destroy=function(){y.isStartDragging&&y.cancelDrag()},this.onDragStart=n,this.onDragging=i,this.onDragEnd=s,this.step=c,this.isStopPropagation=g,this.eventType=l,this.eventCenter=u,this.model=p,this.data=v}return r.prototype.setStep=function(e){this.step=e},r.prototype.setModel=function(e){this.model=e},r}(),Xo=function(r){var e=r.x,t=r.y,n=r.width,o=r.height;return{x:e-n/2,y:t-o/2,x1:e+n/2,y1:t+o/2}},Yo=function(r){var e=r.startPoint,t=r.endPoint,n=(e.x+t.x)/2,o=(e.y+t.y)/2,i=Math.abs(e.x-t.x)+10,a=Math.abs(e.y-t.y)+10;return{x:n-i/2,y:o-a/2,x1:n+i/2,y1:o+a/2}},Ho=function(r){var e=r.points,t=kt(e),n=Ee(t,8),o=n.x,i=n.y,a=n.width,s=n.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},ko=function(r){var e=r.path,t=$n(e),n=Ee(t,8),o=n.x,i=n.y,a=n.width,s=n.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},zo=function(r){if(r.modelType===j.LINE_EDGE)return Yo(r);if(r.modelType===j.POLYLINE_EDGE)return Ho(r);if(r.modelType===j.BEZIER_EDGE)return ko(r)},Go=function(r,e,t,n){var o=(e.y-r.y)*(n.x-t.x)-(r.x-e.x)*(t.y-n.y);if(o===0)return!1;var i=((e.x-r.x)*(n.x-t.x)*(t.y-r.y)+(e.y-r.y)*(n.x-t.x)*r.x-(n.y-t.y)*(e.x-r.x)*t.x)/o,a=-((e.y-r.y)*(n.y-t.y)*(t.x-r.x)+(e.x-r.x)*(n.y-t.y)*r.y-(n.x-t.x)*(e.y-r.y)*t.y)/o;return(i-r.x)*(i-e.x)<=0&&(a-r.y)*(a-e.y)<=0&&(i-t.x)*(i-n.x)<=0&&(a-t.y)*(a-n.y)<=0?{x:i,y:a}:!1},me=function(r,e,t){var n=r.x,o=r.y,i=e.x,a=e.y,s=t.x,d=t.y,l=(d-a)/(s-i),u=a-l*i;return(n>=i&&n<=s||n<=i&&n>=s)&&(o>=a&&o<=d||o<=a&&o>=d)&&Math.abs(o-l*n-u)=e.x?(a.leftX=e.x+l*Math.sin(s+d),a.leftY=e.y-l*Math.cos(s+d),a.rightX=e.x-l*Math.sin(s-d),a.rightY=e.y+l*Math.cos(s-d)):(a.leftX=e.x-l*Math.sin(s+d),a.leftY=e.y+l*Math.cos(s+d),a.rightX=e.x+l*Math.sin(s-d),a.rightY=e.y-l*Math.cos(s-d)):i==="end"&&(t.x>=e.x?(a.leftX=t.x+l*Math.sin(s-d),a.leftY=t.y-l*Math.cos(s-d),a.rightX=t.x-l*Math.sin(s+d),a.rightY=t.y+l*Math.cos(s+d)):(a.leftX=t.x-l*Math.sin(s-d),a.leftY=t.y+l*Math.cos(s-d),a.rightX=t.x+l*Math.sin(s+d),a.rightY=t.y-l*Math.cos(s+d))),a},qt=function(){return qt=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Dt=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;nn/e.height?G.HORIZONTAL:G.VERTICAL},Fe=function(r,e,t){var n=$o(t,e);return n===G.HORIZONTAL?{x:t.x>r.centerX?r.maxX:r.minX,y:t.y}:{x:t.x,y:t.y>r.centerY?r.maxY:r.minY}},Qn=function(r,e){var t=Math.min(r.minX,e.minX),n=Math.min(r.minY,e.minY),o=Math.max(r.maxX,e.maxX),i=Math.max(r.maxY,e.maxY);return{x:(t+o)/2,y:(n+i)/2,centerX:(t+o)/2,centerY:(n+i)/2,minX:t,minY:n,maxX:o,maxY:i,height:i-n,width:o-t}},Ee=function(r,e){r===void 0&&(r=[]);var t=[],n=[];r.forEach(function(u){t.push(u.x),n.push(u.y)});var o=Math.min.apply(Math,Dt([],at(t),!1)),i=Math.max.apply(Math,Dt([],at(t),!1)),a=Math.min.apply(Math,Dt([],at(n),!1)),s=Math.max.apply(Math,Dt([],at(n),!1)),d=i-o,l=s-a;return e&&(d+=e,l+=e),{centerX:(o+i)/2,centerY:(a+s)/2,maxX:i,maxY:s,minX:o,minY:a,x:(o+i)/2,y:(a+s)/2,height:l,width:d}},$e=function(r){var e=r.minX,t=r.minY,n=r.maxX,o=r.maxY;return[{x:e,y:t},{x:n,y:t},{x:n,y:o},{x:e,y:o}]},Ne=function(r,e){var t=r.x,n=r.y;return te.maxX||ne.maxY},Uo=function(r,e){return er.maxX?[]:[{x:e,y:r.minY},{x:e,y:r.maxY}]},Wo=function(r,e){return er.maxY?[]:[{x:r.minX,y:e},{x:r.maxX,y:e}]},Zo=function(r,e){return Dt(Dt([],at(Uo(r,e.x)),!1),at(Wo(r,e.y)),!1)},xn=function(r,e){return Math.abs(r.x-e.x)+Math.abs(r.y-e.y)},Vo=function(r,e){var t=-2,n=0;return e.forEach(function(o){o&&(r.x===o.x&&(n+=t),r.y===o.y&&(n+=t))}),n},tr=function(r,e,t,n,o){return xn(r,e)+xn(r,t)+Vo(r,[e,t,n,o])},qr=function(r,e,t,n,o){o||(o=0),r.unshift(e[n]),t[n]&&t[n]!==n&&o<=100&&qr(r,e,t,t[n],o+1)},Ko=function(r,e){var t=r.indexOf(e);t>-1&&r.splice(t,1)},ie=function(r,e,t,n){var o=e.x-r.x,i=e.y-r.y,a=n.x-t.x,s=n.y-t.y,d=(-i*(r.x-t.x)+o*(r.y-t.y))/(-a*i+o*s),l=(a*(r.y-t.y)-s*(r.x-t.x))/(-a*i+o*s);return d>=0&&d<=1&&l>=0&&l<=1},er=function(r,e,t){if(t.width===0&&t.height===0)return!1;var n=at($e(t),4),o=n[0],i=n[1],a=n[2],s=n[3];return ie(r,e,o,i)||ie(r,e,o,s)||ie(r,e,i,a)||ie(r,e,a,s)},qo=function(r,e,t,n){var o=[];return r.forEach(function(i){i!==e&&(i.x===e.x||i.y===e.y)&&!er(i,e,t)&&!er(i,e,n)&&o.push(i)}),mn(o)},Jo=function(r,e,t,n,o,i,a){var s=[],d=[e],l={},u={},f={};e.id&&(u[e.id]=0,f[e.id]=tr(e,t,e));var c={};r.forEach(function(p){p.id&&(c[p.id]=p)});for(var h=function(){var p,v=1/0;if(d.forEach(function(_){_.id&&f[_.id]=u[_.id])return;l[_.id]=p.id,u[_.id]=M,f[_.id]=u[_.id]+tr(_,t,e,i,a)}})};d.length;){var g=h();if(typeof g=="object")return g.value}return[e,t]},nr=function(r){return nt(r)},Jr=function(r){for(var e=1;e2&&(y=Jr(y)),mn(y)},Qo=function(r){if(r.length===1){var e=at(r,1),t=e[0];return[t,t]}else{for(var n=r[0],o=r[1],i=yt(n.x,n.y,o.x,o.y),a=1;ai&&(i=l,n=s,o=d)}return[n,o]}},or=function(r,e,t){var n=Nt(r,t),o=Nt(e,t);return n&&o},ir=function(r,e,t){var n=Nt(r,t),o=Nt(e,t),i=n&&o,a=n||o;return!i&&a},ar=function(r,e,t){for(var n=void 0,o=nt(t),i=$e(o),a=0;a=1&&n<=126||n>=65376&&n<=65439?e+=1:e+=2}return e},ei=function(r){var e=r.start,t=r.end,n;if(e.x===t.x&&e.y===t.y)n="";else{var o={start:e,end:t,offset:10,verticalLength:5},i=xe(qt(qt({},o),{type:"start"})),a=xe(qt(qt({},o),{type:"end"}));n="M".concat(i.leftX," ").concat(i.leftY,` + L`).concat(i.rightX," ").concat(i.rightY,` + L`).concat(a.rightX," ").concat(a.rightY,` + L`).concat(a.leftX," ").concat(a.leftY," z")}return{d:n,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},dr=function(r){var e=r.start,t=r.end,n=r.sourceNode,o=r.targetNode,i=r.offset,a=nt(n),s=nt(o),d=Ge(a,i),l=Ge(s,i),u=Fe(d,a,e),f=Fe(l,s,t);return{sNext:u,ePre:f}},$n=function(r){var e=r.replace(/M/g,"").replace(/C/g,",").split(","),t=be(e[0]),n=be(e[1]),o=be(e[2]),i=be(e[3]);return[t,n,o,i]},be=function(r){var e=at(r.replace(/(^\s*)/g,"").split(" "),2),t=e[0],n=e[1];return{x:+t,y:+n}},lr=function(r,e){var t=at(r,4),n=t[0],o=t[1],i=t[2],a=t[3],s=Yi(n,o,i,a,e);return[s,r[3]]},to=function(r,e){for(var t=r.x,n=r.y,o=kt(e),i=Number.MAX_SAFE_INTEGER,a,s=[],d=0;do?a:o}),{width:Math.ceil(o/2)*n+n/4,height:t*(n+2)+n/4}},$t=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Ce=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},un=function(r,e,t){var n=ln(r,2),o=n[0],i=n[1],a=ln(e,2),s=a[0],d=a[1],l=ln(t,2),u=l[0],f=l[1];return o>s&&od&&i=0?o:-o},e}(no),En=function(r){Un(e,r);function e(t,n){var o=r.call(this,t,n,1)||this;return Object.setPrototypeOf(o,e.prototype),o}return e.prototype.toString=function(){return"Point"},e}(no),tn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ut=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},fn=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;o--){var i=t[o],a=ui(r,i);if(a){var s=i.getTargetAnchor(r);if(s){var d={node:i,anchorIndex:s.index,anchor:s.anchor};(!n||di(i,n.node,e))&&(n=d)}}}return n},di=function(r,e,t){return r.zIndex>e.zIndex?!0:t.nodesMap[r.id].index>t.nodesMap[e.id].index},li=function(r,e){for(var t=Mn(e),n,o=Number.MAX_SAFE_INTEGER,i=0;i=o.minX-n&&r.x<=o.maxX+n&&r.y>=o.minY-n&&r.y<=o.maxY+n&&(t=!0),t},ui=function(r,e){var t=!1,n=5,o=nt(e);return r.x>=o.minX-n&&r.x<=o.maxX+n&&r.y>=o.minY-n&&r.y<=o.maxY+n&&(t=!0),t},nt=function(r){var e=r.x,t=r.y,n=r.width,o=r.height;return{minX:e-n/2,minY:t-o/2,maxX:e+n/2,maxY:t+o/2,x:e,y:t,width:n,height:o,centerX:e,centerY:t}},fi=function(r){var e=r,t=e.x,n=e.y,o=e.width,i=e.height,a=e.radius;return[{x:t-o/2+a,y:n-i/2+a,r:a},{x:t+o/2-a,y:n-i/2+a,r:a},{x:t-o/2+a,y:n+i/2-a,r:a},{x:t+o/2-a,y:n+i/2-a,r:a}]},cr=function(r,e,t){var n=fi(t),o,i=Number.MAX_SAFE_INTEGER;return n.forEach(function(a){var s=yt(r.x,r.y,a.x,a.y);sl.minX&&r.xl.minY&&r.yu.x&&(f=u,c=l);var h={x:r.x,y:r.y};if(f.x===c.x&&e===G.HORIZONTAL&&(h={x:f.x,y:r.y}),f.y===c.y&&e===G.VERTICAL&&(h={x:r.x,y:f.y}),f.x!==c.x&&f.y!==c.y){var g=(c.y-f.y)/(c.x-f.x),p=(f.x*c.y-c.x*f.y)/(f.x-c.x);e===G.HORIZONTAL?h={x:(r.y-p)/g,y:r.y}:e===G.VERTICAL&&(h={x:r.x,y:g*r.x+p})}var v=me(h,l,u);if(v){var y=yt(h.x,h.y,r.x,r.y);yr.x?o=r.x+t/2:e.xr.y?i=r.y+n/2:e.y1?e.forEach(function(s){var d=document.createElement("div");d.textContent=s,i.appendChild(d)}):i.textContent=e[0],document.body.appendChild(i);var a=i.clientHeight;return document.body.removeChild(i),a},gr=function(r){var e=r.rows,t=r.rowsLength,n=r.fontSize,o=0;return e&&e.forEach(function(i){var a=Qr(i);o=a>o?a:o}),{width:Math.ceil(o/2)*n+n/4,height:t*(n+2)+n/4}},Ve=function(r){return typeof r!="object"?{isAllPass:!!r,msg:r?"":"不允许连接"}:r},Yt=function(){return Po()},se=new Map,oo=function(r){var e=Yt();function t(){r();var o=se.get(e);if(o){var i=window.requestAnimationFrame(t);se.set(e,i)}}var n=window.requestAnimationFrame(t);return se.set(e,n),e},Ke=function(r){var e=se.get(r);e&&(window.cancelAnimationFrame(e),se.delete(r))},Me=function(){return Me=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function io(r){var e=r.x,t=e===void 0?0:e,n=r.y,o=n===void 0?0:n,i=r.value,a=r.fontSize,s=a===void 0?12:a,d=r.fill,l=d===void 0?"currentColor":d,u=r.overflowMode,f=u===void 0?"default":u,c=r.textWidth,h=c===void 0?void 0:c,g=r.model,p={x:t,y:o,fill:l,fontSize:s,textAnchor:"middle",dominantBaseline:"central"};if(W(bt(r),function(O){var w=pi(O,2),A=w[0],b=w[1];typeof b!="object"&&(p[A]=b)}),i){var v=String(i).split(/[\r\n]/g),y=v.length;if(f!=="default"){var _=g.BaseType,M=g.modelType;if(_===$.NODE&&M!==j.TEXT_NODE||_===$.EDGE&&h)return hi(r)}if(y>1){var S=v.map(function(O,w){var A=s+2,b=(w-(y-1)/2)*A;return x("tspan",{className:"lf-text-tspan",x:t,y:o+b,children:O})});return x("text",Me({},p,{children:S}))}return x("text",Me({},p,{children:i}))}return null}function hi(r){var e=r.x,t=r.y,n=r.value,o=r.model,i=r.textWidth,a=r.fontSize,s=a===void 0?12:a,d=r.lineHeight,l=r.fontFamily,u=l===void 0?"":l,f=r.wrapPadding,c=f===void 0?"0, 0":f,h=r.overflowMode,g=o.width,p=o.height,v=o.textHeight,y=i||g,_=String(n).split(/[\r\n]/g),M=_.length,S=ro({rows:_,style:{fontSize:"".concat(s,"px"),width:"".concat(y,"px"),fontFamily:u,lineHeight:d,padding:c},rowsLength:M,className:"lf-get-text-height"}),O=p>S?p:S;v&&(O=v);var w=h==="ellipsis";return w&&(O=s+2),x("g",{children:x("foreignObject",{width:y,height:O,x:e-y/2,y:t-O/2,style:{overflow:"visible",textAlign:"left"},children:x("div",{className:"lf-node-text-auto-wrap",style:{minHeight:O,width:y,padding:c},children:x("div",{className:w?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:w?_.join(""):"",style:Me({},r),children:_.map(function(A){return x("div",{className:"lf-node-text--auto-wrap-inner",children:A})})})})})})}var Sn=function(){return Sn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function ee(r){var e={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return W(bt(r),function(t){var n=yi(t,2),o=n[0],i=n[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("line",Sn({},e))}var wn=function(){return wn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function Et(r){var e=r.x,t=r.y,n=r.width,o=r.height,i=r.className,a=r.strokeWidth,s=r.radius,d=s===void 0?0:s,l=e-n/2,u=t-o/2,f={};return f["stroke-width"]=a,W(bt(r),function(c){var h=gi(c,2),g=h[0],p=h[1];typeof p!="object"&&(f[g]=p)}),i?f.className="lf-basic-shape ".concat(i):f.className="lf-basic-shape",d&&(f.rx=d,f.ry=d),f.x=l,f.y=u,x("rect",wn({},f))}var An=function(){return An=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function Oe(r){var e={d:""};return W(bt(r),function(t){var n=vi(t,2),o=n[0],i=n[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("path",An({},e))}var Pn=function(){return Pn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function ne(r){var e=r.x,t=e===void 0?0:e,n=r.y,o=n===void 0?0:n,i=r.r,a=i===void 0?4:i,s=r.className,d={cx:t,cy:o,r:a,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(bt(r),function(l){var u=_i(l,2),f=u[0],c=u[1];typeof c!="object"&&(d[f]=c)}),s?d.className="lf-basic-shape ".concat(s):d.className="lf-basic-shape",x("circle",Pn({},d))}var Tn=function(){return Tn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function xi(r){var e=r.x,t=e===void 0?0:e,n=r.y,o=n===void 0?0:n,i=r.rx,a=i===void 0?4:i,s=r.ry,d=s===void 0?4:s,l=r.className,u={cx:t,cy:o,rx:a,ry:d,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(bt(r),function(f){var c=mi(f,2),h=c[0],g=c[1];typeof g!="object"&&(u[h]=g)}),l?u.className="lf-basic-shape ".concat(l):u.className="lf-basic-shape",x("ellipse",Tn({},u))}var Dn=function(){return Dn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function ao(r){var e=r.points,t=e===void 0?[]:e,n=r.className,o={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return W(bt(r),function(i){var a=Ei(i,2),s=a[0],d=a[1];typeof d!="object"&&(o[s]=d)}),n?o.classNmae="lf-basic-shape ".concat(n):o.className="lf-basic-shape",o.points=t.map(function(i){return i.join(",")}).join(" "),x("polygon",Dn({},o))}var Nn=function(){return Nn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function Oi(r){var e=r.className,t={points:"",fill:"none"};return W(bt(r),function(n){var o=Mi(n,2),i=o[0],a=o[1];(i==="style"||typeof a!="object")&&(t[i]=a)}),e&&(t.className="".concat(e)),x("polyline",Nn({},t))}var so=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Se=function(){return Se=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},H;(function(r){r[r.LEFT_TOP=0]="LEFT_TOP",r[r.RIGHT_TOP=1]="RIGHT_TOP",r[r.RIGHT_BOTTOM=2]="RIGHT_BOTTOM",r[r.LEFT_BOTTOM=3]="LEFT_BOTTOM"})(H||(H={}));var Ai=function(r){so(e,r);function e(t){var n=r.call(this)||this;n.updateEdgePointByAnchors=function(){var s=n.nodeModel,d=s.id,l=s.anchors,u=n.graphModel.getNodeEdges(d);W(u,function(f){if(f.sourceNodeId===d){var c=Ht(l,function(h){return h.id===f.sourceAnchorId});c&&f.updateStartPoint({x:c.x,y:c.y})}else if(f.targetNodeId===d){var c=Ht(l,function(g){return g.id===f.targetAnchorId});c&&f.updateEndPoint({x:c.x,y:c.y})}})},n.triggerResizeEvent=function(s,d,l,u,f,c){n.graphModel.eventCenter.emit(T.NODE_RESIZE,{preData:s,data:d,deltaX:l,deltaY:u,index:f,model:c})},n.recalcResizeInfo=function(s,d,l,u,f){l===void 0&&(l=1),u===void 0&&(u=!1),f===void 0&&(f=!1);var c=C(d),h=c.deltaX,g=c.deltaY,p=c.width,v=c.height,y=c.PCTResizeInfo;if(y){var _=4,M=0,S=0;switch(s){case H.LEFT_TOP:S=(h*-1-g)/_;break;case H.RIGHT_TOP:S=(h-g)/_;break;case H.RIGHT_BOTTOM:S=(h+g)/_;break;case H.LEFT_BOTTOM:S=(h*-1+g)/_;break}S!==0&&(M=Math.round(S/y.ResizeBasis.basisHeight*1e5)/1e3),y.ResizePCT.widthPCT=Math.max(Math.min(y.ResizePCT.widthPCT+M,y.ScaleLimit.maxScaleLimit),y.ScaleLimit.minScaleLimit),y.ResizePCT.heightPCT=Math.max(Math.min(y.ResizePCT.heightPCT+M,y.ScaleLimit.maxScaleLimit),y.ScaleLimit.minScaleLimit);var O=Math.round(y.ResizePCT.widthPCT*y.ResizeBasis.basisWidth/100),w=Math.round(y.ResizePCT.heightPCT*y.ResizeBasis.basisHeight/100);switch(s){case H.LEFT_TOP:h=p-O,g=v-w;break;case H.RIGHT_TOP:h=O-p,g=v-w;break;case H.RIGHT_BOTTOM:h=O-p,g=w-v;break;case H.LEFT_BOTTOM:h=p-O,g=w-v;break}return c}switch(s){case H.LEFT_TOP:c.width=u?p:p-h*l,c.height=f?v:v-g*l;break;case H.RIGHT_TOP:c.width=u?p:p+h*l,c.height=f?v:v-g*l;break;case H.RIGHT_BOTTOM:c.width=u?p:p+h*l,c.height=f?v:v+g*l;break;case H.LEFT_BOTTOM:c.width=u?p:p-h*l,c.height=f?v:v+g*l;break}return c},n.resizeNode=function(s){var d=s.deltaX,l=s.deltaY,u=n.index,f=n.props,c=f.model,h=f.graphModel,g=f.x,p=f.y;Ri({x:g,y:p,deltaX:d,deltaY:l,index:u,nodeModel:c,graphModel:h,cancelCallback:function(){n.dragHandler.cancelDrag()}})},n.onDragging=function(s){var d=s.deltaX,l=s.deltaY,u=n.graphModel.transformModel,f=wi(u.fixDeltaXY(d,l),2),c=f[0],h=f[1];n.resizeNode({deltaX:c,deltaY:h})},n.onDragEnd=function(){var s=n.nodeModel.x,d=n.nodeModel.y;n.nodeModel.moveTo(s,d),n.updateEdgePointByAnchors()};var o=t.index,i=t.model,a=t.graphModel;return n.index=o,n.nodeModel=i,n.graphModel=a,n.dragHandler=new Mt({onDragging:n.onDragging,onDragEnd:n.onDragEnd,step:a.gridSize}),n}return e.prototype.componentWillUnmount=function(){this.dragHandler.destroy()},e.prototype.render=function(){var t=this.props,n=t.x,o=t.y,i=t.direction,a=t.model,s=a.getResizeControlStyle(),d=s.width,l=s.height,u=Si(s,["width","height"]);return x("g",{className:"lf-resize-control lf-resize-control-".concat(i),children:[x(Et,Se({className:"lf-resize-control-content",x:n,y:o,width:d??7,height:l??7},u)),x(Et,{className:"lf-resize-control-content",x:n,y:o,width:25,height:25,fill:"transparent",stroke:"transparent",onMouseDown:this.dragHandler.handleMouseDown})]})},e}(K),Pi=function(r){so(e,r);function e(){return r.call(this)||this}return e.prototype.getResizeControl=function(){var t=this.props,n=t.model,o=t.graphModel,i=nt(n),a=i.minX,s=i.minY,d=i.maxX,l=i.maxY,u=[{index:H.LEFT_TOP,direction:"nw",x:a,y:s},{index:H.RIGHT_TOP,direction:"ne",x:d,y:s},{index:H.RIGHT_BOTTOM,direction:"se",x:d,y:l},{index:H.LEFT_BOTTOM,direction:"sw",x:a,y:l}];return St(u,function(f){return x(Ai,Se({},f,{model:n,graphModel:o}))})},e.prototype.getResizeOutline=function(){var t=this.props.model,n=t.x,o=t.y,i=t.width,a=t.height,s=t.getResizeOutlineStyle();return x(Et,Se({},s,{x:n,y:o,width:i,height:a}))},e.prototype.render=function(){return x("g",{className:"lf-resize-control-group",children:[this.getResizeOutline(),this.getResizeControl()]})},e}(K);function Ti(r,e){var t=r.x,n=r.y,o=e.x,i=e.y,a={x:t+(o-t)/2,y:n+(i-n)/2};return a}function ae(r,e,t){var n=Di(t),o=r.x-e.x,i=r.y-e.y,a=o*Math.cos(n)-i*Math.sin(n)+e.x,s=o*Math.sin(n)+i*Math.cos(n)+e.y;return{x:a,y:s}}function Di(r){return r*Math.PI/180}function Ni(r){return r/Math.PI*180}function bi(r,e,t,n,o,i,a,s,d){s===void 0&&(s=!1),d===void 0&&(d=!1);var l=e.deltaX,u=e.deltaY,f=e.width,c=e.height,h=Ni(t),g={x:n,y:o},p={x:i,y:a},v=ae(g,p,h),y={x:v.x+l,y:v.y+u},_=Ii(v,y,p,h,s,d,f,c),M=_.width,S=_.height,O=_.center;return e.width=M*r,e.height=S*r,e.deltaX=(O.x-p.x)*2,e.deltaY=(O.y-p.y)*2,e}var Ci=function(r,e,t,n,o,i,a,s,d,l){t===void 0&&(t=1),n===void 0&&(n=!1),o===void 0&&(o=!1),i===void 0&&(i=0);var u=C(e),f=u.deltaX,c=u.deltaY,h=u.width,g=u.height,p=u.PCTResizeInfo;if(p){var v=4,y=0,_=0;switch(r){case H.LEFT_TOP:_=(f*-1-c)/v;break;case H.RIGHT_TOP:_=(f-c)/v;break;case H.RIGHT_BOTTOM:_=(f+c)/v;break;case H.LEFT_BOTTOM:_=(f*-1+c)/v;break}_!==0&&(y=Math.round(_/p.ResizeBasis.basisHeight*1e5)/1e3),p.ResizePCT.widthPCT=Math.max(Math.min(p.ResizePCT.widthPCT+y,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit),p.ResizePCT.heightPCT=Math.max(Math.min(p.ResizePCT.heightPCT+y,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit);var M=Math.round(p.ResizePCT.widthPCT*p.ResizeBasis.basisWidth/100),S=Math.round(p.ResizePCT.heightPCT*p.ResizeBasis.basisHeight/100);switch(r){case H.LEFT_TOP:f=h-M,c=g-S;break;case H.RIGHT_TOP:f=M-h,c=g-S;break;case H.RIGHT_BOTTOM:f=M-h,c=S-g;break;case H.LEFT_BOTTOM:f=h-M,c=S-g;break}return u}if(i%(2*Math.PI)!==0&&a!==void 0&&s!==void 0)return bi(t,u,i,a,s,d,l,n,o);switch(r){case H.LEFT_TOP:u.width=n?h:h-f*t,u.height=o?g:g-c*t;break;case H.RIGHT_TOP:u.width=n?h:h+f*t,u.height=o?g:g-c*t;break;case H.RIGHT_BOTTOM:u.width=n?h:h+f*t,u.height=o?g:g+c*t;break;case H.LEFT_BOTTOM:u.width=n?h:h-f*t,u.height=o?g:g+c*t;break}return u},Li=function(r,e){var t=r.id,n=r.anchors,o=e.getNodeEdges(t);W(o,function(i){if(i.sourceNodeId===t){var a=Ht(n,function(s){return s.id===i.sourceAnchorId});a&&i.updateStartPoint({x:a.x,y:a.y})}else if(i.targetNodeId===t){var a=Ht(n,function(d){return d.id===i.targetAnchorId});a&&i.updateEndPoint({x:a.x,y:a.y})}})},ji=function(r,e,t,n,o,i,a){a.eventCenter.emit(T.NODE_RESIZE,{preData:r,data:e,deltaX:t,deltaY:n,index:o,model:i})},Ri=function(r){var e=r.x,t=r.y,n=r.deltaX,o=r.deltaY,i=r.index,a=r.nodeModel,s=r.graphModel,d=r.cancelCallback,l=a.r,u=a.rx,f=a.ry,c=a.width,h=a.height,g=a.PCTResizeInfo,p=a.minWidth,v=a.minHeight,y=a.maxWidth,_=a.maxHeight,M=a.rotate,S=a.x,O=a.y,w=p===y,A=v===_,b={width:l||u||c,height:l||f||h,deltaX:n,deltaY:o,PCTResizeInfo:g},R=l||u&&f?1/2:1,L=e,z=t,I=Ci(i,b,R,w,A,M,L,z,S,O);if(I.widthy||I.height_){d==null||d();return}(M%(2*Math.PI)==0||g||L===void 0||z===void 0)&&(I.deltaX=w?0:I.deltaX,I.deltaY=A?0:I.deltaY);var U=a.getData(),Y=a.resize(I);U.x===Y.x&&U.y===Y.y||(Li(a,s),ji(U,Y,n,o,i,a,s))};function Ii(r,e,t,n,o,i,a,s){o===void 0&&(o=!1),i===void 0&&(i=!1);var d={x:t.x-(r.x-t.x),y:t.y-(r.y-t.y)},l=Ti(d,e),u=ae(e,l,-n),f=ae(d,l,-n);if(o){var c=Math.abs(u.x-f.x),h=c-a;l.x>u.x?l.x=l.x+h/2:l.x=l.x-h/2}if(i){var g=Math.abs(u.y-f.y),p=g-s;l.y>u.y?l.y=l.y+p/2:l.y=l.y-p/2}if(o||i){var v=ae(f,l,n),y=v.x-d.x,_=v.y-d.y;l.x=l.x-y,l.y=l.y-_,f=ae(d,l,-n),u={x:l.x-(f.x-l.x),y:l.y-(f.y-l.y)}}var M=Math.abs(u.x-f.x),S=Math.abs(u.y-f.y);return o&&(M=a),i&&(S=s),{width:M,height:S,center:l}}var Bi=100,Xi={x:1,y:0,z:0};function Yi(r,e,t,n,o){for(var i=function(h){if(h<0||h>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:r.x*Math.pow(1-h,3)+3*e.x*h*Math.pow(1-h,2)+3*t.x*Math.pow(h,2)*(1-h)+n.x*Math.pow(h,3),y:r.y*Math.pow(1-h,3)+3*e.y*h*Math.pow(1-h,2)+3*t.y*Math.pow(h,2)*(1-h)+n.y*Math.pow(h,3)}},a=0,s=2,d=n.x,l=n.y,u=n;a=0?n:-n}function vr(r){var e=Math.hypot(r.x,r.y);return{x:r.x/e,y:r.y/e,z:0}}function Gi(r){return zi(Xi,r)}function Fi(r){return r*(180/Math.PI)}var $i={baseNode:{fill:"#fff",stroke:"#000",strokeWidth:2},baseEdge:{stroke:"#000",strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},text:{color:"#000",stroke:"none",fontSize:12,background:{fill:"transparent"}},anchor:{stroke:"#000",fill:"#fff",r:4,hover:{r:10,fill:"#949494",fillOpacity:.5,stroke:"#949494"}},anchorLine:{stroke:"#000",strokeWidth:2,strokeDasharray:"3,2"},nodeText:{color:"#000",overflowMode:"default",fontSize:12,lineHeight:1.2},edgeText:{textWidth:100,overflowMode:"default",fontSize:12,background:{fill:"#fff"}},line:{},polyline:{},bezier:{fill:"none",adjustLine:{stroke:"#949494"},adjustAnchor:{r:4,fill:"#949494",fillOpacity:1,stroke:"#949494"}},arrow:{offset:10,verticalLength:5},snapline:{stroke:"#949494",strokeWidth:1},edgeAdjust:{r:4,fill:"#fff",stroke:"#949494",strokeWidth:2},outline:{fill:"transparent",stroke:"#949494",strokeDasharray:"3,3",hover:{stroke:"#949494"}},edgeAnimation:{stroke:"red",strokeDasharray:"10,10",strokeDashoffset:"100%",animationName:"lf_animate_dash",animationDuration:"20s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"normal"},rotateControl:{stroke:"#000",fill:"#fff",strokeWidth:1.5},resizeControl:{width:7,height:7,fill:"#fff",stroke:"#000"},resizeOutline:{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},lo=function(r){var e=C($i);return r&&(e=Fn(e,r)),e},Ui=lo,Wi=1e3,Zi=999,Wn=function(){return++Wi},Vi=function(){return--Zi},V=function(){return V=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},rn=function(){function r(e,t){var n;this.BaseType=$.EDGE,this.id="",this.type="",this.sourceNodeId="",this.targetNodeId="",this.textMode=st.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this.points="",this.pointsList=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.isAnimation=!1,this.isShowAdjustPoint=!1,this.zIndex=0,this.state=X.DEFAULT,this.modelType=j.EDGE,this.customTextPosition=!1,this.style={},this.arrowConfig={markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")},this.graphModel=t,this.properties=(n=e.properties)!==null&&n!==void 0?n:{},this.initEdgeData(e),this.setAttributes()}return r.prototype.initEdgeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,n=t&&t(e.type),o=this.createId();e.id=o||n||Yt()}this.arrowConfig.markerEnd="url(#marker-end-".concat(e.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(e.id,")");var i=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=i,k(this,ni(e));var a=this.graphModel.overlapMode;a===pt.INCREASE&&(this.zIndex=e.zIndex||Wn()),this.setAnchors(),this.initPoints(),this.formatText(e)},r.prototype.setAttributes=function(){},r.prototype.createId=function(){return null},r.prototype.getEdgeStyle=function(){return V(V({},this.graphModel.theme.baseEdge),this.style)},r.prototype.getAdjustPointStyle=function(){return V({},this.graphModel.theme.edgeAdjust)},r.prototype.getTextStyle=function(){var e=this.graphModel.theme.edgeText;return C(e)},r.prototype.getEdgeAnimationStyle=function(){var e=this.graphModel.theme.edgeAnimation;return C(e)},r.prototype.getArrowStyle=function(){var e=this.getEdgeStyle(),t=this.getEdgeAnimationStyle(),n=this.graphModel.theme.arrow,o=this.isAnimation?t.stroke:e.stroke;return V(V(V({},e),{fill:o,stroke:o}),n)},r.prototype.getOutlineStyle=function(){var e=this.graphModel,t=e.theme.outline;return C(t)},r.prototype.getTextPosition=function(){return{x:0,y:0}},Object.defineProperty(r.prototype,"sourceNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.sourceNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"targetNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.targetNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textPosition",{get:function(){return this.getTextPosition()},enumerable:!1,configurable:!0}),r.prototype.getBeginAnchor=function(e,t,n){var o,i,a=Mn(e);if(n){if(o=Ht(a,function(s){return s.id===n}),o)return o;console.warn("未在节点上找到指定的起点锚点".concat(n,",已使用默认锚点作为起点"))}return a.forEach(function(s){var d=ur(s,t);(i===void 0||d=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},cn=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},_r=function(r){Ki(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.BEZIER_EDGE,o.path="",o.initEdgeData(t),o.setAttributes(),o}return e.prototype.initEdgeData=function(t){this.offset=100,r.prototype.initEdgeData.call(this,t)},e.prototype.getEdgeStyle=function(){var t=this.graphModel.theme.bezier,n=r.prototype.getEdgeStyle.call(this),o=this.properties.style,i=o===void 0?{}:o;return It(It(It({},n),C(t)),C(i))},e.prototype.getTextPosition=function(){if(this.pointsList&&this.pointsList.length>0){var t=0,n=0;return this.pointsList.forEach(function(o){var i=o.x,a=o.y;t+=i,n+=a}),{x:t/this.pointsList.length,y:n/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}},e.prototype.getData=function(){var t=r.prototype.getData.call(this),n=this.pointsList.map(function(o){var i=o.x,a=o.y;return{x:i,y:a}});return It(It({},t),{pointsList:n})},e.prototype.getControls=function(){var t=this.startPoint,n=this.endPoint,o=dr({start:t,end:n,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset});return o},e.prototype.getPath=function(t){var n=cn(t,4),o=n[0],i=n[1],a=n[2],s=n[3];return"M ".concat(o.x," ").concat(o.y,` + C `).concat(i.x," ").concat(i.y,`, + `).concat(a.x," ").concat(a.y,`, + `).concat(s.x," ").concat(s.y)},e.prototype.initPoints=function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()},e.prototype.updatePoints=function(){var t=this.getControls(),n=t.sNext,o=t.ePre;this.updatePath(n,o)},e.prototype.updatePath=function(t,n){t=C(t),n=C(n);var o={x:this.startPoint.x,y:this.startPoint.y},i={x:this.endPoint.x,y:this.endPoint.y};if(!t||!n){var a=this.getControls();t=a.sNext,n=a.ePre}this.pointsList=[o,t,n,i],this.path=this.getPath(this.pointsList)},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,n){this.startPoint.x+=t,this.startPoint.y+=n;var o=cn(this.pointsList,3),i=o[1],a=o[2];i.x+=t,i.y+=n,this.updatePath(i,a)},e.prototype.moveEndPoint=function(t,n){this.endPoint.x+=t,this.endPoint.y+=n;var o=cn(this.pointsList,3),i=o[1],a=o[2];a.x+=t,a.y+=n,this.updatePath(i,a)},e.prototype.updateAdjustAnchor=function(t,n){var o;n==="sNext"?this.pointsList[1]=t:n==="ePre"&&(this.pointsList[2]=t),this.path=this.getPath(this.pointsList),!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition))},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var n=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode,s=dr({start:n,end:o,sourceNode:i,targetNode:a,offset:this.offset}),d=s.sNext,l=s.ePre;this.pointsList=[n,d,l,o],this.initPoints()},lt([E],e.prototype,"path",void 0),lt([m],e.prototype,"initPoints",null),lt([m],e.prototype,"updatePoints",null),lt([m],e.prototype,"updateStartPoint",null),lt([m],e.prototype,"updateEndPoint",null),lt([m],e.prototype,"moveStartPoint",null),lt([m],e.prototype,"moveEndPoint",null),lt([m],e.prototype,"updateAdjustAnchor",null),lt([m],e.prototype,"getAdjustStart",null),lt([m],e.prototype,"getAdjustEnd",null),lt([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e}(rn),qi=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),de=function(){return de=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Ji=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Er=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},ta=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;nd)&&(a=d,i=s)}),i},e.prototype.getCrossPoint=function(t,n,o){var i;return t===G.HORIZONTAL?i={x:o.x,y:n.y}:t===G.VERTICAL&&(i={x:n.x,y:o.y}),i},e.prototype.removeCrossPoints=function(t,n,o){var i=o.map(function(y){return y});if(t===1){var a=i[t],s=i[n],d=i[t-1],l=or(d,a,this.sourceNode);if(l){var u=ir(a,s,this.sourceNode);if(u){var f=ar(a,s,this.sourceNode);f&&(i[t]=f,i.splice(t-1,1),t--,n--)}}else{var c=this.sourceNode.anchors;c.forEach(function(y){if(y.x===d.x&&y.x===a.x||y.y===d.y&&y.y===a.y){var _=yt(y.x,y.y,a.x,a.y),M=yt(d.x,d.y,a.x,a.y);_0?this.points=this.getPath(this.pointsList):this.updatePoints()},e.prototype.updatePoints=function(){var t=rr({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=t,this.points=t.map(function(n){return"".concat(n.x,",").concat(n.y)}).join(" ")},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,n){this.startPoint.x+=t,this.startPoint.y+=n,this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveEndPoint=function(t,n){this.endPoint.x+=t,this.endPoint.y+=n,this.updatePoints()},e.prototype.updatePointsList=function(t,n){this.pointsList.forEach(function(a){a.x+=t,a.y+=n});var o=this.pointsList[0];this.startPoint=Object.assign({},o);var i=this.pointsList[this.pointsList.length-1];this.endPoint=Object.assign({},i),this.initPoints()},e.prototype.dragAppendStart=function(){this.draggingPointList=this.pointsList.map(function(t){return t})},e.prototype.dragAppendSimple=function(t,n){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,d=t.endIndex,l=t.direction,u=this.pointsList,f=u;return l===G.HORIZONTAL?(u[s]={x:i.x,y:i.y+n.y},u[d]={x:a.x,y:a.y+n.y},f=this.pointsList.map(function(c){return c})):l===G.VERTICAL&&(u[s]={x:i.x+n.x,y:i.y},u[d]={x:a.x+n.x,y:a.y},f=this.pointsList.map(function(c){return c})),this.updatePointsAfterDrag(f),this.draggingPointList=f,!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition)),{start:k({},u[s]),end:k({},u[d]),startIndex:s,endIndex:d,direction:l}},e.prototype.dragAppend=function(t,n){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,d=t.endIndex,l=t.direction,u=this.pointsList;if(l===G.HORIZONTAL){u[s]={x:i.x,y:i.y+n.y},u[d]={x:a.x,y:a.y+n.y};var f=this.pointsList.map(function(v){return v});if(s!==0&&d!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,d,f)),s===0){var c={x:i.x,y:i.y+n.y},h=Nt(c,this.sourceNode);if(!h){var g=this.sourceNode.anchors;f=this.getDraggingPoints(l,"start",c,g,f)}}if(d===this.pointsList.length-1){var p={x:a.x,y:a.y+n.y},h=Nt(p,this.targetNode);if(!h){var g=this.targetNode.anchors;f=this.getDraggingPoints(l,"end",p,g,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}else if(l===G.VERTICAL){u[s]={x:i.x+n.x,y:i.y},u[d]={x:a.x+n.x,y:a.y};var f=this.pointsList.map(function(y){return y});if(s!==0&&d!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,d,f)),s===0){var c={x:i.x+n.x,y:i.y},h=Nt(c,this.sourceNode);if(!h){var g=this.sourceNode.anchors;f=this.getDraggingPoints(l,"start",c,g,f)}}if(d===this.pointsList.length-1){var p={x:a.x+n.x,y:a.y},h=Nt(p,this.targetNode);if(!h){var g=this.targetNode.anchors;f=this.getDraggingPoints(l,"end",p,g,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}return!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition)),{start:k({},u[s]),end:k({},u[d]),startIndex:s,endIndex:d,direction:l}},e.prototype.dragAppendEnd=function(){if(this.draggingPointList){var t=Jr(kt(this.points));this.pointsList=t.map(function(i){return i}),this.draggingPointList=[];var n=t[0];this.startPoint=k({},n);var o=t[t.length-1];this.endPoint=k({},o)}this.isDragging=!1},e.prototype.updatePointsAfterDrag=function(t){var n=this.updateCrossPoints(t);this.points=n.map(function(o){return"".concat(o.x,",").concat(o.y)}).join(" ")},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var n=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode;this.pointsList=rr({x:n.x,y:n.y},{x:o.x,y:o.y},i,a,this.offset||0),this.initPoints()},tt([E],e.prototype,"dbClickPosition",void 0),tt([m],e.prototype,"initPoints",null),tt([m],e.prototype,"updatePoints",null),tt([m],e.prototype,"updateStartPoint",null),tt([m],e.prototype,"moveStartPoint",null),tt([m],e.prototype,"updateEndPoint",null),tt([m],e.prototype,"moveEndPoint",null),tt([m],e.prototype,"updatePointsList",null),tt([m],e.prototype,"dragAppendStart",null),tt([m],e.prototype,"dragAppendSimple",null),tt([m],e.prototype,"dragAppend",null),tt([m],e.prototype,"dragAppendEnd",null),tt([m],e.prototype,"updatePointsAfterDrag",null),tt([m],e.prototype,"getAdjustStart",null),tt([m],e.prototype,"getAdjustEnd",null),tt([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e}(rn),q=function(){return q=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Or=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ea=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Ct=function(){function r(e,t){var n;this.BaseType=$.NODE,this.id="",this.type="",this.x=0,this.y=0,this.textMode=st.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this._width=100,this._height=80,this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.anchorsOffset=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isShowAnchor=!1,this.isDragging=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.rotatable=!0,this.resizable=!0,this.zIndex=1,this.state=X.DEFAULT,this.autoToFront=!0,this.style={},this._rotate=0,this.modelType=j.NODE,this.additionStateData={},this.targetRules=[],this.sourceRules=[],this.moveRules=[],this.resizeRules=[],this.hasSetTargetRules=!1,this.hasSetSourceRules=!1,this.graphModel=t,this.properties=(n=e.properties)!==null&&n!==void 0?n:{},this.initNodeData(e),this.setAttributes()}return Object.defineProperty(r.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e;var t=this,n=t.x,o=n===void 0?0:n,i=t.y,a=i===void 0?0:i;this.transform=new nn(-o,-a).rotate(e).translate(o,a).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"incoming",{get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"outgoing",{get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}},enumerable:!1,configurable:!0}),r.prototype.initNodeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,n=t&&t(e.type),o=this.createId();e.id=o||n||Yt()}this.formatText(e),k(this,ci(e));var i=this.graphModel.overlapMode;i===pt.INCREASE&&(this.zIndex=e.zIndex||Wn())},r.prototype.setAttributes=function(){},r.prototype.createId=function(){return null},r.prototype.setTextMode=function(e){this.textMode=e},r.prototype.formatText=function(e){var t,n,o,i=this.graphModel.editConfigModel,a=i.nodeTextDraggable,s=i.nodeTextEdit,d=e.x,l=e.y,u=e.text,f={value:"",x:d,y:l,draggable:a,editable:s};u&&(typeof u=="string"?f.value=u:(f=q(q({},f),{x:(t=u.x)!==null&&t!==void 0?t:d,y:(n=u.y)!==null&&n!==void 0?n:l,value:(o=u.value)!==null&&o!==void 0?o:""}),Qt(u.draggable)||(f.draggable=u.draggable),Qt(u.editable)||(f.editable=u.editable))),e.text=f},r.prototype.resize=function(e){var t=e.width,n=e.height,o=e.deltaX,i=e.deltaY,a=this.isAllowResizeNode(o,i,t,n);return a?(this.move(o/2,i/2),this.width=t,this.height=n,this.setProperties({width:t,height:n}),this.getData()):this.getData()},r.prototype.proportionalResize=function(){},r.prototype.getData=function(){var e=this.text,t=e.x,n=e.y,o=e.value,i=this.properties;Kr(i)&&(i=mt(i)),ht(i.width)&&(i.width=this.width),ht(i.height)&&(i.height=this.height);var a={id:this.id,type:this.type,x:this.x,y:this.y,properties:i};return this.rotate&&(a.rotate=this.rotate),this.graphModel.overlapMode===pt.INCREASE&&(a.zIndex=this.zIndex),o&&(a.text={x:t,y:n,value:o}),a},r.prototype.getHistoryData=function(){return this.getData()},r.prototype.getProperties=function(){return mt(this.properties)},r.prototype.getOuterGAttributes=function(){return{className:""}},r.prototype.getNodeStyle=function(){return q(q({},this.graphModel.theme.baseNode),this.style)},r.prototype.getTextStyle=function(){var e=this.graphModel.theme.nodeText,t=this.properties.textStyle,n=t===void 0?{}:t;return q(q({},C(e)),C(n))},r.prototype.getRotateControlStyle=function(){var e=this.graphModel.theme.rotateControl;return C(e)},r.prototype.getResizeControlStyle=function(){var e=this.graphModel.theme.resizeControl;return C(e)},r.prototype.getResizeOutlineStyle=function(){var e=this.graphModel.theme.resizeOutline;return C(e)},r.prototype.getAnchorStyle=function(e){var t=this.graphModel.theme.anchor;return C(t)},r.prototype.getAnchorLineStyle=function(e){var t=this.graphModel.theme.anchorLine;return C(t)},r.prototype.getOutlineStyle=function(){var e=this.graphModel.theme.outline;return C(e)},r.prototype.isAllowConnectedAsSource=function(e,t,n,o){var i=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var a=!0,s="",d=0;d0?t.map(function(a,s){return a.length?(a=a,{id:"".concat(n,"_").concat(s),x:o+a[0],y:i+a[1]}):(a=a,q(q({},a),{x:o+a.x,y:i+a.y,id:a.id||"".concat(n,"_").concat(s)}))}):this.getDefaultAnchor()},r.prototype.getDefaultAnchor=function(){return[]},r.prototype.getTargetAnchor=function(e){return li(e,this)},r.prototype.getBounds=function(){return{minX:this.x-this.width/2,minY:this.y-this.height/2,maxX:this.x+this.width/2,maxY:this.y+this.height/2}},Object.defineProperty(r.prototype,"anchors",{get:function(){var e=this.getAnchorsByOffset(),t=this,n=t.x,o=t.y,i=t.rotate;return e.forEach(function(a){var s=a.x,d=a.y,l=ea(new en([s,d,1]).translate(-n,-o).rotate(i).translate(n,o)[0],2),u=l[0],f=l[1];a.x=u,a.y=f}),e},enumerable:!1,configurable:!0}),r.prototype.getAnchorInfo=function(e){if(!ht(e))for(var t=0;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Sr=function(r){na(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.CIRCLE_NODE,o.r=50,o.initNodeData(t),o.setAttributes(),o}return Object.defineProperty(e.prototype,"width",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties.r;t&&(this.r=t)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.circle,o=this.properties.style,i=o===void 0?{}:o;return ue(ue(ue({},t),C(n)),C(i))},e.prototype.getDefaultAnchor=function(){var t=this,n=t.x,o=t.y,i=t.r;return[{x:n,y:o-i,id:"".concat(this.id,"_0")},{x:n+i,y:o,id:"".concat(this.id,"_1")},{x:n,y:o+i,id:"".concat(this.id,"_2")},{x:n-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var n=t.width,o=t.deltaX,i=t.deltaY;return this.move(o/2,i/2),this.r=n,this.setProperties({r:n}),this.getData()},pn([E],e.prototype,"r",void 0),pn([F],e.prototype,"width",null),pn([F],e.prototype,"height",null),e}(Ct),ra=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),fe=function(){return fe=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},je=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},wr=function(r){ra(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.DIAMOND_NODE,o.rx=30,o.ry=50,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.rx,o=t.ry;n&&(this.rx=n),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.diamond,o=this.properties.style,i=o===void 0?{}:o;return fe(fe(fe({},t),C(n)),C(i))},Object.defineProperty(e.prototype,"points",{get:function(){var t=this,n=t.x,o=t.y,i=t.rx,a=t.ry;return[[n,o-a],[n+i,o],[n,o+a],[n-i,o]]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointsPosition",{get:function(){return St(this.points,function(t){var n=je(t,2),o=n[0],i=n[1];return{x:o,y:i}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=je(o,1),a=i[0];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=je(o,2),a=i[1];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this;return St(this.points,function(n,o){var i=je(n,2),a=i[0],s=i[1];return{x:a,y:s,id:"".concat(t.id,"_").concat(o)}})},e.prototype.resize=function(t){var n=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=n,this.ry=o,this.setProperties({rx:n,ry:o}),this.getData()},Wt([E],e.prototype,"rx",void 0),Wt([E],e.prototype,"ry",void 0),Wt([F],e.prototype,"points",null),Wt([F],e.prototype,"pointsPosition",null),Wt([F],e.prototype,"width",null),Wt([F],e.prototype,"height",null),e}(Ct),oa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ce=function(){return ce=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ar=function(r){oa(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.ELLIPSE_NODE,o.rx=30,o.ry=45,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.rx,o=t.ry;n&&(this.rx=n),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.ellipse,o=this.properties.style,i=o===void 0?{}:o;return ce(ce(ce({},t),C(n)),C(i))},Object.defineProperty(e.prototype,"width",{get:function(){return this.rx*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.ry*2},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,n=t.x,o=t.y,i=t.rx,a=t.ry;return[{x:n,y:o-a,id:"".concat(this.id,"_0")},{x:n+i,y:o,id:"".concat(this.id,"_1")},{x:n,y:o+a,id:"".concat(this.id,"_2")},{x:n-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var n=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=n,this.ry=o,this.setProperties({rx:n,ry:o}),this.getData()},Re([E],e.prototype,"rx",void 0),Re([E],e.prototype,"ry",void 0),Re([F],e.prototype,"width",null),Re([F],e.prototype,"height",null),e}(Ct),ia=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),pe=function(){return pe=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Be=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Pr=function(r){ia(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.POLYGON_NODE,o.points=[[50,0],[100,50],[50,100],[0,50]],o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.points,o=t.width,i=t.height,a=n||this.points;this.points=ii(a,o,i)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.polygon,o=this.properties.style,i=o===void 0?{}:o;return pe(pe(pe({},t),C(n)),C(i))},Object.defineProperty(e.prototype,"pointsPosition",{get:function(){var t=this,n=t.x,o=t.y,i=t.width,a=t.height;return this.points.map(function(s){return{x:s[0]+n-i/2,y:s[1]+o-a/2}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Be(o,1),a=i[0];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Be(o,2),a=i[1];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,n=this,o=n.x,i=n.y,a=n.width,s=n.height,d=n.points;return d.map(function(l,u){var f=Be(l,2),c=f[0],h=f[1];return{x:o+c-a/2,y:i+h-s/2,id:"".concat(t.id,"_").concat(u)}})},e.prototype.resize=function(t){var n=this,o=t.width,i=t.height,a=t.deltaX,s=t.deltaY;this.move(a/2,s/2);var d=St(this.points,function(l){var u=Be(l,2),f=u[0],c=u[1];return[f*o/n.width,c*i/n.height]});return this.points=d,this.properties.points=d,this.getData()},Ie([E],e.prototype,"points",void 0),Ie([F],e.prototype,"pointsPosition",null),Ie([F],e.prototype,"width",null),Ie([F],e.prototype,"height",null),e}(Ct),aa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),he=function(){return he=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Tr=function(r){aa(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.RECT_NODE,o.radius=0,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.width,o=t.height,i=t.radius;ht(n)||(this.width=n),ht(o)||(this.height=o),ht(i)||(this.radius=i)},e.prototype.getDefaultAnchor=function(){var t=this,n=t.x,o=t.y,i=t.width,a=t.height;return[{x:n,y:o-a/2,id:"".concat(this.id,"_0")},{x:n+i/2,y:o,id:"".concat(this.id,"_1")},{x:n,y:o+a/2,id:"".concat(this.id,"_2")},{x:n-i/2,y:o,id:"".concat(this.id,"_3")}]},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.rect,o=this.properties.style,i=o===void 0?{}:o;return he(he(he({},t),C(n)),C(i))},sa([E],e.prototype,"radius",void 0),e}(Ct),da=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ye=function(){return ye=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},la=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},ua=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ca={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,allowRotate:!1,allowResize:!1,nodeSelectedOutline:!0,textEdit:!1,nodeTextEdit:!1,edgeTextEdit:!1,textDraggable:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},Xe=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","snapGrid","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustEdgeStart","adjustEdgeEnd","adjustNodePosition","hideAnchors","allowRotate","allowResize","autoExpand","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","textEdit","nodeTextEdit","edgeTextEdit","textDraggable","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","textMode","nodeTextMode","edgeTextMode","nodeTextMultiple","edgeTextMultiple","nodeTextVertical","edgeTextVertical"],pa=function(){function r(e){this.isSilentMode=!1,this.stopZoomGraph=!1,this.stopMoveGraph=!1,this.stopScrollGraph=!1,this.snapGrid=!1,this.textMode=st.TEXT,this.textEdit=!0,this.textDraggable=!1,this.nodeTextEdit=!0,this.nodeTextDraggable=!1,this.nodeTextMultiple=!1,this.nodeTextVertical=!1,this.nodeTextMode=st.TEXT,this.edgeTextMode=st.TEXT,this.edgeTextEdit=!0,this.edgeTextDraggable=!1,this.edgeTextMultiple=!1,this.edgeTextVertical=!1,this.hideAnchors=!1,this.allowRotate=!1,this.allowResize=!1,this.hoverOutline=!0,this.nodeSelectedOutline=!0,this.adjustNodePosition=!0,this.autoExpand=!1,this.adjustEdge=!0,this.adjustEdgeMiddle=!1,this.adjustEdgeStartAndEnd=!1,this.adjustEdgeStart=!1,this.adjustEdgeEnd=!1,this.edgeSelectedOutline=!0,this.multipleSelectKey="",k(this,this.computeConfig(e))}return r.prototype.updateEditConfig=function(e){var t=this.computeConfig(e);k(this,t)},r.prototype.computeConfig=function(e){var t=e.isSilentMode,n=e.textDraggable,o=e.textMode,i=e.textEdit,a=e.adjustEdgeStartAndEnd,s={};if(t===!1&&k(s,this.stagedConfig),t===!0&&t!==this.isSilentMode){var d=Kt(ca,Xe);this.stagedConfig=Kt(this,Xe),k(s,d)}Qt(i)||k(s,{nodeTextEdit:i,edgeTextEdit:i}),Qt(n)||k(s,{nodeTextDraggable:n,edgeTextDraggable:n}),o&&k(s,{nodeTextMode:o,edgeTextMode:o}),_n(a)&&k(s,{adjustEdgeStart:a,adjustEdgeEnd:a});var l=Kt(e,Xe);return k(s,l)},r.prototype.updateTextMode=function(e){this.textMode=e,this.edgeTextMode=e,this.nodeTextMode=e},r.prototype.getConfig=function(){return Kt(this,Xe)},B([E],r.prototype,"isSilentMode",void 0),B([E],r.prototype,"stopZoomGraph",void 0),B([E],r.prototype,"stopMoveGraph",void 0),B([E],r.prototype,"stopScrollGraph",void 0),B([E],r.prototype,"snapGrid",void 0),B([E],r.prototype,"textMode",void 0),B([E],r.prototype,"textEdit",void 0),B([E],r.prototype,"textDraggable",void 0),B([E],r.prototype,"nodeTextEdit",void 0),B([E],r.prototype,"nodeTextDraggable",void 0),B([E],r.prototype,"nodeTextMultiple",void 0),B([E],r.prototype,"nodeTextVertical",void 0),B([E],r.prototype,"nodeTextMode",void 0),B([E],r.prototype,"edgeTextMode",void 0),B([E],r.prototype,"edgeTextEdit",void 0),B([E],r.prototype,"edgeTextDraggable",void 0),B([E],r.prototype,"edgeTextMultiple",void 0),B([E],r.prototype,"edgeTextVertical",void 0),B([E],r.prototype,"hideAnchors",void 0),B([E],r.prototype,"allowRotate",void 0),B([E],r.prototype,"allowResize",void 0),B([E],r.prototype,"hoverOutline",void 0),B([E],r.prototype,"nodeSelectedOutline",void 0),B([E],r.prototype,"adjustNodePosition",void 0),B([E],r.prototype,"autoExpand",void 0),B([E],r.prototype,"adjustEdge",void 0),B([E],r.prototype,"adjustEdgeMiddle",void 0),B([E],r.prototype,"adjustEdgeStartAndEnd",void 0),B([E],r.prototype,"adjustEdgeStart",void 0),B([E],r.prototype,"adjustEdgeEnd",void 0),B([E],r.prototype,"edgeSelectedOutline",void 0),B([m],r.prototype,"updateEditConfig",null),B([m],r.prototype,"updateTextMode",null),r}(),ha="*",ya=function(){function r(){this._events={}}return r.prototype.on=function(e,t,n){var o=this;e==null||e.split(",").forEach(function(i){i=i.trim(),o._events[i]||(o._events[i]=[]),o._events[i].push({callback:t,once:!!n})})},r.prototype.once=function(e,t){var n=this;e==null||e.split(",").forEach(function(o){o=o.trim(),n.on(o,t,!0)})},r.prototype.emit=function(e,t){var n=this;e==null||e.split(",").forEach(function(o){var i=n._events[o]||[],a=n._events[ha]||[],s=function(d){for(var l=d.length,u=0;u=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},_a=function(r){ga(e,r);function e(t){var n=r.call(this)||this;n.stepScrollX=0,n.stepScrollY=0,n.onDragging=function(s){var d=s.deltaX,l=s.deltaY;n.setState({isDragging:!0});var u=n.props.graphModel,f=u.transformModel,c=u.editConfigModel;c.stopMoveGraph!==!0&&f.translate(d,l)},n.onDragEnd=function(){n.setState({isDragging:!1})},n.zoomHandler=function(s){var d=n.props,l=d.graphModel,u=l.editConfigModel,f=l.transformModel,c=l.gridSize,h=d.graphModel,g=s.deltaX,p=s.deltaY,v=u.stopScrollGraph,y=u.stopZoomGraph;if(!v&&!s.ctrlKey&&!s.metaKey){if(s.preventDefault(),n.stepScrollX+=g,n.stepScrollY+=p,Math.abs(n.stepScrollX)>=c){var _=n.stepScrollX%c,M=n.stepScrollX-_;f.translate(-M*f.SCALE_X,0),n.stepScrollX=_}if(Math.abs(n.stepScrollY)>=c){var S=n.stepScrollY%c,O=n.stepScrollY-S;f.translate(0,-O*f.SCALE_Y),n.stepScrollY=S}return}if(!y){s.preventDefault();var w=h.getPointByClient({x:s.clientX,y:s.clientY}),A=w.canvasOverlayPosition,b=A.x,R=A.y;f.zoom(s.deltaY<0,[b,R])}},n.clickHandler=function(s){var d=s.target;if(d.getAttribute("name")==="canvas-overlay"){var l=n.props.graphModel,u=l.selectElements;u.size>0&&l.clearSelectElements(),l.eventCenter.emit(T.BLANK_CLICK,{e:s})}},n.handleContextMenu=function(s){var d=s.target;if(d.getAttribute("name")==="canvas-overlay"){s.preventDefault();var l=n.props.graphModel,u=l.getPointByClient({x:s.clientX,y:s.clientY});l.eventCenter.emit(T.BLANK_CONTEXTMENU,{e:s,position:u})}},n.mouseDownHandler=function(s){var d=n.props.graphModel,l=d.eventCenter,u=d.editConfigModel,f=d.transformModel.SCALE_X,c=d.gridSize,h=u.adjustEdge,g=u.adjustNodePosition,p=u.stopMoveGraph,v=s.target,y=!h&&!g;(v.getAttribute("name")==="canvas-overlay"||y)&&(p!==!0?(n.stepDrag.setStep(c*f),n.stepDrag.handleMouseDown(s)):l.emit(T.BLANK_MOUSEDOWN,{e:s}),n.clickHandler(s))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter;return n.stepDrag=new Mt({onDragging:n.onDragging,onDragEnd:n.onDragEnd,step:i,eventType:"BLANK",isStopPropagation:!1,eventCenter:a,model:void 0}),n.state={isDragging:!1},n}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,n=t.getTransformStyle().transform,o=this.props,i=o.children,a=o.dnd,s=this.state.isDragging;return x("svg",bn({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:s?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},a.eventMap(),{children:x("g",{transform:n,children:i})}))},e=va([ot],e),e}(K),uo=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),we=function(){return we=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},xa=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Cr=function(r){uo(e,r);function e(){var t=r.call(this)||this;return t.onDragging=function(n){var o=n.event,i=t.props,a=i.graphModel,s=i.bezierModel,d=i.type,l=a.getPointByClient({x:o.clientX,y:o.clientY}).canvasOverlayPosition,u=l.x,f=l.y;s.updateAdjustAnchor({x:u,y:f},d),a.eventCenter.emit(T.EDGE_ADJUST,{data:s.getData()})},t.onDragEnd=function(){var n=t.props.bezierModel;n.isDragging=!1},t.dragHandler=new Mt({onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.render=function(){var t=this,n=this.props.position,o=n.x,i=n.y,a=this.props.bezierModel,s=a.getEdgeStyle().adjustAnchor;return x(ne,we({className:"lf-bezier-adjust-anchor",x:o,y:i},s,{onMouseDown:function(d){t.dragHandler.handleMouseDown(d)}}))},e}(K),Ea=function(r){uo(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getBezierAdjust=function(t,n){var o=t.path,i=t.id,a=$n(o),s=xa(a,4),d=s[0],l=s[1],u=s[2],f=s[3],c=t.getEdgeStyle().adjustLine,h=[];return h.push(x(ee,we({x1:d.x,y1:d.y,x2:l.x,y2:l.y},c))),h.push(x(Cr,{position:l,bezierModel:t,graphModel:n,type:"sNext"},"".concat(i,"_ePre"))),h.push(x(ee,we({x1:f.x,y1:f.y,x2:u.x,y2:u.y},c))),h.push(x(Cr,{position:u,bezierModel:t,graphModel:n,type:"ePre"},"".concat(i,"_sNext"))),h},e.prototype.selectedBezierEdge=function(){for(var t=this.props.graphModel,n=t.edges,o=[],i=0;i=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Sa=function(r){Ma(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.background;return x("div",{className:"lf-background",children:x("div",{style:_o(t)?t:{},className:"lf-background-area"})})},e=Oa([ot],e),e}(K),wa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Aa=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},qe=function(r){wa(e,r);function e(t){var n=r.call(this,t)||this;return n.id=Yt(),n.gridOptions=n.props.graphModel.grid,n}return e.prototype.renderDot=function(){var t=this.gridOptions,n=t.config,o=t.size,i=o===void 0?1:o,a=t.visible,s=n??{},d=s.color,l=s.thickness,u=l===void 0?2:l,f=Math.min(Math.max(2,u),i/4),c=a?1:0;return x("g",{fill:d,opacity:c,children:[x("circle",{cx:0,cy:0,r:f/2}),x("circle",{cx:0,cy:i,r:f/2}),x("circle",{cx:i,cy:0,r:f/2}),x("circle",{cx:i,cy:i,r:f/2})]})},e.prototype.renderMesh=function(){var t=this.gridOptions,n=t.config,o=t.size,i=o===void 0?1:o,a=t.visible,s=n??{},d=s.color,l=s.thickness,u=l===void 0?1:l,f=Math.min(Math.max(1,u),i/2),c="M 0 0 H ".concat(i," V ").concat(i," H 0 Z"),h=a?1:0;return x("path",{d:c,stroke:d,strokeWidth:f/2,opacity:h,fill:"transparent"})},e.prototype.render=function(){var t=this.props.graphModel.transformModel,n=this.gridOptions,o=n.type,i=n.size,a=i===void 0?1:i,s=t.SCALE_X,d=t.SKEW_Y,l=t.SKEW_X,u=t.SCALE_Y,f=t.TRANSLATE_X,c=t.TRANSLATE_Y,h=[s,d,l,u,f,c].join(","),g="matrix(".concat(h,")");return x("div",{className:"lf-grid",children:x("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",children:[x("defs",{children:x("pattern",{id:this.id,patternUnits:"userSpaceOnUse",patternTransform:g,x:"0",y:"0",width:a,height:a,children:[o==="dot"&&this.renderDot(),o==="mesh"&&this.renderMesh()]})}),x("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})]})})},e=Aa([ot],e),e}(K);(function(r){r.defaultProps={size:Io,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}};function e(t){var n=C(r.defaultProps);return typeof t=="number"?k(n,{size:t}):typeof t=="boolean"?k(n,{visible:t}):k(n,t)}r.getGridOptions=e})(qe||(qe={}));var Pa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ta=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Da=function(r){Pa(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,n=t.getTransformStyle().transform,o=this.props.children;return x("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay",children:x("g",{transform:n,children:o})})},e=Ta([ot],e),e}(K),Na=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),wt=function(){return wt=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ca=function(r){Na(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getNodesOutline=function(){var t=this.props.graphModel,n=t.nodes,o=t.editConfigModel,i=o.hoverOutline,a=o.nodeSelectedOutline,s=[];return n.forEach(function(d){if(d.isHovered||d.isSelected){var l=d.isHovered,u=d.isSelected,f=d.x,c=d.y,h=d.width,g=d.height;if(a&&u||i&&l){var p=d.getOutlineStyle(),v={};if(Object.keys(p).forEach(function(_){_!=="hover"&&(v[_]=p[_])}),l){var y=p.hover;v=wt(wt({},v),y)}s.push(x(Et,wt({transform:d.transform,className:"lf-outline-node",x:f,y:c,width:h+10,height:g+10},v)))}}}),s},e.prototype.getEdgeOutline=function(){for(var t=this.props.graphModel,n=t.edges,o=t.editConfigModel,i=o.edgeSelectedOutline,a=o.hoverOutline,s=[],d=0;d=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ra=function(r){La(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.snaplineModel,n=t??{},o=n.position,i=n.isShowHorizontal,a=n.isShowVertical,s=t==null?void 0:t.getStyle(),d=o??{},l=d.x,u=l===void 0?0:l,f=d.y,c=f===void 0?0:f,h=At(At({x1:-1e5,y1:c,x2:1e5,y2:c},s),{stroke:i?s==null?void 0:s.stroke:"none"}),g=At(At({x1:u,y1:-1e5,x2:u,y2:1e5},s),{stroke:a?s==null?void 0:s.stroke:"none"});return x("g",{className:"lf-snapline",children:[x(ee,At({},h)),x(ee,At({},g))]})},e=ja([ot],e),e}(K),Ia=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ba=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Xa=function(r){Ia(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){this.triggerToolRender()},e.prototype.componentDidUpdate=function(){this.triggerToolRender()},e.prototype.getTools=function(){var t=this.props,n=t.tool,o=t.graphModel,i=o.textEditElement,a=n.getTools(),s=a.map(function(d){return Ur(d,{textEditElement:i,graphModel:o,lf:n.instance})});return n.components=s,s},e.prototype.triggerToolRender=function(){var t=this.props,n=t.tool,o=t.graphModel,i=document.querySelector("#ToolOverlay_".concat(o.flowId)),a=n.getInstance();a.components.forEach(function(s){return s(a,i)}),a.components=[]},e.prototype.render=function(){var t=this.props.graphModel;return x("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(t.flowId),children:this.getTools()})},e=Ba([ot],e),e}(K),Pt=function(){return Pt=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ya=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},J=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},it=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ka=function(){function r(e){this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=e}return r.prototype.getStyle=function(){return Bt({},this.graphModel.theme.snapline)},r.prototype.getCenterSnapLine=function(e,t){for(var n=e.x,o=e.y,i=!1,a=!1,s=0;s=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Zt=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},za={false:[-1/0,-1/0,1/0,1/0],true:[-1/0,-1/0,1/0,1/0],vertical:[-1/0,0,1/0,0],horizontal:[0,-1/0,0,1/0]},Ga=function(){function r(e,t){this.MINI_SCALE_SIZE=.2,this.MAX_SCALE_SIZE=16,this.SCALE_X=1,this.SKEW_Y=0,this.SKEW_X=0,this.SCALE_Y=1,this.TRANSLATE_X=0,this.TRANSLATE_Y=0,this.ZOOM_SIZE=.04,this.translateLimitMinX=-1/0,this.translateLimitMinY=-1/0,this.translateLimitMaxX=1/0,this.translateLimitMaxY=1/0,this.eventCenter=e;var n=t.stopMoveGraph,o=n===void 0?!1:n;this.updateTranslateLimits(o)}return r.prototype.setZoomMiniSize=function(e){this.MINI_SCALE_SIZE=e},r.prototype.setZoomMaxSize=function(e){this.MAX_SCALE_SIZE=e},r.prototype.HtmlPointToCanvasPoint=function(e){var t=Zt(e,2),n=t[0],o=t[1];return[(n-this.TRANSLATE_X)/this.SCALE_X,(o-this.TRANSLATE_Y)/this.SCALE_Y]},r.prototype.CanvasPointToHtmlPoint=function(e){var t=Zt(e,2),n=t[0],o=t[1];return[n*this.SCALE_X+this.TRANSLATE_X,o*this.SCALE_Y+this.TRANSLATE_Y]},r.prototype.moveCanvasPointByHtml=function(e,t,n){var o=Zt(e,2),i=o[0],a=o[1];return[i+t/this.SCALE_X,a+n/this.SCALE_Y]},r.prototype.fixDeltaXY=function(e,t){return[e/this.SCALE_X,t/this.SCALE_Y]},r.prototype.getTransformStyle=function(){var e=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(e,")")}},r.prototype.zoom=function(e,t){e===void 0&&(e=!1);var n=this.SCALE_X,o=this.SCALE_Y;return typeof e=="number"?(n=e,o=e):e?(n+=this.ZOOM_SIZE,o+=this.ZOOM_SIZE):(n-=this.ZOOM_SIZE,o-=this.ZOOM_SIZE),nthis.MAX_SCALE_SIZE?"".concat(this.SCALE_X*100,"%"):(t&&(this.TRANSLATE_X-=(n-this.SCALE_X)*t[0],this.TRANSLATE_Y-=(o-this.SCALE_Y)*t[1]),this.SCALE_X=n,this.SCALE_Y=o,this.emitGraphTransform("zoom"),"".concat(this.SCALE_X*100,"%"))},r.prototype.emitGraphTransform=function(e){this.eventCenter.emit(T.GRAPH_TRANSFORM,{type:e,transform:{SCALE_X:this.SCALE_X,SKEW_Y:this.SKEW_Y,SKEW_X:this.SKEW_X,SCALE_Y:this.SCALE_Y,TRANSLATE_X:this.TRANSLATE_X,TRANSLATE_Y:this.TRANSLATE_Y}})},r.prototype.resetZoom=function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform("resetZoom")},r.prototype.translate=function(e,t){this.TRANSLATE_X+e<=this.translateLimitMaxX&&this.TRANSLATE_X+e>=this.translateLimitMinX&&(this.TRANSLATE_X+=e),this.TRANSLATE_Y+t<=this.translateLimitMaxY&&this.TRANSLATE_Y+t>=this.translateLimitMinY&&(this.TRANSLATE_Y+=t),this.emitGraphTransform("translate")},r.prototype.focusOn=function(e,t,n,o){var i=Zt(this.CanvasPointToHtmlPoint([e,t]),2),a=i[0],s=i[1],d=Zt([n/2-a,o/2-s],2),l=d[0],u=d[1];this.TRANSLATE_X+=l,this.TRANSLATE_Y+=u,this.emitGraphTransform("focusOn")},r.prototype.updateTranslateLimits=function(e){var t;t=Zt(Array.isArray(e)&&e.length===4?e:za[e.toString()],4),this.translateLimitMinX=t[0],this.translateLimitMinY=t[1],this.translateLimitMaxX=t[2],this.translateLimitMaxY=t[3]},ut([E],r.prototype,"SCALE_X",void 0),ut([E],r.prototype,"SKEW_Y",void 0),ut([E],r.prototype,"SKEW_X",void 0),ut([E],r.prototype,"SCALE_Y",void 0),ut([E],r.prototype,"TRANSLATE_X",void 0),ut([E],r.prototype,"TRANSLATE_Y",void 0),ut([E],r.prototype,"ZOOM_SIZE",void 0),ut([m],r.prototype,"zoom",null),ut([m],r.prototype,"resetZoom",null),ut([m],r.prototype,"translate",null),ut([m],r.prototype,"focusOn",null),r}(),Fa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),$a=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ua=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Wa=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},qa=function(r){Va(e,r);function e(){var t=r.call(this)||this;return t.onDragStart=function(n){var o=n.event,i=t.props,a=i.anchorData,s=i.nodeModel,d=i.graphModel;d.selectNodeById(s.id),s.autoToFront&&d.toFront(s.id),d.eventCenter.emit(T.ANCHOR_DRAGSTART,{data:a,e:o,nodeModel:s}),t.setState({startX:a.x,startY:a.y,endX:a.x,endY:a.y})},t.onDragging=function(n){var o=n.event,i=t.props,a=i.graphModel,s=i.nodeModel,d=i.anchorData,l=a.transformModel,u=a.eventCenter,f=a.width,c=a.height,h=a.editConfigModel,g=h.autoExpand,p=h.stopMoveGraph;if(o){var v=o.clientX,y=o.clientY,_=a.getPointByClient({x:v,y}),M=_.domOverlayPosition,S=M.x,O=M.y,w=_.canvasOverlayPosition,A=w.x,b=w.y;t.t&&Ke(t.t);var R=[],L=10;S<10?R=[L,0]:S+10>f?R=[-10,0]:O<10?R=[0,L]:O+10>c&&(R=[0,-10]),t.setState({endX:A,endY:b,dragging:!0}),t.moveAnchorEnd(A,b),R.length>0&&!p&&g&&(t.t=oo(function(){var z=Ka(R,2),I=z[0],U=z[1];l.translate(I,U);var Y=t.state,Z=Y.endX,dt=Y.endY;t.setState({endX:Z-I,endY:dt-U}),t.moveAnchorEnd(Z-I,dt-U)})),u.emit(T.ANCHOR_DRAG,{data:d,e:o,nodeModel:s})}},t.onDragEnd=function(n){var o=n.event;t.t&&Ke(t.t);var i=t.checkEnd(o);t.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),t.sourceRuleResults.clear(),t.targetRuleResults.clear();var a=t.props,s=a.graphModel,d=a.nodeModel,l=a.anchorData;s.eventCenter.emit(T.ANCHOR_DRAGEND,{data:l,e:o,nodeModel:d,edgeModel:i??void 0})},t.checkEnd=function(n){var o,i=t.props,a=i.graphModel,s=i.nodeModel,d=i.anchorData,l=d.x,u=d.y,f=d.id,c=t.state,h=c.endX,g=c.endY,p=c.dragging,v=Ze({x:h,y:g},a);if(t.preTargetNode&&t.preTargetNode.state!==X.DEFAULT&&t.preTargetNode.setElementState(X.DEFAULT),!!p&&v&&v.node){var y=v.node,_=v.anchor.id,M="".concat(s.id,"_").concat(y.id,"_").concat(_,"_").concat(f),S=t.sourceRuleResults.get(M)||{},O=S.isAllPass,w=S.msg,A=t.targetRuleResults.get(M)||{},b=A.isAllPass,R=A.msg;if(O&&b){y.setElementState(X.DEFAULT);var L=a.getNodeModelById(v.node.id),z=(o=a.edgeGenerator)===null||o===void 0?void 0:o.call(a,s.getData(),L==null?void 0:L.getData()),I=a.addEdge(_t(_t({},z),{sourceNodeId:s.id,sourceAnchorId:f,startPoint:{x:l,y:u},targetNodeId:v.node.id,targetAnchorId:v.anchor.id,endPoint:{x:v.anchor.x,y:v.anchor.y}})),U=t.props.anchorData;return a.eventCenter.emit(T.ANCHOR_DROP,{data:U,e:n,nodeModel:s,edgeModel:I}),I}var Y=y.getData();return a.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:Y,msg:R||w||"不允许添加连线"}),null}},t.sourceRuleResults=new Map,t.targetRuleResults=new Map,t.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},t.dragHandler=new Mt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.getAnchorShape=function(){var t=this.props,n=t.anchorData,o=t.style,i=t.node,a=i.getAnchorShape(n);if(a)return a;var s=n.x,d=n.y,l=_t(_t({},o),o==null?void 0:o.hover);return x("g",{children:[x(ne,_t({className:"lf-node-anchor-hover"},l,{x:s,y:d})),x(ne,_t({className:"lf-node-anchor"},o,{x:s,y:d}))]})},Object.defineProperty(e.prototype,"customTrajectory",{get:function(){var t=this.props.graphModel.customTrajectory;return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relateEdges",{get:function(){var t=this.props,n=t.graphModel,o=n.getAnchorIncomingEdge,i=n.getAnchorOutgoingEdge,a=t.anchorData.id;return{incomingEdgeList:o(a),outgoingEdgeList:i(a)}},enumerable:!1,configurable:!0}),e.prototype.moveAnchorEnd=function(t,n){var o,i,a=this.props,s=a.graphModel,d=a.nodeModel,l=a.anchorData,u=Ze({x:t,y:n},s);if(u){var f=u.node,c=u.anchor.id;if(this.preTargetNode&&this.preTargetNode!==u.node&&this.preTargetNode.setElementState(X.DEFAULT),l.id===c)return;this.preTargetNode=f;var h="".concat(d.id,"_").concat(f.id,"_").concat(c,"_").concat(l.id);if(!this.targetRuleResults.has(h)){var g=u.anchor,p=d.isAllowConnectedAsSource(f,l,g),v=f.isAllowConnectedAsTarget(d,l,g);this.sourceRuleResults.set(h,Ve(p)),this.targetRuleResults.set(h,Ve(v))}var y=((o=this.sourceRuleResults.get(h))!==null&&o!==void 0?o:{}).isAllPass,_=((i=this.targetRuleResults.get(h))!==null&&i!==void 0?i:{}).isAllPass;y&&_?f.setElementState(X.ALLOW_CONNECT):f.setElementState(X.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==X.DEFAULT&&this.preTargetNode.setElementState(X.DEFAULT)},e.prototype.isShowLine=function(){var t=this.state,n=t.startX,o=t.startY,i=t.endX,a=t.endY,s=yt(n,o,i,a);return s>10},e.prototype.render=function(){var t=this,n=this.state,o=n.startX,i=n.startY,a=n.endX,s=n.endY,d=this.props,l=d.anchorData.edgeAddable,u=d.edgeStyle;return x("g",{className:"lf-anchor",children:[x("g",{onMouseDown:function(f){l!==!1&&t.dragHandler.handleMouseDown(f)},children:this.getAnchorShape()}),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(_t({sourcePoint:{x:o,y:i},targetPoint:{x:a,y:s}},u)):x(ee,_t({x1:o,y1:i,x2:a,y2:s},u,{"pointer-events":"none"})))]})},e}(K),Ja=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Cn=function(){return Cn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},fo=function(r){ts(e,r);function e(t){var n=r.call(this)||this;n.mouseDownHandler=function(i){var a=n.props,s=a.draggable,d=a.model,l=a.graphModel,u=l.editConfigModel.nodeTextDraggable;(s??u)&&(i.stopPropagation(),n.stepperDrag.model=d,n.stepperDrag.handleMouseDown(i))},n.onDragging=function(i){var a=i.deltaX,s=i.deltaY,d=n.props,l=d.model,u=d.graphModel.transformModel;if(a||s){var f=es(u.fixDeltaXY(a,s),2),c=f[0],h=f[1];l.moveText(c,h)}},n.dbClickHandler=function(){var i=n.props,a=i.editable,s=i.graphModel.eventCenter,d=i.model;a&&d.setElementState(X.TEXT_EDIT),s.emit(T.TEXT_DBCLICK,{data:d.text,model:d})};var o=t.draggable;return n.stepperDrag=new Mt({onDragging:n.onDragging,step:1,eventType:"TEXT",isStopPropagation:o}),n}return e.prototype.getShape=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=n.text,s=a.value,d=a.x,l=a.y,u=a.editable,f=a.draggable,c={x:d,y:l,className:"",value:s},h=n.getTextStyle(),g=i.nodeTextDraggable||f;return x(io,Ln({},c,h,{className:To({"lf-element-text":u,"lf-text-draggable":!u&&g,"lf-text-disabled":!u&&!g}),model:n}))},e.prototype.render=function(){var t=this.props.model.text;if(t)return x("g",{onMouseDown:this.mouseDownHandler,onDblClick:this.dbClickHandler,children:this.getShape()})},e}(K),ns=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ft=function(){return ft=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},rs=function(r){ns(e,r);function e(t){var n=r.call(this,t)||this;return n.setHoverOn=function(){n.setState({isHovered:!0})},n.setHoverOff=function(){n.setState({isHovered:!1})},n.state={isHovered:!1},n}return e.prototype.getBackground=function(){var t=this.state.isHovered,n=this.props.model,o=n.text,i=n.getTextStyle(),a=i.background||{};if(t&&i.hover&&i.hover.background&&(a=ft(ft({},a),i.hover.background)),o!=null&&o.value&&(a==null?void 0:a.fill)!=="transparent"){var s=i.fontSize,d=i.textWidth,l=i.lineHeight,u=i.overflowMode,f=a.wrapPadding,c=o==null?void 0:o.value.split(/[\r\n]/g),h=c.length,g=o.x,p=o.y,v={};if(u==="autoWrap"&&d){var y=ro({rows:c,style:{fontSize:"".concat(s,"px"),width:"".concat(d,"px"),lineHeight:l,padding:f},rowsLength:h,className:"lf-get-text-height"});v=ft(ft({},a),{x:g,y:p,width:d,height:y})}else{var _=oi({rows:c,rowsLength:h,fontSize:s}),M=_.width,S=_.height;if(u==="ellipsis"&&(M=d,S=s+2),typeof a.wrapPadding=="string"){var O=a.wrapPadding.split(",").filter(function(rt){return rt.trim()}).map(function(rt){return parseFloat(rt.trim())});if(O.length>0&&O.length<=4){if(O.length===1){var w=Ye(O,1),A=w[0];O=[A,A,A,A]}else if(O.length===2){var b=Ye(O,2),R=b[0],L=b[1];O=[R,L,R,L]}else if(O.length===3){var z=Ye(O,3),I=z[0],L=z[1],U=z[2];O=[I,L,U,L]}var Y=Ye(O,4),Z=Y[0],dt=Y[1],jt=Y[2],Rt=Y[3];M+=dt+Rt,S+=Z+jt,g=g+(dt-Rt)/2,p=p+(jt-Z)/2}}v=ft(ft({},a),{x:g-1,y:p-1,width:M,height:S})}return x(Et,ft({},v))}return null},e.prototype.getShape=function(){var t=this.props.model,n=t.text,o=n.x,i=n.y,a=n.value;if(!a)return null;var s=t.getTextStyle(),d=ft({x:o,y:i,value:a,model:t,className:"lf-element-text"},s);return x("g",{className:"lf-line-text",onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,children:[this.getBackground(),x(io,ft({},d))]})},e}(fo),os=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Je=function(){return Je=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Lt=function(r){os(e,r);function e(t){var n=r.call(this)||this;n.onDragStart=function(d){var l=d.event,u=n.props,f=u.model,c=u.graphModel;if(l){var h=c.getPointByClient({x:l.clientX,y:l.clientY}).canvasOverlayPosition,g=h.x,p=h.y;n.moveOffset={dx:f.x-g,dy:f.y-p}}},n.onDragging=function(d){var l,u,f,c,h=d.event,g=n.props,p=g.model,v=g.graphModel,y=v.editConfigModel,_=y.stopMoveGraph,M=y.autoExpand,S=y.snapGrid,O=v.transformModel,w=v.selectNodes,A=v.width,b=v.height,R=v.gridSize;p.isDragging=!0;var L=h,z=L.clientX,I=L.clientY,U=v.getPointByClient({x:z,y:I}).canvasOverlayPosition,Y=U.x,Z=U.y,dt=He(O.CanvasPointToHtmlPoint([Y,Z]),2),jt=dt[0],Rt=dt[1];if(Y=Y+((u=(l=n.moveOffset)===null||l===void 0?void 0:l.dx)!==null&&u!==void 0?u:0),Z=Z+((c=(f=n.moveOffset)===null||f===void 0?void 0:f.dy)!==null&&c!==void 0?c:0),Y=te(Y,R,S),Z=te(Z,R,S),!A||!b){v.moveNode2Coordinate(p.id,Y,Z);return}var rt=jt<0||Rt<0||jt>A||Rt>b;if(!(M&&!_&&rt)){var gt=He(O.CanvasPointToHtmlPoint([Y-p.width/2,Z-p.height/2]),2),re=gt[0],an=gt[1],Ae=He(O.CanvasPointToHtmlPoint([Y+p.width/2,Z+p.height/2]),2),sn=Ae[0],co=Ae[1],Pe=Math.max(R,20),zt=[];re<0?zt=[Pe,0]:sn>v.width?zt=[-Pe,0]:an<0?zt=[0,Pe]:co>v.height&&(zt=[0,-Pe]),n.t&&Ke(n.t),p.transform=new nn(-Y,-Z).rotate(p.rotate).translate(Y,Z).toString();var Te=w.map(function(De){return De.id});Te.indexOf(p.id)===-1&&(Te=[p.id]),zt.length>0&&!_&&M?n.t=oo(function(){var De=He(zt,2),Gt=De[0],Ft=De[1];O.translate(Gt??0,Ft??0);var po=-(Gt??0)/O.SCALE_X,ho=-(Ft??0)/O.SCALE_X;v.moveNodes(Te,po,ho)}):v.moveNodes(Te,Y-p.x,Z-p.y)}},n.onDragEnd=function(){n.t&&Ke(n.t);var d=n.props.model;d.isDragging=!1},n.onMouseOut=function(d){jo()&&n.setHoverOff(d)},n.handleMouseUp=function(){var d=n.props.model;n.mouseUpDrag=d.isDragging},n.handleClick=function(d){var l=n.mouseUpDrag===!1;if(n.startTime){var u=n.props,f=u.model,c=u.graphModel;if(l){var h=f.getData(),g=c.getPointByClient({x:d.clientX,y:d.clientY}),p={data:h,e:d,position:g,isSelected:!1,isMultiple:!1},v=d.button===2,y=d.detail===2;if(!v){var _=c.editConfigModel,M=eo(d,_);p.isMultiple=M,f.isSelected&&!y&&M?(p.isSelected=!1,f.setSelected(!1)):(c.selectNodeById(f.id,M),p.isSelected=!0,_.isSilentMode||n.toFront()),y?(_.nodeTextEdit&&f.text.editable&&_.textMode===st.TEXT&&(f.setSelected(!1),c.setElementStateById(f.id,X.TEXT_EDIT)),c.eventCenter.emit(T.NODE_DBCLICK,p)):(c.eventCenter.emit(T.ELEMENT_CLICK,p),c.eventCenter.emit(T.NODE_CLICK,p))}}}},n.handleContextMenu=function(d){d.preventDefault();var l=n.props,u=l.model,f=l.graphModel,c=f.editConfigModel,h=u.getData(),g=f.getPointByClient({x:d.clientX,y:d.clientY});f.setElementStateById(u.id,X.SHOW_MENU,g.domOverlayPosition),u.isSelected||f.selectNodeById(u.id),f.eventCenter.emit(T.NODE_CONTEXTMENU,{data:h,e:d,position:g}),c.isSilentMode||n.toFront()},n.handleMouseDown=function(d){var l=n.props,u=l.model,f=l.graphModel;n.startTime=new Date().getTime();var c=f.editConfigModel;c.adjustNodePosition&&u.draggable&&n.stepDrag&&n.stepDrag.handleMouseDown(d)},n.handleFocus=function(){var d=n.props,l=d.model,u=d.graphModel;u.eventCenter.emit(T.NODE_FOCUS,{data:l.getData()})},n.handleBlur=function(){var d=n.props,l=d.model,u=d.graphModel;u.eventCenter.emit(T.NODE_BLUR,{data:l.getData()})},n.setHoverOn=function(d){var l=n.props,u=l.model,f=l.graphModel;if(!u.isHovered){var c=u.getData();u.setHovered(!0),f.eventCenter.emit(T.NODE_MOUSEENTER,{data:c,e:d})}},n.setHoverOff=function(d){var l=n.props,u=l.model,f=l.graphModel,c=u.getData();u.isHovered&&(u.setHovered(!1),f.eventCenter.emit(T.NODE_MOUSELEAVE,{data:c,e:d}))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter,s=t.model;return n.stepDrag=new Mt({onDragStart:n.onDragStart,onDragging:n.onDragging,onDragEnd:n.onDragEnd,step:i,eventType:"NODE",isStopPropagation:!1,eventCenter:a,model:s}),n.modelDisposer=Ao(function(){return n.props},function(d){d&&d.model&&n.stepDrag.setModel(d.model)}),n}return e.prototype.componentWillUnmount=function(){this.modelDisposer&&this.modelDisposer(),this.render.$mobx&&this.render.$mobx.dispose()},e.prototype.componentDidMount=function(){},e.prototype.componentDidUpdate=function(){},e.prototype.getAnchorShape=function(t){return null},e.prototype.getAnchors=function(){var t=this,n=this.props,o=n.model,i=n.graphModel,a=o.isSelected,s=o.isHitable,d=o.isDragging,l=o.isShowAnchor;return s&&(a||l)&&!d?St(o.anchors,function(u,f){var c=o.getAnchorLineStyle(u),h=o.getAnchorStyle(u);return x(qa,{anchorData:u,node:t,style:h,edgeStyle:c,anchorIndex:f,nodeModel:o,graphModel:i,setHoverOff:t.setHoverOff})}):[]},e.prototype.getRotateControl=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowRotate,d=n.isSelected,l=n.isHitable,u=n.rotatable,f=n.isHovered,c=s&&u,h=n.getRotateControlStyle();if(!a&&l&&(d||f)&&c)return x(Qa,{graphModel:o,nodeModel:n,eventCenter:o.eventCenter,style:h})},e.prototype.getResizeControl=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowResize,d=n.isSelected,l=n.isHitable,u=n.resizable,f=n.isHovered,c=s&&u,h=n.getResizeControlStyle();return!a&&l&&(d||f)&&c?x(Pi,{style:h,model:n,graphModel:o}):null},e.prototype.getText=function(){var t,n=this.props,o=n.model,i=n.graphModel,a=i.editConfigModel;if(a.nodeTextMode!==st.TEXT||o.state===X.TEXT_EDIT)return null;if(o.text){var s=!1;return a.nodeTextDraggable&&o.text.draggable&&(s=!0),x(fo,{editable:a.nodeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getStateClassName=function(){var t=this.props.model,n=t.state,o=t.isDragging,i=t.isSelected,a="lf-node";switch(n){case X.ALLOW_CONNECT:a+=" lf-node-allow";break;case X.NOT_ALLOW_CONNECT:a+=" lf-node-not-allow";break;default:a+=" lf-node-default";break}return o&&(a+=" lf-dragging"),i&&(a+=" lf-node-selected"),a},e.prototype.toFront=function(){var t=this.props,n=t.model,o=t.graphModel;n.autoToFront&&o.toFront(n.id)},e.prototype.render=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.hideAnchors,s=i.adjustNodePosition,d=i.allowRotate,l=i.allowResize,u=o.gridSize,f=o.transformModel.SCALE_X,c=n.isHitable,h=n.draggable,g=n.transform,p=n.getOuterGAttributes(),v=p.className,y=v===void 0?"":v,_=is(p,["className"]),M=x("g",{className:"lf-node-content",children:[x("g",{transform:g,children:[this.getShape(),this.getText(),d&&this.getRotateControl(),l&&this.getResizeControl()]}),!a&&this.getAnchors()]}),S;return c?(s&&h&&this.stepDrag.setStep(u*f),S=x("g",Je({className:"".concat(this.getStateClassName()," ").concat(y),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onMouseEnter:this.setHoverOn,onMouseOver:this.setHoverOn,onMouseLeave:this.setHoverOff,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu,onFocus:this.handleFocus,onBlur:this.handleBlur},_,{children:M}))):S=x("g",Je({className:"".concat(this.getStateClassName()," ").concat(y)},_,{children:M})),S},e.isObserved=!1,e}(K),as=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),jn=function(){return jn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},hs=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},xt;(function(r){r.SOURCE="SOURCE",r.TARGET="TARGET"})(xt||(xt={}));var Hr=function(r){ys(e,r);function e(t){var n=r.call(this)||this;n.handleMouseDown=function(d){n.stepDrag&&n.stepDrag.handleMouseDown(d)},n.onDragStart=function(){var d=n.props,l=d.x,u=d.y,f=d.edgeModel,c=f.startPoint,h=f.endPoint,g=f.pointsList;n.oldEdge={startPoint:c,endPoint:h,pointsList:g},n.setState({endX:l,endY:u,dragging:!0})},n.onDragging=function(d){var l=d.deltaX,u=d.deltaY,f=n.state,c=f.endX,h=f.endY,g=n.props,p=g.graphModel,v=g.type,y=p.transformModel,_=p.editConfigModel,M=vs(y.moveCanvasPointByHtml([c,h],l,u),2),S=M[0],O=M[1];n.setState({endX:S,endY:O,dragging:!0});var w=n.props.edgeModel,A=Ze({x:c,y:h},p);if(A&&A.node&&n.isAllowAdjust(A).pass){var b=w.startPoint,R=w.endPoint,L=w.sourceNode,z=w.targetNode,I=v===xt.SOURCE?{startPoint:{x:A.anchor.x,y:A.anchor.y},endPoint:{x:R.x,y:R.y},sourceNode:A.node,targetNode:z}:{startPoint:{x:b.x,y:b.y},endPoint:{x:A.anchor.x,y:A.anchor.y},sourceNode:L,targetNode:A.node};w.updateAfterAdjustStartAndEnd(I)}else v===xt.SOURCE?w.updateStartPoint({x:S,y:O}):w.updateEndPoint({x:S,y:O});w.text.value&&_.adjustEdge&&w.setText(Object.assign({},w.text,w.textPosition))},n.onDragEnd=function(d){var l,u,f,c=d.event;try{n.setState({dragging:!1});var h=n.props,g=h.graphModel,p=h.edgeModel,v=h.type,y=n.state,_=y.endX,M=y.endY,S=y.dragging,O=Ze({x:_,y:M},g);if(!S)return;var w=!1,A=void 0;if(O&&O.node){var b=n.isAllowAdjust(O),R=b.pass,L=b.msg,z=b.newTargetNode;if(R){var I=p.getData(),U=I.text,Y=I.sourceAnchorId,Z=Y===void 0?"":Y,dt=I.targetAnchorId,jt=dt===void 0?"":dt,Rt=gs(I,["text","sourceAnchorId","targetAnchorId"]);if(A=ct(ct({sourceAnchorId:Z,targetAnchorId:jt},Rt),{text:(U==null?void 0:U.value)||""}),v===xt.SOURCE){var rt=g.getNodeModelById(O.node.id),gt=g.getNodeModelById(p.targetNodeId),re=(l=g.edgeGenerator)===null||l===void 0?void 0:l.call(g,rt==null?void 0:rt.getData(),gt==null?void 0:gt.getData(),A);A=ct(ct({},re),{sourceNodeId:O.node.id,sourceAnchorId:O.anchor.id,startPoint:{x:O.anchor.x,y:O.anchor.y},targetNodeId:p.targetNodeId,endPoint:ct({},p.endPoint)}),p.sourceNodeId===O.node.id&&p.sourceAnchorId===O.anchor.id&&(w=!0)}else if(v===xt.TARGET){var rt=g.getNodeModelById(p.sourceNodeId),gt=g.getNodeModelById(O.node.id),re=(u=g.edgeGenerator)===null||u===void 0?void 0:u.call(g,rt==null?void 0:rt.getData(),gt==null?void 0:gt.getData(),A);A=ct(ct({},re),{sourceNodeId:p.sourceNodeId,startPoint:ct({},p.startPoint),targetNodeId:O.node.id,targetAnchorId:O.anchor.id,endPoint:{x:O.anchor.x,y:O.anchor.y}}),p.targetNodeId===O.node.id&&p.targetAnchorId===O.anchor.id&&(w=!0)}}else{w=!0;var an=z.getData();g.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:an,msg:L})}}else w=!0;if(w)n.recoveryEdge();else{var Ae=p.getData();g.deleteEdgeById(p.id);var sn=g.addEdge(ct({},A));g.eventCenter.emit(T.EDGE_EXCHANGE_NODE,{data:{newEdge:sn.getData(),oldEdge:Ae}})}(f=n.preTargetNode)===null||f===void 0||f.setElementState(X.DEFAULT)}finally{var g=n.props.graphModel;g.eventCenter.emit(T.ADJUST_POINT_DRAGEND,{e:c,data:n.stepDragData})}},n.recoveryEdge=function(){var d=n.props.edgeModel,l=n.oldEdge,u=l.startPoint,f=l.endPoint,c=l.pointsList;d.updateStartPoint(u),d.updateEndPoint(f),d.modelType!==j.LINE_EDGE&&(d.pointsList=c??[],d.initPoints())},n.getAdjustPointStyle=function(){var d=n.props.graphModel.theme,l=d.edgeAdjust;return l},n.state={dragging:!1,endX:0,endY:0},n.targetRuleResults=new Map,n.sourceRuleResults=new Map;var o=t.type,i=t.edgeModel,a=t.graphModel,s=a.eventCenter;return n.stepDragData={type:o,edgeData:i.getData()},n.stepDrag=new Mt({onDragStart:n.onDragStart,onDragging:n.onDragging,onDragEnd:n.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:s,data:n.stepDragData}),n}return e.prototype.isAllowAdjust=function(t){var n=this.props,o=n.edgeModel,i=o.id,a=o.sourceNode,s=o.targetNode,d=o.sourceAnchorId,l=o.targetAnchorId,u=n.type,f,c,h,g;if(u===xt.SOURCE?(f=t.node,c=s,h=t.anchor,g=s.getAnchorInfo(l)):(f=a,c=t.node,g=t.anchor,h=a.getAnchorInfo(d)),this.preTargetNode&&this.preTargetNode!==t.node&&this.preTargetNode.setElementState(X.DEFAULT),this.preTargetNode=t.node,g.id===h.id)return{pass:!1,msg:"",newTargetNode:c};var p="".concat(f.id,"_").concat(c.id,"_").concat(h.id,"_").concat(g.id);if(!this.targetRuleResults.has(p)){var v=f.isAllowConnectedAsSource(c,h,g,i),y=c.isAllowConnectedAsTarget(f,h,g,i);this.sourceRuleResults.set(p,Ve(v)),this.targetRuleResults.set(p,Ve(y))}var _=this.sourceRuleResults.get(p),M=_.isAllPass,S=_.msg,O=this.targetRuleResults.get(p),w=O.isAllPass,A=O.msg,b=M&&w?X.ALLOW_CONNECT:X.NOT_ALLOW_CONNECT;return u===xt.SOURCE?f.setElementState(b):c.setElementState(b),{pass:M&&w,msg:A||S,newTargetNode:c}},e.prototype.render=function(){var t=this.props,n=t.x,o=t.y,i=t.getAdjustPointShape,a=t.edgeModel,s=this.state.dragging;return x("g",{pointerEvents:s?"none":"",onMouseDown:this.handleMouseDown,children:s?"":i(n,o,a)})},e}(K),_s=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Yn=function(){return Yn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},on=function(r){ms(e,r);function e(){var t=r.call(this)||this;return t.textRef=Gn(),t.handleHover=function(n,o){var i=t.props,a=i.model,s=i.graphModel.eventCenter;a.setHovered(n);var d=n?T.EDGE_MOUSEENTER:T.EDGE_MOUSELEAVE,l=a.getData();s.emit(d,{data:l,e:o})},t.setHoverOn=function(n){var o=t.props.model.isHovered;o||(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOn(),t.handleHover(!0,n))},t.setHoverOff=function(n){var o=t.props.model.isHovered;o&&(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOff(),t.handleHover(!1,n))},t.handleContextMenu=function(n){n.preventDefault(),t.contextMenuTime=new Date().getTime(),t.clickTimer&&clearTimeout(t.clickTimer);var o=t.props,i=o.model,a=o.graphModel,s=a.editConfigModel,d=a.getPointByClient({x:n.clientX,y:n.clientY});a.setElementStateById(i.id,X.SHOW_MENU,d.domOverlayPosition),s.isSilentMode||t.toFront(),i.isSelected||a.selectEdgeById(i.id);var l=i==null?void 0:i.getData();a.eventCenter.emit(T.EDGE_CONTEXTMENU,{data:l,e:n,position:d})},t.handleMouseDown=function(n){n.stopPropagation(),t.startTime=new Date().getTime()},t.handleMouseUp=function(){var n=t.props.model;t.mouseUpDrag=n.isDragging},t.handleClick=function(n){if(t.startTime&&!t.mouseUpDrag){var o=n.button===2;if(!o){var i=n.detail===2,a=t.props,s=a.model,d=a.graphModel,l=s==null?void 0:s.getData(),u=d.getPointByClient({x:n.clientX,y:n.clientY});if(i){var f=d.editConfigModel,c=d.textEditElement,h=s.id,g=s.text,p=s.modelType;if(c&&c.id===h&&d.setElementStateById(h,X.DEFAULT),f.edgeTextEdit&&g.editable&&(s.setSelected(!1),d.setElementStateById(h,X.TEXT_EDIT)),p===j.POLYLINE_EDGE){var v=s,y=d.getPointByClient({x:n.x,y:n.y}).canvasOverlayPosition,_=y.x,M=y.y;v.dbClickPosition=to({x:_,y:M},v.points)}d.eventCenter.emit(T.EDGE_DBCLICK,{data:l,e:n,position:u})}else d.eventCenter.emit(T.ELEMENT_CLICK,{data:l,e:n,position:u}),d.eventCenter.emit(T.EDGE_CLICK,{data:l,e:n,position:u});var S=d.editConfigModel;d.selectEdgeById(s.id,eo(n,S)),S.isSilentMode||t.toFront()}}},t.handleFocus=function(){var n=t.props,o=n.model,i=n.graphModel;i.eventCenter.emit(T.EDGE_FOCUS,{data:o.getData()})},t.handleBlur=function(){var n=t.props,o=n.model,i=n.graphModel;i.eventCenter.emit(T.EDGE_BLUR,{data:o.getData()})},t}return e.prototype.getShape=function(){return x("g",{children:this.getEdge()})},e.prototype.getTextStyle=function(){},e.prototype.getText=function(){var t,n=this.props,o=n.model,i=n.graphModel,a=i.editConfigModel;if(a.edgeTextMode!==st.TEXT||o.state===X.TEXT_EDIT)return null;if(o.text){var s=!1;return a.edgeTextDraggable&&o.text.draggable&&(s=!0),x(rs,{ref:this.textRef,editable:a.edgeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getArrowInfo=function(){var t=this.props.model,n=t.startPoint,o=t.endPoint,i=t.isSelected,a=this.state.hover;return{start:n,end:o,hover:a,isSelected:i}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,n=t.startPoint,o=t.endPoint;return[n,o]},e.prototype.getArrowStyle=function(){return console.error("getArrowStyle is deprecated in 1.2.0, please use model.getArrowStyle"),null},e.prototype.getArrow=function(){var t=this.props.model,n=t.id,o=t.getArrowStyle(),i=o.refY,a=i===void 0?0:i,s=o.refX,d=s===void 0?2:s,l=xs(this.getLastTwoPoints(),2),u=l[0],f=l[1],c="auto";return u!==null&&f!==null&&(c=Fi(Gi({x:f.x-u.x,y:f.y-u.y,z:0}))),x("g",{children:x("defs",{children:[x("marker",{id:"marker-start-".concat(n),refX:-d,refY:a,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse",children:this.getStartArrow()}),x("marker",{id:"marker-end-".concat(n),refX:d,refY:a,overflow:"visible",orient:c,markerUnits:"userSpaceOnUse",children:this.getEndArrow()})]})})},e.prototype.getStartArrow=function(){return x("path",{})},e.prototype.getEndArrow=function(){var t=this.props.model,n=t.getArrowStyle(),o=n.stroke,i=n.strokeWidth,a=n.offset,s=n.verticalLength;return x("path",{stroke:o,fill:o,strokeWidth:i,transform:"rotate(180)",d:"M 0 0 L ".concat(a," -").concat(s," L ").concat(a," ").concat(s," Z")})},e.prototype.getAdjustPointShape=function(t,n,o){var i=o.getAdjustPointStyle();return x(ne,ve({className:"lf-edge-adjust-point"},i,{x:t,y:n}))},e.prototype.getAdjustPoints=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.adjustEdgeStartAndEnd,s=i.adjustEdgeStart,d=i.adjustEdgeEnd,l=n.getAdjustStart(),u=n.getAdjustEnd();return x("g",{children:[a&&s&&x(Hr,ve({type:xt.SOURCE},l,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:n,graphModel:o})),a&&d&&x(Hr,ve({type:xt.TARGET},u,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:n,graphModel:o}))]})},e.prototype.getAnimation=function(){console.error("getAnimation is deprecated in 1.2.0, please use model.getEdgeAnimationStyle")},e.prototype.getAppendWidth=function(){return x("g",{})},e.prototype.getAppend=function(){return x("g",{className:"lf-edge-append",children:this.getAppendWidth()})},e.prototype.getEdge=function(){return null},e.prototype.toFront=function(){var t=this.props,n=t.graphModel,o=t.model;n.toFront(o.id)},e.prototype.render=function(){var t=this.props.model,n=t.isSelected,o=t.isHitable,i=t.isShowAdjustPoint;return x("g",{children:[x("g",{className:["lf-edge",!o&&"pointer-none",n&&"lf-edge-selected"].filter(Boolean).join(" "),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onContextMenu:this.handleContextMenu,onMouseOver:this.setHoverOn,onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,onFocus:this.handleFocus,onBlur:this.handleBlur,children:[this.getShape(),this.getAppend(),this.getText(),this.getArrow()]}),i&&n?this.getAdjustPoints():""]})},e.isObserved=!1,e}(K),Es=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Hn=function(){return Hn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},kr=function(r){Es(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getEdge=function(){var t=this.props.model,n=t.getEdgeStyle(),o=t,i=o.path,a=o.isAnimation,s=o.arrowConfig,d=t.getEdgeAnimationStyle(),l=d.strokeDasharray,u=d.stroke,f=d.strokeDashoffset,c=d.animationName,h=d.animationDuration,g=d.animationIterationCount,p=d.animationTimingFunction,v=d.animationDirection;return x(Oe,Hn({d:i},n,s,a?{strokeDasharray:l,stroke:u,style:{strokeDashoffset:f,animationName:c,animationDuration:h,animationIterationCount:g,animationTimingFunction:p,animationDirection:v}}:{}))},e.prototype.getAppendWidth=function(){var t=this.props.model.path;return x(Oe,{d:t,strokeWidth:10,stroke:"transparent",fill:"none"})},e.prototype.getArrowInfo=function(){var t=this.props.model,n=this.state.hover,o=t.isSelected,i=t.getArrowStyle().offset,a=t.pointsList.map(function(f){return{x:f.x,y:f.y}}),s=Ms(lr(a,i),2),d=s[0],l=s[1],u={start:d,end:l,hover:n,isSelected:o};return u},e.prototype.getLastTwoPoints=function(){var t=this.props.model,n=t.getArrowStyle().offset,o=t.pointsList.map(function(i){return{x:i.x,y:i.y}});return lr(o,n)},e}(on),Os=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kn=function(){return kn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Gr=function(r){Ss(e,r);function e(){var t=r.call(this)||this;return t.onDragStart=function(){var n=t.props.model;n.dragAppendStart(),t.isShowAdjustPointTemp=n.isShowAdjustPoint,n.isShowAdjustPoint=!1},t.onDragging=function(n){var o=n.deltaX,i=n.deltaY,a=t.props,s=a.model,d=a.graphModel;t.isDragging=!0;var l=d.transformModel,u=d.editConfigModel,f=ws(l.fixDeltaXY(o,i),2),c=f[0],h=f[1],g=s,p=u.adjustEdgeMiddle;p?t.appendInfo=g.dragAppendSimple(t.appendInfo,{x:c,y:h}):t.appendInfo=g.dragAppend(t.appendInfo,{x:c,y:h})},t.onDragEnd=function(){var n,o=t.props,i=o.model,a=o.graphModel.eventCenter,s=i;s.dragAppendEnd(),t.isDragging=!1,s.isShowAdjustPoint=(n=t.isShowAdjustPointTemp)!==null&&n!==void 0?n:!1,t.appendInfo=void 0,a.emit(T.EDGE_ADJUST,{data:s.getData()})},t.beforeDragStart=function(n,o){o.draggable&&t.drag.handleMouseDown(n),t.appendInfo=o},t.drag=new Mt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd,isStopPropagation:!1}),t}return e.prototype.getEdge=function(){var t=this.props.model,n=t.points,o=t.isAnimation,i=t.arrowConfig,a=t.getEdgeStyle(),s=t.getEdgeAnimationStyle(),d=s.strokeDasharray,l=s.stroke,u=s.strokeDashoffset,f=s.animationName,c=s.animationDuration,h=s.animationIterationCount,g=s.animationTimingFunction,p=s.animationDirection;return x(Oi,Xt({points:n},a,i,o?{strokeDasharray:d,stroke:l,style:{strokeDashoffset:u,animationName:f,animationDuration:c,animationIterationCount:h,animationTimingFunction:g,animationDirection:p}}:{}))},e.prototype.getArrowInfo=function(){var t=this.props.model,n=t.points,o=t.isSelected,i=this.state.hover,a=kt(n),s=a[0],d=a[0];return a.length>=2&&(s=a[a.length-2],d=a[a.length-1]),{start:s,end:d,hover:i,isSelected:o}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,n=t.points,o=kt(n),i=o[0],a=o[0];return o.length>=2&&(i=o[o.length-2],a=o[o.length-1]),[i,a]},e.prototype.getAppendAttributes=function(t){var n=t.start,o=t.end,i;if(n.x===o.x&&n.y===o.y)i="";else{var a={start:n,end:o,offset:10,verticalLength:5},s=xe(Xt(Xt({},a),{type:"start"})),d=xe(Xt(Xt({},a),{type:"end"}));i="M".concat(s.leftX," ").concat(s.leftY,` + L`).concat(s.rightX," ").concat(s.rightY,` + L`).concat(d.rightX," ").concat(d.rightY,` + L`).concat(d.leftX," ").concat(d.leftY," z")}return{d:i,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},e.prototype.getAppendShape=function(t){var n=this.getAppendAttributes(t),o=n.d,i=n.strokeWidth,a=n.fill,s=n.strokeDasharray,d=n.stroke;return x(Oe,{d:o,fill:a,strokeWidth:i,stroke:d,strokeDasharray:s})},e.prototype.getAppendWidth=function(){for(var t=this,n=this.props,o=n.model,i=n.graphModel,a=o.pointsList,s=o.draggable,d=[],l=a.length,u=function(h){var g="lf-polyline-append",p={start:{x:a[h].x,y:a[h].y},end:{x:a[h+1].x,y:a[h+1].y},startIndex:h,endIndex:h+1,direction:G.HORIZONTAL,draggable:!0},v=x("g",{className:g,children:f.getAppendShape(p)}),y=i.editConfigModel,_=y.adjustEdge,M=y.adjustEdgeMiddle;if(_&&s){var S=p.startIndex,O=p.endIndex,w=M&&(S===0||O===l-1);p.draggable=!w,p.start.x===p.end.x?(p.draggable&&(g+="-ew-resize"),p.direction=G.VERTICAL):p.start.y===p.end.y&&(p.draggable&&(g+="-ns-resize"),p.direction=G.HORIZONTAL),v=x("g",{className:f.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(A){return t.beforeDragStart(A,p)},children:x("g",{className:g,children:f.getAppendShape(p)})})}d.push(v)},f=this,c=0;c=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ns=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},bs=function(r){Ts(e,r);function e(t){var n=r.call(this,t)||this;return n.ref=Gn(),n.__prevText={type:"",text:"",id:""},n.keyupHandler=function(o){var i=n.props.graphModel.textEditElement;o.key==="Enter"&&o.altKey&&(i==null||i.setElementState(X.DEFAULT))},n.inputHandler=function(o){var i=o.target.innerText,a=n.props.graphModel.textEditElement;a&&(n.__prevText={type:a.type,text:i.replace(/(\r\n)+$|(\n)+$/,""),id:a.id})},n.keydownHandler=function(o){o.stopPropagation()},n.state={style:{left:0,top:0}},n}return e.getDerivedStateFromProps=function(t){var n,o=t.textEditElement,i=t.graphModel,a=i.transformModel,s=i.theme,d=s.inputText,l;if(o){if(!(!((n=o.text)===null||n===void 0)&&n.value)&&o.BaseType===$.EDGE){var u=o.text,f=o.textPosition,c=f.x,h=f.y;u.x=c,u.y=h,o.setText(u)}var g={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(o.BaseType===$.EDGE){var p=s.edgeText,v=p.overflowMode,y=p.lineHeight,_=p.wrapPadding,M=p.textWidth;M&&v==="autoWrap"&&(l=Ot(Ot({},g),{width:M,minWidth:M,lineHeight:y,padding:_}))}else if(o.BaseType===$.NODE){var S=s.nodeText,v=S.overflowMode,y=S.lineHeight,_=S.wrapPadding,M=S.textWidth,O=o.width,w=o.modelType,A=o.textWidth,b=A||M||O;(w!==j.TEXT_NODE&&v==="autoWrap"||w===j.TEXT_NODE&&M)&&(l=Ot(Ot({},g),{width:b,minWidth:b,lineHeight:y,padding:_}))}var R=o.text,L=R.x,z=R.y,I=Ns(a.CanvasPointToHtmlPoint([L,z]),2),U=I[0],Y=I[1];return{style:Ot(Ot({left:U,top:Y},l),d)}}return null},e.prototype.componentDidUpdate=function(){var t=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var n=this.__prevText,o=n.text,i=n.id;t.updateText(i,o),t.eventCenter.emit(T.TEXT_UPDATE,{data:Ot({},this.__prevText)}),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}},e.prototype.placeCaretAtEnd=function(t){if(window.getSelection!==void 0&&document.createRange!==void 0){var n=document.createRange();n.selectNodeContents(t),n.collapse(!1);var o=window.getSelection();o==null||o.removeAllRanges(),o==null||o.addRange(n)}},e.prototype.render=function(){var t,n=this.props.graphModel.textEditElement,o=this.state.style;return n?x("div",{contentEditable:!0,className:"lf-text-input",style:o,ref:this.ref,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler,children:(t=n.text)===null||t===void 0?void 0:t.value},n.id):null},e.toolName="text-edit-tool",e=Ds([ot],e),e}(K),Cs=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ls=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},hn=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},js=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Is=[bs,Rs],Bs=function(){function r(e){var t=this;this.toolMap=new Map,this.disabledToolMap=new Map,this.instance=e,W(Is,function(i){t.isDisabled(i.toolName)||t.registerTool(i.toolName,i)});var n=e.graphModel,o=n.eventCenter;o.on("".concat(T.GRAPH_TRANSFORM,",").concat(T.NODE_CLICK,",").concat(T.BLANK_CLICK," "),function(){var i,a=n.textEditElement,s=n.editConfigModel,d=s.edgeTextEdit,l=s.nodeTextEdit;(d||l)&&a&&((i=n.textEditElement)===null||i===void 0||i.setElementState(X.DEFAULT))})}return r.prototype.isDisabled=function(e){var t;return((t=this.instance.options.disabledTools)===null||t===void 0?void 0:t.indexOf(e))!==-1},r.prototype.registerTool=function(e,t){this.toolMap.set(e,t)},r.prototype.disableTool=function(e){var t=this.toolMap.get(e);if(t)return this.disabledToolMap.set(e,t),this.toolMap.delete(e),!0;throw new Error("禁用失败,不存在名为 ${tool} 的工具")},r.prototype.enableTool=function(e){var t=this.disabledToolMap.get(e);if(t)return this.toolMap.set(e,t),this.disabledToolMap.delete(e),!0;throw new Error("不存在名为 ${tool} 的工具")},r.prototype.getTools=function(){return Array.from(this.toolMap.values())},r.prototype.getInstance=function(){return this.instance},r.prototype.destroy=function(){this.toolMap.clear(),this.disabledToolMap.clear()},yn([E],r.prototype,"toolMap",void 0),yn([m],r.prototype,"disableTool",null),yn([m],r.prototype,"enableTool",null),r}(),zn=function(){return zn=Object.assign||function(r){for(var e,t=1,n=arguments.length;tthis.maxSize&&this.undos.shift())},r.prototype.undoAble=function(){return this.undos.length>1},r.prototype.undo=function(){if(this.undoAble()){var e=this.undos.pop();this.redos.push(e);var t=this.undos.pop();return this.curData=C(t),t}},r.prototype.redoAble=function(){return this.redos.length>0},r.prototype.redo=function(){if(this.redoAble()){var e=this.redos.pop();return this.curData=C(e),e}},r.prototype.watch=function(e){var t=this;this.stopWatch&&this.stopWatch(),this.undos.push(e.modelToGraphData()),this.stopWatch=No(e,Zr(function(){var n=e.modelToHistoryData();n&&t.add(zn({},n))},this.waitTime))},r.prototype.destroy=function(){this.undos=[],this.redos=[],this.curData=null,this.stopWatch&&this.stopWatch()},r}();var vt=null;function Fr(r,e){return r.x+=e,r.y+=e,Vr(r.text)||(r.text.x+=e,r.text.y+=e),r}function $r(r,e){return r.startPoint&&(r.startPoint.x+=e,r.startPoint.y+=e),r.endPoint&&(r.endPoint.x+=e,r.endPoint.y+=e),r.pointsList&&r.pointsList.length>0&&r.pointsList.forEach(function(t){t.x+=e,t.y+=e}),Vr(r.text)||(r.text.x+=e,r.text.y+=e),r}var Vt=40,ke=40;function Ys(r,e){var t=r.keyboard,n=t.options.keyboard;t.on(["cmd + c","ctrl + c"],function(){if(ke=Vt,!(n!=null&&n.enabled)||e.textEditElement)return!0;var o=r.options.guards,i=e.getSelectElements(!1),a=o&&o.beforeClone?o.beforeClone(i):!0;return!a||i.nodes.length===0&&i.edges.length===0?(vt=null,!0):(vt=i,vt.nodes.forEach(function(s){return Fr(s,Vt)}),vt.edges.forEach(function(s){return $r(s,Vt)}),!1)}),t.on(["cmd + v","ctrl + v"],function(){if(!(n!=null&&n.enabled)||e.textEditElement)return!0;if(vt&&(vt.nodes||vt.edges)){r.clearSelectElements();var o=r.addElements(vt,ke);if(!o)return!0;o.nodes.forEach(function(i){return r.selectElementById(i.id,!0)}),o.edges.forEach(function(i){return r.selectElementById(i.id,!0)}),vt.nodes.forEach(function(i){return Fr(i,Vt)}),vt.edges.forEach(function(i){return $r(i,Vt)}),ke=ke+Vt}return!1}),t.on(["cmd + z","ctrl + z"],function(){return!(n!=null&&n.enabled)||e.textEditElement?!0:(r.undo(),!1)}),t.on(["cmd + y","ctrl + y"],function(){return!(n!=null&&n.enabled)||e.textEditElement?!0:(r.redo(),!1)}),t.on(["backspace"],function(){if(!(n!=null&&n.enabled)||e.textEditElement)return!0;var o=e.getSelectElements(!0);return r.clearSelectElements(),o.edges.forEach(function(i){return i.id&&r.deleteEdge(i.id)}),o.nodes.forEach(function(i){return i.id&&r.deleteNode(i.id)}),!1})}var Hs=function(){function r(e){e.keyboard||(e.keyboard={enabled:!1}),this.options=e;var t=e.lf;this.target=t.container,this.mousetrap=new Do(this.target),e.keyboard.enabled&&!t.options.isSilentMode&&this.enable(!0)}return r.prototype.initShortcuts=function(){var e=this,t,n=((t=this.options.keyboard)!==null&&t!==void 0?t:{}).shortcuts;if(n)if(Mo(n))n.forEach(function(s){var d=s.keys,l=s.callback,u=s.action;return e.on(d,l,u)});else{var o=n.keys,i=n.callback,a=n.action;this.on(o,i,a)}},r.prototype.on=function(e,t,n){this.mousetrap.bind(this.getKeys(e),t,n)},Object.defineProperty(r.prototype,"disabled",{get:function(){var e,t;return((t=(e=this.options)===null||e===void 0?void 0:e.keyboard)===null||t===void 0?void 0:t.enabled)!==!0},enumerable:!1,configurable:!0}),r.prototype.off=function(e,t){this.mousetrap.unbind(this.getKeys(e),t)},r.prototype.enable=function(e){(this.disabled||e)&&(this.options.keyboard&&(this.options.keyboard.enabled=!0),this.target instanceof HTMLElement&&(this.target.setAttribute("tabindex","-1"),this.target.style.outline="none"))},r.prototype.disable=function(){this.disabled||(this.options.keyboard&&(this.options.keyboard.enabled=!1),this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))},r.prototype.destroy=function(){this.mousetrap.reset()},r.prototype.getKeys=function(e){var t=this;return(Array.isArray(e)?e:[e]).map(function(n){return t.formatKey(n)})},r.prototype.formatKey=function(e){return e.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")},r}(),Tt=function(){return Tt=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},gn=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;ny.step||Math.abs(y.sumDeltaY)>y.step)){var O=y.sumDeltaX%y.step,w=y.sumDeltaY%y.step,A=y.sumDeltaX-O,C=y.sumDeltaY-w;y.sumDeltaX=O,y.sumDeltaY=w;var I=(M=y.model)===null||M===void 0?void 0:M.getData();y.isDragging||((S=y.eventCenter)===null||S===void 0||S.emit(T["".concat(y.eventType,"_DRAGSTART")],{e:_,data:y.data||I}),y.onDragStart({event:_})),y.isDragging=!0,Promise.resolve().then(function(){var L,G;y.onDragging({deltaX:A,deltaY:C,event:_}),(L=y.eventCenter)===null||L===void 0||L.emit(T["".concat(y.eventType,"_MOUSEMOVE")],{deltaX:A,deltaY:C,e:_,data:y.data||I}),(G=y.eventCenter)===null||G===void 0||G.emit(T["".concat(y.eventType,"_DRAG")],{e:_,data:y.data||I})})}},this.handleMouseUp=function(_){var M=window.document;y.isStartDragging=!1,y.isStopPropagation&&_.stopPropagation(),Promise.resolve().then(function(){var S,O,w;M.removeEventListener("mousemove",y.handleMouseMove,!1),M.removeEventListener("mouseup",y.handleMouseUp,!1);var A=(S=y.model)===null||S===void 0?void 0:S.getData();(O=y.eventCenter)===null||O===void 0||O.emit(T["".concat(y.eventType,"_MOUSEUP")],{e:_,data:y.data||A}),y.isDragging&&(y.isDragging=!1,y.onDragEnd({event:_}),(w=y.eventCenter)===null||w===void 0||w.emit(T["".concat(y.eventType,"_DROP")],{e:_,data:y.data||A}))})},this.cancelDrag=function(){var _=window==null?void 0:window.document;_.removeEventListener("mousemove",y.handleMouseMove,!1),_.removeEventListener("mouseup",y.handleMouseUp,!1),y.onDragEnd({event:void 0}),y.isDragging=!1},this.onDragStart=n,this.onDragging=i,this.onDragEnd=s,this.step=c,this.isStopPropagation=g,this.eventType=l,this.eventCenter=u,this.model=p,this.data=v}return r.prototype.setStep=function(e){this.step=e},r.prototype.setModel=function(e){this.model=e},r}(),Io=function(r){var e=r.x,t=r.y,n=r.width,o=r.height;return{x:e-n/2,y:t-o/2,x1:e+n/2,y1:t+o/2}},Bo=function(r){var e=r.startPoint,t=r.endPoint,n=(e.x+t.x)/2,o=(e.y+t.y)/2,i=Math.abs(e.x-t.x)+10,a=Math.abs(e.y-t.y)+10;return{x:n-i/2,y:o-a/2,x1:n+i/2,y1:o+a/2}},Xo=function(r){var e=r.points,t=Xt(e),n=Ee(t,8),o=n.x,i=n.y,a=n.width,s=n.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},Yo=function(r){var e=r.path,t=Fn(e),n=Ee(t,8),o=n.x,i=n.y,a=n.width,s=n.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},Ho=function(r){if(r.modelType===j.LINE_EDGE)return Bo(r);if(r.modelType===j.POLYLINE_EDGE)return Xo(r);if(r.modelType===j.BEZIER_EDGE)return Yo(r)},ko=function(r,e,t,n){var o=(e.y-r.y)*(n.x-t.x)-(r.x-e.x)*(t.y-n.y);if(o===0)return!1;var i=((e.x-r.x)*(n.x-t.x)*(t.y-r.y)+(e.y-r.y)*(n.x-t.x)*r.x-(n.y-t.y)*(e.x-r.x)*t.x)/o,a=-((e.y-r.y)*(n.y-t.y)*(t.x-r.x)+(e.x-r.x)*(n.y-t.y)*r.y-(n.x-t.x)*(e.y-r.y)*t.y)/o;return(i-r.x)*(i-e.x)<=0&&(a-r.y)*(a-e.y)<=0&&(i-t.x)*(i-n.x)<=0&&(a-t.y)*(a-n.y)<=0?{x:i,y:a}:!1},me=function(r,e,t){var n=r.x,o=r.y,i=e.x,a=e.y,s=t.x,d=t.y,l=(d-a)/(s-i),u=a-l*i;return n>=i&&n<=s&&o>=a&&o<=d&&Math.abs(o-l*n+u)=e.x?(a.leftX=e.x+l*Math.sin(s+d),a.leftY=e.y-l*Math.cos(s+d),a.rightX=e.x-l*Math.sin(s-d),a.rightY=e.y+l*Math.cos(s-d)):(a.leftX=e.x-l*Math.sin(s+d),a.leftY=e.y+l*Math.cos(s+d),a.rightX=e.x+l*Math.sin(s-d),a.rightY=e.y-l*Math.cos(s-d)):i==="end"&&(t.x>=e.x?(a.leftX=t.x+l*Math.sin(s-d),a.leftY=t.y-l*Math.cos(s-d),a.rightX=t.x-l*Math.sin(s+d),a.rightY=t.y+l*Math.cos(s+d)):(a.leftX=t.x-l*Math.sin(s-d),a.leftY=t.y+l*Math.cos(s-d),a.rightX=t.x+l*Math.sin(s+d),a.rightY=t.y-l*Math.cos(s+d))),a},Vt=function(){return Vt=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Pt=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;nn/e.height?F.HORIZONTAL:F.VERTICAL},Fe=function(r,e,t){var n=Go(t,e);return n===F.HORIZONTAL?{x:t.x>r.centerX?r.maxX:r.minX,y:t.y}:{x:t.x,y:t.y>r.centerY?r.maxY:r.minY}},qn=function(r,e){var t=Math.min(r.minX,e.minX),n=Math.min(r.minY,e.minY),o=Math.max(r.maxX,e.maxX),i=Math.max(r.maxY,e.maxY);return{x:(t+o)/2,y:(n+i)/2,centerX:(t+o)/2,centerY:(n+i)/2,minX:t,minY:n,maxX:o,maxY:i,height:i-n,width:o-t}},Ee=function(r,e){r===void 0&&(r=[]);var t=[],n=[];r.forEach(function(u){t.push(u.x),n.push(u.y)});var o=Math.min.apply(Math,Pt([],it(t),!1)),i=Math.max.apply(Math,Pt([],it(t),!1)),a=Math.min.apply(Math,Pt([],it(n),!1)),s=Math.max.apply(Math,Pt([],it(n),!1)),d=i-o,l=s-a;return e&&(d+=e,l+=e),{centerX:(o+i)/2,centerY:(a+s)/2,maxX:i,maxY:s,minX:o,minY:a,x:(o+i)/2,y:(a+s)/2,height:l,width:d}},$e=function(r){var e=r.minX,t=r.minY,n=r.maxX,o=r.maxY;return[{x:e,y:t},{x:n,y:t},{x:n,y:o},{x:e,y:o}]},De=function(r,e){var t=r.x,n=r.y;return te.maxX||ne.maxY},Fo=function(r,e){return er.maxX?[]:[{x:e,y:r.minY},{x:e,y:r.maxY}]},$o=function(r,e){return er.maxY?[]:[{x:r.minX,y:e},{x:r.maxX,y:e}]},Uo=function(r,e){return Pt(Pt([],it(Fo(r,e.x)),!1),it($o(r,e.y)),!1)},mn=function(r,e){return Math.abs(r.x-e.x)+Math.abs(r.y-e.y)},Wo=function(r,e){var t=-2,n=0;return e.forEach(function(o){o&&(r.x===o.x&&(n+=t),r.y===o.y&&(n+=t))}),n},Jn=function(r,e,t,n,o){return mn(r,e)+mn(r,t)+Wo(r,[e,t,n,o])},Zr=function(r,e,t,n,o){o||(o=0),r.unshift(e[n]),t[n]&&t[n]!==n&&o<=100&&Zr(r,e,t,t[n],o+1)},Zo=function(r,e){var t=r.indexOf(e);t>-1&&r.splice(t,1)},ie=function(r,e,t,n){var o=e.x-r.x,i=e.y-r.y,a=n.x-t.x,s=n.y-t.y,d=(-i*(r.x-t.x)+o*(r.y-t.y))/(-a*i+o*s),l=(a*(r.y-t.y)-s*(r.x-t.x))/(-a*i+o*s);return d>=0&&d<=1&&l>=0&&l<=1},Qn=function(r,e,t){if(t.width===0&&t.height===0)return!1;var n=it($e(t),4),o=n[0],i=n[1],a=n[2],s=n[3];return ie(r,e,o,i)||ie(r,e,o,s)||ie(r,e,i,a)||ie(r,e,a,s)},Vo=function(r,e,t,n){var o=[];return r.forEach(function(i){i!==e&&(i.x===e.x||i.y===e.y)&&!Qn(i,e,t)&&!Qn(i,e,n)&&o.push(i)}),_n(o)},Ko=function(r,e,t,n,o,i,a){var s=[],d=[e],l={},u={},f={};e.id&&(u[e.id]=0,f[e.id]=Jn(e,t,e));var c={};r.forEach(function(p){p.id&&(c[p.id]=p)});for(var h=function(){var p,v=1/0;if(d.forEach(function(_){_.id&&f[_.id]=u[_.id])return;l[_.id]=p.id,u[_.id]=M,f[_.id]=u[_.id]+Jn(_,t,e,i,a)}})};d.length;){var g=h();if(typeof g=="object")return g.value}return[e,t]},tr=function(r){return nt(r)},Vr=function(r){for(var e=1;e2&&(y=Vr(y)),_n(y)},qo=function(r){if(r.length===1){var e=it(r,1),t=e[0];return[t,t]}else{for(var n=r[0],o=r[1],i=pt(n.x,n.y,o.x,o.y),a=1;ai&&(i=l,n=s,o=d)}return[n,o]}},nr=function(r,e,t){var n=Tt(r,t),o=Tt(e,t);return n&&o},rr=function(r,e,t){var n=Tt(r,t),o=Tt(e,t),i=n&&o,a=n||o;return!i&&a},or=function(r,e,t){for(var n=void 0,o=nt(t),i=$e(o),a=0;a=1&&n<=126||n>=65376&&n<=65439?e+=1:e+=2}return e},Qo=function(r){var e=r.start,t=r.end,n;if(e.x===t.x&&e.y===t.y)n="";else{var o={start:e,end:t,offset:10,verticalLength:5},i=xe(Vt(Vt({},o),{type:"start"})),a=xe(Vt(Vt({},o),{type:"end"}));n="M".concat(i.leftX," ").concat(i.leftY,` - L`).concat(i.rightX," ").concat(i.rightY,` - L`).concat(a.rightX," ").concat(a.rightY,` - L`).concat(a.leftX," ").concat(a.leftY," z")}return{d:n,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},ar=function(r){var e=r.start,t=r.end,n=r.sourceNode,o=r.targetNode,i=r.offset,a=nt(n),s=nt(o),d=Ge(a,i),l=Ge(s,i),u=Fe(d,a,e),f=Fe(l,s,t);return{sNext:u,ePre:f}},Fn=function(r){var e=r.replace(/M/g,"").replace(/C/g,",").split(","),t=be(e[0]),n=be(e[1]),o=be(e[2]),i=be(e[3]);return[t,n,o,i]},be=function(r){var e=it(r.replace(/(^\s*)/g,"").split(" "),2),t=e[0],n=e[1];return{x:+t,y:+n}},sr=function(r,e){var t=it(r,4),n=t[0],o=t[1],i=t[2],a=t[3],s=Bi(n,o,i,a,e);return[s,r[3]]},qr=function(r,e){for(var t=r.x,n=r.y,o=Xt(e),i=Number.MAX_SAFE_INTEGER,a,s=[],d=0;do?a:o}),{width:Math.ceil(o/2)*n+n/4,height:t*(n+2)+n/4}},Gt=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Ce=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},un=function(r,e,t){var n=ln(r,2),o=n[0],i=n[1],a=ln(e,2),s=a[0],d=a[1],l=ln(t,2),u=l[0],f=l[1];return o>s&&od&&i=0?o:-o},e}(Qr),xn=function(r){$n(e,r);function e(t,n){var o=r.call(this,t,n,1)||this;return Object.setPrototypeOf(o,e.prototype),o}return e.prototype.toString=function(){return"Point"},e}(Qr),tn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ft=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},fn=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;o--){var i=t[o],a=di(r,i);if(a){var s=i.getTargetAnchor(r);if(s){var d={node:i,anchorIndex:s.index,anchor:s.anchor};(!n||ai(i,n.node,e))&&(n=d)}}}return n},ai=function(r,e,t){return r.zIndex>e.zIndex?!0:t.nodesMap[r.id].index>t.nodesMap[e.id].index},si=function(r,e){for(var t=En(e),n,o=Number.MAX_SAFE_INTEGER,i=0;i=o.minX-n&&r.x<=o.maxX+n&&r.y>=o.minY-n&&r.y<=o.maxY+n&&(t=!0),t},di=function(r,e){var t=!1,n=5,o=nt(e);return r.x>=o.minX-n&&r.x<=o.maxX+n&&r.y>=o.minY-n&&r.y<=o.maxY+n&&(t=!0),t},nt=function(r){var e=r.x,t=r.y,n=r.width,o=r.height;return{minX:e-n/2,minY:t-o/2,maxX:e+n/2,maxY:t+o/2,x:e,y:t,width:n,height:o,centerX:e,centerY:t}},li=function(r){var e=r,t=e.x,n=e.y,o=e.width,i=e.height,a=e.radius;return[{x:t-o/2+a,y:n-i/2+a,r:a},{x:t+o/2-a,y:n-i/2+a,r:a},{x:t-o/2+a,y:n+i/2-a,r:a},{x:t+o/2-a,y:n+i/2-a,r:a}]},ur=function(r,e,t){var n=li(t),o,i=Number.MAX_SAFE_INTEGER;return n.forEach(function(a){var s=pt(r.x,r.y,a.x,a.y);sl.minX&&r.xl.minY&&r.yu.x&&(f=u,c=l);var h={x:r.x,y:r.y};if(f.x===c.x&&e===F.HORIZONTAL&&(h={x:f.x,y:r.y}),f.y===c.y&&e===F.VERTICAL&&(h={x:r.x,y:f.y}),f.x!==c.x&&f.y!==c.y){var g=(c.y-f.y)/(c.x-f.x),p=(f.x*c.y-c.x*f.y)/(f.x-c.x);e===F.HORIZONTAL?h={x:(r.y-p)/g,y:r.y}:e===F.VERTICAL&&(h={x:r.x,y:g*r.x+p})}var v=me(h,l,u);if(v){var y=pt(h.x,h.y,r.x,r.y);yr.x?o=r.x+t/2:e.xr.y?i=r.y+n/2:e.y1?e.forEach(function(s){var d=document.createElement("div");d.textContent=s,i.appendChild(d)}):i.textContent=e[0],document.body.appendChild(i);var a=i.clientHeight;return document.body.removeChild(i),a},hr=function(r){var e=r.rows,t=r.rowsLength,n=r.fontSize,o=0;return e&&e.forEach(function(i){var a=Kr(i);o=a>o?a:o}),{width:Math.ceil(o/2)*n+n/4,height:t*(n+2)+n/4}},Ve=function(r){return typeof r!="object"?{isAllPass:!!r,msg:r?"":"不允许连接"}:r},It=function(){return wo()},se=new Map,eo=function(r){var e=It();function t(){r();var o=se.get(e);if(o){var i=window.requestAnimationFrame(t);se.set(e,i)}}var n=window.requestAnimationFrame(t);return se.set(e,n),e},Ke=function(r){var e=se.get(r);e&&(window.cancelAnimationFrame(e),se.delete(r))},Me=function(){return Me=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function no(r){var e=r.x,t=e===void 0?0:e,n=r.y,o=n===void 0?0:n,i=r.value,a=r.fontSize,s=a===void 0?12:a,d=r.fill,l=d===void 0?"currentColor":d,u=r.overflowMode,f=u===void 0?"default":u,c=r.textWidth,h=c===void 0?void 0:c,g=r.model,p={x:t,y:o,fill:l,fontSize:s,textAnchor:"middle",dominantBaseline:"central"};if(W(Nt(r),function(O){var w=fi(O,2),A=w[0],C=w[1];typeof C!="object"&&(p[A]=C)}),i){var v=String(i).split(/[\r\n]/g),y=v.length;if(f!=="default"){var _=g.BaseType,M=g.modelType;if(_===U.NODE&&M!==j.TEXT_NODE||_===U.EDGE&&h)return ci(r)}if(y>1){var S=v.map(function(O,w){var A=s+2,C=(w-(y-1)/2)*A;return x("tspan",{className:"lf-text-tspan",x:t,y:o+C,children:O})});return x("text",Me({},p,{children:S}))}return x("text",Me({},p,{children:i}))}return null}function ci(r){var e=r.x,t=r.y,n=r.value,o=r.model,i=r.textWidth,a=r.fontSize,s=a===void 0?12:a,d=r.lineHeight,l=r.fontFamily,u=l===void 0?"":l,f=r.wrapPadding,c=f===void 0?"0, 0":f,h=r.overflowMode,g=o.width,p=o.height,v=o.textHeight,y=i||g,_=String(n).split(/[\r\n]/g),M=_.length,S=to({rows:_,style:{fontSize:"".concat(s,"px"),width:"".concat(y,"px"),fontFamily:u,lineHeight:d,padding:c},rowsLength:M,className:"lf-get-text-height"}),O=p>S?p:S;v&&(O=v);var w=h==="ellipsis";return w&&(O=s+2),x("g",{children:x("foreignObject",{width:y,height:O,x:e-y/2,y:t-O/2,style:{overflow:"visible",textAlign:"left"},children:x("div",{className:"lf-node-text-auto-wrap",style:{minHeight:O,width:y,padding:c},children:x("div",{className:w?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:w?_.join(""):"",style:Me({},r),children:_.map(function(A){return x("div",{className:"lf-node-text--auto-wrap-inner",children:A})})})})})})}var On=function(){return On=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function ee(r){var e={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return W(Nt(r),function(t){var n=pi(t,2),o=n[0],i=n[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("line",On({},e))}var Sn=function(){return Sn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function mt(r){var e=r.x,t=r.y,n=r.width,o=r.height,i=r.className,a=r.strokeWidth,s=r.radius,d=s===void 0?0:s,l=e-n/2,u=t-o/2,f={};return f["stroke-width"]=a,W(Nt(r),function(c){var h=hi(c,2),g=h[0],p=h[1];typeof p!="object"&&(f[g]=p)}),i?f.className="lf-basic-shape ".concat(i):f.className="lf-basic-shape",d&&(f.rx=d,f.ry=d),f.x=l,f.y=u,x("rect",Sn({},f))}var wn=function(){return wn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function Oe(r){var e={d:""};return W(Nt(r),function(t){var n=yi(t,2),o=n[0],i=n[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("path",wn({},e))}var An=function(){return An=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function ne(r){var e=r.x,t=e===void 0?0:e,n=r.y,o=n===void 0?0:n,i=r.r,a=i===void 0?4:i,s=r.className,d={cx:t,cy:o,r:a,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(Nt(r),function(l){var u=gi(l,2),f=u[0],c=u[1];typeof c!="object"&&(d[f]=c)}),s?d.className="lf-basic-shape ".concat(s):d.className="lf-basic-shape",x("circle",An({},d))}var Pn=function(){return Pn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function _i(r){var e=r.x,t=e===void 0?0:e,n=r.y,o=n===void 0?0:n,i=r.rx,a=i===void 0?4:i,s=r.ry,d=s===void 0?4:s,l=r.className,u={cx:t,cy:o,rx:a,ry:d,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(Nt(r),function(f){var c=vi(f,2),h=c[0],g=c[1];typeof g!="object"&&(u[h]=g)}),l?u.className="lf-basic-shape ".concat(l):u.className="lf-basic-shape",x("ellipse",Pn({},u))}var Tn=function(){return Tn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function ro(r){var e=r.points,t=e===void 0?[]:e,n=r.className,o={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return W(Nt(r),function(i){var a=mi(i,2),s=a[0],d=a[1];typeof d!="object"&&(o[s]=d)}),n?o.classNmae="lf-basic-shape ".concat(n):o.className="lf-basic-shape",o.points=t.map(function(i){return i.join(",")}).join(" "),x("polygon",Tn({},o))}var Nn=function(){return Nn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function Ei(r){var e=r.className,t={points:"",fill:"none"};return W(Nt(r),function(n){var o=xi(n,2),i=o[0],a=o[1];(i==="style"||typeof a!="object")&&(t[i]=a)}),e&&(t.className="".concat(e)),x("polyline",Nn({},t))}var oo=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Se=function(){return Se=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},k;(function(r){r[r.LEFT_TOP=0]="LEFT_TOP",r[r.RIGHT_TOP=1]="RIGHT_TOP",r[r.RIGHT_BOTTOM=2]="RIGHT_BOTTOM",r[r.LEFT_BOTTOM=3]="LEFT_BOTTOM"})(k||(k={}));var Si=function(r){oo(e,r);function e(t){var n=r.call(this)||this;n.updateEdgePointByAnchors=function(){var s=n.nodeModel,d=s.id,l=s.anchors,u=n.graphModel.getNodeEdges(d);W(u,function(f){if(f.sourceNodeId===d){var c=Bt(l,function(h){return h.id===f.sourceAnchorId});c&&f.updateStartPoint({x:c.x,y:c.y})}else if(f.targetNodeId===d){var c=Bt(l,function(g){return g.id===f.targetAnchorId});c&&f.updateEndPoint({x:c.x,y:c.y})}})},n.triggerResizeEvent=function(s,d,l,u,f,c){n.graphModel.eventCenter.emit(T.NODE_RESIZE,{preData:s,data:d,deltaX:l,deltaY:u,index:f,model:c})},n.recalcResizeInfo=function(s,d,l,u,f){l===void 0&&(l=1),u===void 0&&(u=!1),f===void 0&&(f=!1);var c=b(d),h=c.deltaX,g=c.deltaY,p=c.width,v=c.height,y=c.PCTResizeInfo;if(y){var _=4,M=0,S=0;switch(s){case k.LEFT_TOP:S=(h*-1-g)/_;break;case k.RIGHT_TOP:S=(h-g)/_;break;case k.RIGHT_BOTTOM:S=(h+g)/_;break;case k.LEFT_BOTTOM:S=(h*-1+g)/_;break}S!==0&&(M=Math.round(S/y.ResizeBasis.basisHeight*1e5)/1e3),y.ResizePCT.widthPCT=Math.max(Math.min(y.ResizePCT.widthPCT+M,y.ScaleLimit.maxScaleLimit),y.ScaleLimit.minScaleLimit),y.ResizePCT.heightPCT=Math.max(Math.min(y.ResizePCT.heightPCT+M,y.ScaleLimit.maxScaleLimit),y.ScaleLimit.minScaleLimit);var O=Math.round(y.ResizePCT.widthPCT*y.ResizeBasis.basisWidth/100),w=Math.round(y.ResizePCT.heightPCT*y.ResizeBasis.basisHeight/100);switch(s){case k.LEFT_TOP:h=p-O,g=v-w;break;case k.RIGHT_TOP:h=O-p,g=v-w;break;case k.RIGHT_BOTTOM:h=O-p,g=w-v;break;case k.LEFT_BOTTOM:h=p-O,g=w-v;break}return c}switch(s){case k.LEFT_TOP:c.width=u?p:p-h*l,c.height=f?v:v-g*l;break;case k.RIGHT_TOP:c.width=u?p:p+h*l,c.height=f?v:v-g*l;break;case k.RIGHT_BOTTOM:c.width=u?p:p+h*l,c.height=f?v:v+g*l;break;case k.LEFT_BOTTOM:c.width=u?p:p-h*l,c.height=f?v:v+g*l;break}return c},n.resizeNode=function(s){var d=s.deltaX,l=s.deltaY,u=n.index,f=n.props,c=f.model,h=f.graphModel,g=f.x,p=f.y;Li({x:g,y:p,deltaX:d,deltaY:l,index:u,nodeModel:c,graphModel:h,cancelCallback:function(){n.dragHandler.cancelDrag()}})},n.onDragging=function(s){var d=s.deltaX,l=s.deltaY,u=n.graphModel.transformModel,f=Oi(u.fixDeltaXY(d,l),2),c=f[0],h=f[1];n.resizeNode({deltaX:c,deltaY:h})},n.onDragEnd=function(){var s=n.nodeModel.x,d=n.nodeModel.y;n.nodeModel.moveTo(s,d),n.updateEdgePointByAnchors()};var o=t.index,i=t.model,a=t.graphModel;return n.index=o,n.nodeModel=i,n.graphModel=a,n.dragHandler=new xt({onDragging:n.onDragging,onDragEnd:n.onDragEnd,step:a.gridSize}),n}return e.prototype.componentWillUnmount=function(){this.dragHandler.cancelDrag()},e.prototype.render=function(){var t=this.props,n=t.x,o=t.y,i=t.direction,a=t.model,s=a.getResizeControlStyle(),d=s.width,l=s.height,u=Mi(s,["width","height"]);return x("g",{className:"lf-resize-control lf-resize-control-".concat(i),children:[x(mt,Se({className:"lf-resize-control-content",x:n,y:o,width:d??7,height:l??7},u)),x(mt,{className:"lf-resize-control-content",x:n,y:o,width:25,height:25,fill:"transparent",stroke:"transparent",onMouseDown:this.dragHandler.handleMouseDown})]})},e}(V),wi=function(r){oo(e,r);function e(){return r.call(this)||this}return e.prototype.getResizeControl=function(){var t=this.props,n=t.model,o=t.graphModel,i=nt(n),a=i.minX,s=i.minY,d=i.maxX,l=i.maxY,u=[{index:k.LEFT_TOP,direction:"nw",x:a,y:s},{index:k.RIGHT_TOP,direction:"ne",x:d,y:s},{index:k.RIGHT_BOTTOM,direction:"se",x:d,y:l},{index:k.LEFT_BOTTOM,direction:"sw",x:a,y:l}];return Ot(u,function(f){return x(Si,Se({},f,{model:n,graphModel:o}))})},e.prototype.getResizeOutline=function(){var t=this.props.model,n=t.x,o=t.y,i=t.width,a=t.height,s=t.getResizeOutlineStyle();return x(mt,Se({},s,{x:n,y:o,width:i,height:a}))},e.prototype.render=function(){return x("g",{className:"lf-resize-control-group",children:[this.getResizeOutline(),this.getResizeControl()]})},e}(V);function Ai(r,e){var t=r.x,n=r.y,o=e.x,i=e.y,a={x:t+(o-t)/2,y:n+(i-n)/2};return a}function ae(r,e,t){var n=Pi(t),o=r.x-e.x,i=r.y-e.y,a=o*Math.cos(n)-i*Math.sin(n)+e.x,s=o*Math.sin(n)+i*Math.cos(n)+e.y;return{x:a,y:s}}function Pi(r){return r*Math.PI/180}function Ti(r){return r/Math.PI*180}function Ni(r,e,t,n,o,i,a,s,d){s===void 0&&(s=!1),d===void 0&&(d=!1);var l=e.deltaX,u=e.deltaY,f=e.width,c=e.height,h=Ti(t),g={x:n,y:o},p={x:i,y:a},v=ae(g,p,h),y={x:v.x+l,y:v.y+u},_=ji(v,y,p,h,s,d,f,c),M=_.width,S=_.height,O=_.center;return e.width=M*r,e.height=S*r,e.deltaX=(O.x-p.x)*2,e.deltaY=(O.y-p.y)*2,e}var Di=function(r,e,t,n,o,i,a,s,d,l){t===void 0&&(t=1),n===void 0&&(n=!1),o===void 0&&(o=!1),i===void 0&&(i=0);var u=b(e),f=u.deltaX,c=u.deltaY,h=u.width,g=u.height,p=u.PCTResizeInfo;if(p){var v=4,y=0,_=0;switch(r){case k.LEFT_TOP:_=(f*-1-c)/v;break;case k.RIGHT_TOP:_=(f-c)/v;break;case k.RIGHT_BOTTOM:_=(f+c)/v;break;case k.LEFT_BOTTOM:_=(f*-1+c)/v;break}_!==0&&(y=Math.round(_/p.ResizeBasis.basisHeight*1e5)/1e3),p.ResizePCT.widthPCT=Math.max(Math.min(p.ResizePCT.widthPCT+y,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit),p.ResizePCT.heightPCT=Math.max(Math.min(p.ResizePCT.heightPCT+y,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit);var M=Math.round(p.ResizePCT.widthPCT*p.ResizeBasis.basisWidth/100),S=Math.round(p.ResizePCT.heightPCT*p.ResizeBasis.basisHeight/100);switch(r){case k.LEFT_TOP:f=h-M,c=g-S;break;case k.RIGHT_TOP:f=M-h,c=g-S;break;case k.RIGHT_BOTTOM:f=M-h,c=S-g;break;case k.LEFT_BOTTOM:f=h-M,c=S-g;break}return u}if(i%(2*Math.PI)!==0&&a!==void 0&&s!==void 0)return Ni(t,u,i,a,s,d,l,n,o);switch(r){case k.LEFT_TOP:u.width=n?h:h-f*t,u.height=o?g:g-c*t;break;case k.RIGHT_TOP:u.width=n?h:h+f*t,u.height=o?g:g-c*t;break;case k.RIGHT_BOTTOM:u.width=n?h:h+f*t,u.height=o?g:g+c*t;break;case k.LEFT_BOTTOM:u.width=n?h:h-f*t,u.height=o?g:g+c*t;break}return u},bi=function(r,e){var t=r.id,n=r.anchors,o=e.getNodeEdges(t);W(o,function(i){if(i.sourceNodeId===t){var a=Bt(n,function(s){return s.id===i.sourceAnchorId});a&&i.updateStartPoint({x:a.x,y:a.y})}else if(i.targetNodeId===t){var a=Bt(n,function(d){return d.id===i.targetAnchorId});a&&i.updateEndPoint({x:a.x,y:a.y})}})},Ci=function(r,e,t,n,o,i,a){a.eventCenter.emit(T.NODE_RESIZE,{preData:r,data:e,deltaX:t,deltaY:n,index:o,model:i})},Li=function(r){var e=r.x,t=r.y,n=r.deltaX,o=r.deltaY,i=r.index,a=r.nodeModel,s=r.graphModel,d=r.cancelCallback,l=a.r,u=a.rx,f=a.ry,c=a.width,h=a.height,g=a.PCTResizeInfo,p=a.minWidth,v=a.minHeight,y=a.maxWidth,_=a.maxHeight,M=a.rotate,S=a.x,O=a.y,w=p===y,A=v===_,C={width:l||u||c,height:l||f||h,deltaX:n,deltaY:o,PCTResizeInfo:g},I=l||u&&f?1/2:1,L=e,G=t,R=Di(i,C,I,w,A,M,L,G,S,O);if(R.widthy||R.height_){d==null||d();return}(M%(2*Math.PI)==0||g||L===void 0||G===void 0)&&(R.deltaX=w?0:R.deltaX,R.deltaY=A?0:R.deltaY);var Y=a.getData(),H=a.resize(R);Y.x===H.x&&Y.y===H.y||(bi(a,s),Ci(Y,H,n,o,i,a,s))};function ji(r,e,t,n,o,i,a,s){o===void 0&&(o=!1),i===void 0&&(i=!1);var d={x:t.x-(r.x-t.x),y:t.y-(r.y-t.y)},l=Ai(d,e),u=ae(e,l,-n),f=ae(d,l,-n);if(o){var c=Math.abs(u.x-f.x),h=c-a;l.x>u.x?l.x=l.x+h/2:l.x=l.x-h/2}if(i){var g=Math.abs(u.y-f.y),p=g-s;l.y>u.y?l.y=l.y+p/2:l.y=l.y-p/2}if(o||i){var v=ae(f,l,n),y=v.x-d.x,_=v.y-d.y;l.x=l.x-y,l.y=l.y-_,f=ae(d,l,-n),u={x:l.x-(f.x-l.x),y:l.y-(f.y-l.y)}}var M=Math.abs(u.x-f.x),S=Math.abs(u.y-f.y);return o&&(M=a),i&&(S=s),{width:M,height:S,center:l}}var Ri=100,Ii={x:1,y:0,z:0};function Bi(r,e,t,n,o){for(var i=function(h){if(h<0||h>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:r.x*Math.pow(1-h,3)+3*e.x*h*Math.pow(1-h,2)+3*t.x*Math.pow(h,2)*(1-h)+n.x*Math.pow(h,3),y:r.y*Math.pow(1-h,3)+3*e.y*h*Math.pow(1-h,2)+3*t.y*Math.pow(h,2)*(1-h)+n.y*Math.pow(h,3)}},a=0,s=2,d=n.x,l=n.y,u=n;a=0?n:-n}function yr(r){var e=Math.hypot(r.x,r.y);return{x:r.x/e,y:r.y/e,z:0}}function ki(r){return Hi(Ii,r)}function zi(r){return r*(180/Math.PI)}var Gi={baseNode:{fill:"#fff",stroke:"#000",strokeWidth:2},baseEdge:{stroke:"#000",strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},text:{color:"#000",stroke:"none",fontSize:12,background:{fill:"transparent"}},anchor:{stroke:"#000",fill:"#fff",r:4,hover:{r:10,fill:"#949494",fillOpacity:.5,stroke:"#949494"}},anchorLine:{stroke:"#000",strokeWidth:2,strokeDasharray:"3,2"},nodeText:{color:"#000",overflowMode:"default",fontSize:12,lineHeight:1.2},edgeText:{textWidth:100,overflowMode:"default",fontSize:12,background:{fill:"#fff"}},line:{},polyline:{},bezier:{fill:"none",adjustLine:{stroke:"#949494"},adjustAnchor:{r:4,fill:"#949494",fillOpacity:1,stroke:"#949494"}},arrow:{offset:10,verticalLength:5},snapline:{stroke:"#949494",strokeWidth:1},edgeAdjust:{r:4,fill:"#fff",stroke:"#949494",strokeWidth:2},outline:{fill:"transparent",stroke:"#949494",strokeDasharray:"3,3",hover:{stroke:"#949494"}},edgeAnimation:{stroke:"red",strokeDasharray:"10,10",strokeDashoffset:"100%",animationName:"lf_animate_dash",animationDuration:"20s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"normal"},rotateControl:{stroke:"#000",fill:"#fff",strokeWidth:1.5},resizeControl:{width:7,height:7,fill:"#fff",stroke:"#000"},resizeOutline:{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},io=function(r){var e=b(Gi);return r&&(e=Fr(e,r)),e},Fi=io,$i=1e3,Ui=999,Un=function(){return++$i},Wi=function(){return--Ui},Z=function(){return Z=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},rn=function(){function r(e,t){var n;this.BaseType=U.EDGE,this.id="",this.type="",this.sourceNodeId="",this.targetNodeId="",this.textMode=ht.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this.points="",this.pointsList=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.isAnimation=!1,this.isShowAdjustPoint=!1,this.zIndex=0,this.state=B.DEFAULT,this.modelType=j.EDGE,this.customTextPosition=!1,this.style={},this.arrowConfig={markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")},this.graphModel=t,this.properties=(n=e.properties)!==null&&n!==void 0?n:{},this.initEdgeData(e),this.setAttributes()}return r.prototype.initEdgeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,n=t&&t(e.type),o=this.createId();e.id=o||n||It()}this.arrowConfig.markerEnd="url(#marker-end-".concat(e.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(e.id,")");var i=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=i,z(this,ti(e));var a=this.graphModel.overlapMode;a===ct.INCREASE&&(this.zIndex=e.zIndex||Un()),this.setAnchors(),this.initPoints(),this.formatText(e)},r.prototype.setAttributes=function(){},r.prototype.createId=function(){return null},r.prototype.getEdgeStyle=function(){return Z(Z({},this.graphModel.theme.baseEdge),this.style)},r.prototype.getAdjustPointStyle=function(){return Z({},this.graphModel.theme.edgeAdjust)},r.prototype.getTextStyle=function(){var e=this.graphModel.theme.edgeText;return b(e)},r.prototype.getEdgeAnimationStyle=function(){var e=this.graphModel.theme.edgeAnimation;return b(e)},r.prototype.getArrowStyle=function(){var e=this.getEdgeStyle(),t=this.getEdgeAnimationStyle(),n=this.graphModel.theme.arrow,o=this.isAnimation?t.stroke:e.stroke;return Z(Z(Z({},e),{fill:o,stroke:o}),n)},r.prototype.getOutlineStyle=function(){var e=this.graphModel,t=e.theme.outline;return b(t)},r.prototype.getTextPosition=function(){return{x:0,y:0}},Object.defineProperty(r.prototype,"sourceNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.sourceNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"targetNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.targetNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textPosition",{get:function(){return this.getTextPosition()},enumerable:!1,configurable:!0}),r.prototype.getBeginAnchor=function(e,t,n){var o,i,a=En(e);if(n){if(o=Bt(a,function(s){return s.id===n}),o)return o;console.warn("未在节点上找到指定的起点锚点".concat(n,",已使用默认锚点作为起点"))}return a.forEach(function(s){var d=dr(s,t);(i===void 0||d=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},cn=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},gr=function(r){Zi(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.BEZIER_EDGE,o.path="",o.initEdgeData(t),o.setAttributes(),o}return e.prototype.initEdgeData=function(t){this.offset=100,r.prototype.initEdgeData.call(this,t)},e.prototype.getEdgeStyle=function(){var t=this.graphModel.theme.bezier,n=r.prototype.getEdgeStyle.call(this),o=this.properties.style,i=o===void 0?{}:o;return Lt(Lt(Lt({},n),b(t)),b(i))},e.prototype.getTextPosition=function(){if(this.pointsList&&this.pointsList.length>0){var t=0,n=0;return this.pointsList.forEach(function(o){var i=o.x,a=o.y;t+=i,n+=a}),{x:t/this.pointsList.length,y:n/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}},e.prototype.getData=function(){var t=r.prototype.getData.call(this),n=this.pointsList.map(function(o){var i=o.x,a=o.y;return{x:i,y:a}});return Lt(Lt({},t),{pointsList:n})},e.prototype.getControls=function(){var t=this.startPoint,n=this.endPoint,o=ar({start:t,end:n,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset});return o},e.prototype.getPath=function(t){var n=cn(t,4),o=n[0],i=n[1],a=n[2],s=n[3];return"M ".concat(o.x," ").concat(o.y,` - C `).concat(i.x," ").concat(i.y,`, - `).concat(a.x," ").concat(a.y,`, - `).concat(s.x," ").concat(s.y)},e.prototype.initPoints=function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()},e.prototype.updatePoints=function(){var t=this.getControls(),n=t.sNext,o=t.ePre;this.updatePath(n,o)},e.prototype.updatePath=function(t,n){t=b(t),n=b(n);var o={x:this.startPoint.x,y:this.startPoint.y},i={x:this.endPoint.x,y:this.endPoint.y};if(!t||!n){var a=this.getControls();t=a.sNext,n=a.ePre}this.pointsList=[o,t,n,i],this.path=this.getPath(this.pointsList)},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,n){this.startPoint.x+=t,this.startPoint.y+=n;var o=cn(this.pointsList,3),i=o[1],a=o[2];i.x+=t,i.y+=n,this.updatePath(i,a)},e.prototype.moveEndPoint=function(t,n){this.endPoint.x+=t,this.endPoint.y+=n;var o=cn(this.pointsList,3),i=o[1],a=o[2];a.x+=t,a.y+=n,this.updatePath(i,a)},e.prototype.updateAdjustAnchor=function(t,n){var o;n==="sNext"?this.pointsList[1]=t:n==="ePre"&&(this.pointsList[2]=t),this.path=this.getPath(this.pointsList),!((o=this.text)===null||o===void 0)&&o.value&&this.setText(z({},this.text,this.textPosition))},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var n=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode,s=ar({start:n,end:o,sourceNode:i,targetNode:a,offset:this.offset}),d=s.sNext,l=s.ePre;this.pointsList=[n,d,l,o],this.initPoints()},dt([E],e.prototype,"path",void 0),dt([m],e.prototype,"initPoints",null),dt([m],e.prototype,"updatePoints",null),dt([m],e.prototype,"updateStartPoint",null),dt([m],e.prototype,"updateEndPoint",null),dt([m],e.prototype,"moveStartPoint",null),dt([m],e.prototype,"moveEndPoint",null),dt([m],e.prototype,"updateAdjustAnchor",null),dt([m],e.prototype,"getAdjustStart",null),dt([m],e.prototype,"getAdjustEnd",null),dt([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e}(rn),Vi=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),de=function(){return de=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},qi=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},_r=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Qi=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;nd)&&(a=d,i=s)}),i},e.prototype.getCrossPoint=function(t,n,o){var i;return t===F.HORIZONTAL?i={x:o.x,y:n.y}:t===F.VERTICAL&&(i={x:n.x,y:o.y}),i},e.prototype.removeCrossPoints=function(t,n,o){var i=o.map(function(y){return y});if(t===1){var a=i[t],s=i[n],d=i[t-1],l=nr(d,a,this.sourceNode);if(l){var u=rr(a,s,this.sourceNode);if(u){var f=or(a,s,this.sourceNode);f&&(i[t]=f,i.splice(t-1,1),t--,n--)}}else{var c=this.sourceNode.anchors;c.forEach(function(y){if(y.x===d.x&&y.x===a.x||y.y===d.y&&y.y===a.y){var _=pt(y.x,y.y,a.x,a.y),M=pt(d.x,d.y,a.x,a.y);_0?this.points=this.pointsList.map(function(t){return"".concat(t.x,",").concat(t.y)}).join(" "):this.updatePoints()},e.prototype.updatePoints=function(){var t=er({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=t,this.points=t.map(function(n){return"".concat(n.x,",").concat(n.y)}).join(" ")},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,n){this.startPoint.x+=t,this.startPoint.y+=n,this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveEndPoint=function(t,n){this.endPoint.x+=t,this.endPoint.y+=n,this.updatePoints()},e.prototype.updatePointsList=function(t,n){this.pointsList.forEach(function(a){a.x+=t,a.y+=n});var o=this.pointsList[0];this.startPoint=Object.assign({},o);var i=this.pointsList[this.pointsList.length-1];this.endPoint=Object.assign({},i),this.initPoints()},e.prototype.dragAppendStart=function(){this.draggingPointList=this.pointsList.map(function(t){return t})},e.prototype.dragAppendSimple=function(t,n){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,d=t.endIndex,l=t.direction,u=this.pointsList,f=u;return l===F.HORIZONTAL?(u[s]={x:i.x,y:i.y+n.y},u[d]={x:a.x,y:a.y+n.y},f=this.pointsList.map(function(c){return c})):l===F.VERTICAL&&(u[s]={x:i.x+n.x,y:i.y},u[d]={x:a.x+n.x,y:a.y},f=this.pointsList.map(function(c){return c})),this.updatePointsAfterDrag(f),this.draggingPointList=f,!((o=this.text)===null||o===void 0)&&o.value&&this.setText(z({},this.text,this.textPosition)),{start:z({},u[s]),end:z({},u[d]),startIndex:s,endIndex:d,direction:l}},e.prototype.dragAppend=function(t,n){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,d=t.endIndex,l=t.direction,u=this.pointsList;if(l===F.HORIZONTAL){u[s]={x:i.x,y:i.y+n.y},u[d]={x:a.x,y:a.y+n.y};var f=this.pointsList.map(function(v){return v});if(s!==0&&d!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,d,f)),s===0){var c={x:i.x,y:i.y+n.y},h=Tt(c,this.sourceNode);if(!h){var g=this.sourceNode.anchors;f=this.getDraggingPoints(l,"start",c,g,f)}}if(d===this.pointsList.length-1){var p={x:a.x,y:a.y+n.y},h=Tt(p,this.targetNode);if(!h){var g=this.targetNode.anchors;f=this.getDraggingPoints(l,"end",p,g,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}else if(l===F.VERTICAL){u[s]={x:i.x+n.x,y:i.y},u[d]={x:a.x+n.x,y:a.y};var f=this.pointsList.map(function(y){return y});if(s!==0&&d!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,d,f)),s===0){var c={x:i.x+n.x,y:i.y},h=Tt(c,this.sourceNode);if(!h){var g=this.sourceNode.anchors;f=this.getDraggingPoints(l,"start",c,g,f)}}if(d===this.pointsList.length-1){var p={x:a.x+n.x,y:a.y},h=Tt(p,this.targetNode);if(!h){var g=this.targetNode.anchors;f=this.getDraggingPoints(l,"end",p,g,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}return!((o=this.text)===null||o===void 0)&&o.value&&this.setText(z({},this.text,this.textPosition)),{start:z({},u[s]),end:z({},u[d]),startIndex:s,endIndex:d,direction:l}},e.prototype.dragAppendEnd=function(){if(this.draggingPointList){var t=Vr(Xt(this.points));this.pointsList=t.map(function(i){return i}),this.draggingPointList=[];var n=t[0];this.startPoint=z({},n);var o=t[t.length-1];this.endPoint=z({},o)}this.isDragging=!1},e.prototype.updatePointsAfterDrag=function(t){var n=this.updateCrossPoints(t);this.points=n.map(function(o){return"".concat(o.x,",").concat(o.y)}).join(" ")},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var n=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode;this.pointsList=er({x:n.x,y:n.y},{x:o.x,y:o.y},i,a,this.offset||0),this.initPoints()},Q([E],e.prototype,"dbClickPosition",void 0),Q([m],e.prototype,"initPoints",null),Q([m],e.prototype,"updatePoints",null),Q([m],e.prototype,"updateStartPoint",null),Q([m],e.prototype,"moveStartPoint",null),Q([m],e.prototype,"updateEndPoint",null),Q([m],e.prototype,"moveEndPoint",null),Q([m],e.prototype,"updatePointsList",null),Q([m],e.prototype,"dragAppendStart",null),Q([m],e.prototype,"dragAppendSimple",null),Q([m],e.prototype,"dragAppend",null),Q([m],e.prototype,"dragAppendEnd",null),Q([m],e.prototype,"updatePointsAfterDrag",null),Q([m],e.prototype,"getAdjustStart",null),Q([m],e.prototype,"getAdjustEnd",null),Q([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e}(rn),K=function(){return K=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},xr=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ta=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Dt=function(){function r(e,t){var n;this.BaseType=U.NODE,this.id="",this.type="",this.x=0,this.y=0,this.textMode=ht.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this._width=100,this._height=80,this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.anchorsOffset=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isShowAnchor=!1,this.isDragging=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.rotatable=!0,this.resizable=!0,this.zIndex=1,this.state=B.DEFAULT,this.autoToFront=!0,this.style={},this._rotate=0,this.modelType=j.NODE,this.additionStateData={},this.targetRules=[],this.sourceRules=[],this.moveRules=[],this.resizeRules=[],this.hasSetTargetRules=!1,this.hasSetSourceRules=!1,this.graphModel=t,this.properties=(n=e.properties)!==null&&n!==void 0?n:{},this.initNodeData(e),this.setAttributes()}return Object.defineProperty(r.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e;var t=this,n=t.x,o=n===void 0?0:n,i=t.y,a=i===void 0?0:i;this.transform=new nn(-o,-a).rotate(e).translate(o,a).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"incoming",{get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"outgoing",{get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}},enumerable:!1,configurable:!0}),r.prototype.initNodeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,n=t&&t(e.type),o=this.createId();e.id=o||n||It()}this.formatText(e),z(this,ui(e));var i=this.graphModel.overlapMode;i===ct.INCREASE&&(this.zIndex=e.zIndex||Un())},r.prototype.setAttributes=function(){},r.prototype.createId=function(){return null},r.prototype.setTextMode=function(e){this.textMode=e},r.prototype.formatText=function(e){var t,n,o,i=e.x,a=e.y,s=e.text,d={value:"",x:i,y:a,draggable:!1,editable:!0};s&&(typeof s=="string"?d.value=s:(d=K(K({},d),{x:(t=s.x)!==null&&t!==void 0?t:i,y:(n=s.y)!==null&&n!==void 0?n:a,value:(o=s.value)!==null&&o!==void 0?o:""}),Qt(s.draggable)||(d.draggable=s.draggable),Qt(s.editable)||(d.editable=s.editable))),e.text=d},r.prototype.resize=function(e){var t=e.width,n=e.height,o=e.deltaX,i=e.deltaY,a=this.isAllowResizeNode(o,i,t,n);return a?(this.move(o/2,i/2),this.width=t,this.height=n,this.setProperties({width:t,height:n}),this.getData()):this.getData()},r.prototype.proportionalResize=function(){},r.prototype.getData=function(){var e=this.text,t=e.x,n=e.y,o=e.value,i=this.properties;Wr(i)&&(i=vt(i)),Jt(i.width)&&(i.width=this.width),Jt(i.height)&&(i.height=this.height);var a={id:this.id,type:this.type,x:this.x,y:this.y,properties:i};return this.rotate&&(a.rotate=this.rotate),this.graphModel.overlapMode===ct.INCREASE&&(a.zIndex=this.zIndex),o&&(a.text={x:t,y:n,value:o}),a},r.prototype.getHistoryData=function(){return this.getData()},r.prototype.getProperties=function(){return vt(this.properties)},r.prototype.getOuterGAttributes=function(){return{className:""}},r.prototype.getNodeStyle=function(){return K(K({},this.graphModel.theme.baseNode),this.style)},r.prototype.getTextStyle=function(){var e=this.graphModel.theme.nodeText,t=this.properties.textStyle,n=t===void 0?{}:t;return K(K({},b(e)),b(n))},r.prototype.getRotateControlStyle=function(){var e=this.graphModel.theme.rotateControl;return b(e)},r.prototype.getResizeControlStyle=function(){var e=this.graphModel.theme.resizeControl;return b(e)},r.prototype.getResizeOutlineStyle=function(){var e=this.graphModel.theme.resizeOutline;return b(e)},r.prototype.getAnchorStyle=function(e){var t=this.graphModel.theme.anchor;return b(t)},r.prototype.getAnchorLineStyle=function(e){var t=this.graphModel.theme.anchorLine;return b(t)},r.prototype.getOutlineStyle=function(){var e=this.graphModel.theme.outline;return b(e)},r.prototype.isAllowConnectedAsSource=function(e,t,n,o){var i=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var a=!0,s="",d=0;d0?t.map(function(a,s){return a.length?(a=a,{id:"".concat(n,"_").concat(s),x:o+a[0],y:i+a[1]}):(a=a,K(K({},a),{x:o+a.x,y:i+a.y,id:a.id||"".concat(n,"_").concat(s)}))}):this.getDefaultAnchor()},r.prototype.getDefaultAnchor=function(){return[]},r.prototype.getTargetAnchor=function(e){return si(e,this)},r.prototype.getBounds=function(){return{minX:this.x-this.width/2,minY:this.y-this.height/2,maxX:this.x+this.width/2,maxY:this.y+this.height/2}},Object.defineProperty(r.prototype,"anchors",{get:function(){var e=this.getAnchorsByOffset(),t=this,n=t.x,o=t.y,i=t.rotate;return e.forEach(function(a){var s=a.x,d=a.y,l=ta(new en([s,d,1]).translate(-n,-o).rotate(i).translate(n,o)[0],2),u=l[0],f=l[1];a.x=u,a.y=f}),e},enumerable:!1,configurable:!0}),r.prototype.getAnchorInfo=function(e){if(!Jt(e))for(var t=0;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Er=function(r){ea(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.CIRCLE_NODE,o.r=50,o.initNodeData(t),o.setAttributes(),o}return Object.defineProperty(e.prototype,"width",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties.r;t&&(this.r=t)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.circle,o=this.properties.style,i=o===void 0?{}:o;return ue(ue(ue({},t),b(n)),b(i))},e.prototype.getDefaultAnchor=function(){var t=this,n=t.x,o=t.y,i=t.r;return[{x:n,y:o-i,id:"".concat(this.id,"_0")},{x:n+i,y:o,id:"".concat(this.id,"_1")},{x:n,y:o+i,id:"".concat(this.id,"_2")},{x:n-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var n=t.width,o=t.deltaX,i=t.deltaY;return this.move(o/2,i/2),this.r=n,this.setProperties({r:n}),this.getData()},pn([E],e.prototype,"r",void 0),pn([$],e.prototype,"width",null),pn([$],e.prototype,"height",null),e}(Dt),na=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),fe=function(){return fe=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},je=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Mr=function(r){na(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.DIAMOND_NODE,o.rx=30,o.ry=50,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.rx,o=t.ry;n&&(this.rx=n),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.diamond,o=this.properties.style,i=o===void 0?{}:o;return fe(fe(fe({},t),b(n)),b(i))},Object.defineProperty(e.prototype,"points",{get:function(){var t=this,n=t.x,o=t.y,i=t.rx,a=t.ry;return[[n,o-a],[n+i,o],[n,o+a],[n-i,o]]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointsPosition",{get:function(){return Ot(this.points,function(t){var n=je(t,2),o=n[0],i=n[1];return{x:o,y:i}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=je(o,1),a=i[0];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=je(o,2),a=i[1];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this;return Ot(this.points,function(n,o){var i=je(n,2),a=i[0],s=i[1];return{x:a,y:s,id:"".concat(t.id,"_").concat(o)}})},e.prototype.resize=function(t){var n=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=n,this.ry=o,this.setProperties({rx:n,ry:o}),this.getData()},$t([E],e.prototype,"rx",void 0),$t([E],e.prototype,"ry",void 0),$t([$],e.prototype,"points",null),$t([$],e.prototype,"pointsPosition",null),$t([$],e.prototype,"width",null),$t([$],e.prototype,"height",null),e}(Dt),ra=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ce=function(){return ce=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Or=function(r){ra(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.ELLIPSE_NODE,o.rx=30,o.ry=45,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.rx,o=t.ry;n&&(this.rx=n),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.ellipse,o=this.properties.style,i=o===void 0?{}:o;return ce(ce(ce({},t),b(n)),b(i))},Object.defineProperty(e.prototype,"width",{get:function(){return this.rx*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.ry*2},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,n=t.x,o=t.y,i=t.rx,a=t.ry;return[{x:n,y:o-a,id:"".concat(this.id,"_0")},{x:n+i,y:o,id:"".concat(this.id,"_1")},{x:n,y:o+a,id:"".concat(this.id,"_2")},{x:n-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var n=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=n,this.ry=o,this.setProperties({rx:n,ry:o}),this.getData()},Re([E],e.prototype,"rx",void 0),Re([E],e.prototype,"ry",void 0),Re([$],e.prototype,"width",null),Re([$],e.prototype,"height",null),e}(Dt),oa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),pe=function(){return pe=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Be=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Sr=function(r){oa(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.POLYGON_NODE,o.points=[[50,0],[100,50],[50,100],[0,50]],o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.points,o=t.width,i=t.height,a=n||this.points;this.points=ri(a,o,i)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.polygon,o=this.properties.style,i=o===void 0?{}:o;return pe(pe(pe({},t),b(n)),b(i))},Object.defineProperty(e.prototype,"pointsPosition",{get:function(){var t=this,n=t.x,o=t.y,i=t.width,a=t.height;return this.points.map(function(s){return{x:s[0]+n-i/2,y:s[1]+o-a/2}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Be(o,1),a=i[0];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Be(o,2),a=i[1];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,n=this,o=n.x,i=n.y,a=n.width,s=n.height,d=n.points;return d.map(function(l,u){var f=Be(l,2),c=f[0],h=f[1];return{x:o+c-a/2,y:i+h-s/2,id:"".concat(t.id,"_").concat(u)}})},e.prototype.resize=function(t){var n=this,o=t.width,i=t.height,a=t.deltaX,s=t.deltaY;this.move(a/2,s/2);var d=Ot(this.points,function(l){var u=Be(l,2),f=u[0],c=u[1];return[f*o/n.width,c*i/n.height]});return this.points=d,this.properties.points=d,this.getData()},Ie([E],e.prototype,"points",void 0),Ie([$],e.prototype,"pointsPosition",null),Ie([$],e.prototype,"width",null),Ie([$],e.prototype,"height",null),e}(Dt),ia=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),he=function(){return he=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},wr=function(r){ia(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.RECT_NODE,o.radius=0,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.width,o=t.height,i=t.radius;Jt(n)||(this.width=n),Jt(o)||(this.height=o),Jt(i)||(this.radius=i)},e.prototype.getDefaultAnchor=function(){var t=this,n=t.x,o=t.y,i=t.width,a=t.height;return[{x:n,y:o-a/2,id:"".concat(this.id,"_0")},{x:n+i/2,y:o,id:"".concat(this.id,"_1")},{x:n,y:o+a/2,id:"".concat(this.id,"_2")},{x:n-i/2,y:o,id:"".concat(this.id,"_3")}]},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.rect,o=this.properties.style,i=o===void 0?{}:o;return he(he(he({},t),b(n)),b(i))},aa([E],e.prototype,"radius",void 0),e}(Dt),sa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ye=function(){return ye=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},da=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},la=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},fa={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,allowRotate:!1,allowResize:!1,nodeSelectedOutline:!0,textEdit:!1,nodeTextEdit:!1,edgeTextEdit:!1,textDraggable:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},Xe=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustEdgeStart","adjustEdgeEnd","adjustNodePosition","hideAnchors","allowRotate","allowResize","autoExpand","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","textEdit","nodeTextEdit","edgeTextEdit","textDraggable","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","textMode","nodeTextMode","edgeTextMode","nodeTextMultiple","edgeTextMultiple","nodeTextVertical","edgeTextVertical"],ca=function(){function r(e){this.isSilentMode=!1,this.stopZoomGraph=!1,this.stopMoveGraph=!1,this.stopScrollGraph=!1,this.textMode=ht.TEXT,this.textEdit=!0,this.textDraggable=!1,this.nodeTextEdit=!0,this.nodeTextDraggable=!1,this.nodeTextMultiple=!1,this.nodeTextVertical=!1,this.nodeTextMode=ht.TEXT,this.edgeTextMode=ht.TEXT,this.edgeTextEdit=!0,this.edgeTextDraggable=!1,this.edgeTextMultiple=!1,this.edgeTextVertical=!1,this.hideAnchors=!1,this.allowRotate=!1,this.allowResize=!1,this.hoverOutline=!0,this.nodeSelectedOutline=!0,this.adjustNodePosition=!0,this.autoExpand=!1,this.adjustEdge=!0,this.adjustEdgeMiddle=!1,this.adjustEdgeStartAndEnd=!1,this.adjustEdgeStart=!1,this.adjustEdgeEnd=!1,this.edgeSelectedOutline=!0,this.multipleSelectKey="",z(this,this.computeConfig(e))}return r.prototype.updateEditConfig=function(e){var t=this.computeConfig(e);z(this,t)},r.prototype.computeConfig=function(e){var t=e.isSilentMode,n=e.textDraggable,o=e.textMode,i=e.textEdit,a=e.adjustEdgeStartAndEnd,s={};if(t===!1&&z(s,this.stagedConfig),t===!0&&t!==this.isSilentMode){var d=Zt(fa,Xe);this.stagedConfig=Zt(this,Xe),z(s,d)}Qt(i)||z(s,{nodeTextEdit:i,edgeTextEdit:i}),Qt(n)||z(s,{nodeTextDraggable:n,edgeTextDraggable:n}),o&&z(s,{nodeTextMode:o,edgeTextMode:o}),yo(a)&&z(s,{adjustEdgeStart:a,adjustEdgeEnd:a});var l=Zt(e,Xe);return z(s,l)},r.prototype.updateTextMode=function(e){this.textMode=e,this.edgeTextMode=e,this.nodeTextMode=e},r.prototype.getConfig=function(){return Zt(this,Xe)},X([E],r.prototype,"isSilentMode",void 0),X([E],r.prototype,"stopZoomGraph",void 0),X([E],r.prototype,"stopMoveGraph",void 0),X([E],r.prototype,"stopScrollGraph",void 0),X([E],r.prototype,"textMode",void 0),X([E],r.prototype,"textEdit",void 0),X([E],r.prototype,"textDraggable",void 0),X([E],r.prototype,"nodeTextEdit",void 0),X([E],r.prototype,"nodeTextDraggable",void 0),X([E],r.prototype,"nodeTextMultiple",void 0),X([E],r.prototype,"nodeTextVertical",void 0),X([E],r.prototype,"nodeTextMode",void 0),X([E],r.prototype,"edgeTextMode",void 0),X([E],r.prototype,"edgeTextEdit",void 0),X([E],r.prototype,"edgeTextDraggable",void 0),X([E],r.prototype,"edgeTextMultiple",void 0),X([E],r.prototype,"edgeTextVertical",void 0),X([E],r.prototype,"hideAnchors",void 0),X([E],r.prototype,"allowRotate",void 0),X([E],r.prototype,"allowResize",void 0),X([E],r.prototype,"hoverOutline",void 0),X([E],r.prototype,"nodeSelectedOutline",void 0),X([E],r.prototype,"adjustNodePosition",void 0),X([E],r.prototype,"autoExpand",void 0),X([E],r.prototype,"adjustEdge",void 0),X([E],r.prototype,"adjustEdgeMiddle",void 0),X([E],r.prototype,"adjustEdgeStartAndEnd",void 0),X([E],r.prototype,"adjustEdgeStart",void 0),X([E],r.prototype,"adjustEdgeEnd",void 0),X([E],r.prototype,"edgeSelectedOutline",void 0),X([m],r.prototype,"updateEditConfig",null),X([m],r.prototype,"updateTextMode",null),r}(),pa="*",ha=function(){function r(){this._events={}}return r.prototype.on=function(e,t,n){var o=this;e==null||e.split(",").forEach(function(i){i=i.trim(),o._events[i]||(o._events[i]=[]),o._events[i].push({callback:t,once:!!n})})},r.prototype.once=function(e,t){var n=this;e==null||e.split(",").forEach(function(o){o=o.trim(),n.on(o,t,!0)})},r.prototype.emit=function(e,t){var n=this;e==null||e.split(",").forEach(function(o){var i=n._events[o]||[],a=n._events[pa]||[],s=function(d){for(var l=d.length,u=0;u=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},q=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},ot=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ga=function(){function r(e){this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=e}return r.prototype.getStyle=function(){return jt({},this.graphModel.theme.snapline)},r.prototype.getCenterSnapLine=function(e,t){for(var n=e.x,o=e.y,i=!1,a=!1,s=0;s=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ut=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},va={false:[-1/0,-1/0,1/0,1/0],true:[-1/0,-1/0,1/0,1/0],vertical:[-1/0,0,1/0,0],horizontal:[0,-1/0,0,1/0]},_a=function(){function r(e,t){this.MINI_SCALE_SIZE=.2,this.MAX_SCALE_SIZE=16,this.SCALE_X=1,this.SKEW_Y=0,this.SKEW_X=0,this.SCALE_Y=1,this.TRANSLATE_X=0,this.TRANSLATE_Y=0,this.ZOOM_SIZE=.04,this.translateLimitMinX=-1/0,this.translateLimitMinY=-1/0,this.translateLimitMaxX=1/0,this.translateLimitMaxY=1/0,this.eventCenter=e;var n=t.stopMoveGraph,o=n===void 0?!1:n;this.updateTranslateLimits(o)}return r.prototype.setZoomMiniSize=function(e){this.MINI_SCALE_SIZE=e},r.prototype.setZoomMaxSize=function(e){this.MAX_SCALE_SIZE=e},r.prototype.HtmlPointToCanvasPoint=function(e){var t=Ut(e,2),n=t[0],o=t[1];return[(n-this.TRANSLATE_X)/this.SCALE_X,(o-this.TRANSLATE_Y)/this.SCALE_Y]},r.prototype.CanvasPointToHtmlPoint=function(e){var t=Ut(e,2),n=t[0],o=t[1];return[n*this.SCALE_X+this.TRANSLATE_X,o*this.SCALE_Y+this.TRANSLATE_Y]},r.prototype.moveCanvasPointByHtml=function(e,t,n){var o=Ut(e,2),i=o[0],a=o[1];return[i+t/this.SCALE_X,a+n/this.SCALE_Y]},r.prototype.fixDeltaXY=function(e,t){return[e/this.SCALE_X,t/this.SCALE_Y]},r.prototype.getTransformStyle=function(){var e=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(e,")")}},r.prototype.zoom=function(e,t){e===void 0&&(e=!1);var n=this.SCALE_X,o=this.SCALE_Y;return typeof e=="number"?(n=e,o=e):e?(n+=this.ZOOM_SIZE,o+=this.ZOOM_SIZE):(n-=this.ZOOM_SIZE,o-=this.ZOOM_SIZE),nthis.MAX_SCALE_SIZE?"".concat(this.SCALE_X*100,"%"):(t&&(this.TRANSLATE_X-=(n-this.SCALE_X)*t[0],this.TRANSLATE_Y-=(o-this.SCALE_Y)*t[1]),this.SCALE_X=n,this.SCALE_Y=o,this.emitGraphTransform("zoom"),"".concat(this.SCALE_X*100,"%"))},r.prototype.emitGraphTransform=function(e){this.eventCenter.emit(T.GRAPH_TRANSFORM,{type:e,transform:{SCALE_X:this.SCALE_X,SKEW_Y:this.SKEW_Y,SKEW_X:this.SKEW_X,SCALE_Y:this.SCALE_Y,TRANSLATE_X:this.TRANSLATE_X,TRANSLATE_Y:this.TRANSLATE_Y}})},r.prototype.resetZoom=function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform("resetZoom")},r.prototype.translate=function(e,t){this.TRANSLATE_X+e<=this.translateLimitMaxX&&this.TRANSLATE_X+e>=this.translateLimitMinX&&(this.TRANSLATE_X+=e),this.TRANSLATE_Y+t<=this.translateLimitMaxY&&this.TRANSLATE_Y+t>=this.translateLimitMinY&&(this.TRANSLATE_Y+=t),this.emitGraphTransform("translate")},r.prototype.focusOn=function(e,t,n,o){var i=Ut(this.CanvasPointToHtmlPoint([e,t]),2),a=i[0],s=i[1],d=Ut([n/2-a,o/2-s],2),l=d[0],u=d[1];this.TRANSLATE_X+=l,this.TRANSLATE_Y+=u,this.emitGraphTransform("focusOn")},r.prototype.updateTranslateLimits=function(e){var t;t=Ut(Array.isArray(e)&&e.length===4?e:va[e.toString()],4),this.translateLimitMinX=t[0],this.translateLimitMinY=t[1],this.translateLimitMaxX=t[2],this.translateLimitMaxY=t[3]},lt([E],r.prototype,"SCALE_X",void 0),lt([E],r.prototype,"SKEW_Y",void 0),lt([E],r.prototype,"SKEW_X",void 0),lt([E],r.prototype,"SCALE_Y",void 0),lt([E],r.prototype,"TRANSLATE_X",void 0),lt([E],r.prototype,"TRANSLATE_Y",void 0),lt([E],r.prototype,"ZOOM_SIZE",void 0),lt([m],r.prototype,"zoom",null),lt([m],r.prototype,"resetZoom",null),lt([m],r.prototype,"translate",null),lt([m],r.prototype,"focusOn",null),r}(),ma=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Dn=function(){return Dn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ea=function(r){ma(e,r);function e(t){var n=r.call(this)||this;n.stepScrollX=0,n.stepScrollY=0,n.onDragging=function(s){var d=s.deltaX,l=s.deltaY;n.setState({isDragging:!0});var u=n.props.graphModel,f=u.transformModel,c=u.editConfigModel;c.stopMoveGraph!==!0&&f.translate(d,l)},n.onDragEnd=function(){n.setState({isDragging:!1})},n.zoomHandler=function(s){var d=n.props,l=d.graphModel,u=l.editConfigModel,f=l.transformModel,c=l.gridSize,h=d.graphModel,g=s.deltaX,p=s.deltaY;if(!u.stopScrollGraph&&!s.ctrlKey&&!s.metaKey){if(s.preventDefault(),n.stepScrollX+=g,n.stepScrollY+=p,Math.abs(n.stepScrollX)>=c){var v=n.stepScrollX%c,y=n.stepScrollX-v;f.translate(-y*f.SCALE_X,0),n.stepScrollX=v}if(Math.abs(n.stepScrollY)>=c){var _=n.stepScrollY%c,M=n.stepScrollY-_;f.translate(0,-M*f.SCALE_Y),n.stepScrollY=_}return}if(!u.stopZoomGraph){s.preventDefault();var S=h.getPointByClient({x:s.clientX,y:s.clientY}),O=S.canvasOverlayPosition,w=O.x,A=O.y;f.zoom(s.deltaY<0,[w,A])}},n.clickHandler=function(s){var d=s.target;if(d.getAttribute("name")==="canvas-overlay"){var l=n.props.graphModel,u=l.selectElements;u.size>0&&l.clearSelectElements(),l.eventCenter.emit(T.BLANK_CLICK,{e:s})}},n.handleContextMenu=function(s){var d=s.target;if(d.getAttribute("name")==="canvas-overlay"){s.preventDefault();var l=n.props.graphModel,u=l.getPointByClient({x:s.clientX,y:s.clientY});l.eventCenter.emit(T.BLANK_CONTEXTMENU,{e:s,position:u})}},n.mouseDownHandler=function(s){var d=n.props.graphModel,l=d.eventCenter,u=d.editConfigModel,f=d.transformModel.SCALE_X,c=d.gridSize,h=s.target,g=!u.adjustEdge&&!u.adjustNodePosition;(h.getAttribute("name")==="canvas-overlay"||g)&&(u.stopMoveGraph!==!0?(n.stepDrag.setStep(c*f),n.stepDrag.handleMouseDown(s)):l.emit(T.BLANK_MOUSEDOWN,{e:s}),n.clickHandler(s))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter;return n.stepDrag=new xt({onDragging:n.onDragging,onDragEnd:n.onDragEnd,step:i,eventType:"BLANK",isStopPropagation:!1,eventCenter:a,model:void 0}),n.state={isDragging:!1},n}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,n=t.getTransformStyle().transform,o=this.props,i=o.children,a=o.dnd,s=this.state.isDragging;return x("svg",Dn({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:s?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},a.eventMap(),{children:x("g",{transform:n,children:i})}))},e=xa([at],e),e}(V),ao=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),we=function(){return we=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Oa=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Nr=function(r){ao(e,r);function e(){var t=r.call(this)||this;return t.onDragging=function(n){var o=n.event,i=t.props,a=i.graphModel,s=i.bezierModel,d=i.type,l=a.getPointByClient({x:o.clientX,y:o.clientY}).canvasOverlayPosition,u=l.x,f=l.y;s.updateAdjustAnchor({x:u,y:f},d),a.eventCenter.emit(T.EDGE_ADJUST,{data:s.getData()})},t.onDragEnd=function(){var n=t.props.bezierModel;n.isDragging=!1},t.dragHandler=new xt({onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.render=function(){var t=this,n=this.props.position,o=n.x,i=n.y,a=this.props.bezierModel,s=a.getEdgeStyle().adjustAnchor;return x(ne,we({className:"lf-bezier-adjust-anchor",x:o,y:i},s,{onMouseDown:function(d){t.dragHandler.handleMouseDown(d)}}))},e}(V),Sa=function(r){ao(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getBezierAdjust=function(t,n){var o=t.path,i=t.id,a=Fn(o),s=Oa(a,4),d=s[0],l=s[1],u=s[2],f=s[3],c=t.getEdgeStyle().adjustLine,h=[];return h.push(x(ee,we({x1:d.x,y1:d.y,x2:l.x,y2:l.y},c))),h.push(x(Nr,{position:l,bezierModel:t,graphModel:n,type:"sNext"},"".concat(i,"_ePre"))),h.push(x(ee,we({x1:f.x,y1:f.y,x2:u.x,y2:u.y},c))),h.push(x(Nr,{position:u,bezierModel:t,graphModel:n,type:"ePre"},"".concat(i,"_sNext"))),h},e.prototype.selectedBezierEdge=function(){for(var t=this.props.graphModel,n=t.edges,o=[],i=0;i=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Na=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Da=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},La=function(r){ba(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,n=t.getTransformStyle().transform,o=this.props.children;return x("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay",children:x("g",{transform:n,children:o})})},e=Ca([at],e),e}(V),ja=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),St=function(){return St=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ia=function(r){ja(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getNodesOutline=function(){var t=this.props.graphModel,n=t.nodes,o=t.editConfigModel,i=o.hoverOutline,a=o.nodeSelectedOutline,s=[];return n.forEach(function(d){if(d.isHovered||d.isSelected){var l=d.isHovered,u=d.isSelected,f=d.x,c=d.y,h=d.width,g=d.height;if(a&&u||i&&l){var p=d.getOutlineStyle(),v={};if(Object.keys(p).forEach(function(_){_!=="hover"&&(v[_]=p[_])}),l){var y=p.hover;v=St(St({},v),y)}s.push(x(mt,St({transform:d.transform,className:"lf-outline-node",x:f,y:c,width:h+10,height:g+10},v)))}}}),s},e.prototype.getEdgeOutline=function(){for(var t=this.props.graphModel,n=t.edges,o=t.editConfigModel,i=o.edgeSelectedOutline,a=o.hoverOutline,s=[],d=0;d=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ya=function(r){Ba(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.snaplineModel,n=t??{},o=n.position,i=n.isShowHorizontal,a=n.isShowVertical,s=t==null?void 0:t.getStyle(),d=o??{},l=d.x,u=l===void 0?0:l,f=d.y,c=f===void 0?0:f,h=wt(wt({x1:-1e5,y1:c,x2:1e5,y2:c},s),{stroke:i?s==null?void 0:s.stroke:"none"}),g=wt(wt({x1:u,y1:-1e5,x2:u,y2:1e5},s),{stroke:a?s==null?void 0:s.stroke:"none"});return x("g",{className:"lf-snapline",children:[x(ee,wt({},h)),x(ee,wt({},g))]})},e=Xa([at],e),e}(V),Ha=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ka=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},za=function(r){Ha(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){this.triggerToolRender()},e.prototype.componentDidUpdate=function(){this.triggerToolRender()},e.prototype.getTools=function(){var t=this.props,n=t.tool,o=t.graphModel,i=o.textEditElement,a=n.getTools(),s=a.map(function(d){return Gr(d,{textEditElement:i,graphModel:o,lf:n.instance})});return n.components=s,s},e.prototype.triggerToolRender=function(){var t=this.props,n=t.tool,o=t.graphModel,i=document.querySelector("#ToolOverlay_".concat(o.flowId)),a=n.getInstance();a.components.forEach(function(s){return s(a,i)}),a.components=[]},e.prototype.render=function(){var t=this.props.graphModel;return x("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(t.flowId),children:this.getTools()})},e=ka([at],e),e}(V),Ga=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),bn=function(){return bn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},$a=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Ua=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Ka=function(r){Za(e,r);function e(){var t=r.call(this)||this;return t.onDragStart=function(n){var o=n.event,i=t.props,a=i.anchorData,s=i.nodeModel,d=i.graphModel;d.selectNodeById(s.id),s.autoToFront&&d.toFront(s.id),d.eventCenter.emit(T.ANCHOR_DRAGSTART,{data:a,e:o,nodeModel:s}),t.setState({startX:a.x,startY:a.y,endX:a.x,endY:a.y})},t.onDragging=function(n){var o=n.event,i=t.props,a=i.graphModel,s=i.nodeModel,d=i.anchorData,l=a.transformModel,u=a.eventCenter,f=a.width,c=a.height,h=a.editConfigModel,g=h.autoExpand,p=h.stopMoveGraph;if(o){var v=o.clientX,y=o.clientY,_=a.getPointByClient({x:v,y}),M=_.domOverlayPosition,S=M.x,O=M.y,w=_.canvasOverlayPosition,A=w.x,C=w.y;t.t&&Ke(t.t);var I=[],L=10;S<10?I=[L,0]:S+10>f?I=[-10,0]:O<10?I=[0,L]:O+10>c&&(I=[0,-10]),t.setState({endX:A,endY:C,dragging:!0}),t.moveAnchorEnd(A,C),I.length>0&&!p&&g&&(t.t=eo(function(){var G=Va(I,2),R=G[0],Y=G[1];l.translate(R,Y);var H=t.state,rt=H.endX,st=H.endY;t.setState({endX:rt-R,endY:st-Y}),t.moveAnchorEnd(rt-R,st-Y)})),u.emit(T.ANCHOR_DRAG,{data:d,e:o,nodeModel:s})}},t.onDragEnd=function(n){var o=n.event;t.t&&Ke(t.t);var i=t.checkEnd(o);t.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),t.sourceRuleResults.clear(),t.targetRuleResults.clear();var a=t.props,s=a.graphModel,d=a.nodeModel,l=a.anchorData;i&&s.eventCenter.emit(T.ANCHOR_DRAGEND,{data:l,e:o,nodeModel:d,edgeModel:i})},t.checkEnd=function(n){var o,i=t.props,a=i.graphModel,s=i.nodeModel,d=i.anchorData,l=d.x,u=d.y,f=d.id,c=t.state,h=c.endX,g=c.endY,p=c.dragging,v=Ze({x:h,y:g},a);if(t.preTargetNode&&t.preTargetNode.state!==B.DEFAULT&&t.preTargetNode.setElementState(B.DEFAULT),!!p&&v&&v.node){var y=v.node,_=v.anchor.id,M="".concat(s.id,"_").concat(y.id,"_").concat(_,"_").concat(f),S=t.sourceRuleResults.get(M)||{},O=S.isAllPass,w=S.msg,A=t.targetRuleResults.get(M)||{},C=A.isAllPass,I=A.msg;if(O&&C){y.setElementState(B.DEFAULT);var L=a.getNodeModelById(v.node.id),G=(o=a.edgeGenerator)===null||o===void 0?void 0:o.call(a,s.getData(),L==null?void 0:L.getData()),R=a.addEdge(gt(gt({},G),{sourceNodeId:s.id,sourceAnchorId:f,startPoint:{x:l,y:u},targetNodeId:v.node.id,targetAnchorId:v.anchor.id,endPoint:{x:v.anchor.x,y:v.anchor.y}})),Y=t.props.anchorData;return a.eventCenter.emit(T.ANCHOR_DROP,{data:Y,e:n,nodeModel:s,edgeModel:R}),R}var H=y.getData();return a.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:H,msg:I||w||"不允许添加连线"}),null}},t.sourceRuleResults=new Map,t.targetRuleResults=new Map,t.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},t.dragHandler=new xt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.getAnchorShape=function(){var t=this.props,n=t.anchorData,o=t.style,i=t.node,a=i.getAnchorShape(n);if(a)return a;var s=n.x,d=n.y,l=gt(gt({},o),o==null?void 0:o.hover);return x("g",{children:[x(ne,gt({className:"lf-node-anchor-hover"},l,{x:s,y:d})),x(ne,gt({className:"lf-node-anchor"},o,{x:s,y:d}))]})},Object.defineProperty(e.prototype,"customTrajectory",{get:function(){var t=this.props.graphModel.customTrajectory;return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relateEdges",{get:function(){var t=this.props,n=t.graphModel,o=n.getAnchorIncomingEdge,i=n.getAnchorOutgoingEdge,a=t.anchorData.id;return{incomingEdgeList:o(a),outgoingEdgeList:i(a)}},enumerable:!1,configurable:!0}),e.prototype.moveAnchorEnd=function(t,n){var o,i,a=this.props,s=a.graphModel,d=a.nodeModel,l=a.anchorData,u=Ze({x:t,y:n},s);if(u){var f=u.node,c=u.anchor.id;if(this.preTargetNode&&this.preTargetNode!==u.node&&this.preTargetNode.setElementState(B.DEFAULT),l.id===c)return;this.preTargetNode=f;var h="".concat(d.id,"_").concat(f.id,"_").concat(c,"_").concat(l.id);if(!this.targetRuleResults.has(h)){var g=u.anchor,p=d.isAllowConnectedAsSource(f,l,g),v=f.isAllowConnectedAsTarget(d,l,g);this.sourceRuleResults.set(h,Ve(p)),this.targetRuleResults.set(h,Ve(v))}var y=((o=this.sourceRuleResults.get(h))!==null&&o!==void 0?o:{}).isAllPass,_=((i=this.targetRuleResults.get(h))!==null&&i!==void 0?i:{}).isAllPass;y&&_?f.setElementState(B.ALLOW_CONNECT):f.setElementState(B.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==B.DEFAULT&&this.preTargetNode.setElementState(B.DEFAULT)},e.prototype.isShowLine=function(){var t=this.state,n=t.startX,o=t.startY,i=t.endX,a=t.endY,s=pt(n,o,i,a);return s>10},e.prototype.render=function(){var t=this,n=this.state,o=n.startX,i=n.startY,a=n.endX,s=n.endY,d=this.props,l=d.anchorData.edgeAddable,u=d.edgeStyle;return x("g",{className:"lf-anchor",children:[x("g",{onMouseDown:function(f){l!==!1&&t.dragHandler.handleMouseDown(f)},children:this.getAnchorShape()}),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(gt({sourcePoint:{x:o,y:i},targetPoint:{x:a,y:s}},u)):x(ee,gt({x1:o,y1:i,x2:a,y2:s},u,{"pointer-events":"none"})))]})},e}(V),qa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Cn=function(){return Cn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},so=function(r){Qa(e,r);function e(t){var n=r.call(this)||this;n.mouseDownHandler=function(i){var a=n.props,s=a.draggable,d=a.model,l=a.graphModel,u=l.editConfigModel.nodeTextDraggable;(s??u)&&(n.stepperDrag.model=d,n.stepperDrag.handleMouseDown(i))},n.onDragging=function(i){var a=i.deltaX,s=i.deltaY,d=n.props,l=d.model,u=d.graphModel.transformModel;if(a&&s){var f=ts(u.fixDeltaXY(a,s),2),c=f[0],h=f[1];l.moveText(c,h)}},n.dbClickHandler=function(){var i=n.props,a=i.editable,s=i.graphModel.eventCenter,d=i.model;a&&d.setElementState(B.TEXT_EDIT),s.emit(T.TEXT_DBCLICK,{data:d.text,model:d})};var o=t.draggable;return n.stepperDrag=new xt({onDragging:n.onDragging,step:1,eventType:"TEXT",isStopPropagation:o}),n}return e.prototype.getShape=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=n.text,s=a.value,d=a.x,l=a.y,u=a.editable,f=a.draggable,c={x:d,y:l,className:"",value:s},h=n.getTextStyle(),g=i.nodeTextDraggable||f;return x(no,Ln({},c,h,{className:Ao({"lf-element-text":u,"lf-text-draggable":!u&&g,"lf-text-disabled":!u&&!g}),model:n}))},e.prototype.render=function(){var t=this.props.model.text;if(t)return x("g",{onMouseDown:this.mouseDownHandler,onDblClick:this.dbClickHandler,children:this.getShape()})},e}(V),es=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ut=function(){return ut=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},ns=function(r){es(e,r);function e(t){var n=r.call(this,t)||this;return n.setHoverOn=function(){n.setState({isHovered:!0})},n.setHoverOff=function(){n.setState({isHovered:!1})},n.state={isHovered:!1},n}return e.prototype.getBackground=function(){var t=this.state.isHovered,n=this.props.model,o=n.text,i=n.getTextStyle(),a=i.background||{};if(t&&i.hover&&i.hover.background&&(a=ut(ut({},a),i.hover.background)),o!=null&&o.value&&(a==null?void 0:a.fill)!=="transparent"){var s=i.fontSize,d=i.textWidth,l=i.lineHeight,u=i.overflowMode,f=a.wrapPadding,c=o==null?void 0:o.value.split(/[\r\n]/g),h=c.length,g=o.x,p=o.y,v={};if(u==="autoWrap"&&d){var y=to({rows:c,style:{fontSize:"".concat(s,"px"),width:"".concat(d,"px"),lineHeight:l,padding:f},rowsLength:h,className:"lf-get-text-height"});v=ut(ut({},a),{x:g,y:p,width:d,height:y})}else{var _=ni({rows:c,rowsLength:h,fontSize:s}),M=_.width,S=_.height;if(u==="ellipsis"&&(M=d,S=s+2),typeof a.wrapPadding=="string"){var O=a.wrapPadding.split(",").filter(function(et){return et.trim()}).map(function(et){return parseFloat(et.trim())});if(O.length>0&&O.length<=4){if(O.length===1){var w=Ye(O,1),A=w[0];O=[A,A,A,A]}else if(O.length===2){var C=Ye(O,2),I=C[0],L=C[1];O=[I,L,I,L]}else if(O.length===3){var G=Ye(O,3),R=G[0],L=G[1],Y=G[2];O=[R,L,Y,L]}var H=Ye(O,4),rt=H[0],st=H[1],Ct=H[2],Yt=H[3];M+=st+Yt,S+=rt+Ct,g=g+(st-Yt)/2,p=p+(Ct-rt)/2}}v=ut(ut({},a),{x:g-1,y:p-1,width:M,height:S})}return x(mt,ut({},v))}return null},e.prototype.getShape=function(){var t=this.props.model,n=t.text,o=n.x,i=n.y,a=n.value;if(!a)return null;var s=t.getTextStyle(),d=ut({x:o,y:i,value:a,model:t,className:"lf-element-text"},s);return x("g",{className:"lf-line-text",onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,children:[this.getBackground(),x(no,ut({},d))]})},e}(so),rs=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Je=function(){return Je=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},bt=function(r){rs(e,r);function e(t){var n=r.call(this)||this;n.onDragStart=function(d){var l=d.event,u=n.props,f=u.model,c=u.graphModel;if(l){var h=c.getPointByClient({x:l.clientX,y:l.clientY}).canvasOverlayPosition,g=h.x,p=h.y;n.moveOffset={dx:f.x-g,dy:f.y-p}}},n.onDragging=function(d){var l,u,f,c,h=d.event,g=n.props,p=g.model,v=g.graphModel,y=v.editConfigModel,_=y.stopMoveGraph,M=y.autoExpand,S=v.transformModel,O=v.selectNodes,w=v.width,A=v.height,C=v.gridSize;p.isDragging=!0;var I=h,L=I.clientX,G=I.clientY,R=v.getPointByClient({x:L,y:G}).canvasOverlayPosition,Y=R.x,H=R.y,rt=He(S.CanvasPointToHtmlPoint([Y,H]),2),st=rt[0],Ct=rt[1];if(Y=Y+((u=(l=n.moveOffset)===null||l===void 0?void 0:l.dx)!==null&&u!==void 0?u:0),H=H+((c=(f=n.moveOffset)===null||f===void 0?void 0:f.dy)!==null&&c!==void 0?c:0),Y=te(Y,C),H=te(H,C),!w||!A){v.moveNode2Coordinate(p.id,Y,H);return}var Yt=st<0||Ct<0||st>w||Ct>A;if(!(M&&!_&&Yt)){var et=He(S.CanvasPointToHtmlPoint([Y-p.width/2,H-p.height/2]),2),Et=et[0],re=et[1],Ae=He(S.CanvasPointToHtmlPoint([Y+p.width/2,H+p.height/2]),2),an=Ae[0],sn=Ae[1],Pe=Math.max(C,20),Ht=[];Et<0?Ht=[Pe,0]:an>v.width?Ht=[-Pe,0]:re<0?Ht=[0,Pe]:sn>v.height&&(Ht=[0,-Pe]),n.t&&Ke(n.t),p.transform=new nn(-Y,-H).rotate(p.rotate).translate(Y,H).toString();var Te=O.map(function(Ne){return Ne.id});Te.indexOf(p.id)===-1&&(Te=[p.id]),Ht.length>0&&!_&&M?n.t=eo(function(){var Ne=He(Ht,2),kt=Ne[0],zt=Ne[1];S.translate(kt??0,zt??0);var lo=-(kt??0)/S.SCALE_X,uo=-(zt??0)/S.SCALE_X;v.moveNodes(Te,lo,uo)}):v.moveNodes(Te,Y-p.x,H-p.y)}},n.onDragEnd=function(){n.t&&Ke(n.t);var d=n.props.model;d.isDragging=!1},n.onMouseOut=function(d){Co()&&n.setHoverOff(d)},n.handleMouseUp=function(){var d=n.props.model;n.mouseUpDrag=d.isDragging},n.handleClick=function(d){var l=n.mouseUpDrag===!1;if(n.startTime){var u=n.props,f=u.model,c=u.graphModel;if(l){var h=f.getData(),g=c.getPointByClient({x:d.clientX,y:d.clientY}),p={data:h,e:d,position:g,isSelected:!1,isMultiple:!1},v=d.button===2,y=d.detail===2;if(!v){var _=c.editConfigModel,M=Jr(d,_);p.isMultiple=M,f.isSelected&&!y&&M?(p.isSelected=!1,f.setSelected(!1)):(c.selectNodeById(f.id,M),p.isSelected=!0,n.toFront()),y?(_.nodeTextEdit&&f.text.editable&&(f.setSelected(!1),c.setElementStateById(f.id,B.TEXT_EDIT)),c.eventCenter.emit(T.NODE_DBCLICK,p)):(c.eventCenter.emit(T.ELEMENT_CLICK,p),c.eventCenter.emit(T.NODE_CLICK,p))}}}},n.handleContextMenu=function(d){d.preventDefault();var l=n.props,u=l.model,f=l.graphModel,c=u.getData(),h=f.getPointByClient({x:d.clientX,y:d.clientY});f.setElementStateById(u.id,B.SHOW_MENU,h.domOverlayPosition),u.isSelected||f.selectNodeById(u.id),f.eventCenter.emit(T.NODE_CONTEXTMENU,{data:c,e:d,position:h}),n.toFront()},n.handleMouseDown=function(d){var l=n.props,u=l.model,f=l.graphModel;n.startTime=new Date().getTime();var c=f.editConfigModel;c.adjustNodePosition&&u.draggable&&n.stepDrag&&n.stepDrag.handleMouseDown(d)},n.setHoverOn=function(d){var l=n.props,u=l.model,f=l.graphModel;if(!u.isHovered){var c=u.getData();u.setHovered(!0),f.eventCenter.emit(T.NODE_MOUSEENTER,{data:c,e:d})}},n.setHoverOff=function(d){var l=n.props,u=l.model,f=l.graphModel,c=u.getData();u.isHovered&&(u.setHovered(!1),f.eventCenter.emit(T.NODE_MOUSELEAVE,{data:c,e:d}))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter,s=t.model;return n.stepDrag=new xt({onDragStart:n.onDragStart,onDragging:n.onDragging,onDragEnd:n.onDragEnd,step:i,eventType:"NODE",isStopPropagation:!1,eventCenter:a,model:s}),n.modelDisposer=So(function(){return n.props},function(d){d&&d.model&&n.stepDrag.setModel(d.model)}),n}return e.prototype.componentWillUnmount=function(){this.modelDisposer&&this.modelDisposer()},e.prototype.componentDidMount=function(){},e.prototype.componentDidUpdate=function(){},e.prototype.getAnchorShape=function(t){return null},e.prototype.getAnchors=function(){var t=this,n=this.props,o=n.model,i=n.graphModel,a=o.isSelected,s=o.isHitable,d=o.isDragging,l=o.isShowAnchor;return s&&(a||l)&&!d?Ot(o.anchors,function(u,f){var c=o.getAnchorLineStyle(u),h=o.getAnchorStyle(u);return x(Ka,{anchorData:u,node:t,style:h,edgeStyle:c,anchorIndex:f,nodeModel:o,graphModel:i,setHoverOff:t.setHoverOff})}):[]},e.prototype.getRotateControl=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowRotate,d=n.isSelected,l=n.isHitable,u=n.rotatable,f=n.isHovered,c=s&&u,h=n.getRotateControlStyle();if(!a&&l&&(d||f)&&c)return x(Ja,{graphModel:o,nodeModel:n,eventCenter:o.eventCenter,style:h})},e.prototype.getResizeControl=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowResize,d=n.isSelected,l=n.isHitable,u=n.resizable,f=n.isHovered,c=s&&u,h=n.getResizeControlStyle();return!a&&l&&(d||f)&&c?x(wi,{style:h,model:n,graphModel:o}):null},e.prototype.getText=function(){var t,n=this.props,o=n.model,i=n.graphModel,a=i.editConfigModel;if(a.nodeTextMode!==ht.TEXT||o.state===B.TEXT_EDIT)return null;if(o.text){var s=!1;return a.nodeTextDraggable&&o.text.draggable&&(s=!0),x(so,{editable:a.nodeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getStateClassName=function(){var t=this.props.model,n=t.state,o=t.isDragging,i=t.isSelected,a="lf-node";switch(n){case B.ALLOW_CONNECT:a+=" lf-node-allow";break;case B.NOT_ALLOW_CONNECT:a+=" lf-node-not-allow";break;default:a+=" lf-node-default";break}return o&&(a+=" lf-dragging"),i&&(a+=" lf-node-selected"),a},e.prototype.toFront=function(){var t=this.props,n=t.model,o=t.graphModel;n.autoToFront&&o.toFront(n.id)},e.prototype.render=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.hideAnchors,s=i.adjustNodePosition,d=i.allowRotate,l=i.allowResize,u=o.gridSize,f=o.transformModel.SCALE_X,c=n.isHitable,h=n.draggable,g=n.transform,p=n.getOuterGAttributes(),v=p.className,y=v===void 0?"":v,_=os(p,["className"]),M=x("g",{className:"lf-node-content",children:[x("g",{transform:g,children:[this.getShape(),this.getText(),d&&this.getRotateControl(),l&&this.getResizeControl()]}),!a&&this.getAnchors()]}),S;return c?(s&&h&&this.stepDrag.setStep(u*f),S=x("g",Je({className:"".concat(this.getStateClassName()," ").concat(y),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onMouseEnter:this.setHoverOn,onMouseOver:this.setHoverOn,onMouseLeave:this.setHoverOff,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu},_,{children:M}))):S=x("g",Je({className:"".concat(this.getStateClassName()," ").concat(y)},_,{children:M})),S},e.isObserved=!1,e}(V),is=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),jn=function(){return jn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},ps=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},_t;(function(r){r.SOURCE="SOURCE",r.TARGET="TARGET"})(_t||(_t={}));var Br=function(r){hs(e,r);function e(t){var n=r.call(this)||this;n.handleMouseDown=function(d){n.stepDrag&&n.stepDrag.handleMouseDown(d)},n.onDragStart=function(){var d=n.props,l=d.x,u=d.y,f=d.edgeModel,c=f.startPoint,h=f.endPoint,g=f.pointsList;n.oldEdge={startPoint:c,endPoint:h,pointsList:g},n.setState({endX:l,endY:u,dragging:!0})},n.onDragging=function(d){var l=d.deltaX,u=d.deltaY,f=n.state,c=f.endX,h=f.endY,g=n.props,p=g.graphModel,v=g.type,y=p.transformModel,_=p.editConfigModel,M=gs(y.moveCanvasPointByHtml([c,h],l,u),2),S=M[0],O=M[1];n.setState({endX:S,endY:O,dragging:!0});var w=n.props.edgeModel,A=Ze({x:c,y:h},p);if(A&&A.node&&n.isAllowAdjust(A).pass){var C=w.startPoint,I=w.endPoint,L=w.sourceNode,G=w.targetNode,R=v===_t.SOURCE?{startPoint:{x:A.anchor.x,y:A.anchor.y},endPoint:{x:I.x,y:I.y},sourceNode:A.node,targetNode:G}:{startPoint:{x:C.x,y:C.y},endPoint:{x:A.anchor.x,y:A.anchor.y},sourceNode:L,targetNode:A.node};w.updateAfterAdjustStartAndEnd(R)}else v===_t.SOURCE?w.updateStartPoint({x:S,y:O}):w.updateEndPoint({x:S,y:O});w.text.value&&_.adjustEdge&&w.setText(Object.assign({},w.text,w.textPosition))},n.onDragEnd=function(d){var l,u,f,c=d.event;try{n.setState({dragging:!1});var h=n.props,g=h.graphModel,p=h.edgeModel,v=h.type,y=n.state,_=y.endX,M=y.endY,S=y.dragging,O=Ze({x:_,y:M},g);if(!S)return;var w=!1,A=void 0;if(O&&O.node){var C=n.isAllowAdjust(O),I=C.pass,L=C.msg,G=C.newTargetNode;if(I){var R=p.getData(),Y=R.text,H=R.sourceAnchorId,rt=H===void 0?"":H,st=R.targetAnchorId,Ct=st===void 0?"":st,Yt=ys(R,["text","sourceAnchorId","targetAnchorId"]);if(A=ft(ft({sourceAnchorId:rt,targetAnchorId:Ct},Yt),{text:(Y==null?void 0:Y.value)||""}),v===_t.SOURCE){var et=g.getNodeModelById(O.node.id),Et=g.getNodeModelById(p.targetNodeId),re=(l=g.edgeGenerator)===null||l===void 0?void 0:l.call(g,et==null?void 0:et.getData(),Et==null?void 0:Et.getData(),A);A=ft(ft({},re),{sourceNodeId:O.node.id,sourceAnchorId:O.anchor.id,startPoint:{x:O.anchor.x,y:O.anchor.y},targetNodeId:p.targetNodeId,endPoint:ft({},p.endPoint)}),p.sourceNodeId===O.node.id&&p.sourceAnchorId===O.anchor.id&&(w=!0)}else if(v===_t.TARGET){var et=g.getNodeModelById(p.sourceNodeId),Et=g.getNodeModelById(O.node.id),re=(u=g.edgeGenerator)===null||u===void 0?void 0:u.call(g,et==null?void 0:et.getData(),Et==null?void 0:Et.getData(),A);A=ft(ft({},re),{sourceNodeId:p.sourceNodeId,startPoint:ft({},p.startPoint),targetNodeId:O.node.id,targetAnchorId:O.anchor.id,endPoint:{x:O.anchor.x,y:O.anchor.y}}),p.targetNodeId===O.node.id&&p.targetAnchorId===O.anchor.id&&(w=!0)}}else{w=!0;var Ae=G.getData();g.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:Ae,msg:L})}}else w=!0;if(w)n.recoveryEdge();else{var an=p.getData();g.deleteEdgeById(p.id);var sn=g.addEdge(ft({},A));g.eventCenter.emit(T.EDGE_EXCHANGE_NODE,{data:{newEdge:sn.getData(),oldEdge:an}})}(f=n.preTargetNode)===null||f===void 0||f.setElementState(B.DEFAULT)}finally{var g=n.props.graphModel;g.eventCenter.emit(T.ADJUST_POINT_DRAGEND,{e:c,data:n.stepDragData})}},n.recoveryEdge=function(){var d=n.props.edgeModel,l=n.oldEdge,u=l.startPoint,f=l.endPoint,c=l.pointsList;d.updateStartPoint(u),d.updateEndPoint(f),d.modelType!==j.LINE_EDGE&&(d.pointsList=c??[],d.initPoints())},n.getAdjustPointStyle=function(){var d=n.props.graphModel.theme,l=d.edgeAdjust;return l},n.state={dragging:!1,endX:0,endY:0},n.targetRuleResults=new Map,n.sourceRuleResults=new Map;var o=t.type,i=t.edgeModel,a=t.graphModel,s=a.eventCenter;return n.stepDragData={type:o,edgeData:i.getData()},n.stepDrag=new xt({onDragStart:n.onDragStart,onDragging:n.onDragging,onDragEnd:n.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:s,data:n.stepDragData}),n}return e.prototype.isAllowAdjust=function(t){var n=this.props,o=n.edgeModel,i=o.id,a=o.sourceNode,s=o.targetNode,d=o.sourceAnchorId,l=o.targetAnchorId,u=n.type,f,c,h,g;if(u===_t.SOURCE?(f=t.node,c=s,h=t.anchor,g=s.getAnchorInfo(l)):(f=a,c=t.node,g=t.anchor,h=a.getAnchorInfo(d)),this.preTargetNode&&this.preTargetNode!==t.node&&this.preTargetNode.setElementState(B.DEFAULT),this.preTargetNode=t.node,g.id===h.id)return{pass:!1,msg:"",newTargetNode:c};var p="".concat(f.id,"_").concat(c.id,"_").concat(h.id,"_").concat(g.id);if(!this.targetRuleResults.has(p)){var v=f.isAllowConnectedAsSource(c,h,g,i),y=c.isAllowConnectedAsTarget(f,h,g,i);this.sourceRuleResults.set(p,Ve(v)),this.targetRuleResults.set(p,Ve(y))}var _=this.sourceRuleResults.get(p),M=_.isAllPass,S=_.msg,O=this.targetRuleResults.get(p),w=O.isAllPass,A=O.msg,C=M&&w?B.ALLOW_CONNECT:B.NOT_ALLOW_CONNECT;return u===_t.SOURCE?f.setElementState(C):c.setElementState(C),{pass:M&&w,msg:A||S,newTargetNode:c}},e.prototype.render=function(){var t=this.props,n=t.x,o=t.y,i=t.getAdjustPointShape,a=t.edgeModel,s=this.state.dragging;return x("g",{pointerEvents:s?"none":"",onMouseDown:this.handleMouseDown,children:s?"":i(n,o,a)})},e}(V),vs=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Yn=function(){return Yn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},on=function(r){_s(e,r);function e(){var t=r.call(this)||this;return t.textRef=Gn(),t.handleHover=function(n,o){var i=t.props,a=i.model,s=i.graphModel.eventCenter;a.setHovered(n);var d=n?T.EDGE_MOUSEENTER:T.EDGE_MOUSELEAVE,l=a.getData();s.emit(d,{data:l,e:o})},t.setHoverOn=function(n){var o=t.props.model.isHovered;o||(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOn(),t.handleHover(!0,n))},t.setHoverOff=function(n){var o=t.props.model.isHovered;o&&(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOff(),t.handleHover(!1,n))},t.handleContextMenu=function(n){n.preventDefault(),t.contextMenuTime=new Date().getTime(),t.clickTimer&&clearTimeout(t.clickTimer);var o=t.props,i=o.model,a=o.graphModel,s=a.getPointByClient({x:n.clientX,y:n.clientY});a.setElementStateById(i.id,B.SHOW_MENU,s.domOverlayPosition),t.toFront(),i.isSelected||a.selectEdgeById(i.id);var d=i==null?void 0:i.getData();a.eventCenter.emit(T.EDGE_CONTEXTMENU,{data:d,e:n,position:s})},t.handleMouseDown=function(n){n.stopPropagation(),t.startTime=new Date().getTime()},t.handleMouseUp=function(n){if(t.startTime){var o=new Date().getTime()-t.startTime;if(!(o>200)){var i=n.button===2;if(!i){var a=n.detail===2,s=t.props,d=s.model,l=s.graphModel,u=d==null?void 0:d.getData(),f=l.getPointByClient({x:n.clientX,y:n.clientY});if(a){var c=l.editConfigModel,h=l.textEditElement,g=d.id,p=d.text,v=d.modelType;if(h&&h.id===g&&l.setElementStateById(g,B.DEFAULT),c.edgeTextEdit&&p.editable&&(d.setSelected(!1),l.setElementStateById(g,B.TEXT_EDIT)),v===j.POLYLINE_EDGE){var y=d,_=l.getPointByClient({x:n.x,y:n.y}).canvasOverlayPosition,M=_.x,S=_.y;y.dbClickPosition=qr({x:M,y:S},y.points)}l.eventCenter.emit(T.EDGE_DBCLICK,{data:u,e:n,position:f})}else l.eventCenter.emit(T.ELEMENT_CLICK,{data:u,e:n,position:f}),l.eventCenter.emit(T.EDGE_CLICK,{data:u,e:n,position:f});var O=l.editConfigModel;l.selectEdgeById(d.id,Jr(n,O)),t.toFront()}}}},t}return e.prototype.getShape=function(){return x("g",{children:this.getEdge()})},e.prototype.getTextStyle=function(){},e.prototype.getText=function(){var t,n=this.props,o=n.model,i=n.graphModel,a=i.editConfigModel;if(a.edgeTextMode!==ht.TEXT||o.state===B.TEXT_EDIT)return null;if(o.text){var s=!1;return a.edgeTextDraggable&&o.text.draggable&&(s=!0),x(ns,{ref:this.textRef,editable:a.edgeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getArrowInfo=function(){var t=this.props.model,n=t.startPoint,o=t.endPoint,i=t.isSelected,a=this.state.hover;return{start:n,end:o,hover:a,isSelected:i}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,n=t.startPoint,o=t.endPoint;return[n,o]},e.prototype.getArrowStyle=function(){return console.error("getArrowStyle is deprecated in 1.2.0, please use model.getArrowStyle"),null},e.prototype.getArrow=function(){var t=this.props.model,n=t.id,o=t.getArrowStyle(),i=o.refY,a=i===void 0?0:i,s=o.refX,d=s===void 0?2:s,l=ms(this.getLastTwoPoints(),2),u=l[0],f=l[1],c="auto";return u!==null&&f!==null&&(c=zi(ki({x:f.x-u.x,y:f.y-u.y,z:0}))),x("g",{children:x("defs",{children:[x("marker",{id:"marker-start-".concat(n),refX:-d,refY:a,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse",children:this.getStartArrow()}),x("marker",{id:"marker-end-".concat(n),refX:d,refY:a,overflow:"visible",orient:c,markerUnits:"userSpaceOnUse",children:this.getEndArrow()})]})})},e.prototype.getStartArrow=function(){return x("path",{})},e.prototype.getEndArrow=function(){var t=this.props.model,n=t.getArrowStyle(),o=n.stroke,i=n.strokeWidth,a=n.offset,s=n.verticalLength;return x("path",{stroke:o,fill:o,strokeWidth:i,transform:"rotate(180)",d:"M 0 0 L ".concat(a," -").concat(s," L ").concat(a," ").concat(s," Z")})},e.prototype.getAdjustPointShape=function(t,n,o){var i=o.getAdjustPointStyle();return x(ne,ve({className:"lf-edge-adjust-point"},i,{x:t,y:n}))},e.prototype.getAdjustPoints=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.adjustEdgeStartAndEnd,s=i.adjustEdgeStart,d=i.adjustEdgeEnd,l=n.getAdjustStart(),u=n.getAdjustEnd();return x("g",{children:[a&&s&&x(Br,ve({type:_t.SOURCE},l,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:n,graphModel:o})),a&&d&&x(Br,ve({type:_t.TARGET},u,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:n,graphModel:o}))]})},e.prototype.getAnimation=function(){console.error("getAnimation is deprecated in 1.2.0, please use model.getEdgeAnimationStyle")},e.prototype.getAppendWidth=function(){return x("g",{})},e.prototype.getAppend=function(){return x("g",{className:"lf-edge-append",children:this.getAppendWidth()})},e.prototype.getEdge=function(){return null},e.prototype.toFront=function(){var t=this.props,n=t.graphModel,o=t.model;n.toFront(o.id)},e.prototype.render=function(){var t=this.props.model,n=t.isSelected,o=t.isHitable,i=t.isShowAdjustPoint;return x("g",{children:[x("g",{className:["lf-edge",!o&&"pointer-none",n&&"lf-edge-selected"].filter(Boolean).join(" "),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onContextMenu:this.handleContextMenu,onMouseOver:this.setHoverOn,onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,children:[this.getShape(),this.getAppend(),this.getText(),this.getArrow()]}),i&&n?this.getAdjustPoints():""]})},e.isObserved=!1,e}(V),xs=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Hn=function(){return Hn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Xr=function(r){xs(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getEdge=function(){var t=this.props.model,n=t.getEdgeStyle(),o=t,i=o.path,a=o.isAnimation,s=o.arrowConfig,d=t.getEdgeAnimationStyle(),l=d.strokeDasharray,u=d.stroke,f=d.strokeDashoffset,c=d.animationName,h=d.animationDuration,g=d.animationIterationCount,p=d.animationTimingFunction,v=d.animationDirection;return x(Oe,Hn({d:i},n,s,a?{strokeDasharray:l,stroke:u,style:{strokeDashoffset:f,animationName:c,animationDuration:h,animationIterationCount:g,animationTimingFunction:p,animationDirection:v}}:{}))},e.prototype.getAppendWidth=function(){var t=this.props.model.path;return x(Oe,{d:t,strokeWidth:10,stroke:"transparent",fill:"none"})},e.prototype.getArrowInfo=function(){var t=this.props.model,n=this.state.hover,o=t.isSelected,i=t.getArrowStyle().offset,a=t.pointsList.map(function(f){return{x:f.x,y:f.y}}),s=Es(sr(a,i),2),d=s[0],l=s[1],u={start:d,end:l,hover:n,isSelected:o};return u},e.prototype.getLastTwoPoints=function(){var t=this.props.model,n=t.getArrowStyle().offset,o=t.pointsList.map(function(i){return{x:i.x,y:i.y}});return sr(o,n)},e}(on),Ms=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kn=function(){return kn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Hr=function(r){Os(e,r);function e(){var t=r.call(this)||this;return t.onDragStart=function(){var n=t.props.model;n.dragAppendStart(),t.isShowAdjustPointTemp=n.isShowAdjustPoint,n.isShowAdjustPoint=!1},t.onDragging=function(n){var o=n.deltaX,i=n.deltaY,a=t.props,s=a.model,d=a.graphModel;t.isDragging=!0;var l=d.transformModel,u=d.editConfigModel,f=Ss(l.fixDeltaXY(o,i),2),c=f[0],h=f[1],g=s,p=u.adjustEdgeMiddle;p?t.appendInfo=g.dragAppendSimple(t.appendInfo,{x:c,y:h}):t.appendInfo=g.dragAppend(t.appendInfo,{x:c,y:h})},t.onDragEnd=function(){var n,o=t.props,i=o.model,a=o.graphModel.eventCenter,s=i;s.dragAppendEnd(),t.isDragging=!1,s.isShowAdjustPoint=(n=t.isShowAdjustPointTemp)!==null&&n!==void 0?n:!1,t.appendInfo=void 0,a.emit(T.EDGE_ADJUST,{data:s.getData()})},t.beforeDragStart=function(n,o){o.draggable&&t.drag.handleMouseDown(n),t.appendInfo=o},t.drag=new xt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd,isStopPropagation:!1}),t}return e.prototype.getEdge=function(){var t=this.props.model,n=t.points,o=t.isAnimation,i=t.arrowConfig,a=t.getEdgeStyle(),s=t.getEdgeAnimationStyle(),d=s.strokeDasharray,l=s.stroke,u=s.strokeDashoffset,f=s.animationName,c=s.animationDuration,h=s.animationIterationCount,g=s.animationTimingFunction,p=s.animationDirection;return x(Ei,Rt({points:n},a,i,o?{strokeDasharray:d,stroke:l,style:{strokeDashoffset:u,animationName:f,animationDuration:c,animationIterationCount:h,animationTimingFunction:g,animationDirection:p}}:{}))},e.prototype.getArrowInfo=function(){var t=this.props.model,n=t.points,o=t.isSelected,i=this.state.hover,a=Xt(n),s=a[0],d=a[0];return a.length>=2&&(s=a[a.length-2],d=a[a.length-1]),{start:s,end:d,hover:i,isSelected:o}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,n=t.points,o=Xt(n),i=o[0],a=o[0];return o.length>=2&&(i=o[o.length-2],a=o[o.length-1]),[i,a]},e.prototype.getAppendAttributes=function(t){var n=t.start,o=t.end,i;if(n.x===o.x&&n.y===o.y)i="";else{var a={start:n,end:o,offset:10,verticalLength:5},s=xe(Rt(Rt({},a),{type:"start"})),d=xe(Rt(Rt({},a),{type:"end"}));i="M".concat(s.leftX," ").concat(s.leftY,` - L`).concat(s.rightX," ").concat(s.rightY,` - L`).concat(d.rightX," ").concat(d.rightY,` - L`).concat(d.leftX," ").concat(d.leftY," z")}return{d:i,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},e.prototype.getAppendShape=function(t){var n=this.getAppendAttributes(t),o=n.d,i=n.strokeWidth,a=n.fill,s=n.strokeDasharray,d=n.stroke;return x(Oe,{d:o,fill:a,strokeWidth:i,stroke:d,strokeDasharray:s})},e.prototype.getAppendWidth=function(){for(var t=this,n=this.props,o=n.model,i=n.graphModel,a=o.pointsList,s=o.draggable,d=[],l=a.length,u=function(h){var g="lf-polyline-append",p={start:{x:a[h].x,y:a[h].y},end:{x:a[h+1].x,y:a[h+1].y},startIndex:h,endIndex:h+1,direction:F.HORIZONTAL,draggable:!0},v=x("g",{className:g,children:f.getAppendShape(p)}),y=i.editConfigModel,_=y.adjustEdge,M=y.adjustEdgeMiddle;if(_&&s){var S=p.startIndex,O=p.endIndex,w=M&&(S===0||O===l-1);p.draggable=!w,p.start.x===p.end.x?(p.draggable&&(g+="-ew-resize"),p.direction=F.VERTICAL):p.start.y===p.end.y&&(p.draggable&&(g+="-ns-resize"),p.direction=F.HORIZONTAL),v=x("g",{className:f.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(A){return t.beforeDragStart(A,p)},children:x("g",{className:g,children:f.getAppendShape(p)})})}d.push(v)},f=this,c=0;c=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ns=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Ds=function(r){Ps(e,r);function e(t){var n=r.call(this,t)||this;return n.ref=Gn(),n.__prevText={type:"",text:"",id:""},n.keyupHandler=function(o){var i=n.props.graphModel.textEditElement;o.key==="Enter"&&o.altKey&&(i==null||i.setElementState(B.DEFAULT))},n.inputHandler=function(o){var i=o.target.innerText,a=n.props.graphModel.textEditElement;a&&(n.__prevText={type:a.type,text:i.replace(/(\r\n)+$|(\n)+$/,""),id:a.id})},n.keydownHandler=function(o){o.stopPropagation()},n.state={style:{left:0,top:0}},n}return e.getDerivedStateFromProps=function(t){var n,o=t.textEditElement,i=t.graphModel,a=i.transformModel,s=i.theme,d=s.inputText,l;if(o){if(!(!((n=o.text)===null||n===void 0)&&n.value)&&o.BaseType===U.EDGE){var u=o.text,f=o.textPosition,c=f.x,h=f.y;u.x=c,u.y=h,o.setText(u)}var g={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(o.BaseType===U.EDGE){var p=s.edgeText,v=p.overflowMode,y=p.lineHeight,_=p.wrapPadding,M=p.textWidth;M&&v==="autoWrap"&&(l=Mt(Mt({},g),{width:M,minWidth:M,lineHeight:y,padding:_}))}else if(o.BaseType===U.NODE){var S=s.nodeText,v=S.overflowMode,y=S.lineHeight,_=S.wrapPadding,M=S.textWidth,O=o.width,w=o.modelType,A=o.textWidth,C=A||M||O;(w!==j.TEXT_NODE&&v==="autoWrap"||w===j.TEXT_NODE&&M)&&(l=Mt(Mt({},g),{width:C,minWidth:C,lineHeight:y,padding:_}))}var I=o.text,L=I.x,G=I.y,R=Ns(a.CanvasPointToHtmlPoint([L,G]),2),Y=R[0],H=R[1];return{style:Mt(Mt({left:Y,top:H},l),d)}}return null},e.prototype.componentDidUpdate=function(){var t=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var n=this.__prevText,o=n.text,i=n.id;t.updateText(i,o),t.eventCenter.emit(T.TEXT_UPDATE,{data:Mt({},this.__prevText)}),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}},e.prototype.placeCaretAtEnd=function(t){if(window.getSelection!==void 0&&document.createRange!==void 0){var n=document.createRange();n.selectNodeContents(t),n.collapse(!1);var o=window.getSelection();o==null||o.removeAllRanges(),o==null||o.addRange(n)}},e.prototype.render=function(){var t,n=this.props.graphModel.textEditElement,o=this.state.style;return n?x("div",{contentEditable:!0,className:"lf-text-input",style:o,ref:this.ref,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler,children:(t=n.text)===null||t===void 0?void 0:t.value},n.id):null},e.toolName="text-edit-tool",e=Ts([at],e),e}(V),bs=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Cs=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},hn=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Ls=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Rs=[Ds,js],Is=function(){function r(e){var t=this;this.toolMap=new Map,this.disabledToolMap=new Map,this.instance=e,W(Rs,function(i){t.isDisabled(i.toolName)||t.registerTool(i.toolName,i)});var n=e.graphModel,o=n.eventCenter;o.on("".concat(T.GRAPH_TRANSFORM,",").concat(T.NODE_CLICK,",").concat(T.BLANK_CLICK," "),function(){var i,a=n.textEditElement,s=n.editConfigModel,d=s.edgeTextEdit,l=s.nodeTextEdit;(d||l)&&a&&((i=n.textEditElement)===null||i===void 0||i.setElementState(B.DEFAULT))})}return r.prototype.isDisabled=function(e){var t;return((t=this.instance.options.disabledTools)===null||t===void 0?void 0:t.indexOf(e))!==-1},r.prototype.registerTool=function(e,t){this.toolMap.set(e,t)},r.prototype.disableTool=function(e){var t=this.toolMap.get(e);if(t)return this.disabledToolMap.set(e,t),this.toolMap.delete(e),!0;throw new Error("禁用失败,不存在名为 ${tool} 的工具")},r.prototype.enableTool=function(e){var t=this.disabledToolMap.get(e);if(t)return this.toolMap.set(e,t),this.disabledToolMap.delete(e),!0;throw new Error("不存在名为 ${tool} 的工具")},r.prototype.getTools=function(){return Array.from(this.toolMap.values())},r.prototype.getInstance=function(){return this.instance},yn([E],r.prototype,"toolMap",void 0),yn([m],r.prototype,"disableTool",null),yn([m],r.prototype,"enableTool",null),r}(),zn=function(){return zn=Object.assign||function(r){for(var e,t=1,n=arguments.length;tthis.maxSize&&this.undos.shift())},r.prototype.undoAble=function(){return this.undos.length>1},r.prototype.undo=function(){if(this.undoAble()){var e=this.undos.pop();this.redos.push(e);var t=this.undos.pop();return this.curData=b(t),t}},r.prototype.redoAble=function(){return this.redos.length>0},r.prototype.redo=function(){if(this.redoAble()){var e=this.redos.pop();return this.curData=b(e),e}},r.prototype.watch=function(e){var t=this;this.stopWatch&&this.stopWatch(),this.undos.push(e.modelToGraphData()),this.stopWatch=To(e,mo(function(){var n=e.modelToHistoryData();n&&t.add(zn({},n))},this.waitTime))},r}();var yt=null;function kr(r,e){return r.x+=e,r.y+=e,Ur(r.text)||(r.text.x+=e,r.text.y+=e),r}function zr(r,e){return r.startPoint&&(r.startPoint.x+=e,r.startPoint.y+=e),r.endPoint&&(r.endPoint.x+=e,r.endPoint.y+=e),r.pointsList&&r.pointsList.length>0&&r.pointsList.forEach(function(t){t.x+=e,t.y+=e}),Ur(r.text)||(r.text.x+=e,r.text.y+=e),r}var Wt=40,ke=40;function Xs(r,e){var t=r.keyboard,n=t.options.keyboard;t.on(["cmd + c","ctrl + c"],function(){if(ke=Wt,!(n!=null&&n.enabled)||e.textEditElement)return!0;var o=r.options.guards,i=e.getSelectElements(!1),a=o&&o.beforeClone?o.beforeClone(i):!0;return!a||i.nodes.length===0&&i.edges.length===0?(yt=null,!0):(yt=i,yt.nodes.forEach(function(s){return kr(s,Wt)}),yt.edges.forEach(function(s){return zr(s,Wt)}),!1)}),t.on(["cmd + v","ctrl + v"],function(){if(!(n!=null&&n.enabled)||e.textEditElement)return!0;if(yt&&(yt.nodes||yt.edges)){r.clearSelectElements();var o=r.addElements(yt,ke);if(!o)return!0;o.nodes.forEach(function(i){return r.selectElementById(i.id,!0)}),o.edges.forEach(function(i){return r.selectElementById(i.id,!0)}),yt.nodes.forEach(function(i){return kr(i,Wt)}),yt.edges.forEach(function(i){return zr(i,Wt)}),ke=ke+Wt}return!1}),t.on(["cmd + z","ctrl + z"],function(){return!(n!=null&&n.enabled)||e.textEditElement?!0:(r.undo(),!1)}),t.on(["cmd + y","ctrl + y"],function(){return!(n!=null&&n.enabled)||e.textEditElement?!0:(r.redo(),!1)}),t.on(["backspace"],function(){if(!(n!=null&&n.enabled)||e.textEditElement)return!0;var o=e.getSelectElements(!0);return r.clearSelectElements(),o.edges.forEach(function(i){return i.id&&r.deleteEdge(i.id)}),o.nodes.forEach(function(i){return i.id&&r.deleteNode(i.id)}),!1})}var Ys=function(){function r(e){e.keyboard||(e.keyboard={enabled:!1}),this.options=e;var t=e.lf;this.target=t.container,this.mousetrap=new Po(this.target),e.keyboard.enabled&&!t.options.isSilentMode&&this.enable(!0)}return r.prototype.initShortcuts=function(){var e=this,t,n=((t=this.options.keyboard)!==null&&t!==void 0?t:{}).shortcuts;if(n)if(xo(n))n.forEach(function(s){var d=s.keys,l=s.callback,u=s.action;return e.on(d,l,u)});else{var o=n.keys,i=n.callback,a=n.action;this.on(o,i,a)}},r.prototype.on=function(e,t,n){this.mousetrap.bind(this.getKeys(e),t,n)},Object.defineProperty(r.prototype,"disabled",{get:function(){var e,t;return((t=(e=this.options)===null||e===void 0?void 0:e.keyboard)===null||t===void 0?void 0:t.enabled)!==!0},enumerable:!1,configurable:!0}),r.prototype.off=function(e,t){this.mousetrap.unbind(this.getKeys(e),t)},r.prototype.enable=function(e){(this.disabled||e)&&(this.options.keyboard&&(this.options.keyboard.enabled=!0),this.target instanceof HTMLElement&&(this.target.setAttribute("tabindex","-1"),this.target.style.outline="none"))},r.prototype.disable=function(){this.disabled||(this.options.keyboard&&(this.options.keyboard.enabled=!1),this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))},r.prototype.getKeys=function(e){var t=this;return(Array.isArray(e)?e:[e]).map(function(n){return t.formatKey(n)})},r.prototype.formatKey=function(e){return e.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")},r}(),At=function(){return At=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},gn=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n0)return;if(V){let t=V;for(V=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;W;){let t=W;for(W=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function me(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function xe(e){let t,s=e.depsTail,i=s;for(;i;){const n=i.prevDep;i.version===-1?(i===s&&(s=n),ge(i),et(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=n}e.deps=t,e.depsTail=s}function ce(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ye(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ye(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===z))return;e.globalVersion=z;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ce(e)){e.flags&=-3;return}const s=h,i=b;h=e,b=!0;try{me(e);const n=e.fn(e._value);(t.version===0||I(n,e._value))&&(e._value=n,t.version++)}catch(n){throw t.version++,n}finally{h=s,b=i,xe(e),e.flags&=-3}}function ge(e,t=!1){const{dep:s,prevSub:i,nextSub:n}=e;if(i&&(i.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)ge(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function et(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let b=!0;const Te=[];function De(){Te.push(b),b=!1}function Ie(){const e=Te.pop();b=e===void 0?!0:e}function we(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=h;h=void 0;try{t()}finally{h=s}}}let z=0;class tt{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class te{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!h||!b||h===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==h)s=this.activeLink=new tt(h,this),h.deps?(s.prevDep=h.depsTail,h.depsTail.nextDep=s,h.depsTail=s):h.deps=h.depsTail=s,Ee(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=h.depsTail,s.nextDep=void 0,h.depsTail.nextDep=s,h.depsTail=s,h.deps===s&&(h.deps=i)}return s}trigger(t){this.version++,z++,this.notify(t)}notify(t){pe();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{_e()}}}function Ee(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)Ee(i)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const k=new WeakMap,P=Symbol(""),ue=Symbol(""),B=Symbol("");function w(e,t,s){if(b&&h){let i=k.get(e);i||k.set(e,i=new Map);let n=i.get(s);n||(i.set(s,n=new te),n.map=i,n.key=s),n.track()}}function T(e,t,s,i,n,r){const a=k.get(e);if(!a){z++;return}const f=o=>{o&&o.trigger()};if(pe(),t==="clear")a.forEach(f);else{const o=y(e),p=o&&de(s);if(o&&s==="length"){const c=Number(i);a.forEach((d,_)=>{(_==="length"||_===B||!F(_)&&_>=c)&&f(d)})}else switch((s!==void 0||a.has(void 0))&&f(a.get(s)),p&&f(a.get(B)),t){case"add":o?p&&f(a.get("length")):(f(a.get(P)),C(e)&&f(a.get(ue)));break;case"delete":o||(f(a.get(P)),C(e)&&f(a.get(ue)));break;case"set":C(e)&&f(a.get(P));break}}_e()}function st(e,t){const s=k.get(e);return s&&s.get(t)}function L(e){const t=l(e);return t===e?t:(w(t,"iterate",B),S(e)?t:t.map(v))}function ve(e){return w(e=l(e),"iterate",B),e}const nt={__proto__:null,[Symbol.iterator](){return fe(this,Symbol.iterator,v)},concat(...e){return L(this).concat(...e.map(t=>y(t)?L(t):t))},entries(){return fe(this,"entries",e=>(e[1]=v(e[1]),e))},every(e,t){return x(this,"every",e,t,void 0,arguments)},filter(e,t){return x(this,"filter",e,t,s=>s.map(v),arguments)},find(e,t){return x(this,"find",e,t,v,arguments)},findIndex(e,t){return x(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return x(this,"findLast",e,t,v,arguments)},findLastIndex(e,t){return x(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return x(this,"forEach",e,t,void 0,arguments)},includes(...e){return oe(this,"includes",e)},indexOf(...e){return oe(this,"indexOf",e)},join(e){return L(this).join(e)},lastIndexOf(...e){return oe(this,"lastIndexOf",e)},map(e,t){return x(this,"map",e,t,void 0,arguments)},pop(){return H(this,"pop")},push(...e){return H(this,"push",e)},reduce(e,...t){return Re(this,"reduce",e,t)},reduceRight(e,...t){return Re(this,"reduceRight",e,t)},shift(){return H(this,"shift")},some(e,t){return x(this,"some",e,t,void 0,arguments)},splice(...e){return H(this,"splice",e)},toReversed(){return L(this).toReversed()},toSorted(e){return L(this).toSorted(e)},toSpliced(...e){return L(this).toSpliced(...e)},unshift(...e){return H(this,"unshift",e)},values(){return fe(this,"values",v)}};function fe(e,t,s){const i=ve(e),n=i[t]();return i!==e&&!S(e)&&(n._next=n.next,n.next=()=>{const r=n._next();return r.value&&(r.value=s(r.value)),r}),n}const it=Array.prototype;function x(e,t,s,i,n,r){const a=ve(e),f=a!==e&&!S(e),o=a[t];if(o!==it[t]){const d=o.apply(e,r);return f?v(d):d}let p=s;a!==e&&(f?p=function(d,_){return s.call(this,v(d),_,e)}:s.length>2&&(p=function(d,_){return s.call(this,d,_,e)}));const c=o.call(a,p,i);return f&&n?n(c):c}function Re(e,t,s,i){const n=ve(e);let r=s;return n!==e&&(S(e)?s.length>3&&(r=function(a,f,o){return s.call(this,a,f,o,e)}):r=function(a,f,o){return s.call(this,a,v(f),o,e)}),n[t](r,...i)}function oe(e,t,s){const i=l(e);w(i,"iterate",B);const n=i[t](...s);return(n===-1||n===!1)&&Rt(s[0])?(s[0]=l(s[0]),i[t](...s)):n}function H(e,t,s=[]){De(),pe();const i=l(e)[t].apply(e,s);return _e(),Ie(),i}const rt=Qe("__proto__,__v_isRef,__isVue"),Me=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(F));function at(e){F(e)||(e=String(e));const t=l(this);return w(t,"has",e),t.hasOwnProperty(e)}class Pe{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;const n=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!n;if(s==="__v_isReadonly")return n;if(s==="__v_isShallow")return r;if(s==="__v_raw")return i===(n?r?He:Ke:r?je:Le).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const a=y(t);if(!n){let o;if(a&&(o=nt[s]))return o;if(s==="hasOwnProperty")return at}const f=Reflect.get(t,s,R(t)?t:i);return(F(s)?Me.has(s):rt(s))||(n||w(t,"get",s),r)?f:R(f)?a&&de(s)?f:f.value:j(f)?n?We(f):Ce(f):f}}class Oe extends Pe{constructor(t=!1){super(!1,t)}set(t,s,i,n){let r=t[s];if(!this._isShallow){const o=O(r);if(!S(i)&&!O(i)&&(r=l(r),i=l(i)),!y(t)&&R(r)&&!R(i))return o?!1:(r.value=i,!0)}const a=y(t)&&de(s)?Number(s)e,Q=e=>Reflect.getPrototypeOf(e);function lt(e,t,s){return function(...i){const n=this.__v_raw,r=l(n),a=C(r),f=e==="entries"||e===Symbol.iterator&&a,o=e==="keys"&&a,p=n[e](...i),c=s?le:t?he:v;return!t&&w(r,"iterate",o?ue:P),{next(){const{value:d,done:_}=p.next();return _?{value:d,done:_}:{value:f?[c(d[0]),c(d[1])]:c(d),done:_}},[Symbol.iterator](){return this}}}}function X(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ht(e,t){const s={get(n){const r=this.__v_raw,a=l(r),f=l(n);e||(I(n,f)&&w(a,"get",n),w(a,"get",f));const{has:o}=Q(a),p=t?le:e?he:v;if(o.call(a,n))return p(r.get(n));if(o.call(a,f))return p(r.get(f));r!==a&&r.get(n)},get size(){const n=this.__v_raw;return!e&&w(l(n),"iterate",P),Reflect.get(n,"size",n)},has(n){const r=this.__v_raw,a=l(r),f=l(n);return e||(I(n,f)&&w(a,"has",n),w(a,"has",f)),n===f?r.has(n):r.has(n)||r.has(f)},forEach(n,r){const a=this,f=a.__v_raw,o=l(f),p=t?le:e?he:v;return!e&&w(o,"iterate",P),f.forEach((c,d)=>n.call(r,p(c),p(d),a))}};return ze(s,e?{add:X("add"),set:X("set"),delete:X("delete"),clear:X("clear")}:{add(n){!t&&!S(n)&&!O(n)&&(n=l(n));const r=l(this);return Q(r).has.call(r,n)||(r.add(n),T(r,"add",n,n)),this},set(n,r){!t&&!S(r)&&!O(r)&&(r=l(r));const a=l(this),{has:f,get:o}=Q(a);let p=f.call(a,n);p||(n=l(n),p=f.call(a,n));const c=o.call(a,n);return a.set(n,r),p?I(r,c)&&T(a,"set",n,r):T(a,"add",n,r),this},delete(n){const r=l(this),{has:a,get:f}=Q(r);let o=a.call(r,n);o||(n=l(n),o=a.call(r,n)),f&&f.call(r,n);const p=r.delete(n);return o&&T(r,"delete",n,void 0),p},clear(){const n=l(this),r=n.size!==0,a=n.clear();return r&&T(n,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(n=>{s[n]=lt(n,e,t)}),s}function se(e,t){const s=ht(e,t);return(i,n,r)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get($(s,n)&&n in i?s:i,n,r)}const dt={get:se(!1,!1)},pt={get:se(!1,!0)},_t={get:se(!0,!1)},gt={get:se(!0,!0)},Le=new WeakMap,je=new WeakMap,Ke=new WeakMap,He=new WeakMap;function vt(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wt(e){return e.__v_skip||!Object.isExtensible(e)?0:vt(Be(e))}function Ce(e){return O(e)?e:ne(e,!1,ft,dt,Le)}function Ot(e){return ne(e,!1,ct,pt,je)}function We(e){return ne(e,!0,ot,_t,Ke)}function At(e){return ne(e,!0,ut,gt,He)}function ne(e,t,s,i,n){if(!j(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=n.get(e);if(r)return r;const a=wt(e);if(a===0)return e;const f=new Proxy(e,a===2?i:s);return n.set(e,f),f}function N(e){return O(e)?N(e.__v_raw):!!(e&&e.__v_isReactive)}function O(e){return!!(e&&e.__v_isReadonly)}function S(e){return!!(e&&e.__v_isShallow)}function Rt(e){return e?!!e.__v_raw:!1}function l(e){const t=e&&e.__v_raw;return t?l(t):e}function Lt(e){return!$(e,"__v_skip")&&Object.isExtensible(e)&&Ge(e,"__v_skip",!0),e}const v=e=>j(e)?Ce(e):e,he=e=>j(e)?We(e):e;function R(e){return e?e.__v_isRef===!0:!1}function bt(e){return Ve(e,!1)}function jt(e){return Ve(e,!0)}function Ve(e,t){return R(e)?e:new St(e,t)}class St{constructor(t,s){this.dep=new te,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:l(t),this._value=s?t:v(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,i=this.__v_isShallow||S(t)||O(t);t=i?t:l(t),I(t,s)&&(this._rawValue=t,this._value=i?t:v(t),this.dep.trigger())}}function Ne(e){return R(e)?e.value:e}function Kt(e){return Y(e)?e():Ne(e)}const mt={get:(e,t,s)=>t==="__v_raw"?e:Ne(Reflect.get(e,t,s)),set:(e,t,s,i)=>{const n=e[t];return R(n)&&!R(s)?(n.value=s,!0):Reflect.set(e,t,s,i)}};function Ht(e){return N(e)?e:new Proxy(e,mt)}class xt{constructor(t){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new te,{get:i,set:n}=t(s.track.bind(s),s.trigger.bind(s));this._get=i,this._set=n}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ct(e){return new xt(e)}function Wt(e){const t=y(e)?new Array(e.length):{};for(const s in e)t[s]=Ye(e,s);return t}class yt{constructor(t,s,i){this._object=t,this._key=s,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return st(l(this._object),this._key)}}class Tt{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Vt(e,t,s){return R(e)?e:Y(e)?new Tt(e):j(e)&&arguments.length>1?Ye(e,t,s):bt(e)}function Ye(e,t,s){const i=e[t];return R(i)?i:new yt(e,t,s)}class Dt{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new te(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=z-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&h!==this)return Se(this,!0),!0}get value(){const t=this.dep.track();return ye(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Nt(e,t,s=!1){let i,n;return Y(e)?i=e:(i=e.get,n=e.set),new Dt(i,n,s)}const Z={},ee=new WeakMap;let M;function It(e,t=!1,s=M){if(s){let i=ee.get(s);i||ee.set(s,i=[]),i.push(e)}}function Yt(e,t,s=Fe){const{immediate:i,deep:n,once:r,scheduler:a,augmentJob:f,call:o}=s,p=u=>n?u:S(u)||n===!1||n===0?D(u,1):D(u);let c,d,_,G,J=!1,U=!1;if(R(e)?(d=()=>e.value,J=S(e)):N(e)?(d=()=>p(e),J=!0):y(e)?(U=!0,J=e.some(u=>N(u)||S(u)),d=()=>e.map(u=>{if(R(u))return u.value;if(N(u))return p(u);if(Y(u))return o?o(u,2):u()})):Y(e)?t?d=o?()=>o(e,2):e:d=()=>{if(_){De();try{_()}finally{Ie()}}const u=M;M=c;try{return o?o(e,3,[G]):e(G)}finally{M=u}}:d=qe,t&&n){const u=d,m=n===!0?1/0:n;d=()=>D(u(),m)}const ie=$e(),A=()=>{c.stop(),ie&&ie.active&&Xe(ie.effects,c)};if(r&&t){const u=t;t=(...m)=>{u(...m),A()}}let E=U?new Array(e.length).fill(Z):Z;const K=u=>{if(!(!(c.flags&1)||!c.dirty&&!u))if(t){const m=c.run();if(n||J||(U?m.some((re,q)=>I(re,E[q])):I(m,E))){_&&_();const re=M;M=c;try{const q=[m,E===Z?void 0:U&&E[0]===Z?[]:E,G];o?o(t,3,q):t(...q),E=m}finally{M=re}}}else c.run()};return f&&f(K),c=new ke(d),c.scheduler=a?()=>a(K,!1):K,G=u=>It(u,!1,c),_=c.onStop=()=>{const u=ee.get(c);if(u){if(o)o(u,4);else for(const m of u)m();ee.delete(c)}},t?i?K(!0):E=c.run():a?a(K.bind(null,!0),!0):c.run(),A.pause=c.pause.bind(c),A.resume=c.resume.bind(c),A.stop=A,A}function D(e,t=1/0,s){if(t<=0||!j(e)||e.__v_skip||(s=s||new Set,s.has(e)))return e;if(s.add(e),t--,R(e))D(e.value,t,s);else if(y(e))for(let i=0;i{D(i,t,s)});else if(Ue(e)){for(const i in e)D(e[i],t,s);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&D(e[i],t,s)}return e}export{N as A,Ze as E,ke as R,R as a,De as b,Nt as c,l as d,Ce as e,w as f,Ot as g,T as h,Rt as i,At as j,bt as k,Kt as l,Lt as m,We as n,Vt as o,Ht as p,Ct as q,Ie as r,jt as s,D as t,$e as u,Pt as v,Yt as w,Wt as x,Ne as y,Mt as z}; diff --git a/js/@vue_reactivity@3.5.13-CVvlldVq.js.gz b/js/@vue_reactivity@3.5.13-CVvlldVq.js.gz new file mode 100644 index 00000000..ed305846 Binary files /dev/null and b/js/@vue_reactivity@3.5.13-CVvlldVq.js.gz differ diff --git a/js/@vue_reactivity@3.5.13-CjJL8SnF.js b/js/@vue_reactivity@3.5.13-CjJL8SnF.js deleted file mode 100644 index ee9cdf2a..00000000 --- a/js/@vue_reactivity@3.5.13-CjJL8SnF.js +++ /dev/null @@ -1,5 +0,0 @@ -import{i as B,a as j,h as I,e as Ye,t as ze,b as y,c as Z,E as Be,d as de,f as $,g as Fe,j as Ge,k as C,l as Je,N as Ue,m as qe,r as Qe}from"./@vue_shared@3.5.13-DbMIZLZJ.js";/** -* @vue/reactivity v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let g;class Xe{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=g,!t&&g&&(this.index=(g.scopes||(g.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0)return;if(V){let t=V;for(V=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;W;){let t=W;for(W=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function me(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function xe(e){let t,s=e.depsTail,i=s;for(;i;){const n=i.prevDep;i.version===-1?(i===s&&(s=n),ge(i),ke(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=n}e.deps=t,e.depsTail=s}function ce(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ye(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ye(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Y))return;e.globalVersion=Y;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ce(e)){e.flags&=-3;return}const s=h,i=b;h=e,b=!0;try{me(e);const n=e.fn(e._value);(t.version===0||I(n,e._value))&&(e._value=n,t.version++)}catch(n){throw t.version++,n}finally{h=s,b=i,xe(e),e.flags&=-3}}function ge(e,t=!1){const{dep:s,prevSub:i,nextSub:n}=e;if(i&&(i.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)ge(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function ke(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let b=!0;const Te=[];function De(){Te.push(b),b=!1}function Ie(){const e=Te.pop();b=e===void 0?!0:e}function we(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=h;h=void 0;try{t()}finally{h=s}}}let Y=0;class et{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class te{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!h||!b||h===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==h)s=this.activeLink=new et(h,this),h.deps?(s.prevDep=h.depsTail,h.depsTail.nextDep=s,h.depsTail=s):h.deps=h.depsTail=s,Ee(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=h.depsTail,s.nextDep=void 0,h.depsTail.nextDep=s,h.depsTail=s,h.deps===s&&(h.deps=i)}return s}trigger(t){this.version++,Y++,this.notify(t)}notify(t){pe();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{_e()}}}function Ee(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)Ee(i)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const k=new WeakMap,P=Symbol(""),ue=Symbol(""),z=Symbol("");function w(e,t,s){if(b&&h){let i=k.get(e);i||k.set(e,i=new Map);let n=i.get(s);n||(i.set(s,n=new te),n.map=i,n.key=s),n.track()}}function T(e,t,s,i,n,r){const f=k.get(e);if(!f){Y++;return}const a=o=>{o&&o.trigger()};if(pe(),t==="clear")f.forEach(a);else{const o=y(e),p=o&&de(s);if(o&&s==="length"){const c=Number(i);f.forEach((d,_)=>{(_==="length"||_===z||!B(_)&&_>=c)&&a(d)})}else switch((s!==void 0||f.has(void 0))&&a(f.get(s)),p&&a(f.get(z)),t){case"add":o?p&&a(f.get("length")):(a(f.get(P)),C(e)&&a(f.get(ue)));break;case"delete":o||(a(f.get(P)),C(e)&&a(f.get(ue)));break;case"set":C(e)&&a(f.get(P));break}}_e()}function tt(e,t){const s=k.get(e);return s&&s.get(t)}function L(e){const t=l(e);return t===e?t:(w(t,"iterate",z),S(e)?t:t.map(v))}function ve(e){return w(e=l(e),"iterate",z),e}const st={__proto__:null,[Symbol.iterator](){return ae(this,Symbol.iterator,v)},concat(...e){return L(this).concat(...e.map(t=>y(t)?L(t):t))},entries(){return ae(this,"entries",e=>(e[1]=v(e[1]),e))},every(e,t){return x(this,"every",e,t,void 0,arguments)},filter(e,t){return x(this,"filter",e,t,s=>s.map(v),arguments)},find(e,t){return x(this,"find",e,t,v,arguments)},findIndex(e,t){return x(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return x(this,"findLast",e,t,v,arguments)},findLastIndex(e,t){return x(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return x(this,"forEach",e,t,void 0,arguments)},includes(...e){return oe(this,"includes",e)},indexOf(...e){return oe(this,"indexOf",e)},join(e){return L(this).join(e)},lastIndexOf(...e){return oe(this,"lastIndexOf",e)},map(e,t){return x(this,"map",e,t,void 0,arguments)},pop(){return H(this,"pop")},push(...e){return H(this,"push",e)},reduce(e,...t){return Re(this,"reduce",e,t)},reduceRight(e,...t){return Re(this,"reduceRight",e,t)},shift(){return H(this,"shift")},some(e,t){return x(this,"some",e,t,void 0,arguments)},splice(...e){return H(this,"splice",e)},toReversed(){return L(this).toReversed()},toSorted(e){return L(this).toSorted(e)},toSpliced(...e){return L(this).toSpliced(...e)},unshift(...e){return H(this,"unshift",e)},values(){return ae(this,"values",v)}};function ae(e,t,s){const i=ve(e),n=i[t]();return i!==e&&!S(e)&&(n._next=n.next,n.next=()=>{const r=n._next();return r.value&&(r.value=s(r.value)),r}),n}const nt=Array.prototype;function x(e,t,s,i,n,r){const f=ve(e),a=f!==e&&!S(e),o=f[t];if(o!==nt[t]){const d=o.apply(e,r);return a?v(d):d}let p=s;f!==e&&(a?p=function(d,_){return s.call(this,v(d),_,e)}:s.length>2&&(p=function(d,_){return s.call(this,d,_,e)}));const c=o.call(f,p,i);return a&&n?n(c):c}function Re(e,t,s,i){const n=ve(e);let r=s;return n!==e&&(S(e)?s.length>3&&(r=function(f,a,o){return s.call(this,f,a,o,e)}):r=function(f,a,o){return s.call(this,f,v(a),o,e)}),n[t](r,...i)}function oe(e,t,s){const i=l(e);w(i,"iterate",z);const n=i[t](...s);return(n===-1||n===!1)&&wt(s[0])?(s[0]=l(s[0]),i[t](...s)):n}function H(e,t,s=[]){De(),pe();const i=l(e)[t].apply(e,s);return _e(),Ie(),i}const it=qe("__proto__,__v_isRef,__isVue"),Me=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(B));function rt(e){B(e)||(e=String(e));const t=l(this);return w(t,"has",e),t.hasOwnProperty(e)}class Pe{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;const n=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!n;if(s==="__v_isReadonly")return n;if(s==="__v_isShallow")return r;if(s==="__v_raw")return i===(n?r?He:Ke:r?je:Le).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const f=y(t);if(!n){let o;if(f&&(o=st[s]))return o;if(s==="hasOwnProperty")return rt}const a=Reflect.get(t,s,R(t)?t:i);return(B(s)?Me.has(s):it(s))||(n||w(t,"get",s),r)?a:R(a)?f&&de(s)?a:a.value:j(a)?n?We(a):Ce(a):a}}class Oe extends Pe{constructor(t=!1){super(!1,t)}set(t,s,i,n){let r=t[s];if(!this._isShallow){const o=O(r);if(!S(i)&&!O(i)&&(r=l(r),i=l(i)),!y(t)&&R(r)&&!R(i))return o?!1:(r.value=i,!0)}const f=y(t)&&de(s)?Number(s)e,q=e=>Reflect.getPrototypeOf(e);function ut(e,t,s){return function(...i){const n=this.__v_raw,r=l(n),f=C(r),a=e==="entries"||e===Symbol.iterator&&f,o=e==="keys"&&f,p=n[e](...i),c=s?le:t?he:v;return!t&&w(r,"iterate",o?ue:P),{next(){const{value:d,done:_}=p.next();return _?{value:d,done:_}:{value:a?[c(d[0]),c(d[1])]:c(d),done:_}},[Symbol.iterator](){return this}}}}function Q(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function lt(e,t){const s={get(n){const r=this.__v_raw,f=l(r),a=l(n);e||(I(n,a)&&w(f,"get",n),w(f,"get",a));const{has:o}=q(f),p=t?le:e?he:v;if(o.call(f,n))return p(r.get(n));if(o.call(f,a))return p(r.get(a));r!==f&&r.get(n)},get size(){const n=this.__v_raw;return!e&&w(l(n),"iterate",P),Reflect.get(n,"size",n)},has(n){const r=this.__v_raw,f=l(r),a=l(n);return e||(I(n,a)&&w(f,"has",n),w(f,"has",a)),n===a?r.has(n):r.has(n)||r.has(a)},forEach(n,r){const f=this,a=f.__v_raw,o=l(a),p=t?le:e?he:v;return!e&&w(o,"iterate",P),a.forEach((c,d)=>n.call(r,p(c),p(d),f))}};return Ye(s,e?{add:Q("add"),set:Q("set"),delete:Q("delete"),clear:Q("clear")}:{add(n){!t&&!S(n)&&!O(n)&&(n=l(n));const r=l(this);return q(r).has.call(r,n)||(r.add(n),T(r,"add",n,n)),this},set(n,r){!t&&!S(r)&&!O(r)&&(r=l(r));const f=l(this),{has:a,get:o}=q(f);let p=a.call(f,n);p||(n=l(n),p=a.call(f,n));const c=o.call(f,n);return f.set(n,r),p?I(r,c)&&T(f,"set",n,r):T(f,"add",n,r),this},delete(n){const r=l(this),{has:f,get:a}=q(r);let o=f.call(r,n);o||(n=l(n),o=f.call(r,n)),a&&a.call(r,n);const p=r.delete(n);return o&&T(r,"delete",n,void 0),p},clear(){const n=l(this),r=n.size!==0,f=n.clear();return r&&T(n,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(n=>{s[n]=ut(n,e,t)}),s}function se(e,t){const s=lt(e,t);return(i,n,r)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get($(s,n)&&n in i?s:i,n,r)}const ht={get:se(!1,!1)},dt={get:se(!1,!0)},pt={get:se(!0,!1)},_t={get:se(!0,!0)},Le=new WeakMap,je=new WeakMap,Ke=new WeakMap,He=new WeakMap;function gt(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vt(e){return e.__v_skip||!Object.isExtensible(e)?0:gt(ze(e))}function Ce(e){return O(e)?e:ne(e,!1,ft,ht,Le)}function Ot(e){return ne(e,!1,ot,dt,je)}function We(e){return ne(e,!0,at,pt,Ke)}function At(e){return ne(e,!0,ct,_t,He)}function ne(e,t,s,i,n){if(!j(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=n.get(e);if(r)return r;const f=vt(e);if(f===0)return e;const a=new Proxy(e,f===2?i:s);return n.set(e,a),a}function N(e){return O(e)?N(e.__v_raw):!!(e&&e.__v_isReactive)}function O(e){return!!(e&&e.__v_isReadonly)}function S(e){return!!(e&&e.__v_isShallow)}function wt(e){return e?!!e.__v_raw:!1}function l(e){const t=e&&e.__v_raw;return t?l(t):e}function Lt(e){return!$(e,"__v_skip")&&Object.isExtensible(e)&&Fe(e,"__v_skip",!0),e}const v=e=>j(e)?Ce(e):e,he=e=>j(e)?We(e):e;function R(e){return e?e.__v_isRef===!0:!1}function Rt(e){return Ve(e,!1)}function jt(e){return Ve(e,!0)}function Ve(e,t){return R(e)?e:new bt(e,t)}class bt{constructor(t,s){this.dep=new te,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:l(t),this._value=s?t:v(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,i=this.__v_isShallow||S(t)||O(t);t=i?t:l(t),I(t,s)&&(this._rawValue=t,this._value=i?t:v(t),this.dep.trigger())}}function St(e){return R(e)?e.value:e}const mt={get:(e,t,s)=>t==="__v_raw"?e:St(Reflect.get(e,t,s)),set:(e,t,s,i)=>{const n=e[t];return R(n)&&!R(s)?(n.value=s,!0):Reflect.set(e,t,s,i)}};function Kt(e){return N(e)?e:new Proxy(e,mt)}class xt{constructor(t){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new te,{get:i,set:n}=t(s.track.bind(s),s.trigger.bind(s));this._get=i,this._set=n}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ht(e){return new xt(e)}function Ct(e){const t=y(e)?new Array(e.length):{};for(const s in e)t[s]=Ne(e,s);return t}class yt{constructor(t,s,i){this._object=t,this._key=s,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return tt(l(this._object),this._key)}}class Tt{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Wt(e,t,s){return R(e)?e:Z(e)?new Tt(e):j(e)&&arguments.length>1?Ne(e,t,s):Rt(e)}function Ne(e,t,s){const i=e[t];return R(i)?i:new yt(e,t,s)}class Dt{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new te(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Y-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&h!==this)return Se(this,!0),!0}get value(){const t=this.dep.track();return ye(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Vt(e,t,s=!1){let i,n;return Z(e)?i=e:(i=e.get,n=e.set),new Dt(i,n,s)}const X={},ee=new WeakMap;let M;function It(e,t=!1,s=M){if(s){let i=ee.get(s);i||ee.set(s,i=[]),i.push(e)}}function Nt(e,t,s=Be){const{immediate:i,deep:n,once:r,scheduler:f,augmentJob:a,call:o}=s,p=u=>n?u:S(u)||n===!1||n===0?D(u,1):D(u);let c,d,_,F,G=!1,J=!1;if(R(e)?(d=()=>e.value,G=S(e)):N(e)?(d=()=>p(e),G=!0):y(e)?(J=!0,G=e.some(u=>N(u)||S(u)),d=()=>e.map(u=>{if(R(u))return u.value;if(N(u))return p(u);if(Z(u))return o?o(u,2):u()})):Z(e)?t?d=o?()=>o(e,2):e:d=()=>{if(_){De();try{_()}finally{Ie()}}const u=M;M=c;try{return o?o(e,3,[F]):e(F)}finally{M=u}}:d=Ue,t&&n){const u=d,m=n===!0?1/0:n;d=()=>D(u(),m)}const ie=Ze(),A=()=>{c.stop(),ie&&ie.active&&Qe(ie.effects,c)};if(r&&t){const u=t;t=(...m)=>{u(...m),A()}}let E=J?new Array(e.length).fill(X):X;const K=u=>{if(!(!(c.flags&1)||!c.dirty&&!u))if(t){const m=c.run();if(n||G||(J?m.some((re,U)=>I(re,E[U])):I(m,E))){_&&_();const re=M;M=c;try{const U=[m,E===X?void 0:J&&E[0]===X?[]:E,F];o?o(t,3,U):t(...U),E=m}finally{M=re}}}else c.run()};return a&&a(K),c=new $e(d),c.scheduler=f?()=>f(K,!1):K,F=u=>It(u,!1,c),_=c.onStop=()=>{const u=ee.get(c);if(u){if(o)o(u,4);else for(const m of u)m();ee.delete(c)}},t?i?K(!0):E=c.run():f?f(K.bind(null,!0),!0):c.run(),A.pause=c.pause.bind(c),A.resume=c.resume.bind(c),A.stop=A,A}function D(e,t=1/0,s){if(t<=0||!j(e)||e.__v_skip||(s=s||new Set,s.has(e)))return e;if(s.add(e),t--,R(e))D(e.value,t,s);else if(y(e))for(let i=0;i{D(i,t,s)});else if(Je(e)){for(const i in e)D(e[i],t,s);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&D(e[i],t,s)}return e}export{Xe as E,$e as R,R as a,De as b,Vt as c,l as d,Ce as e,w as f,Ot as g,T as h,wt as i,At as j,Rt as k,We as l,Lt as m,Wt as n,Ht as o,Kt as p,Ze as q,Ie as r,jt as s,D as t,St as u,Pt as v,Nt as w,Ct as x,Mt as y,N as z}; diff --git a/js/@vue_reactivity@3.5.13-CjJL8SnF.js.gz b/js/@vue_reactivity@3.5.13-CjJL8SnF.js.gz deleted file mode 100644 index 7b3bc33c..00000000 Binary files a/js/@vue_reactivity@3.5.13-CjJL8SnF.js.gz and /dev/null differ diff --git a/js/@vue_runtime-core@3.5.13-BsGyjLIk.js.gz b/js/@vue_runtime-core@3.5.13-BsGyjLIk.js.gz deleted file mode 100644 index 67505ee0..00000000 Binary files a/js/@vue_runtime-core@3.5.13-BsGyjLIk.js.gz and /dev/null differ diff --git a/js/@vue_runtime-core@3.5.13-BsGyjLIk.js b/js/@vue_runtime-core@3.5.13-pPpmd6wL.js similarity index 98% rename from js/@vue_runtime-core@3.5.13-BsGyjLIk.js rename to js/@vue_runtime-core@3.5.13-pPpmd6wL.js index f476002e..a37531fb 100644 --- a/js/@vue_runtime-core@3.5.13-BsGyjLIk.js +++ b/js/@vue_runtime-core@3.5.13-pPpmd6wL.js @@ -1,5 +1,5 @@ -import{i as $s,s as Hn,w as Nn,a as Ct,c as $n,t as Ln,p as Ls,m as Vn,b as Ge,r as Je,d as Bt,e as Un,R as Dn,E as jn,f as Vs,g as Rn,h as Sn}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{c as L,e as le,n as Pt,o as ye,p as Us,a as ge,b as S,q as Ds,s as ns,r as js,i as Kn,E as W,u as Rs,v as Ee,w as Ss,N as Ie,x as Re,y as et,z as Wn,A as qn,B as tt,f as Q,C as Gn,D as ft,g as Jn,F as Yn,G as Vt,H as Ks}from"./@vue_shared@3.5.13-DbMIZLZJ.js";/** +import{i as $s,s as Hn,w as Nn,a as Ct,c as $n,t as Ln,p as Ls,m as Vn,b as Ge,r as Je,d as Bt,e as Un,R as Dn,E as jn,f as Vs,g as Rn,h as Sn}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{b as L,e as le,n as Pt,o as ye,p as Us,a as ge,c as S,q as Ds,s as ns,r as js,i as Kn,E as W,u as Rs,v as Ee,w as Ss,N as Ie,x as Re,y as et,z as Wn,A as qn,B as tt,f as Q,C as Gn,D as ft,g as Jn,F as Yn,G as Vt,H as Ks}from"./@vue_shared@3.5.13-CQ6Z-5d1.js";/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function ut(e,t,s,n){try{return n?e(...n):e()}catch(l){ct(l,t,s)}}function ve(e,t,s,n){if(L(e)){const l=ut(e,t,s,n);return l&&Rs(l)&&l.catch(r=>{ct(r,t,s)}),l}if(S(e)){const l=[];for(let r=0;r>>1,l=oe[n],r=rt(l);r=rt(s)?oe.push(e):oe.splice(Zn(t),0,e),e.flags|=1,qs()}}function qs(){Ft||(Ft=Ws.then(Js))}function Kt(e){S(e)?Se.push(...e):Pe&&e.id===-1?Pe.splice(je+1,0,e):e.flags&1||(Se.push(e),e.flags|=1),qs()}function xs(e,t,s=ke+1){for(;srt(s)-rt(n));if(Se.length=0,Pe){Pe.push(...t);return}for(Pe=t,je=0;jee.id==null?e.flags&2?-1:1/0:e.id;function Js(e){try{for(ke=0;ke{n._d&&ws(-1);const r=Tt(t);let i;try{i=e(...l)}finally{Tt(r),n._d&&ws(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function hr(e,t){if(ee===null)return e;const s=$t(ee),n=e.dirs||(e.dirs=[]);for(let l=0;le.__isTeleport,st=e=>e&&(e.disabled||e.disabled===""),Cs=e=>e&&(e.defer||e.defer===""),Fs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ts=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Wt=(e,t)=>{const s=e&&e.to;return ye(s)?t?t(s):null:s},Zs={name:"Teleport",__isTeleport:!0,process(e,t,s,n,l,r,i,u,c,g){const{mc:a,pc:d,pbc:y,o:{insert:x,querySelector:A,createText:O,createComment:q}}=g,V=st(t.props);let{shapeFlag:v,children:P,dynamicChildren:B}=t;if(e==null){const E=t.el=O(""),M=t.anchor=O("");x(E,s,n),x(M,s,n);const D=(I,H)=>{v&16&&(l&&l.isCE&&(l.ce._teleportTarget=I),a(P,I,H,l,r,i,u,c))},U=()=>{const I=t.target=Wt(t.props,A),H=zs(I,t,O,x);I&&(i!=="svg"&&Fs(I)?i="svg":i!=="mathml"&&Ts(I)&&(i="mathml"),V||(D(I,H),yt(t,!1)))};V&&(D(s,M),yt(t,!0)),Cs(t.props)?z(()=>{U(),t.el.__isMounted=!0},r):U()}else{if(Cs(t.props)&&!e.el.__isMounted){z(()=>{Zs.process(e,t,s,n,l,r,i,u,c,g),delete e.el.__isMounted},r);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,M=t.target=e.target,D=t.targetAnchor=e.targetAnchor,U=st(e.props),I=U?s:M,H=U?E:D;if(i==="svg"||Fs(M)?i="svg":(i==="mathml"||Ts(M))&&(i="mathml"),B?(y(e.dynamicChildren,B,I,l,r,i,u),as(e,t,!0)):c||d(e,t,I,H,l,r,i,u,!1),V)U?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):gt(t,s,E,g,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=Wt(t.props,A);j&>(t,j,null,g,0)}else U&>(t,M,D,g,1);yt(t,V)}},remove(e,t,s,{um:n,o:{remove:l}},r){const{shapeFlag:i,children:u,anchor:c,targetStart:g,targetAnchor:a,target:d,props:y}=e;if(d&&(l(g),l(a)),r&&l(c),i&16){const x=r||!st(y);for(let A=0;A{e.isMounted=!0}),is(()=>{e.isUnmounting=!0}),e}const pe=[Function,Array],sl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:pe,onEnter:pe,onAfterEnter:pe,onEnterCancelled:pe,onBeforeLeave:pe,onLeave:pe,onAfterLeave:pe,onLeaveCancelled:pe,onBeforeAppear:pe,onAppear:pe,onAfterAppear:pe,onAppearCancelled:pe},en=e=>{const t=e.subTree;return t.component?en(t.component):t},nl={name:"BaseTransition",props:sl,setup(e,{slots:t}){const s=ps(),n=tl();return()=>{const l=t.default&&nn(t.default(),!0);if(!l||!l.length)return;const r=tn(l),i=Bt(e),{mode:u}=i;if(n.isLeaving)return Ut(r);const c=ks(r);if(!c)return Ut(r);let g=qt(c,i,n,s,d=>g=d);c.type!==se&&We(c,g);let a=s.subTree&&ks(s.subTree);if(a&&a.type!==se&&!_e(c,a)&&en(s).type!==se){let d=qt(a,i,n,s);if(We(a,d),u==="out-in"&&c.type!==se)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete d.afterLeave,a=void 0},Ut(r);u==="in-out"&&c.type!==se?d.delayLeave=(y,x,A)=>{const O=sn(n,a);O[String(a.key)]=a,y[Me]=()=>{x(),y[Me]=void 0,delete g.delayedLeave,a=void 0},g.delayedLeave=()=>{A(),delete g.delayedLeave,a=void 0}}:a=void 0}else a&&(a=void 0);return r}}};function tn(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==se){t=s;break}}return t}const pr=nl;function sn(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function qt(e,t,s,n,l){const{appear:r,mode:i,persisted:u=!1,onBeforeEnter:c,onEnter:g,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:y,onLeave:x,onAfterLeave:A,onLeaveCancelled:O,onBeforeAppear:q,onAppear:V,onAfterAppear:v,onAppearCancelled:P}=t,B=String(e.key),E=sn(s,e),M=(I,H)=>{I&&ve(I,n,9,H)},D=(I,H)=>{const j=H[1];M(I,H),S(I)?I.every(X=>X.length<=1)&&j():I.length<=1&&j()},U={mode:i,persisted:u,beforeEnter(I){let H=c;if(!s.isMounted)if(r)H=q||c;else return;I[Me]&&I[Me](!0);const j=E[B];j&&_e(e,j)&&j.el[Me]&&j.el[Me](),M(H,[I])},enter(I){let H=g,j=a,X=d;if(!s.isMounted)if(r)H=V||g,j=v||a,X=P||d;else return;let te=!1;const re=I[pt]=Ae=>{te||(te=!0,Ae?M(X,[I]):M(j,[I]),U.delayedLeave&&U.delayedLeave(),I[pt]=void 0)};H?D(H,[I,re]):re()},leave(I,H){const j=String(e.key);if(I[pt]&&I[pt](!0),s.isUnmounting)return H();M(y,[I]);let X=!1;const te=I[Me]=re=>{X||(X=!0,H(),re?M(O,[I]):M(A,[I]),I[Me]=void 0,E[j]===e&&delete E[j])};E[j]=e,x?D(x,[I,te]):te()},clone(I){const H=qt(I,t,s,n,l);return l&&l(H),H}};return U}function Ut(e){if(Mt(e))return e=Oe(e),e.children=null,e}function ks(e){if(!Mt(e))return Xs(e.type)&&e.children?tn(e.children):e;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&L(s.default))return s.default()}}function We(e,t){e.shapeFlag&6&&e.component?(e.transition=t,We(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function nn(e,t=!1,s){let n=[],l=0;for(let r=0;r1)for(let r=0;rs.value,set:r=>s.value=r})}return s}function kt(e,t,s,n,l=!1){if(S(e)){e.forEach((A,O)=>kt(A,t&&(S(t)?t[O]:t),s,n,l));return}if(Ve(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&kt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?$t(n.component):n.el,i=l?null:r,{i:u,r:c}=e,g=t&&t.r,a=u.refs===W?u.refs={}:u.refs,d=u.setupState,y=Bt(d),x=d===W?()=>!1:A=>Q(y,A);if(g!=null&&g!==c&&(ye(g)?(a[g]=null,x(g)&&(d[g]=null)):Ct(g)&&(g.value=null)),L(c))ut(c,u,12,[i,a]);else{const A=ye(c),O=Ct(c);if(A||O){const q=()=>{if(e.f){const V=A?x(c)?d[c]:a[c]:c.value;l?S(V)&&js(V,r):S(V)?V.includes(r)||V.push(r):A?(a[c]=[r],x(c)&&(d[c]=a[c])):(c.value=[r],e.k&&(a[e.k]=c.value))}else A?(a[c]=i,x(c)&&(d[c]=i)):O&&(c.value=i,e.k&&(a[e.k]=i))};i?(q.id=-1,z(q,s)):q()}}}Pt().requestIdleCallback;Pt().cancelIdleCallback;const Ve=e=>!!e.type.__asyncLoader,Mt=e=>e.type.__isKeepAlive,ll={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=ps(),n=s.ctx;if(!n.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const l=new Map,r=new Set;let i=null;const u=s.suspense,{renderer:{p:c,m:g,um:a,o:{createElement:d}}}=n,y=d("div");n.activate=(v,P,B,E,M)=>{const D=v.component;g(v,P,B,0,u),c(D.vnode,v,P,B,D,u,E,v.slotScopeIds,M),z(()=>{D.isDeactivated=!1,D.a&&et(D.a);const U=v.props&&v.props.onVnodeMounted;U&&me(U,D.parent,v)},u)},n.deactivate=v=>{const P=v.component;vt(P.m),vt(P.a),g(v,y,null,1,u),z(()=>{P.da&&et(P.da);const B=v.props&&v.props.onVnodeUnmounted;B&&me(B,P.parent,v),P.isDeactivated=!0},u)};function x(v){Dt(v),a(v,s,u,!0)}function A(v){l.forEach((P,B)=>{const E=ss(P.type);E&&!v(E)&&O(B)})}function O(v){const P=l.get(v);P&&(!i||!_e(P,i))?x(P):i&&Dt(i),l.delete(v),r.delete(v)}_t(()=>[e.include,e.exclude],([v,P])=>{v&&A(B=>Ze(v,B)),P&&A(B=>!Ze(P,B))},{flush:"post",deep:!0});let q=null;const V=()=>{q!=null&&(At(s.subTree.type)?z(()=>{l.set(q,mt(s.subTree))},s.subTree.suspense):l.set(q,mt(s.subTree)))};return rs(V),on(V),is(()=>{l.forEach(v=>{const{subTree:P,suspense:B}=s,E=mt(P);if(v.type===E.type&&v.key===E.key){Dt(E);const M=E.component.da;M&&z(M,B);return}x(v)})}),()=>{if(q=null,!t.default)return i=null;const v=t.default(),P=v[0];if(v.length>1)return i=null,v;if(!De(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return i=null,P;let B=mt(P);if(B.type===se)return i=null,B;const E=B.type,M=ss(Ve(B)?B.type.__asyncResolved||{}:E),{include:D,exclude:U,max:I}=e;if(D&&(!M||!Ze(D,M))||U&&M&&Ze(U,M))return B.shapeFlag&=-257,i=B,P;const H=B.key==null?E:B.key,j=l.get(H);return B.el&&(B=Oe(B),P.shapeFlag&128&&(P.ssContent=B)),q=H,j?(B.el=j.el,B.component=j.component,B.transition&&We(B,B.transition),B.shapeFlag|=512,r.delete(H),r.add(H)):(r.add(H),I&&r.size>parseInt(I,10)&&O(r.values().next().value)),B.shapeFlag|=256,i=B,At(P.type)?P:B}}},br=ll;function Ze(e,t){return S(e)?e.some(s=>Ze(s,t)):ye(e)?e.split(",").includes(t):Wn(e)?(e.lastIndex=0,e.test(t)):!1}function rl(e,t){rn(e,"a",t)}function il(e,t){rn(e,"da",t)}function rn(e,t,s=ne){const n=e.__wdc||(e.__wdc=()=>{let l=s;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(wt(t,n,s),s){let l=s.parent;for(;l&&l.parent;)Mt(l.parent.vnode)&&ol(n,t,s,l),l=l.parent}}function ol(e,t,s,n){const l=wt(t,e,n,!0);fn(()=>{js(n[t],l)},s)}function Dt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function mt(e){return e.shapeFlag&128?e.ssContent:e}function wt(e,t,s=ne,n=!1){if(s){const l=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Ge();const u=at(s),c=ve(t,s,e,i);return u(),Je(),c});return n?l.unshift(r):l.push(r),r}}const Be=e=>(t,s=ne)=>{(!ot||e==="sp")&&wt(e,(...n)=>t(...n),s)},fl=Be("bm"),rs=Be("m"),ul=Be("bu"),on=Be("u"),is=Be("bum"),fn=Be("um"),cl=Be("sp"),al=Be("rtg"),dl=Be("rtc");function hl(e,t=ne){wt("ec",e,t)}const os="components",gl="directives";function _r(e,t){return fs(os,e,!0,t)||e}const un=Symbol.for("v-ndc");function xr(e){return ye(e)?fs(os,e,!1)||e:e||un}function Cr(e){return fs(gl,e)}function fs(e,t,s=!0,n=!1){const l=ee||ne;if(l){const r=l.type;if(e===os){const u=ss(r,!1);if(u&&(u===t||u===Ee(t)||u===Ss(Ee(t))))return r}const i=Es(l[e]||r[e],t)||Es(l.appContext[e],t);return!i&&n?r:i}}function Es(e,t){return e&&(e[t]||e[Ee(t)]||e[Ss(Ee(t))])}function Fr(e,t,s={},n,l){if(ee.ce||ee.parent&&Ve(ee.parent)&&ee.parent.ce)return It(),zt(he,null,[fe("slot",s,n)],64);let r=e[t];r&&r._c&&(r._d=!1),It();const i=r&&cn(r(s)),u=s.key||i&&i.key,c=zt(he,{key:(u&&!Kn(u)?u:`_${t}`)+""},i||[],i&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),r&&r._c&&(r._d=!0),c}function cn(e){return e.some(t=>De(t)?!(t.type===se||t.type===he&&!cn(t.children)):!0)?e:null}const Gt=e=>e?Bn(e)?$t(e):Gt(e.parent):null,nt=le(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Gt(e.parent),$root:e=>Gt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>us(e),$forceUpdate:e=>e.f||(e.f=()=>{ls(e.update)}),$nextTick:e=>e.n||(e.n=Xn.bind(e.proxy)),$watch:e=>Nl.bind(e)}),jt=(e,t)=>e!==W&&!e.__isScriptSetup&&Q(e,t),pl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:r,accessCache:i,type:u,appContext:c}=e;let g;if(t[0]!=="$"){const x=i[t];if(x!==void 0)switch(x){case 1:return n[t];case 2:return l[t];case 4:return s[t];case 3:return r[t]}else{if(jt(n,t))return i[t]=1,n[t];if(l!==W&&Q(l,t))return i[t]=2,l[t];if((g=e.propsOptions[0])&&Q(g,t))return i[t]=3,r[t];if(s!==W&&Q(s,t))return i[t]=4,s[t];Yt&&(i[t]=0)}}const a=nt[t];let d,y;if(a)return t==="$attrs"&&Vs(e.attrs,"get",""),a(e);if((d=u.__cssModules)&&(d=d[t]))return d;if(s!==W&&Q(s,t))return i[t]=4,s[t];if(y=c.config.globalProperties,Q(y,t))return y[t]},set({_:e},t,s){const{data:n,setupState:l,ctx:r}=e;return jt(l,t)?(l[t]=s,!0):n!==W&&Q(n,t)?(n[t]=s,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:l,propsOptions:r}},i){let u;return!!s[i]||e!==W&&Q(e,i)||jt(t,i)||(u=r[0])&&Q(u,i)||Q(n,i)||Q(nt,i)||Q(l.config.globalProperties,i)},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Q(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Jt(e){return S(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function Tr(e,t){const s=Jt(e);for(const n in t){if(n.startsWith("__skip"))continue;let l=s[n];l?S(l)||L(l)?l=s[n]={type:l,default:t[n]}:l.default=t[n]:l===null&&(l=s[n]={default:t[n]}),l&&t[`__skip_${n}`]&&(l.skipFactory=!0)}return s}let Yt=!0;function ml(e){const t=us(e),s=e.proxy,n=e.ctx;Yt=!1,t.beforeCreate&&vs(t.beforeCreate,e,"bc");const{data:l,computed:r,methods:i,watch:u,provide:c,inject:g,created:a,beforeMount:d,mounted:y,beforeUpdate:x,updated:A,activated:O,deactivated:q,beforeDestroy:V,beforeUnmount:v,destroyed:P,unmounted:B,render:E,renderTracked:M,renderTriggered:D,errorCaptured:U,serverPrefetch:I,expose:H,inheritAttrs:j,components:X,directives:te,filters:re}=t;if(g&&yl(g,n,null),i)for(const G in i){const J=i[G];L(J)&&(n[G]=J.bind(s))}if(l){const G=l.call(s,s);ge(G)&&(e.data=Un(G))}if(Yt=!0,r)for(const G in r){const J=r[G],He=L(J)?J.bind(s,s):L(J.get)?J.get.bind(s,s):Ie,dt=!L(J)&&L(J.set)?J.set.bind(s):Ie,Ne=or({get:He,set:dt});Object.defineProperty(n,G,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:xe=>Ne.value=xe})}if(u)for(const G in u)an(u[G],n,s,G);if(c){const G=L(c)?c.call(s):c;Reflect.ownKeys(G).forEach(J=>{Tl(J,G[J])})}a&&vs(a,e,"c");function Z(G,J){S(J)?J.forEach(He=>G(He.bind(s))):J&&G(J.bind(s))}if(Z(fl,d),Z(rs,y),Z(ul,x),Z(on,A),Z(rl,O),Z(il,q),Z(hl,U),Z(dl,M),Z(al,D),Z(is,v),Z(fn,B),Z(cl,I),S(H))if(H.length){const G=e.exposed||(e.exposed={});H.forEach(J=>{Object.defineProperty(G,J,{get:()=>s[J],set:He=>s[J]=He})})}else e.exposed||(e.exposed={});E&&e.render===Ie&&(e.render=E),j!=null&&(e.inheritAttrs=j),X&&(e.components=X),te&&(e.directives=te),I&&ln(e)}function yl(e,t,s=Ie){S(e)&&(e=Qt(e));for(const n in e){const l=e[n];let r;ge(l)?"default"in l?r=bt(l.from||n,l.default,!0):r=bt(l.from||n):r=bt(l),Ct(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function vs(e,t,s){ve(S(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function an(e,t,s,n){let l=n.includes(".")?Tn(s,n):()=>s[n];if(ye(e)){const r=t[e];L(r)&&_t(l,r)}else if(L(e))_t(l,e.bind(s));else if(ge(e))if(S(e))e.forEach(r=>an(r,t,s,n));else{const r=L(e.handler)?e.handler.bind(s):t[e.handler];L(r)&&_t(l,r,e)}}function us(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:l,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,u=r.get(t);let c;return u?c=u:!l.length&&!s&&!n?c=t:(c={},l.length&&l.forEach(g=>Et(c,g,i,!0)),Et(c,t,i)),ge(t)&&r.set(t,c),c}function Et(e,t,s,n=!1){const{mixins:l,extends:r}=t;r&&Et(e,r,s,!0),l&&l.forEach(i=>Et(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const u=bl[i]||s&&s[i];e[i]=u?u(e[i],t[i]):t[i]}return e}const bl={data:As,props:Is,emits:Is,methods:ze,computed:ze,beforeCreate:ie,created:ie,beforeMount:ie,mounted:ie,beforeUpdate:ie,updated:ie,beforeDestroy:ie,beforeUnmount:ie,destroyed:ie,unmounted:ie,activated:ie,deactivated:ie,errorCaptured:ie,serverPrefetch:ie,components:ze,directives:ze,watch:xl,provide:As,inject:_l};function As(e,t){return t?e?function(){return le(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function _l(e,t){return ze(Qt(e),Qt(t))}function Qt(e){if(S(e)){const t={};for(let s=0;s1)return s&&L(t)?t.call(n&&n.proxy):t}}function kr(){return!!(ne||ee||Ue)}const hn={},gn=()=>Object.create(hn),pn=e=>Object.getPrototypeOf(e)===hn;function kl(e,t,s,n=!1){const l={},r=gn();e.propsDefaults=Object.create(null),mn(e,t,l,r);for(const i in e.propsOptions[0])i in l||(l[i]=void 0);s?e.props=n?l:Rn(l):e.type.props?e.props=l:e.props=r,e.attrs=r}function El(e,t,s,n){const{props:l,attrs:r,vnode:{patchFlag:i}}=e,u=Bt(l),[c]=e.propsOptions;let g=!1;if((n||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[y,x]=yn(d,t,!0);le(i,y),x&&u.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!c)return ge(e)&&n.set(e,Re),Re;if(S(r))for(let a=0;ae[0]==="_"||e==="$stable",cs=e=>S(e)?e.map(be):[be(e)],Al=(e,t,s)=>{if(t._n)return t;const n=zn((...l)=>cs(t(...l)),s);return n._c=!1,n},_n=(e,t,s)=>{const n=e._ctx;for(const l in e){if(bn(l))continue;const r=e[l];if(L(r))t[l]=Al(l,r,n);else if(r!=null){const i=cs(r);t[l]=()=>i}}},xn=(e,t)=>{const s=cs(t);e.slots.default=()=>s},Cn=(e,t,s)=>{for(const n in t)(s||n!=="_")&&(e[n]=t[n])},Il=(e,t,s)=>{const n=e.slots=gn();if(e.vnode.shapeFlag&32){const l=t._;l?(Cn(n,t,s),s&&Jn(n,"_",l,!0)):_n(t,n)}else t&&xn(e,t)},Ol=(e,t,s)=>{const{vnode:n,slots:l}=e;let r=!0,i=W;if(n.shapeFlag&32){const u=t._;u?s&&u===1?r=!1:Cn(l,t,s):(r=!t.$stable,_n(t,l)),i=t}else t&&(xn(e,t),i={default:1});if(r)for(const u in l)!bn(u)&&i[u]==null&&delete l[u]},z=Gl;function Er(e){return Bl(e)}function Bl(e,t){const s=Pt();s.__VUE__=!0;const{insert:n,remove:l,patchProp:r,createElement:i,createText:u,createComment:c,setText:g,setElementText:a,parentNode:d,nextSibling:y,setScopeId:x=Ie,insertStaticContent:A}=e,O=(o,f,h,b=null,p=null,m=null,T=void 0,F=null,C=!!f.dynamicChildren)=>{if(o===f)return;o&&!_e(o,f)&&(b=ht(o),xe(o,p,m,!0),o=null),f.patchFlag===-2&&(C=!1,f.dynamicChildren=null);const{type:_,ref:N,shapeFlag:k}=f;switch(_){case Nt:q(o,f,h,b);break;case se:V(o,f,h,b);break;case St:o==null&&v(f,h,b,T);break;case he:X(o,f,h,b,p,m,T,F,C);break;default:k&1?E(o,f,h,b,p,m,T,F,C):k&6?te(o,f,h,b,p,m,T,F,C):(k&64||k&128)&&_.process(o,f,h,b,p,m,T,F,C,Qe)}N!=null&&p&&kt(N,o&&o.ref,m,f||o,!f)},q=(o,f,h,b)=>{if(o==null)n(f.el=u(f.children),h,b);else{const p=f.el=o.el;f.children!==o.children&&g(p,f.children)}},V=(o,f,h,b)=>{o==null?n(f.el=c(f.children||""),h,b):f.el=o.el},v=(o,f,h,b)=>{[o.el,o.anchor]=A(o.children,f,h,b,o.el,o.anchor)},P=({el:o,anchor:f},h,b)=>{let p;for(;o&&o!==f;)p=y(o),n(o,h,b),o=p;n(f,h,b)},B=({el:o,anchor:f})=>{let h;for(;o&&o!==f;)h=y(o),l(o),o=h;l(f)},E=(o,f,h,b,p,m,T,F,C)=>{f.type==="svg"?T="svg":f.type==="math"&&(T="mathml"),o==null?M(f,h,b,p,m,T,F,C):I(o,f,p,m,T,F,C)},M=(o,f,h,b,p,m,T,F)=>{let C,_;const{props:N,shapeFlag:k,transition:w,dirs:$}=o;if(C=o.el=i(o.type,m,N&&N.is,N),k&8?a(C,o.children):k&16&&U(o.children,C,null,b,p,Rt(o,m),T,F),$&&$e(o,null,b,"created"),D(C,o,o.scopeId,T,b),N){for(const Y in N)Y!=="value"&&!tt(Y)&&r(C,Y,null,N[Y],m,b);"value"in N&&r(C,"value",null,N.value,m),(_=N.onVnodeBeforeMount)&&me(_,b,o)}$&&$e(o,null,b,"beforeMount");const R=Pl(p,w);R&&w.beforeEnter(C),n(C,f,h),((_=N&&N.onVnodeMounted)||R||$)&&z(()=>{_&&me(_,b,o),R&&w.enter(C),$&&$e(o,null,b,"mounted")},p)},D=(o,f,h,b,p)=>{if(h&&x(o,h),b)for(let m=0;m{for(let _=C;_{const F=f.el=o.el;let{patchFlag:C,dynamicChildren:_,dirs:N}=f;C|=o.patchFlag&16;const k=o.props||W,w=f.props||W;let $;if(h&&Le(h,!1),($=w.onVnodeBeforeUpdate)&&me($,h,f,o),N&&$e(f,o,h,"beforeUpdate"),h&&Le(h,!0),(k.innerHTML&&w.innerHTML==null||k.textContent&&w.textContent==null)&&a(F,""),_?H(o.dynamicChildren,_,F,h,b,Rt(f,p),m):T||J(o,f,F,null,h,b,Rt(f,p),m,!1),C>0){if(C&16)j(F,k,w,h,p);else if(C&2&&k.class!==w.class&&r(F,"class",null,w.class,p),C&4&&r(F,"style",k.style,w.style,p),C&8){const R=f.dynamicProps;for(let Y=0;Y{$&&me($,h,f,o),N&&$e(f,o,h,"updated")},b)},H=(o,f,h,b,p,m,T)=>{for(let F=0;F{if(f!==h){if(f!==W)for(const m in f)!tt(m)&&!(m in h)&&r(o,m,f[m],null,p,b);for(const m in h){if(tt(m))continue;const T=h[m],F=f[m];T!==F&&m!=="value"&&r(o,m,F,T,p,b)}"value"in h&&r(o,"value",f.value,h.value,p)}},X=(o,f,h,b,p,m,T,F,C)=>{const _=f.el=o?o.el:u(""),N=f.anchor=o?o.anchor:u("");let{patchFlag:k,dynamicChildren:w,slotScopeIds:$}=f;$&&(F=F?F.concat($):$),o==null?(n(_,h,b),n(N,h,b),U(f.children||[],h,N,p,m,T,F,C)):k>0&&k&64&&w&&o.dynamicChildren?(H(o.dynamicChildren,w,h,p,m,T,F),(f.key!=null||p&&f===p.subTree)&&as(o,f,!0)):J(o,f,h,N,p,m,T,F,C)},te=(o,f,h,b,p,m,T,F,C)=>{f.slotScopeIds=F,o==null?f.shapeFlag&512?p.ctx.activate(f,h,b,T,C):re(f,h,b,p,m,T,C):Ae(o,f,C)},re=(o,f,h,b,p,m,T)=>{const F=o.component=tr(o,b,p);if(Mt(o)&&(F.ctx.renderer=Qe),sr(F,!1,T),F.asyncDep){if(p&&p.registerDep(F,Z,T),!o.el){const C=F.subTree=fe(se);V(null,C,f,h)}}else Z(F,o,f,h,p,m,T)},Ae=(o,f,h)=>{const b=f.component=o.component;if(jl(o,f,h))if(b.asyncDep&&!b.asyncResolved){G(b,f,h);return}else b.next=f,b.update();else f.el=o.el,b.vnode=f},Z=(o,f,h,b,p,m,T)=>{const F=()=>{if(o.isMounted){let{next:k,bu:w,u:$,parent:R,vnode:Y}=o;{const Fe=Fn(o);if(Fe){k&&(k.el=Y.el,G(o,k,T)),Fe.asyncDep.then(()=>{o.isUnmounted||F()});return}}let K=k,ae;Le(o,!1),k?(k.el=Y.el,G(o,k,T)):k=Y,w&&et(w),(ae=k.props&&k.props.onVnodeBeforeUpdate)&&me(ae,R,k,Y),Le(o,!0);const ue=Bs(o),Ce=o.subTree;o.subTree=ue,O(Ce,ue,d(Ce.el),ht(Ce),o,p,m),k.el=ue.el,K===null&&hs(o,ue.el),$&&z($,p),(ae=k.props&&k.props.onVnodeUpdated)&&z(()=>me(ae,R,k,Y),p)}else{let k;const{el:w,props:$}=f,{bm:R,m:Y,parent:K,root:ae,type:ue}=o,Ce=Ve(f);Le(o,!1),R&&et(R),!Ce&&(k=$&&$.onVnodeBeforeMount)&&me(k,K,f),Le(o,!0);{ae.ce&&ae.ce._injectChildStyle(ue);const Fe=o.subTree=Bs(o);O(null,Fe,h,b,o,p,m),f.el=Fe.el}if(Y&&z(Y,p),!Ce&&(k=$&&$.onVnodeMounted)){const Fe=f;z(()=>me(k,K,Fe),p)}(f.shapeFlag&256||K&&Ve(K.vnode)&&K.vnode.shapeFlag&256)&&o.a&&z(o.a,p),o.isMounted=!0,f=h=b=null}};o.scope.on();const C=o.effect=new Dn(F);o.scope.off();const _=o.update=C.run.bind(C),N=o.job=C.runIfDirty.bind(C);N.i=o,N.id=o.uid,C.scheduler=()=>ls(N),Le(o,!0),_()},G=(o,f,h)=>{f.component=o;const b=o.vnode.props;o.vnode=f,o.next=null,El(o,f.props,b,h),Ol(o,f.children,h),Ge(),xs(o),Je()},J=(o,f,h,b,p,m,T,F,C=!1)=>{const _=o&&o.children,N=o?o.shapeFlag:0,k=f.children,{patchFlag:w,shapeFlag:$}=f;if(w>0){if(w&128){dt(_,k,h,b,p,m,T,F,C);return}else if(w&256){He(_,k,h,b,p,m,T,F,C);return}}$&8?(N&16&&Ye(_,p,m),k!==_&&a(h,k)):N&16?$&16?dt(_,k,h,b,p,m,T,F,C):Ye(_,p,m,!0):(N&8&&a(h,""),$&16&&U(k,h,b,p,m,T,F,C))},He=(o,f,h,b,p,m,T,F,C)=>{o=o||Re,f=f||Re;const _=o.length,N=f.length,k=Math.min(_,N);let w;for(w=0;wN?Ye(o,p,m,!0,!1,k):U(f,h,b,p,m,T,F,C,k)},dt=(o,f,h,b,p,m,T,F,C)=>{let _=0;const N=f.length;let k=o.length-1,w=N-1;for(;_<=k&&_<=w;){const $=o[_],R=f[_]=C?we(f[_]):be(f[_]);if(_e($,R))O($,R,h,null,p,m,T,F,C);else break;_++}for(;_<=k&&_<=w;){const $=o[k],R=f[w]=C?we(f[w]):be(f[w]);if(_e($,R))O($,R,h,null,p,m,T,F,C);else break;k--,w--}if(_>k){if(_<=w){const $=w+1,R=$w)for(;_<=k;)xe(o[_],p,m,!0),_++;else{const $=_,R=_,Y=new Map;for(_=R;_<=w;_++){const de=f[_]=C?we(f[_]):be(f[_]);de.key!=null&&Y.set(de.key,_)}let K,ae=0;const ue=w-R+1;let Ce=!1,Fe=0;const Xe=new Array(ue);for(_=0;_=ue){xe(de,p,m,!0);continue}let Te;if(de.key!=null)Te=Y.get(de.key);else for(K=R;K<=w;K++)if(Xe[K-R]===0&&_e(de,f[K])){Te=K;break}Te===void 0?xe(de,p,m,!0):(Xe[Te-R]=_+1,Te>=Fe?Fe=Te:Ce=!0,O(de,f[Te],h,null,p,m,T,F,C),ae++)}const bs=Ce?Ml(Xe):Re;for(K=bs.length-1,_=ue-1;_>=0;_--){const de=R+_,Te=f[de],_s=de+1{const{el:m,type:T,transition:F,children:C,shapeFlag:_}=o;if(_&6){Ne(o.component.subTree,f,h,b);return}if(_&128){o.suspense.move(f,h,b);return}if(_&64){T.move(o,f,h,Qe);return}if(T===he){n(m,f,h);for(let k=0;kF.enter(m),p);else{const{leave:k,delayLeave:w,afterLeave:$}=F,R=()=>n(m,f,h),Y=()=>{k(m,()=>{R(),$&&$()})};w?w(m,R,Y):Y()}else n(m,f,h)},xe=(o,f,h,b=!1,p=!1)=>{const{type:m,props:T,ref:F,children:C,dynamicChildren:_,shapeFlag:N,patchFlag:k,dirs:w,cacheIndex:$}=o;if(k===-2&&(p=!1),F!=null&&kt(F,null,h,o,!0),$!=null&&(f.renderCache[$]=void 0),N&256){f.ctx.deactivate(o);return}const R=N&1&&w,Y=!Ve(o);let K;if(Y&&(K=T&&T.onVnodeBeforeUnmount)&&me(K,f,o),N&6)wn(o.component,h,b);else{if(N&128){o.suspense.unmount(h,b);return}R&&$e(o,null,f,"beforeUnmount"),N&64?o.type.remove(o,f,h,Qe,b):_&&!_.hasOnce&&(m!==he||k>0&&k&64)?Ye(_,f,h,!1,!0):(m===he&&k&384||!p&&N&16)&&Ye(C,f,h),b&&ms(o)}(Y&&(K=T&&T.onVnodeUnmounted)||R)&&z(()=>{K&&me(K,f,o),R&&$e(o,null,f,"unmounted")},h)},ms=o=>{const{type:f,el:h,anchor:b,transition:p}=o;if(f===he){Mn(h,b);return}if(f===St){B(o);return}const m=()=>{l(h),p&&!p.persisted&&p.afterLeave&&p.afterLeave()};if(o.shapeFlag&1&&p&&!p.persisted){const{leave:T,delayLeave:F}=p,C=()=>T(h,m);F?F(o.el,m,C):C()}else m()},Mn=(o,f)=>{let h;for(;o!==f;)h=y(o),l(o),o=h;l(f)},wn=(o,f,h)=>{const{bum:b,scope:p,job:m,subTree:T,um:F,m:C,a:_}=o;vt(C),vt(_),b&&et(b),p.stop(),m&&(m.flags|=8,xe(T,o,f,h)),F&&z(F,f),z(()=>{o.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&o.asyncDep&&!o.asyncResolved&&o.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},Ye=(o,f,h,b=!1,p=!1,m=0)=>{for(let T=m;T{if(o.shapeFlag&6)return ht(o.component.subTree);if(o.shapeFlag&128)return o.suspense.next();const f=y(o.anchor||o.el),h=f&&f[Qs];return h?y(h):f};let Lt=!1;const ys=(o,f,h)=>{o==null?f._vnode&&xe(f._vnode,null,null,!0):O(f._vnode||null,o,f,null,null,null,h),f._vnode=o,Lt||(Lt=!0,xs(),Gs(),Lt=!1)},Qe={p:O,um:xe,m:Ne,r:ms,mt:re,mc:U,pc:J,pbc:H,n:ht,o:e};return{render:ys,hydrate:void 0,createApp:Fl(ys)}}function Rt({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Le({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function as(e,t,s=!1){const n=e.children,l=t.children;if(S(n)&&S(l))for(let r=0;r>1,e[s[u]]0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function Fn(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fn(t)}function vt(e){if(e)for(let t=0;tbt(wl);function vr(e,t){return ds(e,null,t)}function _t(e,t,s){return ds(e,t,s)}function ds(e,t,s=W){const{immediate:n,deep:l,flush:r,once:i}=s,u=le({},s),c=t&&n||!t&&r!=="post";let g;if(ot){if(r==="sync"){const x=Hl();g=x.__watcherHandles||(x.__watcherHandles=[])}else if(!c){const x=()=>{};return x.stop=Ie,x.resume=Ie,x.pause=Ie,x}}const a=ne;u.call=(x,A,O)=>ve(x,a,A,O);let d=!1;r==="post"?u.scheduler=x=>{z(x,a&&a.suspense)}:r!=="sync"&&(d=!0,u.scheduler=(x,A)=>{A?x():ls(x)}),u.augmentJob=x=>{t&&(x.flags|=4),d&&(x.flags|=2,a&&(x.id=a.uid,x.i=a))};const y=Nn(e,t,u);return ot&&(g?g.push(y):c&&y()),y}function Nl(e,t,s){const n=this.proxy,l=ye(e)?e.includes(".")?Tn(n,e):()=>n[e]:e.bind(n,n);let r;L(t)?r=t:(r=t.handler,s=t);const i=at(this),u=ds(l,r.bind(n),s);return i(),u}function Tn(e,t){const s=t.split(".");return()=>{let n=e;for(let l=0;lt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ee(t)}Modifiers`]||e[`${ft(t)}Modifiers`];function Ll(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||W;let l=s;const r=t.startsWith("update:"),i=r&&$l(n,t.slice(7));i&&(i.trim&&(l=s.map(a=>ye(a)?a.trim():a)),i.number&&(l=s.map(Yn)));let u,c=n[u=Vt(t)]||n[u=Vt(Ee(t))];!c&&r&&(c=n[u=Vt(ft(t))]),c&&ve(c,e,6,l);const g=n[u+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,ve(g,e,6,l)}}function kn(e,t,s=!1){const n=t.emitsCache,l=n.get(e);if(l!==void 0)return l;const r=e.emits;let i={},u=!1;if(!L(e)){const c=g=>{const a=kn(g,t,!0);a&&(u=!0,le(i,a))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!u?(ge(e)&&n.set(e,null),null):(S(r)?r.forEach(c=>i[c]=null):le(i,r),ge(e)&&n.set(e,i),i)}function Ht(e,t){return!e||!ns(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,ft(t))||Q(e,t))}function Bs(e){const{type:t,vnode:s,proxy:n,withProxy:l,propsOptions:[r],slots:i,attrs:u,emit:c,render:g,renderCache:a,props:d,data:y,setupState:x,ctx:A,inheritAttrs:O}=e,q=Tt(e);let V,v;try{if(s.shapeFlag&4){const B=l||n,E=B;V=be(g.call(E,B,a,d,x,y,A)),v=u}else{const B=t;V=be(B.length>1?B(d,{attrs:u,slots:i,emit:c}):B(d,null)),v=t.props?u:Ul(u)}}catch(B){lt.length=0,ct(B,e,1),V=fe(se)}let P=V;if(v&&O!==!1){const B=Object.keys(v),{shapeFlag:E}=P;B.length&&E&7&&(r&&B.some(Ks)&&(v=Dl(v,r)),P=Oe(P,v,!1,!0))}return s.dirs&&(P=Oe(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(s.dirs):s.dirs),s.transition&&We(P,s.transition),V=P,Tt(q),V}function Vl(e,t=!0){let s;for(let n=0;n{let t;for(const s in e)(s==="class"||s==="style"||ns(s))&&((t||(t={}))[s]=e[s]);return t},Dl=(e,t)=>{const s={};for(const n in e)(!Ks(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function jl(e,t,s){const{props:n,children:l,component:r}=e,{props:i,children:u,patchFlag:c}=t,g=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Ps(n,i,g):!!i;if(c&8){const a=t.dynamicProps;for(let d=0;de.__isSuspense;let Zt=0;const Rl={name:"Suspense",__isSuspense:!0,process(e,t,s,n,l,r,i,u,c,g){if(e==null)Sl(t,s,n,l,r,i,u,c,g);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Kl(e,t,s,n,l,i,u,c,g)}},hydrate:Wl,normalize:ql},Ar=Rl;function it(e,t){const s=e.props&&e.props[t];L(s)&&s()}function Sl(e,t,s,n,l,r,i,u,c){const{p:g,o:{createElement:a}}=c,d=a("div"),y=e.suspense=En(e,l,n,t,d,s,r,i,u,c);g(null,y.pendingBranch=e.ssContent,d,null,n,y,r,i),y.deps>0?(it(e,"onPending"),it(e,"onFallback"),g(null,e.ssFallback,t,s,n,null,r,i),Ke(y,e.ssFallback)):y.resolve(!1,!0)}function Kl(e,t,s,n,l,r,i,u,{p:c,um:g,o:{createElement:a}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const y=t.ssContent,x=t.ssFallback,{activeBranch:A,pendingBranch:O,isInFallback:q,isHydrating:V}=d;if(O)d.pendingBranch=y,_e(y,O)?(c(O,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0?d.resolve():q&&(V||(c(A,x,s,n,l,null,r,i,u),Ke(d,x)))):(d.pendingId=Zt++,V?(d.isHydrating=!1,d.activeBranch=O):g(O,l,d),d.deps=0,d.effects.length=0,d.hiddenContainer=a("div"),q?(c(null,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0?d.resolve():(c(A,x,s,n,l,null,r,i,u),Ke(d,x))):A&&_e(y,A)?(c(A,y,s,n,l,d,r,i,u),d.resolve(!0)):(c(null,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0&&d.resolve()));else if(A&&_e(y,A))c(A,y,s,n,l,d,r,i,u),Ke(d,y);else if(it(t,"onPending"),d.pendingBranch=y,y.shapeFlag&512?d.pendingId=y.component.suspenseId:d.pendingId=Zt++,c(null,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0)d.resolve();else{const{timeout:v,pendingId:P}=d;v>0?setTimeout(()=>{d.pendingId===P&&d.fallback(x)},v):v===0&&d.fallback(x)}}function En(e,t,s,n,l,r,i,u,c,g,a=!1){const{p:d,m:y,um:x,n:A,o:{parentNode:O,remove:q}}=g;let V;const v=Jl(e);v&&t&&t.pendingBranch&&(V=t.pendingId,t.deps++);const P=e.props?qn(e.props.timeout):void 0,B=r,E={vnode:e,parent:t,parentComponent:s,namespace:i,container:n,hiddenContainer:l,deps:0,pendingId:Zt++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!a,isHydrating:a,isUnmounted:!1,effects:[],resolve(M=!1,D=!1){const{vnode:U,activeBranch:I,pendingBranch:H,pendingId:j,effects:X,parentComponent:te,container:re}=E;let Ae=!1;E.isHydrating?E.isHydrating=!1:M||(Ae=I&&H.transition&&H.transition.mode==="out-in",Ae&&(I.transition.afterLeave=()=>{j===E.pendingId&&(y(H,re,r===B?A(I):r,0),Kt(X))}),I&&(O(I.el)===re&&(r=A(I)),x(I,te,E,!0)),Ae||y(H,re,r,0)),Ke(E,H),E.pendingBranch=null,E.isInFallback=!1;let Z=E.parent,G=!1;for(;Z;){if(Z.pendingBranch){Z.effects.push(...X),G=!0;break}Z=Z.parent}!G&&!Ae&&Kt(X),E.effects=[],v&&t&&t.pendingBranch&&V===t.pendingId&&(t.deps--,t.deps===0&&!D&&t.resolve()),it(U,"onResolve")},fallback(M){if(!E.pendingBranch)return;const{vnode:D,activeBranch:U,parentComponent:I,container:H,namespace:j}=E;it(D,"onFallback");const X=A(U),te=()=>{E.isInFallback&&(d(null,M,H,X,I,null,j,u,c),Ke(E,M))},re=M.transition&&M.transition.mode==="out-in";re&&(U.transition.afterLeave=te),E.isInFallback=!0,x(U,I,null,!0),re||te()},move(M,D,U){E.activeBranch&&y(E.activeBranch,M,D,U),E.container=M},next(){return E.activeBranch&&A(E.activeBranch)},registerDep(M,D,U){const I=!!E.pendingBranch;I&&E.deps++;const H=M.vnode.el;M.asyncDep.catch(j=>{ct(j,M,0)}).then(j=>{if(M.isUnmounted||E.isUnmounted||E.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:X}=M;ts(M,j,!1),H&&(X.el=H);const te=!H&&M.subTree.el;D(M,X,O(H||M.subTree.el),H?null:A(M.subTree),E,i,U),te&&q(te),hs(M,X.el),I&&--E.deps===0&&E.resolve()})},unmount(M,D){E.isUnmounted=!0,E.activeBranch&&x(E.activeBranch,s,M,D),E.pendingBranch&&x(E.pendingBranch,s,M,D)}};return E}function Wl(e,t,s,n,l,r,i,u,c){const g=t.suspense=En(t,n,s,e.parentNode,document.createElement("div"),null,l,r,i,u,!0),a=c(e,g.pendingBranch=t.ssContent,s,g,r,i);return g.deps===0&&g.resolve(!1,!0),a}function ql(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=Ms(n?s.default:s),e.ssFallback=n?Ms(s.fallback):fe(se)}function Ms(e){let t;if(L(e)){const s=qe&&e._c;s&&(e._d=!1,It()),e=e(),s&&(e._d=!0,t=ce,vn())}return S(e)&&(e=Vl(e)),e=be(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Gl(e,t){t&&t.pendingBranch?S(e)?t.effects.push(...e):t.effects.push(e):Kt(e)}function Ke(e,t){e.activeBranch=t;const{vnode:s,parentComponent:n}=e;let l=t.el;for(;!l&&t.component;)t=t.component.subTree,l=t.el;s.el=l,n&&n.subTree===s&&(n.vnode.el=l,hs(n,l))}function Jl(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const he=Symbol.for("v-fgt"),Nt=Symbol.for("v-txt"),se=Symbol.for("v-cmt"),St=Symbol.for("v-stc"),lt=[];let ce=null;function It(e=!1){lt.push(ce=e?null:[])}function vn(){lt.pop(),ce=lt[lt.length-1]||null}let qe=1;function ws(e,t=!1){qe+=e,e<0&&ce&&t&&(ce.hasOnce=!0)}function An(e){return e.dynamicChildren=qe>0?ce||Re:null,vn(),qe>0&&ce&&ce.push(e),e}function Ir(e,t,s,n,l,r){return An(On(e,t,s,n,l,r,!0))}function zt(e,t,s,n,l){return An(fe(e,t,s,n,l,!0))}function De(e){return e?e.__v_isVNode===!0:!1}function _e(e,t){return e.type===t.type&&e.key===t.key}const In=({key:e})=>e??null,xt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Ct(e)||L(e)?{i:ee,r:e,k:t,f:!!s}:e:null);function On(e,t=null,s=null,n=0,l=null,r=e===he?0:1,i=!1,u=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&In(t),ref:t&&xt(t),scopeId:Ys,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:ee};return u?(gs(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=ye(s)?8:16),qe>0&&!i&&ce&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&ce.push(c),c}const fe=Yl;function Yl(e,t=null,s=null,n=0,l=null,r=!1){if((!e||e===un)&&(e=se),De(e)){const u=Oe(e,t,!0);return s&&gs(u,s),qe>0&&!r&&ce&&(u.shapeFlag&6?ce[ce.indexOf(e)]=u:ce.push(u)),u.patchFlag=-2,u}if(ir(e)&&(e=e.__vccOpts),t){t=Ql(t);let{class:u,style:c}=t;u&&!ye(u)&&(t.class=Us(u)),ge(c)&&($s(c)&&!S(c)&&(c=le({},c)),t.style=Ds(c))}const i=ye(e)?1:At(e)?128:Xs(e)?64:ge(e)?4:L(e)?2:0;return On(e,t,s,n,l,i,r,!0)}function Ql(e){return e?$s(e)||pn(e)?le({},e):e:null}function Oe(e,t,s=!1,n=!1){const{props:l,ref:r,patchFlag:i,children:u,transition:c}=e,g=t?Zl(l||{},t):l,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&In(g),ref:t&&t.ref?s&&r?S(r)?r.concat(xt(t)):[r,xt(t)]:xt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Oe(e.ssContent),ssFallback:e.ssFallback&&Oe(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&We(a,c.clone(a)),a}function Xl(e=" ",t=0){return fe(Nt,null,e,t)}function Or(e="",t=!1){return t?(It(),zt(se,null,e)):fe(se,null,e)}function be(e){return e==null||typeof e=="boolean"?fe(se):S(e)?fe(he,null,e.slice()):De(e)?we(e):fe(Nt,null,String(e))}function we(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Oe(e)}function gs(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(S(t))s=16;else if(typeof t=="object")if(n&65){const l=t.default;l&&(l._c&&(l._d=!1),gs(e,l()),l._c&&(l._d=!0));return}else{s=32;const l=t._;!l&&!pn(t)?t._ctx=ee:l===3&&ee&&(ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else L(t)?(t={default:t,_ctx:ee},s=32):(t=String(t),n&64?(s=16,t=[Xl(t)]):s=8);e.children=t,e.shapeFlag|=s}function Zl(...e){const t={};for(let s=0;sne||ee;let Ot,es;{const e=Pt(),t=(s,n)=>{let l;return(l=e[s])||(l=e[s]=[]),l.push(n),r=>{l.length>1?l.forEach(i=>i(r)):l[0](r)}};Ot=t("__VUE_INSTANCE_SETTERS__",s=>ne=s),es=t("__VUE_SSR_SETTERS__",s=>ot=s)}const at=e=>{const t=ne;return Ot(e),e.scope.on(),()=>{e.scope.off(),Ot(t)}},Hs=()=>{ne&&ne.scope.off(),Ot(null)};function Bn(e){return e.vnode.shapeFlag&4}let ot=!1;function sr(e,t=!1,s=!1){t&&es(t);const{props:n,children:l}=e.vnode,r=Bn(e);kl(e,n,r,t),Il(e,l,s);const i=r?nr(e,t):void 0;return t&&es(!1),i}function nr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,pl);const{setup:n}=s;if(n){Ge();const l=e.setupContext=n.length>1?rr(e):null,r=at(e),i=ut(n,e,0,[e.props,l]),u=Rs(i);if(Je(),r(),(u||e.sp)&&!Ve(e)&&ln(e),u){if(i.then(Hs,Hs),t)return i.then(c=>{ts(e,c,t)}).catch(c=>{ct(c,e,0)});e.asyncDep=i}else ts(e,i,t)}else Pn(e,t)}function ts(e,t,s){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Ls(t)),Pn(e,s)}let Ns;function Pn(e,t,s){const n=e.type;if(!e.render){if(!t&&Ns&&!n.render){const l=n.template||us(e).template;if(l){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:u,compilerOptions:c}=n,g=le(le({isCustomElement:r,delimiters:u},i),c);n.render=Ns(l,g)}}e.render=n.render||Ie}{const l=at(e);Ge();try{ml(e)}finally{Je(),l()}}}const lr={get(e,t){return Vs(e,"get",""),e[t]}};function rr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,lr),slots:e.slots,emit:e.emit,expose:t}}function $t(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ls(Vn(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in nt)return nt[s](e)},has(t,s){return s in t||s in nt}})):e.proxy}function ss(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}function ir(e){return L(e)&&"__vccOpts"in e}const or=(e,t)=>$n(e,t,ot);function Br(e,t,s){const n=arguments.length;return n===2?ge(t)&&!S(t)?De(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&De(s)&&(s=[s]),fe(e,t,s))}const fr="3.5.13";export{zn as A,pr as B,_r as C,It as D,zt as E,he as F,xr as G,Or as H,Xl as I,rl as J,br as K,il as L,se as M,hr as N,Oe as O,Nt as P,fn as Q,kr as R,Ar as S,gr as T,Fr as U,Cr as V,sl as a,fe as b,Er as c,ps as d,ve as e,or as f,nn as g,Br as h,bt as i,vr as j,rs as k,mr as l,Zl as m,Xn as n,on as o,De as p,yr as q,qt as r,We as s,fl as t,tl as u,is as v,_t as w,Tl as x,Tr as y,Ir as z}; +**/function ut(e,t,s,n){try{return n?e(...n):e()}catch(l){ct(l,t,s)}}function ve(e,t,s,n){if(L(e)){const l=ut(e,t,s,n);return l&&Rs(l)&&l.catch(r=>{ct(r,t,s)}),l}if(S(e)){const l=[];for(let r=0;r>>1,l=oe[n],r=rt(l);r=rt(s)?oe.push(e):oe.splice(Zn(t),0,e),e.flags|=1,qs()}}function qs(){Ft||(Ft=Ws.then(Js))}function Kt(e){S(e)?Se.push(...e):Pe&&e.id===-1?Pe.splice(je+1,0,e):e.flags&1||(Se.push(e),e.flags|=1),qs()}function xs(e,t,s=ke+1){for(;srt(s)-rt(n));if(Se.length=0,Pe){Pe.push(...t);return}for(Pe=t,je=0;jee.id==null?e.flags&2?-1:1/0:e.id;function Js(e){try{for(ke=0;ke{n._d&&ws(-1);const r=Tt(t);let i;try{i=e(...l)}finally{Tt(r),n._d&&ws(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function hr(e,t){if(ee===null)return e;const s=$t(ee),n=e.dirs||(e.dirs=[]);for(let l=0;le.__isTeleport,st=e=>e&&(e.disabled||e.disabled===""),Cs=e=>e&&(e.defer||e.defer===""),Fs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ts=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Wt=(e,t)=>{const s=e&&e.to;return ye(s)?t?t(s):null:s},Zs={name:"Teleport",__isTeleport:!0,process(e,t,s,n,l,r,i,u,c,g){const{mc:a,pc:d,pbc:y,o:{insert:x,querySelector:A,createText:O,createComment:q}}=g,V=st(t.props);let{shapeFlag:v,children:P,dynamicChildren:B}=t;if(e==null){const E=t.el=O(""),M=t.anchor=O("");x(E,s,n),x(M,s,n);const D=(I,H)=>{v&16&&(l&&l.isCE&&(l.ce._teleportTarget=I),a(P,I,H,l,r,i,u,c))},U=()=>{const I=t.target=Wt(t.props,A),H=zs(I,t,O,x);I&&(i!=="svg"&&Fs(I)?i="svg":i!=="mathml"&&Ts(I)&&(i="mathml"),V||(D(I,H),yt(t,!1)))};V&&(D(s,M),yt(t,!0)),Cs(t.props)?z(()=>{U(),t.el.__isMounted=!0},r):U()}else{if(Cs(t.props)&&!e.el.__isMounted){z(()=>{Zs.process(e,t,s,n,l,r,i,u,c,g),delete e.el.__isMounted},r);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,M=t.target=e.target,D=t.targetAnchor=e.targetAnchor,U=st(e.props),I=U?s:M,H=U?E:D;if(i==="svg"||Fs(M)?i="svg":(i==="mathml"||Ts(M))&&(i="mathml"),B?(y(e.dynamicChildren,B,I,l,r,i,u),as(e,t,!0)):c||d(e,t,I,H,l,r,i,u,!1),V)U?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):gt(t,s,E,g,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=Wt(t.props,A);j&>(t,j,null,g,0)}else U&>(t,M,D,g,1);yt(t,V)}},remove(e,t,s,{um:n,o:{remove:l}},r){const{shapeFlag:i,children:u,anchor:c,targetStart:g,targetAnchor:a,target:d,props:y}=e;if(d&&(l(g),l(a)),r&&l(c),i&16){const x=r||!st(y);for(let A=0;A{e.isMounted=!0}),is(()=>{e.isUnmounting=!0}),e}const pe=[Function,Array],sl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:pe,onEnter:pe,onAfterEnter:pe,onEnterCancelled:pe,onBeforeLeave:pe,onLeave:pe,onAfterLeave:pe,onLeaveCancelled:pe,onBeforeAppear:pe,onAppear:pe,onAfterAppear:pe,onAppearCancelled:pe},en=e=>{const t=e.subTree;return t.component?en(t.component):t},nl={name:"BaseTransition",props:sl,setup(e,{slots:t}){const s=ps(),n=tl();return()=>{const l=t.default&&nn(t.default(),!0);if(!l||!l.length)return;const r=tn(l),i=Bt(e),{mode:u}=i;if(n.isLeaving)return Ut(r);const c=ks(r);if(!c)return Ut(r);let g=qt(c,i,n,s,d=>g=d);c.type!==se&&We(c,g);let a=s.subTree&&ks(s.subTree);if(a&&a.type!==se&&!_e(c,a)&&en(s).type!==se){let d=qt(a,i,n,s);if(We(a,d),u==="out-in"&&c.type!==se)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete d.afterLeave,a=void 0},Ut(r);u==="in-out"&&c.type!==se?d.delayLeave=(y,x,A)=>{const O=sn(n,a);O[String(a.key)]=a,y[Me]=()=>{x(),y[Me]=void 0,delete g.delayedLeave,a=void 0},g.delayedLeave=()=>{A(),delete g.delayedLeave,a=void 0}}:a=void 0}else a&&(a=void 0);return r}}};function tn(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==se){t=s;break}}return t}const pr=nl;function sn(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function qt(e,t,s,n,l){const{appear:r,mode:i,persisted:u=!1,onBeforeEnter:c,onEnter:g,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:y,onLeave:x,onAfterLeave:A,onLeaveCancelled:O,onBeforeAppear:q,onAppear:V,onAfterAppear:v,onAppearCancelled:P}=t,B=String(e.key),E=sn(s,e),M=(I,H)=>{I&&ve(I,n,9,H)},D=(I,H)=>{const j=H[1];M(I,H),S(I)?I.every(X=>X.length<=1)&&j():I.length<=1&&j()},U={mode:i,persisted:u,beforeEnter(I){let H=c;if(!s.isMounted)if(r)H=q||c;else return;I[Me]&&I[Me](!0);const j=E[B];j&&_e(e,j)&&j.el[Me]&&j.el[Me](),M(H,[I])},enter(I){let H=g,j=a,X=d;if(!s.isMounted)if(r)H=V||g,j=v||a,X=P||d;else return;let te=!1;const re=I[pt]=Ae=>{te||(te=!0,Ae?M(X,[I]):M(j,[I]),U.delayedLeave&&U.delayedLeave(),I[pt]=void 0)};H?D(H,[I,re]):re()},leave(I,H){const j=String(e.key);if(I[pt]&&I[pt](!0),s.isUnmounting)return H();M(y,[I]);let X=!1;const te=I[Me]=re=>{X||(X=!0,H(),re?M(O,[I]):M(A,[I]),I[Me]=void 0,E[j]===e&&delete E[j])};E[j]=e,x?D(x,[I,te]):te()},clone(I){const H=qt(I,t,s,n,l);return l&&l(H),H}};return U}function Ut(e){if(Mt(e))return e=Oe(e),e.children=null,e}function ks(e){if(!Mt(e))return Xs(e.type)&&e.children?tn(e.children):e;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&L(s.default))return s.default()}}function We(e,t){e.shapeFlag&6&&e.component?(e.transition=t,We(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function nn(e,t=!1,s){let n=[],l=0;for(let r=0;r1)for(let r=0;rs.value,set:r=>s.value=r})}return s}function kt(e,t,s,n,l=!1){if(S(e)){e.forEach((A,O)=>kt(A,t&&(S(t)?t[O]:t),s,n,l));return}if(Ve(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&kt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?$t(n.component):n.el,i=l?null:r,{i:u,r:c}=e,g=t&&t.r,a=u.refs===W?u.refs={}:u.refs,d=u.setupState,y=Bt(d),x=d===W?()=>!1:A=>Q(y,A);if(g!=null&&g!==c&&(ye(g)?(a[g]=null,x(g)&&(d[g]=null)):Ct(g)&&(g.value=null)),L(c))ut(c,u,12,[i,a]);else{const A=ye(c),O=Ct(c);if(A||O){const q=()=>{if(e.f){const V=A?x(c)?d[c]:a[c]:c.value;l?S(V)&&js(V,r):S(V)?V.includes(r)||V.push(r):A?(a[c]=[r],x(c)&&(d[c]=a[c])):(c.value=[r],e.k&&(a[e.k]=c.value))}else A?(a[c]=i,x(c)&&(d[c]=i)):O&&(c.value=i,e.k&&(a[e.k]=i))};i?(q.id=-1,z(q,s)):q()}}}Pt().requestIdleCallback;Pt().cancelIdleCallback;const Ve=e=>!!e.type.__asyncLoader,Mt=e=>e.type.__isKeepAlive,ll={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=ps(),n=s.ctx;if(!n.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const l=new Map,r=new Set;let i=null;const u=s.suspense,{renderer:{p:c,m:g,um:a,o:{createElement:d}}}=n,y=d("div");n.activate=(v,P,B,E,M)=>{const D=v.component;g(v,P,B,0,u),c(D.vnode,v,P,B,D,u,E,v.slotScopeIds,M),z(()=>{D.isDeactivated=!1,D.a&&et(D.a);const U=v.props&&v.props.onVnodeMounted;U&&me(U,D.parent,v)},u)},n.deactivate=v=>{const P=v.component;vt(P.m),vt(P.a),g(v,y,null,1,u),z(()=>{P.da&&et(P.da);const B=v.props&&v.props.onVnodeUnmounted;B&&me(B,P.parent,v),P.isDeactivated=!0},u)};function x(v){Dt(v),a(v,s,u,!0)}function A(v){l.forEach((P,B)=>{const E=ss(P.type);E&&!v(E)&&O(B)})}function O(v){const P=l.get(v);P&&(!i||!_e(P,i))?x(P):i&&Dt(i),l.delete(v),r.delete(v)}_t(()=>[e.include,e.exclude],([v,P])=>{v&&A(B=>Ze(v,B)),P&&A(B=>!Ze(P,B))},{flush:"post",deep:!0});let q=null;const V=()=>{q!=null&&(At(s.subTree.type)?z(()=>{l.set(q,mt(s.subTree))},s.subTree.suspense):l.set(q,mt(s.subTree)))};return rs(V),on(V),is(()=>{l.forEach(v=>{const{subTree:P,suspense:B}=s,E=mt(P);if(v.type===E.type&&v.key===E.key){Dt(E);const M=E.component.da;M&&z(M,B);return}x(v)})}),()=>{if(q=null,!t.default)return i=null;const v=t.default(),P=v[0];if(v.length>1)return i=null,v;if(!De(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return i=null,P;let B=mt(P);if(B.type===se)return i=null,B;const E=B.type,M=ss(Ve(B)?B.type.__asyncResolved||{}:E),{include:D,exclude:U,max:I}=e;if(D&&(!M||!Ze(D,M))||U&&M&&Ze(U,M))return B.shapeFlag&=-257,i=B,P;const H=B.key==null?E:B.key,j=l.get(H);return B.el&&(B=Oe(B),P.shapeFlag&128&&(P.ssContent=B)),q=H,j?(B.el=j.el,B.component=j.component,B.transition&&We(B,B.transition),B.shapeFlag|=512,r.delete(H),r.add(H)):(r.add(H),I&&r.size>parseInt(I,10)&&O(r.values().next().value)),B.shapeFlag|=256,i=B,At(P.type)?P:B}}},br=ll;function Ze(e,t){return S(e)?e.some(s=>Ze(s,t)):ye(e)?e.split(",").includes(t):Wn(e)?(e.lastIndex=0,e.test(t)):!1}function rl(e,t){rn(e,"a",t)}function il(e,t){rn(e,"da",t)}function rn(e,t,s=ne){const n=e.__wdc||(e.__wdc=()=>{let l=s;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(wt(t,n,s),s){let l=s.parent;for(;l&&l.parent;)Mt(l.parent.vnode)&&ol(n,t,s,l),l=l.parent}}function ol(e,t,s,n){const l=wt(t,e,n,!0);fn(()=>{js(n[t],l)},s)}function Dt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function mt(e){return e.shapeFlag&128?e.ssContent:e}function wt(e,t,s=ne,n=!1){if(s){const l=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Ge();const u=at(s),c=ve(t,s,e,i);return u(),Je(),c});return n?l.unshift(r):l.push(r),r}}const Be=e=>(t,s=ne)=>{(!ot||e==="sp")&&wt(e,(...n)=>t(...n),s)},fl=Be("bm"),rs=Be("m"),ul=Be("bu"),on=Be("u"),is=Be("bum"),fn=Be("um"),cl=Be("sp"),al=Be("rtg"),dl=Be("rtc");function hl(e,t=ne){wt("ec",e,t)}const os="components",gl="directives";function _r(e,t){return fs(os,e,!0,t)||e}const un=Symbol.for("v-ndc");function xr(e){return ye(e)?fs(os,e,!1)||e:e||un}function Cr(e){return fs(gl,e)}function fs(e,t,s=!0,n=!1){const l=ee||ne;if(l){const r=l.type;if(e===os){const u=ss(r,!1);if(u&&(u===t||u===Ee(t)||u===Ss(Ee(t))))return r}const i=Es(l[e]||r[e],t)||Es(l.appContext[e],t);return!i&&n?r:i}}function Es(e,t){return e&&(e[t]||e[Ee(t)]||e[Ss(Ee(t))])}function Fr(e,t,s={},n,l){if(ee.ce||ee.parent&&Ve(ee.parent)&&ee.parent.ce)return It(),zt(he,null,[fe("slot",s,n)],64);let r=e[t];r&&r._c&&(r._d=!1),It();const i=r&&cn(r(s)),u=s.key||i&&i.key,c=zt(he,{key:(u&&!Kn(u)?u:`_${t}`)+""},i||[],i&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),r&&r._c&&(r._d=!0),c}function cn(e){return e.some(t=>De(t)?!(t.type===se||t.type===he&&!cn(t.children)):!0)?e:null}const Gt=e=>e?Bn(e)?$t(e):Gt(e.parent):null,nt=le(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Gt(e.parent),$root:e=>Gt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>us(e),$forceUpdate:e=>e.f||(e.f=()=>{ls(e.update)}),$nextTick:e=>e.n||(e.n=Xn.bind(e.proxy)),$watch:e=>Nl.bind(e)}),jt=(e,t)=>e!==W&&!e.__isScriptSetup&&Q(e,t),pl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:r,accessCache:i,type:u,appContext:c}=e;let g;if(t[0]!=="$"){const x=i[t];if(x!==void 0)switch(x){case 1:return n[t];case 2:return l[t];case 4:return s[t];case 3:return r[t]}else{if(jt(n,t))return i[t]=1,n[t];if(l!==W&&Q(l,t))return i[t]=2,l[t];if((g=e.propsOptions[0])&&Q(g,t))return i[t]=3,r[t];if(s!==W&&Q(s,t))return i[t]=4,s[t];Yt&&(i[t]=0)}}const a=nt[t];let d,y;if(a)return t==="$attrs"&&Vs(e.attrs,"get",""),a(e);if((d=u.__cssModules)&&(d=d[t]))return d;if(s!==W&&Q(s,t))return i[t]=4,s[t];if(y=c.config.globalProperties,Q(y,t))return y[t]},set({_:e},t,s){const{data:n,setupState:l,ctx:r}=e;return jt(l,t)?(l[t]=s,!0):n!==W&&Q(n,t)?(n[t]=s,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:l,propsOptions:r}},i){let u;return!!s[i]||e!==W&&Q(e,i)||jt(t,i)||(u=r[0])&&Q(u,i)||Q(n,i)||Q(nt,i)||Q(l.config.globalProperties,i)},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Q(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Jt(e){return S(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function Tr(e,t){const s=Jt(e);for(const n in t){if(n.startsWith("__skip"))continue;let l=s[n];l?S(l)||L(l)?l=s[n]={type:l,default:t[n]}:l.default=t[n]:l===null&&(l=s[n]={default:t[n]}),l&&t[`__skip_${n}`]&&(l.skipFactory=!0)}return s}let Yt=!0;function ml(e){const t=us(e),s=e.proxy,n=e.ctx;Yt=!1,t.beforeCreate&&vs(t.beforeCreate,e,"bc");const{data:l,computed:r,methods:i,watch:u,provide:c,inject:g,created:a,beforeMount:d,mounted:y,beforeUpdate:x,updated:A,activated:O,deactivated:q,beforeDestroy:V,beforeUnmount:v,destroyed:P,unmounted:B,render:E,renderTracked:M,renderTriggered:D,errorCaptured:U,serverPrefetch:I,expose:H,inheritAttrs:j,components:X,directives:te,filters:re}=t;if(g&&yl(g,n,null),i)for(const G in i){const J=i[G];L(J)&&(n[G]=J.bind(s))}if(l){const G=l.call(s,s);ge(G)&&(e.data=Un(G))}if(Yt=!0,r)for(const G in r){const J=r[G],He=L(J)?J.bind(s,s):L(J.get)?J.get.bind(s,s):Ie,dt=!L(J)&&L(J.set)?J.set.bind(s):Ie,Ne=or({get:He,set:dt});Object.defineProperty(n,G,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:xe=>Ne.value=xe})}if(u)for(const G in u)an(u[G],n,s,G);if(c){const G=L(c)?c.call(s):c;Reflect.ownKeys(G).forEach(J=>{Tl(J,G[J])})}a&&vs(a,e,"c");function Z(G,J){S(J)?J.forEach(He=>G(He.bind(s))):J&&G(J.bind(s))}if(Z(fl,d),Z(rs,y),Z(ul,x),Z(on,A),Z(rl,O),Z(il,q),Z(hl,U),Z(dl,M),Z(al,D),Z(is,v),Z(fn,B),Z(cl,I),S(H))if(H.length){const G=e.exposed||(e.exposed={});H.forEach(J=>{Object.defineProperty(G,J,{get:()=>s[J],set:He=>s[J]=He})})}else e.exposed||(e.exposed={});E&&e.render===Ie&&(e.render=E),j!=null&&(e.inheritAttrs=j),X&&(e.components=X),te&&(e.directives=te),I&&ln(e)}function yl(e,t,s=Ie){S(e)&&(e=Qt(e));for(const n in e){const l=e[n];let r;ge(l)?"default"in l?r=bt(l.from||n,l.default,!0):r=bt(l.from||n):r=bt(l),Ct(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function vs(e,t,s){ve(S(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function an(e,t,s,n){let l=n.includes(".")?Tn(s,n):()=>s[n];if(ye(e)){const r=t[e];L(r)&&_t(l,r)}else if(L(e))_t(l,e.bind(s));else if(ge(e))if(S(e))e.forEach(r=>an(r,t,s,n));else{const r=L(e.handler)?e.handler.bind(s):t[e.handler];L(r)&&_t(l,r,e)}}function us(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:l,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,u=r.get(t);let c;return u?c=u:!l.length&&!s&&!n?c=t:(c={},l.length&&l.forEach(g=>Et(c,g,i,!0)),Et(c,t,i)),ge(t)&&r.set(t,c),c}function Et(e,t,s,n=!1){const{mixins:l,extends:r}=t;r&&Et(e,r,s,!0),l&&l.forEach(i=>Et(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const u=bl[i]||s&&s[i];e[i]=u?u(e[i],t[i]):t[i]}return e}const bl={data:As,props:Is,emits:Is,methods:ze,computed:ze,beforeCreate:ie,created:ie,beforeMount:ie,mounted:ie,beforeUpdate:ie,updated:ie,beforeDestroy:ie,beforeUnmount:ie,destroyed:ie,unmounted:ie,activated:ie,deactivated:ie,errorCaptured:ie,serverPrefetch:ie,components:ze,directives:ze,watch:xl,provide:As,inject:_l};function As(e,t){return t?e?function(){return le(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function _l(e,t){return ze(Qt(e),Qt(t))}function Qt(e){if(S(e)){const t={};for(let s=0;s1)return s&&L(t)?t.call(n&&n.proxy):t}}function kr(){return!!(ne||ee||Ue)}const hn={},gn=()=>Object.create(hn),pn=e=>Object.getPrototypeOf(e)===hn;function kl(e,t,s,n=!1){const l={},r=gn();e.propsDefaults=Object.create(null),mn(e,t,l,r);for(const i in e.propsOptions[0])i in l||(l[i]=void 0);s?e.props=n?l:Rn(l):e.type.props?e.props=l:e.props=r,e.attrs=r}function El(e,t,s,n){const{props:l,attrs:r,vnode:{patchFlag:i}}=e,u=Bt(l),[c]=e.propsOptions;let g=!1;if((n||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[y,x]=yn(d,t,!0);le(i,y),x&&u.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!c)return ge(e)&&n.set(e,Re),Re;if(S(r))for(let a=0;ae[0]==="_"||e==="$stable",cs=e=>S(e)?e.map(be):[be(e)],Al=(e,t,s)=>{if(t._n)return t;const n=zn((...l)=>cs(t(...l)),s);return n._c=!1,n},_n=(e,t,s)=>{const n=e._ctx;for(const l in e){if(bn(l))continue;const r=e[l];if(L(r))t[l]=Al(l,r,n);else if(r!=null){const i=cs(r);t[l]=()=>i}}},xn=(e,t)=>{const s=cs(t);e.slots.default=()=>s},Cn=(e,t,s)=>{for(const n in t)(s||n!=="_")&&(e[n]=t[n])},Il=(e,t,s)=>{const n=e.slots=gn();if(e.vnode.shapeFlag&32){const l=t._;l?(Cn(n,t,s),s&&Jn(n,"_",l,!0)):_n(t,n)}else t&&xn(e,t)},Ol=(e,t,s)=>{const{vnode:n,slots:l}=e;let r=!0,i=W;if(n.shapeFlag&32){const u=t._;u?s&&u===1?r=!1:Cn(l,t,s):(r=!t.$stable,_n(t,l)),i=t}else t&&(xn(e,t),i={default:1});if(r)for(const u in l)!bn(u)&&i[u]==null&&delete l[u]},z=Gl;function Er(e){return Bl(e)}function Bl(e,t){const s=Pt();s.__VUE__=!0;const{insert:n,remove:l,patchProp:r,createElement:i,createText:u,createComment:c,setText:g,setElementText:a,parentNode:d,nextSibling:y,setScopeId:x=Ie,insertStaticContent:A}=e,O=(o,f,h,b=null,p=null,m=null,T=void 0,F=null,C=!!f.dynamicChildren)=>{if(o===f)return;o&&!_e(o,f)&&(b=ht(o),xe(o,p,m,!0),o=null),f.patchFlag===-2&&(C=!1,f.dynamicChildren=null);const{type:_,ref:N,shapeFlag:k}=f;switch(_){case Nt:q(o,f,h,b);break;case se:V(o,f,h,b);break;case St:o==null&&v(f,h,b,T);break;case he:X(o,f,h,b,p,m,T,F,C);break;default:k&1?E(o,f,h,b,p,m,T,F,C):k&6?te(o,f,h,b,p,m,T,F,C):(k&64||k&128)&&_.process(o,f,h,b,p,m,T,F,C,Qe)}N!=null&&p&&kt(N,o&&o.ref,m,f||o,!f)},q=(o,f,h,b)=>{if(o==null)n(f.el=u(f.children),h,b);else{const p=f.el=o.el;f.children!==o.children&&g(p,f.children)}},V=(o,f,h,b)=>{o==null?n(f.el=c(f.children||""),h,b):f.el=o.el},v=(o,f,h,b)=>{[o.el,o.anchor]=A(o.children,f,h,b,o.el,o.anchor)},P=({el:o,anchor:f},h,b)=>{let p;for(;o&&o!==f;)p=y(o),n(o,h,b),o=p;n(f,h,b)},B=({el:o,anchor:f})=>{let h;for(;o&&o!==f;)h=y(o),l(o),o=h;l(f)},E=(o,f,h,b,p,m,T,F,C)=>{f.type==="svg"?T="svg":f.type==="math"&&(T="mathml"),o==null?M(f,h,b,p,m,T,F,C):I(o,f,p,m,T,F,C)},M=(o,f,h,b,p,m,T,F)=>{let C,_;const{props:N,shapeFlag:k,transition:w,dirs:$}=o;if(C=o.el=i(o.type,m,N&&N.is,N),k&8?a(C,o.children):k&16&&U(o.children,C,null,b,p,Rt(o,m),T,F),$&&$e(o,null,b,"created"),D(C,o,o.scopeId,T,b),N){for(const Y in N)Y!=="value"&&!tt(Y)&&r(C,Y,null,N[Y],m,b);"value"in N&&r(C,"value",null,N.value,m),(_=N.onVnodeBeforeMount)&&me(_,b,o)}$&&$e(o,null,b,"beforeMount");const R=Pl(p,w);R&&w.beforeEnter(C),n(C,f,h),((_=N&&N.onVnodeMounted)||R||$)&&z(()=>{_&&me(_,b,o),R&&w.enter(C),$&&$e(o,null,b,"mounted")},p)},D=(o,f,h,b,p)=>{if(h&&x(o,h),b)for(let m=0;m{for(let _=C;_{const F=f.el=o.el;let{patchFlag:C,dynamicChildren:_,dirs:N}=f;C|=o.patchFlag&16;const k=o.props||W,w=f.props||W;let $;if(h&&Le(h,!1),($=w.onVnodeBeforeUpdate)&&me($,h,f,o),N&&$e(f,o,h,"beforeUpdate"),h&&Le(h,!0),(k.innerHTML&&w.innerHTML==null||k.textContent&&w.textContent==null)&&a(F,""),_?H(o.dynamicChildren,_,F,h,b,Rt(f,p),m):T||J(o,f,F,null,h,b,Rt(f,p),m,!1),C>0){if(C&16)j(F,k,w,h,p);else if(C&2&&k.class!==w.class&&r(F,"class",null,w.class,p),C&4&&r(F,"style",k.style,w.style,p),C&8){const R=f.dynamicProps;for(let Y=0;Y{$&&me($,h,f,o),N&&$e(f,o,h,"updated")},b)},H=(o,f,h,b,p,m,T)=>{for(let F=0;F{if(f!==h){if(f!==W)for(const m in f)!tt(m)&&!(m in h)&&r(o,m,f[m],null,p,b);for(const m in h){if(tt(m))continue;const T=h[m],F=f[m];T!==F&&m!=="value"&&r(o,m,F,T,p,b)}"value"in h&&r(o,"value",f.value,h.value,p)}},X=(o,f,h,b,p,m,T,F,C)=>{const _=f.el=o?o.el:u(""),N=f.anchor=o?o.anchor:u("");let{patchFlag:k,dynamicChildren:w,slotScopeIds:$}=f;$&&(F=F?F.concat($):$),o==null?(n(_,h,b),n(N,h,b),U(f.children||[],h,N,p,m,T,F,C)):k>0&&k&64&&w&&o.dynamicChildren?(H(o.dynamicChildren,w,h,p,m,T,F),(f.key!=null||p&&f===p.subTree)&&as(o,f,!0)):J(o,f,h,N,p,m,T,F,C)},te=(o,f,h,b,p,m,T,F,C)=>{f.slotScopeIds=F,o==null?f.shapeFlag&512?p.ctx.activate(f,h,b,T,C):re(f,h,b,p,m,T,C):Ae(o,f,C)},re=(o,f,h,b,p,m,T)=>{const F=o.component=tr(o,b,p);if(Mt(o)&&(F.ctx.renderer=Qe),sr(F,!1,T),F.asyncDep){if(p&&p.registerDep(F,Z,T),!o.el){const C=F.subTree=fe(se);V(null,C,f,h)}}else Z(F,o,f,h,p,m,T)},Ae=(o,f,h)=>{const b=f.component=o.component;if(jl(o,f,h))if(b.asyncDep&&!b.asyncResolved){G(b,f,h);return}else b.next=f,b.update();else f.el=o.el,b.vnode=f},Z=(o,f,h,b,p,m,T)=>{const F=()=>{if(o.isMounted){let{next:k,bu:w,u:$,parent:R,vnode:Y}=o;{const Fe=Fn(o);if(Fe){k&&(k.el=Y.el,G(o,k,T)),Fe.asyncDep.then(()=>{o.isUnmounted||F()});return}}let K=k,ae;Le(o,!1),k?(k.el=Y.el,G(o,k,T)):k=Y,w&&et(w),(ae=k.props&&k.props.onVnodeBeforeUpdate)&&me(ae,R,k,Y),Le(o,!0);const ue=Bs(o),Ce=o.subTree;o.subTree=ue,O(Ce,ue,d(Ce.el),ht(Ce),o,p,m),k.el=ue.el,K===null&&hs(o,ue.el),$&&z($,p),(ae=k.props&&k.props.onVnodeUpdated)&&z(()=>me(ae,R,k,Y),p)}else{let k;const{el:w,props:$}=f,{bm:R,m:Y,parent:K,root:ae,type:ue}=o,Ce=Ve(f);Le(o,!1),R&&et(R),!Ce&&(k=$&&$.onVnodeBeforeMount)&&me(k,K,f),Le(o,!0);{ae.ce&&ae.ce._injectChildStyle(ue);const Fe=o.subTree=Bs(o);O(null,Fe,h,b,o,p,m),f.el=Fe.el}if(Y&&z(Y,p),!Ce&&(k=$&&$.onVnodeMounted)){const Fe=f;z(()=>me(k,K,Fe),p)}(f.shapeFlag&256||K&&Ve(K.vnode)&&K.vnode.shapeFlag&256)&&o.a&&z(o.a,p),o.isMounted=!0,f=h=b=null}};o.scope.on();const C=o.effect=new Dn(F);o.scope.off();const _=o.update=C.run.bind(C),N=o.job=C.runIfDirty.bind(C);N.i=o,N.id=o.uid,C.scheduler=()=>ls(N),Le(o,!0),_()},G=(o,f,h)=>{f.component=o;const b=o.vnode.props;o.vnode=f,o.next=null,El(o,f.props,b,h),Ol(o,f.children,h),Ge(),xs(o),Je()},J=(o,f,h,b,p,m,T,F,C=!1)=>{const _=o&&o.children,N=o?o.shapeFlag:0,k=f.children,{patchFlag:w,shapeFlag:$}=f;if(w>0){if(w&128){dt(_,k,h,b,p,m,T,F,C);return}else if(w&256){He(_,k,h,b,p,m,T,F,C);return}}$&8?(N&16&&Ye(_,p,m),k!==_&&a(h,k)):N&16?$&16?dt(_,k,h,b,p,m,T,F,C):Ye(_,p,m,!0):(N&8&&a(h,""),$&16&&U(k,h,b,p,m,T,F,C))},He=(o,f,h,b,p,m,T,F,C)=>{o=o||Re,f=f||Re;const _=o.length,N=f.length,k=Math.min(_,N);let w;for(w=0;wN?Ye(o,p,m,!0,!1,k):U(f,h,b,p,m,T,F,C,k)},dt=(o,f,h,b,p,m,T,F,C)=>{let _=0;const N=f.length;let k=o.length-1,w=N-1;for(;_<=k&&_<=w;){const $=o[_],R=f[_]=C?we(f[_]):be(f[_]);if(_e($,R))O($,R,h,null,p,m,T,F,C);else break;_++}for(;_<=k&&_<=w;){const $=o[k],R=f[w]=C?we(f[w]):be(f[w]);if(_e($,R))O($,R,h,null,p,m,T,F,C);else break;k--,w--}if(_>k){if(_<=w){const $=w+1,R=$w)for(;_<=k;)xe(o[_],p,m,!0),_++;else{const $=_,R=_,Y=new Map;for(_=R;_<=w;_++){const de=f[_]=C?we(f[_]):be(f[_]);de.key!=null&&Y.set(de.key,_)}let K,ae=0;const ue=w-R+1;let Ce=!1,Fe=0;const Xe=new Array(ue);for(_=0;_=ue){xe(de,p,m,!0);continue}let Te;if(de.key!=null)Te=Y.get(de.key);else for(K=R;K<=w;K++)if(Xe[K-R]===0&&_e(de,f[K])){Te=K;break}Te===void 0?xe(de,p,m,!0):(Xe[Te-R]=_+1,Te>=Fe?Fe=Te:Ce=!0,O(de,f[Te],h,null,p,m,T,F,C),ae++)}const bs=Ce?Ml(Xe):Re;for(K=bs.length-1,_=ue-1;_>=0;_--){const de=R+_,Te=f[de],_s=de+1{const{el:m,type:T,transition:F,children:C,shapeFlag:_}=o;if(_&6){Ne(o.component.subTree,f,h,b);return}if(_&128){o.suspense.move(f,h,b);return}if(_&64){T.move(o,f,h,Qe);return}if(T===he){n(m,f,h);for(let k=0;kF.enter(m),p);else{const{leave:k,delayLeave:w,afterLeave:$}=F,R=()=>n(m,f,h),Y=()=>{k(m,()=>{R(),$&&$()})};w?w(m,R,Y):Y()}else n(m,f,h)},xe=(o,f,h,b=!1,p=!1)=>{const{type:m,props:T,ref:F,children:C,dynamicChildren:_,shapeFlag:N,patchFlag:k,dirs:w,cacheIndex:$}=o;if(k===-2&&(p=!1),F!=null&&kt(F,null,h,o,!0),$!=null&&(f.renderCache[$]=void 0),N&256){f.ctx.deactivate(o);return}const R=N&1&&w,Y=!Ve(o);let K;if(Y&&(K=T&&T.onVnodeBeforeUnmount)&&me(K,f,o),N&6)wn(o.component,h,b);else{if(N&128){o.suspense.unmount(h,b);return}R&&$e(o,null,f,"beforeUnmount"),N&64?o.type.remove(o,f,h,Qe,b):_&&!_.hasOnce&&(m!==he||k>0&&k&64)?Ye(_,f,h,!1,!0):(m===he&&k&384||!p&&N&16)&&Ye(C,f,h),b&&ms(o)}(Y&&(K=T&&T.onVnodeUnmounted)||R)&&z(()=>{K&&me(K,f,o),R&&$e(o,null,f,"unmounted")},h)},ms=o=>{const{type:f,el:h,anchor:b,transition:p}=o;if(f===he){Mn(h,b);return}if(f===St){B(o);return}const m=()=>{l(h),p&&!p.persisted&&p.afterLeave&&p.afterLeave()};if(o.shapeFlag&1&&p&&!p.persisted){const{leave:T,delayLeave:F}=p,C=()=>T(h,m);F?F(o.el,m,C):C()}else m()},Mn=(o,f)=>{let h;for(;o!==f;)h=y(o),l(o),o=h;l(f)},wn=(o,f,h)=>{const{bum:b,scope:p,job:m,subTree:T,um:F,m:C,a:_}=o;vt(C),vt(_),b&&et(b),p.stop(),m&&(m.flags|=8,xe(T,o,f,h)),F&&z(F,f),z(()=>{o.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&o.asyncDep&&!o.asyncResolved&&o.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},Ye=(o,f,h,b=!1,p=!1,m=0)=>{for(let T=m;T{if(o.shapeFlag&6)return ht(o.component.subTree);if(o.shapeFlag&128)return o.suspense.next();const f=y(o.anchor||o.el),h=f&&f[Qs];return h?y(h):f};let Lt=!1;const ys=(o,f,h)=>{o==null?f._vnode&&xe(f._vnode,null,null,!0):O(f._vnode||null,o,f,null,null,null,h),f._vnode=o,Lt||(Lt=!0,xs(),Gs(),Lt=!1)},Qe={p:O,um:xe,m:Ne,r:ms,mt:re,mc:U,pc:J,pbc:H,n:ht,o:e};return{render:ys,hydrate:void 0,createApp:Fl(ys)}}function Rt({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Le({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function as(e,t,s=!1){const n=e.children,l=t.children;if(S(n)&&S(l))for(let r=0;r>1,e[s[u]]0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function Fn(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fn(t)}function vt(e){if(e)for(let t=0;tbt(wl);function vr(e,t){return ds(e,null,t)}function _t(e,t,s){return ds(e,t,s)}function ds(e,t,s=W){const{immediate:n,deep:l,flush:r,once:i}=s,u=le({},s),c=t&&n||!t&&r!=="post";let g;if(ot){if(r==="sync"){const x=Hl();g=x.__watcherHandles||(x.__watcherHandles=[])}else if(!c){const x=()=>{};return x.stop=Ie,x.resume=Ie,x.pause=Ie,x}}const a=ne;u.call=(x,A,O)=>ve(x,a,A,O);let d=!1;r==="post"?u.scheduler=x=>{z(x,a&&a.suspense)}:r!=="sync"&&(d=!0,u.scheduler=(x,A)=>{A?x():ls(x)}),u.augmentJob=x=>{t&&(x.flags|=4),d&&(x.flags|=2,a&&(x.id=a.uid,x.i=a))};const y=Nn(e,t,u);return ot&&(g?g.push(y):c&&y()),y}function Nl(e,t,s){const n=this.proxy,l=ye(e)?e.includes(".")?Tn(n,e):()=>n[e]:e.bind(n,n);let r;L(t)?r=t:(r=t.handler,s=t);const i=at(this),u=ds(l,r.bind(n),s);return i(),u}function Tn(e,t){const s=t.split(".");return()=>{let n=e;for(let l=0;lt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ee(t)}Modifiers`]||e[`${ft(t)}Modifiers`];function Ll(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||W;let l=s;const r=t.startsWith("update:"),i=r&&$l(n,t.slice(7));i&&(i.trim&&(l=s.map(a=>ye(a)?a.trim():a)),i.number&&(l=s.map(Yn)));let u,c=n[u=Vt(t)]||n[u=Vt(Ee(t))];!c&&r&&(c=n[u=Vt(ft(t))]),c&&ve(c,e,6,l);const g=n[u+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,ve(g,e,6,l)}}function kn(e,t,s=!1){const n=t.emitsCache,l=n.get(e);if(l!==void 0)return l;const r=e.emits;let i={},u=!1;if(!L(e)){const c=g=>{const a=kn(g,t,!0);a&&(u=!0,le(i,a))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!u?(ge(e)&&n.set(e,null),null):(S(r)?r.forEach(c=>i[c]=null):le(i,r),ge(e)&&n.set(e,i),i)}function Ht(e,t){return!e||!ns(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,ft(t))||Q(e,t))}function Bs(e){const{type:t,vnode:s,proxy:n,withProxy:l,propsOptions:[r],slots:i,attrs:u,emit:c,render:g,renderCache:a,props:d,data:y,setupState:x,ctx:A,inheritAttrs:O}=e,q=Tt(e);let V,v;try{if(s.shapeFlag&4){const B=l||n,E=B;V=be(g.call(E,B,a,d,x,y,A)),v=u}else{const B=t;V=be(B.length>1?B(d,{attrs:u,slots:i,emit:c}):B(d,null)),v=t.props?u:Ul(u)}}catch(B){lt.length=0,ct(B,e,1),V=fe(se)}let P=V;if(v&&O!==!1){const B=Object.keys(v),{shapeFlag:E}=P;B.length&&E&7&&(r&&B.some(Ks)&&(v=Dl(v,r)),P=Oe(P,v,!1,!0))}return s.dirs&&(P=Oe(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(s.dirs):s.dirs),s.transition&&We(P,s.transition),V=P,Tt(q),V}function Vl(e,t=!0){let s;for(let n=0;n{let t;for(const s in e)(s==="class"||s==="style"||ns(s))&&((t||(t={}))[s]=e[s]);return t},Dl=(e,t)=>{const s={};for(const n in e)(!Ks(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function jl(e,t,s){const{props:n,children:l,component:r}=e,{props:i,children:u,patchFlag:c}=t,g=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Ps(n,i,g):!!i;if(c&8){const a=t.dynamicProps;for(let d=0;de.__isSuspense;let Zt=0;const Rl={name:"Suspense",__isSuspense:!0,process(e,t,s,n,l,r,i,u,c,g){if(e==null)Sl(t,s,n,l,r,i,u,c,g);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Kl(e,t,s,n,l,i,u,c,g)}},hydrate:Wl,normalize:ql},Ar=Rl;function it(e,t){const s=e.props&&e.props[t];L(s)&&s()}function Sl(e,t,s,n,l,r,i,u,c){const{p:g,o:{createElement:a}}=c,d=a("div"),y=e.suspense=En(e,l,n,t,d,s,r,i,u,c);g(null,y.pendingBranch=e.ssContent,d,null,n,y,r,i),y.deps>0?(it(e,"onPending"),it(e,"onFallback"),g(null,e.ssFallback,t,s,n,null,r,i),Ke(y,e.ssFallback)):y.resolve(!1,!0)}function Kl(e,t,s,n,l,r,i,u,{p:c,um:g,o:{createElement:a}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const y=t.ssContent,x=t.ssFallback,{activeBranch:A,pendingBranch:O,isInFallback:q,isHydrating:V}=d;if(O)d.pendingBranch=y,_e(y,O)?(c(O,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0?d.resolve():q&&(V||(c(A,x,s,n,l,null,r,i,u),Ke(d,x)))):(d.pendingId=Zt++,V?(d.isHydrating=!1,d.activeBranch=O):g(O,l,d),d.deps=0,d.effects.length=0,d.hiddenContainer=a("div"),q?(c(null,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0?d.resolve():(c(A,x,s,n,l,null,r,i,u),Ke(d,x))):A&&_e(y,A)?(c(A,y,s,n,l,d,r,i,u),d.resolve(!0)):(c(null,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0&&d.resolve()));else if(A&&_e(y,A))c(A,y,s,n,l,d,r,i,u),Ke(d,y);else if(it(t,"onPending"),d.pendingBranch=y,y.shapeFlag&512?d.pendingId=y.component.suspenseId:d.pendingId=Zt++,c(null,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0)d.resolve();else{const{timeout:v,pendingId:P}=d;v>0?setTimeout(()=>{d.pendingId===P&&d.fallback(x)},v):v===0&&d.fallback(x)}}function En(e,t,s,n,l,r,i,u,c,g,a=!1){const{p:d,m:y,um:x,n:A,o:{parentNode:O,remove:q}}=g;let V;const v=Jl(e);v&&t&&t.pendingBranch&&(V=t.pendingId,t.deps++);const P=e.props?qn(e.props.timeout):void 0,B=r,E={vnode:e,parent:t,parentComponent:s,namespace:i,container:n,hiddenContainer:l,deps:0,pendingId:Zt++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!a,isHydrating:a,isUnmounted:!1,effects:[],resolve(M=!1,D=!1){const{vnode:U,activeBranch:I,pendingBranch:H,pendingId:j,effects:X,parentComponent:te,container:re}=E;let Ae=!1;E.isHydrating?E.isHydrating=!1:M||(Ae=I&&H.transition&&H.transition.mode==="out-in",Ae&&(I.transition.afterLeave=()=>{j===E.pendingId&&(y(H,re,r===B?A(I):r,0),Kt(X))}),I&&(O(I.el)===re&&(r=A(I)),x(I,te,E,!0)),Ae||y(H,re,r,0)),Ke(E,H),E.pendingBranch=null,E.isInFallback=!1;let Z=E.parent,G=!1;for(;Z;){if(Z.pendingBranch){Z.effects.push(...X),G=!0;break}Z=Z.parent}!G&&!Ae&&Kt(X),E.effects=[],v&&t&&t.pendingBranch&&V===t.pendingId&&(t.deps--,t.deps===0&&!D&&t.resolve()),it(U,"onResolve")},fallback(M){if(!E.pendingBranch)return;const{vnode:D,activeBranch:U,parentComponent:I,container:H,namespace:j}=E;it(D,"onFallback");const X=A(U),te=()=>{E.isInFallback&&(d(null,M,H,X,I,null,j,u,c),Ke(E,M))},re=M.transition&&M.transition.mode==="out-in";re&&(U.transition.afterLeave=te),E.isInFallback=!0,x(U,I,null,!0),re||te()},move(M,D,U){E.activeBranch&&y(E.activeBranch,M,D,U),E.container=M},next(){return E.activeBranch&&A(E.activeBranch)},registerDep(M,D,U){const I=!!E.pendingBranch;I&&E.deps++;const H=M.vnode.el;M.asyncDep.catch(j=>{ct(j,M,0)}).then(j=>{if(M.isUnmounted||E.isUnmounted||E.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:X}=M;ts(M,j,!1),H&&(X.el=H);const te=!H&&M.subTree.el;D(M,X,O(H||M.subTree.el),H?null:A(M.subTree),E,i,U),te&&q(te),hs(M,X.el),I&&--E.deps===0&&E.resolve()})},unmount(M,D){E.isUnmounted=!0,E.activeBranch&&x(E.activeBranch,s,M,D),E.pendingBranch&&x(E.pendingBranch,s,M,D)}};return E}function Wl(e,t,s,n,l,r,i,u,c){const g=t.suspense=En(t,n,s,e.parentNode,document.createElement("div"),null,l,r,i,u,!0),a=c(e,g.pendingBranch=t.ssContent,s,g,r,i);return g.deps===0&&g.resolve(!1,!0),a}function ql(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=Ms(n?s.default:s),e.ssFallback=n?Ms(s.fallback):fe(se)}function Ms(e){let t;if(L(e)){const s=qe&&e._c;s&&(e._d=!1,It()),e=e(),s&&(e._d=!0,t=ce,vn())}return S(e)&&(e=Vl(e)),e=be(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Gl(e,t){t&&t.pendingBranch?S(e)?t.effects.push(...e):t.effects.push(e):Kt(e)}function Ke(e,t){e.activeBranch=t;const{vnode:s,parentComponent:n}=e;let l=t.el;for(;!l&&t.component;)t=t.component.subTree,l=t.el;s.el=l,n&&n.subTree===s&&(n.vnode.el=l,hs(n,l))}function Jl(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const he=Symbol.for("v-fgt"),Nt=Symbol.for("v-txt"),se=Symbol.for("v-cmt"),St=Symbol.for("v-stc"),lt=[];let ce=null;function It(e=!1){lt.push(ce=e?null:[])}function vn(){lt.pop(),ce=lt[lt.length-1]||null}let qe=1;function ws(e,t=!1){qe+=e,e<0&&ce&&t&&(ce.hasOnce=!0)}function An(e){return e.dynamicChildren=qe>0?ce||Re:null,vn(),qe>0&&ce&&ce.push(e),e}function Ir(e,t,s,n,l,r){return An(On(e,t,s,n,l,r,!0))}function zt(e,t,s,n,l){return An(fe(e,t,s,n,l,!0))}function De(e){return e?e.__v_isVNode===!0:!1}function _e(e,t){return e.type===t.type&&e.key===t.key}const In=({key:e})=>e??null,xt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Ct(e)||L(e)?{i:ee,r:e,k:t,f:!!s}:e:null);function On(e,t=null,s=null,n=0,l=null,r=e===he?0:1,i=!1,u=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&In(t),ref:t&&xt(t),scopeId:Ys,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:ee};return u?(gs(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=ye(s)?8:16),qe>0&&!i&&ce&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&ce.push(c),c}const fe=Yl;function Yl(e,t=null,s=null,n=0,l=null,r=!1){if((!e||e===un)&&(e=se),De(e)){const u=Oe(e,t,!0);return s&&gs(u,s),qe>0&&!r&&ce&&(u.shapeFlag&6?ce[ce.indexOf(e)]=u:ce.push(u)),u.patchFlag=-2,u}if(ir(e)&&(e=e.__vccOpts),t){t=Ql(t);let{class:u,style:c}=t;u&&!ye(u)&&(t.class=Us(u)),ge(c)&&($s(c)&&!S(c)&&(c=le({},c)),t.style=Ds(c))}const i=ye(e)?1:At(e)?128:Xs(e)?64:ge(e)?4:L(e)?2:0;return On(e,t,s,n,l,i,r,!0)}function Ql(e){return e?$s(e)||pn(e)?le({},e):e:null}function Oe(e,t,s=!1,n=!1){const{props:l,ref:r,patchFlag:i,children:u,transition:c}=e,g=t?Zl(l||{},t):l,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&In(g),ref:t&&t.ref?s&&r?S(r)?r.concat(xt(t)):[r,xt(t)]:xt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Oe(e.ssContent),ssFallback:e.ssFallback&&Oe(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&We(a,c.clone(a)),a}function Xl(e=" ",t=0){return fe(Nt,null,e,t)}function Or(e="",t=!1){return t?(It(),zt(se,null,e)):fe(se,null,e)}function be(e){return e==null||typeof e=="boolean"?fe(se):S(e)?fe(he,null,e.slice()):De(e)?we(e):fe(Nt,null,String(e))}function we(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Oe(e)}function gs(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(S(t))s=16;else if(typeof t=="object")if(n&65){const l=t.default;l&&(l._c&&(l._d=!1),gs(e,l()),l._c&&(l._d=!0));return}else{s=32;const l=t._;!l&&!pn(t)?t._ctx=ee:l===3&&ee&&(ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else L(t)?(t={default:t,_ctx:ee},s=32):(t=String(t),n&64?(s=16,t=[Xl(t)]):s=8);e.children=t,e.shapeFlag|=s}function Zl(...e){const t={};for(let s=0;sne||ee;let Ot,es;{const e=Pt(),t=(s,n)=>{let l;return(l=e[s])||(l=e[s]=[]),l.push(n),r=>{l.length>1?l.forEach(i=>i(r)):l[0](r)}};Ot=t("__VUE_INSTANCE_SETTERS__",s=>ne=s),es=t("__VUE_SSR_SETTERS__",s=>ot=s)}const at=e=>{const t=ne;return Ot(e),e.scope.on(),()=>{e.scope.off(),Ot(t)}},Hs=()=>{ne&&ne.scope.off(),Ot(null)};function Bn(e){return e.vnode.shapeFlag&4}let ot=!1;function sr(e,t=!1,s=!1){t&&es(t);const{props:n,children:l}=e.vnode,r=Bn(e);kl(e,n,r,t),Il(e,l,s);const i=r?nr(e,t):void 0;return t&&es(!1),i}function nr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,pl);const{setup:n}=s;if(n){Ge();const l=e.setupContext=n.length>1?rr(e):null,r=at(e),i=ut(n,e,0,[e.props,l]),u=Rs(i);if(Je(),r(),(u||e.sp)&&!Ve(e)&&ln(e),u){if(i.then(Hs,Hs),t)return i.then(c=>{ts(e,c,t)}).catch(c=>{ct(c,e,0)});e.asyncDep=i}else ts(e,i,t)}else Pn(e,t)}function ts(e,t,s){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Ls(t)),Pn(e,s)}let Ns;function Pn(e,t,s){const n=e.type;if(!e.render){if(!t&&Ns&&!n.render){const l=n.template||us(e).template;if(l){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:u,compilerOptions:c}=n,g=le(le({isCustomElement:r,delimiters:u},i),c);n.render=Ns(l,g)}}e.render=n.render||Ie}{const l=at(e);Ge();try{ml(e)}finally{Je(),l()}}}const lr={get(e,t){return Vs(e,"get",""),e[t]}};function rr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,lr),slots:e.slots,emit:e.emit,expose:t}}function $t(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ls(Vn(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in nt)return nt[s](e)},has(t,s){return s in t||s in nt}})):e.proxy}function ss(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}function ir(e){return L(e)&&"__vccOpts"in e}const or=(e,t)=>$n(e,t,ot);function Br(e,t,s){const n=arguments.length;return n===2?ge(t)&&!S(t)?De(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&De(s)&&(s=[s]),fe(e,t,s))}const fr="3.5.13";export{Ir as A,pr as B,zn as C,_r as D,It as E,he as F,zt as G,xr as H,Or as I,Xl as J,br as K,rl as L,il as M,se as N,hr as O,Oe as P,Nt as Q,fn as R,Ar as S,gr as T,Fr as U,Cr as V,sl as a,fe as b,Er as c,ps as d,ve as e,or as f,nn as g,Br as h,bt as i,vr as j,kr as k,rs as l,mr as m,Xn as n,on as o,Zl as p,De as q,qt as r,We as s,yr as t,tl as u,fl as v,_t as w,is as x,Tl as y,Tr as z}; diff --git a/js/@vue_runtime-core@3.5.13-pPpmd6wL.js.gz b/js/@vue_runtime-core@3.5.13-pPpmd6wL.js.gz new file mode 100644 index 00000000..d5c59387 Binary files /dev/null and b/js/@vue_runtime-core@3.5.13-pPpmd6wL.js.gz differ diff --git a/js/@vue_runtime-dom@3.5.13-CwqXTXrC.js.gz b/js/@vue_runtime-dom@3.5.13-CwqXTXrC.js.gz deleted file mode 100644 index 82126f7b..00000000 Binary files a/js/@vue_runtime-dom@3.5.13-CwqXTXrC.js.gz and /dev/null differ diff --git a/js/@vue_runtime-dom@3.5.13-CwqXTXrC.js b/js/@vue_runtime-dom@3.5.13-DJqlZTHq.js similarity index 98% rename from js/@vue_runtime-dom@3.5.13-CwqXTXrC.js rename to js/@vue_runtime-dom@3.5.13-DJqlZTHq.js index 0cc66371..5064b82b 100644 --- a/js/@vue_runtime-dom@3.5.13-CwqXTXrC.js +++ b/js/@vue_runtime-dom@3.5.13-DJqlZTHq.js @@ -1,4 +1,4 @@ -import{h as Pt,B as Dt,c as It,a as yt,u as $t,o as Ot,F as Rt,g as Ht,s as j,r as V,b as Bt,d as xt,e as Ft}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{c as ut,o as N,e as I,a as Gt,b as y,A as zt,s as Wt,H as qt,v as dt,D as pt,w as Kt,I as mt,i as Ut,J as jt}from"./@vue_shared@3.5.13-DbMIZLZJ.js";import{d as Vt}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";/** +import{h as Pt,B as Dt,c as It,a as yt,u as $t,o as Ot,F as Rt,g as Ht,s as j,r as V,b as Bt,d as xt,e as Ft}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{b as ut,o as N,e as I,a as Gt,c as y,A as zt,s as Wt,H as qt,v as dt,D as pt,w as Kt,I as mt,i as Ut,J as jt}from"./@vue_shared@3.5.13-CQ6Z-5d1.js";import{d as Vt}from"./@vue_reactivity@3.5.13-CVvlldVq.js";/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT diff --git a/js/@vue_runtime-dom@3.5.13-DJqlZTHq.js.gz b/js/@vue_runtime-dom@3.5.13-DJqlZTHq.js.gz new file mode 100644 index 00000000..3962e839 Binary files /dev/null and b/js/@vue_runtime-dom@3.5.13-DJqlZTHq.js.gz differ diff --git a/js/@vue_shared@3.5.13-DbMIZLZJ.js b/js/@vue_shared@3.5.13-CQ6Z-5d1.js similarity index 97% rename from js/@vue_shared@3.5.13-DbMIZLZJ.js rename to js/@vue_shared@3.5.13-CQ6Z-5d1.js index 640714b0..6290ad84 100644 --- a/js/@vue_shared@3.5.13-DbMIZLZJ.js +++ b/js/@vue_shared@3.5.13-CQ6Z-5d1.js @@ -2,4 +2,4 @@ * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function d(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const E={},R=[],T=()=>{},B=()=>!1,P=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),z=t=>t.startsWith("onUpdate:"),M=Object.assign,U=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},u=Object.prototype.hasOwnProperty,x=(t,e)=>u.call(t,e),m=Array.isArray,V=t=>r(t)==="[object Map]",_=t=>r(t)==="[object Set]",F=t=>r(t)==="[object RegExp]",a=t=>typeof t=="function",s=t=>typeof t=="string",D=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object",I=t=>(l(t)||a(t))&&a(t.then)&&a(t.catch),h=Object.prototype.toString,r=t=>h.call(t),G=t=>r(t).slice(8,-1),H=t=>r(t)==="[object Object]",J=t=>s(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,K=d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),c=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},b=/-(\w)/g,L=c(t=>t.replace(b,(e,n)=>n?n.toUpperCase():"")),g=/\B([A-Z])/g,Y=c(t=>t.replace(g,"-$1").toLowerCase()),y=c(t=>t.charAt(0).toUpperCase()+t.slice(1)),$=c(t=>t?`on${y(t)}`:""),q=(t,e)=>!Object.is(t,e),W=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:o,value:n})},k=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Q=t=>{const e=s(t)?Number(t):NaN;return isNaN(e)?t:e};let p;const X=()=>p||(p=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function O(t){if(m(t)){const e={};for(let n=0;n{if(n){const o=n.split(A);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function S(t){let e="";if(s(t))e=t;else if(m(t))for(let n=0;nn in e}const E={},R=[],T=()=>{},B=()=>!1,P=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),z=t=>t.startsWith("onUpdate:"),M=Object.assign,U=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},u=Object.prototype.hasOwnProperty,x=(t,e)=>u.call(t,e),m=Array.isArray,V=t=>r(t)==="[object Map]",_=t=>r(t)==="[object Set]",F=t=>r(t)==="[object RegExp]",a=t=>typeof t=="function",s=t=>typeof t=="string",D=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object",I=t=>(l(t)||a(t))&&a(t.then)&&a(t.catch),h=Object.prototype.toString,r=t=>h.call(t),G=t=>r(t).slice(8,-1),H=t=>r(t)==="[object Object]",J=t=>s(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,K=d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),c=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},b=/-(\w)/g,L=c(t=>t.replace(b,(e,n)=>n?n.toUpperCase():"")),g=/\B([A-Z])/g,Y=c(t=>t.replace(g,"-$1").toLowerCase()),y=c(t=>t.charAt(0).toUpperCase()+t.slice(1)),$=c(t=>t?`on${y(t)}`:""),q=(t,e)=>!Object.is(t,e),W=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:o,value:n})},k=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Q=t=>{const e=s(t)?Number(t):NaN;return isNaN(e)?t:e};let p;const X=()=>p||(p=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function O(t){if(m(t)){const e={};for(let n=0;n{if(n){const o=n.split(A);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function S(t){let e="";if(s(t))e=t;else if(m(t))for(let n=0;n{l.forEach(d=>d()),l.length=0},c=(d,a,f,w)=>(d.addEventListener(a,f,w),()=>d.removeEventListener(a,f,w)),h=L(()=>[O(n),M(i)],([d,a])=>{if(m(),!d)return;const f=U(a)?{...a}:a;l.push(...r.flatMap(w=>s.map(g=>c(d,w,g,f))))},{immediate:!0,flush:"post"}),p=()=>{h(),m()};return D(p),p}let B=!1;function we(e,n,r={}){const{window:s=T,ignore:i=[],capture:l=!0,detectIframe:m=!1}=r;if(!s)return I;X&&!B&&(B=!0,Array.from(s.document.body.children).forEach(t=>t.addEventListener("click",I)),s.document.documentElement.addEventListener("click",I));let c=!0;const h=t=>M(i).some(o=>{if(typeof o=="string")return Array.from(s.document.querySelectorAll(o)).some(v=>v===t.target||t.composedPath().includes(v));{const v=O(o);return v&&(t.target===v||t.composedPath().includes(v))}});function p(t){const o=M(t);return o&&o.$.subTree.shapeFlag===16}function d(t,o){const v=M(t),y=v.$.subTree&&v.$.subTree.children;return y==null||!Array.isArray(y)?!1:y.some(z=>z.el===o.target||o.composedPath().includes(z.el))}const a=t=>{const o=O(e);if(t.target!=null&&!(!(o instanceof Element)&&p(e)&&d(e,t))&&!(!o||o===t.target||t.composedPath().includes(o))){if(t.detail===0&&(c=!h(t)),!c){c=!0;return}n(t)}};let f=!1;const w=[_(s,"click",t=>{f||(f=!0,setTimeout(()=>{f=!1},0),a(t))},{passive:!0,capture:l}),_(s,"pointerdown",t=>{const o=O(e);c=!h(t)&&!!(o&&!t.composedPath().includes(o))},{passive:!0}),m&&_(s,"blur",t=>{setTimeout(()=>{var o;const v=O(e);((o=s.document.activeElement)==null?void 0:o.tagName)==="IFRAME"&&!(v!=null&&v.contains(s.document.activeElement))&&n(t)},0)})].filter(Boolean);return()=>w.forEach(t=>t())}function oe(){const e=A(!1),n=re();return n&&ne(()=>{e.value=!0},n),e}function x(e){const n=oe();return k(()=>(n.value,!!e()))}function se(e,n,r={}){const{window:s=T,...i}=r;let l;const m=x(()=>s&&"MutationObserver"in s),c=()=>{l&&(l.disconnect(),l=void 0)},h=k(()=>{const f=M(e),w=(Array.isArray(f)?f:[f]).map(O).filter($);return new Set(w)}),p=L(()=>h.value,f=>{c(),m.value&&f.size&&(l=new MutationObserver(n),f.forEach(w=>l.observe(w,i)))},{immediate:!0,flush:"post"}),d=()=>l==null?void 0:l.takeRecords(),a=()=>{p(),c()};return D(a),{isSupported:m,stop:a,takeRecords:d}}function q(e,n={}){const{window:r=T}=n,s=x(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let i;const l=A(!1),m=p=>{l.value=p.matches},c=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",m):i.removeListener(m))},h=te(()=>{s.value&&(c(),i=r.matchMedia(M(e)),"addEventListener"in i?i.addEventListener("change",m):i.addListener(m),l.value=i.matches)});return D(()=>{h(),c(),i=void 0}),l}const j=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},H="__vueuse_ssr_handlers__",ie=ae();function ae(){return H in j||(j[H]=j[H]||{}),j[H]}function K(e,n){return ie[e]||n}function ue(e){return q("(prefers-color-scheme: dark)",e)}function le(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ce={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},J="vueuse-storage";function de(e,n,r,s={}){var i;const{flush:l="pre",deep:m=!0,listenToStorageChanges:c=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:d,window:a=T,eventFilter:f,onError:w=u=>{console.error(u)},initOnMounted:g}=s,t=(d?Z:A)(typeof n=="function"?n():n);if(!r)try{r=K("getDefaultStorage",()=>{var u;return(u=T)==null?void 0:u.localStorage})()}catch(u){w(u)}if(!r)return t;const o=M(n),v=le(o),y=(i=s.serializer)!=null?i:ce[v],{pause:z,resume:E}=Q(t,()=>F(t.value),{flush:l,deep:m,eventFilter:f});a&&c&&V(()=>{r instanceof Storage?_(a,"storage",N):_(a,J,W),g&&N()}),g||N();function C(u,b){if(a){const S={key:e,oldValue:u,newValue:b,storageArea:r};a.dispatchEvent(r instanceof Storage?new StorageEvent("storage",S):new CustomEvent(J,{detail:S}))}}function F(u){try{const b=r.getItem(e);if(u==null)C(b,null),r.removeItem(e);else{const S=y.write(u);b!==S&&(r.setItem(e,S),C(b,S))}}catch(b){w(b)}}function R(u){const b=u?u.newValue:r.getItem(e);if(b==null)return h&&o!=null&&r.setItem(e,y.write(o)),o;if(!u&&p){const S=y.read(b);return typeof p=="function"?p(S,o):v==="object"&&!Array.isArray(S)?{...o,...S}:S}else return typeof b!="string"?b:y.read(b)}function N(u){if(!(u&&u.storageArea!==r)){if(u&&u.key==null){t.value=o;return}if(!(u&&u.key!==e)){z();try{(u==null?void 0:u.newValue)!==y.write(t.value)&&(t.value=R(u))}catch(b){w(b)}finally{u?ee(E):E()}}}}function W(u){N(u.detail)}return t}const fe="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function ge(e={}){const{selector:n="html",attribute:r="class",initialValue:s="auto",window:i=T,storage:l,storageKey:m="vueuse-color-scheme",listenToStorageChanges:c=!0,storageRef:h,emitAuto:p,disableTransition:d=!0}=e,a={auto:"",light:"light",dark:"dark",...e.modes||{}},f=ue({window:i}),w=k(()=>f.value?"dark":"light"),g=h||(m==null?G(s):de(m,s,l,{window:i,listenToStorageChanges:c})),t=k(()=>g.value==="auto"?w.value:g.value),o=K("updateHTMLAttrs",(E,C,F)=>{const R=typeof E=="string"?i==null?void 0:i.document.querySelector(E):O(E);if(!R)return;const N=new Set,W=new Set;let u=null;if(C==="class"){const S=F.split(/\s/g);Object.values(a).flatMap(P=>(P||"").split(/\s/g)).filter(Boolean).forEach(P=>{S.includes(P)?N.add(P):W.add(P)})}else u={key:C,value:F};if(N.size===0&&W.size===0&&u===null)return;let b;d&&(b=i.document.createElement("style"),b.appendChild(document.createTextNode(fe)),i.document.head.appendChild(b));for(const S of N)R.classList.add(S);for(const S of W)R.classList.remove(S);u&&R.setAttribute(u.key,u.value),d&&(i.getComputedStyle(b).opacity,document.head.removeChild(b))});function v(E){var C;o(n,r,(C=a[E])!=null?C:E)}function y(E){e.onChanged?e.onChanged(E,v):v(E)}L(t,y,{flush:"post",immediate:!0}),V(()=>y(t.value));const z=k({get(){return p?g.value:t.value},set(E){g.value=E}});return Object.assign(z,{store:g,system:w,state:t})}function me(e,n,r={}){const{window:s=T,...i}=r;let l;const m=x(()=>s&&"ResizeObserver"in s),c=()=>{l&&(l.disconnect(),l=void 0)},h=k(()=>{const a=M(e);return Array.isArray(a)?a.map(f=>O(f)):[O(a)]}),p=L(h,a=>{if(c(),m.value&&s){l=new ResizeObserver(n);for(const f of a)f&&l.observe(f,i)}},{immediate:!0,flush:"post"}),d=()=>{c(),p()};return D(d),{isSupported:m,stop:d}}function ye(e,n={}){const{reset:r=!0,windowResize:s=!0,windowScroll:i=!0,immediate:l=!0,updateTiming:m="sync"}=n,c=A(0),h=A(0),p=A(0),d=A(0),a=A(0),f=A(0),w=A(0),g=A(0);function t(){const v=O(e);if(!v){r&&(c.value=0,h.value=0,p.value=0,d.value=0,a.value=0,f.value=0,w.value=0,g.value=0);return}const y=v.getBoundingClientRect();c.value=y.height,h.value=y.bottom,p.value=y.left,d.value=y.right,a.value=y.top,f.value=y.width,w.value=y.x,g.value=y.y}function o(){m==="sync"?t():m==="next-frame"&&requestAnimationFrame(()=>t())}return me(e,o),L(()=>O(e),v=>!v&&o()),se(e,o,{attributeFilter:["style","class"]}),i&&_("scroll",o,{capture:!0,passive:!0}),s&&_("resize",o,{passive:!0}),V(()=>{l&&o()}),{height:c,bottom:h,left:p,right:d,top:a,width:f,x:w,y:g,update:o}}function be(e,n,r={}){const{root:s,rootMargin:i="0px",threshold:l=0,window:m=T,immediate:c=!0}=r,h=x(()=>m&&"IntersectionObserver"in m),p=k(()=>{const g=M(e);return(Array.isArray(g)?g:[g]).map(O).filter($)});let d=I;const a=A(c),f=h.value?L(()=>[p.value,O(s),a.value],([g,t])=>{if(d(),!a.value||!g.length)return;const o=new IntersectionObserver(n,{root:O(t),rootMargin:i,threshold:l});g.forEach(v=>v&&o.observe(v)),d=()=>{o.disconnect(),d=I}},{immediate:c,flush:"post"}):I,w=()=>{d(),f(),a.value=!1};return D(w),{isSupported:h,isActive:a,pause(){d(),a.value=!1},resume(){a.value=!0},stop:w}}function Se(e={}){const{window:n=T,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:l=!0,type:m="inner"}=e,c=A(r),h=A(s),p=()=>{n&&(m==="outer"?(c.value=n.outerWidth,h.value=n.outerHeight):l?(c.value=n.innerWidth,h.value=n.innerHeight):(c.value=n.document.documentElement.clientWidth,h.value=n.document.documentElement.clientHeight))};if(p(),V(p),_("resize",p,{passive:!0}),i){const d=q("(orientation: portrait)");L(d,()=>p())}return{width:c,height:h}}export{be as a,me as b,ge as c,de as d,ye as e,Se as f,we as o,_ as u}; diff --git a/js/@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js.gz b/js/@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js.gz deleted file mode 100644 index 1cdfc635..00000000 Binary files a/js/@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js.gz and /dev/null differ diff --git a/js/@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js b/js/@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js new file mode 100644 index 00000000..73235fda --- /dev/null +++ b/js/@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js @@ -0,0 +1 @@ +import{w as G,t as H,i as U,n as L,a as X,b as F,c as Z,p as J,d as Q,e as ee,f as j,g as te}from"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import{s as ne,k as E,l as M}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{f as W,w as _,n as se,j as re,k as oe,l as ie,d as ae}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";const T=U?window:void 0;function O(e){var s;const o=M(e);return(s=o==null?void 0:o.$el)!=null?s:o}function N(...e){let s,o,i,h;if(typeof e[0]=="string"||Array.isArray(e[0])?([o,i,h]=e,s=T):[s,o,i,h]=e,!s)return L;o=F(o),i=F(i);const f=[],a=()=>{f.forEach(l=>l()),f.length=0},u=(l,r,c,w)=>(l.addEventListener(r,c,w),()=>l.removeEventListener(r,c,w)),m=_(()=>[O(s),M(h)],([l,r])=>{if(a(),!l)return;const c=Z(r)?{...r}:r;f.push(...o.flatMap(w=>i.map(g=>u(l,w,g,c))))},{immediate:!0,flush:"post"}),v=()=>{m(),a()};return j(v),v}let $=!1;function Oe(e,s,o={}){const{window:i=T,ignore:h=[],capture:f=!0,detectIframe:a=!1}=o;if(!i)return L;te&&!$&&($=!0,Array.from(i.document.body.children).forEach(t=>t.addEventListener("click",L)),i.document.documentElement.addEventListener("click",L));let u=!0;const m=t=>M(h).some(n=>{if(typeof n=="string")return Array.from(i.document.querySelectorAll(n)).some(p=>p===t.target||t.composedPath().includes(p));{const p=O(n);return p&&(t.target===p||t.composedPath().includes(p))}});function v(t){const n=M(t);return n&&n.$.subTree.shapeFlag===16}function l(t,n){const p=M(t),b=p.$.subTree&&p.$.subTree.children;return b==null||!Array.isArray(b)?!1:b.some(k=>k.el===n.target||n.composedPath().includes(k.el))}const r=t=>{const n=O(e);if(t.target!=null&&!(!(n instanceof Element)&&v(e)&&l(e,t))&&!(!n||n===t.target||t.composedPath().includes(n))){if(t.detail===0&&(u=!m(t)),!u){u=!0;return}s(t)}};let c=!1;const w=[N(i,"click",t=>{c||(c=!0,setTimeout(()=>{c=!1},0),r(t))},{passive:!0,capture:f}),N(i,"pointerdown",t=>{const n=O(e);u=!m(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),a&&N(i,"blur",t=>{setTimeout(()=>{var n;const p=O(e);((n=i.document.activeElement)==null?void 0:n.tagName)==="IFRAME"&&!(p!=null&&p.contains(i.document.activeElement))&&s(t)},0)},{passive:!0})].filter(Boolean);return()=>w.forEach(t=>t())}function ue(){const e=E(!1),s=ae();return s&&ie(()=>{e.value=!0},s),e}function B(e){const s=ue();return W(()=>(s.value,!!e()))}function le(e,s,o={}){const{window:i=T,...h}=o;let f;const a=B(()=>i&&"MutationObserver"in i),u=()=>{f&&(f.disconnect(),f=void 0)},m=W(()=>{const c=M(e),w=F(c).map(O).filter(Q);return new Set(w)}),v=_(()=>m.value,c=>{u(),a.value&&c.size&&(f=new MutationObserver(s),c.forEach(w=>f.observe(w,h)))},{immediate:!0,flush:"post"}),l=()=>f==null?void 0:f.takeRecords(),r=()=>{v(),u()};return j(r),{isSupported:a,stop:r,takeRecords:l}}const ce=Symbol("vueuse-ssr-width");function de(){const e=oe()?ee(ce,null):null;return typeof e=="number"?e:void 0}function Y(e,s={}){const{window:o=T,ssrWidth:i=de()}=s,h=B(()=>o&&"matchMedia"in o&&typeof o.matchMedia=="function"),f=E(typeof i=="number");let a;const u=E(!1),m=r=>{u.value=r.matches},v=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",m):a.removeListener(m))},l=re(()=>{if(f.value){f.value=!h.value;const r=M(e).split(",");u.value=r.some(c=>{const w=c.includes("not all"),g=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),t=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let n=!!(g||t);return g&&n&&(n=i>=J(g[1])),t&&n&&(n=i<=J(t[1])),w?!n:n});return}h.value&&(v(),a=o.matchMedia(M(e)),"addEventListener"in a?a.addEventListener("change",m):a.addListener(m),u.value=a.matches)});return j(()=>{l(),v(),a=void 0}),W(()=>u.value)}const P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},D="__vueuse_ssr_handlers__",fe=pe();function pe(){return D in P||(P[D]=P[D]||{}),P[D]}function q(e,s){return fe[e]||s}function me(e){return Y("(prefers-color-scheme: dark)",e)}function he(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ve={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},K="vueuse-storage";function we(e,s,o,i={}){var h;const{flush:f="pre",deep:a=!0,listenToStorageChanges:u=!0,writeDefaults:m=!0,mergeDefaults:v=!1,shallow:l,window:r=T,eventFilter:c,onError:w=d=>{console.error(d)},initOnMounted:g}=i,t=(l?ne:E)(typeof s=="function"?s():s),n=W(()=>M(e));if(!o)try{o=q("getDefaultStorage",()=>{var d;return(d=T)==null?void 0:d.localStorage})()}catch(d){w(d)}if(!o)return t;const p=M(s),b=he(p),k=(h=i.serializer)!=null?h:ve[b],{pause:A,resume:I}=G(t,()=>R(t.value),{flush:f,deep:a,eventFilter:c});_(n,()=>C(),{flush:f}),r&&u&&H(()=>{o instanceof Storage?N(r,"storage",C,{passive:!0}):N(r,K,z),g&&C()}),g||C();function V(d,y){if(r){const S={key:n.value,oldValue:d,newValue:y,storageArea:o};r.dispatchEvent(o instanceof Storage?new StorageEvent("storage",S):new CustomEvent(K,{detail:S}))}}function R(d){try{const y=o.getItem(n.value);if(d==null)V(y,null),o.removeItem(n.value);else{const S=k.write(d);y!==S&&(o.setItem(n.value,S),V(y,S))}}catch(y){w(y)}}function x(d){const y=d?d.newValue:o.getItem(n.value);if(y==null)return m&&p!=null&&o.setItem(n.value,k.write(p)),p;if(!d&&v){const S=k.read(y);return typeof v=="function"?v(S,p):b==="object"&&!Array.isArray(S)?{...p,...S}:S}else return typeof y!="string"?y:k.read(y)}function C(d){if(!(d&&d.storageArea!==o)){if(d&&d.key==null){t.value=p;return}if(!(d&&d.key!==n.value)){A();try{(d==null?void 0:d.newValue)!==k.write(t.value)&&(t.value=x(d))}catch(y){w(y)}finally{d?se(I):I()}}}}function z(d){C(d.detail)}return t}const ge="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Ae(e={}){const{selector:s="html",attribute:o="class",initialValue:i="auto",window:h=T,storage:f,storageKey:a="vueuse-color-scheme",listenToStorageChanges:u=!0,storageRef:m,emitAuto:v,disableTransition:l=!0}=e,r={auto:"",light:"light",dark:"dark",...e.modes||{}},c=me({window:h}),w=W(()=>c.value?"dark":"light"),g=m||(a==null?X(i):we(a,i,f,{window:h,listenToStorageChanges:u})),t=W(()=>g.value==="auto"?w.value:g.value),n=q("updateHTMLAttrs",(A,I,V)=>{const R=typeof A=="string"?h==null?void 0:h.document.querySelector(A):O(A);if(!R)return;const x=new Set,C=new Set;let z=null;if(I==="class"){const y=V.split(/\s/g);Object.values(r).flatMap(S=>(S||"").split(/\s/g)).filter(Boolean).forEach(S=>{y.includes(S)?x.add(S):C.add(S)})}else z={key:I,value:V};if(x.size===0&&C.size===0&&z===null)return;let d;l&&(d=h.document.createElement("style"),d.appendChild(document.createTextNode(ge)),h.document.head.appendChild(d));for(const y of x)R.classList.add(y);for(const y of C)R.classList.remove(y);z&&R.setAttribute(z.key,z.value),l&&(h.getComputedStyle(d).opacity,document.head.removeChild(d))});function p(A){var I;n(s,o,(I=r[A])!=null?I:A)}function b(A){e.onChanged?e.onChanged(A,p):p(A)}_(t,b,{flush:"post",immediate:!0}),H(()=>b(t.value));const k=W({get(){return v?g.value:t.value},set(A){g.value=A}});return Object.assign(k,{store:g,system:w,state:t})}function ye(e,s,o={}){const{window:i=T,...h}=o;let f;const a=B(()=>i&&"ResizeObserver"in i),u=()=>{f&&(f.disconnect(),f=void 0)},m=W(()=>{const r=M(e);return Array.isArray(r)?r.map(c=>O(c)):[O(r)]}),v=_(m,r=>{if(u(),a.value&&i){f=new ResizeObserver(s);for(const c of r)c&&f.observe(c,h)}},{immediate:!0,flush:"post"}),l=()=>{u(),v()};return j(l),{isSupported:a,stop:l}}function Me(e,s={}){const{reset:o=!0,windowResize:i=!0,windowScroll:h=!0,immediate:f=!0,updateTiming:a="sync"}=s,u=E(0),m=E(0),v=E(0),l=E(0),r=E(0),c=E(0),w=E(0),g=E(0);function t(){const p=O(e);if(!p){o&&(u.value=0,m.value=0,v.value=0,l.value=0,r.value=0,c.value=0,w.value=0,g.value=0);return}const b=p.getBoundingClientRect();u.value=b.height,m.value=b.bottom,v.value=b.left,l.value=b.right,r.value=b.top,c.value=b.width,w.value=b.x,g.value=b.y}function n(){a==="sync"?t():a==="next-frame"&&requestAnimationFrame(()=>t())}return ye(e,n),_(()=>O(e),p=>!p&&n()),le(e,n,{attributeFilter:["style","class"]}),h&&N("scroll",n,{capture:!0,passive:!0}),i&&N("resize",n,{passive:!0}),H(()=>{f&&n()}),{height:u,bottom:m,left:v,right:l,top:r,width:c,x:w,y:g,update:n}}function ke(e,s,o={}){const{root:i,rootMargin:h="0px",threshold:f=0,window:a=T,immediate:u=!0}=o,m=B(()=>a&&"IntersectionObserver"in a),v=W(()=>{const g=M(e);return F(g).map(O).filter(Q)});let l=L;const r=E(u),c=m.value?_(()=>[v.value,O(i),r.value],([g,t])=>{if(l(),!r.value||!g.length)return;const n=new IntersectionObserver(s,{root:O(t),rootMargin:h,threshold:f});g.forEach(p=>p&&n.observe(p)),l=()=>{n.disconnect(),l=L}},{immediate:u,flush:"post"}):L,w=()=>{l(),c(),r.value=!1};return j(w),{isSupported:m,isActive:r,pause(){l(),r.value=!1},resume(){r.value=!0},stop:w}}function Te(e={}){const{window:s=T,initialWidth:o=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:h=!0,includeScrollbar:f=!0,type:a="inner"}=e,u=E(o),m=E(i),v=()=>{if(s)if(a==="outer")u.value=s.outerWidth,m.value=s.outerHeight;else if(a==="visual"&&s.visualViewport){const{width:r,height:c,scale:w}=s.visualViewport;u.value=Math.round(r*w),m.value=Math.round(c*w)}else f?(u.value=s.innerWidth,m.value=s.innerHeight):(u.value=s.document.documentElement.clientWidth,m.value=s.document.documentElement.clientHeight)};v(),H(v);const l={passive:!0};if(N("resize",v,l),s&&a==="visual"&&s.visualViewport&&N(s.visualViewport,"resize",v,l),h){const r=Y("(orientation: portrait)");_(r,()=>v())}return{width:u,height:m}}export{ke as a,ye as b,Ae as c,we as d,Me as e,Te as f,Oe as o,N as u}; diff --git a/js/@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js.gz b/js/@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js.gz new file mode 100644 index 00000000..d26977a7 Binary files /dev/null and b/js/@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js.gz differ diff --git a/js/@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js b/js/@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js deleted file mode 100644 index af248de0..00000000 --- a/js/@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js +++ /dev/null @@ -1 +0,0 @@ -import{u as F,k as g,l as m,n as S,o as T,a as j,q as A,v as P}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{k,n as D,w as x,d as C}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";function $(e){return A()?(P(e),!0):!1}function R(e){return typeof e=="function"?e():F(e)}const I=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const z=e=>e!=null,M=Object.prototype.toString,B=e=>M.call(e)==="[object Object]",d=()=>{},H=W();function W(){var e,t;return I&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function G(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const v=e=>e();function L(...e){let t=0,n,o=!0,i=d,r,s,u,a,l;!j(e[0])&&typeof e[0]=="object"?{delay:s,trailing:u=!0,leading:a=!0,rejectOnCancel:l=!1}=e[0]:[s,u=!0,a=!0,l=!1]=e;const p=()=>{n&&(clearTimeout(n),n=void 0,i(),i=d)};return b=>{const c=R(s),w=Date.now()-t,f=()=>r=b();return p(),c<=0?(t=Date.now(),f()):(w>c&&(a||!o)?(t=Date.now(),f()):u&&(r=new Promise((h,O)=>{i=l?O:h,n=setTimeout(()=>{t=Date.now(),o=!0,h(f()),p()},Math.max(0,c-w))})),!a&&!n&&(n=setTimeout(()=>o=!0,c)),o=!1,r)}}function V(e=v){const t=g(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:m(t),pause:n,resume:o,eventFilter:i}}function _(e){return C()}function J(...e){if(e.length!==1)return S(...e);const t=e[0];return typeof t=="function"?m(T(()=>({get:t,set:d}))):g(t)}function y(e,t,n={}){const{eventFilter:o=v,...i}=n;return x(e,G(o,t),i)}function K(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:s,resume:u,isActive:a}=V(o);return{stop:y(e,t,{...i,eventFilter:r}),pause:s,resume:u,isActive:a}}function Q(e,t=!0,n){_()?k(e,n):t?e():D(e)}function U(e,t,n={}){const{throttle:o=0,trailing:i=!0,leading:r=!0,...s}=n;return y(e,t,{...s,eventFilter:L(o,i,r)})}export{Q as a,J as b,B as c,z as d,$ as e,H as f,U as g,I as i,d as n,R as t,K as w}; diff --git a/js/@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js.gz b/js/@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js.gz deleted file mode 100644 index aeefb535..00000000 Binary files a/js/@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js.gz and /dev/null differ diff --git a/js/@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js b/js/@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js new file mode 100644 index 00000000..44db2243 --- /dev/null +++ b/js/@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js @@ -0,0 +1 @@ +import{k as g,n as v,o as A,q as S,a as k,u as P,v as T,l as x}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{l as C,n as D,w as M,d as y,k as W,i as I}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";function B(e){return P()?(T(e),!0):!1}const d=new WeakMap,H=(...e)=>{var t;const o=e[0],n=(t=y())==null?void 0:t.proxy;if(n==null&&!W())throw new Error("injectLocal must be called in setup");return n&&d.has(n)&&o in d.get(n)?d.get(n)[o]:I(...e)},R=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const J=e=>e!=null,L=Object.prototype.toString,K=e=>L.call(e)==="[object Object]",p=()=>{},Q=N();function N(){var e,t;return R&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function V(e,t){function o(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return o}const b=e=>e();function _(...e){let t=0,o,n=!0,r=p,i,s,u,a,l;!k(e[0])&&typeof e[0]=="object"?{delay:s,trailing:u=!0,leading:a=!0,rejectOnCancel:l=!1}=e[0]:[s,u=!0,a=!0,l=!1]=e;const w=()=>{o&&(clearTimeout(o),o=void 0,r(),r=p)};return j=>{const c=x(s),h=Date.now()-t,f=()=>i=j();return w(),c<=0?(t=Date.now(),f()):(h>c&&(a||!n)?(t=Date.now(),f()):u&&(i=new Promise((m,O)=>{r=l?O:m,o=setTimeout(()=>{t=Date.now(),n=!0,m(f()),w()},Math.max(0,c-h))})),!a&&!o&&(o=setTimeout(()=>n=!0,c)),n=!1,i)}}function E(e=b){const t=g(!0);function o(){t.value=!1}function n(){t.value=!0}const r=(...i)=>{t.value&&e(...i)};return{isActive:v(t),pause:o,resume:n,eventFilter:r}}function U(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function G(e){return y()}function X(e){return Array.isArray(e)?e:[e]}function Y(...e){if(e.length!==1)return A(...e);const t=e[0];return typeof t=="function"?v(S(()=>({get:t,set:p}))):g(t)}function F(e,t,o={}){const{eventFilter:n=b,...r}=o;return M(e,V(n,t),r)}function Z(e,t,o={}){const{eventFilter:n,...r}=o,{eventFilter:i,pause:s,resume:u,isActive:a}=E(n);return{stop:F(e,t,{...r,eventFilter:i}),pause:s,resume:u,isActive:a}}function ee(e,t=!0,o){G()?C(e,o):t?e():D(e)}function te(e,t,o={}){const{throttle:n=0,trailing:r=!0,leading:i=!0,...s}=o;return F(e,t,{...s,eventFilter:_(n,r,i)})}export{Y as a,X as b,K as c,J as d,H as e,B as f,Q as g,te as h,R as i,p as n,U as p,ee as t,Z as w}; diff --git a/js/@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js.gz b/js/@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js.gz new file mode 100644 index 00000000..c8eb5bcf Binary files /dev/null and b/js/@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js.gz differ diff --git a/js/BarcodeDemo-B0OBSU9q.js b/js/BarcodeDemo-B0OBSU9q.js new file mode 100644 index 00000000..735e3de0 --- /dev/null +++ b/js/BarcodeDemo-B0OBSU9q.js @@ -0,0 +1 @@ +import{I as a}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{b as e,N as i,e as p,ah as l,J as s,M as n,a as F}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as c,b as t,J as u}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as m}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Et=c({name:"BarcodeDemo",setup(){const r={width:4},o=m(!1),d=m("RayTemplate");return{baseOptions:r,loading:o,text:d}},render(){const{baseOptions:r}=this;return t(F,{cols:2,xGap:12,yGap:12},{default:()=>[t(e,{span:2},{default:()=>[t(i,{title:"详细配置项说明"},{default:()=>[u("点击查看详细配置项:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[u("js-barcode options")]),u("。")]})]}),t(e,{span:1},{default:()=>[t(i,{title:"基础条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r}},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"自定义颜色条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r,lineColor:"red"}},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"pharmacode 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[u("pharmacode")]),u("。")]}),t(a,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"codabar 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[u("codabar")]),u("。")]}),t(a,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"有状态的条形码"},{default:()=>[t(p,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[t(s,{value:this.loading,"onUpdate:value":o=>this.loading=o,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),t(a,{text:"RayTemplate",loading:this.loading},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"watchText 主动监听 text 变化"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(n,{value:this.text,"onUpdate:value":o=>this.text=o},null),t(a,{text:this.text,watchText:!0},null)]})]})]})]})}});export{Et as default}; diff --git a/js/BarcodeDemo-B0OBSU9q.js.gz b/js/BarcodeDemo-B0OBSU9q.js.gz new file mode 100644 index 00000000..14b4a5d0 Binary files /dev/null and b/js/BarcodeDemo-B0OBSU9q.js.gz differ diff --git a/js/BarcodeDemo-DIeP09RN.js b/js/BarcodeDemo-DIeP09RN.js deleted file mode 100644 index cac6adaf..00000000 --- a/js/BarcodeDemo-DIeP09RN.js +++ /dev/null @@ -1 +0,0 @@ -import{I as a}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{b as e,N as i,e as p,ah as l,J as s,M as n,a as F}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as c,b as t,I as u}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as m}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Et=c({name:"BarcodeDemo",setup(){const r={width:4},o=m(!1),d=m("RayTemplate");return{baseOptions:r,loading:o,text:d}},render(){const{baseOptions:r}=this;return t(F,{cols:2,xGap:12,yGap:12},{default:()=>[t(e,{span:2},{default:()=>[t(i,{title:"详细配置项说明"},{default:()=>[u("点击查看详细配置项:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[u("js-barcode options")]),u("。")]})]}),t(e,{span:1},{default:()=>[t(i,{title:"基础条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r}},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"自定义颜色条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r,lineColor:"red"}},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"pharmacode 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[u("pharmacode")]),u("。")]}),t(a,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"codabar 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[u("codabar")]),u("。")]}),t(a,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"有状态的条形码"},{default:()=>[t(p,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[t(s,{value:this.loading,"onUpdate:value":o=>this.loading=o,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),t(a,{text:"RayTemplate",loading:this.loading},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"watchText 主动监听 text 变化"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(n,{value:this.text,"onUpdate:value":o=>this.text=o},null),t(a,{text:this.text,watchText:!0},null)]})]})]})]})}});export{Et as default}; diff --git a/js/BarcodeDemo-DIeP09RN.js.gz b/js/BarcodeDemo-DIeP09RN.js.gz deleted file mode 100644 index 2035e5b8..00000000 Binary files a/js/BarcodeDemo-DIeP09RN.js.gz and /dev/null differ diff --git a/js/Flow-BwOEXCKT.js b/js/Flow-BwOEXCKT.js deleted file mode 100644 index 290e4765..00000000 --- a/js/Flow-BwOEXCKT.js +++ /dev/null @@ -1 +0,0 @@ -import{R as l,F as n,H as s}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import{N as m,a as d,ag as u,J as f,e as c}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as g,k as y,b as t}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as p}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Rt=g({name:"RFlowDemo",setup(){const[r,{getFlowInstance:e}]=s(),o=p(),i=p({readonly:!1}),a=()=>{e()};return setTimeout(()=>{o.value={nodes:[{id:"21",type:"rect",x:300,y:100,text:"rect node"},{id:"50",type:"circle",x:500,y:100,text:"circle node"}],edges:[{id:"21",type:"polyline",sourceNodeId:"50",targetNodeId:"21"}]}},1e3),y(()=>{a()}),{register:r,flowDataRef:o,settingRef:i}},render(){const{register:r,flowDataRef:e,settingRef:o}=this;return t(c,{vertical:!0},{default:()=>[t(m,null,{default:()=>[t(l,null,{default:()=>[t(d,{xGap:4,yGap:18,cols:4},{default:()=>[t(u,{label:"禁用流程图"},{default:()=>[t(f,{value:o.readonly,"onUpdate:value":i=>o.readonly=i},null)]})]})]})]}),t(m,null,{default:()=>[t(n,{height:500,onRegister:r,data:e,readonly:o.readonly},null)]})]})}});export{Rt as default}; diff --git a/js/Flow-BwOEXCKT.js.gz b/js/Flow-BwOEXCKT.js.gz deleted file mode 100644 index ef5671ad..00000000 Binary files a/js/Flow-BwOEXCKT.js.gz and /dev/null differ diff --git a/js/Flow-XWW4foIy.js b/js/Flow-XWW4foIy.js new file mode 100644 index 00000000..285d8133 --- /dev/null +++ b/js/Flow-XWW4foIy.js @@ -0,0 +1 @@ +import{R as l,F as n,H as s}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import{N as m,a as d,ag as u,J as f,e as c}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as g,l as y,b as t}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as p}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Rt=g({name:"RFlowDemo",setup(){const[r,{getFlowInstance:e}]=s(),o=p(),i=p({readonly:!1}),a=()=>{e()};return setTimeout(()=>{o.value={nodes:[{id:"21",type:"rect",x:300,y:100,text:"rect node"},{id:"50",type:"circle",x:500,y:100,text:"circle node"}],edges:[{id:"21",type:"polyline",sourceNodeId:"50",targetNodeId:"21"}]}},1e3),y(()=>{a()}),{register:r,flowDataRef:o,settingRef:i}},render(){const{register:r,flowDataRef:e,settingRef:o}=this;return t(c,{vertical:!0},{default:()=>[t(m,null,{default:()=>[t(l,null,{default:()=>[t(d,{xGap:4,yGap:18,cols:4},{default:()=>[t(u,{label:"禁用流程图"},{default:()=>[t(f,{value:o.readonly,"onUpdate:value":i=>o.readonly=i},null)]})]})]})]}),t(m,null,{default:()=>[t(n,{height:500,onRegister:r,data:e,readonly:o.readonly},null)]})]})}});export{Rt as default}; diff --git a/js/Flow-XWW4foIy.js.gz b/js/Flow-XWW4foIy.js.gz new file mode 100644 index 00000000..619437c5 Binary files /dev/null and b/js/Flow-XWW4foIy.js.gz differ diff --git a/js/TablePro-CT98TDAq.js b/js/TablePro-CT98TDAq.js new file mode 100644 index 00000000..be502a89 --- /dev/null +++ b/js/TablePro-CT98TDAq.js @@ -0,0 +1 @@ +import{X as Z,Y as _,T as $,z as G,Z as Q,$ as W}from"./hooks-Bi_Q9OFa.js";import{m as ee}from"./utils-4asTneEs.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./print-js@1.6.0-CWwD-D0p.js";import{a as te}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./lodash@4.17.21-D1YkSij2.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import"./instance-BbSLtO2c.js";import{M as O}from"./mockjs@1.1.0-C0u4TCrj.js";import{d as S}from"./dayjs@1.11.13-BI9XULUM.js";import{w as ae,ag as b,M as j,H as ue,ak as oe,e as f,P as m,N as U,I,al as z,an as T}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as re,b as e,F as le,J as l,q as ie}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as p}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./axios@1.7.9-upsvKRUO.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";function se(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!ie(a)}const ft=re({name:"TableProDemo",setup(){const{format:a}=W(),[q,{runTableRequest:h,getCurrentTableRequestParams:E,print:v,downloadCsv:n}]=Z(),i=p([]),g=p([{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:u=>a(u.signTimeStart)+" ~ "+a(u.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:u=>u.tags.map(o=>e(ae,{type:"info",bordered:!1,style:"margin-right: 6px"},se(o)?o:{default:()=>[o]}))},{title:"Remark",key:"remark"}]),y=p(0),D=p({}),k=p((()=>{const d=[],o=S().valueOf();for(let r=0;r<30;r++)d.push({key:ee(),name:O.Random.cname(),age:r+20,address:O.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:r%2===0?"success":"error",statusText:r%2===0?"在线":"离线",signTimeStart:S(o).add(r*2,"year").valueOf(),signTimeEnd:S(o).add(r+5,"day").valueOf()});return d})()),w=p({pagination:!0,manual:!1}),[L,{checkedRowKeysBind:x,getKeys:F,getRows:P,clearKey:R,clearAll:t,selectKey:M}]=_(i,g,{rowKey:"key",onChange:(u,d,o)=>{}}),V=p(!0),C=u=>u==null,H=u=>new Promise(d=>{const{page:o=1,pageSize:r=10,name:A,status:K,signTimeStart:N,signTimeEnd:B}=u||{};let s=k.value;const Y=k.value.length;A&&(s=s.filter(c=>c.name.includes(A))),K&&(s=s.filter(c=>c.status===K)),N&&B&&(s=s.filter(c=>c.signTimeStart>=N&&c.signTimeEnd<=B)),s=s.slice((o-1)*r,o*r),setTimeout(()=>{d({code:0,data:s,total:C(K)&&C(A)&&(C(N)||C(B))?Y:s.length,message:"success",page:o,pageSize:r})},1e3)}),{run:J,loading:X}=te(H,{onSuccess:u=>{const{data:d,total:o}=u;i.value=d,y.value=o}});return{tableDataRef:i,baseColumns:g,itemCountRef:y,loadingGetPersonList:X,runGetPersonList:J,conditionRef:D,radioRef:w,runTableRequest:h,tableProRegister:q,print:v,downloadCsv:n,checkedRowKeysBind:x,checkedRowKeys:L,getKeys:F,getRows:P,clearKey:R,clearAll:t,collapseRef:V,selectKey:M}},render(){const{tableDataRef:a,baseColumns:q,itemCountRef:h,loadingGetPersonList:E,runGetPersonList:v,conditionRef:n,radioRef:i,runTableRequest:g,tableProRegister:y,print:D,downloadCsv:k,checkedRowKeysBind:w,getKeys:L,getRows:x,clearKey:F,clearAll:P,selectKey:R}=this;return e(f,{vertical:!0},{default:()=>[e($,{open:this.collapseRef,bordered:!0},{default:()=>e(le,null,[e(b,{label:"用户名"},{default:()=>[e(j,{value:n.name,"onUpdate:value":t=>n.name=t,clearable:!0},null)]}),e(b,{label:"状态"},{default:()=>[e(ue,{value:n.status,"onUpdate:value":t=>n.status=t,clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),e(b,{label:"登陆时间"},{default:()=>[e(oe,{type:"datetimerange",value:n.RangeTime,"onUpdate:value":t=>n.RangeTime=t,clearable:!0},null)]}),e(b,{label:"演示折叠的条件框"},{default:()=>[e(j,{readonly:!0,placeholder:"我只是为了占位"},null)]})]),action:()=>e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>g(),loading:E},{default:()=>[l("查询")]})]}),collapse:t=>t?e(m,{onClick:()=>this.collapseRef=!0,secondary:!0},{default:()=>"受控展开",icon:()=>e(G,{name:"dark",size:"18"},null)}):e(m,{onClick:()=>this.collapseRef=!1,secondary:!0},{default:()=>"受控收起",icon:()=>e(G,{name:"light",size:"18"},null)})}),e(U,{title:"常用高级拓展功能"},{default:()=>[e(f,null,{default:()=>[e(I,{label:"分页"},{default:()=>[e(z,{value:i.pagination,"onUpdate:value":t=>i.pagination=t},{default:()=>[e(T,{value:!0},{default:()=>[l("显示分页")]}),e(T,{value:!1},{default:()=>[l("隐藏分页")]})]})]}),e(I,{label:"自动更新"},{default:()=>[e(z,{value:i.manual,"onUpdate:value":t=>i.manual=t},{default:()=>[e(T,{value:!1},{default:()=>[l("自动更新")]}),e(T,{value:!0},{default:()=>[l("取消自动")]})]})]})]})]}),e(U,{title:"useTablePro 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>D()},{default:()=>[l("打印")]}),e(m,{type:"primary",onClick:()=>k()},{default:()=>[l("下载 csv")]})]})]}),e(U,{title:"useCheckedRowKeys 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>{const t=a[1].key;R(t)}},{default:()=>[l("选中第二行")]}),e(m,{type:"primary",onClick:()=>{const t=a[1].key;F(t)}},{default:()=>[l("取消选中第二行")]}),e(m,{type:"primary",onClick:()=>{a==null||a.forEach(t=>R(t.key))}},{default:()=>[l("选中当前页面所有行")]}),e(m,{type:"primary",onClick:()=>{P()}},{default:()=>[l("取消所有已选中行")]})]})]}),e(Q,{onRegister:y,data:a,columns:this.baseColumns,"onUpdate:columns":t=>this.baseColumns=t,loading:E,paginationCount:h,request:v,requestConfig:{params:n,formatRangeTime:[{key:"RangeTime",target:["signTimeStart","signTimeEnd"]}]},showPagination:i.pagination,manual:i.manual,rowKey:t=>t.key,checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":t=>this.checkedRowKeys=t,onUpdateCheckedRowKeys:w},null)]})}});export{ft as default}; diff --git a/js/TablePro-CT98TDAq.js.gz b/js/TablePro-CT98TDAq.js.gz new file mode 100644 index 00000000..070c81ba Binary files /dev/null and b/js/TablePro-CT98TDAq.js.gz differ diff --git a/js/TablePro-CxALP6p1.js b/js/TablePro-CxALP6p1.js deleted file mode 100644 index 9b9425a7..00000000 --- a/js/TablePro-CxALP6p1.js +++ /dev/null @@ -1 +0,0 @@ -import{X as _,Y as $,T as J,z as G,Z as Q,$ as W}from"./hooks-CpaAYtdw.js";import{m as ee}from"./utils-DBF0WsFC.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./print-js@1.6.0-CWwD-D0p.js";import{a as te}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./lodash@4.17.21-D1YkSij2.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import"./instance-nutHwvcu.js";import{M as I}from"./mockjs@1.1.0-C0u4TCrj.js";import{d as U}from"./dayjs@1.11.13-BI9XULUM.js";import{ag as T,M as O,H as ae,ak as ue,e as f,P as m,N as L,I as j,al as z,an as b,w as oe}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as re,b as e,F as le,I as l,p as ie}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as c}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./axios@1.7.9-upsvKRUO.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";function se(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!ie(a)}const ft=re({name:"TableProDemo",setup(){const{format:a}=W(),[h,{runTableRequest:E,getCurrentTableRequestParams:v,print:D,downloadCsv:n}]=_(),i=c([]),g=[{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:u=>a(u.signTimeStart)+" ~ "+a(u.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:u=>u.tags.map(o=>e(oe,{type:"info",bordered:!1,style:"margin-right: 6px"},se(o)?o:{default:()=>[o]}))},{title:"Remark",key:"remark"}],y=c(0),w=c({}),k=c((()=>{const d=[],o=U().valueOf();for(let r=0;r<30;r++)d.push({key:ee(),name:I.Random.cname(),age:r+20,address:I.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:r%2===0?"success":"error",statusText:r%2===0?"在线":"离线",signTimeStart:U(o).add(r*2,"year").valueOf(),signTimeEnd:U(o).add(r+5,"day").valueOf()});return d})()),F=c({pagination:!0,manual:!1}),[q,{checkedRowKeysBind:x,getKeys:P,getRows:A,clearKey:R,clearAll:t,selectKey:M}]=$(i,g,{rowKey:"key",onChange:(u,d,o)=>{}}),V=c(!0),C=u=>u==null,H=u=>new Promise(d=>{const{page:o=1,pageSize:r=10,name:K,status:N,signTimeStart:B,signTimeEnd:S}=u||{};let s=k.value;const Z=k.value.length;K&&(s=s.filter(p=>p.name.includes(K))),N&&(s=s.filter(p=>p.status===N)),B&&S&&(s=s.filter(p=>p.signTimeStart>=B&&p.signTimeEnd<=S)),s=s.slice((o-1)*r,o*r),setTimeout(()=>{d({code:0,data:s,total:C(N)&&C(K)&&(C(B)||C(S))?Z:s.length,message:"success",page:o,pageSize:r})},1e3)}),{run:X,loading:Y}=te(H,{onSuccess:u=>{const{data:d,total:o}=u;i.value=d,y.value=o}});return{tableDataRef:i,baseColumns:g,itemCountRef:y,loadingGetPersonList:Y,runGetPersonList:X,conditionRef:w,radioRef:F,runTableRequest:E,tableProRegister:h,print:D,downloadCsv:n,checkedRowKeysBind:x,checkedRowKeys:q,getKeys:P,getRows:A,clearKey:R,clearAll:t,collapseRef:V,selectKey:M}},render(){const{tableDataRef:a,baseColumns:h,itemCountRef:E,loadingGetPersonList:v,runGetPersonList:D,conditionRef:n,radioRef:i,runTableRequest:g,tableProRegister:y,print:w,downloadCsv:k,checkedRowKeysBind:F,getKeys:q,getRows:x,clearKey:P,clearAll:A,selectKey:R}=this;return e(f,{vertical:!0},{default:()=>[e(J,{open:this.collapseRef,bordered:!0},{default:()=>e(le,null,[e(T,{label:"用户名"},{default:()=>[e(O,{value:n.name,"onUpdate:value":t=>n.name=t,clearable:!0},null)]}),e(T,{label:"状态"},{default:()=>[e(ae,{value:n.status,"onUpdate:value":t=>n.status=t,clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),e(T,{label:"登陆时间"},{default:()=>[e(ue,{type:"datetimerange",value:n.RangeTime,"onUpdate:value":t=>n.RangeTime=t,clearable:!0},null)]}),e(T,{label:"演示折叠的条件框"},{default:()=>[e(O,{readonly:!0,placeholder:"我只是为了占位"},null)]})]),action:()=>e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>g(),loading:v},{default:()=>[l("查询")]})]}),collapse:t=>t?e(m,{onClick:()=>this.collapseRef=!0,secondary:!0},{default:()=>"受控展开",icon:()=>e(G,{name:"dark",size:"18"},null)}):e(m,{onClick:()=>this.collapseRef=!1,secondary:!0},{default:()=>"受控收起",icon:()=>e(G,{name:"light",size:"18"},null)})}),e(L,{title:"常用高级拓展功能"},{default:()=>[e(f,null,{default:()=>[e(j,{label:"分页"},{default:()=>[e(z,{value:i.pagination,"onUpdate:value":t=>i.pagination=t},{default:()=>[e(b,{value:!0},{default:()=>[l("显示分页")]}),e(b,{value:!1},{default:()=>[l("隐藏分页")]})]})]}),e(j,{label:"自动更新"},{default:()=>[e(z,{value:i.manual,"onUpdate:value":t=>i.manual=t},{default:()=>[e(b,{value:!1},{default:()=>[l("自动更新")]}),e(b,{value:!0},{default:()=>[l("取消自动")]})]})]})]})]}),e(L,{title:"useTablePro 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>w()},{default:()=>[l("打印")]}),e(m,{type:"primary",onClick:()=>k()},{default:()=>[l("下载 csv")]})]})]}),e(L,{title:"useCheckedRowKeys 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>{const t=a[1].key;R(t)}},{default:()=>[l("选中第二行")]}),e(m,{type:"primary",onClick:()=>{const t=a[1].key;P(t)}},{default:()=>[l("取消选中第二行")]}),e(m,{type:"primary",onClick:()=>{a==null||a.forEach(t=>R(t.key))}},{default:()=>[l("选中当前页面所有行")]}),e(m,{type:"primary",onClick:()=>{A()}},{default:()=>[l("取消所有已选中行")]})]})]}),e(Q,{onRegister:y,data:a,columns:h,loading:v,paginationCount:E,request:D,requestConfig:{params:n,formatRangeTime:[{key:"RangeTime",target:["signTimeStart","signTimeEnd"]}]},showPagination:i.pagination,manual:i.manual,rowKey:t=>t.key,checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":t=>this.checkedRowKeys=t,onUpdateCheckedRowKeys:F},null)]})}});export{ft as default}; diff --git a/js/TablePro-CxALP6p1.js.gz b/js/TablePro-CxALP6p1.js.gz deleted file mode 100644 index 8e00cfd8..00000000 Binary files a/js/TablePro-CxALP6p1.js.gz and /dev/null differ diff --git a/js/draggable-card-Bn2yn2QC.js b/js/draggable-card-Bn2yn2QC.js new file mode 100644 index 00000000..aeb8709f --- /dev/null +++ b/js/draggable-card-Bn2yn2QC.js @@ -0,0 +1 @@ +import{K as i}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{N as p,P as e}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as a,t as u,b as t,J as m}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as d}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const st=a({name:"DraggableCardDemo",setup(){const r=d(!1),o=u("domRef");return{card3:r,domRef:o}},render(){const{card3:r,domRef:o}=this;return t("div",null,[t("div",{ref:"domRef",style:{width:"100%",height:"400px",backgroundColor:"red"}},null),t(i,{animation:!0,title:"Body"},{default:()=>[m("我被限制在 body 中。")]}),r?t(i,{animation:!0,title:"Custom Container",restrictionElement:o,closable:!0,onClose:()=>this.card3=!1},{default:()=>"我被限制在红色区域中。并且我支持 NCard 的所有配置与插槽。","header-extra":()=>"其实我就是 NCard 封装的",footer:()=>"我支持 footer 插槽",action:()=>"我支持 action 插槽"}):null,t(p,{title:"显示与隐藏卡片"},{default:()=>[t(e,{type:"primary",onClick:()=>this.card3=!this.card3},{default:()=>[m("点一下试试")]})]})])}});export{st as default}; diff --git a/js/draggable-card-Bn2yn2QC.js.gz b/js/draggable-card-Bn2yn2QC.js.gz new file mode 100644 index 00000000..d88e4979 Binary files /dev/null and b/js/draggable-card-Bn2yn2QC.js.gz differ diff --git a/js/draggable-card-CZ4wS8CL.js b/js/draggable-card-CZ4wS8CL.js deleted file mode 100644 index 4ef3444a..00000000 --- a/js/draggable-card-CZ4wS8CL.js +++ /dev/null @@ -1 +0,0 @@ -import{K as i}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{N as p,P as e}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as a,q as u,b as t,I as m}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as d}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const st=a({name:"DraggableCardDemo",setup(){const r=d(!1),o=u("domRef");return{card3:r,domRef:o}},render(){const{card3:r,domRef:o}=this;return t("div",null,[t("div",{ref:"domRef",style:{width:"100%",height:"400px",backgroundColor:"red"}},null),t(i,{animation:!0,title:"Body"},{default:()=>[m("我被限制在 body 中。")]}),r?t(i,{animation:!0,title:"Custom Container",restrictionElement:o,closable:!0,onClose:()=>this.card3=!1},{default:()=>"我被限制在红色区域中。并且我支持 NCard 的所有配置与插槽。","header-extra":()=>"其实我就是 NCard 封装的",footer:()=>"我支持 footer 插槽",action:()=>"我支持 action 插槽"}):null,t(p,{title:"显示与隐藏卡片"},{default:()=>[t(e,{type:"primary",onClick:()=>this.card3=!this.card3},{default:()=>[m("点一下试试")]})]})])}});export{st as default}; diff --git a/js/draggable-card-CZ4wS8CL.js.gz b/js/draggable-card-CZ4wS8CL.js.gz deleted file mode 100644 index 15b8f752..00000000 Binary files a/js/draggable-card-CZ4wS8CL.js.gz and /dev/null differ diff --git a/js/echarts@5.5.1-Dj_7IMQj.js b/js/echarts@5.5.1-Dj_7IMQj.js deleted file mode 100644 index 8a007c8c..00000000 --- a/js/echarts@5.5.1-Dj_7IMQj.js +++ /dev/null @@ -1,28 +0,0 @@ -import{i as W,r as Ta,m as F,c as U,e as w,a as le,b as lt,d as Y,f as ue,g as po,h as O,j as fe,k as Yp,l as N,n as X,o as Nn,p as Fe,P as Se,q as yl,s as ie,t as Xp,Z as Or,C as Ga,E as Fc,S as or,R as Gc,u as cs,v as Bn,w as he,L as er,B as Wc,A as vs,x as Zp,y as re,z as mt,D as $p,F as Kp,G as qp,H as Hc,I as go,T as Uc,J as hs,K as tr,M as jp,N as Ye,O as Qp,Q as ge,U as Jp,V as Yc,W as Da,X as we,Y as eg,_ as Ce,$ as Vn,a0 as q,a1 as K,a2 as xt,a3 as tg,a4 as Be,a5 as J,a6 as Ve,a7 as be,a8 as oe,a9 as Aa,aa as rg,ab as yt,ac as mo,ad as Xc,ae as ng,af as ag,ag as ig,ah as zn,ai as _l,aj as pi,ak as og,al as yo,am as _o,an as sg,ao as ds,ap as Sl,aq as gi,ar as lg,as as ug,at as Zc,au as sn,av as Dr,aw as $c,ax as fg,ay as cg,az as vg,aA as So,aB as xl,aC as hg,aD as dg,aE as pg,aF as gg,aG as mg,aH as bl,aI as wl,aJ as yg,aK as _g,aL as Sg,aM as xg,aN as bg,aO as wg,aP as Cg,aQ as Tg,aR as Dg,aS as Ag}from"./zrender@5.6.0-DbjVw6Tx.js";import{_ as B}from"./tslib@2.3.0-BDyQ-Jie.js";var Ig=1e-4,Kc=20;function Mg(r){return r.replace(/^\s+|\s+$/g,"")}function Ot(r,t,e,n){var a=t[0],i=t[1],o=e[0],s=e[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function te(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return W(r)?Mg(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function _e(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Kc),r=(+r).toFixed(t),e?r:+r}function Lg(r){return r.sort(function(t,e){return t-e}),r}function pt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Pg(r)}function Pg(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function qc(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Rg(r,t){var e=Ta(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=F(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=F(a,function(v){return Math.floor(v)}),s=Ta(o,function(v,d){return v+d},0),l=F(a,function(v,d){return v-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return F(o,function(v){return v/n})}function kg(r,t){var e=Math.max(pt(r),pt(t)),n=r+t;return e>Kc?n:_e(n,e)}function jc(r){var t=Math.PI*2;return(r%t+t)%t}function Ia(r){return r>-1e-4&&r=10&&t++,t}function Qc(r,t){var e=ps(r),n=Math.pow(10,e),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function zt(r){var t=parseFloat(r);return t==r&&(t!==0||!W(r)||r.indexOf("x")<=0)?t:NaN}function Jc(r){return!isNaN(zt(r))}function ev(){return Math.round(Math.random()*9)}function tv(r,t){return t===0?r:tv(t,r%t)}function Cl(r,t){return r==null?t:t==null?r:r*t/tv(r,t)}function Q(r){throw new Error(r)}function Tl(r,t,e){return(t-r)*e+r}var rv="series\0",nv="\0_ec_\0";function de(r){return r instanceof Array?r:r==null?[]:[r]}function xo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n=0||i&&le(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var im=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],om=bn(im),sm=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return om(this,t,e)},r}(),$=se(),lm=function(r,t,e,n){if(n){var a=$(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=$(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Al=1,Il={},uv=se(),_s=se(),Ss=0,Ha=1,Ua=2,Xe=["emphasis","blur","select"],Ma=["normal","emphasis","blur","select"],um=10,fm=9,Qt="highlight",ga="downplay",dn="select",ma="unselect",pn="toggleSelect";function ur(r){return r!=null&&r!=="none"}function Ya(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function fv(r){Ya(r,"emphasis",Ua)}function cv(r){r.hoverState===Ua&&Ya(r,"normal",Ss)}function xs(r){Ya(r,"blur",Ha)}function vv(r){r.hoverState===Ha&&Ya(r,"normal",Ss)}function cm(r){r.selected=!0}function vm(r){r.selected=!1}function Ml(r,t,e){t(r,e)}function bt(r,t,e){Ml(r,t,e),r.isGroup&&r.traverse(function(n){Ml(n,t,e)})}function Ll(r,t){switch(t){case"emphasis":r.hoverState=Ua;break;case"normal":r.hoverState=Ss;break;case"blur":r.hoverState=Ha;break;case"select":r.selected=!0}}function hm(r,t,e,n){for(var a=r.style,i={},o=0;o=0,i=!1;if(r instanceof Se){var o=uv(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(ur(s)||ur(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=N({},n),u=N({},u),u.fill=s):!ur(u.fill)&&ur(s)?(i=!0,n=N({},n),u=N({},u),u.fill=yl(s)):!ur(u.stroke)&&ur(l)&&(i||(n=N({},n),u=N({},u)),u.stroke=yl(l)),n.style=u}}if(n&&n.z2==null){i||(n=N({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??um)}return n}function pm(r,t,e){if(e&&e.z2==null){e=N({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??fm)}return e}function gm(r,t,e){var n=le(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:hm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=N({},e),o=N({opacity:n?a:i.opacity*.1},o),e.style=o),e}function mi(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return dm(this,r,t,e);if(r==="blur")return gm(this,r,e);if(r==="select")return pm(this,r,e)}return e}function mm(r){r.stateProxy=mi;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=mi),e&&(e.stateProxy=mi)}function Pl(r,t){!gv(r,t)&&!r.__highByOuter&&bt(r,fv)}function Rl(r,t){!gv(r,t)&&!r.__highByOuter&&bt(r,cv)}function Ar(r,t){r.__highByOuter|=1<<(t||0),bt(r,fv)}function Ir(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&bt(r,cv)}function ym(r){bt(r,xs)}function hv(r){bt(r,vv)}function dv(r){bt(r,cm)}function pv(r){bt(r,vm)}function gv(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function mv(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=_s(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){vv(u)}),s&&e.push(i)),o.isBlured=!1}),w(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function bo(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Co(r,t,e){yv(r,!0),bt(r,mm),Tm(r,t,e)}function Cm(r){yv(r,!1)}function Mr(r,t,e,n){n?Cm(r):Co(r,t,e)}function Tm(r,t,e){var n=$(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var El=["emphasis","blur","select"],Dm={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function wn(r,t,e,n){e=e||"itemStyle";for(var a=0;a0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function me(r,t,e,n,a,i){ws("update",r,t,e,n,a,i)}function De(r,t,e,n,a,i){ws("enter",r,t,e,n,a,i)}function Sr(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Bl(r){return!r.isGroup}function Nm(r){return r.shape!=null}function Cv(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Bl(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Nm(o)&&(s.shape=N({},o.shape)),s}var i=n(r);t.traverse(function(o){if(Bl(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),me(o,l,e,$(o).dataIndex)}}})}function Tv(r,t){return F(r,function(e){var n=e[0];n=Pa(n,t.x),n=Ra(n,t.x+t.width);var a=e[1];return a=Pa(a,t.y),a=Ra(a,t.y+t.height),[n,a]})}function Bm(r,t){var e=Pa(r.x,t.x),n=Ra(r.x+r.width,t.x+t.width),a=Pa(r.y,t.y),i=Ra(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function $a(r,t,e){var n=N({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),re(a,e),new Or(n)):Cs(r.replace("path://",""),n,e,"center")}function Vm(r,t,e,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var g=yi(v,d,f,c)/h;return!(g<0||g>1)}function yi(r,t,e,n){return r*n-e*t}function zm(r){return r<=1e-6&&r>=-1e-6}function Ka(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=W(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(Fe(l),function(f){mt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=$(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:re({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function Vl(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Wn(r,t){if(r)if(O(r))for(var e=0;e=0&&s.push(l)}),s}}function Is(r,t){return q(q({},r,!0),t,!0)}const Jm={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:". "}}}},ey={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:""}}}};var ka="ZH",Ms="EN",xr=Ms,_a={},Ls={},Pv=fe.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||xr).toUpperCase();return r.indexOf(ka)>-1?ka:xr}():xr;function Rv(r,t){r=r.toUpperCase(),Ls[r]=new ce(t),_a[r]=t}function ty(r){if(W(r)){var t=_a[r.toUpperCase()]||{};return r===ka||r===Ms?K(t):q(K(t),K(_a[xr]),!1)}else return q(K(r),K(_a[xr]),!1)}function ry(r){return Ls[r]}function ny(){return Ls[xr]}Rv(Ms,Jm);Rv(ka,ey);var Ps=1e3,Rs=Ps*60,gn=Rs*60,Ue=gn*24,Ul=Ue*365,ln={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}"},$n="{yyyy}-{MM}-{dd}",Yl={year:"{yyyy}",month:"{yyyy}-{MM}",day:$n,hour:$n+" "+ln.hour,minute:$n+" "+ln.minute,second:$n+" "+ln.second,millisecond:ln.none},xi=["year","month","day","hour","minute","second","millisecond"],kv=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Dt(r,t){return r+="","0000".substr(0,t-r.length)+r}function br(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function ay(r){return r===br(r)}function iy(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ja(r,t,e,n){var a=_t(r),i=a[ks(e)](),o=a[wr(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[Qa(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[Dn(e)](),c=(f-1)%12+1,h=a[Ja(e)](),v=a[ei(e)](),d=a[ti(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof ce?n:ry(n||Pv)||ny(),y=m.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Dt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Dt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Dt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Dt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Dt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Dt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Dt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Dt(d,3)).replace(/{S}/g,d+"")}function oy(r,t,e,n,a){var i=null;if(W(e))i=e;else if(X(e))i=e(r.value,t,{level:r.level});else{var o=N({},ln);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(O(i)){var c=r.level==null?0:r.level>=0?r.level:i.length+r.level;c=Math.min(c,i.length-1),i=i[c]}}return ja(new Date(r.value),i,a,n)}function Ev(r,t){var e=_t(r),n=e[wr(t)]()+1,a=e[Qa(t)](),i=e[Dn(t)](),o=e[Ja(t)](),s=e[ei(t)](),l=e[ti(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Xl(r,t,e){var n=ue(r)?_t(r):r;switch(t=t||Ev(r,e),t){case"year":return n[ks(e)]();case"half-year":return n[wr(e)]()>=6?1:0;case"quarter":return Math.floor((n[wr(e)]()+1)/4);case"month":return n[wr(e)]();case"day":return n[Qa(e)]();case"half-day":return n[Dn(e)]()/24;case"hour":return n[Dn(e)]();case"minute":return n[Ja(e)]();case"second":return n[ei(e)]();case"millisecond":return n[ti(e)]()}}function ks(r){return r?"getUTCFullYear":"getFullYear"}function wr(r){return r?"getUTCMonth":"getMonth"}function Qa(r){return r?"getUTCDate":"getDate"}function Dn(r){return r?"getUTCHours":"getHours"}function Ja(r){return r?"getUTCMinutes":"getMinutes"}function ei(r){return r?"getUTCSeconds":"getSeconds"}function ti(r){return r?"getUTCMilliseconds":"getMilliseconds"}function sy(r){return r?"setUTCFullYear":"setFullYear"}function Ov(r){return r?"setUTCMonth":"setMonth"}function Nv(r){return r?"setUTCDate":"setDate"}function Bv(r){return r?"setUTCHours":"setHours"}function Vv(r){return r?"setUTCMinutes":"setMinutes"}function zv(r){return r?"setUTCSeconds":"setSeconds"}function Fv(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Gv(r){if(!Jc(r))return W(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Wv(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ri=tg;function Mo(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Vn(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?_t(r):r;if(isNaN(+l)){if(s)return"-"}else return ja(l,n,e)}if(t==="ordinal")return po(r)?a(r):ue(r)&&i(r)?r+"":"-";var u=zt(r);return i(u)?Gv(u):po(r)?a(r):typeof r=="boolean"?r+"":"-"}var Zl=["a","b","c","d","e","f","g"],bi=function(r,t){return"{"+r+(t??"")+"}"};function Hv(r,t,e){O(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function nr(r,t){return t=t||"transparent",W(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function $l(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Sa=w,uy=["left","right","top","bottom","width","height"],Kn=[["width","left","right"],["height","top","bottom"]];function Es(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Cr=Es;J(Es,"vertical");J(Es,"horizontal");function Gt(r,t,e){e=ri(e||0);var n=t.width,a=t.height,i=te(r.left,n),o=te(r.top,a),s=te(r.right,n),l=te(r.bottom,a),u=te(r.width,n),f=te(r.height,a),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(f)&&(f=a-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-f-c),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new Ye(i+e[3],o+e[0],u,f);return d.margin=e,d}function fy(r,t,e,n,a,i){i=i||r,i.x=r.x,i.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=Gt(re({width:o.width,height:o.height},t),e,n),u=l.x-o.x,f=l.y-o.y;return i.x+=u,i.y+=f,i===r&&r.markRedraw(),!0}function An(r){var t=r.layoutMode||r.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function Lr(r,t,e){var n=e&&e.ignoreSize;!O(n)&&(n=[n,n]);var a=o(Kn[0],0),i=o(Kn[1],1);u(Kn[0],r,a),u(Kn[1],r,i);function o(f,c){var h={},v=0,d={},p=0,g=2;if(Sa(f,function(_){d[_]=r[_]}),Sa(f,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var m=0;m=0;l--)s=q(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Gn(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(ce);lv(ee,ce);Wa(ee);jm(ee);Qm(ee,hy);function hy(r){var t=[];return w(ee.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=F(t,function(e){return nt(e).main}),r!=="dataset"&&le(t,"dataset")<=0&&t.unshift("dataset"),t}var Uv="";typeof navigator<"u"&&(Uv=navigator.platform||"");var fr="rgba(0, 0, 0, 0.2)";const dy={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:fr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Uv.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};var Yv=U(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ze="original",Ee="arrayRows",$e="objectRows",ut="keyedColumns",Bt="typedArray",Xv="unknown",st="column",zr="row",Te={Must:1,Might:2,Not:3},Zv=se();function py(r){Zv(r).datasetMap=U()}function $v(r,t,e){var n={},a=Os(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=Zv(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),w(r,function(p,g){var m=Y(p)?p:r[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});w(r,function(p,g){var m=p.name,y=d(p);if(f==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(f===g)v(n[m],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;yt)return r[n];return r[e-1]}function jv(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?e:xy(n,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function by(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var qn,Xr,jl,Ql="\0_ec_inner",wy=1,Bs=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new ce(i),this._locale=new ce(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=tu(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,tu(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?jl(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=U(),u=n&&n.replaceMergeMainTypeMap;py(this),w(e,function(c,h){c!=null&&(ee.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?K(c):q(a[h],c,!0))}),u&&u.each(function(c,h){ee.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ee.topologicalTravel(s,ee.getAllClassMainTypes(),f,this);function f(c){var h=_y(this,c,de(e[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=Bg(v,h,d);Yg(p,c,ee),a[c]=null,i.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;w(p,function(S,b){var x=S.existing,C=S.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",D=ee.getClass(c,S.keyInfo.subType,!T);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===D)x.name=S.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var A=N({componentIndex:b},S.keyInfo);x=new D(C,this,this,A),N(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),y++):(g.push(void 0),m.push(void 0))},this),a[c]=g,i.set(c,m),o.set(c,y),c==="series"&&qn(this)}this._seriesIndices||qn(this)},t.prototype.getOption=function(){var e=K(this.option);return w(e,function(n,a){if(ee.hasClass(a)){for(var i=de(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!xn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[Ql],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function Ry(r,t){return r.join(",")===t.join(",")}var Ke=w,In=Y,ru=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ci(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=ru.length;e=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=kg(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var ai=function(){function r(t){this.data=t.data||(t.sourceFormat===ut?{}:[]),this.sourceFormat=t.sourceFormat||Xv,this.seriesLayoutBy=t.seriesLayoutBy||st,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;np&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};uu=(t={},t[Ee+"_"+st]={pure:!0,appendData:i},t[Ee+"_"+zr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[$e]={pure:!0,appendData:i},t[ut]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Ze]={appendData:i},t[Bt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Pr(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function hu(r){var t,e;return Y(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function mn(r){return new qy(r)}var qy=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v1&&n>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},Qy=function(){function r(t,e){if(!ue(e)){var n="";Q(n)}this._opFn=uh[t],this._rvalFloat=zt(e)}return r.prototype.evaluate=function(t){return ue(t)?this._opFn(t,this._rvalFloat):this._opFn(zt(t),this._rvalFloat)},r}(),fh=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=ue(t)?t:zt(t),a=ue(e)?e:zt(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=W(t),l=W(e);s&&(n=l?t:0),l&&(a=s?e:0)}return na?-this._resultLT:0},r}(),Jy=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=zt(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=zt(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function e0(r,t){return r==="eq"||r==="ne"?new Jy(r==="eq",t):mt(uh,r)?new Qy(r,t):null}var t0=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return xa(t,e)},r}();function r0(r,t){var e=new t0,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==st&&Q(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";mt(l,m)&&Q(_),l[m]=y}});else for(var f=0;f65535?f0:c0}function cr(){return[1/0,-1/0]}function v0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function gu(r,t,e,n,a){var i=hh[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=F(o,function(y){return y.property}),f=0;fm[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=c&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],m=0;m=c&&y<=h||isNaN(y))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m=c&&y<=h||isNaN(y))&&(l[u++]=C)}else for(var m=0;mt[A][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,h,v=new($r(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;df&&(f=c,h=S)}I>0&&If-d&&(l=f-d,s.length=l);for(var p=0;pc[1]&&(c[1]=m),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();il&&(l=c)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return xa(e[i],this._dimensions[i])}Ai={arrayRows:t,objectRows:function(e,n,a,i){return xa(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return xa(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),dh=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(jn(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Ve(s)?Bt:Ze,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=ie(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=ie(c.sourceHeader,h.sourceHeader),p=ie(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=g?[Po(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[Po(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&yu(i)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&yu(c),s.push(f),l.push(u._getVersionSign())}),n?o=l0(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[Wy(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return w(r.blocks,function(a){var i=yh(a);i>=t&&(t=i+ +(n&&(!i||ko(a)&&!a.noHeader)))}),t}return 0}function p0(r,t,e,n){var a=t.noHeader,i=m0(yh(t)),o=[],s=t.blocks||[];lt(!s||O(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(mt(u,l)){var f=new fh(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(d,p){var g=t.valueFormatter,m=mh(d)(g?N(N({},r),{valueFormatter:g}):r,d,p>0?i.html:0,n);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(i.richText):Eo(o.join(""),a?e:i.html);if(a)return c;var h=Mo(t.header,"ordinal",r.useUTC),v=gh(n,r.renderMode).nameStyle;return r.renderMode==="richText"?_h(r,h,v)+i.richText+c:Eo('
'+Be(h)+"
"+c,e)}function g0(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=O(S)?S:[S],F(S,function(b,x){return Mo(b,O(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":Mo(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,g=!s&&i,m=gh(n,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":c)+(i?"":_h(r,h,y))+(o?"":S0(r,d,p,g,_)):Eo((s?"":c)+(i?"":y0(h,!s,y))+(o?"":_0(d,p,g,_)),e)}}function _u(r,t,e,n,a,i){if(r){var o=mh(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function m0(r){return{html:h0[r],richText:d0[r]}}function Eo(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function y0(r,t,e){var n=t?"margin-left:2px":"";return''+Be(r)+""}function _0(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=O(r)?r:[r],''+F(r,function(o){return Be(o)}).join("  ")+""}function _h(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function S0(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(O(t)?t.join(" "):t,i)}function x0(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return nr(n)}function Sh(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Ii=function(){function r(){this.richTextStyles={},this._nextStyleNameId=ev()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=ly({color:e,type:t,renderMode:n,markerId:a});return W(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};O(e)?w(e,function(i){return N(n,i)}):N(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function b0(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=O(s),u=x0(t,e),f,c,h,v;if(o>1||l&&!o){var d=w0(s,t,e,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=f=Pr(a,e,i[0]),c=p.type}else v=f=l?s[0]:s;var g=gs(t),m=g&&t.name||"",y=a.getName(e),_=n?m:y;return Mn("section",{header:m,noHeader:n||!g,sortParam:v,blocks:[Mn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Vn(_),value:f,valueType:c,dataIndex:e})].concat(h||[])})}function w0(r,t,e,n,a){var i=t.getData(),o=Ta(r,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?w(n,function(c){f(Pr(i,e,c),c)}):w(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Mn("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var At=se();function Qn(r,t){return r.getName(t)||r.getId(t)}var ba="__universalTransitionEnabled",ze=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=mn({count:T0,reset:D0}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=At(this).sourceManager=new dh(this);i.prepareSource();var o=this.getInitialData(e,a);xu(o,this),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,Su(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=An(this),i=a?ni(e):{},o=this.subType;ee.hasClass(o)&&(o+="Series"),q(e,n.getTheme().get(this.subType)),q(e,this.getDefaultOption()),xo(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Lr(e,i,a)},t.prototype.mergeOption=function(e,n){e=q(this.option,e,!0),this.fillDataTextStyle(e.data);var a=An(this);a&&Lr(this.option,e,a);var i=At(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);xu(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,Su(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Ve(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=Ns.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Qn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[ba])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,n)}},t.registerClass=function(e){return ee.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(ee);xt(ze,Ky);xt(ze,Ns);lv(ze,ee);function Su(r){var t=r.name;gs(r)||(r.name=C0(r)||t)}function C0(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return w(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function T0(r){return r.model.getRawData().count()}function D0(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),A0}function A0(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function xu(r,t){w(rg(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,J(I0,t))})}function I0(r,t){var e=Oo(r);return e&&e.setOutputEnd((t||this).count()),t}function Oo(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var Ne=function(){function r(){this.group=new ge,this.uid=Hn("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();ys(Ne);Wa(Ne);function Un(){var r=se();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var xh=se(),M0=Un(),ke=function(){function r(){this.group=new ge,this.uid=Hn("viewChart"),this.renderTask=mn({plan:L0,reset:P0}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&wu(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&wu(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){Wn(this.group,t)},r.markUpdateMethod=function(t,e){xh(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function bu(r,t,e){r&&To(r)&&(t==="emphasis"?Ar:Ir)(r,e)}function wu(r,t,e){var n=rr(r,t),a=t&&t.highlightKey!=null?Am(t.highlightKey):null;n!=null?w(de(n),function(i){bu(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){bu(i,e,a)})}ys(ke);Wa(ke);function L0(r){return M0(r.model)}function P0(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&xh(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),R0[l]}var R0={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Ea="\0__throttleOriginMethod",Cu="\0__throttleRate",Tu="\0__throttleType";function Ws(r,t,e){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?c():o=setTimeout(c,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function bh(r,t,e,n){var a=r[t];if(a){var i=a[Ea]||a,o=a[Tu],s=a[Cu];if(s!==e||o!==n){if(e==null)return r[t]=i;a=r[t]=Ws(i,e,n==="debounce"),a[Ea]=i,a[Tu]=n,a[Cu]=e}return a}}function No(r,t){var e=r[t];e&&e[Ea]&&(e.clear&&e.clear(),r[t]=e[Ea])}var Du=se(),Au={itemStyle:bn(Lv,!0),lineStyle:bn(Mv,!0)},k0={lineStyle:"stroke",itemStyle:"fill"};function wh(r,t){var e=r.visualStyleMapper||Au[t];return e||(console.warn("Unknown style type '"+t+"'."),Au.itemStyle)}function Ch(r,t){var e=r.visualDrawType||k0[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var E0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=wh(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Ch(r,n),u=o[l],f=X(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||X(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||X(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=N({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},Kr=new ce,O0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=wh(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Kr.option=l[n];var u=a(Kr),f=o.ensureUniqueItemVisual(s,"style");N(f,u),Kr.option.decal&&(o.setItemVisual(s,"decal",Kr.option.decal),Kr.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},N0={performRawSeries:!0,overallReset:function(r){var t=U();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Du(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=Du(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Ch(e,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},Jn=Math.PI;function B0(r,t){t=t||{},re(t,{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 e=new ge,n=new he({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new Ce({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new he({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new vs({shape:{startAngle:-Jn/2,endAngle:-Jn/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Jn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Jn*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Th=function(){function r(t,e,n,a){this._stageTaskMap=U(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=U();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;w(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";lt(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;w(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(g,m){s(a,g)&&g.dirty();var y=o.getPerformArgs(g,a.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.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)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=U(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||mn({plan:W0,reset:H0,count:Y0}));v.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||mn({reset:V0});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=U(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";lt(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(c=!1,w(n.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,mn({reset:z0,onDirty:G0})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,i._pipe(p,m)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return X(t)&&(t={overallReset:t,seriesType:X0(t)}),t.uid=Hn("stageHandler"),e&&(t.visualType=e),t},r}();function V0(r){r.overallReset(r.ecModel,r.api,r.payload)}function z0(r){return r.overallProgress&&F0}function F0(){this.agent.dirty(),this.getDownstream().dirty()}function G0(){this.agent&&this.agent.dirty()}function W0(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function H0(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=de(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?F(t,function(e,n){return Dh(n)}):U0}var U0=Dh(0);function Dh(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Bo=["symbol","symbolSize","symbolRotate","symbolOffset"],Pu=Bo.concat(["symbolKeepAspect"]),K0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[Ae]){if(this._disposed){this.id;return}var i,o,s;if(Y(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ae]=!0,!this._model||n){var l=new Iy(this._api),u=this._theme,f=this._model=new Bs;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Go);var c={seriesTransition:s,optionChanged:!0};if(a)this[Oe]={silent:i,updateParams:c},this[Ae]=!1,this.getZr().wakeUp();else{try{hr(this),It.update.call(this,null,c)}catch(h){throw this[Oe]=null,this[Ae]=!1,h}this._ssr||this._zr.flush(),this[Oe]=null,this[Ae]=!1,qr.call(this,i),jr.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||fe.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(fe.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return w(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;w(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Gu[a]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(_n,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(K(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,g=Xc.createCanvas(),m=_l(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return w(h,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new he({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(h,function(_){var S=new Or({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return ki(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return ki(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=hn(a,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=hn(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?j0(s,l,n):Q0(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;w(M_,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&fn(s,function(d){var p=$(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=N({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),w(yn,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),w(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),e_(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&iv(this.getDom(),Xs,"");var n=this,a=n._api,i=n._model;w(n._componentsViews,function(o){o.dispose(i,a)}),w(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete _n[n.id]},t.prototype.resize=function(e){if(!this[Ae]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Oe]&&(i==null&&(i=this[Oe].silent),a=!0,this[Oe]=null),this[Ae]=!0;try{a&&hr(this),It.update.call(this,{type:"resize",animation:N({duration:0},e&&e.animation)})}catch(o){throw this[Ae]=!1,o}this[Ae]=!1,qr.call(this,i),jr.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(Y(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Wo[e]){var a=Wo[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=N({},e);return n.type=yn[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(Y(n)||(n={silent:!!n}),!!Na[e.type]&&this._model){if(this[Ae]){this._pendingActions.push(e);return}var a=n.silent;Oi.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&fe.browser.weChat&&this._throttledZrFlush(),qr.call(this,a),jr.call(this,a)}},t.prototype.updateLabelLayout=function(){je.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){hr=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Ri(c,!0),Ri(c,!1),h.plan()},Ri=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_h.get("hoverLayerThreshold")&&!fe.node&&!fe.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(c,h,v,d){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var y=c.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Sr(m))return;if(m instanceof Se&&Im(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&a(m)}})}zu=function(c){return new(function(h){B(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Ar(d,p),Ge(c)},v.prototype.leaveEmphasis=function(d,p){Ir(d,p),Ge(c)},v.prototype.enterBlur=function(d){ym(d),Ge(c)},v.prototype.leaveBlur=function(d){hv(d),Ge(c)},v.prototype.enterSelect=function(d){dv(d),Ge(c)},v.prototype.leaveSelect=function(d){pv(d),Ge(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}(Qv))(c)},Wh=function(c){function h(v,d){for(var p=0;p=0)){Wu.push(e);var i=Th.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function $h(r,t){Wo[r]=t}function N_(r,t,e){var n=d_("registerMap");n&&n(r,t,e)}var B_=s0;sr(Us,E0);sr(oi,O0);sr(oi,N0);sr(Us,K0);sr(oi,q0);sr(Nh,v_);Xh(eh);Zh(m_,Fy);$h("default",B0);ft({type:Qt,event:Qt,update:Qt},yt);ft({type:ga,event:ga,update:ga},yt);ft({type:dn,event:dn,update:dn},yt);ft({type:ma,event:ma,update:ma},yt);ft({type:pn,event:pn,update:pn},yt);Yh("light",Z0);Yh("dark",Mh);function Qr(r){return r==null?0:r.length||1}function Hu(r){return r}var Pn=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Hu,this._newKeyGetter=a||Hu,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var v=0;v1)for(var s=0;s30}var Jr=Y,Mt=F,H_=typeof Int32Array>"u"?Array:Int32Array,U_="e\0\0",Uu=-1,Y_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],X_=["_approximateExtent"],Yu,na,en,tn,Vi,aa,zi,ed=function(){function r(t,e){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 n,a=!1;qh(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Ze;if(l&&!a.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),O(i)?i=i.slice():Jr(i)&&(i=N({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Jr(e)?N(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Jr(t)?N(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?N(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;lm(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Mt(this.dimensions,this._getDimInfo,this),this.hostModel)),Vi(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];X(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(og(arguments)))})},r.internalField=function(){Yu=function(t){var e=t._invertedIndicesMap;w(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new H_(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),a[e]=l}}}(),r}();function td(r,t){zs(r)||(r=th(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=U(),i=[],o=$_(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Jh(o),l=n===r.dimensionsDefine,u=l?Qh(r):jh(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=U(f),h=new vh(o),v=0;v0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function $_(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return w(t,function(i){var o;Y(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function K_(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var q_=function(){function r(t){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=t}return r}();function j_(r){var t=r.get("coordinateSystem"),e=new q_(t),n=Q_[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var Q_={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Re).models[0],i=r.getReferringComponents("yAxis",Re).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),dr(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),dr(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Re).models[0];t.coordSysDims=["single"],e.set("single",a),dr(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Re).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),dr(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),dr(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];e.set(f,u),dr(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function dr(r){return r.get("type")==="category"}function J_(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;eS(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(w(i,function(y,_){W(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;w(i,function(y){y.coordDim===v&&p++});var g={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function eS(r){return!qh(r.schema)}function Rr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function tS(r,t){return Rr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function rS(r,t){var e=r.get("coordinateSystem"),n=Vs.get(e),a;return t&&t.coordSysDims&&(a=F(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Ho(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function nS(r,t,e){var n,a;return e&&w(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function si(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;a=n.getSource(),i=a.sourceFormat===Ze;var o=j_(t),s=rS(t,o),l=e.useEncodeDefaulter,u=X(l)?l:l?J($v,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=td(a,f),h=nS(c.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),d=J_(t,{schema:c,store:v}),p=new ed(c,t);p.setCalculationInfo(d);var g=h!=null&&aS(a)?function(m,y,_,S){return S===h?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,g),p}function aS(r){if(r.sourceFormat===Ze){var t=iS(r.data||[]);return!O(Fn(t))}}function iS(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Wa(ct);var oS=0,Uo=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++oS}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&F(n,sS);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!W(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},r}();function sS(r){return Y(r)&&r.value!=null?r.value:r+""}function Yo(r){return r.type==="interval"||r.type==="log"}function lS(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=Qc(i/t);e!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=rd(o),l=a.niceTickExtent=[_e(Math.ceil(r[0]/o)*o,s),_e(Math.floor(r[1]/o)*o,s)];return uS(l,r),a}function Fi(r){var t=Math.pow(10,ps(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,_e(e*t)}function rd(r){return pt(r)+2}function Xu(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function uS(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Xu(r,0,t),Xu(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function li(r,t){return r>=t[0]&&r<=t[1]}function ui(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function fi(r,t){return r*(t[1]-t[0])+t[0]}var Ks=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Uo({})),O(a)&&(a=new Uo({categories:F(a,function(i){return Y(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:W(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),li(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),ui(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(fi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(ct);ct.registerClass(Ks);var $t=_e,Fr=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return li(e,this._extent)},t.prototype.normalize=function(e){return ui(e,this._extent)},t.prototype.scale=function(e){return fi(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=rd(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]l)return[];var f=s.length?s[s.length-1].value:i[1];return a[1]>f&&(e?s.push({value:$t(f+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function od(r){var t=vS(r),e=[];return w(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=te(n.get("barWidth"),s),p=te(n.get("barMaxWidth"),s),g=te(n.get("barMinWidth")||(fd(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:qs(i),stackId:ad(n)})}),hS(e)}function hS(r){var t={};w(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Fe(i).length;s=Math.max(35-l*4,15)+"%"}var u=te(s,o),f=te(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),w(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),m.width=S,c-=S+f*S,h--}else{var S=v;y&&yS&&(S=_),S!==v&&(m.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;w(i,function(m,y){m.width||(m.width=v),p=m,d+=m.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;w(i,function(m,y){e[a][y]=e[a][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),e}function dS(r,t,e){if(r&&t){var n=r[qs(t)];return n}}function sd(r,t){var e=id(r,t),n=od(e);w(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=ad(a),u=n[qs(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function ld(r){return{seriesType:r,plan:Un(),reset:function(t){if(ud(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=Rr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=pS(a,i),d=fd(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&at(b*3),C=d&&l&&at(b*3),T=d&&at(b),D=n.master.getRect(),A=h?D.width:D.height,I,L=S.getStore(),M=0;(I=_.next())!=null;){var P=L.get(c?g:o,I),R=L.get(s,I),V=v,H=void 0;c&&(H=+P-L.get(o,I));var k=void 0,E=void 0,z=void 0,G=void 0;if(h){var Z=n.dataToPoint([P,R]);if(c){var j=n.dataToPoint([H,R]);V=j[0]}k=V,E=Z[1]+y,z=Z[0]-V,G=m,Math.abs(z)0?e:1:e))}var gS=function(r,t,e,n){for(;e>>1;r[a][1]a&&(this._approxInterval=a);var s=ia.length,l=Math.min(gS(ia,this._approxInterval,0,s),s-1);this._interval=ia[l][1],this._minLevelUnit=ia[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return ue(e)?e:+_t(e)},t.prototype.contain=function(e){return li(this.parse(e),this._extent)},t.prototype.normalize=function(e){return ui(this.parse(e),this._extent)},t.prototype.scale=function(e){return fi(e,this._extent)},t.type="time",t}(Fr),ia=[["second",Ps],["minute",Rs],["hour",gn],["quarter-day",gn*6],["half-day",gn*12],["day",Ue*1.2],["half-week",Ue*3.5],["week",Ue*7],["month",Ue*31],["quarter",Ue*95],["half-year",Ul/2],["year",Ul]];function mS(r,t,e,n){var a=_t(t),i=_t(e),o=function(d){return Xl(a,d,n)===Xl(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function yS(r,t){return r/=Ue,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function _S(r){var t=30*Ue;return r/=t,r>6?6:r>3?3:r>2?2:1}function SS(r){return r/=gn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Zu(r,t){return r/=t?Rs:Ps,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function xS(r){return Qc(r)}function bS(r,t,e){var n=new Date(r);switch(br(t)){case"year":case"month":n[Ov(e)](0);case"day":n[Nv(e)](1);case"hour":n[Bv(e)](0);case"minute":n[Vv(e)](0);case"second":n[zv(e)](0),n[Fv(e)](0)}return n.getTime()}function wS(r,t,e,n){var a=1e4,i=kv,o=0;function s(A,I,L,M,P,R,V){for(var H=new Date(I),k=I,E=H[M]();k1&&R===0&&L.unshift({value:L[0].value-k})}}for(var R=0;R=n[0]&&y<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&h>_/1.5||(u.push(g),c>_||r===i[v]))break}f=[]}}}for(var S=be(F(u,function(A){return be(A,function(I){return I.value>=n[0]&&I.value<=n[1]&&!I.notAdd})}),function(A){return A.length>0}),b=[],x=S.length-1,v=0;v0;)i*=10;var s=[_e(DS(n[0]/i)*i),_e(TS(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Sn.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=qe(e)/qe(this.base),li(e,this._extent)},t.prototype.normalize=function(e){return e=qe(e)/qe(this.base),ui(e,this._extent)},t.prototype.scale=function(e){return e=fi(e,this._extent),oa(this.base,e)},t.type="log",t}(ct),vd=js.prototype;vd.getMinorTicks=Sn.getMinorTicks;vd.getLabel=Sn.getLabel;function sa(r,t){return CS(r,pt(t))}ct.registerClass(js);var AS=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[MS[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=IS[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),IS={min:"_determinedMin",max:"_determinedMax"},MS={min:"_dataMin",max:"_dataMax"};function hd(r,t,e){var n=r.rawExtentInfo;return n||(n=new AS(r,t,e),r.rawExtentInfo=n,n)}function la(r,t){return t==null?null:_o(t)?NaN:r.parse(t)}function dd(r,t){var e=r.type,n=hd(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=id("bar",o),l=!1;if(w(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=od(s),f=LS(a,i,t,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function LS(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=dS(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;w(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/i,h=f/c-f;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function Ku(r,t){var e=t,n=dd(r,e),a=n.extent,i=e.get("splitNumber");r instanceof js&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function PS(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Ks({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new cd({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(ct.getClass(t)||Fr)}}function RS(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Gr(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):W(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):X(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(Qs(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Qs(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function kS(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof Ks?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=Gr(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;fr[1]&&(r[1]=a[1])})}var NS=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),qu=[],BS={registerPreprocessor:Xh,registerProcessor:Zh,registerPostInit:R_,registerPostUpdate:k_,registerUpdateLifecycle:Zs,registerAction:ft,registerCoordinateSystem:E_,registerLayout:O_,registerVisual:sr,registerTransform:B_,registerLoading:$h,registerMap:N_,registerImpl:h_,PRIORITY:D_,ComponentModel:ee,ComponentView:Ne,SeriesModel:ze,ChartView:ke,registerComponentModel:function(r){ee.registerClass(r)},registerComponentView:function(r){Ne.registerClass(r)},registerSeriesModel:function(r){ze.registerClass(r)},registerChartView:function(r){ke.registerClass(r)},registerSubTypeDefaulter:function(r,t){ee.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){sg(r,t)}};function St(r){if(O(r)){w(r,function(t){St(t)});return}le(qu,r)>=0||(qu.push(r),X(r)&&(r={install:r}),r.install(BS))}var Rn=se();function md(r,t){var e=F(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function VS(r){var t=r.getLabelModel().get("customValues");if(t){var e=Gr(r);return{labels:md(r,t).map(function(n){var a={value:n};return{formattedLabel:e(a),rawLabel:r.scale.getLabel(a),tickValue:n}})}}return r.type==="category"?FS(r):WS(r)}function zS(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:md(r,e)}:r.type==="category"?GS(r,t):{ticks:F(r.scale.getTicks(),function(n){return n.value})}}function FS(r){var t=r.getLabelModel(),e=yd(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function yd(r,t){var e=_d(r,"labels"),n=Js(t),a=Sd(e,n);if(a)return a;var i,o;return X(n)?i=wd(r,n):(o=n==="auto"?HS(r):n,i=bd(r,o)),xd(e,n,{labels:i,labelCategoryInterval:o})}function GS(r,t){var e=_d(r,"ticks"),n=Js(t),a=Sd(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),X(n))i=wd(r,n,!0);else if(n==="auto"){var s=yd(r,r.getLabelModel());o=s.labelCategoryInterval,i=F(s.labels,function(l){return l.tickValue})}else o=n,i=bd(r,o,!0);return xd(e,n,{ticks:i,tickCategoryInterval:o})}function WS(r){var t=r.scale.getTicks(),e=Gr(r);return{labels:F(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function _d(r,t){return Rn(r)[t]||(Rn(r)[t]=[])}function Sd(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,g=ds(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var m=h/f,y=v/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),S=Rn(r.model),b=r.getExtent(),x=S.lastAutoInterval,C=S.lastTickCount;return x!=null&&C!=null&&Math.abs(x-_)<=1&&Math.abs(C-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function YS(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function bd(r,t,e){var n=Gr(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=pd(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(e?g:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:g})}return s}function wd(r,t,e){var n=r.scale,a=Gr(r),i=[];return w(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var ju=[0,1],XS=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return qc(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Qu(n,a.count())),Ot(t,ju,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Qu(n,a.count()));var i=Ot(t,n,ju,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=zS(this,e),a=n.ticks,i=F(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return ZS(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=F(n,function(i){return F(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return VS(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return US(this)},r}();function Qu(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function ZS(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;w(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var c=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,d){return v=_e(v),d=_e(d),c?v>d:va&&(a+=rn);var v=Math.atan2(s,o);if(v<0&&(v+=rn),v>=n&&v<=a||v+rn>=n&&v+rn<=a)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(a)+r,m=e*Math.sin(a)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function Va(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,f=e-r,c=n-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,g=o[1]=t+d*c;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function Cd(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var Qe=[];function jS(r,t,e){var n=Cd(t.x,t.y,t.width,t.height,r.x,r.y,Qe);return e.set(Qe[0],Qe[1]),n}function QS(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,h=r.y,v=0;v0){t=t/180*Math.PI,et.fromArray(r[0]),ae.fromArray(r[1]),ve.fromArray(r[2]),we.sub(it,et,ae),we.sub(rt,ve,ae);var e=it.len(),n=rt.len();if(!(e<.001||n<.001)){it.scale(1/e),rt.scale(1/n);var a=it.dot(rt),i=Math.cos(t);if(i1&&we.copy(Pe,ve),Pe.toArray(r[1])}}}}function JS(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,et.fromArray(r[0]),ae.fromArray(r[1]),ve.fromArray(r[2]),we.sub(it,ae,et),we.sub(rt,ve,ae);var n=it.len(),a=rt.len();if(!(n<.001||a<.001)){it.scale(1/n),rt.scale(1/a);var i=it.dot(t),o=Math.cos(e);if(i=l)we.copy(Pe,ve);else{Pe.scaleAndAdd(rt,s/Math.tan(Math.PI/2-f));var c=ve.x!==ae.x?(Pe.x-ae.x)/(ve.x-ae.x):(Pe.y-ae.y)/(ve.y-ae.y);if(isNaN(c))return;c<0?we.copy(Pe,ae):c>1&&we.copy(Pe,ve)}Pe.toArray(r[1])}}}}function Gi(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function ex(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=Sl(n[0],n[1]),i=Sl(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=gi([],n[1],n[0],o/a),l=gi([],n[1],n[2],o/i),u=gi([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f0){_(D*T,0,o);var A=D+x;A<0&&S(-A*T,1)}else S(-x*T,1)}}function _(x,C,T){x!==0&&(u=!0);for(var D=C;D0)for(var A=0;A0;A--){var P=T[A-1]*M;_(-P,A,o)}}}function b(x){var C=x<0?-1:1;x=Math.abs(x);for(var T=Math.ceil(x/(o-1)),D=0;D0?_(T,0,D+1):_(-T,o-D-1,o),x-=T,x<=0)return}return u}function tx(r,t,e,n){return Md(r,"x","width",t,e)}function Ld(r,t,e,n){return Md(r,"y","height",t,e)}function Pd(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new Ye(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),le(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),me(n,u,e,l)}else if(n.attr(u),!Vr(n).valueAnimation){var c=ie(n.style.opacity,1);n.style.opacity=0,De(n,{style:{opacity:c}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};ua(v,u,fa),ua(v,n.states.select,fa)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};ua(d,u,fa),ua(d,n.states.emphasis,fa)}Hm(n,l,f,e,e)}if(a&&!a.ignore&&!a.invisible){var i=ax(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),me(a,{shape:p},e)):(a.setShape(p),a.style.strokePercent=0,De(a,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}(),Hi=se();function X1(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Hi(e).labelManager;a||(a=Hi(e).labelManager=new ix),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Hi(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var ox=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.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"},t}(ee),Xo=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Re).models[0]},t.type="cartesian2dAxis",t}(ee);xt(Xo,NS);var Rd={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)"]}}},sx=q({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Rd),el=q({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}}},Rd),lx=q({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},el),ux=re({logBase:10},el);const fx={category:sx,value:el,time:lx,log:ux};var cx={value:1,category:1,time:1,log:1};function tf(r,t,e,n){w(cx,function(a,i){var o=q(q({},fx[i],!0),n,!0),s=function(l){B(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=An(this),v=h?ni(f):{},d=c.getTheme();q(f,d.get(i+"Axis")),q(f,this.getDefaultOption()),f.type=rf(f),h&&Lr(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Uo.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",rf)}function rf(r){return r.type||(r.data?"category":"value")}var vx=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return F(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),be(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),Zo=["x","y"];function nf(r){return r.type==="interval"||r.type==="time"}var hx=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Zo,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!nf(e)||!nf(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-a[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=hs([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new Ye(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return tr(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return tr(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,o=Math.min(a[0],a[1])-e,s=Math.max(n[0],n[1])-i+e,l=Math.max(a[0],a[1])-o+e;return new Ye(i,o,s,l)},t}(vx),dx=function(r){B(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(XS);function $o(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Dr(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function af(r){return r.get("coordinateSystem")==="cartesian2d"}function of(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Re).models[0];t[n]=i}),t}var Ui=Math.log;function px(r,t,e){var n=Fr.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=dd(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=Ui(r.base);u=[Ui(u[0])/h,Ui(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(r);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],g=u[1];if(f&&c)d=(g-p)/o;else if(f)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=Fi(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=Fi(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=_e(g-y),p<0&&u[0]>=0?(p=0,g=_e(y)):g>0&&u[1]<=0&&(g=0,p=-_e(y))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d)}var gx=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Zo,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=Fe(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;Yo(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Ku(p,d),Yo(p)&&(s=v))}f.length&&(s||(s=f.pop(),Ku(s.scale,s.model)),w(f,function(g){px(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};w(n.x,function(o){sf(n,"y",o,i)}),w(n.y,function(o){sf(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Gt(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=kS(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),mx(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}Y(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):Ia(a-Nt)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),uf={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(tr(s,s,o),tr(l,l,o));var f=N({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new er({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Tn(c.shape,c.style.lineWidth),c.anid="line",e.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);W(h)&&(h=[h,h]),(W(v)||ue(v))&&(v=[v,v]);var d=Hs(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];w([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var _=Wt(h[y],-p/2,-g/2,p,g,f.stroke,!0),S=m.r+m.offset,b=u?l:s;_.attr({rotation:m.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var a=Sx(e,n,t,r),i=bx(e,n,t,r);if(_x(t,i,a),xx(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Id(F(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Pd(o)}},axisName:function(r,t,e,n){var a=Dr(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,cf(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Nt/180);var d;cf(i)?h=Vt.innerTextLayout(r.rotation,v??r.rotation,o):(h=yx(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Dr(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Ce({x:c[0],y:c[1],rotation:h.rotation,silent:Vt.isLabelSilent(t),style:Ft(s,{text:a,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Ka({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=Vt.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,$(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function yx(r,t,e,n){var a=jc(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ia(a-Nt/2)?(o=l?"bottom":"top",i="center"):Ia(a-Nt*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aNt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function _x(r,t,e){if(!pd(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],c=e[e.length-1],h=e[e.length-2];n===!1?(We(i),We(u)):ff(i,o)&&(n?(We(o),We(f)):(We(i),We(u))),a===!1?(We(s),We(c)):ff(l,s)&&(a?(We(l),We(h)):(We(s),We(c)))}}function We(r){r&&(r.ignore=!0)}function ff(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Hc([]);return $c(a,a,-r.rotation),e.applyTransform(go([],a,r.getLocalTransform())),n.applyTransform(go([],a,t.getLocalTransform())),e.intersect(n)}}function cf(r){return r==="middle"||r==="center"}function kd(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l=0||r===t}function Ix(r){var t=tl(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Ko(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=tl(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=jt(t).pointerEl=new As[i.type](df(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=jt(t).labelEl=new Ce(df(e.label));t.add(i),gf(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=jt(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=jt(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),gf(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=$a(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){fg(u.event)},onmousedown:Zi(this._onHandleDragMove,this,0,0),drift:Zi(this._onHandleDragMove,this),ondragend:Zi(this._onHandleDragEnd,this)}),n.add(a)),mf(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");O(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,bh(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){pf(this._axisPointerModel,!e&&this._moveAnimation,this._handle,$i(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform($i(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr($i(a)),jt(n).lastProp=null,this._doDispatchAxisPointer()}},r.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}]})}},r.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"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),No(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function pf(r,t,e,n){Vd(jt(e).lastProp,n)||(jt(e).lastProp=n,t?me(e,n,r):(e.stopAnimation(),e.attr(n)))}function Vd(r,t){if(Y(r)&&Y(t)){var e=!0;return w(t,function(n,a){e=e&&Vd(r[a],n)}),!!e}else return r===t}function gf(r,t){r[t.get(["label","show"])?"show":"hide"]()}function $i(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function mf(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}function Vx(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function zx(r,t,e,n,a){var i=e.get("value"),o=zd(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ri(s.get("padding")||0),u=s.getFont(),f=ds(o,u),c=a.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),Fx(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Ft(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Fx(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function zd(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Qs(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),W(o)?i=o.replace("{value}",i):X(o)&&(i=o(s))}return i}function Fd(r,t,e){var n=vg();return $c(n,n,e.rotation),cg(n,n,e.position),Ds([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function Gx(r,t,e,n,a,i){var o=Vt.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),zx(t,n,a,i,{position:Fd(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Wx(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function Hx(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var Ux=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=yf(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=Vx(i),v=Yx[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=$o(l.model,a);Gx(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=$o(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Fd(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=yf(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(Bx);function yf(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var Yx={line:function(r,t,e){var n=Wx([t,e[0]],[t,e[1]],_f(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:Hx([t-n/2,e[0]],[n,a],_f(r))}}};function _f(r){return r.dim==="x"?0:1}var Xx=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.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}},t}(ee),gt=se(),Zx=w;function Gd(r,t,e){if(!fe.node){var n=t.getZr();gt(n).records||(gt(n).records={}),$x(n,t);var a=gt(n).records[r]||(gt(n).records[r]={});a.handler=e}}function $x(r,t){if(gt(r).initialized)return;gt(r).initialized=!0,e("click",J(Sf,"click")),e("mousemove",J(Sf,"mousemove")),e("globalout",qx);function e(n,a){r.on(n,function(i){var o=jx(t);Zx(gt(r).records,function(s){s&&a(s,i,o.dispatchAction)}),Kx(o.pendings,t)})}}function Kx(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function qx(r,t,e){r.handler("leave",null,e)}function Sf(r,t,e,n){t.handler(r,e,n)}function jx(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function jo(r,t){if(!fe.node){var e=t.getZr(),n=(gt(e).records||{})[r];n&&(gt(e).records[r]=null)}}var Qx=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Gd("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){jo("axisPointer",n)},t.prototype.dispose=function(e,n){jo("axisPointer",n)},t.type="axisPointer",t}(Ne);function Wd(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=rr(i,r);if(o==null||o<0||O(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(F(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var xf=se();function Jx(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||oe(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ca(a)&&(a=Wd({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Ca(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||Ca(a),h={},v={},d={list:[],map:{}},p={showPointer:J(tb,v),showTooltip:J(rb,d)};w(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);w(s.coordSysAxesInfo[y],function(S,b){var x=S.axis,C=ob(u,S);if(!c&&_&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&bf(S,T,p,!1,h)}})});var g={};return w(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&w(_.axesInfo,function(S,b){var x=v[b];if(S!==m&&x){var C=x.value;_.mapper&&(C=m.axis.scale.parse(_.mapper(C,wf(S),wf(m)))),g[m.key]=C}})}),w(g,function(m,y){bf(f[y],m,p,!0,h)}),nb(v,f,h),ab(d,a,r,o),ib(f,o,e),h}}function bf(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=eb(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&N(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function eb(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,a=c,i.length=0),w(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function tb(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function rb(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=kn(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function nb(r,t,e){var n=e.axesInfo=[];w(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function ab(r,t,e,n){if(Ca(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function ib(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=xf(n)[a]||{},o=xf(n)[a]={};w(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&w(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];w(i,function(u,f){!o[f]&&l.push(u)}),w(o,function(u,f){!i[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function ob(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function wf(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Ca(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Hd(r){Ed.registerAxisPointerClass("CartesianAxisPointer",Ux),r.registerComponentModel(Xx),r.registerComponentView(Qx),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!O(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=wx(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Jx)}function Z1(r){St(Bd),St(Hd)}var Cf="\0_ec_interaction_mutex";function sb(r,t,e){var n=Ud(r);n[t]=e}function lb(r,t,e){var n=Ud(r),a=n[t];a===e&&(n[t]=null)}function Ud(r){return r[Cf]||(r[Cf]={})}ft({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},yt);var ub={axisPointer:1,tooltip:1,brush:1};function fb(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!ub.hasOwnProperty(n.mainType)&&a&&a.model!==e}function Yd(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=pr(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=pr(s,[0,o]),a=i=pr(s,[a,i]),n=0}t[0]=pr(t[0],e),t[1]=pr(t[1],e);var l=Ki(t,n);t[n]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=pr(t[n],f);var c;return c=Ki(t,n),a!=null&&(c.sign!==l.sign||c.spani&&(t[1-n]=t[n]+c.sign*i),t}function Ki(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function pr(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var ar=!0,En=Math.min,kr=Math.max,cb=Math.pow,vb=1e4,hb=6,db=6,Tf="globalPan",pb={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},gb={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Df={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},mb=0,yb=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new ge,n._uid="brushController_"+mb++,w(Tb,function(a,i){this._handlers[i]=oe(a,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||sb(n,Tf,this._uid),w(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=q(K(Df),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;lb(e,Tf,this._uid),w(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};w(e,function(a){n[a.panelId]=K(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=F(e,function(h){return q(K(Df),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Pn(a,e,u,l).add(f).update(f).remove(c).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function f(h,v){var d=e[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):Zd(o,Xd(o,d));rl(o,p)}}function c(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),Qo(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(zn);function Xd(r,t){var e=ci[t.brushType].createCover(r,t);return e.__brushOption=t,Kd(e,t),r.group.add(e),e}function Zd(r,t){var e=nl(t);return e.endCreating&&(e.endCreating(r,t),Kd(t,t.__brushOption)),t}function $d(r,t){var e=t.__brushOption;nl(t).updateCoverShape(r,t,e.range,e)}function Kd(r,t){var e=t.z;e==null&&(e=vb),r.traverse(function(n){n.z=e,n.z2=e})}function rl(r,t){nl(t).updateCommon(r,t),$d(r,t)}function nl(r){return ci[r.__brushOption.brushType]}function al(r,t,e){var n=r._panels;if(!n)return ar;var a,i=r._transform;return w(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function qd(r,t){var e=r._panels;if(!e)return ar;var n=t.__brushOption.panelId;return n!=null?e[n]:ar}function Qo(r){var t=r._covers,e=t.length;return w(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function ir(r,t){var e=F(r._covers,function(n){var a=n.__brushOption,i=K(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function _b(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=cb(a*a+i*i,.5);return o>hb}function jd(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function Qd(r,t,e,n){var a=new ge;return a.add(new he({name:"main",style:il(e),silent:!0,draggable:!0,cursor:"move",drift:J(Af,r,t,a,["n","s","w","e"]),ondragend:J(ir,t,{isEnd:!0})})),w(n,function(i){a.add(new he({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:J(Af,r,t,a,i),ondragend:J(ir,t,{isEnd:!0})}))}),a}function Jd(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=kr(a,db),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,f=e[0][1],c=e[1][1],h=f-i+a/2,v=c-i+a/2,d=f-o,p=c-s,g=d+a,m=p+a;dt(r,t,"main",o,s,d,p),n.transformable&&(dt(r,t,"w",l,u,i,m),dt(r,t,"e",h,u,i,m),dt(r,t,"n",l,u,g,i),dt(r,t,"s",l,v,g,i),dt(r,t,"nw",l,u,i,i),dt(r,t,"ne",h,u,i,i),dt(r,t,"sw",l,v,i,i),dt(r,t,"se",h,v,i,i))}function Jo(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(il(e)),a.attr({silent:!n,cursor:n?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?es(r,i[0]):xb(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?gb[s]+"-resize":null})})}function dt(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(wb(ol(r,t,[[n,a],[n+i,a+o]])))}function il(r){return re({strokeNoScale:!0},r.brushStyle)}function ep(r,t,e,n){var a=[En(r,e),En(t,n)],i=[kr(r,e),kr(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Sb(r){return Ts(r.group)}function es(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=wv(e[t],Sb(r));return n[a]}function xb(r,t){var e=[es(r,t[0]),es(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Af(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=tp(t,a,i);w(n,function(u){var f=pb[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(ep(s[0][0],s[1][0],s[0][1],s[1][1])),rl(t,e),ir(t,{isEnd:!1})}function bb(r,t,e,n){var a=t.__brushOption.range,i=tp(r,e,n);w(a,function(o){o[0]+=i[0],o[1]+=i[1]}),rl(r,t),ir(r,{isEnd:!1})}function tp(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function ol(r,t,e){var n=qd(r,t);return n&&n!==ar?n.clipPath(e,r._transform):K(e)}function wb(r){var t=En(r[0][0],r[1][0]),e=En(r[0][1],r[1][1]),n=kr(r[0][0],r[1][0]),a=kr(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function Cb(r,t,e){if(!(!r._brushType||Db(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=al(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var ci={lineX:Lf(0),lineY:Lf(1),rect:{createCover:function(r,t){function e(n){return n}return Qd({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=jd(r);return ep(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){Jd(r,t,e,n)},updateCommon:Jo,contain:rs},polygon:{createCover:function(r,t){var e=new ge;return e.add(new Bn({name:"main",style:il(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new cs({name:"main",draggable:!0,drift:J(bb,r,t),ondragend:J(ir,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:ol(r,t,e)})},updateCommon:Jo,contain:rs}};function Lf(r){return{createCover:function(t,e){return Qd({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=jd(t),n=En(e[0][r],e[1][r]),a=kr(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=qd(t,e);if(o!==ar&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),Jd(t,e,l,a)},updateCommon:Jo,contain:rs}}function Ab(r){return r=sl(r),function(t){return Tv(t,r)}}function Ib(r,t){return r=sl(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function Mb(r,t,e){var n=sl(r);return function(a,i){return n.contain(i[0],i[1])&&!fb(a,t,e)}}function sl(r){return Ye.create(r)}var Pf=["x","y","radius","angle","single"],Lb=["cartesian2d","polar","singleAxis"];function Pb(r){var t=r.get("coordinateSystem");return le(Lb,t)>=0}function _r(r){return r+"Axis"}function Rb(r,t){var e=U(),n=[],a=U();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return n}var qi=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),kb=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=Rf(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=Rf(e);q(this.option,e,!0),q(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=U(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return w(Pf,function(a){var i=this.getReferringComponents(_r(a),$g);if(i.specified){n=!0;var o=new qi;w(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new qi;if(h.add(c.componentIndex),e.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",Re).models[0];v&&w(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Re).models[0]&&h.add(d.componentIndex)})}}}i&&w(Pf,function(u){if(i){var f=a.findComponents({mainType:_r(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new qi;c.add(f[0].componentIndex),e.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(_r(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){w(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(_r(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;w(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else yr(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});yr(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;yr(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Ot(n[0]+o,n,[0,100],!0):i!=null&&(o=Ot(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=qc(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function Vb(r,t,e){var n=[1/0,-1/0];yr(e,function(o){OS(n,o.getData(),t)});var a=r.getAxisModel(),i=hd(a.axis.scale,a,n).calculate();return[i.min,i.max]}var zb={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(_r(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Bb(a,i,s,r),e.push(o.__dzAxisProxy))});var n=U();return w(e,function(a){w(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function Fb(r){r.registerAction("dataZoom",function(t,e){var n=Rb(e,t);w(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Ef=!1;function Gb(r){Ef||(Ef=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,zb),Fb(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Wb(r){r.registerComponentModel(Eb),r.registerComponentView(Nb),Gb(r)}var Je=function(){function r(){}return r}(),np={};function nn(r,t){np[r]=t}function ap(r){return np[r]}var Hb=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;w(this.option.feature,function(n,a){var i=ap(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),q(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ee);function Ub(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=Gt(n,i,a);Cr(t.get("orient"),r,t.get("itemGap"),o.width,o.height),fy(r,n,i,a)}function ip(r,t){var e=ri(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new he({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var Yb=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),c=[];w(u,function(d,p){c.push(p)}),new Pn(this._featureNames||[],c).add(h).update(h).remove(J(h,null)).execute(),this._featureNames=c;function h(d,p){var g=c[d],m=c[p],y=u[g],_=new ce(y,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(y.title=i.newTitle),g&&!m){if(Xb(g))S={onclick:_.option.onclick,featureName:g};else{var b=ap(g);if(!b)return;S=new b}f[g]=S}else if(S=f[m],!S)return;S.uid=Hn("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof Je;if(!g&&m){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,g),_.setIconStatus=function(C,T){var D=this.option,A=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[C]=T,A[C]&&(T==="emphasis"?Ar:Ir)(A[C])},S instanceof Je&&S.render&&S.render(_,n,a,i)}function v(d,p,g){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof Je&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;W(_)?(b={},b[g]=_):b=_,W(S)?(x={},x[g]=S):x=S;var C=d.iconPaths={};w(b,function(T,D){var A=$a(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var I=A.ensureState("emphasis");I.style=y.getItemStyle();var L=new Ce({style:{text:x[D],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:Iv({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});A.setTextContent(L),Ka({el:A,componentModel:e,itemName:D,formatterParamsExtra:{title:x[D]}}),A.__title=x[D],A.on("mouseover",function(){var M=y.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:y.get("textFill")||M.fill||M.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),A.setTextConfig({position:y.get("textPosition")||P}),L.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",D])!=="emphasis"&&a.leaveEmphasis(this),L.hide()}),(d.get(["iconStatus",D])==="emphasis"?Ar:Ir)(A),o.add(A),A.on("click",oe(p.onclick,p,n,a,D)),C[D]=A})}Ub(o,e,a),o.add(ip(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!X(_)&&p){var S=_.style||(_.style={}),b=ds(p,Ce.makeFont(S)),x=d.x+o.x,C=d.y+o.y+s,T=!1;C+b.height>a.getHeight()&&(m.position="top",T=!0);var D=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(m.position=["100%",D],S.align="right"):x-b.width/2<0&&(m.position=[0,D],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){w(this._features,function(o){o instanceof Je&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){w(this._features,function(a){a instanceof Je&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){w(this._features,function(a){a instanceof Je&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(Ne);function Xb(r){return r.indexOf("my")===0}var Zb=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=fe.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,m=new Uint8Array(g);g--;)m[g]=d.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),C='',T=window.open();T.document.write(C),T.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Je),Of="__ec_magicType_stack__",$b=[["line","bar"],["stack"]],Kb=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return w(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(Nf[a]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,d=Nf[a](h,v,c,i);d&&(re(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",_=c.getReferringComponents(y,Re).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var b=0;b<=S;b++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=a==="bar"}}};w($b,function(c){le(c,a)>=0&&w(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=q({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Je),Nf={line:function(r,t,e,n){if(r==="bar")return q({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return q({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===Of;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),q({id:t,stack:a?"":Of},n.get(["option","stack"])||{},!0)}};ft({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var vi=new Array(60).join("-"),Er=" ";function qb(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function jb(r){var t=[];return w(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(F(e.series,function(v){return v.name})),l=[a.model.getCategories()];w(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Er)],f=0;f=0)return!0}var ns=new RegExp("["+Er+"]+","g");function tw(r){for(var t=r.split(/\n+/g),e=Fa(t.shift()).split(ns),n=[],a=F(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function sw(r){var t=ll(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return op(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function lw(r){sp(r).snapshots=null}function uw(r){return ll(r).length}function ll(r){var t=sp(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var fw=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){lw(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Je);ft({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var cw=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],lp=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=Bf(e,t);w(vw,function(o,s){(!n||!n.include||le(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=ji[n.brushType](0,i,a);n.__rangeOffset={offset:Gf[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){w(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&w(i.coordSyses,function(o){var s=ji[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){w(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=ji[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Gf[n.brushType](i.values,o.offset,hw(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return F(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:Ab(a),isTargetByCursor:Mb(a,t,n.coordSysModel),getLinearBrushOtherExtent:Ib(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&le(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=Bf(e,t),i=0;ir[1]&&r.reverse(),r}function Bf(r,t){return hn(r,t,{includeMainTypes:cw})}var vw={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=U(),o={},s={};!e&&!n&&!a||(w(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),w(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),w(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];w(u.getCartesians(),function(c,h){(le(e,c.getAxis("x").model)>=0||le(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:zf.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){w(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:zf.geo})})}},Vf=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],zf={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ts(r)),t}},ji={lineX:J(Ff,0),lineY:J(Ff,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[as([a[0],i[0]]),as([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=F(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Ff(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=as(F([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Gf={lineX:J(Wf,0),lineY:J(Wf,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return F(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function Wf(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function hw(r,t){var e=Hf(r),n=Hf(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function Hf(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var is=w,dw=Ug("toolbox-dataZoom_"),pw=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new yb(a.getZr()),this._brushController.on("brush",oe(this._onBrush,this)).mount()),yw(e,n,this,i,a),mw(e,n)},t.prototype.onclick=function(e,n,a){gw[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new lp(ul(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[h],c,f)}}),ow(i,a),this._dispatchZoomAction(a);function s(u,f,c){var h=f.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=Yd(0,c.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];is(e,function(a,i){n.push(K(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Je),gw={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(sw(this.ecModel))}};function ul(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function mw(r,t){r.setIconStatus("back",uw(t)>1?"emphasis":"normal")}function yw(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new lp(ul(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}yy("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=ul(n),o=hn(r,i);is(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),is(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:dw+u+c};h[f]=c,a.push(h)}return a});function $1(r){r.registerComponentModel(Hb),r.registerComponentView(Yb),nn("saveAsImage",Zb),nn("magicType",Kb),nn("dataView",aw),nn("dataZoom",pw),nn("restore",fw),St(Wb)}var _w=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.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}},t}(ee);function up(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function fp(r){if(fe.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function Dw(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=fe.transformSupported?","+fl+n:",left"+n+",top"+n),bw+":"+a}function Uf(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!fe.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=fe.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+fl+":"+o+";":[["top",0],["left",0],[cp,o]]}function Aw(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),w(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function Iw(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),c=Sh(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(Dw(a,e)),i&&n.push("background-color:"+i),w(["width","color","radius"],function(v){var d="border-"+v,p=Wv(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(Aw(f)),c!=null&&n.push("padding:"+ri(c).join("px ")+"px"),n.join(";")+";"}function Yf(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&dg(r,o,e,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Mw=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,fe.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,o=i&&(W(i)?document.querySelector(i):So(i)?i:X(i)&&i(t.getDom()));Yf(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();hg(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=xw(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=ww+Iw(t,!this._firstShow,this._longHide)+Uf(i[0],i[1],!0)+("border-color:"+nr(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(W(i)&&n.get("trigger")==="item"&&!up(n)&&(s=Tw(n,a,i)),W(t))o.innerHTML=t+s;else if(t){o.innerHTML="",O(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||fe.node||!a.getDom())){var o=$f(i,a);this._ticket="";var s=i.dataByCoordSys,l=Nw(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=Pw;f.x=i.x,f.y=i.y,f.update(),$(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var c=Wd(i,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide($f(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=an([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){var s=$(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;fn(a,function(f){if($(f).dataIndex!=null)return l=f,!0;if($(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=oe(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=an([n.tooltipOption],i),l=this._renderMode,u=[],f=Mn("section",{blocks:[],noHeader:!0}),c=[],h=new Ii;w(e,function(y){w(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=zd(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),C=Mn("section",{header:x,noHeader:!Vn(x),sortBlocks:!0,blocks:[]});f.blocks.push(C),w(_.seriesDataIndices,function(T){var D=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,I=D.getDataParams(A);if(!(I.dataIndex<0)){I.axisDim=_.axisDim,I.axisIndex=_.axisIndex,I.axisType=_.axisType,I.axisId=_.axisId,I.axisValue=Qs(S.axis,{value:b}),I.axisValueLabel=x,I.marker=h.makeTooltipMarker("item",nr(I.color),l);var L=hu(D.formatTooltip(A,!0,null)),M=L.frag;if(M){var P=an([D],i).get("valueFormatter");C.blocks.push(P?N({valueFormatter:P},M):M)}L.text&&c.push(L.text),u.push(I)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=_u(f,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?` - -`:"
",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=$(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=e.positionDefault,p=an([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new Ii;m.marker=y.makeTooltipMarker("item",nr(m.color),v);var _=hu(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,C=x?_u(b?N({valueFormatter:b},x):x,y,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,C,m,T,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",o=$(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(W(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=K(l),l.content=Be(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=e.positionDefault,d=an(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",m=new Ii;this._showOrMove(d,function(){var y=K(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,e.offsetX,e.offsetY,e.position,n,m)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(W(h)){var g=e.ecModel.get("useUTC"),m=O(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=ja(m.axisValue,v,g)),v=Hv(v,a,!0)}else if(X(h)){var _=oe(function(S,b){S===this._ticket&&(c.setContent(b,f,e,p,l),this._updatePosition(e,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||O(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!O(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var c=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),X(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),O(n))a=te(n[0],u),i=te(n[1],f);else if(Y(n)){var p=n;p.width=c[0],p.height=c[1];var g=Gt(p,{width:u,height:f});a=g.x,i=g.y,h=null,v=null}else if(W(n)&&l){var m=Ow(n,d,c,e.get("borderWidth"));a=m[0],i=m[1]}else{var m=kw(a,i,o,u,f,h?null:20,v?null:20);a=m[0],i=m[1]}if(h&&(a-=Kf(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=Kf(v)?c[1]/2:v==="bottom"?c[1]:0),up(e)){var m=Ew(a,i,o,u,f);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&w(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&w(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&w(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){fe.node||!n.getDom()||(No(this,"_updatePosition"),this._tooltipContent.dispose(),jo("itemTooltip",n))},t.type="tooltip",t}(Ne);function an(r,t,e){var n=t.ecModel,a;e?(a=new ce(e,n,n),a=new ce(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof ce&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(a=new ce(o,a,n)))}return a}function $f(r,t){return r.dispatchAction||oe(t.dispatchAction,t)}function kw(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function Ew(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function Ow(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function Kf(r){return r==="center"||r==="middle"}function Nw(r,t,e){var n=ms(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Gn(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=$(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function K1(r){St(Hd),r.registerComponentModel(_w),r.registerComponentView(Rw),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},yt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},yt)}var Bw=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.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"}},t}(ee),Vw=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ie(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Ce({style:Ft(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new Ce({style:Ft(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){$l(d,"_"+e.get("target"))}),p&&v.on("click",function(){$l(p,"_"+e.get("subtarget"))}),$(f).eventData=$(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),h&&i.add(v);var m=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Gt(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),m=i.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var C=new he({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(Ne);function q1(r){r.registerComponentModel(Bw),r.registerComponentView(Vw)}function hi(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Pr(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(t[i])}return n.join(" ")}var cl=function(r){B(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=Wt(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=zw,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ar(this.childAt(0))},t.prototype.downplay=function(){Ir(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):me(h,v,s,n),Za(h)}if(this._updateCommon(e,n,l,a,i),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,De(h,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,h,v,d,p,g,m;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Br(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Hs(e.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var x=e.getItemVisual(n,"style"),C=x.fill;if(s instanceof Or){var T=s.style;s.useStyle(N({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(N({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(n,"liftZ"),A=this._z2;D!=null?A==null&&(this._z2=s.z2,s.z2+=D):A!=null&&(s.z2=A,this._z2=null);var I=o&&o.useNameLabel;Nr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:C,defaultOpacity:x.opacity});function L(R){return I?e.getName(R):hi(e,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;M.scaleX=this._sizeX*P,M.scaleY=this._sizeY*P,this.setSymbolScale(1),Mr(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=$(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Cn(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Cn(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return u_(e.getItemVisual(n,"symbolSize"))},t}(ge);function zw(r,t){this.parent.drift(r,t)}function Qi(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function qf(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function jf(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Br(t),cursorStyle:t.get("cursor")}}var dp=function(){function r(t){this.group=new ge,this._SymbolCtor=t||cl}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=qf(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=jf(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||n.removeAll(),t.diff(i).add(function(c){var h=f(c);if(Qi(t,h,c,e)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!Qi(t,d,c,e)){n.remove(v);return}var p=t.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):me(v,m,a)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=jf(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=qf(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.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}},t}(ee),gr=J,ss=w,ca=ge,pp=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new ca),this.group.add(this._selectorGroup=new ca),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var f=e.getBoxLayoutParams(),c={width:a.getWidth(),height:a.getHeight()},h=e.get("padding"),v=Gt(f,c,h),d=this.layoutInner(e,o,v,i,l,u),p=Gt(re({width:d.width,height:d.height},f),c,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=ip(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),f=U(),c=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),ss(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` -`)){var g=new ca;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(p)[0];if(!f.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),b=y.getVisual("style"),x=this._createItem(m,p,d,v,n,e,_,b,S,c,i);x.on("click",gr(Qf,p,null,i,h)).on("mouseover",gr(ls,m.name,null,i,h)).on("mouseout",gr(us,m.name,null,i,h)),a.ssr&&x.eachChild(function(C){var T=$(C);T.seriesIndex=m.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(p,!0)}else a.eachRawSeries(function(C){if(!f.get(p)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(p))return;var D=T.indexOfName(p),A=T.getItemVisual(D,"style"),I=T.getItemVisual(D,"legendIcon"),L=pg(A.fill);L&&L[3]===0&&(L[3]=.2,A=N(N({},A),{fill:gg(L,"rgba")}));var M=this._createItem(C,p,d,v,n,e,{},A,I,c,i);M.on("click",gr(Qf,null,p,i,h)).on("mouseover",gr(ls,null,p,i,h)).on("mouseout",gr(us,null,p,i,h)),a.ssr&&M.eachChild(function(P){var R=$(P);R.seriesIndex=C.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();ss(e,function(u){var f=u.type,c=new Ce({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Nr(c,{normal:h,emphasis:v},{defaultText:u.title}),Co(c)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,f,c,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=Gw(f,i,l,u,v,g,h),b=new ca,x=i.getModel("textStyle");if(X(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var C=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;b.add(Ww({itemWidth:d,itemHeight:p,icon:f,iconRotate:C,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,D=s,A=o.get("formatter"),I=n;W(A)&&A?I=A.replace("{name}",n??""):X(A)&&(I=A(n));var L=g?x.getTextColor():i.get("inactiveColor");b.add(new Ce({style:Ft(x,{text:I,x:T,y:p/2,fill:L,align:D,verticalAlign:"middle"},{inheritColor:L})}));var M=new he({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Ka({el:M,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(M),b.eachChild(function(R){R.silent=!0}),M.silent=!c,this.getContentGroup().add(b),Co(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Cr(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Cr("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:c[p]+=h[g]+d,v[1-p]+=f[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+h[g],_[m]=Math.max(f[m],h[m]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ne);function Gw(r,t,e,n,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),ss(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:zo(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Ww(r){var t=r.icon||"roundRect",e=Wt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function Qf(r,t,e,n){us(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),ls(r,t,e,n)}function gp(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[o],g=[-v.x,-v.y];n||(g[i]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=ie(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?y[i]+=a[o]-d[o]:m[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,f.setPosition(g),c.setPosition(m),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-i]),c.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new he({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&me(f,{x:C.contentPosition[0],y:C.contentPosition[1]},p?e:null),this._updatePageInfoView(e,C),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",W(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Ji[o],l=eo[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=h;++g)_=S(f[g]),(!_&&y.e>m.s+i||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(y,_.s))&&m.i=C&&x.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t}(pp);function Zw(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function $w(r){St(mp),r.registerComponentModel(Yw),r.registerComponentView(Xw),Zw(r)}function j1(r){St(mp),St($w)}var Kw={label:{enabled:!0},decal:{show:!1}},tc=se(),qw={};function jw(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=K(Kw);q(n.label,r.getLocaleModel().get("aria"),!1),q(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=U();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),tc(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(X(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=ql(h.ecModel,h.name,qw,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,y))}else{var d=h.getRawData(),p={},g=tc(h).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var m=d.count();d.each(function(b){var x=p[b],C=d.getName(b)||b+"",T=ql(h.ecModel,C,g,m),D=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(D,T))})}function S(b,x){var C=b?N(N({},x),b):x;return C.dirty=!0,C}})}}function i(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=re(c.option,f),!!c.get("enabled")){if(c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(h,d),g;if(!(h<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),r.eachSeries(function(T,D){if(D1?c.get(["series","multiple",L]):c.get(["series","single",L]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var M=T.getData();if(M.count()>v){var P=c.get(["data","partialData"]);A+=o(P,{displayCnt:v})}else A+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),V=c.get(["data","separator","end"]),H=[],k=0;k":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Jw=function(){function r(t){var e=this._condVal=W(t)?new RegExp(t):mg(t)?t:null;if(e==null){var n="";Q(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return W(e)?this._condVal.test(t):ue(e)?this._condVal.test(t+""):!1},r}(),eC=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),tC=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(ze);function _p(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=dC(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=F(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Rr(t,c[0])&&(h=!0,c[0]=v),Rr(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function dC(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:ue(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function Sp(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function pC(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function gC(r,t,e,n,a,i,o,s){for(var l=pC(r,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],g=_p(a,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||p<0)break;if(Jt(m,y)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](m,y),c=m,h=y;else{var _=m-u,S=y-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],C=t[b*2+1];x===m&&C===y&&g=n||Jt(x,C))v=m,d=y;else{A=x-u,I=C-f;var P=m-u,R=x-m,V=y-f,H=C-y,k=void 0,E=void 0;if(s==="x"){k=Math.abs(P),E=Math.abs(R);var z=A>0?1:-1;v=m-z*k*o,d=y,L=m+z*E*o,M=y}else if(s==="y"){k=Math.abs(V),E=Math.abs(H);var G=I>0?1:-1;v=m,d=y-G*k*o,L=m,M=y+G*E*o}else k=Math.sqrt(P*P+V*V),E=Math.sqrt(R*R+H*H),D=E/(E+k),v=m-A*o*(1-D),d=y-I*o*(1-D),L=m+A*o*D,M=y+I*o*D,L=Lt(L,Pt(x,m)),M=Lt(M,Pt(C,y)),L=Pt(L,Lt(x,m)),M=Pt(M,Lt(C,y)),A=L-m,I=M-y,v=m-A*k/E,d=y-I*k/E,v=Lt(v,Pt(u,m)),d=Lt(d,Pt(f,y)),v=Pt(v,Lt(u,m)),d=Pt(d,Lt(f,y)),A=m-v,I=y-d,L=m+A*E/k,M=y+I*E/k}r.bezierCurveTo(c,h,v,d,m,y),c=L,h=M}else r.lineTo(m,y)}u=m,f=y,p+=i}return g}var xp=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),mC=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new xp},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Jt(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[c++],d=i[c++],p=i[c++],g=i[c++],m=i[c++],y=i[c++];var b=u?bl(s,v,p,m,e,f):bl(l,d,g,y,e,f);if(b>0)for(var x=0;x=0){var S=u?wl(l,d,g,y,C):wl(s,v,p,m,C);return u?[e,S]:[S,e]}}s=m,l=y;break}}},t}(Se),yC=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(xp),_C=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new yC},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Jt(a[s*2-2],a[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function bC(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=F(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=xC(u,a==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,m=g-p;if(m<.001)return"transparent";w(h,function(_){_.offset=(_.coord-p)/m}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var y=new Yc(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=g,y}}}function wC(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&CC(i,t))){var o=t.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function CC(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function TC(r,t){return isNaN(r)||isNaN(t)}function DC(r){for(var t=r.length/2;t>0&&TC(r[t*2-2],r[t*2-1]);t--);return t-1}function lc(r,t){return[r[t*2],r[t*2+1]]}function AC(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function Cp(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var z=p.getState("emphasis").style;z.lineWidth=+p.style.lineWidth+1}$(p).seriesIndex=e.seriesIndex,Mr(p,H,k,E);var G=sc(e.get("smooth")),Z=e.get("smoothMonotone");if(p.setShape({smooth:G,smoothMonotone:Z,connectNulls:T}),g){var j=l.getCalculationInfo("stackedOnSeries"),ne=0;g.useStyle(re(f.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),j&&(ne=sc(j.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:ne,smoothMonotone:Z,connectNulls:T}),wn(g,e,"areaStyle"),$(g).seriesIndex=e.seriesIndex,Mr(g,H,k,E)}var xe=function(ye){i._changePolyState(ye)};l.eachItemGraphicEl(function(ye){ye&&(ye.onHoverStateChange=xe)}),this._polyline.onHoverStateChange=xe,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=c,this._step=I,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,n){$(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new cl(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ke.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ke.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Ll(this._polyline,e),n&&Ll(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new mC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new _C({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");X(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=X(c)?c(null):c;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(g);i?(m=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(m=S.r0,y=S.r,_=b[0])}else{var x=a;i?(m=x.x,y=x.x+x.width,_=v.x):(m=x.y+x.height,y=x.y,_=v.y)}var C=y===m?0:(_-m)/(y-m);l&&(C=1-C);var T=X(c)?c(d):f*C+h,D=p.getSymbolPath(),A=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(Cp(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ce({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=DC(l);f>=0&&(Nr(s,Br(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?hp(o,v):hi(o,c)},enableTextSetter:!0},IC(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?p:0)*(y?-1:1),x=(m?0:-p)*(y?-1:1),C=m?"x":"y",T=AC(c,S,C),D=T.range,A=D[1]-D[0],I=void 0;if(A>=1){if(A>1&&!v){var L=lc(c,D[0]);u.attr({x:L[0]+b,y:L[1]+x}),o&&(I=h.getRawValue(D[0]))}else{var L=f.getPointOn(S,C);L&&u.attr({x:L[0]+b,y:L[1]+x});var M=h.getRawValue(D[0]),P=h.getRawValue(D[1]);o&&(I=ov(a,d,M,P,T.t))}i.lastFrameIndex=D[0]}else{var R=e===1||i.lastFrameIndex>0?D[0]:0,L=lc(c,R);o&&(I=h.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+x})}if(o){var V=Vr(u);typeof V.setLabelText=="function"&&V.setLabelText(I)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,h=gC(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(v=Rt(h.current,a,o,l),d=Rt(h.stackedOnCurrent,a,o,l),p=Rt(h.next,a,o,l),g=Rt(h.stackedOnNext,a,o,l)),oc(v,p)>3e3||f&&oc(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:p}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),me(u,m,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),me(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&y.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var C=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;et&&(t=i,e=a)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},PC=function(r){return Math.round(r.length/2)};function Tp(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var d=void 0;W(i)?d=LC[i]:X(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,PC))}}}}}function tT(r){r.registerChartView(MC),r.registerSeriesModel(hC),r.registerLayout(pl("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Tp("line"))}var On=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return si(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)w(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,S=1,b=0;bg){_=(x+y)/2;break}b===1&&(S=C-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(ze);ze.registerClass(On);var RC=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return si(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Is(On.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(On),kC=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),uc=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new kC},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?c-fMath.PI/2&&fs)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){La(i,e,$(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ke),fc={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=ro(t.x,r.x),s=no(t.x+t.width,a),l=ro(t.y,r.y),u=no(t.y+t.height,i),f=sa?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=no(t.r,r.r),i=ro(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},cc={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new he({shape:N({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?uc:or,f=new u({shape:n,z2:1});f.name="item";var c=Dp(a);if(f.calculateTextPosition=EC(c,{isRoundCap:u===uc}),i){var h=f.shape,v=a?"r":"endAngle",d={};h[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?me:De)(f,{shape:d},i)}return f}};function VC(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function vc(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?me:De)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?me:De)(e,{shape:u},f,a)}function hc(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function GC(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Dp(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function pc(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=cn(n.getModel("itemStyle"),f,!0);N(f,c),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=Br(n);Nr(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:hi(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,OC(r,g==="outside"?v:g,Dp(o),n.get(["label","rotate"]))}Wm(p,d,i.getRawValue(e),function(y){return hp(t,y)});var m=n.getModel(["emphasis"]);Mr(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),wn(r,n),GC(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function WC(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var HC=function(){function r(){}return r}(),gc=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new HC},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function UC(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function Ap(r,t,e){if(vl(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function YC(r,t,e){var n=r.type==="polar"?or:he;return new n({shape:Ap(t,e,r),silent:!0,z2:0})}function rT(r){r.registerChartView(BC),r.registerSeriesModel(RC),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,J(sd,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ld("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Tp("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var _c=Math.PI*2,pa=Math.PI/180;function Ip(r,t){return Gt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Mp(r,t){var e=Ip(r,t),n=r.get("center"),a=r.get("radius");O(a)||(a=[0,a]);var i=te(e.width,t.getWidth()),o=te(e.height,t.getHeight()),s=Math.min(i,o),l=te(a[0],s/2),u=te(a[1],s/2),f,c,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,c=v[1]||0}else O(n)||(n=[n,n]),f=te(n[0],i)+e.x,c=te(n[1],o)+e.y;return{cx:f,cy:c,r0:l,r:u}}function XC(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=Ip(n,e),s=Mp(n,e),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*pa,v=n.get("endAngle"),d=n.get("padAngle")*pa;v=v==="auto"?h-_c:-v*pa;var p=n.get("minAngle")*pa,g=p+d,m=0;a.each(i,function(H){!isNaN(H)&&m++});var y=a.getSum(i),_=Math.PI/(y||m)*2,S=n.get("clockwise"),b=n.get("roseType"),x=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var T=S?1:-1,D=[h,v],A=T*d/2;_g(D,!S),h=D[0],v=D[1];var I=Lp(n);I.startAngle=h,I.endAngle=v,I.clockwise=S;var L=Math.abs(v-h),M=L,P=0,R=h;if(a.setLayout({viewRect:o,r:f}),a.each(i,function(H,k){var E;if(isNaN(H)){a.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:c,r:b?NaN:f});return}b!=="area"?E=y===0&&x?_:H*_:E=L/m,EE?(G=R+T*E/2,Z=G):(G=R+A,Z=z-A),a.setItemLayout(k,{angle:E,startAngle:G,endAngle:Z,clockwise:S,cx:l,cy:u,r0:c,r:b?Ot(H,C,[c,f]):f}),R=z}),M<_c&&m)if(M<=.001){var V=L/m;a.each(i,function(H,k){if(!isNaN(H)){var E=a.getItemLayout(k);E.angle=V;var z=0,G=0;Ve?m:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,C=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();i.width=p.width;var g=(n.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-c)/2}}}function ao(r){return r.position==="center"}function qC(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*$C,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}t.each(function(x){var C=t.getItemGraphicEl(x),T=C.shape,D=C.getTextContent(),A=C.getTextGuideLine(),I=t.getItemModel(x),L=I.getModel("label"),M=L.get("position")||I.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),V=te(L.get("edgeDistance"),u),H=L.get("bleedMargin"),k=I.getModel("labelLine"),E=k.get("length");E=te(E,u);var z=k.get("length2");if(z=te(z,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":Z>0?"left":"right"}var Tt=Math.PI,vt=0,Ur=L.get("rotate");if(ue(Ur))vt=Ur*(Tt/180);else if(M==="center")vt=0;else if(Ur==="radial"||Ur===!0){var Hp=Z<0?-G+Tt:-G;vt=Hp}else if(Ur==="tangential"&&M!=="outside"&&M!=="outer"){var lr=Math.atan2(Z,j);lr<0&&(lr=Tt*2+lr);var Up=j>0;Up&&(lr=Tt+lr),vt=lr-Tt}if(i=!!vt,D.x=ne,D.y=xe,D.rotation=vt,D.setStyle({verticalAlign:"middle"}),Ct){D.setStyle({align:wt});var di=D.states.select;di&&(di.x+=D.x,di.y+=D.y)}else{var Yr=D.getBoundingRect().clone();Yr.applyTransform(D.getComputedTransform());var ml=(D.style.margin||0)+2.1;Yr.y-=ml/2,Yr.height+=ml,e.push({label:D,labelLine:A,position:M,len:E,len2:z,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new we(Z,j),linePoints:ye,textAlign:wt,labelDistance:P,labelAlignTo:R,edgeDistance:V,bleedMargin:H,rect:Yr,unconstrainedWidth:Yr.width,labelStyleWidth:D.style.width})}C.setTextConfig({inside:Ct})}}),!i&&r.get("avoidLabelOverlap")&&KC(e,n,a,l,u,h,f,c);for(var p=0;p0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c=i.r0}},t.type="pie",t}(ke);function Rp(r,t,e){t=O(t)&&{coordDimensions:t}||N({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=td(n,t).dimensions,i=new ed(a,r);return i.initData(n,e),i}var JC=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}(),e1=se(),t1=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new JC(oe(this.getData,this),oe(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Rp(this,{coordDimensions:["value"],encodeDefaulter:J(gy,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=e1(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Rg(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){xo(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(ze);function r1(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(ue(o)&&!isNaN(o)&&o<0)})}}}function nT(r){r.registerChartView(QC),r.registerSeriesModel(t1),J0("pie",r.registerAction),r.registerLayout(J(XC,"pie")),r.registerProcessor(ZC("pie")),r.registerProcessor(r1("pie"))}var n1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return si(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.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"}},t}(ze),kp=4,a1=function(){function r(){}return r}(),i1=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new a1},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var f=u*2,c=i[f]-s/2,h=i[f+1]-l/2;if(e>=c&&n>=h&&e<=c+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h=0&&(u.dataIndex=c+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),s1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=pl("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new o1:new dp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(ke);function aT(r){St(Bd),r.registerSeriesModel(n1),r.registerChartView(s1),r.registerLayout(pl("scatter"))}var l1=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],h=u[1-f],v=[a,i],d=v[f].get("type"),p=v[1-f].get("type"),g=t.data;if(g&&l){var m=[];w(g,function(S,b){var x;O(S)?(x=S.slice(),S.unshift(b)):O(S.value)?(x=N({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,m.push(x)}),t.data=m}var y=this.defaultValueDimensions,_=[{name:c,type:Ho(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Ho(p),dimsDef:y.slice()}];return Rp(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:J($v,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),u1=["color","borderColor"],f1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){Wn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&xc(u,c))return;var h=io(c,f,!0);De(h,{shape:{points:c.ends}},e,f),oo(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=a.getItemGraphicEl(c);if(!n.hasValue(f)){i.remove(h);return}var v=n.getItemLayout(f);if(s&&xc(u,v)){i.remove(h);return}h?(me(h,{shape:{points:v.ends}},e,f),Za(h)):h=io(v),oo(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=a.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),bc(e,this.group);var n=e.get("clip",!0)?dl(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=a.getItemLayout(o),l=io(s);oo(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){bc(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(ke),c1=function(){function r(){}return r}(),v1=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new c1},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(Se);function io(r,t,e){var n=r.ends;return new v1({shape:{points:e?h1(n,r):n},z2:100})}function xc(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(u1);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var Ep=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(ze);xt(Ep,l1,!0);function p1(r){!r||!O(r.series)||w(r.series,function(t){Y(t)&&t.type==="k"&&(t.type="candlestick")})}var g1=["itemStyle","borderColor"],m1=["itemStyle","borderColor0"],y1=["itemStyle","borderColorDoji"],_1=["itemStyle","color"],S1=["itemStyle","color0"],x1={seriesType:"candlestick",plan:Un(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?_1:S1)}function n(i,o){return o.get(i===0?y1:i>0?g1:m1)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=e(u,l),f.stroke=n(u,l)||f.fill;var c=o.ensureUniqueItemVisual(s,"style");N(c,f)}}}}}},b1={seriesType:"candlestick",plan:Un(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=w1(r,e),a=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[a])),l=F(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],f=l[1],c=l[2],h=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,g){for(var m,y=g.getStore();(m=p.next())!=null;){var _=y.get(s,m),S=y.get(u,m),b=y.get(f,m),x=y.get(c,m),C=y.get(h,m),T=Math.min(S,b),D=Math.max(S,b),A=H(T,_),I=H(D,_),L=H(x,_),M=H(C,_),P=[];k(P,I,0),k(P,A,1),P.push(z(M),z(I),z(L),z(A));var R=g.getItemModel(m),V=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:wc(y,m,S,b,f,V),initBaseline:S>b?I[i]:A[i],ends:P,brushRect:E(x,C,_)})}function H(G,Z){var j=[];return j[a]=Z,j[i]=G,isNaN(Z)||isNaN(G)?[NaN,NaN]:t.dataToPoint(j)}function k(G,Z,j){var ne=Z.slice(),xe=Z.slice();ne[a]=ya(ne[a]+n/2,1,!1),xe[a]=ya(xe[a]-n/2,1,!0),j?G.push(ne,xe):G.push(xe,ne)}function E(G,Z,j){var ne=H(G,j),xe=H(Z,j);return ne[a]-=n/2,xe[a]-=n/2,{x:ne[0],y:ne[1],width:n,height:xe[1]-ne[1]}}function z(G){return G[a]=ya(G[a],1),G}}function d(p,g){for(var m=at(p.count*4),y=0,_,S=[],b=[],x,C=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var D=C.get(s,x),A=C.get(u,x),I=C.get(f,x),L=C.get(c,x),M=C.get(h,x);if(isNaN(D)||isNaN(L)||isNaN(M)){m[y++]=NaN,y+=3;continue}m[y++]=wc(C,x,A,I,f,T),S[a]=D,S[i]=L,_=t.dataToPoint(S,null,b),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,S[i]=M,_=t.dataToPoint(S,null,b),m[y++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function wc(r,t,e,n,a,i){var o;return e>n?o=-1:e0?r.get(a,t-1)<=n?1:-1:1,o}function w1(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=te(ie(r.get("barMaxWidth"),a),a),o=te(ie(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?te(s,a):Math.max(Math.min(a/2,i),o)}function iT(r){r.registerChartView(f1),r.registerSeriesModel(Ep),r.registerPreprocessor(p1),r.registerVisual(x1),r.registerLayout(b1)}var C1=["itemStyle","borderWidth"],Cc=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],uo=new Ga,T1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:Cc[+f],categoryDim:Cc[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=Dc(o,d),g=Tc(o,d,p,h),m=Ac(o,h,g);o.setItemGraphicEl(d,m),i.add(m),Mc(m,h,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var m=Dc(o,d),y=Tc(o,d,m,h),_=Fp(o,y);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?R1(g,h,y):g=Ac(o,h,y,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=y,i.add(g),Mc(g,h,y)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&Ic(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=e.get("clip",!0)?dl(e.coordinateSystem,!1,e):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){Ic(i,$(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}(ke);function Tc(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,c=e.isAnimationEnabled(),h={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};D1(e,i,a,n,h),A1(r,t,a,i,o,h.boundingLength,h.pxSign,f,n,h),I1(e,h.symbolScale,u,n,h);var v=h.symbolSize,d=Hs(e.get("symbolOffset"),v);return M1(e,v,a,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function D1(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(O(o)){var c=[fo(s,o[0])-l,fo(s,o[1])-l];c[1]0?1:-1}function fo(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function A1(r,t,e,n,a,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,h=Math.abs(e[c.wh]),v=r.getItemVisual(t,"symbolSize"),d;O(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[c.index]=te(d[c.index],h),d[f.index]=te(d[f.index],n?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function I1(r,t,e,n,a){var i=r.get(C1)||0;i&&(uo.attr({scaleX:t[0],scaleY:t[1],rotation:e}),uo.updateTransform(),i/=uo.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function M1(r,t,e,n,a,i,o,s,l,u,f,c){var h=f.categoryDim,v=f.valueDim,d=c.pxSign,p=Math.max(t[v.index]+s,0),g=p;if(n){var m=Math.abs(l),y=Dr(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var S=te(y,t[v.index]),b=Math.max(p+S*2,0),x=_?0:S*2,C=Jc(n),T=C?n:Lc((m+x)/b),D=m-T*p;S=D/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!C&&n!=="fixed"&&(T=u?Lc((Math.abs(u)+x)/b):0),g=T*b-x,c.repeatTimes=T,c.symbolMargin=S}var A=d*(g/2),I=c.pathPosition=[];I[h.index]=e[h.wh]/2,I[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(I[0]+=i[0],I[1]+=i[1]);var L=c.bundlePosition=[];L[h.index]=e[h.xy],L[v.index]=e[v.xy];var M=c.barRectShape=N({},e);M[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(I[v.index]+A)),M[h.wh]=e[h.wh];var P=c.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=f.ecSize[h.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function Op(r){var t=r.symbolPatternSize,e=Wt(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Np(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,c=i[t.valueDim.index]+o+e.symbolMargin*2;for(gl(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f0:m<0)&&(y=u-1-p),g[l.index]=c*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Bp(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Tr(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=Op(e),a.add(i),Tr(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function Vp(r,t,e){var n=N({},t.barRectShape),a=r.__pictorialBarRect;a?Tr(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new he({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function zp(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=N({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)me(a,{shape:i},s,l);else{i[o.wh]=0,a=new he({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],As[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function Dc(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=L1,e.isAnimationEnabled=P1,e}function L1(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function P1(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Ac(r,t,e,n){var a=new ge,i=new ge;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Np(a,t,e):Bp(a,t,e),Vp(a,e,n),zp(a,t,e,n),a.__pictorialShapeStr=Fp(r,e),a.__pictorialSymbolMeta=e,a}function R1(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;me(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?Np(r,t,e,!0):Bp(r,t,e,!0),Vp(r,e,!0),zp(r,t,e,!0)}function Ic(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];gl(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),w(i,function(o){Cn(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function Fp(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function gl(r,t,e){w(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Tr(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&As[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function Mc(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),h=i.get("scale");gl(r,function(p){if(p instanceof Or){var g=p.style;p.useStyle(N({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var m=p.ensureState("emphasis");m.style=o,h&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Nr(d,Br(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:hi(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),Mr(r,f,c,i.get("disabled"))}function Lc(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var k1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Is(On.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(On);function oT(r){r.registerChartView(T1),r.registerSeriesModel(k1),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,J(sd,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ld("pictorialBar"))}function Pc(r){return O(r[0])}function Rc(r,t){for(var e=[],n=r.length,a=0;a=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var E1={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;Pc(r)&&(u=r,f=t),Pc(t)&&(u=t,f=r);function c(m,y,_,S,b){var x=m.many,C=m.one;if(x.length===1&&!b){var T=y?x[0]:C,D=y?C:x[0];if(xg(T))c({many:[T],one:D},!0,_,S,!0);else{var A=s?re({delay:s(_,S)},l):l;bg(T,D,A),i(T,D,T,D,A)}}else for(var I=re({dividePath:E1[e],individualDelay:s&&function(H,k,E,z){return s(H+_,S)}},l),L=y?wg(x,C,I):Cg(C,x,I),M=L.fromIndividuals,P=L.toIndividuals,R=M.length,V=0;Vt.length,v=u?Rc(f,u):Rc(h?t:r,[h?r:t]),d=0,p=0;pGp))for(var i=n.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof Se&&!T.animators.length&&T.animateFrom({style:{opacity:0}},C)})})}function Bc(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Vc(r){return O(r)?r.sort().join(","):r}function Et(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function G1(r,t){var e=U(),n=U(),a=U();return w(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=Bc(i),f=Vc(u);n.set(f,{dataGroupId:s,data:l}),O(u)&&w(u,function(c){a.set(c,{key:f,dataGroupId:s,data:l})})}),w(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=Bc(i),u=Vc(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Et(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Et(s),data:s}]});else if(O(l)){var c=[];w(l,function(d){var p=n.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:Et(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Et(s)}]})}else{var h=a.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Et(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Et(s)})}}}}),e}function zc(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Et(t.oldData[s]),groupIdDim:o.dimension})}),w(de(r.to),function(o){var s=zc(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Et(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Wp(a,i,n)}function sT(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){w(de(n.seriesTransition),function(a){w(de(a.to),function(i){for(var o=n.updatedSeries,s=0;s0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function te(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return W(r)?Rg(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Se(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Qc),r=(+r).toFixed(t),e?r:+r}function kg(r){return r.sort(function(t,e){return t-e}),r}function pt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Eg(r)}function Eg(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function Jc(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Og(r,t){var e=Da(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=F(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=F(a,function(v){return Math.floor(v)}),s=Da(o,function(v,d){return v+d},0),l=F(a,function(v,d){return v-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return F(o,function(v){return v/n})}function Ng(r,t){var e=Math.max(pt(r),pt(t)),n=r+t;return e>Qc?n:Se(n,e)}function ev(r){var t=Math.PI*2;return(r%t+t)%t}function Ia(r){return r>-1e-4&&r=10&&t++,t}function tv(r,t){var e=ps(r),n=Math.pow(10,e),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Vt(r){var t=parseFloat(r);return t==r&&(t!==0||!W(r)||r.indexOf("x")<=0)?t:NaN}function rv(r){return!isNaN(Vt(r))}function nv(){return Math.round(Math.random()*9)}function av(r,t){return t===0?r:av(t,r%t)}function Dl(r,t){return r==null?t:t==null?r:r*t/av(r,t)}function Q(r){throw new Error(r)}function Al(r,t,e){return(t-r)*e+r}var iv="series\0",ov="\0_ec_\0";function ge(r){return r instanceof Array?r:r==null?[]:[r]}function xo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n=0||i&&le(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var lm=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],um=wn(lm),fm=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return um(this,t,e)},r}(),$=ue(),cm=function(r,t,e,n){if(n){var a=$(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=$(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Il=1,Ll={},vv=ue(),_s=ue(),Ss=0,Ua=1,Ya=2,Ye=["emphasis","blur","select"],La=["normal","emphasis","blur","select"],vm=10,hm=9,jt="highlight",ma="downplay",pn="select",ya="unselect",gn="toggleSelect";function fr(r){return r!=null&&r!=="none"}function Xa(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function hv(r){Xa(r,"emphasis",Ya)}function dv(r){r.hoverState===Ya&&Xa(r,"normal",Ss)}function xs(r){Xa(r,"blur",Ua)}function pv(r){r.hoverState===Ua&&Xa(r,"normal",Ss)}function dm(r){r.selected=!0}function pm(r){r.selected=!1}function Pl(r,t,e){t(r,e)}function xt(r,t,e){Pl(r,t,e),r.isGroup&&r.traverse(function(n){Pl(n,t,e)})}function Rl(r,t){switch(t){case"emphasis":r.hoverState=Ya;break;case"normal":r.hoverState=Ss;break;case"blur":r.hoverState=Ua;break;case"select":r.selected=!0}}function gm(r,t,e,n){for(var a=r.style,i={},o=0;o=0,i=!1;if(r instanceof xe){var o=vv(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(fr(s)||fr(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=N({},n),u=N({},u),u.fill=s):!fr(u.fill)&&fr(s)?(i=!0,n=N({},n),u=N({},u),u.fill=Sl(s)):!fr(u.stroke)&&fr(l)&&(i||(n=N({},n),u=N({},u)),u.stroke=Sl(l)),n.style=u}}if(n&&n.z2==null){i||(n=N({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??vm)}return n}function ym(r,t,e){if(e&&e.z2==null){e=N({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??hm)}return e}function _m(r,t,e){var n=le(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:gm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=N({},e),o=N({opacity:n?a:i.opacity*.1},o),e.style=o),e}function mi(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return mm(this,r,t,e);if(r==="blur")return _m(this,r,e);if(r==="select")return ym(this,r,e)}return e}function Sm(r){r.stateProxy=mi;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=mi),e&&(e.stateProxy=mi)}function kl(r,t){!_v(r,t)&&!r.__highByOuter&&xt(r,hv)}function El(r,t){!_v(r,t)&&!r.__highByOuter&&xt(r,dv)}function Ir(r,t){r.__highByOuter|=1<<(t||0),xt(r,hv)}function Lr(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&xt(r,dv)}function xm(r){xt(r,xs)}function gv(r){xt(r,pv)}function mv(r){xt(r,dm)}function yv(r){xt(r,pm)}function _v(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Sv(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=_s(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){pv(u)}),s&&e.push(i)),o.isBlured=!1}),w(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function bo(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Co(r,t,e){xv(r,!0),xt(r,Sm),Mm(r,t,e)}function Am(r){xv(r,!1)}function rr(r,t,e,n){n?Am(r):Co(r,t,e)}function Mm(r,t,e){var n=$(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var Nl=["emphasis","blur","select"],Im={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Cn(r,t,e,n){e=e||"itemStyle";for(var a=0;a0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function _e(r,t,e,n,a,i){ws("update",r,t,e,n,a,i)}function Te(r,t,e,n,a,i){ws("enter",r,t,e,n,a,i)}function br(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function zl(r){return!r.isGroup}function zm(r){return r.shape!=null}function Av(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){zl(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return zm(o)&&(s.shape=N({},o.shape)),s}var i=n(r);t.traverse(function(o){if(zl(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),_e(o,l,e,$(o).dataIndex)}}})}function Mv(r,t){return F(r,function(e){var n=e[0];n=Ra(n,t.x),n=ka(n,t.x+t.width);var a=e[1];return a=Ra(a,t.y),a=ka(a,t.y+t.height),[n,a]})}function Fm(r,t){var e=Ra(r.x,t.x),n=ka(r.x+r.width,t.x+t.width),a=Ra(r.y,t.y),i=ka(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function Ka(r,t,e){var n=N({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),re(a,e),new Nr(n)):Cs(r.replace("path://",""),n,e,"center")}function Gm(r,t,e,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var g=yi(v,d,f,c)/h;return!(g<0||g>1)}function yi(r,t,e,n){return r*n-e*t}function Wm(r){return r<=1e-6&&r>=-1e-6}function Hn(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=W(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(ze(l),function(f){lt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=$(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:re({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function Fl(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Un(r,t){if(r)if(O(r))for(var e=0;e=0&&s.push(l)}),s}}function Ms(r,t){return q(q({},r,!0),t,!0)}const ry={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:". "}}}},ny={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:""}}}};var Ea="ZH",Is="EN",wr=Is,Sa={},Ls={},Ev=ce.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||wr).toUpperCase();return r.indexOf(Ea)>-1?Ea:wr}():wr;function Ov(r,t){r=r.toUpperCase(),Ls[r]=new ve(t),Sa[r]=t}function ay(r){if(W(r)){var t=Sa[r.toUpperCase()]||{};return r===Ea||r===Is?K(t):q(K(t),K(Sa[wr]),!1)}else return q(K(r),K(Sa[wr]),!1)}function iy(r){return Ls[r]}function oy(){return Ls[wr]}Ov(Is,ry);Ov(Ea,ny);var Ps=1e3,Rs=Ps*60,mn=Rs*60,He=mn*24,Xl=He*365,un={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}"},qn="{yyyy}-{MM}-{dd}",Zl={year:"{yyyy}",month:"{yyyy}-{MM}",day:qn,hour:qn+" "+un.hour,minute:qn+" "+un.minute,second:qn+" "+un.second,millisecond:un.none},xi=["year","month","day","hour","minute","second","millisecond"],Nv=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Tt(r,t){return r+="","0000".substr(0,t-r.length)+r}function Cr(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function sy(r){return r===Cr(r)}function ly(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ja(r,t,e,n){var a=yt(r),i=a[ks(e)](),o=a[Tr(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[Qa(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[An(e)](),c=(f-1)%12+1,h=a[Ja(e)](),v=a[ei(e)](),d=a[ti(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof ve?n:iy(n||Ev)||oy(),y=m.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Tt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Tt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Tt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Tt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Tt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Tt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Tt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Tt(d,3)).replace(/{S}/g,d+"")}function uy(r,t,e,n,a){var i=null;if(W(e))i=e;else if(Z(e))i=e(r.value,t,{level:r.level});else{var o=N({},un);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(O(i)){var c=r.level==null?0:r.level>=0?r.level:i.length+r.level;c=Math.min(c,i.length-1),i=i[c]}}return ja(new Date(r.value),i,a,n)}function Bv(r,t){var e=yt(r),n=e[Tr(t)]()+1,a=e[Qa(t)](),i=e[An(t)](),o=e[Ja(t)](),s=e[ei(t)](),l=e[ti(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function $l(r,t,e){var n=fe(r)?yt(r):r;switch(t=t||Bv(r,e),t){case"year":return n[ks(e)]();case"half-year":return n[Tr(e)]()>=6?1:0;case"quarter":return Math.floor((n[Tr(e)]()+1)/4);case"month":return n[Tr(e)]();case"day":return n[Qa(e)]();case"half-day":return n[An(e)]()/24;case"hour":return n[An(e)]();case"minute":return n[Ja(e)]();case"second":return n[ei(e)]();case"millisecond":return n[ti(e)]()}}function ks(r){return r?"getUTCFullYear":"getFullYear"}function Tr(r){return r?"getUTCMonth":"getMonth"}function Qa(r){return r?"getUTCDate":"getDate"}function An(r){return r?"getUTCHours":"getHours"}function Ja(r){return r?"getUTCMinutes":"getMinutes"}function ei(r){return r?"getUTCSeconds":"getSeconds"}function ti(r){return r?"getUTCMilliseconds":"getMilliseconds"}function fy(r){return r?"setUTCFullYear":"setFullYear"}function Vv(r){return r?"setUTCMonth":"setMonth"}function zv(r){return r?"setUTCDate":"setDate"}function Fv(r){return r?"setUTCHours":"setHours"}function Gv(r){return r?"setUTCMinutes":"setMinutes"}function Wv(r){return r?"setUTCSeconds":"setSeconds"}function Hv(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Uv(r){if(!rv(r))return W(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Yv(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ri=ag;function Io(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&zn(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?yt(r):r;if(isNaN(+l)){if(s)return"-"}else return ja(l,n,e)}if(t==="ordinal")return po(r)?a(r):fe(r)&&i(r)?r+"":"-";var u=Vt(r);return i(u)?Uv(u):po(r)?a(r):typeof r=="boolean"?r+"":"-"}var Kl=["a","b","c","d","e","f","g"],bi=function(r,t){return"{"+r+(t??"")+"}"};function Xv(r,t,e){O(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function nr(r,t){return t=t||"transparent",W(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function ql(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var xa=w,vy=["left","right","top","bottom","width","height"],jn=[["width","left","right"],["height","top","bottom"]];function Es(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Dr=Es;J(Es,"vertical");J(Es,"horizontal");function Ft(r,t,e){e=ri(e||0);var n=t.width,a=t.height,i=te(r.left,n),o=te(r.top,a),s=te(r.right,n),l=te(r.bottom,a),u=te(r.width,n),f=te(r.height,a),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(f)&&(f=a-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-f-c),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new Ue(i+e[3],o+e[0],u,f);return d.margin=e,d}function hy(r,t,e,n,a,i){i=i||r,i.x=r.x,i.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=Ft(re({width:o.width,height:o.height},t),e,n),u=l.x-o.x,f=l.y-o.y;return i.x+=u,i.y+=f,i===r&&r.markRedraw(),!0}function Mn(r){var t=r.layoutMode||r.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function Pr(r,t,e){var n=e&&e.ignoreSize;!O(n)&&(n=[n,n]);var a=o(jn[0],0),i=o(jn[1],1);u(jn[0],r,a),u(jn[1],r,i);function o(f,c){var h={},v=0,d={},p=0,g=2;if(xa(f,function(_){d[_]=r[_]}),xa(f,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var m=0;m=0;l--)s=q(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Wn(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(ve);cv(ee,ve);Ha(ee);ey(ee);ty(ee,gy);function gy(r){var t=[];return w(ee.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=F(t,function(e){return rt(e).main}),r!=="dataset"&&le(t,"dataset")<=0&&t.unshift("dataset"),t}var Zv="";typeof navigator<"u"&&(Zv=navigator.platform||"");var cr="rgba(0, 0, 0, 0.2)";const my={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:cr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:cr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:cr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:cr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:cr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:cr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Zv.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};var $v=U(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Xe="original",ke="arrayRows",Ze="objectRows",ut="keyedColumns",Nt="typedArray",Kv="unknown",ot="column",Fr="row",Ce={Must:1,Might:2,Not:3},qv=ue();function yy(r){qv(r).datasetMap=U()}function jv(r,t,e){var n={},a=Os(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=qv(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),w(r,function(p,g){var m=Y(p)?p:r[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});w(r,function(p,g){var m=p.name,y=d(p);if(f==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(f===g)v(n[m],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;yt)return r[n];return r[e-1]}function eh(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?e:Cy(n,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function Ty(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Qn,Zr,Jl,eu="\0_ec_inner",Dy=1,Bs=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new ve(i),this._locale=new ve(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=nu(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,nu(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?Jl(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=U(),u=n&&n.replaceMergeMainTypeMap;yy(this),w(e,function(c,h){c!=null&&(ee.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?K(c):q(a[h],c,!0))}),u&&u.each(function(c,h){ee.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ee.topologicalTravel(s,ee.getAllClassMainTypes(),f,this);function f(c){var h=by(this,c,ge(e[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=Fg(v,h,d);$g(p,c,ee),a[c]=null,i.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;w(p,function(S,b){var x=S.existing,C=S.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",D=ee.getClass(c,S.keyInfo.subType,!T);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===D)x.name=S.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var A=N({componentIndex:b},S.keyInfo);x=new D(C,this,this,A),N(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),y++):(g.push(void 0),m.push(void 0))},this),a[c]=g,i.set(c,m),o.set(c,y),c==="series"&&Qn(this)}this._seriesIndices||Qn(this)},t.prototype.getOption=function(){var e=K(this.option);return w(e,function(n,a){if(ee.hasClass(a)){for(var i=ge(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!bn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[eu],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function Oy(r,t){return r.join(",")===t.join(",")}var $e=w,In=Y,au=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ci(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=au.length;e=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=Ng(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var ai=function(){function r(t){this.data=t.data||(t.sourceFormat===ut?{}:[]),this.sourceFormat=t.sourceFormat||Kv,this.seriesLayoutBy=t.seriesLayoutBy||ot,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;np&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};cu=(t={},t[ke+"_"+ot]={pure:!0,appendData:i},t[ke+"_"+Fr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ze]={pure:!0,appendData:i},t[ut]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Xe]={appendData:i},t[Nt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Rr(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function pu(r){var t,e;return Y(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function yn(r){return new Jy(r)}var Jy=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v1&&n>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},t0=function(){function r(t,e){if(!fe(e)){var n="";Q(n)}this._opFn=vh[t],this._rvalFloat=Vt(e)}return r.prototype.evaluate=function(t){return fe(t)?this._opFn(t,this._rvalFloat):this._opFn(Vt(t),this._rvalFloat)},r}(),hh=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=fe(t)?t:Vt(t),a=fe(e)?e:Vt(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=W(t),l=W(e);s&&(n=l?t:0),l&&(a=s?e:0)}return na?-this._resultLT:0},r}(),r0=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Vt(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Vt(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function n0(r,t){return r==="eq"||r==="ne"?new r0(r==="eq",t):lt(vh,r)?new t0(r,t):null}var a0=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return ba(t,e)},r}();function i0(r,t){var e=new a0,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ot&&Q(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";lt(l,m)&&Q(_),l[m]=y}});else for(var f=0;f65535?h0:d0}function hr(){return[1/0,-1/0]}function p0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function yu(r,t,e,n,a){var i=gh[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=F(o,function(y){return y.property}),f=0;fm[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=c&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],m=0;m=c&&y<=h||isNaN(y))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m=c&&y<=h||isNaN(y))&&(l[u++]=C)}else for(var m=0;mt[A][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,h,v=new(vr(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;df&&(f=c,h=S)}M>0&&Ms&&(p=s-f);for(var g=0;gd&&(d=y,v=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(v);cf-d&&(l=f-d,s.length=l);for(var p=0;pc[1]&&(c[1]=m),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();il&&(l=c)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return ba(e[i],this._dimensions[i])}Ai={arrayRows:t,objectRows:function(e,n,a,i){return ba(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return ba(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),mh=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(Jn(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Be(s)?Nt:Xe,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=ae(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=ae(c.sourceHeader,h.sourceHeader),p=ae(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=g?[Po(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[Po(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&Su(i)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&Su(c),s.push(f),l.push(u._getVersionSign())}),n?o=c0(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[Yy(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return w(r.blocks,function(a){var i=xh(a);i>=t&&(t=i+ +(n&&(!i||ko(a)&&!a.noHeader)))}),t}return 0}function _0(r,t,e,n){var a=t.noHeader,i=x0(xh(t)),o=[],s=t.blocks||[];st(!s||O(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(lt(u,l)){var f=new hh(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(p,g){var m=t.valueFormatter,y=Sh(p)(m?N(N({},r),{valueFormatter:m}):r,p,g>0?i.html:0,n);y!=null&&o.push(y)});var c=r.renderMode==="richText"?o.join(i.richText):Eo(n,o.join(""),a?e:i.html);if(a)return c;var h=Io(t.header,"ordinal",r.useUTC),v=_h(n,r.renderMode).nameStyle,d=yh(n);return r.renderMode==="richText"?bh(r,h,v)+i.richText+c:Eo(n,'
'+Oe(h)+"
"+c,e)}function S0(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=O(S)?S:[S],F(S,function(b,x){return Io(b,O(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":Io(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,g=!s&&i,m=_h(n,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":c)+(i?"":bh(r,h,y))+(o?"":C0(r,d,p,g,_)):Eo(n,(s?"":c)+(i?"":b0(h,!s,y))+(o?"":w0(d,p,g,_)),e)}}function xu(r,t,e,n,a,i){if(r){var o=Sh(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function x0(r){return{html:m0[r],richText:y0[r]}}function Eo(r,t,e){var n='
',a="margin: "+e+"px 0 0",i=yh(r);return'
'+t+n+"
"}function b0(r,t,e){var n=t?"margin-left:2px":"";return''+Oe(r)+""}function w0(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=O(r)?r:[r],''+F(r,function(o){return Oe(o)}).join("  ")+""}function bh(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function C0(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(O(t)?t.join(" "):t,i)}function T0(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return nr(n)}function wh(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Mi=function(){function r(){this.richTextStyles={},this._nextStyleNameId=nv()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=cy({color:e,type:t,renderMode:n,markerId:a});return W(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};O(e)?w(e,function(i){return N(n,i)}):N(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function D0(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=O(s),u=T0(t,e),f,c,h,v;if(o>1||l&&!o){var d=A0(s,t,e,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=f=Rr(a,e,i[0]),c=p.type}else v=f=l?s[0]:s;var g=gs(t),m=g&&t.name||"",y=a.getName(e),_=n?m:y;return Ln("section",{header:m,noHeader:n||!g,sortParam:v,blocks:[Ln("nameValue",{markerType:"item",markerColor:u,name:_,noName:!zn(_),value:f,valueType:c,dataIndex:e})].concat(h||[])})}function A0(r,t,e,n,a){var i=t.getData(),o=Da(r,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?w(n,function(c){f(Rr(i,e,c),c)}):w(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Ln("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Dt=ue();function ea(r,t){return r.getName(t)||r.getId(t)}var wa="__universalTransitionEnabled",Ve=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=yn({count:I0,reset:L0}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=Dt(this).sourceManager=new mh(this);i.prepareSource();var o=this.getInitialData(e,a);wu(o,this),this.dataTask.context.data=o,Dt(this).dataBeforeProcessed=o,bu(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Mn(this),i=a?ni(e):{},o=this.subType;ee.hasClass(o)&&(o+="Series"),q(e,n.getTheme().get(this.subType)),q(e,this.getDefaultOption()),xo(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Pr(e,i,a)},t.prototype.mergeOption=function(e,n){e=q(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Mn(this);a&&Pr(this.option,e,a);var i=Dt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);wu(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Dt(this).dataBeforeProcessed=o,bu(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Be(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=Ns.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[ea(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[wa])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,n)}},t.registerClass=function(e){return ee.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(ee);St(Ve,Qy);St(Ve,Ns);cv(Ve,ee);function bu(r){var t=r.name;gs(r)||(r.name=M0(r)||t)}function M0(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return w(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function I0(r){return r.model.getRawData().count()}function L0(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),P0}function P0(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function wu(r,t){w(ig(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,J(R0,t))})}function R0(r,t){var e=Oo(r);return e&&e.setOutputEnd((t||this).count()),t}function Oo(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var Ne=function(){function r(){this.group=new ye,this.uid=Yn("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();ys(Ne);Ha(Ne);function Xn(){var r=ue();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Ch=ue(),k0=Xn(),Re=function(){function r(){this.group=new ye,this.uid=Yn("viewChart"),this.renderTask=yn({plan:E0,reset:O0}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Tu(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Tu(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){Un(this.group,t)},r.markUpdateMethod=function(t,e){Ch(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Cu(r,t,e){r&&To(r)&&(t==="emphasis"?Ir:Lr)(r,e)}function Tu(r,t,e){var n=tr(r,t),a=t&&t.highlightKey!=null?Lm(t.highlightKey):null;n!=null?w(ge(n),function(i){Cu(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){Cu(i,e,a)})}ys(Re);Ha(Re);function E0(r){return k0(r.model)}function O0(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&Ch(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),N0[l]}var N0={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Oa="\0__throttleOriginMethod",Du="\0__throttleRate",Au="\0__throttleType";function Ws(r,t,e){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?c():o=setTimeout(c,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function Th(r,t,e,n){var a=r[t];if(a){var i=a[Oa]||a,o=a[Au],s=a[Du];if(s!==e||o!==n){if(e==null)return r[t]=i;a=r[t]=Ws(i,e,n==="debounce"),a[Oa]=i,a[Au]=n,a[Du]=e}return a}}function No(r,t){var e=r[t];e&&e[Oa]&&(e.clear&&e.clear(),r[t]=e[Oa])}var Mu=ue(),Iu={itemStyle:wn(kv,!0),lineStyle:wn(Rv,!0)},B0={lineStyle:"stroke",itemStyle:"fill"};function Dh(r,t){var e=r.visualStyleMapper||Iu[t];return e||(console.warn("Unknown style type '"+t+"'."),Iu.itemStyle)}function Ah(r,t){var e=r.visualDrawType||B0[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var V0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=Dh(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Ah(r,n),u=o[l],f=Z(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Z(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Z(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=N({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},Kr=new ve,z0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=Dh(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Kr.option=l[n];var u=a(Kr),f=o.ensureUniqueItemVisual(s,"style");N(f,u),Kr.option.decal&&(o.setItemVisual(s,"decal",Kr.option.decal),Kr.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},F0={performRawSeries:!0,overallReset:function(r){var t=U();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Mu(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=Mu(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Ah(e,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},ta=Math.PI;function G0(r,t){t=t||{},re(t,{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 e=new ye,n=new pe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new we({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new pe({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new vs({shape:{startAngle:-ta/2,endAngle:-ta/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ta*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ta*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Mh=function(){function r(t,e,n,a){this._stageTaskMap=U(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=U();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;w(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";st(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;w(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(g,m){s(a,g)&&g.dirty();var y=o.getPerformArgs(g,a.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.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)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=U(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||yn({plan:X0,reset:Z0,count:K0}));v.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||yn({reset:W0});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=U(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";st(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(c=!1,w(n.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,yn({reset:H0,onDirty:Y0})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,i._pipe(p,m)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return Z(t)&&(t={overallReset:t,seriesType:q0(t)}),t.uid=Yn("stageHandler"),e&&(t.visualType=e),t},r}();function W0(r){r.overallReset(r.ecModel,r.api,r.payload)}function H0(r){return r.overallProgress&&U0}function U0(){this.agent.dirty(),this.getDownstream().dirty()}function Y0(){this.agent&&this.agent.dirty()}function X0(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function Z0(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=ge(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?F(t,function(e,n){return Ih(n)}):$0}var $0=Ih(0);function Ih(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Bo=["symbol","symbolSize","symbolRotate","symbolOffset"],ku=Bo.concat(["symbolKeepAspect"]),J0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[De]){if(this._disposed){this.id;return}var i,o,s;if(Y(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[De]=!0,!this._model||n){var l=new Py(this._api),u=this._theme,f=this._model=new Bs;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Go);var c={seriesTransition:s,optionChanged:!0};if(a)this[Ee]={silent:i,updateParams:c},this[De]=!1,this.getZr().wakeUp();else{try{pr(this),At.update.call(this,null,c)}catch(h){throw this[Ee]=null,this[De]=!1,h}this._ssr||this._zr.flush(),this[Ee]=null,this[De]=!1,qr.call(this,i),jr.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ce.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(ce.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return w(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;w(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Hu[a]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(Sn,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(K(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,g=Kc.createCanvas(),m=xl(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return w(h,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new pe({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(h,function(_){var S=new Nr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return ki(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return ki(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=dn(a,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=dn(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?t_(s,l,n):r_(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;w(k_,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&cn(s,function(d){var p=$(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=N({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),w(_n,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),w(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),a_(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&lv(this.getDom(),Xs,"");var n=this,a=n._api,i=n._model;w(n._componentsViews,function(o){o.dispose(i,a)}),w(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Sn[n.id]},t.prototype.resize=function(e){if(!this[De]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Ee]&&(i==null&&(i=this[Ee].silent),a=!0,this[Ee]=null),this[De]=!0;try{a&&pr(this),At.update.call(this,{type:"resize",animation:N({duration:0},e&&e.animation)})}catch(o){throw this[De]=!1,o}this[De]=!1,qr.call(this,i),jr.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(Y(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Wo[e]){var a=Wo[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=N({},e);return n.type=_n[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(Y(n)||(n={silent:!!n}),!!Ba[e.type]&&this._model){if(this[De]){this._pendingActions.push(e);return}var a=n.silent;Oi.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&ce.browser.weChat&&this._throttledZrFlush(),qr.call(this,a),jr.call(this,a)}},t.prototype.updateLabelLayout=function(){qe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){pr=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Ri(c,!0),Ri(c,!1),h.plan()},Ri=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_h.get("hoverLayerThreshold")&&!ce.node&&!ce.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(c,h,v,d){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var y=c.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(br(m))return;if(m instanceof xe&&Pm(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&a(m)}})}Gu=function(c){return new(function(h){B(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Ir(d,p),Fe(c)},v.prototype.leaveEmphasis=function(d,p){Lr(d,p),Fe(c)},v.prototype.enterBlur=function(d){xm(d),Fe(c)},v.prototype.leaveBlur=function(d){gv(d),Fe(c)},v.prototype.enterSelect=function(d){mv(d),Fe(c)},v.prototype.leaveSelect=function(d){yv(d),Fe(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}(th))(c)},Yh=function(c){function h(v,d){for(var p=0;p=0)){Uu.push(e);var i=Mh.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function jh(r,t){Wo[r]=t}function F_(r,t,e){var n=y_("registerMap");n&&n(r,t,e)}var G_=f0;sr(Us,V0);sr(oi,z0);sr(oi,F0);sr(Us,J0);sr(oi,e_);sr(zh,g_);Kh(nh);qh(x_,Hy);jh("default",G0);ft({type:jt,event:jt,update:jt},mt);ft({type:ma,event:ma,update:ma},mt);ft({type:pn,event:pn,update:pn},mt);ft({type:ya,event:ya,update:ya},mt);ft({type:gn,event:gn,update:gn},mt);$h("light",j0);$h("dark",Rh);function Qr(r){return r==null?0:r.length||1}function Yu(r){return r}var Rn=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Yu,this._newKeyGetter=a||Yu,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var v=0;v1)for(var s=0;s30}var Jr=Y,Mt=F,Z_=typeof Int32Array>"u"?Array:Int32Array,$_="e\0\0",Xu=-1,K_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],q_=["_approximateExtent"],Zu,ia,en,tn,Vi,rn,zi,nd=function(){function r(t,e){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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;Jh(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Xe;if(l&&!a.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),O(i)?i=i.slice():Jr(i)&&(i=N({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Jr(e)?N(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Jr(t)?N(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?N(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;cm(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Mt(this.dimensions,this._getDimInfo,this),this.hostModel)),Vi(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];Z(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(ug(arguments)))})},r.internalField=function(){Zu=function(t){var e=t._invertedIndicesMap;w(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new Z_(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),a[e]=l}}}(),r}();function ad(r,t){zs(r)||(r=ah(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=U(),i=[],o=Q_(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&rd(o),l=n===r.dimensionsDefine,u=l?td(r):ed(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=U(f),h=new ph(o),v=0;v0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function Q_(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return w(t,function(i){var o;Y(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function J_(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var eS=function(){function r(t){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=t}return r}();function tS(r){var t=r.get("coordinateSystem"),e=new eS(t),n=rS[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var rS={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Pe).models[0],i=r.getReferringComponents("yAxis",Pe).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),gr(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),gr(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Pe).models[0];t.coordSysDims=["single"],e.set("single",a),gr(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Pe).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),gr(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),gr(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];e.set(f,u),gr(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function gr(r){return r.get("type")==="category"}function nS(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;aS(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(w(i,function(y,_){W(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;w(i,function(y){y.coordDim===v&&p++});var g={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function aS(r){return!Jh(r.schema)}function kr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function iS(r,t){return kr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function oS(r,t){var e=r.get("coordinateSystem"),n=Vs.get(e),a;return t&&t.coordSysDims&&(a=F(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Ho(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function sS(r,t,e){var n,a;return e&&w(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function si(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;a=n.getSource(),i=a.sourceFormat===Xe;var o=tS(t),s=oS(t,o),l=e.useEncodeDefaulter,u=Z(l)?l:l?J(jv,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=ad(a,f),h=sS(c.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),d=nS(t,{schema:c,store:v}),p=new nd(c,t);p.setCalculationInfo(d);var g=h!=null&&lS(a)?function(m,y,_,S){return S===h?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,g),p}function lS(r){if(r.sourceFormat===Xe){var t=uS(r.data||[]);return!O(Gn(t))}}function uS(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Ha(ct);var fS=0,Uo=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++fS}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&F(n,cS);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!W(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},r}();function cS(r){return Y(r)&&r.value!=null?r.value:r+""}function Yo(r){return r.type==="interval"||r.type==="log"}function vS(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=tv(i/t);e!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=id(o),l=a.niceTickExtent=[Se(Math.ceil(r[0]/o)*o,s),Se(Math.floor(r[1]/o)*o,s)];return hS(l,r),a}function Fi(r){var t=Math.pow(10,ps(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Se(e*t)}function id(r){return pt(r)+2}function $u(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function hS(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),$u(r,0,t),$u(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function li(r,t){return r>=t[0]&&r<=t[1]}function ui(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function fi(r,t){return r*(t[1]-t[0])+t[0]}var Ks=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Uo({})),O(a)&&(a=new Uo({categories:F(a,function(i){return Y(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:W(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),li(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),ui(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(fi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(ct);ct.registerClass(Ks);var Zt=Se,Gr=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return li(e,this._extent)},t.prototype.normalize=function(e){return ui(e,this._extent)},t.prototype.scale=function(e){return fi(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=id(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]l)return[];var f=s.length?s[s.length-1].value:i[1];return a[1]>f&&(e?s.push({value:Zt(f+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function ud(r){var t=gS(r),e=[];return w(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=te(n.get("barWidth"),s),p=te(n.get("barMaxWidth"),s),g=te(n.get("barMinWidth")||(hd(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:qs(i),stackId:sd(n)})}),mS(e)}function mS(r){var t={};w(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=ze(i).length;s=Math.max(35-l*4,15)+"%"}var u=te(s,o),f=te(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),w(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),m.width=S,c-=S+f*S,h--}else{var S=v;y&&yS&&(S=_),S!==v&&(m.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;w(i,function(m,y){m.width||(m.width=v),p=m,d+=m.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;w(i,function(m,y){e[a][y]=e[a][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),e}function yS(r,t,e){if(r&&t){var n=r[qs(t)];return n}}function fd(r,t){var e=ld(r,t),n=ud(e);w(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=sd(a),u=n[qs(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function cd(r){return{seriesType:r,plan:Xn(),reset:function(t){if(vd(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=kr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=_S(a,i),d=hd(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&nt(b*3),C=d&&l&&nt(b*3),T=d&&nt(b),D=n.master.getRect(),A=h?D.width:D.height,M,L=S.getStore(),I=0;(M=_.next())!=null;){var P=L.get(c?g:o,M),R=L.get(s,M),V=v,H=void 0;c&&(H=+P-L.get(o,M));var E=void 0,k=void 0,z=void 0,G=void 0;if(h){var X=n.dataToPoint([P,R]);if(c){var j=n.dataToPoint([H,R]);V=j[0]}E=V,k=X[1]+y,z=X[0]-V,G=m,Math.abs(z)0?e:1:e))}var SS=function(r,t,e,n){for(;e>>1;r[a][1]a&&(this._approxInterval=a);var s=oa.length,l=Math.min(SS(oa,this._approxInterval,0,s),s-1);this._interval=oa[l][1],this._minLevelUnit=oa[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return fe(e)?e:+yt(e)},t.prototype.contain=function(e){return li(this.parse(e),this._extent)},t.prototype.normalize=function(e){return ui(this.parse(e),this._extent)},t.prototype.scale=function(e){return fi(e,this._extent)},t.type="time",t}(Gr),oa=[["second",Ps],["minute",Rs],["hour",mn],["quarter-day",mn*6],["half-day",mn*12],["day",He*1.2],["half-week",He*3.5],["week",He*7],["month",He*31],["quarter",He*95],["half-year",Xl/2],["year",Xl]];function xS(r,t,e,n){var a=yt(t),i=yt(e),o=function(d){return $l(a,d,n)===$l(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function bS(r,t){return r/=He,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function wS(r){var t=30*He;return r/=t,r>6?6:r>3?3:r>2?2:1}function CS(r){return r/=mn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Ku(r,t){return r/=t?Rs:Ps,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function TS(r){return tv(r)}function DS(r,t,e){var n=new Date(r);switch(Cr(t)){case"year":case"month":n[Vv(e)](0);case"day":n[zv(e)](1);case"hour":n[Fv(e)](0);case"minute":n[Gv(e)](0);case"second":n[Wv(e)](0),n[Hv(e)](0)}return n.getTime()}function AS(r,t,e,n){var a=1e4,i=Nv,o=0;function s(A,M,L,I,P,R,V){for(var H=new Date(M),E=M,k=H[I]();E1&&R===0&&L.unshift({value:L[0].value-E})}}for(var R=0;R=n[0]&&y<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&h>_/1.5||(u.push(g),c>_||r===i[v]))break}f=[]}}}for(var S=de(F(u,function(A){return de(A,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(A){return A.length>0}),b=[],x=S.length-1,v=0;v0;)i*=10;var s=[Se(LS(n[0]/i)*i),Se(IS(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){xn.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Ke(e)/Ke(this.base),li(e,this._extent)},t.prototype.normalize=function(e){return e=Ke(e)/Ke(this.base),ui(e,this._extent)},t.prototype.scale=function(e){return e=fi(e,this._extent),sa(this.base,e)},t.type="log",t}(ct),pd=js.prototype;pd.getMinorTicks=xn.getMinorTicks;pd.getLabel=xn.getLabel;function la(r,t){return MS(r,pt(t))}ct.registerClass(js);var PS=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[kS[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=RS[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),RS={min:"_determinedMin",max:"_determinedMax"},kS={min:"_dataMin",max:"_dataMax"};function gd(r,t,e){var n=r.rawExtentInfo;return n||(n=new PS(r,t,e),r.rawExtentInfo=n,n)}function ua(r,t){return t==null?null:_o(t)?NaN:r.parse(t)}function md(r,t){var e=r.type,n=gd(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=ld("bar",o),l=!1;if(w(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=ud(s),f=ES(a,i,t,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function ES(r,t,e,n){var a=e.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=yS(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;w(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/i,h=f/c-f;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function ju(r,t){var e=t,n=md(r,e),a=n.extent,i=e.get("splitNumber");r instanceof js&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function OS(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Ks({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new dd({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(ct.getClass(t)||Gr)}}function NS(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Wr(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):W(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):Z(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(Qs(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Qs(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function BS(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof Ks?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=Wr(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;fr[1]&&(r[1]=a[1])})}var FS=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Qu=[],GS={registerPreprocessor:Kh,registerProcessor:qh,registerPostInit:N_,registerPostUpdate:B_,registerUpdateLifecycle:Zs,registerAction:ft,registerCoordinateSystem:V_,registerLayout:z_,registerVisual:sr,registerTransform:G_,registerLoading:jh,registerMap:F_,registerImpl:m_,PRIORITY:L_,ComponentModel:ee,ComponentView:Ne,SeriesModel:Ve,ChartView:Re,registerComponentModel:function(r){ee.registerClass(r)},registerComponentView:function(r){Ne.registerClass(r)},registerSeriesModel:function(r){Ve.registerClass(r)},registerChartView:function(r){Re.registerClass(r)},registerSubTypeDefaulter:function(r,t){ee.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){fg(r,t)}};function _t(r){if(O(r)){w(r,function(t){_t(t)});return}le(Qu,r)>=0||(Qu.push(r),Z(r)&&(r={install:r}),r.install(GS))}var kn=ue();function Sd(r,t){var e=F(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function WS(r){var t=r.getLabelModel().get("customValues");if(t){var e=Wr(r),n=r.scale.getExtent(),a=Sd(r,t),i=de(a,function(o){return o>=n[0]&&o<=n[1]});return{labels:F(i,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?US(r):XS(r)}function HS(r,t){var e=r.getTickModel().get("customValues");if(e){var n=r.scale.getExtent(),a=Sd(r,e);return{ticks:de(a,function(i){return i>=n[0]&&i<=n[1]})}}return r.type==="category"?YS(r,t):{ticks:F(r.scale.getTicks(),function(i){return i.value})}}function US(r){var t=r.getLabelModel(),e=xd(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function xd(r,t){var e=bd(r,"labels"),n=Js(t),a=wd(e,n);if(a)return a;var i,o;return Z(n)?i=Dd(r,n):(o=n==="auto"?ZS(r):n,i=Td(r,o)),Cd(e,n,{labels:i,labelCategoryInterval:o})}function YS(r,t){var e=bd(r,"ticks"),n=Js(t),a=wd(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),Z(n))i=Dd(r,n,!0);else if(n==="auto"){var s=xd(r,r.getLabelModel());o=s.labelCategoryInterval,i=F(s.labels,function(l){return l.tickValue})}else o=n,i=Td(r,o,!0);return Cd(e,n,{ticks:i,tickCategoryInterval:o})}function XS(r){var t=r.scale.getTicks(),e=Wr(r);return{labels:F(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function bd(r,t){return kn(r)[t]||(kn(r)[t]=[])}function wd(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,g=ds(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var m=h/f,y=v/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),S=kn(r.model),b=r.getExtent(),x=S.lastAutoInterval,C=S.lastTickCount;return x!=null&&C!=null&&Math.abs(x-_)<=1&&Math.abs(C-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function KS(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Td(r,t,e){var n=Wr(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=yd(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(e?g:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:g})}return s}function Dd(r,t,e){var n=r.scale,a=Wr(r),i=[];return w(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Ju=[0,1],qS=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Jc(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),ef(n,a.count())),Et(t,Ju,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),ef(n,a.count()));var i=Et(t,n,Ju,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=HS(this,e),a=n.ticks,i=F(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return jS(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=F(n,function(i){return F(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return WS(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return $S(this)},r}();function ef(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function jS(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1],tickValue:t[0].tickValue};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;w(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s,tickValue:f[1]+1},t.push(o)}var c=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,d){return v=Se(v),d=Se(d),c?v>d:va&&(a+=nn);var v=Math.atan2(s,o);if(v<0&&(v+=nn),v>=n&&v<=a||v+nn>=n&&v+nn<=a)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(a)+r,m=e*Math.sin(a)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function za(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,f=e-r,c=n-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,g=o[1]=t+d*c;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function Ad(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var je=[];function tx(r,t,e){var n=Ad(t.x,t.y,t.width,t.height,r.x,r.y,je);return e.set(je[0],je[1]),n}function rx(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,h=r.y,v=0;v0){t=t/180*Math.PI,Je.fromArray(r[0]),ie.fromArray(r[1]),he.fromArray(r[2]),be.sub(at,Je,ie),be.sub(tt,he,ie);var e=at.len(),n=tt.len();if(!(e<.001||n<.001)){at.scale(1/e),tt.scale(1/n);var a=at.dot(tt),i=Math.cos(t);if(i1&&be.copy(Le,he),Le.toArray(r[1])}}}}function nx(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Je.fromArray(r[0]),ie.fromArray(r[1]),he.fromArray(r[2]),be.sub(at,ie,Je),be.sub(tt,he,ie);var n=at.len(),a=tt.len();if(!(n<.001||a<.001)){at.scale(1/n),tt.scale(1/a);var i=at.dot(t),o=Math.cos(e);if(i=l)be.copy(Le,he);else{Le.scaleAndAdd(tt,s/Math.tan(Math.PI/2-f));var c=he.x!==ie.x?(Le.x-ie.x)/(he.x-ie.x):(Le.y-ie.y)/(he.y-ie.y);if(isNaN(c))return;c<0?be.copy(Le,ie):c>1&&be.copy(Le,he)}Le.toArray(r[1])}}}}function Gi(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function ax(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=bl(n[0],n[1]),i=bl(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=gi([],n[1],n[0],o/a),l=gi([],n[1],n[2],o/i),u=gi([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f0){_(D*T,0,o);var A=D+x;A<0&&S(-A*T,1)}else S(-x*T,1)}}function _(x,C,T){x!==0&&(u=!0);for(var D=C;D0)for(var A=0;A0;A--){var P=T[A-1]*I;_(-P,A,o)}}}function b(x){var C=x<0?-1:1;x=Math.abs(x);for(var T=Math.ceil(x/(o-1)),D=0;D0?_(T,0,D+1):_(-T,o-D-1,o),x-=T,x<=0)return}return u}function ix(r,t,e,n){return Rd(r,"x","width",t,e)}function kd(r,t,e,n){return Rd(r,"y","height",t,e)}function Ed(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new Ue(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),le(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),_e(n,u,e,l)}else if(n.attr(u),!zr(n).valueAnimation){var c=ae(n.style.opacity,1);n.style.opacity=0,Te(n,{style:{opacity:c}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};fa(v,u,ca),fa(v,n.states.select,ca)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};fa(d,u,ca),fa(d,n.states.emphasis,ca)}Xm(n,l,f,e,e)}if(a&&!a.ignore&&!a.invisible){var i=lx(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),_e(a,{shape:p},e)):(a.setShape(p),a.style.strokePercent=0,Te(a,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}(),Hi=ue();function q1(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Hi(e).labelManager;a||(a=Hi(e).labelManager=new ux),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Hi(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var fx=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.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"},t}(ee),Xo=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pe).models[0]},t.type="cartesian2dAxis",t}(ee);St(Xo,FS);var Od={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,showMinLine:!0,showMaxLine:!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)"]}}},cx=q({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Od),el=q({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}}},Od),vx=q({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},el),hx=re({logBase:10},el);const dx={category:cx,value:el,time:vx,log:hx};var px={value:1,category:1,time:1,log:1};function nf(r,t,e,n){w(px,function(a,i){var o=q(q({},dx[i],!0),n,!0),s=function(l){B(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=Mn(this),v=h?ni(f):{},d=c.getTheme();q(f,d.get(i+"Axis")),q(f,this.getDefaultOption()),f.type=af(f),h&&Pr(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Uo.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",af)}function af(r){return r.type||(r.data?"category":"value")}var gx=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return F(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),de(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),Zo=["x","y"];function of(r){return r.type==="interval"||r.type==="time"}var mx=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Zo,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!of(e)||!of(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-a[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=hs([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new Ue(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return er(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return er(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,o=Math.min(a[0],a[1])-e,s=Math.max(n[0],n[1])-i+e,l=Math.max(a[0],a[1])-o+e;return new Ue(i,o,s,l)},t}(gx),yx=function(r){B(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(qS);function $o(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Mr(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function sf(r){return r.get("coordinateSystem")==="cartesian2d"}function lf(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Pe).models[0];t[n]=i}),t}var Ui=Math.log;function _x(r,t,e){var n=Gr.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=md(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=Ui(r.base);u=[Ui(u[0])/h,Ui(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(r);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],g=u[1];if(f&&c)d=(g-p)/o;else if(f)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=Fi(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=Fi(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=Se(g-y),p<0&&u[0]>=0?(p=0,g=Se(y)):g>0&&u[1]<=0&&(g=0,p=-Se(y))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d)}var Sx=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Zo,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=ze(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;Yo(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(ju(p,d),Yo(p)&&(s=v))}f.length&&(s||(s=f.pop(),ju(s.scale,s.model)),w(f,function(g){_x(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};w(n.x,function(o){uf(n,"y",o,i)}),w(n.y,function(o){uf(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Ft(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=BS(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),xx(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}Y(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):Ia(a-Ot)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),cf={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(er(s,s,o),er(l,l,o));var f=N({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Jt({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Dn(c.shape,c.style.lineWidth),c.anid="line",e.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);W(h)&&(h=[h,h]),(W(v)||fe(v))&&(v=[v,v]);var d=Hs(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];w([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var _=Gt(h[y],-p/2,-g/2,p,g,f.stroke,!0),S=m.r+m.offset,b=u?l:s;_.attr({rotation:m.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var a=Cx(e,n,t,r),i=Dx(e,n,t,r);if(wx(t,i,a),Tx(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Pd(F(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Ed(o)}},axisName:function(r,t,e,n){var a=Mr(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,hf(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Ot/180);var d;hf(i)?h=Bt.innerTextLayout(r.rotation,v??r.rotation,o):(h=bx(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Mr(r.nameTruncateMaxWidth,g.maxWidth,d),_=new we({x:c[0],y:c[1],rotation:h.rotation,silent:Bt.isLabelSilent(t),style:zt(s,{text:a,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Hn({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=Bt.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,$(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function bx(r,t,e,n){var a=ev(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ia(a-Ot/2)?(o=l?"bottom":"top",i="center"):Ia(a-Ot*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aOt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function wx(r,t,e){if(!yd(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],c=e[e.length-1],h=e[e.length-2];n===!1?(Ge(i),Ge(u)):vf(i,o)&&(n?(Ge(o),Ge(f)):(Ge(i),Ge(u))),a===!1?(Ge(s),Ge(c)):vf(l,s)&&(a?(Ge(l),Ge(h)):(Ge(s),Ge(c)))}}function Ge(r){r&&(r.ignore=!0)}function vf(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Xc([]);return jc(a,a,-r.rotation),e.applyTransform(go([],a,r.getLocalTransform())),n.applyTransform(go([],a,t.getLocalTransform())),e.intersect(n)}}function hf(r){return r==="middle"||r==="center"}function Nd(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l=0||r===t}function Rx(r){var t=tl(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Ko(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=tl(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=qt(t).pointerEl=new As[i.type](gf(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=qt(t).labelEl=new we(gf(e.label));t.add(i),yf(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=qt(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=qt(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),yf(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Ka(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){hg(u.event)},onmousedown:Zi(this._onHandleDragMove,this,0,0),drift:Zi(this._onHandleDragMove,this),ondragend:Zi(this._onHandleDragEnd,this)}),n.add(a)),_f(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");O(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Th(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){mf(this._axisPointerModel,!e&&this._moveAnimation,this._handle,$i(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform($i(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr($i(a)),qt(n).lastProp=null,this._doDispatchAxisPointer()}},r.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}]})}},r.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"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),No(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function mf(r,t,e,n){Gd(qt(e).lastProp,n)||(qt(e).lastProp=n,t?_e(e,n,r):(e.stopAnimation(),e.attr(n)))}function Gd(r,t){if(Y(r)&&Y(t)){var e=!0;return w(t,function(n,a){e=e&&Gd(r[a],n)}),!!e}else return r===t}function yf(r,t){r[t.get(["label","show"])?"show":"hide"]()}function $i(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function _f(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}function Wx(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function Hx(r,t,e,n,a){var i=e.get("value"),o=Wd(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ri(s.get("padding")||0),u=s.getFont(),f=ds(o,u),c=a.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),Ux(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Ux(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Wd(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Qs(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),W(o)?i=o.replace("{value}",i):Z(o)&&(i=o(s))}return i}function Hd(r,t,e){var n=pg();return jc(n,n,e.rotation),dg(n,n,e.position),Ds([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function Yx(r,t,e,n,a,i){var o=Bt.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),Hx(t,n,a,i,{position:Hd(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Xx(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function Zx(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var $x=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=Sf(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=Wx(i),v=Kx[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=$o(l.model,a);Yx(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=$o(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Hd(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Sf(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(Gx);function Sf(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var Kx={line:function(r,t,e){var n=Xx([t,e[0]],[t,e[1]],xf(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:Zx([t-n/2,e[0]],[n,a],xf(r))}}};function xf(r){return r.dim==="x"?0:1}var qx=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.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}},t}(ee),gt=ue(),jx=w;function Ud(r,t,e){if(!ce.node){var n=t.getZr();gt(n).records||(gt(n).records={}),Qx(n,t);var a=gt(n).records[r]||(gt(n).records[r]={});a.handler=e}}function Qx(r,t){if(gt(r).initialized)return;gt(r).initialized=!0,e("click",J(bf,"click")),e("mousemove",J(bf,"mousemove")),e("globalout",eb);function e(n,a){r.on(n,function(i){var o=tb(t);jx(gt(r).records,function(s){s&&a(s,i,o.dispatchAction)}),Jx(o.pendings,t)})}}function Jx(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function eb(r,t,e){r.handler("leave",null,e)}function bf(r,t,e,n){t.handler(r,e,n)}function tb(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function jo(r,t){if(!ce.node){var e=t.getZr(),n=(gt(e).records||{})[r];n&&(gt(e).records[r]=null)}}var rb=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Ud("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){jo("axisPointer",n)},t.prototype.dispose=function(e,n){jo("axisPointer",n)},t.type="axisPointer",t}(Ne);function Yd(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=tr(i,r);if(o==null||o<0||O(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(F(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var wf=ue();function nb(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||oe(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ta(a)&&(a=Yd({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Ta(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||Ta(a),h={},v={},d={list:[],map:{}},p={showPointer:J(ib,v),showTooltip:J(ob,d)};w(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);w(s.coordSysAxesInfo[y],function(S,b){var x=S.axis,C=fb(u,S);if(!c&&_&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&Cf(S,T,p,!1,h)}})});var g={};return w(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&w(_.axesInfo,function(S,b){var x=v[b];if(S!==m&&x){var C=x.value;_.mapper&&(C=m.axis.scale.parse(_.mapper(C,Tf(S),Tf(m)))),g[m.key]=C}})}),w(g,function(m,y){Cf(f[y],m,p,!0,h)}),sb(v,f,h),lb(d,a,r,o),ub(f,o,e),h}}function Cf(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=ab(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&N(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function ab(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,a=c,i.length=0),w(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function ib(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function ob(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=En(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function sb(r,t,e){var n=e.axesInfo=[];w(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function lb(r,t,e,n){if(Ta(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function ub(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=wf(n)[a]||{},o=wf(n)[a]={};w(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&w(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];w(i,function(u,f){!o[f]&&l.push(u)}),w(o,function(u,f){!i[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function fb(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Tf(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Ta(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Xd(r){Bd.registerAxisPointerClass("CartesianAxisPointer",$x),r.registerComponentModel(qx),r.registerComponentView(rb),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!O(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Ax(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},nb)}function j1(r){_t(Fd),_t(Xd)}var Df="\0_ec_interaction_mutex";function cb(r,t,e){var n=Zd(r);n[t]=e}function vb(r,t,e){var n=Zd(r),a=n[t];a===e&&(n[t]=null)}function Zd(r){return r[Df]||(r[Df]={})}ft({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},mt);var hb={axisPointer:1,tooltip:1,brush:1};function db(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!hb.hasOwnProperty(n.mainType)&&a&&a.model!==e}function $d(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=mr(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=mr(s,[0,o]),a=i=mr(s,[a,i]),n=0}t[0]=mr(t[0],e),t[1]=mr(t[1],e);var l=Ki(t,n);t[n]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=mr(t[n],f);var c;return c=Ki(t,n),a!=null&&(c.sign!==l.sign||c.spani&&(t[1-n]=t[n]+c.sign*i),t}function Ki(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function mr(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var ar=!0,On=Math.min,Er=Math.max,pb=Math.pow,gb=1e4,mb=6,yb=6,Af="globalPan",_b={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Sb={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Mf={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},xb=0,bb=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new ye,n._uid="brushController_"+xb++,w(Ib,function(a,i){this._handlers[i]=oe(a,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||cb(n,Af,this._uid),w(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=q(K(Mf),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;vb(e,Af,this._uid),w(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};w(e,function(a){n[a.panelId]=K(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=F(e,function(h){return q(K(Mf),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Rn(a,e,u,l).add(f).update(f).remove(c).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function f(h,v){var d=e[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):qd(o,Kd(o,d));rl(o,p)}}function c(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),Qo(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Fn);function Kd(r,t){var e=ci[t.brushType].createCover(r,t);return e.__brushOption=t,Qd(e,t),r.group.add(e),e}function qd(r,t){var e=nl(t);return e.endCreating&&(e.endCreating(r,t),Qd(t,t.__brushOption)),t}function jd(r,t){var e=t.__brushOption;nl(t).updateCoverShape(r,t,e.range,e)}function Qd(r,t){var e=t.z;e==null&&(e=gb),r.traverse(function(n){n.z=e,n.z2=e})}function rl(r,t){nl(t).updateCommon(r,t),jd(r,t)}function nl(r){return ci[r.__brushOption.brushType]}function al(r,t,e){var n=r._panels;if(!n)return ar;var a,i=r._transform;return w(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function Jd(r,t){var e=r._panels;if(!e)return ar;var n=t.__brushOption.panelId;return n!=null?e[n]:ar}function Qo(r){var t=r._covers,e=t.length;return w(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function ir(r,t){var e=F(r._covers,function(n){var a=n.__brushOption,i=K(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function wb(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=pb(a*a+i*i,.5);return o>mb}function ep(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function tp(r,t,e,n){var a=new ye;return a.add(new pe({name:"main",style:il(e),silent:!0,draggable:!0,cursor:"move",drift:J(If,r,t,a,["n","s","w","e"]),ondragend:J(ir,t,{isEnd:!0})})),w(n,function(i){a.add(new pe({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:J(If,r,t,a,i),ondragend:J(ir,t,{isEnd:!0})}))}),a}function rp(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Er(a,yb),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,f=e[0][1],c=e[1][1],h=f-i+a/2,v=c-i+a/2,d=f-o,p=c-s,g=d+a,m=p+a;dt(r,t,"main",o,s,d,p),n.transformable&&(dt(r,t,"w",l,u,i,m),dt(r,t,"e",h,u,i,m),dt(r,t,"n",l,u,g,i),dt(r,t,"s",l,v,g,i),dt(r,t,"nw",l,u,i,i),dt(r,t,"ne",h,u,i,i),dt(r,t,"sw",l,v,i,i),dt(r,t,"se",h,v,i,i))}function Jo(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(il(e)),a.attr({silent:!n,cursor:n?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?es(r,i[0]):Tb(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?Sb[s]+"-resize":null})})}function dt(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(Ab(ol(r,t,[[n,a],[n+i,a+o]])))}function il(r){return re({strokeNoScale:!0},r.brushStyle)}function np(r,t,e,n){var a=[On(r,e),On(t,n)],i=[Er(r,e),Er(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Cb(r){return Ts(r.group)}function es(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Dv(e[t],Cb(r));return n[a]}function Tb(r,t){var e=[es(r,t[0]),es(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function If(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=ap(t,a,i);w(n,function(u){var f=_b[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(np(s[0][0],s[1][0],s[0][1],s[1][1])),rl(t,e),ir(t,{isEnd:!1})}function Db(r,t,e,n){var a=t.__brushOption.range,i=ap(r,e,n);w(a,function(o){o[0]+=i[0],o[1]+=i[1]}),rl(r,t),ir(r,{isEnd:!1})}function ap(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function ol(r,t,e){var n=Jd(r,t);return n&&n!==ar?n.clipPath(e,r._transform):K(e)}function Ab(r){var t=On(r[0][0],r[1][0]),e=On(r[0][1],r[1][1]),n=Er(r[0][0],r[1][0]),a=Er(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function Mb(r,t,e){if(!(!r._brushType||Lb(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=al(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var ci={lineX:Rf(0),lineY:Rf(1),rect:{createCover:function(r,t){function e(n){return n}return tp({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=ep(r);return np(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){rp(r,t,e,n)},updateCommon:Jo,contain:rs},polygon:{createCover:function(r,t){var e=new ye;return e.add(new Vn({name:"main",style:il(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new cs({name:"main",draggable:!0,drift:J(Db,r,t),ondragend:J(ir,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:ol(r,t,e)})},updateCommon:Jo,contain:rs}};function Rf(r){return{createCover:function(t,e){return tp({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=ep(t),n=On(e[0][r],e[1][r]),a=Er(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=Jd(t,e);if(o!==ar&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),rp(t,e,l,a)},updateCommon:Jo,contain:rs}}function Pb(r){return r=sl(r),function(t){return Mv(t,r)}}function Rb(r,t){return r=sl(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function kb(r,t,e){var n=sl(r);return function(a,i){return n.contain(i[0],i[1])&&!db(a,t,e)}}function sl(r){return Ue.create(r)}var kf=["x","y","radius","angle","single"],Eb=["cartesian2d","polar","singleAxis"];function Ob(r){var t=r.get("coordinateSystem");return le(Eb,t)>=0}function xr(r){return r+"Axis"}function Nb(r,t){var e=U(),n=[],a=U();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return n}var qi=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),Bb=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=Ef(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=Ef(e);q(this.option,e,!0),q(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=U(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return w(kf,function(a){var i=this.getReferringComponents(xr(a),jg);if(i.specified){n=!0;var o=new qi;w(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new qi;if(h.add(c.componentIndex),e.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",Pe).models[0];v&&w(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Pe).models[0]&&h.add(d.componentIndex)})}}}i&&w(kf,function(u){if(i){var f=a.findComponents({mainType:xr(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new qi;c.add(f[0].componentIndex),e.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(xr(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){w(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(xr(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;w(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else Sr(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});Sr(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;Sr(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Et(n[0]+o,n,[0,100],!0):i!=null&&(o=Et(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=Jc(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function Wb(r,t,e){var n=[1/0,-1/0];Sr(e,function(o){zS(n,o.getData(),t)});var a=r.getAxisModel(),i=gd(a.axis.scale,a,n).calculate();return[i.min,i.max]}var Hb={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(xr(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Gb(a,i,s,r),e.push(o.__dzAxisProxy))});var n=U();return w(e,function(a){w(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function Ub(r){r.registerAction("dataZoom",function(t,e){var n=Nb(e,t);w(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Nf=!1;function Yb(r){Nf||(Nf=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Hb),Ub(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Xb(r){r.registerComponentModel(Vb),r.registerComponentView(Fb),Yb(r)}var Qe=function(){function r(){}return r}(),op={};function an(r,t){op[r]=t}function sp(r){return op[r]}var Zb=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;w(this.option.feature,function(n,a){var i=sp(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),q(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ee);function $b(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=Ft(n,i,a);Dr(t.get("orient"),r,t.get("itemGap"),o.width,o.height),hy(r,n,i,a)}function lp(r,t){var e=ri(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new pe({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var Kb=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),c=[];w(u,function(d,p){c.push(p)}),new Rn(this._featureNames||[],c).add(h).update(h).remove(J(h,null)).execute(),this._featureNames=c;function h(d,p){var g=c[d],m=c[p],y=u[g],_=new ve(y,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(y.title=i.newTitle),g&&!m){if(qb(g))S={onclick:_.option.onclick,featureName:g};else{var b=sp(g);if(!b)return;S=new b}f[g]=S}else if(S=f[m],!S)return;S.uid=Yn("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof Qe;if(!g&&m){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,g),_.setIconStatus=function(C,T){var D=this.option,A=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[C]=T,A[C]&&(T==="emphasis"?Ir:Lr)(A[C])},S instanceof Qe&&S.render&&S.render(_,n,a,i)}function v(d,p,g){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof Qe&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;W(_)?(b={},b[g]=_):b=_,W(S)?(x={},x[g]=S):x=S;var C=d.iconPaths={};w(b,function(T,D){var A=Ka(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var M=A.ensureState("emphasis");M.style=y.getItemStyle();var L=new we({style:{text:x[D],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:Pv({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});A.setTextContent(L),Hn({el:A,componentModel:e,itemName:D,formatterParamsExtra:{title:x[D]}}),A.__title=x[D],A.on("mouseover",function(){var I=y.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:y.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),A.setTextConfig({position:y.get("textPosition")||P}),L.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",D])!=="emphasis"&&a.leaveEmphasis(this),L.hide()}),(d.get(["iconStatus",D])==="emphasis"?Ir:Lr)(A),o.add(A),A.on("click",oe(p.onclick,p,n,a,D)),C[D]=A})}$b(o,e,a),o.add(lp(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!Z(_)&&p){var S=_.style||(_.style={}),b=ds(p,we.makeFont(S)),x=d.x+o.x,C=d.y+o.y+s,T=!1;C+b.height>a.getHeight()&&(m.position="top",T=!0);var D=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(m.position=["100%",D],S.align="right"):x-b.width/2<0&&(m.position=[0,D],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){w(this._features,function(o){o instanceof Qe&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){w(this._features,function(a){a instanceof Qe&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){w(this._features,function(a){a instanceof Qe&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(Ne);function qb(r){return r.indexOf("my")===0}var jb=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ce.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,m=new Uint8Array(g);g--;)m[g]=d.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),C='',T=window.open();T.document.write(C),T.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Qe),Bf="__ec_magicType_stack__",Qb=[["line","bar"],["stack"]],Jb=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return w(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(Vf[a]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,d=Vf[a](h,v,c,i);d&&(re(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",_=c.getReferringComponents(y,Pe).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var b=0;b<=S;b++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=a==="bar"}}};w(Qb,function(c){le(c,a)>=0&&w(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=q({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Qe),Vf={line:function(r,t,e,n){if(r==="bar")return q({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return q({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===Bf;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),q({id:t,stack:a?"":Bf},n.get(["option","stack"])||{},!0)}};ft({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var vi=new Array(60).join("-"),Or=" ";function ew(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function tw(r){var t=[];return w(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(F(e.series,function(v){return v.name})),l=[a.model.getCategories()];w(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Or)],f=0;f=0)return!0}var ns=new RegExp("["+Or+"]+","g");function iw(r){for(var t=r.split(/\n+/g),e=Ga(t.shift()).split(ns),n=[],a=F(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function cw(r){var t=ll(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return up(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function vw(r){fp(r).snapshots=null}function hw(r){return ll(r).length}function ll(r){var t=fp(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var dw=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){vw(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Qe);ft({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var pw=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],cp=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=zf(e,t);w(gw,function(o,s){(!n||!n.include||le(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=ji[n.brushType](0,i,a);n.__rangeOffset={offset:Hf[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){w(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&w(i.coordSyses,function(o){var s=ji[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){w(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=ji[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Hf[n.brushType](i.values,o.offset,mw(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return F(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:Pb(a),isTargetByCursor:kb(a,t,n.coordSysModel),getLinearBrushOtherExtent:Rb(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&le(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=zf(e,t),i=0;ir[1]&&r.reverse(),r}function zf(r,t){return dn(r,t,{includeMainTypes:pw})}var gw={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=U(),o={},s={};!e&&!n&&!a||(w(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),w(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),w(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];w(u.getCartesians(),function(c,h){(le(e,c.getAxis("x").model)>=0||le(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:Gf.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){w(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Gf.geo})})}},Ff=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Gf={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ts(r)),t}},ji={lineX:J(Wf,0),lineY:J(Wf,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[as([a[0],i[0]]),as([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=F(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Wf(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=as(F([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Hf={lineX:J(Uf,0),lineY:J(Uf,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return F(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function Uf(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function mw(r,t){var e=Yf(r),n=Yf(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function Yf(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var is=w,yw=Zg("toolbox-dataZoom_"),_w=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new bb(a.getZr()),this._brushController.on("brush",oe(this._onBrush,this)).mount()),bw(e,n,this,i,a),xw(e,n)},t.prototype.onclick=function(e,n,a){Sw[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new cp(ul(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[h],c,f)}}),fw(i,a),this._dispatchZoomAction(a);function s(u,f,c){var h=f.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=$d(0,c.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];is(e,function(a,i){n.push(K(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Qe),Sw={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(cw(this.ecModel))}};function ul(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function xw(r,t){r.setIconStatus("back",hw(t)>1?"emphasis":"normal")}function bw(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new cp(ul(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}xy("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=ul(n),o=dn(r,i);is(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),is(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:yw+u+c};h[f]=c,a.push(h)}return a});function Q1(r){r.registerComponentModel(Zb),r.registerComponentView(Kb),an("saveAsImage",jb),an("magicType",Jb),an("dataView",lw),an("dataZoom",_w),an("restore",dw),_t(Xb)}var ww=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.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}},t}(ee);function vp(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function hp(r){if(ce.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function Lw(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=ce.transformSupported?","+fl+n:",left"+n+",top"+n),Dw+":"+a}function Xf(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!ce.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=ce.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+fl+":"+o+";":[["top",0],["left",0],[dp,o]]}function Pw(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont());var a=ae(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+a+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),w(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function Rw(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),c=wh(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(Lw(a,e)),i&&n.push("background-color:"+i),w(["width","color","radius"],function(v){var d="border-"+v,p=Yv(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(Pw(f)),c!=null&&n.push("padding:"+ri(c).join("px ")+"px"),n.join(";")+";"}function Zf(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&mg(r,o,e,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var kw=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ce.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,o=i&&(W(i)?document.querySelector(i):So(i)?i:Z(i)&&i(t.getDom()));Zf(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();gg(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=Tw(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=Aw+Rw(t,!this._firstShow,this._longHide)+Xf(i[0],i[1],!0)+("border-color:"+nr(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(W(i)&&n.get("trigger")==="item"&&!vp(n)&&(s=Iw(n,a,i)),W(t))o.innerHTML=t+s;else if(t){o.innerHTML="",O(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||ce.node||!a.getDom())){var o=qf(i,a);this._ticket="";var s=i.dataByCoordSys,l=Fw(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=Ow;f.x=i.x,f.y=i.y,f.update(),$(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var c=Yd(i,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(qf(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=on([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){var s=$(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;cn(a,function(f){if($(f).dataIndex!=null)return l=f,!0;if($(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=oe(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=on([n.tooltipOption],i),l=this._renderMode,u=[],f=Ln("section",{blocks:[],noHeader:!0}),c=[],h=new Mi;w(e,function(y){w(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Wd(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),C=Ln("section",{header:x,noHeader:!zn(x),sortBlocks:!0,blocks:[]});f.blocks.push(C),w(_.seriesDataIndices,function(T){var D=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,M=D.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Qs(S.axis,{value:b}),M.axisValueLabel=x,M.marker=h.makeTooltipMarker("item",nr(M.color),l);var L=pu(D.formatTooltip(A,!0,null)),I=L.frag;if(I){var P=on([D],i).get("valueFormatter");C.blocks.push(P?N({valueFormatter:P},I):I)}L.text&&c.push(L.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=xu(f,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?` + +`:"
",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=$(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=e.positionDefault,p=on([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new Mi;m.marker=y.makeTooltipMarker("item",nr(m.color),v);var _=pu(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,C=x?xu(b?N({valueFormatter:b},x):x,y,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,C,m,T,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",o=$(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(W(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=K(l),l.content=Oe(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=e.positionDefault,d=on(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",m=new Mi;this._showOrMove(d,function(){var y=K(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,e.offsetX,e.offsetY,e.position,n,m)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(W(h)){var g=e.ecModel.get("useUTC"),m=O(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=ja(m.axisValue,v,g)),v=Xv(v,a,!0)}else if(Z(h)){var _=oe(function(S,b){S===this._ticket&&(c.setContent(b,f,e,p,l),this._updatePosition(e,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||O(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!O(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var c=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Z(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),O(n))a=te(n[0],u),i=te(n[1],f);else if(Y(n)){var p=n;p.width=c[0],p.height=c[1];var g=Ft(p,{width:u,height:f});a=g.x,i=g.y,h=null,v=null}else if(W(n)&&l){var m=zw(n,d,c,e.get("borderWidth"));a=m[0],i=m[1]}else{var m=Bw(a,i,o,u,f,h?null:20,v?null:20);a=m[0],i=m[1]}if(h&&(a-=jf(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=jf(v)?c[1]/2:v==="bottom"?c[1]:0),vp(e)){var m=Vw(a,i,o,u,f);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&w(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&w(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&w(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){ce.node||!n.getDom()||(No(this,"_updatePosition"),this._tooltipContent.dispose(),jo("itemTooltip",n))},t.type="tooltip",t}(Ne);function on(r,t,e){var n=t.ecModel,a;e?(a=new ve(e,n,n),a=new ve(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof ve&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(a=new ve(o,a,n)))}return a}function qf(r,t){return r.dispatchAction||oe(t.dispatchAction,t)}function Bw(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function Vw(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function zw(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function jf(r){return r==="center"||r==="middle"}function Fw(r,t,e){var n=ms(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Wn(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=$(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function J1(r){_t(Xd),r.registerComponentModel(ww),r.registerComponentView(Nw),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},mt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},mt)}var Gw=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.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"}},t}(ee),Ww=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ae(e.get("textBaseline"),e.get("textVerticalAlign")),f=new we({style:zt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new we({style:zt(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){ql(d,"_"+e.get("target"))}),p&&v.on("click",function(){ql(p,"_"+e.get("subtarget"))}),$(f).eventData=$(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),h&&i.add(v);var m=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ft(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),m=i.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var C=new pe({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(Ne);function eT(r){r.registerComponentModel(Gw),r.registerComponentView(Ww)}function hi(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Rr(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(t[i])}return n.join(" ")}var cl=function(r){B(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=Gt(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=Hw,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ir(this.childAt(0))},t.prototype.downplay=function(){Lr(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):_e(h,v,s,n),$a(h)}if(this._updateCommon(e,n,l,a,i),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Te(h,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,h,v,d,p,g,m;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Vr(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Hs(e.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var x=e.getItemVisual(n,"style"),C=x.fill;if(s instanceof Nr){var T=s.style;s.useStyle(N({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(N({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(n,"liftZ"),A=this._z2;D!=null?A==null&&(this._z2=s.z2,s.z2+=D):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;Br(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:C,defaultOpacity:x.opacity});function L(R){return M?e.getName(R):hi(e,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),rr(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=$(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Tn(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Tn(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return h_(e.getItemVisual(n,"symbolSize"))},t}(ye);function Hw(r,t){this.parent.drift(r,t)}function Qi(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Qf(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function Jf(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Vr(t),cursorStyle:t.get("cursor")}}var mp=function(){function r(t){this.group=new ye,this._SymbolCtor=t||cl}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Qf(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Jf(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||n.removeAll(),t.diff(i).add(function(c){var h=f(c);if(Qi(t,h,c,e)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!Qi(t,d,c,e)){n.remove(v);return}var p=t.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):_e(v,m,a)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Jf(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Qf(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.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}},t}(ee),yr=J,ss=w,va=ye,yp=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new va),this.group.add(this._selectorGroup=new va),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var f=e.getBoxLayoutParams(),c={width:a.getWidth(),height:a.getHeight()},h=e.get("padding"),v=Ft(f,c,h),d=this.layoutInner(e,o,v,i,l,u),p=Ft(re({width:d.width,height:d.height},f),c,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=lp(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),f=U(),c=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),ss(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` +`)){var g=new va;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(p)[0];if(!f.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),b=y.getVisual("style"),x=this._createItem(m,p,d,v,n,e,_,b,S,c,i);x.on("click",yr(ec,p,null,i,h)).on("mouseover",yr(ls,m.name,null,i,h)).on("mouseout",yr(us,m.name,null,i,h)),a.ssr&&x.eachChild(function(C){var T=$(C);T.seriesIndex=m.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(p,!0)}else a.eachRawSeries(function(C){if(!f.get(p)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(p))return;var D=T.indexOfName(p),A=T.getItemVisual(D,"style"),M=T.getItemVisual(D,"legendIcon"),L=yg(A.fill);L&&L[3]===0&&(L[3]=.2,A=N(N({},A),{fill:_g(L,"rgba")}));var I=this._createItem(C,p,d,v,n,e,{},A,M,c,i);I.on("click",yr(ec,null,p,i,h)).on("mouseover",yr(ls,null,p,i,h)).on("mouseout",yr(us,null,p,i,h)),a.ssr&&I.eachChild(function(P){var R=$(P);R.seriesIndex=C.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();ss(e,function(u){var f=u.type,c=new we({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Br(c,{normal:h,emphasis:v},{defaultText:u.title}),Co(c)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,f,c,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=Yw(f,i,l,u,v,g,h),b=new va,x=i.getModel("textStyle");if(Z(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var C=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;b.add(Xw({itemWidth:d,itemHeight:p,icon:f,iconRotate:C,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,D=s,A=o.get("formatter"),M=n;W(A)&&A?M=A.replace("{name}",n??""):Z(A)&&(M=A(n));var L=g?x.getTextColor():i.get("inactiveColor");b.add(new we({style:zt(x,{text:M,x:T,y:p/2,fill:L,align:D,verticalAlign:"middle"},{inheritColor:L})}));var I=new pe({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Hn({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(R){R.silent=!0}),I.silent=!c,this.getContentGroup().add(b),Co(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Dr(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Dr("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:c[p]+=h[g]+d,v[1-p]+=f[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+h[g],_[m]=Math.max(f[m],h[m]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ne);function Yw(r,t,e,n,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),ss(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:zo(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Xw(r){var t=r.icon||"roundRect",e=Gt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function ec(r,t,e,n){us(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),ls(r,t,e,n)}function _p(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[o],g=[-v.x,-v.y];n||(g[i]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=ae(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?y[i]+=a[o]-d[o]:m[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,f.setPosition(g),c.setPosition(m),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-i]),c.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new pe({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&_e(f,{x:C.contentPosition[0],y:C.contentPosition[1]},p?e:null),this._updatePageInfoView(e,C),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",W(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Ji[o],l=eo[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=h;++g)_=S(f[g]),(!_&&y.e>m.s+i||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(y,_.s))&&m.i=C&&x.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t}(yp);function jw(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function Qw(r){_t(Sp),r.registerComponentModel(Kw),r.registerComponentView(qw),jw(r)}function tT(r){_t(Sp),_t(Qw)}var Jw={label:{enabled:!0},decal:{show:!1}},ac=ue(),eC={};function tC(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=K(Jw);q(n.label,r.getLocaleModel().get("aria"),!1),q(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=U();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),ac(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(Z(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=Ql(h.ecModel,h.name,eC,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,y))}else{var d=h.getRawData(),p={},g=ac(h).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var m=d.count();d.each(function(b){var x=p[b],C=d.getName(b)||b+"",T=Ql(h.ecModel,C,g,m),D=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(D,T))})}function S(b,x){var C=b?N(N({},x),b):x;return C.dirty=!0,C}})}}function i(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=re(c.option,f),!!c.get("enabled")){if(u.setAttribute("role","img"),c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(h,d),g;if(!(h<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),r.eachSeries(function(T,D){if(D1?c.get(["series","multiple",L]):c.get(["series","single",L]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var I=T.getData();if(I.count()>v){var P=c.get(["data","partialData"]);A+=o(P,{displayCnt:v})}else A+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),V=c.get(["data","separator","end"]),H=c.get(["data","excludeDimensionId"]),E=[],k=0;k":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},nC=function(){function r(t){var e=this._condVal=W(t)?new RegExp(t):Sg(t)?t:null;if(e==null){var n="";Q(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return W(e)?this._condVal.test(t):fe(e)?this._condVal.test(t+""):!1},r}(),aC=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),iC=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ve);function bp(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=yC(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=F(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return kr(t,c[0])&&(h=!0,c[0]=v),kr(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function yC(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:fe(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function wp(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function _C(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function SC(r,t,e,n,a,i,o,s){for(var l=_C(r,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],g=bp(a,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||p<0)break;if(Qt(m,y)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](m,y),c=m,h=y;else{var _=m-u,S=y-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],C=t[b*2+1];x===m&&C===y&&g=n||Qt(x,C))v=m,d=y;else{A=x-u,M=C-f;var P=m-u,R=x-m,V=y-f,H=C-y,E=void 0,k=void 0;if(s==="x"){E=Math.abs(P),k=Math.abs(R);var z=A>0?1:-1;v=m-z*E*o,d=y,L=m+z*k*o,I=y}else if(s==="y"){E=Math.abs(V),k=Math.abs(H);var G=M>0?1:-1;v=m,d=y-G*E*o,L=m,I=y+G*k*o}else E=Math.sqrt(P*P+V*V),k=Math.sqrt(R*R+H*H),D=k/(k+E),v=m-A*o*(1-D),d=y-M*o*(1-D),L=m+A*o*D,I=y+M*o*D,L=It(L,Lt(x,m)),I=It(I,Lt(C,y)),L=Lt(L,It(x,m)),I=Lt(I,It(C,y)),A=L-m,M=I-y,v=m-A*E/k,d=y-M*E/k,v=It(v,Lt(u,m)),d=It(d,Lt(f,y)),v=Lt(v,It(u,m)),d=Lt(d,It(f,y)),A=m-v,M=y-d,L=m+A*k/E,I=y+M*k/E}r.bezierCurveTo(c,h,v,d,m,y),c=L,h=I}else r.lineTo(m,y)}u=m,f=y,p+=i}return g}var Cp=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),xC=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Cp},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Qt(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[c++],d=i[c++],p=i[c++],g=i[c++],m=i[c++],y=i[c++];var b=u?Cl(s,v,p,m,e,f):Cl(l,d,g,y,e,f);if(b>0)for(var x=0;x=0){var S=u?Tl(l,d,g,y,C):Tl(s,v,p,m,C);return u?[e,S]:[S,e]}}s=m,l=y;break}}},t}(xe),bC=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Cp),wC=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new bC},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Qt(a[s*2-2],a[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function DC(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=F(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=TC(u,a==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,m=g-p;if(m<.001)return"transparent";w(h,function(_){_.offset=(_.coord-p)/m}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var y=new $c(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=g,y}}}function AC(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&MC(i,t))){var o=t.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function MC(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function IC(r,t){return isNaN(r)||isNaN(t)}function LC(r){for(var t=r.length/2;t>0&&IC(r[t*2-2],r[t*2-1]);t--);return t-1}function cc(r,t){return[r[t*2],r[t*2+1]]}function PC(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function Ap(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var k=d.getState("emphasis").style;k.lineWidth=+d.style.lineWidth+1}$(d).seriesIndex=e.seriesIndex,rr(d,V,H,E);var z=fc(e.get("smooth")),G=e.get("smoothMonotone");if(d.setShape({smooth:z,smoothMonotone:G,connectNulls:C}),p){var X=s.getCalculationInfo("stackedOnSeries"),j=0;p.useStyle(re(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),X&&(j=fc(X.get("smooth"))),p.setShape({smooth:z,stackedOnSmooth:j,smoothMonotone:G,connectNulls:C}),Cn(p,e,"areaStyle"),$(p).seriesIndex=e.seriesIndex,rr(p,V,H,E)}var ne=this._changePolyState;s.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ne)}),this._polyline.onHoverStateChange=ne,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=f,this._step=A,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){$(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=tr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new cl(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Re.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=tr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Re.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Rl(this._polyline,e),n&&Rl(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new xC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new wC({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");Z(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=Z(c)?c(null):c;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(g);i?(m=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(m=S.r0,y=S.r,_=b[0])}else{var x=a;i?(m=x.x,y=x.x+x.width,_=v.x):(m=x.y+x.height,y=x.y,_=v.y)}var C=y===m?0:(_-m)/(y-m);l&&(C=1-C);var T=Z(c)?c(d):f*C+h,D=p.getSymbolPath(),A=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(Ap(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new we({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=LC(l);f>=0&&(Br(s,Vr(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?gp(o,v):hi(o,c)},enableTextSetter:!0},RC(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?p:0)*(y?-1:1),x=(m?0:-p)*(y?-1:1),C=m?"x":"y",T=PC(c,S,C),D=T.range,A=D[1]-D[0],M=void 0;if(A>=1){if(A>1&&!v){var L=cc(c,D[0]);u.attr({x:L[0]+b,y:L[1]+x}),o&&(M=h.getRawValue(D[0]))}else{var L=f.getPointOn(S,C);L&&u.attr({x:L[0]+b,y:L[1]+x});var I=h.getRawValue(D[0]),P=h.getRawValue(D[1]);o&&(M=uv(a,d,I,P,T.t))}i.lastFrameIndex=D[0]}else{var R=e===1||i.lastFrameIndex>0?D[0]:0,L=cc(c,R);o&&(M=h.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+x})}if(o){var V=zr(u);typeof V.setLabelText=="function"&&V.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,h=SC(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(d=Pt(h.stackedOnCurrent,h.current,a,o,l),v=Pt(h.current,null,a,o,l),g=Pt(h.stackedOnNext,h.next,a,o,l),p=Pt(h.next,null,a,o,l)),uc(v,p)>3e3||f&&uc(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:p}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),_e(u,m,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),_e(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&y.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var C=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"?t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v)):i==="minmax"&&t.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/v));var d=void 0;W(i)?d=EC[i]:Z(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,OC))}}}}}function iT(r){r.registerChartView(kC),r.registerSeriesModel(mC),r.registerLayout(pl("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Mp("line"))}var Nn=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return si(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)w(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,S=1,b=0;bg){_=(x+y)/2;break}b===1&&(S=C-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Ve);Ve.registerClass(Nn);var NC=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return si(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Ms(Nn.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Nn),BC=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),vc=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new BC},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?c-fMath.PI/2&&fs)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Pa(i,e,$(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Re),hc={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=ro(t.x,r.x),s=no(t.x+t.width,a),l=ro(t.y,r.y),u=no(t.y+t.height,i),f=sa?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=no(t.r,r.r),i=ro(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},dc={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new pe({shape:N({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?vc:or,f=new u({shape:n,z2:1});f.name="item";var c=Ip(a);if(f.calculateTextPosition=VC(c,{isRoundCap:u===vc}),i){var h=f.shape,v=a?"r":"endAngle",d={};h[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?_e:Te)(f,{shape:d},i)}return f}};function WC(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function pc(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?_e:Te)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?_e:Te)(e,{shape:u},f,a)}function gc(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function YC(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Ip(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function yc(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=vn(n.getModel("itemStyle"),f,!0);N(f,c),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=Vr(n);Br(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:hi(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,zC(r,g==="outside"?v:g,Ip(o),n.get(["label","rotate"]))}Ym(p,d,i.getRawValue(e),function(y){return gp(t,y)});var m=n.getModel(["emphasis"]);rr(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),Cn(r,n),YC(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function XC(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var ZC=function(){function r(){}return r}(),_c=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new ZC},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function $C(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function Lp(r,t,e){if(vl(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function KC(r,t,e){var n=r.type==="polar"?or:pe;return new n({shape:Lp(t,e,r),silent:!0,z2:0})}function oT(r){r.registerChartView(GC),r.registerSeriesModel(NC),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,J(fd,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,cd("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Mp("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var bc=Math.PI*2,ga=Math.PI/180;function Pp(r,t){return Ft(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Rp(r,t){var e=Pp(r,t),n=r.get("center"),a=r.get("radius");O(a)||(a=[0,a]);var i=te(e.width,t.getWidth()),o=te(e.height,t.getHeight()),s=Math.min(i,o),l=te(a[0],s/2),u=te(a[1],s/2),f,c,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,c=v[1]||0}else O(n)||(n=[n,n]),f=te(n[0],i)+e.x,c=te(n[1],o)+e.y;return{cx:f,cy:c,r0:l,r:u}}function qC(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=Pp(n,e),s=Rp(n,e),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*ga,v=n.get("endAngle"),d=n.get("padAngle")*ga;v=v==="auto"?h-bc:-v*ga;var p=n.get("minAngle")*ga,g=p+d,m=0;a.each(i,function(H){!isNaN(H)&&m++});var y=a.getSum(i),_=Math.PI/(y||m)*2,S=n.get("clockwise"),b=n.get("roseType"),x=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var T=S?1:-1,D=[h,v],A=T*d/2;bg(D,!S),h=D[0],v=D[1];var M=kp(n);M.startAngle=h,M.endAngle=v,M.clockwise=S;var L=Math.abs(v-h),I=L,P=0,R=h;if(a.setLayout({viewRect:o,r:f}),a.each(i,function(H,E){var k;if(isNaN(H)){a.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:c,r:b?NaN:f});return}b!=="area"?k=y===0&&x?_:H*_:k=L/m,kk?(G=R+T*k/2,X=G):(G=R+A,X=z-A),a.setItemLayout(E,{angle:k,startAngle:G,endAngle:X,clockwise:S,cx:l,cy:u,r0:c,r:b?Et(H,C,[c,f]):f}),R=z}),Ie?m:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,C=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();i.width=p.width;var g=(n.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-c)/2}}}function ao(r){return r.position==="center"}function e1(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*QC,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}t.each(function(x){var C=t.getItemGraphicEl(x),T=C.shape,D=C.getTextContent(),A=C.getTextGuideLine(),M=t.getItemModel(x),L=M.getModel("label"),I=L.get("position")||M.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),V=te(L.get("edgeDistance"),u),H=L.get("bleedMargin"),E=M.getModel("labelLine"),k=E.get("length");k=te(k,u);var z=E.get("length2");if(z=te(z,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":X>0?"left":"right"}var Ct=Math.PI,vt=0,Yr=L.get("rotate");if(fe(Yr))vt=Yr*(Ct/180);else if(I==="center")vt=0;else if(Yr==="radial"||Yr===!0){var Xp=X<0?-G+Ct:-G;vt=Xp}else if(Yr==="tangential"&&I!=="outside"&&I!=="outer"){var ur=Math.atan2(X,j);ur<0&&(ur=Ct*2+ur);var Zp=j>0;Zp&&(ur=Ct+ur),vt=ur-Ct}if(i=!!vt,D.x=ne,D.y=se,D.rotation=vt,D.setStyle({verticalAlign:"middle"}),wt){D.setStyle({align:lr});var di=D.states.select;di&&(di.x+=D.x,di.y+=D.y)}else{var Xr=D.getBoundingRect().clone();Xr.applyTransform(D.getComputedTransform());var _l=(D.style.margin||0)+2.1;Xr.y-=_l/2,Xr.height+=_l,e.push({label:D,labelLine:A,position:I,len:k,len2:z,minTurnAngle:E.get("minTurnAngle"),maxSurfaceAngle:E.get("maxSurfaceAngle"),surfaceNormal:new be(X,j),linePoints:bt,textAlign:lr,labelDistance:P,labelAlignTo:R,edgeDistance:V,bleedMargin:H,rect:Xr,unconstrainedWidth:Xr.width,labelStyleWidth:D.style.width})}C.setTextConfig({inside:wt})}}),!i&&r.get("avoidLabelOverlap")&&JC(e,n,a,l,u,h,f,c);for(var p=0;p0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c=i.r0}},t.type="pie",t}(Re);function Op(r,t,e){t=O(t)&&{coordDimensions:t}||N({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=ad(n,t).dimensions,i=new nd(a,r);return i.initData(n,e),i}var n1=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}(),a1=ue(),i1=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new n1(oe(this.getData,this),oe(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Op(this,{coordDimensions:["value"],encodeDefaulter:J(_y,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=a1(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Og(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){xo(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Ve);function o1(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(fe(o)&&!isNaN(o)&&o<0)})}}}function sT(r){r.registerChartView(r1),r.registerSeriesModel(i1),n_("pie",r.registerAction),r.registerLayout(J(qC,"pie")),r.registerProcessor(jC("pie")),r.registerProcessor(o1("pie"))}var s1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return si(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.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"}},t}(Ve),Np=4,l1=function(){function r(){}return r}(),u1=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new l1},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var f=u*2,c=i[f]-s/2,h=i[f+1]-l/2;if(e>=c&&n>=h&&e<=c+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h=0&&(u.dataIndex=c+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),c1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=pl("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new f1:new mp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Re);function lT(r){_t(Fd),r.registerSeriesModel(s1),r.registerChartView(c1),r.registerLayout(pl("scatter"))}var v1=function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],h=u[1-f],v=[a,i],d=v[f].get("type"),p=v[1-f].get("type"),g=t.data;if(g&&l){var m=[];w(g,function(S,b){var x;O(S)?(x=S.slice(),S.unshift(b)):O(S.value)?(x=N({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,m.push(x)}),t.data=m}var y=this.defaultValueDimensions,_=[{name:c,type:Ho(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Ho(p),dimsDef:y.slice()}];return Op(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:J(jv,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),h1=["itemStyle","borderColor"],d1=["itemStyle","borderColor0"],p1=["itemStyle","borderColorDoji"],g1=["itemStyle","color"],m1=["itemStyle","color0"];function gl(r,t){return t.get(r>0?g1:m1)}function ml(r,t){return t.get(r===0?p1:r>0?h1:d1)}var y1={seriesType:"candlestick",plan:Xn(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,l=o.getItemStyle();l.fill=gl(s,o),l.stroke=ml(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");N(u,l)}}}}}},_1=["color","borderColor"],S1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){Un(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&Cc(u,c))return;var h=io(c,f,!0);Te(h,{shape:{points:c.ends}},e,f),oo(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=a.getItemGraphicEl(c);if(!n.hasValue(f)){i.remove(h);return}var v=n.getItemLayout(f);if(s&&Cc(u,v)){i.remove(h);return}h?(_e(h,{shape:{points:v.ends}},e,f),$a(h)):h=io(v),oo(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=a.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),Tc(e,this.group);var n=e.get("clip",!0)?dl(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=a.getItemLayout(o),l=io(s);oo(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){Tc(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Re),x1=function(){function r(){}return r}(),b1=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new x1},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(xe);function io(r,t,e){var n=r.ends;return new b1({shape:{points:e?w1(n,r):n},z2:100})}function Cc(r,t){for(var e=!0,n=0;nb?M[i]:A[i],ends:P,brushRect:k(x,C,_)})}function H(G,X){var j=[];return j[a]=X,j[i]=G,isNaN(X)||isNaN(G)?[NaN,NaN]:t.dataToPoint(j)}function E(G,X,j){var ne=X.slice(),se=X.slice();ne[a]=_a(ne[a]+n/2,1,!1),se[a]=_a(se[a]-n/2,1,!0),j?G.push(ne,se):G.push(se,ne)}function k(G,X,j){var ne=H(G,j),se=H(X,j);return ne[a]-=n/2,se[a]-=n/2,{x:ne[0],y:ne[1],width:n,height:se[1]-ne[1]}}function z(G){return G[a]=_a(G[a],1),G}}function d(p,g){for(var m=nt(p.count*4),y=0,_,S=[],b=[],x,C=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var D=C.get(s,x),A=C.get(u,x),M=C.get(f,x),L=C.get(c,x),I=C.get(h,x);if(isNaN(D)||isNaN(L)||isNaN(I)){m[y++]=NaN,y+=3;continue}m[y++]=Dc(C,x,A,M,f,T),S[a]=D,S[i]=L,_=t.dataToPoint(S,null,b),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,S[i]=I,_=t.dataToPoint(S,null,b),m[y++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function Dc(r,t,e,n,a,i){var o;return e>n?o=-1:e0?r.get(a,t-1)<=n?1:-1:1,o}function A1(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=te(ae(r.get("barMaxWidth"),a),a),o=te(ae(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?te(s,a):Math.max(Math.min(a/2,i),o)}function uT(r){r.registerChartView(S1),r.registerSeriesModel(Bp),r.registerPreprocessor(T1),r.registerVisual(y1),r.registerLayout(D1)}var M1=["itemStyle","borderWidth"],Ac=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],uo=new Wa,I1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:Ac[+f],categoryDim:Ac[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=Ic(o,d),g=Mc(o,d,p,h),m=Lc(o,h,g);o.setItemGraphicEl(d,m),i.add(m),Rc(m,h,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var m=Ic(o,d),y=Mc(o,d,m,h),_=Hp(o,y);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?N1(g,h,y):g=Lc(o,h,y,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=y,i.add(g),Rc(g,h,y)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&Pc(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=e.get("clip",!0)?dl(e.coordinateSystem,!1,e):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){Pc(i,$(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}(Re);function Mc(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,c=e.isAnimationEnabled(),h={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};L1(e,i,a,n,h),P1(r,t,a,i,o,h.boundingLength,h.pxSign,f,n,h),R1(e,h.symbolScale,u,n,h);var v=h.symbolSize,d=Hs(e.get("symbolOffset"),v);return k1(e,v,a,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function L1(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(O(o)){var c=[fo(s,o[0])-l,fo(s,o[1])-l];c[1]=0?1:-1:f>0?1:-1}function fo(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function P1(r,t,e,n,a,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,h=Math.abs(e[c.wh]),v=r.getItemVisual(t,"symbolSize"),d;O(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[c.index]=te(d[c.index],h),d[f.index]=te(d[f.index],n?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function R1(r,t,e,n,a){var i=r.get(M1)||0;i&&(uo.attr({scaleX:t[0],scaleY:t[1],rotation:e}),uo.updateTransform(),i/=uo.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function k1(r,t,e,n,a,i,o,s,l,u,f,c){var h=f.categoryDim,v=f.valueDim,d=c.pxSign,p=Math.max(t[v.index]+s,0),g=p;if(n){var m=Math.abs(l),y=Mr(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var S=te(y,t[v.index]),b=Math.max(p+S*2,0),x=_?0:S*2,C=rv(n),T=C?n:kc((m+x)/b),D=m-T*p;S=D/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!C&&n!=="fixed"&&(T=u?kc((Math.abs(u)+x)/b):0),g=T*b-x,c.repeatTimes=T,c.symbolMargin=S}var A=d*(g/2),M=c.pathPosition=[];M[h.index]=e[h.wh]/2,M[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var L=c.bundlePosition=[];L[h.index]=e[h.xy],L[v.index]=e[v.xy];var I=c.barRectShape=N({},e);I[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(M[v.index]+A)),I[h.wh]=e[h.wh];var P=c.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=f.ecSize[h.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function Vp(r){var t=r.symbolPatternSize,e=Gt(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function zp(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,c=i[t.valueDim.index]+o+e.symbolMargin*2;for(yl(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f0:m<0)&&(y=u-1-p),g[l.index]=c*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Fp(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Ar(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=Vp(e),a.add(i),Ar(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function Gp(r,t,e){var n=N({},t.barRectShape),a=r.__pictorialBarRect;a?Ar(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new pe({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function Wp(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=N({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)_e(a,{shape:i},s,l);else{i[o.wh]=0,a=new pe({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],As[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function Ic(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=E1,e.isAnimationEnabled=O1,e}function E1(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function O1(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Lc(r,t,e,n){var a=new ye,i=new ye;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?zp(a,t,e):Fp(a,t,e),Gp(a,e,n),Wp(a,t,e,n),a.__pictorialShapeStr=Hp(r,e),a.__pictorialSymbolMeta=e,a}function N1(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;_e(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?zp(r,t,e,!0):Fp(r,t,e,!0),Gp(r,e,!0),Wp(r,t,e,!0)}function Pc(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];yl(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),w(i,function(o){Tn(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function Hp(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function yl(r,t,e){w(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Ar(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&As[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function Rc(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),h=i.get("scale");yl(r,function(p){if(p instanceof Nr){var g=p.style;p.useStyle(N({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var m=p.ensureState("emphasis");m.style=o,h&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Br(d,Vr(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:hi(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),rr(r,f,c,i.get("disabled"))}function kc(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var B1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Ms(Nn.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Nn);function fT(r){r.registerChartView(I1),r.registerSeriesModel(B1),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,J(fd,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,cd("pictorialBar"))}function Ec(r){return O(r[0])}function Oc(r,t){for(var e=[],n=r.length,a=0;a=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var V1={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;Ec(r)&&(u=r,f=t),Ec(t)&&(u=t,f=r);function c(m,y,_,S,b){var x=m.many,C=m.one;if(x.length===1&&!b){var T=y?x[0]:C,D=y?C:x[0];if(Cg(T))c({many:[T],one:D},!0,_,S,!0);else{var A=s?re({delay:s(_,S)},l):l;Tg(T,D,A),i(T,D,T,D,A)}}else for(var M=re({dividePath:V1[e],individualDelay:s&&function(H,E,k,z){return s(H+_,S)}},l),L=y?Dg(x,C,M):Ag(C,x,M),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,V=0;Vt.length,v=u?Oc(f,u):Oc(h?t:r,[h?r:t]),d=0,p=0;pUp))for(var i=n.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof xe&&!T.animators.length&&T.animateFrom({style:{opacity:0}},C)})})}function Fc(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Gc(r){return O(r)?r.sort().join(","):r}function kt(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Y1(r,t){var e=U(),n=U(),a=U();return w(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=Fc(i),f=Gc(u);n.set(f,{dataGroupId:s,data:l}),O(u)&&w(u,function(c){a.set(c,{key:f,dataGroupId:s,data:l})})}),w(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=Fc(i),u=Gc(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:kt(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:kt(s),data:s}]});else if(O(l)){var c=[];w(l,function(d){var p=n.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:kt(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:kt(s)}]})}else{var h=a.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:kt(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:kt(s)})}}}}),e}function Wc(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:kt(t.oldData[s]),groupIdDim:o.dimension})}),w(ge(r.to),function(o){var s=Wc(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:kt(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Yp(a,i,n)}function cT(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){w(ge(n.seriesTransition),function(a){w(ge(a.to),function(i){for(var o=n.updatedSeries,s=0;si.map(i=>d[i]); +var uo=Object.defineProperty;var co=(e,n,t)=>n in e?uo(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var $t=(e,n,t)=>co(e,typeof n!="symbol"?n+"":n,t);import{s as yt,c as Ee,m as st,q as Et,w as mn,p as Ne,z as We,A as po}from"./lodash-es@4.17.21-BbYRMHep.js";import{z as Kt,d as Wt,f as mo,g as fo,c as go,N as De,a as ho,b as yo,e as I,h as pt,m as bo,i as fn,u as vo,S as Dt,j as _o,k as ze,l as So,n as gn,o as wo,p as Ue,q as Co,r as fe,t as To,s as Oo,v as hn,w as ko,x as yn,y as it,A as qt,B as bn,C as Ao,D as Ro,E as Po,F as le,G as xo,H as Gt,I as z,J as ee,K as Y,L as Mo,M as zt,O as vn,P as J,Q as Eo,R as Do,T as Qe,U as zo,V as Lo,W as Io,X as Fo,Y as Bo,Z as _n,_ as Ht,$ as Vo}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{o as jo,u as $e,a as No,b as Uo,c as Sn,d as $o,e as bt,f as Ko}from"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import{s as ne,k as V,n as ve,e as re,o as Wo,x as we,a as wn,y as Q}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{n as te,j as de,m as P,b as r,p as j,q as he,t as ie,f as T,l as Ce,T as qo,i as Te,w as qe,v as Go,x as Lt,h as mt,y as Cn,F as Tn,z as Ho,A as Yo,C as vt,D as Xo,E as Ae,G as Ve,S as Jo,K as Zo,H as Yt,I as Qo,J as q}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import{d as H}from"./dayjs@1.11.13-BI9XULUM.js";import{p as ea}from"./print-js@1.6.0-CWwD-D0p.js";import{u as On}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import{b as ta}from"./jsbarcode@3.11.6-VhIBVAt6.js";import{L as Xt}from"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{u as It,g as Le,i as ge,s as Pe,a as Rt,c as na,b as ut,d as N,e as se,q as Ke,l as kn,f as An,h as oa,r as _e,j as F,k as aa,m as ct,n as Rn,p as Pn,o as Ft,t as la,v as Jt,w as ce,x as xn,y as ra,z as sa,A as ia,B as ua,C as ca}from"./utils-4asTneEs.js";import{s as da}from"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import{d as ft,c as pa}from"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import{t as ma,a as fa,b as ga,c as ha,d as ya,e as ba}from"./html-to-image@1.11.11-D6_yziCT.js";import{u as Ge,a as va,o as _a,c as Sa,b as wa}from"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import{T as Mn,a as Ca}from"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import{i as Zt}from"./interactjs@1.10.27-hUbPqkuo.js";import{c as Ta}from"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import{r as Oa,u as je,i as ka,a as Aa,b as Ra,c as Pa,d as xa,e as Ma,f as Ea,g as Da,h as za,j as La,k as Ia,l as Fa,m as Ba,n as Va,o as ja,p as Na,q as Ua,s as $a}from"./echarts@5.6.0-Dq866SEH.js";import{h as Ka}from"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";const fi=(e,n)=>{if(typeof n!="string"||!n.trim())throw new TypeError("Expected prefix to be a non-empty string");const t={};return Object.keys(e).forEach(o=>{const a=e[o].default;let l=o.replace(`./${n}/`,"").replace(/^\.\//,"");const s=l.lastIndexOf(".");l=l.substring(0,s);const i=l.split("/"),u=i.shift(),c=i.join(".");u&&(c?(yt(t,u,t[u]||{}),yt(t[u],c,a)):yt(t,u,a||{}))}),t},Wa="modulepreload",qa=function(e){return"/ray-template/"+e},Qt={},D=function(n,t,o){let a=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));a=Promise.allSettled(t.map(u=>{if(u=qa(u),u in Qt)return;Qt[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":Wa,c||(p.as="script"),p.crossOrigin="",p.href=u,i&&p.setAttribute("nonce",i),document.head.appendChild(p),c)return new Promise((v,m)=>{p.addEventListener("load",v),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function l(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return a.then(s=>{for(const i of s||[])i.status==="rejected"&&l(i.reason);return n().catch(l)})},Ga=(e,n,t)=>{const o=e[n];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((a,l)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(l.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Ha=async e=>{var t;const n={};for(const o of e){const a=await Ga(Object.assign({"../lang/en-US.ts":()=>D(()=>import("./en-US-BmeRyTYa.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),"../lang/zh-CN.ts":()=>D(()=>import("./zh-CN-B-kcJT8r.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56]))}),`../lang/${o.key}.ts`,3),l=o.key;l&&(n[l]=((t=a==null?void 0:a.default)==null?void 0:t.message)??{})}return n},gi=e=>{switch(e){case"zh-CN":return{locale:Kt,dateLocal:Wt};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Kt,dateLocal:Wt}}},Ya={darkClassName:"ray-template--dark",lightClassName:"ray-template--light",rayTemplateThemePrimaryColor:"--ray-theme-primary-color",rayTemplateThemePrimaryFadeColor:"--ray-theme-primary-fade-color",preLoadingAnimation:"pre-loading-animation",htmlHeight:"--html-height",htmlWidth:"--html-width"},hi={max:5,closable:!1},yi="loading",bi="",U={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions",appMenuTagOptions:"appMenuTagOptions",appLockScreenPasswordKey:"appLockScreenPasswordKey"},Xa=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],Se={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#dbcb02","#18a058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"},appNaiveUIThemeOverrides:{dark:{common:{borderRadius:"4px",baseColor:"rgb(18, 18, 18)"}},light:{common:{borderRadius:"4px",baseColor:"rgb(255, 255, 255)"}}},echartTheme:"macarons"},En=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Ja="zh-CN",Za="zh-CN",Qa={"zh-CN":"zh-cn","en-US":"en"},el="zh-cn",vi={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/,cssSize:/^auto|unset|fit-content|max-content|min-content|initial|inherit|revert|revert-layer|[-\w]+-webkit-fill-available$/},_i={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},xe=ne(null),Dn=ne(null),tl={setupRouterLoadingBar:!0,setupRouterGuard:!0},nl=["RLogin","ErrorPage","RayTemplateDoc"],et=[],Si=(e,n)=>{const t=V(0),o=V(0),a=V(!1),{clickOutside:l}={},s=p=>{a.value=p},i=p=>{p.preventDefault(),s(!1),te().then(()=>{const{clientX:v,clientY:m}=p;t.value=v,o.value=m,s(!0)})};l&&jo(e,p=>{l(p)});const u=$e(e,"contextmenu",i,n),c=$e(e,"click",()=>{s(!1)});return{stop:()=>{u(),c()},x:ve(t),y:ve(o),show:ve(a),updateShow:s}},Bt=re({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function me(e,n,t){It(Bt,e,n,t)}function gt(e){return ve(Wo(Bt,e))}function ol(){return{...we(ve(Bt))}}let pe;const al=async()=>{const e=oo(),n=await Ha(En);return Ta({legacy:!1,locale:e,messages:n,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Za})},wi=async e=>{const n=await al();e.use(n),pe=n},en=(e,n)=>n,He=e=>{if(!pe)return{t:l=>en(e,l),locale:l=>{}};const{t:n,...t}=pe.global;return{...t,t:(l,...s)=>l?l.includes(".")?n(en(e,l),...s):l:"",locale:l=>{pe.mode==="legacy"?pe.global.locale=l:wn(pe.global.locale)?pe.global.locale.value=l:pe.global.locale=l}}},B=e=>e,ll={path:"/dashboard",component:()=>D(()=>import("./index-Zn8uDOa9.js"),__vite__mapDeps([58,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,59,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,60])),meta:{i18nKey:B("menu.Dashboard"),icon:"dashboard",order:0}},rl=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),sl={path:"/flow",component:()=>D(()=>import("./Flow-XWW4foIy.js"),__vite__mapDeps([61,22,23,2,1,3,4,5,6,7,8,9,10,11,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39,40,41,12,13,14,15,17,18,19,20,21,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Flow"),icon:"other",order:2}},il=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),ul={path:"/axios",name:"RAxios",component:()=>D(()=>import("./index-BhM7EuC5.js"),__vite__mapDeps([62,4,5,6,7,8,2,9,10,63,64,1,3,11,12,13,14,15,16,17,18,19,20,21,42,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56,65])),meta:{i18nKey:B("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},cl=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),dl={path:"barcode",component:()=>D(()=>import("./BarcodeDemo-B0OBSU9q.js"),__vite__mapDeps([66,22,23,2,1,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,11,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},pl=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),ml={path:"/cache-demo",component:()=>D(()=>import("./index-Dk76Wg-2.js"),__vite__mapDeps([67,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,42,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.CacheDemo"),icon:"other",order:3}},fl=Object.freeze(Object.defineProperty({__proto__:null,default:ml},Symbol.toStringTag,{value:"Module"})),gl={path:"/context-menu",component:()=>D(()=>import("./index-B5p3nAYZ.js"),__vite__mapDeps([68,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.ContextMenu"),icon:"other",order:2}},hl=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"})),yl={path:"/directive",component:()=>D(()=>import("./index-e7_TArrI.js"),__vite__mapDeps([69,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{i18nKey:B("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},bl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),vl={path:"/draggable-card",component:()=>D(()=>import("./draggable-card-Bn2yn2QC.js"),__vite__mapDeps([70,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.DraggableCard"),icon:"other",order:2,extra:{label:"drag"}}},_l=Object.freeze(Object.defineProperty({__proto__:null,default:vl},Symbol.toStringTag,{value:"Module"})),Sl={path:"/echart",component:()=>D(()=>import("./index-NT6CxTG0.js"),__vite__mapDeps([71,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,72])),meta:{i18nKey:B("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},wl=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),Cl={path:"/form",component:()=>D(()=>import("./index-RcBdBfte.js"),__vite__mapDeps([73,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},Tl=Object.freeze(Object.defineProperty({__proto__:null,default:Cl},Symbol.toStringTag,{value:"Module"})),Ol={path:"/iframe",component:()=>D(()=>import("./index-p9rF2sQs.js"),__vite__mapDeps([74,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},kl=Object.freeze(Object.defineProperty({__proto__:null,default:Ol},Symbol.toStringTag,{value:"Module"})),Al={path:"/mock-demo",component:()=>D(()=>import("./index-BjsUFS0U.js"),__vite__mapDeps([75,22,23,2,1,3,11,12,13,14,15,16,17,18,19,20,21,4,5,6,7,8,9,10,63,64,42,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},Rl=Object.freeze(Object.defineProperty({__proto__:null,default:Al},Symbol.toStringTag,{value:"Module"})),Pl={path:"/modal-demo",component:()=>D(()=>import("./index-BNHkUzwU.js"),__vite__mapDeps([76,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Modal"),icon:"other",order:3}},xl=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),rt=()=>D(()=>Promise.resolve().then(()=>rs),void 0),Ml={path:"/multi",component:rt,meta:{i18nKey:B("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>D(()=>import("./index-BVc_Gnpy.js"),__vite__mapDeps([77,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:rt,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>D(()=>import("./index-VfNFmfqJ.js"),__vite__mapDeps([78,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:rt,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>D(()=>import("./index-C9W4sfAi.js"),__vite__mapDeps([79,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},El=Object.freeze(Object.defineProperty({__proto__:null,default:Ml},Symbol.toStringTag,{value:"Module"})),Dl={path:"/precision",component:()=>D(()=>import("./index-CAOR_kJ-.js"),__vite__mapDeps([80,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,42,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.CalculatePrecision"),icon:"other",order:2}},zl=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"})),Ll={path:"/qrcode",component:()=>D(()=>import("./index-Ca5uOONJ.js"),__vite__mapDeps([81,82,7,5,6,83,84,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{i18nKey:B("menu.QRCode"),icon:"other",order:2}},Il=Object.freeze(Object.defineProperty({__proto__:null,default:Ll},Symbol.toStringTag,{value:"Module"})),Fl={path:"rely-about",component:()=>D(()=>import("./index-Bf4jaD3y.js"),__vite__mapDeps([85,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39,86])),meta:{i18nKey:B("menu.RelyAbout"),icon:"rely",order:999}},Bl=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"})),Vl={path:"/router-demo",component:rt,meta:{i18nKey:B("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>D(()=>import("./index-C5NvyzDY.js"),__vite__mapDeps([87,22,23,2,1,3,48,5,6,7,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,4,8,9,10,42,43,44,45,46,47,49,50,51,52,53,54,55,56])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>D(()=>import("./index-DmIHrKCj.js"),__vite__mapDeps([88,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},jl=Object.freeze(Object.defineProperty({__proto__:null,default:Vl},Symbol.toStringTag,{value:"Module"})),Nl={path:"/scroll-reveal",component:()=>D(()=>import("./index-DZB7njz5.js"),__vite__mapDeps([89,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39,90])),meta:{i18nKey:B("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Ul=Object.freeze(Object.defineProperty({__proto__:null,default:Nl},Symbol.toStringTag,{value:"Module"})),$l={path:"/segment",component:()=>D(()=>import("./index-Bdu49VSO.js"),__vite__mapDeps([91,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Kl=Object.freeze(Object.defineProperty({__proto__:null,default:$l},Symbol.toStringTag,{value:"Module"})),Wl={path:"/svg-icons",component:()=>D(()=>import("./index-Ch7Iz5Mb.js"),__vite__mapDeps([92,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,93])),meta:{i18nKey:B("menu.SvgIcon"),icon:"other",order:3}},ql=Object.freeze(Object.defineProperty({__proto__:null,default:Wl},Symbol.toStringTag,{value:"Module"})),Gl={path:"/table-pro",component:()=>D(()=>import("./TablePro-CT98TDAq.js"),__vite__mapDeps([94,42,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,63,64,95,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Hl=Object.freeze(Object.defineProperty({__proto__:null,default:Gl},Symbol.toStringTag,{value:"Module"})),Yl={path:"/table",component:()=>D(()=>import("./index-D26iCvfp.js"),__vite__mapDeps([96,42,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Xl=Object.freeze(Object.defineProperty({__proto__:null,default:Yl},Symbol.toStringTag,{value:"Module"})),Jl={path:"/template-hooks",component:()=>D(()=>import("./index-C8q1X2s-.js"),__vite__mapDeps([97,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.TemplateHooks"),icon:"other",order:1}},Zl=Object.freeze(Object.defineProperty({__proto__:null,default:Jl},Symbol.toStringTag,{value:"Module"})),Ql=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":rl,"/src/router/modules/demo/axios copy.ts":il,"/src/router/modules/demo/axios.ts":cl,"/src/router/modules/demo/barcode.ts":pl,"/src/router/modules/demo/cache-demo.ts":fl,"/src/router/modules/demo/context-menu.ts":hl,"/src/router/modules/demo/directive.ts":bl,"/src/router/modules/demo/draggable-card.ts":_l,"/src/router/modules/demo/echart.ts":wl,"/src/router/modules/demo/form.ts":Tl,"/src/router/modules/demo/iframe.ts":kl,"/src/router/modules/demo/mock.ts":Rl,"/src/router/modules/demo/modal.ts":xl,"/src/router/modules/demo/multi-menu.ts":El,"/src/router/modules/demo/precision.ts":zl,"/src/router/modules/demo/qrcode.ts":Il,"/src/router/modules/demo/rely.ts":Bl,"/src/router/modules/demo/router-demo.ts":jl,"/src/router/modules/demo/scroll-reveal.ts":Ul,"/src/router/modules/demo/segment.ts":Kl,"/src/router/modules/demo/svg-icons.ts":ql,"/src/router/modules/demo/table-pro.ts":Hl,"/src/router/modules/demo/table.ts":Xl,"/src/router/modules/demo/template-hooks.ts":Zl});return Object.keys(e).reduce((t,o)=>{const a=e[o].default;if(a)t.push(a);else throw new Error(`[combineRawRouteModules]: ${o} module must export default.`);return t},[])},er=e=>e[0]==="/",zn=(e,n=[],t="")=>{var o;if(!Array.isArray(e))return[];for(const a of e){const l=t+(er(a.path)?a.path:"/"+a.path);if((o=a.children)!=null&&o.length){zn(a.children,n,l);continue}else n.push({...a,path:l})}return n},tr=e=>Array.isArray(e)?zn(Ee(e)):[],nr=e=>e.sort((n,t)=>{var l,s;const o=((l=n.meta)==null?void 0:l.order)??1,a=((s=t.meta)==null?void 0:s.order)??0;return o===a?n.name?t.name?n.name.localeCompare(t.name):-1:1:o-a}),or=e=>{const{beforeEach:n}=e,{getRootPath:t}=Je(),o=(a,l)=>a.path==="/"||l.path==="/login";n((a,l,s)=>{const i=Le(U.token,"localStorage"),u=Le(U.appMenuKey,"sessionStorage",{defaultValue:t.value}),{meta:c,name:f}=a;i!==null?o(a,l)?_t(!0):!ge(f,"Symbol")&&f&&nl.includes(f)?s():Jn(c)?o(a,l)?u?s(u):_t(!0):s():_t(!0):o(a,l)?s():s("/")})},_t=(e=!0)=>{const{router:n}=jt(),{push:t,replace:o}=n,{getRootPath:a}=Je();Pe(U.appMenuKey,a.value,"localStorage"),e?o(a.value):t(a.value)},ar=e=>{var t;const{meta:n}=e;n!=null&&n.ignoreAutoResetScroll||(t=xe.value)==null||t.scrollTo({top:0,left:0,behavior:"smooth"})},lr=e=>{e.beforeEach(()=>{var n;(n=window.$loadingBar)==null||n.start()}),e.afterEach(()=>{var n;(n=window.$loadingBar)==null||n.finish()}),e.onError(()=>{var n;(n=window.$loadingBar)==null||n.error()})},Ln=e=>{const{meta:n={}}=e,{hidden:t,sameLevel:o,env:a}=n,{MODE:l}=Rt();return!(o||t||a&&typeof a=="string"&&a!==l||a&&Array.isArray(a)&&!a.includes(l))},rr={contentTransition:"scale",watermarkSwitch:!1,keepAliveConfig:{maxKeepAliveLength:10,setupKeepAlive:!0,keepAliveExclude:[]},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16,menuWidth:272,inverted:!1,nativeScrollbar:!1},menuTagSwitch:!0,breadcrumbSwitch:!0,copyrightSwitch:!0,drawerPlacement:"right",colorWeakness:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15,xGap:0,yGap:0,cross:!0},dynamicDocumentTitle:!0},In=()=>rr,Ie=ft("setting",()=>{const{appPrimaryColor:{primaryColor:e,primaryFadeColor:n}}=Se,{locale:t}=He(),{locale:o}=Ls(),a=re({primaryColorOverride:{common:{primaryColor:e,primaryColorHover:n,primaryColorPressed:e,primaryColorSuppl:n}},_appTheme:!1,appTheme:"light",localeLanguage:oo(),lockScreenSwitch:!1,appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},...Ee(In())}),l=c=>{t(c),o(c),Pe(U.localeLanguage,c,"localStorage"),a.localeLanguage=c},s=(c,f=.85)=>{const p=na(c,f),v={primaryColor:c,primaryColorHover:p,primaryColorPressed:c,primaryColorSuppl:p},{rayTemplateThemePrimaryColor:m,rayTemplateThemePrimaryFadeColor:g}=Ya,b=document.documentElement;a.primaryColorOverride.common=v,b.style.setProperty(m,c),b.style.setProperty(g,p)},i=(c,f,p)=>{It(a,c,f,p)},u=c=>{const f=document.documentElement;i("colorWeakness",c),ut(f,{filter:c?"invert(100%)":""})};return de(()=>{var c;a._appTheme?a.primaryColorOverride=st({},a.primaryColorOverride,Se.appNaiveUIThemeOverrides.dark):a.primaryColorOverride=st({},a.primaryColorOverride,Se.appNaiveUIThemeOverrides.light),u(a.colorWeakness),a.dynamicDocumentTitle||(document.title=((c=a.sideBarLogo)==null?void 0:c.title)||"Ray Template")}),{...we(a),updateLocale:l,changePrimaryColor:s,updateSettingState:i,toggleColorWeakness:u}},{persist:{key:U.appPiniaSettingStore,omit:["lockScreenSwitch"],storage:window.localStorage}}),Fn={...mo,onRegister:{type:[Function,Array],default:null}},Bn={actionSpan:{type:Number,default:1},actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!0},onUpdateOpen:{type:[Function,Array],default:null},"onUpdate:open":{type:[Function,Array],default:null},...fo};function sr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const Ci=P({name:"RCollapse",props:Object.assign({},Fn,{...Bn,open:{type:Boolean,default:!0},cols:{type:Number,default:4},bordered:{type:Boolean,default:!0}}),render(){const{$slots:e,$props:n}=this,{labelPlacement:t,showFeedback:o,...a}=n;return r(Un,j(a,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(pr,a,sr(e)?e:{default:()=>[e]})]})}}),ir={...go,restrictionElement:{type:[String,HTMLElement,Function,Object],default:"body"},dad:{type:Boolean,default:!0},restrictRectOptions:{type:Object,default:void 0},defaultPosition:{type:[Object,String],default:()=>({x:0,y:0})},width:{type:[String,Number],default:600},zIndex:{type:Number,default:void 0},animation:{type:Boolean,default:!1},padding:{type:Object,default:void 0}},Ti=P({name:"RDraggableCard",props:ir,setup(e,{expose:n}){const t=ie("cardRef");let o=null;const a={x:0,y:0},l="draggable-card-container",s=T(()=>({"--r-draggable-card-width":N(e.width),"--r-draggable-card-z-index":e.zIndex}));let i=!1;(()=>{if(!document.getElementById(l)){const v=document.createElement("div");v.id=l,document.documentElement.appendChild(v)}})();const c=()=>{const v=se(t),m=typeof e.restrictionElement=="string"?Ke(e.restrictionElement):e.restrictionElement;let g=null;return Array.isArray(m)?g=m[0]:g=se(m),{card:v,restrictionElement:g}},f=(v,m)=>{const{defaultPosition:g,padding:b}=e,{x:h=0,y:_=0}=b??{},{x:d,y,width:w,height:C}=v,{width:S,height:A}=m;if(typeof g=="string")switch(g){case"top-left":return{x:h+d,y:_+y};case"top-right":return{x:w-S-h+d,y:_+y};case"bottom-left":return{x:h+d,y:C-A-_+y};case"bottom-right":return{x:w-S-h+d,y:C-A-_+y};default:return{x:h+d,y:_+y}}else{const{x:O,y:L}=g;return{x:O+d+h,y:L+y+_}}},p=()=>{const{card:v,restrictionElement:m}=c();if(!v||!e.dad)return;const g=m==null?void 0:m.getBoundingClientRect(),b=v.querySelector(".n-card-header"),h=Object.assign({},{restriction:m,endOnly:!0},e.restrictRectOptions);if(g&&!i){const _=f(g,v.getBoundingClientRect());v.style.transform=`translate(${_.x}px, ${_.y}px)`,a.x=_.x,a.y=_.y}o=Zt(v).draggable({inertia:!0,autoScroll:!0,allowFrom:b?".n-card-header":".n-card__content",modifiers:[Zt.modifiers.restrictRect(h)],listeners:{move:_=>{v.setAttribute("can-drag","true"),a.x+=_.dx,a.y+=_.dy,v.style.transform=`translate(${a.x}px, ${a.y}px)`}}}).resizable(!1),i=!0};return n(),de(()=>{e.dad?p():(o==null||o.unset(),o=null)}),Ce(()=>{te(()=>{p()})}),{cardRef:t,CONTAINER_ID:l,cssVars:s}},render(){const{$attrs:e,$slots:n,$props:t,CONTAINER_ID:o,cssVars:a,animation:l}=this;return r(qo,{to:`#${o}`},{default:()=>[l?r(Mn,{name:"draggable-card",appear:!0,mode:"out-in"},{default:()=>[r(De,j(e,t,{class:"r-draggable-card",style:[a],ref:"cardRef"}),{...n})]}):r(De,j(e,t,{class:"r-draggable-card",style:[a],ref:"cardRef"}),{...n})]})}}),ur={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>kn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>An()},onRegister:{type:[Function,Array],default:null}},cr=Symbol("USE_CHART_PROVIDER_KEY"),dr=oa(),tn="__R_CHART_DOWN_LOAD_CHART__";dr.forEach(e=>{Oa(e.name,e.theme)});const Oi=P({name:"RChart",props:ur,setup(e,{expose:n}){const{getAppTheme:t}=X(),o=ie("rayChartRef"),a=ie("rayChartWrapperRef"),l=ne();let s,i;const{echartTheme:u}=Se;let c;const f=T(()=>[{label:"下载图片",key:tn,disabled:!(l.value&&l.value.getDom())}]),p=T(()=>({"--ray-chart-width":N(e.width),"--ray-chart-height":N(e.height)})),v=V(!1);let m;const g={aria:e.showAria},b=Te(cr,{}),h=async()=>{var k;je([Aa,Ra,Pa,xa,Ma,Ea,Da,za]),je([La,Ia,Fa,Ba,Va,ja]),je([Na,Ua]),je([$a]);try{je((k=e.use)==null?void 0:k.filter(Boolean))}catch(M){console.error("[RChart register error]: ",M)}},_=()=>{const{theme:k}=b||{};if(l.value&&C(),k){y(k);return}if(e.theme==="default"){e.autoChangeTheme?y("dark"):y("");return}if(e.theme)y(e.theme);else{const M=e.autoChangeTheme&&t.value?`${u}-dark`:u;y(M)}},d=k=>{let M=Q(k);return M=(W=>Object.assign({},M,W))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),M},y=(k=u)=>{var ke;const M=o.value,$=d(e.options),{height:W,width:oe}=M.getBoundingClientRect(),{onSuccess:G,onError:ye}=e;try{l.value=ka(M,k,{width:oe===0?200:void 0,height:W===0?200:void 0}),G&&F(G,l.value),e.nextTick?(l.value.setOption({}),te(()=>{var ae;$&&((ae=l.value)==null||ae.setOption($))})):$&&((ke=l.value)==null||ke.setOption($))}catch(ae){throw ye&&F(ye),new Error(`[RChart render error]: ${ae}`)}finally{const{onFinally:ae}=e;ae&&F(ae)}},w=()=>{var k;return!!((k=l.value)!=null&&k.isDisposed())},C=()=>{var k;w()||(k=l.value)==null||k.dispose()},S=()=>{l.value&&l.value.resize()},A=(k,M)=>{if(k===tn&&!w()){const{filename:W,...oe}=e.downloadOptions;aa(l.value.getDataURL(oe),W??`${new Date().getTime()}`)}const{onDropdownSelect:$}=e;$&&F($,k,M)},O=()=>{var M;if(e.autoResize&&(s||(s=Et(S,500)),i||(i=Uo(e.autoResizeObserverTarget||a,s))),(M=l.value)!=null&&M.getDom()||!v.value&&e.intersectionObserver)return;_(),m==null||m.stop();const{onRegister:k}=e;k&&l.value&&F(k,l.value,O,L)},L=()=>{C(),s==null||s.cancel(),i==null||i.stop(),m==null||m.stop(),m=null,s=null,i=null};return qe(()=>t.value,()=>{e.autoChangeTheme&&(C(),_())}),de(()=>{var k,M;e.intersectionObserver&&(m=No(e.intersectionObserverTarget||a,([$])=>{v.value=$.isIntersecting},e.intersectionOptions)),e.watchOptions?c=Ka(()=>e.options,$=>{var G;const W=d($),oe=Object.assign({},An(),e.setChartOptions);(G=l.value)==null||G.setOption(W,oe)},{deep:!0,throttle:e.watchOptionsThrottleWait}):c==null||c(),e.loading?(k=l.value)==null||k.showLoading(kn(e.loadingOptions)):(M=l.value)==null||M.hideLoading(),e.showAria!==g.aria&&l.value&&(l.value.setOption(d(e.options)),g.aria=e.showAria),v.value&&!w()&&O()}),n(),Go(async()=>{await h()}),Ce(()=>{O()}),Lt(()=>{L(),c==null||c()}),{rayChartRef:o,cssVarsRef:p,rayChartWrapperRef:a,moreDropDownOptions:f,dropdownSelect:A}},render(){const{title:e,contentStyle:n,preset:t,moreDropDownOptions:o,dropdownSelect:a,bordered:l,dropdownOptions:s}=this,{cardExtra:i}=this.$slots;return t==="card"?r(De,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:n,bordered:l,embedded:!0},{default:_e(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:_e(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":_e(i,{defaultElement:r(jn,{iconSize:18,cursor:"pointer",options:s||o,trigger:"click",onSelect:a.bind(this),placement:"bottom-end"},null)})}):r("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),ki=()=>{let e,n,t;const o=(u,c,f)=>{u&&(e=u,n=f,t=c)},a=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:n,render:t,echartInst:e}};return[o,{getChartInstance:a,isDisposed:()=>{var u;return!!((u=a().echartInst)!=null&&u.isDisposed())},dispose:()=>a().dispose.call(null),render:()=>a().render.call(null)}]},pr=P({name:"RCollapseGrid",props:Bn,setup(e){const n=V(!e.open),t=T(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{const{onUpdateOpen:l,"onUpdate:open":s}=e;n.value=!n.value,l&&F(l,n.value),s&&F(s,n.value)},a=l=>r("div",{class:"collapse-icon",onClick:o.bind(this)},[r("span",null,[l?e.collapseToggleText[0]:e.collapseToggleText[1]]),r(x,{customClassName:`collapse-icon--arrow ${l?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return de(()=>{n.value=!e.open}),{modelCollapsed:n,collapseClick:o,CollapseIcon:a,cssVars:t}},render(){const{$slots:{collapse:e,action:n,default:t},CollapseIcon:o,$props:a,modelCollapsed:l,xGap:s,yGap:i,collapsedRows:u,cssVars:c,actionSpan:f,bordered:p}=this;return r(De,{bordered:p,style:[c]},{default:()=>r(ho,j({class:"ray-collapse-grid"},a,{collapsed:l,xGap:s||12,yGap:i||12,collapsedRows:u}),{default:()=>[t==null?void 0:t(),r(yo,{suffix:!0,class:"ray-collapse-grid__suffix--btn",span:f},{default:()=>[r(I,{justify:"end",align:"center"},{default:()=>[n==null?void 0:n(),e?e(l):o(l)]})]})]})})}}),mr={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},x=P({name:"RIcon",props:mr,setup(e){const n=T(()=>`#${e.prefix}-${e.name}`),t=T(()=>({"--ray-icon-width":e.width?N(e.width):N(e.size),"--ray-icon-height":e.height?N(e.height):N(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:n,cssVars:t,iconClick:a=>{const{onClick:l}=e;l&&F(l,a)}}},render(){return r("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[r("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[r("use",j({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),fr={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:[Boolean,String],default:!0},iframeClass:{type:String,default:null}},Ai=P({name:"RIframe",props:fr,setup(e,{expose:n}){const t=T(()=>({"--ray-iframe-frameborder":N(e.frameborder),"--ray-iframe-width":N(e.width),"--ray-iframe-height":N(e.height)})),o=ie("iframeRef"),a=V(!0),l=i=>{a.value=!1;const{onSuccess:u}=e;u&&F(u,o.value,i)},s=i=>{a.value=!1;const{onError:u}=e;u&&F(u,i)};return $e(o,"load",l),$e(o,"error",s),n({iframeInst:o}),{cssVars:t,iframeRef:o,spinShow:a}},render(){return r("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[r(pt,j(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>r("iframe",{class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title,loading:typeof this.lazy=="boolean"?"lazy":this.lazy},null)})])}}),gr={...bo,fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446}},hr="r-modal__preset-card--fullscreen",Vn="r-modal",Me={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},Ri=P({name:"RModal",props:gr,setup(e){const n=T(()=>({[Me.width]:N(e.width??600),[Me.cardWidth]:N(e.cardWidth??600),[Me.dialogWidth]:N(e.dialogWidth??446)})),t=ct(),o=T(()=>e.preset==="card"&&e.fullscreen);return{cssVars:n,isFullscreenCardType:o,uuidEl:t}},render(){const{$props:e,$slots:n,$attrs:t}=this,{preset:o,...a}=e,{cssVars:l,uuidEl:s,isFullscreenCardType:i}=this;return r(fn,j({class:[Vn,i?hr:""],style:[l,i?"height: 100vh":""],preset:o},{id:s},a,t),{...n})}}),yr=()=>{const{create:e,destroyAll:n}=vo();return{create:o=>{const{content:a,...l}=o;let s=a;l.preset==="card"&&l.fullscreen&&(s=()=>mt(Dt,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"hover",style:{width:"auto",maxHeight:"calc(var(--html-height) - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof a=="function"?a():a}));const{preset:i,fullscreen:u,width:c,cardWidth:f,dialogWidth:p}=o,v=e({...l,content:s}),{key:m}=v,g={[Me.width]:N(c??600),[Me.cardWidth]:N(f??600),[Me.dialogWidth]:N(p??446)};return te(()=>{const[b]=Ke(`[internalkey="${m}"]`)||[];b&&(u&&i==="card"&&ut(b,{width:"100%",height:"100vh"}),ut(b,g),Rn(b,Vn))}),v},destroyAll:n}},br={..._o,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function vr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const jn=P({name:"RMoreDropdown",props:br,render(){let e;const{iconSize:n,cursor:t,icon:o}=this,{default:a}=this.$slots;return r(ze,j(this.$props,this.$attrs,{placement:"bottom-start"}),vr(e=_e(a,{defaultElement:r(x,{name:o,size:n,cursor:t},null)}))?e:{default:()=>[e]})}}),Fe={...So,tableFlexHeight:{type:[String,Number],default:void 0},renderWrapperHeader:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null}},ue={tableIconSize:"18",tableKey:Symbol("r-table")},_r=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],Sr=P({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...Fe},setup(e){return{size:V(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:a=>{const{onChangeSize:l}=e;l&&F(l,a)}}},render(){return r(gn,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(x,{name:"adjustment",size:ue.tableIconSize,cursor:"pointer"},null)]})}}),wr=P({name:"TableFullscreen",setup(){const{wrapperRef:e}=Te(ue.tableKey,{}),[n,{toggleFullscreen:t,isEnabled:o}]=On(e);return{toggleFullscreen:t,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:n,$t:t}=this;return r(x,{name:"fullscreen",size:ue.tableIconSize,cursor:"pointer",onClick:()=>{n||window.$message.warning(t("globalMessage.isEnabledFullscreen")),e()}},null)}}),Cr=()=>r(x,{name:"draggable",size:14,cursor:"grab"},null),nn=({icon:e,title:n,onClick:t,customClassName:o})=>r(Ue,{showArrow:!1},{trigger:()=>r(x,{name:e,size:ue.tableIconSize,cursor:"pointer",customClassName:o,onClick:t==null?void 0:t.bind(null)},null),default:()=>n}),Pt=(e,n)=>{if(!n)return[null,null];for(let t=0;tEe(e.columns).filter(u=>u.type?(n=u,!1):!0).map((u,c)=>{const{key:f,title:p,children:v,fixed:m,isResizable:g,...b}=u,h=m==="left",_=m==="right",d={...b,title:p,key:f,fixed:m,isLeftFixedActivated:h,isRightFixedActivated:_,isResizable:g};return{...d,suffix:()=>r(I,{style:"padding-left: 32px;"},{default:()=>[r(nn,{icon:"row_head",title:"固定在列首",customClassName:h?St:"",onClick:l.bind(this,"left",d,c)},null),r(Ue,{showArrow:!1},{trigger:()=>r(x,{name:"resize_h",size:ue.tableIconSize,cursor:"pointer",customClassName:g?St:"",onClick:a.bind(this,d,c)},null),default:()=>"修改列宽"}),r(nn,{icon:"row_end",title:"固定在列尾",customClassName:_?St:"",onClick:l.bind(this,"right",d,c)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:u}=e;u&&F(u,i)},a=(i,u)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[u]=i,o(t.value)},l=(i,u,c)=>{const f=`${i}FixedActivated`,p=`${i==="left"?"right":"left"}FixedActivated`;u[p]=!1,u[f]=!u[f],u[f]?u.fixed=i:u.fixed=void 0,t.value[c]=u,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:u,dropPosition:c})=>{const[f,p]=Pt(u,t.value);if(f===null||p===null)return;f.splice(p,1);const[v,m]=Pt(i,t.value);v===null||m===null||(c==="before"?v.splice(m,0,u):v.splice(m+1,0,u),mn(n)||v.unshift(n),o(v))}}},render(){return r(Ue,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(x,{name:"setting",size:ue.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(wo,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:Cr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),Or=P({name:"TablePrint",props:Fe,setup(e){const{wrapperRef:n}=Te(ue.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:o={},domToImageOptions:a}={},title:l}=e;(o.documentTitle===""||o.documentTitle===void 0||o.documentTitle===null)&&(o.documentTitle=typeof l=="string"?l:""),Pn(n,{printOptions:o,domToImageOptions:a})}}},render(){return r(x,{name:"print",size:ue.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),kr=P({name:"TablePropsSelect",props:{...Fe,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const n=V(!1),t=V([]),o=l=>{const{onPopselectChange:s}=e;s&&F(s,l)};return(()=>{const{striped:l,bordered:s,onInitialed:i}=e;l&&t.value.push("striped"),s&&t.value.push("bordered"),i&&F(i,t.value)})(),{propsPopselectValue:t,popoverShow:n,updatePopselectValue:o}},render(){return r(gn,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:_r,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(x,{name:"expanded",size:ue.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function Ar(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const Rr=P({name:"RTable",inheritAttrs:!1,props:Fe,setup(e,n){const{expose:t,emit:o}=n,a=ie("rTableInst"),l=ie("wrapperRef"),s=ct(16),i=ct(16),u=re({x:0,y:0,showContextMenu:!1}),c=re({size:e.size}),f=V(Object.assign({striped:!1,bordered:!1},Ne(e,"striped","bordered"))),p=T(()=>{const{title:y,tool:w,cardProps:C}=e,{headerStyle:S={}}=C??{};return!y&&!w?Object.assign({},{paddingTop:"0px"},S):S}),v=(y,w)=>{const{onContextMenuClick:C}=e;C&&F(C,y,w),u.showContextMenu=!1},m=(y,w)=>{var S;return{...(S=e.rowProps)==null?void 0:S.call(e,y,w),onContextmenu:e.disabledContextMenu?void 0:A=>{A.preventDefault(),u.showContextMenu=!1,te().then(()=>{u.showContextMenu=!0,u.x=A.clientX,u.y=A.clientY})}}},g=y=>{c.size=y},b=y=>{const{onUpdateColumns:w,"onUpdate:columns":C}=e;w&&F(w,y),C&&F(C,y)},h=()=>{const{toolOptions:y}=e;return y==null?void 0:y.filter(Boolean).map(w=>typeof w=="function"?w():w)},_=y=>{Object.keys(f.value).forEach(C=>{f.value[C]=y.includes(C)})},d=y=>{const{tool:w}=y;if(!w)return;const C=()=>r(I,{align:"center"},{default:()=>[r(Or,y,null),r(Sr,j(y,{onChangeSize:g.bind(this)}),null),r(wr,null,null),r(Tr,j(y,{onUpdateColumn:b.bind(this)}),null),r(kr,j(y,{onPopselectChange:_.bind(this),onInitialed:_.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let S;return r(I,{align:"center"},Ar(S=h())?S:{default:()=>[S]})}:()=>r(I,{align:"center"},{default:()=>[C(),h()]}):C};return Ce(()=>{const{onRegister:y}=e;y&&a.value&&F(y,a.value,{uuidTable:i,uuidWrapper:s,wrapperRef:l})}),Cn(ue.tableKey,{uuidTable:i,uuidWrapper:s,wrapperRef:l}),t(),{uuidWrapper:s,uuidTable:i,contextMenuReactive:u,rTableInst:a,combineRowProps:m,contextMenuSelect:v,privateReactive:c,tool:d,wrapperRef:l,propsPopselectValue:f,cardHeaderStyle:p}},render(){const{$props:e,$attrs:n,$slots:t,uuidTable:o,contextMenuReactive:a,uuidWrapper:l,privateReactive:s,propsPopselectValue:i,cardHeaderStyle:u}=this,{class:c,...f}=n,{tool:p,combineRowProps:v,contextMenuSelect:m}=this,{renderWrapperHeader:g,wrapperBordered:b,disabledContextMenu:h,contextMenuOptions:_,title:d,tableFlexHeight:y,cardProps:w,...C}=e,{headerStyle:S,...A}=w??{};return r(De,j(A,{id:l},f,{ref:"wrapperRef",bordered:b,class:c,style:u}),{default:()=>r(Tn,null,[r(Co,j({id:o},C,i,{rowProps:v.bind(this),size:s.size,ref:"rTableInst",style:{height:y!=null?N(y):null}}),{...t}),h?null:r(ze,{show:a.showContextMenu,placement:"bottom-start",trigger:"manual",x:a.x,y:a.y,options:_,onClickoutside:()=>a.showContextMenu=!1,onSelect:m.bind(this)},null)]),header:g?_e(d,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var O;return(O=t.tableFooter)==null?void 0:O.call(t)},action:()=>{var O;return(O=t.tableAction)==null?void 0:O.call(t)}})}}),Pr=()=>{const e=ne();let n={};const t=(m,g)=>{m&&(e.value=m,n=g)},o=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[t,{getTableInstance:o,clearFilters:()=>o().clearFilters.call(null),clearSorter:()=>o().clearSorter.call(null),downloadCsv:m=>o().downloadCsv.call(null,m),filters:m=>o().filters.call(null,m),page:m=>o().page.call(null,m),scrollTo:m=>o().scrollTo(m),sort:(m,g)=>o().sort.call(null,m,g),print:m=>{const{uuidWrapper:g}=n;if(g){const b=document.getElementById(g);Pn(b,m)}},filter:m=>o().filter.call(null,m)}]},Nn=(e,n,t)=>{var o;if(e.length)for(const a of e){if(a[n]===t)return a;if((o=a==null?void 0:a.children)!=null&&o.length){const l=Nn(a.children,n,t);if(l)return l}}},on=e=>{const n=Q(e);return n?n.findIndex(o=>{const{type:a,multiple:l}=o;if(a==="selection"&&(l==null||l===!0))return!0})!==-1:!0},xr=(e,n,t,o)=>{const a=Q(e);return a?n.reduce((l,s)=>{const i=Q(t).findIndex(c=>c[o]===s);if(i!==-1)return l.push(Q(t)[i]),l;const u=a.findIndex(c=>c[o]===s);return u!==-1&&l.push(a[u]),l},[]):t},Pi=(e,n,t)=>{const o=V([]),a=V([]),{rowKey:l="key",onChange:s}=t||{},i=T(()=>on(n)),u=(g,b,h)=>{o.value=g,a.value=Q(xr(e,g,a,l)),s==null||s(g,a.value,h),on(n)},c=()=>o.value,f=()=>a.value,p=()=>{o.value=[],a.value=[],s==null||s(o.value,a.value,{row:void 0,action:"uncheckAll"})},v=g=>{if(g==null)return;let b;o.value=o.value.filter(h=>h!==g),a.value=a.value.filter(h=>h[l]===g?(b=h,!1):!0),s==null||s(o.value,a.value,{row:b,action:"uncheck"})},m=g=>{if(o.value.includes(g))return;const b=!i.value&&o.value.length>=1,h=Nn(Q(e)||[],l,g);b?o.value=[g]:o.value.push(g),h&&(b?a.value=[h]:a.value.push(h),s==null||s(o.value,a.value,{row:h,action:"check"}))};return Ft(()=>{p()}),[o,{checkedRows:a,checkedRowKeysBind:u,getKeys:c,getRows:f,clearAll:p,clearKey:v,selectKey:m}]},Mr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},Er=P({name:"RTransitionComponent",__name:"index",props:Ho({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},Mr),setup(e){const{getKeepAliveInclude:n}=Xr(),{getKeepAliveConfig:t}=X();return(o,a)=>{const l=Xo("RouterView");return Ae(),Yo("div",null,[r(l,null,{default:vt(({Component:s,route:i})=>[s?(Ae(),Ve(Mn,{key:0,name:o.transitionPropName,mode:o.transitionMode,appear:o.transitionAppear},{default:vt(()=>[(Ae(),Ve(Jo,null,{default:vt(()=>[Q(t).setupKeepAlive?(Ae(),Ve(Zo,{key:0,max:Q(t).maxKeepAliveLength,include:Q(n),exclude:Q(t).keepAliveExclude},[(Ae(),Ve(Yt(s),{key:i.fullPath}))],1032,["max","include","exclude"])):(Ae(),Ve(Yt(s),{key:i.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Qo("",!0)]),_:1})])}}}),Un=P({name:"RForm",props:Fn,setup(e,{expose:n}){const t=ie("formRef");return Ce(()=>{const{onRegister:o}=e;o&&t.value&&F(o,t.value)}),n(),{formRef:t}},render(){const{$attrs:e,$props:n,$slots:t}=this;return r(fe,j(e,n,{ref:"formRef"}),{...t})}}),Dr=(e,n)=>{const t=ne(),o=c=>{c&&(t.value=c)},a=()=>{if(!t.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return t.value};return[o,{getFormInstance:a,validate:(c,f)=>a().validate.call(null,c,f),restoreValidation:()=>a().restoreValidation.call(null),formModel:()=>Ee(e)||{},formRules:()=>Ee(n)||{}}]},zr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],Lr={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},Ir=We({...To,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...zr);function Fr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const xt=e=>{const{icon:n,label:t}=e;return n?r(I,{align:"center",wrap:!1,size:"small"},{default:()=>{var o;return[(o=_e(n))==null?void 0:o(),r("div",null,[t])]}}):t},Br=e=>{if(typeof e.popover=="string")return r(Ue,null,{trigger:()=>xt(e),default:()=>e.popover});if(ge(e.popover,"Object")){const{popover:n}=e,{label:t,...o}=n;return r(Ue,o,{trigger:()=>xt(e),default:()=>t})}},Vr=P({name:"RSegment",props:Ir,setup(e,{expose:n}){const t=T(()=>{const{width:o}=e;let a="";switch(o){case"block":a="100%";break;case"fitContent":a="fit-content";break;default:a=typeof o=="number"?N(o):"fit-content"}return{"--r-segment-width":a}});return n(),{cssVars:t}},render(){let e;const{$props:n,options:t,cssVars:o,themeOverrides:a}=this;return r(hn,j(n,{style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},Lr,a)}),Fr(e=t.map(l=>r(Oo,{key:l.key,name:l.key,tab:l.popover?Br(l):xt(l),disabled:l.disabled},{...l.slots})))?e:{default:()=>[e]})}}),jr={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},xi=P({name:"RBarcode",props:jr,setup(e){const n=ie("barcodeRef"),t=T(()=>({"--r-barcode-width":N(e.width),"--r-barcode-height":N(e.height)}));let o;const a=()=>{try{const{format:l,text:s,options:i,onSuccess:u}=e,c=Object.assign({},i,{format:l});ta(n.value,s!=null?s.toString():"",c),u&&F(u,s,l,i)}catch(l){const{onError:s}=e;s&&F(s,l)}finally{const{onFinally:l}=e;l&&F(l)}};return de(()=>{e.watchText?o=qe(()=>e.text,a):o==null||o()}),Ce(()=>{a()}),Lt(()=>{o==null||o()}),{barcodeRef:n,cssVars:t}},render(){const{barcodeRender:e,loading:n,cssVars:t}=this,o=["r-barcode",{"r-barcode--loading":n}];return r(pt,{class:"r-barcode-spin",show:n},{default:()=>[e==="canvas"?r("canvas",{class:o,style:t,ref:"barcodeRef"},null):r("svg",{class:o,style:t,ref:"barcodeRef"},null)]})}}),Nr={...We(Fe,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object,default:()=>({})},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0}};function Ur(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const Mi=P({name:"RTablePro",props:Nr,setup(e){const[n,{clearFilters:t,clearSorter:o,downloadCsv:a,filters:l,page:s,scrollTo:i,sort:u,print:c,filter:f}]=Pr(),[p,{getPage:v,getPageSize:m,setCallback:g,setItemCount:b,resetPagination:h,getItemCount:_}]=Fs(void 0,{prefix:O=>`共 ${O.itemCount} 条`}),d=T(()=>e.request),y=()=>({getItemCount:_,getPage:v,getPageSize:m}),w=()=>{const{onTablePaginationUpdate:O}=e;O&&F(O,y())},C=O=>{const L=Object.assign({},e.requestConfig,O),{formatRangeTime:k}=L;let M=L.params||{};return k!=null&&k.length&&M&&k.forEach(W=>{const{key:oe,target:G}=W,ye=M[oe];if(ye&&(G!=null&&G.length)){const[ke,ae]=ye;M[G[0]]=ke,M[G[1]]=ae}else M[oe]=null,M[G[0]]=null,M[G[1]]=null}),M=la(M),Object.assign({},M,{page:v(),pageSize:m()})},S=O=>{var k;h();const L=C(O);(k=d.value)==null||k.call(d,L)},A=O=>{var k;const L=C(O);(k=d.value)==null||k.call(d,L)};return de(()=>{b(e.paginationCount),g(()=>{const{manual:O}=e;O||A(),w()})}),Ce(()=>{const{onRegister:O}=e;O&&F(O,{getTablePagination:y,runTableRequest:S,clearFilters:t,clearSorter:o,downloadCsv:a,filters:l,page:s,scrollTo:i,sort:u,print:c,filter:f,getCurrentTableRequestParams:C,resetTablePagination:h})}),{register:n,paginationRef:p}},render(){const{register:e,$props:n,paginationRef:t,$slots:o}=this,{onRegister:a,showPagination:l,...s}=n;return r(Rr,j(s,{onRegister:e,pagination:l?t:void 0}),Ur(o)?o:{default:()=>[o]})}}),Ei=()=>{const e=V(),n=b=>{b&&(e.value=b)},t=()=>{if(!e.value)throw new Error("[useTablePro]: table instance is not ready yet. if you are using useTablePro, please make sure you have called register method in onRegister event.");return e.value};return[n,{clearFilters:()=>t().clearFilters.call(null),getTableProInstance:t,clearSorter:()=>t().clearSorter.call(null),downloadCsv:b=>t().downloadCsv.call(null,b),filters:b=>t().filters.call(null,b),page:b=>t().page.call(null,b),scrollTo:b=>t().scrollTo(b),sort:(b,h)=>t().sort.call(null,b,h),getTablePagination:()=>t().getTablePagination.call(null),runTableRequest:b=>t().runTableRequest.call(null,b),print:b=>t().print.call(null,b),getCurrentTableRequestParams:b=>t().getCurrentTableRequestParams.call(null,b),resetTablePagination:()=>t().resetTablePagination.call(null)}]},$r=()=>({grid:!0,partial:!1,keyboard:{enabled:!0}}),Kr={use:{type:Array,default:void 0},watchData:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},data:{type:Object,default:void 0},options:{type:Object,default:$r()},onRegister:{type:[Function,Array],default:void 0}};let an=!1;const Di=P({name:"RFlow",props:Kr,setup(e){const n=ie("flowDomRef"),t=T(()=>{const{width:p,height:v}=e;return{"--r-flow-width":N(p),"--r-flow-height":N(v)}}),o=ne(),a={nodeTextEdit:!1,edgeTextEdit:!1,textEdit:!1};let l;const s={nodes:[],edges:[]},i={readonly:e.readonly},u=()=>{var p;an||((p=e.use)==null||p.filter(Boolean).forEach(v=>Xt.use(v)),an=!0)},c=p=>{if(!o.value)return;const v=Object.entries(a).reduce((m,[g])=>(m[g]=!p,m),{});Object.assign(a,v,{isSilentMode:p}),o.value.updateEditConfig(a)},f=p=>{if(u(),!n.value)return;const{options:v,readonly:m}=e;o.value=new Xt({container:Q(n.value),...We(v,"container")}),o.value.render(p||s),c(m)};return de(()=>{e.watchData?l=qe(()=>e.data,p=>{o.value?p&&o.value.renderRawData(p):f(p)}):l==null||l(),e.readonly!==i.readonly&&(c(e.readonly),i.readonly=e.readonly)}),Ce(()=>{f();const{onRegister:p}=e;p&&o.value&&F(p,o.value)}),{flowDomRef:n,cssVars:t}},render(){const{cssVars:e}=this;return r("div",{class:"r-flow",style:[e],ref:"flowDomRef"},null)}}),zi=()=>{let e;return[o=>{o&&(e=o)},{getFlowInstance:()=>{if(!e)throw new Error("[useFlow]: flow instance is not ready yet. if you are using useFlow, please make sure you have called register method in onRegister event.");return e}}]},Wr=(e,n,t)=>!e||typeof e!="object"?!1:e[n]===t,$n=(e,n,t)=>{const o=[];if(Wr(e,n,t))return o.push(e),o;if(e.children&&e.children.length>0)for(const a of e.children){const l=$n(a,n,t);l.length>0&&o.push(e,...l)}return o},qr=(e,n,t)=>{const o=[];for(const a of e){const l=$n(a,n,t);l.length>0&&o.push(...l)}return o},ln=e=>{const{dynamicDocumentTitle:n}=Ie();if(!n)return;const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:o}=Ie(),a=o?o.title:"";document.title=t+" - "+a},Gr=e=>{const{meta:{icon:n}}=e;if(!n)return;if(ge(n,"Object"))return()=>n;const{menuConfig:t}=Ie(),{collapsed:o}=Vt(),a=mt(x,{name:n,size:o?t.collapsedIconSize:t.iconSize,cursor:"pointer"},{});return()=>a},Kn=e=>{const{meta:{extra:n}}=e;if(!n)return;const{show:t}=n;if(t===!1)return;const{t:o}=He(),{label:a,icon:l,type:s,i18nLabel:i}=n,u={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},c=()=>i?o(i):a||null,f=()=>l&&(i||a)||!l&&(i||a)?null:{"padding-right":"0"};if(ge(n,"Object"))return()=>mt(ko,{...u,type:s||"primary",style:f()},{default:()=>c(),icon:()=>l})},rn=()=>{const{getRootPath:e}=Je();return Le(U.appMenuKey,"sessionStorage",{defaultValue:e.value})},Hr=()=>Le(U.appMenuTagOptions,"sessionStorage",{defaultValue:[]}),Wn=()=>nr(Ql()),Yr=()=>tr(Wn()),Mt=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let tt;const qn=(e,n)=>{var t;if(tt&&Jt(tt.fullPath,n))return tt;for(const o of e){if(Jt(o.fullPath,n))return tt=o,o;if((t=o.children)!=null&&t.length){qn(o.children,n);continue}}},Vt=ft("menu",()=>{const{push:e,getRoutes:n}=Ge(),t=va(),{t:o}=He(),{setKeepAliveInclude:a}=Jr(),l=re({menuKey:rn(),options:[],collapsed:!1,menuTagOptions:Hr(),breadcrumbOptions:[],currentMenuOption:null}),s=V(!0),i=(d,y,w)=>{It(l,d,y,w)},u=d=>{const{meta:y}=d,{i18nKey:w,noLocalTitle:C}=y,S=T(()=>w?o(`${w}`):C),A={...d,key:d.fullPath,label:()=>mt(yn,null,{default:()=>S.value}),breadcrumbLabel:S.value},O=Object.assign({},A,{icon:Gr(d),extra:Kn(d)});return d.fullPath===rn()&&(l.currentMenuOption=O),O.show=Ln(O),O},c=d=>{l.breadcrumbOptions=Q(qr(l.options,"fullPath",d))},f=(d,y=!0)=>{const C=Array.isArray(d)?[...d]:[d];y?l.menuTagOptions.push(...C):l.menuTagOptions=C,Pe(U.appMenuTagOptions,l.menuTagOptions)},p=(d,y)=>{l.menuTagOptions.find(C=>C.fullPath===d)||l.menuTagOptions.push(y),l.menuTagOptions=l.menuTagOptions.filter(C=>{var S;return(S=C.fullPath)==null?void 0:S.startsWith("/")}),Pe(U.appMenuTagOptions,l.menuTagOptions)},v=(d,y,w)=>{const{meta:C}=y;if(C.windowOpen)window.open(C.windowOpen);else{e({path:String(d),query:w});const{sameLevel:S}=C;if(a(y),ln(y),!S)p(d,y),c(d),l.menuKey=d,l.currentMenuOption=y,Pe(U.appMenuKey,d);else{const A=Ne(u(y),Mt);l.breadcrumbOptions.find(L=>L.key===A.key)||l.breadcrumbOptions.push({...A,fullPath:String(A.key)})}}},m=async(d,y)=>{const[w]=d.split("?"),C=n().find(S=>S.path===w);if(!((C==null?void 0:C.path)==="/"||!(C!=null&&C.path)||(C==null?void 0:C.path)==="/login")&&C){const S=Ne(C,Mt);v(w,u({...S,fullPath:S.path}),y)}},g=()=>new Promise(d=>{const y=(C,S)=>{var O;const A=[];for(const L of C){let k=`${S.endsWith("/")?S:S+"/"}${L.path}`;if(k=k.replace(/\/+/g,"/"),(O=L.children)!=null&&O.length)L.children=y(L.children,k);else if(!Jn(L.meta))continue;A.push(u({...L,fullPath:k}))}return A};l.options=y(Wn(),"");const w=l.currentMenuOption||Qr(l.options);w&&(l.breadcrumbOptions.length||c(w.key),p(w.fullPath,w),ln(w)),d()}),b=d=>l.collapsed=d,h=(d,y=1)=>{const w=l.menuTagOptions.splice(d,y);return Pe(U.appMenuTagOptions,l.menuTagOptions),w},_=async()=>{s.value&&(await g(),s.value=!1)};return qe(()=>t.fullPath,async(d,y)=>{await _(),d!==y&&await m(d,t.query)},{immediate:!0}),{...we(l),changeMenuModelValue:v,collapsedMenu:b,spliceMenTagOptions:h,setMenuTagOptions:f,resolveOption:u,updateMenuState:i,setupAppMenu:g}},{persist:{key:U.appPiniaMenuStore,storage:window.localStorage,pick:["menuKey","collapsed"]}}),Gn=ft("signing",()=>{const{clearRoutes:e,replace:n}=Ge(),t=re({signingCallback:{}}),o=s=>new Promise((i,u)=>{mn(s)?u({code:1,message:"登陆失败",data:null}):(t.signingCallback={role:"admin",name:s.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},i({code:0,message:"登陆成功",data:t.signingCallback}))}),a=s=>{const{closeAll:i}=no(),{appPiniaMenuStore:u,appPiniaSigningStore:c,token:f,signing:p,appMenuKey:v}=U;window.$message.info("账号退出中..."),ce("__all_sessionStorage__","sessionStorage"),ce(c,"localStorage"),ce(u,"localStorage"),ce(f,"localStorage"),ce(p,"localStorage"),ce(v,"localStorage"),ce(U.isAppLockScreen,"localStorage"),i(),s&&(e(),n("/"),setTimeout(()=>{window.location.reload()},0))},l=()=>{a(!0)};return{...we(t),signing:o,logout:l,clearSigningCallback:a}},{persist:{key:U.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),Hn=ft("keepAlive",()=>{const e=re({keepAliveInclude:[]}),n=()=>e.keepAliveInclude.length,t=a=>{const l=n(),{name:s,meta:{keepAlive:i}}=a,{maxKeepAliveLength:u}=Ie().keepAliveConfig;if(i){if(l=u&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(s))}},o=()=>e.keepAliveInclude;return{...we(e),setKeepAliveInclude:t,getKeepAliveInclude:o}},{persist:{key:U.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),Oe=()=>{const e=Vt(),n=T(()=>e.options),t=T(()=>e.breadcrumbOptions),o=T(()=>e.menuKey),a=T(()=>e.menuTagOptions),l=T(()=>e.currentMenuOption),s=T(()=>e.collapsed);return{getMenuOptions:n,getBreadcrumbOptions:t,getMenuKey:o,getMenuTagOptions:a,getCurrentMenuOption:l,getCollapsed:s}},Be=()=>{const{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}=Vt();return{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}},X=()=>{const e=Ie(),n=T(()=>e.drawerPlacement),t=T(()=>e.primaryColorOverride),o=T(()=>e._appTheme),a=T(()=>e.appTheme),l=T(()=>e.menuTagSwitch),s=T(()=>e.breadcrumbSwitch),i=T(()=>e.localeLanguage),u=T(()=>e.lockScreenSwitch),c=T(()=>e.copyrightSwitch),f=T(()=>e.contentTransition),p=T(()=>e.watermarkSwitch),v=T(()=>e.watermarkConfig),m=T(()=>e.appRootRoute),g=T(()=>e.sideBarLogo),b=T(()=>e.keepAliveConfig),h=T(()=>e.menuConfig),_=T(()=>e.colorWeakness),d=T(()=>e.dynamicDocumentTitle);return{getDrawerPlacement:n,getPrimaryColorOverride:t,getAppTheme:o,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getLocaleLanguage:i,getLockScreenSwitch:u,getCopyrightSwitch:c,getContentTransition:f,getWatermarkSwitch:p,getWatermarkConfig:v,getAppRootRoute:m,getSideBarLogo:g,getKeepAliveConfig:b,getMenuConfig:h,getAppThemeStr:a,getColorWeakness:_,getDynamicDocumentTitle:d}},K=()=>{const{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=Ie();return{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}},Yn=()=>{const e=Gn();return{getSigningCallback:T(()=>e.signingCallback)}},Xn=()=>{const{signing:e,logout:n,clearSigningCallback:t}=Gn();return{signing:e,logout:n,clearSigningCallback:t}},Xr=()=>{const e=Hn();return{getKeepAliveInclude:T(()=>e.keepAliveInclude)}},Jr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:n}=Hn();return{setKeepAliveInclude:e,getKeepAliveInclude:n}},Li=e=>{const n=pa();e.use(n),n.use(da)},Jn=e=>{const{getSigningCallback:n}=Yn(),{role:t}=e;return et!=null&&et.length&&et.includes(n.value.role)||!t||!(t!=null&&t.length)?!0:t?t.includes(n.value.role):!0},Zr=e=>{const{setupRouterLoadingBar:n,setupRouterGuard:t}=tl;n&&lr(e),t&&or(e)},Qr=e=>{if(!Array.isArray(e))return;const n=t=>{for(const o of t){if((!o.children||o.children.length===0)&&!o.meta.windowOpen)return o;{const a=n(o.children||[]);if(a)return a}}};return n(e)},es=ne(),ts=P({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=Ge(),{getSideBarLogo:n}=X();return{sideBarLogo:n,sideBarLogoClick:()=>{n.value&&n.value.url&&(n.value.jumpType==="station"?e.push(n.value.url):window.open(n.value.url))},TemplateLogo:({cursor:a})=>{if(!n.value)return null;if(typeof n.value.icon=="string")return r(x,{name:n.value.icon,size:"30",cursor:a},null);if(ge(n.value.icon,"Object"))return _e(n.value.icon)}}},render(){const{sideBarLogo:e,collapsed:n,TemplateLogo:t,sideBarLogoClick:o}=this;return e!=null&&e.title?r("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:o.bind(this),ref:es},[e!=null&&e.icon?n?r(it,{placement:"right"},{trigger:()=>t({cursor:"pointer"}),default:()=>e.title}):t({cursor:"pointer"}):n?r(it,{placement:"right"},{trigger:()=>r(qt,{type:"primary",size:18},{default:()=>{var a;return[((a=e.title)==null?void 0:a[0])||null]}}),default:()=>e.title}):null,r(qt,{class:[n?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(yn,null,{default:()=>[e.title]})]})]):null}}),ns=P({name:"AppMenu",setup(){const e=ne(),{changeMenuModelValue:n,collapsedMenu:t,updateMenuState:o}=Be(),{getMenuConfig:a}=X(),{getMenuOptions:l,getCollapsed:s,getMenuKey:i}=Oe(),u=T({get:()=>(setTimeout(()=>{p(),xn()},300),i.value),set:()=>{c.value&&me("globalDrawerValue",!1)}}),{isTabletOrSmaller:c}=Xe({observer:m=>{m&&o("collapsed",!1)}}),f=T({get:()=>gt("globalDrawerValue").value,set:m=>{me("globalDrawerValue",m)}}),p=()=>{const m=u.value;m!=null&&te(()=>{var g,b;return(b=(g=e.value)==null?void 0:g.showOption)==null?void 0:b.call(g,m)})};return{isTabletOrSmaller:c,BasicMenu:()=>r(Ro,{class:"app-menu__sider",showTrigger:!c.value,collapseMode:a.value.collapsedMode,collapsedWidth:a.value.collapsedWidth,onUpdateCollapsed:t.bind(this),width:a.value.menuWidth,nativeScrollbar:a.value.nativeScrollbar,ref:Dn,collapsed:s.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)},inverted:a.value.inverted},{default:()=>[a.value.menuSiderBarLogo?r(ts,{collapsed:s.value},null):null,r(Ao,{ref:e,class:"r-menu--app",keyField:"fullPath",value:u.value,"onUpdate:value":m=>u.value=m,options:l.value,indent:a.value.collapsedIndent,collapsed:s.value,collapsedIconSize:a.value.collapsedIconSize,collapsedWidth:a.value.collapsedWidth,onUpdateValue:(m,g)=>{n(m,g)},accordion:a.value.accordion,iconSize:a.value.iconSize,inverted:a.value.inverted},null)]}),modelGlobalDrawerValue:f}},render(){const{isTabletOrSmaller:e,BasicMenu:n}=this;return e?r(bn,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":t=>this.modelGlobalDrawerValue=t,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[r(n,null,null)]}):r(n,null,null)}});class os{constructor(){$t(this,"pendingRequest");this.pendingRequest=new Map}isAppending(n){var t;return((t=n.cancelConfig)==null?void 0:t.cancel)??!0}generateRequestKey(n){const{method:t,url:o}=n;return[o||"",t||"",JSON.stringify(n.params),JSON.stringify(n.data)].join("&")}addPendingRequest(n){var t;if(this.isAppending(n)){n.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const o=this.generateRequestKey(n);if(this.pendingRequest.has(o))n.signal=(t=this.pendingRequest.get(o))==null?void 0:t.signal;else{const a=new AbortController;n.signal=a.signal,this.pendingRequest.set(o,a)}}}removePendingRequest(n){const t=this.generateRequestKey(n);this.pendingRequest.has(t)&&(this.pendingRequest.get(t).abort(),this.pendingRequest.delete(t))}cancelAllRequest(){this.pendingRequest.forEach(n=>{n.abort()})}}const wt={requestInstance:null,responseInstance:null},Ct={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},nt={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},as=new os,Ii=()=>{const e=(i,u)=>{u==="requestInstance"?wt.requestInstance=i:wt.responseInstance=i},n=i=>wt[i],t=(i,u,c)=>{c==="ok"?Ct[i]=u:nt[i]=u},o=(i,u)=>u==="ok"?Ct[i]:nt[i],a=(i,...u)=>{Array.isArray(i)&&i.forEach(c=>{typeof c=="function"&&c(...u)})};return{createAxiosInstance:e,setImplement:t,getImplement:o,getAxiosInstance:n,beforeFetch:(i,u,c)=>{const f=c==="ok"?Ct[u]:nt[u],p=n(i),{MODE:v}=Rt();p&&a(f,p,v)},fetchError:(i,u,c)=>{const f=nt[c],{MODE:p}=Rt();a(f,u,p)}}},ls=P({name:"AppRequestCancelerProvider",setup(e,{expose:n}){_a(()=>{as.cancelAllRequest()}),n()},render(){return r("div",{class:"app-style-provider"},null)}}),Zn=P({name:"LayoutContentWrapper",setup(){Ge();const{maximize:e}=to(),{getContentTransition:n}=X(),t=V(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:a,layoutContentMaximize:l,layoutContentSpinning:s}=ol();return{globalMainLayoutLoad:a,spinning:t,themeOverridesSpin:o,getContentTransition:n,layoutContentMaximize:l,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:n,layoutContentSpinning:t,maximize:o,spinning:a,themeOverridesSpin:l,getContentTransition:s}=this;return r(pt,{show:a||!e||t,description:"loading...",size:"large",themeOverrides:l,class:[n?"r-layout-full__viewer-content--maximize":null]},{default:()=>[n?r("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[r(x,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(ls,null,null),e?r(Er,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),rs=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"}));var ss={pkg:{dependencies:{"@logicflow/core":"2.0.10","@logicflow/extension":"2.0.14","@vueuse/core":"^12.4.0",axios:"^1.7.9",clipboard:"^2.0.11","crypto-js":"4.2.0","currency.js":"^2.0.4",dayjs:"^1.11.13",echarts:"^5.6.0","html-to-image":"1.11.11",interactjs:"1.10.27",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.41.0",pinia:"^2.3.0","pinia-plugin-persistedstate":"^4.2.0","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.10","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.4.0","vue3-next-qrcode":"2.0.10"},devDependencies:{"@amap/amap-jsapi-types":"0.0.15","@ant-design/icons-vue":"7.0.1","@commitlint/cli":"19.3.0","@commitlint/config-conventional":"19.2.2","@interactjs/types":"1.10.27","@intlify/unplugin-vue-i18n":"4.0.0","@types/crypto-js":"4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"4.17.12","@types/mockjs":"1.0.10","@types/three":"0.171.0","@typescript-eslint/eslint-plugin":"8.20.0","@typescript-eslint/parser":"8.20.0","@vitejs/plugin-vue":"5.2.1","@vitejs/plugin-vue-jsx":"4.1.1","@vitest/ui":"2.1.8","@vue/eslint-config-prettier":"10.1.0","@vue/eslint-config-typescript":"14.2.0","@vue/test-utils":"2.4.6",autoprefixer:"10.4.20",depcheck:"1.4.7",eslint:"9.18.0","eslint-config-prettier":"10.0.1","eslint-plugin-prettier":"5.2.2","eslint-plugin-vue":"9.32.0",globals:"15.14.0","happy-dom":"16.6.0",husky:"8.0.3","lint-staged":"15.3.0",postcss:"8.5.1","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"3.4.2","rollup-plugin-gzip":"4.0.1",sass:"1.83.0","svg-sprite-loader":"6.0.11",typescript:"5.6.3","unplugin-auto-import":"19.0.0","unplugin-vue-components":"0.28.0",vite:"6.0.7","vite-bundle-analyzer":"0.16.0","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"0.8.4","vite-plugin-mock-dev-server":"1.8.3","vite-plugin-svg-icons":"2.0.1","vite-svg-loader":"5.1.0",vitest:"2.1.8","vue-tsc":"2.2.0"},name:"ray-template",version:"5.0.10"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"}};const is=P({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=ss;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),us=P({name:"TooltipIcon",props:{...Po,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:n}){const t=a=>{n("click",a)};return{iconClick:t,Icon:()=>r(x,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:t.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?r(it,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),cs=P({name:"ThemeSegment",setup(){const{system:e}=Sn(),{getAppThemeStr:n,getAppTheme:t}=X(),{updateSettingState:o}=K(),a=[{label:"深色",key:"dark",icon:()=>r(x,{name:"dark",size:"16"},null)},{label:"浅色",key:"light",icon:()=>r(x,{name:"light",size:"16"},null)},{label:"自动",key:"auto",icon:()=>r(x,{name:"system_os",size:"16"},null)}],l=T({get:()=>n.value==="auto"?"auto":t.value?"dark":"light",set:i=>{s(i,e.value)}}),s=(i,u)=>{if(i==="auto"){o("_appTheme",u==="dark"),o("appTheme","auto");return}o("_appTheme",i==="dark"),o("appTheme",i)};return de(()=>{s(l.value,e.value)}),{options:a,modelAppTheme:l}},render(){const{options:e}=this;return r(Vr,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":n=>this.modelAppTheme=n},null)}}),Ye=Symbol("segmentDrawer"),ds=P({name:"SegmentViewsAppearance",setup(){const e=Te(Ye,{}),{changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=K();return{toggleColorWeakness:o,model:e,changePrimaryColor:n,updateSettingState:t}},render(){const{toggleColorWeakness:e,model:n,changePrimaryColor:t,updateSettingState:o}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[q("系统主题")]}),r(cs,null,null),r(le,null,{default:()=>[q("内置主题")]}),r(xo,{showPreview:!0,swatches:Se.appThemeColors,value:n.primaryColorOverride.common.primaryColor,"onUpdate:value":a=>n.primaryColorOverride.common.primaryColor=a,onUpdateValue:t.bind(this)},null),r(le,null,{default:()=>[q("切换动画")]}),r(Gt,{value:n.contentTransition,"onUpdate:value":a=>n.contentTransition=a,options:Xa,onUpdateValue:a=>{o("contentTransition",a)}},null),r(le,null,{default:()=>[q("配置入口出现位置")]}),r(Gt,{value:n.drawerPlacement,"onUpdate:value":a=>n.drawerPlacement=a,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:a=>{o("drawerPlacement",a)}},null),r(le,null,{default:()=>[q("其他设置")]}),r(fe,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(z,{label:"面包屑"},{default:()=>[r(ee,{value:n.breadcrumbSwitch,"onUpdate:value":a=>n.breadcrumbSwitch=a,onUpdateValue:a=>o("breadcrumbSwitch",a)},null)]}),r(z,{label:"标签页"},{default:()=>[r(ee,{value:n.menuTagSwitch,"onUpdate:value":a=>n.menuTagSwitch=a,onUpdateValue:a=>o("menuTagSwitch",a)},null)]}),r(z,{label:"页底信息"},{default:()=>[r(ee,{value:n.copyrightSwitch,"onUpdate:value":a=>n.copyrightSwitch=a,onUpdateValue:a=>o("copyrightSwitch",a)},null)]}),r(z,{label:"色弱模式"},{default:()=>[r(ee,{value:n.colorWeakness,"onUpdate:value":a=>n.colorWeakness=a,onUpdateValue:a=>{o("colorWeakness",a),e(a)}},null)]})]})]})}}),ps=P({name:"SegmentViewsCommon",setup(){const e=Te(Ye,{}),{updateSettingState:n}=K();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[q("基础设置")]}),r(fe,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(z,{label:"页面缓存"},{default:()=>[r(ee,{value:e.keepAliveConfig.setupKeepAlive,"onUpdate:value":t=>e.keepAliveConfig.setupKeepAlive=t,onUpdateValue:t=>n("keepAliveConfig",{setupKeepAlive:t})},null)]}),r(z,{label:"动态浏览器标题"},{default:()=>[r(ee,{value:e.dynamicDocumentTitle,"onUpdate:value":t=>e.dynamicDocumentTitle=t,onUpdateValue:t=>n("dynamicDocumentTitle",t)},null)]})]}),r(le,null,{default:()=>[q("缓存设置")]}),r(fe,{labelPlacement:"top",showFeedback:!0,showRequireMark:!1,model:e.keepAliveConfig},{default:()=>[r(z,{label:"最大缓存数",feedback:T(()=>e.keepAliveConfig.maxKeepAliveLength<=0?"设置为【0】时,缓存将会失效":"").value},{default:()=>[r(Y,{disabled:!e.keepAliveConfig.setupKeepAlive,value:e.keepAliveConfig.maxKeepAliveLength,"onUpdate:value":t=>e.keepAliveConfig.maxKeepAliveLength=t,min:0,precision:0,showButton:!1,onUpdateValue:t=>n("keepAliveConfig",{maxKeepAliveLength:t})},null)]}),r(z,{label:"排除缓存"},{default:()=>[r(Mo,{type:"success",value:e.keepAliveConfig.keepAliveExclude,"onUpdate:value":t=>e.keepAliveConfig.keepAliveExclude=t},null)]})]})]})}}),ms=P({name:"SegmentViewsWatermark",setup(){const e=Te(Ye,{}),{updateSettingState:n}=K();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[q("基础设置")]}),r(fe,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(z,{label:"全屏水印"},{default:()=>[r(ee,{value:e.watermarkSwitch,"onUpdate:value":t=>e.watermarkSwitch=t,onUpdateValue:t=>n("watermarkSwitch",t)},null)]}),r(z,{label:"跨边界显示"},{default:()=>[r(ee,{value:e.watermarkConfig.cross,"onUpdate:value":t=>e.watermarkConfig.cross=t,onUpdateValue:t=>n("watermarkConfig",{cross:t})},null)]})]}),r(le,null,{default:()=>[q("个性化水印")]}),r(fe,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(z,{label:"水印内容"},{default:()=>[r(zt,{value:e.watermarkConfig.content,"onUpdate:value":t=>e.watermarkConfig.content=t,onUpdateValue:t=>n("watermarkConfig",{content:t})},null)]}),r(z,{label:"字体尺寸"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.fontSize,"onUpdate:value":t=>e.watermarkConfig.fontSize=t,onUpdateValue:t=>n("watermarkConfig",{fontSize:t})},null)]}),r(z,{label:"字体行高"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.lineHeight,"onUpdate:value":t=>e.watermarkConfig.lineHeight=t,onUpdateValue:t=>n("watermarkConfig",{lineHeight:t})},null)]}),r(z,{label:"字体宽度"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.width,"onUpdate:value":t=>e.watermarkConfig.width=t,onUpdateValue:t=>n("watermarkConfig",{width:t})},null)]}),r(z,{label:"字体高度"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.height,"onUpdate:value":t=>e.watermarkConfig.height=t,onUpdateValue:t=>n("watermarkConfig",{height:t})},null)]}),r(z,{label:"x轴偏移"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.xOffset,"onUpdate:value":t=>e.watermarkConfig.xOffset=t,onUpdateValue:t=>n("watermarkConfig",{xOffset:t})},null)]}),r(z,{label:"x轴间隙"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.xGap,"onUpdate:value":t=>e.watermarkConfig.xGap=t,onUpdateValue:t=>n("watermarkConfig",{xGap:t})},null)]}),r(z,{label:"y轴偏移"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.yOffset,"onUpdate:value":t=>e.watermarkConfig.yOffset=t,onUpdateValue:t=>n("watermarkConfig",{yOffset:t})},null)]}),r(z,{label:"y轴间隙"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.yGap,"onUpdate:value":t=>e.watermarkConfig.yGap=t,onUpdateValue:t=>n("watermarkConfig",{yGap:t})},null)]}),r(z,{label:"旋转角度"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.rotate,"onUpdate:value":t=>e.watermarkConfig.rotate=t,onUpdateValue:t=>n("watermarkConfig",{rotate:t})},null)]})]})]})}}),fs=P({name:"SegmentViewsCustomMenu",setup(){const e=Te(Ye,{}),{updateSettingState:n}=K();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,{titlePlacement:"center"},{default:()=>[r(I,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(it,{placement:"top",showArrow:!1},{trigger:()=>r(x,{name:"question",size:"16"},null),default:()=>"菜单更新是一个复杂、耗时的操作,请手动点击【更新菜单】按钮更新设置"}),r(vn,null,{default:()=>[q("菜单样式")]})]})]}),r(fe,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(z,{label:"每级菜单缩进"},{default:()=>[r(Y,{value:e.menuConfig.collapsedIndent,"onUpdate:value":t=>e.menuConfig.collapsedIndent=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIndent:t})},null)]}),r(z,{label:"菜单图标尺寸"},{default:()=>[r(Y,{value:e.menuConfig.iconSize,"onUpdate:value":t=>e.menuConfig.iconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{iconSize:t})},null)]}),r(z,{label:"折叠菜单图标尺寸"},{default:()=>[r(Y,{value:e.menuConfig.collapsedIconSize,"onUpdate:value":t=>e.menuConfig.collapsedIconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIconSize:t})},null)]}),r(z,{label:"菜单宽度"},{default:()=>[r(Y,{value:e.menuConfig.menuWidth,"onUpdate:value":t=>e.menuConfig.menuWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{menuWidth:t})},null)]}),r(z,{label:"折叠菜单宽度"},{default:()=>[r(Y,{value:e.menuConfig.collapsedWidth,"onUpdate:value":t=>e.menuConfig.collapsedWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedWidth:t})},null)]}),r(z,{showFeedback:!1,showLabel:!1},{default:()=>[r(J,{onClick:e.throttleSetupAppMenu,block:!0,type:"primary"},{default:()=>[q("更新菜单")]})]})]}),r(le,null,{default:()=>[q("其他设置")]}),r(fe,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(z,{label:"反转色菜单"},{default:()=>[r(ee,{value:e.menuConfig.inverted,"onUpdate:value":t=>e.menuConfig.inverted=t,onUpdateValue:t=>n("menuConfig",{inverted:t})},null)]}),r(z,{label:"菜单标题"},{default:()=>[r(ee,{value:e.menuConfig.menuSiderBarLogo,"onUpdate:value":t=>e.menuConfig.menuSiderBarLogo=t,onUpdateValue:t=>n("menuConfig",{menuSiderBarLogo:t})},null)]}),r(z,{label:"手风琴菜单"},{default:()=>[r(ee,{value:e.menuConfig.accordion,"onUpdate:value":t=>e.menuConfig.accordion=t,onUpdateValue:t=>n("menuConfig",{accordion:t})},null)]}),r(z,{label:"原生滚动条"},{default:()=>[r(ee,{value:e.menuConfig.nativeScrollbar,"onUpdate:value":t=>e.menuConfig.nativeScrollbar=t,onUpdateValue:t=>n("menuConfig",{nativeScrollbar:t})},null)]})]})]})}}),gs=P({name:"SettingDrawer",props:Eo,setup(){const{create:e}=yr(),{changePrimaryColor:n,updateSettingState:t}=K(),{getAppTheme:o,getPrimaryColorOverride:a,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getKeepAliveConfig:f,getMenuConfig:p,getDrawerPlacement:v,getColorWeakness:m,getWatermarkConfig:g,getDynamicDocumentTitle:b}=X(),{setupAppMenu:h}=Be(),_=Et(h,300),d=re({menuTagSwitch:l.value,breadcrumbSwitch:s.value,copyrightSwitch:i.value,contentTransition:u.value,watermarkSwitch:c.value,keepAliveConfig:f.value,menuConfig:p.value,drawerPlacement:v.value,colorWeakness:m.value,primaryColorOverride:a.value,watermarkConfig:g.value,dynamicDocumentTitle:b.value,throttleSetupAppMenu:_}),y=()=>{e({preset:"dialog",title:"恢复默认配置",type:"warning",content:"点击【确认初始化】按钮会恢复默认系统配置,是否继续?",positiveText:"确认初始化",negativeText:"取消",onPositiveClick:()=>{po(Ee(In()),(w,C)=>{d[C]=w,t(C,w)}),_()}})};return Cn(Ye,d),{changePrimaryColor:n,getAppTheme:o,getPrimaryColorOverride:a,updateSettingState:t,modelReactive:d,defaultSettingBtnClick:y}},render(){const{defaultSettingBtnClick:e,$props:n}=this,{trapFocus:t,autoFocus:o,nativeScrollbar:a,...l}=n;return r(bn,j(l,{trapFocus:!1,autoFocus:!1,width:320}),{default:()=>[r(Do,{title:"个性化配置",closable:!0},{default:()=>r(hn,{type:"bar",animated:!0,defaultValue:"appearance"},{default:()=>[r(Qe,{name:"appearance",tab:"外观"},{default:()=>[r(ds,null,null)]}),r(Qe,{name:"menu",tab:"菜单"},{default:()=>[r(fs,null,null)]}),r(Qe,{name:"watermark",tab:"水印"},{default:()=>[r(ms,null,null)]}),r(Qe,{name:"common",tab:"通用"},{default:()=>[r(ps,null,null)]})]}),footer:()=>r(I,{justify:"flex-start"},{default:()=>[r(J,{type:"warning",onClick:e},{icon:()=>r(x,{name:"reload"},null),default:()=>"初始化配置"})]})})]})}});function hs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const ys=P({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=Be(),{getBreadcrumbOptions:n}=Oe(),{isTabletOrSmaller:t}=Xe();return{getBreadcrumbOptions:n,dropdownSelect:(l,s)=>{e(l,s)},breadcrumbItemClick:l=>{var s;if(!((s=l.children)!=null&&s.length)){const{meta:i={}}=l;i.sameLevel||e(l.fullPath,l)}},isTabletOrSmaller:t}},render(){let e;const{isTabletOrSmaller:n,getBreadcrumbOptions:t}=this,{dropdownSelect:o,breadcrumbItemClick:a}=this;return n?r("div",{style:"display: none;"},null):r(Lo,null,{default:()=>[r(Ca,{tag:"li",name:"breadcrumb",appear:!0},hs(e=t.map(l=>r(zo,{key:l.fullPath,onClick:a.bind(this,l)},{default:()=>{var s;return[r(ze,{labelField:"breadcrumbLabel",keyField:"fullPath",options:l.children&&((s=l.children)==null?void 0:s.length)>1?l.children:[],onSelect:o.bind(this)},{default:()=>r("span",null,[l.label&&typeof l.label=="function"?l.label():l.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function Tt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const bs=P({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:n}){const{changeMenuModelValue:t,resolveOption:o}=Be(),{getRoutes:a}=Ge(),l=T({get:()=>e.show,set:S=>{n("update:show",S),S||m()}}),s=re({searchValue:null,searchOptions:[]}),i=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let u=0,c=u;const{isTabletOrSmaller:f}=Xe({observer:S=>{S&&(l.value=!1)}}),p=V(!1),v="content-item--active",m=()=>{s.searchOptions=[],s.searchValue=null,u=0,c=u},g=S=>{l.value||(S.ctrlKey||S.metaKey)&&S.key==="k"&&(S.preventDefault(),S.stopPropagation(),m(),l.value=!0)},b=S=>{if(S)p.value=!0;else{p.value=!1,s.searchOptions=[];return}const A=a().reduce((O,L)=>{var W;const k=Ne(L,["children","meta","path","name"]),M=o({...k,fullPath:L.path}),{breadcrumbLabel:$}=M;return(W=$==null?void 0:$.toLocaleLowerCase())!=null&&W.includes(S.toLocaleLowerCase())&&Ln(M)&&O.push(M),O},[]);setTimeout(()=>{s.searchOptions=A,te().then(()=>{_()}),p.value=!1},300)},h=S=>{if(S){const{meta:A}=S;A.windowOpen?window.open(A.windowOpen):(l.value=!1,t(S.fullPath,S),setTimeout(xn,300))}},_=()=>{const S=s.searchOptions[u],A=s.searchOptions[c];S&&te().then(()=>{const O=Ke(`attr:data_path="${S.path}"`),L=A?Ke(`attr:data_path="${A==null?void 0:A.path}"`):null;if(L!=null&&L.length){const[k]=L;ra(k,v)}if(O!=null&&O.length){const[k]=O;Rn(k,v)}})},d=S=>{const{icon:A}=S;return typeof A=="string"&&A?r(x,{name:A,size:"24"},null):typeof A=="function"?r(A,null,null):r(x,{name:"search",size:"24"},null)},y=S=>{S==="up"&&(u-=1,u<0&&(u=s.searchOptions.length-1)),S==="down"&&(u+=1,u>=s.searchOptions.length&&(u=0))},w=S=>{const A=S.key;switch((A==="ArrowUp"||A==="ArrowDown"||A==="Enter")&&(S.preventDefault(),S.stopPropagation()),c=u<=0?0:u,A){case"ArrowUp":y("up");break;case"ArrowDown":y("down");break;case"Enter":const O=s.searchOptions[u];O&&h(O);break}_()},C=({menuOption:S})=>r(I,j({align:"center",class:"content-item"},{onClick:h.bind(this,S),data_path:S.path}),{default:()=>[r("div",{class:"content-item-icon"},[d(S.meta)]),r("div",{class:"content-item-label"},[S.breadcrumbLabel]),r(x,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return $e(window,"keydown",g),{...we(s),modelShow:l,helperTipOptions:i,fuzzySearchMenuOptions:Et(b,300),searchItemClick:h,RenderPreIcon:d,isTabletOrSmaller:f,SearchItem:C,loading:p,registerChangeSearchElementIndex:w}},render(){const{isTabletOrSmaller:e,searchOptions:n,loading:t}=this,{SearchItem:o,fuzzySearchMenuOptions:a,registerChangeSearchElementIndex:l}=this;return e?r("div",{style:"display: none;"},null):r(fn,{show:this.modelShow,"onUpdate:show":s=>this.modelShow=s,transformOrigin:"center",displayDirective:"if"},{default:()=>[r("div",{class:"global-search global-search--dark global-search--light",tabindex:"-1",onKeydown:l},[r("div",{class:"global-search__wrapper"},[r(De,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(zt,{size:"large",value:this.searchValue,"onUpdate:value":s=>this.searchValue=s,clearable:!0,onInput:a.bind(this)},{prefix:()=>r(x,{name:"search",size:"24"},null)}),default:()=>{let s;return r(Dt,null,{default:()=>[r(pt,{show:t},{default:()=>[n.length?r(I,{vertical:!0,size:[0,6],class:"global-search__card-content"},Tt(s=n.map((i,u)=>r(o,{menuOption:i,key:i.fullPath},null)))?s:{default:()=>[s]}):r(Io,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(I,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(vn,null,{default:()=>[q("没有搜索结果")]})]})})]})]})},action:()=>{let s;return r(I,{justify:"flex-start",align:"center",size:[16,0]},Tt(s=this.helperTipOptions.map(i=>r(I,{key:i.label,size:[4,0]},{default:()=>[i.icon.map(u=>r(I,{class:"item-icon",align:"center",justify:"center"},Tt(u)?u:{default:()=>[u]})),r(I,{class:"item-label",align:"center"},{default:()=>[i.label]})]})))?s:{default:()=>[s]})}})])])]})}}),vs=P({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=sa();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:a}=e;a&&F(a,o)}}},render(){const{getShortcutKeyAboutSystem:e,click:n,$t:t}=this;return r(J,{bordered:!1,onClick:n.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>r(x,{name:"search",size:"16"},null),default:()=>r(I,{align:"center"},{default:()=>[t("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),Qn=P({name:"AppAvatar",props:{...Fo,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(){const{getSigningCallback:e}=Yn();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:n,spaceSize:t,$props:o,vertical:a}=this;return r(J,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(I,{align:"center",size:t,vertical:a},{default:()=>[r(Bo,j(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),{default:()=>{var l;return e.avatar?null:(l=e==null?void 0:e.name)==null?void 0:l[0]}}),e==null?void 0:e.name]})]})}}),_s=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Ss={logout:()=>{const{logout:e}=Xn();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=K();e("lockScreenSwitch",!0)}},ws=e=>{const n=Ss[e];n?n():window.$message.info("这个人很懒, 没做这个功能~")},Cs=e=>{const{isTabletOrSmaller:n}=e,t=[],o=[{name:"menu",size:18,eventKey:"menu"}];return n.value?o:t},Ts=e=>{const{isTabletOrSmaller:n}=e,t=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],o=[...t],a=[...t];return n.value?a:o},Os=P({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:n}=K(),{t}=He(),[o,{toggleFullscreen:a,isEnabled:l}]=On(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:i}=X(),u=V(!1),c=V(!1),{isTabletOrSmaller:f}=Xe(),p=gt("globalDrawerValue"),v=T(()=>Cs({isFullscreen:o,isTabletOrSmaller:f})),m=T(()=>Ts({isFullscreen:o,isTabletOrSmaller:f})),g={search:()=>{c.value=!0},setting:()=>{u.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{l||window.$message.warning(t("globalMessage.isEnabledFullscreen")),a()},lock:()=>{n("lockScreenSwitch",!0)},menu:()=>{me("globalDrawerValue",!p.value)}};return{leftIconOptions:v,rightTooltipIconOptions:m,toolIconClick:_=>{var d;(d=g[_])==null||d.call(g)},showSettings:u,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:i,globalSearchShown:c,isRenderVNode:_=>f.value?null:_}},render(){const{rightTooltipIconOptions:e,leftIconOptions:n,getDrawerPlacement:t,getBreadcrumbSwitch:o}=this,{toolIconClick:a,updateLocale:l,isRenderVNode:s}=this;return r(_n,{class:"layout-header"},{default:()=>[r(bs,{show:this.globalSearchShown,"onUpdate:show":i=>this.globalSearchShown=i},null),r(I,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(I,{align:"center",wrap:!1},{default:()=>[n.map(i=>r(us,{key:i.name,iconName:i.name,tooltipText:wn(i.tooltip)?i.tooltip.value:i.tooltip,customClassName:i.iconClass,onClick:a.bind(this,i.name)},null)),o?r(ys,null,null):null]}),r(I,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(r(vs,{onClick:i=>{i.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(i=>r(J,{class:"override-button__layout",quaternary:!0,size:"medium",key:i.name,onClick:a.bind(this,i.name),focusable:!1},{default:()=>[r(x,{name:i.name,size:16,cursor:"pointer"},null)]})),r(ze,{options:En,onSelect:i=>l(String(i)),trigger:"click"},{default:()=>[r(J,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(x,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(ze,{options:_s(),onSelect:ws.bind(this),trigger:"click"},{default:()=>[r(Qn,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(gs,{show:this.showSettings,"onUpdate:show":i=>this.showSettings=i,placement:t},null)]})}}),ks=P({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(I,{size:[0,0]},{default:()=>[r(Os,null,null)]})}});function As(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const Rs=P({name:"AppMenuTag",setup(e,{expose:n}){const t=ie("scrollRef"),{getMenuKey:o,getMenuTagOptions:a}=Oe(),{changeMenuModelValue:l}=Be(),{getRootPath:s}=Je(),{maximize:i}=to(),{reload:u}=Bs(),{close:c,closeAll:f,closeRight:p,closeLeft:v,closeOther:m,checkCloseLeft:g,checkCloseRight:b}=no(),h=["closeAll","closeRight","closeLeft","closeOther"];let _=1/0;const d={size:16},y=V([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(x,{name:"close",size:d.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(x,{name:"fullscreen_fold",size:d.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(x,{name:"reload",size:d.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(x,{name:"shared",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(x,{name:"close_left",size:d.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(x,{name:"close_right",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(x,{name:"close_other",size:d.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(x,{name:"resize_h",size:d.size},null),disabled:!1}]),w=ct(16),C={closeCurrentPage:()=>{o.value!==s.value&&c(_)},reloadCurrentPage:()=>{u()},closeAll:()=>{f()},closeRight:()=>{p(_)},closeLeft:()=>{v(_)},closeOther:()=>{m(_)},windowOpenTab:()=>{const R=a.value[_];if(!(R!=null&&R.fullPath))return;const E=R.fullPath.startsWith("#")?R.fullPath:`#${R.fullPath}`;window.open(E,"_blank")},maximizeLayoutContent:()=>{const R=a.value[_];i(!0),R&&oe(R)}},S=re({x:0,y:0,actionDropdownShow:!1}),A="menu_tag_data",O=gt("globalMainLayoutLoad"),L="n-scrollbar-container";let k=o.value;const M=V(!1),$=R=>{c(R)},W=(R,E)=>{for(const Z of y.value)if(Z.key===R){Z.disabled=E;break}},oe=R=>{S.actionDropdownShow=!1,l(R.fullPath,R)},G=()=>{const R=document.getElementById(w);if(R)return Array.from(R.childNodes).find(Ze=>ia(Ze,L).value)},ye=R=>{var Z;const E=G();if(E){const Ze=E.scrollLeft||0,Ut=R==="left"?Math.max(0,Ze-200):Ze+200;(Z=t.value)==null||Z.scrollTo({left:Ut,behavior:"smooth"})}},ke=R=>{S.actionDropdownShow=!1;const E=C[R];E==null||E()},ae=(R,E)=>{E.preventDefault(),_=R,S.actionDropdownShow=!1,te(()=>{S.x=E.clientX,S.y=E.clientY,S.actionDropdownShow=!0})},Nt=()=>{b(_)?W("closeRight",!1):W("closeRight",!0),g(_)?W("closeLeft",!1):W("closeLeft",!0)},ao=()=>{_=a.value.findIndex(E=>E.fullPath===o.value),Nt()},lo=R=>{a.value.length>1&&R.fullPath!==s.value&&(R.closeable=!0),M.value=!0},ro=R=>{R.fullPath!==o.value&&(R.closeable=!1),M.value=!1},so=()=>{G()&&te().then(()=>{var E;(E=t.value)==null||E.scrollTo({left:99999,behavior:"smooth"})})},ht=()=>{te().then(()=>{const R=Ke(`attr:${A}="${o.value}"`);if(R!=null&&R.length){const[E]=R;te().then(()=>{var Z;(Z=t.value)==null||Z.scrollTo({left:E.offsetLeft,behavior:"smooth"})})}})},io=()=>{i(!0)};return qe(()=>a.value,(R,E)=>{y.value.forEach(Z=>{h.includes(Z.key)&&(R.length>1?Z.disabled=!1:Z.disabled=!0)}),E!=null&&E.length&&(R.length>(E==null?void 0:E.length)?so():R.length===(E==null?void 0:E.length)&&ht()),E===void 0&&ht()},{immediate:!0}),de(()=>{S.actionDropdownShow&&Nt(),k!==o.value&&(k=o.value,ht())}),n(),{getMenuTagOptions:a,closeCurrentMenuTag:$,getMenuKey:o,menuTagClick:oe,moreOptions:y,scrollX:ye,scrollRef:t,uuidScrollBar:w,actionDropdownSelect:ke,actionState:S,menuTagContextMenu:ae,setCurrentContextmenuIndex:ao,menuTagMouseenter:lo,menuTagMouseleave:ro,MENU_TAG_DATA:A,iconConfig:d,maximize:i,reload:u,globalMainLayoutLoad:O,maximizeBtnClick:io,isMouseInMenuTag:M}},render(){let e;const{iconConfig:n,uuidScrollBar:t,getMenuTagOptions:o,MENU_TAG_DATA:a,globalMainLayoutLoad:l,isMouseInMenuTag:s}=this,{maximizeBtnClick:i,closeCurrentMenuTag:u,scrollX:c,$t:f,menuTagClick:p,menuTagContextMenu:v,menuTagMouseenter:m,menuTagMouseleave:g,actionDropdownSelect:b,reload:h}=this;return r(_n,null,{default:()=>[r("div",{class:"menu-tag"},[r(ze,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:b.bind(this),onClickoutside:()=>{s||(this.actionState.actionDropdownShow=!1)}},null),r(I,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.scrollX.bind(this,"left")},{icon:()=>r(x,{name:"expanded",width:n.size,height:n.size,customClassName:"menu-tag__left-arrow"},null)}),r(Dt,j({xScrollable:!0,ref:"scrollRef"},{id:t},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[r(I,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},As(e=o.map((_,d)=>r(J,j({key:_.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:_.fullPath===this.getMenuKey?"primary":"default"},{onClick:p.bind(this,_),onContextmenu:v.bind(this,d),onMouseenter:m.bind(this,_),onMouseleave:g.bind(this,_),[a]:_.fullPath},{size:"small",focusable:!1,iconPlacement:"right"}),{default:()=>r(Tn,null,[r("span",null,{default:()=>{const{breadcrumbLabel:y,meta:{i18nKey:w}}=_;return w?f(w):y}})]),icon:()=>r(x,j({customClassName:"menu-tag__btn-icon",name:"close",size:"15"},{onMousedown:u.bind(this,d)}),null)})))?e:{default:()=>[e]})]}),r(I,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:c.bind(this,"right")},{icon:()=>r(x,{name:"expanded",width:n.size,height:n.size,style:{transform:"rotate(180deg)"}},null)}),r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:i},{icon:()=>r(x,{name:"fullscreen_fold",width:n.size,height:n.size},null)}),r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{h()}},{icon:()=>r(x,{name:"reload",width:n.size,height:n.size,customClassName:`${l?"":"menu-tag__right-setting--spinning"}`},null)}),r(jn,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.setCurrentContextmenuIndex.bind(this)},{icon:()=>r(x,{name:"more",width:n.size,height:n.size},null)})]})]})]})])]})}}),Ps=P({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(Rs,null,null)}}),xs={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},sn=()=>({lockPassword:null}),un=$o(U.isAppLockScreen,!1,window.localStorage,{mergeDefaults:!0}),eo=()=>({setLockAppScreen:t=>{un.value=t},getLockAppScreen:()=>un.value}),Ms=P({name:"UnlockScreen",setup(){const[e,{validate:n}]=Dr(),{logout:t}=Xn(),{updateSettingState:o}=K(),{setLockAppScreen:a}=eo(),{isTabletOrSmaller:l}=Xe(),s="HH:mm",i="A",u="YYYY-MM-DD",c="ddd",f=re({lockCondition:sn(),HH_MM:H().format(s),AM_PM:H().format(i),YY_MM_DD:H().format(u),DDD:H().format(c)}),p=setInterval(()=>{f.HH_MM=H().format(s),f.AM_PM=H().format(i)},6e3),v=setInterval(()=>{f.YY_MM_DD=H().format(u),f.DDD=H().format(c)},864e5),m=()=>{ce(U.appLockScreenPasswordKey,"localStorage"),o("lockScreenSwitch",!1),setTimeout(()=>{t()},100)},g=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页并且重新登录",positiveText:"确定",negativeText:"重新登录",onPositiveClick:m})},b=()=>{const h=Le(U.appLockScreenPasswordKey,"localStorage");if(!h){window.$dialog.warning({title:"警告",content:()=>"检测到锁屏密码被修改,请重新登录",closable:!1,maskClosable:!1,closeOnEsc:!1,positiveText:"重新登录",onPositiveClick:m});return}const _=ua(h);n().then(()=>{_===f.lockCondition.lockPassword?(a(!1),o("lockScreenSwitch",!1),ce(U.appLockScreenPasswordKey,"localStorage"),f.lockCondition=sn()):window.$message.warning("密码错误,请重新输入")})};return Lt(()=>{clearInterval(p),clearInterval(v)}),{...we(f),backToSigning:g,unlockScreen:b,isTabletOrSmaller:l,register:e}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:n,AM_PM:t,YY_MM_DD:o,DDD:a}=this,l=n.split(":"),{unlockScreen:s,backToSigning:i,register:u}=this;return r("div",{class:"app-lock-screen__content app-lock-screen__content--full"},[r("div",{class:"app-lock-screen__unlock"},[r("div",{class:"app-lock-screen__unlock__content"},[r("div",{class:"app-lock-screen__unlock__content-wrapper"},[r("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[r("div",{class:"left"},[l[0]]),r("div",{class:"right"},[l[1]])])]),r("div",{class:"app-lock-screen__unlock__content-avatar"},[r(Qn,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),r("div",{class:"app-lock-screen__unlock__content-input"},[r(Un,{onRegister:u,model:this.lockCondition,rules:xs},{default:()=>[r(z,{path:"lockPassword"},{default:()=>[r(zt,{autofocus:!0,value:this.lockCondition.lockPassword,"onUpdate:value":c=>this.lockCondition.lockPassword=c,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,onKeydown:c=>{c.code==="Enter"&&s()}},null)]}),r(I,{justify:"space-between"},{default:()=>[r(J,{type:"primary",text:!0,onClick:i.bind(this)},{default:()=>[q("返回登陆")]}),r(J,{type:"primary",text:!0,onClick:s.bind(this)},{default:()=>[q("进入系统")]})]})]})]),r("div",{class:"app-lock-screen__unlock__content-date"},[r("div",{class:"current-year"},[o,q(" "),r("span",null,[a]),q(" "),r("span",null,[t])])])])])])}}),Es=e=>{const n=bt(e[0]),t=bt(e[1]),o=bt(e[2]);return T(()=>({"--window-width":"var(--html-width)","--window-height":"var(--html-height)","--layout-content-height":`calc(var(--html-height) - ${n.height.value}px - ${t.height.value}px - ${o.height.value}px)`,"--layout-content-width":`${n.width.value}px`,"--layout-siderbar-height":`${n.height.value}px`,"--layout-menutag-height":`${t.height.value}px`,"--layout-footer-height":`${o.height.value}px`}))},Ds=P({name:"RLayout",setup(){const e=ne(),n=ne(),t=ne(),{getMenuTagSwitch:o,getCopyrightSwitch:a}=X(),{getLockAppScreen:l}=eo(),s=Es([e,n,t]);return{getMenuTagSwitch:o,cssVarsRef:s,getLockAppScreen:l,layoutSiderBarRef:e,layoutMenuTagRef:n,layoutFooterRef:t,getCopyrightSwitch:a}},render(){const{getMenuTagSwitch:e,cssVarsRef:n,getCopyrightSwitch:t}=this,{getLockAppScreen:o}=this;return o()?r(Ms,null,null):r(Vo,{class:"r-layout-full",style:[n],hasSider:!0,embedded:!0},{default:()=>[r(ns,null,null),r(Ht,{class:"r-layout-full__viewer"},{default:()=>[r(ks,{ref:"layoutSiderBarRef"},null),e?r(Ps,{ref:"layoutMenuTagRef"},null):null,r(Ht,{ref:xe,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Zn,null,null)]}),t?r(is,{ref:"layoutFooterRef"},null):null]})]})}}),zs=[{path:"/",name:"RLogin",component:()=>D(()=>import("./index-BryWK9rN.js"),__vite__mapDeps([98,42,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,48,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,82,83,84,40,41,59,43,44,45,46,47,49,50,51,52,53,54,55,56,99]))},{path:"/",name:"RLayout",component:Ds,children:[...Yr(),{path:"/:catchAll(.*)",component:()=>D(()=>import("./index-DGmHId93.js"),__vite__mapDeps([100,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,48,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,49,50,51,52,53,54,55,56,101])),meta:{i18nKey:B("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],dt=Sa({history:wa(),routes:zs,scrollBehavior:e=>{ar(e)}}),Fi=e=>{e.use(dt),Zr(dt)},jt=()=>dt?{router:dt}:{router:{}},cn="YYYY-MM-DD HH:mm:ss",Ls=()=>({locale:s=>{const i=Qa[s];i?H.locale(i):H.locale(el)},getStartAndEndOfDay:s=>{const{format:i=cn}=s??{},u=H(),c=u.startOf("day"),f=u.endOf("day"),p=u.format(i),v=c.format(i),m=f.format(i);return{today:u,startOfDay:c,endOfDay:f,formatToday:p,formatStartOfDay:v,formatEndOfDay:m}},format:(s,i)=>{const{format:u=cn}=i??{};return H(s).format(u)},isDayjs:s=>H.isDayjs(s),daysDiff:(s,i)=>{const u=H(s);return H(i).diff(u,"days")},isDateInRange:(s,i)=>{const{start:u,end:c}=i,f=H(s);return f.isAfter(u)&&f.isBefore(c)}});function Xe(e){const{width:n,height:t}=Ko(e),o=V(!1),{observer:a}=e??{};return ca(()=>{const{media:s=768}=e??{};o.value=n.value<=s,a==null||a(o.value,{width:n.value,height:t.value})}),{width:n,height:t,isTabletOrSmaller:ve(o)}}let ot=999,Ot=!1;const be="ELEMENT-FULLSCREEN-RAY",dn=document.createElement("style"),Is=(e,n)=>{const{beforeEnter:t,beforeExit:o,enter:a,exit:l,backgroundColor:s,zIndex:i,transition:u="transform 0.3s var(--r-bezier)"}=n??{};let c=!1;const f={x:null,y:null},p=V(!1),v=()=>{const h=se(e);if(!h)return;const{left:_,top:d}=h.getBoundingClientRect();f.x===null&&f.y===null&&(f.x=-_,f.y=-d),ut(document.body,{"--element-fullscreen-z-index":ge(i,"Null")||ge(i,"Undefined")?ot:i,"--element-fullscreen-transition":u,"--element-fullscreen-background-color":s,"--element-fullscreen-width":"var(--html-width)","--element-fullscreen-height":"var(--html-height)","--element-fullscreen-transform-x":`${f.x}px`,"--element-fullscreen-transform-y":`${f.y}px`});const y=` + [${be}] { + position: fixed; + width: var(--element-fullscreen-width) !important; + height: var(--element-fullscreen-height) !important; + transform: translate(var(--element-fullscreen-transform-x), var(--element-fullscreen-transform-y)) !important; + transition: var(--element-fullscreen-transition); + z-index: var(--element-fullscreen-z-index) !important; + background-color: var(--element-fullscreen-background-color); + } + `.trim();dn.innerHTML=y,Ot||document.head.appendChild(dn)},m=()=>{const h=se(e);t==null||t(),h&&(h.getAttribute(be)||h.setAttribute(be,be),c||(c=!0,ot+=1),Ot||(v(),Ot=!0),h.style.transition=u,p.value=!0,a==null||a())},g=()=>{o==null||o();const h=se(e);h&&h.removeAttribute(be),p.value=!1,l==null||l()},b=()=>{const h=se(e);h&&(h.getAttribute(be)?g():m())};return Ft(()=>{const h=se(e);h&&h.removeAttribute(be),ot=Math.max(999,ot-1),p.value=!1}),{enter:m,exit:g,toggleFullscreen:b,isFullscreen:ve(p)}},kt={svg:ma,png:fa,jpeg:ga,blob:ha,pixelData:ya,canvas:ba},Bi=(e,n)=>{const{beforeCreate:t,created:o,createdError:a,finally:l,imageType:s}=n;return{create:u=>new Promise((c,f)=>{var m;const p=se(e);if(t==null||t(p),!p)return a==null||a(),f("[useDomToImage]: target element is undefined.");(m=kt[u??s??"jpeg"])==null||m.call(kt,p,n).then(g=>(o==null||o(g,p),c(g))).catch(g=>(a==null||a(g),f(g))).finally(()=>{l==null||l(p)})})}},Vi=(e,n)=>({print:()=>{const o=se(e)||e;ea({...We(n,["printable"]),printable:o})}}),at={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},Fs=(e,n)=>{const t=T(()=>({...at,...We(n,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size","onUpdate:pageSize"]),...a})),o=ne(e),a={onUpdatePage:d=>{var w;const{pageChange:y}=t.value;l.value.page=d,(w=o.value)==null||w.call(o),y==null||y(d)},onUpdatePageSize:d=>{var w;const{pageSizeChange:y}=t.value;l.value.pageSize=d,l.value.page=at.page,(w=o.value)==null||w.call(o),y==null||y(d)}},l=V(t.value),s=l.value.onUpdatePage,i=l.value.onUpdatePageSize,u=()=>l.value.itemCount,c=d=>{l.value.itemCount=d},f=()=>l.value.page,p=d=>{s(d)},v=()=>l.value.pageSize,m=d=>{i(d)},g=()=>l.value,b=o.value,h=d=>{o.value=d},_=()=>{const{pageSizes:d}=l.value;l.value.page=at.page,l.value.pageSize=(d==null?void 0:d[0])||at.pageSize};return Ft(()=>{o.value=void 0}),[l,{getItemCount:u,setItemCount:c,getPage:f,setPage:p,getPageSize:v,setPageSize:m,getPagination:g,getCallback:b,setCallback:h,resetPagination:_}]},to=()=>({isLayoutContentMaximized:T(()=>gt("layoutContentMaximize").value),maximize:(t,o)=>{var i;const{scrollToOptions:a}=o??{},l=se(xe),{toggleFullscreen:s}=Is(l,o);me("layoutContentMaximize",t),s(),a&&t&&((i=xe==null?void 0:xe.value)==null||i.scrollTo(a))}}),Bs=()=>({reload:(o=800)=>{me("globalMainLayoutLoad",!1),setTimeout(()=>me("globalMainLayoutLoad",!0),o)},openSpin:()=>{me("layoutContentSpinning",!0)},closeSpin:()=>{me("layoutContentSpinning",!1)}}),ji=()=>({setWatermarkContent:a=>{const{getWatermarkConfig:l}=X(),s=Object.assign({},l.value,{content:a}),{updateSettingState:i}=K();i("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:a}=K();a("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:a}=K();a("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:a}=X(),{updateSettingState:l}=K();l("watermarkSwitch",!a.value)}}),lt=e=>{const{getPrimaryColorOverride:n}=X(),{updateSettingState:t}=K();t("primaryColorOverride",e?st({},n.value,Se.appNaiveUIThemeOverrides.dark):st({},n.value,Se.appNaiveUIThemeOverrides.light))},Ni=()=>{const e=()=>{const{getAppTheme:l}=X(),{t:s}=He();return{theme:l.value,themeI18nLabel:l.value?s("headerSettingOptions.ThemeOptions.Dark"):s("headerSettingOptions.ThemeOptions.Light"),themeLabel:l.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:l}=K();l("_appTheme",!0),l("appTheme","dark"),lt(!0)},lightTheme:()=>{const{updateSettingState:l}=K();l("_appTheme",!1),l("appTheme","light"),lt(!1)},toggleTheme:()=>{const{theme:l}=e(),{updateSettingState:s}=K();s("_appTheme",!l),s("appTheme",l?"light":"dark"),lt(!l)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:l}=X(),{updateSettingState:s}=K(),{system:i}=Sn();s("_appTheme",i.value==="dark"),s("appTheme","auto"),lt(l.value)}}},Re=(e,n)=>{const{getMenuTagOptions:t}=Oe();if(typeof e=="number"){if(isNaN(e)){console.warn(`${n}: The ${e} is NaN, expect number.`);return}if(e>t.value.length||e<-1){console.warn(`${n}: The incoming index ${e} did not match the corresponding item.`);return}return{option:t.value[e],index:e}}else if(typeof e=="string"){const o=t.value.findIndex(a=>a.fullPath===e);return o>-1?{option:t.value[o],index:o}:console.warn(`${n}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:o}=e,a=t.value.findIndex(l=>l.fullPath===o);if(a===-1){console.warn(`${n}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:a}}};function no(){const{getMenuTagOptions:e,getMenuKey:n}=Oe(),{changeMenuModelValue:t,spliceMenTagOptions:o,setMenuTagOptions:a,resolveOption:l}=Be(),s=()=>e.value.findIndex(g=>g.fullPath===n.value),i=g=>{const b=Re(g,"checkCloseRight");if(b){const{index:h}=b,_=e.value.length-1;return!(h>=_)}return!1},u=g=>{const b=Re(g,"checkCloseRight");if(b){const{index:h}=b,_=e.value.length-1;return h===0?!1:h>0&&_>0}return!1};return{close:g=>{const b=Re(g,"close");if(e.value.length!==1&&b){const{index:h,option:_}=b;if(o(h),_.fullPath===n.value){let d=u(h)?h-1:i(h)?h:h-1;d<0&&(d=0);const y=e.value[d];y&&t(y.fullPath,y)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:g}=Je(),{router:{getRoutes:b}}=jt(),h=b().find(_=>_.path===g.value);if(h){const _=Ne(h,Mt),d=l(_);t(d.path,l({...d,fullPath:d.path}))}},closeRight:g=>{const b=Re(g,"closeRight");if(b){const{option:h,index:_}=b,d=e.value.length-_,y=s();o(_+1,d),_<=y&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeLeft:g=>{const b=Re(g,"closeLeft");if(b){const{option:h,index:_}=b,d=s();o(0,_),d<=_&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeOther:g=>{const b=Re(g,"closeOther");if(b){const{option:h}=b;n.value!==h.fullPath?(o(0,e.value.length),t(h.fullPath,h)):a(h,!1)}},getCurrentTagIndex:s,checkCloseRight:i,checkCloseLeft:u}}function Ui(){return{navigationTo:(n,t)=>{const{router:{getRoutes:o,push:a,replace:l}}=jt(),{isPush:s=!0,query:i}=t||{},u=c=>s?a({path:c,query:i}):l({path:c,query:i});if(typeof n=="number"){if(isNaN(n)){console.warn(`[navigationTo]: The ${n} is NaN, expect number.`);return}const{getMenuOptions:c}=Oe();if(n>c.value.length){console.warn(`[navigationTo]: The current ${n} exceeds the maximum number of menus.`);return}const f=c.value[n],p=v=>{if(v.children&&v.children.length>0){const{children:[m]}=v;p(m);return}u(v.fullPath)};p(f)}else if(typeof n=="string"){const c=o().find(f=>f.path===n);c?u(c.path):console.warn(`[navigationTo]: The path "${n}" is not found.`)}else u(n.fullPath)}}}function Je(){const{getAppRootRoute:e}=X(),{updateSettingState:n}=K(),t=e,o=T(()=>e.value.path),a=T(()=>e.value.name);return{getRootRoute:t,getRootPath:o,getRootName:a,setRootRoute:s=>{n("appRootRoute",Object.assign({},e.value,s))}}}const Vs=(e,n)=>{const{show:t,...o}=n;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:t}),e.extra=Kn(e)},pn=(e,n,t)=>{const o=qn(e,n);o&&Vs(o,t)},At=(e,n,t)=>{const{getMenuOptions:o}=Oe();if(typeof e=="string")pn(o.value,e,t);else if(ge(e,"Object")){const{fullPath:a}=e;pn(o.value,a,t)}else console.warn(`[useBadge ${n}]: target expect string or object.`)};function $i(){return{hidden:o=>{At(o,"hidden",{show:!1})},show:(o,a)=>{At(o,"show",{...a,show:!0})},update:(o,a)=>{At(o,"update",a)}}}const Ki=()=>{const e=Dn.value,{scrollTo:n}=e||{};if(!n)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return n},oo=()=>Le(U.localeLanguage,"localStorage",{defaultValue:Ja});export{Ls as $,bi as A,En as B,_t as C,Qa as D,fi as E,Di as F,Ya as G,zi as H,xi as I,Si as J,Ti as K,Dn as L,hi as M,Oi as N,ki as O,Ai as P,Fs as Q,Un as R,es as S,Ci as T,Rr as U,yr as V,Vr as W,Ei as X,Pi as Y,Mi as Z,D as _,Bi as a,as as a0,Ii as a1,_i as a2,Pr as a3,jn as a4,to as a5,Ui as a6,Bs as a7,ji as a8,$i as a9,Vi as b,Ki as c,vi as d,X as e,U as f,gi as g,Se as h,Dr as i,K as j,sn as k,Qn as l,eo as m,Ri as n,gt as o,Xn as p,yi as q,xs as r,el as s,Li as t,Ni as u,wi as v,Fi as w,Je as x,He as y,x as z}; diff --git a/js/hooks-Bi_Q9OFa.js.gz b/js/hooks-Bi_Q9OFa.js.gz new file mode 100644 index 00000000..0d1d83b7 Binary files /dev/null and b/js/hooks-Bi_Q9OFa.js.gz differ diff --git a/js/hooks-CpaAYtdw.js b/js/hooks-CpaAYtdw.js deleted file mode 100644 index fb56b695..00000000 --- a/js/hooks-CpaAYtdw.js +++ /dev/null @@ -1,12 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-p0z3hc2m.js","js/dayjs@1.11.13-BI9XULUM.js","js/call-bind@1.0.7-BosuxZz1.js","js/print-js@1.6.0-CWwD-D0p.js","js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js","js/@vue_reactivity@3.5.13-CjJL8SnF.js","js/@vue_shared@3.5.13-DbMIZLZJ.js","js/@vue_runtime-core@3.5.13-BsGyjLIk.js","js/lodash@4.17.21-D1YkSij2.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-DQHhvod-.js","js/jsbarcode@3.11.6-VhIBVAt6.js","js/@logicflow_core@2.0.6-xGbnZl_7.js","js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js","js/preact@10.22.0-Dw4c-0kT.js","js/mobx@5.15.7-BvNiR7Ki.js","js/lodash-es@4.17.21-l6r90Unf.js","js/uuid@9.0.1-CtRu48qb.js","js/classnames@2.5.1-BXd8anFz.js","js/mousetrap@1.6.5-D2xAa-oQ.js","js/mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js","css/@logicflow_core@2.0-CugW5BGX.css","js/currency.js@2.0.4-9OAR_aOO.js","js/crypto-js@4.2.0-CO3T8151.js","js/naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js","js/date-fns@3.6.0-CG906D2E.js","js/seemly@0.3.9-BnJ6M8Cl.js","js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js","js/evtd@0.2.4-CI_DDEu_.js","js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js","js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js","js/vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js","js/@juggle_resize-observer@3.4.0-DY95s5UV.js","js/css-render@0.15.14-BwokE0u2.js","js/@emotion_hash@0.8.0-WldOFDRm.js","js/@vue_runtime-dom@3.5.13-CwqXTXrC.js","js/treemate@0.3.11-CWtmm0QO.js","js/date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js","js/async-validator@4.2.5-P8scd9xB.js","js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js","js/@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js","js/@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js","js/utils-DBF0WsFC.js","js/pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js","js/destr@2.0.3-Cx7WjB9q.js","js/deep-pick-omit@1.2.1-B1UrSIxj.js","js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js","js/html-to-image@1.11.11-D6_yziCT.js","js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js","js/interactjs@1.10.27-hUbPqkuo.js","js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js","js/@intlify_shared@9.13.1-BxU0OzX2.js","js/@intlify_core-base@9.13.1-CVxc1Bsn.js","js/@intlify_message-compiler@9.13.1-GrLDMuy_.js","js/echarts@5.5.1-Dj_7IMQj.js","js/zrender@5.6.0-DbjVw6Tx.js","js/tslib@2.3.0-BDyQ-Jie.js","js/zh-CN-Ms_tFsC1.js","js/index-C9Re1EZk.js","js/index-DhY7Gt5n.js","css/index-BPwDcGFh.css","js/Flow-BwOEXCKT.js","js/index-DTS9XXyl.js","js/instance-nutHwvcu.js","js/axios@1.7.9-upsvKRUO.js","css/index-C60eEB5E.css","js/BarcodeDemo-DIeP09RN.js","js/index-DiNOalgO.js","js/index-DHO0XaOX.js","js/index-K_RkB5nU.js","js/draggable-card-CZ4wS8CL.js","js/index-Qtv2dC6e.js","css/index-D9y7XLpS.css","js/index-CbzDm5wU.js","js/index-DPVrk8sH.js","js/index-CVpI_rlQ.js","js/index-ixFMLUoT.js","js/index-B4iylE3W.js","js/index-DnDhmFC3.js","js/index-BNLeaxW4.js","js/index-BU8x8xeE.js","js/index-_CcPe96W.js","js/vue3-next-qrcode@2.0.10_typescript@5.6.3-DJUY2IsH.js","css/vue3-next-qrcode@2.0.10_typescript@5.6-BnS3AyZU.css","js/ray-dCjhX_JK.js","js/index-CNY9lLzh.js","css/index-C7SBslZD.css","js/index-HHvg0jl-.js","js/index-DhTBLp28.js","js/index-j667e7uE.js","css/index-CCBgYJcK.css","js/index-CHjj1t3Y.js","js/index-BpYY6BmL.js","css/index-Bit-kagu.css","js/TablePro-CxALP6p1.js","js/mockjs@1.1.0-C0u4TCrj.js","js/index-C-ELjja3.js","js/index-D_ftfM6j.js","js/index-BFnjjPIz.js","css/index-DId3lj_V.css","js/index-rt4PH3zE.js","css/index-CEBSONXB.css"])))=>i.map(i=>d[i]); -var uo=Object.defineProperty;var co=(e,n,t)=>n in e?uo(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var $t=(e,n,t)=>co(e,typeof n!="symbol"?n+"":n,t);import{s as yt,c as Ee,m as st,l as Et,v as mn,p as Ne,y as We,z as po}from"./lodash-es@4.17.21-l6r90Unf.js";import{z as Kt,d as Wt,f as mo,g as fo,c as go,N as De,a as ho,b as yo,e as I,h as pt,m as bo,i as fn,u as vo,S as Dt,j as _o,k as ze,l as So,n as gn,o as wo,p as Ue,q as Co,r as fe,t as To,s as Oo,v as hn,w as ko,x as yn,y as it,A as qt,B as bn,C as Ao,D as Ro,E as Po,F as le,G as xo,H as Gt,I as z,J as ee,K as Y,L as Mo,M as zt,O as vn,P as J,Q as Eo,R as Do,T as Qe,U as zo,V as Lo,W as Io,X as Fo,Y as Bo,Z as _n,_ as Ht,$ as Vo}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{o as jo,u as $e,a as No,b as Uo,c as Sn,d as $o,e as bt,f as Ko}from"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import{s as ne,k as V,l as ve,e as re,n as Wo,x as we,a as wn,u as Q}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{n as te,j as de,l as P,b as r,m as j,p as he,q as ie,f as T,k as Ce,T as qo,i as Te,w as qe,t as Go,v as Lt,h as mt,x as Cn,F as Tn,y as Ho,z as Yo,A as vt,C as Xo,D as Ae,E as Ve,S as Jo,K as Zo,G as Yt,H as Qo,I as q}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import{d as H}from"./dayjs@1.11.13-BI9XULUM.js";import{p as ea}from"./print-js@1.6.0-CWwD-D0p.js";import{u as On}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import{b as ta}from"./jsbarcode@3.11.6-VhIBVAt6.js";import{L as Xt}from"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{u as It,g as Le,i as ge,s as Pe,a as Rt,c as na,b as ut,d as N,e as se,q as Ke,l as kn,f as An,h as oa,r as _e,j as F,k as aa,m as ct,n as Rn,p as Pn,o as Ft,t as la,v as Jt,w as ce,x as xn,y as ra,z as sa,A as ia,B as ua,C as ca}from"./utils-DBF0WsFC.js";import{s as da}from"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import{d as ft,c as pa}from"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import{t as ma,a as fa,b as ga,c as ha,d as ya,e as ba}from"./html-to-image@1.11.11-D6_yziCT.js";import{u as Ge,a as va,o as _a,c as Sa,b as wa}from"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import{T as Mn,a as Ca}from"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import{i as Zt}from"./interactjs@1.10.27-hUbPqkuo.js";import{c as Ta}from"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import{r as Oa,u as je,i as ka,a as Aa,b as Ra,c as Pa,d as xa,e as Ma,f as Ea,g as Da,h as za,j as La,k as Ia,l as Fa,m as Ba,n as Va,o as ja,p as Na,q as Ua,s as $a}from"./echarts@5.5.1-Dj_7IMQj.js";import{g as Ka}from"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";const fi=(e,n)=>{if(typeof n!="string"||!n.trim())throw new TypeError("Expected prefix to be a non-empty string");const t={};return Object.keys(e).forEach(o=>{const a=e[o].default;let l=o.replace(`./${n}/`,"").replace(/^\.\//,"");const s=l.lastIndexOf(".");l=l.substring(0,s);const i=l.split("/"),u=i.shift(),c=i.join(".");u&&(c?(yt(t,u,t[u]||{}),yt(t[u],c,a)):yt(t,u,a||{}))}),t},Wa="modulepreload",qa=function(e){return"/ray-template/"+e},Qt={},D=function(n,t,o){let a=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));a=Promise.allSettled(t.map(u=>{if(u=qa(u),u in Qt)return;Qt[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":Wa,c||(p.as="script"),p.crossOrigin="",p.href=u,i&&p.setAttribute("nonce",i),document.head.appendChild(p),c)return new Promise((v,m)=>{p.addEventListener("load",v),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function l(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return a.then(s=>{for(const i of s||[])i.status==="rejected"&&l(i.reason);return n().catch(l)})},Ga=(e,n,t)=>{const o=e[n];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((a,l)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(l.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Ha=async e=>{var t;const n={};for(const o of e){const a=await Ga(Object.assign({"../lang/en-US.ts":()=>D(()=>import("./en-US-p0z3hc2m.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),"../lang/zh-CN.ts":()=>D(()=>import("./zh-CN-Ms_tFsC1.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56]))}),`../lang/${o.key}.ts`,3),l=o.key;l&&(n[l]=((t=a==null?void 0:a.default)==null?void 0:t.message)??{})}return n},gi=e=>{switch(e){case"zh-CN":return{locale:Kt,dateLocal:Wt};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Kt,dateLocal:Wt}}},Ya={darkClassName:"ray-template--dark",lightClassName:"ray-template--light",rayTemplateThemePrimaryColor:"--ray-theme-primary-color",rayTemplateThemePrimaryFadeColor:"--ray-theme-primary-fade-color",preLoadingAnimation:"pre-loading-animation",htmlHeight:"--html-height",htmlWidth:"--html-width"},hi={max:5,closable:!1},yi="loading",bi="",U={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions",appMenuTagOptions:"appMenuTagOptions",appLockScreenPasswordKey:"appLockScreenPasswordKey"},Xa=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],Se={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#dbcb02","#18a058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"},appNaiveUIThemeOverrides:{dark:{common:{borderRadius:"4px",baseColor:"rgb(18, 18, 18)"}},light:{common:{borderRadius:"4px",baseColor:"rgb(255, 255, 255)"}}},echartTheme:"macarons"},En=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Ja="zh-CN",Za="zh-CN",Qa={"zh-CN":"zh-cn","en-US":"en"},el="zh-cn",vi={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/,cssSize:/^auto|unset|fit-content|max-content|min-content|initial|inherit|revert|revert-layer|[-\w]+-webkit-fill-available$/},_i={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},xe=ne(null),Dn=ne(null),tl={setupRouterLoadingBar:!0,setupRouterGuard:!0},nl=["RLogin","ErrorPage","RayTemplateDoc"],et=[],Si=(e,n)=>{const t=V(0),o=V(0),a=V(!1),{clickOutside:l}={},s=p=>{a.value=p},i=p=>{p.preventDefault(),s(!1),te().then(()=>{const{clientX:v,clientY:m}=p;t.value=v,o.value=m,s(!0)})};l&&jo(e,p=>{l(p)});const u=$e(e,"contextmenu",i,n),c=$e(e,"click",()=>{s(!1)});return{stop:()=>{u(),c()},x:ve(t),y:ve(o),show:ve(a),updateShow:s}},Bt=re({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function me(e,n,t){It(Bt,e,n,t)}function gt(e){return ve(Wo(Bt,e))}function ol(){return{...we(ve(Bt))}}let pe;const al=async()=>{const e=oo(),n=await Ha(En);return Ta({legacy:!1,locale:e,messages:n,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Za})},wi=async e=>{const n=await al();e.use(n),pe=n},en=(e,n)=>n,He=e=>{if(!pe)return{t:l=>en(e,l),locale:l=>{}};const{t:n,...t}=pe.global;return{...t,t:(l,...s)=>l?l.includes(".")?n(en(e,l),...s):l:"",locale:l=>{pe.mode==="legacy"?pe.global.locale=l:wn(pe.global.locale)?pe.global.locale.value=l:pe.global.locale=l}}},B=e=>e,ll={path:"/dashboard",component:()=>D(()=>import("./index-C9Re1EZk.js"),__vite__mapDeps([58,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,59,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,60])),meta:{i18nKey:B("menu.Dashboard"),icon:"dashboard",order:0}},rl=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),sl={path:"/flow",component:()=>D(()=>import("./Flow-BwOEXCKT.js"),__vite__mapDeps([61,22,23,2,1,3,4,5,6,7,8,9,10,11,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39,40,41,12,13,14,15,17,18,19,20,21,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Flow"),icon:"other",order:2}},il=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),ul={path:"/axios",name:"RAxios",component:()=>D(()=>import("./index-DTS9XXyl.js"),__vite__mapDeps([62,4,5,6,7,8,2,9,10,63,64,1,3,11,12,13,14,15,16,17,18,19,20,21,42,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56,65])),meta:{i18nKey:B("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},cl=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),dl={path:"barcode",component:()=>D(()=>import("./BarcodeDemo-DIeP09RN.js"),__vite__mapDeps([66,22,23,2,1,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,11,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},pl=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),ml={path:"/cache-demo",component:()=>D(()=>import("./index-DiNOalgO.js"),__vite__mapDeps([67,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,42,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.CacheDemo"),icon:"other",order:3}},fl=Object.freeze(Object.defineProperty({__proto__:null,default:ml},Symbol.toStringTag,{value:"Module"})),gl={path:"/context-menu",component:()=>D(()=>import("./index-DHO0XaOX.js"),__vite__mapDeps([68,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.ContextMenu"),icon:"other",order:2}},hl=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"})),yl={path:"/directive",component:()=>D(()=>import("./index-K_RkB5nU.js"),__vite__mapDeps([69,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{i18nKey:B("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},bl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),vl={path:"/draggable-card",component:()=>D(()=>import("./draggable-card-CZ4wS8CL.js"),__vite__mapDeps([70,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.DraggableCard"),icon:"other",order:2,extra:{label:"drag"}}},_l=Object.freeze(Object.defineProperty({__proto__:null,default:vl},Symbol.toStringTag,{value:"Module"})),Sl={path:"/echart",component:()=>D(()=>import("./index-Qtv2dC6e.js"),__vite__mapDeps([71,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,72])),meta:{i18nKey:B("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},wl=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),Cl={path:"/form",component:()=>D(()=>import("./index-CbzDm5wU.js"),__vite__mapDeps([73,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},Tl=Object.freeze(Object.defineProperty({__proto__:null,default:Cl},Symbol.toStringTag,{value:"Module"})),Ol={path:"/iframe",component:()=>D(()=>import("./index-DPVrk8sH.js"),__vite__mapDeps([74,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},kl=Object.freeze(Object.defineProperty({__proto__:null,default:Ol},Symbol.toStringTag,{value:"Module"})),Al={path:"/mock-demo",component:()=>D(()=>import("./index-CVpI_rlQ.js"),__vite__mapDeps([75,22,23,2,1,3,11,12,13,14,15,16,17,18,19,20,21,4,5,6,7,8,9,10,63,64,42,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},Rl=Object.freeze(Object.defineProperty({__proto__:null,default:Al},Symbol.toStringTag,{value:"Module"})),Pl={path:"/modal-demo",component:()=>D(()=>import("./index-ixFMLUoT.js"),__vite__mapDeps([76,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Modal"),icon:"other",order:3}},xl=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),rt=()=>D(()=>Promise.resolve().then(()=>rs),void 0),Ml={path:"/multi",component:rt,meta:{i18nKey:B("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>D(()=>import("./index-B4iylE3W.js"),__vite__mapDeps([77,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:rt,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>D(()=>import("./index-DnDhmFC3.js"),__vite__mapDeps([78,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:rt,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>D(()=>import("./index-BNLeaxW4.js"),__vite__mapDeps([79,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},El=Object.freeze(Object.defineProperty({__proto__:null,default:Ml},Symbol.toStringTag,{value:"Module"})),Dl={path:"/precision",component:()=>D(()=>import("./index-BU8x8xeE.js"),__vite__mapDeps([80,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,42,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.CalculatePrecision"),icon:"other",order:2}},zl=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"})),Ll={path:"/qrcode",component:()=>D(()=>import("./index-_CcPe96W.js"),__vite__mapDeps([81,82,7,5,6,83,84,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{i18nKey:B("menu.QRCode"),icon:"other",order:2}},Il=Object.freeze(Object.defineProperty({__proto__:null,default:Ll},Symbol.toStringTag,{value:"Module"})),Fl={path:"rely-about",component:()=>D(()=>import("./index-CNY9lLzh.js"),__vite__mapDeps([85,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39,86])),meta:{i18nKey:B("menu.RelyAbout"),icon:"rely",order:999}},Bl=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"})),Vl={path:"/router-demo",component:rt,meta:{i18nKey:B("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>D(()=>import("./index-HHvg0jl-.js"),__vite__mapDeps([87,22,23,2,1,3,48,5,6,7,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,4,8,9,10,42,43,44,45,46,47,49,50,51,52,53,54,55,56])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>D(()=>import("./index-DhTBLp28.js"),__vite__mapDeps([88,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},jl=Object.freeze(Object.defineProperty({__proto__:null,default:Vl},Symbol.toStringTag,{value:"Module"})),Nl={path:"/scroll-reveal",component:()=>D(()=>import("./index-j667e7uE.js"),__vite__mapDeps([89,7,5,6,24,25,26,27,28,29,30,31,32,33,34,35,16,36,37,38,39,90])),meta:{i18nKey:B("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Ul=Object.freeze(Object.defineProperty({__proto__:null,default:Nl},Symbol.toStringTag,{value:"Module"})),$l={path:"/segment",component:()=>D(()=>import("./index-CHjj1t3Y.js"),__vite__mapDeps([91,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Kl=Object.freeze(Object.defineProperty({__proto__:null,default:$l},Symbol.toStringTag,{value:"Module"})),Wl={path:"/svg-icons",component:()=>D(()=>import("./index-BpYY6BmL.js"),__vite__mapDeps([92,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,93])),meta:{i18nKey:B("menu.SvgIcon"),icon:"other",order:3}},ql=Object.freeze(Object.defineProperty({__proto__:null,default:Wl},Symbol.toStringTag,{value:"Module"})),Gl={path:"/table-pro",component:()=>D(()=>import("./TablePro-CxALP6p1.js"),__vite__mapDeps([94,42,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,63,64,95,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Hl=Object.freeze(Object.defineProperty({__proto__:null,default:Gl},Symbol.toStringTag,{value:"Module"})),Yl={path:"/table",component:()=>D(()=>import("./index-C-ELjja3.js"),__vite__mapDeps([96,42,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Xl=Object.freeze(Object.defineProperty({__proto__:null,default:Yl},Symbol.toStringTag,{value:"Module"})),Jl={path:"/template-hooks",component:()=>D(()=>import("./index-D_ftfM6j.js"),__vite__mapDeps([97,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:B("menu.TemplateHooks"),icon:"other",order:1}},Zl=Object.freeze(Object.defineProperty({__proto__:null,default:Jl},Symbol.toStringTag,{value:"Module"})),Ql=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":rl,"/src/router/modules/demo/axios copy.ts":il,"/src/router/modules/demo/axios.ts":cl,"/src/router/modules/demo/barcode.ts":pl,"/src/router/modules/demo/cache-demo.ts":fl,"/src/router/modules/demo/context-menu.ts":hl,"/src/router/modules/demo/directive.ts":bl,"/src/router/modules/demo/draggable-card.ts":_l,"/src/router/modules/demo/echart.ts":wl,"/src/router/modules/demo/form.ts":Tl,"/src/router/modules/demo/iframe.ts":kl,"/src/router/modules/demo/mock.ts":Rl,"/src/router/modules/demo/modal.ts":xl,"/src/router/modules/demo/multi-menu.ts":El,"/src/router/modules/demo/precision.ts":zl,"/src/router/modules/demo/qrcode.ts":Il,"/src/router/modules/demo/rely.ts":Bl,"/src/router/modules/demo/router-demo.ts":jl,"/src/router/modules/demo/scroll-reveal.ts":Ul,"/src/router/modules/demo/segment.ts":Kl,"/src/router/modules/demo/svg-icons.ts":ql,"/src/router/modules/demo/table-pro.ts":Hl,"/src/router/modules/demo/table.ts":Xl,"/src/router/modules/demo/template-hooks.ts":Zl});return Object.keys(e).reduce((t,o)=>{const a=e[o].default;if(a)t.push(a);else throw new Error(`[combineRawRouteModules]: ${o} module must export default.`);return t},[])},er=e=>e[0]==="/",zn=(e,n=[],t="")=>{var o;if(!Array.isArray(e))return[];for(const a of e){const l=t+(er(a.path)?a.path:"/"+a.path);if((o=a.children)!=null&&o.length){zn(a.children,n,l);continue}else n.push({...a,path:l})}return n},tr=e=>Array.isArray(e)?zn(Ee(e)):[],nr=e=>e.sort((n,t)=>{var l,s;const o=((l=n.meta)==null?void 0:l.order)??1,a=((s=t.meta)==null?void 0:s.order)??0;return o===a?n.name?t.name?n.name.localeCompare(t.name):-1:1:o-a}),or=e=>{const{beforeEach:n}=e,{getRootPath:t}=Je(),o=(a,l)=>a.path==="/"||l.path==="/login";n((a,l,s)=>{const i=Le(U.token,"localStorage"),u=Le(U.appMenuKey,"sessionStorage",{defaultValue:t.value}),{meta:c,name:f}=a;i!==null?o(a,l)?_t(!0):!ge(f,"Symbol")&&f&&nl.includes(f)?s():Jn(c)?o(a,l)?u?s(u):_t(!0):s():_t(!0):o(a,l)?s():s("/")})},_t=(e=!0)=>{const{router:n}=jt(),{push:t,replace:o}=n,{getRootPath:a}=Je();Pe(U.appMenuKey,a.value,"localStorage"),e?o(a.value):t(a.value)},ar=e=>{var t;const{meta:n}=e;n!=null&&n.ignoreAutoResetScroll||(t=xe.value)==null||t.scrollTo({top:0,left:0,behavior:"smooth"})},lr=e=>{e.beforeEach(()=>{var n;(n=window.$loadingBar)==null||n.start()}),e.afterEach(()=>{var n;(n=window.$loadingBar)==null||n.finish()}),e.onError(()=>{var n;(n=window.$loadingBar)==null||n.error()})},Ln=e=>{const{meta:n={}}=e,{hidden:t,sameLevel:o,env:a}=n,{MODE:l}=Rt();return!(o||t||a&&typeof a=="string"&&a!==l||a&&Array.isArray(a)&&!a.includes(l))},rr={contentTransition:"scale",watermarkSwitch:!1,keepAliveConfig:{maxKeepAliveLength:10,setupKeepAlive:!0,keepAliveExclude:[]},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16,menuWidth:272,inverted:!1,nativeScrollbar:!1},menuTagSwitch:!0,breadcrumbSwitch:!0,copyrightSwitch:!0,drawerPlacement:"right",colorWeakness:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15,xGap:0,yGap:0,cross:!0},dynamicDocumentTitle:!0},In=()=>rr,Ie=ft("setting",()=>{const{appPrimaryColor:{primaryColor:e,primaryFadeColor:n}}=Se,{locale:t}=He(),{locale:o}=Ls(),a=re({primaryColorOverride:{common:{primaryColor:e,primaryColorHover:n,primaryColorPressed:e,primaryColorSuppl:n}},_appTheme:!1,appTheme:"light",localeLanguage:oo(),lockScreenSwitch:!1,appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},...Ee(In())}),l=c=>{t(c),o(c),Pe(U.localeLanguage,c,"localStorage"),a.localeLanguage=c},s=(c,f=.85)=>{const p=na(c,f),v={primaryColor:c,primaryColorHover:p,primaryColorPressed:c,primaryColorSuppl:p},{rayTemplateThemePrimaryColor:m,rayTemplateThemePrimaryFadeColor:g}=Ya,b=document.documentElement;a.primaryColorOverride.common=v,b.style.setProperty(m,c),b.style.setProperty(g,p)},i=(c,f,p)=>{It(a,c,f,p)},u=c=>{const f=document.documentElement;i("colorWeakness",c),ut(f,{filter:c?"invert(100%)":""})};return de(()=>{var c;a._appTheme?a.primaryColorOverride=st({},a.primaryColorOverride,Se.appNaiveUIThemeOverrides.dark):a.primaryColorOverride=st({},a.primaryColorOverride,Se.appNaiveUIThemeOverrides.light),u(a.colorWeakness),a.dynamicDocumentTitle||(document.title=((c=a.sideBarLogo)==null?void 0:c.title)||"Ray Template")}),{...we(a),updateLocale:l,changePrimaryColor:s,updateSettingState:i,toggleColorWeakness:u}},{persist:{key:U.appPiniaSettingStore,omit:["lockScreenSwitch"],storage:window.localStorage}}),Fn={...mo,onRegister:{type:[Function,Array],default:null}},Bn={actionSpan:{type:Number,default:1},actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!0},onUpdateOpen:{type:[Function,Array],default:null},"onUpdate:open":{type:[Function,Array],default:null},...fo};function sr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const Ci=P({name:"RCollapse",props:Object.assign({},Fn,{...Bn,open:{type:Boolean,default:!0},cols:{type:Number,default:4},bordered:{type:Boolean,default:!0}}),render(){const{$slots:e,$props:n}=this,{labelPlacement:t,showFeedback:o,...a}=n;return r(Un,j(a,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(pr,a,sr(e)?e:{default:()=>[e]})]})}}),ir={...go,restrictionElement:{type:[String,HTMLElement,Function,Object],default:"body"},dad:{type:Boolean,default:!0},restrictRectOptions:{type:Object,default:void 0},defaultPosition:{type:[Object,String],default:()=>({x:0,y:0})},width:{type:[String,Number],default:600},zIndex:{type:Number,default:void 0},animation:{type:Boolean,default:!1},padding:{type:Object,default:void 0}},Ti=P({name:"RDraggableCard",props:ir,setup(e,{expose:n}){const t=ie("cardRef");let o=null;const a={x:0,y:0},l="draggable-card-container",s=T(()=>({"--r-draggable-card-width":N(e.width),"--r-draggable-card-z-index":e.zIndex}));let i=!1;(()=>{if(!document.getElementById(l)){const v=document.createElement("div");v.id=l,document.documentElement.appendChild(v)}})();const c=()=>{const v=se(t),m=typeof e.restrictionElement=="string"?Ke(e.restrictionElement):e.restrictionElement;let g=null;return Array.isArray(m)?g=m[0]:g=se(m),{card:v,restrictionElement:g}},f=(v,m)=>{const{defaultPosition:g,padding:b}=e,{x:h=0,y:_=0}=b??{},{x:d,y,width:w,height:C}=v,{width:S,height:A}=m;if(typeof g=="string")switch(g){case"top-left":return{x:h+d,y:_+y};case"top-right":return{x:w-S-h+d,y:_+y};case"bottom-left":return{x:h+d,y:C-A-_+y};case"bottom-right":return{x:w-S-h+d,y:C-A-_+y};default:return{x:h+d,y:_+y}}else{const{x:O,y:L}=g;return{x:O+d+h,y:L+y+_}}},p=()=>{const{card:v,restrictionElement:m}=c();if(!v||!e.dad)return;const g=m==null?void 0:m.getBoundingClientRect(),b=v.querySelector(".n-card-header"),h=Object.assign({},{restriction:m,endOnly:!0},e.restrictRectOptions);if(g&&!i){const _=f(g,v.getBoundingClientRect());v.style.transform=`translate(${_.x}px, ${_.y}px)`,a.x=_.x,a.y=_.y}o=Zt(v).draggable({inertia:!0,autoScroll:!0,allowFrom:b?".n-card-header":".n-card__content",modifiers:[Zt.modifiers.restrictRect(h)],listeners:{move:_=>{v.setAttribute("can-drag","true"),a.x+=_.dx,a.y+=_.dy,v.style.transform=`translate(${a.x}px, ${a.y}px)`}}}).resizable(!1),i=!0};return n(),de(()=>{e.dad?p():(o==null||o.unset(),o=null)}),Ce(()=>{te(()=>{p()})}),{cardRef:t,CONTAINER_ID:l,cssVars:s}},render(){const{$attrs:e,$slots:n,$props:t,CONTAINER_ID:o,cssVars:a,animation:l}=this;return r(qo,{to:`#${o}`},{default:()=>[l?r(Mn,{name:"draggable-card",appear:!0,mode:"out-in"},{default:()=>[r(De,j(e,t,{class:"r-draggable-card",style:[a],ref:"cardRef"}),{...n})]}):r(De,j(e,t,{class:"r-draggable-card",style:[a],ref:"cardRef"}),{...n})]})}}),ur={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>kn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>An()},onRegister:{type:[Function,Array],default:null}},cr=Symbol("USE_CHART_PROVIDER_KEY"),dr=oa(),tn="__R_CHART_DOWN_LOAD_CHART__";dr.forEach(e=>{Oa(e.name,e.theme)});const Oi=P({name:"RChart",props:ur,setup(e,{expose:n}){const{getAppTheme:t}=X(),o=ie("rayChartRef"),a=ie("rayChartWrapperRef"),l=ne();let s,i;const{echartTheme:u}=Se;let c;const f=T(()=>[{label:"下载图片",key:tn,disabled:!(l.value&&l.value.getDom())}]),p=T(()=>({"--ray-chart-width":N(e.width),"--ray-chart-height":N(e.height)})),v=V(!1);let m;const g={aria:e.showAria},b=Te(cr,{}),h=async()=>{var k;je([Aa,Ra,Pa,xa,Ma,Ea,Da,za]),je([La,Ia,Fa,Ba,Va,ja]),je([Na,Ua]),je([$a]);try{je((k=e.use)==null?void 0:k.filter(Boolean))}catch(M){console.error("[RChart register error]: ",M)}},_=()=>{const{theme:k}=b||{};if(l.value&&C(),k){y(k);return}if(e.theme==="default"){e.autoChangeTheme?y("dark"):y("");return}if(e.theme)y(e.theme);else{const M=e.autoChangeTheme&&t.value?`${u}-dark`:u;y(M)}},d=k=>{let M=Q(k);return M=(W=>Object.assign({},M,W))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),M},y=(k=u)=>{var ke;const M=o.value,$=d(e.options),{height:W,width:oe}=M.getBoundingClientRect(),{onSuccess:G,onError:ye}=e;try{l.value=ka(M,k,{width:oe===0?200:void 0,height:W===0?200:void 0}),G&&F(G,l.value),e.nextTick?(l.value.setOption({}),te(()=>{var ae;$&&((ae=l.value)==null||ae.setOption($))})):$&&((ke=l.value)==null||ke.setOption($))}catch(ae){throw ye&&F(ye),new Error(`[RChart render error]: ${ae}`)}finally{const{onFinally:ae}=e;ae&&F(ae)}},w=()=>{var k;return!!((k=l.value)!=null&&k.isDisposed())},C=()=>{var k;w()||(k=l.value)==null||k.dispose()},S=()=>{l.value&&l.value.resize()},A=(k,M)=>{if(k===tn&&!w()){const{filename:W,...oe}=e.downloadOptions;aa(l.value.getDataURL(oe),W??`${new Date().getTime()}`)}const{onDropdownSelect:$}=e;$&&F($,k,M)},O=()=>{var M;if(e.autoResize&&(s||(s=Et(S,500)),i||(i=Uo(e.autoResizeObserverTarget||a,s))),(M=l.value)!=null&&M.getDom()||!v.value&&e.intersectionObserver)return;_(),m==null||m.stop();const{onRegister:k}=e;k&&l.value&&F(k,l.value,O,L)},L=()=>{C(),s==null||s.cancel(),i==null||i.stop(),m==null||m.stop(),m=null,s=null,i=null};return qe(()=>t.value,()=>{e.autoChangeTheme&&(C(),_())}),de(()=>{var k,M;e.intersectionObserver&&(m=No(e.intersectionObserverTarget||a,([$])=>{v.value=$.isIntersecting},e.intersectionOptions)),e.watchOptions?c=Ka(()=>e.options,$=>{var G;const W=d($),oe=Object.assign({},An(),e.setChartOptions);(G=l.value)==null||G.setOption(W,oe)},{deep:!0,throttle:e.watchOptionsThrottleWait}):c==null||c(),e.loading?(k=l.value)==null||k.showLoading(kn(e.loadingOptions)):(M=l.value)==null||M.hideLoading(),e.showAria!==g.aria&&l.value&&(l.value.setOption(d(e.options)),g.aria=e.showAria),v.value&&!w()&&O()}),n(),Go(async()=>{await h()}),Ce(()=>{O()}),Lt(()=>{L(),c==null||c()}),{rayChartRef:o,cssVarsRef:p,rayChartWrapperRef:a,moreDropDownOptions:f,dropdownSelect:A}},render(){const{title:e,contentStyle:n,preset:t,moreDropDownOptions:o,dropdownSelect:a,bordered:l,dropdownOptions:s}=this,{cardExtra:i}=this.$slots;return t==="card"?r(De,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:n,bordered:l,embedded:!0},{default:_e(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:_e(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":_e(i,{defaultElement:r(jn,{iconSize:18,cursor:"pointer",options:s||o,trigger:"click",onSelect:a.bind(this),placement:"bottom-end"},null)})}):r("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),ki=()=>{let e,n,t;const o=(u,c,f)=>{u&&(e=u,n=f,t=c)},a=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:n,render:t,echartInst:e}};return[o,{getChartInstance:a,isDisposed:()=>{var u;return!!((u=a().echartInst)!=null&&u.isDisposed())},dispose:()=>a().dispose.call(null),render:()=>a().render.call(null)}]},pr=P({name:"RCollapseGrid",props:Bn,setup(e){const n=V(!e.open),t=T(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{const{onUpdateOpen:l,"onUpdate:open":s}=e;n.value=!n.value,l&&F(l,n.value),s&&F(s,n.value)},a=l=>r("div",{class:"collapse-icon",onClick:o.bind(this)},[r("span",null,[l?e.collapseToggleText[0]:e.collapseToggleText[1]]),r(x,{customClassName:`collapse-icon--arrow ${l?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return de(()=>{n.value=!e.open}),{modelCollapsed:n,collapseClick:o,CollapseIcon:a,cssVars:t}},render(){const{$slots:{collapse:e,action:n,default:t},CollapseIcon:o,$props:a,modelCollapsed:l,xGap:s,yGap:i,collapsedRows:u,cssVars:c,actionSpan:f,bordered:p}=this;return r(De,{bordered:p,style:[c]},{default:()=>r(ho,j({class:"ray-collapse-grid"},a,{collapsed:l,xGap:s||12,yGap:i||12,collapsedRows:u}),{default:()=>[t==null?void 0:t(),r(yo,{suffix:!0,class:"ray-collapse-grid__suffix--btn",span:f},{default:()=>[r(I,{justify:"end",align:"center"},{default:()=>[n==null?void 0:n(),e?e(l):o(l)]})]})]})})}}),mr={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},x=P({name:"RIcon",props:mr,setup(e){const n=T(()=>`#${e.prefix}-${e.name}`),t=T(()=>({"--ray-icon-width":e.width?N(e.width):N(e.size),"--ray-icon-height":e.height?N(e.height):N(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:n,cssVars:t,iconClick:a=>{const{onClick:l}=e;l&&F(l,a)}}},render(){return r("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[r("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[r("use",j({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),fr={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:[Boolean,String],default:!0},iframeClass:{type:String,default:null}},Ai=P({name:"RIframe",props:fr,setup(e,{expose:n}){const t=T(()=>({"--ray-iframe-frameborder":N(e.frameborder),"--ray-iframe-width":N(e.width),"--ray-iframe-height":N(e.height)})),o=ie("iframeRef"),a=V(!0),l=i=>{a.value=!1;const{onSuccess:u}=e;u&&F(u,o.value,i)},s=i=>{a.value=!1;const{onError:u}=e;u&&F(u,i)};return $e(o,"load",l),$e(o,"error",s),n({iframeInst:o}),{cssVars:t,iframeRef:o,spinShow:a}},render(){return r("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[r(pt,j(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>r("iframe",{class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title,loading:typeof this.lazy=="boolean"?"lazy":this.lazy},null)})])}}),gr={...bo,fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446}},hr="r-modal__preset-card--fullscreen",Vn="r-modal",Me={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},Ri=P({name:"RModal",props:gr,setup(e){const n=T(()=>({[Me.width]:N(e.width??600),[Me.cardWidth]:N(e.cardWidth??600),[Me.dialogWidth]:N(e.dialogWidth??446)})),t=ct(),o=T(()=>e.preset==="card"&&e.fullscreen);return{cssVars:n,isFullscreenCardType:o,uuidEl:t}},render(){const{$props:e,$slots:n,$attrs:t}=this,{preset:o,...a}=e,{cssVars:l,uuidEl:s,isFullscreenCardType:i}=this;return r(fn,j({class:[Vn,i?hr:""],style:[l,i?"height: 100vh":""],preset:o},{id:s},a,t),{...n})}}),yr=()=>{const{create:e,destroyAll:n}=vo();return{create:o=>{const{content:a,...l}=o;let s=a;l.preset==="card"&&l.fullscreen&&(s=()=>mt(Dt,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"hover",style:{width:"auto",maxHeight:"calc(var(--html-height) - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof a=="function"?a():a}));const{preset:i,fullscreen:u,width:c,cardWidth:f,dialogWidth:p}=o,v=e({...l,content:s}),{key:m}=v,g={[Me.width]:N(c??600),[Me.cardWidth]:N(f??600),[Me.dialogWidth]:N(p??446)};return te(()=>{const[b]=Ke(`[internalkey="${m}"]`)||[];b&&(u&&i==="card"&&ut(b,{width:"100%",height:"100vh"}),ut(b,g),Rn(b,Vn))}),v},destroyAll:n}},br={..._o,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function vr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const jn=P({name:"RMoreDropdown",props:br,render(){let e;const{iconSize:n,cursor:t,icon:o}=this,{default:a}=this.$slots;return r(ze,j(this.$props,this.$attrs,{placement:"bottom-start"}),vr(e=_e(a,{defaultElement:r(x,{name:o,size:n,cursor:t},null)}))?e:{default:()=>[e]})}}),Fe={...So,tableFlexHeight:{type:[String,Number],default:void 0},renderWrapperHeader:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null}},ue={tableIconSize:"18",tableKey:Symbol("r-table")},_r=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],Sr=P({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...Fe},setup(e){return{size:V(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:a=>{const{onChangeSize:l}=e;l&&F(l,a)}}},render(){return r(gn,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(x,{name:"adjustment",size:ue.tableIconSize,cursor:"pointer"},null)]})}}),wr=P({name:"TableFullscreen",setup(){const{wrapperRef:e}=Te(ue.tableKey,{}),[n,{toggleFullscreen:t,isEnabled:o}]=On(e);return{toggleFullscreen:t,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:n,$t:t}=this;return r(x,{name:"fullscreen",size:ue.tableIconSize,cursor:"pointer",onClick:()=>{n||window.$message.warning(t("globalMessage.isEnabledFullscreen")),e()}},null)}}),Cr=()=>r(x,{name:"draggable",size:14,cursor:"grab"},null),nn=({icon:e,title:n,onClick:t,customClassName:o})=>r(Ue,{showArrow:!1},{trigger:()=>r(x,{name:e,size:ue.tableIconSize,cursor:"pointer",customClassName:o,onClick:t==null?void 0:t.bind(null)},null),default:()=>n}),Pt=(e,n)=>{if(!n)return[null,null];for(let t=0;tEe(e.columns).filter(u=>u.type?(n=u,!1):!0).map((u,c)=>{const{key:f,title:p,children:v,fixed:m,isResizable:g,...b}=u,h=m==="left",_=m==="right",d={...b,title:p,key:f,fixed:m,isLeftFixedActivated:h,isRightFixedActivated:_,isResizable:g};return{...d,suffix:()=>r(I,{style:"padding-left: 32px;"},{default:()=>[r(nn,{icon:"row_head",title:"固定在列首",customClassName:h?St:"",onClick:l.bind(this,"left",d,c)},null),r(Ue,{showArrow:!1},{trigger:()=>r(x,{name:"resize_h",size:ue.tableIconSize,cursor:"pointer",customClassName:g?St:"",onClick:a.bind(this,d,c)},null),default:()=>"修改列宽"}),r(nn,{icon:"row_end",title:"固定在列尾",customClassName:_?St:"",onClick:l.bind(this,"right",d,c)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:u}=e;u&&F(u,i)},a=(i,u)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[u]=i,o(t.value)},l=(i,u,c)=>{const f=`${i}FixedActivated`,p=`${i==="left"?"right":"left"}FixedActivated`;u[p]=!1,u[f]=!u[f],u[f]?u.fixed=i:u.fixed=void 0,t.value[c]=u,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:u,dropPosition:c})=>{const[f,p]=Pt(u,t.value);if(f===null||p===null)return;f.splice(p,1);const[v,m]=Pt(i,t.value);v===null||m===null||(c==="before"?v.splice(m,0,u):v.splice(m+1,0,u),mn(n)||v.unshift(n),o(v))}}},render(){return r(Ue,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(x,{name:"setting",size:ue.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(wo,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:Cr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),Or=P({name:"TablePrint",props:Fe,setup(e){const{wrapperRef:n}=Te(ue.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:o={},domToImageOptions:a}={},title:l}=e;(o.documentTitle===""||o.documentTitle===void 0||o.documentTitle===null)&&(o.documentTitle=typeof l=="string"?l:""),Pn(n,{printOptions:o,domToImageOptions:a})}}},render(){return r(x,{name:"print",size:ue.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),kr=P({name:"TablePropsSelect",props:{...Fe,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const n=V(!1),t=V([]),o=l=>{const{onPopselectChange:s}=e;s&&F(s,l)};return(()=>{const{striped:l,bordered:s,onInitialed:i}=e;l&&t.value.push("striped"),s&&t.value.push("bordered"),i&&F(i,t.value)})(),{propsPopselectValue:t,popoverShow:n,updatePopselectValue:o}},render(){return r(gn,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:_r,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(x,{name:"expanded",size:ue.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function Ar(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const Rr=P({name:"RTable",inheritAttrs:!1,props:Fe,setup(e,n){const{expose:t,emit:o}=n,a=ie("rTableInst"),l=ie("wrapperRef"),s=ct(16),i=ct(16),u=re({x:0,y:0,showContextMenu:!1}),c=re({size:e.size}),f=V(Object.assign({striped:!1,bordered:!1},Ne(e,"striped","bordered"))),p=T(()=>{const{title:y,tool:w,cardProps:C}=e,{headerStyle:S={}}=C??{};return!y&&!w?Object.assign({},{paddingTop:"0px"},S):S}),v=(y,w)=>{const{onContextMenuClick:C}=e;C&&F(C,y,w),u.showContextMenu=!1},m=(y,w)=>{var S;return{...(S=e.rowProps)==null?void 0:S.call(e,y,w),onContextmenu:e.disabledContextMenu?void 0:A=>{A.preventDefault(),u.showContextMenu=!1,te().then(()=>{u.showContextMenu=!0,u.x=A.clientX,u.y=A.clientY})}}},g=y=>{c.size=y},b=y=>{const{onUpdateColumns:w,"onUpdate:columns":C}=e;w&&F(w,y),C&&F(C,y)},h=()=>{const{toolOptions:y}=e;return y==null?void 0:y.filter(Boolean).map(w=>typeof w=="function"?w():w)},_=y=>{Object.keys(f.value).forEach(C=>{f.value[C]=y.includes(C)})},d=y=>{const{tool:w}=y;if(!w)return;const C=()=>r(I,{align:"center"},{default:()=>[r(Or,y,null),r(Sr,j(y,{onChangeSize:g.bind(this)}),null),r(wr,null,null),r(Tr,j(y,{onUpdateColumn:b.bind(this)}),null),r(kr,j(y,{onPopselectChange:_.bind(this),onInitialed:_.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let S;return r(I,{align:"center"},Ar(S=h())?S:{default:()=>[S]})}:()=>r(I,{align:"center"},{default:()=>[C(),h()]}):C};return Ce(()=>{const{onRegister:y}=e;y&&a.value&&F(y,a.value,{uuidTable:i,uuidWrapper:s,wrapperRef:l})}),Cn(ue.tableKey,{uuidTable:i,uuidWrapper:s,wrapperRef:l}),t(),{uuidWrapper:s,uuidTable:i,contextMenuReactive:u,rTableInst:a,combineRowProps:m,contextMenuSelect:v,privateReactive:c,tool:d,wrapperRef:l,propsPopselectValue:f,cardHeaderStyle:p}},render(){const{$props:e,$attrs:n,$slots:t,uuidTable:o,contextMenuReactive:a,uuidWrapper:l,privateReactive:s,propsPopselectValue:i,cardHeaderStyle:u}=this,{class:c,...f}=n,{tool:p,combineRowProps:v,contextMenuSelect:m}=this,{renderWrapperHeader:g,wrapperBordered:b,disabledContextMenu:h,contextMenuOptions:_,title:d,tableFlexHeight:y,cardProps:w,...C}=e,{headerStyle:S,...A}=w??{};return r(De,j(A,{id:l},f,{ref:"wrapperRef",bordered:b,class:c,style:u}),{default:()=>r(Tn,null,[r(Co,j({id:o},C,i,{rowProps:v.bind(this),size:s.size,ref:"rTableInst",style:{height:y!=null?N(y):null}}),{...t}),h?null:r(ze,{show:a.showContextMenu,placement:"bottom-start",trigger:"manual",x:a.x,y:a.y,options:_,onClickoutside:()=>a.showContextMenu=!1,onSelect:m.bind(this)},null)]),header:g?_e(d,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var O;return(O=t.tableFooter)==null?void 0:O.call(t)},action:()=>{var O;return(O=t.tableAction)==null?void 0:O.call(t)}})}}),Pr=()=>{const e=ne();let n={};const t=(m,g)=>{m&&(e.value=m,n=g)},o=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[t,{getTableInstance:o,clearFilters:()=>o().clearFilters.call(null),clearSorter:()=>o().clearSorter.call(null),downloadCsv:m=>o().downloadCsv.call(null,m),filters:m=>o().filters.call(null,m),page:m=>o().page.call(null,m),scrollTo:m=>o().scrollTo(m),sort:(m,g)=>o().sort.call(null,m,g),print:m=>{const{uuidWrapper:g}=n;if(g){const b=document.getElementById(g);Pn(b,m)}},filter:m=>o().filter.call(null,m)}]},Nn=(e,n,t)=>{var o;if(e.length)for(const a of e){if(a[n]===t)return a;if((o=a==null?void 0:a.children)!=null&&o.length){const l=Nn(a.children,n,t);if(l)return l}}},on=e=>{const n=Q(e);return n?n.findIndex(o=>{const{type:a,multiple:l}=o;if(a==="selection"&&(l==null||l===!0))return!0})!==-1:!0},xr=(e,n,t,o)=>{const a=Q(e);return a?n.reduce((l,s)=>{const i=Q(t).findIndex(c=>c[o]===s);if(i!==-1)return l.push(Q(t)[i]),l;const u=a.findIndex(c=>c[o]===s);return u!==-1&&l.push(a[u]),l},[]):t},Pi=(e,n,t)=>{const o=V([]),a=V([]),{rowKey:l="key",onChange:s}=t||{},i=T(()=>on(n)),u=(g,b,h)=>{o.value=g,a.value=Q(xr(e,g,a,l)),s==null||s(g,a.value,h),on(n)},c=()=>o.value,f=()=>a.value,p=()=>{o.value=[],a.value=[],s==null||s(o.value,a.value,{row:void 0,action:"uncheckAll"})},v=g=>{if(g==null)return;let b;o.value=o.value.filter(h=>h!==g),a.value=a.value.filter(h=>h[l]===g?(b=h,!1):!0),s==null||s(o.value,a.value,{row:b,action:"uncheck"})},m=g=>{if(o.value.includes(g))return;const b=!i.value&&o.value.length>=1,h=Nn(Q(e)||[],l,g);b?o.value=[g]:o.value.push(g),h&&(b?a.value=[h]:a.value.push(h),s==null||s(o.value,a.value,{row:h,action:"check"}))};return Ft(()=>{p()}),[o,{checkedRows:a,checkedRowKeysBind:u,getKeys:c,getRows:f,clearAll:p,clearKey:v,selectKey:m}]},Mr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},Er=P({name:"RTransitionComponent",__name:"index",props:Ho({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},Mr),setup(e){const{getKeepAliveInclude:n}=Xr(),{getKeepAliveConfig:t}=X();return(o,a)=>{const l=Xo("RouterView");return Ae(),Yo("div",null,[r(l,null,{default:vt(({Component:s,route:i})=>[s?(Ae(),Ve(Mn,{key:0,name:o.transitionPropName,mode:o.transitionMode,appear:o.transitionAppear},{default:vt(()=>[(Ae(),Ve(Jo,null,{default:vt(()=>[Q(t).setupKeepAlive?(Ae(),Ve(Zo,{key:0,max:Q(t).maxKeepAliveLength,include:Q(n),exclude:Q(t).keepAliveExclude},[(Ae(),Ve(Yt(s),{key:i.fullPath}))],1032,["max","include","exclude"])):(Ae(),Ve(Yt(s),{key:i.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Qo("",!0)]),_:1})])}}}),Un=P({name:"RForm",props:Fn,setup(e,{expose:n}){const t=ie("formRef");return Ce(()=>{const{onRegister:o}=e;o&&t.value&&F(o,t.value)}),n(),{formRef:t}},render(){const{$attrs:e,$props:n,$slots:t}=this;return r(fe,j(e,n,{ref:"formRef"}),{...t})}}),Dr=(e,n)=>{const t=ne(),o=c=>{c&&(t.value=c)},a=()=>{if(!t.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return t.value};return[o,{getFormInstance:a,validate:(c,f)=>a().validate.call(null,c,f),restoreValidation:()=>a().restoreValidation.call(null),formModel:()=>Ee(e)||{},formRules:()=>Ee(n)||{}}]},zr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],Lr={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},Ir=We({...To,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...zr);function Fr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const xt=e=>{const{icon:n,label:t}=e;return n?r(I,{align:"center",wrap:!1,size:"small"},{default:()=>{var o;return[(o=_e(n))==null?void 0:o(),r("div",null,[t])]}}):t},Br=e=>{if(typeof e.popover=="string")return r(Ue,null,{trigger:()=>xt(e),default:()=>e.popover});if(ge(e.popover,"Object")){const{popover:n}=e,{label:t,...o}=n;return r(Ue,o,{trigger:()=>xt(e),default:()=>t})}},Vr=P({name:"RSegment",props:Ir,setup(e,{expose:n}){const t=T(()=>{const{width:o}=e;let a="";switch(o){case"block":a="100%";break;case"fitContent":a="fit-content";break;default:a=typeof o=="number"?N(o):"fit-content"}return{"--r-segment-width":a}});return n(),{cssVars:t}},render(){let e;const{$props:n,options:t,cssVars:o,themeOverrides:a}=this;return r(hn,j(n,{style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},Lr,a)}),Fr(e=t.map(l=>r(Oo,{key:l.key,name:l.key,tab:l.popover?Br(l):xt(l),disabled:l.disabled},{...l.slots})))?e:{default:()=>[e]})}}),jr={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},xi=P({name:"RBarcode",props:jr,setup(e){const n=ie("barcodeRef"),t=T(()=>({"--r-barcode-width":N(e.width),"--r-barcode-height":N(e.height)}));let o;const a=()=>{try{const{format:l,text:s,options:i,onSuccess:u}=e,c=Object.assign({},i,{format:l});ta(n.value,s!=null?s.toString():"",c),u&&F(u,s,l,i)}catch(l){const{onError:s}=e;s&&F(s,l)}finally{const{onFinally:l}=e;l&&F(l)}};return de(()=>{e.watchText?o=qe(()=>e.text,a):o==null||o()}),Ce(()=>{a()}),Lt(()=>{o==null||o()}),{barcodeRef:n,cssVars:t}},render(){const{barcodeRender:e,loading:n,cssVars:t}=this,o=["r-barcode",{"r-barcode--loading":n}];return r(pt,{class:"r-barcode-spin",show:n},{default:()=>[e==="canvas"?r("canvas",{class:o,style:t,ref:"barcodeRef"},null):r("svg",{class:o,style:t,ref:"barcodeRef"},null)]})}}),Nr={...We(Fe,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object,default:()=>({})},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0}};function Ur(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const Mi=P({name:"RTablePro",props:Nr,setup(e){const[n,{clearFilters:t,clearSorter:o,downloadCsv:a,filters:l,page:s,scrollTo:i,sort:u,print:c,filter:f}]=Pr(),[p,{getPage:v,getPageSize:m,setCallback:g,setItemCount:b,resetPagination:h,getItemCount:_}]=Fs(void 0,{prefix:O=>`共 ${O.itemCount} 条`}),d=T(()=>e.request),y=()=>({getItemCount:_,getPage:v,getPageSize:m}),w=()=>{const{onTablePaginationUpdate:O}=e;O&&F(O,y())},C=O=>{const L=Object.assign({},e.requestConfig,O),{formatRangeTime:k}=L;let M=L.params||{};return k!=null&&k.length&&M&&k.forEach(W=>{const{key:oe,target:G}=W,ye=M[oe];if(ye&&(G!=null&&G.length)){const[ke,ae]=ye;M[G[0]]=ke,M[G[1]]=ae}else M[oe]=null,M[G[0]]=null,M[G[1]]=null}),M=la(M),Object.assign({},M,{page:v(),pageSize:m()})},S=O=>{var k;h();const L=C(O);(k=d.value)==null||k.call(d,L)},A=O=>{var k;const L=C(O);(k=d.value)==null||k.call(d,L)};return de(()=>{b(e.paginationCount),g(()=>{const{manual:O}=e;O||A(),w()})}),Ce(()=>{const{onRegister:O}=e;O&&F(O,{getTablePagination:y,runTableRequest:S,clearFilters:t,clearSorter:o,downloadCsv:a,filters:l,page:s,scrollTo:i,sort:u,print:c,filter:f,getCurrentTableRequestParams:C,resetTablePagination:h})}),{register:n,paginationRef:p}},render(){const{register:e,$props:n,paginationRef:t,$slots:o}=this,{onRegister:a,showPagination:l,...s}=n;return r(Rr,j(s,{onRegister:e,pagination:l?t:void 0}),Ur(o)?o:{default:()=>[o]})}}),Ei=()=>{const e=V(),n=b=>{b&&(e.value=b)},t=()=>{if(!e.value)throw new Error("[useTablePro]: table instance is not ready yet. if you are using useTablePro, please make sure you have called register method in onRegister event.");return e.value};return[n,{clearFilters:()=>t().clearFilters.call(null),getTableProInstance:t,clearSorter:()=>t().clearSorter.call(null),downloadCsv:b=>t().downloadCsv.call(null,b),filters:b=>t().filters.call(null,b),page:b=>t().page.call(null,b),scrollTo:b=>t().scrollTo(b),sort:(b,h)=>t().sort.call(null,b,h),getTablePagination:()=>t().getTablePagination.call(null),runTableRequest:b=>t().runTableRequest.call(null,b),print:b=>t().print.call(null,b),getCurrentTableRequestParams:b=>t().getCurrentTableRequestParams.call(null,b),resetTablePagination:()=>t().resetTablePagination.call(null)}]},$r=()=>({grid:!0,partial:!1,keyboard:{enabled:!0}}),Kr={use:{type:Array,default:void 0},watchData:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},data:{type:Object,default:void 0},options:{type:Object,default:$r()},onRegister:{type:[Function,Array],default:void 0}};let an=!1;const Di=P({name:"RFlow",props:Kr,setup(e){const n=ie("flowDomRef"),t=T(()=>{const{width:p,height:v}=e;return{"--r-flow-width":N(p),"--r-flow-height":N(v)}}),o=ne(),a={nodeTextEdit:!1,edgeTextEdit:!1,textEdit:!1};let l;const s={nodes:[],edges:[]},i={readonly:e.readonly},u=()=>{var p;an||((p=e.use)==null||p.filter(Boolean).forEach(v=>Xt.use(v)),an=!0)},c=p=>{if(!o.value)return;const v=Object.entries(a).reduce((m,[g])=>(m[g]=!p,m),{});Object.assign(a,v,{isSilentMode:p}),o.value.updateEditConfig(a)},f=p=>{if(u(),!n.value)return;const{options:v,readonly:m}=e;o.value=new Xt({container:Q(n.value),...We(v,"container")}),o.value.render(p||s),c(m)};return de(()=>{e.watchData?l=qe(()=>e.data,p=>{o.value?p&&o.value.renderRawData(p):f(p)}):l==null||l(),e.readonly!==i.readonly&&(c(e.readonly),i.readonly=e.readonly)}),Ce(()=>{f();const{onRegister:p}=e;p&&o.value&&F(p,o.value)}),{flowDomRef:n,cssVars:t}},render(){const{cssVars:e}=this;return r("div",{class:"r-flow",style:[e],ref:"flowDomRef"},null)}}),zi=()=>{let e;return[o=>{o&&(e=o)},{getFlowInstance:()=>{if(!e)throw new Error("[useFlow]: flow instance is not ready yet. if you are using useFlow, please make sure you have called register method in onRegister event.");return e}}]},Wr=(e,n,t)=>!e||typeof e!="object"?!1:e[n]===t,$n=(e,n,t)=>{const o=[];if(Wr(e,n,t))return o.push(e),o;if(e.children&&e.children.length>0)for(const a of e.children){const l=$n(a,n,t);l.length>0&&o.push(e,...l)}return o},qr=(e,n,t)=>{const o=[];for(const a of e){const l=$n(a,n,t);l.length>0&&o.push(...l)}return o},ln=e=>{const{dynamicDocumentTitle:n}=Ie();if(!n)return;const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:o}=Ie(),a=o?o.title:"";document.title=t+" - "+a},Gr=e=>{const{meta:{icon:n}}=e;if(!n)return;if(ge(n,"Object"))return()=>n;const{menuConfig:t}=Ie(),{collapsed:o}=Vt(),a=mt(x,{name:n,size:o?t.collapsedIconSize:t.iconSize,cursor:"pointer"},{});return()=>a},Kn=e=>{const{meta:{extra:n}}=e;if(!n)return;const{show:t}=n;if(t===!1)return;const{t:o}=He(),{label:a,icon:l,type:s,i18nLabel:i}=n,u={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},c=()=>i?o(i):a||null,f=()=>l&&(i||a)||!l&&(i||a)?null:{"padding-right":"0"};if(ge(n,"Object"))return()=>mt(ko,{...u,type:s||"primary",style:f()},{default:()=>c(),icon:()=>l})},rn=()=>{const{getRootPath:e}=Je();return Le(U.appMenuKey,"sessionStorage",{defaultValue:e.value})},Hr=()=>Le(U.appMenuTagOptions,"sessionStorage",{defaultValue:[]}),Wn=()=>nr(Ql()),Yr=()=>tr(Wn()),Mt=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let tt;const qn=(e,n)=>{var t;if(tt&&Jt(tt.fullPath,n))return tt;for(const o of e){if(Jt(o.fullPath,n))return tt=o,o;if((t=o.children)!=null&&t.length){qn(o.children,n);continue}}},Vt=ft("menu",()=>{const{push:e,getRoutes:n}=Ge(),t=va(),{t:o}=He(),{setKeepAliveInclude:a}=Jr(),l=re({menuKey:rn(),options:[],collapsed:!1,menuTagOptions:Hr(),breadcrumbOptions:[],currentMenuOption:null}),s=V(!0),i=(d,y,w)=>{It(l,d,y,w)},u=d=>{const{meta:y}=d,{i18nKey:w,noLocalTitle:C}=y,S=T(()=>w?o(`${w}`):C),A={...d,key:d.fullPath,label:()=>mt(yn,null,{default:()=>S.value}),breadcrumbLabel:S.value},O=Object.assign({},A,{icon:Gr(d),extra:Kn(d)});return d.fullPath===rn()&&(l.currentMenuOption=O),O.show=Ln(O),O},c=d=>{l.breadcrumbOptions=Q(qr(l.options,"fullPath",d))},f=(d,y=!0)=>{const C=Array.isArray(d)?[...d]:[d];y?l.menuTagOptions.push(...C):l.menuTagOptions=C,Pe(U.appMenuTagOptions,l.menuTagOptions)},p=(d,y)=>{l.menuTagOptions.find(C=>C.fullPath===d)||l.menuTagOptions.push(y),l.menuTagOptions=l.menuTagOptions.filter(C=>{var S;return(S=C.fullPath)==null?void 0:S.startsWith("/")}),Pe(U.appMenuTagOptions,l.menuTagOptions)},v=(d,y,w)=>{const{meta:C}=y;if(C.windowOpen)window.open(C.windowOpen);else{e({path:String(d),query:w});const{sameLevel:S}=C;if(a(y),ln(y),!S)p(d,y),c(d),l.menuKey=d,l.currentMenuOption=y,Pe(U.appMenuKey,d);else{const A=Ne(u(y),Mt);l.breadcrumbOptions.find(L=>L.key===A.key)||l.breadcrumbOptions.push({...A,fullPath:String(A.key)})}}},m=async(d,y)=>{const[w]=d.split("?"),C=n().find(S=>S.path===w);if(!((C==null?void 0:C.path)==="/"||!(C!=null&&C.path)||(C==null?void 0:C.path)==="/login")&&C){const S=Ne(C,Mt);v(w,u({...S,fullPath:S.path}),y)}},g=()=>new Promise(d=>{const y=(C,S)=>{var O;const A=[];for(const L of C){let k=`${S.endsWith("/")?S:S+"/"}${L.path}`;if(k=k.replace(/\/+/g,"/"),(O=L.children)!=null&&O.length)L.children=y(L.children,k);else if(!Jn(L.meta))continue;A.push(u({...L,fullPath:k}))}return A};l.options=y(Wn(),"");const w=l.currentMenuOption||Qr(l.options);w&&(l.breadcrumbOptions.length||c(w.key),p(w.fullPath,w),ln(w)),d()}),b=d=>l.collapsed=d,h=(d,y=1)=>{const w=l.menuTagOptions.splice(d,y);return Pe(U.appMenuTagOptions,l.menuTagOptions),w},_=async()=>{s.value&&(await g(),s.value=!1)};return qe(()=>t.fullPath,async(d,y)=>{await _(),d!==y&&await m(d,t.query)},{immediate:!0}),{...we(l),changeMenuModelValue:v,collapsedMenu:b,spliceMenTagOptions:h,setMenuTagOptions:f,resolveOption:u,updateMenuState:i,setupAppMenu:g}},{persist:{key:U.appPiniaMenuStore,storage:window.localStorage,pick:["menuKey","collapsed"]}}),Gn=ft("signing",()=>{const{clearRoutes:e,replace:n}=Ge(),t=re({signingCallback:{}}),o=s=>new Promise((i,u)=>{mn(s)?u({code:1,message:"登陆失败",data:null}):(t.signingCallback={role:"admin",name:s.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},i({code:0,message:"登陆成功",data:t.signingCallback}))}),a=s=>{const{closeAll:i}=no(),{appPiniaMenuStore:u,appPiniaSigningStore:c,token:f,signing:p,appMenuKey:v}=U;window.$message.info("账号退出中..."),ce("__all_sessionStorage__","sessionStorage"),ce(c,"localStorage"),ce(u,"localStorage"),ce(f,"localStorage"),ce(p,"localStorage"),ce(v,"localStorage"),ce(U.isAppLockScreen,"localStorage"),i(),s&&(e(),n("/"),setTimeout(()=>{window.location.reload()},0))},l=()=>{a(!0)};return{...we(t),signing:o,logout:l,clearSigningCallback:a}},{persist:{key:U.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),Hn=ft("keepAlive",()=>{const e=re({keepAliveInclude:[]}),n=()=>e.keepAliveInclude.length,t=a=>{const l=n(),{name:s,meta:{keepAlive:i}}=a,{maxKeepAliveLength:u}=Ie().keepAliveConfig;if(i){if(l=u&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(s))}},o=()=>e.keepAliveInclude;return{...we(e),setKeepAliveInclude:t,getKeepAliveInclude:o}},{persist:{key:U.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),Oe=()=>{const e=Vt(),n=T(()=>e.options),t=T(()=>e.breadcrumbOptions),o=T(()=>e.menuKey),a=T(()=>e.menuTagOptions),l=T(()=>e.currentMenuOption),s=T(()=>e.collapsed);return{getMenuOptions:n,getBreadcrumbOptions:t,getMenuKey:o,getMenuTagOptions:a,getCurrentMenuOption:l,getCollapsed:s}},Be=()=>{const{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}=Vt();return{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}},X=()=>{const e=Ie(),n=T(()=>e.drawerPlacement),t=T(()=>e.primaryColorOverride),o=T(()=>e._appTheme),a=T(()=>e.appTheme),l=T(()=>e.menuTagSwitch),s=T(()=>e.breadcrumbSwitch),i=T(()=>e.localeLanguage),u=T(()=>e.lockScreenSwitch),c=T(()=>e.copyrightSwitch),f=T(()=>e.contentTransition),p=T(()=>e.watermarkSwitch),v=T(()=>e.watermarkConfig),m=T(()=>e.appRootRoute),g=T(()=>e.sideBarLogo),b=T(()=>e.keepAliveConfig),h=T(()=>e.menuConfig),_=T(()=>e.colorWeakness),d=T(()=>e.dynamicDocumentTitle);return{getDrawerPlacement:n,getPrimaryColorOverride:t,getAppTheme:o,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getLocaleLanguage:i,getLockScreenSwitch:u,getCopyrightSwitch:c,getContentTransition:f,getWatermarkSwitch:p,getWatermarkConfig:v,getAppRootRoute:m,getSideBarLogo:g,getKeepAliveConfig:b,getMenuConfig:h,getAppThemeStr:a,getColorWeakness:_,getDynamicDocumentTitle:d}},K=()=>{const{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=Ie();return{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}},Yn=()=>{const e=Gn();return{getSigningCallback:T(()=>e.signingCallback)}},Xn=()=>{const{signing:e,logout:n,clearSigningCallback:t}=Gn();return{signing:e,logout:n,clearSigningCallback:t}},Xr=()=>{const e=Hn();return{getKeepAliveInclude:T(()=>e.keepAliveInclude)}},Jr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:n}=Hn();return{setKeepAliveInclude:e,getKeepAliveInclude:n}},Li=e=>{const n=pa();e.use(n),n.use(da)},Jn=e=>{const{getSigningCallback:n}=Yn(),{role:t}=e;return et!=null&&et.length&&et.includes(n.value.role)||!t||!(t!=null&&t.length)?!0:t?t.includes(n.value.role):!0},Zr=e=>{const{setupRouterLoadingBar:n,setupRouterGuard:t}=tl;n&&lr(e),t&&or(e)},Qr=e=>{if(!Array.isArray(e))return;const n=t=>{for(const o of t){if((!o.children||o.children.length===0)&&!o.meta.windowOpen)return o;{const a=n(o.children||[]);if(a)return a}}};return n(e)},es=ne(),ts=P({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=Ge(),{getSideBarLogo:n}=X();return{sideBarLogo:n,sideBarLogoClick:()=>{n.value&&n.value.url&&(n.value.jumpType==="station"?e.push(n.value.url):window.open(n.value.url))},TemplateLogo:({cursor:a})=>{if(!n.value)return null;if(typeof n.value.icon=="string")return r(x,{name:n.value.icon,size:"30",cursor:a},null);if(ge(n.value.icon,"Object"))return _e(n.value.icon)}}},render(){const{sideBarLogo:e,collapsed:n,TemplateLogo:t,sideBarLogoClick:o}=this;return e!=null&&e.title?r("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:o.bind(this),ref:es},[e!=null&&e.icon?n?r(it,{placement:"right"},{trigger:()=>t({cursor:"pointer"}),default:()=>e.title}):t({cursor:"pointer"}):n?r(it,{placement:"right"},{trigger:()=>r(qt,{type:"primary",size:18},{default:()=>{var a;return[((a=e.title)==null?void 0:a[0])||null]}}),default:()=>e.title}):null,r(qt,{class:[n?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(yn,null,{default:()=>[e.title]})]})]):null}}),ns=P({name:"AppMenu",setup(){const e=ne(),{changeMenuModelValue:n,collapsedMenu:t,updateMenuState:o}=Be(),{getMenuConfig:a}=X(),{getMenuOptions:l,getCollapsed:s,getMenuKey:i}=Oe(),u=T({get:()=>(setTimeout(()=>{p(),xn()},300),i.value),set:()=>{c.value&&me("globalDrawerValue",!1)}}),{isTabletOrSmaller:c}=Xe({observer:m=>{m&&o("collapsed",!1)}}),f=T({get:()=>gt("globalDrawerValue").value,set:m=>{me("globalDrawerValue",m)}}),p=()=>{const m=u.value;m!=null&&te(()=>{var g,b;return(b=(g=e.value)==null?void 0:g.showOption)==null?void 0:b.call(g,m)})};return{isTabletOrSmaller:c,BasicMenu:()=>r(Ro,{class:"app-menu__sider",showTrigger:!c.value,collapseMode:a.value.collapsedMode,collapsedWidth:a.value.collapsedWidth,onUpdateCollapsed:t.bind(this),width:a.value.menuWidth,nativeScrollbar:a.value.nativeScrollbar,ref:Dn,collapsed:s.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)},inverted:a.value.inverted},{default:()=>[a.value.menuSiderBarLogo?r(ts,{collapsed:s.value},null):null,r(Ao,{ref:e,class:"r-menu--app",keyField:"fullPath",value:u.value,"onUpdate:value":m=>u.value=m,options:l.value,indent:a.value.collapsedIndent,collapsed:s.value,collapsedIconSize:a.value.collapsedIconSize,collapsedWidth:a.value.collapsedWidth,onUpdateValue:(m,g)=>{n(m,g)},accordion:a.value.accordion,iconSize:a.value.iconSize,inverted:a.value.inverted},null)]}),modelGlobalDrawerValue:f}},render(){const{isTabletOrSmaller:e,BasicMenu:n}=this;return e?r(bn,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":t=>this.modelGlobalDrawerValue=t,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[r(n,null,null)]}):r(n,null,null)}});class os{constructor(){$t(this,"pendingRequest");this.pendingRequest=new Map}isAppending(n){var t;return((t=n.cancelConfig)==null?void 0:t.cancel)??!0}generateRequestKey(n){const{method:t,url:o}=n;return[o||"",t||"",JSON.stringify(n.params),JSON.stringify(n.data)].join("&")}addPendingRequest(n){var t;if(this.isAppending(n)){n.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const o=this.generateRequestKey(n);if(this.pendingRequest.has(o))n.signal=(t=this.pendingRequest.get(o))==null?void 0:t.signal;else{const a=new AbortController;n.signal=a.signal,this.pendingRequest.set(o,a)}}}removePendingRequest(n){const t=this.generateRequestKey(n);this.pendingRequest.has(t)&&(this.pendingRequest.get(t).abort(),this.pendingRequest.delete(t))}cancelAllRequest(){this.pendingRequest.forEach(n=>{n.abort()})}}const wt={requestInstance:null,responseInstance:null},Ct={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},nt={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},as=new os,Ii=()=>{const e=(i,u)=>{u==="requestInstance"?wt.requestInstance=i:wt.responseInstance=i},n=i=>wt[i],t=(i,u,c)=>{c==="ok"?Ct[i]=u:nt[i]=u},o=(i,u)=>u==="ok"?Ct[i]:nt[i],a=(i,...u)=>{Array.isArray(i)&&i.forEach(c=>{typeof c=="function"&&c(...u)})};return{createAxiosInstance:e,setImplement:t,getImplement:o,getAxiosInstance:n,beforeFetch:(i,u,c)=>{const f=c==="ok"?Ct[u]:nt[u],p=n(i),{MODE:v}=Rt();p&&a(f,p,v)},fetchError:(i,u,c)=>{const f=nt[c],{MODE:p}=Rt();a(f,u,p)}}},ls=P({name:"AppRequestCancelerProvider",setup(e,{expose:n}){_a(()=>{as.cancelAllRequest()}),n()},render(){return r("div",{class:"app-style-provider"},null)}}),Zn=P({name:"LayoutContentWrapper",setup(){Ge();const{maximize:e}=to(),{getContentTransition:n}=X(),t=V(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:a,layoutContentMaximize:l,layoutContentSpinning:s}=ol();return{globalMainLayoutLoad:a,spinning:t,themeOverridesSpin:o,getContentTransition:n,layoutContentMaximize:l,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:n,layoutContentSpinning:t,maximize:o,spinning:a,themeOverridesSpin:l,getContentTransition:s}=this;return r(pt,{show:a||!e||t,description:"loading...",size:"large",themeOverrides:l,class:[n?"r-layout-full__viewer-content--maximize":null]},{default:()=>[n?r("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[r(x,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(ls,null,null),e?r(Er,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),rs=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"}));var ss={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^12.0.0",axios:"^1.7.9",clipboard:"^2.0.11","crypto-js":"4.2.0","currency.js":"^2.0.4",dayjs:"^1.11.13",echarts:"^5.5.1","html-to-image":"1.11.11",interactjs:"1.10.27",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.41.0",pinia:"^2.3.0","pinia-plugin-persistedstate":"^4.1.3","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.10","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.4.0","vue3-next-qrcode":"2.0.10"},devDependencies:{"@amap/amap-jsapi-types":"0.0.15","@ant-design/icons-vue":"7.0.1","@commitlint/cli":"19.3.0","@commitlint/config-conventional":"19.2.2","@interactjs/types":"1.10.27","@intlify/unplugin-vue-i18n":"4.0.0","@types/crypto-js":"4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"4.17.12","@types/mockjs":"1.0.10","@types/three":"0.169.0","@typescript-eslint/eslint-plugin":"8.18.2","@typescript-eslint/parser":"8.18.2","@vitejs/plugin-vue":"5.2.1","@vitejs/plugin-vue-jsx":"4.1.1","@vitest/ui":"1.5.2","@vue/eslint-config-prettier":"10.1.0","@vue/eslint-config-typescript":"14.2.0","@vue/test-utils":"2.4.6",autoprefixer:"10.4.20",depcheck:"1.4.7",eslint:"9.11.0","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.2.1","eslint-plugin-vue":"9.32.0",globals:"15.14.0","happy-dom":"14.12.3",husky:"8.0.3","lint-staged":"15.2.2",postcss:"8.4.49","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"3.3.2","rollup-plugin-gzip":"4.0.1",sass:"1.83.0","svg-sprite-loader":"6.0.11",typescript:"5.6.3","unplugin-auto-import":"0.19.0","unplugin-vue-components":"0.28.0",vite:"6.0.7","vite-bundle-analyzer":"0.15.2","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"0.8.4","vite-plugin-mock-dev-server":"1.8.3","vite-plugin-svg-icons":"2.0.1","vite-svg-loader":"5.1.0",vitest:"2.0.5","vue-tsc":"2.2.0"},name:"ray-template",version:"5.0.10"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"}};const is=P({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=ss;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),us=P({name:"TooltipIcon",props:{...Po,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:n}){const t=a=>{n("click",a)};return{iconClick:t,Icon:()=>r(x,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:t.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?r(it,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),cs=P({name:"ThemeSegment",setup(){const{system:e}=Sn(),{getAppThemeStr:n,getAppTheme:t}=X(),{updateSettingState:o}=K(),a=[{label:"深色",key:"dark",icon:()=>r(x,{name:"dark",size:"16"},null)},{label:"浅色",key:"light",icon:()=>r(x,{name:"light",size:"16"},null)},{label:"自动",key:"auto",icon:()=>r(x,{name:"system_os",size:"16"},null)}],l=T({get:()=>n.value==="auto"?"auto":t.value?"dark":"light",set:i=>{s(i,e.value)}}),s=(i,u)=>{if(i==="auto"){o("_appTheme",u==="dark"),o("appTheme","auto");return}o("_appTheme",i==="dark"),o("appTheme",i)};return de(()=>{s(l.value,e.value)}),{options:a,modelAppTheme:l}},render(){const{options:e}=this;return r(Vr,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":n=>this.modelAppTheme=n},null)}}),Ye=Symbol("segmentDrawer"),ds=P({name:"SegmentViewsAppearance",setup(){const e=Te(Ye,{}),{changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=K();return{toggleColorWeakness:o,model:e,changePrimaryColor:n,updateSettingState:t}},render(){const{toggleColorWeakness:e,model:n,changePrimaryColor:t,updateSettingState:o}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[q("系统主题")]}),r(cs,null,null),r(le,null,{default:()=>[q("内置主题")]}),r(xo,{showPreview:!0,swatches:Se.appThemeColors,value:n.primaryColorOverride.common.primaryColor,"onUpdate:value":a=>n.primaryColorOverride.common.primaryColor=a,onUpdateValue:t.bind(this)},null),r(le,null,{default:()=>[q("切换动画")]}),r(Gt,{value:n.contentTransition,"onUpdate:value":a=>n.contentTransition=a,options:Xa,onUpdateValue:a=>{o("contentTransition",a)}},null),r(le,null,{default:()=>[q("配置入口出现位置")]}),r(Gt,{value:n.drawerPlacement,"onUpdate:value":a=>n.drawerPlacement=a,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:a=>{o("drawerPlacement",a)}},null),r(le,null,{default:()=>[q("其他设置")]}),r(fe,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(z,{label:"面包屑"},{default:()=>[r(ee,{value:n.breadcrumbSwitch,"onUpdate:value":a=>n.breadcrumbSwitch=a,onUpdateValue:a=>o("breadcrumbSwitch",a)},null)]}),r(z,{label:"标签页"},{default:()=>[r(ee,{value:n.menuTagSwitch,"onUpdate:value":a=>n.menuTagSwitch=a,onUpdateValue:a=>o("menuTagSwitch",a)},null)]}),r(z,{label:"页底信息"},{default:()=>[r(ee,{value:n.copyrightSwitch,"onUpdate:value":a=>n.copyrightSwitch=a,onUpdateValue:a=>o("copyrightSwitch",a)},null)]}),r(z,{label:"色弱模式"},{default:()=>[r(ee,{value:n.colorWeakness,"onUpdate:value":a=>n.colorWeakness=a,onUpdateValue:a=>{o("colorWeakness",a),e(a)}},null)]})]})]})}}),ps=P({name:"SegmentViewsCommon",setup(){const e=Te(Ye,{}),{updateSettingState:n}=K();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[q("基础设置")]}),r(fe,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(z,{label:"页面缓存"},{default:()=>[r(ee,{value:e.keepAliveConfig.setupKeepAlive,"onUpdate:value":t=>e.keepAliveConfig.setupKeepAlive=t,onUpdateValue:t=>n("keepAliveConfig",{setupKeepAlive:t})},null)]}),r(z,{label:"动态浏览器标题"},{default:()=>[r(ee,{value:e.dynamicDocumentTitle,"onUpdate:value":t=>e.dynamicDocumentTitle=t,onUpdateValue:t=>n("dynamicDocumentTitle",t)},null)]})]}),r(le,null,{default:()=>[q("缓存设置")]}),r(fe,{labelPlacement:"top",showFeedback:!0,showRequireMark:!1,model:e.keepAliveConfig},{default:()=>[r(z,{label:"最大缓存数",feedback:T(()=>e.keepAliveConfig.maxKeepAliveLength<=0?"设置为【0】时,缓存将会失效":"").value},{default:()=>[r(Y,{disabled:!e.keepAliveConfig.setupKeepAlive,value:e.keepAliveConfig.maxKeepAliveLength,"onUpdate:value":t=>e.keepAliveConfig.maxKeepAliveLength=t,min:0,precision:0,showButton:!1,onUpdateValue:t=>n("keepAliveConfig",{maxKeepAliveLength:t})},null)]}),r(z,{label:"排除缓存"},{default:()=>[r(Mo,{type:"success",value:e.keepAliveConfig.keepAliveExclude,"onUpdate:value":t=>e.keepAliveConfig.keepAliveExclude=t},null)]})]})]})}}),ms=P({name:"SegmentViewsWatermark",setup(){const e=Te(Ye,{}),{updateSettingState:n}=K();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[q("基础设置")]}),r(fe,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(z,{label:"全屏水印"},{default:()=>[r(ee,{value:e.watermarkSwitch,"onUpdate:value":t=>e.watermarkSwitch=t,onUpdateValue:t=>n("watermarkSwitch",t)},null)]}),r(z,{label:"跨边界显示"},{default:()=>[r(ee,{value:e.watermarkConfig.cross,"onUpdate:value":t=>e.watermarkConfig.cross=t,onUpdateValue:t=>n("watermarkConfig",{cross:t})},null)]})]}),r(le,null,{default:()=>[q("个性化水印")]}),r(fe,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(z,{label:"水印内容"},{default:()=>[r(zt,{value:e.watermarkConfig.content,"onUpdate:value":t=>e.watermarkConfig.content=t,onUpdateValue:t=>n("watermarkConfig",{content:t})},null)]}),r(z,{label:"字体尺寸"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.fontSize,"onUpdate:value":t=>e.watermarkConfig.fontSize=t,onUpdateValue:t=>n("watermarkConfig",{fontSize:t})},null)]}),r(z,{label:"字体行高"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.lineHeight,"onUpdate:value":t=>e.watermarkConfig.lineHeight=t,onUpdateValue:t=>n("watermarkConfig",{lineHeight:t})},null)]}),r(z,{label:"字体宽度"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.width,"onUpdate:value":t=>e.watermarkConfig.width=t,onUpdateValue:t=>n("watermarkConfig",{width:t})},null)]}),r(z,{label:"字体高度"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.height,"onUpdate:value":t=>e.watermarkConfig.height=t,onUpdateValue:t=>n("watermarkConfig",{height:t})},null)]}),r(z,{label:"x轴偏移"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.xOffset,"onUpdate:value":t=>e.watermarkConfig.xOffset=t,onUpdateValue:t=>n("watermarkConfig",{xOffset:t})},null)]}),r(z,{label:"x轴间隙"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.xGap,"onUpdate:value":t=>e.watermarkConfig.xGap=t,onUpdateValue:t=>n("watermarkConfig",{xGap:t})},null)]}),r(z,{label:"y轴偏移"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.yOffset,"onUpdate:value":t=>e.watermarkConfig.yOffset=t,onUpdateValue:t=>n("watermarkConfig",{yOffset:t})},null)]}),r(z,{label:"y轴间隙"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.yGap,"onUpdate:value":t=>e.watermarkConfig.yGap=t,onUpdateValue:t=>n("watermarkConfig",{yGap:t})},null)]}),r(z,{label:"旋转角度"},{default:()=>[r(Y,{precision:0,showButton:!1,value:e.watermarkConfig.rotate,"onUpdate:value":t=>e.watermarkConfig.rotate=t,onUpdateValue:t=>n("watermarkConfig",{rotate:t})},null)]})]})]})}}),fs=P({name:"SegmentViewsCustomMenu",setup(){const e=Te(Ye,{}),{updateSettingState:n}=K();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,{titlePlacement:"center"},{default:()=>[r(I,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(it,{placement:"top",showArrow:!1},{trigger:()=>r(x,{name:"question",size:"16"},null),default:()=>"菜单更新是一个复杂、耗时的操作,请手动点击【更新菜单】按钮更新设置"}),r(vn,null,{default:()=>[q("菜单样式")]})]})]}),r(fe,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(z,{label:"每级菜单缩进"},{default:()=>[r(Y,{value:e.menuConfig.collapsedIndent,"onUpdate:value":t=>e.menuConfig.collapsedIndent=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIndent:t})},null)]}),r(z,{label:"菜单图标尺寸"},{default:()=>[r(Y,{value:e.menuConfig.iconSize,"onUpdate:value":t=>e.menuConfig.iconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{iconSize:t})},null)]}),r(z,{label:"折叠菜单图标尺寸"},{default:()=>[r(Y,{value:e.menuConfig.collapsedIconSize,"onUpdate:value":t=>e.menuConfig.collapsedIconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIconSize:t})},null)]}),r(z,{label:"菜单宽度"},{default:()=>[r(Y,{value:e.menuConfig.menuWidth,"onUpdate:value":t=>e.menuConfig.menuWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{menuWidth:t})},null)]}),r(z,{label:"折叠菜单宽度"},{default:()=>[r(Y,{value:e.menuConfig.collapsedWidth,"onUpdate:value":t=>e.menuConfig.collapsedWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedWidth:t})},null)]}),r(z,{showFeedback:!1,showLabel:!1},{default:()=>[r(J,{onClick:e.throttleSetupAppMenu,block:!0,type:"primary"},{default:()=>[q("更新菜单")]})]})]}),r(le,null,{default:()=>[q("其他设置")]}),r(fe,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(z,{label:"反转色菜单"},{default:()=>[r(ee,{value:e.menuConfig.inverted,"onUpdate:value":t=>e.menuConfig.inverted=t,onUpdateValue:t=>n("menuConfig",{inverted:t})},null)]}),r(z,{label:"菜单标题"},{default:()=>[r(ee,{value:e.menuConfig.menuSiderBarLogo,"onUpdate:value":t=>e.menuConfig.menuSiderBarLogo=t,onUpdateValue:t=>n("menuConfig",{menuSiderBarLogo:t})},null)]}),r(z,{label:"手风琴菜单"},{default:()=>[r(ee,{value:e.menuConfig.accordion,"onUpdate:value":t=>e.menuConfig.accordion=t,onUpdateValue:t=>n("menuConfig",{accordion:t})},null)]}),r(z,{label:"原生滚动条"},{default:()=>[r(ee,{value:e.menuConfig.nativeScrollbar,"onUpdate:value":t=>e.menuConfig.nativeScrollbar=t,onUpdateValue:t=>n("menuConfig",{nativeScrollbar:t})},null)]})]})]})}}),gs=P({name:"SettingDrawer",props:Eo,setup(){const{create:e}=yr(),{changePrimaryColor:n,updateSettingState:t}=K(),{getAppTheme:o,getPrimaryColorOverride:a,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getKeepAliveConfig:f,getMenuConfig:p,getDrawerPlacement:v,getColorWeakness:m,getWatermarkConfig:g,getDynamicDocumentTitle:b}=X(),{setupAppMenu:h}=Be(),_=Et(h,300),d=re({menuTagSwitch:l.value,breadcrumbSwitch:s.value,copyrightSwitch:i.value,contentTransition:u.value,watermarkSwitch:c.value,keepAliveConfig:f.value,menuConfig:p.value,drawerPlacement:v.value,colorWeakness:m.value,primaryColorOverride:a.value,watermarkConfig:g.value,dynamicDocumentTitle:b.value,throttleSetupAppMenu:_}),y=()=>{e({preset:"dialog",title:"恢复默认配置",type:"warning",content:"点击【确认初始化】按钮会恢复默认系统配置,是否继续?",positiveText:"确认初始化",negativeText:"取消",onPositiveClick:()=>{po(Ee(In()),(w,C)=>{d[C]=w,t(C,w)}),_()}})};return Cn(Ye,d),{changePrimaryColor:n,getAppTheme:o,getPrimaryColorOverride:a,updateSettingState:t,modelReactive:d,defaultSettingBtnClick:y}},render(){const{defaultSettingBtnClick:e,$props:n}=this,{trapFocus:t,autoFocus:o,nativeScrollbar:a,...l}=n;return r(bn,j(l,{trapFocus:!1,autoFocus:!1,width:320}),{default:()=>[r(Do,{title:"个性化配置",closable:!0},{default:()=>r(hn,{type:"bar",animated:!0,defaultValue:"appearance"},{default:()=>[r(Qe,{name:"appearance",tab:"外观"},{default:()=>[r(ds,null,null)]}),r(Qe,{name:"menu",tab:"菜单"},{default:()=>[r(fs,null,null)]}),r(Qe,{name:"watermark",tab:"水印"},{default:()=>[r(ms,null,null)]}),r(Qe,{name:"common",tab:"通用"},{default:()=>[r(ps,null,null)]})]}),footer:()=>r(I,{justify:"flex-start"},{default:()=>[r(J,{type:"warning",onClick:e},{icon:()=>r(x,{name:"reload"},null),default:()=>"初始化配置"})]})})]})}});function hs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const ys=P({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=Be(),{getBreadcrumbOptions:n}=Oe(),{isTabletOrSmaller:t}=Xe();return{getBreadcrumbOptions:n,dropdownSelect:(l,s)=>{e(l,s)},breadcrumbItemClick:l=>{var s;if(!((s=l.children)!=null&&s.length)){const{meta:i={}}=l;i.sameLevel||e(l.fullPath,l)}},isTabletOrSmaller:t}},render(){let e;const{isTabletOrSmaller:n,getBreadcrumbOptions:t}=this,{dropdownSelect:o,breadcrumbItemClick:a}=this;return n?r("div",{style:"display: none;"},null):r(Lo,null,{default:()=>[r(Ca,{tag:"li",name:"breadcrumb",appear:!0},hs(e=t.map(l=>r(zo,{key:l.fullPath,onClick:a.bind(this,l)},{default:()=>{var s;return[r(ze,{labelField:"breadcrumbLabel",keyField:"fullPath",options:l.children&&((s=l.children)==null?void 0:s.length)>1?l.children:[],onSelect:o.bind(this)},{default:()=>r("span",null,[l.label&&typeof l.label=="function"?l.label():l.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function Tt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const bs=P({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:n}){const{changeMenuModelValue:t,resolveOption:o}=Be(),{getRoutes:a}=Ge(),l=T({get:()=>e.show,set:S=>{n("update:show",S),S||m()}}),s=re({searchValue:null,searchOptions:[]}),i=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let u=0,c=u;const{isTabletOrSmaller:f}=Xe({observer:S=>{S&&(l.value=!1)}}),p=V(!1),v="content-item--active",m=()=>{s.searchOptions=[],s.searchValue=null,u=0,c=u},g=S=>{l.value||(S.ctrlKey||S.metaKey)&&S.key==="k"&&(S.preventDefault(),S.stopPropagation(),m(),l.value=!0)},b=S=>{if(S)p.value=!0;else{p.value=!1,s.searchOptions=[];return}const A=a().reduce((O,L)=>{var W;const k=Ne(L,["children","meta","path","name"]),M=o({...k,fullPath:L.path}),{breadcrumbLabel:$}=M;return(W=$==null?void 0:$.toLocaleLowerCase())!=null&&W.includes(S.toLocaleLowerCase())&&Ln(M)&&O.push(M),O},[]);setTimeout(()=>{s.searchOptions=A,te().then(()=>{_()}),p.value=!1},300)},h=S=>{if(S){const{meta:A}=S;A.windowOpen?window.open(A.windowOpen):(l.value=!1,t(S.fullPath,S),setTimeout(xn,300))}},_=()=>{const S=s.searchOptions[u],A=s.searchOptions[c];S&&te().then(()=>{const O=Ke(`attr:data_path="${S.path}"`),L=A?Ke(`attr:data_path="${A==null?void 0:A.path}"`):null;if(L!=null&&L.length){const[k]=L;ra(k,v)}if(O!=null&&O.length){const[k]=O;Rn(k,v)}})},d=S=>{const{icon:A}=S;return typeof A=="string"&&A?r(x,{name:A,size:"24"},null):typeof A=="function"?r(A,null,null):r(x,{name:"search",size:"24"},null)},y=S=>{S==="up"&&(u-=1,u<0&&(u=s.searchOptions.length-1)),S==="down"&&(u+=1,u>=s.searchOptions.length&&(u=0))},w=S=>{const A=S.key;switch((A==="ArrowUp"||A==="ArrowDown"||A==="Enter")&&(S.preventDefault(),S.stopPropagation()),c=u<=0?0:u,A){case"ArrowUp":y("up");break;case"ArrowDown":y("down");break;case"Enter":const O=s.searchOptions[u];O&&h(O);break}_()},C=({menuOption:S})=>r(I,j({align:"center",class:"content-item"},{onClick:h.bind(this,S),data_path:S.path}),{default:()=>[r("div",{class:"content-item-icon"},[d(S.meta)]),r("div",{class:"content-item-label"},[S.breadcrumbLabel]),r(x,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return $e(window,"keydown",g),{...we(s),modelShow:l,helperTipOptions:i,fuzzySearchMenuOptions:Et(b,300),searchItemClick:h,RenderPreIcon:d,isTabletOrSmaller:f,SearchItem:C,loading:p,registerChangeSearchElementIndex:w}},render(){const{isTabletOrSmaller:e,searchOptions:n,loading:t}=this,{SearchItem:o,fuzzySearchMenuOptions:a,registerChangeSearchElementIndex:l}=this;return e?r("div",{style:"display: none;"},null):r(fn,{show:this.modelShow,"onUpdate:show":s=>this.modelShow=s,transformOrigin:"center",displayDirective:"if"},{default:()=>[r("div",{class:"global-search global-search--dark global-search--light",tabindex:"-1",onKeydown:l},[r("div",{class:"global-search__wrapper"},[r(De,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(zt,{size:"large",value:this.searchValue,"onUpdate:value":s=>this.searchValue=s,clearable:!0,onInput:a.bind(this)},{prefix:()=>r(x,{name:"search",size:"24"},null)}),default:()=>{let s;return r(Dt,null,{default:()=>[r(pt,{show:t},{default:()=>[n.length?r(I,{vertical:!0,size:[0,6],class:"global-search__card-content"},Tt(s=n.map((i,u)=>r(o,{menuOption:i,key:i.fullPath},null)))?s:{default:()=>[s]}):r(Io,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(I,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(vn,null,{default:()=>[q("没有搜索结果")]})]})})]})]})},action:()=>{let s;return r(I,{justify:"flex-start",align:"center",size:[16,0]},Tt(s=this.helperTipOptions.map(i=>r(I,{key:i.label,size:[4,0]},{default:()=>[i.icon.map(u=>r(I,{class:"item-icon",align:"center",justify:"center"},Tt(u)?u:{default:()=>[u]})),r(I,{class:"item-label",align:"center"},{default:()=>[i.label]})]})))?s:{default:()=>[s]})}})])])]})}}),vs=P({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=sa();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:a}=e;a&&F(a,o)}}},render(){const{getShortcutKeyAboutSystem:e,click:n,$t:t}=this;return r(J,{bordered:!1,onClick:n.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>r(x,{name:"search",size:"16"},null),default:()=>r(I,{align:"center"},{default:()=>[t("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),Qn=P({name:"AppAvatar",props:{...Fo,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(){const{getSigningCallback:e}=Yn();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:n,spaceSize:t,$props:o,vertical:a}=this;return r(J,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(I,{align:"center",size:t,vertical:a},{default:()=>[r(Bo,j(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),{default:()=>{var l;return e.avatar?null:(l=e==null?void 0:e.name)==null?void 0:l[0]}}),e==null?void 0:e.name]})]})}}),_s=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Ss={logout:()=>{const{logout:e}=Xn();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=K();e("lockScreenSwitch",!0)}},ws=e=>{const n=Ss[e];n?n():window.$message.info("这个人很懒, 没做这个功能~")},Cs=e=>{const{isTabletOrSmaller:n}=e,t=[],o=[{name:"menu",size:18,eventKey:"menu"}];return n.value?o:t},Ts=e=>{const{isTabletOrSmaller:n}=e,t=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],o=[...t],a=[...t];return n.value?a:o},Os=P({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:n}=K(),{t}=He(),[o,{toggleFullscreen:a,isEnabled:l}]=On(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:i}=X(),u=V(!1),c=V(!1),{isTabletOrSmaller:f}=Xe(),p=gt("globalDrawerValue"),v=T(()=>Cs({isFullscreen:o,isTabletOrSmaller:f})),m=T(()=>Ts({isFullscreen:o,isTabletOrSmaller:f})),g={search:()=>{c.value=!0},setting:()=>{u.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{l||window.$message.warning(t("globalMessage.isEnabledFullscreen")),a()},lock:()=>{n("lockScreenSwitch",!0)},menu:()=>{me("globalDrawerValue",!p.value)}};return{leftIconOptions:v,rightTooltipIconOptions:m,toolIconClick:_=>{var d;(d=g[_])==null||d.call(g)},showSettings:u,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:i,globalSearchShown:c,isRenderVNode:_=>f.value?null:_}},render(){const{rightTooltipIconOptions:e,leftIconOptions:n,getDrawerPlacement:t,getBreadcrumbSwitch:o}=this,{toolIconClick:a,updateLocale:l,isRenderVNode:s}=this;return r(_n,{class:"layout-header"},{default:()=>[r(bs,{show:this.globalSearchShown,"onUpdate:show":i=>this.globalSearchShown=i},null),r(I,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(I,{align:"center",wrap:!1},{default:()=>[n.map(i=>r(us,{key:i.name,iconName:i.name,tooltipText:wn(i.tooltip)?i.tooltip.value:i.tooltip,customClassName:i.iconClass,onClick:a.bind(this,i.name)},null)),o?r(ys,null,null):null]}),r(I,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(r(vs,{onClick:i=>{i.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(i=>r(J,{class:"override-button__layout",quaternary:!0,size:"medium",key:i.name,onClick:a.bind(this,i.name),focusable:!1},{default:()=>[r(x,{name:i.name,size:16,cursor:"pointer"},null)]})),r(ze,{options:En,onSelect:i=>l(String(i)),trigger:"click"},{default:()=>[r(J,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(x,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(ze,{options:_s(),onSelect:ws.bind(this),trigger:"click"},{default:()=>[r(Qn,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(gs,{show:this.showSettings,"onUpdate:show":i=>this.showSettings=i,placement:t},null)]})}}),ks=P({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(I,{size:[0,0]},{default:()=>[r(Os,null,null)]})}});function As(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!he(e)}const Rs=P({name:"AppMenuTag",setup(e,{expose:n}){const t=ie("scrollRef"),{getMenuKey:o,getMenuTagOptions:a}=Oe(),{changeMenuModelValue:l}=Be(),{getRootPath:s}=Je(),{maximize:i}=to(),{reload:u}=Bs(),{close:c,closeAll:f,closeRight:p,closeLeft:v,closeOther:m,checkCloseLeft:g,checkCloseRight:b}=no(),h=["closeAll","closeRight","closeLeft","closeOther"];let _=1/0;const d={size:16},y=V([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(x,{name:"close",size:d.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(x,{name:"fullscreen_fold",size:d.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(x,{name:"reload",size:d.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(x,{name:"shared",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(x,{name:"close_left",size:d.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(x,{name:"close_right",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(x,{name:"close_other",size:d.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(x,{name:"resize_h",size:d.size},null),disabled:!1}]),w=ct(16),C={closeCurrentPage:()=>{o.value!==s.value&&c(_)},reloadCurrentPage:()=>{u()},closeAll:()=>{f()},closeRight:()=>{p(_)},closeLeft:()=>{v(_)},closeOther:()=>{m(_)},windowOpenTab:()=>{const R=a.value[_];if(!(R!=null&&R.fullPath))return;const E=R.fullPath.startsWith("#")?R.fullPath:`#${R.fullPath}`;window.open(E,"_blank")},maximizeLayoutContent:()=>{const R=a.value[_];i(!0),R&&oe(R)}},S=re({x:0,y:0,actionDropdownShow:!1}),A="menu_tag_data",O=gt("globalMainLayoutLoad"),L="n-scrollbar-container";let k=o.value;const M=V(!1),$=R=>{c(R)},W=(R,E)=>{for(const Z of y.value)if(Z.key===R){Z.disabled=E;break}},oe=R=>{S.actionDropdownShow=!1,l(R.fullPath,R)},G=()=>{const R=document.getElementById(w);if(R)return Array.from(R.childNodes).find(Ze=>ia(Ze,L).value)},ye=R=>{var Z;const E=G();if(E){const Ze=E.scrollLeft||0,Ut=R==="left"?Math.max(0,Ze-200):Ze+200;(Z=t.value)==null||Z.scrollTo({left:Ut,behavior:"smooth"})}},ke=R=>{S.actionDropdownShow=!1;const E=C[R];E==null||E()},ae=(R,E)=>{E.preventDefault(),_=R,S.actionDropdownShow=!1,te(()=>{S.x=E.clientX,S.y=E.clientY,S.actionDropdownShow=!0})},Nt=()=>{b(_)?W("closeRight",!1):W("closeRight",!0),g(_)?W("closeLeft",!1):W("closeLeft",!0)},ao=()=>{_=a.value.findIndex(E=>E.fullPath===o.value),Nt()},lo=R=>{a.value.length>1&&R.fullPath!==s.value&&(R.closeable=!0),M.value=!0},ro=R=>{R.fullPath!==o.value&&(R.closeable=!1),M.value=!1},so=()=>{G()&&te().then(()=>{var E;(E=t.value)==null||E.scrollTo({left:99999,behavior:"smooth"})})},ht=()=>{te().then(()=>{const R=Ke(`attr:${A}="${o.value}"`);if(R!=null&&R.length){const[E]=R;te().then(()=>{var Z;(Z=t.value)==null||Z.scrollTo({left:E.offsetLeft,behavior:"smooth"})})}})},io=()=>{i(!0)};return qe(()=>a.value,(R,E)=>{y.value.forEach(Z=>{h.includes(Z.key)&&(R.length>1?Z.disabled=!1:Z.disabled=!0)}),E!=null&&E.length&&(R.length>(E==null?void 0:E.length)?so():R.length===(E==null?void 0:E.length)&&ht()),E===void 0&&ht()},{immediate:!0}),de(()=>{S.actionDropdownShow&&Nt(),k!==o.value&&(k=o.value,ht())}),n(),{getMenuTagOptions:a,closeCurrentMenuTag:$,getMenuKey:o,menuTagClick:oe,moreOptions:y,scrollX:ye,scrollRef:t,uuidScrollBar:w,actionDropdownSelect:ke,actionState:S,menuTagContextMenu:ae,setCurrentContextmenuIndex:ao,menuTagMouseenter:lo,menuTagMouseleave:ro,MENU_TAG_DATA:A,iconConfig:d,maximize:i,reload:u,globalMainLayoutLoad:O,maximizeBtnClick:io,isMouseInMenuTag:M}},render(){let e;const{iconConfig:n,uuidScrollBar:t,getMenuTagOptions:o,MENU_TAG_DATA:a,globalMainLayoutLoad:l,isMouseInMenuTag:s}=this,{maximizeBtnClick:i,closeCurrentMenuTag:u,scrollX:c,$t:f,menuTagClick:p,menuTagContextMenu:v,menuTagMouseenter:m,menuTagMouseleave:g,actionDropdownSelect:b,reload:h}=this;return r(_n,null,{default:()=>[r("div",{class:"menu-tag"},[r(ze,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:b.bind(this),onClickoutside:()=>{s||(this.actionState.actionDropdownShow=!1)}},null),r(I,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.scrollX.bind(this,"left")},{icon:()=>r(x,{name:"expanded",width:n.size,height:n.size,customClassName:"menu-tag__left-arrow"},null)}),r(Dt,j({xScrollable:!0,ref:"scrollRef"},{id:t},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[r(I,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},As(e=o.map((_,d)=>r(J,j({key:_.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:_.fullPath===this.getMenuKey?"primary":"default"},{onClick:p.bind(this,_),onContextmenu:v.bind(this,d),onMouseenter:m.bind(this,_),onMouseleave:g.bind(this,_),[a]:_.fullPath},{size:"small",focusable:!1,iconPlacement:"right"}),{default:()=>r(Tn,null,[r("span",null,{default:()=>{const{breadcrumbLabel:y,meta:{i18nKey:w}}=_;return w?f(w):y}})]),icon:()=>r(x,j({customClassName:"menu-tag__btn-icon",name:"close",size:"15"},{onMousedown:u.bind(this,d)}),null)})))?e:{default:()=>[e]})]}),r(I,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:c.bind(this,"right")},{icon:()=>r(x,{name:"expanded",width:n.size,height:n.size,style:{transform:"rotate(180deg)"}},null)}),r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:i},{icon:()=>r(x,{name:"fullscreen_fold",width:n.size,height:n.size},null)}),r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{h()}},{icon:()=>r(x,{name:"reload",width:n.size,height:n.size,customClassName:`${l?"":"menu-tag__right-setting--spinning"}`},null)}),r(jn,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1},{default:()=>[r(J,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.setCurrentContextmenuIndex.bind(this)},{icon:()=>r(x,{name:"more",width:n.size,height:n.size},null)})]})]})]})])]})}}),Ps=P({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(Rs,null,null)}}),xs={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},sn=()=>({lockPassword:null}),un=$o(U.isAppLockScreen,!1,window.localStorage,{mergeDefaults:!0}),eo=()=>({setLockAppScreen:t=>{un.value=t},getLockAppScreen:()=>un.value}),Ms=P({name:"UnlockScreen",setup(){const[e,{validate:n}]=Dr(),{logout:t}=Xn(),{updateSettingState:o}=K(),{setLockAppScreen:a}=eo(),{isTabletOrSmaller:l}=Xe(),s="HH:mm",i="A",u="YYYY-MM-DD",c="ddd",f=re({lockCondition:sn(),HH_MM:H().format(s),AM_PM:H().format(i),YY_MM_DD:H().format(u),DDD:H().format(c)}),p=setInterval(()=>{f.HH_MM=H().format(s),f.AM_PM=H().format(i)},6e3),v=setInterval(()=>{f.YY_MM_DD=H().format(u),f.DDD=H().format(c)},864e5),m=()=>{ce(U.appLockScreenPasswordKey,"localStorage"),o("lockScreenSwitch",!1),setTimeout(()=>{t()},100)},g=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页并且重新登录",positiveText:"确定",negativeText:"重新登录",onPositiveClick:m})},b=()=>{const h=Le(U.appLockScreenPasswordKey,"localStorage");if(!h){window.$dialog.warning({title:"警告",content:()=>"检测到锁屏密码被修改,请重新登录",closable:!1,maskClosable:!1,closeOnEsc:!1,positiveText:"重新登录",onPositiveClick:m});return}const _=ua(h);n().then(()=>{_===f.lockCondition.lockPassword?(a(!1),o("lockScreenSwitch",!1),ce(U.appLockScreenPasswordKey,"localStorage"),f.lockCondition=sn()):window.$message.warning("密码错误,请重新输入")})};return Lt(()=>{clearInterval(p),clearInterval(v)}),{...we(f),backToSigning:g,unlockScreen:b,isTabletOrSmaller:l,register:e}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:n,AM_PM:t,YY_MM_DD:o,DDD:a}=this,l=n.split(":"),{unlockScreen:s,backToSigning:i,register:u}=this;return r("div",{class:"app-lock-screen__content app-lock-screen__content--full"},[r("div",{class:"app-lock-screen__unlock"},[r("div",{class:"app-lock-screen__unlock__content"},[r("div",{class:"app-lock-screen__unlock__content-wrapper"},[r("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[r("div",{class:"left"},[l[0]]),r("div",{class:"right"},[l[1]])])]),r("div",{class:"app-lock-screen__unlock__content-avatar"},[r(Qn,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),r("div",{class:"app-lock-screen__unlock__content-input"},[r(Un,{onRegister:u,model:this.lockCondition,rules:xs},{default:()=>[r(z,{path:"lockPassword"},{default:()=>[r(zt,{autofocus:!0,value:this.lockCondition.lockPassword,"onUpdate:value":c=>this.lockCondition.lockPassword=c,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,onKeydown:c=>{c.code==="Enter"&&s()}},null)]}),r(I,{justify:"space-between"},{default:()=>[r(J,{type:"primary",text:!0,onClick:i.bind(this)},{default:()=>[q("返回登陆")]}),r(J,{type:"primary",text:!0,onClick:s.bind(this)},{default:()=>[q("进入系统")]})]})]})]),r("div",{class:"app-lock-screen__unlock__content-date"},[r("div",{class:"current-year"},[o,q(" "),r("span",null,[a]),q(" "),r("span",null,[t])])])])])])}}),Es=e=>{const n=bt(e[0]),t=bt(e[1]),o=bt(e[2]);return T(()=>({"--window-width":"var(--html-width)","--window-height":"var(--html-height)","--layout-content-height":`calc(var(--html-height) - ${n.height.value}px - ${t.height.value}px - ${o.height.value}px)`,"--layout-content-width":`${n.width.value}px`,"--layout-siderbar-height":`${n.height.value}px`,"--layout-menutag-height":`${t.height.value}px`,"--layout-footer-height":`${o.height.value}px`}))},Ds=P({name:"RLayout",setup(){const e=ne(),n=ne(),t=ne(),{getMenuTagSwitch:o,getCopyrightSwitch:a}=X(),{getLockAppScreen:l}=eo(),s=Es([e,n,t]);return{getMenuTagSwitch:o,cssVarsRef:s,getLockAppScreen:l,layoutSiderBarRef:e,layoutMenuTagRef:n,layoutFooterRef:t,getCopyrightSwitch:a}},render(){const{getMenuTagSwitch:e,cssVarsRef:n,getCopyrightSwitch:t}=this,{getLockAppScreen:o}=this;return o()?r(Ms,null,null):r(Vo,{class:"r-layout-full",style:[n],hasSider:!0,embedded:!0},{default:()=>[r(ns,null,null),r(Ht,{class:"r-layout-full__viewer"},{default:()=>[r(ks,{ref:"layoutSiderBarRef"},null),e?r(Ps,{ref:"layoutMenuTagRef"},null):null,r(Ht,{ref:xe,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Zn,null,null)]}),t?r(is,{ref:"layoutFooterRef"},null):null]})]})}}),zs=[{path:"/",name:"RLogin",component:()=>D(()=>import("./index-BFnjjPIz.js"),__vite__mapDeps([98,42,22,23,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,48,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,82,83,84,40,41,59,43,44,45,46,47,49,50,51,52,53,54,55,56,99]))},{path:"/",name:"RLayout",component:Ds,children:[...Yr(),{path:"/:catchAll(.*)",component:()=>D(()=>import("./index-rt4PH3zE.js"),__vite__mapDeps([100,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,48,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,49,50,51,52,53,54,55,56,101])),meta:{i18nKey:B("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],dt=Sa({history:wa(),routes:zs,scrollBehavior:e=>{ar(e)}}),Fi=e=>{e.use(dt),Zr(dt)},jt=()=>dt?{router:dt}:{router:{}},cn="YYYY-MM-DD HH:mm:ss",Ls=()=>({locale:s=>{const i=Qa[s];i?H.locale(i):H.locale(el)},getStartAndEndOfDay:s=>{const{format:i=cn}=s??{},u=H(),c=u.startOf("day"),f=u.endOf("day"),p=u.format(i),v=c.format(i),m=f.format(i);return{today:u,startOfDay:c,endOfDay:f,formatToday:p,formatStartOfDay:v,formatEndOfDay:m}},format:(s,i)=>{const{format:u=cn}=i??{};return H(s).format(u)},isDayjs:s=>H.isDayjs(s),daysDiff:(s,i)=>{const u=H(s);return H(i).diff(u,"days")},isDateInRange:(s,i)=>{const{start:u,end:c}=i,f=H(s);return f.isAfter(u)&&f.isBefore(c)}});function Xe(e){const{width:n,height:t}=Ko(e),o=V(!1),{observer:a}=e??{};return ca(()=>{const{media:s=768}=e??{};o.value=n.value<=s,a==null||a(o.value,{width:n.value,height:t.value})}),{width:n,height:t,isTabletOrSmaller:ve(o)}}let ot=999,Ot=!1;const be="ELEMENT-FULLSCREEN-RAY",dn=document.createElement("style"),Is=(e,n)=>{const{beforeEnter:t,beforeExit:o,enter:a,exit:l,backgroundColor:s,zIndex:i,transition:u="transform 0.3s var(--r-bezier)"}=n??{};let c=!1;const f={x:null,y:null},p=V(!1),v=()=>{const h=se(e);if(!h)return;const{left:_,top:d}=h.getBoundingClientRect();f.x===null&&f.y===null&&(f.x=-_,f.y=-d),ut(document.body,{"--element-fullscreen-z-index":ge(i,"Null")||ge(i,"Undefined")?ot:i,"--element-fullscreen-transition":u,"--element-fullscreen-background-color":s,"--element-fullscreen-width":"var(--html-width)","--element-fullscreen-height":"var(--html-height)","--element-fullscreen-transform-x":`${f.x}px`,"--element-fullscreen-transform-y":`${f.y}px`});const y=` - [${be}] { - position: fixed; - width: var(--element-fullscreen-width) !important; - height: var(--element-fullscreen-height) !important; - transform: translate(var(--element-fullscreen-transform-x), var(--element-fullscreen-transform-y)) !important; - transition: var(--element-fullscreen-transition); - z-index: var(--element-fullscreen-z-index) !important; - background-color: var(--element-fullscreen-background-color); - } - `.trim();dn.innerHTML=y,Ot||document.head.appendChild(dn)},m=()=>{const h=se(e);t==null||t(),h&&(h.getAttribute(be)||h.setAttribute(be,be),c||(c=!0,ot+=1),Ot||(v(),Ot=!0),h.style.transition=u,p.value=!0,a==null||a())},g=()=>{o==null||o();const h=se(e);h&&h.removeAttribute(be),p.value=!1,l==null||l()},b=()=>{const h=se(e);h&&(h.getAttribute(be)?g():m())};return Ft(()=>{const h=se(e);h&&h.removeAttribute(be),ot=Math.max(999,ot-1),p.value=!1}),{enter:m,exit:g,toggleFullscreen:b,isFullscreen:ve(p)}},kt={svg:ma,png:fa,jpeg:ga,blob:ha,pixelData:ya,canvas:ba},Bi=(e,n)=>{const{beforeCreate:t,created:o,createdError:a,finally:l,imageType:s}=n;return{create:u=>new Promise((c,f)=>{var m;const p=se(e);if(t==null||t(p),!p)return a==null||a(),f("[useDomToImage]: target element is undefined.");(m=kt[u??s??"jpeg"])==null||m.call(kt,p,n).then(g=>(o==null||o(g,p),c(g))).catch(g=>(a==null||a(g),f(g))).finally(()=>{l==null||l(p)})})}},Vi=(e,n)=>({print:()=>{const o=se(e)||e;ea({...We(n,["printable"]),printable:o})}}),at={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},Fs=(e,n)=>{const t=T(()=>({...at,...We(n,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size","onUpdate:pageSize"]),...a})),o=ne(e),a={onUpdatePage:d=>{var w;const{pageChange:y}=t.value;l.value.page=d,(w=o.value)==null||w.call(o),y==null||y(d)},onUpdatePageSize:d=>{var w;const{pageSizeChange:y}=t.value;l.value.pageSize=d,l.value.page=at.page,(w=o.value)==null||w.call(o),y==null||y(d)}},l=V(t.value),s=l.value.onUpdatePage,i=l.value.onUpdatePageSize,u=()=>l.value.itemCount,c=d=>{l.value.itemCount=d},f=()=>l.value.page,p=d=>{s(d)},v=()=>l.value.pageSize,m=d=>{i(d)},g=()=>l.value,b=o.value,h=d=>{o.value=d},_=()=>{const{pageSizes:d}=l.value;l.value.page=at.page,l.value.pageSize=(d==null?void 0:d[0])||at.pageSize};return Ft(()=>{o.value=void 0}),[l,{getItemCount:u,setItemCount:c,getPage:f,setPage:p,getPageSize:v,setPageSize:m,getPagination:g,getCallback:b,setCallback:h,resetPagination:_}]},to=()=>({isLayoutContentMaximized:T(()=>gt("layoutContentMaximize").value),maximize:(t,o)=>{var i;const{scrollToOptions:a}=o??{},l=se(xe),{toggleFullscreen:s}=Is(l,o);me("layoutContentMaximize",t),s(),a&&t&&((i=xe==null?void 0:xe.value)==null||i.scrollTo(a))}}),Bs=()=>({reload:(o=800)=>{me("globalMainLayoutLoad",!1),setTimeout(()=>me("globalMainLayoutLoad",!0),o)},openSpin:()=>{me("layoutContentSpinning",!0)},closeSpin:()=>{me("layoutContentSpinning",!1)}}),ji=()=>({setWatermarkContent:a=>{const{getWatermarkConfig:l}=X(),s=Object.assign({},l.value,{content:a}),{updateSettingState:i}=K();i("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:a}=K();a("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:a}=K();a("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:a}=X(),{updateSettingState:l}=K();l("watermarkSwitch",!a.value)}}),lt=e=>{const{getPrimaryColorOverride:n}=X(),{updateSettingState:t}=K();t("primaryColorOverride",e?st({},n.value,Se.appNaiveUIThemeOverrides.dark):st({},n.value,Se.appNaiveUIThemeOverrides.light))},Ni=()=>{const e=()=>{const{getAppTheme:l}=X(),{t:s}=He();return{theme:l.value,themeI18nLabel:l.value?s("headerSettingOptions.ThemeOptions.Dark"):s("headerSettingOptions.ThemeOptions.Light"),themeLabel:l.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:l}=K();l("_appTheme",!0),l("appTheme","dark"),lt(!0)},lightTheme:()=>{const{updateSettingState:l}=K();l("_appTheme",!1),l("appTheme","light"),lt(!1)},toggleTheme:()=>{const{theme:l}=e(),{updateSettingState:s}=K();s("_appTheme",!l),s("appTheme",l?"light":"dark"),lt(!l)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:l}=X(),{updateSettingState:s}=K(),{system:i}=Sn();s("_appTheme",i.value==="dark"),s("appTheme","auto"),lt(l.value)}}},Re=(e,n)=>{const{getMenuTagOptions:t}=Oe();if(typeof e=="number"){if(isNaN(e)){console.warn(`${n}: The ${e} is NaN, expect number.`);return}if(e>t.value.length||e<-1){console.warn(`${n}: The incoming index ${e} did not match the corresponding item.`);return}return{option:t.value[e],index:e}}else if(typeof e=="string"){const o=t.value.findIndex(a=>a.fullPath===e);return o>-1?{option:t.value[o],index:o}:console.warn(`${n}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:o}=e,a=t.value.findIndex(l=>l.fullPath===o);if(a===-1){console.warn(`${n}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:a}}};function no(){const{getMenuTagOptions:e,getMenuKey:n}=Oe(),{changeMenuModelValue:t,spliceMenTagOptions:o,setMenuTagOptions:a,resolveOption:l}=Be(),s=()=>e.value.findIndex(g=>g.fullPath===n.value),i=g=>{const b=Re(g,"checkCloseRight");if(b){const{index:h}=b,_=e.value.length-1;return!(h>=_)}return!1},u=g=>{const b=Re(g,"checkCloseRight");if(b){const{index:h}=b,_=e.value.length-1;return h===0?!1:h>0&&_>0}return!1};return{close:g=>{const b=Re(g,"close");if(e.value.length!==1&&b){const{index:h,option:_}=b;if(o(h),_.fullPath===n.value){let d=u(h)?h-1:i(h)?h:h-1;d<0&&(d=0);const y=e.value[d];y&&t(y.fullPath,y)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:g}=Je(),{router:{getRoutes:b}}=jt(),h=b().find(_=>_.path===g.value);if(h){const _=Ne(h,Mt),d=l(_);t(d.path,l({...d,fullPath:d.path}))}},closeRight:g=>{const b=Re(g,"closeRight");if(b){const{option:h,index:_}=b,d=e.value.length-_,y=s();o(_+1,d),_<=y&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeLeft:g=>{const b=Re(g,"closeLeft");if(b){const{option:h,index:_}=b,d=s();o(0,_),d<=_&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeOther:g=>{const b=Re(g,"closeOther");if(b){const{option:h}=b;n.value!==h.fullPath?(o(0,e.value.length),t(h.fullPath,h)):a(h,!1)}},getCurrentTagIndex:s,checkCloseRight:i,checkCloseLeft:u}}function Ui(){return{navigationTo:(n,t)=>{const{router:{getRoutes:o,push:a,replace:l}}=jt(),{isPush:s=!0,query:i}=t||{},u=c=>s?a({path:c,query:i}):l({path:c,query:i});if(typeof n=="number"){if(isNaN(n)){console.warn(`[navigationTo]: The ${n} is NaN, expect number.`);return}const{getMenuOptions:c}=Oe();if(n>c.value.length){console.warn(`[navigationTo]: The current ${n} exceeds the maximum number of menus.`);return}const f=c.value[n],p=v=>{if(v.children&&v.children.length>0){const{children:[m]}=v;p(m);return}u(v.fullPath)};p(f)}else if(typeof n=="string"){const c=o().find(f=>f.path===n);c?u(c.path):console.warn(`[navigationTo]: The path "${n}" is not found.`)}else u(n.fullPath)}}}function Je(){const{getAppRootRoute:e}=X(),{updateSettingState:n}=K(),t=e,o=T(()=>e.value.path),a=T(()=>e.value.name);return{getRootRoute:t,getRootPath:o,getRootName:a,setRootRoute:s=>{n("appRootRoute",Object.assign({},e.value,s))}}}const Vs=(e,n)=>{const{show:t,...o}=n;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:t}),e.extra=Kn(e)},pn=(e,n,t)=>{const o=qn(e,n);o&&Vs(o,t)},At=(e,n,t)=>{const{getMenuOptions:o}=Oe();if(typeof e=="string")pn(o.value,e,t);else if(ge(e,"Object")){const{fullPath:a}=e;pn(o.value,a,t)}else console.warn(`[useBadge ${n}]: target expect string or object.`)};function $i(){return{hidden:o=>{At(o,"hidden",{show:!1})},show:(o,a)=>{At(o,"show",{...a,show:!0})},update:(o,a)=>{At(o,"update",a)}}}const Ki=()=>{const e=Dn.value,{scrollTo:n}=e||{};if(!n)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return n},oo=()=>Le(U.localeLanguage,"localStorage",{defaultValue:Ja});export{Ls as $,bi as A,En as B,_t as C,Qa as D,fi as E,Di as F,Ya as G,zi as H,xi as I,Si as J,Ti as K,Dn as L,hi as M,Oi as N,ki as O,Ai as P,Fs as Q,Un as R,es as S,Ci as T,Rr as U,yr as V,Vr as W,Ei as X,Pi as Y,Mi as Z,D as _,Bi as a,as as a0,Ii as a1,_i as a2,Pr as a3,jn as a4,to as a5,Ui as a6,Bs as a7,ji as a8,$i as a9,Vi as b,Ki as c,vi as d,X as e,U as f,gi as g,Se as h,Dr as i,K as j,sn as k,Qn as l,eo as m,Ri as n,gt as o,Xn as p,yi as q,xs as r,el as s,Li as t,Ni as u,wi as v,Fi as w,Je as x,He as y,x as z}; diff --git a/js/hooks-CpaAYtdw.js.gz b/js/hooks-CpaAYtdw.js.gz deleted file mode 100644 index 897726b2..00000000 Binary files a/js/hooks-CpaAYtdw.js.gz and /dev/null differ diff --git a/js/index-B4iylE3W.js.gz b/js/index-B4iylE3W.js.gz deleted file mode 100644 index 9374910f..00000000 Binary files a/js/index-B4iylE3W.js.gz and /dev/null differ diff --git a/js/index-B5p3nAYZ.js b/js/index-B5p3nAYZ.js new file mode 100644 index 00000000..3805fc22 --- /dev/null +++ b/js/index-B5p3nAYZ.js @@ -0,0 +1 @@ +import{J as d}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{m as c,b as t,J as n}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as u}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{N as f,e as s,k as h}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const bt=c({name:"ContextMenuDemo",setup(){const o=u(),r=u(!1),e=u([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:m,y:p,show:a,updateShow:i}=d(o);return{demoOneRef:o,demoOneShow:r,x:m,y:p,show:a,options:e,clickOutside:l=>{l.preventDefault(),i(!1)},updateShow:i}},render(){const{x:o,y:r,show:e}=this,{clickOutside:m,updateShow:p}=this;return t(s,{vertical:!0},{default:()=>[t(f,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[t(s,{vertical:!0},{default:()=>[t("h3",null,[n("默认点击元素外部会关闭菜单。")]),t("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[n("右击")])]})]}),t(h,{show:e,x:o,y:r,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,i)=>{window.$message.info(`选中了 ${i.label}`),p(!1)},onClickoutside:m.bind(this)},null)]})}});export{bt as default}; diff --git a/js/index-B5p3nAYZ.js.gz b/js/index-B5p3nAYZ.js.gz new file mode 100644 index 00000000..c447ea2a Binary files /dev/null and b/js/index-B5p3nAYZ.js.gz differ diff --git a/js/index-DhY7Gt5n.js b/js/index-BFJAvh0j.js similarity index 85% rename from js/index-DhY7Gt5n.js rename to js/index-BFJAvh0j.js index 54bb43fe..eaaa356f 100644 --- a/js/index-DhY7Gt5n.js +++ b/js/index-BFJAvh0j.js @@ -1 +1 @@ -import{l as n,b as e,m as s,p as i}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{y as r,Y as c,e as p}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";function l(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!i(t)}const m=n({name:"AppShareLink",setup(){return{handleLinkClick:a=>{window.open(a.src)},avatarOptions:[{key:"ray-js-note",src:"https://note.youdao.com/s/ObWEe2BB",tooltip:"Ray的前端学习笔记",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-js-cover",src:"https://note.youdao.com/s/IC8xKPdB",tooltip:"Ray的面试题总结",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc",src:"https://xiaodaigua-ray.github.io/ray-template-doc/",tooltip:"Ray Template Doc",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc-out",src:"https://ray-template.yunkuangao.com/",tooltip:"Ray Template Doc (国内地址)",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"}]}},render(){let t;return e(p,null,l(t=this.avatarOptions.map(o=>e(r,{key:o.key},{trigger:()=>e(c,s({round:!0,src:o.icon,style:["cursor: pointer"]},{onClick:this.handleLinkClick.bind(this,o)},{objectFit:"cover",size:24}),null),default:()=>o.tooltip})))?t:{default:()=>[t]})}});export{m as A}; +import{m as n,b as e,p as s,q as i}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{y as r,Y as c,e as p}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";function l(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!i(t)}const m=n({name:"AppShareLink",setup(){return{handleLinkClick:a=>{window.open(a.src)},avatarOptions:[{key:"ray-js-note",src:"https://note.youdao.com/s/ObWEe2BB",tooltip:"Ray的前端学习笔记",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-js-cover",src:"https://note.youdao.com/s/IC8xKPdB",tooltip:"Ray的面试题总结",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc",src:"https://xiaodaigua-ray.github.io/ray-template-doc/",tooltip:"Ray Template Doc",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc-out",src:"https://ray-template.yunkuangao.com/",tooltip:"Ray Template Doc (国内地址)",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"}]}},render(){let t;return e(p,null,l(t=this.avatarOptions.map(o=>e(r,{key:o.key},{trigger:()=>e(c,s({round:!0,src:o.icon,style:["cursor: pointer"]},{onClick:this.handleLinkClick.bind(this,o)},{objectFit:"cover",size:24}),null),default:()=>o.tooltip})))?t:{default:()=>[t]})}});export{m as A}; diff --git a/js/index-BFJAvh0j.js.gz b/js/index-BFJAvh0j.js.gz new file mode 100644 index 00000000..2ea5fa81 Binary files /dev/null and b/js/index-BFJAvh0j.js.gz differ diff --git a/js/index-BFnjjPIz.js b/js/index-BFnjjPIz.js deleted file mode 100644 index 3236b13e..00000000 --- a/js/index-BFnjjPIz.js +++ /dev/null @@ -1 +0,0 @@ -import{i as N,p as O,x as C,R as L,y as F,f as v,z as r,e as P,u as A,j as $,B as z}from"./hooks-CpaAYtdw.js";import{s as f}from"./utils-DBF0WsFC.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import{u as G}from"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{I as y,M as w,P as I,W as V,p as q,e as l,y as D,J as E,A as S,k as Q,a as U,b,N as H,v as W,T as g,F as k}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as a,b as e,p as m,I as c,F as B}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as d,e as x,x as _}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{Q as K}from"./vue3-next-qrcode@2.0.10_typescript@5.6.3-DJUY2IsH.js";import{L as J}from"./ray-dCjhX_JK.js";import{f as M}from"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import{A as X}from"./index-DhY7Gt5n.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";function Y(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const Z=a({name:"RSigning",setup(){const[t,{validate:i}]=N(),{t:n}=F(),{signing:s}=O(),{getRootPath:o}=C(),p=d(!1),j=()=>({name:"Ray Admin",pwd:"123456"}),R=G(),u=d(j()),T={name:{required:!0,message:n("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:n("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:u,register:t,handleLogin:()=>{i().then(()=>{p.value=!0,s(u.value).then(h=>{h.code===0&&setTimeout(()=>{window.$message.success(`欢迎${u.value.name}登陆~`),f(v.token,"tokenValue","localStorage"),f(v.signing,h.data,"localStorage"),R.push(o.value),p.value=!1},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")})})},rules:T,loading:p}},render(){let t;const{$t:i,loading:n,register:s}=this;return e(L,{model:this.signingForm,onRegister:s,rules:this.rules},{default:()=>[e(y,{label:i("views.login.index.Name"),path:"name"},{default:()=>[e(w,{value:this.signingForm.name,"onUpdate:value":o=>this.signingForm.name=o,placeholder:i("views.login.index.NamePlaceholder")},null)]}),e(y,{label:i("views.login.index.Password"),path:"pwd"},{default:()=>[e(w,{value:this.signingForm.pwd,"onUpdate:value":o=>this.signingForm.pwd=o,type:"password",showPasswordOn:"click",placeholder:i("views.login.index.PasswordPlaceholder"),onKeydown:o=>o.key==="Enter"&&this.handleLogin()},null)]}),e(I,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:n},Y(t=i("views.login.index.Login"))?t:{default:()=>[t]})]})}}),ee=a({name:"RRegister",render(){return e(V,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),te=a({name:"QRCodeSigning",setup(){const t=x({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{..._(t)}},render(){return e("div",{class:"qrcode-signing"},[e(K,{text:"ray template yes",size:200,logoImage:J},null)])}});function ie(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const ne=a({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:n=>{window.$message.info(`调用${n.tooltipLabel}`)}}},render(){let t;return e(l,{class:"sso-signing",align:"center"},ie(t=this.ssoSigningOptions.map(i=>e(q,{key:i.key},{trigger:()=>e(r,{name:i.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,i)},null),default:()=>i.tooltipLabel})))?t:{default:()=>[t]})}}),oe=a({name:"ThemeSwitch",setup(){const{darkTheme:t,lightTheme:i}=A(),{getAppTheme:n}=P(),s=d(n.value);return{darkTheme:t,lightTheme:i,getAppTheme:n,railStyle:({checked:p})=>p?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:s}},render(){const{$t:t,darkTheme:i,lightTheme:n,railStyle:s}=this;return e(l,{justify:"center"},{default:()=>[e(D,null,{trigger:()=>e(E,{value:this.modelAppThemeRef,"onUpdate:value":o=>this.modelAppThemeRef=o,railStyle:s.bind(this),onUpdateValue:o=>o?i():n()},{"checked-icon":()=>e(r,{name:"dark"},null),"unchecked-icon":()=>e(r,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?t("headerSettingOptions.ThemeOptions.Dark"):t("headerSettingOptions.ThemeOptions.Light")})]})}});var se={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^12.0.0",axios:"^1.7.9",clipboard:"^2.0.11","crypto-js":"4.2.0","currency.js":"^2.0.4",dayjs:"^1.11.13",echarts:"^5.5.1","html-to-image":"1.11.11",interactjs:"1.10.27",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.41.0",pinia:"^2.3.0","pinia-plugin-persistedstate":"^4.1.3","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.10","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.4.0","vue3-next-qrcode":"2.0.10"},devDependencies:{"@amap/amap-jsapi-types":"0.0.15","@ant-design/icons-vue":"7.0.1","@commitlint/cli":"19.3.0","@commitlint/config-conventional":"19.2.2","@interactjs/types":"1.10.27","@intlify/unplugin-vue-i18n":"4.0.0","@types/crypto-js":"4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"4.17.12","@types/mockjs":"1.0.10","@types/three":"0.169.0","@typescript-eslint/eslint-plugin":"8.18.2","@typescript-eslint/parser":"8.18.2","@vitejs/plugin-vue":"5.2.1","@vitejs/plugin-vue-jsx":"4.1.1","@vitest/ui":"1.5.2","@vue/eslint-config-prettier":"10.1.0","@vue/eslint-config-typescript":"14.2.0","@vue/test-utils":"2.4.6",autoprefixer:"10.4.20",depcheck:"1.4.7",eslint:"9.11.0","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.2.1","eslint-plugin-vue":"9.32.0",globals:"15.14.0","happy-dom":"14.12.3",husky:"8.0.3","lint-staged":"15.2.2",postcss:"8.4.49","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"3.3.2","rollup-plugin-gzip":"4.0.1",sass:"1.83.0","svg-sprite-loader":"6.0.11",typescript:"5.6.3","unplugin-auto-import":"0.19.0","unplugin-vue-components":"0.28.0",vite:"6.0.7","vite-bundle-analyzer":"0.15.2","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"0.8.4","vite-plugin-mock-dev-server":"1.8.3","vite-plugin-svg-icons":"2.0.1","vite-svg-loader":"5.1.0",vitest:"2.0.5","vue-tsc":"2.2.0"},name:"ray-template",version:"5.0.10"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"}};function le(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const dt=a({name:"RLogin",setup(){const{layout:{copyright:t}}=se,i=x({tabsValue:"signing"}),{height:n,width:s}=M(),{updateLocale:o}=$();return{..._(i),windowHeight:n,updateLocale:o,copyright:t,windowWidth:s}},render(){let t;const{$t:i}=this;return e("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[e("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[e("div",{class:["login-wrapper__content"]},[e(l,{align:"center",class:"login-title__wrapper"},{default:()=>[e(r,{name:"ray",size:"48"},null),e(S,{class:"login-title",type:"info",size:28},{default:()=>[c("Ray Template")]})]}),e(l,{align:"center",class:"login-action__wrapper"},{default:()=>[e(oe,null,null),e(Q,{options:z,onSelect:n=>this.updateLocale(n),trigger:"click"},{default:()=>[e(r,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),e(U,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[e(b,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[e(l,{align:"center",vertical:!0},{default:()=>[e(r,{name:"login_bg",width:"368",height:"368"},null),e(S,{class:"login-title",type:"info",size:36},le(t=i("views.login.index.RayTemplate"))?t:{default:()=>[t]})]})]}),e(b,{span:1,class:"login__right-wrapper"},{default:()=>[e(H,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[e(W,{value:this.tabsValue,"onUpdate:value":n=>this.tabsValue=n,type:"line",animated:!0,size:"large"},{default:()=>e(B,null,[e(g,{tab:i("views.login.index.Signing"),name:"signing"},{default:()=>[e(Z,null,null)]}),e(g,{tab:i("views.login.index.Register"),name:"register"},{default:()=>[e(ee,null,null)]}),e(g,{tab:i("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[e(te,null,null)]})])}),e(k,null,{default:()=>[c("其他登陆方式")]}),e(ne,null,null),e(k,null,{default:()=>[c("友情链接")]}),e(X,null,null)]})]})]}),e(l,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{dt as default}; diff --git a/js/index-BFnjjPIz.js.gz b/js/index-BFnjjPIz.js.gz deleted file mode 100644 index 8179bbc4..00000000 Binary files a/js/index-BFnjjPIz.js.gz and /dev/null differ diff --git a/js/index-BNHkUzwU.js b/js/index-BNHkUzwU.js new file mode 100644 index 00000000..69da33e0 --- /dev/null +++ b/js/index-BNHkUzwU.js @@ -0,0 +1 @@ +import{V as F,n as l}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{N as e,e as d,P as o}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as p,b as u,J as t}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{e as s,x as E}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Au=p({name:"ModalDemo",setup(){const a=s({modal1:!1,modal2:!1,modal3:!1}),{create:i}=F(),r=()=>{i({title:"卡片模态框",draggable:!0,preset:"card",content:()=>u("div",{style:"height: 3000px;"},[t("我可以被拖拽的全屏card模态框")]),fullscreen:!0})},m=()=>{i({title:"模态框",content:"内容",preset:"dialog",draggable:!0})};return{...E(a),createCardModal:r,createDialogModal:m}},render(){const{createCardModal:a,createDialogModal:i}=this;return u(d,{vertical:!0},{default:()=>[u(e,{title:"props"},{default:()=>[u(d,{vertical:!0},{default:()=>[u("h3",null,[t("fullscreen: 全屏模态框。")])]})]}),u(l,{show:this.modal1,"onUpdate:show":r=>this.modal1=r,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[u("div",{style:"height: 3000px;"},[t("我可以被拖拽的全屏card模态框")])]}),u(l,{show:this.modal2,"onUpdate:show":r=>this.modal2=r,preset:"card",title:"可拖拽卡片模态框",draggable:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(l,{show:this.modal3,"onUpdate:show":r=>this.modal3=r,preset:"dialog",title:"可拖拽卡片模态框",draggable:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(e,{title:"可拖拽模态框"},{default:()=>[u(o,{onClick:()=>this.modal2=!0},{default:()=>[t("卡片模态框")]}),u(o,{onClick:()=>this.modal3=!0},{default:()=>[t("对话框模态框")]})]}),u(e,{title:"全屏模态框"},{default:()=>[u(d,{vertical:!0},{default:()=>[u("h4",null,[t("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),u(o,{onClick:()=>this.modal1=!0},{default:()=>[t("打开")]})]})]}),u(e,{title:"手动设置宽度"},{default:()=>[u("h4",null,[t("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),u("h4",null,[t("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),u("h4",null,[t("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),u("h4",null,[t("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),u(e,{title:"重写 useModal"},{default:()=>[u(o,{onClick:a.bind(this)},{default:()=>[t("创建卡片模态框")]}),u(o,{onClick:i.bind(this)},{default:()=>[t("创建对话框模态框")]})]})]})}});export{Au as default}; diff --git a/js/index-BNHkUzwU.js.gz b/js/index-BNHkUzwU.js.gz new file mode 100644 index 00000000..79342d1b Binary files /dev/null and b/js/index-BNHkUzwU.js.gz differ diff --git a/js/index-BNLeaxW4.js.gz b/js/index-BNLeaxW4.js.gz deleted file mode 100644 index f9f7e040..00000000 Binary files a/js/index-BNLeaxW4.js.gz and /dev/null differ diff --git a/js/index-BU8x8xeE.js b/js/index-BU8x8xeE.js deleted file mode 100644 index 042f2ef6..00000000 --- a/js/index-BU8x8xeE.js +++ /dev/null @@ -1 +0,0 @@ -import"./hooks-CpaAYtdw.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{F,G as h,H as O,I as C,J as E,K as b}from"./utils-DBF0WsFC.js";import"./crypto-js@4.2.0-CO3T8151.js";import{l as D,b as u,I as p,n as B}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{e as f,x as v}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{e as r,N as i,L as o,K as s,$ as V}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const At=D({name:"CalculatePrecision",setup(){const t=f({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),a={addOptions:O,subtractOptions:C,multiplyOptions:E,divideOptions:b},n=(l,m)=>{const d=a[m],c=d(...l);return"结果: "+F(c)},e=()=>{B().then(()=>{t.distributeOutputValue=h(t.distributeValue,t.distributeLength)})};return e(),{...v(t),copilotFunc:n,updateDistributeValue:e}},render(){return u(V,null,{default:()=>[u("h2",{style:"margin: 0 0 20px 0"},[p("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),u("h3",{style:"margin: 0 0 20px 0"},[p("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),u(r,{vertical:!0},{default:()=>[u(i,{title:"加法"},{default:()=>u(o,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),u(i,{title:"减法"},{default:()=>u(o,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),u(i,{title:"乘法"},{default:()=>u(o,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),u(i,{title:"除法(非取模)"},{default:()=>u(o,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),u(i,{title:"平分一个值"},{default:()=>u(r,null,{default:()=>[u(s,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),u(s,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{At as default}; diff --git a/js/index-BU8x8xeE.js.gz b/js/index-BU8x8xeE.js.gz deleted file mode 100644 index 22aa9e71..00000000 Binary files a/js/index-BU8x8xeE.js.gz and /dev/null differ diff --git a/js/index-B4iylE3W.js b/js/index-BVc_Gnpy.js similarity index 50% rename from js/index-B4iylE3W.js rename to js/index-BVc_Gnpy.js index c28351ae..b1b4d9ba 100644 --- a/js/index-B4iylE3W.js +++ b/js/index-BVc_Gnpy.js @@ -1 +1 @@ -import{l as r,b as o,I as e}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as i}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{M as p}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const v=r({name:"MultiMenuOne",setup(){return{inputValue:i(null)}},render(){return o("div",null,[e("多级菜单-1"),o(p,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{v as default}; +import{m as r,b as o,J as e}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as i}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{M as p}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const D=r({name:"MultiMenuOne",setup(){return{inputValue:i(null)}},render(){return o("div",null,[e("多级菜单-1"),o(p,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{D as default}; diff --git a/js/index-BVc_Gnpy.js.gz b/js/index-BVc_Gnpy.js.gz new file mode 100644 index 00000000..29023b13 Binary files /dev/null and b/js/index-BVc_Gnpy.js.gz differ diff --git a/js/index-Bdu49VSO.js b/js/index-Bdu49VSO.js new file mode 100644 index 00000000..d8cf7669 --- /dev/null +++ b/js/index-Bdu49VSO.js @@ -0,0 +1 @@ +import{z as m,W as o}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{m as h,b as u,J as t}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as d}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{ah as F,N as i,a as b,b as l,e as B,al as f,am as a}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const gu=h({name:"SegmentDemo",setup(){const s=[{label:"这是一",key:"this is one"},{label:"这是二",key:"this is two"},{label:"这是三",key:"this is three"}],n=[...s,{label:"这是四",key:"this is four",slots:{default:()=>"我是自定义"}}],p=[...s,{label:"不许点",key:"disabled option",disabled:!0},{label:"popover",key:"popover",popover:"我是 popover"},{label:"popover options",key:"popover options",popover:{label:"我是配置项的 popover"}}],r=[{label:"设置",key:"setting",icon:u(m,{name:"setting"},null)},{label:"刷新",key:"reload",icon:u(m,{name:"reload"},null)},{label:"搜索",key:"search",icon:u(m,{name:"search"},null),popover:"我是搜索"}],E=d("this is three"),e=d("medium"),C=d("block");return{baseOptions:s,options:n,segmentValueOne:E,segmentChange:A=>{window.$message.info(String(A))},size:e,width:C,disabledOptions:p,iconOptions:r}},render(){const{options:s,baseOptions:n,disabledOptions:p,iconOptions:r}=this,{segmentChange:E}=this;return u(B,{vertical:!0},{default:()=>[u(F,{title:"警告⚠️",type:"warning"},{default:()=>[t("n-tabs 默认情况下会从 slot 获取默认展示的 tab 值,因此会产生一个 vue slot 的 warning。如果你不想看到这个 warning,请设定一个 default-value。")]}),u(F,{title:"已知问题",type:"warning"},{default:()=>[t("由于 NTabs 设计缘故,手动设置 width 为 fitContent 后,配置了 disabled, popover 的配置项,会丢失过度效果。具体可以看下面的例子。"),u("br",null,null),t("解决方法,在该组件外层包一层 div,设置宽度,但是不能为 fit-content。")]}),u(i,{title:"分段器"},{default:()=>[u("h3",null,[t("该组件基于 NTabs + NTabPane 封装,所以保留了一些该组件的特性。")])]}),u(b,{cols:2,xGap:8,yGap:12},{default:()=>[u(l,{span:1},{default:()=>[u(i,{title:"基础非受控分段器"},{default:()=>[u(o,{defaultValue:"this is two",options:n},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自定义分段器插槽"},{default:()=>[u(o,{defaultValue:this.segmentValueOne,options:s},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"updateValue 事件"},{default:()=>[u(o,{value:this.segmentValueOne,"onUpdate:value":e=>this.segmentValueOne=e,defaultValue:"this is two",options:p,onUpdateValue:E.bind(this),width:"block"},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自适应宽度"},{default:()=>[u(o,{defaultValue:"setting",options:r,width:"block"},null)]})]}),u(l,{span:2},{default:()=>[u(i,{title:"尺寸"},{default:()=>[u(B,{vertical:!0,size:"large"},{default:()=>[u(f,{value:this.size,"onUpdate:value":e=>this.size=e},{default:()=>[u(a,{value:"small"},{default:()=>[t("小")]}),u(a,{value:"medium"},{default:()=>[t("不小")]}),u(a,{value:"large"},{default:()=>[t("不太小")]})]}),u(o,{defaultValue:"this is two",options:n,size:this.size,width:"block"},null)]})]})]}),u(l,{span:2},{default:()=>[u(i,{title:"宽度"},{default:()=>[u(B,{vertical:!0,size:"large"},{default:()=>[u(F,{title:"注意",type:"info"},{default:()=>[t("RSegment 组件宽度默认为 fitContent,按照内容自适应宽度;如果需要自适应宽度,请设置 width 为 block;如果需要手动指定宽度请设置一个数字。")]}),u(f,{value:this.width,"onUpdate:value":e=>this.width=e},{default:()=>[u(a,{value:"fitContent"},{default:()=>[t("fitContent")]}),u(a,{value:"block"},{default:()=>[t("block")]}),u(a,{value:800},{default:()=>[t("800")]})]}),u(o,{defaultValue:"this is two",options:p,width:this.width},null)]})]})]})]})]})}});export{gu as default}; diff --git a/js/index-Bdu49VSO.js.gz b/js/index-Bdu49VSO.js.gz new file mode 100644 index 00000000..e88c4c36 Binary files /dev/null and b/js/index-Bdu49VSO.js.gz differ diff --git a/js/index-Bf4jaD3y.js b/js/index-Bf4jaD3y.js new file mode 100644 index 00000000..b1fdd595 --- /dev/null +++ b/js/index-Bf4jaD3y.js @@ -0,0 +1 @@ +import{m as k,v as x,b as t,J as C,p as O,q as D}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as y}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{N as l,ac as a,ad as p,w as N}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";var _={pkg:{dependencies:{"@logicflow/core":"2.0.10","@logicflow/extension":"2.0.14","@vueuse/core":"^12.4.0",axios:"^1.7.9",clipboard:"^2.0.11","crypto-js":"4.2.0","currency.js":"^2.0.4",dayjs:"^1.11.13",echarts:"^5.6.0","html-to-image":"1.11.11",interactjs:"1.10.27",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.41.0",pinia:"^2.3.0","pinia-plugin-persistedstate":"^4.2.0","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.10","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.4.0","vue3-next-qrcode":"2.0.10"},devDependencies:{"@amap/amap-jsapi-types":"0.0.15","@ant-design/icons-vue":"7.0.1","@commitlint/cli":"19.3.0","@commitlint/config-conventional":"19.2.2","@interactjs/types":"1.10.27","@intlify/unplugin-vue-i18n":"4.0.0","@types/crypto-js":"4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"4.17.12","@types/mockjs":"1.0.10","@types/three":"0.171.0","@typescript-eslint/eslint-plugin":"8.20.0","@typescript-eslint/parser":"8.20.0","@vitejs/plugin-vue":"5.2.1","@vitejs/plugin-vue-jsx":"4.1.1","@vitest/ui":"2.1.8","@vue/eslint-config-prettier":"10.1.0","@vue/eslint-config-typescript":"14.2.0","@vue/test-utils":"2.4.6",autoprefixer:"10.4.20",depcheck:"1.4.7",eslint:"9.18.0","eslint-config-prettier":"10.0.1","eslint-plugin-prettier":"5.2.2","eslint-plugin-vue":"9.32.0",globals:"15.14.0","happy-dom":"16.6.0",husky:"8.0.3","lint-staged":"15.3.0",postcss:"8.5.1","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"3.4.2","rollup-plugin-gzip":"4.0.1",sass:"1.83.0","svg-sprite-loader":"6.0.11",typescript:"5.6.3","unplugin-auto-import":"19.0.0","unplugin-vue-components":"0.28.0",vite:"6.0.7","vite-bundle-analyzer":"0.16.0","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"0.8.4","vite-plugin-mock-dev-server":"1.8.3","vite-plugin-svg-icons":"2.0.1","vite-svg-loader":"5.1.0",vitest:"2.1.8","vue-tsc":"2.2.0"},name:"ray-template",version:"5.0.10"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"}};function r(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!D(i)}const Q=k({name:"RelyAbout",setup(){const{pkg:i}=_,{dependencies:s,devDependencies:n,name:e,version:g}=i,f=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],u=y([]),d=y([]),b=[{name:"项目名称",label:e},{name:"版本信息",label:g},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],h=()=>{const o=c=>Object.keys(c).reduce((m,v)=>(m.push({name:v,relyVersion:c[v],relyAddress:""}),m),[]);u.value=o(s),d.value=o(n)},j=o=>{o.url&&window.open(o.url)};return x(()=>{h()}),{columns:f,dependenciesOptions:u,devDependenciesOptions:d,templateOptions:b,handleTagClick:j}},render(){let i,s,n;return t("div",{class:"rely-about"},[t(l,{title:"关于项目"},{default:()=>[C("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),t(l,{title:"项目信息"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(i=this.templateOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[t(N,O({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?i:{default:()=>[i]})]}),t(l,{title:"生产依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(s=this.dependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?s:{default:()=>[s]})]}),t(l,{title:"开发依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(n=this.devDependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{Q as default}; diff --git a/js/index-Bf4jaD3y.js.gz b/js/index-Bf4jaD3y.js.gz new file mode 100644 index 00000000..2146048f Binary files /dev/null and b/js/index-Bf4jaD3y.js.gz differ diff --git a/js/index-BhM7EuC5.js b/js/index-BhM7EuC5.js new file mode 100644 index 00000000..26c6a8a1 --- /dev/null +++ b/js/index-BhM7EuC5.js @@ -0,0 +1 @@ +import{a as l}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import{s as n}from"./instance-BbSLtO2c.js";import{e as r,N as o,P as A,M as i,$ as g}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as V,b as u,J as t}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{e as R,x as v}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./axios@1.7.9-upsvKRUO.js";import"./hooks-Bi_Q9OFa.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";function b(e,a){return l(()=>n(e),Object.assign({},a))}const w=e=>n({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),d=()=>n({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),Nu=V({name:"RAxios",setup(){const e=R({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:a,loading:m,run:p}=l(d,{throttleWait:1e3,manual:!0}),{data:s,loading:D,run:F}=l(d,{debounceWait:1e3,manual:!0}),{data:h,loading:c,run:E}=l(w,{throttleWait:1e3,manual:!0}),{data:B,loading:C,run:f}=b({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...v(e),throttleDemoValue:a,throttleDemoLoading:m,throttleDemoRun:p,debounceDemoValue:s,debounceDemoLoading:D,debounceDemoRun:F,weatherDemoValue:h,weatherDemoLoading:c,weatherDemoRun:E,demoData:B,demoLoading:C,demoRun:f}},render(){return u(g,null,{default:()=>[u(r,{vertical:!0},{default:()=>[u("h1",null,[t("请求")]),u(o,null,{default:()=>[u("h2",null,[t("useRequest")]),u("p",null,[t("支持配置化请求数据")]),u("h2",null,[t("useHookPlusRequest")]),u("p",null,[t("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),u("h1",null,[t("使用 useRequest 获取")]),u(o,{title:"请求函数"},{default:()=>[u("h3",null,[t("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),u("h3",null,[t("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),u("h3",null,[t("3.详情请查看文档")])]}),u(o,{title:"useRequest示例(手动触发)"},{default:()=>[u(r,{vertical:!0},{default:()=>{var e;return[u(A,{onClick:this.demoRun.bind(this)},{default:()=>[t("获取数据")]}),u("h3",null,[t("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),u("h1",null,[t("使用 useHookPlusRequest 获取")]),u(o,{title:"节流"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),u("h3",null,[t("不论触发多少次,一秒钟之内仅会触发一次")]),u("h3",null,[t("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"防抖"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),u("h3",null,[t("一秒后才会执行,如果中途重新请求,则会重新计时")]),u("h3",null,[t("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"获取气候"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),u("h3",null,[t("该示例演示了如何根据动态值获取数据")]),u("h3",null,[t("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{Nu as default}; diff --git a/js/index-BhM7EuC5.js.gz b/js/index-BhM7EuC5.js.gz new file mode 100644 index 00000000..40c3421e Binary files /dev/null and b/js/index-BhM7EuC5.js.gz differ diff --git a/js/index-BjsUFS0U.js b/js/index-BjsUFS0U.js new file mode 100644 index 00000000..4f67f08e --- /dev/null +++ b/js/index-BjsUFS0U.js @@ -0,0 +1 @@ +import{Q as C,T as f,U as k}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{a as A}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import{s as B}from"./instance-BbSLtO2c.js";import"./lodash@4.17.21-D1YkSij2.js";import{N as p,r as y,ag as h,M as D,P as i,e as l}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as b,b as t,J as o,F as w}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{e as P,x as N}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./axios@1.7.9-upsvKRUO.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const R=e=>B({url:"/api/list",method:"get",params:e}),It=b({name:"MockDemo",setup(){const e=[{type:"selection",multiple:!0},{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:m=>t(l,{align:"center"},{default:()=>[t(i,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[o("查看")]}),t(i,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[o("编辑")]}),t(i,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[o("删除")]})]})}],u=P({email:null}),[n,{getPage:r,getPageSize:a,setItemCount:s,getCallback:F,setPage:x,setPageSize:v}]=C(()=>{E({page:r(),pageSize:a(),email:u.email})}),{data:c,loading:d,run:E}=A(R,{defaultParams:[{page:r(),pageSize:a(),email:u.email}],onSuccess:m=>{const{total:g}=m;s(g)}});return{personData:c,personLoading:d,columns:e,...N(u),getCallback:F,paginationRef:n}},render(){return t(l,{vertical:!0},{default:()=>{var e;return[t(p,{title:"Mock 数据"},{default:()=>[t("h2",null,[o("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),t(p,{title:"提示"},{default:()=>[t("h2",null,[o("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),t(y,{labelPlacement:"left"},{default:()=>[t(f,{cols:3},{default:()=>t(w,null,[t(h,{label:"邮箱"},{default:()=>[t(D,{value:this.email,"onUpdate:value":u=>this.email=u,clearable:!0},null)]})]),action:()=>{var u;return t(i,{type:"primary",onClick:(u=this.getCallback)==null?void 0:u.bind(this)},{default:()=>[o("搜索")]})}})]}),t(k,{title:"Mock数据表格",data:(e=this.personData)==null?void 0:e.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":u=>this.columns=u,pagination:this.paginationRef,remote:!0,rowKey:u=>u.id},null)]}})}});export{It as default}; diff --git a/js/index-BjsUFS0U.js.gz b/js/index-BjsUFS0U.js.gz new file mode 100644 index 00000000..912913d6 Binary files /dev/null and b/js/index-BjsUFS0U.js.gz differ diff --git a/js/index-BpYY6BmL.js b/js/index-BpYY6BmL.js deleted file mode 100644 index f1f0093f..00000000 --- a/js/index-BpYY6BmL.js +++ /dev/null @@ -1 +0,0 @@ -import{z as s,_ as i}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{l as c,b as t,N as p,V as d,p as m}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as u}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{e as E,p as a,N as g}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";function f(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!m(r)}const Vi=c({name:"PreviewSVGIcons",setup(){const r=u([]);return Object.keys(Object.assign({"/src/icons/action/close_other.svg":()=>i(()=>import("./close_other-DPtbrCYd.js"),[]),"/src/icons/action/draggable.svg":()=>i(()=>import("./draggable-D6qza0mp.js"),[]),"/src/icons/action/fullscreen.svg":()=>i(()=>import("./fullscreen-Cjm0bPGx.js"),[]),"/src/icons/action/fullscreen_fold.svg":()=>i(()=>import("./fullscreen_fold-D_jdG9mi.js"),[]),"/src/icons/action/out.svg":()=>i(()=>import("./out-CMQCc625.js"),[]),"/src/icons/action/reload.svg":()=>i(()=>import("./reload-BPf1PV7s.js"),[]),"/src/icons/action/search.svg":()=>i(()=>import("./search-CFLGi5BR.js"),[]),"/src/icons/action/setting.svg":()=>i(()=>import("./setting-DyoycADf.js"),[]),"/src/icons/action/shared.svg":()=>i(()=>import("./shared-DVfOv8Mx.js"),[]),"/src/icons/directional/adjustment.svg":()=>i(()=>import("./adjustment-DIo_g8Za.js"),[]),"/src/icons/directional/close_left.svg":()=>i(()=>import("./close_left-DX8SFJx4.js"),[]),"/src/icons/directional/close_right.svg":()=>i(()=>import("./close_right-DWMWcuX1.js"),[]),"/src/icons/directional/expanded.svg":()=>i(()=>import("./expanded-BswQDJyW.js"),[]),"/src/icons/directional/left_arrow.svg":()=>i(()=>import("./left_arrow-DAKeumRT.js"),[]),"/src/icons/directional/lock.svg":()=>i(()=>import("./lock-dC7sQfx2.js"),[]),"/src/icons/directional/resize_h.svg":()=>i(()=>import("./resize_h-DA2p7YCQ.js"),[]),"/src/icons/directional/right_arrow.svg":()=>i(()=>import("./right_arrow-CbmroMoE.js"),[]),"/src/icons/directional/row_end.svg":()=>i(()=>import("./row_end-CqbNhb3G.js"),[]),"/src/icons/directional/row_head.svg":()=>i(()=>import("./row_head-BCxi2x-p.js"),[]),"/src/icons/logo/github.svg":()=>i(()=>import("./github-B4ARmChV.js"),[]),"/src/icons/logo/google.svg":()=>i(()=>import("./google-GEcrFhWr.js"),[]),"/src/icons/logo/login_bg.svg":()=>i(()=>import("./login_bg-CRcyXHBf.js"),[]),"/src/icons/logo/office.svg":()=>i(()=>import("./office-B5pC1KGi.js"),[]),"/src/icons/logo/ray.svg":()=>i(()=>import("./ray-B93BjtIh.js"),[]),"/src/icons/logo/twitter.svg":()=>i(()=>import("./twitter-DjE7U1HD.js"),[]),"/src/icons/template/dark.svg":()=>i(()=>import("./dark-zODhV8ab.js"),[]),"/src/icons/template/light.svg":()=>i(()=>import("./light-DWWBs-Ry.js"),[]),"/src/icons/template/system_os.svg":()=>i(()=>import("./system_os-Bu1k9Avg.js"),[]),"/src/icons/tip/axios.svg":()=>i(()=>import("./axios-o8g4A-7A.js"),[]),"/src/icons/tip/close.svg":()=>i(()=>import("./close-B43hVi0H.js"),[]),"/src/icons/tip/dashboard.svg":()=>i(()=>import("./dashboard-70op-CO0.js"),[]),"/src/icons/tip/echart.svg":()=>i(()=>import("./echart-c_3t778P.js"),[]),"/src/icons/tip/enter.svg":()=>i(()=>import("./enter-CPGcsJ25.js"),[]),"/src/icons/tip/error.svg":()=>i(()=>import("./error-CjWalrOZ.js"),[]),"/src/icons/tip/export_excel.svg":()=>i(()=>import("./export_excel-ZmNoLzCr.js"),[]),"/src/icons/tip/language.svg":()=>i(()=>import("./language-BOVZ3dlJ.js"),[]),"/src/icons/tip/menu.svg":()=>i(()=>import("./menu-CPMkWw77.js"),[]),"/src/icons/tip/more.svg":()=>i(()=>import("./more-DW-qndwg.js"),[]),"/src/icons/tip/mouse.svg":()=>i(()=>import("./mouse-C_l6KSTs.js"),[]),"/src/icons/tip/other.svg":()=>i(()=>import("./other-DU6bZUrM.js"),[]),"/src/icons/tip/print.svg":()=>i(()=>import("./print-jFo_n0lx.js"),[]),"/src/icons/tip/question.svg":()=>i(()=>import("./question-TxSSjOrI.js"),[]),"/src/icons/tip/rely.svg":()=>i(()=>import("./rely-DlDUQEbT.js"),[]),"/src/icons/tip/table.svg":()=>i(()=>import("./table-tYkftQGA.js"),[])})).forEach(n=>{var _;const o=(_=n.match(/\/(\w+)\.svg/))==null?void 0:_[1];o&&r.value.push(o)}),{icons:r}},render(){return t(g,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let r;return t(E,null,f(r=this.icons.map(e=>p(t("div",{class:"pre-view-icons__card",key:e},[t(a,null,{trigger:()=>t(s,{name:e,size:"56",cursor:"pointer"},null),default:()=>e})]),[[d("copy"),``]])))?r:{default:()=>[r]})}})}});export{Vi as default}; diff --git a/js/index-BpYY6BmL.js.gz b/js/index-BpYY6BmL.js.gz deleted file mode 100644 index 4ea0c0a4..00000000 Binary files a/js/index-BpYY6BmL.js.gz and /dev/null differ diff --git a/js/index-BryWK9rN.js b/js/index-BryWK9rN.js new file mode 100644 index 00000000..c5aa3e00 --- /dev/null +++ b/js/index-BryWK9rN.js @@ -0,0 +1 @@ +import{i as N,p as O,x as C,R as L,y as F,f as v,z as r,e as P,u as A,j as $,B as z}from"./hooks-Bi_Q9OFa.js";import{s as f}from"./utils-4asTneEs.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import{u as G}from"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{I as y,M as w,P as V,W as q,p as I,e as l,y as D,J as E,A as S,k as Q,a as U,b,N as H,v as W,T as g,F as k}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as a,b as e,q as m,J as c,F as B}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as d,e as x,x as _}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{Q as J}from"./vue3-next-qrcode@2.0.10_typescript@5.6.3-wzrC7cBz.js";import{L as K}from"./ray-dCjhX_JK.js";import{f as M}from"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import{A as X}from"./index-BFJAvh0j.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";function Y(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const Z=a({name:"RSigning",setup(){const[t,{validate:i}]=N(),{t:n}=F(),{signing:s}=O(),{getRootPath:o}=C(),p=d(!1),j=()=>({name:"Ray Admin",pwd:"123456"}),R=G(),u=d(j()),T={name:{required:!0,message:n("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:n("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:u,register:t,handleLogin:()=>{i().then(()=>{p.value=!0,s(u.value).then(h=>{h.code===0&&setTimeout(()=>{window.$message.success(`欢迎${u.value.name}登陆~`),f(v.token,"tokenValue","localStorage"),f(v.signing,h.data,"localStorage"),R.push(o.value),p.value=!1},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")})})},rules:T,loading:p}},render(){let t;const{$t:i,loading:n,register:s}=this;return e(L,{model:this.signingForm,onRegister:s,rules:this.rules},{default:()=>[e(y,{label:i("views.login.index.Name"),path:"name"},{default:()=>[e(w,{value:this.signingForm.name,"onUpdate:value":o=>this.signingForm.name=o,placeholder:i("views.login.index.NamePlaceholder")},null)]}),e(y,{label:i("views.login.index.Password"),path:"pwd"},{default:()=>[e(w,{value:this.signingForm.pwd,"onUpdate:value":o=>this.signingForm.pwd=o,type:"password",showPasswordOn:"click",placeholder:i("views.login.index.PasswordPlaceholder"),onKeydown:o=>o.key==="Enter"&&this.handleLogin()},null)]}),e(V,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:n},Y(t=i("views.login.index.Login"))?t:{default:()=>[t]})]})}}),ee=a({name:"RRegister",render(){return e(q,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),te=a({name:"QRCodeSigning",setup(){const t=x({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{..._(t)}},render(){return e("div",{class:"qrcode-signing"},[e(J,{text:"ray template yes",size:200,logoImage:K},null)])}});function ie(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const ne=a({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:n=>{window.$message.info(`调用${n.tooltipLabel}`)}}},render(){let t;return e(l,{class:"sso-signing",align:"center"},ie(t=this.ssoSigningOptions.map(i=>e(I,{key:i.key},{trigger:()=>e(r,{name:i.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,i)},null),default:()=>i.tooltipLabel})))?t:{default:()=>[t]})}}),oe=a({name:"ThemeSwitch",setup(){const{darkTheme:t,lightTheme:i}=A(),{getAppTheme:n}=P(),s=d(n.value);return{darkTheme:t,lightTheme:i,getAppTheme:n,railStyle:({checked:p})=>p?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:s}},render(){const{$t:t,darkTheme:i,lightTheme:n,railStyle:s}=this;return e(l,{justify:"center"},{default:()=>[e(D,null,{trigger:()=>e(E,{value:this.modelAppThemeRef,"onUpdate:value":o=>this.modelAppThemeRef=o,railStyle:s.bind(this),onUpdateValue:o=>o?i():n()},{"checked-icon":()=>e(r,{name:"dark"},null),"unchecked-icon":()=>e(r,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?t("headerSettingOptions.ThemeOptions.Dark"):t("headerSettingOptions.ThemeOptions.Light")})]})}});var se={pkg:{dependencies:{"@logicflow/core":"2.0.10","@logicflow/extension":"2.0.14","@vueuse/core":"^12.4.0",axios:"^1.7.9",clipboard:"^2.0.11","crypto-js":"4.2.0","currency.js":"^2.0.4",dayjs:"^1.11.13",echarts:"^5.6.0","html-to-image":"1.11.11",interactjs:"1.10.27",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.41.0",pinia:"^2.3.0","pinia-plugin-persistedstate":"^4.2.0","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.10","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.4.0","vue3-next-qrcode":"2.0.10"},devDependencies:{"@amap/amap-jsapi-types":"0.0.15","@ant-design/icons-vue":"7.0.1","@commitlint/cli":"19.3.0","@commitlint/config-conventional":"19.2.2","@interactjs/types":"1.10.27","@intlify/unplugin-vue-i18n":"4.0.0","@types/crypto-js":"4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"4.17.12","@types/mockjs":"1.0.10","@types/three":"0.171.0","@typescript-eslint/eslint-plugin":"8.20.0","@typescript-eslint/parser":"8.20.0","@vitejs/plugin-vue":"5.2.1","@vitejs/plugin-vue-jsx":"4.1.1","@vitest/ui":"2.1.8","@vue/eslint-config-prettier":"10.1.0","@vue/eslint-config-typescript":"14.2.0","@vue/test-utils":"2.4.6",autoprefixer:"10.4.20",depcheck:"1.4.7",eslint:"9.18.0","eslint-config-prettier":"10.0.1","eslint-plugin-prettier":"5.2.2","eslint-plugin-vue":"9.32.0",globals:"15.14.0","happy-dom":"16.6.0",husky:"8.0.3","lint-staged":"15.3.0",postcss:"8.5.1","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"3.4.2","rollup-plugin-gzip":"4.0.1",sass:"1.83.0","svg-sprite-loader":"6.0.11",typescript:"5.6.3","unplugin-auto-import":"19.0.0","unplugin-vue-components":"0.28.0",vite:"6.0.7","vite-bundle-analyzer":"0.16.0","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"0.8.4","vite-plugin-mock-dev-server":"1.8.3","vite-plugin-svg-icons":"2.0.1","vite-svg-loader":"5.1.0",vitest:"2.1.8","vue-tsc":"2.2.0"},name:"ray-template",version:"5.0.10"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"}};function le(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}const dt=a({name:"RLogin",setup(){const{layout:{copyright:t}}=se,i=x({tabsValue:"signing"}),{height:n,width:s}=M(),{updateLocale:o}=$();return{..._(i),windowHeight:n,updateLocale:o,copyright:t,windowWidth:s}},render(){let t;const{$t:i}=this;return e("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[e("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[e("div",{class:["login-wrapper__content"]},[e(l,{align:"center",class:"login-title__wrapper"},{default:()=>[e(r,{name:"ray",size:"48"},null),e(S,{class:"login-title",type:"info",size:28},{default:()=>[c("Ray Template")]})]}),e(l,{align:"center",class:"login-action__wrapper"},{default:()=>[e(oe,null,null),e(Q,{options:z,onSelect:n=>this.updateLocale(n),trigger:"click"},{default:()=>[e(r,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),e(U,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[e(b,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[e(l,{align:"center",vertical:!0},{default:()=>[e(r,{name:"login_bg",width:"368",height:"368"},null),e(S,{class:"login-title",type:"info",size:36},le(t=i("views.login.index.RayTemplate"))?t:{default:()=>[t]})]})]}),e(b,{span:1,class:"login__right-wrapper"},{default:()=>[e(H,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[e(W,{value:this.tabsValue,"onUpdate:value":n=>this.tabsValue=n,type:"line",animated:!0,size:"large"},{default:()=>e(B,null,[e(g,{tab:i("views.login.index.Signing"),name:"signing"},{default:()=>[e(Z,null,null)]}),e(g,{tab:i("views.login.index.Register"),name:"register"},{default:()=>[e(ee,null,null)]}),e(g,{tab:i("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[e(te,null,null)]})])}),e(k,null,{default:()=>[c("其他登陆方式")]}),e(ne,null,null),e(k,null,{default:()=>[c("友情链接")]}),e(X,null,null)]})]})]}),e(l,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{dt as default}; diff --git a/js/index-BryWK9rN.js.gz b/js/index-BryWK9rN.js.gz new file mode 100644 index 00000000..f41bd513 Binary files /dev/null and b/js/index-BryWK9rN.js.gz differ diff --git a/js/index-C-ELjja3.js b/js/index-C-ELjja3.js deleted file mode 100644 index c483d2d3..00000000 --- a/js/index-C-ELjja3.js +++ /dev/null @@ -1 +0,0 @@ -import{a3 as $,Y as z,T as G,U as L,z as P,a4 as j}from"./hooks-CpaAYtdw.js";import{m as Y}from"./utils-DBF0WsFC.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{N as D,e as n,ah as _,P as u,w as K,b as r,H,M as F,ak as X,J as q,p as Q}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as W,b as e,I as o,F as I,p as Z}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as x,e as ee,x as te}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";function N(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!Z(i)}const at=W({name:"TableView",setup(){const[i,{getTableInstance:c,clearFilters:p,clearSorter:m,scrollTo:f,filters:k,sort:C,downloadCsv:h,print:y}]=$(),b=[{type:"selection"},{title:"Name",key:"name",filterOptions:[{label:"John Brown",value:"John Brown"},{label:"Jim Green",value:"Jim Green"}],filter:(t,a)=>a.name.includes(t.toString())},{title:"Age",key:"age",sorter:(t,a)=>t.age-a.age},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(d=>e(K,{type:"info",bordered:!1,style:"margin-right: 6px"},N(d)?d:{default:()=>[d]}))},{title:"Remark",key:"remark"},{title:"Action",key:"actions",render:t=>e(n,{align:"center"},{default:()=>[e(u,{size:"tiny"},{default:()=>[o("查看")]}),e(j,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:a=>{window.$message.info(`当前选择: ${a}`)}},null)]})}],w=x([...b].map((t,a)=>({...t}))),s=x([]),g=[{label:"编辑",key:"edit"},{label:()=>e("span",{style:"color: red;"},[o("删除")]),key:"delete"}],E=ee({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),[T,{checkedRowKeysBind:B,getKeys:R,getRows:l,clearKey:v,clearAll:A,selectKey:S}]=z(s,w,{rowKey:"key",onChange:(t,a,d)=>{}}),M=()=>{for(let t=0;t<10;t++)s.value.push({key:Y(),name:t%2===0?"John Brown":"Jim Green",age:t+20,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"})},O=t=>{window.$message.info(`${t}`)},J=()=>{const{key:t}=s.value[1];v(t)},U=()=>{s.value.map(a=>a.key).forEach(a=>S(a))},V=()=>{const{key:t}=s.value[1];S(t)};return M(),{...te(E),tableData:s,actionColumns:w,baseColumns:b,tableMenuOptions:g,menuSelect:O,register:i,getKeys:R,getRows:l,clearKey:v,clearAll:A,checkedRowKeysBind:B,checkedRowKeys:T,clearSecondIndexRow:J,selectAll:U,selectSecondIndexRow:V,clearFilters:p,clearSorter:m,scrollTo:f,filters:k,sort:C,downloadCsv:h,getTableInstance:c,print:y}},render(){let i;const{register:c,clearAll:p,checkedRowKeysBind:m,clearSecondIndexRow:f,selectAll:k,selectSecondIndexRow:C,clearFilters:h,clearSorter:y,scrollTo:b,filters:w,sort:s,downloadCsv:g,getTableInstance:E,getRows:T,getKeys:B,print:R}=this;return e(n,{vertical:!0},{default:()=>[e(D,{title:"RTable"},{default:()=>[o("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),e(D,{title:"useTable"},{default:()=>[e(n,{vertical:!0,style:"width: 100%"},{default:()=>[e(_,{title:"DataTable Methods",type:"info"},{default:()=>[o("其余的方法查看")," ",e("a",{style:"color: transparent",href:"https://www.naiveui.com/zh-CN/dark/components/data-table#DataTable-Methods"},[o("Naive UI")]),o("官网,保持一致。")]}),e(n,null,{default:()=>[e(u,{onClick:y.bind(this)},{default:()=>[o("清除所有排序")]}),e(u,{onClick:h.bind(this)},{default:()=>[o("清除所有过滤")]}),e(u,{onClick:()=>{g()}},{default:()=>[o("下载 CSV")]}),e(u,{onClick:()=>E()},{default:()=>[o("getTableInstance")]}),e(u,{onClick:()=>R()},{default:()=>[o("打印")]})]})]})]}),e(D,{title:"useCheckedRowKeys"},{default:()=>[e(n,{vertical:!0},{default:()=>[e(n,null,{default:()=>[e(u,{onClick:k.bind(this)},{default:()=>[o("选中所有行")]}),e(u,{onClick:p.bind(this)},{default:()=>[o("取消所有已选中行")]}),e(u,{onClick:C.bind(this)},{default:()=>[o("选中第二行")]}),e(u,{onClick:f.bind(this)},{default:()=>[o("取消第二行选中")]})]}),e(n,null,N(i=this.checkedRowKeys.map(l=>e(K,{type:"success",key:l},N(l)?l:{default:()=>[l]})))?i:{default:()=>[i]})]})]}),e(G,{collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateOpen:l=>window.$message.info(`我是 RCollapse 组件${l?"收起":"展开"}的回调函数`)},{action:()=>e(I,null,[e(u,{type:"primary"},{default:()=>[o("搜索")]}),e(u,null,{default:()=>[o("重置")]})]),default:()=>e(I,null,[e(r,null,{default:()=>[e(H,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(X,{type:"datetimerange",clearable:!0},null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]})])}),e(L,{checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":l=>this.checkedRowKeys=l,onUpdateCheckedRowKeys:m.bind(this),onRegister:c.bind(this),scrollX:1e3,title:e(n,{align:"center"},{default:()=>[e("span",null,[o("标题插槽:")]),e(q,{onUpdateValue:l=>this.tableLoading=l},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":l=>this.actionColumns=l,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.menuSelect.bind(this),toolOptions:[e(Q,null,{trigger:()=>e(P,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})],rowKey:l=>l.key,striped:!0},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{at as default}; diff --git a/js/index-C-ELjja3.js.gz b/js/index-C-ELjja3.js.gz deleted file mode 100644 index 71b3ea81..00000000 Binary files a/js/index-C-ELjja3.js.gz and /dev/null differ diff --git a/js/index-C5NvyzDY.js b/js/index-C5NvyzDY.js new file mode 100644 index 00000000..f38c2e03 --- /dev/null +++ b/js/index-C5NvyzDY.js @@ -0,0 +1 @@ +import{U as p}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import{u as a}from"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{P as n,e}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as u,b as o,J as s}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as l}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const ft=u({name:"RouterDemoHome",setup(){const r=a(),i=l([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:t=>o(e,{align:"center"},{default:()=>[o(n,{type:"info",text:!0,size:"tiny",onClick:()=>{r.push({path:"/router-demo/router-demo-detail",query:{name:t.name}})}},{default:()=>[s("详情")]})]})}]),m=[];for(let t=0;t<10;t++)m.push({name:"张三"+t,address:"New York No. 1 Lake Park",phone:"010-121212",key:t});return{dataSource:m,columns:i}},render(){return o(e,null,{default:()=>[o(p,{columns:this.columns,"onUpdate:columns":r=>this.columns=r,data:this.dataSource},null)]})}});export{ft as default}; diff --git a/js/index-C5NvyzDY.js.gz b/js/index-C5NvyzDY.js.gz new file mode 100644 index 00000000..6337a53f Binary files /dev/null and b/js/index-C5NvyzDY.js.gz differ diff --git a/js/index-C8q1X2s-.js b/js/index-C8q1X2s-.js new file mode 100644 index 00000000..5245bcb7 --- /dev/null +++ b/js/index-C8q1X2s-.js @@ -0,0 +1 @@ +import{o as S,e as W,a5 as V,z as w,a6 as y,a7 as M,a8 as N,u as L,a9 as R}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{N as i,e as a,M as T,P as t}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as U,b as u,J as e}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as b}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Ou=U({name:"TemplateHooks",setup(){const m=b(""),r=S("layoutContentMaximize"),n=b(W().getWatermarkConfig.value.content),F=b("new"),{navigationTo:p}=y(),{maximize:s,isLayoutContentMaximized:d}=V(),{reload:C,openSpin:B,closeSpin:D}=M(),{showWatermark:h,hiddenWatermark:A,setWatermarkContent:E,toggleWatermark:c}=N(),{darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,syncSystemTheme:o}=L(),{hidden:v,show:x,update:z}=R();return{navigationTo:p,reload:C,currentMenuOption:m,maximize:s,maximizeRef:r,openSpin:B,closeSpin:D,showWatermark:h,hiddenWatermark:A,setWatermarkContent:E,watermark:n,toggleWatermark:c,darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,isLayoutContentMaximized:d,badgeHidden:v,badgeShow:x,badgeUpdateLabel:z,badgeValue:F,syncSystemTheme:o}},render(){const{navigationTo:m,reload:r,maximize:n,openSpin:F,closeSpin:p,showWatermark:s,hiddenWatermark:d,setWatermarkContent:C,toggleWatermark:B,darkTheme:D,lightTheme:h,toggleTheme:A,getAppTheme:E,isLayoutContentMaximized:c,badgeHidden:f,badgeShow:k,badgeUpdateLabel:l,syncSystemTheme:g}=this;return u(a,{vertical:!0},{default:()=>[u(i,{title:"接口说明"},{default:()=>[u("h3",null,[e("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),u(i,{title:"useBadge 菜单标记"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.badgeValue,"onUpdate:value":o=>this.badgeValue=o},null),u(a,null,{default:()=>[u(t,{onClick:()=>f("/template-hooks")},{default:()=>[e("隐藏当前菜单标记")]}),u(t,{onClick:()=>k("/template-hooks",{label:this.badgeValue})},{default:()=>[e("显示当前菜单标记")]}),u(t,{onClick:()=>l("/template-hooks",{label:this.badgeValue})},{default:()=>[e("更新当前菜单标记")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:u(w,{name:"error",size:"18"},null)})}},{default:()=>[e("添加标记图标")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[e("隐藏标记图标")]})]})]})]}),u(i,{title:"useTheme 主题"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h3",null,[e("getAppTheme 获取当前主题色: "),E().themeLabel]),u(a,null,{default:()=>[u(t,{onClick:()=>D()},{default:()=>[e("切换暗黑主题")]}),u(t,{onClick:()=>h()},{default:()=>[e("切换明亮主题")]}),u(t,{onClick:()=>g()},{default:()=>[e("跟随主题")]}),u(t,{onClick:()=>A()},{default:()=>[e("切换主题")]})]})]})]}),u(i,{title:"useWatermark 水印"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.watermark,"onUpdate:value":o=>this.watermark=o,onInput:o=>{C(o)}},null),u(a,null,{default:()=>[u(t,{onClick:()=>s()},{default:()=>[e("显示水印")]}),u(t,{onClick:()=>d()},{default:()=>[e("隐藏水印")]}),u(t,{onClick:()=>B()},{default:()=>[e("切换水印")]})]})]})]}),u(i,{title:"useSpinning"},{default:()=>[u("h3",null,[e("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),u("br",null,null),u(a,null,{default:()=>[u(t,{onClick:()=>{r()}},{default:()=>[e("刷新(强制刷新)")]}),u(t,{onClick:()=>{F(),setTimeout(()=>{p()},800)}},{default:()=>[e("触发加载动画(不强制刷新)")]})]})]}),u(i,{title:"useMaximize 内容区域最大化"},{default:()=>[u("h3",null,[e("isLayoutContentMaximized 检测当前内容区域是否最大化:"),c?"最大化":"正常尺寸"]),u(t,{onClick:()=>{n(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[e("最大化内容区域,并且滚动至顶部")]})]}),u(i,{title:"useAppNavigation 导航方法"},{default:()=>[u("h3",null,[e("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),u("br",null,null),u(t,{onClick:()=>m("/multi/multi-menu-one")},{default:()=>[e("跳转至多级菜单")]})]})]})}});export{Ou as default}; diff --git a/js/index-C8q1X2s-.js.gz b/js/index-C8q1X2s-.js.gz new file mode 100644 index 00000000..7974f3c5 Binary files /dev/null and b/js/index-C8q1X2s-.js.gz differ diff --git a/js/index-C9Re1EZk.js b/js/index-C9Re1EZk.js deleted file mode 100644 index 82c08f48..00000000 --- a/js/index-C9Re1EZk.js +++ /dev/null @@ -1 +0,0 @@ -import{z as s}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{A as d}from"./index-DhY7Gt5n.js";import{N as i,ac as f,ad as c,ae as n,af as E,e as a,w as p,O as b}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as F,b as t,I as u,p as C,m as A}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";function m(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!C(o)}const ht=F({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>t(a,null,{default:()=>[t(p,{type:"success"},{default:()=>[u("Vue3.x")]}),t(p,{type:"info"},{default:()=>[u("React")]})]})},{label:"从事搬砖时长",des:()=>t(a,null,{default:()=>[t(p,{type:"success"},{default:()=>[u("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>t(a,{align:"center"},{default:()=>[t(s,{name:"ray",size:"22"},null),u("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>t(a,{align:"center"},{default:()=>[u("如果有希望补充的功能可以在"),t(b,A({as:"a",class:"dashboard-link",type:"primary"},{href:"https://github.com/XiaoDaiGua-Ray/ray-template/issues"}),{default:()=>[u("GitHub")]}),u("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let o,l;return t(a,{vertical:!0},{default:()=>[t(i,null,{header:()=>t(s,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),t(i,{title:"个人介绍"},{default:()=>[t(f,{bordered:!0,labelPlacement:"left",column:2},m(o=this.coverLetterOptions.map(e=>{let r;return t(c,{key:e.label,label:e.label,span:e==null?void 0:e.span},m(r=e.des())?r:{default:()=>[r]})}))?o:{default:()=>[o]})]}),t(i,{title:"项目介绍"},{default:()=>[t(n,null,{default:()=>[u("技术栈")]}),t(E,null,{default:()=>[t(a,null,m(l=this.technologyTagOptions.map(e=>t(p,{key:e.value,type:"info"},{default:()=>[e.label]})))?l:{default:()=>[l]})]}),t(n,null,{default:()=>[u("项目介绍")]}),t(E,null,{default:()=>[u("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),t(i,{title:"友情链接"},{default:()=>[t(d,null,null)]})]})}});export{ht as default}; diff --git a/js/index-C9Re1EZk.js.gz b/js/index-C9Re1EZk.js.gz deleted file mode 100644 index f8a8fa75..00000000 Binary files a/js/index-C9Re1EZk.js.gz and /dev/null differ diff --git a/js/index-BNLeaxW4.js b/js/index-C9W4sfAi.js similarity index 61% rename from js/index-BNLeaxW4.js rename to js/index-C9W4sfAi.js index c0f36945..ff8a440d 100644 --- a/js/index-BNLeaxW4.js +++ b/js/index-C9W4sfAi.js @@ -1 +1 @@ -import{l as e,b as o,I as r}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as i}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{M as p}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const C=e({name:"MultiMenuTwoOne",setup(){return{inputValue:i(null)}},render(){return o("div",{style:{height:"var(--layout-content-height)"}},[r("多级菜单2-2-1"),o(p,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{C as default}; +import{m as e,b as o,J as r}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as i}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{M as p}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const C=e({name:"MultiMenuTwoOne",setup(){return{inputValue:i(null)}},render(){return o("div",{style:{height:"var(--layout-content-height)"}},[r("多级菜单2-2-1"),o(p,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{C as default}; diff --git a/js/index-C9W4sfAi.js.gz b/js/index-C9W4sfAi.js.gz new file mode 100644 index 00000000..07f975f2 Binary files /dev/null and b/js/index-C9W4sfAi.js.gz differ diff --git a/js/index-CAOR_kJ-.js b/js/index-CAOR_kJ-.js new file mode 100644 index 00000000..d953e3a0 --- /dev/null +++ b/js/index-CAOR_kJ-.js @@ -0,0 +1 @@ +import"./hooks-Bi_Q9OFa.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{F,G as h,H as O,I as C,J as E,K as b}from"./utils-4asTneEs.js";import"./crypto-js@4.2.0-CO3T8151.js";import{m as D,b as u,J as p,n as B}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{e as f,x as v}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{e as r,N as i,L as o,K as s,$ as V}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const At=D({name:"CalculatePrecision",setup(){const t=f({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),a={addOptions:O,subtractOptions:C,multiplyOptions:E,divideOptions:b},n=(l,m)=>{const d=a[m],c=d(...l);return"结果: "+F(c)},e=()=>{B().then(()=>{t.distributeOutputValue=h(t.distributeValue,t.distributeLength)})};return e(),{...v(t),copilotFunc:n,updateDistributeValue:e}},render(){return u(V,null,{default:()=>[u("h2",{style:"margin: 0 0 20px 0"},[p("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),u("h3",{style:"margin: 0 0 20px 0"},[p("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),u(r,{vertical:!0},{default:()=>[u(i,{title:"加法"},{default:()=>u(o,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),u(i,{title:"减法"},{default:()=>u(o,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),u(i,{title:"乘法"},{default:()=>u(o,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),u(i,{title:"除法(非取模)"},{default:()=>u(o,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),u(i,{title:"平分一个值"},{default:()=>u(r,null,{default:()=>[u(s,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),u(s,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{At as default}; diff --git a/js/index-CAOR_kJ-.js.gz b/js/index-CAOR_kJ-.js.gz new file mode 100644 index 00000000..cc72d541 Binary files /dev/null and b/js/index-CAOR_kJ-.js.gz differ diff --git a/js/index-CHjj1t3Y.js b/js/index-CHjj1t3Y.js deleted file mode 100644 index 1dc101f2..00000000 --- a/js/index-CHjj1t3Y.js +++ /dev/null @@ -1 +0,0 @@ -import{z as m,W as o}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{l as h,b as u,I as t}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as d}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{ah as F,N as i,a as b,b as l,e as B,al as f,am as a}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const gu=h({name:"SegmentDemo",setup(){const s=[{label:"这是一",key:"this is one"},{label:"这是二",key:"this is two"},{label:"这是三",key:"this is three"}],n=[...s,{label:"这是四",key:"this is four",slots:{default:()=>"我是自定义"}}],p=[...s,{label:"不许点",key:"disabled option",disabled:!0},{label:"popover",key:"popover",popover:"我是 popover"},{label:"popover options",key:"popover options",popover:{label:"我是配置项的 popover"}}],r=[{label:"设置",key:"setting",icon:u(m,{name:"setting"},null)},{label:"刷新",key:"reload",icon:u(m,{name:"reload"},null)},{label:"搜索",key:"search",icon:u(m,{name:"search"},null),popover:"我是搜索"}],E=d("this is three"),e=d("medium"),C=d("block");return{baseOptions:s,options:n,segmentValueOne:E,segmentChange:A=>{window.$message.info(String(A))},size:e,width:C,disabledOptions:p,iconOptions:r}},render(){const{options:s,baseOptions:n,disabledOptions:p,iconOptions:r}=this,{segmentChange:E}=this;return u(B,{vertical:!0},{default:()=>[u(F,{title:"警告⚠️",type:"warning"},{default:()=>[t("n-tabs 默认情况下会从 slot 获取默认展示的 tab 值,因此会产生一个 vue slot 的 warning。如果你不想看到这个 warning,请设定一个 default-value。")]}),u(F,{title:"已知问题",type:"warning"},{default:()=>[t("由于 NTabs 设计缘故,手动设置 width 为 fitContent 后,配置了 disabled, popover 的配置项,会丢失过度效果。具体可以看下面的例子。"),u("br",null,null),t("解决方法,在该组件外层包一层 div,设置宽度,但是不能为 fit-content。")]}),u(i,{title:"分段器"},{default:()=>[u("h3",null,[t("该组件基于 NTabs + NTabPane 封装,所以保留了一些该组件的特性。")])]}),u(b,{cols:2,xGap:8,yGap:12},{default:()=>[u(l,{span:1},{default:()=>[u(i,{title:"基础非受控分段器"},{default:()=>[u(o,{defaultValue:"this is two",options:n},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自定义分段器插槽"},{default:()=>[u(o,{defaultValue:this.segmentValueOne,options:s},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"updateValue 事件"},{default:()=>[u(o,{value:this.segmentValueOne,"onUpdate:value":e=>this.segmentValueOne=e,defaultValue:"this is two",options:p,onUpdateValue:E.bind(this),width:"block"},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自适应宽度"},{default:()=>[u(o,{defaultValue:"setting",options:r,width:"block"},null)]})]}),u(l,{span:2},{default:()=>[u(i,{title:"尺寸"},{default:()=>[u(B,{vertical:!0,size:"large"},{default:()=>[u(f,{value:this.size,"onUpdate:value":e=>this.size=e},{default:()=>[u(a,{value:"small"},{default:()=>[t("小")]}),u(a,{value:"medium"},{default:()=>[t("不小")]}),u(a,{value:"large"},{default:()=>[t("不太小")]})]}),u(o,{defaultValue:"this is two",options:n,size:this.size,width:"block"},null)]})]})]}),u(l,{span:2},{default:()=>[u(i,{title:"宽度"},{default:()=>[u(B,{vertical:!0,size:"large"},{default:()=>[u(F,{title:"注意",type:"info"},{default:()=>[t("RSegment 组件宽度默认为 fitContent,按照内容自适应宽度;如果需要自适应宽度,请设置 width 为 block;如果需要手动指定宽度请设置一个数字。")]}),u(f,{value:this.width,"onUpdate:value":e=>this.width=e},{default:()=>[u(a,{value:"fitContent"},{default:()=>[t("fitContent")]}),u(a,{value:"block"},{default:()=>[t("block")]}),u(a,{value:800},{default:()=>[t("800")]})]}),u(o,{defaultValue:"this is two",options:p,width:this.width},null)]})]})]})]})]})}});export{gu as default}; diff --git a/js/index-CHjj1t3Y.js.gz b/js/index-CHjj1t3Y.js.gz deleted file mode 100644 index 6821cffa..00000000 Binary files a/js/index-CHjj1t3Y.js.gz and /dev/null differ diff --git a/js/index-CNY9lLzh.js b/js/index-CNY9lLzh.js deleted file mode 100644 index 9b36afe2..00000000 --- a/js/index-CNY9lLzh.js +++ /dev/null @@ -1 +0,0 @@ -import{l as k,t as x,b as t,I as C,m as O,p as D}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as v}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{N as o,ac as a,ad as p,w as N}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";var _={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^12.0.0",axios:"^1.7.9",clipboard:"^2.0.11","crypto-js":"4.2.0","currency.js":"^2.0.4",dayjs:"^1.11.13",echarts:"^5.5.1","html-to-image":"1.11.11",interactjs:"1.10.27",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.41.0",pinia:"^2.3.0","pinia-plugin-persistedstate":"^4.1.3","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.10","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.4.0","vue3-next-qrcode":"2.0.10"},devDependencies:{"@amap/amap-jsapi-types":"0.0.15","@ant-design/icons-vue":"7.0.1","@commitlint/cli":"19.3.0","@commitlint/config-conventional":"19.2.2","@interactjs/types":"1.10.27","@intlify/unplugin-vue-i18n":"4.0.0","@types/crypto-js":"4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"4.17.12","@types/mockjs":"1.0.10","@types/three":"0.169.0","@typescript-eslint/eslint-plugin":"8.18.2","@typescript-eslint/parser":"8.18.2","@vitejs/plugin-vue":"5.2.1","@vitejs/plugin-vue-jsx":"4.1.1","@vitest/ui":"1.5.2","@vue/eslint-config-prettier":"10.1.0","@vue/eslint-config-typescript":"14.2.0","@vue/test-utils":"2.4.6",autoprefixer:"10.4.20",depcheck:"1.4.7",eslint:"9.11.0","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.2.1","eslint-plugin-vue":"9.32.0",globals:"15.14.0","happy-dom":"14.12.3",husky:"8.0.3","lint-staged":"15.2.2",postcss:"8.4.49","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"3.3.2","rollup-plugin-gzip":"4.0.1",sass:"1.83.0","svg-sprite-loader":"6.0.11",typescript:"5.6.3","unplugin-auto-import":"0.19.0","unplugin-vue-components":"0.28.0",vite:"6.0.7","vite-bundle-analyzer":"0.15.2","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"0.8.4","vite-plugin-mock-dev-server":"1.8.3","vite-plugin-svg-icons":"2.0.1","vite-svg-loader":"5.1.0",vitest:"2.0.5","vue-tsc":"2.2.0"},name:"ray-template",version:"5.0.10"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"}};function r(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!D(i)}const Q=k({name:"RelyAbout",setup(){const{pkg:i}=_,{dependencies:s,devDependencies:n,name:e,version:g}=i,f=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],u=v([]),d=v([]),b=[{name:"项目名称",label:e},{name:"版本信息",label:g},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],h=()=>{const l=c=>Object.keys(c).reduce((m,y)=>(m.push({name:y,relyVersion:c[y],relyAddress:""}),m),[]);u.value=l(s),d.value=l(n)},j=l=>{l.url&&window.open(l.url)};return x(()=>{h()}),{columns:f,dependenciesOptions:u,devDependenciesOptions:d,templateOptions:b,handleTagClick:j}},render(){let i,s,n;return t("div",{class:"rely-about"},[t(o,{title:"关于项目"},{default:()=>[C("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),t(o,{title:"项目信息"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(i=this.templateOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[t(N,O({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?i:{default:()=>[i]})]}),t(o,{title:"生产依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(s=this.dependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?s:{default:()=>[s]})]}),t(o,{title:"开发依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(n=this.devDependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{Q as default}; diff --git a/js/index-CNY9lLzh.js.gz b/js/index-CNY9lLzh.js.gz deleted file mode 100644 index 25327797..00000000 Binary files a/js/index-CNY9lLzh.js.gz and /dev/null differ diff --git a/js/index-CVpI_rlQ.js b/js/index-CVpI_rlQ.js deleted file mode 100644 index b388c01c..00000000 --- a/js/index-CVpI_rlQ.js +++ /dev/null @@ -1 +0,0 @@ -import{Q as C,T as f,U as k}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{a as A}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import{s as B}from"./instance-nutHwvcu.js";import"./lodash@4.17.21-D1YkSij2.js";import{N as p,r as y,ag as h,M as D,P as i,e as l}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as b,b as t,I as o,F as w}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{e as P,x as N}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./axios@1.7.9-upsvKRUO.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const R=e=>B({url:"/api/list",method:"get",params:e}),Tt=b({name:"MockDemo",setup(){const e=[{type:"selection",multiple:!0},{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:m=>t(l,{align:"center"},{default:()=>[t(i,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[o("查看")]}),t(i,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[o("编辑")]}),t(i,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[o("删除")]})]})}],u=P({email:null}),[n,{getPage:r,getPageSize:a,setItemCount:s,getCallback:F,setPage:x,setPageSize:v}]=C(()=>{E({page:r(),pageSize:a(),email:u.email})}),{data:c,loading:d,run:E}=A(R,{defaultParams:[{page:r(),pageSize:a(),email:u.email}],onSuccess:m=>{const{total:g}=m;s(g)}});return{personData:c,personLoading:d,columns:e,...N(u),getCallback:F,paginationRef:n}},render(){return t(l,{vertical:!0},{default:()=>{var e;return[t(p,{title:"Mock 数据"},{default:()=>[t("h2",null,[o("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),t(p,{title:"提示"},{default:()=>[t("h2",null,[o("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),t(y,{labelPlacement:"left"},{default:()=>[t(f,{cols:3},{default:()=>t(w,null,[t(h,{label:"邮箱"},{default:()=>[t(D,{value:this.email,"onUpdate:value":u=>this.email=u,clearable:!0},null)]})]),action:()=>{var u;return t(i,{type:"primary",onClick:(u=this.getCallback)==null?void 0:u.bind(this)},{default:()=>[o("搜索")]})}})]}),t(k,{title:"Mock数据表格",data:(e=this.personData)==null?void 0:e.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":u=>this.columns=u,pagination:this.paginationRef,remote:!0,rowKey:u=>u.id},null)]}})}});export{Tt as default}; diff --git a/js/index-CVpI_rlQ.js.gz b/js/index-CVpI_rlQ.js.gz deleted file mode 100644 index 88455116..00000000 Binary files a/js/index-CVpI_rlQ.js.gz and /dev/null differ diff --git a/js/index-_CcPe96W.js b/js/index-Ca5uOONJ.js similarity index 72% rename from js/index-_CcPe96W.js rename to js/index-Ca5uOONJ.js index b0c99402..723f5e45 100644 --- a/js/index-_CcPe96W.js +++ b/js/index-Ca5uOONJ.js @@ -1 +1 @@ -import{Q as t}from"./vue3-next-qrcode@2.0.10_typescript@5.6.3-DJUY2IsH.js";import{L as l}from"./ray-dCjhX_JK.js";import{N as r,e,P as d}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as n,b as u,I as o}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as i}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const b=n({name:"RQRCodeDemo",setup(){const a=i("ray template yes"),m=i(),s=i();return{qrcodeText:a,qrcodeStatus:m,rayQRCodeRef:s}},render(){return u(e,null,{default:()=>[u(r,null,{default:()=>[u("h2",null,[o("基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。")]),u("h2",null,[o("该组件会自动监听文本内容变化,然后重新渲染(watchText)")]),u("h2",null,[o("具体使用请参考 props 配置项")])]}),u(r,{title:"基础二维码"},{default:()=>[u(e,null,{default:()=>[u(t,{text:"ray template yes"},null),u(t,{text:"ray template yes",logoImage:l},null),u(t,{text:"ray template yes",gifBackgroundURL:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",dotScale:.5,colorDark:"#64d9d6"},null)]})]}),u(r,{title:"状态二维码"},{default:()=>[u(e,null,{default:()=>[u(t,{text:"ray template yes",logoImage:l,status:"error",onReload:()=>{window.$message.info("reload event")}},null),u(t,{text:"ray template yes",logoImage:l,status:"loading"},null)]})]}),u(r,{title:"监听内容变化"},{default:()=>[u(e,{vertical:!0},{default:()=>[u(e,null,{default:()=>[u(d,{onClick:()=>{this.qrcodeStatus="loading",setTimeout(()=>{this.qrcodeText="text updated: "+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[o("更新二维码内容")]}),u(d,{onClick:()=>{var a;(a=this.rayQRCodeRef)==null||a.downloadQRCode()}},{default:()=>[o("下载二维码")]})]}),u(e,null,{default:()=>[u(t,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:l,ref:"rayQRCodeRef"},null),o("当前二维码内容:"),this.qrcodeText]})]})]})]})}});export{b as default}; +import{Q as t}from"./vue3-next-qrcode@2.0.10_typescript@5.6.3-wzrC7cBz.js";import{L as l}from"./ray-dCjhX_JK.js";import{N as r,e,P as d}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as n,b as u,J as o}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as i}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const b=n({name:"RQRCodeDemo",setup(){const a=i("ray template yes"),m=i(),s=i();return{qrcodeText:a,qrcodeStatus:m,rayQRCodeRef:s}},render(){return u(e,null,{default:()=>[u(r,null,{default:()=>[u("h2",null,[o("基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。")]),u("h2",null,[o("该组件会自动监听文本内容变化,然后重新渲染(watchText)")]),u("h2",null,[o("具体使用请参考 props 配置项")])]}),u(r,{title:"基础二维码"},{default:()=>[u(e,null,{default:()=>[u(t,{text:"ray template yes"},null),u(t,{text:"ray template yes",logoImage:l},null),u(t,{text:"ray template yes",gifBackgroundURL:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",dotScale:.5,colorDark:"#64d9d6"},null)]})]}),u(r,{title:"状态二维码"},{default:()=>[u(e,null,{default:()=>[u(t,{text:"ray template yes",logoImage:l,status:"error",onReload:()=>{window.$message.info("reload event")}},null),u(t,{text:"ray template yes",logoImage:l,status:"loading"},null)]})]}),u(r,{title:"监听内容变化"},{default:()=>[u(e,{vertical:!0},{default:()=>[u(e,null,{default:()=>[u(d,{onClick:()=>{this.qrcodeStatus="loading",setTimeout(()=>{this.qrcodeText="text updated: "+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[o("更新二维码内容")]}),u(d,{onClick:()=>{var a;(a=this.rayQRCodeRef)==null||a.downloadQRCode()}},{default:()=>[o("下载二维码")]})]}),u(e,null,{default:()=>[u(t,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:l,ref:"rayQRCodeRef"},null),o("当前二维码内容:"),this.qrcodeText]})]})]})]})}});export{b as default}; diff --git a/js/index-Ca5uOONJ.js.gz b/js/index-Ca5uOONJ.js.gz new file mode 100644 index 00000000..1ea43692 Binary files /dev/null and b/js/index-Ca5uOONJ.js.gz differ diff --git a/js/index-CbzDm5wU.js b/js/index-CbzDm5wU.js deleted file mode 100644 index 6314af93..00000000 --- a/js/index-CbzDm5wU.js +++ /dev/null @@ -1 +0,0 @@ -import{i as f,R as h}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{a as v,ag as r,M as l,K as F,ak as b,al as y,am as s,e as N,P as m}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as k,b as t,I as i}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as d}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Bt=k({name:"RFormDemo",setup(){const[u,{getFormInstance:p,validate:o,restoreValidation:n,formModel:a,formRules:e}]=f({name:null,age:null,gender:null,date:null,remark:null},{name:{required:!0,message:"请输入姓名",trigger:["blur","change"]},date:{required:!0,message:"请选择日期",trigger:["blur","change"],type:"number"},gender:{required:!0,message:"请选择性别",trigger:"change"},age:{required:!0,message:"请输入年龄",trigger:["blur","change"],type:"number"}}),g=d(e()),c=d(a());return{register:u,rules:g,condition:c,restoreValidation:n,formModel:a,validate:o}},render(){const{rules:u}=this,{register:p,restoreValidation:o,formModel:n,validate:a}=this;return t(h,{onRegister:p,rules:u,model:this.condition},{default:()=>[t(v,{cols:24,xGap:24},{default:()=>[t(r,{label:"姓名",path:"name",span:12},{default:()=>[t(l,{value:this.condition.name,"onUpdate:value":e=>this.condition.name=e},null)]}),t(r,{label:"年龄",path:"age",span:12},{default:()=>[t(F,{value:this.condition.age,"onUpdate:value":e=>this.condition.age=e,showButton:!1,style:"width: 100%"},null)]}),t(r,{label:"出生日期",path:"date",span:12},{default:()=>[t(b,{value:this.condition.date,"onUpdate:value":e=>this.condition.date=e,style:"width: 100%"},null)]}),t(r,{label:"性别",path:"gender",span:12},{default:()=>[t(y,{value:this.condition.gender,"onUpdate:value":e=>this.condition.gender=e},{default:()=>[t(s,{value:"girl"},{default:()=>[i("女")]}),t(s,{value:"man"},{default:()=>[i("男")]})]})]}),t(r,{label:"备注信息",span:24},{default:()=>[t(l,{type:"textarea",value:this.condition.remark,"onUpdate:value":e=>this.condition.remark=e},null)]}),t(r,{span:24},{default:()=>[t(N,{justify:"flex-end",style:"width: 100%"},{default:()=>[t(m,{type:"info",onClick:()=>{this.condition=n(),o()}},{default:()=>[i("重置表单为初始状态")]}),t(m,{type:"warning",onClick:o.bind(this)},{default:()=>[i("移除校验状态")]}),t(m,{type:"primary",onClick:()=>a()},{default:()=>[i("校验")]})]})]})]})]})}});export{Bt as default}; diff --git a/js/index-CbzDm5wU.js.gz b/js/index-CbzDm5wU.js.gz deleted file mode 100644 index 4ed2c5ec..00000000 Binary files a/js/index-CbzDm5wU.js.gz and /dev/null differ diff --git a/js/index-Ch7Iz5Mb.js b/js/index-Ch7Iz5Mb.js new file mode 100644 index 00000000..dafab527 --- /dev/null +++ b/js/index-Ch7Iz5Mb.js @@ -0,0 +1 @@ +import{z as s,_ as i}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{m as c,b as t,O as p,V as d,q as m}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as u}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{e as E,p as a,N as g}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";function f(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!m(r)}const Oi=c({name:"PreviewSVGIcons",setup(){const r=u([]);return Object.keys(Object.assign({"/src/icons/action/close_other.svg":()=>i(()=>import("./close_other-DPtbrCYd.js"),[]),"/src/icons/action/draggable.svg":()=>i(()=>import("./draggable-D6qza0mp.js"),[]),"/src/icons/action/fullscreen.svg":()=>i(()=>import("./fullscreen-Cjm0bPGx.js"),[]),"/src/icons/action/fullscreen_fold.svg":()=>i(()=>import("./fullscreen_fold-D_jdG9mi.js"),[]),"/src/icons/action/out.svg":()=>i(()=>import("./out-CMQCc625.js"),[]),"/src/icons/action/reload.svg":()=>i(()=>import("./reload-BPf1PV7s.js"),[]),"/src/icons/action/search.svg":()=>i(()=>import("./search-CFLGi5BR.js"),[]),"/src/icons/action/setting.svg":()=>i(()=>import("./setting-DyoycADf.js"),[]),"/src/icons/action/shared.svg":()=>i(()=>import("./shared-DVfOv8Mx.js"),[]),"/src/icons/directional/adjustment.svg":()=>i(()=>import("./adjustment-DIo_g8Za.js"),[]),"/src/icons/directional/close_left.svg":()=>i(()=>import("./close_left-DX8SFJx4.js"),[]),"/src/icons/directional/close_right.svg":()=>i(()=>import("./close_right-DWMWcuX1.js"),[]),"/src/icons/directional/expanded.svg":()=>i(()=>import("./expanded-BswQDJyW.js"),[]),"/src/icons/directional/left_arrow.svg":()=>i(()=>import("./left_arrow-DAKeumRT.js"),[]),"/src/icons/directional/lock.svg":()=>i(()=>import("./lock-dC7sQfx2.js"),[]),"/src/icons/directional/resize_h.svg":()=>i(()=>import("./resize_h-DA2p7YCQ.js"),[]),"/src/icons/directional/right_arrow.svg":()=>i(()=>import("./right_arrow-CbmroMoE.js"),[]),"/src/icons/directional/row_end.svg":()=>i(()=>import("./row_end-CqbNhb3G.js"),[]),"/src/icons/directional/row_head.svg":()=>i(()=>import("./row_head-BCxi2x-p.js"),[]),"/src/icons/logo/github.svg":()=>i(()=>import("./github-B4ARmChV.js"),[]),"/src/icons/logo/google.svg":()=>i(()=>import("./google-GEcrFhWr.js"),[]),"/src/icons/logo/login_bg.svg":()=>i(()=>import("./login_bg-CRcyXHBf.js"),[]),"/src/icons/logo/office.svg":()=>i(()=>import("./office-B5pC1KGi.js"),[]),"/src/icons/logo/ray.svg":()=>i(()=>import("./ray-B93BjtIh.js"),[]),"/src/icons/logo/twitter.svg":()=>i(()=>import("./twitter-DjE7U1HD.js"),[]),"/src/icons/template/dark.svg":()=>i(()=>import("./dark-zODhV8ab.js"),[]),"/src/icons/template/light.svg":()=>i(()=>import("./light-DWWBs-Ry.js"),[]),"/src/icons/template/system_os.svg":()=>i(()=>import("./system_os-Bu1k9Avg.js"),[]),"/src/icons/tip/axios.svg":()=>i(()=>import("./axios-o8g4A-7A.js"),[]),"/src/icons/tip/close.svg":()=>i(()=>import("./close-B43hVi0H.js"),[]),"/src/icons/tip/dashboard.svg":()=>i(()=>import("./dashboard-70op-CO0.js"),[]),"/src/icons/tip/echart.svg":()=>i(()=>import("./echart-c_3t778P.js"),[]),"/src/icons/tip/enter.svg":()=>i(()=>import("./enter-CPGcsJ25.js"),[]),"/src/icons/tip/error.svg":()=>i(()=>import("./error-CjWalrOZ.js"),[]),"/src/icons/tip/export_excel.svg":()=>i(()=>import("./export_excel-ZmNoLzCr.js"),[]),"/src/icons/tip/language.svg":()=>i(()=>import("./language-BOVZ3dlJ.js"),[]),"/src/icons/tip/menu.svg":()=>i(()=>import("./menu-CPMkWw77.js"),[]),"/src/icons/tip/more.svg":()=>i(()=>import("./more-DW-qndwg.js"),[]),"/src/icons/tip/mouse.svg":()=>i(()=>import("./mouse-C_l6KSTs.js"),[]),"/src/icons/tip/other.svg":()=>i(()=>import("./other-DU6bZUrM.js"),[]),"/src/icons/tip/print.svg":()=>i(()=>import("./print-jFo_n0lx.js"),[]),"/src/icons/tip/question.svg":()=>i(()=>import("./question-TxSSjOrI.js"),[]),"/src/icons/tip/rely.svg":()=>i(()=>import("./rely-DlDUQEbT.js"),[]),"/src/icons/tip/table.svg":()=>i(()=>import("./table-tYkftQGA.js"),[])})).forEach(n=>{var _;const o=(_=n.match(/\/(\w+)\.svg/))==null?void 0:_[1];o&&r.value.push(o)}),{icons:r}},render(){return t(g,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let r;return t(E,null,f(r=this.icons.map(e=>p(t("div",{class:"pre-view-icons__card",key:e},[t(a,null,{trigger:()=>t(s,{name:e,size:"56",cursor:"pointer"},null),default:()=>e})]),[[d("copy"),``]])))?r:{default:()=>[r]})}})}});export{Oi as default}; diff --git a/js/index-Ch7Iz5Mb.js.gz b/js/index-Ch7Iz5Mb.js.gz new file mode 100644 index 00000000..f7b98829 Binary files /dev/null and b/js/index-Ch7Iz5Mb.js.gz differ diff --git a/js/index-D26iCvfp.js b/js/index-D26iCvfp.js new file mode 100644 index 00000000..d6420b7f --- /dev/null +++ b/js/index-D26iCvfp.js @@ -0,0 +1 @@ +import{a3 as $,Y as z,T as G,U as L,z as P,a4 as j}from"./hooks-Bi_Q9OFa.js";import{m as Y}from"./utils-4asTneEs.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{N as D,e as n,ah as _,P as u,w as K,b as r,H as q,M as F,ak as H,J as X,p as Q}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as W,b as e,J as o,F as I,q as Z}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as x,e as ee,x as te}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";function N(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!Z(i)}const at=W({name:"TableView",setup(){const[i,{getTableInstance:c,clearFilters:p,clearSorter:m,scrollTo:f,filters:k,sort:C,downloadCsv:h,print:y}]=$(),b=[{type:"selection"},{title:"Name",key:"name",filterOptions:[{label:"John Brown",value:"John Brown"},{label:"Jim Green",value:"Jim Green"}],filter:(t,a)=>a.name.includes(t.toString())},{title:"Age",key:"age",sorter:(t,a)=>t.age-a.age},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(d=>e(K,{type:"info",bordered:!1,style:"margin-right: 6px"},N(d)?d:{default:()=>[d]}))},{title:"Remark",key:"remark"},{title:"Action",key:"actions",render:t=>e(n,{align:"center"},{default:()=>[e(u,{size:"tiny"},{default:()=>[o("查看")]}),e(j,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:a=>{window.$message.info(`当前选择: ${a}`)}},null)]})}],w=x([...b].map((t,a)=>({...t}))),s=x([]),g=[{label:"编辑",key:"edit"},{label:()=>e("span",{style:"color: red;"},[o("删除")]),key:"delete"}],E=ee({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),[T,{checkedRowKeysBind:B,getKeys:R,getRows:l,clearKey:v,clearAll:A,selectKey:S}]=z(s,w,{rowKey:"key",onChange:(t,a,d)=>{}}),J=()=>{for(let t=0;t<10;t++)s.value.push({key:Y(),name:t%2===0?"John Brown":"Jim Green",age:t+20,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"})},M=t=>{window.$message.info(`${t}`)},O=()=>{const{key:t}=s.value[1];v(t)},U=()=>{s.value.map(a=>a.key).forEach(a=>S(a))},V=()=>{const{key:t}=s.value[1];S(t)};return J(),{...te(E),tableData:s,actionColumns:w,baseColumns:b,tableMenuOptions:g,menuSelect:M,register:i,getKeys:R,getRows:l,clearKey:v,clearAll:A,checkedRowKeysBind:B,checkedRowKeys:T,clearSecondIndexRow:O,selectAll:U,selectSecondIndexRow:V,clearFilters:p,clearSorter:m,scrollTo:f,filters:k,sort:C,downloadCsv:h,getTableInstance:c,print:y}},render(){let i;const{register:c,clearAll:p,checkedRowKeysBind:m,clearSecondIndexRow:f,selectAll:k,selectSecondIndexRow:C,clearFilters:h,clearSorter:y,scrollTo:b,filters:w,sort:s,downloadCsv:g,getTableInstance:E,getRows:T,getKeys:B,print:R}=this;return e(n,{vertical:!0},{default:()=>[e(D,{title:"RTable"},{default:()=>[o("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),e(D,{title:"useTable"},{default:()=>[e(n,{vertical:!0,style:"width: 100%"},{default:()=>[e(_,{title:"DataTable Methods",type:"info"},{default:()=>[o("其余的方法查看")," ",e("a",{style:"color: transparent",href:"https://www.naiveui.com/zh-CN/dark/components/data-table#DataTable-Methods"},[o("Naive UI")]),o("官网,保持一致。")]}),e(n,null,{default:()=>[e(u,{onClick:y.bind(this)},{default:()=>[o("清除所有排序")]}),e(u,{onClick:h.bind(this)},{default:()=>[o("清除所有过滤")]}),e(u,{onClick:()=>{g()}},{default:()=>[o("下载 CSV")]}),e(u,{onClick:()=>E()},{default:()=>[o("getTableInstance")]}),e(u,{onClick:()=>R()},{default:()=>[o("打印")]})]})]})]}),e(D,{title:"useCheckedRowKeys"},{default:()=>[e(n,{vertical:!0},{default:()=>[e(n,null,{default:()=>[e(u,{onClick:k.bind(this)},{default:()=>[o("选中所有行")]}),e(u,{onClick:p.bind(this)},{default:()=>[o("取消所有已选中行")]}),e(u,{onClick:C.bind(this)},{default:()=>[o("选中第二行")]}),e(u,{onClick:f.bind(this)},{default:()=>[o("取消第二行选中")]})]}),e(n,null,N(i=this.checkedRowKeys.map(l=>e(K,{type:"success",key:l},N(l)?l:{default:()=>[l]})))?i:{default:()=>[i]})]})]}),e(G,{collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateOpen:l=>window.$message.info(`我是 RCollapse 组件${l?"收起":"展开"}的回调函数`)},{action:()=>e(I,null,[e(u,{type:"primary"},{default:()=>[o("搜索")]}),e(u,null,{default:()=>[o("重置")]})]),default:()=>e(I,null,[e(r,null,{default:()=>[e(q,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(H,{type:"datetimerange",clearable:!0},null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]})])}),e(L,{checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":l=>this.checkedRowKeys=l,onUpdateCheckedRowKeys:m.bind(this),onRegister:c.bind(this),scrollX:1e3,title:e(n,{align:"center"},{default:()=>[e("span",null,[o("标题插槽:")]),e(X,{onUpdateValue:l=>this.tableLoading=l},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":l=>this.actionColumns=l,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.menuSelect.bind(this),toolOptions:[e(Q,null,{trigger:()=>e(P,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})],rowKey:l=>l.key,striped:!0},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{at as default}; diff --git a/js/index-D26iCvfp.js.gz b/js/index-D26iCvfp.js.gz new file mode 100644 index 00000000..a0eee629 Binary files /dev/null and b/js/index-D26iCvfp.js.gz differ diff --git a/js/index-DGmHId93.js b/js/index-DGmHId93.js new file mode 100644 index 00000000..aaea7212 --- /dev/null +++ b/js/index-DGmHId93.js @@ -0,0 +1 @@ +import{C as u,e as s}from"./hooks-Bi_Q9OFa.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{u as a}from"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import{ab as n,W as l,e as c,P as p}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m,b as t,p as d,J as e}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const f=m({name:"PageResult",props:{...n},setup(){const{replace:r}=a();return{goBack:()=>{var i;const{getAppRootRoute:o}=s();(i=o.value)!=null&&i.path&&r(o.value.path)}}},render(){const{goBack:r}=this;return t("div",{class:"error-page"},[t(l,d(this.$props,{status:"500",title:"404 资源不存在",description:"小调皮你走错地方了"}),{...this.$slots,footer:()=>t(c,{align:"center",justify:"center"},{default:()=>[t(p,{onClick:u.bind(this,!0)},{default:()=>[e("返回首页")]}),t(p,{type:"primary",onClick:r.bind(this)},{default:()=>[e("返回上一页面")]})]})})])}}),Dt=m({name:"ErrorPage404",setup(){return{}},render(){return t(f,{status:"404"},null)}});export{Dt as default}; diff --git a/js/index-DGmHId93.js.gz b/js/index-DGmHId93.js.gz new file mode 100644 index 00000000..67feb943 Binary files /dev/null and b/js/index-DGmHId93.js.gz differ diff --git a/js/index-DHO0XaOX.js b/js/index-DHO0XaOX.js deleted file mode 100644 index c559d664..00000000 --- a/js/index-DHO0XaOX.js +++ /dev/null @@ -1 +0,0 @@ -import{J as d}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{l as c,b as t,I as n}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as u}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{N as f,e as s,k as h}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const bt=c({name:"ContextMenuDemo",setup(){const o=u(),r=u(!1),e=u([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:m,y:p,show:a,updateShow:i}=d(o);return{demoOneRef:o,demoOneShow:r,x:m,y:p,show:a,options:e,clickOutside:l=>{l.preventDefault(),i(!1)},updateShow:i}},render(){const{x:o,y:r,show:e}=this,{clickOutside:m,updateShow:p}=this;return t(s,{vertical:!0},{default:()=>[t(f,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[t(s,{vertical:!0},{default:()=>[t("h3",null,[n("默认点击元素外部会关闭菜单。")]),t("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[n("右击")])]})]}),t(h,{show:e,x:o,y:r,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,i)=>{window.$message.info(`选中了 ${i.label}`),p(!1)},onClickoutside:m.bind(this)},null)]})}});export{bt as default}; diff --git a/js/index-DHO0XaOX.js.gz b/js/index-DHO0XaOX.js.gz deleted file mode 100644 index 5f01d31b..00000000 Binary files a/js/index-DHO0XaOX.js.gz and /dev/null differ diff --git a/js/index-DPVrk8sH.js b/js/index-DPVrk8sH.js deleted file mode 100644 index f01ac546..00000000 --- a/js/index-DPVrk8sH.js +++ /dev/null @@ -1 +0,0 @@ -import{P as r}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{l as i,b as t}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{N as o,e as m}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const ut=i({name:"IframeDemo",setup(){return{}},render(){return t(m,{vertical:!0,size:[20,20]},{default:()=>[t(o,{title:"naive ui(延迟加载)"},{default:()=>[t(r,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),t(o,{title:"vue-hooks-plus(立即加载)"},{default:()=>[t(r,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{ut as default}; diff --git a/js/index-DPVrk8sH.js.gz b/js/index-DPVrk8sH.js.gz deleted file mode 100644 index f6a76f90..00000000 Binary files a/js/index-DPVrk8sH.js.gz and /dev/null differ diff --git a/js/index-DTS9XXyl.js b/js/index-DTS9XXyl.js deleted file mode 100644 index 70f542c7..00000000 --- a/js/index-DTS9XXyl.js +++ /dev/null @@ -1 +0,0 @@ -import{a as l}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import{s as n}from"./instance-nutHwvcu.js";import{e as r,N as o,P as A,M as i,$ as g}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as V,b as u,I as t}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{e as R,x as v}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./axios@1.7.9-upsvKRUO.js";import"./hooks-CpaAYtdw.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";function b(e,a){return l(()=>n(e),Object.assign({},a))}const w=e=>n({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),d=()=>n({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),Nu=V({name:"RAxios",setup(){const e=R({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:a,loading:m,run:p}=l(d,{throttleWait:1e3,manual:!0}),{data:s,loading:D,run:F}=l(d,{debounceWait:1e3,manual:!0}),{data:h,loading:c,run:E}=l(w,{throttleWait:1e3,manual:!0}),{data:B,loading:C,run:f}=b({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...v(e),throttleDemoValue:a,throttleDemoLoading:m,throttleDemoRun:p,debounceDemoValue:s,debounceDemoLoading:D,debounceDemoRun:F,weatherDemoValue:h,weatherDemoLoading:c,weatherDemoRun:E,demoData:B,demoLoading:C,demoRun:f}},render(){return u(g,null,{default:()=>[u(r,{vertical:!0},{default:()=>[u("h1",null,[t("请求")]),u(o,null,{default:()=>[u("h2",null,[t("useRequest")]),u("p",null,[t("支持配置化请求数据")]),u("h2",null,[t("useHookPlusRequest")]),u("p",null,[t("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),u("h1",null,[t("使用 useRequest 获取")]),u(o,{title:"请求函数"},{default:()=>[u("h3",null,[t("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),u("h3",null,[t("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),u("h3",null,[t("3.详情请查看文档")])]}),u(o,{title:"useRequest示例(手动触发)"},{default:()=>[u(r,{vertical:!0},{default:()=>{var e;return[u(A,{onClick:this.demoRun.bind(this)},{default:()=>[t("获取数据")]}),u("h3",null,[t("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),u("h1",null,[t("使用 useHookPlusRequest 获取")]),u(o,{title:"节流"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),u("h3",null,[t("不论触发多少次,一秒钟之内仅会触发一次")]),u("h3",null,[t("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"防抖"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),u("h3",null,[t("一秒后才会执行,如果中途重新请求,则会重新计时")]),u("h3",null,[t("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"获取气候"},{default:()=>[u(r,{vertical:!0},{default:()=>[u(i,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),u("h3",null,[t("该示例演示了如何根据动态值获取数据")]),u("h3",null,[t("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{Nu as default}; diff --git a/js/index-DTS9XXyl.js.gz b/js/index-DTS9XXyl.js.gz deleted file mode 100644 index f2384ae9..00000000 Binary files a/js/index-DTS9XXyl.js.gz and /dev/null differ diff --git a/js/index-j667e7uE.js b/js/index-DZB7njz5.js similarity index 60% rename from js/index-j667e7uE.js rename to js/index-DZB7njz5.js index 1337eac5..369c4616 100644 --- a/js/index-j667e7uE.js +++ b/js/index-DZB7njz5.js @@ -1 +1 @@ -import{l as o,b as r,I as t}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{N as u}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const S=o({name:"ScrollReveal",render(){return r("div",{class:"scroll-reveal"},[r(u,{title:"提示"},{default:()=>[t("RayScrollReveal组件有点问题, 暂时移除. 不能正常的实现滚动动画. 很是操蛋!!!")]})])}});export{S as default}; +import{m as o,b as r,J as t}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{N as u}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const S=o({name:"ScrollReveal",render(){return r("div",{class:"scroll-reveal"},[r(u,{title:"提示"},{default:()=>[t("RayScrollReveal组件有点问题, 暂时移除. 不能正常的实现滚动动画. 很是操蛋!!!")]})])}});export{S as default}; diff --git a/js/index-DZB7njz5.js.gz b/js/index-DZB7njz5.js.gz new file mode 100644 index 00000000..96a4ff08 Binary files /dev/null and b/js/index-DZB7njz5.js.gz differ diff --git a/js/index-D_ftfM6j.js b/js/index-D_ftfM6j.js deleted file mode 100644 index 85ca13be..00000000 --- a/js/index-D_ftfM6j.js +++ /dev/null @@ -1 +0,0 @@ -import{o as S,e as W,a5 as V,z as w,a6 as y,a7 as M,a8 as N,u as L,a9 as I}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{N as i,e as a,M as T,P as t}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as R,b as u,I as e}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as b}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Ou=R({name:"TemplateHooks",setup(){const m=b(""),r=S("layoutContentMaximize"),n=b(W().getWatermarkConfig.value.content),F=b("new"),{navigationTo:p}=y(),{maximize:s,isLayoutContentMaximized:d}=V(),{reload:C,openSpin:B,closeSpin:D}=M(),{showWatermark:h,hiddenWatermark:A,setWatermarkContent:E,toggleWatermark:c}=N(),{darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,syncSystemTheme:o}=L(),{hidden:v,show:x,update:z}=I();return{navigationTo:p,reload:C,currentMenuOption:m,maximize:s,maximizeRef:r,openSpin:B,closeSpin:D,showWatermark:h,hiddenWatermark:A,setWatermarkContent:E,watermark:n,toggleWatermark:c,darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:g,isLayoutContentMaximized:d,badgeHidden:v,badgeShow:x,badgeUpdateLabel:z,badgeValue:F,syncSystemTheme:o}},render(){const{navigationTo:m,reload:r,maximize:n,openSpin:F,closeSpin:p,showWatermark:s,hiddenWatermark:d,setWatermarkContent:C,toggleWatermark:B,darkTheme:D,lightTheme:h,toggleTheme:A,getAppTheme:E,isLayoutContentMaximized:c,badgeHidden:f,badgeShow:k,badgeUpdateLabel:l,syncSystemTheme:g}=this;return u(a,{vertical:!0},{default:()=>[u(i,{title:"接口说明"},{default:()=>[u("h3",null,[e("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),u(i,{title:"useBadge 菜单标记"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.badgeValue,"onUpdate:value":o=>this.badgeValue=o},null),u(a,null,{default:()=>[u(t,{onClick:()=>f("/template-hooks")},{default:()=>[e("隐藏当前菜单标记")]}),u(t,{onClick:()=>k("/template-hooks",{label:this.badgeValue})},{default:()=>[e("显示当前菜单标记")]}),u(t,{onClick:()=>l("/template-hooks",{label:this.badgeValue})},{default:()=>[e("更新当前菜单标记")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:u(w,{name:"error",size:"18"},null)})}},{default:()=>[e("添加标记图标")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[e("隐藏标记图标")]})]})]})]}),u(i,{title:"useTheme 主题"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h3",null,[e("getAppTheme 获取当前主题色: "),E().themeLabel]),u(a,null,{default:()=>[u(t,{onClick:()=>D()},{default:()=>[e("切换暗黑主题")]}),u(t,{onClick:()=>h()},{default:()=>[e("切换明亮主题")]}),u(t,{onClick:()=>g()},{default:()=>[e("跟随主题")]}),u(t,{onClick:()=>A()},{default:()=>[e("切换主题")]})]})]})]}),u(i,{title:"useWatermark 水印"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(T,{value:this.watermark,"onUpdate:value":o=>this.watermark=o,onInput:o=>{C(o)}},null),u(a,null,{default:()=>[u(t,{onClick:()=>s()},{default:()=>[e("显示水印")]}),u(t,{onClick:()=>d()},{default:()=>[e("隐藏水印")]}),u(t,{onClick:()=>B()},{default:()=>[e("切换水印")]})]})]})]}),u(i,{title:"useSpinning"},{default:()=>[u("h3",null,[e("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),u("br",null,null),u(a,null,{default:()=>[u(t,{onClick:()=>{r()}},{default:()=>[e("刷新(强制刷新)")]}),u(t,{onClick:()=>{F(),setTimeout(()=>{p()},800)}},{default:()=>[e("触发加载动画(不强制刷新)")]})]})]}),u(i,{title:"useMaximize 内容区域最大化"},{default:()=>[u("h3",null,[e("isLayoutContentMaximized 检测当前内容区域是否最大化:"),c?"最大化":"正常尺寸"]),u(t,{onClick:()=>{n(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[e("最大化内容区域,并且滚动至顶部")]})]}),u(i,{title:"useAppNavigation 导航方法"},{default:()=>[u("h3",null,[e("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),u("br",null,null),u(t,{onClick:()=>m("/multi/multi-menu-one")},{default:()=>[e("跳转至多级菜单")]})]})]})}});export{Ou as default}; diff --git a/js/index-D_ftfM6j.js.gz b/js/index-D_ftfM6j.js.gz deleted file mode 100644 index 890268e9..00000000 Binary files a/js/index-D_ftfM6j.js.gz and /dev/null differ diff --git a/js/index-DffTdIpf.js b/js/index-DffTdIpf.js deleted file mode 100644 index c098666d..00000000 --- a/js/index-DffTdIpf.js +++ /dev/null @@ -1 +0,0 @@ -import{R as Y}from"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import{e as M,M as J,g as K,f as v,G as b,h as X,i as Q,j,k as S,l as e1,R as t1,r as l1,m as o1,n as E,o as i1,p as c1,q as a1,D as n1,s as r1,t as s1,v as p1,w as d1}from"./hooks-CpaAYtdw.js";import{d as h1}from"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import{a0 as f1,a1 as u1,a2 as m1,a3 as v1,a4 as g1,a5 as b1,a6 as V,a7 as _1,a8 as M1,I as y1,M as w1,P as C1,a9 as Z1,aa as z1,h as k1}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as m,f as y,b as n,j as S1,q as V1,k as x1,n as H1,I as P1,m as T}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{f as L1,u as O}from"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import{g as Z,c as A1,b as _,y as w,n as R,s as C,D as B1,d as x,i as j1}from"./utils-DBF0WsFC.js";import{g as E1,u as T1,l as O1,z as R1}from"./lodash-es@4.17.21-l6r90Unf.js";import{e as $1,x as N1,k as F1}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./vue3-next-qrcode@2.0.10_typescript@5.6.3-DJUY2IsH.js";import{C as D1}from"./clipboard@2.0.11-L0nEBxcf.js";import{c as $}from"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const a of c.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function l(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(o){if(o.ep)return;o.ep=!0;const c=l(o);fetch(o.href,c)}})();const I1=m({name:"GlobalProvider",setup(e,{expose:t}){const{getPrimaryColorOverride:l,getAppTheme:i,getLocaleLanguage:o}=M(),c=y(()=>{const r=o.value;return K(r)}),a=()=>{const{message:r,notification:s,dialog:p,loadingBar:d}=M1(["message","dialog","notification","loadingBar"],{configProviderProps:y(()=>({theme:i.value?V:null}))});window.$dialog=p,window.$message=r,window.$loadingBar=d,window.$notification=s};return t(),{getPrimaryColorOverride:l,localePackage:c,getAppTheme:i,discreteApi:a}},render(){const{$slots:{default:e},discreteApi:t}=this,{getPrimaryColorOverride:l,getAppTheme:i,localePackage:o}=this;return n(_1,{themeOverrides:l,theme:i?V:null,locale:o.locale,dateLocale:o.dateLocal},{default:()=>[n(f1,null,{default:()=>[n(u1,J,{default:()=>[n(m1,null,{default:()=>[n(v1,null,{default:()=>[n(g1,null,{default:()=>[n(b1,null,null),e==null?void 0:e(),t()]})]})]})]})]})]})}}),W1=m({name:"AppStyleProvider",setup(e,{expose:t}){const{getAppTheme:l}=M(),{height:i,width:o}=L1(),c=()=>{const{appPrimaryColor:{primaryColor:s,primaryFadeColor:p}}=X,{rayTemplateThemePrimaryColor:d,rayTemplateThemePrimaryFadeColor:h}=b,u=document.documentElement,g=Z(v.appPiniaSettingStore,"localStorage");if(g){const k=E1(g,"primaryColorOverride.common.primaryColor",s),G=A1(k,.85);u.style.setProperty(d,k),u.style.setProperty(h,G||p)}},a=()=>{const s=document.getElementById(b.preLoadingAnimation);s&&_(s,{display:"none"})},r=s=>{const p=document.documentElement,{darkClassName:d,lightClassName:h}=b;s?w(p,h):w(p,d),R(p,s?d:h)};c(),a(),S1(()=>{r(l.value),_(document.documentElement,{[b.htmlHeight]:`${i.value}px`,[b.htmlWidth]:`${o.value}px`})}),t()},render(){return n("div",{class:"app-style-provider"},null)}}),q1=m({name:"LockScreen",setup(){const[e,{validate:t}]=Q(),l=V1("inputInstRef"),{setLockAppScreen:i}=o1(),{updateSettingState:o}=j(),c=$1({lockCondition:S()}),a=()=>{t().then(()=>{i(!0),o("lockScreenSwitch",!1),C(v.appLockScreenPasswordKey,B1(c.lockCondition.lockPassword),"localStorage"),c.lockCondition=S()})};return x1(()=>{H1(()=>{var r;(r=l.value)==null||r.focus()})}),{...N1(c),lockScreen:a,register:e,inputInstRef:l}},render(){const{register:e}=this;return n("div",{class:"app-lock-screen__content"},[n("div",{class:"app-lock-screen__input"},[n(e1,{avatarSize:52,style:"pointer-events: none;margin: 24px 0;",vertical:!0},null),n(t1,{ref:"formInstRef",model:this.lockCondition,rules:l1,labelPlacement:"left",onRegister:e},{default:()=>[n(y1,{path:"lockPassword"},{default:()=>[n(w1,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":t=>this.lockCondition.lockPassword=t,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:t=>{t.code==="Enter"&&this.lockScreen()},autofocus:!0},null)]}),n(C1,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[P1("锁屏")]})]})])])}}),U1=m({name:"AppLockScreen",setup(){const{updateSettingState:e}=j(),{getLockScreenSwitch:t}=M();return{lockScreenSwitchRef:y({get:()=>t.value,set:i=>{e("lockScreenSwitch",i)}})}},render(){return n(E,{show:this.lockScreenSwitchRef,"onUpdate:show":e=>this.lockScreenSwitchRef=e,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:"dialog",title:"锁定屏幕"},{default:()=>[n(q1,null,null)]})}}),G1=m({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:t}=M();return{getWatermarkSwitch:e,getWatermarkConfig:t}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:t}=this;return t?n(Z1,T(e,{fullscreen:!0}),null):null}}),Y1=m({name:"GlobalSpin",props:{...z1},setup(){const e={opacitySpinning:"0.3"};return{spinValue:i1("globalSpinning"),overrides:e}},render(){return n(k1,T(this.$props,{show:this.spinValue,themeOverrides:this.overrides,style:"height: var(--html-height)"}),{...this.$slots})}});var J1={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^12.0.0",axios:"^1.7.9",clipboard:"^2.0.11","crypto-js":"4.2.0","currency.js":"^2.0.4",dayjs:"^1.11.13",echarts:"^5.5.1","html-to-image":"1.11.11",interactjs:"1.10.27",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.41.0",pinia:"^2.3.0","pinia-plugin-persistedstate":"^4.1.3","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.10","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.4.0","vue3-next-qrcode":"2.0.10"},devDependencies:{"@amap/amap-jsapi-types":"0.0.15","@ant-design/icons-vue":"7.0.1","@commitlint/cli":"19.3.0","@commitlint/config-conventional":"19.2.2","@interactjs/types":"1.10.27","@intlify/unplugin-vue-i18n":"4.0.0","@types/crypto-js":"4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"4.17.12","@types/mockjs":"1.0.10","@types/three":"0.169.0","@typescript-eslint/eslint-plugin":"8.18.2","@typescript-eslint/parser":"8.18.2","@vitejs/plugin-vue":"5.2.1","@vitejs/plugin-vue-jsx":"4.1.1","@vitest/ui":"1.5.2","@vue/eslint-config-prettier":"10.1.0","@vue/eslint-config-typescript":"14.2.0","@vue/test-utils":"2.4.6",autoprefixer:"10.4.20",depcheck:"1.4.7",eslint:"9.11.0","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.2.1","eslint-plugin-vue":"9.32.0",globals:"15.14.0","happy-dom":"14.12.3",husky:"8.0.3","lint-staged":"15.2.2",postcss:"8.4.49","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"3.3.2","rollup-plugin-gzip":"4.0.1",sass:"1.83.0","svg-sprite-loader":"6.0.11",typescript:"5.6.3","unplugin-auto-import":"0.19.0","unplugin-vue-components":"0.28.0",vite:"6.0.7","vite-bundle-analyzer":"0.15.2","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"0.8.4","vite-plugin-mock-dev-server":"1.8.3","vite-plugin-svg-icons":"2.0.1","vite-svg-loader":"5.1.0",vitest:"2.0.5","vue-tsc":"2.2.0"},name:"ray-template",version:"5.0.10"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"}};const K1=m({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=J1,t=Z(v.appVersionProvider,"localStorage"),l=F1(!1),{logout:i}=c1();return t!==null?e!==t&&(l.value=!0,C(v.appVersionProvider,e,"localStorage")):C(v.appVersionProvider,e,"localStorage"),{modalShow:l,logout:i}},render(){const{logout:e}=this;return n("div",{class:"app-style-provider"},[n(E,{show:this.modalShow,"onUpdate:show":t=>this.modalShow=t,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,draggable:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),N=m({name:"App",render(){return n(I1,null,{default:()=>[n(K1,null,null),n(U1,null,null),n(W1,null,null),n(G1,null,null),n(Y1,null,{default:()=>n(Y,null,null),description:()=>a1})]})}});if(typeof window<"u"){let e=function(){var t=document.body,l=document.getElementById("__svg__icons__dom__");l||(l=document.createElementNS("http://www.w3.org/2000/svg","svg"),l.style.position="absolute",l.style.width="0",l.style.height="0",l.id="__svg__icons__dom__",l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),l.innerHTML='',t.insertBefore(l,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const X1=()=>{const{localeLanguage:e}=Z(v.appPiniaSettingStore,"localStorage",{defaultValue:{}}),t=n1[e]||r1;h1.locale(t)},H=(e,t)=>{const l=new D1(e,{text:()=>t});e.$$clipboard=l,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},Q1=()=>({mounted:(e,{value:t})=>{H(e,t)},updated:(e,{value:t,oldValue:l})=>{var i;t!==l&&((i=e.$$clipboard)==null||i.destroy(),H(e,t))},beforeUnmount:e=>{var t;e.$$clipboard&&((t=e.$$clipboard)==null||t.destroy(),e.$$clipboard=null)}}),e2=Object.freeze(Object.defineProperty({__proto__:null,default:Q1},Symbol.toStringTag,{value:"Module"})),t2=()=>{let e,t;return{beforeMount:(l,{value:i})=>{const{func:o,trigger:c="click",wait:a=500,options:r}=i;if(typeof o!="function")throw new TypeError("debounce directive value must be a function");e=T1(o,a,Object.assign({},r)),t=O(l,c,e)},beforeUnmount:(l,{value:i})=>{e&&(e.cancel(),t==null||t()),e=null}}},l2=Object.freeze(Object.defineProperty({__proto__:null,default:t2},Symbol.toStringTag,{value:"Module"})),P=(e,t)=>{if(e){const l="ray-template__directive--disabled";t?(e.setAttribute("disabled","disabled"),R(e,l)):(e.removeAttribute("disabled"),w(e,l)),e==null||e.setAttribute("disabled",t?"disabled":"")}},o2=()=>({mounted:(e,{value:t})=>{P(e,t)},updated:(e,{value:t,oldValue:l})=>{t!==l&&P(e,t)}}),i2=Object.freeze(Object.defineProperty({__proto__:null,default:o2},Symbol.toStringTag,{value:"Module"})),L=(e,t)=>{const{line:l=1,type:i="block",width:o,popoverText:c}=t;if(o==null){console.error(`[v-ellipsis]: Expected width is string or number, but got typeof ${o}!`);return}c&&e.textContent&&e.setAttribute("title",e.textContent),i==="line"?_(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l,overflow:"hidden",width:x(o)}):_(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:x(o)})},c2=()=>({mounted:(e,{value:t})=>{L(e,t)},updated:(e,{value:t})=>{L(e,t)}}),a2=Object.freeze(Object.defineProperty({__proto__:null,default:c2},Symbol.toStringTag,{value:"Module"})),f={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},n2="v-ripple__container";function A(e,t){e.style.transform=t}function F(e){const t={},l=e.currentTarget;!(l!=null&&l.__d_ripple__)||l.__d_ripple__.touched||(t.center=l.__d_ripple__.centered,l.__d_ripple__.class&&(t.class=l.__d_ripple__.class),z.show(e,l,t))}function D(e){const t=e.currentTarget;t!=null&&t.__d_ripple__&&(setTimeout(()=>{t.__d_ripple__&&(t.__d_ripple__.touched=!1)}),z.hide(t))}const r2=(e,t,l={})=>{var u;const i=t.getBoundingClientRect(),o=e.clientX-i.left,c=e.clientY-i.top;let a=0,r=.3;(u=t.__d_ripple__)!=null&&u.circle?(r=.15,a=t.clientWidth/2,a=l.center?a:a+Math.sqrt((o-a)**2+(c-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const s=`${(t.clientWidth-a*2)/2}px`,p=`${(t.clientHeight-a*2)/2}px`,d=l.center?s:`${o-a}px`,h=l.center?p:`${c-a}px`;return{radius:a,scale:r,x:d,y:h,centerX:s,centerY:p}},z={show(e,t,l={}){var g;if(!((g=t==null?void 0:t.__d_ripple__)!=null&&g.enabled))return;const i=document.createElement("span"),o=document.createElement("span");i.appendChild(o),i.className=n2,l.class&&(i.className+=` ${l.class}`);const{radius:c,scale:a,x:r,y:s,centerX:p,centerY:d}=r2(e,t,l),h=`${c*2}px`;o.className=f.vRippleAnimation,o.style.width=h,o.style.height=h,t.appendChild(i);const u=window.getComputedStyle(t);u&&u.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),o.classList.add(f.vRippleAnimationEnter),o.classList.add(f.vRippleAnimationVisible),A(o,`translate(${r}, ${s}) scale3d(${a},${a},${a})`),o.dataset.activated=String(performance.now()),setTimeout(()=>{o.classList.remove(f.vRippleAnimationEnter),o.classList.add(f.vRippleAnimationIn),A(o,`translate(${p}, ${d}) scale3d(1,1,1)`)},0)},hide(e){var c;if(!((c=e==null?void 0:e.__d_ripple__)!=null&&c.enabled))return;const t=e.getElementsByClassName(f.vRippleAnimation);if(t.length===0)return;const l=t[t.length-1];if(l.dataset.isHiding)return;l.dataset.isHiding="true";const i=performance.now()-Number(l.dataset.activated),o=Math.max(250-i,0);setTimeout(()=>{l.classList.remove(f.vRippleAnimationIn),l.classList.add(f.vRippleAnimationOut),setTimeout(()=>{var r;e.getElementsByClassName(f.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((r=l.parentNode)==null?void 0:r.parentNode)===e&&e.removeChild(l.parentNode)},300)},o)}};function I(e){return typeof e>"u"||!!e}function W(e){e.removeEventListener("pointerdown",F),e.removeEventListener("pointerup",D)}function B(e,t,l){const{value:i,modifiers:o}=t,c=I(i);c||z.hide(e),e.__d_ripple__=e.__d_ripple__??{},e.__d_ripple__.enabled=c,e.__d_ripple__.centered=o.center,e.__d_ripple__.circle=o.circle,j1(i,"Object")&&i.class&&(e.__d_ripple__.class=i.class),c&&!l?(e.addEventListener("pointerdown",F),e.addEventListener("pointerup",D)):!c&&l&&W(e)}const s2=()=>({mounted:(e,t)=>{B(e,t,!1)},beforeUnmount:e=>{delete e.__d_ripple__,W(e)},updated:(e,t)=>{if(t.value===t.oldValue)return;const l=I(t.oldValue);B(e,t,l)}}),p2=Object.freeze(Object.defineProperty({__proto__:null,default:s2},Symbol.toStringTag,{value:"Module"})),d2=()=>{let e;return{beforeMount:(t,{value:l})=>{const{func:i,trigger:o="click",wait:c=500,options:a}=l;if(typeof i!="function")throw new TypeError("throttle directive value must be a function");e=O1(i,c,Object.assign({},a)),O(t,o,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},h2=Object.freeze(Object.defineProperty({__proto__:null,default:d2},Symbol.toStringTag,{value:"Module"})),f2=e=>Object.keys(e).reduce((l,i)=>{var c;const o=(c=e[i])==null?void 0:c.default;if(typeof o=="function")return l[i]=o,l;throw new TypeError(`directiveModules: ${i} is not function`)},{}),u2=e=>{const l=f2(Object.assign({"/src/directives/modules/copy/index.ts":e2,"/src/directives/modules/debounce/index.ts":l2,"/src/directives/modules/disabled/index.ts":i2,"/src/directives/modules/ellipsis/index.ts":a2,"/src/directives/modules/ripple/index.ts":p2,"/src/directives/modules/throttle/index.ts":h2})),i=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),o=/^([^-]+-)*[^-]+$/;R1(l,(c,a)=>{var s;const r=(s=a.match(i))==null?void 0:s[0];typeof r=="string"&&o.test(r)?e.directive(r,c()):console.error(`[setupDirectives] ${r} is not a valid directive name`)})},q=async()=>{},U=async e=>{s1(e),await p1(e),d1(e),X1(),u2(e)},m2=async()=>{const e=$(N);await U(e),e.mount("#app"),await q()},v2=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=$(N),await U(e),e.mount("#app"),await q()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?v2():m2(); diff --git a/js/index-DffTdIpf.js.gz b/js/index-DffTdIpf.js.gz deleted file mode 100644 index d8e657b4..00000000 Binary files a/js/index-DffTdIpf.js.gz and /dev/null differ diff --git a/js/index-DhTBLp28.js.gz b/js/index-DhTBLp28.js.gz deleted file mode 100644 index 4431c6fd..00000000 Binary files a/js/index-DhTBLp28.js.gz and /dev/null differ diff --git a/js/index-DhY7Gt5n.js.gz b/js/index-DhY7Gt5n.js.gz deleted file mode 100644 index fb361219..00000000 Binary files a/js/index-DhY7Gt5n.js.gz and /dev/null differ diff --git a/js/index-DiNOalgO.js b/js/index-DiNOalgO.js deleted file mode 100644 index cf98b263..00000000 --- a/js/index-DiNOalgO.js +++ /dev/null @@ -1 +0,0 @@ -import"./hooks-CpaAYtdw.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{s as n,g as l,w as c,E as f}from"./utils-DBF0WsFC.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import{e as i,ai as u,aj as a,M as m,P as o,N as d}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as g,b as e,I as r}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as p}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Be=g({name:"CacheDemo",setup(){const t=p("Ray"),s=p("ray:");return{nameValue:t,currentPrefix:s}},render(){return e(d,{title:"cache 工具包示例"},{default:()=>e(i,{vertical:!0},{default:()=>[e("h3",null,[r("点击 setStorage 按钮,设置缓存示例")]),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置缓存内容")]}),e(m,{value:this.nameValue,"onUpdate:value":t=>this.nameValue=t,placeholder:"请输入姓名"},null)]}),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置前缀")]}),e(m,{value:this.currentPrefix,"onUpdate:value":t=>this.currentPrefix=t,placeholder:"请输入前缀"},null)]})]}),action:()=>e(i,null,{default:()=>[e(o,{onClick:()=>{n("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[r("setStorage")]}),e(o,{onClick:()=>{const t=l("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${t}`)}},{default:()=>[r("getStorage")]}),e(o,{onClick:()=>{c("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[r("removeStorage")]}),e(o,{onClick:()=>{const t=f("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${t}`)}},{default:()=>[r("hasStorage")]})]})})}});export{Be as default}; diff --git a/js/index-DiNOalgO.js.gz b/js/index-DiNOalgO.js.gz deleted file mode 100644 index 36034506..00000000 Binary files a/js/index-DiNOalgO.js.gz and /dev/null differ diff --git a/js/index-Dk76Wg-2.js b/js/index-Dk76Wg-2.js new file mode 100644 index 00000000..8eaf35b0 --- /dev/null +++ b/js/index-Dk76Wg-2.js @@ -0,0 +1 @@ +import"./hooks-Bi_Q9OFa.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{s as n,g as l,w as c,E as f}from"./utils-4asTneEs.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import{e as i,ai as u,aj as a,M as m,P as o,N as d}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as g,b as e,J as r}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as p}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Be=g({name:"CacheDemo",setup(){const t=p("Ray"),s=p("ray:");return{nameValue:t,currentPrefix:s}},render(){return e(d,{title:"cache 工具包示例"},{default:()=>e(i,{vertical:!0},{default:()=>[e("h3",null,[r("点击 setStorage 按钮,设置缓存示例")]),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置缓存内容")]}),e(m,{value:this.nameValue,"onUpdate:value":t=>this.nameValue=t,placeholder:"请输入姓名"},null)]}),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置前缀")]}),e(m,{value:this.currentPrefix,"onUpdate:value":t=>this.currentPrefix=t,placeholder:"请输入前缀"},null)]})]}),action:()=>e(i,null,{default:()=>[e(o,{onClick:()=>{n("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[r("setStorage")]}),e(o,{onClick:()=>{const t=l("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${t}`)}},{default:()=>[r("getStorage")]}),e(o,{onClick:()=>{c("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[r("removeStorage")]}),e(o,{onClick:()=>{const t=f("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${t}`)}},{default:()=>[r("hasStorage")]})]})})}});export{Be as default}; diff --git a/js/index-Dk76Wg-2.js.gz b/js/index-Dk76Wg-2.js.gz new file mode 100644 index 00000000..dec3c792 Binary files /dev/null and b/js/index-Dk76Wg-2.js.gz differ diff --git a/js/index-DhTBLp28.js b/js/index-DmIHrKCj.js similarity index 64% rename from js/index-DhTBLp28.js rename to js/index-DmIHrKCj.js index f5f2fe65..99d1ca37 100644 --- a/js/index-DhTBLp28.js +++ b/js/index-DmIHrKCj.js @@ -1 +1 @@ -import{l as r,b as u,I as t}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{N as e,e as o}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const y=r({name:"RouterDemoDetail",render(){return u(o,null,{default:()=>[u(e,{title:this.$route.query.name||"hello"},{default:()=>[t("你好 "),this.$route.query.name]}),u(e,{title:"平层路由详情页面"},{default:()=>[t("我是平层路由详情页面")]}),u(e,{title:"TIP"},{default:()=>[u("h2",null,[t("1. 可以点击面包屑或者菜单返回到主页面")]),u("h2",null,[t("2. 如果这个页面需要配置多个详情页面,只需将该路由所在的 children 中,将所需页面配置为 sameLevel 即可。")])]})]})}});export{y as default}; +import{m as r,b as u,J as t}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{N as e,e as o}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const y=r({name:"RouterDemoDetail",render(){return u(o,null,{default:()=>[u(e,{title:this.$route.query.name||"hello"},{default:()=>[t("你好 "),this.$route.query.name]}),u(e,{title:"平层路由详情页面"},{default:()=>[t("我是平层路由详情页面")]}),u(e,{title:"TIP"},{default:()=>[u("h2",null,[t("1. 可以点击面包屑或者菜单返回到主页面")]),u("h2",null,[t("2. 如果这个页面需要配置多个详情页面,只需将该路由所在的 children 中,将所需页面配置为 sameLevel 即可。")])]})]})}});export{y as default}; diff --git a/js/index-DmIHrKCj.js.gz b/js/index-DmIHrKCj.js.gz new file mode 100644 index 00000000..f3cd9dec Binary files /dev/null and b/js/index-DmIHrKCj.js.gz differ diff --git a/js/index-DnDhmFC3.js.gz b/js/index-DnDhmFC3.js.gz deleted file mode 100644 index 345c4cb3..00000000 Binary files a/js/index-DnDhmFC3.js.gz and /dev/null differ diff --git a/js/index-HHvg0jl-.js b/js/index-HHvg0jl-.js deleted file mode 100644 index a5c41482..00000000 --- a/js/index-HHvg0jl-.js +++ /dev/null @@ -1 +0,0 @@ -import{U as p}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import{u as a}from"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{P as n,e}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as u,b as o,I as s}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as l}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const ft=u({name:"RouterDemoHome",setup(){const r=a(),i=l([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:t=>o(e,{align:"center"},{default:()=>[o(n,{type:"info",text:!0,size:"tiny",onClick:()=>{r.push({path:"/router-demo/router-demo-detail",query:{name:t.name}})}},{default:()=>[s("详情")]})]})}]),m=[];for(let t=0;t<10;t++)m.push({name:"张三"+t,address:"New York No. 1 Lake Park",phone:"010-121212",key:t});return{dataSource:m,columns:i}},render(){return o(e,null,{default:()=>[o(p,{columns:this.columns,"onUpdate:columns":r=>this.columns=r,data:this.dataSource},null)]})}});export{ft as default}; diff --git a/js/index-HHvg0jl-.js.gz b/js/index-HHvg0jl-.js.gz deleted file mode 100644 index e19a41f0..00000000 Binary files a/js/index-HHvg0jl-.js.gz and /dev/null differ diff --git a/js/index-K_RkB5nU.js.gz b/js/index-K_RkB5nU.js.gz deleted file mode 100644 index 414d26c3..00000000 Binary files a/js/index-K_RkB5nU.js.gz and /dev/null differ diff --git a/js/index-NT6CxTG0.js b/js/index-NT6CxTG0.js new file mode 100644 index 00000000..49e50a00 --- /dev/null +++ b/js/index-NT6CxTG0.js @@ -0,0 +1 @@ +import{N as r,O as A}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{N as u,e as h,P as i,J as C}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as O,b as t,J as e}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as g,e as L,x as V}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Rt=O({name:"REchart",setup(){const[n,{getChartInstance:f,dispose:l,render:d,isDisposed:p}]=A(),[m,{getChartInstance:o,dispose:F,render:y,isDisposed:B}]=A(),b=g(!1),E=g(!1),s=L({loading:!1,loading1:!1}),D={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},k={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},c=g({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),v=a=>{s.loading=a},w=a=>{E.value=a},S=()=>{p()?d():window.$message.warning("图表已渲染~")},x=()=>{l()},T=()=>{s.loading1=!0;const a=()=>Math.floor((Math.random()+1)*100);setTimeout(()=>{c.value.series[0].data=new Array(7).fill(0).map(()=>a()),c.value.series[1].data=new Array(7).fill(0).map(()=>a()),s.loading1=!1},1e3)};return{baseOptions:D,chartLoading:b,handleLoadingShow:v,chartAria:E,handleAriaShow:w,basePieOptions:k,baseLineOptions:c,...V(s),mountChart:S,unmountChart:x,updateChartOptions:T,register:n,register2:m,dispose2:F,render2:y,isDisposed2:B}},render(){const{register:n,register2:f,dispose2:l,render2:d,isDisposed2:p,loading1:m}=this;return t("div",{class:"echart"},[t(u,{title:"chart 组件"},{default:()=>[t("h3",null,[e("该组件基于 ECharts, Vueuse 封装。默认做了最佳的优化封装实践。")]),t("h3",null,[e("开箱即用的优化策略:节流更新图表、异步渲染、自动销毁、贴花、加载、主题、视窗区域渲染、自动更新尺寸等高级特性。")])]}),t(u,{title:"预设 card 风格图表"},{default:()=>[t(h,{style:["padding: 18px 0"]},{default:()=>[t(i,{onClick:this.mountChart.bind(this)},{default:()=>[e("渲染")]}),t(i,{onClick:this.unmountChart.bind(this)},{default:()=>[e("卸载")]}),t(i,{onClick:this.updateChartOptions.bind(this)},{default:()=>[e("更新配置项")]}),t(i,{onClick:()=>{this.loading1=!this.loading1}},{default:()=>[`${this.loading1?"关闭":"开启"}`,e("加载动画")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:n,title:"周销售量",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card",loading:m},null)])]}),t(u,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[t(h,{vertical:!0},{default:()=>[t(h,null,{default:()=>[t(i,{onClick:()=>{p()?d():window.$message.warning("不可以重复渲染图表~")}},{default:()=>[e("渲染")]}),t(i,{onClick:l.bind(this)},{default:()=>[e("卸载")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:f,autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]})]}),t(u,{title:"加载动画"},{default:()=>[t(C,{value:this.chartLoading,"onUpdate:value":o=>this.chartLoading=o,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),t("div",{class:"chart--container"},[t(r,{loading:this.loading,options:this.baseOptions},null)])]}),t(u,{title:"贴画可视化图"},{default:()=>[t(C,{value:this.chartAria,"onUpdate:value":o=>this.chartAria=o,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),t("div",{class:"chart--container"},[t(r,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{Rt as default}; diff --git a/js/index-NT6CxTG0.js.gz b/js/index-NT6CxTG0.js.gz new file mode 100644 index 00000000..487b7909 Binary files /dev/null and b/js/index-NT6CxTG0.js.gz differ diff --git a/js/index-Qtv2dC6e.js b/js/index-Qtv2dC6e.js deleted file mode 100644 index 181bd5d1..00000000 --- a/js/index-Qtv2dC6e.js +++ /dev/null @@ -1 +0,0 @@ -import{N as r,O as A}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{N as u,e as h,P as i,J as C}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as O,b as t,I as e}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as g,e as L,x as V}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Rt=O({name:"REchart",setup(){const[n,{getChartInstance:f,dispose:l,render:d,isDisposed:p}]=A(),[m,{getChartInstance:o,dispose:F,render:y,isDisposed:B}]=A(),b=g(!1),E=g(!1),s=L({loading:!1,loading1:!1}),D={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},k={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},c=g({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),v=a=>{s.loading=a},w=a=>{E.value=a},S=()=>{p()?d():window.$message.warning("图表已渲染~")},x=()=>{l()},T=()=>{s.loading1=!0;const a=()=>Math.floor((Math.random()+1)*100);setTimeout(()=>{c.value.series[0].data=new Array(7).fill(0).map(()=>a()),c.value.series[1].data=new Array(7).fill(0).map(()=>a()),s.loading1=!1},1e3)};return{baseOptions:D,chartLoading:b,handleLoadingShow:v,chartAria:E,handleAriaShow:w,basePieOptions:k,baseLineOptions:c,...V(s),mountChart:S,unmountChart:x,updateChartOptions:T,register:n,register2:m,dispose2:F,render2:y,isDisposed2:B}},render(){const{register:n,register2:f,dispose2:l,render2:d,isDisposed2:p,loading1:m}=this;return t("div",{class:"echart"},[t(u,{title:"chart 组件"},{default:()=>[t("h3",null,[e("该组件基于 ECharts, Vueuse 封装。默认做了最佳的优化封装实践。")]),t("h3",null,[e("开箱即用的优化策略:节流更新图表、异步渲染、自动销毁、贴花、加载、主题、视窗区域渲染、自动更新尺寸等高级特性。")])]}),t(u,{title:"预设 card 风格图表"},{default:()=>[t(h,{style:["padding: 18px 0"]},{default:()=>[t(i,{onClick:this.mountChart.bind(this)},{default:()=>[e("渲染")]}),t(i,{onClick:this.unmountChart.bind(this)},{default:()=>[e("卸载")]}),t(i,{onClick:this.updateChartOptions.bind(this)},{default:()=>[e("更新配置项")]}),t(i,{onClick:()=>{this.loading1=!this.loading1}},{default:()=>[`${this.loading1?"关闭":"开启"}`,e("加载动画")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:n,title:"周销售量",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card",loading:m},null)])]}),t(u,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[t(h,{vertical:!0},{default:()=>[t(h,null,{default:()=>[t(i,{onClick:()=>{p()?d():window.$message.warning("不可以重复渲染图表~")}},{default:()=>[e("渲染")]}),t(i,{onClick:l.bind(this)},{default:()=>[e("卸载")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:f,autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]})]}),t(u,{title:"加载动画"},{default:()=>[t(C,{value:this.chartLoading,"onUpdate:value":o=>this.chartLoading=o,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),t("div",{class:"chart--container"},[t(r,{loading:this.loading,options:this.baseOptions},null)])]}),t(u,{title:"贴画可视化图"},{default:()=>[t(C,{value:this.chartAria,"onUpdate:value":o=>this.chartAria=o,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),t("div",{class:"chart--container"},[t(r,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{Rt as default}; diff --git a/js/index-Qtv2dC6e.js.gz b/js/index-Qtv2dC6e.js.gz deleted file mode 100644 index b4c41f47..00000000 Binary files a/js/index-Qtv2dC6e.js.gz and /dev/null differ diff --git a/js/index-RcBdBfte.js b/js/index-RcBdBfte.js new file mode 100644 index 00000000..e82f91c5 --- /dev/null +++ b/js/index-RcBdBfte.js @@ -0,0 +1 @@ +import{i as f,R as h}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{a as v,ag as r,M as l,K as F,ak as b,al as y,am as s,e as N,P as m}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as k,b as t,J as i}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as d}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Bt=k({name:"RFormDemo",setup(){const[u,{getFormInstance:p,validate:o,restoreValidation:n,formModel:a,formRules:e}]=f({name:null,age:null,gender:null,date:null,remark:null},{name:{required:!0,message:"请输入姓名",trigger:["blur","change"]},date:{required:!0,message:"请选择日期",trigger:["blur","change"],type:"number"},gender:{required:!0,message:"请选择性别",trigger:"change"},age:{required:!0,message:"请输入年龄",trigger:["blur","change"],type:"number"}}),g=d(e()),c=d(a());return{register:u,rules:g,condition:c,restoreValidation:n,formModel:a,validate:o}},render(){const{rules:u}=this,{register:p,restoreValidation:o,formModel:n,validate:a}=this;return t(h,{onRegister:p,rules:u,model:this.condition},{default:()=>[t(v,{cols:24,xGap:24},{default:()=>[t(r,{label:"姓名",path:"name",span:12},{default:()=>[t(l,{value:this.condition.name,"onUpdate:value":e=>this.condition.name=e},null)]}),t(r,{label:"年龄",path:"age",span:12},{default:()=>[t(F,{value:this.condition.age,"onUpdate:value":e=>this.condition.age=e,showButton:!1,style:"width: 100%"},null)]}),t(r,{label:"出生日期",path:"date",span:12},{default:()=>[t(b,{value:this.condition.date,"onUpdate:value":e=>this.condition.date=e,style:"width: 100%"},null)]}),t(r,{label:"性别",path:"gender",span:12},{default:()=>[t(y,{value:this.condition.gender,"onUpdate:value":e=>this.condition.gender=e},{default:()=>[t(s,{value:"girl"},{default:()=>[i("女")]}),t(s,{value:"man"},{default:()=>[i("男")]})]})]}),t(r,{label:"备注信息",span:24},{default:()=>[t(l,{type:"textarea",value:this.condition.remark,"onUpdate:value":e=>this.condition.remark=e},null)]}),t(r,{span:24},{default:()=>[t(N,{justify:"flex-end",style:"width: 100%"},{default:()=>[t(m,{type:"info",onClick:()=>{this.condition=n(),o()}},{default:()=>[i("重置表单为初始状态")]}),t(m,{type:"warning",onClick:o.bind(this)},{default:()=>[i("移除校验状态")]}),t(m,{type:"primary",onClick:()=>a()},{default:()=>[i("校验")]})]})]})]})]})}});export{Bt as default}; diff --git a/js/index-RcBdBfte.js.gz b/js/index-RcBdBfte.js.gz new file mode 100644 index 00000000..f6025ddf Binary files /dev/null and b/js/index-RcBdBfte.js.gz differ diff --git a/js/index-DnDhmFC3.js b/js/index-VfNFmfqJ.js similarity index 50% rename from js/index-DnDhmFC3.js rename to js/index-VfNFmfqJ.js index 9a13e6ba..74a79482 100644 --- a/js/index-DnDhmFC3.js +++ b/js/index-VfNFmfqJ.js @@ -1 +1 @@ -import{l as o,b as r,I as e}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as p}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{M as i}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const k=o({name:"SubMenuOther",setup(){return{inputValue:p(null)}},render(){return r("div",null,[e("多级菜单-2-1"),r(i,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{k as default}; +import{m as o,b as r,J as e}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as p}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{M as i}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const v=o({name:"SubMenuOther",setup(){return{inputValue:p(null)}},render(){return r("div",null,[e("多级菜单-2-1"),r(i,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{v as default}; diff --git a/js/index-VfNFmfqJ.js.gz b/js/index-VfNFmfqJ.js.gz new file mode 100644 index 00000000..e6b6aa6e Binary files /dev/null and b/js/index-VfNFmfqJ.js.gz differ diff --git a/js/index-Zn8uDOa9.js b/js/index-Zn8uDOa9.js new file mode 100644 index 00000000..251f1686 --- /dev/null +++ b/js/index-Zn8uDOa9.js @@ -0,0 +1 @@ +import{z as s}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{A as d}from"./index-BFJAvh0j.js";import{N as i,ac as f,ad as c,ae as n,af as E,e as a,w as p,O as b}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as F,b as t,J as u,q as C,p as A}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";function m(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!C(o)}const ht=F({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>t(a,null,{default:()=>[t(p,{type:"success"},{default:()=>[u("Vue3.x")]}),t(p,{type:"info"},{default:()=>[u("React")]})]})},{label:"从事搬砖时长",des:()=>t(a,null,{default:()=>[t(p,{type:"success"},{default:()=>[u("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>t(a,{align:"center"},{default:()=>[t(s,{name:"ray",size:"22"},null),u("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>t(a,{align:"center"},{default:()=>[u("如果有希望补充的功能可以在"),t(b,A({as:"a",class:"dashboard-link",type:"primary"},{href:"https://github.com/XiaoDaiGua-Ray/ray-template/issues"}),{default:()=>[u("GitHub")]}),u("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let o,l;return t(a,{vertical:!0},{default:()=>[t(i,null,{header:()=>t(s,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),t(i,{title:"个人介绍"},{default:()=>[t(f,{bordered:!0,labelPlacement:"left",column:2},m(o=this.coverLetterOptions.map(e=>{let r;return t(c,{key:e.label,label:e.label,span:e==null?void 0:e.span},m(r=e.des())?r:{default:()=>[r]})}))?o:{default:()=>[o]})]}),t(i,{title:"项目介绍"},{default:()=>[t(n,null,{default:()=>[u("技术栈")]}),t(E,null,{default:()=>[t(a,null,m(l=this.technologyTagOptions.map(e=>t(p,{key:e.value,type:"info"},{default:()=>[e.label]})))?l:{default:()=>[l]})]}),t(n,null,{default:()=>[u("项目介绍")]}),t(E,null,{default:()=>[u("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),t(i,{title:"友情链接"},{default:()=>[t(d,null,null)]})]})}});export{ht as default}; diff --git a/js/index-Zn8uDOa9.js.gz b/js/index-Zn8uDOa9.js.gz new file mode 100644 index 00000000..9dd20531 Binary files /dev/null and b/js/index-Zn8uDOa9.js.gz differ diff --git a/js/index-_CcPe96W.js.gz b/js/index-_CcPe96W.js.gz deleted file mode 100644 index 8c48abba..00000000 Binary files a/js/index-_CcPe96W.js.gz and /dev/null differ diff --git a/js/index-K_RkB5nU.js b/js/index-e7_TArrI.js similarity index 89% rename from js/index-K_RkB5nU.js rename to js/index-e7_TArrI.js index 407ef7ee..dfb975e4 100644 --- a/js/index-K_RkB5nU.js +++ b/js/index-e7_TArrI.js @@ -1 +1 @@ -import{l as f,b as u,I as e,N as t,V as l}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{N as i,e as a,ah as r,w as s,P as n,K as B,ai as p,M as d,J as E,r as m,I as h}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{e as v,k as A,x as b}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const M=f({name:"RDirective",setup(){const F=v({copyValueOne:"我是待复制内容区域一",copyValueTwo:"我是待复制内容区域二",throttleBtnClickCount:0,debounceBtnClickCount:0,disabledValue:!1}),C=A(2),o=c=>{F[c]++};return{...b(F),updateDemoValue:o,ellipsisLineClamp:C}},render(){return u(a,null,{default:()=>[u(i,{title:"指令"},{default:()=>[e("该页面展示如何使用已封装好的指令")]}),u(i,{title:"水波纹"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(r,{title:"modifiers",type:"info"},{default:()=>[e("你可以手动显示的声明水波纹效果,默认为 circle。你可以手动的声明为 center。")]}),u(r,{title:"vue template",type:"success"},{default:()=>[e('"v-ripple.center" 或者 "v-ripple.circle"。')]}),u(r,{title:"tsx",type:"success"},{default:()=>[JSON.stringify("v-ripple={[true, ['center']]}"),e(" 或者"),JSON.stringify("v-ripple={[true, ['circle']]}"),e("。")]}),u(a,null,{default:()=>[t(u(s,{type:"success",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(s,{type:"warning",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(s,{type:"error",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(n,{type:"info"},{default:()=>[e("水波纹效果的Button")]}),[[l("ripple")]]),t(u("div",{style:"height: 20px; line-height: 20px;text-align: center; border: 1px solid; padding: 6px;"},[e("原生元素绑定水波纹效果,并且手动绑定 modifiers 为 center")]),[[l("ripple"),!0,void 0,{center:!0}]])]})]})]}),u(i,{title:"文本省略"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(i,{title:"单行省略"},{default:()=>[t(u("div",null,[e("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[l("ellipsis"),{type:"block",width:"100px"}]])]}),u(i,{title:"多行省略"},{default:()=>[u(a,{vertical:!0,size:"large"},{default:()=>[u(r,{title:"注意",type:"warning"},{default:()=>[e("该方法基于非标准属性实现(-webkit-line-clamp),可能会有兼容性问题,所以请谨慎使用。 详情参考:"),u("a",{href:"https://caniuse.com/?search=line-clamp"},[e("can i use")])]}),t(u("div",null,[e("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[l("ellipsis"),{type:"line",width:"100px",line:this.ellipsisLineClamp}]]),u(B,{value:this.ellipsisLineClamp,"onUpdate:value":F=>this.ellipsisLineClamp=F,min:1},null)]})]})]})]}),u(i,{title:"文本复制示例一"},{default:()=>[u(p,null,{default:()=>[u(d,{value:this.copyValueOne,"onUpdate:value":F=>this.copyValueOne=F},null),t(u(n,null,{default:()=>[e("复制")]}),[[l("copy"),this.copyValueOne]])]})]}),u(i,{title:"文本复制示例二"},{default:()=>[u(p,null,{default:()=>[u(d,{value:this.copyValueTwo,"onUpdate:value":F=>this.copyValueTwo=F},null),t(u(n,null,{default:()=>[e("复制")]}),[[l("copy"),this.copyValueTwo]])]})]}),u(i,{title:"节流"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u(n,null,{default:()=>[e("点击执行")]}),[[l("throttle"),{func:this.updateDemoValue.bind(null,"throttleBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),u("p",null,[e("我执行了"),this.throttleBtnClickCount,e("次")]),u("p",null,[e("该方法 3s 内仅会执行一次")])]})]}),u(i,{title:"防抖"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u(n,null,{default:()=>[e("点击执行")]}),[[l("debounce"),{func:this.updateDemoValue.bind(null,"debounceBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),u("p",null,[e("我执行了"),this.debounceBtnClickCount,e("次")]),u("p",null,[e("该方法将延迟 3s 执行")])]})]}),u(i,{title:"禁用"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(E,{value:this.disabledValue,"onUpdate:value":F=>this.disabledValue=F},{checked:()=>"取消",unchecked:()=>"禁用"}),u(i,{title:"描述"},{default:()=>[u("p",null,[e("该指令会强制禁用(通过 css 层面)禁用元素交互。但是 naive ui 组件提供了完整的 disabled 属性,所以在组件库有禁用需求时,直接调用组件库 disabled 属性即可。但是值得注意的是,该指令优先级最高,会覆盖组件 disabled 属性。")])]}),u(i,{title:"原生表单"},{default:()=>[t(u("form",null,[u("input",{type:"text",placeholder:"请输入"},null),u("button",null,[e("提交")])]),[[l("disabled"),this.disabledValue]])]}),u(i,{title:"文本内容"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u("p",null,[e("我是可以被禁用的文本内容")]),[[l("disabled"),this.disabledValue]])]})]}),u(i,{title:"naive 组件"},{default:()=>[u(a,{vertical:!0,justify:"start"},{default:()=>[t(u(m,null,{default:()=>[u(h,null,{default:()=>[u(d,null,null)]})]}),[[l("disabled"),this.disabledValue]]),t(u(n,null,{default:()=>[e("按钮")]}),[[l("disabled"),this.disabledValue]]),t(u(E,null,null),[[l("disabled"),this.disabledValue]])]})]})]})]})]})}});export{M as default}; +import{m as f,b as u,J as e,O as t,V as l}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{N as i,e as a,ah as r,w as s,P as n,K as B,ai as p,M as d,J as E,r as m,I as h}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{e as v,k as A,x as b}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const M=f({name:"RDirective",setup(){const F=v({copyValueOne:"我是待复制内容区域一",copyValueTwo:"我是待复制内容区域二",throttleBtnClickCount:0,debounceBtnClickCount:0,disabledValue:!1}),C=A(2),o=c=>{F[c]++};return{...b(F),updateDemoValue:o,ellipsisLineClamp:C}},render(){return u(a,null,{default:()=>[u(i,{title:"指令"},{default:()=>[e("该页面展示如何使用已封装好的指令")]}),u(i,{title:"水波纹"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(r,{title:"modifiers",type:"info"},{default:()=>[e("你可以手动显示的声明水波纹效果,默认为 circle。你可以手动的声明为 center。")]}),u(r,{title:"vue template",type:"success"},{default:()=>[e('"v-ripple.center" 或者 "v-ripple.circle"。')]}),u(r,{title:"tsx",type:"success"},{default:()=>[JSON.stringify("v-ripple={[true, ['center']]}"),e(" 或者"),JSON.stringify("v-ripple={[true, ['circle']]}"),e("。")]}),u(a,null,{default:()=>[t(u(s,{type:"success",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(s,{type:"warning",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(s,{type:"error",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(n,{type:"info"},{default:()=>[e("水波纹效果的Button")]}),[[l("ripple")]]),t(u("div",{style:"height: 20px; line-height: 20px;text-align: center; border: 1px solid; padding: 6px;"},[e("原生元素绑定水波纹效果,并且手动绑定 modifiers 为 center")]),[[l("ripple"),!0,void 0,{center:!0}]])]})]})]}),u(i,{title:"文本省略"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(i,{title:"单行省略"},{default:()=>[t(u("div",null,[e("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[l("ellipsis"),{type:"block",width:"100px"}]])]}),u(i,{title:"多行省略"},{default:()=>[u(a,{vertical:!0,size:"large"},{default:()=>[u(r,{title:"注意",type:"warning"},{default:()=>[e("该方法基于非标准属性实现(-webkit-line-clamp),可能会有兼容性问题,所以请谨慎使用。 详情参考:"),u("a",{href:"https://caniuse.com/?search=line-clamp"},[e("can i use")])]}),t(u("div",null,[e("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[l("ellipsis"),{type:"line",width:"100px",line:this.ellipsisLineClamp}]]),u(B,{value:this.ellipsisLineClamp,"onUpdate:value":F=>this.ellipsisLineClamp=F,min:1},null)]})]})]})]}),u(i,{title:"文本复制示例一"},{default:()=>[u(p,null,{default:()=>[u(d,{value:this.copyValueOne,"onUpdate:value":F=>this.copyValueOne=F},null),t(u(n,null,{default:()=>[e("复制")]}),[[l("copy"),this.copyValueOne]])]})]}),u(i,{title:"文本复制示例二"},{default:()=>[u(p,null,{default:()=>[u(d,{value:this.copyValueTwo,"onUpdate:value":F=>this.copyValueTwo=F},null),t(u(n,null,{default:()=>[e("复制")]}),[[l("copy"),this.copyValueTwo]])]})]}),u(i,{title:"节流"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u(n,null,{default:()=>[e("点击执行")]}),[[l("throttle"),{func:this.updateDemoValue.bind(null,"throttleBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),u("p",null,[e("我执行了"),this.throttleBtnClickCount,e("次")]),u("p",null,[e("该方法 3s 内仅会执行一次")])]})]}),u(i,{title:"防抖"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u(n,null,{default:()=>[e("点击执行")]}),[[l("debounce"),{func:this.updateDemoValue.bind(null,"debounceBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),u("p",null,[e("我执行了"),this.debounceBtnClickCount,e("次")]),u("p",null,[e("该方法将延迟 3s 执行")])]})]}),u(i,{title:"禁用"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(E,{value:this.disabledValue,"onUpdate:value":F=>this.disabledValue=F},{checked:()=>"取消",unchecked:()=>"禁用"}),u(i,{title:"描述"},{default:()=>[u("p",null,[e("该指令会强制禁用(通过 css 层面)禁用元素交互。但是 naive ui 组件提供了完整的 disabled 属性,所以在组件库有禁用需求时,直接调用组件库 disabled 属性即可。但是值得注意的是,该指令优先级最高,会覆盖组件 disabled 属性。")])]}),u(i,{title:"原生表单"},{default:()=>[t(u("form",null,[u("input",{type:"text",placeholder:"请输入"},null),u("button",null,[e("提交")])]),[[l("disabled"),this.disabledValue]])]}),u(i,{title:"文本内容"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u("p",null,[e("我是可以被禁用的文本内容")]),[[l("disabled"),this.disabledValue]])]})]}),u(i,{title:"naive 组件"},{default:()=>[u(a,{vertical:!0,justify:"start"},{default:()=>[t(u(m,null,{default:()=>[u(h,null,{default:()=>[u(d,null,null)]})]}),[[l("disabled"),this.disabledValue]]),t(u(n,null,{default:()=>[e("按钮")]}),[[l("disabled"),this.disabledValue]]),t(u(E,null,null),[[l("disabled"),this.disabledValue]])]})]})]})]})]})}});export{M as default}; diff --git a/js/index-e7_TArrI.js.gz b/js/index-e7_TArrI.js.gz new file mode 100644 index 00000000..7e19d390 Binary files /dev/null and b/js/index-e7_TArrI.js.gz differ diff --git a/js/index-ixFMLUoT.js b/js/index-ixFMLUoT.js deleted file mode 100644 index 84308d1f..00000000 --- a/js/index-ixFMLUoT.js +++ /dev/null @@ -1 +0,0 @@ -import{V as F,n as a}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{N as e,e as d,P as o}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as p,b as u,I as t}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{e as s,x as E}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Au=p({name:"ModalDemo",setup(){const l=s({modal1:!1,modal2:!1,modal3:!1}),{create:i}=F(),r=()=>{i({title:"卡片模态框",draggable:!0,preset:"card",content:()=>u("div",{style:"height: 3000px;"},[t("我可以被拖拽的全屏card模态框")]),fullscreen:!0})},m=()=>{i({title:"模态框",content:"内容",preset:"dialog",draggable:!0})};return{...E(l),createCardModal:r,createDialogModal:m}},render(){const{createCardModal:l,createDialogModal:i}=this;return u(d,{vertical:!0},{default:()=>[u(e,{title:"props"},{default:()=>[u(d,{vertical:!0},{default:()=>[u("h3",null,[t("fullscreen: 全屏模态框。")])]})]}),u(a,{show:this.modal1,"onUpdate:show":r=>this.modal1=r,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[u("div",{style:"height: 3000px;"},[t("我可以被拖拽的全屏card模态框")])]}),u(a,{show:this.modal2,"onUpdate:show":r=>this.modal2=r,preset:"card",title:"可拖拽卡片模态框",draggable:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(a,{show:this.modal3,"onUpdate:show":r=>this.modal3=r,preset:"dialog",title:"可拖拽卡片模态框",draggable:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(e,{title:"可拖拽模态框"},{default:()=>[u(o,{onClick:()=>this.modal2=!0},{default:()=>[t("卡片模态框")]}),u(o,{onClick:()=>this.modal3=!0},{default:()=>[t("对话框模态框")]})]}),u(e,{title:"全屏模态框"},{default:()=>[u(d,{vertical:!0},{default:()=>[u("h4",null,[t("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),u(o,{onClick:()=>this.modal1=!0},{default:()=>[t("打开")]})]})]}),u(e,{title:"手动设置宽度"},{default:()=>[u("h4",null,[t("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),u("h4",null,[t("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),u("h4",null,[t("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),u("h4",null,[t("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),u(e,{title:"重写 useModal"},{default:()=>[u(o,{onClick:l.bind(this)},{default:()=>[t("创建卡片模态框")]}),u(o,{onClick:i.bind(this)},{default:()=>[t("创建对话框模态框")]})]})]})}});export{Au as default}; diff --git a/js/index-ixFMLUoT.js.gz b/js/index-ixFMLUoT.js.gz deleted file mode 100644 index f3096958..00000000 Binary files a/js/index-ixFMLUoT.js.gz and /dev/null differ diff --git a/js/index-j667e7uE.js.gz b/js/index-j667e7uE.js.gz deleted file mode 100644 index 1a749ed4..00000000 Binary files a/js/index-j667e7uE.js.gz and /dev/null differ diff --git a/js/index-p9rF2sQs.js b/js/index-p9rF2sQs.js new file mode 100644 index 00000000..06faa8fe --- /dev/null +++ b/js/index-p9rF2sQs.js @@ -0,0 +1 @@ +import{P as r}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{m as i,b as t}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{N as o,e as m}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const ut=i({name:"IframeDemo",setup(){return{}},render(){return t(m,{vertical:!0,size:[20,20]},{default:()=>[t(o,{title:"naive ui(延迟加载)"},{default:()=>[t(r,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),t(o,{title:"vue-hooks-plus(立即加载)"},{default:()=>[t(r,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{ut as default}; diff --git a/js/index-p9rF2sQs.js.gz b/js/index-p9rF2sQs.js.gz new file mode 100644 index 00000000..2e01dcba Binary files /dev/null and b/js/index-p9rF2sQs.js.gz differ diff --git a/js/index-rt4PH3zE.js b/js/index-rt4PH3zE.js deleted file mode 100644 index b8d8f3a1..00000000 --- a/js/index-rt4PH3zE.js +++ /dev/null @@ -1 +0,0 @@ -import{C as u,e as s}from"./hooks-CpaAYtdw.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{u as a}from"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import{ab as n,W as l,e as c,P as p}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as m,b as t,m as d,I as e}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const f=m({name:"PageResult",props:{...n},setup(){const{replace:r}=a();return{goBack:()=>{var i;const{getAppRootRoute:o}=s();(i=o.value)!=null&&i.path&&r(o.value.path)}}},render(){const{goBack:r}=this;return t("div",{class:"error-page"},[t(l,d(this.$props,{status:"500",title:"404 资源不存在",description:"小调皮你走错地方了"}),{...this.$slots,footer:()=>t(c,{align:"center",justify:"center"},{default:()=>[t(p,{onClick:u.bind(this,!0)},{default:()=>[e("返回首页")]}),t(p,{type:"primary",onClick:r.bind(this)},{default:()=>[e("返回上一页面")]})]})})])}}),Dt=m({name:"ErrorPage404",setup(){return{}},render(){return t(f,{status:"404"},null)}});export{Dt as default}; diff --git a/js/index-rt4PH3zE.js.gz b/js/index-rt4PH3zE.js.gz deleted file mode 100644 index fe695ee9..00000000 Binary files a/js/index-rt4PH3zE.js.gz and /dev/null differ diff --git a/js/index-u-mxvDv8.js b/js/index-u-mxvDv8.js new file mode 100644 index 00000000..5da356ae --- /dev/null +++ b/js/index-u-mxvDv8.js @@ -0,0 +1 @@ +import{R as J}from"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import{e as M,M as Y,g as K,f as v,G as b,h as X,i as Q,j,k as S,l as e1,R as t1,r as l1,m as o1,n as E,o as i1,p as c1,q as a1,D as n1,s as r1,t as s1,v as p1,w as d1}from"./hooks-Bi_Q9OFa.js";import{d as h1}from"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import{a0 as f1,a1 as u1,a2 as m1,a3 as v1,a4 as g1,a5 as b1,a6 as V,a7 as _1,a8 as M1,I as y1,M as w1,P as C1,a9 as Z1,aa as z1,h as k1}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m,f as y,b as n,j as S1,t as V1,l as x1,n as H1,J as P1,p as T}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{f as A1,u as O}from"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import{g as Z,c as L1,b as _,y as w,n as R,s as C,D as B1,d as x,i as j1}from"./utils-4asTneEs.js";import{g as E1,o as T1,q as O1,A as R1}from"./lodash-es@4.17.21-BbYRMHep.js";import{e as $1,x as N1,k as F1}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./vue3-next-qrcode@2.0.10_typescript@5.6.3-wzrC7cBz.js";import{C as D1}from"./clipboard@2.0.11-L0nEBxcf.js";import{c as $}from"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const a of c.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function l(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(o){if(o.ep)return;o.ep=!0;const c=l(o);fetch(o.href,c)}})();const I1=m({name:"GlobalProvider",setup(e,{expose:t}){const{getPrimaryColorOverride:l,getAppTheme:i,getLocaleLanguage:o}=M(),c=y(()=>{const r=o.value;return K(r)}),a=()=>{const{message:r,notification:s,dialog:p,loadingBar:d}=M1(["message","dialog","notification","loadingBar"],{configProviderProps:y(()=>({theme:i.value?V:null}))});window.$dialog=p,window.$message=r,window.$loadingBar=d,window.$notification=s};return t(),{getPrimaryColorOverride:l,localePackage:c,getAppTheme:i,discreteApi:a}},render(){const{$slots:{default:e},discreteApi:t}=this,{getPrimaryColorOverride:l,getAppTheme:i,localePackage:o}=this;return n(_1,{themeOverrides:l,theme:i?V:null,locale:o.locale,dateLocale:o.dateLocal},{default:()=>[n(f1,null,{default:()=>[n(u1,Y,{default:()=>[n(m1,null,{default:()=>[n(v1,null,{default:()=>[n(g1,null,{default:()=>[n(b1,null,null),e==null?void 0:e(),t()]})]})]})]})]})]})}}),W1=m({name:"AppStyleProvider",setup(e,{expose:t}){const{getAppTheme:l}=M(),{height:i,width:o}=A1(),c=()=>{const{appPrimaryColor:{primaryColor:s,primaryFadeColor:p}}=X,{rayTemplateThemePrimaryColor:d,rayTemplateThemePrimaryFadeColor:h}=b,u=document.documentElement,g=Z(v.appPiniaSettingStore,"localStorage");if(g){const k=E1(g,"primaryColorOverride.common.primaryColor",s),G=L1(k,.85);u.style.setProperty(d,k),u.style.setProperty(h,G||p)}},a=()=>{const s=document.getElementById(b.preLoadingAnimation);s&&_(s,{display:"none"})},r=s=>{const p=document.documentElement,{darkClassName:d,lightClassName:h}=b;s?w(p,h):w(p,d),R(p,s?d:h)};c(),a(),S1(()=>{r(l.value),_(document.documentElement,{[b.htmlHeight]:`${i.value}px`,[b.htmlWidth]:`${o.value}px`})}),t()},render(){return n("div",{class:"app-style-provider"},null)}}),q1=m({name:"LockScreen",setup(){const[e,{validate:t}]=Q(),l=V1("inputInstRef"),{setLockAppScreen:i}=o1(),{updateSettingState:o}=j(),c=$1({lockCondition:S()}),a=()=>{t().then(()=>{i(!0),o("lockScreenSwitch",!1),C(v.appLockScreenPasswordKey,B1(c.lockCondition.lockPassword),"localStorage"),c.lockCondition=S()})};return x1(()=>{H1(()=>{var r;(r=l.value)==null||r.focus()})}),{...N1(c),lockScreen:a,register:e,inputInstRef:l}},render(){const{register:e}=this;return n("div",{class:"app-lock-screen__content"},[n("div",{class:"app-lock-screen__input"},[n(e1,{avatarSize:52,style:"pointer-events: none;margin: 24px 0;",vertical:!0},null),n(t1,{ref:"formInstRef",model:this.lockCondition,rules:l1,labelPlacement:"left",onRegister:e},{default:()=>[n(y1,{path:"lockPassword"},{default:()=>[n(w1,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":t=>this.lockCondition.lockPassword=t,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:t=>{t.code==="Enter"&&this.lockScreen()},autofocus:!0},null)]}),n(C1,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[P1("锁屏")]})]})])])}}),U1=m({name:"AppLockScreen",setup(){const{updateSettingState:e}=j(),{getLockScreenSwitch:t}=M();return{lockScreenSwitchRef:y({get:()=>t.value,set:i=>{e("lockScreenSwitch",i)}})}},render(){return n(E,{show:this.lockScreenSwitchRef,"onUpdate:show":e=>this.lockScreenSwitchRef=e,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:"dialog",title:"锁定屏幕"},{default:()=>[n(q1,null,null)]})}}),G1=m({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:t}=M();return{getWatermarkSwitch:e,getWatermarkConfig:t}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:t}=this;return t?n(Z1,T(e,{fullscreen:!0}),null):null}}),J1=m({name:"GlobalSpin",props:{...z1},setup(){const e={opacitySpinning:"0.3"};return{spinValue:i1("globalSpinning"),overrides:e}},render(){return n(k1,T(this.$props,{show:this.spinValue,themeOverrides:this.overrides,style:"height: var(--html-height)"}),{...this.$slots})}});var Y1={pkg:{dependencies:{"@logicflow/core":"2.0.10","@logicflow/extension":"2.0.14","@vueuse/core":"^12.4.0",axios:"^1.7.9",clipboard:"^2.0.11","crypto-js":"4.2.0","currency.js":"^2.0.4",dayjs:"^1.11.13",echarts:"^5.6.0","html-to-image":"1.11.11",interactjs:"1.10.27",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.41.0",pinia:"^2.3.0","pinia-plugin-persistedstate":"^4.2.0","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.10","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.4.0","vue3-next-qrcode":"2.0.10"},devDependencies:{"@amap/amap-jsapi-types":"0.0.15","@ant-design/icons-vue":"7.0.1","@commitlint/cli":"19.3.0","@commitlint/config-conventional":"19.2.2","@interactjs/types":"1.10.27","@intlify/unplugin-vue-i18n":"4.0.0","@types/crypto-js":"4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"4.17.12","@types/mockjs":"1.0.10","@types/three":"0.171.0","@typescript-eslint/eslint-plugin":"8.20.0","@typescript-eslint/parser":"8.20.0","@vitejs/plugin-vue":"5.2.1","@vitejs/plugin-vue-jsx":"4.1.1","@vitest/ui":"2.1.8","@vue/eslint-config-prettier":"10.1.0","@vue/eslint-config-typescript":"14.2.0","@vue/test-utils":"2.4.6",autoprefixer:"10.4.20",depcheck:"1.4.7",eslint:"9.18.0","eslint-config-prettier":"10.0.1","eslint-plugin-prettier":"5.2.2","eslint-plugin-vue":"9.32.0",globals:"15.14.0","happy-dom":"16.6.0",husky:"8.0.3","lint-staged":"15.3.0",postcss:"8.5.1","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"3.4.2","rollup-plugin-gzip":"4.0.1",sass:"1.83.0","svg-sprite-loader":"6.0.11",typescript:"5.6.3","unplugin-auto-import":"19.0.0","unplugin-vue-components":"0.28.0",vite:"6.0.7","vite-bundle-analyzer":"0.16.0","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"0.8.4","vite-plugin-mock-dev-server":"1.8.3","vite-plugin-svg-icons":"2.0.1","vite-svg-loader":"5.1.0",vitest:"2.1.8","vue-tsc":"2.2.0"},name:"ray-template",version:"5.0.10"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.85)"}};const K1=m({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=Y1,t=Z(v.appVersionProvider,"localStorage"),l=F1(!1),{logout:i}=c1();return t!==null?e!==t&&(l.value=!0,C(v.appVersionProvider,e,"localStorage")):C(v.appVersionProvider,e,"localStorage"),{modalShow:l,logout:i}},render(){const{logout:e}=this;return n("div",{class:"app-style-provider"},[n(E,{show:this.modalShow,"onUpdate:show":t=>this.modalShow=t,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,draggable:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),N=m({name:"App",render(){return n(I1,null,{default:()=>[n(K1,null,null),n(U1,null,null),n(W1,null,null),n(G1,null,null),n(J1,null,{default:()=>n(J,null,null),description:()=>a1})]})}});if(typeof window<"u"){let e=function(){var t=document.body,l=document.getElementById("__svg__icons__dom__");l||(l=document.createElementNS("http://www.w3.org/2000/svg","svg"),l.style.position="absolute",l.style.width="0",l.style.height="0",l.id="__svg__icons__dom__",l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),l.innerHTML='',t.insertBefore(l,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const X1=()=>{const{localeLanguage:e}=Z(v.appPiniaSettingStore,"localStorage",{defaultValue:{}}),t=n1[e]||r1;h1.locale(t)},H=(e,t)=>{const l=new D1(e,{text:()=>t});e.$$clipboard=l,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},Q1=()=>({mounted:(e,{value:t})=>{H(e,t)},updated:(e,{value:t,oldValue:l})=>{var i;t!==l&&((i=e.$$clipboard)==null||i.destroy(),H(e,t))},beforeUnmount:e=>{var t;e.$$clipboard&&((t=e.$$clipboard)==null||t.destroy(),e.$$clipboard=null)}}),e2=Object.freeze(Object.defineProperty({__proto__:null,default:Q1},Symbol.toStringTag,{value:"Module"})),t2=()=>{let e,t;return{beforeMount:(l,{value:i})=>{const{func:o,trigger:c="click",wait:a=500,options:r}=i;if(typeof o!="function")throw new TypeError("debounce directive value must be a function");e=T1(o,a,Object.assign({},r)),t=O(l,c,e)},beforeUnmount:(l,{value:i})=>{e&&(e.cancel(),t==null||t()),e=null}}},l2=Object.freeze(Object.defineProperty({__proto__:null,default:t2},Symbol.toStringTag,{value:"Module"})),P=(e,t)=>{if(e){const l="ray-template__directive--disabled";t?(e.setAttribute("disabled","disabled"),R(e,l)):(e.removeAttribute("disabled"),w(e,l)),e==null||e.setAttribute("disabled",t?"disabled":"")}},o2=()=>({mounted:(e,{value:t})=>{P(e,t)},updated:(e,{value:t,oldValue:l})=>{t!==l&&P(e,t)}}),i2=Object.freeze(Object.defineProperty({__proto__:null,default:o2},Symbol.toStringTag,{value:"Module"})),A=(e,t)=>{const{line:l=1,type:i="block",width:o,popoverText:c}=t;if(o==null){console.error(`[v-ellipsis]: Expected width is string or number, but got typeof ${o}!`);return}c&&e.textContent&&e.setAttribute("title",e.textContent),i==="line"?_(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l,overflow:"hidden",width:x(o)}):_(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:x(o)})},c2=()=>({mounted:(e,{value:t})=>{A(e,t)},updated:(e,{value:t})=>{A(e,t)}}),a2=Object.freeze(Object.defineProperty({__proto__:null,default:c2},Symbol.toStringTag,{value:"Module"})),f={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},n2="v-ripple__container";function L(e,t){e.style.transform=t}function F(e){const t={},l=e.currentTarget;!(l!=null&&l.__d_ripple__)||l.__d_ripple__.touched||(t.center=l.__d_ripple__.centered,l.__d_ripple__.class&&(t.class=l.__d_ripple__.class),z.show(e,l,t))}function D(e){const t=e.currentTarget;t!=null&&t.__d_ripple__&&(setTimeout(()=>{t.__d_ripple__&&(t.__d_ripple__.touched=!1)}),z.hide(t))}const r2=(e,t,l={})=>{var u;const i=t.getBoundingClientRect(),o=e.clientX-i.left,c=e.clientY-i.top;let a=0,r=.3;(u=t.__d_ripple__)!=null&&u.circle?(r=.15,a=t.clientWidth/2,a=l.center?a:a+Math.sqrt((o-a)**2+(c-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const s=`${(t.clientWidth-a*2)/2}px`,p=`${(t.clientHeight-a*2)/2}px`,d=l.center?s:`${o-a}px`,h=l.center?p:`${c-a}px`;return{radius:a,scale:r,x:d,y:h,centerX:s,centerY:p}},z={show(e,t,l={}){var g;if(!((g=t==null?void 0:t.__d_ripple__)!=null&&g.enabled))return;const i=document.createElement("span"),o=document.createElement("span");i.appendChild(o),i.className=n2,l.class&&(i.className+=` ${l.class}`);const{radius:c,scale:a,x:r,y:s,centerX:p,centerY:d}=r2(e,t,l),h=`${c*2}px`;o.className=f.vRippleAnimation,o.style.width=h,o.style.height=h,t.appendChild(i);const u=window.getComputedStyle(t);u&&u.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),o.classList.add(f.vRippleAnimationEnter),o.classList.add(f.vRippleAnimationVisible),L(o,`translate(${r}, ${s}) scale3d(${a},${a},${a})`),o.dataset.activated=String(performance.now()),setTimeout(()=>{o.classList.remove(f.vRippleAnimationEnter),o.classList.add(f.vRippleAnimationIn),L(o,`translate(${p}, ${d}) scale3d(1,1,1)`)},0)},hide(e){var c;if(!((c=e==null?void 0:e.__d_ripple__)!=null&&c.enabled))return;const t=e.getElementsByClassName(f.vRippleAnimation);if(t.length===0)return;const l=t[t.length-1];if(l.dataset.isHiding)return;l.dataset.isHiding="true";const i=performance.now()-Number(l.dataset.activated),o=Math.max(250-i,0);setTimeout(()=>{l.classList.remove(f.vRippleAnimationIn),l.classList.add(f.vRippleAnimationOut),setTimeout(()=>{var r;e.getElementsByClassName(f.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((r=l.parentNode)==null?void 0:r.parentNode)===e&&e.removeChild(l.parentNode)},300)},o)}};function I(e){return typeof e>"u"||!!e}function W(e){e.removeEventListener("pointerdown",F),e.removeEventListener("pointerup",D)}function B(e,t,l){const{value:i,modifiers:o}=t,c=I(i);c||z.hide(e),e.__d_ripple__=e.__d_ripple__??{},e.__d_ripple__.enabled=c,e.__d_ripple__.centered=o.center,e.__d_ripple__.circle=o.circle,j1(i,"Object")&&i.class&&(e.__d_ripple__.class=i.class),c&&!l?(e.addEventListener("pointerdown",F),e.addEventListener("pointerup",D)):!c&&l&&W(e)}const s2=()=>({mounted:(e,t)=>{B(e,t,!1)},beforeUnmount:e=>{delete e.__d_ripple__,W(e)},updated:(e,t)=>{if(t.value===t.oldValue)return;const l=I(t.oldValue);B(e,t,l)}}),p2=Object.freeze(Object.defineProperty({__proto__:null,default:s2},Symbol.toStringTag,{value:"Module"})),d2=()=>{let e;return{beforeMount:(t,{value:l})=>{const{func:i,trigger:o="click",wait:c=500,options:a}=l;if(typeof i!="function")throw new TypeError("throttle directive value must be a function");e=O1(i,c,Object.assign({},a)),O(t,o,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},h2=Object.freeze(Object.defineProperty({__proto__:null,default:d2},Symbol.toStringTag,{value:"Module"})),f2=e=>Object.keys(e).reduce((l,i)=>{var c;const o=(c=e[i])==null?void 0:c.default;if(typeof o=="function")return l[i]=o,l;throw new TypeError(`directiveModules: ${i} is not function`)},{}),u2=e=>{const l=f2(Object.assign({"/src/directives/modules/copy/index.ts":e2,"/src/directives/modules/debounce/index.ts":l2,"/src/directives/modules/disabled/index.ts":i2,"/src/directives/modules/ellipsis/index.ts":a2,"/src/directives/modules/ripple/index.ts":p2,"/src/directives/modules/throttle/index.ts":h2})),i=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),o=/^([^-]+-)*[^-]+$/;R1(l,(c,a)=>{var s;const r=(s=a.match(i))==null?void 0:s[0];typeof r=="string"&&o.test(r)?e.directive(r,c()):console.error(`[setupDirectives] ${r} is not a valid directive name`)})},q=async()=>{},U=async e=>{s1(e),await p1(e),d1(e),X1(),u2(e)},m2=async()=>{const e=$(N);await U(e),e.mount("#app"),await q()},v2=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=$(N),await U(e),e.mount("#app"),await q()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?v2():m2(); diff --git a/js/index-u-mxvDv8.js.gz b/js/index-u-mxvDv8.js.gz new file mode 100644 index 00000000..1580c193 Binary files /dev/null and b/js/index-u-mxvDv8.js.gz differ diff --git a/js/instance-BbSLtO2c.js b/js/instance-BbSLtO2c.js new file mode 100644 index 00000000..7d897650 --- /dev/null +++ b/js/instance-BbSLtO2c.js @@ -0,0 +1 @@ +import{a as R}from"./axios@1.7.9-upsvKRUO.js";import{a0 as t,a1 as n,f as q,a2 as d}from"./hooks-Bi_Q9OFa.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{g as A}from"./utils-4asTneEs.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";const y=(e,r)=>{t.removePendingRequest(e)},E=(e,r)=>{t.removePendingRequest(e)},p={implementResponseInterceptorArray:[y],implementResponseInterceptorErrorArray:[E]},{setImplement:m}=n(),k=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},P=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},f=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},g=(e,r)=>{t.removePendingRequest(e)},v=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},C=(e,r)=>{const o=A(q.token,"localStorage");return e.url,{key:"X-TOKEN",value:o}},H=(e,r)=>{v(e,[C(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},c={implementRequestInterceptorArray:[H,f],implementRequestInterceptorErrorArray:[g]},{setImplement:a}=n(),j=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},x=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=R.create(d),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),j(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(x(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),k(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(P(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; diff --git a/js/instance-BbSLtO2c.js.gz b/js/instance-BbSLtO2c.js.gz new file mode 100644 index 00000000..a7b7e563 Binary files /dev/null and b/js/instance-BbSLtO2c.js.gz differ diff --git a/js/instance-nutHwvcu.js b/js/instance-nutHwvcu.js deleted file mode 100644 index 51742ebb..00000000 --- a/js/instance-nutHwvcu.js +++ /dev/null @@ -1 +0,0 @@ -import{a as R}from"./axios@1.7.9-upsvKRUO.js";import{a0 as t,a1 as n,f as q,a2 as d}from"./hooks-CpaAYtdw.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{g as A}from"./utils-DBF0WsFC.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";const y=(e,r)=>{t.removePendingRequest(e)},E=(e,r)=>{t.removePendingRequest(e)},p={implementResponseInterceptorArray:[y],implementResponseInterceptorErrorArray:[E]},{setImplement:m}=n(),k=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},P=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},f=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},g=(e,r)=>{t.removePendingRequest(e)},v=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},C=(e,r)=>{const o=A(q.token,"localStorage");return e.url,{key:"X-TOKEN",value:o}},H=(e,r)=>{v(e,[C(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},c={implementRequestInterceptorArray:[H,f],implementRequestInterceptorErrorArray:[g]},{setImplement:a}=n(),j=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},x=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=R.create(d),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),j(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(x(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),k(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(P(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; diff --git a/js/instance-nutHwvcu.js.gz b/js/instance-nutHwvcu.js.gz deleted file mode 100644 index 39795aa6..00000000 Binary files a/js/instance-nutHwvcu.js.gz and /dev/null differ diff --git a/js/lodash-es@4.17.21-l6r90Unf.js b/js/lodash-es@4.17.21-BbYRMHep.js similarity index 99% rename from js/lodash-es@4.17.21-l6r90Unf.js rename to js/lodash-es@4.17.21-BbYRMHep.js index 3a873239..a4942ade 100644 --- a/js/lodash-es@4.17.21-l6r90Unf.js +++ b/js/lodash-es@4.17.21-BbYRMHep.js @@ -1 +1 @@ -var Tr=typeof global=="object"&&global&&global.Object===Object&&global,pe=typeof self=="object"&&self&&self.Object===Object&&self,S=Tr||pe||Function("return this")(),m=S.Symbol,$r=Object.prototype,he=$r.hasOwnProperty,be=$r.toString,Y=m?m.toStringTag:void 0;function ve(n){var r=he.call(n,Y),e=n[Y];try{n[Y]=void 0;var t=!0}catch{}var i=be.call(n);return t&&(r?n[Y]=e:delete n[Y]),i}var ye=Object.prototype,_e=ye.toString;function Te(n){return _e.call(n)}var $e="[object Null]",Oe="[object Undefined]",Wn=m?m.toStringTag:void 0;function j(n){return n==null?n===void 0?Oe:$e:Wn&&Wn in Object(n)?ve(n):Te(n)}function P(n){return n!=null&&typeof n=="object"}var Ae="[object Symbol]";function un(n){return typeof n=="symbol"||P(n)&&j(n)==Ae}function sn(n,r){for(var e=-1,t=n==null?0:n.length,i=Array(t);++e0){if(++r>=nt)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}function it(n){return function(){return n}}var an=function(){try{var n=D(Object,"defineProperty");return n({},"",{}),n}catch{}}(),at=an?function(n,r){return an(n,"toString",{configurable:!0,enumerable:!1,value:it(r),writable:!0})}:cn,mr=tt(at);function wr(n,r){for(var e=-1,t=n==null?0:n.length;++e-1&&n%1==0&&n-1&&n%1==0&&n<=pt}function E(n){return n!=null&&jn(n.length)&&!Rn(n)}function ht(n,r,e){if(!O(e))return!1;var t=typeof r;return(t=="number"?E(e)&&ln(r,e.length):t=="string"&&r in e)?k(e[r],n):!1}function xr(n){return dt(function(r,e){var t=-1,i=e.length,a=i>1?e[i-1]:void 0,f=i>2?e[2]:void 0;for(a=n.length>3&&typeof a=="function"?(i--,a):void 0,f&&ht(e[0],e[1],f)&&(a=i<3?void 0:a,i=1),r=Object(r);++t-1}function Pi(n,r){var e=this.__data__,t=hn(e,n);return t<0?(++this.size,e.push([n,r])):e[t][1]=r,this}function I(n){var r=-1,e=n==null?0:n.length;for(this.clear();++ri?0:i+r),e=e>i?i:e,e<0&&(e+=i),i=r>e?0:e-r>>>0,r>>>=0;for(var a=Array(i);++t=t?n:Ur(n,r,e)}var Zi="\\ud800-\\udfff",Ji="\\u0300-\\u036f",Qi="\\ufe20-\\ufe2f",Vi="\\u20d0-\\u20ff",ki=Ji+Qi+Vi,na="\\ufe0e\\ufe0f",ra="\\u200d",ea=RegExp("["+ra+Zi+ki+na+"]");function Gr(n){return ea.test(n)}function ta(n){return n.split("")}var Br="\\ud800-\\udfff",ia="\\u0300-\\u036f",aa="\\ufe20-\\ufe2f",fa="\\u20d0-\\u20ff",oa=ia+aa+fa,ua="\\ufe0e\\ufe0f",sa="["+Br+"]",wn="["+oa+"]",Pn="\\ud83c[\\udffb-\\udfff]",ca="(?:"+wn+"|"+Pn+")",Hr="[^"+Br+"]",zr="(?:\\ud83c[\\udde6-\\uddff]){2}",Kr="[\\ud800-\\udbff][\\udc00-\\udfff]",la="\\u200d",Wr=ca+"?",Xr="["+ua+"]?",ga="(?:"+la+"(?:"+[Hr,zr,Kr].join("|")+")"+Xr+Wr+")*",da=Xr+Wr+ga,pa="(?:"+[Hr+wn+"?",wn,zr,Kr,sa].join("|")+")",ha=RegExp(Pn+"(?="+Pn+")|"+pa+da,"g");function ba(n){return n.match(ha)||[]}function va(n){return Gr(n)?ba(n):ta(n)}function ya(n){return function(r){r=Fr(r);var e=Gr(r)?va(r):void 0,t=e?e[0]:r.charAt(0),i=e?Yi(e,1).join(""):r.slice(1);return t[n]()+i}}var Ou=ya("toUpperCase");function _a(n,r,e,t){var i=-1,a=n==null?0:n.length;for(t&&a&&(e=n[++i]);++io))return!1;var s=a.get(n),c=a.get(r);if(s&&c)return s==r&&c==n;var l=-1,g=!0,h=e&ro?new on:void 0;for(a.set(n,r),a.set(r,n);++l=r||R<0||l&&q>=a}function v(){var _=On();if(b(_))return x(_);o=setTimeout(v,$(_))}function x(_){return o=void 0,g&&t?h(_):(t=i=void 0,f)}function en(){o!==void 0&&clearTimeout(o),s=0,t=u=i=o=void 0}function G(){return o===void 0?f:x(On())}function M(){var _=On(),R=b(_);if(t=arguments,i=this,u=_,R){if(o===void 0)return y(u);if(l)return clearTimeout(o),o=setTimeout(v,r),h(u)}return o===void 0&&(o=setTimeout(v,r)),f}return M.cancel=en,M.flush=G,M}function Cn(n,r,e){(e!==void 0&&!k(n[r],e)||e===void 0&&!(r in n))&&gn(n,r,e)}function zo(n){return P(n)&&E(n)}function Mn(n,r){if(!(r==="constructor"&&typeof n[r]=="function")&&r!="__proto__")return n[r]}function Ko(n){return U(n,K(n))}function Wo(n,r,e,t,i,a,f){var o=Mn(n,e),u=Mn(r,e),s=f.get(u);if(s){Cn(n,e,s);return}var c=a?a(o,u,e+"",n,r,f):void 0,l=c===void 0;if(l){var g=T(u),h=!g&&H(u),y=!g&&!h&&pn(u);c=u,g||h||y?T(o)?c=o:zo(o)?c=Ar(o):h?(l=!1,c=Yr(u,!0)):y?(l=!1,c=kr(u,!0)):c=[]:Dr(u)||B(u)?(c=o,B(o)?c=Ko(o):(!O(o)||Rn(o))&&(c=ne(u))):l=!1}l&&(f.set(u,c),i(c,u,t,a,f),f.delete(u)),Cn(n,e,c)}function le(n,r,e,t,i){n!==r&&Hn(r,function(a,f){if(i||(i=new w),O(a))Wo(n,r,f,e,le,t,i);else{var o=t?t(Mn(n,f),a,f+"",n,r,i):void 0;o===void 0&&(o=a),Cn(n,f,o)}},K)}function Xo(n){var r=n==null?0:n.length;return r?n[r-1]:void 0}function ge(n){return typeof n=="function"?n:cn}function mu(n,r){var e=T(n)?wr:zn;return e(n,ge(r))}function qo(n,r){return sn(r,function(e){return[e,n[e]]})}function Yo(n){var r=-1,e=Array(n.size);return n.forEach(function(t){e[++r]=[t,t]}),e}var Zo="[object Map]",Jo="[object Set]";function Qo(n){return function(r){var e=A(r);return e==Zo?ae(r):e==Jo?Yo(r):qo(r,n(r))}}var wu=Qo(F);function Vo(n){return function(r,e,t){var i=Object(r);if(!E(r)){var a=rn(e);r=F(r),e=function(o){return a(i[o],o,i)}}var f=n(r,e,t);return f>-1?i[a?r[f]:f]:void 0}}var ko=Math.max;function nu(n,r,e){var t=n==null?0:n.length;if(!t)return-1;var i=e==null?0:Fe(e);return i<0&&(i=ko(t+i,0)),Pr(n,rn(r),i)}var Pu=Vo(nu);function ru(n,r){var e=-1,t=E(n)?Array(n.length):[];return zn(n,function(i,a,f){t[++e]=r(i,a,f)}),t}function Su(n,r){var e=T(n)?sn:ru;return e(n,rn(r))}function xu(n,r){return n==null?n:Hn(n,ge(r),K)}var eu=Object.prototype,tu=eu.hasOwnProperty;function iu(n,r){return n!=null&&tu.call(n,r)}function Eu(n,r){return n!=null&&ue(n,r,iu)}function Iu(n,r,e){var t=n==null?0:n.length;if(!t)return-1;var i=0;return ut(n,r,i)}function au(n,r){return r.length<2?n:vn(n,Ur(r,0,-1))}var fu="[object Boolean]";function Cu(n){return n===!0||n===!1||P(n)&&j(n)==fu}var ou="[object Map]",uu="[object Set]",su=Object.prototype,cu=su.hasOwnProperty;function Mu(n){if(n==null)return!0;if(E(n)&&(T(n)||typeof n=="string"||typeof n.splice=="function"||H(n)||pn(n)||B(n)))return!n.length;var r=A(n);if(r==ou||r==uu)return!n.size;if(nn(n))return!jr(n).length;for(var e in n)if(cu.call(n,e))return!1;return!0}function Ru(n,r){return yn(n,r)}function ju(n){return n==null}function Fu(n){return n===void 0}function Lu(n,r){var e={};return r=rn(r),ce(n,function(t,i,a){gn(e,r(t,i,a),t)}),e}var Nu=xr(function(n,r,e){le(n,r,e)});function lu(n,r){return r=W(r,n),n=au(n,r),n==null||delete n[X(Xo(r))]}function gu(n){return Dr(n)?void 0:n}var du=1,pu=2,hu=4,Du=Lr(function(n,r){var e={};if(n==null)return e;var t=!1;r=sn(r,function(a){return a=W(a,n),t||(t=a.length>1),a}),U(n,Vr(n),e),t&&(e=J(e,du|pu|hu,gu));for(var i=r.length;i--;)lu(e,r[i]);return e});function de(n,r,e,t){if(!O(n))return n;r=W(r,n);for(var i=-1,a=r.length,f=a-1,o=n;o!=null&&++i0){if(++r>=nt)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}function it(n){return function(){return n}}var an=function(){try{var n=D(Object,"defineProperty");return n({},"",{}),n}catch{}}(),at=an?function(n,r){return an(n,"toString",{configurable:!0,enumerable:!1,value:it(r),writable:!0})}:cn,mr=tt(at);function wr(n,r){for(var e=-1,t=n==null?0:n.length;++e-1&&n%1==0&&n-1&&n%1==0&&n<=pt}function E(n){return n!=null&&jn(n.length)&&!Rn(n)}function ht(n,r,e){if(!O(e))return!1;var t=typeof r;return(t=="number"?E(e)&&ln(r,e.length):t=="string"&&r in e)?k(e[r],n):!1}function xr(n){return dt(function(r,e){var t=-1,i=e.length,a=i>1?e[i-1]:void 0,f=i>2?e[2]:void 0;for(a=n.length>3&&typeof a=="function"?(i--,a):void 0,f&&ht(e[0],e[1],f)&&(a=i<3?void 0:a,i=1),r=Object(r);++t-1}function Pi(n,r){var e=this.__data__,t=hn(e,n);return t<0?(++this.size,e.push([n,r])):e[t][1]=r,this}function I(n){var r=-1,e=n==null?0:n.length;for(this.clear();++ri?0:i+r),e=e>i?i:e,e<0&&(e+=i),i=r>e?0:e-r>>>0,r>>>=0;for(var a=Array(i);++t=t?n:Ur(n,r,e)}var Zi="\\ud800-\\udfff",Ji="\\u0300-\\u036f",Qi="\\ufe20-\\ufe2f",Vi="\\u20d0-\\u20ff",ki=Ji+Qi+Vi,na="\\ufe0e\\ufe0f",ra="\\u200d",ea=RegExp("["+ra+Zi+ki+na+"]");function Gr(n){return ea.test(n)}function ta(n){return n.split("")}var Br="\\ud800-\\udfff",ia="\\u0300-\\u036f",aa="\\ufe20-\\ufe2f",fa="\\u20d0-\\u20ff",oa=ia+aa+fa,ua="\\ufe0e\\ufe0f",sa="["+Br+"]",wn="["+oa+"]",Pn="\\ud83c[\\udffb-\\udfff]",ca="(?:"+wn+"|"+Pn+")",Hr="[^"+Br+"]",zr="(?:\\ud83c[\\udde6-\\uddff]){2}",Kr="[\\ud800-\\udbff][\\udc00-\\udfff]",la="\\u200d",Wr=ca+"?",Xr="["+ua+"]?",ga="(?:"+la+"(?:"+[Hr,zr,Kr].join("|")+")"+Xr+Wr+")*",da=Xr+Wr+ga,pa="(?:"+[Hr+wn+"?",wn,zr,Kr,sa].join("|")+")",ha=RegExp(Pn+"(?="+Pn+")|"+pa+da,"g");function ba(n){return n.match(ha)||[]}function va(n){return Gr(n)?ba(n):ta(n)}function ya(n){return function(r){r=Fr(r);var e=Gr(r)?va(r):void 0,t=e?e[0]:r.charAt(0),i=e?Yi(e,1).join(""):r.slice(1);return t[n]()+i}}var Ou=ya("toUpperCase");function _a(n,r,e,t){var i=-1,a=n==null?0:n.length;for(t&&a&&(e=n[++i]);++io))return!1;var s=a.get(n),c=a.get(r);if(s&&c)return s==r&&c==n;var l=-1,g=!0,h=e&ro?new on:void 0;for(a.set(n,r),a.set(r,n);++l=r||R<0||l&&q>=a}function v(){var _=On();if(b(_))return x(_);o=setTimeout(v,$(_))}function x(_){return o=void 0,g&&t?h(_):(t=i=void 0,f)}function en(){o!==void 0&&clearTimeout(o),s=0,t=u=i=o=void 0}function G(){return o===void 0?f:x(On())}function M(){var _=On(),R=b(_);if(t=arguments,i=this,u=_,R){if(o===void 0)return y(u);if(l)return clearTimeout(o),o=setTimeout(v,r),h(u)}return o===void 0&&(o=setTimeout(v,r)),f}return M.cancel=en,M.flush=G,M}function Cn(n,r,e){(e!==void 0&&!k(n[r],e)||e===void 0&&!(r in n))&&gn(n,r,e)}function zo(n){return P(n)&&E(n)}function Mn(n,r){if(!(r==="constructor"&&typeof n[r]=="function")&&r!="__proto__")return n[r]}function Ko(n){return U(n,K(n))}function Wo(n,r,e,t,i,a,f){var o=Mn(n,e),u=Mn(r,e),s=f.get(u);if(s){Cn(n,e,s);return}var c=a?a(o,u,e+"",n,r,f):void 0,l=c===void 0;if(l){var g=T(u),h=!g&&H(u),y=!g&&!h&&pn(u);c=u,g||h||y?T(o)?c=o:zo(o)?c=Ar(o):h?(l=!1,c=Yr(u,!0)):y?(l=!1,c=kr(u,!0)):c=[]:Dr(u)||B(u)?(c=o,B(o)?c=Ko(o):(!O(o)||Rn(o))&&(c=ne(u))):l=!1}l&&(f.set(u,c),i(c,u,t,a,f),f.delete(u)),Cn(n,e,c)}function le(n,r,e,t,i){n!==r&&Hn(r,function(a,f){if(i||(i=new w),O(a))Wo(n,r,f,e,le,t,i);else{var o=t?t(Mn(n,f),a,f+"",n,r,i):void 0;o===void 0&&(o=a),Cn(n,f,o)}},K)}function Xo(n){var r=n==null?0:n.length;return r?n[r-1]:void 0}function ge(n){return typeof n=="function"?n:cn}function mu(n,r){var e=T(n)?wr:zn;return e(n,ge(r))}function qo(n,r){return sn(r,function(e){return[e,n[e]]})}function Yo(n){var r=-1,e=Array(n.size);return n.forEach(function(t){e[++r]=[t,t]}),e}var Zo="[object Map]",Jo="[object Set]";function Qo(n){return function(r){var e=A(r);return e==Zo?ae(r):e==Jo?Yo(r):qo(r,n(r))}}var wu=Qo(F);function Vo(n){return function(r,e,t){var i=Object(r);if(!E(r)){var a=rn(e);r=F(r),e=function(o){return a(i[o],o,i)}}var f=n(r,e,t);return f>-1?i[a?r[f]:f]:void 0}}var ko=Math.max;function nu(n,r,e){var t=n==null?0:n.length;if(!t)return-1;var i=e==null?0:Fe(e);return i<0&&(i=ko(t+i,0)),Pr(n,rn(r),i)}var Pu=Vo(nu);function ru(n,r){var e=-1,t=E(n)?Array(n.length):[];return zn(n,function(i,a,f){t[++e]=r(i,a,f)}),t}function Su(n,r){var e=T(n)?sn:ru;return e(n,rn(r))}function xu(n,r){return n==null?n:Hn(n,ge(r),K)}var eu=Object.prototype,tu=eu.hasOwnProperty;function iu(n,r){return n!=null&&tu.call(n,r)}function Eu(n,r){return n!=null&&ue(n,r,iu)}function Iu(n,r,e){var t=n==null?0:n.length;if(!t)return-1;var i=0;return ut(n,r,i)}function au(n,r){return r.length<2?n:vn(n,Ur(r,0,-1))}var fu="[object Boolean]";function Cu(n){return n===!0||n===!1||P(n)&&j(n)==fu}var ou="[object Map]",uu="[object Set]",su=Object.prototype,cu=su.hasOwnProperty;function Mu(n){if(n==null)return!0;if(E(n)&&(T(n)||typeof n=="string"||typeof n.splice=="function"||H(n)||pn(n)||B(n)))return!n.length;var r=A(n);if(r==ou||r==uu)return!n.size;if(nn(n))return!jr(n).length;for(var e in n)if(cu.call(n,e))return!1;return!0}function Ru(n,r){return yn(n,r)}function ju(n){return n==null}function Fu(n){return n===void 0}function Lu(n,r){var e={};return r=rn(r),ce(n,function(t,i,a){gn(e,r(t,i,a),t)}),e}var Nu=xr(function(n,r,e){le(n,r,e)});function lu(n,r){return r=W(r,n),n=au(n,r),n==null||delete n[X(Xo(r))]}function gu(n){return Dr(n)?void 0:n}var du=1,pu=2,hu=4,Du=Lr(function(n,r){var e={};if(n==null)return e;var t=!1;r=sn(r,function(a){return a=W(a,n),t||(t=a.length>1),a}),U(n,Vr(n),e),t&&(e=J(e,du|pu|hu,gu));for(var i=r.length;i--;)lu(e,r[i]);return e});function de(n,r,e,t){if(!O(n))return n;r=W(r,n);for(var i=-1,a=r.length,f=a-1,o=n;o!=null&&++i1&&arguments[1]!==void 0?arguments[1]:{},o=t.prefix,n=o===void 0?"":o,r=t.suffix,i=r===void 0?"":r,a=e.displayName||e.name||e.constructor&&e.constructor.name||"";return n+a+i}var O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},M=function(){function e(t,o){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=e[t],r=$[t],i=n?o===!0?function(){r.apply(this,arguments),n.apply(this,arguments)}:function(){n.apply(this,arguments),r.apply(this,arguments)}:r;e[t]=i}function x(e,t){if(e==null||t==null||(typeof e>"u"?"undefined":O(e))!=="object"||(typeof t>"u"?"undefined":O(t))!=="object")return e!==t;var o=Object.keys(e);if(o.length!==Object.keys(t).length)return!0;for(var n=void 0,r=o.length-1;n=o[r];r--)if(t[n]!==e[n])return!0;return!1}var $={componentWillMount:function(){var t=this,o=R(this),n=!1,r=!1;function i(s){var u=this[s],l=E("reactive "+s);Object.defineProperty(this,s,{configurable:!0,enumerable:!0,get:function(){return l.reportObserved(),u},set:function(f){!r&&x(u,f)?(u=f,n=!0,l.reportChanged(),n=!1):u=f}})}i.call(this,"props"),i.call(this,"state");var a=this.render.bind(this),c=null,p=!1,g=function(){return c=new C(o+".render()",function(){if(!p&&(p=!0,typeof t.componentWillReact=="function"&&t.componentWillReact(),t.__$mobxIsUnmounted!==!0)){var u=!0;try{r=!0,n||b.prototype.forceUpdate.call(t),u=!1}finally{r=!1,u&&c.dispose()}}}),c.reactComponent=t,y.$mobx=c,t.render=y,y(t.props,t.state,t.context)},y=function(u,l,d){p=!1;var f=void 0,v=void 0;if(c.track(function(){try{v=X(!1,a,u,l,d)}catch(h){f=h}}),f)throw f;return v};this.render=g},componentWillUnmount:function(){this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0},componentDidMount:function(){},componentDidUpdate:function(){},shouldComponentUpdate:function(t,o){return this.state!==o?!0:x(this.props,t)}};function T(e){if(arguments.length>1&&w.warn('Mobx observer: Using observer to inject stores is not supported. Use `@connect(["store1", "store2"]) ComponentClass instead or preferably, use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))``'),e.isMobxInjector===!0&&w.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),I(e)){var t,o;return T((o=t=function(r){U(i,r);function i(){return _(this,i),W(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return M(i,[{key:"render",value:function(){return e.call(this,this.props,this.context)}}]),i}(b),t.displayName=R(e),o))}if(!e)throw new Error("Please pass a valid component to 'observer'");var n=e.prototype||e;return G(n),e.isMobXReactObserver=!0,e}function G(e){P(e,"componentWillMount",!0),P(e,"componentDidMount"),e.shouldComponentUpdate||(e.shouldComponentUpdate=$.shouldComponentUpdate)}var K=T(function(e){var t=e.children;return t[0]()});K.displayName="Observer";var k=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function q(e,t){return t={exports:{}},e(t,t.exports),t.exports}q(function(e,t){(function(o,n){e.exports=n()})(k,function(){var o={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,i=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=p&&p(Object);return function y(s,u,l){if(typeof u!="string"){if(g){var d=p(u);d&&d!==g&&y(s,d,l)}var f=i(u);a&&(f=f.concat(a(u)));for(var v=0;v1?N("div",null," ",r," "):r[0]}},{key:"getChildContext",value:function(){var n={},r=this.context.mobxStores;if(r)for(var i in r)n[i]=r[i];for(var a in this.props)!S[a]&&a!=="suppressChangedStoreWarning"&&(n[a]=this.props[a]);return{mobxStores:n}}},{key:"componentWillReceiveProps",value:function(n){if(Object.keys(n).length!==Object.keys(this.props).length&&j.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!n.suppressChangedStoreWarning)for(var r in n)!S[r]&&this.props[r]!==n[r]&&j.warn("MobX Provider: Provided store '"+r+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),t})(b);if(!b)throw new Error("mobx-preact requires Preact to be available");export{T as o}; diff --git a/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js.gz b/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js.gz deleted file mode 100644 index e1907a11..00000000 Binary files a/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js.gz and /dev/null differ diff --git a/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js b/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js new file mode 100644 index 00000000..a3c50453 --- /dev/null +++ b/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js @@ -0,0 +1 @@ +import{g as N,x as g}from"./preact@10.25.4--QYavupV.js";import{d as E,R as C,g as m}from"./mobx@5.15.7-BvNiR7Ki.js";function I(e){return!(e.prototype&&e.prototype.render)&&!g.isPrototypeOf(e)}function R(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=t.prefix,n=o===void 0?"":o,r=t.suffix,i=r===void 0?"":r,a=e.displayName||e.name||e.constructor&&e.constructor.name||"";return n+a+i}var O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},M=function(){function e(t,o){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=e[t],r=$[t],i=n?o===!0?function(){r.apply(this,arguments),n.apply(this,arguments)}:function(){n.apply(this,arguments),r.apply(this,arguments)}:r;e[t]=i}function P(e,t){if(e==null||t==null||(typeof e>"u"?"undefined":O(e))!=="object"||(typeof t>"u"?"undefined":O(t))!=="object")return e!==t;var o=Object.keys(e);if(o.length!==Object.keys(t).length)return!0;for(var n=void 0,r=o.length-1;n=o[r];r--)if(t[n]!==e[n])return!0;return!1}var $={componentWillMount:function(){var t=this,o=R(this),n=!1,r=!1;function i(s){var u=this[s],l=E("reactive "+s);Object.defineProperty(this,s,{configurable:!0,enumerable:!0,get:function(){return l.reportObserved(),u},set:function(f){!r&&P(u,f)?(u=f,n=!0,l.reportChanged(),n=!1):u=f}})}i.call(this,"props"),i.call(this,"state");var a=this.render.bind(this),c=null,p=!1,b=function(){return c=new C(o+".render()",function(){if(!p&&(p=!0,typeof t.componentWillReact=="function"&&t.componentWillReact(),t.__$mobxIsUnmounted!==!0)){var u=!0;try{r=!0,n||g.prototype.forceUpdate.call(t),u=!1}finally{r=!1,u&&c.dispose()}}}),c.reactComponent=t,y.$mobx=c,t.render=y,y(t.props,t.state,t.context)},y=function(u,l,d){p=!1;var f=void 0,v=void 0;if(c.track(function(){try{v=X(!1,a,u,l,d)}catch(h){f=h}}),f)throw f;return v};this.render=b},componentWillUnmount:function(){this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0},componentDidMount:function(){},componentDidUpdate:function(){},shouldComponentUpdate:function(t,o){return this.state!==o?!0:P(this.props,t)}};function T(e){if(arguments.length>1&&w.warn('Mobx observer: Using observer to inject stores is not supported. Use `@connect(["store1", "store2"]) ComponentClass instead or preferably, use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))``'),e.isMobxInjector===!0&&w.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),I(e)){var t,o;return T((o=t=function(r){U(i,r);function i(){return _(this,i),W(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return M(i,[{key:"render",value:function(){return e.call(this,this.props,this.context)}}]),i}(g),t.displayName=R(e),o))}if(!e)throw new Error("Please pass a valid component to 'observer'");var n=e.prototype||e;return G(n),e.isMobXReactObserver=!0,e}function G(e){x(e,"componentWillMount",!0),x(e,"componentDidMount"),e.shouldComponentUpdate||(e.shouldComponentUpdate=$.shouldComponentUpdate)}var K=T(function(e){var t=e.children;return t[0]()});K.displayName="Observer";var k=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function q(e,t){return t={exports:{}},e(t,t.exports),t.exports}q(function(e,t){(function(o,n){e.exports=n()})(k,function(){var o={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,i=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,b=p&&p(Object);return function y(s,u,l){if(typeof u!="string"){if(b){var d=p(u);d&&d!==b&&y(s,d,l)}var f=i(u);a&&(f=f.concat(a(u)));for(var v=0;v1?N("div",null," ",r," "):r[0]}},{key:"getChildContext",value:function(){var n={},r=this.context.mobxStores;if(r)for(var i in r)n[i]=r[i];for(var a in this.props)!S[a]&&a!=="suppressChangedStoreWarning"&&(n[a]=this.props[a]);return{mobxStores:n}}},{key:"componentWillReceiveProps",value:function(n){if(Object.keys(n).length!==Object.keys(this.props).length&&j.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!n.suppressChangedStoreWarning)for(var r in n)!S[r]&&this.props[r]!==n[r]&&j.warn("MobX Provider: Provided store '"+r+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),t})(g);if(!g)throw new Error("mobx-preact requires Preact to be available");export{T as o}; diff --git a/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js.gz b/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js.gz new file mode 100644 index 00000000..5da6c533 Binary files /dev/null and b/js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js.gz differ diff --git a/js/naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js.gz b/js/naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js.gz deleted file mode 100644 index e4b292ee..00000000 Binary files a/js/naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js.gz and /dev/null differ diff --git a/js/naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js b/js/naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js similarity index 99% rename from js/naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js rename to js/naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js index 73ab2430..12baa78e 100644 --- a/js/naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js +++ b/js/naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js @@ -1,4 +1,4 @@ -import{e as vu,z as xu,p as Cu,i as On,f as Bt,a as Dt,b as Ve,s as Vn,c as Tr,d as yu,h as Qr,j as rn,k as wu,l as Ba,m as Oa,n as kn,o as Ht,q as fr,r as Zl,t as Su,u as Ql,v as ku,w as Ru,x as en,y as zu,A as Pu,B as li,C as Da,D as $u,E as Jl,F as eo,G as bo,H as Tu,I as da,J as Fu,K as ca,L as Wr,M as Ur,N as Iu}from"./date-fns@3.6.0-CG906D2E.js";import{g as Nt,r as cn,s as Kt,c as qe,d as Mt,a as Kn,h as Jt,b as Se,e as qn,t as no,f as oo,i as Ma,j as wo,k as Aa,l as Wn,m as _o,n as _a,o as es,p as So,q as to,u as Nr,v as rr,w as Ha,x as Ea,y as La,z as Et,A as si,B as Na,C as ts,D as Bo}from"./seemly@0.3.9-BnJ6M8Cl.js";import{i as Ee,k as tn,v as vn,d as di,w as mt,t as hr,J as Bu,L as ns,I as ja,F as Gt,M as ci,p as Ou,l as oe,f as C,j as Ft,x as Je,h as a,m as sn,n as Tt,N as dn,O as ir,P as Du,Q as Jr,T as ui}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as B,s as os,n as fe,m as Ji,e as ea,u as el}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{r as ua,V as _n,a as ko,b as zo,F as fi,B as Po,c as $o,d as Va,L as rs,e as Mu}from"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import{v as En,T as qt,a as as,c as Au}from"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import{o as Lt,a as Yt}from"./evtd@0.2.4-CI_DDEu_.js";import{u as tt,i as Yn,a as _u,b as $t,c as ro,d as hi,e as pi,f as gi,g as Hu,o as is}from"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import{c as Ln,m as Eu,z as mi}from"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import{m as Ao,A as Lu,b as Nu,g as Kr,l as fa}from"./lodash-es@4.17.21-l6r90Unf.js";import{c as ls,a as Un,f as tl}from"./treemate@0.3.11-CWtmm0QO.js";import{f as ju}from"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import{p as Wa}from"./@vue_shared@3.5.13-DbMIZLZJ.js";import{m as qr}from"./@emotion_hash@0.8.0-WldOFDRm.js";import{S as nl}from"./async-validator@4.2.5-P8scd9xB.js";import{u as ta}from"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import{C as Vu,e as Wu}from"./css-render@0.15.14-BwokE0u2.js";import{p as Uu}from"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Ku="n",lr=`.${Ku}-`,qu="__",Yu="--",ss=Vu(),ds=Uu({blockPrefix:lr,elementPrefix:qu,modifierPrefix:Yu});ss.use(ds);const{c:k,find:t0}=ss,{cB:b,cE:P,cM:z,cNotM:at}=ds;function Vo(e){return k(({props:{bPrefix:t}})=>`${t||lr}modal, ${t||lr}drawer`,[e])}function pr(e){return k(({props:{bPrefix:t}})=>`${t||lr}popover`,[e])}function cs(e){return k(({props:{bPrefix:t}})=>`&${t||lr}modal`,e)}const Gu=(...e)=>k(">",[b(...e)]);function ie(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}const bi="n-internal-select-menu",us="n-internal-select-menu-body",gr="n-drawer-body",vi="n-drawer",mr="n-modal-body",Xu="n-modal-provider",fs="n-modal",Wo="n-popover-body",hs="__disabled__";function Zt(e){const t=Ee(mr,null),n=Ee(gr,null),o=Ee(Wo,null),r=Ee(us,null),i=B();if(typeof document<"u"){i.value=document.fullscreenElement;const s=()=>{i.value=document.fullscreenElement};tn(()=>{Lt("fullscreenchange",document,s)}),vn(()=>{Yt("fullscreenchange",document,s)})}return tt(()=>{var s;const{to:l}=e;return l!==void 0?l===!1?hs:l===!0?i.value||"body":l:t!=null&&t.value?(s=t.value.$el)!==null&&s!==void 0?s:t.value:n!=null&&n.value?n.value:o!=null&&o.value?o.value:r!=null&&r.value?r.value:l??(i.value||"body")})}Zt.tdkey=hs;Zt.propTo={type:[String,Object,Boolean],default:void 0};function Zu(e,t,n){var o;const r=Ee(e,null);if(r===null)return;const i=(o=di())===null||o===void 0?void 0:o.proxy;mt(n,s),s(n.value),vn(()=>{s(void 0,n.value)});function s(c,u){if(!r)return;const f=r[t];u!==void 0&&l(f,u),c!==void 0&&d(f,c)}function l(c,u){c[u]||(c[u]=[]),c[u].splice(c[u].findIndex(f=>f===i),1)}function d(c,u){c[u]||(c[u]=[]),~c[u].findIndex(f=>f===i)||c[u].push(i)}}function Qu(e,t,n){const o=B(e.value);let r=null;return mt(e,i=>{r!==null&&window.clearTimeout(r),i===!0?n&&!n.value?o.value=!0:r=window.setTimeout(()=>{o.value=!0},t):o.value=!1}),o}const xn=typeof document<"u"&&typeof window<"u";let ol=!1;function Ju(){if(xn&&window.CSS&&!ol&&(ol=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}const xi=B(!1);function rl(){xi.value=!0}function al(){xi.value=!1}let Jo=0;function ps(){return xn&&(hr(()=>{Jo||(window.addEventListener("compositionstart",rl),window.addEventListener("compositionend",al)),Jo++}),vn(()=>{Jo<=1?(window.removeEventListener("compositionstart",rl),window.removeEventListener("compositionend",al),Jo=0):Jo--})),xi}let Oo=0,il="",ll="",sl="",dl="";const cl=B("0px");function gs(e){if(typeof document>"u")return;const t=document.documentElement;let n,o=!1;const r=()=>{t.style.marginRight=il,t.style.overflow=ll,t.style.overflowX=sl,t.style.overflowY=dl,cl.value="0px"};tn(()=>{n=mt(e,i=>{if(i){if(!Oo){const s=window.innerWidth-t.offsetWidth;s>0&&(il=t.style.marginRight,t.style.marginRight=`${s}px`,cl.value=`${s}px`),ll=t.style.overflow,sl=t.style.overflowX,dl=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}o=!0,Oo++}else Oo--,Oo||r(),o=!1},{immediate:!0})}),vn(()=>{n==null||n(),o&&(Oo--,Oo||r(),o=!1)})}function Ci(e){const t={isDeactivated:!1};let n=!1;return Bu(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),ns(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function ms(e,t){t&&(tn(()=>{const{value:n}=e;n&&ua.registerHandler(n,t)}),mt(e,(n,o)=>{o&&ua.unregisterHandler(o)},{deep:!1}),vn(()=>{const{value:n}=e;n&&ua.unregisterHandler(n)}))}function sr(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}const ef=/^(\d|\.)+$/,ul=/(\d|\.)+/;function _t(e,{c:t=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const r=(e+n)*t;return r===0?"0":`${r}px`}else if(typeof e=="string")if(ef.test(e)){const r=(Number(e)+n)*t;return o?r===0?"0":`${r}px`:`${r}`}else{const r=ul.exec(e);return r?e.replace(ul,String((Number(r[0])+n)*t)):e}return e}function fl(e){const{left:t,right:n,top:o,bottom:r}=Nt(e);return`${o} ${t} ${r} ${n}`}function tf(e,t){if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}let ha;function nf(){return ha===void 0&&(ha=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),ha}const bs=new WeakSet;function dr(e){bs.add(e)}function vs(e){return!bs.has(e)}function hl(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Ua(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}const pl=new Set;function of(e,t){const n=`[naive/${e}]: ${t}`;pl.has(n)||(pl.add(n),console.error(n))}function hn(e,t){console.error(`[naive/${e}]: ${t}`)}function Gn(e,t){throw new Error(`[naive/${e}]: ${t}`)}function ae(e,...t){if(Array.isArray(e))e.forEach(n=>ae(n,...t));else return e(...t)}function xs(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function Cs(e){return t=>{t?e.value=t.$el:e.value=null}}function Rn(e,t=!0,n=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&n.push(ja(String(o)));return}if(Array.isArray(o)){Rn(o,t,n);return}if(o.type===Gt){if(o.children===null)return;Array.isArray(o.children)&&Rn(o.children,t,n)}else{if(o.type===ci&&t)return;n.push(o)}}}),n}function rf(e,t="default",n=void 0){const o=e[t];if(!o)return hn("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=Rn(o(n));return r.length===1?r[0]:(hn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function af(e,t,n){if(!t)return null;const o=Rn(t(n));return o.length===1?o[0]:(hn("getFirstSlotVNode",`slot[${e}] should have exactly one child`),null)}function br(e,t="default",n=[]){const r=e.$slots[t];return r===void 0?n:r()}function gl(e,t="default",n=[]){const{children:o}=e;if(o!==null&&typeof o=="object"&&!Array.isArray(o)){const r=o[t];if(typeof r=="function")return r()}return n}function lf(e){var t;const n=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:o})=>o===En);return!!(n&&n.value===!1)}function bn(e,t=[],n){const o={};return t.forEach(r=>{o[r]=e[r]}),Object.assign(o,n)}function zn(e){return Object.keys(e)}function ar(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(o=>{o&&o(n)})}}function To(e,t=[],n){const o={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(o[i]=e[i])}),Object.assign(o,n)}function kt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?ja(e):typeof e=="number"?ja(String(e)):null}function Bn(e){return e.some(t=>Ou(t)?!(t.type===ci||t.type===Gt&&!Bn(t.children)):!0)?e:null}function pt(e,t){return e&&Bn(e())||t()}function ln(e,t,n){return e&&Bn(e(t))||n(t)}function bt(e,t){const n=e&&Bn(e());return t(n||null)}function Ho(e){return!(e&&Bn(e()))}const Ka=oe({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Pn="n-config-provider",Yr="n";function Qe(e={},t={defaultBordered:!0}){const n=Ee(Pn,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:C(()=>{var o,r;const{bordered:i}=e;return i!==void 0?i:(r=(o=n==null?void 0:n.mergedBorderedRef.value)!==null&&o!==void 0?o:t.defaultBordered)!==null&&r!==void 0?r:!0}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:os(Yr),namespaceRef:C(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function ys(){const e=Ee(Pn,null);return e?e.mergedClsPrefixRef:os(Yr)}function it(e,t,n,o){n||Gn("useThemeClass","cssVarsRef is not passed");const r=Ee(Pn,null),i=r==null?void 0:r.mergedThemeHashRef,s=r==null?void 0:r.styleMountTarget,l=B(""),d=ta();let c;const u=`__${e}`,f=()=>{let p=u;const g=t?t.value:void 0,h=i==null?void 0:i.value;h&&(p+=`-${h}`),g&&(p+=`-${g}`);const{themeOverrides:m,builtinThemeOverrides:x}=o;m&&(p+=`-${qr(JSON.stringify(m))}`),x&&(p+=`-${qr(JSON.stringify(x))}`),l.value=p,c=()=>{const y=n.value;let v="";for(const T in y)v+=`${T}: ${y[T]};`;k(`.${p}`,v).mount({id:p,ssr:d,parent:s}),c=void 0}};return Ft(()=>{f()}),{themeClass:l,onRender:()=>{c==null||c()}}}const qa="n-form-item";function Cn(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:o}={}){const r=Ee(qa,null);Je(qa,null);const i=C(n?()=>n(r):()=>{const{size:d}=e;if(d)return d;if(r){const{mergedSize:c}=r;if(c.value!==void 0)return c.value}return t}),s=C(o?()=>o(r):()=>{const{disabled:d}=e;return d!==void 0?d:r?r.disabled.value:!1}),l=C(()=>{const{status:d}=e;return d||(r==null?void 0:r.mergedValidationStatus.value)});return vn(()=>{r&&r.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:s,mergedStatusRef:l,nTriggerFormBlur(){r&&r.handleContentBlur()},nTriggerFormChange(){r&&r.handleContentChange()},nTriggerFormFocus(){r&&r.handleContentFocus()},nTriggerFormInput(){r&&r.handleContentInput()}}}const sf={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},n0={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w周",clear:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",weekPlaceholder:"选择周",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipDownload:"下载",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"}},df={name:"en-US",locale:vu},o0={name:"zh-CN",locale:xu};function $n(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Ee(Pn,null)||{},o=C(()=>{var i,s;return(s=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&s!==void 0?s:sf[e]});return{dateLocaleRef:C(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:df}),localeRef:o}}const Eo="naive-ui-style";function Wt(e,t,n){if(!t)return;const o=ta(),r=C(()=>{const{value:l}=t;if(!l)return;const d=l[e];if(d)return d}),i=Ee(Pn,null),s=()=>{Ft(()=>{const{value:l}=n,d=`${l}${e}Rtl`;if(Wu(d,o))return;const{value:c}=r;c&&c.style.mount({id:d,head:!0,anchorMetaName:Eo,props:{bPrefix:l?`.${l}-`:void 0},ssr:o,parent:i==null?void 0:i.styleMountTarget})})};return o?s():hr(s),r}const yn={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:cf,fontFamily:uf,lineHeight:ff}=yn,ws=k("body",` +import{e as vu,z as xu,p as Cu,i as On,f as Bt,a as Dt,b as Ve,s as Vn,c as Tr,d as yu,h as Qr,j as rn,k as wu,l as Ba,m as Oa,n as kn,o as Ht,q as fr,r as Zl,t as Su,u as Ql,v as ku,w as Ru,x as en,y as zu,A as Pu,B as li,C as Da,D as $u,E as Jl,F as eo,G as bo,H as Tu,I as da,J as Fu,K as ca,L as Wr,M as Ur,N as Iu}from"./date-fns@3.6.0-CG906D2E.js";import{g as Nt,r as cn,s as Kt,c as qe,d as Mt,a as Kn,h as Jt,b as Se,e as qn,t as no,f as oo,i as Ma,j as wo,k as Aa,l as Wn,m as _o,n as _a,o as es,p as So,q as to,u as Nr,v as rr,w as Ha,x as Ea,y as La,z as Et,A as si,B as Na,C as ts,D as Bo}from"./seemly@0.3.9-BnJ6M8Cl.js";import{i as Ee,l as tn,x as vn,d as di,w as mt,v as hr,L as Bu,M as ns,J as ja,F as Gt,N as ci,q as Ou,m as oe,f as C,j as Ft,y as Je,h as a,p as sn,n as Tt,O as dn,P as ir,Q as Du,R as Jr,T as ui}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as B,s as os,o as fe,m as Ji,e as ea,y as el}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{r as ua,V as _n,a as ko,b as zo,F as fi,B as Po,c as $o,d as Va,L as rs,e as Mu}from"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import{v as En,T as qt,a as as,c as Au}from"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import{o as Lt,a as Yt}from"./evtd@0.2.4-CI_DDEu_.js";import{u as tt,i as Yn,a as _u,b as $t,c as ro,d as hi,e as pi,f as gi,g as Hu,o as is}from"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import{c as Ln,m as Eu,z as mi}from"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import{m as Ao,B as Lu,b as Nu,g as Kr,q as fa}from"./lodash-es@4.17.21-BbYRMHep.js";import{c as ls,a as Un,f as tl}from"./treemate@0.3.11-CWtmm0QO.js";import{f as ju}from"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import{p as Wa}from"./@vue_shared@3.5.13-CQ6Z-5d1.js";import{m as qr}from"./@emotion_hash@0.8.0-WldOFDRm.js";import{S as nl}from"./async-validator@4.2.5-P8scd9xB.js";import{u as ta}from"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import{C as Vu,e as Wu}from"./css-render@0.15.14-BwokE0u2.js";import{p as Uu}from"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Ku="n",lr=`.${Ku}-`,qu="__",Yu="--",ss=Vu(),ds=Uu({blockPrefix:lr,elementPrefix:qu,modifierPrefix:Yu});ss.use(ds);const{c:k,find:t0}=ss,{cB:b,cE:P,cM:z,cNotM:at}=ds;function Vo(e){return k(({props:{bPrefix:t}})=>`${t||lr}modal, ${t||lr}drawer`,[e])}function pr(e){return k(({props:{bPrefix:t}})=>`${t||lr}popover`,[e])}function cs(e){return k(({props:{bPrefix:t}})=>`&${t||lr}modal`,e)}const Gu=(...e)=>k(">",[b(...e)]);function ie(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}const bi="n-internal-select-menu",us="n-internal-select-menu-body",gr="n-drawer-body",vi="n-drawer",mr="n-modal-body",Xu="n-modal-provider",fs="n-modal",Wo="n-popover-body",hs="__disabled__";function Zt(e){const t=Ee(mr,null),n=Ee(gr,null),o=Ee(Wo,null),r=Ee(us,null),i=B();if(typeof document<"u"){i.value=document.fullscreenElement;const s=()=>{i.value=document.fullscreenElement};tn(()=>{Lt("fullscreenchange",document,s)}),vn(()=>{Yt("fullscreenchange",document,s)})}return tt(()=>{var s;const{to:l}=e;return l!==void 0?l===!1?hs:l===!0?i.value||"body":l:t!=null&&t.value?(s=t.value.$el)!==null&&s!==void 0?s:t.value:n!=null&&n.value?n.value:o!=null&&o.value?o.value:r!=null&&r.value?r.value:l??(i.value||"body")})}Zt.tdkey=hs;Zt.propTo={type:[String,Object,Boolean],default:void 0};function Zu(e,t,n){var o;const r=Ee(e,null);if(r===null)return;const i=(o=di())===null||o===void 0?void 0:o.proxy;mt(n,s),s(n.value),vn(()=>{s(void 0,n.value)});function s(c,u){if(!r)return;const f=r[t];u!==void 0&&l(f,u),c!==void 0&&d(f,c)}function l(c,u){c[u]||(c[u]=[]),c[u].splice(c[u].findIndex(f=>f===i),1)}function d(c,u){c[u]||(c[u]=[]),~c[u].findIndex(f=>f===i)||c[u].push(i)}}function Qu(e,t,n){const o=B(e.value);let r=null;return mt(e,i=>{r!==null&&window.clearTimeout(r),i===!0?n&&!n.value?o.value=!0:r=window.setTimeout(()=>{o.value=!0},t):o.value=!1}),o}const xn=typeof document<"u"&&typeof window<"u";let ol=!1;function Ju(){if(xn&&window.CSS&&!ol&&(ol=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}const xi=B(!1);function rl(){xi.value=!0}function al(){xi.value=!1}let Jo=0;function ps(){return xn&&(hr(()=>{Jo||(window.addEventListener("compositionstart",rl),window.addEventListener("compositionend",al)),Jo++}),vn(()=>{Jo<=1?(window.removeEventListener("compositionstart",rl),window.removeEventListener("compositionend",al),Jo=0):Jo--})),xi}let Oo=0,il="",ll="",sl="",dl="";const cl=B("0px");function gs(e){if(typeof document>"u")return;const t=document.documentElement;let n,o=!1;const r=()=>{t.style.marginRight=il,t.style.overflow=ll,t.style.overflowX=sl,t.style.overflowY=dl,cl.value="0px"};tn(()=>{n=mt(e,i=>{if(i){if(!Oo){const s=window.innerWidth-t.offsetWidth;s>0&&(il=t.style.marginRight,t.style.marginRight=`${s}px`,cl.value=`${s}px`),ll=t.style.overflow,sl=t.style.overflowX,dl=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}o=!0,Oo++}else Oo--,Oo||r(),o=!1},{immediate:!0})}),vn(()=>{n==null||n(),o&&(Oo--,Oo||r(),o=!1)})}function Ci(e){const t={isDeactivated:!1};let n=!1;return Bu(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),ns(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function ms(e,t){t&&(tn(()=>{const{value:n}=e;n&&ua.registerHandler(n,t)}),mt(e,(n,o)=>{o&&ua.unregisterHandler(o)},{deep:!1}),vn(()=>{const{value:n}=e;n&&ua.unregisterHandler(n)}))}function sr(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}const ef=/^(\d|\.)+$/,ul=/(\d|\.)+/;function _t(e,{c:t=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const r=(e+n)*t;return r===0?"0":`${r}px`}else if(typeof e=="string")if(ef.test(e)){const r=(Number(e)+n)*t;return o?r===0?"0":`${r}px`:`${r}`}else{const r=ul.exec(e);return r?e.replace(ul,String((Number(r[0])+n)*t)):e}return e}function fl(e){const{left:t,right:n,top:o,bottom:r}=Nt(e);return`${o} ${t} ${r} ${n}`}function tf(e,t){if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}let ha;function nf(){return ha===void 0&&(ha=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),ha}const bs=new WeakSet;function dr(e){bs.add(e)}function vs(e){return!bs.has(e)}function hl(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Ua(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}const pl=new Set;function of(e,t){const n=`[naive/${e}]: ${t}`;pl.has(n)||(pl.add(n),console.error(n))}function hn(e,t){console.error(`[naive/${e}]: ${t}`)}function Gn(e,t){throw new Error(`[naive/${e}]: ${t}`)}function ae(e,...t){if(Array.isArray(e))e.forEach(n=>ae(n,...t));else return e(...t)}function xs(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function Cs(e){return t=>{t?e.value=t.$el:e.value=null}}function Rn(e,t=!0,n=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&n.push(ja(String(o)));return}if(Array.isArray(o)){Rn(o,t,n);return}if(o.type===Gt){if(o.children===null)return;Array.isArray(o.children)&&Rn(o.children,t,n)}else{if(o.type===ci&&t)return;n.push(o)}}}),n}function rf(e,t="default",n=void 0){const o=e[t];if(!o)return hn("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=Rn(o(n));return r.length===1?r[0]:(hn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function af(e,t,n){if(!t)return null;const o=Rn(t(n));return o.length===1?o[0]:(hn("getFirstSlotVNode",`slot[${e}] should have exactly one child`),null)}function br(e,t="default",n=[]){const r=e.$slots[t];return r===void 0?n:r()}function gl(e,t="default",n=[]){const{children:o}=e;if(o!==null&&typeof o=="object"&&!Array.isArray(o)){const r=o[t];if(typeof r=="function")return r()}return n}function lf(e){var t;const n=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:o})=>o===En);return!!(n&&n.value===!1)}function bn(e,t=[],n){const o={};return t.forEach(r=>{o[r]=e[r]}),Object.assign(o,n)}function zn(e){return Object.keys(e)}function ar(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(o=>{o&&o(n)})}}function To(e,t=[],n){const o={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(o[i]=e[i])}),Object.assign(o,n)}function kt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?ja(e):typeof e=="number"?ja(String(e)):null}function Bn(e){return e.some(t=>Ou(t)?!(t.type===ci||t.type===Gt&&!Bn(t.children)):!0)?e:null}function pt(e,t){return e&&Bn(e())||t()}function ln(e,t,n){return e&&Bn(e(t))||n(t)}function bt(e,t){const n=e&&Bn(e());return t(n||null)}function Ho(e){return!(e&&Bn(e()))}const Ka=oe({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Pn="n-config-provider",Yr="n";function Qe(e={},t={defaultBordered:!0}){const n=Ee(Pn,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:C(()=>{var o,r;const{bordered:i}=e;return i!==void 0?i:(r=(o=n==null?void 0:n.mergedBorderedRef.value)!==null&&o!==void 0?o:t.defaultBordered)!==null&&r!==void 0?r:!0}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:os(Yr),namespaceRef:C(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function ys(){const e=Ee(Pn,null);return e?e.mergedClsPrefixRef:os(Yr)}function it(e,t,n,o){n||Gn("useThemeClass","cssVarsRef is not passed");const r=Ee(Pn,null),i=r==null?void 0:r.mergedThemeHashRef,s=r==null?void 0:r.styleMountTarget,l=B(""),d=ta();let c;const u=`__${e}`,f=()=>{let p=u;const g=t?t.value:void 0,h=i==null?void 0:i.value;h&&(p+=`-${h}`),g&&(p+=`-${g}`);const{themeOverrides:m,builtinThemeOverrides:x}=o;m&&(p+=`-${qr(JSON.stringify(m))}`),x&&(p+=`-${qr(JSON.stringify(x))}`),l.value=p,c=()=>{const y=n.value;let v="";for(const T in y)v+=`${T}: ${y[T]};`;k(`.${p}`,v).mount({id:p,ssr:d,parent:s}),c=void 0}};return Ft(()=>{f()}),{themeClass:l,onRender:()=>{c==null||c()}}}const qa="n-form-item";function Cn(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:o}={}){const r=Ee(qa,null);Je(qa,null);const i=C(n?()=>n(r):()=>{const{size:d}=e;if(d)return d;if(r){const{mergedSize:c}=r;if(c.value!==void 0)return c.value}return t}),s=C(o?()=>o(r):()=>{const{disabled:d}=e;return d!==void 0?d:r?r.disabled.value:!1}),l=C(()=>{const{status:d}=e;return d||(r==null?void 0:r.mergedValidationStatus.value)});return vn(()=>{r&&r.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:s,mergedStatusRef:l,nTriggerFormBlur(){r&&r.handleContentBlur()},nTriggerFormChange(){r&&r.handleContentChange()},nTriggerFormFocus(){r&&r.handleContentFocus()},nTriggerFormInput(){r&&r.handleContentInput()}}}const sf={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},n0={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w周",clear:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",weekPlaceholder:"选择周",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipDownload:"下载",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"}},df={name:"en-US",locale:vu},o0={name:"zh-CN",locale:xu};function $n(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Ee(Pn,null)||{},o=C(()=>{var i,s;return(s=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&s!==void 0?s:sf[e]});return{dateLocaleRef:C(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:df}),localeRef:o}}const Eo="naive-ui-style";function Wt(e,t,n){if(!t)return;const o=ta(),r=C(()=>{const{value:l}=t;if(!l)return;const d=l[e];if(d)return d}),i=Ee(Pn,null),s=()=>{Ft(()=>{const{value:l}=n,d=`${l}${e}Rtl`;if(Wu(d,o))return;const{value:c}=r;c&&c.style.mount({id:d,head:!0,anchorMetaName:Eo,props:{bPrefix:l?`.${l}-`:void 0},ssr:o,parent:i==null?void 0:i.styleMountTarget})})};return o?s():hr(s),r}const yn={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:cf,fontFamily:uf,lineHeight:ff}=yn,ws=k("body",` margin: 0; font-size: ${cf}; font-family: ${uf}; diff --git a/js/naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js.gz b/js/naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js.gz new file mode 100644 index 00000000..b4f476d1 Binary files /dev/null and b/js/naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js.gz differ diff --git a/js/pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js b/js/pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js similarity index 100% rename from js/pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js rename to js/pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js diff --git a/js/pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js.gz b/js/pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js.gz similarity index 100% rename from js/pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js.gz rename to js/pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js.gz diff --git a/js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js b/js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js new file mode 100644 index 00000000..2bce4a86 --- /dev/null +++ b/js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js @@ -0,0 +1,5 @@ +import{k as M,m as V,z,e as G,a as E,A as B,d as $,u as T,v as tt,x as et}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{i as st,w as nt,k as ot,n as ct,f as rt}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";/*! + * pinia v2.3.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */let D;const k=t=>D=t,J=Symbol();function L(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var p;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(p||(p={}));function St(){const t=z(!0),c=t.run(()=>M({}));let s=[],e=[];const r=V({install(u){k(r),r._a=u,u.provide(J,r),u.config.globalProperties.$pinia=r,e.forEach(f=>s.push(f)),e=[]},use(u){return this._a?s.push(u):e.push(u),this},_p:s,_a:null,_e:t,_s:new Map,state:c});return r}const K=()=>{};function F(t,c,s,e=K){t.push(c);const r=()=>{const u=t.indexOf(c);u>-1&&(t.splice(u,1),e())};return!s&&T()&&tt(r),r}function P(t,...c){t.slice().forEach(s=>{s(...c)})}const ut=t=>t(),H=Symbol(),I=Symbol();function O(t,c){t instanceof Map&&c instanceof Map?c.forEach((s,e)=>t.set(e,s)):t instanceof Set&&c instanceof Set&&c.forEach(t.add,t);for(const s in c){if(!c.hasOwnProperty(s))continue;const e=c[s],r=t[s];L(r)&&L(e)&&t.hasOwnProperty(s)&&!E(e)&&!B(e)?t[s]=O(r,e):t[s]=e}return t}const at=Symbol();function ft(t){return!L(t)||!t.hasOwnProperty(at)}const{assign:y}=Object;function it(t){return!!(E(t)&&t.effect)}function lt(t,c,s,e){const{state:r,actions:u,getters:f}=c,a=s.state.value[t];let C;function b(){a||(s.state.value[t]=r?r():{});const S=et(s.state.value[t]);return y(S,u,Object.keys(f||{}).reduce((v,m)=>(v[m]=V(rt(()=>{k(s);const _=s._s.get(t);return f[m].call(_,_)})),v),{}))}return C=q(t,b,c,s,e,!0),C}function q(t,c,s={},e,r,u){let f;const a=y({actions:{}},s),C={deep:!0};let b,S,v=[],m=[],_;const d=e.state.value[t];!u&&!d&&(e.state.value[t]={}),M({});let W;function N(o){let n;b=S=!1,typeof o=="function"?(o(e.state.value[t]),n={type:p.patchFunction,storeId:t,events:_}):(O(e.state.value[t],o),n={type:p.patchObject,payload:o,storeId:t,events:_});const i=W=Symbol();ct().then(()=>{W===i&&(b=!0)}),S=!0,P(v,n,e.state.value[t])}const Q=u?function(){const{state:n}=s,i=n?n():{};this.$patch(j=>{y(j,i)})}:K;function U(){f.stop(),v=[],m=[],e._s.delete(t)}const A=(o,n="")=>{if(H in o)return o[I]=n,o;const i=function(){k(e);const j=Array.from(arguments),w=[],R=[];function Y(l){w.push(l)}function Z(l){R.push(l)}P(m,{args:j,name:i[I],store:h,after:Y,onError:Z});let x;try{x=o.apply(this&&this.$id===t?this:h,j)}catch(l){throw P(R,l),l}return x instanceof Promise?x.then(l=>(P(w,l),l)).catch(l=>(P(R,l),Promise.reject(l))):(P(w,x),x)};return i[H]=!0,i[I]=n,i},X={_p:e,$id:t,$onAction:F.bind(null,m),$patch:N,$reset:Q,$subscribe(o,n={}){const i=F(v,o,n.detached,()=>j()),j=f.run(()=>nt(()=>e.state.value[t],w=>{(n.flush==="sync"?S:b)&&o({storeId:t,type:p.direct,events:_},w)},y({},C,n)));return i},$dispose:U},h=G(X);e._s.set(t,h);const g=(e._a&&e._a.runWithContext||ut)(()=>e._e.run(()=>(f=z()).run(()=>c({action:A}))));for(const o in g){const n=g[o];if(E(n)&&!it(n)||B(n))u||(d&&ft(n)&&(E(n)?n.value=d[o]:O(n,d[o])),e.state.value[t][o]=n);else if(typeof n=="function"){const i=A(n,o);g[o]=i,a.actions[o]=n}}return y(h,g),y($(h),g),Object.defineProperty(h,"$state",{get:()=>e.state.value[t],set:o=>{N(n=>{y(n,o)})}}),e._p.forEach(o=>{y(h,f.run(()=>o({store:h,app:e._a,pinia:e,options:a})))}),d&&u&&s.hydrate&&s.hydrate(h.$state,d),b=!0,S=!0,h}/*! #__NO_SIDE_EFFECTS__ */function vt(t,c,s){let e,r;const u=typeof c=="function";typeof t=="string"?(e=t,r=u?s:c):(r=t,e=t.id);function f(a,C){const b=ot();return a=a||(b?st(J,null):null),a&&k(a),a=D,a._s.has(e)||(u?q(e,c,r,a):lt(e,r,a)),a._s.get(e)}return f.$id=e,f}export{St as c,vt as d}; diff --git a/js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js.gz b/js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js.gz new file mode 100644 index 00000000..196a92a6 Binary files /dev/null and b/js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js.gz differ diff --git a/js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js b/js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js deleted file mode 100644 index 6e354088..00000000 --- a/js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js +++ /dev/null @@ -1,5 +0,0 @@ -import{i as G,w as $,R as T,n as tt,f as et}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as M,m as V,y as q,e as st,a as E,z,d as nt,q as ot,v as ct,x as rt}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";/*! - * pinia v2.3.0 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */let B;const R=t=>B=t,D=Symbol();function L(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var p;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(p||(p={}));function St(){const t=q(!0),c=t.run(()=>M({}));let s=[],e=[];const r=V({install(u){R(r),r._a=u,u.provide(D,r),u.config.globalProperties.$pinia=r,e.forEach(f=>s.push(f)),e=[]},use(u){return this._a?s.push(u):e.push(u),this},_p:s,_a:null,_e:t,_s:new Map,state:c});return r}const J=()=>{};function A(t,c,s,e=J){t.push(c);const r=()=>{const u=t.indexOf(c);u>-1&&(t.splice(u,1),e())};return!s&&ot()&&ct(r),r}function P(t,...c){t.slice().forEach(s=>{s(...c)})}const ut=t=>t(),H=Symbol(),I=Symbol();function O(t,c){t instanceof Map&&c instanceof Map?c.forEach((s,e)=>t.set(e,s)):t instanceof Set&&c instanceof Set&&c.forEach(t.add,t);for(const s in c){if(!c.hasOwnProperty(s))continue;const e=c[s],r=t[s];L(r)&&L(e)&&t.hasOwnProperty(s)&&!E(e)&&!z(e)?t[s]=O(r,e):t[s]=e}return t}const at=Symbol();function ft(t){return!L(t)||!t.hasOwnProperty(at)}const{assign:y}=Object;function it(t){return!!(E(t)&&t.effect)}function lt(t,c,s,e){const{state:r,actions:u,getters:f}=c,a=s.state.value[t];let C;function b(){a||(s.state.value[t]=r?r():{});const S=rt(s.state.value[t]);return y(S,u,Object.keys(f||{}).reduce((v,m)=>(v[m]=V(et(()=>{R(s);const _=s._s.get(t);return f[m].call(_,_)})),v),{}))}return C=K(t,b,c,s,e,!0),C}function K(t,c,s={},e,r,u){let f;const a=y({actions:{}},s),C={deep:!0};let b,S,v=[],m=[],_;const d=e.state.value[t];!u&&!d&&(e.state.value[t]={}),M({});let W;function N(o){let n;b=S=!1,typeof o=="function"?(o(e.state.value[t]),n={type:p.patchFunction,storeId:t,events:_}):(O(e.state.value[t],o),n={type:p.patchObject,payload:o,storeId:t,events:_});const i=W=Symbol();tt().then(()=>{W===i&&(b=!0)}),S=!0,P(v,n,e.state.value[t])}const Q=u?function(){const{state:n}=s,i=n?n():{};this.$patch(j=>{y(j,i)})}:J;function U(){f.stop(),v=[],m=[],e._s.delete(t)}const F=(o,n="")=>{if(H in o)return o[I]=n,o;const i=function(){R(e);const j=Array.from(arguments),w=[],k=[];function Y(l){w.push(l)}function Z(l){k.push(l)}P(m,{args:j,name:i[I],store:h,after:Y,onError:Z});let x;try{x=o.apply(this&&this.$id===t?this:h,j)}catch(l){throw P(k,l),l}return x instanceof Promise?x.then(l=>(P(w,l),l)).catch(l=>(P(k,l),Promise.reject(l))):(P(w,x),x)};return i[H]=!0,i[I]=n,i},X={_p:e,$id:t,$onAction:A.bind(null,m),$patch:N,$reset:Q,$subscribe(o,n={}){const i=A(v,o,n.detached,()=>j()),j=f.run(()=>$(()=>e.state.value[t],w=>{(n.flush==="sync"?S:b)&&o({storeId:t,type:p.direct,events:_},w)},y({},C,n)));return i},$dispose:U},h=st(X);e._s.set(t,h);const g=(e._a&&e._a.runWithContext||ut)(()=>e._e.run(()=>(f=q()).run(()=>c({action:F}))));for(const o in g){const n=g[o];if(E(n)&&!it(n)||z(n))u||(d&&ft(n)&&(E(n)?n.value=d[o]:O(n,d[o])),e.state.value[t][o]=n);else if(typeof n=="function"){const i=F(n,o);g[o]=i,a.actions[o]=n}}return y(h,g),y(nt(h),g),Object.defineProperty(h,"$state",{get:()=>e.state.value[t],set:o=>{N(n=>{y(n,o)})}}),e._p.forEach(o=>{y(h,f.run(()=>o({store:h,app:e._a,pinia:e,options:a})))}),d&&u&&s.hydrate&&s.hydrate(h.$state,d),b=!0,S=!0,h}/*! #__NO_SIDE_EFFECTS__ */function vt(t,c,s){let e,r;const u=typeof c=="function";typeof t=="string"?(e=t,r=u?s:c):(r=t,e=t.id);function f(a,C){const b=T();return a=a||(b?G(D,null):null),a&&R(a),a=B,a._s.has(e)||(u?K(e,c,r,a):lt(e,r,a)),a._s.get(e)}return f.$id=e,f}export{St as c,vt as d}; diff --git a/js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js.gz b/js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js.gz deleted file mode 100644 index 9b3b4886..00000000 Binary files a/js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js.gz and /dev/null differ diff --git a/js/preact@10.22.0-Dw4c-0kT.js b/js/preact@10.22.0-Dw4c-0kT.js deleted file mode 100644 index ebcfd3d1..00000000 --- a/js/preact@10.22.0-Dw4c-0kT.js +++ /dev/null @@ -1 +0,0 @@ -var W,s,$e,C,te,Pe,z,Y,Z,J,U={},xe=[],Oe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,V=Array.isArray;function x(e,_){for(var t in _)e[t]=_[t];return e}function Ce(e){var _=e.parentNode;_&&_.removeChild(e)}function K(e,_,t){var n,r,o,u={};for(o in _)o=="key"?n=_[o]:o=="ref"?r=_[o]:u[o]=_[o];if(arguments.length>2&&(u.children=arguments.length>3?W.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)u[o]===void 0&&(u[o]=e.defaultProps[o]);return D(e,u,n,r,null)}function D(e,_,t,n,r){var o={type:e,props:_,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r??++$e,__i:-1,__u:0};return r==null&&s.vnode!=null&&s.vnode(o),o}function t_(){return{current:null}}function E(e){return e.children}function $(e,_){this.props=e,this.context=_}function S(e,_){if(_==null)return e.__?S(e.__,e.__i+1):null;for(var t;__&&C.sort(z));F.__r=0}function Ee(e,_,t,n,r,o,u,l,f,c,p){var i,g,a,h,k,v=n&&n.__k||xe,d=_.length;for(t.__d=f,De(t,_,v),f=t.__d,i=0;i0?D(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)!=null?(r.__=e,r.__b=e.__b+1,l=Le(r,t,u,p),r.__i=l,o=null,l!==-1&&(p--,(o=t[l])&&(o.__u|=131072)),o==null||o.__v===null?(l==-1&&i--,typeof r.type!="function"&&(r.__u|=65536)):l!==u&&(l===u+1?i++:l>u?p>f-u?i+=l-u:i--:l(f!=null&&!(131072&f.__u)?1:0))for(;u>=0||l<_.length;){if(u>=0){if((f=_[u])&&!(131072&f.__u)&&r==f.key&&o===f.type)return u;u--}if(l<_.length){if((f=_[l])&&!(131072&f.__u)&&r==f.key&&o===f.type)return l;l++}}return-1}function re(e,_,t){_[0]==="-"?e.setProperty(_,t??""):e[_]=t==null?"":typeof t!="number"||Oe.test(_)?t:t+"px"}function M(e,_,t,n,r){var o;e:if(_==="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(_ in n)t&&_ in t||re(e.style,_,"");if(t)for(_ in t)n&&t[_]===n[_]||re(e.style,_,t[_])}else if(_[0]==="o"&&_[1]==="n")o=_!==(_=_.replace(/(PointerCapture)$|Capture$/i,"$1")),_=_.toLowerCase()in e||_==="onFocusOut"||_==="onFocusIn"?_.toLowerCase().slice(2):_.slice(2),e.l||(e.l={}),e.l[_+o]=t,t?n?t.u=n.u:(t.u=Y,e.addEventListener(_,o?J:Z,o)):e.removeEventListener(_,o?J:Z,o);else{if(r=="http://www.w3.org/2000/svg")_=_.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(_!="width"&&_!="height"&&_!="href"&&_!="list"&&_!="form"&&_!="tabIndex"&&_!="download"&&_!="rowSpan"&&_!="colSpan"&&_!="role"&&_ in e)try{e[_]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&_[4]!=="-"?e.removeAttribute(_):e.setAttribute(_,t))}}function oe(e){return function(_){if(this.l){var t=this.l[_.type+e];if(_.t==null)_.t=Y++;else if(_.t3;)t.pop()();if(t[1]2&&(l.children=arguments.length>3?I.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)l[i]===void 0&&(l[i]=e.defaultProps[i]);return D(e,l,n,r,null)}function D(e,_,t,n,r){var i={type:e,props:_,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++$e,__i:-1,__u:0};return r==null&&s.vnode!=null&&s.vnode(i),i}function r_(){return{current:null}}function C(e){return e.children}function P(e,_){this.props=e,this.context=_}function E(e,_){if(_==null)return e.__?E(e.__,e.__i+1):null;for(var t;__&&S.sort(Z));R.__r=0}function He(e,_,t,n,r,i,l,u,c,f,p){var o,v,a,m,b,y,h=n&&n.__k||Ce,d=_.length;for(c=Le(t,_,h,c,d),o=0;o0?D(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=e,l.__b=e.__b+1,u=null,(f=l.__i=Re(l,t,c,o))!==-1&&(o--,(u=t[f])&&(u.__u|=2)),u==null||u.__v===null?(f==-1&&v--,typeof l.type!="function"&&(l.__u|=4)):f!=c&&(f==c-1?v--:f==c+1?v++:(f>c?v--:v++,l.__u|=4))):e.__k[i]=null;if(o)for(i=0;i(c!=null&&!(2&c.__u)?1:0))for(r=t-1,i=t+1;r>=0||i<_.length;){if(r>=0){if((c=_[r])&&!(2&c.__u)&&l==c.key&&u===c.type)return r;r--}if(i<_.length){if((c=_[i])&&!(2&c.__u)&&l==c.key&&u===c.type)return i;i++}}return-1}function oe(e,_,t){_[0]=="-"?e.setProperty(_,t??""):e[_]=t==null?"":typeof t!="number"||De.test(_)?t:t+"px"}function M(e,_,t,n,r){var i;e:if(_=="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(_ in n)t&&_ in t||oe(e.style,_,"");if(t)for(_ in t)n&&t[_]===n[_]||oe(e.style,_,t[_])}else if(_[0]=="o"&&_[1]=="n")i=_!=(_=_.replace(Se,"$1")),_=_.toLowerCase()in e||_=="onFocusOut"||_=="onFocusIn"?_.toLowerCase().slice(2):_.slice(2),e.l||(e.l={}),e.l[_+i]=t,t?n?t.u=n.u:(t.u=X,e.addEventListener(_,i?J:G,i)):e.removeEventListener(_,i?J:G,i);else{if(r=="http://www.w3.org/2000/svg")_=_.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(_!="width"&&_!="height"&&_!="href"&&_!="list"&&_!="form"&&_!="tabIndex"&&_!="download"&&_!="rowSpan"&&_!="colSpan"&&_!="role"&&_!="popover"&&_ in e)try{e[_]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&_[4]!="-"?e.removeAttribute(_):e.setAttribute(_,_=="popover"&&t==1?"":t))}}function ie(e){return function(_){if(this.l){var t=this.l[_.type+e];if(_.t==null)_.t=X++;else if(_.t3;)t.pop()();if(t[1]{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":Ye,"/src/app-config/echart-themes/macarons/macarons.json":Xe}),o=/\/([^/]+)\.json$/;return Object.keys(e).reduce((r,l)=>{var c;const s=(c=l.match(o))==null?void 0:c[1];if(s)return r.push({name:s,theme:e[l].default}),r;throw new Error(`[RChart Theme Error]: name ${l} is invalid!`)},[])},wt=e=>{const{getAppTheme:o}=ve(),{theme:t}=o();return Object.assign({},e,{text:"loading",color:"#c23531",textColor:t?"#fff":"#000",maskColor:t?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.8)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"})},Ct=()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]}),xt=(e,o)=>{var s;const{domToImageOptions:t,printOptions:r}=o??{},{create:l}=Pe(e,{...t,beforeCreate:c=>{var a,n;(a=t==null?void 0:t.beforeCreate)==null||a.call(t,c),(n=window.$loadingBar)==null||n.start()},created(c,a){var n,u;(n=t==null?void 0:t.created)==null||n.call(t,c,a),(u=window.$loadingBar)==null||u.finish()},createdError(c){var a,n;(a=t==null?void 0:t.createdError)==null||a.call(t,c),(n=window.$loadingBar)==null||n.error()}});(s=l("jpeg"))==null||s.then(c=>{const{print:a}=Fe(c,{type:"image",base64:!0,targetStyles:["*"],...Me(r,["type","base64"])});a()})},Ze=".n-menu-item-content--selected",Ge=".n-menu-item",He=".n-menu-item-content--child-active",$t=()=>{const e=f(Ie),o=(e==null?void 0:e.querySelector(Ze))||(e==null?void 0:e.querySelector(He)),t=f(Te);let r=0;const l=e==null?void 0:e.querySelector(Ge);if(t){const{height:s}=t.getBoundingClientRect();r=s}if(o&&e){const s=o.getBoundingClientRect(),c=e.getBoundingClientRect();if(!(s.top>=c.top+r&&s.bottom<=c.bottom)){const n=Re(),u=e.scrollTop,p=l?parseInt(window.getComputedStyle(l).marginTop):6;n({top:s.top-c.top+u-r-p,left:0,behavior:"smooth"})}}};var b=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(b||{});const Qe={BASE_URL:"/ray-template/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",VITE_APP_URL:"/"},_t=()=>Qe,Et=(e,o)=>{const t=document.createElement("a");t.href=e,t.download=o,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},h=(e,o)=>Object.prototype.toString.call(e).includes(o),At=(e=16,o=62)=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[],l=window.crypto||window.msCrypto;let s=0;for(s=0;s{const e=navigator.userAgent;return/windows/i.test(e)?b.Windows:/macintosh|mac os x/i.test(e)?b.MacOS:/linux/i.test(e)?b.Linux:/android/i.test(e)?b.Android:/iphone|ipad|ipod/i.test(e)?b.IOS:b.Unknown},kt=(e,o)=>{const t=e.split("?").filter(Boolean)[0],r=o.split("?").filter(Boolean)[0],l=/\/$/;return t.replace(l,"")===r.replace(l,"")},g=(e="sessionStorage")=>e==="localStorage"?window.localStorage:window.sessionStorage,y=(e,o)=>{const{prefix:t,prefixKey:r}=o??{};return t?(r||je)+e:e};function Lt(e,o="sessionStorage",t){const r=y(e,t),l=g(o);return Object.keys(l).includes(r)}function vt(e,o,t="sessionStorage",r){if(!e){console.error("[setStorage]: Failed to set stored data: key is empty");return}const l=y(e,r),s=g(t);try{s.setItem(l,JSON.stringify(o))}catch(c){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,c)}}function Pt(e,o="sessionStorage",t){const r=y(e,t),l=g(o),{defaultValue:s}=t??{};try{const c=l.getItem(r);return c===null?s??null:JSON.parse(c)}catch(c){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,c),s??null}}const Ft=(e,o,t)=>{if(!e){console.error("[removeStorage]: Failed to remove stored data: key is empty");return}const r=y(e,t),l=window.localStorage,s=window.sessionStorage,c=a=>{Object.keys(a).forEach(n=>a.removeItem(y(n,t)))};switch(e){case"__all__":c(l),c(s);break;case"__all_sessionStorage__":c(s);break;case"__all_localStorage__":c(l);break;default:g(o).removeItem(r)}},Rt=(e,o)=>{const r=S(()=>f(e),()=>{const l=f(e);l&&(typeof o=="string"?o.trim().split(" "):o).forEach(c=>{c&&l.classList.add(c)})},{immediate:!0});m(r)},It=(e,o)=>{const r=S(()=>f(e),()=>{const l=f(e);if(l)if(o==="removeAllClass"){const s=l.classList;s.forEach(c=>s.remove(c))}else(typeof o=="string"?o.trim().split(" "):o).forEach(c=>{c&&l.classList.remove(c)})},{immediate:!0});m(r)},Tt=(e,o)=>{const t=Ue(!1),l=S(()=>f(e),()=>{const s=f(e);if(!s)t.value=!1;else{const c=s.className,a=o.trim().split(" ").filter(n=>n!=="");t.value=a.some(n=>c.includes(n))}},{immediate:!0});return m(l),t},et=e=>{const o=["webkit","moz","ms","o"],t={};return o.forEach(r=>{t[`${r}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),t[e]=e,t},jt=(e,o)=>{const t=(s,c)=>{s.split(";").forEach(a=>{const[n,u]=a.split(":");if(n&&u){const p=n.trim(),x=u.trim();if(n.startsWith("--"))c.style.setProperty(p,x);else if(n.startsWith("-"))c.style.setProperty(n,u);else{const $=et(p);Object.keys($).forEach(_=>{c.style.setProperty(_,$[_])}),c.style.setProperty(p,x)}}})},l=S(()=>f(e),()=>{const s=f(e);s&&(h(o,"String")?t(o,s):h(o,"Array")?o.forEach(c=>{t(c,s)}):Object.keys(o).forEach(a=>{t(`${a}: ${o[a]}`,s)}))},{immediate:!0});m(l)},Bt=(e,o=1,t)=>{if(!e)return e;if(e.includes("rgba"))return e.replace(/rgba\((.*?),(.*?),(.*?),.*?\)/,`rgba($1,$2,$3,${o})`);if(e.includes("rgb("))return e.replace("rgb","rgba").replace(")",`, ${o})`);if(e.includes("hsla"))return e.replace(/hsla\((.*?),(.*?),(.*?),.*?\)/,`hsla($1,$2,$3,${o})`);if(e.includes("hsl("))return e.replace("hsl","hsla").replace(")",`, ${o})`);if(e.startsWith("#")){const r=e.replace("#","");try{switch(r.length){case 3:return`rgba(${parseInt(r[0]+r[0],16)}, ${parseInt(r[1]+r[1],16)}, ${parseInt(r[2]+r[2],16)}, ${o})`;case 6:return`rgba(${parseInt(r.slice(0,2),16)}, ${parseInt(r.slice(2,4),16)}, ${parseInt(r.slice(4,6),16)}, ${o})`;case 8:return`rgba(${parseInt(r.slice(0,2),16)}, ${parseInt(r.slice(2,4),16)}, ${parseInt(r.slice(4,6),16)}, ${o})`;default:return t||e}}catch{return e}}return e},Mt=(e,o)=>{const{defaultElement:t}={};if(!e)return t?[t]:null;const r=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{const l=Array.from(document.querySelectorAll(r));return!l.length&&t?[t]:l}catch(l){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,l),t?[t]:null}},Dt=(e,o="px")=>e==="auto"?e:typeof e=="number"?e.toString()+o:h(e,"String")&&Be.cssUnit.test(e)?e:e+o,d={precision:8,decimal:"."},w=(e,o,t)=>{if(!(e!=null&&e.length))return i(0,d);if(e.length===1)return i(e[0],d);const r=i(o,d);return e.reduce(t,r)},tt=(e,o)=>{const t={...d,...o},r=i(e,t),{type:l="number"}=t;return l==="number"?r.value:r.toString()},Ot=(...e)=>e.length?e.length===1?i(e[0],d).add(0):w(e,0,(o,t)=>o.add(t)):i(0,d),Ut=(...e)=>{if(!e.length)return i(0,d);if(e.length===1)return i(e[0],d).subtract(0);if(e.length===2){const[r,l]=e;return i(r,d).subtract(l)}const[o,...t]=e;return w(t,o,(r,l)=>r.subtract(l))},Vt=(...e)=>e.length===1?i(e[0],d).multiply(1):w(e,1,(o,t)=>i(o,d).multiply(t)),zt=(...e)=>{if(e.length===1)return i(e[0],d).divide(1);if(e.length===2){const[r,l]=e;return i(r,d).divide(l)}const o=De(e),t=o.shift();return w(o,t,(r,l)=>i(r,d).divide(l))},Kt=(e,o,t)=>{if(o<=1)return[e||0];if(!e)return new Array(o).fill(0);const r={...d,...t};return i(e,r).distribute(o).map(s=>tt(s,r))};function ot(e,...o){if(Array.isArray(e))e.forEach(t=>ot(t,...o));else return e(...o)}function f(e,o){var r;if(!e)return o;let t;return typeof e=="function"?t=e():Ve(e)?t=((r=e.value)==null?void 0:r.$el)??e.value:t=e,t}function qt(e,o){if(!e){const{defaultElement:t=null}=o??{};return typeof t=="function"?t:()=>t}if(typeof e=="string"||h(e,"Object"))return()=>e;if(typeof e=="function")return e}function m(e){return ze()?(Ke(e),!0):!1}function Jt(e,o){const t=qe(e,o);m(t)}const Le="4cP+dX5FI2EVYzln",Yt=(e,o)=>{try{const r=C.AES.decrypt(e,o||Le).toString(C.enc.Utf8);return JSON.parse(r)}catch(t){console.error(`Unknown error: ${t}`)}},Nt=(e,o)=>C.AES.encrypt(JSON.stringify(e),Le).toString(),Xt=(e,o,t,r)=>{if(!e||typeof e!="object"){console.warn(`[updateObjectValue]: targetObject must be an object, received ${typeof e}`);return}Object.hasOwn(e,o)&&(h(t,"Object")?e[o]={...e[o],...t}:e[o]=t,r==null||r())},Zt=e=>Oe(Object.entries(e).reverse(),(o,[t,r])=>(o[t]=r,o),{});export{Tt as A,Yt as B,Jt as C,Nt as D,Lt as E,tt as F,Kt as G,Ot as H,Ut as I,Vt as J,zt as K,_t as a,jt as b,Bt as c,Dt as d,f as e,Ct as f,Pt as g,gt as h,h as i,ot as j,Et as k,wt as l,At as m,Rt as n,m as o,xt as p,Mt as q,qt as r,vt as s,Zt as t,Xt as u,kt as v,Ft as w,$t as x,It as y,Wt as z}; diff --git a/js/utils-4asTneEs.js.gz b/js/utils-4asTneEs.js.gz new file mode 100644 index 00000000..351643e4 Binary files /dev/null and b/js/utils-4asTneEs.js.gz differ diff --git a/js/utils-DBF0WsFC.js b/js/utils-DBF0WsFC.js deleted file mode 100644 index c6966e50..00000000 --- a/js/utils-DBF0WsFC.js +++ /dev/null @@ -1 +0,0 @@ -import{u as ve,a as Pe,b as Fe,c as Re,L as Ie,S as Te,A as je,d as Be}from"./hooks-CpaAYtdw.js";import{c as i}from"./currency.js@2.0.4-9OAR_aOO.js";import{c as C}from"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{y as Me,c as De,r as Oe}from"./lodash-es@4.17.21-l6r90Unf.js";import{k as Ue,a as Ve,q as Ke,v as qe}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{w as S,j as ze}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";const E=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2","#9b8bba","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc","#7EC4FF","#5FCBB0","#49C4BF","#F0C9CA","#34DC90","#3295E0","#EAB62E","#76C3F3","#2DC2C0","#FCC43F","#84CFFF"],A="transparent",W={},k={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},L={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},v={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},P={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},F={itemStyle:{borderWidth:0,borderColor:"#ccc"}},R={itemStyle:{borderWidth:0,borderColor:"#ccc"}},I={itemStyle:{borderWidth:0,borderColor:"#ccc"}},T={itemStyle:{borderWidth:0,borderColor:"#ccc"}},j={itemStyle:{borderWidth:0,borderColor:"#ccc"}},B={itemStyle:{borderWidth:0,borderColor:"#ccc"}},M={itemStyle:{borderWidth:0,borderColor:"#ccc"}},D={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},O={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},U={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},V={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},K={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},q={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},z={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},J={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Y={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},N={textStyle:{color:"#999999"},pageTextStyle:{color:"#999999"}},X={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},Z={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},G={color:["#fc97af","#87f7cf"]},H={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},Q={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Je={color:E,backgroundColor:A,textStyle:W,title:k,line:L,radar:v,bar:P,pie:F,scatter:R,boxplot:I,parallel:T,sankey:j,funnel:B,gauge:M,candlestick:D,graph:O,map:U,geo:V,categoryAxis:K,valueAxis:q,logAxis:z,timeAxis:J,toolbox:Y,legend:N,tooltip:X,timeline:Z,visualMap:G,dataZoom:H,markPoint:Q},Ye=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:A,bar:P,boxplot:I,candlestick:D,categoryAxis:K,color:E,dataZoom:H,default:Je,funnel:B,gauge:M,geo:V,graph:O,legend:N,line:L,logAxis:z,map:U,markPoint:Q,parallel:T,pie:F,radar:v,sankey:j,scatter:R,textStyle:W,timeAxis:J,timeline:Z,title:k,toolbox:Y,tooltip:X,valueAxis:q,visualMap:G},Symbol.toStringTag,{value:"Module"})),ee=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089","#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],te="transparent",oe={},re={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},le={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},ce={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},se={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},ae={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ne={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ie={itemStyle:{borderWidth:0,borderColor:"#ccc"}},de={itemStyle:{borderWidth:0,borderColor:"#ccc"}},fe={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ue={itemStyle:{borderWidth:0,borderColor:"#ccc"}},be={itemStyle:{borderWidth:0,borderColor:"#ccc"}},pe={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},ye={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},he={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},me={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},Se={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ge={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},we={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Ce={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},xe={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},$e={textStyle:{color:"#333333"}},_e={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},Ee={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},Ae={color:["#5ab1ef","#e0ffff"]},We={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},ke={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Ne={color:ee,backgroundColor:te,textStyle:oe,title:re,line:le,radar:ce,bar:se,pie:ae,scatter:ne,boxplot:ie,parallel:de,sankey:fe,funnel:ue,gauge:be,candlestick:pe,graph:ye,map:he,geo:me,categoryAxis:Se,valueAxis:ge,logAxis:we,timeAxis:Ce,toolbox:xe,legend:$e,tooltip:_e,timeline:Ee,visualMap:Ae,dataZoom:We,markPoint:ke},Xe=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:te,bar:se,boxplot:ie,candlestick:pe,categoryAxis:Se,color:ee,dataZoom:We,default:Ne,funnel:ue,gauge:be,geo:me,graph:ye,legend:$e,line:le,logAxis:we,map:he,markPoint:ke,parallel:de,pie:ae,radar:ce,sankey:fe,scatter:ne,textStyle:oe,timeAxis:Ce,timeline:Ee,title:re,toolbox:xe,tooltip:_e,valueAxis:ge,visualMap:Ae},Symbol.toStringTag,{value:"Module"})),gt=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":Ye,"/src/app-config/echart-themes/macarons/macarons.json":Xe}),o=/\/([^/]+)\.json$/;return Object.keys(e).reduce((r,l)=>{var c;const s=(c=l.match(o))==null?void 0:c[1];if(s)return r.push({name:s,theme:e[l].default}),r;throw new Error(`[RChart Theme Error]: name ${l} is invalid!`)},[])},wt=e=>{const{getAppTheme:o}=ve(),{theme:t}=o();return Object.assign({},e,{text:"loading",color:"#c23531",textColor:t?"#fff":"#000",maskColor:t?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.8)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"})},Ct=()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]}),xt=(e,o)=>{var s;const{domToImageOptions:t,printOptions:r}=o??{},{create:l}=Pe(e,{...t,beforeCreate:c=>{var a,n;(a=t==null?void 0:t.beforeCreate)==null||a.call(t,c),(n=window.$loadingBar)==null||n.start()},created(c,a){var n,u;(n=t==null?void 0:t.created)==null||n.call(t,c,a),(u=window.$loadingBar)==null||u.finish()},createdError(c){var a,n;(a=t==null?void 0:t.createdError)==null||a.call(t,c),(n=window.$loadingBar)==null||n.error()}});(s=l("jpeg"))==null||s.then(c=>{const{print:a}=Fe(c,{type:"image",base64:!0,targetStyles:["*"],...Me(r,["type","base64"])});a()})},Ze=".n-menu-item-content--selected",Ge=".n-menu-item",He=".n-menu-item-content--child-active",$t=()=>{const e=f(Ie),o=(e==null?void 0:e.querySelector(Ze))||(e==null?void 0:e.querySelector(He)),t=f(Te);let r=0;const l=e==null?void 0:e.querySelector(Ge);if(t){const{height:s}=t.getBoundingClientRect();r=s}if(o&&e){const s=o.getBoundingClientRect(),c=e.getBoundingClientRect();if(!(s.top>=c.top+r&&s.bottom<=c.bottom)){const n=Re(),u=e.scrollTop,p=l?parseInt(window.getComputedStyle(l).marginTop):6;n({top:s.top-c.top+u-r-p,left:0,behavior:"smooth"})}}};var b=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(b||{});const Qe={BASE_URL:"/ray-template/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",VITE_APP_URL:"/"},_t=()=>Qe,Et=(e,o)=>{const t=document.createElement("a");t.href=e,t.download=o,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},y=(e,o)=>Object.prototype.toString.call(e).includes(o),At=(e=16,o=62)=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[],l=window.crypto||window.msCrypto;let s=0;for(s=0;s{const e=navigator.userAgent;return/windows/i.test(e)?b.Windows:/macintosh|mac os x/i.test(e)?b.MacOS:/linux/i.test(e)?b.Linux:/android/i.test(e)?b.Android:/iphone|ipad|ipod/i.test(e)?b.IOS:b.Unknown},kt=(e,o)=>{const t=e.split("?").filter(Boolean)[0],r=o.split("?").filter(Boolean)[0],l=/\/$/;return t.replace(l,"")===r.replace(l,"")},g=(e="sessionStorage")=>e==="localStorage"?window.localStorage:window.sessionStorage,h=(e,o)=>{const{prefix:t,prefixKey:r}=o??{};return t?(r||je)+e:e};function Lt(e,o="sessionStorage",t){const r=h(e,t),l=g(o);return Object.keys(l).includes(r)}function vt(e,o,t="sessionStorage",r){if(!e){console.error("[setStorage]: Failed to set stored data: key is empty");return}const l=h(e,r),s=g(t);try{s.setItem(l,JSON.stringify(o))}catch(c){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,c)}}function Pt(e,o="sessionStorage",t){const r=h(e,t),l=g(o),{defaultValue:s}=t??{};try{const c=l.getItem(r);return c===null?s??null:JSON.parse(c)}catch(c){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,c),s??null}}const Ft=(e,o,t)=>{if(!e){console.error("[removeStorage]: Failed to remove stored data: key is empty");return}const r=h(e,t),l=window.localStorage,s=window.sessionStorage,c=a=>{Object.keys(a).forEach(n=>a.removeItem(h(n,t)))};switch(e){case"__all__":c(l),c(s);break;case"__all_sessionStorage__":c(s);break;case"__all_localStorage__":c(l);break;default:g(o).removeItem(r)}},Rt=(e,o)=>{const r=S(()=>f(e),()=>{const l=f(e);l&&(typeof o=="string"?o.trim().split(" "):o).forEach(c=>{c&&l.classList.add(c)})},{immediate:!0});m(r)},It=(e,o)=>{const r=S(()=>f(e),()=>{const l=f(e);if(l)if(o==="removeAllClass"){const s=l.classList;s.forEach(c=>s.remove(c))}else(typeof o=="string"?o.trim().split(" "):o).forEach(c=>{c&&l.classList.remove(c)})},{immediate:!0});m(r)},Tt=(e,o)=>{const t=Ue(!1),l=S(()=>f(e),()=>{const s=f(e);if(!s)t.value=!1;else{const c=s.className,a=o.trim().split(" ").filter(n=>n!=="");t.value=a.some(n=>c.includes(n))}},{immediate:!0});return m(l),t},et=e=>{const o=["webkit","moz","ms","o"],t={};return o.forEach(r=>{t[`${r}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),t[e]=e,t},jt=(e,o)=>{const t=(s,c)=>{s.split(";").forEach(a=>{const[n,u]=a.split(":");if(n&&u){const p=n.trim(),x=u.trim();if(n.startsWith("--"))c.style.setProperty(p,x);else if(n.startsWith("-"))c.style.setProperty(n,u);else{const $=et(p);Object.keys($).forEach(_=>{c.style.setProperty(_,$[_])}),c.style.setProperty(p,x)}}})},l=S(()=>f(e),()=>{const s=f(e);s&&(y(o,"String")?t(o,s):y(o,"Array")?o.forEach(c=>{t(c,s)}):Object.keys(o).forEach(a=>{t(`${a}: ${o[a]}`,s)}))},{immediate:!0});m(l)},Bt=(e,o=1,t)=>{if(!e)return e;if(e.includes("rgba"))return e.replace(/rgba\((.*?),(.*?),(.*?),.*?\)/,`rgba($1,$2,$3,${o})`);if(e.includes("rgb("))return e.replace("rgb","rgba").replace(")",`, ${o})`);if(e.includes("hsla"))return e.replace(/hsla\((.*?),(.*?),(.*?),.*?\)/,`hsla($1,$2,$3,${o})`);if(e.includes("hsl("))return e.replace("hsl","hsla").replace(")",`, ${o})`);if(e.startsWith("#")){const r=e.replace("#","");try{switch(r.length){case 3:return`rgba(${parseInt(r[0]+r[0],16)}, ${parseInt(r[1]+r[1],16)}, ${parseInt(r[2]+r[2],16)}, ${o})`;case 6:return`rgba(${parseInt(r.slice(0,2),16)}, ${parseInt(r.slice(2,4),16)}, ${parseInt(r.slice(4,6),16)}, ${o})`;case 8:return`rgba(${parseInt(r.slice(0,2),16)}, ${parseInt(r.slice(2,4),16)}, ${parseInt(r.slice(4,6),16)}, ${o})`;default:return t||e}}catch{return e}}return e},Mt=(e,o)=>{const{defaultElement:t}={};if(!e)return t?[t]:null;const r=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{const l=Array.from(document.querySelectorAll(r));return!l.length&&t?[t]:l}catch(l){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,l),t?[t]:null}},Dt=(e,o="px")=>e==="auto"?e:typeof e=="number"?e.toString()+o:y(e,"String")&&Be.cssUnit.test(e)?e:e+o,d={precision:8,decimal:"."},w=(e,o,t)=>{if(!(e!=null&&e.length))return i(0,d);if(e.length===1)return i(e[0],d);const r=i(o,d);return e.reduce(t,r)},tt=(e,o)=>{const t={...d,...o},r=i(e,t),{type:l="number"}=t;return l==="number"?r.value:r.toString()},Ot=(...e)=>e.length?e.length===1?i(e[0],d).add(0):w(e,0,(o,t)=>o.add(t)):i(0,d),Ut=(...e)=>{if(!e.length)return i(0,d);if(e.length===1)return i(e[0],d).subtract(0);if(e.length===2){const[r,l]=e;return i(r,d).subtract(l)}const[o,...t]=e;return w(t,o,(r,l)=>r.subtract(l))},Vt=(...e)=>e.length===1?i(e[0],d).multiply(1):w(e,1,(o,t)=>i(o,d).multiply(t)),Kt=(...e)=>{if(e.length===1)return i(e[0],d).divide(1);if(e.length===2){const[r,l]=e;return i(r,d).divide(l)}const o=De(e),t=o.shift();return w(o,t,(r,l)=>i(r,d).divide(l))},qt=(e,o,t)=>{if(o<=1)return[e||0];if(!e)return new Array(o).fill(0);const r={...d,...t};return i(e,r).distribute(o).map(s=>tt(s,r))};function ot(e,...o){if(Array.isArray(e))e.forEach(t=>ot(t,...o));else return e(...o)}function f(e,o){var r;if(!e)return o;let t;return typeof e=="function"?t=e():Ve(e)?t=((r=e.value)==null?void 0:r.$el)??e.value:t=e,t}function zt(e,o){if(!e){const{defaultElement:t=null}=o??{};return typeof t=="function"?t:()=>t}if(typeof e=="string"||y(e,"Object"))return()=>e;if(typeof e=="function")return e}function m(e){return Ke()?(qe(e),!0):!1}function Jt(e,o){const t=ze(e,o);m(t)}const Le="4cP+dX5FI2EVYzln",Yt=(e,o)=>{try{const r=C.AES.decrypt(e,o||Le).toString(C.enc.Utf8);return JSON.parse(r)}catch(t){console.error(`Unknown error: ${t}`)}},Nt=(e,o)=>C.AES.encrypt(JSON.stringify(e),Le).toString(),Xt=(e,o,t,r)=>{if(!e||typeof e!="object"){console.warn(`[updateObjectValue]: targetObject must be an object, received ${typeof e}`);return}Object.hasOwn(e,o)&&(y(t,"Object")?e[o]={...e[o],...t}:e[o]=t,r==null||r())},Zt=e=>Oe(Object.entries(e).reverse(),(o,[t,r])=>(o[t]=r,o),{});export{Tt as A,Yt as B,Jt as C,Nt as D,Lt as E,tt as F,qt as G,Ot as H,Ut as I,Vt as J,Kt as K,_t as a,jt as b,Bt as c,Dt as d,f as e,Ct as f,Pt as g,gt as h,y as i,ot as j,Et as k,wt as l,At as m,Rt as n,m as o,xt as p,Mt as q,zt as r,vt as s,Zt as t,Xt as u,kt as v,Ft as w,$t as x,It as y,Wt as z}; diff --git a/js/utils-DBF0WsFC.js.gz b/js/utils-DBF0WsFC.js.gz deleted file mode 100644 index 3b8c6df5..00000000 Binary files a/js/utils-DBF0WsFC.js.gz and /dev/null differ diff --git a/js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js.gz b/js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js.gz deleted file mode 100644 index f1d2433e..00000000 Binary files a/js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js.gz and /dev/null differ diff --git a/js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js b/js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js similarity index 77% rename from js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js rename to js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js index eda84b00..a5b0f3d5 100644 --- a/js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js +++ b/js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js @@ -1 +1 @@ -import{k as c,l as d,e as j}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{w as C,f as k,d as q,k as S,v as b,t as T}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{o as m,a as p}from"./evtd@0.2.4-CI_DDEu_.js";function K(e){const n=c(!!e.value);if(n.value)return d(n);const t=C(e,i=>{i&&(n.value=!0,t())});return d(n)}function Q(e){const n=k(e),t=c(n.value);return C(n,i=>{t.value=i}),typeof e=="function"?t:{__v_isRef:!0,get value(){return t.value},set value(i){e.set(i)}}}function B(){return q()!==null}const E=typeof window<"u";let w,y;const D=()=>{var e,n;w=E?(n=(e=document)===null||e===void 0?void 0:e.fonts)===null||n===void 0?void 0:n.ready:void 0,y=!1,w!==void 0?w.then(()=>{y=!0}):y=!0};D();function z(e){if(y)return;let n=!1;S(()=>{y||w==null||w.then(()=>{n||e()})}),b(()=>{n=!0})}const v=c(null);function I(e){if(e.clientX>0||e.clientY>0)v.value={x:e.clientX,y:e.clientY};else{const{target:n}=e;if(n instanceof Element){const{left:t,top:i,width:o,height:u}=n.getBoundingClientRect();t>0||i>0?v.value={x:t+o/2,y:i+u/2}:v.value={x:0,y:0}}else v.value=null}}let g=0,_=!0;function A(){if(!E)return d(c(null));g===0&&m("click",document,I,!0);const e=()=>{g+=1};return _&&(_=B())?(T(e),b(()=>{g-=1,g===0&&p("click",document,I,!0)})):e(),d(v)}const F=c(void 0);let M=0;function H(){F.value=Date.now()}let L=!0;function G(e){if(!E)return d(c(!1));const n=c(!1);let t=null;function i(){t!==null&&window.clearTimeout(t)}function o(){i(),n.value=!0,t=window.setTimeout(()=>{n.value=!1},e)}M===0&&m("click",window,H,!0);const u=()=>{M+=1,m("click",window,o,!0)};return L&&(L=B())?(T(u),b(()=>{M-=1,M===0&&p("click",window,H,!0),p("click",window,o,!0),i()})):u(),d(n)}function J(e,n){return C(e,t=>{t!==void 0&&(n.value=t)}),k(()=>e.value===void 0?n.value:e.value)}function O(){const e=c(!1);return S(()=>{e.value=!0}),d(e)}function W(e,n){return k(()=>{for(const t of n)if(e[t]!==void 0)return e[t];return e[n[n.length-1]]})}const R=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Z(){return R}const $={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function U(e){return`(min-width: ${e}px)`}const h={};function N(e=$){if(!E)return k(()=>[]);if(typeof window.matchMedia!="function")return k(()=>[]);const n=c({}),t=Object.keys(e),i=(o,u)=>{o.matches?n.value[u]=!0:n.value[u]=!1};return t.forEach(o=>{const u=e[o];let s,f;h[u]===void 0?(s=window.matchMedia(U(u)),s.addEventListener?s.addEventListener("change",a=>{f.forEach(r=>{r(a,o)})}):s.addListener&&s.addListener(a=>{f.forEach(r=>{r(a,o)})}),f=new Set,h[u]={mql:s,cbs:f}):(s=h[u].mql,f=h[u].cbs),f.add(i),s.matches&&f.forEach(a=>{a(s,o)})}),b(()=>{t.forEach(o=>{const{cbs:u}=h[e[o]];u.has(i)&&u.delete(i)})}),k(()=>{const{value:o}=n;return t.filter(u=>o[u])})}function ee(e={},n){const t=j({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:o}=e,u=a=>{switch(a.key){case"Control":t.ctrl=!0;break;case"Meta":t.command=!0,t.win=!0;break;case"Shift":t.shift=!0;break;case"Tab":t.tab=!0;break}i!==void 0&&Object.keys(i).forEach(r=>{if(r!==a.key)return;const l=i[r];if(typeof l=="function")l(a);else{const{stop:x=!1,prevent:P=!1}=l;x&&a.stopPropagation(),P&&a.preventDefault(),l.handler(a)}})},s=a=>{switch(a.key){case"Control":t.ctrl=!1;break;case"Meta":t.command=!1,t.win=!1;break;case"Shift":t.shift=!1;break;case"Tab":t.tab=!1;break}o!==void 0&&Object.keys(o).forEach(r=>{if(r!==a.key)return;const l=o[r];if(typeof l=="function")l(a);else{const{stop:x=!1,prevent:P=!1}=l;x&&a.stopPropagation(),P&&a.preventDefault(),l.handler(a)}})},f=()=>{(n===void 0||n.value)&&(m("keydown",document,u),m("keyup",document,s)),n!==void 0&&C(n,a=>{a?(m("keydown",document,u),m("keyup",document,s)):(p("keydown",document,u),p("keyup",document,s))})};return B()?(T(f),b(()=>{(n===void 0||n.value)&&(p("keydown",document,u),p("keyup",document,s))})):f(),d(t)}export{Z as a,J as b,W as c,ee as d,G as e,A as f,N as g,K as h,O as i,z as o,Q as u}; +import{k as c,n as d,e as j}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{w as x,f as k,d as q,l as S,x as b,v as T}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{o as m,a as p}from"./evtd@0.2.4-CI_DDEu_.js";function K(e){const n=c(!!e.value);if(n.value)return d(n);const t=x(e,i=>{i&&(n.value=!0,t())});return d(n)}function Q(e){const n=k(e),t=c(n.value);return x(n,i=>{t.value=i}),typeof e=="function"?t:{__v_isRef:!0,get value(){return t.value},set value(i){e.set(i)}}}function B(){return q()!==null}const C=typeof window<"u";let w,y;const D=()=>{var e,n;w=C?(n=(e=document)===null||e===void 0?void 0:e.fonts)===null||n===void 0?void 0:n.ready:void 0,y=!1,w!==void 0?w.then(()=>{y=!0}):y=!0};D();function z(e){if(y)return;let n=!1;S(()=>{y||w==null||w.then(()=>{n||e()})}),b(()=>{n=!0})}const v=c(null);function I(e){if(e.clientX>0||e.clientY>0)v.value={x:e.clientX,y:e.clientY};else{const{target:n}=e;if(n instanceof Element){const{left:t,top:i,width:o,height:u}=n.getBoundingClientRect();t>0||i>0?v.value={x:t+o/2,y:i+u/2}:v.value={x:0,y:0}}else v.value=null}}let g=0,_=!0;function A(){if(!C)return d(c(null));g===0&&m("click",document,I,!0);const e=()=>{g+=1};return _&&(_=B())?(T(e),b(()=>{g-=1,g===0&&p("click",document,I,!0)})):e(),d(v)}const F=c(void 0);let M=0;function H(){F.value=Date.now()}let L=!0;function G(e){if(!C)return d(c(!1));const n=c(!1);let t=null;function i(){t!==null&&window.clearTimeout(t)}function o(){i(),n.value=!0,t=window.setTimeout(()=>{n.value=!1},e)}M===0&&m("click",window,H,!0);const u=()=>{M+=1,m("click",window,o,!0)};return L&&(L=B())?(T(u),b(()=>{M-=1,M===0&&p("click",window,H,!0),p("click",window,o,!0),i()})):u(),d(n)}function J(e,n){return x(e,t=>{t!==void 0&&(n.value=t)}),k(()=>e.value===void 0?n.value:e.value)}function O(){const e=c(!1);return S(()=>{e.value=!0}),d(e)}function W(e,n){return k(()=>{for(const t of n)if(e[t]!==void 0)return e[t];return e[n[n.length-1]]})}const R=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Z(){return R}const $={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function U(e){return`(min-width: ${e}px)`}const h={};function N(e=$){if(!C)return k(()=>[]);if(typeof window.matchMedia!="function")return k(()=>[]);const n=c({}),t=Object.keys(e),i=(o,u)=>{o.matches?n.value[u]=!0:n.value[u]=!1};return t.forEach(o=>{const u=e[o];let s,f;h[u]===void 0?(s=window.matchMedia(U(u)),s.addEventListener?s.addEventListener("change",a=>{f.forEach(r=>{r(a,o)})}):s.addListener&&s.addListener(a=>{f.forEach(r=>{r(a,o)})}),f=new Set,h[u]={mql:s,cbs:f}):(s=h[u].mql,f=h[u].cbs),f.add(i),s.matches&&f.forEach(a=>{a(s,o)})}),b(()=>{t.forEach(o=>{const{cbs:u}=h[e[o]];u.has(i)&&u.delete(i)})}),k(()=>{const{value:o}=n;return t.filter(u=>o[u])})}function ee(e={},n){const t=j({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:o}=e,u=a=>{switch(a.key){case"Control":t.ctrl=!0;break;case"Meta":t.command=!0,t.win=!0;break;case"Shift":t.shift=!0;break;case"Tab":t.tab=!0;break}i!==void 0&&Object.keys(i).forEach(r=>{if(r!==a.key)return;const l=i[r];if(typeof l=="function")l(a);else{const{stop:E=!1,prevent:P=!1}=l;E&&a.stopPropagation(),P&&a.preventDefault(),l.handler(a)}})},s=a=>{switch(a.key){case"Control":t.ctrl=!1;break;case"Meta":t.command=!1,t.win=!1;break;case"Shift":t.shift=!1;break;case"Tab":t.tab=!1;break}o!==void 0&&Object.keys(o).forEach(r=>{if(r!==a.key)return;const l=o[r];if(typeof l=="function")l(a);else{const{stop:E=!1,prevent:P=!1}=l;E&&a.stopPropagation(),P&&a.preventDefault(),l.handler(a)}})},f=()=>{(n===void 0||n.value)&&(m("keydown",document,u),m("keyup",document,s)),n!==void 0&&x(n,a=>{a?(m("keydown",document,u),m("keyup",document,s)):(p("keydown",document,u),p("keyup",document,s))})};return B()?(T(f),b(()=>{(n===void 0||n.value)&&(p("keydown",document,u),p("keyup",document,s))})):f(),d(t)}export{Z as a,J as b,W as c,ee as d,G as e,A as f,N as g,K as h,O as i,z as o,Q as u}; diff --git a/js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js.gz b/js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js.gz new file mode 100644 index 00000000..9ddf661d Binary files /dev/null and b/js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js.gz differ diff --git a/js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js b/js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js similarity index 90% rename from js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js rename to js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js index 146bb03f..2363e017 100644 --- a/js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js +++ b/js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js @@ -1 +1 @@ -import{u as h,k as b,v as y,e as X,a as Y,x as Z,l as K}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{j as P,w as V,f as q,i as k,Q as ee}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{d as ne,t as te,c as j}from"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import{s as g}from"./screenfull@5.2.0-DQHhvod-.js";const z=(t,{manual:e,ready:n=!0,refreshDeps:s=[],refreshDepsAction:i})=>{const u=b(!1);return P(()=>{!e&&t.options.refreshDeps!==!0&&(u.value=h(n))}),s instanceof Array?V([u,...s],([r])=>{r&&!e&&r&&(i?i():t.refresh())},{deep:!0,immediate:!1}):V(u,r=>{!e&&r&&(i?i():t.refresh())}),{name:"autoRunPlugin",onBefore:()=>{if(!h(n))return{stopNow:!0}}}};z.onInit=({ready:t=!0,manual:e})=>({loading:!e&&h(t)});const T=new Map,se=(t,e,n)=>{const s=T.get(t);s!=null&&s.timer&&clearTimeout(s.timer);let i;e>-1&&(i=setTimeout(()=>{T.delete(t)},e)),T.set(t,{...n,timer:i})},ie=t=>T.get(t),F=new Map,re=t=>F.get(t),ue=(t,e)=>{F.set(t,e),e.then(n=>(F.delete(t),n)).catch(n=>{throw F.delete(t),n})},S={},le=[],ae=(t,e)=>{S[t]&&(S[t].forEach(n=>n(e)),le.forEach(n=>n({type:t,data:e})))},C=(t,e)=>(S[t]||(S[t]=[]),S[t].push(e),function(){const s=S[t].indexOf(e);S[t].splice(s,1)}),oe=(t,{cacheKey:e,cacheTime:n=5*60*1e3,staleTime:s=0,setCache:i,getCache:u})=>{const r=b(),o=b(),c=(l,f)=>{i?i(f):se(l,n,f),ae(l,f.data)},d=(l,f=[])=>u?u(f):ie(l);return P(()=>{if(!e)return;const l=d(e);l&&Object.hasOwnProperty.call(l,"data")&&(t.state.data=l.data,t.state.params=l.params,(s===-1||new Date().getTime()-l.time<=s)&&(t.state.loading=!1)),r.value=C(e,f=>{t.setState({data:f})})}),y(()=>{var l;(l=r.value)==null||l.call(r)}),e?{name:"cachePlugin",onBefore:l=>{const f=d(e,l);return!f||!Object.hasOwnProperty.call(f,"data")?{}:s===-1||new Date().getTime()-f.time<=s?{loading:!1,data:f==null?void 0:f.data,returnNow:!0}:{data:f==null?void 0:f.data}},onRequest:(l,f)=>{let m=re(e);return m&&m!==o.value?{servicePromise:m}:(m=l(...f),o.value=m,ue(e,m),{servicePromise:m})},onSuccess:(l,f)=>{var m;e&&((m=r.value)==null||m.call(r),c(e,{data:l,params:f,time:new Date().getTime()}),r.value=C(e,a=>{t.setState({data:a})}))},onMutate:l=>{var f;e&&((f=r.value)==null||f.call(r),c(e,{data:l,params:t.state.params,time:new Date().getTime()}),r.value=C(e,m=>{t.setState({data:m})}))}}:{}},ce=(t,{debounceWait:e,debounceLeading:n,debounceTrailing:s,debounceMaxWait:i})=>{const u=b(),r=q(()=>{const o={},c=h(n),d=h(s),l=h(i);return c!==void 0&&(o.leading=c),d!==void 0&&(o.trailing=d),l!==void 0&&(o.maxWait=l),o});return P(o=>{if(h(e)){const c=t.runAsync.bind(t);u.value=ne(d=>{d()},h(e),r.value),t.runAsync=(...d)=>new Promise((l,f)=>{var m;(m=u.value)==null||m.call(u,()=>{c(...d).then(l).catch(f)})}),o(()=>{var d;(d=u.value)==null||d.cancel(),t.runAsync=c})}}),h(e)?{name:"debouncePlugin",onCancel:()=>{var o;(o=u.value)==null||o.cancel()}}:{}};var fe=Object.defineProperty,de=(t,e,n)=>e in t?fe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,I=(t,e,n)=>(de(t,typeof e!="symbol"?e+"":e,n),n);class he{constructor(){I(this,"table",{}),I(this,"hashTable",{})}insert(e){const n=Symbol(e);return this.table[e]=!0,this.hashTable[n]=e,n}find(e){return this.hashTable[e]}}new he;var me=Object.defineProperty,pe=(t,e,n)=>e in t?me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Q=(t,e,n)=>(pe(t,typeof e!="symbol"?e+"":e,n),n);class ve{constructor(){Q(this,"requestInstances",new Map),Q(this,"listeners",[])}emit(e){this.listeners.forEach(n=>n(e))}subscribe(e){return this.listeners.push(e),()=>{const n=this.listeners.indexOf(e);this.listeners.splice(n,1)}}insert(e,n){this.requestInstances.set(e,{...n}),this.emit({key:e,...n})}update(e,n){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...n})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){const n=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,n)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}new ve;const be=(t,{loadingDelay:e})=>{const n=b(),s=()=>{n.value&&(clearTimeout(h(n.value)),n.value=void 0)};return{name:"loadingDelayPlugin",onFinally:()=>{s();const i=h(e);i&&(t.setState({loading:!0}),n.value=setTimeout(()=>{t.setState({loading:!1})},i))},onError:()=>{s()}}};function B(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const ge=!!(typeof window<"u"&&window.document&&window.document.createElement);function U(){return B()?document.visibilityState!=="hidden":!0}const O=[];function _e(t){return O.push(t),function(){const n=O.indexOf(t);O.splice(n,1)}}if(B()){const t=()=>{if(U())for(let e=0;e{let i;const u=b(),r=b(0),o=()=>{var c;i&&clearTimeout(i),(c=u.value)==null||c.call(u)};return P(()=>{h(e)||o()}),h(e)?{name:"pollingPlugin",onBefore:()=>{o()},onError:()=>{r.value+=1},onSuccess:()=>{r.value=0},onFinally:()=>{s===-1||s!==-1&&r.value<=s?i=setTimeout(()=>{!n&&!U()?u.value=_e(()=>{t.refresh()}):t.refresh()},h(e)):r.value=0},onCancel:()=>{o()}}:{}};function Pe(t,e){let n=!1;return(...s)=>{n||(n=!0,t(...s),setTimeout(()=>{n=!1},e))}}function Ee(){return B()&&typeof navigator.onLine<"u"?navigator.onLine:!0}const D=[];function Re(t){return D.push(t),function(){const n=D.indexOf(t);n>-1&&D.splice(n,1)}}if(ge){const t=()=>{if(!(!U()||!Ee()))for(let e=0;e{const s=b(),i=()=>{var u;(u=s.value)==null||u.call(s)};return P(u=>{if(h(e)){const r=Pe(t.refresh.bind(t),h(n));s.value=Re(()=>{r()})}u(()=>{i()})}),y(()=>{i()}),{name:"refreshOnWindowFocusPlugin"}},Oe=(t,{retryInterval:e,retryCount:n})=>{const s=b(),i=b(0),u=b(!1);return n?{name:"retryPlugin",onBefore:()=>{u.value||(i.value=0),u.value=!1,s.value&&clearTimeout(s.value)},onSuccess:()=>{i.value=0},onError:()=>{if(i.value+=1,n===-1||i.value<=n){const r=e??Math.min(1e3*2**i.value,3e4);s.value=setTimeout(()=>{u.value=!0,t.refresh()},r)}else i.value=0},onCancel:()=>{i.value=0,s.value&&clearTimeout(s.value)}}:{}},De=(t,{throttleWait:e,throttleLeading:n,throttleTrailing:s})=>{const i=q(()=>{const r={};return h(n)!==void 0&&(r.leading=h(n)),h(s)!==void 0&&(r.trailing=h(s)),r}),u=q(()=>te(r=>{r()},h(e),i.value));return P(r=>{if(h(e)){const o=t.runAsync.bind(t);t.runAsync=(...c)=>new Promise((d,l)=>{var f;(f=u.value)==null||f.call(u,()=>{o(...c).then(d).catch(l)})}),r(()=>{var c;t.runAsync=o,(c=u.value)==null||c.cancel()})}}),h(e)?{name:"throttlePlugin",onCancel:()=>{var r;(r=u.value)==null||r.cancel()}}:{}},G=t=>typeof t=="function",Ae=t=>typeof t=="boolean";var Te=Object.defineProperty,Fe=(t,e,n)=>e in t?Te(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,A=(t,e,n)=>(Fe(t,typeof e!="symbol"?e+"":e,n),n);class qe{constructor(e,n,s,i={}){A(this,"pluginImpls"),A(this,"count",0),A(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),A(this,"previousValidData"),this.serviceRef=e,this.options=n,this.setUpdateData=s,this.initState=i,this.state={...this.state,loading:!n.manual,...i}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,n){console.warn("Please use 'setFetchState' instead of 'setData'"),n instanceof Array?n.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[n]=e,this.setUpdateData(e,n))}setFetchState(e,n){n instanceof Array?n.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[n]=e,this.setUpdateData(e,n))}runPluginHandler(e,...n){var s,i,u;const r=(u=(i=(s=this.pluginImpls)==null?void 0:s.map(o=>{var c;return(c=o[e])==null?void 0:c.call(o,...n)}))!=null?i:[])==null?void 0:u.filter(Boolean);return Object.assign({},...r)}async runAsync(...e){var n,s,i,u,r,o,c,d,l,f,m;this.count+=1;const a=this.count,{stopNow:w=!1,returnNow:p=!1,..._}=this.runPluginHandler("onBefore",e);if(w)return new Promise(()=>{});if(this.setState({loading:!0,params:e,..._}),p)return Promise.resolve(_.data);try{(s=(n=this.options).onBefore)==null||s.call(n,e)}catch(v){return this.setState({error:v,loading:!1}),(u=(i=this.options).onError)==null||u.call(i,v,e),this.runPluginHandler("onError",v,e),new Promise(()=>{})}try{let{servicePromise:v}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const J=$=>{var L,H,N,M;if(a!==this.count)return new Promise(()=>{});const E=this.options.formatResult?this.options.formatResult($):$;return this.setState({data:E,error:void 0,loading:!1}),(H=(L=this.options).onSuccess)==null||H.call(L,E,e),this.runPluginHandler("onSuccess",E,e),this.previousValidData=E,(M=(N=this.options).onFinally)==null||M.call(N,e,E,void 0),a===this.count&&this.runPluginHandler("onFinally",e,E,void 0),E};v||(v=this.serviceRef.value(...e));const W=await v;return J(W)}catch(v){if(a!==this.count)return new Promise(()=>{});throw this.setState({error:v,loading:!1}),(o=(r=this.options).onError)==null||o.call(r,v,e),this.runPluginHandler("onError",v,e),(G((c=this.options)==null?void 0:c.rollbackOnError)&&((d=this.options)!=null&&d.rollbackOnError(e))||Ae((l=this.options)==null?void 0:l.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),(m=(f=this.options).onFinally)==null||m.call(f,e,void 0,v),a===this.count&&this.runPluginHandler("onFinally",e,void 0,v),v}}run(...e){this.runAsync(...e).catch(n=>{this.options.onError||console.error(n)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){const n=G(e)?e(this.state.data):e;this.runPluginHandler("onMutate",n),this.setState({data:n})}}const Ce=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function xe(t){return Object.keys(t).filter(n=>["data","loading","params","error"].includes(n)).length===4}function ye(t,e={},n=[]){const s=k(Ce,{}),{initialData:i=void 0,manual:u=!1,ready:r=!0,...o}={...s??{},...e??{}},c={manual:u,ready:r,initialData:i,...o},d=b(t),l=X({data:i,loading:!1,params:void 0,error:void 0}),f=(p,_)=>{_?l[_]=p:xe(p)&&(l.data=p.data,l.loading=p.loading,l.error=p.error,l.params=p.params)},m=n.map(p=>{var _;return(_=p==null?void 0:p.onInit)==null?void 0:_.call(p,c)}).filter(Boolean),a=new qe(d,c,f,Object.assign({},...m,l));a.options=c,a.pluginImpls=n.map(p=>p(a,c));const w=q(()=>Y(r)?r.value:r);if(P(()=>{if(!u){const p=a.state.params||e.defaultParams||[];w.value&&a.options.refreshDeps===!0&&d.value&&a.run(...p)}}),!u&&a.options.refreshDeps!==!0){const p=a.state.params||e.defaultParams||[];h(r)&&a.run(...p)}return y(()=>{a.cancel()}),{...Z(l),cancel:a.cancel.bind(a),refresh:a.refresh.bind(a),refreshAsync:a.refreshAsync.bind(a),run:a.run.bind(a),runAsync:a.runAsync.bind(a),mutate:a.mutate.bind(a)}}const Be=(t,e)=>function(s,i={},u=[]){let r=t;const o=e||[];for(let c=o.length;c--;)r=o[c](r);return r(s,i,u)};function Qe(t,e,n){var s;const i=(s=[null,ce,be,we,Se,De,z,oe,Oe])==null?void 0:s.filter(Boolean);return Be(ye,e==null?void 0:e.use)(t,e,[...i])}const Ue=!!(typeof window<"u"&&window.document&&window.document.createElement);function x(t,e){var n,s;if(!Ue)return;if(!t)return e;let i;return typeof t=="function"?i=t():Y(t)?i=(s=(n=t.value)==null?void 0:n.$el)!=null?s:t.value:i=t,i}var $e=Object.defineProperty,Le=(t,e,n)=>e in t?$e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e,n)=>(Le(t,typeof e!="symbol"?e+"":e,n),n);class He{constructor(){R(this,"subscriptions",new Map),R(this,"emitEffectCache",new Map),R(this,"useSubscription",(e,n)=>{const s=b();P(i=>{var u,r;s.value=n;function o(d){s.value&&s.value(d)}const c=(r=(u=this.subscriptions)==null?void 0:u.get(e))!=null?r:[];c.push(o),this.subscriptions.set(e,c),this.emitEffect(e),i(()=>{this.subscriptions.delete(e)})})}),R(this,"emit",(e,...n)=>{if(typeof e=="string"||typeof e=="number"){const s=this.subscriptions.get(e);s==null||s.forEach(i=>{i==null||i({params:j(n),event:e})}),this.emitEffectCache.set(e,{params:j(n),event:e})}else throw new TypeError("event must be string or number !")}),R(this,"emitEffect",e=>{const n=this.emitEffectCache.get(e),s=this.subscriptions.get(e);n&&(s==null||s.forEach(i=>{i==null||i({...n})}))}),R(this,"removeListener",e=>{this.subscriptions.delete(e)}),R(this,"clear",()=>{this.subscriptions.clear()}),this.clear()}}new He;const Ge=(t,e)=>{const{onExit:n,onEnter:s,defaultElement:i=document.documentElement}={},u=b(n),r=b(s),o=b(!1),c=a=>{o.value=a},d=()=>{var a,w,p;if(g.isEnabled){const _=x(t,i);if(!g.element)(a=u.value)==null||a.call(u),c(!1),g.off("change",d);else{const v=g.element===_;v?(w=r.value)==null||w.call(r):(p=u.value)==null||p.call(u),c(v)}}},l=()=>{const a=x(t,i);if(a&&g.isEnabled)try{g.request(a),g.on("change",d)}catch(w){console.error(w)}},f=()=>{const a=x(t,i);g.isEnabled&&g.element===a&&g.exit()},m=()=>{o.value?f():l()};return ee(()=>{g.isEnabled&&g.off("change",d)}),[K(o),{enterFullscreen:l,exitFullscreen:f,toggleFullscreen:m,isEnabled:g.isEnabled}]};export{Qe as a,Ge as u}; +import{y as h,k as b,v as x,e as X,a as Y,x as Z,n as K}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{j as P,w as V,f as q,i as k,R as ee}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{d as ne,t as te,c as j}from"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import{s as g}from"./screenfull@5.2.0-DQHhvod-.js";const z=(t,{manual:e,ready:n=!0,refreshDeps:s=[],refreshDepsAction:i})=>{const u=b(!1);return P(()=>{!e&&t.options.refreshDeps!==!0&&(u.value=h(n))}),s instanceof Array?V([u,...s],([r])=>{r&&!e&&r&&(i?i():t.refresh())},{deep:!0,immediate:!1}):V(u,r=>{!e&&r&&(i?i():t.refresh())}),{name:"autoRunPlugin",onBefore:()=>{if(!h(n))return{stopNow:!0}}}};z.onInit=({ready:t=!0,manual:e})=>({loading:!e&&h(t)});const T=new Map,se=(t,e,n)=>{const s=T.get(t);s!=null&&s.timer&&clearTimeout(s.timer);let i;e>-1&&(i=setTimeout(()=>{T.delete(t)},e)),T.set(t,{...n,timer:i})},ie=t=>T.get(t),F=new Map,re=t=>F.get(t),ue=(t,e)=>{F.set(t,e),e.then(n=>(F.delete(t),n)).catch(n=>{throw F.delete(t),n})},S={},le=[],ae=(t,e)=>{S[t]&&(S[t].forEach(n=>n(e)),le.forEach(n=>n({type:t,data:e})))},y=(t,e)=>(S[t]||(S[t]=[]),S[t].push(e),function(){const s=S[t].indexOf(e);S[t].splice(s,1)}),oe=(t,{cacheKey:e,cacheTime:n=5*60*1e3,staleTime:s=0,setCache:i,getCache:u})=>{const r=b(),o=b(),c=(l,f)=>{i?i(f):se(l,n,f),ae(l,f.data)},d=(l,f=[])=>u?u(f):ie(l);return P(()=>{if(!e)return;const l=d(e);l&&Object.hasOwnProperty.call(l,"data")&&(t.state.data=l.data,t.state.params=l.params,(s===-1||new Date().getTime()-l.time<=s)&&(t.state.loading=!1)),r.value=y(e,f=>{t.setState({data:f})})}),x(()=>{var l;(l=r.value)==null||l.call(r)}),e?{name:"cachePlugin",onBefore:l=>{const f=d(e,l);return!f||!Object.hasOwnProperty.call(f,"data")?{}:s===-1||new Date().getTime()-f.time<=s?{loading:!1,data:f==null?void 0:f.data,returnNow:!0}:{data:f==null?void 0:f.data}},onRequest:(l,f)=>{let m=re(e);return m&&m!==o.value?{servicePromise:m}:(m=l(...f),o.value=m,ue(e,m),{servicePromise:m})},onSuccess:(l,f)=>{var m;e&&((m=r.value)==null||m.call(r),c(e,{data:l,params:f,time:new Date().getTime()}),r.value=y(e,a=>{t.setState({data:a})}))},onMutate:l=>{var f;e&&((f=r.value)==null||f.call(r),c(e,{data:l,params:t.state.params,time:new Date().getTime()}),r.value=y(e,m=>{t.setState({data:m})}))}}:{}},ce=(t,{debounceWait:e,debounceLeading:n,debounceTrailing:s,debounceMaxWait:i})=>{const u=b(),r=q(()=>{const o={},c=h(n),d=h(s),l=h(i);return c!==void 0&&(o.leading=c),d!==void 0&&(o.trailing=d),l!==void 0&&(o.maxWait=l),o});return P(o=>{if(h(e)){const c=t.runAsync.bind(t);u.value=ne(d=>{d()},h(e),r.value),t.runAsync=(...d)=>new Promise((l,f)=>{var m;(m=u.value)==null||m.call(u,()=>{c(...d).then(l).catch(f)})}),o(()=>{var d;(d=u.value)==null||d.cancel(),t.runAsync=c})}}),h(e)?{name:"debouncePlugin",onCancel:()=>{var o;(o=u.value)==null||o.cancel()}}:{}};var fe=Object.defineProperty,de=(t,e,n)=>e in t?fe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,I=(t,e,n)=>(de(t,typeof e!="symbol"?e+"":e,n),n);class he{constructor(){I(this,"table",{}),I(this,"hashTable",{})}insert(e){const n=Symbol(e);return this.table[e]=!0,this.hashTable[n]=e,n}find(e){return this.hashTable[e]}}new he;var me=Object.defineProperty,pe=(t,e,n)=>e in t?me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Q=(t,e,n)=>(pe(t,typeof e!="symbol"?e+"":e,n),n);class ve{constructor(){Q(this,"requestInstances",new Map),Q(this,"listeners",[])}emit(e){this.listeners.forEach(n=>n(e))}subscribe(e){return this.listeners.push(e),()=>{const n=this.listeners.indexOf(e);this.listeners.splice(n,1)}}insert(e,n){this.requestInstances.set(e,{...n}),this.emit({key:e,...n})}update(e,n){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...n})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){const n=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,n)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}new ve;const be=(t,{loadingDelay:e})=>{const n=b(),s=()=>{n.value&&(clearTimeout(h(n.value)),n.value=void 0)};return{name:"loadingDelayPlugin",onFinally:()=>{s();const i=h(e);i&&(t.setState({loading:!0}),n.value=setTimeout(()=>{t.setState({loading:!1})},i))},onError:()=>{s()}}};function B(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const ge=!!(typeof window<"u"&&window.document&&window.document.createElement);function U(){return B()?document.visibilityState!=="hidden":!0}const O=[];function _e(t){return O.push(t),function(){const n=O.indexOf(t);O.splice(n,1)}}if(B()){const t=()=>{if(U())for(let e=0;e{let i;const u=b(),r=b(0),o=()=>{var c;i&&clearTimeout(i),(c=u.value)==null||c.call(u)};return P(()=>{h(e)||o()}),h(e)?{name:"pollingPlugin",onBefore:()=>{o()},onError:()=>{r.value+=1},onSuccess:()=>{r.value=0},onFinally:()=>{s===-1||s!==-1&&r.value<=s?i=setTimeout(()=>{!n&&!U()?u.value=_e(()=>{t.refresh()}):t.refresh()},h(e)):r.value=0},onCancel:()=>{o()}}:{}};function Pe(t,e){let n=!1;return(...s)=>{n||(n=!0,t(...s),setTimeout(()=>{n=!1},e))}}function Ee(){return B()&&typeof navigator.onLine<"u"?navigator.onLine:!0}const D=[];function Re(t){return D.push(t),function(){const n=D.indexOf(t);n>-1&&D.splice(n,1)}}if(ge){const t=()=>{if(!(!U()||!Ee()))for(let e=0;e{const s=b(),i=()=>{var u;(u=s.value)==null||u.call(s)};return P(u=>{if(h(e)){const r=Pe(t.refresh.bind(t),h(n));s.value=Re(()=>{r()})}u(()=>{i()})}),x(()=>{i()}),{name:"refreshOnWindowFocusPlugin"}},Oe=(t,{retryInterval:e,retryCount:n})=>{const s=b(),i=b(0),u=b(!1);return n?{name:"retryPlugin",onBefore:()=>{u.value||(i.value=0),u.value=!1,s.value&&clearTimeout(s.value)},onSuccess:()=>{i.value=0},onError:()=>{if(i.value+=1,n===-1||i.value<=n){const r=e??Math.min(1e3*2**i.value,3e4);s.value=setTimeout(()=>{u.value=!0,t.refresh()},r)}else i.value=0},onCancel:()=>{i.value=0,s.value&&clearTimeout(s.value)}}:{}},De=(t,{throttleWait:e,throttleLeading:n,throttleTrailing:s})=>{const i=q(()=>{const r={};return h(n)!==void 0&&(r.leading=h(n)),h(s)!==void 0&&(r.trailing=h(s)),r}),u=q(()=>te(r=>{r()},h(e),i.value));return P(r=>{if(h(e)){const o=t.runAsync.bind(t);t.runAsync=(...c)=>new Promise((d,l)=>{var f;(f=u.value)==null||f.call(u,()=>{o(...c).then(d).catch(l)})}),r(()=>{var c;t.runAsync=o,(c=u.value)==null||c.cancel()})}}),h(e)?{name:"throttlePlugin",onCancel:()=>{var r;(r=u.value)==null||r.cancel()}}:{}},G=t=>typeof t=="function",Ae=t=>typeof t=="boolean";var Te=Object.defineProperty,Fe=(t,e,n)=>e in t?Te(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,A=(t,e,n)=>(Fe(t,typeof e!="symbol"?e+"":e,n),n);class qe{constructor(e,n,s,i={}){A(this,"pluginImpls"),A(this,"count",0),A(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),A(this,"previousValidData"),this.serviceRef=e,this.options=n,this.setUpdateData=s,this.initState=i,this.state={...this.state,loading:!n.manual,...i}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,n){console.warn("Please use 'setFetchState' instead of 'setData'"),n instanceof Array?n.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[n]=e,this.setUpdateData(e,n))}setFetchState(e,n){n instanceof Array?n.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[n]=e,this.setUpdateData(e,n))}runPluginHandler(e,...n){var s,i,u;const r=(u=(i=(s=this.pluginImpls)==null?void 0:s.map(o=>{var c;return(c=o[e])==null?void 0:c.call(o,...n)}))!=null?i:[])==null?void 0:u.filter(Boolean);return Object.assign({},...r)}async runAsync(...e){var n,s,i,u,r,o,c,d,l,f,m;this.count+=1;const a=this.count,{stopNow:w=!1,returnNow:p=!1,..._}=this.runPluginHandler("onBefore",e);if(w)return new Promise(()=>{});if(this.setState({loading:!0,params:e,..._}),p)return Promise.resolve(_.data);try{(s=(n=this.options).onBefore)==null||s.call(n,e)}catch(v){return this.setState({error:v,loading:!1}),(u=(i=this.options).onError)==null||u.call(i,v,e),this.runPluginHandler("onError",v,e),new Promise(()=>{})}try{let{servicePromise:v}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const J=$=>{var L,H,N,M;if(a!==this.count)return new Promise(()=>{});const E=this.options.formatResult?this.options.formatResult($):$;return this.setState({data:E,error:void 0,loading:!1}),(H=(L=this.options).onSuccess)==null||H.call(L,E,e),this.runPluginHandler("onSuccess",E,e),this.previousValidData=E,(M=(N=this.options).onFinally)==null||M.call(N,e,E,void 0),a===this.count&&this.runPluginHandler("onFinally",e,E,void 0),E};v||(v=this.serviceRef.value(...e));const W=await v;return J(W)}catch(v){if(a!==this.count)return new Promise(()=>{});throw this.setState({error:v,loading:!1}),(o=(r=this.options).onError)==null||o.call(r,v,e),this.runPluginHandler("onError",v,e),(G((c=this.options)==null?void 0:c.rollbackOnError)&&((d=this.options)!=null&&d.rollbackOnError(e))||Ae((l=this.options)==null?void 0:l.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),(m=(f=this.options).onFinally)==null||m.call(f,e,void 0,v),a===this.count&&this.runPluginHandler("onFinally",e,void 0,v),v}}run(...e){this.runAsync(...e).catch(n=>{this.options.onError||console.error(n)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){const n=G(e)?e(this.state.data):e;this.runPluginHandler("onMutate",n),this.setState({data:n})}}const ye=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function Ce(t){return Object.keys(t).filter(n=>["data","loading","params","error"].includes(n)).length===4}function xe(t,e={},n=[]){const s=k(ye,{}),{initialData:i=void 0,manual:u=!1,ready:r=!0,...o}={...s??{},...e??{}},c={manual:u,ready:r,initialData:i,...o},d=b(t),l=X({data:i,loading:!1,params:void 0,error:void 0}),f=(p,_)=>{_?l[_]=p:Ce(p)&&(l.data=p.data,l.loading=p.loading,l.error=p.error,l.params=p.params)},m=n.map(p=>{var _;return(_=p==null?void 0:p.onInit)==null?void 0:_.call(p,c)}).filter(Boolean),a=new qe(d,c,f,Object.assign({},...m,l));a.options=c,a.pluginImpls=n.map(p=>p(a,c));const w=q(()=>Y(r)?r.value:r);if(P(()=>{if(!u){const p=a.state.params||e.defaultParams||[];w.value&&a.options.refreshDeps===!0&&d.value&&a.run(...p)}}),!u&&a.options.refreshDeps!==!0){const p=a.state.params||e.defaultParams||[];h(r)&&a.run(...p)}return x(()=>{a.cancel()}),{...Z(l),cancel:a.cancel.bind(a),refresh:a.refresh.bind(a),refreshAsync:a.refreshAsync.bind(a),run:a.run.bind(a),runAsync:a.runAsync.bind(a),mutate:a.mutate.bind(a)}}const Be=(t,e)=>function(s,i={},u=[]){let r=t;const o=e||[];for(let c=o.length;c--;)r=o[c](r);return r(s,i,u)};function Qe(t,e,n){var s;const i=(s=[null,ce,be,we,Se,De,z,oe,Oe])==null?void 0:s.filter(Boolean);return Be(xe,e==null?void 0:e.use)(t,e,[...i])}const Ue=!!(typeof window<"u"&&window.document&&window.document.createElement);function C(t,e){var n,s;if(!Ue)return;if(!t)return e;let i;return typeof t=="function"?i=t():Y(t)?i=(s=(n=t.value)==null?void 0:n.$el)!=null?s:t.value:i=t,i}var $e=Object.defineProperty,Le=(t,e,n)=>e in t?$e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e,n)=>(Le(t,typeof e!="symbol"?e+"":e,n),n);class He{constructor(){R(this,"subscriptions",new Map),R(this,"emitEffectCache",new Map),R(this,"useSubscription",(e,n)=>{const s=b();P(i=>{var u,r;s.value=n;function o(d){s.value&&s.value(d)}const c=(r=(u=this.subscriptions)==null?void 0:u.get(e))!=null?r:[];c.push(o),this.subscriptions.set(e,c),this.emitEffect(e),i(()=>{this.subscriptions.delete(e)})})}),R(this,"emit",(e,...n)=>{if(typeof e=="string"||typeof e=="number"){const s=this.subscriptions.get(e);s==null||s.forEach(i=>{i==null||i({params:j(n),event:e})}),this.emitEffectCache.set(e,{params:j(n),event:e})}else throw new TypeError("event must be string or number !")}),R(this,"emitEffect",e=>{const n=this.emitEffectCache.get(e),s=this.subscriptions.get(e);n&&(s==null||s.forEach(i=>{i==null||i({...n})}))}),R(this,"removeListener",e=>{this.subscriptions.delete(e)}),R(this,"clear",()=>{this.subscriptions.clear()}),this.clear()}}new He;const Ge=(t,e)=>{const{onExit:n,onEnter:s,defaultElement:i=document.documentElement}={},u=b(n),r=b(s),o=b(!1),c=a=>{o.value=a},d=()=>{var a,w,p;if(g.isEnabled){const _=C(t,i);if(!g.element)(a=u.value)==null||a.call(u),c(!1),g.off("change",d);else{const v=g.element===_;v?(w=r.value)==null||w.call(r):(p=u.value)==null||p.call(u),c(v)}}},l=()=>{const a=C(t,i);if(a&&g.isEnabled)try{g.request(a),g.on("change",d)}catch(w){console.error(w)}},f=()=>{const a=C(t,i);g.isEnabled&&g.element===a&&g.exit()},m=()=>{o.value?f():l()};return ee(()=>{g.isEnabled&&g.off("change",d)}),[K(o),{enterFullscreen:l,exitFullscreen:f,toggleFullscreen:m,isEnabled:g.isEnabled}]};export{Qe as a,Ge as u}; diff --git a/js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js.gz b/js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js.gz new file mode 100644 index 00000000..21cad63e Binary files /dev/null and b/js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js.gz differ diff --git a/js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js.gz b/js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js.gz deleted file mode 100644 index 03952e6c..00000000 Binary files a/js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js.gz and /dev/null differ diff --git a/js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js.gz b/js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js.gz deleted file mode 100644 index 1eb66de5..00000000 Binary files a/js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js.gz and /dev/null differ diff --git a/js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js b/js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js similarity index 98% rename from js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js rename to js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js index 1ee4c30c..7a417151 100644 --- a/js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js +++ b/js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js @@ -1,4 +1,4 @@ -import{e as C,l as W,b as T,j as p,f as D,m as Rt,g as Ae,r as A,c as k,d as F,h as _e,a as $,s as J,i as he,u as X,v as K}from"./@intlify_shared@9.13.1-BxU0OzX2.js";import{s as Lt,D as pt,u as x,N as vt,a as Pt,C as Ft,c as Ct,b as me,d as fe,e as St,g as Dt,f as yt,p as ge,t as Ee,M as de,h as be,i as Oe,j as Te,n as Ie,k as kt,l as At,m as Me,r as ht,o as Mt,q as Vt,v as Ut,w as Ne,x as xt,y as wt}from"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import{c as Wt}from"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import{l as ae,h as Ve,i as jt,k as Yt,Q as Gt,f as w,w as z,F as Ue,d as re,b as Ht,P as Bt}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{y as $t,a as Xt,k as Jt,s as Kt}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";/*! +import{e as C,l as W,b as T,j as p,f as D,m as Rt,g as Ae,r as A,c as k,d as F,h as _e,a as $,s as J,i as he,u as X,v as K}from"./@intlify_shared@9.13.1-BxU0OzX2.js";import{s as Lt,D as pt,u as x,N as vt,a as Pt,C as Ft,c as Ct,b as me,d as fe,e as St,g as Dt,f as yt,p as ge,t as Ee,M as de,h as be,i as Oe,j as Te,n as Ie,k as kt,l as At,m as Me,r as ht,o as Mt,q as Vt,v as Ut,w as Ne,x as xt,y as wt}from"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import{c as Wt}from"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import{m as ae,h as Ve,i as jt,l as Yt,R as Gt,f as w,w as z,F as Ue,d as re,b as Ht,Q as Bt}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{z as $t,a as Xt,k as Jt,s as Kt}from"./@vue_reactivity@3.5.13-CVvlldVq.js";/*! * vue-i18n v9.13.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. diff --git a/js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js.gz b/js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js.gz new file mode 100644 index 00000000..07e1007d Binary files /dev/null and b/js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js.gz differ diff --git a/js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js.gz b/js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js.gz deleted file mode 100644 index ff375715..00000000 Binary files a/js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js.gz and /dev/null differ diff --git a/js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js b/js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js similarity index 99% rename from js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js rename to js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js index bc4d42bb..d6a924f3 100644 --- a/js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js +++ b/js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js @@ -1,4 +1,4 @@ -import{s as rt,u as W,g as ot,e as st,k as it}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{i as H,n as ct,Q as at,L as lt,J as ut,l as Ge,f as N,h as qe,x as le,w as ft}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";/*! +import{s as rt,y as W,g as ot,e as st,k as it}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{i as H,n as ct,R as at,M as lt,L as ut,m as Ge,f as N,h as qe,y as le,w as ft}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";/*! * vue-router v4.4.0 * (c) 2024 Eduardo San Martin Morote * @license MIT diff --git a/js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js.gz b/js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js.gz new file mode 100644 index 00000000..9df179b1 Binary files /dev/null and b/js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js.gz differ diff --git a/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-DJUY2IsH.js.gz b/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-DJUY2IsH.js.gz deleted file mode 100644 index b8ea4ea8..00000000 Binary files a/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-DJUY2IsH.js.gz and /dev/null differ diff --git a/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-DJUY2IsH.js b/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-wzrC7cBz.js similarity index 99% rename from js/vue3-next-qrcode@2.0.10_typescript@5.6.3-DJUY2IsH.js rename to js/vue3-next-qrcode@2.0.10_typescript@5.6.3-wzrC7cBz.js index 2e3b3c68..37bfa8ac 100644 --- a/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-DJUY2IsH.js +++ b/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-wzrC7cBz.js @@ -1 +1 @@ -import{l as be,f as ye,j as Ce,k as Ae,v as Pe,b as it,m as Be,w as De}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as qt}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";const ke={maskColor:{type:String,default:"rgba(255, 255, 255, 0.96)"},watchText:{type:Boolean,default:!0},status:{type:String},errorDescription:{type:[String,Object],default:"二维码已过期"},errorActionDescription:{type:String,default:"重新加载"},text:{type:String,required:!0},size:{type:Number,default:160},margin:{type:Number,default:12},correctLevel:{type:Number,default:1,validator:i=>[0,1,2,3].includes(i)},maskPattern:{type:Number},version:{type:Number},components:{type:Object,default:()=>({data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}})},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#ffffff"},autoColor:{type:Boolean,default:!0},backgroundImage:{type:String},backgroundDimming:{type:String,default:"rgba(0, 0, 0, 0)"},gifBackgroundURL:{type:String},gifBackground:{type:ArrayBuffer},whiteMargin:{type:Boolean,default:!0},logoImage:{type:String},logoScale:{type:Number,default:.4},logoMargin:{type:Number,default:6},logoCornerRadius:{type:Number,default:8},dotScale:{type:Number,default:1},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onReload:{type:[Function,Array],default:null}};function Te(i,t,e){const r=oe(t),n=i-1;let o=0;switch(e){case Z.L:o=rt[n][0];break;case Z.M:o=rt[n][1];break;case Z.Q:o=rt[n][2];break;case Z.H:o=rt[n][3];break}return r<=o}function Ee(i,t){for(var e=1,r=oe(i),n=0,o=rt.length;nrt.length)throw new Error("Too long data");return e}function oe(i){var t=encodeURI(i).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=Number(i)?3:0)}class Ie{constructor(t){this.mode=V.MODE_8BIT_BYTE,this.parsedData=[],this.data=t;const e=[];for(let r=0,n=this.data.length;r65536?(o[0]=240|(s&1835008)>>>18,o[1]=128|(s&258048)>>>12,o[2]=128|(s&4032)>>>6,o[3]=128|s&63):s>2048?(o[0]=224|(s&61440)>>>12,o[1]=128|(s&4032)>>>6,o[2]=128|s&63):s>128?(o[0]=192|(s&1984)>>>6,o[1]=128|s&63):o[0]=s,e.push(o)}this.parsedData=Array.prototype.concat.apply([],e),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}getLength(){return this.parsedData.length}write(t){for(let e=0,r=this.parsedData.length;e40)throw new Error(`Invalid QR version: ${this.typeNumber}`);if(!Te(this.typeNumber,t,this.errorCorrectLevel))throw new Error(`Data is too long for QR version: ${this.typeNumber}`)}const e=new Ie(t);this.dataList.push(e),this.dataCache=void 0}isDark(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(`${t},${e}`);return this.modules[t][e]}getModuleCount(){return this.moduleCount}make(){this.makeImpl(!1,this.getBestMaskPattern())}makeImpl(t,e){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(let r=0;r=7&&this.setupTypeNumber(t),this.dataCache==null&&(this.dataCache=ut.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)}setupPositionProbePattern(t,e){for(let r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(let n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=r&&r<=6&&(n==0||n==6)||0<=n&&n<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[t+r][e+n]=!0:this.modules[t+r][e+n]=!1)}getBestMaskPattern(){if(Number.isInteger(this.maskPattern)&&Object.values(st).includes(this.maskPattern))return this.maskPattern;let t=0,e=0;for(let r=0;r<8;r++){this.makeImpl(!0,r);const n=L.getLostPoint(this);(r==0||t>n)&&(t=n,e=r)}return e}setupTimingPattern(){for(let t=8;t>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!t&&(e>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}}setupTypeInfo(t,e){const r=this.errorCorrectLevel<<3|e,n=L.getBCHTypeInfo(r);for(var o=0;o<15;o++){var s=!t&&(n>>o&1)==1;o<6?this.modules[o][8]=s:o<8?this.modules[o+1][8]=s:this.modules[this.moduleCount-15+o][8]=s}for(var o=0;o<15;o++){var s=!t&&(n>>o&1)==1;o<8?this.modules[8][this.moduleCount-o-1]=s:o<9?this.modules[8][15-o-1+1]=s:this.modules[8][15-o-1]=s}this.modules[this.moduleCount-8][8]=!t}mapData(t,e){let r=-1,n=this.moduleCount-1,o=7,s=0;for(let a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(let l=0;l<2;l++)if(this.modules[n][a-l]==null){let c=!1;s>>o&1)==1),L.getMask(e,n,a-l)&&(c=!c),this.modules[n][a-l]=c,o--,o==-1&&(s++,o=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}}static createData(t,e,r){const n=at.getRSBlocks(t,e),o=new xe;for(var s=0;sa*8)throw new Error(`code length overflow. (${o.getLengthInBits()}>${a*8})`);for(o.getLengthInBits()+4<=a*8&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=a*8||(o.put(ut.PAD0,8),o.getLengthInBits()>=a*8));)o.put(ut.PAD1,8);return ut.createBytes(o,n)}static createBytes(t,e){let r=0,n=0,o=0;const s=new Array(e.length),a=new Array(e.length);for(var l=0;l=0?g.get(P):0}}let f=0;for(var c=0;c=0;)e^=L.G15<=0;)e^=L.G18<>>=1;return e}static getPatternPosition(t){return L.PATTERN_POSITION_TABLE[t-1]}static getMask(t,e,r){switch(t){case st.PATTERN000:return(e+r)%2==0;case st.PATTERN001:return e%2==0;case st.PATTERN010:return r%3==0;case st.PATTERN011:return(e+r)%3==0;case st.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case st.PATTERN101:return e*r%2+e*r%3==0;case st.PATTERN110:return(e*r%2+e*r%3)%2==0;case st.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error(`bad maskPattern:${t}`)}}static getErrorCorrectPolynomial(t){let e=new mt([1],0);for(let r=0;r5&&(r+=3+l-5)}for(var n=0;n=256;)t-=255;return j.EXP_TABLE[t]}}j.EXP_TABLE=new Array(256);j.LOG_TABLE=new Array(256);j._constructor=function(){for(var i=0;i<8;i++)j.EXP_TABLE[i]=1<>>7-t%8&1)==1}put(t,e){for(let r=0;r>>e-r-1&1)==1)}getLengthInBits(){return this.length}putBit(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}}const rt=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function et(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function Vt(i,t){for(var e="",r=0,n=-1,o=0,s,a=0;a<=i.length;++a){if(a2){var l=e.lastIndexOf("/");if(l!==e.length-1){l===-1?(e="",r=0):(e=e.slice(0,l),r=e.length-1-e.lastIndexOf("/")),n=a,o=0;continue}}else if(e.length===2||e.length===1){e="",r=0,n=a,o=0;continue}}t&&(e.length>0?e+="/..":e="..",r=2)}else e.length>0?e+="/"+i.slice(n+1,a):e=i.slice(n+1,a),r=a-n-1;n=a,o=0}else s===46&&o!==-1?++o:o=-1}return e}function Se(i,t){var e=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return e?e===t.root?e+r:e+i+r:r}var dt={resolve:function(){for(var t="",e=!1,r,n=arguments.length-1;n>=-1&&!e;n--){var o;n>=0?o=arguments[n]:(r===void 0&&(r=process.cwd()),o=r),et(o),o.length!==0&&(t=o+"/"+t,e=o.charCodeAt(0)===47)}return t=Vt(t,!e),e?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(et(t),t.length===0)return".";var e=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Vt(t,!e),t.length===0&&!e&&(t="."),t.length>0&&r&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return et(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,e=0;e0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":dt.normalize(t)},relative:function(t,e){if(et(t),et(e),t===e||(t=dt.resolve(t),e=dt.resolve(e),t===e))return"";for(var r=1;rc){if(e.charCodeAt(s+h)===47)return e.slice(s+h+1);if(h===0)return e.slice(s+h)}else o>c&&(t.charCodeAt(r+h)===47?f=h:h===0&&(f=0));break}var m=t.charCodeAt(r+h),A=e.charCodeAt(s+h);if(m!==A)break;m===47&&(f=h)}var k="";for(h=r+f+1;h<=n;++h)(h===n||t.charCodeAt(h)===47)&&(k.length===0?k+="..":k+="/..");return k.length>0?k+e.slice(s+f):(s+=f,e.charCodeAt(s)===47&&++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(et(t),t.length===0)return".";for(var e=t.charCodeAt(0),r=e===47,n=-1,o=!0,s=t.length-1;s>=1;--s)if(e=t.charCodeAt(s),e===47){if(!o){n=s;break}}else o=!1;return n===-1?r?"/":".":r&&n===1?"//":t.slice(0,n)},basename:function(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');et(t);var r=0,n=-1,o=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,l=-1;for(s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(c===47){if(!o){r=s+1;break}}else l===-1&&(o=!1,l=s+1),a>=0&&(c===e.charCodeAt(a)?--a===-1&&(n=s):(a=-1,n=l))}return r===n?n=l:n===-1&&(n=t.length),t.slice(r,n)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else n===-1&&(o=!1,n=s+1);return n===-1?"":t.slice(r,n)}},extname:function(t){et(t);for(var e=-1,r=0,n=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(l===47){if(!o){r=a+1;break}continue}n===-1&&(o=!1,n=a+1),l===46?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||n===-1||s===0||s===1&&e===n-1&&e===r+1?"":t.slice(e,n)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return Se("/",t)},parse:function(t){et(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;var r=t.charCodeAt(0),n=r===47,o;n?(e.root="/",o=1):o=0;for(var s=-1,a=0,l=-1,c=!0,f=t.length-1,h=0;f>=o;--f){if(r=t.charCodeAt(f),r===47){if(!c){a=f+1;break}continue}l===-1&&(c=!1,l=f+1),r===46?s===-1?s=f:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||l===-1||h===0||h===1&&s===l-1&&s===a+1?l!==-1&&(a===0&&n?e.base=e.name=t.slice(1,l):e.base=e.name=t.slice(a,l)):(a===0&&n?(e.name=t.slice(1,s),e.base=t.slice(1,l)):(e.name=t.slice(a,s),e.base=t.slice(a,l)),e.ext=t.slice(s,l)),a>0?e.dir=t.slice(0,a-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};dt.posix=dt;const _e=dt.extname,se=dt.basename;class Le{constructor(){let t=typeof global>"u",e="image/png",r="image/jpeg",n="image/jpeg",o="image/webp",s="application/pdf",a="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:t?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:t?{png:e,jpg:r,jpeg:n,webp:o}:{png:e,jpg:r,jpeg:n,pdf:s,svg:a},mimes:t?{[e]:"png",[r]:"jpg",[o]:"webp"}:{[e]:"png",[r]:"jpg",[s]:"pdf",[a]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}function Me(i,{filename:t="",extension:e="",format:T,page:n,quality:o,matte:s,density:a,outline:l,archive:A}={}){var{fromMime:f,toMime:h,expected:m}=new Le,A=A||"canvas",k=T||e.replace(/@\d+x$/i,"")||_e(t),T=f(h(k)||k),M=h(T),g=i.length;if(!k)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!T)throw new Error(`Unsupported file format "${k}" (expected ${m})`);if(!g)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let p,P,d=t.replace(/{(\d*)}/g,(v,y)=>(P=!0,y=parseInt(y,10),p=isFinite(y)?y:isFinite(p)?p:-1,"{}")),b=n>0?n-1:n<0?g+n:void 0;if(isFinite(b)&&b<0||b>=g)throw new RangeError(g==1?`Canvas only has a ‘page 1’ (${b} is out of bounds)`:`Canvas has pages 1–${g} (${b} is out of bounds)`);if(i=isFinite(b)?[i[b]]:P||T=="pdf"?i:i.slice(-1),o===void 0)o=.92;else if(typeof o!="number"||!isFinite(o)||o<0||o>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(a===void 0){let v=(e||se(t,k)).match(/@(\d+)x$/i);a=v?parseInt(v[1],10):1}else if(typeof a!="number"||!Number.isInteger(a)||a<1)throw new TypeError("The density option must be a non-negative integer");return l===void 0?l=!0:T=="svg"&&(l=!!l),{filename:t,pattern:d,format:T,mime:M,pages:i,padding:p,quality:o,matte:s,density:a,outline:l,archive:A}}class kt{static for(t){return new kt().append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=this.crc|0,r=this.table,n=0,o=t.length|0;n>>8^r[(e^t[n])&255];return this.crc=e,this}}kt.prototype.table=(()=>{var i,t,e,r=[];for(i=0;i<256;i++){for(e=i,t=0;t<8;t++)e=e&1?e>>>1^3988292384:e>>>1;r[i]=e}return r})();function _t(i){let t=new Uint8Array(i),e=new DataView(t.buffer),r={array:t,view:e,size:i,set8(n,o){return e.setUint8(n,o),r},set16(n,o){return e.setUint16(n,o,!0),r},set32(n,o){return e.setUint32(n,o,!0),r},bytes(n,o){return t.set(o,n),r}};return r}class Tt{constructor(t){let e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){let r=!e,n=Tt.encoder.encode(`${this.directory}/${r?"":t}`),o=new Uint8Array(r?0:await e.arrayBuffer()),s=30+n.length,a=s+o.length,l=16,{offset:c}=this,f=_t(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,kt.for(o)).set32(14,o.length).set32(18,o.length).set16(22,n.length);c+=s;let h=_t(s+o.length+l).set32(0,67324752).bytes(4,f.array).bytes(30,n).bytes(s,o);c+=o.length,h.set32(a,134695760).bytes(a+4,f.array.slice(10,22)),c+=l,this.files.push({offset:c,folder:r,name:n,header:f,payload:h}),this.offset=c}toBuffer(){let t=this.files.reduce((h,{name:m})=>46+m.length+h,0),e=_t(t+22),r=0;for(var{offset:n,name:o,header:s,folder:a}of this.files)e.set32(r,33639248).set16(r+4,20).bytes(r+6,s.array).set8(r+38,a?16:0).set32(r+42,n).bytes(r+46,o),r+=46+o.length;e.set32(r,101010256).set16(r+8,this.files.length).set16(r+10,this.files.length).set32(r+12,t).set32(r+16,this.offset);let l=new Uint8Array(this.offset+e.size),c=0;for(var{payload:f}of this.files)l.set(f.array,c),c+=f.size;return l.set(e.array,c),l}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}Tt.encoder=new TextEncoder;const Ft=(i,t,e,r)=>{if(r){let{width:n,height:o}=i,s=Object.assign(document.createElement("canvas"),{width:n,height:o}),a=s.getContext("2d");a.fillStyle=r,a.fillRect(0,0,n,o),a.drawImage(i,0,0),i=s}return new Promise((n,o)=>i.toBlob(n,t,e))},Re=(...i)=>Ft(...i).then(t=>t.arrayBuffer()),Ne=async(i,t,e,r,n)=>{ae(n,await Ft(i,t,e,r))},Oe=async(i,t,e,r,n,o,s)=>{let a=f=>o.replace("{}",String(f+1).padStart(s,"0")),l=se(n,".zip")||"archive",c=new Tt(l);await Promise.all(i.map(async(f,h)=>{let m=a(h);await c.add(m,await Ft(f,t,e,r))})),ae(`${l}.zip`,c.blob)},ae=(i,t)=>{const e=window.URL.createObjectURL(t),r=document.createElement("a");r.style.display="none",r.href=e,r.setAttribute("download",i),typeof r.download>"u"&&r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>window.URL.revokeObjectURL(e),100)},$e=(i,t,e)=>i.map(r=>{if(t==1&&!e)return r.canvas;let n=document.createElement("canvas"),o=n.getContext("2d"),s=r.canvas?r.canvas:r;return n.width=s.width*t,n.height=s.height*t,e&&(o.fillStyle=e,o.fillRect(0,0,n.width,n.height)),o.scale(t,t),o.drawImage(s,0,0),n}),Fe={asBuffer:Re,asDownload:Ne,asZipDownload:Oe,atScale:$e,options:Me},{asBuffer:Lt,asDownload:Ue,asZipDownload:Ge,atScale:Mt,options:Rt}=Fe,Jt=Symbol.for("toDataURL"),je=i=>new Promise((t,e)=>Object.assign(new le,{crossOrigin:"Anonymous",onload:t,onerror:e,src:i}));let ze=class{constructor(t,e){let r=document.createElement("canvas"),n=[];Object.defineProperty(r,"async",{value:!0,writable:!1,enumerable:!0});for(var[o,s]of Object.entries({png:()=>Lt(r,"image/png"),jpg:()=>Lt(r,"image/jpeg"),pages:()=>n.concat(r).map(a=>a.getContext("2d"))}))Object.defineProperty(r,o,{get:s});return Object.assign(r,{width:t,height:e,newPage(...a){var{width:c,height:f}=r,l=Object.assign(document.createElement("canvas"),{width:c,height:f});l.getContext("2d").drawImage(r,0,0),n.push(l);var[c,f]=a.length?a:[c,f];return Object.assign(r,{width:c,height:f}).getContext("2d")},saveAs(a,l){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{filename:a,...l}),{pattern:f,padding:h,mime:m,quality:A,matte:k,density:T,archive:M}=c,g=Mt(c.pages,T);return h==null?Ue(g[0],m,A,k,a):Ge(g,m,A,k,M,f,h)},toBuffer(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{extension:a,...l}),{mime:f,quality:h,matte:m,pages:A,density:k}=c,T=Mt(A,k,m)[0];return Lt(T,f,h,m)},[Jt]:r.toDataURL.bind(r),toDataURL(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{extension:a,...l}),{mime:f,quality:h,matte:m,pages:A,density:k}=c,T=Mt(A,k,m)[0],M=T[T===r?Jt:"toDataURL"](f,h);return Promise.resolve(M)}})}};const{CanvasRenderingContext2D:He,CanvasGradient:Ke,CanvasPattern:Xe,Image:le,ImageData:Ze,Path2D:qe,DOMMatrix:Ve,DOMRect:Je,DOMPoint:We}=window,Ye={Canvas:ze,loadImage:je,CanvasRenderingContext2D:He,CanvasGradient:Ke,CanvasPattern:Xe,Image:le,ImageData:Ze,Path2D:qe,DOMMatrix:Ve,DOMRect:Je,DOMPoint:We},bt=(i,t,e={},r=e)=>{if(Array.isArray(t))t.forEach(n=>bt(i,n,e,r));else if(typeof t=="function")t(i,e,r,bt);else{const n=Object.keys(t)[0];Array.isArray(t[n])?(r[n]={},bt(i,t[n],e,r[n])):r[n]=t[n](i,e,r,bt)}return e},gt=(i,t)=>(e,r,n,o)=>{t(e,r,n)&&o(e,i,r,n)},Qe=(i,t)=>(e,r,n,o)=>{const s=[];let a=e.pos;for(;t(e,r,n);){const l={};if(o(e,i,r,l),e.pos===a)break;a=e.pos,s.push(l)}return s},tr=i=>({data:i,pos:0}),W=()=>i=>i.data[i.pos++],ce=(i=0)=>t=>t.data[t.pos+i],nt=i=>t=>t.data.subarray(t.pos,t.pos+=i),Et=i=>t=>t.data.subarray(t.pos,t.pos+i),Ot=i=>t=>Array.from(nt(i)(t)).map(e=>String.fromCharCode(e)).join(""),ht=i=>t=>{const e=nt(2)(t);return(e[1]<<8)+e[0]},ue=(i,t)=>(e,r,n)=>{const o=typeof t=="function"?t(e,r,n):t,s=nt(i),a=new Array(o);for(var l=0;l{for(var r=0,n=0;nt=>{const e=W()(t),r=new Array(8);for(var n=0;n<8;n++)r[7-n]=!!(e&1<{const a=i[s];return a.length?o[s]=er(r,a.index,a.length):o[s]=r[a.index],o},{})};var It={blocks:i=>{const e=[],r=i.data.length;for(var n=0,o=W()(i);o!==0&&o;o=W()(i)){if(i.pos+o>=r){const c=r-i.pos;e.push(nt(c)(i)),n+=c;break}e.push(nt(o)(i)),n+=o}const s=new Uint8Array(n);for(var a=0,l=0;l{var t=Et(2)(i);return t[0]===33&&t[1]===249}),nr=gt({image:[{code:W()},{descriptor:[{left:ht()},{top:ht()},{width:ht()},{height:ht()},{lct:Ut({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},gt({lct:ue(3,(i,t,e)=>Math.pow(2,e.descriptor.lct.size+1))},(i,t,e)=>e.descriptor.lct.exists),{data:[{minCodeSize:W()},It]}]},i=>ce()(i)===44),ir=gt({text:[{codes:nt(2)},{blockSize:W()},{preData:(i,t,e)=>nt(e.text.blockSize)(i)},It]},i=>{var t=Et(2)(i);return t[0]===33&&t[1]===1}),or=gt({application:[{codes:nt(2)},{blockSize:W()},{id:(i,t,e)=>Ot(e.blockSize)(i)},It]},i=>{var t=Et(2)(i);return t[0]===33&&t[1]===255}),sr=gt({comment:[{codes:nt(2)},It]},i=>{var t=Et(2)(i);return t[0]===33&&t[1]===254}),ar=[{header:[{signature:Ot(3)},{version:Ot(3)}]},{lsd:[{width:ht()},{height:ht()},{gct:Ut({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:W()},{pixelAspectRatio:W()}]},gt({gct:ue(3,(i,t)=>Math.pow(2,t.lsd.gct.size+1))},(i,t)=>t.lsd.gct.exists),{frames:Qe([rr,or,sr,nr,ir],i=>{var t=ce()(i);return t===33||t===44})}],lr=(i,t)=>{const e=new Array(i.length),r=i.length/t,n=function(f,h){const m=i.slice(h*t,(h+1)*t);e.splice.apply(e,[f*t,t].concat(m))},o=[0,4,2,1],s=[8,8,4,2];for(var a=0,l=0;l<4;l++)for(var c=o[l];c{const o=e;var s,a,l,c,f,h,m,b,A,k,d,T,v,y,I,B;const M=new Array(e),g=new Array(4096),p=new Array(4096),P=new Array(4097);for(T=i,a=1<>=c,b-=c,A>s||A==f)break;if(A==a){c=T+1,l=(1<a;)P[y++]=p[A],A=g[A];v=p[A]&255,P[y++]=v,s<4096&&(g[s]=m,p[s]=v,s++,!(s&l)&&s<4096&&(c++,l+=s)),m=h}y--,M[B++]=P[y],k++}for(k=B;k{const t=new Uint8Array(i);return bt(tr(t),ar)},fr=i=>{const t=i.pixels.length,e=new Uint8ClampedArray(t*4);for(var r=0;r{if(!i.image){console.warn("gif frame does not have associated image.");return}const{image:r}=i,n=r.descriptor.width*r.descriptor.height;var o=cr(r.data.minCodeSize,r.data.blocks,n);r.descriptor.lct.interlaced&&(o=lr(o,r.descriptor.width));const s={pixels:o,dims:{top:i.image.descriptor.top,left:i.image.descriptor.left,width:i.image.descriptor.width,height:i.image.descriptor.height}};return r.descriptor.lct&&r.descriptor.lct.exists?s.colorTable=r.lct:s.colorTable=t,i.gce&&(s.delay=(i.gce.delay||10)*10,s.disposalType=i.gce.extras.disposal,i.gce.extras.transparentColorGiven&&(s.transparentIndex=i.gce.transparentColorIndex)),s.patch=fr(s),s},dr=(i,t)=>i.frames.filter(e=>e.image).map(e=>hr(e,i.gct));var gr=100,K=256,Wt=K-1,ct=4,fe=16,Gt=1<>jt,mr=Gt<>3,$t=6,wr=1<<$t,br=vr*wr,yr=30,de=10,Ct=1<>3);var g,p;for(g=0;g>=ct,e[g][1]>>=ct,e[g][2]>>=ct,e[g][3]=g}function c(g,p,P,d,b){e[p][0]-=g*(e[p][0]-P)/Ct,e[p][1]-=g*(e[p][1]-d)/Ct,e[p][2]-=g*(e[p][2]-b)/Ct}function f(g,p,P,d,b){for(var v=Math.abs(p-g),y=Math.min(p+g,K),B=p+1,I=p-1,R=1,u,N;Bv;)N=s[R++],Bv&&(u=e[I--],u[0]-=N*(u[0]-P)/pt,u[1]-=N*(u[1]-d)/pt,u[2]-=N*(u[2]-b)/pt)}function h(g,p,P){var d=2147483647,b=d,v=-1,y=v,B,I,R,u,N;for(B=0;B>fe-ct),u>jt,o[B]-=N,n[B]+=N<>1,p=y+1;p>1,p=y+1;p<256;p++)r[p]=Wt}function A(g,p,P){for(var d,b,v,y=1e3,B=-1,I=r[p],R=I-1;I=0;)I=y?I=K:(I++,v<0&&(v=-v),d=b[0]-g,d<0&&(d=-d),v+=d,v=0&&(b=e[R],v=p-b[1],v>=y?R=-1:(R--,v<0&&(v=-v),d=b[0]-g,d<0&&(d=-d),v+=d,v>$t;for(B<=1&&(B=0),g=0;g=p&&(O-=p),g++,b===0&&(b=1),g%b===0)for(v-=v/P,y-=y/yr,B=y>>$t,B<=1&&(B=0),C=0;C=254&&I(O)}function b(C){v(wt),h=T+2,A=!0,N(T,C)}function v(C){for(var O=0;O=0){lt=z-G,G===0&&(lt=1);do if((G-=lt)<0&&(G+=z),s[G]===w){Y=a[G];continue t}while(s[G]>=0)}N(Y,O),Y=ft,h<1<0&&(C.writeByte(f),C.writeBytes(o,0,f),f=0)}function R(C){return(1<0?l|=C<=8;)d(l&255,O),l>>=8,c-=8;if((h>m||A)&&(A?(m=R(P=k),A=!1):(++P,P==At?m=1<0;)d(l&255,O),l>>=8,c-=8;I(O)}}this.encode=B}function q(){this.page=-1,this.pages=[],this.newPage()}q.pageSize=4096;q.charMap={};for(var Pt=0;Pt<256;Pt++)q.charMap[Pt]=String.fromCharCode(Pt);q.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(q.pageSize),this.cursor=0};q.prototype.getData=function(){for(var i="",t=0;tr+n.length,0));return i.reduce((r,n)=>(e.set(n,r),r+n.length),0),e};q.prototype.writeByte=function(i){this.cursor>=q.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=i};q.prototype.writeUTFBytes=function(i){for(var t=i.length,e=0;e=0&&(this.dispose=i)};$.prototype.setRepeat=function(i){this.repeat=i};$.prototype.setTransparent=function(i){this.transparent=i};$.prototype.addFrame=function(i){this.image=i,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),this.globalPalette===!0&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),!this.firstFrame&&!this.globalPalette&&this.writePalette(),this.writePixels(),this.firstFrame=!1};$.prototype.finish=function(){this.out.writeByte(59)};$.prototype.setQuality=function(i){i<1&&(i=1),this.sample=i};$.prototype.setDither=function(i){i===!0&&(i="FloydSteinberg"),this.dither=i};$.prototype.setGlobalPalette=function(i){this.globalPalette=i};$.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};$.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};$.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new Pr(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,this.transparent!==null&&(this.transIndex=this.findClosest(this.transparent,!0))};$.prototype.indexPixels=function(i){var t=this.pixels.length/3;this.indexedPixels=new Uint8Array(t);for(var e=0,r=0;r=0&&B+f=0&&I+c>16,(i&65280)>>8,i&255,t)};$.prototype.findClosestRGB=function(i,t,e,r){if(this.colorTab===null)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(i,t,e);for(var n=0,o=256*256*256,s=this.colorTab.length,a=0,l=0;a=0&&(t=this.dispose&7),t<<=2,this.out.writeByte(0|t|0|i),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)};$.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)};$.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)};$.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)};$.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var i=3*256-this.colorTab.length,t=0;t>8&255)};$.prototype.writePixels=function(){var i=new Dr(this.width,this.height,this.indexedPixels,this.colorDepth);i.encode(this.out)};$.prototype.stream=function(){return this.out};var kr=globalThis&&globalThis.__awaiter||function(i,t,e,r){function n(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(f){try{c(r.next(f))}catch(h){s(h)}}function l(f){try{c(r.throw(f))}catch(h){s(h)}}function c(f){f.done?o(f.value):n(f.value).then(a,l)}c((r=r.apply(i,t||[])).next())})};const{Canvas:ot}=Ye,Bt=.4;function ne(i){if(!i)return;function t(e){e.onload=null,e.onerror=null}return new Promise(function(e,r){if(i.slice(0,4)=="data"){let o=new Image;o.onload=function(){e(o),t(o)},o.onerror=function(){r("Image load error"),t(o)},o.src=i;return}let n=new Image;n.setAttribute("crossOrigin","Anonymous"),n.onload=function(){e(n)},n.onerror=function(){r("Image load error")},n.src=i})}class _{constructor(t){const e=Object.assign({},t);if(Object.keys(_.defaultOptions).forEach(r=>{r in e||Object.defineProperty(e,r,{value:_.defaultOptions[r],enumerable:!0,writable:!0})}),e.components?typeof e.components=="object"&&Object.keys(_.defaultComponentOptions).forEach(r=>{r in e.components?Object.defineProperty(e.components,r,{value:Object.assign(Object.assign({},_.defaultComponentOptions[r]),e.components[r]),enumerable:!0,writable:!0}):Object.defineProperty(e.components,r,{value:_.defaultComponentOptions[r],enumerable:!0,writable:!0})}):e.components=_.defaultComponentOptions,e.dotScale!==null&&e.dotScale!==void 0){if(e.dotScale<=0||e.dotScale>1)throw new Error("dotScale should be in range (0, 1].");e.components.data.scale=e.dotScale,e.components.timing.scale=e.dotScale,e.components.alignment.scale=e.dotScale}this.options=e,this.canvas=new ot(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new ut(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}draw(){return new Promise(t=>this._draw().then(t))}_clear(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}static _prepareRoundedCornerClip(t,e,r,n,o,s){t.beginPath(),t.moveTo(e,r),t.arcTo(e+n,r,e+n,r+o,s),t.arcTo(e+n,r+o,e,r+o,s),t.arcTo(e,r+o,e,r,s),t.arcTo(e,r,e+n,r,s),t.closePath()}static _getAverageRGB(t){const r={r:0,g:0,b:0};let n,o,s=-4;const a={r:0,g:0,b:0};let l=0;o=t.naturalHeight||t.height,n=t.naturalWidth||t.width;const f=new ot(n,o).getContext("2d");if(!f)return r;f.drawImage(t,0,0);let h;try{h=f.getImageData(0,0,n,o)}catch{return r}for(;(s+=5*4)200||h.data[s+1]>200||h.data[s+2]>200||(++l,a.r+=h.data[s],a.g+=h.data[s+1],a.b+=h.data[s+2]);return a.r=~~(a.r/l),a.g=~~(a.g/l),a.b=~~(a.b/l),a}static _drawDot(t,e,r,n,o=0,s=1){t.fillRect((e+o)*n,(r+o)*n,s*n,s*n)}static _drawAlignProtector(t,e,r,n){t.clearRect((e-2)*n,(r-2)*n,5*n,5*n),t.fillRect((e-2)*n,(r-2)*n,5*n,5*n)}static _drawAlign(t,e,r,n,o=0,s=1,a,l){const c=t.fillStyle;t.fillStyle=a,new Array(4).fill(0).map((f,h)=>{_._drawDot(t,e-2+h,r-2,n,o,s),_._drawDot(t,e+2,r-2+h,n,o,s),_._drawDot(t,e+2-h,r+2,n,o,s),_._drawDot(t,e-2,r+2-h,n,o,s)}),_._drawDot(t,e,r,n,o,s),l||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((f,h)=>{_._drawDot(t,e-1+h,r-1,n,o,s),_._drawDot(t,e+1,r-1+h,n,o,s),_._drawDot(t,e+1-h,r+1,n,o,s),_._drawDot(t,e-1,r+1-h,n,o,s)})),t.fillStyle=c}_draw(){var t,e,r,n,o,s,a,l,c,f,h,m,A,k,T,M,g,p,P;return kr(this,void 0,void 0,function*(){const d=(t=this.qrCode)===null||t===void 0?void 0:t.moduleCount,b=this.options.size;let v=this.options.margin;(v<0||v*2>=b)&&(v=0);const y=Math.ceil(v),B=b-2*v,I=this.options.whiteMargin,R=this.options.backgroundDimming,u=Math.ceil(B/d),N=u*d,C=N+2*y,O=new ot(C,C),w=O.getContext("2d");this._clear(),w.save(),w.translate(y,y);const ft=new ot(C,C),G=ft.getContext("2d");let Y=null,lt=[];if(this.options.gifBackground){const D=ur(this.options.gifBackground);if(Y=D,lt=dr(D),this.options.autoColor){let E=0,x=0,S=0,H=0;for(let F=0;F200||U[1]>200||U[2]>200||U[0]===0&&U[1]===0&&U[2]===0||(H++,E+=U[0],x+=U[1],S+=U[2])}E=~~(E/H),x=~~(x/H),S=~~(S/H),this.options.colorDark=`rgb(${E},${x},${S})`}}else if(this.options.backgroundImage){const D=yield ne(this.options.backgroundImage);if(this.options.autoColor){const E=_._getAverageRGB(D);this.options.colorDark=`rgb(${E.r},${E.g},${E.b})`}G.drawImage(D,0,0,D.width,D.height,0,0,C,C),G.rect(0,0,C,C),G.fillStyle=R,G.fill()}else G.rect(0,0,C,C),G.fillStyle=this.options.colorLight,G.fill();const z=L.getPatternPosition(this.qrCode.typeNumber),Q=((r=(e=this.options.components)===null||e===void 0?void 0:e.data)===null||r===void 0?void 0:r.scale)||Bt,zt=(1-Q)*.5;for(let D=0;D=d-8)||E>=d-8&&D<8,H=D==6&&E>=8&&E<=d-8||E==6&&D>=8&&D<=d-8;let F=S||H;for(let X=1;X=z[X]-2&&D<=z[X]+2&&E>=z[X]-2&&E<=z[X]+2;const U=E*u+(F?0:zt*u),tt=D*u+(F?0:zt*u);if(w.strokeStyle=x?this.options.colorDark:this.options.colorLight,w.lineWidth=.5,w.fillStyle=x?this.options.colorDark:this.options.colorLight,z.length===0)F||w.fillRect(U,tt,(F?1:Q)*u,(F?1:Q)*u);else{const X=E=d-4-5&&D=d-4-5;!F&&!X&&w.fillRect(U,tt,(F?1:Q)*u,(F?1:Q)*u)}}const J=z[z.length-1],me=this.options.colorLight;if(w.fillStyle=me,w.fillRect(0,0,8*u,8*u),w.fillRect(0,(d-8)*u,8*u,8*u),w.fillRect((d-8)*u,0,8*u,8*u),!((o=(n=this.options.components)===null||n===void 0?void 0:n.timing)===null||o===void 0)&&o.protectors&&(w.fillRect(8*u,6*u,(d-8-8)*u,u),w.fillRect(6*u,8*u,u,(d-8-8)*u)),!((a=(s=this.options.components)===null||s===void 0?void 0:s.cornerAlignment)===null||a===void 0)&&a.protectors&&_._drawAlignProtector(w,J,J,u),!((c=(l=this.options.components)===null||l===void 0?void 0:l.alignment)===null||c===void 0)&&c.protectors)for(let D=0;D=1)&&(E=.2),x<0&&(x=0),S<0&&(S=0);const H=N*E,F=.5*(C-H),U=F;w.restore(),w.fillStyle=this.options.logoBackgroundColor,w.save(),_._prepareRoundedCornerClip(w,F-x,U-x,H+2*x,H+2*x,S+x),w.clip();const tt=w.globalCompositeOperation;w.globalCompositeOperation="destination-out",w.fill(),w.globalCompositeOperation=tt,w.restore(),w.save(),_._prepareRoundedCornerClip(w,F,U,H,H,S),w.clip(),w.drawImage(D,F,U,H,H),w.restore(),w.save(),w.translate(y,y)}if(Y){let D,E,x,S,H,F;if(lt.forEach(function(U){D||(D=new $(b,b),D.setDelay(U.delay),D.setRepeat(0));const{width:tt,height:X}=U.dims;E||(E=new ot(tt,X),x=E.getContext("2d"),x.rect(0,0,E.width,E.height),x.fillStyle="#ffffff",x.fill()),(!S||!F||tt!==S.width||X!==S.height)&&(S=new ot(tt,X),H=S.getContext("2d"),F=H.createImageData(tt,X)),F.data.set(U.patch),H.putImageData(F,0,0),x.drawImage(S.getContext("2d").canvas,U.dims.left,U.dims.top);const yt=new ot(C,C),vt=yt.getContext("2d");vt.drawImage(E.getContext("2d").canvas,0,0,C,C),vt.rect(0,0,C,C),vt.fillStyle=R,vt.fill(),vt.drawImage(O.getContext("2d").canvas,0,0,C,C);const St=new ot(b,b),Zt=St.getContext("2d");Zt.drawImage(yt.getContext("2d").canvas,0,0,b,b),D.addFrame(Zt.getImageData(0,0,St.width,St.height).data)}),!D)throw new Error("No frames.");if(D.finish(),ie(this.canvas)){const tt=D.stream().toFlattenUint8Array().reduce((X,yt)=>X+String.fromCharCode(yt),"");return Promise.resolve(`data:image/gif;base64,${window.btoa(tt)}`)}return Promise.resolve(Buffer.from(D.stream().toFlattenUint8Array()))}else{G.drawImage(O.getContext("2d").canvas,0,0,C,C),w.drawImage(ft.getContext("2d").canvas,-y,-y,C,C);const D=new ot(b,b);D.getContext("2d").drawImage(O.getContext("2d").canvas,0,0,b,b),this.canvas=D;const x=this.options.gifBackground?"gif":"png";return ie(this.canvas)?Promise.resolve(this.canvas.toDataURL(x)):Promise.resolve(this.canvas.toBuffer(x))}})}}_.CorrectLevel=Z;_.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}};_.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:Z.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:_.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"};function ie(i){try{return i instanceof HTMLElement}catch{return typeof i=="object"&&i.nodeType===1&&typeof i.style=="object"&&typeof i.ownerDocument=="object"}}function Dt(i,...t){if(Array.isArray(i))i.forEach(e=>Dt(e,...t));else return i(...t)}const Tr=(i,t)=>{const e=document.createElement("a");e.href=i,e.download=t||new Date().getTime()+".png",e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)},Er=i=>new Promise((t,e)=>{const r=new XMLHttpRequest;r.responseType="blob",r.onload=()=>{const n=new FileReader;n.onloadend=()=>{t(n.result)},n.onerror=o=>{e(o)},n.onabort=o=>{e(o)},n.readAsArrayBuffer(r.response)},r.open("GET",i),r.send()}),Nt=be({name:"Vue3NextQrcode",props:ke,setup(i,t){const{expose:e}=t,r=ye(()=>({"--ray-qrcode-width":i.size+"px","--ray-qrcode-height":i.size+"px","--ray-qrcode-border-radius":i.logoCornerRadius+"px","--ray-qrcode-mask-color":i.maskColor})),n=qt();let o;const s=qt(!1);let a;const l=async()=>{const{gifBackgroundURL:m}=i;if(m)try{o=await Er(m)}catch(A){console.error(A)}},c=()=>{const{gifBackgroundURL:m,gifBackground:A,...k}=i;new _({...k,gifBackground:o??void 0}).draw().then(T=>{const{onSuccess:M}=i;M&&Dt(M,T),n.value=T}).catch(T=>{const{onError:M}=i;M&&Dt(M,T)})},f=()=>{if(t.slots.errorAction)return;const{onReload:m}=i;m&&Dt(m)},h=m=>n.value&&typeof n.value=="string"?new Promise(A=>{Tr(n.value,m),A()}):Promise.reject();return Ce(()=>{i.watchText?a=De(()=>i.text,()=>c()):a==null||a()}),e({downloadQRCode:h}),Ae(async()=>{await l(),c()}),Pe(()=>{a==null||a()}),{qrcodeURL:n,errorActionClick:f,cssVars:r,isClick:s}},render(){return it("div",{class:"ray-qrcode",style:[this.cssVars]},[it("div",{class:[this.status==="loading"&&!this.$slots.loading?"ray-qrcode__loading":"",this.$slots.loading?"ray-qrcode__loading--custom":""]},[this.status==="loading"?this.$slots.loading?it("div",{class:"ray-qrcode__loading-slots"},[this.$slots.loading()]):it("div",{class:"ray-qrcode__spin"},null):null,it("img",Be({src:this.qrcodeURL},{img_tag:"VUE3_NEXT_QRCODE"}),null)]),this.status==="error"?it("div",{class:"ray-qrcode__error"},[it("div",{class:"ray-qrcode__error-content"},[typeof this.errorDescription=="string"?this.errorDescription:()=>this.errorDescription]),it("div",{class:"ray-qrcode__error-btn",onClick:this.errorActionClick.bind(this)},[this.$slots.errorAction?this.$slots.errorAction():it("span",{onMousedown:()=>{this.isClick=!0},onMouseup:()=>{this.isClick=!1},class:[this.isClick?"ray-qrcode__error-btn-click":""]},[this.errorActionDescription])])]):null])}});Nt.install=function(i){i.component(Nt.name,Nt)};export{Nt as Q}; +import{m as be,f as ye,j as Ce,l as Ae,x as Pe,b as it,p as Be,w as De}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as qt}from"./@vue_reactivity@3.5.13-CVvlldVq.js";const ke={maskColor:{type:String,default:"rgba(255, 255, 255, 0.96)"},watchText:{type:Boolean,default:!0},status:{type:String},errorDescription:{type:[String,Object],default:"二维码已过期"},errorActionDescription:{type:String,default:"重新加载"},text:{type:String,required:!0},size:{type:Number,default:160},margin:{type:Number,default:12},correctLevel:{type:Number,default:1,validator:i=>[0,1,2,3].includes(i)},maskPattern:{type:Number},version:{type:Number},components:{type:Object,default:()=>({data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}})},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#ffffff"},autoColor:{type:Boolean,default:!0},backgroundImage:{type:String},backgroundDimming:{type:String,default:"rgba(0, 0, 0, 0)"},gifBackgroundURL:{type:String},gifBackground:{type:ArrayBuffer},whiteMargin:{type:Boolean,default:!0},logoImage:{type:String},logoScale:{type:Number,default:.4},logoMargin:{type:Number,default:6},logoCornerRadius:{type:Number,default:8},dotScale:{type:Number,default:1},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onReload:{type:[Function,Array],default:null}};function Te(i,t,e){const r=oe(t),n=i-1;let o=0;switch(e){case Z.L:o=rt[n][0];break;case Z.M:o=rt[n][1];break;case Z.Q:o=rt[n][2];break;case Z.H:o=rt[n][3];break}return r<=o}function Ee(i,t){for(var e=1,r=oe(i),n=0,o=rt.length;nrt.length)throw new Error("Too long data");return e}function oe(i){var t=encodeURI(i).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=Number(i)?3:0)}class Ie{constructor(t){this.mode=V.MODE_8BIT_BYTE,this.parsedData=[],this.data=t;const e=[];for(let r=0,n=this.data.length;r65536?(o[0]=240|(s&1835008)>>>18,o[1]=128|(s&258048)>>>12,o[2]=128|(s&4032)>>>6,o[3]=128|s&63):s>2048?(o[0]=224|(s&61440)>>>12,o[1]=128|(s&4032)>>>6,o[2]=128|s&63):s>128?(o[0]=192|(s&1984)>>>6,o[1]=128|s&63):o[0]=s,e.push(o)}this.parsedData=Array.prototype.concat.apply([],e),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}getLength(){return this.parsedData.length}write(t){for(let e=0,r=this.parsedData.length;e40)throw new Error(`Invalid QR version: ${this.typeNumber}`);if(!Te(this.typeNumber,t,this.errorCorrectLevel))throw new Error(`Data is too long for QR version: ${this.typeNumber}`)}const e=new Ie(t);this.dataList.push(e),this.dataCache=void 0}isDark(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(`${t},${e}`);return this.modules[t][e]}getModuleCount(){return this.moduleCount}make(){this.makeImpl(!1,this.getBestMaskPattern())}makeImpl(t,e){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(let r=0;r=7&&this.setupTypeNumber(t),this.dataCache==null&&(this.dataCache=ut.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)}setupPositionProbePattern(t,e){for(let r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(let n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=r&&r<=6&&(n==0||n==6)||0<=n&&n<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[t+r][e+n]=!0:this.modules[t+r][e+n]=!1)}getBestMaskPattern(){if(Number.isInteger(this.maskPattern)&&Object.values(st).includes(this.maskPattern))return this.maskPattern;let t=0,e=0;for(let r=0;r<8;r++){this.makeImpl(!0,r);const n=L.getLostPoint(this);(r==0||t>n)&&(t=n,e=r)}return e}setupTimingPattern(){for(let t=8;t>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!t&&(e>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}}setupTypeInfo(t,e){const r=this.errorCorrectLevel<<3|e,n=L.getBCHTypeInfo(r);for(var o=0;o<15;o++){var s=!t&&(n>>o&1)==1;o<6?this.modules[o][8]=s:o<8?this.modules[o+1][8]=s:this.modules[this.moduleCount-15+o][8]=s}for(var o=0;o<15;o++){var s=!t&&(n>>o&1)==1;o<8?this.modules[8][this.moduleCount-o-1]=s:o<9?this.modules[8][15-o-1+1]=s:this.modules[8][15-o-1]=s}this.modules[this.moduleCount-8][8]=!t}mapData(t,e){let r=-1,n=this.moduleCount-1,o=7,s=0;for(let a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(let l=0;l<2;l++)if(this.modules[n][a-l]==null){let c=!1;s>>o&1)==1),L.getMask(e,n,a-l)&&(c=!c),this.modules[n][a-l]=c,o--,o==-1&&(s++,o=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}}static createData(t,e,r){const n=at.getRSBlocks(t,e),o=new xe;for(var s=0;sa*8)throw new Error(`code length overflow. (${o.getLengthInBits()}>${a*8})`);for(o.getLengthInBits()+4<=a*8&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=a*8||(o.put(ut.PAD0,8),o.getLengthInBits()>=a*8));)o.put(ut.PAD1,8);return ut.createBytes(o,n)}static createBytes(t,e){let r=0,n=0,o=0;const s=new Array(e.length),a=new Array(e.length);for(var l=0;l=0?g.get(P):0}}let f=0;for(var c=0;c=0;)e^=L.G15<=0;)e^=L.G18<>>=1;return e}static getPatternPosition(t){return L.PATTERN_POSITION_TABLE[t-1]}static getMask(t,e,r){switch(t){case st.PATTERN000:return(e+r)%2==0;case st.PATTERN001:return e%2==0;case st.PATTERN010:return r%3==0;case st.PATTERN011:return(e+r)%3==0;case st.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case st.PATTERN101:return e*r%2+e*r%3==0;case st.PATTERN110:return(e*r%2+e*r%3)%2==0;case st.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error(`bad maskPattern:${t}`)}}static getErrorCorrectPolynomial(t){let e=new mt([1],0);for(let r=0;r5&&(r+=3+l-5)}for(var n=0;n=256;)t-=255;return j.EXP_TABLE[t]}}j.EXP_TABLE=new Array(256);j.LOG_TABLE=new Array(256);j._constructor=function(){for(var i=0;i<8;i++)j.EXP_TABLE[i]=1<>>7-t%8&1)==1}put(t,e){for(let r=0;r>>e-r-1&1)==1)}getLengthInBits(){return this.length}putBit(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}}const rt=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function et(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function Vt(i,t){for(var e="",r=0,n=-1,o=0,s,a=0;a<=i.length;++a){if(a2){var l=e.lastIndexOf("/");if(l!==e.length-1){l===-1?(e="",r=0):(e=e.slice(0,l),r=e.length-1-e.lastIndexOf("/")),n=a,o=0;continue}}else if(e.length===2||e.length===1){e="",r=0,n=a,o=0;continue}}t&&(e.length>0?e+="/..":e="..",r=2)}else e.length>0?e+="/"+i.slice(n+1,a):e=i.slice(n+1,a),r=a-n-1;n=a,o=0}else s===46&&o!==-1?++o:o=-1}return e}function Se(i,t){var e=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return e?e===t.root?e+r:e+i+r:r}var dt={resolve:function(){for(var t="",e=!1,r,n=arguments.length-1;n>=-1&&!e;n--){var o;n>=0?o=arguments[n]:(r===void 0&&(r=process.cwd()),o=r),et(o),o.length!==0&&(t=o+"/"+t,e=o.charCodeAt(0)===47)}return t=Vt(t,!e),e?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(et(t),t.length===0)return".";var e=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Vt(t,!e),t.length===0&&!e&&(t="."),t.length>0&&r&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return et(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,e=0;e0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":dt.normalize(t)},relative:function(t,e){if(et(t),et(e),t===e||(t=dt.resolve(t),e=dt.resolve(e),t===e))return"";for(var r=1;rc){if(e.charCodeAt(s+h)===47)return e.slice(s+h+1);if(h===0)return e.slice(s+h)}else o>c&&(t.charCodeAt(r+h)===47?f=h:h===0&&(f=0));break}var m=t.charCodeAt(r+h),A=e.charCodeAt(s+h);if(m!==A)break;m===47&&(f=h)}var k="";for(h=r+f+1;h<=n;++h)(h===n||t.charCodeAt(h)===47)&&(k.length===0?k+="..":k+="/..");return k.length>0?k+e.slice(s+f):(s+=f,e.charCodeAt(s)===47&&++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(et(t),t.length===0)return".";for(var e=t.charCodeAt(0),r=e===47,n=-1,o=!0,s=t.length-1;s>=1;--s)if(e=t.charCodeAt(s),e===47){if(!o){n=s;break}}else o=!1;return n===-1?r?"/":".":r&&n===1?"//":t.slice(0,n)},basename:function(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');et(t);var r=0,n=-1,o=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,l=-1;for(s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(c===47){if(!o){r=s+1;break}}else l===-1&&(o=!1,l=s+1),a>=0&&(c===e.charCodeAt(a)?--a===-1&&(n=s):(a=-1,n=l))}return r===n?n=l:n===-1&&(n=t.length),t.slice(r,n)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else n===-1&&(o=!1,n=s+1);return n===-1?"":t.slice(r,n)}},extname:function(t){et(t);for(var e=-1,r=0,n=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(l===47){if(!o){r=a+1;break}continue}n===-1&&(o=!1,n=a+1),l===46?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||n===-1||s===0||s===1&&e===n-1&&e===r+1?"":t.slice(e,n)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return Se("/",t)},parse:function(t){et(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;var r=t.charCodeAt(0),n=r===47,o;n?(e.root="/",o=1):o=0;for(var s=-1,a=0,l=-1,c=!0,f=t.length-1,h=0;f>=o;--f){if(r=t.charCodeAt(f),r===47){if(!c){a=f+1;break}continue}l===-1&&(c=!1,l=f+1),r===46?s===-1?s=f:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||l===-1||h===0||h===1&&s===l-1&&s===a+1?l!==-1&&(a===0&&n?e.base=e.name=t.slice(1,l):e.base=e.name=t.slice(a,l)):(a===0&&n?(e.name=t.slice(1,s),e.base=t.slice(1,l)):(e.name=t.slice(a,s),e.base=t.slice(a,l)),e.ext=t.slice(s,l)),a>0?e.dir=t.slice(0,a-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};dt.posix=dt;const _e=dt.extname,se=dt.basename;class Le{constructor(){let t=typeof global>"u",e="image/png",r="image/jpeg",n="image/jpeg",o="image/webp",s="application/pdf",a="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:t?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:t?{png:e,jpg:r,jpeg:n,webp:o}:{png:e,jpg:r,jpeg:n,pdf:s,svg:a},mimes:t?{[e]:"png",[r]:"jpg",[o]:"webp"}:{[e]:"png",[r]:"jpg",[s]:"pdf",[a]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}function Me(i,{filename:t="",extension:e="",format:T,page:n,quality:o,matte:s,density:a,outline:l,archive:A}={}){var{fromMime:f,toMime:h,expected:m}=new Le,A=A||"canvas",k=T||e.replace(/@\d+x$/i,"")||_e(t),T=f(h(k)||k),M=h(T),g=i.length;if(!k)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!T)throw new Error(`Unsupported file format "${k}" (expected ${m})`);if(!g)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let p,P,d=t.replace(/{(\d*)}/g,(v,y)=>(P=!0,y=parseInt(y,10),p=isFinite(y)?y:isFinite(p)?p:-1,"{}")),b=n>0?n-1:n<0?g+n:void 0;if(isFinite(b)&&b<0||b>=g)throw new RangeError(g==1?`Canvas only has a ‘page 1’ (${b} is out of bounds)`:`Canvas has pages 1–${g} (${b} is out of bounds)`);if(i=isFinite(b)?[i[b]]:P||T=="pdf"?i:i.slice(-1),o===void 0)o=.92;else if(typeof o!="number"||!isFinite(o)||o<0||o>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(a===void 0){let v=(e||se(t,k)).match(/@(\d+)x$/i);a=v?parseInt(v[1],10):1}else if(typeof a!="number"||!Number.isInteger(a)||a<1)throw new TypeError("The density option must be a non-negative integer");return l===void 0?l=!0:T=="svg"&&(l=!!l),{filename:t,pattern:d,format:T,mime:M,pages:i,padding:p,quality:o,matte:s,density:a,outline:l,archive:A}}class kt{static for(t){return new kt().append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=this.crc|0,r=this.table,n=0,o=t.length|0;n>>8^r[(e^t[n])&255];return this.crc=e,this}}kt.prototype.table=(()=>{var i,t,e,r=[];for(i=0;i<256;i++){for(e=i,t=0;t<8;t++)e=e&1?e>>>1^3988292384:e>>>1;r[i]=e}return r})();function _t(i){let t=new Uint8Array(i),e=new DataView(t.buffer),r={array:t,view:e,size:i,set8(n,o){return e.setUint8(n,o),r},set16(n,o){return e.setUint16(n,o,!0),r},set32(n,o){return e.setUint32(n,o,!0),r},bytes(n,o){return t.set(o,n),r}};return r}class Tt{constructor(t){let e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){let r=!e,n=Tt.encoder.encode(`${this.directory}/${r?"":t}`),o=new Uint8Array(r?0:await e.arrayBuffer()),s=30+n.length,a=s+o.length,l=16,{offset:c}=this,f=_t(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,kt.for(o)).set32(14,o.length).set32(18,o.length).set16(22,n.length);c+=s;let h=_t(s+o.length+l).set32(0,67324752).bytes(4,f.array).bytes(30,n).bytes(s,o);c+=o.length,h.set32(a,134695760).bytes(a+4,f.array.slice(10,22)),c+=l,this.files.push({offset:c,folder:r,name:n,header:f,payload:h}),this.offset=c}toBuffer(){let t=this.files.reduce((h,{name:m})=>46+m.length+h,0),e=_t(t+22),r=0;for(var{offset:n,name:o,header:s,folder:a}of this.files)e.set32(r,33639248).set16(r+4,20).bytes(r+6,s.array).set8(r+38,a?16:0).set32(r+42,n).bytes(r+46,o),r+=46+o.length;e.set32(r,101010256).set16(r+8,this.files.length).set16(r+10,this.files.length).set32(r+12,t).set32(r+16,this.offset);let l=new Uint8Array(this.offset+e.size),c=0;for(var{payload:f}of this.files)l.set(f.array,c),c+=f.size;return l.set(e.array,c),l}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}Tt.encoder=new TextEncoder;const Ft=(i,t,e,r)=>{if(r){let{width:n,height:o}=i,s=Object.assign(document.createElement("canvas"),{width:n,height:o}),a=s.getContext("2d");a.fillStyle=r,a.fillRect(0,0,n,o),a.drawImage(i,0,0),i=s}return new Promise((n,o)=>i.toBlob(n,t,e))},Re=(...i)=>Ft(...i).then(t=>t.arrayBuffer()),Ne=async(i,t,e,r,n)=>{ae(n,await Ft(i,t,e,r))},Oe=async(i,t,e,r,n,o,s)=>{let a=f=>o.replace("{}",String(f+1).padStart(s,"0")),l=se(n,".zip")||"archive",c=new Tt(l);await Promise.all(i.map(async(f,h)=>{let m=a(h);await c.add(m,await Ft(f,t,e,r))})),ae(`${l}.zip`,c.blob)},ae=(i,t)=>{const e=window.URL.createObjectURL(t),r=document.createElement("a");r.style.display="none",r.href=e,r.setAttribute("download",i),typeof r.download>"u"&&r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>window.URL.revokeObjectURL(e),100)},$e=(i,t,e)=>i.map(r=>{if(t==1&&!e)return r.canvas;let n=document.createElement("canvas"),o=n.getContext("2d"),s=r.canvas?r.canvas:r;return n.width=s.width*t,n.height=s.height*t,e&&(o.fillStyle=e,o.fillRect(0,0,n.width,n.height)),o.scale(t,t),o.drawImage(s,0,0),n}),Fe={asBuffer:Re,asDownload:Ne,asZipDownload:Oe,atScale:$e,options:Me},{asBuffer:Lt,asDownload:Ue,asZipDownload:Ge,atScale:Mt,options:Rt}=Fe,Jt=Symbol.for("toDataURL"),je=i=>new Promise((t,e)=>Object.assign(new le,{crossOrigin:"Anonymous",onload:t,onerror:e,src:i}));let ze=class{constructor(t,e){let r=document.createElement("canvas"),n=[];Object.defineProperty(r,"async",{value:!0,writable:!1,enumerable:!0});for(var[o,s]of Object.entries({png:()=>Lt(r,"image/png"),jpg:()=>Lt(r,"image/jpeg"),pages:()=>n.concat(r).map(a=>a.getContext("2d"))}))Object.defineProperty(r,o,{get:s});return Object.assign(r,{width:t,height:e,newPage(...a){var{width:c,height:f}=r,l=Object.assign(document.createElement("canvas"),{width:c,height:f});l.getContext("2d").drawImage(r,0,0),n.push(l);var[c,f]=a.length?a:[c,f];return Object.assign(r,{width:c,height:f}).getContext("2d")},saveAs(a,l){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{filename:a,...l}),{pattern:f,padding:h,mime:m,quality:A,matte:k,density:T,archive:M}=c,g=Mt(c.pages,T);return h==null?Ue(g[0],m,A,k,a):Ge(g,m,A,k,M,f,h)},toBuffer(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{extension:a,...l}),{mime:f,quality:h,matte:m,pages:A,density:k}=c,T=Mt(A,k,m)[0];return Lt(T,f,h,m)},[Jt]:r.toDataURL.bind(r),toDataURL(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{extension:a,...l}),{mime:f,quality:h,matte:m,pages:A,density:k}=c,T=Mt(A,k,m)[0],M=T[T===r?Jt:"toDataURL"](f,h);return Promise.resolve(M)}})}};const{CanvasRenderingContext2D:He,CanvasGradient:Ke,CanvasPattern:Xe,Image:le,ImageData:Ze,Path2D:qe,DOMMatrix:Ve,DOMRect:Je,DOMPoint:We}=window,Ye={Canvas:ze,loadImage:je,CanvasRenderingContext2D:He,CanvasGradient:Ke,CanvasPattern:Xe,Image:le,ImageData:Ze,Path2D:qe,DOMMatrix:Ve,DOMRect:Je,DOMPoint:We},bt=(i,t,e={},r=e)=>{if(Array.isArray(t))t.forEach(n=>bt(i,n,e,r));else if(typeof t=="function")t(i,e,r,bt);else{const n=Object.keys(t)[0];Array.isArray(t[n])?(r[n]={},bt(i,t[n],e,r[n])):r[n]=t[n](i,e,r,bt)}return e},gt=(i,t)=>(e,r,n,o)=>{t(e,r,n)&&o(e,i,r,n)},Qe=(i,t)=>(e,r,n,o)=>{const s=[];let a=e.pos;for(;t(e,r,n);){const l={};if(o(e,i,r,l),e.pos===a)break;a=e.pos,s.push(l)}return s},tr=i=>({data:i,pos:0}),W=()=>i=>i.data[i.pos++],ce=(i=0)=>t=>t.data[t.pos+i],nt=i=>t=>t.data.subarray(t.pos,t.pos+=i),Et=i=>t=>t.data.subarray(t.pos,t.pos+i),Ot=i=>t=>Array.from(nt(i)(t)).map(e=>String.fromCharCode(e)).join(""),ht=i=>t=>{const e=nt(2)(t);return(e[1]<<8)+e[0]},ue=(i,t)=>(e,r,n)=>{const o=typeof t=="function"?t(e,r,n):t,s=nt(i),a=new Array(o);for(var l=0;l{for(var r=0,n=0;nt=>{const e=W()(t),r=new Array(8);for(var n=0;n<8;n++)r[7-n]=!!(e&1<{const a=i[s];return a.length?o[s]=er(r,a.index,a.length):o[s]=r[a.index],o},{})};var It={blocks:i=>{const e=[],r=i.data.length;for(var n=0,o=W()(i);o!==0&&o;o=W()(i)){if(i.pos+o>=r){const c=r-i.pos;e.push(nt(c)(i)),n+=c;break}e.push(nt(o)(i)),n+=o}const s=new Uint8Array(n);for(var a=0,l=0;l{var t=Et(2)(i);return t[0]===33&&t[1]===249}),nr=gt({image:[{code:W()},{descriptor:[{left:ht()},{top:ht()},{width:ht()},{height:ht()},{lct:Ut({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},gt({lct:ue(3,(i,t,e)=>Math.pow(2,e.descriptor.lct.size+1))},(i,t,e)=>e.descriptor.lct.exists),{data:[{minCodeSize:W()},It]}]},i=>ce()(i)===44),ir=gt({text:[{codes:nt(2)},{blockSize:W()},{preData:(i,t,e)=>nt(e.text.blockSize)(i)},It]},i=>{var t=Et(2)(i);return t[0]===33&&t[1]===1}),or=gt({application:[{codes:nt(2)},{blockSize:W()},{id:(i,t,e)=>Ot(e.blockSize)(i)},It]},i=>{var t=Et(2)(i);return t[0]===33&&t[1]===255}),sr=gt({comment:[{codes:nt(2)},It]},i=>{var t=Et(2)(i);return t[0]===33&&t[1]===254}),ar=[{header:[{signature:Ot(3)},{version:Ot(3)}]},{lsd:[{width:ht()},{height:ht()},{gct:Ut({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:W()},{pixelAspectRatio:W()}]},gt({gct:ue(3,(i,t)=>Math.pow(2,t.lsd.gct.size+1))},(i,t)=>t.lsd.gct.exists),{frames:Qe([rr,or,sr,nr,ir],i=>{var t=ce()(i);return t===33||t===44})}],lr=(i,t)=>{const e=new Array(i.length),r=i.length/t,n=function(f,h){const m=i.slice(h*t,(h+1)*t);e.splice.apply(e,[f*t,t].concat(m))},o=[0,4,2,1],s=[8,8,4,2];for(var a=0,l=0;l<4;l++)for(var c=o[l];c{const o=e;var s,a,l,c,f,h,m,b,A,k,d,T,v,y,I,B;const M=new Array(e),g=new Array(4096),p=new Array(4096),P=new Array(4097);for(T=i,a=1<>=c,b-=c,A>s||A==f)break;if(A==a){c=T+1,l=(1<a;)P[y++]=p[A],A=g[A];v=p[A]&255,P[y++]=v,s<4096&&(g[s]=m,p[s]=v,s++,!(s&l)&&s<4096&&(c++,l+=s)),m=h}y--,M[B++]=P[y],k++}for(k=B;k{const t=new Uint8Array(i);return bt(tr(t),ar)},fr=i=>{const t=i.pixels.length,e=new Uint8ClampedArray(t*4);for(var r=0;r{if(!i.image){console.warn("gif frame does not have associated image.");return}const{image:r}=i,n=r.descriptor.width*r.descriptor.height;var o=cr(r.data.minCodeSize,r.data.blocks,n);r.descriptor.lct.interlaced&&(o=lr(o,r.descriptor.width));const s={pixels:o,dims:{top:i.image.descriptor.top,left:i.image.descriptor.left,width:i.image.descriptor.width,height:i.image.descriptor.height}};return r.descriptor.lct&&r.descriptor.lct.exists?s.colorTable=r.lct:s.colorTable=t,i.gce&&(s.delay=(i.gce.delay||10)*10,s.disposalType=i.gce.extras.disposal,i.gce.extras.transparentColorGiven&&(s.transparentIndex=i.gce.transparentColorIndex)),s.patch=fr(s),s},dr=(i,t)=>i.frames.filter(e=>e.image).map(e=>hr(e,i.gct));var gr=100,K=256,Wt=K-1,ct=4,fe=16,Gt=1<>jt,mr=Gt<>3,$t=6,wr=1<<$t,br=vr*wr,yr=30,de=10,Ct=1<>3);var g,p;for(g=0;g>=ct,e[g][1]>>=ct,e[g][2]>>=ct,e[g][3]=g}function c(g,p,P,d,b){e[p][0]-=g*(e[p][0]-P)/Ct,e[p][1]-=g*(e[p][1]-d)/Ct,e[p][2]-=g*(e[p][2]-b)/Ct}function f(g,p,P,d,b){for(var v=Math.abs(p-g),y=Math.min(p+g,K),B=p+1,I=p-1,R=1,u,N;Bv;)N=s[R++],Bv&&(u=e[I--],u[0]-=N*(u[0]-P)/pt,u[1]-=N*(u[1]-d)/pt,u[2]-=N*(u[2]-b)/pt)}function h(g,p,P){var d=2147483647,b=d,v=-1,y=v,B,I,R,u,N;for(B=0;B>fe-ct),u>jt,o[B]-=N,n[B]+=N<>1,p=y+1;p>1,p=y+1;p<256;p++)r[p]=Wt}function A(g,p,P){for(var d,b,v,y=1e3,B=-1,I=r[p],R=I-1;I=0;)I=y?I=K:(I++,v<0&&(v=-v),d=b[0]-g,d<0&&(d=-d),v+=d,v=0&&(b=e[R],v=p-b[1],v>=y?R=-1:(R--,v<0&&(v=-v),d=b[0]-g,d<0&&(d=-d),v+=d,v>$t;for(B<=1&&(B=0),g=0;g=p&&(O-=p),g++,b===0&&(b=1),g%b===0)for(v-=v/P,y-=y/yr,B=y>>$t,B<=1&&(B=0),C=0;C=254&&I(O)}function b(C){v(wt),h=T+2,A=!0,N(T,C)}function v(C){for(var O=0;O=0){lt=z-G,G===0&&(lt=1);do if((G-=lt)<0&&(G+=z),s[G]===w){Y=a[G];continue t}while(s[G]>=0)}N(Y,O),Y=ft,h<1<0&&(C.writeByte(f),C.writeBytes(o,0,f),f=0)}function R(C){return(1<0?l|=C<=8;)d(l&255,O),l>>=8,c-=8;if((h>m||A)&&(A?(m=R(P=k),A=!1):(++P,P==At?m=1<0;)d(l&255,O),l>>=8,c-=8;I(O)}}this.encode=B}function q(){this.page=-1,this.pages=[],this.newPage()}q.pageSize=4096;q.charMap={};for(var Pt=0;Pt<256;Pt++)q.charMap[Pt]=String.fromCharCode(Pt);q.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(q.pageSize),this.cursor=0};q.prototype.getData=function(){for(var i="",t=0;tr+n.length,0));return i.reduce((r,n)=>(e.set(n,r),r+n.length),0),e};q.prototype.writeByte=function(i){this.cursor>=q.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=i};q.prototype.writeUTFBytes=function(i){for(var t=i.length,e=0;e=0&&(this.dispose=i)};$.prototype.setRepeat=function(i){this.repeat=i};$.prototype.setTransparent=function(i){this.transparent=i};$.prototype.addFrame=function(i){this.image=i,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),this.globalPalette===!0&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),!this.firstFrame&&!this.globalPalette&&this.writePalette(),this.writePixels(),this.firstFrame=!1};$.prototype.finish=function(){this.out.writeByte(59)};$.prototype.setQuality=function(i){i<1&&(i=1),this.sample=i};$.prototype.setDither=function(i){i===!0&&(i="FloydSteinberg"),this.dither=i};$.prototype.setGlobalPalette=function(i){this.globalPalette=i};$.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};$.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};$.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new Pr(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,this.transparent!==null&&(this.transIndex=this.findClosest(this.transparent,!0))};$.prototype.indexPixels=function(i){var t=this.pixels.length/3;this.indexedPixels=new Uint8Array(t);for(var e=0,r=0;r=0&&B+f=0&&I+c>16,(i&65280)>>8,i&255,t)};$.prototype.findClosestRGB=function(i,t,e,r){if(this.colorTab===null)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(i,t,e);for(var n=0,o=256*256*256,s=this.colorTab.length,a=0,l=0;a=0&&(t=this.dispose&7),t<<=2,this.out.writeByte(0|t|0|i),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)};$.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)};$.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)};$.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)};$.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var i=3*256-this.colorTab.length,t=0;t>8&255)};$.prototype.writePixels=function(){var i=new Dr(this.width,this.height,this.indexedPixels,this.colorDepth);i.encode(this.out)};$.prototype.stream=function(){return this.out};var kr=globalThis&&globalThis.__awaiter||function(i,t,e,r){function n(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(f){try{c(r.next(f))}catch(h){s(h)}}function l(f){try{c(r.throw(f))}catch(h){s(h)}}function c(f){f.done?o(f.value):n(f.value).then(a,l)}c((r=r.apply(i,t||[])).next())})};const{Canvas:ot}=Ye,Bt=.4;function ne(i){if(!i)return;function t(e){e.onload=null,e.onerror=null}return new Promise(function(e,r){if(i.slice(0,4)=="data"){let o=new Image;o.onload=function(){e(o),t(o)},o.onerror=function(){r("Image load error"),t(o)},o.src=i;return}let n=new Image;n.setAttribute("crossOrigin","Anonymous"),n.onload=function(){e(n)},n.onerror=function(){r("Image load error")},n.src=i})}class _{constructor(t){const e=Object.assign({},t);if(Object.keys(_.defaultOptions).forEach(r=>{r in e||Object.defineProperty(e,r,{value:_.defaultOptions[r],enumerable:!0,writable:!0})}),e.components?typeof e.components=="object"&&Object.keys(_.defaultComponentOptions).forEach(r=>{r in e.components?Object.defineProperty(e.components,r,{value:Object.assign(Object.assign({},_.defaultComponentOptions[r]),e.components[r]),enumerable:!0,writable:!0}):Object.defineProperty(e.components,r,{value:_.defaultComponentOptions[r],enumerable:!0,writable:!0})}):e.components=_.defaultComponentOptions,e.dotScale!==null&&e.dotScale!==void 0){if(e.dotScale<=0||e.dotScale>1)throw new Error("dotScale should be in range (0, 1].");e.components.data.scale=e.dotScale,e.components.timing.scale=e.dotScale,e.components.alignment.scale=e.dotScale}this.options=e,this.canvas=new ot(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new ut(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}draw(){return new Promise(t=>this._draw().then(t))}_clear(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}static _prepareRoundedCornerClip(t,e,r,n,o,s){t.beginPath(),t.moveTo(e,r),t.arcTo(e+n,r,e+n,r+o,s),t.arcTo(e+n,r+o,e,r+o,s),t.arcTo(e,r+o,e,r,s),t.arcTo(e,r,e+n,r,s),t.closePath()}static _getAverageRGB(t){const r={r:0,g:0,b:0};let n,o,s=-4;const a={r:0,g:0,b:0};let l=0;o=t.naturalHeight||t.height,n=t.naturalWidth||t.width;const f=new ot(n,o).getContext("2d");if(!f)return r;f.drawImage(t,0,0);let h;try{h=f.getImageData(0,0,n,o)}catch{return r}for(;(s+=5*4)200||h.data[s+1]>200||h.data[s+2]>200||(++l,a.r+=h.data[s],a.g+=h.data[s+1],a.b+=h.data[s+2]);return a.r=~~(a.r/l),a.g=~~(a.g/l),a.b=~~(a.b/l),a}static _drawDot(t,e,r,n,o=0,s=1){t.fillRect((e+o)*n,(r+o)*n,s*n,s*n)}static _drawAlignProtector(t,e,r,n){t.clearRect((e-2)*n,(r-2)*n,5*n,5*n),t.fillRect((e-2)*n,(r-2)*n,5*n,5*n)}static _drawAlign(t,e,r,n,o=0,s=1,a,l){const c=t.fillStyle;t.fillStyle=a,new Array(4).fill(0).map((f,h)=>{_._drawDot(t,e-2+h,r-2,n,o,s),_._drawDot(t,e+2,r-2+h,n,o,s),_._drawDot(t,e+2-h,r+2,n,o,s),_._drawDot(t,e-2,r+2-h,n,o,s)}),_._drawDot(t,e,r,n,o,s),l||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((f,h)=>{_._drawDot(t,e-1+h,r-1,n,o,s),_._drawDot(t,e+1,r-1+h,n,o,s),_._drawDot(t,e+1-h,r+1,n,o,s),_._drawDot(t,e-1,r+1-h,n,o,s)})),t.fillStyle=c}_draw(){var t,e,r,n,o,s,a,l,c,f,h,m,A,k,T,M,g,p,P;return kr(this,void 0,void 0,function*(){const d=(t=this.qrCode)===null||t===void 0?void 0:t.moduleCount,b=this.options.size;let v=this.options.margin;(v<0||v*2>=b)&&(v=0);const y=Math.ceil(v),B=b-2*v,I=this.options.whiteMargin,R=this.options.backgroundDimming,u=Math.ceil(B/d),N=u*d,C=N+2*y,O=new ot(C,C),w=O.getContext("2d");this._clear(),w.save(),w.translate(y,y);const ft=new ot(C,C),G=ft.getContext("2d");let Y=null,lt=[];if(this.options.gifBackground){const D=ur(this.options.gifBackground);if(Y=D,lt=dr(D),this.options.autoColor){let E=0,x=0,S=0,H=0;for(let F=0;F200||U[1]>200||U[2]>200||U[0]===0&&U[1]===0&&U[2]===0||(H++,E+=U[0],x+=U[1],S+=U[2])}E=~~(E/H),x=~~(x/H),S=~~(S/H),this.options.colorDark=`rgb(${E},${x},${S})`}}else if(this.options.backgroundImage){const D=yield ne(this.options.backgroundImage);if(this.options.autoColor){const E=_._getAverageRGB(D);this.options.colorDark=`rgb(${E.r},${E.g},${E.b})`}G.drawImage(D,0,0,D.width,D.height,0,0,C,C),G.rect(0,0,C,C),G.fillStyle=R,G.fill()}else G.rect(0,0,C,C),G.fillStyle=this.options.colorLight,G.fill();const z=L.getPatternPosition(this.qrCode.typeNumber),Q=((r=(e=this.options.components)===null||e===void 0?void 0:e.data)===null||r===void 0?void 0:r.scale)||Bt,zt=(1-Q)*.5;for(let D=0;D=d-8)||E>=d-8&&D<8,H=D==6&&E>=8&&E<=d-8||E==6&&D>=8&&D<=d-8;let F=S||H;for(let X=1;X=z[X]-2&&D<=z[X]+2&&E>=z[X]-2&&E<=z[X]+2;const U=E*u+(F?0:zt*u),tt=D*u+(F?0:zt*u);if(w.strokeStyle=x?this.options.colorDark:this.options.colorLight,w.lineWidth=.5,w.fillStyle=x?this.options.colorDark:this.options.colorLight,z.length===0)F||w.fillRect(U,tt,(F?1:Q)*u,(F?1:Q)*u);else{const X=E=d-4-5&&D=d-4-5;!F&&!X&&w.fillRect(U,tt,(F?1:Q)*u,(F?1:Q)*u)}}const J=z[z.length-1],me=this.options.colorLight;if(w.fillStyle=me,w.fillRect(0,0,8*u,8*u),w.fillRect(0,(d-8)*u,8*u,8*u),w.fillRect((d-8)*u,0,8*u,8*u),!((o=(n=this.options.components)===null||n===void 0?void 0:n.timing)===null||o===void 0)&&o.protectors&&(w.fillRect(8*u,6*u,(d-8-8)*u,u),w.fillRect(6*u,8*u,u,(d-8-8)*u)),!((a=(s=this.options.components)===null||s===void 0?void 0:s.cornerAlignment)===null||a===void 0)&&a.protectors&&_._drawAlignProtector(w,J,J,u),!((c=(l=this.options.components)===null||l===void 0?void 0:l.alignment)===null||c===void 0)&&c.protectors)for(let D=0;D=1)&&(E=.2),x<0&&(x=0),S<0&&(S=0);const H=N*E,F=.5*(C-H),U=F;w.restore(),w.fillStyle=this.options.logoBackgroundColor,w.save(),_._prepareRoundedCornerClip(w,F-x,U-x,H+2*x,H+2*x,S+x),w.clip();const tt=w.globalCompositeOperation;w.globalCompositeOperation="destination-out",w.fill(),w.globalCompositeOperation=tt,w.restore(),w.save(),_._prepareRoundedCornerClip(w,F,U,H,H,S),w.clip(),w.drawImage(D,F,U,H,H),w.restore(),w.save(),w.translate(y,y)}if(Y){let D,E,x,S,H,F;if(lt.forEach(function(U){D||(D=new $(b,b),D.setDelay(U.delay),D.setRepeat(0));const{width:tt,height:X}=U.dims;E||(E=new ot(tt,X),x=E.getContext("2d"),x.rect(0,0,E.width,E.height),x.fillStyle="#ffffff",x.fill()),(!S||!F||tt!==S.width||X!==S.height)&&(S=new ot(tt,X),H=S.getContext("2d"),F=H.createImageData(tt,X)),F.data.set(U.patch),H.putImageData(F,0,0),x.drawImage(S.getContext("2d").canvas,U.dims.left,U.dims.top);const yt=new ot(C,C),vt=yt.getContext("2d");vt.drawImage(E.getContext("2d").canvas,0,0,C,C),vt.rect(0,0,C,C),vt.fillStyle=R,vt.fill(),vt.drawImage(O.getContext("2d").canvas,0,0,C,C);const St=new ot(b,b),Zt=St.getContext("2d");Zt.drawImage(yt.getContext("2d").canvas,0,0,b,b),D.addFrame(Zt.getImageData(0,0,St.width,St.height).data)}),!D)throw new Error("No frames.");if(D.finish(),ie(this.canvas)){const tt=D.stream().toFlattenUint8Array().reduce((X,yt)=>X+String.fromCharCode(yt),"");return Promise.resolve(`data:image/gif;base64,${window.btoa(tt)}`)}return Promise.resolve(Buffer.from(D.stream().toFlattenUint8Array()))}else{G.drawImage(O.getContext("2d").canvas,0,0,C,C),w.drawImage(ft.getContext("2d").canvas,-y,-y,C,C);const D=new ot(b,b);D.getContext("2d").drawImage(O.getContext("2d").canvas,0,0,b,b),this.canvas=D;const x=this.options.gifBackground?"gif":"png";return ie(this.canvas)?Promise.resolve(this.canvas.toDataURL(x)):Promise.resolve(this.canvas.toBuffer(x))}})}}_.CorrectLevel=Z;_.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}};_.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:Z.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:_.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"};function ie(i){try{return i instanceof HTMLElement}catch{return typeof i=="object"&&i.nodeType===1&&typeof i.style=="object"&&typeof i.ownerDocument=="object"}}function Dt(i,...t){if(Array.isArray(i))i.forEach(e=>Dt(e,...t));else return i(...t)}const Tr=(i,t)=>{const e=document.createElement("a");e.href=i,e.download=t||new Date().getTime()+".png",e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)},Er=i=>new Promise((t,e)=>{const r=new XMLHttpRequest;r.responseType="blob",r.onload=()=>{const n=new FileReader;n.onloadend=()=>{t(n.result)},n.onerror=o=>{e(o)},n.onabort=o=>{e(o)},n.readAsArrayBuffer(r.response)},r.open("GET",i),r.send()}),Nt=be({name:"Vue3NextQrcode",props:ke,setup(i,t){const{expose:e}=t,r=ye(()=>({"--ray-qrcode-width":i.size+"px","--ray-qrcode-height":i.size+"px","--ray-qrcode-border-radius":i.logoCornerRadius+"px","--ray-qrcode-mask-color":i.maskColor})),n=qt();let o;const s=qt(!1);let a;const l=async()=>{const{gifBackgroundURL:m}=i;if(m)try{o=await Er(m)}catch(A){console.error(A)}},c=()=>{const{gifBackgroundURL:m,gifBackground:A,...k}=i;new _({...k,gifBackground:o??void 0}).draw().then(T=>{const{onSuccess:M}=i;M&&Dt(M,T),n.value=T}).catch(T=>{const{onError:M}=i;M&&Dt(M,T)})},f=()=>{if(t.slots.errorAction)return;const{onReload:m}=i;m&&Dt(m)},h=m=>n.value&&typeof n.value=="string"?new Promise(A=>{Tr(n.value,m),A()}):Promise.reject();return Ce(()=>{i.watchText?a=De(()=>i.text,()=>c()):a==null||a()}),e({downloadQRCode:h}),Ae(async()=>{await l(),c()}),Pe(()=>{a==null||a()}),{qrcodeURL:n,errorActionClick:f,cssVars:r,isClick:s}},render(){return it("div",{class:"ray-qrcode",style:[this.cssVars]},[it("div",{class:[this.status==="loading"&&!this.$slots.loading?"ray-qrcode__loading":"",this.$slots.loading?"ray-qrcode__loading--custom":""]},[this.status==="loading"?this.$slots.loading?it("div",{class:"ray-qrcode__loading-slots"},[this.$slots.loading()]):it("div",{class:"ray-qrcode__spin"},null):null,it("img",Be({src:this.qrcodeURL},{img_tag:"VUE3_NEXT_QRCODE"}),null)]),this.status==="error"?it("div",{class:"ray-qrcode__error"},[it("div",{class:"ray-qrcode__error-content"},[typeof this.errorDescription=="string"?this.errorDescription:()=>this.errorDescription]),it("div",{class:"ray-qrcode__error-btn",onClick:this.errorActionClick.bind(this)},[this.$slots.errorAction?this.$slots.errorAction():it("span",{onMousedown:()=>{this.isClick=!0},onMouseup:()=>{this.isClick=!1},class:[this.isClick?"ray-qrcode__error-btn-click":""]},[this.errorActionDescription])])]):null])}});Nt.install=function(i){i.component(Nt.name,Nt)};export{Nt as Q}; diff --git a/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-wzrC7cBz.js.gz b/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-wzrC7cBz.js.gz new file mode 100644 index 00000000..3fe7a4d2 Binary files /dev/null and b/js/vue3-next-qrcode@2.0.10_typescript@5.6.3-wzrC7cBz.js.gz differ diff --git a/js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js.gz b/js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js.gz deleted file mode 100644 index f015a4b5..00000000 Binary files a/js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js.gz and /dev/null differ diff --git a/js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js b/js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js similarity index 93% rename from js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js rename to js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js index 26de443b..674dd81d 100644 --- a/js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js +++ b/js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js @@ -1 +1 @@ -import{a as Z,o as fe}from"./evtd@0.2.4-CI_DDEu_.js";import{B as ze,d as pe,z as G,e as De,a as Ne}from"./seemly@0.3.9-BnJ6M8Cl.js";import{I as _e,F as Ie,M as je,l as W,x as Ee,d as Ce,i as ne,v as re,N as Fe,f as D,h as z,T as Pe,k as R,w as Q,n as Ae,U as Be,J as Ue,L as qe,m as Ke}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as F,n as N}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{u as oe}from"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import{h as Ge,u as q,o as Je,i as Qe}from"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import{z as Ze}from"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import{R as Re}from"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import{C as et}from"./css-render@0.15.14-BwokE0u2.js";function ce(n,e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/${n}]: slot[${t}] is empty.`);return r()}function he(n,e=!0,t=[]){return n.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&t.push(_e(String(r)));return}if(Array.isArray(r)){he(r,e,t);return}if(r.type===Ie){if(r.children===null)return;Array.isArray(r.children)&&he(r.children,e,t)}else r.type!==je&&t.push(r)}}),t}function me(n,e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/${n}]: slot[${t}] is empty.`);const o=he(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${n}]: slot[${t}] should have exactly one child.`)}let L=null;function We(){if(L===null&&(L=document.getElementById("v-binder-view-measurer"),L===null)){L=document.createElement("div"),L.id="v-binder-view-measurer";const{style:n}=L;n.position="fixed",n.left="0",n.right="0",n.top="0",n.bottom="0",n.pointerEvents="none",n.visibility="hidden",document.body.appendChild(L)}return L.getBoundingClientRect()}function tt(n,e){const t=We();return{top:e,left:n,height:0,width:0,right:t.width-n,bottom:t.height-e}}function ue(n){const e=n.getBoundingClientRect(),t=We();return{left:e.left-t.left,top:e.top-t.top,bottom:t.height+t.top-e.bottom,right:t.width+t.left-e.right,width:e.width,height:e.height}}function nt(n){return n.nodeType===9?null:n.parentNode}function ke(n){if(n===null)return null;const e=nt(n);if(e===null)return null;if(e.nodeType===9)return document;if(e.nodeType===1){const{overflow:t,overflowX:r,overflowY:o}=getComputedStyle(e);if(/(auto|scroll|overlay)/.test(t+o+r))return e}return ke(e)}const It=W({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(n){var e;Ee("VBinder",(e=Ce())===null||e===void 0?void 0:e.proxy);const t=ne("VBinder",null),r=F(null),o=i=>{r.value=i,t&&n.syncTargetWithParent&&t.setTargetRef(i)};let u=[];const b=()=>{let i=r.value;for(;i=ke(i),i!==null;)u.push(i);for(const g of u)fe("scroll",g,x,!0)},w=()=>{for(const i of u)Z("scroll",i,x,!0);u=[]},l=new Set,h=i=>{l.size===0&&b(),l.has(i)||l.add(i)},p=i=>{l.has(i)&&l.delete(i),l.size===0&&w()},x=()=>{ze(d)},d=()=>{l.forEach(i=>i())},f=new Set,m=i=>{f.size===0&&fe("resize",window,a),f.has(i)||f.add(i)},v=i=>{f.has(i)&&f.delete(i),f.size===0&&Z("resize",window,a)},a=()=>{f.forEach(i=>i())};return re(()=>{Z("resize",window,a),w()}),{targetRef:r,setTargetRef:o,addScrollListener:h,removeScrollListener:p,addResizeListener:m,removeResizeListener:v}},render(){return ce("binder",this.$slots)}}),Et=W({name:"Target",setup(){const{setTargetRef:n,syncTarget:e}=ne("VBinder");return{syncTarget:e,setTargetDirective:{mounted:n,updated:n}}},render(){const{syncTarget:n,setTargetDirective:e}=this;return n?Fe(me("follower",this.$slots),[[e]]):me("follower",this.$slots)}});function ve(n,e){console.error(`[vueuc/${n}]: ${e}`)}const{c:B}=et(),ie="vueuc-style";function be(n){return n&-n}class Oe{constructor(e,t){this.l=e,this.min=t;const r=new Array(e+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let u=e*r;for(;e>0;)u+=t[e],e-=be(e);return u}getBound(e){let t=0,r=this.l;for(;r>t;){const o=Math.floor((t+r)/2),u=this.sum(o);if(u>e){r=o;continue}else if(u{const{to:e}=n;return e??"body"})}},render(){return this.showTeleport?this.disabled?ce("lazy-teleport",this.$slots):z(Pe,{disabled:this.disabled,to:this.mergedTo},ce("lazy-teleport",this.$slots)):null}}),ee={top:"bottom",bottom:"top",left:"right",right:"left"},ge={start:"end",center:"center",end:"start"},ae={top:"height",bottom:"height",left:"width",right:"width"},ot={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},it={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lt={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ye={top:!0,bottom:!1,left:!0,right:!1},xe={top:"end",bottom:"start",left:"end",right:"start"};function st(n,e,t,r,o,u){if(!o||u)return{placement:n,top:0,left:0};const[b,w]=n.split("-");let l=w??"center",h={top:0,left:0};const p=(f,m,v)=>{let a=0,i=0;const g=t[f]-e[m]-e[f];return g>0&&r&&(v?i=ye[m]?g:-g:a=ye[m]?g:-g),{left:a,top:i}},x=b==="left"||b==="right";if(l!=="center"){const f=lt[n],m=ee[f],v=ae[f];if(t[v]>e[v]){if(e[f]+e[v]e[m]&&(l=ge[w])}else{const f=b==="bottom"||b==="top"?"left":"top",m=ee[f],v=ae[f],a=(t[v]-e[v])/2;(e[f]e[m]?(l=xe[f],h=p(v,f,x)):(l=xe[m],h=p(v,m,x)))}let d=b;return e[b] *",{pointerEvents:"all"})])]),Ct=W({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(n){const e=ne("VBinder"),t=q(()=>n.enabled!==void 0?n.enabled:n.show),r=F(null),o=F(null),u=()=>{const{syncTrigger:d}=n;d.includes("scroll")&&e.addScrollListener(l),d.includes("resize")&&e.addResizeListener(l)},b=()=>{e.removeScrollListener(l),e.removeResizeListener(l)};R(()=>{t.value&&(l(),u())});const w=oe();dt.mount({id:"vueuc/binder",head:!0,anchorMetaName:ie,ssr:w}),re(()=>{b()}),Je(()=>{t.value&&l()});const l=()=>{if(!t.value)return;const d=r.value;if(d===null)return;const f=e.targetRef,{x:m,y:v,overlap:a}=n,i=m!==void 0&&v!==void 0?tt(m,v):ue(f);d.style.setProperty("--v-target-width",`${Math.round(i.width)}px`),d.style.setProperty("--v-target-height",`${Math.round(i.height)}px`);const{width:g,minWidth:M,placement:E,internalShift:_,flip:V}=n;d.setAttribute("v-placement",E),a?d.setAttribute("v-overlap",""):d.removeAttribute("v-overlap");const{style:T}=d;g==="target"?T.width=`${i.width}px`:g!==void 0?T.width=g:T.width="",M==="target"?T.minWidth=`${i.width}px`:M!==void 0?T.minWidth=M:T.minWidth="";const H=ue(d),j=ue(o.value),{left:X,top:P,placement:U}=st(E,i,H,_,V,a),s=ut(U,a),{left:c,top:y,transform:$}=at(U,j,i,P,X,a);d.setAttribute("v-placement",U),d.style.setProperty("--v-offset-left",`${Math.round(X)}px`),d.style.setProperty("--v-offset-top",`${Math.round(P)}px`),d.style.transform=`translateX(${c}) translateY(${y}) ${$}`,d.style.setProperty("--v-transform-origin",s),d.style.transformOrigin=s};Q(t,d=>{d?(u(),h()):b()});const h=()=>{Ae().then(l).catch(d=>console.error(d))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(d=>{Q(N(n,d),l)}),["teleportDisabled"].forEach(d=>{Q(N(n,d),h)}),Q(N(n,"syncTrigger"),d=>{d.includes("resize")?e.addResizeListener(l):e.removeResizeListener(l),d.includes("scroll")?e.addScrollListener(l):e.removeScrollListener(l)});const p=Qe(),x=q(()=>{const{to:d}=n;if(d!==void 0)return d;p.value});return{VBinder:e,mergedEnabled:t,offsetContainerRef:o,followerRef:r,mergedTo:x,syncPosition:l}},render(){return z(rt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var n,e;const t=z("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[z("div",{class:"v-binder-follower-content",ref:"followerRef"},(e=(n=this.$slots).default)===null||e===void 0?void 0:e.call(n))]);return this.zindexable?Fe(t,[[Ze,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}});class ft{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Re)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const t of e){const r=this.elHandlersMap.get(t.target);r!==void 0&&r(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}}const Me=new ft,$e=W({name:"ResizeObserver",props:{onResize:Function},setup(n){let e=!1;const t=Ce().proxy;function r(o){const{onResize:u}=n;u!==void 0&&u(o)}R(()=>{const o=t.$el;if(o===void 0){ve("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){ve("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Me.registerHandler(o.nextElementSibling,r),e=!0)}),re(()=>{e&&Me.unregisterHandler(t.$el.nextElementSibling)})},render(){return Be(this.$slots,"default")}});let te;function ct(){return typeof document>"u"?!1:(te===void 0&&("matchMedia"in window?te=window.matchMedia("(pointer:coarse)").matches:te=!1),te)}let de;function Se(){return typeof document>"u"?1:(de===void 0&&(de="chrome"in window?window.devicePixelRatio:1),de)}const Le="VVirtualListXScroll";function ht({columnsRef:n,renderColRef:e,renderItemWithColsRef:t}){const r=F(0),o=F(0),u=D(()=>{const h=n.value;if(h.length===0)return null;const p=new Oe(h.length,0);return h.forEach((x,d)=>{p.add(d,x.width)}),p}),b=q(()=>{const h=u.value;return h!==null?Math.max(h.getBound(o.value)-1,0):0}),w=h=>{const p=u.value;return p!==null?p.sum(h):0},l=q(()=>{const h=u.value;return h!==null?Math.min(h.getBound(o.value+r.value)+1,n.value.length-1):0});return Ee(Le,{startIndexRef:b,endIndexRef:l,columnsRef:n,renderColRef:e,renderItemWithColsRef:t,getLeft:w}),{listWidthRef:r,scrollLeftRef:o}}const Te=W({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:n,endIndexRef:e,columnsRef:t,getLeft:r,renderColRef:o,renderItemWithColsRef:u}=ne(Le);return{startIndex:n,endIndex:e,columns:t,renderCol:o,renderItemWithCols:u,getLeft:r}},render(){const{startIndex:n,endIndex:e,columns:t,renderCol:r,renderItemWithCols:o,getLeft:u,item:b}=this;if(o!=null)return o({itemIndex:this.index,startColIndex:n,endColIndex:e,allColumns:t,item:b,getLeft:u});if(r!=null){const w=[];for(let l=n;l<=e;++l){const h=t[l];w.push(r({column:h,left:u(l),item:b}))}return w}return null}}),pt=B(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[B("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[B("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Ft=W({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(n){const e=oe();pt.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:ie,ssr:e}),R(()=>{const{defaultScrollIndex:s,defaultScrollKey:c}=n;s!=null?a({index:s}):c!=null&&a({key:c})});let t=!1,r=!1;Ue(()=>{if(t=!1,!r){r=!0;return}a({top:f.value,left:b.value})}),qe(()=>{t=!0,r||(r=!0)});const o=q(()=>{if(n.renderCol==null&&n.renderItemWithCols==null||n.columns.length===0)return;let s=0;return n.columns.forEach(c=>{s+=c.width}),s}),u=D(()=>{const s=new Map,{keyField:c}=n;return n.items.forEach((y,$)=>{s.set(y[c],$)}),s}),{scrollLeftRef:b,listWidthRef:w}=ht({columnsRef:N(n,"columns"),renderColRef:N(n,"renderCol"),renderItemWithColsRef:N(n,"renderItemWithCols")}),l=F(null),h=F(void 0),p=new Map,x=D(()=>{const{items:s,itemSize:c,keyField:y}=n,$=new Oe(s.length,c);return s.forEach((I,C)=>{const S=I[y],A=p.get(S);A!==void 0&&$.add(C,A)}),$}),d=F(0),f=F(0),m=q(()=>Math.max(x.value.getBound(f.value-pe(n.paddingTop))-1,0)),v=D(()=>{const{value:s}=h;if(s===void 0)return[];const{items:c,itemSize:y}=n,$=m.value,I=Math.min($+Math.ceil(s/y+1),c.length-1),C=[];for(let S=$;S<=I;++S)C.push(c[S]);return C}),a=(s,c)=>{if(typeof s=="number"){E(s,c,"auto");return}const{left:y,top:$,index:I,key:C,position:S,behavior:A,debounce:O=!0}=s;if(y!==void 0||$!==void 0)E(y,$,A);else if(I!==void 0)M(I,A,O);else if(C!==void 0){const le=u.value.get(C);le!==void 0&&M(le,A,O)}else S==="bottom"?E(0,Number.MAX_SAFE_INTEGER,A):S==="top"&&E(0,0,A)};let i,g=null;function M(s,c,y){const{value:$}=x,I=$.sum(s)+pe(n.paddingTop);if(!y)l.value.scrollTo({left:0,top:I,behavior:c});else{i=s,g!==null&&window.clearTimeout(g),g=window.setTimeout(()=>{i=void 0,g=null},16);const{scrollTop:C,offsetHeight:S}=l.value;if(I>C){const A=$.get(s);I+A<=C+S||l.value.scrollTo({left:0,top:I+A-S,behavior:c})}else l.value.scrollTo({left:0,top:I,behavior:c})}}function E(s,c,y){l.value.scrollTo({left:s,top:c,behavior:y})}function _(s,c){var y,$,I;if(t||n.ignoreItemResize||U(c.target))return;const{value:C}=x,S=u.value.get(s),A=C.get(S),O=(I=($=(y=c.borderBoxSize)===null||y===void 0?void 0:y[0])===null||$===void 0?void 0:$.blockSize)!==null&&I!==void 0?I:c.contentRect.height;if(O===A)return;O-n.itemSize===0?p.delete(s):p.set(s,O-n.itemSize);const K=O-A;if(K===0)return;C.add(S,K);const Y=l.value;if(Y!=null){if(i===void 0){const se=C.sum(S);Y.scrollTop>se&&Y.scrollBy(0,K)}else if(SY.scrollTop+Y.offsetHeight&&Y.scrollBy(0,K)}P()}d.value++}const V=!ct();let T=!1;function H(s){var c;(c=n.onScroll)===null||c===void 0||c.call(n,s),(!V||!T)&&P()}function j(s){var c;if((c=n.onWheel)===null||c===void 0||c.call(n,s),V){const y=l.value;if(y!=null){if(s.deltaX===0&&(y.scrollTop===0&&s.deltaY<=0||y.scrollTop+y.offsetHeight>=y.scrollHeight&&s.deltaY>=0))return;s.preventDefault(),y.scrollTop+=s.deltaY/Se(),y.scrollLeft+=s.deltaX/Se(),P(),T=!0,ze(()=>{T=!1})}}}function X(s){if(t||U(s.target))return;if(n.renderCol==null&&n.renderItemWithCols==null){if(s.contentRect.height===h.value)return}else if(s.contentRect.height===h.value&&s.contentRect.width===w.value)return;h.value=s.contentRect.height,w.value=s.contentRect.width;const{onResize:c}=n;c!==void 0&&c(s)}function P(){const{value:s}=l;s!=null&&(f.value=s.scrollTop,b.value=s.scrollLeft)}function U(s){let c=s;for(;c!==null;){if(c.style.display==="none")return!0;c=c.parentElement}return!1}return{listHeight:h,listStyle:{overflow:"auto"},keyToIndex:u,itemsStyle:D(()=>{const{itemResizable:s}=n,c=G(x.value.sum());return d.value,[n.itemsStyle,{boxSizing:"content-box",width:G(o.value),height:s?"":c,minHeight:s?c:"",paddingTop:G(n.paddingTop),paddingBottom:G(n.paddingBottom)}]}),visibleItemsStyle:D(()=>(d.value,{transform:`translateY(${G(x.value.sum(m.value))})`})),viewportItems:v,listElRef:l,itemsElRef:F(null),scrollTo:a,handleListResize:X,handleListScroll:H,handleListWheel:j,handleItemResize:_}},render(){const{itemResizable:n,keyField:e,keyToIndex:t,visibleItemsTag:r}=this;return z($e,{onResize:this.handleListResize},{default:()=>{var o,u;return z("div",Ke(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?z("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[z(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:b,renderItemWithCols:w}=this;return this.viewportItems.map(l=>{const h=l[e],p=t.get(h),x=b!=null?z(Te,{index:p,item:l}):void 0,d=w!=null?z(Te,{index:p,item:l}):void 0,f=this.$slots.default({item:l,renderedCols:x,renderedItemWithCols:d,index:p})[0];return n?z($e,{key:h,onResize:m=>this.handleItemResize(h,m)},{default:()=>f}):(f.key=h,f)})}})]):(u=(o=this.$slots).empty)===null||u===void 0?void 0:u.call(o)])}})}}),mt=B(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[B("&::-webkit-scrollbar",{width:0,height:0})]),At=W({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const n=F(null);function e(o){!(o.currentTarget.offsetWidthd){const{updateCounter:V}=n;for(let T=M;T>=0;--T){const H=i-1-T;V!==void 0?V(H):p.textContent=`${H}`;const j=p.offsetWidth;if(v-=f[T],v+j<=d||T===0){a=!0,M=T-1,m&&(M===-1?(m.style.maxWidth=`${d-j}px`,m.style.boxSizing="border-box"):m.style.maxWidth="");const{onUpdateCount:X}=n;X&&X(H);break}}}}const{onUpdateOverflow:g}=n;a?g!==void 0&&g(!0):(g!==void 0&&g(!1),p.setAttribute(k,""))}const u=oe();return vt.mount({id:"vueuc/overflow",head:!0,anchorMetaName:ie,ssr:u}),R(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:t,counterRef:r,sync:o}},render(){const{$slots:n}=this;return Ae(()=>this.sync({showAllItemsBeforeCalculate:!1})),z("div",{class:"v-overflow",ref:"selfRef"},[Be(n,"default"),n.counter?n.counter():z("span",{style:{display:"inline-block"},ref:"counterRef"}),n.tail?n.tail():null])}});function Ve(n){return n instanceof HTMLElement}function He(n){for(let e=0;e=0;e--){const t=n.childNodes[e];if(Ve(t)&&(Ye(t)||Xe(t)))return!0}return!1}function Ye(n){if(!bt(n))return!1;try{n.focus({preventScroll:!0})}catch{}return document.activeElement===n}function bt(n){if(n.tabIndex>0||n.tabIndex===0&&n.getAttribute("tabIndex")!==null)return!0;if(n.getAttribute("disabled"))return!1;switch(n.nodeName){case"A":return!!n.href&&n.rel!=="ignore";case"INPUT":return n.type!=="hidden"&&n.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let J=[];const Wt=W({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(n){const e=De(),t=F(null),r=F(null);let o=!1,u=!1;const b=typeof document>"u"?null:document.activeElement;function w(){return J[J.length-1]===e}function l(a){var i;a.code==="Escape"&&w()&&((i=n.onEsc)===null||i===void 0||i.call(n,a))}R(()=>{Q(()=>n.active,a=>{a?(x(),fe("keydown",document,l)):(Z("keydown",document,l),o&&d())},{immediate:!0})}),re(()=>{Z("keydown",document,l),o&&d()});function h(a){if(!u&&w()){const i=p();if(i===null||i.contains(Ne(a)))return;f("first")}}function p(){const a=t.value;if(a===null)return null;let i=a;for(;i=i.nextSibling,!(i===null||i instanceof Element&&i.tagName==="DIV"););return i}function x(){var a;if(!n.disabled){if(J.push(e),n.autoFocus){const{initialFocusTo:i}=n;i===void 0?f("first"):(a=we(i))===null||a===void 0||a.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",h,!0)}}function d(){var a;if(n.disabled||(document.removeEventListener("focus",h,!0),J=J.filter(g=>g!==e),w()))return;const{finalFocusTo:i}=n;i!==void 0?(a=we(i))===null||a===void 0||a.focus({preventScroll:!0}):n.returnFocusOnDeactivated&&b instanceof HTMLElement&&(u=!0,b.focus({preventScroll:!0}),u=!1)}function f(a){if(w()&&n.active){const i=t.value,g=r.value;if(i!==null&&g!==null){const M=p();if(M==null||M===g){u=!0,i.focus({preventScroll:!0}),u=!1;return}u=!0;const E=a==="first"?He(M):Xe(M);u=!1,E||(u=!0,i.focus({preventScroll:!0}),u=!1)}}}function m(a){if(u)return;const i=p();i!==null&&(a.relatedTarget!==null&&i.contains(a.relatedTarget)?f("last"):f("first"))}function v(a){u||(a.relatedTarget!==null&&a.relatedTarget===t.value?f("last"):f("first"))}return{focusableStartRef:t,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:m,handleEndFocus:v}},render(){const{default:n}=this.$slots;if(n===void 0)return null;if(this.disabled)return n();const{active:e,focusableStyle:t}=this;return z(Ie,null,[z("div",{"aria-hidden":"true",tabindex:e?"0":"-1",ref:"focusableStartRef",style:t,onFocus:this.handleStartFocus}),n(),z("div",{"aria-hidden":"true",style:t,ref:"focusableEndRef",tabindex:e?"0":"-1",onFocus:this.handleEndFocus})])}});export{It as B,Wt as F,rt as L,$e as V,Ft as a,Ct as b,Et as c,Bt as d,At as e,Me as r}; +import{a as Z,o as fe}from"./evtd@0.2.4-CI_DDEu_.js";import{B as ze,d as pe,z as G,e as De,a as Ne}from"./seemly@0.3.9-BnJ6M8Cl.js";import{J as _e,F as Ie,N as je,m as W,y as Ee,d as Ce,i as ne,x as re,O as Fe,f as D,h as z,T as Pe,l as R,w as Q,n as Ae,U as Be,L as Ue,M as qe,p as Ke}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as F,o as N}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{u as oe}from"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import{h as Ge,u as q,o as Je,i as Qe}from"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import{z as Ze}from"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import{R as Re}from"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import{C as et}from"./css-render@0.15.14-BwokE0u2.js";function ce(n,e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/${n}]: slot[${t}] is empty.`);return r()}function he(n,e=!0,t=[]){return n.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&t.push(_e(String(r)));return}if(Array.isArray(r)){he(r,e,t);return}if(r.type===Ie){if(r.children===null)return;Array.isArray(r.children)&&he(r.children,e,t)}else r.type!==je&&t.push(r)}}),t}function me(n,e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/${n}]: slot[${t}] is empty.`);const o=he(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${n}]: slot[${t}] should have exactly one child.`)}let L=null;function We(){if(L===null&&(L=document.getElementById("v-binder-view-measurer"),L===null)){L=document.createElement("div"),L.id="v-binder-view-measurer";const{style:n}=L;n.position="fixed",n.left="0",n.right="0",n.top="0",n.bottom="0",n.pointerEvents="none",n.visibility="hidden",document.body.appendChild(L)}return L.getBoundingClientRect()}function tt(n,e){const t=We();return{top:e,left:n,height:0,width:0,right:t.width-n,bottom:t.height-e}}function ue(n){const e=n.getBoundingClientRect(),t=We();return{left:e.left-t.left,top:e.top-t.top,bottom:t.height+t.top-e.bottom,right:t.width+t.left-e.right,width:e.width,height:e.height}}function nt(n){return n.nodeType===9?null:n.parentNode}function Oe(n){if(n===null)return null;const e=nt(n);if(e===null)return null;if(e.nodeType===9)return document;if(e.nodeType===1){const{overflow:t,overflowX:r,overflowY:o}=getComputedStyle(e);if(/(auto|scroll|overlay)/.test(t+o+r))return e}return Oe(e)}const It=W({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(n){var e;Ee("VBinder",(e=Ce())===null||e===void 0?void 0:e.proxy);const t=ne("VBinder",null),r=F(null),o=i=>{r.value=i,t&&n.syncTargetWithParent&&t.setTargetRef(i)};let u=[];const b=()=>{let i=r.value;for(;i=Oe(i),i!==null;)u.push(i);for(const g of u)fe("scroll",g,x,!0)},w=()=>{for(const i of u)Z("scroll",i,x,!0);u=[]},l=new Set,h=i=>{l.size===0&&b(),l.has(i)||l.add(i)},p=i=>{l.has(i)&&l.delete(i),l.size===0&&w()},x=()=>{ze(d)},d=()=>{l.forEach(i=>i())},f=new Set,m=i=>{f.size===0&&fe("resize",window,a),f.has(i)||f.add(i)},v=i=>{f.has(i)&&f.delete(i),f.size===0&&Z("resize",window,a)},a=()=>{f.forEach(i=>i())};return re(()=>{Z("resize",window,a),w()}),{targetRef:r,setTargetRef:o,addScrollListener:h,removeScrollListener:p,addResizeListener:m,removeResizeListener:v}},render(){return ce("binder",this.$slots)}}),Et=W({name:"Target",setup(){const{setTargetRef:n,syncTarget:e}=ne("VBinder");return{syncTarget:e,setTargetDirective:{mounted:n,updated:n}}},render(){const{syncTarget:n,setTargetDirective:e}=this;return n?Fe(me("follower",this.$slots),[[e]]):me("follower",this.$slots)}});function ve(n,e){console.error(`[vueuc/${n}]: ${e}`)}const{c:B}=et(),ie="vueuc-style";function be(n){return n&-n}class ke{constructor(e,t){this.l=e,this.min=t;const r=new Array(e+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let u=e*r;for(;e>0;)u+=t[e],e-=be(e);return u}getBound(e){let t=0,r=this.l;for(;r>t;){const o=Math.floor((t+r)/2),u=this.sum(o);if(u>e){r=o;continue}else if(u{const{to:e}=n;return e??"body"})}},render(){return this.showTeleport?this.disabled?ce("lazy-teleport",this.$slots):z(Pe,{disabled:this.disabled,to:this.mergedTo},ce("lazy-teleport",this.$slots)):null}}),ee={top:"bottom",bottom:"top",left:"right",right:"left"},ge={start:"end",center:"center",end:"start"},ae={top:"height",bottom:"height",left:"width",right:"width"},ot={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},it={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lt={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ye={top:!0,bottom:!1,left:!0,right:!1},xe={top:"end",bottom:"start",left:"end",right:"start"};function st(n,e,t,r,o,u){if(!o||u)return{placement:n,top:0,left:0};const[b,w]=n.split("-");let l=w??"center",h={top:0,left:0};const p=(f,m,v)=>{let a=0,i=0;const g=t[f]-e[m]-e[f];return g>0&&r&&(v?i=ye[m]?g:-g:a=ye[m]?g:-g),{left:a,top:i}},x=b==="left"||b==="right";if(l!=="center"){const f=lt[n],m=ee[f],v=ae[f];if(t[v]>e[v]){if(e[f]+e[v]e[m]&&(l=ge[w])}else{const f=b==="bottom"||b==="top"?"left":"top",m=ee[f],v=ae[f],a=(t[v]-e[v])/2;(e[f]e[m]?(l=xe[f],h=p(v,f,x)):(l=xe[m],h=p(v,m,x)))}let d=b;return e[b] *",{pointerEvents:"all"})])]),Ct=W({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(n){const e=ne("VBinder"),t=q(()=>n.enabled!==void 0?n.enabled:n.show),r=F(null),o=F(null),u=()=>{const{syncTrigger:d}=n;d.includes("scroll")&&e.addScrollListener(l),d.includes("resize")&&e.addResizeListener(l)},b=()=>{e.removeScrollListener(l),e.removeResizeListener(l)};R(()=>{t.value&&(l(),u())});const w=oe();dt.mount({id:"vueuc/binder",head:!0,anchorMetaName:ie,ssr:w}),re(()=>{b()}),Je(()=>{t.value&&l()});const l=()=>{if(!t.value)return;const d=r.value;if(d===null)return;const f=e.targetRef,{x:m,y:v,overlap:a}=n,i=m!==void 0&&v!==void 0?tt(m,v):ue(f);d.style.setProperty("--v-target-width",`${Math.round(i.width)}px`),d.style.setProperty("--v-target-height",`${Math.round(i.height)}px`);const{width:g,minWidth:M,placement:E,internalShift:_,flip:V}=n;d.setAttribute("v-placement",E),a?d.setAttribute("v-overlap",""):d.removeAttribute("v-overlap");const{style:T}=d;g==="target"?T.width=`${i.width}px`:g!==void 0?T.width=g:T.width="",M==="target"?T.minWidth=`${i.width}px`:M!==void 0?T.minWidth=M:T.minWidth="";const H=ue(d),j=ue(o.value),{left:X,top:P,placement:U}=st(E,i,H,_,V,a),s=ut(U,a),{left:c,top:y,transform:$}=at(U,j,i,P,X,a);d.setAttribute("v-placement",U),d.style.setProperty("--v-offset-left",`${Math.round(X)}px`),d.style.setProperty("--v-offset-top",`${Math.round(P)}px`),d.style.transform=`translateX(${c}) translateY(${y}) ${$}`,d.style.setProperty("--v-transform-origin",s),d.style.transformOrigin=s};Q(t,d=>{d?(u(),h()):b()});const h=()=>{Ae().then(l).catch(d=>console.error(d))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(d=>{Q(N(n,d),l)}),["teleportDisabled"].forEach(d=>{Q(N(n,d),h)}),Q(N(n,"syncTrigger"),d=>{d.includes("resize")?e.addResizeListener(l):e.removeResizeListener(l),d.includes("scroll")?e.addScrollListener(l):e.removeScrollListener(l)});const p=Qe(),x=q(()=>{const{to:d}=n;if(d!==void 0)return d;p.value});return{VBinder:e,mergedEnabled:t,offsetContainerRef:o,followerRef:r,mergedTo:x,syncPosition:l}},render(){return z(rt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var n,e;const t=z("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[z("div",{class:"v-binder-follower-content",ref:"followerRef"},(e=(n=this.$slots).default)===null||e===void 0?void 0:e.call(n))]);return this.zindexable?Fe(t,[[Ze,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}});class ft{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Re)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const t of e){const r=this.elHandlersMap.get(t.target);r!==void 0&&r(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}}const Me=new ft,$e=W({name:"ResizeObserver",props:{onResize:Function},setup(n){let e=!1;const t=Ce().proxy;function r(o){const{onResize:u}=n;u!==void 0&&u(o)}R(()=>{const o=t.$el;if(o===void 0){ve("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){ve("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Me.registerHandler(o.nextElementSibling,r),e=!0)}),re(()=>{e&&Me.unregisterHandler(t.$el.nextElementSibling)})},render(){return Be(this.$slots,"default")}});let te;function ct(){return typeof document>"u"?!1:(te===void 0&&("matchMedia"in window?te=window.matchMedia("(pointer:coarse)").matches:te=!1),te)}let de;function Se(){return typeof document>"u"?1:(de===void 0&&(de="chrome"in window?window.devicePixelRatio:1),de)}const Le="VVirtualListXScroll";function ht({columnsRef:n,renderColRef:e,renderItemWithColsRef:t}){const r=F(0),o=F(0),u=D(()=>{const h=n.value;if(h.length===0)return null;const p=new ke(h.length,0);return h.forEach((x,d)=>{p.add(d,x.width)}),p}),b=q(()=>{const h=u.value;return h!==null?Math.max(h.getBound(o.value)-1,0):0}),w=h=>{const p=u.value;return p!==null?p.sum(h):0},l=q(()=>{const h=u.value;return h!==null?Math.min(h.getBound(o.value+r.value)+1,n.value.length-1):0});return Ee(Le,{startIndexRef:b,endIndexRef:l,columnsRef:n,renderColRef:e,renderItemWithColsRef:t,getLeft:w}),{listWidthRef:r,scrollLeftRef:o}}const Te=W({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:n,endIndexRef:e,columnsRef:t,getLeft:r,renderColRef:o,renderItemWithColsRef:u}=ne(Le);return{startIndex:n,endIndex:e,columns:t,renderCol:o,renderItemWithCols:u,getLeft:r}},render(){const{startIndex:n,endIndex:e,columns:t,renderCol:r,renderItemWithCols:o,getLeft:u,item:b}=this;if(o!=null)return o({itemIndex:this.index,startColIndex:n,endColIndex:e,allColumns:t,item:b,getLeft:u});if(r!=null){const w=[];for(let l=n;l<=e;++l){const h=t[l];w.push(r({column:h,left:u(l),item:b}))}return w}return null}}),pt=B(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[B("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[B("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Ft=W({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(n){const e=oe();pt.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:ie,ssr:e}),R(()=>{const{defaultScrollIndex:s,defaultScrollKey:c}=n;s!=null?a({index:s}):c!=null&&a({key:c})});let t=!1,r=!1;Ue(()=>{if(t=!1,!r){r=!0;return}a({top:f.value,left:b.value})}),qe(()=>{t=!0,r||(r=!0)});const o=q(()=>{if(n.renderCol==null&&n.renderItemWithCols==null||n.columns.length===0)return;let s=0;return n.columns.forEach(c=>{s+=c.width}),s}),u=D(()=>{const s=new Map,{keyField:c}=n;return n.items.forEach((y,$)=>{s.set(y[c],$)}),s}),{scrollLeftRef:b,listWidthRef:w}=ht({columnsRef:N(n,"columns"),renderColRef:N(n,"renderCol"),renderItemWithColsRef:N(n,"renderItemWithCols")}),l=F(null),h=F(void 0),p=new Map,x=D(()=>{const{items:s,itemSize:c,keyField:y}=n,$=new ke(s.length,c);return s.forEach((I,C)=>{const S=I[y],A=p.get(S);A!==void 0&&$.add(C,A)}),$}),d=F(0),f=F(0),m=q(()=>Math.max(x.value.getBound(f.value-pe(n.paddingTop))-1,0)),v=D(()=>{const{value:s}=h;if(s===void 0)return[];const{items:c,itemSize:y}=n,$=m.value,I=Math.min($+Math.ceil(s/y+1),c.length-1),C=[];for(let S=$;S<=I;++S)C.push(c[S]);return C}),a=(s,c)=>{if(typeof s=="number"){E(s,c,"auto");return}const{left:y,top:$,index:I,key:C,position:S,behavior:A,debounce:k=!0}=s;if(y!==void 0||$!==void 0)E(y,$,A);else if(I!==void 0)M(I,A,k);else if(C!==void 0){const le=u.value.get(C);le!==void 0&&M(le,A,k)}else S==="bottom"?E(0,Number.MAX_SAFE_INTEGER,A):S==="top"&&E(0,0,A)};let i,g=null;function M(s,c,y){const{value:$}=x,I=$.sum(s)+pe(n.paddingTop);if(!y)l.value.scrollTo({left:0,top:I,behavior:c});else{i=s,g!==null&&window.clearTimeout(g),g=window.setTimeout(()=>{i=void 0,g=null},16);const{scrollTop:C,offsetHeight:S}=l.value;if(I>C){const A=$.get(s);I+A<=C+S||l.value.scrollTo({left:0,top:I+A-S,behavior:c})}else l.value.scrollTo({left:0,top:I,behavior:c})}}function E(s,c,y){l.value.scrollTo({left:s,top:c,behavior:y})}function _(s,c){var y,$,I;if(t||n.ignoreItemResize||U(c.target))return;const{value:C}=x,S=u.value.get(s),A=C.get(S),k=(I=($=(y=c.borderBoxSize)===null||y===void 0?void 0:y[0])===null||$===void 0?void 0:$.blockSize)!==null&&I!==void 0?I:c.contentRect.height;if(k===A)return;k-n.itemSize===0?p.delete(s):p.set(s,k-n.itemSize);const K=k-A;if(K===0)return;C.add(S,K);const Y=l.value;if(Y!=null){if(i===void 0){const se=C.sum(S);Y.scrollTop>se&&Y.scrollBy(0,K)}else if(SY.scrollTop+Y.offsetHeight&&Y.scrollBy(0,K)}P()}d.value++}const V=!ct();let T=!1;function H(s){var c;(c=n.onScroll)===null||c===void 0||c.call(n,s),(!V||!T)&&P()}function j(s){var c;if((c=n.onWheel)===null||c===void 0||c.call(n,s),V){const y=l.value;if(y!=null){if(s.deltaX===0&&(y.scrollTop===0&&s.deltaY<=0||y.scrollTop+y.offsetHeight>=y.scrollHeight&&s.deltaY>=0))return;s.preventDefault(),y.scrollTop+=s.deltaY/Se(),y.scrollLeft+=s.deltaX/Se(),P(),T=!0,ze(()=>{T=!1})}}}function X(s){if(t||U(s.target))return;if(n.renderCol==null&&n.renderItemWithCols==null){if(s.contentRect.height===h.value)return}else if(s.contentRect.height===h.value&&s.contentRect.width===w.value)return;h.value=s.contentRect.height,w.value=s.contentRect.width;const{onResize:c}=n;c!==void 0&&c(s)}function P(){const{value:s}=l;s!=null&&(f.value=s.scrollTop,b.value=s.scrollLeft)}function U(s){let c=s;for(;c!==null;){if(c.style.display==="none")return!0;c=c.parentElement}return!1}return{listHeight:h,listStyle:{overflow:"auto"},keyToIndex:u,itemsStyle:D(()=>{const{itemResizable:s}=n,c=G(x.value.sum());return d.value,[n.itemsStyle,{boxSizing:"content-box",width:G(o.value),height:s?"":c,minHeight:s?c:"",paddingTop:G(n.paddingTop),paddingBottom:G(n.paddingBottom)}]}),visibleItemsStyle:D(()=>(d.value,{transform:`translateY(${G(x.value.sum(m.value))})`})),viewportItems:v,listElRef:l,itemsElRef:F(null),scrollTo:a,handleListResize:X,handleListScroll:H,handleListWheel:j,handleItemResize:_}},render(){const{itemResizable:n,keyField:e,keyToIndex:t,visibleItemsTag:r}=this;return z($e,{onResize:this.handleListResize},{default:()=>{var o,u;return z("div",Ke(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?z("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[z(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:b,renderItemWithCols:w}=this;return this.viewportItems.map(l=>{const h=l[e],p=t.get(h),x=b!=null?z(Te,{index:p,item:l}):void 0,d=w!=null?z(Te,{index:p,item:l}):void 0,f=this.$slots.default({item:l,renderedCols:x,renderedItemWithCols:d,index:p})[0];return n?z($e,{key:h,onResize:m=>this.handleItemResize(h,m)},{default:()=>f}):(f.key=h,f)})}})]):(u=(o=this.$slots).empty)===null||u===void 0?void 0:u.call(o)])}})}}),mt=B(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[B("&::-webkit-scrollbar",{width:0,height:0})]),At=W({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const n=F(null);function e(o){!(o.currentTarget.offsetWidthd){const{updateCounter:V}=n;for(let T=M;T>=0;--T){const H=i-1-T;V!==void 0?V(H):p.textContent=`${H}`;const j=p.offsetWidth;if(v-=f[T],v+j<=d||T===0){a=!0,M=T-1,m&&(M===-1?(m.style.maxWidth=`${d-j}px`,m.style.boxSizing="border-box"):m.style.maxWidth="");const{onUpdateCount:X}=n;X&&X(H);break}}}}const{onUpdateOverflow:g}=n;a?g!==void 0&&g(!0):(g!==void 0&&g(!1),p.setAttribute(O,""))}const u=oe();return vt.mount({id:"vueuc/overflow",head:!0,anchorMetaName:ie,ssr:u}),R(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:t,counterRef:r,sync:o}},render(){const{$slots:n}=this;return Ae(()=>this.sync({showAllItemsBeforeCalculate:!1})),z("div",{class:"v-overflow",ref:"selfRef"},[Be(n,"default"),n.counter?n.counter():z("span",{style:{display:"inline-block"},ref:"counterRef"}),n.tail?n.tail():null])}});function Ve(n){return n instanceof HTMLElement}function He(n){for(let e=0;e=0;e--){const t=n.childNodes[e];if(Ve(t)&&(Ye(t)||Xe(t)))return!0}return!1}function Ye(n){if(!bt(n))return!1;try{n.focus({preventScroll:!0})}catch{}return document.activeElement===n}function bt(n){if(n.tabIndex>0||n.tabIndex===0&&n.getAttribute("tabIndex")!==null)return!0;if(n.getAttribute("disabled"))return!1;switch(n.nodeName){case"A":return!!n.href&&n.rel!=="ignore";case"INPUT":return n.type!=="hidden"&&n.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let J=[];const Wt=W({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(n){const e=De(),t=F(null),r=F(null);let o=!1,u=!1;const b=typeof document>"u"?null:document.activeElement;function w(){return J[J.length-1]===e}function l(a){var i;a.code==="Escape"&&w()&&((i=n.onEsc)===null||i===void 0||i.call(n,a))}R(()=>{Q(()=>n.active,a=>{a?(x(),fe("keydown",document,l)):(Z("keydown",document,l),o&&d())},{immediate:!0})}),re(()=>{Z("keydown",document,l),o&&d()});function h(a){if(!u&&w()){const i=p();if(i===null||i.contains(Ne(a)))return;f("first")}}function p(){const a=t.value;if(a===null)return null;let i=a;for(;i=i.nextSibling,!(i===null||i instanceof Element&&i.tagName==="DIV"););return i}function x(){var a;if(!n.disabled){if(J.push(e),n.autoFocus){const{initialFocusTo:i}=n;i===void 0?f("first"):(a=we(i))===null||a===void 0||a.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",h,!0)}}function d(){var a;if(n.disabled||(document.removeEventListener("focus",h,!0),J=J.filter(g=>g!==e),w()))return;const{finalFocusTo:i}=n;i!==void 0?(a=we(i))===null||a===void 0||a.focus({preventScroll:!0}):n.returnFocusOnDeactivated&&b instanceof HTMLElement&&(u=!0,b.focus({preventScroll:!0}),u=!1)}function f(a){if(w()&&n.active){const i=t.value,g=r.value;if(i!==null&&g!==null){const M=p();if(M==null||M===g){u=!0,i.focus({preventScroll:!0}),u=!1;return}u=!0;const E=a==="first"?He(M):Xe(M);u=!1,E||(u=!0,i.focus({preventScroll:!0}),u=!1)}}}function m(a){if(u)return;const i=p();i!==null&&(a.relatedTarget!==null&&i.contains(a.relatedTarget)?f("last"):f("first"))}function v(a){u||(a.relatedTarget!==null&&a.relatedTarget===t.value?f("last"):f("first"))}return{focusableStartRef:t,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:m,handleEndFocus:v}},render(){const{default:n}=this.$slots;if(n===void 0)return null;if(this.disabled)return n();const{active:e,focusableStyle:t}=this;return z(Ie,null,[z("div",{"aria-hidden":"true",tabindex:e?"0":"-1",ref:"focusableStartRef",style:t,onFocus:this.handleStartFocus}),n(),z("div",{"aria-hidden":"true",style:t,ref:"focusableEndRef",tabindex:e?"0":"-1",onFocus:this.handleEndFocus})])}});export{It as B,Wt as F,rt as L,$e as V,Ft as a,Ct as b,Et as c,Bt as d,At as e,Me as r}; diff --git a/js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js.gz b/js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js.gz new file mode 100644 index 00000000..3d61aa88 Binary files /dev/null and b/js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js.gz differ diff --git a/js/zh-CN-B-kcJT8r.js b/js/zh-CN-B-kcJT8r.js new file mode 100644 index 00000000..67c3fa72 --- /dev/null +++ b/js/zh-CN-B-kcJT8r.js @@ -0,0 +1 @@ +import{E as to}from"./hooks-Bi_Q9OFa.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";const o="当前环境不支持全屏",eo={isEnabledFullscreen:o},no=Object.freeze(Object.defineProperty({__proto__:null,default:eo,isEnabledFullscreen:o},Symbol.toStringTag,{value:"Module"})),t="项目配置",e={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",i="动画效果",io={Title:t,ThemeOptions:e,InterfaceDisplay:n,ContentTransition:i},ro=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:i,InterfaceDisplay:n,ThemeOptions:e,Title:t,default:io},Symbol.toStringTag,{value:"Module"})),r="刷新当前页面",s="锁屏",c="设置",l="Github",p="全屏",m="退出全屏",a="搜索",so={Reload:r,Lock:s,Setting:c,Github:l,FullScreen:p,CancelFullScreen:m,Search:a},co=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:p,Github:l,Lock:s,Reload:r,Search:a,Setting:c,default:so},Symbol.toStringTag,{value:"Module"})),_="请求",g="条形码",d="缓存工具函数",u="数字精度",b="右键菜单",f="首页",h="指令",S="文档",O="文档 (加速地址)",T="文档(内嵌)",y="可视化",C="表单",j="Mock 数据",v="模态框",D="多级菜单(缓存)",M="办公",P="文档",z="演示",N="表格",R="二维码",I="依赖项",k="关于",L="页面详情模式",x="分段器",F="SVG 图标",w="表格",E="模板内置 Api",A="滚动动画",G="高级表格",$="流程图",Q="拖拽卡片",lo={Axios:_,Barcode:g,CacheDemo:d,CalculatePrecision:u,ContextMenu:b,Dashboard:f,Directive:h,Doc:S,DocLocal:O,DocLocalInside:T,Echart:y,Error:"错误页",Form:C,Mock:j,Modal:v,MultiMenu:D,Office:M,Office_Document:P,Office_Presentation:z,Office_Spreadsheet:N,QRCode:R,Rely:I,RelyAbout:k,RouterDemo:L,Segment:x,SvgIcon:F,Table:w,TemplateHooks:E,scrollReveal:A,TablePro:G,Flow:$,DraggableCard:Q},po=Object.freeze(Object.defineProperty({__proto__:null,Axios:_,Barcode:g,CacheDemo:d,CalculatePrecision:u,ContextMenu:b,Dashboard:f,Directive:h,Doc:S,DocLocal:O,DocLocalInside:T,DraggableCard:Q,Echart:y,Flow:$,Form:C,Mock:j,Modal:v,MultiMenu:D,Office:M,Office_Document:P,Office_Presentation:z,Office_Spreadsheet:N,QRCode:R,Rely:I,RelyAbout:k,RouterDemo:L,Segment:x,SvgIcon:F,Table:w,TablePro:G,TemplateHooks:E,default:lo,scrollReveal:A},Symbol.toStringTag,{value:"Module"})),B="项目配置",H={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},V="界面显示",mo={Title:B,ThemeOptions:H,InterfaceDisplay:V},ao=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:V,ThemeOptions:H,Title:B,default:mo},Symbol.toStringTag,{value:"Module"})),q="注册",J="登录",K="扫码登陆",U="请输入用户名",W="请输入密码",X="登 陆",Y="用户名",Z="密码",oo="开箱即用的中后台管理系统",_o={Register:q,Signing:J,QRCodeSigning:K,NamePlaceholder:U,PasswordPlaceholder:W,Login:X,Name:Y,Password:Z,RayTemplate:oo},go=Object.freeze(Object.defineProperty({__proto__:null,Login:X,Name:Y,NamePlaceholder:U,Password:Z,PasswordPlaceholder:W,QRCodeSigning:K,RayTemplate:oo,Register:q,Signing:J,default:_o},Symbol.toStringTag,{value:"Module"})),uo=Object.assign({"./zh-CN/globalMessage.json":no,"./zh-CN/headerSettingOptions.json":ro,"./zh-CN/headerTooltip.json":co,"./zh-CN/menu.json":po,"./zh-CN/setting.json":ao,"./zh-CN/views/login/index.json":go}),ht={message:{...to(uo,"zh-CN")}};export{ht as default}; diff --git a/js/zh-CN-B-kcJT8r.js.gz b/js/zh-CN-B-kcJT8r.js.gz new file mode 100644 index 00000000..2dd0b8d6 Binary files /dev/null and b/js/zh-CN-B-kcJT8r.js.gz differ diff --git a/js/zh-CN-Ms_tFsC1.js b/js/zh-CN-Ms_tFsC1.js deleted file mode 100644 index 4aa2c9a5..00000000 --- a/js/zh-CN-Ms_tFsC1.js +++ /dev/null @@ -1 +0,0 @@ -import{E as to}from"./hooks-CpaAYtdw.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";const o="当前环境不支持全屏",eo={isEnabledFullscreen:o},no=Object.freeze(Object.defineProperty({__proto__:null,default:eo,isEnabledFullscreen:o},Symbol.toStringTag,{value:"Module"})),t="项目配置",e={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",i="动画效果",io={Title:t,ThemeOptions:e,InterfaceDisplay:n,ContentTransition:i},ro=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:i,InterfaceDisplay:n,ThemeOptions:e,Title:t,default:io},Symbol.toStringTag,{value:"Module"})),r="刷新当前页面",s="锁屏",c="设置",l="Github",p="全屏",m="退出全屏",a="搜索",so={Reload:r,Lock:s,Setting:c,Github:l,FullScreen:p,CancelFullScreen:m,Search:a},co=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:p,Github:l,Lock:s,Reload:r,Search:a,Setting:c,default:so},Symbol.toStringTag,{value:"Module"})),_="请求",g="条形码",d="缓存工具函数",u="数字精度",b="右键菜单",f="首页",h="指令",S="文档",O="文档 (加速地址)",T="文档(内嵌)",y="可视化",C="表单",j="Mock 数据",v="模态框",D="多级菜单(缓存)",M="办公",P="文档",z="演示",N="表格",R="二维码",I="依赖项",k="关于",L="页面详情模式",x="分段器",F="SVG 图标",w="表格",E="模板内置 Api",A="滚动动画",G="高级表格",$="流程图",Q="拖拽卡片",lo={Axios:_,Barcode:g,CacheDemo:d,CalculatePrecision:u,ContextMenu:b,Dashboard:f,Directive:h,Doc:S,DocLocal:O,DocLocalInside:T,Echart:y,Error:"错误页",Form:C,Mock:j,Modal:v,MultiMenu:D,Office:M,Office_Document:P,Office_Presentation:z,Office_Spreadsheet:N,QRCode:R,Rely:I,RelyAbout:k,RouterDemo:L,Segment:x,SvgIcon:F,Table:w,TemplateHooks:E,scrollReveal:A,TablePro:G,Flow:$,DraggableCard:Q},po=Object.freeze(Object.defineProperty({__proto__:null,Axios:_,Barcode:g,CacheDemo:d,CalculatePrecision:u,ContextMenu:b,Dashboard:f,Directive:h,Doc:S,DocLocal:O,DocLocalInside:T,DraggableCard:Q,Echart:y,Flow:$,Form:C,Mock:j,Modal:v,MultiMenu:D,Office:M,Office_Document:P,Office_Presentation:z,Office_Spreadsheet:N,QRCode:R,Rely:I,RelyAbout:k,RouterDemo:L,Segment:x,SvgIcon:F,Table:w,TablePro:G,TemplateHooks:E,default:lo,scrollReveal:A},Symbol.toStringTag,{value:"Module"})),B="项目配置",H={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},V="界面显示",mo={Title:B,ThemeOptions:H,InterfaceDisplay:V},ao=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:V,ThemeOptions:H,Title:B,default:mo},Symbol.toStringTag,{value:"Module"})),q="注册",J="登录",K="扫码登陆",U="请输入用户名",W="请输入密码",X="登 陆",Y="用户名",Z="密码",oo="开箱即用的中后台管理系统",_o={Register:q,Signing:J,QRCodeSigning:K,NamePlaceholder:U,PasswordPlaceholder:W,Login:X,Name:Y,Password:Z,RayTemplate:oo},go=Object.freeze(Object.defineProperty({__proto__:null,Login:X,Name:Y,NamePlaceholder:U,Password:Z,PasswordPlaceholder:W,QRCodeSigning:K,RayTemplate:oo,Register:q,Signing:J,default:_o},Symbol.toStringTag,{value:"Module"})),uo=Object.assign({"./zh-CN/globalMessage.json":no,"./zh-CN/headerSettingOptions.json":ro,"./zh-CN/headerTooltip.json":co,"./zh-CN/menu.json":po,"./zh-CN/setting.json":ao,"./zh-CN/views/login/index.json":go}),ht={message:{...to(uo,"zh-CN")}};export{ht as default}; diff --git a/js/zh-CN-Ms_tFsC1.js.gz b/js/zh-CN-Ms_tFsC1.js.gz deleted file mode 100644 index ff7406c7..00000000 Binary files a/js/zh-CN-Ms_tFsC1.js.gz and /dev/null differ diff --git a/js/zrender@5.6.0-DbjVw6Tx.js b/js/zrender@5.6.0-DbjVw6Tx.js deleted file mode 100644 index 6a3d592e..00000000 --- a/js/zrender@5.6.0-DbjVw6Tx.js +++ /dev/null @@ -1,16 +0,0 @@ -import{_ as H}from"./tslib@2.3.0-BDyQ-Jie.js";var ko=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),No=function(){function e(){this.browser=new ko,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=typeof window<"u"}return e}(),Y=new No;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Y.wxa=!0,Y.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Y.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Y.node=!0,Y.svgSupported=!0):Wo(navigator.userAgent,Y);function Wo(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var dn=12,Yo="sans-serif",hr=dn+"px "+Yo,Go=20,Xo=100,qo="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Zo(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var f=0;f>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[f]+":0",n[h]+":0",i[1-f]+":auto",n[1-h]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function ys(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],f=!0,h=0;h<4;h++){var u=e[h].getBoundingClientRect(),v=2*h,l=u.left,d=u.top;o.push(l,d),f=f&&a&&l===a[v]&&d===a[v+1],s.push(e[h].offsetLeft,e[h].offsetTop)}return f&&n?n:(t.srcCoords=o,t[i]=r?Rn(s,o):Rn(o,s))}function Ua(e){return e.nodeName.toUpperCase()==="CANVAS"}var ms=/([&<>"'])/g,ws={"&":"&","<":"<",">":">",'"':""","'":"'"};function ku(e){return e==null?"":(e+"").replace(ms,function(t,r){return ws[r]})}var Ts=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ai=[],bs=Y.browser.firefox&&+Y.browser.version.split(".")[0]<39;function Xi(e,t,r,i){return r=r||{},i?xn(e,t,r):bs&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):xn(e,t,r),r}function xn(e,t,r){if(Y.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Ua(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Gi(ai,e,i,n)){r.zrX=ai[0],r.zrY=ai[1];return}}r.zrX=r.zrY=0}function gn(e){return e||window.event}function ct(e,t,r){if(t=gn(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Xi(e,o,t,r)}else{Xi(e,t,t,r);var a=Cs(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Ts.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Cs(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function Ms(e,t,r,i){e.addEventListener(t,r,i)}function Ls(e,t,r,i){e.removeEventListener(t,r,i)}var Ps=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Ss=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o1&&i&&i.length>1){var a=An(i)/An(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Rs(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Qr(){return[1,0,0,1,0,0]}function Ds(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function xs(e,t){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 si(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],f=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=f,e}function En(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function As(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],f=t[3],h=t[5],u=Math.sin(r),v=Math.cos(r);return e[0]=n*v+s*u,e[1]=-n*u+s*v,e[2]=a*v+f*u,e[3]=-a*u+v*f,e[4]=v*(o-i[0])+u*(h-i[1])+i[0],e[5]=v*(h-i[1])-u*(o-i[0])+i[1],e}function Es(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Is(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],f=r*o-a*i;return f?(f=1/f,e[0]=o*f,e[1]=-a*f,e[2]=-i*f,e[3]=r*f,e[4]=(i*s-o*n)*f,e[5]=(a*n-r*s)*f,e):null}var F=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e}(),se=Math.min,fe=Math.max,Gt=new F,Xt=new F,qt=new F,Zt=new F,Fr=new F,Or=new F,W=function(){function e(t,r,i,n){i<0&&(t=t+i,i=-i),n<0&&(r=r+n,n=-n),this.x=t,this.y=r,this.width=i,this.height=n}return e.prototype.union=function(t){var r=se(t.x,this.x),i=se(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fe(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=fe(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=Qr();return En(a,a,[-r.x,-r.y]),Es(a,a,[i,n]),En(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,f=t.x,h=t.x+t.width,u=t.y,v=t.y+t.height,l=!(a_&&(_=m,g_&&(_=T,p=i.x&&t<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Gt.x=qt.x=r.x,Gt.y=Zt.y=r.y,Xt.x=Zt.x=r.x+r.width,Xt.y=qt.y=r.y+r.height,Gt.transform(i),Zt.transform(i),Xt.transform(i),qt.transform(i),t.x=se(Gt.x,Xt.x,qt.x,Zt.x),t.y=se(Gt.y,Xt.y,qt.y,Zt.y);var f=fe(Gt.x,Xt.x,qt.x,Zt.x),h=fe(Gt.y,Xt.y,qt.y,Zt.y);t.width=f-t.x,t.height=h-t.y},e}(),Va="silent";function Fs(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Os}}function Os(){Ps(this.event)}var Bs=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Er),Br=function(){function e(t,r){this.x=t,this.y=r}return e}(),Hs=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fi=new W(0,0,0,0),Qa=function(e){H(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new Br(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new Bs,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new ps(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(st(Hs,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=Ka(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var f=this._hovered=a?new Br(i,n):this.findHover(i,n),h=f.target,u=this.proxy;u.setCursor&&u.setCursor(h?h.cursor:"default"),s&&h!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(f,"mousemove",r),h&&h!==s&&this.dispatchToElement(f,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Br(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=Fs(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[o]=="function"&&f[o].call(f,s),f.trigger&&f.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Br(r,i);if(In(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],f=this._pointerSize,h=f/2,u=new W(r-h,i-h,f,f),v=a.length-1;v>=0;v--){var l=a[v];l!==n&&!l.ignore&&!l.ignoreCoarsePointer&&(!l.parent||!l.parent.ignoreCoarsePointer)&&(fi.copy(l.getBoundingRect()),l.transform&&fi.applyTransform(l.transform),fi.intersect(u)&&s.push(l))}if(s.length)for(var d=4,_=Math.PI/12,g=Math.PI*2,c=0;c4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function zs(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?Va:!0}return!1}function In(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=zs(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==Va)){t.target=o;break}}}function Ka(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}var Ja=32,Hr=7;function ks(e){for(var t=0;e>=Ja;)t|=e&1,e>>=1;return e+t}function Fn(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n=0;)n++;return n-t}function Ns(e,t,r){for(r--;t>>1,n(a,e[f])<0?s=f:o=f+1;var h=i-o;switch(h){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;h>0;)e[o+h]=e[o+h-1],h--}e[o]=a}}function hi(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])>0){for(s=i-n;f0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}else{for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}for(o++;o>>1);a(e,t[r+u])>0?o=u+1:f=u}return f}function ui(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])<0){for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}else{for(s=i-n;f=0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}for(o++;o>>1);a(e,t[r+u])<0?f=u:o=u+1}return f}function Ws(e,t){var r=Hr,i,n,a=0,o=[];i=[],n=[];function s(d,_){i[a]=d,n[a]=_,a+=1}function f(){for(;a>1;){var d=a-2;if(d>=1&&n[d-1]<=n[d]+n[d+1]||d>=2&&n[d-2]<=n[d]+n[d-1])n[d-1]n[d+1])break;u(d)}}function h(){for(;a>1;){var d=a-2;d>0&&n[d-1]=Hr||M>=Hr);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),_===1){for(p=0;p=0;p--)e[w+p]=e[b+p];e[T]=o[m];return}for(var M=r;;){var C=0,L=0,P=!1;do if(t(o[m],e[y])<0){if(e[T--]=e[y--],C++,L=0,--_===0){P=!0;break}}else if(e[T--]=o[m--],L++,C=0,--c===1){P=!0;break}while((C|L)=0;p--)e[w+p]=e[b+p];if(_===0){P=!0;break}}if(e[T--]=o[m--],--c===1){P=!0;break}if(L=c-hi(e[y],o,0,c,c-1,t),L!==0){for(T-=L,m-=L,c-=L,w=T+1,b=m+1,p=0;p=Hr||L>=Hr);if(P)break;M<0&&(M=0),M+=2}if(r=M,r<1&&(r=1),c===1){for(T-=_,y-=_,w=T+1,b=y+1,p=_-1;p>=0;p--)e[w+p]=e[b+p];e[T]=o[m]}else{if(c===0)throw new Error;for(b=T-(c-1),p=0;ps&&(f=s),On(e,r,r+f,r+a,t),a=f}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var Lt=1,xe=2,Xr=4,Bn=!1;function vi(){Bn||(Bn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Hn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Gs=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Hn}return e.prototype.traverse=function(t,r){for(var i=0;i0&&(u.__clipPaths=[]),isNaN(u.z)&&(vi(),u.z=0),isNaN(u.z2)&&(vi(),u.z2=0),isNaN(u.zlevel)&&(vi(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var v=t.getDecalElement&&t.getDecalElement();v&&this._updateAndAddDisplayable(v,r,i);var l=t.getTextGuideLine();l&&this._updateAndAddDisplayable(l,r,i);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,r,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),He;He=Y.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Kr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Kr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Kr.bounceIn(e*2)*.5:Kr.bounceOut(e*2-1)*.5+.5}},he=Math.pow,Bt=Math.sqrt,ja=1e-8,to=1e-4,zn=Bt(3),ue=1/3,Mt=Ar(),lt=Ar(),Rr=Ar();function Ot(e){return e>-1e-8&&eja||e<-1e-8}function U(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function kn(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function eo(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),f=3*(t-e),h=e-n,u=s*s-3*o*f,v=s*f-9*o*h,l=f*f-3*s*h,d=0;if(Ot(u)&&Ot(v))if(Ot(s))a[0]=0;else{var _=-f/s;_>=0&&_<=1&&(a[d++]=_)}else{var g=v*v-4*u*l;if(Ot(g)){var c=v/u,_=-s/o+c,p=-c/2;_>=0&&_<=1&&(a[d++]=_),p>=0&&p<=1&&(a[d++]=p)}else if(g>0){var y=Bt(g),m=u*s+1.5*o*(-v+y),T=u*s+1.5*o*(-v-y);m<0?m=-he(-m,ue):m=he(m,ue),T<0?T=-he(-T,ue):T=he(T,ue);var _=(-s-(m+T))/(3*o);_>=0&&_<=1&&(a[d++]=_)}else{var b=(2*u*s-3*o*v)/(2*Bt(u*u*u)),w=Math.acos(b)/3,M=Bt(u),C=Math.cos(w),_=(-s-2*M*C)/(3*o),p=(-s+M*(C+zn*Math.sin(w)))/(3*o),L=(-s+M*(C-zn*Math.sin(w)))/(3*o);_>=0&&_<=1&&(a[d++]=_),p>=0&&p<=1&&(a[d++]=p),L>=0&&L<=1&&(a[d++]=L)}}return d}function io(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,f=0;if(Ot(o)){if(ro(a)){var h=-s/a;h>=0&&h<=1&&(n[f++]=h)}}else{var u=a*a-4*o*s;if(Ot(u))n[0]=-a/(2*o);else if(u>0){var v=Bt(u),h=(-a+v)/(2*o),l=(-a-v)/(2*o);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function kt(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,f=(i-r)*n+r,h=(s-o)*n+o,u=(f-s)*n+s,v=(u-h)*n+h;a[0]=e,a[1]=o,a[2]=h,a[3]=v,a[4]=v,a[5]=u,a[6]=f,a[7]=i}function Xs(e,t,r,i,n,a,o,s,f,h,u){var v,l=.005,d=1/0,_,g,c,p;Mt[0]=f,Mt[1]=h;for(var y=0;y<1;y+=.05)lt[0]=U(e,r,n,o,y),lt[1]=U(t,i,a,s,y),c=Sr(Mt,lt),c=0&&c=0&&h<=1&&(n[f++]=h)}}else{var u=o*o-4*a*s;if(Ot(u)){var h=-o/(2*a);h>=0&&h<=1&&(n[f++]=h)}else if(u>0){var v=Bt(u),h=(-o+v)/(2*a),l=(-o-v)/(2*a);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function no(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function ze(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function $s(e,t,r,i,n,a,o,s,f){var h,u=.005,v=1/0;Mt[0]=o,Mt[1]=s;for(var l=0;l<1;l+=.05){lt[0]=Q(e,r,n,l),lt[1]=Q(t,i,a,l);var d=Sr(Mt,lt);d=0&&d=1?1:eo(0,i,a,1,f,s)&&U(0,n,o,1,s[0])}}}var Qs=function(){function e(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||Pr,this.ondestroy=t.ondestroy||Pr,this.onrestart=t.onrestart||Pr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var f=n%i;this._startTime=t-f,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Qe(t)?t:Kr[t]||ao(t)},e}(),oo=function(){function e(t){this.value=t}return e}(),Ks=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new oo(t);return this.insertEntry(r),r},e.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++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),je=function(){function e(t){this._list=new Ks,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var f=i.head;i.remove(f),delete n[f.key],a=f.value,this._lastRemovedEntry=f}s?s.value=r:s=new oo(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Wn={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 Ht(e){return e=Math.round(e),e<0?0:e>255?255:e}function qi(e){return e<0?0:e>1?1:e}function li(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ht(parseFloat(t)/100*255):Ht(parseInt(t,10))}function Jr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?qi(parseFloat(t)/100):qi(parseFloat(t))}function di(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function ve(e,t,r){return e+(t-e)*r}function ut(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Zi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var so=new je(20),le=null;function lr(e,t){le&&Zi(le,t),le=so.put(e,le||t.slice())}function zt(e,t){if(e){t=t||[];var r=so.get(e);if(r)return Zi(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in Wn)return Zi(t,Wn[i]),lr(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){ut(t,0,0,0,1);return}return ut(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),lr(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ut(t,0,0,0,1);return}return ut(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),lr(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var f=i.substr(0,o),h=i.substr(o+1,s-(o+1)).split(","),u=1;switch(f){case"rgba":if(h.length!==4)return h.length===3?ut(t,+h[0],+h[1],+h[2],1):ut(t,0,0,0,1);u=Jr(h.pop());case"rgb":if(h.length>=3)return ut(t,li(h[0]),li(h[1]),li(h[2]),h.length===3?u:Jr(h[3])),lr(e,t),t;ut(t,0,0,0,1);return;case"hsla":if(h.length!==4){ut(t,0,0,0,1);return}return h[3]=Jr(h[3]),Yn(h,t),lr(e,t),t;case"hsl":if(h.length!==3){ut(t,0,0,0,1);return}return Yn(h,t),lr(e,t),t;default:return}}ut(t,0,0,0,1)}}function Yn(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=Jr(e[1]),n=Jr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ut(t,Ht(di(o,a,r+1/3)*255),Ht(di(o,a,r)*255),Ht(di(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Gn(e,t){var r=zt(e);if(r){for(var i=0;i<3;i++)r[i]=r[i]*(1-t)|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return yn(r,r.length===4?"rgba":"rgb")}}function Nu(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=zt(t[n]),s=zt(t[a]),f=i-n,h=yn([Ht(ve(o[0],s[0],f)),Ht(ve(o[1],s[1],f)),Ht(ve(o[2],s[2],f)),qi(ve(o[3],s[3],f))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}}function yn(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function ke(e,t){var r=zt(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Xn=new je(100);function Wu(e){if(Be(e)){var t=Xn.get(e);return t||(t=Gn(e,-.1),Xn.put(e,t)),t}else if(Ke(e)){var r=k({},e);return r.colorStops=St(e.colorStops,function(i){return{offset:i.offset,color:Gn(i.color,-.1)}}),r}return e}function Js(e){return e.type==="linear"}function js(e){return e.type==="radial"}(function(){return Y.hasGlobalWindow&&Qe(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var $i=Array.prototype.slice;function xt(e,t,r){return(t-e)*r+e}function ci(e,t,r,i){for(var n=t.length,a=0;ai?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)i.length=o;else for(var f=a;f=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Zn,f=r;if(Pt(r)){var h=nf(r);s=h,(h===1&&!Re(r[0])||h===2&&!Re(r[0][0]))&&(o=!0)}else if(Re(r)&&!rs(r))s=ce;else if(Be(r))if(!isNaN(+r))s=ce;else{var u=zt(r);u&&(f=u,s=qr)}else if(Ke(r)){var v=k({},f);v.colorStops=St(r.colorStops,function(d){return{offset:d.offset,color:zt(d.color)}}),Js(r)?s=Ui:js(r)&&(s=Vi),f=v}a===0?this.valType=s:(s!==this.valType||s===Zn)&&(o=!0),this.discrete=this.discrete||o;var l={time:t,value:f,rawValue:r,percent:0};return i&&(l.easing=i,l.easingFunc=Qe(i)?i:Kr[i]||ao(i)),n.push(l),l},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(g,c){return g.time-c.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,f=pe(n),h=$n(n),u=0;u=0&&!(o[u].percent<=r);u--);u=l(u,s-2)}else{for(u=v;ur);u++);u=l(u-1,s-2)}_=o[u+1],d=o[u]}if(d&&_){this._lastFr=u,this._lastFrP=r;var c=_.percent-d.percent,p=c===0?1:l((r-d.percent)/c,1);_.easingFunc&&(p=_.easingFunc(p));var y=i?this._additiveValue:h?zr:t[f];if((pe(a)||h)&&!y&&(y=this._additiveValue=[]),this.discrete)t[f]=p<1?d.rawValue:_.rawValue;else if(pe(a))a===Ie?ci(y,d[n],_[n],p):tf(y,d[n],_[n],p);else if($n(a)){var m=d[n],T=_[n],b=a===Ui;t[f]={type:b?"linear":"radial",x:xt(m.x,T.x,p),y:xt(m.y,T.y,p),colorStops:St(m.colorStops,function(M,C){var L=T.colorStops[C];return{offset:xt(M.offset,L.offset,p),color:Ee(ci([],M.color,L.color,p))}}),global:T.global},b?(t[f].x2=xt(m.x2,T.x2,p),t[f].y2=xt(m.y2,T.y2,p)):t[f].r=xt(m.r,T.r,p)}else if(h)ci(y,d[n],_[n],p),i||(t[f]=Ee(y));else{var w=xt(d[n],_[n],p);i?this._additiveValue=w:t[f]=w}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===ce?t[i]=t[i]+n:r===qr?(zt(t[i],zr),de(zr,zr,n,1),t[i]=Ee(zr)):r===Ie?de(t[i],t[i],n,1):r===fo&&qn(t[i],t[i],n,1)},e}(),mn=function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){_n("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,ft(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o0&&f.addKeyframe(0,Ae(h),n),this._trackKeys.push(s)}f.addKeyframe(t,Ae(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function br(){return new Date().getTime()}var of=function(e){H(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=br()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(He(i),!r._paused&&r.update())}He(i)},t.prototype.start=function(){this._running||(this._time=br(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=br(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=br()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new mn(r,i.loop);return this.addAnimator(n),n},t}(Er),sf=300,pi=Y.domSupported,_i=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=St(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}}(),Un={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Vn=!1;function Qi(e){var t=e.pointerType;return t==="pen"||t==="touch"}function ff(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function gi(e){e&&(e.zrByTouch=!0)}function hf(e,t){return ct(e.dom,new uf(e,t),!0)}function ho(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var uf=function(){function e(t,r){this.stopPropagation=Pr,this.stopImmediatePropagation=Pr,this.preventDefault=Pr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),pt={mousedown:function(e){e=ct(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ct(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ct(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ct(this.dom,e);var t=e.toElement||e.relatedTarget;ho(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Vn=!0,e=ct(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Vn||(e=ct(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ct(this.dom,e),gi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),pt.mousemove.call(this,e),pt.mousedown.call(this,e)},touchmove:function(e){e=ct(this.dom,e),gi(e),this.handler.processGesture(e,"change"),pt.mousemove.call(this,e)},touchend:function(e){e=ct(this.dom,e),gi(e),this.handler.processGesture(e,"end"),pt.mouseup.call(this,e),+new Date-+this.__lastTouchMomentpf||e<-5e-5}var Ut=[],dr=[],mi=Qr(),wi=Math.abs,wn=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return $t(this.rotation)||$t(this.x)||$t(this.y)||$t(this.scaleX-1)||$t(this.scaleY-1)||$t(this.skewX)||$t(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(Kn(i),this.invTransform=null);return}i=i||Qr(),r?this.getLocalTransform(i):Kn(i),t&&(r?si(i,t,i):xs(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ut);var i=Ut[0]<0?-1:1,n=Ut[1]<0?-1:1,a=((Ut[0]-i)*r+i)/Ut[0]||0,o=((Ut[1]-n)*r+n)/Ut[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Qr(),Is(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Qr(),si(dr,t.invTransform,r),r=dr);var i=this.originX,n=this.originY;(i||n)&&(mi[4]=i,mi[5]=n,si(dr,r,mi),dr[4]-=i,dr[5]-=n,r=dr),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&Vr(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&Vr(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&wi(t[0]-1)>1e-10&&wi(t[3]-1)>1e-10?Math.sqrt(wi(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){_f(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,f=t.anchorY,h=t.rotation||0,u=t.x,v=t.y,l=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||f){var _=i+s,g=n+f;r[4]=-_*a-l*g*o,r[5]=-g*o-d*_*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=d*a,r[2]=l*o,h&&As(r,r,h),r[4]+=i+u,r[5]+=n+v,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ee=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function _f(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function yf(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,f=r.x,h=r.y,u="left",v="top";if(i instanceof Array)f+=ie(i[0],r.width),h+=ie(i[1],r.height),u=null,v=null;else switch(i){case"left":f-=n,h+=s,u="right",v="middle";break;case"right":f+=n+o,h+=s,v="middle";break;case"top":f+=o/2,h-=n,u="center",v="bottom";break;case"bottom":f+=o/2,h+=a+n,u="center";break;case"inside":f+=o/2,h+=s,u="center",v="middle";break;case"insideLeft":f+=n,h+=s,v="middle";break;case"insideRight":f+=o-n,h+=s,u="right",v="middle";break;case"insideTop":f+=o/2,h+=n,u="center";break;case"insideBottom":f+=o/2,h+=a-n,u="center",v="bottom";break;case"insideTopLeft":f+=n,h+=n;break;case"insideTopRight":f+=o-n,h+=n,u="right";break;case"insideBottomLeft":f+=n,h+=a-n,v="bottom";break;case"insideBottomRight":f+=o-n,h+=a-n,u="right",v="bottom";break}return e=e||{},e.x=f,e.y=h,e.align=u,e.verticalAlign=v,e}var Ti="__zr_normal__",bi=ee.concat(["ignore"]),mf=Ve(ee,function(e,t){return e[t]=!0,e},{ignore:!1}),cr={},wf=new W(0,0,0,0),ti=function(){function e(t){this.id=Ya(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,f=!1;a.parent=n?this:null;var h=!1;if(a.copyTransform(r),i.position!=null){var u=wf;i.layoutRect?u.copy(i.layoutRect):u.copy(this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(cr,i,u):yf(cr,i,u),a.x=cr.x,a.y=cr.y,o=cr.align,s=cr.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var l=void 0,d=void 0;v==="center"?(l=u.width*.5,d=u.height*.5):(l=ie(v[0],u.width),d=ie(v[1],u.height)),h=!0,a.originX=-a.x+l+(n?0:u.x),a.originY=-a.y+d+(n?0:u.y)}}i.rotation!=null&&(a.rotation=i.rotation);var _=i.offset;_&&(a.x+=_[0],a.y+=_[1],h||(a.originX=-_[0],a.originY=-_[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,c=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),p=void 0,y=void 0,m=void 0;g&&this.canBeInsideText()?(p=i.insideFill,y=i.insideStroke,(p==null||p==="auto")&&(p=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(p),m=!0)):(p=i.outsideFill,y=i.outsideStroke,(p==null||p==="auto")&&(p=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(p),m=!0)),p=p||"#000",(p!==c.fill||y!==c.stroke||m!==c.autoStroke||o!==c.align||s!==c.verticalAlign)&&(f=!0,c.fill=p,c.stroke=y,c.autoStroke=m,c.align=o,c.verticalAlign=s,r.setDefaultTextStyle(c)),r.__dirty|=Lt,f&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?tn:ji},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&zt(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,yn(i,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},k(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Ft(t))for(var i=t,n=ft(i),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Ti,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===Ti,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,f=this.stateTransition;if(!(Ct(s,t)>=0&&(r||s.length===1))){var h;if(this.stateProxy&&!a&&(h=this.stateProxy(t)),h||(h=this.states&&this.states[t]),!h&&!a){_n("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(h);var u=!!(h&&h.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,h,this._normalState,r,!i&&!this.__inHover&&f&&f.duration>0,f);var v=this._textContent,l=this._textGuide;return v&&v.useState(t,r,i,u),l&&l.useState(t,r,i,u),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),h}}},e.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var f=0;f0,_);var g=this._textContent,c=this._textGuide;g&&g.useStates(t,r,l),c&&c.useStates(t,r,l),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=Ct(n,t),o=Ct(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o0&&r.during&&a[0].during(function(_,g){r.during(g)});for(var l=0;l0||n.force&&!o.length){var C=void 0,L=void 0,P=void 0;if(s){L={},l&&(C={});for(var T=0;T=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=Ct(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=Ct(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this._disposed||this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r=o;f++)s-=o;var h=ht(r,t);return h>s&&(r="",h=0),s=e-h,n.ellipsis=r,n.ellipsisWidth=h,n.contentWidth=s,n.containerWidth=e,n}function go(e,t){var r=t.containerWidth,i=t.font,n=t.contentWidth;if(!r)return"";var a=ht(e,i);if(a<=r)return e;for(var o=0;;o++){if(a<=n||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?xf(e,n,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*n/a):0;e=e.substr(0,s),a=ht(e,i)}return e===""&&(e=t.placeholder),e}function xf(e,t,r,i){for(var n=0,a=0,o=e.length;ad&&h){var _=Math.floor(d/s);v=v.slice(0,_)}if(e&&a&&u!=null)for(var g=_o(u,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),c=0;cs&&Pi(r,e.substring(s,h),t,o),Pi(r,f[2],t,o,f[1]),s=Li.lastIndex}sn){b>0?(y.tokens=y.tokens.slice(0,b),c(y,T,m),r.lines=r.lines.slice(0,p+1)):r.lines=r.lines.slice(0,p);break t}var R=M.width,A=R==null||R==="auto";if(typeof R=="string"&&R.charAt(R.length-1)==="%")w.percentWidth=R,u.push(w),w.contentWidth=ht(w.text,P);else{if(A){var x=M.backgroundColor,E=x&&x.image;E&&(E=Rf(E),ri(E)&&(w.width=Math.max(w.width,E.width*S/E.height)))}var D=_&&i!=null?i-T:null;D!=null&&D0&&_+i.accumWidth>i.width&&(u=t.split(` -`),h=!0),i.accumWidth=_}else{var g=yo(t,f,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,v=g.linesWidths,u=g.lines}}else u=t.split(` -`);for(var c=0;c=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Bf=Ve(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Hf(e){return Of(e)?!!Bf[e]:!0}function yo(e,t,r,i,n){for(var a=[],o=[],s="",f="",h=0,u=0,v=0;vr:n+u+d>r){u?(s||f)&&(_?(s||(s=f,f="",h=0,u=h),a.push(s),o.push(u-h),f+=l,h+=d,s="",u=h):(f&&(s+=f,f="",h=0),a.push(s),o.push(u),s=l,u=d)):_?(a.push(f),o.push(h),f=l,h=d):(a.push(l),o.push(d));continue}u+=d,_?(f+=l,h+=d):(f&&(s+=f,f="",h=0),s+=l)}return!a.length&&!s&&(s=e,f="",h=0),f&&(s+=f),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}var en="__zr_style_"+Math.round(Math.random()*10),fr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ei={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};fr[en]=!0;var ea=["z","z2","invisible"],zf=["invisible"],ae=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=ft(r),n=0;n1e-4){s[0]=e-r,s[1]=t-i,f[0]=e+r,f[1]=t+i;return}if(_e[0]=xi(n)*r+e,_e[1]=Di(n)*i+t,ge[0]=xi(a)*r+e,ge[1]=Di(a)*i+t,h(s,_e,ge),u(f,_e,ge),n=n%Vt,n<0&&(n=n+Vt),a=a%Vt,a<0&&(a=a+Vt),n>a&&!o?a+=Vt:nn&&(ye[0]=xi(d)*r+e,ye[1]=Di(d)*i+t,h(s,ye,s),u(f,ye,f))}var B={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qt=[],Kt=[],yt=[],At=[],mt=[],wt=[],Ai=Math.min,Ei=Math.max,Jt=Math.cos,jt=Math.sin,Dt=Math.abs,nn=Math.PI,It=nn*2,Ii=typeof Float32Array<"u",kr=[];function Fi(e){var t=Math.round(e/nn*1e8)/1e8;return t%2*nn}function Gf(e,t){var r=Fi(e[0]);r<0&&(r+=It);var i=r-e[0],n=e[1];n+=i,!t&&n-r>=It?n=r+It:t&&r-n>=It?n=r-It:!t&&r>n?n=r+(It-Fi(r-n)):t&&r0&&(this._ux=Dt(i/Ne/t)||0,this._uy=Dt(i/Ne/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(B.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var i=Dt(t-this._xi),n=Dt(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(B.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){return this._drawPendingPt(),this.addData(B.C,t,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,i,n,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,i,n){return this._drawPendingPt(),this.addData(B.Q,t,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,r,i,n,a,o){this._drawPendingPt(),kr[0]=n,kr[1]=a,Gf(kr,o),n=kr[0],a=kr[1];var s=a-n;return this.addData(B.A,t,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,i,n,a,o),this._xi=Jt(a)*i+t,this._yi=jt(a)*i+r,this},e.prototype.arcTo=function(t,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,n,a),this},e.prototype.rect=function(t,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,n),this.addData(B.R,t,r,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(B.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Ii&&(this.data=new Float32Array(r));for(var i=0;iu.length&&(this._expandData(),u=this.data);for(var v=0;v0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){yt[0]=yt[1]=mt[0]=mt[1]=Number.MAX_VALUE,At[0]=At[1]=wt[0]=wt[1]=-Number.MAX_VALUE;var t=this.data,r=0,i=0,n=0,a=0,o;for(o=0;oi||Dt(m)>n||l===r-1)&&(g=Math.sqrt(y*y+m*m),a=c,o=p);break}case B.C:{var T=t[l++],b=t[l++],c=t[l++],p=t[l++],w=t[l++],M=t[l++];g=qs(a,o,T,b,c,p,w,M,10),a=w,o=M;break}case B.Q:{var T=t[l++],b=t[l++],c=t[l++],p=t[l++];g=Us(a,o,T,b,c,p,10),a=c,o=p;break}case B.A:var C=t[l++],L=t[l++],P=t[l++],S=t[l++],R=t[l++],A=t[l++],x=A+R;l+=1,_&&(s=Jt(R)*P+C,f=jt(R)*S+L),g=Ei(P,S)*Ai(It,Math.abs(A)),a=Jt(x)*P+C,o=jt(x)*S+L;break;case B.R:{s=a=t[l++],f=o=t[l++];var E=t[l++],D=t[l++];g=E*2+D*2;break}case B.Z:{var y=s-a,m=f-o;g=Math.sqrt(y*y+m*m),a=s,o=f;break}}g>=0&&(h[v++]=g,u+=g)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,f,h,u,v,l,d=r<1,_,g,c=0,p=0,y,m=0,T,b;if(!(d&&(this._pathSegLen||this._calculateLength(),_=this._pathSegLen,g=this._pathLen,y=r*g,!y)))t:for(var w=0;w0&&(t.lineTo(T,b),m=0),M){case B.M:s=h=i[w++],f=u=i[w++],t.moveTo(h,u);break;case B.L:{v=i[w++],l=i[w++];var L=Dt(v-h),P=Dt(l-u);if(L>n||P>a){if(d){var S=_[p++];if(c+S>y){var R=(y-c)/S;t.lineTo(h*(1-R)+v*R,u*(1-R)+l*R);break t}c+=S}t.lineTo(v,l),h=v,u=l,m=0}else{var A=L*L+P*P;A>m&&(T=v,b=l,m=A)}break}case B.C:{var x=i[w++],E=i[w++],D=i[w++],z=i[w++],N=i[w++],K=i[w++];if(d){var S=_[p++];if(c+S>y){var R=(y-c)/S;kt(h,x,D,N,R,Qt),kt(u,E,z,K,R,Kt),t.bezierCurveTo(Qt[1],Kt[1],Qt[2],Kt[2],Qt[3],Kt[3]);break t}c+=S}t.bezierCurveTo(x,E,D,z,N,K),h=N,u=K;break}case B.Q:{var x=i[w++],E=i[w++],D=i[w++],z=i[w++];if(d){var S=_[p++];if(c+S>y){var R=(y-c)/S;ze(h,x,D,R,Qt),ze(u,E,z,R,Kt),t.quadraticCurveTo(Qt[1],Kt[1],Qt[2],Kt[2]);break t}c+=S}t.quadraticCurveTo(x,E,D,z),h=D,u=z;break}case B.A:var q=i[w++],$=i[w++],G=i[w++],nt=i[w++],at=i[w++],Rt=i[w++],Nt=i[w++],Wt=!i[w++],Yt=G>nt?G:nt,j=Dt(G-nt)>.001,Z=at+Rt,I=!1;if(d){var S=_[p++];c+S>y&&(Z=at+Rt*(y-c)/S,I=!0),c+=S}if(j&&t.ellipse?t.ellipse(q,$,G,nt,Nt,at,Z,Wt):t.arc(q,$,Yt,at,Z,Wt),I)break t;C&&(s=Jt(at)*G+q,f=jt(at)*nt+$),h=Jt(Z)*G+q,u=jt(Z)*nt+$;break;case B.R:s=h=i[w],f=u=i[w+1],v=i[w++],l=i[w++];var O=i[w++],Ir=i[w++];if(d){var S=_[p++];if(c+S>y){var gt=y-c;t.moveTo(v,l),t.lineTo(v+Ai(gt,O),l),gt-=O,gt>0&&t.lineTo(v+O,l+Ai(gt,Ir)),gt-=Ir,gt>0&&t.lineTo(v+Ei(O-gt,0),l+Ir),gt-=O,gt>0&&t.lineTo(v,l+Ei(Ir-gt,0));break t}c+=S}t.rect(v,l,O,Ir);break;case B.Z:if(d){var S=_[p++];if(c+S>y){var R=(y-c)/S;t.lineTo(h*(1-R)+s*R,u*(1-R)+f*R);break t}c+=S}t.closePath(),h=s,u=f}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=B,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function pr(e,t,r,i,n,a,o){if(n===0)return!1;var s=n,f=0,h=e;if(o>t+s&&o>i+s||oe+s&&a>r+s||at+v&&u>i+v&&u>a+v&&u>s+v||ue+v&&h>r+v&&h>n+v&&h>o+v||ht+h&&f>i+h&&f>a+h||fe+h&&s>r+h&&s>n+h||sr||u+hn&&(n+=Nr);var l=Math.atan2(f,s);return l<0&&(l+=Nr),l>=i&&l<=n||l+Nr>=i&&l+Nr<=n}function tr(e,t,r,i,n,a){if(a>t&&a>i||an?s:0}var Et=ur.CMD,rr=Math.PI*2,$f=1e-4;function Uf(e,t){return Math.abs(e-t)<$f}var J=[-1,-1,-1],vt=[-1,-1];function Vf(){var e=vt[0];vt[0]=vt[1],vt[1]=e}function Qf(e,t,r,i,n,a,o,s,f,h){if(h>t&&h>i&&h>a&&h>s||h1&&Vf(),d=U(t,i,a,s,vt[0]),l>1&&(_=U(t,i,a,s,vt[1]))),l===2?ct&&s>i&&s>a||s=0&&h<=1){for(var u=0,v=Q(t,i,a,h),l=0;lr||s<-r)return 0;var f=Math.sqrt(r*r-s*s);J[0]=-f,J[1]=f;var h=Math.abs(i-n);if(h<1e-4)return 0;if(h>=rr-1e-4){i=0,n=rr;var u=a?1:-1;return o>=J[0]+e&&o<=J[1]+e?u:0}if(i>n){var v=i;i=n,n=v}i<0&&(i+=rr,n+=rr);for(var l=0,d=0;d<2;d++){var _=J[d];if(_+e>o){var g=Math.atan2(s,_),u=a?1:-1;g<0&&(g=rr+g),(g>=i&&g<=n||g+rr>=i&&g+rr<=n)&&(g>Math.PI/2&&g1&&(r||(s+=tr(f,h,u,v,i,n))),c&&(f=a[_],h=a[_+1],u=f,v=h),g){case Et.M:u=a[_++],v=a[_++],f=u,h=v;break;case Et.L:if(r){if(pr(f,h,a[_],a[_+1],t,i,n))return!0}else s+=tr(f,h,a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.C:if(r){if(Xf(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Qf(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.Q:if(r){if(qf(f,h,a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Kf(f,h,a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.A:var p=a[_++],y=a[_++],m=a[_++],T=a[_++],b=a[_++],w=a[_++];_+=1;var M=!!(1-a[_++]);l=Math.cos(b)*m+p,d=Math.sin(b)*T+y,c?(u=l,v=d):s+=tr(f,h,l,d,i,n);var C=(i-p)*T/m+p;if(r){if(Zf(p,y,T,b,b+w,M,t,C,n))return!0}else s+=Jf(p,y,T,b,b+w,M,C,n);f=Math.cos(b+w)*m+p,h=Math.sin(b+w)*T+y;break;case Et.R:u=f=a[_++],v=h=a[_++];var L=a[_++],P=a[_++];if(l=u+L,d=v+P,r){if(pr(u,v,l,v,t,i,n)||pr(l,v,l,d,t,i,n)||pr(l,d,u,d,t,i,n)||pr(u,d,u,v,t,i,n))return!0}else s+=tr(l,v,l,d,i,n),s+=tr(u,d,u,v,i,n);break;case Et.Z:if(r){if(pr(f,h,u,v,t,i,n))return!0}else s+=tr(f,h,u,v,i,n);f=u,h=v;break}}return!r&&!Uf(h,v)&&(s+=tr(f,h,u,v,i,n)||0),s!==0}function jf(e,t,r){return wo(e,0,!1,t,r)}function th(e,t,r,i){return wo(e,t,!0,r,i)}var To=_t({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},fr),rh={style:_t({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ei.style)},Oi=ee.concat(["invisible","culling","z","z2","zlevel","parent"]),X=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(f){r.buildPath(f,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s.5?ji:i>.2?cf:tn}else if(r)return tn}return ji},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(Be(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=ke(r,0)0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Xr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var f=i.strokeNoScale?this.getLineScale():1,h=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;h=Math.max(h,u??4)}f>1e-10&&(s.width+=h/f,s.height+=h/f,s.x-=h/f/2,s.y-=h/f/2)}return s}return r},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var f=o.lineWidth,h=o.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),th(s,f/h,r,i)))return!0}if(this.hasFill())return jf(s,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Xr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):e.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:k(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Xr)},t.prototype.createStyle=function(r){return Je(To,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=k({},this.shape))},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var f=!(i&&a),h;if(i&&i.shape?o?a?h=i.shape:(h=k({},n.shape),k(h,i.shape)):(h=k({},a?this.shape:n.shape),k(h,i.shape)):f&&(h=n.shape),h)if(o){this.shape=k({},this.shape);for(var u={},v=ft(h),l=0;l0},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(r){return Je(eh,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var i=r.text;i!=null?i+="":i="";var n=gf(i,r.font,r.textAlign,r.textBaseline);if(n.x+=r.x||0,n.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(ae);We.prototype.type="tspan";var ih=_t({x:0,y:0},fr),nh={style:_t({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ei.style)};function ah(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var bn=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Je(ih,r)},t.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=ah(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return nh},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new W(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ae);bn.prototype.type="image";function oh(e,t){var r=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,f,h,u;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=f=h=u=o:o instanceof Array?o.length===1?s=f=h=u=o[0]:o.length===2?(s=h=o[0],f=u=o[1]):o.length===3?(s=o[0],f=u=o[1],h=o[2]):(s=o[0],f=o[1],h=o[2],u=o[3]):s=f=h=u=0;var v;s+f>n&&(v=s+f,s*=n/v,f*=n/v),h+u>n&&(v=h+u,h*=n/v,u*=n/v),f+h>a&&(v=f+h,f*=a/v,h*=a/v),s+u>a&&(v=s+u,s*=a/v,u*=a/v),e.moveTo(r+s,i),e.lineTo(r+n-f,i),f!==0&&e.arc(r+n-f,i+f,f,-Math.PI/2,0),e.lineTo(r+n,i+a-h),h!==0&&e.arc(r+n-h,i+a-h,h,0,Math.PI/2),e.lineTo(r+u,i+a),u!==0&&e.arc(r+u,i+a-u,u,Math.PI/2,Math.PI),e.lineTo(r,i+s),s!==0&&e.arc(r+s,i+s,s,Math.PI,Math.PI*1.5)}var Cr=Math.round;function sh(e,t,r){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=n,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Cr(i*2)===Cr(n*2)&&(e.x1=e.x2=Mr(i,s,!0)),Cr(a*2)===Cr(o*2)&&(e.y1=e.y2=Mr(a,s,!0))),e}}function fh(e,t,r){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;e.x=i,e.y=n,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Mr(i,s,!0),e.y=Mr(n,s,!0),e.width=Math.max(Mr(i+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Mr(n+o,s,!1)-e.y,o===0?0:1)),e}}function Mr(e,t,r){if(!t)return e;var i=Cr(e*2);return(i+Cr(t))%2===0?i/2:(i+(r?1:-1))/2}var hh=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),uh={},Cn=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new hh},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var f=fh(uh,i,this.style);n=f.x,a=f.y,o=f.width,s=f.height,f.r=i.r,i=f}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?oh(r,i):r.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(X);Cn.prototype.type="rect";var sa={fill:"#000"},fa=2,vh={style:_t({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},ei.style)},lh=function(e){H(t,e);function t(r){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=sa,i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,R=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),A=o.calculatedLineHeight,x=0;x=0&&(x=w[A],x.align==="right");)this._placeToken(x,r,C,p,R,"right",m),L-=x.width,R-=x.width,A--;for(S+=(a-(S-c)-(y-R)-L)/2;P<=A;)x=w[P],this._placeToken(x,r,C,p,S+x.width/2,"center",m),S+=x.width,P++;p+=C}},t.prototype._placeToken=function(r,i,n,a,o,s,f){var h=i.rich[r.styleName]||{};h.text=r.text;var u=r.verticalAlign,v=a+n/2;u==="top"?v=a+r.height/2:u==="bottom"&&(v=a+n-r.height/2);var l=!r.isLineHolder&&Bi(h);l&&this._renderBackground(h,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,v-r.height/2,r.width,r.height);var d=!!h.backgroundColor,_=r.textPadding;_&&(o=ca(o,s,_),v-=r.height/2-_[0]-r.innerHeight/2);var g=this._getOrCreateChild(We),c=g.createStyle();g.useStyle(c);var p=this._defaultStyle,y=!1,m=0,T=da("fill"in h?h.fill:"fill"in i?i.fill:(y=!0,p.fill)),b=la("stroke"in h?h.stroke:"stroke"in i?i.stroke:!d&&!f&&(!p.autoStroke||y)?(m=fa,p.stroke):null),w=h.textShadowBlur>0||i.textShadowBlur>0;c.text=r.text,c.x=o,c.y=v,w&&(c.shadowBlur=h.textShadowBlur||i.textShadowBlur||0,c.shadowColor=h.textShadowColor||i.textShadowColor||"transparent",c.shadowOffsetX=h.textShadowOffsetX||i.textShadowOffsetX||0,c.shadowOffsetY=h.textShadowOffsetY||i.textShadowOffsetY||0),c.textAlign=s,c.textBaseline="middle",c.font=r.font||hr,c.opacity=De(h.opacity,i.opacity,1),ua(c,h),b&&(c.lineWidth=De(h.lineWidth,i.lineWidth,m),c.lineDash=ot(h.lineDash,i.lineDash),c.lineDashOffset=i.lineDashOffset||0,c.stroke=b),T&&(c.fill=T);var M=r.contentWidth,C=r.contentHeight;g.setBoundingRect(new W(Zr(c.x,M,c.textAlign),mr(c.y,C,c.textBaseline),M,C))},t.prototype._renderBackground=function(r,i,n,a,o,s){var f=r.backgroundColor,h=r.borderWidth,u=r.borderColor,v=f&&f.image,l=f&&!v,d=r.borderRadius,_=this,g,c;if(l||r.lineHeight||h&&u){g=this._getOrCreateChild(Cn),g.useStyle(g.createStyle()),g.style.fill=null;var p=g.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=d,g.dirtyShape()}if(l){var y=g.style;y.fill=f||null,y.fillOpacity=ot(r.fillOpacity,1)}else if(v){c=this._getOrCreateChild(bn),c.onload=function(){_.dirtyStyle()};var m=c.style;m.image=f.image,m.x=n,m.y=a,m.width=o,m.height=s}if(h&&u){var y=g.style;y.lineWidth=h,y.stroke=u,y.strokeOpacity=ot(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var T=(g||c).style;T.shadowBlur=r.shadowBlur||0,T.shadowColor=r.shadowColor||"transparent",T.shadowOffsetX=r.shadowOffsetX||0,T.shadowOffsetY=r.shadowOffsetY||0,T.opacity=De(r.opacity,i.opacity,1)},t.makeFont=function(r){var i="";return _h(r)&&(i=[r.fontStyle,r.fontWeight,ph(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&Gr(i)||r.textFont||r.font},t}(ae),dh={left:!0,right:1,center:1},ch={top:1,bottom:1,middle:1},ha=["fontStyle","fontWeight","fontSize","fontFamily"];function ph(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?dn+"px":e+"px"}function ua(e,t){for(var r=0;r1&&(o*=Hi(_),s*=Hi(_));var g=(n===a?-1:1)*Hi((o*o*(s*s)-o*o*(d*d)-s*s*(l*l))/(o*o*(d*d)+s*s*(l*l)))||0,c=g*o*d/s,p=g*-s*l/o,y=(e+r)/2+Te(v)*c-we(v)*p,m=(t+i)/2+we(v)*c+Te(v)*p,T=ya([1,0],[(l-c)/o,(d-p)/s]),b=[(l-c)/o,(d-p)/s],w=[(-1*l-c)/o,(-1*d-p)/s],M=ya(b,w);if(an(b,w)<=-1&&(M=Wr),an(b,w)>=1&&(M=0),M<0){var C=Math.round(M/Wr*1e6)/1e6;M=Wr*2+C%2*Wr}u.addData(h,y,m,o,s,T,M,v,a)}var wh=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Th=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function bh(e){var t=new ur;if(!e)return t;var r=0,i=0,n=r,a=i,o,s=ur.CMD,f=e.match(wh);if(!f)return t;for(var h=0;hx*x+E*E&&(C=P,L=S),{cx:C,cy:L,x0:-u,y0:-v,x1:C*(n/b-1),y1:L*(n/b-1)}}function Dh(e){var t;if(re(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function xh(e,t){var r,i=$r(t.r,0),n=$r(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var f=t.startAngle,h=t.endAngle;if(!(isNaN(f)||isNaN(h))){var u=t.cx,v=t.cy,l=!!t.clockwise,d=wa(h-f),_=d>zi&&d%zi;if(_>dt&&(d=_),!(i>dt))e.moveTo(u,v);else if(d>zi-dt)e.moveTo(u+i*gr(f),v+i*er(f)),e.arc(u,v,i,f,h,!l),n>dt&&(e.moveTo(u+n*gr(h),v+n*er(h)),e.arc(u,v,n,h,f,l));else{var g=void 0,c=void 0,p=void 0,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0,M=void 0,C=void 0,L=void 0,P=void 0,S=void 0,R=void 0,A=void 0,x=void 0,E=i*gr(f),D=i*er(f),z=n*gr(h),N=n*er(h),K=d>dt;if(K){var q=t.cornerRadius;q&&(r=Dh(q),g=r[0],c=r[1],p=r[2],y=r[3]);var $=wa(i-n)/2;if(m=Tt($,p),T=Tt($,y),b=Tt($,g),w=Tt($,c),L=M=$r(m,T),P=C=$r(b,w),(M>dt||C>dt)&&(S=i*gr(h),R=i*er(h),A=n*gr(f),x=n*er(f),ddt){var j=Tt(p,L),Z=Tt(y,L),I=be(A,x,E,D,i,j,l),O=be(S,R,z,N,i,Z,l);e.moveTo(u+I.cx+I.x0,v+I.cy+I.y0),L0&&e.arc(u+I.cx,v+I.cy,j,V(I.y0,I.x0),V(I.y1,I.x1),!l),e.arc(u,v,i,V(I.cy+I.y1,I.cx+I.x1),V(O.cy+O.y1,O.cx+O.x1),!l),Z>0&&e.arc(u+O.cx,v+O.cy,Z,V(O.y1,O.x1),V(O.y0,O.x0),!l))}else e.moveTo(u+E,v+D),e.arc(u,v,i,f,h,!l);if(!(n>dt)||!K)e.lineTo(u+z,v+N);else if(P>dt){var j=Tt(g,P),Z=Tt(c,P),I=be(z,N,S,R,n,-Z,l),O=be(E,D,A,x,n,-j,l);e.lineTo(u+I.cx+I.x0,v+I.cy+I.y0),P0&&e.arc(u+I.cx,v+I.cy,Z,V(I.y0,I.x0),V(I.y1,I.x1),!l),e.arc(u,v,n,V(I.cy+I.y1,I.cx+I.x1),V(O.cy+O.y1,O.cx+O.x1),l),j>0&&e.arc(u+O.cx,v+O.cy,j,V(O.y1,O.x1),V(O.y0,O.x0),!l))}else e.lineTo(u+z,v+N),e.arc(u,v,n,h,f,l)}e.closePath()}}}var Ah=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),on=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Ah},t.prototype.buildPath=function(r,i){xh(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(X);on.prototype.type="sector";var Eh=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Ih=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Eh},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},t}(X);Ih.prototype.type="ring";function Fh(e,t,r,i){var n=[],a=[],o=[],s=[],f,h,u,v;if(i){u=[1/0,1/0],v=[-1/0,-1/0];for(var l=0,d=e.length;l=2){if(i){var a=Fh(n,i,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var f=a[s*2],h=a[s*2+1],u=n[(s+1)%o];e.bezierCurveTo(f[0],f[1],h[0],h[1],u[0],u[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var s=1,v=n.length;snr[1]){if(s=!1,a)return s;var u=Math.abs(nr[0]-ir[1]),v=Math.abs(ir[0]-nr[1]);Math.min(u,v)>n.len()&&(u=0&&or(f)?f:.5;var h=e.createRadialGradient(o,s,0,o,s,f);return h}function sn(e,t,r){for(var i=t.type==="radial"?Vh(e,t,r):Uh(e,t,r),n=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Re(e)?[e]:re(e)?e:null}function Ao(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Kh(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=St(r,function(a){return a/n}),i/=n)}return[r,i]}var Jh=new ur(!0);function Ye(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function ba(e){return typeof e=="string"&&e!=="none"}function Ge(e){var t=e.fill;return t!=null&&t!=="none"}function Ca(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Ma(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function fn(e,t,r){var i=po(t.image,t.__image,r);if(ri(i)){var n=e.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*os),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function jh(e,t,r,i){var n,a=Ye(r),o=Ge(r),s=r.strokePercent,f=s<1,h=!t.path;(!t.silent||f)&&h&&t.createPathProxy();var u=t.path||Jh,v=t.__dirty;if(!i){var l=r.fill,d=r.stroke,_=o&&!!l.colorStops,g=a&&!!d.colorStops,c=o&&!!l.image,p=a&&!!d.image,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0;(_||g)&&(w=t.getBoundingRect()),_&&(y=v?sn(e,l,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(m=v?sn(e,d,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),c&&(T=v||!t.__canvasFillPattern?fn(e,l,t):t.__canvasFillPattern,t.__canvasFillPattern=T),p&&(b=v||!t.__canvasStrokePattern?fn(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=T),_?e.fillStyle=y:c&&(T?e.fillStyle=T:o=!1),g?e.strokeStyle=m:p&&(b?e.strokeStyle=b:a=!1)}var M=t.getGlobalScale();u.setScale(M[0],M[1],t.segmentIgnoreThreshold);var C,L;e.setLineDash&&r.lineDash&&(n=Ao(t),C=n[0],L=n[1]);var P=!0;(h||v&Xr)&&(u.setDPR(e.dpr),f?u.setContext(null):(u.setContext(e),P=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),P&&u.rebuildPath(e,f?s:1),C&&(e.setLineDash(C),e.lineDashOffset=L),i||(r.strokeFirst?(a&&Ma(e,r),o&&Ca(e,r)):(o&&Ca(e,r),a&&Ma(e,r))),C&&e.setLineDash([])}function tu(e,t,r){var i=t.__image=po(r.image,t.__image,t,t.onload);if(!(!i||!ri(i))){var n=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),f=i.width/i.height;if(o==null&&s!=null?o=s*f:s==null&&o!=null?s=o/f:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var h=r.sx||0,u=r.sy||0;e.drawImage(i,h,u,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var h=r.sx,u=r.sy,v=o-h,l=s-u;e.drawImage(i,h,u,v,l,n,a,o,s)}else e.drawImage(i,n,a,o,s)}}function ru(e,t,r){var i,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||hr,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(i=Ao(t),a=i[0],o=i[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Ye(r)&&e.strokeText(n,r.x,r.y),Ge(r)&&e.fillText(n,r.x,r.y)):(Ge(r)&&e.fillText(n,r.x,r.y),Ye(r)&&e.strokeText(n,r.x,r.y)),a&&e.setLineDash([])}}var La=["shadowBlur","shadowOffsetX","shadowOffsetY"],Pa=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Eo(e,t,r,i,n){var a=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){it(e,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?fr.opacity:o}(i||t.blend!==r.blend)&&(a||(it(e,n),a=!0),e.globalCompositeOperation=t.blend||fr.blend);for(var s=0;s2&&i.push(n),n=[A,x]}function u(A,x,E,D){Lr(A,E)&&Lr(x,D)||n.push(A,x,E,D,E,D)}function v(A,x,E,D,z,N){var K=Math.abs(x-A),q=Math.tan(K/4)*4/3,$=xC:S2&&i.push(n),i}function un(e,t,r,i,n,a,o,s,f,h){if(Lr(e,r)&&Lr(t,i)&&Lr(n,o)&&Lr(a,s)){f.push(o,s);return}var u=2/h,v=u*u,l=o-e,d=s-t,_=Math.sqrt(l*l+d*d);l/=_,d/=_;var g=r-e,c=i-t,p=n-o,y=a-s,m=g*g+c*c,T=p*p+y*y;if(m=0&&C=0){f.push(o,s);return}var L=[],P=[];kt(e,r,n,o,.5,L),kt(t,i,a,s,.5,P),un(L[0],P[0],L[1],P[1],L[2],P[2],L[3],P[3],f,h),un(L[4],P[4],L[5],P[5],L[6],P[6],L[7],P[7],f,h)}function fu(e,t){var r=hn(e),i=[];t=t||1;for(var n=0;n0)for(var h=0;hMath.abs(h),v=Fo([f,h],u?0:1,t),l=(u?s:h)/v.length,d=0;dn,o=Fo([i,n],a?0:1,t),s=a?"width":"height",f=a?"height":"width",h=a?"x":"y",u=a?"y":"x",v=e[s]/o.length,l=0;l1?null:new F(g*f+e,g*h+t)}function vu(e,t,r){var i=new F;F.sub(i,r,t),i.normalize();var n=new F;F.sub(n,e,t);var a=n.dot(i);return a}function yr(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function lu(e,t,r){for(var i=e.length,n=[],a=0;ao?(h.x=u.x=s+a/2,h.y=f,u.y=f+o):(h.y=u.y=f+o/2,h.x=s,u.x=s+a),lu(t,h,u)}function Xe(e,t,r,i){if(r===1)i.push(t);else{var n=Math.floor(r/2),a=e(t);Xe(e,a[0],n,i),Xe(e,a[1],r-n,i)}return i}function du(e,t){for(var r=[],i=0;i0;h/=2){var u=0,v=0;(e&h)>0&&(u=1),(t&h)>0&&(v=1),s+=h*h*(3*u^v),v===0&&(u===1&&(e=h-1-e,t=h-1-t),f=e,e=t,t=f)}return s}function Ze(e){var t=1/0,r=1/0,i=-1/0,n=-1/0,a=St(e,function(s){var f=s.getBoundingRect(),h=s.getComputedTransform(),u=f.x+f.width/2+(h?h[4]:0),v=f.y+f.height/2+(h?h[5]:0);return t=Math.min(u,t),r=Math.min(v,r),i=Math.max(u,i),n=Math.max(v,n),[u,v]}),o=St(a,function(s,f){return{cp:s,z:bu(s[0],s[1],t,r,i,n),path:e[f]}});return o.sort(function(s,f){return s.z-f.z}).map(function(s){return s.path})}function zo(e){return _u(e.path,e.count)}function ln(){return{fromIndividuals:[],toIndividuals:[],count:0}}function ju(e,t,r){var i=[];function n(b){for(var w=0;w=s)}}for(var v=this.__startIndex;v15)break}}x.prevElClipPaths&&p.restore()};if(y)if(y.length===0)C=c.__endIndex;else for(var P=d.dpr,S=0;S0&&t>n[0]){for(f=0;ft);f++);s=i[n[f]]}if(n.splice(f+1,0,t),i[t]=r,!r.virtual)if(s){var h=s.dom;h.nextSibling?o.insertBefore(r.dom,h.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var i=this._zlevelList,n=0;n0?Se:0),this._needsManuallyCompositing),u.__builtin__||_n("ZLevel "+h+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==f&&(u.__dirty=!0),u.__startIndex=f,u.incremental?u.__drawIndex=-1:u.__drawIndex=f,r(f),a=u),n.__dirty&Lt&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=f))}r(f),this.eachBuiltinLayer(function(v,l){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,st(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var i=this._layerConfig;i[t]?Yr(i[t],r,!0):i[t]=r;for(var n=0;n"u"&&typeof self<"u"?W.worker=!0:!W.hasGlobalWindow||"Deno"in window?(W.node=!0,W.svgSupported=!0):Wo(navigator.userAgent,W);function Wo(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var dn=12,Yo="sans-serif",hr=dn+"px "+Yo,Go=20,Xo=100,qo="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Zo(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var f=0;f>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[f]+":0",n[h]+":0",i[1-f]+":auto",n[1-h]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function ys(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],f=!0,h=0;h<4;h++){var u=e[h].getBoundingClientRect(),v=2*h,l=u.left,d=u.top;o.push(l,d),f=f&&a&&l===a[v]&&d===a[v+1],s.push(e[h].offsetLeft,e[h].offsetTop)}return f&&n?n:(t.srcCoords=o,t[i]=r?Rn(s,o):Rn(o,s))}function Ua(e){return e.nodeName.toUpperCase()==="CANVAS"}var ms=/([&<>"'])/g,ws={"&":"&","<":"<",">":">",'"':""","'":"'"};function ku(e){return e==null?"":(e+"").replace(ms,function(t,r){return ws[r]})}var Ts=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ai=[],bs=W.browser.firefox&&+W.browser.version.split(".")[0]<39;function Xi(e,t,r,i){return r=r||{},i?xn(e,t,r):bs&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):xn(e,t,r),r}function xn(e,t,r){if(W.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Ua(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Gi(ai,e,i,n)){r.zrX=ai[0],r.zrY=ai[1];return}}r.zrX=r.zrY=0}function gn(e){return e||window.event}function ct(e,t,r){if(t=gn(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Xi(e,o,t,r)}else{Xi(e,t,t,r);var a=Cs(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Ts.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Cs(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function Ms(e,t,r,i){e.addEventListener(t,r,i)}function Ls(e,t,r,i){e.removeEventListener(t,r,i)}var Ps=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Ss=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o1&&i&&i.length>1){var a=An(i)/An(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Rs(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Qr(){return[1,0,0,1,0,0]}function Ds(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function xs(e,t){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 si(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],f=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=f,e}function En(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function As(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],f=t[3],h=t[5],u=Math.sin(r),v=Math.cos(r);return e[0]=n*v+s*u,e[1]=-n*u+s*v,e[2]=a*v+f*u,e[3]=-a*u+v*f,e[4]=v*(o-i[0])+u*(h-i[1])+i[0],e[5]=v*(h-i[1])-u*(o-i[0])+i[1],e}function Es(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Is(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],f=r*o-a*i;return f?(f=1/f,e[0]=o*f,e[1]=-a*f,e[2]=-i*f,e[3]=r*f,e[4]=(i*s-o*n)*f,e[5]=(a*n-r*s)*f,e):null}var F=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e}(),se=Math.min,fe=Math.max,Gt=new F,Xt=new F,qt=new F,Zt=new F,Fr=new F,Or=new F,Y=function(){function e(t,r,i,n){i<0&&(t=t+i,i=-i),n<0&&(r=r+n,n=-n),this.x=t,this.y=r,this.width=i,this.height=n}return e.prototype.union=function(t){var r=se(t.x,this.x),i=se(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fe(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=fe(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=Qr();return En(a,a,[-r.x,-r.y]),Es(a,a,[i,n]),En(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,f=t.x,h=t.x+t.width,u=t.y,v=t.y+t.height,l=!(a_&&(_=m,g_&&(_=w,p=i.x&&t<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Gt.x=qt.x=r.x,Gt.y=Zt.y=r.y,Xt.x=Zt.x=r.x+r.width,Xt.y=qt.y=r.y+r.height,Gt.transform(i),Zt.transform(i),Xt.transform(i),qt.transform(i),t.x=se(Gt.x,Xt.x,qt.x,Zt.x),t.y=se(Gt.y,Xt.y,qt.y,Zt.y);var f=fe(Gt.x,Xt.x,qt.x,Zt.x),h=fe(Gt.y,Xt.y,qt.y,Zt.y);t.width=f-t.x,t.height=h-t.y},e}(),Va="silent";function Fs(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Os}}function Os(){Ps(this.event)}var Bs=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Er),Br=function(){function e(t,r){this.x=t,this.y=r}return e}(),Hs=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fi=new Y(0,0,0,0),Qa=function(e){z(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new Br(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new Bs,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new ps(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(st(Hs,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=Ka(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var f=this._hovered=a?new Br(i,n):this.findHover(i,n),h=f.target,u=this.proxy;u.setCursor&&u.setCursor(h?h.cursor:"default"),s&&h!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(f,"mousemove",r),h&&h!==s&&this.dispatchToElement(f,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Br(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=Fs(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[o]=="function"&&f[o].call(f,s),f.trigger&&f.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Br(r,i);if(In(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],f=this._pointerSize,h=f/2,u=new Y(r-h,i-h,f,f),v=a.length-1;v>=0;v--){var l=a[v];l!==n&&!l.ignore&&!l.ignoreCoarsePointer&&(!l.parent||!l.parent.ignoreCoarsePointer)&&(fi.copy(l.getBoundingRect()),l.transform&&fi.applyTransform(l.transform),fi.intersect(u)&&s.push(l))}if(s.length)for(var d=4,_=Math.PI/12,g=Math.PI*2,c=0;c4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function zs(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?Va:!0}return!1}function In(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=zs(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==Va)){t.target=o;break}}}function Ka(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}var Ja=32,Hr=7;function ks(e){for(var t=0;e>=Ja;)t|=e&1,e>>=1;return e+t}function Fn(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n=0;)n++;return n-t}function Ns(e,t,r){for(r--;t>>1,n(a,e[f])<0?s=f:o=f+1;var h=i-o;switch(h){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;h>0;)e[o+h]=e[o+h-1],h--}e[o]=a}}function hi(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])>0){for(s=i-n;f0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}else{for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}for(o++;o>>1);a(e,t[r+u])>0?o=u+1:f=u}return f}function ui(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])<0){for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}else{for(s=i-n;f=0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}for(o++;o>>1);a(e,t[r+u])<0?f=u:o=u+1}return f}function Ws(e,t){var r=Hr,i,n,a=0,o=[];i=[],n=[];function s(d,_){i[a]=d,n[a]=_,a+=1}function f(){for(;a>1;){var d=a-2;if(d>=1&&n[d-1]<=n[d]+n[d+1]||d>=2&&n[d-2]<=n[d]+n[d-1])n[d-1]n[d+1])break;u(d)}}function h(){for(;a>1;){var d=a-2;d>0&&n[d-1]=Hr||b>=Hr);if(M)break;C<0&&(C=0),C+=2}if(r=C,r<1&&(r=1),_===1){for(p=0;p=0;p--)e[T+p]=e[C+p];e[w]=o[m];return}for(var b=r;;){var M=0,L=0,P=!1;do if(t(o[m],e[y])<0){if(e[w--]=e[y--],M++,L=0,--_===0){P=!0;break}}else if(e[w--]=o[m--],L++,M=0,--c===1){P=!0;break}while((M|L)=0;p--)e[T+p]=e[C+p];if(_===0){P=!0;break}}if(e[w--]=o[m--],--c===1){P=!0;break}if(L=c-hi(e[y],o,0,c,c-1,t),L!==0){for(w-=L,m-=L,c-=L,T=w+1,C=m+1,p=0;p=Hr||L>=Hr);if(P)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),c===1){for(w-=_,y-=_,T=w+1,C=y+1,p=_-1;p>=0;p--)e[T+p]=e[C+p];e[w]=o[m]}else{if(c===0)throw new Error;for(C=w-(c-1),p=0;ps&&(f=s),On(e,r,r+f,r+a,t),a=f}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var Lt=1,xe=2,Xr=4,Bn=!1;function vi(){Bn||(Bn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Hn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Gs=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Hn}return e.prototype.traverse=function(t,r){for(var i=0;i0&&(u.__clipPaths=[]),isNaN(u.z)&&(vi(),u.z=0),isNaN(u.z2)&&(vi(),u.z2=0),isNaN(u.zlevel)&&(vi(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var v=t.getDecalElement&&t.getDecalElement();v&&this._updateAndAddDisplayable(v,r,i);var l=t.getTextGuideLine();l&&this._updateAndAddDisplayable(l,r,i);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,r,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),He;He=W.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Kr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Kr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Kr.bounceIn(e*2)*.5:Kr.bounceOut(e*2-1)*.5+.5}},he=Math.pow,Bt=Math.sqrt,ja=1e-8,to=1e-4,zn=Bt(3),ue=1/3,Mt=Ar(),lt=Ar(),Rr=Ar();function Ot(e){return e>-1e-8&&eja||e<-1e-8}function U(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function kn(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function eo(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),f=3*(t-e),h=e-n,u=s*s-3*o*f,v=s*f-9*o*h,l=f*f-3*s*h,d=0;if(Ot(u)&&Ot(v))if(Ot(s))a[0]=0;else{var _=-f/s;_>=0&&_<=1&&(a[d++]=_)}else{var g=v*v-4*u*l;if(Ot(g)){var c=v/u,_=-s/o+c,p=-c/2;_>=0&&_<=1&&(a[d++]=_),p>=0&&p<=1&&(a[d++]=p)}else if(g>0){var y=Bt(g),m=u*s+1.5*o*(-v+y),w=u*s+1.5*o*(-v-y);m<0?m=-he(-m,ue):m=he(m,ue),w<0?w=-he(-w,ue):w=he(w,ue);var _=(-s-(m+w))/(3*o);_>=0&&_<=1&&(a[d++]=_)}else{var C=(2*u*s-3*o*v)/(2*Bt(u*u*u)),T=Math.acos(C)/3,b=Bt(u),M=Math.cos(T),_=(-s-2*b*M)/(3*o),p=(-s+b*(M+zn*Math.sin(T)))/(3*o),L=(-s+b*(M-zn*Math.sin(T)))/(3*o);_>=0&&_<=1&&(a[d++]=_),p>=0&&p<=1&&(a[d++]=p),L>=0&&L<=1&&(a[d++]=L)}}return d}function io(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,f=0;if(Ot(o)){if(ro(a)){var h=-s/a;h>=0&&h<=1&&(n[f++]=h)}}else{var u=a*a-4*o*s;if(Ot(u))n[0]=-a/(2*o);else if(u>0){var v=Bt(u),h=(-a+v)/(2*o),l=(-a-v)/(2*o);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function kt(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,f=(i-r)*n+r,h=(s-o)*n+o,u=(f-s)*n+s,v=(u-h)*n+h;a[0]=e,a[1]=o,a[2]=h,a[3]=v,a[4]=v,a[5]=u,a[6]=f,a[7]=i}function Xs(e,t,r,i,n,a,o,s,f,h,u){var v,l=.005,d=1/0,_,g,c,p;Mt[0]=f,Mt[1]=h;for(var y=0;y<1;y+=.05)lt[0]=U(e,r,n,o,y),lt[1]=U(t,i,a,s,y),c=Sr(Mt,lt),c=0&&c=0&&h<=1&&(n[f++]=h)}}else{var u=o*o-4*a*s;if(Ot(u)){var h=-o/(2*a);h>=0&&h<=1&&(n[f++]=h)}else if(u>0){var v=Bt(u),h=(-o+v)/(2*a),l=(-o-v)/(2*a);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function no(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function ze(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function $s(e,t,r,i,n,a,o,s,f){var h,u=.005,v=1/0;Mt[0]=o,Mt[1]=s;for(var l=0;l<1;l+=.05){lt[0]=Q(e,r,n,l),lt[1]=Q(t,i,a,l);var d=Sr(Mt,lt);d=0&&d=1?1:eo(0,i,a,1,f,s)&&U(0,n,o,1,s[0])}}}var Qs=function(){function e(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||Pr,this.ondestroy=t.ondestroy||Pr,this.onrestart=t.onrestart||Pr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var f=n%i;this._startTime=t-f,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Qe(t)?t:Kr[t]||ao(t)},e}(),oo=function(){function e(t){this.value=t}return e}(),Ks=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new oo(t);return this.insertEntry(r),r},e.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++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),je=function(){function e(t){this._list=new Ks,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var f=i.head;i.remove(f),delete n[f.key],a=f.value,this._lastRemovedEntry=f}s?s.value=r:s=new oo(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Wn={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 Ht(e){return e=Math.round(e),e<0?0:e>255?255:e}function qi(e){return e<0?0:e>1?1:e}function li(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ht(parseFloat(t)/100*255):Ht(parseInt(t,10))}function Jr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?qi(parseFloat(t)/100):qi(parseFloat(t))}function di(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function ve(e,t,r){return e+(t-e)*r}function ut(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Zi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var so=new je(20),le=null;function lr(e,t){le&&Zi(le,t),le=so.put(e,le||t.slice())}function zt(e,t){if(e){t=t||[];var r=so.get(e);if(r)return Zi(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in Wn)return Zi(t,Wn[i]),lr(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){ut(t,0,0,0,1);return}return ut(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),lr(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ut(t,0,0,0,1);return}return ut(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),lr(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var f=i.substr(0,o),h=i.substr(o+1,s-(o+1)).split(","),u=1;switch(f){case"rgba":if(h.length!==4)return h.length===3?ut(t,+h[0],+h[1],+h[2],1):ut(t,0,0,0,1);u=Jr(h.pop());case"rgb":if(h.length>=3)return ut(t,li(h[0]),li(h[1]),li(h[2]),h.length===3?u:Jr(h[3])),lr(e,t),t;ut(t,0,0,0,1);return;case"hsla":if(h.length!==4){ut(t,0,0,0,1);return}return h[3]=Jr(h[3]),Yn(h,t),lr(e,t),t;case"hsl":if(h.length!==3){ut(t,0,0,0,1);return}return Yn(h,t),lr(e,t),t;default:return}}ut(t,0,0,0,1)}}function Yn(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=Jr(e[1]),n=Jr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ut(t,Ht(di(o,a,r+1/3)*255),Ht(di(o,a,r)*255),Ht(di(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Gn(e,t){var r=zt(e);if(r){for(var i=0;i<3;i++)r[i]=r[i]*(1-t)|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return yn(r,r.length===4?"rgba":"rgb")}}function Nu(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=zt(t[n]),s=zt(t[a]),f=i-n,h=yn([Ht(ve(o[0],s[0],f)),Ht(ve(o[1],s[1],f)),Ht(ve(o[2],s[2],f)),qi(ve(o[3],s[3],f))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}}function yn(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function ke(e,t){var r=zt(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Xn=new je(100);function Wu(e){if(Be(e)){var t=Xn.get(e);return t||(t=Gn(e,-.1),Xn.put(e,t)),t}else if(Ke(e)){var r=N({},e);return r.colorStops=St(e.colorStops,function(i){return{offset:i.offset,color:Gn(i.color,-.1)}}),r}return e}function Js(e){return e.type==="linear"}function js(e){return e.type==="radial"}(function(){return W.hasGlobalWindow&&Qe(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var $i=Array.prototype.slice;function xt(e,t,r){return(t-e)*r+e}function ci(e,t,r,i){for(var n=t.length,a=0;ai?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)i.length=o;else for(var f=a;f=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Zn,f=r;if(Pt(r)){var h=nf(r);s=h,(h===1&&!Re(r[0])||h===2&&!Re(r[0][0]))&&(o=!0)}else if(Re(r)&&!rs(r))s=ce;else if(Be(r))if(!isNaN(+r))s=ce;else{var u=zt(r);u&&(f=u,s=qr)}else if(Ke(r)){var v=N({},f);v.colorStops=St(r.colorStops,function(d){return{offset:d.offset,color:zt(d.color)}}),Js(r)?s=Ui:js(r)&&(s=Vi),f=v}a===0?this.valType=s:(s!==this.valType||s===Zn)&&(o=!0),this.discrete=this.discrete||o;var l={time:t,value:f,rawValue:r,percent:0};return i&&(l.easing=i,l.easingFunc=Qe(i)?i:Kr[i]||ao(i)),n.push(l),l},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(g,c){return g.time-c.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,f=pe(n),h=$n(n),u=0;u=0&&!(o[u].percent<=r);u--);u=l(u,s-2)}else{for(u=v;ur);u++);u=l(u-1,s-2)}_=o[u+1],d=o[u]}if(d&&_){this._lastFr=u,this._lastFrP=r;var c=_.percent-d.percent,p=c===0?1:l((r-d.percent)/c,1);_.easingFunc&&(p=_.easingFunc(p));var y=i?this._additiveValue:h?zr:t[f];if((pe(a)||h)&&!y&&(y=this._additiveValue=[]),this.discrete)t[f]=p<1?d.rawValue:_.rawValue;else if(pe(a))a===Ie?ci(y,d[n],_[n],p):tf(y,d[n],_[n],p);else if($n(a)){var m=d[n],w=_[n],C=a===Ui;t[f]={type:C?"linear":"radial",x:xt(m.x,w.x,p),y:xt(m.y,w.y,p),colorStops:St(m.colorStops,function(b,M){var L=w.colorStops[M];return{offset:xt(b.offset,L.offset,p),color:Ee(ci([],b.color,L.color,p))}}),global:w.global},C?(t[f].x2=xt(m.x2,w.x2,p),t[f].y2=xt(m.y2,w.y2,p)):t[f].r=xt(m.r,w.r,p)}else if(h)ci(y,d[n],_[n],p),i||(t[f]=Ee(y));else{var T=xt(d[n],_[n],p);i?this._additiveValue=T:t[f]=T}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===ce?t[i]=t[i]+n:r===qr?(zt(t[i],zr),de(zr,zr,n,1),t[i]=Ee(zr)):r===Ie?de(t[i],t[i],n,1):r===fo&&qn(t[i],t[i],n,1)},e}(),mn=function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){_n("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,ft(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o0&&f.addKeyframe(0,Ae(h),n),this._trackKeys.push(s)}f.addKeyframe(t,Ae(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function br(){return new Date().getTime()}var of=function(e){z(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=br()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(He(i),!r._paused&&r.update())}He(i)},t.prototype.start=function(){this._running||(this._time=br(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=br(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=br()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new mn(r,i.loop);return this.addAnimator(n),n},t}(Er),sf=300,pi=W.domSupported,_i=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=St(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}}(),Un={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Vn=!1;function Qi(e){var t=e.pointerType;return t==="pen"||t==="touch"}function ff(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function gi(e){e&&(e.zrByTouch=!0)}function hf(e,t){return ct(e.dom,new uf(e,t),!0)}function ho(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var uf=function(){function e(t,r){this.stopPropagation=Pr,this.stopImmediatePropagation=Pr,this.preventDefault=Pr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),pt={mousedown:function(e){e=ct(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ct(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ct(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ct(this.dom,e);var t=e.toElement||e.relatedTarget;ho(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Vn=!0,e=ct(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Vn||(e=ct(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ct(this.dom,e),gi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),pt.mousemove.call(this,e),pt.mousedown.call(this,e)},touchmove:function(e){e=ct(this.dom,e),gi(e),this.handler.processGesture(e,"change"),pt.mousemove.call(this,e)},touchend:function(e){e=ct(this.dom,e),gi(e),this.handler.processGesture(e,"end"),pt.mouseup.call(this,e),+new Date-+this.__lastTouchMomentpf||e<-5e-5}var Ut=[],dr=[],mi=Qr(),wi=Math.abs,wn=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return $t(this.rotation)||$t(this.x)||$t(this.y)||$t(this.scaleX-1)||$t(this.scaleY-1)||$t(this.skewX)||$t(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(Kn(i),this.invTransform=null);return}i=i||Qr(),r?this.getLocalTransform(i):Kn(i),t&&(r?si(i,t,i):xs(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ut);var i=Ut[0]<0?-1:1,n=Ut[1]<0?-1:1,a=((Ut[0]-i)*r+i)/Ut[0]||0,o=((Ut[1]-n)*r+n)/Ut[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Qr(),Is(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Qr(),si(dr,t.invTransform,r),r=dr);var i=this.originX,n=this.originY;(i||n)&&(mi[4]=i,mi[5]=n,si(dr,r,mi),dr[4]-=i,dr[5]-=n,r=dr),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&Vr(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&Vr(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&wi(t[0]-1)>1e-10&&wi(t[3]-1)>1e-10?Math.sqrt(wi(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){_f(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,f=t.anchorY,h=t.rotation||0,u=t.x,v=t.y,l=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||f){var _=i+s,g=n+f;r[4]=-_*a-l*g*o,r[5]=-g*o-d*_*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=d*a,r[2]=l*o,h&&As(r,r,h),r[4]+=i+u,r[5]+=n+v,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ee=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function _f(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function yf(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,f=r.x,h=r.y,u="left",v="top";if(i instanceof Array)f+=ie(i[0],r.width),h+=ie(i[1],r.height),u=null,v=null;else switch(i){case"left":f-=n,h+=s,u="right",v="middle";break;case"right":f+=n+o,h+=s,v="middle";break;case"top":f+=o/2,h-=n,u="center",v="bottom";break;case"bottom":f+=o/2,h+=a+n,u="center";break;case"inside":f+=o/2,h+=s,u="center",v="middle";break;case"insideLeft":f+=n,h+=s,v="middle";break;case"insideRight":f+=o-n,h+=s,u="right",v="middle";break;case"insideTop":f+=o/2,h+=n,u="center";break;case"insideBottom":f+=o/2,h+=a-n,u="center",v="bottom";break;case"insideTopLeft":f+=n,h+=n;break;case"insideTopRight":f+=o-n,h+=n,u="right";break;case"insideBottomLeft":f+=n,h+=a-n,v="bottom";break;case"insideBottomRight":f+=o-n,h+=a-n,u="right",v="bottom";break}return e=e||{},e.x=f,e.y=h,e.align=u,e.verticalAlign=v,e}var Ti="__zr_normal__",bi=ee.concat(["ignore"]),mf=Ve(ee,function(e,t){return e[t]=!0,e},{ignore:!1}),cr={},wf=new Y(0,0,0,0),ti=function(){function e(t){this.id=Ya(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,f=!1;a.parent=n?this:null;var h=!1;if(a.copyTransform(r),i.position!=null){var u=wf;i.layoutRect?u.copy(i.layoutRect):u.copy(this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(cr,i,u):yf(cr,i,u),a.x=cr.x,a.y=cr.y,o=cr.align,s=cr.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var l=void 0,d=void 0;v==="center"?(l=u.width*.5,d=u.height*.5):(l=ie(v[0],u.width),d=ie(v[1],u.height)),h=!0,a.originX=-a.x+l+(n?0:u.x),a.originY=-a.y+d+(n?0:u.y)}}i.rotation!=null&&(a.rotation=i.rotation);var _=i.offset;_&&(a.x+=_[0],a.y+=_[1],h||(a.originX=-_[0],a.originY=-_[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,c=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),p=void 0,y=void 0,m=void 0;g&&this.canBeInsideText()?(p=i.insideFill,y=i.insideStroke,(p==null||p==="auto")&&(p=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(p),m=!0)):(p=i.outsideFill,y=i.outsideStroke,(p==null||p==="auto")&&(p=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(p),m=!0)),p=p||"#000",(p!==c.fill||y!==c.stroke||m!==c.autoStroke||o!==c.align||s!==c.verticalAlign)&&(f=!0,c.fill=p,c.stroke=y,c.autoStroke=m,c.align=o,c.verticalAlign=s,r.setDefaultTextStyle(c)),r.__dirty|=Lt,f&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?tn:ji},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&zt(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,yn(i,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},N(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Ft(t))for(var i=t,n=ft(i),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Ti,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===Ti,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,f=this.stateTransition;if(!(Ct(s,t)>=0&&(r||s.length===1))){var h;if(this.stateProxy&&!a&&(h=this.stateProxy(t)),h||(h=this.states&&this.states[t]),!h&&!a){_n("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(h);var u=!!(h&&h.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,h,this._normalState,r,!i&&!this.__inHover&&f&&f.duration>0,f);var v=this._textContent,l=this._textGuide;return v&&v.useState(t,r,i,u),l&&l.useState(t,r,i,u),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),h}}},e.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var f=0;f0,_);var g=this._textContent,c=this._textGuide;g&&g.useStates(t,r,l),c&&c.useStates(t,r,l),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=Ct(n,t),o=Ct(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o0&&r.during&&a[0].during(function(_,g){r.during(g)});for(var l=0;l0||n.force&&!o.length){var M=void 0,L=void 0,P=void 0;if(s){L={},l&&(M={});for(var w=0;w=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=Ct(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=Ct(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this._disposed||this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r=o;f++)s-=o;var h=ht(r,t);return h>s&&(r="",h=0),s=e-h,n.ellipsis=r,n.ellipsisWidth=h,n.contentWidth=s,n.containerWidth=e,n}function go(e,t,r){var i=r.containerWidth,n=r.font,a=r.contentWidth;if(!i){e.textLine="",e.isTruncated=!1;return}var o=ht(t,n);if(o<=i){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){t+=r.ellipsis;break}var f=s===0?xf(t,a,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,f),o=ht(t,n)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function xf(e,t,r,i){for(var n=0,a=0,o=e.length;a_&&h){var g=Math.floor(_/s);u=u||l.length>g,l=l.slice(0,g)}if(e&&a&&v!=null)for(var c=_o(v,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p={},y=0;ys&&Pi(r,e.substring(s,h),t,o),Pi(r,f[2],t,o,f[1]),s=Li.lastIndex}sn){var A=r.lines.length;T>0?(m.tokens=m.tokens.slice(0,T),p(m,C,w),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y),r.isTruncated=r.isTruncated||r.lines.length0&&_+i.accumWidth>i.width&&(u=t.split(` +`),h=!0),i.accumWidth=_}else{var g=yo(t,f,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,v=g.linesWidths,u=g.lines}}else u=t.split(` +`);for(var c=0;c=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Bf=Ve(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Hf(e){return Of(e)?!!Bf[e]:!0}function yo(e,t,r,i,n){for(var a=[],o=[],s="",f="",h=0,u=0,v=0;vr:n+u+d>r){u?(s||f)&&(_?(s||(s=f,f="",h=0,u=h),a.push(s),o.push(u-h),f+=l,h+=d,s="",u=h):(f&&(s+=f,f="",h=0),a.push(s),o.push(u),s=l,u=d)):_?(a.push(f),o.push(h),f=l,h=d):(a.push(l),o.push(d));continue}u+=d,_?(f+=l,h+=d):(f&&(s+=f,f="",h=0),s+=l)}return!a.length&&!s&&(s=e,f="",h=0),f&&(s+=f),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}var en="__zr_style_"+Math.round(Math.random()*10),fr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ei={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};fr[en]=!0;var ea=["z","z2","invisible"],zf=["invisible"],ae=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=ft(r),n=0;n1e-4){s[0]=e-r,s[1]=t-i,f[0]=e+r,f[1]=t+i;return}if(_e[0]=xi(n)*r+e,_e[1]=Di(n)*i+t,ge[0]=xi(a)*r+e,ge[1]=Di(a)*i+t,h(s,_e,ge),u(f,_e,ge),n=n%Vt,n<0&&(n=n+Vt),a=a%Vt,a<0&&(a=a+Vt),n>a&&!o?a+=Vt:nn&&(ye[0]=xi(d)*r+e,ye[1]=Di(d)*i+t,h(s,ye,s),u(f,ye,f))}var H={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qt=[],Kt=[],yt=[],At=[],mt=[],wt=[],Ai=Math.min,Ei=Math.max,Jt=Math.cos,jt=Math.sin,Dt=Math.abs,nn=Math.PI,It=nn*2,Ii=typeof Float32Array<"u",kr=[];function Fi(e){var t=Math.round(e/nn*1e8)/1e8;return t%2*nn}function Gf(e,t){var r=Fi(e[0]);r<0&&(r+=It);var i=r-e[0],n=e[1];n+=i,!t&&n-r>=It?n=r+It:t&&r-n>=It?n=r-It:!t&&r>n?n=r+(It-Fi(r-n)):t&&r0&&(this._ux=Dt(i/Ne/t)||0,this._uy=Dt(i/Ne/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(H.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var i=Dt(t-this._xi),n=Dt(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(H.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){return this._drawPendingPt(),this.addData(H.C,t,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,i,n,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,i,n){return this._drawPendingPt(),this.addData(H.Q,t,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,r,i,n,a,o){this._drawPendingPt(),kr[0]=n,kr[1]=a,Gf(kr,o),n=kr[0],a=kr[1];var s=a-n;return this.addData(H.A,t,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,i,n,a,o),this._xi=Jt(a)*i+t,this._yi=jt(a)*i+r,this},e.prototype.arcTo=function(t,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,n,a),this},e.prototype.rect=function(t,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,n),this.addData(H.R,t,r,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(H.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Ii&&(this.data=new Float32Array(r));for(var i=0;iu.length&&(this._expandData(),u=this.data);for(var v=0;v0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){yt[0]=yt[1]=mt[0]=mt[1]=Number.MAX_VALUE,At[0]=At[1]=wt[0]=wt[1]=-Number.MAX_VALUE;var t=this.data,r=0,i=0,n=0,a=0,o;for(o=0;oi||Dt(m)>n||l===r-1)&&(g=Math.sqrt(y*y+m*m),a=c,o=p);break}case H.C:{var w=t[l++],C=t[l++],c=t[l++],p=t[l++],T=t[l++],b=t[l++];g=qs(a,o,w,C,c,p,T,b,10),a=T,o=b;break}case H.Q:{var w=t[l++],C=t[l++],c=t[l++],p=t[l++];g=Us(a,o,w,C,c,p,10),a=c,o=p;break}case H.A:var M=t[l++],L=t[l++],P=t[l++],S=t[l++],D=t[l++],A=t[l++],R=A+D;l+=1,_&&(s=Jt(D)*P+M,f=jt(D)*S+L),g=Ei(P,S)*Ai(It,Math.abs(A)),a=Jt(R)*P+M,o=jt(R)*S+L;break;case H.R:{s=a=t[l++],f=o=t[l++];var I=t[l++],x=t[l++];g=I*2+x*2;break}case H.Z:{var y=s-a,m=f-o;g=Math.sqrt(y*y+m*m),a=s,o=f;break}}g>=0&&(h[v++]=g,u+=g)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,f,h,u,v,l,d=r<1,_,g,c=0,p=0,y,m=0,w,C;if(!(d&&(this._pathSegLen||this._calculateLength(),_=this._pathSegLen,g=this._pathLen,y=r*g,!y)))t:for(var T=0;T0&&(t.lineTo(w,C),m=0),b){case H.M:s=h=i[T++],f=u=i[T++],t.moveTo(h,u);break;case H.L:{v=i[T++],l=i[T++];var L=Dt(v-h),P=Dt(l-u);if(L>n||P>a){if(d){var S=_[p++];if(c+S>y){var D=(y-c)/S;t.lineTo(h*(1-D)+v*D,u*(1-D)+l*D);break t}c+=S}t.lineTo(v,l),h=v,u=l,m=0}else{var A=L*L+P*P;A>m&&(w=v,C=l,m=A)}break}case H.C:{var R=i[T++],I=i[T++],x=i[T++],B=i[T++],k=i[T++],J=i[T++];if(d){var S=_[p++];if(c+S>y){var D=(y-c)/S;kt(h,R,x,k,D,Qt),kt(u,I,B,J,D,Kt),t.bezierCurveTo(Qt[1],Kt[1],Qt[2],Kt[2],Qt[3],Kt[3]);break t}c+=S}t.bezierCurveTo(R,I,x,B,k,J),h=k,u=J;break}case H.Q:{var R=i[T++],I=i[T++],x=i[T++],B=i[T++];if(d){var S=_[p++];if(c+S>y){var D=(y-c)/S;ze(h,R,x,D,Qt),ze(u,I,B,D,Kt),t.quadraticCurveTo(Qt[1],Kt[1],Qt[2],Kt[2]);break t}c+=S}t.quadraticCurveTo(R,I,x,B),h=x,u=B;break}case H.A:var Z=i[T++],X=i[T++],G=i[T++],nt=i[T++],at=i[T++],Rt=i[T++],Nt=i[T++],Wt=!i[T++],Yt=G>nt?G:nt,j=Dt(G-nt)>.001,$=at+Rt,E=!1;if(d){var S=_[p++];c+S>y&&($=at+Rt*(y-c)/S,E=!0),c+=S}if(j&&t.ellipse?t.ellipse(Z,X,G,nt,Nt,at,$,Wt):t.arc(Z,X,Yt,at,$,Wt),E)break t;M&&(s=Jt(at)*G+Z,f=jt(at)*nt+X),h=Jt($)*G+Z,u=jt($)*nt+X;break;case H.R:s=h=i[T],f=u=i[T+1],v=i[T++],l=i[T++];var O=i[T++],Ir=i[T++];if(d){var S=_[p++];if(c+S>y){var gt=y-c;t.moveTo(v,l),t.lineTo(v+Ai(gt,O),l),gt-=O,gt>0&&t.lineTo(v+O,l+Ai(gt,Ir)),gt-=Ir,gt>0&&t.lineTo(v+Ei(O-gt,0),l+Ir),gt-=O,gt>0&&t.lineTo(v,l+Ei(Ir-gt,0));break t}c+=S}t.rect(v,l,O,Ir);break;case H.Z:if(d){var S=_[p++];if(c+S>y){var D=(y-c)/S;t.lineTo(h*(1-D)+s*D,u*(1-D)+f*D);break t}c+=S}t.closePath(),h=s,u=f}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=H,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function pr(e,t,r,i,n,a,o){if(n===0)return!1;var s=n,f=0,h=e;if(o>t+s&&o>i+s||oe+s&&a>r+s||at+v&&u>i+v&&u>a+v&&u>s+v||ue+v&&h>r+v&&h>n+v&&h>o+v||ht+h&&f>i+h&&f>a+h||fe+h&&s>r+h&&s>n+h||sr||u+hn&&(n+=Nr);var l=Math.atan2(f,s);return l<0&&(l+=Nr),l>=i&&l<=n||l+Nr>=i&&l+Nr<=n}function tr(e,t,r,i,n,a){if(a>t&&a>i||an?s:0}var Et=ur.CMD,rr=Math.PI*2,$f=1e-4;function Uf(e,t){return Math.abs(e-t)<$f}var K=[-1,-1,-1],vt=[-1,-1];function Vf(){var e=vt[0];vt[0]=vt[1],vt[1]=e}function Qf(e,t,r,i,n,a,o,s,f,h){if(h>t&&h>i&&h>a&&h>s||h1&&Vf(),d=U(t,i,a,s,vt[0]),l>1&&(_=U(t,i,a,s,vt[1]))),l===2?ct&&s>i&&s>a||s=0&&h<=1){for(var u=0,v=Q(t,i,a,h),l=0;lr||s<-r)return 0;var f=Math.sqrt(r*r-s*s);K[0]=-f,K[1]=f;var h=Math.abs(i-n);if(h<1e-4)return 0;if(h>=rr-1e-4){i=0,n=rr;var u=a?1:-1;return o>=K[0]+e&&o<=K[1]+e?u:0}if(i>n){var v=i;i=n,n=v}i<0&&(i+=rr,n+=rr);for(var l=0,d=0;d<2;d++){var _=K[d];if(_+e>o){var g=Math.atan2(s,_),u=a?1:-1;g<0&&(g=rr+g),(g>=i&&g<=n||g+rr>=i&&g+rr<=n)&&(g>Math.PI/2&&g1&&(r||(s+=tr(f,h,u,v,i,n))),c&&(f=a[_],h=a[_+1],u=f,v=h),g){case Et.M:u=a[_++],v=a[_++],f=u,h=v;break;case Et.L:if(r){if(pr(f,h,a[_],a[_+1],t,i,n))return!0}else s+=tr(f,h,a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.C:if(r){if(Xf(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Qf(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.Q:if(r){if(qf(f,h,a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Kf(f,h,a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.A:var p=a[_++],y=a[_++],m=a[_++],w=a[_++],C=a[_++],T=a[_++];_+=1;var b=!!(1-a[_++]);l=Math.cos(C)*m+p,d=Math.sin(C)*w+y,c?(u=l,v=d):s+=tr(f,h,l,d,i,n);var M=(i-p)*w/m+p;if(r){if(Zf(p,y,w,C,C+T,b,t,M,n))return!0}else s+=Jf(p,y,w,C,C+T,b,M,n);f=Math.cos(C+T)*m+p,h=Math.sin(C+T)*w+y;break;case Et.R:u=f=a[_++],v=h=a[_++];var L=a[_++],P=a[_++];if(l=u+L,d=v+P,r){if(pr(u,v,l,v,t,i,n)||pr(l,v,l,d,t,i,n)||pr(l,d,u,d,t,i,n)||pr(u,d,u,v,t,i,n))return!0}else s+=tr(l,v,l,d,i,n),s+=tr(u,d,u,v,i,n);break;case Et.Z:if(r){if(pr(f,h,u,v,t,i,n))return!0}else s+=tr(f,h,u,v,i,n);f=u,h=v;break}}return!r&&!Uf(h,v)&&(s+=tr(f,h,u,v,i,n)||0),s!==0}function jf(e,t,r){return wo(e,0,!1,t,r)}function th(e,t,r,i){return wo(e,t,!0,r,i)}var To=_t({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},fr),rh={style:_t({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ei.style)},Oi=ee.concat(["invisible","culling","z","z2","zlevel","parent"]),q=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(f){r.buildPath(f,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s.5?ji:i>.2?cf:tn}else if(r)return tn}return ji},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(Be(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=ke(r,0)0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Xr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var f=i.strokeNoScale?this.getLineScale():1,h=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;h=Math.max(h,u??4)}f>1e-10&&(s.width+=h/f,s.height+=h/f,s.x-=h/f/2,s.y-=h/f/2)}return s}return r},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var f=o.lineWidth,h=o.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),th(s,f/h,r,i)))return!0}if(this.hasFill())return jf(s,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Xr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):e.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:N(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Xr)},t.prototype.createStyle=function(r){return Je(To,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=N({},this.shape))},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var f=!(i&&a),h;if(i&&i.shape?o?a?h=i.shape:(h=N({},n.shape),N(h,i.shape)):(h=N({},a?this.shape:n.shape),N(h,i.shape)):f&&(h=n.shape),h)if(o){this.shape=N({},this.shape);for(var u={},v=ft(h),l=0;l0},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(r){return Je(eh,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var i=r.text;i!=null?i+="":i="";var n=gf(i,r.font,r.textAlign,r.textBaseline);if(n.x+=r.x||0,n.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(ae);We.prototype.type="tspan";var ih=_t({x:0,y:0},fr),nh={style:_t({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ei.style)};function ah(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var bn=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Je(ih,r)},t.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=ah(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return nh},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Y(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ae);bn.prototype.type="image";function oh(e,t){var r=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,f,h,u;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=f=h=u=o:o instanceof Array?o.length===1?s=f=h=u=o[0]:o.length===2?(s=h=o[0],f=u=o[1]):o.length===3?(s=o[0],f=u=o[1],h=o[2]):(s=o[0],f=o[1],h=o[2],u=o[3]):s=f=h=u=0;var v;s+f>n&&(v=s+f,s*=n/v,f*=n/v),h+u>n&&(v=h+u,h*=n/v,u*=n/v),f+h>a&&(v=f+h,f*=a/v,h*=a/v),s+u>a&&(v=s+u,s*=a/v,u*=a/v),e.moveTo(r+s,i),e.lineTo(r+n-f,i),f!==0&&e.arc(r+n-f,i+f,f,-Math.PI/2,0),e.lineTo(r+n,i+a-h),h!==0&&e.arc(r+n-h,i+a-h,h,0,Math.PI/2),e.lineTo(r+u,i+a),u!==0&&e.arc(r+u,i+a-u,u,Math.PI/2,Math.PI),e.lineTo(r,i+s),s!==0&&e.arc(r+s,i+s,s,Math.PI,Math.PI*1.5)}var Cr=Math.round;function sh(e,t,r){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=n,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Cr(i*2)===Cr(n*2)&&(e.x1=e.x2=Mr(i,s,!0)),Cr(a*2)===Cr(o*2)&&(e.y1=e.y2=Mr(a,s,!0))),e}}function fh(e,t,r){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;e.x=i,e.y=n,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Mr(i,s,!0),e.y=Mr(n,s,!0),e.width=Math.max(Mr(i+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Mr(n+o,s,!1)-e.y,o===0?0:1)),e}}function Mr(e,t,r){if(!t)return e;var i=Cr(e*2);return(i+Cr(t))%2===0?i/2:(i+(r?1:-1))/2}var hh=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),uh={},Cn=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new hh},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var f=fh(uh,i,this.style);n=f.x,a=f.y,o=f.width,s=f.height,f.r=i.r,i=f}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?oh(r,i):r.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(q);Cn.prototype.type="rect";var sa={fill:"#000"},fa=2,vh={style:_t({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},ei.style)},lh=function(e){z(t,e);function t(r){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=sa,i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,D=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),A=o.calculatedLineHeight,R=0;R=0&&(R=T[A],R.align==="right");)this._placeToken(R,r,M,p,D,"right",m),L-=R.width,D-=R.width,A--;for(S+=(a-(S-c)-(y-D)-L)/2;P<=A;)R=T[P],this._placeToken(R,r,M,p,S+R.width/2,"center",m),S+=R.width,P++;p+=M}},t.prototype._placeToken=function(r,i,n,a,o,s,f){var h=i.rich[r.styleName]||{};h.text=r.text;var u=r.verticalAlign,v=a+n/2;u==="top"?v=a+r.height/2:u==="bottom"&&(v=a+n-r.height/2);var l=!r.isLineHolder&&Bi(h);l&&this._renderBackground(h,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,v-r.height/2,r.width,r.height);var d=!!h.backgroundColor,_=r.textPadding;_&&(o=ca(o,s,_),v-=r.height/2-_[0]-r.innerHeight/2);var g=this._getOrCreateChild(We),c=g.createStyle();g.useStyle(c);var p=this._defaultStyle,y=!1,m=0,w=da("fill"in h?h.fill:"fill"in i?i.fill:(y=!0,p.fill)),C=la("stroke"in h?h.stroke:"stroke"in i?i.stroke:!d&&!f&&(!p.autoStroke||y)?(m=fa,p.stroke):null),T=h.textShadowBlur>0||i.textShadowBlur>0;c.text=r.text,c.x=o,c.y=v,T&&(c.shadowBlur=h.textShadowBlur||i.textShadowBlur||0,c.shadowColor=h.textShadowColor||i.textShadowColor||"transparent",c.shadowOffsetX=h.textShadowOffsetX||i.textShadowOffsetX||0,c.shadowOffsetY=h.textShadowOffsetY||i.textShadowOffsetY||0),c.textAlign=s,c.textBaseline="middle",c.font=r.font||hr,c.opacity=De(h.opacity,i.opacity,1),ua(c,h),C&&(c.lineWidth=De(h.lineWidth,i.lineWidth,m),c.lineDash=ot(h.lineDash,i.lineDash),c.lineDashOffset=i.lineDashOffset||0,c.stroke=C),w&&(c.fill=w);var b=r.contentWidth,M=r.contentHeight;g.setBoundingRect(new Y(Zr(c.x,b,c.textAlign),mr(c.y,M,c.textBaseline),b,M))},t.prototype._renderBackground=function(r,i,n,a,o,s){var f=r.backgroundColor,h=r.borderWidth,u=r.borderColor,v=f&&f.image,l=f&&!v,d=r.borderRadius,_=this,g,c;if(l||r.lineHeight||h&&u){g=this._getOrCreateChild(Cn),g.useStyle(g.createStyle()),g.style.fill=null;var p=g.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=d,g.dirtyShape()}if(l){var y=g.style;y.fill=f||null,y.fillOpacity=ot(r.fillOpacity,1)}else if(v){c=this._getOrCreateChild(bn),c.onload=function(){_.dirtyStyle()};var m=c.style;m.image=f.image,m.x=n,m.y=a,m.width=o,m.height=s}if(h&&u){var y=g.style;y.lineWidth=h,y.stroke=u,y.strokeOpacity=ot(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(g||c).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=De(r.opacity,i.opacity,1)},t.makeFont=function(r){var i="";return _h(r)&&(i=[r.fontStyle,r.fontWeight,ph(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&Gr(i)||r.textFont||r.font},t}(ae),dh={left:!0,right:1,center:1},ch={top:1,bottom:1,middle:1},ha=["fontStyle","fontWeight","fontSize","fontFamily"];function ph(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?dn+"px":e+"px"}function ua(e,t){for(var r=0;r1&&(o*=Hi(_),s*=Hi(_));var g=(n===a?-1:1)*Hi((o*o*(s*s)-o*o*(d*d)-s*s*(l*l))/(o*o*(d*d)+s*s*(l*l)))||0,c=g*o*d/s,p=g*-s*l/o,y=(e+r)/2+Te(v)*c-we(v)*p,m=(t+i)/2+we(v)*c+Te(v)*p,w=ya([1,0],[(l-c)/o,(d-p)/s]),C=[(l-c)/o,(d-p)/s],T=[(-1*l-c)/o,(-1*d-p)/s],b=ya(C,T);if(an(C,T)<=-1&&(b=Wr),an(C,T)>=1&&(b=0),b<0){var M=Math.round(b/Wr*1e6)/1e6;b=Wr*2+M%2*Wr}u.addData(h,y,m,o,s,w,b,v,a)}var wh=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Th=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function bh(e){var t=new ur;if(!e)return t;var r=0,i=0,n=r,a=i,o,s=ur.CMD,f=e.match(wh);if(!f)return t;for(var h=0;hR*R+I*I&&(M=P,L=S),{cx:M,cy:L,x0:-u,y0:-v,x1:M*(n/C-1),y1:L*(n/C-1)}}function Dh(e){var t;if(re(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function xh(e,t){var r,i=$r(t.r,0),n=$r(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var f=t.startAngle,h=t.endAngle;if(!(isNaN(f)||isNaN(h))){var u=t.cx,v=t.cy,l=!!t.clockwise,d=wa(h-f),_=d>zi&&d%zi;if(_>dt&&(d=_),!(i>dt))e.moveTo(u,v);else if(d>zi-dt)e.moveTo(u+i*gr(f),v+i*er(f)),e.arc(u,v,i,f,h,!l),n>dt&&(e.moveTo(u+n*gr(h),v+n*er(h)),e.arc(u,v,n,h,f,l));else{var g=void 0,c=void 0,p=void 0,y=void 0,m=void 0,w=void 0,C=void 0,T=void 0,b=void 0,M=void 0,L=void 0,P=void 0,S=void 0,D=void 0,A=void 0,R=void 0,I=i*gr(f),x=i*er(f),B=n*gr(h),k=n*er(h),J=d>dt;if(J){var Z=t.cornerRadius;Z&&(r=Dh(Z),g=r[0],c=r[1],p=r[2],y=r[3]);var X=wa(i-n)/2;if(m=Tt(X,p),w=Tt(X,y),C=Tt(X,g),T=Tt(X,c),L=b=$r(m,w),P=M=$r(C,T),(b>dt||M>dt)&&(S=i*gr(h),D=i*er(h),A=n*gr(f),R=n*er(f),ddt){var j=Tt(p,L),$=Tt(y,L),E=be(A,R,I,x,i,j,l),O=be(S,D,B,k,i,$,l);e.moveTo(u+E.cx+E.x0,v+E.cy+E.y0),L0&&e.arc(u+E.cx,v+E.cy,j,V(E.y0,E.x0),V(E.y1,E.x1),!l),e.arc(u,v,i,V(E.cy+E.y1,E.cx+E.x1),V(O.cy+O.y1,O.cx+O.x1),!l),$>0&&e.arc(u+O.cx,v+O.cy,$,V(O.y1,O.x1),V(O.y0,O.x0),!l))}else e.moveTo(u+I,v+x),e.arc(u,v,i,f,h,!l);if(!(n>dt)||!J)e.lineTo(u+B,v+k);else if(P>dt){var j=Tt(g,P),$=Tt(c,P),E=be(B,k,S,D,n,-$,l),O=be(I,x,A,R,n,-j,l);e.lineTo(u+E.cx+E.x0,v+E.cy+E.y0),P0&&e.arc(u+E.cx,v+E.cy,$,V(E.y0,E.x0),V(E.y1,E.x1),!l),e.arc(u,v,n,V(E.cy+E.y1,E.cx+E.x1),V(O.cy+O.y1,O.cx+O.x1),l),j>0&&e.arc(u+O.cx,v+O.cy,j,V(O.y1,O.x1),V(O.y0,O.x0),!l))}else e.lineTo(u+B,v+k),e.arc(u,v,n,h,f,l)}e.closePath()}}}var Ah=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),on=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Ah},t.prototype.buildPath=function(r,i){xh(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(q);on.prototype.type="sector";var Eh=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Ih=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Eh},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},t}(q);Ih.prototype.type="ring";function Fh(e,t,r,i){var n=[],a=[],o=[],s=[],f,h,u,v;if(i){u=[1/0,1/0],v=[-1/0,-1/0];for(var l=0,d=e.length;l=2){if(i){var a=Fh(n,i,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var f=a[s*2],h=a[s*2+1],u=n[(s+1)%o];e.bezierCurveTo(f[0],f[1],h[0],h[1],u[0],u[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var s=1,v=n.length;snr[1]){if(s=!1,a)return s;var u=Math.abs(nr[0]-ir[1]),v=Math.abs(ir[0]-nr[1]);Math.min(u,v)>n.len()&&(u=0&&or(f)?f:.5;var h=e.createRadialGradient(o,s,0,o,s,f);return h}function sn(e,t,r){for(var i=t.type==="radial"?Vh(e,t,r):Uh(e,t,r),n=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Re(e)?[e]:re(e)?e:null}function Ao(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Kh(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=St(r,function(a){return a/n}),i/=n)}return[r,i]}var Jh=new ur(!0);function Ye(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function ba(e){return typeof e=="string"&&e!=="none"}function Ge(e){var t=e.fill;return t!=null&&t!=="none"}function Ca(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Ma(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function fn(e,t,r){var i=po(t.image,t.__image,r);if(ri(i)){var n=e.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*os),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function jh(e,t,r,i){var n,a=Ye(r),o=Ge(r),s=r.strokePercent,f=s<1,h=!t.path;(!t.silent||f)&&h&&t.createPathProxy();var u=t.path||Jh,v=t.__dirty;if(!i){var l=r.fill,d=r.stroke,_=o&&!!l.colorStops,g=a&&!!d.colorStops,c=o&&!!l.image,p=a&&!!d.image,y=void 0,m=void 0,w=void 0,C=void 0,T=void 0;(_||g)&&(T=t.getBoundingRect()),_&&(y=v?sn(e,l,T):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(m=v?sn(e,d,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),c&&(w=v||!t.__canvasFillPattern?fn(e,l,t):t.__canvasFillPattern,t.__canvasFillPattern=w),p&&(C=v||!t.__canvasStrokePattern?fn(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),_?e.fillStyle=y:c&&(w?e.fillStyle=w:o=!1),g?e.strokeStyle=m:p&&(C?e.strokeStyle=C:a=!1)}var b=t.getGlobalScale();u.setScale(b[0],b[1],t.segmentIgnoreThreshold);var M,L;e.setLineDash&&r.lineDash&&(n=Ao(t),M=n[0],L=n[1]);var P=!0;(h||v&Xr)&&(u.setDPR(e.dpr),f?u.setContext(null):(u.setContext(e),P=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),P&&u.rebuildPath(e,f?s:1),M&&(e.setLineDash(M),e.lineDashOffset=L),i||(r.strokeFirst?(a&&Ma(e,r),o&&Ca(e,r)):(o&&Ca(e,r),a&&Ma(e,r))),M&&e.setLineDash([])}function tu(e,t,r){var i=t.__image=po(r.image,t.__image,t,t.onload);if(!(!i||!ri(i))){var n=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),f=i.width/i.height;if(o==null&&s!=null?o=s*f:s==null&&o!=null?s=o/f:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var h=r.sx||0,u=r.sy||0;e.drawImage(i,h,u,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var h=r.sx,u=r.sy,v=o-h,l=s-u;e.drawImage(i,h,u,v,l,n,a,o,s)}else e.drawImage(i,n,a,o,s)}}function ru(e,t,r){var i,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||hr,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(i=Ao(t),a=i[0],o=i[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Ye(r)&&e.strokeText(n,r.x,r.y),Ge(r)&&e.fillText(n,r.x,r.y)):(Ge(r)&&e.fillText(n,r.x,r.y),Ye(r)&&e.strokeText(n,r.x,r.y)),a&&e.setLineDash([])}}var La=["shadowBlur","shadowOffsetX","shadowOffsetY"],Pa=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Eo(e,t,r,i,n){var a=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){it(e,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?fr.opacity:o}(i||t.blend!==r.blend)&&(a||(it(e,n),a=!0),e.globalCompositeOperation=t.blend||fr.blend);for(var s=0;s2&&i.push(n),n=[A,R]}function u(A,R,I,x){Lr(A,I)&&Lr(R,x)||n.push(A,R,I,x,I,x)}function v(A,R,I,x,B,k){var J=Math.abs(R-A),Z=Math.tan(J/4)*4/3,X=RM:S2&&i.push(n),i}function un(e,t,r,i,n,a,o,s,f,h){if(Lr(e,r)&&Lr(t,i)&&Lr(n,o)&&Lr(a,s)){f.push(o,s);return}var u=2/h,v=u*u,l=o-e,d=s-t,_=Math.sqrt(l*l+d*d);l/=_,d/=_;var g=r-e,c=i-t,p=n-o,y=a-s,m=g*g+c*c,w=p*p+y*y;if(m=0&&M=0){f.push(o,s);return}var L=[],P=[];kt(e,r,n,o,.5,L),kt(t,i,a,s,.5,P),un(L[0],P[0],L[1],P[1],L[2],P[2],L[3],P[3],f,h),un(L[4],P[4],L[5],P[5],L[6],P[6],L[7],P[7],f,h)}function fu(e,t){var r=hn(e),i=[];t=t||1;for(var n=0;n0)for(var h=0;hMath.abs(h),v=Fo([f,h],u?0:1,t),l=(u?s:h)/v.length,d=0;dn,o=Fo([i,n],a?0:1,t),s=a?"width":"height",f=a?"height":"width",h=a?"x":"y",u=a?"y":"x",v=e[s]/o.length,l=0;l1?null:new F(g*f+e,g*h+t)}function vu(e,t,r){var i=new F;F.sub(i,r,t),i.normalize();var n=new F;F.sub(n,e,t);var a=n.dot(i);return a}function yr(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function lu(e,t,r){for(var i=e.length,n=[],a=0;ao?(h.x=u.x=s+a/2,h.y=f,u.y=f+o):(h.y=u.y=f+o/2,h.x=s,u.x=s+a),lu(t,h,u)}function Xe(e,t,r,i){if(r===1)i.push(t);else{var n=Math.floor(r/2),a=e(t);Xe(e,a[0],n,i),Xe(e,a[1],r-n,i)}return i}function du(e,t){for(var r=[],i=0;i0;h/=2){var u=0,v=0;(e&h)>0&&(u=1),(t&h)>0&&(v=1),s+=h*h*(3*u^v),v===0&&(u===1&&(e=h-1-e,t=h-1-t),f=e,e=t,t=f)}return s}function Ze(e){var t=1/0,r=1/0,i=-1/0,n=-1/0,a=St(e,function(s){var f=s.getBoundingRect(),h=s.getComputedTransform(),u=f.x+f.width/2+(h?h[4]:0),v=f.y+f.height/2+(h?h[5]:0);return t=Math.min(u,t),r=Math.min(v,r),i=Math.max(u,i),n=Math.max(v,n),[u,v]}),o=St(a,function(s,f){return{cp:s,z:bu(s[0],s[1],t,r,i,n),path:e[f]}});return o.sort(function(s,f){return s.z-f.z}).map(function(s){return s.path})}function zo(e){return _u(e.path,e.count)}function ln(){return{fromIndividuals:[],toIndividuals:[],count:0}}function ju(e,t,r){var i=[];function n(C){for(var T=0;T=s)}}for(var v=this.__startIndex;v15)break}}R.prevElClipPaths&&p.restore()};if(y)if(y.length===0)M=c.__endIndex;else for(var P=d.dpr,S=0;S0&&t>n[0]){for(f=0;ft);f++);s=i[n[f]]}if(n.splice(f+1,0,t),i[t]=r,!r.virtual)if(s){var h=s.dom;h.nextSibling?o.insertBefore(r.dom,h.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var i=this._zlevelList,n=0;n0?Se:0),this._needsManuallyCompositing),u.__builtin__||_n("ZLevel "+h+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==f&&(u.__dirty=!0),u.__startIndex=f,u.incremental?u.__drawIndex=-1:u.__drawIndex=f,r(f),a=u),n.__dirty&Lt&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=f))}r(f),this.eachBuiltinLayer(function(v,l){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,st(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var i=this._layerConfig;i[t]?Yr(i[t],r,!0):i[t]=r;for(var n=0;n { __defProp(target, name, { get: all[name], enumerable: true }); }; -// mock-data-1736943503195.js +// mock-data-1737254364680.js import { transformMockData, transformRawData } from "vite-plugin-mock-dev-server/server"; // mock/demo/person.mock.ts @@ -85,7 +85,7 @@ var getPersonList = defineMock({ } }); -// mock-data-1736943503195.js +// mock-data-1737254364680.js var exporters = [ [person_mock_exports, "mock/demo/person.mock.ts"] ]; @@ -93,7 +93,7 @@ var mockList = exporters.map(([mod, filepath]) => { const raw = mod.default || mod; return transformRawData(raw, filepath); }); -var mock_data_1736943503195_default = transformMockData(mockList); +var mock_data_1737254364680_default = transformMockData(mockList); export { - mock_data_1736943503195_default as default + mock_data_1737254364680_default as default }; diff --git a/mockServer/mock-data.js.gz b/mockServer/mock-data.js.gz index 51166134..ad7629b0 100644 Binary files a/mockServer/mock-data.js.gz and b/mockServer/mock-data.js.gz differ