@ecan-bi/datav 1.3.60 → 1.3.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +274 -273
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +9 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.3.
|
|
2
|
-
(function($,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],t):($=typeof globalThis<"u"?globalThis:$||self,t($["@ecan/bi-datav"]={},$.Vue,$["echarts/core"],$.ResizeDetector,$.AntDesignVue,null,null,$.LodashEs,$.Dayjs,$.Axios,$.Mitt,null,null,null,$["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,$["echarts/renderers"],$["echarts/charts"],$["echarts/components"],null,$.Echarts,null,null,$.Xlsx,$.big.js))})(this,function($,t,it,Xa,he,Ku,Zu,Oe,be,ss,cs,Qu,Ju,Xu,ei,eh,th,nh,oh,Ft,Ct,De,ah,ds,ih,rh,on,fs){var as,is,rs,ls;"use strict";function us(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const hs=us(ds),gs=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function ms(e,o){function n(i){return(...r)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[i].apply(e.value,r)}}function a(){const i=Object.create(null);return gs.forEach(r=>{i[r]=n(r)}),i}return a()}function ys(e,o,n){let a=null;t.watch([n,e,o],([i,r,s],l,d)=>{i&&r&&s&&(a=it.throttle(()=>{r.resize()},100),Xa.addListener(i,a)),d(()=>{a&&i&&Xa.removeListener(i,a)})})}const xs={autoresize:Boolean},ps="ecLoadingOptions";function bs(e,o,n){const a=t.inject(ps,{}),i=t.computed(()=>({...t.unref(a),...n==null?void 0:n.value}));t.watchEffect(()=>{const r=e.value;r&&(o.value?r.showLoading(i.value):r.hideLoading())})}const vs={loading:Boolean,loadingOptions:Object},lh="",Ss=/^on[^a-z]/,Cs=e=>Ss.test(e);function ws(e){const o={};for(const n in e)Cs(n)||(o[n]=e[n]);return o}const As="x-vue-echarts",ks="ecTheme",Ts="ecInitOptions",Bs="ecUpdateOptions",Tt=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...xs,...vs},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),i=t.shallowRef(),r=t.shallowRef(),s=t.inject(ks,null),l=t.inject(Ts,null),d=t.inject(Bs,null),{autoresize:c,manualUpdate:f,loading:x,loadingOptions:u}=t.toRefs(e),m=t.computed(()=>r.value||e.option||Object.create(null)),y=t.computed(()=>e.theme||t.unref(s)||{}),h=t.computed(()=>e.initOptions||t.unref(l)||{}),A=t.computed(()=>e.updateOptions||t.unref(d)||{}),I=t.computed(()=>ws(o));function v(R){if(i.value||!a.value)return;const p=i.value=it.init(a.value,y.value,h.value);e.group&&(p.group=e.group);let D=n;D||(D={},Object.keys(o).filter(M=>M.indexOf("on")===0&&M.length>2).forEach(M=>{const k=M.charAt(2).toLowerCase()+M.slice(3);D[k]=o[M]})),Object.keys(D).forEach(M=>{const k=D[M];k&&(M.indexOf("zr:")===0?p.getZr().on(M.slice(3).toLowerCase(),k):p.on(M.toLowerCase(),k))});function w(){if(p&&!p.isDisposed())try{p.resize()}catch(M){if(M.message==="Cannot read property 'get' of undefined")return;throw M}}function L(){p.setOption(R||m.value,A.value)}c.value?t.nextTick(()=>{w(),L()}):L()}function S(R,p){e.manualUpdate&&(r.value=R),i.value?i.value.setOption(R,p||{}):v(R)}function C(){i.value&&(i.value.dispose(),i.value=void 0)}let B=null;t.watch(f,R=>{typeof B=="function"&&(B(),B=null),R||(B=t.watch(()=>e.option,p=>{p&&(i.value?i.value.setOption(p,A.value):v())},{deep:!0}))},{immediate:!0}),t.watch([y,h],()=>{C(),v()},{deep:!0}),t.watchEffect(()=>{e.group&&i.value&&(i.value.group=e.group)});const g=ms(i,v);return bs(i,x,u),ys(i,c,a),t.onMounted(()=>{e.option&&v()}),t.onUnmounted(C),{chart:i,root:a,setOption:S,nonEventAttrs:I,...g}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(As,e)}});function ft(e,o){Es(e)&&(e="100%");var n=Ds(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*o),10)/100),Math.abs(e-o)<1e-6?1:(o===360?e=(e<0?e%o+o:e%o)/parseFloat(String(o)):e=e%o/parseFloat(String(o)),e)}function Es(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ds(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Is(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function mn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Rn(e){return e.length===1?"0"+e:String(e)}function Rs(e,o,n){return{r:ft(e,255)*255,g:ft(o,255)*255,b:ft(n,255)*255}}function Ln(e,o,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(o-e)*(6*n):n<1/2?o:n<2/3?e+(o-e)*(2/3-n)*6:e}function Ls(e,o,n){var a,i,r;if(e=ft(e,360),o=ft(o,100),n=ft(n,100),o===0)i=n,r=n,a=n;else{var s=n<.5?n*(1+o):n+o-n*o,l=2*n-s;a=Ln(l,s,e+1/3),i=Ln(l,s,e),r=Ln(l,s,e-1/3)}return{r:a*255,g:i*255,b:r*255}}function Ns(e,o,n){e=ft(e,255),o=ft(o,255),n=ft(n,255);var a=Math.max(e,o,n),i=Math.min(e,o,n),r=0,s=a,l=a-i,d=a===0?0:l/a;if(a===i)r=0;else{switch(a){case e:r=(o-n)/l+(o<n?6:0);break;case o:r=(n-e)/l+2;break;case n:r=(e-o)/l+4;break}r/=6}return{h:r,s:d,v:s}}function _s(e,o,n){e=ft(e,360)*6,o=ft(o,100),n=ft(n,100);var a=Math.floor(e),i=e-a,r=n*(1-o),s=n*(1-i*o),l=n*(1-(1-i)*o),d=a%6,c=[n,s,r,r,l,n][d],f=[l,n,n,s,r,r][d],x=[r,r,l,n,n,s][d];return{r:c*255,g:f*255,b:x*255}}function Os(e,o,n,a){var i=[Rn(Math.round(e).toString(16)),Rn(Math.round(o).toString(16)),Rn(Math.round(n).toString(16))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function ti(e){return rt(e)/255}function rt(e){return parseInt(e,16)}var ni={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function an(e){var o={r:0,g:0,b:0},n=1,a=null,i=null,r=null,s=!1,l=!1;return typeof e=="string"&&(e=zs(e)),typeof e=="object"&&(wt(e.r)&&wt(e.g)&&wt(e.b)?(o=Rs(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):wt(e.h)&&wt(e.s)&&wt(e.v)?(a=mn(e.s),i=mn(e.v),o=_s(e.h,a,i),s=!0,l="hsv"):wt(e.h)&&wt(e.s)&&wt(e.l)&&(a=mn(e.s),r=mn(e.l),o=Ls(e.h,a,r),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Is(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:n}}var Fs="[-\\+]?\\d+%?",Ms="[-\\+]?\\d*\\.\\d+%?",Bt="(?:".concat(Ms,")|(?:").concat(Fs,")"),Nn="[\\s|\\(]+(".concat(Bt,")[,|\\s]+(").concat(Bt,")[,|\\s]+(").concat(Bt,")\\s*\\)?"),_n="[\\s|\\(]+(".concat(Bt,")[,|\\s]+(").concat(Bt,")[,|\\s]+(").concat(Bt,")[,|\\s]+(").concat(Bt,")\\s*\\)?"),yt={CSS_UNIT:new RegExp(Bt),rgb:new RegExp("rgb"+Nn),rgba:new RegExp("rgba"+_n),hsl:new RegExp("hsl"+Nn),hsla:new RegExp("hsla"+_n),hsv:new RegExp("hsv"+Nn),hsva:new RegExp("hsva"+_n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function zs(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(ni[e])e=ni[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=yt.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=yt.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=yt.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=yt.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=yt.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=yt.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=yt.hex8.exec(e),n?{r:rt(n[1]),g:rt(n[2]),b:rt(n[3]),a:ti(n[4]),format:o?"name":"hex8"}:(n=yt.hex6.exec(e),n?{r:rt(n[1]),g:rt(n[2]),b:rt(n[3]),format:o?"name":"hex"}:(n=yt.hex4.exec(e),n?{r:rt(n[1]+n[1]),g:rt(n[2]+n[2]),b:rt(n[3]+n[3]),a:ti(n[4]+n[4]),format:o?"name":"hex8"}:(n=yt.hex3.exec(e),n?{r:rt(n[1]+n[1]),g:rt(n[2]+n[2]),b:rt(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function wt(e){return!!yt.CSS_UNIT.exec(String(e))}var yn=2,oi=.16,Ps=.05,qs=.05,Vs=.15,ai=5,ii=4,Hs=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function ri(e){var o=e.r,n=e.g,a=e.b,i=Ns(o,n,a);return{h:i.h*360,s:i.s,v:i.v}}function xn(e){var o=e.r,n=e.g,a=e.b;return"#".concat(Os(o,n,a,!1))}function js(e,o,n){var a=n/100,i={r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b};return i}function li(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-yn*o:Math.round(e.h)+yn*o:a=n?Math.round(e.h)+yn*o:Math.round(e.h)-yn*o,a<0?a+=360:a>=360&&(a-=360),a}function si(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-oi*o:o===ii?a=e.s+oi:a=e.s+Ps*o,a>1&&(a=1),n&&o===ai&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function ci(e,o,n){var a;return n?a=e.v+qs*o:a=e.v-Vs*o,a>1&&(a=1),Number(a.toFixed(2))}function On(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=an(e),i=ai;i>0;i-=1){var r=ri(a),s=xn(an({h:li(r,i,!0),s:si(r,i,!0),v:ci(r,i,!0)}));n.push(s)}n.push(xn(a));for(var l=1;l<=ii;l+=1){var d=ri(a),c=xn(an({h:li(d,l),s:si(d,l),v:ci(d,l)}));n.push(c)}return o.theme==="dark"?Hs.map(function(f){var x=f.index,u=f.opacity,m=xn(js(an(o.backgroundColor||"#141414"),an(n[x]),u*100));return m}):n}var Fn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Mn={},zn={};Object.keys(Fn).forEach(function(e){Mn[e]=On(Fn[e]),Mn[e].primary=Mn[e][5],zn[e]=On(Fn[e],{theme:"dark",backgroundColor:"#141414"}),zn[e].primary=zn[e][5]});var di=[],rn=[],Ws="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Gs(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Us(e,o){if(o=o||{},e===void 0)throw new Error(Ws);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),i=di.indexOf(a);i===-1&&(i=di.push(a)-1,rn[i]={});var r;return rn[i]!==void 0&&rn[i][n]!==void 0?r=rn[i][n]:(r=rn[i][n]=Gs(),n==="prepend"?a.insertBefore(r,a.childNodes[0]):a.appendChild(r)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),r.styleSheet?r.styleSheet.cssText+=e:r.textContent+=e,r}function fi(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){$s(e,i,n[i])})}return e}function $s(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function Ys(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function Ks(e,o){Ys(e,"[@ant-design/icons-vue] ".concat(o))}function ui(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Pn(e,o,n){return n?t.h(e.tag,fi({key:o},n,e.attrs),(e.children||[]).map(function(a,i){return Pn(a,"".concat(o,"-").concat(e.tag,"-").concat(i))})):t.h(e.tag,fi({key:o},e.attrs),(e.children||[]).map(function(a,i){return Pn(a,"".concat(o,"-").concat(e.tag,"-").concat(i))}))}function hi(e){return On(e)[0]}function gi(e){return e?Array.isArray(e)?e:[e]:[]}var Zs=`
|
|
1
|
+
/*! @ecan-bi/datav@1.3.61 */
|
|
2
|
+
(function($,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],t):($=typeof globalThis<"u"?globalThis:$||self,t($["@ecan/bi-datav"]={},$.Vue,$["echarts/core"],$.ResizeDetector,$.AntDesignVue,null,null,$.LodashEs,$.Dayjs,$.Axios,$.Mitt,null,null,null,$["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,$["echarts/renderers"],$["echarts/charts"],$["echarts/components"],null,$.Echarts,null,null,$.Xlsx,$.big.js))})(this,function($,t,it,Xa,he,Ku,Zu,Oe,be,ss,cs,Qu,Ju,Xu,ei,eh,th,nh,oh,Ft,Ct,De,ah,ds,ih,rh,on,fs){var as,is,rs,ls;"use strict";function us(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const hs=us(ds),gs=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function ms(e,o){function n(i){return(...r)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[i].apply(e.value,r)}}function a(){const i=Object.create(null);return gs.forEach(r=>{i[r]=n(r)}),i}return a()}function ys(e,o,n){let a=null;t.watch([n,e,o],([i,r,s],l,d)=>{i&&r&&s&&(a=it.throttle(()=>{r.resize()},100),Xa.addListener(i,a)),d(()=>{a&&i&&Xa.removeListener(i,a)})})}const xs={autoresize:Boolean},ps="ecLoadingOptions";function bs(e,o,n){const a=t.inject(ps,{}),i=t.computed(()=>({...t.unref(a),...n==null?void 0:n.value}));t.watchEffect(()=>{const r=e.value;r&&(o.value?r.showLoading(i.value):r.hideLoading())})}const vs={loading:Boolean,loadingOptions:Object},lh="",Ss=/^on[^a-z]/,Cs=e=>Ss.test(e);function ws(e){const o={};for(const n in e)Cs(n)||(o[n]=e[n]);return o}const As="x-vue-echarts",ks="ecTheme",Ts="ecInitOptions",Bs="ecUpdateOptions",Tt=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...xs,...vs},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),i=t.shallowRef(),r=t.shallowRef(),s=t.inject(ks,null),l=t.inject(Ts,null),d=t.inject(Bs,null),{autoresize:c,manualUpdate:f,loading:x,loadingOptions:u}=t.toRefs(e),m=t.computed(()=>r.value||e.option||Object.create(null)),y=t.computed(()=>e.theme||t.unref(s)||{}),h=t.computed(()=>e.initOptions||t.unref(l)||{}),A=t.computed(()=>e.updateOptions||t.unref(d)||{}),I=t.computed(()=>ws(o));function v(R){if(i.value||!a.value)return;const p=i.value=it.init(a.value,y.value,h.value);e.group&&(p.group=e.group);let D=n;D||(D={},Object.keys(o).filter(M=>M.indexOf("on")===0&&M.length>2).forEach(M=>{const k=M.charAt(2).toLowerCase()+M.slice(3);D[k]=o[M]})),Object.keys(D).forEach(M=>{const k=D[M];k&&(M.indexOf("zr:")===0?p.getZr().on(M.slice(3).toLowerCase(),k):p.on(M.toLowerCase(),k))});function w(){if(p&&!p.isDisposed())try{p.resize()}catch(M){if(M.message==="Cannot read property 'get' of undefined")return;throw M}}function L(){p.setOption(R||m.value,A.value)}c.value?t.nextTick(()=>{w(),L()}):L()}function S(R,p){e.manualUpdate&&(r.value=R),i.value?i.value.setOption(R,p||{}):v(R)}function C(){i.value&&(i.value.dispose(),i.value=void 0)}let B=null;t.watch(f,R=>{typeof B=="function"&&(B(),B=null),R||(B=t.watch(()=>e.option,p=>{p&&(i.value?i.value.setOption(p,A.value):v())},{deep:!0}))},{immediate:!0}),t.watch([y,h],()=>{C(),v()},{deep:!0}),t.watchEffect(()=>{e.group&&i.value&&(i.value.group=e.group)});const g=ms(i,v);return bs(i,x,u),ys(i,c,a),t.onMounted(()=>{e.option&&v()}),t.onUnmounted(C),{chart:i,root:a,setOption:S,nonEventAttrs:I,...g}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(As,e)}});function ut(e,o){Es(e)&&(e="100%");var n=Ds(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*o),10)/100),Math.abs(e-o)<1e-6?1:(o===360?e=(e<0?e%o+o:e%o)/parseFloat(String(o)):e=e%o/parseFloat(String(o)),e)}function Es(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ds(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Is(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function mn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Rn(e){return e.length===1?"0"+e:String(e)}function Rs(e,o,n){return{r:ut(e,255)*255,g:ut(o,255)*255,b:ut(n,255)*255}}function Ln(e,o,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(o-e)*(6*n):n<1/2?o:n<2/3?e+(o-e)*(2/3-n)*6:e}function Ls(e,o,n){var a,i,r;if(e=ut(e,360),o=ut(o,100),n=ut(n,100),o===0)i=n,r=n,a=n;else{var s=n<.5?n*(1+o):n+o-n*o,l=2*n-s;a=Ln(l,s,e+1/3),i=Ln(l,s,e),r=Ln(l,s,e-1/3)}return{r:a*255,g:i*255,b:r*255}}function Ns(e,o,n){e=ut(e,255),o=ut(o,255),n=ut(n,255);var a=Math.max(e,o,n),i=Math.min(e,o,n),r=0,s=a,l=a-i,d=a===0?0:l/a;if(a===i)r=0;else{switch(a){case e:r=(o-n)/l+(o<n?6:0);break;case o:r=(n-e)/l+2;break;case n:r=(e-o)/l+4;break}r/=6}return{h:r,s:d,v:s}}function _s(e,o,n){e=ut(e,360)*6,o=ut(o,100),n=ut(n,100);var a=Math.floor(e),i=e-a,r=n*(1-o),s=n*(1-i*o),l=n*(1-(1-i)*o),d=a%6,c=[n,s,r,r,l,n][d],f=[l,n,n,s,r,r][d],x=[r,r,l,n,n,s][d];return{r:c*255,g:f*255,b:x*255}}function Os(e,o,n,a){var i=[Rn(Math.round(e).toString(16)),Rn(Math.round(o).toString(16)),Rn(Math.round(n).toString(16))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function ti(e){return rt(e)/255}function rt(e){return parseInt(e,16)}var ni={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function an(e){var o={r:0,g:0,b:0},n=1,a=null,i=null,r=null,s=!1,l=!1;return typeof e=="string"&&(e=zs(e)),typeof e=="object"&&(wt(e.r)&&wt(e.g)&&wt(e.b)?(o=Rs(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):wt(e.h)&&wt(e.s)&&wt(e.v)?(a=mn(e.s),i=mn(e.v),o=_s(e.h,a,i),s=!0,l="hsv"):wt(e.h)&&wt(e.s)&&wt(e.l)&&(a=mn(e.s),r=mn(e.l),o=Ls(e.h,a,r),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Is(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:n}}var Fs="[-\\+]?\\d+%?",Ms="[-\\+]?\\d*\\.\\d+%?",Bt="(?:".concat(Ms,")|(?:").concat(Fs,")"),Nn="[\\s|\\(]+(".concat(Bt,")[,|\\s]+(").concat(Bt,")[,|\\s]+(").concat(Bt,")\\s*\\)?"),_n="[\\s|\\(]+(".concat(Bt,")[,|\\s]+(").concat(Bt,")[,|\\s]+(").concat(Bt,")[,|\\s]+(").concat(Bt,")\\s*\\)?"),yt={CSS_UNIT:new RegExp(Bt),rgb:new RegExp("rgb"+Nn),rgba:new RegExp("rgba"+_n),hsl:new RegExp("hsl"+Nn),hsla:new RegExp("hsla"+_n),hsv:new RegExp("hsv"+Nn),hsva:new RegExp("hsva"+_n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function zs(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(ni[e])e=ni[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=yt.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=yt.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=yt.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=yt.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=yt.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=yt.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=yt.hex8.exec(e),n?{r:rt(n[1]),g:rt(n[2]),b:rt(n[3]),a:ti(n[4]),format:o?"name":"hex8"}:(n=yt.hex6.exec(e),n?{r:rt(n[1]),g:rt(n[2]),b:rt(n[3]),format:o?"name":"hex"}:(n=yt.hex4.exec(e),n?{r:rt(n[1]+n[1]),g:rt(n[2]+n[2]),b:rt(n[3]+n[3]),a:ti(n[4]+n[4]),format:o?"name":"hex8"}:(n=yt.hex3.exec(e),n?{r:rt(n[1]+n[1]),g:rt(n[2]+n[2]),b:rt(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function wt(e){return!!yt.CSS_UNIT.exec(String(e))}var yn=2,oi=.16,Ps=.05,qs=.05,Vs=.15,ai=5,ii=4,Hs=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function ri(e){var o=e.r,n=e.g,a=e.b,i=Ns(o,n,a);return{h:i.h*360,s:i.s,v:i.v}}function xn(e){var o=e.r,n=e.g,a=e.b;return"#".concat(Os(o,n,a,!1))}function js(e,o,n){var a=n/100,i={r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b};return i}function li(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-yn*o:Math.round(e.h)+yn*o:a=n?Math.round(e.h)+yn*o:Math.round(e.h)-yn*o,a<0?a+=360:a>=360&&(a-=360),a}function si(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-oi*o:o===ii?a=e.s+oi:a=e.s+Ps*o,a>1&&(a=1),n&&o===ai&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function ci(e,o,n){var a;return n?a=e.v+qs*o:a=e.v-Vs*o,a>1&&(a=1),Number(a.toFixed(2))}function On(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=an(e),i=ai;i>0;i-=1){var r=ri(a),s=xn(an({h:li(r,i,!0),s:si(r,i,!0),v:ci(r,i,!0)}));n.push(s)}n.push(xn(a));for(var l=1;l<=ii;l+=1){var d=ri(a),c=xn(an({h:li(d,l),s:si(d,l),v:ci(d,l)}));n.push(c)}return o.theme==="dark"?Hs.map(function(f){var x=f.index,u=f.opacity,m=xn(js(an(o.backgroundColor||"#141414"),an(n[x]),u*100));return m}):n}var Fn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Mn={},zn={};Object.keys(Fn).forEach(function(e){Mn[e]=On(Fn[e]),Mn[e].primary=Mn[e][5],zn[e]=On(Fn[e],{theme:"dark",backgroundColor:"#141414"}),zn[e].primary=zn[e][5]});var di=[],rn=[],Ws="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Gs(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Us(e,o){if(o=o||{},e===void 0)throw new Error(Ws);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),i=di.indexOf(a);i===-1&&(i=di.push(a)-1,rn[i]={});var r;return rn[i]!==void 0&&rn[i][n]!==void 0?r=rn[i][n]:(r=rn[i][n]=Gs(),n==="prepend"?a.insertBefore(r,a.childNodes[0]):a.appendChild(r)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),r.styleSheet?r.styleSheet.cssText+=e:r.textContent+=e,r}function fi(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){$s(e,i,n[i])})}return e}function $s(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function Ys(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function Ks(e,o){Ys(e,"[@ant-design/icons-vue] ".concat(o))}function ui(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Pn(e,o,n){return n?t.h(e.tag,fi({key:o},n,e.attrs),(e.children||[]).map(function(a,i){return Pn(a,"".concat(o,"-").concat(e.tag,"-").concat(i))})):t.h(e.tag,fi({key:o},e.attrs),(e.children||[]).map(function(a,i){return Pn(a,"".concat(o,"-").concat(e.tag,"-").concat(i))}))}function hi(e){return On(e)[0]}function gi(e){return e?Array.isArray(e)?e:[e]:[]}var Zs=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
5
5
|
color: inherit;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
`,mi=!1,Qs=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zs;t.nextTick(function(){mi||(typeof window<"u"&&window.document&&window.document.documentElement&&Us(o,{prepend:!0}),mi=!0)})},Js=["icon","primaryColor","secondaryColor"];function Xs(e,o){if(e==null)return{};var n=e0(e,o),a,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)a=r[i],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function e0(e,o){if(e==null)return{};var n={},a=Object.keys(e),i,r;for(r=0;r<a.length;r++)i=a[r],!(o.indexOf(i)>=0)&&(n[i]=e[i]);return n}function pn(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){t0(e,i,n[i])})}return e}function t0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var ln={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function n0(e){var o=e.primaryColor,n=e.secondaryColor;ln.primaryColor=o,ln.secondaryColor=n||hi(o),ln.calculated=!!n}function o0(){return pn({},ln)}var Vt=function(o,n){var a=pn({},o,n.attrs),i=a.icon,r=a.primaryColor,s=a.secondaryColor,l=Xs(a,Js),d=ln;if(r&&(d={primaryColor:r,secondaryColor:s||hi(r)}),Qs(),Ks(ui(i),"icon should be icon definiton, but got ".concat(i)),!ui(i))return null;var c=i;return c&&typeof c.icon=="function"&&(c=pn({},c,{icon:c.icon(d.primaryColor,d.secondaryColor)})),Pn(c.icon,"svg-".concat(c.name),pn({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Vt.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Vt.inheritAttrs=!1,Vt.displayName="IconBase",Vt.getTwoToneColors=o0,Vt.setTwoToneColors=n0;const qn=Vt;function a0(e,o){return s0(e)||l0(e,o)||r0(e,o)||i0()}function i0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
57
57
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r0(e,o){if(e){if(typeof e=="string")return yi(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yi(e,o)}}function yi(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function l0(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],i=!0,r=!1,s,l;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));i=!0);}catch(d){r=!0,l=d}finally{try{!i&&n.return!=null&&n.return()}finally{if(r)throw l}}return a}}function s0(e){if(Array.isArray(e))return e}function xi(e){var o=gi(e),n=a0(o,2),a=n[0],i=n[1];return qn.setTwoToneColors({primaryColor:a,secondaryColor:i})}function c0(){var e=qn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var d0=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function f0(e,o){return m0(e)||g0(e,o)||h0(e,o)||u0()}function u0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h0(e,o){if(e){if(typeof e=="string")return pi(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pi(e,o)}}function pi(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function g0(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],i=!0,r=!1,s,l;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));i=!0);}catch(d){r=!0,l=d}finally{try{!i&&n.return!=null&&n.return()}finally{if(r)throw l}}return a}}function m0(e){if(Array.isArray(e))return e}function bi(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Vn(e,i,n[i])})}return e}function Vn(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function y0(e,o){if(e==null)return{};var n=x0(e,o),a,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)a=r[i],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function x0(e,o){if(e==null)return{};var n={},a=Object.keys(e),i,r;for(r=0;r<a.length;r++)i=a[r],!(o.indexOf(i)>=0)&&(n[i]=e[i]);return n}xi("#1890ff");var Ht=function(o,n){var a,i=bi({},o,n.attrs),r=i.class,s=i.icon,l=i.spin,d=i.rotate,c=i.tabindex,f=i.twoToneColor,x=i.onClick,u=y0(i,d0),m=(a={anticon:!0},Vn(a,"anticon-".concat(s.name),!!s.name),Vn(a,r,r),a),y=l===""||l||s.name==="loading"?"anticon-spin":"",h=c;h===void 0&&x&&(h=-1,u.tabindex=h);var A=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,I=gi(f),v=f0(I,2),S=v[0],C=v[1];return t.createVNode("span",bi({role:"img","aria-label":s.name},u,{onClick:x,class:m}),[t.createVNode(qn,{class:y,icon:s,primaryColor:S,secondaryColor:C,style:A},null)])};Ht.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Ht.displayName="AntdIcon",Ht.inheritAttrs=!1,Ht.getTwoToneColor=c0,Ht.setTwoToneColor=xi;const vi=Ht;var p0={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const b0=p0;function Si(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){v0(e,i,n[i])})}return e}function v0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Hn=function(o,n){var a=Si({},o,n.attrs);return t.createVNode(vi,Si({},a,{icon:b0}),null)};Hn.displayName="CloseOutlined",Hn.inheritAttrs=!1;const S0=Hn;var C0={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const w0=C0;function Ci(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){A0(e,i,n[i])})}return e}function A0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var jn=function(o,n){var a=Ci({},o,n.attrs);return t.createVNode(vi,Ci({},a,{icon:w0}),null)};jn.displayName="LoadingOutlined",jn.inheritAttrs=!1;const k0=jn,T0=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:he.Spin},setup(){return{indicator:t.h(k0,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),sh="",ve=(e,o)=>{const n=e.__vccOpts||e;for(const[a,i]of o)n[a]=i;return n},B0={class:"spin-wrapper"};function E0(e,o,n,a,i,r){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",B0,[e.spinning?(t.openBlock(),t.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):t.renderSlot(e.$slots,"default",{key:1})])}const jt=ve(T0,[["render",E0]]),D0=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:he.Skeleton}});function I0(e,o,n,a,i,r){const s=t.resolveComponent("a-skeleton");return t.openBlock(),t.createBlock(s,{active:"",loading:e.loading},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const Wt=ve(D0,[["render",I0]]);(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();var R0=Object.defineProperty,wi=Object.getOwnPropertySymbols,L0=Object.prototype.hasOwnProperty,N0=Object.prototype.propertyIsEnumerable,Ai=(e,o,n)=>o in e?R0(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,ki=(e,o)=>{for(var n in o||(o={}))L0.call(o,n)&&Ai(e,n,o[n]);if(wi)for(var n of wi(o))N0.call(o,n)&&Ai(e,n,o[n]);return e},_0=(e,o)=>{const n=e.__vccOpts||e;for(const[a,i]of o)n[a]=i;return n};const O0=t.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(e,{emit:o}){const n=t.ref(0),a=t.ref("100%"),i=t.ref("100%"),r=t.ref(0),s=t.ref(!1),l=t.ref(!1),d=t.ref(0),c=t.ref(0),f=t.ref(0),x=t.ref(0),u=t.ref(!1),m=t.ref(!1),y=t.ref(0),h=t.ref(null),A=t.ref("200px"),I=t.ref(!1),v=t.ref(null),S=t.ref(null),C=async()=>{await B(),r.value++},B=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",i.value="0%",v.value!==null&&S.value!==null&&v.value&&S.value)if(e.vertical&&"clientHeight"in v.value&&"clientHeight"in S.value){x.value=v.value.clientHeight,f.value=S.value.clientHeight;const F=Math.ceil(f.value/x.value);return n.value=isFinite(F)?F:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in v.value&&"clientWidth"in S.value){if(c.value=v.value.clientWidth,d.value=S.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const F=Math.ceil(d.value/c.value);return n.value=isFinite(F)?F:0,n.value}else return a.value="100%",i.value="100%",0;else return a.value="100%",i.value="100%",0},100)};t.watch(c,async()=>{e.clone&&C()}),t.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&C()}),t.watch(()=>e.pause,(F,b)=>{F!==b&&o(F?"onResume":"onPause")});const g=()=>{e.pauseOnHover&&(o("onPause"),u.value=!0)},R=()=>{e.pauseOnHover&&(o("onResume"),u.value=!1)},p=()=>{e.pauseOnClick&&(o("onPause"),m.value=!0)},D=()=>{e.pauseOnClick&&(o("onResume"),m.value=!1)},w=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),L=t.computed(()=>e.pauseOnHover&&(u.value||m.value)||!e.pauseOnHover&&w.value==="paused"?"paused":"running"),M=t.computed(()=>e.pauseOnHover&&u.value||e.pauseOnClick&&m.value||!e.pauseOnHover&&w.value==="paused"?"paused":"running"),k=t.computed(()=>{const F={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${L.value}`,"--pauseOnClick":`${M.value}`,"--pauseAnimation":`${w.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${A.value}`,"--min-width":`${a.value}`,"--min-height":`${i.value}`},b={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(b["--orientation"]="scrollY"),ki(ki({},F),b)}),O=t.computed(()=>!!e.gradient),T=async()=>{e.vertical?(i.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(i.value="auto",e.animateOnOverflowOnly?a.value="auto":a.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),A.value=e.gradientWidth):e.gradientLength&&(A.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await B(),C()),I.value=!0};return t.onMounted(async()=>{T(),h.value=setInterval(()=>{y.value++,e.loop!==0&&y.value===e.loop&&(o("onComplete"),clearInterval(h.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(h.value)}),{ready:I,contentWidth:c,containerWidth:d,contentHeight:x,containerHeight:f,loopCounter:y,loopInterval:h,mouseOverMarquee:u,mouseDownMarquee:m,minWidth:a,minHeight:i,animateOnOverflowPause:l,marqueeContent:v,marqueeOverlayContainer:S,componentKey:r,showGradient:O,cloneAmount:n,ForcesUpdate:C,checkForClone:B,setupMarquee:T,getCurrentStyle:k,hoverStarted:g,hoverEnded:R,mouseDown:p,mouseUp:D}}}),F0={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},M0={class:"marquee",ref:"marqueeContent"},z0={key:1,"aria-hidden":!0,class:"marquee"};function P0(e,o,n,a,i,r){return e.ready?(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:t.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:o[0]||(o[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:o[1]||(o[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:o[2]||(o[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:o[3]||(o[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[t.createElementVNode("div",F0,null,512),e.showGradient?(t.openBlock(),t.createElementBlock("div",{key:0,"aria-hidden":!0,class:t.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",M0,[t.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(t.openBlock(),t.createElementBlock("div",z0,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.cloneAmount,s=>(t.openBlock(),t.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[t.renderSlot(e.$slots,"default")]))),128))],38)):t.createCommentVNode("",!0)}var q0=_0(O0,[["render",P0]]);const V0=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:q0},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},vertical:{type:Boolean,default:!0},step:{type:Number,default:1},wrapStyle:{type:Object,default:()=>({})},marqueeStyle:{type:Object,default:()=>({})}},setup(e){return{isAutoScroll:t.ref(e.visible)}}}),ch="";function H0(e,o,n,a,i,r){const s=t.resolveComponent("Vue3Marquee");return e.isAutoScroll?(t.openBlock(),t.createBlock(s,{key:0,class:"vue-marquee",style:t.normalizeStyle({...e.marqueeStyle,width:"100%"}),duration:e.step,vertical:e.vertical,pauseOnHover:!0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["style","duration","vertical"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"list-wrap",style:t.normalizeStyle(e.wrapStyle)},[t.renderSlot(e.$slots,"default")],4))}const Wn=ve(V0,[["render",H0]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Ae=(e,o)=>{if(e.install=n=>{for(const a of[e,...Object.values(o??{})])n.component(a.name,a)},o)for(const[n,a]of Object.entries(o))e[n]=a;return e},Re={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1},Te=e=>{const o={};if(typeof e=="object"&&e!=null)for(const n in e){const a=e[n];o[n]={type:a==null?void 0:a.constructor,default:a}}return o},Gn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},Un=Te(Gn),j0=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex","scale"],Ie=(e,o=[])=>{const n=Oe.without(j0,...o);return t.computed(()=>Oe.pick(e,n))},$n="EVENT_BUS",ze="GLOBAL_CONFIG",Le="GLOBAL_MODEL",He="REQUEST_MODEL",Ti="GLOBAL_TOKEN",sn="REFRESH_PAGE",Bi="MODAL_MODEL",Et="LOADED_DATA",Qe=18,Ei="ygt",Di=((as=window==null?void 0:window.config)==null?void 0:as.indicatorURL)||"";(is=window==null?void 0:window.config)!=null&&is.uploadPath;const Ii=((rs=window==null?void 0:window.config)==null?void 0:rs.routerBaseURL)||"./",W0=((ls=window==null?void 0:window.config)==null?void 0:ls.erdURL)||"",Ri=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],Fe=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject($n,{onEvent:(i,r)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},Ne=e=>{const o=e.events,n=e.id,a=t.inject($n,{emitEvent:(r,s,l)=>{}}),{touchEventId:i}=t.inject(ze,{touchEventId:t.ref("")});return(r,s=()=>{},l)=>function(){s.call(this,...arguments);const{emitEvent:d}=a;o.forEach(c=>{if(r===c.on)try{i.value=n,l?d(c.target,c.emit,l):d(c.target,c.emit)}catch(f){console.error(f)}})}},Gt=(e,o)=>{let{name:n="name",value:a="value",type:i="type"}=o||{};n=n==null?void 0:n.trim(),a=a==null?void 0:a.trim(),i=i==null?void 0:i.trim();const r=new Map,s=e.length;for(let c=0;c<s;c++){const f=e[c],x=f[n]||"",u=f[a]||"",m=f[i]||"";if(r.has(m)){const y=r.get(m);y.push({name:x,value:u,...f}),r.set(m,y)}else r.set(m,[{name:x,value:u,...f}])}const l=[],d=[];for(const[c,f]of r)if(d.push({name:c,data:f}),f!=null&&f.length)if(l.length)for(const x of f)l.includes(x.name)||l.push(x.name);else l.push(...f.map(x=>x.name));return{dimensions:l,dataset:d}};var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Li(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function G0(e){if(e.__esModule)return e;var o=e.default;if(typeof o=="function"){var n=function a(){return this instanceof a?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};n.prototype=o.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}),n}var Ni={exports:{}};function U0(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Yn={exports:{}};const $0=G0(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var _i;function we(){return _i||(_i=1,function(e,o){(function(n,a){e.exports=a()})(me,function(){var n=n||function(a,i){var r;if(typeof window<"u"&&window.crypto&&(r=window.crypto),typeof self<"u"&&self.crypto&&(r=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window<"u"&&window.msCrypto&&(r=window.msCrypto),!r&&typeof me<"u"&&me.crypto&&(r=me.crypto),!r&&typeof U0=="function")try{r=$0}catch{}var s=function(){if(r){if(typeof r.getRandomValues=="function")try{return r.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof r.randomBytes=="function")try{return r.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function v(){}return function(S){var C;return v.prototype=S,C=new v,v.prototype=null,C}}(),d={},c=d.lib={},f=c.Base=function(){return{extend:function(v){var S=l(this);return v&&S.mixIn(v),(!S.hasOwnProperty("init")||this.init===S.init)&&(S.init=function(){S.$super.init.apply(this,arguments)}),S.init.prototype=S,S.$super=this,S},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var S in v)v.hasOwnProperty(S)&&(this[S]=v[S]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=c.WordArray=f.extend({init:function(v,S){v=this.words=v||[],S!=i?this.sigBytes=S:this.sigBytes=v.length*4},toString:function(v){return(v||m).stringify(this)},concat:function(v){var S=this.words,C=v.words,B=this.sigBytes,g=v.sigBytes;if(this.clamp(),B%4)for(var R=0;R<g;R++){var p=C[R>>>2]>>>24-R%4*8&255;S[B+R>>>2]|=p<<24-(B+R)%4*8}else for(var D=0;D<g;D+=4)S[B+D>>>2]=C[D>>>2];return this.sigBytes+=g,this},clamp:function(){var v=this.words,S=this.sigBytes;v[S>>>2]&=4294967295<<32-S%4*8,v.length=a.ceil(S/4)},clone:function(){var v=f.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var S=[],C=0;C<v;C+=4)S.push(s());return new x.init(S,v)}}),u=d.enc={},m=u.Hex={stringify:function(v){for(var S=v.words,C=v.sigBytes,B=[],g=0;g<C;g++){var R=S[g>>>2]>>>24-g%4*8&255;B.push((R>>>4).toString(16)),B.push((R&15).toString(16))}return B.join("")},parse:function(v){for(var S=v.length,C=[],B=0;B<S;B+=2)C[B>>>3]|=parseInt(v.substr(B,2),16)<<24-B%8*4;return new x.init(C,S/2)}},y=u.Latin1={stringify:function(v){for(var S=v.words,C=v.sigBytes,B=[],g=0;g<C;g++){var R=S[g>>>2]>>>24-g%4*8&255;B.push(String.fromCharCode(R))}return B.join("")},parse:function(v){for(var S=v.length,C=[],B=0;B<S;B++)C[B>>>2]|=(v.charCodeAt(B)&255)<<24-B%4*8;return new x.init(C,S)}},h=u.Utf8={stringify:function(v){try{return decodeURIComponent(escape(y.stringify(v)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(v){return y.parse(unescape(encodeURIComponent(v)))}},A=c.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=h.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var S,C=this._data,B=C.words,g=C.sigBytes,R=this.blockSize,p=R*4,D=g/p;v?D=a.ceil(D):D=a.max((D|0)-this._minBufferSize,0);var w=D*R,L=a.min(w*4,g);if(w){for(var M=0;M<w;M+=R)this._doProcessBlock(B,M);S=B.splice(0,w),C.sigBytes-=L}return new x.init(S,L)},clone:function(){var v=f.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0});c.Hasher=A.extend({cfg:f.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){A.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this},finalize:function(v){v&&this._append(v);var S=this._doFinalize();return S},blockSize:16,_createHelper:function(v){return function(S,C){return new v.init(C).finalize(S)}},_createHmacHelper:function(v){return function(S,C){return new I.HMAC.init(v,C).finalize(S)}}});var I=d.algo={};return d}(Math);return n})}(Yn)),Yn.exports}var Kn={exports:{}},Oi;function bn(){return Oi||(Oi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(a){var i=n,r=i.lib,s=r.Base,l=r.WordArray,d=i.x64={};d.Word=s.extend({init:function(c,f){this.high=c,this.low=f}}),d.WordArray=s.extend({init:function(c,f){c=this.words=c||[],f!=a?this.sigBytes=f:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,f=c.length,x=[],u=0;u<f;u++){var m=c[u];x.push(m.high),x.push(m.low)}return l.create(x,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),f=c.words=this.words.slice(0),x=f.length,u=0;u<x;u++)f[u]=f[u].clone();return c}})}(),n})}(Kn)),Kn.exports}var Zn={exports:{}},Fi;function Y0(){return Fi||(Fi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(){if(typeof ArrayBuffer=="function"){var a=n,i=a.lib,r=i.WordArray,s=r.init,l=r.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var c=d.byteLength,f=[],x=0;x<c;x++)f[x>>>2]|=d[x]<<24-x%4*8;s.call(this,f,c)}else s.apply(this,arguments)};l.prototype=r}}(),n.lib.WordArray})}(Zn)),Zn.exports}var Qn={exports:{}},Mi;function K0(){return Mi||(Mi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(d){for(var c=d.words,f=d.sigBytes,x=[],u=0;u<f;u+=2){var m=c[u>>>2]>>>16-u%4*8&65535;x.push(String.fromCharCode(m))}return x.join("")},parse:function(d){for(var c=d.length,f=[],x=0;x<c;x++)f[x>>>1]|=d.charCodeAt(x)<<16-x%2*16;return r.create(f,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,f=d.sigBytes,x=[],u=0;u<f;u+=2){var m=l(c[u>>>2]>>>16-u%4*8&65535);x.push(String.fromCharCode(m))}return x.join("")},parse:function(d){for(var c=d.length,f=[],x=0;x<c;x++)f[x>>>1]|=l(d.charCodeAt(x)<<16-x%2*16);return r.create(f,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(Qn)),Qn.exports}var Jn={exports:{}},zi;function Ut(){return zi||(zi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Base64={stringify:function(d){var c=d.words,f=d.sigBytes,x=this._map;d.clamp();for(var u=[],m=0;m<f;m+=3)for(var y=c[m>>>2]>>>24-m%4*8&255,h=c[m+1>>>2]>>>24-(m+1)%4*8&255,A=c[m+2>>>2]>>>24-(m+2)%4*8&255,I=y<<16|h<<8|A,v=0;v<4&&m+v*.75<f;v++)u.push(x.charAt(I>>>6*(3-v)&63));var S=x.charAt(64);if(S)for(;u.length%4;)u.push(S);return u.join("")},parse:function(d){var c=d.length,f=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var u=0;u<f.length;u++)x[f.charCodeAt(u)]=u}var m=f.charAt(64);if(m){var y=d.indexOf(m);y!==-1&&(c=y)}return l(d,c,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,f){for(var x=[],u=0,m=0;m<c;m++)if(m%4){var y=f[d.charCodeAt(m-1)]<<m%4*2,h=f[d.charCodeAt(m)]>>>6-m%4*2,A=y|h;x[u>>>2]|=A<<24-u%4*8,u++}return r.create(x,u)}}(),n.enc.Base64})}(Jn)),Jn.exports}var Xn={exports:{}},Pi;function Z0(){return Pi||(Pi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var f=d.words,x=d.sigBytes,u=c?this._safe_map:this._map;d.clamp();for(var m=[],y=0;y<x;y+=3)for(var h=f[y>>>2]>>>24-y%4*8&255,A=f[y+1>>>2]>>>24-(y+1)%4*8&255,I=f[y+2>>>2]>>>24-(y+2)%4*8&255,v=h<<16|A<<8|I,S=0;S<4&&y+S*.75<x;S++)m.push(u.charAt(v>>>6*(3-S)&63));var C=u.charAt(64);if(C)for(;m.length%4;)m.push(C);return m.join("")},parse:function(d,c=!0){var f=d.length,x=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var m=0;m<x.length;m++)u[x.charCodeAt(m)]=m}var y=x.charAt(64);if(y){var h=d.indexOf(y);h!==-1&&(f=h)}return l(d,f,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,f){for(var x=[],u=0,m=0;m<c;m++)if(m%4){var y=f[d.charCodeAt(m-1)]<<m%4*2,h=f[d.charCodeAt(m)]>>>6-m%4*2,A=y|h;x[u>>>2]|=A<<24-u%4*8,u++}return r.create(x,u)}}(),n.enc.Base64url})}(Xn)),Xn.exports}var eo={exports:{}},qi;function $t(){return qi||(qi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=a.abs(a.sin(h+1))*4294967296|0})();var f=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,A){for(var I=0;I<16;I++){var v=A+I,S=h[v];h[v]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var C=this._hash.words,B=h[A+0],g=h[A+1],R=h[A+2],p=h[A+3],D=h[A+4],w=h[A+5],L=h[A+6],M=h[A+7],k=h[A+8],O=h[A+9],T=h[A+10],F=h[A+11],b=h[A+12],E=h[A+13],_=h[A+14],P=h[A+15],N=C[0],V=C[1],z=C[2],q=C[3];N=x(N,V,z,q,B,7,c[0]),q=x(q,N,V,z,g,12,c[1]),z=x(z,q,N,V,R,17,c[2]),V=x(V,z,q,N,p,22,c[3]),N=x(N,V,z,q,D,7,c[4]),q=x(q,N,V,z,w,12,c[5]),z=x(z,q,N,V,L,17,c[6]),V=x(V,z,q,N,M,22,c[7]),N=x(N,V,z,q,k,7,c[8]),q=x(q,N,V,z,O,12,c[9]),z=x(z,q,N,V,T,17,c[10]),V=x(V,z,q,N,F,22,c[11]),N=x(N,V,z,q,b,7,c[12]),q=x(q,N,V,z,E,12,c[13]),z=x(z,q,N,V,_,17,c[14]),V=x(V,z,q,N,P,22,c[15]),N=u(N,V,z,q,g,5,c[16]),q=u(q,N,V,z,L,9,c[17]),z=u(z,q,N,V,F,14,c[18]),V=u(V,z,q,N,B,20,c[19]),N=u(N,V,z,q,w,5,c[20]),q=u(q,N,V,z,T,9,c[21]),z=u(z,q,N,V,P,14,c[22]),V=u(V,z,q,N,D,20,c[23]),N=u(N,V,z,q,O,5,c[24]),q=u(q,N,V,z,_,9,c[25]),z=u(z,q,N,V,p,14,c[26]),V=u(V,z,q,N,k,20,c[27]),N=u(N,V,z,q,E,5,c[28]),q=u(q,N,V,z,R,9,c[29]),z=u(z,q,N,V,M,14,c[30]),V=u(V,z,q,N,b,20,c[31]),N=m(N,V,z,q,w,4,c[32]),q=m(q,N,V,z,k,11,c[33]),z=m(z,q,N,V,F,16,c[34]),V=m(V,z,q,N,_,23,c[35]),N=m(N,V,z,q,g,4,c[36]),q=m(q,N,V,z,D,11,c[37]),z=m(z,q,N,V,M,16,c[38]),V=m(V,z,q,N,T,23,c[39]),N=m(N,V,z,q,E,4,c[40]),q=m(q,N,V,z,B,11,c[41]),z=m(z,q,N,V,p,16,c[42]),V=m(V,z,q,N,L,23,c[43]),N=m(N,V,z,q,O,4,c[44]),q=m(q,N,V,z,b,11,c[45]),z=m(z,q,N,V,P,16,c[46]),V=m(V,z,q,N,R,23,c[47]),N=y(N,V,z,q,B,6,c[48]),q=y(q,N,V,z,M,10,c[49]),z=y(z,q,N,V,_,15,c[50]),V=y(V,z,q,N,w,21,c[51]),N=y(N,V,z,q,b,6,c[52]),q=y(q,N,V,z,p,10,c[53]),z=y(z,q,N,V,T,15,c[54]),V=y(V,z,q,N,g,21,c[55]),N=y(N,V,z,q,k,6,c[56]),q=y(q,N,V,z,P,10,c[57]),z=y(z,q,N,V,L,15,c[58]),V=y(V,z,q,N,E,21,c[59]),N=y(N,V,z,q,D,6,c[60]),q=y(q,N,V,z,F,10,c[61]),z=y(z,q,N,V,R,15,c[62]),V=y(V,z,q,N,O,21,c[63]),C[0]=C[0]+N|0,C[1]=C[1]+V|0,C[2]=C[2]+z|0,C[3]=C[3]+q|0},_doFinalize:function(){var h=this._data,A=h.words,I=this._nDataBytes*8,v=h.sigBytes*8;A[v>>>5]|=128<<24-v%32;var S=a.floor(I/4294967296),C=I;A[(v+64>>>9<<4)+15]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,A[(v+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,h.sigBytes=(A.length+1)*4,this._process();for(var B=this._hash,g=B.words,R=0;R<4;R++){var p=g[R];g[R]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}return B},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});function x(h,A,I,v,S,C,B){var g=h+(A&I|~A&v)+S+B;return(g<<C|g>>>32-C)+A}function u(h,A,I,v,S,C,B){var g=h+(A&v|I&~v)+S+B;return(g<<C|g>>>32-C)+A}function m(h,A,I,v,S,C,B){var g=h+(A^I^v)+S+B;return(g<<C|g>>>32-C)+A}function y(h,A,I,v,S,C,B){var g=h+(I^(A|~v))+S+B;return(g<<C|g>>>32-C)+A}i.MD5=l._createHelper(f),i.HmacMD5=l._createHmacHelper(f)}(Math),n.MD5})}(eo)),eo.exports}var to={exports:{}},Vi;function no(){return Vi||(Vi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=i.Hasher,l=a.algo,d=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,x){for(var u=this._hash.words,m=u[0],y=u[1],h=u[2],A=u[3],I=u[4],v=0;v<80;v++){if(v<16)d[v]=f[x+v]|0;else{var S=d[v-3]^d[v-8]^d[v-14]^d[v-16];d[v]=S<<1|S>>>31}var C=(m<<5|m>>>27)+I+d[v];v<20?C+=(y&h|~y&A)+1518500249:v<40?C+=(y^h^A)+1859775393:v<60?C+=(y&h|y&A|h&A)-1894007588:C+=(y^h^A)-899497514,I=A,A=h,h=y<<30|y>>>2,y=m,m=C}u[0]=u[0]+m|0,u[1]=u[1]+y|0,u[2]=u[2]+h|0,u[3]=u[3]+A|0,u[4]=u[4]+I|0},_doFinalize:function(){var f=this._data,x=f.words,u=this._nDataBytes*8,m=f.sigBytes*8;return x[m>>>5]|=128<<24-m%32,x[(m+64>>>9<<4)+14]=Math.floor(u/4294967296),x[(m+64>>>9<<4)+15]=u,f.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}(to)),to.exports}var oo={exports:{}},Hi;function ji(){return Hi||(Hi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.algo,c=[],f=[];(function(){function m(I){for(var v=a.sqrt(I),S=2;S<=v;S++)if(!(I%S))return!1;return!0}function y(I){return(I-(I|0))*4294967296|0}for(var h=2,A=0;A<64;)m(h)&&(A<8&&(c[A]=y(a.pow(h,1/2))),f[A]=y(a.pow(h,1/3)),A++),h++})();var x=[],u=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(m,y){for(var h=this._hash.words,A=h[0],I=h[1],v=h[2],S=h[3],C=h[4],B=h[5],g=h[6],R=h[7],p=0;p<64;p++){if(p<16)x[p]=m[y+p]|0;else{var D=x[p-15],w=(D<<25|D>>>7)^(D<<14|D>>>18)^D>>>3,L=x[p-2],M=(L<<15|L>>>17)^(L<<13|L>>>19)^L>>>10;x[p]=w+x[p-7]+M+x[p-16]}var k=C&B^~C&g,O=A&I^A&v^I&v,T=(A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22),F=(C<<26|C>>>6)^(C<<21|C>>>11)^(C<<7|C>>>25),b=R+F+k+f[p]+x[p],E=T+O;R=g,g=B,B=C,C=S+b|0,S=v,v=I,I=A,A=b+E|0}h[0]=h[0]+A|0,h[1]=h[1]+I|0,h[2]=h[2]+v|0,h[3]=h[3]+S|0,h[4]=h[4]+C|0,h[5]=h[5]+B|0,h[6]=h[6]+g|0,h[7]=h[7]+R|0},_doFinalize:function(){var m=this._data,y=m.words,h=this._nDataBytes*8,A=m.sigBytes*8;return y[A>>>5]|=128<<24-A%32,y[(A+64>>>9<<4)+14]=a.floor(h/4294967296),y[(A+64>>>9<<4)+15]=h,m.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var m=l.clone.call(this);return m._hash=this._hash.clone(),m}});i.SHA256=l._createHelper(u),i.HmacSHA256=l._createHmacHelper(u)}(Math),n.SHA256})}(oo)),oo.exports}var ao={exports:{}},Wi;function Q0(){return Wi||(Wi=1,function(e,o){(function(n,a,i){e.exports=a(we(),ji())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.algo,l=s.SHA256,d=s.SHA224=l.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});a.SHA224=l._createHelper(d),a.HmacSHA224=l._createHmacHelper(d)}(),n.SHA224})}(ao)),ao.exports}var io={exports:{}},Gi;function Ui(){return Gi||(Gi=1,function(e,o){(function(n,a,i){e.exports=a(we(),bn())})(me,function(n){return function(){var a=n,i=a.lib,r=i.Hasher,s=a.x64,l=s.Word,d=s.WordArray,c=a.algo;function f(){return l.create.apply(l,arguments)}var x=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],u=[];(function(){for(var y=0;y<80;y++)u[y]=f()})();var m=c.SHA512=r.extend({_doReset:function(){this._hash=new d.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(y,h){for(var A=this._hash.words,I=A[0],v=A[1],S=A[2],C=A[3],B=A[4],g=A[5],R=A[6],p=A[7],D=I.high,w=I.low,L=v.high,M=v.low,k=S.high,O=S.low,T=C.high,F=C.low,b=B.high,E=B.low,_=g.high,P=g.low,N=R.high,V=R.low,z=p.high,q=p.low,X=D,U=w,j=L,H=M,K=k,te=O,ce=T,ye=F,G=b,J=E,ee=_,ne=P,ae=N,ie=V,ue=z,Se=q,ke=0;ke<80;ke++){var qe,We,de=u[ke];if(ke<16)We=de.high=y[h+ke*2]|0,qe=de.low=y[h+ke*2+1]|0;else{var xe=u[ke-15],fe=xe.high,Ge=xe.low,ct=(f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O+te,S.high=k+K+(O>>>0<te>>>0?1:0),F=C.low=F+ye,C.high=T+ce+(F>>>0<ye>>>0?1:0),E=B.low=E+J,B.high=b+G+(E>>>0<J>>>0?1:0),P=g.low=P+ne,g.high=_+ee+(P>>>0<ne>>>0?1:0),V=R.low=V+ie,R.high=N+ae+(V>>>0<ie>>>0?1:0),q=p.low=q+Se,p.high=z+ue+(q>>>0<Se>>>0?1:0)},_doFinalize:function(){var y=this._data,h=y.words,A=this._nDataBytes*8,I=y.sigBytes*8;h[I>>>5]|=128<<24-I%32,h[(I+128>>>10<<5)+30]=Math.floor(A/4294967296),h[(I+128>>>10<<5)+31]=A,y.sigBytes=h.length*4,this._process();var v=this._hash.toX32();return v},clone:function(){var y=r.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});a.SHA512=r._createHelper(m),a.HmacSHA512=r._createHmacHelper(m)}(),n.SHA512})}(io)),io.exports}var ro={exports:{}},$i;function J0(){return $i||($i=1,function(e,o){(function(n,a,i){e.exports=a(we(),bn(),Ui())})(me,function(n){return function(){var a=n,i=a.x64,r=i.Word,s=i.WordArray,l=a.algo,d=l.SHA512,c=l.SHA384=d.extend({_doReset:function(){this._hash=new s.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var f=d._doFinalize.call(this);return f.sigBytes-=16,f}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(ro)),ro.exports}var lo={exports:{}},Yi;function X0(){return Yi||(Yi=1,function(e,o){(function(n,a,i){e.exports=a(we(),bn())})(me,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.x64,c=d.Word,f=i.algo,x=[],u=[],m=[];(function(){for(var A=1,I=0,v=0;v<24;v++){x[A+5*I]=(v+1)*(v+2)/2%64;var S=I%5,C=(2*A+3*I)%5;A=S,I=C}for(var A=0;A<5;A++)for(var I=0;I<5;I++)u[A+5*I]=I+(2*A+3*I)%5*5;for(var B=1,g=0;g<24;g++){for(var R=0,p=0,D=0;D<7;D++){if(B&1){var w=(1<<D)-1;w<32?p^=1<<w:R^=1<<w-32}B&128?B=B<<1^113:B<<=1}m[g]=c.create(R,p)}})();var y=[];(function(){for(var A=0;A<25;A++)y[A]=c.create()})();var h=f.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var A=this._state=[],I=0;I<25;I++)A[I]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(A,I){for(var v=this._state,S=this.blockSize/2,C=0;C<S;C++){var B=A[I+2*C],g=A[I+2*C+1];B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,g=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360;var R=v[C];R.high^=g,R.low^=B}for(var p=0;p<24;p++){for(var D=0;D<5;D++){for(var w=0,L=0,M=0;M<5;M++){var R=v[D+5*M];w^=R.high,L^=R.low}var k=y[D];k.high=w,k.low=L}for(var D=0;D<5;D++)for(var O=y[(D+4)%5],T=y[(D+1)%5],F=T.high,b=T.low,w=O.high^(F<<1|b>>>31),L=O.low^(b<<1|F>>>31),M=0;M<5;M++){var R=v[D+5*M];R.high^=w,R.low^=L}for(var E=1;E<25;E++){var w,L,R=v[E],_=R.high,P=R.low,N=x[E];N<32?(w=_<<N|P>>>32-N,L=P<<N|_>>>32-N):(w=P<<N-32|_>>>64-N,L=_<<N-32|P>>>64-N);var V=y[u[E]];V.high=w,V.low=L}var z=y[0],q=v[0];z.high=q.high,z.low=q.low;for(var D=0;D<5;D++)for(var M=0;M<5;M++){var E=D+5*M,R=v[E],X=y[E],U=y[(D+1)%5+5*M],j=y[(D+2)%5+5*M];R.high=X.high^~U.high&j.high,R.low=X.low^~U.low&j.low}var R=v[0],H=m[p];R.high^=H.high,R.low^=H.low}},_doFinalize:function(){var A=this._data,I=A.words;this._nDataBytes*8;var v=A.sigBytes*8,S=this.blockSize*32;I[v>>>5]|=1<<24-v%32,I[(a.ceil((v+1)/S)*S>>>5)-1]|=128,A.sigBytes=I.length*4,this._process();for(var C=this._state,B=this.cfg.outputLength/8,g=B/8,R=[],p=0;p<g;p++){var D=C[p],w=D.high,L=D.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,L=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,R.push(L),R.push(w)}return new s.init(R,B)},clone:function(){for(var A=l.clone.call(this),I=A._state=this._state.slice(0),v=0;v<25;v++)I[v]=I[v].clone();return A}});i.SHA3=l._createHelper(h),i.HmacSHA3=l._createHmacHelper(h)}(Math),n.SHA3})}(lo)),lo.exports}var so={exports:{}},Ki;function ec(){return Ki||(Ki=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){/** @preserve
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h0(e,o){if(e){if(typeof e=="string")return pi(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pi(e,o)}}function pi(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function g0(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],i=!0,r=!1,s,l;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));i=!0);}catch(d){r=!0,l=d}finally{try{!i&&n.return!=null&&n.return()}finally{if(r)throw l}}return a}}function m0(e){if(Array.isArray(e))return e}function bi(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Vn(e,i,n[i])})}return e}function Vn(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function y0(e,o){if(e==null)return{};var n=x0(e,o),a,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)a=r[i],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function x0(e,o){if(e==null)return{};var n={},a=Object.keys(e),i,r;for(r=0;r<a.length;r++)i=a[r],!(o.indexOf(i)>=0)&&(n[i]=e[i]);return n}xi("#1890ff");var Ht=function(o,n){var a,i=bi({},o,n.attrs),r=i.class,s=i.icon,l=i.spin,d=i.rotate,c=i.tabindex,f=i.twoToneColor,x=i.onClick,u=y0(i,d0),m=(a={anticon:!0},Vn(a,"anticon-".concat(s.name),!!s.name),Vn(a,r,r),a),y=l===""||l||s.name==="loading"?"anticon-spin":"",h=c;h===void 0&&x&&(h=-1,u.tabindex=h);var A=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,I=gi(f),v=f0(I,2),S=v[0],C=v[1];return t.createVNode("span",bi({role:"img","aria-label":s.name},u,{onClick:x,class:m}),[t.createVNode(qn,{class:y,icon:s,primaryColor:S,secondaryColor:C,style:A},null)])};Ht.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Ht.displayName="AntdIcon",Ht.inheritAttrs=!1,Ht.getTwoToneColor=c0,Ht.setTwoToneColor=xi;const vi=Ht;var p0={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const b0=p0;function Si(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){v0(e,i,n[i])})}return e}function v0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Hn=function(o,n){var a=Si({},o,n.attrs);return t.createVNode(vi,Si({},a,{icon:b0}),null)};Hn.displayName="CloseOutlined",Hn.inheritAttrs=!1;const S0=Hn;var C0={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const w0=C0;function Ci(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){A0(e,i,n[i])})}return e}function A0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var jn=function(o,n){var a=Ci({},o,n.attrs);return t.createVNode(vi,Ci({},a,{icon:w0}),null)};jn.displayName="LoadingOutlined",jn.inheritAttrs=!1;const k0=jn,T0=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:he.Spin},setup(){return{indicator:t.h(k0,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),sh="",ve=(e,o)=>{const n=e.__vccOpts||e;for(const[a,i]of o)n[a]=i;return n},B0={class:"spin-wrapper"};function E0(e,o,n,a,i,r){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",B0,[e.spinning?(t.openBlock(),t.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):t.renderSlot(e.$slots,"default",{key:1})])}const jt=ve(T0,[["render",E0]]),D0=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:he.Skeleton}});function I0(e,o,n,a,i,r){const s=t.resolveComponent("a-skeleton");return t.openBlock(),t.createBlock(s,{active:"",loading:e.loading},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const Wt=ve(D0,[["render",I0]]);(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();var R0=Object.defineProperty,wi=Object.getOwnPropertySymbols,L0=Object.prototype.hasOwnProperty,N0=Object.prototype.propertyIsEnumerable,Ai=(e,o,n)=>o in e?R0(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,ki=(e,o)=>{for(var n in o||(o={}))L0.call(o,n)&&Ai(e,n,o[n]);if(wi)for(var n of wi(o))N0.call(o,n)&&Ai(e,n,o[n]);return e},_0=(e,o)=>{const n=e.__vccOpts||e;for(const[a,i]of o)n[a]=i;return n};const O0=t.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(e,{emit:o}){const n=t.ref(0),a=t.ref("100%"),i=t.ref("100%"),r=t.ref(0),s=t.ref(!1),l=t.ref(!1),d=t.ref(0),c=t.ref(0),f=t.ref(0),x=t.ref(0),u=t.ref(!1),m=t.ref(!1),y=t.ref(0),h=t.ref(null),A=t.ref("200px"),I=t.ref(!1),v=t.ref(null),S=t.ref(null),C=async()=>{await B(),r.value++},B=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",i.value="0%",v.value!==null&&S.value!==null&&v.value&&S.value)if(e.vertical&&"clientHeight"in v.value&&"clientHeight"in S.value){x.value=v.value.clientHeight,f.value=S.value.clientHeight;const F=Math.ceil(f.value/x.value);return n.value=isFinite(F)?F:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in v.value&&"clientWidth"in S.value){if(c.value=v.value.clientWidth,d.value=S.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const F=Math.ceil(d.value/c.value);return n.value=isFinite(F)?F:0,n.value}else return a.value="100%",i.value="100%",0;else return a.value="100%",i.value="100%",0},100)};t.watch(c,async()=>{e.clone&&C()}),t.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&C()}),t.watch(()=>e.pause,(F,b)=>{F!==b&&o(F?"onResume":"onPause")});const g=()=>{e.pauseOnHover&&(o("onPause"),u.value=!0)},R=()=>{e.pauseOnHover&&(o("onResume"),u.value=!1)},p=()=>{e.pauseOnClick&&(o("onPause"),m.value=!0)},D=()=>{e.pauseOnClick&&(o("onResume"),m.value=!1)},w=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),L=t.computed(()=>e.pauseOnHover&&(u.value||m.value)||!e.pauseOnHover&&w.value==="paused"?"paused":"running"),M=t.computed(()=>e.pauseOnHover&&u.value||e.pauseOnClick&&m.value||!e.pauseOnHover&&w.value==="paused"?"paused":"running"),k=t.computed(()=>{const F={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${L.value}`,"--pauseOnClick":`${M.value}`,"--pauseAnimation":`${w.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${A.value}`,"--min-width":`${a.value}`,"--min-height":`${i.value}`},b={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(b["--orientation"]="scrollY"),ki(ki({},F),b)}),O=t.computed(()=>!!e.gradient),T=async()=>{e.vertical?(i.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(i.value="auto",e.animateOnOverflowOnly?a.value="auto":a.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),A.value=e.gradientWidth):e.gradientLength&&(A.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await B(),C()),I.value=!0};return t.onMounted(async()=>{T(),h.value=setInterval(()=>{y.value++,e.loop!==0&&y.value===e.loop&&(o("onComplete"),clearInterval(h.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(h.value)}),{ready:I,contentWidth:c,containerWidth:d,contentHeight:x,containerHeight:f,loopCounter:y,loopInterval:h,mouseOverMarquee:u,mouseDownMarquee:m,minWidth:a,minHeight:i,animateOnOverflowPause:l,marqueeContent:v,marqueeOverlayContainer:S,componentKey:r,showGradient:O,cloneAmount:n,ForcesUpdate:C,checkForClone:B,setupMarquee:T,getCurrentStyle:k,hoverStarted:g,hoverEnded:R,mouseDown:p,mouseUp:D}}}),F0={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},M0={class:"marquee",ref:"marqueeContent"},z0={key:1,"aria-hidden":!0,class:"marquee"};function P0(e,o,n,a,i,r){return e.ready?(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:t.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:o[0]||(o[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:o[1]||(o[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:o[2]||(o[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:o[3]||(o[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[t.createElementVNode("div",F0,null,512),e.showGradient?(t.openBlock(),t.createElementBlock("div",{key:0,"aria-hidden":!0,class:t.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",M0,[t.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(t.openBlock(),t.createElementBlock("div",z0,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.cloneAmount,s=>(t.openBlock(),t.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[t.renderSlot(e.$slots,"default")]))),128))],38)):t.createCommentVNode("",!0)}var q0=_0(O0,[["render",P0]]);const V0=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:q0},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},vertical:{type:Boolean,default:!0},step:{type:Number,default:1},wrapStyle:{type:Object,default:()=>({})},marqueeStyle:{type:Object,default:()=>({})}},setup(e){return{isAutoScroll:t.ref(e.visible)}}}),ch="";function H0(e,o,n,a,i,r){const s=t.resolveComponent("Vue3Marquee");return e.isAutoScroll?(t.openBlock(),t.createBlock(s,{key:0,class:"vue-marquee",style:t.normalizeStyle({...e.marqueeStyle,width:"100%"}),duration:e.step,vertical:e.vertical,pauseOnHover:!0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["style","duration","vertical"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"list-wrap",style:t.normalizeStyle(e.wrapStyle)},[t.renderSlot(e.$slots,"default")],4))}const Wn=ve(V0,[["render",H0]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Ae=(e,o)=>{if(e.install=n=>{for(const a of[e,...Object.values(o??{})])n.component(a.name,a)},o)for(const[n,a]of Object.entries(o))e[n]=a;return e},Re={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1},Te=e=>{const o={};if(typeof e=="object"&&e!=null)for(const n in e){const a=e[n];o[n]={type:a==null?void 0:a.constructor,default:a}}return o},Gn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},Un=Te(Gn),j0=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex","scale"],Ie=(e,o=[])=>{const n=Oe.without(j0,...o);return t.computed(()=>Oe.pick(e,n))},$n="EVENT_BUS",ze="GLOBAL_CONFIG",Le="GLOBAL_MODEL",He="REQUEST_MODEL",Ti="GLOBAL_TOKEN",sn="REFRESH_PAGE",Bi="MODAL_MODEL",Et="LOADED_DATA",Qe=18,Ei="ygt",Di=((as=window==null?void 0:window.config)==null?void 0:as.indicatorURL)||"";(is=window==null?void 0:window.config)!=null&&is.uploadPath;const Ii=((rs=window==null?void 0:window.config)==null?void 0:rs.routerBaseURL)||"./",W0=((ls=window==null?void 0:window.config)==null?void 0:ls.erdURL)||"",Ri=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],Fe=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject($n,{onEvent:(i,r)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},Ne=e=>{const o=e.events,n=e.id,a=t.inject($n,{emitEvent:(r,s,l)=>{}}),{touchEventId:i}=t.inject(ze,{touchEventId:t.ref("")});return(r,s=()=>{},l)=>function(){s.call(this,...arguments);const{emitEvent:d}=a;o.forEach(c=>{if(r===c.on)try{i.value=n,l?d(c.target,c.emit,l):d(c.target,c.emit)}catch(f){console.error(f)}})}},Gt=(e,o)=>{let{name:n="name",value:a="value",type:i="type"}=o||{};n=n==null?void 0:n.trim(),a=a==null?void 0:a.trim(),i=i==null?void 0:i.trim();const r=new Map,s=e.length;for(let c=0;c<s;c++){const f=e[c],x=f[n]||"",u=f[a]||"",m=f[i]||"";if(r.has(m)){const y=r.get(m);y.push({name:x,value:u,...f}),r.set(m,y)}else r.set(m,[{name:x,value:u,...f}])}const l=[],d=[];for(const[c,f]of r)if(d.push({name:c,data:f}),f!=null&&f.length)if(l.length)for(const x of f)l.includes(x.name)||l.push(x.name);else l.push(...f.map(x=>x.name));return{dimensions:l,dataset:d}};var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Li(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function G0(e){if(e.__esModule)return e;var o=e.default;if(typeof o=="function"){var n=function a(){return this instanceof a?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};n.prototype=o.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}),n}var Ni={exports:{}};function U0(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Yn={exports:{}};const $0=G0(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var _i;function we(){return _i||(_i=1,function(e,o){(function(n,a){e.exports=a()})(me,function(){var n=n||function(a,i){var r;if(typeof window<"u"&&window.crypto&&(r=window.crypto),typeof self<"u"&&self.crypto&&(r=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window<"u"&&window.msCrypto&&(r=window.msCrypto),!r&&typeof me<"u"&&me.crypto&&(r=me.crypto),!r&&typeof U0=="function")try{r=$0}catch{}var s=function(){if(r){if(typeof r.getRandomValues=="function")try{return r.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof r.randomBytes=="function")try{return r.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function v(){}return function(S){var C;return v.prototype=S,C=new v,v.prototype=null,C}}(),d={},c=d.lib={},f=c.Base=function(){return{extend:function(v){var S=l(this);return v&&S.mixIn(v),(!S.hasOwnProperty("init")||this.init===S.init)&&(S.init=function(){S.$super.init.apply(this,arguments)}),S.init.prototype=S,S.$super=this,S},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var S in v)v.hasOwnProperty(S)&&(this[S]=v[S]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=c.WordArray=f.extend({init:function(v,S){v=this.words=v||[],S!=i?this.sigBytes=S:this.sigBytes=v.length*4},toString:function(v){return(v||m).stringify(this)},concat:function(v){var S=this.words,C=v.words,B=this.sigBytes,g=v.sigBytes;if(this.clamp(),B%4)for(var R=0;R<g;R++){var p=C[R>>>2]>>>24-R%4*8&255;S[B+R>>>2]|=p<<24-(B+R)%4*8}else for(var D=0;D<g;D+=4)S[B+D>>>2]=C[D>>>2];return this.sigBytes+=g,this},clamp:function(){var v=this.words,S=this.sigBytes;v[S>>>2]&=4294967295<<32-S%4*8,v.length=a.ceil(S/4)},clone:function(){var v=f.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var S=[],C=0;C<v;C+=4)S.push(s());return new x.init(S,v)}}),u=d.enc={},m=u.Hex={stringify:function(v){for(var S=v.words,C=v.sigBytes,B=[],g=0;g<C;g++){var R=S[g>>>2]>>>24-g%4*8&255;B.push((R>>>4).toString(16)),B.push((R&15).toString(16))}return B.join("")},parse:function(v){for(var S=v.length,C=[],B=0;B<S;B+=2)C[B>>>3]|=parseInt(v.substr(B,2),16)<<24-B%8*4;return new x.init(C,S/2)}},y=u.Latin1={stringify:function(v){for(var S=v.words,C=v.sigBytes,B=[],g=0;g<C;g++){var R=S[g>>>2]>>>24-g%4*8&255;B.push(String.fromCharCode(R))}return B.join("")},parse:function(v){for(var S=v.length,C=[],B=0;B<S;B++)C[B>>>2]|=(v.charCodeAt(B)&255)<<24-B%4*8;return new x.init(C,S)}},h=u.Utf8={stringify:function(v){try{return decodeURIComponent(escape(y.stringify(v)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(v){return y.parse(unescape(encodeURIComponent(v)))}},A=c.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=h.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var S,C=this._data,B=C.words,g=C.sigBytes,R=this.blockSize,p=R*4,D=g/p;v?D=a.ceil(D):D=a.max((D|0)-this._minBufferSize,0);var w=D*R,L=a.min(w*4,g);if(w){for(var M=0;M<w;M+=R)this._doProcessBlock(B,M);S=B.splice(0,w),C.sigBytes-=L}return new x.init(S,L)},clone:function(){var v=f.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0});c.Hasher=A.extend({cfg:f.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){A.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this},finalize:function(v){v&&this._append(v);var S=this._doFinalize();return S},blockSize:16,_createHelper:function(v){return function(S,C){return new v.init(C).finalize(S)}},_createHmacHelper:function(v){return function(S,C){return new I.HMAC.init(v,C).finalize(S)}}});var I=d.algo={};return d}(Math);return n})}(Yn)),Yn.exports}var Kn={exports:{}},Oi;function bn(){return Oi||(Oi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(a){var i=n,r=i.lib,s=r.Base,l=r.WordArray,d=i.x64={};d.Word=s.extend({init:function(c,f){this.high=c,this.low=f}}),d.WordArray=s.extend({init:function(c,f){c=this.words=c||[],f!=a?this.sigBytes=f:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,f=c.length,x=[],u=0;u<f;u++){var m=c[u];x.push(m.high),x.push(m.low)}return l.create(x,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),f=c.words=this.words.slice(0),x=f.length,u=0;u<x;u++)f[u]=f[u].clone();return c}})}(),n})}(Kn)),Kn.exports}var Zn={exports:{}},Fi;function Y0(){return Fi||(Fi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(){if(typeof ArrayBuffer=="function"){var a=n,i=a.lib,r=i.WordArray,s=r.init,l=r.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var c=d.byteLength,f=[],x=0;x<c;x++)f[x>>>2]|=d[x]<<24-x%4*8;s.call(this,f,c)}else s.apply(this,arguments)};l.prototype=r}}(),n.lib.WordArray})}(Zn)),Zn.exports}var Qn={exports:{}},Mi;function K0(){return Mi||(Mi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(d){for(var c=d.words,f=d.sigBytes,x=[],u=0;u<f;u+=2){var m=c[u>>>2]>>>16-u%4*8&65535;x.push(String.fromCharCode(m))}return x.join("")},parse:function(d){for(var c=d.length,f=[],x=0;x<c;x++)f[x>>>1]|=d.charCodeAt(x)<<16-x%2*16;return r.create(f,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,f=d.sigBytes,x=[],u=0;u<f;u+=2){var m=l(c[u>>>2]>>>16-u%4*8&65535);x.push(String.fromCharCode(m))}return x.join("")},parse:function(d){for(var c=d.length,f=[],x=0;x<c;x++)f[x>>>1]|=l(d.charCodeAt(x)<<16-x%2*16);return r.create(f,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(Qn)),Qn.exports}var Jn={exports:{}},zi;function Ut(){return zi||(zi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Base64={stringify:function(d){var c=d.words,f=d.sigBytes,x=this._map;d.clamp();for(var u=[],m=0;m<f;m+=3)for(var y=c[m>>>2]>>>24-m%4*8&255,h=c[m+1>>>2]>>>24-(m+1)%4*8&255,A=c[m+2>>>2]>>>24-(m+2)%4*8&255,I=y<<16|h<<8|A,v=0;v<4&&m+v*.75<f;v++)u.push(x.charAt(I>>>6*(3-v)&63));var S=x.charAt(64);if(S)for(;u.length%4;)u.push(S);return u.join("")},parse:function(d){var c=d.length,f=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var u=0;u<f.length;u++)x[f.charCodeAt(u)]=u}var m=f.charAt(64);if(m){var y=d.indexOf(m);y!==-1&&(c=y)}return l(d,c,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,f){for(var x=[],u=0,m=0;m<c;m++)if(m%4){var y=f[d.charCodeAt(m-1)]<<m%4*2,h=f[d.charCodeAt(m)]>>>6-m%4*2,A=y|h;x[u>>>2]|=A<<24-u%4*8,u++}return r.create(x,u)}}(),n.enc.Base64})}(Jn)),Jn.exports}var Xn={exports:{}},Pi;function Z0(){return Pi||(Pi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var f=d.words,x=d.sigBytes,u=c?this._safe_map:this._map;d.clamp();for(var m=[],y=0;y<x;y+=3)for(var h=f[y>>>2]>>>24-y%4*8&255,A=f[y+1>>>2]>>>24-(y+1)%4*8&255,I=f[y+2>>>2]>>>24-(y+2)%4*8&255,v=h<<16|A<<8|I,S=0;S<4&&y+S*.75<x;S++)m.push(u.charAt(v>>>6*(3-S)&63));var C=u.charAt(64);if(C)for(;m.length%4;)m.push(C);return m.join("")},parse:function(d,c=!0){var f=d.length,x=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var m=0;m<x.length;m++)u[x.charCodeAt(m)]=m}var y=x.charAt(64);if(y){var h=d.indexOf(y);h!==-1&&(f=h)}return l(d,f,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,f){for(var x=[],u=0,m=0;m<c;m++)if(m%4){var y=f[d.charCodeAt(m-1)]<<m%4*2,h=f[d.charCodeAt(m)]>>>6-m%4*2,A=y|h;x[u>>>2]|=A<<24-u%4*8,u++}return r.create(x,u)}}(),n.enc.Base64url})}(Xn)),Xn.exports}var eo={exports:{}},qi;function $t(){return qi||(qi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=a.abs(a.sin(h+1))*4294967296|0})();var f=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,A){for(var I=0;I<16;I++){var v=A+I,S=h[v];h[v]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var C=this._hash.words,B=h[A+0],g=h[A+1],R=h[A+2],p=h[A+3],D=h[A+4],w=h[A+5],L=h[A+6],M=h[A+7],k=h[A+8],O=h[A+9],T=h[A+10],F=h[A+11],b=h[A+12],E=h[A+13],_=h[A+14],P=h[A+15],N=C[0],V=C[1],z=C[2],q=C[3];N=x(N,V,z,q,B,7,c[0]),q=x(q,N,V,z,g,12,c[1]),z=x(z,q,N,V,R,17,c[2]),V=x(V,z,q,N,p,22,c[3]),N=x(N,V,z,q,D,7,c[4]),q=x(q,N,V,z,w,12,c[5]),z=x(z,q,N,V,L,17,c[6]),V=x(V,z,q,N,M,22,c[7]),N=x(N,V,z,q,k,7,c[8]),q=x(q,N,V,z,O,12,c[9]),z=x(z,q,N,V,T,17,c[10]),V=x(V,z,q,N,F,22,c[11]),N=x(N,V,z,q,b,7,c[12]),q=x(q,N,V,z,E,12,c[13]),z=x(z,q,N,V,_,17,c[14]),V=x(V,z,q,N,P,22,c[15]),N=u(N,V,z,q,g,5,c[16]),q=u(q,N,V,z,L,9,c[17]),z=u(z,q,N,V,F,14,c[18]),V=u(V,z,q,N,B,20,c[19]),N=u(N,V,z,q,w,5,c[20]),q=u(q,N,V,z,T,9,c[21]),z=u(z,q,N,V,P,14,c[22]),V=u(V,z,q,N,D,20,c[23]),N=u(N,V,z,q,O,5,c[24]),q=u(q,N,V,z,_,9,c[25]),z=u(z,q,N,V,p,14,c[26]),V=u(V,z,q,N,k,20,c[27]),N=u(N,V,z,q,E,5,c[28]),q=u(q,N,V,z,R,9,c[29]),z=u(z,q,N,V,M,14,c[30]),V=u(V,z,q,N,b,20,c[31]),N=m(N,V,z,q,w,4,c[32]),q=m(q,N,V,z,k,11,c[33]),z=m(z,q,N,V,F,16,c[34]),V=m(V,z,q,N,_,23,c[35]),N=m(N,V,z,q,g,4,c[36]),q=m(q,N,V,z,D,11,c[37]),z=m(z,q,N,V,M,16,c[38]),V=m(V,z,q,N,T,23,c[39]),N=m(N,V,z,q,E,4,c[40]),q=m(q,N,V,z,B,11,c[41]),z=m(z,q,N,V,p,16,c[42]),V=m(V,z,q,N,L,23,c[43]),N=m(N,V,z,q,O,4,c[44]),q=m(q,N,V,z,b,11,c[45]),z=m(z,q,N,V,P,16,c[46]),V=m(V,z,q,N,R,23,c[47]),N=y(N,V,z,q,B,6,c[48]),q=y(q,N,V,z,M,10,c[49]),z=y(z,q,N,V,_,15,c[50]),V=y(V,z,q,N,w,21,c[51]),N=y(N,V,z,q,b,6,c[52]),q=y(q,N,V,z,p,10,c[53]),z=y(z,q,N,V,T,15,c[54]),V=y(V,z,q,N,g,21,c[55]),N=y(N,V,z,q,k,6,c[56]),q=y(q,N,V,z,P,10,c[57]),z=y(z,q,N,V,L,15,c[58]),V=y(V,z,q,N,E,21,c[59]),N=y(N,V,z,q,D,6,c[60]),q=y(q,N,V,z,F,10,c[61]),z=y(z,q,N,V,R,15,c[62]),V=y(V,z,q,N,O,21,c[63]),C[0]=C[0]+N|0,C[1]=C[1]+V|0,C[2]=C[2]+z|0,C[3]=C[3]+q|0},_doFinalize:function(){var h=this._data,A=h.words,I=this._nDataBytes*8,v=h.sigBytes*8;A[v>>>5]|=128<<24-v%32;var S=a.floor(I/4294967296),C=I;A[(v+64>>>9<<4)+15]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,A[(v+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,h.sigBytes=(A.length+1)*4,this._process();for(var B=this._hash,g=B.words,R=0;R<4;R++){var p=g[R];g[R]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}return B},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});function x(h,A,I,v,S,C,B){var g=h+(A&I|~A&v)+S+B;return(g<<C|g>>>32-C)+A}function u(h,A,I,v,S,C,B){var g=h+(A&v|I&~v)+S+B;return(g<<C|g>>>32-C)+A}function m(h,A,I,v,S,C,B){var g=h+(A^I^v)+S+B;return(g<<C|g>>>32-C)+A}function y(h,A,I,v,S,C,B){var g=h+(I^(A|~v))+S+B;return(g<<C|g>>>32-C)+A}i.MD5=l._createHelper(f),i.HmacMD5=l._createHmacHelper(f)}(Math),n.MD5})}(eo)),eo.exports}var to={exports:{}},Vi;function no(){return Vi||(Vi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=i.Hasher,l=a.algo,d=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,x){for(var u=this._hash.words,m=u[0],y=u[1],h=u[2],A=u[3],I=u[4],v=0;v<80;v++){if(v<16)d[v]=f[x+v]|0;else{var S=d[v-3]^d[v-8]^d[v-14]^d[v-16];d[v]=S<<1|S>>>31}var C=(m<<5|m>>>27)+I+d[v];v<20?C+=(y&h|~y&A)+1518500249:v<40?C+=(y^h^A)+1859775393:v<60?C+=(y&h|y&A|h&A)-1894007588:C+=(y^h^A)-899497514,I=A,A=h,h=y<<30|y>>>2,y=m,m=C}u[0]=u[0]+m|0,u[1]=u[1]+y|0,u[2]=u[2]+h|0,u[3]=u[3]+A|0,u[4]=u[4]+I|0},_doFinalize:function(){var f=this._data,x=f.words,u=this._nDataBytes*8,m=f.sigBytes*8;return x[m>>>5]|=128<<24-m%32,x[(m+64>>>9<<4)+14]=Math.floor(u/4294967296),x[(m+64>>>9<<4)+15]=u,f.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}(to)),to.exports}var oo={exports:{}},Hi;function ji(){return Hi||(Hi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.algo,c=[],f=[];(function(){function m(I){for(var v=a.sqrt(I),S=2;S<=v;S++)if(!(I%S))return!1;return!0}function y(I){return(I-(I|0))*4294967296|0}for(var h=2,A=0;A<64;)m(h)&&(A<8&&(c[A]=y(a.pow(h,1/2))),f[A]=y(a.pow(h,1/3)),A++),h++})();var x=[],u=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(m,y){for(var h=this._hash.words,A=h[0],I=h[1],v=h[2],S=h[3],C=h[4],B=h[5],g=h[6],R=h[7],p=0;p<64;p++){if(p<16)x[p]=m[y+p]|0;else{var D=x[p-15],w=(D<<25|D>>>7)^(D<<14|D>>>18)^D>>>3,L=x[p-2],M=(L<<15|L>>>17)^(L<<13|L>>>19)^L>>>10;x[p]=w+x[p-7]+M+x[p-16]}var k=C&B^~C&g,O=A&I^A&v^I&v,T=(A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22),F=(C<<26|C>>>6)^(C<<21|C>>>11)^(C<<7|C>>>25),b=R+F+k+f[p]+x[p],E=T+O;R=g,g=B,B=C,C=S+b|0,S=v,v=I,I=A,A=b+E|0}h[0]=h[0]+A|0,h[1]=h[1]+I|0,h[2]=h[2]+v|0,h[3]=h[3]+S|0,h[4]=h[4]+C|0,h[5]=h[5]+B|0,h[6]=h[6]+g|0,h[7]=h[7]+R|0},_doFinalize:function(){var m=this._data,y=m.words,h=this._nDataBytes*8,A=m.sigBytes*8;return y[A>>>5]|=128<<24-A%32,y[(A+64>>>9<<4)+14]=a.floor(h/4294967296),y[(A+64>>>9<<4)+15]=h,m.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var m=l.clone.call(this);return m._hash=this._hash.clone(),m}});i.SHA256=l._createHelper(u),i.HmacSHA256=l._createHmacHelper(u)}(Math),n.SHA256})}(oo)),oo.exports}var ao={exports:{}},Wi;function Q0(){return Wi||(Wi=1,function(e,o){(function(n,a,i){e.exports=a(we(),ji())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.algo,l=s.SHA256,d=s.SHA224=l.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});a.SHA224=l._createHelper(d),a.HmacSHA224=l._createHmacHelper(d)}(),n.SHA224})}(ao)),ao.exports}var io={exports:{}},Gi;function Ui(){return Gi||(Gi=1,function(e,o){(function(n,a,i){e.exports=a(we(),bn())})(me,function(n){return function(){var a=n,i=a.lib,r=i.Hasher,s=a.x64,l=s.Word,d=s.WordArray,c=a.algo;function f(){return l.create.apply(l,arguments)}var x=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],u=[];(function(){for(var y=0;y<80;y++)u[y]=f()})();var m=c.SHA512=r.extend({_doReset:function(){this._hash=new d.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(y,h){for(var A=this._hash.words,I=A[0],v=A[1],S=A[2],C=A[3],B=A[4],g=A[5],R=A[6],p=A[7],D=I.high,w=I.low,L=v.high,M=v.low,k=S.high,O=S.low,T=C.high,F=C.low,b=B.high,E=B.low,_=g.high,P=g.low,N=R.high,V=R.low,z=p.high,q=p.low,X=D,U=w,j=L,H=M,K=k,te=O,ce=T,ye=F,G=b,J=E,ee=_,ne=P,ae=N,ie=V,ue=z,Se=q,ke=0;ke<80;ke++){var qe,We,de=u[ke];if(ke<16)We=de.high=y[h+ke*2]|0,qe=de.low=y[h+ke*2+1]|0;else{var xe=u[ke-15],fe=xe.high,Ge=xe.low,ct=(fe>>>1|Ge<<31)^(fe>>>8|Ge<<24)^fe>>>7,tt=(Ge>>>1|fe<<31)^(Ge>>>8|fe<<24)^(Ge>>>7|fe<<25),dt=u[ke-2],Ye=dt.high,et=dt.low,$e=(Ye>>>19|et<<13)^(Ye<<3|et>>>29)^Ye>>>6,St=(et>>>19|Ye<<13)^(et<<3|Ye>>>29)^(et>>>6|Ye<<26),nt=u[ke-7],Ke=nt.high,ft=nt.low,W=u[ke-16],Y=W.high,Q=W.low;qe=tt+ft,We=ct+Ke+(qe>>>0<tt>>>0?1:0),qe=qe+St,We=We+$e+(qe>>>0<St>>>0?1:0),qe=qe+Q,We=We+Y+(qe>>>0<Q>>>0?1:0),de.high=We,de.low=qe}var re=G&ee^~G&ae,se=J&ne^~J&ie,le=X&j^X&K^j&K,oe=U&H^U&te^H&te,Ce=(X>>>28|U<<4)^(X<<30|U>>>2)^(X<<25|U>>>7),Be=(U>>>28|X<<4)^(U<<30|X>>>2)^(U<<25|X>>>7),Ee=(G>>>14|J<<18)^(G>>>18|J<<14)^(G<<23|J>>>9),Ve=(J>>>14|G<<18)^(J>>>18|G<<14)^(J<<23|G>>>9),ot=x[ke],kt=ot.high,Ot=ot.low,Ze=Se+Ve,at=ue+Ee+(Ze>>>0<Se>>>0?1:0),Ze=Ze+se,at=at+re+(Ze>>>0<se>>>0?1:0),Ze=Ze+Ot,at=at+kt+(Ze>>>0<Ot>>>0?1:0),Ze=Ze+qe,at=at+We+(Ze>>>0<qe>>>0?1:0),bt=Be+oe,qt=Ce+le+(bt>>>0<Be>>>0?1:0);ue=ae,Se=ie,ae=ee,ie=ne,ee=G,ne=J,J=ye+Ze|0,G=ce+at+(J>>>0<ye>>>0?1:0)|0,ce=K,ye=te,K=j,te=H,j=X,H=U,U=Ze+bt|0,X=at+qt+(U>>>0<Ze>>>0?1:0)|0}w=I.low=w+U,I.high=D+X+(w>>>0<U>>>0?1:0),M=v.low=M+H,v.high=L+j+(M>>>0<H>>>0?1:0),O=S.low=O+te,S.high=k+K+(O>>>0<te>>>0?1:0),F=C.low=F+ye,C.high=T+ce+(F>>>0<ye>>>0?1:0),E=B.low=E+J,B.high=b+G+(E>>>0<J>>>0?1:0),P=g.low=P+ne,g.high=_+ee+(P>>>0<ne>>>0?1:0),V=R.low=V+ie,R.high=N+ae+(V>>>0<ie>>>0?1:0),q=p.low=q+Se,p.high=z+ue+(q>>>0<Se>>>0?1:0)},_doFinalize:function(){var y=this._data,h=y.words,A=this._nDataBytes*8,I=y.sigBytes*8;h[I>>>5]|=128<<24-I%32,h[(I+128>>>10<<5)+30]=Math.floor(A/4294967296),h[(I+128>>>10<<5)+31]=A,y.sigBytes=h.length*4,this._process();var v=this._hash.toX32();return v},clone:function(){var y=r.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});a.SHA512=r._createHelper(m),a.HmacSHA512=r._createHmacHelper(m)}(),n.SHA512})}(io)),io.exports}var ro={exports:{}},$i;function J0(){return $i||($i=1,function(e,o){(function(n,a,i){e.exports=a(we(),bn(),Ui())})(me,function(n){return function(){var a=n,i=a.x64,r=i.Word,s=i.WordArray,l=a.algo,d=l.SHA512,c=l.SHA384=d.extend({_doReset:function(){this._hash=new s.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var f=d._doFinalize.call(this);return f.sigBytes-=16,f}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(ro)),ro.exports}var lo={exports:{}},Yi;function X0(){return Yi||(Yi=1,function(e,o){(function(n,a,i){e.exports=a(we(),bn())})(me,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.x64,c=d.Word,f=i.algo,x=[],u=[],m=[];(function(){for(var A=1,I=0,v=0;v<24;v++){x[A+5*I]=(v+1)*(v+2)/2%64;var S=I%5,C=(2*A+3*I)%5;A=S,I=C}for(var A=0;A<5;A++)for(var I=0;I<5;I++)u[A+5*I]=I+(2*A+3*I)%5*5;for(var B=1,g=0;g<24;g++){for(var R=0,p=0,D=0;D<7;D++){if(B&1){var w=(1<<D)-1;w<32?p^=1<<w:R^=1<<w-32}B&128?B=B<<1^113:B<<=1}m[g]=c.create(R,p)}})();var y=[];(function(){for(var A=0;A<25;A++)y[A]=c.create()})();var h=f.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var A=this._state=[],I=0;I<25;I++)A[I]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(A,I){for(var v=this._state,S=this.blockSize/2,C=0;C<S;C++){var B=A[I+2*C],g=A[I+2*C+1];B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,g=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360;var R=v[C];R.high^=g,R.low^=B}for(var p=0;p<24;p++){for(var D=0;D<5;D++){for(var w=0,L=0,M=0;M<5;M++){var R=v[D+5*M];w^=R.high,L^=R.low}var k=y[D];k.high=w,k.low=L}for(var D=0;D<5;D++)for(var O=y[(D+4)%5],T=y[(D+1)%5],F=T.high,b=T.low,w=O.high^(F<<1|b>>>31),L=O.low^(b<<1|F>>>31),M=0;M<5;M++){var R=v[D+5*M];R.high^=w,R.low^=L}for(var E=1;E<25;E++){var w,L,R=v[E],_=R.high,P=R.low,N=x[E];N<32?(w=_<<N|P>>>32-N,L=P<<N|_>>>32-N):(w=P<<N-32|_>>>64-N,L=_<<N-32|P>>>64-N);var V=y[u[E]];V.high=w,V.low=L}var z=y[0],q=v[0];z.high=q.high,z.low=q.low;for(var D=0;D<5;D++)for(var M=0;M<5;M++){var E=D+5*M,R=v[E],X=y[E],U=y[(D+1)%5+5*M],j=y[(D+2)%5+5*M];R.high=X.high^~U.high&j.high,R.low=X.low^~U.low&j.low}var R=v[0],H=m[p];R.high^=H.high,R.low^=H.low}},_doFinalize:function(){var A=this._data,I=A.words;this._nDataBytes*8;var v=A.sigBytes*8,S=this.blockSize*32;I[v>>>5]|=1<<24-v%32,I[(a.ceil((v+1)/S)*S>>>5)-1]|=128,A.sigBytes=I.length*4,this._process();for(var C=this._state,B=this.cfg.outputLength/8,g=B/8,R=[],p=0;p<g;p++){var D=C[p],w=D.high,L=D.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,L=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,R.push(L),R.push(w)}return new s.init(R,B)},clone:function(){for(var A=l.clone.call(this),I=A._state=this._state.slice(0),v=0;v<25;v++)I[v]=I[v].clone();return A}});i.SHA3=l._createHelper(h),i.HmacSHA3=l._createHmacHelper(h)}(Math),n.SHA3})}(lo)),lo.exports}var so={exports:{}},Ki;function ec(){return Ki||(Ki=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){/** @preserve
|
|
59
59
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
60
60
|
|
|
61
61
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -75,7 +75,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
75
75
|
`}i&&(a=a-256);for(var d=new cn(a),c=o+1;c<n;++c)d.mulAdd(256,this.get(c));return l+d.toString()},e.prototype.parseBitString=function(o,n,a){for(var i=this.get(o),r=(n-o-1<<3)-i,s="("+r+` bit)
|
|
76
76
|
`,l="",d=o+1;d<n;++d){for(var c=this.get(d),f=d==n-1?i:0,x=7;x>=f;--x)l+=c>>x&1?"1":"0";if(l.length>a)return s+Qt(l,a)}return s+l},e.prototype.parseOctetString=function(o,n,a){if(this.isASCII(o,n))return Qt(this.parseStringISO(o,n),a);var i=n-o,r="("+i+` byte)
|
|
77
77
|
`;a/=2,i>a&&(n=o+a);for(var s=o;s<n;++s)r+=this.hexByte(this.get(s));return i>a&&(r+=vr),r},e.prototype.parseOID=function(o,n,a){for(var i="",r=new cn,s=0,l=o;l<n;++l){var d=this.get(l);if(r.mulAdd(128,d&127),s+=7,!(d&128)){if(i==="")if(r=r.simplify(),r instanceof cn)r.sub(80),i="2."+r.toString();else{var c=r<80?r<40?0:1:2;i=c+"."+(r-c*40)}else i+="."+r.toString();if(i.length>a)return Qt(i,a);r=new cn,s=0}}return s>0&&(i+=".incomplete"),i},e}(),Tc=function(){function e(o,n,a,i,r){if(!(i instanceof Sr))throw new Error("Invalid tag value.");this.stream=o,this.header=n,this.length=a,this.tag=i,this.sub=r}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(o){if(this.tag===void 0)return null;o===void 0&&(o=1/0);var n=this.posContent(),a=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+a,o);switch(this.tag.tagNumber){case 1:return this.stream.get(n)===0?"false":"true";case 2:return this.stream.parseInteger(n,n+a);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(n,n+a,o);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+a,o);case 6:return this.stream.parseOID(n,n+a,o);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Qt(this.stream.parseStringUTF(n,n+a),o);case 18:case 19:case 20:case 21:case 22:case 26:return Qt(this.stream.parseStringISO(n,n+a),o);case 30:return Qt(this.stream.parseStringBMP(n,n+a),o);case 23:case 24:return this.stream.parseTime(n,n+a,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(o){o===void 0&&(o="");var n=o+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(n+="+"),n+=this.length,this.tag.tagConstructed?n+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(n+=" (encapsulates)"),n+=`
|
|
78
|
-
`,this.sub!==null){o+=" ";for(var a=0,i=this.sub.length;a<i;++a)n+=this.sub[a].toPrettyString(o)}return n},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(o){var n=o.get(),a=n&127;if(a==n)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(o.pos-1));if(a===0)return null;n=0;for(var i=0;i<a;++i)n=n*256+o.get();return n},e.prototype.getHexStringValue=function(){var o=this.toHexString(),n=this.header*2,a=this.length*2;return o.substr(n,a)},e.decode=function(o){var n;o instanceof Lo?n=o:n=new Lo(o,0);var a=new Lo(n),i=new Sr(n),r=e.decodeLength(n),s=n.pos,l=s-a.pos,d=null,c=function(){var x=[];if(r!==null){for(var u=s+r;n.pos<u;)x[x.length]=e.decode(n);if(n.pos!=u)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var m=e.decode(n);if(m.tag.isEOC())break;x[x.length]=m}r=s-n.pos}catch(y){throw new Error("Exception while decoding undefined length content: "+y)}return x};if(i.tagConstructed)d=c();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");d=c();for(var f=0;f<d.length;++f)if(d[f].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{d=null}if(d===null){if(r===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(r)}return new e(a,l,r,i,d)},e}(),Sr=function(){function e(o){var n=o.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var a=new cn;do n=o.get(),a.mulAdd(128,n&127);while(n&128);this.tagNumber=a.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Dt,Bc=0xdeadbeefcafe,Cr=(Bc&16777215)==15715070,Je=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Ec=(1<<26)/Je[Je.length-1],ge=function(){function e(o,n,a){o!=null&&(typeof o=="number"?this.fromNumber(o,n,a):n==null&&typeof o!="string"?this.fromString(o,256):this.fromString(o,n))}return e.prototype.toString=function(o){if(this.s<0)return"-"+this.negate().toString(o);var n;if(o==16)n=4;else if(o==8)n=3;else if(o==2)n=1;else if(o==32)n=5;else if(o==4)n=2;else return this.toRadix(o);var a=(1<<n)-1,i,r=!1,s="",l=this.t,d=this.DB-l*this.DB%n;if(l-- >0)for(d<this.DB&&(i=this[l]>>d)>0&&(r=!0,s=At(i));l>=0;)d<n?(i=(this[l]&(1<<d)-1)<<n-d,i|=this[--l]>>(d+=this.DB-n)):(i=this[l]>>(d-=n)&a,d<=0&&(d+=this.DB,--l)),i>0&&(r=!0),r&&(s+=At(i));return r?s:"0"},e.prototype.negate=function(){var o=pe();return e.ZERO.subTo(this,o),o},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(o){var n=this.s-o.s;if(n!=0)return n;var a=this.t;if(n=a-o.t,n!=0)return this.s<0?-n:n;for(;--a>=0;)if((n=this[a]-o[a])!=0)return n;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+wn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var n=pe();return this.abs().divRemTo(o,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&o.subTo(n,n),n},e.prototype.modPowInt=function(o,n){var a;return o<256||n.isEven()?a=new wr(n):a=new Ar(n),this.exp(o,a)},e.prototype.clone=function(){var o=pe();return this.copyTo(o),o},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var o=this.t,n=[];n[0]=this.s;var a=this.DB-o*this.DB%8,i,r=0;if(o-- >0)for(a<this.DB&&(i=this[o]>>a)!=(this.s&this.DM)>>a&&(n[r++]=i|this.s<<this.DB-a);o>=0;)a<8?(i=(this[o]&(1<<a)-1)<<8-a,i|=this[--o]>>(a+=this.DB-8)):(i=this[o]>>(a-=8)&255,a<=0&&(a+=this.DB,--o)),i&128&&(i|=-256),r==0&&(this.s&128)!=(i&128)&&++r,(r>0||i!=this.s)&&(n[r++]=i);return n},e.prototype.equals=function(o){return this.compareTo(o)==0},e.prototype.min=function(o){return this.compareTo(o)<0?this:o},e.prototype.max=function(o){return this.compareTo(o)>0?this:o},e.prototype.and=function(o){var n=pe();return this.bitwiseTo(o,vc,n),n},e.prototype.or=function(o){var n=pe();return this.bitwiseTo(o,vn,n),n},e.prototype.xor=function(o){var n=pe();return this.bitwiseTo(o,yr,n),n},e.prototype.andNot=function(o){var n=pe();return this.bitwiseTo(o,xr,n),n},e.prototype.not=function(){for(var o=pe(),n=0;n<this.t;++n)o[n]=this.DM&~this[n];return o.t=this.t,o.s=~this.s,o},e.prototype.shiftLeft=function(o){var n=pe();return o<0?this.rShiftTo(-o,n):this.lShiftTo(o,n),n},e.prototype.shiftRight=function(o){var n=pe();return o<0?this.lShiftTo(-o,n):this.rShiftTo(o,n),n},e.prototype.getLowestSetBit=function(){for(var o=0;o<this.t;++o)if(this[o]!=0)return o*this.DB+Sc(this[o]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var o=0,n=this.s&this.DM,a=0;a<this.t;++a)o+=Cc(this[a]^n);return o},e.prototype.testBit=function(o){var n=Math.floor(o/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<o%this.DB)!=0},e.prototype.setBit=function(o){return this.changeBit(o,vn)},e.prototype.clearBit=function(o){return this.changeBit(o,xr)},e.prototype.flipBit=function(o){return this.changeBit(o,yr)},e.prototype.add=function(o){var n=pe();return this.addTo(o,n),n},e.prototype.subtract=function(o){var n=pe();return this.subTo(o,n),n},e.prototype.multiply=function(o){var n=pe();return this.multiplyTo(o,n),n},e.prototype.divide=function(o){var n=pe();return this.divRemTo(o,n,null),n},e.prototype.remainder=function(o){var n=pe();return this.divRemTo(o,null,n),n},e.prototype.divideAndRemainder=function(o){var n=pe(),a=pe();return this.divRemTo(o,n,a),[n,a]},e.prototype.modPow=function(o,n){var a=o.bitLength(),i,r=It(1),s;if(a<=0)return r;a<18?i=1:a<48?i=3:a<144?i=4:a<768?i=5:i=6,a<8?s=new wr(n):n.isEven()?s=new Ic(n):s=new Ar(n);var l=[],d=3,c=i-1,f=(1<<i)-1;if(l[1]=s.convert(this),i>1){var x=pe();for(s.sqrTo(l[1],x);d<=f;)l[d]=pe(),s.mulTo(x,l[d-2],l[d]),d+=2}var u=o.t-1,m,y=!0,h=pe(),A;for(a=wn(o[u])-1;u>=0;){for(a>=c?m=o[u]>>a-c&f:(m=(o[u]&(1<<a+1)-1)<<c-a,u>0&&(m|=o[u-1]>>this.DB+a-c)),d=i;!(m&1);)m>>=1,--d;if((a-=d)<0&&(a+=this.DB,--u),y)l[m].copyTo(r),y=!1;else{for(;d>1;)s.sqrTo(r,h),s.sqrTo(h,r),d-=2;d>0?s.sqrTo(r,h):(A=r,r=h,h=A),s.mulTo(h,l[m],r)}for(;u>=0&&!(o[u]&1<<a);)s.sqrTo(r,h),A=r,r=h,h=A,--a<0&&(a=this.DB-1,--u)}return s.revert(r)},e.prototype.modInverse=function(o){var n=o.isEven();if(this.isEven()&&n||o.signum()==0)return e.ZERO;for(var a=o.clone(),i=this.clone(),r=It(1),s=It(0),l=It(0),d=It(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),n?((!r.isEven()||!s.isEven())&&(r.addTo(this,r),s.subTo(o,s)),r.rShiftTo(1,r)):s.isEven()||s.subTo(o,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),n?((!l.isEven()||!d.isEven())&&(l.addTo(this,l),d.subTo(o,d)),l.rShiftTo(1,l)):d.isEven()||d.subTo(o,d),d.rShiftTo(1,d);a.compareTo(i)>=0?(a.subTo(i,a),n&&r.subTo(l,r),s.subTo(d,s)):(i.subTo(a,i),n&&l.subTo(r,l),d.subTo(s,d))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(d.compareTo(o)>=0)return d.subtract(o);if(d.signum()<0)d.addTo(o,d);else return d;return d.signum()<0?d.add(o):d},e.prototype.pow=function(o){return this.exp(o,new Dc)},e.prototype.gcd=function(o){var n=this.s<0?this.negate():this.clone(),a=o.s<0?o.negate():o.clone();if(n.compareTo(a)<0){var i=n;n=a,a=i}var r=n.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return n;for(r<s&&(s=r),s>0&&(n.rShiftTo(s,n),a.rShiftTo(s,a));n.signum()>0;)(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),(r=a.getLowestSetBit())>0&&a.rShiftTo(r,a),n.compareTo(a)>=0?(n.subTo(a,n),n.rShiftTo(1,n)):(a.subTo(n,a),a.rShiftTo(1,a));return s>0&&a.lShiftTo(s,a),a},e.prototype.isProbablePrime=function(o){var n,a=this.abs();if(a.t==1&&a[0]<=Je[Je.length-1]){for(n=0;n<Je.length;++n)if(a[0]==Je[n])return!0;return!1}if(a.isEven())return!1;for(n=1;n<Je.length;){for(var i=Je[n],r=n+1;r<Je.length&&i<Ec;)i*=Je[r++];for(i=a.modInt(i);n<r;)if(i%Je[n++]==0)return!1}return a.millerRabin(o)},e.prototype.copyTo=function(o){for(var n=this.t-1;n>=0;--n)o[n]=this[n];o.t=this.t,o.s=this.s},e.prototype.fromInt=function(o){this.t=1,this.s=o<0?-1:0,o>0?this[0]=o:o<-1?this[0]=o+this.DV:this.t=0},e.prototype.fromString=function(o,n){var a;if(n==16)a=4;else if(n==8)a=3;else if(n==256)a=8;else if(n==2)a=1;else if(n==32)a=5;else if(n==4)a=2;else{this.fromRadix(o,n);return}this.t=0,this.s=0;for(var i=o.length,r=!1,s=0;--i>=0;){var l=a==8?+o[i]&255:Tr(o,i);if(l<0){o.charAt(i)=="-"&&(r=!0);continue}r=!1,s==0?this[this.t++]=l:s+a>this.DB?(this[this.t-1]|=(l&(1<<this.DB-s)-1)<<s,this[this.t++]=l>>this.DB-s):this[this.t-1]|=l<<s,s+=a,s>=this.DB&&(s-=this.DB)}a==8&&+o[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),r&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var o=this.s&this.DM;this.t>0&&this[this.t-1]==o;)--this.t},e.prototype.dlShiftTo=function(o,n){var a;for(a=this.t-1;a>=0;--a)n[a+o]=this[a];for(a=o-1;a>=0;--a)n[a]=0;n.t=this.t+o,n.s=this.s},e.prototype.drShiftTo=function(o,n){for(var a=o;a<this.t;++a)n[a-o]=this[a];n.t=Math.max(this.t-o,0),n.s=this.s},e.prototype.lShiftTo=function(o,n){for(var a=o%this.DB,i=this.DB-a,r=(1<<i)-1,s=Math.floor(o/this.DB),l=this.s<<a&this.DM,d=this.t-1;d>=0;--d)n[d+s+1]=this[d]>>i|l,l=(this[d]&r)<<a;for(var d=s-1;d>=0;--d)n[d]=0;n[s]=l,n.t=this.t+s+1,n.s=this.s,n.clamp()},e.prototype.rShiftTo=function(o,n){n.s=this.s;var a=Math.floor(o/this.DB);if(a>=this.t){n.t=0;return}var i=o%this.DB,r=this.DB-i,s=(1<<i)-1;n[0]=this[a]>>i;for(var l=a+1;l<this.t;++l)n[l-a-1]|=(this[l]&s)<<r,n[l-a]=this[l]>>i;i>0&&(n[this.t-a-1]|=(this.s&s)<<r),n.t=this.t-a,n.clamp()},e.prototype.subTo=function(o,n){for(var a=0,i=0,r=Math.min(o.t,this.t);a<r;)i+=this[a]-o[a],n[a++]=i&this.DM,i>>=this.DB;if(o.t<this.t){for(i-=o.s;a<this.t;)i+=this[a],n[a++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;a<o.t;)i-=o[a],n[a++]=i&this.DM,i>>=this.DB;i-=o.s}n.s=i<0?-1:0,i<-1?n[a++]=this.DV+i:i>0&&(n[a++]=i),n.t=a,n.clamp()},e.prototype.multiplyTo=function(o,n){var a=this.abs(),i=o.abs(),r=a.t;for(n.t=r+i.t;--r>=0;)n[r]=0;for(r=0;r<i.t;++r)n[r+a.t]=a.am(0,i[r],n,r,0,a.t);n.s=0,n.clamp(),this.s!=o.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(o){for(var n=this.abs(),a=o.t=2*n.t;--a>=0;)o[a]=0;for(a=0;a<n.t-1;++a){var i=n.am(a,n[a],o,2*a,0,1);(o[a+n.t]+=n.am(a+1,2*n[a],o,2*a+1,i,n.t-a-1))>=n.DV&&(o[a+n.t]-=n.DV,o[a+n.t+1]=1)}o.t>0&&(o[o.t-1]+=n.am(a,n[a],o,2*a,0,1)),o.s=0,o.clamp()},e.prototype.divRemTo=function(o,n,a){var i=o.abs();if(!(i.t<=0)){var r=this.abs();if(r.t<i.t){n!=null&&n.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=pe());var s=pe(),l=this.s,d=o.s,c=this.DB-wn(i[i.t-1]);c>0?(i.lShiftTo(c,s),r.lShiftTo(c,a)):(i.copyTo(s),r.copyTo(a));var f=s.t,x=s[f-1];if(x!=0){var u=x*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),m=this.FV/u,y=(1<<this.F1)/u,h=1<<this.F2,A=a.t,I=A-f,v=n??pe();for(s.dlShiftTo(I,v),a.compareTo(v)>=0&&(a[a.t++]=1,a.subTo(v,a)),e.ONE.dlShiftTo(f,v),v.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--I>=0;){var S=a[--A]==x?this.DM:Math.floor(a[A]*m+(a[A-1]+h)*y);if((a[A]+=s.am(0,S,a,I,0,f))<S)for(s.dlShiftTo(I,v),a.subTo(v,a);a[A]<--S;)a.subTo(v,a)}n!=null&&(a.drShiftTo(f,n),l!=d&&e.ZERO.subTo(n,n)),a.t=f,a.clamp(),c>0&&a.rShiftTo(c,a),l<0&&e.ZERO.subTo(a,a)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var o=this[0];if(!(o&1))return 0;var n=o&3;return n=n*(2-(o&15)*n)&15,n=n*(2-(o&255)*n)&255,n=n*(2-((o&65535)*n&65535))&65535,n=n*(2-o*n%this.DV)%this.DV,n>0?this.DV-n:-n},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(o,n){if(o>4294967295||o<1)return e.ONE;var a=pe(),i=pe(),r=n.convert(this),s=wn(o)-1;for(r.copyTo(a);--s>=0;)if(n.sqrTo(a,i),(o&1<<s)>0)n.mulTo(i,r,a);else{var l=a;a=i,i=l}return n.revert(a)},e.prototype.chunkSize=function(o){return Math.floor(Math.LN2*this.DB/Math.log(o))},e.prototype.toRadix=function(o){if(o==null&&(o=10),this.signum()==0||o<2||o>36)return"0";var n=this.chunkSize(o),a=Math.pow(o,n),i=It(a),r=pe(),s=pe(),l="";for(this.divRemTo(i,r,s);r.signum()>0;)l=(a+s.intValue()).toString(o).substr(1)+l,r.divRemTo(i,r,s);return s.intValue().toString(o)+l},e.prototype.fromRadix=function(o,n){this.fromInt(0),n==null&&(n=10);for(var a=this.chunkSize(n),i=Math.pow(n,a),r=!1,s=0,l=0,d=0;d<o.length;++d){var c=Tr(o,d);if(c<0){o.charAt(d)=="-"&&this.signum()==0&&(r=!0);continue}l=n*l+c,++s>=a&&(this.dMultiply(i),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(l,0)),r&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(o,n,a){if(typeof n=="number")if(o<2)this.fromInt(1);else for(this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),vn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>o&&this.subTo(e.ONE.shiftLeft(o-1),this);else{var i=[],r=o&7;i.length=(o>>3)+1,n.nextBytes(i),r>0?i[0]&=(1<<r)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(o,n,a){var i,r,s=Math.min(o.t,this.t);for(i=0;i<s;++i)a[i]=n(this[i],o[i]);if(o.t<this.t){for(r=o.s&this.DM,i=s;i<this.t;++i)a[i]=n(this[i],r);a.t=this.t}else{for(r=this.s&this.DM,i=s;i<o.t;++i)a[i]=n(r,o[i]);a.t=o.t}a.s=n(this.s,o.s),a.clamp()},e.prototype.changeBit=function(o,n){var a=e.ONE.shiftLeft(o);return this.bitwiseTo(a,n,a),a},e.prototype.addTo=function(o,n){for(var a=0,i=0,r=Math.min(o.t,this.t);a<r;)i+=this[a]+o[a],n[a++]=i&this.DM,i>>=this.DB;if(o.t<this.t){for(i+=o.s;a<this.t;)i+=this[a],n[a++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;a<o.t;)i+=o[a],n[a++]=i&this.DM,i>>=this.DB;i+=o.s}n.s=i<0?-1:0,i>0?n[a++]=i:i<-1&&(n[a++]=this.DV+i),n.t=a,n.clamp()},e.prototype.dMultiply=function(o){this[this.t]=this.am(0,o-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(o,n){if(o!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=o;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},e.prototype.multiplyLowerTo=function(o,n,a){var i=Math.min(this.t+o.t,n);for(a.s=0,a.t=i;i>0;)a[--i]=0;for(var r=a.t-this.t;i<r;++i)a[i+this.t]=this.am(0,o[i],a,i,0,this.t);for(var r=Math.min(o.t,n);i<r;++i)this.am(0,o[i],a,i,0,n-i);a.clamp()},e.prototype.multiplyUpperTo=function(o,n,a){--n;var i=a.t=this.t+o.t-n;for(a.s=0;--i>=0;)a[i]=0;for(i=Math.max(n-this.t,0);i<o.t;++i)a[this.t+i-n]=this.am(n-i,o[i],a,0,0,this.t+i-n);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(o){if(o<=0)return 0;var n=this.DV%o,a=this.s<0?o-1:0;if(this.t>0)if(n==0)a=this[0]%o;else for(var i=this.t-1;i>=0;--i)a=(n*a+this[i])%o;return a},e.prototype.millerRabin=function(o){var n=this.subtract(e.ONE),a=n.getLowestSetBit();if(a<=0)return!1;var i=n.shiftRight(a);o=o+1>>1,o>Je.length&&(o=Je.length);for(var r=pe(),s=0;s<o;++s){r.fromInt(Je[Math.floor(Math.random()*Je.length)]);var l=r.modPow(i,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(n)!=0){for(var d=1;d++<a&&l.compareTo(n)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(n)!=0)return!1}}return!0},e.prototype.square=function(){var o=pe();return this.squareTo(o),o},e.prototype.gcda=function(o,n){var a=this.s<0?this.negate():this.clone(),i=o.s<0?o.negate():o.clone();if(a.compareTo(i)<0){var r=a;a=i,i=r}var s=a.getLowestSetBit(),l=i.getLowestSetBit();if(l<0){n(a);return}s<l&&(l=s),l>0&&(a.rShiftTo(l,a),i.rShiftTo(l,i));var d=function(){(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),a.compareTo(i)>=0?(a.subTo(i,a),a.rShiftTo(1,a)):(i.subTo(a,i),i.rShiftTo(1,i)),a.signum()>0?setTimeout(d,0):(l>0&&i.lShiftTo(l,i),setTimeout(function(){n(i)},0))};setTimeout(d,10)},e.prototype.fromNumberAsync=function(o,n,a,i){if(typeof n=="number")if(o<2)this.fromInt(1);else{this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),vn,this),this.isEven()&&this.dAddOffset(1,0);var r=this,s=function(){r.dAddOffset(2,0),r.bitLength()>o&&r.subTo(e.ONE.shiftLeft(o-1),r),r.isProbablePrime(n)?setTimeout(function(){i()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],d=o&7;l.length=(o>>3)+1,n.nextBytes(l),d>0?l[0]&=(1<<d)-1:l[0]=0,this.fromString(l,256)}},e}(),Dc=function(){function e(){}return e.prototype.convert=function(o){return o},e.prototype.revert=function(o){return o},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a)},e.prototype.sqrTo=function(o,n){o.squareTo(n)},e}(),wr=function(){function e(o){this.m=o}return e.prototype.convert=function(o){return o.s<0||o.compareTo(this.m)>=0?o.mod(this.m):o},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){o.divRemTo(this.m,null,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}(),Ar=function(){function e(o){this.m=o,this.mp=o.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<o.DB-15)-1,this.mt2=2*o.t}return e.prototype.convert=function(o){var n=pe();return o.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),o.s<0&&n.compareTo(ge.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(o){var n=pe();return o.copyTo(n),this.reduce(n),n},e.prototype.reduce=function(o){for(;o.t<=this.mt2;)o[o.t++]=0;for(var n=0;n<this.m.t;++n){var a=o[n]&32767,i=a*this.mpl+((a*this.mph+(o[n]>>15)*this.mpl&this.um)<<15)&o.DM;for(a=n+this.m.t,o[a]+=this.m.am(0,i,o,n,0,this.m.t);o[a]>=o.DV;)o[a]-=o.DV,o[++a]++}o.clamp(),o.drShiftTo(this.m.t,o),o.compareTo(this.m)>=0&&o.subTo(this.m,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}(),Ic=function(){function e(o){this.m=o,this.r2=pe(),this.q3=pe(),ge.ONE.dlShiftTo(2*o.t,this.r2),this.mu=this.r2.divide(o)}return e.prototype.convert=function(o){if(o.s<0||o.t>2*this.m.t)return o.mod(this.m);if(o.compareTo(this.m)<0)return o;var n=pe();return o.copyTo(n),this.reduce(n),n},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){for(o.drShiftTo(this.m.t-1,this.r2),o.t>this.m.t+1&&(o.t=this.m.t+1,o.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);o.compareTo(this.r2)<0;)o.dAddOffset(1,this.m.t+1);for(o.subTo(this.r2,o);o.compareTo(this.m)>=0;)o.subTo(this.m,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}();function pe(){return new ge(null)}function Me(e,o){return new ge(e,o)}var kr=typeof navigator<"u";kr&&Cr&&navigator.appName=="Microsoft Internet Explorer"?(ge.prototype.am=function(o,n,a,i,r,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,f=this[o++]>>15,x=d*c+f*l;c=l*c+((x&32767)<<15)+a[i]+(r&1073741823),r=(c>>>30)+(x>>>15)+d*f+(r>>>30),a[i++]=c&1073741823}return r},Dt=30):kr&&Cr&&navigator.appName!="Netscape"?(ge.prototype.am=function(o,n,a,i,r,s){for(;--s>=0;){var l=n*this[o++]+a[i]+r;r=Math.floor(l/67108864),a[i++]=l&67108863}return r},Dt=26):(ge.prototype.am=function(o,n,a,i,r,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,f=this[o++]>>14,x=d*c+f*l;c=l*c+((x&16383)<<14)+a[i]+r,r=(c>>28)+(x>>14)+d*f,a[i++]=c&268435455}return r},Dt=28),ge.prototype.DB=Dt,ge.prototype.DM=(1<<Dt)-1,ge.prototype.DV=1<<Dt;var No=52;ge.prototype.FV=Math.pow(2,No),ge.prototype.F1=No-Dt,ge.prototype.F2=2*Dt-No;var Cn=[],Jt,ut;for(Jt="0".charCodeAt(0),ut=0;ut<=9;++ut)Cn[Jt++]=ut;for(Jt="a".charCodeAt(0),ut=10;ut<36;++ut)Cn[Jt++]=ut;for(Jt="A".charCodeAt(0),ut=10;ut<36;++ut)Cn[Jt++]=ut;function Tr(e,o){var n=Cn[e.charCodeAt(o)];return n??-1}function It(e){var o=pe();return o.fromInt(e),o}function wn(e){var o=1,n;return(n=e>>>16)!=0&&(e=n,o+=16),(n=e>>8)!=0&&(e=n,o+=8),(n=e>>4)!=0&&(e=n,o+=4),(n=e>>2)!=0&&(e=n,o+=2),(n=e>>1)!=0&&(e=n,o+=1),o}ge.ZERO=It(0),ge.ONE=It(1);var Rc=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(o){var n,a,i;for(n=0;n<256;++n)this.S[n]=n;for(a=0,n=0;n<256;++n)a=a+this.S[n]+o[n%o.length]&255,i=this.S[n],this.S[n]=this.S[a],this.S[a]=i;this.i=0,this.j=0},e.prototype.next=function(){var o;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,o=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=o,this.S[o+this.S[this.i]&255]},e}();function Lc(){return new Rc}var Br=256,An,Rt=null,xt;if(Rt==null){Rt=[],xt=0;var kn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var _o=new Uint32Array(256);for(window.crypto.getRandomValues(_o),kn=0;kn<_o.length;++kn)Rt[xt++]=_o[kn]&255}var Tn=0,Bn=function(e){if(Tn=Tn||0,Tn>=256||xt>=Br){window.removeEventListener?window.removeEventListener("mousemove",Bn,!1):window.detachEvent&&window.detachEvent("onmousemove",Bn);return}try{var o=e.x+e.y;Rt[xt++]=o&255,Tn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Bn,!1):window.attachEvent&&window.attachEvent("onmousemove",Bn))}function Nc(){if(An==null){for(An=Lc();xt<Br;){var e=Math.floor(65536*Math.random());Rt[xt++]=e&255}for(An.init(Rt),xt=0;xt<Rt.length;++xt)Rt[xt]=0;xt=0}return An.next()}var Oo=function(){function e(){}return e.prototype.nextBytes=function(o){for(var n=0;n<o.length;++n)o[n]=Nc()},e}();function _c(e,o){if(o<e.length+22)return console.error("Message too long for RSA"),null;for(var n=o-e.length-6,a="",i=0;i<n;i+=2)a+="ff";var r="0001"+a+"00"+e;return Me(r,16)}function Oc(e,o){if(o<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],a=e.length-1;a>=0&&o>0;){var i=e.charCodeAt(a--);i<128?n[--o]=i:i>127&&i<2048?(n[--o]=i&63|128,n[--o]=i>>6|192):(n[--o]=i&63|128,n[--o]=i>>6&63|128,n[--o]=i>>12|224)}n[--o]=0;for(var r=new Oo,s=[];o>2;){for(s[0]=0;s[0]==0;)r.nextBytes(s);n[--o]=s[0]}return n[--o]=2,n[--o]=0,new ge(n)}var Fc=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(o){return o.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(o){if(this.p==null||this.q==null)return o.modPow(this.d,this.n);for(var n=o.mod(this.p).modPow(this.dmp1,this.p),a=o.mod(this.q).modPow(this.dmq1,this.q);n.compareTo(a)<0;)n=n.add(this.p);return n.subtract(a).multiply(this.coeff).mod(this.p).multiply(this.q).add(a)},e.prototype.setPublic=function(o,n){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Me(o,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(o){var n=this.n.bitLength()+7>>3,a=Oc(o,n);if(a==null)return null;var i=this.doPublic(a);if(i==null)return null;for(var r=i.toString(16),s=r.length,l=0;l<n*2-s;l++)r="0"+r;return r},e.prototype.setPrivate=function(o,n,a){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Me(o,16),this.e=parseInt(n,16),this.d=Me(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(o,n,a,i,r,s,l,d){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Me(o,16),this.e=parseInt(n,16),this.d=Me(a,16),this.p=Me(i,16),this.q=Me(r,16),this.dmp1=Me(s,16),this.dmq1=Me(l,16),this.coeff=Me(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,n){var a=new Oo,i=o>>1;this.e=parseInt(n,16);for(var r=new ge(n,16);;){for(;this.p=new ge(o-i,1,a),!(this.p.subtract(ge.ONE).gcd(r).compareTo(ge.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ge(i,1,a),!(this.q.subtract(ge.ONE).gcd(r).compareTo(ge.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.p.subtract(ge.ONE),d=this.q.subtract(ge.ONE),c=l.multiply(d);if(c.gcd(r).compareTo(ge.ONE)==0){this.n=this.p.multiply(this.q),this.d=r.modInverse(c),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(d),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(o){var n=Me(o,16),a=this.doPrivate(n);return a==null?null:Mc(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,n,a){var i=new Oo,r=o>>1;this.e=parseInt(n,16);var s=new ge(n,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var u=l.p;l.p=l.q,l.q=u}var m=l.p.subtract(ge.ONE),y=l.q.subtract(ge.ONE),h=m.multiply(y);h.gcd(s).compareTo(ge.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(h),l.dmp1=l.d.mod(m),l.dmq1=l.d.mod(y),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},f=function(){l.q=pe(),l.q.fromNumberAsync(r,1,i,function(){l.q.subtract(ge.ONE).gcda(s,function(u){u.compareTo(ge.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})},x=function(){l.p=pe(),l.p.fromNumberAsync(o-r,1,i,function(){l.p.subtract(ge.ONE).gcda(s,function(u){u.compareTo(ge.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(x,0)})})};setTimeout(x,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var i=zc(a),r=i+n(o).toString(),s=_c(r,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var d=l.toString(16);return d.length&1?"0"+d:d},e.prototype.verify=function(o,n,a){var i=Me(n,16),r=this.doPublic(i);if(r==null)return null;var s=r.toString(16).replace(/^1f+00/,""),l=Pc(s);return l==a(o).toString()},e}();function Mc(e,o){for(var n=e.toByteArray(),a=0;a<n.length&&n[a]==0;)++a;if(n.length-a!=o-1||n[a]!=2)return null;for(++a;n[a]!=0;)if(++a>=n.length)return null;for(var i="";++a<n.length;){var r=n[a]&255;r<128?i+=String.fromCharCode(r):r>191&&r<224?(i+=String.fromCharCode((r&31)<<6|n[a+1]&63),++a):(i+=String.fromCharCode((r&15)<<12|(n[a+1]&63)<<6|n[a+2]&63),a+=2)}return i}var En={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function zc(e){return En[e]||""}function Pc(e){for(var o in En)if(En.hasOwnProperty(o)){var n=En[o],a=n.length;if(e.substr(0,a)==n)return e.substr(a)}return e}/*!
|
|
78
|
+
`,this.sub!==null){o+=" ";for(var a=0,i=this.sub.length;a<i;++a)n+=this.sub[a].toPrettyString(o)}return n},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(o){var n=o.get(),a=n&127;if(a==n)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(o.pos-1));if(a===0)return null;n=0;for(var i=0;i<a;++i)n=n*256+o.get();return n},e.prototype.getHexStringValue=function(){var o=this.toHexString(),n=this.header*2,a=this.length*2;return o.substr(n,a)},e.decode=function(o){var n;o instanceof Lo?n=o:n=new Lo(o,0);var a=new Lo(n),i=new Sr(n),r=e.decodeLength(n),s=n.pos,l=s-a.pos,d=null,c=function(){var x=[];if(r!==null){for(var u=s+r;n.pos<u;)x[x.length]=e.decode(n);if(n.pos!=u)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var m=e.decode(n);if(m.tag.isEOC())break;x[x.length]=m}r=s-n.pos}catch(y){throw new Error("Exception while decoding undefined length content: "+y)}return x};if(i.tagConstructed)d=c();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");d=c();for(var f=0;f<d.length;++f)if(d[f].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{d=null}if(d===null){if(r===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(r)}return new e(a,l,r,i,d)},e}(),Sr=function(){function e(o){var n=o.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var a=new cn;do n=o.get(),a.mulAdd(128,n&127);while(n&128);this.tagNumber=a.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Dt,Bc=0xdeadbeefcafe,Cr=(Bc&16777215)==15715070,Je=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Ec=(1<<26)/Je[Je.length-1],ge=function(){function e(o,n,a){o!=null&&(typeof o=="number"?this.fromNumber(o,n,a):n==null&&typeof o!="string"?this.fromString(o,256):this.fromString(o,n))}return e.prototype.toString=function(o){if(this.s<0)return"-"+this.negate().toString(o);var n;if(o==16)n=4;else if(o==8)n=3;else if(o==2)n=1;else if(o==32)n=5;else if(o==4)n=2;else return this.toRadix(o);var a=(1<<n)-1,i,r=!1,s="",l=this.t,d=this.DB-l*this.DB%n;if(l-- >0)for(d<this.DB&&(i=this[l]>>d)>0&&(r=!0,s=At(i));l>=0;)d<n?(i=(this[l]&(1<<d)-1)<<n-d,i|=this[--l]>>(d+=this.DB-n)):(i=this[l]>>(d-=n)&a,d<=0&&(d+=this.DB,--l)),i>0&&(r=!0),r&&(s+=At(i));return r?s:"0"},e.prototype.negate=function(){var o=pe();return e.ZERO.subTo(this,o),o},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(o){var n=this.s-o.s;if(n!=0)return n;var a=this.t;if(n=a-o.t,n!=0)return this.s<0?-n:n;for(;--a>=0;)if((n=this[a]-o[a])!=0)return n;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+wn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var n=pe();return this.abs().divRemTo(o,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&o.subTo(n,n),n},e.prototype.modPowInt=function(o,n){var a;return o<256||n.isEven()?a=new wr(n):a=new Ar(n),this.exp(o,a)},e.prototype.clone=function(){var o=pe();return this.copyTo(o),o},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var o=this.t,n=[];n[0]=this.s;var a=this.DB-o*this.DB%8,i,r=0;if(o-- >0)for(a<this.DB&&(i=this[o]>>a)!=(this.s&this.DM)>>a&&(n[r++]=i|this.s<<this.DB-a);o>=0;)a<8?(i=(this[o]&(1<<a)-1)<<8-a,i|=this[--o]>>(a+=this.DB-8)):(i=this[o]>>(a-=8)&255,a<=0&&(a+=this.DB,--o)),i&128&&(i|=-256),r==0&&(this.s&128)!=(i&128)&&++r,(r>0||i!=this.s)&&(n[r++]=i);return n},e.prototype.equals=function(o){return this.compareTo(o)==0},e.prototype.min=function(o){return this.compareTo(o)<0?this:o},e.prototype.max=function(o){return this.compareTo(o)>0?this:o},e.prototype.and=function(o){var n=pe();return this.bitwiseTo(o,vc,n),n},e.prototype.or=function(o){var n=pe();return this.bitwiseTo(o,vn,n),n},e.prototype.xor=function(o){var n=pe();return this.bitwiseTo(o,yr,n),n},e.prototype.andNot=function(o){var n=pe();return this.bitwiseTo(o,xr,n),n},e.prototype.not=function(){for(var o=pe(),n=0;n<this.t;++n)o[n]=this.DM&~this[n];return o.t=this.t,o.s=~this.s,o},e.prototype.shiftLeft=function(o){var n=pe();return o<0?this.rShiftTo(-o,n):this.lShiftTo(o,n),n},e.prototype.shiftRight=function(o){var n=pe();return o<0?this.lShiftTo(-o,n):this.rShiftTo(o,n),n},e.prototype.getLowestSetBit=function(){for(var o=0;o<this.t;++o)if(this[o]!=0)return o*this.DB+Sc(this[o]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var o=0,n=this.s&this.DM,a=0;a<this.t;++a)o+=Cc(this[a]^n);return o},e.prototype.testBit=function(o){var n=Math.floor(o/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<o%this.DB)!=0},e.prototype.setBit=function(o){return this.changeBit(o,vn)},e.prototype.clearBit=function(o){return this.changeBit(o,xr)},e.prototype.flipBit=function(o){return this.changeBit(o,yr)},e.prototype.add=function(o){var n=pe();return this.addTo(o,n),n},e.prototype.subtract=function(o){var n=pe();return this.subTo(o,n),n},e.prototype.multiply=function(o){var n=pe();return this.multiplyTo(o,n),n},e.prototype.divide=function(o){var n=pe();return this.divRemTo(o,n,null),n},e.prototype.remainder=function(o){var n=pe();return this.divRemTo(o,null,n),n},e.prototype.divideAndRemainder=function(o){var n=pe(),a=pe();return this.divRemTo(o,n,a),[n,a]},e.prototype.modPow=function(o,n){var a=o.bitLength(),i,r=It(1),s;if(a<=0)return r;a<18?i=1:a<48?i=3:a<144?i=4:a<768?i=5:i=6,a<8?s=new wr(n):n.isEven()?s=new Ic(n):s=new Ar(n);var l=[],d=3,c=i-1,f=(1<<i)-1;if(l[1]=s.convert(this),i>1){var x=pe();for(s.sqrTo(l[1],x);d<=f;)l[d]=pe(),s.mulTo(x,l[d-2],l[d]),d+=2}var u=o.t-1,m,y=!0,h=pe(),A;for(a=wn(o[u])-1;u>=0;){for(a>=c?m=o[u]>>a-c&f:(m=(o[u]&(1<<a+1)-1)<<c-a,u>0&&(m|=o[u-1]>>this.DB+a-c)),d=i;!(m&1);)m>>=1,--d;if((a-=d)<0&&(a+=this.DB,--u),y)l[m].copyTo(r),y=!1;else{for(;d>1;)s.sqrTo(r,h),s.sqrTo(h,r),d-=2;d>0?s.sqrTo(r,h):(A=r,r=h,h=A),s.mulTo(h,l[m],r)}for(;u>=0&&!(o[u]&1<<a);)s.sqrTo(r,h),A=r,r=h,h=A,--a<0&&(a=this.DB-1,--u)}return s.revert(r)},e.prototype.modInverse=function(o){var n=o.isEven();if(this.isEven()&&n||o.signum()==0)return e.ZERO;for(var a=o.clone(),i=this.clone(),r=It(1),s=It(0),l=It(0),d=It(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),n?((!r.isEven()||!s.isEven())&&(r.addTo(this,r),s.subTo(o,s)),r.rShiftTo(1,r)):s.isEven()||s.subTo(o,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),n?((!l.isEven()||!d.isEven())&&(l.addTo(this,l),d.subTo(o,d)),l.rShiftTo(1,l)):d.isEven()||d.subTo(o,d),d.rShiftTo(1,d);a.compareTo(i)>=0?(a.subTo(i,a),n&&r.subTo(l,r),s.subTo(d,s)):(i.subTo(a,i),n&&l.subTo(r,l),d.subTo(s,d))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(d.compareTo(o)>=0)return d.subtract(o);if(d.signum()<0)d.addTo(o,d);else return d;return d.signum()<0?d.add(o):d},e.prototype.pow=function(o){return this.exp(o,new Dc)},e.prototype.gcd=function(o){var n=this.s<0?this.negate():this.clone(),a=o.s<0?o.negate():o.clone();if(n.compareTo(a)<0){var i=n;n=a,a=i}var r=n.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return n;for(r<s&&(s=r),s>0&&(n.rShiftTo(s,n),a.rShiftTo(s,a));n.signum()>0;)(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),(r=a.getLowestSetBit())>0&&a.rShiftTo(r,a),n.compareTo(a)>=0?(n.subTo(a,n),n.rShiftTo(1,n)):(a.subTo(n,a),a.rShiftTo(1,a));return s>0&&a.lShiftTo(s,a),a},e.prototype.isProbablePrime=function(o){var n,a=this.abs();if(a.t==1&&a[0]<=Je[Je.length-1]){for(n=0;n<Je.length;++n)if(a[0]==Je[n])return!0;return!1}if(a.isEven())return!1;for(n=1;n<Je.length;){for(var i=Je[n],r=n+1;r<Je.length&&i<Ec;)i*=Je[r++];for(i=a.modInt(i);n<r;)if(i%Je[n++]==0)return!1}return a.millerRabin(o)},e.prototype.copyTo=function(o){for(var n=this.t-1;n>=0;--n)o[n]=this[n];o.t=this.t,o.s=this.s},e.prototype.fromInt=function(o){this.t=1,this.s=o<0?-1:0,o>0?this[0]=o:o<-1?this[0]=o+this.DV:this.t=0},e.prototype.fromString=function(o,n){var a;if(n==16)a=4;else if(n==8)a=3;else if(n==256)a=8;else if(n==2)a=1;else if(n==32)a=5;else if(n==4)a=2;else{this.fromRadix(o,n);return}this.t=0,this.s=0;for(var i=o.length,r=!1,s=0;--i>=0;){var l=a==8?+o[i]&255:Tr(o,i);if(l<0){o.charAt(i)=="-"&&(r=!0);continue}r=!1,s==0?this[this.t++]=l:s+a>this.DB?(this[this.t-1]|=(l&(1<<this.DB-s)-1)<<s,this[this.t++]=l>>this.DB-s):this[this.t-1]|=l<<s,s+=a,s>=this.DB&&(s-=this.DB)}a==8&&+o[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),r&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var o=this.s&this.DM;this.t>0&&this[this.t-1]==o;)--this.t},e.prototype.dlShiftTo=function(o,n){var a;for(a=this.t-1;a>=0;--a)n[a+o]=this[a];for(a=o-1;a>=0;--a)n[a]=0;n.t=this.t+o,n.s=this.s},e.prototype.drShiftTo=function(o,n){for(var a=o;a<this.t;++a)n[a-o]=this[a];n.t=Math.max(this.t-o,0),n.s=this.s},e.prototype.lShiftTo=function(o,n){for(var a=o%this.DB,i=this.DB-a,r=(1<<i)-1,s=Math.floor(o/this.DB),l=this.s<<a&this.DM,d=this.t-1;d>=0;--d)n[d+s+1]=this[d]>>i|l,l=(this[d]&r)<<a;for(var d=s-1;d>=0;--d)n[d]=0;n[s]=l,n.t=this.t+s+1,n.s=this.s,n.clamp()},e.prototype.rShiftTo=function(o,n){n.s=this.s;var a=Math.floor(o/this.DB);if(a>=this.t){n.t=0;return}var i=o%this.DB,r=this.DB-i,s=(1<<i)-1;n[0]=this[a]>>i;for(var l=a+1;l<this.t;++l)n[l-a-1]|=(this[l]&s)<<r,n[l-a]=this[l]>>i;i>0&&(n[this.t-a-1]|=(this.s&s)<<r),n.t=this.t-a,n.clamp()},e.prototype.subTo=function(o,n){for(var a=0,i=0,r=Math.min(o.t,this.t);a<r;)i+=this[a]-o[a],n[a++]=i&this.DM,i>>=this.DB;if(o.t<this.t){for(i-=o.s;a<this.t;)i+=this[a],n[a++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;a<o.t;)i-=o[a],n[a++]=i&this.DM,i>>=this.DB;i-=o.s}n.s=i<0?-1:0,i<-1?n[a++]=this.DV+i:i>0&&(n[a++]=i),n.t=a,n.clamp()},e.prototype.multiplyTo=function(o,n){var a=this.abs(),i=o.abs(),r=a.t;for(n.t=r+i.t;--r>=0;)n[r]=0;for(r=0;r<i.t;++r)n[r+a.t]=a.am(0,i[r],n,r,0,a.t);n.s=0,n.clamp(),this.s!=o.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(o){for(var n=this.abs(),a=o.t=2*n.t;--a>=0;)o[a]=0;for(a=0;a<n.t-1;++a){var i=n.am(a,n[a],o,2*a,0,1);(o[a+n.t]+=n.am(a+1,2*n[a],o,2*a+1,i,n.t-a-1))>=n.DV&&(o[a+n.t]-=n.DV,o[a+n.t+1]=1)}o.t>0&&(o[o.t-1]+=n.am(a,n[a],o,2*a,0,1)),o.s=0,o.clamp()},e.prototype.divRemTo=function(o,n,a){var i=o.abs();if(!(i.t<=0)){var r=this.abs();if(r.t<i.t){n!=null&&n.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=pe());var s=pe(),l=this.s,d=o.s,c=this.DB-wn(i[i.t-1]);c>0?(i.lShiftTo(c,s),r.lShiftTo(c,a)):(i.copyTo(s),r.copyTo(a));var f=s.t,x=s[f-1];if(x!=0){var u=x*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),m=this.FV/u,y=(1<<this.F1)/u,h=1<<this.F2,A=a.t,I=A-f,v=n??pe();for(s.dlShiftTo(I,v),a.compareTo(v)>=0&&(a[a.t++]=1,a.subTo(v,a)),e.ONE.dlShiftTo(f,v),v.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--I>=0;){var S=a[--A]==x?this.DM:Math.floor(a[A]*m+(a[A-1]+h)*y);if((a[A]+=s.am(0,S,a,I,0,f))<S)for(s.dlShiftTo(I,v),a.subTo(v,a);a[A]<--S;)a.subTo(v,a)}n!=null&&(a.drShiftTo(f,n),l!=d&&e.ZERO.subTo(n,n)),a.t=f,a.clamp(),c>0&&a.rShiftTo(c,a),l<0&&e.ZERO.subTo(a,a)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var o=this[0];if(!(o&1))return 0;var n=o&3;return n=n*(2-(o&15)*n)&15,n=n*(2-(o&255)*n)&255,n=n*(2-((o&65535)*n&65535))&65535,n=n*(2-o*n%this.DV)%this.DV,n>0?this.DV-n:-n},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(o,n){if(o>4294967295||o<1)return e.ONE;var a=pe(),i=pe(),r=n.convert(this),s=wn(o)-1;for(r.copyTo(a);--s>=0;)if(n.sqrTo(a,i),(o&1<<s)>0)n.mulTo(i,r,a);else{var l=a;a=i,i=l}return n.revert(a)},e.prototype.chunkSize=function(o){return Math.floor(Math.LN2*this.DB/Math.log(o))},e.prototype.toRadix=function(o){if(o==null&&(o=10),this.signum()==0||o<2||o>36)return"0";var n=this.chunkSize(o),a=Math.pow(o,n),i=It(a),r=pe(),s=pe(),l="";for(this.divRemTo(i,r,s);r.signum()>0;)l=(a+s.intValue()).toString(o).substr(1)+l,r.divRemTo(i,r,s);return s.intValue().toString(o)+l},e.prototype.fromRadix=function(o,n){this.fromInt(0),n==null&&(n=10);for(var a=this.chunkSize(n),i=Math.pow(n,a),r=!1,s=0,l=0,d=0;d<o.length;++d){var c=Tr(o,d);if(c<0){o.charAt(d)=="-"&&this.signum()==0&&(r=!0);continue}l=n*l+c,++s>=a&&(this.dMultiply(i),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(l,0)),r&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(o,n,a){if(typeof n=="number")if(o<2)this.fromInt(1);else for(this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),vn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>o&&this.subTo(e.ONE.shiftLeft(o-1),this);else{var i=[],r=o&7;i.length=(o>>3)+1,n.nextBytes(i),r>0?i[0]&=(1<<r)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(o,n,a){var i,r,s=Math.min(o.t,this.t);for(i=0;i<s;++i)a[i]=n(this[i],o[i]);if(o.t<this.t){for(r=o.s&this.DM,i=s;i<this.t;++i)a[i]=n(this[i],r);a.t=this.t}else{for(r=this.s&this.DM,i=s;i<o.t;++i)a[i]=n(r,o[i]);a.t=o.t}a.s=n(this.s,o.s),a.clamp()},e.prototype.changeBit=function(o,n){var a=e.ONE.shiftLeft(o);return this.bitwiseTo(a,n,a),a},e.prototype.addTo=function(o,n){for(var a=0,i=0,r=Math.min(o.t,this.t);a<r;)i+=this[a]+o[a],n[a++]=i&this.DM,i>>=this.DB;if(o.t<this.t){for(i+=o.s;a<this.t;)i+=this[a],n[a++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;a<o.t;)i+=o[a],n[a++]=i&this.DM,i>>=this.DB;i+=o.s}n.s=i<0?-1:0,i>0?n[a++]=i:i<-1&&(n[a++]=this.DV+i),n.t=a,n.clamp()},e.prototype.dMultiply=function(o){this[this.t]=this.am(0,o-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(o,n){if(o!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=o;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},e.prototype.multiplyLowerTo=function(o,n,a){var i=Math.min(this.t+o.t,n);for(a.s=0,a.t=i;i>0;)a[--i]=0;for(var r=a.t-this.t;i<r;++i)a[i+this.t]=this.am(0,o[i],a,i,0,this.t);for(var r=Math.min(o.t,n);i<r;++i)this.am(0,o[i],a,i,0,n-i);a.clamp()},e.prototype.multiplyUpperTo=function(o,n,a){--n;var i=a.t=this.t+o.t-n;for(a.s=0;--i>=0;)a[i]=0;for(i=Math.max(n-this.t,0);i<o.t;++i)a[this.t+i-n]=this.am(n-i,o[i],a,0,0,this.t+i-n);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(o){if(o<=0)return 0;var n=this.DV%o,a=this.s<0?o-1:0;if(this.t>0)if(n==0)a=this[0]%o;else for(var i=this.t-1;i>=0;--i)a=(n*a+this[i])%o;return a},e.prototype.millerRabin=function(o){var n=this.subtract(e.ONE),a=n.getLowestSetBit();if(a<=0)return!1;var i=n.shiftRight(a);o=o+1>>1,o>Je.length&&(o=Je.length);for(var r=pe(),s=0;s<o;++s){r.fromInt(Je[Math.floor(Math.random()*Je.length)]);var l=r.modPow(i,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(n)!=0){for(var d=1;d++<a&&l.compareTo(n)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(n)!=0)return!1}}return!0},e.prototype.square=function(){var o=pe();return this.squareTo(o),o},e.prototype.gcda=function(o,n){var a=this.s<0?this.negate():this.clone(),i=o.s<0?o.negate():o.clone();if(a.compareTo(i)<0){var r=a;a=i,i=r}var s=a.getLowestSetBit(),l=i.getLowestSetBit();if(l<0){n(a);return}s<l&&(l=s),l>0&&(a.rShiftTo(l,a),i.rShiftTo(l,i));var d=function(){(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),a.compareTo(i)>=0?(a.subTo(i,a),a.rShiftTo(1,a)):(i.subTo(a,i),i.rShiftTo(1,i)),a.signum()>0?setTimeout(d,0):(l>0&&i.lShiftTo(l,i),setTimeout(function(){n(i)},0))};setTimeout(d,10)},e.prototype.fromNumberAsync=function(o,n,a,i){if(typeof n=="number")if(o<2)this.fromInt(1);else{this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),vn,this),this.isEven()&&this.dAddOffset(1,0);var r=this,s=function(){r.dAddOffset(2,0),r.bitLength()>o&&r.subTo(e.ONE.shiftLeft(o-1),r),r.isProbablePrime(n)?setTimeout(function(){i()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],d=o&7;l.length=(o>>3)+1,n.nextBytes(l),d>0?l[0]&=(1<<d)-1:l[0]=0,this.fromString(l,256)}},e}(),Dc=function(){function e(){}return e.prototype.convert=function(o){return o},e.prototype.revert=function(o){return o},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a)},e.prototype.sqrTo=function(o,n){o.squareTo(n)},e}(),wr=function(){function e(o){this.m=o}return e.prototype.convert=function(o){return o.s<0||o.compareTo(this.m)>=0?o.mod(this.m):o},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){o.divRemTo(this.m,null,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}(),Ar=function(){function e(o){this.m=o,this.mp=o.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<o.DB-15)-1,this.mt2=2*o.t}return e.prototype.convert=function(o){var n=pe();return o.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),o.s<0&&n.compareTo(ge.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(o){var n=pe();return o.copyTo(n),this.reduce(n),n},e.prototype.reduce=function(o){for(;o.t<=this.mt2;)o[o.t++]=0;for(var n=0;n<this.m.t;++n){var a=o[n]&32767,i=a*this.mpl+((a*this.mph+(o[n]>>15)*this.mpl&this.um)<<15)&o.DM;for(a=n+this.m.t,o[a]+=this.m.am(0,i,o,n,0,this.m.t);o[a]>=o.DV;)o[a]-=o.DV,o[++a]++}o.clamp(),o.drShiftTo(this.m.t,o),o.compareTo(this.m)>=0&&o.subTo(this.m,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}(),Ic=function(){function e(o){this.m=o,this.r2=pe(),this.q3=pe(),ge.ONE.dlShiftTo(2*o.t,this.r2),this.mu=this.r2.divide(o)}return e.prototype.convert=function(o){if(o.s<0||o.t>2*this.m.t)return o.mod(this.m);if(o.compareTo(this.m)<0)return o;var n=pe();return o.copyTo(n),this.reduce(n),n},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){for(o.drShiftTo(this.m.t-1,this.r2),o.t>this.m.t+1&&(o.t=this.m.t+1,o.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);o.compareTo(this.r2)<0;)o.dAddOffset(1,this.m.t+1);for(o.subTo(this.r2,o);o.compareTo(this.m)>=0;)o.subTo(this.m,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}();function pe(){return new ge(null)}function Me(e,o){return new ge(e,o)}var kr=typeof navigator<"u";kr&&Cr&&navigator.appName=="Microsoft Internet Explorer"?(ge.prototype.am=function(o,n,a,i,r,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,f=this[o++]>>15,x=d*c+f*l;c=l*c+((x&32767)<<15)+a[i]+(r&1073741823),r=(c>>>30)+(x>>>15)+d*f+(r>>>30),a[i++]=c&1073741823}return r},Dt=30):kr&&Cr&&navigator.appName!="Netscape"?(ge.prototype.am=function(o,n,a,i,r,s){for(;--s>=0;){var l=n*this[o++]+a[i]+r;r=Math.floor(l/67108864),a[i++]=l&67108863}return r},Dt=26):(ge.prototype.am=function(o,n,a,i,r,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,f=this[o++]>>14,x=d*c+f*l;c=l*c+((x&16383)<<14)+a[i]+r,r=(c>>28)+(x>>14)+d*f,a[i++]=c&268435455}return r},Dt=28),ge.prototype.DB=Dt,ge.prototype.DM=(1<<Dt)-1,ge.prototype.DV=1<<Dt;var No=52;ge.prototype.FV=Math.pow(2,No),ge.prototype.F1=No-Dt,ge.prototype.F2=2*Dt-No;var Cn=[],Jt,ht;for(Jt="0".charCodeAt(0),ht=0;ht<=9;++ht)Cn[Jt++]=ht;for(Jt="a".charCodeAt(0),ht=10;ht<36;++ht)Cn[Jt++]=ht;for(Jt="A".charCodeAt(0),ht=10;ht<36;++ht)Cn[Jt++]=ht;function Tr(e,o){var n=Cn[e.charCodeAt(o)];return n??-1}function It(e){var o=pe();return o.fromInt(e),o}function wn(e){var o=1,n;return(n=e>>>16)!=0&&(e=n,o+=16),(n=e>>8)!=0&&(e=n,o+=8),(n=e>>4)!=0&&(e=n,o+=4),(n=e>>2)!=0&&(e=n,o+=2),(n=e>>1)!=0&&(e=n,o+=1),o}ge.ZERO=It(0),ge.ONE=It(1);var Rc=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(o){var n,a,i;for(n=0;n<256;++n)this.S[n]=n;for(a=0,n=0;n<256;++n)a=a+this.S[n]+o[n%o.length]&255,i=this.S[n],this.S[n]=this.S[a],this.S[a]=i;this.i=0,this.j=0},e.prototype.next=function(){var o;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,o=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=o,this.S[o+this.S[this.i]&255]},e}();function Lc(){return new Rc}var Br=256,An,Rt=null,xt;if(Rt==null){Rt=[],xt=0;var kn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var _o=new Uint32Array(256);for(window.crypto.getRandomValues(_o),kn=0;kn<_o.length;++kn)Rt[xt++]=_o[kn]&255}var Tn=0,Bn=function(e){if(Tn=Tn||0,Tn>=256||xt>=Br){window.removeEventListener?window.removeEventListener("mousemove",Bn,!1):window.detachEvent&&window.detachEvent("onmousemove",Bn);return}try{var o=e.x+e.y;Rt[xt++]=o&255,Tn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Bn,!1):window.attachEvent&&window.attachEvent("onmousemove",Bn))}function Nc(){if(An==null){for(An=Lc();xt<Br;){var e=Math.floor(65536*Math.random());Rt[xt++]=e&255}for(An.init(Rt),xt=0;xt<Rt.length;++xt)Rt[xt]=0;xt=0}return An.next()}var Oo=function(){function e(){}return e.prototype.nextBytes=function(o){for(var n=0;n<o.length;++n)o[n]=Nc()},e}();function _c(e,o){if(o<e.length+22)return console.error("Message too long for RSA"),null;for(var n=o-e.length-6,a="",i=0;i<n;i+=2)a+="ff";var r="0001"+a+"00"+e;return Me(r,16)}function Oc(e,o){if(o<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],a=e.length-1;a>=0&&o>0;){var i=e.charCodeAt(a--);i<128?n[--o]=i:i>127&&i<2048?(n[--o]=i&63|128,n[--o]=i>>6|192):(n[--o]=i&63|128,n[--o]=i>>6&63|128,n[--o]=i>>12|224)}n[--o]=0;for(var r=new Oo,s=[];o>2;){for(s[0]=0;s[0]==0;)r.nextBytes(s);n[--o]=s[0]}return n[--o]=2,n[--o]=0,new ge(n)}var Fc=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(o){return o.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(o){if(this.p==null||this.q==null)return o.modPow(this.d,this.n);for(var n=o.mod(this.p).modPow(this.dmp1,this.p),a=o.mod(this.q).modPow(this.dmq1,this.q);n.compareTo(a)<0;)n=n.add(this.p);return n.subtract(a).multiply(this.coeff).mod(this.p).multiply(this.q).add(a)},e.prototype.setPublic=function(o,n){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Me(o,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(o){var n=this.n.bitLength()+7>>3,a=Oc(o,n);if(a==null)return null;var i=this.doPublic(a);if(i==null)return null;for(var r=i.toString(16),s=r.length,l=0;l<n*2-s;l++)r="0"+r;return r},e.prototype.setPrivate=function(o,n,a){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Me(o,16),this.e=parseInt(n,16),this.d=Me(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(o,n,a,i,r,s,l,d){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Me(o,16),this.e=parseInt(n,16),this.d=Me(a,16),this.p=Me(i,16),this.q=Me(r,16),this.dmp1=Me(s,16),this.dmq1=Me(l,16),this.coeff=Me(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,n){var a=new Oo,i=o>>1;this.e=parseInt(n,16);for(var r=new ge(n,16);;){for(;this.p=new ge(o-i,1,a),!(this.p.subtract(ge.ONE).gcd(r).compareTo(ge.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ge(i,1,a),!(this.q.subtract(ge.ONE).gcd(r).compareTo(ge.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.p.subtract(ge.ONE),d=this.q.subtract(ge.ONE),c=l.multiply(d);if(c.gcd(r).compareTo(ge.ONE)==0){this.n=this.p.multiply(this.q),this.d=r.modInverse(c),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(d),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(o){var n=Me(o,16),a=this.doPrivate(n);return a==null?null:Mc(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,n,a){var i=new Oo,r=o>>1;this.e=parseInt(n,16);var s=new ge(n,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var u=l.p;l.p=l.q,l.q=u}var m=l.p.subtract(ge.ONE),y=l.q.subtract(ge.ONE),h=m.multiply(y);h.gcd(s).compareTo(ge.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(h),l.dmp1=l.d.mod(m),l.dmq1=l.d.mod(y),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},f=function(){l.q=pe(),l.q.fromNumberAsync(r,1,i,function(){l.q.subtract(ge.ONE).gcda(s,function(u){u.compareTo(ge.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})},x=function(){l.p=pe(),l.p.fromNumberAsync(o-r,1,i,function(){l.p.subtract(ge.ONE).gcda(s,function(u){u.compareTo(ge.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(x,0)})})};setTimeout(x,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var i=zc(a),r=i+n(o).toString(),s=_c(r,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var d=l.toString(16);return d.length&1?"0"+d:d},e.prototype.verify=function(o,n,a){var i=Me(n,16),r=this.doPublic(i);if(r==null)return null;var s=r.toString(16).replace(/^1f+00/,""),l=Pc(s);return l==a(o).toString()},e}();function Mc(e,o){for(var n=e.toByteArray(),a=0;a<n.length&&n[a]==0;)++a;if(n.length-a!=o-1||n[a]!=2)return null;for(++a;n[a]!=0;)if(++a>=n.length)return null;for(var i="";++a<n.length;){var r=n[a]&255;r<128?i+=String.fromCharCode(r):r>191&&r<224?(i+=String.fromCharCode((r&31)<<6|n[a+1]&63),++a):(i+=String.fromCharCode((r&15)<<12|(n[a+1]&63)<<6|n[a+2]&63),a+=2)}return i}var En={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function zc(e){return En[e]||""}function Pc(e){for(var o in En)if(En.hasOwnProperty(o)){var n=En[o],a=n.length;if(e.substr(0,a)==n)return e.substr(a)}return e}/*!
|
|
79
79
|
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
80
80
|
Code licensed under the BSD License:
|
|
81
81
|
http://developer.yahoo.com/yui/license.html
|
|
@@ -93,10 +93,10 @@ version: 2.9.0
|
|
|
93
93
|
`;return n+=o.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
94
94
|
`,n+="-----END RSA PRIVATE KEY-----",n},o.prototype.getPublicKey=function(){var n=`-----BEGIN PUBLIC KEY-----
|
|
95
95
|
`;return n+=o.wordwrap(this.getPublicBaseKeyB64())+`
|
|
96
|
-
`,n+="-----END PUBLIC KEY-----",n},o.hasPublicKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")},o.hasPrivateKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")&&n.hasOwnProperty("d")&&n.hasOwnProperty("p")&&n.hasOwnProperty("q")&&n.hasOwnProperty("dmp1")&&n.hasOwnProperty("dmq1")&&n.hasOwnProperty("coeff")},o.prototype.parsePropertiesFrom=function(n){this.n=n.n,this.e=n.e,n.hasOwnProperty("d")&&(this.d=n.d,this.p=n.p,this.q=n.q,this.dmp1=n.dmp1,this.dmq1=n.dmq1,this.coeff=n.coeff)},o}(Fc),Fo,Vc=typeof process<"u"?(Fo=process.env)===null||Fo===void 0?void 0:Fo.npm_package_version:void 0,Hc=function(){function e(o){o===void 0&&(o={}),o=o||{},this.default_key_size=o.default_key_size?parseInt(o.default_key_size,10):1024,this.default_public_exponent=o.default_public_exponent||"010001",this.log=o.log||!1,this.key=null}return e.prototype.setKey=function(o){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Er(o)},e.prototype.setPrivateKey=function(o){this.setKey(o)},e.prototype.setPublicKey=function(o){this.setKey(o)},e.prototype.decrypt=function(o){try{return this.getKey().decrypt(br(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return Sn(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,n,a){try{return Sn(this.getKey().sign(o,n,a))}catch{return!1}},e.prototype.verify=function(o,n,a){try{return this.getKey().verify(o,br(n),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new Er,o&&{}.toString.call(o)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,o);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=Vc,e}();const Dr=new Hc,Xt=jc();function jc(){let o=Math.random().toString(36).substr(2);for(;o.length<16;)o+=Math.random().toString(36).substr(2);return o=o.substr(0,16),o}const Ir=lt.enc.Utf8.parse("ABCDEF1234123412");function Wc(e,o){o=o||Xt;const n=lt.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=lt.enc.Utf8.parse(e);break;case"object":a=lt.enc.Utf8.parse(JSON.stringify(e));break;default:a=lt.enc.Utf8.parse(e.toString())}return lt.AES.encrypt(a,n,{iv:Ir,mode:lt.mode.CBC,padding:lt.pad.ZeroPadding}).toString()}function Rr(e,o){o=o||Xt;const n=lt.enc.Utf8.parse(o),a=lt.AES.decrypt(e,n,{iv:Ir,mode:lt.mode.CBC,padding:lt.pad.ZeroPadding});return lt.enc.Utf8.stringify(a).toString()}function Gc(e){Dr.setPublicKey(e)}function Uc(e){return Dr.encrypt(e)}function Lr(e=""){e.startsWith("/")||(e="/"+e),e=e.split("?")[0];const n=["/diagram","/dataview"].map(a=>`^(.*?)${a}(/|$)`);for(const a of n)if(new RegExp(a).test(e))return!0;return!1}function $c(e){const{paramType:o,data:n,params:a,method:i}=e;o==="form"?["get","delete"].includes(i)?e.params=en(a,"string"):e.data=en(n,"string"):["get","delete"].includes(i)?e.params=en(a,"string"):e.data=en(n)}function en(e,o){let n=e||{};if(o==="string"){n="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const d=e[l];n+=`${l}=${encodeURIComponent(d)}&`}}Gc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const i=Uc(Xt);return{c:Wc(n,Xt),p:i}}window.getEncryptParam=en;function Yc(e,o){var n;(n=window==null?void 0:window.config)!=null&&n.encryptFlag&&Lr(e.url)&&(e.data instanceof FormData?e.data=Kc(e.data):$c(e))}function Kc(e){const o=e.entries(),n=new FormData,a={};for(const r of o){const s=r[0],l=r[1];l instanceof Blob?n.append(s,l):a[s]=l}const i=en(a,"json");return typeof i=="object"&&(n.append("c",i.c),n.append("p",i.p)),n}window.xhaesKey=Xt,window.xhaesDecrypt=Rr;function Nr(e,o){var n;if((n=window==null?void 0:window.config)!=null&&n.encryptFlag&&Lr(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=Rr(e.data.data.content,Xt);e.data=JSON.parse(a)}}const _r=window.config.requestErrorTip,
|
|
97
|
-
`),Mo=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Qc=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Dn=(e,o=2)=>{const n=e+"";if(n.includes("%"))return e;const a=parseFloat(n);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},Jc=(e,o=2)=>{const n=e+"",a=parseFloat(n);return isNaN(a)?e:a.toFixed(o)},Or=(e,o)=>
|
|
96
|
+
`,n+="-----END PUBLIC KEY-----",n},o.hasPublicKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")},o.hasPrivateKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")&&n.hasOwnProperty("d")&&n.hasOwnProperty("p")&&n.hasOwnProperty("q")&&n.hasOwnProperty("dmp1")&&n.hasOwnProperty("dmq1")&&n.hasOwnProperty("coeff")},o.prototype.parsePropertiesFrom=function(n){this.n=n.n,this.e=n.e,n.hasOwnProperty("d")&&(this.d=n.d,this.p=n.p,this.q=n.q,this.dmp1=n.dmp1,this.dmq1=n.dmq1,this.coeff=n.coeff)},o}(Fc),Fo,Vc=typeof process<"u"?(Fo=process.env)===null||Fo===void 0?void 0:Fo.npm_package_version:void 0,Hc=function(){function e(o){o===void 0&&(o={}),o=o||{},this.default_key_size=o.default_key_size?parseInt(o.default_key_size,10):1024,this.default_public_exponent=o.default_public_exponent||"010001",this.log=o.log||!1,this.key=null}return e.prototype.setKey=function(o){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Er(o)},e.prototype.setPrivateKey=function(o){this.setKey(o)},e.prototype.setPublicKey=function(o){this.setKey(o)},e.prototype.decrypt=function(o){try{return this.getKey().decrypt(br(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return Sn(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,n,a){try{return Sn(this.getKey().sign(o,n,a))}catch{return!1}},e.prototype.verify=function(o,n,a){try{return this.getKey().verify(o,br(n),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new Er,o&&{}.toString.call(o)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,o);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=Vc,e}();const Dr=new Hc,Xt=jc();function jc(){let o=Math.random().toString(36).substr(2);for(;o.length<16;)o+=Math.random().toString(36).substr(2);return o=o.substr(0,16),o}const Ir=lt.enc.Utf8.parse("ABCDEF1234123412");function Wc(e,o){o=o||Xt;const n=lt.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=lt.enc.Utf8.parse(e);break;case"object":a=lt.enc.Utf8.parse(JSON.stringify(e));break;default:a=lt.enc.Utf8.parse(e.toString())}return lt.AES.encrypt(a,n,{iv:Ir,mode:lt.mode.CBC,padding:lt.pad.ZeroPadding}).toString()}function Rr(e,o){o=o||Xt;const n=lt.enc.Utf8.parse(o),a=lt.AES.decrypt(e,n,{iv:Ir,mode:lt.mode.CBC,padding:lt.pad.ZeroPadding});return lt.enc.Utf8.stringify(a).toString()}function Gc(e){Dr.setPublicKey(e)}function Uc(e){return Dr.encrypt(e)}function Lr(e=""){e.startsWith("/")||(e="/"+e),e=e.split("?")[0];const n=["/diagram","/dataview"].map(a=>`^(.*?)${a}(/|$)`);for(const a of n)if(new RegExp(a).test(e))return!0;return!1}function $c(e){const{paramType:o,data:n,params:a,method:i}=e;o==="form"?["get","delete"].includes(i)?e.params=en(a,"string"):e.data=en(n,"string"):["get","delete"].includes(i)?e.params=en(a,"string"):e.data=en(n)}function en(e,o){let n=e||{};if(o==="string"){n="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const d=e[l];n+=`${l}=${encodeURIComponent(d)}&`}}Gc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const i=Uc(Xt);return{c:Wc(n,Xt),p:i}}window.getEncryptParam=en;function Yc(e,o){var n;(n=window==null?void 0:window.config)!=null&&n.encryptFlag&&Lr(e.url)&&(e.data instanceof FormData?e.data=Kc(e.data):$c(e))}function Kc(e){const o=e.entries(),n=new FormData,a={};for(const r of o){const s=r[0],l=r[1];l instanceof Blob?n.append(s,l):a[s]=l}const i=en(a,"json");return typeof i=="object"&&(n.append("c",i.c),n.append("p",i.p)),n}window.xhaesKey=Xt,window.xhaesDecrypt=Rr;function Nr(e,o){var n;if((n=window==null?void 0:window.config)!=null&&n.encryptFlag&&Lr(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=Rr(e.data.data.content,Xt);e.data=JSON.parse(a)}}const _r=window.config.requestErrorTip,vt=ss.create({timeout:1e3*180});vt.interceptors.request.use(e=>{const{requestParams:o={}}=window.config;return o!=null&&o.pltToken&&(e.headers["Plt-Token"]=o.pltToken),Yc(e),e},e=>Promise.reject(e)),vt.interceptors.response.use(e=>{var o,n,a;return _r&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&he.message.error({content:((n=e==null?void 0:e.data)==null?void 0:n.msg)||((a=e==null?void 0:e.data)==null?void 0:a.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),Nr(e),e},e=>{if(Nr(e==null?void 0:e.response),_r)if(e.message.includes("timeout"))he.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&he.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),o>=500&&he.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const Zc=e=>e.replace(/\\n/g,`
|
|
97
|
+
`),Mo=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Qc=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Dn=(e,o=2)=>{const n=e+"";if(n.includes("%"))return e;const a=parseFloat(n);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},Jc=(e,o=2)=>{const n=e+"",a=parseFloat(n);return isNaN(a)?e:a.toFixed(o)},Or=(e,o)=>mt(o,e),st=(e,o)=>{if(typeof e=="string"&&typeof o=="string")return e.toLocaleLowerCase().includes(o.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(o)){const n=o.length;for(let a=0;a<n;a++){const i=o[a];if(typeof i=="string"&&e.toLocaleLowerCase().includes(i.toLocaleLowerCase()))return!0}}return!1},tn=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),dn=e=>{const{leftAxisList:o=[],rightAxisList:n=[],queryColumnList:a=[],indicators:i=[]}=e;return[...o,...n,...a,...i].filter(r=>(r==null?void 0:r.calcType)==="COMPONENT").map(r=>({keyName:r.builtInCalcWay,id:r.builtInValueSource}))},gt=(e,o)=>{let n=!0;const a=dn(e);return a!=null&&a.length&&(n=a.map(i=>o[i.id]).every(i=>i)),n},fn=(e,o)=>{var s;const n=e.match(/\{(.+?)\}/g),a=((s=e.split(`
|
|
98
98
|
`))==null?void 0:s.length)-1;let i="";if(a)for(let l=0;l<a;l++)i+=`
|
|
99
|
-
`;let r=e;if(n!=null&&n.length){for(const l of n){const d=_e(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(r=r.replace(l,d))}return`${i}{text|${r}}`}else return e},Fr=(e,o)=>{const{props:n,componentList:a,getGlobalModel:i}=e,{graphicConfig:r={},startValue:s,endValue:l}=n,d=Xc({graphicConfig:r,startValue:s,endValue:l,componentList:a,getGlobalModel:i}),{dimensions:c,dataset:f}=o,{classificationList:x=[]}=r,m=x.find(y=>y.show).label||"";for(const y of d)c.includes(y)||c.push(y);c.sort((y,h)=>be(y).isBefore(be(h))?-1:1);for(const y of f){const{data:h}=y;if(h!=null&&h.length){const A=[];for(const I of d)if(h.find(v=>v[m]!==I)){const v=Oe.cloneDeep(h[0]);for(const S in v)S===m?v[S]=I:v[S]=0;A.push(v)}y.data.push(...A),y.data.sort((I,v)=>be(I[m]).isBefore(be(v[m]))?-1:1)}}},un=e=>{const o=[];for(const n of e)n.conditions?o.push(...un(n.conditions)):(n==null?void 0:n.dataType)==="component"&&o.push(n);return o};function Xc(e){const{startValue:o,endValue:n,componentList:a,graphicConfig:i,getGlobalModel:r}=e,s=Mr(o),l=Mr(n),d=[];if(s&&l){const c=a.find(x=>x.keyName===s.keyName),f=a.find(x=>x.keyName===l.keyName);if(c&&f){const x=r(c.id),u=r(f.id),{classificationList:m=[]}=i,y=m.find(h=>h.show);if(y){let h="YYYY-MM";switch(y.name){case"the_year":h="YYYY";break;case"the_month":h="MM";break;case"the_day":h="DD";break;case"the_date":h=(y==null?void 0:y.dateFormat)||h;break}const A=zr(h);if(h){const I=t.unref(x[s.field]),v=t.unref(u[l.field]);let S=be(I);const C=be(v);for(d.push(C.format(h));S.isBefore(C);)d.push(S.format(h)),S=S.add(1,A)}}}}return d}function Mr(e){let o=null;if(e){const n=e.match(/\{(.+?)\}/g);if(n!=null&&n.length){let a=n[0].slice(1,-1).trim();const i=a.match(/\[(.+?)\]/g);let r="";i!=null&&i.length&&(a=a.replace(i[0],""),r=i[0].slice(1,-1).trim()),o={keyName:a,field:r}}}return o}function zr(e){const o=e.split("-");let n="";if(o!=null&&o.length)switch(o[o.length-1]){case"YYYY":n="year";break;case"MM":n="month";break;case"DD":n="day";break}return n}const hn=(e,o)=>{const n={dayjs:be,...o};let a="";const i=[];for(const l in n)a+=`${l},`,i.push(n[l]);a=a.replace(/,$/,"");const r=`function (${a}){return ${e}}`;let s;try{s=Function(`"use strict";return (${r})`)()(...i)}catch{return e}return s},_e=(e="",{textData:o,codeData:n}={},{useNewline:a=!1,useSpace:i=!1}={})=>{const s={...window.config||{},...o},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let d=0;d<l.length;d++){const c=l[d];let f=c.slice(1,-1).trim();const x=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=f.match(x);for(let m=0;m<u.length;m++){const y=u[m],h=s[y];h!=null&&typeof h!="function"&&(f=f.replace(y,h))}(/\(.*\)/g.test(f)||/[+/\\*]/g.test(f))&&(f=hn(f,n)),e=e.replace(c,f)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),i&&(e=e==null?void 0:e.replace(/\s{2,}?/g," ")),e},je=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:i,requestParams:r,requestInterval:s,isOpenRequestTimer:l,openCustomRequestData:d,projectRequestUrl:c="",getModel:f}=e,{pageMode:x}=t.inject(ze,{pageMode:"normal"}),{contextRequestUrl:u,touchEventId:m}=t.inject(ze,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:y}=t.inject(Le,{getGlobalModel:S=>{}})||{},h=f||y,A=_e(n),I=async(S={})=>{if(!A||!a||!i)return;let C={};r.forEach(D=>{const{key:w,value:L}=D;if(typeof L=="object"&&L!=null&&L.id){let M={};const{id:k,prop:O,propKey:T,operate:F}=L;k==="THIS"?M=h(t.unref(m))||{}:M=h(k)||{};const b=t.unref(M[O]);let E=null;if(["date","range"].some(P=>st(M==null?void 0:M.type,P))){const{value:P,type:N,mode:V}=F||{};if(P&&N&&V)switch(N){case"add":E=t.unref(b).add(P,V);break;case"minus":E=t.unref(b).subtract(P,V);break}E==null&&(E=t.unref(b)),E=(E==null?void 0:E.format((T==null?void 0:T.trim())||M.format))||""}else Object.prototype.toString.call(b)==="[object Object]"?T?E=b[T]:E=O?b[O]:b:st(M==null?void 0:M.type,"select")&&t.unref(b)&&O&&Array.isArray(t.unref(b))?E=t.unref(b).map(P=>Object.prototype.hasOwnProperty.call(P,O)?P[O]:P):E=b;C[w]=E}else typeof L=="string"&&(C[w]=_e(L))}),C={...window.config.requestParams,...S,...C};let B="";const g=Object.keys(C),R=g.length-1,p=g.length;g.forEach((D,w)=>{let L=C[D];Object.prototype.toString.call(L)==="[object Object]"&&(L=JSON.stringify(L)),w===0?p!==1?B+=`?${D}=${L}&`:B+=`?${D}=${L}`:w===R?B+=`${D}=${L}`:B+=`${D}=${L}&`});try{const D=["get","head"].includes(a),w={};let L=D?A+B:A;C.dataSqlId&&!L.includes("dataSqlId")&&(L+=`${L.includes("?")?"&":"?"}dataSqlId=${C.dataSqlId}`),Object.prototype.hasOwnProperty.call(C,"signal")&&(w.signal=C.signal);const M=await St({baseURL:t.unref(u)||c||"",url:L,method:a,headers:i,data:D?{}:C,...w});return o(M),M}catch(D){console.error(D)}},v=t.unref(x)!=="design"&&l&&(d||d===void 0)&&setInterval(I,s*1e3);return t.onUnmounted(()=>{clearInterval(v)}),I},Lt=(e=[],o,n=!1)=>{let{name:a="name",types:i=[]}=o||{};a=(a==null?void 0:a.trim())||a;const r=new Set,s=new Map,l=e.length,d=i.length;if(l===1&&!n){const x=[];for(let m=0;m<d;m++){const y=i[m],{label:h,value:A}=y,I={...e[0],value:e[0][A]};r.add(h),x.push(I)}const u=e[0][a]||"";s.set(u,x)}else for(let x=0;x<l;x++){const u=e[x],m=u[a];r.add(m);for(let y=0;y<d;y++){const h=i[y],{label:A,value:I}=h,v={...u,value:u[I]||0};if(s.has(A)){const S=s.get(A);S.push(v),s.set(A,S)}else s.set(A,[v])}}const c=Array.from(r),f=[];for(const[x,u]of s)f.push({name:x,data:u});return{dimensions:c,dataset:f}},pt=(e,o=!1)=>{var a;if(!e)return e;let n="";return e!=null&&e.includes("://")?n=e:n=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,o&&(n=`url(${n})`),n},zo=(e,o)=>{const n=`${Ii}/preview?pageId=${o}`,a=`${Ii}/${o}`;return e==="preview"?n:a},gt=(e,o)=>{var i;if(e==null)return o;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return o;const a=n.length;for(let r=0;r<a;r++){const s=n[r];if(s==null||s==="")break;let l=(i=s.slice(1,-1))==null?void 0:i.trim();l=l==null?void 0:l.replace(/value/g,o);try{let d=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(d=hn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},Xe=(e={},o=()=>{})=>{var B;const{pageMode:n}=t.inject(ze,{pageMode:"normal"}),{requestToken:a}=t.inject(Ti,{requestToken:()=>{}}),{setLoadedData:i}=t.inject(Et,{setLoadedData:(g,R)=>{}}),{getGlobalModel:r}=t.inject(Le,{getGlobalModel:g=>{}});e.dataType==="indicator"&&a();const s=g=>{const{around:R,unit:p,id:D}=g;let w="";const{pageMode:L="",componentList:M=[]}=(e==null?void 0:e.graphicConfig)||{};let k=null,O=null;if(L==="design"){const T=M==null?void 0:M.find(V=>V.id===D);if(!T)return[];const{interval:F,intervalUnit:b,startTime:E,endTime:_,operate:P,useCurrentTime:N}=T||{};if(N&&(k=be().subtract(F,b),O=be()),E&&(k=be(E)),_&&(O=be(_)),P){const{type:V,value:z,mode:q}=P;switch(V){case"add":k=k&&k.add(z,q),O=O&&O.add(z,q);break;case"minus":k=k&&k.subtract(z,q),O=O&&O.subtract(z,q)}}}else{const T=r(D)||{};t.unref(T.startTime)&&(k=be(t.unref(T.startTime))),t.unref(T.endTime)&&(O=be(t.unref(T.endTime)))}if(k&&O){const T=O.diff(k,p.toLowerCase());w=`${R==="before"?"-":""}${T+1}`}return w?[w]:[]},l=(g,R)=>Object.prototype.hasOwnProperty.call(g,R),d=(g,R)=>{if(R)l(g,"indexCode")&&(g.hrpIndexCode=g.indexCode,delete g.indexCode),l(g,"indexCodeNum")&&(g.hrpIndexCodeNum=g.indexCodeNum,delete g.indexCodeNum),l(g,"dataType")&&delete g.dataType;else{const{calcWays:p=[],dateCalcTypes:D=[],activeKey:w,componentId:L=""}=g;if(w===5&&(p!=null&&p.length)&&(D!=null&&D.length)&&L){const M=p[0].split("-");(M==null?void 0:M.length)>1&&M[0]==="rangeValue"&&(g.calcWays=s({around:M[1],unit:D[0],id:L})),delete g.radioValue}l(g,"dataType")&&(g.fieldType==="DATE"&&(g.label=g.fieldName),g.dataType==="component"&&(g.fieldValue="${"+g.fieldValue+"}"),delete g.dataType),l(g,"activeKey")&&delete g.activeKey,l(g,"radioValue")&&delete g.radioValue,l(g,"indexCode")&&(g.hrpIndexCode=g.indexCode,delete g.indexCode),l(g,"indexCodeNum")&&(g.hrpIndexCodeNum=g.indexCodeNum,delete g.indexCodeNum),g.dataType!=="component"&&g.useCurrentTime&&(g.fieldValue=be().format(g.dateFormat)),delete g.useCurrentTime}},c=(g,R)=>{const p=[];return g!=null&&g.length&&Oe.cloneDeep(g).forEach(D=>{if(D.join&&D.conditions){const w=!D.conditions.some(L=>L.join&&L.conditions);D.conditions.forEach((L,M)=>{d(L,R);const k={};if(M<D.conditions.length-1&&(k.join=D.join),w)p.push({...k,...L});else if(L.join&&L.conditions){const O=R?"sqlConditions":"conditions";p.push({[O]:c([L],R),...k})}else p.push({...k,...L})})}else d(D,R),p.push(D)}),p},f=(g={},R)=>{if(g!=null&&g.sortCpnts&&R){const U=v(g);U&&(R.sort=U)}const{label:p,name:D,location:w,show:L,indexCode:M,indexCodeNum:k,calcType:O="COLUMN",builtInFormula:T,builtInValueSource:F,builtInCalcWay:b,formula:E,conditions:_,aggregate:P,distinct:N,dimByCount:V,dataTo:z}=g;let q;if(_&&(q=c(_)),O==="COMPONENT"){const U={};return A(U,F),{label:p.trim(),columnName:D,show:L,calcType:O,componentAlias:b,componentValue:U.fieldValue||null}}const X={label:p.trim(),columnName:D,location:w,show:L,calcType:z==="1"?"VIEW":O,hrpIndexCode:M,hrpIndexCodeNum:k,aggregate:P,builtInFormula:T,builtInValueSource:F,formula:E,conditions:q};if(T==="DATE_OFFSET"){const U=b.split("-");if((U==null?void 0:U.length)===3){let j=U[0];return U[2]==="before"&&U[0]!=="0"&&(j=`-${U[0]}`),{...X,calcWays:[j],dateCalcTypes:[U[1]]}}}else return D==="the_count"&&(X.calcType="AGGREGATE",X.distinct=!!N,X.typeGuid=V),{...X,builtInCalcWay:b}},x=g=>{if(!g)return[];const R=Oe.cloneDeep((g==null?void 0:g.controlList)||[]),{classificationList:p=[],rowHeaderList:D=[],dimensionList:w=[],seriesList:L=[],leftAxisList:M=[],rightAxisList:k=[],queryColumnList:O=[],indicators:T=[]}=g;y(R);const F=[...p,...D,...w,...L,...M,...k,...O,...T],b=[];for(const P of F){const N=un((P==null?void 0:P.conditions)||[]);if(N!=null&&N.length){const V=N.filter(z=>(z==null?void 0:z.dataType)==="component").map(z=>{const q={};return z!=null&&z.dateFormat&&(q.format=z.dateFormat),{conditionKey:z.fieldName,conditionLabel:z.fieldName,conditionName:z.fieldName,conditionValueType:z.fieldType,id:z.componentId,keyName:z.fieldValue,rule:z.rule,notGlobal:!0,indexCode:z.indexCode,typeGuid:z.typeGuid,indexCodeNum:z.indexCodeNum,...q}});if(V!=null&&V.length)for(const z of V)b.find(q=>q.keyName===z.keyName)||b.push(z)}}const E=b.length,_=R;for(let P=0;P<E;P++){const N=b[P];if((N==null?void 0:N.conditionKey)==="parentCode")continue;const{id:V,keyName:z,prop:q,format:X,modelKey:U,dataType:j="component",customValue:H}=N,K=u(N);A(K,V,{prop:q,dateFormat:X,modelKey:U,keyName:z}),j===""&&(K.fieldValue=H||""),_.push(K)}for(let P=_.length-1;P>=0;P--){const N=_[P];N.globalCondition||un(_).find(z=>z.alias===N.alias&&z.globalCondition)&&_.splice(P,1)}return _};function u(g){const{id:R,keyName:p,conditionLabel:D,conditionKey:w,conditionValueType:L,prop:M,rule:k="NONE",notGlobal:O=!1,indexCode:T,typeGuid:F,indexCodeNum:b,dataType:E="component"}=g;let _=p||R;_&&M&&(_+=`-${M}`);let P=k;return P==="NONE"&&(["startTime","endTime"].includes(M)?P=M==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":p!=null&&p.includes("startTime")?P=M==="GREATER_EQUAL":p!=null&&p.includes("endTime")?P=M==="LESS_EQUAL":P="EQUAL"),{rule:P,label:D,fieldName:w,fieldValue:"",valueType:L,alias:_,globalCondition:!O,indexCode:T,typeGuid:F,indexCodeNum:b,dataType:E}}const m=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function y(g){if(g!=null&&g.length)for(const R of g)if(R!=null&&R.conditions)y(R.conditions);else{const{id:p,keyName:D,prop:w,modelKey:L,format:M,dataType:k="component",customValue:O}=R,T=u(R);A(T,p,{prop:w,dateFormat:M,modelKey:L,keyName:D}),k===""&&(T.fieldValue=O||"");for(const F in T)R[F]=T[F];for(const F of m)delete R[F]}}function h(g){const R=[];if(g!=null&&g.length){for(const p of g)if(p.variableName){const D={variateName:p.variableName,globalCondition:!1,valueType:p.variableType,alias:p.keyName||""};A(D,p.id,{dateFormat:p.format,prop:p.dateTypeValue,keyName:p.keyName,operateType:p.operateType,operateMode:p.operateMode,operateValue:p.operateValue}),p.dataType===""&&(D.fieldValue=p.variableValue),p.format&&(D.dateFormat=p.format),p.label&&(D.label=p.label),R.push(D)}}return R}function A(g,R,p){const D=r(R)||{},{prop:w="",dateFormat:L="",modelKey:M="",keyName:k="",operateValue:O,operateMode:T,operateType:F}=p||{},{value:b,format:E="YYYY-MM-DD",type:_="",useCurrentTime:P,RECORD:N}=D||{},V=L||E;if(st(D.type,"date")){let z;if(P?b?z=t.unref(b):z=be():z=t.unref(b),O&&T&&F)switch(F){case"add":z=z.add(O,T);break;case"minus":z=z.subtract(O,T);break}g.fieldValue=z==null?void 0:z.format(V),g.dateFormat=V}else if(_==="ecanRangePicker"){let z=w;if(!w){const X=k&&k.split("-");X!=null&&X.length&&(z=X[X.length-1])}if(!z)return;let q=null;if(t.unref(D[z])&&(q=be(t.unref(D[z]))),O&&T&&F)switch(F){case"add":q=q&&q.add(O,T);break;case"minus":q=q&&q.subtract(O,T)}if(q&&(g.fieldValue=q==null?void 0:q.format(V)),z==="rangeValue"&&D.startTime&&D.endTime){const X=zr(V);X&&(g.fieldValue=t.unref(D.endTime).diff(t.unref(D.startTime),X)+1)}g.dateFormat=V}else st(_,Ri)?M&&N?g.fieldValue=N[M]:!M&&N?g.fieldValue=N.value:g.fieldValue=t.unref(b):g.fieldValue=t.unref(b)}const I=g=>{if(g){const R=Oe.cloneDeep(g);return g.defaultCode&&(R.label=R.columnName,delete R.defaultCode),R}else return g},v=g=>{const{sortCpnts:R=[]}=g;let p,D="";for(const w of R){const L=r(w)||{},{type:M,RECORD:k}=L;if(st(M,"image")&&st(k==null?void 0:k.value,["asc","desc"])){D=k.value.toUpperCase();break}}return D&&(p={label:g.label,columnName:g.name,order:D,type:"NORMAL"}),p},S=async(g={})=>{var ie,ue,Se,ke,qe,We;i(e.id,!1);const{graphicConfig:R,type:p,isGroupTable:D=!1}=e;let{source:w,dataViewId:L,plugin:M="1",layer:k,chartType:O,classificationList:T=[],rowHeaderList:F=[],dimensionList:b=[],seriesList:E=[],leftAxisList:_=[],rightAxisList:P=[],queryColumnList:N=[],indicators:V=[],controlList:z=[],formFields:q={},variableList:X=[],variableConditions:U=[],idxLibMode:j,preview:H=!1}=R||{},K=[];if((R==null?void 0:R.pageMode)==="design"?(K=(R.sqlConditions??[]).map(de=>{const xe={};if(!l(de,"globalCondition")&&!de.join&&(xe.globalCondition=!0),!de.join){const fe=de.rule||"EQUAL";xe.rule=fe==="NONE"?"EQUAL":fe}return{...de,...xe}}),U!=null&&U.length&&(K=K.concat(U))):(K=x(R),X!=null&&X.length&&(K=K.concat(h(X)))),K!=null&&K.length){const de=K.filter(fe=>fe.globalCondition),xe=K.filter(fe=>!fe.globalCondition);(de==null?void 0:de.length)>1&&(K=[{join:"&&",conditions:de},...xe])}K!=null&&K.length&&(K=c(K,"1")),k==null&&(st(p,["table"])||st(p,["list","circulate"])&&(T==null?void 0:T.length)>1?k="1":st(p,["select","checkbox","radio"])?k="3":k="2");let te,ce="";if(Array.isArray(T)&&T.length>0&&(!["ecanList","ecanCirculate"].includes(p)||(T==null?void 0:T.length)===1)){const de=T.length;for(let xe=0;xe<de;xe++){const fe=T[xe]||{},{label:Ge="",name:ct="",show:tt=!1,sort:dt,customGroup:Ye,conditions:et,dateFormat:$e,typeGuid:bt="",truncations:Ke=[]}=fe;if(tt||de===1){ce=bt,te={label:Ge.trim(),columnName:ct,show:tt,sort:v(fe)||I(dt)||dt,customGroup:Ye,conditions:c(et),typeGuid:bt},$e&&(te.dateFormat=$e),ct==="the_date"&&!te.dateFormat&&(te.dateFormat="YYYY-MM");const nt={};if(Array.isArray(Ke)&&Ke.length>0){const mt=Ke.length;for(let W=0;W<mt;W++){const Y=Ke[W]||{},{rule:Q="",num:re=0,name:se=""}=Y;Q&&re&&(nt.num=re,nt.rule=Q,se&&(nt.otherGroupName=se))}}(ie=Object.keys(nt))!=null&&ie.length&&(te.truncation=nt);break}}}let ye;if(Array.isArray(E)&&E.length>0){const de=E.length;for(let xe=0;xe<de;xe++){const fe=E[xe]||{},{label:Ge="",name:ct="",show:tt=!1,sort:dt,customGroup:Ye,conditions:et,typeGuid:$e}=fe;if(tt||de===1){ye={label:Ge.trim(),columnName:ct,show:tt,sort:dt,customGroup:Ye,conditions:c(et),typeGuid:$e};break}}}const G=[];_==null||_.forEach(de=>{de.location="LEFT",G.push(f(de,te))}),P==null||P.forEach(de=>{de.location="RIGHT",G.push(f(de,te))}),V==null||V.forEach(de=>{de.location="LEFT",G.push(f(de,te))});const J=[];["ecanList","ecanCirculate"].includes(p)&&(T==null?void 0:T.length)>1&&(N=T),N==null||N.forEach(de=>{const{label:xe,name:fe,location:Ge,show:ct,indexCode:tt,sort:dt,typeGuid:Ye,indexCodeNum:et,dateFormat:$e}=de;let bt=dt;if(g.sort){const{field:nt,order:mt}=g.sort;let W=G.find(Y=>Y.label===nt);!W&&xe===nt&&(W=de),W&&(bt={columnName:W.columnName,label:g.sort.field,order:mt.toUpperCase(),type:"NORMAL"})}const Ke={label:xe,columnName:fe,location:Ge,show:ct,sort:bt,calcType:"COLUMN",hrpIndexCode:tt,hrpIndexCodeNum:et,typeGuid:Ye};$e&&(Ke.dateFormat=$e),fe==="the_date"&&!Ke.dateFormat&&(Ke.dateFormat="YYYY-MM"),J.push(Ke)});const ee=[];let ne=[];if(Array.isArray(F)&&F.length>0?ne=F:Array.isArray(b)&&b.length>0&&(ne=b),ne!=null&&ne.length){const de=ne.length;for(let xe=0;xe<de;xe++){const fe=ne[xe]||{},{label:Ge="",name:ct="",show:tt=!1,sort:dt,customGroup:Ye,conditions:et,truncations:$e,typeGuid:bt="",dateFormat:Ke}=fe;let nt=dt;if(g.sort){const{field:Y,order:Q}=g.sort;let re=G.find(se=>se.label===Y);!re&&fe.label===Y&&(re=fe),re&&(nt={columnName:re.columnName,label:g.sort.field,order:Q.toUpperCase(),type:"NORMAL"})}const mt={label:Ge.trim(),columnName:ct,show:tt,sort:nt,customGroup:Ye,conditions:c(et),typeGuid:bt};Ke&&(mt.dateFormat=Ke),ct==="the_date"&&!mt.dateFormat&&(mt.dateFormat="YYYY-MM");const W={};if(Array.isArray($e)&&$e.length>0){const Y=$e.length;for(let Q=0;Q<Y;Q++){const re=$e[Q]||{},{rule:se="",num:le=0,name:oe=""}=re;se&&le&&(W.num=le,W.rule=se,oe&&(W.otherGroupName=oe))}}(ue=Object.keys(W))!=null&&ue.length&&(mt.truncation=W),ee.push(mt)}}if(st(p,["text","proportion","counter"])&&(O="zb"),D){if(ee.length===0||G.length===0)return;O="grouptable"}else{if(k==="1"&&J.length===0)return;if(k==="2"&&G.length===0)return;if(k==="3"&&(!ce||!q.labelField||!q.valueField))return;if(k==="3"&&p==="ecanDataSelect"&&G.length===0)return}b!=null&&b.length&&(k="1",O="grouptable");let ae=(Se=window==null?void 0:window.config)==null?void 0:Se.pageId;if(!ae){const{pathname:de}=window==null?void 0:window.location;if(de){const xe=de.split("/");xe!=null&&xe.length&&(ae=xe[xe.length-1])}}if((ke=Object.keys(q))!=null&&ke.length){const de=un(z).find(fe=>fe.conditionKey==="parentCode"),xe={};if(de){const fe=r(de.id)||{};if(fe!=null&&fe.itemCodes)xe.parentItemCodes=fe.itemCodes;else return}p==="ecanDataSelect"&&(xe.indicatorList=G.filter(fe=>fe.show));try{const fe=await St.post(`${Di}/diagram/formData`,{source:w,dataViewId:L,plugin:"4",layer:k,chartType:"normalSelect",rangeIndexTypeGuid:ce,type:p==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:q.labelField,valueField:q.valueField,pageId:ae,sqlConditions:K,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...xe},{headers:{Authentication:(qe=window==null?void 0:window.config)==null?void 0:qe.indicatorToken,operateContext:Ei}});return g!=null&&g.isTimer&&o(fe),fe}catch(fe){console.error(fe)}finally{}}else try{const de=await St.post(`${Di}/diagram`,{source:w,dataViewId:L,plugin:M,layer:k,chartType:O,classification:te,series:ye,indicatorList:G,queryColumns:D?[]:J,pageFlag:!0,pageId:ae,sqlConditions:K.map(xe=>{const{fieldValue:fe}=xe,Ge={};return fe&&Array.isArray(fe)&&(Ge.fieldValue=JSON.stringify(fe)),{...xe,...Ge}}),idxLibMode:j,preview:H,rowHeaders:ee,keyName:e.keyName},{headers:{Authentication:(We=window==null?void 0:window.config)==null?void 0:We.indicatorToken,operateContext:Ei}});return g!=null&&g.isTimer&&o(de),de}catch(de){console.error(de)}finally{}},C=t.unref(n)!=="design"&&((B=e==null?void 0:e.graphicConfig)==null?void 0:B.pageMode)!=="design"&&e.isOpenRequestTimer&&e.requestInterval&&setInterval(()=>{S({isTimer:!0})},e.requestInterval*1e3);return t.onUnmounted(()=>{clearInterval(C)}),S},ed=()=>{const o=window.location.search.slice(1).split("&"),n=o.length,a={};for(let i=0;i<n;i++){const r=o[i];if(r==null||r==="")continue;const s=r.split("=");if(Array.isArray(s)){const l=s[0];l.includes("{")||(a[l]=s[1])}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},td=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Un},setup(e){const{width:o,height:n}=t.inject(ze,{width:null,height:null}),a=t.inject("setPageHeight",C=>{}),i=t.inject("isMobile",!1),r=t.computed(()=>{const C={};return i||(C.width=o.value,C.height=n.value),{...C,backgroundColor:e.backgroundColor,backgroundImage:pt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=t.ref(0),l=t.ref(0),d=t.ref(0),c=t.ref(0),f=t.ref(!1),x=t.ref();let u;const m=()=>new Promise(C=>{t.nextTick(()=>{o.value&&n.value?(s.value=parseFloat(o.value),l.value=parseFloat(n.value)):(s.value=x.value.clientWidth,l.value=x.value.clientHeight),(!d.value||!c.value)&&(d.value=window.screen.width,c.value=window.screen.height),C()})}),y=()=>{s.value&&l.value?(x.value.style.width=`${s.value}px`,x.value.style.height=`${l.value}px`):(x.value.style.width=`${d.value}px`,x.value.style.height=`${c.value}px`)};t.watch([o,n],async()=>{await m(),y(),A(),window.addEventListener("resize",I),v(),f.value=!0},{immediate:!0});const h=t.ref({});t.provide("scaleValue",h);const A=()=>{if(i){x.value.style.width="100%",x.value.style.height="auto",a("auto");return}const C=document.body.clientWidth,B=document.body.clientHeight,g=s.value||d.value,R=l.value||c.value,p=C/g;let D=B/R;(s.value!==1920||l.value!==1080)&&(D=l.value/s.value*C/R),h.value={widthScale:p,heightScale:D},x.value&&(x.value.style.transform=`scale(${p}, ${D})`),a(D)},I=Oe.debounce(async()=>{await m(),A()},100),v=()=>{const C=window.MutationObserver;u=new C(I),u.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},S=()=>{u&&(u.disconnect(),u.takeRecords(),u=null)};return t.onMounted(()=>{f.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",I),S()}),{style:r,container:x,ready:f}}}),uh="",nd={id:"container",ref:"container"};function od(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",nd,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],512)}const Pr=Ae(ve(td,[["render",od],["__scopeId","data-v-b496b36e"]])),Po={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},qo=Te(Po),ad=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...qo},setup(e,{expose:o}){ed();const n=t.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),a=t.ref(),i=()=>{a.value.setAttribute("datav-theme",e.theme)},r=t.inject("usedComponentList",[]),s=t.inject("componentList",[]),l=t.computed(()=>{const G=[];for(const J of t.unref(r))J.type==="ecanModal"?G.push(...J.componentList):G.push(J);return G});t.watch(()=>e.theme,()=>{i()}),t.onMounted(()=>{i()});const d=t.computed(()=>_e(e.contextRequestUrl)),c=t.computed(()=>e.pageMode),f=t.computed(()=>e.theme),x=t.computed(()=>e.width),u=t.computed(()=>e.height),m=t.computed(()=>e.pageFontFamily),y=t.computed(()=>{const G=[],J=t.unref(s).filter(ee=>ee.type==="ecanModal");for(const ee of J)ee!=null&&ee.requestList&&G.push(...ee.requestList);return[...G,...e.requestList]}),h=t.ref("");t.provide(ze,{contextRequestUrl:d,pageMode:c,theme:f,touchEventId:h,width:x,height:u,fontFamily:m,requestList:y});const A=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",G=>{let J=G;n.value||(J=parseFloat(u.value)*G+"px"),A.value.height=J}),t.provide("isMobile",n.value),t.provide("getContainerMap",()=>e.containerMap),t.provide("getCombinationMap",()=>e.combinationMap);const I=t.ref(),v=new Map;console.log("globalModel",v);const S=G=>v.get(G),C=(G,J)=>{I.value=J,v.set(G,J)},B=()=>{I.value=null},g=G=>{let J=G;if(J){const ee=G.match(/\{(.+?)\}/g);if(ee!=null&&ee.length){let ne=ee[0].slice(1,-1).trim();const ae=ne.match(/\[(.+?)\]/g);let ie="";ae!=null&&ae.length&&(ne=ne.replace(ae[0],""),ie=ae[0].slice(1,-1).trim());const ue=t.unref(r).find(Se=>Se.keyName===ne);if(ue){const Se=S(ue.id),{type:ke,value:qe,RECORD:We,recordData:de}=Se||{};st(ke,Ri)?J=We[ie]:st(ke,"select")?J=de[ie]:st(ke,["rangePicker","date"])?be.isDayjs(t.unref(Se[ie]))?J=t.unref(Se[ie]).format(Se.format):J=t.unref(Se[ie]):J=qe}else J=""}}return J},R=new Map,p={},D=async(G,J)=>{var ue;const{requestName:ee}=G,ne=await je({...G,projectRequestUrl:t.unref(d),getModel:S})(),ae=((ue=ne==null?void 0:ne.data)==null?void 0:ue.data)||{},ie=R.get(ee);if(ie!=null&&ie.length&&(!J||p[ee])){for(const Se of ie)Se(ae);J||R.delete(ee)}},w=(G,J)=>{p[G]&&(clearInterval(p[G]),delete p[G],R.delete(G));const ee=t.unref(l).filter(ae=>ae.customRequestName===G),ne=R.get(G)||[];if((ee==null?void 0:ee.length)>ne.length&&(ne.push(J),R.set(G,ne),(ee==null?void 0:ee.length)===ne.length)){const ae=t.unref(y).find(ie=>ie.requestName===G);ae&&(ae!=null&&ae.isOpenRequestTimer&&(ae!=null&&ae.requestInterval)?(D(ae,!0),p[G]=setInterval(()=>{D(ae,!0)},ae.requestInterval*1e3)):D(ae))}};t.provide(Le,{getGlobalModel:S,setGlobalModel:C,clearInteractiveData:B,getRecordValueByKeyName:g,hanldePageRequestData:w,interactiveData:I});const L=t.ref({}),M=(G,J)=>{L.value[G]=J};t.provide(Et,{loadedData:L,setLoadedData:M});const k=[],O=()=>{k.pop()},T=G=>{k.push(G)},F=new Map,b=G=>F.get(G),E=(G,J)=>{F.set(G,J)};t.provide(Bi,{popUseModalIds:O,pushUseModalIds:T,getModalModel:b,setModalModel:E});const _=cs(),P=new Set,N=(G,J)=>{P.add(G),_.on(G,ee=>{const{eventName:ne,params:ae}=ee;return typeof J[ne]=="function"&&J[ne](ae)}),t.onBeforeUnmount(()=>{V(G)})},V=G=>{P.delete(G),_.off(G)},z=(G,J,ee={})=>{if(G==="PAGE"){const ne=k.length;let ae=[];if(ne===0)ae=[...P];else{const ie=k[ne-1];ae=[...b(ie)]}ae.forEach(ie=>{_.emit(ie,{eventName:J,params:ee})})}else _.emit(G,{eventName:J,params:ee})};t.provide($n,{onEvent:N,offEvent:V,emitEvent:z});const q=t.ref(0),X=()=>{q.value=t.unref(q)+1};t.provide(Ti,{requestToken:X});const U=new Map,j=new Map,H=({requestFn:G=()=>{},sortNum:J=0,id:ee=""})=>{if(U.has(J)){const ne=U.get(J);ne==null||ne.push(G)}else U.set(J,[G]);j.set(ee,G)},K=G=>new Promise((J,ee)=>{const ne=G.map(ae=>ae());Promise.all(ne).then(ae=>{J(ae)}).catch(ae=>{ee(ae)})}),te=G=>new Promise(async(J,ee)=>{if(G){if(typeof G=="string"){const ne=j.get(G);if(typeof ne=="function"){const ae=St.interceptors.response.use(ie=>(J(ie),ie),ie=>(ee(ie),Promise.reject(ie)));ne(),St.interceptors.response.eject(ae)}}}else{const ne=Array.from(U);ne.sort((ie,ue)=>ue[0]-ie[0]);const ae=ne.length;try{e.pageMode!=="design"&&t.unref(q)>0;for(let ie=0;ie<ae;ie++){const ue=ne[ie][1];await K(ue)}}catch(ie){console.error(ie)}finally{U.clear(),J(null)}}});t.provide(He,{setRequest:H,touchRequest:te});const ce=()=>{_.emit(sn)};t.provide(sn,{emitRefreshPage:ce});const ye=G=>{_.on(sn,()=>G()),t.onMounted(()=>{_.off(sn)})};return t.watchEffect(()=>{var G;if((G=t.unref(r))!=null&&G.length&&t.unref(c)!=="design"){const{jumpType:J,jumpTime:ee,jumpPage:ne,jumpLink:ae}=e;if(ee!=null&&ee.value){let ie=0;switch(ee==null?void 0:ee.suffix){case"hours":ie=ee.value*60*60*1e3;break;case"minute":ie=ee.value*60*1e3;break;case"seconds":ie=ee.value*1e3;break}setTimeout(()=>{let ue="";J==="page"&&ne?ue=zo(t.unref(c),ne):J==="link"&&ae&&(ue=ae),ue=_e(ue),window.open(ue,"_self")},ie)}}}),t.onBeforeUnmount(()=>{U==null||U.clear(),j==null||j.clear()}),o({touchRequest:te,getGlobalModel:S,onRefreshPage:ye}),{providerConfig:a,configStyle:A}}}),gh="";function id(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:t.normalizeStyle({...e.configStyle,fontFamily:e.pageFontFamily})},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const qr=Ae(ve(ad,[["render",id],["__scopeId","data-v-fc92f909"]])),Vo={...Re,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:""},Ho=Te(Vo),Vr=["refreshData","click","valueChange"],jo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xj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9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",Go=t.defineComponent({name:"EcanText",components:{Skeleton:Wt},props:{...Ho},setup(e,{expose:o}){const n=t.ref(!1),a=Ie(e),i=t.ref({}),r=t.computed(()=>e.variableFontSize||"14px"),s=t.computed(()=>"-"+t.unref(r)),l=T=>{var F,b;if(e.showAnimation){const E=e.text.match(/\{(.+?)\}/g)||[];if(E!=null&&E.length){const _=(F=E[0].slice(1,-1))==null?void 0:F.trim();if(t.unref(i)[_]===T){i.value=T;return}const P=+T[_];let N=0;if(isNaN(P))i.value=T;else{String(P).includes(".")&&(N=((b=String(P).split(".")[1])==null?void 0:b.length)||0);const V=Math.abs(P)*Math.pow(10,N),z=String(V).length;let q=[];for(let U=0;U<5;U++){const j=Math.ceil(Math.random()*(V+1)-1);q.includes(j)||q.push(j)}q.sort((U,j)=>U-j),q=q.map(U=>{const j=String(U).split("").reverse(),H=[];for(let K=0;K<z;K++)j&&j[K]?H.push(j[K]):H.push("0");return N&&H.splice(N,0,"."),(P<0?"-":"")+H.reverse().join("")}),q.push(P);let X=0;for(const U of q)setTimeout(()=>{i.value={...t.unref(i),[_]:U}},X*1e3),X+=.1}}else i.value=T}else i.value=T};t.watch(()=>[e.data,e.dataType],([T,F])=>{F==="static"&&l(T)},{immediate:!0});const{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:f,hanldePageRequestData:x}=t.inject(Le,{getGlobalModel:T=>{},setGlobalModel:(T,F)=>{},getRecordValueByKeyName:T=>{},hanldePageRequestData:(T,F)=>{}}),{setLoadedData:u}=t.inject(Et,{setLoadedData:(T,F)=>{}}),m=t.computed(()=>{let T="";if(e.gradientShow){const{gradientColor:F,gradientOffset:b,gradientAngle:E,color:_}=e;T+=`background: linear-gradient(${E}, ${_}, ${F||"transparent"} ${b*100}%);-webkit-background-clip: text;color: transparent;`}return T}),y=t.computed(()=>{const T={};if(e.gradientShow){const{gradientColor:F,gradientOffset:b,gradientAngle:E,color:_}=e,P=F||"transparent";T.background=`linear-gradient(${E}, ${_}, ${P} ${b*100}%)`,T["-webkit-background-clip"]="text",T.color="transparent"}return T}),h=t.computed(()=>{var V;if(t.unref(n))return"NaN";const T=t.unref(i),F=e.increaseColor||e.color,b=e.declineColor||e.color;let E=e.text;E=E==null?void 0:E.replace(/\n|\\n/g,"<br/>"),E=E==null?void 0:E.replace(/\s(?!\{) | (?!\})\s/g," ");const _=E.match(/\{(.+?)\}/g)||[];let P="",N="";if(e.exceedConfig==="wrap"?N="show-wrap":e.exceedConfig==="ellipsis"&&(N="show-ellipsis"),_==null||_.length===0){if(E&&e.format==="percentage"&&!isNaN(+E)){const z=parseFloat(E),q=z*100,X=A(q.toFixed(2));z>=0?E=`<span class="${N}" style="color: ${X||F||"#ED6643"};font-size:${t.unref(r)};display: inline-block;${t.unref(m)}">
|
|
99
|
+
`;let r=e;if(n!=null&&n.length){for(const l of n){const d=_e(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(r=r.replace(l,d))}return`${i}{text|${r}}`}else return e},Fr=(e,o)=>{const{props:n,componentList:a,getGlobalModel:i}=e,{graphicConfig:r={},startValue:s,endValue:l}=n,d=Xc({graphicConfig:r,startValue:s,endValue:l,componentList:a,getGlobalModel:i}),{dimensions:c,dataset:f}=o,{classificationList:x=[]}=r,m=x.find(y=>y.show).label||"";for(const y of d)c.includes(y)||c.push(y);c.sort((y,h)=>be(y).isBefore(be(h))?-1:1);for(const y of f){const{data:h}=y;if(h!=null&&h.length){const A=[];for(const I of d)if(h.find(v=>v[m]!==I)){const v=Oe.cloneDeep(h[0]);for(const S in v)S===m?v[S]=I:v[S]=0;A.push(v)}y.data.push(...A),y.data.sort((I,v)=>be(I[m]).isBefore(be(v[m]))?-1:1)}}},un=e=>{const o=[];for(const n of e)n.conditions?o.push(...un(n.conditions)):(n==null?void 0:n.dataType)==="component"&&o.push(n);return o};function Xc(e){const{startValue:o,endValue:n,componentList:a,graphicConfig:i,getGlobalModel:r}=e,s=Mr(o),l=Mr(n),d=[];if(s&&l){const c=a.find(x=>x.keyName===s.keyName),f=a.find(x=>x.keyName===l.keyName);if(c&&f){const x=r(c.id),u=r(f.id),{classificationList:m=[]}=i,y=m.find(h=>h.show);if(y){let h="YYYY-MM";switch(y.name){case"the_year":h="YYYY";break;case"the_month":h="MM";break;case"the_day":h="DD";break;case"the_date":h=(y==null?void 0:y.dateFormat)||h;break}const A=zr(h);if(h){const I=t.unref(x[s.field]),v=t.unref(u[l.field]);let S=be(I);const C=be(v);for(d.push(C.format(h));S.isBefore(C);)d.push(S.format(h)),S=S.add(1,A)}}}}return d}function Mr(e){let o=null;if(e){const n=e.match(/\{(.+?)\}/g);if(n!=null&&n.length){let a=n[0].slice(1,-1).trim();const i=a.match(/\[(.+?)\]/g);let r="";i!=null&&i.length&&(a=a.replace(i[0],""),r=i[0].slice(1,-1).trim()),o={keyName:a,field:r}}}return o}function zr(e){const o=e.split("-");let n="";if(o!=null&&o.length)switch(o[o.length-1]){case"YYYY":n="year";break;case"MM":n="month";break;case"DD":n="day";break}return n}const hn=(e,o)=>{const n={dayjs:be,...o};let a="";const i=[];for(const l in n)a+=`${l},`,i.push(n[l]);a=a.replace(/,$/,"");const r=`function (${a}){return ${e}}`;let s;try{s=Function(`"use strict";return (${r})`)()(...i)}catch{return e}return s},_e=(e="",{textData:o,codeData:n}={},{useNewline:a=!1,useSpace:i=!1}={})=>{const s={...window.config||{},...o},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let d=0;d<l.length;d++){const c=l[d];let f=c.slice(1,-1).trim();const x=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=f.match(x);for(let m=0;m<u.length;m++){const y=u[m],h=s[y];h!=null&&typeof h!="function"&&(f=f.replace(y,h))}(/\(.*\)/g.test(f)||/[+/\\*]/g.test(f))&&(f=hn(f,n)),e=e.replace(c,f)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),i&&(e=e==null?void 0:e.replace(/\s{2,}?/g," ")),e},je=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:i,requestParams:r,requestInterval:s,isOpenRequestTimer:l,openCustomRequestData:d,projectRequestUrl:c="",getModel:f}=e,{pageMode:x}=t.inject(ze,{pageMode:"normal"}),{contextRequestUrl:u,touchEventId:m}=t.inject(ze,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:y}=t.inject(Le,{getGlobalModel:S=>{}})||{},h=f||y,A=_e(n),I=async(S={})=>{if(!A||!a||!i)return;let C={};r.forEach(D=>{const{key:w,value:L}=D;if(typeof L=="object"&&L!=null&&L.id){let M={};const{id:k,prop:O,propKey:T,operate:F}=L;k==="THIS"?M=h(t.unref(m))||{}:M=h(k)||{};const b=t.unref(M[O]);let E=null;if(["date","range"].some(P=>st(M==null?void 0:M.type,P))){const{value:P,type:N,mode:V}=F||{};if(P&&N&&V)switch(N){case"add":E=t.unref(b).add(P,V);break;case"minus":E=t.unref(b).subtract(P,V);break}E==null&&(E=t.unref(b)),E=(E==null?void 0:E.format((T==null?void 0:T.trim())||M.format))||""}else Object.prototype.toString.call(b)==="[object Object]"?T?E=b[T]:E=O?b[O]:b:st(M==null?void 0:M.type,"select")&&t.unref(b)&&O&&Array.isArray(t.unref(b))?E=t.unref(b).map(P=>Object.prototype.hasOwnProperty.call(P,O)?P[O]:P):E=b;C[w]=E}else typeof L=="string"&&(C[w]=_e(L))}),C={...window.config.requestParams,...S,...C};let B="";const g=Object.keys(C),R=g.length-1,p=g.length;g.forEach((D,w)=>{let L=C[D];Object.prototype.toString.call(L)==="[object Object]"&&(L=JSON.stringify(L)),w===0?p!==1?B+=`?${D}=${L}&`:B+=`?${D}=${L}`:w===R?B+=`${D}=${L}`:B+=`${D}=${L}&`});try{const D=["get","head"].includes(a),w={};let L=D?A+B:A;C.dataSqlId&&!L.includes("dataSqlId")&&(L+=`${L.includes("?")?"&":"?"}dataSqlId=${C.dataSqlId}`),Object.prototype.hasOwnProperty.call(C,"signal")&&(w.signal=C.signal);const M=await vt({baseURL:t.unref(u)||c||"",url:L,method:a,headers:i,data:D?{}:C,...w});return o(M),M}catch(D){console.error(D)}},v=t.unref(x)!=="design"&&l&&(d||d===void 0)&&setInterval(I,s*1e3);return t.onUnmounted(()=>{clearInterval(v)}),I},Lt=(e=[],o,n=!1)=>{let{name:a="name",types:i=[]}=o||{};a=(a==null?void 0:a.trim())||a;const r=new Set,s=new Map,l=e.length,d=i.length;if(l===1&&!n){const x=[];for(let m=0;m<d;m++){const y=i[m],{label:h,value:A}=y,I={...e[0],value:e[0][A]};r.add(h),x.push(I)}const u=e[0][a]||"";s.set(u,x)}else for(let x=0;x<l;x++){const u=e[x],m=u[a];r.add(m);for(let y=0;y<d;y++){const h=i[y],{label:A,value:I}=h,v={...u,value:u[I]||0};if(s.has(A)){const S=s.get(A);S.push(v),s.set(A,S)}else s.set(A,[v])}}const c=Array.from(r),f=[];for(const[x,u]of s)f.push({name:x,data:u});return{dimensions:c,dataset:f}},pt=(e,o=!1)=>{var a;if(!e)return e;let n="";return e!=null&&e.includes("://")?n=e:n=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,o&&(n=`url(${n})`),n},zo=(e,o)=>{const n=`${Ii}/preview?pageId=${o}`,a=`${Ii}/${o}`;return e==="preview"?n:a},mt=(e,o)=>{var i;if(e==null)return o;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return o;const a=n.length;for(let r=0;r<a;r++){const s=n[r];if(s==null||s==="")break;let l=(i=s.slice(1,-1))==null?void 0:i.trim();l=l==null?void 0:l.replace(/value/g,o);try{let d=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(d=hn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},Xe=(e={},o=()=>{})=>{var B;const{pageMode:n}=t.inject(ze,{pageMode:"normal"}),{requestToken:a}=t.inject(Ti,{requestToken:()=>{}}),{setLoadedData:i}=t.inject(Et,{setLoadedData:(g,R)=>{}}),{getGlobalModel:r}=t.inject(Le,{getGlobalModel:g=>{}});e.dataType==="indicator"&&a();const s=g=>{const{around:R,unit:p,id:D}=g;let w="";const{pageMode:L="",componentList:M=[]}=(e==null?void 0:e.graphicConfig)||{};let k=null,O=null;if(L==="design"){const T=M==null?void 0:M.find(V=>V.id===D);if(!T)return[];const{interval:F,intervalUnit:b,startTime:E,endTime:_,operate:P,useCurrentTime:N}=T||{};if(N&&(k=be().subtract(F,b),O=be()),E&&(k=be(E)),_&&(O=be(_)),P){const{type:V,value:z,mode:q}=P;switch(V){case"add":k=k&&k.add(z,q),O=O&&O.add(z,q);break;case"minus":k=k&&k.subtract(z,q),O=O&&O.subtract(z,q)}}}else{const T=r(D)||{};t.unref(T.startTime)&&(k=be(t.unref(T.startTime))),t.unref(T.endTime)&&(O=be(t.unref(T.endTime)))}if(k&&O){const T=O.diff(k,p.toLowerCase());w=`${R==="before"?"-":""}${T+1}`}return w?[w]:[]},l=(g,R)=>Object.prototype.hasOwnProperty.call(g,R),d=(g,R)=>{if(R)l(g,"indexCode")&&(g.hrpIndexCode=g.indexCode,delete g.indexCode),l(g,"indexCodeNum")&&(g.hrpIndexCodeNum=g.indexCodeNum,delete g.indexCodeNum),l(g,"dataType")&&delete g.dataType;else{const{calcWays:p=[],dateCalcTypes:D=[],activeKey:w,componentId:L=""}=g;if(w===5&&(p!=null&&p.length)&&(D!=null&&D.length)&&L){const M=p[0].split("-");(M==null?void 0:M.length)>1&&M[0]==="rangeValue"&&(g.calcWays=s({around:M[1],unit:D[0],id:L})),delete g.radioValue}l(g,"dataType")&&(g.fieldType==="DATE"&&(g.label=g.fieldName),g.dataType==="component"&&(g.fieldValue="${"+g.fieldValue+"}"),delete g.dataType),l(g,"activeKey")&&delete g.activeKey,l(g,"radioValue")&&delete g.radioValue,l(g,"indexCode")&&(g.hrpIndexCode=g.indexCode,delete g.indexCode),l(g,"indexCodeNum")&&(g.hrpIndexCodeNum=g.indexCodeNum,delete g.indexCodeNum),g.dataType!=="component"&&g.useCurrentTime&&(g.fieldValue=be().format(g.dateFormat)),delete g.useCurrentTime}},c=(g,R)=>{const p=[];return g!=null&&g.length&&Oe.cloneDeep(g).forEach(D=>{if(D.join&&D.conditions){const w=!D.conditions.some(L=>L.join&&L.conditions);D.conditions.forEach((L,M)=>{d(L,R);const k={};if(M<D.conditions.length-1&&(k.join=D.join),w)p.push({...k,...L});else if(L.join&&L.conditions){const O=R?"sqlConditions":"conditions";p.push({[O]:c([L],R),...k})}else p.push({...k,...L})})}else d(D,R),p.push(D)}),p},f=(g={},R)=>{if(g!=null&&g.sortCpnts&&R){const U=v(g);U&&(R.sort=U)}const{label:p,name:D,location:w,show:L,indexCode:M,indexCodeNum:k,calcType:O="COLUMN",builtInFormula:T,builtInValueSource:F,builtInCalcWay:b,formula:E,conditions:_,aggregate:P,distinct:N,dimByCount:V,dataTo:z}=g;let q;if(_&&(q=c(_)),O==="COMPONENT"){const U={};return A(U,F),{label:p.trim(),columnName:D,show:L,calcType:O,componentAlias:b,componentValue:U.fieldValue||null}}const X={label:p.trim(),columnName:D,location:w,show:L,calcType:z==="1"?"VIEW":O,hrpIndexCode:M,hrpIndexCodeNum:k,aggregate:P,builtInFormula:T,builtInValueSource:F,formula:E,conditions:q};if(T==="DATE_OFFSET"){const U=b.split("-");if((U==null?void 0:U.length)===3){let j=U[0];return U[2]==="before"&&U[0]!=="0"&&(j=`-${U[0]}`),{...X,calcWays:[j],dateCalcTypes:[U[1]]}}}else return D==="the_count"&&(X.calcType="AGGREGATE",X.distinct=!!N,X.typeGuid=V),{...X,builtInCalcWay:b}},x=g=>{if(!g)return[];const R=Oe.cloneDeep((g==null?void 0:g.controlList)||[]),{classificationList:p=[],rowHeaderList:D=[],dimensionList:w=[],seriesList:L=[],leftAxisList:M=[],rightAxisList:k=[],queryColumnList:O=[],indicators:T=[]}=g;y(R);const F=[...p,...D,...w,...L,...M,...k,...O,...T],b=[];for(const P of F){const N=un((P==null?void 0:P.conditions)||[]);if(N!=null&&N.length){const V=N.filter(z=>(z==null?void 0:z.dataType)==="component").map(z=>{const q={};return z!=null&&z.dateFormat&&(q.format=z.dateFormat),{conditionKey:z.fieldName,conditionLabel:z.fieldName,conditionName:z.fieldName,conditionValueType:z.fieldType,id:z.componentId,keyName:z.fieldValue,rule:z.rule,notGlobal:!0,indexCode:z.indexCode,typeGuid:z.typeGuid,indexCodeNum:z.indexCodeNum,...q}});if(V!=null&&V.length)for(const z of V)b.find(q=>q.keyName===z.keyName)||b.push(z)}}const E=b.length,_=R;for(let P=0;P<E;P++){const N=b[P];if((N==null?void 0:N.conditionKey)==="parentCode")continue;const{id:V,keyName:z,prop:q,format:X,modelKey:U,dataType:j="component",customValue:H}=N,K=u(N);A(K,V,{prop:q,dateFormat:X,modelKey:U,keyName:z}),j===""&&(K.fieldValue=H||""),_.push(K)}for(let P=_.length-1;P>=0;P--){const N=_[P];N.globalCondition||un(_).find(z=>z.alias===N.alias&&z.globalCondition)&&_.splice(P,1)}return _};function u(g){const{id:R,keyName:p,conditionLabel:D,conditionKey:w,conditionValueType:L,prop:M,rule:k="NONE",notGlobal:O=!1,indexCode:T,typeGuid:F,indexCodeNum:b,dataType:E="component"}=g;let _=p||R;_&&M&&(_+=`-${M}`);let P=k;return P==="NONE"&&(["startTime","endTime"].includes(M)?P=M==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":p!=null&&p.includes("startTime")?P=M==="GREATER_EQUAL":p!=null&&p.includes("endTime")?P=M==="LESS_EQUAL":P="EQUAL"),{rule:P,label:D,fieldName:w,fieldValue:"",valueType:L,alias:_,globalCondition:!O,indexCode:T,typeGuid:F,indexCodeNum:b,dataType:E}}const m=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function y(g){if(g!=null&&g.length)for(const R of g)if(R!=null&&R.conditions)y(R.conditions);else{const{id:p,keyName:D,prop:w,modelKey:L,format:M,dataType:k="component",customValue:O}=R,T=u(R);A(T,p,{prop:w,dateFormat:M,modelKey:L,keyName:D}),k===""&&(T.fieldValue=O||"");for(const F in T)R[F]=T[F];for(const F of m)delete R[F]}}function h(g){const R=[];if(g!=null&&g.length){for(const p of g)if(p.variableName){const D={variateName:p.variableName,globalCondition:!1,valueType:p.variableType,alias:p.keyName||""};A(D,p.id,{dateFormat:p.format,prop:p.dateTypeValue,keyName:p.keyName,operateType:p.operateType,operateMode:p.operateMode,operateValue:p.operateValue}),p.dataType===""&&(D.fieldValue=p.variableValue),p.format&&(D.dateFormat=p.format),p.label&&(D.label=p.label),R.push(D)}}return R}function A(g,R,p){const D=r(R)||{},{prop:w="",dateFormat:L="",modelKey:M="",keyName:k="",operateValue:O,operateMode:T,operateType:F}=p||{},{value:b,format:E="YYYY-MM-DD",type:_="",useCurrentTime:P,RECORD:N}=D||{},V=L||E;if(st(D.type,"date")){let z;if(P?b?z=t.unref(b):z=be():z=t.unref(b),O&&T&&F)switch(F){case"add":z=z.add(O,T);break;case"minus":z=z.subtract(O,T);break}g.fieldValue=z==null?void 0:z.format(V),g.dateFormat=V}else if(_==="ecanRangePicker"){let z=w;if(!w){const X=k&&k.split("-");X!=null&&X.length&&(z=X[X.length-1])}if(!z)return;let q=null;if(t.unref(D[z])&&(q=be(t.unref(D[z]))),O&&T&&F)switch(F){case"add":q=q&&q.add(O,T);break;case"minus":q=q&&q.subtract(O,T)}if(q&&(g.fieldValue=q==null?void 0:q.format(V)),z==="rangeValue"&&D.startTime&&D.endTime){const X=zr(V);X&&(g.fieldValue=t.unref(D.endTime).diff(t.unref(D.startTime),X)+1)}g.dateFormat=V}else st(_,Ri)?M&&N?g.fieldValue=N[M]:!M&&N?g.fieldValue=N.value:g.fieldValue=t.unref(b):g.fieldValue=t.unref(b)}const I=g=>{if(g){const R=Oe.cloneDeep(g);return g.defaultCode&&(R.label=R.columnName,delete R.defaultCode),R}else return g},v=g=>{const{sortCpnts:R=[]}=g;let p,D="";for(const w of R){const L=r(w)||{},{type:M,RECORD:k}=L;if(st(M,"image")&&st(k==null?void 0:k.value,["asc","desc"])){D=k.value.toUpperCase();break}}return D&&(p={label:g.label,columnName:g.name,order:D,type:"NORMAL"}),p},S=async(g={})=>{var ie,ue,Se,ke,qe,We;i(e.id,!1);const{graphicConfig:R,type:p,isGroupTable:D=!1}=e;let{source:w,dataViewId:L,plugin:M="1",layer:k,chartType:O,classificationList:T=[],rowHeaderList:F=[],dimensionList:b=[],seriesList:E=[],leftAxisList:_=[],rightAxisList:P=[],queryColumnList:N=[],indicators:V=[],controlList:z=[],formFields:q={},variableList:X=[],variableConditions:U=[],idxLibMode:j,preview:H=!1}=R||{},K=[];if((R==null?void 0:R.pageMode)==="design"?(K=(R.sqlConditions??[]).map(de=>{const xe={};if(!l(de,"globalCondition")&&!de.join&&(xe.globalCondition=!0),!de.join){const fe=de.rule||"EQUAL";xe.rule=fe==="NONE"?"EQUAL":fe}return{...de,...xe}}),U!=null&&U.length&&(K=K.concat(U))):(K=x(R),X!=null&&X.length&&(K=K.concat(h(X)))),K!=null&&K.length){const de=K.filter(fe=>fe.globalCondition),xe=K.filter(fe=>!fe.globalCondition);(de==null?void 0:de.length)>1&&(K=[{join:"&&",conditions:de},...xe])}K!=null&&K.length&&(K=c(K,"1")),k==null&&(st(p,["table"])||st(p,["list","circulate"])&&(T==null?void 0:T.length)>1?k="1":st(p,["select","checkbox","radio"])?k="3":k="2");let te,ce="";if(Array.isArray(T)&&T.length>0&&(!["ecanList","ecanCirculate"].includes(p)||(T==null?void 0:T.length)===1)){const de=T.length;for(let xe=0;xe<de;xe++){const fe=T[xe]||{},{label:Ge="",name:ct="",show:tt=!1,sort:dt,customGroup:Ye,conditions:et,dateFormat:$e,typeGuid:St="",truncations:nt=[]}=fe;if(tt||de===1){ce=St,te={label:Ge.trim(),columnName:ct,show:tt,sort:v(fe)||I(dt)||dt,customGroup:Ye,conditions:c(et),typeGuid:St},$e&&(te.dateFormat=$e),ct==="the_date"&&!te.dateFormat&&(te.dateFormat="YYYY-MM");const Ke={};if(Array.isArray(nt)&&nt.length>0){const ft=nt.length;for(let W=0;W<ft;W++){const Y=nt[W]||{},{rule:Q="",num:re=0,name:se=""}=Y;Q&&re&&(Ke.num=re,Ke.rule=Q,se&&(Ke.otherGroupName=se))}}(ie=Object.keys(Ke))!=null&&ie.length&&(te.truncation=Ke);break}}}let ye;if(Array.isArray(E)&&E.length>0){const de=E.length;for(let xe=0;xe<de;xe++){const fe=E[xe]||{},{label:Ge="",name:ct="",show:tt=!1,sort:dt,customGroup:Ye,conditions:et,typeGuid:$e}=fe;if(tt||de===1){ye={label:Ge.trim(),columnName:ct,show:tt,sort:dt,customGroup:Ye,conditions:c(et),typeGuid:$e};break}}}const G=[];_==null||_.forEach(de=>{de.location="LEFT",G.push(f(de,te))}),P==null||P.forEach(de=>{de.location="RIGHT",G.push(f(de,te))}),V==null||V.forEach(de=>{de.location="LEFT",G.push(f(de,te))});const J=[];["ecanList","ecanCirculate"].includes(p)&&(T==null?void 0:T.length)>1&&(N=T),N==null||N.forEach(de=>{const{label:xe,name:fe,location:Ge,show:ct,indexCode:tt,sort:dt,typeGuid:Ye,indexCodeNum:et,dateFormat:$e,conditions:St}=de;let nt=dt;if(g.sort){const{field:ft,order:W}=g.sort;let Y=G.find(Q=>Q.label===ft);!Y&&xe===ft&&(Y=de),Y&&(nt={columnName:Y.columnName,label:g.sort.field,order:W.toUpperCase(),type:"NORMAL"})}const Ke={label:xe,columnName:fe,location:Ge,show:ct,sort:nt,calcType:"COLUMN",hrpIndexCode:tt,hrpIndexCodeNum:et,conditions:c(St),typeGuid:Ye};$e&&(Ke.dateFormat=$e),fe==="the_date"&&!Ke.dateFormat&&(Ke.dateFormat="YYYY-MM"),J.push(Ke)});const ee=[];let ne=[];if(Array.isArray(F)&&F.length>0?ne=F:Array.isArray(b)&&b.length>0&&(ne=b),ne!=null&&ne.length){const de=ne.length;for(let xe=0;xe<de;xe++){const fe=ne[xe]||{},{label:Ge="",name:ct="",show:tt=!1,sort:dt,customGroup:Ye,conditions:et,truncations:$e,typeGuid:St="",dateFormat:nt}=fe;let Ke=dt;if(g.sort){const{field:Y,order:Q}=g.sort;let re=G.find(se=>se.label===Y);!re&&fe.label===Y&&(re=fe),re&&(Ke={columnName:re.columnName,label:g.sort.field,order:Q.toUpperCase(),type:"NORMAL"})}const ft={label:Ge.trim(),columnName:ct,show:tt,sort:Ke,customGroup:Ye,conditions:c(et),typeGuid:St};nt&&(ft.dateFormat=nt),ct==="the_date"&&!ft.dateFormat&&(ft.dateFormat="YYYY-MM");const W={};if(Array.isArray($e)&&$e.length>0){const Y=$e.length;for(let Q=0;Q<Y;Q++){const re=$e[Q]||{},{rule:se="",num:le=0,name:oe=""}=re;se&&le&&(W.num=le,W.rule=se,oe&&(W.otherGroupName=oe))}}(ue=Object.keys(W))!=null&&ue.length&&(ft.truncation=W),ee.push(ft)}}if(st(p,["text","proportion","counter"])&&(O="zb"),D){if(ee.length===0||G.length===0)return;O="grouptable"}else{if(k==="1"&&J.length===0)return;if(k==="2"&&G.length===0)return;if(k==="3"&&(!ce||!q.labelField||!q.valueField))return;if(k==="3"&&p==="ecanDataSelect"&&G.length===0)return}b!=null&&b.length&&(k="1",O="grouptable");let ae=(Se=window==null?void 0:window.config)==null?void 0:Se.pageId;if(!ae){const{pathname:de}=window==null?void 0:window.location;if(de){const xe=de.split("/");xe!=null&&xe.length&&(ae=xe[xe.length-1])}}if((ke=Object.keys(q))!=null&&ke.length){const de=un(z).find(fe=>fe.conditionKey==="parentCode"),xe={};if(de){const fe=r(de.id)||{};if(fe!=null&&fe.itemCodes)xe.parentItemCodes=fe.itemCodes;else return}p==="ecanDataSelect"&&(xe.indicatorList=G.filter(fe=>fe.show));try{const fe=await vt.post(`${Di}/diagram/formData`,{source:w,dataViewId:L,plugin:"4",layer:k,chartType:"normalSelect",rangeIndexTypeGuid:ce,type:p==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:q.labelField,valueField:q.valueField,pageId:ae,sqlConditions:K,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...xe},{headers:{Authentication:(qe=window==null?void 0:window.config)==null?void 0:qe.indicatorToken,operateContext:Ei}});return g!=null&&g.isTimer&&o(fe),fe}catch(fe){console.error(fe)}finally{}}else try{const de=await vt.post(`${Di}/diagram`,{source:w,dataViewId:L,plugin:M,layer:k,chartType:O,classification:te,series:ye,indicatorList:G,queryColumns:D?[]:J,pageFlag:!0,pageId:ae,sqlConditions:K.map(xe=>{const{fieldValue:fe}=xe,Ge={};return fe&&Array.isArray(fe)&&(Ge.fieldValue=JSON.stringify(fe)),{...xe,...Ge}}),idxLibMode:j,preview:H,rowHeaders:ee,keyName:e.keyName},{headers:{Authentication:(We=window==null?void 0:window.config)==null?void 0:We.indicatorToken,operateContext:Ei}});return g!=null&&g.isTimer&&o(de),de}catch(de){console.error(de)}finally{}},C=t.unref(n)!=="design"&&((B=e==null?void 0:e.graphicConfig)==null?void 0:B.pageMode)!=="design"&&e.isOpenRequestTimer&&e.requestInterval&&setInterval(()=>{S({isTimer:!0})},e.requestInterval*1e3);return t.onUnmounted(()=>{clearInterval(C)}),S},ed=()=>{const o=window.location.search.slice(1).split("&"),n=o.length,a={};for(let i=0;i<n;i++){const r=o[i];if(r==null||r==="")continue;const s=r.split("=");if(Array.isArray(s)){const l=s[0];l.includes("{")||(a[l]=s[1])}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},td=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Un},setup(e){const{width:o,height:n}=t.inject(ze,{width:null,height:null}),a=t.inject("setPageHeight",C=>{}),i=t.inject("isMobile",!1),r=t.computed(()=>{const C={};return i||(C.width=o.value,C.height=n.value),{...C,backgroundColor:e.backgroundColor,backgroundImage:pt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=t.ref(0),l=t.ref(0),d=t.ref(0),c=t.ref(0),f=t.ref(!1),x=t.ref();let u;const m=()=>new Promise(C=>{t.nextTick(()=>{o.value&&n.value?(s.value=parseFloat(o.value),l.value=parseFloat(n.value)):(s.value=x.value.clientWidth,l.value=x.value.clientHeight),(!d.value||!c.value)&&(d.value=window.screen.width,c.value=window.screen.height),C()})}),y=()=>{s.value&&l.value?(x.value.style.width=`${s.value}px`,x.value.style.height=`${l.value}px`):(x.value.style.width=`${d.value}px`,x.value.style.height=`${c.value}px`)};t.watch([o,n],async()=>{await m(),y(),A(),window.addEventListener("resize",I),v(),f.value=!0},{immediate:!0});const h=t.ref({});t.provide("scaleValue",h);const A=()=>{if(i){x.value.style.width="100%",x.value.style.height="auto",a("auto");return}const C=document.body.clientWidth,B=document.body.clientHeight,g=s.value||d.value,R=l.value||c.value,p=C/g;let D=B/R;(s.value!==1920||l.value!==1080)&&(D=l.value/s.value*C/R),h.value={widthScale:p,heightScale:D},x.value&&(x.value.style.transform=`scale(${p}, ${D})`),a(D)},I=Oe.debounce(async()=>{await m(),A()},100),v=()=>{const C=window.MutationObserver;u=new C(I),u.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},S=()=>{u&&(u.disconnect(),u.takeRecords(),u=null)};return t.onMounted(()=>{f.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",I),S()}),{style:r,container:x,ready:f}}}),uh="",nd={id:"container",ref:"container"};function od(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",nd,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],512)}const Pr=Ae(ve(td,[["render",od],["__scopeId","data-v-b496b36e"]])),Po={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},qo=Te(Po),ad=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...qo},setup(e,{expose:o}){ed();const n=t.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),a=t.ref(),i=()=>{a.value.setAttribute("datav-theme",e.theme)},r=t.inject("usedComponentList",[]),s=t.inject("componentList",[]),l=t.computed(()=>{const G=[];for(const J of t.unref(r))J.type==="ecanModal"?G.push(...J.componentList):G.push(J);return G});t.watch(()=>e.theme,()=>{i()}),t.onMounted(()=>{i()});const d=t.computed(()=>_e(e.contextRequestUrl)),c=t.computed(()=>e.pageMode),f=t.computed(()=>e.theme),x=t.computed(()=>e.width),u=t.computed(()=>e.height),m=t.computed(()=>e.pageFontFamily),y=t.computed(()=>{const G=[],J=t.unref(s).filter(ee=>ee.type==="ecanModal");for(const ee of J)ee!=null&&ee.requestList&&G.push(...ee.requestList);return[...G,...e.requestList]}),h=t.ref("");t.provide(ze,{contextRequestUrl:d,pageMode:c,theme:f,touchEventId:h,width:x,height:u,fontFamily:m,requestList:y});const A=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",G=>{let J=G;n.value||(J=parseFloat(u.value)*G+"px"),A.value.height=J}),t.provide("isMobile",n.value),t.provide("getContainerMap",()=>e.containerMap),t.provide("getCombinationMap",()=>e.combinationMap);const I=t.ref(),v=new Map;console.log("globalModel",v);const S=G=>v.get(G),C=(G,J)=>{I.value=J,v.set(G,J)},B=()=>{I.value=null},g=G=>{let J=G;if(J){const ee=G.match(/\{(.+?)\}/g);if(ee!=null&&ee.length){let ne=ee[0].slice(1,-1).trim();const ae=ne.match(/\[(.+?)\]/g);let ie="";ae!=null&&ae.length&&(ne=ne.replace(ae[0],""),ie=ae[0].slice(1,-1).trim());const ue=t.unref(r).find(Se=>Se.keyName===ne);if(ue){const Se=S(ue.id),{type:ke,value:qe,RECORD:We,recordData:de}=Se||{};st(ke,Ri)?J=We[ie]:st(ke,"select")?J=de[ie]:st(ke,["rangePicker","date"])?be.isDayjs(t.unref(Se[ie]))?J=t.unref(Se[ie]).format(Se.format):J=t.unref(Se[ie]):J=qe}else J=""}}return J},R=new Map,p={},D=async(G,J)=>{var ue;const{requestName:ee}=G,ne=await je({...G,projectRequestUrl:t.unref(d),getModel:S})(),ae=((ue=ne==null?void 0:ne.data)==null?void 0:ue.data)||{},ie=R.get(ee);if(ie!=null&&ie.length&&(!J||p[ee])){for(const Se of ie)Se(ae);J||R.delete(ee)}},w=(G,J)=>{p[G]&&(clearInterval(p[G]),delete p[G],R.delete(G));const ee=t.unref(l).filter(ae=>ae.customRequestName===G),ne=R.get(G)||[];if((ee==null?void 0:ee.length)>ne.length&&(ne.push(J),R.set(G,ne),(ee==null?void 0:ee.length)===ne.length)){const ae=t.unref(y).find(ie=>ie.requestName===G);ae&&(ae!=null&&ae.isOpenRequestTimer&&(ae!=null&&ae.requestInterval)?(D(ae,!0),p[G]=setInterval(()=>{D(ae,!0)},ae.requestInterval*1e3)):D(ae))}};t.provide(Le,{getGlobalModel:S,setGlobalModel:C,clearInteractiveData:B,getRecordValueByKeyName:g,hanldePageRequestData:w,interactiveData:I});const L=t.ref({}),M=(G,J)=>{L.value[G]=J};t.provide(Et,{loadedData:L,setLoadedData:M});const k=[],O=()=>{k.pop()},T=G=>{k.push(G)},F=new Map,b=G=>F.get(G),E=(G,J)=>{F.set(G,J)};t.provide(Bi,{popUseModalIds:O,pushUseModalIds:T,getModalModel:b,setModalModel:E});const _=cs(),P=new Set,N=(G,J)=>{P.add(G),_.on(G,ee=>{const{eventName:ne,params:ae}=ee;return typeof J[ne]=="function"&&J[ne](ae)}),t.onBeforeUnmount(()=>{V(G)})},V=G=>{P.delete(G),_.off(G)},z=(G,J,ee={})=>{if(G==="PAGE"){const ne=k.length;let ae=[];if(ne===0)ae=[...P];else{const ie=k[ne-1];ae=[...b(ie)]}ae.forEach(ie=>{_.emit(ie,{eventName:J,params:ee})})}else _.emit(G,{eventName:J,params:ee})};t.provide($n,{onEvent:N,offEvent:V,emitEvent:z});const q=t.ref(0),X=()=>{q.value=t.unref(q)+1};t.provide(Ti,{requestToken:X});const U=new Map,j=new Map,H=({requestFn:G=()=>{},sortNum:J=0,id:ee=""})=>{if(U.has(J)){const ne=U.get(J);ne==null||ne.push(G)}else U.set(J,[G]);j.set(ee,G)},K=G=>new Promise((J,ee)=>{const ne=G.map(ae=>ae());Promise.all(ne).then(ae=>{J(ae)}).catch(ae=>{ee(ae)})}),te=G=>new Promise(async(J,ee)=>{if(G){if(typeof G=="string"){const ne=j.get(G);if(typeof ne=="function"){const ae=vt.interceptors.response.use(ie=>(J(ie),ie),ie=>(ee(ie),Promise.reject(ie)));ne(),vt.interceptors.response.eject(ae)}}}else{const ne=Array.from(U);ne.sort((ie,ue)=>ue[0]-ie[0]);const ae=ne.length;try{e.pageMode!=="design"&&t.unref(q)>0;for(let ie=0;ie<ae;ie++){const ue=ne[ie][1];await K(ue)}}catch(ie){console.error(ie)}finally{U.clear(),J(null)}}});t.provide(He,{setRequest:H,touchRequest:te});const ce=()=>{_.emit(sn)};t.provide(sn,{emitRefreshPage:ce});const ye=G=>{_.on(sn,()=>G()),t.onMounted(()=>{_.off(sn)})};return t.watchEffect(()=>{var G;if((G=t.unref(r))!=null&&G.length&&t.unref(c)!=="design"){const{jumpType:J,jumpTime:ee,jumpPage:ne,jumpLink:ae}=e;if(ee!=null&&ee.value){let ie=0;switch(ee==null?void 0:ee.suffix){case"hours":ie=ee.value*60*60*1e3;break;case"minute":ie=ee.value*60*1e3;break;case"seconds":ie=ee.value*1e3;break}setTimeout(()=>{let ue="";J==="page"&&ne?ue=zo(t.unref(c),ne):J==="link"&&ae&&(ue=ae),ue=_e(ue),window.open(ue,"_self")},ie)}}}),t.onBeforeUnmount(()=>{U==null||U.clear(),j==null||j.clear()}),o({touchRequest:te,getGlobalModel:S,onRefreshPage:ye}),{providerConfig:a,configStyle:A}}}),gh="";function id(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:t.normalizeStyle({...e.configStyle,fontFamily:e.pageFontFamily})},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const qr=Ae(ve(ad,[["render",id],["__scopeId","data-v-fc92f909"]])),Vo={...Re,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:""},Ho=Te(Vo),Vr=["refreshData","click","valueChange"],jo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5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Cg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",Go=t.defineComponent({name:"EcanText",components:{Skeleton:Wt},props:{...Ho},setup(e,{expose:o}){const n=t.ref(!1),a=Ie(e),i=t.ref({}),r=t.computed(()=>e.variableFontSize||"14px"),s=t.computed(()=>"-"+t.unref(r)),l=T=>{var F,b;if(e.showAnimation){const E=e.text.match(/\{(.+?)\}/g)||[];if(E!=null&&E.length){const _=(F=E[0].slice(1,-1))==null?void 0:F.trim();if(t.unref(i)[_]===T){i.value=T;return}const P=+T[_];let N=0;if(isNaN(P))i.value=T;else{String(P).includes(".")&&(N=((b=String(P).split(".")[1])==null?void 0:b.length)||0);const V=Math.abs(P)*Math.pow(10,N),z=String(V).length;let q=[];for(let U=0;U<5;U++){const j=Math.ceil(Math.random()*(V+1)-1);q.includes(j)||q.push(j)}q.sort((U,j)=>U-j),q=q.map(U=>{const j=String(U).split("").reverse(),H=[];for(let K=0;K<z;K++)j&&j[K]?H.push(j[K]):H.push("0");return N&&H.splice(N,0,"."),(P<0?"-":"")+H.reverse().join("")}),q.push(P);let X=0;for(const U of q)setTimeout(()=>{i.value={...t.unref(i),[_]:U}},X*1e3),X+=.1}}else i.value=T}else i.value=T};t.watch(()=>[e.data,e.dataType],([T,F])=>{F==="static"&&l(T)},{immediate:!0});const{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:f,hanldePageRequestData:x}=t.inject(Le,{getGlobalModel:T=>{},setGlobalModel:(T,F)=>{},getRecordValueByKeyName:T=>{},hanldePageRequestData:(T,F)=>{}}),{setLoadedData:u}=t.inject(Et,{setLoadedData:(T,F)=>{}}),m=t.computed(()=>{let T="";if(e.gradientShow){const{gradientColor:F,gradientOffset:b,gradientAngle:E,color:_}=e;T+=`background: linear-gradient(${E}, ${_}, ${F||"transparent"} ${b*100}%);-webkit-background-clip: text;color: transparent;`}return T}),y=t.computed(()=>{const T={};if(e.gradientShow){const{gradientColor:F,gradientOffset:b,gradientAngle:E,color:_}=e,P=F||"transparent";T.background=`linear-gradient(${E}, ${_}, ${P} ${b*100}%)`,T["-webkit-background-clip"]="text",T.color="transparent"}return T}),h=t.computed(()=>{var V;if(t.unref(n))return"NaN";const T=t.unref(i),F=e.increaseColor||e.color,b=e.declineColor||e.color;let E=e.text;E=E==null?void 0:E.replace(/\n|\\n/g,"<br/>"),E=E==null?void 0:E.replace(/\s(?!\{) | (?!\})\s/g," ");const _=E.match(/\{(.+?)\}/g)||[];let P="",N="";if(e.exceedConfig==="wrap"?N="show-wrap":e.exceedConfig==="ellipsis"&&(N="show-ellipsis"),_==null||_.length===0){if(E&&e.format==="percentage"&&!isNaN(+E)){const z=parseFloat(E),q=z*100,X=A(q.toFixed(2));z>=0?E=`<span class="${N}" style="color: ${X||F||"#ED6643"};font-size:${t.unref(r)};display: inline-block;${t.unref(m)}">
|
|
100
100
|
<div class="percentage-img-box">
|
|
101
101
|
<img style="width: ${t.unref(r)};filter: ${`drop-shadow(${X||F||"#ED6643"} ${t.unref(r)} 0px)`};" src="${jo}"/>
|
|
102
102
|
</div>
|
|
@@ -116,6 +116,6 @@ version: 2.9.0
|
|
|
116
116
|
<img style="width: ${t.unref(r)};filter: ${`drop-shadow(${te||b||"#6ACB97"} ${t.unref(r)} 0px)`};" src="${Wo}"/>
|
|
117
117
|
</div>
|
|
118
118
|
<span style="color: ${te||e.color};${t.unref(m)}">${e.minusSignShow?"-":""}${Math.abs(+H).toFixed(2)}%</span>
|
|
119
|
-
</span>`)}else e.format==="percent"?(H=+H,isNaN(H)||(H=(H*100).toFixed(2),E=E.replace(q,`<span class="${N}" style="color:${A(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}%</span>`))):e.format==="money"?(H=+H,isNaN(H)||(H=Mo(H),E=E.replace(q,`<span class="${N}" style="color:${A(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}</span>`))):K==="thousands"?(H=+H,isNaN(H)||(H=Qc(H),E=E.replace(q,`<span class="${N}" style="color:${A(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}</span>`))):E=E.replace(q,`<span class="${N}" style="color:${A(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}</span>`)}}if(P||(P=`<span class="${N}" style="color: ${A(E)};${t.unref(m)}">${E}</span>`),e.unitShow&&e.unitText){const{unitTop:z,unitLeft:q}=e;let X="position:relative;";z&&(X+=`top:${z};`),q&&(X+=`margin-left:${q};`),P+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${X};${t.unref(m)}'>${e.unitText}</span>`}return e.exceedConfig&&(P=`<span class="${N}" style="display: inline-block;color: ${A(P)};">${P}</span>`),P.includes("span")||(P=`<span class="${N}" style="color: ${A(P)};">${P}</span>`),P});function A(T){let F="",b=!1;const{targetValue:E,targetShow:_,notExpectColor:P}=e;if(_){switch(e.targetRule){case"equal":T!==E&&(b=!0);break;case"greater":T<=E&&(b=!0);break;case"greater_equal":T<E&&(b=!0);break;case"less":T>=E&&(b=!0);break;case"less_equal":T>E&&(b=!0);break}b&&(F=P)}return F}const{pageMode:I}=t.inject(ze,{pageMode:"normal",requestList:[]}),v=je(e,T=>{var F;l(((F=T==null?void 0:T.data)==null?void 0:F.data)||{})}),S=t.ref(!1),C=async()=>{var T;try{S.value=!0;const F=await v();l(((T=F==null?void 0:F.data)==null?void 0:T.data)||{})}catch(F){console.error(F)}finally{S.value=!1}},B=T=>{const F=e.id,b=d(F);c(F,{...b,value:T||"",RECORD:T||""})},g=()=>{B("")},R=T=>{var b,E;const{data:F}=(T==null?void 0:T.data)||{};if(F){n.value=!1;const{columns:_=[],rows:P=[]}=((b=T==null?void 0:T.data)==null?void 0:b.data)??{},{graphicConfig:N}=e;let V={};if(_.length>0)if((E=N==null?void 0:N.dimensionList)!=null&&E.length){const z=_[0];z&&(P!=null&&P.length)&&(V={value:P[0][z]})}else{const z=_.find(q=>!!q);z&&(V={value:isNaN(P[z])?0:P[z]||0})}B(V==null?void 0:V.value),l(V)}else n.value=!0,B("NaN"),l({value:"NaN"})},p=Xe(e,R),D=async()=>{try{S.value=!0;const T=await p();R(T)}catch(T){console.error(T)}finally{S.value=!1,u(e.id,!0)}},w=()=>{switch(e.dataType){case"indicator":D();break;case"request":{const{openCustomRequestData:T,customRequestName:F,customRequestField:b}=e;T||T===void 0?C():x(F,E=>{E&&l({[b]:E[b]})});break}}},{setRequest:L}=t.inject(He,{setRequest:({id:T,sortNum:F,requestFn:b})=>{}});typeof L=="function"&&L({id:e.id,requestFn:w,sortNum:e.requestSort}),Fe(e,{refreshData:w,resetRecord:g}),o({refreshData:w});const M=Ne(e),k=M("click",()=>{var N;const T=document.getElementsByClassName(`ecan-text_${e.id}`);if(T!=null&&T.length&&B(T[0].innerText),setTimeout(()=>{B("")},0),!e.linkPage&&!e.href)return;const F=e.linkPage||"",b=zo(t.unref(I),F),E=e.href;let _=E||b;_=_e(_);const P=e.target;if(P)if(P!=="event"){if((N=e.transParams)!=null&&N.length){_.includes("?")?_+="&":_+="?";const V=[];for(const z of e.transParams)V.push(`${z.keyName}=${f(String(z.fieldName))}`);_+=V.join("&")}window.open(_,"_"+P)}else window.parent.postMessage({type:"openPage",url:E},"*")}),O=M("valueChange",()=>{});return t.watch(()=>h.value,(T,F)=>{T!==F&&O()}),{style:a,myText:h,loading:S,click:k,textIndent:s,vFontSize:r,gradientStyle:y}}}),Hr=()=>{t.useCssVars(e=>({"2919b577":e.vFontSize,bb85f730:e.textIndent,"36e7efc0":e.percentageSide}))},jr=Go.setup;Go.setup=jr?(e,o)=>(Hr(),jr(e,o)):Hr;const yh="",xh="",rd=["innerHTML"];function ld(e,o,n,a,i,r){const s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["ecan-text","ecan-text_"+e.id]),style:t.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,14,rd))}const Wr=Ae(ve(Go,[["render",ld],["__scopeId","data-v-1ecc1ea2"]])),sd=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),bh="",cd={class:"red"};function dd(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",cd,t.toDisplayString(e.text),1)}const Gr=Ae(ve(sd,[["render",dd],["__scopeId","data-v-4dd9c03e"]])),Uo={...Re,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},$o=Te(Uo),Ur=["timeChange"],fd=t.defineComponent({name:"EcanTimeDisplay",props:{...$o},setup(e){const o=Ie(e),n=()=>{const{format:c,operate:f}=e;let x=be();if(f){const{type:u,value:m,mode:y}=f;switch(u){case"add":x=x.add(m,y);break;case"minus":x=x.subtract(m,y)}}return x.format(c)},a=t.ref();t.watch(()=>[e.operate,e.format],()=>{a.value=n()},{immediate:!0,deep:!0}),t.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let i=null;const r=()=>{clearInterval(i),i=null},l=Ne(e)("timeChange",()=>{}),d=()=>{i&&r();let c=1e3;const{value:f,mode:x}=e.updateInterval||{};f&&(c=c*f);const u={second:1,minute:60,hour:60*60,day:24*60*60};x&&(c=c*u[x]),i=setInterval(()=>{a.value=n(),l()},c)};return Fe(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{r()}),{style:o,time:a}}}),Sh="";function ud(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const $r=Ae(ve(fd,[["render",ud],["__scopeId","data-v-b628fca2"]])),Yo={...Re,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"0px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}",itemWidth:"100%"},Ko=Te(Yo),Yr=["refreshData","click","resetRecord"],hd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WD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ErkJggg==",xd=t.defineComponent({name:"EcanList",components:{Skeleton:Wt,ATooltip:he.Tooltip,MarqueeScroll:Wn},props:{...Ko},setup(e,{expose:o}){const n=t.ref(),a=Ie(e,["backgroundColor"]),i=(b,E)=>{const{format:_,customFormatter:P}=E;if(_==null||_==="")return b;const N={money:Mo,percentage:Dn,contrast:Dn,custom:Or};return N[_]?_==="custom"?N[_](b,P)||"":N[_](b)||"":""},r=(b,E)=>{const _=parseFloat(b+"");if(E!=="contrast")return"";switch(!0){case _>=0:return"goUp";case _<0:return"goDown"}},s=je(e,b=>{var E;n.value=((E=b==null?void 0:b.data)==null?void 0:E.data.rows)||[]}),l=t.ref(!1),d=async()=>{var b;if(e.dataType==="request")try{l.value=!0;const E=await s();n.value=((b=E==null?void 0:E.data)==null?void 0:b.data.rows)||[]}catch(E){console.error(E)}finally{l.value=!1}};t.watch(()=>e.data,()=>{(e.dataType==="static"||!t.unref(n))&&(n.value=e.data)},{immediate:!0,deep:!0});const c=t.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),f=t.computed(()=>{const{columns:b,isUseSeq:E}=e;return E?[t.unref(c),...b]:b}),x=b=>{var P;const{columns:E=[],rows:_=[]}=((P=b==null?void 0:b.data)==null?void 0:P.data)??{};e.isUseSeq&&E.unshift(e.seqName),f.value.forEach((N,V)=>{(!e.isUseSeq||V!==0)&&(N.title=E[V],N.key=E[V])}),n.value=_},u=Xe(e,x),m=async()=>{try{l.value=!0;const b=await u();x(b)}catch(b){console.error(b)}finally{l.value=!1}},y=()=>{switch(e.dataType){case"indicator":m();break;case"request":d();break}},h=Ne(e),{getGlobalModel:A,setGlobalModel:I}=t.inject(Le,{getGlobalModel:b=>{},setGlobalModel:(b,E)=>{}}),v=b=>{h("click",()=>{const E=A(e.id);I(e.id,{...E,type:e.type,RECORD:b})})()};Fe(e,{refreshData:y,resetRecord:()=>{const b=e.id,E=A(b);I(b,{...E,type:e.type,RECORD:""})}});const{setRequest:C}=t.inject(He,{setRequest:({id:b,sortNum:E,requestFn:_})=>{}});typeof C=="function"&&C({id:e.id,requestFn:y,sortNum:e.requestSort}),o({refreshData:y});const B=(b,E)=>({flex:b.width?"none":"1",width:b.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:(E?b.cellAlign:b.align)||"left",backgroundColor:b.cellColor}),g=(b,E)=>{let _=0;const P=t.unref(n).map(V=>V[E]),N=Math.max(...P);return N&&(_=b[E]/N*100),_},R=b=>{const{progressColor:E="#1890ff",progressGradientColor:_=""}=b;return _?{background:`linear-gradient(to right, ${E} 0%, ${_} 100%)`}:{backgroundColor:E||"#1890ff"}},p=t.computed(()=>{const b=parseFloat(e.seqFontSize)+5;return{width:b+10,height:b}}),{pageMode:D}=t.inject(ze,{pageMode:"normal"}),w=t.computed(()=>t.unref(D)!=="design"&&e.isAutoScroll),L=b=>{const{seqIconConfig:E}=e;let _=E.find(P=>P.key===b+1);return _||(_=E.find(P=>P.key==="other")),!!(_!=null&&_.icon)},M=(b,E)=>{const{seqIconConfig:_}=e;let P=_.find(N=>N.key===b+1);return P||(P=_.find(N=>N.key==="other")),E===1?P!=null&&P.icon?pt(P.icon):"":E===2?(P==null?void 0:P.color)||"#fff":""},k=b=>{const{seqIndexFormatter:E}=e,_=b+1;return E?_e(E,{textData:{index:_}},{useNewline:!1,useSpace:!0}):_},O=t.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),T=t.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:a,formatFn:i,contrastClass:r,dataSource:n,loading:l,myColumns:f,click:v,getColumnStyle:B,getPercentage:g,getBackgroundColor:R,isShowSeqIcon:L,getSeqIconData:M,seqIcon4:hd,seqIcon5:gd,seqIcon6:md,seqIcon7:yd,iconSize:p,isScroll:w,formatSeq:k,wrapStyle:O,colSpan:T,getText:(b,E)=>(b.format!=null||b.format!=="")&&i(E[b.key],b)}}}),wh="",Ah="",pd=e=>(t.pushScopeId("data-v-d6191ac4"),e=e(),t.popScopeId(),e),bd={key:0,class:"title"},vd={key:0,class:"ranking"},Sd=["onClick"],Cd={key:0,class:"ranking"},wd=pd(()=>t.createElementVNode("div",{class:"icon"},null,-1)),Ad={class:"sort"},kd=["src"],Td={key:1},Bd=["src","width","height"],Ed=["src","width","height"],Dd=["src","width","height"],Id=["src","width","height"],Rd={key:1},Ld=["title"],Nd={key:2,class:"empty"};function _d(e,o,n,a,i,r){const s=t.resolveComponent("a-tooltip"),l=t.resolveComponent("marquee-scroll"),d=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(d,{loading:e.loading},{default:t.withCtx(()=>[e.useTitle?(t.openBlock(),t.createElementBlock("div",bd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columnCount,c=>(t.openBlock(),t.createElementBlock("div",{class:"title-inner",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:c},[e.useRanking?(t.openBlock(),t.createElementBlock("div",vd)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(f,x)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:f.key||x,style:t.normalizeStyle({color:f.titleColor,...e.getColumnStyle(f)})},t.toDisplayString(f.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-list-content",style:t.normalizeStyle({paddingTop:e.useTitle?e.itemRowSpan:0,height:e.useTitle?"calc(100% - 40px)":"100%"})},[t.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...e.wrapStyle}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(${e.itemWidth} - ${e.colSpan})`,marginRight:e.colSpan,marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||f,onClick:x=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",Cd,[wd,t.createElementVNode("div",Ad," Top "+t.toDisplayString(f+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,x=>{var u;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(c[x.key],x.format),x.key==="SEQ"?"seq-column":""]),key:x.key,style:t.normalizeStyle({fontSize:x.fontSize,color:e.contrastClass(c[x.key],x.format)===""?x.color:"",fontWeight:x.fontWeight,...e.getColumnStyle(x,"cell")})},[x.key==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(u=e.seqIconConfig)!=null&&u.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"icon-box",style:t.normalizeStyle({width:e.seqIconWidth||"",height:e.seqIconHeight||""})},[e.seqIconWidth&&e.seqIconHeight&&e.isShowSeqIcon(f)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(f,1),style:t.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,kd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"custom-seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(f,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(e.formatSeq(f)),5)],4)):(t.openBlock(),t.createElementBlock("div",Td,[f===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,Bd)):f===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,Ed)):f===2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,Dd)):f>=3?(t.openBlock(),t.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,Id)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize})},t.toDisplayString(e.formatSeq(f)),5)]))],64)):(t.openBlock(),t.createElementBlock("span",Rd,t.toDisplayString(e.formatSeq(f)),1))],64)):x.format==="progress"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"progress-cell",style:t.normalizeStyle({height:e.itemHeight})},[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({height:x.progressWidth||"14px",backgroundColor:x.progressBaseColor})},[t.createVNode(s,{title:c[x.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({borderRadius:"10px",height:x.progressWidth||"14px",width:`${e.getPercentage(c,x.key)}%`,...e.getBackgroundColor(x)})},null,4)]),_:2},1032,["title"])],4)],4)):(t.openBlock(),t.createElementBlock("span",{key:2,title:e.getText(x,c)},t.toDisplayString(e.getText(x,c)),9,Ld))],6)}),128))],12,Sd))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(t.openBlock(),t.createElementBlock("div",Nd," 暂无数据 "))]),_:1},8,["loading"])],4)}const Kr=Ae(ve(xd,[["render",_d],["__scopeId","data-v-d6191ac4"]])),Zo={...Re,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}{%}",fontSize:"26px",color:"#4091f7",variableColor:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},Qo=Te(Zo),Zr=["refreshData","click"],Od=t.defineComponent({name:"EcanProportion",components:{AProgress:he.Progress,Skeleton:Wt},props:{...Qo},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(ze,{pageMode:"normal"}),i=Ie(e),r=t.computed(()=>{const B=e.width;return parseFloat(B)}),s=t.ref({});t.watch(()=>e.data,()=>{(e.dataType==="static"||t.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=t.computed(()=>{const B=t.unref(s),g=+e.variableDefaultValue;if(B==null)return isNaN(g)?0:g;const R=e.text.match(/\{(.+?)\}/g)||[];let p;const D=new Set(Object.keys(B));for(let w=0;w<R.length;w++){const L=R[w],M=L.slice(1,L.length-1);if(D.has(M)){p=B[M];break}}return typeof p=="number"?p=p*100:typeof p=="string"&&!isNaN(+p)?p=+p*100:isNaN(g)?p=0:p=g*100,e.decimalFormat&&(p=+p.toFixed(2)),p}),d=t.computed(()=>{var D;let B=e.text;if(B==="")return t.unref(l);const g=e.variableDefaultValue,R=t.unref(s),p=B.match(/\{(.+?)\}/g)||[];for(let w=0;w<p.length;w++){const L=p[w];let M=L.slice(1,L.length-1);const k=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,O=L.match(k);for(let F=0;F<(O==null?void 0:O.length);F++){const b=(D=O[F])==null?void 0:D.trim();R[b]!=null&&(M=M.replace(b,R[b]))}let T=M;try{(/\(.*\)/g.test(M)||/[+/\\*]/g.test(M))&&(T=hn(M))}catch(F){console.error(F)}typeof+T=="number"&&!isNaN(+T)?(T=+T*100,e.decimalFormat&&(T=T.toFixed(2))):typeof T!="string"&&(T=g),B=B.replace(L,`<span style="color: ${e.variableColor};">${T+""}</span>`)}return B=B==null?void 0:B.replace(/\n|\\n/g,"<br/>"),t.unref(n)?"NaN":B}),c=je(e,B=>{var g;s.value=((g=B==null?void 0:B.data)==null?void 0:g.data)||{}}),f=t.ref(!1),x=async()=>{var B;if(e.dataType==="request")try{f.value=!0;const g=await c();s.value=((B=g==null?void 0:g.data)==null?void 0:B.data)||{}}catch(g){console.error(g)}finally{f.value=!1}},u=(B={})=>{s.value=B},m=B=>{var R;const{data:g}=(B==null?void 0:B.data)||{};if(g){n.value=!1;const{columns:p=[],rows:D=[]}=((R=B==null?void 0:B.data)==null?void 0:R.data)??{};let w={};if(p.length>0){const L=p.find(M=>!!M);L&&(w={percent:D[L]})}u(w)}else n.value=!0,u({percent:"NaN"})},y=Xe(e,m),h=async()=>{try{f.value=!0;const B=await y();m(B)}catch(B){console.error(B)}finally{f.value=!1}},A=()=>{switch(e.dataType){case"indicator":h();break;case"request":x();break}};Fe(e,{refreshData:A}),o({refreshData:A});const v=Ne(e)("click",()=>{}),{setRequest:S}=t.inject(He,{setRequest:({id:B,sortNum:g,requestFn:R})=>{}});typeof S=="function"&&S({id:e.id,requestFn:A,sortNum:e.requestSort});const C=t.computed(()=>{const{gradientShow:B,gradientColor:g,gradientOffset:R,strokeColor:p}=e;let D=p;return B&&g&&(D={"0%":p,[`${R*100}%`]:g}),D});return{style:i,myWidth:r,text:d,myValue:l,loading:f,click:v,customStrokeColor:C}}}),Th="",Fd=["innerHTML"];function Md(e,o,n,a,i,r){const s=t.resolveComponent("skeleton"),l=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:t.withCtx(()=>[e.loading?(t.openBlock(),t.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(t.openBlock(),t.createElementBlock("div",{key:1,class:"format",style:t.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},[t.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:e.text},null,8,Fd)],4)):t.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Qr=Ae(ve(Od,[["render",Md],["__scopeId","data-v-38f2fa04"]])),Jo={...Re,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{}},Xo=Te(Jo),Jr=["refreshData","click","resetRecord"],zd=t.defineComponent({name:"EcanCounter",components:{Skeleton:Wt},props:{...Xo},setup(e,{expose:o}){const n=t.ref(),a=Ie(e),i=t.computed(()=>({width:e.unitWidth,height:e.unitHeight,marginRight:e.unitInterval+"px"})),r=t.computed(()=>({color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle}));t.watch(()=>[e.data,e.dataType],([C,B])=>{B==="static"&&(n.value=C)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=t.inject(Le,{getGlobalModel:C=>{},setGlobalModel:(C,B)=>{}}),c=Ne(e)("click",()=>{const C=s(e.id);l(e.id,{...C,type:e.type,value:t.unref(n)})}),f=()=>{const C=e.id,B=s(C);l(C,{...B,type:e.type,value:""})},x=je(e,C=>{var B,g;n.value=((g=(B=C==null?void 0:C.data)==null?void 0:B.data)==null?void 0:g.value)||""}),u=t.ref(!1),m=async()=>{var C,B;try{u.value=!0;const g=await x();n.value=((B=(C=g==null?void 0:g.data)==null?void 0:C.data)==null?void 0:B.value)||""}catch(g){console.error(g)}finally{u.value=!1}},y=C=>{var R;const{data:B}=(C==null?void 0:C.data)||{};let g="";if(B){const{columns:p=[],rows:D=[]}=((R=C==null?void 0:C.data)==null?void 0:R.data)??{};if(p.length>0){const w=p.find(L=>!!L);w&&(g=D[w]||"")}}n.value=String(g)},h=Xe(e,y),A=async()=>{try{u.value=!0;const C=await h();y(C)}catch(C){console.error(C)}finally{u.value=!1}},I=()=>{switch(e.dataType){case"indicator":A();break;case"request":m();break}},v=t.computed(()=>{const C=[],{digits:B}=e,g=t.unref(n)?t.unref(n).split("").reverse().join(""):"";for(let R=0;R<B;R++)g&&g[R]?C.push(g[R]):C.push("0");return C.reverse()});Fe(e,{refreshData:I,resetRecord:f});const{setRequest:S}=t.inject(He,{setRequest:({id:C,sortNum:B,requestFn:g})=>{}});return typeof S=="function"&&S({id:e.id,requestFn:I,sortNum:e.requestSort}),o({refreshData:I}),{style:a,valueList:v,digitsStyle:i,fontStyle:r,loading:u,useImagePath:pt,click:c}}}),Eh="",Pd=["src"];function qd(e,o,n,a,i,r){var l;const s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-counter",style:t.normalizeStyle(e.style),onClick:o[0]||(o[0]=(...d)=>e.click&&e.click(...d))},[(l=e.valueList)!=null&&l.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.valueList,(d,c)=>(t.openBlock(),t.createElementBlock("div",{class:"digits-item",style:t.normalizeStyle(e.digitsStyle),key:c},[e.counterBackgroundImage?(t.openBlock(),t.createElementBlock("img",{key:0,class:"item-image",src:e.useImagePath(e.counterBackgroundImage)},null,8,Pd)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"item-text",style:t.normalizeStyle(e.fontStyle)},t.toDisplayString(d),5)],4))),128)):t.createCommentVNode("",!0)],4))}const Xr=Ae(ve(zd,[["render",qd],["__scopeId","data-v-82bd9070"]])),ea={...Re,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},ta=Te(ea),el=["inputChange","inputBlur"],Vd=t.defineComponent({name:"EcanInput",components:{AInput:he.Input},props:{...ta},setup(e){const o=Ie(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:i,getRecordValueByKeyName:r}=t.inject(Le,{getGlobalModel:f=>{},setGlobalModel:(f,x)=>{},getRecordValueByKeyName:f=>{}});t.watch(()=>e.value,f=>{n.value=r(f)},{immediate:!0}),i(e.id,{type:e.type,value:n});const s=()=>{const f=a(e.id);i(e.id,{...f,RECORD:n})},l=Ne(e),d=Oe.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),Ih="";function Hd(e,o,n,a,i,r){const s=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const tl=Ae(ve(Vd,[["render",Hd]])),na={...Re,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px"},oa=Te(na),nl=["dateChange"],aa=t.defineComponent({name:"EcanDatePicker",props:{...oa},components:{ADatePicker:he.DatePicker},setup(e){const o=t.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=Ie(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([u,m,y])=>{let h=null;if(u?h=be(_e(u)):m&&(h=be()),y&&h){const{type:A,value:I,mode:v}=y;switch(A){case"add":h=h.add(I,v);break;case"minus":h=h.subtract(I,v)}}i.value=h},{deep:!0,immediate:!0});const{setGlobalModel:r}=t.inject(Le,{setGlobalModel:(u,m)=>{}});r(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:i});const l=Ne(e)("dateChange",()=>{}),d=()=>{t.unref(i)&&l()};Fe(e,{dateChange:l});const c=t.ref({}),f=t.ref({}),x=u=>{u?setTimeout(()=>{f.value=t.unref(c)},300):f.value={}};return t.onMounted(()=>{setTimeout(()=>{const u=document.querySelector(`#ecan-date-picker-${e.id}`);if(u){const m=u.getBoundingClientRect(),y=parseFloat(t.unref(o).widthScale)*280;document.body.clientWidth-m.left<y&&(c.value.marginLeft=-1*(y-m.width)+"px")}},0)}),{style:n,getPopupContainer:a,myValue:i,locale:ei,change:d,scaleValue:o,popupStyle:c,customStyle:f,openChange:x}}}),ol=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},al=aa.setup;aa.setup=al?(e,o)=>(ol(),al(e,o)):ol;const Lh="",Nh="",jd=["id"];function Wd(e,o,n,a,i,r){const s=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[t.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"])],12,jd)}const il=Ae(ve(aa,[["render",Wd],["__scopeId","data-v-d4ec0d66"]])),ia={...Re,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},ra=Te(ia),rl=["dateChange"];var ll={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(me,function(){var n="month",a="quarter";return function(i,r){var s=r.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,f){return c=Number(c),this.$utils().p(f)===a?this.add(3*c,n):l.bind(this)(c,f)};var d=s.startOf;s.startOf=function(c,f){var x=this.$utils(),u=!!x.u(f)||f;if(x.p(c)===a){var m=this.quarter()-1;return u?this.month(3*m).startOf(n).startOf("day"):this.month(3*m+2).endOf(n).endOf("day")}return d.bind(this)(c,f)}}})})(ll);var Gd=ll.exports;const Ud=Li(Gd);be.extend(Ud);const la=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:he.RangePicker},props:{...ra},setup(e){const o=Ie(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([S,C,B,g,R,p])=>{let D=null,w=null;if(B&&(D=be().subtract(g,R),w=be()),S&&(D=be(_e(S))),C&&(w=be(_e(C))),p){const{type:L,value:M,mode:k}=p;switch(L){case"add":D=D&&D.add(M,k),w=w&&w.add(M,k);break;case"minus":D=D&&D.subtract(M,k),w=w&&w.subtract(M,k)}}a.value=[D,w]},{immediate:!0});let i=t.unref(a)[0],r=t.unref(a)[1],s="";const l=(S,C,B)=>{Array.isArray(S)?(i=S[0],r=S[1],s=B.range):(i=null,r=null)};window.dayjs=be;const d=S=>{let C=!1,{limitStartTime:B,limitEndTime:g}=e;const R={startTime:`${i||""}`,endTime:`${r||""}`};if(B=_e(B,{codeData:R}),g=_e(g,{codeData:R}),B&&g?C=!(be(B)<S&&S<be(g)):B?C=be(B)>S:g&&(C=be(g)<S),!e.isAllowSpanYear&&s){let p=null;if(s==="start"?p=i:s==="end"&&(p=r),p){const D=p.startOf("year"),w=p.endOf("year");C=!(D<=S&&S<w)}}if(!C){const{value:p=0,mode:D="year"}=e.limitInterval||{};p&&(s==="start"?C=i.add(p,D)<S:s==="end"&&(C=r.subtract(p,D)>S))}return C},{getGlobalModel:c,setGlobalModel:f}=t.inject(Le,{getGlobalModel:S=>{},setGlobalModel:(S,C)=>{}}),x=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),u=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:x,endTime:u,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const m=Ne(e);let y=!1;const h=m("dateChange",()=>{}),A=S=>{const C=t.unref(a),B=C&&C[0]&&C[1];S===!1&&y===!0&&B&&(h(),y=!1),S||(s="")},I=()=>{y=!0};return Fe(e,{dateChange:()=>{const{associated:S}=e;if(S){const C=c(S)||{};if(C){const{value:B}=C;if(B)switch(t.unref(B)){case"month":a.value=[be().startOf("month"),be().endOf("month")];break;case"quarter":a.value=[be().startOf("quarter"),be().endOf("quarter")];break;case"year":a.value=[be().startOf("year"),be().endOf("year")];break}}}h()}}),{style:o,getPopupContainer:n,locale:ei,dateChange:h,myValue:a,disabledDate:d,calendarChange:l,openChange:A,change:I}}}),sl=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},cl=la.setup;la.setup=cl?(e,o)=>(sl(),cl(e,o)):sl;const Oh="",Fh="";function $d(e,o,n,a,i,r){const s=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"])],4)}const dl=Ae(ve(la,[["render",$d],["__scopeId","data-v-c9c68612"]])),sa={...Re,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},ca=Te(sa),fl=["click"],Yd=t.defineComponent({name:"EcanButton",components:{AButton:he.Button},props:{...ca},setup(e){const o=Ie(e),a=Ne(e)("click",()=>{const d=t.unref(s);d&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:d},"*")}),i=t.computed(()=>{const d={};return e.mode!=="primary"&&(d.backgroundColor=e.buttonBackgroundColor||"transparent",d.color=e.tooltipTextStyleColor,d.borderColor=e.borderColor||"transparent"),{height:e.height,...d}}),r=t.computed(()=>_e(e.text)),s=t.computed(()=>_e(e.href)||null),l=t.computed(()=>{const d=e.target;if(!(d==="event"||t.unref(s)==null))return{self:"_self",blank:"_blank"}[d]});return{style:o,click:a,myText:r,myHref:s,myTarget:l,buttonStyle:i}}}),zh="";function Kd(e,o,n,a,i,r){const s=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-button",style:t.normalizeStyle(e.style)},[t.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:t.normalizeStyle(e.buttonStyle),class:t.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:t.withCtx(()=>[t.createElementVNode("span",{style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const ul=Ae(ve(Yd,[["render",Kd]])),da={...Re,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},fa=Te(da),hl=["checkboxChange"],Zd=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:he.CheckboxGroup},props:{...fa},setup(e,{expose:o}){const n=Ie(e),a=t.ref([]),i=t.ref([]),r=I=>{const v=e.value;let S=[];I.forEach(C=>{C.checked&&S.push(C.value)}),typeof v=="string"&&v!==""?S=S.concat(v.split(",")):Array.isArray(v)&&(S=S.concat(v)),a.value=I,i.value=S};t.watch(()=>[e.data,e.value],([I])=>{r(I)},{immediate:!0,deep:!0});const s=je(e,I=>{var v,S;r(((S=(v=I==null?void 0:I.data)==null?void 0:v.data)==null?void 0:S.rows)||[])}),l=async()=>{var S,C;if(e.dataType!=="request")return;const I=await s(),v=((C=(S=I==null?void 0:I.data)==null?void 0:S.data)==null?void 0:C.rows)||[];r(v)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Le,{getGlobalModel:I=>{},setGlobalModel:(I,v)=>{}});c(e.id,{type:e.type,value:i});const x=Ne(e)("checkboxChange",()=>{const I=d(e.id);c(e.id,{...I,RECORD:i})}),u=I=>{var S;const{data:v}=(I==null?void 0:I.data)||{};if(v){const B=(((S=I==null?void 0:I.data)==null?void 0:S.data)??[]).map(g=>({label:g.label,value:g.value}));r(B)}else r([])},m=Xe(e,u),y=async()=>{try{const I=await m();u(I)}catch(I){console.error(I)}},h=()=>{switch(e.dataType){case"indicator":y();break;case"request":l();break}},{setRequest:A}=t.inject(He,{setRequest:({id:I,sortNum:v,requestFn:S})=>{}});return typeof A=="function"&&A({id:e.id,requestFn:h,sortNum:e.requestSort}),o({refreshData:h}),{myOption:a,style:n,myValue:i,checkboxChange:x}}}),qh="";function Qd(e,o,n,a,i,r){const s=t.resolveComponent("a-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"ecan-checkbox",style:t.normalizeStyle(e.style)},[t.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const gl=Ae(ve(Zd,[["render",Qd]])),ua={...Re,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},ha=Te(ua),ml=["selectChange","refreshData"],Jd=t.defineComponent({name:"EcanSelect",components:{ASelect:he.Select,ASelectOption:he.SelectOption},props:{...ha},setup(e,{expose:o}){const n=Ie(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=t.ref(e.data||[]),r=t.ref(),s=t.computed({get:()=>{var E;const{mode:b}=e;return(E=t.unref(i))!=null&&E.length?r.value:b==="multiple"||b==="tags"||b==="combobox"?[]:""},set:b=>{r.value=b}}),{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c}=t.inject(Le,{getGlobalModel:b=>{},setGlobalModel:(b,E)=>{},getRecordValueByKeyName:b=>{}}),f=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:b,selectFirstOption:E,value:_}=e,P=c(_),N=f.value;if(b==="multiple"||b==="tags"||b==="combobox"){if(P)r.value=P.split(",");else if(E){const V=t.unref(i)[0];r.value=V?[V[N]]:[]}}else if(P)r.value=P;else if(E){const V=t.unref(i)[0];r.value=V?V[N]:""}},{immediate:!0});const x=(b,E)=>{const _=f.label,P=f.value;let N;const V=E[_],z=E[P];return V!=null?N=V:z!=null&&(N=z),(N==null?void 0:N.toLowerCase().indexOf(b==null?void 0:b.toLowerCase()))>=0},u=b=>{const{label:E,value:_,options:P}=e.dataFieldNames;if(P&&Array.isArray(b))if(b.some(N=>P in N)){const N={},V=[];b.forEach(z=>{N[z[P]]||(N[z[P]]=[]),N[z[P]].push({[E]:z[E],[_]:z[_]})});for(const z in N)V.push({[E]:z,[P]:N[z]});return V}else return b;else if(!P)return b},m=t.ref(!1),y=b=>{var E,_;if(i.value=u(((_=(E=b==null?void 0:b.data)==null?void 0:E.data)==null?void 0:_.rows)||[]),e.selectFirstOption){let P=t.unref(i)[0];if(f.options){const N=P[f.options];N&&N.length&&(P=N[0])}r.value=P[f.value]}},h=je(e,y),A=async()=>{if(e.dataType==="request"){m.value=!0;try{const b=await h();y(b)}catch(b){console.error(b)}finally{m.value=!1}}},{setLoadedData:I,loadedData:v}=t.inject(Et,{setLoadedData:(b,E)=>{},loadedData:{}}),S=t.computed(()=>{let b=r.value;if(e.valueType==="label"&&t.unref(r)&&t.unref(i)){const E=f.label,_=f.value;if(e.mode==="multiple")b=t.unref(i).filter(P=>t.unref(r).includes(P[_])).map(P=>P[E]);else{const P=t.unref(i).find(N=>t.unref(r)===N[_]);P&&(b=P[E])}}return b}),C=t.ref([]),B=t.computed(()=>{const b={};if(e.mode!=="multiple"){const E=t.unref(C).find(_=>_.value===t.unref(r));E&&(b.itemCodes=E.item_codes)}return b}),g=t.computed(()=>{const{value:b,label:E}=f,_=t.unref(i).find(P=>P[b]===t.unref(s));return _?{label:_[E],value:_[b]}:{}});d(e.id,{type:e.type,value:S,...t.unref(B),recordData:t.unref(g)});const p=Ne(e)("selectChange",()=>{const b=e.id,E=l(b);d(b,{...E,...t.unref(B),RECORD:S,recordData:t.unref(g)})}),D=(b=[])=>{if(i.value=u(b),e.selectFirstOption){let E=t.unref(i)[0];if(f.options){const _=E[f.options];_&&_.length&&(E=_[0])}r.value=E[f.value]}d(e.id,{type:e.type,value:S,...t.unref(B),recordData:t.unref(g)})},w=b=>{var N;const{data:E}=(b==null?void 0:b.data)||{},_=f.label,P=f.value;if(E){const V=((N=b==null?void 0:b.data)==null?void 0:N.data)??[];C.value=V;const z=V.map(U=>({[_]:U.label,[P]:U.value})),{id:q}=e,X=l(q);d(q,{...X,...t.unref(B)}),I(q,!0),D(z)}else D([])},L=Xe(e,w),M=async()=>{try{m.value=!0;const b=await L();w(b)}catch(b){console.error(b)}finally{m.value=!1}},k=t.computed(()=>{var b,E;return(E=un(((b=e==null?void 0:e.graphicConfig)==null?void 0:b.controlList)||[]))==null?void 0:E.find(_=>_.conditionKey==="parentCode")}),O=t.ref(!1);t.watch(v,b=>{!t.unref(O)&&t.unref(k)&&b[t.unref(k).id]&&(O.value=!0,T())},{deep:!0});const T=()=>{switch(e.dataType){case"indicator":{if(t.unref(k)){if(t.unref(v)[t.unref(k).id]){const{mode:b}=e;b==="multiple"||b==="tags"||b==="combobox"?s.value=[]:s.value="",M()}}else M();break}case"request":A();break}};Fe(e,{selectChange:p,refreshData:T});const{setRequest:F}=t.inject(He,{setRequest:({id:b,sortNum:E,requestFn:_})=>{}});return typeof F=="function"&&F({id:e.id,requestFn:T,sortNum:e.requestSort}),o({refreshData:T}),{style:n,getPopupContainer:a,myValue:r,selectChange:p,options:i,filterOption:x,loading:m,resultValue:s}}}),Hh="",jh="";function Xd(e,o,n,a,i,r){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const yl=Ae(ve(Jd,[["render",Xd],["__scopeId","data-v-478fe018"]])),ga={...Re,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},ma=Te(ga),xl=["selectChange","refreshData"],ef={name:"EcanTreeSelect",components:{ATreeSelect:he.TreeSelect},props:{...ma},setup(e){const o=Ie(e),n=t.ref(e.data),a=(y,h)=>{const A=e.dataFieldNames,I=A.label,v=A.value;let S;const C=h[I],B=h[v];return C!=null?S=C:B!=null&&(S=B),(S==null?void 0:S.toLowerCase().indexOf(y==null?void 0:y.toLowerCase()))>=0},i=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:y,value:h,selectFirstOption:A}=e;y?h?i.value=h.split(","):A&&(i.value=[t.unref(n)[0]]):h?i.value=h:A&&(i.value=t.unref(n)[0])},{immediate:!0});const r=t.ref(!1),s=y=>{var A,I;n.value=((I=(A=y==null?void 0:y.data)==null?void 0:A.data)==null?void 0:I.rows)||[];const h=t.unref(n)[0];e.value===""&&h!=null&&(i.value=h[e.dataFieldNames.value])},l=je(e,s),d=async()=>{if(e.dataType==="request"){r.value=!0;try{const y=await l();s(y)}catch(y){console.error(y)}finally{r.value=!1}}},{getGlobalModel:c,setGlobalModel:f}=t.inject(Le,{getGlobalModel:y=>{},setGlobalModel:(y,h)=>{}});f(e.id,{type:e.type,value:i});const u=Ne(e)("selectChange",()=>{const y=e.id,h=c(y);f(y,{...h,RECORD:i})});Fe(e,{selectChange:u,refreshData:d});const{setRequest:m}=t.inject(He,{setRequest:({id:y,sortNum:h,requestFn:A})=>{}});return m({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:o,treeData:n,filterTreeNode:a,myValue:i,loading:r,selectChange:u}}},Gh="",Uh="";function tf(e,o,n,a,i,r){const s=t.resolveComponent("a-tree-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tree-select",style:t.normalizeStyle(a.style)},[t.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":o[0]||(o[0]=l=>a.myValue=l),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const pl=Ae(ve(ef,[["render",tf],["__scopeId","data-v-09e7f364"]])),ya={...Re,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:""},xa=Te(ya),bl=["checkboxChange","click"],nf=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:he.RadioGroup,ARadioButton:he.RadioButton,ARadio:he.Radio},props:{...xa},setup(e,{expose:o}){const{pageMode:n}=t.inject(ze,{pageMode:"normal"}),a=Ie(e),i=t.ref([]),r=t.ref(""),s=B=>{const g=e.value;let R=[];typeof g=="string"&&g!==""?R=R.concat(g.split(",")):Array.isArray(g)&&(R=R.concat(g)),i.value=B,r.value=R[0]||""};t.watch(()=>[e.data,e.value],([B])=>{t.unref(n)==="design"&&s(B)},{immediate:!0,deep:!0});const l=je(e,B=>{var g,R;s(((R=(g=B==null?void 0:B.data)==null?void 0:g.data)==null?void 0:R.rows)||[])}),d=async()=>{var R,p;if(e.dataType!=="request")return;const B=await l(),g=((p=(R=B==null?void 0:B.data)==null?void 0:R.data)==null?void 0:p.rows)||[];s(g)},{getGlobalModel:c,setGlobalModel:f}=t.inject(Le,{getGlobalModel:B=>{},setGlobalModel:(B,g)=>{}});f(e.id,{type:e.type,value:r});const x=Ne(e),u=()=>{const B=t.unref(i).find(g=>g.value===t.unref(r))||{};x("checkboxChange",()=>{const g=c(e.id);f(e.id,{...g,RECORD:r})},B)()},m=B=>{r.value=B,x("click",()=>{const g=c(e.id);f(e.id,{...g,RECORD:r})})()};t.watch(r,()=>{u()});const y=B=>{var R;const{data:g}=(B==null?void 0:B.data)||{};if(g){const D=(((R=B==null?void 0:B.data)==null?void 0:R.data)??[]).map(w=>({label:w.label,value:w.value}));s(D)}else s([])},h=Xe(e,y),A=async()=>{try{const B=await h();y(B)}catch(B){console.error(B)}},I=()=>{switch(e.dataType){case"indicator":A();break;case"request":d();break}},{setRequest:v}=t.inject(He,{setRequest:({id:B,sortNum:g,requestFn:R})=>{}});typeof v=="function"&&v({id:e.id,requestFn:I,sortNum:e.requestSort});const S=B=>{r.value=B.value},C=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return t.onMounted(()=>{s(e.data)}),o({refreshData:I}),{myOption:i,style:a,myValue:r,radioStyle:C,onClickButton:m,useImagePath:pt,tabChange:S}}}),Yh="",Kh="",of=["onClick"];function af(e,o,n,a,i,r){const s=t.resolveComponent("a-radio"),l=t.resolveComponent("a-radio-button"),d=t.resolveComponent("a-radio-group");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ecan-radio",e.optionType]),style:t.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:f,onClick:t.withModifiers(x=>e.tabChange(c),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.label),5)],12,of))),128))],4)):(t.openBlock(),t.createBlock(d,{key:1,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,c=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.value},[e.optionType==="default"?(t.openBlock(),t.createBlock(s,{key:0,value:c.value,style:t.normalizeStyle(e.radioStyle)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(t.openBlock(),t.createBlock(l,{key:1,value:c.value,onClick:f=>e.onClickButton(c.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):t.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const vl=Ae(ve(nf,[["render",af],["__scopeId","data-v-7ca4e814"]])),pa={...Re,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},ba=Te(pa),Sl=["click","refreshData","resetRecord"],nn=async e=>{var d;const o=await St.post(e,{},{responseType:"blob"}),{data:n,headers:a}=o,i=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),r=new Blob([n]),s=document.createElement("a"),l=window.URL.createObjectURL(r);s.href=l,s.download=decodeURI(i),s.style.display="none",document.body.appendChild(s),s.click(),(d=s.parentNode)==null||d.removeChild(s),window.URL.revokeObjectURL(l)},va={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[]},Sa=Te(va),Cl=["showModal","hideModal"],Pt=["ecanBorder","ecanTabs","ecanCirculate"];function wl(e){const{containerMap:o={},sourceList:n=[]}=e,a=Oe.cloneDeep(e.componentList),i=a.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(i!=null&&i.length)for(const r of i){const s=o[r.id],l=[];if((!tn(r,"componentList")||!(r!=null&&r.componentList))&&(r.componentList=[]),s){let d=0;for(const c in s){const f=s[c],x=[];if(f!=null&&f.length)for(const u of f){let m=a.find(y=>y.id===u);m||(m=n.find(y=>y.id===u)),m&&(x.push(m),Pt.includes(m.type)&&x.push(...gn(m.id,o,n)))}for(const u of x)tn(u,"scale")?parseFloat(c)>0&&(u.left=parseFloat(u.left)+d+"px"):(u.left=parseFloat(u.sourceLeft||u.left)-parseFloat(r.sourceLeft||r.left)+d+"px",u.top=parseFloat(u.sourceTop||u.top)-parseFloat(r.sourceTop||r.top)+"px"),l.includes(u.id)||l.push(u.id);r.componentList.push(...x),d=ff(x)}}for(const d of l){const c=a.findIndex(f=>f.id===d);c!==-1&&a.splice(c,1)}}return a}function Al(e){var r,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,i=Oe.cloneDeep([...e.componentList,...lf(a,n)]);if(rf(a,i),(r=Object.keys(a))!=null&&r.length||(s=Object.keys(o))!=null&&s.length){for(const u in a){const m=i.find(y=>y.id===u);if(m){tn(m,"parentId")||(m.parentId="",m.sourceLeft=m.left,m.sourceTop=m.top);for(const y in a[u])if(a[u][y])for(const h of a[u][y]){const A=i.find(I=>I.id===h);A&&(A.parentId=u,A.sourceLeft=A.left,A.sourceTop=A.top,A.left=parseFloat(A.left)-parseFloat(m.sourceLeft||m.left)+"px",A.top=parseFloat(A.top)-parseFloat(m.sourceTop||m.top)+"px")}}}const l=Array.from(new Set(i.filter(u=>(!tn(u,"parentId")||u.parentId==="")&&u.combinationId).map(u=>u.combinationId))),d=sf(l,{...e,componentList:i});d!=null&&d.length&&i.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],f=i.filter(u=>c.includes(u.type)&&!tn(u,"parentId")),x=[];for(const u of f)if(u){const m=u.id+"_vir";x.push({id:m,keyName:u.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:u.width,height:u.height,left:u.left,top:u.top,sourceLeft:u.left,sourceTop:u.top}),u.parentId=m,u.sourceLeft=u.left,u.sourceTop=u.top,u.left=0,u.top=0}x!=null&&x.length&&i.unshift(...x);for(const u of i){const m=document.body.clientWidth;if(u.parentId===""&&Pt.includes(u.type))u.sourceWidth=parseFloat(u.width),u.height=(m/(u.sourceWidth/parseFloat(u.height))).toFixed(2)+"px",u.width="100%",u.position="relative",u.top="auto",u.left="auto";else{const y=i.find(h=>h.id===u.parentId);if((y==null?void 0:y.parentId)===""){const h=y.sourceWidth||parseFloat(y.width),A=m/h;u.scale=A,u.top=parseFloat(u.top)*A-parseFloat(u.height)*(1-A)/2+"px",u.left=parseFloat(u.left)*A-parseFloat(u.width)*(1-A)/2+"px"}}u.type==="ecanModal"&&(u.parentId="",u.fullModal=!0)}return cf(i)}return i}function rf(e,o){const n=Oe.cloneDeep(e),a=o.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(a!=null&&a.length)for(const i of a){const r=n[i.id];for(const s in r)for(const l of r[s]){const d=o.find(c=>c.id===l);if(d&&Pt.includes(d.type)){const c=gn(d.id,n,o);for(const f of c)e[i.id][s].push(f.id),Pt.includes(f.type)&&delete e[f.id];delete e[d.id]}}}}function lf(e,o){const n=[],a=o.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(a!=null&&a.length)for(const i of a){const r=e[i.id];for(const s in r)if(parseFloat(s)>0)for(const l of r[s]){const d=o.find(c=>c.id===l);d&&(n.push(d),Pt.includes(d.type)&&n.push(...gn(d.id,e,o)))}}return n}function gn(e,o,n){const a=[],i=o[e];for(const r in i)for(const s of i[r]){const l=n.find(d=>d.id===s);l&&(a.push(l),Pt.includes(l.type)&&a.push(...gn(l.id,o,n)))}return a}function sf(e,o,n){const{combinationMap:a={},componentList:i=[]}=o,r=[];for(const s of e){const l=a[s];if(l!=null&&l.length){const d=i.filter(c=>l.includes(c.id));if(d!=null&&d.length){const c=df(d);if(c){r.push({...c,id:s,keyName:s,parentId:n||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:c.left,sourceTop:c.top});for(const f of d)f&&(f.parentId=s,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(c.left)+"px",f.top=parseFloat(f.top)-parseFloat(c.top)+"px")}}}}return r}function cf(e){const n=e.filter(a=>a.parentId==="");if(n!=null&&n.length){const a=Oe.cloneDeep(n).map(i=>({...i,sourceTop:parseFloat(i.sourceTop),sourceLeft:parseFloat(i.sourceLeft)}));for(let i=0;i<a.length-1;i++)for(let r=0;r<a.length-i-1;r++){let s=!1;if((a[r].sourceTop-a[r+1].sourceTop>50||Math.abs(a[r+1].sourceTop-a[r].sourceTop)<=50&&a[r].sourceLeft>a[r+1].sourceLeft)&&(s=!0),s){const l=a[r];a[r]=a[r+1],a[r+1]=l}}for(const i of a){const r=e.findIndex(s=>s.id===i.id);r!==-1&&e.splice(r,1)}return[...a,...e]}return e}function df(e){const o=e.sort((r,s)=>parseFloat(r.top)-parseFloat(s.top))[0],n=e.sort((r,s)=>parseFloat(r.left)-parseFloat(s.left))[0],a=e.map(r=>({...r,computedTop:parseFloat(r.top)+parseFloat(r.height)})).sort((r,s)=>s.computedTop-r.computedTop)[0],i=e.map(r=>({...r,computedLeft:parseFloat(r.left)+parseFloat(r.width)})).sort((r,s)=>s.computedLeft-r.computedLeft)[0];return o&&n&&a&&i?{left:n.left,top:o.top,width:i.computedLeft-parseFloat(n.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}function ff(e){const o=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,a)=>a-n)[0];return o||0}function Ca(e,o,n){const a=e[n],i=[];if(a)for(const r in a){const s=a[r];for(const l of s){const d=o.find(c=>c.id===l);d&&(i.push(d),Pt.includes(d.type)&&i.push(...gn(d.id,e,o)))}}return i}const uf=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function hf(e,o,n,a,i,r){return e.component.parentId?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#container_"+e.component.parentId},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.normalizeProps(t.mergeProps({key:1},e.component)),null,16))}const gf=Ae(ve(uf,[["render",hf]])),mf=t.defineComponent({name:"EcanModal",components:{AModal:he.Modal,CloseOutlined:S0,Render:gf},props:{...Sa},setup(e,{emit:o}){const n=t.ref([]),a=t.inject("isMobile",!1),i=t.inject("getContainerMap",()=>{}),r=t.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l,setRequestData:d}=t.inject(Le,{setRequestData:(G,J)=>{},clearInteractiveData:()=>{},interactiveData:null}),c=()=>document.getElementById("ProviderConfig")||document.body,f=t.computed(()=>{const G=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[G]}}),x=e.fullModal?"1920px":e.width,u=e.fullModal?"1080px":e.height,m=e.originalWidth,y=e.originalHeight,h=t.ref("80%"),A=t.ref(0),I=t.ref(),v=t.ref(0),S=t.ref({}),C=Ie(e),B=t.ref({}),g=t.ref(!1),R=t.ref();let p;const D=()=>{I.value=parseFloat(x)/parseFloat(m);const G=parseFloat(u)/parseFloat(y),J=document.body.offsetWidth,ee=document.body.offsetHeight;A.value=J*t.unref(I),v.value=ee*G,h.value=`${t.unref(I)*100}%`,S.value={width:`${t.unref(A)}px`,height:`${t.unref(v)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},B.value={...t.unref(C),backgroundImage:pt(e.backgroundImage,!0)},a?B.value={...B.value,width:"100%",height:"100%"}:B.value={...B.value,transform:`scale(${t.unref(A)/parseFloat(x)},${t.unref(v)/parseFloat(u)})`,width:x,height:u}},w=Oe.debounce(()=>{D()},100),L=()=>{const G=window.MutationObserver;p=new G(w),p.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},M=()=>{p&&(p.disconnect(),p.takeRecords(),p=null)},k=t.ref(!1),{touchRequest:O}=t.inject(He,{touchRequest:()=>{}}),T=t.ref(""),F=()=>{var ee;const{title:G}=e,J=(ee=t.unref(l))==null?void 0:ee.RECORD;return J?_e(G,{textData:J},{useNewline:!1,useSpace:!1}):G},b=Ne(e),E=()=>{a&&(document.documentElement.style.overflow="hidden"),T.value=F(),k.value=!0},_=b("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),k.value=!1}),P=()=>{_()},N=()=>{_(),s()},{setModalModel:V,pushUseModalIds:z,popUseModalIds:q}=t.inject(Bi,{pushUseModalIds:G=>{},popUseModalIds:()=>{},setModalModel:(G,J)=>{}}),X=t.computed(()=>{let G=e.componentList;const J=Oe.cloneDeep(e.componentList),ee=i(),ne=r(),ae={containerMap:ee,combinationMap:ne};a&&(G=Al({...ae,componentList:J,sourceList:e.allComponentList})),G=wl({...ae,componentList:G,sourceList:e.allComponentList});const ie=[];for(const ue of G)if(ue.type==="ecanCirculate"){const Se=Ca(ee,t.unref(J),ue.id);ue.componentList=Se,ie.push(...Se.map(ke=>ke.id))}if(ie!=null&&ie.length)for(const ue of ie){const Se=G.findIndex(ke=>ke.id===ue);Se!==-1&&G.splice(Se,1)}return G}),U=()=>{const G=e.id;let J=[];const ee=e.componentList;Array.isArray(ee)&&(J=ee.map(ne=>ne.id),V(G,[...new Set(J)]))},j=t.ref(!1),H={};for(const G of e.requestList)H[G.requestName]=je(G);t.watch(()=>k.value,async G=>{if(G)g.value=!1,z(e.id),U(),await t.nextTick(()=>{D(),window.addEventListener("resize",w),L(),g.value=!0}),O();else{for(const J in H)d(J,{});q(),window.removeEventListener("resize",w),M()}});const K=t.computed(()=>t.unref(I)>=1),te=t.computed(()=>e.fullModal),ce=t.computed(()=>{let G="ecan-modal";return t.unref(K)&&(G+=" ecan-full-width-modal"),t.unref(te)&&(G+=" ecan-full-modal"),G});return Fe(e,{showModal:E,hideModal:_}),{modalRef:R,containStyle:S,contentStyle:B,getContainer:c,modalStyle:f,modalWith:h,isFullModal:te,style:C,visible:k,showModal:E,onOk:P,onCancel:N,isFullWidth:K,wrapClassName:ce,ready:g,usedComponentList:X,isMobile:a,readyIds:n,hasOwn:tn,onComponentReady:G=>{n.value.push(G)},formatTitle:T,requestLoaded:j}}}),Jh="",Xh="";function yf(e,o,n,a,i,r){const s=t.resolveComponent("close-outlined"),l=t.resolveComponent("render"),d=t.resolveComponent("a-modal");return t.openBlock(),t.createBlock(d,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:t.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"contain",ref:"containRef",style:t.normalizeStyle(e.containStyle)},[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"content",style:t.normalizeStyle(e.contentStyle)},[t.createElementVNode("div",{class:"header-bar",style:t.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ant-modal-title",style:t.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},t.toDisplayString(e.formatTitle),5)):t.createCommentVNode("",!0),e.isShowCloseBtn?(t.openBlock(),t.createBlock(s,{key:1,class:"close-icon",style:t.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):t.createCommentVNode("",!0)],4),e.usedComponentList.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.isMobile?"mobile-wrap":"")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.usedComponentList,(c,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+f},[e.isMobile?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(t.openBlock(),t.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:1},c)),null,16))],64))),128))],2)):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):t.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Nt=Ae(ve(mf,[["render",yf],["__scopeId","data-v-000999c2"]]));it.use([Ft.CanvasRenderer,Ct.PieChart,De.TitleComponent,De.ToolboxComponent,De.TooltipComponent,De.LegendComponent]);const xf=t.defineComponent({name:"EcanPie",props:{...ba},components:{Spin:jt,Echarts:Tt,EcanModal:Nt},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(ze,{pageMode:"normal",fontFamily:""}),i=t.ref(!1),r=Ie(e),s=t.ref([]),l=t.ref(),d=t.ref({}),c=t.computed(()=>{let{data:k=[]}=t.unref(s)[0]||{};if(Array.isArray(e.colors)){const O=e.isUseLabelColors,T=e.colors;k=k.map((F,b)=>({label:O?{color:T[b]}:{},...F}))}return{textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:i.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var O;i.value=!0,(O=l.value)==null||O.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){he.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:O=>{const{marker:T,seriesName:F,name:b,value:E,percent:_,data:P}=O||{};return _e(e.tooltipFormatter,{textData:{marker:T,name:b,value:E,percent:_,a:F,b,c:E,d:_,...P}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.unref(d),color:e.colors,series:[{data:k,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:i.value?Qe:e.labelFontSize,position:e.labelPosition,formatter:Zc(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),f=()=>{const k=i.value?Qe:parseFloat(e.legendFontSize);d.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:k+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:k}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:O=>{const{data:T}=s.value[0]||{};let F=0,b,E="0%";if(T)for(const _ of T)_.name===O&&(b=+_.value),F+=+_.value;return F&&(E=`${(b/F*100).toFixed(2)}%`),fn(e.legendFormatter,{name:O,value:b,percent:E})}}},x=()=>{i.value=!1},{getGlobalModel:u,setGlobalModel:m}=t.inject(Le,{getGlobalModel:k=>{},setGlobalModel:(k,O)=>{}}),y=(k=[],O)=>{const{dataset:T}=Gt(k,O);s.value=T},h=(k=[],O)=>{const T=Gt(k,O);s.value=T.dataset};t.watch(()=>e.data,k=>{(e.dataType==="static"||t.unref(n)==="design")&&y(k)},{immediate:!0,deep:!0}),t.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{f()},{immediate:!0});const A=t.ref(!1),I=je(e,k=>{var O,T;y((T=(O=k==null?void 0:k.data)==null?void 0:O.data)==null?void 0:T.rows,e.valueTypeDataFieldNames)}),v=async()=>{var k,O;if(e.dataType==="request")try{A.value=!0;const T=await I();y((O=(k=T==null?void 0:T.data)==null?void 0:k.data)==null?void 0:O.rows,e.valueTypeDataFieldNames)}catch(T){console.error(T)}finally{A.value=!1}},S=Ne(e);m(e.id,{type:e.type,RECORD:""});const C=S("click",k=>{const O=u(e.id);m(e.id,{...O,type:e.type,RECORD:k==null?void 0:k.data})}),B=k=>{var T;const{data:O}=(k==null?void 0:k.data)||{};if(O){const{columns:F=[],rows:b=[]}=((T=k==null?void 0:k.data)==null?void 0:T.data)??{};let E=[];if(F.length>0){const _=F[0],P=F[1];E=b.filter(N=>!!N).map(N=>({name:N[_],value:isNaN(N[P])?0:N[P]||0}))}h(E)}},g=Xe(e,B),R=async()=>{try{A.value=!0;const k=await g();B(k)}catch(k){console.error(k)}finally{A.value=!1}},{loadedData:p}=t.inject(Et,{loadedData:{}}),D=t.ref(!1);t.watch(p,k=>{if(e.dataType==="indicator"){const O=dn(e.graphicConfig);O!=null&&O.length&&(!t.unref(D)&&ht(e.graphicConfig,k)?(D.value=!0,w()):ht(e.graphicConfig,k)||(D.value=!1))}},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":ht(e.graphicConfig,t.unref(p))&&R();break;case"request":v();break}};Fe(e,{resetRecord:()=>{const k=e.id,O=u(k);m(k,{...O,RECORD:""})},refreshData:w,click:C}),o({refreshData:w});const{setRequest:M}=t.inject(He,{setRequest:k=>{}});return typeof M=="function"&&M({id:e.id,requestFn:w,sortNum:e.requestSort}),{option:c,style:r,click:C,onClose:x,loading:A,ecanModal:l}}}),t1="";function pf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const kl=Ae(ve(xf,[["render",pf]])),wa={...Re,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null},Aa=Te(wa),Tl=["click","refreshData","resetRecord"];it.use([Ft.CanvasRenderer,Ct.LineChart,De.ToolboxComponent,De.TitleComponent,De.LegendComponent,De.MarkLineComponent]);const bf=t.defineComponent({name:"EcanLine",props:{...Aa},components:{Spin:jt,Echarts:Tt,EcanModal:Nt},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(ze,{pageMode:"normal",fontFamily:""}),i=t.ref(),r=t.ref(!1),s=Ie(e),l=t.ref([]),d=t.ref([]),c=t.ref(),f=t.computed(()=>r.value?Qe:12),x=t.ref({});let u;const m=t.ref([]),y=t.computed(()=>{const b=e.xAxisLabelFormatter,E=e.yAxisLabelFormatter;return{textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:r.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var _;r.value=!0,(_=c.value)==null||_.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){he.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:f.value},show:e.tooltipShow,formatter:_=>{var z;const P=_.length;let N="",V=e.tooltipFormatter;u=(z=_[0])==null?void 0:z.data,V===""&&(V="{marker} {a} {c}");for(let q=0;q<P;q++){const{marker:X,seriesName:U,name:j,value:H,data:K}=_[q]||{};if(q===0){let te=j;typeof j=="string"&&j[0]==="0"&&!isNaN(+j)&&(te=(+j).toString()),N+=`${gt(b,te)}<br/>`}N+=_e(V,{textData:{marker:X,name:j,value:H,a:U,b:j,c:H||0,...K}},{useNewline:!0,useSpace:!0}),N+="<br/>"}return N},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(d).map(_=>{let P={};return _&&typeof _=="object"?P={..._}:P={value:_},P}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(_){return typeof _=="string"&&_[0]==="0"&&!isNaN(+_)&&(_=(+_).toString()),gt(b,_)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(_){return gt(E,_)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(r.value?Qe:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?Qe:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(m).map(_=>({name:_.name,icon:e.legendType})),formatter:_=>fn(e.legendFormatter,{name:_})},series:t.unref(l)}}),h=()=>{r.value=!1},{getGlobalModel:A,setGlobalModel:I}=t.inject(Le,{getGlobalModel:b=>{},setGlobalModel:(b,E)=>{}}),v=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),S=(b=[],E=!1)=>{let _;if(e.dataFieldConfigType==="key"){const z=E?e.keyTypeDataFieldNames:null;_=Lt(b,z)}else if(e.dataFieldConfigType==="value"){const z=E?e.valueTypeDataFieldNames:null;_=Gt(b,z)}d.value=_.dimensions,m.value=_.dataset;const P=_.dataset,N=[],V=P.length;for(let z=0;z<V;z++){const q={};e.shadowColor&&(q.shadowColor=e.shadowColor,q.shadowBlur=e.shadowBlur,q.shadowOffsetY=e.shadowOffsetY,q.shadowOffsetX=e.shadowOffsetX),N.push({type:"line",...P[z],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[z]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[z],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...q},...t.unref(v)})}l.value=N},C=(b=[],E,_=!1)=>{const N=Lt(b,_?E:null,!0);d.value=N.dimensions,m.value=N.dataset;const V=N.dataset,z=[],q=V.length;for(let X=0;X<q;X++){const U={};e.shadowColor&&(U.shadowColor=e.shadowColor,U.shadowBlur=e.shadowBlur,U.shadowOffsetY=e.shadowOffsetY,U.shadowOffsetX=e.shadowOffsetX),z.push({type:"line",...V[X],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[X]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[X],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...U},...t.unref(v)})}l.value=z};t.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([b])=>{(e.dataType==="static"||t.unref(n)==="design")&&S(b)},{immediate:!0,deep:!0});const B=t.ref(!1),g=je(e,b=>{var E,_;S((_=(E=b==null?void 0:b.data)==null?void 0:E.data)==null?void 0:_.rows,!0)}),R=async()=>{var b,E;if(e.dataType==="request")try{B.value=!0;const _=await g();S((E=(b=_==null?void 0:_.data)==null?void 0:b.data)==null?void 0:E.rows,!0)}catch(_){console.error(_)}finally{B.value=!1}},p=Ne(e);I(e.id,{type:e.type,RECORD:""});const D=p("click",b=>{const E=A(e.id);I(e.id,{...E,type:e.type,RECORD:e.tooltipShow?u:b.data})}),w=b=>{i.value.chart.containPixel("grid",[b.offsetX,b.offsetY])&&D()};e.tooltipShow?x.value["zr:click"]=w:x.value.click=D;const L=b=>{var N;const{columns:E=[],rows:_=[]}=((N=b==null?void 0:b.data)==null?void 0:N.data)??{};let P;E.length>0&&(P={name:E[0],types:E.slice(1).map(V=>({label:V,value:V}))}),C(_,P,!0)},M=Xe(e,L),k=async()=>{try{B.value=!0;const b=await M();L(b)}catch(b){console.error(b)}finally{B.value=!1}},O=()=>{switch(e.dataType){case"indicator":k();break;case"request":R();break}};Fe(e,{refreshData:O,resetRecord:()=>{const b=e.id,E=A(b);I(b,{...E,RECORD:""})},click:D});const{setRequest:F}=t.inject(He,{setRequest:b=>{}});return typeof F=="function"&&F({id:e.id,requestFn:O,sortNum:e.requestSort}),o({refreshData:O}),{option:y,style:s,click:D,loading:B,onClose:h,ecanModal:c,eventObj:x,echartRef:i}}}),o1="";function vf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Bl=Ae(ve(bf,[["render",vf]])),ka={...Re,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null},Ta=Te(ka),El=["refreshData","click","resetRecord"];it.use([Ft.CanvasRenderer,Ct.BarChart,De.TitleComponent,De.LegendComponent,De.DatasetComponent,De.ToolboxComponent,De.MarkLineComponent]);const Sf=t.defineComponent({name:"EcanBar",props:{...Ta},components:{Spin:jt,Echarts:Tt,EcanModal:Nt,AModal:he.Modal},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(ze,{pageMode:"normal",fontFamily:""}),i=t.inject("usedComponentList",[]),r=t.ref(),s=t.ref(!1),l=t.ref(!1),d=t.ref(null),c=t.ref([]),f=Ie(e),x=t.ref([]),u=t.ref(),m=t.ref({});let y;const h=t.computed(()=>s.value?Qe:12),A=t.computed(()=>{const{gradientShow:U,gradientColors:j,gradientOffset:H,barBorderRadius:K}=e,te=t.unref(x),ce=te.length,ye=[];for(let G=0;G<ce;G++){const J={...te[G],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(J.stack="stack"),J.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:ee=>{let ne="",ae=e.labelFormatter;ae===""&&(ae="{c}");const{seriesName:ie,name:ue,value:Se,data:ke}=ee||{};return ne+=_e(ae,{textData:{name:ue,value:Se,a:ie,b:ue,c:Se||0,...ke}},{useNewline:!0,useSpace:!0}),ne}},J.itemStyle={},U&&(J.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[G]},{offset:H,color:j[G]},{offset:1,color:j[G]}]}}),K){const ee=K.split(",");if(ee!=null&&ee.length){const ne=[];for(const ae of ee){const ie=parseFloat(ae);isNaN(ie)||ne.push(ie)}J.itemStyle.borderRadius=ne}}e.isShowMarkLine&&(J.markLine={data:[{type:e.markLineType}]}),ye.push(J)}return ye}),I=t.ref([]),v=t.ref(!1),S=t.computed(()=>{const U=e.yAxisLabelFormatter,j=e.xAxisLabelFormatter;return{textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:s.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){l.value=!0;const H=r.value.chart.getOption(),{xAxis:K}=H||{};K&&K.length&&(c.value=K[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:s.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var H;s.value=!0,(H=u.value)==null||H.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){he.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:H=>{var ye;const K=H.length;let te="",ce=e.tooltipFormatter;y=(ye=H[0])==null?void 0:ye.data,ce===""&&(ce="{marker} {a} {c}");for(let G=0;G<K;G++){const{marker:J,seriesName:ee,name:ne,value:ae,data:ie}=H[G]||{};if(G===0){let ue=ne;typeof ne=="string"&&ne[0]==="0"&&!isNaN(+ne)&&(ue=(+ne).toString()),te+=`${gt(j,ue)}<br/>`}te+=_e(ce,{textData:{marker:J,name:ne,value:ae,a:ee,b:ne,c:ae||0,...ie}},{useNewline:!0,useSpace:!0}),te+="<br/>"}return te},textStyle:{color:e.tooltipTextStyleColor,fontSize:h.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(s.value?Qe:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:s.value?Qe:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(x).map((H,K)=>({name:H.name,itemStyle:{color:e.colors[K]},icon:e.legendType})),formatter:H=>fn(e.legendFormatter,{name:H})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(R),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(H){return typeof H=="string"&&H[0]==="0"&&!isNaN(+H)&&(H=(+H).toString()),gt(j,H)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(I):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(H){return gt(U,H)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},series:t.unref(A)}}),C=()=>{s.value=!1},B=(U=[],j=!1)=>{let H={};if(e.dataFieldConfigType==="key"){const K=j?e.keyTypeDataFieldNames:null;H=Lt(U,K)}else if(e.dataFieldConfigType==="value"){const K=j?e.valueTypeDataFieldNames:null;H=Gt(U,K)}x.value=H.dataset,I.value=H.dimensions},g=(U=[],j,H=!1)=>{const te=Lt(U,H?j:null,!0);e.defaultRangeValue&&Fr({props:e,componentList:t.unref(i),getGlobalModel:P},te),x.value=te.dataset,I.value=te.dimensions},R=t.computed(()=>t.unref(I).map(U=>{let j={};return U&&typeof U=="object"?j={...U}:j={value:U},j}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([U])=>{(e.dataType==="static"||t.unref(n)==="design")&&B(U)},{immediate:!0,deep:!0});const p=je(e,U=>{var j,H;B((H=(j=U==null?void 0:U.data)==null?void 0:j.data)==null?void 0:H.rows,!0)}),D=async()=>{var U,j;try{v.value=!0;const H=await p();B((j=(U=H==null?void 0:H.data)==null?void 0:U.data)==null?void 0:j.rows,!0)}catch(H){console.error(H)}finally{v.value=!1}},w=U=>{var te;const{columns:j=[],rows:H=[]}=((te=U==null?void 0:U.data)==null?void 0:te.data)??{};let K;j.length>0&&(K={name:j[0],types:j.slice(1).map(ce=>({label:ce,value:ce}))}),g(H,K,!0)},L=Xe(e,w),M=async()=>{try{v.value=!0;const U=await L();w(U)}catch(U){console.error(U)}finally{v.value=!1}},{loadedData:k}=t.inject(Et,{loadedData:{}}),O=t.ref(!1);t.watch(k,U=>{if(e.dataType==="indicator"){const j=dn(e.graphicConfig);j!=null&&j.length&&(!t.unref(O)&&ht(e.graphicConfig,U)?(O.value=!0,T()):ht(e.graphicConfig,U)||(O.value=!1))}},{deep:!0});const T=()=>{switch(e.dataType){case"indicator":ht(e.graphicConfig,t.unref(k))&&M();break;case"request":D();break}},F=(U,j)=>!!t.unref(c)[j.value].value.includes(U),b=async()=>{l.value=!1;const U=r.value.chart.getOption();for(let j=0;j<7;j++)await E(U,j)},E=(U,j)=>new Promise(H=>{setTimeout(()=>{const{series:K,color:te,xAxis:ce}=U,ye=r.value.chart,{splitArea:G={}}=ce[0]||{};K.forEach((J,ee)=>{const ne=J.data;let ae="";j%2?ae=te[ee]+"a8":ae=te[ee],ne[d.value].itemStyle={color:ae}}),j%2?(G.show=!0,G.areaStyle.color=t.unref(c).map((J,ee)=>ee===d.value?"#ff003b26":"")):G.show=!1,ye.setOption({series:K,xAxis:ce}),H()},200)});o({refreshData:T});const _=Ne(e),{getGlobalModel:P,setGlobalModel:N}=t.inject(Le,{getGlobalModel:U=>{},setGlobalModel:(U,j)=>{}});N(e.id,{type:e.type,RECORD:""});const V=_("click",U=>{const j=P(e.id);N(e.id,{...j,type:e.type,RECORD:e.tooltipShow?y:U.data})}),{setRequest:z}=t.inject(He,{setRequest:U=>{}});typeof z=="function"&&z({id:e.id,requestFn:T,sortNum:e.requestSort});const q=()=>{const U=e.id,j=P(U);N(U,{...j,RECORD:""})},X=U=>{r.value.chart.containPixel("grid",[U.offsetX,U.offsetY])&&V()};return e.tooltipShow?m.value["zr:click"]=X:m.value.click=V,Fe(e,{refreshData:T,click:V,resetRecord:q}),{option:S,style:f,refreshData:T,click:V,loading:v,onClose:C,ecanModal:u,echartRef:r,handleLocationOk:b,onFilterOption:F,locationVisible:l,locationValue:d,locationNames:c,eventObj:m}}}),i1="",r1="",Cf=e=>(t.pushScopeId("data-v-36e67f03"),e=e(),t.popScopeId(),e),wf={class:"location-wrap"},Af=Cf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function kf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),f=t.resolveComponent("a-select"),x=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{class:"ecan-bar",style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",wf,[Af,t.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(u,m)=>(t.openBlock(),t.createBlock(c,{key:m,value:m},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Dl=Ae(ve(Sf,[["render",kf],["__scopeId","data-v-36e67f03"]])),Ba={...Re,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",yAxisName:"",xAxisName:""},Ea=Te(Ba),Il=["click","refreshData","resetRecord"];it.use([Ft.CanvasRenderer,Ct.ScatterChart,De.ToolboxComponent,De.TitleComponent,De.TooltipComponent,De.LegendComponent,De.MarkLineComponent]);const Tf=t.defineComponent({name:"EcanScatter",props:{...Ea},components:{Spin:jt,Echarts:Tt,EcanModal:Nt},setup(e){const{pageMode:o,fontFamily:n}=t.inject(ze,{pageMode:"normal",fontFamily:""}),a=t.ref(!1),i=Ie(e),r=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?Qe:12),d=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),c=t.computed(()=>{const g=e.xAxisLabelFormatter,R=e.yAxisLabelFormatter;return{textStyle:{fontFamily:t.unref(n)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var p;a.value=!0,(p=s.value)==null||p.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){he.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(p){return typeof p=="string"&&p[0]==="0"&&!isNaN(+p)&&(p=(+p).toString()),gt(g,p)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(p){return gt(R,p)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(p){var O;const{marker:D,seriesName:w}=p,L=((O=p==null?void 0:p.data)==null?void 0:O.record)??{},{name:M,value:k}=L;return _e(e.tooltipFormatter,{textData:{marker:D,seriesName:w,a:w,b:M,c:k,...L}})},axisPointer:{type:"cross"},textStyle:{fontSize:l.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:l.value}},series:[{data:t.unref(r),type:"scatter",symbolSize:e.symbolSize,...t.unref(d)}]}}),{getGlobalModel:f,setGlobalModel:x}=t.inject(Le,{getGlobalModel:g=>{},setGlobalModel:(g,R)=>{}}),u=(g=[],R)=>{const{name:p="name",value:D="value"}=R||{};r.value=g.map(w=>({value:[w[p],w[D]],record:w}))};t.watch(()=>e.data,g=>{(e.dataType==="static"||t.unref(o)==="design")&&u(g)},{immediate:!0,deep:!0});const m=t.ref(!1),y=je(e,g=>{var R,p;u((p=(R=g==null?void 0:g.data)==null?void 0:R.data)==null?void 0:p.rows,e.dataFieldNames)}),h=async()=>{var g,R;if(e.dataType==="request"){m.value=!0;try{const p=await y();u((R=(g=p==null?void 0:p.data)==null?void 0:g.data)==null?void 0:R.rows,e.dataFieldNames)}catch(p){console.error(p)}finally{m.value=!1}}},A=()=>{a.value=!1},I=Ne(e);x(e.id,{type:e.type,RECORD:""});const v=I("click",g=>{const R=e.id,p=f(R);x(R,{...p,type:e.type,RECORD:g==null?void 0:g.data})});Fe(e,{refreshData:()=>{h()},click:v,resetRecord:()=>{const g=e.id,R=f(g);x(g,{...R,RECORD:""})}});const{setRequest:B}=t.inject(He,{setRequest:g=>{}});return typeof B=="function"&&B({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:c,style:i,click:v,loading:m,onClose:A,ecanModal:s}}}),s1="";function Bf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Rl=Ae(ve(Tf,[["render",Bf]])),Da={...Re,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},Ia=Te(Da),Ef=t.defineComponent({name:"EcanCustomGraph",props:{...Ia},components:{Echarts:Tt},setup(e){const o=Ie(e),n=t.ref();return t.watch(()=>e.optionCode,a=>{try{const i=eval;n.value=i(a)}catch(i){console.error(i)}},{immediate:!0}),{style:o,myOption:n,echarts:hs}}});function Df(e,o,n,a,i,r){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const Ll=Ae(ve(Ef,[["render",Df]])),Ra={...Re,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null},La=Te(Ra),Nl=["refreshData","click","resetRecord"];it.use([Ft.CanvasRenderer,Ct.BarChart,Ct.LineChart,De.TitleComponent,De.LegendComponent,De.DatasetComponent,De.ToolboxComponent,De.MarkLineComponent]);const If=t.defineComponent({name:"EcanComboGraph",props:{...La},components:{Spin:jt,Echarts:Tt,EcanModal:Nt,AModal:he.Modal},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(ze,{pageMode:"normal",fontFamily:""}),i=t.inject("usedComponentList",[]),{getGlobalModel:r,setGlobalModel:s}=t.inject(Le,{getGlobalModel:j=>{},setGlobalModel:(j,H)=>{}}),l=t.ref(),d=t.ref(!1),c=t.ref(!1),f=t.ref(null),x=t.ref([]),u=t.ref({});let m;const y=Ie(e),h=t.ref([]),A=t.ref([]),I=t.ref(),v=t.ref([]),S=t.computed(()=>d.value?Qe:12),C=t.computed(()=>({textStyle:{fontFamily:t.unref(a)},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:d.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){c.value=!0;const j=l.value.chart.getOption(),{xAxis:H}=j||{};H&&H.length&&(x.value=H[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:d.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var j;d.value=!0,(j=I.value)==null||j.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){he.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(d.value?Qe:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:d.value?Qe:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(v).map((j,H)=>({name:j.name,itemStyle:{color:e.colors[H]},icon:e.legendType})),formatter:j=>fn(e.legendFormatter,{name:j})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:j=>{var ye;const H=j.length;let K="",te=e.tooltipFormatter;m=(ye=j[0])==null?void 0:ye.data,te===""&&(te="{marker} {a} {c}");const ce=e.seriesTypes;for(let G=0;G<H;G++){const J=ce[G],{tooltipFormatter:ee}=J||{},{marker:ne,seriesName:ae,name:ie,value:ue,data:Se}=j[G]||{};if(G===0){let ke=ie;typeof ie=="string"&&ie[0]==="0"&&!isNaN(+ie)&&(ke=(+ie).toString()),K+=`${gt(e.xAxisLabelFormatter,ke)}<br/>`}K+=_e(ee||te,{textData:{marker:ne,name:ie,value:ue,seriesName:ae,a:ae,b:ie,c:ue||0,...Se}},{useNewline:!0,useSpace:!0}),K+="<br/>"}return K},textStyle:{color:e.tooltipTextStyleColor,fontSize:S.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(A).map(j=>{let H={};return j&&typeof j=="object"?H={...j}:H={value:j},H}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(j){return typeof j=="string"&&j[0]==="0"&&!isNaN(+j)&&(j=(+j).toString()),gt(e.xAxisLabelFormatter,j)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:t.unref(D),series:t.unref(h)})),B=()=>{d.value=!1},g=(j=[],H=!1)=>{let K;if(e.dataFieldConfigType==="key"){const ce=H?e.keyTypeDataFieldNames:null;K=Lt(j,ce)}else if(e.dataFieldConfigType==="value"){const ce=H?e.valueTypeDataFieldNames:null;K=Gt(j,ce)}A.value=K.dimensions;const te=K.dataset;v.value=K.dataset,h.value=p(te)},R=(j=[],H,K=!1)=>{const ce=Lt(j,K?H:null,!0);e.defaultRangeValue&&Fr({props:e,componentList:t.unref(i),getGlobalModel:r},ce),A.value=ce.dimensions;const ye=ce.dataset;v.value=ce.dataset,h.value=p(ye)};function p(j){const H=[],K=j.length,te=e.seriesTypes;for(let ce=0;ce<K;ce++){const ye=te[ce],{type:G,axisIndex:J}=ye||{};let ee={type:G,yAxisIndex:J,...j[ce]};if(G==="line"){const ne={};e.shadowColor&&(ne.shadowColor=e.shadowColor,ne.shadowBlur=e.shadowBlur,ne.shadowOffsetY=e.shadowOffsetY,ne.shadowOffsetX=e.shadowOffsetX),ee={...ee,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[ce]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[ce]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[ce],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...ne}}}if(G==="bar"){const{gradientShow:ne,gradientColors:ae,gradientOffset:ie}=e,ue={};if(e.barBorderRadius){const Se=e.barBorderRadius.split(",");if(Se!=null&&Se.length){const ke=[];for(const qe of Se){const We=parseFloat(qe);isNaN(We)||ke.push(We)}ue.borderRadius=ke}}ne&&(ue.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[ce]},{offset:ie,color:ae[ce]},{offset:1,color:ae[ce]}]}),ee={...ee,barWidth:e.barWidth,itemStyle:ue}}e.isShowMarkLine&&(ee.markLine={data:[{type:e.markLineType}]}),H.push(ee)}return H}t.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([j])=>{(e.dataType==="static"||t.unref(n)==="design")&&g(j)},{immediate:!0,deep:!0});const D=t.computed(()=>{const j=e.yAxis;return j==null?void 0:j.map((H,K)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:K===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:K===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(te){return gt(H.axisLabelFormatter,te)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:K===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:K===0?"right":"left"},max:e.yAxisMaxValue||null}))}),w=t.ref(!1),L=je(e,j=>{var H,K;g((K=(H=j==null?void 0:j.data)==null?void 0:H.data)==null?void 0:K.rows,!0)}),M=async()=>{var j,H;if(e.dataType==="request")try{w.value=!0;const K=await L();g((H=(j=K==null?void 0:K.data)==null?void 0:j.data)==null?void 0:H.rows,!0)}catch(K){console.error(K)}finally{w.value=!1}},k=j=>{var ce;const{columns:H=[],rows:K=[]}=((ce=j==null?void 0:j.data)==null?void 0:ce.data)??{};let te;H.length>0&&(te={name:H[0],types:H.slice(1).map(ye=>({label:ye,value:ye}))}),R(K,te,!0)},O=Xe(e,k),T=async()=>{try{w.value=!0;const j=await O();k(j)}catch(j){console.error(j)}finally{w.value=!1}},{loadedData:F}=t.inject(Et,{loadedData:{}}),b=t.ref(!1);t.watch(F,j=>{if(e.dataType==="indicator"){const H=dn(e.graphicConfig);H!=null&&H.length&&(!t.unref(b)&&ht(e.graphicConfig,j)?(b.value=!0,E()):ht(e.graphicConfig,j)||(b.value=!1))}},{deep:!0});const E=()=>{switch(e.dataType){case"indicator":ht(e.graphicConfig,t.unref(F))&&T();break;case"request":M();break}},_=(j,H)=>!!t.unref(x)[H.value].value.includes(j),P=async()=>{c.value=!1;const j=l.value.chart.getOption();for(let H=0;H<7;H++)await N(j,H)},N=(j,H)=>new Promise(K=>{setTimeout(()=>{const{series:te,color:ce,xAxis:ye}=j,G=l.value.chart,{splitArea:J={}}=ye[0]||{};te.forEach((ee,ne)=>{const ae=ee.data;let ie="";H%2?ie=ce[ne]+"a8":ie=ce[ne],ae[f.value].itemStyle={color:ie}}),H%2?(J.show=!0,J.areaStyle.color=t.unref(x).map((ee,ne)=>ne===f.value?"#ff003b26":"")):J.show=!1,G.setOption({series:te,xAxis:ye}),K()},200)});o({refreshData:E});const V=Ne(e);s(e.id,{type:e.type,RECORD:""});const z=V("click",j=>{const H=r(e.id);s(e.id,{...H,type:e.type,RECORD:e.tooltipShow?m:j==null?void 0:j.data})}),q=j=>{l.value.chart.containPixel("grid",[j.offsetX,j.offsetY])&&z()};e.tooltipShow?u.value["zr:click"]=q:u.value.click=z;const{setRequest:X}=t.inject(He,{setRequest:j=>{}});return typeof X=="function"&&X({id:e.id,requestFn:E,sortNum:e.requestSort}),Fe(e,{resetRecord:()=>{const j=e.id,H=r(j);s(j,{...H,RECORD:""})},refreshData:E,click:z}),{style:y,option:C,click:z,loading:w,onClose:B,ecanModal:I,echartRef:l,handleLocationOk:P,onFilterOption:_,locationVisible:c,locationValue:f,locationNames:x,eventObj:u}}}),f1="",u1="",Rf=e=>(t.pushScopeId("data-v-db85dc30"),e=e(),t.popScopeId(),e),Lf={class:"location-wrap"},Nf=Rf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _f(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),f=t.resolveComponent("a-select"),x=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",Lf,[Nf,t.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(u,m)=>(t.openBlock(),t.createBlock(c,{key:m,value:m},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const _l=Ae(ve(If,[["render",_f],["__scopeId","data-v-db85dc30"]])),Na={...Re,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1},_a=Te(Na),Ol=["refreshData","click","resetRecord"];it.use([Ft.CanvasRenderer,Ct.RadarChart,De.ToolboxComponent,De.TitleComponent,De.LegendComponent]);const Of=t.defineComponent({name:"EcanRadar",props:{..._a},components:{Spin:jt,Echarts:Tt,EcanModal:Nt},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(ze,{pageMode:"normal",fontFamily:""}),i=t.ref(),r=t.ref(!1),s=Ie(e),l=t.ref([]),d=t.ref(),c=t.computed(()=>r.value?Qe:12),f=t.ref([]),x=t.ref(e.valueTypeDataFieldNames.name),u=t.computed(()=>{const T=t.unref(f),F=T.length,b=[];for(let E=0;E<F;E++){const{name:_,data:P=[]}=T[E],N=[{name:_,value:P.map(q=>q.value)}];let V=e.colors[E];if(e.gradientShow){const{gradientOffset:q,gradientColors:X}=e;V={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[E]},{offset:q,color:X[E]},{offset:1,color:X[E]}]}}const z={type:"radar",name:_,data:N,areaStyle:{color:V,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:q=>{const{data:X,value:U}=q;let j=0,H="0%";if(X)for(const K of X.value)j+=+K;return j&&(H=`${(U/j*100).toFixed(2)}%`),_e(e.labelFormatter,{textData:{value:U,percent:H}},{useNewline:!1,useSpace:!1})}}};b.push(z)}return b}),m=t.computed(()=>{var _;const T=[],F=[],b=t.unref(f),E=b.length;for(let P=0;P<E;P++){const{data:N=[]}=b[P];for(let V=0;V<N.length;V++)F.push(N[V].value)}if((_=l.value)!=null&&_.length){const P=F!=null&&F.length?Math.max(...F)*1.2:0;for(const N of l.value)T.push({name:N,max:P})}return T}),y=t.computed(()=>({textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:r.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var T;r.value=!0,(T=d.value)==null||T.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){he.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:c.value},show:e.tooltipShow,formatter:T=>{let F="",b=e.tooltipFormatter;b===""&&(b="{marker} {a} {c}");for(let E=0;E<t.unref(m).length;E++){const _=t.unref(m)[E],{marker:P,seriesName:N,value:V}=T||{};E===0&&N&&(F+=`${N}<br/>`),F+=_e(b,{textData:{marker:P,name:_.name,value:V[E],a:_.name,b:_.name,c:V[E]||0,type:N}},{useNewline:!0,useSpace:!0}),F+="<br/>"}return F},position:e.tooltipPosition||void 0},radar:{indicator:t.unref(m),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(r.value?Qe:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?Qe:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(f).map(T=>({name:T.name,icon:e.legendType})),formatter:T=>fn(e.legendFormatter,{name:T})},series:t.unref(u)})),h=()=>{r.value=!1},{getGlobalModel:A,setGlobalModel:I}=t.inject(Le,{getGlobalModel:T=>{},setGlobalModel:(T,F)=>{}}),v=(T=[],F=!1)=>{let b;if(e.dataFieldConfigType==="key"){const E=F?e.keyTypeDataFieldNames:null;b=Lt(T,E)}else if(e.dataFieldConfigType==="value"){const E=F?e.valueTypeDataFieldNames:null;b=Gt(T,E)}l.value=b.dimensions,f.value=b.dataset},S=(T=[],F,b=!1)=>{const _=Lt(T,b?F:null,!0);l.value=_.dimensions,f.value=_.dataset};t.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([T])=>{(e.dataType==="static"||t.unref(n)==="design")&&v(T)},{immediate:!0,deep:!0});const C=t.ref(!1),B=je(e,T=>{var F,b;v((b=(F=T==null?void 0:T.data)==null?void 0:F.data)==null?void 0:b.rows,!0)}),g=async()=>{var T,F;if(e.dataType==="request")try{C.value=!0;const b=await B();v((F=(T=b==null?void 0:b.data)==null?void 0:T.data)==null?void 0:F.rows,!0)}catch(b){console.error(b)}finally{C.value=!1}},R=Ne(e);I(e.id,{type:e.type,RECORD:""});const p=T=>{const F=T.event.topTarget.__dimIdx;F!==void 0&&R("click",()=>{var P;const{value:b,name:E}=T.data||{},_=A(e.id);I(e.id,{..._,type:e.type,RECORD:{[t.unref(x)]:((P=t.unref(m)[F])==null?void 0:P.name)||"",[E]:b[F],seriesName:E}})})()},D=T=>{var _;const{columns:F=[],rows:b=[]}=((_=T==null?void 0:T.data)==null?void 0:_.data)??{};let E;F.length>0&&(x.value=F[0],E={name:F[0],types:F.slice(1).map(P=>({label:P,value:P}))}),S(b,E,!0)},w=Xe(e,D),L=async()=>{try{C.value=!0;const T=await w();D(T)}catch(T){console.error(T)}finally{C.value=!1}},M=()=>{switch(e.dataType){case"indicator":L();break;case"request":g();break}};Fe(e,{refreshData:M,resetRecord:()=>{const T=e.id,F=A(T);I(T,{...F,RECORD:""})},click:p});const{setRequest:O}=t.inject(He,{setRequest:T=>{}});return typeof O=="function"&&O({id:e.id,requestFn:M,sortNum:e.requestSort}),o({refreshData:M}),{option:y,style:s,click:p,loading:C,onClose:h,ecanModal:d,echartRef:i}}}),g1="";function Ff(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Fl=Ae(ve(Of,[["render",Ff]])),Mf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ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2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",Oa={...Re,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},Fa=Te(Oa),Ml=["click"],Vf=t.defineComponent({name:"EcanBorder",props:{...Fa},setup(e){const o=Ie(e,["background"]),n=t.computed(()=>{const{isTransparent:y,gradientShow:h,gradientColor:A,gradientOffset:I,gradientAngle:v,backgroundColor:S}=e;if(h){let C=A;return y&&(C="transparent"),C?{background:`linear-gradient(${v}, ${S}, ${C} ${I*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:y}=e;let h={};return y!=null&&y.length&&y.find(I=>I.emit==="showModal")&&(h={cursor:"pointer"}),h}),{theme:i}=t.inject(ze,{theme:"light"}),r=t.computed(()=>{let y="";switch(e.titleMode){case"type-2":y="2";break}return y}),s=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":Mf,"../../assets/border-title-decoration-left2.png":zf})[`../../assets/border-title-decoration-left${r.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":Pf,"../../assets/border-title-decoration-right2.png":qf})[`../../assets/border-title-decoration-right${r.value}.png`],self.location).href),d=t.computed(()=>({width:"100%",height:"100%"})),c=t.computed(()=>{const{borderRadius:y}=e,h=[],A={};if(y){const I=y.split(",");for(const v of I)(+v||+v==0)&&h.push(+v+"px")}return h!=null&&h.length&&(A.borderRadius=h.join(" ")),A}),x=Ne(e)("click",()=>{}),u=t.ref([]);t.watch(()=>e.data,y=>{u.value=y},{immediate:!0,deep:!0}),Fe(e,{click:x});const{setGlobalModel:m}=t.inject(Le,{setGlobalModel:(y,h)=>{}});return m(e.id,{type:e.type,value:u}),{style:o,gradientStyle:n,click:x,borderStyle:d,theme:i,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),y1="",_t=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),Hf=["id"],jf=_t(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Wf=_t(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Gf=_t(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Uf=_t(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),$f={class:"title-item"},Yf=["src"],Kf={class:"title"},Zf=["src"],Qf=_t(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Jf=_t(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Xf=_t(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),eu=_t(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),tu={key:2,class:"left-title"},nu={class:"title"};function ou(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"no-title",style:t.normalizeStyle(e.borderStyle)},[e.useBorderModify?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[jf,Wf,Gf,Uf],64)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),e.mode==="top-title"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"top-title",style:t.normalizeStyle(e.borderStyle)},[t.createElementVNode("div",{class:t.normalizeClass(["title-item-wrapper",e.titleMode])},[t.createElementVNode("div",$f,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Yf),t.createElementVNode("div",Kf,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Zf)])],2),Qf,Jf,Xf,eu],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",tu,[t.createElementVNode("div",nu,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,Hf)}const zl=Ae(ve(Vf,[["render",ou],["__scopeId","data-v-8dd53b8f"]])),Ma={...Re,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:10,componentList:[],hideTabs:!1,gridTopPx:"0",gridBottomPx:"0",gridLeftPx:"0",gridRightPx:"0"},za=Te(Ma),Pl=["tabChange"],au=t.defineComponent({name:"EcanTabs",props:{...za},components:{ASelect:he.Select,ASelectOption:he.SelectOption,MarqueeScroll:Wn},setup(e){const o=Ie(e),n=t.ref(0);t.watch(()=>e.activeKey,p=>{n.value=p},{immediate:!0});const{pageMode:a}=t.inject(ze,{pageMode:"normal"}),i=t.inject("getContainerMap",()=>{}),r=t.inject("componentList",[]),s=["ecanBorder","ecanTabs","ecanCirculate"],l=t.computed(()=>i()||{}),d=p=>{const D=t.unref(l)[p],w=[];if(D)for(const L in D)for(const M of D[L]){const k=t.unref(r).find(O=>O.id===M);w.push(M),s.includes(k==null?void 0:k.type)&&w.push(...d(M))}return w},c=t.computed(()=>d(e.id));let f=null;const x=()=>{const p=Array.isArray(t.unref(m))?t.unref(m).length-1:0;t.unref(a)!=="design"&&!e.isAutoScroll&&e.autoSwitch&&p>0&&(f=setInterval(()=>{const D=t.unref(n)+1;D<=p?n.value=D:n.value=0,y.value=t.unref(m)[t.unref(n)],v()},e.autoSwitchInterval*1e3))},u=()=>{clearInterval(f)};t.onMounted(()=>{t.unref(a)!=="design"&&x()}),t.onBeforeUnmount(()=>{u()});const m=t.ref([]),y=t.ref({});t.watch(()=>e.data,p=>{m.value=p,y.value=Array.isArray(p)&&p.length>0?p[0]:{}},{immediate:!0,deep:!0});const h=p=>n.value===p,A=Ne(e),{setGlobalModel:I}=t.inject(Le,{setGlobalModel:(p,D)=>{}});I(e.id,{value:y,activeKey:n});const{emitRefreshPage:v}=t.inject(sn,{emitRefreshPage:()=>{}}),S=p=>{let{tab:D,index:w}=p||{};if(p.label){const L=t.unref(m).findIndex(M=>M.title===p.label);L!==-1&&(w=L,D=t.unref(m)[L])}A("tabChange",()=>{!isNaN(+w)&&w!==t.unref(n)&&(y.value=D,n.value=w,v())})()},C=t.computed(()=>{const p=e.componentList.map(D=>parseFloat(D.left)+parseFloat(D.width)).sort((D,w)=>w-D)[0];return{width:p?p+"px":"100%"}}),B=()=>{t.unref(a)!=="design"&&u()},g=p=>{var D,w;return p?(w=(D=p==null?void 0:p.parentNode)==null?void 0:D.className)!=null&&w.includes("ecan-")?p.parentNode.getAttribute("cpntid"):g(p.parentNode):""},R=p=>{var D;if(t.unref(a)!=="design"){const w=(p==null?void 0:p.toElement)||{};if((D=w==null?void 0:w.className)!=null&&D.includes("ecan-"))t.unref(c).includes(w.getAttribute("cpntid"))||x();else if((w==null?void 0:w.className)==="page-config")x();else{const L=g(w);t.unref(c).includes(L)||x()}}};return Fe(e,{tabChange:S}),{style:o,activeKey:n,isActive:h,tabChange:S,myData:m,useImagePath:pt,pageMode:a,scrollWrapStyle:C,onMouseEnter:B,onMouseLeave:R}}}),p1="",iu=["id"],ru=["onClick"];function lu(e,o,n,a,i,r){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select"),d=t.resolveComponent("marquee-scroll");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tabs",style:t.normalizeStyle(e.style),id:"container_"+e.id,onMouseenter:o[0]||(o[0]=(...c)=>e.onMouseEnter&&e.onMouseEnter(...c)),onMouseleave:o[1]||(o[1]=(...c)=>e.onMouseLeave&&e.onMouseLeave(...c))},[e.pageMode==="design"||!e.isAutoScroll?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection,margin:`${e.gridTopPx||0} ${e.gridRightPx||0} ${e.gridBottomPx||0} ${e.gridLeftPx||0}`})},[e.tabType==="tabs"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.myData,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(f)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(f)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:f,onClick:t.withModifiers(x=>e.tabChange({tab:c,index:f}),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(f)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,ru))),128)):e.tabType==="select"?(t.openBlock(),t.createBlock(l,{key:1,value:e.activeKey,style:t.normalizeStyle({width:e.tabWidth})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(c,f)=>(t.openBlock(),t.createBlock(s,{key:f,value:f,onClick:x=>e.tabChange({tab:c,index:f})},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):t.createCommentVNode("",!0)],4)),[[t.vShow,e.pageMode==="design"||!e.hideTabs]]):t.createCommentVNode("",!0),e.pageMode!=="design"&&e.isAutoScroll?(t.openBlock(),t.createBlock(d,{key:1,visible:e.isAutoScroll,step:e.scrollSpeed,vertical:!1,style:t.normalizeStyle({height:e.height})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"scroll-wrap",style:t.normalizeStyle(e.scrollWrapStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,c=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):t.createCommentVNode("",!0)],44,iu)}const ql=Ae(ve(au,[["render",lu],["__scopeId","data-v-5848288f"]])),Pa={...Re,name:"循环列表",type:"ecanCirculate",keyName:"循环列表",width:"300px",height:"300px",zIndex:0,borderColor:"#eee",borderStyle:"solid",borderWidth:"2px",graphicConfig:{},isAutoScroll:!1,scrollSpeed:10,componentList:[],data:[],dataType:"indicator",keyFieldMap:[],unitInterval:15,backgroundColor:"#ffffff",colNum:null,scrollDirection:"horizontal"},qa=Te(Pa),Vl=["click","refreshData","resetRecord"];let Hl=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((o,n)=>(n&=63,n<36?o+=n.toString(36):n<62?o+=(n-26).toString(36).toUpperCase():n>62?o+="-":o+="_",o),"");const su=t.defineComponent({name:"EcanCirculate",props:{...qa,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll:Wn,Skeleton:Wt},setup(e,{expose:o}){const n=t.ref(!1),a=Ie(e,["background"]),i=t.inject("usedComponentList",[]),r=t.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=t.inject(Le,{getGlobalModel:p=>{},setGlobalModel:(p,D)=>{}}),d=t.ref([]),c=t.ref({}),{pageMode:f}=t.inject(ze,{pageMode:"normal"}),x=t.computed(()=>{if(t.unref(r)){const p=document.body.clientWidth,D=e.sourceWidth||parseFloat(e.width);return p/D||1}else return 1});function u(p,D){const w=D.find(L=>L.id===e.id);if(w)for(const L of p)L.left=parseFloat(L.left)-parseFloat(w.sourceLeft||w.left)+"px",L.top=parseFloat(L.top)-parseFloat(w.sourceTop||w.top)+"px"}const m=p=>{const D=p.sort((k,O)=>parseFloat(k.top)-parseFloat(O.top))[0],w=p.sort((k,O)=>parseFloat(k.left)-parseFloat(O.left))[0],L=p.map(k=>parseFloat(k.left)+parseFloat(k.width)).sort((k,O)=>O-k)[0],M=p.map(k=>parseFloat(k.top)+parseFloat(k.height)).sort((k,O)=>O-k)[0];if(w&&L&&D&&M){const k=parseFloat(w.left),O=parseFloat(D.top);return{width:L-k,height:M-O,left:k}}else return{width:0,height:0,left:0}},y=t.ref({}),h=p=>{var _,P;const D=[],{graphicConfig:w,id:L,componentList:M,keyFieldMap:k,unitInterval:O,colNum:T}=e;let F=Oe.cloneDeep(M),b=[];if((_=t.unref(i))!=null&&_.length)for(const N of t.unref(i))b.push(N),(P=N==null?void 0:N.componentList)!=null&&P.length&&b.push(...N.componentList);if(w.pageMode==="design"&&w.preview){const{containerMap:N}=w.pageConfig||{};b=w.componentList||[],b.push(e),F=Ca(N,Oe.cloneDeep(b),L)}u(F,b);const E=m(F);if(p!=null&&p.length){const{width:N,left:V,height:z}=E;let q=0,X=0;p.forEach((U,j)=>{U.index=j+1;const H=Hl(),K=Oe.cloneDeep(F);for(const te of K){const ce=k.find(G=>G.keyName===te.keyName),ye=Hl();if(te.left=(parseFloat(te.left)+q)*t.unref(x)+"px",te.top=(parseFloat(te.top)+X)*t.unref(x)+"px",te.scale=t.unref(x),te.id=ye,te.keyName=te.name+"_"+ye,te.unitId=H,ce!=null&&ce.fieldName){const G=te.text.match(/\{(.+?)\}/g);switch(te.type){case"ecanText":{te.data={value:String(U[ce.fieldName])},G!=null&&G.length||(te.text="{value}");break}case"ecanProportion":{te.data={percent:String(U[ce.fieldName])},G!=null&&G.length||(te.text="{percent}");break}}}}T&&U.index%T===0?(q=0,X+=O+z):q+=O+N,D.push(...K),y.value[H]=U}),c.value={width:((T||p.length)*(N+O)+V)*t.unref(x)+"px",height:(T?Math.ceil(p.length/T)*(O+z):O+z)*t.unref(x)+"px"}}d.value=D},A=p=>{var w;const{rows:D=[]}=((w=p==null?void 0:p.data)==null?void 0:w.data)??{};h(D)},I=Xe(e,A),v=async()=>{try{n.value=!0;const p=await I();A(p)}catch(p){console.error(p)}finally{n.value=!1}},S=()=>{switch(e.dataType){case"indicator":v();break}};Fe(e,{refreshData:S,resetRecord:()=>{const p=e.id,D=s(p);l(p,{...D,RECORD:""})}}),o({refreshData:S}),l(e.id,{type:e.type,RECORD:""});const{setRequest:B}=t.inject(He,{setRequest:p=>{}});typeof B=="function"&&B({id:e.id,requestFn:S,sortNum:e.requestSort});const g=Ne(e);return{loading:n,style:a,myComponentList:d,scrollWrapStyle:c,pageMode:f,click:p=>{let D=p.target;if(D){let w=D.getAttribute("unitId");for(;!w&&!D.className.includes("ecan-");)D=D.parentElement,w=D.getAttribute("unitId");w&&g("click",()=>{const L=s(e.id);l(e.id,{...L,type:e.type,RECORD:t.unref(y)[w]})})()}}}}}),v1="",cu=["id"];function du(e,o,n,a,i,r){const s=t.resolveComponent("marquee-scroll"),l=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-circulate",style:t.normalizeStyle(e.style),id:"container_"+e.id,onClick:o[0]||(o[0]=(...d)=>e.click&&e.click(...d))},[t.createVNode(l,{loading:e.loading},{default:t.withCtx(()=>{var d;return[(d=e.myComponentList)!=null&&d.length?(t.openBlock(),t.createBlock(s,{key:0,visible:e.pageMode!=="design"&&e.isAutoScroll,step:e.scrollSpeed,vertical:e.scrollDirection==="vertical",marqueeStyle:{height:"100%"},wrapStyle:{height:"100%",overflow:"auto"}},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"scroll-wrap",style:t.normalizeStyle(e.scrollWrapStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myComponentList,c=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","vertical"])):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,cu)}const jl=Ae(ve(su,[["render",du],["__scopeId","data-v-85608bec"]])),Va={...Re,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:""},Ha=Te(Va),Wl=["click"],ja=t.defineComponent({name:"EcanImage",props:{...Ha},setup(e){const o=Ie(e),n=t.computed(()=>pt(e.imgUrl)),{pageMode:a}=t.inject(ze,{pageMode:"normal"}),{getGlobalModel:i,setGlobalModel:r}=t.inject(Le,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Ne(e)("click",()=>{const d=i(e.id);if(r(e.id,{...d,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{r(e.id,{...d,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",f=zo(t.unref(a),c),x=e.href;let u=x||f;u=_e(u);const m=e.target;m&&(m!=="event"?window.open(u,"_"+m):window.parent.postMessage({type:"openPage",url:x},"*"))});return Fe(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),Gl=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},Ul=ja.setup;ja.setup=Ul?(e,o)=>(Gl(),Ul(e,o)):Gl;const C1="",fu=["src"];function uu(e,o,n,a,i,r){return e.myImgUrl!==""?(t.openBlock(),t.createElementBlock("img",{key:0,class:"ecan-image",style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,fu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const $l=Ae(ve(ja,[["render",uu],["__scopeId","data-v-47ea6e7c"]])),Wa={...Re,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ga=Te(Wa),hu=t.defineComponent({name:"EcanIframe",props:{...Ga},setup(e){const o=Ie(e),{contextRequestUrl:n}=t.inject(ze,{contextRequestUrl:""}),a=t.computed(()=>{let i=_e(e.link);if(e.linkType==="erd"&&i!=null){let r=t.unref(n);r[r.length-1]==="/"?r+="erdReport":r+="/erdReport",i=`${W0||r}?_t=0&uid=${i}`}return i});return{style:o,myLink:a}}}),A1="",gu=["src"];function mu(e,o,n,a,i,r){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,gu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Yl=Ae(ve(hu,[["render",mu],["__scopeId","data-v-19bc100c"]])),Ua={...Re,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},$a=Te(Ua),Kl=["click","refreshData","resetRecord","exportTableData"],yu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1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ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",Ya=t.defineComponent({name:"EcanTable",components:{Skeleton:Wt,AButton:he.Button,AInput:he.Input,ACheckboxGroup:he.CheckboxGroup,ATable:he.Table,ATableSummary:he.TableSummary,ATableSummaryRow:he.TableSummaryRow,ATableSummaryCell:he.TableSummaryCell},props:{...$a},setup(e,{expose:o}){const n=t.ref(!1),a=t.computed(()=>{const W=Oe.cloneDeep(e.columns);return e.isUseSeq&&W.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&W.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),W}),i=t.ref(),r=t.ref(!1),s=Ie(e),l=t.ref([]),d=t.computed(()=>e.scrollX),c=t.ref(0),f=()=>{let W=0;switch(e.size){case"small":W=50;break;case"middle":W=53;break;default:W=65;break}return W};t.watchEffect(()=>{var W;(W=l.value)!=null&&W.length&&e.height&&t.nextTick(()=>{let Y=parseFloat(e.height);const Q=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),re=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),se=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let le=0;if(re&&(Y-=(re==null?void 0:re.clientHeight)||0),se&&e.isSummaryFixed&&(le=(se==null?void 0:se.clientHeight)||0,Y-=le),e.paginationShow){let oe=0;oe=f(),oe&&(Y-=oe)}(Q==null?void 0:Q.clientHeight)>Y?c.value=Y:c.value=0,t.nextTick(()=>{if(le){const oe=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),Ce=(oe==null?void 0:oe.clientHeight)||0;le!==Ce&&t.unref(c)&&(c.value=Y+le-Ce)}})})});const x=t.ref([]),u=t.ref([]),m=t.ref([]),y=t.ref([]),h=t.ref(0),A=t.ref(1),I=t.ref(e.paginationPageSize||10),v=t.reactive([]),S=(W,Y)=>{let Q="";return W.forEach((re,se)=>{const{value:le,rule:oe}=re;re.conditions?Q+=`(${S(re.conditions,re.join)})`:le&&oe&&(Q+=`value ${oe} '${le}'`),Q+=`${se===W.length-1?"":Y?" "+Y+" ":""}`}),Q},C=(W=[])=>{var Y,Q;if(Array.isArray(W)&&W.length>0){let re=W.length;const se=e.columnsFixedNum;if(e.dataType==="indicator"&&((Y=t.unref(a))!=null&&Y.length)){const{graphicConfig:{indicators:le=[]}}=e;W.forEach((oe,Ce)=>{if(t.unref(a)[Ce])for(const Ve in t.unref(a)[Ce])["dataIndex","title"].includes(Ve)||(oe[Ve]=t.unref(a)[Ce][Ve]);const Be=le.find(Ve=>Ve.label===oe.title),{showLabel:Ee=""}=Be||{};Ee&&(oe.title=Ee)})}for(let le=re-1;le>=0;le--)(Q=W[le])!=null&&Q.isHidden&&W.splice(le,1);re=W.length;for(let le=0;le<re;le++){const oe=W[le];if(le<se?oe.fixed="left":oe.fixed=!1,e.isSortByFront&&oe.sorter){const vt=oe.dataIndex;oe.sorter=(qt,In)=>qt[vt]-In[vt]}const{cellAlign:Ce="center",cellColor:Be,dataIndex:Ee,title:Ve,tableFilter:ot,headerCellAlign:kt,headerCellColor:Ot,overflow:Ze,conditions:at}=oe;ot&&(v.push(Ee),oe.filterOptionsInputValue="",oe.filterCheckboxGroupValue=[],oe.customFilterDropdown=!0,oe.onFilter=(vt,qt)=>qt[Ee].toString().toLowerCase().includes(vt.toLowerCase())),at&&(oe.conditionCode=S(at)),oe.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:kt||"center",color:Ot||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),oe.customCell=(vt,qt)=>({style:{textAlign:Ce,color:Be||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(K)===qt&&e.clickHighlight},onClick:V("click",()=>{const In=e.id,Yu=z(In);vt={dataIndex:Ee,title:Ve,...vt},q(In,{...Yu,type:e.type,RECORD:vt})})}),Ze==="ellipsis"?oe.ellipsis=!0:oe.ellipsis=!1,Array.isArray(oe.children)&&C(oe.children)}}},B=(W=[])=>{var Q;let Y=Oe.cloneDeep(W);return(Q=t.unref(y))!=null&&Q.length&&(Y=Oe.cloneDeep(t.unref(y))),e.isUseSeq&&Y.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Y.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),C(Y),Y};t.watch(I,()=>{A.value=1,G(!1)}),t.watch(i,W=>{r.value=!!W}),t.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{x.value=B(Oe.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([W,Y])=>{Y==="static"&&(u.value=W)},{immediate:!0});const g=t.ref({}),R=W=>{if(Array.isArray(W)){const Y=W.length,Q=v,re=Q.length,se={};for(let oe=0;oe<Y;oe++){const Ce=W[oe];for(let Be=0;Be<re;Be++){const Ee=Q[Be];if(se[Ee])se[Ee].add(Ce[Ee]);else{const Ve=new Set;Ve.add(Ce[Ee]),se[Ee]=Ve}}}const le={};for(const oe in se)if(Object.prototype.hasOwnProperty.call(se,oe)){const Ce=se[oe],Be=Array.from(Ce);le[oe]=Be.map(Ee=>({label:Ee,value:Ee}))}g.value=le}};t.watch(()=>[e.isReverse,x.value,u.value],()=>{const W=t.unref(x),Y=t.unref(u);if(R(Y),e.isReverse){const{columns:Q,dataSource:re}=p(Oe.cloneDeep(W),Oe.cloneDeep(Y));m.value=Q,l.value=re}else m.value=W,l.value=Y},{immediate:!0});const p=(W,Y)=>{const Q=W[0],re=[{title:Q.title,dataIndex:"col0",key:"col0",align:"center"}];for(let le=0;le<Y.length;le++){const oe=Y[le],Ce="col"+(le+1);re.push({title:oe[Q.dataIndex],dataIndex:Ce,key:Ce,align:"center"})}const se=[];for(let le=1;le<W.length;le++){const oe=W[le],Ce={col0:oe.title};for(let Be=0;Be<Y.length;Be++){const Ee=Y[Be];Ce[`col${Be+1}`]=Ee[oe.dataIndex]}se.push(Ce)}return{columns:re,dataSource:se}},D=t.ref(""),w=W=>{var re;const{rows:Y=[],total:Q=0}=((re=W==null?void 0:W.data)==null?void 0:re.data)||{};if(h.value=Q,Array.isArray(Y)&&(u.value=Y),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:se=[]}=e,le=se.find(oe=>oe.key==="dataSqlId");if((le==null?void 0:le.value)==="xt_jxzebg"){const oe=Y.filter(Ce=>!Ce.绩效总额).map(Ce=>Ce.ORG_NAME);oe!=null&&oe.length&&t.nextTick(()=>{he.notification.warning({message:"提示",description:`当前时段${oe.join("、")}绩效数据为空`,duration:3})})}}},L=je(e,w),M=async(W=!0,Y={})=>{try{W&&(n.value=!0),t.unref(D)&&(Y.orderCondition=t.unref(D)),e.paginationShow&&(Y={pageNum:t.unref(A),pageSize:t.unref(I)||"10",layer:"1",...Y});const Q=await L(Y);w(Q)}catch(Q){console.error(Q)}finally{n.value=!1}},k=({current:W},Y,Q)=>{if(A.value=W,Q&&Object.keys(Q).length>0){const{field:re,order:se}=Q,oe={ascend:"asc",descend:"desc"}[se];re!=null&&oe!=null&&oe?D.value=re+" "+oe:oe||(D.value="")}e.isSortByFront||G(!1)},O=t.computed(()=>{const W=e.simple,Y=[e.paginationPosition],Q={};return e.isShowTotal&&(Q.showTotal=re=>`共 ${re} 条数据`),e.paginationShow&&{simple:W,position:Y,total:t.unref(h),current:t.unref(A),pageSize:t.unref(I)||"10",showSizeChanger:!1,size:"large",...Q}}),T=W=>+W==1?"是":+W==0?"否":W,F=(W,Y)=>{const{format:Q,retentiondigit:re,customFormatter:se,defaultVal:le}=Y;let oe="";if(Q==null||Q==="")oe=W;else{const Ce={money:Mo,percentage:Dn,contrast:Dn,boolean:T,decimals:Jc,custom:Or};Ce[Q]||(oe=""),Q==="decimals"?oe=Ce[Q](W,re)||"":Q==="custom"?oe=Ce[Q](W,se)||"":oe=Ce[Q](W)||""}return oe||(oe=le),oe},b=W=>W==="contrast"?"upDown":"",E=W=>{const{text:Y,format:Q,declineColor:re="#39cf93",increaseColor:se="#ff512e"}=W;if(Q==="contrast"){const le={fontSize:e.fontSize},oe=parseFloat(Y+"");return oe>=0?le.color=se:oe<0&&(le.color=re),le}else return{}},_=t.computed(()=>{const{fontSize:W}=e;return{width:W,height:W,textIndent:`-${parseFloat(W)*2}px`,overflow:"hidden"}}),P=W=>{const{text:Y,declineColor:Q="#39cf93",increaseColor:re="#ff512e"}=W,{fontSize:se}=e,le=parseFloat(Y+""),oe={width:se,verticalAlign:"unset"};return le>=0?oe.filter=`drop-shadow(${re||"#ff512e"} ${se} -1px)`:le<0&&(oe.filter=`drop-shadow(${Q||"#39cf93"} ${se} -1px)`),oe},N=W=>{const Y=parseFloat(W+"");if(Y>=0)return jo;if(Y<0)return Wo},V=Ne(e),{getGlobalModel:z,setGlobalModel:q}=t.inject(Le,{getGlobalModel:W=>{},setGlobalModel:(W,Y)=>{}});q(e.id,{type:e.type,RECORD:""});const X=(W=[],Y=[])=>{const Q=W.map(re=>({title:re,dataIndex:re,key:re}));y.value=Oe.cloneDeep(Q),x.value=B(Q),u.value=Y},U=W=>{var Y,Q,re,se;X((Q=(Y=W==null?void 0:W.data)==null?void 0:Y.data)==null?void 0:Q.columns,(se=(re=W==null?void 0:W.data)==null?void 0:re.data)==null?void 0:se.rows)},j=Xe(e,U),H=async(W=!0)=>{try{W&&(n.value=!0);const Y=t.unref(D).split(" "),Q={};e.isSortByFront||(Q.sort={order:Y[1],field:Y[0]});const re=await j(Q);U(re)}catch(Y){console.error(Y)}finally{n.value=!1}},K=t.ref(-1),te=(W,Y)=>({onClick:V("rowClick",()=>{const Q=e.id,re=z(Q);q(Q,{...re,type:e.type,RECORD:W}),K.value=Y})}),{loadedData:ce}=t.inject(Et,{loadedData:{}}),ye=t.ref(!1);t.watch(ce,W=>{if(e.dataType==="indicator"){const Y=dn(e.graphicConfig);Y!=null&&Y.length&&(!t.unref(ye)&&ht(e.graphicConfig,W)?(ye.value=!0,G()):ht(e.graphicConfig,W)||(ye.value=!1))}},{deep:!0});const G=(W=!0)=>{switch(e.dataType){case"request":M(W);break;case"indicator":ht(e.graphicConfig,t.unref(ce))&&H(W);break}},J=()=>{const W=e.id,Y=z(W);q(W,{...Y,type:e.type,RECORD:""})},ee=t.computed(()=>{const W=t.unref(m);let Y=0;const{subTotalColumn:Q,subTotalName:re}=e;Q&&(Y=W.findIndex(Be=>Be.dataIndex===Q),Y<0&&(Y=0));const se=[];let le=0;for(let Be=0;Be<W.length;Be++){const Ee=W[Be],{isCalcTotal:Ve}=Ee;Be===Y?se.push({...Ee,total:re}):Ve?(se.push({...Ee,index:Be,total:0}),le++):se.push({...Ee})}if(le===0)return[];const oe=t.unref(l),Ce=ne(se);for(let Be=0;Be<Ce.length;Be++){const Ee=Ce[Be];let Ve=0;const{isCalcTotal:ot,dataIndex:kt}=Ee;if(ot===!0){for(let Ot=0;Ot<oe.length;Ot++){const at=+oe[Ot][kt];isNaN(at)||(Ve=new fs.Big(Ve).add(at).toNumber())}Ee.total=Ve}}return Ce});function ne(W){var Q;const Y=[];for(const re of W)(Q=re.children)!=null&&Q.length?Y.push(...ne(re.children)):Y.push(re);return Y}const{setRequest:ae}=t.inject(He,{setRequest:W=>{}});typeof ae=="function"&&ae({id:e.id,requestFn:G,sortNum:e.requestSort}),o({refreshData:G});const ie=(W="",Y)=>_e(W,Y),ue=W=>{if(W!=="event")return{self:"_self",blank:"_blank"}[W]},Se=(W,Y="")=>{W==="event"&&window.parent.postMessage({type:"openPage",url:Y},"*")},ke=(W,Y)=>{W(Y.filterCheckboxGroupValue)},qe=(W,Y)=>{W({confirm:!0}),Y.filterOptionsInputValue="",Y.filterCheckboxGroupValue=[]},We=()=>{},de=W=>{const Y=W.dataIndex;if(typeof Y=="string"){let Q=t.unref(g)[Y];const re=t.unref(W.filterOptionsInputValue).trim();return Array.isArray(Q)?(Q=Q.filter(se=>typeof se.label=="string"?se.label.toLowerCase().includes(re.toLowerCase()):!0),Q):[]}return[]},xe=async()=>{var Ee,Ve;const W="EXPORT_KEY";he.message.loading({key:W,content:"正在导出...",duration:0});let Y=[];if(e.dataType==="static")Y=e.data;else if(e.dataType==="request"){const ot={layer:"1"};t.unref(D)&&(ot.orderCondition=t.unref(D));const kt=await L(ot);Y=((Ve=(Ee=kt==null?void 0:kt.data)==null?void 0:Ee.data)==null?void 0:Ve.rows)||{}}const Q=t.unref(m),re=[],se=[];Q==null||Q.forEach(ot=>{re.push(ot.dataIndex),se.push(ot.title)});const le=Y.map(ot=>Oe.pick(ot,re)),oe=on.utils.book_new(),Ce=on.utils.aoa_to_sheet([se]),Be=on.utils.sheet_add_json(Ce,le,{skipHeader:!0,origin:"A2"});on.utils.book_append_sheet(oe,Be,"sheet"),on.writeFile(oe,"表格数据.xlsx"),he.message.success({key:W,content:"导出成功"})},fe=(W,Y=2)=>{const Q=+W*100;return isNaN(Q)||Q<=0?0:Q>=100?100:Q.toFixed(Y)};Fe(e,{resetRecord:J,refreshData:G,exportTableData:xe});const Ge=(W,Y)=>{let Q=null;return e.stripedShow&&(Q=Y%2===1?"table-striped":null),Q},ct=t.computed(()=>{let W=0;const{height:Y,isPageBottom:Q}=e;return Q&&Y&&(W=parseFloat(Y)-f()),W?W+"px":"100%"}),tt=t.computed(()=>{let W="#071655";return e.headerBackgroundColor&&(W="transparent"),W}),dt=t.computed(()=>{let W="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(W="transparent"),W}),Ye=t.computed(()=>parseFloat(e.fontSize)+16),et=t.computed(()=>{let W="";const{paginationColor:Y,paginationBgColor:Q,activePaginationColor:re,activePaginationBgColor:se,hoverBackgroundColor:le}=e;return Y&&(W+="p-color "),Q&&(W+="p-bg-color "),re&&(W+="active-p-color "),se&&(W+="active-p-bg-color "),le&&(W+="hover-bg-color "),W}),$e=(W,Y)=>{const{conditionCode:Q}=W;return hn(Q,{value:Y})};return{x:d,y:c,style:s,customRow:te,pagination:O,formatFn:F,contrastClass:b,tableChange:k,summaryList:ee,loading:n,onTouchHrefEvent:Se,handleHref:ie,handleHrefTarget:ue,useRowIndex:K,tableColumns:m,tableDataSource:l,useFilterOptions:de,useSetSelectedKeys:ke,onResetFilter:qe,onSearchFilterOptions:We,exportTableData:xe,handleProgressText:fe,pageSizeVisible:r,pageSize:I,tableRef:i,rowClassName:Ge,tableHeight:ct,tableHeaderBgColor:tt,tableBodyBgColor:dt,getChgStyle:E,chgBoxStyle:_,getChgBoxImgStyle:P,getChgBoxImgSrc:N,seqIcon1:yu,seqIcon2:xu,seqIcon3:pu,iconSize:Ye,containerClass:et,getCellStyle:(W,Y)=>{const{overflow:Q,conditionCode:re,attribute:se}=W,le={};return Q==="ellipsis"&&(le.overflow="hidden",le.textOverflow="ellipsis"),re&&(se!=null&&se.color)&&$e(W,Y)&&(le.color=se.color),se!=null&&se.icon&&(W==null?void 0:W.cellAlign)==="right"&&(le.display="flex",le.alignItems="center",le.justifyContent="flex-end"),le},isMatchCondition:$e,getAttrImgSrc:W=>{const{attribute:Y}=W;let Q="";return Y!=null&&Y.icon&&(Q=pt(Y.icon)),Q},getAttrImgStyle:W=>{let Y={};return(W==null?void 0:W.cellAlign)==="right"?Y={marginRight:"5px"}:Y={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(e.fontSize)+6+"px",...Y}},getCellText:(W,Y)=>W||W===0?W:Y==null?void 0:Y.defaultVal}}}),Zl=()=>{t.useCssVars(e=>({e4452790:e.stripedColor,cfc76e22:e.tableHeaderBgColor,"6d62afba":e.tableBodyBgColor,"8675ef50":e.paginationBgColor,c1652fc6:e.paginationColor,b696821c:e.activePaginationBgColor,"15e40592":e.activePaginationColor,"271e1645":e.hoverBackgroundColor}))},Ql=Ya.setup;Ya.setup=Ql?(e,o)=>(Zl(),Ql(e,o)):Zl;const T1="",B1="",bu=e=>(t.pushScopeId("data-v-a207df51"),e=e(),t.popScopeId(),e),vu=["id"],Su={key:0,class:"table-tool"},Cu=t.createTextVNode("导出数据"),wu=t.createTextVNode(" 搜索 "),Au=t.createTextVNode(" 重置 "),ku=["src","width","height"],Tu=["src","width","height"],Bu=["src","width","height"],Eu={key:1},Du={key:1,class:"action-list"},Iu=["href","target","onClick"],Ru={key:2,class:"progress-cell"},Lu=["src"],Nu=["title"],_u=["title"],Ou=["src"],Fu=["title"],Mu=["src"],zu=["src"],Pu={class:"ant-pagination-options-quick-jumper"},qu=bu(()=>t.createElementVNode("span",null,"条 / 页",-1));function Vu(e,o,n,a,i,r){const s=t.resolveComponent("a-button"),l=t.resolveComponent("a-input"),d=t.resolveComponent("a-checkbox-group"),c=t.resolveComponent("a-table-summary-cell"),f=t.resolveComponent("a-table-summary-row"),x=t.resolveComponent("a-table-summary"),u=t.resolveComponent("a-table"),m=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:t.normalizeStyle(e.style)},[t.createVNode(m,{loading:e.loading},{default:t.withCtx(()=>{var y;return[e.isUseExport?(t.openBlock(),t.createElementBlock("div",Su,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[Cu]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(u,{ref:"tableRef",class:"table",style:t.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:t.withCtx(({column:h,selectedKeys:A,setSelectedKeys:I,confirm:v,clearFilters:S})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(l,{value:h.filterOptionsInputValue,"onUpdate:value":C=>h.filterOptionsInputValue=C,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:h.filterCheckboxGroupValue,"onUpdate:value":C=>h.filterCheckboxGroupValue=C,class:"filter-checkbox",options:e.useFilterOptions(h),onChange:C=>e.useSetSelectedKeys(I,h)},null,8,["value","onUpdate:value","options","onChange"]),t.createElementVNode("div",null,[t.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>v()},{default:t.withCtx(()=>[wu]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(C=>e.onResetFilter(S,h),["stop"])},{default:t.withCtx(()=>[Au]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:h,index:A,text:I,record:v})=>{var S,C,B,g,R,p;return[h.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[A===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,ku)):A===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Tu)):A>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,Bu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.fontSize})},t.toDisplayString(A+1),5)],64)):(t.openBlock(),t.createElementBlock("span",Eu,t.toDisplayString(A+1),1))],64)):h.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",Du,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(D,w)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:w},[t.createElementVNode("a",{href:e.handleHref(D.href,v),target:e.handleHrefTarget(D.target),style:t.normalizeStyle({color:D.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:L=>e.onTouchHrefEvent(D.target,e.handleHref(D.href,v))},t.toDisplayString(D.title),13,Iu)]))),128))])):h.format==="progress"?(t.openBlock(),t.createElementBlock("div",Ru,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:h.progressColor||"#1890ff",height:h.progressWidth||"18px",width:`${e.handleProgressText(I,h.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(I)<100?h.progressTextColor||"#333":h.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(I,h.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(h,I)})},[e.isMatchCondition(h,I)&&(h==null?void 0:h.cellAlign)==="right"&&((S=h==null?void 0:h.attribute)!=null&&S.icon)?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.getAttrImgStyle(h)),src:e.getAttrImgSrc(h)},null,12,Lu)):t.createCommentVNode("",!0),h.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((C=h==null?void 0:h.customFormatter)==null?void 0:C.split("{value}")[0])||""},t.toDisplayString(((B=h==null?void 0:h.customFormatter)==null?void 0:B.split("{value}")[0])||""),9,Nu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(h.format)]),style:t.normalizeStyle(e.getChgStyle({...h,text:I})),title:h.format!=null?e.formatFn(I,h):I},[h.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...h,text:I})),src:e.getChgBoxImgSrc(I)},null,12,Ou)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(h.format!=null?e.formatFn(I,h):e.getCellText(I,h)),1)],14,_u),h.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:2,title:((g=h==null?void 0:h.customFormatter)==null?void 0:g.split("{value}")[1])||""},t.toDisplayString(((R=h==null?void 0:h.customFormatter)==null?void 0:R.split("{value}")[1])||""),9,Fu)):t.createCommentVNode("",!0),e.isMatchCondition(h,I)&&(h==null?void 0:h.cellAlign)!=="right"&&((p=h==null?void 0:h.attribute)!=null&&p.icon)?(t.openBlock(),t.createElementBlock("img",{key:3,style:t.normalizeStyle(e.getAttrImgStyle(h)),src:e.getAttrImgSrc(h)},null,12,Mu)):t.createCommentVNode("",!0)],4))]}),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(x,{key:0,fixed:e.isSummaryFixed},{default:t.withCtx(()=>[t.createVNode(f,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(h,A)=>(t.openBlock(),t.createBlock(c,{key:A,index:A,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:h.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(h.format)]),style:t.normalizeStyle({...e.getChgStyle({...h,text:h.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[h.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...h,text:h.total})),src:e.getChgBoxImgSrc(h.total)},null,12,zu)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString((h.format!=null||h.format!=="")&&e.formatFn(h.total,h)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):t.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(y=e.tableDataSource)!=null&&y.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[t.createElementVNode("div",Pu,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=h=>e.pageSize=h)},null,512),[[t.vModelText,e.pageSize]]),qu])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,vu)}const Jl=Ae(ve(Ya,[["render",Vu],["__scopeId","data-v-a207df51"]])),Ka={...Re,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff"},Za=Te(Ka),Xl=["click"];it.use([Ft.CanvasRenderer,Ct.MapChart,Ct.ScatterChart,De.VisualMapComponent,De.TooltipComponent,De.GraphicComponent]);const Hu=t.defineComponent({name:"EcanMap",components:{Echarts:Tt},props:{...Za},setup(e){const o=je({...e.tooltipRequestData,requestHeaders:{}}),n=t.ref(),a=t.ref(""),i=t.ref(""),r=Ie(e,["backgroundImage"]),s=t.ref(),l=t.computed(()=>pt(e.geoBackgroundImage)),d=t.computed(()=>pt(e.backgroundImage)),c=t.computed(()=>e.geoBackgroundImage?{image:t.unref(s),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),f=t.computed(()=>{const O=e.symbolImage;return e.symbolImage?"image://"+pt(O):"circle"}),x=O=>{let T=e.tooltipFormatter;const F=T.match(/\{(.+?)\}/g);if(F==null||F.length===0)return T;for(let b=0;b<F.length;b++){const E=F[b];let _=E.slice(1,-1).trim();const P=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,N=_.match(P);for(let V=0;V<N.length;V++){const z=N[V],q=O[z];q!=null&&(_=_.replace(z,q))}T=T.replace(E,_)}return T.split(`
|
|
120
|
-
`)},u=t.ref(!1),m=t.ref("");let y=new AbortController;const h=(O,T)=>{const F=y.signal;u.value=!0,a.value=O,o({name:O,signal:F}).then(b=>{var E,_;if(b){const P=((_=(E=b==null?void 0:b.data)==null?void 0:E.data)==null?void 0:_.rows)||[];let N="";for(const V of P){const z=x(V)||[];if(z!=null&&z.length)for(const q of z)N+=`<div style="word-break: break-all;white-space: normal;">${q}</div>`}N=`<div style="max-width:200px;">${N}</div>`,i.value=N,T(t.unref(m),N)}else F.aborted?i.value="Loading":i.value=O,T(t.unref(m),i.value);u.value=!1})},A=t.computed(()=>{const O=e.geoCenter;let T;return typeof O=="string"&&O!==""&&(T=O.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(d)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:T,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(F,b,E)=>{m.value=b;const{name:_=""}=F,{requestUrl:P}=e.tooltipRequestData;if(!P)return _;if(t.unref(u))t.unref(a)!==_&&(y.abort(),y=new AbortController);else{if(t.unref(a)===_)return t.unref(i);h(_,E)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(c),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:t.unref(f),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),I=t.ref(!1),v=async()=>{var F;I.value=!1;const O=e.mapJson,T=`map-${e.id}`;if(O!=null&&O.path){const b=await St(((F=window==null?void 0:window.config)==null?void 0:F.uploadPath)+O.path);it.registerMap(T,(b==null?void 0:b.data)||{})}else it.registerMap(T,{});I.value=!0};t.watch(()=>e.mapJson,()=>{v()},{immediate:!0,deep:!0});const S=async O=>{var b,E;const T=((E=(b=O==null?void 0:O.data)==null?void 0:b.data)==null?void 0:E.rows)||{},F=`map-${e.id}`;if(T!=null&&T.path){const _=await St(T.path);it.registerMap(F,(_==null?void 0:_.data)||{})}else it.registerMap(F,{})},C=je(e,S),B=async()=>{if(e.dataType==="request"){I.value=!1;try{const O=await C();S(O)}catch(O){console.error(O)}finally{I.value=!0}}},g=()=>{switch(e.dataType){case"request":B();break}},{getGlobalModel:R,setGlobalModel:p}=t.inject(Le,{getGlobalModel:O=>{},setGlobalModel:(O,T)=>{}}),w=Ne(e)("click",()=>{const O=R(e.id);p(e.id,{...O,RECORD:t.unref(n)})});Fe(e,{refreshData:g});const{setRequest:L}=t.inject(He,{setRequest:O=>{}});return typeof L=="function"&&L({id:e.id,requestFn:g,sortNum:e.requestSort}),{option:A,style:r,isLoadedData:I,geoBackgroundImageRef:s,myGeoBackgroundImage:l,customClick:()=>{t.unref(n)&&w()},onMouseOver:(O={})=>{O.componentType==="geo"&&O.region?n.value=O.region:n.value=null}}}}),D1="",ju=["src"];function Wu(e,o,n,a,i,r){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":e.customClick,onMouseover:e.onMouseOver},null,8,["option","onZr:click","onMouseover"])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,ju),[[t.vShow,!1]])],4)}const es=Ae(ve(Hu,[["render",Wu],["__scopeId","data-v-a049dc3f"]])),Qa={...Re,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},Ja=Te(Qa),ts=["selectChange","refreshData"],Gu=t.defineComponent({name:"EcanDataSelect",components:{ASelect:he.Select,ASelectOption:he.SelectOption},props:{...Ja},setup(e,{expose:o}){const n=Ie(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=t.ref(e.data||[]),r=t.ref(),s=t.computed({get:()=>{var O;const{mode:k}=e;return(O=t.unref(i))!=null&&O.length?r.value:k==="multiple"||k==="tags"||k==="combobox"?[]:""},set:k=>{r.value=k}}),{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c}=t.inject(Le,{getGlobalModel:k=>{},setGlobalModel:(k,O)=>{},getRecordValueByKeyName:k=>{}}),f=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:k,selectFirstOption:O,value:T}=e,F=c(T),b=f.value;if(k==="multiple"||k==="tags"||k==="combobox"){if(F)r.value=F.split(",");else if(O){const E=t.unref(i)[0];r.value=E?[E[b]]:[]}}else if(F)r.value=F;else if(O){const E=t.unref(i)[0];r.value=E?E[b]:""}},{immediate:!0});const x=(k,O)=>{const T=f.label,F=f.value;let b;const E=O[T],_=O[F];return E!=null?b=E:_!=null&&(b=_),(b==null?void 0:b.toLowerCase().indexOf(k==null?void 0:k.toLowerCase()))>=0},u=k=>{const{label:O,value:T,options:F}=e.dataFieldNames;if(F&&Array.isArray(k))if(k.some(b=>F in b)){const b={},E=[];k.forEach(_=>{b[_[F]]||(b[_[F]]=[]),b[_[F]].push({[O]:_[O],[T]:_[T]})});for(const _ in b)E.push({[O]:_,[F]:b[_]});return E}else return k;else if(!F)return k},m=t.ref(!1),y=k=>{var O,T;if(i.value=u(((T=(O=k==null?void 0:k.data)==null?void 0:O.data)==null?void 0:T.rows)||[]),e.selectFirstOption){let F=t.unref(i)[0];if(f.options){const b=F[f.options];b&&b.length&&(F=b[0])}r.value=F[f.value]}},h=je(e,y),A=async()=>{if(e.dataType==="request"){m.value=!0;try{const k=await h();y(k)}catch(k){console.error(k)}finally{m.value=!1}}},I=t.computed(()=>{let k=r.value;if(e.valueType==="label"&&t.unref(r)&&t.unref(i)){const O=f.label,T=f.value;if(e.mode==="multiple")k=t.unref(i).filter(F=>t.unref(r).includes(F[T])).map(F=>F[O]);else{const F=t.unref(i).find(b=>t.unref(r)===b[T]);F&&(k=F[O])}}return k}),v=t.ref([]),S=t.computed(()=>{const k={};if(e.mode!=="multiple"){const O=t.unref(v).find(T=>T.value===t.unref(r));O&&(k.itemCodes=O.item_codes)}return k}),C=t.computed(()=>{const{value:k,label:O}=f,T=t.unref(i).find(F=>F[k]===t.unref(s));return T?{label:T[O],value:T[k]}:{}});d(e.id,{type:e.type,value:I,...t.unref(S),recordData:t.unref(C)});const g=Ne(e)("selectChange",()=>{const k=e.id,O=l(k);d(k,{...O,...t.unref(S),RECORD:I,recordData:t.unref(C)})}),R=(k=[])=>{if(i.value=u(k),e.selectFirstOption){let O=t.unref(i)[0];if(f.options){const T=O[f.options];T&&T.length&&(O=T[0])}r.value=O[f.value]}d(e.id,{type:e.type,value:I,...t.unref(S),recordData:t.unref(C)})},p=k=>{var b;const{data:O}=(k==null?void 0:k.data)||{},T=f.label,F=f.value;if(O){const E=((b=k==null?void 0:k.data)==null?void 0:b.data)??[];v.value=E;const _=E.map(V=>({[T]:V.label,[F]:V.value})),{id:P}=e,N=l(P);d(P,{...N,...t.unref(S)}),R(_)}else R([])},D=Xe(e,p),w=async()=>{try{m.value=!0;const k=await D();p(k)}catch(k){console.error(k)}finally{m.value=!1}},L=()=>{switch(e.dataType){case"indicator":{w();break}case"request":A();break}};Fe(e,{selectChange:g,refreshData:L});const{setRequest:M}=t.inject(He,{setRequest:({id:k,sortNum:O,requestFn:T})=>{}});return typeof M=="function"&&M({id:e.id,requestFn:L,sortNum:e.requestSort}),o({refreshData:L}),{style:n,getPopupContainer:a,myValue:r,selectChange:g,options:i,filterOption:x,loading:m,resultValue:s}}}),R1="",L1="";function Uu(e,o,n,a,i,r){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const ns=Ae(ve(Gu,[["render",Uu],["__scopeId","data-v-703a9095"]])),os=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:Dl,EcanBorder:zl,EcanButton:ul,EcanCheckbox:gl,EcanCirculate:jl,EcanComboGraph:_l,EcanCounter:Xr,EcanCustomGraph:Ll,EcanDataSelect:ns,EcanDatePicker:il,EcanIframe:Yl,EcanImage:$l,EcanInput:tl,EcanLine:Bl,EcanList:Kr,EcanMap:es,EcanModal:Nt,EcanPageConfig:Pr,EcanPie:kl,EcanProportion:Qr,EcanProviderConfig:qr,EcanRadar:Fl,EcanRadio:vl,EcanRangePicker:dl,EcanScatter:Rl,EcanScrollText:Gr,EcanSelect:yl,EcanTable:Jl,EcanTabs:ql,EcanText:Wr,EcanTimeDisplay:$r,EcanTreeSelect:pl,barComponentProps:Ta,barEvents:El,barProps:ka,borderComponentProps:Fa,borderEvents:Ml,borderProps:Oa,buttonComponentProps:ca,buttonEvents:fl,buttonProps:sa,checkboxComponentProps:fa,checkboxEvents:hl,checkboxProps:da,circulateComponentProps:qa,circulateEvents:Vl,circulateProps:Pa,comboGraphComponentProps:La,comboGraphEvents:Nl,comboGraphProps:Ra,counterComponentProps:Xo,counterEvents:Jr,counterProps:Jo,customGraphComponentProps:Ia,customGraphProps:Da,dataSelectComponentProps:Ja,dataSelectEvents:ts,dataSelectProps:Qa,datePickerComponentProps:oa,datePickerEvents:nl,datePickerProps:na,iframeComponentProps:Ga,iframeProps:Wa,imageComponentProps:Ha,imageEvents:Wl,imageProps:Va,inputComponentProps:ta,inputEvents:el,inputProps:ea,lineComponentProps:Aa,lineEvents:Tl,lineProps:wa,listComponentProps:Ko,listEvents:Yr,listProps:Yo,mapComponentProps:Za,mapEvents:Xl,mapProps:Ka,modalComponentProps:Sa,modalEvents:Cl,modalProps:va,pageConfig:Gn,pageConfigComponentProps:Un,pieComponentProps:ba,pieEvents:Sl,pieProps:pa,proportionComponentProps:Qo,proportionEvents:Zr,proportionProps:Zo,providerConfig:Po,providerConfigComponentProps:qo,radarComponentProps:_a,radarEvents:Ol,radarProps:Na,radioComponentProps:xa,radioEvents:bl,radioProps:ya,rangePickerComponentProps:ra,rangePickerEvents:rl,rangePickerProps:ia,scatterComponentProps:Ea,scatterEvents:Il,scatterProps:Ba,selectComponentProps:ha,selectEvents:ml,selectProps:ua,tableComponentProps:$a,tableEvents:Kl,tableProps:Ua,tabsComponentProps:za,tabsEvents:Pl,tabsProps:Ma,textComponentProps:Ho,textEvents:Vr,textProps:Vo,timeDisplayComponentProps:$o,timeDisplayEvents:Ur,timeDisplayProps:Uo,treeSelectComponentProps:ma,treeSelectEvents:xl,treeSelectProps:ga},Symbol.toStringTag,{value:"Module"})),$u={install:e=>{Object.keys(os).forEach(o=>{const n=os[o];n.install&&e.use(n)})}};$.EcanBar=Dl,$.EcanBorder=zl,$.EcanButton=ul,$.EcanCheckbox=gl,$.EcanCirculate=jl,$.EcanComboGraph=_l,$.EcanCounter=Xr,$.EcanCustomGraph=Ll,$.EcanDataSelect=ns,$.EcanDatePicker=il,$.EcanIframe=Yl,$.EcanImage=$l,$.EcanInput=tl,$.EcanLine=Bl,$.EcanList=Kr,$.EcanMap=es,$.EcanModal=Nt,$.EcanPageConfig=Pr,$.EcanPie=kl,$.EcanProportion=Qr,$.EcanProviderConfig=qr,$.EcanRadar=Fl,$.EcanRadio=vl,$.EcanRangePicker=dl,$.EcanScatter=Rl,$.EcanScrollText=Gr,$.EcanSelect=yl,$.EcanTable=Jl,$.EcanTabs=ql,$.EcanText=Wr,$.EcanTimeDisplay=$r,$.EcanTreeSelect=pl,$.barComponentProps=Ta,$.barEvents=El,$.barProps=ka,$.borderComponentProps=Fa,$.borderEvents=Ml,$.borderProps=Oa,$.buttonComponentProps=ca,$.buttonEvents=fl,$.buttonProps=sa,$.checkboxComponentProps=fa,$.checkboxEvents=hl,$.checkboxProps=da,$.circulateComponentProps=qa,$.circulateEvents=Vl,$.circulateProps=Pa,$.comboGraphComponentProps=La,$.comboGraphEvents=Nl,$.comboGraphProps=Ra,$.compatibleMobileList=Al,$.counterComponentProps=Xo,$.counterEvents=Jr,$.counterProps=Jo,$.customGraphComponentProps=Ia,$.customGraphProps=Da,$.dataSelectComponentProps=Ja,$.dataSelectEvents=ts,$.dataSelectProps=Qa,$.datePickerComponentProps=oa,$.datePickerEvents=nl,$.datePickerProps=na,$.default=$u,$.handleScrollCombinations=wl,$.iframeComponentProps=Ga,$.iframeProps=Wa,$.imageComponentProps=Ha,$.imageEvents=Wl,$.imageProps=Va,$.inputComponentProps=ta,$.inputEvents=el,$.inputProps=ea,$.lineComponentProps=Aa,$.lineEvents=Tl,$.lineProps=wa,$.listComponentProps=Ko,$.listEvents=Yr,$.listProps=Yo,$.mapComponentProps=Za,$.mapEvents=Xl,$.mapProps=Ka,$.modalComponentProps=Sa,$.modalEvents=Cl,$.modalProps=va,$.moveToComponentList=Ca,$.pageConfig=Gn,$.pageConfigComponentProps=Un,$.pieComponentProps=ba,$.pieEvents=Sl,$.pieProps=pa,$.proportionComponentProps=Qo,$.proportionEvents=Zr,$.proportionProps=Zo,$.providerConfig=Po,$.providerConfigComponentProps=qo,$.radarComponentProps=_a,$.radarEvents=Ol,$.radarProps=Na,$.radioComponentProps=xa,$.radioEvents=bl,$.radioProps=ya,$.rangePickerComponentProps=ra,$.rangePickerEvents=rl,$.rangePickerProps=ia,$.scatterComponentProps=Ea,$.scatterEvents=Il,$.scatterProps=Ba,$.selectComponentProps=ha,$.selectEvents=ml,$.selectProps=ua,$.tableComponentProps=$a,$.tableEvents=Kl,$.tableProps=Ua,$.tabsComponentProps=za,$.tabsEvents=Pl,$.tabsProps=Ma,$.textComponentProps=Ho,$.textEvents=Vr,$.textProps=Vo,$.timeDisplayComponentProps=$o,$.timeDisplayEvents=Ur,$.timeDisplayProps=Uo,$.treeSelectComponentProps=ma,$.treeSelectEvents=xl,$.treeSelectProps=ga,Object.defineProperties($,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
119
|
+
</span>`)}else e.format==="percent"?(H=+H,isNaN(H)||(H=(H*100).toFixed(2),E=E.replace(q,`<span class="${N}" style="color:${A(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}%</span>`))):e.format==="money"?(H=+H,isNaN(H)||(H=Mo(H),E=E.replace(q,`<span class="${N}" style="color:${A(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}</span>`))):K==="thousands"?(H=+H,isNaN(H)||(H=Qc(H),E=E.replace(q,`<span class="${N}" style="color:${A(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}</span>`))):E=E.replace(q,`<span class="${N}" style="color:${A(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}</span>`)}}if(P||(P=`<span class="${N}" style="color: ${A(E)};${t.unref(m)}">${E}</span>`),e.unitShow&&e.unitText){const{unitTop:z,unitLeft:q}=e;let X="position:relative;";z&&(X+=`top:${z};`),q&&(X+=`margin-left:${q};`),P+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${X};${t.unref(m)}'>${e.unitText}</span>`}return e.exceedConfig&&(P=`<span class="${N}" style="display: inline-block;color: ${A(P)};">${P}</span>`),P.includes("span")||(P=`<span class="${N}" style="color: ${A(P)};">${P}</span>`),P});function A(T){let F="",b=!1;const{targetValue:E,targetShow:_,notExpectColor:P}=e;if(_){switch(e.targetRule){case"equal":T!==E&&(b=!0);break;case"greater":T<=E&&(b=!0);break;case"greater_equal":T<E&&(b=!0);break;case"less":T>=E&&(b=!0);break;case"less_equal":T>E&&(b=!0);break}b&&(F=P)}return F}const{pageMode:I}=t.inject(ze,{pageMode:"normal",requestList:[]}),v=je(e,T=>{var F;l(((F=T==null?void 0:T.data)==null?void 0:F.data)||{})}),S=t.ref(!1),C=async()=>{var T;try{S.value=!0;const F=await v();l(((T=F==null?void 0:F.data)==null?void 0:T.data)||{})}catch(F){console.error(F)}finally{S.value=!1}},B=T=>{const F=e.id,b=d(F);c(F,{...b,value:T||"",RECORD:T||""})},g=()=>{B("")},R=T=>{var b,E;const{data:F}=(T==null?void 0:T.data)||{};if(F){n.value=!1;const{columns:_=[],rows:P=[]}=((b=T==null?void 0:T.data)==null?void 0:b.data)??{},{graphicConfig:N}=e;let V={};if(_.length>0)if((E=N==null?void 0:N.dimensionList)!=null&&E.length){const z=_[0];z&&(P!=null&&P.length)&&(V={value:P[0][z]})}else{const z=_.find(q=>!!q);z&&(V={value:isNaN(P[z])?0:P[z]||0})}B(V==null?void 0:V.value),l(V)}else n.value=!0,B("NaN"),l({value:"NaN"})},p=Xe(e,R),D=async()=>{try{S.value=!0;const T=await p();R(T)}catch(T){console.error(T)}finally{S.value=!1,u(e.id,!0)}},w=()=>{switch(e.dataType){case"indicator":D();break;case"request":{const{openCustomRequestData:T,customRequestName:F,customRequestField:b}=e;T||T===void 0?C():x(F,E=>{E&&l({[b]:E[b]})});break}}},{setRequest:L}=t.inject(He,{setRequest:({id:T,sortNum:F,requestFn:b})=>{}});typeof L=="function"&&L({id:e.id,requestFn:w,sortNum:e.requestSort}),Fe(e,{refreshData:w,resetRecord:g}),o({refreshData:w});const M=Ne(e),k=M("click",()=>{var N;const T=document.getElementsByClassName(`ecan-text_${e.id}`);if(T!=null&&T.length&&B(T[0].innerText),setTimeout(()=>{B("")},0),!e.linkPage&&!e.href)return;const F=e.linkPage||"",b=zo(t.unref(I),F),E=e.href;let _=E||b;_=_e(_);const P=e.target;if(P)if(P!=="event"){if((N=e.transParams)!=null&&N.length){_.includes("?")?_+="&":_+="?";const V=[];for(const z of e.transParams)V.push(`${z.keyName}=${f(String(z.fieldName))}`);_+=V.join("&")}window.open(_,"_"+P)}else window.parent.postMessage({type:"openPage",url:E},"*")}),O=M("valueChange",()=>{});return t.watch(()=>h.value,(T,F)=>{T!==F&&O()}),{style:a,myText:h,loading:S,click:k,textIndent:s,vFontSize:r,gradientStyle:y}}}),Hr=()=>{t.useCssVars(e=>({"2919b577":e.vFontSize,bb85f730:e.textIndent,"36e7efc0":e.percentageSide}))},jr=Go.setup;Go.setup=jr?(e,o)=>(Hr(),jr(e,o)):Hr;const yh="",xh="",rd=["innerHTML"];function ld(e,o,n,a,i,r){const s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["ecan-text","ecan-text_"+e.id]),style:t.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,14,rd))}const Wr=Ae(ve(Go,[["render",ld],["__scopeId","data-v-1ecc1ea2"]])),sd=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),bh="",cd={class:"red"};function dd(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",cd,t.toDisplayString(e.text),1)}const Gr=Ae(ve(sd,[["render",dd],["__scopeId","data-v-4dd9c03e"]])),Uo={...Re,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},$o=Te(Uo),Ur=["timeChange"],fd=t.defineComponent({name:"EcanTimeDisplay",props:{...$o},setup(e){const o=Ie(e),n=()=>{const{format:c,operate:f}=e;let x=be();if(f){const{type:u,value:m,mode:y}=f;switch(u){case"add":x=x.add(m,y);break;case"minus":x=x.subtract(m,y)}}return x.format(c)},a=t.ref();t.watch(()=>[e.operate,e.format],()=>{a.value=n()},{immediate:!0,deep:!0}),t.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let i=null;const r=()=>{clearInterval(i),i=null},l=Ne(e)("timeChange",()=>{}),d=()=>{i&&r();let c=1e3;const{value:f,mode:x}=e.updateInterval||{};f&&(c=c*f);const u={second:1,minute:60,hour:60*60,day:24*60*60};x&&(c=c*u[x]),i=setInterval(()=>{a.value=n(),l()},c)};return Fe(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{r()}),{style:o,time:a}}}),Sh="";function ud(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const $r=Ae(ve(fd,[["render",ud],["__scopeId","data-v-b628fca2"]])),Yo={...Re,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"0px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}",itemWidth:"100%"},Ko=Te(Yo),Yr=["refreshData","click","resetRecord"],hd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlci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znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",md="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",yd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",xd=t.defineComponent({name:"EcanList",components:{Skeleton:Wt,ATooltip:he.Tooltip,MarqueeScroll:Wn},props:{...Ko},setup(e,{expose:o}){const n=t.ref(),a=Ie(e,["backgroundColor"]),i=(b,E)=>{const{format:_,customFormatter:P}=E;if(_==null||_==="")return b;const N={money:Mo,percentage:Dn,contrast:Dn,custom:Or};return N[_]?_==="custom"?N[_](b,P)||"":N[_](b)||"":""},r=(b,E)=>{const _=parseFloat(b+"");if(E!=="contrast")return"";switch(!0){case _>=0:return"goUp";case _<0:return"goDown"}},s=je(e,b=>{var E;n.value=((E=b==null?void 0:b.data)==null?void 0:E.data.rows)||[]}),l=t.ref(!1),d=async()=>{var b;if(e.dataType==="request")try{l.value=!0;const E=await s();n.value=((b=E==null?void 0:E.data)==null?void 0:b.data.rows)||[]}catch(E){console.error(E)}finally{l.value=!1}};t.watch(()=>e.data,()=>{(e.dataType==="static"||!t.unref(n))&&(n.value=e.data)},{immediate:!0,deep:!0});const c=t.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),f=t.computed(()=>{const{columns:b,isUseSeq:E}=e;return E?[t.unref(c),...b]:b}),x=b=>{var P;const{columns:E=[],rows:_=[]}=((P=b==null?void 0:b.data)==null?void 0:P.data)??{};e.isUseSeq&&E.unshift(e.seqName),f.value.forEach((N,V)=>{(!e.isUseSeq||V!==0)&&(N.title=E[V],N.key=E[V])}),n.value=_},u=Xe(e,x),m=async()=>{try{l.value=!0;const b=await u();x(b)}catch(b){console.error(b)}finally{l.value=!1}},y=()=>{switch(e.dataType){case"indicator":m();break;case"request":d();break}},h=Ne(e),{getGlobalModel:A,setGlobalModel:I}=t.inject(Le,{getGlobalModel:b=>{},setGlobalModel:(b,E)=>{}}),v=b=>{h("click",()=>{const E=A(e.id);I(e.id,{...E,type:e.type,RECORD:b})})()};Fe(e,{refreshData:y,resetRecord:()=>{const b=e.id,E=A(b);I(b,{...E,type:e.type,RECORD:""})}});const{setRequest:C}=t.inject(He,{setRequest:({id:b,sortNum:E,requestFn:_})=>{}});typeof C=="function"&&C({id:e.id,requestFn:y,sortNum:e.requestSort}),o({refreshData:y});const B=(b,E)=>({flex:b.width?"none":"1",width:b.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:(E?b.cellAlign:b.align)||"left",backgroundColor:b.cellColor}),g=(b,E)=>{let _=0;const P=t.unref(n).map(V=>V[E]),N=Math.max(...P);return N&&(_=b[E]/N*100),_},R=b=>{const{progressColor:E="#1890ff",progressGradientColor:_=""}=b;return _?{background:`linear-gradient(to right, ${E} 0%, ${_} 100%)`}:{backgroundColor:E||"#1890ff"}},p=t.computed(()=>{const b=parseFloat(e.seqFontSize)+5;return{width:b+10,height:b}}),{pageMode:D}=t.inject(ze,{pageMode:"normal"}),w=t.computed(()=>t.unref(D)!=="design"&&e.isAutoScroll),L=b=>{const{seqIconConfig:E}=e;let _=E.find(P=>P.key===b+1);return _||(_=E.find(P=>P.key==="other")),!!(_!=null&&_.icon)},M=(b,E)=>{const{seqIconConfig:_}=e;let P=_.find(N=>N.key===b+1);return P||(P=_.find(N=>N.key==="other")),E===1?P!=null&&P.icon?pt(P.icon):"":E===2?(P==null?void 0:P.color)||"#fff":""},k=b=>{const{seqIndexFormatter:E}=e,_=b+1;return E?_e(E,{textData:{index:_}},{useNewline:!1,useSpace:!0}):_},O=t.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),T=t.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:a,formatFn:i,contrastClass:r,dataSource:n,loading:l,myColumns:f,click:v,getColumnStyle:B,getPercentage:g,getBackgroundColor:R,isShowSeqIcon:L,getSeqIconData:M,seqIcon4:hd,seqIcon5:gd,seqIcon6:md,seqIcon7:yd,iconSize:p,isScroll:w,formatSeq:k,wrapStyle:O,colSpan:T,getText:(b,E)=>(b.format!=null||b.format!=="")&&i(E[b.key],b)}}}),wh="",Ah="",pd=e=>(t.pushScopeId("data-v-d6191ac4"),e=e(),t.popScopeId(),e),bd={key:0,class:"title"},vd={key:0,class:"ranking"},Sd=["onClick"],Cd={key:0,class:"ranking"},wd=pd(()=>t.createElementVNode("div",{class:"icon"},null,-1)),Ad={class:"sort"},kd=["src"],Td={key:1},Bd=["src","width","height"],Ed=["src","width","height"],Dd=["src","width","height"],Id=["src","width","height"],Rd={key:1},Ld=["title"],Nd={key:2,class:"empty"};function _d(e,o,n,a,i,r){const s=t.resolveComponent("a-tooltip"),l=t.resolveComponent("marquee-scroll"),d=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(d,{loading:e.loading},{default:t.withCtx(()=>[e.useTitle?(t.openBlock(),t.createElementBlock("div",bd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columnCount,c=>(t.openBlock(),t.createElementBlock("div",{class:"title-inner",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:c},[e.useRanking?(t.openBlock(),t.createElementBlock("div",vd)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(f,x)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:f.key||x,style:t.normalizeStyle({color:f.titleColor,...e.getColumnStyle(f)})},t.toDisplayString(f.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-list-content",style:t.normalizeStyle({paddingTop:e.useTitle?e.itemRowSpan:0,height:e.useTitle?"calc(100% - 40px)":"100%"})},[t.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...e.wrapStyle}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(${e.itemWidth} - ${e.colSpan})`,marginRight:e.colSpan,marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||f,onClick:x=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",Cd,[wd,t.createElementVNode("div",Ad," Top "+t.toDisplayString(f+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,x=>{var u;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(c[x.key],x.format),x.key==="SEQ"?"seq-column":""]),key:x.key,style:t.normalizeStyle({fontSize:x.fontSize,color:e.contrastClass(c[x.key],x.format)===""?x.color:"",fontWeight:x.fontWeight,...e.getColumnStyle(x,"cell")})},[x.key==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(u=e.seqIconConfig)!=null&&u.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"icon-box",style:t.normalizeStyle({width:e.seqIconWidth||"",height:e.seqIconHeight||""})},[e.seqIconWidth&&e.seqIconHeight&&e.isShowSeqIcon(f)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(f,1),style:t.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,kd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"custom-seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(f,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(e.formatSeq(f)),5)],4)):(t.openBlock(),t.createElementBlock("div",Td,[f===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,Bd)):f===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,Ed)):f===2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,Dd)):f>=3?(t.openBlock(),t.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,Id)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize})},t.toDisplayString(e.formatSeq(f)),5)]))],64)):(t.openBlock(),t.createElementBlock("span",Rd,t.toDisplayString(e.formatSeq(f)),1))],64)):x.format==="progress"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"progress-cell",style:t.normalizeStyle({height:e.itemHeight})},[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({height:x.progressWidth||"14px",backgroundColor:x.progressBaseColor})},[t.createVNode(s,{title:c[x.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({borderRadius:"10px",height:x.progressWidth||"14px",width:`${e.getPercentage(c,x.key)}%`,...e.getBackgroundColor(x)})},null,4)]),_:2},1032,["title"])],4)],4)):(t.openBlock(),t.createElementBlock("span",{key:2,title:e.getText(x,c)},t.toDisplayString(e.getText(x,c)),9,Ld))],6)}),128))],12,Sd))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(t.openBlock(),t.createElementBlock("div",Nd," 暂无数据 "))]),_:1},8,["loading"])],4)}const Kr=Ae(ve(xd,[["render",_d],["__scopeId","data-v-d6191ac4"]])),Zo={...Re,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}{%}",fontSize:"26px",color:"#4091f7",variableColor:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},Qo=Te(Zo),Zr=["refreshData","click"],Od=t.defineComponent({name:"EcanProportion",components:{AProgress:he.Progress,Skeleton:Wt},props:{...Qo},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(ze,{pageMode:"normal"}),i=Ie(e),r=t.computed(()=>{const B=e.width;return parseFloat(B)}),s=t.ref({});t.watch(()=>e.data,()=>{(e.dataType==="static"||t.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=t.computed(()=>{const B=t.unref(s),g=+e.variableDefaultValue;if(B==null)return isNaN(g)?0:g;const R=e.text.match(/\{(.+?)\}/g)||[];let p;const D=new Set(Object.keys(B));for(let w=0;w<R.length;w++){const L=R[w],M=L.slice(1,L.length-1);if(D.has(M)){p=B[M];break}}return typeof p=="number"?p=p*100:typeof p=="string"&&!isNaN(+p)?p=+p*100:isNaN(g)?p=0:p=g*100,e.decimalFormat&&(p=+p.toFixed(2)),p}),d=t.computed(()=>{var D;let B=e.text;if(B==="")return t.unref(l);const g=e.variableDefaultValue,R=t.unref(s),p=B.match(/\{(.+?)\}/g)||[];for(let w=0;w<p.length;w++){const L=p[w];let M=L.slice(1,L.length-1);const k=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,O=L.match(k);for(let F=0;F<(O==null?void 0:O.length);F++){const b=(D=O[F])==null?void 0:D.trim();R[b]!=null&&(M=M.replace(b,R[b]))}let T=M;try{(/\(.*\)/g.test(M)||/[+/\\*]/g.test(M))&&(T=hn(M))}catch(F){console.error(F)}typeof+T=="number"&&!isNaN(+T)?(T=+T*100,e.decimalFormat&&(T=T.toFixed(2))):typeof T!="string"&&(T=g),B=B.replace(L,`<span style="color: ${e.variableColor};">${T+""}</span>`)}return B=B==null?void 0:B.replace(/\n|\\n/g,"<br/>"),t.unref(n)?"NaN":B}),c=je(e,B=>{var g;s.value=((g=B==null?void 0:B.data)==null?void 0:g.data)||{}}),f=t.ref(!1),x=async()=>{var B;if(e.dataType==="request")try{f.value=!0;const g=await c();s.value=((B=g==null?void 0:g.data)==null?void 0:B.data)||{}}catch(g){console.error(g)}finally{f.value=!1}},u=(B={})=>{s.value=B},m=B=>{var R;const{data:g}=(B==null?void 0:B.data)||{};if(g){n.value=!1;const{columns:p=[],rows:D=[]}=((R=B==null?void 0:B.data)==null?void 0:R.data)??{};let w={};if(p.length>0){const L=p.find(M=>!!M);L&&(w={percent:D[L]})}u(w)}else n.value=!0,u({percent:"NaN"})},y=Xe(e,m),h=async()=>{try{f.value=!0;const B=await y();m(B)}catch(B){console.error(B)}finally{f.value=!1}},A=()=>{switch(e.dataType){case"indicator":h();break;case"request":x();break}};Fe(e,{refreshData:A}),o({refreshData:A});const v=Ne(e)("click",()=>{}),{setRequest:S}=t.inject(He,{setRequest:({id:B,sortNum:g,requestFn:R})=>{}});typeof S=="function"&&S({id:e.id,requestFn:A,sortNum:e.requestSort});const C=t.computed(()=>{const{gradientShow:B,gradientColor:g,gradientOffset:R,strokeColor:p}=e;let D=p;return B&&g&&(D={"0%":p,[`${R*100}%`]:g}),D});return{style:i,myWidth:r,text:d,myValue:l,loading:f,click:v,customStrokeColor:C}}}),Th="",Fd=["innerHTML"];function Md(e,o,n,a,i,r){const s=t.resolveComponent("skeleton"),l=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:t.withCtx(()=>[e.loading?(t.openBlock(),t.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(t.openBlock(),t.createElementBlock("div",{key:1,class:"format",style:t.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},[t.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:e.text},null,8,Fd)],4)):t.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Qr=Ae(ve(Od,[["render",Md],["__scopeId","data-v-38f2fa04"]])),Jo={...Re,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{}},Xo=Te(Jo),Jr=["refreshData","click","resetRecord"],zd=t.defineComponent({name:"EcanCounter",components:{Skeleton:Wt},props:{...Xo},setup(e,{expose:o}){const n=t.ref(),a=Ie(e),i=t.computed(()=>({width:e.unitWidth,height:e.unitHeight,marginRight:e.unitInterval+"px"})),r=t.computed(()=>({color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle}));t.watch(()=>[e.data,e.dataType],([C,B])=>{B==="static"&&(n.value=C)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=t.inject(Le,{getGlobalModel:C=>{},setGlobalModel:(C,B)=>{}}),c=Ne(e)("click",()=>{const C=s(e.id);l(e.id,{...C,type:e.type,value:t.unref(n)})}),f=()=>{const C=e.id,B=s(C);l(C,{...B,type:e.type,value:""})},x=je(e,C=>{var B,g;n.value=((g=(B=C==null?void 0:C.data)==null?void 0:B.data)==null?void 0:g.value)||""}),u=t.ref(!1),m=async()=>{var C,B;try{u.value=!0;const g=await x();n.value=((B=(C=g==null?void 0:g.data)==null?void 0:C.data)==null?void 0:B.value)||""}catch(g){console.error(g)}finally{u.value=!1}},y=C=>{var R;const{data:B}=(C==null?void 0:C.data)||{};let g="";if(B){const{columns:p=[],rows:D=[]}=((R=C==null?void 0:C.data)==null?void 0:R.data)??{};if(p.length>0){const w=p.find(L=>!!L);w&&(g=D[w]||"")}}n.value=String(g)},h=Xe(e,y),A=async()=>{try{u.value=!0;const C=await h();y(C)}catch(C){console.error(C)}finally{u.value=!1}},I=()=>{switch(e.dataType){case"indicator":A();break;case"request":m();break}},v=t.computed(()=>{const C=[],{digits:B}=e,g=t.unref(n)?t.unref(n).split("").reverse().join(""):"";for(let R=0;R<B;R++)g&&g[R]?C.push(g[R]):C.push("0");return C.reverse()});Fe(e,{refreshData:I,resetRecord:f});const{setRequest:S}=t.inject(He,{setRequest:({id:C,sortNum:B,requestFn:g})=>{}});return typeof S=="function"&&S({id:e.id,requestFn:I,sortNum:e.requestSort}),o({refreshData:I}),{style:a,valueList:v,digitsStyle:i,fontStyle:r,loading:u,useImagePath:pt,click:c}}}),Eh="",Pd=["src"];function qd(e,o,n,a,i,r){var l;const s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-counter",style:t.normalizeStyle(e.style),onClick:o[0]||(o[0]=(...d)=>e.click&&e.click(...d))},[(l=e.valueList)!=null&&l.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.valueList,(d,c)=>(t.openBlock(),t.createElementBlock("div",{class:"digits-item",style:t.normalizeStyle(e.digitsStyle),key:c},[e.counterBackgroundImage?(t.openBlock(),t.createElementBlock("img",{key:0,class:"item-image",src:e.useImagePath(e.counterBackgroundImage)},null,8,Pd)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"item-text",style:t.normalizeStyle(e.fontStyle)},t.toDisplayString(d),5)],4))),128)):t.createCommentVNode("",!0)],4))}const Xr=Ae(ve(zd,[["render",qd],["__scopeId","data-v-82bd9070"]])),ea={...Re,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},ta=Te(ea),el=["inputChange","inputBlur"],Vd=t.defineComponent({name:"EcanInput",components:{AInput:he.Input},props:{...ta},setup(e){const o=Ie(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:i,getRecordValueByKeyName:r}=t.inject(Le,{getGlobalModel:f=>{},setGlobalModel:(f,x)=>{},getRecordValueByKeyName:f=>{}});t.watch(()=>e.value,f=>{n.value=r(f)},{immediate:!0}),i(e.id,{type:e.type,value:n});const s=()=>{const f=a(e.id);i(e.id,{...f,RECORD:n})},l=Ne(e),d=Oe.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),Ih="";function Hd(e,o,n,a,i,r){const s=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const tl=Ae(ve(Vd,[["render",Hd]])),na={...Re,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px"},oa=Te(na),nl=["dateChange"],aa=t.defineComponent({name:"EcanDatePicker",props:{...oa},components:{ADatePicker:he.DatePicker},setup(e){const o=t.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=Ie(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([u,m,y])=>{let h=null;if(u?h=be(_e(u)):m&&(h=be()),y&&h){const{type:A,value:I,mode:v}=y;switch(A){case"add":h=h.add(I,v);break;case"minus":h=h.subtract(I,v)}}i.value=h},{deep:!0,immediate:!0});const{setGlobalModel:r}=t.inject(Le,{setGlobalModel:(u,m)=>{}});r(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:i});const l=Ne(e)("dateChange",()=>{}),d=()=>{t.unref(i)&&l()};Fe(e,{dateChange:l});const c=t.ref({}),f=t.ref({}),x=u=>{u?setTimeout(()=>{f.value=t.unref(c)},300):f.value={}};return t.onMounted(()=>{setTimeout(()=>{const u=document.querySelector(`#ecan-date-picker-${e.id}`);if(u){const m=u.getBoundingClientRect(),y=parseFloat(t.unref(o).widthScale)*280;document.body.clientWidth-m.left<y&&(c.value.marginLeft=-1*(y-m.width)+"px")}},0)}),{style:n,getPopupContainer:a,myValue:i,locale:ei,change:d,scaleValue:o,popupStyle:c,customStyle:f,openChange:x}}}),ol=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},al=aa.setup;aa.setup=al?(e,o)=>(ol(),al(e,o)):ol;const Lh="",Nh="",jd=["id"];function Wd(e,o,n,a,i,r){const s=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[t.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"])],12,jd)}const il=Ae(ve(aa,[["render",Wd],["__scopeId","data-v-d4ec0d66"]])),ia={...Re,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},ra=Te(ia),rl=["dateChange"];var ll={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(me,function(){var n="month",a="quarter";return function(i,r){var s=r.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,f){return c=Number(c),this.$utils().p(f)===a?this.add(3*c,n):l.bind(this)(c,f)};var d=s.startOf;s.startOf=function(c,f){var x=this.$utils(),u=!!x.u(f)||f;if(x.p(c)===a){var m=this.quarter()-1;return u?this.month(3*m).startOf(n).startOf("day"):this.month(3*m+2).endOf(n).endOf("day")}return d.bind(this)(c,f)}}})})(ll);var Gd=ll.exports;const Ud=Li(Gd);be.extend(Ud);const la=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:he.RangePicker},props:{...ra},setup(e){const o=Ie(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([S,C,B,g,R,p])=>{let D=null,w=null;if(B&&(D=be().subtract(g,R),w=be()),S&&(D=be(_e(S))),C&&(w=be(_e(C))),p){const{type:L,value:M,mode:k}=p;switch(L){case"add":D=D&&D.add(M,k),w=w&&w.add(M,k);break;case"minus":D=D&&D.subtract(M,k),w=w&&w.subtract(M,k)}}a.value=[D,w]},{immediate:!0});let i=t.unref(a)[0],r=t.unref(a)[1],s="";const l=(S,C,B)=>{Array.isArray(S)?(i=S[0],r=S[1],s=B.range):(i=null,r=null)};window.dayjs=be;const d=S=>{let C=!1,{limitStartTime:B,limitEndTime:g}=e;const R={startTime:`${i||""}`,endTime:`${r||""}`};if(B=_e(B,{codeData:R}),g=_e(g,{codeData:R}),B&&g?C=!(be(B)<S&&S<be(g)):B?C=be(B)>S:g&&(C=be(g)<S),!e.isAllowSpanYear&&s){let p=null;if(s==="start"?p=i:s==="end"&&(p=r),p){const D=p.startOf("year"),w=p.endOf("year");C=!(D<=S&&S<w)}}if(!C){const{value:p=0,mode:D="year"}=e.limitInterval||{};p&&(s==="start"?C=i.add(p,D)<S:s==="end"&&(C=r.subtract(p,D)>S))}return C},{getGlobalModel:c,setGlobalModel:f}=t.inject(Le,{getGlobalModel:S=>{},setGlobalModel:(S,C)=>{}}),x=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),u=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:x,endTime:u,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const m=Ne(e);let y=!1;const h=m("dateChange",()=>{}),A=S=>{const C=t.unref(a),B=C&&C[0]&&C[1];S===!1&&y===!0&&B&&(h(),y=!1),S||(s="")},I=()=>{y=!0};return Fe(e,{dateChange:()=>{const{associated:S}=e;if(S){const C=c(S)||{};if(C){const{value:B}=C;if(B)switch(t.unref(B)){case"month":a.value=[be().startOf("month"),be().endOf("month")];break;case"quarter":a.value=[be().startOf("quarter"),be().endOf("quarter")];break;case"year":a.value=[be().startOf("year"),be().endOf("year")];break}}}h()}}),{style:o,getPopupContainer:n,locale:ei,dateChange:h,myValue:a,disabledDate:d,calendarChange:l,openChange:A,change:I}}}),sl=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},cl=la.setup;la.setup=cl?(e,o)=>(sl(),cl(e,o)):sl;const Oh="",Fh="";function $d(e,o,n,a,i,r){const s=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"])],4)}const dl=Ae(ve(la,[["render",$d],["__scopeId","data-v-c9c68612"]])),sa={...Re,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},ca=Te(sa),fl=["click"],Yd=t.defineComponent({name:"EcanButton",components:{AButton:he.Button},props:{...ca},setup(e){const o=Ie(e),a=Ne(e)("click",()=>{const d=t.unref(s);d&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:d},"*")}),i=t.computed(()=>{const d={};return e.mode!=="primary"&&(d.backgroundColor=e.buttonBackgroundColor||"transparent",d.color=e.tooltipTextStyleColor,d.borderColor=e.borderColor||"transparent"),{height:e.height,...d}}),r=t.computed(()=>_e(e.text)),s=t.computed(()=>_e(e.href)||null),l=t.computed(()=>{const d=e.target;if(!(d==="event"||t.unref(s)==null))return{self:"_self",blank:"_blank"}[d]});return{style:o,click:a,myText:r,myHref:s,myTarget:l,buttonStyle:i}}}),zh="";function Kd(e,o,n,a,i,r){const s=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-button",style:t.normalizeStyle(e.style)},[t.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:t.normalizeStyle(e.buttonStyle),class:t.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:t.withCtx(()=>[t.createElementVNode("span",{style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const ul=Ae(ve(Yd,[["render",Kd]])),da={...Re,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},fa=Te(da),hl=["checkboxChange"],Zd=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:he.CheckboxGroup},props:{...fa},setup(e,{expose:o}){const n=Ie(e),a=t.ref([]),i=t.ref([]),r=I=>{const v=e.value;let S=[];I.forEach(C=>{C.checked&&S.push(C.value)}),typeof v=="string"&&v!==""?S=S.concat(v.split(",")):Array.isArray(v)&&(S=S.concat(v)),a.value=I,i.value=S};t.watch(()=>[e.data,e.value],([I])=>{r(I)},{immediate:!0,deep:!0});const s=je(e,I=>{var v,S;r(((S=(v=I==null?void 0:I.data)==null?void 0:v.data)==null?void 0:S.rows)||[])}),l=async()=>{var S,C;if(e.dataType!=="request")return;const I=await s(),v=((C=(S=I==null?void 0:I.data)==null?void 0:S.data)==null?void 0:C.rows)||[];r(v)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Le,{getGlobalModel:I=>{},setGlobalModel:(I,v)=>{}});c(e.id,{type:e.type,value:i});const x=Ne(e)("checkboxChange",()=>{const I=d(e.id);c(e.id,{...I,RECORD:i})}),u=I=>{var S;const{data:v}=(I==null?void 0:I.data)||{};if(v){const B=(((S=I==null?void 0:I.data)==null?void 0:S.data)??[]).map(g=>({label:g.label,value:g.value}));r(B)}else r([])},m=Xe(e,u),y=async()=>{try{const I=await m();u(I)}catch(I){console.error(I)}},h=()=>{switch(e.dataType){case"indicator":y();break;case"request":l();break}},{setRequest:A}=t.inject(He,{setRequest:({id:I,sortNum:v,requestFn:S})=>{}});return typeof A=="function"&&A({id:e.id,requestFn:h,sortNum:e.requestSort}),o({refreshData:h}),{myOption:a,style:n,myValue:i,checkboxChange:x}}}),qh="";function Qd(e,o,n,a,i,r){const s=t.resolveComponent("a-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"ecan-checkbox",style:t.normalizeStyle(e.style)},[t.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const gl=Ae(ve(Zd,[["render",Qd]])),ua={...Re,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},ha=Te(ua),ml=["selectChange","refreshData"],Jd=t.defineComponent({name:"EcanSelect",components:{ASelect:he.Select,ASelectOption:he.SelectOption},props:{...ha},setup(e,{expose:o}){const n=Ie(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=t.ref(e.data||[]),r=t.ref(),s=t.computed({get:()=>{var E;const{mode:b}=e;return(E=t.unref(i))!=null&&E.length?r.value:b==="multiple"||b==="tags"||b==="combobox"?[]:""},set:b=>{r.value=b}}),{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c}=t.inject(Le,{getGlobalModel:b=>{},setGlobalModel:(b,E)=>{},getRecordValueByKeyName:b=>{}}),f=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:b,selectFirstOption:E,value:_}=e,P=c(_),N=f.value;if(b==="multiple"||b==="tags"||b==="combobox"){if(P)r.value=P.split(",");else if(E){const V=t.unref(i)[0];r.value=V?[V[N]]:[]}}else if(P)r.value=P;else if(E){const V=t.unref(i)[0];r.value=V?V[N]:""}},{immediate:!0});const x=(b,E)=>{const _=f.label,P=f.value;let N;const V=E[_],z=E[P];return V!=null?N=V:z!=null&&(N=z),(N==null?void 0:N.toLowerCase().indexOf(b==null?void 0:b.toLowerCase()))>=0},u=b=>{const{label:E,value:_,options:P}=e.dataFieldNames;if(P&&Array.isArray(b))if(b.some(N=>P in N)){const N={},V=[];b.forEach(z=>{N[z[P]]||(N[z[P]]=[]),N[z[P]].push({[E]:z[E],[_]:z[_]})});for(const z in N)V.push({[E]:z,[P]:N[z]});return V}else return b;else if(!P)return b},m=t.ref(!1),y=b=>{var E,_;if(i.value=u(((_=(E=b==null?void 0:b.data)==null?void 0:E.data)==null?void 0:_.rows)||[]),e.selectFirstOption){let P=t.unref(i)[0];if(f.options){const N=P[f.options];N&&N.length&&(P=N[0])}r.value=P[f.value]}},h=je(e,y),A=async()=>{if(e.dataType==="request"){m.value=!0;try{const b=await h();y(b)}catch(b){console.error(b)}finally{m.value=!1}}},{setLoadedData:I,loadedData:v}=t.inject(Et,{setLoadedData:(b,E)=>{},loadedData:{}}),S=t.computed(()=>{let b=r.value;if(e.valueType==="label"&&t.unref(r)&&t.unref(i)){const E=f.label,_=f.value;if(e.mode==="multiple")b=t.unref(i).filter(P=>t.unref(r).includes(P[_])).map(P=>P[E]);else{const P=t.unref(i).find(N=>t.unref(r)===N[_]);P&&(b=P[E])}}return b}),C=t.ref([]),B=t.computed(()=>{const b={};if(e.mode!=="multiple"){const E=t.unref(C).find(_=>_.value===t.unref(r));E&&(b.itemCodes=E.item_codes)}return b}),g=t.computed(()=>{const{value:b,label:E}=f,_=t.unref(i).find(P=>P[b]===t.unref(s));return _?{label:_[E],value:_[b]}:{}});d(e.id,{type:e.type,value:S,...t.unref(B),recordData:t.unref(g)});const p=Ne(e)("selectChange",()=>{const b=e.id,E=l(b);d(b,{...E,...t.unref(B),RECORD:S,recordData:t.unref(g)})}),D=(b=[])=>{if(i.value=u(b),e.selectFirstOption){let E=t.unref(i)[0];if(f.options){const _=E[f.options];_&&_.length&&(E=_[0])}r.value=E[f.value]}d(e.id,{type:e.type,value:S,...t.unref(B),recordData:t.unref(g)})},w=b=>{var N;const{data:E}=(b==null?void 0:b.data)||{},_=f.label,P=f.value;if(E){const V=((N=b==null?void 0:b.data)==null?void 0:N.data)??[];C.value=V;const z=V.map(U=>({[_]:U.label,[P]:U.value})),{id:q}=e,X=l(q);d(q,{...X,...t.unref(B)}),I(q,!0),D(z)}else D([])},L=Xe(e,w),M=async()=>{try{m.value=!0;const b=await L();w(b)}catch(b){console.error(b)}finally{m.value=!1}},k=t.computed(()=>{var b,E;return(E=un(((b=e==null?void 0:e.graphicConfig)==null?void 0:b.controlList)||[]))==null?void 0:E.find(_=>_.conditionKey==="parentCode")}),O=t.ref(!1);t.watch(v,b=>{!t.unref(O)&&t.unref(k)&&b[t.unref(k).id]&&(O.value=!0,T())},{deep:!0});const T=()=>{switch(e.dataType){case"indicator":{if(t.unref(k)){if(t.unref(v)[t.unref(k).id]){const{mode:b}=e;b==="multiple"||b==="tags"||b==="combobox"?s.value=[]:s.value="",M()}}else M();break}case"request":A();break}};Fe(e,{selectChange:p,refreshData:T});const{setRequest:F}=t.inject(He,{setRequest:({id:b,sortNum:E,requestFn:_})=>{}});return typeof F=="function"&&F({id:e.id,requestFn:T,sortNum:e.requestSort}),o({refreshData:T}),{style:n,getPopupContainer:a,myValue:r,selectChange:p,options:i,filterOption:x,loading:m,resultValue:s}}}),Hh="",jh="";function Xd(e,o,n,a,i,r){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const yl=Ae(ve(Jd,[["render",Xd],["__scopeId","data-v-478fe018"]])),ga={...Re,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},ma=Te(ga),xl=["selectChange","refreshData"],ef={name:"EcanTreeSelect",components:{ATreeSelect:he.TreeSelect},props:{...ma},setup(e){const o=Ie(e),n=t.ref(e.data),a=(y,h)=>{const A=e.dataFieldNames,I=A.label,v=A.value;let S;const C=h[I],B=h[v];return C!=null?S=C:B!=null&&(S=B),(S==null?void 0:S.toLowerCase().indexOf(y==null?void 0:y.toLowerCase()))>=0},i=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:y,value:h,selectFirstOption:A}=e;y?h?i.value=h.split(","):A&&(i.value=[t.unref(n)[0]]):h?i.value=h:A&&(i.value=t.unref(n)[0])},{immediate:!0});const r=t.ref(!1),s=y=>{var A,I;n.value=((I=(A=y==null?void 0:y.data)==null?void 0:A.data)==null?void 0:I.rows)||[];const h=t.unref(n)[0];e.value===""&&h!=null&&(i.value=h[e.dataFieldNames.value])},l=je(e,s),d=async()=>{if(e.dataType==="request"){r.value=!0;try{const y=await l();s(y)}catch(y){console.error(y)}finally{r.value=!1}}},{getGlobalModel:c,setGlobalModel:f}=t.inject(Le,{getGlobalModel:y=>{},setGlobalModel:(y,h)=>{}});f(e.id,{type:e.type,value:i});const u=Ne(e)("selectChange",()=>{const y=e.id,h=c(y);f(y,{...h,RECORD:i})});Fe(e,{selectChange:u,refreshData:d});const{setRequest:m}=t.inject(He,{setRequest:({id:y,sortNum:h,requestFn:A})=>{}});return m({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:o,treeData:n,filterTreeNode:a,myValue:i,loading:r,selectChange:u}}},Gh="",Uh="";function tf(e,o,n,a,i,r){const s=t.resolveComponent("a-tree-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tree-select",style:t.normalizeStyle(a.style)},[t.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":o[0]||(o[0]=l=>a.myValue=l),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const pl=Ae(ve(ef,[["render",tf],["__scopeId","data-v-09e7f364"]])),ya={...Re,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:""},xa=Te(ya),bl=["checkboxChange","click"],nf=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:he.RadioGroup,ARadioButton:he.RadioButton,ARadio:he.Radio},props:{...xa},setup(e,{expose:o}){const{pageMode:n}=t.inject(ze,{pageMode:"normal"}),a=Ie(e),i=t.ref([]),r=t.ref(""),s=B=>{const g=e.value;let R=[];typeof g=="string"&&g!==""?R=R.concat(g.split(",")):Array.isArray(g)&&(R=R.concat(g)),i.value=B,r.value=R[0]||""};t.watch(()=>[e.data,e.value],([B])=>{t.unref(n)==="design"&&s(B)},{immediate:!0,deep:!0});const l=je(e,B=>{var g,R;s(((R=(g=B==null?void 0:B.data)==null?void 0:g.data)==null?void 0:R.rows)||[])}),d=async()=>{var R,p;if(e.dataType!=="request")return;const B=await l(),g=((p=(R=B==null?void 0:B.data)==null?void 0:R.data)==null?void 0:p.rows)||[];s(g)},{getGlobalModel:c,setGlobalModel:f}=t.inject(Le,{getGlobalModel:B=>{},setGlobalModel:(B,g)=>{}});f(e.id,{type:e.type,value:r});const x=Ne(e),u=()=>{const B=t.unref(i).find(g=>g.value===t.unref(r))||{};x("checkboxChange",()=>{const g=c(e.id);f(e.id,{...g,RECORD:r})},B)()},m=B=>{r.value=B,x("click",()=>{const g=c(e.id);f(e.id,{...g,RECORD:r})})()};t.watch(r,()=>{u()});const y=B=>{var R;const{data:g}=(B==null?void 0:B.data)||{};if(g){const D=(((R=B==null?void 0:B.data)==null?void 0:R.data)??[]).map(w=>({label:w.label,value:w.value}));s(D)}else s([])},h=Xe(e,y),A=async()=>{try{const B=await h();y(B)}catch(B){console.error(B)}},I=()=>{switch(e.dataType){case"indicator":A();break;case"request":d();break}},{setRequest:v}=t.inject(He,{setRequest:({id:B,sortNum:g,requestFn:R})=>{}});typeof v=="function"&&v({id:e.id,requestFn:I,sortNum:e.requestSort});const S=B=>{r.value=B.value},C=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return t.onMounted(()=>{s(e.data)}),o({refreshData:I}),{myOption:i,style:a,myValue:r,radioStyle:C,onClickButton:m,useImagePath:pt,tabChange:S}}}),Yh="",Kh="",of=["onClick"];function af(e,o,n,a,i,r){const s=t.resolveComponent("a-radio"),l=t.resolveComponent("a-radio-button"),d=t.resolveComponent("a-radio-group");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ecan-radio",e.optionType]),style:t.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:f,onClick:t.withModifiers(x=>e.tabChange(c),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.label),5)],12,of))),128))],4)):(t.openBlock(),t.createBlock(d,{key:1,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,c=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.value},[e.optionType==="default"?(t.openBlock(),t.createBlock(s,{key:0,value:c.value,style:t.normalizeStyle(e.radioStyle)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(t.openBlock(),t.createBlock(l,{key:1,value:c.value,onClick:f=>e.onClickButton(c.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):t.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const vl=Ae(ve(nf,[["render",af],["__scopeId","data-v-7ca4e814"]])),pa={...Re,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},ba=Te(pa),Sl=["click","refreshData","resetRecord"],nn=async e=>{var d;const o=await vt.post(e,{},{responseType:"blob"}),{data:n,headers:a}=o,i=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),r=new Blob([n]),s=document.createElement("a"),l=window.URL.createObjectURL(r);s.href=l,s.download=decodeURI(i),s.style.display="none",document.body.appendChild(s),s.click(),(d=s.parentNode)==null||d.removeChild(s),window.URL.revokeObjectURL(l)},va={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[]},Sa=Te(va),Cl=["showModal","hideModal"],Pt=["ecanBorder","ecanTabs","ecanCirculate"];function wl(e){const{containerMap:o={},sourceList:n=[]}=e,a=Oe.cloneDeep(e.componentList),i=a.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(i!=null&&i.length)for(const r of i){const s=o[r.id],l=[];if((!tn(r,"componentList")||!(r!=null&&r.componentList))&&(r.componentList=[]),s){let d=0;for(const c in s){const f=s[c],x=[];if(f!=null&&f.length)for(const u of f){let m=a.find(y=>y.id===u);m||(m=n.find(y=>y.id===u)),m&&(x.push(m),Pt.includes(m.type)&&x.push(...gn(m.id,o,n)))}for(const u of x)tn(u,"scale")?parseFloat(c)>0&&(u.left=parseFloat(u.left)+d+"px"):(u.left=parseFloat(u.sourceLeft||u.left)-parseFloat(r.sourceLeft||r.left)+d+"px",u.top=parseFloat(u.sourceTop||u.top)-parseFloat(r.sourceTop||r.top)+"px"),l.includes(u.id)||l.push(u.id);r.componentList.push(...x),d=ff(x)}}for(const d of l){const c=a.findIndex(f=>f.id===d);c!==-1&&a.splice(c,1)}}return a}function Al(e){var r,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,i=Oe.cloneDeep([...e.componentList,...lf(a,n)]);if(rf(a,i),(r=Object.keys(a))!=null&&r.length||(s=Object.keys(o))!=null&&s.length){for(const u in a){const m=i.find(y=>y.id===u);if(m){tn(m,"parentId")||(m.parentId="",m.sourceLeft=m.left,m.sourceTop=m.top);for(const y in a[u])if(a[u][y])for(const h of a[u][y]){const A=i.find(I=>I.id===h);A&&(A.parentId=u,A.sourceLeft=A.left,A.sourceTop=A.top,A.left=parseFloat(A.left)-parseFloat(m.sourceLeft||m.left)+"px",A.top=parseFloat(A.top)-parseFloat(m.sourceTop||m.top)+"px")}}}const l=Array.from(new Set(i.filter(u=>(!tn(u,"parentId")||u.parentId==="")&&u.combinationId).map(u=>u.combinationId))),d=sf(l,{...e,componentList:i});d!=null&&d.length&&i.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],f=i.filter(u=>c.includes(u.type)&&!tn(u,"parentId")),x=[];for(const u of f)if(u){const m=u.id+"_vir";x.push({id:m,keyName:u.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:u.width,height:u.height,left:u.left,top:u.top,sourceLeft:u.left,sourceTop:u.top}),u.parentId=m,u.sourceLeft=u.left,u.sourceTop=u.top,u.left=0,u.top=0}x!=null&&x.length&&i.unshift(...x);for(const u of i){const m=document.body.clientWidth;if(u.parentId===""&&Pt.includes(u.type))u.sourceWidth=parseFloat(u.width),u.height=(m/(u.sourceWidth/parseFloat(u.height))).toFixed(2)+"px",u.width="100%",u.position="relative",u.top="auto",u.left="auto";else{const y=i.find(h=>h.id===u.parentId);if((y==null?void 0:y.parentId)===""){const h=y.sourceWidth||parseFloat(y.width),A=m/h;u.scale=A,u.top=parseFloat(u.top)*A-parseFloat(u.height)*(1-A)/2+"px",u.left=parseFloat(u.left)*A-parseFloat(u.width)*(1-A)/2+"px"}}u.type==="ecanModal"&&(u.parentId="",u.fullModal=!0)}return cf(i)}return i}function rf(e,o){const n=Oe.cloneDeep(e),a=o.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(a!=null&&a.length)for(const i of a){const r=n[i.id];for(const s in r)for(const l of r[s]){const d=o.find(c=>c.id===l);if(d&&Pt.includes(d.type)){const c=gn(d.id,n,o);for(const f of c)e[i.id][s].push(f.id),Pt.includes(f.type)&&delete e[f.id];delete e[d.id]}}}}function lf(e,o){const n=[],a=o.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(a!=null&&a.length)for(const i of a){const r=e[i.id];for(const s in r)if(parseFloat(s)>0)for(const l of r[s]){const d=o.find(c=>c.id===l);d&&(n.push(d),Pt.includes(d.type)&&n.push(...gn(d.id,e,o)))}}return n}function gn(e,o,n){const a=[],i=o[e];for(const r in i)for(const s of i[r]){const l=n.find(d=>d.id===s);l&&(a.push(l),Pt.includes(l.type)&&a.push(...gn(l.id,o,n)))}return a}function sf(e,o,n){const{combinationMap:a={},componentList:i=[]}=o,r=[];for(const s of e){const l=a[s];if(l!=null&&l.length){const d=i.filter(c=>l.includes(c.id));if(d!=null&&d.length){const c=df(d);if(c){r.push({...c,id:s,keyName:s,parentId:n||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:c.left,sourceTop:c.top});for(const f of d)f&&(f.parentId=s,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(c.left)+"px",f.top=parseFloat(f.top)-parseFloat(c.top)+"px")}}}}return r}function cf(e){const n=e.filter(a=>a.parentId==="");if(n!=null&&n.length){const a=Oe.cloneDeep(n).map(i=>({...i,sourceTop:parseFloat(i.sourceTop),sourceLeft:parseFloat(i.sourceLeft)}));for(let i=0;i<a.length-1;i++)for(let r=0;r<a.length-i-1;r++){let s=!1;if((a[r].sourceTop-a[r+1].sourceTop>50||Math.abs(a[r+1].sourceTop-a[r].sourceTop)<=50&&a[r].sourceLeft>a[r+1].sourceLeft)&&(s=!0),s){const l=a[r];a[r]=a[r+1],a[r+1]=l}}for(const i of a){const r=e.findIndex(s=>s.id===i.id);r!==-1&&e.splice(r,1)}return[...a,...e]}return e}function df(e){const o=e.sort((r,s)=>parseFloat(r.top)-parseFloat(s.top))[0],n=e.sort((r,s)=>parseFloat(r.left)-parseFloat(s.left))[0],a=e.map(r=>({...r,computedTop:parseFloat(r.top)+parseFloat(r.height)})).sort((r,s)=>s.computedTop-r.computedTop)[0],i=e.map(r=>({...r,computedLeft:parseFloat(r.left)+parseFloat(r.width)})).sort((r,s)=>s.computedLeft-r.computedLeft)[0];return o&&n&&a&&i?{left:n.left,top:o.top,width:i.computedLeft-parseFloat(n.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}function ff(e){const o=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,a)=>a-n)[0];return o||0}function Ca(e,o,n){const a=e[n],i=[];if(a)for(const r in a){const s=a[r];for(const l of s){const d=o.find(c=>c.id===l);d&&(i.push(d),Pt.includes(d.type)&&i.push(...gn(d.id,e,o)))}}return i}const uf=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function hf(e,o,n,a,i,r){return e.component.parentId?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#container_"+e.component.parentId},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.normalizeProps(t.mergeProps({key:1},e.component)),null,16))}const gf=Ae(ve(uf,[["render",hf]])),mf=t.defineComponent({name:"EcanModal",components:{AModal:he.Modal,CloseOutlined:S0,Render:gf},props:{...Sa},setup(e,{emit:o}){const n=t.ref([]),a=t.inject("isMobile",!1),i=t.inject("getContainerMap",()=>{}),r=t.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l,setRequestData:d}=t.inject(Le,{setRequestData:(G,J)=>{},clearInteractiveData:()=>{},interactiveData:null}),c=()=>document.getElementById("ProviderConfig")||document.body,f=t.computed(()=>{const G=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[G]}}),x=e.fullModal?"1920px":e.width,u=e.fullModal?"1080px":e.height,m=e.originalWidth,y=e.originalHeight,h=t.ref("80%"),A=t.ref(0),I=t.ref(),v=t.ref(0),S=t.ref({}),C=Ie(e),B=t.ref({}),g=t.ref(!1),R=t.ref();let p;const D=()=>{I.value=parseFloat(x)/parseFloat(m);const G=parseFloat(u)/parseFloat(y),J=document.body.offsetWidth,ee=document.body.offsetHeight;A.value=J*t.unref(I),v.value=ee*G,h.value=`${t.unref(I)*100}%`,S.value={width:`${t.unref(A)}px`,height:`${t.unref(v)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},B.value={...t.unref(C),backgroundImage:pt(e.backgroundImage,!0)},a?B.value={...B.value,width:"100%",height:"100%"}:B.value={...B.value,transform:`scale(${t.unref(A)/parseFloat(x)},${t.unref(v)/parseFloat(u)})`,width:x,height:u}},w=Oe.debounce(()=>{D()},100),L=()=>{const G=window.MutationObserver;p=new G(w),p.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},M=()=>{p&&(p.disconnect(),p.takeRecords(),p=null)},k=t.ref(!1),{touchRequest:O}=t.inject(He,{touchRequest:()=>{}}),T=t.ref(""),F=()=>{var ee;const{title:G}=e,J=(ee=t.unref(l))==null?void 0:ee.RECORD;return J?_e(G,{textData:J},{useNewline:!1,useSpace:!1}):G},b=Ne(e),E=()=>{a&&(document.documentElement.style.overflow="hidden"),T.value=F(),k.value=!0},_=b("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),k.value=!1}),P=()=>{_()},N=()=>{_(),s()},{setModalModel:V,pushUseModalIds:z,popUseModalIds:q}=t.inject(Bi,{pushUseModalIds:G=>{},popUseModalIds:()=>{},setModalModel:(G,J)=>{}}),X=t.computed(()=>{let G=e.componentList;const J=Oe.cloneDeep(e.componentList),ee=i(),ne=r(),ae={containerMap:ee,combinationMap:ne};a&&(G=Al({...ae,componentList:J,sourceList:e.allComponentList})),G=wl({...ae,componentList:G,sourceList:e.allComponentList});const ie=[];for(const ue of G)if(ue.type==="ecanCirculate"){const Se=Ca(ee,t.unref(J),ue.id);ue.componentList=Se,ie.push(...Se.map(ke=>ke.id))}if(ie!=null&&ie.length)for(const ue of ie){const Se=G.findIndex(ke=>ke.id===ue);Se!==-1&&G.splice(Se,1)}return G}),U=()=>{const G=e.id;let J=[];const ee=e.componentList;Array.isArray(ee)&&(J=ee.map(ne=>ne.id),V(G,[...new Set(J)]))},j=t.ref(!1),H={};for(const G of e.requestList)H[G.requestName]=je(G);t.watch(()=>k.value,async G=>{if(G)g.value=!1,z(e.id),U(),await t.nextTick(()=>{D(),window.addEventListener("resize",w),L(),g.value=!0}),O();else{for(const J in H)d(J,{});q(),window.removeEventListener("resize",w),M()}});const K=t.computed(()=>t.unref(I)>=1),te=t.computed(()=>e.fullModal),ce=t.computed(()=>{let G="ecan-modal";return t.unref(K)&&(G+=" ecan-full-width-modal"),t.unref(te)&&(G+=" ecan-full-modal"),G});return Fe(e,{showModal:E,hideModal:_}),{modalRef:R,containStyle:S,contentStyle:B,getContainer:c,modalStyle:f,modalWith:h,isFullModal:te,style:C,visible:k,showModal:E,onOk:P,onCancel:N,isFullWidth:K,wrapClassName:ce,ready:g,usedComponentList:X,isMobile:a,readyIds:n,hasOwn:tn,onComponentReady:G=>{n.value.push(G)},formatTitle:T,requestLoaded:j}}}),Jh="",Xh="";function yf(e,o,n,a,i,r){const s=t.resolveComponent("close-outlined"),l=t.resolveComponent("render"),d=t.resolveComponent("a-modal");return t.openBlock(),t.createBlock(d,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:t.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"contain",ref:"containRef",style:t.normalizeStyle(e.containStyle)},[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"content",style:t.normalizeStyle(e.contentStyle)},[t.createElementVNode("div",{class:"header-bar",style:t.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ant-modal-title",style:t.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},t.toDisplayString(e.formatTitle),5)):t.createCommentVNode("",!0),e.isShowCloseBtn?(t.openBlock(),t.createBlock(s,{key:1,class:"close-icon",style:t.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):t.createCommentVNode("",!0)],4),e.usedComponentList.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.isMobile?"mobile-wrap":"")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.usedComponentList,(c,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+f},[e.isMobile?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(t.openBlock(),t.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:1},c)),null,16))],64))),128))],2)):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):t.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Nt=Ae(ve(mf,[["render",yf],["__scopeId","data-v-000999c2"]]));it.use([Ft.CanvasRenderer,Ct.PieChart,De.TitleComponent,De.ToolboxComponent,De.TooltipComponent,De.LegendComponent]);const xf=t.defineComponent({name:"EcanPie",props:{...ba},components:{Spin:jt,Echarts:Tt,EcanModal:Nt},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(ze,{pageMode:"normal",fontFamily:""}),i=t.ref(!1),r=Ie(e),s=t.ref([]),l=t.ref(),d=t.ref({}),c=t.computed(()=>{let{data:k=[]}=t.unref(s)[0]||{};if(Array.isArray(e.colors)){const O=e.isUseLabelColors,T=e.colors;k=k.map((F,b)=>({label:O?{color:T[b]}:{},...F}))}return{textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:i.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var O;i.value=!0,(O=l.value)==null||O.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){he.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:O=>{const{marker:T,seriesName:F,name:b,value:E,percent:_,data:P}=O||{};return _e(e.tooltipFormatter,{textData:{marker:T,name:b,value:E,percent:_,a:F,b,c:E,d:_,...P}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.unref(d),color:e.colors,series:[{data:k,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:i.value?Qe:e.labelFontSize,position:e.labelPosition,formatter:Zc(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),f=()=>{const k=i.value?Qe:parseFloat(e.legendFontSize);d.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:k+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:k}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:O=>{const{data:T}=s.value[0]||{};let F=0,b,E="0%";if(T)for(const _ of T)_.name===O&&(b=+_.value),F+=+_.value;return F&&(E=`${(b/F*100).toFixed(2)}%`),fn(e.legendFormatter,{name:O,value:b,percent:E})}}},x=()=>{i.value=!1},{getGlobalModel:u,setGlobalModel:m}=t.inject(Le,{getGlobalModel:k=>{},setGlobalModel:(k,O)=>{}}),y=(k=[],O)=>{const{dataset:T}=Gt(k,O);s.value=T},h=(k=[],O)=>{const T=Gt(k,O);s.value=T.dataset};t.watch(()=>e.data,k=>{(e.dataType==="static"||t.unref(n)==="design")&&y(k)},{immediate:!0,deep:!0}),t.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{f()},{immediate:!0});const A=t.ref(!1),I=je(e,k=>{var O,T;y((T=(O=k==null?void 0:k.data)==null?void 0:O.data)==null?void 0:T.rows,e.valueTypeDataFieldNames)}),v=async()=>{var k,O;if(e.dataType==="request")try{A.value=!0;const T=await I();y((O=(k=T==null?void 0:T.data)==null?void 0:k.data)==null?void 0:O.rows,e.valueTypeDataFieldNames)}catch(T){console.error(T)}finally{A.value=!1}},S=Ne(e);m(e.id,{type:e.type,RECORD:""});const C=S("click",k=>{const O=u(e.id);m(e.id,{...O,type:e.type,RECORD:k==null?void 0:k.data})}),B=k=>{var T;const{data:O}=(k==null?void 0:k.data)||{};if(O){const{columns:F=[],rows:b=[]}=((T=k==null?void 0:k.data)==null?void 0:T.data)??{};let E=[];if(F.length>0){const _=F[0],P=F[1];E=b.filter(N=>!!N).map(N=>({name:N[_],value:isNaN(N[P])?0:N[P]||0}))}h(E)}},g=Xe(e,B),R=async()=>{try{A.value=!0;const k=await g();B(k)}catch(k){console.error(k)}finally{A.value=!1}},{loadedData:p}=t.inject(Et,{loadedData:{}}),D=t.ref(!1);t.watch(p,k=>{if(e.dataType==="indicator"){const O=dn(e.graphicConfig);O!=null&&O.length&&(!t.unref(D)&>(e.graphicConfig,k)?(D.value=!0,w()):gt(e.graphicConfig,k)||(D.value=!1))}},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":gt(e.graphicConfig,t.unref(p))&&R();break;case"request":v();break}};Fe(e,{resetRecord:()=>{const k=e.id,O=u(k);m(k,{...O,RECORD:""})},refreshData:w,click:C}),o({refreshData:w});const{setRequest:M}=t.inject(He,{setRequest:k=>{}});return typeof M=="function"&&M({id:e.id,requestFn:w,sortNum:e.requestSort}),{option:c,style:r,click:C,onClose:x,loading:A,ecanModal:l}}}),t1="";function pf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const kl=Ae(ve(xf,[["render",pf]])),wa={...Re,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null},Aa=Te(wa),Tl=["click","refreshData","resetRecord"];it.use([Ft.CanvasRenderer,Ct.LineChart,De.ToolboxComponent,De.TitleComponent,De.LegendComponent,De.MarkLineComponent]);const bf=t.defineComponent({name:"EcanLine",props:{...Aa},components:{Spin:jt,Echarts:Tt,EcanModal:Nt},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(ze,{pageMode:"normal",fontFamily:""}),i=t.ref(),r=t.ref(!1),s=Ie(e),l=t.ref([]),d=t.ref([]),c=t.ref(),f=t.computed(()=>r.value?Qe:12),x=t.ref({});let u;const m=t.ref([]),y=t.computed(()=>{const b=e.xAxisLabelFormatter,E=e.yAxisLabelFormatter;return{textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:r.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var _;r.value=!0,(_=c.value)==null||_.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){he.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:f.value},show:e.tooltipShow,formatter:_=>{var z;const P=_.length;let N="",V=e.tooltipFormatter;u=(z=_[0])==null?void 0:z.data,V===""&&(V="{marker} {a} {c}");for(let q=0;q<P;q++){const{marker:X,seriesName:U,name:j,value:H,data:K}=_[q]||{};if(q===0){let te=j;typeof j=="string"&&j[0]==="0"&&!isNaN(+j)&&(te=(+j).toString()),N+=`${mt(b,te)}<br/>`}N+=_e(V,{textData:{marker:X,name:j,value:H,a:U,b:j,c:H||0,...K}},{useNewline:!0,useSpace:!0}),N+="<br/>"}return N},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(d).map(_=>{let P={};return _&&typeof _=="object"?P={..._}:P={value:_},P}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(_){return typeof _=="string"&&_[0]==="0"&&!isNaN(+_)&&(_=(+_).toString()),mt(b,_)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(_){return mt(E,_)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(r.value?Qe:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?Qe:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(m).map(_=>({name:_.name,icon:e.legendType})),formatter:_=>fn(e.legendFormatter,{name:_})},series:t.unref(l)}}),h=()=>{r.value=!1},{getGlobalModel:A,setGlobalModel:I}=t.inject(Le,{getGlobalModel:b=>{},setGlobalModel:(b,E)=>{}}),v=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),S=(b=[],E=!1)=>{let _;if(e.dataFieldConfigType==="key"){const z=E?e.keyTypeDataFieldNames:null;_=Lt(b,z)}else if(e.dataFieldConfigType==="value"){const z=E?e.valueTypeDataFieldNames:null;_=Gt(b,z)}d.value=_.dimensions,m.value=_.dataset;const P=_.dataset,N=[],V=P.length;for(let z=0;z<V;z++){const q={};e.shadowColor&&(q.shadowColor=e.shadowColor,q.shadowBlur=e.shadowBlur,q.shadowOffsetY=e.shadowOffsetY,q.shadowOffsetX=e.shadowOffsetX),N.push({type:"line",...P[z],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[z]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[z],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...q},...t.unref(v)})}l.value=N},C=(b=[],E,_=!1)=>{const N=Lt(b,_?E:null,!0);d.value=N.dimensions,m.value=N.dataset;const V=N.dataset,z=[],q=V.length;for(let X=0;X<q;X++){const U={};e.shadowColor&&(U.shadowColor=e.shadowColor,U.shadowBlur=e.shadowBlur,U.shadowOffsetY=e.shadowOffsetY,U.shadowOffsetX=e.shadowOffsetX),z.push({type:"line",...V[X],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[X]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[X],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...U},...t.unref(v)})}l.value=z};t.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([b])=>{(e.dataType==="static"||t.unref(n)==="design")&&S(b)},{immediate:!0,deep:!0});const B=t.ref(!1),g=je(e,b=>{var E,_;S((_=(E=b==null?void 0:b.data)==null?void 0:E.data)==null?void 0:_.rows,!0)}),R=async()=>{var b,E;if(e.dataType==="request")try{B.value=!0;const _=await g();S((E=(b=_==null?void 0:_.data)==null?void 0:b.data)==null?void 0:E.rows,!0)}catch(_){console.error(_)}finally{B.value=!1}},p=Ne(e);I(e.id,{type:e.type,RECORD:""});const D=p("click",b=>{const E=A(e.id);I(e.id,{...E,type:e.type,RECORD:e.tooltipShow?u:b.data})}),w=b=>{i.value.chart.containPixel("grid",[b.offsetX,b.offsetY])&&D()};e.tooltipShow?x.value["zr:click"]=w:x.value.click=D;const L=b=>{var N;const{columns:E=[],rows:_=[]}=((N=b==null?void 0:b.data)==null?void 0:N.data)??{};let P;E.length>0&&(P={name:E[0],types:E.slice(1).map(V=>({label:V,value:V}))}),C(_,P,!0)},M=Xe(e,L),k=async()=>{try{B.value=!0;const b=await M();L(b)}catch(b){console.error(b)}finally{B.value=!1}},O=()=>{switch(e.dataType){case"indicator":k();break;case"request":R();break}};Fe(e,{refreshData:O,resetRecord:()=>{const b=e.id,E=A(b);I(b,{...E,RECORD:""})},click:D});const{setRequest:F}=t.inject(He,{setRequest:b=>{}});return typeof F=="function"&&F({id:e.id,requestFn:O,sortNum:e.requestSort}),o({refreshData:O}),{option:y,style:s,click:D,loading:B,onClose:h,ecanModal:c,eventObj:x,echartRef:i}}}),o1="";function vf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Bl=Ae(ve(bf,[["render",vf]])),ka={...Re,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null},Ta=Te(ka),El=["refreshData","click","resetRecord"];it.use([Ft.CanvasRenderer,Ct.BarChart,De.TitleComponent,De.LegendComponent,De.DatasetComponent,De.ToolboxComponent,De.MarkLineComponent]);const Sf=t.defineComponent({name:"EcanBar",props:{...Ta},components:{Spin:jt,Echarts:Tt,EcanModal:Nt,AModal:he.Modal},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(ze,{pageMode:"normal",fontFamily:""}),i=t.inject("usedComponentList",[]),r=t.ref(),s=t.ref(!1),l=t.ref(!1),d=t.ref(null),c=t.ref([]),f=Ie(e),x=t.ref([]),u=t.ref(),m=t.ref({});let y;const h=t.computed(()=>s.value?Qe:12),A=t.computed(()=>{const{gradientShow:U,gradientColors:j,gradientOffset:H,barBorderRadius:K}=e,te=t.unref(x),ce=te.length,ye=[];for(let G=0;G<ce;G++){const J={...te[G],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(J.stack="stack"),J.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:ee=>{let ne="",ae=e.labelFormatter;ae===""&&(ae="{c}");const{seriesName:ie,name:ue,value:Se,data:ke}=ee||{};return ne+=_e(ae,{textData:{name:ue,value:Se,a:ie,b:ue,c:Se||0,...ke}},{useNewline:!0,useSpace:!0}),ne}},J.itemStyle={},U&&(J.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[G]},{offset:H,color:j[G]},{offset:1,color:j[G]}]}}),K){const ee=K.split(",");if(ee!=null&&ee.length){const ne=[];for(const ae of ee){const ie=parseFloat(ae);isNaN(ie)||ne.push(ie)}J.itemStyle.borderRadius=ne}}e.isShowMarkLine&&(J.markLine={data:[{type:e.markLineType}]}),ye.push(J)}return ye}),I=t.ref([]),v=t.ref(!1),S=t.computed(()=>{const U=e.yAxisLabelFormatter,j=e.xAxisLabelFormatter;return{textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:s.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){l.value=!0;const H=r.value.chart.getOption(),{xAxis:K}=H||{};K&&K.length&&(c.value=K[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:s.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var H;s.value=!0,(H=u.value)==null||H.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){he.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:H=>{var ye;const K=H.length;let te="",ce=e.tooltipFormatter;y=(ye=H[0])==null?void 0:ye.data,ce===""&&(ce="{marker} {a} {c}");for(let G=0;G<K;G++){const{marker:J,seriesName:ee,name:ne,value:ae,data:ie}=H[G]||{};if(G===0){let ue=ne;typeof ne=="string"&&ne[0]==="0"&&!isNaN(+ne)&&(ue=(+ne).toString()),te+=`${mt(j,ue)}<br/>`}te+=_e(ce,{textData:{marker:J,name:ne,value:ae,a:ee,b:ne,c:ae||0,...ie}},{useNewline:!0,useSpace:!0}),te+="<br/>"}return te},textStyle:{color:e.tooltipTextStyleColor,fontSize:h.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(s.value?Qe:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:s.value?Qe:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(x).map((H,K)=>({name:H.name,itemStyle:{color:e.colors[K]},icon:e.legendType})),formatter:H=>fn(e.legendFormatter,{name:H})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(R),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(H){return typeof H=="string"&&H[0]==="0"&&!isNaN(+H)&&(H=(+H).toString()),mt(j,H)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(I):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(H){return mt(U,H)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},series:t.unref(A)}}),C=()=>{s.value=!1},B=(U=[],j=!1)=>{let H={};if(e.dataFieldConfigType==="key"){const K=j?e.keyTypeDataFieldNames:null;H=Lt(U,K)}else if(e.dataFieldConfigType==="value"){const K=j?e.valueTypeDataFieldNames:null;H=Gt(U,K)}x.value=H.dataset,I.value=H.dimensions},g=(U=[],j,H=!1)=>{const te=Lt(U,H?j:null,!0);e.defaultRangeValue&&Fr({props:e,componentList:t.unref(i),getGlobalModel:P},te),x.value=te.dataset,I.value=te.dimensions},R=t.computed(()=>t.unref(I).map(U=>{let j={};return U&&typeof U=="object"?j={...U}:j={value:U},j}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([U])=>{(e.dataType==="static"||t.unref(n)==="design")&&B(U)},{immediate:!0,deep:!0});const p=je(e,U=>{var j,H;B((H=(j=U==null?void 0:U.data)==null?void 0:j.data)==null?void 0:H.rows,!0)}),D=async()=>{var U,j;try{v.value=!0;const H=await p();B((j=(U=H==null?void 0:H.data)==null?void 0:U.data)==null?void 0:j.rows,!0)}catch(H){console.error(H)}finally{v.value=!1}},w=U=>{var te;const{columns:j=[],rows:H=[]}=((te=U==null?void 0:U.data)==null?void 0:te.data)??{};let K;j.length>0&&(K={name:j[0],types:j.slice(1).map(ce=>({label:ce,value:ce}))}),g(H,K,!0)},L=Xe(e,w),M=async()=>{try{v.value=!0;const U=await L();w(U)}catch(U){console.error(U)}finally{v.value=!1}},{loadedData:k}=t.inject(Et,{loadedData:{}}),O=t.ref(!1);t.watch(k,U=>{if(e.dataType==="indicator"){const j=dn(e.graphicConfig);j!=null&&j.length&&(!t.unref(O)&>(e.graphicConfig,U)?(O.value=!0,T()):gt(e.graphicConfig,U)||(O.value=!1))}},{deep:!0});const T=()=>{switch(e.dataType){case"indicator":gt(e.graphicConfig,t.unref(k))&&M();break;case"request":D();break}},F=(U,j)=>!!t.unref(c)[j.value].value.includes(U),b=async()=>{l.value=!1;const U=r.value.chart.getOption();for(let j=0;j<7;j++)await E(U,j)},E=(U,j)=>new Promise(H=>{setTimeout(()=>{const{series:K,color:te,xAxis:ce}=U,ye=r.value.chart,{splitArea:G={}}=ce[0]||{};K.forEach((J,ee)=>{const ne=J.data;let ae="";j%2?ae=te[ee]+"a8":ae=te[ee],ne[d.value].itemStyle={color:ae}}),j%2?(G.show=!0,G.areaStyle.color=t.unref(c).map((J,ee)=>ee===d.value?"#ff003b26":"")):G.show=!1,ye.setOption({series:K,xAxis:ce}),H()},200)});o({refreshData:T});const _=Ne(e),{getGlobalModel:P,setGlobalModel:N}=t.inject(Le,{getGlobalModel:U=>{},setGlobalModel:(U,j)=>{}});N(e.id,{type:e.type,RECORD:""});const V=_("click",U=>{const j=P(e.id);N(e.id,{...j,type:e.type,RECORD:e.tooltipShow?y:U.data})}),{setRequest:z}=t.inject(He,{setRequest:U=>{}});typeof z=="function"&&z({id:e.id,requestFn:T,sortNum:e.requestSort});const q=()=>{const U=e.id,j=P(U);N(U,{...j,RECORD:""})},X=U=>{r.value.chart.containPixel("grid",[U.offsetX,U.offsetY])&&V()};return e.tooltipShow?m.value["zr:click"]=X:m.value.click=V,Fe(e,{refreshData:T,click:V,resetRecord:q}),{option:S,style:f,refreshData:T,click:V,loading:v,onClose:C,ecanModal:u,echartRef:r,handleLocationOk:b,onFilterOption:F,locationVisible:l,locationValue:d,locationNames:c,eventObj:m}}}),i1="",r1="",Cf=e=>(t.pushScopeId("data-v-36e67f03"),e=e(),t.popScopeId(),e),wf={class:"location-wrap"},Af=Cf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function kf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),f=t.resolveComponent("a-select"),x=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{class:"ecan-bar",style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",wf,[Af,t.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(u,m)=>(t.openBlock(),t.createBlock(c,{key:m,value:m},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Dl=Ae(ve(Sf,[["render",kf],["__scopeId","data-v-36e67f03"]])),Ba={...Re,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",yAxisName:"",xAxisName:""},Ea=Te(Ba),Il=["click","refreshData","resetRecord"];it.use([Ft.CanvasRenderer,Ct.ScatterChart,De.ToolboxComponent,De.TitleComponent,De.TooltipComponent,De.LegendComponent,De.MarkLineComponent]);const Tf=t.defineComponent({name:"EcanScatter",props:{...Ea},components:{Spin:jt,Echarts:Tt,EcanModal:Nt},setup(e){const{pageMode:o,fontFamily:n}=t.inject(ze,{pageMode:"normal",fontFamily:""}),a=t.ref(!1),i=Ie(e),r=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?Qe:12),d=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),c=t.computed(()=>{const g=e.xAxisLabelFormatter,R=e.yAxisLabelFormatter;return{textStyle:{fontFamily:t.unref(n)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var p;a.value=!0,(p=s.value)==null||p.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){he.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(p){return typeof p=="string"&&p[0]==="0"&&!isNaN(+p)&&(p=(+p).toString()),mt(g,p)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(p){return mt(R,p)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(p){var O;const{marker:D,seriesName:w}=p,L=((O=p==null?void 0:p.data)==null?void 0:O.record)??{},{name:M,value:k}=L;return _e(e.tooltipFormatter,{textData:{marker:D,seriesName:w,a:w,b:M,c:k,...L}})},axisPointer:{type:"cross"},textStyle:{fontSize:l.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:l.value}},series:[{data:t.unref(r),type:"scatter",symbolSize:e.symbolSize,...t.unref(d)}]}}),{getGlobalModel:f,setGlobalModel:x}=t.inject(Le,{getGlobalModel:g=>{},setGlobalModel:(g,R)=>{}}),u=(g=[],R)=>{const{name:p="name",value:D="value"}=R||{};r.value=g.map(w=>({value:[w[p],w[D]],record:w}))};t.watch(()=>e.data,g=>{(e.dataType==="static"||t.unref(o)==="design")&&u(g)},{immediate:!0,deep:!0});const m=t.ref(!1),y=je(e,g=>{var R,p;u((p=(R=g==null?void 0:g.data)==null?void 0:R.data)==null?void 0:p.rows,e.dataFieldNames)}),h=async()=>{var g,R;if(e.dataType==="request"){m.value=!0;try{const p=await y();u((R=(g=p==null?void 0:p.data)==null?void 0:g.data)==null?void 0:R.rows,e.dataFieldNames)}catch(p){console.error(p)}finally{m.value=!1}}},A=()=>{a.value=!1},I=Ne(e);x(e.id,{type:e.type,RECORD:""});const v=I("click",g=>{const R=e.id,p=f(R);x(R,{...p,type:e.type,RECORD:g==null?void 0:g.data})});Fe(e,{refreshData:()=>{h()},click:v,resetRecord:()=>{const g=e.id,R=f(g);x(g,{...R,RECORD:""})}});const{setRequest:B}=t.inject(He,{setRequest:g=>{}});return typeof B=="function"&&B({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:c,style:i,click:v,loading:m,onClose:A,ecanModal:s}}}),s1="";function Bf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Rl=Ae(ve(Tf,[["render",Bf]])),Da={...Re,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},Ia=Te(Da),Ef=t.defineComponent({name:"EcanCustomGraph",props:{...Ia},components:{Echarts:Tt},setup(e){const o=Ie(e),n=t.ref();return t.watch(()=>e.optionCode,a=>{try{const i=eval;n.value=i(a)}catch(i){console.error(i)}},{immediate:!0}),{style:o,myOption:n,echarts:hs}}});function Df(e,o,n,a,i,r){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const Ll=Ae(ve(Ef,[["render",Df]])),Ra={...Re,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null},La=Te(Ra),Nl=["refreshData","click","resetRecord"];it.use([Ft.CanvasRenderer,Ct.BarChart,Ct.LineChart,De.TitleComponent,De.LegendComponent,De.DatasetComponent,De.ToolboxComponent,De.MarkLineComponent]);const If=t.defineComponent({name:"EcanComboGraph",props:{...La},components:{Spin:jt,Echarts:Tt,EcanModal:Nt,AModal:he.Modal},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(ze,{pageMode:"normal",fontFamily:""}),i=t.inject("usedComponentList",[]),{getGlobalModel:r,setGlobalModel:s}=t.inject(Le,{getGlobalModel:j=>{},setGlobalModel:(j,H)=>{}}),l=t.ref(),d=t.ref(!1),c=t.ref(!1),f=t.ref(null),x=t.ref([]),u=t.ref({});let m;const y=Ie(e),h=t.ref([]),A=t.ref([]),I=t.ref(),v=t.ref([]),S=t.computed(()=>d.value?Qe:12),C=t.computed(()=>({textStyle:{fontFamily:t.unref(a)},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:d.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){c.value=!0;const j=l.value.chart.getOption(),{xAxis:H}=j||{};H&&H.length&&(x.value=H[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:d.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var j;d.value=!0,(j=I.value)==null||j.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){he.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(d.value?Qe:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:d.value?Qe:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(v).map((j,H)=>({name:j.name,itemStyle:{color:e.colors[H]},icon:e.legendType})),formatter:j=>fn(e.legendFormatter,{name:j})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:j=>{var ye;const H=j.length;let K="",te=e.tooltipFormatter;m=(ye=j[0])==null?void 0:ye.data,te===""&&(te="{marker} {a} {c}");const ce=e.seriesTypes;for(let G=0;G<H;G++){const J=ce[G],{tooltipFormatter:ee}=J||{},{marker:ne,seriesName:ae,name:ie,value:ue,data:Se}=j[G]||{};if(G===0){let ke=ie;typeof ie=="string"&&ie[0]==="0"&&!isNaN(+ie)&&(ke=(+ie).toString()),K+=`${mt(e.xAxisLabelFormatter,ke)}<br/>`}K+=_e(ee||te,{textData:{marker:ne,name:ie,value:ue,seriesName:ae,a:ae,b:ie,c:ue||0,...Se}},{useNewline:!0,useSpace:!0}),K+="<br/>"}return K},textStyle:{color:e.tooltipTextStyleColor,fontSize:S.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(A).map(j=>{let H={};return j&&typeof j=="object"?H={...j}:H={value:j},H}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(j){return typeof j=="string"&&j[0]==="0"&&!isNaN(+j)&&(j=(+j).toString()),mt(e.xAxisLabelFormatter,j)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:t.unref(D),series:t.unref(h)})),B=()=>{d.value=!1},g=(j=[],H=!1)=>{let K;if(e.dataFieldConfigType==="key"){const ce=H?e.keyTypeDataFieldNames:null;K=Lt(j,ce)}else if(e.dataFieldConfigType==="value"){const ce=H?e.valueTypeDataFieldNames:null;K=Gt(j,ce)}A.value=K.dimensions;const te=K.dataset;v.value=K.dataset,h.value=p(te)},R=(j=[],H,K=!1)=>{const ce=Lt(j,K?H:null,!0);e.defaultRangeValue&&Fr({props:e,componentList:t.unref(i),getGlobalModel:r},ce),A.value=ce.dimensions;const ye=ce.dataset;v.value=ce.dataset,h.value=p(ye)};function p(j){const H=[],K=j.length,te=e.seriesTypes;for(let ce=0;ce<K;ce++){const ye=te[ce],{type:G,axisIndex:J}=ye||{};let ee={type:G,yAxisIndex:J,...j[ce]};if(G==="line"){const ne={};e.shadowColor&&(ne.shadowColor=e.shadowColor,ne.shadowBlur=e.shadowBlur,ne.shadowOffsetY=e.shadowOffsetY,ne.shadowOffsetX=e.shadowOffsetX),ee={...ee,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[ce]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[ce]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[ce],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...ne}}}if(G==="bar"){const{gradientShow:ne,gradientColors:ae,gradientOffset:ie}=e,ue={};if(e.barBorderRadius){const Se=e.barBorderRadius.split(",");if(Se!=null&&Se.length){const ke=[];for(const qe of Se){const We=parseFloat(qe);isNaN(We)||ke.push(We)}ue.borderRadius=ke}}ne&&(ue.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[ce]},{offset:ie,color:ae[ce]},{offset:1,color:ae[ce]}]}),ee={...ee,barWidth:e.barWidth,itemStyle:ue}}e.isShowMarkLine&&(ee.markLine={data:[{type:e.markLineType}]}),H.push(ee)}return H}t.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([j])=>{(e.dataType==="static"||t.unref(n)==="design")&&g(j)},{immediate:!0,deep:!0});const D=t.computed(()=>{const j=e.yAxis;return j==null?void 0:j.map((H,K)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:K===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:K===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(te){return mt(H.axisLabelFormatter,te)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:K===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:K===0?"right":"left"},max:e.yAxisMaxValue||null}))}),w=t.ref(!1),L=je(e,j=>{var H,K;g((K=(H=j==null?void 0:j.data)==null?void 0:H.data)==null?void 0:K.rows,!0)}),M=async()=>{var j,H;if(e.dataType==="request")try{w.value=!0;const K=await L();g((H=(j=K==null?void 0:K.data)==null?void 0:j.data)==null?void 0:H.rows,!0)}catch(K){console.error(K)}finally{w.value=!1}},k=j=>{var ce;const{columns:H=[],rows:K=[]}=((ce=j==null?void 0:j.data)==null?void 0:ce.data)??{};let te;H.length>0&&(te={name:H[0],types:H.slice(1).map(ye=>({label:ye,value:ye}))}),R(K,te,!0)},O=Xe(e,k),T=async()=>{try{w.value=!0;const j=await O();k(j)}catch(j){console.error(j)}finally{w.value=!1}},{loadedData:F}=t.inject(Et,{loadedData:{}}),b=t.ref(!1);t.watch(F,j=>{if(e.dataType==="indicator"){const H=dn(e.graphicConfig);H!=null&&H.length&&(!t.unref(b)&>(e.graphicConfig,j)?(b.value=!0,E()):gt(e.graphicConfig,j)||(b.value=!1))}},{deep:!0});const E=()=>{switch(e.dataType){case"indicator":gt(e.graphicConfig,t.unref(F))&&T();break;case"request":M();break}},_=(j,H)=>!!t.unref(x)[H.value].value.includes(j),P=async()=>{c.value=!1;const j=l.value.chart.getOption();for(let H=0;H<7;H++)await N(j,H)},N=(j,H)=>new Promise(K=>{setTimeout(()=>{const{series:te,color:ce,xAxis:ye}=j,G=l.value.chart,{splitArea:J={}}=ye[0]||{};te.forEach((ee,ne)=>{const ae=ee.data;let ie="";H%2?ie=ce[ne]+"a8":ie=ce[ne],ae[f.value].itemStyle={color:ie}}),H%2?(J.show=!0,J.areaStyle.color=t.unref(x).map((ee,ne)=>ne===f.value?"#ff003b26":"")):J.show=!1,G.setOption({series:te,xAxis:ye}),K()},200)});o({refreshData:E});const V=Ne(e);s(e.id,{type:e.type,RECORD:""});const z=V("click",j=>{const H=r(e.id);s(e.id,{...H,type:e.type,RECORD:e.tooltipShow?m:j==null?void 0:j.data})}),q=j=>{l.value.chart.containPixel("grid",[j.offsetX,j.offsetY])&&z()};e.tooltipShow?u.value["zr:click"]=q:u.value.click=z;const{setRequest:X}=t.inject(He,{setRequest:j=>{}});return typeof X=="function"&&X({id:e.id,requestFn:E,sortNum:e.requestSort}),Fe(e,{resetRecord:()=>{const j=e.id,H=r(j);s(j,{...H,RECORD:""})},refreshData:E,click:z}),{style:y,option:C,click:z,loading:w,onClose:B,ecanModal:I,echartRef:l,handleLocationOk:P,onFilterOption:_,locationVisible:c,locationValue:f,locationNames:x,eventObj:u}}}),f1="",u1="",Rf=e=>(t.pushScopeId("data-v-db85dc30"),e=e(),t.popScopeId(),e),Lf={class:"location-wrap"},Nf=Rf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _f(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),f=t.resolveComponent("a-select"),x=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",Lf,[Nf,t.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(u,m)=>(t.openBlock(),t.createBlock(c,{key:m,value:m},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const _l=Ae(ve(If,[["render",_f],["__scopeId","data-v-db85dc30"]])),Na={...Re,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1},_a=Te(Na),Ol=["refreshData","click","resetRecord"];it.use([Ft.CanvasRenderer,Ct.RadarChart,De.ToolboxComponent,De.TitleComponent,De.LegendComponent]);const Of=t.defineComponent({name:"EcanRadar",props:{..._a},components:{Spin:jt,Echarts:Tt,EcanModal:Nt},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(ze,{pageMode:"normal",fontFamily:""}),i=t.ref(),r=t.ref(!1),s=Ie(e),l=t.ref([]),d=t.ref(),c=t.computed(()=>r.value?Qe:12),f=t.ref([]),x=t.ref(e.valueTypeDataFieldNames.name),u=t.computed(()=>{const T=t.unref(f),F=T.length,b=[];for(let E=0;E<F;E++){const{name:_,data:P=[]}=T[E],N=[{name:_,value:P.map(q=>q.value)}];let V=e.colors[E];if(e.gradientShow){const{gradientOffset:q,gradientColors:X}=e;V={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[E]},{offset:q,color:X[E]},{offset:1,color:X[E]}]}}const z={type:"radar",name:_,data:N,areaStyle:{color:V,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:q=>{const{data:X,value:U}=q;let j=0,H="0%";if(X)for(const K of X.value)j+=+K;return j&&(H=`${(U/j*100).toFixed(2)}%`),_e(e.labelFormatter,{textData:{value:U,percent:H}},{useNewline:!1,useSpace:!1})}}};b.push(z)}return b}),m=t.computed(()=>{var _;const T=[],F=[],b=t.unref(f),E=b.length;for(let P=0;P<E;P++){const{data:N=[]}=b[P];for(let V=0;V<N.length;V++)F.push(N[V].value)}if((_=l.value)!=null&&_.length){const P=F!=null&&F.length?Math.max(...F)*1.2:0;for(const N of l.value)T.push({name:N,max:P})}return T}),y=t.computed(()=>({textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:r.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var T;r.value=!0,(T=d.value)==null||T.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){he.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:c.value},show:e.tooltipShow,formatter:T=>{let F="",b=e.tooltipFormatter;b===""&&(b="{marker} {a} {c}");for(let E=0;E<t.unref(m).length;E++){const _=t.unref(m)[E],{marker:P,seriesName:N,value:V}=T||{};E===0&&N&&(F+=`${N}<br/>`),F+=_e(b,{textData:{marker:P,name:_.name,value:V[E],a:_.name,b:_.name,c:V[E]||0,type:N}},{useNewline:!0,useSpace:!0}),F+="<br/>"}return F},position:e.tooltipPosition||void 0},radar:{indicator:t.unref(m),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(r.value?Qe:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?Qe:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(f).map(T=>({name:T.name,icon:e.legendType})),formatter:T=>fn(e.legendFormatter,{name:T})},series:t.unref(u)})),h=()=>{r.value=!1},{getGlobalModel:A,setGlobalModel:I}=t.inject(Le,{getGlobalModel:T=>{},setGlobalModel:(T,F)=>{}}),v=(T=[],F=!1)=>{let b;if(e.dataFieldConfigType==="key"){const E=F?e.keyTypeDataFieldNames:null;b=Lt(T,E)}else if(e.dataFieldConfigType==="value"){const E=F?e.valueTypeDataFieldNames:null;b=Gt(T,E)}l.value=b.dimensions,f.value=b.dataset},S=(T=[],F,b=!1)=>{const _=Lt(T,b?F:null,!0);l.value=_.dimensions,f.value=_.dataset};t.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([T])=>{(e.dataType==="static"||t.unref(n)==="design")&&v(T)},{immediate:!0,deep:!0});const C=t.ref(!1),B=je(e,T=>{var F,b;v((b=(F=T==null?void 0:T.data)==null?void 0:F.data)==null?void 0:b.rows,!0)}),g=async()=>{var T,F;if(e.dataType==="request")try{C.value=!0;const b=await B();v((F=(T=b==null?void 0:b.data)==null?void 0:T.data)==null?void 0:F.rows,!0)}catch(b){console.error(b)}finally{C.value=!1}},R=Ne(e);I(e.id,{type:e.type,RECORD:""});const p=T=>{const F=T.event.topTarget.__dimIdx;F!==void 0&&R("click",()=>{var P;const{value:b,name:E}=T.data||{},_=A(e.id);I(e.id,{..._,type:e.type,RECORD:{[t.unref(x)]:((P=t.unref(m)[F])==null?void 0:P.name)||"",[E]:b[F],seriesName:E}})})()},D=T=>{var _;const{columns:F=[],rows:b=[]}=((_=T==null?void 0:T.data)==null?void 0:_.data)??{};let E;F.length>0&&(x.value=F[0],E={name:F[0],types:F.slice(1).map(P=>({label:P,value:P}))}),S(b,E,!0)},w=Xe(e,D),L=async()=>{try{C.value=!0;const T=await w();D(T)}catch(T){console.error(T)}finally{C.value=!1}},M=()=>{switch(e.dataType){case"indicator":L();break;case"request":g();break}};Fe(e,{refreshData:M,resetRecord:()=>{const T=e.id,F=A(T);I(T,{...F,RECORD:""})},click:p});const{setRequest:O}=t.inject(He,{setRequest:T=>{}});return typeof O=="function"&&O({id:e.id,requestFn:M,sortNum:e.requestSort}),o({refreshData:M}),{option:y,style:s,click:p,loading:C,onClose:h,ecanModal:d,echartRef:i}}}),g1="";function Ff(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Fl=Ae(ve(Of,[["render",Ff]])),Mf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoac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G4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",Oa={...Re,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},Fa=Te(Oa),Ml=["click"],Vf=t.defineComponent({name:"EcanBorder",props:{...Fa},setup(e){const o=Ie(e,["background"]),n=t.computed(()=>{const{isTransparent:y,gradientShow:h,gradientColor:A,gradientOffset:I,gradientAngle:v,backgroundColor:S}=e;if(h){let C=A;return y&&(C="transparent"),C?{background:`linear-gradient(${v}, ${S}, ${C} ${I*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:y}=e;let h={};return y!=null&&y.length&&y.find(I=>I.emit==="showModal")&&(h={cursor:"pointer"}),h}),{theme:i}=t.inject(ze,{theme:"light"}),r=t.computed(()=>{let y="";switch(e.titleMode){case"type-2":y="2";break}return y}),s=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":Mf,"../../assets/border-title-decoration-left2.png":zf})[`../../assets/border-title-decoration-left${r.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":Pf,"../../assets/border-title-decoration-right2.png":qf})[`../../assets/border-title-decoration-right${r.value}.png`],self.location).href),d=t.computed(()=>({width:"100%",height:"100%"})),c=t.computed(()=>{const{borderRadius:y}=e,h=[],A={};if(y){const I=y.split(",");for(const v of I)(+v||+v==0)&&h.push(+v+"px")}return h!=null&&h.length&&(A.borderRadius=h.join(" ")),A}),x=Ne(e)("click",()=>{}),u=t.ref([]);t.watch(()=>e.data,y=>{u.value=y},{immediate:!0,deep:!0}),Fe(e,{click:x});const{setGlobalModel:m}=t.inject(Le,{setGlobalModel:(y,h)=>{}});return m(e.id,{type:e.type,value:u}),{style:o,gradientStyle:n,click:x,borderStyle:d,theme:i,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),y1="",_t=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),Hf=["id"],jf=_t(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Wf=_t(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Gf=_t(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Uf=_t(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),$f={class:"title-item"},Yf=["src"],Kf={class:"title"},Zf=["src"],Qf=_t(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Jf=_t(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Xf=_t(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),eu=_t(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),tu={key:2,class:"left-title"},nu={class:"title"};function ou(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"no-title",style:t.normalizeStyle(e.borderStyle)},[e.useBorderModify?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[jf,Wf,Gf,Uf],64)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),e.mode==="top-title"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"top-title",style:t.normalizeStyle(e.borderStyle)},[t.createElementVNode("div",{class:t.normalizeClass(["title-item-wrapper",e.titleMode])},[t.createElementVNode("div",$f,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Yf),t.createElementVNode("div",Kf,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Zf)])],2),Qf,Jf,Xf,eu],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",tu,[t.createElementVNode("div",nu,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,Hf)}const zl=Ae(ve(Vf,[["render",ou],["__scopeId","data-v-8dd53b8f"]])),Ma={...Re,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:10,componentList:[],hideTabs:!1,gridTopPx:"0",gridBottomPx:"0",gridLeftPx:"0",gridRightPx:"0"},za=Te(Ma),Pl=["tabChange"],au=t.defineComponent({name:"EcanTabs",props:{...za},components:{ASelect:he.Select,ASelectOption:he.SelectOption,MarqueeScroll:Wn},setup(e){const o=Ie(e),n=t.ref(0);t.watch(()=>e.activeKey,p=>{n.value=p},{immediate:!0});const{pageMode:a}=t.inject(ze,{pageMode:"normal"}),i=t.inject("getContainerMap",()=>{}),r=t.inject("componentList",[]),s=["ecanBorder","ecanTabs","ecanCirculate"],l=t.computed(()=>i()||{}),d=p=>{const D=t.unref(l)[p],w=[];if(D)for(const L in D)for(const M of D[L]){const k=t.unref(r).find(O=>O.id===M);w.push(M),s.includes(k==null?void 0:k.type)&&w.push(...d(M))}return w},c=t.computed(()=>d(e.id));let f=null;const x=()=>{const p=Array.isArray(t.unref(m))?t.unref(m).length-1:0;t.unref(a)!=="design"&&!e.isAutoScroll&&e.autoSwitch&&p>0&&(f=setInterval(()=>{const D=t.unref(n)+1;D<=p?n.value=D:n.value=0,y.value=t.unref(m)[t.unref(n)],v()},e.autoSwitchInterval*1e3))},u=()=>{clearInterval(f)};t.onMounted(()=>{t.unref(a)!=="design"&&x()}),t.onBeforeUnmount(()=>{u()});const m=t.ref([]),y=t.ref({});t.watch(()=>e.data,p=>{m.value=p,y.value=Array.isArray(p)&&p.length>0?p[0]:{}},{immediate:!0,deep:!0});const h=p=>n.value===p,A=Ne(e),{setGlobalModel:I}=t.inject(Le,{setGlobalModel:(p,D)=>{}});I(e.id,{value:y,activeKey:n});const{emitRefreshPage:v}=t.inject(sn,{emitRefreshPage:()=>{}}),S=p=>{let{tab:D,index:w}=p||{};if(p.label){const L=t.unref(m).findIndex(M=>M.title===p.label);L!==-1&&(w=L,D=t.unref(m)[L])}A("tabChange",()=>{!isNaN(+w)&&w!==t.unref(n)&&(y.value=D,n.value=w,v())})()},C=t.computed(()=>{const p=e.componentList.map(D=>parseFloat(D.left)+parseFloat(D.width)).sort((D,w)=>w-D)[0];return{width:p?p+"px":"100%"}}),B=()=>{t.unref(a)!=="design"&&u()},g=p=>{var D,w;return p?(w=(D=p==null?void 0:p.parentNode)==null?void 0:D.className)!=null&&w.includes("ecan-")?p.parentNode.getAttribute("cpntid"):g(p.parentNode):""},R=p=>{var D;if(t.unref(a)!=="design"){const w=(p==null?void 0:p.toElement)||{};if((D=w==null?void 0:w.className)!=null&&D.includes("ecan-"))t.unref(c).includes(w.getAttribute("cpntid"))||x();else if((w==null?void 0:w.className)==="page-config")x();else{const L=g(w);t.unref(c).includes(L)||x()}}};return Fe(e,{tabChange:S}),{style:o,activeKey:n,isActive:h,tabChange:S,myData:m,useImagePath:pt,pageMode:a,scrollWrapStyle:C,onMouseEnter:B,onMouseLeave:R}}}),p1="",iu=["id"],ru=["onClick"];function lu(e,o,n,a,i,r){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select"),d=t.resolveComponent("marquee-scroll");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tabs",style:t.normalizeStyle(e.style),id:"container_"+e.id,onMouseenter:o[0]||(o[0]=(...c)=>e.onMouseEnter&&e.onMouseEnter(...c)),onMouseleave:o[1]||(o[1]=(...c)=>e.onMouseLeave&&e.onMouseLeave(...c))},[e.pageMode==="design"||!e.isAutoScroll?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection,margin:`${e.gridTopPx||0} ${e.gridRightPx||0} ${e.gridBottomPx||0} ${e.gridLeftPx||0}`})},[e.tabType==="tabs"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.myData,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(f)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(f)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:f,onClick:t.withModifiers(x=>e.tabChange({tab:c,index:f}),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(f)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,ru))),128)):e.tabType==="select"?(t.openBlock(),t.createBlock(l,{key:1,value:e.activeKey,style:t.normalizeStyle({width:e.tabWidth})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(c,f)=>(t.openBlock(),t.createBlock(s,{key:f,value:f,onClick:x=>e.tabChange({tab:c,index:f})},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):t.createCommentVNode("",!0)],4)),[[t.vShow,e.pageMode==="design"||!e.hideTabs]]):t.createCommentVNode("",!0),e.pageMode!=="design"&&e.isAutoScroll?(t.openBlock(),t.createBlock(d,{key:1,visible:e.isAutoScroll,step:e.scrollSpeed,vertical:!1,style:t.normalizeStyle({height:e.height})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"scroll-wrap",style:t.normalizeStyle(e.scrollWrapStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,c=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):t.createCommentVNode("",!0)],44,iu)}const ql=Ae(ve(au,[["render",lu],["__scopeId","data-v-5848288f"]])),Pa={...Re,name:"循环列表",type:"ecanCirculate",keyName:"循环列表",width:"300px",height:"300px",zIndex:0,borderColor:"#eee",borderStyle:"solid",borderWidth:"2px",graphicConfig:{},isAutoScroll:!1,scrollSpeed:10,componentList:[],data:[],dataType:"indicator",keyFieldMap:[],unitInterval:15,backgroundColor:"#ffffff",colNum:null,scrollDirection:"horizontal"},qa=Te(Pa),Vl=["click","refreshData","resetRecord"];let Hl=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((o,n)=>(n&=63,n<36?o+=n.toString(36):n<62?o+=(n-26).toString(36).toUpperCase():n>62?o+="-":o+="_",o),"");const su=t.defineComponent({name:"EcanCirculate",props:{...qa,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll:Wn,Skeleton:Wt},setup(e,{expose:o}){const n=t.ref(!1),a=Ie(e,["background"]),i=t.inject("usedComponentList",[]),r=t.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=t.inject(Le,{getGlobalModel:p=>{},setGlobalModel:(p,D)=>{}}),d=t.ref([]),c=t.ref({}),{pageMode:f}=t.inject(ze,{pageMode:"normal"}),x=t.computed(()=>{if(t.unref(r)){const p=document.body.clientWidth,D=e.sourceWidth||parseFloat(e.width);return p/D||1}else return 1});function u(p,D){const w=D.find(L=>L.id===e.id);if(w)for(const L of p)L.left=parseFloat(L.left)-parseFloat(w.sourceLeft||w.left)+"px",L.top=parseFloat(L.top)-parseFloat(w.sourceTop||w.top)+"px"}const m=p=>{const D=p.sort((k,O)=>parseFloat(k.top)-parseFloat(O.top))[0],w=p.sort((k,O)=>parseFloat(k.left)-parseFloat(O.left))[0],L=p.map(k=>parseFloat(k.left)+parseFloat(k.width)).sort((k,O)=>O-k)[0],M=p.map(k=>parseFloat(k.top)+parseFloat(k.height)).sort((k,O)=>O-k)[0];if(w&&L&&D&&M){const k=parseFloat(w.left),O=parseFloat(D.top);return{width:L-k,height:M-O,left:k}}else return{width:0,height:0,left:0}},y=t.ref({}),h=p=>{var _,P;const D=[],{graphicConfig:w,id:L,componentList:M,keyFieldMap:k,unitInterval:O,colNum:T}=e;let F=Oe.cloneDeep(M),b=[];if((_=t.unref(i))!=null&&_.length)for(const N of t.unref(i))b.push(N),(P=N==null?void 0:N.componentList)!=null&&P.length&&b.push(...N.componentList);if(w.pageMode==="design"&&w.preview){const{containerMap:N}=w.pageConfig||{};b=w.componentList||[],b.push(e),F=Ca(N,Oe.cloneDeep(b),L)}u(F,b);const E=m(F);if(p!=null&&p.length){const{width:N,left:V,height:z}=E;let q=0,X=0;p.forEach((U,j)=>{U.index=j+1;const H=Hl(),K=Oe.cloneDeep(F);for(const te of K){const ce=k.find(G=>G.keyName===te.keyName),ye=Hl();if(te.left=(parseFloat(te.left)+q)*t.unref(x)+"px",te.top=(parseFloat(te.top)+X)*t.unref(x)+"px",te.scale=t.unref(x),te.id=ye,te.keyName=te.name+"_"+ye,te.unitId=H,ce!=null&&ce.fieldName){const G=te.text.match(/\{(.+?)\}/g);switch(te.type){case"ecanText":{te.data={value:String(U[ce.fieldName])},G!=null&&G.length||(te.text="{value}");break}case"ecanProportion":{te.data={percent:String(U[ce.fieldName])},G!=null&&G.length||(te.text="{percent}");break}}}}T&&U.index%T===0?(q=0,X+=O+z):q+=O+N,D.push(...K),y.value[H]=U}),c.value={width:((T||p.length)*(N+O)+V)*t.unref(x)+"px",height:(T?Math.ceil(p.length/T)*(O+z):O+z)*t.unref(x)+"px"}}d.value=D},A=p=>{var w;const{rows:D=[]}=((w=p==null?void 0:p.data)==null?void 0:w.data)??{};h(D)},I=Xe(e,A),v=async()=>{try{n.value=!0;const p=await I();A(p)}catch(p){console.error(p)}finally{n.value=!1}},S=()=>{switch(e.dataType){case"indicator":v();break}};Fe(e,{refreshData:S,resetRecord:()=>{const p=e.id,D=s(p);l(p,{...D,RECORD:""})}}),o({refreshData:S}),l(e.id,{type:e.type,RECORD:""});const{setRequest:B}=t.inject(He,{setRequest:p=>{}});typeof B=="function"&&B({id:e.id,requestFn:S,sortNum:e.requestSort});const g=Ne(e);return{loading:n,style:a,myComponentList:d,scrollWrapStyle:c,pageMode:f,click:p=>{let D=p.target;if(D){let w=D.getAttribute("unitId");for(;!w&&!D.className.includes("ecan-");)D=D.parentElement,w=D.getAttribute("unitId");w&&g("click",()=>{const L=s(e.id);l(e.id,{...L,type:e.type,RECORD:t.unref(y)[w]})})()}}}}}),v1="",cu=["id"];function du(e,o,n,a,i,r){const s=t.resolveComponent("marquee-scroll"),l=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-circulate",style:t.normalizeStyle(e.style),id:"container_"+e.id,onClick:o[0]||(o[0]=(...d)=>e.click&&e.click(...d))},[t.createVNode(l,{loading:e.loading},{default:t.withCtx(()=>{var d;return[(d=e.myComponentList)!=null&&d.length?(t.openBlock(),t.createBlock(s,{key:0,visible:e.pageMode!=="design"&&e.isAutoScroll,step:e.scrollSpeed,vertical:e.scrollDirection==="vertical",marqueeStyle:{height:"100%"},wrapStyle:{height:"100%",overflow:"auto"}},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"scroll-wrap",style:t.normalizeStyle(e.scrollWrapStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myComponentList,c=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","vertical"])):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,cu)}const jl=Ae(ve(su,[["render",du],["__scopeId","data-v-85608bec"]])),Va={...Re,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:""},Ha=Te(Va),Wl=["click"],ja=t.defineComponent({name:"EcanImage",props:{...Ha},setup(e){const o=Ie(e),n=t.computed(()=>pt(e.imgUrl)),{pageMode:a}=t.inject(ze,{pageMode:"normal"}),{getGlobalModel:i,setGlobalModel:r}=t.inject(Le,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Ne(e)("click",()=>{const d=i(e.id);if(r(e.id,{...d,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{r(e.id,{...d,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",f=zo(t.unref(a),c),x=e.href;let u=x||f;u=_e(u);const m=e.target;m&&(m!=="event"?window.open(u,"_"+m):window.parent.postMessage({type:"openPage",url:x},"*"))});return Fe(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),Gl=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},Ul=ja.setup;ja.setup=Ul?(e,o)=>(Gl(),Ul(e,o)):Gl;const C1="",fu=["src"];function uu(e,o,n,a,i,r){return e.myImgUrl!==""?(t.openBlock(),t.createElementBlock("img",{key:0,class:"ecan-image",style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,fu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const $l=Ae(ve(ja,[["render",uu],["__scopeId","data-v-47ea6e7c"]])),Wa={...Re,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ga=Te(Wa),hu=t.defineComponent({name:"EcanIframe",props:{...Ga},setup(e){const o=Ie(e),{contextRequestUrl:n}=t.inject(ze,{contextRequestUrl:""}),a=t.computed(()=>{let i=_e(e.link);if(e.linkType==="erd"&&i!=null){let r=t.unref(n);r[r.length-1]==="/"?r+="erdReport":r+="/erdReport",i=`${W0||r}?_t=0&uid=${i}`}return i});return{style:o,myLink:a}}}),A1="",gu=["src"];function mu(e,o,n,a,i,r){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,gu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Yl=Ae(ve(hu,[["render",mu],["__scopeId","data-v-19bc100c"]])),Ua={...Re,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},$a=Te(Ua),Kl=["click","refreshData","resetRecord","exportTableData"],yu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb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jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",Ya=t.defineComponent({name:"EcanTable",components:{Skeleton:Wt,AButton:he.Button,AInput:he.Input,ACheckboxGroup:he.CheckboxGroup,ATable:he.Table,ATableSummary:he.TableSummary,ATableSummaryRow:he.TableSummaryRow,ATableSummaryCell:he.TableSummaryCell},props:{...$a},setup(e,{expose:o}){const n=t.ref(!1),a=t.computed(()=>{const W=Oe.cloneDeep(e.columns);return e.isUseSeq&&W.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&W.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),W}),i=t.ref(),r=t.ref(!1),s=Ie(e),l=t.ref([]),d=t.computed(()=>e.scrollX),c=t.ref(0),f=()=>{let W=0;switch(e.size){case"small":W=50;break;case"middle":W=53;break;default:W=65;break}return W};t.watchEffect(()=>{var W;(W=l.value)!=null&&W.length&&e.height&&t.nextTick(()=>{let Y=parseFloat(e.height);const Q=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),re=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),se=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let le=0;if(re&&(Y-=(re==null?void 0:re.clientHeight)||0),se&&e.isSummaryFixed&&(le=(se==null?void 0:se.clientHeight)||0,Y-=le),e.paginationShow){let oe=0;oe=f(),oe&&(Y-=oe)}(Q==null?void 0:Q.clientHeight)>Y?c.value=Y:c.value=0,t.nextTick(()=>{if(le){const oe=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),Ce=(oe==null?void 0:oe.clientHeight)||0;le!==Ce&&t.unref(c)&&(c.value=Y+le-Ce)}})})});const x=t.ref([]),u=t.ref([]),m=t.ref([]),y=t.ref([]),h=t.ref(0),A=t.ref(1),I=t.ref(e.paginationPageSize||10),v=t.reactive([]),S=(W,Y)=>{let Q="";return W.forEach((re,se)=>{const{value:le,rule:oe}=re;re.conditions?Q+=`(${S(re.conditions,re.join)})`:le&&oe&&(Q+=`value ${oe} '${le}'`),Q+=`${se===W.length-1?"":Y?" "+Y+" ":""}`}),Q},C=(W=[])=>{var Y,Q;if(Array.isArray(W)&&W.length>0){let re=W.length;const se=e.columnsFixedNum;if(e.dataType==="indicator"&&((Y=t.unref(a))!=null&&Y.length)){const{graphicConfig:{indicators:le=[]}}=e;W.forEach((oe,Ce)=>{if(t.unref(a)[Ce])for(const Ve in t.unref(a)[Ce])["dataIndex","title"].includes(Ve)||(oe[Ve]=t.unref(a)[Ce][Ve]);const Be=le.find(Ve=>Ve.label===oe.title),{showLabel:Ee=""}=Be||{};Ee&&(oe.title=Ee)})}for(let le=re-1;le>=0;le--)(Q=W[le])!=null&&Q.isHidden&&W.splice(le,1);re=W.length;for(let le=0;le<re;le++){const oe=W[le];if(le<se?oe.fixed="left":oe.fixed=!1,e.isSortByFront&&oe.sorter){const bt=oe.dataIndex;oe.sorter=(qt,In)=>qt[bt]-In[bt]}const{cellAlign:Ce="center",cellColor:Be,dataIndex:Ee,title:Ve,tableFilter:ot,headerCellAlign:kt,headerCellColor:Ot,overflow:Ze,conditions:at}=oe;ot&&(v.push(Ee),oe.filterOptionsInputValue="",oe.filterCheckboxGroupValue=[],oe.customFilterDropdown=!0,oe.onFilter=(bt,qt)=>qt[Ee].toString().toLowerCase().includes(bt.toLowerCase())),at&&(oe.conditionCode=S(at)),oe.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:kt||"center",color:Ot||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),oe.customCell=(bt,qt)=>({style:{textAlign:Ce,color:Be||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(K)===qt&&e.clickHighlight},onClick:V("click",()=>{const In=e.id,Yu=z(In);bt={dataIndex:Ee,title:Ve,...bt},q(In,{...Yu,type:e.type,RECORD:bt})})}),Ze==="ellipsis"?oe.ellipsis=!0:oe.ellipsis=!1,Array.isArray(oe.children)&&C(oe.children)}}},B=(W=[])=>{var Q;let Y=Oe.cloneDeep(W);return(Q=t.unref(y))!=null&&Q.length&&(Y=Oe.cloneDeep(t.unref(y))),e.isUseSeq&&Y.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Y.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),C(Y),Y};t.watch(I,()=>{A.value=1,G(!1)}),t.watch(i,W=>{r.value=!!W}),t.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{x.value=B(Oe.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([W,Y])=>{Y==="static"&&(u.value=W)},{immediate:!0});const g=t.ref({}),R=W=>{if(Array.isArray(W)){const Y=W.length,Q=v,re=Q.length,se={};for(let oe=0;oe<Y;oe++){const Ce=W[oe];for(let Be=0;Be<re;Be++){const Ee=Q[Be];if(se[Ee])se[Ee].add(Ce[Ee]);else{const Ve=new Set;Ve.add(Ce[Ee]),se[Ee]=Ve}}}const le={};for(const oe in se)if(Object.prototype.hasOwnProperty.call(se,oe)){const Ce=se[oe],Be=Array.from(Ce);le[oe]=Be.map(Ee=>({label:Ee,value:Ee}))}g.value=le}};t.watch(()=>[e.isReverse,x.value,u.value],()=>{const W=t.unref(x),Y=t.unref(u);if(R(Y),e.isReverse){const{columns:Q,dataSource:re}=p(Oe.cloneDeep(W),Oe.cloneDeep(Y));m.value=Q,l.value=re}else m.value=W,l.value=Y},{immediate:!0});const p=(W,Y)=>{const Q=W[0],re=[{title:Q.title,dataIndex:"col0",key:"col0",align:"center"}];for(let le=0;le<Y.length;le++){const oe=Y[le],Ce="col"+(le+1);re.push({title:oe[Q.dataIndex],dataIndex:Ce,key:Ce,align:"center"})}const se=[];for(let le=1;le<W.length;le++){const oe=W[le],Ce={col0:oe.title};for(let Be=0;Be<Y.length;Be++){const Ee=Y[Be];Ce[`col${Be+1}`]=Ee[oe.dataIndex]}se.push(Ce)}return{columns:re,dataSource:se}},D=t.ref(""),w=W=>{var re;const{rows:Y=[],total:Q=0}=((re=W==null?void 0:W.data)==null?void 0:re.data)||{};if(h.value=Q,Array.isArray(Y)&&(u.value=Y),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:se=[]}=e,le=se.find(oe=>oe.key==="dataSqlId");if((le==null?void 0:le.value)==="xt_jxzebg"){const oe=Y.filter(Ce=>!Ce.绩效总额).map(Ce=>Ce.ORG_NAME);oe!=null&&oe.length&&t.nextTick(()=>{he.notification.warning({message:"提示",description:`当前时段${oe.join("、")}绩效数据为空`,duration:3})})}}},L=je(e,w),M=async(W=!0,Y={})=>{try{W&&(n.value=!0),t.unref(D)&&(Y.orderCondition=t.unref(D)),e.paginationShow&&(Y={pageNum:t.unref(A),pageSize:t.unref(I)||"10",layer:"1",...Y});const Q=await L(Y);w(Q)}catch(Q){console.error(Q)}finally{n.value=!1}},k=({current:W},Y,Q)=>{if(A.value=W,Q&&Object.keys(Q).length>0){const{field:re,order:se}=Q,oe={ascend:"asc",descend:"desc"}[se];re!=null&&oe!=null&&oe?D.value=re+" "+oe:oe||(D.value="")}e.isSortByFront||G(!1)},O=t.computed(()=>{const W=e.simple,Y=[e.paginationPosition],Q={};return e.isShowTotal&&(Q.showTotal=re=>`共 ${re} 条数据`),e.paginationShow&&{simple:W,position:Y,total:t.unref(h),current:t.unref(A),pageSize:t.unref(I)||"10",showSizeChanger:!1,size:"large",...Q}}),T=W=>+W==1?"是":+W==0?"否":W,F=(W,Y)=>{const{format:Q,retentiondigit:re,customFormatter:se,defaultVal:le}=Y;let oe="";if(Q==null||Q==="")oe=W;else{const Ce={money:Mo,percentage:Dn,contrast:Dn,boolean:T,decimals:Jc,custom:Or};Ce[Q]||(oe=""),Q==="decimals"?oe=Ce[Q](W,re)||"":Q==="custom"?oe=Ce[Q](W,se)||"":oe=Ce[Q](W)||""}return oe||(oe=le),oe},b=W=>W==="contrast"?"upDown":"",E=W=>{const{text:Y,format:Q,declineColor:re="#39cf93",increaseColor:se="#ff512e"}=W;if(Q==="contrast"){const le={fontSize:e.fontSize},oe=parseFloat(Y+"");return oe>=0?le.color=se:oe<0&&(le.color=re),le}else return{}},_=t.computed(()=>{const{fontSize:W}=e;return{width:W,height:W,textIndent:`-${parseFloat(W)*2}px`,overflow:"hidden"}}),P=W=>{const{text:Y,declineColor:Q="#39cf93",increaseColor:re="#ff512e"}=W,{fontSize:se}=e,le=parseFloat(Y+""),oe={width:se,verticalAlign:"unset"};return le>=0?oe.filter=`drop-shadow(${re||"#ff512e"} ${se} -1px)`:le<0&&(oe.filter=`drop-shadow(${Q||"#39cf93"} ${se} -1px)`),oe},N=W=>{const Y=parseFloat(W+"");if(Y>=0)return jo;if(Y<0)return Wo},V=Ne(e),{getGlobalModel:z,setGlobalModel:q}=t.inject(Le,{getGlobalModel:W=>{},setGlobalModel:(W,Y)=>{}});q(e.id,{type:e.type,RECORD:""});const X=(W=[],Y=[])=>{const Q=W.map(re=>({title:re,dataIndex:re,key:re}));y.value=Oe.cloneDeep(Q),x.value=B(Q),u.value=Y},U=W=>{var Y,Q,re,se;X((Q=(Y=W==null?void 0:W.data)==null?void 0:Y.data)==null?void 0:Q.columns,(se=(re=W==null?void 0:W.data)==null?void 0:re.data)==null?void 0:se.rows)},j=Xe(e,U),H=async(W=!0)=>{try{W&&(n.value=!0);const Y=t.unref(D).split(" "),Q={};e.isSortByFront||(Q.sort={order:Y[1],field:Y[0]});const re=await j(Q);U(re)}catch(Y){console.error(Y)}finally{n.value=!1}},K=t.ref(-1),te=(W,Y)=>({onClick:V("rowClick",()=>{const Q=e.id,re=z(Q);q(Q,{...re,type:e.type,RECORD:W}),K.value=Y})}),{loadedData:ce}=t.inject(Et,{loadedData:{}}),ye=t.ref(!1);t.watch(ce,W=>{if(e.dataType==="indicator"){const Y=dn(e.graphicConfig);Y!=null&&Y.length&&(!t.unref(ye)&>(e.graphicConfig,W)?(ye.value=!0,G()):gt(e.graphicConfig,W)||(ye.value=!1))}},{deep:!0});const G=(W=!0)=>{switch(e.dataType){case"request":M(W);break;case"indicator":gt(e.graphicConfig,t.unref(ce))&&H(W);break}},J=()=>{const W=e.id,Y=z(W);q(W,{...Y,type:e.type,RECORD:""})},ee=t.computed(()=>{const W=t.unref(m);let Y=0;const{subTotalColumn:Q,subTotalName:re}=e;Q&&(Y=W.findIndex(Be=>Be.dataIndex===Q),Y<0&&(Y=0));const se=[];let le=0;for(let Be=0;Be<W.length;Be++){const Ee=W[Be],{isCalcTotal:Ve}=Ee;Be===Y?se.push({...Ee,total:re}):Ve?(se.push({...Ee,index:Be,total:0}),le++):se.push({...Ee})}if(le===0)return[];const oe=t.unref(l),Ce=ne(se);for(let Be=0;Be<Ce.length;Be++){const Ee=Ce[Be];let Ve=0;const{isCalcTotal:ot,dataIndex:kt}=Ee;if(ot===!0){for(let Ot=0;Ot<oe.length;Ot++){const at=+oe[Ot][kt];isNaN(at)||(Ve=new fs.Big(Ve).add(at).toNumber())}Ee.total=Ve}}return Ce});function ne(W){var Q;const Y=[];for(const re of W)(Q=re.children)!=null&&Q.length?Y.push(...ne(re.children)):Y.push(re);return Y}const{setRequest:ae}=t.inject(He,{setRequest:W=>{}});typeof ae=="function"&&ae({id:e.id,requestFn:G,sortNum:e.requestSort}),o({refreshData:G});const ie=(W="",Y)=>_e(W,Y),ue=W=>{if(W!=="event")return{self:"_self",blank:"_blank"}[W]},Se=(W,Y="")=>{W==="event"&&window.parent.postMessage({type:"openPage",url:Y},"*")},ke=(W,Y)=>{W(Y.filterCheckboxGroupValue)},qe=(W,Y)=>{W({confirm:!0}),Y.filterOptionsInputValue="",Y.filterCheckboxGroupValue=[]},We=()=>{},de=W=>{const Y=W.dataIndex;if(typeof Y=="string"){let Q=t.unref(g)[Y];const re=t.unref(W.filterOptionsInputValue).trim();return Array.isArray(Q)?(Q=Q.filter(se=>typeof se.label=="string"?se.label.toLowerCase().includes(re.toLowerCase()):!0),Q):[]}return[]},xe=async()=>{var Ee,Ve;const W="EXPORT_KEY";he.message.loading({key:W,content:"正在导出...",duration:0});let Y=[];if(e.dataType==="static")Y=e.data;else if(e.dataType==="request"){const ot={layer:"1"};t.unref(D)&&(ot.orderCondition=t.unref(D));const kt=await L(ot);Y=((Ve=(Ee=kt==null?void 0:kt.data)==null?void 0:Ee.data)==null?void 0:Ve.rows)||{}}const Q=t.unref(m),re=[],se=[];Q==null||Q.forEach(ot=>{re.push(ot.dataIndex),se.push(ot.title)});const le=Y.map(ot=>Oe.pick(ot,re)),oe=on.utils.book_new(),Ce=on.utils.aoa_to_sheet([se]),Be=on.utils.sheet_add_json(Ce,le,{skipHeader:!0,origin:"A2"});on.utils.book_append_sheet(oe,Be,"sheet"),on.writeFile(oe,"表格数据.xlsx"),he.message.success({key:W,content:"导出成功"})},fe=(W,Y=2)=>{const Q=+W*100;return isNaN(Q)||Q<=0?0:Q>=100?100:Q.toFixed(Y)};Fe(e,{resetRecord:J,refreshData:G,exportTableData:xe});const Ge=(W,Y)=>{let Q=null;return e.stripedShow&&(Q=Y%2===1?"table-striped":null),Q},ct=t.computed(()=>{let W=0;const{height:Y,isPageBottom:Q}=e;return Q&&Y&&(W=parseFloat(Y)-f()),W?W+"px":"100%"}),tt=t.computed(()=>{let W="#071655";return e.headerBackgroundColor&&(W="transparent"),W}),dt=t.computed(()=>{let W="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(W="transparent"),W}),Ye=t.computed(()=>parseFloat(e.fontSize)+16),et=t.computed(()=>{let W="";const{paginationColor:Y,paginationBgColor:Q,activePaginationColor:re,activePaginationBgColor:se,hoverBackgroundColor:le}=e;return Y&&(W+="p-color "),Q&&(W+="p-bg-color "),re&&(W+="active-p-color "),se&&(W+="active-p-bg-color "),le&&(W+="hover-bg-color "),W}),$e=(W,Y)=>{const{conditionCode:Q}=W;return hn(Q,{value:Y})};return{x:d,y:c,style:s,customRow:te,pagination:O,formatFn:F,contrastClass:b,tableChange:k,summaryList:ee,loading:n,onTouchHrefEvent:Se,handleHref:ie,handleHrefTarget:ue,useRowIndex:K,tableColumns:m,tableDataSource:l,useFilterOptions:de,useSetSelectedKeys:ke,onResetFilter:qe,onSearchFilterOptions:We,exportTableData:xe,handleProgressText:fe,pageSizeVisible:r,pageSize:I,tableRef:i,rowClassName:Ge,tableHeight:ct,tableHeaderBgColor:tt,tableBodyBgColor:dt,getChgStyle:E,chgBoxStyle:_,getChgBoxImgStyle:P,getChgBoxImgSrc:N,seqIcon1:yu,seqIcon2:xu,seqIcon3:pu,iconSize:Ye,containerClass:et,getCellStyle:(W,Y)=>{const{overflow:Q,conditionCode:re,attribute:se}=W,le={};return Q==="ellipsis"&&(le.overflow="hidden",le.textOverflow="ellipsis"),re&&(se!=null&&se.color)&&$e(W,Y)&&(le.color=se.color),se!=null&&se.icon&&(W==null?void 0:W.cellAlign)==="right"&&(le.display="flex",le.alignItems="center",le.justifyContent="flex-end"),le},isMatchCondition:$e,getAttrImgSrc:W=>{const{attribute:Y}=W;let Q="";return Y!=null&&Y.icon&&(Q=pt(Y.icon)),Q},getAttrImgStyle:W=>{let Y={};return(W==null?void 0:W.cellAlign)==="right"?Y={marginRight:"5px"}:Y={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(e.fontSize)+6+"px",...Y}},getCellText:(W,Y)=>W||W===0?W:Y==null?void 0:Y.defaultVal}}}),Zl=()=>{t.useCssVars(e=>({e4452790:e.stripedColor,cfc76e22:e.tableHeaderBgColor,"6d62afba":e.tableBodyBgColor,"8675ef50":e.paginationBgColor,c1652fc6:e.paginationColor,b696821c:e.activePaginationBgColor,"15e40592":e.activePaginationColor,"271e1645":e.hoverBackgroundColor}))},Ql=Ya.setup;Ya.setup=Ql?(e,o)=>(Zl(),Ql(e,o)):Zl;const T1="",B1="",bu=e=>(t.pushScopeId("data-v-a207df51"),e=e(),t.popScopeId(),e),vu=["id"],Su={key:0,class:"table-tool"},Cu=t.createTextVNode("导出数据"),wu=t.createTextVNode(" 搜索 "),Au=t.createTextVNode(" 重置 "),ku=["src","width","height"],Tu=["src","width","height"],Bu=["src","width","height"],Eu={key:1},Du={key:1,class:"action-list"},Iu=["href","target","onClick"],Ru={key:2,class:"progress-cell"},Lu=["src"],Nu=["title"],_u=["title"],Ou=["src"],Fu=["title"],Mu=["src"],zu=["src"],Pu={class:"ant-pagination-options-quick-jumper"},qu=bu(()=>t.createElementVNode("span",null,"条 / 页",-1));function Vu(e,o,n,a,i,r){const s=t.resolveComponent("a-button"),l=t.resolveComponent("a-input"),d=t.resolveComponent("a-checkbox-group"),c=t.resolveComponent("a-table-summary-cell"),f=t.resolveComponent("a-table-summary-row"),x=t.resolveComponent("a-table-summary"),u=t.resolveComponent("a-table"),m=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:t.normalizeStyle(e.style)},[t.createVNode(m,{loading:e.loading},{default:t.withCtx(()=>{var y;return[e.isUseExport?(t.openBlock(),t.createElementBlock("div",Su,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[Cu]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(u,{ref:"tableRef",class:"table",style:t.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:t.withCtx(({column:h,selectedKeys:A,setSelectedKeys:I,confirm:v,clearFilters:S})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(l,{value:h.filterOptionsInputValue,"onUpdate:value":C=>h.filterOptionsInputValue=C,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:h.filterCheckboxGroupValue,"onUpdate:value":C=>h.filterCheckboxGroupValue=C,class:"filter-checkbox",options:e.useFilterOptions(h),onChange:C=>e.useSetSelectedKeys(I,h)},null,8,["value","onUpdate:value","options","onChange"]),t.createElementVNode("div",null,[t.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>v()},{default:t.withCtx(()=>[wu]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(C=>e.onResetFilter(S,h),["stop"])},{default:t.withCtx(()=>[Au]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:h,index:A,text:I,record:v})=>{var S,C,B,g,R,p;return[h.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[A===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,ku)):A===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Tu)):A>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,Bu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.fontSize})},t.toDisplayString(A+1),5)],64)):(t.openBlock(),t.createElementBlock("span",Eu,t.toDisplayString(A+1),1))],64)):h.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",Du,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(D,w)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:w},[t.createElementVNode("a",{href:e.handleHref(D.href,v),target:e.handleHrefTarget(D.target),style:t.normalizeStyle({color:D.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:L=>e.onTouchHrefEvent(D.target,e.handleHref(D.href,v))},t.toDisplayString(D.title),13,Iu)]))),128))])):h.format==="progress"?(t.openBlock(),t.createElementBlock("div",Ru,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:h.progressColor||"#1890ff",height:h.progressWidth||"18px",width:`${e.handleProgressText(I,h.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(I)<100?h.progressTextColor||"#333":h.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(I,h.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(h,I)})},[e.isMatchCondition(h,I)&&(h==null?void 0:h.cellAlign)==="right"&&((S=h==null?void 0:h.attribute)!=null&&S.icon)?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.getAttrImgStyle(h)),src:e.getAttrImgSrc(h)},null,12,Lu)):t.createCommentVNode("",!0),h.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((C=h==null?void 0:h.customFormatter)==null?void 0:C.split("{value}")[0])||""},t.toDisplayString(((B=h==null?void 0:h.customFormatter)==null?void 0:B.split("{value}")[0])||""),9,Nu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(h.format)]),style:t.normalizeStyle(e.getChgStyle({...h,text:I})),title:h.format!=null?e.formatFn(I,h):I},[h.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...h,text:I})),src:e.getChgBoxImgSrc(I)},null,12,Ou)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(h.format!=null?e.formatFn(I,h):e.getCellText(I,h)),1)],14,_u),h.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:2,title:((g=h==null?void 0:h.customFormatter)==null?void 0:g.split("{value}")[1])||""},t.toDisplayString(((R=h==null?void 0:h.customFormatter)==null?void 0:R.split("{value}")[1])||""),9,Fu)):t.createCommentVNode("",!0),e.isMatchCondition(h,I)&&(h==null?void 0:h.cellAlign)!=="right"&&((p=h==null?void 0:h.attribute)!=null&&p.icon)?(t.openBlock(),t.createElementBlock("img",{key:3,style:t.normalizeStyle(e.getAttrImgStyle(h)),src:e.getAttrImgSrc(h)},null,12,Mu)):t.createCommentVNode("",!0)],4))]}),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(x,{key:0,fixed:e.isSummaryFixed},{default:t.withCtx(()=>[t.createVNode(f,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(h,A)=>(t.openBlock(),t.createBlock(c,{key:A,index:A,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:h.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(h.format)]),style:t.normalizeStyle({...e.getChgStyle({...h,text:h.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[h.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...h,text:h.total})),src:e.getChgBoxImgSrc(h.total)},null,12,zu)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString((h.format!=null||h.format!=="")&&e.formatFn(h.total,h)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):t.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(y=e.tableDataSource)!=null&&y.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[t.createElementVNode("div",Pu,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=h=>e.pageSize=h)},null,512),[[t.vModelText,e.pageSize]]),qu])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,vu)}const Jl=Ae(ve(Ya,[["render",Vu],["__scopeId","data-v-a207df51"]])),Ka={...Re,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff"},Za=Te(Ka),Xl=["click"];it.use([Ft.CanvasRenderer,Ct.MapChart,Ct.ScatterChart,De.VisualMapComponent,De.TooltipComponent,De.GraphicComponent]);const Hu=t.defineComponent({name:"EcanMap",components:{Echarts:Tt},props:{...Za},setup(e){const o=je({...e.tooltipRequestData,requestHeaders:{}}),n=t.ref(),a=t.ref(""),i=t.ref(""),r=Ie(e,["backgroundImage"]),s=t.ref(),l=t.computed(()=>pt(e.geoBackgroundImage)),d=t.computed(()=>pt(e.backgroundImage)),c=t.computed(()=>e.geoBackgroundImage?{image:t.unref(s),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),f=t.computed(()=>{const O=e.symbolImage;return e.symbolImage?"image://"+pt(O):"circle"}),x=O=>{let T=e.tooltipFormatter;const F=T.match(/\{(.+?)\}/g);if(F==null||F.length===0)return T;for(let b=0;b<F.length;b++){const E=F[b];let _=E.slice(1,-1).trim();const P=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,N=_.match(P);for(let V=0;V<N.length;V++){const z=N[V],q=O[z];q!=null&&(_=_.replace(z,q))}T=T.replace(E,_)}return T.split(`
|
|
120
|
+
`)},u=t.ref(!1),m=t.ref("");let y=new AbortController;const h=(O,T)=>{const F=y.signal;u.value=!0,a.value=O,o({name:O,signal:F}).then(b=>{var E,_;if(b){const P=((_=(E=b==null?void 0:b.data)==null?void 0:E.data)==null?void 0:_.rows)||[];let N="";for(const V of P){const z=x(V)||[];if(z!=null&&z.length)for(const q of z)N+=`<div style="word-break: break-all;white-space: normal;">${q}</div>`}N=`<div style="max-width:200px;">${N}</div>`,i.value=N,T(t.unref(m),N)}else F.aborted?i.value="Loading":i.value=O,T(t.unref(m),i.value);u.value=!1})},A=t.computed(()=>{const O=e.geoCenter;let T;return typeof O=="string"&&O!==""&&(T=O.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(d)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:T,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(F,b,E)=>{m.value=b;const{name:_=""}=F,{requestUrl:P}=e.tooltipRequestData;if(!P)return _;if(t.unref(u))t.unref(a)!==_&&(y.abort(),y=new AbortController);else{if(t.unref(a)===_)return t.unref(i);h(_,E)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(c),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:t.unref(f),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),I=t.ref(!1),v=async()=>{var F;I.value=!1;const O=e.mapJson,T=`map-${e.id}`;if(O!=null&&O.path){const b=await vt(((F=window==null?void 0:window.config)==null?void 0:F.uploadPath)+O.path);it.registerMap(T,(b==null?void 0:b.data)||{})}else it.registerMap(T,{});I.value=!0};t.watch(()=>e.mapJson,()=>{v()},{immediate:!0,deep:!0});const S=async O=>{var b,E;const T=((E=(b=O==null?void 0:O.data)==null?void 0:b.data)==null?void 0:E.rows)||{},F=`map-${e.id}`;if(T!=null&&T.path){const _=await vt(T.path);it.registerMap(F,(_==null?void 0:_.data)||{})}else it.registerMap(F,{})},C=je(e,S),B=async()=>{if(e.dataType==="request"){I.value=!1;try{const O=await C();S(O)}catch(O){console.error(O)}finally{I.value=!0}}},g=()=>{switch(e.dataType){case"request":B();break}},{getGlobalModel:R,setGlobalModel:p}=t.inject(Le,{getGlobalModel:O=>{},setGlobalModel:(O,T)=>{}}),w=Ne(e)("click",()=>{const O=R(e.id);p(e.id,{...O,RECORD:t.unref(n)})});Fe(e,{refreshData:g});const{setRequest:L}=t.inject(He,{setRequest:O=>{}});return typeof L=="function"&&L({id:e.id,requestFn:g,sortNum:e.requestSort}),{option:A,style:r,isLoadedData:I,geoBackgroundImageRef:s,myGeoBackgroundImage:l,customClick:()=>{t.unref(n)&&w()},onMouseOver:(O={})=>{O.componentType==="geo"&&O.region?n.value=O.region:n.value=null}}}}),D1="",ju=["src"];function Wu(e,o,n,a,i,r){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":e.customClick,onMouseover:e.onMouseOver},null,8,["option","onZr:click","onMouseover"])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,ju),[[t.vShow,!1]])],4)}const es=Ae(ve(Hu,[["render",Wu],["__scopeId","data-v-a049dc3f"]])),Qa={...Re,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},Ja=Te(Qa),ts=["selectChange","refreshData"],Gu=t.defineComponent({name:"EcanDataSelect",components:{ASelect:he.Select,ASelectOption:he.SelectOption},props:{...Ja},setup(e,{expose:o}){const n=Ie(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=t.ref(e.data||[]),r=t.ref(),s=t.computed({get:()=>{var O;const{mode:k}=e;return(O=t.unref(i))!=null&&O.length?r.value:k==="multiple"||k==="tags"||k==="combobox"?[]:""},set:k=>{r.value=k}}),{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c}=t.inject(Le,{getGlobalModel:k=>{},setGlobalModel:(k,O)=>{},getRecordValueByKeyName:k=>{}}),f=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:k,selectFirstOption:O,value:T}=e,F=c(T),b=f.value;if(k==="multiple"||k==="tags"||k==="combobox"){if(F)r.value=F.split(",");else if(O){const E=t.unref(i)[0];r.value=E?[E[b]]:[]}}else if(F)r.value=F;else if(O){const E=t.unref(i)[0];r.value=E?E[b]:""}},{immediate:!0});const x=(k,O)=>{const T=f.label,F=f.value;let b;const E=O[T],_=O[F];return E!=null?b=E:_!=null&&(b=_),(b==null?void 0:b.toLowerCase().indexOf(k==null?void 0:k.toLowerCase()))>=0},u=k=>{const{label:O,value:T,options:F}=e.dataFieldNames;if(F&&Array.isArray(k))if(k.some(b=>F in b)){const b={},E=[];k.forEach(_=>{b[_[F]]||(b[_[F]]=[]),b[_[F]].push({[O]:_[O],[T]:_[T]})});for(const _ in b)E.push({[O]:_,[F]:b[_]});return E}else return k;else if(!F)return k},m=t.ref(!1),y=k=>{var O,T;if(i.value=u(((T=(O=k==null?void 0:k.data)==null?void 0:O.data)==null?void 0:T.rows)||[]),e.selectFirstOption){let F=t.unref(i)[0];if(f.options){const b=F[f.options];b&&b.length&&(F=b[0])}r.value=F[f.value]}},h=je(e,y),A=async()=>{if(e.dataType==="request"){m.value=!0;try{const k=await h();y(k)}catch(k){console.error(k)}finally{m.value=!1}}},I=t.computed(()=>{let k=r.value;if(e.valueType==="label"&&t.unref(r)&&t.unref(i)){const O=f.label,T=f.value;if(e.mode==="multiple")k=t.unref(i).filter(F=>t.unref(r).includes(F[T])).map(F=>F[O]);else{const F=t.unref(i).find(b=>t.unref(r)===b[T]);F&&(k=F[O])}}return k}),v=t.ref([]),S=t.computed(()=>{const k={};if(e.mode!=="multiple"){const O=t.unref(v).find(T=>T.value===t.unref(r));O&&(k.itemCodes=O.item_codes)}return k}),C=t.computed(()=>{const{value:k,label:O}=f,T=t.unref(i).find(F=>F[k]===t.unref(s));return T?{label:T[O],value:T[k]}:{}});d(e.id,{type:e.type,value:I,...t.unref(S),recordData:t.unref(C)});const g=Ne(e)("selectChange",()=>{const k=e.id,O=l(k);d(k,{...O,...t.unref(S),RECORD:I,recordData:t.unref(C)})}),R=(k=[])=>{if(i.value=u(k),e.selectFirstOption){let O=t.unref(i)[0];if(f.options){const T=O[f.options];T&&T.length&&(O=T[0])}r.value=O[f.value]}d(e.id,{type:e.type,value:I,...t.unref(S),recordData:t.unref(C)})},p=k=>{var b;const{data:O}=(k==null?void 0:k.data)||{},T=f.label,F=f.value;if(O){const E=((b=k==null?void 0:k.data)==null?void 0:b.data)??[];v.value=E;const _=E.map(V=>({[T]:V.label,[F]:V.value})),{id:P}=e,N=l(P);d(P,{...N,...t.unref(S)}),R(_)}else R([])},D=Xe(e,p),w=async()=>{try{m.value=!0;const k=await D();p(k)}catch(k){console.error(k)}finally{m.value=!1}},L=()=>{switch(e.dataType){case"indicator":{w();break}case"request":A();break}};Fe(e,{selectChange:g,refreshData:L});const{setRequest:M}=t.inject(He,{setRequest:({id:k,sortNum:O,requestFn:T})=>{}});return typeof M=="function"&&M({id:e.id,requestFn:L,sortNum:e.requestSort}),o({refreshData:L}),{style:n,getPopupContainer:a,myValue:r,selectChange:g,options:i,filterOption:x,loading:m,resultValue:s}}}),R1="",L1="";function Uu(e,o,n,a,i,r){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const ns=Ae(ve(Gu,[["render",Uu],["__scopeId","data-v-703a9095"]])),os=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:Dl,EcanBorder:zl,EcanButton:ul,EcanCheckbox:gl,EcanCirculate:jl,EcanComboGraph:_l,EcanCounter:Xr,EcanCustomGraph:Ll,EcanDataSelect:ns,EcanDatePicker:il,EcanIframe:Yl,EcanImage:$l,EcanInput:tl,EcanLine:Bl,EcanList:Kr,EcanMap:es,EcanModal:Nt,EcanPageConfig:Pr,EcanPie:kl,EcanProportion:Qr,EcanProviderConfig:qr,EcanRadar:Fl,EcanRadio:vl,EcanRangePicker:dl,EcanScatter:Rl,EcanScrollText:Gr,EcanSelect:yl,EcanTable:Jl,EcanTabs:ql,EcanText:Wr,EcanTimeDisplay:$r,EcanTreeSelect:pl,barComponentProps:Ta,barEvents:El,barProps:ka,borderComponentProps:Fa,borderEvents:Ml,borderProps:Oa,buttonComponentProps:ca,buttonEvents:fl,buttonProps:sa,checkboxComponentProps:fa,checkboxEvents:hl,checkboxProps:da,circulateComponentProps:qa,circulateEvents:Vl,circulateProps:Pa,comboGraphComponentProps:La,comboGraphEvents:Nl,comboGraphProps:Ra,counterComponentProps:Xo,counterEvents:Jr,counterProps:Jo,customGraphComponentProps:Ia,customGraphProps:Da,dataSelectComponentProps:Ja,dataSelectEvents:ts,dataSelectProps:Qa,datePickerComponentProps:oa,datePickerEvents:nl,datePickerProps:na,iframeComponentProps:Ga,iframeProps:Wa,imageComponentProps:Ha,imageEvents:Wl,imageProps:Va,inputComponentProps:ta,inputEvents:el,inputProps:ea,lineComponentProps:Aa,lineEvents:Tl,lineProps:wa,listComponentProps:Ko,listEvents:Yr,listProps:Yo,mapComponentProps:Za,mapEvents:Xl,mapProps:Ka,modalComponentProps:Sa,modalEvents:Cl,modalProps:va,pageConfig:Gn,pageConfigComponentProps:Un,pieComponentProps:ba,pieEvents:Sl,pieProps:pa,proportionComponentProps:Qo,proportionEvents:Zr,proportionProps:Zo,providerConfig:Po,providerConfigComponentProps:qo,radarComponentProps:_a,radarEvents:Ol,radarProps:Na,radioComponentProps:xa,radioEvents:bl,radioProps:ya,rangePickerComponentProps:ra,rangePickerEvents:rl,rangePickerProps:ia,scatterComponentProps:Ea,scatterEvents:Il,scatterProps:Ba,selectComponentProps:ha,selectEvents:ml,selectProps:ua,tableComponentProps:$a,tableEvents:Kl,tableProps:Ua,tabsComponentProps:za,tabsEvents:Pl,tabsProps:Ma,textComponentProps:Ho,textEvents:Vr,textProps:Vo,timeDisplayComponentProps:$o,timeDisplayEvents:Ur,timeDisplayProps:Uo,treeSelectComponentProps:ma,treeSelectEvents:xl,treeSelectProps:ga},Symbol.toStringTag,{value:"Module"})),$u={install:e=>{Object.keys(os).forEach(o=>{const n=os[o];n.install&&e.use(n)})}};$.EcanBar=Dl,$.EcanBorder=zl,$.EcanButton=ul,$.EcanCheckbox=gl,$.EcanCirculate=jl,$.EcanComboGraph=_l,$.EcanCounter=Xr,$.EcanCustomGraph=Ll,$.EcanDataSelect=ns,$.EcanDatePicker=il,$.EcanIframe=Yl,$.EcanImage=$l,$.EcanInput=tl,$.EcanLine=Bl,$.EcanList=Kr,$.EcanMap=es,$.EcanModal=Nt,$.EcanPageConfig=Pr,$.EcanPie=kl,$.EcanProportion=Qr,$.EcanProviderConfig=qr,$.EcanRadar=Fl,$.EcanRadio=vl,$.EcanRangePicker=dl,$.EcanScatter=Rl,$.EcanScrollText=Gr,$.EcanSelect=yl,$.EcanTable=Jl,$.EcanTabs=ql,$.EcanText=Wr,$.EcanTimeDisplay=$r,$.EcanTreeSelect=pl,$.barComponentProps=Ta,$.barEvents=El,$.barProps=ka,$.borderComponentProps=Fa,$.borderEvents=Ml,$.borderProps=Oa,$.buttonComponentProps=ca,$.buttonEvents=fl,$.buttonProps=sa,$.checkboxComponentProps=fa,$.checkboxEvents=hl,$.checkboxProps=da,$.circulateComponentProps=qa,$.circulateEvents=Vl,$.circulateProps=Pa,$.comboGraphComponentProps=La,$.comboGraphEvents=Nl,$.comboGraphProps=Ra,$.compatibleMobileList=Al,$.counterComponentProps=Xo,$.counterEvents=Jr,$.counterProps=Jo,$.customGraphComponentProps=Ia,$.customGraphProps=Da,$.dataSelectComponentProps=Ja,$.dataSelectEvents=ts,$.dataSelectProps=Qa,$.datePickerComponentProps=oa,$.datePickerEvents=nl,$.datePickerProps=na,$.default=$u,$.handleScrollCombinations=wl,$.iframeComponentProps=Ga,$.iframeProps=Wa,$.imageComponentProps=Ha,$.imageEvents=Wl,$.imageProps=Va,$.inputComponentProps=ta,$.inputEvents=el,$.inputProps=ea,$.lineComponentProps=Aa,$.lineEvents=Tl,$.lineProps=wa,$.listComponentProps=Ko,$.listEvents=Yr,$.listProps=Yo,$.mapComponentProps=Za,$.mapEvents=Xl,$.mapProps=Ka,$.modalComponentProps=Sa,$.modalEvents=Cl,$.modalProps=va,$.moveToComponentList=Ca,$.pageConfig=Gn,$.pageConfigComponentProps=Un,$.pieComponentProps=ba,$.pieEvents=Sl,$.pieProps=pa,$.proportionComponentProps=Qo,$.proportionEvents=Zr,$.proportionProps=Zo,$.providerConfig=Po,$.providerConfigComponentProps=qo,$.radarComponentProps=_a,$.radarEvents=Ol,$.radarProps=Na,$.radioComponentProps=xa,$.radioEvents=bl,$.radioProps=ya,$.rangePickerComponentProps=ra,$.rangePickerEvents=rl,$.rangePickerProps=ia,$.scatterComponentProps=Ea,$.scatterEvents=Il,$.scatterProps=Ba,$.selectComponentProps=ha,$.selectEvents=ml,$.selectProps=ua,$.tableComponentProps=$a,$.tableEvents=Kl,$.tableProps=Ua,$.tabsComponentProps=za,$.tabsEvents=Pl,$.tabsProps=Ma,$.textComponentProps=Ho,$.textEvents=Vr,$.textProps=Vo,$.timeDisplayComponentProps=$o,$.timeDisplayEvents=Ur,$.timeDisplayProps=Uo,$.treeSelectComponentProps=ma,$.treeSelectEvents=xl,$.treeSelectProps=ga,Object.defineProperties($,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
121
121
|
//# sourceMappingURL=index.umd.js.map
|