@ecan-bi/datav 1.3.38 → 1.3.40
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 +5847 -5786
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +34 -34
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/utils/util.d.ts +1 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.3.
|
|
2
|
-
(function(W,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):(W=typeof globalThis<"u"?globalThis:W||self,t(W["@ecan/bi-datav"]={},W.Vue,W["echarts/core"],W.ResizeDetector,W.AntDesignVue,null,null,W.LodashEs,W.Dayjs,W.Axios,W.Mitt,null,null,null,W["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,W["echarts/renderers"],W["echarts/charts"],W["echarts/components"],null,W.Echarts,null,null,W.Xlsx,W.big.js))})(this,function(W,t,et,Ka,fe,Gu,Uu,Le,xe,as,rs,$u,Yu,Ku,Za,Zu,Qu,Ju,Xu,It,xt,ke,eh,is,th,nh,Xt,ls){var es,ts,ns,os;"use strict";function ss(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 cs=ss(is),ds=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function fs(e,o){function n(r){return(...i)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}function a(){const r=Object.create(null);return ds.forEach(i=>{r[i]=n(i)}),r}return a()}function us(e,o,n){let a=null;t.watch([n,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=et.throttle(()=>{i.resize()},100),Ka.addListener(r,a)),d(()=>{a&&r&&Ka.removeListener(r,a)})})}const hs={autoresize:Boolean},gs="ecLoadingOptions";function ms(e,o,n){const a=t.inject(gs,{}),r=t.computed(()=>({...t.unref(a),...n==null?void 0:n.value}));t.watchEffect(()=>{const i=e.value;i&&(o.value?i.showLoading(r.value):i.hideLoading())})}const ys={loading:Boolean,loadingOptions:Object},oh="",xs=/^on[^a-z]/,ps=e=>xs.test(e);function bs(e){const o={};for(const n in e)ps(n)||(o[n]=e[n]);return o}const vs="x-vue-echarts",Ss="ecTheme",Cs="ecInitOptions",ws="ecUpdateOptions",St=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...hs,...ys},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),r=t.shallowRef(),i=t.shallowRef(),s=t.inject(Ss,null),l=t.inject(Cs,null),d=t.inject(ws,null),{autoresize:c,manualUpdate:g,loading:m,loadingOptions:f}=t.toRefs(e),y=t.computed(()=>i.value||e.option||Object.create(null)),h=t.computed(()=>e.theme||t.unref(s)||{}),u=t.computed(()=>e.initOptions||t.unref(l)||{}),b=t.computed(()=>e.updateOptions||t.unref(d)||{}),k=t.computed(()=>bs(o));function x(B){if(r.value||!a.value)return;const L=r.value=et.init(a.value,h.value,u.value);e.group&&(L.group=e.group);let O=n;O||(O={},Object.keys(o).filter(I=>I.indexOf("on")===0&&I.length>2).forEach(I=>{const A=I.charAt(2).toLowerCase()+I.slice(3);O[A]=o[I]})),Object.keys(O).forEach(I=>{const A=O[I];A&&(I.indexOf("zr:")===0?L.getZr().on(I.slice(3).toLowerCase(),A):L.on(I.toLowerCase(),A))});function E(){if(L&&!L.isDisposed())try{L.resize()}catch(I){if(I.message==="Cannot read property 'get' of undefined")return;throw I}}function _(){L.setOption(B||y.value,b.value)}c.value?t.nextTick(()=>{E(),_()}):_()}function S(B,L){e.manualUpdate&&(i.value=B),r.value?r.value.setOption(B,L||{}):x(B)}function p(){r.value&&(r.value.dispose(),r.value=void 0)}let C=null;t.watch(g,B=>{typeof C=="function"&&(C(),C=null),B||(C=t.watch(()=>e.option,L=>{L&&(r.value?r.value.setOption(L,b.value):x())},{deep:!0}))},{immediate:!0}),t.watch([h,u],()=>{p(),x()},{deep:!0}),t.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const w=fs(r,x);return ms(r,m,f),us(r,c,a),t.onMounted(()=>{e.option&&x()}),t.onUnmounted(p),{chart:r,root:a,setOption:S,nonEventAttrs:k,...w}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(vs,e)}});function it(e,o){As(e)&&(e="100%");var n=ks(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 As(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ks(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Ts(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function un(e){return e<=1?"".concat(Number(e)*100,"%"):e}function En(e){return e.length===1?"0"+e:String(e)}function Bs(e,o,n){return{r:it(e,255)*255,g:it(o,255)*255,b:it(n,255)*255}}function Dn(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 Es(e,o,n){var a,r,i;if(e=it(e,360),o=it(o,100),n=it(n,100),o===0)r=n,i=n,a=n;else{var s=n<.5?n*(1+o):n+o-n*o,l=2*n-s;a=Dn(l,s,e+1/3),r=Dn(l,s,e),i=Dn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function Ds(e,o,n){e=it(e,255),o=it(o,255),n=it(n,255);var a=Math.max(e,o,n),r=Math.min(e,o,n),i=0,s=a,l=a-r,d=a===0?0:l/a;if(a===r)i=0;else{switch(a){case e:i=(o-n)/l+(o<n?6:0);break;case o:i=(n-e)/l+2;break;case n:i=(e-o)/l+4;break}i/=6}return{h:i,s:d,v:s}}function Is(e,o,n){e=it(e,360)*6,o=it(o,100),n=it(n,100);var a=Math.floor(e),r=e-a,i=n*(1-o),s=n*(1-r*o),l=n*(1-(1-r)*o),d=a%6,c=[n,s,i,i,l,n][d],g=[l,n,n,s,i,i][d],m=[i,i,l,n,n,s][d];return{r:c*255,g:g*255,b:m*255}}function Rs(e,o,n,a){var r=[En(Math.round(e).toString(16)),En(Math.round(o).toString(16)),En(Math.round(n).toString(16))];return a&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Qa(e){return tt(e)/255}function tt(e){return parseInt(e,16)}var Ja={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 en(e){var o={r:0,g:0,b:0},n=1,a=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=Os(e)),typeof e=="object"&&(pt(e.r)&&pt(e.g)&&pt(e.b)?(o=Bs(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):pt(e.h)&&pt(e.s)&&pt(e.v)?(a=un(e.s),r=un(e.v),o=Is(e.h,a,r),s=!0,l="hsv"):pt(e.h)&&pt(e.s)&&pt(e.l)&&(a=un(e.s),i=un(e.l),o=Es(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Ts(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 _s="[-\\+]?\\d+%?",Ls="[-\\+]?\\d*\\.\\d+%?",Ct="(?:".concat(Ls,")|(?:").concat(_s,")"),In="[\\s|\\(]+(".concat(Ct,")[,|\\s]+(").concat(Ct,")[,|\\s]+(").concat(Ct,")\\s*\\)?"),Rn="[\\s|\\(]+(".concat(Ct,")[,|\\s]+(").concat(Ct,")[,|\\s]+(").concat(Ct,")[,|\\s]+(").concat(Ct,")\\s*\\)?"),ft={CSS_UNIT:new RegExp(Ct),rgb:new RegExp("rgb"+In),rgba:new RegExp("rgba"+Rn),hsl:new RegExp("hsl"+In),hsla:new RegExp("hsla"+Rn),hsv:new RegExp("hsv"+In),hsva:new RegExp("hsva"+Rn),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 Os(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(Ja[e])e=Ja[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ft.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ft.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ft.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ft.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ft.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ft.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ft.hex8.exec(e),n?{r:tt(n[1]),g:tt(n[2]),b:tt(n[3]),a:Qa(n[4]),format:o?"name":"hex8"}:(n=ft.hex6.exec(e),n?{r:tt(n[1]),g:tt(n[2]),b:tt(n[3]),format:o?"name":"hex"}:(n=ft.hex4.exec(e),n?{r:tt(n[1]+n[1]),g:tt(n[2]+n[2]),b:tt(n[3]+n[3]),a:Qa(n[4]+n[4]),format:o?"name":"hex8"}:(n=ft.hex3.exec(e),n?{r:tt(n[1]+n[1]),g:tt(n[2]+n[2]),b:tt(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function pt(e){return!!ft.CSS_UNIT.exec(String(e))}var hn=2,Xa=.16,Ns=.05,Fs=.05,Ms=.15,er=5,tr=4,zs=[{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 nr(e){var o=e.r,n=e.g,a=e.b,r=Ds(o,n,a);return{h:r.h*360,s:r.s,v:r.v}}function gn(e){var o=e.r,n=e.g,a=e.b;return"#".concat(Rs(o,n,a,!1))}function Ps(e,o,n){var a=n/100,r={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 r}function or(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-hn*o:Math.round(e.h)+hn*o:a=n?Math.round(e.h)+hn*o:Math.round(e.h)-hn*o,a<0?a+=360:a>=360&&(a-=360),a}function ar(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-Xa*o:o===tr?a=e.s+Xa:a=e.s+Ns*o,a>1&&(a=1),n&&o===er&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function rr(e,o,n){var a;return n?a=e.v+Fs*o:a=e.v-Ms*o,a>1&&(a=1),Number(a.toFixed(2))}function _n(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=en(e),r=er;r>0;r-=1){var i=nr(a),s=gn(en({h:or(i,r,!0),s:ar(i,r,!0),v:rr(i,r,!0)}));n.push(s)}n.push(gn(a));for(var l=1;l<=tr;l+=1){var d=nr(a),c=gn(en({h:or(d,l),s:ar(d,l),v:rr(d,l)}));n.push(c)}return o.theme==="dark"?zs.map(function(g){var m=g.index,f=g.opacity,y=gn(Ps(en(o.backgroundColor||"#141414"),en(n[m]),f*100));return y}):n}var Ln={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"},On={},Nn={};Object.keys(Ln).forEach(function(e){On[e]=_n(Ln[e]),On[e].primary=On[e][5],Nn[e]=_n(Ln[e],{theme:"dark",backgroundColor:"#141414"}),Nn[e].primary=Nn[e][5]});var ir=[],tn=[],qs="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Vs(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Hs(e,o){if(o=o||{},e===void 0)throw new Error(qs);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=ir.indexOf(a);r===-1&&(r=ir.push(a)-1,tn[r]={});var i;return tn[r]!==void 0&&tn[r][n]!==void 0?i=tn[r][n]:(i=tn[r][n]=Vs(),n==="prepend"?a.insertBefore(i,a.childNodes[0]):a.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function lr(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(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){js(e,r,n[r])})}return e}function js(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function Ws(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function Gs(e,o){Ws(e,"[@ant-design/icons-vue] ".concat(o))}function sr(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Fn(e,o,n){return n?t.h(e.tag,lr({key:o},n,e.attrs),(e.children||[]).map(function(a,r){return Fn(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):t.h(e.tag,lr({key:o},e.attrs),(e.children||[]).map(function(a,r){return Fn(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function cr(e){return _n(e)[0]}function dr(e){return e?Array.isArray(e)?e:[e]:[]}var Us=`
|
|
1
|
+
/*! @ecan-bi/datav@1.3.40 */
|
|
2
|
+
(function(G,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):(G=typeof globalThis<"u"?globalThis:G||self,t(G["@ecan/bi-datav"]={},G.Vue,G["echarts/core"],G.ResizeDetector,G.AntDesignVue,null,null,G.LodashEs,G.Dayjs,G.Axios,G.Mitt,null,null,null,G["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,G["echarts/renderers"],G["echarts/charts"],G["echarts/components"],null,G.Echarts,null,null,G.Xlsx,G.big.js))})(this,function(G,t,ot,Za,ue,Uu,$u,_e,pe,is,rs,Ku,Yu,Zu,Qa,Qu,Ju,Xu,eh,_t,bt,Be,th,ls,nh,oh,en,ss){var ts,ns,os,as;"use strict";function cs(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 ds=cs(ls),fs=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function us(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 fs.forEach(r=>{i[r]=n(r)}),i}return a()}function hs(e,o,n){let a=null;t.watch([n,e,o],([i,r,s],l,d)=>{i&&r&&s&&(a=ot.throttle(()=>{r.resize()},100),Za.addListener(i,a)),d(()=>{a&&i&&Za.removeListener(i,a)})})}const gs={autoresize:Boolean},ms="ecLoadingOptions";function ys(e,o,n){const a=t.inject(ms,{}),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 xs={loading:Boolean,loadingOptions:Object},ah="",ps=/^on[^a-z]/,bs=e=>ps.test(e);function vs(e){const o={};for(const n in e)bs(n)||(o[n]=e[n]);return o}const Ss="x-vue-echarts",Cs="ecTheme",ws="ecInitOptions",As="ecUpdateOptions",wt=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...gs,...xs},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),i=t.shallowRef(),r=t.shallowRef(),s=t.inject(Cs,null),l=t.inject(ws,null),d=t.inject(As,null),{autoresize:c,manualUpdate:u,loading:y,loadingOptions:f}=t.toRefs(e),x=t.computed(()=>r.value||e.option||Object.create(null)),m=t.computed(()=>e.theme||t.unref(s)||{}),h=t.computed(()=>e.initOptions||t.unref(l)||{}),g=t.computed(()=>e.updateOptions||t.unref(d)||{}),C=t.computed(()=>vs(o));function p(T){if(i.value||!a.value)return;const D=i.value=ot.init(a.value,m.value,h.value);e.group&&(D.group=e.group);let O=n;O||(O={},Object.keys(o).filter(L=>L.indexOf("on")===0&&L.length>2).forEach(L=>{const k=L.charAt(2).toLowerCase()+L.slice(3);O[k]=o[L]})),Object.keys(O).forEach(L=>{const k=O[L];k&&(L.indexOf("zr:")===0?D.getZr().on(L.slice(3).toLowerCase(),k):D.on(L.toLowerCase(),k))});function I(){if(D&&!D.isDisposed())try{D.resize()}catch(L){if(L.message==="Cannot read property 'get' of undefined")return;throw L}}function _(){D.setOption(T||x.value,g.value)}c.value?t.nextTick(()=>{I(),_()}):_()}function v(T,D){e.manualUpdate&&(r.value=T),i.value?i.value.setOption(T,D||{}):p(T)}function b(){i.value&&(i.value.dispose(),i.value=void 0)}let w=null;t.watch(u,T=>{typeof w=="function"&&(w(),w=null),T||(w=t.watch(()=>e.option,D=>{D&&(i.value?i.value.setOption(D,g.value):p())},{deep:!0}))},{immediate:!0}),t.watch([m,h],()=>{b(),p()},{deep:!0}),t.watchEffect(()=>{e.group&&i.value&&(i.value.group=e.group)});const A=us(i,p);return ys(i,y,f),hs(i,c,a),t.onMounted(()=>{e.option&&p()}),t.onUnmounted(b),{chart:i,root:a,setOption:v,nonEventAttrs:C,...A}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(Ss,e)}});function lt(e,o){ks(e)&&(e="100%");var n=Ts(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 ks(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ts(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Bs(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function hn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Dn(e){return e.length===1?"0"+e:String(e)}function Es(e,o,n){return{r:lt(e,255)*255,g:lt(o,255)*255,b:lt(n,255)*255}}function In(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 Ds(e,o,n){var a,i,r;if(e=lt(e,360),o=lt(o,100),n=lt(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=In(l,s,e+1/3),i=In(l,s,e),r=In(l,s,e-1/3)}return{r:a*255,g:i*255,b:r*255}}function Is(e,o,n){e=lt(e,255),o=lt(o,255),n=lt(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 Rs(e,o,n){e=lt(e,360)*6,o=lt(o,100),n=lt(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],u=[l,n,n,s,r,r][d],y=[r,r,l,n,n,s][d];return{r:c*255,g:u*255,b:y*255}}function _s(e,o,n,a){var i=[Dn(Math.round(e).toString(16)),Dn(Math.round(o).toString(16)),Dn(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 Ja(e){return at(e)/255}function at(e){return parseInt(e,16)}var Xa={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 tn(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=Ns(e)),typeof e=="object"&&(vt(e.r)&&vt(e.g)&&vt(e.b)?(o=Es(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):vt(e.h)&&vt(e.s)&&vt(e.v)?(a=hn(e.s),i=hn(e.v),o=Rs(e.h,a,i),s=!0,l="hsv"):vt(e.h)&&vt(e.s)&&vt(e.l)&&(a=hn(e.s),r=hn(e.l),o=Ds(e.h,a,r),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Bs(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 Ls="[-\\+]?\\d+%?",Os="[-\\+]?\\d*\\.\\d+%?",At="(?:".concat(Os,")|(?:").concat(Ls,")"),Rn="[\\s|\\(]+(".concat(At,")[,|\\s]+(").concat(At,")[,|\\s]+(").concat(At,")\\s*\\)?"),_n="[\\s|\\(]+(".concat(At,")[,|\\s]+(").concat(At,")[,|\\s]+(").concat(At,")[,|\\s]+(").concat(At,")\\s*\\)?"),ht={CSS_UNIT:new RegExp(At),rgb:new RegExp("rgb"+Rn),rgba:new RegExp("rgba"+_n),hsl:new RegExp("hsl"+Rn),hsla:new RegExp("hsla"+_n),hsv:new RegExp("hsv"+Rn),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 Ns(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(Xa[e])e=Xa[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ht.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ht.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ht.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ht.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ht.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ht.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ht.hex8.exec(e),n?{r:at(n[1]),g:at(n[2]),b:at(n[3]),a:Ja(n[4]),format:o?"name":"hex8"}:(n=ht.hex6.exec(e),n?{r:at(n[1]),g:at(n[2]),b:at(n[3]),format:o?"name":"hex"}:(n=ht.hex4.exec(e),n?{r:at(n[1]+n[1]),g:at(n[2]+n[2]),b:at(n[3]+n[3]),a:Ja(n[4]+n[4]),format:o?"name":"hex8"}:(n=ht.hex3.exec(e),n?{r:at(n[1]+n[1]),g:at(n[2]+n[2]),b:at(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function vt(e){return!!ht.CSS_UNIT.exec(String(e))}var gn=2,ei=.16,Fs=.05,Ms=.05,zs=.15,ti=5,ni=4,Ps=[{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 oi(e){var o=e.r,n=e.g,a=e.b,i=Is(o,n,a);return{h:i.h*360,s:i.s,v:i.v}}function mn(e){var o=e.r,n=e.g,a=e.b;return"#".concat(_s(o,n,a,!1))}function qs(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 ai(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-gn*o:Math.round(e.h)+gn*o:a=n?Math.round(e.h)+gn*o:Math.round(e.h)-gn*o,a<0?a+=360:a>=360&&(a-=360),a}function ii(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-ei*o:o===ni?a=e.s+ei:a=e.s+Fs*o,a>1&&(a=1),n&&o===ti&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function ri(e,o,n){var a;return n?a=e.v+Ms*o:a=e.v-zs*o,a>1&&(a=1),Number(a.toFixed(2))}function Ln(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=tn(e),i=ti;i>0;i-=1){var r=oi(a),s=mn(tn({h:ai(r,i,!0),s:ii(r,i,!0),v:ri(r,i,!0)}));n.push(s)}n.push(mn(a));for(var l=1;l<=ni;l+=1){var d=oi(a),c=mn(tn({h:ai(d,l),s:ii(d,l),v:ri(d,l)}));n.push(c)}return o.theme==="dark"?Ps.map(function(u){var y=u.index,f=u.opacity,x=mn(qs(tn(o.backgroundColor||"#141414"),tn(n[y]),f*100));return x}):n}var On={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"},Nn={},Fn={};Object.keys(On).forEach(function(e){Nn[e]=Ln(On[e]),Nn[e].primary=Nn[e][5],Fn[e]=Ln(On[e],{theme:"dark",backgroundColor:"#141414"}),Fn[e].primary=Fn[e][5]});var li=[],nn=[],Vs="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Hs(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function js(e,o){if(o=o||{},e===void 0)throw new Error(Vs);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),i=li.indexOf(a);i===-1&&(i=li.push(a)-1,nn[i]={});var r;return nn[i]!==void 0&&nn[i][n]!==void 0?r=nn[i][n]:(r=nn[i][n]=Hs(),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 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){Ws(e,i,n[i])})}return e}function Ws(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function Gs(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function Us(e,o){Gs(e,"[@ant-design/icons-vue] ".concat(o))}function ci(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Mn(e,o,n){return n?t.h(e.tag,si({key:o},n,e.attrs),(e.children||[]).map(function(a,i){return Mn(a,"".concat(o,"-").concat(e.tag,"-").concat(i))})):t.h(e.tag,si({key:o},e.attrs),(e.children||[]).map(function(a,i){return Mn(a,"".concat(o,"-").concat(e.tag,"-").concat(i))}))}function di(e){return Ln(e)[0]}function fi(e){return e?Array.isArray(e)?e:[e]:[]}var $s=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
5
5
|
color: inherit;
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
transform: rotate(360deg);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c0(e,o){if(e){if(typeof e=="string")return gr(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 gr(e,o)}}function gr(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 d0(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],r=!0,i=!1,s,l;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));r=!0);}catch(d){i=!0,l=d}finally{try{!r&&n.return!=null&&n.return()}finally{if(i)throw l}}return a}}function f0(e){if(Array.isArray(e))return e}function mr(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(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){zn(e,r,n[r])})}return e}function zn(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function u0(e,o){if(e==null)return{};var n=h0(e,o),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function h0(e,o){if(e==null)return{};var n={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(n[r]=e[r]);return n}hr("#1890ff");var Mt=function(o,n){var a,r=mr({},o,n.attrs),i=r.class,s=r.icon,l=r.spin,d=r.rotate,c=r.tabindex,g=r.twoToneColor,m=r.onClick,f=u0(r,i0),y=(a={anticon:!0},zn(a,"anticon-".concat(s.name),!!s.name),zn(a,i,i),a),h=l===""||l||s.name==="loading"?"anticon-spin":"",u=c;u===void 0&&m&&(u=-1,f.tabindex=u);var b=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,k=dr(g),x=l0(k,2),S=x[0],p=x[1];return t.createVNode("span",mr({role:"img","aria-label":s.name},f,{onClick:m,class:y}),[t.createVNode(Mn,{class:h,icon:s,primaryColor:S,secondaryColor:p,style:b},null)])};Mt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Mt.displayName="AntdIcon",Mt.inheritAttrs=!1,Mt.getTwoToneColor=r0,Mt.setTwoToneColor=hr;const yr=Mt;var g0={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 m0=g0;function xr(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(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){y0(e,r,n[r])})}return e}function y0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Pn=function(o,n){var a=xr({},o,n.attrs);return t.createVNode(yr,xr({},a,{icon:m0}),null)};Pn.displayName="CloseOutlined",Pn.inheritAttrs=!1;const x0=Pn;var p0={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 b0=p0;function pr(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(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){v0(e,r,n[r])})}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 qn=function(o,n){var a=pr({},o,n.attrs);return t.createVNode(yr,pr({},a,{icon:b0}),null)};qn.displayName="LoadingOutlined",qn.inheritAttrs=!1;const S0=qn,C0=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:fe.Spin},setup(){return{indicator:t.h(S0,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),ah="",ye=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n},w0={class:"spin-wrapper"};function A0(e,o,n,a,r,i){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",w0,[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 zt=ye(C0,[["render",A0]]),k0=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:fe.Skeleton}});function T0(e,o,n,a,r,i){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 Pt=ye(k0,[["render",T0]]);(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 B0=Object.defineProperty,br=Object.getOwnPropertySymbols,E0=Object.prototype.hasOwnProperty,D0=Object.prototype.propertyIsEnumerable,vr=(e,o,n)=>o in e?B0(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,Sr=(e,o)=>{for(var n in o||(o={}))E0.call(o,n)&&vr(e,n,o[n]);if(br)for(var n of br(o))D0.call(o,n)&&vr(e,n,o[n]);return e},I0=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n};const R0=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%"),r=t.ref("100%"),i=t.ref(0),s=t.ref(!1),l=t.ref(!1),d=t.ref(0),c=t.ref(0),g=t.ref(0),m=t.ref(0),f=t.ref(!1),y=t.ref(!1),h=t.ref(0),u=t.ref(null),b=t.ref("200px"),k=t.ref(!1),x=t.ref(null),S=t.ref(null),p=async()=>{await C(),i.value++},C=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",x.value!==null&&S.value!==null&&x.value&&S.value)if(e.vertical&&"clientHeight"in x.value&&"clientHeight"in S.value){m.value=x.value.clientHeight,g.value=S.value.clientHeight;const v=Math.ceil(g.value/m.value);return n.value=isFinite(v)?v:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in x.value&&"clientWidth"in S.value){if(c.value=x.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 v=Math.ceil(d.value/c.value);return n.value=isFinite(v)?v:0,n.value}else return a.value="100%",r.value="100%",0;else return a.value="100%",r.value="100%",0},100)};t.watch(c,async()=>{e.clone&&p()}),t.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&p()}),t.watch(()=>e.pause,(v,D)=>{v!==D&&o(v?"onResume":"onPause")});const w=()=>{e.pauseOnHover&&(o("onPause"),f.value=!0)},B=()=>{e.pauseOnHover&&(o("onResume"),f.value=!1)},L=()=>{e.pauseOnClick&&(o("onPause"),y.value=!0)},O=()=>{e.pauseOnClick&&(o("onResume"),y.value=!1)},E=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),_=t.computed(()=>e.pauseOnHover&&(f.value||y.value)||!e.pauseOnHover&&E.value==="paused"?"paused":"running"),I=t.computed(()=>e.pauseOnHover&&f.value||e.pauseOnClick&&y.value||!e.pauseOnHover&&E.value==="paused"?"paused":"running"),A=t.computed(()=>{const v={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${_.value}`,"--pauseOnClick":`${I.value}`,"--pauseAnimation":`${E.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":`${b.value}`,"--min-width":`${a.value}`,"--min-height":`${r.value}`},D={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(D["--orientation"]="scrollY"),Sr(Sr({},v),D)}),R=t.computed(()=>!!e.gradient),T=async()=>{e.vertical?(r.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(r.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."),b.value=e.gradientWidth):e.gradientLength&&(b.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await C(),p()),k.value=!0};return t.onMounted(async()=>{T(),u.value=setInterval(()=>{h.value++,e.loop!==0&&h.value===e.loop&&(o("onComplete"),clearInterval(u.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(u.value)}),{ready:k,contentWidth:c,containerWidth:d,contentHeight:m,containerHeight:g,loopCounter:h,loopInterval:u,mouseOverMarquee:f,mouseDownMarquee:y,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:x,marqueeOverlayContainer:S,componentKey:i,showGradient:R,cloneAmount:n,ForcesUpdate:p,checkForClone:C,setupMarquee:T,getCurrentStyle:A,hoverStarted:w,hoverEnded:B,mouseDown:L,mouseUp:O}}}),_0={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},L0={class:"marquee",ref:"marqueeContent"},O0={key:1,"aria-hidden":!0,class:"marquee"};function N0(e,o,n,a,r,i){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",_0,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",L0,[t.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(t.openBlock(),t.createElementBlock("div",O0,[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 F0=I0(R0,[["render",N0]]);const M0=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:F0},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},vertical:{type:Boolean,default:!0},step:{type:Number,default:1},wrapStyle:{type:Object,default:()=>{}}},setup(e){return{isAutoScroll:t.ref(e.visible)}}}),rh="";function z0(e,o,n,a,r,i){const s=t.resolveComponent("Vue3Marquee");return e.isAutoScroll?(t.openBlock(),t.createBlock(s,{key:0,class:"vue-marquee",style:{width:"100%"},duration:e.step,vertical:e.vertical,pauseOnHover:!0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["duration","vertical"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"list-wrap",style:t.normalizeStyle(e.wrapStyle)},[t.renderSlot(e.$slots,"default")],4))}const Vn=ye(M0,[["render",z0]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Se=(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},De={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},Ae=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},Hn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:""},jn=Ae(Hn),P0=["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"],Te=(e,o=[])=>{const n=Le.without(P0,...o);return t.computed(()=>Le.pick(e,n))},Wn="EVENT_BUS",Ve="GLOBAL_CONFIG",Ie="GLOBAL_MODEL",qe="REQUEST_MODEL",Cr="GLOBAL_TOKEN",on="REFRESH_PAGE",wr="MODAL_MODEL",wt="LOADED_DATA",$e=18,Ar="ygt",kr=((es=window==null?void 0:window.config)==null?void 0:es.indicatorURL)||"";(ts=window==null?void 0:window.config)!=null&&ts.uploadPath;const Tr=((ns=window==null?void 0:window.config)==null?void 0:ns.routerBaseURL)||"./",q0=((os=window==null?void 0:window.config)==null?void 0:os.erdURL)||"",Br=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],Oe=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject(Wn,{onEvent:(r,i)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},Re=e=>{const o=e.events,n=e.id,a=t.inject(Wn,{emitEvent:(i,s,l)=>{}}),{touchEventId:r}=t.inject(Ve,{touchEventId:t.ref("")});return(i,s=()=>{},l)=>function(){s.call(this,...arguments);const{emitEvent:d}=a;o.forEach(c=>{if(i===c.on)try{r.value=n,l?d(c.target,c.emit,l):d(c.target,c.emit)}catch(g){console.error(g)}})}},qt=(e,o)=>{let{name:n="name",value:a="value",type:r="type"}=o||{};n=n==null?void 0:n.trim(),a=a==null?void 0:a.trim(),r=r==null?void 0:r.trim();const i=new Map,s=e.length;for(let c=0;c<s;c++){const g=e[c],m=g[n]||"",f=g[a]||"",y=g[r]||"";if(i.has(y)){const h=i.get(y);h.push({name:m,value:f,...g}),i.set(y,h)}else i.set(y,[{name:m,value:f,...g}])}const l=[],d=[];for(const[c,g]of i)if(d.push({name:c,data:g}),g!=null&&g.length)if(l.length)for(const m of g)l.includes(m.name)||l.push(m.name);else l.push(...g.map(m=>m.name));return{dimensions:l,dataset:d}};var he=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function V0(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 r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),n}var Dr={exports:{}};function H0(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 Gn={exports:{}};const j0=V0(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ir;function be(){return Ir||(Ir=1,function(e,o){(function(n,a){e.exports=a()})(he,function(){var n=n||function(a,r){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof he<"u"&&he.crypto&&(i=he.crypto),!i&&typeof H0=="function")try{i=j0}catch{}var s=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function x(){}return function(S){var p;return x.prototype=S,p=new x,x.prototype=null,p}}(),d={},c=d.lib={},g=c.Base=function(){return{extend:function(x){var S=l(this);return x&&S.mixIn(x),(!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 x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var S in x)x.hasOwnProperty(S)&&(this[S]=x[S]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),m=c.WordArray=g.extend({init:function(x,S){x=this.words=x||[],S!=r?this.sigBytes=S:this.sigBytes=x.length*4},toString:function(x){return(x||y).stringify(this)},concat:function(x){var S=this.words,p=x.words,C=this.sigBytes,w=x.sigBytes;if(this.clamp(),C%4)for(var B=0;B<w;B++){var L=p[B>>>2]>>>24-B%4*8&255;S[C+B>>>2]|=L<<24-(C+B)%4*8}else for(var O=0;O<w;O+=4)S[C+O>>>2]=p[O>>>2];return this.sigBytes+=w,this},clamp:function(){var x=this.words,S=this.sigBytes;x[S>>>2]&=4294967295<<32-S%4*8,x.length=a.ceil(S/4)},clone:function(){var x=g.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var S=[],p=0;p<x;p+=4)S.push(s());return new m.init(S,x)}}),f=d.enc={},y=f.Hex={stringify:function(x){for(var S=x.words,p=x.sigBytes,C=[],w=0;w<p;w++){var B=S[w>>>2]>>>24-w%4*8&255;C.push((B>>>4).toString(16)),C.push((B&15).toString(16))}return C.join("")},parse:function(x){for(var S=x.length,p=[],C=0;C<S;C+=2)p[C>>>3]|=parseInt(x.substr(C,2),16)<<24-C%8*4;return new m.init(p,S/2)}},h=f.Latin1={stringify:function(x){for(var S=x.words,p=x.sigBytes,C=[],w=0;w<p;w++){var B=S[w>>>2]>>>24-w%4*8&255;C.push(String.fromCharCode(B))}return C.join("")},parse:function(x){for(var S=x.length,p=[],C=0;C<S;C++)p[C>>>2]|=(x.charCodeAt(C)&255)<<24-C%4*8;return new m.init(p,S)}},u=f.Utf8={stringify:function(x){try{return decodeURIComponent(escape(h.stringify(x)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(x){return h.parse(unescape(encodeURIComponent(x)))}},b=c.BufferedBlockAlgorithm=g.extend({reset:function(){this._data=new m.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=u.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var S,p=this._data,C=p.words,w=p.sigBytes,B=this.blockSize,L=B*4,O=w/L;x?O=a.ceil(O):O=a.max((O|0)-this._minBufferSize,0);var E=O*B,_=a.min(E*4,w);if(E){for(var I=0;I<E;I+=B)this._doProcessBlock(C,I);S=C.splice(0,E),p.sigBytes-=_}return new m.init(S,_)},clone:function(){var x=g.clone.call(this);return x._data=this._data.clone(),x},_minBufferSize:0});c.Hasher=b.extend({cfg:g.extend(),init:function(x){this.cfg=this.cfg.extend(x),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(x){return this._append(x),this._process(),this},finalize:function(x){x&&this._append(x);var S=this._doFinalize();return S},blockSize:16,_createHelper:function(x){return function(S,p){return new x.init(p).finalize(S)}},_createHmacHelper:function(x){return function(S,p){return new k.HMAC.init(x,p).finalize(S)}}});var k=d.algo={};return d}(Math);return n})}(Gn)),Gn.exports}var Un={exports:{}},Rr;function yn(){return Rr||(Rr=1,function(e,o){(function(n,a){e.exports=a(be())})(he,function(n){return function(a){var r=n,i=r.lib,s=i.Base,l=i.WordArray,d=r.x64={};d.Word=s.extend({init:function(c,g){this.high=c,this.low=g}}),d.WordArray=s.extend({init:function(c,g){c=this.words=c||[],g!=a?this.sigBytes=g:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,g=c.length,m=[],f=0;f<g;f++){var y=c[f];m.push(y.high),m.push(y.low)}return l.create(m,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),g=c.words=this.words.slice(0),m=g.length,f=0;f<m;f++)g[f]=g[f].clone();return c}})}(),n})}(Un)),Un.exports}var $n={exports:{}},_r;function W0(){return _r||(_r=1,function(e,o){(function(n,a){e.exports=a(be())})(he,function(n){return function(){if(typeof ArrayBuffer=="function"){var a=n,r=a.lib,i=r.WordArray,s=i.init,l=i.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,g=[],m=0;m<c;m++)g[m>>>2]|=d[m]<<24-m%4*8;s.call(this,g,c)}else s.apply(this,arguments)};l.prototype=i}}(),n.lib.WordArray})}($n)),$n.exports}var Yn={exports:{}},Lr;function G0(){return Lr||(Lr=1,function(e,o){(function(n,a){e.exports=a(be())})(he,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(d){for(var c=d.words,g=d.sigBytes,m=[],f=0;f<g;f+=2){var y=c[f>>>2]>>>16-f%4*8&65535;m.push(String.fromCharCode(y))}return m.join("")},parse:function(d){for(var c=d.length,g=[],m=0;m<c;m++)g[m>>>1]|=d.charCodeAt(m)<<16-m%2*16;return i.create(g,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,g=d.sigBytes,m=[],f=0;f<g;f+=2){var y=l(c[f>>>2]>>>16-f%4*8&65535);m.push(String.fromCharCode(y))}return m.join("")},parse:function(d){for(var c=d.length,g=[],m=0;m<c;m++)g[m>>>1]|=l(d.charCodeAt(m)<<16-m%2*16);return i.create(g,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(Yn)),Yn.exports}var Kn={exports:{}},Or;function Vt(){return Or||(Or=1,function(e,o){(function(n,a){e.exports=a(be())})(he,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Base64={stringify:function(d){var c=d.words,g=d.sigBytes,m=this._map;d.clamp();for(var f=[],y=0;y<g;y+=3)for(var h=c[y>>>2]>>>24-y%4*8&255,u=c[y+1>>>2]>>>24-(y+1)%4*8&255,b=c[y+2>>>2]>>>24-(y+2)%4*8&255,k=h<<16|u<<8|b,x=0;x<4&&y+x*.75<g;x++)f.push(m.charAt(k>>>6*(3-x)&63));var S=m.charAt(64);if(S)for(;f.length%4;)f.push(S);return f.join("")},parse:function(d){var c=d.length,g=this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var f=0;f<g.length;f++)m[g.charCodeAt(f)]=f}var y=g.charAt(64);if(y){var h=d.indexOf(y);h!==-1&&(c=h)}return l(d,c,m)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,g){for(var m=[],f=0,y=0;y<c;y++)if(y%4){var h=g[d.charCodeAt(y-1)]<<y%4*2,u=g[d.charCodeAt(y)]>>>6-y%4*2,b=h|u;m[f>>>2]|=b<<24-f%4*8,f++}return i.create(m,f)}}(),n.enc.Base64})}(Kn)),Kn.exports}var Zn={exports:{}},Nr;function U0(){return Nr||(Nr=1,function(e,o){(function(n,a){e.exports=a(be())})(he,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var g=d.words,m=d.sigBytes,f=c?this._safe_map:this._map;d.clamp();for(var y=[],h=0;h<m;h+=3)for(var u=g[h>>>2]>>>24-h%4*8&255,b=g[h+1>>>2]>>>24-(h+1)%4*8&255,k=g[h+2>>>2]>>>24-(h+2)%4*8&255,x=u<<16|b<<8|k,S=0;S<4&&h+S*.75<m;S++)y.push(f.charAt(x>>>6*(3-S)&63));var p=f.charAt(64);if(p)for(;y.length%4;)y.push(p);return y.join("")},parse:function(d,c=!0){var g=d.length,m=c?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var y=0;y<m.length;y++)f[m.charCodeAt(y)]=y}var h=m.charAt(64);if(h){var u=d.indexOf(h);u!==-1&&(g=u)}return l(d,g,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,g){for(var m=[],f=0,y=0;y<c;y++)if(y%4){var h=g[d.charCodeAt(y-1)]<<y%4*2,u=g[d.charCodeAt(y)]>>>6-y%4*2,b=h|u;m[f>>>2]|=b<<24-f%4*8,f++}return i.create(m,f)}}(),n.enc.Base64url})}(Zn)),Zn.exports}var Qn={exports:{}},Fr;function Ht(){return Fr||(Fr=1,function(e,o){(function(n,a){e.exports=a(be())})(he,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[];(function(){for(var u=0;u<64;u++)c[u]=a.abs(a.sin(u+1))*4294967296|0})();var g=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(u,b){for(var k=0;k<16;k++){var x=b+k,S=u[x];u[x]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var p=this._hash.words,C=u[b+0],w=u[b+1],B=u[b+2],L=u[b+3],O=u[b+4],E=u[b+5],_=u[b+6],I=u[b+7],A=u[b+8],R=u[b+9],T=u[b+10],v=u[b+11],D=u[b+12],N=u[b+13],V=u[b+14],H=u[b+15],F=p[0],z=p[1],M=p[2],j=p[3];F=m(F,z,M,j,C,7,c[0]),j=m(j,F,z,M,w,12,c[1]),M=m(M,j,F,z,B,17,c[2]),z=m(z,M,j,F,L,22,c[3]),F=m(F,z,M,j,O,7,c[4]),j=m(j,F,z,M,E,12,c[5]),M=m(M,j,F,z,_,17,c[6]),z=m(z,M,j,F,I,22,c[7]),F=m(F,z,M,j,A,7,c[8]),j=m(j,F,z,M,R,12,c[9]),M=m(M,j,F,z,T,17,c[10]),z=m(z,M,j,F,v,22,c[11]),F=m(F,z,M,j,D,7,c[12]),j=m(j,F,z,M,N,12,c[13]),M=m(M,j,F,z,V,17,c[14]),z=m(z,M,j,F,H,22,c[15]),F=f(F,z,M,j,w,5,c[16]),j=f(j,F,z,M,_,9,c[17]),M=f(M,j,F,z,v,14,c[18]),z=f(z,M,j,F,C,20,c[19]),F=f(F,z,M,j,E,5,c[20]),j=f(j,F,z,M,T,9,c[21]),M=f(M,j,F,z,H,14,c[22]),z=f(z,M,j,F,O,20,c[23]),F=f(F,z,M,j,R,5,c[24]),j=f(j,F,z,M,V,9,c[25]),M=f(M,j,F,z,L,14,c[26]),z=f(z,M,j,F,A,20,c[27]),F=f(F,z,M,j,N,5,c[28]),j=f(j,F,z,M,B,9,c[29]),M=f(M,j,F,z,I,14,c[30]),z=f(z,M,j,F,D,20,c[31]),F=y(F,z,M,j,E,4,c[32]),j=y(j,F,z,M,A,11,c[33]),M=y(M,j,F,z,v,16,c[34]),z=y(z,M,j,F,V,23,c[35]),F=y(F,z,M,j,w,4,c[36]),j=y(j,F,z,M,O,11,c[37]),M=y(M,j,F,z,I,16,c[38]),z=y(z,M,j,F,T,23,c[39]),F=y(F,z,M,j,N,4,c[40]),j=y(j,F,z,M,C,11,c[41]),M=y(M,j,F,z,L,16,c[42]),z=y(z,M,j,F,_,23,c[43]),F=y(F,z,M,j,R,4,c[44]),j=y(j,F,z,M,D,11,c[45]),M=y(M,j,F,z,H,16,c[46]),z=y(z,M,j,F,B,23,c[47]),F=h(F,z,M,j,C,6,c[48]),j=h(j,F,z,M,I,10,c[49]),M=h(M,j,F,z,V,15,c[50]),z=h(z,M,j,F,E,21,c[51]),F=h(F,z,M,j,D,6,c[52]),j=h(j,F,z,M,L,10,c[53]),M=h(M,j,F,z,T,15,c[54]),z=h(z,M,j,F,w,21,c[55]),F=h(F,z,M,j,A,6,c[56]),j=h(j,F,z,M,H,10,c[57]),M=h(M,j,F,z,_,15,c[58]),z=h(z,M,j,F,N,21,c[59]),F=h(F,z,M,j,O,6,c[60]),j=h(j,F,z,M,v,10,c[61]),M=h(M,j,F,z,B,15,c[62]),z=h(z,M,j,F,R,21,c[63]),p[0]=p[0]+F|0,p[1]=p[1]+z|0,p[2]=p[2]+M|0,p[3]=p[3]+j|0},_doFinalize:function(){var u=this._data,b=u.words,k=this._nDataBytes*8,x=u.sigBytes*8;b[x>>>5]|=128<<24-x%32;var S=a.floor(k/4294967296),p=k;b[(x+64>>>9<<4)+15]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,b[(x+64>>>9<<4)+14]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,u.sigBytes=(b.length+1)*4,this._process();for(var C=this._hash,w=C.words,B=0;B<4;B++){var L=w[B];w[B]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}return C},clone:function(){var u=l.clone.call(this);return u._hash=this._hash.clone(),u}});function m(u,b,k,x,S,p,C){var w=u+(b&k|~b&x)+S+C;return(w<<p|w>>>32-p)+b}function f(u,b,k,x,S,p,C){var w=u+(b&x|k&~x)+S+C;return(w<<p|w>>>32-p)+b}function y(u,b,k,x,S,p,C){var w=u+(b^k^x)+S+C;return(w<<p|w>>>32-p)+b}function h(u,b,k,x,S,p,C){var w=u+(k^(b|~x))+S+C;return(w<<p|w>>>32-p)+b}r.MD5=l._createHelper(g),r.HmacMD5=l._createHmacHelper(g)}(Math),n.MD5})}(Qn)),Qn.exports}var Jn={exports:{}},Mr;function Xn(){return Mr||(Mr=1,function(e,o){(function(n,a){e.exports=a(be())})(he,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=r.Hasher,l=a.algo,d=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(g,m){for(var f=this._hash.words,y=f[0],h=f[1],u=f[2],b=f[3],k=f[4],x=0;x<80;x++){if(x<16)d[x]=g[m+x]|0;else{var S=d[x-3]^d[x-8]^d[x-14]^d[x-16];d[x]=S<<1|S>>>31}var p=(y<<5|y>>>27)+k+d[x];x<20?p+=(h&u|~h&b)+1518500249:x<40?p+=(h^u^b)+1859775393:x<60?p+=(h&u|h&b|u&b)-1894007588:p+=(h^u^b)-899497514,k=b,b=u,u=h<<30|h>>>2,h=y,y=p}f[0]=f[0]+y|0,f[1]=f[1]+h|0,f[2]=f[2]+u|0,f[3]=f[3]+b|0,f[4]=f[4]+k|0},_doFinalize:function(){var g=this._data,m=g.words,f=this._nDataBytes*8,y=g.sigBytes*8;return m[y>>>5]|=128<<24-y%32,m[(y+64>>>9<<4)+14]=Math.floor(f/4294967296),m[(y+64>>>9<<4)+15]=f,g.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}(Jn)),Jn.exports}var eo={exports:{}},zr;function Pr(){return zr||(zr=1,function(e,o){(function(n,a){e.exports=a(be())})(he,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],g=[];(function(){function y(k){for(var x=a.sqrt(k),S=2;S<=x;S++)if(!(k%S))return!1;return!0}function h(k){return(k-(k|0))*4294967296|0}for(var u=2,b=0;b<64;)y(u)&&(b<8&&(c[b]=h(a.pow(u,1/2))),g[b]=h(a.pow(u,1/3)),b++),u++})();var m=[],f=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(y,h){for(var u=this._hash.words,b=u[0],k=u[1],x=u[2],S=u[3],p=u[4],C=u[5],w=u[6],B=u[7],L=0;L<64;L++){if(L<16)m[L]=y[h+L]|0;else{var O=m[L-15],E=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,_=m[L-2],I=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;m[L]=E+m[L-7]+I+m[L-16]}var A=p&C^~p&w,R=b&k^b&x^k&x,T=(b<<30|b>>>2)^(b<<19|b>>>13)^(b<<10|b>>>22),v=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),D=B+v+A+g[L]+m[L],N=T+R;B=w,w=C,C=p,p=S+D|0,S=x,x=k,k=b,b=D+N|0}u[0]=u[0]+b|0,u[1]=u[1]+k|0,u[2]=u[2]+x|0,u[3]=u[3]+S|0,u[4]=u[4]+p|0,u[5]=u[5]+C|0,u[6]=u[6]+w|0,u[7]=u[7]+B|0},_doFinalize:function(){var y=this._data,h=y.words,u=this._nDataBytes*8,b=y.sigBytes*8;return h[b>>>5]|=128<<24-b%32,h[(b+64>>>9<<4)+14]=a.floor(u/4294967296),h[(b+64>>>9<<4)+15]=u,y.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var y=l.clone.call(this);return y._hash=this._hash.clone(),y}});r.SHA256=l._createHelper(f),r.HmacSHA256=l._createHmacHelper(f)}(Math),n.SHA256})}(eo)),eo.exports}var to={exports:{}},qr;function $0(){return qr||(qr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Pr())})(he,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.algo,l=s.SHA256,d=s.SHA224=l.extend({_doReset:function(){this._hash=new i.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})}(to)),to.exports}var no={exports:{}},Vr;function Hr(){return Vr||(Vr=1,function(e,o){(function(n,a,r){e.exports=a(be(),yn())})(he,function(n){return function(){var a=n,r=a.lib,i=r.Hasher,s=a.x64,l=s.Word,d=s.WordArray,c=a.algo;function g(){return l.create.apply(l,arguments)}var m=[g(1116352408,3609767458),g(1899447441,602891725),g(3049323471,3964484399),g(3921009573,2173295548),g(961987163,4081628472),g(1508970993,3053834265),g(2453635748,2937671579),g(2870763221,3664609560),g(3624381080,2734883394),g(310598401,1164996542),g(607225278,1323610764),g(1426881987,3590304994),g(1925078388,4068182383),g(2162078206,991336113),g(2614888103,633803317),g(3248222580,3479774868),g(3835390401,2666613458),g(4022224774,944711139),g(264347078,2341262773),g(604807628,2007800933),g(770255983,1495990901),g(1249150122,1856431235),g(1555081692,3175218132),g(1996064986,2198950837),g(2554220882,3999719339),g(2821834349,766784016),g(2952996808,2566594879),g(3210313671,3203337956),g(3336571891,1034457026),g(3584528711,2466948901),g(113926993,3758326383),g(338241895,168717936),g(666307205,1188179964),g(773529912,1546045734),g(1294757372,1522805485),g(1396182291,2643833823),g(1695183700,2343527390),g(1986661051,1014477480),g(2177026350,1206759142),g(2456956037,344077627),g(2730485921,1290863460),g(2820302411,3158454273),g(3259730800,3505952657),g(3345764771,106217008),g(3516065817,3606008344),g(3600352804,1432725776),g(4094571909,1467031594),g(275423344,851169720),g(430227734,3100823752),g(506948616,1363258195),g(659060556,3750685593),g(883997877,3785050280),g(958139571,3318307427),g(1322822218,3812723403),g(1537002063,2003034995),g(1747873779,3602036899),g(1955562222,1575990012),g(2024104815,1125592928),g(2227730452,2716904306),g(2361852424,442776044),g(2428436474,593698344),g(2756734187,3733110249),g(3204031479,2999351573),g(3329325298,3815920427),g(3391569614,3928383900),g(3515267271,566280711),g(3940187606,3454069534),g(4118630271,4000239992),g(116418474,1914138554),g(174292421,2731055270),g(289380356,3203993006),g(460393269,320620315),g(685471733,587496836),g(852142971,1086792851),g(1017036298,365543100),g(1126000580,2618297676),g(1288033470,3409855158),g(1501505948,4234509866),g(1607167915,987167468),g(1816402316,1246189591)],f=[];(function(){for(var h=0;h<80;h++)f[h]=g()})();var y=c.SHA512=i.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(h,u){for(var b=this._hash.words,k=b[0],x=b[1],S=b[2],p=b[3],C=b[4],w=b[5],B=b[6],L=b[7],O=k.high,E=k.low,_=x.high,I=x.low,A=S.high,R=S.low,T=p.high,v=p.low,D=C.high,N=C.low,V=w.high,H=w.low,F=B.high,z=B.low,M=L.high,j=L.low,J=O,q=E,P=_,Y=I,$=A,Q=R,ie=T,ne=v,le=D,U=N,X=V,oe=H,ce=F,pe=z,Ce=M,we=j,Be=0;Be<80;Be++){var Ee,Fe,Ze=f[Be];if(Be<16)Fe=Ze.high=h[u+Be*2]|0,Ee=Ze.low=h[u+Be*2+1]|0;else{var Qe=f[Be-15],Me=Qe.high,Ue=Qe.low,ot=(Me>>>1|Ue<<31)^(Me>>>8|Ue<<24)^Me>>>7,gt=(Ue>>>1|Me<<31)^(Ue>>>8|Me<<24)^(Ue>>>7|Me<<25),at=f[Be-2],je=at.high,Je=at.low,dn=(je>>>19|Je<<13)^(je<<3|Je>>>29)^je>>>6,Jt=(Je>>>19|je<<13)^(Je<<3|je>>>29)^(Je>>>6|je<<26),G=f[Be-7],K=G.high,ee=G.low,re=f[Be-16],se=re.high,ae=re.low;Ee=gt+ee,Fe=ot+K+(Ee>>>0<gt>>>0?1:0),Ee=Ee+Jt,Fe=Fe+dn+(Ee>>>0<Jt>>>0?1:0),Ee=Ee+ae,Fe=Fe+se+(Ee>>>0<ae>>>0?1:0),Ze.high=Fe,Ze.low=Ee}var te=le&X^~le&ce,de=U&oe^~U&pe,me=J&P^J&$^P&$,ve=q&Y^q&Q^Y&Q,Pe=(J>>>28|q<<4)^(J<<30|q>>>2)^(J<<25|q>>>7),Xe=(q>>>28|J<<4)^(q<<30|J>>>2)^(q<<25|J>>>7),vt=(le>>>14|U<<18)^(le>>>18|U<<14)^(le<<23|U>>>9),Ot=(U>>>14|le<<18)^(U>>>18|le<<14)^(U<<23|le>>>9),fn=m[Be],Nt=fn.high,mt=fn.low,We=we+Ot,rt=Ce+vt+(We>>>0<we>>>0?1:0),We=We+de,rt=rt+te+(We>>>0<de>>>0?1:0),We=We+mt,rt=rt+Nt+(We>>>0<mt>>>0?1:0),We=We+Ee,rt=rt+Fe+(We>>>0<Ee>>>0?1:0),Bn=Xe+ve,Wu=Pe+me+(Bn>>>0<Xe>>>0?1:0);Ce=ce,we=pe,ce=X,pe=oe,X=le,oe=U,U=ne+We|0,le=ie+rt+(U>>>0<ne>>>0?1:0)|0,ie=$,ne=Q,$=P,Q=Y,P=J,Y=q,q=We+Bn|0,J=rt+Wu+(q>>>0<We>>>0?1:0)|0}E=k.low=E+q,k.high=O+J+(E>>>0<q>>>0?1:0),I=x.low=I+Y,x.high=_+P+(I>>>0<Y>>>0?1:0),R=S.low=R+Q,S.high=A+$+(R>>>0<Q>>>0?1:0),v=p.low=v+ne,p.high=T+ie+(v>>>0<ne>>>0?1:0),N=C.low=N+U,C.high=D+le+(N>>>0<U>>>0?1:0),H=w.low=H+oe,w.high=V+X+(H>>>0<oe>>>0?1:0),z=B.low=z+pe,B.high=F+ce+(z>>>0<pe>>>0?1:0),j=L.low=j+we,L.high=M+Ce+(j>>>0<we>>>0?1:0)},_doFinalize:function(){var h=this._data,u=h.words,b=this._nDataBytes*8,k=h.sigBytes*8;u[k>>>5]|=128<<24-k%32,u[(k+128>>>10<<5)+30]=Math.floor(b/4294967296),u[(k+128>>>10<<5)+31]=b,h.sigBytes=u.length*4,this._process();var x=this._hash.toX32();return x},clone:function(){var h=i.clone.call(this);return h._hash=this._hash.clone(),h},blockSize:1024/32});a.SHA512=i._createHelper(y),a.HmacSHA512=i._createHmacHelper(y)}(),n.SHA512})}(no)),no.exports}var oo={exports:{}},jr;function Y0(){return jr||(jr=1,function(e,o){(function(n,a,r){e.exports=a(be(),yn(),Hr())})(he,function(n){return function(){var a=n,r=a.x64,i=r.Word,s=r.WordArray,l=a.algo,d=l.SHA512,c=l.SHA384=d.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var g=d._doFinalize.call(this);return g.sigBytes-=16,g}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(oo)),oo.exports}var ao={exports:{}},Wr;function K0(){return Wr||(Wr=1,function(e,o){(function(n,a,r){e.exports=a(be(),yn())})(he,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,g=r.algo,m=[],f=[],y=[];(function(){for(var b=1,k=0,x=0;x<24;x++){m[b+5*k]=(x+1)*(x+2)/2%64;var S=k%5,p=(2*b+3*k)%5;b=S,k=p}for(var b=0;b<5;b++)for(var k=0;k<5;k++)f[b+5*k]=k+(2*b+3*k)%5*5;for(var C=1,w=0;w<24;w++){for(var B=0,L=0,O=0;O<7;O++){if(C&1){var E=(1<<O)-1;E<32?L^=1<<E:B^=1<<E-32}C&128?C=C<<1^113:C<<=1}y[w]=c.create(B,L)}})();var h=[];(function(){for(var b=0;b<25;b++)h[b]=c.create()})();var u=g.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var b=this._state=[],k=0;k<25;k++)b[k]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(b,k){for(var x=this._state,S=this.blockSize/2,p=0;p<S;p++){var C=b[k+2*p],w=b[k+2*p+1];C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var B=x[p];B.high^=w,B.low^=C}for(var L=0;L<24;L++){for(var O=0;O<5;O++){for(var E=0,_=0,I=0;I<5;I++){var B=x[O+5*I];E^=B.high,_^=B.low}var A=h[O];A.high=E,A.low=_}for(var O=0;O<5;O++)for(var R=h[(O+4)%5],T=h[(O+1)%5],v=T.high,D=T.low,E=R.high^(v<<1|D>>>31),_=R.low^(D<<1|v>>>31),I=0;I<5;I++){var B=x[O+5*I];B.high^=E,B.low^=_}for(var N=1;N<25;N++){var E,_,B=x[N],V=B.high,H=B.low,F=m[N];F<32?(E=V<<F|H>>>32-F,_=H<<F|V>>>32-F):(E=H<<F-32|V>>>64-F,_=V<<F-32|H>>>64-F);var z=h[f[N]];z.high=E,z.low=_}var M=h[0],j=x[0];M.high=j.high,M.low=j.low;for(var O=0;O<5;O++)for(var I=0;I<5;I++){var N=O+5*I,B=x[N],J=h[N],q=h[(O+1)%5+5*I],P=h[(O+2)%5+5*I];B.high=J.high^~q.high&P.high,B.low=J.low^~q.low&P.low}var B=x[0],Y=y[L];B.high^=Y.high,B.low^=Y.low}},_doFinalize:function(){var b=this._data,k=b.words;this._nDataBytes*8;var x=b.sigBytes*8,S=this.blockSize*32;k[x>>>5]|=1<<24-x%32,k[(a.ceil((x+1)/S)*S>>>5)-1]|=128,b.sigBytes=k.length*4,this._process();for(var p=this._state,C=this.cfg.outputLength/8,w=C/8,B=[],L=0;L<w;L++){var O=p[L],E=O.high,_=O.low;E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,B.push(_),B.push(E)}return new s.init(B,C)},clone:function(){for(var b=l.clone.call(this),k=b._state=this._state.slice(0),x=0;x<25;x++)k[x]=k[x].clone();return b}});r.SHA3=l._createHelper(u),r.HmacSHA3=l._createHmacHelper(u)}(Math),n.SHA3})}(ao)),ao.exports}var ro={exports:{}},Gr;function Z0(){return Gr||(Gr=1,function(e,o){(function(n,a){e.exports=a(be())})(he,function(n){/** @preserve
|
|
56
|
+
`,ui=!1,Ks=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$s;t.nextTick(function(){ui||(typeof window<"u"&&window.document&&window.document.documentElement&&js(o,{prepend:!0}),ui=!0)})},Ys=["icon","primaryColor","secondaryColor"];function Zs(e,o){if(e==null)return{};var n=Qs(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 Qs(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 yn(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){Js(e,i,n[i])})}return e}function Js(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var on={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Xs(e){var o=e.primaryColor,n=e.secondaryColor;on.primaryColor=o,on.secondaryColor=n||di(o),on.calculated=!!n}function e0(){return yn({},on)}var zt=function(o,n){var a=yn({},o,n.attrs),i=a.icon,r=a.primaryColor,s=a.secondaryColor,l=Zs(a,Ys),d=on;if(r&&(d={primaryColor:r,secondaryColor:s||di(r)}),Ks(),Us(ci(i),"icon should be icon definiton, but got ".concat(i)),!ci(i))return null;var c=i;return c&&typeof c.icon=="function"&&(c=yn({},c,{icon:c.icon(d.primaryColor,d.secondaryColor)})),Mn(c.icon,"svg-".concat(c.name),yn({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};zt.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},zt.inheritAttrs=!1,zt.displayName="IconBase",zt.getTwoToneColors=e0,zt.setTwoToneColors=Xs;const zn=zt;function t0(e,o){return i0(e)||a0(e,o)||o0(e,o)||n0()}function n0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
57
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o0(e,o){if(e){if(typeof e=="string")return hi(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 hi(e,o)}}function hi(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 a0(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 i0(e){if(Array.isArray(e))return e}function gi(e){var o=fi(e),n=t0(o,2),a=n[0],i=n[1];return zn.setTwoToneColors({primaryColor:a,secondaryColor:i})}function r0(){var e=zn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var l0=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function s0(e,o){return u0(e)||f0(e,o)||d0(e,o)||c0()}function c0(){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 d0(e,o){if(e){if(typeof e=="string")return mi(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 mi(e,o)}}function mi(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 f0(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 u0(e){if(Array.isArray(e))return e}function yi(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){Pn(e,i,n[i])})}return e}function Pn(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function h0(e,o){if(e==null)return{};var n=g0(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 g0(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}gi("#1890ff");var Pt=function(o,n){var a,i=yi({},o,n.attrs),r=i.class,s=i.icon,l=i.spin,d=i.rotate,c=i.tabindex,u=i.twoToneColor,y=i.onClick,f=h0(i,l0),x=(a={anticon:!0},Pn(a,"anticon-".concat(s.name),!!s.name),Pn(a,r,r),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",h=c;h===void 0&&y&&(h=-1,f.tabindex=h);var g=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,C=fi(u),p=s0(C,2),v=p[0],b=p[1];return t.createVNode("span",yi({role:"img","aria-label":s.name},f,{onClick:y,class:x}),[t.createVNode(zn,{class:m,icon:s,primaryColor:v,secondaryColor:b,style:g},null)])};Pt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Pt.displayName="AntdIcon",Pt.inheritAttrs=!1,Pt.getTwoToneColor=r0,Pt.setTwoToneColor=gi;const xi=Pt;var m0={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 y0=m0;function pi(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){x0(e,i,n[i])})}return e}function x0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var qn=function(o,n){var a=pi({},o,n.attrs);return t.createVNode(xi,pi({},a,{icon:y0}),null)};qn.displayName="CloseOutlined",qn.inheritAttrs=!1;const p0=qn;var b0={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 v0=b0;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){S0(e,i,n[i])})}return e}function S0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Vn=function(o,n){var a=bi({},o,n.attrs);return t.createVNode(xi,bi({},a,{icon:v0}),null)};Vn.displayName="LoadingOutlined",Vn.inheritAttrs=!1;const C0=Vn,w0=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ue.Spin},setup(){return{indicator:t.h(C0,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),ih="",xe=(e,o)=>{const n=e.__vccOpts||e;for(const[a,i]of o)n[a]=i;return n},A0={class:"spin-wrapper"};function k0(e,o,n,a,i,r){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",A0,[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 qt=xe(w0,[["render",k0]]),T0=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ue.Skeleton}});function B0(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 Vt=xe(T0,[["render",B0]]);(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 E0=Object.defineProperty,vi=Object.getOwnPropertySymbols,D0=Object.prototype.hasOwnProperty,I0=Object.prototype.propertyIsEnumerable,Si=(e,o,n)=>o in e?E0(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,Ci=(e,o)=>{for(var n in o||(o={}))D0.call(o,n)&&Si(e,n,o[n]);if(vi)for(var n of vi(o))I0.call(o,n)&&Si(e,n,o[n]);return e},R0=(e,o)=>{const n=e.__vccOpts||e;for(const[a,i]of o)n[a]=i;return n};const _0=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),u=t.ref(0),y=t.ref(0),f=t.ref(!1),x=t.ref(!1),m=t.ref(0),h=t.ref(null),g=t.ref("200px"),C=t.ref(!1),p=t.ref(null),v=t.ref(null),b=async()=>{await w(),r.value++},w=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",i.value="0%",p.value!==null&&v.value!==null&&p.value&&v.value)if(e.vertical&&"clientHeight"in p.value&&"clientHeight"in v.value){y.value=p.value.clientHeight,u.value=v.value.clientHeight;const S=Math.ceil(u.value/y.value);return n.value=isFinite(S)?S:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in p.value&&"clientWidth"in v.value){if(c.value=p.value.clientWidth,d.value=v.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const S=Math.ceil(d.value/c.value);return n.value=isFinite(S)?S: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&&b()}),t.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&b()}),t.watch(()=>e.pause,(S,E)=>{S!==E&&o(S?"onResume":"onPause")});const A=()=>{e.pauseOnHover&&(o("onPause"),f.value=!0)},T=()=>{e.pauseOnHover&&(o("onResume"),f.value=!1)},D=()=>{e.pauseOnClick&&(o("onPause"),x.value=!0)},O=()=>{e.pauseOnClick&&(o("onResume"),x.value=!1)},I=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),_=t.computed(()=>e.pauseOnHover&&(f.value||x.value)||!e.pauseOnHover&&I.value==="paused"?"paused":"running"),L=t.computed(()=>e.pauseOnHover&&f.value||e.pauseOnClick&&x.value||!e.pauseOnHover&&I.value==="paused"?"paused":"running"),k=t.computed(()=>{const S={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${_.value}`,"--pauseOnClick":`${L.value}`,"--pauseAnimation":`${I.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":`${g.value}`,"--min-width":`${a.value}`,"--min-height":`${i.value}`},E={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(E["--orientation"]="scrollY"),Ci(Ci({},S),E)}),R=t.computed(()=>!!e.gradient),B=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."),g.value=e.gradientWidth):e.gradientLength&&(g.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await w(),b()),C.value=!0};return t.onMounted(async()=>{B(),h.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(h.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(h.value)}),{ready:C,contentWidth:c,containerWidth:d,contentHeight:y,containerHeight:u,loopCounter:m,loopInterval:h,mouseOverMarquee:f,mouseDownMarquee:x,minWidth:a,minHeight:i,animateOnOverflowPause:l,marqueeContent:p,marqueeOverlayContainer:v,componentKey:r,showGradient:R,cloneAmount:n,ForcesUpdate:b,checkForClone:w,setupMarquee:B,getCurrentStyle:k,hoverStarted:A,hoverEnded:T,mouseDown:D,mouseUp:O}}}),L0={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},O0={class:"marquee",ref:"marqueeContent"},N0={key:1,"aria-hidden":!0,class:"marquee"};function F0(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",L0,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",O0,[t.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(t.openBlock(),t.createElementBlock("div",N0,[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 M0=R0(_0,[["render",F0]]);const z0=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:M0},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},vertical:{type:Boolean,default:!0},step:{type:Number,default:1},wrapStyle:{type:Object,default:()=>{}}},setup(e){return{isAutoScroll:t.ref(e.visible)}}}),rh="";function P0(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:{width:"100%"},duration:e.step,vertical:e.vertical,pauseOnHover:!0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["duration","vertical"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"list-wrap",style:t.normalizeStyle(e.wrapStyle)},[t.renderSlot(e.$slots,"default")],4))}const Hn=xe(z0,[["render",P0]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Ce=(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},De={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},Ae=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},jn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:""},Wn=Ae(jn),q0=["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"],Ee=(e,o=[])=>{const n=_e.without(q0,...o);return t.computed(()=>_e.pick(e,n))},Gn="EVENT_BUS",Pe="GLOBAL_CONFIG",Ie="GLOBAL_MODEL",ze="REQUEST_MODEL",wi="GLOBAL_TOKEN",an="REFRESH_PAGE",Ai="MODAL_MODEL",kt="LOADED_DATA",Ke=18,ki="ygt",Ti=((ts=window==null?void 0:window.config)==null?void 0:ts.indicatorURL)||"";(ns=window==null?void 0:window.config)!=null&&ns.uploadPath;const Bi=((os=window==null?void 0:window.config)==null?void 0:os.routerBaseURL)||"./",V0=((as=window==null?void 0:window.config)==null?void 0:as.erdURL)||"",Ei=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],Oe=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject(Gn,{onEvent:(i,r)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},Re=e=>{const o=e.events,n=e.id,a=t.inject(Gn,{emitEvent:(r,s,l)=>{}}),{touchEventId:i}=t.inject(Pe,{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(u){console.error(u)}})}},Ht=(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 u=e[c],y=u[n]||"",f=u[a]||"",x=u[i]||"";if(r.has(x)){const m=r.get(x);m.push({name:y,value:f,...u}),r.set(x,m)}else r.set(x,[{name:y,value:f,...u}])}const l=[],d=[];for(const[c,u]of r)if(d.push({name:c,data:u}),u!=null&&u.length)if(l.length)for(const y of u)l.includes(y.name)||l.push(y.name);else l.push(...u.map(y=>y.name));return{dimensions:l,dataset:d}};var ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function H0(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 Ii={exports:{}};function j0(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 Un={exports:{}};const W0=H0(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ri;function be(){return Ri||(Ri=1,function(e,o){(function(n,a){e.exports=a()})(ge,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 ge<"u"&&ge.crypto&&(r=ge.crypto),!r&&typeof j0=="function")try{r=W0}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 p(){}return function(v){var b;return p.prototype=v,b=new p,p.prototype=null,b}}(),d={},c=d.lib={},u=c.Base=function(){return{extend:function(p){var v=l(this);return p&&v.mixIn(p),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var v in p)p.hasOwnProperty(v)&&(this[v]=p[v]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=c.WordArray=u.extend({init:function(p,v){p=this.words=p||[],v!=i?this.sigBytes=v:this.sigBytes=p.length*4},toString:function(p){return(p||x).stringify(this)},concat:function(p){var v=this.words,b=p.words,w=this.sigBytes,A=p.sigBytes;if(this.clamp(),w%4)for(var T=0;T<A;T++){var D=b[T>>>2]>>>24-T%4*8&255;v[w+T>>>2]|=D<<24-(w+T)%4*8}else for(var O=0;O<A;O+=4)v[w+O>>>2]=b[O>>>2];return this.sigBytes+=A,this},clamp:function(){var p=this.words,v=this.sigBytes;p[v>>>2]&=4294967295<<32-v%4*8,p.length=a.ceil(v/4)},clone:function(){var p=u.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var v=[],b=0;b<p;b+=4)v.push(s());return new y.init(v,p)}}),f=d.enc={},x=f.Hex={stringify:function(p){for(var v=p.words,b=p.sigBytes,w=[],A=0;A<b;A++){var T=v[A>>>2]>>>24-A%4*8&255;w.push((T>>>4).toString(16)),w.push((T&15).toString(16))}return w.join("")},parse:function(p){for(var v=p.length,b=[],w=0;w<v;w+=2)b[w>>>3]|=parseInt(p.substr(w,2),16)<<24-w%8*4;return new y.init(b,v/2)}},m=f.Latin1={stringify:function(p){for(var v=p.words,b=p.sigBytes,w=[],A=0;A<b;A++){var T=v[A>>>2]>>>24-A%4*8&255;w.push(String.fromCharCode(T))}return w.join("")},parse:function(p){for(var v=p.length,b=[],w=0;w<v;w++)b[w>>>2]|=(p.charCodeAt(w)&255)<<24-w%4*8;return new y.init(b,v)}},h=f.Utf8={stringify:function(p){try{return decodeURIComponent(escape(m.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return m.parse(unescape(encodeURIComponent(p)))}},g=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=h.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var v,b=this._data,w=b.words,A=b.sigBytes,T=this.blockSize,D=T*4,O=A/D;p?O=a.ceil(O):O=a.max((O|0)-this._minBufferSize,0);var I=O*T,_=a.min(I*4,A);if(I){for(var L=0;L<I;L+=T)this._doProcessBlock(w,L);v=w.splice(0,I),b.sigBytes-=_}return new y.init(v,_)},clone:function(){var p=u.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});c.Hasher=g.extend({cfg:u.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(p){return function(v,b){return new p.init(b).finalize(v)}},_createHmacHelper:function(p){return function(v,b){return new C.HMAC.init(p,b).finalize(v)}}});var C=d.algo={};return d}(Math);return n})}(Un)),Un.exports}var $n={exports:{}},_i;function xn(){return _i||(_i=1,function(e,o){(function(n,a){e.exports=a(be())})(ge,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,u){this.high=c,this.low=u}}),d.WordArray=s.extend({init:function(c,u){c=this.words=c||[],u!=a?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,y=[],f=0;f<u;f++){var x=c[f];y.push(x.high),y.push(x.low)}return l.create(y,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),u=c.words=this.words.slice(0),y=u.length,f=0;f<y;f++)u[f]=u[f].clone();return c}})}(),n})}($n)),$n.exports}var Kn={exports:{}},Li;function G0(){return Li||(Li=1,function(e,o){(function(n,a){e.exports=a(be())})(ge,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,u=[],y=0;y<c;y++)u[y>>>2]|=d[y]<<24-y%4*8;s.call(this,u,c)}else s.apply(this,arguments)};l.prototype=r}}(),n.lib.WordArray})}(Kn)),Kn.exports}var Yn={exports:{}},Oi;function U0(){return Oi||(Oi=1,function(e,o){(function(n,a){e.exports=a(be())})(ge,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,u=d.sigBytes,y=[],f=0;f<u;f+=2){var x=c[f>>>2]>>>16-f%4*8&65535;y.push(String.fromCharCode(x))}return y.join("")},parse:function(d){for(var c=d.length,u=[],y=0;y<c;y++)u[y>>>1]|=d.charCodeAt(y)<<16-y%2*16;return r.create(u,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,u=d.sigBytes,y=[],f=0;f<u;f+=2){var x=l(c[f>>>2]>>>16-f%4*8&65535);y.push(String.fromCharCode(x))}return y.join("")},parse:function(d){for(var c=d.length,u=[],y=0;y<c;y++)u[y>>>1]|=l(d.charCodeAt(y)<<16-y%2*16);return r.create(u,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(Yn)),Yn.exports}var Zn={exports:{}},Ni;function jt(){return Ni||(Ni=1,function(e,o){(function(n,a){e.exports=a(be())})(ge,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,u=d.sigBytes,y=this._map;d.clamp();for(var f=[],x=0;x<u;x+=3)for(var m=c[x>>>2]>>>24-x%4*8&255,h=c[x+1>>>2]>>>24-(x+1)%4*8&255,g=c[x+2>>>2]>>>24-(x+2)%4*8&255,C=m<<16|h<<8|g,p=0;p<4&&x+p*.75<u;p++)f.push(y.charAt(C>>>6*(3-p)&63));var v=y.charAt(64);if(v)for(;f.length%4;)f.push(v);return f.join("")},parse:function(d){var c=d.length,u=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var f=0;f<u.length;f++)y[u.charCodeAt(f)]=f}var x=u.charAt(64);if(x){var m=d.indexOf(x);m!==-1&&(c=m)}return l(d,c,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,u){for(var y=[],f=0,x=0;x<c;x++)if(x%4){var m=u[d.charCodeAt(x-1)]<<x%4*2,h=u[d.charCodeAt(x)]>>>6-x%4*2,g=m|h;y[f>>>2]|=g<<24-f%4*8,f++}return r.create(y,f)}}(),n.enc.Base64})}(Zn)),Zn.exports}var Qn={exports:{}},Fi;function $0(){return Fi||(Fi=1,function(e,o){(function(n,a){e.exports=a(be())})(ge,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var u=d.words,y=d.sigBytes,f=c?this._safe_map:this._map;d.clamp();for(var x=[],m=0;m<y;m+=3)for(var h=u[m>>>2]>>>24-m%4*8&255,g=u[m+1>>>2]>>>24-(m+1)%4*8&255,C=u[m+2>>>2]>>>24-(m+2)%4*8&255,p=h<<16|g<<8|C,v=0;v<4&&m+v*.75<y;v++)x.push(f.charAt(p>>>6*(3-v)&63));var b=f.charAt(64);if(b)for(;x.length%4;)x.push(b);return x.join("")},parse:function(d,c=!0){var u=d.length,y=c?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var x=0;x<y.length;x++)f[y.charCodeAt(x)]=x}var m=y.charAt(64);if(m){var h=d.indexOf(m);h!==-1&&(u=h)}return l(d,u,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,u){for(var y=[],f=0,x=0;x<c;x++)if(x%4){var m=u[d.charCodeAt(x-1)]<<x%4*2,h=u[d.charCodeAt(x)]>>>6-x%4*2,g=m|h;y[f>>>2]|=g<<24-f%4*8,f++}return r.create(y,f)}}(),n.enc.Base64url})}(Qn)),Qn.exports}var Jn={exports:{}},Mi;function Wt(){return Mi||(Mi=1,function(e,o){(function(n,a){e.exports=a(be())})(ge,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 u=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,g){for(var C=0;C<16;C++){var p=g+C,v=h[p];h[p]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var b=this._hash.words,w=h[g+0],A=h[g+1],T=h[g+2],D=h[g+3],O=h[g+4],I=h[g+5],_=h[g+6],L=h[g+7],k=h[g+8],R=h[g+9],B=h[g+10],S=h[g+11],E=h[g+12],N=h[g+13],z=h[g+14],j=h[g+15],F=b[0],M=b[1],P=b[2],H=b[3];F=y(F,M,P,H,w,7,c[0]),H=y(H,F,M,P,A,12,c[1]),P=y(P,H,F,M,T,17,c[2]),M=y(M,P,H,F,D,22,c[3]),F=y(F,M,P,H,O,7,c[4]),H=y(H,F,M,P,I,12,c[5]),P=y(P,H,F,M,_,17,c[6]),M=y(M,P,H,F,L,22,c[7]),F=y(F,M,P,H,k,7,c[8]),H=y(H,F,M,P,R,12,c[9]),P=y(P,H,F,M,B,17,c[10]),M=y(M,P,H,F,S,22,c[11]),F=y(F,M,P,H,E,7,c[12]),H=y(H,F,M,P,N,12,c[13]),P=y(P,H,F,M,z,17,c[14]),M=y(M,P,H,F,j,22,c[15]),F=f(F,M,P,H,A,5,c[16]),H=f(H,F,M,P,_,9,c[17]),P=f(P,H,F,M,S,14,c[18]),M=f(M,P,H,F,w,20,c[19]),F=f(F,M,P,H,I,5,c[20]),H=f(H,F,M,P,B,9,c[21]),P=f(P,H,F,M,j,14,c[22]),M=f(M,P,H,F,O,20,c[23]),F=f(F,M,P,H,R,5,c[24]),H=f(H,F,M,P,z,9,c[25]),P=f(P,H,F,M,D,14,c[26]),M=f(M,P,H,F,k,20,c[27]),F=f(F,M,P,H,N,5,c[28]),H=f(H,F,M,P,T,9,c[29]),P=f(P,H,F,M,L,14,c[30]),M=f(M,P,H,F,E,20,c[31]),F=x(F,M,P,H,I,4,c[32]),H=x(H,F,M,P,k,11,c[33]),P=x(P,H,F,M,S,16,c[34]),M=x(M,P,H,F,z,23,c[35]),F=x(F,M,P,H,A,4,c[36]),H=x(H,F,M,P,O,11,c[37]),P=x(P,H,F,M,L,16,c[38]),M=x(M,P,H,F,B,23,c[39]),F=x(F,M,P,H,N,4,c[40]),H=x(H,F,M,P,w,11,c[41]),P=x(P,H,F,M,D,16,c[42]),M=x(M,P,H,F,_,23,c[43]),F=x(F,M,P,H,R,4,c[44]),H=x(H,F,M,P,E,11,c[45]),P=x(P,H,F,M,j,16,c[46]),M=x(M,P,H,F,T,23,c[47]),F=m(F,M,P,H,w,6,c[48]),H=m(H,F,M,P,L,10,c[49]),P=m(P,H,F,M,z,15,c[50]),M=m(M,P,H,F,I,21,c[51]),F=m(F,M,P,H,E,6,c[52]),H=m(H,F,M,P,D,10,c[53]),P=m(P,H,F,M,B,15,c[54]),M=m(M,P,H,F,A,21,c[55]),F=m(F,M,P,H,k,6,c[56]),H=m(H,F,M,P,j,10,c[57]),P=m(P,H,F,M,_,15,c[58]),M=m(M,P,H,F,N,21,c[59]),F=m(F,M,P,H,O,6,c[60]),H=m(H,F,M,P,S,10,c[61]),P=m(P,H,F,M,T,15,c[62]),M=m(M,P,H,F,R,21,c[63]),b[0]=b[0]+F|0,b[1]=b[1]+M|0,b[2]=b[2]+P|0,b[3]=b[3]+H|0},_doFinalize:function(){var h=this._data,g=h.words,C=this._nDataBytes*8,p=h.sigBytes*8;g[p>>>5]|=128<<24-p%32;var v=a.floor(C/4294967296),b=C;g[(p+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,g[(p+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,h.sigBytes=(g.length+1)*4,this._process();for(var w=this._hash,A=w.words,T=0;T<4;T++){var D=A[T];A[T]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return w},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});function y(h,g,C,p,v,b,w){var A=h+(g&C|~g&p)+v+w;return(A<<b|A>>>32-b)+g}function f(h,g,C,p,v,b,w){var A=h+(g&p|C&~p)+v+w;return(A<<b|A>>>32-b)+g}function x(h,g,C,p,v,b,w){var A=h+(g^C^p)+v+w;return(A<<b|A>>>32-b)+g}function m(h,g,C,p,v,b,w){var A=h+(C^(g|~p))+v+w;return(A<<b|A>>>32-b)+g}i.MD5=l._createHelper(u),i.HmacMD5=l._createHmacHelper(u)}(Math),n.MD5})}(Jn)),Jn.exports}var Xn={exports:{}},zi;function eo(){return zi||(zi=1,function(e,o){(function(n,a){e.exports=a(be())})(ge,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(u,y){for(var f=this._hash.words,x=f[0],m=f[1],h=f[2],g=f[3],C=f[4],p=0;p<80;p++){if(p<16)d[p]=u[y+p]|0;else{var v=d[p-3]^d[p-8]^d[p-14]^d[p-16];d[p]=v<<1|v>>>31}var b=(x<<5|x>>>27)+C+d[p];p<20?b+=(m&h|~m&g)+1518500249:p<40?b+=(m^h^g)+1859775393:p<60?b+=(m&h|m&g|h&g)-1894007588:b+=(m^h^g)-899497514,C=g,g=h,h=m<<30|m>>>2,m=x,x=b}f[0]=f[0]+x|0,f[1]=f[1]+m|0,f[2]=f[2]+h|0,f[3]=f[3]+g|0,f[4]=f[4]+C|0},_doFinalize:function(){var u=this._data,y=u.words,f=this._nDataBytes*8,x=u.sigBytes*8;return y[x>>>5]|=128<<24-x%32,y[(x+64>>>9<<4)+14]=Math.floor(f/4294967296),y[(x+64>>>9<<4)+15]=f,u.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var u=s.clone.call(this);return u._hash=this._hash.clone(),u}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}(Xn)),Xn.exports}var to={exports:{}},Pi;function qi(){return Pi||(Pi=1,function(e,o){(function(n,a){e.exports=a(be())})(ge,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.algo,c=[],u=[];(function(){function x(C){for(var p=a.sqrt(C),v=2;v<=p;v++)if(!(C%v))return!1;return!0}function m(C){return(C-(C|0))*4294967296|0}for(var h=2,g=0;g<64;)x(h)&&(g<8&&(c[g]=m(a.pow(h,1/2))),u[g]=m(a.pow(h,1/3)),g++),h++})();var y=[],f=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(x,m){for(var h=this._hash.words,g=h[0],C=h[1],p=h[2],v=h[3],b=h[4],w=h[5],A=h[6],T=h[7],D=0;D<64;D++){if(D<16)y[D]=x[m+D]|0;else{var O=y[D-15],I=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,_=y[D-2],L=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;y[D]=I+y[D-7]+L+y[D-16]}var k=b&w^~b&A,R=g&C^g&p^C&p,B=(g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22),S=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),E=T+S+k+u[D]+y[D],N=B+R;T=A,A=w,w=b,b=v+E|0,v=p,p=C,C=g,g=E+N|0}h[0]=h[0]+g|0,h[1]=h[1]+C|0,h[2]=h[2]+p|0,h[3]=h[3]+v|0,h[4]=h[4]+b|0,h[5]=h[5]+w|0,h[6]=h[6]+A|0,h[7]=h[7]+T|0},_doFinalize:function(){var x=this._data,m=x.words,h=this._nDataBytes*8,g=x.sigBytes*8;return m[g>>>5]|=128<<24-g%32,m[(g+64>>>9<<4)+14]=a.floor(h/4294967296),m[(g+64>>>9<<4)+15]=h,x.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var x=l.clone.call(this);return x._hash=this._hash.clone(),x}});i.SHA256=l._createHelper(f),i.HmacSHA256=l._createHmacHelper(f)}(Math),n.SHA256})}(to)),to.exports}var no={exports:{}},Vi;function K0(){return Vi||(Vi=1,function(e,o){(function(n,a,i){e.exports=a(be(),qi())})(ge,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})}(no)),no.exports}var oo={exports:{}},Hi;function ji(){return Hi||(Hi=1,function(e,o){(function(n,a,i){e.exports=a(be(),xn())})(ge,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 u(){return l.create.apply(l,arguments)}var y=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],f=[];(function(){for(var m=0;m<80;m++)f[m]=u()})();var x=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(m,h){for(var g=this._hash.words,C=g[0],p=g[1],v=g[2],b=g[3],w=g[4],A=g[5],T=g[6],D=g[7],O=C.high,I=C.low,_=p.high,L=p.low,k=v.high,R=v.low,B=b.high,S=b.low,E=w.high,N=w.low,z=A.high,j=A.low,F=T.high,M=T.low,P=D.high,H=D.low,Z=O,V=I,q=_,U=L,$=k,J=R,de=B,ne=S,le=E,Q=N,ae=z,ee=j,oe=F,se=M,ve=P,we=H,ke=0;ke<80;ke++){var Te,Ve,Xe=f[ke];if(ke<16)Ve=Xe.high=m[h+ke*2]|0,Te=Xe.low=m[h+ke*2+1]|0;else{var Qe=f[ke-15],Ue=Qe.high,We=Qe.low,Ge=(Ue>>>1|We<<31)^(Ue>>>8|We<<24)^Ue>>>7,et=(We>>>1|Ue<<31)^(We>>>8|Ue<<24)^(We>>>7|Ue<<25),tt=f[ke-2],$e=tt.high,Je=tt.low,ut=($e>>>19|Je<<13)^($e<<3|Je>>>29)^$e>>>6,yt=(Je>>>19|$e<<13)^(Je<<3|$e>>>29)^(Je>>>6|$e<<26),W=f[ke-7],K=W.high,X=W.low,re=f[ke-16],ce=re.high,ie=re.low;Te=et+X,Ve=Ge+K+(Te>>>0<et>>>0?1:0),Te=Te+yt,Ve=Ve+ut+(Te>>>0<yt>>>0?1:0),Te=Te+ie,Ve=Ve+ce+(Te>>>0<ie>>>0?1:0),Xe.high=Ve,Xe.low=Te}var te=le&ae^~le&oe,fe=Q&ee^~Q&se,ye=Z&q^Z&$^q&$,Se=V&U^V&J^U&J,Me=(Z>>>28|V<<4)^(Z<<30|V>>>2)^(Z<<25|V>>>7),nt=(V>>>28|Z<<4)^(V<<30|Z>>>2)^(V<<25|Z>>>7),Ct=(le>>>14|Q<<18)^(le>>>18|Q<<14)^(le<<23|Q>>>9),Ft=(Q>>>14|le<<18)^(Q>>>18|le<<14)^(Q<<23|le>>>9),un=y[ke],Mt=un.high,xt=un.low,He=we+Ft,rt=ve+Ct+(He>>>0<we>>>0?1:0),He=He+fe,rt=rt+te+(He>>>0<fe>>>0?1:0),He=He+xt,rt=rt+Mt+(He>>>0<xt>>>0?1:0),He=He+Te,rt=rt+Ve+(He>>>0<Te>>>0?1:0),En=nt+Se,Gu=Me+ye+(En>>>0<nt>>>0?1:0);ve=oe,we=se,oe=ae,se=ee,ae=le,ee=Q,Q=ne+He|0,le=de+rt+(Q>>>0<ne>>>0?1:0)|0,de=$,ne=J,$=q,J=U,q=Z,U=V,V=He+En|0,Z=rt+Gu+(V>>>0<He>>>0?1:0)|0}I=C.low=I+V,C.high=O+Z+(I>>>0<V>>>0?1:0),L=p.low=L+U,p.high=_+q+(L>>>0<U>>>0?1:0),R=v.low=R+J,v.high=k+$+(R>>>0<J>>>0?1:0),S=b.low=S+ne,b.high=B+de+(S>>>0<ne>>>0?1:0),N=w.low=N+Q,w.high=E+le+(N>>>0<Q>>>0?1:0),j=A.low=j+ee,A.high=z+ae+(j>>>0<ee>>>0?1:0),M=T.low=M+se,T.high=F+oe+(M>>>0<se>>>0?1:0),H=D.low=H+we,D.high=P+ve+(H>>>0<we>>>0?1:0)},_doFinalize:function(){var m=this._data,h=m.words,g=this._nDataBytes*8,C=m.sigBytes*8;h[C>>>5]|=128<<24-C%32,h[(C+128>>>10<<5)+30]=Math.floor(g/4294967296),h[(C+128>>>10<<5)+31]=g,m.sigBytes=h.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var m=r.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=r._createHelper(x),a.HmacSHA512=r._createHmacHelper(x)}(),n.SHA512})}(oo)),oo.exports}var ao={exports:{}},Wi;function Y0(){return Wi||(Wi=1,function(e,o){(function(n,a,i){e.exports=a(be(),xn(),ji())})(ge,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 u=d._doFinalize.call(this);return u.sigBytes-=16,u}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(ao)),ao.exports}var io={exports:{}},Gi;function Z0(){return Gi||(Gi=1,function(e,o){(function(n,a,i){e.exports=a(be(),xn())})(ge,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.x64,c=d.Word,u=i.algo,y=[],f=[],x=[];(function(){for(var g=1,C=0,p=0;p<24;p++){y[g+5*C]=(p+1)*(p+2)/2%64;var v=C%5,b=(2*g+3*C)%5;g=v,C=b}for(var g=0;g<5;g++)for(var C=0;C<5;C++)f[g+5*C]=C+(2*g+3*C)%5*5;for(var w=1,A=0;A<24;A++){for(var T=0,D=0,O=0;O<7;O++){if(w&1){var I=(1<<O)-1;I<32?D^=1<<I:T^=1<<I-32}w&128?w=w<<1^113:w<<=1}x[A]=c.create(T,D)}})();var m=[];(function(){for(var g=0;g<25;g++)m[g]=c.create()})();var h=u.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var g=this._state=[],C=0;C<25;C++)g[C]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(g,C){for(var p=this._state,v=this.blockSize/2,b=0;b<v;b++){var w=g[C+2*b],A=g[C+2*b+1];w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var T=p[b];T.high^=A,T.low^=w}for(var D=0;D<24;D++){for(var O=0;O<5;O++){for(var I=0,_=0,L=0;L<5;L++){var T=p[O+5*L];I^=T.high,_^=T.low}var k=m[O];k.high=I,k.low=_}for(var O=0;O<5;O++)for(var R=m[(O+4)%5],B=m[(O+1)%5],S=B.high,E=B.low,I=R.high^(S<<1|E>>>31),_=R.low^(E<<1|S>>>31),L=0;L<5;L++){var T=p[O+5*L];T.high^=I,T.low^=_}for(var N=1;N<25;N++){var I,_,T=p[N],z=T.high,j=T.low,F=y[N];F<32?(I=z<<F|j>>>32-F,_=j<<F|z>>>32-F):(I=j<<F-32|z>>>64-F,_=z<<F-32|j>>>64-F);var M=m[f[N]];M.high=I,M.low=_}var P=m[0],H=p[0];P.high=H.high,P.low=H.low;for(var O=0;O<5;O++)for(var L=0;L<5;L++){var N=O+5*L,T=p[N],Z=m[N],V=m[(O+1)%5+5*L],q=m[(O+2)%5+5*L];T.high=Z.high^~V.high&q.high,T.low=Z.low^~V.low&q.low}var T=p[0],U=x[D];T.high^=U.high,T.low^=U.low}},_doFinalize:function(){var g=this._data,C=g.words;this._nDataBytes*8;var p=g.sigBytes*8,v=this.blockSize*32;C[p>>>5]|=1<<24-p%32,C[(a.ceil((p+1)/v)*v>>>5)-1]|=128,g.sigBytes=C.length*4,this._process();for(var b=this._state,w=this.cfg.outputLength/8,A=w/8,T=[],D=0;D<A;D++){var O=b[D],I=O.high,_=O.low;I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,T.push(_),T.push(I)}return new s.init(T,w)},clone:function(){for(var g=l.clone.call(this),C=g._state=this._state.slice(0),p=0;p<25;p++)C[p]=C[p].clone();return g}});i.SHA3=l._createHelper(h),i.HmacSHA3=l._createHmacHelper(h)}(Math),n.SHA3})}(io)),io.exports}var ro={exports:{}},Ui;function Q0(){return Ui||(Ui=1,function(e,o){(function(n,a){e.exports=a(be())})(ge,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:
|
|
@@ -64,58 +64,58 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64
64
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
65
65
|
|
|
66
66
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
67
|
-
*/return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),g=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),m=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),y=s.create([0,1518500249,1859775393,2400959708,2840853838]),h=s.create([1352829926,1548603684,1836072691,2053994217,0]),u=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,B){for(var L=0;L<16;L++){var O=B+L,E=w[O];w[O]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}var _=this._hash.words,I=y.words,A=h.words,R=c.words,T=g.words,v=m.words,D=f.words,N,V,H,F,z,M,j,J,q,P;M=N=_[0],j=V=_[1],J=H=_[2],q=F=_[3],P=z=_[4];for(var Y,L=0;L<80;L+=1)Y=N+w[B+R[L]]|0,L<16?Y+=b(V,H,F)+I[0]:L<32?Y+=k(V,H,F)+I[1]:L<48?Y+=x(V,H,F)+I[2]:L<64?Y+=S(V,H,F)+I[3]:Y+=p(V,H,F)+I[4],Y=Y|0,Y=C(Y,v[L]),Y=Y+z|0,N=z,z=F,F=C(H,10),H=V,V=Y,Y=M+w[B+T[L]]|0,L<16?Y+=p(j,J,q)+A[0]:L<32?Y+=S(j,J,q)+A[1]:L<48?Y+=x(j,J,q)+A[2]:L<64?Y+=k(j,J,q)+A[3]:Y+=b(j,J,q)+A[4],Y=Y|0,Y=C(Y,D[L]),Y=Y+P|0,M=P,P=q,q=C(J,10),J=j,j=Y;Y=_[1]+H+q|0,_[1]=_[2]+F+P|0,_[2]=_[3]+z+M|0,_[3]=_[4]+N+j|0,_[4]=_[0]+V+J|0,_[0]=Y},_doFinalize:function(){var w=this._data,B=w.words,L=this._nDataBytes*8,O=w.sigBytes*8;B[O>>>5]|=128<<24-O%32,B[(O+64>>>9<<4)+14]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,w.sigBytes=(B.length+1)*4,this._process();for(var E=this._hash,_=E.words,I=0;I<5;I++){var A=_[I];_[I]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return E},clone:function(){var w=l.clone.call(this);return w._hash=this._hash.clone(),w}});function b(w,B,L){return w^B^L}function k(w,B,L){return w&B|~w&L}function x(w,B,L){return(w|~B)^L}function S(w,B,L){return w&L|B&~L}function p(w,B,L){return w^(B|~L)}function C(w,B){return w<<B|w>>>32-B}r.RIPEMD160=l._createHelper(u),r.HmacRIPEMD160=l._createHmacHelper(u)}(),n.RIPEMD160})}(ro)),ro.exports}var io={exports:{}},Ur;function lo(){return Ur||(Ur=1,function(e,o){(function(n,a){e.exports=a(be())})(he,function(n){(function(){var a=n,r=a.lib,i=r.Base,s=a.enc,l=s.Utf8,d=a.algo;d.HMAC=i.extend({init:function(c,g){c=this._hasher=new c.init,typeof g=="string"&&(g=l.parse(g));var m=c.blockSize,f=m*4;g.sigBytes>f&&(g=c.finalize(g)),g.clamp();for(var y=this._oKey=g.clone(),h=this._iKey=g.clone(),u=y.words,b=h.words,k=0;k<m;k++)u[k]^=1549556828,b[k]^=909522486;y.sigBytes=h.sigBytes=f,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var g=this._hasher,m=g.finalize(c);g.reset();var f=g.finalize(this._oKey.clone().concat(m));return f}})})()})}(io)),io.exports}var so={exports:{}},$r;function Q0(){return $r||($r=1,function(e,o){(function(n,a,r){e.exports=a(be(),Xn(),lo())})(he,function(n){return function(){var a=n,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,d=l.SHA1,c=l.HMAC,g=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(m){this.cfg=this.cfg.extend(m)},compute:function(m,f){for(var y=this.cfg,h=c.create(y.hasher,m),u=s.create(),b=s.create([1]),k=u.words,x=b.words,S=y.keySize,p=y.iterations;k.length<S;){var C=h.update(f).finalize(b);h.reset();for(var w=C.words,B=w.length,L=C,O=1;O<p;O++){L=h.finalize(L),h.reset();for(var E=L.words,_=0;_<B;_++)w[_]^=E[_]}u.concat(C),x[0]++}return u.sigBytes=S*4,u}});a.PBKDF2=function(m,f,y){return g.create(y).compute(m,f)}}(),n.PBKDF2})}(so)),so.exports}var co={exports:{}},Yr;function Rt(){return Yr||(Yr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Xn(),lo())})(he,function(n){return function(){var a=n,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,d=l.MD5,c=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,m){for(var f,y=this.cfg,h=y.hasher.create(),u=s.create(),b=u.words,k=y.keySize,x=y.iterations;b.length<k;){f&&h.update(f),f=h.update(g).finalize(m),h.reset();for(var S=1;S<x;S++)f=h.finalize(f),h.reset();u.concat(f)}return u.sigBytes=k*4,u}});a.EvpKDF=function(g,m,f){return c.create(f).compute(g,m)}}(),n.EvpKDF})}(co)),co.exports}var fo={exports:{}},Kr;function Ge(){return Kr||(Kr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Rt())})(he,function(n){n.lib.Cipher||function(a){var r=n,i=r.lib,s=i.Base,l=i.WordArray,d=i.BufferedBlockAlgorithm,c=r.enc;c.Utf8;var g=c.Base64,m=r.algo,f=m.EvpKDF,y=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(E,_){return this.create(this._ENC_XFORM_MODE,E,_)},createDecryptor:function(E,_){return this.create(this._DEC_XFORM_MODE,E,_)},init:function(E,_,I){this.cfg=this.cfg.extend(I),this._xformMode=E,this._key=_,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(E){return this._append(E),this._process()},finalize:function(E){E&&this._append(E);var _=this._doFinalize();return _},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function E(_){return typeof _=="string"?O:w}return function(_){return{encrypt:function(I,A,R){return E(A).encrypt(_,I,A,R)},decrypt:function(I,A,R){return E(A).decrypt(_,I,A,R)}}}}()});i.StreamCipher=y.extend({_doFinalize:function(){var E=this._process(!0);return E},blockSize:1});var h=r.mode={},u=i.BlockCipherMode=s.extend({createEncryptor:function(E,_){return this.Encryptor.create(E,_)},createDecryptor:function(E,_){return this.Decryptor.create(E,_)},init:function(E,_){this._cipher=E,this._iv=_}}),b=h.CBC=function(){var E=u.extend();E.Encryptor=E.extend({processBlock:function(I,A){var R=this._cipher,T=R.blockSize;_.call(this,I,A,T),R.encryptBlock(I,A),this._prevBlock=I.slice(A,A+T)}}),E.Decryptor=E.extend({processBlock:function(I,A){var R=this._cipher,T=R.blockSize,v=I.slice(A,A+T);R.decryptBlock(I,A),_.call(this,I,A,T),this._prevBlock=v}});function _(I,A,R){var T,v=this._iv;v?(T=v,this._iv=a):T=this._prevBlock;for(var D=0;D<R;D++)I[A+D]^=T[D]}return E}(),k=r.pad={},x=k.Pkcs7={pad:function(E,_){for(var I=_*4,A=I-E.sigBytes%I,R=A<<24|A<<16|A<<8|A,T=[],v=0;v<A;v+=4)T.push(R);var D=l.create(T,A);E.concat(D)},unpad:function(E){var _=E.words[E.sigBytes-1>>>2]&255;E.sigBytes-=_}};i.BlockCipher=y.extend({cfg:y.cfg.extend({mode:b,padding:x}),reset:function(){var E;y.reset.call(this);var _=this.cfg,I=_.iv,A=_.mode;this._xformMode==this._ENC_XFORM_MODE?E=A.createEncryptor:(E=A.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==E?this._mode.init(this,I&&I.words):(this._mode=E.call(A,this,I&&I.words),this._mode.__creator=E)},_doProcessBlock:function(E,_){this._mode.processBlock(E,_)},_doFinalize:function(){var E,_=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(_.pad(this._data,this.blockSize),E=this._process(!0)):(E=this._process(!0),_.unpad(E)),E},blockSize:128/32});var S=i.CipherParams=s.extend({init:function(E){this.mixIn(E)},toString:function(E){return(E||this.formatter).stringify(this)}}),p=r.format={},C=p.OpenSSL={stringify:function(E){var _,I=E.ciphertext,A=E.salt;return A?_=l.create([1398893684,1701076831]).concat(A).concat(I):_=I,_.toString(g)},parse:function(E){var _,I=g.parse(E),A=I.words;return A[0]==1398893684&&A[1]==1701076831&&(_=l.create(A.slice(2,4)),A.splice(0,4),I.sigBytes-=16),S.create({ciphertext:I,salt:_})}},w=i.SerializableCipher=s.extend({cfg:s.extend({format:C}),encrypt:function(E,_,I,A){A=this.cfg.extend(A);var R=E.createEncryptor(I,A),T=R.finalize(_),v=R.cfg;return S.create({ciphertext:T,key:I,iv:v.iv,algorithm:E,mode:v.mode,padding:v.padding,blockSize:E.blockSize,formatter:A.format})},decrypt:function(E,_,I,A){A=this.cfg.extend(A),_=this._parse(_,A.format);var R=E.createDecryptor(I,A).finalize(_.ciphertext);return R},_parse:function(E,_){return typeof E=="string"?_.parse(E,this):E}}),B=r.kdf={},L=B.OpenSSL={execute:function(E,_,I,A){A||(A=l.random(64/8));var R=f.create({keySize:_+I}).compute(E,A),T=l.create(R.words.slice(_),I*4);return R.sigBytes=_*4,S.create({key:R,iv:T,salt:A})}},O=i.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:L}),encrypt:function(E,_,I,A){A=this.cfg.extend(A);var R=A.kdf.execute(I,E.keySize,E.ivSize);A.iv=R.iv;var T=w.encrypt.call(this,E,_,R.key,A);return T.mixIn(R),T},decrypt:function(E,_,I,A){A=this.cfg.extend(A),_=this._parse(_,A.format);var R=A.kdf.execute(I,E.keySize,E.ivSize,_.salt);A.iv=R.iv;var T=w.decrypt.call(this,E,_,R.key,A);return T}})}()})}(fo)),fo.exports}var uo={exports:{}},Zr;function J0(){return Zr||(Zr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Ge())})(he,function(n){return n.mode.CFB=function(){var a=n.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize;r.call(this,i,s,d,l),this._prevBlock=i.slice(s,s+d)}}),a.Decryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=i.slice(s,s+d);r.call(this,i,s,d,l),this._prevBlock=c}});function r(i,s,l,d){var c,g=this._iv;g?(c=g.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var m=0;m<l;m++)i[s+m]^=c[m]}return a}(),n.mode.CFB})}(uo)),uo.exports}var ho={exports:{}},Qr;function X0(){return Qr||(Qr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Ge())})(he,function(n){return n.mode.CTR=function(){var a=n.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=this._iv,g=this._counter;c&&(g=this._counter=c.slice(0),this._iv=void 0);var m=g.slice(0);l.encryptBlock(m,0),g[d-1]=g[d-1]+1|0;for(var f=0;f<d;f++)i[s+f]^=m[f]}});return a.Decryptor=r,a}(),n.mode.CTR})}(ho)),ho.exports}var go={exports:{}},Jr;function ec(){return Jr||(Jr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Ge())})(he,function(n){/** @preserve
|
|
67
|
+
*/return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),y=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),x=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),h=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(A,T){for(var D=0;D<16;D++){var O=T+D,I=A[O];A[O]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var _=this._hash.words,L=x.words,k=m.words,R=c.words,B=u.words,S=y.words,E=f.words,N,z,j,F,M,P,H,Z,V,q;P=N=_[0],H=z=_[1],Z=j=_[2],V=F=_[3],q=M=_[4];for(var U,D=0;D<80;D+=1)U=N+A[T+R[D]]|0,D<16?U+=g(z,j,F)+L[0]:D<32?U+=C(z,j,F)+L[1]:D<48?U+=p(z,j,F)+L[2]:D<64?U+=v(z,j,F)+L[3]:U+=b(z,j,F)+L[4],U=U|0,U=w(U,S[D]),U=U+M|0,N=M,M=F,F=w(j,10),j=z,z=U,U=P+A[T+B[D]]|0,D<16?U+=b(H,Z,V)+k[0]:D<32?U+=v(H,Z,V)+k[1]:D<48?U+=p(H,Z,V)+k[2]:D<64?U+=C(H,Z,V)+k[3]:U+=g(H,Z,V)+k[4],U=U|0,U=w(U,E[D]),U=U+q|0,P=q,q=V,V=w(Z,10),Z=H,H=U;U=_[1]+j+V|0,_[1]=_[2]+F+q|0,_[2]=_[3]+M+P|0,_[3]=_[4]+N+H|0,_[4]=_[0]+z+Z|0,_[0]=U},_doFinalize:function(){var A=this._data,T=A.words,D=this._nDataBytes*8,O=A.sigBytes*8;T[O>>>5]|=128<<24-O%32,T[(O+64>>>9<<4)+14]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,A.sigBytes=(T.length+1)*4,this._process();for(var I=this._hash,_=I.words,L=0;L<5;L++){var k=_[L];_[L]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}return I},clone:function(){var A=l.clone.call(this);return A._hash=this._hash.clone(),A}});function g(A,T,D){return A^T^D}function C(A,T,D){return A&T|~A&D}function p(A,T,D){return(A|~T)^D}function v(A,T,D){return A&D|T&~D}function b(A,T,D){return A^(T|~D)}function w(A,T){return A<<T|A>>>32-T}i.RIPEMD160=l._createHelper(h),i.HmacRIPEMD160=l._createHmacHelper(h)}(),n.RIPEMD160})}(ro)),ro.exports}var lo={exports:{}},$i;function so(){return $i||($i=1,function(e,o){(function(n,a){e.exports=a(be())})(ge,function(n){(function(){var a=n,i=a.lib,r=i.Base,s=a.enc,l=s.Utf8,d=a.algo;d.HMAC=r.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=l.parse(u));var y=c.blockSize,f=y*4;u.sigBytes>f&&(u=c.finalize(u)),u.clamp();for(var x=this._oKey=u.clone(),m=this._iKey=u.clone(),h=x.words,g=m.words,C=0;C<y;C++)h[C]^=1549556828,g[C]^=909522486;x.sigBytes=m.sigBytes=f,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,y=u.finalize(c);u.reset();var f=u.finalize(this._oKey.clone().concat(y));return f}})})()})}(lo)),lo.exports}var co={exports:{}},Ki;function J0(){return Ki||(Ki=1,function(e,o){(function(n,a,i){e.exports=a(be(),eo(),so())})(ge,function(n){return function(){var a=n,i=a.lib,r=i.Base,s=i.WordArray,l=a.algo,d=l.SHA1,c=l.HMAC,u=l.PBKDF2=r.extend({cfg:r.extend({keySize:128/32,hasher:d,iterations:1}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,f){for(var x=this.cfg,m=c.create(x.hasher,y),h=s.create(),g=s.create([1]),C=h.words,p=g.words,v=x.keySize,b=x.iterations;C.length<v;){var w=m.update(f).finalize(g);m.reset();for(var A=w.words,T=A.length,D=w,O=1;O<b;O++){D=m.finalize(D),m.reset();for(var I=D.words,_=0;_<T;_++)A[_]^=I[_]}h.concat(w),p[0]++}return h.sigBytes=v*4,h}});a.PBKDF2=function(y,f,x){return u.create(x).compute(y,f)}}(),n.PBKDF2})}(co)),co.exports}var fo={exports:{}},Yi;function Lt(){return Yi||(Yi=1,function(e,o){(function(n,a,i){e.exports=a(be(),eo(),so())})(ge,function(n){return function(){var a=n,i=a.lib,r=i.Base,s=i.WordArray,l=a.algo,d=l.MD5,c=l.EvpKDF=r.extend({cfg:r.extend({keySize:128/32,hasher:d,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,y){for(var f,x=this.cfg,m=x.hasher.create(),h=s.create(),g=h.words,C=x.keySize,p=x.iterations;g.length<C;){f&&m.update(f),f=m.update(u).finalize(y),m.reset();for(var v=1;v<p;v++)f=m.finalize(f),m.reset();h.concat(f)}return h.sigBytes=C*4,h}});a.EvpKDF=function(u,y,f){return c.create(f).compute(u,y)}}(),n.EvpKDF})}(fo)),fo.exports}var uo={exports:{}},Zi;function je(){return Zi||(Zi=1,function(e,o){(function(n,a,i){e.exports=a(be(),Lt())})(ge,function(n){n.lib.Cipher||function(a){var i=n,r=i.lib,s=r.Base,l=r.WordArray,d=r.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var u=c.Base64,y=i.algo,f=y.EvpKDF,x=r.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(I,_){return this.create(this._ENC_XFORM_MODE,I,_)},createDecryptor:function(I,_){return this.create(this._DEC_XFORM_MODE,I,_)},init:function(I,_,L){this.cfg=this.cfg.extend(L),this._xformMode=I,this._key=_,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var _=this._doFinalize();return _},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function I(_){return typeof _=="string"?O:A}return function(_){return{encrypt:function(L,k,R){return I(k).encrypt(_,L,k,R)},decrypt:function(L,k,R){return I(k).decrypt(_,L,k,R)}}}}()});r.StreamCipher=x.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1});var m=i.mode={},h=r.BlockCipherMode=s.extend({createEncryptor:function(I,_){return this.Encryptor.create(I,_)},createDecryptor:function(I,_){return this.Decryptor.create(I,_)},init:function(I,_){this._cipher=I,this._iv=_}}),g=m.CBC=function(){var I=h.extend();I.Encryptor=I.extend({processBlock:function(L,k){var R=this._cipher,B=R.blockSize;_.call(this,L,k,B),R.encryptBlock(L,k),this._prevBlock=L.slice(k,k+B)}}),I.Decryptor=I.extend({processBlock:function(L,k){var R=this._cipher,B=R.blockSize,S=L.slice(k,k+B);R.decryptBlock(L,k),_.call(this,L,k,B),this._prevBlock=S}});function _(L,k,R){var B,S=this._iv;S?(B=S,this._iv=a):B=this._prevBlock;for(var E=0;E<R;E++)L[k+E]^=B[E]}return I}(),C=i.pad={},p=C.Pkcs7={pad:function(I,_){for(var L=_*4,k=L-I.sigBytes%L,R=k<<24|k<<16|k<<8|k,B=[],S=0;S<k;S+=4)B.push(R);var E=l.create(B,k);I.concat(E)},unpad:function(I){var _=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=_}};r.BlockCipher=x.extend({cfg:x.cfg.extend({mode:g,padding:p}),reset:function(){var I;x.reset.call(this);var _=this.cfg,L=_.iv,k=_.mode;this._xformMode==this._ENC_XFORM_MODE?I=k.createEncryptor:(I=k.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,L&&L.words):(this._mode=I.call(k,this,L&&L.words),this._mode.__creator=I)},_doProcessBlock:function(I,_){this._mode.processBlock(I,_)},_doFinalize:function(){var I,_=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(_.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),_.unpad(I)),I},blockSize:128/32});var v=r.CipherParams=s.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),b=i.format={},w=b.OpenSSL={stringify:function(I){var _,L=I.ciphertext,k=I.salt;return k?_=l.create([1398893684,1701076831]).concat(k).concat(L):_=L,_.toString(u)},parse:function(I){var _,L=u.parse(I),k=L.words;return k[0]==1398893684&&k[1]==1701076831&&(_=l.create(k.slice(2,4)),k.splice(0,4),L.sigBytes-=16),v.create({ciphertext:L,salt:_})}},A=r.SerializableCipher=s.extend({cfg:s.extend({format:w}),encrypt:function(I,_,L,k){k=this.cfg.extend(k);var R=I.createEncryptor(L,k),B=R.finalize(_),S=R.cfg;return v.create({ciphertext:B,key:L,iv:S.iv,algorithm:I,mode:S.mode,padding:S.padding,blockSize:I.blockSize,formatter:k.format})},decrypt:function(I,_,L,k){k=this.cfg.extend(k),_=this._parse(_,k.format);var R=I.createDecryptor(L,k).finalize(_.ciphertext);return R},_parse:function(I,_){return typeof I=="string"?_.parse(I,this):I}}),T=i.kdf={},D=T.OpenSSL={execute:function(I,_,L,k){k||(k=l.random(64/8));var R=f.create({keySize:_+L}).compute(I,k),B=l.create(R.words.slice(_),L*4);return R.sigBytes=_*4,v.create({key:R,iv:B,salt:k})}},O=r.PasswordBasedCipher=A.extend({cfg:A.cfg.extend({kdf:D}),encrypt:function(I,_,L,k){k=this.cfg.extend(k);var R=k.kdf.execute(L,I.keySize,I.ivSize);k.iv=R.iv;var B=A.encrypt.call(this,I,_,R.key,k);return B.mixIn(R),B},decrypt:function(I,_,L,k){k=this.cfg.extend(k),_=this._parse(_,k.format);var R=k.kdf.execute(L,I.keySize,I.ivSize,_.salt);k.iv=R.iv;var B=A.decrypt.call(this,I,_,R.key,k);return B}})}()})}(uo)),uo.exports}var ho={exports:{}},Qi;function X0(){return Qi||(Qi=1,function(e,o){(function(n,a,i){e.exports=a(be(),je())})(ge,function(n){return n.mode.CFB=function(){var a=n.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize;i.call(this,r,s,d,l),this._prevBlock=r.slice(s,s+d)}}),a.Decryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize,c=r.slice(s,s+d);i.call(this,r,s,d,l),this._prevBlock=c}});function i(r,s,l,d){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var y=0;y<l;y++)r[s+y]^=c[y]}return a}(),n.mode.CFB})}(ho)),ho.exports}var go={exports:{}},Ji;function ec(){return Ji||(Ji=1,function(e,o){(function(n,a,i){e.exports=a(be(),je())})(ge,function(n){return n.mode.CTR=function(){var a=n.lib.BlockCipherMode.extend(),i=a.Encryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var y=u.slice(0);l.encryptBlock(y,0),u[d-1]=u[d-1]+1|0;for(var f=0;f<d;f++)r[s+f]^=y[f]}});return a.Decryptor=i,a}(),n.mode.CTR})}(go)),go.exports}var mo={exports:{}},Xi;function tc(){return Xi||(Xi=1,function(e,o){(function(n,a,i){e.exports=a(be(),je())})(ge,function(n){/** @preserve
|
|
68
68
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
69
69
|
* derived from CryptoJS.mode.CTR
|
|
70
70
|
* Jan Hruby jhruby.web@gmail.com
|
|
71
|
-
*/return n.mode.CTRGladman=function(){var a=n.lib.BlockCipherMode.extend();function r(l){if((l>>24&255)===255){var d=l>>16&255,c=l>>8&255,g=l&255;d===255?(d=0,c===255?(c=0,g===255?g=0:++g):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=g}else l+=1<<24;return l}function i(l){return(l[0]=r(l[0]))===0&&(l[1]=r(l[1])),l}var s=a.Encryptor=a.extend({processBlock:function(l,d){var c=this._cipher,g=c.blockSize,m=this._iv,f=this._counter;m&&(f=this._counter=m.slice(0),this._iv=void 0),i(f);var y=f.slice(0);c.encryptBlock(y,0);for(var h=0;h<g;h++)l[d+h]^=y[h]}});return a.Decryptor=s,a}(),n.mode.CTRGladman})}(go)),go.exports}var mo={exports:{}},Xr;function tc(){return Xr||(Xr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Ge())})(he,function(n){return n.mode.OFB=function(){var a=n.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=this._iv,g=this._keystream;c&&(g=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(g,0);for(var m=0;m<d;m++)i[s+m]^=g[m]}});return a.Decryptor=r,a}(),n.mode.OFB})}(mo)),mo.exports}var yo={exports:{}},ei;function nc(){return ei||(ei=1,function(e,o){(function(n,a,r){e.exports=a(be(),Ge())})(he,function(n){return n.mode.ECB=function(){var a=n.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(r,i){this._cipher.encryptBlock(r,i)}}),a.Decryptor=a.extend({processBlock:function(r,i){this._cipher.decryptBlock(r,i)}}),a}(),n.mode.ECB})}(yo)),yo.exports}var xo={exports:{}},ti;function oc(){return ti||(ti=1,function(e,o){(function(n,a,r){e.exports=a(be(),Ge())})(he,function(n){return n.pad.AnsiX923={pad:function(a,r){var i=a.sigBytes,s=r*4,l=s-i%s,d=i+l-1;a.clamp(),a.words[d>>>2]|=l<<24-d%4*8,a.sigBytes+=l},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},n.pad.Ansix923})}(xo)),xo.exports}var po={exports:{}},ni;function ac(){return ni||(ni=1,function(e,o){(function(n,a,r){e.exports=a(be(),Ge())})(he,function(n){return n.pad.Iso10126={pad:function(a,r){var i=r*4,s=i-a.sigBytes%i;a.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},n.pad.Iso10126})}(po)),po.exports}var bo={exports:{}},oi;function rc(){return oi||(oi=1,function(e,o){(function(n,a,r){e.exports=a(be(),Ge())})(he,function(n){return n.pad.Iso97971={pad:function(a,r){a.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(a,r)},unpad:function(a){n.pad.ZeroPadding.unpad(a),a.sigBytes--}},n.pad.Iso97971})}(bo)),bo.exports}var vo={exports:{}},ai;function ic(){return ai||(ai=1,function(e,o){(function(n,a,r){e.exports=a(be(),Ge())})(he,function(n){return n.pad.ZeroPadding={pad:function(a,r){var i=r*4;a.clamp(),a.sigBytes+=i-(a.sigBytes%i||i)},unpad:function(a){for(var r=a.words,i=a.sigBytes-1,i=a.sigBytes-1;i>=0;i--)if(r[i>>>2]>>>24-i%4*8&255){a.sigBytes=i+1;break}}},n.pad.ZeroPadding})}(vo)),vo.exports}var So={exports:{}},ri;function lc(){return ri||(ri=1,function(e,o){(function(n,a,r){e.exports=a(be(),Ge())})(he,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(So)),So.exports}var Co={exports:{}},ii;function sc(){return ii||(ii=1,function(e,o){(function(n,a,r){e.exports=a(be(),Ge())})(he,function(n){return function(a){var r=n,i=r.lib,s=i.CipherParams,l=r.enc,d=l.Hex,c=r.format;c.Hex={stringify:function(g){return g.ciphertext.toString(d)},parse:function(g){var m=d.parse(g);return s.create({ciphertext:m})}}}(),n.format.Hex})}(Co)),Co.exports}var wo={exports:{}},li;function cc(){return li||(li=1,function(e,o){(function(n,a,r){e.exports=a(be(),Vt(),Ht(),Rt(),Ge())})(he,function(n){return function(){var a=n,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],g=[],m=[],f=[],y=[],h=[],u=[],b=[];(function(){for(var S=[],p=0;p<256;p++)p<128?S[p]=p<<1:S[p]=p<<1^283;for(var C=0,w=0,p=0;p<256;p++){var B=w^w<<1^w<<2^w<<3^w<<4;B=B>>>8^B&255^99,l[C]=B,d[B]=C;var L=S[C],O=S[L],E=S[O],_=S[B]*257^B*16843008;c[C]=_<<24|_>>>8,g[C]=_<<16|_>>>16,m[C]=_<<8|_>>>24,f[C]=_;var _=E*16843009^O*65537^L*257^C*16843008;y[B]=_<<24|_>>>8,h[B]=_<<16|_>>>16,u[B]=_<<8|_>>>24,b[B]=_,C?(C=L^S[S[S[E^L]]],w^=S[S[w]]):C=w=1}})();var k=[0,1,2,4,8,16,32,64,128,27,54],x=s.AES=i.extend({_doReset:function(){var S;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var p=this._keyPriorReset=this._key,C=p.words,w=p.sigBytes/4,B=this._nRounds=w+6,L=(B+1)*4,O=this._keySchedule=[],E=0;E<L;E++)E<w?O[E]=C[E]:(S=O[E-1],E%w?w>6&&E%w==4&&(S=l[S>>>24]<<24|l[S>>>16&255]<<16|l[S>>>8&255]<<8|l[S&255]):(S=S<<8|S>>>24,S=l[S>>>24]<<24|l[S>>>16&255]<<16|l[S>>>8&255]<<8|l[S&255],S^=k[E/w|0]<<24),O[E]=O[E-w]^S);for(var _=this._invKeySchedule=[],I=0;I<L;I++){var E=L-I;if(I%4)var S=O[E];else var S=O[E-4];I<4||E<=4?_[I]=S:_[I]=y[l[S>>>24]]^h[l[S>>>16&255]]^u[l[S>>>8&255]]^b[l[S&255]]}}},encryptBlock:function(S,p){this._doCryptBlock(S,p,this._keySchedule,c,g,m,f,l)},decryptBlock:function(S,p){var C=S[p+1];S[p+1]=S[p+3],S[p+3]=C,this._doCryptBlock(S,p,this._invKeySchedule,y,h,u,b,d);var C=S[p+1];S[p+1]=S[p+3],S[p+3]=C},_doCryptBlock:function(S,p,C,w,B,L,O,E){for(var _=this._nRounds,I=S[p]^C[0],A=S[p+1]^C[1],R=S[p+2]^C[2],T=S[p+3]^C[3],v=4,D=1;D<_;D++){var N=w[I>>>24]^B[A>>>16&255]^L[R>>>8&255]^O[T&255]^C[v++],V=w[A>>>24]^B[R>>>16&255]^L[T>>>8&255]^O[I&255]^C[v++],H=w[R>>>24]^B[T>>>16&255]^L[I>>>8&255]^O[A&255]^C[v++],F=w[T>>>24]^B[I>>>16&255]^L[A>>>8&255]^O[R&255]^C[v++];I=N,A=V,R=H,T=F}var N=(E[I>>>24]<<24|E[A>>>16&255]<<16|E[R>>>8&255]<<8|E[T&255])^C[v++],V=(E[A>>>24]<<24|E[R>>>16&255]<<16|E[T>>>8&255]<<8|E[I&255])^C[v++],H=(E[R>>>24]<<24|E[T>>>16&255]<<16|E[I>>>8&255]<<8|E[A&255])^C[v++],F=(E[T>>>24]<<24|E[I>>>16&255]<<16|E[A>>>8&255]<<8|E[R&255])^C[v++];S[p]=N,S[p+1]=V,S[p+2]=H,S[p+3]=F},keySize:256/32});a.AES=i._createHelper(x)}(),n.AES})}(wo)),wo.exports}var Ao={exports:{}},si;function dc(){return si||(si=1,function(e,o){(function(n,a,r){e.exports=a(be(),Vt(),Ht(),Rt(),Ge())})(he,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=r.BlockCipher,l=a.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],g=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],m=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],y=l.DES=s.extend({_doReset:function(){for(var k=this._key,x=k.words,S=[],p=0;p<56;p++){var C=d[p]-1;S[p]=x[C>>>5]>>>31-C%32&1}for(var w=this._subKeys=[],B=0;B<16;B++){for(var L=w[B]=[],O=g[B],p=0;p<24;p++)L[p/6|0]|=S[(c[p]-1+O)%28]<<31-p%6,L[4+(p/6|0)]|=S[28+(c[p+24]-1+O)%28]<<31-p%6;L[0]=L[0]<<1|L[0]>>>31;for(var p=1;p<7;p++)L[p]=L[p]>>>(p-1)*4+3;L[7]=L[7]<<5|L[7]>>>27}for(var E=this._invSubKeys=[],p=0;p<16;p++)E[p]=w[15-p]},encryptBlock:function(k,x){this._doCryptBlock(k,x,this._subKeys)},decryptBlock:function(k,x){this._doCryptBlock(k,x,this._invSubKeys)},_doCryptBlock:function(k,x,S){this._lBlock=k[x],this._rBlock=k[x+1],h.call(this,4,252645135),h.call(this,16,65535),u.call(this,2,858993459),u.call(this,8,16711935),h.call(this,1,1431655765);for(var p=0;p<16;p++){for(var C=S[p],w=this._lBlock,B=this._rBlock,L=0,O=0;O<8;O++)L|=m[O][((B^C[O])&f[O])>>>0];this._lBlock=B,this._rBlock=w^L}var E=this._lBlock;this._lBlock=this._rBlock,this._rBlock=E,h.call(this,1,1431655765),u.call(this,8,16711935),u.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),k[x]=this._lBlock,k[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(k,x){var S=(this._lBlock>>>k^this._rBlock)&x;this._rBlock^=S,this._lBlock^=S<<k}function u(k,x){var S=(this._rBlock>>>k^this._lBlock)&x;this._lBlock^=S,this._rBlock^=S<<k}a.DES=s._createHelper(y);var b=l.TripleDES=s.extend({_doReset:function(){var k=this._key,x=k.words;if(x.length!==2&&x.length!==4&&x.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var S=x.slice(0,2),p=x.length<4?x.slice(0,2):x.slice(2,4),C=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=y.createEncryptor(i.create(S)),this._des2=y.createEncryptor(i.create(p)),this._des3=y.createEncryptor(i.create(C))},encryptBlock:function(k,x){this._des1.encryptBlock(k,x),this._des2.decryptBlock(k,x),this._des3.encryptBlock(k,x)},decryptBlock:function(k,x){this._des3.decryptBlock(k,x),this._des2.encryptBlock(k,x),this._des1.decryptBlock(k,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(b)}(),n.TripleDES})}(Ao)),Ao.exports}var ko={exports:{}},ci;function fc(){return ci||(ci=1,function(e,o){(function(n,a,r){e.exports=a(be(),Vt(),Ht(),Rt(),Ge())})(he,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=s.RC4=i.extend({_doReset:function(){for(var g=this._key,m=g.words,f=g.sigBytes,y=this._S=[],h=0;h<256;h++)y[h]=h;for(var h=0,u=0;h<256;h++){var b=h%f,k=m[b>>>2]>>>24-b%4*8&255;u=(u+y[h]+k)%256;var x=y[h];y[h]=y[u],y[u]=x}this._i=this._j=0},_doProcessBlock:function(g,m){g[m]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var g=this._S,m=this._i,f=this._j,y=0,h=0;h<4;h++){m=(m+1)%256,f=(f+g[m])%256;var u=g[m];g[m]=g[f],g[f]=u,y|=g[(g[m]+g[f])%256]<<24-h*8}return this._i=m,this._j=f,y}a.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var g=this.cfg.drop;g>0;g--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),n.RC4})}(ko)),ko.exports}var To={exports:{}},di;function uc(){return di||(di=1,function(e,o){(function(n,a,r){e.exports=a(be(),Vt(),Ht(),Rt(),Ge())})(he,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],g=s.Rabbit=i.extend({_doReset:function(){for(var f=this._key.words,y=this.cfg.iv,h=0;h<4;h++)f[h]=(f[h]<<8|f[h]>>>24)&16711935|(f[h]<<24|f[h]>>>8)&4278255360;var u=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],b=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var h=0;h<4;h++)m.call(this);for(var h=0;h<8;h++)b[h]^=u[h+4&7];if(y){var k=y.words,x=k[0],S=k[1],p=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,C=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,w=p>>>16|C&4294901760,B=C<<16|p&65535;b[0]^=p,b[1]^=w,b[2]^=C,b[3]^=B,b[4]^=p,b[5]^=w,b[6]^=C,b[7]^=B;for(var h=0;h<4;h++)m.call(this)}},_doProcessBlock:function(f,y){var h=this._X;m.call(this),l[0]=h[0]^h[5]>>>16^h[3]<<16,l[1]=h[2]^h[7]>>>16^h[5]<<16,l[2]=h[4]^h[1]>>>16^h[7]<<16,l[3]=h[6]^h[3]>>>16^h[1]<<16;for(var u=0;u<4;u++)l[u]=(l[u]<<8|l[u]>>>24)&16711935|(l[u]<<24|l[u]>>>8)&4278255360,f[y+u]^=l[u]},blockSize:128/32,ivSize:64/32});function m(){for(var f=this._X,y=this._C,h=0;h<8;h++)d[h]=y[h];y[0]=y[0]+1295307597+this._b|0,y[1]=y[1]+3545052371+(y[0]>>>0<d[0]>>>0?1:0)|0,y[2]=y[2]+886263092+(y[1]>>>0<d[1]>>>0?1:0)|0,y[3]=y[3]+1295307597+(y[2]>>>0<d[2]>>>0?1:0)|0,y[4]=y[4]+3545052371+(y[3]>>>0<d[3]>>>0?1:0)|0,y[5]=y[5]+886263092+(y[4]>>>0<d[4]>>>0?1:0)|0,y[6]=y[6]+1295307597+(y[5]>>>0<d[5]>>>0?1:0)|0,y[7]=y[7]+3545052371+(y[6]>>>0<d[6]>>>0?1:0)|0,this._b=y[7]>>>0<d[7]>>>0?1:0;for(var h=0;h<8;h++){var u=f[h]+y[h],b=u&65535,k=u>>>16,x=((b*b>>>17)+b*k>>>15)+k*k,S=((u&4294901760)*u|0)+((u&65535)*u|0);c[h]=x^S}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(g)}(),n.Rabbit})}(To)),To.exports}var Bo={exports:{}},fi;function hc(){return fi||(fi=1,function(e,o){(function(n,a,r){e.exports=a(be(),Vt(),Ht(),Rt(),Ge())})(he,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],g=s.RabbitLegacy=i.extend({_doReset:function(){var f=this._key.words,y=this.cfg.iv,h=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],u=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var b=0;b<4;b++)m.call(this);for(var b=0;b<8;b++)u[b]^=h[b+4&7];if(y){var k=y.words,x=k[0],S=k[1],p=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,C=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,w=p>>>16|C&4294901760,B=C<<16|p&65535;u[0]^=p,u[1]^=w,u[2]^=C,u[3]^=B,u[4]^=p,u[5]^=w,u[6]^=C,u[7]^=B;for(var b=0;b<4;b++)m.call(this)}},_doProcessBlock:function(f,y){var h=this._X;m.call(this),l[0]=h[0]^h[5]>>>16^h[3]<<16,l[1]=h[2]^h[7]>>>16^h[5]<<16,l[2]=h[4]^h[1]>>>16^h[7]<<16,l[3]=h[6]^h[3]>>>16^h[1]<<16;for(var u=0;u<4;u++)l[u]=(l[u]<<8|l[u]>>>24)&16711935|(l[u]<<24|l[u]>>>8)&4278255360,f[y+u]^=l[u]},blockSize:128/32,ivSize:64/32});function m(){for(var f=this._X,y=this._C,h=0;h<8;h++)d[h]=y[h];y[0]=y[0]+1295307597+this._b|0,y[1]=y[1]+3545052371+(y[0]>>>0<d[0]>>>0?1:0)|0,y[2]=y[2]+886263092+(y[1]>>>0<d[1]>>>0?1:0)|0,y[3]=y[3]+1295307597+(y[2]>>>0<d[2]>>>0?1:0)|0,y[4]=y[4]+3545052371+(y[3]>>>0<d[3]>>>0?1:0)|0,y[5]=y[5]+886263092+(y[4]>>>0<d[4]>>>0?1:0)|0,y[6]=y[6]+1295307597+(y[5]>>>0<d[5]>>>0?1:0)|0,y[7]=y[7]+3545052371+(y[6]>>>0<d[6]>>>0?1:0)|0,this._b=y[7]>>>0<d[7]>>>0?1:0;for(var h=0;h<8;h++){var u=f[h]+y[h],b=u&65535,k=u>>>16,x=((b*b>>>17)+b*k>>>15)+k*k,S=((u&4294901760)*u|0)+((u&65535)*u|0);c[h]=x^S}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(g)}(),n.RabbitLegacy})}(Bo)),Bo.exports}(function(e,o){(function(n,a,r){e.exports=a(be(),yn(),W0(),G0(),Vt(),U0(),Ht(),Xn(),Pr(),$0(),Hr(),Y0(),K0(),Z0(),lo(),Q0(),Rt(),Ge(),J0(),X0(),ec(),tc(),nc(),oc(),ac(),rc(),ic(),lc(),sc(),cc(),dc(),fc(),uc(),hc())})(he,function(n){return n})})(Dr);var gc=Dr.exports;const nt=Er(gc);var mc="0123456789abcdefghijklmnopqrstuvwxyz";function bt(e){return mc.charAt(e)}function yc(e,o){return e&o}function xn(e,o){return e|o}function ui(e,o){return e^o}function hi(e,o){return e&~o}function xc(e){if(e==0)return-1;var o=0;return e&65535||(e>>=16,o+=16),e&255||(e>>=8,o+=8),e&15||(e>>=4,o+=4),e&3||(e>>=2,o+=2),e&1||++o,o}function pc(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gi="=";function pn(e){var o,n,a="";for(o=0;o+3<=e.length;o+=3)n=parseInt(e.substring(o,o+3),16),a+=jt.charAt(n>>6)+jt.charAt(n&63);for(o+1==e.length?(n=parseInt(e.substring(o,o+1),16),a+=jt.charAt(n<<2)):o+2==e.length&&(n=parseInt(e.substring(o,o+2),16),a+=jt.charAt(n>>2)+jt.charAt((n&3)<<4));(a.length&3)>0;)a+=gi;return a}function mi(e){var o="",n,a=0,r=0;for(n=0;n<e.length&&e.charAt(n)!=gi;++n){var i=jt.indexOf(e.charAt(n));i<0||(a==0?(o+=bt(i>>2),r=i&3,a=1):a==1?(o+=bt(r<<2|i>>4),r=i&15,a=2):a==2?(o+=bt(r),o+=bt(i>>2),r=i&3,a=3):(o+=bt(r<<2|i>>4),o+=bt(i&15),a=0))}return a==1&&(o+=bt(r<<2)),o}var Wt,bc={decode:function(e){var o;if(Wt===void 0){var n="0123456789ABCDEF",a=` \f
|
|
72
|
-
\r \u2028\u2029`;for(
|
|
73
|
-
\r \u2028\u2029`;for(
|
|
74
|
-
`;break;default:
|
|
75
|
-
`}
|
|
76
|
-
`,l="",d=o+1;d<n;++d){for(var c=this.get(d),
|
|
77
|
-
`;a/=2,
|
|
78
|
-
`,this.sub!==null){o+=" ";for(var a=0,r=this.sub.length;a<r;++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 r=0;r<a;++r)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 Do?n=o:n=new Do(o,0);var a=new Do(n),r=new xi(n),i=e.decodeLength(n),s=n.pos,l=s-a.pos,d=null,c=function(){var m=[];if(i!==null){for(var f=s+i;n.pos<f;)m[m.length]=e.decode(n);if(n.pos!=f)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var y=e.decode(n);if(y.tag.isEOC())break;m[m.length]=y}i=s-n.pos}catch(h){throw new Error("Exception while decoding undefined length content: "+h)}return m};if(r.tagConstructed)d=c();else if(r.isUniversal()&&(r.tagNumber==3||r.tagNumber==4))try{if(r.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");d=c();for(var g=0;g<d.length;++g)if(d[g].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{d=null}if(d===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(i)}return new e(a,l,i,r,d)},e}(),xi=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 an;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}(),At,wc=0xdeadbeefcafe,pi=(wc&16777215)==15715070,Ye=[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],Ac=(1<<26)/Ye[Ye.length-1],ue=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,r,i=!1,s="",l=this.t,d=this.DB-l*this.DB%n;if(l-- >0)for(d<this.DB&&(r=this[l]>>d)>0&&(i=!0,s=bt(r));l>=0;)d<n?(r=(this[l]&(1<<d)-1)<<n-d,r|=this[--l]>>(d+=this.DB-n)):(r=this[l]>>(d-=n)&a,d<=0&&(d+=this.DB,--l)),r>0&&(i=!0),i&&(s+=bt(r));return i?s:"0"},e.prototype.negate=function(){var o=ge();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)+vn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var n=ge();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 bi(n):a=new vi(n),this.exp(o,a)},e.prototype.clone=function(){var o=ge();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,r,i=0;if(o-- >0)for(a<this.DB&&(r=this[o]>>a)!=(this.s&this.DM)>>a&&(n[i++]=r|this.s<<this.DB-a);o>=0;)a<8?(r=(this[o]&(1<<a)-1)<<8-a,r|=this[--o]>>(a+=this.DB-8)):(r=this[o]>>(a-=8)&255,a<=0&&(a+=this.DB,--o)),r&128&&(r|=-256),i==0&&(this.s&128)!=(r&128)&&++i,(i>0||r!=this.s)&&(n[i++]=r);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=ge();return this.bitwiseTo(o,yc,n),n},e.prototype.or=function(o){var n=ge();return this.bitwiseTo(o,xn,n),n},e.prototype.xor=function(o){var n=ge();return this.bitwiseTo(o,ui,n),n},e.prototype.andNot=function(o){var n=ge();return this.bitwiseTo(o,hi,n),n},e.prototype.not=function(){for(var o=ge(),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=ge();return o<0?this.rShiftTo(-o,n):this.lShiftTo(o,n),n},e.prototype.shiftRight=function(o){var n=ge();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+xc(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+=pc(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,xn)},e.prototype.clearBit=function(o){return this.changeBit(o,hi)},e.prototype.flipBit=function(o){return this.changeBit(o,ui)},e.prototype.add=function(o){var n=ge();return this.addTo(o,n),n},e.prototype.subtract=function(o){var n=ge();return this.subTo(o,n),n},e.prototype.multiply=function(o){var n=ge();return this.multiplyTo(o,n),n},e.prototype.divide=function(o){var n=ge();return this.divRemTo(o,n,null),n},e.prototype.remainder=function(o){var n=ge();return this.divRemTo(o,null,n),n},e.prototype.divideAndRemainder=function(o){var n=ge(),a=ge();return this.divRemTo(o,n,a),[n,a]},e.prototype.modPow=function(o,n){var a=o.bitLength(),r,i=kt(1),s;if(a<=0)return i;a<18?r=1:a<48?r=3:a<144?r=4:a<768?r=5:r=6,a<8?s=new bi(n):n.isEven()?s=new Tc(n):s=new vi(n);var l=[],d=3,c=r-1,g=(1<<r)-1;if(l[1]=s.convert(this),r>1){var m=ge();for(s.sqrTo(l[1],m);d<=g;)l[d]=ge(),s.mulTo(m,l[d-2],l[d]),d+=2}var f=o.t-1,y,h=!0,u=ge(),b;for(a=vn(o[f])-1;f>=0;){for(a>=c?y=o[f]>>a-c&g:(y=(o[f]&(1<<a+1)-1)<<c-a,f>0&&(y|=o[f-1]>>this.DB+a-c)),d=r;!(y&1);)y>>=1,--d;if((a-=d)<0&&(a+=this.DB,--f),h)l[y].copyTo(i),h=!1;else{for(;d>1;)s.sqrTo(i,u),s.sqrTo(u,i),d-=2;d>0?s.sqrTo(i,u):(b=i,i=u,u=b),s.mulTo(u,l[y],i)}for(;f>=0&&!(o[f]&1<<a);)s.sqrTo(i,u),b=i,i=u,u=b,--a<0&&(a=this.DB-1,--f)}return s.revert(i)},e.prototype.modInverse=function(o){var n=o.isEven();if(this.isEven()&&n||o.signum()==0)return e.ZERO;for(var a=o.clone(),r=this.clone(),i=kt(1),s=kt(0),l=kt(0),d=kt(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),n?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(o,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(o,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),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(r)>=0?(a.subTo(r,a),n&&i.subTo(l,i),s.subTo(d,s)):(r.subTo(a,r),n&&l.subTo(i,l),d.subTo(s,d))}if(r.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 kc)},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 r=n;n=a,a=r}var i=n.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return n;for(i<s&&(s=i),s>0&&(n.rShiftTo(s,n),a.rShiftTo(s,a));n.signum()>0;)(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),(i=a.getLowestSetBit())>0&&a.rShiftTo(i,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]<=Ye[Ye.length-1]){for(n=0;n<Ye.length;++n)if(a[0]==Ye[n])return!0;return!1}if(a.isEven())return!1;for(n=1;n<Ye.length;){for(var r=Ye[n],i=n+1;i<Ye.length&&r<Ac;)r*=Ye[i++];for(r=a.modInt(r);n<i;)if(r%Ye[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 r=o.length,i=!1,s=0;--r>=0;){var l=a==8?+o[r]&255:Ci(o,r);if(l<0){o.charAt(r)=="-"&&(i=!0);continue}i=!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(),i&&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,r=this.DB-a,i=(1<<r)-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]>>r|l,l=(this[d]&i)<<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 r=o%this.DB,i=this.DB-r,s=(1<<r)-1;n[0]=this[a]>>r;for(var l=a+1;l<this.t;++l)n[l-a-1]|=(this[l]&s)<<i,n[l-a]=this[l]>>r;r>0&&(n[this.t-a-1]|=(this.s&s)<<i),n.t=this.t-a,n.clamp()},e.prototype.subTo=function(o,n){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]-o[a],n[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r-=o.s;a<this.t;)r+=this[a],n[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r-=o[a],n[a++]=r&this.DM,r>>=this.DB;r-=o.s}n.s=r<0?-1:0,r<-1?n[a++]=this.DV+r:r>0&&(n[a++]=r),n.t=a,n.clamp()},e.prototype.multiplyTo=function(o,n){var a=this.abs(),r=o.abs(),i=a.t;for(n.t=i+r.t;--i>=0;)n[i]=0;for(i=0;i<r.t;++i)n[i+a.t]=a.am(0,r[i],n,i,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 r=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,r,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 r=o.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t){n!=null&&n.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=ge());var s=ge(),l=this.s,d=o.s,c=this.DB-vn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var g=s.t,m=s[g-1];if(m!=0){var f=m*(1<<this.F1)+(g>1?s[g-2]>>this.F2:0),y=this.FV/f,h=(1<<this.F1)/f,u=1<<this.F2,b=a.t,k=b-g,x=n??ge();for(s.dlShiftTo(k,x),a.compareTo(x)>=0&&(a[a.t++]=1,a.subTo(x,a)),e.ONE.dlShiftTo(g,x),x.subTo(s,s);s.t<g;)s[s.t++]=0;for(;--k>=0;){var S=a[--b]==m?this.DM:Math.floor(a[b]*y+(a[b-1]+u)*h);if((a[b]+=s.am(0,S,a,k,0,g))<S)for(s.dlShiftTo(k,x),a.subTo(x,a);a[b]<--S;)a.subTo(x,a)}n!=null&&(a.drShiftTo(g,n),l!=d&&e.ZERO.subTo(n,n)),a.t=g,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=ge(),r=ge(),i=n.convert(this),s=vn(o)-1;for(i.copyTo(a);--s>=0;)if(n.sqrTo(a,r),(o&1<<s)>0)n.mulTo(r,i,a);else{var l=a;a=r,r=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),r=kt(a),i=ge(),s=ge(),l="";for(this.divRemTo(r,i,s);i.signum()>0;)l=(a+s.intValue()).toString(o).substr(1)+l,i.divRemTo(r,i,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),r=Math.pow(n,a),i=!1,s=0,l=0,d=0;d<o.length;++d){var c=Ci(o,d);if(c<0){o.charAt(d)=="-"&&this.signum()==0&&(i=!0);continue}l=n*l+c,++s>=a&&(this.dMultiply(r),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(l,0)),i&&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),xn,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 r=[],i=o&7;r.length=(o>>3)+1,n.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(o,n,a){var r,i,s=Math.min(o.t,this.t);for(r=0;r<s;++r)a[r]=n(this[r],o[r]);if(o.t<this.t){for(i=o.s&this.DM,r=s;r<this.t;++r)a[r]=n(this[r],i);a.t=this.t}else{for(i=this.s&this.DM,r=s;r<o.t;++r)a[r]=n(i,o[r]);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,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]+o[a],n[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r+=o.s;a<this.t;)r+=this[a],n[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r+=o[a],n[a++]=r&this.DM,r>>=this.DB;r+=o.s}n.s=r<0?-1:0,r>0?n[a++]=r:r<-1&&(n[a++]=this.DV+r),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 r=Math.min(this.t+o.t,n);for(a.s=0,a.t=r;r>0;)a[--r]=0;for(var i=a.t-this.t;r<i;++r)a[r+this.t]=this.am(0,o[r],a,r,0,this.t);for(var i=Math.min(o.t,n);r<i;++r)this.am(0,o[r],a,r,0,n-r);a.clamp()},e.prototype.multiplyUpperTo=function(o,n,a){--n;var r=a.t=this.t+o.t-n;for(a.s=0;--r>=0;)a[r]=0;for(r=Math.max(n-this.t,0);r<o.t;++r)a[this.t+r-n]=this.am(n-r,o[r],a,0,0,this.t+r-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 r=this.t-1;r>=0;--r)a=(n*a+this[r])%o;return a},e.prototype.millerRabin=function(o){var n=this.subtract(e.ONE),a=n.getLowestSetBit();if(a<=0)return!1;var r=n.shiftRight(a);o=o+1>>1,o>Ye.length&&(o=Ye.length);for(var i=ge(),s=0;s<o;++s){i.fromInt(Ye[Math.floor(Math.random()*Ye.length)]);var l=i.modPow(r,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=ge();return this.squareTo(o),o},e.prototype.gcda=function(o,n){var a=this.s<0?this.negate():this.clone(),r=o.s<0?o.negate():o.clone();if(a.compareTo(r)<0){var i=a;a=r,r=i}var s=a.getLowestSetBit(),l=r.getLowestSetBit();if(l<0){n(a);return}s<l&&(l=s),l>0&&(a.rShiftTo(l,a),r.rShiftTo(l,r));var d=function(){(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),a.compareTo(r)>=0?(a.subTo(r,a),a.rShiftTo(1,a)):(r.subTo(a,r),r.rShiftTo(1,r)),a.signum()>0?setTimeout(d,0):(l>0&&r.lShiftTo(l,r),setTimeout(function(){n(r)},0))};setTimeout(d,10)},e.prototype.fromNumberAsync=function(o,n,a,r){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),xn,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>o&&i.subTo(e.ONE.shiftLeft(o-1),i),i.isProbablePrime(n)?setTimeout(function(){r()},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}(),kc=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}(),bi=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}(),vi=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=ge();return o.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),o.s<0&&n.compareTo(ue.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(o){var n=ge();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,r=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,r,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}(),Tc=function(){function e(o){this.m=o,this.r2=ge(),this.q3=ge(),ue.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=ge();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 ge(){return new ue(null)}function Ne(e,o){return new ue(e,o)}var Si=typeof navigator<"u";Si&&pi&&navigator.appName=="Microsoft Internet Explorer"?(ue.prototype.am=function(o,n,a,r,i,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,g=this[o++]>>15,m=d*c+g*l;c=l*c+((m&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(m>>>15)+d*g+(i>>>30),a[r++]=c&1073741823}return i},At=30):Si&&pi&&navigator.appName!="Netscape"?(ue.prototype.am=function(o,n,a,r,i,s){for(;--s>=0;){var l=n*this[o++]+a[r]+i;i=Math.floor(l/67108864),a[r++]=l&67108863}return i},At=26):(ue.prototype.am=function(o,n,a,r,i,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,g=this[o++]>>14,m=d*c+g*l;c=l*c+((m&16383)<<14)+a[r]+i,i=(c>>28)+(m>>14)+d*g,a[r++]=c&268435455}return i},At=28),ue.prototype.DB=At,ue.prototype.DM=(1<<At)-1,ue.prototype.DV=1<<At;var Io=52;ue.prototype.FV=Math.pow(2,Io),ue.prototype.F1=Io-At,ue.prototype.F2=2*At-Io;var bn=[],$t,lt;for($t="0".charCodeAt(0),lt=0;lt<=9;++lt)bn[$t++]=lt;for($t="a".charCodeAt(0),lt=10;lt<36;++lt)bn[$t++]=lt;for($t="A".charCodeAt(0),lt=10;lt<36;++lt)bn[$t++]=lt;function Ci(e,o){var n=bn[e.charCodeAt(o)];return n??-1}function kt(e){var o=ge();return o.fromInt(e),o}function vn(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}ue.ZERO=kt(0),ue.ONE=kt(1);var Bc=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(o){var n,a,r;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,r=this.S[n],this.S[n]=this.S[a],this.S[a]=r;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 Ec(){return new Bc}var wi=256,Sn,Tt=null,ut;if(Tt==null){Tt=[],ut=0;var Cn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Ro=new Uint32Array(256);for(window.crypto.getRandomValues(Ro),Cn=0;Cn<Ro.length;++Cn)Tt[ut++]=Ro[Cn]&255}var wn=0,An=function(e){if(wn=wn||0,wn>=256||ut>=wi){window.removeEventListener?window.removeEventListener("mousemove",An,!1):window.detachEvent&&window.detachEvent("onmousemove",An);return}try{var o=e.x+e.y;Tt[ut++]=o&255,wn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",An,!1):window.attachEvent&&window.attachEvent("onmousemove",An))}function Dc(){if(Sn==null){for(Sn=Ec();ut<wi;){var e=Math.floor(65536*Math.random());Tt[ut++]=e&255}for(Sn.init(Tt),ut=0;ut<Tt.length;++ut)Tt[ut]=0;ut=0}return Sn.next()}var _o=function(){function e(){}return e.prototype.nextBytes=function(o){for(var n=0;n<o.length;++n)o[n]=Dc()},e}();function Ic(e,o){if(o<e.length+22)return console.error("Message too long for RSA"),null;for(var n=o-e.length-6,a="",r=0;r<n;r+=2)a+="ff";var i="0001"+a+"00"+e;return Ne(i,16)}function Rc(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 r=e.charCodeAt(a--);r<128?n[--o]=r:r>127&&r<2048?(n[--o]=r&63|128,n[--o]=r>>6|192):(n[--o]=r&63|128,n[--o]=r>>6&63|128,n[--o]=r>>12|224)}n[--o]=0;for(var i=new _o,s=[];o>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);n[--o]=s[0]}return n[--o]=2,n[--o]=0,new ue(n)}var _c=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=Ne(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=Rc(o,n);if(a==null)return null;var r=this.doPublic(a);if(r==null)return null;for(var i=r.toString(16),s=i.length,l=0;l<n*2-s;l++)i="0"+i;return i},e.prototype.setPrivate=function(o,n,a){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Ne(o,16),this.e=parseInt(n,16),this.d=Ne(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(o,n,a,r,i,s,l,d){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Ne(o,16),this.e=parseInt(n,16),this.d=Ne(a,16),this.p=Ne(r,16),this.q=Ne(i,16),this.dmp1=Ne(s,16),this.dmq1=Ne(l,16),this.coeff=Ne(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,n){var a=new _o,r=o>>1;this.e=parseInt(n,16);for(var i=new ue(n,16);;){for(;this.p=new ue(o-r,1,a),!(this.p.subtract(ue.ONE).gcd(i).compareTo(ue.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ue(r,1,a),!(this.q.subtract(ue.ONE).gcd(i).compareTo(ue.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(ue.ONE),d=this.q.subtract(ue.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(ue.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.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=Ne(o,16),a=this.doPrivate(n);return a==null?null:Lc(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,n,a){var r=new _o,i=o>>1;this.e=parseInt(n,16);var s=new ue(n,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var f=l.p;l.p=l.q,l.q=f}var y=l.p.subtract(ue.ONE),h=l.q.subtract(ue.ONE),u=y.multiply(h);u.gcd(s).compareTo(ue.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(u),l.dmp1=l.d.mod(y),l.dmq1=l.d.mod(h),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},g=function(){l.q=ge(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(ue.ONE).gcda(s,function(f){f.compareTo(ue.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(g,0)})})},m=function(){l.p=ge(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(ue.ONE).gcda(s,function(f){f.compareTo(ue.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(g,0):setTimeout(m,0)})})};setTimeout(m,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var r=Oc(a),i=r+n(o).toString(),s=Ic(i,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 r=Ne(n,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Nc(s);return l==a(o).toString()},e}();function Lc(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 r="";++a<n.length;){var i=n[a]&255;i<128?r+=String.fromCharCode(i):i>191&&i<224?(r+=String.fromCharCode((i&31)<<6|n[a+1]&63),++a):(r+=String.fromCharCode((i&15)<<12|(n[a+1]&63)<<6|n[a+2]&63),a+=2)}return r}var kn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Oc(e){return kn[e]||""}function Nc(e){for(var o in kn)if(kn.hasOwnProperty(o)){var n=kn[o],a=n.length;if(e.substr(0,a)==n)return e.substr(a)}return e}/*!
|
|
71
|
+
*/return n.mode.CTRGladman=function(){var a=n.lib.BlockCipherMode.extend();function i(l){if((l>>24&255)===255){var d=l>>16&255,c=l>>8&255,u=l&255;d===255?(d=0,c===255?(c=0,u===255?u=0:++u):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=u}else l+=1<<24;return l}function r(l){return(l[0]=i(l[0]))===0&&(l[1]=i(l[1])),l}var s=a.Encryptor=a.extend({processBlock:function(l,d){var c=this._cipher,u=c.blockSize,y=this._iv,f=this._counter;y&&(f=this._counter=y.slice(0),this._iv=void 0),r(f);var x=f.slice(0);c.encryptBlock(x,0);for(var m=0;m<u;m++)l[d+m]^=x[m]}});return a.Decryptor=s,a}(),n.mode.CTRGladman})}(mo)),mo.exports}var yo={exports:{}},er;function nc(){return er||(er=1,function(e,o){(function(n,a,i){e.exports=a(be(),je())})(ge,function(n){return n.mode.OFB=function(){var a=n.lib.BlockCipherMode.extend(),i=a.Encryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(u,0);for(var y=0;y<d;y++)r[s+y]^=u[y]}});return a.Decryptor=i,a}(),n.mode.OFB})}(yo)),yo.exports}var xo={exports:{}},tr;function oc(){return tr||(tr=1,function(e,o){(function(n,a,i){e.exports=a(be(),je())})(ge,function(n){return n.mode.ECB=function(){var a=n.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(i,r){this._cipher.encryptBlock(i,r)}}),a.Decryptor=a.extend({processBlock:function(i,r){this._cipher.decryptBlock(i,r)}}),a}(),n.mode.ECB})}(xo)),xo.exports}var po={exports:{}},nr;function ac(){return nr||(nr=1,function(e,o){(function(n,a,i){e.exports=a(be(),je())})(ge,function(n){return n.pad.AnsiX923={pad:function(a,i){var r=a.sigBytes,s=i*4,l=s-r%s,d=r+l-1;a.clamp(),a.words[d>>>2]|=l<<24-d%4*8,a.sigBytes+=l},unpad:function(a){var i=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=i}},n.pad.Ansix923})}(po)),po.exports}var bo={exports:{}},or;function ic(){return or||(or=1,function(e,o){(function(n,a,i){e.exports=a(be(),je())})(ge,function(n){return n.pad.Iso10126={pad:function(a,i){var r=i*4,s=r-a.sigBytes%r;a.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(a){var i=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=i}},n.pad.Iso10126})}(bo)),bo.exports}var vo={exports:{}},ar;function rc(){return ar||(ar=1,function(e,o){(function(n,a,i){e.exports=a(be(),je())})(ge,function(n){return n.pad.Iso97971={pad:function(a,i){a.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(a,i)},unpad:function(a){n.pad.ZeroPadding.unpad(a),a.sigBytes--}},n.pad.Iso97971})}(vo)),vo.exports}var So={exports:{}},ir;function lc(){return ir||(ir=1,function(e,o){(function(n,a,i){e.exports=a(be(),je())})(ge,function(n){return n.pad.ZeroPadding={pad:function(a,i){var r=i*4;a.clamp(),a.sigBytes+=r-(a.sigBytes%r||r)},unpad:function(a){for(var i=a.words,r=a.sigBytes-1,r=a.sigBytes-1;r>=0;r--)if(i[r>>>2]>>>24-r%4*8&255){a.sigBytes=r+1;break}}},n.pad.ZeroPadding})}(So)),So.exports}var Co={exports:{}},rr;function sc(){return rr||(rr=1,function(e,o){(function(n,a,i){e.exports=a(be(),je())})(ge,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(Co)),Co.exports}var wo={exports:{}},lr;function cc(){return lr||(lr=1,function(e,o){(function(n,a,i){e.exports=a(be(),je())})(ge,function(n){return function(a){var i=n,r=i.lib,s=r.CipherParams,l=i.enc,d=l.Hex,c=i.format;c.Hex={stringify:function(u){return u.ciphertext.toString(d)},parse:function(u){var y=d.parse(u);return s.create({ciphertext:y})}}}(),n.format.Hex})}(wo)),wo.exports}var Ao={exports:{}},sr;function dc(){return sr||(sr=1,function(e,o){(function(n,a,i){e.exports=a(be(),jt(),Wt(),Lt(),je())})(ge,function(n){return function(){var a=n,i=a.lib,r=i.BlockCipher,s=a.algo,l=[],d=[],c=[],u=[],y=[],f=[],x=[],m=[],h=[],g=[];(function(){for(var v=[],b=0;b<256;b++)b<128?v[b]=b<<1:v[b]=b<<1^283;for(var w=0,A=0,b=0;b<256;b++){var T=A^A<<1^A<<2^A<<3^A<<4;T=T>>>8^T&255^99,l[w]=T,d[T]=w;var D=v[w],O=v[D],I=v[O],_=v[T]*257^T*16843008;c[w]=_<<24|_>>>8,u[w]=_<<16|_>>>16,y[w]=_<<8|_>>>24,f[w]=_;var _=I*16843009^O*65537^D*257^w*16843008;x[T]=_<<24|_>>>8,m[T]=_<<16|_>>>16,h[T]=_<<8|_>>>24,g[T]=_,w?(w=D^v[v[v[I^D]]],A^=v[v[A]]):w=A=1}})();var C=[0,1,2,4,8,16,32,64,128,27,54],p=s.AES=r.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,w=b.words,A=b.sigBytes/4,T=this._nRounds=A+6,D=(T+1)*4,O=this._keySchedule=[],I=0;I<D;I++)I<A?O[I]=w[I]:(v=O[I-1],I%A?A>6&&I%A==4&&(v=l[v>>>24]<<24|l[v>>>16&255]<<16|l[v>>>8&255]<<8|l[v&255]):(v=v<<8|v>>>24,v=l[v>>>24]<<24|l[v>>>16&255]<<16|l[v>>>8&255]<<8|l[v&255],v^=C[I/A|0]<<24),O[I]=O[I-A]^v);for(var _=this._invKeySchedule=[],L=0;L<D;L++){var I=D-L;if(L%4)var v=O[I];else var v=O[I-4];L<4||I<=4?_[L]=v:_[L]=x[l[v>>>24]]^m[l[v>>>16&255]]^h[l[v>>>8&255]]^g[l[v&255]]}}},encryptBlock:function(v,b){this._doCryptBlock(v,b,this._keySchedule,c,u,y,f,l)},decryptBlock:function(v,b){var w=v[b+1];v[b+1]=v[b+3],v[b+3]=w,this._doCryptBlock(v,b,this._invKeySchedule,x,m,h,g,d);var w=v[b+1];v[b+1]=v[b+3],v[b+3]=w},_doCryptBlock:function(v,b,w,A,T,D,O,I){for(var _=this._nRounds,L=v[b]^w[0],k=v[b+1]^w[1],R=v[b+2]^w[2],B=v[b+3]^w[3],S=4,E=1;E<_;E++){var N=A[L>>>24]^T[k>>>16&255]^D[R>>>8&255]^O[B&255]^w[S++],z=A[k>>>24]^T[R>>>16&255]^D[B>>>8&255]^O[L&255]^w[S++],j=A[R>>>24]^T[B>>>16&255]^D[L>>>8&255]^O[k&255]^w[S++],F=A[B>>>24]^T[L>>>16&255]^D[k>>>8&255]^O[R&255]^w[S++];L=N,k=z,R=j,B=F}var N=(I[L>>>24]<<24|I[k>>>16&255]<<16|I[R>>>8&255]<<8|I[B&255])^w[S++],z=(I[k>>>24]<<24|I[R>>>16&255]<<16|I[B>>>8&255]<<8|I[L&255])^w[S++],j=(I[R>>>24]<<24|I[B>>>16&255]<<16|I[L>>>8&255]<<8|I[k&255])^w[S++],F=(I[B>>>24]<<24|I[L>>>16&255]<<16|I[k>>>8&255]<<8|I[R&255])^w[S++];v[b]=N,v[b+1]=z,v[b+2]=j,v[b+3]=F},keySize:256/32});a.AES=r._createHelper(p)}(),n.AES})}(Ao)),Ao.exports}var ko={exports:{}},cr;function fc(){return cr||(cr=1,function(e,o){(function(n,a,i){e.exports=a(be(),jt(),Wt(),Lt(),je())})(ge,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=i.BlockCipher,l=a.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],y=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],x=l.DES=s.extend({_doReset:function(){for(var C=this._key,p=C.words,v=[],b=0;b<56;b++){var w=d[b]-1;v[b]=p[w>>>5]>>>31-w%32&1}for(var A=this._subKeys=[],T=0;T<16;T++){for(var D=A[T]=[],O=u[T],b=0;b<24;b++)D[b/6|0]|=v[(c[b]-1+O)%28]<<31-b%6,D[4+(b/6|0)]|=v[28+(c[b+24]-1+O)%28]<<31-b%6;D[0]=D[0]<<1|D[0]>>>31;for(var b=1;b<7;b++)D[b]=D[b]>>>(b-1)*4+3;D[7]=D[7]<<5|D[7]>>>27}for(var I=this._invSubKeys=[],b=0;b<16;b++)I[b]=A[15-b]},encryptBlock:function(C,p){this._doCryptBlock(C,p,this._subKeys)},decryptBlock:function(C,p){this._doCryptBlock(C,p,this._invSubKeys)},_doCryptBlock:function(C,p,v){this._lBlock=C[p],this._rBlock=C[p+1],m.call(this,4,252645135),m.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),m.call(this,1,1431655765);for(var b=0;b<16;b++){for(var w=v[b],A=this._lBlock,T=this._rBlock,D=0,O=0;O<8;O++)D|=y[O][((T^w[O])&f[O])>>>0];this._lBlock=T,this._rBlock=A^D}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,m.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),C[p]=this._lBlock,C[p+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(C,p){var v=(this._lBlock>>>C^this._rBlock)&p;this._rBlock^=v,this._lBlock^=v<<C}function h(C,p){var v=(this._rBlock>>>C^this._lBlock)&p;this._lBlock^=v,this._rBlock^=v<<C}a.DES=s._createHelper(x);var g=l.TripleDES=s.extend({_doReset:function(){var C=this._key,p=C.words;if(p.length!==2&&p.length!==4&&p.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=p.slice(0,2),b=p.length<4?p.slice(0,2):p.slice(2,4),w=p.length<6?p.slice(0,2):p.slice(4,6);this._des1=x.createEncryptor(r.create(v)),this._des2=x.createEncryptor(r.create(b)),this._des3=x.createEncryptor(r.create(w))},encryptBlock:function(C,p){this._des1.encryptBlock(C,p),this._des2.decryptBlock(C,p),this._des3.encryptBlock(C,p)},decryptBlock:function(C,p){this._des3.decryptBlock(C,p),this._des2.encryptBlock(C,p),this._des1.decryptBlock(C,p)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(g)}(),n.TripleDES})}(ko)),ko.exports}var To={exports:{}},dr;function uc(){return dr||(dr=1,function(e,o){(function(n,a,i){e.exports=a(be(),jt(),Wt(),Lt(),je())})(ge,function(n){return function(){var a=n,i=a.lib,r=i.StreamCipher,s=a.algo,l=s.RC4=r.extend({_doReset:function(){for(var u=this._key,y=u.words,f=u.sigBytes,x=this._S=[],m=0;m<256;m++)x[m]=m;for(var m=0,h=0;m<256;m++){var g=m%f,C=y[g>>>2]>>>24-g%4*8&255;h=(h+x[m]+C)%256;var p=x[m];x[m]=x[h],x[h]=p}this._i=this._j=0},_doProcessBlock:function(u,y){u[y]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var u=this._S,y=this._i,f=this._j,x=0,m=0;m<4;m++){y=(y+1)%256,f=(f+u[y])%256;var h=u[y];u[y]=u[f],u[f]=h,x|=u[(u[y]+u[f])%256]<<24-m*8}return this._i=y,this._j=f,x}a.RC4=r._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)d.call(this)}});a.RC4Drop=r._createHelper(c)}(),n.RC4})}(To)),To.exports}var Bo={exports:{}},fr;function hc(){return fr||(fr=1,function(e,o){(function(n,a,i){e.exports=a(be(),jt(),Wt(),Lt(),je())})(ge,function(n){return function(){var a=n,i=a.lib,r=i.StreamCipher,s=a.algo,l=[],d=[],c=[],u=s.Rabbit=r.extend({_doReset:function(){for(var f=this._key.words,x=this.cfg.iv,m=0;m<4;m++)f[m]=(f[m]<<8|f[m]>>>24)&16711935|(f[m]<<24|f[m]>>>8)&4278255360;var h=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],g=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var m=0;m<4;m++)y.call(this);for(var m=0;m<8;m++)g[m]^=h[m+4&7];if(x){var C=x.words,p=C[0],v=C[1],b=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,w=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,A=b>>>16|w&4294901760,T=w<<16|b&65535;g[0]^=b,g[1]^=A,g[2]^=w,g[3]^=T,g[4]^=b,g[5]^=A,g[6]^=w,g[7]^=T;for(var m=0;m<4;m++)y.call(this)}},_doProcessBlock:function(f,x){var m=this._X;y.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var h=0;h<4;h++)l[h]=(l[h]<<8|l[h]>>>24)&16711935|(l[h]<<24|l[h]>>>8)&4278255360,f[x+h]^=l[h]},blockSize:128/32,ivSize:64/32});function y(){for(var f=this._X,x=this._C,m=0;m<8;m++)d[m]=x[m];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<d[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<d[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<d[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<d[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<d[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<d[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<d[6]>>>0?1:0)|0,this._b=x[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var h=f[m]+x[m],g=h&65535,C=h>>>16,p=((g*g>>>17)+g*C>>>15)+C*C,v=((h&4294901760)*h|0)+((h&65535)*h|0);c[m]=p^v}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=r._createHelper(u)}(),n.Rabbit})}(Bo)),Bo.exports}var Eo={exports:{}},ur;function gc(){return ur||(ur=1,function(e,o){(function(n,a,i){e.exports=a(be(),jt(),Wt(),Lt(),je())})(ge,function(n){return function(){var a=n,i=a.lib,r=i.StreamCipher,s=a.algo,l=[],d=[],c=[],u=s.RabbitLegacy=r.extend({_doReset:function(){var f=this._key.words,x=this.cfg.iv,m=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],h=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var g=0;g<4;g++)y.call(this);for(var g=0;g<8;g++)h[g]^=m[g+4&7];if(x){var C=x.words,p=C[0],v=C[1],b=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,w=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,A=b>>>16|w&4294901760,T=w<<16|b&65535;h[0]^=b,h[1]^=A,h[2]^=w,h[3]^=T,h[4]^=b,h[5]^=A,h[6]^=w,h[7]^=T;for(var g=0;g<4;g++)y.call(this)}},_doProcessBlock:function(f,x){var m=this._X;y.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var h=0;h<4;h++)l[h]=(l[h]<<8|l[h]>>>24)&16711935|(l[h]<<24|l[h]>>>8)&4278255360,f[x+h]^=l[h]},blockSize:128/32,ivSize:64/32});function y(){for(var f=this._X,x=this._C,m=0;m<8;m++)d[m]=x[m];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<d[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<d[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<d[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<d[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<d[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<d[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<d[6]>>>0?1:0)|0,this._b=x[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var h=f[m]+x[m],g=h&65535,C=h>>>16,p=((g*g>>>17)+g*C>>>15)+C*C,v=((h&4294901760)*h|0)+((h&65535)*h|0);c[m]=p^v}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=r._createHelper(u)}(),n.RabbitLegacy})}(Eo)),Eo.exports}(function(e,o){(function(n,a,i){e.exports=a(be(),xn(),G0(),U0(),jt(),$0(),Wt(),eo(),qi(),K0(),ji(),Y0(),Z0(),Q0(),so(),J0(),Lt(),je(),X0(),ec(),tc(),nc(),oc(),ac(),ic(),rc(),lc(),sc(),cc(),dc(),fc(),uc(),hc(),gc())})(ge,function(n){return n})})(Ii);var mc=Ii.exports;const it=Di(mc);var yc="0123456789abcdefghijklmnopqrstuvwxyz";function St(e){return yc.charAt(e)}function xc(e,o){return e&o}function pn(e,o){return e|o}function hr(e,o){return e^o}function gr(e,o){return e&~o}function pc(e){if(e==0)return-1;var o=0;return e&65535||(e>>=16,o+=16),e&255||(e>>=8,o+=8),e&15||(e>>=4,o+=4),e&3||(e>>=2,o+=2),e&1||++o,o}function bc(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",mr="=";function bn(e){var o,n,a="";for(o=0;o+3<=e.length;o+=3)n=parseInt(e.substring(o,o+3),16),a+=Gt.charAt(n>>6)+Gt.charAt(n&63);for(o+1==e.length?(n=parseInt(e.substring(o,o+1),16),a+=Gt.charAt(n<<2)):o+2==e.length&&(n=parseInt(e.substring(o,o+2),16),a+=Gt.charAt(n>>2)+Gt.charAt((n&3)<<4));(a.length&3)>0;)a+=mr;return a}function yr(e){var o="",n,a=0,i=0;for(n=0;n<e.length&&e.charAt(n)!=mr;++n){var r=Gt.indexOf(e.charAt(n));r<0||(a==0?(o+=St(r>>2),i=r&3,a=1):a==1?(o+=St(i<<2|r>>4),i=r&15,a=2):a==2?(o+=St(i),o+=St(r>>2),i=r&3,a=3):(o+=St(i<<2|r>>4),o+=St(r&15),a=0))}return a==1&&(o+=St(i<<2)),o}var Ut,vc={decode:function(e){var o;if(Ut===void 0){var n="0123456789ABCDEF",a=` \f
|
|
72
|
+
\r \u2028\u2029`;for(Ut={},o=0;o<16;++o)Ut[n.charAt(o)]=o;for(n=n.toLowerCase(),o=10;o<16;++o)Ut[n.charAt(o)]=o;for(o=0;o<a.length;++o)Ut[a.charAt(o)]=-1}var i=[],r=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=Ut[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);r|=l,++s>=2?(i[i.length]=r,r=0,s=0):r<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Ot,Do={decode:function(e){var o;if(Ot===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=`= \f
|
|
73
|
+
\r \u2028\u2029`;for(Ot=Object.create(null),o=0;o<64;++o)Ot[n.charAt(o)]=o;for(Ot["-"]=62,Ot._=63,o=0;o<a.length;++o)Ot[a.charAt(o)]=-1}var i=[],r=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=Ot[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);r|=l,++s>=4?(i[i.length]=r>>16,i[i.length]=r>>8&255,i[i.length]=r&255,r=0,s=0):r<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=r>>10;break;case 3:i[i.length]=r>>16,i[i.length]=r>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var o=Do.re.exec(e);if(o)if(o[1])e=o[1];else if(o[2])e=o[2];else throw new Error("RegExp out of sync");return Do.decode(e)}},$t=1e13,rn=function(){function e(o){this.buf=[+o||0]}return e.prototype.mulAdd=function(o,n){var a=this.buf,i=a.length,r,s;for(r=0;r<i;++r)s=a[r]*o+n,s<$t?n=0:(n=0|s/$t,s-=n*$t),a[r]=s;n>0&&(a[r]=n)},e.prototype.sub=function(o){var n=this.buf,a=n.length,i,r;for(i=0;i<a;++i)r=n[i]-o,r<0?(r+=$t,o=1):o=0,n[i]=r;for(;n[n.length-1]===0;)n.pop()},e.prototype.toString=function(o){if((o||10)!=10)throw new Error("only base 10 is supported");for(var n=this.buf,a=n[n.length-1].toString(),i=n.length-2;i>=0;--i)a+=($t+n[i]).toString().substring(1);return a},e.prototype.valueOf=function(){for(var o=this.buf,n=0,a=o.length-1;a>=0;--a)n=n*$t+o[a];return n},e.prototype.simplify=function(){var o=this.buf;return o.length==1?o[0]:this},e}(),xr="…",Sc=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Cc=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Kt(e,o){return e.length>o&&(e=e.substring(0,o)+xr),e}var Io=function(){function e(o,n){this.hexDigits="0123456789ABCDEF",o instanceof e?(this.enc=o.enc,this.pos=o.pos):(this.enc=o,this.pos=n)}return e.prototype.get=function(o){if(o===void 0&&(o=this.pos++),o>=this.enc.length)throw new Error("Requesting byte offset ".concat(o," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(o):this.enc[o]},e.prototype.hexByte=function(o){return this.hexDigits.charAt(o>>4&15)+this.hexDigits.charAt(o&15)},e.prototype.hexDump=function(o,n,a){for(var i="",r=o;r<n;++r)if(i+=this.hexByte(this.get(r)),a!==!0)switch(r&15){case 7:i+=" ";break;case 15:i+=`
|
|
74
|
+
`;break;default:i+=" "}return i},e.prototype.isASCII=function(o,n){for(var a=o;a<n;++a){var i=this.get(a);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(o,n){for(var a="",i=o;i<n;++i)a+=String.fromCharCode(this.get(i));return a},e.prototype.parseStringUTF=function(o,n){for(var a="",i=o;i<n;){var r=this.get(i++);r<128?a+=String.fromCharCode(r):r>191&&r<224?a+=String.fromCharCode((r&31)<<6|this.get(i++)&63):a+=String.fromCharCode((r&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return a},e.prototype.parseStringBMP=function(o,n){for(var a="",i,r,s=o;s<n;)i=this.get(s++),r=this.get(s++),a+=String.fromCharCode(i<<8|r);return a},e.prototype.parseTime=function(o,n,a){var i=this.parseStringISO(o,n),r=(a?Sc:Cc).exec(i);return r?(a&&(r[1]=+r[1],r[1]+=+r[1]<70?2e3:1900),i=r[1]+"-"+r[2]+"-"+r[3]+" "+r[4],r[5]&&(i+=":"+r[5],r[6]&&(i+=":"+r[6],r[7]&&(i+="."+r[7]))),r[8]&&(i+=" UTC",r[8]!="Z"&&(i+=r[8],r[9]&&(i+=":"+r[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(o,n){for(var a=this.get(o),i=a>127,r=i?255:0,s,l="";a==r&&++o<n;)a=this.get(o);if(s=n-o,s===0)return i?-1:0;if(s>4){for(l=a,s<<=3;!((+l^r)&128);)l=+l<<1,--s;l="("+s+` bit)
|
|
75
|
+
`}i&&(a=a-256);for(var d=new rn(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
|
+
`,l="",d=o+1;d<n;++d){for(var c=this.get(d),u=d==n-1?i:0,y=7;y>=u;--y)l+=c>>y&1?"1":"0";if(l.length>a)return s+Kt(l,a)}return s+l},e.prototype.parseOctetString=function(o,n,a){if(this.isASCII(o,n))return Kt(this.parseStringISO(o,n),a);var i=n-o,r="("+i+` byte)
|
|
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+=xr),r},e.prototype.parseOID=function(o,n,a){for(var i="",r=new rn,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 rn)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 Kt(i,a);r=new rn,s=0}}return s>0&&(i+=".incomplete"),i},e}(),wc=function(){function e(o,n,a,i,r){if(!(i instanceof pr))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 Kt(this.stream.parseStringUTF(n,n+a),o);case 18:case 19:case 20:case 21:case 22:case 26:return Kt(this.stream.parseStringISO(n,n+a),o);case 30:return Kt(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 Io?n=o:n=new Io(o,0);var a=new Io(n),i=new pr(n),r=e.decodeLength(n),s=n.pos,l=s-a.pos,d=null,c=function(){var y=[];if(r!==null){for(var f=s+r;n.pos<f;)y[y.length]=e.decode(n);if(n.pos!=f)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var x=e.decode(n);if(x.tag.isEOC())break;y[y.length]=x}r=s-n.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return y};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 u=0;u<d.length;++u)if(d[u].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}(),pr=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 rn;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}(),Tt,Ac=0xdeadbeefcafe,br=(Ac&16777215)==15715070,Ye=[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],kc=(1<<26)/Ye[Ye.length-1],he=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=St(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+=St(i));return r?s:"0"},e.prototype.negate=function(){var o=me();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)+Sn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var n=me();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 vr(n):a=new Sr(n),this.exp(o,a)},e.prototype.clone=function(){var o=me();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=me();return this.bitwiseTo(o,xc,n),n},e.prototype.or=function(o){var n=me();return this.bitwiseTo(o,pn,n),n},e.prototype.xor=function(o){var n=me();return this.bitwiseTo(o,hr,n),n},e.prototype.andNot=function(o){var n=me();return this.bitwiseTo(o,gr,n),n},e.prototype.not=function(){for(var o=me(),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=me();return o<0?this.rShiftTo(-o,n):this.lShiftTo(o,n),n},e.prototype.shiftRight=function(o){var n=me();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+pc(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+=bc(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,pn)},e.prototype.clearBit=function(o){return this.changeBit(o,gr)},e.prototype.flipBit=function(o){return this.changeBit(o,hr)},e.prototype.add=function(o){var n=me();return this.addTo(o,n),n},e.prototype.subtract=function(o){var n=me();return this.subTo(o,n),n},e.prototype.multiply=function(o){var n=me();return this.multiplyTo(o,n),n},e.prototype.divide=function(o){var n=me();return this.divRemTo(o,n,null),n},e.prototype.remainder=function(o){var n=me();return this.divRemTo(o,null,n),n},e.prototype.divideAndRemainder=function(o){var n=me(),a=me();return this.divRemTo(o,n,a),[n,a]},e.prototype.modPow=function(o,n){var a=o.bitLength(),i,r=Bt(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 vr(n):n.isEven()?s=new Bc(n):s=new Sr(n);var l=[],d=3,c=i-1,u=(1<<i)-1;if(l[1]=s.convert(this),i>1){var y=me();for(s.sqrTo(l[1],y);d<=u;)l[d]=me(),s.mulTo(y,l[d-2],l[d]),d+=2}var f=o.t-1,x,m=!0,h=me(),g;for(a=Sn(o[f])-1;f>=0;){for(a>=c?x=o[f]>>a-c&u:(x=(o[f]&(1<<a+1)-1)<<c-a,f>0&&(x|=o[f-1]>>this.DB+a-c)),d=i;!(x&1);)x>>=1,--d;if((a-=d)<0&&(a+=this.DB,--f),m)l[x].copyTo(r),m=!1;else{for(;d>1;)s.sqrTo(r,h),s.sqrTo(h,r),d-=2;d>0?s.sqrTo(r,h):(g=r,r=h,h=g),s.mulTo(h,l[x],r)}for(;f>=0&&!(o[f]&1<<a);)s.sqrTo(r,h),g=r,r=h,h=g,--a<0&&(a=this.DB-1,--f)}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=Bt(1),s=Bt(0),l=Bt(0),d=Bt(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 Tc)},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]<=Ye[Ye.length-1]){for(n=0;n<Ye.length;++n)if(a[0]==Ye[n])return!0;return!1}if(a.isEven())return!1;for(n=1;n<Ye.length;){for(var i=Ye[n],r=n+1;r<Ye.length&&i<kc;)i*=Ye[r++];for(i=a.modInt(i);n<r;)if(i%Ye[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:wr(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=me());var s=me(),l=this.s,d=o.s,c=this.DB-Sn(i[i.t-1]);c>0?(i.lShiftTo(c,s),r.lShiftTo(c,a)):(i.copyTo(s),r.copyTo(a));var u=s.t,y=s[u-1];if(y!=0){var f=y*(1<<this.F1)+(u>1?s[u-2]>>this.F2:0),x=this.FV/f,m=(1<<this.F1)/f,h=1<<this.F2,g=a.t,C=g-u,p=n??me();for(s.dlShiftTo(C,p),a.compareTo(p)>=0&&(a[a.t++]=1,a.subTo(p,a)),e.ONE.dlShiftTo(u,p),p.subTo(s,s);s.t<u;)s[s.t++]=0;for(;--C>=0;){var v=a[--g]==y?this.DM:Math.floor(a[g]*x+(a[g-1]+h)*m);if((a[g]+=s.am(0,v,a,C,0,u))<v)for(s.dlShiftTo(C,p),a.subTo(p,a);a[g]<--v;)a.subTo(p,a)}n!=null&&(a.drShiftTo(u,n),l!=d&&e.ZERO.subTo(n,n)),a.t=u,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=me(),i=me(),r=n.convert(this),s=Sn(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=Bt(a),r=me(),s=me(),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=wr(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),pn,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>Ye.length&&(o=Ye.length);for(var r=me(),s=0;s<o;++s){r.fromInt(Ye[Math.floor(Math.random()*Ye.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=me();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),pn,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}(),Tc=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}(),vr=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}(),Sr=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=me();return o.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),o.s<0&&n.compareTo(he.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(o){var n=me();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}(),Bc=function(){function e(o){this.m=o,this.r2=me(),this.q3=me(),he.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=me();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 me(){return new he(null)}function Ne(e,o){return new he(e,o)}var Cr=typeof navigator<"u";Cr&&br&&navigator.appName=="Microsoft Internet Explorer"?(he.prototype.am=function(o,n,a,i,r,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,u=this[o++]>>15,y=d*c+u*l;c=l*c+((y&32767)<<15)+a[i]+(r&1073741823),r=(c>>>30)+(y>>>15)+d*u+(r>>>30),a[i++]=c&1073741823}return r},Tt=30):Cr&&br&&navigator.appName!="Netscape"?(he.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},Tt=26):(he.prototype.am=function(o,n,a,i,r,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,u=this[o++]>>14,y=d*c+u*l;c=l*c+((y&16383)<<14)+a[i]+r,r=(c>>28)+(y>>14)+d*u,a[i++]=c&268435455}return r},Tt=28),he.prototype.DB=Tt,he.prototype.DM=(1<<Tt)-1,he.prototype.DV=1<<Tt;var Ro=52;he.prototype.FV=Math.pow(2,Ro),he.prototype.F1=Ro-Tt,he.prototype.F2=2*Tt-Ro;var vn=[],Yt,st;for(Yt="0".charCodeAt(0),st=0;st<=9;++st)vn[Yt++]=st;for(Yt="a".charCodeAt(0),st=10;st<36;++st)vn[Yt++]=st;for(Yt="A".charCodeAt(0),st=10;st<36;++st)vn[Yt++]=st;function wr(e,o){var n=vn[e.charCodeAt(o)];return n??-1}function Bt(e){var o=me();return o.fromInt(e),o}function Sn(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}he.ZERO=Bt(0),he.ONE=Bt(1);var Ec=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 Dc(){return new Ec}var Ar=256,Cn,Et=null,gt;if(Et==null){Et=[],gt=0;var wn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var _o=new Uint32Array(256);for(window.crypto.getRandomValues(_o),wn=0;wn<_o.length;++wn)Et[gt++]=_o[wn]&255}var An=0,kn=function(e){if(An=An||0,An>=256||gt>=Ar){window.removeEventListener?window.removeEventListener("mousemove",kn,!1):window.detachEvent&&window.detachEvent("onmousemove",kn);return}try{var o=e.x+e.y;Et[gt++]=o&255,An+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",kn,!1):window.attachEvent&&window.attachEvent("onmousemove",kn))}function Ic(){if(Cn==null){for(Cn=Dc();gt<Ar;){var e=Math.floor(65536*Math.random());Et[gt++]=e&255}for(Cn.init(Et),gt=0;gt<Et.length;++gt)Et[gt]=0;gt=0}return Cn.next()}var Lo=function(){function e(){}return e.prototype.nextBytes=function(o){for(var n=0;n<o.length;++n)o[n]=Ic()},e}();function Rc(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 Ne(r,16)}function _c(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 Lo,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 he(n)}var Lc=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=Ne(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=_c(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=Ne(o,16),this.e=parseInt(n,16),this.d=Ne(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=Ne(o,16),this.e=parseInt(n,16),this.d=Ne(a,16),this.p=Ne(i,16),this.q=Ne(r,16),this.dmp1=Ne(s,16),this.dmq1=Ne(l,16),this.coeff=Ne(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,n){var a=new Lo,i=o>>1;this.e=parseInt(n,16);for(var r=new he(n,16);;){for(;this.p=new he(o-i,1,a),!(this.p.subtract(he.ONE).gcd(r).compareTo(he.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new he(i,1,a),!(this.q.subtract(he.ONE).gcd(r).compareTo(he.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(he.ONE),d=this.q.subtract(he.ONE),c=l.multiply(d);if(c.gcd(r).compareTo(he.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=Ne(o,16),a=this.doPrivate(n);return a==null?null:Oc(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,n,a){var i=new Lo,r=o>>1;this.e=parseInt(n,16);var s=new he(n,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var f=l.p;l.p=l.q,l.q=f}var x=l.p.subtract(he.ONE),m=l.q.subtract(he.ONE),h=x.multiply(m);h.gcd(s).compareTo(he.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(h),l.dmp1=l.d.mod(x),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},u=function(){l.q=me(),l.q.fromNumberAsync(r,1,i,function(){l.q.subtract(he.ONE).gcda(s,function(f){f.compareTo(he.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},y=function(){l.p=me(),l.p.fromNumberAsync(o-r,1,i,function(){l.p.subtract(he.ONE).gcda(s,function(f){f.compareTo(he.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(y,0)})})};setTimeout(y,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var i=Nc(a),r=i+n(o).toString(),s=Rc(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=Ne(n,16),r=this.doPublic(i);if(r==null)return null;var s=r.toString(16).replace(/^1f+00/,""),l=Fc(s);return l==a(o).toString()},e}();function Oc(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 Tn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Nc(e){return Tn[e]||""}function Fc(e){for(var o in Tn)if(Tn.hasOwnProperty(o)){var n=Tn[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
|
|
82
82
|
version: 2.9.0
|
|
83
|
-
*/var
|
|
83
|
+
*/var Fe={};Fe.lang={extend:function(e,o,n){if(!o||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var a=function(){};if(a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e,e.superclass=o.prototype,o.prototype.constructor==Object.prototype.constructor&&(o.prototype.constructor=o),n){var i;for(i in n)e.prototype[i]=n[i];var r=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(r=function(l,d){for(i=0;i<s.length;i=i+1){var c=s[i],u=d[c];typeof u=="function"&&u!=Object.prototype[c]&&(l[c]=u)}})}catch{}r(e.prototype,n)}}};/**
|
|
84
84
|
* @fileOverview
|
|
85
85
|
* @name asn1-1.0.js
|
|
86
86
|
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
87
87
|
* @version asn1 1.0.13 (2017-Jun-02)
|
|
88
88
|
* @since jsrsasign 2.1
|
|
89
89
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
90
|
-
*/var Z={};(typeof Z.asn1>"u"||!Z.asn1)&&(Z.asn1={}),Z.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var o=e.toString(16);return o.length%2==1&&(o="0"+o),o},this.bigIntToMinTwosComplementsHex=function(e){var o=e.toString(16);if(o.substr(0,1)!="-")o.length%2==1?o="0"+o:o.match(/^[0-7]/)||(o="00"+o);else{var n=o.substr(1),a=n.length;a%2==1?a+=1:o.match(/^[0-7]/)||(a+=2);for(var r="",i=0;i<a;i++)r+="f";var s=new ue(r,16),l=s.xor(e).add(ue.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=Z,n=o.asn1,a=n.DERBoolean,r=n.DERInteger,i=n.DERBitString,s=n.DEROctetString,l=n.DERNull,d=n.DERObjectIdentifier,c=n.DEREnumerated,g=n.DERUTF8String,m=n.DERNumericString,f=n.DERPrintableString,y=n.DERTeletexString,h=n.DERIA5String,u=n.DERUTCTime,b=n.DERGeneralizedTime,k=n.DERSequence,x=n.DERSet,S=n.DERTaggedObject,p=n.ASN1Util.newObject,C=Object.keys(e);if(C.length!=1)throw"key of param shall be only one.";var w=C[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+w+":")==-1)throw"undefined key: "+w;if(w=="bool")return new a(e[w]);if(w=="int")return new r(e[w]);if(w=="bitstr")return new i(e[w]);if(w=="octstr")return new s(e[w]);if(w=="null")return new l(e[w]);if(w=="oid")return new d(e[w]);if(w=="enum")return new c(e[w]);if(w=="utf8str")return new g(e[w]);if(w=="numstr")return new m(e[w]);if(w=="prnstr")return new f(e[w]);if(w=="telstr")return new y(e[w]);if(w=="ia5str")return new h(e[w]);if(w=="utctime")return new u(e[w]);if(w=="gentime")return new b(e[w]);if(w=="seq"){for(var B=e[w],L=[],O=0;O<B.length;O++){var E=p(B[O]);L.push(E)}return new k({array:L})}if(w=="set"){for(var B=e[w],L=[],O=0;O<B.length;O++){var E=p(B[O]);L.push(E)}return new x({array:L})}if(w=="tag"){var _=e[w];if(Object.prototype.toString.call(_)==="[object Array]"&&_.length==3){var I=p(_[2]);return new S({tag:_[0],explicit:_[1],obj:I})}else{var A={};if(_.explicit!==void 0&&(A.explicit=_.explicit),_.tag!==void 0&&(A.tag=_.tag),_.obj===void 0)throw"obj shall be specified for 'tag'.";return A.obj=p(_.obj),new S(A)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},Z.asn1.ASN1Util.oidHexToInt=function(e){for(var r="",o=parseInt(e.substr(0,2),16),n=Math.floor(o/40),a=o%40,r=n+"."+a,i="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),d=("00000000"+l.toString(2)).slice(-8);if(i=i+d.substr(1,7),d.substr(0,1)=="0"){var c=new ue(i,2);r=r+"."+c.toString(10),i=""}}return r},Z.asn1.ASN1Util.oidIntToHex=function(e){var o=function(l){var d=l.toString(16);return d.length==1&&(d="0"+d),d},n=function(l){var d="",c=new ue(l,10),g=c.toString(2),m=7-g.length%7;m==7&&(m=0);for(var f="",y=0;y<m;y++)f+="0";g=f+g;for(var y=0;y<g.length-1;y+=7){var h=g.substr(y,7);y!=g.length-7&&(h="1"+h),d+=o(parseInt(h,2))}return d};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var a="",r=e.split("."),i=parseInt(r[0])*40+parseInt(r[1]);a+=o(i),r.splice(0,2);for(var s=0;s<r.length;s++)a+=n(r[s]);return a},Z.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var o=this.hV.length/2,n=o.toString(16);if(n.length%2==1&&(n="0"+n),o<128)return n;var a=n.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+o.toString(16);var r=128+a;return r.toString(16)+n},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},Z.asn1.DERAbstractString=function(e){Z.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(this.s)},this.setStringHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},ze.lang.extend(Z.asn1.DERAbstractString,Z.asn1.ASN1Object),Z.asn1.DERAbstractTime=function(e){Z.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(o){utc=o.getTime()+o.getTimezoneOffset()*6e4;var n=new Date(utc);return n},this.formatDate=function(o,n,a){var r=this.zeroPadding,i=this.localDateToUTC(o),s=String(i.getFullYear());n=="utc"&&(s=s.substr(2,2));var l=r(String(i.getMonth()+1),2),d=r(String(i.getDate()),2),c=r(String(i.getHours()),2),g=r(String(i.getMinutes()),2),m=r(String(i.getSeconds()),2),f=s+l+d+c+g+m;if(a===!0){var y=i.getMilliseconds();if(y!=0){var h=r(String(y),3);h=h.replace(/[0]+$/,""),f=f+"."+h}}return f+"Z"},this.zeroPadding=function(o,n){return o.length>=n?o:new Array(n-o.length+1).join("0")+o},this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(o)},this.setByDateValue=function(o,n,a,r,i,s){var l=new Date(Date.UTC(o,n-1,a,r,i,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},ze.lang.extend(Z.asn1.DERAbstractTime,Z.asn1.ASN1Object),Z.asn1.DERAbstractStructured=function(e){Z.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array=o},this.appendASN1Object=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array.push(o)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},ze.lang.extend(Z.asn1.DERAbstractStructured,Z.asn1.ASN1Object),Z.asn1.DERBoolean=function(){Z.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},ze.lang.extend(Z.asn1.DERBoolean,Z.asn1.ASN1Object),Z.asn1.DERInteger=function(e){Z.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=Z.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ue(String(o),10);this.setByBigInteger(n)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},ze.lang.extend(Z.asn1.DERInteger,Z.asn1.ASN1Object),Z.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=Z.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}Z.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(n){this.hTLV=null,this.isModified=!0,this.hV=n},this.setUnusedBitsAndHexValue=function(n,a){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var r="0"+n;this.hTLV=null,this.isModified=!0,this.hV=r+a},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var a=8-n.length%8;a==8&&(a=0);for(var r=0;r<=a;r++)n+="0";for(var i="",r=0;r<n.length-1;r+=8){var s=n.substr(r,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),i+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+a+i},this.setByBooleanArray=function(n){for(var a="",r=0;r<n.length;r++)n[r]==!0?a+="1":a+="0";this.setByBinaryString(a)},this.newFalseArray=function(n){for(var a=new Array(n),r=0;r<n;r++)a[r]=!1;return a},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},ze.lang.extend(Z.asn1.DERBitString,Z.asn1.ASN1Object),Z.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=Z.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}Z.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},ze.lang.extend(Z.asn1.DEROctetString,Z.asn1.DERAbstractString),Z.asn1.DERNull=function(){Z.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},ze.lang.extend(Z.asn1.DERNull,Z.asn1.ASN1Object),Z.asn1.DERObjectIdentifier=function(e){var o=function(a){var r=a.toString(16);return r.length==1&&(r="0"+r),r},n=function(a){var r="",i=new ue(a,10),s=i.toString(2),l=7-s.length%7;l==7&&(l=0);for(var d="",c=0;c<l;c++)d+="0";s=d+s;for(var c=0;c<s.length-1;c+=7){var g=s.substr(c,7);c!=s.length-7&&(g="1"+g),r+=o(parseInt(g,2))}return r};Z.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(a){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueOidString=function(a){if(!a.match(/^[0-9.]+$/))throw"malformed oid string: "+a;var r="",i=a.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=o(s),i.splice(0,2);for(var l=0;l<i.length;l++)r+=n(i[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(a){var r=Z.asn1.x509.OID.name2oid(a);if(r!=="")this.setValueOidString(r);else throw"DERObjectIdentifier oidName undefined: "+a},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},ze.lang.extend(Z.asn1.DERObjectIdentifier,Z.asn1.ASN1Object),Z.asn1.DEREnumerated=function(e){Z.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=Z.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ue(String(o),10);this.setByBigInteger(n)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},ze.lang.extend(Z.asn1.DEREnumerated,Z.asn1.ASN1Object),Z.asn1.DERUTF8String=function(e){Z.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},ze.lang.extend(Z.asn1.DERUTF8String,Z.asn1.DERAbstractString),Z.asn1.DERNumericString=function(e){Z.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},ze.lang.extend(Z.asn1.DERNumericString,Z.asn1.DERAbstractString),Z.asn1.DERPrintableString=function(e){Z.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},ze.lang.extend(Z.asn1.DERPrintableString,Z.asn1.DERAbstractString),Z.asn1.DERTeletexString=function(e){Z.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},ze.lang.extend(Z.asn1.DERTeletexString,Z.asn1.DERAbstractString),Z.asn1.DERIA5String=function(e){Z.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},ze.lang.extend(Z.asn1.DERIA5String,Z.asn1.DERAbstractString),Z.asn1.DERUTCTime=function(e){Z.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},ze.lang.extend(Z.asn1.DERUTCTime,Z.asn1.DERAbstractTime),Z.asn1.DERGeneralizedTime=function(e){Z.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},ze.lang.extend(Z.asn1.DERGeneralizedTime,Z.asn1.DERAbstractTime),Z.asn1.DERSequence=function(e){Z.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var o="",n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];o+=a.getEncodedHex()}return this.hV=o,this.hV}},ze.lang.extend(Z.asn1.DERSequence,Z.asn1.DERAbstractStructured),Z.asn1.DERSet=function(e){Z.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var o=new Array,n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];o.push(a.getEncodedHex())}return this.sortFlag==!0&&o.sort(),this.hV=o.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},ze.lang.extend(Z.asn1.DERSet,Z.asn1.DERAbstractStructured),Z.asn1.DERTaggedObject=function(e){Z.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(o,n,a){this.hT=n,this.isExplicit=o,this.asn1Object=a,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=a.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,n),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},ze.lang.extend(Z.asn1.DERTaggedObject,Z.asn1.ASN1Object);var Fc=globalThis&&globalThis.__extends||function(){var e=function(o,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a[i]=r[i])},e(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(o,n);function a(){this.constructor=o}o.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Ai=function(e){Fc(o,e);function o(n){var a=e.call(this)||this;return n&&(typeof n=="string"?a.parseKey(n):(o.hasPrivateKeyProperty(n)||o.hasPublicKeyProperty(n))&&a.parsePropertiesFrom(n)),a}return o.prototype.parseKey=function(n){try{var a=0,r=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=i.test(n)?bc.decode(n):Eo.unarmor(n),l=Cc.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Ne(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var d=l.sub[3].getHexStringValue();this.d=Ne(d,16);var c=l.sub[4].getHexStringValue();this.p=Ne(c,16);var g=l.sub[5].getHexStringValue();this.q=Ne(g,16);var m=l.sub[6].getHexStringValue();this.dmp1=Ne(m,16);var f=l.sub[7].getHexStringValue();this.dmq1=Ne(f,16);var y=l.sub[8].getHexStringValue();this.coeff=Ne(y,16)}else if(l.sub.length===2)if(l.sub[0].sub){var h=l.sub[1],u=h.sub[0];a=u.sub[0].getHexStringValue(),this.n=Ne(a,16),r=u.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Ne(a,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},o.prototype.getPrivateBaseKey=function(){var n={array:[new Z.asn1.DERInteger({int:0}),new Z.asn1.DERInteger({bigint:this.n}),new Z.asn1.DERInteger({int:this.e}),new Z.asn1.DERInteger({bigint:this.d}),new Z.asn1.DERInteger({bigint:this.p}),new Z.asn1.DERInteger({bigint:this.q}),new Z.asn1.DERInteger({bigint:this.dmp1}),new Z.asn1.DERInteger({bigint:this.dmq1}),new Z.asn1.DERInteger({bigint:this.coeff})]},a=new Z.asn1.DERSequence(n);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return pn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var n=new Z.asn1.DERSequence({array:[new Z.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Z.asn1.DERNull]}),a=new Z.asn1.DERSequence({array:[new Z.asn1.DERInteger({bigint:this.n}),new Z.asn1.DERInteger({int:this.e})]}),r=new Z.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new Z.asn1.DERSequence({array:[n,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return pn(this.getPublicBaseKey())},o.wordwrap=function(n,a){if(a=a||64,!n)return n;var r="(.{1,"+a+`})( +|$
|
|
91
|
-
?)|(.{1,`+a+"})";return n.match(RegExp(
|
|
90
|
+
*/var Y={};(typeof Y.asn1>"u"||!Y.asn1)&&(Y.asn1={}),Y.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var o=e.toString(16);return o.length%2==1&&(o="0"+o),o},this.bigIntToMinTwosComplementsHex=function(e){var o=e.toString(16);if(o.substr(0,1)!="-")o.length%2==1?o="0"+o:o.match(/^[0-7]/)||(o="00"+o);else{var n=o.substr(1),a=n.length;a%2==1?a+=1:o.match(/^[0-7]/)||(a+=2);for(var i="",r=0;r<a;r++)i+="f";var s=new he(i,16),l=s.xor(e).add(he.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=Y,n=o.asn1,a=n.DERBoolean,i=n.DERInteger,r=n.DERBitString,s=n.DEROctetString,l=n.DERNull,d=n.DERObjectIdentifier,c=n.DEREnumerated,u=n.DERUTF8String,y=n.DERNumericString,f=n.DERPrintableString,x=n.DERTeletexString,m=n.DERIA5String,h=n.DERUTCTime,g=n.DERGeneralizedTime,C=n.DERSequence,p=n.DERSet,v=n.DERTaggedObject,b=n.ASN1Util.newObject,w=Object.keys(e);if(w.length!=1)throw"key of param shall be only one.";var A=w[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+A+":")==-1)throw"undefined key: "+A;if(A=="bool")return new a(e[A]);if(A=="int")return new i(e[A]);if(A=="bitstr")return new r(e[A]);if(A=="octstr")return new s(e[A]);if(A=="null")return new l(e[A]);if(A=="oid")return new d(e[A]);if(A=="enum")return new c(e[A]);if(A=="utf8str")return new u(e[A]);if(A=="numstr")return new y(e[A]);if(A=="prnstr")return new f(e[A]);if(A=="telstr")return new x(e[A]);if(A=="ia5str")return new m(e[A]);if(A=="utctime")return new h(e[A]);if(A=="gentime")return new g(e[A]);if(A=="seq"){for(var T=e[A],D=[],O=0;O<T.length;O++){var I=b(T[O]);D.push(I)}return new C({array:D})}if(A=="set"){for(var T=e[A],D=[],O=0;O<T.length;O++){var I=b(T[O]);D.push(I)}return new p({array:D})}if(A=="tag"){var _=e[A];if(Object.prototype.toString.call(_)==="[object Array]"&&_.length==3){var L=b(_[2]);return new v({tag:_[0],explicit:_[1],obj:L})}else{var k={};if(_.explicit!==void 0&&(k.explicit=_.explicit),_.tag!==void 0&&(k.tag=_.tag),_.obj===void 0)throw"obj shall be specified for 'tag'.";return k.obj=b(_.obj),new v(k)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},Y.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",o=parseInt(e.substr(0,2),16),n=Math.floor(o/40),a=o%40,i=n+"."+a,r="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),d=("00000000"+l.toString(2)).slice(-8);if(r=r+d.substr(1,7),d.substr(0,1)=="0"){var c=new he(r,2);i=i+"."+c.toString(10),r=""}}return i},Y.asn1.ASN1Util.oidIntToHex=function(e){var o=function(l){var d=l.toString(16);return d.length==1&&(d="0"+d),d},n=function(l){var d="",c=new he(l,10),u=c.toString(2),y=7-u.length%7;y==7&&(y=0);for(var f="",x=0;x<y;x++)f+="0";u=f+u;for(var x=0;x<u.length-1;x+=7){var m=u.substr(x,7);x!=u.length-7&&(m="1"+m),d+=o(parseInt(m,2))}return d};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var a="",i=e.split("."),r=parseInt(i[0])*40+parseInt(i[1]);a+=o(r),i.splice(0,2);for(var s=0;s<i.length;s++)a+=n(i[s]);return a},Y.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var o=this.hV.length/2,n=o.toString(16);if(n.length%2==1&&(n="0"+n),o<128)return n;var a=n.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+o.toString(16);var i=128+a;return i.toString(16)+n},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},Y.asn1.DERAbstractString=function(e){Y.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(this.s)},this.setStringHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},Fe.lang.extend(Y.asn1.DERAbstractString,Y.asn1.ASN1Object),Y.asn1.DERAbstractTime=function(e){Y.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(o){utc=o.getTime()+o.getTimezoneOffset()*6e4;var n=new Date(utc);return n},this.formatDate=function(o,n,a){var i=this.zeroPadding,r=this.localDateToUTC(o),s=String(r.getFullYear());n=="utc"&&(s=s.substr(2,2));var l=i(String(r.getMonth()+1),2),d=i(String(r.getDate()),2),c=i(String(r.getHours()),2),u=i(String(r.getMinutes()),2),y=i(String(r.getSeconds()),2),f=s+l+d+c+u+y;if(a===!0){var x=r.getMilliseconds();if(x!=0){var m=i(String(x),3);m=m.replace(/[0]+$/,""),f=f+"."+m}}return f+"Z"},this.zeroPadding=function(o,n){return o.length>=n?o:new Array(n-o.length+1).join("0")+o},this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(o)},this.setByDateValue=function(o,n,a,i,r,s){var l=new Date(Date.UTC(o,n-1,a,i,r,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},Fe.lang.extend(Y.asn1.DERAbstractTime,Y.asn1.ASN1Object),Y.asn1.DERAbstractStructured=function(e){Y.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array=o},this.appendASN1Object=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array.push(o)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},Fe.lang.extend(Y.asn1.DERAbstractStructured,Y.asn1.ASN1Object),Y.asn1.DERBoolean=function(){Y.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Fe.lang.extend(Y.asn1.DERBoolean,Y.asn1.ASN1Object),Y.asn1.DERInteger=function(e){Y.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=Y.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new he(String(o),10);this.setByBigInteger(n)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Fe.lang.extend(Y.asn1.DERInteger,Y.asn1.ASN1Object),Y.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=Y.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}Y.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(n){this.hTLV=null,this.isModified=!0,this.hV=n},this.setUnusedBitsAndHexValue=function(n,a){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var i="0"+n;this.hTLV=null,this.isModified=!0,this.hV=i+a},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var a=8-n.length%8;a==8&&(a=0);for(var i=0;i<=a;i++)n+="0";for(var r="",i=0;i<n.length-1;i+=8){var s=n.substr(i,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),r+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+a+r},this.setByBooleanArray=function(n){for(var a="",i=0;i<n.length;i++)n[i]==!0?a+="1":a+="0";this.setByBinaryString(a)},this.newFalseArray=function(n){for(var a=new Array(n),i=0;i<n;i++)a[i]=!1;return a},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},Fe.lang.extend(Y.asn1.DERBitString,Y.asn1.ASN1Object),Y.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=Y.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}Y.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Fe.lang.extend(Y.asn1.DEROctetString,Y.asn1.DERAbstractString),Y.asn1.DERNull=function(){Y.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Fe.lang.extend(Y.asn1.DERNull,Y.asn1.ASN1Object),Y.asn1.DERObjectIdentifier=function(e){var o=function(a){var i=a.toString(16);return i.length==1&&(i="0"+i),i},n=function(a){var i="",r=new he(a,10),s=r.toString(2),l=7-s.length%7;l==7&&(l=0);for(var d="",c=0;c<l;c++)d+="0";s=d+s;for(var c=0;c<s.length-1;c+=7){var u=s.substr(c,7);c!=s.length-7&&(u="1"+u),i+=o(parseInt(u,2))}return i};Y.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(a){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueOidString=function(a){if(!a.match(/^[0-9.]+$/))throw"malformed oid string: "+a;var i="",r=a.split("."),s=parseInt(r[0])*40+parseInt(r[1]);i+=o(s),r.splice(0,2);for(var l=0;l<r.length;l++)i+=n(r[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(a){var i=Y.asn1.x509.OID.name2oid(a);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+a},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},Fe.lang.extend(Y.asn1.DERObjectIdentifier,Y.asn1.ASN1Object),Y.asn1.DEREnumerated=function(e){Y.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=Y.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new he(String(o),10);this.setByBigInteger(n)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Fe.lang.extend(Y.asn1.DEREnumerated,Y.asn1.ASN1Object),Y.asn1.DERUTF8String=function(e){Y.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Fe.lang.extend(Y.asn1.DERUTF8String,Y.asn1.DERAbstractString),Y.asn1.DERNumericString=function(e){Y.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Fe.lang.extend(Y.asn1.DERNumericString,Y.asn1.DERAbstractString),Y.asn1.DERPrintableString=function(e){Y.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Fe.lang.extend(Y.asn1.DERPrintableString,Y.asn1.DERAbstractString),Y.asn1.DERTeletexString=function(e){Y.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Fe.lang.extend(Y.asn1.DERTeletexString,Y.asn1.DERAbstractString),Y.asn1.DERIA5String=function(e){Y.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Fe.lang.extend(Y.asn1.DERIA5String,Y.asn1.DERAbstractString),Y.asn1.DERUTCTime=function(e){Y.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},Fe.lang.extend(Y.asn1.DERUTCTime,Y.asn1.DERAbstractTime),Y.asn1.DERGeneralizedTime=function(e){Y.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},Fe.lang.extend(Y.asn1.DERGeneralizedTime,Y.asn1.DERAbstractTime),Y.asn1.DERSequence=function(e){Y.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var o="",n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];o+=a.getEncodedHex()}return this.hV=o,this.hV}},Fe.lang.extend(Y.asn1.DERSequence,Y.asn1.DERAbstractStructured),Y.asn1.DERSet=function(e){Y.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var o=new Array,n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];o.push(a.getEncodedHex())}return this.sortFlag==!0&&o.sort(),this.hV=o.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},Fe.lang.extend(Y.asn1.DERSet,Y.asn1.DERAbstractStructured),Y.asn1.DERTaggedObject=function(e){Y.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(o,n,a){this.hT=n,this.isExplicit=o,this.asn1Object=a,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=a.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,n),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Fe.lang.extend(Y.asn1.DERTaggedObject,Y.asn1.ASN1Object);var Mc=globalThis&&globalThis.__extends||function(){var e=function(o,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,i){a.__proto__=i}||function(a,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i[r])},e(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(o,n);function a(){this.constructor=o}o.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),kr=function(e){Mc(o,e);function o(n){var a=e.call(this)||this;return n&&(typeof n=="string"?a.parseKey(n):(o.hasPrivateKeyProperty(n)||o.hasPublicKeyProperty(n))&&a.parsePropertiesFrom(n)),a}return o.prototype.parseKey=function(n){try{var a=0,i=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=r.test(n)?vc.decode(n):Do.unarmor(n),l=wc.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Ne(a,16),i=l.sub[2].getHexStringValue(),this.e=parseInt(i,16);var d=l.sub[3].getHexStringValue();this.d=Ne(d,16);var c=l.sub[4].getHexStringValue();this.p=Ne(c,16);var u=l.sub[5].getHexStringValue();this.q=Ne(u,16);var y=l.sub[6].getHexStringValue();this.dmp1=Ne(y,16);var f=l.sub[7].getHexStringValue();this.dmq1=Ne(f,16);var x=l.sub[8].getHexStringValue();this.coeff=Ne(x,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],h=m.sub[0];a=h.sub[0].getHexStringValue(),this.n=Ne(a,16),i=h.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else a=l.sub[0].getHexStringValue(),this.n=Ne(a,16),i=l.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch{return!1}},o.prototype.getPrivateBaseKey=function(){var n={array:[new Y.asn1.DERInteger({int:0}),new Y.asn1.DERInteger({bigint:this.n}),new Y.asn1.DERInteger({int:this.e}),new Y.asn1.DERInteger({bigint:this.d}),new Y.asn1.DERInteger({bigint:this.p}),new Y.asn1.DERInteger({bigint:this.q}),new Y.asn1.DERInteger({bigint:this.dmp1}),new Y.asn1.DERInteger({bigint:this.dmq1}),new Y.asn1.DERInteger({bigint:this.coeff})]},a=new Y.asn1.DERSequence(n);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return bn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var n=new Y.asn1.DERSequence({array:[new Y.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Y.asn1.DERNull]}),a=new Y.asn1.DERSequence({array:[new Y.asn1.DERInteger({bigint:this.n}),new Y.asn1.DERInteger({int:this.e})]}),i=new Y.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),r=new Y.asn1.DERSequence({array:[n,i]});return r.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return bn(this.getPublicBaseKey())},o.wordwrap=function(n,a){if(a=a||64,!n)return n;var i="(.{1,"+a+`})( +|$
|
|
91
|
+
?)|(.{1,`+a+"})";return n.match(RegExp(i,"g")).join(`
|
|
92
92
|
`)},o.prototype.getPrivateKey=function(){var n=`-----BEGIN RSA PRIVATE KEY-----
|
|
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}(
|
|
97
|
-
`),
|
|
98
|
-
`))==null?void 0:s.length)-1;let
|
|
99
|
-
`;let i=e;if(n!=null&&n.length){for(const l of n){const d=_e(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(i=i.replace(l,d))}return`${r}{text|${i}}`}else return e},_i=(e,o)=>{const{props:n,componentList:a,getGlobalModel:r}=e,{graphicConfig:i={},startValue:s,endValue:l}=n,d=Kc({graphicConfig:i,startValue:s,endValue:l,componentList:a,getGlobalModel:r}),{dimensions:c,dataset:g}=o,{classificationList:m=[]}=i,y=m.find(h=>h.show).label||"";for(const h of d)c.includes(h)||c.push(h);c.sort((h,u)=>xe(h).isBefore(xe(u))?-1:1);for(const h of g){const{data:u}=h;if(u!=null&&u.length){const b=[];for(const k of d)if(u.find(x=>x[y]!==k)){const x=Le.cloneDeep(u[0]);for(const S in x)S===y?x[S]=k:x[S]=0;b.push(x)}h.data.push(...b),h.data.sort((k,x)=>xe(k[y]).isBefore(xe(x[y]))?-1:1)}}};function Kc(e){const{startValue:o,endValue:n,componentList:a,graphicConfig:r,getGlobalModel:i}=e,s=Li(o),l=Li(n),d=[];if(s&&l){const c=a.find(m=>m.keyName===s.keyName),g=a.find(m=>m.keyName===l.keyName);if(c&&g){const m=i(c.id),f=i(g.id),{classificationList:y=[]}=r,h=y.find(u=>u.show);if(h){let u="YYYY-MM";switch(h.name){case"the_year":u="YYYY";break;case"the_month":u="MM";break;case"the_day":u="DD";break;case"the_date":u=(h==null?void 0:h.dateFormat)||u;break}const b=Zc(u);if(u){const k=t.unref(m[s.field]),x=t.unref(f[l.field]);let S=xe(k);const p=xe(x);for(d.push(p.format(u));S.isBefore(p);)d.push(S.format(u)),S=S.add(1,b)}}}}return d}function Li(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 r=a.match(/\[(.+?)\]/g);let i="";r!=null&&r.length&&(a=a.replace(r[0],""),i=r[0].slice(1,-1).trim()),o={keyName:a,field:i}}}return o}function Zc(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 sn=(e,o)=>{const n={dayjs:xe,...o};let a="";const r=[];for(const l in n)a+=`${l},`,r.push(n[l]);a=a.replace(/,$/,"");const i=`function (${a}){return ${e}}`;let s;try{s=Function(`"use strict";return (${i})`)()(...r)}catch{return e}return s},_e=(e="",{textData:o,codeData:n}={},{useNewline:a=!1,useSpace:r=!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 g=c.slice(1,-1).trim();const m=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,f=g.match(m);for(let y=0;y<f.length;y++){const h=f[y],u=s[h];u!=null&&typeof u!="function"&&(g=g.replace(h,u))}(/\(.*\)/g.test(g)||/[+/\\*]/g.test(g))&&(g=sn(g,n)),e=e.replace(c,g)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),r&&(e=e==null?void 0:e.replace(/\s{2,}?/g," ")),e},He=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:d,touchEventId:c}=t.inject(Ve,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:g}=t.inject(Ie,{getGlobalModel:h=>{}}),m=_e(n),f=async(h={})=>{if(!m||!a||!r)return;let u={};i.forEach(p=>{const{key:C,value:w}=p;if(typeof w=="object"&&w!=null&&w.id){let B={};const{id:L,prop:O,propKey:E,operate:_}=w;L==="THIS"?B=g(t.unref(c))||{}:B=g(L)||{};const I=t.unref(B[O]);let A=null;if(["date","range"].some(T=>st(B==null?void 0:B.type,T))){const{value:T,type:v,mode:D}=_||{};if(T&&v&&D)switch(v){case"add":A=t.unref(I).add(T,D);break;case"minus":A=t.unref(I).subtract(T,D);break}A==null&&(A=t.unref(I)),A=(A==null?void 0:A.format((E==null?void 0:E.trim())||B.format))||""}else Object.prototype.toString.call(I)==="[object Object]"?E?A=I[E]:A=O?I[O]:I:st(B==null?void 0:B.type,"select")&&t.unref(I)&&O&&Array.isArray(t.unref(I))?A=t.unref(I).map(T=>Object.prototype.hasOwnProperty.call(T,O)?T[O]:T):A=I;u[C]=A}else typeof w=="string"&&(u[C]=_e(w))}),u={...window.config.requestParams,...h,...u};let b="";const k=Object.keys(u),x=k.length-1,S=k.length;k.forEach((p,C)=>{let w=u[p];Object.prototype.toString.call(w)==="[object Object]"&&(w=JSON.stringify(w)),C===0?S!==1?b+=`?${p}=${w}&`:b+=`?${p}=${w}`:C===x?b+=`${p}=${w}`:b+=`${p}=${w}&`});try{const p=["get","head"].includes(a),C={};let w=p?m+b:m;u.dataSqlId&&!w.includes("dataSqlId")&&(w+=`${w.includes("?")?"&":"?"}dataSqlId=${u.dataSqlId}`),Object.prototype.hasOwnProperty.call(u,"signal")&&(C.signal=u.signal);const B=await yt({baseURL:t.unref(d)||"",url:w,method:a,headers:r,data:p?{}:u,...C});return o(B),B}catch(p){console.error(p)}},y=l&&setInterval(f,s*1e3);return t.onUnmounted(()=>{clearInterval(y)}),f},Bt=(e=[],o,n=!1)=>{let{name:a="name",types:r=[]}=o||{};a=(a==null?void 0:a.trim())||a;const i=new Set,s=new Map,l=e.length,d=r.length;if(l===1&&!n){const m=[];for(let y=0;y<d;y++){const h=r[y],{label:u,value:b}=h,k={...e[0],value:e[0][b]};i.add(u),m.push(k)}const f=e[0][a]||"";s.set(f,m)}else for(let m=0;m<l;m++){const f=e[m],y=f[a];i.add(y);for(let h=0;h<d;h++){const u=r[h],{label:b,value:k}=u,x={...f,value:f[k]||0};if(s.has(b)){const S=s.get(b);S.push(x),s.set(b,S)}else s.set(b,[x])}}const c=Array.from(i),g=[];for(const[m,f]of s)g.push({name:m,data:f});return{dimensions:c,dataset:g}},ht=(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},Oi=(e,o)=>{const n=`${Tr}/preview?pageId=${o}`,a=`${Tr}/${o}`;return e==="preview"?n:a},dt=(e,o)=>{var r;if(e==null)return o;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return o;const a=n.length;for(let i=0;i<a;i++){const s=n[i];if(s==null||s==="")break;let l=(r=s.slice(1,-1))==null?void 0:r.trim();l=l==null?void 0:l.replace(/value/g,o);try{let d=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(d=sn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},Ke=(e={})=>{const{requestToken:o}=t.inject(Cr,{requestToken:()=>{}}),{setLoadedData:n}=t.inject(wt,{setLoadedData:(h,u)=>{}}),{getGlobalModel:a}=t.inject(Ie,{getGlobalModel:h=>{}});e.dataType==="indicator"&&o();const r=h=>{const{around:u,unit:b,id:k}=h;let x="";const{pageMode:S="",componentList:p=[]}=(e==null?void 0:e.graphicConfig)||{};let C=null,w=null;if(S==="design"){const B=p==null?void 0:p.find(R=>R.id===k);if(!B)return[];const{interval:L,intervalUnit:O,startTime:E,endTime:_,operate:I,useCurrentTime:A}=B||{};if(A&&(C=xe().subtract(L,O),w=xe()),E&&(C=xe(E)),_&&(w=xe(_)),I){const{type:R,value:T,mode:v}=I;switch(R){case"add":C=C&&C.add(T,v),w=w&&w.add(T,v);break;case"minus":C=C&&C.subtract(T,v),w=w&&w.subtract(T,v)}}}else{const B=a(k)||{};t.unref(B.startTime)&&(C=xe(t.unref(B.startTime))),t.unref(B.endTime)&&(w=xe(t.unref(B.endTime)))}if(C&&w){const B=w.diff(C,b.toLowerCase());x=`${u==="before"?"-":""}${B+1}`}return x?[x]:[]},i=(h,u)=>Object.prototype.hasOwnProperty.call(h,u),s=h=>{const{calcWays:u=[],dateCalcTypes:b=[],activeKey:k,componentId:x=""}=h;if(k===5&&(u!=null&&u.length)&&(b!=null&&b.length)&&x){const S=u[0].split("-");(S==null?void 0:S.length)>1&&S[0]==="rangeValue"&&(h.calcWays=r({around:S[1],unit:b[0],id:x})),delete h.radioValue}i(h,"dataType")&&(h.fieldType==="DATE"&&(h.label=h.fieldName),h.dataType==="component"&&(h.fieldValue="${"+h.fieldValue+"}"),delete h.dataType),i(h,"activeKey")&&delete h.activeKey,i(h,"radioValue")&&delete h.radioValue,i(h,"indexCode")&&(h.hrpIndexCode=h.indexCode,delete h.indexCode),i(h,"indexCodeNum")&&(h.hrpIndexCodeNum=h.indexCodeNum,delete h.indexCodeNum),h.dataType!=="component"&&h.useCurrentTime&&(h.fieldValue=xe().format(h.dateFormat)),delete h.useCurrentTime},l=h=>{const u=[];return h!=null&&h.length&&Le.cloneDeep(h).forEach(b=>{if(b.join&&b.conditions){const k=!b.conditions.some(x=>x.join&&x.conditions);b.conditions.forEach((x,S)=>{s(x);const p={};S<b.conditions.length-1&&(p.join=b.join),k?u.push({...p,...x}):x.join&&x.conditions?u.push({conditions:l([x]),join:b.join}):u.push({...p,...x})})}else s(b),u.push(b)}),u},d=(h={},u)=>{if(h!=null&&h.sortCpnts&&u){const D=y(h);D&&(u.sort=D)}const{label:b,name:k,location:x,show:S,indexCode:p,indexCodeNum:C,calcType:w="COLUMN",builtInFormula:B,builtInValueSource:L,builtInCalcWay:O,formula:E,conditions:_,aggregate:I,distinct:A,dimByCount:R}=h;let T;if(_&&(T=l(_)),w==="COMPONENT"){const D={};return m(D,L),{label:b.trim(),columnName:k,show:S,calcType:w,componentAlias:O,componentValue:D.fieldValue||null}}const v={label:b.trim(),columnName:k,location:x,show:S,calcType:w,hrpIndexCode:p,hrpIndexCodeNum:C,aggregate:I,builtInFormula:B,builtInValueSource:L,formula:E,conditions:T};if(B==="DATE_OFFSET"){const D=O.split("-");if((D==null?void 0:D.length)===3){let N=D[0];return D[2]==="before"&&D[0]!=="0"&&(N=`-${D[0]}`),{...v,calcWays:[N],dateCalcTypes:[D[1]]}}}else return k==="the_count"&&(v.calcType="AGGREGATE",v.distinct=!!A,v.typeGuid=R),{...v,builtInCalcWay:O}},c=h=>{const u=[];for(const b of h)b.conditions?u.push(...c(b.conditions)):(b==null?void 0:b.dataType)==="component"&&u.push(b);return u},g=h=>{if(!h)return[];const{controlList:u=[],classificationList:b=[],rowHeaderList:k=[],dimensionList:x=[],seriesList:S=[],leftAxisList:p=[],rightAxisList:C=[],queryColumnList:w=[],indicators:B=[]}=h,L=[...b,...k,...x,...S,...p,...C,...w,...B],O=[];for(const A of L){const R=c((A==null?void 0:A.conditions)||[]);if(R!=null&&R.length){const T=R.filter(v=>(v==null?void 0:v.dataType)==="component").map(v=>{const D={};return v!=null&&v.dateFormat&&(D.format=v.dateFormat),{conditionKey:v.fieldName,conditionLabel:v.fieldName,conditionName:v.fieldName,conditionValueType:v.fieldType,id:v.componentId,keyName:v.fieldValue,rule:v.rule,notGlobal:!0,indexCode:v.indexCode,typeGuid:v.typeGuid,indexCodeNum:v.indexCodeNum,...D}});if(T!=null&&T.length)for(const v of T)O.find(D=>D.keyName===v.keyName)||O.push(v)}}const E=u.concat(O),_=E.length,I=[];for(let A=0;A<_;A++){const R=E[A];if((R==null?void 0:R.conditionKey)==="parentCode")continue;const{id:T,keyName:v,conditionLabel:D,conditionKey:N,conditionValueType:V,prop:H,rule:F="NONE",notGlobal:z=!1,format:M,modelKey:j,indexCode:J,typeGuid:q,indexCodeNum:P,dataType:Y="component",customValue:$}=R;let Q=v||T;Q&&H&&(Q+=`-${H}`);let ie=F;ie==="NONE"&&(["startTime","endTime"].includes(H)?ie=H==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":v!=null&&v.includes("startTime")?ie=H==="GREATER_EQUAL":v!=null&&v.includes("endTime")?ie=H==="LESS_EQUAL":ie="EQUAL");const ne={rule:ie,label:D,fieldName:N,fieldValue:"",valueType:V,alias:Q,globalCondition:!z,indexCode:J,typeGuid:q,indexCodeNum:P};m(ne,T,{prop:H,dateFormat:M,modelKey:j,keyName:v}),Y===""&&(ne.fieldValue=$||""),I.push(ne)}for(let A=I.length-1;A>=0;A--){const R=I[A];R.globalCondition||I.find(v=>v.alias===R.alias&&v.globalCondition)&&I.splice(A,1)}return I};function m(h,u,b){var I,A;const k=a(u)||{},{prop:x="",dateFormat:S="",modelKey:p="",keyName:C=""}=b||{},{value:w,format:B="YYYY-MM-DD",type:L="",useCurrentTime:O,RECORD:E}=k||{},_=S||B;if(st(k.type,"date"))O?w?h.fieldValue=(I=t.unref(w))==null?void 0:I.format(_):h.fieldValue=xe().format(_):h.fieldValue=(A=t.unref(w))==null?void 0:A.format(_),h.dateFormat=_;else if(L==="ecanRangePicker"){let R=x;if(!x){const v=C&&C.split("-");v!=null&&v.length&&(R=v[v.length-1])}if(!R)return;let T=null;t.unref(k[R])&&(T=xe(t.unref(k[R]))),T&&(h.fieldValue=T==null?void 0:T.format(_)),h.dateFormat=_}else st(L,Br)?p&&E?h.fieldValue=E[p]:!p&&E?h.fieldValue=E.value:h.fieldValue=t.unref(w):h.fieldValue=t.unref(w)}const f=h=>{if(h){const u=Le.cloneDeep(h);return h.defaultCode&&(u.label=u.columnName,delete u.defaultCode),u}else return h},y=h=>{const{sortCpnts:u=[]}=h;let b,k="";for(const x of u){const S=a(x)||{},{type:p,RECORD:C}=S;if(st(p,"image")&&st(C==null?void 0:C.value,["asc","desc"])){k=C.value.toUpperCase();break}}return k&&(b={label:h.label,columnName:h.name,order:k,type:"NORMAL"}),b};return async(h={})=>{var Y,$,Q,ie,ne,le;n(e.id,!1);const{graphicConfig:u,type:b,isGroupTable:k=!1}=e;let{source:x,dataViewId:S,plugin:p="1",layer:C,chartType:w,classificationList:B=[],rowHeaderList:L=[],dimensionList:O=[],seriesList:E=[],leftAxisList:_=[],rightAxisList:I=[],queryColumnList:A=[],indicators:R=[],controlList:T=[],formFields:v={},idxLibMode:D,preview:N=!1}=u||{},V=[];(u==null?void 0:u.pageMode)==="design"?V=(u.sqlConditions??[]).map(U=>{const X=U.rule||"EQUAL",oe={};return i(U,"globalCondition")||(oe.globalCondition=!0),{...U,rule:X==="NONE"?"EQUAL":X,...oe}}):V=g(u);for(const U of V)i(U,"indexCode")&&(U.hrpIndexCode=U.indexCode,delete U.indexCode),i(U,"indexCodeNum")&&(U.hrpIndexCodeNum=U.indexCodeNum,delete U.indexCodeNum);C==null&&(st(b,["table"])||st(b,"list")&&(B==null?void 0:B.length)>1?C="1":st(b,["select","checkbox","radio"])?C="3":C="2");let H,F="";if(Array.isArray(B)&&B.length>0&&(b!=="ecanList"||(B==null?void 0:B.length)===1)){const U=B.length;for(let X=0;X<U;X++){const oe=B[X]||{},{label:ce="",name:pe="",show:Ce=!1,sort:we,customGroup:Be,conditions:Ee,dateFormat:Fe,typeGuid:Ze="",truncations:Qe=[]}=oe;if(Ce||U===1){F=Ze,H={label:ce.trim(),columnName:pe,show:Ce,sort:y(oe)||f(we)||we,customGroup:Be,conditions:l(Ee),typeGuid:Ze},Fe&&(H.dateFormat=Fe),pe==="the_date"&&!H.dateFormat&&(H.dateFormat="YYYY-MM");const Me={};if(Array.isArray(Qe)&&Qe.length>0){const Ue=Qe.length;for(let ot=0;ot<Ue;ot++){const gt=Qe[ot]||{},{rule:at="",num:je=0,name:Je=""}=gt;at&&je&&(Me.num=je,Me.rule=at,Je&&(Me.otherGroupName=Je))}}(Y=Object.keys(Me))!=null&&Y.length&&(H.truncation=Me);break}}}let z;if(Array.isArray(E)&&E.length>0){const U=E.length;for(let X=0;X<U;X++){const oe=E[X]||{},{label:ce="",name:pe="",show:Ce=!1,sort:we,customGroup:Be,conditions:Ee}=oe;if(Ce||U===1){z={label:ce.trim(),columnName:pe,show:Ce,sort:we,customGroup:Be,conditions:l(Ee)};break}}}const M=[];_==null||_.forEach(U=>{U.location="LEFT",M.push(d(U,H))}),I==null||I.forEach(U=>{U.location="RIGHT",M.push(d(U,H))}),R==null||R.forEach(U=>{U.location="LEFT",M.push(d(U,H))});const j=[];b==="ecanList"&&(B==null?void 0:B.length)>1&&(A=B),A==null||A.forEach(U=>{const{label:X,name:oe,location:ce,show:pe,indexCode:Ce,sort:we,typeGuid:Be,indexCodeNum:Ee}=U;let Fe=we;if(h.sort){const{field:Ze,order:Qe}=h.sort;let Me=M.find(Ue=>Ue.label===Ze);!Me&&X===Ze&&(Me=U),Me&&(Fe={columnName:Me.columnName,label:h.sort.field,order:Qe.toUpperCase(),type:"NORMAL"})}j.push({label:X,columnName:oe,location:ce,show:pe,sort:Fe,calcType:"COLUMN",hrpIndexCode:Ce,hrpIndexCodeNum:Ee,typeGuid:Be})});const J=[];let q=[];if(Array.isArray(L)&&L.length>0?q=L:Array.isArray(O)&&O.length>0&&(q=O),q!=null&&q.length){const U=q.length;for(let X=0;X<U;X++){const oe=q[X]||{},{label:ce="",name:pe="",show:Ce=!1,sort:we,customGroup:Be,conditions:Ee,truncations:Fe,typeGuid:Ze="",dateFormat:Qe}=oe;let Me=we;if(h.sort){const{field:gt,order:at}=h.sort;let je=M.find(Je=>Je.label===gt);!je&&oe.label===gt&&(je=oe),je&&(Me={columnName:je.columnName,label:h.sort.field,order:at.toUpperCase(),type:"NORMAL"})}const Ue={label:ce.trim(),columnName:pe,show:Ce,sort:Me,customGroup:Be,conditions:l(Ee),typeGuid:Ze};Qe&&(Ue.dateFormat=Qe),pe==="the_date"&&!Ue.dateFormat&&(Ue.dateFormat="YYYY-MM");const ot={};if(Array.isArray(Fe)&&Fe.length>0){const gt=Fe.length;for(let at=0;at<gt;at++){const je=Fe[at]||{},{rule:Je="",num:dn=0,name:Jt=""}=je;Je&&dn&&(ot.num=dn,ot.rule=Je,Jt&&(ot.otherGroupName=Jt))}}($=Object.keys(ot))!=null&&$.length&&(Ue.truncation=ot),J.push(Ue)}}if(st(b,["text","proportion","counter"])&&(w="zb"),k){if(J.length===0||M.length===0)return;w="grouptable"}else{if(C==="1"&&j.length===0)return;if(C==="2"&&M.length===0)return;if(C==="3"&&(!F||!v.labelField||!v.valueField))return;if(C==="3"&&b==="ecanDataSelect"&&M.length===0)return}O!=null&&O.length&&(C="1",w="grouptable");let P=(Q=window==null?void 0:window.config)==null?void 0:Q.pageId;if(!P){const{pathname:U}=window==null?void 0:window.location;if(U){const X=U.split("/");X!=null&&X.length&&(P=X[X.length-1])}}if((ie=Object.keys(v))!=null&&ie.length){const U=T.find(oe=>oe.conditionKey==="parentCode"),X={};if(U){const oe=a(U.id)||{};if(oe!=null&&oe.itemCodes)X.parentItemCodes=oe.itemCodes;else return}b==="ecanDataSelect"&&(X.indicatorList=M.filter(oe=>oe.show));try{return await yt.post(`${kr}/diagram/formData`,{source:x,dataViewId:S,plugin:"4",layer:C,chartType:"normalSelect",rangeIndexTypeGuid:F,type:b==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:v.labelField,valueField:v.valueField,pageId:P,sqlConditions:V,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...X},{headers:{Authentication:(ne=window==null?void 0:window.config)==null?void 0:ne.indicatorToken,operateContext:Ar}})}catch(oe){console.error(oe)}finally{}}else try{return await yt.post(`${kr}/diagram`,{source:x,dataViewId:S,plugin:p,layer:C,chartType:w,classification:H,series:z,indicatorList:M,queryColumns:k?[]:j,pageFlag:!0,pageId:P,sqlConditions:V.map(X=>{const{fieldValue:oe}=X,ce={};return oe&&Array.isArray(oe)&&(ce.fieldValue=JSON.stringify(oe)),{...X,...ce}}),idxLibMode:D,preview:N,rowHeaders:J,keyName:e.keyName},{headers:{Authentication:(le=window==null?void 0:window.config)==null?void 0:le.indicatorToken,operateContext:Ar}})}catch(U){console.error(U)}finally{}}},Qc=()=>{const o=window.location.search.slice(1).split("&"),n=o.length,a={};for(let r=0;r<n;r++){const i=o[r];if(i==null||i==="")continue;const s=i.split("=");if(Array.isArray(s)){const l=s[0];a[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},Jc=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...jn},setup(e){const{width:o,height:n}=t.inject(Ve,{width:null,height:null}),a=t.inject("setPageHeight",p=>{}),r=t.inject("isMobile",!1),i=t.computed(()=>{const p={};return r||(p.width=o.value,p.height=n.value),{...p,backgroundColor:e.backgroundColor,backgroundImage:ht(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=t.ref(0),l=t.ref(0),d=t.ref(0),c=t.ref(0),g=t.ref(!1),m=t.ref();let f;const y=()=>new Promise(p=>{t.nextTick(()=>{o.value&&n.value?(s.value=parseFloat(o.value),l.value=parseFloat(n.value)):(s.value=m.value.clientWidth,l.value=m.value.clientHeight),(!d.value||!c.value)&&(d.value=window.screen.width,c.value=window.screen.height),p()})}),h=()=>{s.value&&l.value?(m.value.style.width=`${s.value}px`,m.value.style.height=`${l.value}px`):(m.value.style.width=`${d.value}px`,m.value.style.height=`${c.value}px`)};t.watch([o,n],async()=>{await y(),h(),b(),window.addEventListener("resize",k),x(),g.value=!0},{immediate:!0});const u=t.ref({});t.provide("scaleValue",u);const b=()=>{if(r){m.value.style.width="100%",m.value.style.height="auto",a("auto");return}const p=document.body.clientWidth,C=document.body.clientHeight,w=s.value||d.value,B=l.value||c.value,L=p/w;let O=C/B;(s.value!==1920||l.value!==1080)&&(O=l.value/s.value*p/B),u.value={widthScale:L,heightScale:O},m.value&&(m.value.style.transform=`scale(${L}, ${O})`),a(O)},k=Le.debounce(async()=>{await y(),b()},100),x=()=>{const p=window.MutationObserver;f=new p(k),f.observe(m.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},S=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return t.onMounted(()=>{g.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",k),S()}),{style:i,container:m,ready:g}}}),sh="",Xc={id:"container",ref:"container"};function ed(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",Xc,[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 Ni=Se(ye(Jc,[["render",ed],["__scopeId","data-v-b496b36e"]])),No={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:""},Fo=Ae(No),td=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...Fo},setup(e,{expose:o}){Qc();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(),r=()=>{a.value.setAttribute("datav-theme",e.theme)},i=t.inject("usedComponentList",[]);t.watch(()=>e.theme,()=>{r()}),t.onMounted(()=>{r()});const s=t.computed(()=>_e(e.contextRequestUrl)),l=t.computed(()=>e.pageMode),d=t.computed(()=>e.theme),c=t.computed(()=>e.width),g=t.computed(()=>e.height),m=t.computed(()=>e.pageFontFamily),f=t.ref("");t.provide(Ve,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:f,width:c,height:g,fontFamily:m});const y=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",$=>{let Q=$;n.value||(Q=parseFloat(g.value)*$+"px"),y.value.height=Q}),t.provide("isMobile",n.value),t.provide("getContainerMap",()=>e.containerMap),t.provide("getCombinationMap",()=>e.combinationMap);const h=t.ref(),u=new Map;console.log("globalModel",u);const b=$=>u.get($),k=($,Q)=>{h.value=Q,u.set($,Q)},x=()=>{h.value=null},S=$=>{let Q=$;if(Q){const ie=$.match(/\{(.+?)\}/g);if(ie!=null&&ie.length){let ne=ie[0].slice(1,-1).trim();const le=ne.match(/\[(.+?)\]/g);let U="";le!=null&&le.length&&(ne=ne.replace(le[0],""),U=le[0].slice(1,-1).trim());const X=t.unref(i).find(oe=>oe.keyName===ne);if(X){const oe=b(X.id),{type:ce,value:pe,RECORD:Ce,recordData:we}=oe||{};st(ce,Br)?Q=Ce[U]:st(ce,"select")?Q=we[U]:Q=pe}else Q=""}}return Q},p=new Map,C=$=>p.get($),w=($,Q)=>{p.set($,Q)};t.provide(Ie,{getGlobalModel:b,setGlobalModel:k,clearInteractiveData:x,getRecordValueByKeyName:S,getRequestData:C,setRequestData:w,interactiveData:h});const B=t.ref({}),L=($,Q)=>{B.value[$]=Q};t.provide(wt,{loadedData:B,setLoadedData:L});const O=[],E=()=>{O.pop()},_=$=>{O.push($)},I=new Map,A=$=>I.get($),R=($,Q)=>{I.set($,Q)};t.provide(wr,{popUseModalIds:E,pushUseModalIds:_,getModalModel:A,setModalModel:R});const T=rs(),v=new Set,D=($,Q)=>{v.add($),T.on($,ie=>{const{eventName:ne,params:le}=ie;return typeof Q[ne]=="function"&&Q[ne](le)}),t.onBeforeUnmount(()=>{N($)})},N=$=>{v.delete($),T.off($)},V=($,Q,ie={})=>{if($==="PAGE"){const ne=O.length;let le=[];if(ne===0)le=[...v];else{const U=O[ne-1];le=[...A(U)]}le.forEach(U=>{T.emit(U,{eventName:Q,params:ie})})}else T.emit($,{eventName:Q,params:ie})};t.provide(Wn,{onEvent:D,offEvent:N,emitEvent:V});const H=t.ref(0),F=()=>{H.value=t.unref(H)+1};t.provide(Cr,{requestToken:F});const z=new Map,M=new Map,j=({requestFn:$=()=>{},sortNum:Q=0,id:ie=""})=>{if(z.has(Q)){const ne=z.get(Q);ne==null||ne.push($)}else z.set(Q,[$]);M.set(ie,$)},J=$=>new Promise((Q,ie)=>{const ne=$.map(le=>le());Promise.all(ne).then(le=>{Q(le)}).catch(le=>{ie(le)})}),q=$=>new Promise(async(Q,ie)=>{if($){if(typeof $=="string"){const ne=M.get($);if(typeof ne=="function"){const le=yt.interceptors.response.use(U=>(Q(U),U),U=>(ie(U),Promise.reject(U)));ne(),yt.interceptors.response.eject(le)}}}else{const ne=Array.from(z);ne.sort((U,X)=>X[0]-U[0]);const le=ne.length;try{e.pageMode!=="design"&&t.unref(H)>0;for(let U=0;U<le;U++){const X=ne[U][1];await J(X)}}catch(U){console.error(U)}finally{z.clear(),Q(null)}}});t.provide(qe,{setRequest:j,touchRequest:q});const P=()=>{T.emit(on)};t.provide(on,{emitRefreshPage:P});const Y=$=>{T.on(on,()=>$()),t.onMounted(()=>{T.off(on)})};return t.onBeforeUnmount(()=>{z==null||z.clear(),M==null||M.clear()}),o({touchRequest:q,getGlobalModel:b,onRefreshPage:Y}),{providerConfig:a,configStyle:y}}}),dh="";function nd(e,o,n,a,r,i){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 Fi=Se(ye(td,[["render",nd],["__scopeId","data-v-3b84e589"]])),Mo={...De,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},zo=Ae(Mo),Mi=["refreshData","click","valueChange"],Po="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+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",qo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",Vo=t.defineComponent({name:"EcanText",components:{Skeleton:Pt},props:{...zo},setup(e,{expose:o}){const n=t.ref(!1),a=Te(e),r=t.ref({}),i=t.computed(()=>e.variableFontSize||"14px"),s=t.computed(()=>"-"+t.unref(i));t.watch(()=>[e.data,e.dataType],([R,T])=>{T==="static"&&(r.value=R)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c,getRequestData:g}=t.inject(Ie,{getGlobalModel:R=>{},setGlobalModel:(R,T)=>{},getRecordValueByKeyName:R=>{},getRequestData:R=>{}}),{setLoadedData:m}=t.inject(wt,{setLoadedData:(R,T)=>{}}),f=t.computed(()=>{let R="";if(e.gradientShow){const{gradientColor:T,gradientOffset:v,gradientAngle:D,color:N}=e;R+=`background: linear-gradient(${D}, ${N}, ${T||"transparent"} ${v*100}%);-webkit-background-clip: text;color: transparent;`}return R}),y=t.computed(()=>{const R={};if(e.gradientShow){const{gradientColor:T,gradientOffset:v,gradientAngle:D,color:N}=e,V=T||"transparent";R.background=`linear-gradient(${D}, ${N}, ${V} ${v*100}%)`,R["-webkit-background-clip"]="text",R.color="transparent"}return R}),h=t.computed(()=>{var F;if(t.unref(n))return"NaN";const R=t.unref(r),T=e.increaseColor||e.color,v=e.declineColor||e.color;let D=e.text;D=D==null?void 0:D.replace(/\n|\\n/g,"<br/>"),D=D==null?void 0:D.replace(/\s(?!\{) | (?!\})\s/g," ");const N=D.match(/\{(.+?)\}/g)||[];let V="";const H=e.showEllipsis?"show-ellipsis":"";if(N==null||N.length===0){if(D&&e.format==="percentage"&&!isNaN(+D)){const z=parseFloat(D),M=z*100,j=u(M.toFixed(2));z>=0?D=`<span class="${H}" style="color: ${j||T||"#ED6643"};font-size:${t.unref(i)};display: inline-block;${t.unref(f)}">
|
|
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}(Lc),Oo,zc=typeof process<"u"?(Oo=process.env)===null||Oo===void 0?void 0:Oo.npm_package_version:void 0,Pc=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 kr(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(yr(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return bn(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,n,a){try{return bn(this.getKey().sign(o,n,a))}catch{return!1}},e.prototype.verify=function(o,n,a){try{return this.getKey().verify(o,yr(n),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new kr,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=zc,e}();const Tr=new Pc,Zt=qc();function qc(){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 Br=it.enc.Utf8.parse("ABCDEF1234123412");function Vc(e,o){o=o||Zt;const n=it.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=it.enc.Utf8.parse(e);break;case"object":a=it.enc.Utf8.parse(JSON.stringify(e));break;default:a=it.enc.Utf8.parse(e.toString())}return it.AES.encrypt(a,n,{iv:Br,mode:it.mode.CBC,padding:it.pad.ZeroPadding}).toString()}function Er(e,o){o=o||Zt;const n=it.enc.Utf8.parse(o),a=it.AES.decrypt(e,n,{iv:Br,mode:it.mode.CBC,padding:it.pad.ZeroPadding});return it.enc.Utf8.stringify(a).toString()}function Hc(e){Tr.setPublicKey(e)}function jc(e){return Tr.encrypt(e)}function Dr(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 Wc(e){const{paramType:o,data:n,params:a,method:i}=e;o==="form"?["get","delete"].includes(i)?e.params=Qt(a,"string"):e.data=Qt(n,"string"):["get","delete"].includes(i)?e.params=Qt(a,"string"):e.data=Qt(n)}function Qt(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)}&`}}Hc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const i=jc(Zt);return{c:Vc(n,Zt),p:i}}window.getEncryptParam=Qt;function Gc(e,o){var n;(n=window==null?void 0:window.config)!=null&&n.encryptFlag&&Dr(e.url)&&(e.data instanceof FormData?e.data=Uc(e.data):Wc(e))}function Uc(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=Qt(a,"json");return typeof i=="object"&&(n.append("c",i.c),n.append("p",i.p)),n}window.xhaesKey=Zt,window.xhaesDecrypt=Er;function Ir(e,o){var n;if((n=window==null?void 0:window.config)!=null&&n.encryptFlag&&Dr(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=Er(e.data.data.content,Zt);e.data=JSON.parse(a)}}const Rr=window.config.requestErrorTip,pt=is.create({timeout:1e3*180});pt.interceptors.request.use(e=>{const{requestParams:o={}}=window.config;return o!=null&&o.pltToken&&(e.headers["Plt-Token"]=o.pltToken),Gc(e),e},e=>Promise.reject(e)),pt.interceptors.response.use(e=>{var o,n,a;return Rr&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&ue.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}),Ir(e),e},e=>{if(Ir(e==null?void 0:e.response),Rr)if(e.message.includes("timeout"))ue.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&ue.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),o>=500&&ue.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const $c=e=>e.replace(/\\n/g,`
|
|
97
|
+
`),No=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Kc=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Bn=(e,o=2)=>{const n=e+"";if(n.includes("%"))return e;const a=parseFloat(n);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},Yc=(e,o=2)=>{const n=e+"",a=parseFloat(n);return isNaN(a)?e:a.toFixed(o)},_r=(e,o)=>ft(o,e),ct=(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},Jt=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),ln=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}))},dt=(e,o)=>{let n=!0;const a=ln(e);return a!=null&&a.length&&(n=a.map(i=>o[i.id]).every(i=>i)),n},sn=(e,o)=>{var s;const n=e.match(/\{(.+?)\}/g),a=((s=e.split(`
|
|
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=Le(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(r=r.replace(l,d))}return`${i}{text|${r}}`}else return e},Lr=(e,o)=>{const{props:n,componentList:a,getGlobalModel:i}=e,{graphicConfig:r={},startValue:s,endValue:l}=n,d=Zc({graphicConfig:r,startValue:s,endValue:l,componentList:a,getGlobalModel:i}),{dimensions:c,dataset:u}=o,{classificationList:y=[]}=r,x=y.find(m=>m.show).label||"";for(const m of d)c.includes(m)||c.push(m);c.sort((m,h)=>pe(m).isBefore(pe(h))?-1:1);for(const m of u){const{data:h}=m;if(h!=null&&h.length){const g=[];for(const C of d)if(h.find(p=>p[x]!==C)){const p=_e.cloneDeep(h[0]);for(const v in p)v===x?p[v]=C:p[v]=0;g.push(p)}m.data.push(...g),m.data.sort((C,p)=>pe(C[x]).isBefore(pe(p[x]))?-1:1)}}},cn=e=>{const o=[];for(const n of e)n.conditions?o.push(...cn(n.conditions)):(n==null?void 0:n.dataType)==="component"&&o.push(n);return o};function Zc(e){const{startValue:o,endValue:n,componentList:a,graphicConfig:i,getGlobalModel:r}=e,s=Or(o),l=Or(n),d=[];if(s&&l){const c=a.find(y=>y.keyName===s.keyName),u=a.find(y=>y.keyName===l.keyName);if(c&&u){const y=r(c.id),f=r(u.id),{classificationList:x=[]}=i,m=x.find(h=>h.show);if(m){let h="YYYY-MM";switch(m.name){case"the_year":h="YYYY";break;case"the_month":h="MM";break;case"the_day":h="DD";break;case"the_date":h=(m==null?void 0:m.dateFormat)||h;break}const g=Qc(h);if(h){const C=t.unref(y[s.field]),p=t.unref(f[l.field]);let v=pe(C);const b=pe(p);for(d.push(b.format(h));v.isBefore(b);)d.push(v.format(h)),v=v.add(1,g)}}}}return d}function Or(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 Qc(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 dn=(e,o)=>{const n={dayjs:pe,...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},Le=(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 u=c.slice(1,-1).trim();const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,f=u.match(y);for(let x=0;x<f.length;x++){const m=f[x],h=s[m];h!=null&&typeof h!="function"&&(u=u.replace(m,h))}(/\(.*\)/g.test(u)||/[+/\\*]/g.test(u))&&(u=dn(u,n)),e=e.replace(c,u)}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},qe=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:i,requestParams:r,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:d,touchEventId:c}=t.inject(Pe,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:u}=t.inject(Ie,{getGlobalModel:m=>{}}),y=Le(n),f=async(m={})=>{if(!y||!a||!i)return;let h={};r.forEach(b=>{const{key:w,value:A}=b;if(typeof A=="object"&&A!=null&&A.id){let T={};const{id:D,prop:O,propKey:I,operate:_}=A;D==="THIS"?T=u(t.unref(c))||{}:T=u(D)||{};const L=t.unref(T[O]);let k=null;if(["date","range"].some(B=>ct(T==null?void 0:T.type,B))){const{value:B,type:S,mode:E}=_||{};if(B&&S&&E)switch(S){case"add":k=t.unref(L).add(B,E);break;case"minus":k=t.unref(L).subtract(B,E);break}k==null&&(k=t.unref(L)),k=(k==null?void 0:k.format((I==null?void 0:I.trim())||T.format))||""}else Object.prototype.toString.call(L)==="[object Object]"?I?k=L[I]:k=O?L[O]:L:ct(T==null?void 0:T.type,"select")&&t.unref(L)&&O&&Array.isArray(t.unref(L))?k=t.unref(L).map(B=>Object.prototype.hasOwnProperty.call(B,O)?B[O]:B):k=L;h[w]=k}else typeof A=="string"&&(h[w]=Le(A))}),h={...window.config.requestParams,...m,...h};let g="";const C=Object.keys(h),p=C.length-1,v=C.length;C.forEach((b,w)=>{let A=h[b];Object.prototype.toString.call(A)==="[object Object]"&&(A=JSON.stringify(A)),w===0?v!==1?g+=`?${b}=${A}&`:g+=`?${b}=${A}`:w===p?g+=`${b}=${A}`:g+=`${b}=${A}&`});try{const b=["get","head"].includes(a),w={};let A=b?y+g:y;h.dataSqlId&&!A.includes("dataSqlId")&&(A+=`${A.includes("?")?"&":"?"}dataSqlId=${h.dataSqlId}`),Object.prototype.hasOwnProperty.call(h,"signal")&&(w.signal=h.signal);const T=await pt({baseURL:t.unref(d)||"",url:A,method:a,headers:i,data:b?{}:h,...w});return o(T),T}catch(b){console.error(b)}},x=l&&setInterval(f,s*1e3);return t.onUnmounted(()=>{clearInterval(x)}),f},Dt=(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 y=[];for(let x=0;x<d;x++){const m=i[x],{label:h,value:g}=m,C={...e[0],value:e[0][g]};r.add(h),y.push(C)}const f=e[0][a]||"";s.set(f,y)}else for(let y=0;y<l;y++){const f=e[y],x=f[a];r.add(x);for(let m=0;m<d;m++){const h=i[m],{label:g,value:C}=h,p={...f,value:f[C]||0};if(s.has(g)){const v=s.get(g);v.push(p),s.set(g,v)}else s.set(g,[p])}}const c=Array.from(r),u=[];for(const[y,f]of s)u.push({name:y,data:f});return{dimensions:c,dataset:u}},mt=(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},Nr=(e,o)=>{const n=`${Bi}/preview?pageId=${o}`,a=`${Bi}/${o}`;return e==="preview"?n:a},ft=(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=dn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},Ze=(e={})=>{const{requestToken:o}=t.inject(wi,{requestToken:()=>{}}),{setLoadedData:n}=t.inject(kt,{setLoadedData:(g,C)=>{}}),{getGlobalModel:a}=t.inject(Ie,{getGlobalModel:g=>{}});e.dataType==="indicator"&&o();const i=g=>{const{around:C,unit:p,id:v}=g;let b="";const{pageMode:w="",componentList:A=[]}=(e==null?void 0:e.graphicConfig)||{};let T=null,D=null;if(w==="design"){const O=A==null?void 0:A.find(S=>S.id===v);if(!O)return[];const{interval:I,intervalUnit:_,startTime:L,endTime:k,operate:R,useCurrentTime:B}=O||{};if(B&&(T=pe().subtract(I,_),D=pe()),L&&(T=pe(L)),k&&(D=pe(k)),R){const{type:S,value:E,mode:N}=R;switch(S){case"add":T=T&&T.add(E,N),D=D&&D.add(E,N);break;case"minus":T=T&&T.subtract(E,N),D=D&&D.subtract(E,N)}}}else{const O=a(v)||{};t.unref(O.startTime)&&(T=pe(t.unref(O.startTime))),t.unref(O.endTime)&&(D=pe(t.unref(O.endTime)))}if(T&&D){const O=D.diff(T,p.toLowerCase());b=`${C==="before"?"-":""}${O+1}`}return b?[b]:[]},r=(g,C)=>Object.prototype.hasOwnProperty.call(g,C),s=(g,C)=>{if(C)r(g,"indexCode")&&(g.hrpIndexCode=g.indexCode,delete g.indexCode),r(g,"indexCodeNum")&&(g.hrpIndexCodeNum=g.indexCodeNum,delete g.indexCodeNum),r(g,"dataType")&&delete g.dataType;else{const{calcWays:p=[],dateCalcTypes:v=[],activeKey:b,componentId:w=""}=g;if(b===5&&(p!=null&&p.length)&&(v!=null&&v.length)&&w){const A=p[0].split("-");(A==null?void 0:A.length)>1&&A[0]==="rangeValue"&&(g.calcWays=i({around:A[1],unit:v[0],id:w})),delete g.radioValue}r(g,"dataType")&&(g.fieldType==="DATE"&&(g.label=g.fieldName),g.dataType==="component"&&(g.fieldValue="${"+g.fieldValue+"}"),delete g.dataType),r(g,"activeKey")&&delete g.activeKey,r(g,"radioValue")&&delete g.radioValue,r(g,"indexCode")&&(g.hrpIndexCode=g.indexCode,delete g.indexCode),r(g,"indexCodeNum")&&(g.hrpIndexCodeNum=g.indexCodeNum,delete g.indexCodeNum),g.dataType!=="component"&&g.useCurrentTime&&(g.fieldValue=pe().format(g.dateFormat)),delete g.useCurrentTime}},l=(g,C)=>{const p=[];return g!=null&&g.length&&_e.cloneDeep(g).forEach(v=>{if(v.join&&v.conditions){const b=!v.conditions.some(w=>w.join&&w.conditions);v.conditions.forEach((w,A)=>{s(w,C);const T={};if(A<v.conditions.length-1&&(T.join=v.join),b)p.push({...T,...w});else if(w.join&&w.conditions){const D=C?"sqlConditions":"conditions";p.push({[D]:l([w],C),...T})}else p.push({...T,...w})})}else s(v,C),p.push(v)}),p},d=(g={},C)=>{if(g!=null&&g.sortCpnts&&C){const z=h(g);z&&(C.sort=z)}const{label:p,name:v,location:b,show:w,indexCode:A,indexCodeNum:T,calcType:D="COLUMN",builtInFormula:O,builtInValueSource:I,builtInCalcWay:_,formula:L,conditions:k,aggregate:R,distinct:B,dimByCount:S}=g;let E;if(k&&(E=l(k)),D==="COMPONENT"){const z={};return x(z,I),{label:p.trim(),columnName:v,show:w,calcType:D,componentAlias:_,componentValue:z.fieldValue||null}}const N={label:p.trim(),columnName:v,location:b,show:w,calcType:D,hrpIndexCode:A,hrpIndexCodeNum:T,aggregate:R,builtInFormula:O,builtInValueSource:I,formula:L,conditions:E};if(O==="DATE_OFFSET"){const z=_.split("-");if((z==null?void 0:z.length)===3){let j=z[0];return z[2]==="before"&&z[0]!=="0"&&(j=`-${z[0]}`),{...N,calcWays:[j],dateCalcTypes:[z[1]]}}}else return v==="the_count"&&(N.calcType="AGGREGATE",N.distinct=!!B,N.typeGuid=S),{...N,builtInCalcWay:_}},c=g=>{if(!g)return[];const C=_e.cloneDeep((g==null?void 0:g.controlList)||[]),{classificationList:p=[],rowHeaderList:v=[],dimensionList:b=[],seriesList:w=[],leftAxisList:A=[],rightAxisList:T=[],queryColumnList:D=[],indicators:O=[]}=g;f(C);const I=[...p,...v,...b,...w,...A,...T,...D,...O],_=[];for(const R of I){const B=cn((R==null?void 0:R.conditions)||[]);if(B!=null&&B.length){const S=B.filter(E=>(E==null?void 0:E.dataType)==="component").map(E=>{const N={};return E!=null&&E.dateFormat&&(N.format=E.dateFormat),{conditionKey:E.fieldName,conditionLabel:E.fieldName,conditionName:E.fieldName,conditionValueType:E.fieldType,id:E.componentId,keyName:E.fieldValue,rule:E.rule,notGlobal:!0,indexCode:E.indexCode,typeGuid:E.typeGuid,indexCodeNum:E.indexCodeNum,...N}});if(S!=null&&S.length)for(const E of S)_.find(N=>N.keyName===E.keyName)||_.push(E)}}const L=_.length,k=C;for(let R=0;R<L;R++){const B=_[R];if((B==null?void 0:B.conditionKey)==="parentCode")continue;const{id:S,keyName:E,prop:N,format:z,modelKey:j,dataType:F="component",customValue:M}=B,P=u(B);x(P,S,{prop:N,dateFormat:z,modelKey:j,keyName:E}),F===""&&(P.fieldValue=M||""),k.push(P)}for(let R=k.length-1;R>=0;R--){const B=k[R];B.globalCondition||cn(k).find(E=>E.alias===B.alias&&E.globalCondition)&&k.splice(R,1)}return k};function u(g){const{id:C,keyName:p,conditionLabel:v,conditionKey:b,conditionValueType:w,prop:A,rule:T="NONE",notGlobal:D=!1,indexCode:O,typeGuid:I,indexCodeNum:_,dataType:L="component"}=g;let k=p||C;k&&A&&(k+=`-${A}`);let R=T;return R==="NONE"&&(["startTime","endTime"].includes(A)?R=A==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":p!=null&&p.includes("startTime")?R=A==="GREATER_EQUAL":p!=null&&p.includes("endTime")?R=A==="LESS_EQUAL":R="EQUAL"),{rule:R,label:v,fieldName:b,fieldValue:"",valueType:w,alias:k,globalCondition:!D,indexCode:O,typeGuid:I,indexCodeNum:_,dataType:L}}const y=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function f(g){if(g!=null&&g.length)for(const C of g)if(C!=null&&C.conditions)f(C.conditions);else{const{id:p,keyName:v,prop:b,modelKey:w,format:A,dataType:T="component",customValue:D}=C,O=u(C);x(O,p,{prop:b,dateFormat:A,modelKey:w,keyName:v}),T===""&&(O.fieldValue=D||"");for(const I in O)C[I]=O[I];for(const I of y)delete C[I]}}function x(g,C,p){var R,B;const v=a(C)||{},{prop:b="",dateFormat:w="",modelKey:A="",keyName:T=""}=p||{},{value:D,format:O="YYYY-MM-DD",type:I="",useCurrentTime:_,RECORD:L}=v||{},k=w||O;if(ct(v.type,"date"))_?D?g.fieldValue=(R=t.unref(D))==null?void 0:R.format(k):g.fieldValue=pe().format(k):g.fieldValue=(B=t.unref(D))==null?void 0:B.format(k),g.dateFormat=k;else if(I==="ecanRangePicker"){let S=b;if(!b){const N=T&&T.split("-");N!=null&&N.length&&(S=N[N.length-1])}if(!S)return;let E=null;t.unref(v[S])&&(E=pe(t.unref(v[S]))),E&&(g.fieldValue=E==null?void 0:E.format(k)),g.dateFormat=k}else ct(I,Ei)?A&&L?g.fieldValue=L[A]:!A&&L?g.fieldValue=L.value:g.fieldValue=t.unref(D):g.fieldValue=t.unref(D)}const m=g=>{if(g){const C=_e.cloneDeep(g);return g.defaultCode&&(C.label=C.columnName,delete C.defaultCode),C}else return g},h=g=>{const{sortCpnts:C=[]}=g;let p,v="";for(const b of C){const w=a(b)||{},{type:A,RECORD:T}=w;if(ct(A,"image")&&ct(T==null?void 0:T.value,["asc","desc"])){v=T.value.toUpperCase();break}}return v&&(p={label:g.label,columnName:g.name,order:v,type:"NORMAL"}),p};return async(g={})=>{var J,de,ne,le,Q,ae;n(e.id,!1);const{graphicConfig:C,type:p,isGroupTable:v=!1}=e;let{source:b,dataViewId:w,plugin:A="1",layer:T,chartType:D,classificationList:O=[],rowHeaderList:I=[],dimensionList:_=[],seriesList:L=[],leftAxisList:k=[],rightAxisList:R=[],queryColumnList:B=[],indicators:S=[],controlList:E=[],formFields:N={},idxLibMode:z,preview:j=!1}=C||{},F=[];if((C==null?void 0:C.pageMode)==="design"?F=(C.sqlConditions??[]).map(ee=>{const oe={};if(!r(ee,"globalCondition")&&!ee.join&&(oe.globalCondition=!0),!ee.join){const se=ee.rule||"EQUAL";oe.rule=se==="NONE"?"EQUAL":se}return{...ee,...oe}}):F=c(C),F!=null&&F.length){const ee=F.filter(se=>se.globalCondition),oe=F.filter(se=>!se.globalCondition);(ee==null?void 0:ee.length)>1&&(F=[{join:"&&",conditions:ee},...oe])}F!=null&&F.length&&(F=l(F,"1")),T==null&&(ct(p,["table"])||ct(p,"list")&&(O==null?void 0:O.length)>1?T="1":ct(p,["select","checkbox","radio"])?T="3":T="2");let M,P="";if(Array.isArray(O)&&O.length>0&&(p!=="ecanList"||(O==null?void 0:O.length)===1)){const ee=O.length;for(let oe=0;oe<ee;oe++){const se=O[oe]||{},{label:ve="",name:we="",show:ke=!1,sort:Te,customGroup:Ve,conditions:Xe,dateFormat:Qe,typeGuid:Ue="",truncations:We=[]}=se;if(ke||ee===1){P=Ue,M={label:ve.trim(),columnName:we,show:ke,sort:h(se)||m(Te)||Te,customGroup:Ve,conditions:l(Xe),typeGuid:Ue},Qe&&(M.dateFormat=Qe),we==="the_date"&&!M.dateFormat&&(M.dateFormat="YYYY-MM");const Ge={};if(Array.isArray(We)&&We.length>0){const et=We.length;for(let tt=0;tt<et;tt++){const $e=We[tt]||{},{rule:Je="",num:ut=0,name:yt=""}=$e;Je&&ut&&(Ge.num=ut,Ge.rule=Je,yt&&(Ge.otherGroupName=yt))}}(J=Object.keys(Ge))!=null&&J.length&&(M.truncation=Ge);break}}}let H;if(Array.isArray(L)&&L.length>0){const ee=L.length;for(let oe=0;oe<ee;oe++){const se=L[oe]||{},{label:ve="",name:we="",show:ke=!1,sort:Te,customGroup:Ve,conditions:Xe}=se;if(ke||ee===1){H={label:ve.trim(),columnName:we,show:ke,sort:Te,customGroup:Ve,conditions:l(Xe)};break}}}const Z=[];k==null||k.forEach(ee=>{ee.location="LEFT",Z.push(d(ee,M))}),R==null||R.forEach(ee=>{ee.location="RIGHT",Z.push(d(ee,M))}),S==null||S.forEach(ee=>{ee.location="LEFT",Z.push(d(ee,M))});const V=[];p==="ecanList"&&(O==null?void 0:O.length)>1&&(B=O),B==null||B.forEach(ee=>{const{label:oe,name:se,location:ve,show:we,indexCode:ke,sort:Te,typeGuid:Ve,indexCodeNum:Xe}=ee;let Qe=Te;if(g.sort){const{field:Ue,order:We}=g.sort;let Ge=Z.find(et=>et.label===Ue);!Ge&&oe===Ue&&(Ge=ee),Ge&&(Qe={columnName:Ge.columnName,label:g.sort.field,order:We.toUpperCase(),type:"NORMAL"})}V.push({label:oe,columnName:se,location:ve,show:we,sort:Qe,calcType:"COLUMN",hrpIndexCode:ke,hrpIndexCodeNum:Xe,typeGuid:Ve})});const q=[];let U=[];if(Array.isArray(I)&&I.length>0?U=I:Array.isArray(_)&&_.length>0&&(U=_),U!=null&&U.length){const ee=U.length;for(let oe=0;oe<ee;oe++){const se=U[oe]||{},{label:ve="",name:we="",show:ke=!1,sort:Te,customGroup:Ve,conditions:Xe,truncations:Qe,typeGuid:Ue="",dateFormat:We}=se;let Ge=Te;if(g.sort){const{field:$e,order:Je}=g.sort;let ut=Z.find(yt=>yt.label===$e);!ut&&se.label===$e&&(ut=se),ut&&(Ge={columnName:ut.columnName,label:g.sort.field,order:Je.toUpperCase(),type:"NORMAL"})}const et={label:ve.trim(),columnName:we,show:ke,sort:Ge,customGroup:Ve,conditions:l(Xe),typeGuid:Ue};We&&(et.dateFormat=We),we==="the_date"&&!et.dateFormat&&(et.dateFormat="YYYY-MM");const tt={};if(Array.isArray(Qe)&&Qe.length>0){const $e=Qe.length;for(let Je=0;Je<$e;Je++){const ut=Qe[Je]||{},{rule:yt="",num:W=0,name:K=""}=ut;yt&&W&&(tt.num=W,tt.rule=yt,K&&(tt.otherGroupName=K))}}(de=Object.keys(tt))!=null&&de.length&&(et.truncation=tt),q.push(et)}}if(ct(p,["text","proportion","counter"])&&(D="zb"),v){if(q.length===0||Z.length===0)return;D="grouptable"}else{if(T==="1"&&V.length===0)return;if(T==="2"&&Z.length===0)return;if(T==="3"&&(!P||!N.labelField||!N.valueField))return;if(T==="3"&&p==="ecanDataSelect"&&Z.length===0)return}_!=null&&_.length&&(T="1",D="grouptable");let $=(ne=window==null?void 0:window.config)==null?void 0:ne.pageId;if(!$){const{pathname:ee}=window==null?void 0:window.location;if(ee){const oe=ee.split("/");oe!=null&&oe.length&&($=oe[oe.length-1])}}if((le=Object.keys(N))!=null&&le.length){const ee=cn(E).find(se=>se.conditionKey==="parentCode"),oe={};if(ee){const se=a(ee.id)||{};if(se!=null&&se.itemCodes)oe.parentItemCodes=se.itemCodes;else return}p==="ecanDataSelect"&&(oe.indicatorList=Z.filter(se=>se.show));try{return await pt.post(`${Ti}/diagram/formData`,{source:b,dataViewId:w,plugin:"4",layer:T,chartType:"normalSelect",rangeIndexTypeGuid:P,type:p==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:N.labelField,valueField:N.valueField,pageId:$,sqlConditions:F,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...oe},{headers:{Authentication:(Q=window==null?void 0:window.config)==null?void 0:Q.indicatorToken,operateContext:ki}})}catch(se){console.error(se)}finally{}}else try{return await pt.post(`${Ti}/diagram`,{source:b,dataViewId:w,plugin:A,layer:T,chartType:D,classification:M,series:H,indicatorList:Z,queryColumns:v?[]:V,pageFlag:!0,pageId:$,sqlConditions:F.map(oe=>{const{fieldValue:se}=oe,ve={};return se&&Array.isArray(se)&&(ve.fieldValue=JSON.stringify(se)),{...oe,...ve}}),idxLibMode:z,preview:j,rowHeaders:q,keyName:e.keyName},{headers:{Authentication:(ae=window==null?void 0:window.config)==null?void 0:ae.indicatorToken,operateContext:ki}})}catch(ee){console.error(ee)}finally{}}},Jc=()=>{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];a[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},Xc=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Wn},setup(e){const{width:o,height:n}=t.inject(Pe,{width:null,height:null}),a=t.inject("setPageHeight",b=>{}),i=t.inject("isMobile",!1),r=t.computed(()=>{const b={};return i||(b.width=o.value,b.height=n.value),{...b,backgroundColor:e.backgroundColor,backgroundImage:mt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=t.ref(0),l=t.ref(0),d=t.ref(0),c=t.ref(0),u=t.ref(!1),y=t.ref();let f;const x=()=>new Promise(b=>{t.nextTick(()=>{o.value&&n.value?(s.value=parseFloat(o.value),l.value=parseFloat(n.value)):(s.value=y.value.clientWidth,l.value=y.value.clientHeight),(!d.value||!c.value)&&(d.value=window.screen.width,c.value=window.screen.height),b()})}),m=()=>{s.value&&l.value?(y.value.style.width=`${s.value}px`,y.value.style.height=`${l.value}px`):(y.value.style.width=`${d.value}px`,y.value.style.height=`${c.value}px`)};t.watch([o,n],async()=>{await x(),m(),g(),window.addEventListener("resize",C),p(),u.value=!0},{immediate:!0});const h=t.ref({});t.provide("scaleValue",h);const g=()=>{if(i){y.value.style.width="100%",y.value.style.height="auto",a("auto");return}const b=document.body.clientWidth,w=document.body.clientHeight,A=s.value||d.value,T=l.value||c.value,D=b/A;let O=w/T;(s.value!==1920||l.value!==1080)&&(O=l.value/s.value*b/T),h.value={widthScale:D,heightScale:O},y.value&&(y.value.style.transform=`scale(${D}, ${O})`),a(O)},C=_e.debounce(async()=>{await x(),g()},100),p=()=>{const b=window.MutationObserver;f=new b(C),f.observe(y.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},v=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return t.onMounted(()=>{u.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",C),v()}),{style:r,container:y,ready:u}}}),ch="",ed={id:"container",ref:"container"};function td(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",ed,[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 Fr=Ce(xe(Xc,[["render",td],["__scopeId","data-v-b496b36e"]])),Fo={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:""},Mo=Ae(Fo),nd=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...Mo},setup(e,{expose:o}){Jc();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",[]);t.watch(()=>e.theme,()=>{i()}),t.onMounted(()=>{i()});const s=t.computed(()=>Le(e.contextRequestUrl)),l=t.computed(()=>e.pageMode),d=t.computed(()=>e.theme),c=t.computed(()=>e.width),u=t.computed(()=>e.height),y=t.computed(()=>e.pageFontFamily),f=t.ref("");t.provide(Pe,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:f,width:c,height:u,fontFamily:y});const x=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",$=>{let J=$;n.value||(J=parseFloat(u.value)*$+"px"),x.value.height=J}),t.provide("isMobile",n.value),t.provide("getContainerMap",()=>e.containerMap),t.provide("getCombinationMap",()=>e.combinationMap);const m=t.ref(),h=new Map;console.log("globalModel",h);const g=$=>h.get($),C=($,J)=>{m.value=J,h.set($,J)},p=()=>{m.value=null},v=$=>{let J=$;if(J){const de=$.match(/\{(.+?)\}/g);if(de!=null&&de.length){let ne=de[0].slice(1,-1).trim();const le=ne.match(/\[(.+?)\]/g);let Q="";le!=null&&le.length&&(ne=ne.replace(le[0],""),Q=le[0].slice(1,-1).trim());const ae=t.unref(r).find(ee=>ee.keyName===ne);if(ae){const ee=g(ae.id),{type:oe,value:se,RECORD:ve,recordData:we}=ee||{};ct(oe,Ei)?J=ve[Q]:ct(oe,"select")?J=we[Q]:J=se}else J=""}}return J},b=new Map,w=$=>b.get($),A=($,J)=>{b.set($,J)};t.provide(Ie,{getGlobalModel:g,setGlobalModel:C,clearInteractiveData:p,getRecordValueByKeyName:v,getRequestData:w,setRequestData:A,interactiveData:m});const T=t.ref({}),D=($,J)=>{T.value[$]=J};t.provide(kt,{loadedData:T,setLoadedData:D});const O=[],I=()=>{O.pop()},_=$=>{O.push($)},L=new Map,k=$=>L.get($),R=($,J)=>{L.set($,J)};t.provide(Ai,{popUseModalIds:I,pushUseModalIds:_,getModalModel:k,setModalModel:R});const B=rs(),S=new Set,E=($,J)=>{S.add($),B.on($,de=>{const{eventName:ne,params:le}=de;return typeof J[ne]=="function"&&J[ne](le)}),t.onBeforeUnmount(()=>{N($)})},N=$=>{S.delete($),B.off($)},z=($,J,de={})=>{if($==="PAGE"){const ne=O.length;let le=[];if(ne===0)le=[...S];else{const Q=O[ne-1];le=[...k(Q)]}le.forEach(Q=>{B.emit(Q,{eventName:J,params:de})})}else B.emit($,{eventName:J,params:de})};t.provide(Gn,{onEvent:E,offEvent:N,emitEvent:z});const j=t.ref(0),F=()=>{j.value=t.unref(j)+1};t.provide(wi,{requestToken:F});const M=new Map,P=new Map,H=({requestFn:$=()=>{},sortNum:J=0,id:de=""})=>{if(M.has(J)){const ne=M.get(J);ne==null||ne.push($)}else M.set(J,[$]);P.set(de,$)},Z=$=>new Promise((J,de)=>{const ne=$.map(le=>le());Promise.all(ne).then(le=>{J(le)}).catch(le=>{de(le)})}),V=$=>new Promise(async(J,de)=>{if($){if(typeof $=="string"){const ne=P.get($);if(typeof ne=="function"){const le=pt.interceptors.response.use(Q=>(J(Q),Q),Q=>(de(Q),Promise.reject(Q)));ne(),pt.interceptors.response.eject(le)}}}else{const ne=Array.from(M);ne.sort((Q,ae)=>ae[0]-Q[0]);const le=ne.length;try{e.pageMode!=="design"&&t.unref(j)>0;for(let Q=0;Q<le;Q++){const ae=ne[Q][1];await Z(ae)}}catch(Q){console.error(Q)}finally{M.clear(),J(null)}}});t.provide(ze,{setRequest:H,touchRequest:V});const q=()=>{B.emit(an)};t.provide(an,{emitRefreshPage:q});const U=$=>{B.on(an,()=>$()),t.onMounted(()=>{B.off(an)})};return t.onBeforeUnmount(()=>{M==null||M.clear(),P==null||P.clear()}),o({touchRequest:V,getGlobalModel:g,onRefreshPage:U}),{providerConfig:a,configStyle:x}}}),fh="";function od(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 Mr=Ce(xe(nd,[["render",od],["__scopeId","data-v-3b84e589"]])),zo={...De,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},Po=Ae(zo),zr=["refreshData","click","valueChange"],qo="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+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",Vo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",Ho=t.defineComponent({name:"EcanText",components:{Skeleton:Vt},props:{...Po},setup(e,{expose:o}){const n=t.ref(!1),a=Ee(e),i=t.ref({}),r=t.computed(()=>e.variableFontSize||"14px"),s=t.computed(()=>"-"+t.unref(r));t.watch(()=>[e.data,e.dataType],([R,B])=>{B==="static"&&(i.value=R)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c,getRequestData:u}=t.inject(Ie,{getGlobalModel:R=>{},setGlobalModel:(R,B)=>{},getRecordValueByKeyName:R=>{},getRequestData:R=>{}}),{setLoadedData:y}=t.inject(kt,{setLoadedData:(R,B)=>{}}),f=t.computed(()=>{let R="";if(e.gradientShow){const{gradientColor:B,gradientOffset:S,gradientAngle:E,color:N}=e;R+=`background: linear-gradient(${E}, ${N}, ${B||"transparent"} ${S*100}%);-webkit-background-clip: text;color: transparent;`}return R}),x=t.computed(()=>{const R={};if(e.gradientShow){const{gradientColor:B,gradientOffset:S,gradientAngle:E,color:N}=e,z=B||"transparent";R.background=`linear-gradient(${E}, ${N}, ${z} ${S*100}%)`,R["-webkit-background-clip"]="text",R.color="transparent"}return R}),m=t.computed(()=>{var F;if(t.unref(n))return"NaN";const R=t.unref(i),B=e.increaseColor||e.color,S=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 N=E.match(/\{(.+?)\}/g)||[];let z="";const j=e.showEllipsis?"show-ellipsis":"";if(N==null||N.length===0){if(E&&e.format==="percentage"&&!isNaN(+E)){const M=parseFloat(E),P=M*100,H=h(P.toFixed(2));M>=0?E=`<span class="${j}" style="color: ${H||B||"#ED6643"};font-size:${t.unref(r)};display: inline-block;${t.unref(f)}">
|
|
100
100
|
<div class="percentage-img-box">
|
|
101
|
-
<img style="width: ${t.unref(
|
|
101
|
+
<img style="width: ${t.unref(r)};filter: ${`drop-shadow(${H||B||"#ED6643"} ${t.unref(r)} 0px)`};" src="${qo}"/>
|
|
102
102
|
</div>
|
|
103
|
-
<span style="color: ${
|
|
104
|
-
</span>`:
|
|
103
|
+
<span style="color: ${H||e.color};${t.unref(f)}">${Math.abs(+P).toFixed(2)}%</span>
|
|
104
|
+
</span>`:E=`<span class="${j}" style="color: ${H||S||"#6ACB97"};font-size:${t.unref(r)};display: inline-block;${t.unref(f)}">
|
|
105
105
|
<div class="percentage-img-box">
|
|
106
|
-
<img style="width: ${t.unref(
|
|
106
|
+
<img style="width: ${t.unref(r)};filter: ${`drop-shadow(${H||S||"#6ACB97"} ${t.unref(r)} 0px)`};" src="${Vo}"/>
|
|
107
107
|
</div>
|
|
108
|
-
<span style="color: ${
|
|
109
|
-
</span>`}
|
|
108
|
+
<span style="color: ${H||e.color};${t.unref(f)}">${e.minusSignShow?"-":""}${Math.abs(+P).toFixed(2)}%</span>
|
|
109
|
+
</span>`}z=E}for(let M=0;M<N.length;M++){const P=N[M],H=(F=P==null?void 0:P.slice(1,P.length-1))==null?void 0:F.trim();let Z=H;const V=H.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let U=0;U<V.length;U++){const $=V[U],J=R[$];J&&(Z=H.replace($,c(String(J))||J))}if(/\(.*\)/g.test(Z)){const U=dn(Z);U!=null&&(Z=U)}let q=Z;if(q===H&&(q=e.variableDefaultValue),q!=null){const U=e.format;if(U==="percentage")if(q=+q,isNaN(q))E=E.replace(P,`<span class="${j}" style="color:${h("0.00")||e.variableColor};font-size:${t.unref(r)};${t.unref(f)}">0%</span>`);else if(q>=0){q=q*100;const $=h(q.toFixed(2));E=E.replace(P,`<span class="${j}" style="color: ${$||B||"#ED6643"};font-size:${t.unref(r)};display: inline-block;${t.unref(f)}">
|
|
110
110
|
<div class="percentage-img-box">
|
|
111
|
-
<img style="width: ${t.unref(
|
|
111
|
+
<img style="width: ${t.unref(r)};filter: ${`drop-shadow(${$||B||"#ED6643"} ${t.unref(r)} 0px)`};" src="${qo}"/>
|
|
112
112
|
</div>
|
|
113
|
-
<span style="color: ${$||e.color};${t.unref(f)}">${Math.abs(+
|
|
114
|
-
</span>`)}else{
|
|
113
|
+
<span style="color: ${$||e.color};${t.unref(f)}">${Math.abs(+q).toFixed(2)}%</span>
|
|
114
|
+
</span>`)}else{q=q*100;const $=h(q.toFixed(2));E=E.replace(P,`<span class="${j}" style="color: ${$||S||"#6ACB97"};font-size:${t.unref(r)};display: inline-block;${t.unref(f)}">
|
|
115
115
|
<div class="percentage-img-box">
|
|
116
|
-
<img style="width: ${t.unref(
|
|
116
|
+
<img style="width: ${t.unref(r)};filter: ${`drop-shadow(${$||S||"#6ACB97"} ${t.unref(r)} 0px)`};" src="${Vo}"/>
|
|
117
117
|
</div>
|
|
118
|
-
<span style="color: ${$||e.color};${t.unref(f)}">${e.minusSignShow?"-":""}${Math.abs(+
|
|
119
|
-
</span>`)}else e.format==="percent"?(P=+P,isNaN(P)||(P=(P*100).toFixed(2),D=D.replace(M,`<span class="${H}" style="color:${u(P)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${P}%</span>`))):e.format==="money"?(P=+P,isNaN(P)||(P=Oo(P),D=D.replace(M,`<span class="${H}" style="color:${u(P)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${P}</span>`))):Y==="thousands"?(P=+P,isNaN(P)||(P=$c(P),D=D.replace(M,`<span class="${H}" style="color:${u(P)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${P}</span>`))):D=D.replace(M,`<span class="${H}" style="color:${u(P)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${P}</span>`)}}if(V||(V=`<span class="${H}" style="color: ${u(D)};${t.unref(f)}">${D}</span>`),e.unitShow&&e.unitText){const{unitTop:z,unitLeft:M}=e;let j="position:relative;";z&&(j+=`top:${z};`),M&&(j+=`margin-left:${M};`),V+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${j};${t.unref(f)}'>${e.unitText}</span>`}return e.showEllipsis&&(V=`<span class="show-ellipsis" style="display: inline-block;">${V}</span>`),V});function u(R){let T="",v=!1;const{targetValue:D,targetShow:N,notExpectColor:V}=e;if(N){switch(e.targetRule){case"equal":R!==D&&(v=!0);break;case"greater":R<=D&&(v=!0);break;case"greater_equal":R<D&&(v=!0);break;case"less":R>=D&&(v=!0);break;case"less_equal":R>D&&(v=!0);break}v&&(T=V)}return T}const{pageMode:b}=t.inject(Ve,{pageMode:"normal"}),k=He(e),x=t.ref(!1),S=async()=>{var R;try{x.value=!0;const T=await k();r.value=((R=T==null?void 0:T.data)==null?void 0:R.data)||{}}catch(T){console.error(T)}finally{x.value=!1}},p=(R={})=>{r.value=R},C=R=>{const T=e.id,v=l(T);d(T,{...v,value:R||"",RECORD:R||""})},w=()=>{C("")},B=Ke(e),L=async()=>{var R,T;try{x.value=!0;const v=await B(),{data:D}=(v==null?void 0:v.data)||{};if(D){n.value=!1;const{columns:N=[],rows:V=[]}=((R=v==null?void 0:v.data)==null?void 0:R.data)??{},{graphicConfig:H}=e;let F={};if(N.length>0)if((T=H==null?void 0:H.dimensionList)!=null&&T.length){const z=N[0];z&&(V!=null&&V.length)&&(F={value:V[0][z]})}else{const z=N.find(M=>!!M);z&&(F={value:isNaN(V[z])?0:V[z]||0})}C(F==null?void 0:F.value),p(F)}else n.value=!0,C("NaN"),p({value:"NaN"})}catch(v){console.error(v)}finally{x.value=!1,m(e.id,!0)}},O=()=>{switch(e.dataType){case"indicator":L();break;case"request":{const{openCustomRequestData:R,customRequestName:T,customRequestField:v}=e;if(R||R===void 0)S();else{const D=g(T);D&&(r.value={[v]:D[v]})}break}}},{setRequest:E}=t.inject(qe,{setRequest:({id:R,sortNum:T,requestFn:v})=>{}});typeof E=="function"&&E({id:e.id,requestFn:O,sortNum:e.requestSort}),Oe(e,{refreshData:O,resetRecord:w}),o({refreshData:O});const _=Re(e),I=_("click",()=>{const R=document.getElementsByClassName(`ecan-text_${e.id}`);if(R!=null&&R.length&&C(R[0].innerText),setTimeout(()=>{C("")},0),!e.linkPage&&!e.href)return;const T=e.linkPage||"",v=Oi(t.unref(b),T),D=e.href;let N=D||v;N=_e(N);const V=e.target;V&&(V!=="event"?window.open(N,"_"+V):window.parent.postMessage({type:"openPage",url:D},"*"))}),A=_("valueChange",()=>{});return t.watch(()=>h.value,(R,T)=>{R!==T&&A()}),{style:a,myText:h,loading:x,click:I,textIndent:s,vFontSize:i,gradientStyle:y}}}),zi=()=>{t.useCssVars(e=>({"902d650e":e.vFontSize,"253f26b4":e.textIndent,"14fdee04":e.percentageSide}))},Pi=Vo.setup;Vo.setup=Pi?(e,o)=>(zi(),Pi(e,o)):zi;const uh="",hh="",od=["innerHTML"];function ad(e,o,n,a,r,i){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,od))}const qi=Se(ye(Vo,[["render",ad],["__scopeId","data-v-16622f13"]])),rd=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),mh="",id={class:"red"};function ld(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",id,t.toDisplayString(e.text),1)}const Vi=Se(ye(rd,[["render",ld],["__scopeId","data-v-4dd9c03e"]])),Ho={...De,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"}},jo=Ae(Ho),Hi=["timeChange"],sd=t.defineComponent({name:"EcanTimeDisplay",props:{...jo},setup(e){const o=Te(e),n=()=>{const{format:c,operate:g}=e;let m=xe();if(g){const{type:f,value:y,mode:h}=g;switch(f){case"add":m=m.add(y,h);break;case"minus":m=m.subtract(y,h)}}return m.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 r=null;const i=()=>{clearInterval(r),r=null},l=Re(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:g,mode:m}=e.updateInterval||{};g&&(c=c*g);const f={second:1,minute:60,hour:60*60,day:24*60*60};m&&(c=c*f[m]),r=setInterval(()=>{a.value=n(),l()},c)};return Oe(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{i()}),{style:o,time:a}}}),xh="";function cd(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const ji=Se(ye(sd,[["render",cd],["__scopeId","data-v-b628fca2"]])),Wo={...De,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%"},Go=Ae(Wo),Wi=["refreshData","click","resetRecord"],dd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",fd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",ud="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",hd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",gd=t.defineComponent({name:"EcanList",components:{Skeleton:Pt,ATooltip:fe.Tooltip,MarqueeScroll:Vn},props:{...Go},setup(e,{expose:o}){const n=t.ref(),a=Te(e,["backgroundColor"]),r=(v,D)=>{const{format:N,customFormatter:V}=D;if(N==null||N==="")return v;const H={money:Oo,percentage:Tn,contrast:Tn,custom:Ri};return H[N]?N==="custom"?H[N](v,V)||"":H[N](v)||"":""},i=(v,D)=>{const N=parseFloat(v+"");if(D!=="contrast")return"";switch(!0){case N>=0:return"goUp";case N<0:return"goDown"}},s=He(e),l=t.ref(!1),d=async()=>{var v;if(e.dataType==="request")try{l.value=!0;const D=await s();n.value=((v=D==null?void 0:D.data)==null?void 0:v.data.rows)||[]}catch(D){console.error(D)}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})),g=t.computed(()=>{const{columns:v,isUseSeq:D}=e;return D?[t.unref(c),...v]:v}),m=Ke(e),f=async()=>{var v;try{l.value=!0;const D=await m(),{columns:N=[],rows:V=[]}=((v=D==null?void 0:D.data)==null?void 0:v.data)??{};e.isUseSeq&&N.unshift(e.seqName),g.value.forEach((H,F)=>{(!e.isUseSeq||F!==0)&&(H.title=N[F],H.key=N[F])}),n.value=V}catch(D){console.error(D)}finally{l.value=!1}},y=()=>{switch(e.dataType){case"indicator":f();break;case"request":d();break}},h=Re(e),{getGlobalModel:u,setGlobalModel:b}=t.inject(Ie,{getGlobalModel:v=>{},setGlobalModel:(v,D)=>{}}),k=v=>{h("click",()=>{const D=u(e.id);b(e.id,{...D,type:e.type,RECORD:v})})()};Oe(e,{refreshData:y,resetRecord:()=>{const v=e.id,D=u(v);b(v,{...D,type:e.type,RECORD:""})}});const{setRequest:S}=t.inject(qe,{setRequest:({id:v,sortNum:D,requestFn:N})=>{}});typeof S=="function"&&S({id:e.id,requestFn:y,sortNum:e.requestSort}),o({refreshData:y});const p=(v,D)=>({flex:v.width?"none":"1",width:v.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:(D?v.cellAlign:v.align)||"left",backgroundColor:v.cellColor}),C=(v,D)=>{let N=0;const V=t.unref(n).map(F=>F[D]),H=Math.max(...V);return H&&(N=v[D]/H*100),N},w=v=>{const{progressColor:D="#1890ff",progressGradientColor:N=""}=v;return N?{background:`linear-gradient(to right, ${D} 0%, ${N} 100%)`}:{backgroundColor:D||"#1890ff"}},B=t.computed(()=>{const v=parseFloat(e.seqFontSize)+5;return{width:v+10,height:v}}),{pageMode:L}=t.inject(Ve,{pageMode:"normal"}),O=t.computed(()=>t.unref(L)!=="design"&&e.isAutoScroll),E=v=>{const{seqIconConfig:D}=e;let N=D.find(V=>V.key===v+1);return N||(N=D.find(V=>V.key==="other")),!!(N!=null&&N.icon)},_=(v,D)=>{const{seqIconConfig:N}=e;let V=N.find(H=>H.key===v+1);return V||(V=N.find(H=>H.key==="other")),D===1?V!=null&&V.icon?ht(V.icon):"":D===2?(V==null?void 0:V.color)||"#fff":""},I=v=>{const{seqIndexFormatter:D}=e,N=v+1;return D?_e(D,{textData:{index:N}},{useNewline:!1,useSpace:!0}):N},A=t.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),R=t.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:a,formatFn:r,contrastClass:i,dataSource:n,loading:l,myColumns:g,click:k,getColumnStyle:p,getPercentage:C,getBackgroundColor:w,isShowSeqIcon:E,getSeqIconData:_,seqIcon4:dd,seqIcon5:fd,seqIcon6:ud,seqIcon7:hd,iconSize:B,isScroll:O,formatSeq:I,wrapStyle:A,colSpan:R,getText:(v,D)=>(v.format!=null||v.format!=="")&&r(D[v.key],v)}}}),bh="",vh="",md=e=>(t.pushScopeId("data-v-8c32652d"),e=e(),t.popScopeId(),e),yd={key:0,class:"title"},xd={key:0,class:"ranking"},pd=["onClick"],bd={key:0,class:"ranking"},vd=md(()=>t.createElementVNode("div",{class:"icon"},null,-1)),Sd={class:"sort"},Cd=["src"],wd={key:1},Ad=["src","width","height"],kd=["src","width","height"],Td=["src","width","height"],Bd=["src","width","height"],Ed={key:1},Dd=["title"],Id={key:2,class:"empty"};function Rd(e,o,n,a,r,i){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",yd,[(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",xd)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(g,m)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:g.key||m,style:t.normalizeStyle({color:g.titleColor,...e.getColumnStyle(g)})},t.toDisplayString(g.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,g)=>(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||g,onClick:m=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",bd,[vd,t.createElementVNode("div",Sd," Top "+t.toDisplayString(g+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,m=>{var f;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(c[m.key],m.format),m.key==="SEQ"?"seq-column":""]),key:m.key,style:t.normalizeStyle({fontSize:m.fontSize,color:e.contrastClass(c[m.key],m.format)===""?m.color:"",fontWeight:m.fontWeight,...e.getColumnStyle(m,"cell")})},[m.key==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(f=e.seqIconConfig)!=null&&f.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(g)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(g,1),style:t.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,Cd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"custom-seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(g,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(e.formatSeq(g)),5)],4)):(t.openBlock(),t.createElementBlock("div",wd,[g===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,Ad)):g===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,kd)):g===2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,Td)):g>=3?(t.openBlock(),t.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,Bd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize})},t.toDisplayString(e.formatSeq(g)),5)]))],64)):(t.openBlock(),t.createElementBlock("span",Ed,t.toDisplayString(e.formatSeq(g)),1))],64)):m.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:m.progressWidth||"14px",backgroundColor:m.progressBaseColor})},[t.createVNode(s,{title:c[m.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({borderRadius:"10px",height:m.progressWidth||"14px",width:`${e.getPercentage(c,m.key)}%`,...e.getBackgroundColor(m)})},null,4)]),_:2},1032,["title"])],4)],4)):(t.openBlock(),t.createElementBlock("span",{key:2,title:e.getText(m,c)},t.toDisplayString(e.getText(m,c)),9,Dd))],6)}),128))],12,pd))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(t.openBlock(),t.createElementBlock("div",Id," 暂无数据 "))]),_:1},8,["loading"])],4)}const Gi=Se(ye(gd,[["render",Rd],["__scopeId","data-v-8c32652d"]])),Uo={...De,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",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},$o=Ae(Uo),Ui=["refreshData","click"],_d=t.defineComponent({name:"EcanProportion",components:{AProgress:fe.Progress,Skeleton:Pt},props:{...$o},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(Ve,{pageMode:"normal"}),r=Te(e),i=t.computed(()=>{const p=e.width;return parseFloat(p)}),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 p=t.unref(s),C=+e.variableDefaultValue;if(p==null)return isNaN(C)?0:C;const w=e.text.match(/\{.+\}/g)||[];let B;const L=new Set(Object.keys(p));for(let O=0;O<w.length;O++){const E=w[O],_=E.slice(1,E.length-1);if(L.has(_)){B=p[_];break}}return typeof B=="number"?B=B*100:typeof B=="string"&&!isNaN(+B)?B=+B*100:isNaN(C)?B=0:B=C*100,e.decimalFormat&&(B=+B.toFixed(2)),B}),d=t.computed(()=>{var L;let p=e.text;if(p==="")return t.unref(l);const C=e.variableDefaultValue,w=t.unref(s),B=p.match(/\{.+\}/g)||[];for(let O=0;O<B.length;O++){const E=B[O];let _=E.slice(1,E.length-1);const I=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,A=E.match(I);for(let T=0;T<(A==null?void 0:A.length);T++){const v=(L=A[T])==null?void 0:L.trim();w[v]!=null&&(_=_.replace(v,w[v]))}let R=_;try{/\(.*\)/g.test(_)&&(R=sn(_))}catch(T){console.error(T)}typeof+R=="number"&&!isNaN(+R)?(R=+R*100,e.decimalFormat&&(R=R.toFixed(2))):R=C,p=p.replace(E,R+"")}return t.unref(n)?"NaN":p}),c=He(e),g=t.ref(!1),m=async()=>{var p;if(e.dataType==="request")try{g.value=!0;const C=await c();s.value=((p=C==null?void 0:C.data)==null?void 0:p.data)||{}}catch(C){console.error(C)}finally{g.value=!1}},f=(p={})=>{s.value=p},y=Ke(e),h=async()=>{var p;try{g.value=!0;const C=await y(),{data:w}=(C==null?void 0:C.data)||{};if(w){n.value=!1;const{columns:B=[],rows:L=[]}=((p=C==null?void 0:C.data)==null?void 0:p.data)??{};let O={};if(B.length>0){const E=B.find(_=>!!_);E&&(O={percent:L[E]})}f(O)}else n.value=!0,f({percent:"NaN"})}catch(C){console.error(C)}finally{g.value=!1}},u=()=>{switch(e.dataType){case"indicator":h();break;case"request":m();break}};Oe(e,{refreshData:u}),o({refreshData:u});const k=Re(e)("click",()=>{}),{setRequest:x}=t.inject(qe,{setRequest:({id:p,sortNum:C,requestFn:w})=>{}});typeof x=="function"&&x({id:e.id,requestFn:u,sortNum:e.requestSort});const S=t.computed(()=>{const{gradientShow:p,gradientColor:C,gradientOffset:w,strokeColor:B}=e;let L=B;return p&&C&&(L={"0%":B,[`${w*100}%`]:C}),L});return{style:r,myWidth:i,text:d,myValue:l,loading:g,click:k,customStrokeColor:S}}}),Ch="";function Ld(e,o,n,a,r,i){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.toDisplayString(e.text),5)):t.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const $i=Se(ye(_d,[["render",Ld],["__scopeId","data-v-cf942b5f"]])),Yo={...De,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:{}},Ko=Ae(Yo),Yi=["refreshData","click","resetRecord"],Od=t.defineComponent({name:"EcanCounter",components:{Skeleton:Pt},props:{...Ko},setup(e,{expose:o}){const n=t.ref(),a=Te(e),r=t.computed(()=>({width:e.unitWidth,height:e.unitHeight,marginRight:e.unitInterval+"px"})),i=t.computed(()=>({color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle}));t.watch(()=>[e.data,e.dataType],([S,p])=>{p==="static"&&(n.value=S)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=t.inject(Ie,{getGlobalModel:S=>{},setGlobalModel:(S,p)=>{}}),c=Re(e)("click",()=>{const S=s(e.id);l(e.id,{...S,type:e.type,value:t.unref(n)})}),g=()=>{const S=e.id,p=s(S);l(S,{...p,type:e.type,value:""})},m=He(e),f=t.ref(!1),y=async()=>{var S,p;try{f.value=!0;const C=await m();n.value=((p=(S=C==null?void 0:C.data)==null?void 0:S.data)==null?void 0:p.value)||""}catch(C){console.error(C)}finally{f.value=!1}},h=Ke(e),u=async()=>{var S;try{f.value=!0;const p=await h(),{data:C}=(p==null?void 0:p.data)||{};let w="";if(C){const{columns:B=[],rows:L=[]}=((S=p==null?void 0:p.data)==null?void 0:S.data)??{};if(B.length>0){const O=B.find(E=>!!E);O&&(w=L[O]||"")}}n.value=String(w)}catch(p){console.error(p)}finally{f.value=!1}},b=()=>{switch(e.dataType){case"indicator":u();break;case"request":y();break}},k=t.computed(()=>{const S=[],{digits:p}=e;console.log("myValue",n.value);const C=t.unref(n)?t.unref(n).split("").reverse().join(""):"";for(let w=0;w<p;w++)C&&C[w]?S.push(C[w]):S.push("0");return S.reverse()});Oe(e,{refreshData:b,resetRecord:g});const{setRequest:x}=t.inject(qe,{setRequest:({id:S,sortNum:p,requestFn:C})=>{}});return typeof x=="function"&&x({id:e.id,requestFn:b,sortNum:e.requestSort}),o({refreshData:b}),{style:a,valueList:k,digitsStyle:r,fontStyle:i,loading:f,useImagePath:ht,click:c}}}),Ah="",Nd=["src"];function Fd(e,o,n,a,r,i){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,Nd)):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 Ki=Se(ye(Od,[["render",Fd],["__scopeId","data-v-4d462642"]])),Zo={...De,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Qo=Ae(Zo),Zi=["inputChange","inputBlur"],Md=t.defineComponent({name:"EcanInput",components:{AInput:fe.Input},props:{...Qo},setup(e){const o=Te(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=t.inject(Ie,{getGlobalModel:g=>{},setGlobalModel:(g,m)=>{},getRecordValueByKeyName:g=>{}});t.watch(()=>e.value,g=>{n.value=i(g)},{immediate:!0}),r(e.id,{type:e.type,value:n});const s=()=>{const g=a(e.id);r(e.id,{...g,RECORD:n})},l=Re(e),d=Le.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),Th="";function zd(e,o,n,a,r,i){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 Qi=Se(ye(Md,[["render",zd]])),Jo={...De,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"},Xo=Ae(Jo),Ji=["dateChange"],ea=t.defineComponent({name:"EcanDatePicker",props:{...Xo},components:{ADatePicker:fe.DatePicker},setup(e){const o=t.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=Te(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([f,y,h])=>{let u=null;if(f?u=xe(_e(f)):y&&(u=xe()),h&&u){const{type:b,value:k,mode:x}=h;switch(b){case"add":u=u.add(k,x);break;case"minus":u=u.subtract(k,x)}}r.value=u},{deep:!0,immediate:!0});const{setGlobalModel:i}=t.inject(Ie,{setGlobalModel:(f,y)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Re(e)("dateChange",()=>{}),d=()=>{t.unref(r)&&l()};Oe(e,{dateChange:l});const c=t.ref({}),g=t.ref({}),m=f=>{f?setTimeout(()=>{g.value=t.unref(c)},300):g.value={}};return t.onMounted(()=>{setTimeout(()=>{const f=document.querySelector(`#ecan-date-picker-${e.id}`);if(f){const y=f.getBoundingClientRect(),h=parseFloat(t.unref(o).widthScale)*280;document.body.clientWidth-y.left<h&&(c.value.marginLeft=-1*(h-y.width)+"px")}},0)}),{style:n,getPopupContainer:a,myValue:r,locale:Za,change:d,scaleValue:o,popupStyle:c,customStyle:g,openChange:m}}}),Xi=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},el=ea.setup;ea.setup=el?(e,o)=>(Xi(),el(e,o)):Xi;const Eh="",Dh="",Pd=["id"];function qd(e,o,n,a,r,i){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,Pd)}const tl=Se(ye(ea,[["render",qd],["__scopeId","data-v-d4ec0d66"]])),ta={...De,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},na=Ae(ta),nl=["dateChange"];var ol={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(he,function(){var n="month",a="quarter";return function(r,i){var s=i.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,g){return c=Number(c),this.$utils().p(g)===a?this.add(3*c,n):l.bind(this)(c,g)};var d=s.startOf;s.startOf=function(c,g){var m=this.$utils(),f=!!m.u(g)||g;if(m.p(c)===a){var y=this.quarter()-1;return f?this.month(3*y).startOf(n).startOf("day"):this.month(3*y+2).endOf(n).endOf("day")}return d.bind(this)(c,g)}}})})(ol);var Vd=ol.exports;const Hd=Er(Vd);xe.extend(Hd);const oa=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:fe.RangePicker},props:{...na},setup(e){const o=Te(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,p,C,w,B,L])=>{let O=null,E=null;if(C&&(O=xe().subtract(w,B),E=xe()),S&&(O=xe(_e(S))),p&&(E=xe(_e(p))),L){const{type:_,value:I,mode:A}=L;switch(_){case"add":O=O&&O.add(I,A),E=E&&E.add(I,A);break;case"minus":O=O&&O.subtract(I,A),E=E&&E.subtract(I,A)}}a.value=[O,E]},{immediate:!0});let r=t.unref(a)[0],i=t.unref(a)[1],s="";const l=(S,p,C)=>{Array.isArray(S)?(r=S[0],i=S[1],s=C.range):(r=null,i=null)};window.dayjs=xe;const d=S=>{let p=!1,{limitStartTime:C,limitEndTime:w}=e;const B={startTime:`${r||""}`,endTime:`${i||""}`};if(C=_e(C,{codeData:B}),w=_e(w,{codeData:B}),C&&w?p=!(xe(C)<S&&S<xe(w)):C?p=xe(C)>S:w&&(p=xe(w)<S),!e.isAllowSpanYear&&s){let L=null;if(s==="start"?L=r:s==="end"&&(L=i),L){const O=L.startOf("year"),E=L.endOf("year");p=!(O<=S&&S<E)}}if(!p){const{value:L=0,mode:O="year"}=e.limitInterval||{};L&&(s==="start"?p=r.add(L,O)<S:s==="end"&&(p=i.subtract(L,O)>S))}return p},{getGlobalModel:c,setGlobalModel:g}=t.inject(Ie,{getGlobalModel:S=>{},setGlobalModel:(S,p)=>{}}),m=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),f=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);g(e.id,{type:e.type,format:e.format,startTime:m,endTime:f,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const y=Re(e);let h=!1;const u=y("dateChange",()=>{}),b=S=>{const p=t.unref(a),C=p&&p[0]&&p[1];S===!1&&h===!0&&C&&(u(),h=!1),S||(s="")},k=()=>{h=!0};return Oe(e,{dateChange:()=>{const{associated:S}=e;if(S){const p=c(S)||{};if(p){const{value:C}=p;if(C)switch(t.unref(C)){case"month":a.value=[xe().startOf("month"),xe().endOf("month")];break;case"quarter":a.value=[xe().startOf("quarter"),xe().endOf("quarter")];break;case"year":a.value=[xe().startOf("year"),xe().endOf("year")];break}}}u()}}),{style:o,getPopupContainer:n,locale:Za,dateChange:u,myValue:a,disabledDate:d,calendarChange:l,openChange:b,change:k}}}),al=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},rl=oa.setup;oa.setup=rl?(e,o)=>(al(),rl(e,o)):al;const Rh="",_h="";function jd(e,o,n,a,r,i){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 il=Se(ye(oa,[["render",jd],["__scopeId","data-v-c9c68612"]])),aa={...De,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"},ra=Ae(aa),ll=["click"],Wd=t.defineComponent({name:"EcanButton",components:{AButton:fe.Button},props:{...ra},setup(e){const o=Te(e),a=Re(e)("click",()=>{const d=t.unref(s);d&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:d},"*")}),r=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}}),i=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:i,myHref:s,myTarget:l,buttonStyle:r}}}),Oh="";function Gd(e,o,n,a,r,i){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 sl=Se(ye(Wd,[["render",Gd]])),ia={...De,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:{}},la=Ae(ia),cl=["checkboxChange"],Ud=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:fe.CheckboxGroup},props:{...la},setup(e,{expose:o}){const n=Te(e),a=t.ref([]),r=t.ref([]),i=b=>{const k=e.value;let x=[];b.forEach(S=>{S.checked&&x.push(S.value)}),typeof k=="string"&&k!==""?x=x.concat(k.split(",")):Array.isArray(k)&&(x=x.concat(k)),a.value=b,r.value=x};t.watch(()=>[e.data,e.value],([b])=>{i(b)},{immediate:!0,deep:!0});const s=He(e),l=async()=>{var x,S;if(e.dataType!=="request")return;const b=await s(),k=((S=(x=b==null?void 0:b.data)==null?void 0:x.data)==null?void 0:S.rows)||[];i(k)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Ie,{getGlobalModel:b=>{},setGlobalModel:(b,k)=>{}});c(e.id,{type:e.type,value:r});const m=Re(e)("checkboxChange",()=>{const b=d(e.id);c(e.id,{...b,RECORD:r})}),f=Ke(e),y=async()=>{var b;try{const k=await f(),{data:x}=(k==null?void 0:k.data)||{};if(x){const p=(((b=k==null?void 0:k.data)==null?void 0:b.data)??[]).map(C=>({label:C.label,value:C.value}));i(p)}else i([])}catch(k){console.error(k)}},h=()=>{switch(e.dataType){case"indicator":y();break;case"request":l();break}},{setRequest:u}=t.inject(qe,{setRequest:({id:b,sortNum:k,requestFn:x})=>{}});return typeof u=="function"&&u({id:e.id,requestFn:h,sortNum:e.requestSort}),o({refreshData:h}),{myOption:a,style:n,myValue:r,checkboxChange:m}}}),Fh="";function $d(e,o,n,a,r,i){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 dl=Se(ye(Ud,[["render",$d]])),sa={...De,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"},ca=Ae(sa),fl=["selectChange","refreshData"],Yd=t.defineComponent({name:"EcanSelect",components:{ASelect:fe.Select,ASelectOption:fe.SelectOption},props:{...ca},setup(e,{expose:o}){const n=Te(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=He(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var v;const{mode:T}=e;return(v=t.unref(i))!=null&&v.length?s.value:T==="multiple"||T==="tags"||T==="combobox"?[]:""},set:T=>{s.value=T}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:g}=t.inject(Ie,{getGlobalModel:T=>{},setGlobalModel:(T,v)=>{},getRecordValueByKeyName:T=>{}}),m=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:T,selectFirstOption:v,value:D}=e,N=g(D),V=m.value;if(T==="multiple"||T==="tags"||T==="combobox"){if(N)s.value=N.split(",");else if(v){const H=t.unref(i)[0];s.value=H?[H[V]]:[]}}else if(N)s.value=N;else if(v){const H=t.unref(i)[0];s.value=H?H[V]:""}},{immediate:!0});const f=(T,v)=>{const D=m.label,N=m.value;let V;const H=v[D],F=v[N];return H!=null?V=H:F!=null&&(V=F),(V==null?void 0:V.toLowerCase().indexOf(T==null?void 0:T.toLowerCase()))>=0},y=T=>{const{label:v,value:D,options:N}=e.dataFieldNames;if(N&&Array.isArray(T))if(T.some(V=>N in V)){const V={},H=[];T.forEach(F=>{V[F[N]]||(V[F[N]]=[]),V[F[N]].push({[v]:F[v],[D]:F[D]})});for(const F in V)H.push({[v]:F,[N]:V[F]});return H}else return T;else if(!N)return T},h=t.ref(!1),u=async()=>{var T,v;if(e.dataType==="request"){h.value=!0;try{const D=await r();if(i.value=y(((v=(T=D==null?void 0:D.data)==null?void 0:T.data)==null?void 0:v.rows)||[]),e.selectFirstOption){let N=t.unref(i)[0];if(m.options){const V=N[m.options];V&&V.length&&(N=V[0])}s.value=N[m.value]}}catch(D){console.error(D)}finally{h.value=!1}}},{setLoadedData:b,loadedData:k}=t.inject(wt,{setLoadedData:(T,v)=>{},loadedData:{}}),x=t.computed(()=>{let T=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const v=m.label,D=m.value;if(e.mode==="multiple")T=t.unref(i).filter(N=>t.unref(s).includes(N[D])).map(N=>N[v]);else{const N=t.unref(i).find(V=>t.unref(s)===V[D]);N&&(T=N[v])}}return T}),S=t.ref([]),p=t.computed(()=>{const T={};if(e.mode!=="multiple"){const v=t.unref(S).find(D=>D.value===t.unref(s));v&&(T.itemCodes=v.item_codes)}return T}),C=t.computed(()=>{const{value:T,label:v}=m,D=t.unref(i).find(N=>N[T]===t.unref(l));return D?{label:D[v],value:D[T]}:{}});c(e.id,{type:e.type,value:x,...t.unref(p),recordData:t.unref(C)});const B=Re(e)("selectChange",()=>{const T=e.id,v=d(T);c(T,{...v,...t.unref(p),RECORD:x,recordData:t.unref(C)})}),L=(T=[])=>{if(i.value=y(T),e.selectFirstOption){let v=t.unref(i)[0];if(m.options){const D=v[m.options];D&&D.length&&(v=D[0])}s.value=v[m.value]}c(e.id,{type:e.type,value:x,...t.unref(p),recordData:t.unref(C)})},O=Ke(e),E=async()=>{var T;try{h.value=!0;const v=await O(),{data:D}=(v==null?void 0:v.data)||{},N=m.label,V=m.value;if(D){const H=((T=v==null?void 0:v.data)==null?void 0:T.data)??[];S.value=H;const F=H.map(j=>({[N]:j.label,[V]:j.value})),{id:z}=e,M=d(z);c(z,{...M,...t.unref(p)}),b(z,!0),L(F)}else L([])}catch(v){console.error(v)}finally{h.value=!1}},_=t.computed(()=>{var T,v;return(v=(T=e==null?void 0:e.graphicConfig)==null?void 0:T.controlList)==null?void 0:v.find(D=>D.conditionKey==="parentCode")}),I=t.ref(!1);t.watch(k,T=>{!t.unref(I)&&t.unref(_)&&T[t.unref(_).id]&&(I.value=!0,A())},{deep:!0});const A=()=>{switch(e.dataType){case"indicator":{if(t.unref(_)){if(t.unref(k)[t.unref(_).id]){const{mode:T}=e;T==="multiple"||T==="tags"||T==="combobox"?l.value=[]:l.value="",E()}}else E();break}case"request":u();break}};Oe(e,{selectChange:B,refreshData:A});const{setRequest:R}=t.inject(qe,{setRequest:({id:T,sortNum:v,requestFn:D})=>{}});return typeof R=="function"&&R({id:e.id,requestFn:A,sortNum:e.requestSort}),o({refreshData:A}),{style:n,getPopupContainer:a,myValue:s,selectChange:B,options:i,filterOption:f,loading:h,resultValue:l}}}),zh="",Ph="";function Kd(e,o,n,a,r,i){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 ul=Se(ye(Yd,[["render",Kd],["__scopeId","data-v-8da65528"]])),da={...De,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},fa=Ae(da),hl=["selectChange","refreshData"],Zd={name:"EcanTreeSelect",components:{ATreeSelect:fe.TreeSelect},props:{...fa},setup(e){const o=Te(e),n=t.ref(e.data),a=(y,h)=>{const u=e.dataFieldNames,b=u.label,k=u.value;let x;const S=h[b],p=h[k];return S!=null?x=S:p!=null&&(x=p),(x==null?void 0:x.toLowerCase().indexOf(y==null?void 0:y.toLowerCase()))>=0},r=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:y,value:h,selectFirstOption:u}=e;y?h?r.value=h.split(","):u&&(r.value=[t.unref(n)[0]]):h?r.value=h:u&&(r.value=t.unref(n)[0])},{immediate:!0});const i=t.ref(!1),s=He(e),l=async()=>{var y,h;if(e.dataType==="request"){i.value=!0;try{const u=await s();n.value=((h=(y=u==null?void 0:u.data)==null?void 0:y.data)==null?void 0:h.rows)||[];const b=t.unref(n)[0];e.value===""&&b!=null&&(r.value=b[e.dataFieldNames.value])}catch(u){console.error(u)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=t.inject(Ie,{getGlobalModel:y=>{},setGlobalModel:(y,h)=>{}});c(e.id,{type:e.type,value:r});const m=Re(e)("selectChange",()=>{const y=e.id,h=d(y);c(y,{...h,RECORD:r})});Oe(e,{selectChange:m,refreshData:l});const{setRequest:f}=t.inject(qe,{setRequest:({id:y,sortNum:h,requestFn:u})=>{}});return f({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:n,filterTreeNode:a,myValue:r,loading:i,selectChange:m}}},Vh="",Hh="";function Qd(e,o,n,a,r,i){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 gl=Se(ye(Zd,[["render",Qd],["__scopeId","data-v-37236421"]])),ua={...De,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:""},ha=Ae(ua),ml=["checkboxChange","click"],Jd=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:fe.RadioGroup,ARadioButton:fe.RadioButton,ARadio:fe.Radio},props:{...ha},setup(e,{expose:o}){const{pageMode:n}=t.inject(Ve,{pageMode:"normal"}),a=Te(e),r=t.ref([]),i=t.ref(""),s=p=>{const C=e.value;let w=[];typeof C=="string"&&C!==""?w=w.concat(C.split(",")):Array.isArray(C)&&(w=w.concat(C)),r.value=p,i.value=w[0]||""};t.watch(()=>[e.data,e.value],([p])=>{t.unref(n)==="design"&&s(p)},{immediate:!0,deep:!0});const l=He(e),d=async()=>{var w,B;if(e.dataType!=="request")return;const p=await l(),C=((B=(w=p==null?void 0:p.data)==null?void 0:w.data)==null?void 0:B.rows)||[];s(C)},{getGlobalModel:c,setGlobalModel:g}=t.inject(Ie,{getGlobalModel:p=>{},setGlobalModel:(p,C)=>{}});g(e.id,{type:e.type,value:i});const m=Re(e),f=()=>{const p=t.unref(r).find(C=>C.value===t.unref(i))||{};m("checkboxChange",()=>{const C=c(e.id);g(e.id,{...C,RECORD:i})},p)()},y=p=>{i.value=p,m("click",()=>{const C=c(e.id);g(e.id,{...C,RECORD:i})})()};t.watch(i,()=>{f()});const h=Ke(e),u=async()=>{var p;try{const C=await h(),{data:w}=(C==null?void 0:C.data)||{};if(w){const L=(((p=C==null?void 0:C.data)==null?void 0:p.data)??[]).map(O=>({label:O.label,value:O.value}));s(L)}else s([])}catch(C){console.error(C)}},b=()=>{switch(e.dataType){case"indicator":u();break;case"request":d();break}},{setRequest:k}=t.inject(qe,{setRequest:({id:p,sortNum:C,requestFn:w})=>{}});typeof k=="function"&&k({id:e.id,requestFn:b,sortNum:e.requestSort});const x=p=>{i.value=p.value},S=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return t.onMounted(()=>{s(e.data)}),o({refreshData:b}),{myOption:r,style:a,myValue:i,radioStyle:S,onClickButton:y,useImagePath:ht,tabChange:x}}}),Wh="",Gh="",Xd=["onClick"];function ef(e,o,n,a,r,i){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,g)=>(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:g,onClick:t.withModifiers(m=>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,Xd))),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:g=>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 yl=Se(ye(Jd,[["render",ef],["__scopeId","data-v-83a05acd"]])),ga={...De,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},ma=Ae(ga),xl=["click","refreshData","resetRecord"],Qt=async e=>{var d;const o=await yt.post(e,{},{responseType:"blob"}),{data:n,headers:a}=o,r=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([n]),s=document.createElement("a"),l=window.URL.createObjectURL(i);s.href=l,s.download=decodeURI(r),s.style.display="none",document.body.appendChild(s),s.click(),(d=s.parentNode)==null||d.removeChild(s),window.URL.revokeObjectURL(l)},ya={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:[]},xa=Ae(ya),pl=["showModal","hideModal"],Lt=["ecanBorder","ecanTabs","ecanCirculate"];function bl(e){const{containerMap:o={},sourceList:n=[]}=e,a=Le.cloneDeep(e.componentList),r=a.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(r!=null&&r.length)for(const i of r){const s=o[i.id],l=[];if((!Zt(i,"componentList")||!(i!=null&&i.componentList))&&(i.componentList=[]),s){let d=0;for(const c in s){const g=s[c],m=[];if(g!=null&&g.length)for(const f of g){let y=a.find(h=>h.id===f);y||(y=n.find(h=>h.id===f)),y&&(m.push(y),Lt.includes(y.type)&&m.push(...cn(y.id,o,n)))}for(const f of m)Zt(f,"scale")?parseFloat(c)>0&&(f.left=parseFloat(f.left)+d+"px"):(f.left=parseFloat(f.sourceLeft||f.left)-parseFloat(i.sourceLeft||i.left)+d+"px",f.top=parseFloat(f.sourceTop||f.top)-parseFloat(i.sourceTop||i.top)+"px"),l.includes(f.id)||l.push(f.id);i.componentList.push(...m),d=lf(m)}}for(const d of l){const c=a.findIndex(g=>g.id===d);c!==-1&&a.splice(c,1)}}return a}function vl(e){var i,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,r=Le.cloneDeep([...e.componentList,...nf(a,n)]);if(tf(a,r),(i=Object.keys(a))!=null&&i.length||(s=Object.keys(o))!=null&&s.length){for(const f in a){const y=r.find(h=>h.id===f);if(y){Zt(y,"parentId")||(y.parentId="",y.sourceLeft=y.left,y.sourceTop=y.top);for(const h in a[f])if(a[f][h])for(const u of a[f][h]){const b=r.find(k=>k.id===u);b&&(b.parentId=f,b.sourceLeft=b.left,b.sourceTop=b.top,b.left=parseFloat(b.left)-parseFloat(y.sourceLeft||y.left)+"px",b.top=parseFloat(b.top)-parseFloat(y.sourceTop||y.top)+"px")}}}const l=Array.from(new Set(r.filter(f=>(!Zt(f,"parentId")||f.parentId==="")&&f.combinationId).map(f=>f.combinationId))),d=of(l,{...e,componentList:r});d!=null&&d.length&&r.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],g=r.filter(f=>c.includes(f.type)&&!Zt(f,"parentId")),m=[];for(const f of g)if(f){const y=f.id+"_vir";m.push({id:y,keyName:f.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:f.width,height:f.height,left:f.left,top:f.top,sourceLeft:f.left,sourceTop:f.top}),f.parentId=y,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=0,f.top=0}m!=null&&m.length&&r.unshift(...m);for(const f of r){const y=document.body.clientWidth;if(f.parentId===""&&Lt.includes(f.type))f.sourceWidth=parseFloat(f.width),f.height=(y/(f.sourceWidth/parseFloat(f.height))).toFixed(2)+"px",f.width="100%",f.position="relative",f.top="auto",f.left="auto";else{const h=r.find(u=>u.id===f.parentId);if((h==null?void 0:h.parentId)===""){const u=h.sourceWidth||parseFloat(h.width),b=y/u;f.scale=b,f.top=parseFloat(f.top)*b-parseFloat(f.height)*(1-b)/2+"px",f.left=parseFloat(f.left)*b-parseFloat(f.width)*(1-b)/2+"px"}}f.type==="ecanModal"&&(f.parentId="",f.fullModal=!0)}return af(r)}return r}function tf(e,o){const n=Le.cloneDeep(e),a=o.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(a!=null&&a.length)for(const r of a){const i=n[r.id];for(const s in i)for(const l of i[s]){const d=o.find(c=>c.id===l);if(d&&Lt.includes(d.type)){const c=cn(d.id,n,o);for(const g of c)e[r.id][s].push(g.id),Lt.includes(g.type)&&delete e[g.id];delete e[d.id]}}}}function nf(e,o){const n=[],a=o.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(a!=null&&a.length)for(const r of a){const i=e[r.id];for(const s in i)if(parseFloat(s)>0)for(const l of i[s]){const d=o.find(c=>c.id===l);d&&(n.push(d),Lt.includes(d.type)&&n.push(...cn(d.id,e,o)))}}return n}function cn(e,o,n){const a=[],r=o[e];for(const i in r)for(const s of r[i]){const l=n.find(d=>d.id===s);l&&(a.push(l),Lt.includes(l.type)&&a.push(...cn(l.id,o,n)))}return a}function of(e,o,n){const{combinationMap:a={},componentList:r=[]}=o,i=[];for(const s of e){const l=a[s];if(l!=null&&l.length){const d=r.filter(c=>l.includes(c.id));if(d!=null&&d.length){const c=rf(d);if(c){i.push({...c,id:s,keyName:s,parentId:n||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:c.left,sourceTop:c.top});for(const g of d)g&&(g.parentId=s,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=parseFloat(g.left)-parseFloat(c.left)+"px",g.top=parseFloat(g.top)-parseFloat(c.top)+"px")}}}}return i}function af(e){const n=e.filter(a=>a.parentId==="");if(n!=null&&n.length){const a=Le.cloneDeep(n).map(r=>({...r,sourceTop:parseFloat(r.sourceTop),sourceLeft:parseFloat(r.sourceLeft)}));for(let r=0;r<a.length-1;r++)for(let i=0;i<a.length-r-1;i++){let s=!1;if((a[i].sourceTop-a[i+1].sourceTop>50||Math.abs(a[i+1].sourceTop-a[i].sourceTop)<=50&&a[i].sourceLeft>a[i+1].sourceLeft)&&(s=!0),s){const l=a[i];a[i]=a[i+1],a[i+1]=l}}for(const r of a){const i=e.findIndex(s=>s.id===r.id);i!==-1&&e.splice(i,1)}return[...a,...e]}return e}function rf(e){const o=e.sort((i,s)=>parseFloat(i.top)-parseFloat(s.top))[0],n=e.sort((i,s)=>parseFloat(i.left)-parseFloat(s.left))[0],a=e.map(i=>({...i,computedTop:parseFloat(i.top)+parseFloat(i.height)})).sort((i,s)=>s.computedTop-i.computedTop)[0],r=e.map(i=>({...i,computedLeft:parseFloat(i.left)+parseFloat(i.width)})).sort((i,s)=>s.computedLeft-i.computedLeft)[0];return o&&n&&a&&r?{left:n.left,top:o.top,width:r.computedLeft-parseFloat(n.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}function lf(e){const o=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,a)=>a-n)[0];return o||0}function pa(e,o,n){const a=e[n],r=[];if(a)for(const i in a){const s=a[i];for(const l of s){const d=o.find(c=>c.id===l);d&&(r.push(d),Lt.includes(d.type)&&r.push(...cn(d.id,e,o)))}}return r}const sf=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function cf(e,o,n,a,r,i){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 df=Se(ye(sf,[["render",cf]])),ff=t.defineComponent({name:"EcanModal",components:{AModal:fe.Modal,CloseOutlined:x0,Render:df},props:{...xa},setup(e,{emit:o}){const n=t.ref([]),a=t.inject("isMobile",!1),r=t.inject("getContainerMap",()=>{}),i=t.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l,setRequestData:d}=t.inject(Ie,{setRequestData:(U,X)=>{},clearInteractiveData:()=>{},interactiveData:null}),c=()=>document.getElementById("ProviderConfig")||document.body,g=t.computed(()=>{const U=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[U]}}),m=e.fullModal?"1920px":e.width,f=e.fullModal?"1080px":e.height,y=e.originalWidth,h=e.originalHeight,u=t.ref("80%"),b=t.ref(0),k=t.ref(),x=t.ref(0),S=t.ref({}),p=Te(e),C=t.ref({}),w=t.ref(!1),B=t.ref();let L;const O=()=>{k.value=parseFloat(m)/parseFloat(y);const U=parseFloat(f)/parseFloat(h),X=document.body.offsetWidth,oe=document.body.offsetHeight;b.value=X*t.unref(k),x.value=oe*U,u.value=`${t.unref(k)*100}%`,S.value={width:`${t.unref(b)}px`,height:`${t.unref(x)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},C.value={...t.unref(p),backgroundImage:ht(e.backgroundImage,!0)},a?C.value={...C.value,width:"100%",height:"100%"}:C.value={...C.value,transform:`scale(${t.unref(b)/parseFloat(m)},${t.unref(x)/parseFloat(f)})`,width:m,height:f}},E=Le.debounce(()=>{O()},100),_=()=>{const U=window.MutationObserver;L=new U(E),L.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},I=()=>{L&&(L.disconnect(),L.takeRecords(),L=null)},A=t.ref(!1),{touchRequest:R}=t.inject(qe,{touchRequest:()=>{}}),T=t.ref(""),v=()=>{var oe;const{title:U}=e,X=(oe=t.unref(l))==null?void 0:oe.RECORD;return X?_e(U,{textData:X},{useNewline:!1,useSpace:!1}):U},D=Re(e),N=()=>{a&&(document.documentElement.style.overflow="hidden"),T.value=v(),A.value=!0},V=D("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),A.value=!1}),H=()=>{V()},F=()=>{V(),s()},{setModalModel:z,pushUseModalIds:M,popUseModalIds:j}=t.inject(wr,{pushUseModalIds:U=>{},popUseModalIds:()=>{},setModalModel:(U,X)=>{}}),J=t.computed(()=>{let U=e.componentList;const X=Le.cloneDeep(e.componentList),oe=r(),ce=i(),pe={containerMap:oe,combinationMap:ce};a&&(U=vl({...pe,componentList:X,sourceList:e.allComponentList})),U=bl({...pe,componentList:U,sourceList:e.allComponentList});const Ce=[];for(const we of U)if(we.type==="ecanCirculate"){const Be=pa(oe,t.unref(X),we.id);we.componentList=Be,Ce.push(...Be.map(Ee=>Ee.id))}if(Ce!=null&&Ce.length)for(const we of Ce){const Be=U.findIndex(Ee=>Ee.id===we);Be!==-1&&U.splice(Be,1)}return U}),q=()=>{const U=e.id;let X=[];const oe=e.componentList;Array.isArray(oe)&&(X=oe.map(ce=>ce.id),z(U,[...new Set(X)]))},P=t.ref(!1),Y={};for(const U of e.requestList)Y[U.requestName]=He(U);const $=async()=>{var U;for(const X in Y){const oe=await Y[X]();d(X,((U=oe==null?void 0:oe.data)==null?void 0:U.data)||{})}P.value=!0};t.watch(()=>A.value,async U=>{if(U)w.value=!1,await $(),M(e.id),q(),await t.nextTick(()=>{O(),window.addEventListener("resize",E),_(),w.value=!0}),R();else{for(const X in Y)d(X,{});j(),window.removeEventListener("resize",E),I()}});const Q=t.computed(()=>t.unref(k)>=1),ie=t.computed(()=>e.fullModal),ne=t.computed(()=>{let U="ecan-modal";return t.unref(Q)&&(U+=" ecan-full-width-modal"),t.unref(ie)&&(U+=" ecan-full-modal"),U});return Oe(e,{showModal:N,hideModal:V}),{modalRef:B,containStyle:S,contentStyle:C,getContainer:c,modalStyle:g,modalWith:u,isFullModal:ie,style:p,visible:A,showModal:N,onOk:H,onCancel:F,isFullWidth:Q,wrapClassName:ne,ready:w,usedComponentList:J,isMobile:a,readyIds:n,hasOwn:Zt,onComponentReady:U=>{n.value.push(U)},formatTitle:T,requestLoaded:P}}}),Yh="",Kh="";function uf(e,o,n,a,r,i){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.requestLoaded&&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,g)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+g},[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 Et=Se(ye(ff,[["render",uf],["__scopeId","data-v-513bc596"]]));et.use([It.CanvasRenderer,xt.PieChart,ke.TitleComponent,ke.ToolboxComponent,ke.TooltipComponent,ke.LegendComponent]);const hf=t.defineComponent({name:"EcanPie",props:{...ma},components:{Spin:zt,Echarts:St,EcanModal:Et},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(Ve,{pageMode:"normal",fontFamily:""}),r=t.ref(!1),i=Te(e),s=t.ref([]),l=t.ref(),d=t.ref({}),c=t.computed(()=>{let{data:I=[]}=t.unref(s)[0]||{};if(Array.isArray(e.colors)){const A=e.isUseLabelColors,R=e.colors;I=I.map((T,v)=>({label:A?{color:R[v]}:{},...T}))}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(){Qt(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 A;r.value=!0,(A=l.value)==null||A.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(){fe.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:A=>{const{marker:R,seriesName:T,name:v,value:D,percent:N,data:V}=A||{};return _e(e.tooltipFormatter,{textData:{marker:R,name:v,value:D,percent:N,a:T,b:v,c:D,d:N,...V}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.unref(d),color:e.colors,series:[{data:I,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:r.value?$e:e.labelFontSize,position:e.labelPosition,formatter:Uc(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:{}}}]}}),g=()=>{const I=r.value?$e: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:I+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:I}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:A=>{const{data:R}=s.value[0]||{};let T=0,v,D="0%";if(R)for(const N of R)N.name===A&&(v=+N.value),T+=+N.value;return T&&(D=`${(v/T*100).toFixed(2)}%`),ln(e.legendFormatter,{name:A,value:v,percent:D})}}},m=()=>{r.value=!1},{getGlobalModel:f,setGlobalModel:y}=t.inject(Ie,{getGlobalModel:I=>{},setGlobalModel:(I,A)=>{}}),h=(I=[],A)=>{const{dataset:R}=qt(I,A);s.value=R},u=(I=[],A)=>{const R=qt(I,A);s.value=R.dataset};t.watch(()=>e.data,I=>{(e.dataType==="static"||t.unref(n)==="design")&&h(I)},{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],()=>{g()},{immediate:!0});const b=t.ref(!1),k=He(e),x=async()=>{var I,A;if(e.dataType==="request")try{b.value=!0;const R=await k();h((A=(I=R==null?void 0:R.data)==null?void 0:I.data)==null?void 0:A.rows,e.valueTypeDataFieldNames)}catch(R){console.error(R)}finally{b.value=!1}},S=Re(e);y(e.id,{type:e.type,RECORD:""});const p=S("click",I=>{const A=f(e.id);y(e.id,{...A,type:e.type,RECORD:I==null?void 0:I.data})}),C=Ke(e),w=async()=>{var I;try{b.value=!0;const A=await C(),{data:R}=(A==null?void 0:A.data)||{};if(R){const{columns:T=[],rows:v=[]}=((I=A==null?void 0:A.data)==null?void 0:I.data)??{};let D=[];if(T.length>0){const N=T[0],V=T[1];D=v.filter(H=>!!H).map(H=>({name:H[N],value:isNaN(H[V])?0:H[V]||0}))}u(D)}}catch(A){console.error(A)}finally{b.value=!1}},{loadedData:B}=t.inject(wt,{loadedData:{}}),L=t.ref(!1);t.watch(B,I=>{if(e.dataType==="indicator"){const A=rn(e.graphicConfig);A!=null&&A.length&&(!t.unref(L)&&ct(e.graphicConfig,I)?(L.value=!0,O()):ct(e.graphicConfig,I)||(L.value=!1))}},{deep:!0});const O=()=>{switch(e.dataType){case"indicator":ct(e.graphicConfig,t.unref(B))&&w();break;case"request":x();break}};Oe(e,{resetRecord:()=>{const I=e.id,A=f(I);y(I,{...A,RECORD:""})},refreshData:O,click:p}),o({refreshData:O});const{setRequest:_}=t.inject(qe,{setRequest:I=>{}});return typeof _=="function"&&_({id:e.id,requestFn:O,sortNum:e.requestSort}),{option:c,style:i,click:p,onClose:m,loading:b,ecanModal:l}}}),Qh="";function gf(e,o,n,a,r,i){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 Sl=Se(ye(hf,[["render",gf]])),ba={...De,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},va=Ae(ba),Cl=["click","refreshData","resetRecord"];et.use([It.CanvasRenderer,xt.LineChart,ke.ToolboxComponent,ke.TitleComponent,ke.LegendComponent,ke.MarkLineComponent]);const mf=t.defineComponent({name:"EcanLine",props:{...va},components:{Spin:zt,Echarts:St,EcanModal:Et},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(Ve,{pageMode:"normal",fontFamily:""}),r=t.ref(),i=t.ref(!1),s=Te(e),l=t.ref([]),d=t.ref([]),c=t.ref(),g=t.computed(()=>i.value?$e:12),m=t.ref({});let f;const y=t.ref([]),h=t.computed(()=>{const v=e.xAxisLabelFormatter,D=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(){Qt(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 N;i.value=!0,(N=c.value)==null||N.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(){fe.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:g.value},show:e.tooltipShow,formatter:N=>{var z;const V=N.length;let H="",F=e.tooltipFormatter;f=(z=N[0])==null?void 0:z.data,F===""&&(F="{marker} {a} {c}");for(let M=0;M<V;M++){const{marker:j,seriesName:J,name:q,value:P,data:Y}=N[M]||{};if(M===0){let $=q;typeof q=="string"&&q[0]==="0"&&!isNaN(+q)&&($=(+q).toString()),H+=`${dt(v,$)}<br/>`}H+=_e(F,{textData:{marker:j,name:q,value:P,a:J,b:q,c:P||0,...Y}},{useNewline:!0,useSpace:!0}),H+="<br/>"}return H},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(d).map(N=>{let V={};return N&&typeof N=="object"?V={...N}:V={value:N},V}),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(N){return typeof N=="string"&&N[0]==="0"&&!isNaN(+N)&&(N=(+N).toString()),dt(v,N)}},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(N){return dt(D,N)}},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:(i.value?$e:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:i.value?$e:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(y).map(N=>({name:N.name,icon:e.legendType})),formatter:N=>ln(e.legendFormatter,{name:N})},series:t.unref(l)}}),u=()=>{i.value=!1},{getGlobalModel:b,setGlobalModel:k}=t.inject(Ie,{getGlobalModel:v=>{},setGlobalModel:(v,D)=>{}}),x=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),S=(v=[],D=!1)=>{let N;if(e.dataFieldConfigType==="key"){const z=D?e.keyTypeDataFieldNames:null;N=Bt(v,z)}else if(e.dataFieldConfigType==="value"){const z=D?e.valueTypeDataFieldNames:null;N=qt(v,z)}d.value=N.dimensions,y.value=N.dataset;const V=N.dataset,H=[],F=V.length;for(let z=0;z<F;z++){const M={};e.shadowColor&&(M.shadowColor=e.shadowColor,M.shadowBlur=e.shadowBlur,M.shadowOffsetY=e.shadowOffsetY,M.shadowOffsetX=e.shadowOffsetX),H.push({type:"line",...V[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,...M},...t.unref(x)})}l.value=H},p=(v=[],D,N=!1)=>{const H=Bt(v,N?D:null,!0);d.value=H.dimensions,y.value=H.dataset;const F=H.dataset,z=[],M=F.length;for(let j=0;j<M;j++){const J={};e.shadowColor&&(J.shadowColor=e.shadowColor,J.shadowBlur=e.shadowBlur,J.shadowOffsetY=e.shadowOffsetY,J.shadowOffsetX=e.shadowOffsetX),z.push({type:"line",...F[j],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[j]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[j],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...J},...t.unref(x)})}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],([v])=>{(e.dataType==="static"||t.unref(n)==="design")&&S(v)},{immediate:!0,deep:!0});const C=t.ref(!1),w=He(e),B=async()=>{var v,D;if(e.dataType==="request")try{C.value=!0;const N=await w();S((D=(v=N==null?void 0:N.data)==null?void 0:v.data)==null?void 0:D.rows,!0)}catch(N){console.error(N)}finally{C.value=!1}},L=Re(e);k(e.id,{type:e.type,RECORD:""});const O=L("click",v=>{const D=b(e.id);k(e.id,{...D,type:e.type,RECORD:e.tooltipShow?f:v.data})}),E=v=>{r.value.chart.containPixel("grid",[v.offsetX,v.offsetY])&&O()};e.tooltipShow?m.value["zr:click"]=E:m.value.click=O;const _=Ke(e),I=async()=>{var v;try{C.value=!0;const D=await _(),{columns:N=[],rows:V=[]}=((v=D==null?void 0:D.data)==null?void 0:v.data)??{};let H;N.length>0&&(H={name:N[0],types:N.slice(1).map(F=>({label:F,value:F}))}),p(V,H,!0)}catch(D){console.error(D)}finally{C.value=!1}},A=()=>{switch(e.dataType){case"indicator":I();break;case"request":B();break}};Oe(e,{refreshData:A,resetRecord:()=>{const v=e.id,D=b(v);k(v,{...D,RECORD:""})},click:O});const{setRequest:T}=t.inject(qe,{setRequest:v=>{}});return typeof T=="function"&&T({id:e.id,requestFn:A,sortNum:e.requestSort}),o({refreshData:A}),{option:h,style:s,click:O,loading:C,onClose:u,ecanModal:c,eventObj:m,echartRef:r}}}),Xh="";function yf(e,o,n,a,r,i){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 wl=Se(ye(mf,[["render",yf]])),Sa={...De,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},Ca=Ae(Sa),Al=["refreshData","click","resetRecord"];et.use([It.CanvasRenderer,xt.BarChart,ke.TitleComponent,ke.LegendComponent,ke.DatasetComponent,ke.ToolboxComponent,ke.MarkLineComponent]);const xf=t.defineComponent({name:"EcanBar",props:{...Ca},components:{Spin:zt,Echarts:St,EcanModal:Et,AModal:fe.Modal},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(Ve,{pageMode:"normal",fontFamily:""}),r=t.inject("usedComponentList",[]),i=t.ref(),s=t.ref(!1),l=t.ref(!1),d=t.ref(null),c=t.ref([]),g=Te(e),m=t.ref([]),f=t.ref(),y=t.ref({});let h;const u=t.computed(()=>s.value?$e:12),b=t.computed(()=>{const{gradientShow:J,gradientColors:q,gradientOffset:P,barBorderRadius:Y}=e,$=t.unref(m),Q=$.length,ie=[];for(let ne=0;ne<Q;ne++){const le={...$[ne],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(le.stack="stack"),le.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:U=>{let X="",oe=e.labelFormatter;oe===""&&(oe="{c}");const{seriesName:ce,name:pe,value:Ce,data:we}=U||{};return X+=_e(oe,{textData:{name:pe,value:Ce,a:ce,b:pe,c:Ce||0,...we}},{useNewline:!0,useSpace:!0}),X}},le.itemStyle={},J&&(le.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[ne]},{offset:P,color:q[ne]},{offset:1,color:q[ne]}]}}),Y){const U=Y.split(",");if(U!=null&&U.length){const X=[];for(const oe of U){const ce=parseFloat(oe);isNaN(ce)||X.push(ce)}le.itemStyle.borderRadius=X}}e.isShowMarkLine&&(le.markLine={data:[{type:e.markLineType}]}),ie.push(le)}return ie}),k=t.ref([]),x=t.ref(!1),S=t.computed(()=>{const J=e.yAxisLabelFormatter,q=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 P=i.value.chart.getOption(),{xAxis:Y}=P||{};Y&&Y.length&&(c.value=Y[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(){Qt(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 P;s.value=!0,(P=f.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(){fe.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:P=>{var ie;const Y=P.length;let $="",Q=e.tooltipFormatter;h=(ie=P[0])==null?void 0:ie.data,Q===""&&(Q="{marker} {a} {c}");for(let ne=0;ne<Y;ne++){const{marker:le,seriesName:U,name:X,value:oe,data:ce}=P[ne]||{};if(ne===0){let pe=X;typeof X=="string"&&X[0]==="0"&&!isNaN(+X)&&(pe=(+X).toString()),$+=`${dt(q,pe)}<br/>`}$+=_e(Q,{textData:{marker:le,name:X,value:oe,a:U,b:X,c:oe||0,...ce}},{useNewline:!0,useSpace:!0}),$+="<br/>"}return $},textStyle:{color:e.tooltipTextStyleColor,fontSize:u.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?$e:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:s.value?$e:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(m).map((P,Y)=>({name:P.name,itemStyle:{color:e.colors[Y]},icon:e.legendType})),formatter:P=>ln(e.legendFormatter,{name:P})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(B),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(P){return typeof P=="string"&&P[0]==="0"&&!isNaN(+P)&&(P=(+P).toString()),dt(q,P)}},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(k):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(P){return dt(J,P)}},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(b)}}),p=()=>{s.value=!1},C=(J=[],q=!1)=>{let P={};if(e.dataFieldConfigType==="key"){const Y=q?e.keyTypeDataFieldNames:null;P=Bt(J,Y)}else if(e.dataFieldConfigType==="value"){const Y=q?e.valueTypeDataFieldNames:null;P=qt(J,Y)}m.value=P.dataset,k.value=P.dimensions},w=(J=[],q,P=!1)=>{const $=Bt(J,P?q:null,!0);e.defaultRangeValue&&_i({props:e,componentList:t.unref(r),getGlobalModel:V},$),m.value=$.dataset,k.value=$.dimensions},B=t.computed(()=>t.unref(k).map(J=>{let q={};return J&&typeof J=="object"?q={...J}:q={value:J},q}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([J])=>{(e.dataType==="static"||t.unref(n)==="design")&&C(J)},{immediate:!0,deep:!0});const L=He(e),O=async()=>{var J,q;try{x.value=!0;const P=await L();C((q=(J=P==null?void 0:P.data)==null?void 0:J.data)==null?void 0:q.rows,!0)}catch(P){console.error(P)}finally{x.value=!1}},E=Ke(e),_=async()=>{var J;try{x.value=!0;const q=await E(),{columns:P=[],rows:Y=[]}=((J=q==null?void 0:q.data)==null?void 0:J.data)??{};let $;P.length>0&&($={name:P[0],types:P.slice(1).map(Q=>({label:Q,value:Q}))}),w(Y,$,!0)}catch(q){console.error(q)}finally{x.value=!1}},{loadedData:I}=t.inject(wt,{loadedData:{}}),A=t.ref(!1);t.watch(I,J=>{if(e.dataType==="indicator"){const q=rn(e.graphicConfig);q!=null&&q.length&&(!t.unref(A)&&ct(e.graphicConfig,J)?(A.value=!0,R()):ct(e.graphicConfig,J)||(A.value=!1))}},{deep:!0});const R=()=>{switch(e.dataType){case"indicator":ct(e.graphicConfig,t.unref(I))&&_();break;case"request":O();break}},T=(J,q)=>!!t.unref(c)[q.value].value.includes(J),v=async()=>{l.value=!1;const J=i.value.chart.getOption();for(let q=0;q<7;q++)await D(J,q)},D=(J,q)=>new Promise(P=>{setTimeout(()=>{const{series:Y,color:$,xAxis:Q}=J,ie=i.value.chart,{splitArea:ne={}}=Q[0]||{};Y.forEach((le,U)=>{const X=le.data;let oe="";q%2?oe=$[U]+"a8":oe=$[U],X[d.value].itemStyle={color:oe}}),q%2?(ne.show=!0,ne.areaStyle.color=t.unref(c).map((le,U)=>U===d.value?"#ff003b26":"")):ne.show=!1,ie.setOption({series:Y,xAxis:Q}),P()},200)});o({refreshData:R});const N=Re(e),{getGlobalModel:V,setGlobalModel:H}=t.inject(Ie,{getGlobalModel:J=>{},setGlobalModel:(J,q)=>{}});H(e.id,{type:e.type,RECORD:""});const F=N("click",J=>{const q=V(e.id);H(e.id,{...q,type:e.type,RECORD:e.tooltipShow?h:J.data})}),{setRequest:z}=t.inject(qe,{setRequest:J=>{}});typeof z=="function"&&z({id:e.id,requestFn:R,sortNum:e.requestSort});const M=()=>{const J=e.id,q=V(J);H(J,{...q,RECORD:""})},j=J=>{i.value.chart.containPixel("grid",[J.offsetX,J.offsetY])&&F()};return e.tooltipShow?y.value["zr:click"]=j:y.value.click=F,Oe(e,{refreshData:R,click:F,resetRecord:M}),{option:S,style:g,refreshData:R,click:F,loading:x,onClose:p,ecanModal:f,echartRef:i,handleLocationOk:v,onFilterOption:T,locationVisible:l,locationValue:d,locationNames:c,eventObj:y}}}),t1="",n1="",pf=e=>(t.pushScopeId("data-v-d8caf47f"),e=e(),t.popScopeId(),e),bf={class:"location-wrap"},vf=pf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Sf(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),g=t.resolveComponent("a-select"),m=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(m,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",bf,[vf,t.createVNode(g,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=f=>e.locationValue=f),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,(f,y)=>(t.openBlock(),t.createBlock(c,{key:y,value:y},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const kl=Se(ye(xf,[["render",Sf],["__scopeId","data-v-d8caf47f"]])),wa={...De,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:""},Aa=Ae(wa),Tl=["click","refreshData","resetRecord"];et.use([It.CanvasRenderer,xt.ScatterChart,ke.ToolboxComponent,ke.TitleComponent,ke.TooltipComponent,ke.LegendComponent,ke.MarkLineComponent]);const Cf=t.defineComponent({name:"EcanScatter",props:{...Aa},components:{Spin:zt,Echarts:St,EcanModal:Et},setup(e){const{pageMode:o,fontFamily:n}=t.inject(Ve,{pageMode:"normal",fontFamily:""}),a=t.ref(!1),r=Te(e),i=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?$e:12),d=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),c=t.computed(()=>{const w=e.xAxisLabelFormatter,B=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(){Qt(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 L;a.value=!0,(L=s.value)==null||L.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(){fe.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(L){return typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(L=(+L).toString()),dt(w,L)}},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(L){return dt(B,L)}},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(L){var R;const{marker:O,seriesName:E}=L,_=((R=L==null?void 0:L.data)==null?void 0:R.record)??{},{name:I,value:A}=_;return _e(e.tooltipFormatter,{textData:{marker:O,seriesName:E,a:E,b:I,c:A,..._}})},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(i),type:"scatter",symbolSize:e.symbolSize,...t.unref(d)}]}}),{getGlobalModel:g,setGlobalModel:m}=t.inject(Ie,{getGlobalModel:w=>{},setGlobalModel:(w,B)=>{}}),f=(w=[],B)=>{const{name:L="name",value:O="value"}=B||{};i.value=w.map(E=>({value:[E[L],E[O]],record:E}))};t.watch(()=>e.data,w=>{(e.dataType==="static"||t.unref(o)==="design")&&f(w)},{immediate:!0,deep:!0});const y=t.ref(!1),h=He(e),u=async()=>{var w,B;if(e.dataType==="request"){y.value=!0;try{const L=await h();f((B=(w=L==null?void 0:L.data)==null?void 0:w.data)==null?void 0:B.rows,e.dataFieldNames)}catch(L){console.error(L)}finally{y.value=!1}}},b=()=>{a.value=!1},k=Re(e);m(e.id,{type:e.type,RECORD:""});const x=k("click",w=>{const B=e.id,L=g(B);m(B,{...L,type:e.type,RECORD:w==null?void 0:w.data})});Oe(e,{refreshData:()=>{u()},click:x,resetRecord:()=>{const w=e.id,B=g(w);m(w,{...B,RECORD:""})}});const{setRequest:C}=t.inject(qe,{setRequest:w=>{}});return typeof C=="function"&&C({id:e.id,requestFn:u,sortNum:e.requestSort}),{option:c,style:r,click:x,loading:y,onClose:b,ecanModal:s}}}),a1="";function wf(e,o,n,a,r,i){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 Bl=Se(ye(Cf,[["render",wf]])),ka={...De,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},Ta=Ae(ka),Af=t.defineComponent({name:"EcanCustomGraph",props:{...Ta},components:{Echarts:St},setup(e){const o=Te(e),n=t.ref();return t.watch(()=>e.optionCode,a=>{try{const r=eval;n.value=r(a)}catch(r){console.error(r)}},{immediate:!0}),{style:o,myOption:n,echarts:cs}}});function kf(e,o,n,a,r,i){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 El=Se(ye(Af,[["render",kf]])),Ba={...De,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},Ea=Ae(Ba),Dl=["refreshData","click","resetRecord"];et.use([It.CanvasRenderer,xt.BarChart,xt.LineChart,ke.TitleComponent,ke.LegendComponent,ke.DatasetComponent,ke.ToolboxComponent,ke.MarkLineComponent]);const Tf=t.defineComponent({name:"EcanComboGraph",props:{...Ea},components:{Spin:zt,Echarts:St,EcanModal:Et,AModal:fe.Modal},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(Ve,{pageMode:"normal",fontFamily:""}),r=t.inject("usedComponentList",[]),{getGlobalModel:i,setGlobalModel:s}=t.inject(Ie,{getGlobalModel:q=>{},setGlobalModel:(q,P)=>{}}),l=t.ref(),d=t.ref(!1),c=t.ref(!1),g=t.ref(null),m=t.ref([]),f=t.ref({});let y;const h=Te(e),u=t.ref([]),b=t.ref([]),k=t.ref(),x=t.ref([]),S=t.computed(()=>d.value?$e:12),p=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 q=l.value.chart.getOption(),{xAxis:P}=q||{};P&&P.length&&(m.value=P[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(){Qt(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 q;d.value=!0,(q=k.value)==null||q.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(){fe.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?$e:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:d.value?$e:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(x).map((q,P)=>({name:q.name,itemStyle:{color:e.colors[P]},icon:e.legendType})),formatter:q=>ln(e.legendFormatter,{name:q})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:q=>{var ie;const P=q.length;let Y="",$=e.tooltipFormatter;y=(ie=q[0])==null?void 0:ie.data,$===""&&($="{marker} {a} {c}");const Q=e.seriesTypes;for(let ne=0;ne<P;ne++){const le=Q[ne],{tooltipFormatter:U}=le||{},{marker:X,seriesName:oe,name:ce,value:pe,data:Ce}=q[ne]||{};if(ne===0){let we=ce;typeof ce=="string"&&ce[0]==="0"&&!isNaN(+ce)&&(we=(+ce).toString()),Y+=`${dt(e.xAxisLabelFormatter,we)}<br/>`}Y+=_e(U||$,{textData:{marker:X,name:ce,value:pe,seriesName:oe,a:oe,b:ce,c:pe||0,...Ce}},{useNewline:!0,useSpace:!0}),Y+="<br/>"}return Y},textStyle:{color:e.tooltipTextStyleColor,fontSize:S.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(b).map(q=>{let P={};return q&&typeof q=="object"?P={...q}:P={value:q},P}),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(q){return typeof q=="string"&&q[0]==="0"&&!isNaN(+q)&&(q=(+q).toString()),dt(e.xAxisLabelFormatter,q)}},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(O),series:t.unref(u)})),C=()=>{d.value=!1},w=(q=[],P=!1)=>{let Y;if(e.dataFieldConfigType==="key"){const Q=P?e.keyTypeDataFieldNames:null;Y=Bt(q,Q)}else if(e.dataFieldConfigType==="value"){const Q=P?e.valueTypeDataFieldNames:null;Y=qt(q,Q)}b.value=Y.dimensions;const $=Y.dataset;x.value=Y.dataset,u.value=L($)},B=(q=[],P,Y=!1)=>{const Q=Bt(q,Y?P:null,!0);e.defaultRangeValue&&_i({props:e,componentList:t.unref(r),getGlobalModel:i},Q),b.value=Q.dimensions;const ie=Q.dataset;x.value=Q.dataset,u.value=L(ie)};function L(q){const P=[],Y=q.length,$=e.seriesTypes;for(let Q=0;Q<Y;Q++){const ie=$[Q],{type:ne,axisIndex:le}=ie||{};let U={type:ne,yAxisIndex:le,...q[Q]};if(ne==="line"){const X={};e.shadowColor&&(X.shadowColor=e.shadowColor,X.shadowBlur=e.shadowBlur,X.shadowOffsetY=e.shadowOffsetY,X.shadowOffsetX=e.shadowOffsetX),U={...U,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[Q]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[Q]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[Q],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...X}}}if(ne==="bar"){const{gradientShow:X,gradientColors:oe,gradientOffset:ce}=e,pe={};if(e.barBorderRadius){const Ce=e.barBorderRadius.split(",");if(Ce!=null&&Ce.length){const we=[];for(const Be of Ce){const Ee=parseFloat(Be);isNaN(Ee)||we.push(Ee)}pe.borderRadius=we}}X&&(pe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[Q]},{offset:ce,color:oe[Q]},{offset:1,color:oe[Q]}]}),U={...U,barWidth:e.barWidth,itemStyle:pe}}e.isShowMarkLine&&(U.markLine={data:[{type:e.markLineType}]}),P.push(U)}return P}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],([q])=>{(e.dataType==="static"||t.unref(n)==="design")&&w(q)},{immediate:!0,deep:!0});const O=t.computed(()=>{const q=e.yAxis;return q==null?void 0:q.map((P,Y)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:Y===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:Y===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter($){return dt(P.axisLabelFormatter,$)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:Y===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:Y===0?"right":"left"},max:e.yAxisMaxValue||null}))}),E=t.ref(!1),_=He(e),I=async()=>{var q,P;if(e.dataType==="request")try{E.value=!0;const Y=await _();w((P=(q=Y==null?void 0:Y.data)==null?void 0:q.data)==null?void 0:P.rows,!0)}catch(Y){console.error(Y)}finally{E.value=!1}},A=Ke(e),R=async()=>{var q;try{E.value=!0;const P=await A(),{columns:Y=[],rows:$=[]}=((q=P==null?void 0:P.data)==null?void 0:q.data)??{};let Q;Y.length>0&&(Q={name:Y[0],types:Y.slice(1).map(ie=>({label:ie,value:ie}))}),B($,Q,!0)}catch(P){console.error(P)}finally{E.value=!1}},{loadedData:T}=t.inject(wt,{loadedData:{}}),v=t.ref(!1);t.watch(T,q=>{if(e.dataType==="indicator"){const P=rn(e.graphicConfig);P!=null&&P.length&&(!t.unref(v)&&ct(e.graphicConfig,q)?(v.value=!0,D()):ct(e.graphicConfig,q)||(v.value=!1))}},{deep:!0});const D=()=>{switch(e.dataType){case"indicator":ct(e.graphicConfig,t.unref(T))&&R();break;case"request":I();break}},N=(q,P)=>!!t.unref(m)[P.value].value.includes(q),V=async()=>{c.value=!1;const q=l.value.chart.getOption();for(let P=0;P<7;P++)await H(q,P)},H=(q,P)=>new Promise(Y=>{setTimeout(()=>{const{series:$,color:Q,xAxis:ie}=q,ne=l.value.chart,{splitArea:le={}}=ie[0]||{};$.forEach((U,X)=>{const oe=U.data;let ce="";P%2?ce=Q[X]+"a8":ce=Q[X],oe[g.value].itemStyle={color:ce}}),P%2?(le.show=!0,le.areaStyle.color=t.unref(m).map((U,X)=>X===g.value?"#ff003b26":"")):le.show=!1,ne.setOption({series:$,xAxis:ie}),Y()},200)});o({refreshData:D});const F=Re(e);s(e.id,{type:e.type,RECORD:""});const z=F("click",q=>{const P=i(e.id);s(e.id,{...P,type:e.type,RECORD:e.tooltipShow?y:q==null?void 0:q.data})}),M=q=>{l.value.chart.containPixel("grid",[q.offsetX,q.offsetY])&&z()};e.tooltipShow?f.value["zr:click"]=M:f.value.click=z;const{setRequest:j}=t.inject(qe,{setRequest:q=>{}});return typeof j=="function"&&j({id:e.id,requestFn:D,sortNum:e.requestSort}),Oe(e,{resetRecord:()=>{const q=e.id,P=i(q);s(q,{...P,RECORD:""})},refreshData:D,click:z}),{style:h,option:p,click:z,loading:E,onClose:C,ecanModal:k,echartRef:l,handleLocationOk:V,onFilterOption:N,locationVisible:c,locationValue:g,locationNames:m,eventObj:f}}}),l1="",s1="",Bf=e=>(t.pushScopeId("data-v-b2e232e1"),e=e(),t.popScopeId(),e),Ef={class:"location-wrap"},Df=Bf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function If(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),g=t.resolveComponent("a-select"),m=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(m,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",Ef,[Df,t.createVNode(g,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=f=>e.locationValue=f),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,(f,y)=>(t.openBlock(),t.createBlock(c,{key:y,value:y},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Il=Se(ye(Tf,[["render",If],["__scopeId","data-v-b2e232e1"]])),Da={...De,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},Ia=Ae(Da),Rl=["refreshData","click","resetRecord"];et.use([It.CanvasRenderer,xt.RadarChart,ke.ToolboxComponent,ke.TitleComponent,ke.LegendComponent]);const Rf=t.defineComponent({name:"EcanRadar",props:{...Ia},components:{Spin:zt,Echarts:St,EcanModal:Et},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(Ve,{pageMode:"normal",fontFamily:""}),r=t.ref(),i=t.ref(!1),s=Te(e),l=t.ref([]),d=t.ref(),c=t.computed(()=>i.value?$e:12),g=t.ref([]),m=t.ref(e.valueTypeDataFieldNames.name),f=t.computed(()=>{const R=t.unref(g),T=R.length,v=[];for(let D=0;D<T;D++){const{name:N,data:V=[]}=R[D],H=[{name:N,value:V.map(M=>M.value)}];let F=e.colors[D];if(e.gradientShow){const{gradientOffset:M,gradientColors:j}=e;F={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[D]},{offset:M,color:j[D]},{offset:1,color:j[D]}]}}const z={type:"radar",name:N,data:H,areaStyle:{color:F,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:M=>{const{data:j,value:J}=M;let q=0,P="0%";if(j)for(const Y of j.value)q+=+Y;return q&&(P=`${(J/q*100).toFixed(2)}%`),_e(e.labelFormatter,{textData:{value:J,percent:P}},{useNewline:!1,useSpace:!1})}}};v.push(z)}return v}),y=t.computed(()=>{var N;const R=[],T=[],v=t.unref(g),D=v.length;for(let V=0;V<D;V++){const{data:H=[]}=v[V];for(let F=0;F<H.length;F++)T.push(H[F].value)}if((N=l.value)!=null&&N.length){const V=T!=null&&T.length?Math.max(...T)*1.2:0;for(const H of l.value)R.push({name:H,max:V})}return R}),h=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(){Qt(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 R;i.value=!0,(R=d.value)==null||R.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(){fe.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:R=>{let T="",v=e.tooltipFormatter;v===""&&(v="{marker} {a} {c}");for(let D=0;D<t.unref(y).length;D++){const N=t.unref(y)[D],{marker:V,seriesName:H,value:F}=R||{};D===0&&H&&(T+=`${H}<br/>`),T+=_e(v,{textData:{marker:V,name:N.name,value:F[D],a:N.name,b:N.name,c:F[D]||0,type:H}},{useNewline:!0,useSpace:!0}),T+="<br/>"}return T},position:e.tooltipPosition||void 0},radar:{indicator:t.unref(y),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:(i.value?$e:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:i.value?$e:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(g).map(R=>({name:R.name,icon:e.legendType})),formatter:R=>ln(e.legendFormatter,{name:R})},series:t.unref(f)})),u=()=>{i.value=!1},{getGlobalModel:b,setGlobalModel:k}=t.inject(Ie,{getGlobalModel:R=>{},setGlobalModel:(R,T)=>{}}),x=(R=[],T=!1)=>{let v;if(e.dataFieldConfigType==="key"){const D=T?e.keyTypeDataFieldNames:null;v=Bt(R,D)}else if(e.dataFieldConfigType==="value"){const D=T?e.valueTypeDataFieldNames:null;v=qt(R,D)}l.value=v.dimensions,g.value=v.dataset},S=(R=[],T,v=!1)=>{const N=Bt(R,v?T:null,!0);l.value=N.dimensions,g.value=N.dataset};t.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([R])=>{(e.dataType==="static"||t.unref(n)==="design")&&x(R)},{immediate:!0,deep:!0});const p=t.ref(!1),C=He(e),w=async()=>{var R,T;if(e.dataType==="request")try{p.value=!0;const v=await C();x((T=(R=v==null?void 0:v.data)==null?void 0:R.data)==null?void 0:T.rows,!0)}catch(v){console.error(v)}finally{p.value=!1}},B=Re(e);k(e.id,{type:e.type,RECORD:""});const L=R=>{const T=R.event.topTarget.__dimIdx;T!==void 0&&B("click",()=>{var V;const{value:v,name:D}=R.data||{},N=b(e.id);k(e.id,{...N,type:e.type,RECORD:{[t.unref(m)]:((V=t.unref(y)[T])==null?void 0:V.name)||"",[D]:v[T],seriesName:D}})})()},O=Ke(e),E=async()=>{var R;try{p.value=!0;const T=await O(),{columns:v=[],rows:D=[]}=((R=T==null?void 0:T.data)==null?void 0:R.data)??{};let N;v.length>0&&(m.value=v[0],N={name:v[0],types:v.slice(1).map(V=>({label:V,value:V}))}),S(D,N,!0)}catch(T){console.error(T)}finally{p.value=!1}},_=()=>{switch(e.dataType){case"indicator":E();break;case"request":w();break}};Oe(e,{refreshData:_,resetRecord:()=>{const R=e.id,T=b(R);k(R,{...T,RECORD:""})},click:L});const{setRequest:A}=t.inject(qe,{setRequest:R=>{}});return typeof A=="function"&&A({id:e.id,requestFn:_,sortNum:e.requestSort}),o({refreshData:_}),{option:h,style:s,click:L,loading:p,onClose:u,ecanModal:d,echartRef:r}}}),d1="";function _f(e,o,n,a,r,i){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 _l=Se(ye(Rf,[["render",_f]])),Lf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Of="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP2R8sfAjqEgTgIbpi5RDgogIxAQAbFAWbsrShQoUvxZ7kz3q6jqve7p7pnZmdkf8MBqQezt9+rVq/peT3V1T381CLYZAoaAIWAI3FIEjj52+lNIdKbdTr787t995Z2qMXhLrbPJDQFDwBC4zRGYmj19HyJ9jxnuBIb/SSC6752V2etFWCxQ3+YniblvCBgCtw6BqRPNhwHhH4sWsONfWH9+/j8tUN+6dbGZDQFDwBBQBKZOnvkaMP05AGcJ8yVi98W3Vk69Yo8+7CQxBAwBQ+CWIsA4Ndv8FgB+NTODmd+MiD7/1tLcj3uZZo8+bumC2eSGgCFwOyHwyd/+q7EbVyb/AQEeLPj9ahrxFy405y/2w8IC9e10lpivhoAhcMsQmD713CFu078A4H0dI/j7PN5+cP2Zx29sZZgF6lu2bDaxIWAI3C4IHHnkuXsojn4AAJ/IfUY4u3Zj/2/A2V9NB+FggXoQQtZvCBgChsAOEJiaa97LDv4DAQ7nz6QBnlpfbnxjWLUWqIdFyuQMAUPAEBgRgenZpeMM7p8AYF8YyoD8xNrS/NOjqLJAPQpaJmsIGAKGwJAIfGy2OZ8CP4uAJEMQYdMx/9r68vx3B6k4cqL5JDO8euH5xjkdO2iA9RsChoAhYAiMhsDUyTN/DIx/kI9CuAJMx9eWT748SNPR2TOLCHgSAC6nBJ+5sNg4b4F6EGrWbwgYAobAkAj83G/9Te2dzXqTGR7tDMFVdukD68+fen0rNQfnmgf3p/AdQJjJ5Bjg1fXlxmcsUA+5ACZmCBgChsBWCNw1f3pyLKEXAeBzBbnXawQz5xcbF7Yae/dc8xg5+A4C3FuSY2isrTQWLVDbuWcIGAKGwA4RODbXvDtx8H0G+HQhk355bHzz+BvPPH5lK/VTjzTvhRh+CAAHcznmK5DizNrfNl6VtlED9YfyCwjwGsLMRYSrV/34jY8jtK4hJBsIySaCayEcOQrQ3kRIWghpGyG9A8G18SMA8L5L8M7J/XjFJTiZJgguRYBJYJcgcIo8kSK4MWSWdgBwDpnHvNy4b2NXR2AX/q8h1J1v17Yayhjtr8faXmfGTXZY59i3x5m8HDMCR7rnmm+HTE71xchBXuWEm69jHMaxHIt8GB/JeP+3byevN5Jj/7e2R/7vCBgTJoylPfbyrDJBNhLh8LfqyXRIB2NEjCmT6vHjIgDKxostYiehNKsdmS4i7YuAQMflY8ry8hWI76/KZ3aIPAb9Xkb+069OmJEye0RGbCHZBz/lGEO79xmIsnNSv3/p3qjaPqxcpirIF3ZO5u2aqSzX6a5I5ocD7KrIyaGTlc3N6uNH9SPa5X9vv/rZK57qvF3T9fCrt2DR6qIDfZYrzFf1t4q4Tt8Lg2HxDtNXHMv97Zq/gv8O+xngN6V8RwGEb68tN36l90ncaZ060ZwDhGZJjvlHkOJcFqSlb5RAjQsLC7iwcI7gZw6TBObpwwdo9Y3X6fBHD+HF1gYdPHCELl96Dyf3jdHVpEUH9k3gtQ9atG+sRjc4xYl6TBvXExofq0vwpno9ps0Nh1CLiF1C9XoNWzdTqsVELWaUfbvlsBZF1OaUJCi2naNahMRtxniMKGk7iqMIE04pojolSRvjqEaJcxRFhGnSpqgWEySAFCGl7CgiQtkTxeTSFAmRUiCMyPeTBKXEEcVIzrH2O2aRxzT17ZBKYNU9AWlgJq8nk1f96NKERLMEKcz1ROj1ITofZQkcqn1yrO0SUUU+6BP9iIQsUdfrQUIS++RYgqDYrfZKP8t40iDr+0v6SKIziQYAR/KtNEtk1XGZPu0kVrtJ/c/mAf8tdkVergBYsA/EXGK1TwO47EU/onx6FCZAtZ/IzxP0SowHb5BcRPzeTwictefHvl+3ME73IO16EaqMD+2V/ny+6rgB82X2+Ol3YG8+T7C3OC+I/2V/ivN52HqMy+2hML6DX3l8Ae8unAO+fgF0XTy+O/S3Or4nzh27O/OKAZm/g9a37O+goLl7/fj02vLJJwBQjO27HZ1tStb7h9UgfT3CmcuLjcvF9pECtWbTM+cI3n2XoHUPws3LBIcmSbLmQ60JupRskGbK7Zt0IKmTZsdjLbqe1mhCMuK0RVxPCNgHanYxaSbsEmIXkWbCtZTAEdViyRAloDhsu4jiKCXNVJ3TDzlHEhzlb/k/wihCSrgYtDUYSbbnZaIINcFT+XJQTpk1qPs+DVYIFHtZjT+OJKqlxBhJv3wyQnBU/ZKNSrtEImCU2E6oZxOC7NkHcwmCKp8FXwlseb98qkQvk4+BPpj5jFjaO/rED4maEvykXWJfZx6vR8f7rNbbGvRJqutQgFU/ZP1lDjEXdW6G4Jt++v38/goh/gV5vYj4oJzJe/06D3vQvH2qozC/SPg2xUdk9ZYh86cTBcJ5WggKIbPIgnYxaIRIXUg9iqe2tybrzMfnnwRBJTsoz5e3ZheDTDA/Lo/Lzdfg2jE4v5j0G1/Rn1+cNAT7oJj7mLtS9tFHT/9P8EKPdXwpJ+v2N7N7aH+r9gZ/81je5Wcl1HT5q5caHTXM+pTtLY8r+VtZ190Lxj01yW3h760uN57aah750nBfCn+BCHNFOQZeWl+eL7VVzq6hzEf4MKOGhfDY49y7BJ+8Rx93TB85jHlmnbbxUHoH5kH7/QQnDySoGTZP4DWX4v6JMbyetn3wdtcQxuvI1xMCybT1cUUN+UZCsgfewDrX/GOLWkSt8PhCM+5IMm+HNYixzZuaect4lscW4BAiImgz+iDtMI4kA2d9XJGwwygiStsse0wgwVgywOJjB/KBMuIINVPWjNvLp4k8dtCUzT+OSPS23strxq6RWzPs/Fj6JRMPjxE05dOoSpJZhsxe9hE6SJFAH8tkFwUdx5LxM6KTSKeZt2by/rGCf0whGbzvR5FzYrbq95m1XDS8vMpJphweb2h4L86n8pIOix61Lx+vOKE+BtL5y/rloqefupBJS1CXWEMILvgjuAW79c5ArjY+GnWiiJqpI8MJ6h8YEBE4J7fvCM5fWfztPIp6vUqExwrhtrnz6S8Eu46gXl7B+WtZr0yxEIS8QHY7HhTnE4ZMPpeX08P5zD4EyzwxDRmkNyg8CJHbdu9IFq58r/qlt0TBr8xfCP52Hi+EAT31qN1d9vTK4EOw7GOPvwZ31sXjFvws3QlkeuRjXYAte8TRtb7e7846Vh6byHrrumfrm91Jeb+61qXnnZk/MfM7reyOK7/z2kE/0bOrS3MvDAzSDn5Y/dLQMXzt7ZXGN/uNHSWjHiqam5AhYAgYAoZANwLypSHH+mbHsbxXvjQEfFLe7NgKMwvUdkYZAoaAIbDHCBx9rPkQkn5p2PfNDgvUe7wIpt4QMAQMgX4I9HuzI43wIWEdDoOcZdTDoGQyhoAhYAhsA4ECHbwzmvml6xE+VH2zwzLqbQBsQwwBQ8AQ2AkCSmSJ+Bwg3lnUkzq4Pyu2NKx+y6iHRcrkDAFDwBAYEQFfv0OD9c+WhgZq+LDqLFAPi5TJGQKGgCGwDQRCsP5nQCzWAJFXNhfWlxt/NIzKUQN15Q37BVA6+cMAcPZip+ZTkVqeWSEUc9mEZq77TQSYBoBVgJ+6C+FtALhL2sIm1HP5QYR0He+Cj8J7AHAobeMlAPiIa+P78vXpHQdQ6DvyNerltK33F0pDDxun+/zfoY33JwhXAWDyAIBQ11U+0NSLcjzux40XdAklHSZASDy5jWEsy/vfGwAw5vvGAeAmOxyHcbjpUhwDgE3plv6bwmev+bnlnfFsU/1joLR5GaD2eLninH5MXQxH2SlVPnfY0+Vr7LAl09Rr0HIORcy/b64O+/Gy5TT6QIPP+4NcrVa2UenzmQ4ZX1N9wnxv5/rlfW5pERZ+sM0V9Mv77RD0ejHPt/GAlM/HOAZIEgDZFzY5SmT6rn3c1e79LAj2bijp7z4I83fpqUoOFAi4Z/aU/epnRAwRJJCC3xfcKcCTtXcmGOBSEQfFOSjuOWxv/OqxMN6qHn558/qsb5fNwd6iX1X/9uD4Zt3993tnTkmE6bn1el7NDIvrK43GoNUaJVCL7IfMxJmezERoTRBUmInXOMX9YzGxsBAlAKVxH2aip5ALM7FeS6klzERmbMWyF+ZiRJwzE4WdkHaYiUJqCQxEIYPkdHInr8UHEkqVmShMicBSFL62MhO1BoYTMggpB4Q8S1FZFZ5k4skrQrNWZqISTISMkrMHlWyipJEykzBjGCpzkZGc/KOswyozUcggWqxAGCI5SzEwJgJtG8gzH3szE4WH7mnggRHo2RRKIVeGYSChBCalrGmBPVhgGnr2QGAV+vYiM9GzDYvyHQZimZkY1iFjRm7FTMzJNh2acrnKQcYwlNM6IztUTuE+DMKcQlLtz/VkH5WyXj+uF2Muk+s9LrOvP1Ov4IP+mfnh935cZd4CfTv/YI/MaKx+5Pv4W2U0DmBiensCH7XIhCyN68GIrOCfMyh7MjEr616ksw/N4BwUErffzwCv1Qke2KpS3tRsU0gtv1uaheHc9Qi+tNWXiyMF6v61Pj6FF1s/2btaH+MRtVt7WesjohRgQK0PqUhBw9f60JogUutDmIE+mCNG5DglomqtD6Ha8fZrfURKWRPz+tT60AJKhdoh26/1obTxHdX6kKImQtULtT58DZP+tT5CuNqTWh85g7BY6yIw7rpqbZRrW2TRdEe1PooXm61qfRRrdgQGXSeay8Dt1b4o1SbpqrUR/A01RDK6/o78LdUKqdRiGbbWhxowqLZJd22Y7YffEUcyr0ZEv/iTpbnX+o3s9bqe1J2+QXB/v2A9UqD2aczDCHARs8JMecW8UPMjq5R3MNmgyy7BOyb34wdpgnntD3lcoDVAaj7LdmP+uK61NTyF3IVjrYAnNHKHLI8LNOv21ewk4wbJsjmSmhO++p3UAYk1o/QV7FxKEPs+X1WPwjFjrFXqfA0Qf8vts2jNpkWftMv4UAlPaeZS0IkZfQGnrDZIqEiXHWfV6rL6H6EqXZTPF6rThYzU1+MQ9rKnf0eAnn5epJmrfXKWEzJKpp/1B0q31NgItHAteZT5g5q2k5NbANVfpJD76nbZHYGnbxcp5DktXYOoz+CLFPLQH+bL9Wc1SXzdD1/vQ+s6FefzfRJzCpl5qKRXoJCXMs3stK9WtfOnsG8tZmyVqmv9MsJKVbs8P+6bQXZmy7LIggGdTD9XlFtW7uvS39uv7szZt+RFBvNPcNFfLUQYtuodR7VCXSeDL9+9jGZPRr/vJMiVecPTrcz6fn517pTK6537mzcP51dxPbeqkJTdcfULroP6izWoGeADYv7l1ZX5l/rpUwIM8mLxjRAGOI8JfKlYNa/PKo549TBxQ8AQMAQMAZg+ceZzTPgiMEx6OLgNjI+urTTO9oOnz+t7lyGB+6vBepSM2pbDEDAEDAFDoA8CP31y8dOOWX484G4fq7VS2u+vrjT+dECwlsx6y9f3LFDbaWcIGAKGwC4hMPXos9MYxf9W/KUXBDiz+vE3vwILC1IbsWvr9661A3jy7eXGX8oAC9S7tECmxhAwBAwBQUB+O3E8oRe59NuJ+L0a8ZfPLzbkBd2ewXqf42+GXx/P+7PX9yxQ27llCBgChsAuIyC/Rn5hs/4CsLJMdEPAV5LI/dKF5vzFvo9Cqq/vMb+0tjI/Y4F6lxfI1BkChoAhkCFwdLb5JwjwjQIibxLi599amvtx32Cd/Y4i84+yn+WyQG3nlCFgCBgCe4jA0dnmPAI/m/8EDcIl59wX31459Uq/ae9+rDkDMZzPyqBaoN7DBTLVhoAhYAgIAtOzS8cZ3LdDhQlpusnAv76+PP/dYRCyQD0MSiZjCBgChsAOEfjYidOfTZH+1Rcx0qfWDOieWFuaf3qQagvUgxCyfkPAEDAEdgmBI488dw/F0Q8A4BOZSgT8s9Xlua9vNYUF6l1aAFNjCBgChsAwCEyfeu6Qa9O/I+Bnc3mGsxMHr574v7/+HSm02bVZoB4GWZMxBAwBQ2AXETg21xxPHPw9AzzYUcsvj423j7/xzONXqlNZoN5F8E2VIWAIGALDI8A4Ndv8FgB+tZNZ8+vg6g+svfDYalGPBerhUTVJQ8AQMAR2HYGjs82vf/irJE+F8o/vM/HPry82/tcC9a5DbQoNAUPAENg+AlMnmg8DwWlA+MLaYuO/7NHH9rG0kYaAIWAI7BkCx+aaB88vNuTXBbu2/wfAQwC29PHqBQAAAABJRU5ErkJggg==",Nf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Ff="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",Ra={...De,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"},_a=Ae(Ra),Ll=["click"],Mf=t.defineComponent({name:"EcanBorder",props:{..._a},setup(e){const o=Te(e,["background"]),n=t.computed(()=>{const{isTransparent:h,gradientShow:u,gradientColor:b,gradientOffset:k,gradientAngle:x,backgroundColor:S}=e;if(u){let p=b;return h&&(p="transparent"),p?{background:`linear-gradient(${x}, ${S}, ${p} ${k*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:h}=e;let u={};return h!=null&&h.length&&h.find(k=>k.emit==="showModal")&&(u={cursor:"pointer"}),u}),{theme:r}=t.inject(Ve,{theme:"light"}),i=t.computed(()=>{let h="";switch(e.titleMode){case"type-2":h="2";break}return h}),s=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":Lf,"../../assets/border-title-decoration-left2.png":Of})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":Nf,"../../assets/border-title-decoration-right2.png":Ff})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),d=t.computed(()=>({width:"100%",height:"100%"})),c=t.computed(()=>{const{borderRadius:h}=e,u=[],b={};if(h){const k=h.split(",");for(const x of k)(+x||+x==0)&&u.push(+x+"px")}return u!=null&&u.length&&(b.borderRadius=u.join(" ")),b}),m=Re(e)("click",()=>{}),f=t.ref([]);t.watch(()=>e.data,h=>{f.value=h},{immediate:!0,deep:!0}),Oe(e,{click:m});const{setGlobalModel:y}=t.inject(Ie,{setGlobalModel:(h,u)=>{}});return y(e.id,{type:e.type,value:f}),{style:o,gradientStyle:n,click:m,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),u1="",Dt=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),zf=["id"],Pf=Dt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),qf=Dt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Vf=Dt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Hf=Dt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),jf={class:"title-item"},Wf=["src"],Gf={class:"title"},Uf=["src"],$f=Dt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Yf=Dt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Kf=Dt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Zf=Dt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Qf={key:2,class:"left-title"},Jf={class:"title"};function Xf(e,o,n,a,r,i){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},[Pf,qf,Vf,Hf],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",jf,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Wf),t.createElementVNode("div",Gf,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Uf)])],2),$f,Yf,Kf,Zf],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Qf,[t.createElementVNode("div",Jf,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,zf)}const Ol=Se(ye(Mf,[["render",Xf],["__scopeId","data-v-8dd53b8f"]])),La={...De,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},Oa=Ae(La),Nl=["tabChange"],eu=t.defineComponent({name:"EcanTabs",props:{...Oa},components:{ASelect:fe.Select,ASelectOption:fe.SelectOption,MarqueeScroll:Vn},setup(e){const o=Te(e),n=t.ref(0);t.watch(()=>e.activeKey,h=>{n.value=h},{immediate:!0});const{pageMode:a}=t.inject(Ve,{pageMode:"normal"});let r=null;const i=()=>{const h=Array.isArray(t.unref(s))?t.unref(s).length-1:0;!e.isAutoScroll&&e.autoSwitch&&h>0&&(r=setInterval(()=>{const u=t.unref(n)+1;u<=h?n.value=u:n.value=0,l.value=t.unref(s)[t.unref(n)],m()},e.autoSwitchInterval*1e3))};t.onMounted(()=>{t.unref(a)!=="design"&&i()}),t.onBeforeUnmount(()=>{clearInterval(r)});const s=t.ref([]),l=t.ref({});t.watch(()=>e.data,h=>{s.value=h,l.value=Array.isArray(h)&&h.length>0?h[0]:{}},{immediate:!0,deep:!0});const d=h=>n.value===h,c=Re(e),{setGlobalModel:g}=t.inject(Ie,{setGlobalModel:(h,u)=>{}});g(e.id,{value:l,activeKey:n});const{emitRefreshPage:m}=t.inject(on,{emitRefreshPage:()=>{}}),f=h=>{let{tab:u,index:b}=h||{};if(h.label){const k=t.unref(s).findIndex(x=>x.title===h.label);k!==-1&&(b=k,u=t.unref(s)[k])}c("tabChange",()=>{!isNaN(+b)&&b!==t.unref(n)&&(l.value=u,n.value=b,m())})()},y=t.computed(()=>{const h=e.componentList.map(u=>parseFloat(u.left)+parseFloat(u.width)).sort((u,b)=>b-u)[0];return{width:h?h+"px":"100%"}});return Oe(e,{tabChange:f}),{style:o,activeKey:n,isActive:d,tabChange:f,myData:s,useImagePath:ht,pageMode:a,scrollWrapStyle:y}}}),g1="",tu=["id"],nu=["onClick"];function ou(e,o,n,a,r,i){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},[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})},[e.tabType==="tabs"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.myData,(c,g)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(g)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(g)?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:g,onClick:t.withModifiers(m=>e.tabChange({tab:c,index:g}),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(g)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,nu))),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,g)=>(t.openBlock(),t.createBlock(s,{key:g,value:g,onClick:m=>e.tabChange({tab:c,index:g})},{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)],12,tu)}const Fl=Se(ye(eu,[["render",ou],["__scopeId","data-v-b95bfc11"]])),Na={...De,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"},Fa=Ae(Na),Ml=["click","refreshData","resetRecord"];let zl=(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 au=t.defineComponent({name:"EcanCirculate",props:{...Fa,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll:Vn,Skeleton:Pt},setup(e,{expose:o}){const n=t.ref(!1),a=Te(e,["background"]),r=t.inject("usedComponentList",[]),i=t.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=t.inject(Ie,{getGlobalModel:B=>{},setGlobalModel:(B,L)=>{}}),d=t.ref([]),c=t.ref({}),{pageMode:g}=t.inject(Ve,{pageMode:"normal"}),m=t.computed(()=>{if(t.unref(i)){const B=document.body.clientWidth,L=e.sourceWidth||parseFloat(e.width);return B/L||1}else return 1});function f(B,L){const O=L.find(E=>E.id===e.id);if(O)for(const E of B)E.left=parseFloat(E.left)-parseFloat(O.sourceLeft||O.left)+"px",E.top=parseFloat(E.top)-parseFloat(O.sourceTop||O.top)+"px"}const y=B=>{const L=B.sort((I,A)=>parseFloat(I.top)-parseFloat(A.top))[0],O=B.sort((I,A)=>parseFloat(I.left)-parseFloat(A.left))[0],E=B.map(I=>parseFloat(I.left)+parseFloat(I.width)).sort((I,A)=>A-I)[0],_=B.map(I=>parseFloat(I.top)+parseFloat(I.height)).sort((I,A)=>A-I)[0];if(O&&E&&L&&_){const I=parseFloat(O.left),A=parseFloat(L.top);return{width:E-I,height:_-A,left:I}}else return{width:0,height:0,left:0}},h=t.ref({}),u=B=>{var N,V;const L=[],{graphicConfig:O,id:E,componentList:_,keyFieldMap:I,unitInterval:A,colNum:R}=e;let T=Le.cloneDeep(_),v=[];if((N=t.unref(r))!=null&&N.length)for(const H of t.unref(r))v.push(H),(V=H==null?void 0:H.componentList)!=null&&V.length&&v.push(...H.componentList);if(O.pageMode==="design"&&O.preview){const{containerMap:H}=O.pageConfig||{};v=O.componentList||[],v.push(e),T=pa(H,Le.cloneDeep(v),E)}f(T,v);const D=y(T);if(B!=null&&B.length){const{width:H,left:F,height:z}=D;let M=0,j=0;B.forEach((J,q)=>{J.index=q+1;const P=zl(),Y=Le.cloneDeep(T);for(const $ of Y){const Q=I.find(ne=>ne.keyName===$.keyName),ie=zl();if($.left=(parseFloat($.left)+M)*t.unref(m)+"px",$.top=(parseFloat($.top)+j)*t.unref(m)+"px",$.scale=t.unref(m),$.id=ie,$.keyName=$.name+"_"+ie,$.unitId=P,Q!=null&&Q.fieldName){const ne=$.text.match(/\{(.+?)\}/g);switch($.type){case"ecanText":{$.data={value:String(J[Q.fieldName])},ne!=null&&ne.length||($.text="{value}");break}case"ecanProportion":{$.data={percent:String(J[Q.fieldName])},ne!=null&&ne.length||($.text="{percent}");break}}}}R&&J.index%R===0?(M=0,j+=A+z):M+=A+H,L.push(...Y),h.value[P]=J}),c.value={width:((R||B.length)*(H+A)+F)*t.unref(m)+"px"}}d.value=L},b=Ke(e),k=async()=>{var B;try{n.value=!0;const L=await b(),{rows:O=[]}=((B=L==null?void 0:L.data)==null?void 0:B.data)??{};u(O)}catch(L){console.error(L)}finally{n.value=!1}},x=()=>{switch(e.dataType){case"indicator":k();break}};Oe(e,{refreshData:x,resetRecord:()=>{const B=e.id,L=s(B);l(B,{...L,RECORD:""})}}),o({refreshData:x}),l(e.id,{type:e.type,RECORD:""});const{setRequest:p}=t.inject(qe,{setRequest:B=>{}});typeof p=="function"&&p({id:e.id,requestFn:x,sortNum:e.requestSort});const C=Re(e);return{loading:n,style:a,myComponentList:d,scrollWrapStyle:c,pageMode:g,click:B=>{let L=B.target;if(L){let O=L.getAttribute("unitId");for(;!O&&!L.className.includes("ecan-");)L=L.parentElement,O=L.getAttribute("unitId");O&&C("click",()=>{const E=s(e.id);l(e.id,{...E,type:e.type,RECORD:t.unref(h)[O]})})()}}}}}),y1="",ru=["id"];function iu(e,o,n,a,r,i){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",style:t.normalizeStyle({height:e.height}),wrapStyle:{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","style"])):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,ru)}const Pl=Se(ye(au,[["render",iu],["__scopeId","data-v-7d2188ee"]])),Ma={...De,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:""},za=Ae(Ma),ql=["click"],Pa=t.defineComponent({name:"EcanImage",props:{...za},setup(e){const o=Te(e),n=t.computed(()=>ht(e.imgUrl)),{pageMode:a}=t.inject(Ve,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=t.inject(Ie,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Re(e)("click",()=>{const d=r(e.id);if(i(e.id,{...d,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...d,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",g=Oi(t.unref(a),c),m=e.href;let f=m||g;f=_e(f);const y=e.target;y&&(y!=="event"?window.open(f,"_"+y):window.parent.postMessage({type:"openPage",url:m},"*"))});return Oe(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),Vl=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},Hl=Pa.setup;Pa.setup=Hl?(e,o)=>(Vl(),Hl(e,o)):Vl;const p1="",lu=["src"];function su(e,o,n,a,r,i){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,lu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const jl=Se(ye(Pa,[["render",su],["__scopeId","data-v-47ea6e7c"]])),qa={...De,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Va=Ae(qa),cu=t.defineComponent({name:"EcanIframe",props:{...Va},setup(e){const o=Te(e),{contextRequestUrl:n}=t.inject(Ve,{contextRequestUrl:""}),a=t.computed(()=>{let r=_e(e.link);if(e.linkType==="erd"&&r!=null){let i=t.unref(n);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${q0||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),v1="",du=["src"];function fu(e,o,n,a,r,i){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,du)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Wl=Se(ye(cu,[["render",fu],["__scopeId","data-v-19bc100c"]])),Ha={...De,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},ja=Ae(Ha),Gl=["click","refreshData","resetRecord","exportTableData"],uu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC",hu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",gu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/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==",Wa=t.defineComponent({name:"EcanTable",components:{Skeleton:Pt,AButton:fe.Button,AInput:fe.Input,ACheckboxGroup:fe.CheckboxGroup,ATable:fe.Table,ATableSummary:fe.TableSummary,ATableSummaryRow:fe.TableSummaryRow,ATableSummaryCell:fe.TableSummaryCell},props:{...ja},setup(e,{expose:o}){const n=t.ref(!1),a=t.computed(()=>{const G=Le.cloneDeep(e.columns);return e.isUseSeq&&G.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&G.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),G}),r=t.ref(),i=t.ref(!1),s=Te(e),l=t.ref([]),d=t.computed(()=>e.scrollX),c=t.ref(0),g=()=>{let G=0;switch(e.size){case"small":G=50;break;case"middle":G=53;break;default:G=65;break}return G};t.watchEffect(()=>{var G;(G=l.value)!=null&&G.length&&e.height&&t.nextTick(()=>{let K=parseFloat(e.height);const ee=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 ae=0;if(re&&(K-=(re==null?void 0:re.clientHeight)||0),se&&e.isSummaryFixed&&(ae=(se==null?void 0:se.clientHeight)||0,K-=ae),e.paginationShow){let te=0;te=g(),te&&(K-=te)}(ee==null?void 0:ee.clientHeight)>K?c.value=K:c.value=0,t.nextTick(()=>{if(ae){const te=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),de=(te==null?void 0:te.clientHeight)||0;ae!==de&&t.unref(c)&&(c.value=K+ae-de)}})})});const m=t.ref([]),f=t.ref([]),y=t.ref([]),h=t.ref([]),u=t.ref(0),b=t.ref(1),k=t.ref(e.paginationPageSize||10),x=t.reactive([]),S=(G,K)=>{let ee="";return G.forEach((re,se)=>{const{value:ae,rule:te}=re;re.conditions?ee+=`(${S(re.conditions,re.join)})`:ae&&te&&(ee+=`value ${te} '${ae}'`),ee+=`${se===G.length-1?"":K?" "+K+" ":""}`}),ee},p=(G=[])=>{var K,ee;if(Array.isArray(G)&&G.length>0){let re=G.length;const se=e.columnsFixedNum;if(e.dataType==="indicator"&&((K=t.unref(a))!=null&&K.length)){const{graphicConfig:{indicators:ae=[]}}=e;G.forEach((te,de)=>{if(t.unref(a)[de])for(const Pe in t.unref(a)[de])["dataIndex","title"].includes(Pe)||(te[Pe]=t.unref(a)[de][Pe]);const me=ae.find(Pe=>Pe.label===te.title),{showLabel:ve=""}=me||{};ve&&(te.title=ve)})}for(let ae=re-1;ae>=0;ae--)(ee=G[ae])!=null&&ee.isHidden&&G.splice(ae,1);re=G.length;for(let ae=0;ae<re;ae++){const te=G[ae];if(ae<se?te.fixed="left":te.fixed=!1,e.isSortByFront&&te.sorter){const mt=te.dataIndex;te.sorter=(We,rt)=>We[mt]-rt[mt]}const{cellAlign:de="center",cellColor:me,dataIndex:ve,title:Pe,tableFilter:Xe,headerCellAlign:vt,headerCellColor:Ot,overflow:fn,conditions:Nt}=te;Xe&&(x.push(ve),te.filterOptionsInputValue="",te.filterCheckboxGroupValue=[],te.customFilterDropdown=!0,te.onFilter=(mt,We)=>We[ve].toString().toLowerCase().includes(mt.toLowerCase())),Nt&&(te.conditionCode=S(Nt)),te.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:vt||"center",color:Ot||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),te.customCell=(mt,We)=>({style:{textAlign:de,color:me||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(P)===We&&e.clickHighlight},onClick:F("click",()=>{const rt=e.id,Bn=z(rt);mt={dataIndex:ve,title:Pe,...mt},M(rt,{...Bn,type:e.type,RECORD:mt})})}),fn==="ellipsis"?te.ellipsis=!0:te.ellipsis=!1,Array.isArray(te.children)&&p(te.children)}}},C=(G=[])=>{var ee;let K=Le.cloneDeep(G);return(ee=t.unref(h))!=null&&ee.length&&(K=Le.cloneDeep(t.unref(h))),e.isUseSeq&&K.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&K.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),p(K),K};t.watch(k,()=>{b.value=1,ie(!1)}),t.watch(r,G=>{i.value=!!G}),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],()=>{m.value=C(Le.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([G,K])=>{K==="static"&&(f.value=G)},{immediate:!0});const w=t.ref({}),B=G=>{if(Array.isArray(G)){const K=G.length,ee=x,re=ee.length,se={};for(let te=0;te<K;te++){const de=G[te];for(let me=0;me<re;me++){const ve=ee[me];if(se[ve])se[ve].add(de[ve]);else{const Pe=new Set;Pe.add(de[ve]),se[ve]=Pe}}}const ae={};for(const te in se)if(Object.prototype.hasOwnProperty.call(se,te)){const de=se[te],me=Array.from(de);ae[te]=me.map(ve=>({label:ve,value:ve}))}w.value=ae}};t.watch(()=>[e.isReverse,m.value,f.value],()=>{const G=t.unref(m),K=t.unref(f);if(B(K),e.isReverse){const{columns:ee,dataSource:re}=L(Le.cloneDeep(G),Le.cloneDeep(K));y.value=ee,l.value=re}else y.value=G,l.value=K},{immediate:!0});const L=(G,K)=>{const ee=G[0],re=[{title:ee.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ae=0;ae<K.length;ae++){const te=K[ae],de="col"+(ae+1);re.push({title:te[ee.dataIndex],dataIndex:de,key:de,align:"center"})}const se=[];for(let ae=1;ae<G.length;ae++){const te=G[ae],de={col0:te.title};for(let me=0;me<K.length;me++){const ve=K[me];de[`col${me+1}`]=ve[te.dataIndex]}se.push(de)}return{columns:re,dataSource:se}},O=t.ref(""),E=He(e),_=async(G=!0,K={})=>{var ee;try{G&&(n.value=!0),t.unref(O)&&(K.orderCondition=t.unref(O)),e.paginationShow&&(K={pageNum:t.unref(b),pageSize:t.unref(k)||"10",layer:"1",...K});const re=await E(K),{rows:se=[],total:ae=0}=((ee=re==null?void 0:re.data)==null?void 0:ee.data)||{};if(u.value=ae,Array.isArray(se)&&(f.value=se),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:te=[]}=e,de=te.find(me=>me.key==="dataSqlId");if((de==null?void 0:de.value)==="xt_jxzebg"){const me=se.filter(ve=>!ve.绩效总额).map(ve=>ve.ORG_NAME);me!=null&&me.length&&t.nextTick(()=>{fe.notification.warning({message:"提示",description:`当前时段${me.join("、")}绩效数据为空`,duration:3})})}}}catch(re){console.error(re)}finally{n.value=!1}},I=({current:G},K,ee)=>{if(b.value=G,ee&&Object.keys(ee).length>0){const{field:re,order:se}=ee,te={ascend:"asc",descend:"desc"}[se];re!=null&&te!=null&&te?O.value=re+" "+te:te||(O.value="")}e.isSortByFront||ie(!1)},A=t.computed(()=>{const G=e.simple,K=[e.paginationPosition],ee={};return e.isShowTotal&&(ee.showTotal=re=>`共 ${re} 条数据`),e.paginationShow&&{simple:G,position:K,total:t.unref(u),current:t.unref(b),pageSize:t.unref(k)||"10",showSizeChanger:!1,size:"large",...ee}}),R=G=>+G==1?"是":+G==0?"否":G,T=(G,K)=>{const{format:ee,retentiondigit:re,customFormatter:se,defaultVal:ae}=K;let te="";if(ee==null||ee==="")te=G;else{const de={money:Oo,percentage:Tn,contrast:Tn,boolean:R,decimals:Yc,custom:Ri};de[ee]||(te=""),ee==="decimals"?te=de[ee](G,re)||"":ee==="custom"?te=de[ee](G,se)||"":te=de[ee](G)||""}return te||(te=ae),te},v=G=>G==="contrast"?"upDown":"",D=G=>{const{text:K,format:ee,declineColor:re="#39cf93",increaseColor:se="#ff512e"}=G;if(ee==="contrast"){const ae={fontSize:e.fontSize},te=parseFloat(K+"");return te>=0?ae.color=se:te<0&&(ae.color=re),ae}else return{}},N=t.computed(()=>{const{fontSize:G}=e;return{width:G,height:G,textIndent:`-${parseFloat(G)*2}px`,overflow:"hidden"}}),V=G=>{const{text:K,declineColor:ee="#39cf93",increaseColor:re="#ff512e"}=G,{fontSize:se}=e,ae=parseFloat(K+""),te={width:se,verticalAlign:"unset"};return ae>=0?te.filter=`drop-shadow(${re||"#ff512e"} ${se} -1px)`:ae<0&&(te.filter=`drop-shadow(${ee||"#39cf93"} ${se} -1px)`),te},H=G=>{const K=parseFloat(G+"");if(K>=0)return Po;if(K<0)return qo},F=Re(e),{getGlobalModel:z,setGlobalModel:M}=t.inject(Ie,{getGlobalModel:G=>{},setGlobalModel:(G,K)=>{}});M(e.id,{type:e.type,RECORD:""});const j=(G=[],K=[])=>{const ee=G.map(re=>({title:re,dataIndex:re,key:re}));h.value=Le.cloneDeep(ee),m.value=C(ee),f.value=K},J=Ke(e),q=async(G=!0)=>{var K,ee,re,se;try{G&&(n.value=!0);const ae=t.unref(O).split(" "),te={};e.isSortByFront||(te.sort={order:ae[1],field:ae[0]});const de=await J(te);j((ee=(K=de==null?void 0:de.data)==null?void 0:K.data)==null?void 0:ee.columns,(se=(re=de==null?void 0:de.data)==null?void 0:re.data)==null?void 0:se.rows)}catch(ae){console.error(ae)}finally{n.value=!1}},P=t.ref(-1),Y=(G,K)=>({onClick:F("rowClick",()=>{const ee=e.id,re=z(ee);M(ee,{...re,type:e.type,RECORD:G}),P.value=K})}),{loadedData:$}=t.inject(wt,{loadedData:{}}),Q=t.ref(!1);t.watch($,G=>{if(e.dataType==="indicator"){const K=rn(e.graphicConfig);K!=null&&K.length&&(!t.unref(Q)&&ct(e.graphicConfig,G)?(Q.value=!0,ie()):ct(e.graphicConfig,G)||(Q.value=!1))}},{deep:!0});const ie=(G=!0)=>{switch(e.dataType){case"request":_(G);break;case"indicator":ct(e.graphicConfig,t.unref($))&&q(G);break}},ne=()=>{const G=e.id,K=z(G);M(G,{...K,type:e.type,RECORD:""})},le=t.computed(()=>{const G=t.unref(y);let K=0;const{subTotalColumn:ee,subTotalName:re}=e;ee&&(K=G.findIndex(me=>me.dataIndex===ee),K<0&&(K=0));const se=[];let ae=0;for(let me=0;me<G.length;me++){const ve=G[me],{isCalcTotal:Pe}=ve;me===K?se.push({...ve,total:re}):Pe?(se.push({...ve,index:me,total:0}),ae++):se.push({...ve})}if(ae===0)return[];const te=t.unref(l),de=U(se);for(let me=0;me<de.length;me++){const ve=de[me];let Pe=0;const{isCalcTotal:Xe,dataIndex:vt}=ve;if(Xe===!0){for(let Ot=0;Ot<te.length;Ot++){const Nt=+te[Ot][vt];isNaN(Nt)||(Pe=new ls.Big(Pe).add(Nt).toNumber())}ve.total=Pe}}return de});function U(G){var ee;const K=[];for(const re of G)(ee=re.children)!=null&&ee.length?K.push(...U(re.children)):K.push(re);return K}const{setRequest:X}=t.inject(qe,{setRequest:G=>{}});typeof X=="function"&&X({id:e.id,requestFn:ie,sortNum:e.requestSort}),o({refreshData:ie});const oe=(G="",K)=>_e(G,K),ce=G=>{if(G!=="event")return{self:"_self",blank:"_blank"}[G]},pe=(G,K="")=>{G==="event"&&window.parent.postMessage({type:"openPage",url:K},"*")},Ce=(G,K)=>{G(K.filterCheckboxGroupValue)},we=(G,K)=>{G({confirm:!0}),K.filterOptionsInputValue="",K.filterCheckboxGroupValue=[]},Be=()=>{},Ee=G=>{const K=G.dataIndex;if(typeof K=="string"){let ee=t.unref(w)[K];const re=t.unref(G.filterOptionsInputValue).trim();return Array.isArray(ee)?(ee=ee.filter(se=>typeof se.label=="string"?se.label.toLowerCase().includes(re.toLowerCase()):!0),ee):[]}return[]},Fe=async()=>{var ve,Pe;const G="EXPORT_KEY";fe.message.loading({key:G,content:"正在导出...",duration:0});let K=[];if(e.dataType==="static")K=e.data;else if(e.dataType==="request"){const Xe={layer:"1"};t.unref(O)&&(Xe.orderCondition=t.unref(O));const vt=await E(Xe);K=((Pe=(ve=vt==null?void 0:vt.data)==null?void 0:ve.data)==null?void 0:Pe.rows)||{}}const ee=t.unref(y),re=[],se=[];ee==null||ee.forEach(Xe=>{re.push(Xe.dataIndex),se.push(Xe.title)});const ae=K.map(Xe=>Le.pick(Xe,re)),te=Xt.utils.book_new(),de=Xt.utils.aoa_to_sheet([se]),me=Xt.utils.sheet_add_json(de,ae,{skipHeader:!0,origin:"A2"});Xt.utils.book_append_sheet(te,me,"sheet"),Xt.writeFile(te,"表格数据.xlsx"),fe.message.success({key:G,content:"导出成功"})},Ze=(G,K=2)=>{const ee=+G*100;return isNaN(ee)||ee<=0?0:ee>=100?100:ee.toFixed(K)};Oe(e,{resetRecord:ne,refreshData:ie,exportTableData:Fe});const Qe=(G,K)=>{let ee=null;return e.stripedShow&&(ee=K%2===1?"table-striped":null),ee},Me=t.computed(()=>{let G=0;const{height:K,isPageBottom:ee}=e;return ee&&K&&(G=parseFloat(K)-g()),G?G+"px":"100%"}),Ue=t.computed(()=>{let G="#071655";return e.headerBackgroundColor&&(G="transparent"),G}),ot=t.computed(()=>{let G="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(G="transparent"),G}),gt=t.computed(()=>parseFloat(e.fontSize)+16),at=t.computed(()=>{let G="";const{paginationColor:K,paginationBgColor:ee,activePaginationColor:re,activePaginationBgColor:se,hoverBackgroundColor:ae}=e;return K&&(G+="p-color "),ee&&(G+="p-bg-color "),re&&(G+="active-p-color "),se&&(G+="active-p-bg-color "),ae&&(G+="hover-bg-color "),G}),je=(G,K)=>{const{conditionCode:ee}=G;return sn(ee,{value:K})};return{x:d,y:c,style:s,customRow:Y,pagination:A,formatFn:T,contrastClass:v,tableChange:I,summaryList:le,loading:n,onTouchHrefEvent:pe,handleHref:oe,handleHrefTarget:ce,useRowIndex:P,tableColumns:y,tableDataSource:l,useFilterOptions:Ee,useSetSelectedKeys:Ce,onResetFilter:we,onSearchFilterOptions:Be,exportTableData:Fe,handleProgressText:Ze,pageSizeVisible:i,pageSize:k,tableRef:r,rowClassName:Qe,tableHeight:Me,tableHeaderBgColor:Ue,tableBodyBgColor:ot,getChgStyle:D,chgBoxStyle:N,getChgBoxImgStyle:V,getChgBoxImgSrc:H,seqIcon1:uu,seqIcon2:hu,seqIcon3:gu,iconSize:gt,containerClass:at,getCellStyle:(G,K)=>{const{overflow:ee,conditionCode:re,attribute:se}=G,ae={};return ee==="ellipsis"&&(ae.overflow="hidden",ae.textOverflow="ellipsis"),re&&(se!=null&&se.color)&&je(G,K)&&(ae.color=se.color),se!=null&&se.icon&&(G==null?void 0:G.cellAlign)==="right"&&(ae.display="flex",ae.alignItems="center",ae.justifyContent="flex-end"),ae},isMatchCondition:je,getAttrImgSrc:G=>{const{attribute:K}=G;let ee="";return K!=null&&K.icon&&(ee=ht(K.icon)),ee},getAttrImgStyle:G=>{let K={};return(G==null?void 0:G.cellAlign)==="right"?K={marginRight:"5px"}:K={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(e.fontSize)+6+"px",...K}}}}}),Ul=()=>{t.useCssVars(e=>({"0de7b3a0":e.stripedColor,"08a5a8e7":e.tableHeaderBgColor,"6398a49c":e.tableBodyBgColor,"7613c960":e.paginationBgColor,dc2e69b6:e.paginationColor,"353ecc0c":e.activePaginationBgColor,"10f60b82":e.activePaginationColor,ca614f86:e.hoverBackgroundColor}))},$l=Wa.setup;Wa.setup=$l?(e,o)=>(Ul(),$l(e,o)):Ul;const C1="",w1="",mu=e=>(t.pushScopeId("data-v-c2087b7c"),e=e(),t.popScopeId(),e),yu=["id"],xu={key:0,class:"table-tool"},pu=t.createTextVNode("导出数据"),bu=t.createTextVNode(" 搜索 "),vu=t.createTextVNode(" 重置 "),Su=["src","width","height"],Cu=["src","width","height"],wu=["src","width","height"],Au={key:1},ku={key:1,class:"action-list"},Tu=["href","target","onClick"],Bu={key:2,class:"progress-cell"},Eu=["src"],Du=["title"],Iu=["title"],Ru=["src"],_u=["title"],Lu=["src"],Ou=["src"],Nu={class:"ant-pagination-options-quick-jumper"},Fu=mu(()=>t.createElementVNode("span",null,"条 / 页",-1));function Mu(e,o,n,a,r,i){const s=t.resolveComponent("a-button"),l=t.resolveComponent("a-input"),d=t.resolveComponent("a-checkbox-group"),c=t.resolveComponent("a-table-summary-cell"),g=t.resolveComponent("a-table-summary-row"),m=t.resolveComponent("a-table-summary"),f=t.resolveComponent("a-table"),y=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(y,{loading:e.loading},{default:t.withCtx(()=>{var h;return[e.isUseExport?(t.openBlock(),t.createElementBlock("div",xu,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[pu]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(f,{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:u,selectedKeys:b,setSelectedKeys:k,confirm:x,clearFilters:S})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(l,{value:u.filterOptionsInputValue,"onUpdate:value":p=>u.filterOptionsInputValue=p,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:u.filterCheckboxGroupValue,"onUpdate:value":p=>u.filterCheckboxGroupValue=p,class:"filter-checkbox",options:e.useFilterOptions(u),onChange:p=>e.useSetSelectedKeys(k,u)},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:()=>x()},{default:t.withCtx(()=>[bu]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(p=>e.onResetFilter(S,u),["stop"])},{default:t.withCtx(()=>[vu]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:u,index:b,text:k,record:x})=>{var S,p,C,w,B,L;return[u.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[b===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,Su)):b===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Cu)):b>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,wu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.fontSize})},t.toDisplayString(b+1),5)],64)):(t.openBlock(),t.createElementBlock("span",Au,t.toDisplayString(b+1),1))],64)):u.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",ku,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(O,E)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:E},[t.createElementVNode("a",{href:e.handleHref(O.href,x),target:e.handleHrefTarget(O.target),style:t.normalizeStyle({color:O.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:_=>e.onTouchHrefEvent(O.target,e.handleHref(O.href,x))},t.toDisplayString(O.title),13,Tu)]))),128))])):u.format==="progress"?(t.openBlock(),t.createElementBlock("div",Bu,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:u.progressColor||"#1890ff",height:u.progressWidth||"18px",width:`${e.handleProgressText(k,u.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(k)<100?u.progressTextColor||"#333":u.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(k,u.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(u,k)})},[e.isMatchCondition(u,k)&&(u==null?void 0:u.cellAlign)==="right"&&((S=u==null?void 0:u.attribute)!=null&&S.icon)?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.getAttrImgStyle(u)),src:e.getAttrImgSrc(u)},null,12,Eu)):t.createCommentVNode("",!0),u.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((p=u==null?void 0:u.customFormatter)==null?void 0:p.split("{value}")[0])||""},t.toDisplayString(((C=u==null?void 0:u.customFormatter)==null?void 0:C.split("{value}")[0])||""),9,Du)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(u.format)]),style:t.normalizeStyle(e.getChgStyle({...u,text:k})),title:u.format!=null?e.formatFn(k,u):k},[u.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...u,text:k})),src:e.getChgBoxImgSrc(k)},null,12,Ru)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(u.format!=null?e.formatFn(k,u):k||(u==null?void 0:u.defaultVal)),1)],14,Iu),u.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:2,title:((w=u==null?void 0:u.customFormatter)==null?void 0:w.split("{value}")[1])||""},t.toDisplayString(((B=u==null?void 0:u.customFormatter)==null?void 0:B.split("{value}")[1])||""),9,_u)):t.createCommentVNode("",!0),e.isMatchCondition(u,k)&&(u==null?void 0:u.cellAlign)!=="right"&&((L=u==null?void 0:u.attribute)!=null&&L.icon)?(t.openBlock(),t.createElementBlock("img",{key:3,style:t.normalizeStyle(e.getAttrImgStyle(u)),src:e.getAttrImgSrc(u)},null,12,Lu)):t.createCommentVNode("",!0)],4))]}),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(m,{key:0,fixed:e.isSummaryFixed},{default:t.withCtx(()=>[t.createVNode(g,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(u,b)=>(t.openBlock(),t.createBlock(c,{key:b,index:b,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:u.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(u.format)]),style:t.normalizeStyle({...e.getChgStyle({...u,text:u.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[u.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...u,text:u.total})),src:e.getChgBoxImgSrc(u.total)},null,12,Ou)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString((u.format!=null||u.format!=="")&&e.formatFn(u.total,u)),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},[(h=e.tableDataSource)!=null&&h.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[t.createElementVNode("div",Nu,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=u=>e.pageSize=u)},null,512),[[t.vModelText,e.pageSize]]),Fu])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,yu)}const Yl=Se(ye(Wa,[["render",Mu],["__scopeId","data-v-c2087b7c"]])),Ga={...De,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"},Ua=Ae(Ga),Kl=["click"];et.use([It.CanvasRenderer,xt.MapChart,xt.ScatterChart,ke.VisualMapComponent,ke.TooltipComponent,ke.GraphicComponent]);const zu=t.defineComponent({name:"EcanMap",components:{Echarts:St},props:{...Ua},setup(e){const o=He(e),n=He({...e.tooltipRequestData,requestHeaders:{}}),a=t.ref(),r=t.ref(""),i=t.ref(""),s=Te(e,["backgroundImage"]),l=t.ref(),d=t.computed(()=>ht(e.geoBackgroundImage)),c=t.computed(()=>ht(e.backgroundImage)),g=t.computed(()=>e.geoBackgroundImage?{image:t.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),m=t.computed(()=>{const A=e.symbolImage;return e.symbolImage?"image://"+ht(A):"circle"}),f=A=>{let R=e.tooltipFormatter;const T=R.match(/\{(.+?)\}/g);if(T==null||T.length===0)return R;for(let v=0;v<T.length;v++){const D=T[v];let N=D.slice(1,-1).trim();const V=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,H=N.match(V);for(let F=0;F<H.length;F++){const z=H[F],M=A[z];M!=null&&(N=N.replace(z,M))}R=R.replace(D,N)}return R.split(`
|
|
120
|
-
`)},y=t.ref(!1),h=t.ref("");let u=new AbortController;const b=(A,R)=>{const T=u.signal;y.value=!0,r.value=A,n({name:A,signal:T}).then(v=>{var D,N;if(v){const V=((N=(D=v==null?void 0:v.data)==null?void 0:D.data)==null?void 0:N.rows)||[];let H="";for(const F of V){const z=f(F)||[];if(z!=null&&z.length)for(const M of z)H+=`<div style="word-break: break-all;white-space: normal;">${M}</div>`}H=`<div style="max-width:200px;">${H}</div>`,i.value=H,R(t.unref(h),H)}else T.aborted?i.value="Loading":i.value=A,R(t.unref(h),i.value);y.value=!1})},k=t.computed(()=>{const A=e.geoCenter;let R;return typeof A=="string"&&A!==""&&(R=A.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:R,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(T,v,D)=>{h.value=v;const{name:N=""}=T,{requestUrl:V}=e.tooltipRequestData;if(!V)return N;if(t.unref(y))t.unref(r)!==N&&(u.abort(),u=new AbortController);else{if(t.unref(r)===N)return t.unref(i);b(N,D)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(g),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(m),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}]}}),x=t.ref(!1),S=async()=>{var T;x.value=!1;const A=e.mapJson,R=`map-${e.id}`;if(A!=null&&A.path){const v=await yt(((T=window==null?void 0:window.config)==null?void 0:T.uploadPath)+A.path);et.registerMap(R,(v==null?void 0:v.data)||{})}else et.registerMap(R,{});x.value=!0};t.watch(()=>e.mapJson,()=>{S()},{immediate:!0,deep:!0});const p=async()=>{var A,R;if(e.dataType==="request"){x.value=!1;try{const T=await o(),v=((R=(A=T==null?void 0:T.data)==null?void 0:A.data)==null?void 0:R.rows)||{},D=`map-${e.id}`;if(v!=null&&v.path){const N=await yt(v.path);et.registerMap(D,(N==null?void 0:N.data)||{})}else et.registerMap(D,{})}catch(T){console.error(T)}finally{x.value=!0}}},C=()=>{switch(e.dataType){case"request":p();break}},{getGlobalModel:w,setGlobalModel:B}=t.inject(Ie,{getGlobalModel:A=>{},setGlobalModel:(A,R)=>{}}),O=Re(e)("click",()=>{const A=w(e.id);B(e.id,{...A,RECORD:t.unref(a)})});Oe(e,{refreshData:C});const{setRequest:E}=t.inject(qe,{setRequest:A=>{}});return typeof E=="function"&&E({id:e.id,requestFn:C,sortNum:e.requestSort}),{option:k,style:s,isLoadedData:x,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{t.unref(a)&&O()},onMouseOver:(A={})=>{A.componentType==="geo"&&A.region?a.value=A.region:a.value=null}}}}),k1="",Pu=["src"];function qu(e,o,n,a,r,i){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,Pu),[[t.vShow,!1]])],4)}const Zl=Se(ye(zu,[["render",qu],["__scopeId","data-v-10f150ac"]])),$a={...De,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"},Ya=Ae($a),Ql=["selectChange","refreshData"],Vu=t.defineComponent({name:"EcanDataSelect",components:{ASelect:fe.Select,ASelectOption:fe.SelectOption},props:{...Ya},setup(e,{expose:o}){const n=Te(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=He(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var I;const{mode:_}=e;return(I=t.unref(i))!=null&&I.length?s.value:_==="multiple"||_==="tags"||_==="combobox"?[]:""},set:_=>{s.value=_}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:g}=t.inject(Ie,{getGlobalModel:_=>{},setGlobalModel:(_,I)=>{},getRecordValueByKeyName:_=>{}}),m=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:_,selectFirstOption:I,value:A}=e,R=g(A),T=m.value;if(_==="multiple"||_==="tags"||_==="combobox"){if(R)s.value=R.split(",");else if(I){const v=t.unref(i)[0];s.value=v?[v[T]]:[]}}else if(R)s.value=R;else if(I){const v=t.unref(i)[0];s.value=v?v[T]:""}},{immediate:!0});const f=(_,I)=>{const A=m.label,R=m.value;let T;const v=I[A],D=I[R];return v!=null?T=v:D!=null&&(T=D),(T==null?void 0:T.toLowerCase().indexOf(_==null?void 0:_.toLowerCase()))>=0},y=_=>{const{label:I,value:A,options:R}=e.dataFieldNames;if(R&&Array.isArray(_))if(_.some(T=>R in T)){const T={},v=[];_.forEach(D=>{T[D[R]]||(T[D[R]]=[]),T[D[R]].push({[I]:D[I],[A]:D[A]})});for(const D in T)v.push({[I]:D,[R]:T[D]});return v}else return _;else if(!R)return _},h=t.ref(!1),u=async()=>{var _,I;if(e.dataType==="request"){h.value=!0;try{const A=await r();if(i.value=y(((I=(_=A==null?void 0:A.data)==null?void 0:_.data)==null?void 0:I.rows)||[]),e.selectFirstOption){let R=t.unref(i)[0];if(m.options){const T=R[m.options];T&&T.length&&(R=T[0])}s.value=R[m.value]}}catch(A){console.error(A)}finally{h.value=!1}}},b=t.computed(()=>{let _=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const I=m.label,A=m.value;if(e.mode==="multiple")_=t.unref(i).filter(R=>t.unref(s).includes(R[A])).map(R=>R[I]);else{const R=t.unref(i).find(T=>t.unref(s)===T[A]);R&&(_=R[I])}}return _}),k=t.ref([]),x=t.computed(()=>{const _={};if(e.mode!=="multiple"){const I=t.unref(k).find(A=>A.value===t.unref(s));I&&(_.itemCodes=I.item_codes)}return _}),S=t.computed(()=>{const{value:_,label:I}=m,A=t.unref(i).find(R=>R[_]===t.unref(l));return A?{label:A[I],value:A[_]}:{}});c(e.id,{type:e.type,value:b,...t.unref(x),recordData:t.unref(S)});const C=Re(e)("selectChange",()=>{const _=e.id,I=d(_);c(_,{...I,...t.unref(x),RECORD:b,recordData:t.unref(S)})}),w=(_=[])=>{if(i.value=y(_),e.selectFirstOption){let I=t.unref(i)[0];if(m.options){const A=I[m.options];A&&A.length&&(I=A[0])}s.value=I[m.value]}c(e.id,{type:e.type,value:b,...t.unref(x),recordData:t.unref(S)})},B=Ke(e),L=async()=>{var _;try{h.value=!0;const I=await B(),{data:A}=(I==null?void 0:I.data)||{},R=m.label,T=m.value;if(A){const v=((_=I==null?void 0:I.data)==null?void 0:_.data)??[];k.value=v;const D=v.map(H=>({[R]:H.label,[T]:H.value})),{id:N}=e,V=d(N);c(N,{...V,...t.unref(x)}),w(D)}else w([])}catch(I){console.error(I)}finally{h.value=!1}},O=()=>{switch(e.dataType){case"indicator":{L();break}case"request":u();break}};Oe(e,{selectChange:C,refreshData:O});const{setRequest:E}=t.inject(qe,{setRequest:({id:_,sortNum:I,requestFn:A})=>{}});return typeof E=="function"&&E({id:e.id,requestFn:O,sortNum:e.requestSort}),o({refreshData:O}),{style:n,getPopupContainer:a,myValue:s,selectChange:C,options:i,filterOption:f,loading:h,resultValue:l}}}),B1="",E1="";function Hu(e,o,n,a,r,i){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 Jl=Se(ye(Vu,[["render",Hu],["__scopeId","data-v-3639c038"]])),Xl=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:kl,EcanBorder:Ol,EcanButton:sl,EcanCheckbox:dl,EcanCirculate:Pl,EcanComboGraph:Il,EcanCounter:Ki,EcanCustomGraph:El,EcanDataSelect:Jl,EcanDatePicker:tl,EcanIframe:Wl,EcanImage:jl,EcanInput:Qi,EcanLine:wl,EcanList:Gi,EcanMap:Zl,EcanModal:Et,EcanPageConfig:Ni,EcanPie:Sl,EcanProportion:$i,EcanProviderConfig:Fi,EcanRadar:_l,EcanRadio:yl,EcanRangePicker:il,EcanScatter:Bl,EcanScrollText:Vi,EcanSelect:ul,EcanTable:Yl,EcanTabs:Fl,EcanText:qi,EcanTimeDisplay:ji,EcanTreeSelect:gl,barComponentProps:Ca,barEvents:Al,barProps:Sa,borderComponentProps:_a,borderEvents:Ll,borderProps:Ra,buttonComponentProps:ra,buttonEvents:ll,buttonProps:aa,checkboxComponentProps:la,checkboxEvents:cl,checkboxProps:ia,circulateComponentProps:Fa,circulateEvents:Ml,circulateProps:Na,comboGraphComponentProps:Ea,comboGraphEvents:Dl,comboGraphProps:Ba,counterComponentProps:Ko,counterEvents:Yi,counterProps:Yo,customGraphComponentProps:Ta,customGraphProps:ka,dataSelectComponentProps:Ya,dataSelectEvents:Ql,dataSelectProps:$a,datePickerComponentProps:Xo,datePickerEvents:Ji,datePickerProps:Jo,iframeComponentProps:Va,iframeProps:qa,imageComponentProps:za,imageEvents:ql,imageProps:Ma,inputComponentProps:Qo,inputEvents:Zi,inputProps:Zo,lineComponentProps:va,lineEvents:Cl,lineProps:ba,listComponentProps:Go,listEvents:Wi,listProps:Wo,mapComponentProps:Ua,mapEvents:Kl,mapProps:Ga,modalComponentProps:xa,modalEvents:pl,modalProps:ya,pageConfig:Hn,pageConfigComponentProps:jn,pieComponentProps:ma,pieEvents:xl,pieProps:ga,proportionComponentProps:$o,proportionEvents:Ui,proportionProps:Uo,providerConfig:No,providerConfigComponentProps:Fo,radarComponentProps:Ia,radarEvents:Rl,radarProps:Da,radioComponentProps:ha,radioEvents:ml,radioProps:ua,rangePickerComponentProps:na,rangePickerEvents:nl,rangePickerProps:ta,scatterComponentProps:Aa,scatterEvents:Tl,scatterProps:wa,selectComponentProps:ca,selectEvents:fl,selectProps:sa,tableComponentProps:ja,tableEvents:Gl,tableProps:Ha,tabsComponentProps:Oa,tabsEvents:Nl,tabsProps:La,textComponentProps:zo,textEvents:Mi,textProps:Mo,timeDisplayComponentProps:jo,timeDisplayEvents:Hi,timeDisplayProps:Ho,treeSelectComponentProps:fa,treeSelectEvents:hl,treeSelectProps:da},Symbol.toStringTag,{value:"Module"})),ju={install:e=>{Object.keys(Xl).forEach(o=>{const n=Xl[o];n.install&&e.use(n)})}};W.EcanBar=kl,W.EcanBorder=Ol,W.EcanButton=sl,W.EcanCheckbox=dl,W.EcanCirculate=Pl,W.EcanComboGraph=Il,W.EcanCounter=Ki,W.EcanCustomGraph=El,W.EcanDataSelect=Jl,W.EcanDatePicker=tl,W.EcanIframe=Wl,W.EcanImage=jl,W.EcanInput=Qi,W.EcanLine=wl,W.EcanList=Gi,W.EcanMap=Zl,W.EcanModal=Et,W.EcanPageConfig=Ni,W.EcanPie=Sl,W.EcanProportion=$i,W.EcanProviderConfig=Fi,W.EcanRadar=_l,W.EcanRadio=yl,W.EcanRangePicker=il,W.EcanScatter=Bl,W.EcanScrollText=Vi,W.EcanSelect=ul,W.EcanTable=Yl,W.EcanTabs=Fl,W.EcanText=qi,W.EcanTimeDisplay=ji,W.EcanTreeSelect=gl,W.barComponentProps=Ca,W.barEvents=Al,W.barProps=Sa,W.borderComponentProps=_a,W.borderEvents=Ll,W.borderProps=Ra,W.buttonComponentProps=ra,W.buttonEvents=ll,W.buttonProps=aa,W.checkboxComponentProps=la,W.checkboxEvents=cl,W.checkboxProps=ia,W.circulateComponentProps=Fa,W.circulateEvents=Ml,W.circulateProps=Na,W.comboGraphComponentProps=Ea,W.comboGraphEvents=Dl,W.comboGraphProps=Ba,W.compatibleMobileList=vl,W.counterComponentProps=Ko,W.counterEvents=Yi,W.counterProps=Yo,W.customGraphComponentProps=Ta,W.customGraphProps=ka,W.dataSelectComponentProps=Ya,W.dataSelectEvents=Ql,W.dataSelectProps=$a,W.datePickerComponentProps=Xo,W.datePickerEvents=Ji,W.datePickerProps=Jo,W.default=ju,W.handleScrollCombinations=bl,W.iframeComponentProps=Va,W.iframeProps=qa,W.imageComponentProps=za,W.imageEvents=ql,W.imageProps=Ma,W.inputComponentProps=Qo,W.inputEvents=Zi,W.inputProps=Zo,W.lineComponentProps=va,W.lineEvents=Cl,W.lineProps=ba,W.listComponentProps=Go,W.listEvents=Wi,W.listProps=Wo,W.mapComponentProps=Ua,W.mapEvents=Kl,W.mapProps=Ga,W.modalComponentProps=xa,W.modalEvents=pl,W.modalProps=ya,W.moveToComponentList=pa,W.pageConfig=Hn,W.pageConfigComponentProps=jn,W.pieComponentProps=ma,W.pieEvents=xl,W.pieProps=ga,W.proportionComponentProps=$o,W.proportionEvents=Ui,W.proportionProps=Uo,W.providerConfig=No,W.providerConfigComponentProps=Fo,W.radarComponentProps=Ia,W.radarEvents=Rl,W.radarProps=Da,W.radioComponentProps=ha,W.radioEvents=ml,W.radioProps=ua,W.rangePickerComponentProps=na,W.rangePickerEvents=nl,W.rangePickerProps=ta,W.scatterComponentProps=Aa,W.scatterEvents=Tl,W.scatterProps=wa,W.selectComponentProps=ca,W.selectEvents=fl,W.selectProps=sa,W.tableComponentProps=ja,W.tableEvents=Gl,W.tableProps=Ha,W.tabsComponentProps=Oa,W.tabsEvents=Nl,W.tabsProps=La,W.textComponentProps=zo,W.textEvents=Mi,W.textProps=Mo,W.timeDisplayComponentProps=jo,W.timeDisplayEvents=Hi,W.timeDisplayProps=Ho,W.treeSelectComponentProps=fa,W.treeSelectEvents=hl,W.treeSelectProps=da,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
118
|
+
<span style="color: ${$||e.color};${t.unref(f)}">${e.minusSignShow?"-":""}${Math.abs(+q).toFixed(2)}%</span>
|
|
119
|
+
</span>`)}else e.format==="percent"?(q=+q,isNaN(q)||(q=(q*100).toFixed(2),E=E.replace(P,`<span class="${j}" style="color:${h(q)||e.variableColor};font-size:${t.unref(r)};${t.unref(f)}">${q}%</span>`))):e.format==="money"?(q=+q,isNaN(q)||(q=No(q),E=E.replace(P,`<span class="${j}" style="color:${h(q)||e.variableColor};font-size:${t.unref(r)};${t.unref(f)}">${q}</span>`))):U==="thousands"?(q=+q,isNaN(q)||(q=Kc(q),E=E.replace(P,`<span class="${j}" style="color:${h(q)||e.variableColor};font-size:${t.unref(r)};${t.unref(f)}">${q}</span>`))):E=E.replace(P,`<span class="${j}" style="color:${h(q)||e.variableColor};font-size:${t.unref(r)};${t.unref(f)}">${q}</span>`)}}if(z||(z=`<span class="${j}" style="color: ${h(E)};${t.unref(f)}">${E}</span>`),e.unitShow&&e.unitText){const{unitTop:M,unitLeft:P}=e;let H="position:relative;";M&&(H+=`top:${M};`),P&&(H+=`margin-left:${P};`),z+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${H};${t.unref(f)}'>${e.unitText}</span>`}return e.showEllipsis&&(z=`<span class="show-ellipsis" style="display: inline-block;">${z}</span>`),z});function h(R){let B="",S=!1;const{targetValue:E,targetShow:N,notExpectColor:z}=e;if(N){switch(e.targetRule){case"equal":R!==E&&(S=!0);break;case"greater":R<=E&&(S=!0);break;case"greater_equal":R<E&&(S=!0);break;case"less":R>=E&&(S=!0);break;case"less_equal":R>E&&(S=!0);break}S&&(B=z)}return B}const{pageMode:g}=t.inject(Pe,{pageMode:"normal"}),C=qe(e),p=t.ref(!1),v=async()=>{var R;try{p.value=!0;const B=await C();i.value=((R=B==null?void 0:B.data)==null?void 0:R.data)||{}}catch(B){console.error(B)}finally{p.value=!1}},b=(R={})=>{i.value=R},w=R=>{const B=e.id,S=l(B);d(B,{...S,value:R||"",RECORD:R||""})},A=()=>{w("")},T=Ze(e),D=async()=>{var R,B;try{p.value=!0;const S=await T(),{data:E}=(S==null?void 0:S.data)||{};if(E){n.value=!1;const{columns:N=[],rows:z=[]}=((R=S==null?void 0:S.data)==null?void 0:R.data)??{},{graphicConfig:j}=e;let F={};if(N.length>0)if((B=j==null?void 0:j.dimensionList)!=null&&B.length){const M=N[0];M&&(z!=null&&z.length)&&(F={value:z[0][M]})}else{const M=N.find(P=>!!P);M&&(F={value:isNaN(z[M])?0:z[M]||0})}w(F==null?void 0:F.value),b(F)}else n.value=!0,w("NaN"),b({value:"NaN"})}catch(S){console.error(S)}finally{p.value=!1,y(e.id,!0)}},O=()=>{switch(e.dataType){case"indicator":D();break;case"request":{const{openCustomRequestData:R,customRequestName:B,customRequestField:S}=e;if(R||R===void 0)v();else{const E=u(B);E&&(i.value={[S]:E[S]})}break}}},{setRequest:I}=t.inject(ze,{setRequest:({id:R,sortNum:B,requestFn:S})=>{}});typeof I=="function"&&I({id:e.id,requestFn:O,sortNum:e.requestSort}),Oe(e,{refreshData:O,resetRecord:A}),o({refreshData:O});const _=Re(e),L=_("click",()=>{const R=document.getElementsByClassName(`ecan-text_${e.id}`);if(R!=null&&R.length&&w(R[0].innerText),setTimeout(()=>{w("")},0),!e.linkPage&&!e.href)return;const B=e.linkPage||"",S=Nr(t.unref(g),B),E=e.href;let N=E||S;N=Le(N);const z=e.target;z&&(z!=="event"?window.open(N,"_"+z):window.parent.postMessage({type:"openPage",url:E},"*"))}),k=_("valueChange",()=>{});return t.watch(()=>m.value,(R,B)=>{R!==B&&k()}),{style:a,myText:m,loading:p,click:L,textIndent:s,vFontSize:r,gradientStyle:x}}}),Pr=()=>{t.useCssVars(e=>({"902d650e":e.vFontSize,"253f26b4":e.textIndent,"14fdee04":e.percentageSide}))},qr=Ho.setup;Ho.setup=qr?(e,o)=>(Pr(),qr(e,o)):Pr;const hh="",gh="",ad=["innerHTML"];function id(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,ad))}const Vr=Ce(xe(Ho,[["render",id],["__scopeId","data-v-16622f13"]])),rd=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),yh="",ld={class:"red"};function sd(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",ld,t.toDisplayString(e.text),1)}const Hr=Ce(xe(rd,[["render",sd],["__scopeId","data-v-4dd9c03e"]])),jo={...De,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"}},Wo=Ae(jo),jr=["timeChange"],cd=t.defineComponent({name:"EcanTimeDisplay",props:{...Wo},setup(e){const o=Ee(e),n=()=>{const{format:c,operate:u}=e;let y=pe();if(u){const{type:f,value:x,mode:m}=u;switch(f){case"add":y=y.add(x,m);break;case"minus":y=y.subtract(x,m)}}return y.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=Re(e)("timeChange",()=>{}),d=()=>{i&&r();let c=1e3;const{value:u,mode:y}=e.updateInterval||{};u&&(c=c*u);const f={second:1,minute:60,hour:60*60,day:24*60*60};y&&(c=c*f[y]),i=setInterval(()=>{a.value=n(),l()},c)};return Oe(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{r()}),{style:o,time:a}}}),ph="";function dd(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 Wr=Ce(xe(cd,[["render",dd],["__scopeId","data-v-b628fca2"]])),Go={...De,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%"},Uo=Ae(Go),Gr=["refreshData","click","resetRecord"],fd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",ud="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",hd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",gd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",md=t.defineComponent({name:"EcanList",components:{Skeleton:Vt,ATooltip:ue.Tooltip,MarqueeScroll:Hn},props:{...Uo},setup(e,{expose:o}){const n=t.ref(),a=Ee(e,["backgroundColor"]),i=(S,E)=>{const{format:N,customFormatter:z}=E;if(N==null||N==="")return S;const j={money:No,percentage:Bn,contrast:Bn,custom:_r};return j[N]?N==="custom"?j[N](S,z)||"":j[N](S)||"":""},r=(S,E)=>{const N=parseFloat(S+"");if(E!=="contrast")return"";switch(!0){case N>=0:return"goUp";case N<0:return"goDown"}},s=qe(e),l=t.ref(!1),d=async()=>{var S;if(e.dataType==="request")try{l.value=!0;const E=await s();n.value=((S=E==null?void 0:E.data)==null?void 0:S.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})),u=t.computed(()=>{const{columns:S,isUseSeq:E}=e;return E?[t.unref(c),...S]:S}),y=Ze(e),f=async()=>{var S;try{l.value=!0;const E=await y(),{columns:N=[],rows:z=[]}=((S=E==null?void 0:E.data)==null?void 0:S.data)??{};e.isUseSeq&&N.unshift(e.seqName),u.value.forEach((j,F)=>{(!e.isUseSeq||F!==0)&&(j.title=N[F],j.key=N[F])}),n.value=z}catch(E){console.error(E)}finally{l.value=!1}},x=()=>{switch(e.dataType){case"indicator":f();break;case"request":d();break}},m=Re(e),{getGlobalModel:h,setGlobalModel:g}=t.inject(Ie,{getGlobalModel:S=>{},setGlobalModel:(S,E)=>{}}),C=S=>{m("click",()=>{const E=h(e.id);g(e.id,{...E,type:e.type,RECORD:S})})()};Oe(e,{refreshData:x,resetRecord:()=>{const S=e.id,E=h(S);g(S,{...E,type:e.type,RECORD:""})}});const{setRequest:v}=t.inject(ze,{setRequest:({id:S,sortNum:E,requestFn:N})=>{}});typeof v=="function"&&v({id:e.id,requestFn:x,sortNum:e.requestSort}),o({refreshData:x});const b=(S,E)=>({flex:S.width?"none":"1",width:S.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:(E?S.cellAlign:S.align)||"left",backgroundColor:S.cellColor}),w=(S,E)=>{let N=0;const z=t.unref(n).map(F=>F[E]),j=Math.max(...z);return j&&(N=S[E]/j*100),N},A=S=>{const{progressColor:E="#1890ff",progressGradientColor:N=""}=S;return N?{background:`linear-gradient(to right, ${E} 0%, ${N} 100%)`}:{backgroundColor:E||"#1890ff"}},T=t.computed(()=>{const S=parseFloat(e.seqFontSize)+5;return{width:S+10,height:S}}),{pageMode:D}=t.inject(Pe,{pageMode:"normal"}),O=t.computed(()=>t.unref(D)!=="design"&&e.isAutoScroll),I=S=>{const{seqIconConfig:E}=e;let N=E.find(z=>z.key===S+1);return N||(N=E.find(z=>z.key==="other")),!!(N!=null&&N.icon)},_=(S,E)=>{const{seqIconConfig:N}=e;let z=N.find(j=>j.key===S+1);return z||(z=N.find(j=>j.key==="other")),E===1?z!=null&&z.icon?mt(z.icon):"":E===2?(z==null?void 0:z.color)||"#fff":""},L=S=>{const{seqIndexFormatter:E}=e,N=S+1;return E?Le(E,{textData:{index:N}},{useNewline:!1,useSpace:!0}):N},k=t.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),R=t.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:a,formatFn:i,contrastClass:r,dataSource:n,loading:l,myColumns:u,click:C,getColumnStyle:b,getPercentage:w,getBackgroundColor:A,isShowSeqIcon:I,getSeqIconData:_,seqIcon4:fd,seqIcon5:ud,seqIcon6:hd,seqIcon7:gd,iconSize:T,isScroll:O,formatSeq:L,wrapStyle:k,colSpan:R,getText:(S,E)=>(S.format!=null||S.format!=="")&&i(E[S.key],S)}}}),vh="",Sh="",yd=e=>(t.pushScopeId("data-v-8c32652d"),e=e(),t.popScopeId(),e),xd={key:0,class:"title"},pd={key:0,class:"ranking"},bd=["onClick"],vd={key:0,class:"ranking"},Sd=yd(()=>t.createElementVNode("div",{class:"icon"},null,-1)),Cd={class:"sort"},wd=["src"],Ad={key:1},kd=["src","width","height"],Td=["src","width","height"],Bd=["src","width","height"],Ed=["src","width","height"],Dd={key:1},Id=["title"],Rd={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",xd,[(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",pd)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(u,y)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:u.key||y,style:t.normalizeStyle({color:u.titleColor,...e.getColumnStyle(u)})},t.toDisplayString(u.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,u)=>(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||u,onClick:y=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",vd,[Sd,t.createElementVNode("div",Cd," Top "+t.toDisplayString(u+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,y=>{var f;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(c[y.key],y.format),y.key==="SEQ"?"seq-column":""]),key:y.key,style:t.normalizeStyle({fontSize:y.fontSize,color:e.contrastClass(c[y.key],y.format)===""?y.color:"",fontWeight:y.fontWeight,...e.getColumnStyle(y,"cell")})},[y.key==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(f=e.seqIconConfig)!=null&&f.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(u)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(u,1),style:t.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,wd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"custom-seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(u,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(e.formatSeq(u)),5)],4)):(t.openBlock(),t.createElementBlock("div",Ad,[u===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,kd)):u===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,Td)):u===2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,Bd)):u>=3?(t.openBlock(),t.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,Ed)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize})},t.toDisplayString(e.formatSeq(u)),5)]))],64)):(t.openBlock(),t.createElementBlock("span",Dd,t.toDisplayString(e.formatSeq(u)),1))],64)):y.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:y.progressWidth||"14px",backgroundColor:y.progressBaseColor})},[t.createVNode(s,{title:c[y.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({borderRadius:"10px",height:y.progressWidth||"14px",width:`${e.getPercentage(c,y.key)}%`,...e.getBackgroundColor(y)})},null,4)]),_:2},1032,["title"])],4)],4)):(t.openBlock(),t.createElementBlock("span",{key:2,title:e.getText(y,c)},t.toDisplayString(e.getText(y,c)),9,Id))],6)}),128))],12,bd))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(t.openBlock(),t.createElementBlock("div",Rd," 暂无数据 "))]),_:1},8,["loading"])],4)}const Ur=Ce(xe(md,[["render",_d],["__scopeId","data-v-8c32652d"]])),$o={...De,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",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},Ko=Ae($o),$r=["refreshData","click"],Ld=t.defineComponent({name:"EcanProportion",components:{AProgress:ue.Progress,Skeleton:Vt},props:{...Ko},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(Pe,{pageMode:"normal"}),i=Ee(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),w=+e.variableDefaultValue;if(b==null)return isNaN(w)?0:w;const A=e.text.match(/\{.+\}/g)||[];let T;const D=new Set(Object.keys(b));for(let O=0;O<A.length;O++){const I=A[O],_=I.slice(1,I.length-1);if(D.has(_)){T=b[_];break}}return typeof T=="number"?T=T*100:typeof T=="string"&&!isNaN(+T)?T=+T*100:isNaN(w)?T=0:T=w*100,e.decimalFormat&&(T=+T.toFixed(2)),T}),d=t.computed(()=>{var D;let b=e.text;if(b==="")return t.unref(l);const w=e.variableDefaultValue,A=t.unref(s),T=b.match(/\{.+\}/g)||[];for(let O=0;O<T.length;O++){const I=T[O];let _=I.slice(1,I.length-1);const L=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,k=I.match(L);for(let B=0;B<(k==null?void 0:k.length);B++){const S=(D=k[B])==null?void 0:D.trim();A[S]!=null&&(_=_.replace(S,A[S]))}let R=_;try{/\(.*\)/g.test(_)&&(R=dn(_))}catch(B){console.error(B)}typeof+R=="number"&&!isNaN(+R)?(R=+R*100,e.decimalFormat&&(R=R.toFixed(2))):R=w,b=b.replace(I,R+"")}return t.unref(n)?"NaN":b}),c=qe(e),u=t.ref(!1),y=async()=>{var b;if(e.dataType==="request")try{u.value=!0;const w=await c();s.value=((b=w==null?void 0:w.data)==null?void 0:b.data)||{}}catch(w){console.error(w)}finally{u.value=!1}},f=(b={})=>{s.value=b},x=Ze(e),m=async()=>{var b;try{u.value=!0;const w=await x(),{data:A}=(w==null?void 0:w.data)||{};if(A){n.value=!1;const{columns:T=[],rows:D=[]}=((b=w==null?void 0:w.data)==null?void 0:b.data)??{};let O={};if(T.length>0){const I=T.find(_=>!!_);I&&(O={percent:D[I]})}f(O)}else n.value=!0,f({percent:"NaN"})}catch(w){console.error(w)}finally{u.value=!1}},h=()=>{switch(e.dataType){case"indicator":m();break;case"request":y();break}};Oe(e,{refreshData:h}),o({refreshData:h});const C=Re(e)("click",()=>{}),{setRequest:p}=t.inject(ze,{setRequest:({id:b,sortNum:w,requestFn:A})=>{}});typeof p=="function"&&p({id:e.id,requestFn:h,sortNum:e.requestSort});const v=t.computed(()=>{const{gradientShow:b,gradientColor:w,gradientOffset:A,strokeColor:T}=e;let D=T;return b&&w&&(D={"0%":T,[`${A*100}%`]:w}),D});return{style:i,myWidth:r,text:d,myValue:l,loading:u,click:C,customStrokeColor:v}}}),wh="";function Od(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.toDisplayString(e.text),5)):t.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Kr=Ce(xe(Ld,[["render",Od],["__scopeId","data-v-cf942b5f"]])),Yo={...De,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:{}},Zo=Ae(Yo),Yr=["refreshData","click","resetRecord"],Nd=t.defineComponent({name:"EcanCounter",components:{Skeleton:Vt},props:{...Zo},setup(e,{expose:o}){const n=t.ref(),a=Ee(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],([v,b])=>{b==="static"&&(n.value=v)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=t.inject(Ie,{getGlobalModel:v=>{},setGlobalModel:(v,b)=>{}}),c=Re(e)("click",()=>{const v=s(e.id);l(e.id,{...v,type:e.type,value:t.unref(n)})}),u=()=>{const v=e.id,b=s(v);l(v,{...b,type:e.type,value:""})},y=qe(e),f=t.ref(!1),x=async()=>{var v,b;try{f.value=!0;const w=await y();n.value=((b=(v=w==null?void 0:w.data)==null?void 0:v.data)==null?void 0:b.value)||""}catch(w){console.error(w)}finally{f.value=!1}},m=Ze(e),h=async()=>{var v;try{f.value=!0;const b=await m(),{data:w}=(b==null?void 0:b.data)||{};let A="";if(w){const{columns:T=[],rows:D=[]}=((v=b==null?void 0:b.data)==null?void 0:v.data)??{};if(T.length>0){const O=T.find(I=>!!I);O&&(A=D[O]||"")}}n.value=String(A)}catch(b){console.error(b)}finally{f.value=!1}},g=()=>{switch(e.dataType){case"indicator":h();break;case"request":x();break}},C=t.computed(()=>{const v=[],{digits:b}=e;console.log("myValue",n.value);const w=t.unref(n)?t.unref(n).split("").reverse().join(""):"";for(let A=0;A<b;A++)w&&w[A]?v.push(w[A]):v.push("0");return v.reverse()});Oe(e,{refreshData:g,resetRecord:u});const{setRequest:p}=t.inject(ze,{setRequest:({id:v,sortNum:b,requestFn:w})=>{}});return typeof p=="function"&&p({id:e.id,requestFn:g,sortNum:e.requestSort}),o({refreshData:g}),{style:a,valueList:C,digitsStyle:i,fontStyle:r,loading:f,useImagePath:mt,click:c}}}),kh="",Fd=["src"];function Md(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,Fd)):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 Zr=Ce(xe(Nd,[["render",Md],["__scopeId","data-v-4d462642"]])),Qo={...De,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Jo=Ae(Qo),Qr=["inputChange","inputBlur"],zd=t.defineComponent({name:"EcanInput",components:{AInput:ue.Input},props:{...Jo},setup(e){const o=Ee(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:i,getRecordValueByKeyName:r}=t.inject(Ie,{getGlobalModel:u=>{},setGlobalModel:(u,y)=>{},getRecordValueByKeyName:u=>{}});t.watch(()=>e.value,u=>{n.value=r(u)},{immediate:!0}),i(e.id,{type:e.type,value:n});const s=()=>{const u=a(e.id);i(e.id,{...u,RECORD:n})},l=Re(e),d=_e.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),Bh="";function Pd(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 Jr=Ce(xe(zd,[["render",Pd]])),Xo={...De,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"},ea=Ae(Xo),Xr=["dateChange"],ta=t.defineComponent({name:"EcanDatePicker",props:{...ea},components:{ADatePicker:ue.DatePicker},setup(e){const o=t.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=Ee(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([f,x,m])=>{let h=null;if(f?h=pe(Le(f)):x&&(h=pe()),m&&h){const{type:g,value:C,mode:p}=m;switch(g){case"add":h=h.add(C,p);break;case"minus":h=h.subtract(C,p)}}i.value=h},{deep:!0,immediate:!0});const{setGlobalModel:r}=t.inject(Ie,{setGlobalModel:(f,x)=>{}});r(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:i});const l=Re(e)("dateChange",()=>{}),d=()=>{t.unref(i)&&l()};Oe(e,{dateChange:l});const c=t.ref({}),u=t.ref({}),y=f=>{f?setTimeout(()=>{u.value=t.unref(c)},300):u.value={}};return t.onMounted(()=>{setTimeout(()=>{const f=document.querySelector(`#ecan-date-picker-${e.id}`);if(f){const x=f.getBoundingClientRect(),m=parseFloat(t.unref(o).widthScale)*280;document.body.clientWidth-x.left<m&&(c.value.marginLeft=-1*(m-x.width)+"px")}},0)}),{style:n,getPopupContainer:a,myValue:i,locale:Qa,change:d,scaleValue:o,popupStyle:c,customStyle:u,openChange:y}}}),el=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},tl=ta.setup;ta.setup=tl?(e,o)=>(el(),tl(e,o)):el;const Dh="",Ih="",qd=["id"];function Vd(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,qd)}const nl=Ce(xe(ta,[["render",Vd],["__scopeId","data-v-d4ec0d66"]])),na={...De,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},oa=Ae(na),ol=["dateChange"];var al={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(ge,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,u){return c=Number(c),this.$utils().p(u)===a?this.add(3*c,n):l.bind(this)(c,u)};var d=s.startOf;s.startOf=function(c,u){var y=this.$utils(),f=!!y.u(u)||u;if(y.p(c)===a){var x=this.quarter()-1;return f?this.month(3*x).startOf(n).startOf("day"):this.month(3*x+2).endOf(n).endOf("day")}return d.bind(this)(c,u)}}})})(al);var Hd=al.exports;const jd=Di(Hd);pe.extend(jd);const aa=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ue.RangePicker},props:{...oa},setup(e){const o=Ee(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],([v,b,w,A,T,D])=>{let O=null,I=null;if(w&&(O=pe().subtract(A,T),I=pe()),v&&(O=pe(Le(v))),b&&(I=pe(Le(b))),D){const{type:_,value:L,mode:k}=D;switch(_){case"add":O=O&&O.add(L,k),I=I&&I.add(L,k);break;case"minus":O=O&&O.subtract(L,k),I=I&&I.subtract(L,k)}}a.value=[O,I]},{immediate:!0});let i=t.unref(a)[0],r=t.unref(a)[1],s="";const l=(v,b,w)=>{Array.isArray(v)?(i=v[0],r=v[1],s=w.range):(i=null,r=null)};window.dayjs=pe;const d=v=>{let b=!1,{limitStartTime:w,limitEndTime:A}=e;const T={startTime:`${i||""}`,endTime:`${r||""}`};if(w=Le(w,{codeData:T}),A=Le(A,{codeData:T}),w&&A?b=!(pe(w)<v&&v<pe(A)):w?b=pe(w)>v:A&&(b=pe(A)<v),!e.isAllowSpanYear&&s){let D=null;if(s==="start"?D=i:s==="end"&&(D=r),D){const O=D.startOf("year"),I=D.endOf("year");b=!(O<=v&&v<I)}}if(!b){const{value:D=0,mode:O="year"}=e.limitInterval||{};D&&(s==="start"?b=i.add(D,O)<v:s==="end"&&(b=r.subtract(D,O)>v))}return b},{getGlobalModel:c,setGlobalModel:u}=t.inject(Ie,{getGlobalModel:v=>{},setGlobalModel:(v,b)=>{}}),y=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),f=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);u(e.id,{type:e.type,format:e.format,startTime:y,endTime:f,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const x=Re(e);let m=!1;const h=x("dateChange",()=>{}),g=v=>{const b=t.unref(a),w=b&&b[0]&&b[1];v===!1&&m===!0&&w&&(h(),m=!1),v||(s="")},C=()=>{m=!0};return Oe(e,{dateChange:()=>{const{associated:v}=e;if(v){const b=c(v)||{};if(b){const{value:w}=b;if(w)switch(t.unref(w)){case"month":a.value=[pe().startOf("month"),pe().endOf("month")];break;case"quarter":a.value=[pe().startOf("quarter"),pe().endOf("quarter")];break;case"year":a.value=[pe().startOf("year"),pe().endOf("year")];break}}}h()}}),{style:o,getPopupContainer:n,locale:Qa,dateChange:h,myValue:a,disabledDate:d,calendarChange:l,openChange:g,change:C}}}),il=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},rl=aa.setup;aa.setup=rl?(e,o)=>(il(),rl(e,o)):il;const _h="",Lh="";function Wd(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 ll=Ce(xe(aa,[["render",Wd],["__scopeId","data-v-c9c68612"]])),ia={...De,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"},ra=Ae(ia),sl=["click"],Gd=t.defineComponent({name:"EcanButton",components:{AButton:ue.Button},props:{...ra},setup(e){const o=Ee(e),a=Re(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(()=>Le(e.text)),s=t.computed(()=>Le(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}}}),Nh="";function Ud(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 cl=Ce(xe(Gd,[["render",Ud]])),la={...De,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:{}},sa=Ae(la),dl=["checkboxChange"],$d=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ue.CheckboxGroup},props:{...sa},setup(e,{expose:o}){const n=Ee(e),a=t.ref([]),i=t.ref([]),r=g=>{const C=e.value;let p=[];g.forEach(v=>{v.checked&&p.push(v.value)}),typeof C=="string"&&C!==""?p=p.concat(C.split(",")):Array.isArray(C)&&(p=p.concat(C)),a.value=g,i.value=p};t.watch(()=>[e.data,e.value],([g])=>{r(g)},{immediate:!0,deep:!0});const s=qe(e),l=async()=>{var p,v;if(e.dataType!=="request")return;const g=await s(),C=((v=(p=g==null?void 0:g.data)==null?void 0:p.data)==null?void 0:v.rows)||[];r(C)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Ie,{getGlobalModel:g=>{},setGlobalModel:(g,C)=>{}});c(e.id,{type:e.type,value:i});const y=Re(e)("checkboxChange",()=>{const g=d(e.id);c(e.id,{...g,RECORD:i})}),f=Ze(e),x=async()=>{var g;try{const C=await f(),{data:p}=(C==null?void 0:C.data)||{};if(p){const b=(((g=C==null?void 0:C.data)==null?void 0:g.data)??[]).map(w=>({label:w.label,value:w.value}));r(b)}else r([])}catch(C){console.error(C)}},m=()=>{switch(e.dataType){case"indicator":x();break;case"request":l();break}},{setRequest:h}=t.inject(ze,{setRequest:({id:g,sortNum:C,requestFn:p})=>{}});return typeof h=="function"&&h({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:n,myValue:i,checkboxChange:y}}}),Mh="";function Kd(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 fl=Ce(xe($d,[["render",Kd]])),ca={...De,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"},da=Ae(ca),ul=["selectChange","refreshData"],Yd=t.defineComponent({name:"EcanSelect",components:{ASelect:ue.Select,ASelectOption:ue.SelectOption},props:{...da},setup(e,{expose:o}){const n=Ee(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=qe(e),r=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var S;const{mode:B}=e;return(S=t.unref(r))!=null&&S.length?s.value:B==="multiple"||B==="tags"||B==="combobox"?[]:""},set:B=>{s.value=B}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:u}=t.inject(Ie,{getGlobalModel:B=>{},setGlobalModel:(B,S)=>{},getRecordValueByKeyName:B=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,r.value],()=>{const{mode:B,selectFirstOption:S,value:E}=e,N=u(E),z=y.value;if(B==="multiple"||B==="tags"||B==="combobox"){if(N)s.value=N.split(",");else if(S){const j=t.unref(r)[0];s.value=j?[j[z]]:[]}}else if(N)s.value=N;else if(S){const j=t.unref(r)[0];s.value=j?j[z]:""}},{immediate:!0});const f=(B,S)=>{const E=y.label,N=y.value;let z;const j=S[E],F=S[N];return j!=null?z=j:F!=null&&(z=F),(z==null?void 0:z.toLowerCase().indexOf(B==null?void 0:B.toLowerCase()))>=0},x=B=>{const{label:S,value:E,options:N}=e.dataFieldNames;if(N&&Array.isArray(B))if(B.some(z=>N in z)){const z={},j=[];B.forEach(F=>{z[F[N]]||(z[F[N]]=[]),z[F[N]].push({[S]:F[S],[E]:F[E]})});for(const F in z)j.push({[S]:F,[N]:z[F]});return j}else return B;else if(!N)return B},m=t.ref(!1),h=async()=>{var B,S;if(e.dataType==="request"){m.value=!0;try{const E=await i();if(r.value=x(((S=(B=E==null?void 0:E.data)==null?void 0:B.data)==null?void 0:S.rows)||[]),e.selectFirstOption){let N=t.unref(r)[0];if(y.options){const z=N[y.options];z&&z.length&&(N=z[0])}s.value=N[y.value]}}catch(E){console.error(E)}finally{m.value=!1}}},{setLoadedData:g,loadedData:C}=t.inject(kt,{setLoadedData:(B,S)=>{},loadedData:{}}),p=t.computed(()=>{let B=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(r)){const S=y.label,E=y.value;if(e.mode==="multiple")B=t.unref(r).filter(N=>t.unref(s).includes(N[E])).map(N=>N[S]);else{const N=t.unref(r).find(z=>t.unref(s)===z[E]);N&&(B=N[S])}}return B}),v=t.ref([]),b=t.computed(()=>{const B={};if(e.mode!=="multiple"){const S=t.unref(v).find(E=>E.value===t.unref(s));S&&(B.itemCodes=S.item_codes)}return B}),w=t.computed(()=>{const{value:B,label:S}=y,E=t.unref(r).find(N=>N[B]===t.unref(l));return E?{label:E[S],value:E[B]}:{}});c(e.id,{type:e.type,value:p,...t.unref(b),recordData:t.unref(w)});const T=Re(e)("selectChange",()=>{const B=e.id,S=d(B);c(B,{...S,...t.unref(b),RECORD:p,recordData:t.unref(w)})}),D=(B=[])=>{if(r.value=x(B),e.selectFirstOption){let S=t.unref(r)[0];if(y.options){const E=S[y.options];E&&E.length&&(S=E[0])}s.value=S[y.value]}c(e.id,{type:e.type,value:p,...t.unref(b),recordData:t.unref(w)})},O=Ze(e),I=async()=>{var B;try{m.value=!0;const S=await O(),{data:E}=(S==null?void 0:S.data)||{},N=y.label,z=y.value;if(E){const j=((B=S==null?void 0:S.data)==null?void 0:B.data)??[];v.value=j;const F=j.map(H=>({[N]:H.label,[z]:H.value})),{id:M}=e,P=d(M);c(M,{...P,...t.unref(b)}),g(M,!0),D(F)}else D([])}catch(S){console.error(S)}finally{m.value=!1}},_=t.computed(()=>{var B,S;return(S=cn(((B=e==null?void 0:e.graphicConfig)==null?void 0:B.controlList)||[]))==null?void 0:S.find(E=>E.conditionKey==="parentCode")}),L=t.ref(!1);t.watch(C,B=>{!t.unref(L)&&t.unref(_)&&B[t.unref(_).id]&&(L.value=!0,k())},{deep:!0});const k=()=>{switch(e.dataType){case"indicator":{if(t.unref(_)){if(t.unref(C)[t.unref(_).id]){const{mode:B}=e;B==="multiple"||B==="tags"||B==="combobox"?l.value=[]:l.value="",I()}}else I();break}case"request":h();break}};Oe(e,{selectChange:T,refreshData:k});const{setRequest:R}=t.inject(ze,{setRequest:({id:B,sortNum:S,requestFn:E})=>{}});return typeof R=="function"&&R({id:e.id,requestFn:k,sortNum:e.requestSort}),o({refreshData:k}),{style:n,getPopupContainer:a,myValue:s,selectChange:T,options:r,filterOption:f,loading:m,resultValue:l}}}),Ph="",qh="";function Zd(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 hl=Ce(xe(Yd,[["render",Zd],["__scopeId","data-v-2102cdda"]])),fa={...De,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},ua=Ae(fa),gl=["selectChange","refreshData"],Qd={name:"EcanTreeSelect",components:{ATreeSelect:ue.TreeSelect},props:{...ua},setup(e){const o=Ee(e),n=t.ref(e.data),a=(x,m)=>{const h=e.dataFieldNames,g=h.label,C=h.value;let p;const v=m[g],b=m[C];return v!=null?p=v:b!=null&&(p=b),(p==null?void 0:p.toLowerCase().indexOf(x==null?void 0:x.toLowerCase()))>=0},i=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:x,value:m,selectFirstOption:h}=e;x?m?i.value=m.split(","):h&&(i.value=[t.unref(n)[0]]):m?i.value=m:h&&(i.value=t.unref(n)[0])},{immediate:!0});const r=t.ref(!1),s=qe(e),l=async()=>{var x,m;if(e.dataType==="request"){r.value=!0;try{const h=await s();n.value=((m=(x=h==null?void 0:h.data)==null?void 0:x.data)==null?void 0:m.rows)||[];const g=t.unref(n)[0];e.value===""&&g!=null&&(i.value=g[e.dataFieldNames.value])}catch(h){console.error(h)}finally{r.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=t.inject(Ie,{getGlobalModel:x=>{},setGlobalModel:(x,m)=>{}});c(e.id,{type:e.type,value:i});const y=Re(e)("selectChange",()=>{const x=e.id,m=d(x);c(x,{...m,RECORD:i})});Oe(e,{selectChange:y,refreshData:l});const{setRequest:f}=t.inject(ze,{setRequest:({id:x,sortNum:m,requestFn:h})=>{}});return f({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:n,filterTreeNode:a,myValue:i,loading:r,selectChange:y}}},Hh="",jh="";function Jd(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 ml=Ce(xe(Qd,[["render",Jd],["__scopeId","data-v-37236421"]])),ha={...De,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:""},ga=Ae(ha),yl=["checkboxChange","click"],Xd=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:ue.RadioGroup,ARadioButton:ue.RadioButton,ARadio:ue.Radio},props:{...ga},setup(e,{expose:o}){const{pageMode:n}=t.inject(Pe,{pageMode:"normal"}),a=Ee(e),i=t.ref([]),r=t.ref(""),s=b=>{const w=e.value;let A=[];typeof w=="string"&&w!==""?A=A.concat(w.split(",")):Array.isArray(w)&&(A=A.concat(w)),i.value=b,r.value=A[0]||""};t.watch(()=>[e.data,e.value],([b])=>{t.unref(n)==="design"&&s(b)},{immediate:!0,deep:!0});const l=qe(e),d=async()=>{var A,T;if(e.dataType!=="request")return;const b=await l(),w=((T=(A=b==null?void 0:b.data)==null?void 0:A.data)==null?void 0:T.rows)||[];s(w)},{getGlobalModel:c,setGlobalModel:u}=t.inject(Ie,{getGlobalModel:b=>{},setGlobalModel:(b,w)=>{}});u(e.id,{type:e.type,value:r});const y=Re(e),f=()=>{const b=t.unref(i).find(w=>w.value===t.unref(r))||{};y("checkboxChange",()=>{const w=c(e.id);u(e.id,{...w,RECORD:r})},b)()},x=b=>{r.value=b,y("click",()=>{const w=c(e.id);u(e.id,{...w,RECORD:r})})()};t.watch(r,()=>{f()});const m=Ze(e),h=async()=>{var b;try{const w=await m(),{data:A}=(w==null?void 0:w.data)||{};if(A){const D=(((b=w==null?void 0:w.data)==null?void 0:b.data)??[]).map(O=>({label:O.label,value:O.value}));s(D)}else s([])}catch(w){console.error(w)}},g=()=>{switch(e.dataType){case"indicator":h();break;case"request":d();break}},{setRequest:C}=t.inject(ze,{setRequest:({id:b,sortNum:w,requestFn:A})=>{}});typeof C=="function"&&C({id:e.id,requestFn:g,sortNum:e.requestSort});const p=b=>{r.value=b.value},v=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return t.onMounted(()=>{s(e.data)}),o({refreshData:g}),{myOption:i,style:a,myValue:r,radioStyle:v,onClickButton:x,useImagePath:mt,tabChange:p}}}),Gh="",Uh="",ef=["onClick"];function tf(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,u)=>(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:u,onClick:t.withModifiers(y=>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,ef))),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:u=>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 xl=Ce(xe(Xd,[["render",tf],["__scopeId","data-v-83a05acd"]])),ma={...De,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},ya=Ae(ma),pl=["click","refreshData","resetRecord"],Xt=async e=>{var d;const o=await pt.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)},xa={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:[]},pa=Ae(xa),bl=["showModal","hideModal"],Nt=["ecanBorder","ecanTabs","ecanCirculate"];function vl(e){const{containerMap:o={},sourceList:n=[]}=e,a=_e.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((!Jt(r,"componentList")||!(r!=null&&r.componentList))&&(r.componentList=[]),s){let d=0;for(const c in s){const u=s[c],y=[];if(u!=null&&u.length)for(const f of u){let x=a.find(m=>m.id===f);x||(x=n.find(m=>m.id===f)),x&&(y.push(x),Nt.includes(x.type)&&y.push(...fn(x.id,o,n)))}for(const f of y)Jt(f,"scale")?parseFloat(c)>0&&(f.left=parseFloat(f.left)+d+"px"):(f.left=parseFloat(f.sourceLeft||f.left)-parseFloat(r.sourceLeft||r.left)+d+"px",f.top=parseFloat(f.sourceTop||f.top)-parseFloat(r.sourceTop||r.top)+"px"),l.includes(f.id)||l.push(f.id);r.componentList.push(...y),d=sf(y)}}for(const d of l){const c=a.findIndex(u=>u.id===d);c!==-1&&a.splice(c,1)}}return a}function Sl(e){var r,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,i=_e.cloneDeep([...e.componentList,...of(a,n)]);if(nf(a,i),(r=Object.keys(a))!=null&&r.length||(s=Object.keys(o))!=null&&s.length){for(const f in a){const x=i.find(m=>m.id===f);if(x){Jt(x,"parentId")||(x.parentId="",x.sourceLeft=x.left,x.sourceTop=x.top);for(const m in a[f])if(a[f][m])for(const h of a[f][m]){const g=i.find(C=>C.id===h);g&&(g.parentId=f,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=parseFloat(g.left)-parseFloat(x.sourceLeft||x.left)+"px",g.top=parseFloat(g.top)-parseFloat(x.sourceTop||x.top)+"px")}}}const l=Array.from(new Set(i.filter(f=>(!Jt(f,"parentId")||f.parentId==="")&&f.combinationId).map(f=>f.combinationId))),d=af(l,{...e,componentList:i});d!=null&&d.length&&i.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],u=i.filter(f=>c.includes(f.type)&&!Jt(f,"parentId")),y=[];for(const f of u)if(f){const x=f.id+"_vir";y.push({id:x,keyName:f.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:f.width,height:f.height,left:f.left,top:f.top,sourceLeft:f.left,sourceTop:f.top}),f.parentId=x,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=0,f.top=0}y!=null&&y.length&&i.unshift(...y);for(const f of i){const x=document.body.clientWidth;if(f.parentId===""&&Nt.includes(f.type))f.sourceWidth=parseFloat(f.width),f.height=(x/(f.sourceWidth/parseFloat(f.height))).toFixed(2)+"px",f.width="100%",f.position="relative",f.top="auto",f.left="auto";else{const m=i.find(h=>h.id===f.parentId);if((m==null?void 0:m.parentId)===""){const h=m.sourceWidth||parseFloat(m.width),g=x/h;f.scale=g,f.top=parseFloat(f.top)*g-parseFloat(f.height)*(1-g)/2+"px",f.left=parseFloat(f.left)*g-parseFloat(f.width)*(1-g)/2+"px"}}f.type==="ecanModal"&&(f.parentId="",f.fullModal=!0)}return rf(i)}return i}function nf(e,o){const n=_e.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&&Nt.includes(d.type)){const c=fn(d.id,n,o);for(const u of c)e[i.id][s].push(u.id),Nt.includes(u.type)&&delete e[u.id];delete e[d.id]}}}}function of(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),Nt.includes(d.type)&&n.push(...fn(d.id,e,o)))}}return n}function fn(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),Nt.includes(l.type)&&a.push(...fn(l.id,o,n)))}return a}function af(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=lf(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 u of d)u&&(u.parentId=s,u.sourceLeft=u.left,u.sourceTop=u.top,u.left=parseFloat(u.left)-parseFloat(c.left)+"px",u.top=parseFloat(u.top)-parseFloat(c.top)+"px")}}}}return r}function rf(e){const n=e.filter(a=>a.parentId==="");if(n!=null&&n.length){const a=_e.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 lf(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 sf(e){const o=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,a)=>a-n)[0];return o||0}function ba(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),Nt.includes(d.type)&&i.push(...fn(d.id,e,o)))}}return i}const cf=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function df(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 ff=Ce(xe(cf,[["render",df]])),uf=t.defineComponent({name:"EcanModal",components:{AModal:ue.Modal,CloseOutlined:p0,Render:ff},props:{...pa},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(Ie,{setRequestData:(Q,ae)=>{},clearInteractiveData:()=>{},interactiveData:null}),c=()=>document.getElementById("ProviderConfig")||document.body,u=t.computed(()=>{const Q=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Q]}}),y=e.fullModal?"1920px":e.width,f=e.fullModal?"1080px":e.height,x=e.originalWidth,m=e.originalHeight,h=t.ref("80%"),g=t.ref(0),C=t.ref(),p=t.ref(0),v=t.ref({}),b=Ee(e),w=t.ref({}),A=t.ref(!1),T=t.ref();let D;const O=()=>{C.value=parseFloat(y)/parseFloat(x);const Q=parseFloat(f)/parseFloat(m),ae=document.body.offsetWidth,ee=document.body.offsetHeight;g.value=ae*t.unref(C),p.value=ee*Q,h.value=`${t.unref(C)*100}%`,v.value={width:`${t.unref(g)}px`,height:`${t.unref(p)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},w.value={...t.unref(b),backgroundImage:mt(e.backgroundImage,!0)},a?w.value={...w.value,width:"100%",height:"100%"}:w.value={...w.value,transform:`scale(${t.unref(g)/parseFloat(y)},${t.unref(p)/parseFloat(f)})`,width:y,height:f}},I=_e.debounce(()=>{O()},100),_=()=>{const Q=window.MutationObserver;D=new Q(I),D.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},L=()=>{D&&(D.disconnect(),D.takeRecords(),D=null)},k=t.ref(!1),{touchRequest:R}=t.inject(ze,{touchRequest:()=>{}}),B=t.ref(""),S=()=>{var ee;const{title:Q}=e,ae=(ee=t.unref(l))==null?void 0:ee.RECORD;return ae?Le(Q,{textData:ae},{useNewline:!1,useSpace:!1}):Q},E=Re(e),N=()=>{a&&(document.documentElement.style.overflow="hidden"),B.value=S(),k.value=!0},z=E("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),k.value=!1}),j=()=>{z()},F=()=>{z(),s()},{setModalModel:M,pushUseModalIds:P,popUseModalIds:H}=t.inject(Ai,{pushUseModalIds:Q=>{},popUseModalIds:()=>{},setModalModel:(Q,ae)=>{}}),Z=t.computed(()=>{let Q=e.componentList;const ae=_e.cloneDeep(e.componentList),ee=i(),oe=r(),se={containerMap:ee,combinationMap:oe};a&&(Q=Sl({...se,componentList:ae,sourceList:e.allComponentList})),Q=vl({...se,componentList:Q,sourceList:e.allComponentList});const ve=[];for(const we of Q)if(we.type==="ecanCirculate"){const ke=ba(ee,t.unref(ae),we.id);we.componentList=ke,ve.push(...ke.map(Te=>Te.id))}if(ve!=null&&ve.length)for(const we of ve){const ke=Q.findIndex(Te=>Te.id===we);ke!==-1&&Q.splice(ke,1)}return Q}),V=()=>{const Q=e.id;let ae=[];const ee=e.componentList;Array.isArray(ee)&&(ae=ee.map(oe=>oe.id),M(Q,[...new Set(ae)]))},q=t.ref(!1),U={};for(const Q of e.requestList)U[Q.requestName]=qe(Q);const $=async()=>{var Q;for(const ae in U){const ee=await U[ae]();d(ae,((Q=ee==null?void 0:ee.data)==null?void 0:Q.data)||{})}q.value=!0};t.watch(()=>k.value,async Q=>{if(Q)A.value=!1,await $(),P(e.id),V(),await t.nextTick(()=>{O(),window.addEventListener("resize",I),_(),A.value=!0}),R();else{for(const ae in U)d(ae,{});H(),window.removeEventListener("resize",I),L()}});const J=t.computed(()=>t.unref(C)>=1),de=t.computed(()=>e.fullModal),ne=t.computed(()=>{let Q="ecan-modal";return t.unref(J)&&(Q+=" ecan-full-width-modal"),t.unref(de)&&(Q+=" ecan-full-modal"),Q});return Oe(e,{showModal:N,hideModal:z}),{modalRef:T,containStyle:v,contentStyle:w,getContainer:c,modalStyle:u,modalWith:h,isFullModal:de,style:b,visible:k,showModal:N,onOk:j,onCancel:F,isFullWidth:J,wrapClassName:ne,ready:A,usedComponentList:Z,isMobile:a,readyIds:n,hasOwn:Jt,onComponentReady:Q=>{n.value.push(Q)},formatTitle:B,requestLoaded:q}}}),Yh="",Zh="";function hf(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.requestLoaded&&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,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+u},[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 It=Ce(xe(uf,[["render",hf],["__scopeId","data-v-513bc596"]]));ot.use([_t.CanvasRenderer,bt.PieChart,Be.TitleComponent,Be.ToolboxComponent,Be.TooltipComponent,Be.LegendComponent]);const gf=t.defineComponent({name:"EcanPie",props:{...ya},components:{Spin:qt,Echarts:wt,EcanModal:It},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(Pe,{pageMode:"normal",fontFamily:""}),i=t.ref(!1),r=Ee(e),s=t.ref([]),l=t.ref(),d=t.ref({}),c=t.computed(()=>{let{data:L=[]}=t.unref(s)[0]||{};if(Array.isArray(e.colors)){const k=e.isUseLabelColors,R=e.colors;L=L.map((B,S)=>({label:k?{color:R[S]}:{},...B}))}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(){Xt(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 k;i.value=!0,(k=l.value)==null||k.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(){ue.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:k=>{const{marker:R,seriesName:B,name:S,value:E,percent:N,data:z}=k||{};return Le(e.tooltipFormatter,{textData:{marker:R,name:S,value:E,percent:N,a:B,b:S,c:E,d:N,...z}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.unref(d),color:e.colors,series:[{data:L,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?Ke:e.labelFontSize,position:e.labelPosition,formatter:$c(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:{}}}]}}),u=()=>{const L=i.value?Ke: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:L+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:L}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:k=>{const{data:R}=s.value[0]||{};let B=0,S,E="0%";if(R)for(const N of R)N.name===k&&(S=+N.value),B+=+N.value;return B&&(E=`${(S/B*100).toFixed(2)}%`),sn(e.legendFormatter,{name:k,value:S,percent:E})}}},y=()=>{i.value=!1},{getGlobalModel:f,setGlobalModel:x}=t.inject(Ie,{getGlobalModel:L=>{},setGlobalModel:(L,k)=>{}}),m=(L=[],k)=>{const{dataset:R}=Ht(L,k);s.value=R},h=(L=[],k)=>{const R=Ht(L,k);s.value=R.dataset};t.watch(()=>e.data,L=>{(e.dataType==="static"||t.unref(n)==="design")&&m(L)},{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],()=>{u()},{immediate:!0});const g=t.ref(!1),C=qe(e),p=async()=>{var L,k;if(e.dataType==="request")try{g.value=!0;const R=await C();m((k=(L=R==null?void 0:R.data)==null?void 0:L.data)==null?void 0:k.rows,e.valueTypeDataFieldNames)}catch(R){console.error(R)}finally{g.value=!1}},v=Re(e);x(e.id,{type:e.type,RECORD:""});const b=v("click",L=>{const k=f(e.id);x(e.id,{...k,type:e.type,RECORD:L==null?void 0:L.data})}),w=Ze(e),A=async()=>{var L;try{g.value=!0;const k=await w(),{data:R}=(k==null?void 0:k.data)||{};if(R){const{columns:B=[],rows:S=[]}=((L=k==null?void 0:k.data)==null?void 0:L.data)??{};let E=[];if(B.length>0){const N=B[0],z=B[1];E=S.filter(j=>!!j).map(j=>({name:j[N],value:isNaN(j[z])?0:j[z]||0}))}h(E)}}catch(k){console.error(k)}finally{g.value=!1}},{loadedData:T}=t.inject(kt,{loadedData:{}}),D=t.ref(!1);t.watch(T,L=>{if(e.dataType==="indicator"){const k=ln(e.graphicConfig);k!=null&&k.length&&(!t.unref(D)&&dt(e.graphicConfig,L)?(D.value=!0,O()):dt(e.graphicConfig,L)||(D.value=!1))}},{deep:!0});const O=()=>{switch(e.dataType){case"indicator":dt(e.graphicConfig,t.unref(T))&&A();break;case"request":p();break}};Oe(e,{resetRecord:()=>{const L=e.id,k=f(L);x(L,{...k,RECORD:""})},refreshData:O,click:b}),o({refreshData:O});const{setRequest:_}=t.inject(ze,{setRequest:L=>{}});return typeof _=="function"&&_({id:e.id,requestFn:O,sortNum:e.requestSort}),{option:c,style:r,click:b,onClose:y,loading:g,ecanModal:l}}}),Jh="";function mf(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 Cl=Ce(xe(gf,[["render",mf]])),va={...De,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},Sa=Ae(va),wl=["click","refreshData","resetRecord"];ot.use([_t.CanvasRenderer,bt.LineChart,Be.ToolboxComponent,Be.TitleComponent,Be.LegendComponent,Be.MarkLineComponent]);const yf=t.defineComponent({name:"EcanLine",props:{...Sa},components:{Spin:qt,Echarts:wt,EcanModal:It},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(Pe,{pageMode:"normal",fontFamily:""}),i=t.ref(),r=t.ref(!1),s=Ee(e),l=t.ref([]),d=t.ref([]),c=t.ref(),u=t.computed(()=>r.value?Ke:12),y=t.ref({});let f;const x=t.ref([]),m=t.computed(()=>{const S=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(){Xt(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 N;r.value=!0,(N=c.value)==null||N.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(){ue.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:u.value},show:e.tooltipShow,formatter:N=>{var M;const z=N.length;let j="",F=e.tooltipFormatter;f=(M=N[0])==null?void 0:M.data,F===""&&(F="{marker} {a} {c}");for(let P=0;P<z;P++){const{marker:H,seriesName:Z,name:V,value:q,data:U}=N[P]||{};if(P===0){let $=V;typeof V=="string"&&V[0]==="0"&&!isNaN(+V)&&($=(+V).toString()),j+=`${ft(S,$)}<br/>`}j+=Le(F,{textData:{marker:H,name:V,value:q,a:Z,b:V,c:q||0,...U}},{useNewline:!0,useSpace:!0}),j+="<br/>"}return j},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(d).map(N=>{let z={};return N&&typeof N=="object"?z={...N}:z={value:N},z}),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(N){return typeof N=="string"&&N[0]==="0"&&!isNaN(+N)&&(N=(+N).toString()),ft(S,N)}},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(N){return ft(E,N)}},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?Ke:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?Ke:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(x).map(N=>({name:N.name,icon:e.legendType})),formatter:N=>sn(e.legendFormatter,{name:N})},series:t.unref(l)}}),h=()=>{r.value=!1},{getGlobalModel:g,setGlobalModel:C}=t.inject(Ie,{getGlobalModel:S=>{},setGlobalModel:(S,E)=>{}}),p=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),v=(S=[],E=!1)=>{let N;if(e.dataFieldConfigType==="key"){const M=E?e.keyTypeDataFieldNames:null;N=Dt(S,M)}else if(e.dataFieldConfigType==="value"){const M=E?e.valueTypeDataFieldNames:null;N=Ht(S,M)}d.value=N.dimensions,x.value=N.dataset;const z=N.dataset,j=[],F=z.length;for(let M=0;M<F;M++){const P={};e.shadowColor&&(P.shadowColor=e.shadowColor,P.shadowBlur=e.shadowBlur,P.shadowOffsetY=e.shadowOffsetY,P.shadowOffsetX=e.shadowOffsetX),j.push({type:"line",...z[M],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[M]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[M],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...P},...t.unref(p)})}l.value=j},b=(S=[],E,N=!1)=>{const j=Dt(S,N?E:null,!0);d.value=j.dimensions,x.value=j.dataset;const F=j.dataset,M=[],P=F.length;for(let H=0;H<P;H++){const Z={};e.shadowColor&&(Z.shadowColor=e.shadowColor,Z.shadowBlur=e.shadowBlur,Z.shadowOffsetY=e.shadowOffsetY,Z.shadowOffsetX=e.shadowOffsetX),M.push({type:"line",...F[H],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[H]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[H],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...Z},...t.unref(p)})}l.value=M};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],([S])=>{(e.dataType==="static"||t.unref(n)==="design")&&v(S)},{immediate:!0,deep:!0});const w=t.ref(!1),A=qe(e),T=async()=>{var S,E;if(e.dataType==="request")try{w.value=!0;const N=await A();v((E=(S=N==null?void 0:N.data)==null?void 0:S.data)==null?void 0:E.rows,!0)}catch(N){console.error(N)}finally{w.value=!1}},D=Re(e);C(e.id,{type:e.type,RECORD:""});const O=D("click",S=>{const E=g(e.id);C(e.id,{...E,type:e.type,RECORD:e.tooltipShow?f:S.data})}),I=S=>{i.value.chart.containPixel("grid",[S.offsetX,S.offsetY])&&O()};e.tooltipShow?y.value["zr:click"]=I:y.value.click=O;const _=Ze(e),L=async()=>{var S;try{w.value=!0;const E=await _(),{columns:N=[],rows:z=[]}=((S=E==null?void 0:E.data)==null?void 0:S.data)??{};let j;N.length>0&&(j={name:N[0],types:N.slice(1).map(F=>({label:F,value:F}))}),b(z,j,!0)}catch(E){console.error(E)}finally{w.value=!1}},k=()=>{switch(e.dataType){case"indicator":L();break;case"request":T();break}};Oe(e,{refreshData:k,resetRecord:()=>{const S=e.id,E=g(S);C(S,{...E,RECORD:""})},click:O});const{setRequest:B}=t.inject(ze,{setRequest:S=>{}});return typeof B=="function"&&B({id:e.id,requestFn:k,sortNum:e.requestSort}),o({refreshData:k}),{option:m,style:s,click:O,loading:w,onClose:h,ecanModal:c,eventObj:y,echartRef:i}}}),e1="";function xf(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 Al=Ce(xe(yf,[["render",xf]])),Ca={...De,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},wa=Ae(Ca),kl=["refreshData","click","resetRecord"];ot.use([_t.CanvasRenderer,bt.BarChart,Be.TitleComponent,Be.LegendComponent,Be.DatasetComponent,Be.ToolboxComponent,Be.MarkLineComponent]);const pf=t.defineComponent({name:"EcanBar",props:{...wa},components:{Spin:qt,Echarts:wt,EcanModal:It,AModal:ue.Modal},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(Pe,{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([]),u=Ee(e),y=t.ref([]),f=t.ref(),x=t.ref({});let m;const h=t.computed(()=>s.value?Ke:12),g=t.computed(()=>{const{gradientShow:Z,gradientColors:V,gradientOffset:q,barBorderRadius:U}=e,$=t.unref(y),J=$.length,de=[];for(let ne=0;ne<J;ne++){const le={...$[ne],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(le.stack="stack"),le.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:Q=>{let ae="",ee=e.labelFormatter;ee===""&&(ee="{c}");const{seriesName:oe,name:se,value:ve,data:we}=Q||{};return ae+=Le(ee,{textData:{name:se,value:ve,a:oe,b:se,c:ve||0,...we}},{useNewline:!0,useSpace:!0}),ae}},le.itemStyle={},Z&&(le.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[ne]},{offset:q,color:V[ne]},{offset:1,color:V[ne]}]}}),U){const Q=U.split(",");if(Q!=null&&Q.length){const ae=[];for(const ee of Q){const oe=parseFloat(ee);isNaN(oe)||ae.push(oe)}le.itemStyle.borderRadius=ae}}e.isShowMarkLine&&(le.markLine={data:[{type:e.markLineType}]}),de.push(le)}return de}),C=t.ref([]),p=t.ref(!1),v=t.computed(()=>{const Z=e.yAxisLabelFormatter,V=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 q=r.value.chart.getOption(),{xAxis:U}=q||{};U&&U.length&&(c.value=U[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(){Xt(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 q;s.value=!0,(q=f.value)==null||q.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(){ue.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:q=>{var de;const U=q.length;let $="",J=e.tooltipFormatter;m=(de=q[0])==null?void 0:de.data,J===""&&(J="{marker} {a} {c}");for(let ne=0;ne<U;ne++){const{marker:le,seriesName:Q,name:ae,value:ee,data:oe}=q[ne]||{};if(ne===0){let se=ae;typeof ae=="string"&&ae[0]==="0"&&!isNaN(+ae)&&(se=(+ae).toString()),$+=`${ft(V,se)}<br/>`}$+=Le(J,{textData:{marker:le,name:ae,value:ee,a:Q,b:ae,c:ee||0,...oe}},{useNewline:!0,useSpace:!0}),$+="<br/>"}return $},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?Ke:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:s.value?Ke:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(y).map((q,U)=>({name:q.name,itemStyle:{color:e.colors[U]},icon:e.legendType})),formatter:q=>sn(e.legendFormatter,{name:q})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(T),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(q){return typeof q=="string"&&q[0]==="0"&&!isNaN(+q)&&(q=(+q).toString()),ft(V,q)}},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(C):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(q){return ft(Z,q)}},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(g)}}),b=()=>{s.value=!1},w=(Z=[],V=!1)=>{let q={};if(e.dataFieldConfigType==="key"){const U=V?e.keyTypeDataFieldNames:null;q=Dt(Z,U)}else if(e.dataFieldConfigType==="value"){const U=V?e.valueTypeDataFieldNames:null;q=Ht(Z,U)}y.value=q.dataset,C.value=q.dimensions},A=(Z=[],V,q=!1)=>{const $=Dt(Z,q?V:null,!0);e.defaultRangeValue&&Lr({props:e,componentList:t.unref(i),getGlobalModel:z},$),y.value=$.dataset,C.value=$.dimensions},T=t.computed(()=>t.unref(C).map(Z=>{let V={};return Z&&typeof Z=="object"?V={...Z}:V={value:Z},V}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([Z])=>{(e.dataType==="static"||t.unref(n)==="design")&&w(Z)},{immediate:!0,deep:!0});const D=qe(e),O=async()=>{var Z,V;try{p.value=!0;const q=await D();w((V=(Z=q==null?void 0:q.data)==null?void 0:Z.data)==null?void 0:V.rows,!0)}catch(q){console.error(q)}finally{p.value=!1}},I=Ze(e),_=async()=>{var Z;try{p.value=!0;const V=await I(),{columns:q=[],rows:U=[]}=((Z=V==null?void 0:V.data)==null?void 0:Z.data)??{};let $;q.length>0&&($={name:q[0],types:q.slice(1).map(J=>({label:J,value:J}))}),A(U,$,!0)}catch(V){console.error(V)}finally{p.value=!1}},{loadedData:L}=t.inject(kt,{loadedData:{}}),k=t.ref(!1);t.watch(L,Z=>{if(e.dataType==="indicator"){const V=ln(e.graphicConfig);V!=null&&V.length&&(!t.unref(k)&&dt(e.graphicConfig,Z)?(k.value=!0,R()):dt(e.graphicConfig,Z)||(k.value=!1))}},{deep:!0});const R=()=>{switch(e.dataType){case"indicator":dt(e.graphicConfig,t.unref(L))&&_();break;case"request":O();break}},B=(Z,V)=>!!t.unref(c)[V.value].value.includes(Z),S=async()=>{l.value=!1;const Z=r.value.chart.getOption();for(let V=0;V<7;V++)await E(Z,V)},E=(Z,V)=>new Promise(q=>{setTimeout(()=>{const{series:U,color:$,xAxis:J}=Z,de=r.value.chart,{splitArea:ne={}}=J[0]||{};U.forEach((le,Q)=>{const ae=le.data;let ee="";V%2?ee=$[Q]+"a8":ee=$[Q],ae[d.value].itemStyle={color:ee}}),V%2?(ne.show=!0,ne.areaStyle.color=t.unref(c).map((le,Q)=>Q===d.value?"#ff003b26":"")):ne.show=!1,de.setOption({series:U,xAxis:J}),q()},200)});o({refreshData:R});const N=Re(e),{getGlobalModel:z,setGlobalModel:j}=t.inject(Ie,{getGlobalModel:Z=>{},setGlobalModel:(Z,V)=>{}});j(e.id,{type:e.type,RECORD:""});const F=N("click",Z=>{const V=z(e.id);j(e.id,{...V,type:e.type,RECORD:e.tooltipShow?m:Z.data})}),{setRequest:M}=t.inject(ze,{setRequest:Z=>{}});typeof M=="function"&&M({id:e.id,requestFn:R,sortNum:e.requestSort});const P=()=>{const Z=e.id,V=z(Z);j(Z,{...V,RECORD:""})},H=Z=>{r.value.chart.containPixel("grid",[Z.offsetX,Z.offsetY])&&F()};return e.tooltipShow?x.value["zr:click"]=H:x.value.click=F,Oe(e,{refreshData:R,click:F,resetRecord:P}),{option:v,style:u,refreshData:R,click:F,loading:p,onClose:b,ecanModal:f,echartRef:r,handleLocationOk:S,onFilterOption:B,locationVisible:l,locationValue:d,locationNames:c,eventObj:x}}}),n1="",o1="",bf=e=>(t.pushScopeId("data-v-d8caf47f"),e=e(),t.popScopeId(),e),vf={class:"location-wrap"},Sf=bf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Cf(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"),u=t.resolveComponent("a-select"),y=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(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",vf,[Sf,t.createVNode(u,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=f=>e.locationValue=f),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,(f,x)=>(t.openBlock(),t.createBlock(c,{key:x,value:x},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Tl=Ce(xe(pf,[["render",Cf],["__scopeId","data-v-d8caf47f"]])),Aa={...De,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:""},ka=Ae(Aa),Bl=["click","refreshData","resetRecord"];ot.use([_t.CanvasRenderer,bt.ScatterChart,Be.ToolboxComponent,Be.TitleComponent,Be.TooltipComponent,Be.LegendComponent,Be.MarkLineComponent]);const wf=t.defineComponent({name:"EcanScatter",props:{...ka},components:{Spin:qt,Echarts:wt,EcanModal:It},setup(e){const{pageMode:o,fontFamily:n}=t.inject(Pe,{pageMode:"normal",fontFamily:""}),a=t.ref(!1),i=Ee(e),r=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?Ke:12),d=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),c=t.computed(()=>{const A=e.xAxisLabelFormatter,T=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(){Xt(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 D;a.value=!0,(D=s.value)==null||D.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(){ue.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(D){return typeof D=="string"&&D[0]==="0"&&!isNaN(+D)&&(D=(+D).toString()),ft(A,D)}},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(D){return ft(T,D)}},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(D){var R;const{marker:O,seriesName:I}=D,_=((R=D==null?void 0:D.data)==null?void 0:R.record)??{},{name:L,value:k}=_;return Le(e.tooltipFormatter,{textData:{marker:O,seriesName:I,a:I,b:L,c:k,..._}})},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:u,setGlobalModel:y}=t.inject(Ie,{getGlobalModel:A=>{},setGlobalModel:(A,T)=>{}}),f=(A=[],T)=>{const{name:D="name",value:O="value"}=T||{};r.value=A.map(I=>({value:[I[D],I[O]],record:I}))};t.watch(()=>e.data,A=>{(e.dataType==="static"||t.unref(o)==="design")&&f(A)},{immediate:!0,deep:!0});const x=t.ref(!1),m=qe(e),h=async()=>{var A,T;if(e.dataType==="request"){x.value=!0;try{const D=await m();f((T=(A=D==null?void 0:D.data)==null?void 0:A.data)==null?void 0:T.rows,e.dataFieldNames)}catch(D){console.error(D)}finally{x.value=!1}}},g=()=>{a.value=!1},C=Re(e);y(e.id,{type:e.type,RECORD:""});const p=C("click",A=>{const T=e.id,D=u(T);y(T,{...D,type:e.type,RECORD:A==null?void 0:A.data})});Oe(e,{refreshData:()=>{h()},click:p,resetRecord:()=>{const A=e.id,T=u(A);y(A,{...T,RECORD:""})}});const{setRequest:w}=t.inject(ze,{setRequest:A=>{}});return typeof w=="function"&&w({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:c,style:i,click:p,loading:x,onClose:g,ecanModal:s}}}),i1="";function Af(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 El=Ce(xe(wf,[["render",Af]])),Ta={...De,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},Ba=Ae(Ta),kf=t.defineComponent({name:"EcanCustomGraph",props:{...Ba},components:{Echarts:wt},setup(e){const o=Ee(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:ds}}});function Tf(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 Dl=Ce(xe(kf,[["render",Tf]])),Ea={...De,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},Da=Ae(Ea),Il=["refreshData","click","resetRecord"];ot.use([_t.CanvasRenderer,bt.BarChart,bt.LineChart,Be.TitleComponent,Be.LegendComponent,Be.DatasetComponent,Be.ToolboxComponent,Be.MarkLineComponent]);const Bf=t.defineComponent({name:"EcanComboGraph",props:{...Da},components:{Spin:qt,Echarts:wt,EcanModal:It,AModal:ue.Modal},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(Pe,{pageMode:"normal",fontFamily:""}),i=t.inject("usedComponentList",[]),{getGlobalModel:r,setGlobalModel:s}=t.inject(Ie,{getGlobalModel:V=>{},setGlobalModel:(V,q)=>{}}),l=t.ref(),d=t.ref(!1),c=t.ref(!1),u=t.ref(null),y=t.ref([]),f=t.ref({});let x;const m=Ee(e),h=t.ref([]),g=t.ref([]),C=t.ref(),p=t.ref([]),v=t.computed(()=>d.value?Ke:12),b=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 V=l.value.chart.getOption(),{xAxis:q}=V||{};q&&q.length&&(y.value=q[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(){Xt(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 V;d.value=!0,(V=C.value)==null||V.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(){ue.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?Ke:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:d.value?Ke:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(p).map((V,q)=>({name:V.name,itemStyle:{color:e.colors[q]},icon:e.legendType})),formatter:V=>sn(e.legendFormatter,{name:V})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:V=>{var de;const q=V.length;let U="",$=e.tooltipFormatter;x=(de=V[0])==null?void 0:de.data,$===""&&($="{marker} {a} {c}");const J=e.seriesTypes;for(let ne=0;ne<q;ne++){const le=J[ne],{tooltipFormatter:Q}=le||{},{marker:ae,seriesName:ee,name:oe,value:se,data:ve}=V[ne]||{};if(ne===0){let we=oe;typeof oe=="string"&&oe[0]==="0"&&!isNaN(+oe)&&(we=(+oe).toString()),U+=`${ft(e.xAxisLabelFormatter,we)}<br/>`}U+=Le(Q||$,{textData:{marker:ae,name:oe,value:se,seriesName:ee,a:ee,b:oe,c:se||0,...ve}},{useNewline:!0,useSpace:!0}),U+="<br/>"}return U},textStyle:{color:e.tooltipTextStyleColor,fontSize:v.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(g).map(V=>{let q={};return V&&typeof V=="object"?q={...V}:q={value:V},q}),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(V){return typeof V=="string"&&V[0]==="0"&&!isNaN(+V)&&(V=(+V).toString()),ft(e.xAxisLabelFormatter,V)}},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(O),series:t.unref(h)})),w=()=>{d.value=!1},A=(V=[],q=!1)=>{let U;if(e.dataFieldConfigType==="key"){const J=q?e.keyTypeDataFieldNames:null;U=Dt(V,J)}else if(e.dataFieldConfigType==="value"){const J=q?e.valueTypeDataFieldNames:null;U=Ht(V,J)}g.value=U.dimensions;const $=U.dataset;p.value=U.dataset,h.value=D($)},T=(V=[],q,U=!1)=>{const J=Dt(V,U?q:null,!0);e.defaultRangeValue&&Lr({props:e,componentList:t.unref(i),getGlobalModel:r},J),g.value=J.dimensions;const de=J.dataset;p.value=J.dataset,h.value=D(de)};function D(V){const q=[],U=V.length,$=e.seriesTypes;for(let J=0;J<U;J++){const de=$[J],{type:ne,axisIndex:le}=de||{};let Q={type:ne,yAxisIndex:le,...V[J]};if(ne==="line"){const ae={};e.shadowColor&&(ae.shadowColor=e.shadowColor,ae.shadowBlur=e.shadowBlur,ae.shadowOffsetY=e.shadowOffsetY,ae.shadowOffsetX=e.shadowOffsetX),Q={...Q,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[J]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[J]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[J],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...ae}}}if(ne==="bar"){const{gradientShow:ae,gradientColors:ee,gradientOffset:oe}=e,se={};if(e.barBorderRadius){const ve=e.barBorderRadius.split(",");if(ve!=null&&ve.length){const we=[];for(const ke of ve){const Te=parseFloat(ke);isNaN(Te)||we.push(Te)}se.borderRadius=we}}ae&&(se.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[J]},{offset:oe,color:ee[J]},{offset:1,color:ee[J]}]}),Q={...Q,barWidth:e.barWidth,itemStyle:se}}e.isShowMarkLine&&(Q.markLine={data:[{type:e.markLineType}]}),q.push(Q)}return q}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],([V])=>{(e.dataType==="static"||t.unref(n)==="design")&&A(V)},{immediate:!0,deep:!0});const O=t.computed(()=>{const V=e.yAxis;return V==null?void 0:V.map((q,U)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:U===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:U===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter($){return ft(q.axisLabelFormatter,$)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:U===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:U===0?"right":"left"},max:e.yAxisMaxValue||null}))}),I=t.ref(!1),_=qe(e),L=async()=>{var V,q;if(e.dataType==="request")try{I.value=!0;const U=await _();A((q=(V=U==null?void 0:U.data)==null?void 0:V.data)==null?void 0:q.rows,!0)}catch(U){console.error(U)}finally{I.value=!1}},k=Ze(e),R=async()=>{var V;try{I.value=!0;const q=await k(),{columns:U=[],rows:$=[]}=((V=q==null?void 0:q.data)==null?void 0:V.data)??{};let J;U.length>0&&(J={name:U[0],types:U.slice(1).map(de=>({label:de,value:de}))}),T($,J,!0)}catch(q){console.error(q)}finally{I.value=!1}},{loadedData:B}=t.inject(kt,{loadedData:{}}),S=t.ref(!1);t.watch(B,V=>{if(e.dataType==="indicator"){const q=ln(e.graphicConfig);q!=null&&q.length&&(!t.unref(S)&&dt(e.graphicConfig,V)?(S.value=!0,E()):dt(e.graphicConfig,V)||(S.value=!1))}},{deep:!0});const E=()=>{switch(e.dataType){case"indicator":dt(e.graphicConfig,t.unref(B))&&R();break;case"request":L();break}},N=(V,q)=>!!t.unref(y)[q.value].value.includes(V),z=async()=>{c.value=!1;const V=l.value.chart.getOption();for(let q=0;q<7;q++)await j(V,q)},j=(V,q)=>new Promise(U=>{setTimeout(()=>{const{series:$,color:J,xAxis:de}=V,ne=l.value.chart,{splitArea:le={}}=de[0]||{};$.forEach((Q,ae)=>{const ee=Q.data;let oe="";q%2?oe=J[ae]+"a8":oe=J[ae],ee[u.value].itemStyle={color:oe}}),q%2?(le.show=!0,le.areaStyle.color=t.unref(y).map((Q,ae)=>ae===u.value?"#ff003b26":"")):le.show=!1,ne.setOption({series:$,xAxis:de}),U()},200)});o({refreshData:E});const F=Re(e);s(e.id,{type:e.type,RECORD:""});const M=F("click",V=>{const q=r(e.id);s(e.id,{...q,type:e.type,RECORD:e.tooltipShow?x:V==null?void 0:V.data})}),P=V=>{l.value.chart.containPixel("grid",[V.offsetX,V.offsetY])&&M()};e.tooltipShow?f.value["zr:click"]=P:f.value.click=M;const{setRequest:H}=t.inject(ze,{setRequest:V=>{}});return typeof H=="function"&&H({id:e.id,requestFn:E,sortNum:e.requestSort}),Oe(e,{resetRecord:()=>{const V=e.id,q=r(V);s(V,{...q,RECORD:""})},refreshData:E,click:M}),{style:m,option:b,click:M,loading:I,onClose:w,ecanModal:C,echartRef:l,handleLocationOk:z,onFilterOption:N,locationVisible:c,locationValue:u,locationNames:y,eventObj:f}}}),s1="",c1="",Ef=e=>(t.pushScopeId("data-v-b2e232e1"),e=e(),t.popScopeId(),e),Df={class:"location-wrap"},If=Ef(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Rf(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"),u=t.resolveComponent("a-select"),y=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(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",Df,[If,t.createVNode(u,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=f=>e.locationValue=f),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,(f,x)=>(t.openBlock(),t.createBlock(c,{key:x,value:x},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Rl=Ce(xe(Bf,[["render",Rf],["__scopeId","data-v-b2e232e1"]])),Ia={...De,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},Ra=Ae(Ia),_l=["refreshData","click","resetRecord"];ot.use([_t.CanvasRenderer,bt.RadarChart,Be.ToolboxComponent,Be.TitleComponent,Be.LegendComponent]);const _f=t.defineComponent({name:"EcanRadar",props:{...Ra},components:{Spin:qt,Echarts:wt,EcanModal:It},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(Pe,{pageMode:"normal",fontFamily:""}),i=t.ref(),r=t.ref(!1),s=Ee(e),l=t.ref([]),d=t.ref(),c=t.computed(()=>r.value?Ke:12),u=t.ref([]),y=t.ref(e.valueTypeDataFieldNames.name),f=t.computed(()=>{const R=t.unref(u),B=R.length,S=[];for(let E=0;E<B;E++){const{name:N,data:z=[]}=R[E],j=[{name:N,value:z.map(P=>P.value)}];let F=e.colors[E];if(e.gradientShow){const{gradientOffset:P,gradientColors:H}=e;F={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[E]},{offset:P,color:H[E]},{offset:1,color:H[E]}]}}const M={type:"radar",name:N,data:j,areaStyle:{color:F,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:P=>{const{data:H,value:Z}=P;let V=0,q="0%";if(H)for(const U of H.value)V+=+U;return V&&(q=`${(Z/V*100).toFixed(2)}%`),Le(e.labelFormatter,{textData:{value:Z,percent:q}},{useNewline:!1,useSpace:!1})}}};S.push(M)}return S}),x=t.computed(()=>{var N;const R=[],B=[],S=t.unref(u),E=S.length;for(let z=0;z<E;z++){const{data:j=[]}=S[z];for(let F=0;F<j.length;F++)B.push(j[F].value)}if((N=l.value)!=null&&N.length){const z=B!=null&&B.length?Math.max(...B)*1.2:0;for(const j of l.value)R.push({name:j,max:z})}return R}),m=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(){Xt(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;r.value=!0,(R=d.value)==null||R.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(){ue.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:R=>{let B="",S=e.tooltipFormatter;S===""&&(S="{marker} {a} {c}");for(let E=0;E<t.unref(x).length;E++){const N=t.unref(x)[E],{marker:z,seriesName:j,value:F}=R||{};E===0&&j&&(B+=`${j}<br/>`),B+=Le(S,{textData:{marker:z,name:N.name,value:F[E],a:N.name,b:N.name,c:F[E]||0,type:j}},{useNewline:!0,useSpace:!0}),B+="<br/>"}return B},position:e.tooltipPosition||void 0},radar:{indicator:t.unref(x),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?Ke:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?Ke:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(u).map(R=>({name:R.name,icon:e.legendType})),formatter:R=>sn(e.legendFormatter,{name:R})},series:t.unref(f)})),h=()=>{r.value=!1},{getGlobalModel:g,setGlobalModel:C}=t.inject(Ie,{getGlobalModel:R=>{},setGlobalModel:(R,B)=>{}}),p=(R=[],B=!1)=>{let S;if(e.dataFieldConfigType==="key"){const E=B?e.keyTypeDataFieldNames:null;S=Dt(R,E)}else if(e.dataFieldConfigType==="value"){const E=B?e.valueTypeDataFieldNames:null;S=Ht(R,E)}l.value=S.dimensions,u.value=S.dataset},v=(R=[],B,S=!1)=>{const N=Dt(R,S?B:null,!0);l.value=N.dimensions,u.value=N.dataset};t.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([R])=>{(e.dataType==="static"||t.unref(n)==="design")&&p(R)},{immediate:!0,deep:!0});const b=t.ref(!1),w=qe(e),A=async()=>{var R,B;if(e.dataType==="request")try{b.value=!0;const S=await w();p((B=(R=S==null?void 0:S.data)==null?void 0:R.data)==null?void 0:B.rows,!0)}catch(S){console.error(S)}finally{b.value=!1}},T=Re(e);C(e.id,{type:e.type,RECORD:""});const D=R=>{const B=R.event.topTarget.__dimIdx;B!==void 0&&T("click",()=>{var z;const{value:S,name:E}=R.data||{},N=g(e.id);C(e.id,{...N,type:e.type,RECORD:{[t.unref(y)]:((z=t.unref(x)[B])==null?void 0:z.name)||"",[E]:S[B],seriesName:E}})})()},O=Ze(e),I=async()=>{var R;try{b.value=!0;const B=await O(),{columns:S=[],rows:E=[]}=((R=B==null?void 0:B.data)==null?void 0:R.data)??{};let N;S.length>0&&(y.value=S[0],N={name:S[0],types:S.slice(1).map(z=>({label:z,value:z}))}),v(E,N,!0)}catch(B){console.error(B)}finally{b.value=!1}},_=()=>{switch(e.dataType){case"indicator":I();break;case"request":A();break}};Oe(e,{refreshData:_,resetRecord:()=>{const R=e.id,B=g(R);C(R,{...B,RECORD:""})},click:D});const{setRequest:k}=t.inject(ze,{setRequest:R=>{}});return typeof k=="function"&&k({id:e.id,requestFn:_,sortNum:e.requestSort}),o({refreshData:_}),{option:m,style:s,click:D,loading:b,onClose:h,ecanModal:d,echartRef:i}}}),f1="";function Lf(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 Ll=Ce(xe(_f,[["render",Lf]])),Of="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Nf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP2R8sfAjqEgTgIbpi5RDgogIxAQAbFAWbsrShQoUvxZ7kz3q6jqve7p7pnZmdkf8MBqQezt9+rVq/peT3V1T381CLYZAoaAIWAI3FIEjj52+lNIdKbdTr787t995Z2qMXhLrbPJDQFDwBC4zRGYmj19HyJ9jxnuBIb/SSC6752V2etFWCxQ3+YniblvCBgCtw6BqRPNhwHhH4sWsONfWH9+/j8tUN+6dbGZDQFDwBBQBKZOnvkaMP05AGcJ8yVi98W3Vk69Yo8+7CQxBAwBQ+CWIsA4Ndv8FgB+NTODmd+MiD7/1tLcj3uZZo8+bumC2eSGgCFwOyHwyd/+q7EbVyb/AQEeLPj9ahrxFy405y/2w8IC9e10lpivhoAhcMsQmD713CFu078A4H0dI/j7PN5+cP2Zx29sZZgF6lu2bDaxIWAI3C4IHHnkuXsojn4AAJ/IfUY4u3Zj/2/A2V9NB+FggXoQQtZvCBgChsAOEJiaa97LDv4DAQ7nz6QBnlpfbnxjWLUWqIdFyuQMAUPAEBgRgenZpeMM7p8AYF8YyoD8xNrS/NOjqLJAPQpaJmsIGAKGwJAIfGy2OZ8CP4uAJEMQYdMx/9r68vx3B6k4cqL5JDO8euH5xjkdO2iA9RsChoAhYAiMhsDUyTN/DIx/kI9CuAJMx9eWT748SNPR2TOLCHgSAC6nBJ+5sNg4b4F6EGrWbwgYAobAkAj83G/9Te2dzXqTGR7tDMFVdukD68+fen0rNQfnmgf3p/AdQJjJ5Bjg1fXlxmcsUA+5ACZmCBgChsBWCNw1f3pyLKEXAeBzBbnXawQz5xcbF7Yae/dc8xg5+A4C3FuSY2isrTQWLVDbuWcIGAKGwA4RODbXvDtx8H0G+HQhk355bHzz+BvPPH5lK/VTjzTvhRh+CAAHcznmK5DizNrfNl6VtlED9YfyCwjwGsLMRYSrV/34jY8jtK4hJBsIySaCayEcOQrQ3kRIWghpGyG9A8G18SMA8L5L8M7J/XjFJTiZJgguRYBJYJcgcIo8kSK4MWSWdgBwDpnHvNy4b2NXR2AX/q8h1J1v17Yayhjtr8faXmfGTXZY59i3x5m8HDMCR7rnmm+HTE71xchBXuWEm69jHMaxHIt8GB/JeP+3byevN5Jj/7e2R/7vCBgTJoylPfbyrDJBNhLh8LfqyXRIB2NEjCmT6vHjIgDKxostYiehNKsdmS4i7YuAQMflY8ry8hWI76/KZ3aIPAb9Xkb+069OmJEye0RGbCHZBz/lGEO79xmIsnNSv3/p3qjaPqxcpirIF3ZO5u2aqSzX6a5I5ocD7KrIyaGTlc3N6uNH9SPa5X9vv/rZK57qvF3T9fCrt2DR6qIDfZYrzFf1t4q4Tt8Lg2HxDtNXHMv97Zq/gv8O+xngN6V8RwGEb68tN36l90ncaZ060ZwDhGZJjvlHkOJcFqSlb5RAjQsLC7iwcI7gZw6TBObpwwdo9Y3X6fBHD+HF1gYdPHCELl96Dyf3jdHVpEUH9k3gtQ9atG+sRjc4xYl6TBvXExofq0vwpno9ps0Nh1CLiF1C9XoNWzdTqsVELWaUfbvlsBZF1OaUJCi2naNahMRtxniMKGk7iqMIE04pojolSRvjqEaJcxRFhGnSpqgWEySAFCGl7CgiQtkTxeTSFAmRUiCMyPeTBKXEEcVIzrH2O2aRxzT17ZBKYNU9AWlgJq8nk1f96NKERLMEKcz1ROj1ITofZQkcqn1yrO0SUUU+6BP9iIQsUdfrQUIS++RYgqDYrfZKP8t40iDr+0v6SKIziQYAR/KtNEtk1XGZPu0kVrtJ/c/mAf8tdkVergBYsA/EXGK1TwO47EU/onx6FCZAtZ/IzxP0SowHb5BcRPzeTwictefHvl+3ME73IO16EaqMD+2V/ny+6rgB82X2+Ol3YG8+T7C3OC+I/2V/ivN52HqMy+2hML6DX3l8Ae8unAO+fgF0XTy+O/S3Or4nzh27O/OKAZm/g9a37O+goLl7/fj02vLJJwBQjO27HZ1tStb7h9UgfT3CmcuLjcvF9pECtWbTM+cI3n2XoHUPws3LBIcmSbLmQ60JupRskGbK7Zt0IKmTZsdjLbqe1mhCMuK0RVxPCNgHanYxaSbsEmIXkWbCtZTAEdViyRAloDhsu4jiKCXNVJ3TDzlHEhzlb/k/wihCSrgYtDUYSbbnZaIINcFT+XJQTpk1qPs+DVYIFHtZjT+OJKqlxBhJv3wyQnBU/ZKNSrtEImCU2E6oZxOC7NkHcwmCKp8FXwlseb98qkQvk4+BPpj5jFjaO/rED4maEvykXWJfZx6vR8f7rNbbGvRJqutQgFU/ZP1lDjEXdW6G4Jt++v38/goh/gV5vYj4oJzJe/06D3vQvH2qozC/SPg2xUdk9ZYh86cTBcJ5WggKIbPIgnYxaIRIXUg9iqe2tybrzMfnnwRBJTsoz5e3ZheDTDA/Lo/Lzdfg2jE4v5j0G1/Rn1+cNAT7oJj7mLtS9tFHT/9P8EKPdXwpJ+v2N7N7aH+r9gZ/81je5Wcl1HT5q5caHTXM+pTtLY8r+VtZ190Lxj01yW3h760uN57aah750nBfCn+BCHNFOQZeWl+eL7VVzq6hzEf4MKOGhfDY49y7BJ+8Rx93TB85jHlmnbbxUHoH5kH7/QQnDySoGTZP4DWX4v6JMbyetn3wdtcQxuvI1xMCybT1cUUN+UZCsgfewDrX/GOLWkSt8PhCM+5IMm+HNYixzZuaect4lscW4BAiImgz+iDtMI4kA2d9XJGwwygiStsse0wgwVgywOJjB/KBMuIINVPWjNvLp4k8dtCUzT+OSPS23strxq6RWzPs/Fj6JRMPjxE05dOoSpJZhsxe9hE6SJFAH8tkFwUdx5LxM6KTSKeZt2by/rGCf0whGbzvR5FzYrbq95m1XDS8vMpJphweb2h4L86n8pIOix61Lx+vOKE+BtL5y/rloqefupBJS1CXWEMILvgjuAW79c5ArjY+GnWiiJqpI8MJ6h8YEBE4J7fvCM5fWfztPIp6vUqExwrhtrnz6S8Eu46gXl7B+WtZr0yxEIS8QHY7HhTnE4ZMPpeX08P5zD4EyzwxDRmkNyg8CJHbdu9IFq58r/qlt0TBr8xfCP52Hi+EAT31qN1d9vTK4EOw7GOPvwZ31sXjFvws3QlkeuRjXYAte8TRtb7e7846Vh6byHrrumfrm91Jeb+61qXnnZk/MfM7reyOK7/z2kE/0bOrS3MvDAzSDn5Y/dLQMXzt7ZXGN/uNHSWjHiqam5AhYAgYAoZANwLypSHH+mbHsbxXvjQEfFLe7NgKMwvUdkYZAoaAIbDHCBx9rPkQkn5p2PfNDgvUe7wIpt4QMAQMgX4I9HuzI43wIWEdDoOcZdTDoGQyhoAhYAhsA4ECHbwzmvml6xE+VH2zwzLqbQBsQwwBQ8AQ2AkCSmSJ+Bwg3lnUkzq4Pyu2NKx+y6iHRcrkDAFDwBAYEQFfv0OD9c+WhgZq+LDqLFAPi5TJGQKGgCGwDQRCsP5nQCzWAJFXNhfWlxt/NIzKUQN15Q37BVA6+cMAcPZip+ZTkVqeWSEUc9mEZq77TQSYBoBVgJ+6C+FtALhL2sIm1HP5QYR0He+Cj8J7AHAobeMlAPiIa+P78vXpHQdQ6DvyNerltK33F0pDDxun+/zfoY33JwhXAWDyAIBQ11U+0NSLcjzux40XdAklHSZASDy5jWEsy/vfGwAw5vvGAeAmOxyHcbjpUhwDgE3plv6bwmev+bnlnfFsU/1joLR5GaD2eLninH5MXQxH2SlVPnfY0+Vr7LAl09Rr0HIORcy/b64O+/Gy5TT6QIPP+4NcrVa2UenzmQ4ZX1N9wnxv5/rlfW5pERZ+sM0V9Mv77RD0ejHPt/GAlM/HOAZIEgDZFzY5SmT6rn3c1e79LAj2bijp7z4I83fpqUoOFAi4Z/aU/epnRAwRJJCC3xfcKcCTtXcmGOBSEQfFOSjuOWxv/OqxMN6qHn558/qsb5fNwd6iX1X/9uD4Zt3993tnTkmE6bn1el7NDIvrK43GoNUaJVCL7IfMxJmezERoTRBUmInXOMX9YzGxsBAlAKVxH2aip5ALM7FeS6klzERmbMWyF+ZiRJwzE4WdkHaYiUJqCQxEIYPkdHInr8UHEkqVmShMicBSFL62MhO1BoYTMggpB4Q8S1FZFZ5k4skrQrNWZqISTISMkrMHlWyipJEykzBjGCpzkZGc/KOswyozUcggWqxAGCI5SzEwJgJtG8gzH3szE4WH7mnggRHo2RRKIVeGYSChBCalrGmBPVhgGnr2QGAV+vYiM9GzDYvyHQZimZkY1iFjRm7FTMzJNh2acrnKQcYwlNM6IztUTuE+DMKcQlLtz/VkH5WyXj+uF2Muk+s9LrOvP1Ov4IP+mfnh935cZd4CfTv/YI/MaKx+5Pv4W2U0DmBiensCH7XIhCyN68GIrOCfMyh7MjEr616ksw/N4BwUErffzwCv1Qke2KpS3tRsU0gtv1uaheHc9Qi+tNWXiyMF6v61Pj6FF1s/2btaH+MRtVt7WesjohRgQK0PqUhBw9f60JogUutDmIE+mCNG5DglomqtD6Ha8fZrfURKWRPz+tT60AJKhdoh26/1obTxHdX6kKImQtULtT58DZP+tT5CuNqTWh85g7BY6yIw7rpqbZRrW2TRdEe1PooXm61qfRRrdgQGXSeay8Dt1b4o1SbpqrUR/A01RDK6/o78LdUKqdRiGbbWhxowqLZJd22Y7YffEUcyr0ZEv/iTpbnX+o3s9bqe1J2+QXB/v2A9UqD2aczDCHARs8JMecW8UPMjq5R3MNmgyy7BOyb34wdpgnntD3lcoDVAaj7LdmP+uK61NTyF3IVjrYAnNHKHLI8LNOv21ewk4wbJsjmSmhO++p3UAYk1o/QV7FxKEPs+X1WPwjFjrFXqfA0Qf8vts2jNpkWftMv4UAlPaeZS0IkZfQGnrDZIqEiXHWfV6rL6H6EqXZTPF6rThYzU1+MQ9rKnf0eAnn5epJmrfXKWEzJKpp/1B0q31NgItHAteZT5g5q2k5NbANVfpJD76nbZHYGnbxcp5DktXYOoz+CLFPLQH+bL9Wc1SXzdD1/vQ+s6FefzfRJzCpl5qKRXoJCXMs3stK9WtfOnsG8tZmyVqmv9MsJKVbs8P+6bQXZmy7LIggGdTD9XlFtW7uvS39uv7szZt+RFBvNPcNFfLUQYtuodR7VCXSeDL9+9jGZPRr/vJMiVecPTrcz6fn517pTK6537mzcP51dxPbeqkJTdcfULroP6izWoGeADYv7l1ZX5l/rpUwIM8mLxjRAGOI8JfKlYNa/PKo549TBxQ8AQMAQMAZg+ceZzTPgiMEx6OLgNjI+urTTO9oOnz+t7lyGB+6vBepSM2pbDEDAEDAFDoA8CP31y8dOOWX484G4fq7VS2u+vrjT+dECwlsx6y9f3LFDbaWcIGAKGwC4hMPXos9MYxf9W/KUXBDiz+vE3vwILC1IbsWvr9661A3jy7eXGX8oAC9S7tECmxhAwBAwBQUB+O3E8oRe59NuJ+L0a8ZfPLzbkBd2ewXqf42+GXx/P+7PX9yxQ27llCBgChsAuIyC/Rn5hs/4CsLJMdEPAV5LI/dKF5vzFvo9Cqq/vMb+0tjI/Y4F6lxfI1BkChoAhkCFwdLb5JwjwjQIibxLi599amvtx32Cd/Y4i84+yn+WyQG3nlCFgCBgCe4jA0dnmPAI/m/8EDcIl59wX31459Uq/ae9+rDkDMZzPyqBaoN7DBTLVhoAhYAgIAtOzS8cZ3LdDhQlpusnAv76+PP/dYRCyQD0MSiZjCBgChsAOEfjYidOfTZH+1Rcx0qfWDOieWFuaf3qQagvUgxCyfkPAEDAEdgmBI488dw/F0Q8A4BOZSgT8s9Xlua9vNYUF6l1aAFNjCBgChsAwCEyfeu6Qa9O/I+Bnc3mGsxMHr574v7/+HSm02bVZoB4GWZMxBAwBQ2AXETg21xxPHPw9AzzYUcsvj423j7/xzONXqlNZoN5F8E2VIWAIGALDI8A4Ndv8FgB+tZNZ8+vg6g+svfDYalGPBerhUTVJQ8AQMAR2HYGjs82vf/irJE+F8o/vM/HPry82/tcC9a5DbQoNAUPAENg+AlMnmg8DwWlA+MLaYuO/7NHH9rG0kYaAIWAI7BkCx+aaB88vNuTXBbu2/wfAQwC29PHqBQAAAABJRU5ErkJggg==",Ff="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Mf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",_a={...De,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"},La=Ae(_a),Ol=["click"],zf=t.defineComponent({name:"EcanBorder",props:{...La},setup(e){const o=Ee(e,["background"]),n=t.computed(()=>{const{isTransparent:m,gradientShow:h,gradientColor:g,gradientOffset:C,gradientAngle:p,backgroundColor:v}=e;if(h){let b=g;return m&&(b="transparent"),b?{background:`linear-gradient(${p}, ${v}, ${b} ${C*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:m}=e;let h={};return m!=null&&m.length&&m.find(C=>C.emit==="showModal")&&(h={cursor:"pointer"}),h}),{theme:i}=t.inject(Pe,{theme:"light"}),r=t.computed(()=>{let m="";switch(e.titleMode){case"type-2":m="2";break}return m}),s=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":Of,"../../assets/border-title-decoration-left2.png":Nf})[`../../assets/border-title-decoration-left${r.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":Ff,"../../assets/border-title-decoration-right2.png":Mf})[`../../assets/border-title-decoration-right${r.value}.png`],self.location).href),d=t.computed(()=>({width:"100%",height:"100%"})),c=t.computed(()=>{const{borderRadius:m}=e,h=[],g={};if(m){const C=m.split(",");for(const p of C)(+p||+p==0)&&h.push(+p+"px")}return h!=null&&h.length&&(g.borderRadius=h.join(" ")),g}),y=Re(e)("click",()=>{}),f=t.ref([]);t.watch(()=>e.data,m=>{f.value=m},{immediate:!0,deep:!0}),Oe(e,{click:y});const{setGlobalModel:x}=t.inject(Ie,{setGlobalModel:(m,h)=>{}});return x(e.id,{type:e.type,value:f}),{style:o,gradientStyle:n,click:y,borderStyle:d,theme:i,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),h1="",Rt=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),Pf=["id"],qf=Rt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Vf=Rt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Hf=Rt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),jf=Rt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Wf={class:"title-item"},Gf=["src"],Uf={class:"title"},$f=["src"],Kf=Rt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Yf=Rt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Zf=Rt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Qf=Rt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Jf={key:2,class:"left-title"},Xf={class:"title"};function eu(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},[qf,Vf,Hf,jf],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",Wf,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Gf),t.createElementVNode("div",Uf,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,$f)])],2),Kf,Yf,Zf,Qf],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Jf,[t.createElementVNode("div",Xf,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,Pf)}const Nl=Ce(xe(zf,[["render",eu],["__scopeId","data-v-8dd53b8f"]])),Oa={...De,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},Na=Ae(Oa),Fl=["tabChange"],tu=t.defineComponent({name:"EcanTabs",props:{...Na},components:{ASelect:ue.Select,ASelectOption:ue.SelectOption,MarqueeScroll:Hn},setup(e){const o=Ee(e),n=t.ref(0);t.watch(()=>e.activeKey,m=>{n.value=m},{immediate:!0});const{pageMode:a}=t.inject(Pe,{pageMode:"normal"});let i=null;const r=()=>{const m=Array.isArray(t.unref(s))?t.unref(s).length-1:0;!e.isAutoScroll&&e.autoSwitch&&m>0&&(i=setInterval(()=>{const h=t.unref(n)+1;h<=m?n.value=h:n.value=0,l.value=t.unref(s)[t.unref(n)],y()},e.autoSwitchInterval*1e3))};t.onMounted(()=>{t.unref(a)!=="design"&&r()}),t.onBeforeUnmount(()=>{clearInterval(i)});const s=t.ref([]),l=t.ref({});t.watch(()=>e.data,m=>{s.value=m,l.value=Array.isArray(m)&&m.length>0?m[0]:{}},{immediate:!0,deep:!0});const d=m=>n.value===m,c=Re(e),{setGlobalModel:u}=t.inject(Ie,{setGlobalModel:(m,h)=>{}});u(e.id,{value:l,activeKey:n});const{emitRefreshPage:y}=t.inject(an,{emitRefreshPage:()=>{}}),f=m=>{let{tab:h,index:g}=m||{};if(m.label){const C=t.unref(s).findIndex(p=>p.title===m.label);C!==-1&&(g=C,h=t.unref(s)[C])}c("tabChange",()=>{!isNaN(+g)&&g!==t.unref(n)&&(l.value=h,n.value=g,y())})()},x=t.computed(()=>{const m=e.componentList.map(h=>parseFloat(h.left)+parseFloat(h.width)).sort((h,g)=>g-h)[0];return{width:m?m+"px":"100%"}});return Oe(e,{tabChange:f}),{style:o,activeKey:n,isActive:d,tabChange:f,myData:s,useImagePath:mt,pageMode:a,scrollWrapStyle:x}}}),m1="",nu=["id"],ou=["onClick"];function au(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},[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})},[e.tabType==="tabs"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.myData,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(u)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(u)?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:u,onClick:t.withModifiers(y=>e.tabChange({tab:c,index:u}),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(u)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,ou))),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,u)=>(t.openBlock(),t.createBlock(s,{key:u,value:u,onClick:y=>e.tabChange({tab:c,index:u})},{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)],12,nu)}const Ml=Ce(xe(tu,[["render",au],["__scopeId","data-v-b95bfc11"]])),Fa={...De,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"},Ma=Ae(Fa),zl=["click","refreshData","resetRecord"];let Pl=(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 iu=t.defineComponent({name:"EcanCirculate",props:{...Ma,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll:Hn,Skeleton:Vt},setup(e,{expose:o}){const n=t.ref(!1),a=Ee(e,["background"]),i=t.inject("usedComponentList",[]),r=t.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=t.inject(Ie,{getGlobalModel:T=>{},setGlobalModel:(T,D)=>{}}),d=t.ref([]),c=t.ref({}),{pageMode:u}=t.inject(Pe,{pageMode:"normal"}),y=t.computed(()=>{if(t.unref(r)){const T=document.body.clientWidth,D=e.sourceWidth||parseFloat(e.width);return T/D||1}else return 1});function f(T,D){const O=D.find(I=>I.id===e.id);if(O)for(const I of T)I.left=parseFloat(I.left)-parseFloat(O.sourceLeft||O.left)+"px",I.top=parseFloat(I.top)-parseFloat(O.sourceTop||O.top)+"px"}const x=T=>{const D=T.sort((L,k)=>parseFloat(L.top)-parseFloat(k.top))[0],O=T.sort((L,k)=>parseFloat(L.left)-parseFloat(k.left))[0],I=T.map(L=>parseFloat(L.left)+parseFloat(L.width)).sort((L,k)=>k-L)[0],_=T.map(L=>parseFloat(L.top)+parseFloat(L.height)).sort((L,k)=>k-L)[0];if(O&&I&&D&&_){const L=parseFloat(O.left),k=parseFloat(D.top);return{width:I-L,height:_-k,left:L}}else return{width:0,height:0,left:0}},m=t.ref({}),h=T=>{var N,z;const D=[],{graphicConfig:O,id:I,componentList:_,keyFieldMap:L,unitInterval:k,colNum:R}=e;let B=_e.cloneDeep(_),S=[];if((N=t.unref(i))!=null&&N.length)for(const j of t.unref(i))S.push(j),(z=j==null?void 0:j.componentList)!=null&&z.length&&S.push(...j.componentList);if(O.pageMode==="design"&&O.preview){const{containerMap:j}=O.pageConfig||{};S=O.componentList||[],S.push(e),B=ba(j,_e.cloneDeep(S),I)}f(B,S);const E=x(B);if(T!=null&&T.length){const{width:j,left:F,height:M}=E;let P=0,H=0;T.forEach((Z,V)=>{Z.index=V+1;const q=Pl(),U=_e.cloneDeep(B);for(const $ of U){const J=L.find(ne=>ne.keyName===$.keyName),de=Pl();if($.left=(parseFloat($.left)+P)*t.unref(y)+"px",$.top=(parseFloat($.top)+H)*t.unref(y)+"px",$.scale=t.unref(y),$.id=de,$.keyName=$.name+"_"+de,$.unitId=q,J!=null&&J.fieldName){const ne=$.text.match(/\{(.+?)\}/g);switch($.type){case"ecanText":{$.data={value:String(Z[J.fieldName])},ne!=null&&ne.length||($.text="{value}");break}case"ecanProportion":{$.data={percent:String(Z[J.fieldName])},ne!=null&&ne.length||($.text="{percent}");break}}}}R&&Z.index%R===0?(P=0,H+=k+M):P+=k+j,D.push(...U),m.value[q]=Z}),c.value={width:((R||T.length)*(j+k)+F)*t.unref(y)+"px"}}d.value=D},g=Ze(e),C=async()=>{var T;try{n.value=!0;const D=await g(),{rows:O=[]}=((T=D==null?void 0:D.data)==null?void 0:T.data)??{};h(O)}catch(D){console.error(D)}finally{n.value=!1}},p=()=>{switch(e.dataType){case"indicator":C();break}};Oe(e,{refreshData:p,resetRecord:()=>{const T=e.id,D=s(T);l(T,{...D,RECORD:""})}}),o({refreshData:p}),l(e.id,{type:e.type,RECORD:""});const{setRequest:b}=t.inject(ze,{setRequest:T=>{}});typeof b=="function"&&b({id:e.id,requestFn:p,sortNum:e.requestSort});const w=Re(e);return{loading:n,style:a,myComponentList:d,scrollWrapStyle:c,pageMode:u,click:T=>{let D=T.target;if(D){let O=D.getAttribute("unitId");for(;!O&&!D.className.includes("ecan-");)D=D.parentElement,O=D.getAttribute("unitId");O&&w("click",()=>{const I=s(e.id);l(e.id,{...I,type:e.type,RECORD:t.unref(m)[O]})})()}}}}}),x1="",ru=["id"];function lu(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",style:t.normalizeStyle({height:e.height}),wrapStyle:{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","style"])):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,ru)}const ql=Ce(xe(iu,[["render",lu],["__scopeId","data-v-7d2188ee"]])),za={...De,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:""},Pa=Ae(za),Vl=["click"],qa=t.defineComponent({name:"EcanImage",props:{...Pa},setup(e){const o=Ee(e),n=t.computed(()=>mt(e.imgUrl)),{pageMode:a}=t.inject(Pe,{pageMode:"normal"}),{getGlobalModel:i,setGlobalModel:r}=t.inject(Ie,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Re(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||"",u=Nr(t.unref(a),c),y=e.href;let f=y||u;f=Le(f);const x=e.target;x&&(x!=="event"?window.open(f,"_"+x):window.parent.postMessage({type:"openPage",url:y},"*"))});return Oe(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),Hl=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},jl=qa.setup;qa.setup=jl?(e,o)=>(Hl(),jl(e,o)):Hl;const b1="",su=["src"];function cu(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,su)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const Wl=Ce(xe(qa,[["render",cu],["__scopeId","data-v-47ea6e7c"]])),Va={...De,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ha=Ae(Va),du=t.defineComponent({name:"EcanIframe",props:{...Ha},setup(e){const o=Ee(e),{contextRequestUrl:n}=t.inject(Pe,{contextRequestUrl:""}),a=t.computed(()=>{let i=Le(e.link);if(e.linkType==="erd"&&i!=null){let r=t.unref(n);r[r.length-1]==="/"?r+="erdReport":r+="/erdReport",i=`${V0||r}?_t=0&uid=${i}`}return i});return{style:o,myLink:a}}}),S1="",fu=["src"];function uu(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,fu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Gl=Ce(xe(du,[["render",uu],["__scopeId","data-v-19bc100c"]])),ja={...De,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},Wa=Ae(ja),Ul=["click","refreshData","resetRecord","exportTableData"],hu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC",gu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",mu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/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==",Ga=t.defineComponent({name:"EcanTable",components:{Skeleton:Vt,AButton:ue.Button,AInput:ue.Input,ACheckboxGroup:ue.CheckboxGroup,ATable:ue.Table,ATableSummary:ue.TableSummary,ATableSummaryRow:ue.TableSummaryRow,ATableSummaryCell:ue.TableSummaryCell},props:{...Wa},setup(e,{expose:o}){const n=t.ref(!1),a=t.computed(()=>{const W=_e.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=Ee(e),l=t.ref([]),d=t.computed(()=>e.scrollX),c=t.ref(0),u=()=>{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 K=parseFloat(e.height);const X=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),re=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),ce=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ie=0;if(re&&(K-=(re==null?void 0:re.clientHeight)||0),ce&&e.isSummaryFixed&&(ie=(ce==null?void 0:ce.clientHeight)||0,K-=ie),e.paginationShow){let te=0;te=u(),te&&(K-=te)}(X==null?void 0:X.clientHeight)>K?c.value=K:c.value=0,t.nextTick(()=>{if(ie){const te=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),fe=(te==null?void 0:te.clientHeight)||0;ie!==fe&&t.unref(c)&&(c.value=K+ie-fe)}})})});const y=t.ref([]),f=t.ref([]),x=t.ref([]),m=t.ref([]),h=t.ref(0),g=t.ref(1),C=t.ref(e.paginationPageSize||10),p=t.reactive([]),v=(W,K)=>{let X="";return W.forEach((re,ce)=>{const{value:ie,rule:te}=re;re.conditions?X+=`(${v(re.conditions,re.join)})`:ie&&te&&(X+=`value ${te} '${ie}'`),X+=`${ce===W.length-1?"":K?" "+K+" ":""}`}),X},b=(W=[])=>{var K,X;if(Array.isArray(W)&&W.length>0){let re=W.length;const ce=e.columnsFixedNum;if(e.dataType==="indicator"&&((K=t.unref(a))!=null&&K.length)){const{graphicConfig:{indicators:ie=[]}}=e;W.forEach((te,fe)=>{if(t.unref(a)[fe])for(const Me in t.unref(a)[fe])["dataIndex","title"].includes(Me)||(te[Me]=t.unref(a)[fe][Me]);const ye=ie.find(Me=>Me.label===te.title),{showLabel:Se=""}=ye||{};Se&&(te.title=Se)})}for(let ie=re-1;ie>=0;ie--)(X=W[ie])!=null&&X.isHidden&&W.splice(ie,1);re=W.length;for(let ie=0;ie<re;ie++){const te=W[ie];if(ie<ce?te.fixed="left":te.fixed=!1,e.isSortByFront&&te.sorter){const xt=te.dataIndex;te.sorter=(He,rt)=>He[xt]-rt[xt]}const{cellAlign:fe="center",cellColor:ye,dataIndex:Se,title:Me,tableFilter:nt,headerCellAlign:Ct,headerCellColor:Ft,overflow:un,conditions:Mt}=te;nt&&(p.push(Se),te.filterOptionsInputValue="",te.filterCheckboxGroupValue=[],te.customFilterDropdown=!0,te.onFilter=(xt,He)=>He[Se].toString().toLowerCase().includes(xt.toLowerCase())),Mt&&(te.conditionCode=v(Mt)),te.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Ct||"center",color:Ft||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),te.customCell=(xt,He)=>({style:{textAlign:fe,color:ye||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(q)===He&&e.clickHighlight},onClick:F("click",()=>{const rt=e.id,En=M(rt);xt={dataIndex:Se,title:Me,...xt},P(rt,{...En,type:e.type,RECORD:xt})})}),un==="ellipsis"?te.ellipsis=!0:te.ellipsis=!1,Array.isArray(te.children)&&b(te.children)}}},w=(W=[])=>{var X;let K=_e.cloneDeep(W);return(X=t.unref(m))!=null&&X.length&&(K=_e.cloneDeep(t.unref(m))),e.isUseSeq&&K.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&K.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),b(K),K};t.watch(C,()=>{g.value=1,de(!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],()=>{y.value=w(_e.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([W,K])=>{K==="static"&&(f.value=W)},{immediate:!0});const A=t.ref({}),T=W=>{if(Array.isArray(W)){const K=W.length,X=p,re=X.length,ce={};for(let te=0;te<K;te++){const fe=W[te];for(let ye=0;ye<re;ye++){const Se=X[ye];if(ce[Se])ce[Se].add(fe[Se]);else{const Me=new Set;Me.add(fe[Se]),ce[Se]=Me}}}const ie={};for(const te in ce)if(Object.prototype.hasOwnProperty.call(ce,te)){const fe=ce[te],ye=Array.from(fe);ie[te]=ye.map(Se=>({label:Se,value:Se}))}A.value=ie}};t.watch(()=>[e.isReverse,y.value,f.value],()=>{const W=t.unref(y),K=t.unref(f);if(T(K),e.isReverse){const{columns:X,dataSource:re}=D(_e.cloneDeep(W),_e.cloneDeep(K));x.value=X,l.value=re}else x.value=W,l.value=K},{immediate:!0});const D=(W,K)=>{const X=W[0],re=[{title:X.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ie=0;ie<K.length;ie++){const te=K[ie],fe="col"+(ie+1);re.push({title:te[X.dataIndex],dataIndex:fe,key:fe,align:"center"})}const ce=[];for(let ie=1;ie<W.length;ie++){const te=W[ie],fe={col0:te.title};for(let ye=0;ye<K.length;ye++){const Se=K[ye];fe[`col${ye+1}`]=Se[te.dataIndex]}ce.push(fe)}return{columns:re,dataSource:ce}},O=t.ref(""),I=qe(e),_=async(W=!0,K={})=>{var X;try{W&&(n.value=!0),t.unref(O)&&(K.orderCondition=t.unref(O)),e.paginationShow&&(K={pageNum:t.unref(g),pageSize:t.unref(C)||"10",layer:"1",...K});const re=await I(K),{rows:ce=[],total:ie=0}=((X=re==null?void 0:re.data)==null?void 0:X.data)||{};if(h.value=ie,Array.isArray(ce)&&(f.value=ce),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:te=[]}=e,fe=te.find(ye=>ye.key==="dataSqlId");if((fe==null?void 0:fe.value)==="xt_jxzebg"){const ye=ce.filter(Se=>!Se.绩效总额).map(Se=>Se.ORG_NAME);ye!=null&&ye.length&&t.nextTick(()=>{ue.notification.warning({message:"提示",description:`当前时段${ye.join("、")}绩效数据为空`,duration:3})})}}}catch(re){console.error(re)}finally{n.value=!1}},L=({current:W},K,X)=>{if(g.value=W,X&&Object.keys(X).length>0){const{field:re,order:ce}=X,te={ascend:"asc",descend:"desc"}[ce];re!=null&&te!=null&&te?O.value=re+" "+te:te||(O.value="")}e.isSortByFront||de(!1)},k=t.computed(()=>{const W=e.simple,K=[e.paginationPosition],X={};return e.isShowTotal&&(X.showTotal=re=>`共 ${re} 条数据`),e.paginationShow&&{simple:W,position:K,total:t.unref(h),current:t.unref(g),pageSize:t.unref(C)||"10",showSizeChanger:!1,size:"large",...X}}),R=W=>+W==1?"是":+W==0?"否":W,B=(W,K)=>{const{format:X,retentiondigit:re,customFormatter:ce,defaultVal:ie}=K;let te="";if(X==null||X==="")te=W;else{const fe={money:No,percentage:Bn,contrast:Bn,boolean:R,decimals:Yc,custom:_r};fe[X]||(te=""),X==="decimals"?te=fe[X](W,re)||"":X==="custom"?te=fe[X](W,ce)||"":te=fe[X](W)||""}return te||(te=ie),te},S=W=>W==="contrast"?"upDown":"",E=W=>{const{text:K,format:X,declineColor:re="#39cf93",increaseColor:ce="#ff512e"}=W;if(X==="contrast"){const ie={fontSize:e.fontSize},te=parseFloat(K+"");return te>=0?ie.color=ce:te<0&&(ie.color=re),ie}else return{}},N=t.computed(()=>{const{fontSize:W}=e;return{width:W,height:W,textIndent:`-${parseFloat(W)*2}px`,overflow:"hidden"}}),z=W=>{const{text:K,declineColor:X="#39cf93",increaseColor:re="#ff512e"}=W,{fontSize:ce}=e,ie=parseFloat(K+""),te={width:ce,verticalAlign:"unset"};return ie>=0?te.filter=`drop-shadow(${re||"#ff512e"} ${ce} -1px)`:ie<0&&(te.filter=`drop-shadow(${X||"#39cf93"} ${ce} -1px)`),te},j=W=>{const K=parseFloat(W+"");if(K>=0)return qo;if(K<0)return Vo},F=Re(e),{getGlobalModel:M,setGlobalModel:P}=t.inject(Ie,{getGlobalModel:W=>{},setGlobalModel:(W,K)=>{}});P(e.id,{type:e.type,RECORD:""});const H=(W=[],K=[])=>{const X=W.map(re=>({title:re,dataIndex:re,key:re}));m.value=_e.cloneDeep(X),y.value=w(X),f.value=K},Z=Ze(e),V=async(W=!0)=>{var K,X,re,ce;try{W&&(n.value=!0);const ie=t.unref(O).split(" "),te={};e.isSortByFront||(te.sort={order:ie[1],field:ie[0]});const fe=await Z(te);H((X=(K=fe==null?void 0:fe.data)==null?void 0:K.data)==null?void 0:X.columns,(ce=(re=fe==null?void 0:fe.data)==null?void 0:re.data)==null?void 0:ce.rows)}catch(ie){console.error(ie)}finally{n.value=!1}},q=t.ref(-1),U=(W,K)=>({onClick:F("rowClick",()=>{const X=e.id,re=M(X);P(X,{...re,type:e.type,RECORD:W}),q.value=K})}),{loadedData:$}=t.inject(kt,{loadedData:{}}),J=t.ref(!1);t.watch($,W=>{if(e.dataType==="indicator"){const K=ln(e.graphicConfig);K!=null&&K.length&&(!t.unref(J)&&dt(e.graphicConfig,W)?(J.value=!0,de()):dt(e.graphicConfig,W)||(J.value=!1))}},{deep:!0});const de=(W=!0)=>{switch(e.dataType){case"request":_(W);break;case"indicator":dt(e.graphicConfig,t.unref($))&&V(W);break}},ne=()=>{const W=e.id,K=M(W);P(W,{...K,type:e.type,RECORD:""})},le=t.computed(()=>{const W=t.unref(x);let K=0;const{subTotalColumn:X,subTotalName:re}=e;X&&(K=W.findIndex(ye=>ye.dataIndex===X),K<0&&(K=0));const ce=[];let ie=0;for(let ye=0;ye<W.length;ye++){const Se=W[ye],{isCalcTotal:Me}=Se;ye===K?ce.push({...Se,total:re}):Me?(ce.push({...Se,index:ye,total:0}),ie++):ce.push({...Se})}if(ie===0)return[];const te=t.unref(l),fe=Q(ce);for(let ye=0;ye<fe.length;ye++){const Se=fe[ye];let Me=0;const{isCalcTotal:nt,dataIndex:Ct}=Se;if(nt===!0){for(let Ft=0;Ft<te.length;Ft++){const Mt=+te[Ft][Ct];isNaN(Mt)||(Me=new ss.Big(Me).add(Mt).toNumber())}Se.total=Me}}return fe});function Q(W){var X;const K=[];for(const re of W)(X=re.children)!=null&&X.length?K.push(...Q(re.children)):K.push(re);return K}const{setRequest:ae}=t.inject(ze,{setRequest:W=>{}});typeof ae=="function"&&ae({id:e.id,requestFn:de,sortNum:e.requestSort}),o({refreshData:de});const ee=(W="",K)=>Le(W,K),oe=W=>{if(W!=="event")return{self:"_self",blank:"_blank"}[W]},se=(W,K="")=>{W==="event"&&window.parent.postMessage({type:"openPage",url:K},"*")},ve=(W,K)=>{W(K.filterCheckboxGroupValue)},we=(W,K)=>{W({confirm:!0}),K.filterOptionsInputValue="",K.filterCheckboxGroupValue=[]},ke=()=>{},Te=W=>{const K=W.dataIndex;if(typeof K=="string"){let X=t.unref(A)[K];const re=t.unref(W.filterOptionsInputValue).trim();return Array.isArray(X)?(X=X.filter(ce=>typeof ce.label=="string"?ce.label.toLowerCase().includes(re.toLowerCase()):!0),X):[]}return[]},Ve=async()=>{var Se,Me;const W="EXPORT_KEY";ue.message.loading({key:W,content:"正在导出...",duration:0});let K=[];if(e.dataType==="static")K=e.data;else if(e.dataType==="request"){const nt={layer:"1"};t.unref(O)&&(nt.orderCondition=t.unref(O));const Ct=await I(nt);K=((Me=(Se=Ct==null?void 0:Ct.data)==null?void 0:Se.data)==null?void 0:Me.rows)||{}}const X=t.unref(x),re=[],ce=[];X==null||X.forEach(nt=>{re.push(nt.dataIndex),ce.push(nt.title)});const ie=K.map(nt=>_e.pick(nt,re)),te=en.utils.book_new(),fe=en.utils.aoa_to_sheet([ce]),ye=en.utils.sheet_add_json(fe,ie,{skipHeader:!0,origin:"A2"});en.utils.book_append_sheet(te,ye,"sheet"),en.writeFile(te,"表格数据.xlsx"),ue.message.success({key:W,content:"导出成功"})},Xe=(W,K=2)=>{const X=+W*100;return isNaN(X)||X<=0?0:X>=100?100:X.toFixed(K)};Oe(e,{resetRecord:ne,refreshData:de,exportTableData:Ve});const Qe=(W,K)=>{let X=null;return e.stripedShow&&(X=K%2===1?"table-striped":null),X},Ue=t.computed(()=>{let W=0;const{height:K,isPageBottom:X}=e;return X&&K&&(W=parseFloat(K)-u()),W?W+"px":"100%"}),We=t.computed(()=>{let W="#071655";return e.headerBackgroundColor&&(W="transparent"),W}),Ge=t.computed(()=>{let W="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(W="transparent"),W}),et=t.computed(()=>parseFloat(e.fontSize)+16),tt=t.computed(()=>{let W="";const{paginationColor:K,paginationBgColor:X,activePaginationColor:re,activePaginationBgColor:ce,hoverBackgroundColor:ie}=e;return K&&(W+="p-color "),X&&(W+="p-bg-color "),re&&(W+="active-p-color "),ce&&(W+="active-p-bg-color "),ie&&(W+="hover-bg-color "),W}),$e=(W,K)=>{const{conditionCode:X}=W;return dn(X,{value:K})};return{x:d,y:c,style:s,customRow:U,pagination:k,formatFn:B,contrastClass:S,tableChange:L,summaryList:le,loading:n,onTouchHrefEvent:se,handleHref:ee,handleHrefTarget:oe,useRowIndex:q,tableColumns:x,tableDataSource:l,useFilterOptions:Te,useSetSelectedKeys:ve,onResetFilter:we,onSearchFilterOptions:ke,exportTableData:Ve,handleProgressText:Xe,pageSizeVisible:r,pageSize:C,tableRef:i,rowClassName:Qe,tableHeight:Ue,tableHeaderBgColor:We,tableBodyBgColor:Ge,getChgStyle:E,chgBoxStyle:N,getChgBoxImgStyle:z,getChgBoxImgSrc:j,seqIcon1:hu,seqIcon2:gu,seqIcon3:mu,iconSize:et,containerClass:tt,getCellStyle:(W,K)=>{const{overflow:X,conditionCode:re,attribute:ce}=W,ie={};return X==="ellipsis"&&(ie.overflow="hidden",ie.textOverflow="ellipsis"),re&&(ce!=null&&ce.color)&&$e(W,K)&&(ie.color=ce.color),ce!=null&&ce.icon&&(W==null?void 0:W.cellAlign)==="right"&&(ie.display="flex",ie.alignItems="center",ie.justifyContent="flex-end"),ie},isMatchCondition:$e,getAttrImgSrc:W=>{const{attribute:K}=W;let X="";return K!=null&&K.icon&&(X=mt(K.icon)),X},getAttrImgStyle:W=>{let K={};return(W==null?void 0:W.cellAlign)==="right"?K={marginRight:"5px"}:K={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(e.fontSize)+6+"px",...K}}}}}),$l=()=>{t.useCssVars(e=>({"0de7b3a0":e.stripedColor,"08a5a8e7":e.tableHeaderBgColor,"6398a49c":e.tableBodyBgColor,"7613c960":e.paginationBgColor,dc2e69b6:e.paginationColor,"353ecc0c":e.activePaginationBgColor,"10f60b82":e.activePaginationColor,ca614f86:e.hoverBackgroundColor}))},Kl=Ga.setup;Ga.setup=Kl?(e,o)=>($l(),Kl(e,o)):$l;const w1="",A1="",yu=e=>(t.pushScopeId("data-v-c2087b7c"),e=e(),t.popScopeId(),e),xu=["id"],pu={key:0,class:"table-tool"},bu=t.createTextVNode("导出数据"),vu=t.createTextVNode(" 搜索 "),Su=t.createTextVNode(" 重置 "),Cu=["src","width","height"],wu=["src","width","height"],Au=["src","width","height"],ku={key:1},Tu={key:1,class:"action-list"},Bu=["href","target","onClick"],Eu={key:2,class:"progress-cell"},Du=["src"],Iu=["title"],Ru=["title"],_u=["src"],Lu=["title"],Ou=["src"],Nu=["src"],Fu={class:"ant-pagination-options-quick-jumper"},Mu=yu(()=>t.createElementVNode("span",null,"条 / 页",-1));function zu(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"),u=t.resolveComponent("a-table-summary-row"),y=t.resolveComponent("a-table-summary"),f=t.resolveComponent("a-table"),x=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(x,{loading:e.loading},{default:t.withCtx(()=>{var m;return[e.isUseExport?(t.openBlock(),t.createElementBlock("div",pu,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[bu]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(f,{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:g,setSelectedKeys:C,confirm:p,clearFilters:v})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(l,{value:h.filterOptionsInputValue,"onUpdate:value":b=>h.filterOptionsInputValue=b,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:h.filterCheckboxGroupValue,"onUpdate:value":b=>h.filterCheckboxGroupValue=b,class:"filter-checkbox",options:e.useFilterOptions(h),onChange:b=>e.useSetSelectedKeys(C,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:()=>p()},{default:t.withCtx(()=>[vu]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(b=>e.onResetFilter(v,h),["stop"])},{default:t.withCtx(()=>[Su]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:h,index:g,text:C,record:p})=>{var v,b,w,A,T,D;return[h.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[g===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,Cu)):g===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,wu)):g>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,Au)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.fontSize})},t.toDisplayString(g+1),5)],64)):(t.openBlock(),t.createElementBlock("span",ku,t.toDisplayString(g+1),1))],64)):h.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",Tu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(O,I)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:I},[t.createElementVNode("a",{href:e.handleHref(O.href,p),target:e.handleHrefTarget(O.target),style:t.normalizeStyle({color:O.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:_=>e.onTouchHrefEvent(O.target,e.handleHref(O.href,p))},t.toDisplayString(O.title),13,Bu)]))),128))])):h.format==="progress"?(t.openBlock(),t.createElementBlock("div",Eu,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:h.progressColor||"#1890ff",height:h.progressWidth||"18px",width:`${e.handleProgressText(C,h.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(C)<100?h.progressTextColor||"#333":h.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(C,h.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(h,C)})},[e.isMatchCondition(h,C)&&(h==null?void 0:h.cellAlign)==="right"&&((v=h==null?void 0:h.attribute)!=null&&v.icon)?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.getAttrImgStyle(h)),src:e.getAttrImgSrc(h)},null,12,Du)):t.createCommentVNode("",!0),h.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((b=h==null?void 0:h.customFormatter)==null?void 0:b.split("{value}")[0])||""},t.toDisplayString(((w=h==null?void 0:h.customFormatter)==null?void 0:w.split("{value}")[0])||""),9,Iu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(h.format)]),style:t.normalizeStyle(e.getChgStyle({...h,text:C})),title:h.format!=null?e.formatFn(C,h):C},[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:C})),src:e.getChgBoxImgSrc(C)},null,12,_u)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(h.format!=null?e.formatFn(C,h):C||(h==null?void 0:h.defaultVal)),1)],14,Ru),h.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:2,title:((A=h==null?void 0:h.customFormatter)==null?void 0:A.split("{value}")[1])||""},t.toDisplayString(((T=h==null?void 0:h.customFormatter)==null?void 0:T.split("{value}")[1])||""),9,Lu)):t.createCommentVNode("",!0),e.isMatchCondition(h,C)&&(h==null?void 0:h.cellAlign)!=="right"&&((D=h==null?void 0:h.attribute)!=null&&D.icon)?(t.openBlock(),t.createElementBlock("img",{key:3,style:t.normalizeStyle(e.getAttrImgStyle(h)),src:e.getAttrImgSrc(h)},null,12,Ou)):t.createCommentVNode("",!0)],4))]}),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(y,{key:0,fixed:e.isSummaryFixed},{default:t.withCtx(()=>[t.createVNode(u,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(h,g)=>(t.openBlock(),t.createBlock(c,{key:g,index:g,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,Nu)],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},[(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[t.createElementVNode("div",Fu,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=h=>e.pageSize=h)},null,512),[[t.vModelText,e.pageSize]]),Mu])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,xu)}const Yl=Ce(xe(Ga,[["render",zu],["__scopeId","data-v-c2087b7c"]])),Ua={...De,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"},$a=Ae(Ua),Zl=["click"];ot.use([_t.CanvasRenderer,bt.MapChart,bt.ScatterChart,Be.VisualMapComponent,Be.TooltipComponent,Be.GraphicComponent]);const Pu=t.defineComponent({name:"EcanMap",components:{Echarts:wt},props:{...$a},setup(e){const o=qe(e),n=qe({...e.tooltipRequestData,requestHeaders:{}}),a=t.ref(),i=t.ref(""),r=t.ref(""),s=Ee(e,["backgroundImage"]),l=t.ref(),d=t.computed(()=>mt(e.geoBackgroundImage)),c=t.computed(()=>mt(e.backgroundImage)),u=t.computed(()=>e.geoBackgroundImage?{image:t.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),y=t.computed(()=>{const k=e.symbolImage;return e.symbolImage?"image://"+mt(k):"circle"}),f=k=>{let R=e.tooltipFormatter;const B=R.match(/\{(.+?)\}/g);if(B==null||B.length===0)return R;for(let S=0;S<B.length;S++){const E=B[S];let N=E.slice(1,-1).trim();const z=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,j=N.match(z);for(let F=0;F<j.length;F++){const M=j[F],P=k[M];P!=null&&(N=N.replace(M,P))}R=R.replace(E,N)}return R.split(`
|
|
120
|
+
`)},x=t.ref(!1),m=t.ref("");let h=new AbortController;const g=(k,R)=>{const B=h.signal;x.value=!0,i.value=k,n({name:k,signal:B}).then(S=>{var E,N;if(S){const z=((N=(E=S==null?void 0:S.data)==null?void 0:E.data)==null?void 0:N.rows)||[];let j="";for(const F of z){const M=f(F)||[];if(M!=null&&M.length)for(const P of M)j+=`<div style="word-break: break-all;white-space: normal;">${P}</div>`}j=`<div style="max-width:200px;">${j}</div>`,r.value=j,R(t.unref(m),j)}else B.aborted?r.value="Loading":r.value=k,R(t.unref(m),r.value);x.value=!1})},C=t.computed(()=>{const k=e.geoCenter;let R;return typeof k=="string"&&k!==""&&(R=k.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:R,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(B,S,E)=>{m.value=S;const{name:N=""}=B,{requestUrl:z}=e.tooltipRequestData;if(!z)return N;if(t.unref(x))t.unref(i)!==N&&(h.abort(),h=new AbortController);else{if(t.unref(i)===N)return t.unref(r);g(N,E)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(u),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(y),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}]}}),p=t.ref(!1),v=async()=>{var B;p.value=!1;const k=e.mapJson,R=`map-${e.id}`;if(k!=null&&k.path){const S=await pt(((B=window==null?void 0:window.config)==null?void 0:B.uploadPath)+k.path);ot.registerMap(R,(S==null?void 0:S.data)||{})}else ot.registerMap(R,{});p.value=!0};t.watch(()=>e.mapJson,()=>{v()},{immediate:!0,deep:!0});const b=async()=>{var k,R;if(e.dataType==="request"){p.value=!1;try{const B=await o(),S=((R=(k=B==null?void 0:B.data)==null?void 0:k.data)==null?void 0:R.rows)||{},E=`map-${e.id}`;if(S!=null&&S.path){const N=await pt(S.path);ot.registerMap(E,(N==null?void 0:N.data)||{})}else ot.registerMap(E,{})}catch(B){console.error(B)}finally{p.value=!0}}},w=()=>{switch(e.dataType){case"request":b();break}},{getGlobalModel:A,setGlobalModel:T}=t.inject(Ie,{getGlobalModel:k=>{},setGlobalModel:(k,R)=>{}}),O=Re(e)("click",()=>{const k=A(e.id);T(e.id,{...k,RECORD:t.unref(a)})});Oe(e,{refreshData:w});const{setRequest:I}=t.inject(ze,{setRequest:k=>{}});return typeof I=="function"&&I({id:e.id,requestFn:w,sortNum:e.requestSort}),{option:C,style:s,isLoadedData:p,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{t.unref(a)&&O()},onMouseOver:(k={})=>{k.componentType==="geo"&&k.region?a.value=k.region:a.value=null}}}}),T1="",qu=["src"];function Vu(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,qu),[[t.vShow,!1]])],4)}const Ql=Ce(xe(Pu,[["render",Vu],["__scopeId","data-v-10f150ac"]])),Ka={...De,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"},Ya=Ae(Ka),Jl=["selectChange","refreshData"],Hu=t.defineComponent({name:"EcanDataSelect",components:{ASelect:ue.Select,ASelectOption:ue.SelectOption},props:{...Ya},setup(e,{expose:o}){const n=Ee(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=qe(e),r=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var L;const{mode:_}=e;return(L=t.unref(r))!=null&&L.length?s.value:_==="multiple"||_==="tags"||_==="combobox"?[]:""},set:_=>{s.value=_}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:u}=t.inject(Ie,{getGlobalModel:_=>{},setGlobalModel:(_,L)=>{},getRecordValueByKeyName:_=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,r.value],()=>{const{mode:_,selectFirstOption:L,value:k}=e,R=u(k),B=y.value;if(_==="multiple"||_==="tags"||_==="combobox"){if(R)s.value=R.split(",");else if(L){const S=t.unref(r)[0];s.value=S?[S[B]]:[]}}else if(R)s.value=R;else if(L){const S=t.unref(r)[0];s.value=S?S[B]:""}},{immediate:!0});const f=(_,L)=>{const k=y.label,R=y.value;let B;const S=L[k],E=L[R];return S!=null?B=S:E!=null&&(B=E),(B==null?void 0:B.toLowerCase().indexOf(_==null?void 0:_.toLowerCase()))>=0},x=_=>{const{label:L,value:k,options:R}=e.dataFieldNames;if(R&&Array.isArray(_))if(_.some(B=>R in B)){const B={},S=[];_.forEach(E=>{B[E[R]]||(B[E[R]]=[]),B[E[R]].push({[L]:E[L],[k]:E[k]})});for(const E in B)S.push({[L]:E,[R]:B[E]});return S}else return _;else if(!R)return _},m=t.ref(!1),h=async()=>{var _,L;if(e.dataType==="request"){m.value=!0;try{const k=await i();if(r.value=x(((L=(_=k==null?void 0:k.data)==null?void 0:_.data)==null?void 0:L.rows)||[]),e.selectFirstOption){let R=t.unref(r)[0];if(y.options){const B=R[y.options];B&&B.length&&(R=B[0])}s.value=R[y.value]}}catch(k){console.error(k)}finally{m.value=!1}}},g=t.computed(()=>{let _=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(r)){const L=y.label,k=y.value;if(e.mode==="multiple")_=t.unref(r).filter(R=>t.unref(s).includes(R[k])).map(R=>R[L]);else{const R=t.unref(r).find(B=>t.unref(s)===B[k]);R&&(_=R[L])}}return _}),C=t.ref([]),p=t.computed(()=>{const _={};if(e.mode!=="multiple"){const L=t.unref(C).find(k=>k.value===t.unref(s));L&&(_.itemCodes=L.item_codes)}return _}),v=t.computed(()=>{const{value:_,label:L}=y,k=t.unref(r).find(R=>R[_]===t.unref(l));return k?{label:k[L],value:k[_]}:{}});c(e.id,{type:e.type,value:g,...t.unref(p),recordData:t.unref(v)});const w=Re(e)("selectChange",()=>{const _=e.id,L=d(_);c(_,{...L,...t.unref(p),RECORD:g,recordData:t.unref(v)})}),A=(_=[])=>{if(r.value=x(_),e.selectFirstOption){let L=t.unref(r)[0];if(y.options){const k=L[y.options];k&&k.length&&(L=k[0])}s.value=L[y.value]}c(e.id,{type:e.type,value:g,...t.unref(p),recordData:t.unref(v)})},T=Ze(e),D=async()=>{var _;try{m.value=!0;const L=await T(),{data:k}=(L==null?void 0:L.data)||{},R=y.label,B=y.value;if(k){const S=((_=L==null?void 0:L.data)==null?void 0:_.data)??[];C.value=S;const E=S.map(j=>({[R]:j.label,[B]:j.value})),{id:N}=e,z=d(N);c(N,{...z,...t.unref(p)}),A(E)}else A([])}catch(L){console.error(L)}finally{m.value=!1}},O=()=>{switch(e.dataType){case"indicator":{D();break}case"request":h();break}};Oe(e,{selectChange:w,refreshData:O});const{setRequest:I}=t.inject(ze,{setRequest:({id:_,sortNum:L,requestFn:k})=>{}});return typeof I=="function"&&I({id:e.id,requestFn:O,sortNum:e.requestSort}),o({refreshData:O}),{style:n,getPopupContainer:a,myValue:s,selectChange:w,options:r,filterOption:f,loading:m,resultValue:l}}}),E1="",D1="";function ju(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 Xl=Ce(xe(Hu,[["render",ju],["__scopeId","data-v-3639c038"]])),es=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:Tl,EcanBorder:Nl,EcanButton:cl,EcanCheckbox:fl,EcanCirculate:ql,EcanComboGraph:Rl,EcanCounter:Zr,EcanCustomGraph:Dl,EcanDataSelect:Xl,EcanDatePicker:nl,EcanIframe:Gl,EcanImage:Wl,EcanInput:Jr,EcanLine:Al,EcanList:Ur,EcanMap:Ql,EcanModal:It,EcanPageConfig:Fr,EcanPie:Cl,EcanProportion:Kr,EcanProviderConfig:Mr,EcanRadar:Ll,EcanRadio:xl,EcanRangePicker:ll,EcanScatter:El,EcanScrollText:Hr,EcanSelect:hl,EcanTable:Yl,EcanTabs:Ml,EcanText:Vr,EcanTimeDisplay:Wr,EcanTreeSelect:ml,barComponentProps:wa,barEvents:kl,barProps:Ca,borderComponentProps:La,borderEvents:Ol,borderProps:_a,buttonComponentProps:ra,buttonEvents:sl,buttonProps:ia,checkboxComponentProps:sa,checkboxEvents:dl,checkboxProps:la,circulateComponentProps:Ma,circulateEvents:zl,circulateProps:Fa,comboGraphComponentProps:Da,comboGraphEvents:Il,comboGraphProps:Ea,counterComponentProps:Zo,counterEvents:Yr,counterProps:Yo,customGraphComponentProps:Ba,customGraphProps:Ta,dataSelectComponentProps:Ya,dataSelectEvents:Jl,dataSelectProps:Ka,datePickerComponentProps:ea,datePickerEvents:Xr,datePickerProps:Xo,iframeComponentProps:Ha,iframeProps:Va,imageComponentProps:Pa,imageEvents:Vl,imageProps:za,inputComponentProps:Jo,inputEvents:Qr,inputProps:Qo,lineComponentProps:Sa,lineEvents:wl,lineProps:va,listComponentProps:Uo,listEvents:Gr,listProps:Go,mapComponentProps:$a,mapEvents:Zl,mapProps:Ua,modalComponentProps:pa,modalEvents:bl,modalProps:xa,pageConfig:jn,pageConfigComponentProps:Wn,pieComponentProps:ya,pieEvents:pl,pieProps:ma,proportionComponentProps:Ko,proportionEvents:$r,proportionProps:$o,providerConfig:Fo,providerConfigComponentProps:Mo,radarComponentProps:Ra,radarEvents:_l,radarProps:Ia,radioComponentProps:ga,radioEvents:yl,radioProps:ha,rangePickerComponentProps:oa,rangePickerEvents:ol,rangePickerProps:na,scatterComponentProps:ka,scatterEvents:Bl,scatterProps:Aa,selectComponentProps:da,selectEvents:ul,selectProps:ca,tableComponentProps:Wa,tableEvents:Ul,tableProps:ja,tabsComponentProps:Na,tabsEvents:Fl,tabsProps:Oa,textComponentProps:Po,textEvents:zr,textProps:zo,timeDisplayComponentProps:Wo,timeDisplayEvents:jr,timeDisplayProps:jo,treeSelectComponentProps:ua,treeSelectEvents:gl,treeSelectProps:fa},Symbol.toStringTag,{value:"Module"})),Wu={install:e=>{Object.keys(es).forEach(o=>{const n=es[o];n.install&&e.use(n)})}};G.EcanBar=Tl,G.EcanBorder=Nl,G.EcanButton=cl,G.EcanCheckbox=fl,G.EcanCirculate=ql,G.EcanComboGraph=Rl,G.EcanCounter=Zr,G.EcanCustomGraph=Dl,G.EcanDataSelect=Xl,G.EcanDatePicker=nl,G.EcanIframe=Gl,G.EcanImage=Wl,G.EcanInput=Jr,G.EcanLine=Al,G.EcanList=Ur,G.EcanMap=Ql,G.EcanModal=It,G.EcanPageConfig=Fr,G.EcanPie=Cl,G.EcanProportion=Kr,G.EcanProviderConfig=Mr,G.EcanRadar=Ll,G.EcanRadio=xl,G.EcanRangePicker=ll,G.EcanScatter=El,G.EcanScrollText=Hr,G.EcanSelect=hl,G.EcanTable=Yl,G.EcanTabs=Ml,G.EcanText=Vr,G.EcanTimeDisplay=Wr,G.EcanTreeSelect=ml,G.barComponentProps=wa,G.barEvents=kl,G.barProps=Ca,G.borderComponentProps=La,G.borderEvents=Ol,G.borderProps=_a,G.buttonComponentProps=ra,G.buttonEvents=sl,G.buttonProps=ia,G.checkboxComponentProps=sa,G.checkboxEvents=dl,G.checkboxProps=la,G.circulateComponentProps=Ma,G.circulateEvents=zl,G.circulateProps=Fa,G.comboGraphComponentProps=Da,G.comboGraphEvents=Il,G.comboGraphProps=Ea,G.compatibleMobileList=Sl,G.counterComponentProps=Zo,G.counterEvents=Yr,G.counterProps=Yo,G.customGraphComponentProps=Ba,G.customGraphProps=Ta,G.dataSelectComponentProps=Ya,G.dataSelectEvents=Jl,G.dataSelectProps=Ka,G.datePickerComponentProps=ea,G.datePickerEvents=Xr,G.datePickerProps=Xo,G.default=Wu,G.handleScrollCombinations=vl,G.iframeComponentProps=Ha,G.iframeProps=Va,G.imageComponentProps=Pa,G.imageEvents=Vl,G.imageProps=za,G.inputComponentProps=Jo,G.inputEvents=Qr,G.inputProps=Qo,G.lineComponentProps=Sa,G.lineEvents=wl,G.lineProps=va,G.listComponentProps=Uo,G.listEvents=Gr,G.listProps=Go,G.mapComponentProps=$a,G.mapEvents=Zl,G.mapProps=Ua,G.modalComponentProps=pa,G.modalEvents=bl,G.modalProps=xa,G.moveToComponentList=ba,G.pageConfig=jn,G.pageConfigComponentProps=Wn,G.pieComponentProps=ya,G.pieEvents=pl,G.pieProps=ma,G.proportionComponentProps=Ko,G.proportionEvents=$r,G.proportionProps=$o,G.providerConfig=Fo,G.providerConfigComponentProps=Mo,G.radarComponentProps=Ra,G.radarEvents=_l,G.radarProps=Ia,G.radioComponentProps=ga,G.radioEvents=yl,G.radioProps=ha,G.rangePickerComponentProps=oa,G.rangePickerEvents=ol,G.rangePickerProps=na,G.scatterComponentProps=ka,G.scatterEvents=Bl,G.scatterProps=Aa,G.selectComponentProps=da,G.selectEvents=ul,G.selectProps=ca,G.tableComponentProps=Wa,G.tableEvents=Ul,G.tableProps=ja,G.tabsComponentProps=Na,G.tabsEvents=Fl,G.tabsProps=Oa,G.textComponentProps=Po,G.textEvents=zr,G.textProps=zo,G.timeDisplayComponentProps=Wo,G.timeDisplayEvents=jr,G.timeDisplayProps=jo,G.treeSelectComponentProps=ua,G.treeSelectEvents=gl,G.treeSelectProps=fa,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
121
121
|
//# sourceMappingURL=index.umd.js.map
|