@ecan-bi/datav 1.3.29 → 1.3.30
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 +3276 -3096
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +26 -26
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/text/counter/Counter.vue.d.ts +309 -0
- package/types/text/counter/index.d.ts +310 -0
- package/types/text/counter/props.d.ts +169 -0
- package/types/text/index.d.ts +1 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.3.
|
|
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,Je,ja,de,Fu,Mu,Le,me,Xl,e0,zu,Pu,qu,Ga,Vu,Hu,Wu,ju,Et,ht,ke,Gu,t0,Uu,$u,Zt,n0){var $l,Yl,Kl,Zl;"use strict";function o0(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 a0=o0(t0),r0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function i0(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 r0.forEach(i=>{r[i]=n(i)}),r}return a()}function l0(e,o,n){let a=null;t.watch([n,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=Je.throttle(()=>{i.resize()},100),ja.addListener(r,a)),d(()=>{a&&r&&ja.removeListener(r,a)})})}const s0={autoresize:Boolean},c0="ecLoadingOptions";function d0(e,o,n){const a=t.inject(c0,{}),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 f0={loading:Boolean,loadingOptions:Object},Yu="",u0=/^on[^a-z]/,h0=e=>u0.test(e);function g0(e){const o={};for(const n in e)h0(n)||(o[n]=e[n]);return o}const m0="x-vue-echarts",y0="ecTheme",x0="ecInitOptions",p0="ecUpdateOptions",pt=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...s0,...f0},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),r=t.shallowRef(),i=t.shallowRef(),s=t.inject(y0,null),l=t.inject(x0,null),d=t.inject(p0,null),{autoresize:c,manualUpdate:h,loading:y,loadingOptions:f}=t.toRefs(e),g=t.computed(()=>i.value||e.option||Object.create(null)),m=t.computed(()=>e.theme||t.unref(s)||{}),u=t.computed(()=>e.initOptions||t.unref(l)||{}),S=t.computed(()=>e.updateOptions||t.unref(d)||{}),B=t.computed(()=>g0(o));function b(E){if(r.value||!a.value)return;const _=r.value=Je.init(a.value,m.value,u.value);e.group&&(_.group=e.group);let O=n;O||(O={},Object.keys(o).filter(T=>T.indexOf("on")===0&&T.length>2).forEach(T=>{const C=T.charAt(2).toLowerCase()+T.slice(3);O[C]=o[T]})),Object.keys(O).forEach(T=>{const C=O[T];C&&(T.indexOf("zr:")===0?_.getZr().on(T.slice(3).toLowerCase(),C):_.on(T.toLowerCase(),C))});function R(){if(_&&!_.isDisposed())try{_.resize()}catch(T){if(T.message==="Cannot read property 'get' of undefined")return;throw T}}function k(){_.setOption(E||g.value,S.value)}c.value?t.nextTick(()=>{R(),k()}):k()}function v(E,_){e.manualUpdate&&(i.value=E),r.value?r.value.setOption(E,_||{}):b(E)}function p(){r.value&&(r.value.dispose(),r.value=void 0)}let A=null;t.watch(h,E=>{typeof A=="function"&&(A(),A=null),E||(A=t.watch(()=>e.option,_=>{_&&(r.value?r.value.setOption(_,S.value):b())},{deep:!0}))},{immediate:!0}),t.watch([m,u],()=>{p(),b()},{deep:!0}),t.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const D=i0(r,b);return d0(r,y,f),l0(r,c,a),t.onMounted(()=>{e.option&&b()}),t.onUnmounted(p),{chart:r,root:a,setOption:v,nonEventAttrs:B,...D}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(m0,e)}});function at(e,o){b0(e)&&(e="100%");var n=v0(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 b0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function v0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function S0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ln(e){return e<=1?"".concat(Number(e)*100,"%"):e}function kn(e){return e.length===1?"0"+e:String(e)}function C0(e,o,n){return{r:at(e,255)*255,g:at(o,255)*255,b:at(n,255)*255}}function Tn(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 w0(e,o,n){var a,r,i;if(e=at(e,360),o=at(o,100),n=at(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=Tn(l,s,e+1/3),r=Tn(l,s,e),i=Tn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function A0(e,o,n){e=at(e,255),o=at(o,255),n=at(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 k0(e,o,n){e=at(e,360)*6,o=at(o,100),n=at(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],h=[l,n,n,s,i,i][d],y=[i,i,l,n,n,s][d];return{r:c*255,g:h*255,b:y*255}}function T0(e,o,n,a){var r=[kn(Math.round(e).toString(16)),kn(Math.round(o).toString(16)),kn(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 Ua(e){return Xe(e)/255}function Xe(e){return parseInt(e,16)}var $a={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 Qt(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=D0(e)),typeof e=="object"&&(gt(e.r)&>(e.g)&>(e.b)?(o=C0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):gt(e.h)&>(e.s)&>(e.v)?(a=ln(e.s),r=ln(e.v),o=k0(e.h,a,r),s=!0,l="hsv"):gt(e.h)&>(e.s)&>(e.l)&&(a=ln(e.s),i=ln(e.l),o=w0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=S0(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 B0="[-\\+]?\\d+%?",E0="[-\\+]?\\d*\\.\\d+%?",bt="(?:".concat(E0,")|(?:").concat(B0,")"),Bn="[\\s|\\(]+(".concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")\\s*\\)?"),En="[\\s|\\(]+(".concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")\\s*\\)?"),st={CSS_UNIT:new RegExp(bt),rgb:new RegExp("rgb"+Bn),rgba:new RegExp("rgba"+En),hsl:new RegExp("hsl"+Bn),hsla:new RegExp("hsla"+En),hsv:new RegExp("hsv"+Bn),hsva:new RegExp("hsva"+En),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 D0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if($a[e])e=$a[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=st.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=st.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=st.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=st.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=st.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=st.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=st.hex8.exec(e),n?{r:Xe(n[1]),g:Xe(n[2]),b:Xe(n[3]),a:Ua(n[4]),format:o?"name":"hex8"}:(n=st.hex6.exec(e),n?{r:Xe(n[1]),g:Xe(n[2]),b:Xe(n[3]),format:o?"name":"hex"}:(n=st.hex4.exec(e),n?{r:Xe(n[1]+n[1]),g:Xe(n[2]+n[2]),b:Xe(n[3]+n[3]),a:Ua(n[4]+n[4]),format:o?"name":"hex8"}:(n=st.hex3.exec(e),n?{r:Xe(n[1]+n[1]),g:Xe(n[2]+n[2]),b:Xe(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function gt(e){return!!st.CSS_UNIT.exec(String(e))}var sn=2,Ya=.16,R0=.05,I0=.05,L0=.15,Ka=5,Za=4,_0=[{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 Qa(e){var o=e.r,n=e.g,a=e.b,r=A0(o,n,a);return{h:r.h*360,s:r.s,v:r.v}}function cn(e){var o=e.r,n=e.g,a=e.b;return"#".concat(T0(o,n,a,!1))}function O0(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 Ja(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-sn*o:Math.round(e.h)+sn*o:a=n?Math.round(e.h)+sn*o:Math.round(e.h)-sn*o,a<0?a+=360:a>=360&&(a-=360),a}function Xa(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-Ya*o:o===Za?a=e.s+Ya:a=e.s+R0*o,a>1&&(a=1),n&&o===Ka&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function er(e,o,n){var a;return n?a=e.v+I0*o:a=e.v-L0*o,a>1&&(a=1),Number(a.toFixed(2))}function Dn(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Qt(e),r=Ka;r>0;r-=1){var i=Qa(a),s=cn(Qt({h:Ja(i,r,!0),s:Xa(i,r,!0),v:er(i,r,!0)}));n.push(s)}n.push(cn(a));for(var l=1;l<=Za;l+=1){var d=Qa(a),c=cn(Qt({h:Ja(d,l),s:Xa(d,l),v:er(d,l)}));n.push(c)}return o.theme==="dark"?_0.map(function(h){var y=h.index,f=h.opacity,g=cn(O0(Qt(o.backgroundColor||"#141414"),Qt(n[y]),f*100));return g}):n}var Rn={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"},In={},Ln={};Object.keys(Rn).forEach(function(e){In[e]=Dn(Rn[e]),In[e].primary=In[e][5],Ln[e]=Dn(Rn[e],{theme:"dark",backgroundColor:"#141414"}),Ln[e].primary=Ln[e][5]});var tr=[],Jt=[],N0="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function F0(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function M0(e,o){if(o=o||{},e===void 0)throw new Error(N0);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=tr.indexOf(a);r===-1&&(r=tr.push(a)-1,Jt[r]={});var i;return Jt[r]!==void 0&&Jt[r][n]!==void 0?i=Jt[r][n]:(i=Jt[r][n]=F0(),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 nr(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){z0(e,r,n[r])})}return e}function z0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function P0(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function q0(e,o){P0(e,"[@ant-design/icons-vue] ".concat(o))}function or(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function _n(e,o,n){return n?t.h(e.tag,nr({key:o},n,e.attrs),(e.children||[]).map(function(a,r){return _n(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):t.h(e.tag,nr({key:o},e.attrs),(e.children||[]).map(function(a,r){return _n(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function ar(e){return Dn(e)[0]}function rr(e){return e?Array.isArray(e)?e:[e]:[]}var V0=`
|
|
1
|
+
/*! @ecan-bi/datav@1.3.30 */
|
|
2
|
+
(function(j,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):(j=typeof globalThis<"u"?globalThis:j||self,t(j["@ecan/bi-datav"]={},j.Vue,j["echarts/core"],j.ResizeDetector,j.AntDesignVue,null,null,j.LodashEs,j.Dayjs,j.Axios,j.Mitt,null,null,null,j["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,j["echarts/renderers"],j["echarts/charts"],j["echarts/components"],null,j.Echarts,null,null,j.Xlsx,j.big.js))})(this,function(j,t,Je,Ua,de,Wu,ju,Le,ye,os,as,Gu,Uu,$u,$a,Yu,Ku,Zu,Qu,Et,gt,ke,Ju,rs,Xu,eh,Qt,is){var Ql,Jl,Xl,es;"use strict";function ls(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 ss=ls(rs),cs=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function ds(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 cs.forEach(i=>{r[i]=n(i)}),r}return a()}function fs(e,o,n){let a=null;t.watch([n,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=Je.throttle(()=>{i.resize()},100),Ua.addListener(r,a)),d(()=>{a&&r&&Ua.removeListener(r,a)})})}const us={autoresize:Boolean},hs="ecLoadingOptions";function gs(e,o,n){const a=t.inject(hs,{}),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 ms={loading:Boolean,loadingOptions:Object},th="",ys=/^on[^a-z]/,xs=e=>ys.test(e);function ps(e){const o={};for(const n in e)xs(n)||(o[n]=e[n]);return o}const bs="x-vue-echarts",vs="ecTheme",Ss="ecInitOptions",Cs="ecUpdateOptions",pt=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...us,...ms},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),r=t.shallowRef(),i=t.shallowRef(),s=t.inject(vs,null),l=t.inject(Ss,null),d=t.inject(Cs,null),{autoresize:c,manualUpdate:h,loading:y,loadingOptions:f}=t.toRefs(e),g=t.computed(()=>i.value||e.option||Object.create(null)),m=t.computed(()=>e.theme||t.unref(s)||{}),u=t.computed(()=>e.initOptions||t.unref(l)||{}),S=t.computed(()=>e.updateOptions||t.unref(d)||{}),B=t.computed(()=>ps(o));function b(E){if(r.value||!a.value)return;const I=r.value=Je.init(a.value,m.value,u.value);e.group&&(I.group=e.group);let O=n;O||(O={},Object.keys(o).filter(D=>D.indexOf("on")===0&&D.length>2).forEach(D=>{const C=D.charAt(2).toLowerCase()+D.slice(3);O[C]=o[D]})),Object.keys(O).forEach(D=>{const C=O[D];C&&(D.indexOf("zr:")===0?I.getZr().on(D.slice(3).toLowerCase(),C):I.on(D.toLowerCase(),C))});function R(){if(I&&!I.isDisposed())try{I.resize()}catch(D){if(D.message==="Cannot read property 'get' of undefined")return;throw D}}function k(){I.setOption(E||g.value,S.value)}c.value?t.nextTick(()=>{R(),k()}):k()}function v(E,I){e.manualUpdate&&(i.value=E),r.value?r.value.setOption(E,I||{}):b(E)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let w=null;t.watch(h,E=>{typeof w=="function"&&(w(),w=null),E||(w=t.watch(()=>e.option,I=>{I&&(r.value?r.value.setOption(I,S.value):b())},{deep:!0}))},{immediate:!0}),t.watch([m,u],()=>{x(),b()},{deep:!0}),t.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const T=ds(r,b);return gs(r,y,f),fs(r,c,a),t.onMounted(()=>{e.option&&b()}),t.onUnmounted(x),{chart:r,root:a,setOption:v,nonEventAttrs:B,...T}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(bs,e)}});function at(e,o){ws(e)&&(e="100%");var n=As(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 ws(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function As(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ks(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ln(e){return e<=1?"".concat(Number(e)*100,"%"):e}function kn(e){return e.length===1?"0"+e:String(e)}function Ts(e,o,n){return{r:at(e,255)*255,g:at(o,255)*255,b:at(n,255)*255}}function Tn(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 Bs(e,o,n){var a,r,i;if(e=at(e,360),o=at(o,100),n=at(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=Tn(l,s,e+1/3),r=Tn(l,s,e),i=Tn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function Es(e,o,n){e=at(e,255),o=at(o,255),n=at(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 Ds(e,o,n){e=at(e,360)*6,o=at(o,100),n=at(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],h=[l,n,n,s,i,i][d],y=[i,i,l,n,n,s][d];return{r:c*255,g:h*255,b:y*255}}function Rs(e,o,n,a){var r=[kn(Math.round(e).toString(16)),kn(Math.round(o).toString(16)),kn(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 Ya(e){return Xe(e)/255}function Xe(e){return parseInt(e,16)}var Ka={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 Jt(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=_s(e)),typeof e=="object"&&(mt(e.r)&&mt(e.g)&&mt(e.b)?(o=Ts(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):mt(e.h)&&mt(e.s)&&mt(e.v)?(a=ln(e.s),r=ln(e.v),o=Ds(e.h,a,r),s=!0,l="hsv"):mt(e.h)&&mt(e.s)&&mt(e.l)&&(a=ln(e.s),i=ln(e.l),o=Bs(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=ks(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 Is="[-\\+]?\\d+%?",Ls="[-\\+]?\\d*\\.\\d+%?",bt="(?:".concat(Ls,")|(?:").concat(Is,")"),Bn="[\\s|\\(]+(".concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")\\s*\\)?"),En="[\\s|\\(]+(".concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")\\s*\\)?"),st={CSS_UNIT:new RegExp(bt),rgb:new RegExp("rgb"+Bn),rgba:new RegExp("rgba"+En),hsl:new RegExp("hsl"+Bn),hsla:new RegExp("hsla"+En),hsv:new RegExp("hsv"+Bn),hsva:new RegExp("hsva"+En),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 _s(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(Ka[e])e=Ka[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=st.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=st.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=st.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=st.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=st.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=st.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=st.hex8.exec(e),n?{r:Xe(n[1]),g:Xe(n[2]),b:Xe(n[3]),a:Ya(n[4]),format:o?"name":"hex8"}:(n=st.hex6.exec(e),n?{r:Xe(n[1]),g:Xe(n[2]),b:Xe(n[3]),format:o?"name":"hex"}:(n=st.hex4.exec(e),n?{r:Xe(n[1]+n[1]),g:Xe(n[2]+n[2]),b:Xe(n[3]+n[3]),a:Ya(n[4]+n[4]),format:o?"name":"hex8"}:(n=st.hex3.exec(e),n?{r:Xe(n[1]+n[1]),g:Xe(n[2]+n[2]),b:Xe(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function mt(e){return!!st.CSS_UNIT.exec(String(e))}var sn=2,Za=.16,Os=.05,Ns=.05,Fs=.15,Qa=5,Ja=4,Ms=[{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 Xa(e){var o=e.r,n=e.g,a=e.b,r=Es(o,n,a);return{h:r.h*360,s:r.s,v:r.v}}function cn(e){var o=e.r,n=e.g,a=e.b;return"#".concat(Rs(o,n,a,!1))}function zs(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 er(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-sn*o:Math.round(e.h)+sn*o:a=n?Math.round(e.h)+sn*o:Math.round(e.h)-sn*o,a<0?a+=360:a>=360&&(a-=360),a}function tr(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-Za*o:o===Ja?a=e.s+Za:a=e.s+Os*o,a>1&&(a=1),n&&o===Qa&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function nr(e,o,n){var a;return n?a=e.v+Ns*o:a=e.v-Fs*o,a>1&&(a=1),Number(a.toFixed(2))}function Dn(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Jt(e),r=Qa;r>0;r-=1){var i=Xa(a),s=cn(Jt({h:er(i,r,!0),s:tr(i,r,!0),v:nr(i,r,!0)}));n.push(s)}n.push(cn(a));for(var l=1;l<=Ja;l+=1){var d=Xa(a),c=cn(Jt({h:er(d,l),s:tr(d,l),v:nr(d,l)}));n.push(c)}return o.theme==="dark"?Ms.map(function(h){var y=h.index,f=h.opacity,g=cn(zs(Jt(o.backgroundColor||"#141414"),Jt(n[y]),f*100));return g}):n}var Rn={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"},In={},Ln={};Object.keys(Rn).forEach(function(e){In[e]=Dn(Rn[e]),In[e].primary=In[e][5],Ln[e]=Dn(Rn[e],{theme:"dark",backgroundColor:"#141414"}),Ln[e].primary=Ln[e][5]});var or=[],Xt=[],Ps="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function qs(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Vs(e,o){if(o=o||{},e===void 0)throw new Error(Ps);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=or.indexOf(a);r===-1&&(r=or.push(a)-1,Xt[r]={});var i;return Xt[r]!==void 0&&Xt[r][n]!==void 0?i=Xt[r][n]:(i=Xt[r][n]=qs(),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 ar(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){Hs(e,r,n[r])})}return e}function Hs(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 js(e,o){Ws(e,"[@ant-design/icons-vue] ".concat(o))}function rr(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function _n(e,o,n){return n?t.h(e.tag,ar({key:o},n,e.attrs),(e.children||[]).map(function(a,r){return _n(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):t.h(e.tag,ar({key:o},e.attrs),(e.children||[]).map(function(a,r){return _n(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function ir(e){return Dn(e)[0]}function lr(e){return e?Array.isArray(e)?e:[e]:[]}var Gs=`
|
|
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 as(e,o){if(e){if(typeof e=="string")return cr(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 cr(e,o)}}function cr(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 rs(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 is(e){if(Array.isArray(e))return e}function dr(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){Nn(e,r,n[r])})}return e}function Nn(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function ls(e,o){if(e==null)return{};var n=ss(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 ss(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}sr("#1890ff");var Nt=function(o,n){var a,r=dr({},o,n.attrs),i=r.class,s=r.icon,l=r.spin,d=r.rotate,c=r.tabindex,h=r.twoToneColor,y=r.onClick,f=ls(r,ts),g=(a={anticon:!0},Nn(a,"anticon-".concat(s.name),!!s.name),Nn(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",u=c;u===void 0&&y&&(u=-1,f.tabindex=u);var S=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,B=rr(h),b=ns(B,2),v=b[0],p=b[1];return t.createVNode("span",dr({role:"img","aria-label":s.name},f,{onClick:y,class:g}),[t.createVNode(On,{class:m,icon:s,primaryColor:v,secondaryColor:p,style:S},null)])};Nt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Nt.displayName="AntdIcon",Nt.inheritAttrs=!1,Nt.getTwoToneColor=es,Nt.setTwoToneColor=sr;const fr=Nt;var cs={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 ds=cs;function ur(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){fs(e,r,n[r])})}return e}function fs(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Fn=function(o,n){var a=ur({},o,n.attrs);return t.createVNode(fr,ur({},a,{icon:ds}),null)};Fn.displayName="CloseOutlined",Fn.inheritAttrs=!1;const us=Fn;var hs={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 gs=hs;function hr(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){ms(e,r,n[r])})}return e}function ms(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Mn=function(o,n){var a=hr({},o,n.attrs);return t.createVNode(fr,hr({},a,{icon:gs}),null)};Mn.displayName="LoadingOutlined",Mn.inheritAttrs=!1;const ys=Mn,xs=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:de.Spin},setup(){return{indicator:t.h(ys,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Ku="",ye=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n},ps={class:"spin-wrapper"};function bs(e,o,n,a,r,i){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",ps,[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 Ft=ye(xs,[["render",bs]]),vs=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:de.Skeleton}});function Ss(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 en=ye(vs,[["render",Ss]]);(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 Cs=Object.defineProperty,gr=Object.getOwnPropertySymbols,ws=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable,mr=(e,o,n)=>o in e?Cs(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,yr=(e,o)=>{for(var n in o||(o={}))ws.call(o,n)&&mr(e,n,o[n]);if(gr)for(var n of gr(o))As.call(o,n)&&mr(e,n,o[n]);return e},ks=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n};const Ts=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),h=t.ref(0),y=t.ref(0),f=t.ref(!1),g=t.ref(!1),m=t.ref(0),u=t.ref(null),S=t.ref("200px"),B=t.ref(!1),b=t.ref(null),v=t.ref(null),p=async()=>{await A(),i.value++},A=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",b.value!==null&&v.value!==null&&b.value&&v.value)if(e.vertical&&"clientHeight"in b.value&&"clientHeight"in v.value){y.value=b.value.clientHeight,h.value=v.value.clientHeight;const w=Math.ceil(h.value/y.value);return n.value=isFinite(w)?w:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in b.value&&"clientWidth"in v.value){if(c.value=b.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 w=Math.ceil(d.value/c.value);return n.value=isFinite(w)?w: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,(w,L)=>{w!==L&&o(w?"onResume":"onPause")});const D=()=>{e.pauseOnHover&&(o("onPause"),f.value=!0)},E=()=>{e.pauseOnHover&&(o("onResume"),f.value=!1)},_=()=>{e.pauseOnClick&&(o("onPause"),g.value=!0)},O=()=>{e.pauseOnClick&&(o("onResume"),g.value=!1)},R=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),k=t.computed(()=>e.pauseOnHover&&(f.value||g.value)||!e.pauseOnHover&&R.value==="paused"?"paused":"running"),T=t.computed(()=>e.pauseOnHover&&f.value||e.pauseOnClick&&g.value||!e.pauseOnHover&&R.value==="paused"?"paused":"running"),C=t.computed(()=>{const w={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${k.value}`,"--pauseOnClick":`${T.value}`,"--pauseAnimation":`${R.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":`${S.value}`,"--min-width":`${a.value}`,"--min-height":`${r.value}`},L={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(L["--orientation"]="scrollY"),yr(yr({},w),L)}),I=t.computed(()=>!!e.gradient),x=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."),S.value=e.gradientWidth):e.gradientLength&&(S.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await A(),p()),B.value=!0};return t.onMounted(async()=>{x(),u.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(u.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(u.value)}),{ready:B,contentWidth:c,containerWidth:d,contentHeight:y,containerHeight:h,loopCounter:m,loopInterval:u,mouseOverMarquee:f,mouseDownMarquee:g,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:b,marqueeOverlayContainer:v,componentKey:i,showGradient:I,cloneAmount:n,ForcesUpdate:p,checkForClone:A,setupMarquee:x,getCurrentStyle:C,hoverStarted:D,hoverEnded:E,mouseDown:_,mouseUp:O}}}),Bs={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},Es={class:"marquee",ref:"marqueeContent"},Ds={key:1,"aria-hidden":!0,class:"marquee"};function Rs(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",Bs,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",Es,[t.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(t.openBlock(),t.createElementBlock("div",Ds,[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 Is=ks(Ts,[["render",Rs]]);const Ls=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Is},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)}}});function _s(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 zn=ye(Ls,[["render",_s]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const ve=(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},Ee={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},Ce=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},Pn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},qn=Ce(Pn),Os=["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"],Be=(e,o=[])=>{const n=Le.without(Os,...o);return t.computed(()=>Le.pick(e,n))},Vn="EVENT_BUS",Pe="GLOBAL_CONFIG",De="GLOBAL_MODEL",ze="REQUEST_MODEL",xr="GLOBAL_TOKEN",tn="REFRESH_PAGE",pr="MODAL_MODEL",vt="LOADED_DATA",$e=18,br="ygt",vr=(($l=window==null?void 0:window.config)==null?void 0:$l.indicatorURL)||"";(Yl=window==null?void 0:window.config)!=null&&Yl.uploadPath;const Sr=((Kl=window==null?void 0:window.config)==null?void 0:Kl.routerBaseURL)||"./",Ns=((Zl=window==null?void 0:window.config)==null?void 0:Zl.erdURL)||"",Cr=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],Oe=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject(Vn,{onEvent:(r,i)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},Re=e=>{const o=e.events,n=e.id,a=t.inject(Vn,{emitEvent:(i,s)=>{}}),{touchEventId:r}=t.inject(Pe,{touchEventId:t.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=a;o.forEach(d=>{if(i===d.on)try{r.value=n,l(d.target,d.emit)}catch(c){console.error(c)}})}},Mt=(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 h=e[c],y=h[n]||"",f=h[a]||"",g=h[r]||"";if(i.has(g)){const m=i.get(g);m.push({name:y,value:f,...h}),i.set(g,m)}else i.set(g,[{name:y,value:f,...h}])}const l=[],d=[];for(const[c,h]of i)if(d.push({name:c,data:h}),h!=null&&h.length)if(l.length)for(const y of h)l.includes(y.name)||l.push(y.name);else l.push(...h.map(y=>y.name));return{dimensions:l,dataset:d}};var ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fs(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 Ar={exports:{}};function Ms(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 Hn={exports:{}};const zs=Fs(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var kr;function be(){return kr||(kr=1,function(e,o){(function(n,a){e.exports=a()})(ue,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 ue<"u"&&ue.crypto&&(i=ue.crypto),!i&&typeof Ms=="function")try{i=zs}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 b(){}return function(v){var p;return b.prototype=v,p=new b,b.prototype=null,p}}(),d={},c=d.lib={},h=c.Base=function(){return{extend:function(b){var v=l(this);return b&&v.mixIn(b),(!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 b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var v in b)b.hasOwnProperty(v)&&(this[v]=b[v]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=c.WordArray=h.extend({init:function(b,v){b=this.words=b||[],v!=r?this.sigBytes=v:this.sigBytes=b.length*4},toString:function(b){return(b||g).stringify(this)},concat:function(b){var v=this.words,p=b.words,A=this.sigBytes,D=b.sigBytes;if(this.clamp(),A%4)for(var E=0;E<D;E++){var _=p[E>>>2]>>>24-E%4*8&255;v[A+E>>>2]|=_<<24-(A+E)%4*8}else for(var O=0;O<D;O+=4)v[A+O>>>2]=p[O>>>2];return this.sigBytes+=D,this},clamp:function(){var b=this.words,v=this.sigBytes;b[v>>>2]&=4294967295<<32-v%4*8,b.length=a.ceil(v/4)},clone:function(){var b=h.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var v=[],p=0;p<b;p+=4)v.push(s());return new y.init(v,b)}}),f=d.enc={},g=f.Hex={stringify:function(b){for(var v=b.words,p=b.sigBytes,A=[],D=0;D<p;D++){var E=v[D>>>2]>>>24-D%4*8&255;A.push((E>>>4).toString(16)),A.push((E&15).toString(16))}return A.join("")},parse:function(b){for(var v=b.length,p=[],A=0;A<v;A+=2)p[A>>>3]|=parseInt(b.substr(A,2),16)<<24-A%8*4;return new y.init(p,v/2)}},m=f.Latin1={stringify:function(b){for(var v=b.words,p=b.sigBytes,A=[],D=0;D<p;D++){var E=v[D>>>2]>>>24-D%4*8&255;A.push(String.fromCharCode(E))}return A.join("")},parse:function(b){for(var v=b.length,p=[],A=0;A<v;A++)p[A>>>2]|=(b.charCodeAt(A)&255)<<24-A%4*8;return new y.init(p,v)}},u=f.Utf8={stringify:function(b){try{return decodeURIComponent(escape(m.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return m.parse(unescape(encodeURIComponent(b)))}},S=c.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=u.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var v,p=this._data,A=p.words,D=p.sigBytes,E=this.blockSize,_=E*4,O=D/_;b?O=a.ceil(O):O=a.max((O|0)-this._minBufferSize,0);var R=O*E,k=a.min(R*4,D);if(R){for(var T=0;T<R;T+=E)this._doProcessBlock(A,T);v=A.splice(0,R),p.sigBytes-=k}return new y.init(v,k)},clone:function(){var b=h.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=S.extend({cfg:h.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(b){return function(v,p){return new b.init(p).finalize(v)}},_createHmacHelper:function(b){return function(v,p){return new B.HMAC.init(b,p).finalize(v)}}});var B=d.algo={};return d}(Math);return n})}(Hn)),Hn.exports}var Wn={exports:{}},Tr;function fn(){return Tr||(Tr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,h){this.high=c,this.low=h}}),d.WordArray=s.extend({init:function(c,h){c=this.words=c||[],h!=a?this.sigBytes=h:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,h=c.length,y=[],f=0;f<h;f++){var g=c[f];y.push(g.high),y.push(g.low)}return l.create(y,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),h=c.words=this.words.slice(0),y=h.length,f=0;f<y;f++)h[f]=h[f].clone();return c}})}(),n})}(Wn)),Wn.exports}var jn={exports:{}},Br;function Ps(){return Br||(Br=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,h=[],y=0;y<c;y++)h[y>>>2]|=d[y]<<24-y%4*8;s.call(this,h,c)}else s.apply(this,arguments)};l.prototype=i}}(),n.lib.WordArray})}(jn)),jn.exports}var Gn={exports:{}},Er;function qs(){return Er||(Er=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,h=d.sigBytes,y=[],f=0;f<h;f+=2){var g=c[f>>>2]>>>16-f%4*8&65535;y.push(String.fromCharCode(g))}return y.join("")},parse:function(d){for(var c=d.length,h=[],y=0;y<c;y++)h[y>>>1]|=d.charCodeAt(y)<<16-y%2*16;return i.create(h,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,h=d.sigBytes,y=[],f=0;f<h;f+=2){var g=l(c[f>>>2]>>>16-f%4*8&65535);y.push(String.fromCharCode(g))}return y.join("")},parse:function(d){for(var c=d.length,h=[],y=0;y<c;y++)h[y>>>1]|=l(d.charCodeAt(y)<<16-y%2*16);return i.create(h,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(Gn)),Gn.exports}var Un={exports:{}},Dr;function zt(){return Dr||(Dr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,h=d.sigBytes,y=this._map;d.clamp();for(var f=[],g=0;g<h;g+=3)for(var m=c[g>>>2]>>>24-g%4*8&255,u=c[g+1>>>2]>>>24-(g+1)%4*8&255,S=c[g+2>>>2]>>>24-(g+2)%4*8&255,B=m<<16|u<<8|S,b=0;b<4&&g+b*.75<h;b++)f.push(y.charAt(B>>>6*(3-b)&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,h=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var f=0;f<h.length;f++)y[h.charCodeAt(f)]=f}var g=h.charAt(64);if(g){var m=d.indexOf(g);m!==-1&&(c=m)}return l(d,c,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,h){for(var y=[],f=0,g=0;g<c;g++)if(g%4){var m=h[d.charCodeAt(g-1)]<<g%4*2,u=h[d.charCodeAt(g)]>>>6-g%4*2,S=m|u;y[f>>>2]|=S<<24-f%4*8,f++}return i.create(y,f)}}(),n.enc.Base64})}(Un)),Un.exports}var $n={exports:{}},Rr;function Vs(){return Rr||(Rr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var h=d.words,y=d.sigBytes,f=c?this._safe_map:this._map;d.clamp();for(var g=[],m=0;m<y;m+=3)for(var u=h[m>>>2]>>>24-m%4*8&255,S=h[m+1>>>2]>>>24-(m+1)%4*8&255,B=h[m+2>>>2]>>>24-(m+2)%4*8&255,b=u<<16|S<<8|B,v=0;v<4&&m+v*.75<y;v++)g.push(f.charAt(b>>>6*(3-v)&63));var p=f.charAt(64);if(p)for(;g.length%4;)g.push(p);return g.join("")},parse:function(d,c=!0){var h=d.length,y=c?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var g=0;g<y.length;g++)f[y.charCodeAt(g)]=g}var m=y.charAt(64);if(m){var u=d.indexOf(m);u!==-1&&(h=u)}return l(d,h,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,h){for(var y=[],f=0,g=0;g<c;g++)if(g%4){var m=h[d.charCodeAt(g-1)]<<g%4*2,u=h[d.charCodeAt(g)]>>>6-g%4*2,S=m|u;y[f>>>2]|=S<<24-f%4*8,f++}return i.create(y,f)}}(),n.enc.Base64url})}($n)),$n.exports}var Yn={exports:{}},Ir;function Pt(){return Ir||(Ir=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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 h=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(u,S){for(var B=0;B<16;B++){var b=S+B,v=u[b];u[b]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var p=this._hash.words,A=u[S+0],D=u[S+1],E=u[S+2],_=u[S+3],O=u[S+4],R=u[S+5],k=u[S+6],T=u[S+7],C=u[S+8],I=u[S+9],x=u[S+10],w=u[S+11],L=u[S+12],P=u[S+13],V=u[S+14],U=u[S+15],N=p[0],F=p[1],H=p[2],z=p[3];N=y(N,F,H,z,A,7,c[0]),z=y(z,N,F,H,D,12,c[1]),H=y(H,z,N,F,E,17,c[2]),F=y(F,H,z,N,_,22,c[3]),N=y(N,F,H,z,O,7,c[4]),z=y(z,N,F,H,R,12,c[5]),H=y(H,z,N,F,k,17,c[6]),F=y(F,H,z,N,T,22,c[7]),N=y(N,F,H,z,C,7,c[8]),z=y(z,N,F,H,I,12,c[9]),H=y(H,z,N,F,x,17,c[10]),F=y(F,H,z,N,w,22,c[11]),N=y(N,F,H,z,L,7,c[12]),z=y(z,N,F,H,P,12,c[13]),H=y(H,z,N,F,V,17,c[14]),F=y(F,H,z,N,U,22,c[15]),N=f(N,F,H,z,D,5,c[16]),z=f(z,N,F,H,k,9,c[17]),H=f(H,z,N,F,w,14,c[18]),F=f(F,H,z,N,A,20,c[19]),N=f(N,F,H,z,R,5,c[20]),z=f(z,N,F,H,x,9,c[21]),H=f(H,z,N,F,U,14,c[22]),F=f(F,H,z,N,O,20,c[23]),N=f(N,F,H,z,I,5,c[24]),z=f(z,N,F,H,V,9,c[25]),H=f(H,z,N,F,_,14,c[26]),F=f(F,H,z,N,C,20,c[27]),N=f(N,F,H,z,P,5,c[28]),z=f(z,N,F,H,E,9,c[29]),H=f(H,z,N,F,T,14,c[30]),F=f(F,H,z,N,L,20,c[31]),N=g(N,F,H,z,R,4,c[32]),z=g(z,N,F,H,C,11,c[33]),H=g(H,z,N,F,w,16,c[34]),F=g(F,H,z,N,V,23,c[35]),N=g(N,F,H,z,D,4,c[36]),z=g(z,N,F,H,O,11,c[37]),H=g(H,z,N,F,T,16,c[38]),F=g(F,H,z,N,x,23,c[39]),N=g(N,F,H,z,P,4,c[40]),z=g(z,N,F,H,A,11,c[41]),H=g(H,z,N,F,_,16,c[42]),F=g(F,H,z,N,k,23,c[43]),N=g(N,F,H,z,I,4,c[44]),z=g(z,N,F,H,L,11,c[45]),H=g(H,z,N,F,U,16,c[46]),F=g(F,H,z,N,E,23,c[47]),N=m(N,F,H,z,A,6,c[48]),z=m(z,N,F,H,T,10,c[49]),H=m(H,z,N,F,V,15,c[50]),F=m(F,H,z,N,R,21,c[51]),N=m(N,F,H,z,L,6,c[52]),z=m(z,N,F,H,_,10,c[53]),H=m(H,z,N,F,x,15,c[54]),F=m(F,H,z,N,D,21,c[55]),N=m(N,F,H,z,C,6,c[56]),z=m(z,N,F,H,U,10,c[57]),H=m(H,z,N,F,k,15,c[58]),F=m(F,H,z,N,P,21,c[59]),N=m(N,F,H,z,O,6,c[60]),z=m(z,N,F,H,w,10,c[61]),H=m(H,z,N,F,E,15,c[62]),F=m(F,H,z,N,I,21,c[63]),p[0]=p[0]+N|0,p[1]=p[1]+F|0,p[2]=p[2]+H|0,p[3]=p[3]+z|0},_doFinalize:function(){var u=this._data,S=u.words,B=this._nDataBytes*8,b=u.sigBytes*8;S[b>>>5]|=128<<24-b%32;var v=a.floor(B/4294967296),p=B;S[(b+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,S[(b+64>>>9<<4)+14]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,u.sigBytes=(S.length+1)*4,this._process();for(var A=this._hash,D=A.words,E=0;E<4;E++){var _=D[E];D[E]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return A},clone:function(){var u=l.clone.call(this);return u._hash=this._hash.clone(),u}});function y(u,S,B,b,v,p,A){var D=u+(S&B|~S&b)+v+A;return(D<<p|D>>>32-p)+S}function f(u,S,B,b,v,p,A){var D=u+(S&b|B&~b)+v+A;return(D<<p|D>>>32-p)+S}function g(u,S,B,b,v,p,A){var D=u+(S^B^b)+v+A;return(D<<p|D>>>32-p)+S}function m(u,S,B,b,v,p,A){var D=u+(B^(S|~b))+v+A;return(D<<p|D>>>32-p)+S}r.MD5=l._createHelper(h),r.HmacMD5=l._createHmacHelper(h)}(Math),n.MD5})}(Yn)),Yn.exports}var Kn={exports:{}},Lr;function Zn(){return Lr||(Lr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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(h,y){for(var f=this._hash.words,g=f[0],m=f[1],u=f[2],S=f[3],B=f[4],b=0;b<80;b++){if(b<16)d[b]=h[y+b]|0;else{var v=d[b-3]^d[b-8]^d[b-14]^d[b-16];d[b]=v<<1|v>>>31}var p=(g<<5|g>>>27)+B+d[b];b<20?p+=(m&u|~m&S)+1518500249:b<40?p+=(m^u^S)+1859775393:b<60?p+=(m&u|m&S|u&S)-1894007588:p+=(m^u^S)-899497514,B=S,S=u,u=m<<30|m>>>2,m=g,g=p}f[0]=f[0]+g|0,f[1]=f[1]+m|0,f[2]=f[2]+u|0,f[3]=f[3]+S|0,f[4]=f[4]+B|0},_doFinalize:function(){var h=this._data,y=h.words,f=this._nDataBytes*8,g=h.sigBytes*8;return y[g>>>5]|=128<<24-g%32,y[(g+64>>>9<<4)+14]=Math.floor(f/4294967296),y[(g+64>>>9<<4)+15]=f,h.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}(Kn)),Kn.exports}var Qn={exports:{}},_r;function Or(){return _r||(_r=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],h=[];(function(){function g(B){for(var b=a.sqrt(B),v=2;v<=b;v++)if(!(B%v))return!1;return!0}function m(B){return(B-(B|0))*4294967296|0}for(var u=2,S=0;S<64;)g(u)&&(S<8&&(c[S]=m(a.pow(u,1/2))),h[S]=m(a.pow(u,1/3)),S++),u++})();var y=[],f=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(g,m){for(var u=this._hash.words,S=u[0],B=u[1],b=u[2],v=u[3],p=u[4],A=u[5],D=u[6],E=u[7],_=0;_<64;_++){if(_<16)y[_]=g[m+_]|0;else{var O=y[_-15],R=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,k=y[_-2],T=(k<<15|k>>>17)^(k<<13|k>>>19)^k>>>10;y[_]=R+y[_-7]+T+y[_-16]}var C=p&A^~p&D,I=S&B^S&b^B&b,x=(S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22),w=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),L=E+w+C+h[_]+y[_],P=x+I;E=D,D=A,A=p,p=v+L|0,v=b,b=B,B=S,S=L+P|0}u[0]=u[0]+S|0,u[1]=u[1]+B|0,u[2]=u[2]+b|0,u[3]=u[3]+v|0,u[4]=u[4]+p|0,u[5]=u[5]+A|0,u[6]=u[6]+D|0,u[7]=u[7]+E|0},_doFinalize:function(){var g=this._data,m=g.words,u=this._nDataBytes*8,S=g.sigBytes*8;return m[S>>>5]|=128<<24-S%32,m[(S+64>>>9<<4)+14]=a.floor(u/4294967296),m[(S+64>>>9<<4)+15]=u,g.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});r.SHA256=l._createHelper(f),r.HmacSHA256=l._createHmacHelper(f)}(Math),n.SHA256})}(Qn)),Qn.exports}var Jn={exports:{}},Nr;function Hs(){return Nr||(Nr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Or())})(ue,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})}(Jn)),Jn.exports}var Xn={exports:{}},Fr;function Mr(){return Fr||(Fr=1,function(e,o){(function(n,a,r){e.exports=a(be(),fn())})(ue,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 h(){return l.create.apply(l,arguments)}var y=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],f=[];(function(){for(var m=0;m<80;m++)f[m]=h()})();var g=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(m,u){for(var S=this._hash.words,B=S[0],b=S[1],v=S[2],p=S[3],A=S[4],D=S[5],E=S[6],_=S[7],O=B.high,R=B.low,k=b.high,T=b.low,C=v.high,I=v.low,x=p.high,w=p.low,L=A.high,P=A.low,V=D.high,U=D.low,N=E.high,F=E.low,H=_.high,z=_.low,q=O,M=R,J=k,W=T,K=C,ne=I,oe=x,ae=w,Q=L,$=P,ee=V,re=U,xe=N,Se=F,Te=H,_e=z,we=0;we<80;we++){var Ae,Ve,Ue=f[we];if(we<16)Ve=Ue.high=m[u+we*2]|0,Ae=Ue.low=m[u+we*2+1]|0;else{var He=f[we-15],We=He.high,Ge=He.low,ut=(We>>>1|Ge<<31)^(We>>>8|Ge<<24)^We>>>7,tt=(Ge>>>1|We<<31)^(Ge>>>8|We<<24)^(Ge>>>7|We<<25),nt=f[we-2],j=nt.high,Z=nt.low,X=(j>>>19|Z<<13)^(j<<3|Z>>>29)^j>>>6,ie=(Z>>>19|j<<13)^(Z<<3|j>>>29)^(Z>>>6|j<<26),se=f[we-7],le=se.high,te=se.low,ce=f[we-16],ge=ce.high,pe=ce.low;Ae=tt+te,Ve=ut+le+(Ae>>>0<tt>>>0?1:0),Ae=Ae+ie,Ve=Ve+X+(Ae>>>0<ie>>>0?1:0),Ae=Ae+pe,Ve=Ve+ge+(Ae>>>0<pe>>>0?1:0),Ue.high=Ve,Ue.low=Ae}var Me=Q&ee^~Q&xe,Ze=$&re^~$&Se,xt=q&J^q&K^J&K,Lt=M&W^M&ne^W&ne,wn=(q>>>28|M<<4)^(q<<30|M>>>2)^(q<<25|M>>>7),Qe=(M>>>28|q<<4)^(M<<30|q>>>2)^(M<<25|q>>>7),_t=(Q>>>14|$<<18)^(Q>>>18|$<<14)^(Q<<23|$>>>9),Kt=($>>>14|Q<<18)^($>>>18|Q<<14)^($<<23|Q>>>9),An=y[we],Ou=An.high,Ql=An.low,ot=_e+Kt,Bt=Te+_t+(ot>>>0<_e>>>0?1:0),ot=ot+Ze,Bt=Bt+Me+(ot>>>0<Ze>>>0?1:0),ot=ot+Ql,Bt=Bt+Ou+(ot>>>0<Ql>>>0?1:0),ot=ot+Ae,Bt=Bt+Ve+(ot>>>0<Ae>>>0?1:0),Jl=Qe+Lt,Nu=wn+xt+(Jl>>>0<Qe>>>0?1:0);Te=xe,_e=Se,xe=ee,Se=re,ee=Q,re=$,$=ae+ot|0,Q=oe+Bt+($>>>0<ae>>>0?1:0)|0,oe=K,ae=ne,K=J,ne=W,J=q,W=M,M=ot+Jl|0,q=Bt+Nu+(M>>>0<ot>>>0?1:0)|0}R=B.low=R+M,B.high=O+q+(R>>>0<M>>>0?1:0),T=b.low=T+W,b.high=k+J+(T>>>0<W>>>0?1:0),I=v.low=I+ne,v.high=C+K+(I>>>0<ne>>>0?1:0),w=p.low=w+ae,p.high=x+oe+(w>>>0<ae>>>0?1:0),P=A.low=P+$,A.high=L+Q+(P>>>0<$>>>0?1:0),U=D.low=U+re,D.high=V+ee+(U>>>0<re>>>0?1:0),F=E.low=F+Se,E.high=N+xe+(F>>>0<Se>>>0?1:0),z=_.low=z+_e,_.high=H+Te+(z>>>0<_e>>>0?1:0)},_doFinalize:function(){var m=this._data,u=m.words,S=this._nDataBytes*8,B=m.sigBytes*8;u[B>>>5]|=128<<24-B%32,u[(B+128>>>10<<5)+30]=Math.floor(S/4294967296),u[(B+128>>>10<<5)+31]=S,m.sigBytes=u.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=i._createHelper(g),a.HmacSHA512=i._createHmacHelper(g)}(),n.SHA512})}(Xn)),Xn.exports}var eo={exports:{}},zr;function Ws(){return zr||(zr=1,function(e,o){(function(n,a,r){e.exports=a(be(),fn(),Mr())})(ue,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 h=d._doFinalize.call(this);return h.sigBytes-=16,h}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(eo)),eo.exports}var to={exports:{}},Pr;function js(){return Pr||(Pr=1,function(e,o){(function(n,a,r){e.exports=a(be(),fn())})(ue,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,h=r.algo,y=[],f=[],g=[];(function(){for(var S=1,B=0,b=0;b<24;b++){y[S+5*B]=(b+1)*(b+2)/2%64;var v=B%5,p=(2*S+3*B)%5;S=v,B=p}for(var S=0;S<5;S++)for(var B=0;B<5;B++)f[S+5*B]=B+(2*S+3*B)%5*5;for(var A=1,D=0;D<24;D++){for(var E=0,_=0,O=0;O<7;O++){if(A&1){var R=(1<<O)-1;R<32?_^=1<<R:E^=1<<R-32}A&128?A=A<<1^113:A<<=1}g[D]=c.create(E,_)}})();var m=[];(function(){for(var S=0;S<25;S++)m[S]=c.create()})();var u=h.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var S=this._state=[],B=0;B<25;B++)S[B]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(S,B){for(var b=this._state,v=this.blockSize/2,p=0;p<v;p++){var A=S[B+2*p],D=S[B+2*p+1];A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360;var E=b[p];E.high^=D,E.low^=A}for(var _=0;_<24;_++){for(var O=0;O<5;O++){for(var R=0,k=0,T=0;T<5;T++){var E=b[O+5*T];R^=E.high,k^=E.low}var C=m[O];C.high=R,C.low=k}for(var O=0;O<5;O++)for(var I=m[(O+4)%5],x=m[(O+1)%5],w=x.high,L=x.low,R=I.high^(w<<1|L>>>31),k=I.low^(L<<1|w>>>31),T=0;T<5;T++){var E=b[O+5*T];E.high^=R,E.low^=k}for(var P=1;P<25;P++){var R,k,E=b[P],V=E.high,U=E.low,N=y[P];N<32?(R=V<<N|U>>>32-N,k=U<<N|V>>>32-N):(R=U<<N-32|V>>>64-N,k=V<<N-32|U>>>64-N);var F=m[f[P]];F.high=R,F.low=k}var H=m[0],z=b[0];H.high=z.high,H.low=z.low;for(var O=0;O<5;O++)for(var T=0;T<5;T++){var P=O+5*T,E=b[P],q=m[P],M=m[(O+1)%5+5*T],J=m[(O+2)%5+5*T];E.high=q.high^~M.high&J.high,E.low=q.low^~M.low&J.low}var E=b[0],W=g[_];E.high^=W.high,E.low^=W.low}},_doFinalize:function(){var S=this._data,B=S.words;this._nDataBytes*8;var b=S.sigBytes*8,v=this.blockSize*32;B[b>>>5]|=1<<24-b%32,B[(a.ceil((b+1)/v)*v>>>5)-1]|=128,S.sigBytes=B.length*4,this._process();for(var p=this._state,A=this.cfg.outputLength/8,D=A/8,E=[],_=0;_<D;_++){var O=p[_],R=O.high,k=O.low;R=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,E.push(k),E.push(R)}return new s.init(E,A)},clone:function(){for(var S=l.clone.call(this),B=S._state=this._state.slice(0),b=0;b<25;b++)B[b]=B[b].clone();return S}});r.SHA3=l._createHelper(u),r.HmacSHA3=l._createHmacHelper(u)}(Math),n.SHA3})}(to)),to.exports}var no={exports:{}},qr;function Gs(){return qr||(qr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,function(n){/** @preserve
|
|
56
|
+
`,sr=!1,Us=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gs;t.nextTick(function(){sr||(typeof window<"u"&&window.document&&window.document.documentElement&&Vs(o,{prepend:!0}),sr=!0)})},$s=["icon","primaryColor","secondaryColor"];function Ys(e,o){if(e==null)return{};var n=Ks(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 Ks(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}function dn(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){Zs(e,r,n[r])})}return e}function Zs(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var en={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Qs(e){var o=e.primaryColor,n=e.secondaryColor;en.primaryColor=o,en.secondaryColor=n||ir(o),en.calculated=!!n}function Js(){return dn({},en)}var Ot=function(o,n){var a=dn({},o,n.attrs),r=a.icon,i=a.primaryColor,s=a.secondaryColor,l=Ys(a,$s),d=en;if(i&&(d={primaryColor:i,secondaryColor:s||ir(i)}),Us(),js(rr(r),"icon should be icon definiton, but got ".concat(r)),!rr(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=dn({},c,{icon:c.icon(d.primaryColor,d.secondaryColor)})),_n(c.icon,"svg-".concat(c.name),dn({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Ot.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Ot.inheritAttrs=!1,Ot.displayName="IconBase",Ot.getTwoToneColors=Js,Ot.setTwoToneColors=Qs;const On=Ot;function Xs(e,o){return o0(e)||n0(e,o)||t0(e,o)||e0()}function e0(){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 t0(e,o){if(e){if(typeof e=="string")return cr(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 cr(e,o)}}function cr(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 n0(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 o0(e){if(Array.isArray(e))return e}function dr(e){var o=lr(e),n=Xs(o,2),a=n[0],r=n[1];return On.setTwoToneColors({primaryColor:a,secondaryColor:r})}function a0(){var e=On.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var r0=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function i0(e,o){return d0(e)||c0(e,o)||s0(e,o)||l0()}function l0(){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 s0(e,o){if(e){if(typeof e=="string")return fr(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 fr(e,o)}}function fr(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 c0(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 d0(e){if(Array.isArray(e))return e}function ur(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){Nn(e,r,n[r])})}return e}function Nn(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function f0(e,o){if(e==null)return{};var n=u0(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 u0(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}dr("#1890ff");var Nt=function(o,n){var a,r=ur({},o,n.attrs),i=r.class,s=r.icon,l=r.spin,d=r.rotate,c=r.tabindex,h=r.twoToneColor,y=r.onClick,f=f0(r,r0),g=(a={anticon:!0},Nn(a,"anticon-".concat(s.name),!!s.name),Nn(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",u=c;u===void 0&&y&&(u=-1,f.tabindex=u);var S=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,B=lr(h),b=i0(B,2),v=b[0],x=b[1];return t.createVNode("span",ur({role:"img","aria-label":s.name},f,{onClick:y,class:g}),[t.createVNode(On,{class:m,icon:s,primaryColor:v,secondaryColor:x,style:S},null)])};Nt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Nt.displayName="AntdIcon",Nt.inheritAttrs=!1,Nt.getTwoToneColor=a0,Nt.setTwoToneColor=dr;const hr=Nt;var h0={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 g0=h0;function gr(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){m0(e,r,n[r])})}return e}function m0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Fn=function(o,n){var a=gr({},o,n.attrs);return t.createVNode(hr,gr({},a,{icon:g0}),null)};Fn.displayName="CloseOutlined",Fn.inheritAttrs=!1;const y0=Fn;var x0={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 p0=x0;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){b0(e,r,n[r])})}return e}function b0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Mn=function(o,n){var a=mr({},o,n.attrs);return t.createVNode(hr,mr({},a,{icon:p0}),null)};Mn.displayName="LoadingOutlined",Mn.inheritAttrs=!1;const v0=Mn,S0=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:de.Spin},setup(){return{indicator:t.h(v0,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),nh="",me=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n},C0={class:"spin-wrapper"};function w0(e,o,n,a,r,i){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",C0,[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 Ft=me(S0,[["render",w0]]),A0=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:de.Skeleton}});function k0(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 Mt=me(A0,[["render",k0]]);(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 T0=Object.defineProperty,yr=Object.getOwnPropertySymbols,B0=Object.prototype.hasOwnProperty,E0=Object.prototype.propertyIsEnumerable,xr=(e,o,n)=>o in e?T0(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,pr=(e,o)=>{for(var n in o||(o={}))B0.call(o,n)&&xr(e,n,o[n]);if(yr)for(var n of yr(o))E0.call(o,n)&&xr(e,n,o[n]);return e},D0=(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),h=t.ref(0),y=t.ref(0),f=t.ref(!1),g=t.ref(!1),m=t.ref(0),u=t.ref(null),S=t.ref("200px"),B=t.ref(!1),b=t.ref(null),v=t.ref(null),x=async()=>{await w(),i.value++},w=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",b.value!==null&&v.value!==null&&b.value&&v.value)if(e.vertical&&"clientHeight"in b.value&&"clientHeight"in v.value){y.value=b.value.clientHeight,h.value=v.value.clientHeight;const A=Math.ceil(h.value/y.value);return n.value=isFinite(A)?A:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in b.value&&"clientWidth"in v.value){if(c.value=b.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 A=Math.ceil(d.value/c.value);return n.value=isFinite(A)?A: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&&x()}),t.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&x()}),t.watch(()=>e.pause,(A,_)=>{A!==_&&o(A?"onResume":"onPause")});const T=()=>{e.pauseOnHover&&(o("onPause"),f.value=!0)},E=()=>{e.pauseOnHover&&(o("onResume"),f.value=!1)},I=()=>{e.pauseOnClick&&(o("onPause"),g.value=!0)},O=()=>{e.pauseOnClick&&(o("onResume"),g.value=!1)},R=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),k=t.computed(()=>e.pauseOnHover&&(f.value||g.value)||!e.pauseOnHover&&R.value==="paused"?"paused":"running"),D=t.computed(()=>e.pauseOnHover&&f.value||e.pauseOnClick&&g.value||!e.pauseOnHover&&R.value==="paused"?"paused":"running"),C=t.computed(()=>{const A={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${k.value}`,"--pauseOnClick":`${D.value}`,"--pauseAnimation":`${R.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":`${S.value}`,"--min-width":`${a.value}`,"--min-height":`${r.value}`},_={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(_["--orientation"]="scrollY"),pr(pr({},A),_)}),L=t.computed(()=>!!e.gradient),p=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."),S.value=e.gradientWidth):e.gradientLength&&(S.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await w(),x()),B.value=!0};return t.onMounted(async()=>{p(),u.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(u.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(u.value)}),{ready:B,contentWidth:c,containerWidth:d,contentHeight:y,containerHeight:h,loopCounter:m,loopInterval:u,mouseOverMarquee:f,mouseDownMarquee:g,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:b,marqueeOverlayContainer:v,componentKey:i,showGradient:L,cloneAmount:n,ForcesUpdate:x,checkForClone:w,setupMarquee:p,getCurrentStyle:C,hoverStarted:T,hoverEnded:E,mouseDown:I,mouseUp:O}}}),I0={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},L0={class:"marquee",ref:"marqueeContent"},_0={key:1,"aria-hidden":!0,class:"marquee"};function O0(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",I0,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",_0,[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 N0=D0(R0,[["render",O0]]);const F0=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:N0},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)}}});function M0(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 zn=me(F0,[["render",M0]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const ve=(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},Ee={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},Ce=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},Pn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},qn=Ce(Pn),z0=["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(z0,...o);return t.computed(()=>Le.pick(e,n))},Vn="EVENT_BUS",qe="GLOBAL_CONFIG",De="GLOBAL_MODEL",ze="REQUEST_MODEL",br="GLOBAL_TOKEN",tn="REFRESH_PAGE",vr="MODAL_MODEL",vt="LOADED_DATA",$e=18,Sr="ygt",Cr=((Ql=window==null?void 0:window.config)==null?void 0:Ql.indicatorURL)||"";(Jl=window==null?void 0:window.config)!=null&&Jl.uploadPath;const wr=((Xl=window==null?void 0:window.config)==null?void 0:Xl.routerBaseURL)||"./",P0=((es=window==null?void 0:window.config)==null?void 0:es.erdURL)||"",Ar=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],_e=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject(Vn,{onEvent:(r,i)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},Re=e=>{const o=e.events,n=e.id,a=t.inject(Vn,{emitEvent:(i,s)=>{}}),{touchEventId:r}=t.inject(qe,{touchEventId:t.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=a;o.forEach(d=>{if(i===d.on)try{r.value=n,l(d.target,d.emit)}catch(c){console.error(c)}})}},zt=(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 h=e[c],y=h[n]||"",f=h[a]||"",g=h[r]||"";if(i.has(g)){const m=i.get(g);m.push({name:y,value:f,...h}),i.set(g,m)}else i.set(g,[{name:y,value:f,...h}])}const l=[],d=[];for(const[c,h]of i)if(d.push({name:c,data:h}),h!=null&&h.length)if(l.length)for(const y of h)l.includes(y.name)||l.push(y.name);else l.push(...h.map(y=>y.name));return{dimensions:l,dataset:d}};var ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function q0(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 Tr={exports:{}};function V0(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 Hn={exports:{}};const H0=q0(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Br;function be(){return Br||(Br=1,function(e,o){(function(n,a){e.exports=a()})(ue,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 ue<"u"&&ue.crypto&&(i=ue.crypto),!i&&typeof V0=="function")try{i=H0}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 b(){}return function(v){var x;return b.prototype=v,x=new b,b.prototype=null,x}}(),d={},c=d.lib={},h=c.Base=function(){return{extend:function(b){var v=l(this);return b&&v.mixIn(b),(!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 b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var v in b)b.hasOwnProperty(v)&&(this[v]=b[v]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=c.WordArray=h.extend({init:function(b,v){b=this.words=b||[],v!=r?this.sigBytes=v:this.sigBytes=b.length*4},toString:function(b){return(b||g).stringify(this)},concat:function(b){var v=this.words,x=b.words,w=this.sigBytes,T=b.sigBytes;if(this.clamp(),w%4)for(var E=0;E<T;E++){var I=x[E>>>2]>>>24-E%4*8&255;v[w+E>>>2]|=I<<24-(w+E)%4*8}else for(var O=0;O<T;O+=4)v[w+O>>>2]=x[O>>>2];return this.sigBytes+=T,this},clamp:function(){var b=this.words,v=this.sigBytes;b[v>>>2]&=4294967295<<32-v%4*8,b.length=a.ceil(v/4)},clone:function(){var b=h.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var v=[],x=0;x<b;x+=4)v.push(s());return new y.init(v,b)}}),f=d.enc={},g=f.Hex={stringify:function(b){for(var v=b.words,x=b.sigBytes,w=[],T=0;T<x;T++){var E=v[T>>>2]>>>24-T%4*8&255;w.push((E>>>4).toString(16)),w.push((E&15).toString(16))}return w.join("")},parse:function(b){for(var v=b.length,x=[],w=0;w<v;w+=2)x[w>>>3]|=parseInt(b.substr(w,2),16)<<24-w%8*4;return new y.init(x,v/2)}},m=f.Latin1={stringify:function(b){for(var v=b.words,x=b.sigBytes,w=[],T=0;T<x;T++){var E=v[T>>>2]>>>24-T%4*8&255;w.push(String.fromCharCode(E))}return w.join("")},parse:function(b){for(var v=b.length,x=[],w=0;w<v;w++)x[w>>>2]|=(b.charCodeAt(w)&255)<<24-w%4*8;return new y.init(x,v)}},u=f.Utf8={stringify:function(b){try{return decodeURIComponent(escape(m.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return m.parse(unescape(encodeURIComponent(b)))}},S=c.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=u.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var v,x=this._data,w=x.words,T=x.sigBytes,E=this.blockSize,I=E*4,O=T/I;b?O=a.ceil(O):O=a.max((O|0)-this._minBufferSize,0);var R=O*E,k=a.min(R*4,T);if(R){for(var D=0;D<R;D+=E)this._doProcessBlock(w,D);v=w.splice(0,R),x.sigBytes-=k}return new y.init(v,k)},clone:function(){var b=h.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=S.extend({cfg:h.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(b){return function(v,x){return new b.init(x).finalize(v)}},_createHmacHelper:function(b){return function(v,x){return new B.HMAC.init(b,x).finalize(v)}}});var B=d.algo={};return d}(Math);return n})}(Hn)),Hn.exports}var Wn={exports:{}},Er;function fn(){return Er||(Er=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,h){this.high=c,this.low=h}}),d.WordArray=s.extend({init:function(c,h){c=this.words=c||[],h!=a?this.sigBytes=h:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,h=c.length,y=[],f=0;f<h;f++){var g=c[f];y.push(g.high),y.push(g.low)}return l.create(y,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),h=c.words=this.words.slice(0),y=h.length,f=0;f<y;f++)h[f]=h[f].clone();return c}})}(),n})}(Wn)),Wn.exports}var jn={exports:{}},Dr;function W0(){return Dr||(Dr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,h=[],y=0;y<c;y++)h[y>>>2]|=d[y]<<24-y%4*8;s.call(this,h,c)}else s.apply(this,arguments)};l.prototype=i}}(),n.lib.WordArray})}(jn)),jn.exports}var Gn={exports:{}},Rr;function j0(){return Rr||(Rr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,h=d.sigBytes,y=[],f=0;f<h;f+=2){var g=c[f>>>2]>>>16-f%4*8&65535;y.push(String.fromCharCode(g))}return y.join("")},parse:function(d){for(var c=d.length,h=[],y=0;y<c;y++)h[y>>>1]|=d.charCodeAt(y)<<16-y%2*16;return i.create(h,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,h=d.sigBytes,y=[],f=0;f<h;f+=2){var g=l(c[f>>>2]>>>16-f%4*8&65535);y.push(String.fromCharCode(g))}return y.join("")},parse:function(d){for(var c=d.length,h=[],y=0;y<c;y++)h[y>>>1]|=l(d.charCodeAt(y)<<16-y%2*16);return i.create(h,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(Gn)),Gn.exports}var Un={exports:{}},Ir;function Pt(){return Ir||(Ir=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,h=d.sigBytes,y=this._map;d.clamp();for(var f=[],g=0;g<h;g+=3)for(var m=c[g>>>2]>>>24-g%4*8&255,u=c[g+1>>>2]>>>24-(g+1)%4*8&255,S=c[g+2>>>2]>>>24-(g+2)%4*8&255,B=m<<16|u<<8|S,b=0;b<4&&g+b*.75<h;b++)f.push(y.charAt(B>>>6*(3-b)&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,h=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var f=0;f<h.length;f++)y[h.charCodeAt(f)]=f}var g=h.charAt(64);if(g){var m=d.indexOf(g);m!==-1&&(c=m)}return l(d,c,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,h){for(var y=[],f=0,g=0;g<c;g++)if(g%4){var m=h[d.charCodeAt(g-1)]<<g%4*2,u=h[d.charCodeAt(g)]>>>6-g%4*2,S=m|u;y[f>>>2]|=S<<24-f%4*8,f++}return i.create(y,f)}}(),n.enc.Base64})}(Un)),Un.exports}var $n={exports:{}},Lr;function G0(){return Lr||(Lr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var h=d.words,y=d.sigBytes,f=c?this._safe_map:this._map;d.clamp();for(var g=[],m=0;m<y;m+=3)for(var u=h[m>>>2]>>>24-m%4*8&255,S=h[m+1>>>2]>>>24-(m+1)%4*8&255,B=h[m+2>>>2]>>>24-(m+2)%4*8&255,b=u<<16|S<<8|B,v=0;v<4&&m+v*.75<y;v++)g.push(f.charAt(b>>>6*(3-v)&63));var x=f.charAt(64);if(x)for(;g.length%4;)g.push(x);return g.join("")},parse:function(d,c=!0){var h=d.length,y=c?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var g=0;g<y.length;g++)f[y.charCodeAt(g)]=g}var m=y.charAt(64);if(m){var u=d.indexOf(m);u!==-1&&(h=u)}return l(d,h,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,h){for(var y=[],f=0,g=0;g<c;g++)if(g%4){var m=h[d.charCodeAt(g-1)]<<g%4*2,u=h[d.charCodeAt(g)]>>>6-g%4*2,S=m|u;y[f>>>2]|=S<<24-f%4*8,f++}return i.create(y,f)}}(),n.enc.Base64url})}($n)),$n.exports}var Yn={exports:{}},_r;function qt(){return _r||(_r=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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 h=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(u,S){for(var B=0;B<16;B++){var b=S+B,v=u[b];u[b]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var x=this._hash.words,w=u[S+0],T=u[S+1],E=u[S+2],I=u[S+3],O=u[S+4],R=u[S+5],k=u[S+6],D=u[S+7],C=u[S+8],L=u[S+9],p=u[S+10],A=u[S+11],_=u[S+12],P=u[S+13],V=u[S+14],U=u[S+15],N=x[0],F=x[1],H=x[2],z=x[3];N=y(N,F,H,z,w,7,c[0]),z=y(z,N,F,H,T,12,c[1]),H=y(H,z,N,F,E,17,c[2]),F=y(F,H,z,N,I,22,c[3]),N=y(N,F,H,z,O,7,c[4]),z=y(z,N,F,H,R,12,c[5]),H=y(H,z,N,F,k,17,c[6]),F=y(F,H,z,N,D,22,c[7]),N=y(N,F,H,z,C,7,c[8]),z=y(z,N,F,H,L,12,c[9]),H=y(H,z,N,F,p,17,c[10]),F=y(F,H,z,N,A,22,c[11]),N=y(N,F,H,z,_,7,c[12]),z=y(z,N,F,H,P,12,c[13]),H=y(H,z,N,F,V,17,c[14]),F=y(F,H,z,N,U,22,c[15]),N=f(N,F,H,z,T,5,c[16]),z=f(z,N,F,H,k,9,c[17]),H=f(H,z,N,F,A,14,c[18]),F=f(F,H,z,N,w,20,c[19]),N=f(N,F,H,z,R,5,c[20]),z=f(z,N,F,H,p,9,c[21]),H=f(H,z,N,F,U,14,c[22]),F=f(F,H,z,N,O,20,c[23]),N=f(N,F,H,z,L,5,c[24]),z=f(z,N,F,H,V,9,c[25]),H=f(H,z,N,F,I,14,c[26]),F=f(F,H,z,N,C,20,c[27]),N=f(N,F,H,z,P,5,c[28]),z=f(z,N,F,H,E,9,c[29]),H=f(H,z,N,F,D,14,c[30]),F=f(F,H,z,N,_,20,c[31]),N=g(N,F,H,z,R,4,c[32]),z=g(z,N,F,H,C,11,c[33]),H=g(H,z,N,F,A,16,c[34]),F=g(F,H,z,N,V,23,c[35]),N=g(N,F,H,z,T,4,c[36]),z=g(z,N,F,H,O,11,c[37]),H=g(H,z,N,F,D,16,c[38]),F=g(F,H,z,N,p,23,c[39]),N=g(N,F,H,z,P,4,c[40]),z=g(z,N,F,H,w,11,c[41]),H=g(H,z,N,F,I,16,c[42]),F=g(F,H,z,N,k,23,c[43]),N=g(N,F,H,z,L,4,c[44]),z=g(z,N,F,H,_,11,c[45]),H=g(H,z,N,F,U,16,c[46]),F=g(F,H,z,N,E,23,c[47]),N=m(N,F,H,z,w,6,c[48]),z=m(z,N,F,H,D,10,c[49]),H=m(H,z,N,F,V,15,c[50]),F=m(F,H,z,N,R,21,c[51]),N=m(N,F,H,z,_,6,c[52]),z=m(z,N,F,H,I,10,c[53]),H=m(H,z,N,F,p,15,c[54]),F=m(F,H,z,N,T,21,c[55]),N=m(N,F,H,z,C,6,c[56]),z=m(z,N,F,H,U,10,c[57]),H=m(H,z,N,F,k,15,c[58]),F=m(F,H,z,N,P,21,c[59]),N=m(N,F,H,z,O,6,c[60]),z=m(z,N,F,H,A,10,c[61]),H=m(H,z,N,F,E,15,c[62]),F=m(F,H,z,N,L,21,c[63]),x[0]=x[0]+N|0,x[1]=x[1]+F|0,x[2]=x[2]+H|0,x[3]=x[3]+z|0},_doFinalize:function(){var u=this._data,S=u.words,B=this._nDataBytes*8,b=u.sigBytes*8;S[b>>>5]|=128<<24-b%32;var v=a.floor(B/4294967296),x=B;S[(b+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,S[(b+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,u.sigBytes=(S.length+1)*4,this._process();for(var w=this._hash,T=w.words,E=0;E<4;E++){var I=T[E];T[E]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return w},clone:function(){var u=l.clone.call(this);return u._hash=this._hash.clone(),u}});function y(u,S,B,b,v,x,w){var T=u+(S&B|~S&b)+v+w;return(T<<x|T>>>32-x)+S}function f(u,S,B,b,v,x,w){var T=u+(S&b|B&~b)+v+w;return(T<<x|T>>>32-x)+S}function g(u,S,B,b,v,x,w){var T=u+(S^B^b)+v+w;return(T<<x|T>>>32-x)+S}function m(u,S,B,b,v,x,w){var T=u+(B^(S|~b))+v+w;return(T<<x|T>>>32-x)+S}r.MD5=l._createHelper(h),r.HmacMD5=l._createHmacHelper(h)}(Math),n.MD5})}(Yn)),Yn.exports}var Kn={exports:{}},Or;function Zn(){return Or||(Or=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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(h,y){for(var f=this._hash.words,g=f[0],m=f[1],u=f[2],S=f[3],B=f[4],b=0;b<80;b++){if(b<16)d[b]=h[y+b]|0;else{var v=d[b-3]^d[b-8]^d[b-14]^d[b-16];d[b]=v<<1|v>>>31}var x=(g<<5|g>>>27)+B+d[b];b<20?x+=(m&u|~m&S)+1518500249:b<40?x+=(m^u^S)+1859775393:b<60?x+=(m&u|m&S|u&S)-1894007588:x+=(m^u^S)-899497514,B=S,S=u,u=m<<30|m>>>2,m=g,g=x}f[0]=f[0]+g|0,f[1]=f[1]+m|0,f[2]=f[2]+u|0,f[3]=f[3]+S|0,f[4]=f[4]+B|0},_doFinalize:function(){var h=this._data,y=h.words,f=this._nDataBytes*8,g=h.sigBytes*8;return y[g>>>5]|=128<<24-g%32,y[(g+64>>>9<<4)+14]=Math.floor(f/4294967296),y[(g+64>>>9<<4)+15]=f,h.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}(Kn)),Kn.exports}var Qn={exports:{}},Nr;function Fr(){return Nr||(Nr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],h=[];(function(){function g(B){for(var b=a.sqrt(B),v=2;v<=b;v++)if(!(B%v))return!1;return!0}function m(B){return(B-(B|0))*4294967296|0}for(var u=2,S=0;S<64;)g(u)&&(S<8&&(c[S]=m(a.pow(u,1/2))),h[S]=m(a.pow(u,1/3)),S++),u++})();var y=[],f=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(g,m){for(var u=this._hash.words,S=u[0],B=u[1],b=u[2],v=u[3],x=u[4],w=u[5],T=u[6],E=u[7],I=0;I<64;I++){if(I<16)y[I]=g[m+I]|0;else{var O=y[I-15],R=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,k=y[I-2],D=(k<<15|k>>>17)^(k<<13|k>>>19)^k>>>10;y[I]=R+y[I-7]+D+y[I-16]}var C=x&w^~x&T,L=S&B^S&b^B&b,p=(S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22),A=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),_=E+A+C+h[I]+y[I],P=p+L;E=T,T=w,w=x,x=v+_|0,v=b,b=B,B=S,S=_+P|0}u[0]=u[0]+S|0,u[1]=u[1]+B|0,u[2]=u[2]+b|0,u[3]=u[3]+v|0,u[4]=u[4]+x|0,u[5]=u[5]+w|0,u[6]=u[6]+T|0,u[7]=u[7]+E|0},_doFinalize:function(){var g=this._data,m=g.words,u=this._nDataBytes*8,S=g.sigBytes*8;return m[S>>>5]|=128<<24-S%32,m[(S+64>>>9<<4)+14]=a.floor(u/4294967296),m[(S+64>>>9<<4)+15]=u,g.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});r.SHA256=l._createHelper(f),r.HmacSHA256=l._createHmacHelper(f)}(Math),n.SHA256})}(Qn)),Qn.exports}var Jn={exports:{}},Mr;function U0(){return Mr||(Mr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Fr())})(ue,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})}(Jn)),Jn.exports}var Xn={exports:{}},zr;function Pr(){return zr||(zr=1,function(e,o){(function(n,a,r){e.exports=a(be(),fn())})(ue,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 h(){return l.create.apply(l,arguments)}var y=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],f=[];(function(){for(var m=0;m<80;m++)f[m]=h()})();var g=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(m,u){for(var S=this._hash.words,B=S[0],b=S[1],v=S[2],x=S[3],w=S[4],T=S[5],E=S[6],I=S[7],O=B.high,R=B.low,k=b.high,D=b.low,C=v.high,L=v.low,p=x.high,A=x.low,_=w.high,P=w.low,V=T.high,U=T.low,N=E.high,F=E.low,H=I.high,z=I.low,q=O,M=R,J=k,W=D,Y=C,ne=L,oe=p,ae=A,Q=_,$=P,ee=V,re=U,xe=N,Se=F,Be=H,Oe=z,we=0;we<80;we++){var Ae,Ve,Ue=f[we];if(we<16)Ve=Ue.high=m[u+we*2]|0,Ae=Ue.low=m[u+we*2+1]|0;else{var He=f[we-15],We=He.high,Ge=He.low,ht=(We>>>1|Ge<<31)^(We>>>8|Ge<<24)^We>>>7,tt=(Ge>>>1|We<<31)^(Ge>>>8|We<<24)^(Ge>>>7|We<<25),nt=f[we-2],G=nt.high,Z=nt.low,X=(G>>>19|Z<<13)^(G<<3|Z>>>29)^G>>>6,ie=(Z>>>19|G<<13)^(Z<<3|G>>>29)^(Z>>>6|G<<26),se=f[we-7],le=se.high,te=se.low,ce=f[we-16],ge=ce.high,pe=ce.low;Ae=tt+te,Ve=ht+le+(Ae>>>0<tt>>>0?1:0),Ae=Ae+ie,Ve=Ve+X+(Ae>>>0<ie>>>0?1:0),Ae=Ae+pe,Ve=Ve+ge+(Ae>>>0<pe>>>0?1:0),Ue.high=Ve,Ue.low=Ae}var Me=Q&ee^~Q&xe,Ze=$&re^~$&Se,xt=q&J^q&Y^J&Y,Lt=M&W^M&ne^W&ne,wn=(q>>>28|M<<4)^(q<<30|M>>>2)^(q<<25|M>>>7),Qe=(M>>>28|q<<4)^(M<<30|q>>>2)^(M<<25|q>>>7),_t=(Q>>>14|$<<18)^(Q>>>18|$<<14)^(Q<<23|$>>>9),Zt=($>>>14|Q<<18)^($>>>18|Q<<14)^($<<23|Q>>>9),An=y[we],Vu=An.high,ts=An.low,ot=Oe+Zt,Bt=Be+_t+(ot>>>0<Oe>>>0?1:0),ot=ot+Ze,Bt=Bt+Me+(ot>>>0<Ze>>>0?1:0),ot=ot+ts,Bt=Bt+Vu+(ot>>>0<ts>>>0?1:0),ot=ot+Ae,Bt=Bt+Ve+(ot>>>0<Ae>>>0?1:0),ns=Qe+Lt,Hu=wn+xt+(ns>>>0<Qe>>>0?1:0);Be=xe,Oe=Se,xe=ee,Se=re,ee=Q,re=$,$=ae+ot|0,Q=oe+Bt+($>>>0<ae>>>0?1:0)|0,oe=Y,ae=ne,Y=J,ne=W,J=q,W=M,M=ot+ns|0,q=Bt+Hu+(M>>>0<ot>>>0?1:0)|0}R=B.low=R+M,B.high=O+q+(R>>>0<M>>>0?1:0),D=b.low=D+W,b.high=k+J+(D>>>0<W>>>0?1:0),L=v.low=L+ne,v.high=C+Y+(L>>>0<ne>>>0?1:0),A=x.low=A+ae,x.high=p+oe+(A>>>0<ae>>>0?1:0),P=w.low=P+$,w.high=_+Q+(P>>>0<$>>>0?1:0),U=T.low=U+re,T.high=V+ee+(U>>>0<re>>>0?1:0),F=E.low=F+Se,E.high=N+xe+(F>>>0<Se>>>0?1:0),z=I.low=z+Oe,I.high=H+Be+(z>>>0<Oe>>>0?1:0)},_doFinalize:function(){var m=this._data,u=m.words,S=this._nDataBytes*8,B=m.sigBytes*8;u[B>>>5]|=128<<24-B%32,u[(B+128>>>10<<5)+30]=Math.floor(S/4294967296),u[(B+128>>>10<<5)+31]=S,m.sigBytes=u.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=i._createHelper(g),a.HmacSHA512=i._createHmacHelper(g)}(),n.SHA512})}(Xn)),Xn.exports}var eo={exports:{}},qr;function $0(){return qr||(qr=1,function(e,o){(function(n,a,r){e.exports=a(be(),fn(),Pr())})(ue,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 h=d._doFinalize.call(this);return h.sigBytes-=16,h}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(eo)),eo.exports}var to={exports:{}},Vr;function Y0(){return Vr||(Vr=1,function(e,o){(function(n,a,r){e.exports=a(be(),fn())})(ue,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,h=r.algo,y=[],f=[],g=[];(function(){for(var S=1,B=0,b=0;b<24;b++){y[S+5*B]=(b+1)*(b+2)/2%64;var v=B%5,x=(2*S+3*B)%5;S=v,B=x}for(var S=0;S<5;S++)for(var B=0;B<5;B++)f[S+5*B]=B+(2*S+3*B)%5*5;for(var w=1,T=0;T<24;T++){for(var E=0,I=0,O=0;O<7;O++){if(w&1){var R=(1<<O)-1;R<32?I^=1<<R:E^=1<<R-32}w&128?w=w<<1^113:w<<=1}g[T]=c.create(E,I)}})();var m=[];(function(){for(var S=0;S<25;S++)m[S]=c.create()})();var u=h.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var S=this._state=[],B=0;B<25;B++)S[B]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(S,B){for(var b=this._state,v=this.blockSize/2,x=0;x<v;x++){var w=S[B+2*x],T=S[B+2*x+1];w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var E=b[x];E.high^=T,E.low^=w}for(var I=0;I<24;I++){for(var O=0;O<5;O++){for(var R=0,k=0,D=0;D<5;D++){var E=b[O+5*D];R^=E.high,k^=E.low}var C=m[O];C.high=R,C.low=k}for(var O=0;O<5;O++)for(var L=m[(O+4)%5],p=m[(O+1)%5],A=p.high,_=p.low,R=L.high^(A<<1|_>>>31),k=L.low^(_<<1|A>>>31),D=0;D<5;D++){var E=b[O+5*D];E.high^=R,E.low^=k}for(var P=1;P<25;P++){var R,k,E=b[P],V=E.high,U=E.low,N=y[P];N<32?(R=V<<N|U>>>32-N,k=U<<N|V>>>32-N):(R=U<<N-32|V>>>64-N,k=V<<N-32|U>>>64-N);var F=m[f[P]];F.high=R,F.low=k}var H=m[0],z=b[0];H.high=z.high,H.low=z.low;for(var O=0;O<5;O++)for(var D=0;D<5;D++){var P=O+5*D,E=b[P],q=m[P],M=m[(O+1)%5+5*D],J=m[(O+2)%5+5*D];E.high=q.high^~M.high&J.high,E.low=q.low^~M.low&J.low}var E=b[0],W=g[I];E.high^=W.high,E.low^=W.low}},_doFinalize:function(){var S=this._data,B=S.words;this._nDataBytes*8;var b=S.sigBytes*8,v=this.blockSize*32;B[b>>>5]|=1<<24-b%32,B[(a.ceil((b+1)/v)*v>>>5)-1]|=128,S.sigBytes=B.length*4,this._process();for(var x=this._state,w=this.cfg.outputLength/8,T=w/8,E=[],I=0;I<T;I++){var O=x[I],R=O.high,k=O.low;R=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,E.push(k),E.push(R)}return new s.init(E,w)},clone:function(){for(var S=l.clone.call(this),B=S._state=this._state.slice(0),b=0;b<25;b++)B[b]=B[b].clone();return S}});r.SHA3=l._createHelper(u),r.HmacSHA3=l._createHmacHelper(u)}(Math),n.SHA3})}(to)),to.exports}var no={exports:{}},Hr;function K0(){return Hr||(Hr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,18 +64,18 @@ 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]),h=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]),g=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=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(D,E){for(var _=0;_<16;_++){var O=E+_,R=D[O];D[O]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var k=this._hash.words,T=g.words,C=m.words,I=c.words,x=h.words,w=y.words,L=f.words,P,V,U,N,F,H,z,q,M,J;H=P=k[0],z=V=k[1],q=U=k[2],M=N=k[3],J=F=k[4];for(var W,_=0;_<80;_+=1)W=P+D[E+I[_]]|0,_<16?W+=S(V,U,N)+T[0]:_<32?W+=B(V,U,N)+T[1]:_<48?W+=b(V,U,N)+T[2]:_<64?W+=v(V,U,N)+T[3]:W+=p(V,U,N)+T[4],W=W|0,W=A(W,w[_]),W=W+F|0,P=F,F=N,N=A(U,10),U=V,V=W,W=H+D[E+x[_]]|0,_<16?W+=p(z,q,M)+C[0]:_<32?W+=v(z,q,M)+C[1]:_<48?W+=b(z,q,M)+C[2]:_<64?W+=B(z,q,M)+C[3]:W+=S(z,q,M)+C[4],W=W|0,W=A(W,L[_]),W=W+J|0,H=J,J=M,M=A(q,10),q=z,z=W;W=k[1]+U+M|0,k[1]=k[2]+N+J|0,k[2]=k[3]+F+H|0,k[3]=k[4]+P+z|0,k[4]=k[0]+V+q|0,k[0]=W},_doFinalize:function(){var D=this._data,E=D.words,_=this._nDataBytes*8,O=D.sigBytes*8;E[O>>>5]|=128<<24-O%32,E[(O+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,D.sigBytes=(E.length+1)*4,this._process();for(var R=this._hash,k=R.words,T=0;T<5;T++){var C=k[T];k[T]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return R},clone:function(){var D=l.clone.call(this);return D._hash=this._hash.clone(),D}});function S(D,E,_){return D^E^_}function B(D,E,_){return D&E|~D&_}function b(D,E,_){return(D|~E)^_}function v(D,E,_){return D&_|E&~_}function p(D,E,_){return D^(E|~_)}function A(D,E){return D<<E|D>>>32-E}r.RIPEMD160=l._createHelper(u),r.HmacRIPEMD160=l._createHmacHelper(u)}(),n.RIPEMD160})}(no)),no.exports}var oo={exports:{}},Vr;function ao(){return Vr||(Vr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,h){c=this._hasher=new c.init,typeof h=="string"&&(h=l.parse(h));var y=c.blockSize,f=y*4;h.sigBytes>f&&(h=c.finalize(h)),h.clamp();for(var g=this._oKey=h.clone(),m=this._iKey=h.clone(),u=g.words,S=m.words,B=0;B<y;B++)u[B]^=1549556828,S[B]^=909522486;g.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 h=this._hasher,y=h.finalize(c);h.reset();var f=h.finalize(this._oKey.clone().concat(y));return f}})})()})}(oo)),oo.exports}var ro={exports:{}},Hr;function Us(){return Hr||(Hr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Zn(),ao())})(ue,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,h=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,f){for(var g=this.cfg,m=c.create(g.hasher,y),u=s.create(),S=s.create([1]),B=u.words,b=S.words,v=g.keySize,p=g.iterations;B.length<v;){var A=m.update(f).finalize(S);m.reset();for(var D=A.words,E=D.length,_=A,O=1;O<p;O++){_=m.finalize(_),m.reset();for(var R=_.words,k=0;k<E;k++)D[k]^=R[k]}u.concat(A),b[0]++}return u.sigBytes=v*4,u}});a.PBKDF2=function(y,f,g){return h.create(g).compute(y,f)}}(),n.PBKDF2})}(ro)),ro.exports}var io={exports:{}},Wr;function Dt(){return Wr||(Wr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Zn(),ao())})(ue,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(h){this.cfg=this.cfg.extend(h)},compute:function(h,y){for(var f,g=this.cfg,m=g.hasher.create(),u=s.create(),S=u.words,B=g.keySize,b=g.iterations;S.length<B;){f&&m.update(f),f=m.update(h).finalize(y),m.reset();for(var v=1;v<b;v++)f=m.finalize(f),m.reset();u.concat(f)}return u.sigBytes=B*4,u}});a.EvpKDF=function(h,y,f){return c.create(f).compute(h,y)}}(),n.EvpKDF})}(io)),io.exports}var lo={exports:{}},jr;function je(){return jr||(jr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Dt())})(ue,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 h=c.Base64,y=r.algo,f=y.EvpKDF,g=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(R,k){return this.create(this._ENC_XFORM_MODE,R,k)},createDecryptor:function(R,k){return this.create(this._DEC_XFORM_MODE,R,k)},init:function(R,k,T){this.cfg=this.cfg.extend(T),this._xformMode=R,this._key=k,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(R){return this._append(R),this._process()},finalize:function(R){R&&this._append(R);var k=this._doFinalize();return k},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function R(k){return typeof k=="string"?O:D}return function(k){return{encrypt:function(T,C,I){return R(C).encrypt(k,T,C,I)},decrypt:function(T,C,I){return R(C).decrypt(k,T,C,I)}}}}()});i.StreamCipher=g.extend({_doFinalize:function(){var R=this._process(!0);return R},blockSize:1});var m=r.mode={},u=i.BlockCipherMode=s.extend({createEncryptor:function(R,k){return this.Encryptor.create(R,k)},createDecryptor:function(R,k){return this.Decryptor.create(R,k)},init:function(R,k){this._cipher=R,this._iv=k}}),S=m.CBC=function(){var R=u.extend();R.Encryptor=R.extend({processBlock:function(T,C){var I=this._cipher,x=I.blockSize;k.call(this,T,C,x),I.encryptBlock(T,C),this._prevBlock=T.slice(C,C+x)}}),R.Decryptor=R.extend({processBlock:function(T,C){var I=this._cipher,x=I.blockSize,w=T.slice(C,C+x);I.decryptBlock(T,C),k.call(this,T,C,x),this._prevBlock=w}});function k(T,C,I){var x,w=this._iv;w?(x=w,this._iv=a):x=this._prevBlock;for(var L=0;L<I;L++)T[C+L]^=x[L]}return R}(),B=r.pad={},b=B.Pkcs7={pad:function(R,k){for(var T=k*4,C=T-R.sigBytes%T,I=C<<24|C<<16|C<<8|C,x=[],w=0;w<C;w+=4)x.push(I);var L=l.create(x,C);R.concat(L)},unpad:function(R){var k=R.words[R.sigBytes-1>>>2]&255;R.sigBytes-=k}};i.BlockCipher=g.extend({cfg:g.cfg.extend({mode:S,padding:b}),reset:function(){var R;g.reset.call(this);var k=this.cfg,T=k.iv,C=k.mode;this._xformMode==this._ENC_XFORM_MODE?R=C.createEncryptor:(R=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==R?this._mode.init(this,T&&T.words):(this._mode=R.call(C,this,T&&T.words),this._mode.__creator=R)},_doProcessBlock:function(R,k){this._mode.processBlock(R,k)},_doFinalize:function(){var R,k=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(k.pad(this._data,this.blockSize),R=this._process(!0)):(R=this._process(!0),k.unpad(R)),R},blockSize:128/32});var v=i.CipherParams=s.extend({init:function(R){this.mixIn(R)},toString:function(R){return(R||this.formatter).stringify(this)}}),p=r.format={},A=p.OpenSSL={stringify:function(R){var k,T=R.ciphertext,C=R.salt;return C?k=l.create([1398893684,1701076831]).concat(C).concat(T):k=T,k.toString(h)},parse:function(R){var k,T=h.parse(R),C=T.words;return C[0]==1398893684&&C[1]==1701076831&&(k=l.create(C.slice(2,4)),C.splice(0,4),T.sigBytes-=16),v.create({ciphertext:T,salt:k})}},D=i.SerializableCipher=s.extend({cfg:s.extend({format:A}),encrypt:function(R,k,T,C){C=this.cfg.extend(C);var I=R.createEncryptor(T,C),x=I.finalize(k),w=I.cfg;return v.create({ciphertext:x,key:T,iv:w.iv,algorithm:R,mode:w.mode,padding:w.padding,blockSize:R.blockSize,formatter:C.format})},decrypt:function(R,k,T,C){C=this.cfg.extend(C),k=this._parse(k,C.format);var I=R.createDecryptor(T,C).finalize(k.ciphertext);return I},_parse:function(R,k){return typeof R=="string"?k.parse(R,this):R}}),E=r.kdf={},_=E.OpenSSL={execute:function(R,k,T,C){C||(C=l.random(64/8));var I=f.create({keySize:k+T}).compute(R,C),x=l.create(I.words.slice(k),T*4);return I.sigBytes=k*4,v.create({key:I,iv:x,salt:C})}},O=i.PasswordBasedCipher=D.extend({cfg:D.cfg.extend({kdf:_}),encrypt:function(R,k,T,C){C=this.cfg.extend(C);var I=C.kdf.execute(T,R.keySize,R.ivSize);C.iv=I.iv;var x=D.encrypt.call(this,R,k,I.key,C);return x.mixIn(I),x},decrypt:function(R,k,T,C){C=this.cfg.extend(C),k=this._parse(k,C.format);var I=C.kdf.execute(T,R.keySize,R.ivSize,k.salt);C.iv=I.iv;var x=D.decrypt.call(this,R,k,I.key,C);return x}})}()})}(lo)),lo.exports}var so={exports:{}},Gr;function $s(){return Gr||(Gr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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,h=this._iv;h?(c=h.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var y=0;y<l;y++)i[s+y]^=c[y]}return a}(),n.mode.CFB})}(so)),so.exports}var co={exports:{}},Ur;function Ys(){return Ur||(Ur=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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,h=this._counter;c&&(h=this._counter=c.slice(0),this._iv=void 0);var y=h.slice(0);l.encryptBlock(y,0),h[d-1]=h[d-1]+1|0;for(var f=0;f<d;f++)i[s+f]^=y[f]}});return a.Decryptor=r,a}(),n.mode.CTR})}(co)),co.exports}var fo={exports:{}},$r;function Ks(){return $r||($r=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,function(n){/** @preserve
|
|
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]),h=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]),g=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=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(T,E){for(var I=0;I<16;I++){var O=E+I,R=T[O];T[O]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var k=this._hash.words,D=g.words,C=m.words,L=c.words,p=h.words,A=y.words,_=f.words,P,V,U,N,F,H,z,q,M,J;H=P=k[0],z=V=k[1],q=U=k[2],M=N=k[3],J=F=k[4];for(var W,I=0;I<80;I+=1)W=P+T[E+L[I]]|0,I<16?W+=S(V,U,N)+D[0]:I<32?W+=B(V,U,N)+D[1]:I<48?W+=b(V,U,N)+D[2]:I<64?W+=v(V,U,N)+D[3]:W+=x(V,U,N)+D[4],W=W|0,W=w(W,A[I]),W=W+F|0,P=F,F=N,N=w(U,10),U=V,V=W,W=H+T[E+p[I]]|0,I<16?W+=x(z,q,M)+C[0]:I<32?W+=v(z,q,M)+C[1]:I<48?W+=b(z,q,M)+C[2]:I<64?W+=B(z,q,M)+C[3]:W+=S(z,q,M)+C[4],W=W|0,W=w(W,_[I]),W=W+J|0,H=J,J=M,M=w(q,10),q=z,z=W;W=k[1]+U+M|0,k[1]=k[2]+N+J|0,k[2]=k[3]+F+H|0,k[3]=k[4]+P+z|0,k[4]=k[0]+V+q|0,k[0]=W},_doFinalize:function(){var T=this._data,E=T.words,I=this._nDataBytes*8,O=T.sigBytes*8;E[O>>>5]|=128<<24-O%32,E[(O+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,T.sigBytes=(E.length+1)*4,this._process();for(var R=this._hash,k=R.words,D=0;D<5;D++){var C=k[D];k[D]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return R},clone:function(){var T=l.clone.call(this);return T._hash=this._hash.clone(),T}});function S(T,E,I){return T^E^I}function B(T,E,I){return T&E|~T&I}function b(T,E,I){return(T|~E)^I}function v(T,E,I){return T&I|E&~I}function x(T,E,I){return T^(E|~I)}function w(T,E){return T<<E|T>>>32-E}r.RIPEMD160=l._createHelper(u),r.HmacRIPEMD160=l._createHmacHelper(u)}(),n.RIPEMD160})}(no)),no.exports}var oo={exports:{}},Wr;function ao(){return Wr||(Wr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,h){c=this._hasher=new c.init,typeof h=="string"&&(h=l.parse(h));var y=c.blockSize,f=y*4;h.sigBytes>f&&(h=c.finalize(h)),h.clamp();for(var g=this._oKey=h.clone(),m=this._iKey=h.clone(),u=g.words,S=m.words,B=0;B<y;B++)u[B]^=1549556828,S[B]^=909522486;g.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 h=this._hasher,y=h.finalize(c);h.reset();var f=h.finalize(this._oKey.clone().concat(y));return f}})})()})}(oo)),oo.exports}var ro={exports:{}},jr;function Z0(){return jr||(jr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Zn(),ao())})(ue,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,h=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,f){for(var g=this.cfg,m=c.create(g.hasher,y),u=s.create(),S=s.create([1]),B=u.words,b=S.words,v=g.keySize,x=g.iterations;B.length<v;){var w=m.update(f).finalize(S);m.reset();for(var T=w.words,E=T.length,I=w,O=1;O<x;O++){I=m.finalize(I),m.reset();for(var R=I.words,k=0;k<E;k++)T[k]^=R[k]}u.concat(w),b[0]++}return u.sigBytes=v*4,u}});a.PBKDF2=function(y,f,g){return h.create(g).compute(y,f)}}(),n.PBKDF2})}(ro)),ro.exports}var io={exports:{}},Gr;function Dt(){return Gr||(Gr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Zn(),ao())})(ue,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(h){this.cfg=this.cfg.extend(h)},compute:function(h,y){for(var f,g=this.cfg,m=g.hasher.create(),u=s.create(),S=u.words,B=g.keySize,b=g.iterations;S.length<B;){f&&m.update(f),f=m.update(h).finalize(y),m.reset();for(var v=1;v<b;v++)f=m.finalize(f),m.reset();u.concat(f)}return u.sigBytes=B*4,u}});a.EvpKDF=function(h,y,f){return c.create(f).compute(h,y)}}(),n.EvpKDF})}(io)),io.exports}var lo={exports:{}},Ur;function je(){return Ur||(Ur=1,function(e,o){(function(n,a,r){e.exports=a(be(),Dt())})(ue,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 h=c.Base64,y=r.algo,f=y.EvpKDF,g=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(R,k){return this.create(this._ENC_XFORM_MODE,R,k)},createDecryptor:function(R,k){return this.create(this._DEC_XFORM_MODE,R,k)},init:function(R,k,D){this.cfg=this.cfg.extend(D),this._xformMode=R,this._key=k,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(R){return this._append(R),this._process()},finalize:function(R){R&&this._append(R);var k=this._doFinalize();return k},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function R(k){return typeof k=="string"?O:T}return function(k){return{encrypt:function(D,C,L){return R(C).encrypt(k,D,C,L)},decrypt:function(D,C,L){return R(C).decrypt(k,D,C,L)}}}}()});i.StreamCipher=g.extend({_doFinalize:function(){var R=this._process(!0);return R},blockSize:1});var m=r.mode={},u=i.BlockCipherMode=s.extend({createEncryptor:function(R,k){return this.Encryptor.create(R,k)},createDecryptor:function(R,k){return this.Decryptor.create(R,k)},init:function(R,k){this._cipher=R,this._iv=k}}),S=m.CBC=function(){var R=u.extend();R.Encryptor=R.extend({processBlock:function(D,C){var L=this._cipher,p=L.blockSize;k.call(this,D,C,p),L.encryptBlock(D,C),this._prevBlock=D.slice(C,C+p)}}),R.Decryptor=R.extend({processBlock:function(D,C){var L=this._cipher,p=L.blockSize,A=D.slice(C,C+p);L.decryptBlock(D,C),k.call(this,D,C,p),this._prevBlock=A}});function k(D,C,L){var p,A=this._iv;A?(p=A,this._iv=a):p=this._prevBlock;for(var _=0;_<L;_++)D[C+_]^=p[_]}return R}(),B=r.pad={},b=B.Pkcs7={pad:function(R,k){for(var D=k*4,C=D-R.sigBytes%D,L=C<<24|C<<16|C<<8|C,p=[],A=0;A<C;A+=4)p.push(L);var _=l.create(p,C);R.concat(_)},unpad:function(R){var k=R.words[R.sigBytes-1>>>2]&255;R.sigBytes-=k}};i.BlockCipher=g.extend({cfg:g.cfg.extend({mode:S,padding:b}),reset:function(){var R;g.reset.call(this);var k=this.cfg,D=k.iv,C=k.mode;this._xformMode==this._ENC_XFORM_MODE?R=C.createEncryptor:(R=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==R?this._mode.init(this,D&&D.words):(this._mode=R.call(C,this,D&&D.words),this._mode.__creator=R)},_doProcessBlock:function(R,k){this._mode.processBlock(R,k)},_doFinalize:function(){var R,k=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(k.pad(this._data,this.blockSize),R=this._process(!0)):(R=this._process(!0),k.unpad(R)),R},blockSize:128/32});var v=i.CipherParams=s.extend({init:function(R){this.mixIn(R)},toString:function(R){return(R||this.formatter).stringify(this)}}),x=r.format={},w=x.OpenSSL={stringify:function(R){var k,D=R.ciphertext,C=R.salt;return C?k=l.create([1398893684,1701076831]).concat(C).concat(D):k=D,k.toString(h)},parse:function(R){var k,D=h.parse(R),C=D.words;return C[0]==1398893684&&C[1]==1701076831&&(k=l.create(C.slice(2,4)),C.splice(0,4),D.sigBytes-=16),v.create({ciphertext:D,salt:k})}},T=i.SerializableCipher=s.extend({cfg:s.extend({format:w}),encrypt:function(R,k,D,C){C=this.cfg.extend(C);var L=R.createEncryptor(D,C),p=L.finalize(k),A=L.cfg;return v.create({ciphertext:p,key:D,iv:A.iv,algorithm:R,mode:A.mode,padding:A.padding,blockSize:R.blockSize,formatter:C.format})},decrypt:function(R,k,D,C){C=this.cfg.extend(C),k=this._parse(k,C.format);var L=R.createDecryptor(D,C).finalize(k.ciphertext);return L},_parse:function(R,k){return typeof R=="string"?k.parse(R,this):R}}),E=r.kdf={},I=E.OpenSSL={execute:function(R,k,D,C){C||(C=l.random(64/8));var L=f.create({keySize:k+D}).compute(R,C),p=l.create(L.words.slice(k),D*4);return L.sigBytes=k*4,v.create({key:L,iv:p,salt:C})}},O=i.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:I}),encrypt:function(R,k,D,C){C=this.cfg.extend(C);var L=C.kdf.execute(D,R.keySize,R.ivSize);C.iv=L.iv;var p=T.encrypt.call(this,R,k,L.key,C);return p.mixIn(L),p},decrypt:function(R,k,D,C){C=this.cfg.extend(C),k=this._parse(k,C.format);var L=C.kdf.execute(D,R.keySize,R.ivSize,k.salt);C.iv=L.iv;var p=T.decrypt.call(this,R,k,L.key,C);return p}})}()})}(lo)),lo.exports}var so={exports:{}},$r;function Q0(){return $r||($r=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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,h=this._iv;h?(c=h.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var y=0;y<l;y++)i[s+y]^=c[y]}return a}(),n.mode.CFB})}(so)),so.exports}var co={exports:{}},Yr;function J0(){return Yr||(Yr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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,h=this._counter;c&&(h=this._counter=c.slice(0),this._iv=void 0);var y=h.slice(0);l.encryptBlock(y,0),h[d-1]=h[d-1]+1|0;for(var f=0;f<d;f++)i[s+f]^=y[f]}});return a.Decryptor=r,a}(),n.mode.CTR})}(co)),co.exports}var fo={exports:{}},Kr;function X0(){return Kr||(Kr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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,h=l&255;d===255?(d=0,c===255?(c=0,h===255?h=0:++h):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=h}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,h=c.blockSize,y=this._iv,f=this._counter;y&&(f=this._counter=y.slice(0),this._iv=void 0),i(f);var g=f.slice(0);c.encryptBlock(g,0);for(var m=0;m<h;m++)l[d+m]^=g[m]}});return a.Decryptor=s,a}(),n.mode.CTRGladman})}(fo)),fo.exports}var uo={exports:{}},Yr;function Zs(){return Yr||(Yr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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,h=this._keystream;c&&(h=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(h,0);for(var y=0;y<d;y++)i[s+y]^=h[y]}});return a.Decryptor=r,a}(),n.mode.OFB})}(uo)),uo.exports}var ho={exports:{}},Kr;function Qs(){return Kr||(Kr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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})}(ho)),ho.exports}var go={exports:{}},Zr;function Js(){return Zr||(Zr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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})}(go)),go.exports}var mo={exports:{}},Qr;function Xs(){return Qr||(Qr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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})}(mo)),mo.exports}var yo={exports:{}},Jr;function ec(){return Jr||(Jr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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})}(yo)),yo.exports}var xo={exports:{}},Xr;function tc(){return Xr||(Xr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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})}(xo)),xo.exports}var po={exports:{}},ei;function nc(){return ei||(ei=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(po)),po.exports}var bo={exports:{}},ti;function oc(){return ti||(ti=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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(h){return h.ciphertext.toString(d)},parse:function(h){var y=d.parse(h);return s.create({ciphertext:y})}}}(),n.format.Hex})}(bo)),bo.exports}var vo={exports:{}},ni;function ac(){return ni||(ni=1,function(e,o){(function(n,a,r){e.exports=a(be(),zt(),Pt(),Dt(),je())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],h=[],y=[],f=[],g=[],m=[],u=[],S=[];(function(){for(var v=[],p=0;p<256;p++)p<128?v[p]=p<<1:v[p]=p<<1^283;for(var A=0,D=0,p=0;p<256;p++){var E=D^D<<1^D<<2^D<<3^D<<4;E=E>>>8^E&255^99,l[A]=E,d[E]=A;var _=v[A],O=v[_],R=v[O],k=v[E]*257^E*16843008;c[A]=k<<24|k>>>8,h[A]=k<<16|k>>>16,y[A]=k<<8|k>>>24,f[A]=k;var k=R*16843009^O*65537^_*257^A*16843008;g[E]=k<<24|k>>>8,m[E]=k<<16|k>>>16,u[E]=k<<8|k>>>24,S[E]=k,A?(A=_^v[v[v[R^_]]],D^=v[v[D]]):A=D=1}})();var B=[0,1,2,4,8,16,32,64,128,27,54],b=s.AES=i.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var p=this._keyPriorReset=this._key,A=p.words,D=p.sigBytes/4,E=this._nRounds=D+6,_=(E+1)*4,O=this._keySchedule=[],R=0;R<_;R++)R<D?O[R]=A[R]:(v=O[R-1],R%D?D>6&&R%D==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^=B[R/D|0]<<24),O[R]=O[R-D]^v);for(var k=this._invKeySchedule=[],T=0;T<_;T++){var R=_-T;if(T%4)var v=O[R];else var v=O[R-4];T<4||R<=4?k[T]=v:k[T]=g[l[v>>>24]]^m[l[v>>>16&255]]^u[l[v>>>8&255]]^S[l[v&255]]}}},encryptBlock:function(v,p){this._doCryptBlock(v,p,this._keySchedule,c,h,y,f,l)},decryptBlock:function(v,p){var A=v[p+1];v[p+1]=v[p+3],v[p+3]=A,this._doCryptBlock(v,p,this._invKeySchedule,g,m,u,S,d);var A=v[p+1];v[p+1]=v[p+3],v[p+3]=A},_doCryptBlock:function(v,p,A,D,E,_,O,R){for(var k=this._nRounds,T=v[p]^A[0],C=v[p+1]^A[1],I=v[p+2]^A[2],x=v[p+3]^A[3],w=4,L=1;L<k;L++){var P=D[T>>>24]^E[C>>>16&255]^_[I>>>8&255]^O[x&255]^A[w++],V=D[C>>>24]^E[I>>>16&255]^_[x>>>8&255]^O[T&255]^A[w++],U=D[I>>>24]^E[x>>>16&255]^_[T>>>8&255]^O[C&255]^A[w++],N=D[x>>>24]^E[T>>>16&255]^_[C>>>8&255]^O[I&255]^A[w++];T=P,C=V,I=U,x=N}var P=(R[T>>>24]<<24|R[C>>>16&255]<<16|R[I>>>8&255]<<8|R[x&255])^A[w++],V=(R[C>>>24]<<24|R[I>>>16&255]<<16|R[x>>>8&255]<<8|R[T&255])^A[w++],U=(R[I>>>24]<<24|R[x>>>16&255]<<16|R[T>>>8&255]<<8|R[C&255])^A[w++],N=(R[x>>>24]<<24|R[T>>>16&255]<<16|R[C>>>8&255]<<8|R[I&255])^A[w++];v[p]=P,v[p+1]=V,v[p+2]=U,v[p+3]=N},keySize:256/32});a.AES=i._createHelper(b)}(),n.AES})}(vo)),vo.exports}var So={exports:{}},oi;function rc(){return oi||(oi=1,function(e,o){(function(n,a,r){e.exports=a(be(),zt(),Pt(),Dt(),je())})(ue,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],h=[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],g=l.DES=s.extend({_doReset:function(){for(var B=this._key,b=B.words,v=[],p=0;p<56;p++){var A=d[p]-1;v[p]=b[A>>>5]>>>31-A%32&1}for(var D=this._subKeys=[],E=0;E<16;E++){for(var _=D[E]=[],O=h[E],p=0;p<24;p++)_[p/6|0]|=v[(c[p]-1+O)%28]<<31-p%6,_[4+(p/6|0)]|=v[28+(c[p+24]-1+O)%28]<<31-p%6;_[0]=_[0]<<1|_[0]>>>31;for(var p=1;p<7;p++)_[p]=_[p]>>>(p-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var R=this._invSubKeys=[],p=0;p<16;p++)R[p]=D[15-p]},encryptBlock:function(B,b){this._doCryptBlock(B,b,this._subKeys)},decryptBlock:function(B,b){this._doCryptBlock(B,b,this._invSubKeys)},_doCryptBlock:function(B,b,v){this._lBlock=B[b],this._rBlock=B[b+1],m.call(this,4,252645135),m.call(this,16,65535),u.call(this,2,858993459),u.call(this,8,16711935),m.call(this,1,1431655765);for(var p=0;p<16;p++){for(var A=v[p],D=this._lBlock,E=this._rBlock,_=0,O=0;O<8;O++)_|=y[O][((E^A[O])&f[O])>>>0];this._lBlock=E,this._rBlock=D^_}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,m.call(this,1,1431655765),u.call(this,8,16711935),u.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),B[b]=this._lBlock,B[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(B,b){var v=(this._lBlock>>>B^this._rBlock)&b;this._rBlock^=v,this._lBlock^=v<<B}function u(B,b){var v=(this._rBlock>>>B^this._lBlock)&b;this._lBlock^=v,this._rBlock^=v<<B}a.DES=s._createHelper(g);var S=l.TripleDES=s.extend({_doReset:function(){var B=this._key,b=B.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=b.slice(0,2),p=b.length<4?b.slice(0,2):b.slice(2,4),A=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=g.createEncryptor(i.create(v)),this._des2=g.createEncryptor(i.create(p)),this._des3=g.createEncryptor(i.create(A))},encryptBlock:function(B,b){this._des1.encryptBlock(B,b),this._des2.decryptBlock(B,b),this._des3.encryptBlock(B,b)},decryptBlock:function(B,b){this._des3.decryptBlock(B,b),this._des2.encryptBlock(B,b),this._des1.decryptBlock(B,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(S)}(),n.TripleDES})}(So)),So.exports}var Co={exports:{}},ai;function ic(){return ai||(ai=1,function(e,o){(function(n,a,r){e.exports=a(be(),zt(),Pt(),Dt(),je())})(ue,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 h=this._key,y=h.words,f=h.sigBytes,g=this._S=[],m=0;m<256;m++)g[m]=m;for(var m=0,u=0;m<256;m++){var S=m%f,B=y[S>>>2]>>>24-S%4*8&255;u=(u+g[m]+B)%256;var b=g[m];g[m]=g[u],g[u]=b}this._i=this._j=0},_doProcessBlock:function(h,y){h[y]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var h=this._S,y=this._i,f=this._j,g=0,m=0;m<4;m++){y=(y+1)%256,f=(f+h[y])%256;var u=h[y];h[y]=h[f],h[f]=u,g|=h[(h[y]+h[f])%256]<<24-m*8}return this._i=y,this._j=f,g}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 h=this.cfg.drop;h>0;h--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),n.RC4})}(Co)),Co.exports}var wo={exports:{}},ri;function lc(){return ri||(ri=1,function(e,o){(function(n,a,r){e.exports=a(be(),zt(),Pt(),Dt(),je())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],h=s.Rabbit=i.extend({_doReset:function(){for(var f=this._key.words,g=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 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],S=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++)S[m]^=u[m+4&7];if(g){var B=g.words,b=B[0],v=B[1],p=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,A=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,D=p>>>16|A&4294901760,E=A<<16|p&65535;S[0]^=p,S[1]^=D,S[2]^=A,S[3]^=E,S[4]^=p,S[5]^=D,S[6]^=A,S[7]^=E;for(var m=0;m<4;m++)y.call(this)}},_doProcessBlock:function(f,g){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 u=0;u<4;u++)l[u]=(l[u]<<8|l[u]>>>24)&16711935|(l[u]<<24|l[u]>>>8)&4278255360,f[g+u]^=l[u]},blockSize:128/32,ivSize:64/32});function y(){for(var f=this._X,g=this._C,m=0;m<8;m++)d[m]=g[m];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var u=f[m]+g[m],S=u&65535,B=u>>>16,b=((S*S>>>17)+S*B>>>15)+B*B,v=((u&4294901760)*u|0)+((u&65535)*u|0);c[m]=b^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=i._createHelper(h)}(),n.Rabbit})}(wo)),wo.exports}var Ao={exports:{}},ii;function sc(){return ii||(ii=1,function(e,o){(function(n,a,r){e.exports=a(be(),zt(),Pt(),Dt(),je())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],h=s.RabbitLegacy=i.extend({_doReset:function(){var f=this._key.words,g=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],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 S=0;S<4;S++)y.call(this);for(var S=0;S<8;S++)u[S]^=m[S+4&7];if(g){var B=g.words,b=B[0],v=B[1],p=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,A=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,D=p>>>16|A&4294901760,E=A<<16|p&65535;u[0]^=p,u[1]^=D,u[2]^=A,u[3]^=E,u[4]^=p,u[5]^=D,u[6]^=A,u[7]^=E;for(var S=0;S<4;S++)y.call(this)}},_doProcessBlock:function(f,g){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 u=0;u<4;u++)l[u]=(l[u]<<8|l[u]>>>24)&16711935|(l[u]<<24|l[u]>>>8)&4278255360,f[g+u]^=l[u]},blockSize:128/32,ivSize:64/32});function y(){for(var f=this._X,g=this._C,m=0;m<8;m++)d[m]=g[m];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var u=f[m]+g[m],S=u&65535,B=u>>>16,b=((S*S>>>17)+S*B>>>15)+B*B,v=((u&4294901760)*u|0)+((u&65535)*u|0);c[m]=b^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=i._createHelper(h)}(),n.RabbitLegacy})}(Ao)),Ao.exports}(function(e,o){(function(n,a,r){e.exports=a(be(),fn(),Ps(),qs(),zt(),Vs(),Pt(),Zn(),Or(),Hs(),Mr(),Ws(),js(),Gs(),ao(),Us(),Dt(),je(),$s(),Ys(),Ks(),Zs(),Qs(),Js(),Xs(),ec(),tc(),nc(),oc(),ac(),rc(),ic(),lc(),sc())})(ue,function(n){return n})})(Ar);var cc=Ar.exports;const et=wr(cc);var dc="0123456789abcdefghijklmnopqrstuvwxyz";function mt(e){return dc.charAt(e)}function fc(e,o){return e&o}function un(e,o){return e|o}function li(e,o){return e^o}function si(e,o){return e&~o}function uc(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 hc(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ci="=";function hn(e){var o,n,a="";for(o=0;o+3<=e.length;o+=3)n=parseInt(e.substring(o,o+3),16),a+=qt.charAt(n>>6)+qt.charAt(n&63);for(o+1==e.length?(n=parseInt(e.substring(o,o+1),16),a+=qt.charAt(n<<2)):o+2==e.length&&(n=parseInt(e.substring(o,o+2),16),a+=qt.charAt(n>>2)+qt.charAt((n&3)<<4));(a.length&3)>0;)a+=ci;return a}function di(e){var o="",n,a=0,r=0;for(n=0;n<e.length&&e.charAt(n)!=ci;++n){var i=qt.indexOf(e.charAt(n));i<0||(a==0?(o+=mt(i>>2),r=i&3,a=1):a==1?(o+=mt(r<<2|i>>4),r=i&15,a=2):a==2?(o+=mt(r),o+=mt(i>>2),r=i&3,a=3):(o+=mt(r<<2|i>>4),o+=mt(i&15),a=0))}return a==1&&(o+=mt(r<<2)),o}var Vt,gc={decode:function(e){var o;if(Vt===void 0){var n="0123456789ABCDEF",a=` \f
|
|
72
|
-
\r \u2028\u2029`;for(
|
|
73
|
-
\r \u2028\u2029`;for(Rt=Object.create(null),o=0;o<64;++o)Rt[n.charAt(o)]=o;for(Rt["-"]=62,Rt._=63,o=0;o<a.length;++o)Rt[a.charAt(o)]=-1}var r=[],i=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=Rt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);i|=l,++s>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=i&255,i=0,s=0):i<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255;break}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var o=ko.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 ko.decode(e)}},
|
|
74
|
-
`;break;default:r+=" "}return r},e.prototype.isASCII=function(o,n){for(var a=o;a<n;++a){var r=this.get(a);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(o,n){for(var a="",r=o;r<n;++r)a+=String.fromCharCode(this.get(r));return a},e.prototype.parseStringUTF=function(o,n){for(var a="",r=o;r<n;){var i=this.get(r++);i<128?a+=String.fromCharCode(i):i>191&&i<224?a+=String.fromCharCode((i&31)<<6|this.get(r++)&63):a+=String.fromCharCode((i&15)<<12|(this.get(r++)&63)<<6|this.get(r++)&63)}return a},e.prototype.parseStringBMP=function(o,n){for(var a="",r,i,s=o;s<n;)r=this.get(s++),i=this.get(s++),a+=String.fromCharCode(r<<8|i);return a},e.prototype.parseTime=function(o,n,a){var r=this.parseStringISO(o,n),i=(a?
|
|
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,h=l&255;d===255?(d=0,c===255?(c=0,h===255?h=0:++h):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=h}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,h=c.blockSize,y=this._iv,f=this._counter;y&&(f=this._counter=y.slice(0),this._iv=void 0),i(f);var g=f.slice(0);c.encryptBlock(g,0);for(var m=0;m<h;m++)l[d+m]^=g[m]}});return a.Decryptor=s,a}(),n.mode.CTRGladman})}(fo)),fo.exports}var uo={exports:{}},Zr;function ec(){return Zr||(Zr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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,h=this._keystream;c&&(h=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(h,0);for(var y=0;y<d;y++)i[s+y]^=h[y]}});return a.Decryptor=r,a}(),n.mode.OFB})}(uo)),uo.exports}var ho={exports:{}},Qr;function tc(){return Qr||(Qr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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})}(ho)),ho.exports}var go={exports:{}},Jr;function nc(){return Jr||(Jr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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})}(go)),go.exports}var mo={exports:{}},Xr;function oc(){return Xr||(Xr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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})}(mo)),mo.exports}var yo={exports:{}},ei;function ac(){return ei||(ei=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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})}(yo)),yo.exports}var xo={exports:{}},ti;function rc(){return ti||(ti=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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})}(xo)),xo.exports}var po={exports:{}},ni;function ic(){return ni||(ni=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(po)),po.exports}var bo={exports:{}},oi;function lc(){return oi||(oi=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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(h){return h.ciphertext.toString(d)},parse:function(h){var y=d.parse(h);return s.create({ciphertext:y})}}}(),n.format.Hex})}(bo)),bo.exports}var vo={exports:{}},ai;function sc(){return ai||(ai=1,function(e,o){(function(n,a,r){e.exports=a(be(),Pt(),qt(),Dt(),je())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],h=[],y=[],f=[],g=[],m=[],u=[],S=[];(function(){for(var v=[],x=0;x<256;x++)x<128?v[x]=x<<1:v[x]=x<<1^283;for(var w=0,T=0,x=0;x<256;x++){var E=T^T<<1^T<<2^T<<3^T<<4;E=E>>>8^E&255^99,l[w]=E,d[E]=w;var I=v[w],O=v[I],R=v[O],k=v[E]*257^E*16843008;c[w]=k<<24|k>>>8,h[w]=k<<16|k>>>16,y[w]=k<<8|k>>>24,f[w]=k;var k=R*16843009^O*65537^I*257^w*16843008;g[E]=k<<24|k>>>8,m[E]=k<<16|k>>>16,u[E]=k<<8|k>>>24,S[E]=k,w?(w=I^v[v[v[R^I]]],T^=v[v[T]]):w=T=1}})();var B=[0,1,2,4,8,16,32,64,128,27,54],b=s.AES=i.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,w=x.words,T=x.sigBytes/4,E=this._nRounds=T+6,I=(E+1)*4,O=this._keySchedule=[],R=0;R<I;R++)R<T?O[R]=w[R]:(v=O[R-1],R%T?T>6&&R%T==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^=B[R/T|0]<<24),O[R]=O[R-T]^v);for(var k=this._invKeySchedule=[],D=0;D<I;D++){var R=I-D;if(D%4)var v=O[R];else var v=O[R-4];D<4||R<=4?k[D]=v:k[D]=g[l[v>>>24]]^m[l[v>>>16&255]]^u[l[v>>>8&255]]^S[l[v&255]]}}},encryptBlock:function(v,x){this._doCryptBlock(v,x,this._keySchedule,c,h,y,f,l)},decryptBlock:function(v,x){var w=v[x+1];v[x+1]=v[x+3],v[x+3]=w,this._doCryptBlock(v,x,this._invKeySchedule,g,m,u,S,d);var w=v[x+1];v[x+1]=v[x+3],v[x+3]=w},_doCryptBlock:function(v,x,w,T,E,I,O,R){for(var k=this._nRounds,D=v[x]^w[0],C=v[x+1]^w[1],L=v[x+2]^w[2],p=v[x+3]^w[3],A=4,_=1;_<k;_++){var P=T[D>>>24]^E[C>>>16&255]^I[L>>>8&255]^O[p&255]^w[A++],V=T[C>>>24]^E[L>>>16&255]^I[p>>>8&255]^O[D&255]^w[A++],U=T[L>>>24]^E[p>>>16&255]^I[D>>>8&255]^O[C&255]^w[A++],N=T[p>>>24]^E[D>>>16&255]^I[C>>>8&255]^O[L&255]^w[A++];D=P,C=V,L=U,p=N}var P=(R[D>>>24]<<24|R[C>>>16&255]<<16|R[L>>>8&255]<<8|R[p&255])^w[A++],V=(R[C>>>24]<<24|R[L>>>16&255]<<16|R[p>>>8&255]<<8|R[D&255])^w[A++],U=(R[L>>>24]<<24|R[p>>>16&255]<<16|R[D>>>8&255]<<8|R[C&255])^w[A++],N=(R[p>>>24]<<24|R[D>>>16&255]<<16|R[C>>>8&255]<<8|R[L&255])^w[A++];v[x]=P,v[x+1]=V,v[x+2]=U,v[x+3]=N},keySize:256/32});a.AES=i._createHelper(b)}(),n.AES})}(vo)),vo.exports}var So={exports:{}},ri;function cc(){return ri||(ri=1,function(e,o){(function(n,a,r){e.exports=a(be(),Pt(),qt(),Dt(),je())})(ue,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],h=[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],g=l.DES=s.extend({_doReset:function(){for(var B=this._key,b=B.words,v=[],x=0;x<56;x++){var w=d[x]-1;v[x]=b[w>>>5]>>>31-w%32&1}for(var T=this._subKeys=[],E=0;E<16;E++){for(var I=T[E]=[],O=h[E],x=0;x<24;x++)I[x/6|0]|=v[(c[x]-1+O)%28]<<31-x%6,I[4+(x/6|0)]|=v[28+(c[x+24]-1+O)%28]<<31-x%6;I[0]=I[0]<<1|I[0]>>>31;for(var x=1;x<7;x++)I[x]=I[x]>>>(x-1)*4+3;I[7]=I[7]<<5|I[7]>>>27}for(var R=this._invSubKeys=[],x=0;x<16;x++)R[x]=T[15-x]},encryptBlock:function(B,b){this._doCryptBlock(B,b,this._subKeys)},decryptBlock:function(B,b){this._doCryptBlock(B,b,this._invSubKeys)},_doCryptBlock:function(B,b,v){this._lBlock=B[b],this._rBlock=B[b+1],m.call(this,4,252645135),m.call(this,16,65535),u.call(this,2,858993459),u.call(this,8,16711935),m.call(this,1,1431655765);for(var x=0;x<16;x++){for(var w=v[x],T=this._lBlock,E=this._rBlock,I=0,O=0;O<8;O++)I|=y[O][((E^w[O])&f[O])>>>0];this._lBlock=E,this._rBlock=T^I}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,m.call(this,1,1431655765),u.call(this,8,16711935),u.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),B[b]=this._lBlock,B[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(B,b){var v=(this._lBlock>>>B^this._rBlock)&b;this._rBlock^=v,this._lBlock^=v<<B}function u(B,b){var v=(this._rBlock>>>B^this._lBlock)&b;this._lBlock^=v,this._rBlock^=v<<B}a.DES=s._createHelper(g);var S=l.TripleDES=s.extend({_doReset:function(){var B=this._key,b=B.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=b.slice(0,2),x=b.length<4?b.slice(0,2):b.slice(2,4),w=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=g.createEncryptor(i.create(v)),this._des2=g.createEncryptor(i.create(x)),this._des3=g.createEncryptor(i.create(w))},encryptBlock:function(B,b){this._des1.encryptBlock(B,b),this._des2.decryptBlock(B,b),this._des3.encryptBlock(B,b)},decryptBlock:function(B,b){this._des3.decryptBlock(B,b),this._des2.encryptBlock(B,b),this._des1.decryptBlock(B,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(S)}(),n.TripleDES})}(So)),So.exports}var Co={exports:{}},ii;function dc(){return ii||(ii=1,function(e,o){(function(n,a,r){e.exports=a(be(),Pt(),qt(),Dt(),je())})(ue,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 h=this._key,y=h.words,f=h.sigBytes,g=this._S=[],m=0;m<256;m++)g[m]=m;for(var m=0,u=0;m<256;m++){var S=m%f,B=y[S>>>2]>>>24-S%4*8&255;u=(u+g[m]+B)%256;var b=g[m];g[m]=g[u],g[u]=b}this._i=this._j=0},_doProcessBlock:function(h,y){h[y]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var h=this._S,y=this._i,f=this._j,g=0,m=0;m<4;m++){y=(y+1)%256,f=(f+h[y])%256;var u=h[y];h[y]=h[f],h[f]=u,g|=h[(h[y]+h[f])%256]<<24-m*8}return this._i=y,this._j=f,g}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 h=this.cfg.drop;h>0;h--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),n.RC4})}(Co)),Co.exports}var wo={exports:{}},li;function fc(){return li||(li=1,function(e,o){(function(n,a,r){e.exports=a(be(),Pt(),qt(),Dt(),je())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],h=s.Rabbit=i.extend({_doReset:function(){for(var f=this._key.words,g=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 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],S=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++)S[m]^=u[m+4&7];if(g){var B=g.words,b=B[0],v=B[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,T=x>>>16|w&4294901760,E=w<<16|x&65535;S[0]^=x,S[1]^=T,S[2]^=w,S[3]^=E,S[4]^=x,S[5]^=T,S[6]^=w,S[7]^=E;for(var m=0;m<4;m++)y.call(this)}},_doProcessBlock:function(f,g){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 u=0;u<4;u++)l[u]=(l[u]<<8|l[u]>>>24)&16711935|(l[u]<<24|l[u]>>>8)&4278255360,f[g+u]^=l[u]},blockSize:128/32,ivSize:64/32});function y(){for(var f=this._X,g=this._C,m=0;m<8;m++)d[m]=g[m];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var u=f[m]+g[m],S=u&65535,B=u>>>16,b=((S*S>>>17)+S*B>>>15)+B*B,v=((u&4294901760)*u|0)+((u&65535)*u|0);c[m]=b^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=i._createHelper(h)}(),n.Rabbit})}(wo)),wo.exports}var Ao={exports:{}},si;function uc(){return si||(si=1,function(e,o){(function(n,a,r){e.exports=a(be(),Pt(),qt(),Dt(),je())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],h=s.RabbitLegacy=i.extend({_doReset:function(){var f=this._key.words,g=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],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 S=0;S<4;S++)y.call(this);for(var S=0;S<8;S++)u[S]^=m[S+4&7];if(g){var B=g.words,b=B[0],v=B[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,T=x>>>16|w&4294901760,E=w<<16|x&65535;u[0]^=x,u[1]^=T,u[2]^=w,u[3]^=E,u[4]^=x,u[5]^=T,u[6]^=w,u[7]^=E;for(var S=0;S<4;S++)y.call(this)}},_doProcessBlock:function(f,g){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 u=0;u<4;u++)l[u]=(l[u]<<8|l[u]>>>24)&16711935|(l[u]<<24|l[u]>>>8)&4278255360,f[g+u]^=l[u]},blockSize:128/32,ivSize:64/32});function y(){for(var f=this._X,g=this._C,m=0;m<8;m++)d[m]=g[m];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var u=f[m]+g[m],S=u&65535,B=u>>>16,b=((S*S>>>17)+S*B>>>15)+B*B,v=((u&4294901760)*u|0)+((u&65535)*u|0);c[m]=b^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=i._createHelper(h)}(),n.RabbitLegacy})}(Ao)),Ao.exports}(function(e,o){(function(n,a,r){e.exports=a(be(),fn(),W0(),j0(),Pt(),G0(),qt(),Zn(),Fr(),U0(),Pr(),$0(),Y0(),K0(),ao(),Z0(),Dt(),je(),Q0(),J0(),X0(),ec(),tc(),nc(),oc(),ac(),rc(),ic(),lc(),sc(),cc(),dc(),fc(),uc())})(ue,function(n){return n})})(Tr);var hc=Tr.exports;const et=kr(hc);var gc="0123456789abcdefghijklmnopqrstuvwxyz";function yt(e){return gc.charAt(e)}function mc(e,o){return e&o}function un(e,o){return e|o}function ci(e,o){return e^o}function di(e,o){return e&~o}function yc(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 xc(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Vt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fi="=";function hn(e){var o,n,a="";for(o=0;o+3<=e.length;o+=3)n=parseInt(e.substring(o,o+3),16),a+=Vt.charAt(n>>6)+Vt.charAt(n&63);for(o+1==e.length?(n=parseInt(e.substring(o,o+1),16),a+=Vt.charAt(n<<2)):o+2==e.length&&(n=parseInt(e.substring(o,o+2),16),a+=Vt.charAt(n>>2)+Vt.charAt((n&3)<<4));(a.length&3)>0;)a+=fi;return a}function ui(e){var o="",n,a=0,r=0;for(n=0;n<e.length&&e.charAt(n)!=fi;++n){var i=Vt.indexOf(e.charAt(n));i<0||(a==0?(o+=yt(i>>2),r=i&3,a=1):a==1?(o+=yt(r<<2|i>>4),r=i&15,a=2):a==2?(o+=yt(r),o+=yt(i>>2),r=i&3,a=3):(o+=yt(r<<2|i>>4),o+=yt(i&15),a=0))}return a==1&&(o+=yt(r<<2)),o}var Ht,pc={decode:function(e){var o;if(Ht===void 0){var n="0123456789ABCDEF",a=` \f
|
|
72
|
+
\r \u2028\u2029`;for(Ht={},o=0;o<16;++o)Ht[n.charAt(o)]=o;for(n=n.toLowerCase(),o=10;o<16;++o)Ht[n.charAt(o)]=o;for(o=0;o<a.length;++o)Ht[a.charAt(o)]=-1}var r=[],i=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=Ht[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);i|=l,++s>=2?(r[r.length]=i,i=0,s=0):i<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},Rt,ko={decode:function(e){var o;if(Rt===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=`= \f
|
|
73
|
+
\r \u2028\u2029`;for(Rt=Object.create(null),o=0;o<64;++o)Rt[n.charAt(o)]=o;for(Rt["-"]=62,Rt._=63,o=0;o<a.length;++o)Rt[a.charAt(o)]=-1}var r=[],i=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=Rt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);i|=l,++s>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=i&255,i=0,s=0):i<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255;break}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var o=ko.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 ko.decode(e)}},Wt=1e13,nn=function(){function e(o){this.buf=[+o||0]}return e.prototype.mulAdd=function(o,n){var a=this.buf,r=a.length,i,s;for(i=0;i<r;++i)s=a[i]*o+n,s<Wt?n=0:(n=0|s/Wt,s-=n*Wt),a[i]=s;n>0&&(a[i]=n)},e.prototype.sub=function(o){var n=this.buf,a=n.length,r,i;for(r=0;r<a;++r)i=n[r]-o,i<0?(i+=Wt,o=1):o=0,n[r]=i;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(),r=n.length-2;r>=0;--r)a+=(Wt+n[r]).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*Wt+o[a];return n},e.prototype.simplify=function(){var o=this.buf;return o.length==1?o[0]:this},e}(),hi="…",bc=/^(\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)?)?$/,vc=/^(\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 jt(e,o){return e.length>o&&(e=e.substring(0,o)+hi),e}var To=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 r="",i=o;i<n;++i)if(r+=this.hexByte(this.get(i)),a!==!0)switch(i&15){case 7:r+=" ";break;case 15:r+=`
|
|
74
|
+
`;break;default:r+=" "}return r},e.prototype.isASCII=function(o,n){for(var a=o;a<n;++a){var r=this.get(a);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(o,n){for(var a="",r=o;r<n;++r)a+=String.fromCharCode(this.get(r));return a},e.prototype.parseStringUTF=function(o,n){for(var a="",r=o;r<n;){var i=this.get(r++);i<128?a+=String.fromCharCode(i):i>191&&i<224?a+=String.fromCharCode((i&31)<<6|this.get(r++)&63):a+=String.fromCharCode((i&15)<<12|(this.get(r++)&63)<<6|this.get(r++)&63)}return a},e.prototype.parseStringBMP=function(o,n){for(var a="",r,i,s=o;s<n;)r=this.get(s++),i=this.get(s++),a+=String.fromCharCode(r<<8|i);return a},e.prototype.parseTime=function(o,n,a){var r=this.parseStringISO(o,n),i=(a?bc:vc).exec(r);return i?(a&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC",i[8]!="Z"&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(o,n){for(var a=this.get(o),r=a>127,i=r?255:0,s,l="";a==i&&++o<n;)a=this.get(o);if(s=n-o,s===0)return r?-1:0;if(s>4){for(l=a,s<<=3;!((+l^i)&128);)l=+l<<1,--s;l="("+s+` bit)
|
|
75
75
|
`}r&&(a=a-256);for(var d=new nn(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 r=this.get(o),i=(n-o-1<<3)-r,s="("+i+` bit)
|
|
76
|
-
`,l="",d=o+1;d<n;++d){for(var c=this.get(d),h=d==n-1?r:0,y=7;y>=h;--y)l+=c>>y&1?"1":"0";if(l.length>a)return s+
|
|
77
|
-
`;a/=2,r>a&&(n=o+a);for(var s=o;s<n;++s)i+=this.hexByte(this.get(s));return r>a&&(i+=
|
|
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 To?n=o:n=new To(o,0);var a=new To(n),r=new ui(n),i=e.decodeLength(n),s=n.pos,l=s-a.pos,d=null,c=function(){var y=[];if(i!==null){for(var f=s+i;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 g=e.decode(n);if(g.tag.isEOC())break;y[y.length]=g}i=s-n.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return y};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 h=0;h<d.length;++h)if(d[h].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}(),ui=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 nn;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}(),St,pc=0xdeadbeefcafe,hi=(pc&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],bc=(1<<26)/Ye[Ye.length-1],fe=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=mt(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+=mt(r));return i?s:"0"},e.prototype.negate=function(){var o=he();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)+mn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var n=he();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 gi(n):a=new mi(n),this.exp(o,a)},e.prototype.clone=function(){var o=he();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=he();return this.bitwiseTo(o,fc,n),n},e.prototype.or=function(o){var n=he();return this.bitwiseTo(o,un,n),n},e.prototype.xor=function(o){var n=he();return this.bitwiseTo(o,li,n),n},e.prototype.andNot=function(o){var n=he();return this.bitwiseTo(o,si,n),n},e.prototype.not=function(){for(var o=he(),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=he();return o<0?this.rShiftTo(-o,n):this.lShiftTo(o,n),n},e.prototype.shiftRight=function(o){var n=he();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+uc(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+=hc(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,un)},e.prototype.clearBit=function(o){return this.changeBit(o,si)},e.prototype.flipBit=function(o){return this.changeBit(o,li)},e.prototype.add=function(o){var n=he();return this.addTo(o,n),n},e.prototype.subtract=function(o){var n=he();return this.subTo(o,n),n},e.prototype.multiply=function(o){var n=he();return this.multiplyTo(o,n),n},e.prototype.divide=function(o){var n=he();return this.divRemTo(o,n,null),n},e.prototype.remainder=function(o){var n=he();return this.divRemTo(o,null,n),n},e.prototype.divideAndRemainder=function(o){var n=he(),a=he();return this.divRemTo(o,n,a),[n,a]},e.prototype.modPow=function(o,n){var a=o.bitLength(),r,i=Ct(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 gi(n):n.isEven()?s=new Sc(n):s=new mi(n);var l=[],d=3,c=r-1,h=(1<<r)-1;if(l[1]=s.convert(this),r>1){var y=he();for(s.sqrTo(l[1],y);d<=h;)l[d]=he(),s.mulTo(y,l[d-2],l[d]),d+=2}var f=o.t-1,g,m=!0,u=he(),S;for(a=mn(o[f])-1;f>=0;){for(a>=c?g=o[f]>>a-c&h:(g=(o[f]&(1<<a+1)-1)<<c-a,f>0&&(g|=o[f-1]>>this.DB+a-c)),d=r;!(g&1);)g>>=1,--d;if((a-=d)<0&&(a+=this.DB,--f),m)l[g].copyTo(i),m=!1;else{for(;d>1;)s.sqrTo(i,u),s.sqrTo(u,i),d-=2;d>0?s.sqrTo(i,u):(S=i,i=u,u=S),s.mulTo(u,l[g],i)}for(;f>=0&&!(o[f]&1<<a);)s.sqrTo(i,u),S=i,i=u,u=S,--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=Ct(1),s=Ct(0),l=Ct(0),d=Ct(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 vc)},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<bc;)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:xi(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=he());var s=he(),l=this.s,d=o.s,c=this.DB-mn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var h=s.t,y=s[h-1];if(y!=0){var f=y*(1<<this.F1)+(h>1?s[h-2]>>this.F2:0),g=this.FV/f,m=(1<<this.F1)/f,u=1<<this.F2,S=a.t,B=S-h,b=n??he();for(s.dlShiftTo(B,b),a.compareTo(b)>=0&&(a[a.t++]=1,a.subTo(b,a)),e.ONE.dlShiftTo(h,b),b.subTo(s,s);s.t<h;)s[s.t++]=0;for(;--B>=0;){var v=a[--S]==y?this.DM:Math.floor(a[S]*g+(a[S-1]+u)*m);if((a[S]+=s.am(0,v,a,B,0,h))<v)for(s.dlShiftTo(B,b),a.subTo(b,a);a[S]<--v;)a.subTo(b,a)}n!=null&&(a.drShiftTo(h,n),l!=d&&e.ZERO.subTo(n,n)),a.t=h,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=he(),r=he(),i=n.convert(this),s=mn(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=Ct(a),i=he(),s=he(),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=xi(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),un,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=he(),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=he();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),un,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}(),vc=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}(),gi=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}(),mi=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=he();return o.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),o.s<0&&n.compareTo(fe.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(o){var n=he();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}(),Sc=function(){function e(o){this.m=o,this.r2=he(),this.q3=he(),fe.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=he();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 he(){return new fe(null)}function Ne(e,o){return new fe(e,o)}var yi=typeof navigator<"u";yi&&hi&&navigator.appName=="Microsoft Internet Explorer"?(fe.prototype.am=function(o,n,a,r,i,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,h=this[o++]>>15,y=d*c+h*l;c=l*c+((y&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(y>>>15)+d*h+(i>>>30),a[r++]=c&1073741823}return i},St=30):yi&&hi&&navigator.appName!="Netscape"?(fe.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},St=26):(fe.prototype.am=function(o,n,a,r,i,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,h=this[o++]>>14,y=d*c+h*l;c=l*c+((y&16383)<<14)+a[r]+i,i=(c>>28)+(y>>14)+d*h,a[r++]=c&268435455}return i},St=28),fe.prototype.DB=St,fe.prototype.DM=(1<<St)-1,fe.prototype.DV=1<<St;var Bo=52;fe.prototype.FV=Math.pow(2,Bo),fe.prototype.F1=Bo-St,fe.prototype.F2=2*St-Bo;var gn=[],jt,rt;for(jt="0".charCodeAt(0),rt=0;rt<=9;++rt)gn[jt++]=rt;for(jt="a".charCodeAt(0),rt=10;rt<36;++rt)gn[jt++]=rt;for(jt="A".charCodeAt(0),rt=10;rt<36;++rt)gn[jt++]=rt;function xi(e,o){var n=gn[e.charCodeAt(o)];return n??-1}function Ct(e){var o=he();return o.fromInt(e),o}function mn(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}fe.ZERO=Ct(0),fe.ONE=Ct(1);var Cc=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 wc(){return new Cc}var pi=256,yn,wt=null,ct;if(wt==null){wt=[],ct=0;var xn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Eo=new Uint32Array(256);for(window.crypto.getRandomValues(Eo),xn=0;xn<Eo.length;++xn)wt[ct++]=Eo[xn]&255}var pn=0,bn=function(e){if(pn=pn||0,pn>=256||ct>=pi){window.removeEventListener?window.removeEventListener("mousemove",bn,!1):window.detachEvent&&window.detachEvent("onmousemove",bn);return}try{var o=e.x+e.y;wt[ct++]=o&255,pn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",bn,!1):window.attachEvent&&window.attachEvent("onmousemove",bn))}function Ac(){if(yn==null){for(yn=wc();ct<pi;){var e=Math.floor(65536*Math.random());wt[ct++]=e&255}for(yn.init(wt),ct=0;ct<wt.length;++ct)wt[ct]=0;ct=0}return yn.next()}var Do=function(){function e(){}return e.prototype.nextBytes=function(o){for(var n=0;n<o.length;++n)o[n]=Ac()},e}();function kc(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 Tc(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 Do,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 fe(n)}var Bc=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=Tc(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 Do,r=o>>1;this.e=parseInt(n,16);for(var i=new fe(n,16);;){for(;this.p=new fe(o-r,1,a),!(this.p.subtract(fe.ONE).gcd(i).compareTo(fe.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new fe(r,1,a),!(this.q.subtract(fe.ONE).gcd(i).compareTo(fe.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(fe.ONE),d=this.q.subtract(fe.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(fe.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:Ec(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,n,a){var r=new Do,i=o>>1;this.e=parseInt(n,16);var s=new fe(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 g=l.p.subtract(fe.ONE),m=l.q.subtract(fe.ONE),u=g.multiply(m);u.gcd(s).compareTo(fe.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(u),l.dmp1=l.d.mod(g),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},h=function(){l.q=he(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(fe.ONE).gcda(s,function(f){f.compareTo(fe.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(h,0)})})},y=function(){l.p=he(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(fe.ONE).gcda(s,function(f){f.compareTo(fe.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(h,0):setTimeout(y,0)})})};setTimeout(y,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var r=Dc(a),i=r+n(o).toString(),s=kc(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=Rc(s);return l==a(o).toString()},e}();function Ec(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 vn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Dc(e){return vn[e]||""}function Rc(e){for(var o in vn)if(vn.hasOwnProperty(o)){var n=vn[o],a=n.length;if(e.substr(0,a)==n)return e.substr(a)}return e}/*!
|
|
76
|
+
`,l="",d=o+1;d<n;++d){for(var c=this.get(d),h=d==n-1?r:0,y=7;y>=h;--y)l+=c>>y&1?"1":"0";if(l.length>a)return s+jt(l,a)}return s+l},e.prototype.parseOctetString=function(o,n,a){if(this.isASCII(o,n))return jt(this.parseStringISO(o,n),a);var r=n-o,i="("+r+` byte)
|
|
77
|
+
`;a/=2,r>a&&(n=o+a);for(var s=o;s<n;++s)i+=this.hexByte(this.get(s));return r>a&&(i+=hi),i},e.prototype.parseOID=function(o,n,a){for(var r="",i=new nn,s=0,l=o;l<n;++l){var d=this.get(l);if(i.mulAdd(128,d&127),s+=7,!(d&128)){if(r==="")if(i=i.simplify(),i instanceof nn)i.sub(80),r="2."+i.toString();else{var c=i<80?i<40?0:1:2;r=c+"."+(i-c*40)}else r+="."+i.toString();if(r.length>a)return jt(r,a);i=new nn,s=0}}return s>0&&(r+=".incomplete"),r},e}(),Sc=function(){function e(o,n,a,r,i){if(!(r instanceof gi))throw new Error("Invalid tag value.");this.stream=o,this.header=n,this.length=a,this.tag=r,this.sub=i}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 jt(this.stream.parseStringUTF(n,n+a),o);case 18:case 19:case 20:case 21:case 22:case 26:return jt(this.stream.parseStringISO(n,n+a),o);case 30:return jt(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,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 To?n=o:n=new To(o,0);var a=new To(n),r=new gi(n),i=e.decodeLength(n),s=n.pos,l=s-a.pos,d=null,c=function(){var y=[];if(i!==null){for(var f=s+i;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 g=e.decode(n);if(g.tag.isEOC())break;y[y.length]=g}i=s-n.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return y};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 h=0;h<d.length;++h)if(d[h].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}(),gi=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 nn;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}(),St,Cc=0xdeadbeefcafe,mi=(Cc&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],wc=(1<<26)/Ye[Ye.length-1],fe=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=yt(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+=yt(r));return i?s:"0"},e.prototype.negate=function(){var o=he();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)+mn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var n=he();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 yi(n):a=new xi(n),this.exp(o,a)},e.prototype.clone=function(){var o=he();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=he();return this.bitwiseTo(o,mc,n),n},e.prototype.or=function(o){var n=he();return this.bitwiseTo(o,un,n),n},e.prototype.xor=function(o){var n=he();return this.bitwiseTo(o,ci,n),n},e.prototype.andNot=function(o){var n=he();return this.bitwiseTo(o,di,n),n},e.prototype.not=function(){for(var o=he(),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=he();return o<0?this.rShiftTo(-o,n):this.lShiftTo(o,n),n},e.prototype.shiftRight=function(o){var n=he();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+yc(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+=xc(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,un)},e.prototype.clearBit=function(o){return this.changeBit(o,di)},e.prototype.flipBit=function(o){return this.changeBit(o,ci)},e.prototype.add=function(o){var n=he();return this.addTo(o,n),n},e.prototype.subtract=function(o){var n=he();return this.subTo(o,n),n},e.prototype.multiply=function(o){var n=he();return this.multiplyTo(o,n),n},e.prototype.divide=function(o){var n=he();return this.divRemTo(o,n,null),n},e.prototype.remainder=function(o){var n=he();return this.divRemTo(o,null,n),n},e.prototype.divideAndRemainder=function(o){var n=he(),a=he();return this.divRemTo(o,n,a),[n,a]},e.prototype.modPow=function(o,n){var a=o.bitLength(),r,i=Ct(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 yi(n):n.isEven()?s=new kc(n):s=new xi(n);var l=[],d=3,c=r-1,h=(1<<r)-1;if(l[1]=s.convert(this),r>1){var y=he();for(s.sqrTo(l[1],y);d<=h;)l[d]=he(),s.mulTo(y,l[d-2],l[d]),d+=2}var f=o.t-1,g,m=!0,u=he(),S;for(a=mn(o[f])-1;f>=0;){for(a>=c?g=o[f]>>a-c&h:(g=(o[f]&(1<<a+1)-1)<<c-a,f>0&&(g|=o[f-1]>>this.DB+a-c)),d=r;!(g&1);)g>>=1,--d;if((a-=d)<0&&(a+=this.DB,--f),m)l[g].copyTo(i),m=!1;else{for(;d>1;)s.sqrTo(i,u),s.sqrTo(u,i),d-=2;d>0?s.sqrTo(i,u):(S=i,i=u,u=S),s.mulTo(u,l[g],i)}for(;f>=0&&!(o[f]&1<<a);)s.sqrTo(i,u),S=i,i=u,u=S,--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=Ct(1),s=Ct(0),l=Ct(0),d=Ct(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 Ac)},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<wc;)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:bi(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=he());var s=he(),l=this.s,d=o.s,c=this.DB-mn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var h=s.t,y=s[h-1];if(y!=0){var f=y*(1<<this.F1)+(h>1?s[h-2]>>this.F2:0),g=this.FV/f,m=(1<<this.F1)/f,u=1<<this.F2,S=a.t,B=S-h,b=n??he();for(s.dlShiftTo(B,b),a.compareTo(b)>=0&&(a[a.t++]=1,a.subTo(b,a)),e.ONE.dlShiftTo(h,b),b.subTo(s,s);s.t<h;)s[s.t++]=0;for(;--B>=0;){var v=a[--S]==y?this.DM:Math.floor(a[S]*g+(a[S-1]+u)*m);if((a[S]+=s.am(0,v,a,B,0,h))<v)for(s.dlShiftTo(B,b),a.subTo(b,a);a[S]<--v;)a.subTo(b,a)}n!=null&&(a.drShiftTo(h,n),l!=d&&e.ZERO.subTo(n,n)),a.t=h,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=he(),r=he(),i=n.convert(this),s=mn(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=Ct(a),i=he(),s=he(),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=bi(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),un,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=he(),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=he();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),un,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}(),Ac=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}(),yi=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}(),xi=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=he();return o.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),o.s<0&&n.compareTo(fe.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(o){var n=he();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}(),kc=function(){function e(o){this.m=o,this.r2=he(),this.q3=he(),fe.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=he();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 he(){return new fe(null)}function Ne(e,o){return new fe(e,o)}var pi=typeof navigator<"u";pi&&mi&&navigator.appName=="Microsoft Internet Explorer"?(fe.prototype.am=function(o,n,a,r,i,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,h=this[o++]>>15,y=d*c+h*l;c=l*c+((y&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(y>>>15)+d*h+(i>>>30),a[r++]=c&1073741823}return i},St=30):pi&&mi&&navigator.appName!="Netscape"?(fe.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},St=26):(fe.prototype.am=function(o,n,a,r,i,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,h=this[o++]>>14,y=d*c+h*l;c=l*c+((y&16383)<<14)+a[r]+i,i=(c>>28)+(y>>14)+d*h,a[r++]=c&268435455}return i},St=28),fe.prototype.DB=St,fe.prototype.DM=(1<<St)-1,fe.prototype.DV=1<<St;var Bo=52;fe.prototype.FV=Math.pow(2,Bo),fe.prototype.F1=Bo-St,fe.prototype.F2=2*St-Bo;var gn=[],Gt,rt;for(Gt="0".charCodeAt(0),rt=0;rt<=9;++rt)gn[Gt++]=rt;for(Gt="a".charCodeAt(0),rt=10;rt<36;++rt)gn[Gt++]=rt;for(Gt="A".charCodeAt(0),rt=10;rt<36;++rt)gn[Gt++]=rt;function bi(e,o){var n=gn[e.charCodeAt(o)];return n??-1}function Ct(e){var o=he();return o.fromInt(e),o}function mn(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}fe.ZERO=Ct(0),fe.ONE=Ct(1);var Tc=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 Bc(){return new Tc}var vi=256,yn,wt=null,ct;if(wt==null){wt=[],ct=0;var xn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Eo=new Uint32Array(256);for(window.crypto.getRandomValues(Eo),xn=0;xn<Eo.length;++xn)wt[ct++]=Eo[xn]&255}var pn=0,bn=function(e){if(pn=pn||0,pn>=256||ct>=vi){window.removeEventListener?window.removeEventListener("mousemove",bn,!1):window.detachEvent&&window.detachEvent("onmousemove",bn);return}try{var o=e.x+e.y;wt[ct++]=o&255,pn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",bn,!1):window.attachEvent&&window.attachEvent("onmousemove",bn))}function Ec(){if(yn==null){for(yn=Bc();ct<vi;){var e=Math.floor(65536*Math.random());wt[ct++]=e&255}for(yn.init(wt),ct=0;ct<wt.length;++ct)wt[ct]=0;ct=0}return yn.next()}var Do=function(){function e(){}return e.prototype.nextBytes=function(o){for(var n=0;n<o.length;++n)o[n]=Ec()},e}();function Dc(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 Do,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 fe(n)}var Ic=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 Do,r=o>>1;this.e=parseInt(n,16);for(var i=new fe(n,16);;){for(;this.p=new fe(o-r,1,a),!(this.p.subtract(fe.ONE).gcd(i).compareTo(fe.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new fe(r,1,a),!(this.q.subtract(fe.ONE).gcd(i).compareTo(fe.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(fe.ONE),d=this.q.subtract(fe.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(fe.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 Do,i=o>>1;this.e=parseInt(n,16);var s=new fe(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 g=l.p.subtract(fe.ONE),m=l.q.subtract(fe.ONE),u=g.multiply(m);u.gcd(s).compareTo(fe.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(u),l.dmp1=l.d.mod(g),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},h=function(){l.q=he(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(fe.ONE).gcda(s,function(f){f.compareTo(fe.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(h,0)})})},y=function(){l.p=he(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(fe.ONE).gcda(s,function(f){f.compareTo(fe.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(h,0):setTimeout(y,0)})})};setTimeout(y,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var r=_c(a),i=r+n(o).toString(),s=Dc(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=Oc(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 vn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function _c(e){return vn[e]||""}function Oc(e){for(var o in vn)if(vn.hasOwnProperty(o)){var n=vn[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
|
|
@@ -87,35 +87,35 @@ version: 2.9.0
|
|
|
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 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 r="",i=0;i<a;i++)r+="f";var s=new fe(r,16),l=s.xor(e).add(fe.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,r=n.DERInteger,i=n.DERBitString,s=n.DEROctetString,l=n.DERNull,d=n.DERObjectIdentifier,c=n.DEREnumerated,h=n.DERUTF8String,y=n.DERNumericString,f=n.DERPrintableString,g=n.DERTeletexString,m=n.DERIA5String,u=n.DERUTCTime,S=n.DERGeneralizedTime,B=n.DERSequence,b=n.DERSet,v=n.DERTaggedObject,p=n.ASN1Util.newObject,A=Object.keys(e);if(A.length!=1)throw"key of param shall be only one.";var D=A[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+D+":")==-1)throw"undefined key: "+D;if(D=="bool")return new a(e[D]);if(D=="int")return new r(e[D]);if(D=="bitstr")return new i(e[D]);if(D=="octstr")return new s(e[D]);if(D=="null")return new l(e[D]);if(D=="oid")return new d(e[D]);if(D=="enum")return new c(e[D]);if(D=="utf8str")return new h(e[D]);if(D=="numstr")return new y(e[D]);if(D=="prnstr")return new f(e[D]);if(D=="telstr")return new g(e[D]);if(D=="ia5str")return new m(e[D]);if(D=="utctime")return new u(e[D]);if(D=="gentime")return new S(e[D]);if(D=="seq"){for(var E=e[D],_=[],O=0;O<E.length;O++){var R=p(E[O]);_.push(R)}return new B({array:_})}if(D=="set"){for(var E=e[D],_=[],O=0;O<E.length;O++){var R=p(E[O]);_.push(R)}return new b({array:_})}if(D=="tag"){var k=e[D];if(Object.prototype.toString.call(k)==="[object Array]"&&k.length==3){var T=p(k[2]);return new v({tag:k[0],explicit:k[1],obj:T})}else{var C={};if(k.explicit!==void 0&&(C.explicit=k.explicit),k.tag!==void 0&&(C.tag=k.tag),k.obj===void 0)throw"obj shall be specified for 'tag'.";return C.obj=p(k.obj),new v(C)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},Y.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 fe(i,2);r=r+"."+c.toString(10),i=""}}return r},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 fe(l,10),h=c.toString(2),y=7-h.length%7;y==7&&(y=0);for(var f="",g=0;g<y;g++)f+="0";h=f+h;for(var g=0;g<h.length-1;g+=7){var m=h.substr(g,7);g!=h.length-7&&(m="1"+m),d+=o(parseInt(m,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},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 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""}},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 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),h=r(String(i.getMinutes()),2),y=r(String(i.getSeconds()),2),f=s+l+d+c+h+y;if(a===!0){var g=i.getMilliseconds();if(g!=0){var m=r(String(g),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,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}},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 fe(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 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))},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 r=a.toString(16);return r.length==1&&(r="0"+r),r},n=function(a){var r="",i=new fe(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 h=s.substr(c,7);c!=s.length-7&&(h="1"+h),r+=o(parseInt(h,2))}return r};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 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=Y.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))},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 fe(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 Ic=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)}}(),bi=function(e){Ic(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)?gc.decode(n):ko.unarmor(n),l=xc.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 h=l.sub[5].getHexStringValue();this.q=Ne(h,16);var y=l.sub[6].getHexStringValue();this.dmp1=Ne(y,16);var f=l.sub[7].getHexStringValue();this.dmq1=Ne(f,16);var g=l.sub[8].getHexStringValue();this.coeff=Ne(g,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],u=m.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 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 hn(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})]}),r=new Y.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new Y.asn1.DERSequence({array:[n,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return hn(this.getPublicBaseKey())},o.wordwrap=function(n,a){if(a=a||64,!n)return n;var r="(.{1,"+a+`})( +|$
|
|
90
|
+
*/var K={};(typeof K.asn1>"u"||!K.asn1)&&(K.asn1={}),K.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 fe(r,16),l=s.xor(e).add(fe.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=K,n=o.asn1,a=n.DERBoolean,r=n.DERInteger,i=n.DERBitString,s=n.DEROctetString,l=n.DERNull,d=n.DERObjectIdentifier,c=n.DEREnumerated,h=n.DERUTF8String,y=n.DERNumericString,f=n.DERPrintableString,g=n.DERTeletexString,m=n.DERIA5String,u=n.DERUTCTime,S=n.DERGeneralizedTime,B=n.DERSequence,b=n.DERSet,v=n.DERTaggedObject,x=n.ASN1Util.newObject,w=Object.keys(e);if(w.length!=1)throw"key of param shall be only one.";var T=w[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+T+":")==-1)throw"undefined key: "+T;if(T=="bool")return new a(e[T]);if(T=="int")return new r(e[T]);if(T=="bitstr")return new i(e[T]);if(T=="octstr")return new s(e[T]);if(T=="null")return new l(e[T]);if(T=="oid")return new d(e[T]);if(T=="enum")return new c(e[T]);if(T=="utf8str")return new h(e[T]);if(T=="numstr")return new y(e[T]);if(T=="prnstr")return new f(e[T]);if(T=="telstr")return new g(e[T]);if(T=="ia5str")return new m(e[T]);if(T=="utctime")return new u(e[T]);if(T=="gentime")return new S(e[T]);if(T=="seq"){for(var E=e[T],I=[],O=0;O<E.length;O++){var R=x(E[O]);I.push(R)}return new B({array:I})}if(T=="set"){for(var E=e[T],I=[],O=0;O<E.length;O++){var R=x(E[O]);I.push(R)}return new b({array:I})}if(T=="tag"){var k=e[T];if(Object.prototype.toString.call(k)==="[object Array]"&&k.length==3){var D=x(k[2]);return new v({tag:k[0],explicit:k[1],obj:D})}else{var C={};if(k.explicit!==void 0&&(C.explicit=k.explicit),k.tag!==void 0&&(C.tag=k.tag),k.obj===void 0)throw"obj shall be specified for 'tag'.";return C.obj=x(k.obj),new v(C)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},K.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 fe(i,2);r=r+"."+c.toString(10),i=""}}return r},K.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 fe(l,10),h=c.toString(2),y=7-h.length%7;y==7&&(y=0);for(var f="",g=0;g<y;g++)f+="0";h=f+h;for(var g=0;g<h.length-1;g+=7){var m=h.substr(g,7);g!=h.length-7&&(m="1"+m),d+=o(parseInt(m,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},K.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""}},K.asn1.DERAbstractString=function(e){K.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(K.asn1.DERAbstractString,K.asn1.ASN1Object),K.asn1.DERAbstractTime=function(e){K.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),h=r(String(i.getMinutes()),2),y=r(String(i.getSeconds()),2),f=s+l+d+c+h+y;if(a===!0){var g=i.getMilliseconds();if(g!=0){var m=r(String(g),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,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}},Fe.lang.extend(K.asn1.DERAbstractTime,K.asn1.ASN1Object),K.asn1.DERAbstractStructured=function(e){K.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(K.asn1.DERAbstractStructured,K.asn1.ASN1Object),K.asn1.DERBoolean=function(){K.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Fe.lang.extend(K.asn1.DERBoolean,K.asn1.ASN1Object),K.asn1.DERInteger=function(e){K.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=K.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new fe(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(K.asn1.DERInteger,K.asn1.ASN1Object),K.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=K.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}K.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))},Fe.lang.extend(K.asn1.DERBitString,K.asn1.ASN1Object),K.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=K.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}K.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Fe.lang.extend(K.asn1.DEROctetString,K.asn1.DERAbstractString),K.asn1.DERNull=function(){K.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Fe.lang.extend(K.asn1.DERNull,K.asn1.ASN1Object),K.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 fe(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 h=s.substr(c,7);c!=s.length-7&&(h="1"+h),r+=o(parseInt(h,2))}return r};K.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=K.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))},Fe.lang.extend(K.asn1.DERObjectIdentifier,K.asn1.ASN1Object),K.asn1.DEREnumerated=function(e){K.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=K.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new fe(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(K.asn1.DEREnumerated,K.asn1.ASN1Object),K.asn1.DERUTF8String=function(e){K.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Fe.lang.extend(K.asn1.DERUTF8String,K.asn1.DERAbstractString),K.asn1.DERNumericString=function(e){K.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Fe.lang.extend(K.asn1.DERNumericString,K.asn1.DERAbstractString),K.asn1.DERPrintableString=function(e){K.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Fe.lang.extend(K.asn1.DERPrintableString,K.asn1.DERAbstractString),K.asn1.DERTeletexString=function(e){K.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Fe.lang.extend(K.asn1.DERTeletexString,K.asn1.DERAbstractString),K.asn1.DERIA5String=function(e){K.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Fe.lang.extend(K.asn1.DERIA5String,K.asn1.DERAbstractString),K.asn1.DERUTCTime=function(e){K.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(K.asn1.DERUTCTime,K.asn1.DERAbstractTime),K.asn1.DERGeneralizedTime=function(e){K.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(K.asn1.DERGeneralizedTime,K.asn1.DERAbstractTime),K.asn1.DERSequence=function(e){K.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(K.asn1.DERSequence,K.asn1.DERAbstractStructured),K.asn1.DERSet=function(e){K.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(K.asn1.DERSet,K.asn1.DERAbstractStructured),K.asn1.DERTaggedObject=function(e){K.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(K.asn1.DERTaggedObject,K.asn1.ASN1Object);var Nc=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)}}(),Si=function(e){Nc(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)?pc.decode(n):ko.unarmor(n),l=Sc.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 h=l.sub[5].getHexStringValue();this.q=Ne(h,16);var y=l.sub[6].getHexStringValue();this.dmp1=Ne(y,16);var f=l.sub[7].getHexStringValue();this.dmq1=Ne(f,16);var g=l.sub[8].getHexStringValue();this.coeff=Ne(g,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],u=m.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 K.asn1.DERInteger({int:0}),new K.asn1.DERInteger({bigint:this.n}),new K.asn1.DERInteger({int:this.e}),new K.asn1.DERInteger({bigint:this.d}),new K.asn1.DERInteger({bigint:this.p}),new K.asn1.DERInteger({bigint:this.q}),new K.asn1.DERInteger({bigint:this.dmp1}),new K.asn1.DERInteger({bigint:this.dmq1}),new K.asn1.DERInteger({bigint:this.coeff})]},a=new K.asn1.DERSequence(n);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return hn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var n=new K.asn1.DERSequence({array:[new K.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new K.asn1.DERNull]}),a=new K.asn1.DERSequence({array:[new K.asn1.DERInteger({bigint:this.n}),new K.asn1.DERInteger({int:this.e})]}),r=new K.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new K.asn1.DERSequence({array:[n,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return hn(this.getPublicBaseKey())},o.wordwrap=function(n,a){if(a=a||64,!n)return n;var r="(.{1,"+a+`})( +|$
|
|
91
91
|
?)|(.{1,`+a+"})";return n.match(RegExp(r,"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
|
-
`),Io=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},
|
|
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}(Ic),Ro,Fc=typeof process<"u"?(Ro=process.env)===null||Ro===void 0?void 0:Ro.npm_package_version:void 0,Mc=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 Si(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(ui(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return hn(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,n,a){try{return hn(this.getKey().sign(o,n,a))}catch{return!1}},e.prototype.verify=function(o,n,a){try{return this.getKey().verify(o,ui(n),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new Si,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=Fc,e}();const Ci=new Mc,Ut=zc();function zc(){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 wi=et.enc.Utf8.parse("ABCDEF1234123412");function Pc(e,o){o=o||Ut;const n=et.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=et.enc.Utf8.parse(e);break;case"object":a=et.enc.Utf8.parse(JSON.stringify(e));break;default:a=et.enc.Utf8.parse(e.toString())}return et.AES.encrypt(a,n,{iv:wi,mode:et.mode.CBC,padding:et.pad.ZeroPadding}).toString()}function Ai(e,o){o=o||Ut;const n=et.enc.Utf8.parse(o),a=et.AES.decrypt(e,n,{iv:wi,mode:et.mode.CBC,padding:et.pad.ZeroPadding});return et.enc.Utf8.stringify(a).toString()}function qc(e){Ci.setPublicKey(e)}function Vc(e){return Ci.encrypt(e)}function ki(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 Hc(e){const{paramType:o,data:n,params:a,method:r}=e;o==="form"?["get","delete"].includes(r)?e.params=$t(a,"string"):e.data=$t(n,"string"):["get","delete"].includes(r)?e.params=$t(a,"string"):e.data=$t(n)}function $t(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)}&`}}qc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=Vc(Ut);return{c:Pc(n,Ut),p:r}}window.getEncryptParam=$t;function Wc(e,o){var n;(n=window==null?void 0:window.config)!=null&&n.encryptFlag&&ki(e.url)&&(e.data instanceof FormData?e.data=jc(e.data):Hc(e))}function jc(e){const o=e.entries(),n=new FormData,a={};for(const i of o){const s=i[0],l=i[1];l instanceof Blob?n.append(s,l):a[s]=l}const r=$t(a,"json");return typeof r=="object"&&(n.append("c",r.c),n.append("p",r.p)),n}window.xhaesKey=Ut,window.xhaesDecrypt=Ai;function Ti(e,o){var n;if((n=window==null?void 0:window.config)!=null&&n.encryptFlag&&ki(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=Ai(e.data.data.content,Ut);e.data=JSON.parse(a)}}const Bi=window.config.requestErrorTip,ft=os.create({timeout:1e3*180});ft.interceptors.request.use(e=>{const{requestParams:o={}}=window.config;return o!=null&&o.pltToken&&(e.headers["Plt-Token"]=o.pltToken),Wc(e),e},e=>Promise.reject(e)),ft.interceptors.response.use(e=>{var o,n,a;return Bi&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&de.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}),Ti(e),e},e=>{if(Ti(e==null?void 0:e.response),Bi)if(e.message.includes("timeout"))de.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&de.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),o>=500&&de.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const Gc=e=>e.replace(/\\n/g,`
|
|
97
|
+
`),Io=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Uc=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Sn=(e,o=2)=>{const n=e+"";if(n.includes("%"))return e;const a=parseFloat(n);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},$c=(e,o=2)=>{const n=e+"",a=parseFloat(n);return isNaN(a)?e:a.toFixed(o)},Ei=(e,o)=>lt(o,e),dt=(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 r=o[a];if(typeof r=="string"&&e.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return!0}}return!1},Yt=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),on=e=>{const{leftAxisList:o=[],rightAxisList:n=[],queryColumnList:a=[],indicators:r=[]}=e;return[...o,...n,...a,...r].filter(i=>(i==null?void 0:i.calcType)==="COMPONENT").map(i=>({keyName:i.builtInCalcWay,id:i.builtInValueSource}))},it=(e,o)=>{let n=!0;const a=on(e);return a!=null&&a.length&&(n=a.map(r=>o[r.id]).every(r=>r)),n},an=(e,o)=>{var s;const n=e.match(/\{(.+?)\}/g),a=((s=e.split(`
|
|
98
98
|
`))==null?void 0:s.length)-1;let r="";if(a)for(let l=0;l<a;l++)r+=`
|
|
99
|
-
`;let i=e;if(n!=null&&n.length){for(const l of n){const d=Ie(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(i=i.replace(l,d))}return`${r}{text|${i}}`}else return e},Bi=(e,o)=>{const{props:n,componentList:a,getGlobalModel:r}=e,{graphicConfig:i={},startValue:s,endValue:l}=n,d=jc({graphicConfig:i,startValue:s,endValue:l,componentList:a,getGlobalModel:r}),{dimensions:c,dataset:h}=o,{classificationList:y=[]}=i,g=y.find(m=>m.show).label||"";for(const m of d)c.includes(m)||c.push(m);c.sort((m,u)=>me(m).isBefore(me(u))?-1:1);for(const m of h){const{data:u}=m;if(u!=null&&u.length){const S=[];for(const B of d)if(u.find(b=>b[g]!==B)){const b=Le.cloneDeep(u[0]);for(const v in b)v===g?b[v]=B:b[v]=0;S.push(b)}m.data.push(...S),m.data.sort((B,b)=>me(B[g]).isBefore(me(b[g]))?-1:1)}}};function jc(e){const{startValue:o,endValue:n,componentList:a,graphicConfig:r,getGlobalModel:i}=e,s=Ei(o),l=Ei(n),d=[];if(s&&l){const c=a.find(y=>y.keyName===s.keyName),h=a.find(y=>y.keyName===l.keyName);if(c&&h){const y=i(c.id),f=i(h.id),{classificationList:g=[]}=r,m=g.find(u=>u.show);if(m){let u="YYYY-MM";switch(m.name){case"the_year":u="YYYY";break;case"the_month":u="MM";break;case"the_day":u="DD";break;case"the_date":u=(m==null?void 0:m.dateFormat)||u;break}const S=Gc(u);if(u){const B=t.unref(y[s.field]),b=t.unref(f[l.field]);let v=me(B);const p=me(b);for(d.push(p.format(u));v.isBefore(p);)d.push(v.format(u)),v=v.add(1,S)}}}}return d}function Ei(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 Gc(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 Cn=(e,o)=>{const n={dayjs:me,...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},Ie=(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 h=c.slice(1,-1).trim();const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,f=h.match(y);for(let g=0;g<f.length;g++){const m=f[g],u=s[m];u!=null&&typeof u!="function"&&(h=h.replace(m,u))}(/\(.*\)/g.test(h)||/[+/\\*]/g.test(h))&&(h=Cn(h,n)),e=e.replace(c,h)}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},qe=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:d,touchEventId:c}=t.inject(Pe,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:h}=t.inject(De,{getGlobalModel:m=>{}}),y=Ie(n),f=async(m={})=>{if(!y||!a||!r)return;let u={};i.forEach(p=>{const{key:A,value:D}=p;if(typeof D=="object"&&D!=null&&D.id){let E={};const{id:_,prop:O,propKey:R,operate:k}=D;_==="THIS"?E=h(t.unref(c))||{}:E=h(_)||{};const T=t.unref(E[O]);let C=null;if(["date","range"].some(x=>dt(E==null?void 0:E.type,x))){const{value:x,type:w,mode:L}=k||{};if(x&&w&&L)switch(w){case"add":C=t.unref(T).add(x,L);break;case"minus":C=t.unref(T).subtract(x,L);break}C==null&&(C=t.unref(T)),C=(C==null?void 0:C.format((R==null?void 0:R.trim())||E.format))||""}else Object.prototype.toString.call(T)==="[object Object]"?R?C=T[R]:C=O?T[O]:T:dt(E==null?void 0:E.type,"select")&&t.unref(T)&&O&&Array.isArray(t.unref(T))?C=t.unref(T).map(x=>Object.prototype.hasOwnProperty.call(x,O)?x[O]:x):C=T;u[A]=C}else typeof D=="string"&&(u[A]=Ie(D))}),u={...window.config.requestParams,...m,...u};let S="";const B=Object.keys(u),b=B.length-1,v=B.length;B.forEach((p,A)=>{let D=u[p];Object.prototype.toString.call(D)==="[object Object]"&&(D=JSON.stringify(D)),A===0?v!==1?S+=`?${p}=${D}&`:S+=`?${p}=${D}`:A===b?S+=`${p}=${D}`:S+=`${p}=${D}&`});try{const p=["get","head"].includes(a),A={};let D=p?y+S:y;u.dataSqlId&&!D.includes("dataSqlId")&&(D+=`${D.includes("?")?"&":"?"}dataSqlId=${u.dataSqlId}`),Object.prototype.hasOwnProperty.call(u,"signal")&&(A.signal=u.signal);const E=await ft({baseURL:t.unref(d)||"",url:D,method:a,headers:r,data:p?{}:u,...A});return o(E),E}catch(p){console.error(p)}},g=l&&setInterval(f,s*1e3);return t.onUnmounted(()=>{clearInterval(g)}),f},At=(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 y=[];for(let g=0;g<d;g++){const m=r[g],{label:u,value:S}=m,B={...e[0],value:e[0][S]};i.add(u),y.push(B)}const f=e[0][a]||"";s.set(f,y)}else for(let y=0;y<l;y++){const f=e[y],g=f[a];i.add(g);for(let m=0;m<d;m++){const u=r[m],{label:S,value:B}=u,b={...f,value:f[B]||0};if(s.has(S)){const v=s.get(S);v.push(b),s.set(S,v)}else s.set(S,[b])}}const c=Array.from(i),h=[];for(const[y,f]of s)h.push({name:y,data:f});return{dimensions:c,dataset:h}},yt=(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},Di=(e,o)=>{const n=`${Sr}/preview?pageId=${o}`,a=`${Sr}/${o}`;return e==="preview"?n:a},lt=(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=Cn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},Ke=(e={})=>{const{requestToken:o}=t.inject(xr,{requestToken:()=>{}}),{setLoadedData:n}=t.inject(vt,{setLoadedData:(g,m)=>{}}),{getGlobalModel:a}=t.inject(De,{getGlobalModel:g=>{}});e.dataType==="indicator"&&o();const r=g=>{const{around:m,unit:u,id:S}=g;let B="";const{pageMode:b="",componentList:v=[]}=(e==null?void 0:e.graphicConfig)||{};let p=null,A=null;if(b==="design"){const D=v==null?void 0:v.find(C=>C.id===S);if(!D)return[];const{interval:E,intervalUnit:_,startTime:O,endTime:R,operate:k,useCurrentTime:T}=D||{};if(T&&(p=me().subtract(E,_),A=me()),O&&(p=me(O)),R&&(A=me(R)),k){const{type:C,value:I,mode:x}=k;switch(C){case"add":p=p&&p.add(I,x),A=A&&A.add(I,x);break;case"minus":p=p&&p.subtract(I,x),A=A&&A.subtract(I,x)}}}else{const D=a(S)||{};t.unref(D.startTime)&&(p=me(t.unref(D.startTime))),t.unref(D.endTime)&&(A=me(t.unref(D.endTime)))}if(p&&A){const D=A.diff(p,u.toLowerCase());B=`${m==="before"?"-":""}${D+1}`}return B?[B]:[]},i=(g,m)=>Object.prototype.hasOwnProperty.call(g,m),s=g=>{const{calcWays:m=[],dateCalcTypes:u=[],activeKey:S,componentId:B=""}=g;if(S===5&&(m!=null&&m.length)&&(u!=null&&u.length)&&B){const b=m[0].split("-");(b==null?void 0:b.length)>1&&b[0]==="rangeValue"&&(g.calcWays=r({around:b[1],unit:u[0],id:B})),delete g.radioValue}i(g,"dataType")&&(g.fieldType==="DATE"&&(g.label=g.fieldName),g.dataType==="component"&&(g.fieldValue="${"+g.fieldValue+"}"),delete g.dataType),i(g,"activeKey")&&delete g.activeKey,i(g,"radioValue")&&delete g.radioValue,i(g,"indexCode")&&(g.hrpIndexCode=g.indexCode,delete g.indexCode),i(g,"indexCodeNum")&&(g.hrpIndexCodeNum=g.indexCodeNum,delete g.indexCodeNum),g.dataType!=="component"&&g.useCurrentTime&&(g.fieldValue=me().format(g.dateFormat)),delete g.useCurrentTime},l=g=>{const m=[];return g!=null&&g.length&&Le.cloneDeep(g).forEach(u=>{if(u.join&&u.conditions){const S=!u.conditions.some(B=>B.join&&B.conditions);u.conditions.forEach((B,b)=>{s(B),S?b<u.conditions.length-1?m.push({join:u.join,...B}):m.push(B):B.join&&B.conditions?m.push({conditions:l([B]),join:u.join}):m.push(B)})}else s(u),m.push(u)}),m},d=(g={},m)=>{if(g!=null&&g.sortCpnts&&m){const w=f(g);w&&(m.sort=w)}const{label:u,name:S,location:B,show:b,indexCode:v,indexCodeNum:p,calcType:A="COLUMN",builtInFormula:D,builtInValueSource:E,builtInCalcWay:_,formula:O,conditions:R,aggregate:k,distinct:T,dimByCount:C}=g;let I;if(R&&(I=l(R)),A==="COMPONENT"){const w={};return y(w,E),{label:u.trim(),columnName:S,show:b,calcType:A,componentAlias:_,componentValue:w.fieldValue||null}}const x={label:u.trim(),columnName:S,location:B,show:b,calcType:A,hrpIndexCode:v,hrpIndexCodeNum:p,aggregate:k,builtInFormula:D,builtInValueSource:E,formula:O,conditions:I};if(D==="DATE_OFFSET"){const w=_.split("-");if((w==null?void 0:w.length)===3){let L=w[0];return w[2]==="before"&&w[0]!=="0"&&(L=`-${w[0]}`),{...x,calcWays:[L],dateCalcTypes:[w[1]]}}}else return S==="the_count"&&(x.calcType="AGGREGATE",x.distinct=!!T,x.typeGuid=C),{...x,builtInCalcWay:_}},c=g=>{const m=[];for(const u of g)u.conditions?m.push(...c(u.conditions)):(u==null?void 0:u.dataType)==="component"&&m.push(u);return m},h=g=>{if(!g)return[];const{controlList:m=[],classificationList:u=[],rowHeaderList:S=[],dimensionList:B=[],seriesList:b=[],leftAxisList:v=[],rightAxisList:p=[],queryColumnList:A=[],indicators:D=[]}=g,E=[...u,...S,...B,...b,...v,...p,...A,...D],_=[];for(const T of E){const C=c((T==null?void 0:T.conditions)||[]);if(C!=null&&C.length){const I=C.filter(x=>(x==null?void 0:x.dataType)==="component").map(x=>{const w={};return x!=null&&x.dateFormat&&(w.format=x.dateFormat),{conditionKey:x.fieldName,conditionLabel:x.fieldName,conditionName:x.fieldName,conditionValueType:x.fieldType,id:x.componentId,keyName:x.fieldValue,rule:x.rule,notGlobal:!0,indexCode:x.indexCode,typeGuid:x.typeGuid,indexCodeNum:x.indexCodeNum,...w}});if(I!=null&&I.length)for(const x of I)_.find(w=>w.keyName===x.keyName)||_.push(x)}}const O=m.concat(_),R=O.length,k=[];for(let T=0;T<R;T++){const C=O[T];if((C==null?void 0:C.conditionKey)==="parentCode")continue;const{id:I,keyName:x,conditionLabel:w,conditionKey:L,conditionValueType:P,prop:V,rule:U="NONE",notGlobal:N=!1,format:F,modelKey:H,indexCode:z,typeGuid:q,indexCodeNum:M,dataType:J="component",customValue:W}=C;let K=x||I;K&&V&&(K+=`-${V}`);let ne=U;ne==="NONE"&&(["startTime","endTime"].includes(V)?ne=V==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":x!=null&&x.includes("startTime")?ne=V==="GREATER_EQUAL":x!=null&&x.includes("endTime")?ne=V==="LESS_EQUAL":ne="EQUAL");const oe={rule:ne,label:w,fieldName:L,fieldValue:"",valueType:P,alias:K,globalCondition:!N,indexCode:z,typeGuid:q,indexCodeNum:M};y(oe,I,{prop:V,dateFormat:F,modelKey:H,keyName:x}),J===""&&(oe.fieldValue=W||""),k.push(oe)}for(let T=k.length-1;T>=0;T--){const C=k[T];C.globalCondition||k.find(x=>x.alias===C.alias&&x.globalCondition)&&k.splice(T,1)}return k};function y(g,m,u){var k,T;const S=a(m)||{},{prop:B="",dateFormat:b="",modelKey:v="",keyName:p=""}=u||{},{value:A,format:D="YYYY-MM-DD",type:E="",useCurrentTime:_,RECORD:O}=S||{},R=b||D;if(dt(S.type,"date"))_?A?g.fieldValue=(k=t.unref(A))==null?void 0:k.format(R):g.fieldValue=me().format(R):g.fieldValue=(T=t.unref(A))==null?void 0:T.format(R),g.dateFormat=R;else if(E==="ecanRangePicker"){let C=B;if(!B){const x=p&&p.split("-");x!=null&&x.length&&(C=x[x.length-1])}if(!C)return;let I=null;t.unref(S[C])&&(I=me(t.unref(S[C]))),I&&(g.fieldValue=I==null?void 0:I.format(R)),g.dateFormat=R}else dt(E,Cr)?v&&O?g.fieldValue=O[v]:!v&&O?g.fieldValue=O.value:g.fieldValue=t.unref(A):g.fieldValue=t.unref(A)}const f=g=>{const{sortCpnts:m=[]}=g;let u,S="";for(const B of m){const b=a(B)||{},{type:v,RECORD:p}=b;if(dt(v,"image")&&dt(p==null?void 0:p.value,["asc","desc"])){S=p.value.toUpperCase();break}}return S&&(u={label:g.label,columnName:g.name,order:S,type:"NORMAL"}),u};return async(g={})=>{var J,W,K,ne,oe,ae;n(e.id,!1);const{graphicConfig:m,type:u,isGroupTable:S=!1}=e;let{source:B,dataViewId:b,plugin:v="1",layer:p,chartType:A,classificationList:D=[],rowHeaderList:E=[],dimensionList:_=[],seriesList:O=[],leftAxisList:R=[],rightAxisList:k=[],queryColumnList:T=[],indicators:C=[],controlList:I=[],formFields:x={},idxLibMode:w,preview:L=!1}=m||{},P=[];(m==null?void 0:m.pageMode)==="design"?P=(m.sqlConditions??[]).map(Q=>{const $=Q.rule||"EQUAL",ee={};return i(Q,"globalCondition")||(ee.globalCondition=!0),{...Q,rule:$==="NONE"?"EQUAL":$,...ee}}):P=h(m);for(const Q of P)i(Q,"indexCode")&&(Q.hrpIndexCode=Q.indexCode,delete Q.indexCode),i(Q,"indexCodeNum")&&(Q.hrpIndexCodeNum=Q.indexCodeNum,delete Q.indexCodeNum);p==null&&(dt(u,["table"])?p="1":dt(u,["select","checkbox","radio"])?p="3":p="2");let V,U="";if(Array.isArray(D)&&D.length>0){const Q=D.length;for(let $=0;$<Q;$++){const ee=D[$]||{},{label:re="",name:xe="",show:Se=!1,sort:Te,customGroup:_e,conditions:we,dateFormat:Ae,typeGuid:Ve="",truncations:Ue=[]}=ee;if(Se||Q===1){U=Ve,V={label:re.trim(),columnName:xe,show:Se,sort:f(ee)||Te,customGroup:_e,conditions:l(we),typeGuid:Ve},Ae&&(V.dateFormat=Ae),xe==="the_date"&&!V.dateFormat&&(V.dateFormat="YYYY-MM");const He={};if(Array.isArray(Ue)&&Ue.length>0){const We=Ue.length;for(let Ge=0;Ge<We;Ge++){const ut=Ue[Ge]||{},{rule:tt="",num:nt=0,name:j=""}=ut;tt&&nt&&(He.num=nt,He.rule=tt,j&&(He.otherGroupName=j))}}(J=Object.keys(He))!=null&&J.length&&(V.truncation=He);break}}}let N;if(Array.isArray(O)&&O.length>0){const Q=O.length;for(let $=0;$<Q;$++){const ee=O[$]||{},{label:re="",name:xe="",show:Se=!1,sort:Te,customGroup:_e,conditions:we}=ee;if(Se||Q===1){N={label:re.trim(),columnName:xe,show:Se,sort:Te,customGroup:_e,conditions:l(we)};break}}}const F=[];R==null||R.forEach(Q=>{Q.location="LEFT",F.push(d(Q,V))}),k==null||k.forEach(Q=>{Q.location="RIGHT",F.push(d(Q,V))}),C==null||C.forEach(Q=>{Q.location="LEFT",F.push(d(Q,V))});const H=[];T==null||T.forEach(Q=>{const{label:$,name:ee,location:re,show:xe,indexCode:Se,sort:Te,typeGuid:_e,indexCodeNum:we}=Q;let Ae=Te;if(g.sort){const{field:Ve,order:Ue}=g.sort;let He=F.find(We=>We.label===Ve);!He&&$===Ve&&(He=Q),He&&(Ae={columnName:He.columnName,label:g.sort.field,order:Ue.toUpperCase(),type:"NORMAL"})}H.push({label:$,columnName:ee,location:re,show:xe,sort:Ae,calcType:"COLUMN",hrpIndexCode:Se,hrpIndexCodeNum:we,typeGuid:_e})});const z=[];let q=[];if(Array.isArray(E)&&E.length>0?q=E:Array.isArray(_)&&_.length>0&&(q=_),q!=null&&q.length){const Q=q.length;for(let $=0;$<Q;$++){const ee=q[$]||{},{label:re="",name:xe="",show:Se=!1,sort:Te,customGroup:_e,conditions:we,truncations:Ae,typeGuid:Ve="",dateFormat:Ue}=ee;let He=Te;if(g.sort){const{field:ut,order:tt}=g.sort;let nt=F.find(j=>j.label===ut);!nt&&ee.label===ut&&(nt=ee),nt&&(He={columnName:nt.columnName,label:g.sort.field,order:tt.toUpperCase(),type:"NORMAL"})}const We={label:re.trim(),columnName:xe,show:Se,sort:He,customGroup:_e,conditions:l(we),typeGuid:Ve};Ue&&(We.dateFormat=Ue),xe==="the_date"&&!We.dateFormat&&(We.dateFormat="YYYY-MM");const Ge={};if(Array.isArray(Ae)&&Ae.length>0){const ut=Ae.length;for(let tt=0;tt<ut;tt++){const nt=Ae[tt]||{},{rule:j="",num:Z=0,name:X=""}=nt;j&&Z&&(Ge.num=Z,Ge.rule=j,X&&(Ge.otherGroupName=X))}}(W=Object.keys(Ge))!=null&&W.length&&(We.truncation=Ge),z.push(We)}}if(dt(u,["text","proportion"])&&(A="zb"),S){if(z.length===0||F.length===0)return;A="grouptable"}else{if(p==="1"&&H.length===0)return;if(p==="2"&&F.length===0)return;if(p==="3"&&(!U||!x.labelField||!x.valueField))return;if(p==="3"&&u==="ecanDataSelect"&&F.length===0)return}_!=null&&_.length&&(p="1",A="grouptable");let M=(K=window==null?void 0:window.config)==null?void 0:K.pageId;if(!M){const{pathname:Q}=window==null?void 0:window.location;if(Q){const $=Q.split("/");$!=null&&$.length&&(M=$[$.length-1])}}if((ne=Object.keys(x))!=null&&ne.length){const Q=I.find(ee=>ee.conditionKey==="parentCode"),$={};if(Q){const ee=a(Q.id)||{};if(ee!=null&&ee.itemCodes)$.parentItemCodes=ee.itemCodes;else return}u==="ecanDataSelect"&&($.indicatorList=F.filter(ee=>ee.show));try{return await ft.post(`${vr}/diagram/formData`,{source:B,dataViewId:b,plugin:"4",layer:p,chartType:"normalSelect",rangeIndexTypeGuid:U,type:u==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:x.labelField,valueField:x.valueField,pageId:M,sqlConditions:P,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...$},{headers:{Authentication:(oe=window==null?void 0:window.config)==null?void 0:oe.indicatorToken,operateContext:br}})}catch(ee){console.error(ee)}finally{}}else try{return await ft.post(`${vr}/diagram`,{source:B,dataViewId:b,plugin:v,layer:p,chartType:A,classification:V,series:N,indicatorList:F,queryColumns:S?[]:H,pageFlag:!0,pageId:M,sqlConditions:P.map($=>{const{fieldValue:ee}=$,re={};return ee&&Array.isArray(ee)&&(re.fieldValue=JSON.stringify(ee)),{...$,...re}}),idxLibMode:w,preview:L,rowHeaders:z,keyName:e.keyName},{headers:{Authentication:(ae=window==null?void 0:window.config)==null?void 0:ae.indicatorToken,operateContext:br}})}catch(Q){console.error(Q)}finally{}}},Uc=()=>{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}},$c=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...qn},setup(e){const{width:o,height:n}=t.inject(Pe,{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:yt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=t.ref(0),l=t.ref(0),d=t.ref(0),c=t.ref(0),h=t.ref(!1),y=t.ref();let f;const g=()=>new Promise(p=>{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),p()})}),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 g(),m(),S(),window.addEventListener("resize",B),b(),h.value=!0},{immediate:!0});const u=t.ref({});t.provide("scaleValue",u);const S=()=>{if(r){y.value.style.width="100%",y.value.style.height="auto",a("auto");return}const p=document.body.clientWidth,A=document.body.clientHeight,D=s.value||d.value,E=l.value||c.value,_=p/D;let O=A/E;(s.value!==1920||l.value!==1080)&&(O=l.value/s.value*p/E),u.value={widthScale:_,heightScale:O},y.value&&(y.value.style.transform=`scale(${_}, ${O})`),a(O)},B=Le.debounce(async()=>{await g(),S()},100),b=()=>{const p=window.MutationObserver;f=new p(B),f.observe(y.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},v=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return t.onMounted(()=>{h.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",B),v()}),{style:i,container:y,ready:h}}}),Ju="",Yc={id:"container",ref:"container"};function Kc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",Yc,[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 Ri=ve(ye($c,[["render",Kc],["__scopeId","data-v-b496b36e"]])),Lo={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},_o=Ce(Lo),Zc=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{..._o},setup(e,{expose:o}){Uc();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(()=>Ie(e.contextRequestUrl)),l=t.computed(()=>e.pageMode),d=t.computed(()=>e.theme),c=t.computed(()=>e.width),h=t.computed(()=>e.height),y=t.ref("");t.provide(Pe,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:y,width:c,height:h});const f=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",W=>{let K=W;n.value||(K=parseFloat(h.value)*W+"px"),f.value.height=K}),t.provide("isMobile",n.value),t.provide("getContainerMap",()=>e.containerMap),t.provide("getCombinationMap",()=>e.combinationMap);const g=t.ref(),m=new Map;console.log("globalModel",m);const u=W=>m.get(W),S=(W,K)=>{g.value=K,m.set(W,K)},B=()=>{g.value=null},b=W=>{let K=W;if(K){const ne=W.match(/\{(.+?)\}/g);if(ne!=null&&ne.length){let oe=ne[0].slice(1,-1).trim();const ae=oe.match(/\[(.+?)\]/g);let Q="";ae!=null&&ae.length&&(oe=oe.replace(ae[0],""),Q=ae[0].slice(1,-1).trim());const $=t.unref(i).find(ee=>ee.keyName===oe);if($){const ee=u($.id),{type:re,value:xe,RECORD:Se,recordData:Te}=ee||{};dt(re,Cr)?K=Se[Q]:dt(re,"select")?K=Te[Q]:K=xe}else K=""}}return K},v=new Map,p=W=>v.get(W),A=(W,K)=>{v.set(W,K)};t.provide(De,{getGlobalModel:u,setGlobalModel:S,clearInteractiveData:B,getRecordValueByKeyName:b,getRequestData:p,setRequestData:A,interactiveData:g});const D=t.ref({}),E=(W,K)=>{D.value[W]=K};t.provide(vt,{loadedData:D,setLoadedData:E});const _=[],O=()=>{_.pop()},R=W=>{_.push(W)},k=new Map,T=W=>k.get(W),C=(W,K)=>{k.set(W,K)};t.provide(pr,{popUseModalIds:O,pushUseModalIds:R,getModalModel:T,setModalModel:C});const I=e0(),x=new Set,w=(W,K)=>{x.add(W),I.on(W,ne=>typeof K[ne]=="function"&&K[ne]()),t.onBeforeUnmount(()=>{L(W)})},L=W=>{x.delete(W),I.off(W)},P=(W,K)=>{if(W==="PAGE"){const ne=_.length;let oe=[];if(ne===0)oe=[...x];else{const ae=_[ne-1];oe=[...T(ae)]}oe.forEach(ae=>{I.emit(ae,K)})}else I.emit(W,K)};t.provide(Vn,{onEvent:w,offEvent:L,emitEvent:P});const V=t.ref(0),U=()=>{V.value=t.unref(V)+1};t.provide(xr,{requestToken:U});const N=new Map,F=new Map,H=({requestFn:W=()=>{},sortNum:K=0,id:ne=""})=>{if(N.has(K)){const oe=N.get(K);oe==null||oe.push(W)}else N.set(K,[W]);F.set(ne,W)},z=W=>new Promise((K,ne)=>{const oe=W.map(ae=>ae());Promise.all(oe).then(ae=>{K(ae)}).catch(ae=>{ne(ae)})}),q=W=>new Promise(async(K,ne)=>{if(W){if(typeof W=="string"){const oe=F.get(W);if(typeof oe=="function"){const ae=ft.interceptors.response.use(Q=>(K(Q),Q),Q=>(ne(Q),Promise.reject(Q)));oe(),ft.interceptors.response.eject(ae)}}}else{const oe=Array.from(N);oe.sort((Q,$)=>$[0]-Q[0]);const ae=oe.length;try{e.pageMode!=="design"&&t.unref(V)>0;for(let Q=0;Q<ae;Q++){const $=oe[Q][1];await z($)}}catch(Q){console.error(Q)}finally{N.clear(),K(null)}}});t.provide(ze,{setRequest:H,touchRequest:q});const M=()=>{I.emit(tn)};t.provide(tn,{emitRefreshPage:M});const J=W=>{I.on(tn,()=>W()),t.onMounted(()=>{I.off(tn)})};return t.onBeforeUnmount(()=>{N==null||N.clear(),F==null||F.clear()}),o({touchRequest:q,getGlobalModel:u,onRefreshPage:J}),{providerConfig:a,configStyle:f}}}),eh="";function Qc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:t.normalizeStyle(e.configStyle)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const Ii=ve(ye(Zc,[["render",Qc],["__scopeId","data-v-b651b2cf"]])),Oo={...Ee,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:""},No=Ce(Oo),Li=["refreshData","click","valueChange"],Fo="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=",Mo="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==",zo=t.defineComponent({name:"EcanText",components:{Skeleton:en},props:{...No},setup(e,{expose:o}){const n=t.ref(!1),a=Be(e),r=t.ref({}),i=t.computed(()=>e.variableFontSize||"14px"),s=t.computed(()=>"-"+t.unref(i));t.watch(()=>[e.data,e.dataType],([I,x])=>{x==="static"&&(r.value=I)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c,getRequestData:h}=t.inject(De,{getGlobalModel:I=>{},setGlobalModel:(I,x)=>{},getRecordValueByKeyName:I=>{},getRequestData:I=>{}}),{setLoadedData:y}=t.inject(vt,{setLoadedData:(I,x)=>{}}),f=t.computed(()=>{let I="";if(e.gradientShow){const{gradientColor:x,gradientOffset:w,gradientAngle:L,color:P}=e;I+=`background: linear-gradient(${L}, ${P}, ${x||"transparent"} ${w*100}%);-webkit-background-clip: text;color: transparent;`}return I}),g=t.computed(()=>{const I={};if(e.gradientShow){const{gradientColor:x,gradientOffset:w,gradientAngle:L,color:P}=e,V=x||"transparent";I.background=`linear-gradient(${L}, ${P}, ${V} ${w*100}%)`,I["-webkit-background-clip"]="text",I.color="transparent"}return I}),m=t.computed(()=>{var U;if(t.unref(n))return"NaN";const I=t.unref(r),x=e.increaseColor||e.color,w=e.declineColor||e.color;let L=e.text;L=L==null?void 0:L.replace(/\n|\\n/g,"<br/>"),L=L==null?void 0:L.replace(/\s(?!\{) | (?!\})\s/g," ");const P=L.match(/\{(.+?)\}/g)||[];let V="";if(P==null||P.length===0){if(L&&e.format==="percentage"&&!isNaN(+L)){const N=parseFloat(L),F=N*100,H=u(F.toFixed(2));N>=0?L=`<span style="color: ${H||x||"#ED6643"};font-size:${t.unref(i)};display: inline-block;${t.unref(f)}">
|
|
99
|
+
`;let i=e;if(n!=null&&n.length){for(const l of n){const d=Ie(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(i=i.replace(l,d))}return`${r}{text|${i}}`}else return e},Di=(e,o)=>{const{props:n,componentList:a,getGlobalModel:r}=e,{graphicConfig:i={},startValue:s,endValue:l}=n,d=Yc({graphicConfig:i,startValue:s,endValue:l,componentList:a,getGlobalModel:r}),{dimensions:c,dataset:h}=o,{classificationList:y=[]}=i,g=y.find(m=>m.show).label||"";for(const m of d)c.includes(m)||c.push(m);c.sort((m,u)=>ye(m).isBefore(ye(u))?-1:1);for(const m of h){const{data:u}=m;if(u!=null&&u.length){const S=[];for(const B of d)if(u.find(b=>b[g]!==B)){const b=Le.cloneDeep(u[0]);for(const v in b)v===g?b[v]=B:b[v]=0;S.push(b)}m.data.push(...S),m.data.sort((B,b)=>ye(B[g]).isBefore(ye(b[g]))?-1:1)}}};function Yc(e){const{startValue:o,endValue:n,componentList:a,graphicConfig:r,getGlobalModel:i}=e,s=Ri(o),l=Ri(n),d=[];if(s&&l){const c=a.find(y=>y.keyName===s.keyName),h=a.find(y=>y.keyName===l.keyName);if(c&&h){const y=i(c.id),f=i(h.id),{classificationList:g=[]}=r,m=g.find(u=>u.show);if(m){let u="YYYY-MM";switch(m.name){case"the_year":u="YYYY";break;case"the_month":u="MM";break;case"the_day":u="DD";break;case"the_date":u=(m==null?void 0:m.dateFormat)||u;break}const S=Kc(u);if(u){const B=t.unref(y[s.field]),b=t.unref(f[l.field]);let v=ye(B);const x=ye(b);for(d.push(x.format(u));v.isBefore(x);)d.push(v.format(u)),v=v.add(1,S)}}}}return d}function Ri(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 Kc(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 Cn=(e,o)=>{const n={dayjs:ye,...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},Ie=(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 h=c.slice(1,-1).trim();const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,f=h.match(y);for(let g=0;g<f.length;g++){const m=f[g],u=s[m];u!=null&&typeof u!="function"&&(h=h.replace(m,u))}(/\(.*\)/g.test(h)||/[+/\\*]/g.test(h))&&(h=Cn(h,n)),e=e.replace(c,h)}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},Pe=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:d,touchEventId:c}=t.inject(qe,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:h}=t.inject(De,{getGlobalModel:m=>{}}),y=Ie(n),f=async(m={})=>{if(!y||!a||!r)return;let u={};i.forEach(x=>{const{key:w,value:T}=x;if(typeof T=="object"&&T!=null&&T.id){let E={};const{id:I,prop:O,propKey:R,operate:k}=T;I==="THIS"?E=h(t.unref(c))||{}:E=h(I)||{};const D=t.unref(E[O]);let C=null;if(["date","range"].some(p=>dt(E==null?void 0:E.type,p))){const{value:p,type:A,mode:_}=k||{};if(p&&A&&_)switch(A){case"add":C=t.unref(D).add(p,_);break;case"minus":C=t.unref(D).subtract(p,_);break}C==null&&(C=t.unref(D)),C=(C==null?void 0:C.format((R==null?void 0:R.trim())||E.format))||""}else Object.prototype.toString.call(D)==="[object Object]"?R?C=D[R]:C=O?D[O]:D:dt(E==null?void 0:E.type,"select")&&t.unref(D)&&O&&Array.isArray(t.unref(D))?C=t.unref(D).map(p=>Object.prototype.hasOwnProperty.call(p,O)?p[O]:p):C=D;u[w]=C}else typeof T=="string"&&(u[w]=Ie(T))}),u={...window.config.requestParams,...m,...u};let S="";const B=Object.keys(u),b=B.length-1,v=B.length;B.forEach((x,w)=>{let T=u[x];Object.prototype.toString.call(T)==="[object Object]"&&(T=JSON.stringify(T)),w===0?v!==1?S+=`?${x}=${T}&`:S+=`?${x}=${T}`:w===b?S+=`${x}=${T}`:S+=`${x}=${T}&`});try{const x=["get","head"].includes(a),w={};let T=x?y+S:y;u.dataSqlId&&!T.includes("dataSqlId")&&(T+=`${T.includes("?")?"&":"?"}dataSqlId=${u.dataSqlId}`),Object.prototype.hasOwnProperty.call(u,"signal")&&(w.signal=u.signal);const E=await ft({baseURL:t.unref(d)||"",url:T,method:a,headers:r,data:x?{}:u,...w});return o(E),E}catch(x){console.error(x)}},g=l&&setInterval(f,s*1e3);return t.onUnmounted(()=>{clearInterval(g)}),f},At=(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 y=[];for(let g=0;g<d;g++){const m=r[g],{label:u,value:S}=m,B={...e[0],value:e[0][S]};i.add(u),y.push(B)}const f=e[0][a]||"";s.set(f,y)}else for(let y=0;y<l;y++){const f=e[y],g=f[a];i.add(g);for(let m=0;m<d;m++){const u=r[m],{label:S,value:B}=u,b={...f,value:f[B]||0};if(s.has(S)){const v=s.get(S);v.push(b),s.set(S,v)}else s.set(S,[b])}}const c=Array.from(i),h=[];for(const[y,f]of s)h.push({name:y,data:f});return{dimensions:c,dataset:h}},ut=(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},Ii=(e,o)=>{const n=`${wr}/preview?pageId=${o}`,a=`${wr}/${o}`;return e==="preview"?n:a},lt=(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=Cn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},Ke=(e={})=>{const{requestToken:o}=t.inject(br,{requestToken:()=>{}}),{setLoadedData:n}=t.inject(vt,{setLoadedData:(g,m)=>{}}),{getGlobalModel:a}=t.inject(De,{getGlobalModel:g=>{}});e.dataType==="indicator"&&o();const r=g=>{const{around:m,unit:u,id:S}=g;let B="";const{pageMode:b="",componentList:v=[]}=(e==null?void 0:e.graphicConfig)||{};let x=null,w=null;if(b==="design"){const T=v==null?void 0:v.find(C=>C.id===S);if(!T)return[];const{interval:E,intervalUnit:I,startTime:O,endTime:R,operate:k,useCurrentTime:D}=T||{};if(D&&(x=ye().subtract(E,I),w=ye()),O&&(x=ye(O)),R&&(w=ye(R)),k){const{type:C,value:L,mode:p}=k;switch(C){case"add":x=x&&x.add(L,p),w=w&&w.add(L,p);break;case"minus":x=x&&x.subtract(L,p),w=w&&w.subtract(L,p)}}}else{const T=a(S)||{};t.unref(T.startTime)&&(x=ye(t.unref(T.startTime))),t.unref(T.endTime)&&(w=ye(t.unref(T.endTime)))}if(x&&w){const T=w.diff(x,u.toLowerCase());B=`${m==="before"?"-":""}${T+1}`}return B?[B]:[]},i=(g,m)=>Object.prototype.hasOwnProperty.call(g,m),s=g=>{const{calcWays:m=[],dateCalcTypes:u=[],activeKey:S,componentId:B=""}=g;if(S===5&&(m!=null&&m.length)&&(u!=null&&u.length)&&B){const b=m[0].split("-");(b==null?void 0:b.length)>1&&b[0]==="rangeValue"&&(g.calcWays=r({around:b[1],unit:u[0],id:B})),delete g.radioValue}i(g,"dataType")&&(g.fieldType==="DATE"&&(g.label=g.fieldName),g.dataType==="component"&&(g.fieldValue="${"+g.fieldValue+"}"),delete g.dataType),i(g,"activeKey")&&delete g.activeKey,i(g,"radioValue")&&delete g.radioValue,i(g,"indexCode")&&(g.hrpIndexCode=g.indexCode,delete g.indexCode),i(g,"indexCodeNum")&&(g.hrpIndexCodeNum=g.indexCodeNum,delete g.indexCodeNum),g.dataType!=="component"&&g.useCurrentTime&&(g.fieldValue=ye().format(g.dateFormat)),delete g.useCurrentTime},l=g=>{const m=[];return g!=null&&g.length&&Le.cloneDeep(g).forEach(u=>{if(u.join&&u.conditions){const S=!u.conditions.some(B=>B.join&&B.conditions);u.conditions.forEach((B,b)=>{s(B),S?b<u.conditions.length-1?m.push({join:u.join,...B}):m.push(B):B.join&&B.conditions?m.push({conditions:l([B]),join:u.join}):m.push(B)})}else s(u),m.push(u)}),m},d=(g={},m)=>{if(g!=null&&g.sortCpnts&&m){const A=f(g);A&&(m.sort=A)}const{label:u,name:S,location:B,show:b,indexCode:v,indexCodeNum:x,calcType:w="COLUMN",builtInFormula:T,builtInValueSource:E,builtInCalcWay:I,formula:O,conditions:R,aggregate:k,distinct:D,dimByCount:C}=g;let L;if(R&&(L=l(R)),w==="COMPONENT"){const A={};return y(A,E),{label:u.trim(),columnName:S,show:b,calcType:w,componentAlias:I,componentValue:A.fieldValue||null}}const p={label:u.trim(),columnName:S,location:B,show:b,calcType:w,hrpIndexCode:v,hrpIndexCodeNum:x,aggregate:k,builtInFormula:T,builtInValueSource:E,formula:O,conditions:L};if(T==="DATE_OFFSET"){const A=I.split("-");if((A==null?void 0:A.length)===3){let _=A[0];return A[2]==="before"&&A[0]!=="0"&&(_=`-${A[0]}`),{...p,calcWays:[_],dateCalcTypes:[A[1]]}}}else return S==="the_count"&&(p.calcType="AGGREGATE",p.distinct=!!D,p.typeGuid=C),{...p,builtInCalcWay:I}},c=g=>{const m=[];for(const u of g)u.conditions?m.push(...c(u.conditions)):(u==null?void 0:u.dataType)==="component"&&m.push(u);return m},h=g=>{if(!g)return[];const{controlList:m=[],classificationList:u=[],rowHeaderList:S=[],dimensionList:B=[],seriesList:b=[],leftAxisList:v=[],rightAxisList:x=[],queryColumnList:w=[],indicators:T=[]}=g,E=[...u,...S,...B,...b,...v,...x,...w,...T],I=[];for(const D of E){const C=c((D==null?void 0:D.conditions)||[]);if(C!=null&&C.length){const L=C.filter(p=>(p==null?void 0:p.dataType)==="component").map(p=>{const A={};return p!=null&&p.dateFormat&&(A.format=p.dateFormat),{conditionKey:p.fieldName,conditionLabel:p.fieldName,conditionName:p.fieldName,conditionValueType:p.fieldType,id:p.componentId,keyName:p.fieldValue,rule:p.rule,notGlobal:!0,indexCode:p.indexCode,typeGuid:p.typeGuid,indexCodeNum:p.indexCodeNum,...A}});if(L!=null&&L.length)for(const p of L)I.find(A=>A.keyName===p.keyName)||I.push(p)}}const O=m.concat(I),R=O.length,k=[];for(let D=0;D<R;D++){const C=O[D];if((C==null?void 0:C.conditionKey)==="parentCode")continue;const{id:L,keyName:p,conditionLabel:A,conditionKey:_,conditionValueType:P,prop:V,rule:U="NONE",notGlobal:N=!1,format:F,modelKey:H,indexCode:z,typeGuid:q,indexCodeNum:M,dataType:J="component",customValue:W}=C;let Y=p||L;Y&&V&&(Y+=`-${V}`);let ne=U;ne==="NONE"&&(["startTime","endTime"].includes(V)?ne=V==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":p!=null&&p.includes("startTime")?ne=V==="GREATER_EQUAL":p!=null&&p.includes("endTime")?ne=V==="LESS_EQUAL":ne="EQUAL");const oe={rule:ne,label:A,fieldName:_,fieldValue:"",valueType:P,alias:Y,globalCondition:!N,indexCode:z,typeGuid:q,indexCodeNum:M};y(oe,L,{prop:V,dateFormat:F,modelKey:H,keyName:p}),J===""&&(oe.fieldValue=W||""),k.push(oe)}for(let D=k.length-1;D>=0;D--){const C=k[D];C.globalCondition||k.find(p=>p.alias===C.alias&&p.globalCondition)&&k.splice(D,1)}return k};function y(g,m,u){var k,D;const S=a(m)||{},{prop:B="",dateFormat:b="",modelKey:v="",keyName:x=""}=u||{},{value:w,format:T="YYYY-MM-DD",type:E="",useCurrentTime:I,RECORD:O}=S||{},R=b||T;if(dt(S.type,"date"))I?w?g.fieldValue=(k=t.unref(w))==null?void 0:k.format(R):g.fieldValue=ye().format(R):g.fieldValue=(D=t.unref(w))==null?void 0:D.format(R),g.dateFormat=R;else if(E==="ecanRangePicker"){let C=B;if(!B){const p=x&&x.split("-");p!=null&&p.length&&(C=p[p.length-1])}if(!C)return;let L=null;t.unref(S[C])&&(L=ye(t.unref(S[C]))),L&&(g.fieldValue=L==null?void 0:L.format(R)),g.dateFormat=R}else dt(E,Ar)?v&&O?g.fieldValue=O[v]:!v&&O?g.fieldValue=O.value:g.fieldValue=t.unref(w):g.fieldValue=t.unref(w)}const f=g=>{const{sortCpnts:m=[]}=g;let u,S="";for(const B of m){const b=a(B)||{},{type:v,RECORD:x}=b;if(dt(v,"image")&&dt(x==null?void 0:x.value,["asc","desc"])){S=x.value.toUpperCase();break}}return S&&(u={label:g.label,columnName:g.name,order:S,type:"NORMAL"}),u};return async(g={})=>{var J,W,Y,ne,oe,ae;n(e.id,!1);const{graphicConfig:m,type:u,isGroupTable:S=!1}=e;let{source:B,dataViewId:b,plugin:v="1",layer:x,chartType:w,classificationList:T=[],rowHeaderList:E=[],dimensionList:I=[],seriesList:O=[],leftAxisList:R=[],rightAxisList:k=[],queryColumnList:D=[],indicators:C=[],controlList:L=[],formFields:p={},idxLibMode:A,preview:_=!1}=m||{},P=[];(m==null?void 0:m.pageMode)==="design"?P=(m.sqlConditions??[]).map(Q=>{const $=Q.rule||"EQUAL",ee={};return i(Q,"globalCondition")||(ee.globalCondition=!0),{...Q,rule:$==="NONE"?"EQUAL":$,...ee}}):P=h(m);for(const Q of P)i(Q,"indexCode")&&(Q.hrpIndexCode=Q.indexCode,delete Q.indexCode),i(Q,"indexCodeNum")&&(Q.hrpIndexCodeNum=Q.indexCodeNum,delete Q.indexCodeNum);x==null&&(dt(u,["table"])?x="1":dt(u,["select","checkbox","radio"])?x="3":x="2");let V,U="";if(Array.isArray(T)&&T.length>0){const Q=T.length;for(let $=0;$<Q;$++){const ee=T[$]||{},{label:re="",name:xe="",show:Se=!1,sort:Be,customGroup:Oe,conditions:we,dateFormat:Ae,typeGuid:Ve="",truncations:Ue=[]}=ee;if(Se||Q===1){U=Ve,V={label:re.trim(),columnName:xe,show:Se,sort:f(ee)||Be,customGroup:Oe,conditions:l(we),typeGuid:Ve},Ae&&(V.dateFormat=Ae),xe==="the_date"&&!V.dateFormat&&(V.dateFormat="YYYY-MM");const He={};if(Array.isArray(Ue)&&Ue.length>0){const We=Ue.length;for(let Ge=0;Ge<We;Ge++){const ht=Ue[Ge]||{},{rule:tt="",num:nt=0,name:G=""}=ht;tt&&nt&&(He.num=nt,He.rule=tt,G&&(He.otherGroupName=G))}}(J=Object.keys(He))!=null&&J.length&&(V.truncation=He);break}}}let N;if(Array.isArray(O)&&O.length>0){const Q=O.length;for(let $=0;$<Q;$++){const ee=O[$]||{},{label:re="",name:xe="",show:Se=!1,sort:Be,customGroup:Oe,conditions:we}=ee;if(Se||Q===1){N={label:re.trim(),columnName:xe,show:Se,sort:Be,customGroup:Oe,conditions:l(we)};break}}}const F=[];R==null||R.forEach(Q=>{Q.location="LEFT",F.push(d(Q,V))}),k==null||k.forEach(Q=>{Q.location="RIGHT",F.push(d(Q,V))}),C==null||C.forEach(Q=>{Q.location="LEFT",F.push(d(Q,V))});const H=[];D==null||D.forEach(Q=>{const{label:$,name:ee,location:re,show:xe,indexCode:Se,sort:Be,typeGuid:Oe,indexCodeNum:we}=Q;let Ae=Be;if(g.sort){const{field:Ve,order:Ue}=g.sort;let He=F.find(We=>We.label===Ve);!He&&$===Ve&&(He=Q),He&&(Ae={columnName:He.columnName,label:g.sort.field,order:Ue.toUpperCase(),type:"NORMAL"})}H.push({label:$,columnName:ee,location:re,show:xe,sort:Ae,calcType:"COLUMN",hrpIndexCode:Se,hrpIndexCodeNum:we,typeGuid:Oe})});const z=[];let q=[];if(Array.isArray(E)&&E.length>0?q=E:Array.isArray(I)&&I.length>0&&(q=I),q!=null&&q.length){const Q=q.length;for(let $=0;$<Q;$++){const ee=q[$]||{},{label:re="",name:xe="",show:Se=!1,sort:Be,customGroup:Oe,conditions:we,truncations:Ae,typeGuid:Ve="",dateFormat:Ue}=ee;let He=Be;if(g.sort){const{field:ht,order:tt}=g.sort;let nt=F.find(G=>G.label===ht);!nt&&ee.label===ht&&(nt=ee),nt&&(He={columnName:nt.columnName,label:g.sort.field,order:tt.toUpperCase(),type:"NORMAL"})}const We={label:re.trim(),columnName:xe,show:Se,sort:He,customGroup:Oe,conditions:l(we),typeGuid:Ve};Ue&&(We.dateFormat=Ue),xe==="the_date"&&!We.dateFormat&&(We.dateFormat="YYYY-MM");const Ge={};if(Array.isArray(Ae)&&Ae.length>0){const ht=Ae.length;for(let tt=0;tt<ht;tt++){const nt=Ae[tt]||{},{rule:G="",num:Z=0,name:X=""}=nt;G&&Z&&(Ge.num=Z,Ge.rule=G,X&&(Ge.otherGroupName=X))}}(W=Object.keys(Ge))!=null&&W.length&&(We.truncation=Ge),z.push(We)}}if(dt(u,["text","proportion","counter"])&&(w="zb"),S){if(z.length===0||F.length===0)return;w="grouptable"}else{if(x==="1"&&H.length===0)return;if(x==="2"&&F.length===0)return;if(x==="3"&&(!U||!p.labelField||!p.valueField))return;if(x==="3"&&u==="ecanDataSelect"&&F.length===0)return}I!=null&&I.length&&(x="1",w="grouptable");let M=(Y=window==null?void 0:window.config)==null?void 0:Y.pageId;if(!M){const{pathname:Q}=window==null?void 0:window.location;if(Q){const $=Q.split("/");$!=null&&$.length&&(M=$[$.length-1])}}if((ne=Object.keys(p))!=null&&ne.length){const Q=L.find(ee=>ee.conditionKey==="parentCode"),$={};if(Q){const ee=a(Q.id)||{};if(ee!=null&&ee.itemCodes)$.parentItemCodes=ee.itemCodes;else return}u==="ecanDataSelect"&&($.indicatorList=F.filter(ee=>ee.show));try{return await ft.post(`${Cr}/diagram/formData`,{source:B,dataViewId:b,plugin:"4",layer:x,chartType:"normalSelect",rangeIndexTypeGuid:U,type:u==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:p.labelField,valueField:p.valueField,pageId:M,sqlConditions:P,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...$},{headers:{Authentication:(oe=window==null?void 0:window.config)==null?void 0:oe.indicatorToken,operateContext:Sr}})}catch(ee){console.error(ee)}finally{}}else try{return await ft.post(`${Cr}/diagram`,{source:B,dataViewId:b,plugin:v,layer:x,chartType:w,classification:V,series:N,indicatorList:F,queryColumns:S?[]:H,pageFlag:!0,pageId:M,sqlConditions:P.map($=>{const{fieldValue:ee}=$,re={};return ee&&Array.isArray(ee)&&(re.fieldValue=JSON.stringify(ee)),{...$,...re}}),idxLibMode:A,preview:_,rowHeaders:z,keyName:e.keyName},{headers:{Authentication:(ae=window==null?void 0:window.config)==null?void 0:ae.indicatorToken,operateContext:Sr}})}catch(Q){console.error(Q)}finally{}}},Zc=()=>{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}},Qc=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...qn},setup(e){const{width:o,height:n}=t.inject(qe,{width:null,height:null}),a=t.inject("setPageHeight",x=>{}),r=t.inject("isMobile",!1),i=t.computed(()=>{const x={};return r||(x.width=o.value,x.height=n.value),{...x,backgroundColor:e.backgroundColor,backgroundImage:ut(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=t.ref(0),l=t.ref(0),d=t.ref(0),c=t.ref(0),h=t.ref(!1),y=t.ref();let f;const g=()=>new Promise(x=>{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),x()})}),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 g(),m(),S(),window.addEventListener("resize",B),b(),h.value=!0},{immediate:!0});const u=t.ref({});t.provide("scaleValue",u);const S=()=>{if(r){y.value.style.width="100%",y.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,w=document.body.clientHeight,T=s.value||d.value,E=l.value||c.value,I=x/T;let O=w/E;(s.value!==1920||l.value!==1080)&&(O=l.value/s.value*x/E),u.value={widthScale:I,heightScale:O},y.value&&(y.value.style.transform=`scale(${I}, ${O})`),a(O)},B=Le.debounce(async()=>{await g(),S()},100),b=()=>{const x=window.MutationObserver;f=new x(B),f.observe(y.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},v=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return t.onMounted(()=>{h.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",B),v()}),{style:i,container:y,ready:h}}}),rh="",Jc={id:"container",ref:"container"};function Xc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",Jc,[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 Li=ve(me(Qc,[["render",Xc],["__scopeId","data-v-b496b36e"]])),Lo={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},_o=Ce(Lo),ed=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{..._o},setup(e,{expose:o}){Zc();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(()=>Ie(e.contextRequestUrl)),l=t.computed(()=>e.pageMode),d=t.computed(()=>e.theme),c=t.computed(()=>e.width),h=t.computed(()=>e.height),y=t.ref("");t.provide(qe,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:y,width:c,height:h});const f=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",W=>{let Y=W;n.value||(Y=parseFloat(h.value)*W+"px"),f.value.height=Y}),t.provide("isMobile",n.value),t.provide("getContainerMap",()=>e.containerMap),t.provide("getCombinationMap",()=>e.combinationMap);const g=t.ref(),m=new Map;console.log("globalModel",m);const u=W=>m.get(W),S=(W,Y)=>{g.value=Y,m.set(W,Y)},B=()=>{g.value=null},b=W=>{let Y=W;if(Y){const ne=W.match(/\{(.+?)\}/g);if(ne!=null&&ne.length){let oe=ne[0].slice(1,-1).trim();const ae=oe.match(/\[(.+?)\]/g);let Q="";ae!=null&&ae.length&&(oe=oe.replace(ae[0],""),Q=ae[0].slice(1,-1).trim());const $=t.unref(i).find(ee=>ee.keyName===oe);if($){const ee=u($.id),{type:re,value:xe,RECORD:Se,recordData:Be}=ee||{};dt(re,Ar)?Y=Se[Q]:dt(re,"select")?Y=Be[Q]:Y=xe}else Y=""}}return Y},v=new Map,x=W=>v.get(W),w=(W,Y)=>{v.set(W,Y)};t.provide(De,{getGlobalModel:u,setGlobalModel:S,clearInteractiveData:B,getRecordValueByKeyName:b,getRequestData:x,setRequestData:w,interactiveData:g});const T=t.ref({}),E=(W,Y)=>{T.value[W]=Y};t.provide(vt,{loadedData:T,setLoadedData:E});const I=[],O=()=>{I.pop()},R=W=>{I.push(W)},k=new Map,D=W=>k.get(W),C=(W,Y)=>{k.set(W,Y)};t.provide(vr,{popUseModalIds:O,pushUseModalIds:R,getModalModel:D,setModalModel:C});const L=as(),p=new Set,A=(W,Y)=>{p.add(W),L.on(W,ne=>typeof Y[ne]=="function"&&Y[ne]()),t.onBeforeUnmount(()=>{_(W)})},_=W=>{p.delete(W),L.off(W)},P=(W,Y)=>{if(W==="PAGE"){const ne=I.length;let oe=[];if(ne===0)oe=[...p];else{const ae=I[ne-1];oe=[...D(ae)]}oe.forEach(ae=>{L.emit(ae,Y)})}else L.emit(W,Y)};t.provide(Vn,{onEvent:A,offEvent:_,emitEvent:P});const V=t.ref(0),U=()=>{V.value=t.unref(V)+1};t.provide(br,{requestToken:U});const N=new Map,F=new Map,H=({requestFn:W=()=>{},sortNum:Y=0,id:ne=""})=>{if(N.has(Y)){const oe=N.get(Y);oe==null||oe.push(W)}else N.set(Y,[W]);F.set(ne,W)},z=W=>new Promise((Y,ne)=>{const oe=W.map(ae=>ae());Promise.all(oe).then(ae=>{Y(ae)}).catch(ae=>{ne(ae)})}),q=W=>new Promise(async(Y,ne)=>{if(W){if(typeof W=="string"){const oe=F.get(W);if(typeof oe=="function"){const ae=ft.interceptors.response.use(Q=>(Y(Q),Q),Q=>(ne(Q),Promise.reject(Q)));oe(),ft.interceptors.response.eject(ae)}}}else{const oe=Array.from(N);oe.sort((Q,$)=>$[0]-Q[0]);const ae=oe.length;try{e.pageMode!=="design"&&t.unref(V)>0;for(let Q=0;Q<ae;Q++){const $=oe[Q][1];await z($)}}catch(Q){console.error(Q)}finally{N.clear(),Y(null)}}});t.provide(ze,{setRequest:H,touchRequest:q});const M=()=>{L.emit(tn)};t.provide(tn,{emitRefreshPage:M});const J=W=>{L.on(tn,()=>W()),t.onMounted(()=>{L.off(tn)})};return t.onBeforeUnmount(()=>{N==null||N.clear(),F==null||F.clear()}),o({touchRequest:q,getGlobalModel:u,onRefreshPage:J}),{providerConfig:a,configStyle:f}}}),lh="";function td(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:t.normalizeStyle(e.configStyle)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const _i=ve(me(ed,[["render",td],["__scopeId","data-v-b651b2cf"]])),Oo={...Ee,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:""},No=Ce(Oo),Oi=["refreshData","click","valueChange"],Fo="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=",Mo="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==",zo=t.defineComponent({name:"EcanText",components:{Skeleton:Mt},props:{...No},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],([L,p])=>{p==="static"&&(r.value=L)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c,getRequestData:h}=t.inject(De,{getGlobalModel:L=>{},setGlobalModel:(L,p)=>{},getRecordValueByKeyName:L=>{},getRequestData:L=>{}}),{setLoadedData:y}=t.inject(vt,{setLoadedData:(L,p)=>{}}),f=t.computed(()=>{let L="";if(e.gradientShow){const{gradientColor:p,gradientOffset:A,gradientAngle:_,color:P}=e;L+=`background: linear-gradient(${_}, ${P}, ${p||"transparent"} ${A*100}%);-webkit-background-clip: text;color: transparent;`}return L}),g=t.computed(()=>{const L={};if(e.gradientShow){const{gradientColor:p,gradientOffset:A,gradientAngle:_,color:P}=e,V=p||"transparent";L.background=`linear-gradient(${_}, ${P}, ${V} ${A*100}%)`,L["-webkit-background-clip"]="text",L.color="transparent"}return L}),m=t.computed(()=>{var U;if(t.unref(n))return"NaN";const L=t.unref(r),p=e.increaseColor||e.color,A=e.declineColor||e.color;let _=e.text;_=_==null?void 0:_.replace(/\n|\\n/g,"<br/>"),_=_==null?void 0:_.replace(/\s(?!\{) | (?!\})\s/g," ");const P=_.match(/\{(.+?)\}/g)||[];let V="";if(P==null||P.length===0){if(_&&e.format==="percentage"&&!isNaN(+_)){const N=parseFloat(_),F=N*100,H=u(F.toFixed(2));N>=0?_=`<span style="color: ${H||p||"#ED6643"};font-size:${t.unref(i)};display: inline-block;${t.unref(f)}">
|
|
100
100
|
<div class="percentage-img-box">
|
|
101
|
-
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${H||
|
|
101
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${H||p||"#ED6643"} ${t.unref(i)} 0px)`};" src="${Fo}"/>
|
|
102
102
|
</div>
|
|
103
103
|
<span style="color: ${H||e.color};${t.unref(f)}">${Math.abs(+F).toFixed(2)}%</span>
|
|
104
|
-
</span>`:
|
|
104
|
+
</span>`:_=`<span style="color: ${H||A||"#6ACB97"};font-size:${t.unref(i)};display: inline-block;${t.unref(f)}">
|
|
105
105
|
<div class="percentage-img-box">
|
|
106
|
-
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${H||
|
|
106
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${H||A||"#6ACB97"} ${t.unref(i)} 0px)`};" src="${Mo}"/>
|
|
107
107
|
</div>
|
|
108
108
|
<span style="color: ${H||e.color};${t.unref(f)}">${e.minusSignShow?"-":""}${Math.abs(+F).toFixed(2)}%</span>
|
|
109
|
-
</span>`}V=
|
|
109
|
+
</span>`}V=_}for(let N=0;N<P.length;N++){const F=P[N],H=(U=F==null?void 0:F.slice(1,F.length-1))==null?void 0:U.trim();let z=H;const q=H.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let J=0;J<q.length;J++){const W=q[J],Y=L[W];Y&&(z=H.replace(W,c(String(Y))||Y))}if(/\(.*\)/g.test(z)){const J=Cn(z);J!=null&&(z=J)}let M=z;if(M===H&&(M=e.variableDefaultValue),M!=null){const J=e.format;if(J==="percentage")if(M=+M,isNaN(M))_=_.replace(F,`<span style="color:${u("0.00")||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">0%</span>`);else if(M>=0){M=M*100;const W=u(M.toFixed(2));_=_.replace(F,`<span style="color: ${W||p||"#ED6643"};font-size:${t.unref(i)};display: inline-block;${t.unref(f)}">
|
|
110
110
|
<div class="percentage-img-box">
|
|
111
|
-
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${W||
|
|
111
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${W||p||"#ED6643"} ${t.unref(i)} 0px)`};" src="${Fo}"/>
|
|
112
112
|
</div>
|
|
113
113
|
<span style="color: ${W||e.color};${t.unref(f)}">${Math.abs(+M).toFixed(2)}%</span>
|
|
114
|
-
</span>`)}else{M=M*100;const W=u(M.toFixed(2));
|
|
114
|
+
</span>`)}else{M=M*100;const W=u(M.toFixed(2));_=_.replace(F,`<span style="color: ${W||A||"#6ACB97"};font-size:${t.unref(i)};display: inline-block;${t.unref(f)}">
|
|
115
115
|
<div class="percentage-img-box">
|
|
116
|
-
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${W||
|
|
116
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${W||A||"#6ACB97"} ${t.unref(i)} 0px)`};" src="${Mo}"/>
|
|
117
117
|
</div>
|
|
118
118
|
<span style="color: ${W||e.color};${t.unref(f)}">${e.minusSignShow?"-":""}${Math.abs(+M).toFixed(2)}%</span>
|
|
119
|
-
</span>`)}else e.format==="percent"?(M=+M,isNaN(M)||(M=(M*100).toFixed(2),L=L.replace(F,`<span style="color:${u(M)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${M}%</span>`))):e.format==="money"?(M=+M,isNaN(M)||(M=Io(M),L=L.replace(F,`<span style="color:${u(M)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${M}</span>`))):J==="thousands"?(M=+M,isNaN(M)||(M=Hc(M),L=L.replace(F,`<span style="color:${u(M)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${M}</span>`))):L=L.replace(F,`<span style="color:${u(M)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${M}</span>`)}}if(V||(V=`<span style="color: ${u(L)};${t.unref(f)}">${L}</span>`),e.unitShow&&e.unitText){const{unitTop:N,unitLeft:F}=e;let H="position:relative;";N&&(H+=`top:${N};`),F&&(H+=`margin-left:${F};`),V+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${H};${t.unref(f)}'>${e.unitText}</span>`}return V});function u(I){let x="",w=!1;const{targetValue:L,targetShow:P,notExpectColor:V}=e;if(P){switch(e.targetRule){case"equal":I!==L&&(w=!0);break;case"greater":I<=L&&(w=!0);break;case"greater_equal":I<L&&(w=!0);break;case"less":I>=L&&(w=!0);break;case"less_equal":I>L&&(w=!0);break}w&&(x=V)}return x}const{pageMode:S}=t.inject(Pe,{pageMode:"normal"}),B=qe(e),b=t.ref(!1),v=async()=>{var I;try{b.value=!0;const x=await B();r.value=((I=x==null?void 0:x.data)==null?void 0:I.data)||{}}catch(x){console.error(x)}finally{b.value=!1}},p=(I={})=>{r.value=I},A=I=>{const x=e.id,w=l(x);d(x,{...w,value:I||"",RECORD:I||""})},D=()=>{A("")},E=Ke(e),_=async()=>{var I,x;try{b.value=!0;const w=await E(),{data:L}=(w==null?void 0:w.data)||{};if(L){n.value=!1;const{columns:P=[],rows:V=[]}=((I=w==null?void 0:w.data)==null?void 0:I.data)??{},{graphicConfig:U}=e;let N={};if(P.length>0)if((x=U==null?void 0:U.dimensionList)!=null&&x.length){const F=P[0];F&&(V!=null&&V.length)&&(N={value:V[0][F]})}else{const F=P.find(H=>!!H);F&&(N={value:isNaN(V[F])?0:V[F]||0})}A(N==null?void 0:N.value),p(N)}else n.value=!0,A("NaN"),p({value:"NaN"})}catch(w){console.error(w)}finally{b.value=!1,y(e.id,!0)}},O=()=>{switch(e.dataType){case"indicator":_();break;case"request":{const{openCustomRequestData:I,customRequestName:x,customRequestField:w}=e;if(I||I===void 0)v();else{const L=h(x);L&&(r.value={[w]:L[w]})}break}}},{setRequest:R}=t.inject(ze,{setRequest:({id:I,sortNum:x,requestFn:w})=>{}});typeof R=="function"&&R({id:e.id,requestFn:O,sortNum:e.requestSort}),Oe(e,{refreshData:O,resetRecord:D}),o({refreshData:O});const k=Re(e),T=k("click",()=>{const I=document.getElementsByClassName(`ecan-text_${e.id}`);if(I!=null&&I.length&&A(I[0].innerText),setTimeout(()=>{A("")},0),!e.linkPage&&!e.href)return;const x=e.linkPage||"",w=Di(t.unref(S),x),L=e.href;let P=L||w;P=Ie(P);const V=e.target;V&&(V!=="event"?window.open(P,"_"+V):window.parent.postMessage({type:"openPage",url:L},"*"))}),C=k("valueChange",()=>{});return t.watch(()=>m.value,(I,x)=>{I!==x&&C()}),{style:a,myText:m,loading:b,click:T,textIndent:s,vFontSize:i,gradientStyle:g}}}),_i=()=>{t.useCssVars(e=>({"3158f1cb":e.vFontSize,bc355ad8:e.textIndent,"702547ec":e.percentageSide}))},Oi=zo.setup;zo.setup=Oi?(e,o)=>(_i(),Oi(e,o)):_i;const nh="",Jc=["innerHTML"];function Xc(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,Jc))}const Ni=ve(ye(zo,[["render",Xc],["__scopeId","data-v-37b93a95"]])),ed=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),ah="",td={class:"red"};function nd(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",td,t.toDisplayString(e.text),1)}const Fi=ve(ye(ed,[["render",nd],["__scopeId","data-v-4dd9c03e"]])),Po={...Ee,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"}},qo=Ce(Po),Mi=["timeChange"],od=t.defineComponent({name:"EcanTimeDisplay",props:{...qo},setup(e){const o=Be(e),n=()=>{const{format:c,operate:h}=e;let y=me();if(h){const{type:f,value:g,mode:m}=h;switch(f){case"add":y=y.add(g,m);break;case"minus":y=y.subtract(g,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 r=null;const i=()=>{clearInterval(r),r=null},l=Re(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:h,mode:y}=e.updateInterval||{};h&&(c=c*h);const f={second:1,minute:60,hour:60*60,day:24*60*60};y&&(c=c*f[y]),r=setInterval(()=>{a.value=n(),l()},c)};return Oe(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{i()}),{style:o,time:a}}}),ih="";function ad(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 zi=ve(ye(od,[["render",ad],["__scopeId","data-v-b628fca2"]])),Vo={...Ee,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%"},Ho=Ce(Vo),Pi=["refreshData","click","resetRecord"],rd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",id="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",ld="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",sd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",cd=t.defineComponent({name:"EcanList",components:{Skeleton:en,ATooltip:de.Tooltip,MarqueeScroll:zn},props:{...Ho},setup(e,{expose:o}){const n=t.ref(),a=Be(e,["backgroundColor"]),r=(x,w)=>{const{format:L,customFormatter:P}=w;if(L==null||L==="")return x;const V={money:Io,percentage:Sn,contrast:Sn,custom:Ti};return V[L]?L==="custom"?V[L](x,P)||"":V[L](x)||"":""},i=(x,w)=>{const L=parseFloat(x+"");if(w!=="contrast")return"";switch(!0){case L>=0:return"goUp";case L<0:return"goDown"}},s=qe(e),l=t.ref(!1),d=async()=>{var x;if(e.dataType==="request")try{l.value=!0;const w=await s();n.value=((x=w==null?void 0:w.data)==null?void 0:x.data.rows)||[]}catch(w){console.error(w)}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})),h=t.computed(()=>{const{columns:x,isUseSeq:w}=e;return w?[t.unref(c),...x]:x}),y=Ke(e),f=async()=>{var x;try{l.value=!0;const w=await y(),{columns:L=[],rows:P=[]}=((x=w==null?void 0:w.data)==null?void 0:x.data)??{};e.isUseSeq&&L.unshift(e.seqName),h.value.forEach((V,U)=>{(!e.isUseSeq||U!==0)&&(V.title=L[U],V.key=L[U])}),n.value=P}catch(w){console.error(w)}finally{l.value=!1}},g=()=>{switch(e.dataType){case"indicator":f();break;case"request":d();break}},m=Re(e),{getGlobalModel:u,setGlobalModel:S}=t.inject(De,{getGlobalModel:x=>{},setGlobalModel:(x,w)=>{}}),B=x=>{m("click",()=>{const w=u(e.id);S(e.id,{...w,type:e.type,RECORD:x})})()};Oe(e,{refreshData:g,resetRecord:()=>{const x=e.id,w=u(x);S(x,{...w,type:e.type,RECORD:""})}});const{setRequest:v}=t.inject(ze,{setRequest:({id:x,sortNum:w,requestFn:L})=>{}});typeof v=="function"&&v({id:e.id,requestFn:g,sortNum:e.requestSort}),o({refreshData:g});const p=x=>({flex:x.width?"none":"1",width:x.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:x.align||"left",backgroundColor:x.cellColor}),A=(x,w)=>{let L=0;const P=t.unref(n).map(U=>U[w]),V=Math.max(...P);return V&&(L=x[w]/V*100),L},D=x=>{const{progressColor:w="#1890ff",progressGradientColor:L=""}=x;return L?{background:`linear-gradient(to right, ${w} 0%, ${L} 100%)`}:{backgroundColor:w||"#1890ff"}},E=t.computed(()=>{const x=parseFloat(e.seqFontSize)+5;return{width:x+10,height:x}}),{pageMode:_}=t.inject(Pe,{pageMode:"normal"}),O=t.computed(()=>t.unref(_)!=="design"&&e.isAutoScroll),R=x=>{const{seqIconConfig:w}=e;let L=w.find(P=>P.key===x+1);return L||(L=w.find(P=>P.key==="other")),!!(L!=null&&L.icon)},k=(x,w)=>{const{seqIconConfig:L}=e;let P=L.find(V=>V.key===x+1);return P||(P=L.find(V=>V.key==="other")),w===1?P!=null&&P.icon?yt(P.icon):"":w===2?(P==null?void 0:P.color)||"#fff":""},T=x=>{const{seqIndexFormatter:w}=e,L=x+1;return w?Ie(w,{textData:{index:L}},{useNewline:!1,useSpace:!0}):L},C=t.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),I=t.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:a,formatFn:r,contrastClass:i,dataSource:n,loading:l,myColumns:h,click:B,getColumnStyle:p,getPercentage:A,getBackgroundColor:D,isShowSeqIcon:R,getSeqIconData:k,seqIcon4:rd,seqIcon5:id,seqIcon6:ld,seqIcon7:sd,iconSize:E,isScroll:O,formatSeq:T,wrapStyle:C,colSpan:I}}}),sh="",ch="",dd=e=>(t.pushScopeId("data-v-1383b82b"),e=e(),t.popScopeId(),e),fd={key:0,class:"title"},ud={key:0,class:"ranking"},hd={key:1,class:"ecan-list-content"},gd=["onClick"],md={key:0,class:"ranking"},yd=dd(()=>t.createElementVNode("div",{class:"icon"},null,-1)),xd={class:"sort"},pd=["src"],bd={key:1},vd=["src","width","height"],Sd=["src","width","height"],Cd=["src","width","height"],wd=["src","width","height"],Ad={key:1},kd={key:2,class:"empty"};function Td(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",fd,[(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",ud)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(h,y)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:h.key||y,style:t.normalizeStyle({color:h.titleColor,...e.getColumnStyle(h)})},t.toDisplayString(h.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",hd,[e.useTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title-placeholder",style:t.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):t.createCommentVNode("",!0),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,h)=>(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||h,onClick:y=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",md,[yd,t.createElementVNode("div",xd," Top "+t.toDisplayString(h+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)})},[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(h)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(h,1),style:t.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,pd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"custom-seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(h,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(e.formatSeq(h)),5)],4)):(t.openBlock(),t.createElementBlock("div",bd,[h===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,vd)):h===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,Sd)):h===2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,Cd)):h>=3?(t.openBlock(),t.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,wd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize})},t.toDisplayString(e.formatSeq(h)),5)]))],64)):(t.openBlock(),t.createElementBlock("span",Ad,t.toDisplayString(e.formatSeq(h)),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(t.Fragment,{key:2},[t.createTextVNode(t.toDisplayString((y.format!=null||y.format!=="")&&e.formatFn(c[y.key],y)),1)],64))],6)}),128))],12,gd))),128))]),_:1},8,["visible","step","wrapStyle"])])):(t.openBlock(),t.createElementBlock("div",kd," 暂无数据 "))]),_:1},8,["loading"])],4)}const qi=ve(ye(cd,[["render",Td],["__scopeId","data-v-1383b82b"]])),Wo={...Ee,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:{}},jo=Ce(Wo),Vi=["refreshData","click"],Bd=t.defineComponent({name:"EcanProportion",components:{AProgress:de.Progress,Skeleton:en},props:{...jo},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(Pe,{pageMode:"normal"}),r=Be(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),A=+e.variableDefaultValue;if(p==null)return isNaN(A)?0:A;const D=e.text.match(/\{.+\}/g)||[];let E;const _=new Set(Object.keys(p));for(let O=0;O<D.length;O++){const R=D[O],k=R.slice(1,R.length-1);if(_.has(k)){E=p[k];break}}return typeof E=="number"?E=E*100:typeof E=="string"&&!isNaN(+E)?E=+E*100:isNaN(A)?E=0:E=A*100,e.decimalFormat&&(E=+E.toFixed(2)),E}),d=t.computed(()=>{var _;let p=e.text;if(p==="")return t.unref(l);const A=e.variableDefaultValue,D=t.unref(s),E=p.match(/\{.+\}/g)||[];for(let O=0;O<E.length;O++){const R=E[O];let k=R.slice(1,R.length-1);const T=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,C=R.match(T);for(let x=0;x<(C==null?void 0:C.length);x++){const w=(_=C[x])==null?void 0:_.trim();D[w]!=null&&(k=k.replace(w,D[w]))}let I=k;try{/\(.*\)/g.test(k)&&(I=Cn(k))}catch(x){console.error(x)}typeof+I=="number"&&!isNaN(+I)?(I=+I*100,e.decimalFormat&&(I=I.toFixed(2))):I=A,p=p.replace(R,I+"")}return t.unref(n)?"NaN":p}),c=qe(e),h=t.ref(!1),y=async()=>{var p;if(e.dataType==="request")try{h.value=!0;const A=await c();s.value=((p=A==null?void 0:A.data)==null?void 0:p.data)||{}}catch(A){console.error(A)}finally{h.value=!1}},f=(p={})=>{s.value=p},g=Ke(e),m=async()=>{var p;try{h.value=!0;const A=await g(),{data:D}=(A==null?void 0:A.data)||{};if(D){n.value=!1;const{columns:E=[],rows:_=[]}=((p=A==null?void 0:A.data)==null?void 0:p.data)??{};let O={};if(E.length>0){const R=E.find(k=>!!k);R&&(O={percent:_[R]})}f(O)}else n.value=!0,f({percent:"NaN"})}catch(A){console.error(A)}finally{h.value=!1}},u=()=>{switch(e.dataType){case"indicator":m();break;case"request":y();break}};Oe(e,{refreshData:u}),o({refreshData:u});const B=Re(e)("click",()=>{}),{setRequest:b}=t.inject(ze,{setRequest:({id:p,sortNum:A,requestFn:D})=>{}});typeof b=="function"&&b({id:e.id,requestFn:u,sortNum:e.requestSort});const v=t.computed(()=>{const{gradientShow:p,gradientColor:A,gradientOffset:D,strokeColor:E}=e;let _=E;return p&&A&&(_={"0%":E,[`${D*100}%`]:A}),_});return{style:r,myWidth:i,text:d,myValue:l,loading:h,click:B,customStrokeColor:v}}}),fh="";function Ed(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 Hi=ve(ye(Bd,[["render",Ed],["__scopeId","data-v-cf942b5f"]])),Go={...Ee,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Uo=Ce(Go),Wi=["inputChange","inputBlur"],Dd=t.defineComponent({name:"EcanInput",components:{AInput:de.Input},props:{...Uo},setup(e){const o=Be(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=t.inject(De,{getGlobalModel:h=>{},setGlobalModel:(h,y)=>{},getRecordValueByKeyName:h=>{}});t.watch(()=>e.value,h=>{n.value=i(h)},{immediate:!0}),r(e.id,{type:e.type,value:n});const s=()=>{const h=a(e.id);r(e.id,{...h,RECORD:n})},l=Re(e),d=Le.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),hh="";function Rd(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 ji=ve(ye(Dd,[["render",Rd]])),$o={...Ee,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"},Yo=Ce($o),Gi=["dateChange"],Ko=t.defineComponent({name:"EcanDatePicker",props:{...Yo},components:{ADatePicker:de.DatePicker},setup(e){const o=t.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=Be(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([f,g,m])=>{let u=null;if(f?u=me(Ie(f)):g&&(u=me()),m&&u){const{type:S,value:B,mode:b}=m;switch(S){case"add":u=u.add(B,b);break;case"minus":u=u.subtract(B,b)}}r.value=u},{deep:!0,immediate:!0});const{setGlobalModel:i}=t.inject(De,{setGlobalModel:(f,g)=>{}});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({}),h=t.ref({}),y=f=>{f?setTimeout(()=>{h.value=t.unref(c)},300):h.value={}};return t.onMounted(()=>{setTimeout(()=>{const f=document.querySelector(`#ecan-date-picker-${e.id}`);if(f){const g=f.getBoundingClientRect(),m=parseFloat(t.unref(o).widthScale)*280;document.body.clientWidth-g.left<m&&(c.value.marginLeft=-1*(m-g.width)+"px")}},0)}),{style:n,getPopupContainer:a,myValue:r,locale:Ga,change:d,scaleValue:o,popupStyle:c,customStyle:h,openChange:y}}}),Ui=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},$i=Ko.setup;Ko.setup=$i?(e,o)=>(Ui(),$i(e,o)):Ui;const mh="",yh="",Id=["id"];function Ld(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,Id)}const Yi=ve(ye(Ko,[["render",Ld],["__scopeId","data-v-d4ec0d66"]])),Zo={...Ee,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},Qo=Ce(Zo),Ki=["dateChange"];var Zi={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(ue,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,h){return c=Number(c),this.$utils().p(h)===a?this.add(3*c,n):l.bind(this)(c,h)};var d=s.startOf;s.startOf=function(c,h){var y=this.$utils(),f=!!y.u(h)||h;if(y.p(c)===a){var g=this.quarter()-1;return f?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return d.bind(this)(c,h)}}})})(Zi);var _d=Zi.exports;const Od=wr(_d);me.extend(Od);const Jo=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:de.RangePicker},props:{...Qo},setup(e){const o=Be(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,p,A,D,E,_])=>{let O=null,R=null;if(A&&(O=me().subtract(D,E),R=me()),v&&(O=me(Ie(v))),p&&(R=me(Ie(p))),_){const{type:k,value:T,mode:C}=_;switch(k){case"add":O=O&&O.add(T,C),R=R&&R.add(T,C);break;case"minus":O=O&&O.subtract(T,C),R=R&&R.subtract(T,C)}}a.value=[O,R]},{immediate:!0});let r=t.unref(a)[0],i=t.unref(a)[1],s="";const l=(v,p,A)=>{Array.isArray(v)?(r=v[0],i=v[1],s=A.range):(r=null,i=null)};window.dayjs=me;const d=v=>{let p=!1,{limitStartTime:A,limitEndTime:D}=e;const E={startTime:`${r||""}`,endTime:`${i||""}`};if(A=Ie(A,{codeData:E}),D=Ie(D,{codeData:E}),A&&D?p=!(me(A)<v&&v<me(D)):A?p=me(A)>v:D&&(p=me(D)<v),!e.isAllowSpanYear&&s){let _=null;if(s==="start"?_=r:s==="end"&&(_=i),_){const O=_.startOf("year"),R=_.endOf("year");p=!(O<=v&&v<R)}}if(!p){const{value:_=0,mode:O="year"}=e.limitInterval||{};_&&(s==="start"?p=r.add(_,O)<v:s==="end"&&(p=i.subtract(_,O)>v))}return p},{getGlobalModel:c,setGlobalModel:h}=t.inject(De,{getGlobalModel:v=>{},setGlobalModel:(v,p)=>{}}),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);h(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 g=Re(e);let m=!1;const u=g("dateChange",()=>{}),S=v=>{const p=t.unref(a),A=p&&p[0]&&p[1];v===!1&&m===!0&&A&&(u(),m=!1),v||(s="")},B=()=>{m=!0};return Oe(e,{dateChange:()=>{const{associated:v}=e;if(v){const p=c(v)||{};if(p){const{value:A}=p;if(A)switch(t.unref(A)){case"month":a.value=[me().startOf("month"),me().endOf("month")];break;case"quarter":a.value=[me().startOf("quarter"),me().endOf("quarter")];break;case"year":a.value=[me().startOf("year"),me().endOf("year")];break}}}u()}}),{style:o,getPopupContainer:n,locale:Ga,dateChange:u,myValue:a,disabledDate:d,calendarChange:l,openChange:S,change:B}}}),Qi=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},Ji=Jo.setup;Jo.setup=Ji?(e,o)=>(Qi(),Ji(e,o)):Qi;const ph="",bh="";function Nd(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 Xi=ve(ye(Jo,[["render",Nd],["__scopeId","data-v-c9c68612"]])),Xo={...Ee,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"},ea=Ce(Xo),el=["click"],Fd=t.defineComponent({name:"EcanButton",components:{AButton:de.Button},props:{...ea},setup(e){const o=Be(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(()=>Ie(e.text)),s=t.computed(()=>Ie(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}}}),Sh="";function Md(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 tl=ve(ye(Fd,[["render",Md]])),ta={...Ee,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:{}},na=Ce(ta),nl=["checkboxChange"],zd=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:de.CheckboxGroup},props:{...na},setup(e,{expose:o}){const n=Be(e),a=t.ref([]),r=t.ref([]),i=S=>{const B=e.value;let b=[];S.forEach(v=>{v.checked&&b.push(v.value)}),typeof B=="string"&&B!==""?b=b.concat(B.split(",")):Array.isArray(B)&&(b=b.concat(B)),a.value=S,r.value=b};t.watch(()=>[e.data,e.value],([S])=>{i(S)},{immediate:!0,deep:!0});const s=qe(e),l=async()=>{var b,v;if(e.dataType!=="request")return;const S=await s(),B=((v=(b=S==null?void 0:S.data)==null?void 0:b.data)==null?void 0:v.rows)||[];i(B)},{getGlobalModel:d,setGlobalModel:c}=t.inject(De,{getGlobalModel:S=>{},setGlobalModel:(S,B)=>{}});c(e.id,{type:e.type,value:r});const y=Re(e)("checkboxChange",()=>{const S=d(e.id);c(e.id,{...S,RECORD:r})}),f=Ke(e),g=async()=>{var S;try{const B=await f(),{data:b}=(B==null?void 0:B.data)||{};if(b){const p=(((S=B==null?void 0:B.data)==null?void 0:S.data)??[]).map(A=>({label:A.label,value:A.value}));i(p)}else i([])}catch(B){console.error(B)}},m=()=>{switch(e.dataType){case"indicator":g();break;case"request":l();break}},{setRequest:u}=t.inject(ze,{setRequest:({id:S,sortNum:B,requestFn:b})=>{}});return typeof u=="function"&&u({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:n,myValue:r,checkboxChange:y}}}),wh="";function Pd(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 ol=ve(ye(zd,[["render",Pd]])),oa={...Ee,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"},aa=Ce(oa),al=["selectChange","refreshData"],qd=t.defineComponent({name:"EcanSelect",components:{ASelect:de.Select,ASelectOption:de.SelectOption},props:{...aa},setup(e,{expose:o}){const n=Be(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=qe(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var w;const{mode:x}=e;return(w=t.unref(i))!=null&&w.length?s.value:x==="multiple"||x==="tags"||x==="combobox"?[]:""},set:x=>{s.value=x}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:h}=t.inject(De,{getGlobalModel:x=>{},setGlobalModel:(x,w)=>{},getRecordValueByKeyName:x=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:x,selectFirstOption:w,value:L}=e,P=h(L),V=y.value;if(x==="multiple"||x==="tags"||x==="combobox"){if(P)s.value=P.split(",");else if(w){const U=t.unref(i)[0];s.value=U?[U[V]]:[]}}else if(P)s.value=P;else if(w){const U=t.unref(i)[0];s.value=U?U[V]:""}},{immediate:!0});const f=(x,w)=>{const L=y.label,P=y.value;let V;const U=w[L],N=w[P];return U!=null?V=U:N!=null&&(V=N),(V==null?void 0:V.toLowerCase().indexOf(x==null?void 0:x.toLowerCase()))>=0},g=x=>{const{label:w,value:L,options:P}=e.dataFieldNames;if(P&&Array.isArray(x))if(x.some(V=>P in V)){const V={},U=[];x.forEach(N=>{V[N[P]]||(V[N[P]]=[]),V[N[P]].push({[w]:N[w],[L]:N[L]})});for(const N in V)U.push({[w]:N,[P]:V[N]});return U}else return x;else if(!P)return x},m=t.ref(!1),u=async()=>{var x,w;if(e.dataType==="request"){m.value=!0;try{const L=await r();if(i.value=g(((w=(x=L==null?void 0:L.data)==null?void 0:x.data)==null?void 0:w.rows)||[]),e.selectFirstOption){let P=t.unref(i)[0];if(y.options){const V=P[y.options];V&&V.length&&(P=V[0])}s.value=P[y.value]}}catch(L){console.error(L)}finally{m.value=!1}}},{setLoadedData:S,loadedData:B}=t.inject(vt,{setLoadedData:(x,w)=>{},loadedData:{}}),b=t.computed(()=>{let x=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const w=y.label,L=y.value;if(e.mode==="multiple")x=t.unref(i).filter(P=>t.unref(s).includes(P[L])).map(P=>P[w]);else{const P=t.unref(i).find(V=>t.unref(s)===V[L]);P&&(x=P[w])}}return x}),v=t.ref([]),p=t.computed(()=>{const x={};if(e.mode!=="multiple"){const w=t.unref(v).find(L=>L.value===t.unref(s));w&&(x.itemCodes=w.item_codes)}return x}),A=t.computed(()=>{const{value:x,label:w}=y,L=t.unref(i).find(P=>P[x]===t.unref(l));return L?{label:L[w],value:L[x]}:{}});c(e.id,{type:e.type,value:b,...t.unref(p),recordData:t.unref(A)});const E=Re(e)("selectChange",()=>{const x=e.id,w=d(x);c(x,{...w,...t.unref(p),RECORD:b,recordData:t.unref(A)})}),_=(x=[])=>{if(i.value=g(x),e.selectFirstOption){let w=t.unref(i)[0];if(y.options){const L=w[y.options];L&&L.length&&(w=L[0])}s.value=w[y.value]}c(e.id,{type:e.type,value:b,...t.unref(p),recordData:t.unref(A)})},O=Ke(e),R=async()=>{var x;try{m.value=!0;const w=await O(),{data:L}=(w==null?void 0:w.data)||{},P=y.label,V=y.value;if(L){const U=((x=w==null?void 0:w.data)==null?void 0:x.data)??[];v.value=U;const N=U.map(z=>({[P]:z.label,[V]:z.value})),{id:F}=e,H=d(F);c(F,{...H,...t.unref(p)}),S(F,!0),_(N)}else _([])}catch(w){console.error(w)}finally{m.value=!1}},k=t.computed(()=>{var x,w;return(w=(x=e==null?void 0:e.graphicConfig)==null?void 0:x.controlList)==null?void 0:w.find(L=>L.conditionKey==="parentCode")}),T=t.ref(!1);t.watch(B,x=>{!t.unref(T)&&t.unref(k)&&x[t.unref(k).id]&&(T.value=!0,C())},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":{if(t.unref(k)){if(t.unref(B)[t.unref(k).id]){const{mode:x}=e;x==="multiple"||x==="tags"||x==="combobox"?l.value=[]:l.value="",R()}}else R();break}case"request":u();break}};Oe(e,{selectChange:E,refreshData:C});const{setRequest:I}=t.inject(ze,{setRequest:({id:x,sortNum:w,requestFn:L})=>{}});return typeof I=="function"&&I({id:e.id,requestFn:C,sortNum:e.requestSort}),o({refreshData:C}),{style:n,getPopupContainer:a,myValue:s,selectChange:E,options:i,filterOption:f,loading:m,resultValue:l}}}),kh="",Th="";function Vd(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 rl=ve(ye(qd,[["render",Vd],["__scopeId","data-v-8da65528"]])),ra={...Ee,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},ia=Ce(ra),il=["selectChange","refreshData"],Hd={name:"EcanTreeSelect",components:{ATreeSelect:de.TreeSelect},props:{...ia},setup(e){const o=Be(e),n=t.ref(e.data),a=(g,m)=>{const u=e.dataFieldNames,S=u.label,B=u.value;let b;const v=m[S],p=m[B];return v!=null?b=v:p!=null&&(b=p),(b==null?void 0:b.toLowerCase().indexOf(g==null?void 0:g.toLowerCase()))>=0},r=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:g,value:m,selectFirstOption:u}=e;g?m?r.value=m.split(","):u&&(r.value=[t.unref(n)[0]]):m?r.value=m:u&&(r.value=t.unref(n)[0])},{immediate:!0});const i=t.ref(!1),s=qe(e),l=async()=>{var g,m;if(e.dataType==="request"){i.value=!0;try{const u=await s();n.value=((m=(g=u==null?void 0:u.data)==null?void 0:g.data)==null?void 0:m.rows)||[];const S=t.unref(n)[0];e.value===""&&S!=null&&(r.value=S[e.dataFieldNames.value])}catch(u){console.error(u)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=t.inject(De,{getGlobalModel:g=>{},setGlobalModel:(g,m)=>{}});c(e.id,{type:e.type,value:r});const y=Re(e)("selectChange",()=>{const g=e.id,m=d(g);c(g,{...m,RECORD:r})});Oe(e,{selectChange:y,refreshData:l});const{setRequest:f}=t.inject(ze,{setRequest:({id:g,sortNum:m,requestFn:u})=>{}});return f({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:n,filterTreeNode:a,myValue:r,loading:i,selectChange:y}}},Eh="",Dh="";function Wd(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 ll=ve(ye(Hd,[["render",Wd],["__scopeId","data-v-37236421"]])),la={...Ee,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:""},sa=Ce(la),sl=["checkboxChange","click"],jd=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:de.RadioGroup,ARadioButton:de.RadioButton,ARadio:de.Radio},props:{...sa},setup(e,{expose:o}){const n=Be(e),a=t.ref([]),r=t.ref(""),i=v=>{const p=e.value;let A=[];typeof p=="string"&&p!==""?A=A.concat(p.split(",")):Array.isArray(p)&&(A=A.concat(p)),a.value=v,r.value=A[0]||""};t.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=qe(e),l=async()=>{var A,D;if(e.dataType!=="request")return;const v=await s(),p=((D=(A=v==null?void 0:v.data)==null?void 0:A.data)==null?void 0:D.rows)||[];i(p)},{getGlobalModel:d,setGlobalModel:c}=t.inject(De,{getGlobalModel:v=>{},setGlobalModel:(v,p)=>{}});c(e.id,{type:e.type,value:r});const h=Re(e),y=h("checkboxChange",()=>{const v=d(e.id);c(e.id,{...v,RECORD:r})}),f=v=>{r.value=v,h("click",()=>{const p=d(e.id);c(e.id,{...p,RECORD:r})})()};t.watch(r,()=>{y()});const g=Ke(e),m=async()=>{var v;try{const p=await g(),{data:A}=(p==null?void 0:p.data)||{};if(A){const E=(((v=p==null?void 0:p.data)==null?void 0:v.data)??[]).map(_=>({label:_.label,value:_.value}));i(E)}else i([])}catch(p){console.error(p)}},u=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:S}=t.inject(ze,{setRequest:({id:v,sortNum:p,requestFn:A})=>{}});typeof S=="function"&&S({id:e.id,requestFn:u,sortNum:e.requestSort});const B=v=>{r.value=v.value},b=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:u}),{myOption:a,style:n,myValue:r,radioStyle:b,onClickButton:f,useImagePath:yt,tabChange:B}}}),Ih="",Lh="",Gd=["onClick"];function Ud(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,h)=>(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:h,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,Gd))),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:h=>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 cl=ve(ye(jd,[["render",Ud],["__scopeId","data-v-baa84768"]])),ca={...Ee,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},da=Ce(ca),dl=["click","refreshData","resetRecord"],Yt=async e=>{var d;const o=await ft.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)},fa={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:[]},ua=Ce(fa),fl=["showModal","hideModal"],It=["ecanBorder","ecanTabs","ecanCirculate"];function ul(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((!$t(i,"componentList")||!(i!=null&&i.componentList))&&(i.componentList=[]),s){let d=0;for(const c in s){const h=s[c],y=[];if(h!=null&&h.length)for(const f of h){let g=a.find(m=>m.id===f);g||(g=n.find(m=>m.id===f)),g&&(y.push(g),It.includes(g.type)&&y.push(...rn(g.id,o,n)))}for(const f of y)$t(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(...y),d=Jd(y)}}for(const d of l){const c=a.findIndex(h=>h.id===d);c!==-1&&a.splice(c,1)}}return a}function hl(e){var i,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,r=Le.cloneDeep([...e.componentList,...Yd(a,n)]);if($d(a,r),(i=Object.keys(a))!=null&&i.length||(s=Object.keys(o))!=null&&s.length){for(const f in a){const g=r.find(m=>m.id===f);if(g){$t(g,"parentId")||(g.parentId="",g.sourceLeft=g.left,g.sourceTop=g.top);for(const m in a[f])if(a[f][m])for(const u of a[f][m]){const S=r.find(B=>B.id===u);S&&(S.parentId=f,S.sourceLeft=S.left,S.sourceTop=S.top,S.left=parseFloat(S.left)-parseFloat(g.sourceLeft||g.left)+"px",S.top=parseFloat(S.top)-parseFloat(g.sourceTop||g.top)+"px")}}}const l=Array.from(new Set(r.filter(f=>(!$t(f,"parentId")||f.parentId==="")&&f.combinationId).map(f=>f.combinationId))),d=Kd(l,{...e,componentList:r});d!=null&&d.length&&r.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],h=r.filter(f=>c.includes(f.type)&&!$t(f,"parentId")),y=[];for(const f of h)if(f){const g=f.id+"_vir";y.push({id:g,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=g,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=0,f.top=0}y!=null&&y.length&&r.unshift(...y);for(const f of r){const g=document.body.clientWidth;if(f.parentId===""&&It.includes(f.type))f.sourceWidth=parseFloat(f.width),f.height=(g/(f.sourceWidth/parseFloat(f.height))).toFixed(2)+"px",f.width="100%",f.position="relative",f.top="auto",f.left="auto";else{const m=r.find(u=>u.id===f.parentId);if((m==null?void 0:m.parentId)===""){const u=m.sourceWidth||parseFloat(m.width),S=g/u;f.scale=S,f.top=parseFloat(f.top)*S-parseFloat(f.height)*(1-S)/2+"px",f.left=parseFloat(f.left)*S-parseFloat(f.width)*(1-S)/2+"px"}}f.type==="ecanModal"&&(f.parentId="",f.fullModal=!0)}return Zd(r)}return r}function $d(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&&It.includes(d.type)){const c=rn(d.id,n,o);for(const h of c)e[r.id][s].push(h.id),It.includes(h.type)&&delete e[h.id];delete e[d.id]}}}}function Yd(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),It.includes(d.type)&&n.push(...rn(d.id,e,o)))}}return n}function rn(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),It.includes(l.type)&&a.push(...rn(l.id,o,n)))}return a}function Kd(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=Qd(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 h of d)h&&(h.parentId=s,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=parseFloat(h.left)-parseFloat(c.left)+"px",h.top=parseFloat(h.top)-parseFloat(c.top)+"px")}}}}return i}function Zd(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 Qd(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 Jd(e){const o=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,a)=>a-n)[0];return o||0}function ha(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),It.includes(d.type)&&r.push(...rn(d.id,e,o)))}}return r}const Xd=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function ef(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 tf=ve(ye(Xd,[["render",ef]])),nf=t.defineComponent({name:"EcanModal",components:{AModal:de.Modal,CloseOutlined:us,Render:tf},props:{...ua},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(De,{setRequestData:($,ee)=>{},clearInteractiveData:()=>{},interactiveData:null}),c=()=>document.getElementById("ProviderConfig")||document.body,h=t.computed(()=>{const $=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[$]}}),y=e.fullModal?"1920px":e.width,f=e.fullModal?"1080px":e.height,g=e.originalWidth,m=e.originalHeight,u=t.ref("80%"),S=t.ref(0),B=t.ref(),b=t.ref(0),v=t.ref({}),p=Be(e),A=t.ref({}),D=t.ref(!1),E=t.ref();let _;const O=()=>{B.value=parseFloat(y)/parseFloat(g);const $=parseFloat(f)/parseFloat(m),ee=document.body.offsetWidth,re=document.body.offsetHeight;S.value=ee*t.unref(B),b.value=re*$,u.value=`${t.unref(B)*100}%`,v.value={width:`${t.unref(S)}px`,height:`${t.unref(b)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},A.value={...t.unref(p),backgroundImage:yt(e.backgroundImage,!0)},a?A.value={...A.value,width:"100%",height:"100%"}:A.value={...A.value,transform:`scale(${t.unref(S)/parseFloat(y)},${t.unref(b)/parseFloat(f)})`,width:y,height:f}},R=Le.debounce(()=>{O()},100),k=()=>{const $=window.MutationObserver;_=new $(R),_.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},T=()=>{_&&(_.disconnect(),_.takeRecords(),_=null)},C=t.ref(!1),{touchRequest:I}=t.inject(ze,{touchRequest:()=>{}}),x=t.ref(""),w=()=>{var re;const{title:$}=e,ee=(re=t.unref(l))==null?void 0:re.RECORD;return ee?Ie($,{textData:ee},{useNewline:!1,useSpace:!1}):$},L=Re(e),P=()=>{a&&(document.documentElement.style.overflow="hidden"),x.value=w(),C.value=!0},V=L("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),C.value=!1}),U=()=>{V()},N=()=>{V(),s()},{setModalModel:F,pushUseModalIds:H,popUseModalIds:z}=t.inject(pr,{pushUseModalIds:$=>{},popUseModalIds:()=>{},setModalModel:($,ee)=>{}}),q=t.computed(()=>{let $=e.componentList;const ee=Le.cloneDeep(e.componentList),re=r(),xe=i(),Se={containerMap:re,combinationMap:xe};a&&($=hl({...Se,componentList:ee,sourceList:e.allComponentList})),$=ul({...Se,componentList:$,sourceList:e.allComponentList});const Te=[];for(const _e of $)if(_e.type==="ecanCirculate"){const we=ha(re,t.unref(ee),_e.id);_e.componentList=we,Te.push(...we.map(Ae=>Ae.id))}if(Te!=null&&Te.length)for(const _e of Te){const we=$.findIndex(Ae=>Ae.id===_e);we!==-1&&$.splice(we,1)}return $}),M=()=>{const $=e.id;let ee=[];const re=e.componentList;Array.isArray(re)&&(ee=re.map(xe=>xe.id),F($,[...new Set(ee)]))},J=t.ref(!1),W={};for(const $ of e.requestList)W[$.requestName]=qe($);const K=async()=>{var $;for(const ee in W){const re=await W[ee]();d(ee,(($=re==null?void 0:re.data)==null?void 0:$.data)||{})}J.value=!0};t.watch(()=>C.value,async $=>{if($)D.value=!1,await K(),H(e.id),M(),await t.nextTick(()=>{O(),window.addEventListener("resize",R),k(),D.value=!0}),I();else{for(const ee in W)d(ee,{});z(),window.removeEventListener("resize",R),T()}});const ne=t.computed(()=>t.unref(B)>=1),oe=t.computed(()=>e.fullModal),ae=t.computed(()=>{let $="ecan-modal";return t.unref(ne)&&($+=" ecan-full-width-modal"),t.unref(oe)&&($+=" ecan-full-modal"),$});return Oe(e,{showModal:P,hideModal:V}),{modalRef:E,containStyle:v,contentStyle:A,getContainer:c,modalStyle:h,modalWith:u,isFullModal:oe,style:p,visible:C,showModal:P,onOk:U,onCancel:N,isFullWidth:ne,wrapClassName:ae,ready:D,usedComponentList:q,isMobile:a,readyIds:n,hasOwn:$t,onComponentReady:$=>{n.value.push($)},formatTitle:x,requestLoaded:J}}}),Nh="",Fh="";function of(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,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+h},[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 kt=ve(ye(nf,[["render",of],["__scopeId","data-v-513bc596"]]));Je.use([Et.CanvasRenderer,ht.PieChart,ke.TitleComponent,ke.ToolboxComponent,ke.TooltipComponent,ke.LegendComponent]);const af=t.defineComponent({name:"EcanPie",props:{...da},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(!1),a=Be(e),r=t.ref([]),i=t.ref(),s=t.ref({}),l=t.computed(()=>{let{data:k=[]}=t.unref(r)[0]||{};if(Array.isArray(e.colors)){const T=e.isUseLabelColors,C=e.colors;k=k.map((I,x)=>({label:T?{color:C[x]}:{},...I}))}return{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(){Yt(e.toolboxDownloadUrl)}},myDataZoom:{show:n.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var T;n.value=!0,(T=i.value)==null||T.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){de.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:T=>{const{marker:C,seriesName:I,name:x,value:w,percent:L,data:P}=T||{};return Ie(e.tooltipFormatter,{textData:{marker:C,name:x,value:w,percent:L,a:I,b:x,c:w,d:L,...P}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.unref(s),color:e.colors,series:[{data:k,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:n.value?$e:e.labelFontSize,position:e.labelPosition,formatter:Vc(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:{}}}]}}),d=()=>{const k=n.value?$e:parseFloat(e.legendFontSize);s.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:k+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:k}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:T=>{const{data:C}=r.value[0]||{};let I=0,x,w="0%";if(C)for(const L of C)L.name===T&&(x=+L.value),I+=+L.value;return I&&(w=`${(x/I*100).toFixed(2)}%`),an(e.legendFormatter,{name:T,value:x,percent:w})}}},c=()=>{n.value=!1},{getGlobalModel:h,setGlobalModel:y}=t.inject(De,{getGlobalModel:k=>{},setGlobalModel:(k,T)=>{}}),{pageMode:f}=t.inject(Pe,{pageMode:"normal"}),g=(k=[],T)=>{const{dataset:C}=Mt(k,T);r.value=C},m=(k=[],T)=>{const C=Mt(k,T);r.value=C.dataset};t.watch(()=>e.data,k=>{(e.dataType==="static"||t.unref(f)==="design")&&g(k)},{immediate:!0,deep:!0}),t.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{d()},{immediate:!0});const u=t.ref(!1),S=qe(e),B=async()=>{var k,T;if(e.dataType==="request")try{u.value=!0;const C=await S();g((T=(k=C==null?void 0:C.data)==null?void 0:k.data)==null?void 0:T.rows,e.valueTypeDataFieldNames)}catch(C){console.error(C)}finally{u.value=!1}},b=Re(e);y(e.id,{type:e.type,RECORD:""});const v=b("click",k=>{const T=h(e.id);y(e.id,{...T,type:e.type,RECORD:k==null?void 0:k.data})}),p=Ke(e),A=async()=>{var k;try{u.value=!0;const T=await p(),{data:C}=(T==null?void 0:T.data)||{};if(C){const{columns:I=[],rows:x=[]}=((k=T==null?void 0:T.data)==null?void 0:k.data)??{};let w=[];if(I.length>0){const L=I[0],P=I[1];w=x.filter(V=>!!V).map(V=>({name:V[L],value:isNaN(V[P])?0:V[P]||0}))}m(w)}}catch(T){console.error(T)}finally{u.value=!1}},{loadedData:D}=t.inject(vt,{loadedData:{}}),E=t.ref(!1);t.watch(D,k=>{if(e.dataType==="indicator"){const T=on(e.graphicConfig);T!=null&&T.length&&(!t.unref(E)&&it(e.graphicConfig,k)?(E.value=!0,_()):it(e.graphicConfig,k)||(E.value=!1))}},{deep:!0});const _=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(D))&&A();break;case"request":B();break}};Oe(e,{resetRecord:()=>{const k=e.id,T=h(k);y(k,{...T,RECORD:""})},refreshData:_,click:v}),o({refreshData:_});const{setRequest:R}=t.inject(ze,{setRequest:k=>{}});return typeof R=="function"&&R({id:e.id,requestFn:_,sortNum:e.requestSort}),{option:l,style:a,click:v,onClose:c,loading:u,ecanModal:i}}}),zh="";function rf(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 gl=ve(ye(af,[["render",rf]])),ga={...Ee,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:""},ma=Ce(ga),ml=["click","refreshData","resetRecord"];Je.use([Et.CanvasRenderer,ht.LineChart,ke.ToolboxComponent,ke.TitleComponent,ke.LegendComponent,ke.MarkLineComponent]);const lf=t.defineComponent({name:"EcanLine",props:{...ma},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=Be(e),i=t.ref([]),s=t.ref([]),l=t.ref(),d=t.computed(()=>a.value?$e:12),c=t.ref({});let h;const y=t.ref([]),f=t.computed(()=>{const x=e.xAxisLabelFormatter,w=e.yAxisLabelFormatter;return{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(){Yt(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=l.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(){de.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:d.value},show:e.tooltipShow,formatter:L=>{var N;const P=L.length;let V="",U=e.tooltipFormatter;h=(N=L[0])==null?void 0:N.data,U===""&&(U="{marker} {a} {c}");for(let F=0;F<P;F++){const{marker:H,seriesName:z,name:q,value:M,data:J}=L[F]||{};if(F===0){let W=q;typeof q=="string"&&q[0]==="0"&&!isNaN(+q)&&(W=(+q).toString()),V+=`${lt(x,W)}<br/>`}V+=Ie(U,{textData:{marker:H,name:q,value:M,a:z,b:q,c:M||0,...J}},{useNewline:!0,useSpace:!0}),V+="<br/>"}return V},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(s).map(L=>{let P={};return L&&typeof L=="object"?P={...L}:P={value:L},P}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(L){return typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(L=(+L).toString()),lt(x,L)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},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(L){return lt(w,L)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},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:(a.value?$e:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?$e:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(y).map(L=>({name:L.name,icon:e.legendType})),formatter:L=>an(e.legendFormatter,{name:L})},series:t.unref(i)}}),g=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:u}=t.inject(De,{getGlobalModel:x=>{},setGlobalModel:(x,w)=>{}}),{pageMode:S}=t.inject(Pe,{pageMode:"normal"}),B=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),b=(x=[],w=!1)=>{let L;if(e.dataFieldConfigType==="key"){const N=w?e.keyTypeDataFieldNames:null;L=At(x,N)}else if(e.dataFieldConfigType==="value"){const N=w?e.valueTypeDataFieldNames:null;L=Mt(x,N)}s.value=L.dimensions,y.value=L.dataset;const P=L.dataset,V=[],U=P.length;for(let N=0;N<U;N++){const F={};e.shadowColor&&(F.shadowColor=e.shadowColor,F.shadowBlur=e.shadowBlur,F.shadowOffsetY=e.shadowOffsetY,F.shadowOffsetX=e.shadowOffsetX),V.push({type:"line",...P[N],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[N]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[N],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...F},...t.unref(B)})}i.value=V},v=(x=[],w,L=!1)=>{const V=At(x,L?w:null,!0);s.value=V.dimensions,y.value=V.dataset;const U=V.dataset,N=[],F=U.length;for(let H=0;H<F;H++){const z={};e.shadowColor&&(z.shadowColor=e.shadowColor,z.shadowBlur=e.shadowBlur,z.shadowOffsetY=e.shadowOffsetY,z.shadowOffsetX=e.shadowOffsetX),N.push({type:"line",...U[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(B)})}i.value=N};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],([x])=>{(e.dataType==="static"||t.unref(S)==="design")&&b(x)},{immediate:!0,deep:!0});const p=t.ref(!1),A=qe(e),D=async()=>{var x,w;if(e.dataType==="request")try{p.value=!0;const L=await A();b((w=(x=L==null?void 0:L.data)==null?void 0:x.data)==null?void 0:w.rows,!0)}catch(L){console.error(L)}finally{p.value=!1}},E=Re(e);u(e.id,{type:e.type,RECORD:""});const _=E("click",x=>{const w=m(e.id);u(e.id,{...w,type:e.type,RECORD:e.tooltipShow?h:x.data})}),O=x=>{n.value.chart.containPixel("grid",[x.offsetX,x.offsetY])&&_()};e.tooltipShow?c.value["zr:click"]=O:c.value.click=_;const R=Ke(e),k=async()=>{var x;try{p.value=!0;const w=await R(),{columns:L=[],rows:P=[]}=((x=w==null?void 0:w.data)==null?void 0:x.data)??{};let V;L.length>0&&(V={name:L[0],types:L.slice(1).map(U=>({label:U,value:U}))}),v(P,V,!0)}catch(w){console.error(w)}finally{p.value=!1}},T=()=>{switch(e.dataType){case"indicator":k();break;case"request":D();break}};Oe(e,{refreshData:T,resetRecord:()=>{const x=e.id,w=m(x);u(x,{...w,RECORD:""})},click:_});const{setRequest:I}=t.inject(ze,{setRequest:x=>{}});return typeof I=="function"&&I({id:e.id,requestFn:T,sortNum:e.requestSort}),o({refreshData:T}),{option:f,style:r,click:_,loading:p,onClose:g,ecanModal:l,eventObj:c,echartRef:n}}}),qh="";function sf(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 yl=ve(ye(lf,[["render",sf]])),ya={...Ee,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:""},xa=Ce(ya),xl=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,ht.BarChart,ke.TitleComponent,ke.LegendComponent,ke.DatasetComponent,ke.ToolboxComponent,ke.MarkLineComponent]);const cf=t.defineComponent({name:"EcanBar",props:{...xa},components:{Spin:Ft,Echarts:pt,EcanModal:kt,AModal:de.Modal},setup(e,{expose:o}){const n=t.inject("usedComponentList",[]),a=t.ref(),r=t.ref(!1),i=t.ref(!1),s=t.ref(null),l=t.ref([]),d=Be(e),c=t.ref([]),h=t.ref(),y=t.ref({});let f;const g=t.computed(()=>r.value?$e:12),m=t.computed(()=>{const{gradientShow:z,gradientColors:q,gradientOffset:M,barBorderRadius:J}=e,W=t.unref(c),K=W.length,ne=[];for(let oe=0;oe<K;oe++){const ae={...W[oe],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(ae.stack="stack"),ae.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:Q=>{let $="",ee=e.labelFormatter;ee===""&&(ee="{c}");const{seriesName:re,name:xe,value:Se,data:Te}=Q||{};return $+=Ie(ee,{textData:{name:xe,value:Se,a:re,b:xe,c:Se||0,...Te}},{useNewline:!0,useSpace:!0}),$}},ae.itemStyle={},z&&(ae.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[oe]},{offset:M,color:q[oe]},{offset:1,color:q[oe]}]}}),J){const Q=J.split(",");if(Q!=null&&Q.length){const $=[];for(const ee of Q){const re=parseFloat(ee);isNaN(re)||$.push(re)}ae.itemStyle.borderRadius=$}}e.isShowMarkLine&&(ae.markLine={data:[{type:e.markLineType}]}),ne.push(ae)}return ne}),u=t.ref([]),S=t.ref(!1),B=t.computed(()=>{const z=e.yAxisLabelFormatter,q=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:r.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(){i.value=!0;const M=a.value.chart.getOption(),{xAxis:J}=M||{};J&&J.length&&(l.value=J[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(){Yt(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 M;r.value=!0,(M=h.value)==null||M.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(){de.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:M=>{var ne;const J=M.length;let W="",K=e.tooltipFormatter;f=(ne=M[0])==null?void 0:ne.data,K===""&&(K="{marker} {a} {c}");for(let oe=0;oe<J;oe++){const{marker:ae,seriesName:Q,name:$,value:ee,data:re}=M[oe]||{};if(oe===0){let xe=$;typeof $=="string"&&$[0]==="0"&&!isNaN(+$)&&(xe=(+$).toString()),W+=`${lt(q,xe)}<br/>`}W+=Ie(K,{textData:{marker:ae,name:$,value:ee,a:Q,b:$,c:ee||0,...re}},{useNewline:!0,useSpace:!0}),W+="<br/>"}return W},textStyle:{color:e.tooltipTextStyleColor,fontSize:g.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:(r.value?$e:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?$e:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(c).map((M,J)=>({name:M.name,itemStyle:{color:e.colors[J]},icon:e.legendType})),formatter:M=>an(e.legendFormatter,{name:M})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(D),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(M){return typeof M=="string"&&M[0]==="0"&&!isNaN(+M)&&(M=(+M).toString()),lt(q,M)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(u):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(M){return lt(z,M)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},series:t.unref(m)}}),{pageMode:b}=t.inject(Pe,{pageMode:"normal"}),v=()=>{r.value=!1},p=(z=[],q=!1)=>{let M={};if(e.dataFieldConfigType==="key"){const J=q?e.keyTypeDataFieldNames:null;M=At(z,J)}else if(e.dataFieldConfigType==="value"){const J=q?e.valueTypeDataFieldNames:null;M=Mt(z,J)}c.value=M.dataset,u.value=M.dimensions},A=(z=[],q,M=!1)=>{const W=At(z,M?q:null,!0);e.defaultRangeValue&&Bi({props:e,componentList:t.unref(n),getGlobalModel:P},W),c.value=W.dataset,u.value=W.dimensions},D=t.computed(()=>t.unref(u).map(z=>{let q={};return z&&typeof z=="object"?q={...z}:q={value:z},q}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([z])=>{(e.dataType==="static"||t.unref(b)==="design")&&p(z)},{immediate:!0,deep:!0});const E=qe(e),_=async()=>{var z,q;try{S.value=!0;const M=await E();p((q=(z=M==null?void 0:M.data)==null?void 0:z.data)==null?void 0:q.rows,!0)}catch(M){console.error(M)}finally{S.value=!1}},O=Ke(e),R=async()=>{var z;try{S.value=!0;const q=await O(),{columns:M=[],rows:J=[]}=((z=q==null?void 0:q.data)==null?void 0:z.data)??{};let W;M.length>0&&(W={name:M[0],types:M.slice(1).map(K=>({label:K,value:K}))}),A(J,W,!0)}catch(q){console.error(q)}finally{S.value=!1}},{loadedData:k}=t.inject(vt,{loadedData:{}}),T=t.ref(!1);t.watch(k,z=>{if(e.dataType==="indicator"){const q=on(e.graphicConfig);q!=null&&q.length&&(!t.unref(T)&&it(e.graphicConfig,z)?(T.value=!0,C()):it(e.graphicConfig,z)||(T.value=!1))}},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(k))&&R();break;case"request":_();break}},I=(z,q)=>!!t.unref(l)[q.value].value.includes(z),x=async()=>{i.value=!1;const z=a.value.chart.getOption();for(let q=0;q<7;q++)await w(z,q)},w=(z,q)=>new Promise(M=>{setTimeout(()=>{const{series:J,color:W,xAxis:K}=z,ne=a.value.chart,{splitArea:oe={}}=K[0]||{};J.forEach((ae,Q)=>{const $=ae.data;let ee="";q%2?ee=W[Q]+"a8":ee=W[Q],$[s.value].itemStyle={color:ee}}),q%2?(oe.show=!0,oe.areaStyle.color=t.unref(l).map((ae,Q)=>Q===s.value?"#ff003b26":"")):oe.show=!1,ne.setOption({series:J,xAxis:K}),M()},200)});o({refreshData:C});const L=Re(e),{getGlobalModel:P,setGlobalModel:V}=t.inject(De,{getGlobalModel:z=>{},setGlobalModel:(z,q)=>{}});V(e.id,{type:e.type,RECORD:""});const U=L("click",z=>{const q=P(e.id);V(e.id,{...q,type:e.type,RECORD:e.tooltipShow?f:z.data})}),{setRequest:N}=t.inject(ze,{setRequest:z=>{}});typeof N=="function"&&N({id:e.id,requestFn:C,sortNum:e.requestSort});const F=()=>{const z=e.id,q=P(z);V(z,{...q,RECORD:""})},H=z=>{a.value.chart.containPixel("grid",[z.offsetX,z.offsetY])&&U()};return e.tooltipShow?y.value["zr:click"]=H:y.value.click=U,Oe(e,{refreshData:C,click:U,resetRecord:F}),{option:B,style:d,refreshData:C,click:U,loading:S,onClose:v,ecanModal:h,echartRef:a,handleLocationOk:x,onFilterOption:I,locationVisible:i,locationValue:s,locationNames:l,eventObj:y}}}),Hh="",Wh="",df=e=>(t.pushScopeId("data-v-ff055734"),e=e(),t.popScopeId(),e),ff={class:"location-wrap"},uf=df(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function hf(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"),h=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",ff,[uf,t.createVNode(h,{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,g)=>(t.openBlock(),t.createBlock(c,{key:g,value:g},{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 pl=ve(ye(cf,[["render",hf],["__scopeId","data-v-ff055734"]])),pa={...Ee,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:""},ba=Ce(pa),bl=["click","refreshData","resetRecord"];Je.use([Et.CanvasRenderer,ht.ScatterChart,ke.ToolboxComponent,ke.TitleComponent,ke.TooltipComponent,ke.LegendComponent,ke.MarkLineComponent]);const gf=t.defineComponent({name:"EcanScatter",props:{...ba},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e){const o=t.ref(!1),n=Be(e),a=t.ref([]),r=t.ref(),i=t.computed(()=>o.value?$e:12),s=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=t.computed(()=>{const A=e.xAxisLabelFormatter,D=e.yAxisLabelFormatter;return{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(){Yt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.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 E;o.value=!0,(E=r.value)==null||E.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(){de.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(E){return typeof E=="string"&&E[0]==="0"&&!isNaN(+E)&&(E=(+E).toString()),lt(A,E)}},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(E){return lt(D,E)}},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(E){var C;const{marker:_,seriesName:O}=E,R=((C=E==null?void 0:E.data)==null?void 0:C.record)??{},{name:k,value:T}=R;return Ie(e.tooltipFormatter,{textData:{marker:_,seriesName:O,a:O,b:k,c:T,...R}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:i.value}},series:[{data:t.unref(a),type:"scatter",symbolSize:e.symbolSize,...t.unref(s)}]}}),{getGlobalModel:d,setGlobalModel:c}=t.inject(De,{getGlobalModel:A=>{},setGlobalModel:(A,D)=>{}}),{pageMode:h}=t.inject(Pe,{pageMode:"normal"}),y=(A=[],D)=>{const{name:E="name",value:_="value"}=D||{};a.value=A.map(O=>({value:[O[E],O[_]],record:O}))};t.watch(()=>e.data,A=>{(e.dataType==="static"||t.unref(h)==="design")&&y(A)},{immediate:!0,deep:!0});const f=t.ref(!1),g=qe(e),m=async()=>{var A,D;if(e.dataType==="request"){f.value=!0;try{const E=await g();y((D=(A=E==null?void 0:E.data)==null?void 0:A.data)==null?void 0:D.rows,e.dataFieldNames)}catch(E){console.error(E)}finally{f.value=!1}}},u=()=>{o.value=!1},S=Re(e);c(e.id,{type:e.type,RECORD:""});const B=S("click",A=>{const D=e.id,E=d(D);c(D,{...E,type:e.type,RECORD:A==null?void 0:A.data})});Oe(e,{refreshData:()=>{m()},click:B,resetRecord:()=>{const A=e.id,D=d(A);c(A,{...D,RECORD:""})}});const{setRequest:p}=t.inject(ze,{setRequest:A=>{}});return typeof p=="function"&&p({id:e.id,requestFn:m,sortNum:e.requestSort}),{option:l,style:n,click:B,loading:f,onClose:u,ecanModal:r}}}),Gh="";function mf(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 vl=ve(ye(gf,[["render",mf]])),va={...Ee,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},Sa=Ce(va),yf=t.defineComponent({name:"EcanCustomGraph",props:{...Sa},components:{Echarts:pt},setup(e){const o=Be(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:a0}}});function xf(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 Sl=ve(ye(yf,[["render",xf]])),Ca={...Ee,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:""},wa=Ce(Ca),Cl=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,ht.BarChart,ht.LineChart,ke.TitleComponent,ke.LegendComponent,ke.DatasetComponent,ke.ToolboxComponent,ke.MarkLineComponent]);const pf=t.defineComponent({name:"EcanComboGraph",props:{...wa},components:{Spin:Ft,Echarts:pt,EcanModal:kt,AModal:de.Modal},setup(e,{expose:o}){const n=t.inject("usedComponentList",[]),{getGlobalModel:a,setGlobalModel:r}=t.inject(De,{getGlobalModel:q=>{},setGlobalModel:(q,M)=>{}}),i=t.ref(),s=t.ref(!1),l=t.ref(!1),d=t.ref(null),c=t.ref([]),h=t.ref({});let y;const f=Be(e),g=t.ref([]),m=t.ref([]),u=t.ref(),S=t.ref([]),B=t.computed(()=>s.value?$e:12),b=t.computed(()=>({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: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=i.value.chart.getOption(),{xAxis:M}=q||{};M&&M.length&&(c.value=M[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(){Yt(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=u.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(){de.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:(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(S).map((q,M)=>({name:q.name,itemStyle:{color:e.colors[M]},icon:e.legendType})),formatter:q=>an(e.legendFormatter,{name:q})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:q=>{var ne;const M=q.length;let J="",W=e.tooltipFormatter;y=(ne=q[0])==null?void 0:ne.data,W===""&&(W="{marker} {a} {c}");const K=e.seriesTypes;for(let oe=0;oe<M;oe++){const ae=K[oe],{tooltipFormatter:Q}=ae||{},{marker:$,seriesName:ee,name:re,value:xe,data:Se}=q[oe]||{};if(oe===0){let Te=re;typeof re=="string"&&re[0]==="0"&&!isNaN(+re)&&(Te=(+re).toString()),J+=`${lt(e.xAxisLabelFormatter,Te)}<br/>`}J+=Ie(Q||W,{textData:{marker:$,name:re,value:xe,seriesName:ee,a:ee,b:re,c:xe||0,...Se}},{useNewline:!0,useSpace:!0}),J+="<br/>"}return J},textStyle:{color:e.tooltipTextStyleColor,fontSize:B.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(m).map(q=>{let M={};return q&&typeof q=="object"?M={...q}:M={value:q},M}),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()),lt(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"}},yAxis:t.unref(_),series:t.unref(g)})),{pageMode:v}=t.inject(Pe,{pageMode:"normal"}),p=()=>{s.value=!1},A=(q=[],M=!1)=>{let J;if(e.dataFieldConfigType==="key"){const K=M?e.keyTypeDataFieldNames:null;J=At(q,K)}else if(e.dataFieldConfigType==="value"){const K=M?e.valueTypeDataFieldNames:null;J=Mt(q,K)}m.value=J.dimensions;const W=J.dataset;S.value=J.dataset,g.value=E(W)},D=(q=[],M,J=!1)=>{const K=At(q,J?M:null,!0);e.defaultRangeValue&&Bi({props:e,componentList:t.unref(n),getGlobalModel:a},K),m.value=K.dimensions;const ne=K.dataset;S.value=K.dataset,g.value=E(ne)};function E(q){const M=[],J=q.length,W=e.seriesTypes;for(let K=0;K<J;K++){const ne=W[K],{type:oe,axisIndex:ae}=ne||{};let Q={type:oe,yAxisIndex:ae,...q[K]};if(oe==="line"){const $={};e.shadowColor&&($.shadowColor=e.shadowColor,$.shadowBlur=e.shadowBlur,$.shadowOffsetY=e.shadowOffsetY,$.shadowOffsetX=e.shadowOffsetX),Q={...Q,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[K]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[K]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[K],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...$}}}if(oe==="bar"){const{gradientShow:$,gradientColors:ee,gradientOffset:re}=e,xe={};if(e.barBorderRadius){const Se=e.barBorderRadius.split(",");if(Se!=null&&Se.length){const Te=[];for(const _e of Se){const we=parseFloat(_e);isNaN(we)||Te.push(we)}xe.borderRadius=Te}}$&&(xe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[K]},{offset:re,color:ee[K]},{offset:1,color:ee[K]}]}),Q={...Q,barWidth:e.barWidth,itemStyle:xe}}e.isShowMarkLine&&(Q.markLine={data:[{type:e.markLineType}]}),M.push(Q)}return M}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(v)==="design")&&A(q)},{immediate:!0,deep:!0});const _=t.computed(()=>{const q=e.yAxis;return q==null?void 0:q.map((M,J)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:J===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:J===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(W){return lt(M.axisLabelFormatter,W)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:J===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:J===0?"right":"left"}}))}),O=t.ref(!1),R=qe(e),k=async()=>{var q,M;if(e.dataType==="request")try{O.value=!0;const J=await R();A((M=(q=J==null?void 0:J.data)==null?void 0:q.data)==null?void 0:M.rows,!0)}catch(J){console.error(J)}finally{O.value=!1}},T=Ke(e),C=async()=>{var q;try{O.value=!0;const M=await T(),{columns:J=[],rows:W=[]}=((q=M==null?void 0:M.data)==null?void 0:q.data)??{};let K;J.length>0&&(K={name:J[0],types:J.slice(1).map(ne=>({label:ne,value:ne}))}),D(W,K,!0)}catch(M){console.error(M)}finally{O.value=!1}},{loadedData:I}=t.inject(vt,{loadedData:{}}),x=t.ref(!1);t.watch(I,q=>{if(e.dataType==="indicator"){const M=on(e.graphicConfig);M!=null&&M.length&&(!t.unref(x)&&it(e.graphicConfig,q)?(x.value=!0,w()):it(e.graphicConfig,q)||(x.value=!1))}},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(I))&&C();break;case"request":k();break}},L=(q,M)=>!!t.unref(c)[M.value].value.includes(q),P=async()=>{l.value=!1;const q=i.value.chart.getOption();for(let M=0;M<7;M++)await V(q,M)},V=(q,M)=>new Promise(J=>{setTimeout(()=>{const{series:W,color:K,xAxis:ne}=q,oe=i.value.chart,{splitArea:ae={}}=ne[0]||{};W.forEach((Q,$)=>{const ee=Q.data;let re="";M%2?re=K[$]+"a8":re=K[$],ee[d.value].itemStyle={color:re}}),M%2?(ae.show=!0,ae.areaStyle.color=t.unref(c).map((Q,$)=>$===d.value?"#ff003b26":"")):ae.show=!1,oe.setOption({series:W,xAxis:ne}),J()},200)});o({refreshData:w});const U=Re(e);r(e.id,{type:e.type,RECORD:""});const N=U("click",q=>{const M=a(e.id);r(e.id,{...M,type:e.type,RECORD:e.tooltipShow?y:q==null?void 0:q.data})}),F=q=>{i.value.chart.containPixel("grid",[q.offsetX,q.offsetY])&&N()};e.tooltipShow?h.value["zr:click"]=F:h.value.click=N;const{setRequest:H}=t.inject(ze,{setRequest:q=>{}});return typeof H=="function"&&H({id:e.id,requestFn:w,sortNum:e.requestSort}),Oe(e,{resetRecord:()=>{const q=e.id,M=a(q);r(q,{...M,RECORD:""})},refreshData:w,click:N}),{style:f,option:b,click:N,loading:O,onClose:p,ecanModal:u,echartRef:i,handleLocationOk:P,onFilterOption:L,locationVisible:l,locationValue:d,locationNames:c,eventObj:h}}}),Yh="",Kh="",bf=e=>(t.pushScopeId("data-v-63289030"),e=e(),t.popScopeId(),e),vf={class:"location-wrap"},Sf=bf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Cf(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"),h=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",vf,[Sf,t.createVNode(h,{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,g)=>(t.openBlock(),t.createBlock(c,{key:g,value:g},{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 wl=ve(ye(pf,[["render",Cf],["__scopeId","data-v-63289030"]])),Aa={...Ee,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},ka=Ce(Aa),Al=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,ht.RadarChart,ke.ToolboxComponent,ke.TitleComponent,ke.LegendComponent]);const wf=t.defineComponent({name:"EcanRadar",props:{...ka},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=Be(e),i=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?$e:12),d=t.ref([]),c=t.ref(e.valueTypeDataFieldNames.name),h=t.computed(()=>{const C=t.unref(d),I=C.length,x=[];for(let w=0;w<I;w++){const{name:L,data:P=[]}=C[w],V=[{name:L,value:P.map(F=>F.value)}];let U=e.colors[w];if(e.gradientShow){const{gradientOffset:F,gradientColors:H}=e;U={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[w]},{offset:F,color:H[w]},{offset:1,color:H[w]}]}}const N={type:"radar",name:L,data:V,areaStyle:{color:U,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:F=>{const{data:H,value:z}=F;let q=0,M="0%";if(H)for(const J of H.value)q+=+J;return q&&(M=`${(z/q*100).toFixed(2)}%`),Ie(e.labelFormatter,{textData:{value:z,percent:M}},{useNewline:!1,useSpace:!1})}}};x.push(N)}return x}),y=t.computed(()=>{var L;const C=[],I=[],x=t.unref(d),w=x.length;for(let P=0;P<w;P++){const{data:V=[]}=x[P];for(let U=0;U<V.length;U++)I.push(V[U].value)}if((L=i.value)!=null&&L.length){const P=I!=null&&I.length?Math.max(...I)*1.2:0;for(const V of i.value)C.push({name:V,max:P})}return C}),f=t.computed(()=>({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(){Yt(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 C;a.value=!0,(C=s.value)==null||C.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(){de.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:l.value},show:e.tooltipShow,formatter:C=>{let I="",x=e.tooltipFormatter;x===""&&(x="{marker} {a} {c}");for(let w=0;w<t.unref(y).length;w++){const L=t.unref(y)[w],{marker:P,seriesName:V,value:U}=C||{};w===0&&V&&(I+=`${V}<br/>`),I+=Ie(x,{textData:{marker:P,name:L.name,value:U[w],a:L.name,b:L.name,c:U[w]||0,type:V}},{useNewline:!0,useSpace:!0}),I+="<br/>"}return I},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:(a.value?$e:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?$e:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(d).map(C=>({name:C.name,icon:e.legendType})),formatter:C=>an(e.legendFormatter,{name:C})},series:t.unref(h)})),g=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:u}=t.inject(De,{getGlobalModel:C=>{},setGlobalModel:(C,I)=>{}}),{pageMode:S}=t.inject(Pe,{pageMode:"normal"}),B=(C=[],I=!1)=>{let x;if(e.dataFieldConfigType==="key"){const w=I?e.keyTypeDataFieldNames:null;x=At(C,w)}else if(e.dataFieldConfigType==="value"){const w=I?e.valueTypeDataFieldNames:null;x=Mt(C,w)}i.value=x.dimensions,d.value=x.dataset},b=(C=[],I,x=!1)=>{const L=At(C,x?I:null,!0);i.value=L.dimensions,d.value=L.dataset};t.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([C])=>{(e.dataType==="static"||t.unref(S)==="design")&&B(C)},{immediate:!0,deep:!0});const v=t.ref(!1),p=qe(e),A=async()=>{var C,I;if(e.dataType==="request")try{v.value=!0;const x=await p();B((I=(C=x==null?void 0:x.data)==null?void 0:C.data)==null?void 0:I.rows,!0)}catch(x){console.error(x)}finally{v.value=!1}},D=Re(e);u(e.id,{type:e.type,RECORD:""});const E=C=>{const I=C.event.topTarget.__dimIdx;I!==void 0&&D("click",()=>{var P;const{value:x,name:w}=C.data||{},L=m(e.id);u(e.id,{...L,type:e.type,RECORD:{[t.unref(c)]:((P=t.unref(y)[I])==null?void 0:P.name)||"",[w]:x[I],seriesName:w}})})()},_=Ke(e),O=async()=>{var C;try{v.value=!0;const I=await _(),{columns:x=[],rows:w=[]}=((C=I==null?void 0:I.data)==null?void 0:C.data)??{};let L;x.length>0&&(c.value=x[0],L={name:x[0],types:x.slice(1).map(P=>({label:P,value:P}))}),b(w,L,!0)}catch(I){console.error(I)}finally{v.value=!1}},R=()=>{switch(e.dataType){case"indicator":O();break;case"request":A();break}};Oe(e,{refreshData:R,resetRecord:()=>{const C=e.id,I=m(C);u(C,{...I,RECORD:""})},click:E});const{setRequest:T}=t.inject(ze,{setRequest:C=>{}});return typeof T=="function"&&T({id:e.id,requestFn:R,sortNum:e.requestSort}),o({refreshData:R}),{option:f,style:r,click:E,loading:v,onClose:g,ecanModal:s,echartRef:n}}}),Qh="";function Af(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 kl=ve(ye(wf,[["render",Af]])),kf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Tf="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==",Bf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Ef="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==",Ta={...Ee,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"},Ba=Ce(Ta),Tl=["click"],Df=t.defineComponent({name:"EcanBorder",props:{...Ba},setup(e){const o=Be(e,["background"]),n=t.computed(()=>{const{isTransparent:m,gradientShow:u,gradientColor:S,gradientOffset:B,gradientAngle:b,backgroundColor:v}=e;if(u){let p=S;return m&&(p="transparent"),p?{background:`linear-gradient(${b}, ${v}, ${p} ${B*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:m}=e;let u={};return m!=null&&m.length&&m.find(B=>B.emit==="showModal")&&(u={cursor:"pointer"}),u}),{theme:r}=t.inject(Pe,{theme:"light"}),i=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":kf,"../../assets/border-title-decoration-left2.png":Tf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":Bf,"../../assets/border-title-decoration-right2.png":Ef})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),d=t.computed(()=>({width:"100%",height:"100%"})),c=t.computed(()=>{const{borderRadius:m}=e,u=[],S={};if(m){const B=m.split(",");for(const b of B)(+b||+b==0)&&u.push(+b+"px")}return u!=null&&u.length&&(S.borderRadius=u.join(" ")),S}),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:g}=t.inject(De,{setGlobalModel:(m,u)=>{}});return g(e.id,{type:e.type,value:f}),{style:o,gradientStyle:n,click:y,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),Xh="",Tt=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),Rf=["id"],If=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Lf=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),_f=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Of=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Nf={class:"title-item"},Ff=["src"],Mf={class:"title"},zf=["src"],Pf=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),qf=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Vf=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Hf=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Wf={key:2,class:"left-title"},jf={class:"title"};function Gf(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},[If,Lf,_f,Of],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",Nf,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Ff),t.createElementVNode("div",Mf,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,zf)])],2),Pf,qf,Vf,Hf],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Wf,[t.createElementVNode("div",jf,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,Rf)}const Bl=ve(ye(Df,[["render",Gf],["__scopeId","data-v-8dd53b8f"]])),Ea={...Ee,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:[]},Da=Ce(Ea),El=["tabChange"],Uf=t.defineComponent({name:"EcanTabs",props:{...Da},components:{ASelect:de.Select,ASelectOption:de.SelectOption,MarqueeScroll:zn},setup(e){const o=Be(e),n=t.ref(0);t.watch(()=>e.activeKey,m=>{n.value=m},{immediate:!0});const{pageMode:a}=t.inject(Pe,{pageMode:"normal"});let r=null;const i=()=>{const m=Array.isArray(t.unref(s))?t.unref(s).length-1:0;!e.isAutoScroll&&e.autoSwitch&&m>0&&(r=setInterval(()=>{const u=t.unref(n)+1;u<=m?n.value=u:n.value=0,l.value=t.unref(s)[t.unref(n)],y()},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,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:h}=t.inject(De,{setGlobalModel:(m,u)=>{}});h(e.id,{value:l,activeKey:n});const{emitRefreshPage:y}=t.inject(tn,{emitRefreshPage:()=>{}}),f=(m,u)=>{c("tabChange",()=>{u!==t.unref(n)&&(l.value=m,n.value=u,y())})()},g=t.computed(()=>{const m=e.componentList.map(u=>parseFloat(u.left)+parseFloat(u.width)).sort((u,S)=>S-u)[0];return{width:m?m+"px":"100%"}});return Oe(e,{tabChange:f}),{style:o,activeKey:n,isActive:d,tabChange:f,myData:s,useImagePath:yt,pageMode:a,scrollWrapStyle:g}}}),t1="",$f=["id"],Yf=["onClick"];function Kf(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.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,h)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(h)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(h)?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:h,onClick:t.withModifiers(y=>e.tabChange(c,h),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(h)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,Yf))),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,h)=>(t.openBlock(),t.createBlock(s,{key:h,value:h,onClick:y=>e.tabChange(c,h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):t.createCommentVNode("",!0)],4)):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,$f)}const Dl=ve(ye(Uf,[["render",Kf],["__scopeId","data-v-132544b5"]])),Ra={...Ee,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},Ia=Ce(Ra),Rl=["click","refreshData","resetRecord"];let Il=(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 Zf=t.defineComponent({name:"EcanCirculate",props:{...Ia,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll:zn,Skeleton:en},setup(e,{expose:o}){const n=t.ref(!1),a=Be(e,["background"]),r=t.inject("usedComponentList",[]),i=t.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=t.inject(De,{getGlobalModel:E=>{},setGlobalModel:(E,_)=>{}}),d=t.ref([]),c=t.ref({}),{pageMode:h}=t.inject(Pe,{pageMode:"normal"}),y=t.computed(()=>{if(t.unref(i)){const E=document.body.clientWidth,_=e.sourceWidth||parseFloat(e.width);return E/_||1}else return 1});function f(E,_){const O=_.find(R=>R.id===e.id);if(O)for(const R of E)R.left=parseFloat(R.left)-parseFloat(O.sourceLeft||O.left)+"px",R.top=parseFloat(R.top)-parseFloat(O.sourceTop||O.top)+"px"}const g=E=>{const _=E.sort((T,C)=>parseFloat(T.top)-parseFloat(C.top))[0],O=E.sort((T,C)=>parseFloat(T.left)-parseFloat(C.left))[0],R=E.map(T=>parseFloat(T.left)+parseFloat(T.width)).sort((T,C)=>C-T)[0],k=E.map(T=>parseFloat(T.top)+parseFloat(T.height)).sort((T,C)=>C-T)[0];if(O&&R&&_&&k){const T=parseFloat(O.left),C=parseFloat(_.top);return{width:R-T,height:k-C,left:T}}else return{width:0,height:0,left:0}},m=t.ref({}),u=E=>{var P,V;const _=[],{graphicConfig:O,id:R,componentList:k,keyFieldMap:T,unitInterval:C,colNum:I}=e;let x=Le.cloneDeep(k),w=[];if((P=t.unref(r))!=null&&P.length)for(const U of t.unref(r))w.push(U),(V=U==null?void 0:U.componentList)!=null&&V.length&&w.push(...U.componentList);if(O.pageMode==="design"&&O.preview){const{containerMap:U}=O.pageConfig||{};w=O.componentList||[],w.push(e),x=ha(U,Le.cloneDeep(w),R)}f(x,w);const L=g(x);if(E!=null&&E.length){const{width:U,left:N,height:F}=L;let H=0,z=0;E.forEach((q,M)=>{q.index=M+1;const J=Il(),W=Le.cloneDeep(x);for(const K of W){const ne=T.find(ae=>ae.keyName===K.keyName),oe=Il();if(K.left=(parseFloat(K.left)+H)*t.unref(y)+"px",K.top=(parseFloat(K.top)+z)*t.unref(y)+"px",K.scale=t.unref(y),K.id=oe,K.keyName=K.name+"_"+oe,K.unitId=J,ne!=null&&ne.fieldName)switch(K.type){case"ecanText":{const ae=K.text.match(/\{(.+?)\}/g);K.data={value:String(q[ne.fieldName])},ae!=null&&ae.length||(K.text="{value}");break}}}I&&q.index%I===0?(H=0,z+=C+F):H+=C+U,_.push(...W),m.value[J]=q}),c.value={width:((I||E.length)*(U+C)+N)*t.unref(y)+"px"}}console.log("resultList",_),d.value=_},S=Ke(e),B=async()=>{var E;try{n.value=!0;const _=await S(),{rows:O=[]}=((E=_==null?void 0:_.data)==null?void 0:E.data)??{};u(O)}catch(_){console.error(_)}finally{n.value=!1}},b=()=>{switch(e.dataType){case"indicator":B();break}};Oe(e,{refreshData:b,resetRecord:()=>{const E=e.id,_=s(E);l(E,{..._,RECORD:""})}}),o({refreshData:b}),l(e.id,{type:e.type,RECORD:""});const{setRequest:p}=t.inject(ze,{setRequest:E=>{}});typeof p=="function"&&p({id:e.id,requestFn:b,sortNum:e.requestSort});const A=Re(e);return{loading:n,style:a,myComponentList:d,scrollWrapStyle:c,pageMode:h,click:E=>{let _=E.target;if(_){let O=_.getAttribute("unitId");for(;!O&&!_.className.includes("ecan-");)_=_.parentElement,O=_.getAttribute("unitId");O&&A("click",()=>{const R=s(e.id);l(e.id,{...R,type:e.type,RECORD:t.unref(m)[O]})})()}}}}}),o1="",Qf=["id"];function Jf(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:!1,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","style"])):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,Qf)}const Ll=ve(ye(Zf,[["render",Jf],["__scopeId","data-v-3538a455"]])),La={...Ee,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:""},_a=Ce(La),_l=["click"],Oa=t.defineComponent({name:"EcanImage",props:{..._a},setup(e){const o=Be(e),n=t.computed(()=>yt(e.imgUrl)),{pageMode:a}=t.inject(Pe,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=t.inject(De,{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||"",h=Di(t.unref(a),c),y=e.href;let f=y||h;f=Ie(f);const g=e.target;g&&(g!=="event"?window.open(f,"_"+g):window.parent.postMessage({type:"openPage",url:y},"*"))});return Oe(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),Ol=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},Nl=Oa.setup;Oa.setup=Nl?(e,o)=>(Ol(),Nl(e,o)):Ol;const r1="",Xf=["src"];function eu(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,Xf)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const Fl=ve(ye(Oa,[["render",eu],["__scopeId","data-v-47ea6e7c"]])),Na={...Ee,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Fa=Ce(Na),tu=t.defineComponent({name:"EcanIframe",props:{...Fa},setup(e){const o=Be(e),{contextRequestUrl:n}=t.inject(Pe,{contextRequestUrl:""}),a=t.computed(()=>{let r=Ie(e.link);if(e.linkType==="erd"&&r!=null){let i=t.unref(n);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${Ns||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),l1="",nu=["src"];function ou(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,nu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Ml=ve(ye(tu,[["render",ou],["__scopeId","data-v-19bc100c"]])),Ma={...Ee,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:!0,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},za=Ce(Ma),zl=["click","refreshData","resetRecord","exportTableData"],au="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",ru="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==",iu="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==",Pa=t.defineComponent({name:"EcanTable",components:{Skeleton:en,AButton:de.Button,AInput:de.Input,ACheckboxGroup:de.CheckboxGroup,ATable:de.Table,ATableSummary:de.TableSummary,ATableSummaryRow:de.TableSummaryRow,ATableSummaryCell:de.TableSummaryCell},props:{...za},setup(e,{expose:o}){const n=t.ref(!1),a=t.computed(()=>{const j=Le.cloneDeep(e.columns);return e.isUseSeq&&j.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&j.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),j}),r=t.ref(),i=t.ref(!1),s=Be(e),l=t.ref([]),d=t.computed(()=>e.scrollX),c=t.ref(0),h=()=>{let j=0;switch(e.size){case"small":j=50;break;case"middle":j=53;break;default:j=65;break}return j};t.watchEffect(()=>{var j;(j=l.value)!=null&&j.length&&e.height&&t.nextTick(()=>{let Z=parseFloat(e.height);const X=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),ie=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),se=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let le=0;if(ie&&(Z-=(ie==null?void 0:ie.clientHeight)||0),se&&e.isSummaryFixed&&(le=(se==null?void 0:se.clientHeight)||0,Z-=le),e.paginationShow){let te=0;te=h(),te&&(Z-=te)}(X==null?void 0:X.clientHeight)>Z?c.value=Z:c.value=0,t.nextTick(()=>{if(le){const te=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),ce=(te==null?void 0:te.clientHeight)||0;le!==ce&&t.unref(c)&&(c.value=Z+le-ce)}})})});const y=t.ref([]),f=t.ref([]),g=t.ref([]),m=t.ref([]),u=t.ref(0),S=t.ref(1),B=t.ref(e.paginationPageSize||10),b=t.reactive([]),v=(j=[])=>{var Z,X;if(Array.isArray(j)&&j.length>0){let ie=j.length;const se=e.columnsFixedNum;if(e.dataType==="indicator"&&((Z=t.unref(a))!=null&&Z.length)){const{graphicConfig:{indicators:le=[]}}=e;j.forEach((te,ce)=>{if(t.unref(a)[ce])for(const Me in t.unref(a)[ce])["dataIndex","title"].includes(Me)||(te[Me]=t.unref(a)[ce][Me]);const ge=le.find(Me=>Me.label===te.title),{showLabel:pe=""}=ge||{};pe&&(te.title=pe)})}for(let le=ie-1;le>=0;le--)(X=j[le])!=null&&X.isHidden&&j.splice(le,1);ie=j.length;for(let le=0;le<ie;le++){const te=j[le];if(le<se?te.fixed="left":te.fixed=!1,e.isSortByFront&&te.sorter){const Qe=te.dataIndex;te.sorter=(_t,Kt)=>_t[Qe]-Kt[Qe]}const{cellAlign:ce="center",cellColor:ge,dataIndex:pe,title:Me,tableFilter:Ze,headerCellAlign:xt,headerCellColor:Lt,overflow:wn}=te;Ze&&(b.push(pe),te.filterOptionsInputValue="",te.filterCheckboxGroupValue=[],te.customFilterDropdown=!0,te.onFilter=(Qe,_t)=>_t[pe].toString().toLowerCase().includes(Qe.toLowerCase())),te.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:xt||"center",color:Lt||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),te.customCell=(Qe,_t)=>({style:{textAlign:ce,color:ge||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(M)===_t&&e.clickHighlight},onClick:U("click",()=>{const Kt=e.id,An=N(Kt);Qe={dataIndex:pe,title:Me,...Qe},F(Kt,{...An,type:e.type,RECORD:Qe})})}),wn==="ellipsis"?te.ellipsis=!0:te.ellipsis=!1,Array.isArray(te.children)&&v(te.children)}}},p=(j=[])=>{var X;let Z=Le.cloneDeep(j);return(X=t.unref(m))!=null&&X.length&&(Z=Le.cloneDeep(t.unref(m))),e.isUseSeq&&Z.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Z.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),v(Z),Z};t.watch(B,()=>{S.value=1,ne(!1)}),t.watch(r,j=>{i.value=!!j}),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=p(Le.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([j,Z])=>{Z==="static"&&(f.value=j)},{immediate:!0});const A=t.ref({}),D=j=>{if(Array.isArray(j)){const Z=j.length,X=b,ie=X.length,se={};for(let te=0;te<Z;te++){const ce=j[te];for(let ge=0;ge<ie;ge++){const pe=X[ge];if(se[pe])se[pe].add(ce[pe]);else{const Me=new Set;Me.add(ce[pe]),se[pe]=Me}}}const le={};for(const te in se)if(Object.prototype.hasOwnProperty.call(se,te)){const ce=se[te],ge=Array.from(ce);le[te]=ge.map(pe=>({label:pe,value:pe}))}A.value=le}};t.watch(()=>[e.isReverse,y.value,f.value],()=>{const j=t.unref(y),Z=t.unref(f);if(D(Z),e.isReverse){const{columns:X,dataSource:ie}=E(Le.cloneDeep(j),Le.cloneDeep(Z));g.value=X,l.value=ie}else g.value=j,l.value=Z},{immediate:!0});const E=(j,Z)=>{const X=j[0],ie=[{title:X.title,dataIndex:"col0",key:"col0",align:"center"}];for(let le=0;le<Z.length;le++){const te=Z[le],ce="col"+(le+1);ie.push({title:te[X.dataIndex],dataIndex:ce,key:ce,align:"center"})}const se=[];for(let le=1;le<j.length;le++){const te=j[le],ce={col0:te.title};for(let ge=0;ge<Z.length;ge++){const pe=Z[ge];ce[`col${ge+1}`]=pe[te.dataIndex]}se.push(ce)}return{columns:ie,dataSource:se}},_=t.ref(""),O=qe(e),R=async(j=!0,Z={})=>{var X;try{j&&(n.value=!0),t.unref(_)&&(Z.orderCondition=t.unref(_)),e.paginationShow&&(Z={pageNum:t.unref(S),pageSize:t.unref(B)||"10",layer:"1",...Z});const ie=await O(Z),{rows:se=[],total:le=0}=((X=ie==null?void 0:ie.data)==null?void 0:X.data)||{};if(u.value=le,Array.isArray(se)&&(f.value=se),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:te=[]}=e,ce=te.find(ge=>ge.key==="dataSqlId");if((ce==null?void 0:ce.value)==="xt_jxzebg"){const ge=se.filter(pe=>!pe.绩效总额).map(pe=>pe.ORG_NAME);ge!=null&&ge.length&&t.nextTick(()=>{de.notification.warning({message:"提示",description:`当前时段${ge.join("、")}绩效数据为空`,duration:3})})}}}catch(ie){console.error(ie)}finally{n.value=!1}},k=({current:j},Z,X)=>{if(S.value=j,X&&Object.keys(X).length>0){const{field:ie,order:se}=X,te={ascend:"asc",descend:"desc"}[se];ie!=null&&te!=null&&te?_.value=ie+" "+te:te||(_.value="")}e.isSortByFront||ne(!1)},T=t.computed(()=>{const j=e.simple,Z=[e.paginationPosition],X={};return e.isShowTotal&&(X.showTotal=ie=>`共 ${ie} 条数据`),e.paginationShow&&{simple:j,position:Z,total:t.unref(u),current:t.unref(S),pageSize:t.unref(B)||"10",showSizeChanger:!1,size:"large",...X}}),C=j=>+j==1?"是":+j==0?"否":j,I=(j,Z)=>{const{format:X,retentiondigit:ie,customFormatter:se,defaultVal:le}=Z;let te="";if(X==null||X==="")te=j;else{const ce={money:Io,percentage:Sn,contrast:Sn,boolean:C,decimals:Wc,custom:Ti};ce[X]||(te=""),X==="decimals"?te=ce[X](j,ie)||"":X==="custom"?te=ce[X](j,se)||"":te=ce[X](j)||""}return te||(te=le),te},x=j=>j==="contrast"?"upDown":"",w=j=>{const{text:Z,format:X,declineColor:ie="#39cf93",increaseColor:se="#ff512e"}=j;if(X==="contrast"){const le={fontSize:e.fontSize},te=parseFloat(Z+"");return te>=0?le.color=se:te<0&&(le.color=ie),le}else return{}},L=t.computed(()=>{const{fontSize:j}=e;return{width:j,height:j,textIndent:`-${parseFloat(j)*2}px`,overflow:"hidden"}}),P=j=>{const{text:Z,declineColor:X="#39cf93",increaseColor:ie="#ff512e"}=j,{fontSize:se}=e,le=parseFloat(Z+""),te={width:se,verticalAlign:"unset"};return le>=0?te.filter=`drop-shadow(${ie||"#ff512e"} ${se} -1px)`:le<0&&(te.filter=`drop-shadow(${X||"#39cf93"} ${se} -1px)`),te},V=j=>{const Z=parseFloat(j+"");if(Z>=0)return Fo;if(Z<0)return Mo},U=Re(e),{getGlobalModel:N,setGlobalModel:F}=t.inject(De,{getGlobalModel:j=>{},setGlobalModel:(j,Z)=>{}});F(e.id,{type:e.type,RECORD:""});const H=(j=[],Z=[])=>{const X=j.map(ie=>({title:ie,dataIndex:ie,key:ie}));m.value=Le.cloneDeep(X),y.value=p(X),f.value=Z},z=Ke(e),q=async(j=!0)=>{var Z,X,ie,se;try{j&&(n.value=!0);const le=t.unref(_).split(" "),te={};e.isSortByFront||(te.sort={order:le[1],field:le[0]});const ce=await z(te);H((X=(Z=ce==null?void 0:ce.data)==null?void 0:Z.data)==null?void 0:X.columns,(se=(ie=ce==null?void 0:ce.data)==null?void 0:ie.data)==null?void 0:se.rows)}catch(le){console.error(le)}finally{n.value=!1}},M=t.ref(-1),J=(j,Z)=>({onClick:U("rowClick",()=>{const X=e.id,ie=N(X);F(X,{...ie,type:e.type,RECORD:j}),M.value=Z})}),{loadedData:W}=t.inject(vt,{loadedData:{}}),K=t.ref(!1);t.watch(W,j=>{if(e.dataType==="indicator"){const Z=on(e.graphicConfig);Z!=null&&Z.length&&(!t.unref(K)&&it(e.graphicConfig,j)?(K.value=!0,ne()):it(e.graphicConfig,j)||(K.value=!1))}},{deep:!0});const ne=(j=!0)=>{switch(e.dataType){case"request":R(j);break;case"indicator":it(e.graphicConfig,t.unref(W))&&q(j);break}},oe=()=>{const j=e.id,Z=N(j);F(j,{...Z,type:e.type,RECORD:""})},ae=t.computed(()=>{const j=t.unref(g);let Z=0;const{subTotalColumn:X,subTotalName:ie}=e;X&&(Z=j.findIndex(ge=>ge.dataIndex===X),Z<0&&(Z=0));const se=[];let le=0;for(let ge=0;ge<j.length;ge++){const pe=j[ge],{isCalcTotal:Me}=pe;ge===Z?se.push({...pe,total:ie}):Me?(se.push({...pe,index:ge,total:0}),le++):se.push({...pe})}if(le===0)return[];const te=t.unref(l),ce=Q(se);for(let ge=0;ge<ce.length;ge++){const pe=ce[ge];let Me=0;const{isCalcTotal:Ze,dataIndex:xt}=pe;if(Ze===!0){for(let Lt=0;Lt<te.length;Lt++){const Qe=+te[Lt][xt];isNaN(Qe)||(Me=new n0.Big(Me).add(Qe).toNumber())}pe.total=Me}}return ce});function Q(j){var X;const Z=[];for(const ie of j)(X=ie.children)!=null&&X.length?Z.push(...Q(ie.children)):Z.push(ie);return Z}const{setRequest:$}=t.inject(ze,{setRequest:j=>{}});typeof $=="function"&&$({id:e.id,requestFn:ne,sortNum:e.requestSort}),o({refreshData:ne});const ee=(j="",Z)=>Ie(j,Z),re=j=>{if(j!=="event")return{self:"_self",blank:"_blank"}[j]},xe=(j,Z="")=>{j==="event"&&window.parent.postMessage({type:"openPage",url:Z},"*")},Se=(j,Z)=>{j(Z.filterCheckboxGroupValue)},Te=(j,Z)=>{j({confirm:!0}),Z.filterOptionsInputValue="",Z.filterCheckboxGroupValue=[]},_e=()=>{},we=j=>{const Z=j.dataIndex;if(typeof Z=="string"){let X=t.unref(A)[Z];const ie=t.unref(j.filterOptionsInputValue).trim();return Array.isArray(X)?(X=X.filter(se=>typeof se.label=="string"?se.label.toLowerCase().includes(ie.toLowerCase()):!0),X):[]}return[]},Ae=async()=>{var pe,Me;const j="EXPORT_KEY";de.message.loading({key:j,content:"正在导出...",duration:0});let Z=[];if(e.dataType==="static")Z=e.data;else if(e.dataType==="request"){const Ze={layer:"1"};t.unref(_)&&(Ze.orderCondition=t.unref(_));const xt=await O(Ze);Z=((Me=(pe=xt==null?void 0:xt.data)==null?void 0:pe.data)==null?void 0:Me.rows)||{}}const X=t.unref(g),ie=[],se=[];X==null||X.forEach(Ze=>{ie.push(Ze.dataIndex),se.push(Ze.title)});const le=Z.map(Ze=>Le.pick(Ze,ie)),te=Zt.utils.book_new(),ce=Zt.utils.aoa_to_sheet([se]),ge=Zt.utils.sheet_add_json(ce,le,{skipHeader:!0,origin:"A2"});Zt.utils.book_append_sheet(te,ge,"sheet"),Zt.writeFile(te,"表格数据.xlsx"),de.message.success({key:j,content:"导出成功"})},Ve=(j,Z=2)=>{const X=+j*100;return isNaN(X)||X<=0?0:X>=100?100:X.toFixed(Z)};Oe(e,{resetRecord:oe,refreshData:ne,exportTableData:Ae});const Ue=(j,Z)=>{let X=null;return e.stripedShow&&(X=Z%2===1?"table-striped":null),X},He=t.computed(()=>{let j=0;const{height:Z,isPageBottom:X}=e;return X&&Z&&(j=parseFloat(Z)-h()),j?j+"px":"100%"}),We=t.computed(()=>{let j="#071655";return e.headerBackgroundColor&&(j="transparent"),j}),Ge=t.computed(()=>{let j="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(j="transparent"),j}),ut=t.computed(()=>parseFloat(e.fontSize)+16),tt=t.computed(()=>{let j="";const{paginationColor:Z,paginationBgColor:X,activePaginationColor:ie,activePaginationBgColor:se,hoverBackgroundColor:le}=e;return Z&&(j+="p-color "),X&&(j+="p-bg-color "),ie&&(j+="active-p-color "),se&&(j+="active-p-bg-color "),le&&(j+="hover-bg-color "),j});return{x:d,y:c,style:s,customRow:J,pagination:T,formatFn:I,contrastClass:x,tableChange:k,summaryList:ae,loading:n,onTouchHrefEvent:xe,handleHref:ee,handleHrefTarget:re,useRowIndex:M,tableColumns:g,tableDataSource:l,useFilterOptions:we,useSetSelectedKeys:Se,onResetFilter:Te,onSearchFilterOptions:_e,exportTableData:Ae,handleProgressText:Ve,pageSizeVisible:i,pageSize:B,tableRef:r,rowClassName:Ue,tableHeight:He,tableHeaderBgColor:We,tableBodyBgColor:Ge,getChgStyle:w,chgBoxStyle:L,getChgBoxImgStyle:P,getChgBoxImgSrc:V,seqIcon1:au,seqIcon2:ru,seqIcon3:iu,iconSize:ut,containerClass:tt,getCellStyle:j=>{const{overflow:Z}=j;if(Z==="ellipsis")return{overflow:"hidden",textOverflow:"ellipsis"};if(Z==="wrap")return{}}}}}),Pl=()=>{t.useCssVars(e=>({"35f7e0e1":e.stripedColor,f8e64a50:e.tableHeaderBgColor,"371eb03a":e.tableBodyBgColor,"2776154f":e.paginationBgColor,"04097258":e.paginationColor,"5b8ff6a9":e.activePaginationBgColor,"55f1b6ae":e.activePaginationColor,"0e9c5c24":e.hoverBackgroundColor}))},ql=Pa.setup;Pa.setup=ql?(e,o)=>(Pl(),ql(e,o)):Pl;const c1="",d1="",lu=e=>(t.pushScopeId("data-v-2a78e5dc"),e=e(),t.popScopeId(),e),su=["id"],cu={key:0,class:"table-tool"},du=t.createTextVNode("导出数据"),fu=t.createTextVNode(" 搜索 "),uu=t.createTextVNode(" 重置 "),hu=["src","width","height"],gu=["src","width","height"],mu=["src","width","height"],yu={key:1},xu={key:1,class:"action-list"},pu=["href","target","onClick"],bu={key:2,class:"progress-cell"},vu=["title"],Su=["title"],Cu=["src"],wu=["title"],Au=["src"],ku={class:"ant-pagination-options-quick-jumper"},Tu=lu(()=>t.createElementVNode("span",null,"条 / 页",-1));function Bu(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"),h=t.resolveComponent("a-table-summary-row"),y=t.resolveComponent("a-table-summary"),f=t.resolveComponent("a-table"),g=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(g,{loading:e.loading},{default:t.withCtx(()=>{var m;return[e.isUseExport?(t.openBlock(),t.createElementBlock("div",cu,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[du]),_: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:S,setSelectedKeys:B,confirm:b,clearFilters:v})=>[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(B,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:()=>b()},{default:t.withCtx(()=>[fu]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(p=>e.onResetFilter(v,u),["stop"])},{default:t.withCtx(()=>[uu]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:u,index:S,text:B,record:b})=>{var v,p,A,D;return[u.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[S===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,hu)):S===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,gu)):S>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,mu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.fontSize})},t.toDisplayString(S+1),5)],64)):(t.openBlock(),t.createElementBlock("span",yu,t.toDisplayString(S+1),1))],64)):u.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",xu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(E,_)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:_},[t.createElementVNode("a",{href:e.handleHref(E.href,b),target:e.handleHrefTarget(E.target),style:t.normalizeStyle({color:E.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:O=>e.onTouchHrefEvent(E.target,e.handleHref(E.href,b))},t.toDisplayString(E.title),13,pu)]))),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(B,u.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(B)<100?u.progressTextColor||"#333":u.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(B,u.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(u)})},[u.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:0,title:((v=u==null?void 0:u.customFormatter)==null?void 0:v.split("{value}")[0])||""},t.toDisplayString(((p=u==null?void 0:u.customFormatter)==null?void 0:p.split("{value}")[0])||""),9,vu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(u.format)]),style:t.normalizeStyle(e.getChgStyle({...u,text:B})),title:u.format!=null?e.formatFn(B,u):B},[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:B})),src:e.getChgBoxImgSrc(B)},null,12,Cu)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(u.format!=null?e.formatFn(B,u):B||(u==null?void 0:u.defaultVal)),1)],14,Su),u.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((A=u==null?void 0:u.customFormatter)==null?void 0:A.split("{value}")[1])||""},t.toDisplayString(((D=u==null?void 0:u.customFormatter)==null?void 0:D.split("{value}")[1])||""),9,wu)):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(h,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(u,S)=>(t.openBlock(),t.createBlock(c,{key:S,index:S,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,Au)],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},[(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",ku,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=u=>e.pageSize=u)},null,512),[[t.vModelText,e.pageSize]]),Tu])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,su)}const Vl=ve(ye(Pa,[["render",Bu],["__scopeId","data-v-2a78e5dc"]])),qa={...Ee,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"},Va=Ce(qa),Hl=["click"];Je.use([Et.CanvasRenderer,ht.MapChart,ht.ScatterChart,ke.VisualMapComponent,ke.TooltipComponent,ke.GraphicComponent]);const Eu=t.defineComponent({name:"EcanMap",components:{Echarts:pt},props:{...Va},setup(e){const o=qe(e),n=qe({...e.tooltipRequestData,requestHeaders:{}}),a=t.ref(),r=t.ref(""),i=t.ref(""),s=Be(e,["backgroundImage"]),l=t.ref(),d=t.computed(()=>yt(e.geoBackgroundImage)),c=t.computed(()=>yt(e.backgroundImage)),h=t.computed(()=>e.geoBackgroundImage?{image:t.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),y=t.computed(()=>{const C=e.symbolImage;return e.symbolImage?"image://"+yt(C):"circle"}),f=C=>{let I=e.tooltipFormatter;const x=I.match(/\{(.+?)\}/g);if(x==null||x.length===0)return I;for(let w=0;w<x.length;w++){const L=x[w];let P=L.slice(1,-1).trim();const V=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,U=P.match(V);for(let N=0;N<U.length;N++){const F=U[N],H=C[F];H!=null&&(P=P.replace(F,H))}I=I.replace(L,P)}return I.split(`
|
|
120
|
-
`)},g=t.ref(!1),m=t.ref("");let u=new AbortController;const S=(C,I)=>{const x=u.signal;g.value=!0,r.value=C,n({name:C,signal:x}).then(w=>{var L,P;if(w){const V=((P=(L=w==null?void 0:w.data)==null?void 0:L.data)==null?void 0:P.rows)||[];let U="";for(const N of V){const F=f(N)||[];if(F!=null&&F.length)for(const H of F)U+=`<div style="word-break: break-all;white-space: normal;">${H}</div>`}U=`<div style="max-width:200px;">${U}</div>`,i.value=U,I(t.unref(m),U)}else x.aborted?i.value="Loading":i.value=C,I(t.unref(m),i.value);g.value=!1})},B=t.computed(()=>{const C=e.geoCenter;let I;return typeof C=="string"&&C!==""&&(I=C.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:I,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(x,w,L)=>{m.value=w;const{name:P=""}=x,{requestUrl:V}=e.tooltipRequestData;if(!V)return P;if(t.unref(g))t.unref(r)!==P&&(u.abort(),u=new AbortController);else{if(t.unref(r)===P)return t.unref(i);S(P,L)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(h),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}]}}),b=t.ref(!1),v=async()=>{var x;b.value=!1;const C=e.mapJson,I=`map-${e.id}`;if(C!=null&&C.path){const w=await ft(((x=window==null?void 0:window.config)==null?void 0:x.uploadPath)+C.path);Je.registerMap(I,(w==null?void 0:w.data)||{})}else Je.registerMap(I,{});b.value=!0};t.watch(()=>e.mapJson,()=>{v()},{immediate:!0,deep:!0});const p=async()=>{var C,I;if(e.dataType==="request"){b.value=!1;try{const x=await o(),w=((I=(C=x==null?void 0:x.data)==null?void 0:C.data)==null?void 0:I.rows)||{},L=`map-${e.id}`;if(w!=null&&w.path){const P=await ft(w.path);Je.registerMap(L,(P==null?void 0:P.data)||{})}else Je.registerMap(L,{})}catch(x){console.error(x)}finally{b.value=!0}}},A=()=>{switch(e.dataType){case"request":p();break}},{getGlobalModel:D,setGlobalModel:E}=t.inject(De,{getGlobalModel:C=>{},setGlobalModel:(C,I)=>{}}),O=Re(e)("click",()=>{const C=D(e.id);E(e.id,{...C,RECORD:t.unref(a)})});Oe(e,{refreshData:A});const{setRequest:R}=t.inject(ze,{setRequest:C=>{}});return typeof R=="function"&&R({id:e.id,requestFn:A,sortNum:e.requestSort}),{option:B,style:s,isLoadedData:b,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{t.unref(a)&&O()},onMouseOver:(C={})=>{C.componentType==="geo"&&C.region?a.value=C.region:a.value=null}}}}),u1="",Du=["src"];function Ru(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,Du),[[t.vShow,!1]])],4)}const Wl=ve(ye(Eu,[["render",Ru],["__scopeId","data-v-10f150ac"]])),Ha={...Ee,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"},Wa=Ce(Ha),jl=["selectChange","refreshData"],Iu=t.defineComponent({name:"EcanDataSelect",components:{ASelect:de.Select,ASelectOption:de.SelectOption},props:{...Wa},setup(e,{expose:o}){const n=Be(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=qe(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var T;const{mode:k}=e;return(T=t.unref(i))!=null&&T.length?s.value:k==="multiple"||k==="tags"||k==="combobox"?[]:""},set:k=>{s.value=k}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:h}=t.inject(De,{getGlobalModel:k=>{},setGlobalModel:(k,T)=>{},getRecordValueByKeyName:k=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:k,selectFirstOption:T,value:C}=e,I=h(C),x=y.value;if(k==="multiple"||k==="tags"||k==="combobox"){if(I)s.value=I.split(",");else if(T){const w=t.unref(i)[0];s.value=w?[w[x]]:[]}}else if(I)s.value=I;else if(T){const w=t.unref(i)[0];s.value=w?w[x]:""}},{immediate:!0});const f=(k,T)=>{const C=y.label,I=y.value;let x;const w=T[C],L=T[I];return w!=null?x=w:L!=null&&(x=L),(x==null?void 0:x.toLowerCase().indexOf(k==null?void 0:k.toLowerCase()))>=0},g=k=>{const{label:T,value:C,options:I}=e.dataFieldNames;if(I&&Array.isArray(k))if(k.some(x=>I in x)){const x={},w=[];k.forEach(L=>{x[L[I]]||(x[L[I]]=[]),x[L[I]].push({[T]:L[T],[C]:L[C]})});for(const L in x)w.push({[T]:L,[I]:x[L]});return w}else return k;else if(!I)return k},m=t.ref(!1),u=async()=>{var k,T;if(e.dataType==="request"){m.value=!0;try{const C=await r();if(i.value=g(((T=(k=C==null?void 0:C.data)==null?void 0:k.data)==null?void 0:T.rows)||[]),e.selectFirstOption){let I=t.unref(i)[0];if(y.options){const x=I[y.options];x&&x.length&&(I=x[0])}s.value=I[y.value]}}catch(C){console.error(C)}finally{m.value=!1}}},S=t.computed(()=>{let k=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const T=y.label,C=y.value;if(e.mode==="multiple")k=t.unref(i).filter(I=>t.unref(s).includes(I[C])).map(I=>I[T]);else{const I=t.unref(i).find(x=>t.unref(s)===x[C]);I&&(k=I[T])}}return k}),B=t.ref([]),b=t.computed(()=>{const k={};if(e.mode!=="multiple"){const T=t.unref(B).find(C=>C.value===t.unref(s));T&&(k.itemCodes=T.item_codes)}return k}),v=t.computed(()=>{const{value:k,label:T}=y,C=t.unref(i).find(I=>I[k]===t.unref(l));return C?{label:C[T],value:C[k]}:{}});c(e.id,{type:e.type,value:S,...t.unref(b),recordData:t.unref(v)});const A=Re(e)("selectChange",()=>{const k=e.id,T=d(k);c(k,{...T,...t.unref(b),RECORD:S,recordData:t.unref(v)})}),D=(k=[])=>{if(i.value=g(k),e.selectFirstOption){let T=t.unref(i)[0];if(y.options){const C=T[y.options];C&&C.length&&(T=C[0])}s.value=T[y.value]}c(e.id,{type:e.type,value:S,...t.unref(b),recordData:t.unref(v)})},E=Ke(e),_=async()=>{var k;try{m.value=!0;const T=await E(),{data:C}=(T==null?void 0:T.data)||{},I=y.label,x=y.value;if(C){const w=((k=T==null?void 0:T.data)==null?void 0:k.data)??[];B.value=w;const L=w.map(U=>({[I]:U.label,[x]:U.value})),{id:P}=e,V=d(P);c(P,{...V,...t.unref(b)}),D(L)}else D([])}catch(T){console.error(T)}finally{m.value=!1}},O=()=>{switch(e.dataType){case"indicator":{_();break}case"request":u();break}};Oe(e,{selectChange:A,refreshData:O});const{setRequest:R}=t.inject(ze,{setRequest:({id:k,sortNum:T,requestFn:C})=>{}});return typeof R=="function"&&R({id:e.id,requestFn:O,sortNum:e.requestSort}),o({refreshData:O}),{style:n,getPopupContainer:a,myValue:s,selectChange:A,options:i,filterOption:f,loading:m,resultValue:l}}}),g1="",m1="";function Lu(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 Gl=ve(ye(Iu,[["render",Lu],["__scopeId","data-v-3639c038"]])),Ul=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:pl,EcanBorder:Bl,EcanButton:tl,EcanCheckbox:ol,EcanCirculate:Ll,EcanComboGraph:wl,EcanCustomGraph:Sl,EcanDataSelect:Gl,EcanDatePicker:Yi,EcanIframe:Ml,EcanImage:Fl,EcanInput:ji,EcanLine:yl,EcanList:qi,EcanMap:Wl,EcanModal:kt,EcanPageConfig:Ri,EcanPie:gl,EcanProportion:Hi,EcanProviderConfig:Ii,EcanRadar:kl,EcanRadio:cl,EcanRangePicker:Xi,EcanScatter:vl,EcanScrollText:Fi,EcanSelect:rl,EcanTable:Vl,EcanTabs:Dl,EcanText:Ni,EcanTimeDisplay:zi,EcanTreeSelect:ll,barComponentProps:xa,barEvents:xl,barProps:ya,borderComponentProps:Ba,borderEvents:Tl,borderProps:Ta,buttonComponentProps:ea,buttonEvents:el,buttonProps:Xo,checkboxComponentProps:na,checkboxEvents:nl,checkboxProps:ta,circulateComponentProps:Ia,circulateEvents:Rl,circulateProps:Ra,comboGraphComponentProps:wa,comboGraphEvents:Cl,comboGraphProps:Ca,customGraphComponentProps:Sa,customGraphProps:va,dataSelectComponentProps:Wa,dataSelectEvents:jl,dataSelectProps:Ha,datePickerComponentProps:Yo,datePickerEvents:Gi,datePickerProps:$o,iframeComponentProps:Fa,iframeProps:Na,imageComponentProps:_a,imageEvents:_l,imageProps:La,inputComponentProps:Uo,inputEvents:Wi,inputProps:Go,lineComponentProps:ma,lineEvents:ml,lineProps:ga,listComponentProps:Ho,listEvents:Pi,listProps:Vo,mapComponentProps:Va,mapEvents:Hl,mapProps:qa,modalComponentProps:ua,modalEvents:fl,modalProps:fa,pageConfig:Pn,pageConfigComponentProps:qn,pieComponentProps:da,pieEvents:dl,pieProps:ca,proportionComponentProps:jo,proportionEvents:Vi,proportionProps:Wo,providerConfig:Lo,providerConfigComponentProps:_o,radarComponentProps:ka,radarEvents:Al,radarProps:Aa,radioComponentProps:sa,radioEvents:sl,radioProps:la,rangePickerComponentProps:Qo,rangePickerEvents:Ki,rangePickerProps:Zo,scatterComponentProps:ba,scatterEvents:bl,scatterProps:pa,selectComponentProps:aa,selectEvents:al,selectProps:oa,tableComponentProps:za,tableEvents:zl,tableProps:Ma,tabsComponentProps:Da,tabsEvents:El,tabsProps:Ea,textComponentProps:No,textEvents:Li,textProps:Oo,timeDisplayComponentProps:qo,timeDisplayEvents:Mi,timeDisplayProps:Po,treeSelectComponentProps:ia,treeSelectEvents:il,treeSelectProps:ra},Symbol.toStringTag,{value:"Module"})),_u={install:e=>{Object.keys(Ul).forEach(o=>{const n=Ul[o];n.install&&e.use(n)})}};G.EcanBar=pl,G.EcanBorder=Bl,G.EcanButton=tl,G.EcanCheckbox=ol,G.EcanCirculate=Ll,G.EcanComboGraph=wl,G.EcanCustomGraph=Sl,G.EcanDataSelect=Gl,G.EcanDatePicker=Yi,G.EcanIframe=Ml,G.EcanImage=Fl,G.EcanInput=ji,G.EcanLine=yl,G.EcanList=qi,G.EcanMap=Wl,G.EcanModal=kt,G.EcanPageConfig=Ri,G.EcanPie=gl,G.EcanProportion=Hi,G.EcanProviderConfig=Ii,G.EcanRadar=kl,G.EcanRadio=cl,G.EcanRangePicker=Xi,G.EcanScatter=vl,G.EcanScrollText=Fi,G.EcanSelect=rl,G.EcanTable=Vl,G.EcanTabs=Dl,G.EcanText=Ni,G.EcanTimeDisplay=zi,G.EcanTreeSelect=ll,G.barComponentProps=xa,G.barEvents=xl,G.barProps=ya,G.borderComponentProps=Ba,G.borderEvents=Tl,G.borderProps=Ta,G.buttonComponentProps=ea,G.buttonEvents=el,G.buttonProps=Xo,G.checkboxComponentProps=na,G.checkboxEvents=nl,G.checkboxProps=ta,G.circulateComponentProps=Ia,G.circulateEvents=Rl,G.circulateProps=Ra,G.comboGraphComponentProps=wa,G.comboGraphEvents=Cl,G.comboGraphProps=Ca,G.compatibleMobileList=hl,G.customGraphComponentProps=Sa,G.customGraphProps=va,G.dataSelectComponentProps=Wa,G.dataSelectEvents=jl,G.dataSelectProps=Ha,G.datePickerComponentProps=Yo,G.datePickerEvents=Gi,G.datePickerProps=$o,G.default=_u,G.handleScrollCombinations=ul,G.iframeComponentProps=Fa,G.iframeProps=Na,G.imageComponentProps=_a,G.imageEvents=_l,G.imageProps=La,G.inputComponentProps=Uo,G.inputEvents=Wi,G.inputProps=Go,G.lineComponentProps=ma,G.lineEvents=ml,G.lineProps=ga,G.listComponentProps=Ho,G.listEvents=Pi,G.listProps=Vo,G.mapComponentProps=Va,G.mapEvents=Hl,G.mapProps=qa,G.modalComponentProps=ua,G.modalEvents=fl,G.modalProps=fa,G.moveToComponentList=ha,G.pageConfig=Pn,G.pageConfigComponentProps=qn,G.pieComponentProps=da,G.pieEvents=dl,G.pieProps=ca,G.proportionComponentProps=jo,G.proportionEvents=Vi,G.proportionProps=Wo,G.providerConfig=Lo,G.providerConfigComponentProps=_o,G.radarComponentProps=ka,G.radarEvents=Al,G.radarProps=Aa,G.radioComponentProps=sa,G.radioEvents=sl,G.radioProps=la,G.rangePickerComponentProps=Qo,G.rangePickerEvents=Ki,G.rangePickerProps=Zo,G.scatterComponentProps=ba,G.scatterEvents=bl,G.scatterProps=pa,G.selectComponentProps=aa,G.selectEvents=al,G.selectProps=oa,G.tableComponentProps=za,G.tableEvents=zl,G.tableProps=Ma,G.tabsComponentProps=Da,G.tabsEvents=El,G.tabsProps=Ea,G.textComponentProps=No,G.textEvents=Li,G.textProps=Oo,G.timeDisplayComponentProps=qo,G.timeDisplayEvents=Mi,G.timeDisplayProps=Po,G.treeSelectComponentProps=ia,G.treeSelectEvents=il,G.treeSelectProps=ra,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
119
|
+
</span>`)}else e.format==="percent"?(M=+M,isNaN(M)||(M=(M*100).toFixed(2),_=_.replace(F,`<span style="color:${u(M)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${M}%</span>`))):e.format==="money"?(M=+M,isNaN(M)||(M=Io(M),_=_.replace(F,`<span style="color:${u(M)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${M}</span>`))):J==="thousands"?(M=+M,isNaN(M)||(M=Uc(M),_=_.replace(F,`<span style="color:${u(M)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${M}</span>`))):_=_.replace(F,`<span style="color:${u(M)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${M}</span>`)}}if(V||(V=`<span style="color: ${u(_)};${t.unref(f)}">${_}</span>`),e.unitShow&&e.unitText){const{unitTop:N,unitLeft:F}=e;let H="position:relative;";N&&(H+=`top:${N};`),F&&(H+=`margin-left:${F};`),V+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${H};${t.unref(f)}'>${e.unitText}</span>`}return V});function u(L){let p="",A=!1;const{targetValue:_,targetShow:P,notExpectColor:V}=e;if(P){switch(e.targetRule){case"equal":L!==_&&(A=!0);break;case"greater":L<=_&&(A=!0);break;case"greater_equal":L<_&&(A=!0);break;case"less":L>=_&&(A=!0);break;case"less_equal":L>_&&(A=!0);break}A&&(p=V)}return p}const{pageMode:S}=t.inject(qe,{pageMode:"normal"}),B=Pe(e),b=t.ref(!1),v=async()=>{var L;try{b.value=!0;const p=await B();r.value=((L=p==null?void 0:p.data)==null?void 0:L.data)||{}}catch(p){console.error(p)}finally{b.value=!1}},x=(L={})=>{r.value=L},w=L=>{const p=e.id,A=l(p);d(p,{...A,value:L||"",RECORD:L||""})},T=()=>{w("")},E=Ke(e),I=async()=>{var L,p;try{b.value=!0;const A=await E(),{data:_}=(A==null?void 0:A.data)||{};if(_){n.value=!1;const{columns:P=[],rows:V=[]}=((L=A==null?void 0:A.data)==null?void 0:L.data)??{},{graphicConfig:U}=e;let N={};if(P.length>0)if((p=U==null?void 0:U.dimensionList)!=null&&p.length){const F=P[0];F&&(V!=null&&V.length)&&(N={value:V[0][F]})}else{const F=P.find(H=>!!H);F&&(N={value:isNaN(V[F])?0:V[F]||0})}w(N==null?void 0:N.value),x(N)}else n.value=!0,w("NaN"),x({value:"NaN"})}catch(A){console.error(A)}finally{b.value=!1,y(e.id,!0)}},O=()=>{switch(e.dataType){case"indicator":I();break;case"request":{const{openCustomRequestData:L,customRequestName:p,customRequestField:A}=e;if(L||L===void 0)v();else{const _=h(p);_&&(r.value={[A]:_[A]})}break}}},{setRequest:R}=t.inject(ze,{setRequest:({id:L,sortNum:p,requestFn:A})=>{}});typeof R=="function"&&R({id:e.id,requestFn:O,sortNum:e.requestSort}),_e(e,{refreshData:O,resetRecord:T}),o({refreshData:O});const k=Re(e),D=k("click",()=>{const L=document.getElementsByClassName(`ecan-text_${e.id}`);if(L!=null&&L.length&&w(L[0].innerText),setTimeout(()=>{w("")},0),!e.linkPage&&!e.href)return;const p=e.linkPage||"",A=Ii(t.unref(S),p),_=e.href;let P=_||A;P=Ie(P);const V=e.target;V&&(V!=="event"?window.open(P,"_"+V):window.parent.postMessage({type:"openPage",url:_},"*"))}),C=k("valueChange",()=>{});return t.watch(()=>m.value,(L,p)=>{L!==p&&C()}),{style:a,myText:m,loading:b,click:D,textIndent:s,vFontSize:i,gradientStyle:g}}}),Ni=()=>{t.useCssVars(e=>({"3158f1cb":e.vFontSize,bc355ad8:e.textIndent,"702547ec":e.percentageSide}))},Fi=zo.setup;zo.setup=Fi?(e,o)=>(Ni(),Fi(e,o)):Ni;const ch="",nd=["innerHTML"];function od(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,nd))}const Mi=ve(me(zo,[["render",od],["__scopeId","data-v-37b93a95"]])),ad=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),fh="",rd={class:"red"};function id(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",rd,t.toDisplayString(e.text),1)}const zi=ve(me(ad,[["render",id],["__scopeId","data-v-4dd9c03e"]])),Po={...Ee,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"}},qo=Ce(Po),Pi=["timeChange"],ld=t.defineComponent({name:"EcanTimeDisplay",props:{...qo},setup(e){const o=Te(e),n=()=>{const{format:c,operate:h}=e;let y=ye();if(h){const{type:f,value:g,mode:m}=h;switch(f){case"add":y=y.add(g,m);break;case"minus":y=y.subtract(g,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 r=null;const i=()=>{clearInterval(r),r=null},l=Re(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:h,mode:y}=e.updateInterval||{};h&&(c=c*h);const f={second:1,minute:60,hour:60*60,day:24*60*60};y&&(c=c*f[y]),r=setInterval(()=>{a.value=n(),l()},c)};return _e(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{i()}),{style:o,time:a}}}),hh="";function sd(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 qi=ve(me(ld,[["render",sd],["__scopeId","data-v-b628fca2"]])),Vo={...Ee,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%"},Ho=Ce(Vo),Vi=["refreshData","click","resetRecord"],cd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",dd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",fd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",ud="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",hd=t.defineComponent({name:"EcanList",components:{Skeleton:Mt,ATooltip:de.Tooltip,MarqueeScroll:zn},props:{...Ho},setup(e,{expose:o}){const n=t.ref(),a=Te(e,["backgroundColor"]),r=(p,A)=>{const{format:_,customFormatter:P}=A;if(_==null||_==="")return p;const V={money:Io,percentage:Sn,contrast:Sn,custom:Ei};return V[_]?_==="custom"?V[_](p,P)||"":V[_](p)||"":""},i=(p,A)=>{const _=parseFloat(p+"");if(A!=="contrast")return"";switch(!0){case _>=0:return"goUp";case _<0:return"goDown"}},s=Pe(e),l=t.ref(!1),d=async()=>{var p;if(e.dataType==="request")try{l.value=!0;const A=await s();n.value=((p=A==null?void 0:A.data)==null?void 0:p.data.rows)||[]}catch(A){console.error(A)}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})),h=t.computed(()=>{const{columns:p,isUseSeq:A}=e;return A?[t.unref(c),...p]:p}),y=Ke(e),f=async()=>{var p;try{l.value=!0;const A=await y(),{columns:_=[],rows:P=[]}=((p=A==null?void 0:A.data)==null?void 0:p.data)??{};e.isUseSeq&&_.unshift(e.seqName),h.value.forEach((V,U)=>{(!e.isUseSeq||U!==0)&&(V.title=_[U],V.key=_[U])}),n.value=P}catch(A){console.error(A)}finally{l.value=!1}},g=()=>{switch(e.dataType){case"indicator":f();break;case"request":d();break}},m=Re(e),{getGlobalModel:u,setGlobalModel:S}=t.inject(De,{getGlobalModel:p=>{},setGlobalModel:(p,A)=>{}}),B=p=>{m("click",()=>{const A=u(e.id);S(e.id,{...A,type:e.type,RECORD:p})})()};_e(e,{refreshData:g,resetRecord:()=>{const p=e.id,A=u(p);S(p,{...A,type:e.type,RECORD:""})}});const{setRequest:v}=t.inject(ze,{setRequest:({id:p,sortNum:A,requestFn:_})=>{}});typeof v=="function"&&v({id:e.id,requestFn:g,sortNum:e.requestSort}),o({refreshData:g});const x=p=>({flex:p.width?"none":"1",width:p.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:p.align||"left",backgroundColor:p.cellColor}),w=(p,A)=>{let _=0;const P=t.unref(n).map(U=>U[A]),V=Math.max(...P);return V&&(_=p[A]/V*100),_},T=p=>{const{progressColor:A="#1890ff",progressGradientColor:_=""}=p;return _?{background:`linear-gradient(to right, ${A} 0%, ${_} 100%)`}:{backgroundColor:A||"#1890ff"}},E=t.computed(()=>{const p=parseFloat(e.seqFontSize)+5;return{width:p+10,height:p}}),{pageMode:I}=t.inject(qe,{pageMode:"normal"}),O=t.computed(()=>t.unref(I)!=="design"&&e.isAutoScroll),R=p=>{const{seqIconConfig:A}=e;let _=A.find(P=>P.key===p+1);return _||(_=A.find(P=>P.key==="other")),!!(_!=null&&_.icon)},k=(p,A)=>{const{seqIconConfig:_}=e;let P=_.find(V=>V.key===p+1);return P||(P=_.find(V=>V.key==="other")),A===1?P!=null&&P.icon?ut(P.icon):"":A===2?(P==null?void 0:P.color)||"#fff":""},D=p=>{const{seqIndexFormatter:A}=e,_=p+1;return A?Ie(A,{textData:{index:_}},{useNewline:!1,useSpace:!0}):_},C=t.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),L=t.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:a,formatFn:r,contrastClass:i,dataSource:n,loading:l,myColumns:h,click:B,getColumnStyle:x,getPercentage:w,getBackgroundColor:T,isShowSeqIcon:R,getSeqIconData:k,seqIcon4:cd,seqIcon5:dd,seqIcon6:fd,seqIcon7:ud,iconSize:E,isScroll:O,formatSeq:D,wrapStyle:C,colSpan:L}}}),mh="",yh="",gd=e=>(t.pushScopeId("data-v-1383b82b"),e=e(),t.popScopeId(),e),md={key:0,class:"title"},yd={key:0,class:"ranking"},xd={key:1,class:"ecan-list-content"},pd=["onClick"],bd={key:0,class:"ranking"},vd=gd(()=>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={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",md,[(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",yd)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(h,y)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:h.key||y,style:t.normalizeStyle({color:h.titleColor,...e.getColumnStyle(h)})},t.toDisplayString(h.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",xd,[e.useTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title-placeholder",style:t.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):t.createCommentVNode("",!0),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,h)=>(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||h,onClick:y=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",bd,[vd,t.createElementVNode("div",Sd," Top "+t.toDisplayString(h+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)})},[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(h)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(h,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(h,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(e.formatSeq(h)),5)],4)):(t.openBlock(),t.createElementBlock("div",wd,[h===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)):h===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)):h===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)):h>=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(h)),5)]))],64)):(t.openBlock(),t.createElementBlock("span",Ed,t.toDisplayString(e.formatSeq(h)),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(t.Fragment,{key:2},[t.createTextVNode(t.toDisplayString((y.format!=null||y.format!=="")&&e.formatFn(c[y.key],y)),1)],64))],6)}),128))],12,pd))),128))]),_:1},8,["visible","step","wrapStyle"])])):(t.openBlock(),t.createElementBlock("div",Dd," 暂无数据 "))]),_:1},8,["loading"])],4)}const Hi=ve(me(hd,[["render",Rd],["__scopeId","data-v-1383b82b"]])),Wo={...Ee,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:{}},jo=Ce(Wo),Wi=["refreshData","click"],Id=t.defineComponent({name:"EcanProportion",components:{AProgress:de.Progress,Skeleton:Mt},props:{...jo},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(qe,{pageMode:"normal"}),r=Te(e),i=t.computed(()=>{const x=e.width;return parseFloat(x)}),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 x=t.unref(s),w=+e.variableDefaultValue;if(x==null)return isNaN(w)?0:w;const T=e.text.match(/\{.+\}/g)||[];let E;const I=new Set(Object.keys(x));for(let O=0;O<T.length;O++){const R=T[O],k=R.slice(1,R.length-1);if(I.has(k)){E=x[k];break}}return typeof E=="number"?E=E*100:typeof E=="string"&&!isNaN(+E)?E=+E*100:isNaN(w)?E=0:E=w*100,e.decimalFormat&&(E=+E.toFixed(2)),E}),d=t.computed(()=>{var I;let x=e.text;if(x==="")return t.unref(l);const w=e.variableDefaultValue,T=t.unref(s),E=x.match(/\{.+\}/g)||[];for(let O=0;O<E.length;O++){const R=E[O];let k=R.slice(1,R.length-1);const D=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,C=R.match(D);for(let p=0;p<(C==null?void 0:C.length);p++){const A=(I=C[p])==null?void 0:I.trim();T[A]!=null&&(k=k.replace(A,T[A]))}let L=k;try{/\(.*\)/g.test(k)&&(L=Cn(k))}catch(p){console.error(p)}typeof+L=="number"&&!isNaN(+L)?(L=+L*100,e.decimalFormat&&(L=L.toFixed(2))):L=w,x=x.replace(R,L+"")}return t.unref(n)?"NaN":x}),c=Pe(e),h=t.ref(!1),y=async()=>{var x;if(e.dataType==="request")try{h.value=!0;const w=await c();s.value=((x=w==null?void 0:w.data)==null?void 0:x.data)||{}}catch(w){console.error(w)}finally{h.value=!1}},f=(x={})=>{s.value=x},g=Ke(e),m=async()=>{var x;try{h.value=!0;const w=await g(),{data:T}=(w==null?void 0:w.data)||{};if(T){n.value=!1;const{columns:E=[],rows:I=[]}=((x=w==null?void 0:w.data)==null?void 0:x.data)??{};let O={};if(E.length>0){const R=E.find(k=>!!k);R&&(O={percent:I[R]})}f(O)}else n.value=!0,f({percent:"NaN"})}catch(w){console.error(w)}finally{h.value=!1}},u=()=>{switch(e.dataType){case"indicator":m();break;case"request":y();break}};_e(e,{refreshData:u}),o({refreshData:u});const B=Re(e)("click",()=>{}),{setRequest:b}=t.inject(ze,{setRequest:({id:x,sortNum:w,requestFn:T})=>{}});typeof b=="function"&&b({id:e.id,requestFn:u,sortNum:e.requestSort});const v=t.computed(()=>{const{gradientShow:x,gradientColor:w,gradientOffset:T,strokeColor:E}=e;let I=E;return x&&w&&(I={"0%":E,[`${T*100}%`]:w}),I});return{style:r,myWidth:i,text:d,myValue:l,loading:h,click:B,customStrokeColor:v}}}),ph="";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 ji=ve(me(Id,[["render",Ld],["__scopeId","data-v-cf942b5f"]])),Go={...Ee,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:{}},Uo=Ce(Go),Gi=["refreshData","click","resetRecord"],_d=t.defineComponent({name:"EcanCounter",components:{Skeleton:Mt},props:{...Uo},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],([v,x])=>{x==="static"&&(n.value=v)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=t.inject(De,{getGlobalModel:v=>{},setGlobalModel:(v,x)=>{}}),c=Re(e)("click",()=>{const v=s(e.id);l(e.id,{...v,type:e.type,value:t.unref(n)})}),h=()=>{const v=e.id,x=s(v);l(v,{...x,type:e.type,value:""})},y=Pe(e),f=t.ref(!1),g=async()=>{var v,x;try{f.value=!0;const w=await y();n.value=((x=(v=w==null?void 0:w.data)==null?void 0:v.data)==null?void 0:x.value)||""}catch(w){console.error(w)}finally{f.value=!1}},m=Ke(e),u=async()=>{var v;try{f.value=!0;const x=await m(),{data:w}=(x==null?void 0:x.data)||{};let T="";if(w){const{columns:E=[],rows:I=[]}=((v=x==null?void 0:x.data)==null?void 0:v.data)??{};if(E.length>0){const O=E.find(R=>!!R);O&&(T=I[O]||"")}}n.value=String(T)}catch(x){console.error(x)}finally{f.value=!1}},S=()=>{switch(e.dataType){case"indicator":u();break;case"request":g();break}},B=t.computed(()=>{const v=[],{digits:x}=e;console.log("myValue",n.value);const w=t.unref(n)?t.unref(n).split("").reverse().join(""):"";for(let T=0;T<x;T++)w&&w[T]?v.push(w[T]):v.push("0");return v.reverse()});_e(e,{refreshData:S,resetRecord:h});const{setRequest:b}=t.inject(ze,{setRequest:({id:v,sortNum:x,requestFn:w})=>{}});return typeof b=="function"&&b({id:e.id,requestFn:S,sortNum:e.requestSort}),o({refreshData:S}),{style:a,valueList:B,digitsStyle:r,fontStyle:i,loading:f,useImagePath:ut,click:c}}}),vh="",Od=["src"];function Nd(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,Od)):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 Ui=ve(me(_d,[["render",Nd],["__scopeId","data-v-4d462642"]])),$o={...Ee,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Yo=Ce($o),$i=["inputChange","inputBlur"],Fd=t.defineComponent({name:"EcanInput",components:{AInput:de.Input},props:{...Yo},setup(e){const o=Te(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=t.inject(De,{getGlobalModel:h=>{},setGlobalModel:(h,y)=>{},getRecordValueByKeyName:h=>{}});t.watch(()=>e.value,h=>{n.value=i(h)},{immediate:!0}),r(e.id,{type:e.type,value:n});const s=()=>{const h=a(e.id);r(e.id,{...h,RECORD:n})},l=Re(e),d=Le.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),Ch="";function Md(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 Yi=ve(me(Fd,[["render",Md]])),Ko={...Ee,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"},Zo=Ce(Ko),Ki=["dateChange"],Qo=t.defineComponent({name:"EcanDatePicker",props:{...Zo},components:{ADatePicker:de.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,g,m])=>{let u=null;if(f?u=ye(Ie(f)):g&&(u=ye()),m&&u){const{type:S,value:B,mode:b}=m;switch(S){case"add":u=u.add(B,b);break;case"minus":u=u.subtract(B,b)}}r.value=u},{deep:!0,immediate:!0});const{setGlobalModel:i}=t.inject(De,{setGlobalModel:(f,g)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Re(e)("dateChange",()=>{}),d=()=>{t.unref(r)&&l()};_e(e,{dateChange:l});const c=t.ref({}),h=t.ref({}),y=f=>{f?setTimeout(()=>{h.value=t.unref(c)},300):h.value={}};return t.onMounted(()=>{setTimeout(()=>{const f=document.querySelector(`#ecan-date-picker-${e.id}`);if(f){const g=f.getBoundingClientRect(),m=parseFloat(t.unref(o).widthScale)*280;document.body.clientWidth-g.left<m&&(c.value.marginLeft=-1*(m-g.width)+"px")}},0)}),{style:n,getPopupContainer:a,myValue:r,locale:$a,change:d,scaleValue:o,popupStyle:c,customStyle:h,openChange:y}}}),Zi=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Qi=Qo.setup;Qo.setup=Qi?(e,o)=>(Zi(),Qi(e,o)):Zi;const Ah="",kh="",zd=["id"];function Pd(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,zd)}const Ji=ve(me(Qo,[["render",Pd],["__scopeId","data-v-d4ec0d66"]])),Jo={...Ee,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},Xo=Ce(Jo),Xi=["dateChange"];var el={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(ue,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,h){return c=Number(c),this.$utils().p(h)===a?this.add(3*c,n):l.bind(this)(c,h)};var d=s.startOf;s.startOf=function(c,h){var y=this.$utils(),f=!!y.u(h)||h;if(y.p(c)===a){var g=this.quarter()-1;return f?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return d.bind(this)(c,h)}}})})(el);var qd=el.exports;const Vd=kr(qd);ye.extend(Vd);const ea=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:de.RangePicker},props:{...Xo},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],([v,x,w,T,E,I])=>{let O=null,R=null;if(w&&(O=ye().subtract(T,E),R=ye()),v&&(O=ye(Ie(v))),x&&(R=ye(Ie(x))),I){const{type:k,value:D,mode:C}=I;switch(k){case"add":O=O&&O.add(D,C),R=R&&R.add(D,C);break;case"minus":O=O&&O.subtract(D,C),R=R&&R.subtract(D,C)}}a.value=[O,R]},{immediate:!0});let r=t.unref(a)[0],i=t.unref(a)[1],s="";const l=(v,x,w)=>{Array.isArray(v)?(r=v[0],i=v[1],s=w.range):(r=null,i=null)};window.dayjs=ye;const d=v=>{let x=!1,{limitStartTime:w,limitEndTime:T}=e;const E={startTime:`${r||""}`,endTime:`${i||""}`};if(w=Ie(w,{codeData:E}),T=Ie(T,{codeData:E}),w&&T?x=!(ye(w)<v&&v<ye(T)):w?x=ye(w)>v:T&&(x=ye(T)<v),!e.isAllowSpanYear&&s){let I=null;if(s==="start"?I=r:s==="end"&&(I=i),I){const O=I.startOf("year"),R=I.endOf("year");x=!(O<=v&&v<R)}}if(!x){const{value:I=0,mode:O="year"}=e.limitInterval||{};I&&(s==="start"?x=r.add(I,O)<v:s==="end"&&(x=i.subtract(I,O)>v))}return x},{getGlobalModel:c,setGlobalModel:h}=t.inject(De,{getGlobalModel:v=>{},setGlobalModel:(v,x)=>{}}),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);h(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 g=Re(e);let m=!1;const u=g("dateChange",()=>{}),S=v=>{const x=t.unref(a),w=x&&x[0]&&x[1];v===!1&&m===!0&&w&&(u(),m=!1),v||(s="")},B=()=>{m=!0};return _e(e,{dateChange:()=>{const{associated:v}=e;if(v){const x=c(v)||{};if(x){const{value:w}=x;if(w)switch(t.unref(w)){case"month":a.value=[ye().startOf("month"),ye().endOf("month")];break;case"quarter":a.value=[ye().startOf("quarter"),ye().endOf("quarter")];break;case"year":a.value=[ye().startOf("year"),ye().endOf("year")];break}}}u()}}),{style:o,getPopupContainer:n,locale:$a,dateChange:u,myValue:a,disabledDate:d,calendarChange:l,openChange:S,change:B}}}),tl=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},nl=ea.setup;ea.setup=nl?(e,o)=>(tl(),nl(e,o)):tl;const Bh="",Eh="";function Hd(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 ol=ve(me(ea,[["render",Hd],["__scopeId","data-v-c9c68612"]])),ta={...Ee,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"},na=Ce(ta),al=["click"],Wd=t.defineComponent({name:"EcanButton",components:{AButton:de.Button},props:{...na},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(()=>Ie(e.text)),s=t.computed(()=>Ie(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}}}),Rh="";function jd(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 rl=ve(me(Wd,[["render",jd]])),oa={...Ee,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:{}},aa=Ce(oa),il=["checkboxChange"],Gd=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:de.CheckboxGroup},props:{...aa},setup(e,{expose:o}){const n=Te(e),a=t.ref([]),r=t.ref([]),i=S=>{const B=e.value;let b=[];S.forEach(v=>{v.checked&&b.push(v.value)}),typeof B=="string"&&B!==""?b=b.concat(B.split(",")):Array.isArray(B)&&(b=b.concat(B)),a.value=S,r.value=b};t.watch(()=>[e.data,e.value],([S])=>{i(S)},{immediate:!0,deep:!0});const s=Pe(e),l=async()=>{var b,v;if(e.dataType!=="request")return;const S=await s(),B=((v=(b=S==null?void 0:S.data)==null?void 0:b.data)==null?void 0:v.rows)||[];i(B)},{getGlobalModel:d,setGlobalModel:c}=t.inject(De,{getGlobalModel:S=>{},setGlobalModel:(S,B)=>{}});c(e.id,{type:e.type,value:r});const y=Re(e)("checkboxChange",()=>{const S=d(e.id);c(e.id,{...S,RECORD:r})}),f=Ke(e),g=async()=>{var S;try{const B=await f(),{data:b}=(B==null?void 0:B.data)||{};if(b){const x=(((S=B==null?void 0:B.data)==null?void 0:S.data)??[]).map(w=>({label:w.label,value:w.value}));i(x)}else i([])}catch(B){console.error(B)}},m=()=>{switch(e.dataType){case"indicator":g();break;case"request":l();break}},{setRequest:u}=t.inject(ze,{setRequest:({id:S,sortNum:B,requestFn:b})=>{}});return typeof u=="function"&&u({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:n,myValue:r,checkboxChange:y}}}),Lh="";function Ud(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 ll=ve(me(Gd,[["render",Ud]])),ra={...Ee,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"},ia=Ce(ra),sl=["selectChange","refreshData"],$d=t.defineComponent({name:"EcanSelect",components:{ASelect:de.Select,ASelectOption:de.SelectOption},props:{...ia},setup(e,{expose:o}){const n=Te(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=Pe(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var A;const{mode:p}=e;return(A=t.unref(i))!=null&&A.length?s.value:p==="multiple"||p==="tags"||p==="combobox"?[]:""},set:p=>{s.value=p}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:h}=t.inject(De,{getGlobalModel:p=>{},setGlobalModel:(p,A)=>{},getRecordValueByKeyName:p=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:p,selectFirstOption:A,value:_}=e,P=h(_),V=y.value;if(p==="multiple"||p==="tags"||p==="combobox"){if(P)s.value=P.split(",");else if(A){const U=t.unref(i)[0];s.value=U?[U[V]]:[]}}else if(P)s.value=P;else if(A){const U=t.unref(i)[0];s.value=U?U[V]:""}},{immediate:!0});const f=(p,A)=>{const _=y.label,P=y.value;let V;const U=A[_],N=A[P];return U!=null?V=U:N!=null&&(V=N),(V==null?void 0:V.toLowerCase().indexOf(p==null?void 0:p.toLowerCase()))>=0},g=p=>{const{label:A,value:_,options:P}=e.dataFieldNames;if(P&&Array.isArray(p))if(p.some(V=>P in V)){const V={},U=[];p.forEach(N=>{V[N[P]]||(V[N[P]]=[]),V[N[P]].push({[A]:N[A],[_]:N[_]})});for(const N in V)U.push({[A]:N,[P]:V[N]});return U}else return p;else if(!P)return p},m=t.ref(!1),u=async()=>{var p,A;if(e.dataType==="request"){m.value=!0;try{const _=await r();if(i.value=g(((A=(p=_==null?void 0:_.data)==null?void 0:p.data)==null?void 0:A.rows)||[]),e.selectFirstOption){let P=t.unref(i)[0];if(y.options){const V=P[y.options];V&&V.length&&(P=V[0])}s.value=P[y.value]}}catch(_){console.error(_)}finally{m.value=!1}}},{setLoadedData:S,loadedData:B}=t.inject(vt,{setLoadedData:(p,A)=>{},loadedData:{}}),b=t.computed(()=>{let p=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const A=y.label,_=y.value;if(e.mode==="multiple")p=t.unref(i).filter(P=>t.unref(s).includes(P[_])).map(P=>P[A]);else{const P=t.unref(i).find(V=>t.unref(s)===V[_]);P&&(p=P[A])}}return p}),v=t.ref([]),x=t.computed(()=>{const p={};if(e.mode!=="multiple"){const A=t.unref(v).find(_=>_.value===t.unref(s));A&&(p.itemCodes=A.item_codes)}return p}),w=t.computed(()=>{const{value:p,label:A}=y,_=t.unref(i).find(P=>P[p]===t.unref(l));return _?{label:_[A],value:_[p]}:{}});c(e.id,{type:e.type,value:b,...t.unref(x),recordData:t.unref(w)});const E=Re(e)("selectChange",()=>{const p=e.id,A=d(p);c(p,{...A,...t.unref(x),RECORD:b,recordData:t.unref(w)})}),I=(p=[])=>{if(i.value=g(p),e.selectFirstOption){let A=t.unref(i)[0];if(y.options){const _=A[y.options];_&&_.length&&(A=_[0])}s.value=A[y.value]}c(e.id,{type:e.type,value:b,...t.unref(x),recordData:t.unref(w)})},O=Ke(e),R=async()=>{var p;try{m.value=!0;const A=await O(),{data:_}=(A==null?void 0:A.data)||{},P=y.label,V=y.value;if(_){const U=((p=A==null?void 0:A.data)==null?void 0:p.data)??[];v.value=U;const N=U.map(z=>({[P]:z.label,[V]:z.value})),{id:F}=e,H=d(F);c(F,{...H,...t.unref(x)}),S(F,!0),I(N)}else I([])}catch(A){console.error(A)}finally{m.value=!1}},k=t.computed(()=>{var p,A;return(A=(p=e==null?void 0:e.graphicConfig)==null?void 0:p.controlList)==null?void 0:A.find(_=>_.conditionKey==="parentCode")}),D=t.ref(!1);t.watch(B,p=>{!t.unref(D)&&t.unref(k)&&p[t.unref(k).id]&&(D.value=!0,C())},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":{if(t.unref(k)){if(t.unref(B)[t.unref(k).id]){const{mode:p}=e;p==="multiple"||p==="tags"||p==="combobox"?l.value=[]:l.value="",R()}}else R();break}case"request":u();break}};_e(e,{selectChange:E,refreshData:C});const{setRequest:L}=t.inject(ze,{setRequest:({id:p,sortNum:A,requestFn:_})=>{}});return typeof L=="function"&&L({id:e.id,requestFn:C,sortNum:e.requestSort}),o({refreshData:C}),{style:n,getPopupContainer:a,myValue:s,selectChange:E,options:i,filterOption:f,loading:m,resultValue:l}}}),Oh="",Nh="";function Yd(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 cl=ve(me($d,[["render",Yd],["__scopeId","data-v-8da65528"]])),la={...Ee,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},sa=Ce(la),dl=["selectChange","refreshData"],Kd={name:"EcanTreeSelect",components:{ATreeSelect:de.TreeSelect},props:{...sa},setup(e){const o=Te(e),n=t.ref(e.data),a=(g,m)=>{const u=e.dataFieldNames,S=u.label,B=u.value;let b;const v=m[S],x=m[B];return v!=null?b=v:x!=null&&(b=x),(b==null?void 0:b.toLowerCase().indexOf(g==null?void 0:g.toLowerCase()))>=0},r=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:g,value:m,selectFirstOption:u}=e;g?m?r.value=m.split(","):u&&(r.value=[t.unref(n)[0]]):m?r.value=m:u&&(r.value=t.unref(n)[0])},{immediate:!0});const i=t.ref(!1),s=Pe(e),l=async()=>{var g,m;if(e.dataType==="request"){i.value=!0;try{const u=await s();n.value=((m=(g=u==null?void 0:u.data)==null?void 0:g.data)==null?void 0:m.rows)||[];const S=t.unref(n)[0];e.value===""&&S!=null&&(r.value=S[e.dataFieldNames.value])}catch(u){console.error(u)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=t.inject(De,{getGlobalModel:g=>{},setGlobalModel:(g,m)=>{}});c(e.id,{type:e.type,value:r});const y=Re(e)("selectChange",()=>{const g=e.id,m=d(g);c(g,{...m,RECORD:r})});_e(e,{selectChange:y,refreshData:l});const{setRequest:f}=t.inject(ze,{setRequest:({id:g,sortNum:m,requestFn:u})=>{}});return f({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:n,filterTreeNode:a,myValue:r,loading:i,selectChange:y}}},Mh="",zh="";function Zd(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 fl=ve(me(Kd,[["render",Zd],["__scopeId","data-v-37236421"]])),ca={...Ee,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:""},da=Ce(ca),ul=["checkboxChange","click"],Qd=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:de.RadioGroup,ARadioButton:de.RadioButton,ARadio:de.Radio},props:{...da},setup(e,{expose:o}){const n=Te(e),a=t.ref([]),r=t.ref(""),i=v=>{const x=e.value;let w=[];typeof x=="string"&&x!==""?w=w.concat(x.split(",")):Array.isArray(x)&&(w=w.concat(x)),a.value=v,r.value=w[0]||""};t.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=Pe(e),l=async()=>{var w,T;if(e.dataType!=="request")return;const v=await s(),x=((T=(w=v==null?void 0:v.data)==null?void 0:w.data)==null?void 0:T.rows)||[];i(x)},{getGlobalModel:d,setGlobalModel:c}=t.inject(De,{getGlobalModel:v=>{},setGlobalModel:(v,x)=>{}});c(e.id,{type:e.type,value:r});const h=Re(e),y=h("checkboxChange",()=>{const v=d(e.id);c(e.id,{...v,RECORD:r})}),f=v=>{r.value=v,h("click",()=>{const x=d(e.id);c(e.id,{...x,RECORD:r})})()};t.watch(r,()=>{y()});const g=Ke(e),m=async()=>{var v;try{const x=await g(),{data:w}=(x==null?void 0:x.data)||{};if(w){const E=(((v=x==null?void 0:x.data)==null?void 0:v.data)??[]).map(I=>({label:I.label,value:I.value}));i(E)}else i([])}catch(x){console.error(x)}},u=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:S}=t.inject(ze,{setRequest:({id:v,sortNum:x,requestFn:w})=>{}});typeof S=="function"&&S({id:e.id,requestFn:u,sortNum:e.requestSort});const B=v=>{r.value=v.value},b=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:u}),{myOption:a,style:n,myValue:r,radioStyle:b,onClickButton:f,useImagePath:ut,tabChange:B}}}),qh="",Vh="",Jd=["onClick"];function Xd(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,h)=>(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:h,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,Jd))),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:h=>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 hl=ve(me(Qd,[["render",Xd],["__scopeId","data-v-baa84768"]])),fa={...Ee,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},ua=Ce(fa),gl=["click","refreshData","resetRecord"],Kt=async e=>{var d;const o=await ft.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)},ha={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:[]},ga=Ce(ha),ml=["showModal","hideModal"],It=["ecanBorder","ecanTabs","ecanCirculate"];function yl(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((!Yt(i,"componentList")||!(i!=null&&i.componentList))&&(i.componentList=[]),s){let d=0;for(const c in s){const h=s[c],y=[];if(h!=null&&h.length)for(const f of h){let g=a.find(m=>m.id===f);g||(g=n.find(m=>m.id===f)),g&&(y.push(g),It.includes(g.type)&&y.push(...rn(g.id,o,n)))}for(const f of y)Yt(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(...y),d=rf(y)}}for(const d of l){const c=a.findIndex(h=>h.id===d);c!==-1&&a.splice(c,1)}}return a}function xl(e){var i,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,r=Le.cloneDeep([...e.componentList,...tf(a,n)]);if(ef(a,r),(i=Object.keys(a))!=null&&i.length||(s=Object.keys(o))!=null&&s.length){for(const f in a){const g=r.find(m=>m.id===f);if(g){Yt(g,"parentId")||(g.parentId="",g.sourceLeft=g.left,g.sourceTop=g.top);for(const m in a[f])if(a[f][m])for(const u of a[f][m]){const S=r.find(B=>B.id===u);S&&(S.parentId=f,S.sourceLeft=S.left,S.sourceTop=S.top,S.left=parseFloat(S.left)-parseFloat(g.sourceLeft||g.left)+"px",S.top=parseFloat(S.top)-parseFloat(g.sourceTop||g.top)+"px")}}}const l=Array.from(new Set(r.filter(f=>(!Yt(f,"parentId")||f.parentId==="")&&f.combinationId).map(f=>f.combinationId))),d=nf(l,{...e,componentList:r});d!=null&&d.length&&r.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],h=r.filter(f=>c.includes(f.type)&&!Yt(f,"parentId")),y=[];for(const f of h)if(f){const g=f.id+"_vir";y.push({id:g,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=g,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=0,f.top=0}y!=null&&y.length&&r.unshift(...y);for(const f of r){const g=document.body.clientWidth;if(f.parentId===""&&It.includes(f.type))f.sourceWidth=parseFloat(f.width),f.height=(g/(f.sourceWidth/parseFloat(f.height))).toFixed(2)+"px",f.width="100%",f.position="relative",f.top="auto",f.left="auto";else{const m=r.find(u=>u.id===f.parentId);if((m==null?void 0:m.parentId)===""){const u=m.sourceWidth||parseFloat(m.width),S=g/u;f.scale=S,f.top=parseFloat(f.top)*S-parseFloat(f.height)*(1-S)/2+"px",f.left=parseFloat(f.left)*S-parseFloat(f.width)*(1-S)/2+"px"}}f.type==="ecanModal"&&(f.parentId="",f.fullModal=!0)}return of(r)}return r}function ef(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&&It.includes(d.type)){const c=rn(d.id,n,o);for(const h of c)e[r.id][s].push(h.id),It.includes(h.type)&&delete e[h.id];delete e[d.id]}}}}function tf(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),It.includes(d.type)&&n.push(...rn(d.id,e,o)))}}return n}function rn(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),It.includes(l.type)&&a.push(...rn(l.id,o,n)))}return a}function nf(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=af(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 h of d)h&&(h.parentId=s,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=parseFloat(h.left)-parseFloat(c.left)+"px",h.top=parseFloat(h.top)-parseFloat(c.top)+"px")}}}}return i}function of(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 af(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 rf(e){const o=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,a)=>a-n)[0];return o||0}function ma(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),It.includes(d.type)&&r.push(...rn(d.id,e,o)))}}return r}const lf=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function sf(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 cf=ve(me(lf,[["render",sf]])),df=t.defineComponent({name:"EcanModal",components:{AModal:de.Modal,CloseOutlined:y0,Render:cf},props:{...ga},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(De,{setRequestData:($,ee)=>{},clearInteractiveData:()=>{},interactiveData:null}),c=()=>document.getElementById("ProviderConfig")||document.body,h=t.computed(()=>{const $=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[$]}}),y=e.fullModal?"1920px":e.width,f=e.fullModal?"1080px":e.height,g=e.originalWidth,m=e.originalHeight,u=t.ref("80%"),S=t.ref(0),B=t.ref(),b=t.ref(0),v=t.ref({}),x=Te(e),w=t.ref({}),T=t.ref(!1),E=t.ref();let I;const O=()=>{B.value=parseFloat(y)/parseFloat(g);const $=parseFloat(f)/parseFloat(m),ee=document.body.offsetWidth,re=document.body.offsetHeight;S.value=ee*t.unref(B),b.value=re*$,u.value=`${t.unref(B)*100}%`,v.value={width:`${t.unref(S)}px`,height:`${t.unref(b)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},w.value={...t.unref(x),backgroundImage:ut(e.backgroundImage,!0)},a?w.value={...w.value,width:"100%",height:"100%"}:w.value={...w.value,transform:`scale(${t.unref(S)/parseFloat(y)},${t.unref(b)/parseFloat(f)})`,width:y,height:f}},R=Le.debounce(()=>{O()},100),k=()=>{const $=window.MutationObserver;I=new $(R),I.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},D=()=>{I&&(I.disconnect(),I.takeRecords(),I=null)},C=t.ref(!1),{touchRequest:L}=t.inject(ze,{touchRequest:()=>{}}),p=t.ref(""),A=()=>{var re;const{title:$}=e,ee=(re=t.unref(l))==null?void 0:re.RECORD;return ee?Ie($,{textData:ee},{useNewline:!1,useSpace:!1}):$},_=Re(e),P=()=>{a&&(document.documentElement.style.overflow="hidden"),p.value=A(),C.value=!0},V=_("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),C.value=!1}),U=()=>{V()},N=()=>{V(),s()},{setModalModel:F,pushUseModalIds:H,popUseModalIds:z}=t.inject(vr,{pushUseModalIds:$=>{},popUseModalIds:()=>{},setModalModel:($,ee)=>{}}),q=t.computed(()=>{let $=e.componentList;const ee=Le.cloneDeep(e.componentList),re=r(),xe=i(),Se={containerMap:re,combinationMap:xe};a&&($=xl({...Se,componentList:ee,sourceList:e.allComponentList})),$=yl({...Se,componentList:$,sourceList:e.allComponentList});const Be=[];for(const Oe of $)if(Oe.type==="ecanCirculate"){const we=ma(re,t.unref(ee),Oe.id);Oe.componentList=we,Be.push(...we.map(Ae=>Ae.id))}if(Be!=null&&Be.length)for(const Oe of Be){const we=$.findIndex(Ae=>Ae.id===Oe);we!==-1&&$.splice(we,1)}return $}),M=()=>{const $=e.id;let ee=[];const re=e.componentList;Array.isArray(re)&&(ee=re.map(xe=>xe.id),F($,[...new Set(ee)]))},J=t.ref(!1),W={};for(const $ of e.requestList)W[$.requestName]=Pe($);const Y=async()=>{var $;for(const ee in W){const re=await W[ee]();d(ee,(($=re==null?void 0:re.data)==null?void 0:$.data)||{})}J.value=!0};t.watch(()=>C.value,async $=>{if($)T.value=!1,await Y(),H(e.id),M(),await t.nextTick(()=>{O(),window.addEventListener("resize",R),k(),T.value=!0}),L();else{for(const ee in W)d(ee,{});z(),window.removeEventListener("resize",R),D()}});const ne=t.computed(()=>t.unref(B)>=1),oe=t.computed(()=>e.fullModal),ae=t.computed(()=>{let $="ecan-modal";return t.unref(ne)&&($+=" ecan-full-width-modal"),t.unref(oe)&&($+=" ecan-full-modal"),$});return _e(e,{showModal:P,hideModal:V}),{modalRef:E,containStyle:v,contentStyle:w,getContainer:c,modalStyle:h,modalWith:u,isFullModal:oe,style:x,visible:C,showModal:P,onOk:U,onCancel:N,isFullWidth:ne,wrapClassName:ae,ready:T,usedComponentList:q,isMobile:a,readyIds:n,hasOwn:Yt,onComponentReady:$=>{n.value.push($)},formatTitle:p,requestLoaded:J}}}),jh="",Gh="";function ff(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,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+h},[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 kt=ve(me(df,[["render",ff],["__scopeId","data-v-513bc596"]]));Je.use([Et.CanvasRenderer,gt.PieChart,ke.TitleComponent,ke.ToolboxComponent,ke.TooltipComponent,ke.LegendComponent]);const uf=t.defineComponent({name:"EcanPie",props:{...ua},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(!1),a=Te(e),r=t.ref([]),i=t.ref(),s=t.ref({}),l=t.computed(()=>{let{data:k=[]}=t.unref(r)[0]||{};if(Array.isArray(e.colors)){const D=e.isUseLabelColors,C=e.colors;k=k.map((L,p)=>({label:D?{color:C[p]}:{},...L}))}return{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(){Kt(e.toolboxDownloadUrl)}},myDataZoom:{show:n.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;n.value=!0,(D=i.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(){de.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:D=>{const{marker:C,seriesName:L,name:p,value:A,percent:_,data:P}=D||{};return Ie(e.tooltipFormatter,{textData:{marker:C,name:p,value:A,percent:_,a:L,b:p,c:A,d:_,...P}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.unref(s),color:e.colors,series:[{data:k,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:n.value?$e:e.labelFontSize,position:e.labelPosition,formatter:Gc(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:{}}}]}}),d=()=>{const k=n.value?$e:parseFloat(e.legendFontSize);s.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:k+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:k}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:D=>{const{data:C}=r.value[0]||{};let L=0,p,A="0%";if(C)for(const _ of C)_.name===D&&(p=+_.value),L+=+_.value;return L&&(A=`${(p/L*100).toFixed(2)}%`),an(e.legendFormatter,{name:D,value:p,percent:A})}}},c=()=>{n.value=!1},{getGlobalModel:h,setGlobalModel:y}=t.inject(De,{getGlobalModel:k=>{},setGlobalModel:(k,D)=>{}}),{pageMode:f}=t.inject(qe,{pageMode:"normal"}),g=(k=[],D)=>{const{dataset:C}=zt(k,D);r.value=C},m=(k=[],D)=>{const C=zt(k,D);r.value=C.dataset};t.watch(()=>e.data,k=>{(e.dataType==="static"||t.unref(f)==="design")&&g(k)},{immediate:!0,deep:!0}),t.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{d()},{immediate:!0});const u=t.ref(!1),S=Pe(e),B=async()=>{var k,D;if(e.dataType==="request")try{u.value=!0;const C=await S();g((D=(k=C==null?void 0:C.data)==null?void 0:k.data)==null?void 0:D.rows,e.valueTypeDataFieldNames)}catch(C){console.error(C)}finally{u.value=!1}},b=Re(e);y(e.id,{type:e.type,RECORD:""});const v=b("click",k=>{const D=h(e.id);y(e.id,{...D,type:e.type,RECORD:k==null?void 0:k.data})}),x=Ke(e),w=async()=>{var k;try{u.value=!0;const D=await x(),{data:C}=(D==null?void 0:D.data)||{};if(C){const{columns:L=[],rows:p=[]}=((k=D==null?void 0:D.data)==null?void 0:k.data)??{};let A=[];if(L.length>0){const _=L[0],P=L[1];A=p.filter(V=>!!V).map(V=>({name:V[_],value:isNaN(V[P])?0:V[P]||0}))}m(A)}}catch(D){console.error(D)}finally{u.value=!1}},{loadedData:T}=t.inject(vt,{loadedData:{}}),E=t.ref(!1);t.watch(T,k=>{if(e.dataType==="indicator"){const D=on(e.graphicConfig);D!=null&&D.length&&(!t.unref(E)&&it(e.graphicConfig,k)?(E.value=!0,I()):it(e.graphicConfig,k)||(E.value=!1))}},{deep:!0});const I=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(T))&&w();break;case"request":B();break}};_e(e,{resetRecord:()=>{const k=e.id,D=h(k);y(k,{...D,RECORD:""})},refreshData:I,click:v}),o({refreshData:I});const{setRequest:R}=t.inject(ze,{setRequest:k=>{}});return typeof R=="function"&&R({id:e.id,requestFn:I,sortNum:e.requestSort}),{option:l,style:a,click:v,onClose:c,loading:u,ecanModal:i}}}),$h="";function hf(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 pl=ve(me(uf,[["render",hf]])),ya={...Ee,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:""},xa=Ce(ya),bl=["click","refreshData","resetRecord"];Je.use([Et.CanvasRenderer,gt.LineChart,ke.ToolboxComponent,ke.TitleComponent,ke.LegendComponent,ke.MarkLineComponent]);const gf=t.defineComponent({name:"EcanLine",props:{...xa},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=Te(e),i=t.ref([]),s=t.ref([]),l=t.ref(),d=t.computed(()=>a.value?$e:12),c=t.ref({});let h;const y=t.ref([]),f=t.computed(()=>{const p=e.xAxisLabelFormatter,A=e.yAxisLabelFormatter;return{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(){Kt(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 _;a.value=!0,(_=l.value)==null||_.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){de.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:d.value},show:e.tooltipShow,formatter:_=>{var N;const P=_.length;let V="",U=e.tooltipFormatter;h=(N=_[0])==null?void 0:N.data,U===""&&(U="{marker} {a} {c}");for(let F=0;F<P;F++){const{marker:H,seriesName:z,name:q,value:M,data:J}=_[F]||{};if(F===0){let W=q;typeof q=="string"&&q[0]==="0"&&!isNaN(+q)&&(W=(+q).toString()),V+=`${lt(p,W)}<br/>`}V+=Ie(U,{textData:{marker:H,name:q,value:M,a:z,b:q,c:M||0,...J}},{useNewline:!0,useSpace:!0}),V+="<br/>"}return V},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(s).map(_=>{let P={};return _&&typeof _=="object"?P={..._}:P={value:_},P}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(_){return typeof _=="string"&&_[0]==="0"&&!isNaN(+_)&&(_=(+_).toString()),lt(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"}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(_){return lt(A,_)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},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:(a.value?$e:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?$e:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(y).map(_=>({name:_.name,icon:e.legendType})),formatter:_=>an(e.legendFormatter,{name:_})},series:t.unref(i)}}),g=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:u}=t.inject(De,{getGlobalModel:p=>{},setGlobalModel:(p,A)=>{}}),{pageMode:S}=t.inject(qe,{pageMode:"normal"}),B=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),b=(p=[],A=!1)=>{let _;if(e.dataFieldConfigType==="key"){const N=A?e.keyTypeDataFieldNames:null;_=At(p,N)}else if(e.dataFieldConfigType==="value"){const N=A?e.valueTypeDataFieldNames:null;_=zt(p,N)}s.value=_.dimensions,y.value=_.dataset;const P=_.dataset,V=[],U=P.length;for(let N=0;N<U;N++){const F={};e.shadowColor&&(F.shadowColor=e.shadowColor,F.shadowBlur=e.shadowBlur,F.shadowOffsetY=e.shadowOffsetY,F.shadowOffsetX=e.shadowOffsetX),V.push({type:"line",...P[N],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[N]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[N],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...F},...t.unref(B)})}i.value=V},v=(p=[],A,_=!1)=>{const V=At(p,_?A:null,!0);s.value=V.dimensions,y.value=V.dataset;const U=V.dataset,N=[],F=U.length;for(let H=0;H<F;H++){const z={};e.shadowColor&&(z.shadowColor=e.shadowColor,z.shadowBlur=e.shadowBlur,z.shadowOffsetY=e.shadowOffsetY,z.shadowOffsetX=e.shadowOffsetX),N.push({type:"line",...U[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(B)})}i.value=N};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],([p])=>{(e.dataType==="static"||t.unref(S)==="design")&&b(p)},{immediate:!0,deep:!0});const x=t.ref(!1),w=Pe(e),T=async()=>{var p,A;if(e.dataType==="request")try{x.value=!0;const _=await w();b((A=(p=_==null?void 0:_.data)==null?void 0:p.data)==null?void 0:A.rows,!0)}catch(_){console.error(_)}finally{x.value=!1}},E=Re(e);u(e.id,{type:e.type,RECORD:""});const I=E("click",p=>{const A=m(e.id);u(e.id,{...A,type:e.type,RECORD:e.tooltipShow?h:p.data})}),O=p=>{n.value.chart.containPixel("grid",[p.offsetX,p.offsetY])&&I()};e.tooltipShow?c.value["zr:click"]=O:c.value.click=I;const R=Ke(e),k=async()=>{var p;try{x.value=!0;const A=await R(),{columns:_=[],rows:P=[]}=((p=A==null?void 0:A.data)==null?void 0:p.data)??{};let V;_.length>0&&(V={name:_[0],types:_.slice(1).map(U=>({label:U,value:U}))}),v(P,V,!0)}catch(A){console.error(A)}finally{x.value=!1}},D=()=>{switch(e.dataType){case"indicator":k();break;case"request":T();break}};_e(e,{refreshData:D,resetRecord:()=>{const p=e.id,A=m(p);u(p,{...A,RECORD:""})},click:I});const{setRequest:L}=t.inject(ze,{setRequest:p=>{}});return typeof L=="function"&&L({id:e.id,requestFn:D,sortNum:e.requestSort}),o({refreshData:D}),{option:f,style:r,click:I,loading:x,onClose:g,ecanModal:l,eventObj:c,echartRef:n}}}),Kh="";function mf(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 vl=ve(me(gf,[["render",mf]])),pa={...Ee,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:""},ba=Ce(pa),Sl=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,gt.BarChart,ke.TitleComponent,ke.LegendComponent,ke.DatasetComponent,ke.ToolboxComponent,ke.MarkLineComponent]);const yf=t.defineComponent({name:"EcanBar",props:{...ba},components:{Spin:Ft,Echarts:pt,EcanModal:kt,AModal:de.Modal},setup(e,{expose:o}){const n=t.inject("usedComponentList",[]),a=t.ref(),r=t.ref(!1),i=t.ref(!1),s=t.ref(null),l=t.ref([]),d=Te(e),c=t.ref([]),h=t.ref(),y=t.ref({});let f;const g=t.computed(()=>r.value?$e:12),m=t.computed(()=>{const{gradientShow:z,gradientColors:q,gradientOffset:M,barBorderRadius:J}=e,W=t.unref(c),Y=W.length,ne=[];for(let oe=0;oe<Y;oe++){const ae={...W[oe],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(ae.stack="stack"),ae.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:Q=>{let $="",ee=e.labelFormatter;ee===""&&(ee="{c}");const{seriesName:re,name:xe,value:Se,data:Be}=Q||{};return $+=Ie(ee,{textData:{name:xe,value:Se,a:re,b:xe,c:Se||0,...Be}},{useNewline:!0,useSpace:!0}),$}},ae.itemStyle={},z&&(ae.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[oe]},{offset:M,color:q[oe]},{offset:1,color:q[oe]}]}}),J){const Q=J.split(",");if(Q!=null&&Q.length){const $=[];for(const ee of Q){const re=parseFloat(ee);isNaN(re)||$.push(re)}ae.itemStyle.borderRadius=$}}e.isShowMarkLine&&(ae.markLine={data:[{type:e.markLineType}]}),ne.push(ae)}return ne}),u=t.ref([]),S=t.ref(!1),B=t.computed(()=>{const z=e.yAxisLabelFormatter,q=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:r.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(){i.value=!0;const M=a.value.chart.getOption(),{xAxis:J}=M||{};J&&J.length&&(l.value=J[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(){Kt(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 M;r.value=!0,(M=h.value)==null||M.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(){de.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:M=>{var ne;const J=M.length;let W="",Y=e.tooltipFormatter;f=(ne=M[0])==null?void 0:ne.data,Y===""&&(Y="{marker} {a} {c}");for(let oe=0;oe<J;oe++){const{marker:ae,seriesName:Q,name:$,value:ee,data:re}=M[oe]||{};if(oe===0){let xe=$;typeof $=="string"&&$[0]==="0"&&!isNaN(+$)&&(xe=(+$).toString()),W+=`${lt(q,xe)}<br/>`}W+=Ie(Y,{textData:{marker:ae,name:$,value:ee,a:Q,b:$,c:ee||0,...re}},{useNewline:!0,useSpace:!0}),W+="<br/>"}return W},textStyle:{color:e.tooltipTextStyleColor,fontSize:g.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:(r.value?$e:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?$e:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(c).map((M,J)=>({name:M.name,itemStyle:{color:e.colors[J]},icon:e.legendType})),formatter:M=>an(e.legendFormatter,{name:M})},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(M){return typeof M=="string"&&M[0]==="0"&&!isNaN(+M)&&(M=(+M).toString()),lt(q,M)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(u):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(M){return lt(z,M)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},series:t.unref(m)}}),{pageMode:b}=t.inject(qe,{pageMode:"normal"}),v=()=>{r.value=!1},x=(z=[],q=!1)=>{let M={};if(e.dataFieldConfigType==="key"){const J=q?e.keyTypeDataFieldNames:null;M=At(z,J)}else if(e.dataFieldConfigType==="value"){const J=q?e.valueTypeDataFieldNames:null;M=zt(z,J)}c.value=M.dataset,u.value=M.dimensions},w=(z=[],q,M=!1)=>{const W=At(z,M?q:null,!0);e.defaultRangeValue&&Di({props:e,componentList:t.unref(n),getGlobalModel:P},W),c.value=W.dataset,u.value=W.dimensions},T=t.computed(()=>t.unref(u).map(z=>{let q={};return z&&typeof z=="object"?q={...z}:q={value:z},q}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([z])=>{(e.dataType==="static"||t.unref(b)==="design")&&x(z)},{immediate:!0,deep:!0});const E=Pe(e),I=async()=>{var z,q;try{S.value=!0;const M=await E();x((q=(z=M==null?void 0:M.data)==null?void 0:z.data)==null?void 0:q.rows,!0)}catch(M){console.error(M)}finally{S.value=!1}},O=Ke(e),R=async()=>{var z;try{S.value=!0;const q=await O(),{columns:M=[],rows:J=[]}=((z=q==null?void 0:q.data)==null?void 0:z.data)??{};let W;M.length>0&&(W={name:M[0],types:M.slice(1).map(Y=>({label:Y,value:Y}))}),w(J,W,!0)}catch(q){console.error(q)}finally{S.value=!1}},{loadedData:k}=t.inject(vt,{loadedData:{}}),D=t.ref(!1);t.watch(k,z=>{if(e.dataType==="indicator"){const q=on(e.graphicConfig);q!=null&&q.length&&(!t.unref(D)&&it(e.graphicConfig,z)?(D.value=!0,C()):it(e.graphicConfig,z)||(D.value=!1))}},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(k))&&R();break;case"request":I();break}},L=(z,q)=>!!t.unref(l)[q.value].value.includes(z),p=async()=>{i.value=!1;const z=a.value.chart.getOption();for(let q=0;q<7;q++)await A(z,q)},A=(z,q)=>new Promise(M=>{setTimeout(()=>{const{series:J,color:W,xAxis:Y}=z,ne=a.value.chart,{splitArea:oe={}}=Y[0]||{};J.forEach((ae,Q)=>{const $=ae.data;let ee="";q%2?ee=W[Q]+"a8":ee=W[Q],$[s.value].itemStyle={color:ee}}),q%2?(oe.show=!0,oe.areaStyle.color=t.unref(l).map((ae,Q)=>Q===s.value?"#ff003b26":"")):oe.show=!1,ne.setOption({series:J,xAxis:Y}),M()},200)});o({refreshData:C});const _=Re(e),{getGlobalModel:P,setGlobalModel:V}=t.inject(De,{getGlobalModel:z=>{},setGlobalModel:(z,q)=>{}});V(e.id,{type:e.type,RECORD:""});const U=_("click",z=>{const q=P(e.id);V(e.id,{...q,type:e.type,RECORD:e.tooltipShow?f:z.data})}),{setRequest:N}=t.inject(ze,{setRequest:z=>{}});typeof N=="function"&&N({id:e.id,requestFn:C,sortNum:e.requestSort});const F=()=>{const z=e.id,q=P(z);V(z,{...q,RECORD:""})},H=z=>{a.value.chart.containPixel("grid",[z.offsetX,z.offsetY])&&U()};return e.tooltipShow?y.value["zr:click"]=H:y.value.click=U,_e(e,{refreshData:C,click:U,resetRecord:F}),{option:B,style:d,refreshData:C,click:U,loading:S,onClose:v,ecanModal:h,echartRef:a,handleLocationOk:p,onFilterOption:L,locationVisible:i,locationValue:s,locationNames:l,eventObj:y}}}),Qh="",Jh="",xf=e=>(t.pushScopeId("data-v-ff055734"),e=e(),t.popScopeId(),e),pf={class:"location-wrap"},bf=xf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function vf(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"),h=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",pf,[bf,t.createVNode(h,{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,g)=>(t.openBlock(),t.createBlock(c,{key:g,value:g},{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 Cl=ve(me(yf,[["render",vf],["__scopeId","data-v-ff055734"]])),va={...Ee,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:""},Sa=Ce(va),wl=["click","refreshData","resetRecord"];Je.use([Et.CanvasRenderer,gt.ScatterChart,ke.ToolboxComponent,ke.TitleComponent,ke.TooltipComponent,ke.LegendComponent,ke.MarkLineComponent]);const Sf=t.defineComponent({name:"EcanScatter",props:{...Sa},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e){const o=t.ref(!1),n=Te(e),a=t.ref([]),r=t.ref(),i=t.computed(()=>o.value?$e:12),s=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=t.computed(()=>{const w=e.xAxisLabelFormatter,T=e.yAxisLabelFormatter;return{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(){Kt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.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 E;o.value=!0,(E=r.value)==null||E.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(){de.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(E){return typeof E=="string"&&E[0]==="0"&&!isNaN(+E)&&(E=(+E).toString()),lt(w,E)}},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(E){return lt(T,E)}},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(E){var C;const{marker:I,seriesName:O}=E,R=((C=E==null?void 0:E.data)==null?void 0:C.record)??{},{name:k,value:D}=R;return Ie(e.tooltipFormatter,{textData:{marker:I,seriesName:O,a:O,b:k,c:D,...R}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:i.value}},series:[{data:t.unref(a),type:"scatter",symbolSize:e.symbolSize,...t.unref(s)}]}}),{getGlobalModel:d,setGlobalModel:c}=t.inject(De,{getGlobalModel:w=>{},setGlobalModel:(w,T)=>{}}),{pageMode:h}=t.inject(qe,{pageMode:"normal"}),y=(w=[],T)=>{const{name:E="name",value:I="value"}=T||{};a.value=w.map(O=>({value:[O[E],O[I]],record:O}))};t.watch(()=>e.data,w=>{(e.dataType==="static"||t.unref(h)==="design")&&y(w)},{immediate:!0,deep:!0});const f=t.ref(!1),g=Pe(e),m=async()=>{var w,T;if(e.dataType==="request"){f.value=!0;try{const E=await g();y((T=(w=E==null?void 0:E.data)==null?void 0:w.data)==null?void 0:T.rows,e.dataFieldNames)}catch(E){console.error(E)}finally{f.value=!1}}},u=()=>{o.value=!1},S=Re(e);c(e.id,{type:e.type,RECORD:""});const B=S("click",w=>{const T=e.id,E=d(T);c(T,{...E,type:e.type,RECORD:w==null?void 0:w.data})});_e(e,{refreshData:()=>{m()},click:B,resetRecord:()=>{const w=e.id,T=d(w);c(w,{...T,RECORD:""})}});const{setRequest:x}=t.inject(ze,{setRequest:w=>{}});return typeof x=="function"&&x({id:e.id,requestFn:m,sortNum:e.requestSort}),{option:l,style:n,click:B,loading:f,onClose:u,ecanModal:r}}}),e1="";function Cf(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 Al=ve(me(Sf,[["render",Cf]])),Ca={...Ee,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},wa=Ce(Ca),wf=t.defineComponent({name:"EcanCustomGraph",props:{...wa},components:{Echarts:pt},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:ss}}});function Af(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 kl=ve(me(wf,[["render",Af]])),Aa={...Ee,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:""},ka=Ce(Aa),Tl=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,gt.BarChart,gt.LineChart,ke.TitleComponent,ke.LegendComponent,ke.DatasetComponent,ke.ToolboxComponent,ke.MarkLineComponent]);const kf=t.defineComponent({name:"EcanComboGraph",props:{...ka},components:{Spin:Ft,Echarts:pt,EcanModal:kt,AModal:de.Modal},setup(e,{expose:o}){const n=t.inject("usedComponentList",[]),{getGlobalModel:a,setGlobalModel:r}=t.inject(De,{getGlobalModel:q=>{},setGlobalModel:(q,M)=>{}}),i=t.ref(),s=t.ref(!1),l=t.ref(!1),d=t.ref(null),c=t.ref([]),h=t.ref({});let y;const f=Te(e),g=t.ref([]),m=t.ref([]),u=t.ref(),S=t.ref([]),B=t.computed(()=>s.value?$e:12),b=t.computed(()=>({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: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=i.value.chart.getOption(),{xAxis:M}=q||{};M&&M.length&&(c.value=M[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(){Kt(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=u.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(){de.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:(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(S).map((q,M)=>({name:q.name,itemStyle:{color:e.colors[M]},icon:e.legendType})),formatter:q=>an(e.legendFormatter,{name:q})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:q=>{var ne;const M=q.length;let J="",W=e.tooltipFormatter;y=(ne=q[0])==null?void 0:ne.data,W===""&&(W="{marker} {a} {c}");const Y=e.seriesTypes;for(let oe=0;oe<M;oe++){const ae=Y[oe],{tooltipFormatter:Q}=ae||{},{marker:$,seriesName:ee,name:re,value:xe,data:Se}=q[oe]||{};if(oe===0){let Be=re;typeof re=="string"&&re[0]==="0"&&!isNaN(+re)&&(Be=(+re).toString()),J+=`${lt(e.xAxisLabelFormatter,Be)}<br/>`}J+=Ie(Q||W,{textData:{marker:$,name:re,value:xe,seriesName:ee,a:ee,b:re,c:xe||0,...Se}},{useNewline:!0,useSpace:!0}),J+="<br/>"}return J},textStyle:{color:e.tooltipTextStyleColor,fontSize:B.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(m).map(q=>{let M={};return q&&typeof q=="object"?M={...q}:M={value:q},M}),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()),lt(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"}},yAxis:t.unref(I),series:t.unref(g)})),{pageMode:v}=t.inject(qe,{pageMode:"normal"}),x=()=>{s.value=!1},w=(q=[],M=!1)=>{let J;if(e.dataFieldConfigType==="key"){const Y=M?e.keyTypeDataFieldNames:null;J=At(q,Y)}else if(e.dataFieldConfigType==="value"){const Y=M?e.valueTypeDataFieldNames:null;J=zt(q,Y)}m.value=J.dimensions;const W=J.dataset;S.value=J.dataset,g.value=E(W)},T=(q=[],M,J=!1)=>{const Y=At(q,J?M:null,!0);e.defaultRangeValue&&Di({props:e,componentList:t.unref(n),getGlobalModel:a},Y),m.value=Y.dimensions;const ne=Y.dataset;S.value=Y.dataset,g.value=E(ne)};function E(q){const M=[],J=q.length,W=e.seriesTypes;for(let Y=0;Y<J;Y++){const ne=W[Y],{type:oe,axisIndex:ae}=ne||{};let Q={type:oe,yAxisIndex:ae,...q[Y]};if(oe==="line"){const $={};e.shadowColor&&($.shadowColor=e.shadowColor,$.shadowBlur=e.shadowBlur,$.shadowOffsetY=e.shadowOffsetY,$.shadowOffsetX=e.shadowOffsetX),Q={...Q,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[Y]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[Y]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[Y],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...$}}}if(oe==="bar"){const{gradientShow:$,gradientColors:ee,gradientOffset:re}=e,xe={};if(e.barBorderRadius){const Se=e.barBorderRadius.split(",");if(Se!=null&&Se.length){const Be=[];for(const Oe of Se){const we=parseFloat(Oe);isNaN(we)||Be.push(we)}xe.borderRadius=Be}}$&&(xe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[Y]},{offset:re,color:ee[Y]},{offset:1,color:ee[Y]}]}),Q={...Q,barWidth:e.barWidth,itemStyle:xe}}e.isShowMarkLine&&(Q.markLine={data:[{type:e.markLineType}]}),M.push(Q)}return M}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(v)==="design")&&w(q)},{immediate:!0,deep:!0});const I=t.computed(()=>{const q=e.yAxis;return q==null?void 0:q.map((M,J)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:J===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:J===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(W){return lt(M.axisLabelFormatter,W)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:J===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:J===0?"right":"left"}}))}),O=t.ref(!1),R=Pe(e),k=async()=>{var q,M;if(e.dataType==="request")try{O.value=!0;const J=await R();w((M=(q=J==null?void 0:J.data)==null?void 0:q.data)==null?void 0:M.rows,!0)}catch(J){console.error(J)}finally{O.value=!1}},D=Ke(e),C=async()=>{var q;try{O.value=!0;const M=await D(),{columns:J=[],rows:W=[]}=((q=M==null?void 0:M.data)==null?void 0:q.data)??{};let Y;J.length>0&&(Y={name:J[0],types:J.slice(1).map(ne=>({label:ne,value:ne}))}),T(W,Y,!0)}catch(M){console.error(M)}finally{O.value=!1}},{loadedData:L}=t.inject(vt,{loadedData:{}}),p=t.ref(!1);t.watch(L,q=>{if(e.dataType==="indicator"){const M=on(e.graphicConfig);M!=null&&M.length&&(!t.unref(p)&&it(e.graphicConfig,q)?(p.value=!0,A()):it(e.graphicConfig,q)||(p.value=!1))}},{deep:!0});const A=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(L))&&C();break;case"request":k();break}},_=(q,M)=>!!t.unref(c)[M.value].value.includes(q),P=async()=>{l.value=!1;const q=i.value.chart.getOption();for(let M=0;M<7;M++)await V(q,M)},V=(q,M)=>new Promise(J=>{setTimeout(()=>{const{series:W,color:Y,xAxis:ne}=q,oe=i.value.chart,{splitArea:ae={}}=ne[0]||{};W.forEach((Q,$)=>{const ee=Q.data;let re="";M%2?re=Y[$]+"a8":re=Y[$],ee[d.value].itemStyle={color:re}}),M%2?(ae.show=!0,ae.areaStyle.color=t.unref(c).map((Q,$)=>$===d.value?"#ff003b26":"")):ae.show=!1,oe.setOption({series:W,xAxis:ne}),J()},200)});o({refreshData:A});const U=Re(e);r(e.id,{type:e.type,RECORD:""});const N=U("click",q=>{const M=a(e.id);r(e.id,{...M,type:e.type,RECORD:e.tooltipShow?y:q==null?void 0:q.data})}),F=q=>{i.value.chart.containPixel("grid",[q.offsetX,q.offsetY])&&N()};e.tooltipShow?h.value["zr:click"]=F:h.value.click=N;const{setRequest:H}=t.inject(ze,{setRequest:q=>{}});return typeof H=="function"&&H({id:e.id,requestFn:A,sortNum:e.requestSort}),_e(e,{resetRecord:()=>{const q=e.id,M=a(q);r(q,{...M,RECORD:""})},refreshData:A,click:N}),{style:f,option:b,click:N,loading:O,onClose:x,ecanModal:u,echartRef:i,handleLocationOk:P,onFilterOption:_,locationVisible:l,locationValue:d,locationNames:c,eventObj:h}}}),o1="",a1="",Tf=e=>(t.pushScopeId("data-v-63289030"),e=e(),t.popScopeId(),e),Bf={class:"location-wrap"},Ef=Tf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Df(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"),h=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",Bf,[Ef,t.createVNode(h,{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,g)=>(t.openBlock(),t.createBlock(c,{key:g,value:g},{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 Bl=ve(me(kf,[["render",Df],["__scopeId","data-v-63289030"]])),Ta={...Ee,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},Ba=Ce(Ta),El=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,gt.RadarChart,ke.ToolboxComponent,ke.TitleComponent,ke.LegendComponent]);const Rf=t.defineComponent({name:"EcanRadar",props:{...Ba},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=Te(e),i=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?$e:12),d=t.ref([]),c=t.ref(e.valueTypeDataFieldNames.name),h=t.computed(()=>{const C=t.unref(d),L=C.length,p=[];for(let A=0;A<L;A++){const{name:_,data:P=[]}=C[A],V=[{name:_,value:P.map(F=>F.value)}];let U=e.colors[A];if(e.gradientShow){const{gradientOffset:F,gradientColors:H}=e;U={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[A]},{offset:F,color:H[A]},{offset:1,color:H[A]}]}}const N={type:"radar",name:_,data:V,areaStyle:{color:U,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:F=>{const{data:H,value:z}=F;let q=0,M="0%";if(H)for(const J of H.value)q+=+J;return q&&(M=`${(z/q*100).toFixed(2)}%`),Ie(e.labelFormatter,{textData:{value:z,percent:M}},{useNewline:!1,useSpace:!1})}}};p.push(N)}return p}),y=t.computed(()=>{var _;const C=[],L=[],p=t.unref(d),A=p.length;for(let P=0;P<A;P++){const{data:V=[]}=p[P];for(let U=0;U<V.length;U++)L.push(V[U].value)}if((_=i.value)!=null&&_.length){const P=L!=null&&L.length?Math.max(...L)*1.2:0;for(const V of i.value)C.push({name:V,max:P})}return C}),f=t.computed(()=>({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(){Kt(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 C;a.value=!0,(C=s.value)==null||C.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(){de.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:l.value},show:e.tooltipShow,formatter:C=>{let L="",p=e.tooltipFormatter;p===""&&(p="{marker} {a} {c}");for(let A=0;A<t.unref(y).length;A++){const _=t.unref(y)[A],{marker:P,seriesName:V,value:U}=C||{};A===0&&V&&(L+=`${V}<br/>`),L+=Ie(p,{textData:{marker:P,name:_.name,value:U[A],a:_.name,b:_.name,c:U[A]||0,type:V}},{useNewline:!0,useSpace:!0}),L+="<br/>"}return L},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:(a.value?$e:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?$e:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(d).map(C=>({name:C.name,icon:e.legendType})),formatter:C=>an(e.legendFormatter,{name:C})},series:t.unref(h)})),g=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:u}=t.inject(De,{getGlobalModel:C=>{},setGlobalModel:(C,L)=>{}}),{pageMode:S}=t.inject(qe,{pageMode:"normal"}),B=(C=[],L=!1)=>{let p;if(e.dataFieldConfigType==="key"){const A=L?e.keyTypeDataFieldNames:null;p=At(C,A)}else if(e.dataFieldConfigType==="value"){const A=L?e.valueTypeDataFieldNames:null;p=zt(C,A)}i.value=p.dimensions,d.value=p.dataset},b=(C=[],L,p=!1)=>{const _=At(C,p?L:null,!0);i.value=_.dimensions,d.value=_.dataset};t.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([C])=>{(e.dataType==="static"||t.unref(S)==="design")&&B(C)},{immediate:!0,deep:!0});const v=t.ref(!1),x=Pe(e),w=async()=>{var C,L;if(e.dataType==="request")try{v.value=!0;const p=await x();B((L=(C=p==null?void 0:p.data)==null?void 0:C.data)==null?void 0:L.rows,!0)}catch(p){console.error(p)}finally{v.value=!1}},T=Re(e);u(e.id,{type:e.type,RECORD:""});const E=C=>{const L=C.event.topTarget.__dimIdx;L!==void 0&&T("click",()=>{var P;const{value:p,name:A}=C.data||{},_=m(e.id);u(e.id,{..._,type:e.type,RECORD:{[t.unref(c)]:((P=t.unref(y)[L])==null?void 0:P.name)||"",[A]:p[L],seriesName:A}})})()},I=Ke(e),O=async()=>{var C;try{v.value=!0;const L=await I(),{columns:p=[],rows:A=[]}=((C=L==null?void 0:L.data)==null?void 0:C.data)??{};let _;p.length>0&&(c.value=p[0],_={name:p[0],types:p.slice(1).map(P=>({label:P,value:P}))}),b(A,_,!0)}catch(L){console.error(L)}finally{v.value=!1}},R=()=>{switch(e.dataType){case"indicator":O();break;case"request":w();break}};_e(e,{refreshData:R,resetRecord:()=>{const C=e.id,L=m(C);u(C,{...L,RECORD:""})},click:E});const{setRequest:D}=t.inject(ze,{setRequest:C=>{}});return typeof D=="function"&&D({id:e.id,requestFn:R,sortNum:e.requestSort}),o({refreshData:R}),{option:f,style:r,click:E,loading:v,onClose:g,ecanModal:s,echartRef:n}}}),i1="";function If(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 Dl=ve(me(Rf,[["render",If]])),Lf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",_f="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==",Of="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Nf="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==",Ea={...Ee,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"},Da=Ce(Ea),Rl=["click"],Ff=t.defineComponent({name:"EcanBorder",props:{...Da},setup(e){const o=Te(e,["background"]),n=t.computed(()=>{const{isTransparent:m,gradientShow:u,gradientColor:S,gradientOffset:B,gradientAngle:b,backgroundColor:v}=e;if(u){let x=S;return m&&(x="transparent"),x?{background:`linear-gradient(${b}, ${v}, ${x} ${B*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:m}=e;let u={};return m!=null&&m.length&&m.find(B=>B.emit==="showModal")&&(u={cursor:"pointer"}),u}),{theme:r}=t.inject(qe,{theme:"light"}),i=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":Lf,"../../assets/border-title-decoration-left2.png":_f})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":Of,"../../assets/border-title-decoration-right2.png":Nf})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),d=t.computed(()=>({width:"100%",height:"100%"})),c=t.computed(()=>{const{borderRadius:m}=e,u=[],S={};if(m){const B=m.split(",");for(const b of B)(+b||+b==0)&&u.push(+b+"px")}return u!=null&&u.length&&(S.borderRadius=u.join(" ")),S}),y=Re(e)("click",()=>{}),f=t.ref([]);t.watch(()=>e.data,m=>{f.value=m},{immediate:!0,deep:!0}),_e(e,{click:y});const{setGlobalModel:g}=t.inject(De,{setGlobalModel:(m,u)=>{}});return g(e.id,{type:e.type,value:f}),{style:o,gradientStyle:n,click:y,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),s1="",Tt=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),Mf=["id"],zf=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Pf=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),qf=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Vf=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Hf={class:"title-item"},Wf=["src"],jf={class:"title"},Gf=["src"],Uf=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),$f=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Yf=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Kf=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Zf={key:2,class:"left-title"},Qf={class:"title"};function Jf(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},[zf,Pf,qf,Vf],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",Hf,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Wf),t.createElementVNode("div",jf,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Gf)])],2),Uf,$f,Yf,Kf],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Zf,[t.createElementVNode("div",Qf,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,Mf)}const Il=ve(me(Ff,[["render",Jf],["__scopeId","data-v-8dd53b8f"]])),Ra={...Ee,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:[]},Ia=Ce(Ra),Ll=["tabChange"],Xf=t.defineComponent({name:"EcanTabs",props:{...Ia},components:{ASelect:de.Select,ASelectOption:de.SelectOption,MarqueeScroll:zn},setup(e){const o=Te(e),n=t.ref(0);t.watch(()=>e.activeKey,m=>{n.value=m},{immediate:!0});const{pageMode:a}=t.inject(qe,{pageMode:"normal"});let r=null;const i=()=>{const m=Array.isArray(t.unref(s))?t.unref(s).length-1:0;!e.isAutoScroll&&e.autoSwitch&&m>0&&(r=setInterval(()=>{const u=t.unref(n)+1;u<=m?n.value=u:n.value=0,l.value=t.unref(s)[t.unref(n)],y()},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,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:h}=t.inject(De,{setGlobalModel:(m,u)=>{}});h(e.id,{value:l,activeKey:n});const{emitRefreshPage:y}=t.inject(tn,{emitRefreshPage:()=>{}}),f=(m,u)=>{c("tabChange",()=>{u!==t.unref(n)&&(l.value=m,n.value=u,y())})()},g=t.computed(()=>{const m=e.componentList.map(u=>parseFloat(u.left)+parseFloat(u.width)).sort((u,S)=>S-u)[0];return{width:m?m+"px":"100%"}});return _e(e,{tabChange:f}),{style:o,activeKey:n,isActive:d,tabChange:f,myData:s,useImagePath:ut,pageMode:a,scrollWrapStyle:g}}}),d1="",eu=["id"],tu=["onClick"];function nu(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.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,h)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(h)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(h)?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:h,onClick:t.withModifiers(y=>e.tabChange(c,h),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(h)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,tu))),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,h)=>(t.openBlock(),t.createBlock(s,{key:h,value:h,onClick:y=>e.tabChange(c,h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):t.createCommentVNode("",!0)],4)):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,eu)}const _l=ve(me(Xf,[["render",nu],["__scopeId","data-v-132544b5"]])),La={...Ee,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},_a=Ce(La),Ol=["click","refreshData","resetRecord"];let Nl=(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 ou=t.defineComponent({name:"EcanCirculate",props:{..._a,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll:zn,Skeleton:Mt},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(De,{getGlobalModel:E=>{},setGlobalModel:(E,I)=>{}}),d=t.ref([]),c=t.ref({}),{pageMode:h}=t.inject(qe,{pageMode:"normal"}),y=t.computed(()=>{if(t.unref(i)){const E=document.body.clientWidth,I=e.sourceWidth||parseFloat(e.width);return E/I||1}else return 1});function f(E,I){const O=I.find(R=>R.id===e.id);if(O)for(const R of E)R.left=parseFloat(R.left)-parseFloat(O.sourceLeft||O.left)+"px",R.top=parseFloat(R.top)-parseFloat(O.sourceTop||O.top)+"px"}const g=E=>{const I=E.sort((D,C)=>parseFloat(D.top)-parseFloat(C.top))[0],O=E.sort((D,C)=>parseFloat(D.left)-parseFloat(C.left))[0],R=E.map(D=>parseFloat(D.left)+parseFloat(D.width)).sort((D,C)=>C-D)[0],k=E.map(D=>parseFloat(D.top)+parseFloat(D.height)).sort((D,C)=>C-D)[0];if(O&&R&&I&&k){const D=parseFloat(O.left),C=parseFloat(I.top);return{width:R-D,height:k-C,left:D}}else return{width:0,height:0,left:0}},m=t.ref({}),u=E=>{var P,V;const I=[],{graphicConfig:O,id:R,componentList:k,keyFieldMap:D,unitInterval:C,colNum:L}=e;let p=Le.cloneDeep(k),A=[];if((P=t.unref(r))!=null&&P.length)for(const U of t.unref(r))A.push(U),(V=U==null?void 0:U.componentList)!=null&&V.length&&A.push(...U.componentList);if(O.pageMode==="design"&&O.preview){const{containerMap:U}=O.pageConfig||{};A=O.componentList||[],A.push(e),p=ma(U,Le.cloneDeep(A),R)}f(p,A);const _=g(p);if(E!=null&&E.length){const{width:U,left:N,height:F}=_;let H=0,z=0;E.forEach((q,M)=>{q.index=M+1;const J=Nl(),W=Le.cloneDeep(p);for(const Y of W){const ne=D.find(ae=>ae.keyName===Y.keyName),oe=Nl();if(Y.left=(parseFloat(Y.left)+H)*t.unref(y)+"px",Y.top=(parseFloat(Y.top)+z)*t.unref(y)+"px",Y.scale=t.unref(y),Y.id=oe,Y.keyName=Y.name+"_"+oe,Y.unitId=J,ne!=null&&ne.fieldName){const ae=Y.text.match(/\{(.+?)\}/g);switch(Y.type){case"ecanText":{Y.data={value:String(q[ne.fieldName])},ae!=null&&ae.length||(Y.text="{value}");break}case"ecanProportion":{Y.data={percent:String(q[ne.fieldName])},ae!=null&&ae.length||(Y.text="{percent}");break}}}}L&&q.index%L===0?(H=0,z+=C+F):H+=C+U,I.push(...W),m.value[J]=q}),c.value={width:((L||E.length)*(U+C)+N)*t.unref(y)+"px"}}console.log("resultList",I),d.value=I},S=Ke(e),B=async()=>{var E;try{n.value=!0;const I=await S(),{rows:O=[]}=((E=I==null?void 0:I.data)==null?void 0:E.data)??{};u(O)}catch(I){console.error(I)}finally{n.value=!1}},b=()=>{switch(e.dataType){case"indicator":B();break}};_e(e,{refreshData:b,resetRecord:()=>{const E=e.id,I=s(E);l(E,{...I,RECORD:""})}}),o({refreshData:b}),l(e.id,{type:e.type,RECORD:""});const{setRequest:x}=t.inject(ze,{setRequest:E=>{}});typeof x=="function"&&x({id:e.id,requestFn:b,sortNum:e.requestSort});const w=Re(e);return{loading:n,style:a,myComponentList:d,scrollWrapStyle:c,pageMode:h,click:E=>{let I=E.target;if(I){let O=I.getAttribute("unitId");for(;!O&&!I.className.includes("ecan-");)I=I.parentElement,O=I.getAttribute("unitId");O&&w("click",()=>{const R=s(e.id);l(e.id,{...R,type:e.type,RECORD:t.unref(m)[O]})})()}}}}}),u1="",au=["id"];function ru(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:!1,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","style"])):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,au)}const Fl=ve(me(ou,[["render",ru],["__scopeId","data-v-8f9d18e1"]])),Oa={...Ee,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:""},Na=Ce(Oa),Ml=["click"],Fa=t.defineComponent({name:"EcanImage",props:{...Na},setup(e){const o=Te(e),n=t.computed(()=>ut(e.imgUrl)),{pageMode:a}=t.inject(qe,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=t.inject(De,{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||"",h=Ii(t.unref(a),c),y=e.href;let f=y||h;f=Ie(f);const g=e.target;g&&(g!=="event"?window.open(f,"_"+g):window.parent.postMessage({type:"openPage",url:y},"*"))});return _e(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),zl=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},Pl=Fa.setup;Fa.setup=Pl?(e,o)=>(zl(),Pl(e,o)):zl;const g1="",iu=["src"];function lu(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,iu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const ql=ve(me(Fa,[["render",lu],["__scopeId","data-v-47ea6e7c"]])),Ma={...Ee,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},za=Ce(Ma),su=t.defineComponent({name:"EcanIframe",props:{...za},setup(e){const o=Te(e),{contextRequestUrl:n}=t.inject(qe,{contextRequestUrl:""}),a=t.computed(()=>{let r=Ie(e.link);if(e.linkType==="erd"&&r!=null){let i=t.unref(n);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${P0||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),y1="",cu=["src"];function du(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,cu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Vl=ve(me(su,[["render",du],["__scopeId","data-v-19bc100c"]])),Pa={...Ee,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:!0,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},qa=Ce(Pa),Hl=["click","refreshData","resetRecord","exportTableData"],fu="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",uu="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==",hu="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==",Va=t.defineComponent({name:"EcanTable",components:{Skeleton:Mt,AButton:de.Button,AInput:de.Input,ACheckboxGroup:de.CheckboxGroup,ATable:de.Table,ATableSummary:de.TableSummary,ATableSummaryRow:de.TableSummaryRow,ATableSummaryCell:de.TableSummaryCell},props:{...qa},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),h=()=>{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 Z=parseFloat(e.height);const X=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),ie=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),se=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let le=0;if(ie&&(Z-=(ie==null?void 0:ie.clientHeight)||0),se&&e.isSummaryFixed&&(le=(se==null?void 0:se.clientHeight)||0,Z-=le),e.paginationShow){let te=0;te=h(),te&&(Z-=te)}(X==null?void 0:X.clientHeight)>Z?c.value=Z:c.value=0,t.nextTick(()=>{if(le){const te=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),ce=(te==null?void 0:te.clientHeight)||0;le!==ce&&t.unref(c)&&(c.value=Z+le-ce)}})})});const y=t.ref([]),f=t.ref([]),g=t.ref([]),m=t.ref([]),u=t.ref(0),S=t.ref(1),B=t.ref(e.paginationPageSize||10),b=t.reactive([]),v=(G=[])=>{var Z,X;if(Array.isArray(G)&&G.length>0){let ie=G.length;const se=e.columnsFixedNum;if(e.dataType==="indicator"&&((Z=t.unref(a))!=null&&Z.length)){const{graphicConfig:{indicators:le=[]}}=e;G.forEach((te,ce)=>{if(t.unref(a)[ce])for(const Me in t.unref(a)[ce])["dataIndex","title"].includes(Me)||(te[Me]=t.unref(a)[ce][Me]);const ge=le.find(Me=>Me.label===te.title),{showLabel:pe=""}=ge||{};pe&&(te.title=pe)})}for(let le=ie-1;le>=0;le--)(X=G[le])!=null&&X.isHidden&&G.splice(le,1);ie=G.length;for(let le=0;le<ie;le++){const te=G[le];if(le<se?te.fixed="left":te.fixed=!1,e.isSortByFront&&te.sorter){const Qe=te.dataIndex;te.sorter=(_t,Zt)=>_t[Qe]-Zt[Qe]}const{cellAlign:ce="center",cellColor:ge,dataIndex:pe,title:Me,tableFilter:Ze,headerCellAlign:xt,headerCellColor:Lt,overflow:wn}=te;Ze&&(b.push(pe),te.filterOptionsInputValue="",te.filterCheckboxGroupValue=[],te.customFilterDropdown=!0,te.onFilter=(Qe,_t)=>_t[pe].toString().toLowerCase().includes(Qe.toLowerCase())),te.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:xt||"center",color:Lt||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),te.customCell=(Qe,_t)=>({style:{textAlign:ce,color:ge||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(M)===_t&&e.clickHighlight},onClick:U("click",()=>{const Zt=e.id,An=N(Zt);Qe={dataIndex:pe,title:Me,...Qe},F(Zt,{...An,type:e.type,RECORD:Qe})})}),wn==="ellipsis"?te.ellipsis=!0:te.ellipsis=!1,Array.isArray(te.children)&&v(te.children)}}},x=(G=[])=>{var X;let Z=Le.cloneDeep(G);return(X=t.unref(m))!=null&&X.length&&(Z=Le.cloneDeep(t.unref(m))),e.isUseSeq&&Z.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Z.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),v(Z),Z};t.watch(B,()=>{S.value=1,ne(!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],()=>{y.value=x(Le.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([G,Z])=>{Z==="static"&&(f.value=G)},{immediate:!0});const w=t.ref({}),T=G=>{if(Array.isArray(G)){const Z=G.length,X=b,ie=X.length,se={};for(let te=0;te<Z;te++){const ce=G[te];for(let ge=0;ge<ie;ge++){const pe=X[ge];if(se[pe])se[pe].add(ce[pe]);else{const Me=new Set;Me.add(ce[pe]),se[pe]=Me}}}const le={};for(const te in se)if(Object.prototype.hasOwnProperty.call(se,te)){const ce=se[te],ge=Array.from(ce);le[te]=ge.map(pe=>({label:pe,value:pe}))}w.value=le}};t.watch(()=>[e.isReverse,y.value,f.value],()=>{const G=t.unref(y),Z=t.unref(f);if(T(Z),e.isReverse){const{columns:X,dataSource:ie}=E(Le.cloneDeep(G),Le.cloneDeep(Z));g.value=X,l.value=ie}else g.value=G,l.value=Z},{immediate:!0});const E=(G,Z)=>{const X=G[0],ie=[{title:X.title,dataIndex:"col0",key:"col0",align:"center"}];for(let le=0;le<Z.length;le++){const te=Z[le],ce="col"+(le+1);ie.push({title:te[X.dataIndex],dataIndex:ce,key:ce,align:"center"})}const se=[];for(let le=1;le<G.length;le++){const te=G[le],ce={col0:te.title};for(let ge=0;ge<Z.length;ge++){const pe=Z[ge];ce[`col${ge+1}`]=pe[te.dataIndex]}se.push(ce)}return{columns:ie,dataSource:se}},I=t.ref(""),O=Pe(e),R=async(G=!0,Z={})=>{var X;try{G&&(n.value=!0),t.unref(I)&&(Z.orderCondition=t.unref(I)),e.paginationShow&&(Z={pageNum:t.unref(S),pageSize:t.unref(B)||"10",layer:"1",...Z});const ie=await O(Z),{rows:se=[],total:le=0}=((X=ie==null?void 0:ie.data)==null?void 0:X.data)||{};if(u.value=le,Array.isArray(se)&&(f.value=se),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:te=[]}=e,ce=te.find(ge=>ge.key==="dataSqlId");if((ce==null?void 0:ce.value)==="xt_jxzebg"){const ge=se.filter(pe=>!pe.绩效总额).map(pe=>pe.ORG_NAME);ge!=null&&ge.length&&t.nextTick(()=>{de.notification.warning({message:"提示",description:`当前时段${ge.join("、")}绩效数据为空`,duration:3})})}}}catch(ie){console.error(ie)}finally{n.value=!1}},k=({current:G},Z,X)=>{if(S.value=G,X&&Object.keys(X).length>0){const{field:ie,order:se}=X,te={ascend:"asc",descend:"desc"}[se];ie!=null&&te!=null&&te?I.value=ie+" "+te:te||(I.value="")}e.isSortByFront||ne(!1)},D=t.computed(()=>{const G=e.simple,Z=[e.paginationPosition],X={};return e.isShowTotal&&(X.showTotal=ie=>`共 ${ie} 条数据`),e.paginationShow&&{simple:G,position:Z,total:t.unref(u),current:t.unref(S),pageSize:t.unref(B)||"10",showSizeChanger:!1,size:"large",...X}}),C=G=>+G==1?"是":+G==0?"否":G,L=(G,Z)=>{const{format:X,retentiondigit:ie,customFormatter:se,defaultVal:le}=Z;let te="";if(X==null||X==="")te=G;else{const ce={money:Io,percentage:Sn,contrast:Sn,boolean:C,decimals:$c,custom:Ei};ce[X]||(te=""),X==="decimals"?te=ce[X](G,ie)||"":X==="custom"?te=ce[X](G,se)||"":te=ce[X](G)||""}return te||(te=le),te},p=G=>G==="contrast"?"upDown":"",A=G=>{const{text:Z,format:X,declineColor:ie="#39cf93",increaseColor:se="#ff512e"}=G;if(X==="contrast"){const le={fontSize:e.fontSize},te=parseFloat(Z+"");return te>=0?le.color=se:te<0&&(le.color=ie),le}else return{}},_=t.computed(()=>{const{fontSize:G}=e;return{width:G,height:G,textIndent:`-${parseFloat(G)*2}px`,overflow:"hidden"}}),P=G=>{const{text:Z,declineColor:X="#39cf93",increaseColor:ie="#ff512e"}=G,{fontSize:se}=e,le=parseFloat(Z+""),te={width:se,verticalAlign:"unset"};return le>=0?te.filter=`drop-shadow(${ie||"#ff512e"} ${se} -1px)`:le<0&&(te.filter=`drop-shadow(${X||"#39cf93"} ${se} -1px)`),te},V=G=>{const Z=parseFloat(G+"");if(Z>=0)return Fo;if(Z<0)return Mo},U=Re(e),{getGlobalModel:N,setGlobalModel:F}=t.inject(De,{getGlobalModel:G=>{},setGlobalModel:(G,Z)=>{}});F(e.id,{type:e.type,RECORD:""});const H=(G=[],Z=[])=>{const X=G.map(ie=>({title:ie,dataIndex:ie,key:ie}));m.value=Le.cloneDeep(X),y.value=x(X),f.value=Z},z=Ke(e),q=async(G=!0)=>{var Z,X,ie,se;try{G&&(n.value=!0);const le=t.unref(I).split(" "),te={};e.isSortByFront||(te.sort={order:le[1],field:le[0]});const ce=await z(te);H((X=(Z=ce==null?void 0:ce.data)==null?void 0:Z.data)==null?void 0:X.columns,(se=(ie=ce==null?void 0:ce.data)==null?void 0:ie.data)==null?void 0:se.rows)}catch(le){console.error(le)}finally{n.value=!1}},M=t.ref(-1),J=(G,Z)=>({onClick:U("rowClick",()=>{const X=e.id,ie=N(X);F(X,{...ie,type:e.type,RECORD:G}),M.value=Z})}),{loadedData:W}=t.inject(vt,{loadedData:{}}),Y=t.ref(!1);t.watch(W,G=>{if(e.dataType==="indicator"){const Z=on(e.graphicConfig);Z!=null&&Z.length&&(!t.unref(Y)&&it(e.graphicConfig,G)?(Y.value=!0,ne()):it(e.graphicConfig,G)||(Y.value=!1))}},{deep:!0});const ne=(G=!0)=>{switch(e.dataType){case"request":R(G);break;case"indicator":it(e.graphicConfig,t.unref(W))&&q(G);break}},oe=()=>{const G=e.id,Z=N(G);F(G,{...Z,type:e.type,RECORD:""})},ae=t.computed(()=>{const G=t.unref(g);let Z=0;const{subTotalColumn:X,subTotalName:ie}=e;X&&(Z=G.findIndex(ge=>ge.dataIndex===X),Z<0&&(Z=0));const se=[];let le=0;for(let ge=0;ge<G.length;ge++){const pe=G[ge],{isCalcTotal:Me}=pe;ge===Z?se.push({...pe,total:ie}):Me?(se.push({...pe,index:ge,total:0}),le++):se.push({...pe})}if(le===0)return[];const te=t.unref(l),ce=Q(se);for(let ge=0;ge<ce.length;ge++){const pe=ce[ge];let Me=0;const{isCalcTotal:Ze,dataIndex:xt}=pe;if(Ze===!0){for(let Lt=0;Lt<te.length;Lt++){const Qe=+te[Lt][xt];isNaN(Qe)||(Me=new is.Big(Me).add(Qe).toNumber())}pe.total=Me}}return ce});function Q(G){var X;const Z=[];for(const ie of G)(X=ie.children)!=null&&X.length?Z.push(...Q(ie.children)):Z.push(ie);return Z}const{setRequest:$}=t.inject(ze,{setRequest:G=>{}});typeof $=="function"&&$({id:e.id,requestFn:ne,sortNum:e.requestSort}),o({refreshData:ne});const ee=(G="",Z)=>Ie(G,Z),re=G=>{if(G!=="event")return{self:"_self",blank:"_blank"}[G]},xe=(G,Z="")=>{G==="event"&&window.parent.postMessage({type:"openPage",url:Z},"*")},Se=(G,Z)=>{G(Z.filterCheckboxGroupValue)},Be=(G,Z)=>{G({confirm:!0}),Z.filterOptionsInputValue="",Z.filterCheckboxGroupValue=[]},Oe=()=>{},we=G=>{const Z=G.dataIndex;if(typeof Z=="string"){let X=t.unref(w)[Z];const ie=t.unref(G.filterOptionsInputValue).trim();return Array.isArray(X)?(X=X.filter(se=>typeof se.label=="string"?se.label.toLowerCase().includes(ie.toLowerCase()):!0),X):[]}return[]},Ae=async()=>{var pe,Me;const G="EXPORT_KEY";de.message.loading({key:G,content:"正在导出...",duration:0});let Z=[];if(e.dataType==="static")Z=e.data;else if(e.dataType==="request"){const Ze={layer:"1"};t.unref(I)&&(Ze.orderCondition=t.unref(I));const xt=await O(Ze);Z=((Me=(pe=xt==null?void 0:xt.data)==null?void 0:pe.data)==null?void 0:Me.rows)||{}}const X=t.unref(g),ie=[],se=[];X==null||X.forEach(Ze=>{ie.push(Ze.dataIndex),se.push(Ze.title)});const le=Z.map(Ze=>Le.pick(Ze,ie)),te=Qt.utils.book_new(),ce=Qt.utils.aoa_to_sheet([se]),ge=Qt.utils.sheet_add_json(ce,le,{skipHeader:!0,origin:"A2"});Qt.utils.book_append_sheet(te,ge,"sheet"),Qt.writeFile(te,"表格数据.xlsx"),de.message.success({key:G,content:"导出成功"})},Ve=(G,Z=2)=>{const X=+G*100;return isNaN(X)||X<=0?0:X>=100?100:X.toFixed(Z)};_e(e,{resetRecord:oe,refreshData:ne,exportTableData:Ae});const Ue=(G,Z)=>{let X=null;return e.stripedShow&&(X=Z%2===1?"table-striped":null),X},He=t.computed(()=>{let G=0;const{height:Z,isPageBottom:X}=e;return X&&Z&&(G=parseFloat(Z)-h()),G?G+"px":"100%"}),We=t.computed(()=>{let G="#071655";return e.headerBackgroundColor&&(G="transparent"),G}),Ge=t.computed(()=>{let G="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(G="transparent"),G}),ht=t.computed(()=>parseFloat(e.fontSize)+16),tt=t.computed(()=>{let G="";const{paginationColor:Z,paginationBgColor:X,activePaginationColor:ie,activePaginationBgColor:se,hoverBackgroundColor:le}=e;return Z&&(G+="p-color "),X&&(G+="p-bg-color "),ie&&(G+="active-p-color "),se&&(G+="active-p-bg-color "),le&&(G+="hover-bg-color "),G});return{x:d,y:c,style:s,customRow:J,pagination:D,formatFn:L,contrastClass:p,tableChange:k,summaryList:ae,loading:n,onTouchHrefEvent:xe,handleHref:ee,handleHrefTarget:re,useRowIndex:M,tableColumns:g,tableDataSource:l,useFilterOptions:we,useSetSelectedKeys:Se,onResetFilter:Be,onSearchFilterOptions:Oe,exportTableData:Ae,handleProgressText:Ve,pageSizeVisible:i,pageSize:B,tableRef:r,rowClassName:Ue,tableHeight:He,tableHeaderBgColor:We,tableBodyBgColor:Ge,getChgStyle:A,chgBoxStyle:_,getChgBoxImgStyle:P,getChgBoxImgSrc:V,seqIcon1:fu,seqIcon2:uu,seqIcon3:hu,iconSize:ht,containerClass:tt,getCellStyle:G=>{const{overflow:Z}=G;if(Z==="ellipsis")return{overflow:"hidden",textOverflow:"ellipsis"};if(Z==="wrap")return{}}}}}),Wl=()=>{t.useCssVars(e=>({"35f7e0e1":e.stripedColor,f8e64a50:e.tableHeaderBgColor,"371eb03a":e.tableBodyBgColor,"2776154f":e.paginationBgColor,"04097258":e.paginationColor,"5b8ff6a9":e.activePaginationBgColor,"55f1b6ae":e.activePaginationColor,"0e9c5c24":e.hoverBackgroundColor}))},jl=Va.setup;Va.setup=jl?(e,o)=>(Wl(),jl(e,o)):Wl;const p1="",b1="",gu=e=>(t.pushScopeId("data-v-2a78e5dc"),e=e(),t.popScopeId(),e),mu=["id"],yu={key:0,class:"table-tool"},xu=t.createTextVNode("导出数据"),pu=t.createTextVNode(" 搜索 "),bu=t.createTextVNode(" 重置 "),vu=["src","width","height"],Su=["src","width","height"],Cu=["src","width","height"],wu={key:1},Au={key:1,class:"action-list"},ku=["href","target","onClick"],Tu={key:2,class:"progress-cell"},Bu=["title"],Eu=["title"],Du=["src"],Ru=["title"],Iu=["src"],Lu={class:"ant-pagination-options-quick-jumper"},_u=gu(()=>t.createElementVNode("span",null,"条 / 页",-1));function Ou(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"),h=t.resolveComponent("a-table-summary-row"),y=t.resolveComponent("a-table-summary"),f=t.resolveComponent("a-table"),g=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(g,{loading:e.loading},{default:t.withCtx(()=>{var m;return[e.isUseExport?(t.openBlock(),t.createElementBlock("div",yu,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[xu]),_: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:S,setSelectedKeys:B,confirm:b,clearFilters:v})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(l,{value:u.filterOptionsInputValue,"onUpdate:value":x=>u.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:u.filterCheckboxGroupValue,"onUpdate:value":x=>u.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(u),onChange:x=>e.useSetSelectedKeys(B,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:()=>b()},{default:t.withCtx(()=>[pu]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(x=>e.onResetFilter(v,u),["stop"])},{default:t.withCtx(()=>[bu]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:u,index:S,text:B,record:b})=>{var v,x,w,T;return[u.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[S===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,vu)):S===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Su)):S>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,Cu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.fontSize})},t.toDisplayString(S+1),5)],64)):(t.openBlock(),t.createElementBlock("span",wu,t.toDisplayString(S+1),1))],64)):u.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",Au,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(E,I)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:I},[t.createElementVNode("a",{href:e.handleHref(E.href,b),target:e.handleHrefTarget(E.target),style:t.normalizeStyle({color:E.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:O=>e.onTouchHrefEvent(E.target,e.handleHref(E.href,b))},t.toDisplayString(E.title),13,ku)]))),128))])):u.format==="progress"?(t.openBlock(),t.createElementBlock("div",Tu,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:u.progressColor||"#1890ff",height:u.progressWidth||"18px",width:`${e.handleProgressText(B,u.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(B)<100?u.progressTextColor||"#333":u.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(B,u.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(u)})},[u.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:0,title:((v=u==null?void 0:u.customFormatter)==null?void 0:v.split("{value}")[0])||""},t.toDisplayString(((x=u==null?void 0:u.customFormatter)==null?void 0:x.split("{value}")[0])||""),9,Bu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(u.format)]),style:t.normalizeStyle(e.getChgStyle({...u,text:B})),title:u.format!=null?e.formatFn(B,u):B},[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:B})),src:e.getChgBoxImgSrc(B)},null,12,Du)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(u.format!=null?e.formatFn(B,u):B||(u==null?void 0:u.defaultVal)),1)],14,Eu),u.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((w=u==null?void 0:u.customFormatter)==null?void 0:w.split("{value}")[1])||""},t.toDisplayString(((T=u==null?void 0:u.customFormatter)==null?void 0:T.split("{value}")[1])||""),9,Ru)):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(h,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(u,S)=>(t.openBlock(),t.createBlock(c,{key:S,index:S,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,Iu)],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},[(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",Lu,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=u=>e.pageSize=u)},null,512),[[t.vModelText,e.pageSize]]),_u])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,mu)}const Gl=ve(me(Va,[["render",Ou],["__scopeId","data-v-2a78e5dc"]])),Ha={...Ee,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"},Wa=Ce(Ha),Ul=["click"];Je.use([Et.CanvasRenderer,gt.MapChart,gt.ScatterChart,ke.VisualMapComponent,ke.TooltipComponent,ke.GraphicComponent]);const Nu=t.defineComponent({name:"EcanMap",components:{Echarts:pt},props:{...Wa},setup(e){const o=Pe(e),n=Pe({...e.tooltipRequestData,requestHeaders:{}}),a=t.ref(),r=t.ref(""),i=t.ref(""),s=Te(e,["backgroundImage"]),l=t.ref(),d=t.computed(()=>ut(e.geoBackgroundImage)),c=t.computed(()=>ut(e.backgroundImage)),h=t.computed(()=>e.geoBackgroundImage?{image:t.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),y=t.computed(()=>{const C=e.symbolImage;return e.symbolImage?"image://"+ut(C):"circle"}),f=C=>{let L=e.tooltipFormatter;const p=L.match(/\{(.+?)\}/g);if(p==null||p.length===0)return L;for(let A=0;A<p.length;A++){const _=p[A];let P=_.slice(1,-1).trim();const V=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,U=P.match(V);for(let N=0;N<U.length;N++){const F=U[N],H=C[F];H!=null&&(P=P.replace(F,H))}L=L.replace(_,P)}return L.split(`
|
|
120
|
+
`)},g=t.ref(!1),m=t.ref("");let u=new AbortController;const S=(C,L)=>{const p=u.signal;g.value=!0,r.value=C,n({name:C,signal:p}).then(A=>{var _,P;if(A){const V=((P=(_=A==null?void 0:A.data)==null?void 0:_.data)==null?void 0:P.rows)||[];let U="";for(const N of V){const F=f(N)||[];if(F!=null&&F.length)for(const H of F)U+=`<div style="word-break: break-all;white-space: normal;">${H}</div>`}U=`<div style="max-width:200px;">${U}</div>`,i.value=U,L(t.unref(m),U)}else p.aborted?i.value="Loading":i.value=C,L(t.unref(m),i.value);g.value=!1})},B=t.computed(()=>{const C=e.geoCenter;let L;return typeof C=="string"&&C!==""&&(L=C.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:L,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(p,A,_)=>{m.value=A;const{name:P=""}=p,{requestUrl:V}=e.tooltipRequestData;if(!V)return P;if(t.unref(g))t.unref(r)!==P&&(u.abort(),u=new AbortController);else{if(t.unref(r)===P)return t.unref(i);S(P,_)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(h),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}]}}),b=t.ref(!1),v=async()=>{var p;b.value=!1;const C=e.mapJson,L=`map-${e.id}`;if(C!=null&&C.path){const A=await ft(((p=window==null?void 0:window.config)==null?void 0:p.uploadPath)+C.path);Je.registerMap(L,(A==null?void 0:A.data)||{})}else Je.registerMap(L,{});b.value=!0};t.watch(()=>e.mapJson,()=>{v()},{immediate:!0,deep:!0});const x=async()=>{var C,L;if(e.dataType==="request"){b.value=!1;try{const p=await o(),A=((L=(C=p==null?void 0:p.data)==null?void 0:C.data)==null?void 0:L.rows)||{},_=`map-${e.id}`;if(A!=null&&A.path){const P=await ft(A.path);Je.registerMap(_,(P==null?void 0:P.data)||{})}else Je.registerMap(_,{})}catch(p){console.error(p)}finally{b.value=!0}}},w=()=>{switch(e.dataType){case"request":x();break}},{getGlobalModel:T,setGlobalModel:E}=t.inject(De,{getGlobalModel:C=>{},setGlobalModel:(C,L)=>{}}),O=Re(e)("click",()=>{const C=T(e.id);E(e.id,{...C,RECORD:t.unref(a)})});_e(e,{refreshData:w});const{setRequest:R}=t.inject(ze,{setRequest:C=>{}});return typeof R=="function"&&R({id:e.id,requestFn:w,sortNum:e.requestSort}),{option:B,style:s,isLoadedData:b,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{t.unref(a)&&O()},onMouseOver:(C={})=>{C.componentType==="geo"&&C.region?a.value=C.region:a.value=null}}}}),S1="",Fu=["src"];function Mu(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,Fu),[[t.vShow,!1]])],4)}const $l=ve(me(Nu,[["render",Mu],["__scopeId","data-v-10f150ac"]])),ja={...Ee,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"},Ga=Ce(ja),Yl=["selectChange","refreshData"],zu=t.defineComponent({name:"EcanDataSelect",components:{ASelect:de.Select,ASelectOption:de.SelectOption},props:{...Ga},setup(e,{expose:o}){const n=Te(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=Pe(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var D;const{mode:k}=e;return(D=t.unref(i))!=null&&D.length?s.value:k==="multiple"||k==="tags"||k==="combobox"?[]:""},set:k=>{s.value=k}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:h}=t.inject(De,{getGlobalModel:k=>{},setGlobalModel:(k,D)=>{},getRecordValueByKeyName:k=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:k,selectFirstOption:D,value:C}=e,L=h(C),p=y.value;if(k==="multiple"||k==="tags"||k==="combobox"){if(L)s.value=L.split(",");else if(D){const A=t.unref(i)[0];s.value=A?[A[p]]:[]}}else if(L)s.value=L;else if(D){const A=t.unref(i)[0];s.value=A?A[p]:""}},{immediate:!0});const f=(k,D)=>{const C=y.label,L=y.value;let p;const A=D[C],_=D[L];return A!=null?p=A:_!=null&&(p=_),(p==null?void 0:p.toLowerCase().indexOf(k==null?void 0:k.toLowerCase()))>=0},g=k=>{const{label:D,value:C,options:L}=e.dataFieldNames;if(L&&Array.isArray(k))if(k.some(p=>L in p)){const p={},A=[];k.forEach(_=>{p[_[L]]||(p[_[L]]=[]),p[_[L]].push({[D]:_[D],[C]:_[C]})});for(const _ in p)A.push({[D]:_,[L]:p[_]});return A}else return k;else if(!L)return k},m=t.ref(!1),u=async()=>{var k,D;if(e.dataType==="request"){m.value=!0;try{const C=await r();if(i.value=g(((D=(k=C==null?void 0:C.data)==null?void 0:k.data)==null?void 0:D.rows)||[]),e.selectFirstOption){let L=t.unref(i)[0];if(y.options){const p=L[y.options];p&&p.length&&(L=p[0])}s.value=L[y.value]}}catch(C){console.error(C)}finally{m.value=!1}}},S=t.computed(()=>{let k=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const D=y.label,C=y.value;if(e.mode==="multiple")k=t.unref(i).filter(L=>t.unref(s).includes(L[C])).map(L=>L[D]);else{const L=t.unref(i).find(p=>t.unref(s)===p[C]);L&&(k=L[D])}}return k}),B=t.ref([]),b=t.computed(()=>{const k={};if(e.mode!=="multiple"){const D=t.unref(B).find(C=>C.value===t.unref(s));D&&(k.itemCodes=D.item_codes)}return k}),v=t.computed(()=>{const{value:k,label:D}=y,C=t.unref(i).find(L=>L[k]===t.unref(l));return C?{label:C[D],value:C[k]}:{}});c(e.id,{type:e.type,value:S,...t.unref(b),recordData:t.unref(v)});const w=Re(e)("selectChange",()=>{const k=e.id,D=d(k);c(k,{...D,...t.unref(b),RECORD:S,recordData:t.unref(v)})}),T=(k=[])=>{if(i.value=g(k),e.selectFirstOption){let D=t.unref(i)[0];if(y.options){const C=D[y.options];C&&C.length&&(D=C[0])}s.value=D[y.value]}c(e.id,{type:e.type,value:S,...t.unref(b),recordData:t.unref(v)})},E=Ke(e),I=async()=>{var k;try{m.value=!0;const D=await E(),{data:C}=(D==null?void 0:D.data)||{},L=y.label,p=y.value;if(C){const A=((k=D==null?void 0:D.data)==null?void 0:k.data)??[];B.value=A;const _=A.map(U=>({[L]:U.label,[p]:U.value})),{id:P}=e,V=d(P);c(P,{...V,...t.unref(b)}),T(_)}else T([])}catch(D){console.error(D)}finally{m.value=!1}},O=()=>{switch(e.dataType){case"indicator":{I();break}case"request":u();break}};_e(e,{selectChange:w,refreshData:O});const{setRequest:R}=t.inject(ze,{setRequest:({id:k,sortNum:D,requestFn:C})=>{}});return typeof R=="function"&&R({id:e.id,requestFn:O,sortNum:e.requestSort}),o({refreshData:O}),{style:n,getPopupContainer:a,myValue:s,selectChange:w,options:i,filterOption:f,loading:m,resultValue:l}}}),w1="",A1="";function Pu(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 Kl=ve(me(zu,[["render",Pu],["__scopeId","data-v-3639c038"]])),Zl=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:Cl,EcanBorder:Il,EcanButton:rl,EcanCheckbox:ll,EcanCirculate:Fl,EcanComboGraph:Bl,EcanCounter:Ui,EcanCustomGraph:kl,EcanDataSelect:Kl,EcanDatePicker:Ji,EcanIframe:Vl,EcanImage:ql,EcanInput:Yi,EcanLine:vl,EcanList:Hi,EcanMap:$l,EcanModal:kt,EcanPageConfig:Li,EcanPie:pl,EcanProportion:ji,EcanProviderConfig:_i,EcanRadar:Dl,EcanRadio:hl,EcanRangePicker:ol,EcanScatter:Al,EcanScrollText:zi,EcanSelect:cl,EcanTable:Gl,EcanTabs:_l,EcanText:Mi,EcanTimeDisplay:qi,EcanTreeSelect:fl,barComponentProps:ba,barEvents:Sl,barProps:pa,borderComponentProps:Da,borderEvents:Rl,borderProps:Ea,buttonComponentProps:na,buttonEvents:al,buttonProps:ta,checkboxComponentProps:aa,checkboxEvents:il,checkboxProps:oa,circulateComponentProps:_a,circulateEvents:Ol,circulateProps:La,comboGraphComponentProps:ka,comboGraphEvents:Tl,comboGraphProps:Aa,counterComponentProps:Uo,counterEvents:Gi,counterProps:Go,customGraphComponentProps:wa,customGraphProps:Ca,dataSelectComponentProps:Ga,dataSelectEvents:Yl,dataSelectProps:ja,datePickerComponentProps:Zo,datePickerEvents:Ki,datePickerProps:Ko,iframeComponentProps:za,iframeProps:Ma,imageComponentProps:Na,imageEvents:Ml,imageProps:Oa,inputComponentProps:Yo,inputEvents:$i,inputProps:$o,lineComponentProps:xa,lineEvents:bl,lineProps:ya,listComponentProps:Ho,listEvents:Vi,listProps:Vo,mapComponentProps:Wa,mapEvents:Ul,mapProps:Ha,modalComponentProps:ga,modalEvents:ml,modalProps:ha,pageConfig:Pn,pageConfigComponentProps:qn,pieComponentProps:ua,pieEvents:gl,pieProps:fa,proportionComponentProps:jo,proportionEvents:Wi,proportionProps:Wo,providerConfig:Lo,providerConfigComponentProps:_o,radarComponentProps:Ba,radarEvents:El,radarProps:Ta,radioComponentProps:da,radioEvents:ul,radioProps:ca,rangePickerComponentProps:Xo,rangePickerEvents:Xi,rangePickerProps:Jo,scatterComponentProps:Sa,scatterEvents:wl,scatterProps:va,selectComponentProps:ia,selectEvents:sl,selectProps:ra,tableComponentProps:qa,tableEvents:Hl,tableProps:Pa,tabsComponentProps:Ia,tabsEvents:Ll,tabsProps:Ra,textComponentProps:No,textEvents:Oi,textProps:Oo,timeDisplayComponentProps:qo,timeDisplayEvents:Pi,timeDisplayProps:Po,treeSelectComponentProps:sa,treeSelectEvents:dl,treeSelectProps:la},Symbol.toStringTag,{value:"Module"})),qu={install:e=>{Object.keys(Zl).forEach(o=>{const n=Zl[o];n.install&&e.use(n)})}};j.EcanBar=Cl,j.EcanBorder=Il,j.EcanButton=rl,j.EcanCheckbox=ll,j.EcanCirculate=Fl,j.EcanComboGraph=Bl,j.EcanCounter=Ui,j.EcanCustomGraph=kl,j.EcanDataSelect=Kl,j.EcanDatePicker=Ji,j.EcanIframe=Vl,j.EcanImage=ql,j.EcanInput=Yi,j.EcanLine=vl,j.EcanList=Hi,j.EcanMap=$l,j.EcanModal=kt,j.EcanPageConfig=Li,j.EcanPie=pl,j.EcanProportion=ji,j.EcanProviderConfig=_i,j.EcanRadar=Dl,j.EcanRadio=hl,j.EcanRangePicker=ol,j.EcanScatter=Al,j.EcanScrollText=zi,j.EcanSelect=cl,j.EcanTable=Gl,j.EcanTabs=_l,j.EcanText=Mi,j.EcanTimeDisplay=qi,j.EcanTreeSelect=fl,j.barComponentProps=ba,j.barEvents=Sl,j.barProps=pa,j.borderComponentProps=Da,j.borderEvents=Rl,j.borderProps=Ea,j.buttonComponentProps=na,j.buttonEvents=al,j.buttonProps=ta,j.checkboxComponentProps=aa,j.checkboxEvents=il,j.checkboxProps=oa,j.circulateComponentProps=_a,j.circulateEvents=Ol,j.circulateProps=La,j.comboGraphComponentProps=ka,j.comboGraphEvents=Tl,j.comboGraphProps=Aa,j.compatibleMobileList=xl,j.counterComponentProps=Uo,j.counterEvents=Gi,j.counterProps=Go,j.customGraphComponentProps=wa,j.customGraphProps=Ca,j.dataSelectComponentProps=Ga,j.dataSelectEvents=Yl,j.dataSelectProps=ja,j.datePickerComponentProps=Zo,j.datePickerEvents=Ki,j.datePickerProps=Ko,j.default=qu,j.handleScrollCombinations=yl,j.iframeComponentProps=za,j.iframeProps=Ma,j.imageComponentProps=Na,j.imageEvents=Ml,j.imageProps=Oa,j.inputComponentProps=Yo,j.inputEvents=$i,j.inputProps=$o,j.lineComponentProps=xa,j.lineEvents=bl,j.lineProps=ya,j.listComponentProps=Ho,j.listEvents=Vi,j.listProps=Vo,j.mapComponentProps=Wa,j.mapEvents=Ul,j.mapProps=Ha,j.modalComponentProps=ga,j.modalEvents=ml,j.modalProps=ha,j.moveToComponentList=ma,j.pageConfig=Pn,j.pageConfigComponentProps=qn,j.pieComponentProps=ua,j.pieEvents=gl,j.pieProps=fa,j.proportionComponentProps=jo,j.proportionEvents=Wi,j.proportionProps=Wo,j.providerConfig=Lo,j.providerConfigComponentProps=_o,j.radarComponentProps=Ba,j.radarEvents=El,j.radarProps=Ta,j.radioComponentProps=da,j.radioEvents=ul,j.radioProps=ca,j.rangePickerComponentProps=Xo,j.rangePickerEvents=Xi,j.rangePickerProps=Jo,j.scatterComponentProps=Sa,j.scatterEvents=wl,j.scatterProps=va,j.selectComponentProps=ia,j.selectEvents=sl,j.selectProps=ra,j.tableComponentProps=qa,j.tableEvents=Hl,j.tableProps=Pa,j.tabsComponentProps=Ia,j.tabsEvents=Ll,j.tabsProps=Ra,j.textComponentProps=No,j.textEvents=Oi,j.textProps=Oo,j.timeDisplayComponentProps=qo,j.timeDisplayEvents=Pi,j.timeDisplayProps=Po,j.treeSelectComponentProps=sa,j.treeSelectEvents=dl,j.treeSelectProps=la,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
121
121
|
//# sourceMappingURL=index.umd.js.map
|