@ecan-bi/datav 1.3.23 → 1.3.25
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 +4518 -4450
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +28 -28
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/common/marquee-scroll/MarqueeScroll.vue.d.ts +9 -0
- package/types/container/modal/Modal.vue.d.ts +17 -0
- package/types/container/modal/index.d.ts +17 -0
- package/types/container/modal/props.d.ts +11 -0
- package/types/graph/bar/Bar.vue.d.ts +9 -9
- package/types/graph/bar/index.d.ts +9 -9
- package/types/graph/bar/props.d.ts +4 -4
- package/types/graph/combo-graph/ComboGraph.vue.d.ts +9 -9
- package/types/graph/combo-graph/index.d.ts +9 -9
- package/types/graph/combo-graph/props.d.ts +4 -4
- package/types/graph/pie/Pie.vue.d.ts +8 -8
- package/types/graph/pie/index.d.ts +8 -8
- package/types/graph/pie/props.d.ts +4 -4
- package/types/graph/scatter/Scatter.vue.d.ts +9 -9
- package/types/graph/scatter/index.d.ts +9 -9
- package/types/graph/scatter/props.d.ts +4 -4
- package/types/media/image/Image.vue.d.ts +8 -0
- package/types/media/image/index.d.ts +8 -0
- package/types/media/image/props.d.ts +5 -0
- package/types/text/list/List.vue.d.ts +14 -0
- package/types/text/list/index.d.ts +14 -0
- package/types/text/list/props.d.ts +5 -0
- package/types/text/text/Text.vue.d.ts +24 -0
- package/types/text/text/index.d.ts +24 -0
- package/types/text/text/props.d.ts +15 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.3.
|
|
2
|
-
(function(W,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],t):(W=typeof globalThis<"u"?globalThis:W||self,t(W["@ecan/bi-datav"]={},W.Vue,W["echarts/core"],W.ResizeDetector,W.AntDesignVue,null,null,W.LodashEs,W.Dayjs,W.Axios,W.Mitt,null,null,null,W["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,W["echarts/renderers"],W["echarts/charts"],W["echarts/components"],null,W.Echarts,null,null,W.Xlsx,W.big.js))})(this,function(W,t,Je,Wa,se,Ou,_u,Ie,Se,Ql,Jl,Lu,Nu,Fu,Ua,zu,Mu,Pu,qu,Et,ht,Ce,Vu,Xl,Hu,ju,Yt,e0){var Ul,Gl,$l,Kl;"use strict";function t0(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 n0=t0(Xl),o0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function a0(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 o0.forEach(i=>{r[i]=n(i)}),r}return a()}function r0(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),Wa.addListener(r,a)),d(()=>{a&&r&&Wa.removeListener(r,a)})})}const i0={autoresize:Boolean},l0="ecLoadingOptions";function s0(e,o,n){const a=t.inject(l0,{}),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 c0={loading:Boolean,loadingOptions:Object},Wu="",d0=/^on[^a-z]/,f0=e=>d0.test(e);function u0(e){const o={};for(const n in e)f0(n)||(o[n]=e[n]);return o}const h0="x-vue-echarts",g0="ecTheme",m0="ecInitOptions",y0="ecUpdateOptions",pt=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...i0,...c0},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),r=t.shallowRef(),i=t.shallowRef(),s=t.inject(g0,null),l=t.inject(m0,null),d=t.inject(y0,null),{autoresize:c,manualUpdate:f,loading:y,loadingOptions:u}=t.toRefs(e),h=t.computed(()=>i.value||e.option||Object.create(null)),m=t.computed(()=>e.theme||t.unref(s)||{}),g=t.computed(()=>e.initOptions||t.unref(l)||{}),C=t.computed(()=>e.updateOptions||t.unref(d)||{}),E=t.computed(()=>u0(o));function v(k){if(r.value||!a.value)return;const O=r.value=Je.init(a.value,m.value,g.value);e.group&&(O.group=e.group);let N=n;N||(N={},Object.keys(o).filter(R=>R.indexOf("on")===0&&R.length>2).forEach(R=>{const x=R.charAt(2).toLowerCase()+R.slice(3);N[x]=o[R]})),Object.keys(N).forEach(R=>{const x=N[R];x&&(R.indexOf("zr:")===0?O.getZr().on(R.slice(3).toLowerCase(),x):O.on(R.toLowerCase(),x))});function I(){if(O&&!O.isDisposed())try{O.resize()}catch(R){if(R.message==="Cannot read property 'get' of undefined")return;throw R}}function w(){O.setOption(k||h.value,C.value)}c.value?t.nextTick(()=>{I(),w()}):w()}function S(k,O){e.manualUpdate&&(i.value=k),r.value?r.value.setOption(k,O||{}):v(k)}function p(){r.value&&(r.value.dispose(),r.value=void 0)}let A=null;t.watch(f,k=>{typeof A=="function"&&(A(),A=null),k||(A=t.watch(()=>e.option,O=>{O&&(r.value?r.value.setOption(O,C.value):v())},{deep:!0}))},{immediate:!0}),t.watch([m,g],()=>{p(),v()},{deep:!0}),t.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const T=a0(r,v);return s0(r,y,u),r0(r,c,a),t.onMounted(()=>{e.option&&v()}),t.onUnmounted(p),{chart:r,root:a,setOption:S,nonEventAttrs:E,...T}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(h0,e)}});function at(e,o){x0(e)&&(e="100%");var n=p0(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 x0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function p0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function b0(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 v0(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 S0(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 C0(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 w0(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],f=[l,n,n,s,i,i][d],y=[i,i,l,n,n,s][d];return{r:c*255,g:f*255,b:y*255}}function A0(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 Ga(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=B0(e)),typeof e=="object"&&(gt(e.r)&>(e.g)&>(e.b)?(o=v0(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=w0(e.h,a,r),s=!0,l="hsv"):gt(e.h)&>(e.s)&>(e.l)&&(a=ln(e.s),i=ln(e.l),o=S0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=b0(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 k0="[-\\+]?\\d+%?",T0="[-\\+]?\\d*\\.\\d+%?",bt="(?:".concat(T0,")|(?:").concat(k0,")"),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 B0(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:Ga(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:Ga(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,Ka=.16,E0=.05,D0=.05,I0=.15,Za=5,Ya=4,R0=[{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=C0(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(A0(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-Ka*o:o===Ya?a=e.s+Ka:a=e.s+E0*o,a>1&&(a=1),n&&o===Za&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function er(e,o,n){var a;return n?a=e.v+D0*o:a=e.v-I0*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=Za;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<=Ya;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"?R0.map(function(f){var y=f.index,u=f.opacity,h=cn(O0(Qt(o.backgroundColor||"#141414"),Qt(n[y]),u*100));return h}):n}var In={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"},Rn={},On={};Object.keys(In).forEach(function(e){Rn[e]=Dn(In[e]),Rn[e].primary=Rn[e][5],On[e]=Dn(In[e],{theme:"dark",backgroundColor:"#141414"}),On[e].primary=On[e][5]});var tr=[],Jt=[],_0="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function L0(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function N0(e,o){if(o=o||{},e===void 0)throw new Error(_0);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]=L0(),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){F0(e,r,n[r])})}return e}function F0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function z0(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function M0(e,o){z0(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 P0=`
|
|
1
|
+
/*! @ecan-bi/datav@1.3.25 */
|
|
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,Wa,ce,Ou,_u,_e,we,Ql,Jl,Lu,Nu,Fu,Ga,zu,Mu,Pu,qu,Et,ht,Ae,Vu,Xl,Hu,ju,Yt,e0){var Gl,Ul,$l,Kl;"use strict";function t0(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 n0=t0(Xl),o0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function a0(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 o0.forEach(i=>{r[i]=n(i)}),r}return a()}function r0(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),Wa.addListener(r,a)),d(()=>{a&&r&&Wa.removeListener(r,a)})})}const i0={autoresize:Boolean},l0="ecLoadingOptions";function s0(e,o,n){const a=t.inject(l0,{}),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 c0={loading:Boolean,loadingOptions:Object},Wu="",d0=/^on[^a-z]/,f0=e=>d0.test(e);function u0(e){const o={};for(const n in e)f0(n)||(o[n]=e[n]);return o}const h0="x-vue-echarts",g0="ecTheme",m0="ecInitOptions",y0="ecUpdateOptions",pt=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...i0,...c0},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),r=t.shallowRef(),i=t.shallowRef(),s=t.inject(g0,null),l=t.inject(m0,null),d=t.inject(y0,null),{autoresize:c,manualUpdate:u,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)||{}),h=t.computed(()=>e.initOptions||t.unref(l)||{}),S=t.computed(()=>e.updateOptions||t.unref(d)||{}),D=t.computed(()=>u0(o));function b(E){if(r.value||!a.value)return;const _=r.value=Je.init(a.value,m.value,h.value);e.group&&(_.group=e.group);let N=n;N||(N={},Object.keys(o).filter(R=>R.indexOf("on")===0&&R.length>2).forEach(R=>{const C=R.charAt(2).toLowerCase()+R.slice(3);N[C]=o[R]})),Object.keys(N).forEach(R=>{const C=N[R];C&&(R.indexOf("zr:")===0?_.getZr().on(R.slice(3).toLowerCase(),C):_.on(R.toLowerCase(),C))});function B(){if(_&&!_.isDisposed())try{_.resize()}catch(R){if(R.message==="Cannot read property 'get' of undefined")return;throw R}}function A(){_.setOption(E||g.value,S.value)}c.value?t.nextTick(()=>{B(),A()}):A()}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 w=null;t.watch(u,E=>{typeof w=="function"&&(w(),w=null),E||(w=t.watch(()=>e.option,_=>{_&&(r.value?r.value.setOption(_,S.value):b())},{deep:!0}))},{immediate:!0}),t.watch([m,h],()=>{p(),b()},{deep:!0}),t.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const T=a0(r,b);return s0(r,y,f),r0(r,c,a),t.onMounted(()=>{e.option&&b()}),t.onUnmounted(p),{chart:r,root:a,setOption:v,nonEventAttrs:D,...T}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(h0,e)}});function at(e,o){x0(e)&&(e="100%");var n=p0(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 x0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function p0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function b0(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 v0(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 S0(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 C0(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 w0(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],u=[l,n,n,s,i,i][d],y=[i,i,l,n,n,s][d];return{r:c*255,g:u*255,b:y*255}}function A0(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=B0(e)),typeof e=="object"&&(gt(e.r)&>(e.g)&>(e.b)?(o=v0(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=w0(e.h,a,r),s=!0,l="hsv"):gt(e.h)&>(e.s)&>(e.l)&&(a=ln(e.s),i=ln(e.l),o=S0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=b0(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 k0="[-\\+]?\\d+%?",T0="[-\\+]?\\d*\\.\\d+%?",bt="(?:".concat(T0,")|(?:").concat(k0,")"),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 B0(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,Ka=.16,E0=.05,D0=.05,R0=.15,Za=5,Ya=4,I0=[{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=C0(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(A0(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-Ka*o:o===Ya?a=e.s+Ka:a=e.s+E0*o,a>1&&(a=1),n&&o===Za&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function er(e,o,n){var a;return n?a=e.v+D0*o:a=e.v-R0*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=Za;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<=Ya;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"?I0.map(function(u){var y=u.index,f=u.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={},On={};Object.keys(Rn).forEach(function(e){In[e]=Dn(Rn[e]),In[e].primary=In[e][5],On[e]=Dn(Rn[e],{theme:"dark",backgroundColor:"#141414"}),On[e].primary=On[e][5]});var tr=[],Jt=[],_0="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function L0(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function N0(e,o){if(o=o||{},e===void 0)throw new Error(_0);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]=L0(),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){F0(e,r,n[r])})}return e}function F0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function z0(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function M0(e,o){z0(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 P0=`
|
|
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
|
-
`,ir=!1,q0=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P0;t.nextTick(function(){ir||(typeof window<"u"&&window.document&&window.document.documentElement&&N0(o,{prepend:!0}),ir=!0)})},V0=["icon","primaryColor","secondaryColor"];function H0(e,o){if(e==null)return{};var n=j0(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 j0(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){W0(e,r,n[r])})}return e}function W0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Xt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function
|
|
56
|
+
`,ir=!1,q0=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P0;t.nextTick(function(){ir||(typeof window<"u"&&window.document&&window.document.documentElement&&N0(o,{prepend:!0}),ir=!0)})},V0=["icon","primaryColor","secondaryColor"];function H0(e,o){if(e==null)return{};var n=j0(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 j0(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){W0(e,r,n[r])})}return e}function W0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Xt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function G0(e){var o=e.primaryColor,n=e.secondaryColor;Xt.primaryColor=o,Xt.secondaryColor=n||ar(o),Xt.calculated=!!n}function U0(){return dn({},Xt)}var Lt=function(o,n){var a=dn({},o,n.attrs),r=a.icon,i=a.primaryColor,s=a.secondaryColor,l=H0(a,V0),d=Xt;if(i&&(d={primaryColor:i,secondaryColor:s||ar(i)}),q0(),M0(or(r),"icon should be icon definiton, but got ".concat(r)),!or(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"}))};Lt.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Lt.inheritAttrs=!1,Lt.displayName="IconBase",Lt.getTwoToneColors=U0,Lt.setTwoToneColors=G0;const Ln=Lt;function $0(e,o){return Q0(e)||Y0(e,o)||Z0(e,o)||K0()}function K0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
57
57
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z0(e,o){if(e){if(typeof e=="string")return lr(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 lr(e,o)}}function lr(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 Y0(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 Q0(e){if(Array.isArray(e))return e}function sr(e){var o=rr(e),n=$0(o,2),a=n[0],r=n[1];return Ln.setTwoToneColors({primaryColor:a,secondaryColor:r})}function J0(){var e=Ln.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var X0=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function es(e,o){return as(e)||os(e,o)||ns(e,o)||ts()}function ts(){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 ns(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 os(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 as(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 rs(e,o){if(e==null)return{};var n=is(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 is(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,f=r.twoToneColor,y=r.onClick,u=rs(r,X0),h=(a={anticon:!0},Nn(a,"anticon-".concat(s.name),!!s.name),Nn(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",g=c;g===void 0&&y&&(g=-1,u.tabindex=g);var C=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,E=rr(f),v=es(E,2),S=v[0],p=v[1];return t.createVNode("span",dr({role:"img","aria-label":s.name},u,{onClick:y,class:h}),[t.createVNode(Ln,{class:m,icon:s,primaryColor:S,secondaryColor:p,style:C},null)])};Nt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Nt.displayName="AntdIcon",Nt.inheritAttrs=!1,Nt.getTwoToneColor=J0,Nt.setTwoToneColor=sr;const fr=Nt;var ls={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 ss=ls;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){cs(e,r,n[r])})}return e}function cs(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:ss}),null)};Fn.displayName="CloseOutlined",Fn.inheritAttrs=!1;const ds=Fn;var fs={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 us=fs;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){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}var zn=function(o,n){var a=hr({},o,n.attrs);return t.createVNode(fr,hr({},a,{icon:us}),null)};zn.displayName="LoadingOutlined",zn.inheritAttrs=!1;const gs=zn,ms=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:se.Spin},setup(){return{indicator:t.h(gs,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Uu="",me=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n},ys={class:"spin-wrapper"};function xs(e,o,n,a,r,i){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",ys,[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(ms,[["render",xs]]),ps=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:se.Skeleton}});function bs(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=me(ps,[["render",bs]]);(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 vs=Object.defineProperty,gr=Object.getOwnPropertySymbols,Ss=Object.prototype.hasOwnProperty,Cs=Object.prototype.propertyIsEnumerable,mr=(e,o,n)=>o in e?vs(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,yr=(e,o)=>{for(var n in o||(o={}))Ss.call(o,n)&&mr(e,n,o[n]);if(gr)for(var n of gr(o))Cs.call(o,n)&&mr(e,n,o[n]);return e},ws=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n};const As=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),f=t.ref(0),y=t.ref(0),u=t.ref(!1),h=t.ref(!1),m=t.ref(0),g=t.ref(null),C=t.ref("200px"),E=t.ref(!1),v=t.ref(null),S=t.ref(null),p=async()=>{await A(),i.value++},A=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",v.value!==null&&S.value!==null&&v.value&&S.value)if(e.vertical&&"clientHeight"in v.value&&"clientHeight"in S.value){y.value=v.value.clientHeight,f.value=S.value.clientHeight;const D=Math.ceil(f.value/y.value);return n.value=isFinite(D)?D:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in v.value&&"clientWidth"in S.value){if(c.value=v.value.clientWidth,d.value=S.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const D=Math.ceil(d.value/c.value);return n.value=isFinite(D)?D: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,(D,F)=>{D!==F&&o(D?"onResume":"onPause")});const T=()=>{e.pauseOnHover&&(o("onPause"),u.value=!0)},k=()=>{e.pauseOnHover&&(o("onResume"),u.value=!1)},O=()=>{e.pauseOnClick&&(o("onPause"),h.value=!0)},N=()=>{e.pauseOnClick&&(o("onResume"),h.value=!1)},I=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),w=t.computed(()=>e.pauseOnHover&&(u.value||h.value)||!e.pauseOnHover&&I.value==="paused"?"paused":"running"),R=t.computed(()=>e.pauseOnHover&&u.value||e.pauseOnClick&&h.value||!e.pauseOnHover&&I.value==="paused"?"paused":"running"),x=t.computed(()=>{const D={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${w.value}`,"--pauseOnClick":`${R.value}`,"--pauseAnimation":`${I.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${C.value}`,"--min-width":`${a.value}`,"--min-height":`${r.value}`},F={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(F["--orientation"]="scrollY"),yr(yr({},D),F)}),B=t.computed(()=>!!e.gradient),b=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."),C.value=e.gradientWidth):e.gradientLength&&(C.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await A(),p()),E.value=!0};return t.onMounted(async()=>{b(),g.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(g.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(g.value)}),{ready:E,contentWidth:c,containerWidth:d,contentHeight:y,containerHeight:f,loopCounter:m,loopInterval:g,mouseOverMarquee:u,mouseDownMarquee:h,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:v,marqueeOverlayContainer:S,componentKey:i,showGradient:B,cloneAmount:n,ForcesUpdate:p,checkForClone:A,setupMarquee:b,getCurrentStyle:x,hoverStarted:T,hoverEnded:k,mouseDown:O,mouseUp:N}}}),ks={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},Ts={class:"marquee",ref:"marqueeContent"},Bs={key:1,"aria-hidden":!0,class:"marquee"};function Es(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",ks,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",Ts,[t.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(t.openBlock(),t.createElementBlock("div",Bs,[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 Ds=ws(As,[["render",Es]]);const Is=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Ds},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1},wrapStyle:{type:Object,default:()=>{}}},setup(e){return{isAutoScroll:t.ref(e.visible)}}});function Rs(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:!0,pauseOnHover:!0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["duration"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"list-wrap",style:t.normalizeStyle(e.wrapStyle)},[t.renderSlot(e.$slots,"default")],4))}const Mn=me(Is,[["render",Rs]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const pe=(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},ke={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},ve=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=ve(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"],Ae=(e,o=[])=>{const n=Ie.without(Os,...o);return t.computed(()=>Ie.pick(e,n))},Vn="EVENT_BUS",Me="GLOBAL_CONFIG",Te="GLOBAL_MODEL",Fe="REQUEST_MODEL",xr="GLOBAL_TOKEN",tn="REFRESH_PAGE",pr="MODAL_MODEL",vt="LOADED_DATA",Ue=18,br="ygt",vr=((Ul=window==null?void 0:window.config)==null?void 0:Ul.indicatorURL)||"";(Gl=window==null?void 0:window.config)!=null&&Gl.uploadPath;const Sr=(($l=window==null?void 0:window.config)==null?void 0:$l.routerBaseURL)||"./",_s=((Kl=window==null?void 0:window.config)==null?void 0:Kl.erdURL)||"",Cr=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],Re=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject(Vn,{onEvent:(r,i)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},Be=e=>{const o=e.events,n=e.id,a=t.inject(Vn,{emitEvent:(i,s)=>{}}),{touchEventId:r}=t.inject(Me,{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 f=e[c],y=f[n]||"",u=f[a]||"",h=f[r]||"";if(i.has(h)){const m=i.get(h);m.push({name:y,value:u,...f}),i.set(h,m)}else i.set(h,[{name:y,value:u,...f}])}const l=[],d=[];for(const[c,f]of i)if(d.push({name:c,data:f}),f!=null&&f.length)if(l.length)for(const y of f)l.includes(y.name)||l.push(y.name);else l.push(...f.map(y=>y.name));return{dimensions:l,dataset:d}};var de=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 Ls(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 Ns(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 Fs=Ls(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var kr;function xe(){return kr||(kr=1,function(e,o){(function(n,a){e.exports=a()})(de,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 de<"u"&&de.crypto&&(i=de.crypto),!i&&typeof Ns=="function")try{i=Fs}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 v(){}return function(S){var p;return v.prototype=S,p=new v,v.prototype=null,p}}(),d={},c=d.lib={},f=c.Base=function(){return{extend:function(v){var S=l(this);return v&&S.mixIn(v),(!S.hasOwnProperty("init")||this.init===S.init)&&(S.init=function(){S.$super.init.apply(this,arguments)}),S.init.prototype=S,S.$super=this,S},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var S in v)v.hasOwnProperty(S)&&(this[S]=v[S]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=c.WordArray=f.extend({init:function(v,S){v=this.words=v||[],S!=r?this.sigBytes=S:this.sigBytes=v.length*4},toString:function(v){return(v||h).stringify(this)},concat:function(v){var S=this.words,p=v.words,A=this.sigBytes,T=v.sigBytes;if(this.clamp(),A%4)for(var k=0;k<T;k++){var O=p[k>>>2]>>>24-k%4*8&255;S[A+k>>>2]|=O<<24-(A+k)%4*8}else for(var N=0;N<T;N+=4)S[A+N>>>2]=p[N>>>2];return this.sigBytes+=T,this},clamp:function(){var v=this.words,S=this.sigBytes;v[S>>>2]&=4294967295<<32-S%4*8,v.length=a.ceil(S/4)},clone:function(){var v=f.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var S=[],p=0;p<v;p+=4)S.push(s());return new y.init(S,v)}}),u=d.enc={},h=u.Hex={stringify:function(v){for(var S=v.words,p=v.sigBytes,A=[],T=0;T<p;T++){var k=S[T>>>2]>>>24-T%4*8&255;A.push((k>>>4).toString(16)),A.push((k&15).toString(16))}return A.join("")},parse:function(v){for(var S=v.length,p=[],A=0;A<S;A+=2)p[A>>>3]|=parseInt(v.substr(A,2),16)<<24-A%8*4;return new y.init(p,S/2)}},m=u.Latin1={stringify:function(v){for(var S=v.words,p=v.sigBytes,A=[],T=0;T<p;T++){var k=S[T>>>2]>>>24-T%4*8&255;A.push(String.fromCharCode(k))}return A.join("")},parse:function(v){for(var S=v.length,p=[],A=0;A<S;A++)p[A>>>2]|=(v.charCodeAt(A)&255)<<24-A%4*8;return new y.init(p,S)}},g=u.Utf8={stringify:function(v){try{return decodeURIComponent(escape(m.stringify(v)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(v){return m.parse(unescape(encodeURIComponent(v)))}},C=c.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=g.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var S,p=this._data,A=p.words,T=p.sigBytes,k=this.blockSize,O=k*4,N=T/O;v?N=a.ceil(N):N=a.max((N|0)-this._minBufferSize,0);var I=N*k,w=a.min(I*4,T);if(I){for(var R=0;R<I;R+=k)this._doProcessBlock(A,R);S=A.splice(0,I),p.sigBytes-=w}return new y.init(S,w)},clone:function(){var v=f.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0});c.Hasher=C.extend({cfg:f.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this},finalize:function(v){v&&this._append(v);var S=this._doFinalize();return S},blockSize:16,_createHelper:function(v){return function(S,p){return new v.init(p).finalize(S)}},_createHmacHelper:function(v){return function(S,p){return new E.HMAC.init(v,p).finalize(S)}}});var E=d.algo={};return d}(Math);return n})}(Hn)),Hn.exports}var jn={exports:{}},Tr;function fn(){return Tr||(Tr=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,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,f){this.high=c,this.low=f}}),d.WordArray=s.extend({init:function(c,f){c=this.words=c||[],f!=a?this.sigBytes=f:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,f=c.length,y=[],u=0;u<f;u++){var h=c[u];y.push(h.high),y.push(h.low)}return l.create(y,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),f=c.words=this.words.slice(0),y=f.length,u=0;u<y;u++)f[u]=f[u].clone();return c}})}(),n})}(jn)),jn.exports}var Wn={exports:{}},Br;function zs(){return Br||(Br=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,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,f=[],y=0;y<c;y++)f[y>>>2]|=d[y]<<24-y%4*8;s.call(this,f,c)}else s.apply(this,arguments)};l.prototype=i}}(),n.lib.WordArray})}(Wn)),Wn.exports}var Un={exports:{}},Er;function Ms(){return Er||(Er=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,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,f=d.sigBytes,y=[],u=0;u<f;u+=2){var h=c[u>>>2]>>>16-u%4*8&65535;y.push(String.fromCharCode(h))}return y.join("")},parse:function(d){for(var c=d.length,f=[],y=0;y<c;y++)f[y>>>1]|=d.charCodeAt(y)<<16-y%2*16;return i.create(f,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,f=d.sigBytes,y=[],u=0;u<f;u+=2){var h=l(c[u>>>2]>>>16-u%4*8&65535);y.push(String.fromCharCode(h))}return y.join("")},parse:function(d){for(var c=d.length,f=[],y=0;y<c;y++)f[y>>>1]|=l(d.charCodeAt(y)<<16-y%2*16);return i.create(f,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(Un)),Un.exports}var Gn={exports:{}},Dr;function Mt(){return Dr||(Dr=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,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,f=d.sigBytes,y=this._map;d.clamp();for(var u=[],h=0;h<f;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,g=c[h+1>>>2]>>>24-(h+1)%4*8&255,C=c[h+2>>>2]>>>24-(h+2)%4*8&255,E=m<<16|g<<8|C,v=0;v<4&&h+v*.75<f;v++)u.push(y.charAt(E>>>6*(3-v)&63));var S=y.charAt(64);if(S)for(;u.length%4;)u.push(S);return u.join("")},parse:function(d){var c=d.length,f=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var u=0;u<f.length;u++)y[f.charCodeAt(u)]=u}var h=f.charAt(64);if(h){var m=d.indexOf(h);m!==-1&&(c=m)}return l(d,c,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,f){for(var y=[],u=0,h=0;h<c;h++)if(h%4){var m=f[d.charCodeAt(h-1)]<<h%4*2,g=f[d.charCodeAt(h)]>>>6-h%4*2,C=m|g;y[u>>>2]|=C<<24-u%4*8,u++}return i.create(y,u)}}(),n.enc.Base64})}(Gn)),Gn.exports}var $n={exports:{}},Ir;function Ps(){return Ir||(Ir=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var f=d.words,y=d.sigBytes,u=c?this._safe_map:this._map;d.clamp();for(var h=[],m=0;m<y;m+=3)for(var g=f[m>>>2]>>>24-m%4*8&255,C=f[m+1>>>2]>>>24-(m+1)%4*8&255,E=f[m+2>>>2]>>>24-(m+2)%4*8&255,v=g<<16|C<<8|E,S=0;S<4&&m+S*.75<y;S++)h.push(u.charAt(v>>>6*(3-S)&63));var p=u.charAt(64);if(p)for(;h.length%4;)h.push(p);return h.join("")},parse:function(d,c=!0){var f=d.length,y=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h<y.length;h++)u[y.charCodeAt(h)]=h}var m=y.charAt(64);if(m){var g=d.indexOf(m);g!==-1&&(f=g)}return l(d,f,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,f){for(var y=[],u=0,h=0;h<c;h++)if(h%4){var m=f[d.charCodeAt(h-1)]<<h%4*2,g=f[d.charCodeAt(h)]>>>6-h%4*2,C=m|g;y[u>>>2]|=C<<24-u%4*8,u++}return i.create(y,u)}}(),n.enc.Base64url})}($n)),$n.exports}var Kn={exports:{}},Rr;function Pt(){return Rr||(Rr=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=a.abs(a.sin(g+1))*4294967296|0})();var f=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,C){for(var E=0;E<16;E++){var v=C+E,S=g[v];g[v]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var p=this._hash.words,A=g[C+0],T=g[C+1],k=g[C+2],O=g[C+3],N=g[C+4],I=g[C+5],w=g[C+6],R=g[C+7],x=g[C+8],B=g[C+9],b=g[C+10],D=g[C+11],F=g[C+12],q=g[C+13],H=g[C+14],G=g[C+15],z=p[0],P=p[1],M=p[2],_=p[3];z=y(z,P,M,_,A,7,c[0]),_=y(_,z,P,M,T,12,c[1]),M=y(M,_,z,P,k,17,c[2]),P=y(P,M,_,z,O,22,c[3]),z=y(z,P,M,_,N,7,c[4]),_=y(_,z,P,M,I,12,c[5]),M=y(M,_,z,P,w,17,c[6]),P=y(P,M,_,z,R,22,c[7]),z=y(z,P,M,_,x,7,c[8]),_=y(_,z,P,M,B,12,c[9]),M=y(M,_,z,P,b,17,c[10]),P=y(P,M,_,z,D,22,c[11]),z=y(z,P,M,_,F,7,c[12]),_=y(_,z,P,M,q,12,c[13]),M=y(M,_,z,P,H,17,c[14]),P=y(P,M,_,z,G,22,c[15]),z=u(z,P,M,_,T,5,c[16]),_=u(_,z,P,M,w,9,c[17]),M=u(M,_,z,P,D,14,c[18]),P=u(P,M,_,z,A,20,c[19]),z=u(z,P,M,_,I,5,c[20]),_=u(_,z,P,M,b,9,c[21]),M=u(M,_,z,P,G,14,c[22]),P=u(P,M,_,z,N,20,c[23]),z=u(z,P,M,_,B,5,c[24]),_=u(_,z,P,M,H,9,c[25]),M=u(M,_,z,P,O,14,c[26]),P=u(P,M,_,z,x,20,c[27]),z=u(z,P,M,_,q,5,c[28]),_=u(_,z,P,M,k,9,c[29]),M=u(M,_,z,P,R,14,c[30]),P=u(P,M,_,z,F,20,c[31]),z=h(z,P,M,_,I,4,c[32]),_=h(_,z,P,M,x,11,c[33]),M=h(M,_,z,P,D,16,c[34]),P=h(P,M,_,z,H,23,c[35]),z=h(z,P,M,_,T,4,c[36]),_=h(_,z,P,M,N,11,c[37]),M=h(M,_,z,P,R,16,c[38]),P=h(P,M,_,z,b,23,c[39]),z=h(z,P,M,_,q,4,c[40]),_=h(_,z,P,M,A,11,c[41]),M=h(M,_,z,P,O,16,c[42]),P=h(P,M,_,z,w,23,c[43]),z=h(z,P,M,_,B,4,c[44]),_=h(_,z,P,M,F,11,c[45]),M=h(M,_,z,P,G,16,c[46]),P=h(P,M,_,z,k,23,c[47]),z=m(z,P,M,_,A,6,c[48]),_=m(_,z,P,M,R,10,c[49]),M=m(M,_,z,P,H,15,c[50]),P=m(P,M,_,z,I,21,c[51]),z=m(z,P,M,_,F,6,c[52]),_=m(_,z,P,M,O,10,c[53]),M=m(M,_,z,P,b,15,c[54]),P=m(P,M,_,z,T,21,c[55]),z=m(z,P,M,_,x,6,c[56]),_=m(_,z,P,M,G,10,c[57]),M=m(M,_,z,P,w,15,c[58]),P=m(P,M,_,z,q,21,c[59]),z=m(z,P,M,_,N,6,c[60]),_=m(_,z,P,M,D,10,c[61]),M=m(M,_,z,P,k,15,c[62]),P=m(P,M,_,z,B,21,c[63]),p[0]=p[0]+z|0,p[1]=p[1]+P|0,p[2]=p[2]+M|0,p[3]=p[3]+_|0},_doFinalize:function(){var g=this._data,C=g.words,E=this._nDataBytes*8,v=g.sigBytes*8;C[v>>>5]|=128<<24-v%32;var S=a.floor(E/4294967296),p=E;C[(v+64>>>9<<4)+15]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,C[(v+64>>>9<<4)+14]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,g.sigBytes=(C.length+1)*4,this._process();for(var A=this._hash,T=A.words,k=0;k<4;k++){var O=T[k];T[k]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return A},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});function y(g,C,E,v,S,p,A){var T=g+(C&E|~C&v)+S+A;return(T<<p|T>>>32-p)+C}function u(g,C,E,v,S,p,A){var T=g+(C&v|E&~v)+S+A;return(T<<p|T>>>32-p)+C}function h(g,C,E,v,S,p,A){var T=g+(C^E^v)+S+A;return(T<<p|T>>>32-p)+C}function m(g,C,E,v,S,p,A){var T=g+(E^(C|~v))+S+A;return(T<<p|T>>>32-p)+C}r.MD5=l._createHelper(f),r.HmacMD5=l._createHmacHelper(f)}(Math),n.MD5})}(Kn)),Kn.exports}var Zn={exports:{}},Or;function Yn(){return Or||(Or=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,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(f,y){for(var u=this._hash.words,h=u[0],m=u[1],g=u[2],C=u[3],E=u[4],v=0;v<80;v++){if(v<16)d[v]=f[y+v]|0;else{var S=d[v-3]^d[v-8]^d[v-14]^d[v-16];d[v]=S<<1|S>>>31}var p=(h<<5|h>>>27)+E+d[v];v<20?p+=(m&g|~m&C)+1518500249:v<40?p+=(m^g^C)+1859775393:v<60?p+=(m&g|m&C|g&C)-1894007588:p+=(m^g^C)-899497514,E=C,C=g,g=m<<30|m>>>2,m=h,h=p}u[0]=u[0]+h|0,u[1]=u[1]+m|0,u[2]=u[2]+g|0,u[3]=u[3]+C|0,u[4]=u[4]+E|0},_doFinalize:function(){var f=this._data,y=f.words,u=this._nDataBytes*8,h=f.sigBytes*8;return y[h>>>5]|=128<<24-h%32,y[(h+64>>>9<<4)+14]=Math.floor(u/4294967296),y[(h+64>>>9<<4)+15]=u,f.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}(Zn)),Zn.exports}var Qn={exports:{}},_r;function Lr(){return _r||(_r=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],f=[];(function(){function h(E){for(var v=a.sqrt(E),S=2;S<=v;S++)if(!(E%S))return!1;return!0}function m(E){return(E-(E|0))*4294967296|0}for(var g=2,C=0;C<64;)h(g)&&(C<8&&(c[C]=m(a.pow(g,1/2))),f[C]=m(a.pow(g,1/3)),C++),g++})();var y=[],u=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(h,m){for(var g=this._hash.words,C=g[0],E=g[1],v=g[2],S=g[3],p=g[4],A=g[5],T=g[6],k=g[7],O=0;O<64;O++){if(O<16)y[O]=h[m+O]|0;else{var N=y[O-15],I=(N<<25|N>>>7)^(N<<14|N>>>18)^N>>>3,w=y[O-2],R=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;y[O]=I+y[O-7]+R+y[O-16]}var x=p&A^~p&T,B=C&E^C&v^E&v,b=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),D=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),F=k+D+x+f[O]+y[O],q=b+B;k=T,T=A,A=p,p=S+F|0,S=v,v=E,E=C,C=F+q|0}g[0]=g[0]+C|0,g[1]=g[1]+E|0,g[2]=g[2]+v|0,g[3]=g[3]+S|0,g[4]=g[4]+p|0,g[5]=g[5]+A|0,g[6]=g[6]+T|0,g[7]=g[7]+k|0},_doFinalize:function(){var h=this._data,m=h.words,g=this._nDataBytes*8,C=h.sigBytes*8;return m[C>>>5]|=128<<24-C%32,m[(C+64>>>9<<4)+14]=a.floor(g/4294967296),m[(C+64>>>9<<4)+15]=g,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA256=l._createHelper(u),r.HmacSHA256=l._createHmacHelper(u)}(Math),n.SHA256})}(Qn)),Qn.exports}var Jn={exports:{}},Nr;function qs(){return Nr||(Nr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Lr())})(de,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 zr(){return Fr||(Fr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),fn())})(de,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 f(){return l.create.apply(l,arguments)}var y=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],u=[];(function(){for(var m=0;m<80;m++)u[m]=f()})();var h=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,g){for(var C=this._hash.words,E=C[0],v=C[1],S=C[2],p=C[3],A=C[4],T=C[5],k=C[6],O=C[7],N=E.high,I=E.low,w=v.high,R=v.low,x=S.high,B=S.low,b=p.high,D=p.low,F=A.high,q=A.low,H=T.high,G=T.low,z=k.high,P=k.low,M=O.high,_=O.low,L=N,V=I,Z=w,U=R,ae=x,Y=B,ie=b,re=D,Q=F,X=q,te=H,fe=G,be=z,we=P,$e=M,Pe=_,_e=0;_e<80;_e++){var Ee,He,ze=u[_e];if(_e<16)He=ze.high=m[g+_e*2]|0,Ee=ze.low=m[g+_e*2+1]|0;else{var Ke=u[_e-15],We=Ke.high,je=Ke.low,ut=(We>>>1|je<<31)^(We>>>8|je<<24)^We>>>7,tt=(je>>>1|We<<31)^(je>>>8|We<<24)^(je>>>7|We<<25),nt=u[_e-2],j=nt.high,K=nt.low,J=(j>>>19|K<<13)^(j<<3|K>>>29)^j>>>6,oe=(K>>>19|j<<13)^(K<<3|j>>>29)^(K>>>6|j<<26),le=u[_e-7],ne=le.high,ee=le.low,ue=u[_e-16],ge=ue.high,ye=ue.low;Ee=tt+ee,He=ut+ne+(Ee>>>0<tt>>>0?1:0),Ee=Ee+oe,He=He+J+(Ee>>>0<oe>>>0?1:0),Ee=Ee+ye,He=He+ge+(Ee>>>0<ye>>>0?1:0),ze.high=He,ze.low=Ee}var Ne=Q&te^~Q&be,Ye=X&fe^~X&we,xt=L&Z^L&ae^Z&ae,Ot=V&U^V&Y^U&Y,wn=(L>>>28|V<<4)^(L<<30|V>>>2)^(L<<25|V>>>7),Qe=(V>>>28|L<<4)^(V<<30|L>>>2)^(V<<25|L>>>7),_t=(Q>>>14|X<<18)^(Q>>>18|X<<14)^(Q<<23|X>>>9),Zt=(X>>>14|Q<<18)^(X>>>18|Q<<14)^(X<<23|Q>>>9),An=y[_e],Iu=An.high,Zl=An.low,ot=Pe+Zt,Bt=$e+_t+(ot>>>0<Pe>>>0?1:0),ot=ot+Ye,Bt=Bt+Ne+(ot>>>0<Ye>>>0?1:0),ot=ot+Zl,Bt=Bt+Iu+(ot>>>0<Zl>>>0?1:0),ot=ot+Ee,Bt=Bt+He+(ot>>>0<Ee>>>0?1:0),Yl=Qe+Ot,Ru=wn+xt+(Yl>>>0<Qe>>>0?1:0);$e=be,Pe=we,be=te,we=fe,te=Q,fe=X,X=re+ot|0,Q=ie+Bt+(X>>>0<re>>>0?1:0)|0,ie=ae,re=Y,ae=Z,Y=U,Z=L,U=V,V=ot+Yl|0,L=Bt+Ru+(V>>>0<ot>>>0?1:0)|0}I=E.low=I+V,E.high=N+L+(I>>>0<V>>>0?1:0),R=v.low=R+U,v.high=w+Z+(R>>>0<U>>>0?1:0),B=S.low=B+Y,S.high=x+ae+(B>>>0<Y>>>0?1:0),D=p.low=D+re,p.high=b+ie+(D>>>0<re>>>0?1:0),q=A.low=q+X,A.high=F+Q+(q>>>0<X>>>0?1:0),G=T.low=G+fe,T.high=H+te+(G>>>0<fe>>>0?1:0),P=k.low=P+we,k.high=z+be+(P>>>0<we>>>0?1:0),_=O.low=_+Pe,O.high=M+$e+(_>>>0<Pe>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,C=this._nDataBytes*8,E=m.sigBytes*8;g[E>>>5]|=128<<24-E%32,g[(E+128>>>10<<5)+30]=Math.floor(C/4294967296),g[(E+128>>>10<<5)+31]=C,m.sigBytes=g.length*4,this._process();var v=this._hash.toX32();return v},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=i._createHelper(h),a.HmacSHA512=i._createHmacHelper(h)}(),n.SHA512})}(Xn)),Xn.exports}var eo={exports:{}},Mr;function Vs(){return Mr||(Mr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),fn(),zr())})(de,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 f=d._doFinalize.call(this);return f.sigBytes-=16,f}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(eo)),eo.exports}var to={exports:{}},Pr;function Hs(){return Pr||(Pr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),fn())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,f=r.algo,y=[],u=[],h=[];(function(){for(var C=1,E=0,v=0;v<24;v++){y[C+5*E]=(v+1)*(v+2)/2%64;var S=E%5,p=(2*C+3*E)%5;C=S,E=p}for(var C=0;C<5;C++)for(var E=0;E<5;E++)u[C+5*E]=E+(2*C+3*E)%5*5;for(var A=1,T=0;T<24;T++){for(var k=0,O=0,N=0;N<7;N++){if(A&1){var I=(1<<N)-1;I<32?O^=1<<I:k^=1<<I-32}A&128?A=A<<1^113:A<<=1}h[T]=c.create(k,O)}})();var m=[];(function(){for(var C=0;C<25;C++)m[C]=c.create()})();var g=f.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var C=this._state=[],E=0;E<25;E++)C[E]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(C,E){for(var v=this._state,S=this.blockSize/2,p=0;p<S;p++){var A=C[E+2*p],T=C[E+2*p+1];A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var k=v[p];k.high^=T,k.low^=A}for(var O=0;O<24;O++){for(var N=0;N<5;N++){for(var I=0,w=0,R=0;R<5;R++){var k=v[N+5*R];I^=k.high,w^=k.low}var x=m[N];x.high=I,x.low=w}for(var N=0;N<5;N++)for(var B=m[(N+4)%5],b=m[(N+1)%5],D=b.high,F=b.low,I=B.high^(D<<1|F>>>31),w=B.low^(F<<1|D>>>31),R=0;R<5;R++){var k=v[N+5*R];k.high^=I,k.low^=w}for(var q=1;q<25;q++){var I,w,k=v[q],H=k.high,G=k.low,z=y[q];z<32?(I=H<<z|G>>>32-z,w=G<<z|H>>>32-z):(I=G<<z-32|H>>>64-z,w=H<<z-32|G>>>64-z);var P=m[u[q]];P.high=I,P.low=w}var M=m[0],_=v[0];M.high=_.high,M.low=_.low;for(var N=0;N<5;N++)for(var R=0;R<5;R++){var q=N+5*R,k=v[q],L=m[q],V=m[(N+1)%5+5*R],Z=m[(N+2)%5+5*R];k.high=L.high^~V.high&Z.high,k.low=L.low^~V.low&Z.low}var k=v[0],U=h[O];k.high^=U.high,k.low^=U.low}},_doFinalize:function(){var C=this._data,E=C.words;this._nDataBytes*8;var v=C.sigBytes*8,S=this.blockSize*32;E[v>>>5]|=1<<24-v%32,E[(a.ceil((v+1)/S)*S>>>5)-1]|=128,C.sigBytes=E.length*4,this._process();for(var p=this._state,A=this.cfg.outputLength/8,T=A/8,k=[],O=0;O<T;O++){var N=p[O],I=N.high,w=N.low;I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,k.push(w),k.push(I)}return new s.init(k,A)},clone:function(){for(var C=l.clone.call(this),E=C._state=this._state.slice(0),v=0;v<25;v++)E[v]=E[v].clone();return C}});r.SHA3=l._createHelper(g),r.HmacSHA3=l._createHmacHelper(g)}(Math),n.SHA3})}(to)),to.exports}var no={exports:{}},qr;function js(){return qr||(qr=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,function(n){/** @preserve
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ns(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 os(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 as(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 rs(e,o){if(e==null)return{};var n=is(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 is(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,u=r.twoToneColor,y=r.onClick,f=rs(r,X0),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":"",h=c;h===void 0&&y&&(h=-1,f.tabindex=h);var S=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,D=rr(u),b=es(D,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(Ln,{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=J0,Nt.setTwoToneColor=sr;const fr=Nt;var ls={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 ss=ls;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){cs(e,r,n[r])})}return e}function cs(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:ss}),null)};Fn.displayName="CloseOutlined",Fn.inheritAttrs=!1;const ds=Fn;var fs={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 us=fs;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){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}var zn=function(o,n){var a=hr({},o,n.attrs);return t.createVNode(fr,hr({},a,{icon:us}),null)};zn.displayName="LoadingOutlined",zn.inheritAttrs=!1;const gs=zn,ms=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ce.Spin},setup(){return{indicator:t.h(gs,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Gu="",me=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n},ys={class:"spin-wrapper"};function xs(e,o,n,a,r,i){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",ys,[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(ms,[["render",xs]]),ps=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ce.Skeleton}});function bs(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=me(ps,[["render",bs]]);(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 vs=Object.defineProperty,gr=Object.getOwnPropertySymbols,Ss=Object.prototype.hasOwnProperty,Cs=Object.prototype.propertyIsEnumerable,mr=(e,o,n)=>o in e?vs(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,yr=(e,o)=>{for(var n in o||(o={}))Ss.call(o,n)&&mr(e,n,o[n]);if(gr)for(var n of gr(o))Cs.call(o,n)&&mr(e,n,o[n]);return e},ws=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n};const As=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),u=t.ref(0),y=t.ref(0),f=t.ref(!1),g=t.ref(!1),m=t.ref(0),h=t.ref(null),S=t.ref("200px"),D=t.ref(!1),b=t.ref(null),v=t.ref(null),p=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,u.value=v.value.clientHeight;const k=Math.ceil(u.value/y.value);return n.value=isFinite(k)?k: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 k=Math.ceil(d.value/c.value);return n.value=isFinite(k)?k: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,(k,I)=>{k!==I&&o(k?"onResume":"onPause")});const T=()=>{e.pauseOnHover&&(o("onPause"),f.value=!0)},E=()=>{e.pauseOnHover&&(o("onResume"),f.value=!1)},_=()=>{e.pauseOnClick&&(o("onPause"),g.value=!0)},N=()=>{e.pauseOnClick&&(o("onResume"),g.value=!1)},B=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),A=t.computed(()=>e.pauseOnHover&&(f.value||g.value)||!e.pauseOnHover&&B.value==="paused"?"paused":"running"),R=t.computed(()=>e.pauseOnHover&&f.value||e.pauseOnClick&&g.value||!e.pauseOnHover&&B.value==="paused"?"paused":"running"),C=t.computed(()=>{const k={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${A.value}`,"--pauseOnClick":`${R.value}`,"--pauseAnimation":`${B.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}`},I={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(I["--orientation"]="scrollY"),yr(yr({},k),I)}),O=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 w(),p()),D.value=!0};return t.onMounted(async()=>{x(),h.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(h.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(h.value)}),{ready:D,contentWidth:c,containerWidth:d,contentHeight:y,containerHeight:u,loopCounter:m,loopInterval:h,mouseOverMarquee:f,mouseDownMarquee:g,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:b,marqueeOverlayContainer:v,componentKey:i,showGradient:O,cloneAmount:n,ForcesUpdate:p,checkForClone:w,setupMarquee:x,getCurrentStyle:C,hoverStarted:T,hoverEnded:E,mouseDown:_,mouseUp:N}}}),ks={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},Ts={class:"marquee",ref:"marqueeContent"},Bs={key:1,"aria-hidden":!0,class:"marquee"};function Es(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",ks,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",Ts,[t.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(t.openBlock(),t.createElementBlock("div",Bs,[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 Ds=ws(As,[["render",Es]]);const Rs=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Ds},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 Is(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 Mn=me(Rs,[["render",Is]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const pe=(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},Te={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},ve=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=ve(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"],ke=(e,o=[])=>{const n=_e.without(Os,...o);return t.computed(()=>_e.pick(e,n))},Vn="EVENT_BUS",Pe="GLOBAL_CONFIG",Ee="GLOBAL_MODEL",Me="REQUEST_MODEL",xr="GLOBAL_TOKEN",tn="REFRESH_PAGE",pr="MODAL_MODEL",vt="LOADED_DATA",$e=18,br="ygt",vr=((Gl=window==null?void 0:window.config)==null?void 0:Gl.indicatorURL)||"";(Ul=window==null?void 0:window.config)!=null&&Ul.uploadPath;const Sr=(($l=window==null?void 0:window.config)==null?void 0:$l.routerBaseURL)||"./",_s=((Kl=window==null?void 0:window.config)==null?void 0:Kl.erdURL)||"",Cr=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],Le=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject(Vn,{onEvent:(r,i)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},De=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)}})}},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 u=e[c],y=u[n]||"",f=u[a]||"",g=u[r]||"";if(i.has(g)){const m=i.get(g);m.push({name:y,value:f,...u}),i.set(g,m)}else i.set(g,[{name:y,value:f,...u}])}const l=[],d=[];for(const[c,u]of i)if(d.push({name:c,data:u}),u!=null&&u.length)if(l.length)for(const y of u)l.includes(y.name)||l.push(y.name);else l.push(...u.map(y=>y.name));return{dimensions:l,dataset:d}};var fe=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 Ls(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 Ns(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 Fs=Ls(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var kr;function xe(){return kr||(kr=1,function(e,o){(function(n,a){e.exports=a()})(fe,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 fe<"u"&&fe.crypto&&(i=fe.crypto),!i&&typeof Ns=="function")try{i=Fs}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={},u=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=u.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,w=this.sigBytes,T=b.sigBytes;if(this.clamp(),w%4)for(var E=0;E<T;E++){var _=p[E>>>2]>>>24-E%4*8&255;v[w+E>>>2]|=_<<24-(w+E)%4*8}else for(var N=0;N<T;N+=4)v[w+N>>>2]=p[N>>>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=u.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,w=[],T=0;T<p;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,p=[],w=0;w<v;w+=2)p[w>>>3]|=parseInt(b.substr(w,2),16)<<24-w%8*4;return new y.init(p,v/2)}},m=f.Latin1={stringify:function(b){for(var v=b.words,p=b.sigBytes,w=[],T=0;T<p;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,p=[],w=0;w<v;w++)p[w>>>2]|=(b.charCodeAt(w)&255)<<24-w%4*8;return new y.init(p,v)}},h=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=u.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=h.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var v,p=this._data,w=p.words,T=p.sigBytes,E=this.blockSize,_=E*4,N=T/_;b?N=a.ceil(N):N=a.max((N|0)-this._minBufferSize,0);var B=N*E,A=a.min(B*4,T);if(B){for(var R=0;R<B;R+=E)this._doProcessBlock(w,R);v=w.splice(0,B),p.sigBytes-=A}return new y.init(v,A)},clone:function(){var b=u.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=S.extend({cfg:u.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 D.HMAC.init(b,p).finalize(v)}}});var D=d.algo={};return d}(Math);return n})}(Hn)),Hn.exports}var jn={exports:{}},Tr;function fn(){return Tr||(Tr=1,function(e,o){(function(n,a){e.exports=a(xe())})(fe,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,u){this.high=c,this.low=u}}),d.WordArray=s.extend({init:function(c,u){c=this.words=c||[],u!=a?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,y=[],f=0;f<u;f++){var 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),u=c.words=this.words.slice(0),y=u.length,f=0;f<y;f++)u[f]=u[f].clone();return c}})}(),n})}(jn)),jn.exports}var Wn={exports:{}},Br;function zs(){return Br||(Br=1,function(e,o){(function(n,a){e.exports=a(xe())})(fe,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,u=[],y=0;y<c;y++)u[y>>>2]|=d[y]<<24-y%4*8;s.call(this,u,c)}else s.apply(this,arguments)};l.prototype=i}}(),n.lib.WordArray})}(Wn)),Wn.exports}var Gn={exports:{}},Er;function Ms(){return Er||(Er=1,function(e,o){(function(n,a){e.exports=a(xe())})(fe,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,u=d.sigBytes,y=[],f=0;f<u;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,u=[],y=0;y<c;y++)u[y>>>1]|=d.charCodeAt(y)<<16-y%2*16;return i.create(u,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,u=d.sigBytes,y=[],f=0;f<u;f+=2){var 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,u=[],y=0;y<c;y++)u[y>>>1]|=l(d.charCodeAt(y)<<16-y%2*16);return i.create(u,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(Gn)),Gn.exports}var Un={exports:{}},Dr;function Mt(){return Dr||(Dr=1,function(e,o){(function(n,a){e.exports=a(xe())})(fe,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,u=d.sigBytes,y=this._map;d.clamp();for(var f=[],g=0;g<u;g+=3)for(var m=c[g>>>2]>>>24-g%4*8&255,h=c[g+1>>>2]>>>24-(g+1)%4*8&255,S=c[g+2>>>2]>>>24-(g+2)%4*8&255,D=m<<16|h<<8|S,b=0;b<4&&g+b*.75<u;b++)f.push(y.charAt(D>>>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,u=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var f=0;f<u.length;f++)y[u.charCodeAt(f)]=f}var g=u.charAt(64);if(g){var m=d.indexOf(g);m!==-1&&(c=m)}return l(d,c,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,u){for(var y=[],f=0,g=0;g<c;g++)if(g%4){var m=u[d.charCodeAt(g-1)]<<g%4*2,h=u[d.charCodeAt(g)]>>>6-g%4*2,S=m|h;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 Ps(){return Rr||(Rr=1,function(e,o){(function(n,a){e.exports=a(xe())})(fe,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var u=d.words,y=d.sigBytes,f=c?this._safe_map:this._map;d.clamp();for(var g=[],m=0;m<y;m+=3)for(var h=u[m>>>2]>>>24-m%4*8&255,S=u[m+1>>>2]>>>24-(m+1)%4*8&255,D=u[m+2>>>2]>>>24-(m+2)%4*8&255,b=h<<16|S<<8|D,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 u=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 h=d.indexOf(m);h!==-1&&(u=h)}return l(d,u,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,u){for(var y=[],f=0,g=0;g<c;g++)if(g%4){var m=u[d.charCodeAt(g-1)]<<g%4*2,h=u[d.charCodeAt(g)]>>>6-g%4*2,S=m|h;y[f>>>2]|=S<<24-f%4*8,f++}return i.create(y,f)}}(),n.enc.Base64url})}($n)),$n.exports}var Kn={exports:{}},Ir;function Pt(){return Ir||(Ir=1,function(e,o){(function(n,a){e.exports=a(xe())})(fe,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=a.abs(a.sin(h+1))*4294967296|0})();var u=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,S){for(var D=0;D<16;D++){var b=S+D,v=h[b];h[b]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var p=this._hash.words,w=h[S+0],T=h[S+1],E=h[S+2],_=h[S+3],N=h[S+4],B=h[S+5],A=h[S+6],R=h[S+7],C=h[S+8],O=h[S+9],x=h[S+10],k=h[S+11],I=h[S+12],P=h[S+13],q=h[S+14],U=h[S+15],F=p[0],M=p[1],z=p[2],L=p[3];F=y(F,M,z,L,w,7,c[0]),L=y(L,F,M,z,T,12,c[1]),z=y(z,L,F,M,E,17,c[2]),M=y(M,z,L,F,_,22,c[3]),F=y(F,M,z,L,N,7,c[4]),L=y(L,F,M,z,B,12,c[5]),z=y(z,L,F,M,A,17,c[6]),M=y(M,z,L,F,R,22,c[7]),F=y(F,M,z,L,C,7,c[8]),L=y(L,F,M,z,O,12,c[9]),z=y(z,L,F,M,x,17,c[10]),M=y(M,z,L,F,k,22,c[11]),F=y(F,M,z,L,I,7,c[12]),L=y(L,F,M,z,P,12,c[13]),z=y(z,L,F,M,q,17,c[14]),M=y(M,z,L,F,U,22,c[15]),F=f(F,M,z,L,T,5,c[16]),L=f(L,F,M,z,A,9,c[17]),z=f(z,L,F,M,k,14,c[18]),M=f(M,z,L,F,w,20,c[19]),F=f(F,M,z,L,B,5,c[20]),L=f(L,F,M,z,x,9,c[21]),z=f(z,L,F,M,U,14,c[22]),M=f(M,z,L,F,N,20,c[23]),F=f(F,M,z,L,O,5,c[24]),L=f(L,F,M,z,q,9,c[25]),z=f(z,L,F,M,_,14,c[26]),M=f(M,z,L,F,C,20,c[27]),F=f(F,M,z,L,P,5,c[28]),L=f(L,F,M,z,E,9,c[29]),z=f(z,L,F,M,R,14,c[30]),M=f(M,z,L,F,I,20,c[31]),F=g(F,M,z,L,B,4,c[32]),L=g(L,F,M,z,C,11,c[33]),z=g(z,L,F,M,k,16,c[34]),M=g(M,z,L,F,q,23,c[35]),F=g(F,M,z,L,T,4,c[36]),L=g(L,F,M,z,N,11,c[37]),z=g(z,L,F,M,R,16,c[38]),M=g(M,z,L,F,x,23,c[39]),F=g(F,M,z,L,P,4,c[40]),L=g(L,F,M,z,w,11,c[41]),z=g(z,L,F,M,_,16,c[42]),M=g(M,z,L,F,A,23,c[43]),F=g(F,M,z,L,O,4,c[44]),L=g(L,F,M,z,I,11,c[45]),z=g(z,L,F,M,U,16,c[46]),M=g(M,z,L,F,E,23,c[47]),F=m(F,M,z,L,w,6,c[48]),L=m(L,F,M,z,R,10,c[49]),z=m(z,L,F,M,q,15,c[50]),M=m(M,z,L,F,B,21,c[51]),F=m(F,M,z,L,I,6,c[52]),L=m(L,F,M,z,_,10,c[53]),z=m(z,L,F,M,x,15,c[54]),M=m(M,z,L,F,T,21,c[55]),F=m(F,M,z,L,C,6,c[56]),L=m(L,F,M,z,U,10,c[57]),z=m(z,L,F,M,A,15,c[58]),M=m(M,z,L,F,P,21,c[59]),F=m(F,M,z,L,N,6,c[60]),L=m(L,F,M,z,k,10,c[61]),z=m(z,L,F,M,E,15,c[62]),M=m(M,z,L,F,O,21,c[63]),p[0]=p[0]+F|0,p[1]=p[1]+M|0,p[2]=p[2]+z|0,p[3]=p[3]+L|0},_doFinalize:function(){var h=this._data,S=h.words,D=this._nDataBytes*8,b=h.sigBytes*8;S[b>>>5]|=128<<24-b%32;var v=a.floor(D/4294967296),p=D;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,h.sigBytes=(S.length+1)*4,this._process();for(var w=this._hash,T=w.words,E=0;E<4;E++){var _=T[E];T[E]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return w},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});function y(h,S,D,b,v,p,w){var T=h+(S&D|~S&b)+v+w;return(T<<p|T>>>32-p)+S}function f(h,S,D,b,v,p,w){var T=h+(S&b|D&~b)+v+w;return(T<<p|T>>>32-p)+S}function g(h,S,D,b,v,p,w){var T=h+(S^D^b)+v+w;return(T<<p|T>>>32-p)+S}function m(h,S,D,b,v,p,w){var T=h+(D^(S|~b))+v+w;return(T<<p|T>>>32-p)+S}r.MD5=l._createHelper(u),r.HmacMD5=l._createHmacHelper(u)}(Math),n.MD5})}(Kn)),Kn.exports}var Zn={exports:{}},Or;function Yn(){return Or||(Or=1,function(e,o){(function(n,a){e.exports=a(xe())})(fe,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(u,y){for(var f=this._hash.words,g=f[0],m=f[1],h=f[2],S=f[3],D=f[4],b=0;b<80;b++){if(b<16)d[b]=u[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)+D+d[b];b<20?p+=(m&h|~m&S)+1518500249:b<40?p+=(m^h^S)+1859775393:b<60?p+=(m&h|m&S|h&S)-1894007588:p+=(m^h^S)-899497514,D=S,S=h,h=m<<30|m>>>2,m=g,g=p}f[0]=f[0]+g|0,f[1]=f[1]+m|0,f[2]=f[2]+h|0,f[3]=f[3]+S|0,f[4]=f[4]+D|0},_doFinalize:function(){var u=this._data,y=u.words,f=this._nDataBytes*8,g=u.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,u.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var u=s.clone.call(this);return u._hash=this._hash.clone(),u}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}(Zn)),Zn.exports}var Qn={exports:{}},_r;function Lr(){return _r||(_r=1,function(e,o){(function(n,a){e.exports=a(xe())})(fe,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],u=[];(function(){function g(D){for(var b=a.sqrt(D),v=2;v<=b;v++)if(!(D%v))return!1;return!0}function m(D){return(D-(D|0))*4294967296|0}for(var h=2,S=0;S<64;)g(h)&&(S<8&&(c[S]=m(a.pow(h,1/2))),u[S]=m(a.pow(h,1/3)),S++),h++})();var y=[],f=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(g,m){for(var h=this._hash.words,S=h[0],D=h[1],b=h[2],v=h[3],p=h[4],w=h[5],T=h[6],E=h[7],_=0;_<64;_++){if(_<16)y[_]=g[m+_]|0;else{var N=y[_-15],B=(N<<25|N>>>7)^(N<<14|N>>>18)^N>>>3,A=y[_-2],R=(A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10;y[_]=B+y[_-7]+R+y[_-16]}var C=p&w^~p&T,O=S&D^S&b^D&b,x=(S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22),k=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),I=E+k+C+u[_]+y[_],P=x+O;E=T,T=w,w=p,p=v+I|0,v=b,b=D,D=S,S=I+P|0}h[0]=h[0]+S|0,h[1]=h[1]+D|0,h[2]=h[2]+b|0,h[3]=h[3]+v|0,h[4]=h[4]+p|0,h[5]=h[5]+w|0,h[6]=h[6]+T|0,h[7]=h[7]+E|0},_doFinalize:function(){var g=this._data,m=g.words,h=this._nDataBytes*8,S=g.sigBytes*8;return m[S>>>5]|=128<<24-S%32,m[(S+64>>>9<<4)+14]=a.floor(h/4294967296),m[(S+64>>>9<<4)+15]=h,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 qs(){return Nr||(Nr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Lr())})(fe,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 zr(){return Fr||(Fr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),fn())})(fe,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 u(){return l.create.apply(l,arguments)}var y=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],f=[];(function(){for(var m=0;m<80;m++)f[m]=u()})();var 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,h){for(var S=this._hash.words,D=S[0],b=S[1],v=S[2],p=S[3],w=S[4],T=S[5],E=S[6],_=S[7],N=D.high,B=D.low,A=b.high,R=b.low,C=v.high,O=v.low,x=p.high,k=p.low,I=w.high,P=w.low,q=T.high,U=T.low,F=E.high,M=E.low,z=_.high,L=_.low,V=N,j=B,X=A,H=R,ee=C,ne=O,ie=x,oe=k,Z=I,K=P,J=q,le=U,be=F,Se=M,Oe=z,Ie=L,Be=0;Be<80;Be++){var Ce,Ve,Ue=f[Be];if(Be<16)Ve=Ue.high=m[h+Be*2]|0,Ce=Ue.low=m[h+Be*2+1]|0;else{var He=f[Be-15],je=He.high,Ge=He.low,ut=(je>>>1|Ge<<31)^(je>>>8|Ge<<24)^je>>>7,tt=(Ge>>>1|je<<31)^(Ge>>>8|je<<24)^(Ge>>>7|je<<25),nt=f[Be-2],W=nt.high,Y=nt.low,Q=(W>>>19|Y<<13)^(W<<3|Y>>>29)^W>>>6,re=(Y>>>19|W<<13)^(Y<<3|W>>>29)^(Y>>>6|W<<26),se=f[Be-7],ae=se.high,te=se.low,ue=f[Be-16],ge=ue.high,ye=ue.low;Ce=tt+te,Ve=ut+ae+(Ce>>>0<tt>>>0?1:0),Ce=Ce+re,Ve=Ve+Q+(Ce>>>0<re>>>0?1:0),Ce=Ce+ye,Ve=Ve+ge+(Ce>>>0<ye>>>0?1:0),Ue.high=Ve,Ue.low=Ce}var ze=Z&J^~Z&be,Ye=K&le^~K&Se,xt=V&X^V&ee^X&ee,Ot=j&H^j&ne^H&ne,wn=(V>>>28|j<<4)^(V<<30|j>>>2)^(V<<25|j>>>7),Qe=(j>>>28|V<<4)^(j<<30|V>>>2)^(j<<25|V>>>7),_t=(Z>>>14|K<<18)^(Z>>>18|K<<14)^(Z<<23|K>>>9),Zt=(K>>>14|Z<<18)^(K>>>18|Z<<14)^(K<<23|Z>>>9),An=y[Be],Ru=An.high,Zl=An.low,ot=Ie+Zt,Bt=Oe+_t+(ot>>>0<Ie>>>0?1:0),ot=ot+Ye,Bt=Bt+ze+(ot>>>0<Ye>>>0?1:0),ot=ot+Zl,Bt=Bt+Ru+(ot>>>0<Zl>>>0?1:0),ot=ot+Ce,Bt=Bt+Ve+(ot>>>0<Ce>>>0?1:0),Yl=Qe+Ot,Iu=wn+xt+(Yl>>>0<Qe>>>0?1:0);Oe=be,Ie=Se,be=J,Se=le,J=Z,le=K,K=oe+ot|0,Z=ie+Bt+(K>>>0<oe>>>0?1:0)|0,ie=ee,oe=ne,ee=X,ne=H,X=V,H=j,j=ot+Yl|0,V=Bt+Iu+(j>>>0<ot>>>0?1:0)|0}B=D.low=B+j,D.high=N+V+(B>>>0<j>>>0?1:0),R=b.low=R+H,b.high=A+X+(R>>>0<H>>>0?1:0),O=v.low=O+ne,v.high=C+ee+(O>>>0<ne>>>0?1:0),k=p.low=k+oe,p.high=x+ie+(k>>>0<oe>>>0?1:0),P=w.low=P+K,w.high=I+Z+(P>>>0<K>>>0?1:0),U=T.low=U+le,T.high=q+J+(U>>>0<le>>>0?1:0),M=E.low=M+Se,E.high=F+be+(M>>>0<Se>>>0?1:0),L=_.low=L+Ie,_.high=z+Oe+(L>>>0<Ie>>>0?1:0)},_doFinalize:function(){var m=this._data,h=m.words,S=this._nDataBytes*8,D=m.sigBytes*8;h[D>>>5]|=128<<24-D%32,h[(D+128>>>10<<5)+30]=Math.floor(S/4294967296),h[(D+128>>>10<<5)+31]=S,m.sigBytes=h.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:{}},Mr;function Vs(){return Mr||(Mr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),fn(),zr())})(fe,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 u=d._doFinalize.call(this);return u.sigBytes-=16,u}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(eo)),eo.exports}var to={exports:{}},Pr;function Hs(){return Pr||(Pr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),fn())})(fe,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,u=r.algo,y=[],f=[],g=[];(function(){for(var S=1,D=0,b=0;b<24;b++){y[S+5*D]=(b+1)*(b+2)/2%64;var v=D%5,p=(2*S+3*D)%5;S=v,D=p}for(var S=0;S<5;S++)for(var D=0;D<5;D++)f[S+5*D]=D+(2*S+3*D)%5*5;for(var w=1,T=0;T<24;T++){for(var E=0,_=0,N=0;N<7;N++){if(w&1){var B=(1<<N)-1;B<32?_^=1<<B:E^=1<<B-32}w&128?w=w<<1^113:w<<=1}g[T]=c.create(E,_)}})();var m=[];(function(){for(var S=0;S<25;S++)m[S]=c.create()})();var h=u.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var S=this._state=[],D=0;D<25;D++)S[D]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(S,D){for(var b=this._state,v=this.blockSize/2,p=0;p<v;p++){var w=S[D+2*p],T=S[D+2*p+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[p];E.high^=T,E.low^=w}for(var _=0;_<24;_++){for(var N=0;N<5;N++){for(var B=0,A=0,R=0;R<5;R++){var E=b[N+5*R];B^=E.high,A^=E.low}var C=m[N];C.high=B,C.low=A}for(var N=0;N<5;N++)for(var O=m[(N+4)%5],x=m[(N+1)%5],k=x.high,I=x.low,B=O.high^(k<<1|I>>>31),A=O.low^(I<<1|k>>>31),R=0;R<5;R++){var E=b[N+5*R];E.high^=B,E.low^=A}for(var P=1;P<25;P++){var B,A,E=b[P],q=E.high,U=E.low,F=y[P];F<32?(B=q<<F|U>>>32-F,A=U<<F|q>>>32-F):(B=U<<F-32|q>>>64-F,A=q<<F-32|U>>>64-F);var M=m[f[P]];M.high=B,M.low=A}var z=m[0],L=b[0];z.high=L.high,z.low=L.low;for(var N=0;N<5;N++)for(var R=0;R<5;R++){var P=N+5*R,E=b[P],V=m[P],j=m[(N+1)%5+5*R],X=m[(N+2)%5+5*R];E.high=V.high^~j.high&X.high,E.low=V.low^~j.low&X.low}var E=b[0],H=g[_];E.high^=H.high,E.low^=H.low}},_doFinalize:function(){var S=this._data,D=S.words;this._nDataBytes*8;var b=S.sigBytes*8,v=this.blockSize*32;D[b>>>5]|=1<<24-b%32,D[(a.ceil((b+1)/v)*v>>>5)-1]|=128,S.sigBytes=D.length*4,this._process();for(var p=this._state,w=this.cfg.outputLength/8,T=w/8,E=[],_=0;_<T;_++){var N=p[_],B=N.high,A=N.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,E.push(A),E.push(B)}return new s.init(E,w)},clone:function(){for(var S=l.clone.call(this),D=S._state=this._state.slice(0),b=0;b<25;b++)D[b]=D[b].clone();return S}});r.SHA3=l._createHelper(h),r.HmacSHA3=l._createHmacHelper(h)}(Math),n.SHA3})}(to)),to.exports}var no={exports:{}},qr;function js(){return qr||(qr=1,function(e,o){(function(n,a){e.exports=a(xe())})(fe,function(n){/** @preserve
|
|
59
59
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
60
60
|
|
|
61
61
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -64,58 +64,58 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64
64
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
65
65
|
|
|
66
66
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
67
|
-
*/return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=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]),u=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]),h=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),g=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,k){for(var O=0;O<16;O++){var N=k+O,I=T[N];T[N]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var w=this._hash.words,R=h.words,x=m.words,B=c.words,b=f.words,D=y.words,F=u.words,q,H,G,z,P,M,_,L,V,Z;M=q=w[0],_=H=w[1],L=G=w[2],V=z=w[3],Z=P=w[4];for(var U,O=0;O<80;O+=1)U=q+T[k+B[O]]|0,O<16?U+=C(H,G,z)+R[0]:O<32?U+=E(H,G,z)+R[1]:O<48?U+=v(H,G,z)+R[2]:O<64?U+=S(H,G,z)+R[3]:U+=p(H,G,z)+R[4],U=U|0,U=A(U,D[O]),U=U+P|0,q=P,P=z,z=A(G,10),G=H,H=U,U=M+T[k+b[O]]|0,O<16?U+=p(_,L,V)+x[0]:O<32?U+=S(_,L,V)+x[1]:O<48?U+=v(_,L,V)+x[2]:O<64?U+=E(_,L,V)+x[3]:U+=C(_,L,V)+x[4],U=U|0,U=A(U,F[O]),U=U+Z|0,M=Z,Z=V,V=A(L,10),L=_,_=U;U=w[1]+G+V|0,w[1]=w[2]+z+Z|0,w[2]=w[3]+P+M|0,w[3]=w[4]+q+_|0,w[4]=w[0]+H+L|0,w[0]=U},_doFinalize:function(){var T=this._data,k=T.words,O=this._nDataBytes*8,N=T.sigBytes*8;k[N>>>5]|=128<<24-N%32,k[(N+64>>>9<<4)+14]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,T.sigBytes=(k.length+1)*4,this._process();for(var I=this._hash,w=I.words,R=0;R<5;R++){var x=w[R];w[R]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}return I},clone:function(){var T=l.clone.call(this);return T._hash=this._hash.clone(),T}});function C(T,k,O){return T^k^O}function E(T,k,O){return T&k|~T&O}function v(T,k,O){return(T|~k)^O}function S(T,k,O){return T&O|k&~O}function p(T,k,O){return T^(k|~O)}function A(T,k){return T<<k|T>>>32-k}r.RIPEMD160=l._createHelper(g),r.HmacRIPEMD160=l._createHmacHelper(g)}(),n.RIPEMD160})}(no)),no.exports}var oo={exports:{}},Vr;function ao(){return Vr||(Vr=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,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,f){c=this._hasher=new c.init,typeof f=="string"&&(f=l.parse(f));var y=c.blockSize,u=y*4;f.sigBytes>u&&(f=c.finalize(f)),f.clamp();for(var h=this._oKey=f.clone(),m=this._iKey=f.clone(),g=h.words,C=m.words,E=0;E<y;E++)g[E]^=1549556828,C[E]^=909522486;h.sigBytes=m.sigBytes=u,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 f=this._hasher,y=f.finalize(c);f.reset();var u=f.finalize(this._oKey.clone().concat(y));return u}})})()})}(oo)),oo.exports}var ro={exports:{}},Hr;function Ws(){return Hr||(Hr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Yn(),ao())})(de,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,f=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,u){for(var h=this.cfg,m=c.create(h.hasher,y),g=s.create(),C=s.create([1]),E=g.words,v=C.words,S=h.keySize,p=h.iterations;E.length<S;){var A=m.update(u).finalize(C);m.reset();for(var T=A.words,k=T.length,O=A,N=1;N<p;N++){O=m.finalize(O),m.reset();for(var I=O.words,w=0;w<k;w++)T[w]^=I[w]}g.concat(A),v[0]++}return g.sigBytes=S*4,g}});a.PBKDF2=function(y,u,h){return f.create(h).compute(y,u)}}(),n.PBKDF2})}(ro)),ro.exports}var io={exports:{}},jr;function Dt(){return jr||(jr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Yn(),ao())})(de,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(f){this.cfg=this.cfg.extend(f)},compute:function(f,y){for(var u,h=this.cfg,m=h.hasher.create(),g=s.create(),C=g.words,E=h.keySize,v=h.iterations;C.length<E;){u&&m.update(u),u=m.update(f).finalize(y),m.reset();for(var S=1;S<v;S++)u=m.finalize(u),m.reset();g.concat(u)}return g.sigBytes=E*4,g}});a.EvpKDF=function(f,y,u){return c.create(u).compute(f,y)}}(),n.EvpKDF})}(io)),io.exports}var lo={exports:{}},Wr;function qe(){return Wr||(Wr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Dt())})(de,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 f=c.Base64,y=r.algo,u=y.EvpKDF,h=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(I,w){return this.create(this._ENC_XFORM_MODE,I,w)},createDecryptor:function(I,w){return this.create(this._DEC_XFORM_MODE,I,w)},init:function(I,w,R){this.cfg=this.cfg.extend(R),this._xformMode=I,this._key=w,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var w=this._doFinalize();return w},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function I(w){return typeof w=="string"?N:T}return function(w){return{encrypt:function(R,x,B){return I(x).encrypt(w,R,x,B)},decrypt:function(R,x,B){return I(x).decrypt(w,R,x,B)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1});var m=r.mode={},g=i.BlockCipherMode=s.extend({createEncryptor:function(I,w){return this.Encryptor.create(I,w)},createDecryptor:function(I,w){return this.Decryptor.create(I,w)},init:function(I,w){this._cipher=I,this._iv=w}}),C=m.CBC=function(){var I=g.extend();I.Encryptor=I.extend({processBlock:function(R,x){var B=this._cipher,b=B.blockSize;w.call(this,R,x,b),B.encryptBlock(R,x),this._prevBlock=R.slice(x,x+b)}}),I.Decryptor=I.extend({processBlock:function(R,x){var B=this._cipher,b=B.blockSize,D=R.slice(x,x+b);B.decryptBlock(R,x),w.call(this,R,x,b),this._prevBlock=D}});function w(R,x,B){var b,D=this._iv;D?(b=D,this._iv=a):b=this._prevBlock;for(var F=0;F<B;F++)R[x+F]^=b[F]}return I}(),E=r.pad={},v=E.Pkcs7={pad:function(I,w){for(var R=w*4,x=R-I.sigBytes%R,B=x<<24|x<<16|x<<8|x,b=[],D=0;D<x;D+=4)b.push(B);var F=l.create(b,x);I.concat(F)},unpad:function(I){var w=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=w}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:C,padding:v}),reset:function(){var I;h.reset.call(this);var w=this.cfg,R=w.iv,x=w.mode;this._xformMode==this._ENC_XFORM_MODE?I=x.createEncryptor:(I=x.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,R&&R.words):(this._mode=I.call(x,this,R&&R.words),this._mode.__creator=I)},_doProcessBlock:function(I,w){this._mode.processBlock(I,w)},_doFinalize:function(){var I,w=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(w.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),w.unpad(I)),I},blockSize:128/32});var S=i.CipherParams=s.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),p=r.format={},A=p.OpenSSL={stringify:function(I){var w,R=I.ciphertext,x=I.salt;return x?w=l.create([1398893684,1701076831]).concat(x).concat(R):w=R,w.toString(f)},parse:function(I){var w,R=f.parse(I),x=R.words;return x[0]==1398893684&&x[1]==1701076831&&(w=l.create(x.slice(2,4)),x.splice(0,4),R.sigBytes-=16),S.create({ciphertext:R,salt:w})}},T=i.SerializableCipher=s.extend({cfg:s.extend({format:A}),encrypt:function(I,w,R,x){x=this.cfg.extend(x);var B=I.createEncryptor(R,x),b=B.finalize(w),D=B.cfg;return S.create({ciphertext:b,key:R,iv:D.iv,algorithm:I,mode:D.mode,padding:D.padding,blockSize:I.blockSize,formatter:x.format})},decrypt:function(I,w,R,x){x=this.cfg.extend(x),w=this._parse(w,x.format);var B=I.createDecryptor(R,x).finalize(w.ciphertext);return B},_parse:function(I,w){return typeof I=="string"?w.parse(I,this):I}}),k=r.kdf={},O=k.OpenSSL={execute:function(I,w,R,x){x||(x=l.random(64/8));var B=u.create({keySize:w+R}).compute(I,x),b=l.create(B.words.slice(w),R*4);return B.sigBytes=w*4,S.create({key:B,iv:b,salt:x})}},N=i.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:O}),encrypt:function(I,w,R,x){x=this.cfg.extend(x);var B=x.kdf.execute(R,I.keySize,I.ivSize);x.iv=B.iv;var b=T.encrypt.call(this,I,w,B.key,x);return b.mixIn(B),b},decrypt:function(I,w,R,x){x=this.cfg.extend(x),w=this._parse(w,x.format);var B=x.kdf.execute(R,I.keySize,I.ivSize,w.salt);x.iv=B.iv;var b=T.decrypt.call(this,I,w,B.key,x);return b}})}()})}(lo)),lo.exports}var so={exports:{}},Ur;function Us(){return Ur||(Ur=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,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,f=this._iv;f?(c=f.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:{}},Gr;function Gs(){return Gr||(Gr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,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,f=this._counter;c&&(f=this._counter=c.slice(0),this._iv=void 0);var y=f.slice(0);l.encryptBlock(y,0),f[d-1]=f[d-1]+1|0;for(var u=0;u<d;u++)i[s+u]^=y[u]}});return a.Decryptor=r,a}(),n.mode.CTR})}(co)),co.exports}var fo={exports:{}},$r;function $s(){return $r||($r=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,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]),u=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),y=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),g=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),h=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,E){for(var _=0;_<16;_++){var N=E+_,B=T[N];T[N]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var A=this._hash.words,R=g.words,C=m.words,O=c.words,x=u.words,k=y.words,I=f.words,P,q,U,F,M,z,L,V,j,X;z=P=A[0],L=q=A[1],V=U=A[2],j=F=A[3],X=M=A[4];for(var H,_=0;_<80;_+=1)H=P+T[E+O[_]]|0,_<16?H+=S(q,U,F)+R[0]:_<32?H+=D(q,U,F)+R[1]:_<48?H+=b(q,U,F)+R[2]:_<64?H+=v(q,U,F)+R[3]:H+=p(q,U,F)+R[4],H=H|0,H=w(H,k[_]),H=H+M|0,P=M,M=F,F=w(U,10),U=q,q=H,H=z+T[E+x[_]]|0,_<16?H+=p(L,V,j)+C[0]:_<32?H+=v(L,V,j)+C[1]:_<48?H+=b(L,V,j)+C[2]:_<64?H+=D(L,V,j)+C[3]:H+=S(L,V,j)+C[4],H=H|0,H=w(H,I[_]),H=H+X|0,z=X,X=j,j=w(V,10),V=L,L=H;H=A[1]+U+j|0,A[1]=A[2]+F+X|0,A[2]=A[3]+M+z|0,A[3]=A[4]+P+L|0,A[4]=A[0]+q+V|0,A[0]=H},_doFinalize:function(){var T=this._data,E=T.words,_=this._nDataBytes*8,N=T.sigBytes*8;E[N>>>5]|=128<<24-N%32,E[(N+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,T.sigBytes=(E.length+1)*4,this._process();for(var B=this._hash,A=B.words,R=0;R<5;R++){var C=A[R];A[R]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return B},clone:function(){var T=l.clone.call(this);return T._hash=this._hash.clone(),T}});function S(T,E,_){return T^E^_}function D(T,E,_){return T&E|~T&_}function b(T,E,_){return(T|~E)^_}function v(T,E,_){return T&_|E&~_}function p(T,E,_){return T^(E|~_)}function w(T,E){return T<<E|T>>>32-E}r.RIPEMD160=l._createHelper(h),r.HmacRIPEMD160=l._createHmacHelper(h)}(),n.RIPEMD160})}(no)),no.exports}var oo={exports:{}},Vr;function ao(){return Vr||(Vr=1,function(e,o){(function(n,a){e.exports=a(xe())})(fe,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,u){c=this._hasher=new c.init,typeof u=="string"&&(u=l.parse(u));var y=c.blockSize,f=y*4;u.sigBytes>f&&(u=c.finalize(u)),u.clamp();for(var g=this._oKey=u.clone(),m=this._iKey=u.clone(),h=g.words,S=m.words,D=0;D<y;D++)h[D]^=1549556828,S[D]^=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 u=this._hasher,y=u.finalize(c);u.reset();var f=u.finalize(this._oKey.clone().concat(y));return f}})})()})}(oo)),oo.exports}var ro={exports:{}},Hr;function Ws(){return Hr||(Hr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Yn(),ao())})(fe,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,u=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),h=s.create(),S=s.create([1]),D=h.words,b=S.words,v=g.keySize,p=g.iterations;D.length<v;){var w=m.update(f).finalize(S);m.reset();for(var T=w.words,E=T.length,_=w,N=1;N<p;N++){_=m.finalize(_),m.reset();for(var B=_.words,A=0;A<E;A++)T[A]^=B[A]}h.concat(w),b[0]++}return h.sigBytes=v*4,h}});a.PBKDF2=function(y,f,g){return u.create(g).compute(y,f)}}(),n.PBKDF2})}(ro)),ro.exports}var io={exports:{}},jr;function Dt(){return jr||(jr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Yn(),ao())})(fe,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(u){this.cfg=this.cfg.extend(u)},compute:function(u,y){for(var f,g=this.cfg,m=g.hasher.create(),h=s.create(),S=h.words,D=g.keySize,b=g.iterations;S.length<D;){f&&m.update(f),f=m.update(u).finalize(y),m.reset();for(var v=1;v<b;v++)f=m.finalize(f),m.reset();h.concat(f)}return h.sigBytes=D*4,h}});a.EvpKDF=function(u,y,f){return c.create(f).compute(u,y)}}(),n.EvpKDF})}(io)),io.exports}var lo={exports:{}},Wr;function We(){return Wr||(Wr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Dt())})(fe,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 u=c.Base64,y=r.algo,f=y.EvpKDF,g=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(B,A){return this.create(this._ENC_XFORM_MODE,B,A)},createDecryptor:function(B,A){return this.create(this._DEC_XFORM_MODE,B,A)},init:function(B,A,R){this.cfg=this.cfg.extend(R),this._xformMode=B,this._key=A,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(A){return typeof A=="string"?N:T}return function(A){return{encrypt:function(R,C,O){return B(C).encrypt(A,R,C,O)},decrypt:function(R,C,O){return B(C).decrypt(A,R,C,O)}}}}()});i.StreamCipher=g.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var m=r.mode={},h=i.BlockCipherMode=s.extend({createEncryptor:function(B,A){return this.Encryptor.create(B,A)},createDecryptor:function(B,A){return this.Decryptor.create(B,A)},init:function(B,A){this._cipher=B,this._iv=A}}),S=m.CBC=function(){var B=h.extend();B.Encryptor=B.extend({processBlock:function(R,C){var O=this._cipher,x=O.blockSize;A.call(this,R,C,x),O.encryptBlock(R,C),this._prevBlock=R.slice(C,C+x)}}),B.Decryptor=B.extend({processBlock:function(R,C){var O=this._cipher,x=O.blockSize,k=R.slice(C,C+x);O.decryptBlock(R,C),A.call(this,R,C,x),this._prevBlock=k}});function A(R,C,O){var x,k=this._iv;k?(x=k,this._iv=a):x=this._prevBlock;for(var I=0;I<O;I++)R[C+I]^=x[I]}return B}(),D=r.pad={},b=D.Pkcs7={pad:function(B,A){for(var R=A*4,C=R-B.sigBytes%R,O=C<<24|C<<16|C<<8|C,x=[],k=0;k<C;k+=4)x.push(O);var I=l.create(x,C);B.concat(I)},unpad:function(B){var A=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=A}};i.BlockCipher=g.extend({cfg:g.cfg.extend({mode:S,padding:b}),reset:function(){var B;g.reset.call(this);var A=this.cfg,R=A.iv,C=A.mode;this._xformMode==this._ENC_XFORM_MODE?B=C.createEncryptor:(B=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,R&&R.words):(this._mode=B.call(C,this,R&&R.words),this._mode.__creator=B)},_doProcessBlock:function(B,A){this._mode.processBlock(B,A)},_doFinalize:function(){var B,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),A.unpad(B)),B},blockSize:128/32});var v=i.CipherParams=s.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),p=r.format={},w=p.OpenSSL={stringify:function(B){var A,R=B.ciphertext,C=B.salt;return C?A=l.create([1398893684,1701076831]).concat(C).concat(R):A=R,A.toString(u)},parse:function(B){var A,R=u.parse(B),C=R.words;return C[0]==1398893684&&C[1]==1701076831&&(A=l.create(C.slice(2,4)),C.splice(0,4),R.sigBytes-=16),v.create({ciphertext:R,salt:A})}},T=i.SerializableCipher=s.extend({cfg:s.extend({format:w}),encrypt:function(B,A,R,C){C=this.cfg.extend(C);var O=B.createEncryptor(R,C),x=O.finalize(A),k=O.cfg;return v.create({ciphertext:x,key:R,iv:k.iv,algorithm:B,mode:k.mode,padding:k.padding,blockSize:B.blockSize,formatter:C.format})},decrypt:function(B,A,R,C){C=this.cfg.extend(C),A=this._parse(A,C.format);var O=B.createDecryptor(R,C).finalize(A.ciphertext);return O},_parse:function(B,A){return typeof B=="string"?A.parse(B,this):B}}),E=r.kdf={},_=E.OpenSSL={execute:function(B,A,R,C){C||(C=l.random(64/8));var O=f.create({keySize:A+R}).compute(B,C),x=l.create(O.words.slice(A),R*4);return O.sigBytes=A*4,v.create({key:O,iv:x,salt:C})}},N=i.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:_}),encrypt:function(B,A,R,C){C=this.cfg.extend(C);var O=C.kdf.execute(R,B.keySize,B.ivSize);C.iv=O.iv;var x=T.encrypt.call(this,B,A,O.key,C);return x.mixIn(O),x},decrypt:function(B,A,R,C){C=this.cfg.extend(C),A=this._parse(A,C.format);var O=C.kdf.execute(R,B.keySize,B.ivSize,A.salt);C.iv=O.iv;var x=T.decrypt.call(this,B,A,O.key,C);return x}})}()})}(lo)),lo.exports}var so={exports:{}},Gr;function Gs(){return Gr||(Gr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),We())})(fe,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,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var y=0;y<l;y++)i[s+y]^=c[y]}return a}(),n.mode.CFB})}(so)),so.exports}var co={exports:{}},Ur;function Us(){return Ur||(Ur=1,function(e,o){(function(n,a,r){e.exports=a(xe(),We())})(fe,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,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var y=u.slice(0);l.encryptBlock(y,0),u[d-1]=u[d-1]+1|0;for(var f=0;f<d;f++)i[s+f]^=y[f]}});return a.Decryptor=r,a}(),n.mode.CTR})}(co)),co.exports}var fo={exports:{}},$r;function $s(){return $r||($r=1,function(e,o){(function(n,a,r){e.exports=a(xe(),We())})(fe,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,f=l&255;d===255?(d=0,c===255?(c=0,f===255?f=0:++f):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=f}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,f=c.blockSize,y=this._iv,u=this._counter;y&&(u=this._counter=y.slice(0),this._iv=void 0),i(u);var h=u.slice(0);c.encryptBlock(h,0);for(var m=0;m<f;m++)l[d+m]^=h[m]}});return a.Decryptor=s,a}(),n.mode.CTRGladman})}(fo)),fo.exports}var uo={exports:{}},Kr;function Ks(){return Kr||(Kr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,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,f=this._keystream;c&&(f=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(f,0);for(var y=0;y<d;y++)i[s+y]^=f[y]}});return a.Decryptor=r,a}(),n.mode.OFB})}(uo)),uo.exports}var ho={exports:{}},Zr;function Zs(){return Zr||(Zr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,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:{}},Yr;function Ys(){return Yr||(Yr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,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 Qs(){return Qr||(Qr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,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 Js(){return Jr||(Jr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,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 Xs(){return Xr||(Xr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,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 ec(){return ei||(ei=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(po)),po.exports}var bo={exports:{}},ti;function tc(){return ti||(ti=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,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(f){return f.ciphertext.toString(d)},parse:function(f){var y=d.parse(f);return s.create({ciphertext:y})}}}(),n.format.Hex})}(bo)),bo.exports}var vo={exports:{}},ni;function nc(){return ni||(ni=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Mt(),Pt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],f=[],y=[],u=[],h=[],m=[],g=[],C=[];(function(){for(var S=[],p=0;p<256;p++)p<128?S[p]=p<<1:S[p]=p<<1^283;for(var A=0,T=0,p=0;p<256;p++){var k=T^T<<1^T<<2^T<<3^T<<4;k=k>>>8^k&255^99,l[A]=k,d[k]=A;var O=S[A],N=S[O],I=S[N],w=S[k]*257^k*16843008;c[A]=w<<24|w>>>8,f[A]=w<<16|w>>>16,y[A]=w<<8|w>>>24,u[A]=w;var w=I*16843009^N*65537^O*257^A*16843008;h[k]=w<<24|w>>>8,m[k]=w<<16|w>>>16,g[k]=w<<8|w>>>24,C[k]=w,A?(A=O^S[S[S[I^O]]],T^=S[S[T]]):A=T=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],v=s.AES=i.extend({_doReset:function(){var S;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var p=this._keyPriorReset=this._key,A=p.words,T=p.sigBytes/4,k=this._nRounds=T+6,O=(k+1)*4,N=this._keySchedule=[],I=0;I<O;I++)I<T?N[I]=A[I]:(S=N[I-1],I%T?T>6&&I%T==4&&(S=l[S>>>24]<<24|l[S>>>16&255]<<16|l[S>>>8&255]<<8|l[S&255]):(S=S<<8|S>>>24,S=l[S>>>24]<<24|l[S>>>16&255]<<16|l[S>>>8&255]<<8|l[S&255],S^=E[I/T|0]<<24),N[I]=N[I-T]^S);for(var w=this._invKeySchedule=[],R=0;R<O;R++){var I=O-R;if(R%4)var S=N[I];else var S=N[I-4];R<4||I<=4?w[R]=S:w[R]=h[l[S>>>24]]^m[l[S>>>16&255]]^g[l[S>>>8&255]]^C[l[S&255]]}}},encryptBlock:function(S,p){this._doCryptBlock(S,p,this._keySchedule,c,f,y,u,l)},decryptBlock:function(S,p){var A=S[p+1];S[p+1]=S[p+3],S[p+3]=A,this._doCryptBlock(S,p,this._invKeySchedule,h,m,g,C,d);var A=S[p+1];S[p+1]=S[p+3],S[p+3]=A},_doCryptBlock:function(S,p,A,T,k,O,N,I){for(var w=this._nRounds,R=S[p]^A[0],x=S[p+1]^A[1],B=S[p+2]^A[2],b=S[p+3]^A[3],D=4,F=1;F<w;F++){var q=T[R>>>24]^k[x>>>16&255]^O[B>>>8&255]^N[b&255]^A[D++],H=T[x>>>24]^k[B>>>16&255]^O[b>>>8&255]^N[R&255]^A[D++],G=T[B>>>24]^k[b>>>16&255]^O[R>>>8&255]^N[x&255]^A[D++],z=T[b>>>24]^k[R>>>16&255]^O[x>>>8&255]^N[B&255]^A[D++];R=q,x=H,B=G,b=z}var q=(I[R>>>24]<<24|I[x>>>16&255]<<16|I[B>>>8&255]<<8|I[b&255])^A[D++],H=(I[x>>>24]<<24|I[B>>>16&255]<<16|I[b>>>8&255]<<8|I[R&255])^A[D++],G=(I[B>>>24]<<24|I[b>>>16&255]<<16|I[R>>>8&255]<<8|I[x&255])^A[D++],z=(I[b>>>24]<<24|I[R>>>16&255]<<16|I[x>>>8&255]<<8|I[B&255])^A[D++];S[p]=q,S[p+1]=H,S[p+2]=G,S[p+3]=z},keySize:256/32});a.AES=i._createHelper(v)}(),n.AES})}(vo)),vo.exports}var So={exports:{}},oi;function oc(){return oi||(oi=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Mt(),Pt(),Dt(),qe())})(de,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],f=[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}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=l.DES=s.extend({_doReset:function(){for(var E=this._key,v=E.words,S=[],p=0;p<56;p++){var A=d[p]-1;S[p]=v[A>>>5]>>>31-A%32&1}for(var T=this._subKeys=[],k=0;k<16;k++){for(var O=T[k]=[],N=f[k],p=0;p<24;p++)O[p/6|0]|=S[(c[p]-1+N)%28]<<31-p%6,O[4+(p/6|0)]|=S[28+(c[p+24]-1+N)%28]<<31-p%6;O[0]=O[0]<<1|O[0]>>>31;for(var p=1;p<7;p++)O[p]=O[p]>>>(p-1)*4+3;O[7]=O[7]<<5|O[7]>>>27}for(var I=this._invSubKeys=[],p=0;p<16;p++)I[p]=T[15-p]},encryptBlock:function(E,v){this._doCryptBlock(E,v,this._subKeys)},decryptBlock:function(E,v){this._doCryptBlock(E,v,this._invSubKeys)},_doCryptBlock:function(E,v,S){this._lBlock=E[v],this._rBlock=E[v+1],m.call(this,4,252645135),m.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),m.call(this,1,1431655765);for(var p=0;p<16;p++){for(var A=S[p],T=this._lBlock,k=this._rBlock,O=0,N=0;N<8;N++)O|=y[N][((k^A[N])&u[N])>>>0];this._lBlock=k,this._rBlock=T^O}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,m.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),E[v]=this._lBlock,E[v+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(E,v){var S=(this._lBlock>>>E^this._rBlock)&v;this._rBlock^=S,this._lBlock^=S<<E}function g(E,v){var S=(this._rBlock>>>E^this._lBlock)&v;this._lBlock^=S,this._rBlock^=S<<E}a.DES=s._createHelper(h);var C=l.TripleDES=s.extend({_doReset:function(){var E=this._key,v=E.words;if(v.length!==2&&v.length!==4&&v.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var S=v.slice(0,2),p=v.length<4?v.slice(0,2):v.slice(2,4),A=v.length<6?v.slice(0,2):v.slice(4,6);this._des1=h.createEncryptor(i.create(S)),this._des2=h.createEncryptor(i.create(p)),this._des3=h.createEncryptor(i.create(A))},encryptBlock:function(E,v){this._des1.encryptBlock(E,v),this._des2.decryptBlock(E,v),this._des3.encryptBlock(E,v)},decryptBlock:function(E,v){this._des3.decryptBlock(E,v),this._des2.encryptBlock(E,v),this._des1.decryptBlock(E,v)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(C)}(),n.TripleDES})}(So)),So.exports}var Co={exports:{}},ai;function ac(){return ai||(ai=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Mt(),Pt(),Dt(),qe())})(de,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 f=this._key,y=f.words,u=f.sigBytes,h=this._S=[],m=0;m<256;m++)h[m]=m;for(var m=0,g=0;m<256;m++){var C=m%u,E=y[C>>>2]>>>24-C%4*8&255;g=(g+h[m]+E)%256;var v=h[m];h[m]=h[g],h[g]=v}this._i=this._j=0},_doProcessBlock:function(f,y){f[y]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var f=this._S,y=this._i,u=this._j,h=0,m=0;m<4;m++){y=(y+1)%256,u=(u+f[y])%256;var g=f[y];f[y]=f[u],f[u]=g,h|=f[(f[y]+f[u])%256]<<24-m*8}return this._i=y,this._j=u,h}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 f=this.cfg.drop;f>0;f--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),n.RC4})}(Co)),Co.exports}var wo={exports:{}},ri;function rc(){return ri||(ri=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Mt(),Pt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],f=s.Rabbit=i.extend({_doReset:function(){for(var u=this._key.words,h=this.cfg.iv,m=0;m<4;m++)u[m]=(u[m]<<8|u[m]>>>24)&16711935|(u[m]<<24|u[m]>>>8)&4278255360;var g=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],C=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var m=0;m<4;m++)y.call(this);for(var m=0;m<8;m++)C[m]^=g[m+4&7];if(h){var E=h.words,v=E[0],S=E[1],p=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,A=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,T=p>>>16|A&4294901760,k=A<<16|p&65535;C[0]^=p,C[1]^=T,C[2]^=A,C[3]^=k,C[4]^=p,C[5]^=T,C[6]^=A,C[7]^=k;for(var m=0;m<4;m++)y.call(this)}},_doProcessBlock:function(u,h){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 g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,u[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,h=this._C,m=0;m<8;m++)d[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<d[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<d[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<d[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<d[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<d[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<d[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<d[6]>>>0?1:0)|0,this._b=h[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var g=u[m]+h[m],C=g&65535,E=g>>>16,v=((C*C>>>17)+C*E>>>15)+E*E,S=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=v^S}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(f)}(),n.Rabbit})}(wo)),wo.exports}var Ao={exports:{}},ii;function ic(){return ii||(ii=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Mt(),Pt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],f=s.RabbitLegacy=i.extend({_doReset:function(){var u=this._key.words,h=this.cfg.iv,m=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],g=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var C=0;C<4;C++)y.call(this);for(var C=0;C<8;C++)g[C]^=m[C+4&7];if(h){var E=h.words,v=E[0],S=E[1],p=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,A=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,T=p>>>16|A&4294901760,k=A<<16|p&65535;g[0]^=p,g[1]^=T,g[2]^=A,g[3]^=k,g[4]^=p,g[5]^=T,g[6]^=A,g[7]^=k;for(var C=0;C<4;C++)y.call(this)}},_doProcessBlock:function(u,h){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 g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,u[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,h=this._C,m=0;m<8;m++)d[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<d[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<d[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<d[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<d[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<d[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<d[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<d[6]>>>0?1:0)|0,this._b=h[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var g=u[m]+h[m],C=g&65535,E=g>>>16,v=((C*C>>>17)+C*E>>>15)+E*E,S=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=v^S}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(f)}(),n.RabbitLegacy})}(Ao)),Ao.exports}(function(e,o){(function(n,a,r){e.exports=a(xe(),fn(),zs(),Ms(),Mt(),Ps(),Pt(),Yn(),Lr(),qs(),zr(),Vs(),Hs(),js(),ao(),Ws(),Dt(),qe(),Us(),Gs(),$s(),Ks(),Zs(),Ys(),Qs(),Js(),Xs(),ec(),tc(),nc(),oc(),ac(),rc(),ic())})(de,function(n){return n})})(Ar);var lc=Ar.exports;const et=wr(lc);var sc="0123456789abcdefghijklmnopqrstuvwxyz";function mt(e){return sc.charAt(e)}function cc(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 dc(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 fc(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,uc={decode:function(e){var o;if(Vt===void 0){var n="0123456789ABCDEF",a=` \f
|
|
72
|
-
\r \u2028\u2029`;for(Vt={},o=0;o<16;++o)Vt[n.charAt(o)]=o;for(n=n.toLowerCase(),o=10;o<16;++o)Vt[n.charAt(o)]=o;for(o=0;o<a.length;++o)Vt[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=Vt[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}},
|
|
73
|
-
\r \u2028\u2029`;for(
|
|
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,u=l&255;d===255?(d=0,c===255?(c=0,u===255?u=0:++u):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=u}else l+=1<<24;return l}function 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,u=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<u;m++)l[d+m]^=g[m]}});return a.Decryptor=s,a}(),n.mode.CTRGladman})}(fo)),fo.exports}var uo={exports:{}},Kr;function Ks(){return Kr||(Kr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),We())})(fe,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,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(u,0);for(var y=0;y<d;y++)i[s+y]^=u[y]}});return a.Decryptor=r,a}(),n.mode.OFB})}(uo)),uo.exports}var ho={exports:{}},Zr;function Zs(){return Zr||(Zr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),We())})(fe,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:{}},Yr;function Ys(){return Yr||(Yr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),We())})(fe,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 Qs(){return Qr||(Qr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),We())})(fe,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 Js(){return Jr||(Jr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),We())})(fe,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 Xs(){return Xr||(Xr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),We())})(fe,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 ec(){return ei||(ei=1,function(e,o){(function(n,a,r){e.exports=a(xe(),We())})(fe,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(po)),po.exports}var bo={exports:{}},ti;function tc(){return ti||(ti=1,function(e,o){(function(n,a,r){e.exports=a(xe(),We())})(fe,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(u){return u.ciphertext.toString(d)},parse:function(u){var y=d.parse(u);return s.create({ciphertext:y})}}}(),n.format.Hex})}(bo)),bo.exports}var vo={exports:{}},ni;function nc(){return ni||(ni=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Mt(),Pt(),Dt(),We())})(fe,function(n){return function(){var a=n,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],u=[],y=[],f=[],g=[],m=[],h=[],S=[];(function(){for(var v=[],p=0;p<256;p++)p<128?v[p]=p<<1:v[p]=p<<1^283;for(var w=0,T=0,p=0;p<256;p++){var E=T^T<<1^T<<2^T<<3^T<<4;E=E>>>8^E&255^99,l[w]=E,d[E]=w;var _=v[w],N=v[_],B=v[N],A=v[E]*257^E*16843008;c[w]=A<<24|A>>>8,u[w]=A<<16|A>>>16,y[w]=A<<8|A>>>24,f[w]=A;var A=B*16843009^N*65537^_*257^w*16843008;g[E]=A<<24|A>>>8,m[E]=A<<16|A>>>16,h[E]=A<<8|A>>>24,S[E]=A,w?(w=_^v[v[v[B^_]]],T^=v[v[T]]):w=T=1}})();var D=[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,w=p.words,T=p.sigBytes/4,E=this._nRounds=T+6,_=(E+1)*4,N=this._keySchedule=[],B=0;B<_;B++)B<T?N[B]=w[B]:(v=N[B-1],B%T?T>6&&B%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^=D[B/T|0]<<24),N[B]=N[B-T]^v);for(var A=this._invKeySchedule=[],R=0;R<_;R++){var B=_-R;if(R%4)var v=N[B];else var v=N[B-4];R<4||B<=4?A[R]=v:A[R]=g[l[v>>>24]]^m[l[v>>>16&255]]^h[l[v>>>8&255]]^S[l[v&255]]}}},encryptBlock:function(v,p){this._doCryptBlock(v,p,this._keySchedule,c,u,y,f,l)},decryptBlock:function(v,p){var w=v[p+1];v[p+1]=v[p+3],v[p+3]=w,this._doCryptBlock(v,p,this._invKeySchedule,g,m,h,S,d);var w=v[p+1];v[p+1]=v[p+3],v[p+3]=w},_doCryptBlock:function(v,p,w,T,E,_,N,B){for(var A=this._nRounds,R=v[p]^w[0],C=v[p+1]^w[1],O=v[p+2]^w[2],x=v[p+3]^w[3],k=4,I=1;I<A;I++){var P=T[R>>>24]^E[C>>>16&255]^_[O>>>8&255]^N[x&255]^w[k++],q=T[C>>>24]^E[O>>>16&255]^_[x>>>8&255]^N[R&255]^w[k++],U=T[O>>>24]^E[x>>>16&255]^_[R>>>8&255]^N[C&255]^w[k++],F=T[x>>>24]^E[R>>>16&255]^_[C>>>8&255]^N[O&255]^w[k++];R=P,C=q,O=U,x=F}var P=(B[R>>>24]<<24|B[C>>>16&255]<<16|B[O>>>8&255]<<8|B[x&255])^w[k++],q=(B[C>>>24]<<24|B[O>>>16&255]<<16|B[x>>>8&255]<<8|B[R&255])^w[k++],U=(B[O>>>24]<<24|B[x>>>16&255]<<16|B[R>>>8&255]<<8|B[C&255])^w[k++],F=(B[x>>>24]<<24|B[R>>>16&255]<<16|B[C>>>8&255]<<8|B[O&255])^w[k++];v[p]=P,v[p+1]=q,v[p+2]=U,v[p+3]=F},keySize:256/32});a.AES=i._createHelper(b)}(),n.AES})}(vo)),vo.exports}var So={exports:{}},oi;function oc(){return oi||(oi=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Mt(),Pt(),Dt(),We())})(fe,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],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],y=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=l.DES=s.extend({_doReset:function(){for(var D=this._key,b=D.words,v=[],p=0;p<56;p++){var w=d[p]-1;v[p]=b[w>>>5]>>>31-w%32&1}for(var T=this._subKeys=[],E=0;E<16;E++){for(var _=T[E]=[],N=u[E],p=0;p<24;p++)_[p/6|0]|=v[(c[p]-1+N)%28]<<31-p%6,_[4+(p/6|0)]|=v[28+(c[p+24]-1+N)%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 B=this._invSubKeys=[],p=0;p<16;p++)B[p]=T[15-p]},encryptBlock:function(D,b){this._doCryptBlock(D,b,this._subKeys)},decryptBlock:function(D,b){this._doCryptBlock(D,b,this._invSubKeys)},_doCryptBlock:function(D,b,v){this._lBlock=D[b],this._rBlock=D[b+1],m.call(this,4,252645135),m.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),m.call(this,1,1431655765);for(var p=0;p<16;p++){for(var w=v[p],T=this._lBlock,E=this._rBlock,_=0,N=0;N<8;N++)_|=y[N][((E^w[N])&f[N])>>>0];this._lBlock=E,this._rBlock=T^_}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,m.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),D[b]=this._lBlock,D[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(D,b){var v=(this._lBlock>>>D^this._rBlock)&b;this._rBlock^=v,this._lBlock^=v<<D}function h(D,b){var v=(this._rBlock>>>D^this._lBlock)&b;this._lBlock^=v,this._rBlock^=v<<D}a.DES=s._createHelper(g);var S=l.TripleDES=s.extend({_doReset:function(){var D=this._key,b=D.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),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(p)),this._des3=g.createEncryptor(i.create(w))},encryptBlock:function(D,b){this._des1.encryptBlock(D,b),this._des2.decryptBlock(D,b),this._des3.encryptBlock(D,b)},decryptBlock:function(D,b){this._des3.decryptBlock(D,b),this._des2.encryptBlock(D,b),this._des1.decryptBlock(D,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 ac(){return ai||(ai=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Mt(),Pt(),Dt(),We())})(fe,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 u=this._key,y=u.words,f=u.sigBytes,g=this._S=[],m=0;m<256;m++)g[m]=m;for(var m=0,h=0;m<256;m++){var S=m%f,D=y[S>>>2]>>>24-S%4*8&255;h=(h+g[m]+D)%256;var b=g[m];g[m]=g[h],g[h]=b}this._i=this._j=0},_doProcessBlock:function(u,y){u[y]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var u=this._S,y=this._i,f=this._j,g=0,m=0;m<4;m++){y=(y+1)%256,f=(f+u[y])%256;var h=u[y];u[y]=u[f],u[f]=h,g|=u[(u[y]+u[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 u=this.cfg.drop;u>0;u--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),n.RC4})}(Co)),Co.exports}var wo={exports:{}},ri;function rc(){return ri||(ri=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Mt(),Pt(),Dt(),We())})(fe,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],u=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 h=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],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]^=h[m+4&7];if(g){var D=g.words,b=D[0],v=D[1],p=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,T=p>>>16|w&4294901760,E=w<<16|p&65535;S[0]^=p,S[1]^=T,S[2]^=w,S[3]^=E,S[4]^=p,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 h=0;h<4;h++)l[h]=(l[h]<<8|l[h]>>>24)&16711935|(l[h]<<24|l[h]>>>8)&4278255360,f[g+h]^=l[h]},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 h=f[m]+g[m],S=h&65535,D=h>>>16,b=((S*S>>>17)+S*D>>>15)+D*D,v=((h&4294901760)*h|0)+((h&65535)*h|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(u)}(),n.Rabbit})}(wo)),wo.exports}var Ao={exports:{}},ii;function ic(){return ii||(ii=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Mt(),Pt(),Dt(),We())})(fe,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],u=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],h=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var S=0;S<4;S++)y.call(this);for(var S=0;S<8;S++)h[S]^=m[S+4&7];if(g){var D=g.words,b=D[0],v=D[1],p=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,T=p>>>16|w&4294901760,E=w<<16|p&65535;h[0]^=p,h[1]^=T,h[2]^=w,h[3]^=E,h[4]^=p,h[5]^=T,h[6]^=w,h[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 h=0;h<4;h++)l[h]=(l[h]<<8|l[h]>>>24)&16711935|(l[h]<<24|l[h]>>>8)&4278255360,f[g+h]^=l[h]},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 h=f[m]+g[m],S=h&65535,D=h>>>16,b=((S*S>>>17)+S*D>>>15)+D*D,v=((h&4294901760)*h|0)+((h&65535)*h|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(u)}(),n.RabbitLegacy})}(Ao)),Ao.exports}(function(e,o){(function(n,a,r){e.exports=a(xe(),fn(),zs(),Ms(),Mt(),Ps(),Pt(),Yn(),Lr(),qs(),zr(),Vs(),Hs(),js(),ao(),Ws(),Dt(),We(),Gs(),Us(),$s(),Ks(),Zs(),Ys(),Qs(),Js(),Xs(),ec(),tc(),nc(),oc(),ac(),rc(),ic())})(fe,function(n){return n})})(Ar);var lc=Ar.exports;const et=wr(lc);var sc="0123456789abcdefghijklmnopqrstuvwxyz";function mt(e){return sc.charAt(e)}function cc(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 dc(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 fc(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,uc={decode:function(e){var o;if(Vt===void 0){var n="0123456789ABCDEF",a=` \f
|
|
72
|
+
\r \u2028\u2029`;for(Vt={},o=0;o<16;++o)Vt[n.charAt(o)]=o;for(n=n.toLowerCase(),o=10;o<16;++o)Vt[n.charAt(o)]=o;for(o=0;o<a.length;++o)Vt[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=Vt[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)}},Ht=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<Ht?n=0:(n=0|s/Ht,s-=n*Ht),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+=Ht,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+=(Ht+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*Ht+o[a];return n},e.prototype.simplify=function(){var o=this.buf;return o.length==1?o[0]:this},e}(),fi="…",hc=/^(\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)?)?$/,gc=/^(\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)+fi),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
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?hc:gc).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),
|
|
76
|
+
`,l="",d=o+1;d<n;++d){for(var c=this.get(d),u=d==n-1?r:0,y=7;y>=u;--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
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+=fi),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}(),mc=function(){function e(o,n,a,r,i){if(!(r instanceof ui))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 ui(n),i=e.decodeLength(n),s=n.pos,l=s-a.pos,d=null,c=function(){var y=[];if(i!==null){for(var u=s+i;n.pos<u;)y[y.length]=e.decode(n);if(n.pos!=u)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var h=e.decode(n);if(h.tag.isEOC())break;y[y.length]=h}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 f=0;f<d.length;++f)if(d[f].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{d=null}if(d===null){if(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,yc=0xdeadbeefcafe,hi=(yc&16777215)==15715070,Ge=[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],xc=(1<<26)/Ge[Ge.length-1],ce=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,cc,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+dc(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+=fc(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 bc(n):s=new mi(n);var l=[],d=3,c=r-1,f=(1<<r)-1;if(l[1]=s.convert(this),r>1){var y=he();for(s.sqrTo(l[1],y);d<=f;)l[d]=he(),s.mulTo(y,l[d-2],l[d]),d+=2}var u=o.t-1,h,m=!0,g=he(),C;for(a=mn(o[u])-1;u>=0;){for(a>=c?h=o[u]>>a-c&f:(h=(o[u]&(1<<a+1)-1)<<c-a,u>0&&(h|=o[u-1]>>this.DB+a-c)),d=r;!(h&1);)h>>=1,--d;if((a-=d)<0&&(a+=this.DB,--u),m)l[h].copyTo(i),m=!1;else{for(;d>1;)s.sqrTo(i,g),s.sqrTo(g,i),d-=2;d>0?s.sqrTo(i,g):(C=i,i=g,g=C),s.mulTo(g,l[h],i)}for(;u>=0&&!(o[u]&1<<a);)s.sqrTo(i,g),C=i,i=g,g=C,--a<0&&(a=this.DB-1,--u)}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 pc)},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]<=Ge[Ge.length-1]){for(n=0;n<Ge.length;++n)if(a[0]==Ge[n])return!0;return!1}if(a.isEven())return!1;for(n=1;n<Ge.length;){for(var r=Ge[n],i=n+1;i<Ge.length&&r<xc;)r*=Ge[i++];for(r=a.modInt(r);n<i;)if(r%Ge[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 f=s.t,y=s[f-1];if(y!=0){var u=y*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),h=this.FV/u,m=(1<<this.F1)/u,g=1<<this.F2,C=a.t,E=C-f,v=n??he();for(s.dlShiftTo(E,v),a.compareTo(v)>=0&&(a[a.t++]=1,a.subTo(v,a)),e.ONE.dlShiftTo(f,v),v.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--E>=0;){var S=a[--C]==y?this.DM:Math.floor(a[C]*h+(a[C-1]+g)*m);if((a[C]+=s.am(0,S,a,E,0,f))<S)for(s.dlShiftTo(E,v),a.subTo(v,a);a[C]<--S;)a.subTo(v,a)}n!=null&&(a.drShiftTo(f,n),l!=d&&e.ZERO.subTo(n,n)),a.t=f,a.clamp(),c>0&&a.rShiftTo(c,a),l<0&&e.ZERO.subTo(a,a)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var o=this[0];if(!(o&1))return 0;var n=o&3;return n=n*(2-(o&15)*n)&15,n=n*(2-(o&255)*n)&255,n=n*(2-((o&65535)*n&65535))&65535,n=n*(2-o*n%this.DV)%this.DV,n>0?this.DV-n:-n},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(o,n){if(o>4294967295||o<1)return e.ONE;var a=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>Ge.length&&(o=Ge.length);for(var i=he(),s=0;s<o;++s){i.fromInt(Ge[Math.floor(Math.random()*Ge.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}(),pc=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(ce.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}(),bc=function(){function e(o){this.m=o,this.r2=he(),this.q3=he(),ce.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 ce(null)}function Oe(e,o){return new ce(e,o)}var yi=typeof navigator<"u";yi&&hi&&navigator.appName=="Microsoft Internet Explorer"?(ce.prototype.am=function(o,n,a,r,i,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,f=this[o++]>>15,y=d*c+f*l;c=l*c+((y&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(y>>>15)+d*f+(i>>>30),a[r++]=c&1073741823}return i},St=30):yi&&hi&&navigator.appName!="Netscape"?(ce.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):(ce.prototype.am=function(o,n,a,r,i,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,f=this[o++]>>14,y=d*c+f*l;c=l*c+((y&16383)<<14)+a[r]+i,i=(c>>28)+(y>>14)+d*f,a[r++]=c&268435455}return i},St=28),ce.prototype.DB=St,ce.prototype.DM=(1<<St)-1,ce.prototype.DV=1<<St;var Bo=52;ce.prototype.FV=Math.pow(2,Bo),ce.prototype.F1=Bo-St,ce.prototype.F2=2*St-Bo;var gn=[],Wt,rt;for(Wt="0".charCodeAt(0),rt=0;rt<=9;++rt)gn[Wt++]=rt;for(Wt="a".charCodeAt(0),rt=10;rt<36;++rt)gn[Wt++]=rt;for(Wt="A".charCodeAt(0),rt=10;rt<36;++rt)gn[Wt++]=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}ce.ZERO=Ct(0),ce.ONE=Ct(1);var vc=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 Sc(){return new vc}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 Cc(){if(yn==null){for(yn=Sc();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]=Cc()},e}();function wc(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 Oe(i,16)}function Ac(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 ce(n)}var kc=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=Oe(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=Ac(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=Oe(o,16),this.e=parseInt(n,16),this.d=Oe(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=Oe(o,16),this.e=parseInt(n,16),this.d=Oe(a,16),this.p=Oe(r,16),this.q=Oe(i,16),this.dmp1=Oe(s,16),this.dmq1=Oe(l,16),this.coeff=Oe(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 ce(n,16);;){for(;this.p=new ce(o-r,1,a),!(this.p.subtract(ce.ONE).gcd(i).compareTo(ce.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ce(r,1,a),!(this.q.subtract(ce.ONE).gcd(i).compareTo(ce.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(ce.ONE),d=this.q.subtract(ce.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(ce.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=Oe(o,16),a=this.doPrivate(n);return a==null?null:Tc(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 ce(n,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var u=l.p;l.p=l.q,l.q=u}var h=l.p.subtract(ce.ONE),m=l.q.subtract(ce.ONE),g=h.multiply(m);g.gcd(s).compareTo(ce.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(g),l.dmp1=l.d.mod(h),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},f=function(){l.q=he(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(ce.ONE).gcda(s,function(u){u.compareTo(ce.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})},y=function(){l.p=he(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(ce.ONE).gcda(s,function(u){u.compareTo(ce.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(y,0)})})};setTimeout(y,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var r=Bc(a),i=r+n(o).toString(),s=wc(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=Oe(n,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Ec(s);return l==a(o).toString()},e}();function Tc(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 Bc(e){return vn[e]||""}function Ec(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}/*!
|
|
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 u=0;u<d.length;++u)if(d[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{d=null}if(d===null){if(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,yc=0xdeadbeefcafe,hi=(yc&16777215)==15715070,Ke=[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],xc=(1<<26)/Ke[Ke.length-1],de=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,cc,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+dc(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+=fc(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 bc(n):s=new mi(n);var l=[],d=3,c=r-1,u=(1<<r)-1;if(l[1]=s.convert(this),r>1){var y=he();for(s.sqrTo(l[1],y);d<=u;)l[d]=he(),s.mulTo(y,l[d-2],l[d]),d+=2}var f=o.t-1,g,m=!0,h=he(),S;for(a=mn(o[f])-1;f>=0;){for(a>=c?g=o[f]>>a-c&u:(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,h),s.sqrTo(h,i),d-=2;d>0?s.sqrTo(i,h):(S=i,i=h,h=S),s.mulTo(h,l[g],i)}for(;f>=0&&!(o[f]&1<<a);)s.sqrTo(i,h),S=i,i=h,h=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 pc)},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]<=Ke[Ke.length-1]){for(n=0;n<Ke.length;++n)if(a[0]==Ke[n])return!0;return!1}if(a.isEven())return!1;for(n=1;n<Ke.length;){for(var r=Ke[n],i=n+1;i<Ke.length&&r<xc;)r*=Ke[i++];for(r=a.modInt(r);n<i;)if(r%Ke[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 u=s.t,y=s[u-1];if(y!=0){var f=y*(1<<this.F1)+(u>1?s[u-2]>>this.F2:0),g=this.FV/f,m=(1<<this.F1)/f,h=1<<this.F2,S=a.t,D=S-u,b=n??he();for(s.dlShiftTo(D,b),a.compareTo(b)>=0&&(a[a.t++]=1,a.subTo(b,a)),e.ONE.dlShiftTo(u,b),b.subTo(s,s);s.t<u;)s[s.t++]=0;for(;--D>=0;){var v=a[--S]==y?this.DM:Math.floor(a[S]*g+(a[S-1]+h)*m);if((a[S]+=s.am(0,v,a,D,0,u))<v)for(s.dlShiftTo(D,b),a.subTo(b,a);a[S]<--v;)a.subTo(b,a)}n!=null&&(a.drShiftTo(u,n),l!=d&&e.ZERO.subTo(n,n)),a.t=u,a.clamp(),c>0&&a.rShiftTo(c,a),l<0&&e.ZERO.subTo(a,a)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var o=this[0];if(!(o&1))return 0;var n=o&3;return n=n*(2-(o&15)*n)&15,n=n*(2-(o&255)*n)&255,n=n*(2-((o&65535)*n&65535))&65535,n=n*(2-o*n%this.DV)%this.DV,n>0?this.DV-n:-n},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(o,n){if(o>4294967295||o<1)return e.ONE;var a=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>Ke.length&&(o=Ke.length);for(var i=he(),s=0;s<o;++s){i.fromInt(Ke[Math.floor(Math.random()*Ke.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}(),pc=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(de.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}(),bc=function(){function e(o){this.m=o,this.r2=he(),this.q3=he(),de.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 de(null)}function Ne(e,o){return new de(e,o)}var yi=typeof navigator<"u";yi&&hi&&navigator.appName=="Microsoft Internet Explorer"?(de.prototype.am=function(o,n,a,r,i,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,u=this[o++]>>15,y=d*c+u*l;c=l*c+((y&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(y>>>15)+d*u+(i>>>30),a[r++]=c&1073741823}return i},St=30):yi&&hi&&navigator.appName!="Netscape"?(de.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):(de.prototype.am=function(o,n,a,r,i,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,u=this[o++]>>14,y=d*c+u*l;c=l*c+((y&16383)<<14)+a[r]+i,i=(c>>28)+(y>>14)+d*u,a[r++]=c&268435455}return i},St=28),de.prototype.DB=St,de.prototype.DM=(1<<St)-1,de.prototype.DV=1<<St;var Bo=52;de.prototype.FV=Math.pow(2,Bo),de.prototype.F1=Bo-St,de.prototype.F2=2*St-Bo;var gn=[],Wt,rt;for(Wt="0".charCodeAt(0),rt=0;rt<=9;++rt)gn[Wt++]=rt;for(Wt="a".charCodeAt(0),rt=10;rt<36;++rt)gn[Wt++]=rt;for(Wt="A".charCodeAt(0),rt=10;rt<36;++rt)gn[Wt++]=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}de.ZERO=Ct(0),de.ONE=Ct(1);var vc=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 Sc(){return new vc}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 Cc(){if(yn==null){for(yn=Sc();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]=Cc()},e}();function wc(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 Ac(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 de(n)}var kc=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=Ac(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 de(n,16);;){for(;this.p=new de(o-r,1,a),!(this.p.subtract(de.ONE).gcd(i).compareTo(de.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new de(r,1,a),!(this.q.subtract(de.ONE).gcd(i).compareTo(de.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(de.ONE),d=this.q.subtract(de.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(de.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:Tc(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 de(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(de.ONE),m=l.q.subtract(de.ONE),h=g.multiply(m);h.gcd(s).compareTo(de.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(h),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)},u=function(){l.q=he(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(de.ONE).gcda(s,function(f){f.compareTo(de.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},y=function(){l.p=he(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(de.ONE).gcda(s,function(f){f.compareTo(de.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(y,0)})})};setTimeout(y,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var r=Bc(a),i=r+n(o).toString(),s=wc(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=Ec(s);return l==a(o).toString()},e}();function Tc(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 Bc(e){return vn[e]||""}function Ec(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
|
|
82
82
|
version: 2.9.0
|
|
83
|
-
*/var
|
|
83
|
+
*/var Fe={};Fe.lang={extend:function(e,o,n){if(!o||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var a=function(){};if(a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e,e.superclass=o.prototype,o.prototype.constructor==Object.prototype.constructor&&(o.prototype.constructor=o),n){var r;for(r in n)e.prototype[r]=n[r];var i=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(l,d){for(r=0;r<s.length;r=r+1){var c=s[r],u=d[c];typeof u=="function"&&u!=Object.prototype[c]&&(l[c]=u)}})}catch{}i(e.prototype,n)}}};/**
|
|
84
84
|
* @fileOverview
|
|
85
85
|
* @name asn1-1.0.js
|
|
86
86
|
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
87
87
|
* @version asn1 1.0.13 (2017-Jun-02)
|
|
88
88
|
* @since jsrsasign 2.1
|
|
89
89
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
90
|
-
*/var $={};(typeof $.asn1>"u"||!$.asn1)&&($.asn1={}),$.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 ce(r,16),l=s.xor(e).add(ce.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=$,n=o.asn1,a=n.DERBoolean,r=n.DERInteger,i=n.DERBitString,s=n.DEROctetString,l=n.DERNull,d=n.DERObjectIdentifier,c=n.DEREnumerated,f=n.DERUTF8String,y=n.DERNumericString,u=n.DERPrintableString,h=n.DERTeletexString,m=n.DERIA5String,g=n.DERUTCTime,C=n.DERGeneralizedTime,E=n.DERSequence,v=n.DERSet,S=n.DERTaggedObject,p=n.ASN1Util.newObject,A=Object.keys(e);if(A.length!=1)throw"key of param shall be only one.";var T=A[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 f(e[T]);if(T=="numstr")return new y(e[T]);if(T=="prnstr")return new u(e[T]);if(T=="telstr")return new h(e[T]);if(T=="ia5str")return new m(e[T]);if(T=="utctime")return new g(e[T]);if(T=="gentime")return new C(e[T]);if(T=="seq"){for(var k=e[T],O=[],N=0;N<k.length;N++){var I=p(k[N]);O.push(I)}return new E({array:O})}if(T=="set"){for(var k=e[T],O=[],N=0;N<k.length;N++){var I=p(k[N]);O.push(I)}return new v({array:O})}if(T=="tag"){var w=e[T];if(Object.prototype.toString.call(w)==="[object Array]"&&w.length==3){var R=p(w[2]);return new S({tag:w[0],explicit:w[1],obj:R})}else{var x={};if(w.explicit!==void 0&&(x.explicit=w.explicit),w.tag!==void 0&&(x.tag=w.tag),w.obj===void 0)throw"obj shall be specified for 'tag'.";return x.obj=p(w.obj),new S(x)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},$.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 ce(i,2);r=r+"."+c.toString(10),i=""}}return r},$.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 ce(l,10),f=c.toString(2),y=7-f.length%7;y==7&&(y=0);for(var u="",h=0;h<y;h++)u+="0";f=u+f;for(var h=0;h<f.length-1;h+=7){var m=f.substr(h,7);h!=f.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},$.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""}},$.asn1.DERAbstractString=function(e){$.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))},Le.lang.extend($.asn1.DERAbstractString,$.asn1.ASN1Object),$.asn1.DERAbstractTime=function(e){$.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),f=r(String(i.getMinutes()),2),y=r(String(i.getSeconds()),2),u=s+l+d+c+f+y;if(a===!0){var h=i.getMilliseconds();if(h!=0){var m=r(String(h),3);m=m.replace(/[0]+$/,""),u=u+"."+m}}return u+"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}},Le.lang.extend($.asn1.DERAbstractTime,$.asn1.ASN1Object),$.asn1.DERAbstractStructured=function(e){$.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)},Le.lang.extend($.asn1.DERAbstractStructured,$.asn1.ASN1Object),$.asn1.DERBoolean=function(){$.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Le.lang.extend($.asn1.DERBoolean,$.asn1.ASN1Object),$.asn1.DERInteger=function(e){$.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ce(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))},Le.lang.extend($.asn1.DERInteger,$.asn1.ASN1Object),$.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=$.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}$.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))},Le.lang.extend($.asn1.DERBitString,$.asn1.ASN1Object),$.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=$.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}$.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Le.lang.extend($.asn1.DEROctetString,$.asn1.DERAbstractString),$.asn1.DERNull=function(){$.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Le.lang.extend($.asn1.DERNull,$.asn1.ASN1Object),$.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 ce(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 f=s.substr(c,7);c!=s.length-7&&(f="1"+f),r+=o(parseInt(f,2))}return r};$.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=$.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))},Le.lang.extend($.asn1.DERObjectIdentifier,$.asn1.ASN1Object),$.asn1.DEREnumerated=function(e){$.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ce(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))},Le.lang.extend($.asn1.DEREnumerated,$.asn1.ASN1Object),$.asn1.DERUTF8String=function(e){$.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Le.lang.extend($.asn1.DERUTF8String,$.asn1.DERAbstractString),$.asn1.DERNumericString=function(e){$.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Le.lang.extend($.asn1.DERNumericString,$.asn1.DERAbstractString),$.asn1.DERPrintableString=function(e){$.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Le.lang.extend($.asn1.DERPrintableString,$.asn1.DERAbstractString),$.asn1.DERTeletexString=function(e){$.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Le.lang.extend($.asn1.DERTeletexString,$.asn1.DERAbstractString),$.asn1.DERIA5String=function(e){$.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Le.lang.extend($.asn1.DERIA5String,$.asn1.DERAbstractString),$.asn1.DERUTCTime=function(e){$.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))},Le.lang.extend($.asn1.DERUTCTime,$.asn1.DERAbstractTime),$.asn1.DERGeneralizedTime=function(e){$.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))},Le.lang.extend($.asn1.DERGeneralizedTime,$.asn1.DERAbstractTime),$.asn1.DERSequence=function(e){$.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}},Le.lang.extend($.asn1.DERSequence,$.asn1.DERAbstractStructured),$.asn1.DERSet=function(e){$.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)},Le.lang.extend($.asn1.DERSet,$.asn1.DERAbstractStructured),$.asn1.DERTaggedObject=function(e){$.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)))},Le.lang.extend($.asn1.DERTaggedObject,$.asn1.ASN1Object);var Dc=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){Dc(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)?uc.decode(n):ko.unarmor(n),l=mc.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Oe(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var d=l.sub[3].getHexStringValue();this.d=Oe(d,16);var c=l.sub[4].getHexStringValue();this.p=Oe(c,16);var f=l.sub[5].getHexStringValue();this.q=Oe(f,16);var y=l.sub[6].getHexStringValue();this.dmp1=Oe(y,16);var u=l.sub[7].getHexStringValue();this.dmq1=Oe(u,16);var h=l.sub[8].getHexStringValue();this.coeff=Oe(h,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],g=m.sub[0];a=g.sub[0].getHexStringValue(),this.n=Oe(a,16),r=g.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Oe(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 $.asn1.DERInteger({int:0}),new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e}),new $.asn1.DERInteger({bigint:this.d}),new $.asn1.DERInteger({bigint:this.p}),new $.asn1.DERInteger({bigint:this.q}),new $.asn1.DERInteger({bigint:this.dmp1}),new $.asn1.DERInteger({bigint:this.dmq1}),new $.asn1.DERInteger({bigint:this.coeff})]},a=new $.asn1.DERSequence(n);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return hn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var n=new $.asn1.DERSequence({array:[new $.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new $.asn1.DERNull]}),a=new $.asn1.DERSequence({array:[new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e})]}),r=new $.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new $.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 $={};(typeof $.asn1>"u"||!$.asn1)&&($.asn1={}),$.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 de(r,16),l=s.xor(e).add(de.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=$,n=o.asn1,a=n.DERBoolean,r=n.DERInteger,i=n.DERBitString,s=n.DEROctetString,l=n.DERNull,d=n.DERObjectIdentifier,c=n.DEREnumerated,u=n.DERUTF8String,y=n.DERNumericString,f=n.DERPrintableString,g=n.DERTeletexString,m=n.DERIA5String,h=n.DERUTCTime,S=n.DERGeneralizedTime,D=n.DERSequence,b=n.DERSet,v=n.DERTaggedObject,p=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 u(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 h(e[T]);if(T=="gentime")return new S(e[T]);if(T=="seq"){for(var E=e[T],_=[],N=0;N<E.length;N++){var B=p(E[N]);_.push(B)}return new D({array:_})}if(T=="set"){for(var E=e[T],_=[],N=0;N<E.length;N++){var B=p(E[N]);_.push(B)}return new b({array:_})}if(T=="tag"){var A=e[T];if(Object.prototype.toString.call(A)==="[object Array]"&&A.length==3){var R=p(A[2]);return new v({tag:A[0],explicit:A[1],obj:R})}else{var C={};if(A.explicit!==void 0&&(C.explicit=A.explicit),A.tag!==void 0&&(C.tag=A.tag),A.obj===void 0)throw"obj shall be specified for 'tag'.";return C.obj=p(A.obj),new v(C)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},$.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 de(i,2);r=r+"."+c.toString(10),i=""}}return r},$.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 de(l,10),u=c.toString(2),y=7-u.length%7;y==7&&(y=0);for(var f="",g=0;g<y;g++)f+="0";u=f+u;for(var g=0;g<u.length-1;g+=7){var m=u.substr(g,7);g!=u.length-7&&(m="1"+m),d+=o(parseInt(m,2))}return d};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var a="",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},$.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""}},$.asn1.DERAbstractString=function(e){$.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($.asn1.DERAbstractString,$.asn1.ASN1Object),$.asn1.DERAbstractTime=function(e){$.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),u=r(String(i.getMinutes()),2),y=r(String(i.getSeconds()),2),f=s+l+d+c+u+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($.asn1.DERAbstractTime,$.asn1.ASN1Object),$.asn1.DERAbstractStructured=function(e){$.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($.asn1.DERAbstractStructured,$.asn1.ASN1Object),$.asn1.DERBoolean=function(){$.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Fe.lang.extend($.asn1.DERBoolean,$.asn1.ASN1Object),$.asn1.DERInteger=function(e){$.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new de(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($.asn1.DERInteger,$.asn1.ASN1Object),$.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=$.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}$.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($.asn1.DERBitString,$.asn1.ASN1Object),$.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=$.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}$.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Fe.lang.extend($.asn1.DEROctetString,$.asn1.DERAbstractString),$.asn1.DERNull=function(){$.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Fe.lang.extend($.asn1.DERNull,$.asn1.ASN1Object),$.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 de(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 u=s.substr(c,7);c!=s.length-7&&(u="1"+u),r+=o(parseInt(u,2))}return r};$.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=$.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($.asn1.DERObjectIdentifier,$.asn1.ASN1Object),$.asn1.DEREnumerated=function(e){$.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new de(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($.asn1.DEREnumerated,$.asn1.ASN1Object),$.asn1.DERUTF8String=function(e){$.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Fe.lang.extend($.asn1.DERUTF8String,$.asn1.DERAbstractString),$.asn1.DERNumericString=function(e){$.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Fe.lang.extend($.asn1.DERNumericString,$.asn1.DERAbstractString),$.asn1.DERPrintableString=function(e){$.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Fe.lang.extend($.asn1.DERPrintableString,$.asn1.DERAbstractString),$.asn1.DERTeletexString=function(e){$.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Fe.lang.extend($.asn1.DERTeletexString,$.asn1.DERAbstractString),$.asn1.DERIA5String=function(e){$.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Fe.lang.extend($.asn1.DERIA5String,$.asn1.DERAbstractString),$.asn1.DERUTCTime=function(e){$.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($.asn1.DERUTCTime,$.asn1.DERAbstractTime),$.asn1.DERGeneralizedTime=function(e){$.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($.asn1.DERGeneralizedTime,$.asn1.DERAbstractTime),$.asn1.DERSequence=function(e){$.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($.asn1.DERSequence,$.asn1.DERAbstractStructured),$.asn1.DERSet=function(e){$.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($.asn1.DERSet,$.asn1.DERAbstractStructured),$.asn1.DERTaggedObject=function(e){$.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($.asn1.DERTaggedObject,$.asn1.ASN1Object);var Dc=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){Dc(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)?uc.decode(n):ko.unarmor(n),l=mc.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 u=l.sub[5].getHexStringValue();this.q=Ne(u,16);var y=l.sub[6].getHexStringValue();this.dmp1=Ne(y,16);var f=l.sub[7].getHexStringValue();this.dmq1=Ne(f,16);var 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],h=m.sub[0];a=h.sub[0].getHexStringValue(),this.n=Ne(a,16),r=h.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 $.asn1.DERInteger({int:0}),new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e}),new $.asn1.DERInteger({bigint:this.d}),new $.asn1.DERInteger({bigint:this.p}),new $.asn1.DERInteger({bigint:this.q}),new $.asn1.DERInteger({bigint:this.dmp1}),new $.asn1.DERInteger({bigint:this.dmq1}),new $.asn1.DERInteger({bigint:this.coeff})]},a=new $.asn1.DERSequence(n);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return hn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var n=new $.asn1.DERSequence({array:[new $.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new $.asn1.DERNull]}),a=new $.asn1.DERSequence({array:[new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e})]}),r=new $.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new $.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}(kc),
|
|
97
|
-
`),
|
|
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}(kc),Ro,Rc=typeof process<"u"?(Ro=process.env)===null||Ro===void 0?void 0:Ro.npm_package_version:void 0,Ic=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 bi(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(di(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,di(n),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new bi,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=Rc,e}();const vi=new Ic,Gt=Oc();function Oc(){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 Si=et.enc.Utf8.parse("ABCDEF1234123412");function _c(e,o){o=o||Gt;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:Si,mode:et.mode.CBC,padding:et.pad.ZeroPadding}).toString()}function Ci(e,o){o=o||Gt;const n=et.enc.Utf8.parse(o),a=et.AES.decrypt(e,n,{iv:Si,mode:et.mode.CBC,padding:et.pad.ZeroPadding});return et.enc.Utf8.stringify(a).toString()}function Lc(e){vi.setPublicKey(e)}function Nc(e){return vi.encrypt(e)}function wi(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 Fc(e){const{paramType:o,data:n,params:a,method:r}=e;o==="form"?["get","delete"].includes(r)?e.params=Ut(a,"string"):e.data=Ut(n,"string"):["get","delete"].includes(r)?e.params=Ut(a,"string"):e.data=Ut(n)}function Ut(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)}&`}}Lc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=Nc(Gt);return{c:_c(n,Gt),p:r}}window.getEncryptParam=Ut;function zc(e,o){var n;(n=window==null?void 0:window.config)!=null&&n.encryptFlag&&wi(e.url)&&(e.data instanceof FormData?e.data=Mc(e.data):Fc(e))}function Mc(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=Ut(a,"json");return typeof r=="object"&&(n.append("c",r.c),n.append("p",r.p)),n}window.xhaesKey=Gt,window.xhaesDecrypt=Ci;function Ai(e,o){var n;if((n=window==null?void 0:window.config)!=null&&n.encryptFlag&&wi(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=Ci(e.data.data.content,Gt);e.data=JSON.parse(a)}}const ki=window.config.requestErrorTip,ft=Ql.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),zc(e),e},e=>Promise.reject(e)),ft.interceptors.response.use(e=>{var o,n,a;return ki&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&ce.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}),Ai(e),e},e=>{if(Ai(e==null?void 0:e.response),ki)if(e.message.includes("timeout"))ce.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&ce.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),o>=500&&ce.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const Pc=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,")},qc=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)}%`},Vc=(e,o=2)=>{const n=e+"",a=parseFloat(n);return isNaN(a)?e:a.toFixed(o)},Ti=(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},$t=(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=De(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(i=i.replace(l,d))}return`${r}{text|${i}}`}else return e},Cn=(e,o)=>{const n={dayjs:Se,...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},De=(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 f=c.slice(1,-1).trim();const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=f.match(y);for(let h=0;h<u.length;h++){const m=u[h],g=s[m];g!=null&&typeof g!="function"&&(f=f.replace(m,g))}(/\(.*\)/g.test(f)||/[+/\\*]/g.test(f))&&(f=Cn(f,n)),e=e.replace(c,f)}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},Ve=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:d,touchEventId:c}=t.inject(Me,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:f}=t.inject(Te,{getGlobalModel:m=>{}}),y=De(n),u=async(m={})=>{if(!y||!a||!r)return;let g={};i.forEach(p=>{const{key:A,value:T}=p;if(typeof T=="object"&&T!=null&&T.id){let k={};const{id:O,prop:N,propKey:I,operate:w}=T;O==="THIS"?k=f(t.unref(c))||{}:k=f(O)||{};const R=t.unref(k[N]);let x=null;if(["date","range"].some(b=>dt(k==null?void 0:k.type,b))){const{value:b,type:D,mode:F}=w||{};if(b&&D&&F)switch(D){case"add":x=t.unref(R).add(b,F);break;case"minus":x=t.unref(R).subtract(b,F);break}x==null&&(x=t.unref(R)),x=(x==null?void 0:x.format((I==null?void 0:I.trim())||k.format))||""}else Object.prototype.toString.call(R)==="[object Object]"?I?x=R[I]:x=N?R[N]:R:dt(k==null?void 0:k.type,"select")&&t.unref(R)&&N&&Array.isArray(t.unref(R))?x=t.unref(R).map(b=>Object.prototype.hasOwnProperty.call(b,N)?b[N]:b):x=R;g[A]=x}else typeof T=="string"&&(g[A]=De(T))}),g={...window.config.requestParams,...m,...g};let C="";const E=Object.keys(g),v=E.length-1,S=E.length;E.forEach((p,A)=>{let T=g[p];Object.prototype.toString.call(T)==="[object Object]"&&(T=JSON.stringify(T)),A===0?S!==1?C+=`?${p}=${T}&`:C+=`?${p}=${T}`:A===v?C+=`${p}=${T}`:C+=`${p}=${T}&`});try{const p=["get","head"].includes(a),A={};let T=p?y+C:y;g.dataSqlId&&!T.includes("dataSqlId")&&(T+=`${T.includes("?")?"&":"?"}dataSqlId=${g.dataSqlId}`),Object.prototype.hasOwnProperty.call(g,"signal")&&(A.signal=g.signal);const k=await ft({baseURL:t.unref(d)||"",url:T,method:a,headers:r,data:p?{}:g,...A});return o(k),k}catch(p){console.error(p)}},h=l&&setInterval(u,s*1e3);return t.onUnmounted(()=>{clearInterval(h)}),u},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 h=0;h<d;h++){const m=r[h],{label:g,value:C}=m,E={...e[0],value:e[0][C]};i.add(g),y.push(E)}const u=e[0][a]||"";s.set(u,y)}else for(let y=0;y<l;y++){const u=e[y],h=u[a];i.add(h);for(let m=0;m<d;m++){const g=r[m],{label:C,value:E}=g,v={...u,value:u[E]||0};if(s.has(C)){const S=s.get(C);S.push(v),s.set(C,S)}else s.set(C,[v])}}const c=Array.from(i),f=[];for(const[y,u]of s)f.push({name:y,data:u});return{dimensions:c,dataset:f}},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},Bi=(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},Ze=(e={})=>{const{requestToken:o}=t.inject(xr,{requestToken:()=>{}}),{setLoadedData:n}=t.inject(vt,{setLoadedData:(h,m)=>{}}),{getGlobalModel:a}=t.inject(Te,{getGlobalModel:h=>{}});e.dataType==="indicator"&&o();const r=h=>{const{around:m,unit:g,id:C}=h;let E="";const{pageMode:v="",componentList:S=[]}=(e==null?void 0:e.graphicConfig)||{};let p=null,A=null;if(v==="design"){const T=S==null?void 0:S.find(x=>x.id===C);if(!T)return[];const{interval:k,intervalUnit:O,startTime:N,endTime:I,operate:w,useCurrentTime:R}=T||{};if(R&&(p=Se().subtract(k,O),A=Se()),N&&(p=Se(N)),I&&(A=Se(I)),w){const{type:x,value:B,mode:b}=w;switch(x){case"add":p=p&&p.add(B,b),A=A&&A.add(B,b);break;case"minus":p=p&&p.subtract(B,b),A=A&&A.subtract(B,b)}}}else{const T=a(C)||{};t.unref(T.startTime)&&(p=Se(t.unref(T.startTime))),t.unref(T.endTime)&&(A=Se(t.unref(T.endTime)))}if(p&&A){const T=A.diff(p,g.toLowerCase());E=`${m==="before"?"-":""}${T+1}`}return E?[E]:[]},i=(h,m)=>Object.prototype.hasOwnProperty.call(h,m),s=h=>{const{calcWays:m=[],dateCalcTypes:g=[],activeKey:C,componentId:E=""}=h;if(C===5&&(m!=null&&m.length)&&(g!=null&&g.length)&&E){const v=m[0].split("-");(v==null?void 0:v.length)>1&&v[0]==="rangeValue"&&(h.calcWays=r({around:v[1],unit:g[0],id:E})),delete h.radioValue}i(h,"dataType")&&(h.fieldType==="DATE"&&(h.label=h.fieldName),h.dataType==="component"&&(h.fieldValue="${"+h.fieldValue+"}"),delete h.dataType),i(h,"activeKey")&&delete h.activeKey,i(h,"radioValue")&&delete h.radioValue,i(h,"indexCode")&&(h.hrpIndexCode=h.indexCode,delete h.indexCode),h.dataType!=="component"&&h.useCurrentTime&&(h.fieldValue=Se().format(h.dateFormat)),delete h.useCurrentTime},l=h=>{const m=[];return h!=null&&h.length&&Ie.cloneDeep(h).forEach(g=>{if(g.join&&g.conditions){const C=!g.conditions.some(E=>E.join&&E.conditions);g.conditions.forEach((E,v)=>{s(E),C?v<g.conditions.length-1?m.push({join:g.join,...E}):m.push(E):E.join&&E.conditions?m.push({conditions:l([E]),join:g.join}):m.push(E)})}else s(g),m.push(g)}),m},d=(h={},m)=>{if(h!=null&&h.sortCpnts&&m){const x=u(h);x&&(m.sort=x)}const{label:g,name:C,location:E,show:v,indexCode:S,calcType:p="COLUMN",builtInFormula:A,builtInValueSource:T,builtInCalcWay:k,formula:O,conditions:N,aggregate:I}=h;let w;if(N&&(w=l(N)),p==="COMPONENT"){const x={};return y(x,T),{label:g.trim(),columnName:C,show:v,calcType:p,componentAlias:k,componentValue:x.fieldValue||null}}const R={label:g.trim(),columnName:C,location:E,show:v,calcType:p,hrpIndexCode:S,aggregate:I,builtInFormula:A,builtInValueSource:T,formula:O,conditions:w};if(A==="DATE_OFFSET"){const x=k.split("-");if((x==null?void 0:x.length)===3){let B=x[0];return x[2]==="before"&&x[0]!=="0"&&(B=`-${x[0]}`),{...R,calcWays:[B],dateCalcTypes:[x[1]]}}}else return{...R,builtInCalcWay:k}},c=h=>{const m=[];for(const g of h)g.conditions?m.push(...c(g.conditions)):(g==null?void 0:g.dataType)==="component"&&m.push(g);return m},f=h=>{if(!h)return[];const{controlList:m=[],classificationList:g=[],rowHeaderList:C=[],dimensionList:E=[],seriesList:v=[],leftAxisList:S=[],rightAxisList:p=[],queryColumnList:A=[],indicators:T=[]}=h,k=[...g,...C,...E,...v,...S,...p,...A,...T],O=[];for(const R of k){const x=c((R==null?void 0:R.conditions)||[]);if(x!=null&&x.length){const B=x.filter(b=>(b==null?void 0:b.dataType)==="component").map(b=>{const D={};return b!=null&&b.dateFormat&&(D.format=b.dateFormat),{conditionKey:b.fieldName,conditionLabel:b.fieldName,conditionName:b.fieldName,conditionValueType:b.fieldType,id:b.componentId,keyName:b.fieldValue,rule:b.rule,notGlobal:!0,indexCode:b.indexCode,typeGuid:b.typeGuid,...D}});if(B!=null&&B.length)for(const b of B)O.find(D=>D.keyName===b.keyName)||O.push(b)}}const N=m.concat(O),I=N.length,w=[];for(let R=0;R<I;R++){const x=N[R];if((x==null?void 0:x.conditionKey)==="parentCode")continue;const{id:B,keyName:b,conditionLabel:D,conditionKey:F,conditionValueType:q,prop:H,rule:G="NONE",notGlobal:z=!1,format:P,modelKey:M,indexCode:_,typeGuid:L}=x;let V=b||B;V&&H&&(V+=`-${H}`);let Z=G;Z==="NONE"&&(["startTime","endTime"].includes(H)?Z=H==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":b!=null&&b.includes("startTime")?Z=H==="GREATER_EQUAL":b!=null&&b.includes("endTime")?Z=H==="LESS_EQUAL":Z="EQUAL");const U={rule:Z,label:D,fieldName:F,fieldValue:"",valueType:q,alias:V,globalCondition:!z,indexCode:_,typeGuid:L};y(U,B,{prop:H,dateFormat:P,modelKey:M,keyName:b}),w.push(U)}for(let R=w.length-1;R>=0;R--){const x=w[R];x.globalCondition||w.find(b=>b.alias===x.alias&&b.globalCondition)&&w.splice(R,1)}return w};function y(h,m,g){var w,R;const C=a(m)||{},{prop:E="",dateFormat:v="",modelKey:S="",keyName:p=""}=g||{},{value:A,format:T="YYYY-MM-DD",type:k="",useCurrentTime:O,RECORD:N}=C||{},I=v||T;if(dt(C.type,"date"))O?A?h.fieldValue=(w=t.unref(A))==null?void 0:w.format(I):h.fieldValue=Se().format(I):h.fieldValue=(R=t.unref(A))==null?void 0:R.format(I),h.dateFormat=I;else if(k==="ecanRangePicker"){let x=E;if(!E){const b=p&&p.split("-");b!=null&&b.length&&(x=b[b.length-1])}if(!x)return;let B=null;t.unref(C[x])&&(B=Se(t.unref(C[x]))),B&&(h.fieldValue=B==null?void 0:B.format(I)),h.dateFormat=I}else dt(k,Cr)?S&&N?h.fieldValue=N[S]:!S&&N?h.fieldValue=N.value:h.fieldValue=t.unref(A):h.fieldValue=t.unref(A)}const u=h=>{const{sortCpnts:m=[]}=h;let g,C="";for(const E of m){const v=a(E)||{},{type:S,RECORD:p}=v;if(dt(S,"image")&&dt(p==null?void 0:p.value,["asc","desc"])){C=p.value.toUpperCase();break}}return C&&(g={label:h.label,columnName:h.name,order:C,type:"NORMAL"}),g};return async(h={})=>{var Z,U,ae,Y,ie,re;n(e.id,!1);const{graphicConfig:m,type:g,isGroupTable:C=!1}=e;let{source:E,dataViewId:v,plugin:S="1",layer:p,chartType:A,classificationList:T=[],rowHeaderList:k=[],dimensionList:O=[],seriesList:N=[],leftAxisList:I=[],rightAxisList:w=[],queryColumnList:R=[],indicators:x=[],controlList:B=[],formFields:b={},idxLibMode:D,preview:F=!1}=m||{},q=[];(m==null?void 0:m.pageMode)==="design"?q=(m.sqlConditions??[]).map(Q=>{const X=Q.rule||"EQUAL",te={};return i(Q,"globalCondition")||(te.globalCondition=!0),{...Q,rule:X==="NONE"?"EQUAL":X,...te}}):q=f(m);for(const Q of q)i(Q,"indexCode")&&(Q.hrpIndexCode=Q.indexCode,delete Q.indexCode);p==null&&(dt(g,["table"])?p="1":dt(g,["select","checkbox","radio"])?p="3":p="2");let H,G="";if(Array.isArray(T)&&T.length>0){const Q=T.length;for(let X=0;X<Q;X++){const te=T[X]||{},{label:fe="",name:be="",show:we=!1,sort:$e,customGroup:Pe,conditions:_e,dateFormat:Ee,typeGuid:He="",truncations:ze=[]}=te;if(we||Q===1){G=He,H={label:fe.trim(),columnName:be,show:we,sort:u(te)||$e,customGroup:Pe,conditions:l(_e),typeGuid:He},Ee&&(H.dateFormat=Ee),be==="the_date"&&!H.dateFormat&&(H.dateFormat="YYYY-MM");const Ke={};if(Array.isArray(ze)&&ze.length>0){const We=ze.length;for(let je=0;je<We;je++){const ut=ze[je]||{},{rule:tt="",num:nt=0,name:j=""}=ut;tt&&nt&&(Ke.num=nt,Ke.rule=tt,j&&(Ke.otherGroupName=j))}}(Z=Object.keys(Ke))!=null&&Z.length&&(H.truncation=Ke);break}}}let z;if(Array.isArray(N)&&N.length>0){const Q=N.length;for(let X=0;X<Q;X++){const te=N[X]||{},{label:fe="",name:be="",show:we=!1,sort:$e,customGroup:Pe,conditions:_e}=te;if(we||Q===1){z={label:fe.trim(),columnName:be,show:we,sort:$e,customGroup:Pe,conditions:l(_e)};break}}}const P=[];I==null||I.forEach(Q=>{Q.location="LEFT",P.push(d(Q,H))}),w==null||w.forEach(Q=>{Q.location="RIGHT",P.push(d(Q,H))}),x==null||x.forEach(Q=>{Q.location="LEFT",P.push(d(Q,H))});const M=[];R==null||R.forEach(Q=>{const{label:X,name:te,location:fe,show:be,indexCode:we,sort:$e,typeGuid:Pe}=Q;let _e=$e;if(h.sort){const{field:Ee,order:He}=h.sort;let ze=P.find(Ke=>Ke.label===Ee);!ze&&X===Ee&&(ze=Q),ze&&(_e={columnName:ze.columnName,label:h.sort.field,order:He.toUpperCase(),type:"NORMAL"})}M.push({label:X,columnName:te,location:fe,show:be,sort:_e,calcType:"COLUMN",hrpIndexCode:we,typeGuid:Pe})});const _=[];let L=[];if(Array.isArray(k)&&k.length>0?L=k:Array.isArray(O)&&O.length>0&&(L=O),L!=null&&L.length){const Q=L.length;for(let X=0;X<Q;X++){const te=L[X]||{},{label:fe="",name:be="",show:we=!1,sort:$e,customGroup:Pe,conditions:_e,truncations:Ee,typeGuid:He="",dateFormat:ze}=te;let Ke=$e;if(h.sort){const{field:ut,order:tt}=h.sort;let nt=P.find(j=>j.label===ut);!nt&&te.label===ut&&(nt=te),nt&&(Ke={columnName:nt.columnName,label:h.sort.field,order:tt.toUpperCase(),type:"NORMAL"})}const We={label:fe.trim(),columnName:be,show:we,sort:Ke,customGroup:Pe,conditions:l(_e),typeGuid:He};ze&&(We.dateFormat=ze),be==="the_date"&&!We.dateFormat&&(We.dateFormat="YYYY-MM");const je={};if(Array.isArray(Ee)&&Ee.length>0){const ut=Ee.length;for(let tt=0;tt<ut;tt++){const nt=Ee[tt]||{},{rule:j="",num:K=0,name:J=""}=nt;j&&K&&(je.num=K,je.rule=j,J&&(je.otherGroupName=J))}}(U=Object.keys(je))!=null&&U.length&&(We.truncation=je),_.push(We)}}if(dt(g,["text","proportion"])&&(A="zb"),C){if(_.length===0||P.length===0)return;A="grouptable"}else{if(p==="1"&&M.length===0)return;if(p==="2"&&P.length===0)return;if(p==="3"&&(!G||!b.labelField||!b.valueField))return;if(p==="3"&&g==="ecanDataSelect"&&P.length===0)return}O!=null&&O.length&&(p="1",A="grouptable");let V=(ae=window==null?void 0:window.config)==null?void 0:ae.pageId;if(!V){const{pathname:Q}=window==null?void 0:window.location;if(Q){const X=Q.split("/");X!=null&&X.length&&(V=X[X.length-1])}}if((Y=Object.keys(b))!=null&&Y.length){const Q=B.find(te=>te.conditionKey==="parentCode"),X={};if(Q){const te=a(Q.id)||{};if(te!=null&&te.itemCodes)X.parentItemCodes=te.itemCodes;else return}g==="ecanDataSelect"&&(X.indicatorList=P.filter(te=>te.show));try{return await ft.post(`${vr}/diagram/formData`,{source:E,dataViewId:v,plugin:"4",layer:p,chartType:"normalSelect",rangeIndexTypeGuid:G,type:g==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:b.labelField,valueField:b.valueField,pageId:V,sqlConditions:q,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...X},{headers:{Authentication:(ie=window==null?void 0:window.config)==null?void 0:ie.indicatorToken,operateContext:br}})}catch(te){console.error(te)}finally{}}else try{return await ft.post(`${vr}/diagram`,{source:E,dataViewId:v,plugin:S,layer:p,chartType:A,classification:H,series:z,indicatorList:P,queryColumns:C?[]:M,pageFlag:!0,pageId:V,sqlConditions:q.map(X=>{const{fieldValue:te}=X,fe={};return te&&Array.isArray(te)&&(fe.fieldValue=JSON.stringify(te)),{...X,...fe}}),idxLibMode:D,preview:F,rowHeaders:_,keyName:e.keyName},{headers:{Authentication:(re=window==null?void 0:window.config)==null?void 0:re.indicatorToken,operateContext:br}})}catch(Q){console.error(Q)}finally{}}},Hc=()=>{const o=window.location.search.slice(1).split("&"),n=o.length,a={};for(let r=0;r<n;r++){const i=o[r];if(i==null||i==="")continue;const s=i.split("=");if(Array.isArray(s)){const l=s[0];a[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},jc=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...qn},setup(e){const{width:o,height:n}=t.inject(Me,{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),f=t.ref(!1),y=t.ref();let u;const h=()=>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 h(),m(),C(),window.addEventListener("resize",E),v(),f.value=!0},{immediate:!0});const g=t.ref({});t.provide("scaleValue",g);const C=()=>{if(r){y.value.style.width="100%",y.value.style.height="auto",a("auto");return}const p=document.body.clientWidth,A=document.body.clientHeight,T=s.value||d.value,k=l.value||c.value,O=p/T;let N=A/k;(s.value!==1920||l.value!==1080)&&(N=l.value/s.value*p/k),g.value={widthScale:O,heightScale:N},y.value&&(y.value.style.transform=`scale(${O}, ${N})`),a(N)},E=Ie.debounce(async()=>{await h(),C()},100),v=()=>{const p=window.MutationObserver;u=new p(E),u.observe(y.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},S=()=>{u&&(u.disconnect(),u.takeRecords(),u=null)};return t.onMounted(()=>{f.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",E),S()}),{style:i,container:y,ready:f}}}),Ku="",Wc={id:"container",ref:"container"};function Uc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",Wc,[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 Ei=pe(me(jc,[["render",Uc],["__scopeId","data-v-b496b36e"]])),Oo={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},_o=ve(Oo),Gc=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{..._o},setup(e,{expose:o}){Hc();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(()=>De(e.contextRequestUrl)),l=t.computed(()=>e.pageMode),d=t.computed(()=>e.theme),c=t.computed(()=>e.width),f=t.computed(()=>e.height),y=t.ref("");t.provide(Me,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:y,width:c,height:f});const u=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",L=>{let V=L;n.value||(V=parseFloat(f.value)*L+"px"),u.value.height=V}),t.provide("isMobile",n.value),t.provide("getContainerMap",()=>e.containerMap),t.provide("getCombinationMap",()=>e.combinationMap);const h=t.ref(),m=new Map;console.log("globalModel",m);const g=L=>m.get(L),C=(L,V)=>{h.value=V,m.set(L,V)},E=()=>{h.value=null},v=L=>{let V=L;if(V){const Z=L.match(/\{(.+?)\}/g);if(Z!=null&&Z.length){let U=Z[0].slice(1,-1).trim();const ae=U.match(/\[(.+?)\]/g);let Y="";ae!=null&&ae.length&&(U=U.replace(ae[0],""),Y=ae[0].slice(1,-1).trim());const ie=t.unref(i).find(re=>re.keyName===U);if(ie){const re=g(ie.id),{type:Q,value:X,RECORD:te,recordData:fe}=re||{};dt(Q,Cr)?V=te[Y]:dt(Q,"select")?V=fe[Y]:V=X}else V=""}}return V};t.provide(Te,{getGlobalModel:g,setGlobalModel:C,clearInteractiveData:E,getRecordValueByKeyName:v,interactiveData:h});const S=t.ref({}),p=(L,V)=>{S.value[L]=V};t.provide(vt,{loadedData:S,setLoadedData:p});const A=[],T=()=>{A.pop()},k=L=>{A.push(L)},O=new Map,N=L=>O.get(L),I=(L,V)=>{O.set(L,V)};t.provide(pr,{popUseModalIds:T,pushUseModalIds:k,getModalModel:N,setModalModel:I});const w=Jl(),R=new Set,x=(L,V)=>{R.add(L),w.on(L,Z=>typeof V[Z]=="function"&&V[Z]()),t.onBeforeUnmount(()=>{B(L)})},B=L=>{R.delete(L),w.off(L)},b=(L,V)=>{if(L==="PAGE"){const Z=A.length;let U=[];if(Z===0)U=[...R];else{const ae=A[Z-1];U=[...N(ae)]}U.forEach(ae=>{w.emit(ae,V)})}else w.emit(L,V)};t.provide(Vn,{onEvent:x,offEvent:B,emitEvent:b});const D=t.ref(0),F=()=>{D.value=t.unref(D)+1};t.provide(xr,{requestToken:F});const q=new Map,H=new Map,G=({requestFn:L=()=>{},sortNum:V=0,id:Z=""})=>{if(q.has(V)){const U=q.get(V);U==null||U.push(L)}else q.set(V,[L]);H.set(Z,L)},z=L=>new Promise((V,Z)=>{const U=L.map(ae=>ae());Promise.all(U).then(ae=>{V(ae)}).catch(ae=>{Z(ae)})}),P=L=>new Promise(async(V,Z)=>{if(L){if(typeof L=="string"){const U=H.get(L);if(typeof U=="function"){const ae=ft.interceptors.response.use(Y=>(V(Y),Y),Y=>(Z(Y),Promise.reject(Y)));U(),ft.interceptors.response.eject(ae)}}}else{const U=Array.from(q);U.sort((Y,ie)=>ie[0]-Y[0]);const ae=U.length;try{e.pageMode!=="design"&&t.unref(D)>0;for(let Y=0;Y<ae;Y++){const ie=U[Y][1];await z(ie)}}catch(Y){console.error(Y)}finally{q.clear(),V(null)}}});t.provide(Fe,{setRequest:G,touchRequest:P});const M=()=>{w.emit(tn)};t.provide(tn,{emitRefreshPage:M});const _=L=>{w.on(tn,()=>L()),t.onMounted(()=>{w.off(tn)})};return t.onBeforeUnmount(()=>{q==null||q.clear(),H==null||H.clear()}),o({touchRequest:P,getGlobalModel:g,onRefreshPage:_}),{providerConfig:a,configStyle:u}}}),Yu="";function $c(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 Di=pe(me(Gc,[["render",$c],["__scopeId","data-v-90319d50"]])),Lo={...ke,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"},No=ve(Lo),Ii=["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=",zo="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==",Mo=t.defineComponent({name:"EcanText",components:{Skeleton:en},props:{...No},setup(e,{expose:o}){const n=t.ref(!1),a=Ae(e),r=t.ref({}),i=t.computed(()=>e.variableFontSize||"14px"),s=t.computed(()=>"-"+t.unref(i));t.watch(()=>[e.data,e.dataType],([x,B])=>{B==="static"&&(r.value=x)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c}=t.inject(Te,{getGlobalModel:x=>{},setGlobalModel:(x,B)=>{},getRecordValueByKeyName:x=>{}}),{setLoadedData:f}=t.inject(vt,{setLoadedData:(x,B)=>{}}),y=t.computed(()=>{let x="";if(e.gradientShow){const{gradientColor:B,gradientOffset:b,gradientAngle:D,color:F}=e;x+=`background: linear-gradient(${D}, ${F}, ${B||"transparent"} ${b*100}%);-webkit-background-clip: text;color: transparent;`}return x}),u=t.computed(()=>{const x={};if(e.gradientShow){const{gradientColor:B,gradientOffset:b,gradientAngle:D,color:F}=e,q=B||"transparent";x.background=`linear-gradient(${D}, ${F}, ${q} ${b*100}%)`,x["-webkit-background-clip"]="text",x.color="transparent"}return x}),h=t.computed(()=>{var H;if(t.unref(n))return"NaN";const x=t.unref(r),B=e.increaseColor||e.color,b=e.declineColor||e.color;let D=e.text;D=D==null?void 0:D.replace(/\n|\\n/g,"<br/>"),D=D==null?void 0:D.replace(/\s(?!\{) | (?!\})\s/g," ");const F=D.match(/\{(.+?)\}/g)||[];let q="";if(F==null||F.length===0){if(D&&e.format==="percentage"&&!isNaN(+D)){const G=parseFloat(D),z=G*100,P=m(z.toFixed(2));G>=0?D=`<span style="color: ${P||B||"#ED6643"};font-size:${t.unref(i)};display: inline-block;${t.unref(y)}">
|
|
99
|
+
`;let i=e;if(n!=null&&n.length){for(const l of n){const d=Re(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(i=i.replace(l,d))}return`${r}{text|${i}}`}else return e},Cn=(e,o)=>{const n={dayjs:we,...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},Re=(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 u=c.slice(1,-1).trim();const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,f=u.match(y);for(let g=0;g<f.length;g++){const m=f[g],h=s[m];h!=null&&typeof h!="function"&&(u=u.replace(m,h))}(/\(.*\)/g.test(u)||/[+/\\*]/g.test(u))&&(u=Cn(u,n)),e=e.replace(c,u)}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:u}=t.inject(Ee,{getGlobalModel:m=>{}}),y=Re(n),f=async(m={})=>{if(!y||!a||!r)return;let h={};i.forEach(p=>{const{key:w,value:T}=p;if(typeof T=="object"&&T!=null&&T.id){let E={};const{id:_,prop:N,propKey:B,operate:A}=T;_==="THIS"?E=u(t.unref(c))||{}:E=u(_)||{};const R=t.unref(E[N]);let C=null;if(["date","range"].some(x=>dt(E==null?void 0:E.type,x))){const{value:x,type:k,mode:I}=A||{};if(x&&k&&I)switch(k){case"add":C=t.unref(R).add(x,I);break;case"minus":C=t.unref(R).subtract(x,I);break}C==null&&(C=t.unref(R)),C=(C==null?void 0:C.format((B==null?void 0:B.trim())||E.format))||""}else Object.prototype.toString.call(R)==="[object Object]"?B?C=R[B]:C=N?R[N]:R:dt(E==null?void 0:E.type,"select")&&t.unref(R)&&N&&Array.isArray(t.unref(R))?C=t.unref(R).map(x=>Object.prototype.hasOwnProperty.call(x,N)?x[N]:x):C=R;h[w]=C}else typeof T=="string"&&(h[w]=Re(T))}),h={...window.config.requestParams,...m,...h};let S="";const D=Object.keys(h),b=D.length-1,v=D.length;D.forEach((p,w)=>{let T=h[p];Object.prototype.toString.call(T)==="[object Object]"&&(T=JSON.stringify(T)),w===0?v!==1?S+=`?${p}=${T}&`:S+=`?${p}=${T}`:w===b?S+=`${p}=${T}`:S+=`${p}=${T}&`});try{const p=["get","head"].includes(a),w={};let T=p?y+S:y;h.dataSqlId&&!T.includes("dataSqlId")&&(T+=`${T.includes("?")?"&":"?"}dataSqlId=${h.dataSqlId}`),Object.prototype.hasOwnProperty.call(h,"signal")&&(w.signal=h.signal);const E=await ft({baseURL:t.unref(d)||"",url:T,method:a,headers:r,data:p?{}:h,...w});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:h,value:S}=m,D={...e[0],value:e[0][S]};i.add(h),y.push(D)}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 h=r[m],{label:S,value:D}=h,b={...f,value:f[D]||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),u=[];for(const[y,f]of s)u.push({name:y,data:f});return{dimensions:c,dataset:u}},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},Bi=(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},Ze=(e={})=>{const{requestToken:o}=t.inject(xr,{requestToken:()=>{}}),{setLoadedData:n}=t.inject(vt,{setLoadedData:(g,m)=>{}}),{getGlobalModel:a}=t.inject(Ee,{getGlobalModel:g=>{}});e.dataType==="indicator"&&o();const r=g=>{const{around:m,unit:h,id:S}=g;let D="";const{pageMode:b="",componentList:v=[]}=(e==null?void 0:e.graphicConfig)||{};let p=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:_,startTime:N,endTime:B,operate:A,useCurrentTime:R}=T||{};if(R&&(p=we().subtract(E,_),w=we()),N&&(p=we(N)),B&&(w=we(B)),A){const{type:C,value:O,mode:x}=A;switch(C){case"add":p=p&&p.add(O,x),w=w&&w.add(O,x);break;case"minus":p=p&&p.subtract(O,x),w=w&&w.subtract(O,x)}}}else{const T=a(S)||{};t.unref(T.startTime)&&(p=we(t.unref(T.startTime))),t.unref(T.endTime)&&(w=we(t.unref(T.endTime)))}if(p&&w){const T=w.diff(p,h.toLowerCase());D=`${m==="before"?"-":""}${T+1}`}return D?[D]:[]},i=(g,m)=>Object.prototype.hasOwnProperty.call(g,m),s=g=>{const{calcWays:m=[],dateCalcTypes:h=[],activeKey:S,componentId:D=""}=g;if(S===5&&(m!=null&&m.length)&&(h!=null&&h.length)&&D){const b=m[0].split("-");(b==null?void 0:b.length)>1&&b[0]==="rangeValue"&&(g.calcWays=r({around:b[1],unit:h[0],id:D})),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=we().format(g.dateFormat)),delete g.useCurrentTime},l=g=>{const m=[];return g!=null&&g.length&&_e.cloneDeep(g).forEach(h=>{if(h.join&&h.conditions){const S=!h.conditions.some(D=>D.join&&D.conditions);h.conditions.forEach((D,b)=>{s(D),S?b<h.conditions.length-1?m.push({join:h.join,...D}):m.push(D):D.join&&D.conditions?m.push({conditions:l([D]),join:h.join}):m.push(D)})}else s(h),m.push(h)}),m},d=(g={},m)=>{if(g!=null&&g.sortCpnts&&m){const k=f(g);k&&(m.sort=k)}const{label:h,name:S,location:D,show:b,indexCode:v,indexCodeNum:p,calcType:w="COLUMN",builtInFormula:T,builtInValueSource:E,builtInCalcWay:_,formula:N,conditions:B,aggregate:A,distinct:R,dimByCount:C}=g;let O;if(B&&(O=l(B)),w==="COMPONENT"){const k={};return y(k,E),{label:h.trim(),columnName:S,show:b,calcType:w,componentAlias:_,componentValue:k.fieldValue||null}}const x={label:h.trim(),columnName:S,location:D,show:b,calcType:w,hrpIndexCode:v,hrpIndexCodeNum:p,aggregate:A,builtInFormula:T,builtInValueSource:E,formula:N,conditions:O};if(T==="DATE_OFFSET"){const k=_.split("-");if((k==null?void 0:k.length)===3){let I=k[0];return k[2]==="before"&&k[0]!=="0"&&(I=`-${k[0]}`),{...x,calcWays:[I],dateCalcTypes:[k[1]]}}}else return S==="the_count"&&(x.calcType="AGGREGATE",x.distinct=!!R,x.typeGuid=C),{...x,builtInCalcWay:_}},c=g=>{const m=[];for(const h of g)h.conditions?m.push(...c(h.conditions)):(h==null?void 0:h.dataType)==="component"&&m.push(h);return m},u=g=>{if(!g)return[];const{controlList:m=[],classificationList:h=[],rowHeaderList:S=[],dimensionList:D=[],seriesList:b=[],leftAxisList:v=[],rightAxisList:p=[],queryColumnList:w=[],indicators:T=[]}=g,E=[...h,...S,...D,...b,...v,...p,...w,...T],_=[];for(const R of E){const C=c((R==null?void 0:R.conditions)||[]);if(C!=null&&C.length){const O=C.filter(x=>(x==null?void 0:x.dataType)==="component").map(x=>{const k={};return x!=null&&x.dateFormat&&(k.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,...k}});if(O!=null&&O.length)for(const x of O)_.find(k=>k.keyName===x.keyName)||_.push(x)}}const N=m.concat(_),B=N.length,A=[];for(let R=0;R<B;R++){const C=N[R];if((C==null?void 0:C.conditionKey)==="parentCode")continue;const{id:O,keyName:x,conditionLabel:k,conditionKey:I,conditionValueType:P,prop:q,rule:U="NONE",notGlobal:F=!1,format:M,modelKey:z,indexCode:L,typeGuid:V,indexCodeNum:j}=C;let X=x||O;X&&q&&(X+=`-${q}`);let H=U;H==="NONE"&&(["startTime","endTime"].includes(q)?H=q==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":x!=null&&x.includes("startTime")?H=q==="GREATER_EQUAL":x!=null&&x.includes("endTime")?H=q==="LESS_EQUAL":H="EQUAL");const ee={rule:H,label:k,fieldName:I,fieldValue:"",valueType:P,alias:X,globalCondition:!F,indexCode:L,typeGuid:V,indexCodeNum:j};y(ee,O,{prop:q,dateFormat:M,modelKey:z,keyName:x}),A.push(ee)}for(let R=A.length-1;R>=0;R--){const C=A[R];C.globalCondition||A.find(x=>x.alias===C.alias&&x.globalCondition)&&A.splice(R,1)}return A};function y(g,m,h){var A,R;const S=a(m)||{},{prop:D="",dateFormat:b="",modelKey:v="",keyName:p=""}=h||{},{value:w,format:T="YYYY-MM-DD",type:E="",useCurrentTime:_,RECORD:N}=S||{},B=b||T;if(dt(S.type,"date"))_?w?g.fieldValue=(A=t.unref(w))==null?void 0:A.format(B):g.fieldValue=we().format(B):g.fieldValue=(R=t.unref(w))==null?void 0:R.format(B),g.dateFormat=B;else if(E==="ecanRangePicker"){let C=D;if(!D){const x=p&&p.split("-");x!=null&&x.length&&(C=x[x.length-1])}if(!C)return;let O=null;t.unref(S[C])&&(O=we(t.unref(S[C]))),O&&(g.fieldValue=O==null?void 0:O.format(B)),g.dateFormat=B}else dt(E,Cr)?v&&N?g.fieldValue=N[v]:!v&&N?g.fieldValue=N.value:g.fieldValue=t.unref(w):g.fieldValue=t.unref(w)}const f=g=>{const{sortCpnts:m=[]}=g;let h,S="";for(const D of m){const b=a(D)||{},{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&&(h={label:g.label,columnName:g.name,order:S,type:"NORMAL"}),h};return async(g={})=>{var X,H,ee,ne,ie,oe;n(e.id,!1);const{graphicConfig:m,type:h,isGroupTable:S=!1}=e;let{source:D,dataViewId:b,plugin:v="1",layer:p,chartType:w,classificationList:T=[],rowHeaderList:E=[],dimensionList:_=[],seriesList:N=[],leftAxisList:B=[],rightAxisList:A=[],queryColumnList:R=[],indicators:C=[],controlList:O=[],formFields:x={},idxLibMode:k,preview:I=!1}=m||{},P=[];(m==null?void 0:m.pageMode)==="design"?P=(m.sqlConditions??[]).map(Z=>{const K=Z.rule||"EQUAL",J={};return i(Z,"globalCondition")||(J.globalCondition=!0),{...Z,rule:K==="NONE"?"EQUAL":K,...J}}):P=u(m);for(const Z of P)i(Z,"indexCode")&&(Z.hrpIndexCode=Z.indexCode,delete Z.indexCode),i(Z,"indexCodeNum")&&(Z.hrpIndexCodeNum=Z.indexCodeNum,delete Z.indexCodeNum);p==null&&(dt(h,["table"])?p="1":dt(h,["select","checkbox","radio"])?p="3":p="2");let q,U="";if(Array.isArray(T)&&T.length>0){const Z=T.length;for(let K=0;K<Z;K++){const J=T[K]||{},{label:le="",name:be="",show:Se=!1,sort:Oe,customGroup:Ie,conditions:Be,dateFormat:Ce,typeGuid:Ve="",truncations:Ue=[]}=J;if(Se||Z===1){U=Ve,q={label:le.trim(),columnName:be,show:Se,sort:f(J)||Oe,customGroup:Ie,conditions:l(Be),typeGuid:Ve},Ce&&(q.dateFormat=Ce),be==="the_date"&&!q.dateFormat&&(q.dateFormat="YYYY-MM");const He={};if(Array.isArray(Ue)&&Ue.length>0){const je=Ue.length;for(let Ge=0;Ge<je;Ge++){const ut=Ue[Ge]||{},{rule:tt="",num:nt=0,name:W=""}=ut;tt&&nt&&(He.num=nt,He.rule=tt,W&&(He.otherGroupName=W))}}(X=Object.keys(He))!=null&&X.length&&(q.truncation=He);break}}}let F;if(Array.isArray(N)&&N.length>0){const Z=N.length;for(let K=0;K<Z;K++){const J=N[K]||{},{label:le="",name:be="",show:Se=!1,sort:Oe,customGroup:Ie,conditions:Be}=J;if(Se||Z===1){F={label:le.trim(),columnName:be,show:Se,sort:Oe,customGroup:Ie,conditions:l(Be)};break}}}const M=[];B==null||B.forEach(Z=>{Z.location="LEFT",M.push(d(Z,q))}),A==null||A.forEach(Z=>{Z.location="RIGHT",M.push(d(Z,q))}),C==null||C.forEach(Z=>{Z.location="LEFT",M.push(d(Z,q))});const z=[];R==null||R.forEach(Z=>{const{label:K,name:J,location:le,show:be,indexCode:Se,sort:Oe,typeGuid:Ie,indexCodeNum:Be}=Z;let Ce=Oe;if(g.sort){const{field:Ve,order:Ue}=g.sort;let He=M.find(je=>je.label===Ve);!He&&K===Ve&&(He=Z),He&&(Ce={columnName:He.columnName,label:g.sort.field,order:Ue.toUpperCase(),type:"NORMAL"})}z.push({label:K,columnName:J,location:le,show:be,sort:Ce,calcType:"COLUMN",hrpIndexCode:Se,hrpIndexCodeNum:Be,typeGuid:Ie})});const L=[];let V=[];if(Array.isArray(E)&&E.length>0?V=E:Array.isArray(_)&&_.length>0&&(V=_),V!=null&&V.length){const Z=V.length;for(let K=0;K<Z;K++){const J=V[K]||{},{label:le="",name:be="",show:Se=!1,sort:Oe,customGroup:Ie,conditions:Be,truncations:Ce,typeGuid:Ve="",dateFormat:Ue}=J;let He=Oe;if(g.sort){const{field:ut,order:tt}=g.sort;let nt=M.find(W=>W.label===ut);!nt&&J.label===ut&&(nt=J),nt&&(He={columnName:nt.columnName,label:g.sort.field,order:tt.toUpperCase(),type:"NORMAL"})}const je={label:le.trim(),columnName:be,show:Se,sort:He,customGroup:Ie,conditions:l(Be),typeGuid:Ve};Ue&&(je.dateFormat=Ue),be==="the_date"&&!je.dateFormat&&(je.dateFormat="YYYY-MM");const Ge={};if(Array.isArray(Ce)&&Ce.length>0){const ut=Ce.length;for(let tt=0;tt<ut;tt++){const nt=Ce[tt]||{},{rule:W="",num:Y=0,name:Q=""}=nt;W&&Y&&(Ge.num=Y,Ge.rule=W,Q&&(Ge.otherGroupName=Q))}}(H=Object.keys(Ge))!=null&&H.length&&(je.truncation=Ge),L.push(je)}}if(dt(h,["text","proportion"])&&(w="zb"),S){if(L.length===0||M.length===0)return;w="grouptable"}else{if(p==="1"&&z.length===0)return;if(p==="2"&&M.length===0)return;if(p==="3"&&(!U||!x.labelField||!x.valueField))return;if(p==="3"&&h==="ecanDataSelect"&&M.length===0)return}_!=null&&_.length&&(p="1",w="grouptable");let j=(ee=window==null?void 0:window.config)==null?void 0:ee.pageId;if(!j){const{pathname:Z}=window==null?void 0:window.location;if(Z){const K=Z.split("/");K!=null&&K.length&&(j=K[K.length-1])}}if((ne=Object.keys(x))!=null&&ne.length){const Z=O.find(J=>J.conditionKey==="parentCode"),K={};if(Z){const J=a(Z.id)||{};if(J!=null&&J.itemCodes)K.parentItemCodes=J.itemCodes;else return}h==="ecanDataSelect"&&(K.indicatorList=M.filter(J=>J.show));try{return await ft.post(`${vr}/diagram/formData`,{source:D,dataViewId:b,plugin:"4",layer:p,chartType:"normalSelect",rangeIndexTypeGuid:U,type:h==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:x.labelField,valueField:x.valueField,pageId:j,sqlConditions:P,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...K},{headers:{Authentication:(ie=window==null?void 0:window.config)==null?void 0:ie.indicatorToken,operateContext:br}})}catch(J){console.error(J)}finally{}}else try{return await ft.post(`${vr}/diagram`,{source:D,dataViewId:b,plugin:v,layer:p,chartType:w,classification:q,series:F,indicatorList:M,queryColumns:S?[]:z,pageFlag:!0,pageId:j,sqlConditions:P.map(K=>{const{fieldValue:J}=K,le={};return J&&Array.isArray(J)&&(le.fieldValue=JSON.stringify(J)),{...K,...le}}),idxLibMode:k,preview:I,rowHeaders:L,keyName:e.keyName},{headers:{Authentication:(oe=window==null?void 0:window.config)==null?void 0:oe.indicatorToken,operateContext:br}})}catch(Z){console.error(Z)}finally{}}},Hc=()=>{const o=window.location.search.slice(1).split("&"),n=o.length,a={};for(let r=0;r<n;r++){const i=o[r];if(i==null||i==="")continue;const s=i.split("=");if(Array.isArray(s)){const l=s[0];a[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},jc=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...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),u=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",D),b(),u.value=!0},{immediate:!0});const h=t.ref({});t.provide("scaleValue",h);const S=()=>{if(r){y.value.style.width="100%",y.value.style.height="auto",a("auto");return}const p=document.body.clientWidth,w=document.body.clientHeight,T=s.value||d.value,E=l.value||c.value,_=p/T;let N=w/E;(s.value!==1920||l.value!==1080)&&(N=l.value/s.value*p/E),h.value={widthScale:_,heightScale:N},y.value&&(y.value.style.transform=`scale(${_}, ${N})`),a(N)},D=_e.debounce(async()=>{await g(),S()},100),b=()=>{const p=window.MutationObserver;f=new p(D),f.observe(y.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},v=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return t.onMounted(()=>{u.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",D),v()}),{style:i,container:y,ready:u}}}),Ku="",Wc={id:"container",ref:"container"};function Gc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",Wc,[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 Ei=pe(me(jc,[["render",Gc],["__scopeId","data-v-b496b36e"]])),Oo={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},_o=ve(Oo),Uc=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{..._o},setup(e,{expose:o}){Hc();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(()=>Re(e.contextRequestUrl)),l=t.computed(()=>e.pageMode),d=t.computed(()=>e.theme),c=t.computed(()=>e.width),u=t.computed(()=>e.height),y=t.ref("");t.provide(Pe,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:y,width:c,height:u});const f=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",H=>{let ee=H;n.value||(ee=parseFloat(u.value)*H+"px"),f.value.height=ee}),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 h=H=>m.get(H),S=(H,ee)=>{g.value=ee,m.set(H,ee)},D=()=>{g.value=null},b=H=>{let ee=H;if(ee){const ne=H.match(/\{(.+?)\}/g);if(ne!=null&&ne.length){let ie=ne[0].slice(1,-1).trim();const oe=ie.match(/\[(.+?)\]/g);let Z="";oe!=null&&oe.length&&(ie=ie.replace(oe[0],""),Z=oe[0].slice(1,-1).trim());const K=t.unref(i).find(J=>J.keyName===ie);if(K){const J=h(K.id),{type:le,value:be,RECORD:Se,recordData:Oe}=J||{};dt(le,Cr)?ee=Se[Z]:dt(le,"select")?ee=Oe[Z]:ee=be}else ee=""}}return ee},v=new Map,p=H=>v.get(H),w=(H,ee)=>{v.set(H,ee)};t.provide(Ee,{getGlobalModel:h,setGlobalModel:S,clearInteractiveData:D,getRecordValueByKeyName:b,getRequestData:p,setRequestData:w,interactiveData:g});const T=t.ref({}),E=(H,ee)=>{T.value[H]=ee};t.provide(vt,{loadedData:T,setLoadedData:E});const _=[],N=()=>{_.pop()},B=H=>{_.push(H)},A=new Map,R=H=>A.get(H),C=(H,ee)=>{A.set(H,ee)};t.provide(pr,{popUseModalIds:N,pushUseModalIds:B,getModalModel:R,setModalModel:C});const O=Jl(),x=new Set,k=(H,ee)=>{x.add(H),O.on(H,ne=>typeof ee[ne]=="function"&&ee[ne]()),t.onBeforeUnmount(()=>{I(H)})},I=H=>{x.delete(H),O.off(H)},P=(H,ee)=>{if(H==="PAGE"){const ne=_.length;let ie=[];if(ne===0)ie=[...x];else{const oe=_[ne-1];ie=[...R(oe)]}ie.forEach(oe=>{O.emit(oe,ee)})}else O.emit(H,ee)};t.provide(Vn,{onEvent:k,offEvent:I,emitEvent:P});const q=t.ref(0),U=()=>{q.value=t.unref(q)+1};t.provide(xr,{requestToken:U});const F=new Map,M=new Map,z=({requestFn:H=()=>{},sortNum:ee=0,id:ne=""})=>{if(F.has(ee)){const ie=F.get(ee);ie==null||ie.push(H)}else F.set(ee,[H]);M.set(ne,H)},L=H=>new Promise((ee,ne)=>{const ie=H.map(oe=>oe());Promise.all(ie).then(oe=>{ee(oe)}).catch(oe=>{ne(oe)})}),V=H=>new Promise(async(ee,ne)=>{if(H){if(typeof H=="string"){const ie=M.get(H);if(typeof ie=="function"){const oe=ft.interceptors.response.use(Z=>(ee(Z),Z),Z=>(ne(Z),Promise.reject(Z)));ie(),ft.interceptors.response.eject(oe)}}}else{const ie=Array.from(F);ie.sort((Z,K)=>K[0]-Z[0]);const oe=ie.length;try{e.pageMode!=="design"&&t.unref(q)>0;for(let Z=0;Z<oe;Z++){const K=ie[Z][1];await L(K)}}catch(Z){console.error(Z)}finally{F.clear(),ee(null)}}});t.provide(Me,{setRequest:z,touchRequest:V});const j=()=>{O.emit(tn)};t.provide(tn,{emitRefreshPage:j});const X=H=>{O.on(tn,()=>H()),t.onMounted(()=>{O.off(tn)})};return t.onBeforeUnmount(()=>{F==null||F.clear(),M==null||M.clear()}),o({touchRequest:V,getGlobalModel:h,onRefreshPage:X}),{providerConfig:a,configStyle:f}}}),Yu="";function $c(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 Di=pe(me(Uc,[["render",$c],["__scopeId","data-v-b651b2cf"]])),Lo={...Te,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=ve(Lo),Ri=["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=",zo="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==",Mo=t.defineComponent({name:"EcanText",components:{Skeleton:en},props:{...No},setup(e,{expose:o}){const n=t.ref(!1),a=ke(e),r=t.ref({}),i=t.computed(()=>e.variableFontSize||"14px"),s=t.computed(()=>"-"+t.unref(i));t.watch(()=>[e.data,e.dataType],([O,x])=>{x==="static"&&(r.value=O)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c,getRequestData:u}=t.inject(Ee,{getGlobalModel:O=>{},setGlobalModel:(O,x)=>{},getRecordValueByKeyName:O=>{},getRequestData:O=>{}}),{setLoadedData:y}=t.inject(vt,{setLoadedData:(O,x)=>{}}),f=t.computed(()=>{let O="";if(e.gradientShow){const{gradientColor:x,gradientOffset:k,gradientAngle:I,color:P}=e;O+=`background: linear-gradient(${I}, ${P}, ${x||"transparent"} ${k*100}%);-webkit-background-clip: text;color: transparent;`}return O}),g=t.computed(()=>{const O={};if(e.gradientShow){const{gradientColor:x,gradientOffset:k,gradientAngle:I,color:P}=e,q=x||"transparent";O.background=`linear-gradient(${I}, ${P}, ${q} ${k*100}%)`,O["-webkit-background-clip"]="text",O.color="transparent"}return O}),m=t.computed(()=>{var U;if(t.unref(n))return"NaN";const O=t.unref(r),x=e.increaseColor||e.color,k=e.declineColor||e.color;let I=e.text;I=I==null?void 0:I.replace(/\n|\\n/g,"<br/>"),I=I==null?void 0:I.replace(/\s(?!\{) | (?!\})\s/g," ");const P=I.match(/\{(.+?)\}/g)||[];let q="";if(P==null||P.length===0){if(I&&e.format==="percentage"&&!isNaN(+I)){const F=parseFloat(I),M=F*100,z=h(M.toFixed(2));F>=0?I=`<span style="color: ${z||x||"#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(${
|
|
101
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${z||x||"#ED6643"} ${t.unref(i)} 0px)`};" src="${Fo}"/>
|
|
102
102
|
</div>
|
|
103
|
-
<span style="color: ${
|
|
104
|
-
</span>`:
|
|
103
|
+
<span style="color: ${z||e.color};${t.unref(f)}">${Math.abs(+M).toFixed(2)}%</span>
|
|
104
|
+
</span>`:I=`<span style="color: ${z||k||"#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(${
|
|
106
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${z||k||"#6ACB97"} ${t.unref(i)} 0px)`};" src="${zo}"/>
|
|
107
107
|
</div>
|
|
108
|
-
<span style="color: ${
|
|
109
|
-
</span>`}q=
|
|
108
|
+
<span style="color: ${z||e.color};${t.unref(f)}">${e.minusSignShow?"-":""}${Math.abs(+M).toFixed(2)}%</span>
|
|
109
|
+
</span>`}q=I}for(let F=0;F<P.length;F++){const M=P[F],z=(U=M==null?void 0:M.slice(1,M.length-1))==null?void 0:U.trim();let L=z;const V=z.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let X=0;X<V.length;X++){const H=V[X],ee=O[H];ee&&(L=z.replace(H,c(String(ee))||ee))}if(/\(.*\)/g.test(L)){const X=Cn(L);X!=null&&(L=X)}let j=L;if(j===z&&(j=e.variableDefaultValue),j!=null){const X=e.format;if(X==="percentage")if(j=+j,isNaN(j))I=I.replace(M,`<span style="color:${h("0.00")||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">0%</span>`);else if(j>=0){j=j*100;const H=h(j.toFixed(2));I=I.replace(M,`<span style="color: ${H||x||"#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(${
|
|
111
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${H||x||"#ED6643"} ${t.unref(i)} 0px)`};" src="${Fo}"/>
|
|
112
112
|
</div>
|
|
113
|
-
<span style="color: ${
|
|
114
|
-
</span>`)}else{
|
|
113
|
+
<span style="color: ${H||e.color};${t.unref(f)}">${Math.abs(+j).toFixed(2)}%</span>
|
|
114
|
+
</span>`)}else{j=j*100;const H=h(j.toFixed(2));I=I.replace(M,`<span style="color: ${H||k||"#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(${
|
|
116
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${H||k||"#6ACB97"} ${t.unref(i)} 0px)`};" src="${zo}"/>
|
|
117
117
|
</div>
|
|
118
|
-
<span style="color: ${
|
|
119
|
-
</span>`)}else e.format==="percent"?(L=+L,isNaN(L)||(L=(L*100).toFixed(2),D=D.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}%</span>`))):e.format==="money"?(L=+L,isNaN(L)||(L=Ro(L),D=D.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}</span>`))):V==="thousands"?(L=+L,isNaN(L)||(L=qc(L),D=D.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}</span>`))):D=D.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}</span>`)}}if(q||(q=`<span style="color: ${m(D)};${t.unref(y)}">${D}</span>`),e.unitShow&&e.unitText){const{unitTop:G,unitLeft:z}=e;let P="position:relative;";G&&(P+=`top:${G};`),z&&(P+=`margin-left:${z};`),q+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${P};${t.unref(y)}'>${e.unitText}</span>`}return q});function m(x){let B="",b=!1;const{targetValue:D,targetShow:F,notExpectColor:q}=e;if(F){switch(e.targetRule){case"equal":x!==D&&(b=!0);break;case"greater":x<=D&&(b=!0);break;case"greater_equal":x<D&&(b=!0);break;case"less":x>=D&&(b=!0);break;case"less_equal":x>D&&(b=!0);break}b&&(B=q)}return B}const{pageMode:g}=t.inject(Me,{pageMode:"normal"}),C=Ve(e),E=t.ref(!1),v=async()=>{var x;try{E.value=!0;const B=await C();r.value=((x=B==null?void 0:B.data)==null?void 0:x.data)||{}}catch(B){console.error(B)}finally{E.value=!1}},S=(x={})=>{r.value=x},p=x=>{const B=e.id,b=l(B);d(B,{...b,value:x||"",RECORD:x||""})},A=()=>{p("")},T=Ze(e),k=async()=>{var x,B;try{E.value=!0;const b=await T(),{data:D}=(b==null?void 0:b.data)||{};if(D){n.value=!1;const{columns:F=[],rows:q=[]}=((x=b==null?void 0:b.data)==null?void 0:x.data)??{},{graphicConfig:H}=e;let G={};if(F.length>0)if((B=H==null?void 0:H.dimensionList)!=null&&B.length){const z=F[0];z&&(q!=null&&q.length)&&(G={value:q[0][z]})}else{const z=F.find(P=>!!P);z&&(G={value:isNaN(q[z])?0:q[z]||0})}p(G==null?void 0:G.value),S(G)}else n.value=!0,p("NaN"),S({value:"NaN"})}catch(b){console.error(b)}finally{E.value=!1,f(e.id,!0)}},O=()=>{switch(e.dataType){case"indicator":k();break;case"request":v();break}},{setRequest:N}=t.inject(Fe,{setRequest:({id:x,sortNum:B,requestFn:b})=>{}});typeof N=="function"&&N({id:e.id,requestFn:O,sortNum:e.requestSort}),Re(e,{refreshData:O,resetRecord:A}),o({refreshData:O});const I=Be(e),w=I("click",()=>{const x=document.getElementsByClassName(`ecan-text_${e.id}`);if(x!=null&&x.length&&p(x[0].innerText),setTimeout(()=>{p("")},0),!e.linkPage&&!e.href)return;const B=e.linkPage||"",b=Bi(t.unref(g),B),D=e.href;let F=D||b;F=De(F);const q=e.target;q&&(q!=="event"?window.open(F,"_"+q):window.parent.postMessage({type:"openPage",url:D},"*"))}),R=I("valueChange",()=>{});return t.watch(()=>h.value,(x,B)=>{x!==B&&R()}),{style:a,myText:h,loading:E,click:w,textIndent:s,vFontSize:i,gradientStyle:u}}}),Ri=()=>{t.useCssVars(e=>({bf700b4e:e.vFontSize,"10d75bc6":e.textIndent,d0a92fc4:e.percentageSide}))},Oi=Mo.setup;Mo.setup=Oi?(e,o)=>(Ri(),Oi(e,o)):Ri;const Ju="",Kc=["innerHTML"];function Zc(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,Kc))}const _i=pe(me(Mo,[["render",Zc],["__scopeId","data-v-fc956f5c"]])),Yc=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),eh="",Qc={class:"red"};function Jc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",Qc,t.toDisplayString(e.text),1)}const Li=pe(me(Yc,[["render",Jc],["__scopeId","data-v-4dd9c03e"]])),Po={...ke,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=ve(Po),Ni=["timeChange"],Xc=t.defineComponent({name:"EcanTimeDisplay",props:{...qo},setup(e){const o=Ae(e),n=()=>{const{format:c,operate:f}=e;let y=Se();if(f){const{type:u,value:h,mode:m}=f;switch(u){case"add":y=y.add(h,m);break;case"minus":y=y.subtract(h,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=Be(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:f,mode:y}=e.updateInterval||{};f&&(c=c*f);const u={second:1,minute:60,hour:60*60,day:24*60*60};y&&(c=c*u[y]),r=setInterval(()=>{a.value=n(),l()},c)};return Re(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{i()}),{style:o,time:a}}}),nh="";function ed(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 Fi=pe(me(Xc,[["render",ed],["__scopeId","data-v-b628fca2"]])),Vo={...ke,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",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}"},Ho=ve(Vo),zi=["refreshData","click","resetRecord"],td="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",nd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",od="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",ad="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",rd=t.defineComponent({name:"EcanList",components:{Skeleton:en,ATooltip:se.Tooltip,MarqueeScroll:Mn},props:{...Ho},setup(e,{expose:o}){const n=t.ref(),a=Ae(e,["backgroundColor"]),r=(x,B)=>{const{format:b,customFormatter:D}=B;if(b==null||b==="")return x;const F={money:Ro,percentage:Sn,contrast:Sn,custom:Ti};return F[b]?b==="custom"?F[b](x,D)||"":F[b](x)||"":""},i=(x,B)=>{const b=parseFloat(x+"");if(B!=="contrast")return"";switch(!0){case b>=0:return"goUp";case b<0:return"goDown"}},s=Ve(e),l=t.ref(!1),d=async()=>{var x;if(e.dataType==="request")try{l.value=!0;const B=await s();n.value=((x=B==null?void 0:B.data)==null?void 0:x.data.rows)||[]}catch(B){console.error(B)}finally{l.value=!1}};t.watch(()=>e.data,()=>{(e.dataType==="static"||!t.unref(n))&&(n.value=e.data)},{immediate:!0,deep:!0});const c=t.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),f=t.computed(()=>{const{columns:x,isUseSeq:B}=e;return B?[t.unref(c),...x]:x}),y=Ze(e),u=async()=>{var x;try{l.value=!0;const B=await y(),{columns:b=[],rows:D=[]}=((x=B==null?void 0:B.data)==null?void 0:x.data)??{};e.isUseSeq&&b.unshift(e.seqName),f.value.forEach((F,q)=>{(!e.isUseSeq||q!==0)&&(F.title=b[q],F.key=b[q])}),n.value=D}catch(B){console.error(B)}finally{l.value=!1}},h=()=>{switch(e.dataType){case"indicator":u();break;case"request":d();break}},m=Be(e),{getGlobalModel:g,setGlobalModel:C}=t.inject(Te,{getGlobalModel:x=>{},setGlobalModel:(x,B)=>{}}),E=x=>{m("click",()=>{const B=g(e.id);C(e.id,{...B,type:e.type,RECORD:x})})()};Re(e,{refreshData:h,resetRecord:()=>{const x=e.id,B=g(x);C(x,{...B,type:e.type,RECORD:""})}});const{setRequest:S}=t.inject(Fe,{setRequest:({id:x,sortNum:B,requestFn:b})=>{}});typeof S=="function"&&S({id:e.id,requestFn:h,sortNum:e.requestSort}),o({refreshData:h});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,B)=>{let b=0;const D=t.unref(n).map(q=>q[B]),F=Math.max(...D);return F&&(b=x[B]/F*100),b},T=x=>{const{progressColor:B="#1890ff",progressGradientColor:b=""}=x;return b?{background:`linear-gradient(to right, ${B} 0%, ${b} 100%)`}:{backgroundColor:B||"#1890ff"}},k=t.computed(()=>{const x=parseFloat(e.seqFontSize)+5;return{width:x+10,height:x}}),{pageMode:O}=t.inject(Me,{pageMode:"normal"}),N=t.computed(()=>t.unref(O)!=="design"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:n,loading:l,myColumns:f,click:E,getColumnStyle:p,getPercentage:A,getBackgroundColor:T,isShowSeqIcon:x=>{const{seqIconConfig:B}=e;let b=B.find(D=>D.key===x+1);return b||(b=B.find(D=>D.key==="other")),!!(b!=null&&b.icon)},getSeqIconData:(x,B)=>{const{seqIconConfig:b}=e;let D=b.find(F=>F.key===x+1);return D||(D=b.find(F=>F.key==="other")),B===1?D!=null&&D.icon?yt(D.icon):"":B===2?(D==null?void 0:D.color)||"#fff":""},seqIcon4:td,seqIcon5:nd,seqIcon6:od,seqIcon7:ad,iconSize:k,isScroll:N,formatSeq:x=>{const{seqIndexFormatter:B}=e,b=x+1;return B?De(B,{textData:{index:b}},{useNewline:!1,useSpace:!0}):b}}}}),ah="",rh="",id=e=>(t.pushScopeId("data-v-29cacc3c"),e=e(),t.popScopeId(),e),ld={key:0,class:"title"},sd={key:0,class:"ranking"},cd={key:1,class:"ecan-list-content"},dd=["onClick"],fd={key:0,class:"ranking"},ud=id(()=>t.createElementVNode("div",{class:"icon"},null,-1)),hd={class:"sort"},gd=["src"],md={key:1},yd=["src","width","height"],xd=["src","width","height"],pd=["src","width","height"],bd=["src","width","height"],vd={key:1},Sd={key:2,class:"empty"};function Cd(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",ld,[(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",sd)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(f,y)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:f.key||y,style:t.normalizeStyle({color:f.titleColor,...e.getColumnStyle(f)})},t.toDisplayString(f.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",cd,[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},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(f+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||f,onClick:y=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",fd,[ud,t.createElementVNode("div",hd," Top "+t.toDisplayString(f+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,y=>{var u;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},[(u=e.seqIconConfig)!=null&&u.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"icon-box",style:t.normalizeStyle({width:e.seqIconWidth||"",height:e.seqIconHeight||""})},[e.seqIconWidth&&e.seqIconHeight&&e.isShowSeqIcon(f)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(f,1),style:t.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,gd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"custom-seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(f,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(e.formatSeq(f)),5)],4)):(t.openBlock(),t.createElementBlock("div",md,[f===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,yd)):f===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,xd)):f===2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,pd)):f>=3?(t.openBlock(),t.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,bd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize})},t.toDisplayString(e.formatSeq(f)),5)]))],64)):(t.openBlock(),t.createElementBlock("span",vd,t.toDisplayString(e.formatSeq(f)),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,dd))),128))]),_:1},8,["visible","step"])])):(t.openBlock(),t.createElementBlock("div",Sd," 暂无数据 "))]),_:1},8,["loading"])],4)}const Mi=pe(me(rd,[["render",Cd],["__scopeId","data-v-29cacc3c"]])),jo={...ke,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:{}},Wo=ve(jo),Pi=["refreshData","click"],wd=t.defineComponent({name:"EcanProportion",components:{AProgress:se.Progress,Skeleton:en},props:{...Wo},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(Me,{pageMode:"normal"}),r=Ae(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 T=e.text.match(/\{.+\}/g)||[];let k;const O=new Set(Object.keys(p));for(let N=0;N<T.length;N++){const I=T[N],w=I.slice(1,I.length-1);if(O.has(w)){k=p[w];break}}return typeof k=="number"?k=k*100:typeof k=="string"&&!isNaN(+k)?k=+k*100:isNaN(A)?k=0:k=A*100,e.decimalFormat&&(k=+k.toFixed(2)),k}),d=t.computed(()=>{var O;let p=e.text;if(p==="")return t.unref(l);const A=e.variableDefaultValue,T=t.unref(s),k=p.match(/\{.+\}/g)||[];for(let N=0;N<k.length;N++){const I=k[N];let w=I.slice(1,I.length-1);const R=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,x=I.match(R);for(let b=0;b<(x==null?void 0:x.length);b++){const D=(O=x[b])==null?void 0:O.trim();T[D]!=null&&(w=w.replace(D,T[D]))}let B=w;try{/\(.*\)/g.test(w)&&(B=Cn(w))}catch(b){console.error(b)}typeof+B=="number"&&!isNaN(+B)?(B=+B*100,e.decimalFormat&&(B=B.toFixed(2))):B=A,p=p.replace(I,B+"")}return t.unref(n)?"NaN":p}),c=Ve(e),f=t.ref(!1),y=async()=>{var p;if(e.dataType==="request")try{f.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{f.value=!1}},u=(p={})=>{s.value=p},h=Ze(e),m=async()=>{var p;try{f.value=!0;const A=await h(),{data:T}=(A==null?void 0:A.data)||{};if(T){n.value=!1;const{columns:k=[],rows:O=[]}=((p=A==null?void 0:A.data)==null?void 0:p.data)??{};let N={};if(k.length>0){const I=k.find(w=>!!w);I&&(N={percent:O[I]})}u(N)}else n.value=!0,u({percent:"NaN"})}catch(A){console.error(A)}finally{f.value=!1}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":y();break}};Re(e,{refreshData:g}),o({refreshData:g});const E=Be(e)("click",()=>{}),{setRequest:v}=t.inject(Fe,{setRequest:({id:p,sortNum:A,requestFn:T})=>{}});typeof v=="function"&&v({id:e.id,requestFn:g,sortNum:e.requestSort});const S=t.computed(()=>{const{gradientShow:p,gradientColor:A,gradientOffset:T,strokeColor:k}=e;let O=k;return p&&A&&(O={"0%":k,[`${T*100}%`]:A}),O});return{style:r,myWidth:i,text:d,myValue:l,loading:f,click:E,customStrokeColor:S}}}),lh="";function Ad(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 qi=pe(me(wd,[["render",Ad],["__scopeId","data-v-cf942b5f"]])),Uo={...ke,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Go=ve(Uo),Vi=["inputChange","inputBlur"],kd=t.defineComponent({name:"EcanInput",components:{AInput:se.Input},props:{...Go},setup(e){const o=Ae(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=t.inject(Te,{getGlobalModel:f=>{},setGlobalModel:(f,y)=>{},getRecordValueByKeyName:f=>{}});t.watch(()=>e.value,f=>{n.value=i(f)},{immediate:!0}),r(e.id,{type:e.type,value:n});const s=()=>{const f=a(e.id);r(e.id,{...f,RECORD:n})},l=Be(e),d=Ie.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),ch="";function Td(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 Hi=pe(me(kd,[["render",Td]])),$o={...ke,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"},Ko=ve($o),ji=["dateChange"],Zo=t.defineComponent({name:"EcanDatePicker",props:{...Ko},components:{ADatePicker:se.DatePicker},setup(e){const o=t.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=Ae(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([u,h,m])=>{let g=null;if(u?g=Se(De(u)):h&&(g=Se()),m&&g){const{type:C,value:E,mode:v}=m;switch(C){case"add":g=g.add(E,v);break;case"minus":g=g.subtract(E,v)}}r.value=g},{deep:!0,immediate:!0});const{setGlobalModel:i}=t.inject(Te,{setGlobalModel:(u,h)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Be(e)("dateChange",()=>{}),d=()=>{t.unref(r)&&l()};Re(e,{dateChange:l});const c=t.ref({}),f=t.ref({}),y=u=>{u?setTimeout(()=>{f.value=t.unref(c)},300):f.value={}};return t.onMounted(()=>{setTimeout(()=>{const u=document.querySelector(`#ecan-date-picker-${e.id}`);if(u){const h=u.getBoundingClientRect(),m=parseFloat(t.unref(o).widthScale)*280;document.body.clientWidth-h.left<m&&(c.value.marginLeft=-1*(m-h.width)+"px")}},0)}),{style:n,getPopupContainer:a,myValue:r,locale:Ua,change:d,scaleValue:o,popupStyle:c,customStyle:f,openChange:y}}}),Wi=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Ui=Zo.setup;Zo.setup=Ui?(e,o)=>(Wi(),Ui(e,o)):Wi;const fh="",uh="",Bd=["id"];function Ed(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,Bd)}const Gi=pe(me(Zo,[["render",Ed],["__scopeId","data-v-d4ec0d66"]])),Yo={...ke,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=ve(Yo),$i=["dateChange"];var Ki={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(de,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,f){return c=Number(c),this.$utils().p(f)===a?this.add(3*c,n):l.bind(this)(c,f)};var d=s.startOf;s.startOf=function(c,f){var y=this.$utils(),u=!!y.u(f)||f;if(y.p(c)===a){var h=this.quarter()-1;return u?this.month(3*h).startOf(n).startOf("day"):this.month(3*h+2).endOf(n).endOf("day")}return d.bind(this)(c,f)}}})})(Ki);var Dd=Ki.exports;const Id=wr(Dd);Se.extend(Id);const Jo=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:se.RangePicker},props:{...Qo},setup(e){const o=Ae(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([S,p,A,T,k,O])=>{let N=null,I=null;if(A&&(N=Se().subtract(T,k),I=Se()),S&&(N=Se(De(S))),p&&(I=Se(De(p))),O){const{type:w,value:R,mode:x}=O;switch(w){case"add":N=N&&N.add(R,x),I=I&&I.add(R,x);break;case"minus":N=N&&N.subtract(R,x),I=I&&I.subtract(R,x)}}a.value=[N,I]},{immediate:!0});let r=t.unref(a)[0],i=t.unref(a)[1],s="";const l=(S,p,A)=>{Array.isArray(S)?(r=S[0],i=S[1],s=A.range):(r=null,i=null)};window.dayjs=Se;const d=S=>{let p=!1,{limitStartTime:A,limitEndTime:T}=e;const k={startTime:`${r||""}`,endTime:`${i||""}`};if(A=De(A,{codeData:k}),T=De(T,{codeData:k}),A&&T?p=!(Se(A)<S&&S<Se(T)):A?p=Se(A)>S:T&&(p=Se(T)<S),!e.isAllowSpanYear&&s){let O=null;if(s==="start"?O=r:s==="end"&&(O=i),O){const N=O.startOf("year"),I=O.endOf("year");p=!(N<=S&&S<I)}}if(!p){const{value:O=0,mode:N="year"}=e.limitInterval||{};O&&(s==="start"?p=r.add(O,N)<S:s==="end"&&(p=i.subtract(O,N)>S))}return p},{getGlobalModel:c,setGlobalModel:f}=t.inject(Te,{getGlobalModel:S=>{},setGlobalModel:(S,p)=>{}}),y=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),u=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:y,endTime:u,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const h=Be(e);let m=!1;const g=h("dateChange",()=>{}),C=S=>{const p=t.unref(a),A=p&&p[0]&&p[1];S===!1&&m===!0&&A&&(g(),m=!1),S||(s="")},E=()=>{m=!0};return Re(e,{dateChange:()=>{const{associated:S}=e;if(S){const p=c(S)||{};if(p){const{value:A}=p;if(A)switch(t.unref(A)){case"month":a.value=[Se().startOf("month"),Se().endOf("month")];break;case"quarter":a.value=[Se().startOf("quarter"),Se().endOf("quarter")];break;case"year":a.value=[Se().startOf("year"),Se().endOf("year")];break}}}g()}}),{style:o,getPopupContainer:n,locale:Ua,dateChange:g,myValue:a,disabledDate:d,calendarChange:l,openChange:C,change:E}}}),Zi=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},Yi=Jo.setup;Jo.setup=Yi?(e,o)=>(Zi(),Yi(e,o)):Zi;const gh="",mh="";function Rd(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 Qi=pe(me(Jo,[["render",Rd],["__scopeId","data-v-c9c68612"]])),Xo={...ke,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=ve(Xo),Ji=["click"],Od=t.defineComponent({name:"EcanButton",components:{AButton:se.Button},props:{...ea},setup(e){const o=Ae(e),a=Be(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(()=>De(e.text)),s=t.computed(()=>De(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}}}),xh="";function _d(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 Xi=pe(me(Od,[["render",_d]])),ta={...ke,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=ve(ta),el=["checkboxChange"],Ld=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:se.CheckboxGroup},props:{...na},setup(e,{expose:o}){const n=Ae(e),a=t.ref([]),r=t.ref([]),i=C=>{const E=e.value;let v=[];C.forEach(S=>{S.checked&&v.push(S.value)}),typeof E=="string"&&E!==""?v=v.concat(E.split(",")):Array.isArray(E)&&(v=v.concat(E)),a.value=C,r.value=v};t.watch(()=>[e.data,e.value],([C])=>{i(C)},{immediate:!0,deep:!0});const s=Ve(e),l=async()=>{var v,S;if(e.dataType!=="request")return;const C=await s(),E=((S=(v=C==null?void 0:C.data)==null?void 0:v.data)==null?void 0:S.rows)||[];i(E)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Te,{getGlobalModel:C=>{},setGlobalModel:(C,E)=>{}});c(e.id,{type:e.type,value:r});const y=Be(e)("checkboxChange",()=>{const C=d(e.id);c(e.id,{...C,RECORD:r})}),u=Ze(e),h=async()=>{var C;try{const E=await u(),{data:v}=(E==null?void 0:E.data)||{};if(v){const p=(((C=E==null?void 0:E.data)==null?void 0:C.data)??[]).map(A=>({label:A.label,value:A.value}));i(p)}else i([])}catch(E){console.error(E)}},m=()=>{switch(e.dataType){case"indicator":h();break;case"request":l();break}},{setRequest:g}=t.inject(Fe,{setRequest:({id:C,sortNum:E,requestFn:v})=>{}});return typeof g=="function"&&g({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:n,myValue:r,checkboxChange:y}}}),bh="";function Nd(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 tl=pe(me(Ld,[["render",Nd]])),oa={...ke,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=ve(oa),nl=["selectChange","refreshData"],Fd=t.defineComponent({name:"EcanSelect",components:{ASelect:se.Select,ASelectOption:se.SelectOption},props:{...aa},setup(e,{expose:o}){const n=Ae(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=Ve(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var D;const{mode:b}=e;return(D=t.unref(i))!=null&&D.length?s.value:b==="multiple"||b==="tags"||b==="combobox"?[]:""},set:b=>{s.value=b}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:f}=t.inject(Te,{getGlobalModel:b=>{},setGlobalModel:(b,D)=>{},getRecordValueByKeyName:b=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:b,selectFirstOption:D,value:F}=e,q=f(F),H=y.value;if(b==="multiple"||b==="tags"||b==="combobox"){if(q)s.value=q.split(",");else if(D){const G=t.unref(i)[0];s.value=G?[G[H]]:[]}}else if(q)s.value=q;else if(D){const G=t.unref(i)[0];s.value=G?G[H]:""}},{immediate:!0});const u=(b,D)=>{const F=y.label,q=y.value;let H;const G=D[F],z=D[q];return G!=null?H=G:z!=null&&(H=z),(H==null?void 0:H.toLowerCase().indexOf(b==null?void 0:b.toLowerCase()))>=0},h=b=>{const{label:D,value:F,options:q}=e.dataFieldNames;if(q&&Array.isArray(b))if(b.some(H=>q in H)){const H={},G=[];b.forEach(z=>{H[z[q]]||(H[z[q]]=[]),H[z[q]].push({[D]:z[D],[F]:z[F]})});for(const z in H)G.push({[D]:z,[q]:H[z]});return G}else return b;else if(!q)return b},m=t.ref(!1),g=async()=>{var b,D;if(e.dataType==="request"){m.value=!0;try{const F=await r();if(i.value=h(((D=(b=F==null?void 0:F.data)==null?void 0:b.data)==null?void 0:D.rows)||[]),e.selectFirstOption){let q=t.unref(i)[0];if(y.options){const H=q[y.options];H&&H.length&&(q=H[0])}s.value=q[y.value]}}catch(F){console.error(F)}finally{m.value=!1}}},{setLoadedData:C,loadedData:E}=t.inject(vt,{setLoadedData:(b,D)=>{},loadedData:{}}),v=t.computed(()=>{let b=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const D=y.label,F=y.value;if(e.mode==="multiple")b=t.unref(i).filter(q=>t.unref(s).includes(q[F])).map(q=>q[D]);else{const q=t.unref(i).find(H=>t.unref(s)===H[F]);q&&(b=q[D])}}return b}),S=t.ref([]),p=t.computed(()=>{const b={};if(e.mode!=="multiple"){const D=t.unref(S).find(F=>F.value===t.unref(s));D&&(b.itemCodes=D.item_codes)}return b}),A=t.computed(()=>{const{value:b,label:D}=y,F=t.unref(i).find(q=>q[b]===t.unref(l));return F?{label:F[D],value:F[b]}:{}});c(e.id,{type:e.type,value:v,...t.unref(p),recordData:t.unref(A)});const k=Be(e)("selectChange",()=>{const b=e.id,D=d(b);c(b,{...D,...t.unref(p),RECORD:v,recordData:t.unref(A)})}),O=(b=[])=>{if(i.value=h(b),e.selectFirstOption){let D=t.unref(i)[0];if(y.options){const F=D[y.options];F&&F.length&&(D=F[0])}s.value=D[y.value]}c(e.id,{type:e.type,value:v,...t.unref(p),recordData:t.unref(A)})},N=Ze(e),I=async()=>{var b;try{m.value=!0;const D=await N(),{data:F}=(D==null?void 0:D.data)||{},q=y.label,H=y.value;if(F){const G=((b=D==null?void 0:D.data)==null?void 0:b.data)??[];S.value=G;const z=G.map(_=>({[q]:_.label,[H]:_.value})),{id:P}=e,M=d(P);c(P,{...M,...t.unref(p)}),C(P,!0),O(z)}else O([])}catch(D){console.error(D)}finally{m.value=!1}},w=t.computed(()=>{var b,D;return(D=(b=e==null?void 0:e.graphicConfig)==null?void 0:b.controlList)==null?void 0:D.find(F=>F.conditionKey==="parentCode")}),R=t.ref(!1);t.watch(E,b=>{!t.unref(R)&&t.unref(w)&&b[t.unref(w).id]&&(R.value=!0,x())},{deep:!0});const x=()=>{switch(e.dataType){case"indicator":{if(t.unref(w)){if(t.unref(E)[t.unref(w).id]){const{mode:b}=e;b==="multiple"||b==="tags"||b==="combobox"?l.value=[]:l.value="",I()}}else I();break}case"request":g();break}};Re(e,{selectChange:k,refreshData:x});const{setRequest:B}=t.inject(Fe,{setRequest:({id:b,sortNum:D,requestFn:F})=>{}});return typeof B=="function"&&B({id:e.id,requestFn:x,sortNum:e.requestSort}),o({refreshData:x}),{style:n,getPopupContainer:a,myValue:s,selectChange:k,options:i,filterOption:u,loading:m,resultValue:l}}}),Sh="",Ch="";function zd(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 ol=pe(me(Fd,[["render",zd],["__scopeId","data-v-8da65528"]])),ra={...ke,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=ve(ra),al=["selectChange","refreshData"],Md={name:"EcanTreeSelect",components:{ATreeSelect:se.TreeSelect},props:{...ia},setup(e){const o=Ae(e),n=t.ref(e.data),a=(h,m)=>{const g=e.dataFieldNames,C=g.label,E=g.value;let v;const S=m[C],p=m[E];return S!=null?v=S:p!=null&&(v=p),(v==null?void 0:v.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},r=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:m,selectFirstOption:g}=e;h?m?r.value=m.split(","):g&&(r.value=[t.unref(n)[0]]):m?r.value=m:g&&(r.value=t.unref(n)[0])},{immediate:!0});const i=t.ref(!1),s=Ve(e),l=async()=>{var h,m;if(e.dataType==="request"){i.value=!0;try{const g=await s();n.value=((m=(h=g==null?void 0:g.data)==null?void 0:h.data)==null?void 0:m.rows)||[];const C=t.unref(n)[0];e.value===""&&C!=null&&(r.value=C[e.dataFieldNames.value])}catch(g){console.error(g)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=t.inject(Te,{getGlobalModel:h=>{},setGlobalModel:(h,m)=>{}});c(e.id,{type:e.type,value:r});const y=Be(e)("selectChange",()=>{const h=e.id,m=d(h);c(h,{...m,RECORD:r})});Re(e,{selectChange:y,refreshData:l});const{setRequest:u}=t.inject(Fe,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return u({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:n,filterTreeNode:a,myValue:r,loading:i,selectChange:y}}},Ah="",kh="";function Pd(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 rl=pe(me(Md,[["render",Pd],["__scopeId","data-v-37236421"]])),la={...ke,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=ve(la),il=["checkboxChange","click"],qd=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:se.RadioGroup,ARadioButton:se.RadioButton,ARadio:se.Radio},props:{...sa},setup(e,{expose:o}){const n=Ae(e),a=t.ref([]),r=t.ref(""),i=S=>{const p=e.value;let A=[];typeof p=="string"&&p!==""?A=A.concat(p.split(",")):Array.isArray(p)&&(A=A.concat(p)),a.value=S,r.value=A[0]||""};t.watch(()=>[e.data,e.value],([S])=>{i(S)},{immediate:!0,deep:!0});const s=Ve(e),l=async()=>{var A,T;if(e.dataType!=="request")return;const S=await s(),p=((T=(A=S==null?void 0:S.data)==null?void 0:A.data)==null?void 0:T.rows)||[];i(p)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Te,{getGlobalModel:S=>{},setGlobalModel:(S,p)=>{}});c(e.id,{type:e.type,value:r});const f=Be(e),y=f("checkboxChange",()=>{const S=d(e.id);c(e.id,{...S,RECORD:r})}),u=S=>{r.value=S,f("click",()=>{const p=d(e.id);c(e.id,{...p,RECORD:r})})()};t.watch(r,()=>{y()});const h=Ze(e),m=async()=>{var S;try{const p=await h(),{data:A}=(p==null?void 0:p.data)||{};if(A){const k=(((S=p==null?void 0:p.data)==null?void 0:S.data)??[]).map(O=>({label:O.label,value:O.value}));i(k)}else i([])}catch(p){console.error(p)}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:C}=t.inject(Fe,{setRequest:({id:S,sortNum:p,requestFn:A})=>{}});typeof C=="function"&&C({id:e.id,requestFn:g,sortNum:e.requestSort});const E=S=>{r.value=S.value},v=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:g}),{myOption:a,style:n,myValue:r,radioStyle:v,onClickButton:u,useImagePath:yt,tabChange:E}}}),Bh="",Eh="",Vd=["onClick"];function Hd(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,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:f,onClick:t.withModifiers(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,Vd))),128))],4)):(t.openBlock(),t.createBlock(d,{key:1,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,c=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.value},[e.optionType==="default"?(t.openBlock(),t.createBlock(s,{key:0,value:c.value,style:t.normalizeStyle(e.radioStyle)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(t.openBlock(),t.createBlock(l,{key:1,value:c.value,onClick:f=>e.onClickButton(c.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):t.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const ll=pe(me(qd,[["render",Hd],["__scopeId","data-v-baa84768"]])),ca={...ke,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=ve(ca),sl=["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)},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:[]},ua=ve(fa),cl=["showModal","hideModal"],Rt=["ecanBorder","ecanTabs","ecanCirculate"];function dl(e){const{containerMap:o={},sourceList:n=[]}=e,a=Ie.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 f=s[c],y=[];if(f!=null&&f.length)for(const u of f){let h=a.find(m=>m.id===u);h||(h=n.find(m=>m.id===u)),h&&(y.push(h),Rt.includes(h.type)&&y.push(...rn(h.id,o,n)))}for(const u of y)$t(u,"scale")?parseFloat(c)>0&&(u.left=parseFloat(u.left)+d+"px"):(u.left=parseFloat(u.sourceLeft||u.left)-parseFloat(i.sourceLeft||i.left)+d+"px",u.top=parseFloat(u.sourceTop||u.top)-parseFloat(i.sourceTop||i.top)+"px"),l.includes(u.id)||l.push(u.id);i.componentList.push(...y),d=Kd(y)}}for(const d of l){const c=a.findIndex(f=>f.id===d);c!==-1&&a.splice(c,1)}}return a}function fl(e){var i,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,r=Ie.cloneDeep([...e.componentList,...Wd(a,n)]);if(jd(a,r),(i=Object.keys(a))!=null&&i.length||(s=Object.keys(o))!=null&&s.length){for(const u in a){const h=r.find(m=>m.id===u);if(h){$t(h,"parentId")||(h.parentId="",h.sourceLeft=h.left,h.sourceTop=h.top);for(const m in a[u])if(a[u][m])for(const g of a[u][m]){const C=r.find(E=>E.id===g);C&&(C.parentId=u,C.sourceLeft=C.left,C.sourceTop=C.top,C.left=parseFloat(C.left)-parseFloat(h.sourceLeft||h.left)+"px",C.top=parseFloat(C.top)-parseFloat(h.sourceTop||h.top)+"px")}}}const l=Array.from(new Set(r.filter(u=>(!$t(u,"parentId")||u.parentId==="")&&u.combinationId).map(u=>u.combinationId))),d=Ud(l,{...e,componentList:r});d!=null&&d.length&&r.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],f=r.filter(u=>c.includes(u.type)&&!$t(u,"parentId")),y=[];for(const u of f)if(u){const h=u.id+"_vir";y.push({id:h,keyName:u.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:u.width,height:u.height,left:u.left,top:u.top,sourceLeft:u.left,sourceTop:u.top}),u.parentId=h,u.sourceLeft=u.left,u.sourceTop=u.top,u.left=0,u.top=0}y!=null&&y.length&&r.unshift(...y);for(const u of r){const h=document.body.clientWidth;if(u.parentId===""&&Rt.includes(u.type))u.sourceWidth=parseFloat(u.width),u.height=(h/(u.sourceWidth/parseFloat(u.height))).toFixed(2)+"px",u.width="100%",u.position="relative",u.top="auto",u.left="auto";else{const m=r.find(g=>g.id===u.parentId);if((m==null?void 0:m.parentId)===""){const g=m.sourceWidth||parseFloat(m.width),C=h/g;u.scale=C,u.top=parseFloat(u.top)*C-parseFloat(u.height)*(1-C)/2+"px",u.left=parseFloat(u.left)*C-parseFloat(u.width)*(1-C)/2+"px"}}u.type==="ecanModal"&&(u.parentId="",u.fullModal=!0)}return Gd(r)}return r}function jd(e,o){const n=Ie.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&&Rt.includes(d.type)){const c=rn(d.id,n,o);for(const f of c)e[r.id][s].push(f.id),Rt.includes(f.type)&&delete e[f.id];delete e[d.id]}}}}function Wd(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),Rt.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),Rt.includes(l.type)&&a.push(...rn(l.id,o,n)))}return a}function Ud(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=$d(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 f of d)f&&(f.parentId=s,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(c.left)+"px",f.top=parseFloat(f.top)-parseFloat(c.top)+"px")}}}}return i}function Gd(e){const n=e.filter(a=>a.parentId==="");if(n!=null&&n.length){const a=Ie.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 $d(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 Kd(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),Rt.includes(d.type)&&r.push(...rn(d.id,e,o)))}}return r}const Zd=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function Yd(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 Qd=pe(me(Zd,[["render",Yd]])),Jd=t.defineComponent({name:"EcanModal",components:{AModal:se.Modal,CloseOutlined:ds,Render:Qd},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}=t.inject(Te,{clearInteractiveData:()=>{},interactiveData:null}),d=()=>document.getElementById("ProviderConfig")||document.body,c=t.computed(()=>{const Y=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Y]}}),f=e.fullModal?"1920px":e.width,y=e.fullModal?"1080px":e.height,u=e.originalWidth,h=e.originalHeight,m=t.ref("80%"),g=t.ref(0),C=t.ref(),E=t.ref(0),v=t.ref({}),S=Ae(e),p=t.ref({}),A=t.ref(!1),T=t.ref();let k;const O=()=>{C.value=parseFloat(f)/parseFloat(u);const Y=parseFloat(y)/parseFloat(h),ie=document.body.offsetWidth,re=document.body.offsetHeight;g.value=ie*t.unref(C),E.value=re*Y,m.value=`${t.unref(C)*100}%`,v.value={width:`${t.unref(g)}px`,height:`${t.unref(E)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},p.value={...t.unref(S),backgroundImage:yt(e.backgroundImage,!0)},a?p.value={...p.value,width:"100%",height:"100%"}:p.value={...p.value,transform:`scale(${t.unref(g)/parseFloat(f)},${t.unref(E)/parseFloat(y)})`,width:f,height:y}},N=Ie.debounce(()=>{O()},100),I=()=>{const Y=window.MutationObserver;k=new Y(N),k.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},w=()=>{k&&(k.disconnect(),k.takeRecords(),k=null)},R=t.ref(!1),{touchRequest:x}=t.inject(Fe,{touchRequest:()=>{}}),B=t.ref(""),b=()=>{var re;const{title:Y}=e,ie=(re=t.unref(l))==null?void 0:re.RECORD;return ie?De(Y,{textData:ie},{useNewline:!1,useSpace:!1}):Y},D=Be(e),F=()=>{a&&(document.documentElement.style.overflow="hidden"),B.value=b(),R.value=!0},q=D("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),R.value=!1}),H=()=>{q()},G=()=>{q(),s()},{setModalModel:z,pushUseModalIds:P,popUseModalIds:M}=t.inject(pr,{pushUseModalIds:Y=>{},popUseModalIds:()=>{},setModalModel:(Y,ie)=>{}}),_=t.computed(()=>{let Y=e.componentList;const ie=Ie.cloneDeep(e.componentList),re=r(),Q=i(),X={containerMap:re,combinationMap:Q};a&&(Y=fl({...X,componentList:ie,sourceList:e.allComponentList})),Y=dl({...X,componentList:Y,sourceList:e.allComponentList});const te=[];for(const fe of Y)if(fe.type==="ecanCirculate"){const be=ha(re,t.unref(ie),fe.id);fe.componentList=be,te.push(...be.map(we=>we.id))}if(te!=null&&te.length)for(const fe of te){const be=Y.findIndex(we=>we.id===fe);be!==-1&&Y.splice(be,1)}return Y}),L=()=>{const Y=e.id;let ie=[];const re=e.componentList;Array.isArray(re)&&(ie=re.map(Q=>Q.id),z(Y,[...new Set(ie)]))};t.watch(()=>R.value,async Y=>{Y?(A.value=!1,P(e.id),L(),await t.nextTick(()=>{O(),window.addEventListener("resize",N),I(),A.value=!0}),x()):(M(),window.removeEventListener("resize",N),w())});const V=t.computed(()=>t.unref(C)>=1),Z=t.computed(()=>e.fullModal),U=t.computed(()=>{let Y="ecan-modal";return t.unref(V)&&(Y+=" ecan-full-width-modal"),t.unref(Z)&&(Y+=" ecan-full-modal"),Y});return Re(e,{showModal:F,hideModal:q}),{modalRef:T,containStyle:v,contentStyle:p,getContainer:d,modalStyle:c,modalWith:m,isFullModal:Z,style:S,visible:R,showModal:F,onOk:H,onCancel:G,isFullWidth:V,wrapClassName:U,ready:A,usedComponentList:_,isMobile:a,readyIds:n,hasOwn:$t,onComponentReady:Y=>{n.value.push(Y)},formatTitle:B}}}),Rh="",Oh="";function Xd(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.usedComponentList.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.isMobile?"mobile-wrap":"")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.usedComponentList,(c,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+f},[e.isMobile?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(t.openBlock(),t.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:1},c)),null,16))],64))),128))],2)):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):t.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const kt=pe(me(Jd,[["render",Xd],["__scopeId","data-v-ec736357"]]));Je.use([Et.CanvasRenderer,ht.PieChart,Ce.TitleComponent,Ce.ToolboxComponent,Ce.TooltipComponent,Ce.LegendComponent]);const ef=t.defineComponent({name:"EcanPie",props:{...da},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(!1),a=Ae(e),r=t.ref([]),i=t.ref(),s=t.ref({}),l=t.computed(()=>{let{data:w=[]}=t.unref(r)[0]||{};if(Array.isArray(e.colors)){const R=e.isUseLabelColors,x=e.colors;w=w.map((B,b)=>({label:R?{color:x[b]}:{},...B}))}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 R;n.value=!0,(R=i.value)==null||R.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.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:R=>{const{marker:x,seriesName:B,name:b,value:D,percent:F,data:q}=R||{};return De(e.tooltipFormatter,{textData:{marker:x,name:b,value:D,percent:F,a:B,b,c:D,d:F,...q}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.unref(s),color:e.colors,series:[{data:w,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?Ue:e.labelFontSize,position:e.labelPosition,formatter:Pc(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 w=n.value?Ue: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:w+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:w}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:R=>{const{data:x}=r.value[0]||{};let B=0,b,D="0%";if(x)for(const F of x)F.name===R&&(b=+F.value),B+=+F.value;return B&&(D=`${(b/B*100).toFixed(2)}%`),an(e.legendFormatter,{name:R,value:b,percent:D})}}},c=()=>{n.value=!1},{getGlobalModel:f,setGlobalModel:y}=t.inject(Te,{getGlobalModel:w=>{},setGlobalModel:(w,R)=>{}}),{pageMode:u}=t.inject(Me,{pageMode:"normal"}),h=(w=[],R)=>{const{dataset:x}=zt(w,R);r.value=x},m=(w=[],R)=>{const x=zt(w,R);r.value=x.dataset};t.watch(()=>e.data,w=>{(e.dataType==="static"||t.unref(u)==="design")&&h(w)},{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 g=t.ref(!1),C=Ve(e),E=async()=>{var w,R;if(e.dataType==="request")try{g.value=!0;const x=await C();h((R=(w=x==null?void 0:x.data)==null?void 0:w.data)==null?void 0:R.rows,e.valueTypeDataFieldNames)}catch(x){console.error(x)}finally{g.value=!1}},v=Be(e);y(e.id,{type:e.type,RECORD:""});const S=v("click",w=>{const R=f(e.id);y(e.id,{...R,type:e.type,RECORD:w==null?void 0:w.data})}),p=Ze(e),A=async()=>{var w;try{g.value=!0;const R=await p(),{data:x}=(R==null?void 0:R.data)||{};if(x){const{columns:B=[],rows:b=[]}=((w=R==null?void 0:R.data)==null?void 0:w.data)??{};let D=[];if(B.length>0){const F=B[0],q=B[1];D=b.filter(H=>!!H).map(H=>({name:H[F],value:isNaN(H[q])?0:H[q]||0}))}m(D)}}catch(R){console.error(R)}finally{g.value=!1}},{loadedData:T}=t.inject(vt,{loadedData:{}}),k=t.ref(!1);t.watch(T,w=>{if(e.dataType==="indicator"){const R=on(e.graphicConfig);R!=null&&R.length&&(!t.unref(k)&&it(e.graphicConfig,w)?(k.value=!0,O()):it(e.graphicConfig,w)||(k.value=!1))}},{deep:!0});const O=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(T))&&A();break;case"request":E();break}};Re(e,{resetRecord:()=>{const w=e.id,R=f(w);y(w,{...R,RECORD:""})},refreshData:O,click:S}),o({refreshData:O});const{setRequest:I}=t.inject(Fe,{setRequest:w=>{}});return typeof I=="function"&&I({id:e.id,requestFn:O,sortNum:e.requestSort}),{option:l,style:a,click:S,onClose:c,loading:g,ecanModal:i}}}),Lh="";function tf(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 ul=pe(me(ef,[["render",tf]])),ga={...ke,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=ve(ga),hl=["click","refreshData","resetRecord"];Je.use([Et.CanvasRenderer,ht.LineChart,Ce.ToolboxComponent,Ce.TitleComponent,Ce.LegendComponent,Ce.MarkLineComponent]);const nf=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=Ae(e),i=t.ref([]),s=t.ref([]),l=t.ref(),d=t.computed(()=>a.value?Ue:12),c=t.ref({});let f;const y=t.ref([]),u=t.computed(()=>{const b=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(){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 F;a.value=!0,(F=l.value)==null||F.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(){se.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:F=>{var z;const q=F.length;let H="",G=e.tooltipFormatter;f=(z=F[0])==null?void 0:z.data,G===""&&(G="{marker} {a} {c}");for(let P=0;P<q;P++){const{marker:M,seriesName:_,name:L,value:V,data:Z}=F[P]||{};if(P===0){let U=L;typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(U=(+L).toString()),H+=`${lt(b,U)}<br/>`}H+=De(G,{textData:{marker:M,name:L,value:V,a:_,b:L,c:V||0,...Z}},{useNewline:!0,useSpace:!0}),H+="<br/>"}return H},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(s).map(F=>{let q={};return F&&typeof F=="object"?q={...F}:q={value:F},q}),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(F){return typeof F=="string"&&F[0]==="0"&&!isNaN(+F)&&(F=(+F).toString()),lt(b,F)}},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(F){return lt(D,F)}},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?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(y).map(F=>({name:F.name,icon:e.legendType})),formatter:F=>an(e.legendFormatter,{name:F})},series:t.unref(i)}}),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=t.inject(Te,{getGlobalModel:b=>{},setGlobalModel:(b,D)=>{}}),{pageMode:C}=t.inject(Me,{pageMode:"normal"}),E=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),v=(b=[],D=!1)=>{let F;if(e.dataFieldConfigType==="key"){const z=D?e.keyTypeDataFieldNames:null;F=At(b,z)}else if(e.dataFieldConfigType==="value"){const z=D?e.valueTypeDataFieldNames:null;F=zt(b,z)}s.value=F.dimensions,y.value=F.dataset;const q=F.dataset,H=[],G=q.length;for(let z=0;z<G;z++){const P={};e.shadowColor&&(P.shadowColor=e.shadowColor,P.shadowBlur=e.shadowBlur,P.shadowOffsetY=e.shadowOffsetY,P.shadowOffsetX=e.shadowOffsetX),H.push({type:"line",...q[z],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[z]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[z],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...P},...t.unref(E)})}i.value=H},S=(b=[],D,F=!1)=>{const H=At(b,F?D:null,!0);s.value=H.dimensions,y.value=H.dataset;const G=H.dataset,z=[],P=G.length;for(let M=0;M<P;M++){const _={};e.shadowColor&&(_.shadowColor=e.shadowColor,_.shadowBlur=e.shadowBlur,_.shadowOffsetY=e.shadowOffsetY,_.shadowOffsetX=e.shadowOffsetX),z.push({type:"line",...G[M],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[M]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[M],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,..._},...t.unref(E)})}i.value=z};t.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([b])=>{(e.dataType==="static"||t.unref(C)==="design")&&v(b)},{immediate:!0,deep:!0});const p=t.ref(!1),A=Ve(e),T=async()=>{var b,D;if(e.dataType==="request")try{p.value=!0;const F=await A();v((D=(b=F==null?void 0:F.data)==null?void 0:b.data)==null?void 0:D.rows,!0)}catch(F){console.error(F)}finally{p.value=!1}},k=Be(e);g(e.id,{type:e.type,RECORD:""});const O=k("click",b=>{const D=m(e.id);g(e.id,{...D,type:e.type,RECORD:e.tooltipShow?f:b.data})}),N=b=>{n.value.chart.containPixel("grid",[b.offsetX,b.offsetY])&&O()};e.tooltipShow?c.value["zr:click"]=N:c.value.click=O;const I=Ze(e),w=async()=>{var b;try{p.value=!0;const D=await I(),{columns:F=[],rows:q=[]}=((b=D==null?void 0:D.data)==null?void 0:b.data)??{};let H;F.length>0&&(H={name:F[0],types:F.slice(1).map(G=>({label:G,value:G}))}),S(q,H,!0)}catch(D){console.error(D)}finally{p.value=!1}},R=()=>{switch(e.dataType){case"indicator":w();break;case"request":T();break}};Re(e,{refreshData:R,resetRecord:()=>{const b=e.id,D=m(b);g(b,{...D,RECORD:""})},click:O});const{setRequest:B}=t.inject(Fe,{setRequest:b=>{}});return typeof B=="function"&&B({id:e.id,requestFn:R,sortNum:e.requestSort}),o({refreshData:R}),{option:u,style:r,click:O,loading:p,onClose:h,ecanModal:l,eventObj:c,echartRef:n}}}),Fh="";function of(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 gl=pe(me(nf,[["render",of]])),ya={...ke,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:""},xa=ve(ya),ml=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,ht.BarChart,Ce.TitleComponent,Ce.LegendComponent,Ce.DatasetComponent,Ce.ToolboxComponent,Ce.MarkLineComponent]);const af=t.defineComponent({name:"EcanBar",props:{...xa},components:{Spin:Ft,Echarts:pt,EcanModal:kt,AModal:se.Modal},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=t.ref(!1),i=t.ref(null),s=t.ref([]),l=Ae(e),d=t.ref([]),c=t.ref(),f=t.ref({});let y;const u=t.computed(()=>a.value?Ue:12),h=t.computed(()=>{const{gradientShow:M,gradientColors:_,gradientOffset:L,barBorderRadius:V}=e,Z=t.unref(d),U=Z.length,ae=[];for(let Y=0;Y<U;Y++){const ie={...Z[Y],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(ie.stack="stack"),ie.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:re=>{let Q="",X=e.labelFormatter;X===""&&(X="{c}");const{seriesName:te,name:fe,value:be,data:we}=re||{};return Q+=De(X,{textData:{name:fe,value:be,a:te,b:fe,c:be||0,...we}},{useNewline:!0,useSpace:!0}),Q}},ie.itemStyle={},M&&(ie.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Y]},{offset:L,color:_[Y]},{offset:1,color:_[Y]}]}}),V){const re=V.split(",");if(re!=null&&re.length){const Q=[];for(const X of re){const te=parseFloat(X);isNaN(te)||Q.push(te)}ie.itemStyle.borderRadius=Q}}e.isShowMarkLine&&(ie.markLine={data:[{type:e.markLineType}]}),ae.push(ie)}return ae}),m=t.ref([]),g=t.ref(!1),C=t.computed(()=>{const M=e.yAxisLabelFormatter,_=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.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(){r.value=!0;const L=n.value.chart.getOption(),{xAxis:V}=L||{};V&&V.length&&(s.value=V[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: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=c.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(){se.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:L=>{var ae;const V=L.length;let Z="",U=e.tooltipFormatter;y=(ae=L[0])==null?void 0:ae.data,U===""&&(U="{marker} {a} {c}");for(let Y=0;Y<V;Y++){const{marker:ie,seriesName:re,name:Q,value:X,data:te}=L[Y]||{};if(Y===0){let fe=Q;typeof Q=="string"&&Q[0]==="0"&&!isNaN(+Q)&&(fe=(+Q).toString()),Z+=`${lt(_,fe)}<br/>`}Z+=De(U,{textData:{marker:ie,name:Q,value:X,a:re,b:Q,c:X||0,...te}},{useNewline:!0,useSpace:!0}),Z+="<br/>"}return Z},textStyle:{color:e.tooltipTextStyleColor,fontSize:u.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(d).map((L,V)=>({name:L.name,itemStyle:{color:e.colors[V]},icon:e.legendType})),formatter:L=>an(e.legendFormatter,{name:L})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(A),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(L){return typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(L=(+L).toString()),lt(_,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:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(m):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(L){return lt(M,L)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},series:t.unref(h)}}),{pageMode:E}=t.inject(Me,{pageMode:"normal"}),v=()=>{a.value=!1},S=(M=[],_=!1)=>{let L={};if(e.dataFieldConfigType==="key"){const V=_?e.keyTypeDataFieldNames:null;L=At(M,V)}else if(e.dataFieldConfigType==="value"){const V=_?e.valueTypeDataFieldNames:null;L=zt(M,V)}d.value=L.dataset,m.value=L.dimensions},p=(M=[],_,L=!1)=>{const Z=At(M,L?_:null,!0);d.value=Z.dataset,m.value=Z.dimensions},A=t.computed(()=>t.unref(m).map(M=>{let _={};return M&&typeof M=="object"?_={...M}:_={value:M},_}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([M])=>{(e.dataType==="static"||t.unref(E)==="design")&&S(M)},{immediate:!0,deep:!0});const T=Ve(e),k=async()=>{var M,_;try{g.value=!0;const L=await T();S((_=(M=L==null?void 0:L.data)==null?void 0:M.data)==null?void 0:_.rows,!0)}catch(L){console.error(L)}finally{g.value=!1}},O=Ze(e),N=async()=>{var M;try{g.value=!0;const _=await O(),{columns:L=[],rows:V=[]}=((M=_==null?void 0:_.data)==null?void 0:M.data)??{};let Z;L.length>0&&(Z={name:L[0],types:L.slice(1).map(U=>({label:U,value:U}))}),p(V,Z,!0)}catch(_){console.error(_)}finally{g.value=!1}},{loadedData:I}=t.inject(vt,{loadedData:{}}),w=t.ref(!1);t.watch(I,M=>{if(e.dataType==="indicator"){const _=on(e.graphicConfig);_!=null&&_.length&&(!t.unref(w)&&it(e.graphicConfig,M)?(w.value=!0,R()):it(e.graphicConfig,M)||(w.value=!1))}},{deep:!0});const R=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(I))&&N();break;case"request":k();break}},x=(M,_)=>!!t.unref(s)[_.value].value.includes(M),B=async()=>{r.value=!1;const M=n.value.chart.getOption();for(let _=0;_<7;_++)await b(M,_)},b=(M,_)=>new Promise(L=>{setTimeout(()=>{const{series:V,color:Z,xAxis:U}=M,ae=n.value.chart,{splitArea:Y={}}=U[0]||{};V.forEach((ie,re)=>{const Q=ie.data;let X="";_%2?X=Z[re]+"a8":X=Z[re],Q[i.value].itemStyle={color:X}}),_%2?(Y.show=!0,Y.areaStyle.color=t.unref(s).map((ie,re)=>re===i.value?"#ff003b26":"")):Y.show=!1,ae.setOption({series:V,xAxis:U}),L()},200)});o({refreshData:R});const D=Be(e),{getGlobalModel:F,setGlobalModel:q}=t.inject(Te,{getGlobalModel:M=>{},setGlobalModel:(M,_)=>{}});q(e.id,{type:e.type,RECORD:""});const H=D("click",M=>{const _=F(e.id);q(e.id,{..._,type:e.type,RECORD:e.tooltipShow?y:M.data})}),{setRequest:G}=t.inject(Fe,{setRequest:M=>{}});typeof G=="function"&&G({id:e.id,requestFn:R,sortNum:e.requestSort});const z=()=>{const M=e.id,_=F(M);q(M,{..._,RECORD:""})},P=M=>{n.value.chart.containPixel("grid",[M.offsetX,M.offsetY])&&H()};return e.tooltipShow?f.value["zr:click"]=P:f.value.click=H,Re(e,{refreshData:R,click:H,resetRecord:z}),{option:C,style:l,refreshData:R,click:H,loading:g,onClose:v,ecanModal:c,echartRef:n,handleLocationOk:B,onFilterOption:x,locationVisible:r,locationValue:i,locationNames:s,eventObj:f}}}),Mh="",Ph="",rf=e=>(t.pushScopeId("data-v-21d7ed90"),e=e(),t.popScopeId(),e),lf={class:"location-wrap"},sf=rf(()=>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"),f=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]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",lf,[sf,t.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(u,h)=>(t.openBlock(),t.createBlock(c,{key:h,value:h},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const yl=pe(me(af,[["render",cf],["__scopeId","data-v-21d7ed90"]])),pa={...ke,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=ve(pa),xl=["click","refreshData","resetRecord"];Je.use([Et.CanvasRenderer,ht.ScatterChart,Ce.ToolboxComponent,Ce.TitleComponent,Ce.TooltipComponent,Ce.LegendComponent,Ce.MarkLineComponent]);const df=t.defineComponent({name:"EcanScatter",props:{...ba},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e){const o=t.ref(!1),n=Ae(e),a=t.ref([]),r=t.ref(),i=t.computed(()=>o.value?Ue:12),s=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=t.computed(()=>{const A=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 k;o.value=!0,(k=r.value)==null||k.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.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(k){return typeof k=="string"&&k[0]==="0"&&!isNaN(+k)&&(k=(+k).toString()),lt(A,k)}},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(k){return lt(T,k)}},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(k){var x;const{marker:O,seriesName:N}=k,I=((x=k==null?void 0:k.data)==null?void 0:x.record)??{},{name:w,value:R}=I;return De(e.tooltipFormatter,{textData:{marker:O,seriesName:N,a:N,b:w,c:R,...I}})},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(Te,{getGlobalModel:A=>{},setGlobalModel:(A,T)=>{}}),{pageMode:f}=t.inject(Me,{pageMode:"normal"}),y=(A=[],T)=>{const{name:k="name",value:O="value"}=T||{};a.value=A.map(N=>({value:[N[k],N[O]],record:N}))};t.watch(()=>e.data,A=>{(e.dataType==="static"||t.unref(f)==="design")&&y(A)},{immediate:!0,deep:!0});const u=t.ref(!1),h=Ve(e),m=async()=>{var A,T;if(e.dataType==="request"){u.value=!0;try{const k=await h();y((T=(A=k==null?void 0:k.data)==null?void 0:A.data)==null?void 0:T.rows,e.dataFieldNames)}catch(k){console.error(k)}finally{u.value=!1}}},g=()=>{o.value=!1},C=Be(e);c(e.id,{type:e.type,RECORD:""});const E=C("click",A=>{const T=e.id,k=d(T);c(T,{...k,type:e.type,RECORD:A==null?void 0:A.data})});Re(e,{refreshData:()=>{m()},click:E,resetRecord:()=>{const A=e.id,T=d(A);c(A,{...T,RECORD:""})}});const{setRequest:p}=t.inject(Fe,{setRequest:A=>{}});return typeof p=="function"&&p({id:e.id,requestFn:m,sortNum:e.requestSort}),{option:l,style:n,click:E,loading:u,onClose:g,ecanModal:r}}}),Vh="";function ff(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=pe(me(df,[["render",ff]])),va={...ke,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},Sa=ve(va),uf=t.defineComponent({name:"EcanCustomGraph",props:{...Sa},components:{Echarts:pt},setup(e){const o=Ae(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:n0}}});function hf(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 bl=pe(me(uf,[["render",hf]])),Ca={...ke,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:""},wa=ve(Ca),vl=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,ht.BarChart,ht.LineChart,Ce.TitleComponent,Ce.LegendComponent,Ce.DatasetComponent,Ce.ToolboxComponent,Ce.MarkLineComponent]);const gf=t.defineComponent({name:"EcanComboGraph",props:{...wa},components:{Spin:Ft,Echarts:pt,EcanModal:kt,AModal:se.Modal},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=t.ref(!1),i=t.ref(null),s=t.ref([]),l=t.ref({});let d;const c=Ae(e),f=t.ref([]),y=t.ref([]),u=t.ref(),h=t.ref([]),m=t.computed(()=>a.value?Ue:12),g=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:a.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(){r.value=!0;const _=n.value.chart.getOption(),{xAxis:L}=_||{};L&&L.length&&(s.value=L[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: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,(_=u.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(){se.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:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(h).map((_,L)=>({name:_.name,itemStyle:{color:e.colors[L]},icon:e.legendType})),formatter:_=>an(e.legendFormatter,{name:_})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:_=>{var ae;const L=_.length;let V="",Z=e.tooltipFormatter;d=(ae=_[0])==null?void 0:ae.data,Z===""&&(Z="{marker} {a} {c}");const U=e.seriesTypes;for(let Y=0;Y<L;Y++){const ie=U[Y],{tooltipFormatter:re}=ie||{},{marker:Q,seriesName:X,name:te,value:fe,data:be}=_[Y]||{};if(Y===0){let we=te;typeof te=="string"&&te[0]==="0"&&!isNaN(+te)&&(we=(+te).toString()),V+=`${lt(e.xAxisLabelFormatter,we)}<br/>`}V+=De(re||Z,{textData:{marker:Q,name:te,value:fe,seriesName:X,a:X,b:te,c:fe||0,...be}},{useNewline:!0,useSpace:!0}),V+="<br/>"}return V},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(y).map(_=>{let L={};return _&&typeof _=="object"?L={..._}:L={value:_},L}),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(e.xAxisLabelFormatter,_)}},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(A),series:t.unref(f)})),{pageMode:C}=t.inject(Me,{pageMode:"normal"}),E=()=>{a.value=!1},v=(_=[],L=!1)=>{let V;if(e.dataFieldConfigType==="key"){const U=L?e.keyTypeDataFieldNames:null;V=At(_,U)}else if(e.dataFieldConfigType==="value"){const U=L?e.valueTypeDataFieldNames:null;V=zt(_,U)}y.value=V.dimensions;const Z=V.dataset;h.value=V.dataset,f.value=p(Z)},S=(_=[],L,V=!1)=>{const U=At(_,V?L:null,!0);y.value=U.dimensions;const ae=U.dataset;h.value=U.dataset,f.value=p(ae)};function p(_){const L=[],V=_.length,Z=e.seriesTypes;for(let U=0;U<V;U++){const ae=Z[U],{type:Y,axisIndex:ie}=ae||{};let re={type:Y,yAxisIndex:ie,..._[U]};if(Y==="line"){const Q={};e.shadowColor&&(Q.shadowColor=e.shadowColor,Q.shadowBlur=e.shadowBlur,Q.shadowOffsetY=e.shadowOffsetY,Q.shadowOffsetX=e.shadowOffsetX),re={...re,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[U]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[U],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...Q}}}if(Y==="bar"){const{gradientShow:Q,gradientColors:X,gradientOffset:te}=e,fe={};if(e.barBorderRadius){const be=e.barBorderRadius.split(",");if(be!=null&&be.length){const we=[];for(const $e of be){const Pe=parseFloat($e);isNaN(Pe)||we.push(Pe)}fe.borderRadius=we}}Q&&(fe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:te,color:X[U]},{offset:1,color:X[U]}]}),re={...re,barWidth:e.barWidth,itemStyle:fe}}e.isShowMarkLine&&(re.markLine={data:[{type:e.markLineType}]}),L.push(re)}return L}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],([_])=>{(e.dataType==="static"||t.unref(C)==="design")&&v(_)},{immediate:!0,deep:!0});const A=t.computed(()=>{const _=e.yAxis;return _==null?void 0:_.map((L,V)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:V===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:V===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(Z){return lt(L.axisLabelFormatter,Z)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:V===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:V===0?"right":"left"}}))}),T=t.ref(!1),k=Ve(e),O=async()=>{var _,L;if(e.dataType==="request")try{T.value=!0;const V=await k();v((L=(_=V==null?void 0:V.data)==null?void 0:_.data)==null?void 0:L.rows,!0)}catch(V){console.error(V)}finally{T.value=!1}},N=Ze(e),I=async()=>{var _;try{T.value=!0;const L=await N(),{columns:V=[],rows:Z=[]}=((_=L==null?void 0:L.data)==null?void 0:_.data)??{};let U;V.length>0&&(U={name:V[0],types:V.slice(1).map(ae=>({label:ae,value:ae}))}),S(Z,U,!0)}catch(L){console.error(L)}finally{T.value=!1}},{loadedData:w}=t.inject(vt,{loadedData:{}}),R=t.ref(!1);t.watch(w,_=>{if(e.dataType==="indicator"){const L=on(e.graphicConfig);L!=null&&L.length&&(!t.unref(R)&&it(e.graphicConfig,_)?(R.value=!0,x()):it(e.graphicConfig,_)||(R.value=!1))}},{deep:!0});const x=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(w))&&I();break;case"request":O();break}},B=(_,L)=>!!t.unref(s)[L.value].value.includes(_),b=async()=>{r.value=!1;const _=n.value.chart.getOption();for(let L=0;L<7;L++)await D(_,L)},D=(_,L)=>new Promise(V=>{setTimeout(()=>{const{series:Z,color:U,xAxis:ae}=_,Y=n.value.chart,{splitArea:ie={}}=ae[0]||{};Z.forEach((re,Q)=>{const X=re.data;let te="";L%2?te=U[Q]+"a8":te=U[Q],X[i.value].itemStyle={color:te}}),L%2?(ie.show=!0,ie.areaStyle.color=t.unref(s).map((re,Q)=>Q===i.value?"#ff003b26":"")):ie.show=!1,Y.setOption({series:Z,xAxis:ae}),V()},200)});o({refreshData:x});const F=Be(e),{getGlobalModel:q,setGlobalModel:H}=t.inject(Te,{getGlobalModel:_=>{},setGlobalModel:(_,L)=>{}});H(e.id,{type:e.type,RECORD:""});const G=F("click",_=>{const L=q(e.id);H(e.id,{...L,type:e.type,RECORD:e.tooltipShow?d:_==null?void 0:_.data})}),z=_=>{n.value.chart.containPixel("grid",[_.offsetX,_.offsetY])&&G()};e.tooltipShow?l.value["zr:click"]=z:l.value.click=G;const{setRequest:P}=t.inject(Fe,{setRequest:_=>{}});return typeof P=="function"&&P({id:e.id,requestFn:x,sortNum:e.requestSort}),Re(e,{resetRecord:()=>{const _=e.id,L=q(_);H(_,{...L,RECORD:""})},refreshData:x,click:G}),{style:c,option:g,click:G,loading:T,onClose:E,ecanModal:u,echartRef:n,handleLocationOk:b,onFilterOption:B,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),Wh="",Uh="",mf=e=>(t.pushScopeId("data-v-1858b3c3"),e=e(),t.popScopeId(),e),yf={class:"location-wrap"},xf=mf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function pf(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"),f=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]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",yf,[xf,t.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(u,h)=>(t.openBlock(),t.createBlock(c,{key:h,value:h},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Sl=pe(me(gf,[["render",pf],["__scopeId","data-v-1858b3c3"]])),Aa={...ke,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=ve(Aa),Cl=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,ht.RadarChart,Ce.ToolboxComponent,Ce.TitleComponent,Ce.LegendComponent]);const bf=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=Ae(e),i=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?Ue:12),d=t.ref([]),c=t.ref(e.valueTypeDataFieldNames.name),f=t.computed(()=>{const x=t.unref(d),B=x.length,b=[];for(let D=0;D<B;D++){const{name:F,data:q=[]}=x[D],H=[{name:F,value:q.map(P=>P.value)}];let G=e.colors[D];if(e.gradientShow){const{gradientOffset:P,gradientColors:M}=e;G={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[D]},{offset:P,color:M[D]},{offset:1,color:M[D]}]}}const z={type:"radar",name:F,data:H,areaStyle:{color:G,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:P=>{const{data:M,value:_}=P;let L=0,V="0%";if(M)for(const Z of M.value)L+=+Z;return L&&(V=`${(_/L*100).toFixed(2)}%`),De(e.labelFormatter,{textData:{value:_,percent:V}},{useNewline:!1,useSpace:!1})}}};b.push(z)}return b}),y=t.computed(()=>{var F;const x=[],B=[],b=t.unref(d),D=b.length;for(let q=0;q<D;q++){const{data:H=[]}=b[q];for(let G=0;G<H.length;G++)B.push(H[G].value)}if((F=i.value)!=null&&F.length){const q=B!=null&&B.length?Math.max(...B)*1.2:0;for(const H of i.value)x.push({name:H,max:q})}return x}),u=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 x;a.value=!0,(x=s.value)==null||x.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(){se.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:x=>{let B="",b=e.tooltipFormatter;b===""&&(b="{marker} {a} {c}");for(let D=0;D<t.unref(y).length;D++){const F=t.unref(y)[D],{marker:q,seriesName:H,value:G}=x||{};D===0&&H&&(B+=`${H}<br/>`),B+=De(b,{textData:{marker:q,name:F.name,value:G[D],a:F.name,b:F.name,c:G[D]||0,type:H}},{useNewline:!0,useSpace:!0}),B+="<br/>"}return B},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?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(d).map(x=>({name:x.name,icon:e.legendType})),formatter:x=>an(e.legendFormatter,{name:x})},series:t.unref(f)})),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=t.inject(Te,{getGlobalModel:x=>{},setGlobalModel:(x,B)=>{}}),{pageMode:C}=t.inject(Me,{pageMode:"normal"}),E=(x=[],B=!1)=>{let b;if(e.dataFieldConfigType==="key"){const D=B?e.keyTypeDataFieldNames:null;b=At(x,D)}else if(e.dataFieldConfigType==="value"){const D=B?e.valueTypeDataFieldNames:null;b=zt(x,D)}i.value=b.dimensions,d.value=b.dataset},v=(x=[],B,b=!1)=>{const F=At(x,b?B:null,!0);i.value=F.dimensions,d.value=F.dataset};t.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([x])=>{(e.dataType==="static"||t.unref(C)==="design")&&E(x)},{immediate:!0,deep:!0});const S=t.ref(!1),p=Ve(e),A=async()=>{var x,B;if(e.dataType==="request")try{S.value=!0;const b=await p();E((B=(x=b==null?void 0:b.data)==null?void 0:x.data)==null?void 0:B.rows,!0)}catch(b){console.error(b)}finally{S.value=!1}},T=Be(e);g(e.id,{type:e.type,RECORD:""});const k=x=>{const B=x.event.topTarget.__dimIdx;B!==void 0&&T("click",()=>{var q;const{value:b,name:D}=x.data||{},F=m(e.id);g(e.id,{...F,type:e.type,RECORD:{[t.unref(c)]:((q=t.unref(y)[B])==null?void 0:q.name)||"",[D]:b[B],seriesName:D}})})()},O=Ze(e),N=async()=>{var x;try{S.value=!0;const B=await O(),{columns:b=[],rows:D=[]}=((x=B==null?void 0:B.data)==null?void 0:x.data)??{};let F;b.length>0&&(c.value=b[0],F={name:b[0],types:b.slice(1).map(q=>({label:q,value:q}))}),v(D,F,!0)}catch(B){console.error(B)}finally{S.value=!1}},I=()=>{switch(e.dataType){case"indicator":N();break;case"request":A();break}};Re(e,{refreshData:I,resetRecord:()=>{const x=e.id,B=m(x);g(x,{...B,RECORD:""})},click:k});const{setRequest:R}=t.inject(Fe,{setRequest:x=>{}});return typeof R=="function"&&R({id:e.id,requestFn:I,sortNum:e.requestSort}),o({refreshData:I}),{option:u,style:r,click:k,loading:S,onClose:h,ecanModal:s,echartRef:n}}}),$h="";function vf(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 wl=pe(me(bf,[["render",vf]])),Sf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Cf="data:image/png;base64,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",wf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Af="data:image/png;base64,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",Ta={...ke,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=ve(Ta),Al=["click"],kf=t.defineComponent({name:"EcanBorder",props:{...Ba},setup(e){const o=Ae(e,["background"]),n=t.computed(()=>{const{isTransparent:m,gradientShow:g,gradientColor:C,gradientOffset:E,gradientAngle:v,backgroundColor:S}=e;if(g){let p=C;return m&&(p="transparent"),p?{background:`linear-gradient(${v}, ${S}, ${p} ${E*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:m}=e;let g={};return m!=null&&m.length&&m.find(E=>E.emit==="showModal")&&(g={cursor:"pointer"}),g}),{theme:r}=t.inject(Me,{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":Sf,"../../assets/border-title-decoration-left2.png":Cf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":wf,"../../assets/border-title-decoration-right2.png":Af})[`../../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,g=[],C={};if(m){const E=m.split(",");for(const v of E)(+v||+v==0)&&g.push(+v+"px")}return g!=null&&g.length&&(C.borderRadius=g.join(" ")),C}),y=Be(e)("click",()=>{}),u=t.ref([]);t.watch(()=>e.data,m=>{u.value=m},{immediate:!0,deep:!0}),Re(e,{click:y});const{setGlobalModel:h}=t.inject(Te,{setGlobalModel:(m,g)=>{}});return h(e.id,{type:e.type,value:u}),{style:o,gradientStyle:n,click:y,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),Zh="",Tt=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),Tf=["id"],Bf=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Ef=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Df=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),If=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Rf={class:"title-item"},Of=["src"],_f={class:"title"},Lf=["src"],Nf=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Ff=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),zf=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Mf=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Pf={key:2,class:"left-title"},qf={class:"title"};function Vf(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},[Bf,Ef,Df,If],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",Rf,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Of),t.createElementVNode("div",_f,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Lf)])],2),Nf,Ff,zf,Mf],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Pf,[t.createElementVNode("div",qf,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,Tf)}const kl=pe(me(kf,[["render",Vf],["__scopeId","data-v-8dd53b8f"]])),Ea={...ke,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=ve(Ea),Tl=["tabChange"],Hf=t.defineComponent({name:"EcanTabs",props:{...Da},components:{ASelect:se.Select,ASelectOption:se.SelectOption,MarqueeScroll:Mn},setup(e){const o=Ae(e),n=t.ref(0);t.watch(()=>e.activeKey,m=>{n.value=m},{immediate:!0});const{pageMode:a}=t.inject(Me,{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 g=t.unref(n)+1;g<=m?n.value=g: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=Be(e),{setGlobalModel:f}=t.inject(Te,{setGlobalModel:(m,g)=>{}});f(e.id,{value:l,activeKey:n});const{emitRefreshPage:y}=t.inject(tn,{emitRefreshPage:()=>{}}),u=(m,g)=>{c("tabChange",()=>{g!==t.unref(n)&&(l.value=m,n.value=g,y())})()},h=t.computed(()=>{const m=e.componentList.map(g=>parseFloat(g.left)+parseFloat(g.width)).sort((g,C)=>C-g)[0];return{width:m?m+"px":"100%"}});return Re(e,{tabChange:u}),{style:o,activeKey:n,isActive:d,tabChange:u,myData:s,useImagePath:yt,pageMode:a,scrollWrapStyle:h}}}),Qh="",jf=["id"],Wf=["onClick"];function Uf(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,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(f)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(f)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:f,onClick:t.withModifiers(y=>e.tabChange(c,f),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(f)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,Wf))),128)):e.tabType==="select"?(t.openBlock(),t.createBlock(l,{key:1,value:e.activeKey,style:t.normalizeStyle({width:e.tabWidth})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(c,f)=>(t.openBlock(),t.createBlock(s,{key:f,value:f,onClick:y=>e.tabChange(c,f)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):t.createCommentVNode("",!0)],4)):t.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,jf)}const Bl=pe(me(Hf,[["render",Uf],["__scopeId","data-v-132544b5"]])),Ia={...ke,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"},Ra=ve(Ia),El=["click","refreshData","resetRecord"];let Dl=(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 Gf=t.defineComponent({name:"EcanCirculate",props:{...Ra,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll:Mn,Skeleton:en},setup(e,{expose:o}){const n=t.ref(!1),a=Ae(e,["background"]),r=t.inject("usedComponentList",[]),i=t.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=t.inject(Te,{getGlobalModel:k=>{},setGlobalModel:(k,O)=>{}}),d=t.ref([]),c=t.ref({}),{pageMode:f}=t.inject(Me,{pageMode:"normal"}),y=t.computed(()=>{if(t.unref(i)){const k=document.body.clientWidth,O=e.sourceWidth||parseFloat(e.width);return k/O||1}else return 1});function u(k,O){const N=O.find(I=>I.id===e.id);if(N)for(const I of k)I.left=parseFloat(I.left)-parseFloat(N.sourceLeft||N.left)+"px",I.top=parseFloat(I.top)-parseFloat(N.sourceTop||N.top)+"px"}const h=k=>{const O=k.sort((I,w)=>parseFloat(I.left)-parseFloat(w.left))[0],N=k.map(I=>parseFloat(I.left)+parseFloat(I.width)).sort((I,w)=>w-I)[0];if(O&&N){const I=parseFloat(O.left);return{width:N-I,left:I}}else return{width:0,left:0}},m=t.ref({}),g=k=>{var F,q;const O=[],{graphicConfig:N,id:I,componentList:w,keyFieldMap:R,unitInterval:x}=e;let B=Ie.cloneDeep(w),b=[];if((F=t.unref(r))!=null&&F.length)for(const H of t.unref(r))b.push(H),(q=H==null?void 0:H.componentList)!=null&&q.length&&b.push(...H.componentList);if(N.pageMode==="design"&&N.preview){const{containerMap:H}=N.pageConfig||{};b=N.componentList||[],b.push(e),B=ha(H,Ie.cloneDeep(b),I)}u(B,b);const D=h(B);if(k!=null&&k.length){const{width:H,left:G}=D;let z=0;for(const P of k){const M=Dl(),_=Ie.cloneDeep(B);for(const L of _){const V=R.find(U=>U.keyName===L.keyName),Z=Dl();if(L.left=(parseFloat(L.left)+z)*t.unref(y)+"px",L.top=parseFloat(L.top)*t.unref(y)+"px",L.scale=t.unref(y),L.id=Z,L.keyName=L.name+"_"+Z,L.unitId=M,V!=null&&V.fieldName)switch(L.type){case"ecanText":{const U=L.text.match(/\{(.+?)\}/g);L.data={value:String(P[V.fieldName])},U!=null&&U.length||(L.text="{value}");break}}}z+=x+H,O.push(..._),m.value[M]=P}c.value={width:(k.length*(H+x)+G)*t.unref(y)+"px"}}d.value=O},C=Ze(e),E=async()=>{var k;try{n.value=!0;const O=await C(),{rows:N=[]}=((k=O==null?void 0:O.data)==null?void 0:k.data)??{};g(N)}catch(O){console.error(O)}finally{n.value=!1}},v=()=>{switch(e.dataType){case"indicator":E();break}};Re(e,{refreshData:v,resetRecord:()=>{const k=e.id,O=s(k);l(k,{...O,RECORD:""})}}),o({refreshData:v}),l(e.id,{type:e.type,RECORD:""});const{setRequest:p}=t.inject(Fe,{setRequest:k=>{}});typeof p=="function"&&p({id:e.id,requestFn:v,sortNum:e.requestSort});const A=Be(e);return{loading:n,style:a,myComponentList:d,scrollWrapStyle:c,pageMode:f,click:k=>{const{target:O}=k;if(O){const N=O.getAttribute("unitId");N&&A("click",()=>{const I=s(e.id);l(e.id,{...I,type:e.type,RECORD:t.unref(m)[N]})})()}}}}}),Xh="",$f=["id"];function Kf(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:!["design","normal"].includes(e.pageMode)&&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,$f)}const Il=pe(me(Gf,[["render",Kf],["__scopeId","data-v-21395789"]])),Oa={...ke,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1},_a=ve(Oa),Rl=["click"],La=t.defineComponent({name:"EcanImage",props:{..._a},setup(e){const o=Ae(e),n=t.computed(()=>yt(e.imgUrl)),{pageMode:a}=t.inject(Me,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=t.inject(Te,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Be(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||"",f=Bi(t.unref(a),c),y=e.href;let u=y||f;u=De(u);const h=e.target;h&&(h!=="event"?window.open(u,"_"+h):window.parent.postMessage({type:"openPage",url:y},"*"))});return Re(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),Ol=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},_l=La.setup;La.setup=_l?(e,o)=>(Ol(),_l(e,o)):Ol;const t1="",Zf=["src"];function Yf(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,Zf)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const Ll=pe(me(La,[["render",Yf],["__scopeId","data-v-47ea6e7c"]])),Na={...ke,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Fa=ve(Na),Qf=t.defineComponent({name:"EcanIframe",props:{...Fa},setup(e){const o=Ae(e),{contextRequestUrl:n}=t.inject(Me,{contextRequestUrl:""}),a=t.computed(()=>{let r=De(e.link);if(e.linkType==="erd"&&r!=null){let i=t.unref(n);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${_s||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),o1="",Jf=["src"];function Xf(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,Jf)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Nl=pe(me(Qf,[["render",Xf],["__scopeId","data-v-19bc100c"]])),za={...ke,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},Ma=ve(za),Fl=["click","refreshData","resetRecord","exportTableData"],eu="data:image/png;base64,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",tu="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==",nu="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:se.Button,AInput:se.Input,ACheckboxGroup:se.CheckboxGroup,ATable:se.Table,ATableSummary:se.TableSummary,ATableSummaryRow:se.TableSummaryRow,ATableSummaryCell:se.TableSummaryCell},props:{...Ma},setup(e,{expose:o}){const n=t.ref(!1),a=t.computed(()=>{const j=Ie.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=Ae(e),l=t.ref([]),d=t.computed(()=>e.scrollX),c=t.ref(0),f=()=>{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 K=parseFloat(e.height);const J=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),oe=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),le=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ne=0;if(oe&&(K-=(oe==null?void 0:oe.clientHeight)||0),le&&e.isSummaryFixed&&(ne=(le==null?void 0:le.clientHeight)||0,K-=ne),e.paginationShow){let ee=0;ee=f(),ee&&(K-=ee)}(J==null?void 0:J.clientHeight)>K?c.value=K:c.value=0,t.nextTick(()=>{if(ne){const ee=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),ue=(ee==null?void 0:ee.clientHeight)||0;ne!==ue&&t.unref(c)&&(c.value=K+ne-ue)}})})});const y=t.ref([]),u=t.ref([]),h=t.ref([]),m=t.ref([]),g=t.ref(0),C=t.ref(1),E=t.ref(e.paginationPageSize||10),v=t.reactive([]),S=(j=[])=>{var K,J;if(Array.isArray(j)&&j.length>0){let oe=j.length;const le=e.columnsFixedNum;if(e.dataType==="indicator"&&((K=t.unref(a))!=null&&K.length)){const{graphicConfig:{indicators:ne=[]}}=e;j.forEach((ee,ue)=>{if(t.unref(a)[ue])for(const Ne in t.unref(a)[ue])["dataIndex","title"].includes(Ne)||(ee[Ne]=t.unref(a)[ue][Ne]);const ge=ne.find(Ne=>Ne.label===ee.title),{showLabel:ye=""}=ge||{};ye&&(ee.title=ye)})}for(let ne=oe-1;ne>=0;ne--)(J=j[ne])!=null&&J.isHidden&&j.splice(ne,1);oe=j.length;for(let ne=0;ne<oe;ne++){const ee=j[ne];if(ne<le?ee.fixed="left":ee.fixed=!1,e.isSortByFront&&ee.sorter){const Qe=ee.dataIndex;ee.sorter=(_t,Zt)=>_t[Qe]-Zt[Qe]}const{cellAlign:ue="center",cellColor:ge,dataIndex:ye,title:Ne,tableFilter:Ye,headerCellAlign:xt,headerCellColor:Ot,overflow:wn}=ee;Ye&&(v.push(ye),ee.filterOptionsInputValue="",ee.filterCheckboxGroupValue=[],ee.customFilterDropdown=!0,ee.onFilter=(Qe,_t)=>_t[ye].toString().toLowerCase().includes(Qe.toLowerCase())),ee.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:xt||"center",color:Ot||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),ee.customCell=(Qe,_t)=>({style:{textAlign:ue,color:ge||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(V)===_t&&e.clickHighlight},onClick:G("click",()=>{const Zt=e.id,An=z(Zt);Qe={dataIndex:ye,title:Ne,...Qe},P(Zt,{...An,type:e.type,RECORD:Qe})})}),wn==="ellipsis"?ee.ellipsis=!0:ee.ellipsis=!1,Array.isArray(ee.children)&&S(ee.children)}}},p=(j=[])=>{var J;let K=Ie.cloneDeep(j);return(J=t.unref(m))!=null&&J.length&&(K=Ie.cloneDeep(t.unref(m))),e.isUseSeq&&K.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&K.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),S(K),K};t.watch(E,()=>{C.value=1,Y(!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(Ie.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([j,K])=>{K==="static"&&(u.value=j)},{immediate:!0});const A=t.ref({}),T=j=>{if(Array.isArray(j)){const K=j.length,J=v,oe=J.length,le={};for(let ee=0;ee<K;ee++){const ue=j[ee];for(let ge=0;ge<oe;ge++){const ye=J[ge];if(le[ye])le[ye].add(ue[ye]);else{const Ne=new Set;Ne.add(ue[ye]),le[ye]=Ne}}}const ne={};for(const ee in le)if(Object.prototype.hasOwnProperty.call(le,ee)){const ue=le[ee],ge=Array.from(ue);ne[ee]=ge.map(ye=>({label:ye,value:ye}))}A.value=ne}};t.watch(()=>[e.isReverse,y.value,u.value],()=>{const j=t.unref(y),K=t.unref(u);if(T(K),e.isReverse){const{columns:J,dataSource:oe}=k(Ie.cloneDeep(j),Ie.cloneDeep(K));h.value=J,l.value=oe}else h.value=j,l.value=K},{immediate:!0});const k=(j,K)=>{const J=j[0],oe=[{title:J.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ne=0;ne<K.length;ne++){const ee=K[ne],ue="col"+(ne+1);oe.push({title:ee[J.dataIndex],dataIndex:ue,key:ue,align:"center"})}const le=[];for(let ne=1;ne<j.length;ne++){const ee=j[ne],ue={col0:ee.title};for(let ge=0;ge<K.length;ge++){const ye=K[ge];ue[`col${ge+1}`]=ye[ee.dataIndex]}le.push(ue)}return{columns:oe,dataSource:le}},O=t.ref(""),N=Ve(e),I=async(j=!0,K={})=>{var J;try{j&&(n.value=!0),t.unref(O)&&(K.orderCondition=t.unref(O)),e.paginationShow&&(K={pageNum:t.unref(C),pageSize:t.unref(E)||"10",layer:"1",...K});const oe=await N(K),{rows:le=[],total:ne=0}=((J=oe==null?void 0:oe.data)==null?void 0:J.data)||{};if(g.value=ne,Array.isArray(le)&&(u.value=le),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ee=[]}=e,ue=ee.find(ge=>ge.key==="dataSqlId");if((ue==null?void 0:ue.value)==="xt_jxzebg"){const ge=le.filter(ye=>!ye.绩效总额).map(ye=>ye.ORG_NAME);ge!=null&&ge.length&&t.nextTick(()=>{se.notification.warning({message:"提示",description:`当前时段${ge.join("、")}绩效数据为空`,duration:3})})}}}catch(oe){console.error(oe)}finally{n.value=!1}},w=({current:j},K,J)=>{if(C.value=j,J&&Object.keys(J).length>0){const{field:oe,order:le}=J,ee={ascend:"asc",descend:"desc"}[le];oe!=null&&ee!=null&&ee?O.value=oe+" "+ee:ee||(O.value="")}e.isSortByFront||Y(!1)},R=t.computed(()=>{const j=e.simple,K=[e.paginationPosition],J={};return e.isShowTotal&&(J.showTotal=oe=>`共 ${oe} 条数据`),e.paginationShow&&{simple:j,position:K,total:t.unref(g),current:t.unref(C),pageSize:t.unref(E)||"10",showSizeChanger:!1,size:"large",...J}}),x=j=>+j==1?"是":+j==0?"否":j,B=(j,K)=>{const{format:J,retentiondigit:oe,customFormatter:le}=K;if(J==null||J==="")return j;const ne={money:Ro,percentage:Sn,contrast:Sn,boolean:x,decimals:Vc,custom:Ti};return ne[J]?J==="decimals"?ne[J](j,oe)||"":J==="custom"?ne[J](j,le)||"":ne[J](j)||"":""},b=j=>j==="contrast"?"upDown":"",D=j=>{const{text:K,format:J,declineColor:oe="#39cf93",increaseColor:le="#ff512e"}=j;if(J==="contrast"){const ne={fontSize:e.fontSize},ee=parseFloat(K+"");return ee>=0?ne.color=le:ee<0&&(ne.color=oe),ne}else return{}},F=t.computed(()=>{const{fontSize:j}=e;return{width:j,height:j,textIndent:`-${parseFloat(j)*2}px`,overflow:"hidden"}}),q=j=>{const{text:K,declineColor:J="#39cf93",increaseColor:oe="#ff512e"}=j,{fontSize:le}=e,ne=parseFloat(K+""),ee={width:le,verticalAlign:"unset"};return ne>=0?ee.filter=`drop-shadow(${oe||"#ff512e"} ${le} -1px)`:ne<0&&(ee.filter=`drop-shadow(${J||"#39cf93"} ${le} -1px)`),ee},H=j=>{const K=parseFloat(j+"");if(K>=0)return Fo;if(K<0)return zo},G=Be(e),{getGlobalModel:z,setGlobalModel:P}=t.inject(Te,{getGlobalModel:j=>{},setGlobalModel:(j,K)=>{}});P(e.id,{type:e.type,RECORD:""});const M=(j=[],K=[])=>{const J=j.map(oe=>({title:oe,dataIndex:oe,key:oe}));m.value=Ie.cloneDeep(J),y.value=p(J),u.value=K},_=Ze(e),L=async(j=!0)=>{var K,J,oe,le;try{j&&(n.value=!0);const ne=t.unref(O).split(" "),ee={};e.isSortByFront||(ee.sort={order:ne[1],field:ne[0]});const ue=await _(ee);M((J=(K=ue==null?void 0:ue.data)==null?void 0:K.data)==null?void 0:J.columns,(le=(oe=ue==null?void 0:ue.data)==null?void 0:oe.data)==null?void 0:le.rows)}catch(ne){console.error(ne)}finally{n.value=!1}},V=t.ref(-1),Z=(j,K)=>({onClick:G("rowClick",()=>{const J=e.id,oe=z(J);P(J,{...oe,type:e.type,RECORD:j}),V.value=K})}),{loadedData:U}=t.inject(vt,{loadedData:{}}),ae=t.ref(!1);t.watch(U,j=>{if(e.dataType==="indicator"){const K=on(e.graphicConfig);K!=null&&K.length&&(!t.unref(ae)&&it(e.graphicConfig,j)?(ae.value=!0,Y()):it(e.graphicConfig,j)||(ae.value=!1))}},{deep:!0});const Y=(j=!0)=>{switch(e.dataType){case"request":I(j);break;case"indicator":it(e.graphicConfig,t.unref(U))&&L(j);break}},ie=()=>{const j=e.id,K=z(j);P(j,{...K,type:e.type,RECORD:""})},re=t.computed(()=>{const j=t.unref(h);let K=0;const{subTotalColumn:J,subTotalName:oe}=e;J&&(K=j.findIndex(ge=>ge.dataIndex===J),K<0&&(K=0));const le=[];let ne=0;for(let ge=0;ge<j.length;ge++){const ye=j[ge],{isCalcTotal:Ne}=ye;ge===K?le.push({...ye,total:oe}):Ne?(le.push({...ye,index:ge,total:0}),ne++):le.push({...ye})}if(ne===0)return[];const ee=t.unref(l),ue=Q(le);for(let ge=0;ge<ue.length;ge++){const ye=ue[ge];let Ne=0;const{isCalcTotal:Ye,dataIndex:xt}=ye;if(Ye===!0){for(let Ot=0;Ot<ee.length;Ot++){const Qe=+ee[Ot][xt];isNaN(Qe)||(Ne=new e0.Big(Ne).add(Qe).toNumber())}ye.total=Ne}}return ue});function Q(j){var J;const K=[];for(const oe of j)(J=oe.children)!=null&&J.length?K.push(...Q(oe.children)):K.push(oe);return K}const{setRequest:X}=t.inject(Fe,{setRequest:j=>{}});typeof X=="function"&&X({id:e.id,requestFn:Y,sortNum:e.requestSort}),o({refreshData:Y});const te=(j="",K)=>De(j,K),fe=j=>{if(j!=="event")return{self:"_self",blank:"_blank"}[j]},be=(j,K="")=>{j==="event"&&window.parent.postMessage({type:"openPage",url:K},"*")},we=(j,K)=>{j(K.filterCheckboxGroupValue)},$e=(j,K)=>{j({confirm:!0}),K.filterOptionsInputValue="",K.filterCheckboxGroupValue=[]},Pe=()=>{},_e=j=>{const K=j.dataIndex;if(typeof K=="string"){let J=t.unref(A)[K];const oe=t.unref(j.filterOptionsInputValue).trim();return Array.isArray(J)?(J=J.filter(le=>typeof le.label=="string"?le.label.toLowerCase().includes(oe.toLowerCase()):!0),J):[]}return[]},Ee=async()=>{var ye,Ne;const j="EXPORT_KEY";se.message.loading({key:j,content:"正在导出...",duration:0});let K=[];if(e.dataType==="static")K=e.data;else if(e.dataType==="request"){const Ye={layer:"1"};t.unref(O)&&(Ye.orderCondition=t.unref(O));const xt=await N(Ye);K=((Ne=(ye=xt==null?void 0:xt.data)==null?void 0:ye.data)==null?void 0:Ne.rows)||{}}const J=t.unref(h),oe=[],le=[];J==null||J.forEach(Ye=>{oe.push(Ye.dataIndex),le.push(Ye.title)});const ne=K.map(Ye=>Ie.pick(Ye,oe)),ee=Yt.utils.book_new(),ue=Yt.utils.aoa_to_sheet([le]),ge=Yt.utils.sheet_add_json(ue,ne,{skipHeader:!0,origin:"A2"});Yt.utils.book_append_sheet(ee,ge,"sheet"),Yt.writeFile(ee,"表格数据.xlsx"),se.message.success({key:j,content:"导出成功"})},He=(j,K=2)=>{const J=+j*100;return isNaN(J)||J<=0?0:J>=100?100:J.toFixed(K)};Re(e,{resetRecord:ie,refreshData:Y,exportTableData:Ee});const ze=(j,K)=>{let J=null;return e.stripedShow&&(J=K%2===1?"table-striped":null),J},Ke=t.computed(()=>{let j=0;const{height:K,isPageBottom:J}=e;return J&&K&&(j=parseFloat(K)-f()),j?j+"px":"100%"}),We=t.computed(()=>{let j="#071655";return e.headerBackgroundColor&&(j="transparent"),j}),je=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:K,paginationBgColor:J,activePaginationColor:oe,activePaginationBgColor:le,hoverBackgroundColor:ne}=e;return K&&(j+="p-color "),J&&(j+="p-bg-color "),oe&&(j+="active-p-color "),le&&(j+="active-p-bg-color "),ne&&(j+="hover-bg-color "),j});return{x:d,y:c,style:s,customRow:Z,pagination:R,formatFn:B,contrastClass:b,tableChange:w,summaryList:re,loading:n,onTouchHrefEvent:be,handleHref:te,handleHrefTarget:fe,useRowIndex:V,tableColumns:h,tableDataSource:l,useFilterOptions:_e,useSetSelectedKeys:we,onResetFilter:$e,onSearchFilterOptions:Pe,exportTableData:Ee,handleProgressText:He,pageSizeVisible:i,pageSize:E,tableRef:r,rowClassName:ze,tableHeight:Ke,tableHeaderBgColor:We,tableBodyBgColor:je,getChgStyle:D,chgBoxStyle:F,getChgBoxImgStyle:q,getChgBoxImgSrc:H,seqIcon1:eu,seqIcon2:tu,seqIcon3:nu,iconSize:ut,containerClass:tt,getCellStyle:j=>{const{overflow:K}=j;if(K==="ellipsis")return{overflow:"hidden",textOverflow:"ellipsis"};if(K==="wrap")return{}}}}}),zl=()=>{t.useCssVars(e=>({"70c383fc":e.stripedColor,"35e71b39":e.tableHeaderBgColor,"53718c84":e.tableBodyBgColor,cedc7664:e.paginationBgColor,"6ceaca13":e.paginationColor,"25b86a30":e.activePaginationBgColor,"6a9b8ead":e.activePaginationColor,"7d7d7e0f":e.hoverBackgroundColor}))},Ml=Pa.setup;Pa.setup=Ml?(e,o)=>(zl(),Ml(e,o)):zl;const r1="",i1="",ou=e=>(t.pushScopeId("data-v-f641124f"),e=e(),t.popScopeId(),e),au=["id"],ru={key:0,class:"table-tool"},iu=t.createTextVNode("导出数据"),lu=t.createTextVNode(" 搜索 "),su=t.createTextVNode(" 重置 "),cu=["src","width","height"],du=["src","width","height"],fu=["src","width","height"],uu={key:1},hu={key:1,class:"action-list"},gu=["href","target","onClick"],mu={key:2,class:"progress-cell"},yu=["title"],xu=["title"],pu=["src"],bu=["title"],vu=["src"],Su={class:"ant-pagination-options-quick-jumper"},Cu=ou(()=>t.createElementVNode("span",null,"条 / 页",-1));function wu(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"),f=t.resolveComponent("a-table-summary-row"),y=t.resolveComponent("a-table-summary"),u=t.resolveComponent("a-table"),h=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(h,{loading:e.loading},{default:t.withCtx(()=>{var m;return[e.isUseExport?(t.openBlock(),t.createElementBlock("div",ru,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[iu]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(u,{ref:"tableRef",class:"table",style:t.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:t.withCtx(({column:g,selectedKeys:C,setSelectedKeys:E,confirm:v,clearFilters:S})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(l,{value:g.filterOptionsInputValue,"onUpdate:value":p=>g.filterOptionsInputValue=p,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:g.filterCheckboxGroupValue,"onUpdate:value":p=>g.filterCheckboxGroupValue=p,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:p=>e.useSetSelectedKeys(E,g)},null,8,["value","onUpdate:value","options","onChange"]),t.createElementVNode("div",null,[t.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>v()},{default:t.withCtx(()=>[lu]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(p=>e.onResetFilter(S,g),["stop"])},{default:t.withCtx(()=>[su]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:g,index:C,text:E,record:v})=>{var S,p,A,T;return[g.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[C===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,cu)):C===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,du)):C>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,fu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.fontSize})},t.toDisplayString(C+1),5)],64)):(t.openBlock(),t.createElementBlock("span",uu,t.toDisplayString(C+1),1))],64)):g.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",hu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(k,O)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:O},[t.createElementVNode("a",{href:e.handleHref(k.href,v),target:e.handleHrefTarget(k.target),style:t.normalizeStyle({color:k.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:N=>e.onTouchHrefEvent(k.target,e.handleHref(k.href,v))},t.toDisplayString(k.title),13,gu)]))),128))])):g.format==="progress"?(t.openBlock(),t.createElementBlock("div",mu,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:g.progressColor||"#1890ff",height:g.progressWidth||"18px",width:`${e.handleProgressText(E,g.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(E)<100?g.progressTextColor||"#333":g.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(E,g.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(g)})},[g.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:0,title:((S=g==null?void 0:g.customFormatter)==null?void 0:S.split("{value}")[0])||""},t.toDisplayString(((p=g==null?void 0:g.customFormatter)==null?void 0:p.split("{value}")[0])||""),9,yu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(g.format)]),style:t.normalizeStyle(e.getChgStyle({...g,text:E})),title:g.format!=null?e.formatFn(E,g):E},[g.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...g,text:E})),src:e.getChgBoxImgSrc(E)},null,12,pu)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(g.format!=null?e.formatFn(E,g):E),1)],14,xu),g.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((A=g==null?void 0:g.customFormatter)==null?void 0:A.split("{value}")[1])||""},t.toDisplayString(((T=g==null?void 0:g.customFormatter)==null?void 0:T.split("{value}")[1])||""),9,bu)):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(f,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(g,C)=>(t.openBlock(),t.createBlock(c,{key:C,index:C,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:g.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(g.format)]),style:t.normalizeStyle({...e.getChgStyle({...g,text:g.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[g.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...g,text:g.total})),src:e.getChgBoxImgSrc(g.total)},null,12,vu)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(g.total,g)),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",Su,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=g=>e.pageSize=g)},null,512),[[t.vModelText,e.pageSize]]),Cu])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,au)}const Pl=pe(me(Pa,[["render",wu],["__scopeId","data-v-f641124f"]])),qa={...ke,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=ve(qa),ql=["click"];Je.use([Et.CanvasRenderer,ht.MapChart,ht.ScatterChart,Ce.VisualMapComponent,Ce.TooltipComponent,Ce.GraphicComponent]);const Au=t.defineComponent({name:"EcanMap",components:{Echarts:pt},props:{...Va},setup(e){const o=Ve(e),n=Ve({...e.tooltipRequestData,requestHeaders:{}}),a=t.ref(),r=t.ref(""),i=t.ref(""),s=Ae(e,["backgroundImage"]),l=t.ref(),d=t.computed(()=>yt(e.geoBackgroundImage)),c=t.computed(()=>yt(e.backgroundImage)),f=t.computed(()=>e.geoBackgroundImage?{image:t.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),y=t.computed(()=>{const x=e.symbolImage;return e.symbolImage?"image://"+yt(x):"circle"}),u=x=>{let B=e.tooltipFormatter;const b=B.match(/\{(.+?)\}/g);if(b==null||b.length===0)return B;for(let D=0;D<b.length;D++){const F=b[D];let q=F.slice(1,-1).trim();const H=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,G=q.match(H);for(let z=0;z<G.length;z++){const P=G[z],M=x[P];M!=null&&(q=q.replace(P,M))}B=B.replace(F,q)}return B.split(`
|
|
120
|
-
`)},h=t.ref(!1),m=t.ref("");let g=new AbortController;const C=(x,B)=>{const b=g.signal;h.value=!0,r.value=x,n({name:x,signal:b}).then(D=>{var F,q;if(D){const H=((q=(F=D==null?void 0:D.data)==null?void 0:F.data)==null?void 0:q.rows)||[];let G="";for(const z of H){const P=u(z)||[];if(P!=null&&P.length)for(const M of P)G+=`<div style="word-break: break-all;white-space: normal;">${M}</div>`}G=`<div style="max-width:200px;">${G}</div>`,i.value=G,B(t.unref(m),G)}else b.aborted?i.value="Loading":i.value=x,B(t.unref(m),i.value);h.value=!1})},E=t.computed(()=>{const x=e.geoCenter;let B;return typeof x=="string"&&x!==""&&(B=x.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:B,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(b,D,F)=>{m.value=D;const{name:q=""}=b,{requestUrl:H}=e.tooltipRequestData;if(!H)return q;if(t.unref(h))t.unref(r)!==q&&(g.abort(),g=new AbortController);else{if(t.unref(r)===q)return t.unref(i);C(q,F)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(f),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}]}}),v=t.ref(!1),S=async()=>{var b;v.value=!1;const x=e.mapJson,B=`map-${e.id}`;if(x!=null&&x.path){const D=await ft(((b=window==null?void 0:window.config)==null?void 0:b.uploadPath)+x.path);Je.registerMap(B,(D==null?void 0:D.data)||{})}else Je.registerMap(B,{});v.value=!0};t.watch(()=>e.mapJson,()=>{S()},{immediate:!0,deep:!0});const p=async()=>{var x,B;if(e.dataType==="request"){v.value=!1;try{const b=await o(),D=((B=(x=b==null?void 0:b.data)==null?void 0:x.data)==null?void 0:B.rows)||{},F=`map-${e.id}`;if(D!=null&&D.path){const q=await ft(D.path);Je.registerMap(F,(q==null?void 0:q.data)||{})}else Je.registerMap(F,{})}catch(b){console.error(b)}finally{v.value=!0}}},A=()=>{switch(e.dataType){case"request":p();break}},{getGlobalModel:T,setGlobalModel:k}=t.inject(Te,{getGlobalModel:x=>{},setGlobalModel:(x,B)=>{}}),N=Be(e)("click",()=>{const x=T(e.id);k(e.id,{...x,RECORD:t.unref(a)})});Re(e,{refreshData:A});const{setRequest:I}=t.inject(Fe,{setRequest:x=>{}});return typeof I=="function"&&I({id:e.id,requestFn:A,sortNum:e.requestSort}),{option:E,style:s,isLoadedData:v,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{t.unref(a)&&N()},onMouseOver:(x={})=>{x.componentType==="geo"&&x.region?a.value=x.region:a.value=null}}}}),s1="",ku=["src"];function Tu(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,ku),[[t.vShow,!1]])],4)}const Vl=pe(me(Au,[["render",Tu],["__scopeId","data-v-10f150ac"]])),Ha={...ke,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},ja=ve(Ha),Hl=["selectChange","refreshData"],Bu=t.defineComponent({name:"EcanDataSelect",components:{ASelect:se.Select,ASelectOption:se.SelectOption},props:{...ja},setup(e,{expose:o}){const n=Ae(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=Ve(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var R;const{mode:w}=e;return(R=t.unref(i))!=null&&R.length?s.value:w==="multiple"||w==="tags"||w==="combobox"?[]:""},set:w=>{s.value=w}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:f}=t.inject(Te,{getGlobalModel:w=>{},setGlobalModel:(w,R)=>{},getRecordValueByKeyName:w=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:w,selectFirstOption:R,value:x}=e,B=f(x),b=y.value;if(w==="multiple"||w==="tags"||w==="combobox"){if(B)s.value=B.split(",");else if(R){const D=t.unref(i)[0];s.value=D?[D[b]]:[]}}else if(B)s.value=B;else if(R){const D=t.unref(i)[0];s.value=D?D[b]:""}},{immediate:!0});const u=(w,R)=>{const x=y.label,B=y.value;let b;const D=R[x],F=R[B];return D!=null?b=D:F!=null&&(b=F),(b==null?void 0:b.toLowerCase().indexOf(w==null?void 0:w.toLowerCase()))>=0},h=w=>{const{label:R,value:x,options:B}=e.dataFieldNames;if(B&&Array.isArray(w))if(w.some(b=>B in b)){const b={},D=[];w.forEach(F=>{b[F[B]]||(b[F[B]]=[]),b[F[B]].push({[R]:F[R],[x]:F[x]})});for(const F in b)D.push({[R]:F,[B]:b[F]});return D}else return w;else if(!B)return w},m=t.ref(!1),g=async()=>{var w,R;if(e.dataType==="request"){m.value=!0;try{const x=await r();if(i.value=h(((R=(w=x==null?void 0:x.data)==null?void 0:w.data)==null?void 0:R.rows)||[]),e.selectFirstOption){let B=t.unref(i)[0];if(y.options){const b=B[y.options];b&&b.length&&(B=b[0])}s.value=B[y.value]}}catch(x){console.error(x)}finally{m.value=!1}}},C=t.computed(()=>{let w=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const R=y.label,x=y.value;if(e.mode==="multiple")w=t.unref(i).filter(B=>t.unref(s).includes(B[x])).map(B=>B[R]);else{const B=t.unref(i).find(b=>t.unref(s)===b[x]);B&&(w=B[R])}}return w}),E=t.ref([]),v=t.computed(()=>{const w={};if(e.mode!=="multiple"){const R=t.unref(E).find(x=>x.value===t.unref(s));R&&(w.itemCodes=R.item_codes)}return w}),S=t.computed(()=>{const{value:w,label:R}=y,x=t.unref(i).find(B=>B[w]===t.unref(l));return x?{label:x[R],value:x[w]}:{}});c(e.id,{type:e.type,value:C,...t.unref(v),recordData:t.unref(S)});const A=Be(e)("selectChange",()=>{const w=e.id,R=d(w);c(w,{...R,...t.unref(v),RECORD:C,recordData:t.unref(S)})}),T=(w=[])=>{if(i.value=h(w),e.selectFirstOption){let R=t.unref(i)[0];if(y.options){const x=R[y.options];x&&x.length&&(R=x[0])}s.value=R[y.value]}c(e.id,{type:e.type,value:C,...t.unref(v),recordData:t.unref(S)})},k=Ze(e),O=async()=>{var w;try{m.value=!0;const R=await k(),{data:x}=(R==null?void 0:R.data)||{},B=y.label,b=y.value;if(x){const D=((w=R==null?void 0:R.data)==null?void 0:w.data)??[];E.value=D;const F=D.map(G=>({[B]:G.label,[b]:G.value})),{id:q}=e,H=d(q);c(q,{...H,...t.unref(v)}),T(F)}else T([])}catch(R){console.error(R)}finally{m.value=!1}},N=()=>{switch(e.dataType){case"indicator":{O();break}case"request":g();break}};Re(e,{selectChange:A,refreshData:N});const{setRequest:I}=t.inject(Fe,{setRequest:({id:w,sortNum:R,requestFn:x})=>{}});return typeof I=="function"&&I({id:e.id,requestFn:N,sortNum:e.requestSort}),o({refreshData:N}),{style:n,getPopupContainer:a,myValue:s,selectChange:A,options:i,filterOption:u,loading:m,resultValue:l}}}),d1="",f1="";function Eu(e,o,n,a,r,i){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const jl=pe(me(Bu,[["render",Eu],["__scopeId","data-v-3639c038"]])),Wl=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:yl,EcanBorder:kl,EcanButton:Xi,EcanCheckbox:tl,EcanCirculate:Il,EcanComboGraph:Sl,EcanCustomGraph:bl,EcanDataSelect:jl,EcanDatePicker:Gi,EcanIframe:Nl,EcanImage:Ll,EcanInput:Hi,EcanLine:gl,EcanList:Mi,EcanMap:Vl,EcanModal:kt,EcanPageConfig:Ei,EcanPie:ul,EcanProportion:qi,EcanProviderConfig:Di,EcanRadar:wl,EcanRadio:ll,EcanRangePicker:Qi,EcanScatter:pl,EcanScrollText:Li,EcanSelect:ol,EcanTable:Pl,EcanTabs:Bl,EcanText:_i,EcanTimeDisplay:Fi,EcanTreeSelect:rl,barComponentProps:xa,barEvents:ml,barProps:ya,borderComponentProps:Ba,borderEvents:Al,borderProps:Ta,buttonComponentProps:ea,buttonEvents:Ji,buttonProps:Xo,checkboxComponentProps:na,checkboxEvents:el,checkboxProps:ta,circulateComponentProps:Ra,circulateEvents:El,circulateProps:Ia,comboGraphComponentProps:wa,comboGraphEvents:vl,comboGraphProps:Ca,customGraphComponentProps:Sa,customGraphProps:va,dataSelectComponentProps:ja,dataSelectEvents:Hl,dataSelectProps:Ha,datePickerComponentProps:Ko,datePickerEvents:ji,datePickerProps:$o,iframeComponentProps:Fa,iframeProps:Na,imageComponentProps:_a,imageEvents:Rl,imageProps:Oa,inputComponentProps:Go,inputEvents:Vi,inputProps:Uo,lineComponentProps:ma,lineEvents:hl,lineProps:ga,listComponentProps:Ho,listEvents:zi,listProps:Vo,mapComponentProps:Va,mapEvents:ql,mapProps:qa,modalComponentProps:ua,modalEvents:cl,modalProps:fa,pageConfig:Pn,pageConfigComponentProps:qn,pieComponentProps:da,pieEvents:sl,pieProps:ca,proportionComponentProps:Wo,proportionEvents:Pi,proportionProps:jo,providerConfig:Oo,providerConfigComponentProps:_o,radarComponentProps:ka,radarEvents:Cl,radarProps:Aa,radioComponentProps:sa,radioEvents:il,radioProps:la,rangePickerComponentProps:Qo,rangePickerEvents:$i,rangePickerProps:Yo,scatterComponentProps:ba,scatterEvents:xl,scatterProps:pa,selectComponentProps:aa,selectEvents:nl,selectProps:oa,tableComponentProps:Ma,tableEvents:Fl,tableProps:za,tabsComponentProps:Da,tabsEvents:Tl,tabsProps:Ea,textComponentProps:No,textEvents:Ii,textProps:Lo,timeDisplayComponentProps:qo,timeDisplayEvents:Ni,timeDisplayProps:Po,treeSelectComponentProps:ia,treeSelectEvents:al,treeSelectProps:ra},Symbol.toStringTag,{value:"Module"})),Du={install:e=>{Object.keys(Wl).forEach(o=>{const n=Wl[o];n.install&&e.use(n)})}};W.EcanBar=yl,W.EcanBorder=kl,W.EcanButton=Xi,W.EcanCheckbox=tl,W.EcanCirculate=Il,W.EcanComboGraph=Sl,W.EcanCustomGraph=bl,W.EcanDataSelect=jl,W.EcanDatePicker=Gi,W.EcanIframe=Nl,W.EcanImage=Ll,W.EcanInput=Hi,W.EcanLine=gl,W.EcanList=Mi,W.EcanMap=Vl,W.EcanModal=kt,W.EcanPageConfig=Ei,W.EcanPie=ul,W.EcanProportion=qi,W.EcanProviderConfig=Di,W.EcanRadar=wl,W.EcanRadio=ll,W.EcanRangePicker=Qi,W.EcanScatter=pl,W.EcanScrollText=Li,W.EcanSelect=ol,W.EcanTable=Pl,W.EcanTabs=Bl,W.EcanText=_i,W.EcanTimeDisplay=Fi,W.EcanTreeSelect=rl,W.barComponentProps=xa,W.barEvents=ml,W.barProps=ya,W.borderComponentProps=Ba,W.borderEvents=Al,W.borderProps=Ta,W.buttonComponentProps=ea,W.buttonEvents=Ji,W.buttonProps=Xo,W.checkboxComponentProps=na,W.checkboxEvents=el,W.checkboxProps=ta,W.circulateComponentProps=Ra,W.circulateEvents=El,W.circulateProps=Ia,W.comboGraphComponentProps=wa,W.comboGraphEvents=vl,W.comboGraphProps=Ca,W.compatibleMobileList=fl,W.customGraphComponentProps=Sa,W.customGraphProps=va,W.dataSelectComponentProps=ja,W.dataSelectEvents=Hl,W.dataSelectProps=Ha,W.datePickerComponentProps=Ko,W.datePickerEvents=ji,W.datePickerProps=$o,W.default=Du,W.handleScrollCombinations=dl,W.iframeComponentProps=Fa,W.iframeProps=Na,W.imageComponentProps=_a,W.imageEvents=Rl,W.imageProps=Oa,W.inputComponentProps=Go,W.inputEvents=Vi,W.inputProps=Uo,W.lineComponentProps=ma,W.lineEvents=hl,W.lineProps=ga,W.listComponentProps=Ho,W.listEvents=zi,W.listProps=Vo,W.mapComponentProps=Va,W.mapEvents=ql,W.mapProps=qa,W.modalComponentProps=ua,W.modalEvents=cl,W.modalProps=fa,W.moveToComponentList=ha,W.pageConfig=Pn,W.pageConfigComponentProps=qn,W.pieComponentProps=da,W.pieEvents=sl,W.pieProps=ca,W.proportionComponentProps=Wo,W.proportionEvents=Pi,W.proportionProps=jo,W.providerConfig=Oo,W.providerConfigComponentProps=_o,W.radarComponentProps=ka,W.radarEvents=Cl,W.radarProps=Aa,W.radioComponentProps=sa,W.radioEvents=il,W.radioProps=la,W.rangePickerComponentProps=Qo,W.rangePickerEvents=$i,W.rangePickerProps=Yo,W.scatterComponentProps=ba,W.scatterEvents=xl,W.scatterProps=pa,W.selectComponentProps=aa,W.selectEvents=nl,W.selectProps=oa,W.tableComponentProps=Ma,W.tableEvents=Fl,W.tableProps=za,W.tabsComponentProps=Da,W.tabsEvents=Tl,W.tabsProps=Ea,W.textComponentProps=No,W.textEvents=Ii,W.textProps=Lo,W.timeDisplayComponentProps=qo,W.timeDisplayEvents=Ni,W.timeDisplayProps=Po,W.treeSelectComponentProps=ia,W.treeSelectEvents=al,W.treeSelectProps=ra,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
118
|
+
<span style="color: ${H||e.color};${t.unref(f)}">${e.minusSignShow?"-":""}${Math.abs(+j).toFixed(2)}%</span>
|
|
119
|
+
</span>`)}else e.format==="percent"?(j=+j,isNaN(j)||(j=(j*100).toFixed(2),I=I.replace(M,`<span style="color:${h(j)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${j}%</span>`))):e.format==="money"?(j=+j,isNaN(j)||(j=Io(j),I=I.replace(M,`<span style="color:${h(j)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${j}</span>`))):X==="thousands"?(j=+j,isNaN(j)||(j=qc(j),I=I.replace(M,`<span style="color:${h(j)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${j}</span>`))):I=I.replace(M,`<span style="color:${h(j)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${j}</span>`)}}if(q||(q=`<span style="color: ${h(I)};${t.unref(f)}">${I}</span>`),e.unitShow&&e.unitText){const{unitTop:F,unitLeft:M}=e;let z="position:relative;";F&&(z+=`top:${F};`),M&&(z+=`margin-left:${M};`),q+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${z};${t.unref(f)}'>${e.unitText}</span>`}return q});function h(O){let x="",k=!1;const{targetValue:I,targetShow:P,notExpectColor:q}=e;if(P){switch(e.targetRule){case"equal":O!==I&&(k=!0);break;case"greater":O<=I&&(k=!0);break;case"greater_equal":O<I&&(k=!0);break;case"less":O>=I&&(k=!0);break;case"less_equal":O>I&&(k=!0);break}k&&(x=q)}return x}const{pageMode:S}=t.inject(Pe,{pageMode:"normal"}),D=qe(e),b=t.ref(!1),v=async()=>{var O;try{b.value=!0;const x=await D();r.value=((O=x==null?void 0:x.data)==null?void 0:O.data)||{}}catch(x){console.error(x)}finally{b.value=!1}},p=(O={})=>{r.value=O},w=O=>{const x=e.id,k=l(x);d(x,{...k,value:O||"",RECORD:O||""})},T=()=>{w("")},E=Ze(e),_=async()=>{var O,x;try{b.value=!0;const k=await E(),{data:I}=(k==null?void 0:k.data)||{};if(I){n.value=!1;const{columns:P=[],rows:q=[]}=((O=k==null?void 0:k.data)==null?void 0:O.data)??{},{graphicConfig:U}=e;let F={};if(P.length>0)if((x=U==null?void 0:U.dimensionList)!=null&&x.length){const M=P[0];M&&(q!=null&&q.length)&&(F={value:q[0][M]})}else{const M=P.find(z=>!!z);M&&(F={value:isNaN(q[M])?0:q[M]||0})}w(F==null?void 0:F.value),p(F)}else n.value=!0,w("NaN"),p({value:"NaN"})}catch(k){console.error(k)}finally{b.value=!1,y(e.id,!0)}},N=()=>{switch(e.dataType){case"indicator":_();break;case"request":{const{openCustomRequestData:O,customRequestName:x,customRequestField:k}=e;if(O||O===void 0)v();else{const I=u(x);I&&(r.value={[k]:I[k]})}break}}},{setRequest:B}=t.inject(Me,{setRequest:({id:O,sortNum:x,requestFn:k})=>{}});typeof B=="function"&&B({id:e.id,requestFn:N,sortNum:e.requestSort}),Le(e,{refreshData:N,resetRecord:T}),o({refreshData:N});const A=De(e),R=A("click",()=>{const O=document.getElementsByClassName(`ecan-text_${e.id}`);if(O!=null&&O.length&&w(O[0].innerText),setTimeout(()=>{w("")},0),!e.linkPage&&!e.href)return;const x=e.linkPage||"",k=Bi(t.unref(S),x),I=e.href;let P=I||k;P=Re(P);const q=e.target;q&&(q!=="event"?window.open(P,"_"+q):window.parent.postMessage({type:"openPage",url:I},"*"))}),C=A("valueChange",()=>{});return t.watch(()=>m.value,(O,x)=>{O!==x&&C()}),{style:a,myText:m,loading:b,click:R,textIndent:s,vFontSize:i,gradientStyle:g}}}),Ii=()=>{t.useCssVars(e=>({"3158f1cb":e.vFontSize,bc355ad8:e.textIndent,"702547ec":e.percentageSide}))},Oi=Mo.setup;Mo.setup=Oi?(e,o)=>(Ii(),Oi(e,o)):Ii;const Ju="",Kc=["innerHTML"];function Zc(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,Kc))}const _i=pe(me(Mo,[["render",Zc],["__scopeId","data-v-37b93a95"]])),Yc=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),eh="",Qc={class:"red"};function Jc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",Qc,t.toDisplayString(e.text),1)}const Li=pe(me(Yc,[["render",Jc],["__scopeId","data-v-4dd9c03e"]])),Po={...Te,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=ve(Po),Ni=["timeChange"],Xc=t.defineComponent({name:"EcanTimeDisplay",props:{...qo},setup(e){const o=ke(e),n=()=>{const{format:c,operate:u}=e;let y=we();if(u){const{type:f,value:g,mode:m}=u;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=De(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:u,mode:y}=e.updateInterval||{};u&&(c=c*u);const f={second:1,minute:60,hour:60*60,day:24*60*60};y&&(c=c*f[y]),r=setInterval(()=>{a.value=n(),l()},c)};return Le(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{i()}),{style:o,time:a}}}),nh="";function ed(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 Fi=pe(me(Xc,[["render",ed],["__scopeId","data-v-b628fca2"]])),Vo={...Te,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=ve(Vo),zi=["refreshData","click","resetRecord"],td="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",nd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",od="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",ad="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",rd=t.defineComponent({name:"EcanList",components:{Skeleton:en,ATooltip:ce.Tooltip,MarqueeScroll:Mn},props:{...Ho},setup(e,{expose:o}){const n=t.ref(),a=ke(e,["backgroundColor"]),r=(x,k)=>{const{format:I,customFormatter:P}=k;if(I==null||I==="")return x;const q={money:Io,percentage:Sn,contrast:Sn,custom:Ti};return q[I]?I==="custom"?q[I](x,P)||"":q[I](x)||"":""},i=(x,k)=>{const I=parseFloat(x+"");if(k!=="contrast")return"";switch(!0){case I>=0:return"goUp";case I<0:return"goDown"}},s=qe(e),l=t.ref(!1),d=async()=>{var x;if(e.dataType==="request")try{l.value=!0;const k=await s();n.value=((x=k==null?void 0:k.data)==null?void 0:x.data.rows)||[]}catch(k){console.error(k)}finally{l.value=!1}};t.watch(()=>e.data,()=>{(e.dataType==="static"||!t.unref(n))&&(n.value=e.data)},{immediate:!0,deep:!0});const c=t.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),u=t.computed(()=>{const{columns:x,isUseSeq:k}=e;return k?[t.unref(c),...x]:x}),y=Ze(e),f=async()=>{var x;try{l.value=!0;const k=await y(),{columns:I=[],rows:P=[]}=((x=k==null?void 0:k.data)==null?void 0:x.data)??{};e.isUseSeq&&I.unshift(e.seqName),u.value.forEach((q,U)=>{(!e.isUseSeq||U!==0)&&(q.title=I[U],q.key=I[U])}),n.value=P}catch(k){console.error(k)}finally{l.value=!1}},g=()=>{switch(e.dataType){case"indicator":f();break;case"request":d();break}},m=De(e),{getGlobalModel:h,setGlobalModel:S}=t.inject(Ee,{getGlobalModel:x=>{},setGlobalModel:(x,k)=>{}}),D=x=>{m("click",()=>{const k=h(e.id);S(e.id,{...k,type:e.type,RECORD:x})})()};Le(e,{refreshData:g,resetRecord:()=>{const x=e.id,k=h(x);S(x,{...k,type:e.type,RECORD:""})}});const{setRequest:v}=t.inject(Me,{setRequest:({id:x,sortNum:k,requestFn:I})=>{}});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}),w=(x,k)=>{let I=0;const P=t.unref(n).map(U=>U[k]),q=Math.max(...P);return q&&(I=x[k]/q*100),I},T=x=>{const{progressColor:k="#1890ff",progressGradientColor:I=""}=x;return I?{background:`linear-gradient(to right, ${k} 0%, ${I} 100%)`}:{backgroundColor:k||"#1890ff"}},E=t.computed(()=>{const x=parseFloat(e.seqFontSize)+5;return{width:x+10,height:x}}),{pageMode:_}=t.inject(Pe,{pageMode:"normal"}),N=t.computed(()=>t.unref(_)!=="design"&&e.isAutoScroll),B=x=>{const{seqIconConfig:k}=e;let I=k.find(P=>P.key===x+1);return I||(I=k.find(P=>P.key==="other")),!!(I!=null&&I.icon)},A=(x,k)=>{const{seqIconConfig:I}=e;let P=I.find(q=>q.key===x+1);return P||(P=I.find(q=>q.key==="other")),k===1?P!=null&&P.icon?yt(P.icon):"":k===2?(P==null?void 0:P.color)||"#fff":""},R=x=>{const{seqIndexFormatter:k}=e,I=x+1;return k?Re(k,{textData:{index:I}},{useNewline:!1,useSpace:!0}):I},C=t.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),O=t.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:a,formatFn:r,contrastClass:i,dataSource:n,loading:l,myColumns:u,click:D,getColumnStyle:p,getPercentage:w,getBackgroundColor:T,isShowSeqIcon:B,getSeqIconData:A,seqIcon4:td,seqIcon5:nd,seqIcon6:od,seqIcon7:ad,iconSize:E,isScroll:N,formatSeq:R,wrapStyle:C,colSpan:O}}}),ah="",rh="",id=e=>(t.pushScopeId("data-v-1383b82b"),e=e(),t.popScopeId(),e),ld={key:0,class:"title"},sd={key:0,class:"ranking"},cd={key:1,class:"ecan-list-content"},dd=["onClick"],fd={key:0,class:"ranking"},ud=id(()=>t.createElementVNode("div",{class:"icon"},null,-1)),hd={class:"sort"},gd=["src"],md={key:1},yd=["src","width","height"],xd=["src","width","height"],pd=["src","width","height"],bd=["src","width","height"],vd={key:1},Sd={key:2,class:"empty"};function Cd(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",ld,[(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",sd)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(u,y)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:u.key||y,style:t.normalizeStyle({color:u.titleColor,...e.getColumnStyle(u)})},t.toDisplayString(u.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",cd,[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,u)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(${e.itemWidth} - ${e.colSpan})`,marginRight:e.colSpan,marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||u,onClick:y=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",fd,[ud,t.createElementVNode("div",hd," Top "+t.toDisplayString(u+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,y=>{var f;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(c[y.key],y.format),y.key==="SEQ"?"seq-column":""]),key:y.key,style:t.normalizeStyle({fontSize:y.fontSize,color:e.contrastClass(c[y.key],y.format)===""?y.color:"",fontWeight:y.fontWeight,...e.getColumnStyle(y)})},[y.key==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(f=e.seqIconConfig)!=null&&f.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"icon-box",style:t.normalizeStyle({width:e.seqIconWidth||"",height:e.seqIconHeight||""})},[e.seqIconWidth&&e.seqIconHeight&&e.isShowSeqIcon(u)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(u,1),style:t.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,gd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"custom-seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(u,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(e.formatSeq(u)),5)],4)):(t.openBlock(),t.createElementBlock("div",md,[u===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,yd)):u===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,xd)):u===2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,pd)):u>=3?(t.openBlock(),t.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,bd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize})},t.toDisplayString(e.formatSeq(u)),5)]))],64)):(t.openBlock(),t.createElementBlock("span",vd,t.toDisplayString(e.formatSeq(u)),1))],64)):y.format==="progress"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"progress-cell",style:t.normalizeStyle({height:e.itemHeight})},[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({height:y.progressWidth||"14px",backgroundColor:y.progressBaseColor})},[t.createVNode(s,{title:c[y.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({borderRadius:"10px",height:y.progressWidth||"14px",width:`${e.getPercentage(c,y.key)}%`,...e.getBackgroundColor(y)})},null,4)]),_:2},1032,["title"])],4)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(t.toDisplayString((y.format!=null||y.format!=="")&&e.formatFn(c[y.key],y)),1)],64))],6)}),128))],12,dd))),128))]),_:1},8,["visible","step","wrapStyle"])])):(t.openBlock(),t.createElementBlock("div",Sd," 暂无数据 "))]),_:1},8,["loading"])],4)}const Mi=pe(me(rd,[["render",Cd],["__scopeId","data-v-1383b82b"]])),jo={...Te,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:{}},Wo=ve(jo),Pi=["refreshData","click"],wd=t.defineComponent({name:"EcanProportion",components:{AProgress:ce.Progress,Skeleton:en},props:{...Wo},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(Pe,{pageMode:"normal"}),r=ke(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),w=+e.variableDefaultValue;if(p==null)return isNaN(w)?0:w;const T=e.text.match(/\{.+\}/g)||[];let E;const _=new Set(Object.keys(p));for(let N=0;N<T.length;N++){const B=T[N],A=B.slice(1,B.length-1);if(_.has(A)){E=p[A];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 _;let p=e.text;if(p==="")return t.unref(l);const w=e.variableDefaultValue,T=t.unref(s),E=p.match(/\{.+\}/g)||[];for(let N=0;N<E.length;N++){const B=E[N];let A=B.slice(1,B.length-1);const R=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,C=B.match(R);for(let x=0;x<(C==null?void 0:C.length);x++){const k=(_=C[x])==null?void 0:_.trim();T[k]!=null&&(A=A.replace(k,T[k]))}let O=A;try{/\(.*\)/g.test(A)&&(O=Cn(A))}catch(x){console.error(x)}typeof+O=="number"&&!isNaN(+O)?(O=+O*100,e.decimalFormat&&(O=O.toFixed(2))):O=w,p=p.replace(B,O+"")}return t.unref(n)?"NaN":p}),c=qe(e),u=t.ref(!1),y=async()=>{var p;if(e.dataType==="request")try{u.value=!0;const w=await c();s.value=((p=w==null?void 0:w.data)==null?void 0:p.data)||{}}catch(w){console.error(w)}finally{u.value=!1}},f=(p={})=>{s.value=p},g=Ze(e),m=async()=>{var p;try{u.value=!0;const w=await g(),{data:T}=(w==null?void 0:w.data)||{};if(T){n.value=!1;const{columns:E=[],rows:_=[]}=((p=w==null?void 0:w.data)==null?void 0:p.data)??{};let N={};if(E.length>0){const B=E.find(A=>!!A);B&&(N={percent:_[B]})}f(N)}else n.value=!0,f({percent:"NaN"})}catch(w){console.error(w)}finally{u.value=!1}},h=()=>{switch(e.dataType){case"indicator":m();break;case"request":y();break}};Le(e,{refreshData:h}),o({refreshData:h});const D=De(e)("click",()=>{}),{setRequest:b}=t.inject(Me,{setRequest:({id:p,sortNum:w,requestFn:T})=>{}});typeof b=="function"&&b({id:e.id,requestFn:h,sortNum:e.requestSort});const v=t.computed(()=>{const{gradientShow:p,gradientColor:w,gradientOffset:T,strokeColor:E}=e;let _=E;return p&&w&&(_={"0%":E,[`${T*100}%`]:w}),_});return{style:r,myWidth:i,text:d,myValue:l,loading:u,click:D,customStrokeColor:v}}}),lh="";function Ad(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 qi=pe(me(wd,[["render",Ad],["__scopeId","data-v-cf942b5f"]])),Go={...Te,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Uo=ve(Go),Vi=["inputChange","inputBlur"],kd=t.defineComponent({name:"EcanInput",components:{AInput:ce.Input},props:{...Uo},setup(e){const o=ke(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=t.inject(Ee,{getGlobalModel:u=>{},setGlobalModel:(u,y)=>{},getRecordValueByKeyName:u=>{}});t.watch(()=>e.value,u=>{n.value=i(u)},{immediate:!0}),r(e.id,{type:e.type,value:n});const s=()=>{const u=a(e.id);r(e.id,{...u,RECORD:n})},l=De(e),d=_e.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),ch="";function Td(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 Hi=pe(me(kd,[["render",Td]])),$o={...Te,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"},Ko=ve($o),ji=["dateChange"],Zo=t.defineComponent({name:"EcanDatePicker",props:{...Ko},components:{ADatePicker:ce.DatePicker},setup(e){const o=t.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=ke(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([f,g,m])=>{let h=null;if(f?h=we(Re(f)):g&&(h=we()),m&&h){const{type:S,value:D,mode:b}=m;switch(S){case"add":h=h.add(D,b);break;case"minus":h=h.subtract(D,b)}}r.value=h},{deep:!0,immediate:!0});const{setGlobalModel:i}=t.inject(Ee,{setGlobalModel:(f,g)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=De(e)("dateChange",()=>{}),d=()=>{t.unref(r)&&l()};Le(e,{dateChange:l});const c=t.ref({}),u=t.ref({}),y=f=>{f?setTimeout(()=>{u.value=t.unref(c)},300):u.value={}};return t.onMounted(()=>{setTimeout(()=>{const f=document.querySelector(`#ecan-date-picker-${e.id}`);if(f){const 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:u,openChange:y}}}),Wi=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Gi=Zo.setup;Zo.setup=Gi?(e,o)=>(Wi(),Gi(e,o)):Wi;const fh="",uh="",Bd=["id"];function Ed(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,Bd)}const Ui=pe(me(Zo,[["render",Ed],["__scopeId","data-v-d4ec0d66"]])),Yo={...Te,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=ve(Yo),$i=["dateChange"];var Ki={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(fe,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,u){return c=Number(c),this.$utils().p(u)===a?this.add(3*c,n):l.bind(this)(c,u)};var d=s.startOf;s.startOf=function(c,u){var y=this.$utils(),f=!!y.u(u)||u;if(y.p(c)===a){var 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,u)}}})})(Ki);var Dd=Ki.exports;const Rd=wr(Dd);we.extend(Rd);const Jo=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ce.RangePicker},props:{...Qo},setup(e){const o=ke(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,w,T,E,_])=>{let N=null,B=null;if(w&&(N=we().subtract(T,E),B=we()),v&&(N=we(Re(v))),p&&(B=we(Re(p))),_){const{type:A,value:R,mode:C}=_;switch(A){case"add":N=N&&N.add(R,C),B=B&&B.add(R,C);break;case"minus":N=N&&N.subtract(R,C),B=B&&B.subtract(R,C)}}a.value=[N,B]},{immediate:!0});let r=t.unref(a)[0],i=t.unref(a)[1],s="";const l=(v,p,w)=>{Array.isArray(v)?(r=v[0],i=v[1],s=w.range):(r=null,i=null)};window.dayjs=we;const d=v=>{let p=!1,{limitStartTime:w,limitEndTime:T}=e;const E={startTime:`${r||""}`,endTime:`${i||""}`};if(w=Re(w,{codeData:E}),T=Re(T,{codeData:E}),w&&T?p=!(we(w)<v&&v<we(T)):w?p=we(w)>v:T&&(p=we(T)<v),!e.isAllowSpanYear&&s){let _=null;if(s==="start"?_=r:s==="end"&&(_=i),_){const N=_.startOf("year"),B=_.endOf("year");p=!(N<=v&&v<B)}}if(!p){const{value:_=0,mode:N="year"}=e.limitInterval||{};_&&(s==="start"?p=r.add(_,N)<v:s==="end"&&(p=i.subtract(_,N)>v))}return p},{getGlobalModel:c,setGlobalModel:u}=t.inject(Ee,{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);u(e.id,{type:e.type,format:e.format,startTime:y,endTime:f,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const g=De(e);let m=!1;const h=g("dateChange",()=>{}),S=v=>{const p=t.unref(a),w=p&&p[0]&&p[1];v===!1&&m===!0&&w&&(h(),m=!1),v||(s="")},D=()=>{m=!0};return Le(e,{dateChange:()=>{const{associated:v}=e;if(v){const p=c(v)||{};if(p){const{value:w}=p;if(w)switch(t.unref(w)){case"month":a.value=[we().startOf("month"),we().endOf("month")];break;case"quarter":a.value=[we().startOf("quarter"),we().endOf("quarter")];break;case"year":a.value=[we().startOf("year"),we().endOf("year")];break}}}h()}}),{style:o,getPopupContainer:n,locale:Ga,dateChange:h,myValue:a,disabledDate:d,calendarChange:l,openChange:S,change:D}}}),Zi=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},Yi=Jo.setup;Jo.setup=Yi?(e,o)=>(Zi(),Yi(e,o)):Zi;const gh="",mh="";function Id(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 Qi=pe(me(Jo,[["render",Id],["__scopeId","data-v-c9c68612"]])),Xo={...Te,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=ve(Xo),Ji=["click"],Od=t.defineComponent({name:"EcanButton",components:{AButton:ce.Button},props:{...ea},setup(e){const o=ke(e),a=De(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(()=>Re(e.text)),s=t.computed(()=>Re(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}}}),xh="";function _d(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 Xi=pe(me(Od,[["render",_d]])),ta={...Te,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=ve(ta),el=["checkboxChange"],Ld=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ce.CheckboxGroup},props:{...na},setup(e,{expose:o}){const n=ke(e),a=t.ref([]),r=t.ref([]),i=S=>{const D=e.value;let b=[];S.forEach(v=>{v.checked&&b.push(v.value)}),typeof D=="string"&&D!==""?b=b.concat(D.split(",")):Array.isArray(D)&&(b=b.concat(D)),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(),D=((v=(b=S==null?void 0:S.data)==null?void 0:b.data)==null?void 0:v.rows)||[];i(D)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Ee,{getGlobalModel:S=>{},setGlobalModel:(S,D)=>{}});c(e.id,{type:e.type,value:r});const y=De(e)("checkboxChange",()=>{const S=d(e.id);c(e.id,{...S,RECORD:r})}),f=Ze(e),g=async()=>{var S;try{const D=await f(),{data:b}=(D==null?void 0:D.data)||{};if(b){const p=(((S=D==null?void 0:D.data)==null?void 0:S.data)??[]).map(w=>({label:w.label,value:w.value}));i(p)}else i([])}catch(D){console.error(D)}},m=()=>{switch(e.dataType){case"indicator":g();break;case"request":l();break}},{setRequest:h}=t.inject(Me,{setRequest:({id:S,sortNum:D,requestFn:b})=>{}});return typeof h=="function"&&h({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:n,myValue:r,checkboxChange:y}}}),bh="";function Nd(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 tl=pe(me(Ld,[["render",Nd]])),oa={...Te,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=ve(oa),nl=["selectChange","refreshData"],Fd=t.defineComponent({name:"EcanSelect",components:{ASelect:ce.Select,ASelectOption:ce.SelectOption},props:{...aa},setup(e,{expose:o}){const n=ke(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=qe(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var k;const{mode:x}=e;return(k=t.unref(i))!=null&&k.length?s.value:x==="multiple"||x==="tags"||x==="combobox"?[]:""},set:x=>{s.value=x}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:u}=t.inject(Ee,{getGlobalModel:x=>{},setGlobalModel:(x,k)=>{},getRecordValueByKeyName:x=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:x,selectFirstOption:k,value:I}=e,P=u(I),q=y.value;if(x==="multiple"||x==="tags"||x==="combobox"){if(P)s.value=P.split(",");else if(k){const U=t.unref(i)[0];s.value=U?[U[q]]:[]}}else if(P)s.value=P;else if(k){const U=t.unref(i)[0];s.value=U?U[q]:""}},{immediate:!0});const f=(x,k)=>{const I=y.label,P=y.value;let q;const U=k[I],F=k[P];return U!=null?q=U:F!=null&&(q=F),(q==null?void 0:q.toLowerCase().indexOf(x==null?void 0:x.toLowerCase()))>=0},g=x=>{const{label:k,value:I,options:P}=e.dataFieldNames;if(P&&Array.isArray(x))if(x.some(q=>P in q)){const q={},U=[];x.forEach(F=>{q[F[P]]||(q[F[P]]=[]),q[F[P]].push({[k]:F[k],[I]:F[I]})});for(const F in q)U.push({[k]:F,[P]:q[F]});return U}else return x;else if(!P)return x},m=t.ref(!1),h=async()=>{var x,k;if(e.dataType==="request"){m.value=!0;try{const I=await r();if(i.value=g(((k=(x=I==null?void 0:I.data)==null?void 0:x.data)==null?void 0:k.rows)||[]),e.selectFirstOption){let P=t.unref(i)[0];if(y.options){const q=P[y.options];q&&q.length&&(P=q[0])}s.value=P[y.value]}}catch(I){console.error(I)}finally{m.value=!1}}},{setLoadedData:S,loadedData:D}=t.inject(vt,{setLoadedData:(x,k)=>{},loadedData:{}}),b=t.computed(()=>{let x=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const k=y.label,I=y.value;if(e.mode==="multiple")x=t.unref(i).filter(P=>t.unref(s).includes(P[I])).map(P=>P[k]);else{const P=t.unref(i).find(q=>t.unref(s)===q[I]);P&&(x=P[k])}}return x}),v=t.ref([]),p=t.computed(()=>{const x={};if(e.mode!=="multiple"){const k=t.unref(v).find(I=>I.value===t.unref(s));k&&(x.itemCodes=k.item_codes)}return x}),w=t.computed(()=>{const{value:x,label:k}=y,I=t.unref(i).find(P=>P[x]===t.unref(l));return I?{label:I[k],value:I[x]}:{}});c(e.id,{type:e.type,value:b,...t.unref(p),recordData:t.unref(w)});const E=De(e)("selectChange",()=>{const x=e.id,k=d(x);c(x,{...k,...t.unref(p),RECORD:b,recordData:t.unref(w)})}),_=(x=[])=>{if(i.value=g(x),e.selectFirstOption){let k=t.unref(i)[0];if(y.options){const I=k[y.options];I&&I.length&&(k=I[0])}s.value=k[y.value]}c(e.id,{type:e.type,value:b,...t.unref(p),recordData:t.unref(w)})},N=Ze(e),B=async()=>{var x;try{m.value=!0;const k=await N(),{data:I}=(k==null?void 0:k.data)||{},P=y.label,q=y.value;if(I){const U=((x=k==null?void 0:k.data)==null?void 0:x.data)??[];v.value=U;const F=U.map(L=>({[P]:L.label,[q]:L.value})),{id:M}=e,z=d(M);c(M,{...z,...t.unref(p)}),S(M,!0),_(F)}else _([])}catch(k){console.error(k)}finally{m.value=!1}},A=t.computed(()=>{var x,k;return(k=(x=e==null?void 0:e.graphicConfig)==null?void 0:x.controlList)==null?void 0:k.find(I=>I.conditionKey==="parentCode")}),R=t.ref(!1);t.watch(D,x=>{!t.unref(R)&&t.unref(A)&&x[t.unref(A).id]&&(R.value=!0,C())},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":{if(t.unref(A)){if(t.unref(D)[t.unref(A).id]){const{mode:x}=e;x==="multiple"||x==="tags"||x==="combobox"?l.value=[]:l.value="",B()}}else B();break}case"request":h();break}};Le(e,{selectChange:E,refreshData:C});const{setRequest:O}=t.inject(Me,{setRequest:({id:x,sortNum:k,requestFn:I})=>{}});return typeof O=="function"&&O({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}}}),Sh="",Ch="";function zd(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 ol=pe(me(Fd,[["render",zd],["__scopeId","data-v-8da65528"]])),ra={...Te,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=ve(ra),al=["selectChange","refreshData"],Md={name:"EcanTreeSelect",components:{ATreeSelect:ce.TreeSelect},props:{...ia},setup(e){const o=ke(e),n=t.ref(e.data),a=(g,m)=>{const h=e.dataFieldNames,S=h.label,D=h.value;let b;const v=m[S],p=m[D];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:h}=e;g?m?r.value=m.split(","):h&&(r.value=[t.unref(n)[0]]):m?r.value=m:h&&(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 h=await s();n.value=((m=(g=h==null?void 0:h.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(h){console.error(h)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=t.inject(Ee,{getGlobalModel:g=>{},setGlobalModel:(g,m)=>{}});c(e.id,{type:e.type,value:r});const y=De(e)("selectChange",()=>{const g=e.id,m=d(g);c(g,{...m,RECORD:r})});Le(e,{selectChange:y,refreshData:l});const{setRequest:f}=t.inject(Me,{setRequest:({id:g,sortNum:m,requestFn:h})=>{}});return f({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:n,filterTreeNode:a,myValue:r,loading:i,selectChange:y}}},Ah="",kh="";function Pd(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 rl=pe(me(Md,[["render",Pd],["__scopeId","data-v-37236421"]])),la={...Te,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=ve(la),il=["checkboxChange","click"],qd=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:ce.RadioGroup,ARadioButton:ce.RadioButton,ARadio:ce.Radio},props:{...sa},setup(e,{expose:o}){const n=ke(e),a=t.ref([]),r=t.ref(""),i=v=>{const p=e.value;let w=[];typeof p=="string"&&p!==""?w=w.concat(p.split(",")):Array.isArray(p)&&(w=w.concat(p)),a.value=v,r.value=w[0]||""};t.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=qe(e),l=async()=>{var w,T;if(e.dataType!=="request")return;const v=await s(),p=((T=(w=v==null?void 0:v.data)==null?void 0:w.data)==null?void 0:T.rows)||[];i(p)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Ee,{getGlobalModel:v=>{},setGlobalModel:(v,p)=>{}});c(e.id,{type:e.type,value:r});const u=De(e),y=u("checkboxChange",()=>{const v=d(e.id);c(e.id,{...v,RECORD:r})}),f=v=>{r.value=v,u("click",()=>{const p=d(e.id);c(e.id,{...p,RECORD:r})})()};t.watch(r,()=>{y()});const g=Ze(e),m=async()=>{var v;try{const p=await g(),{data:w}=(p==null?void 0:p.data)||{};if(w){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)}},h=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:S}=t.inject(Me,{setRequest:({id:v,sortNum:p,requestFn:w})=>{}});typeof S=="function"&&S({id:e.id,requestFn:h,sortNum:e.requestSort});const D=v=>{r.value=v.value},b=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:h}),{myOption:a,style:n,myValue:r,radioStyle:b,onClickButton:f,useImagePath:yt,tabChange:D}}}),Bh="",Eh="",Vd=["onClick"];function Hd(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,u)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:u,onClick:t.withModifiers(y=>e.tabChange(c),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.label),5)],12,Vd))),128))],4)):(t.openBlock(),t.createBlock(d,{key:1,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,c=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.value},[e.optionType==="default"?(t.openBlock(),t.createBlock(s,{key:0,value:c.value,style:t.normalizeStyle(e.radioStyle)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(t.openBlock(),t.createBlock(l,{key:1,value:c.value,onClick:u=>e.onClickButton(c.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):t.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const ll=pe(me(qd,[["render",Hd],["__scopeId","data-v-baa84768"]])),ca={...Te,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=ve(ca),sl=["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)},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=ve(fa),cl=["showModal","hideModal"],It=["ecanBorder","ecanTabs","ecanCirculate"];function dl(e){const{containerMap:o={},sourceList:n=[]}=e,a=_e.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 u=s[c],y=[];if(u!=null&&u.length)for(const f of u){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=Kd(y)}}for(const d of l){const c=a.findIndex(u=>u.id===d);c!==-1&&a.splice(c,1)}}return a}function fl(e){var i,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,r=_e.cloneDeep([...e.componentList,...Wd(a,n)]);if(jd(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 h of a[f][m]){const S=r.find(D=>D.id===h);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=Gd(l,{...e,componentList:r});d!=null&&d.length&&r.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],u=r.filter(f=>c.includes(f.type)&&!$t(f,"parentId")),y=[];for(const f of u)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(h=>h.id===f.parentId);if((m==null?void 0:m.parentId)===""){const h=m.sourceWidth||parseFloat(m.width),S=g/h;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 Ud(r)}return r}function jd(e,o){const n=_e.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 u of c)e[r.id][s].push(u.id),It.includes(u.type)&&delete e[u.id];delete e[d.id]}}}}function Wd(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 Gd(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=$d(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 u of d)u&&(u.parentId=s,u.sourceLeft=u.left,u.sourceTop=u.top,u.left=parseFloat(u.left)-parseFloat(c.left)+"px",u.top=parseFloat(u.top)-parseFloat(c.top)+"px")}}}}return i}function Ud(e){const n=e.filter(a=>a.parentId==="");if(n!=null&&n.length){const a=_e.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 $d(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 Kd(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 Zd=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function Yd(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 Qd=pe(me(Zd,[["render",Yd]])),Jd=t.defineComponent({name:"EcanModal",components:{AModal:ce.Modal,CloseOutlined:ds,Render:Qd},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(Ee,{setRequestData:(K,J)=>{},clearInteractiveData:()=>{},interactiveData:null}),c=()=>document.getElementById("ProviderConfig")||document.body,u=t.computed(()=>{const K=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[K]}}),y=e.fullModal?"1920px":e.width,f=e.fullModal?"1080px":e.height,g=e.originalWidth,m=e.originalHeight,h=t.ref("80%"),S=t.ref(0),D=t.ref(),b=t.ref(0),v=t.ref({}),p=ke(e),w=t.ref({}),T=t.ref(!1),E=t.ref();let _;const N=()=>{D.value=parseFloat(y)/parseFloat(g);const K=parseFloat(f)/parseFloat(m),J=document.body.offsetWidth,le=document.body.offsetHeight;S.value=J*t.unref(D),b.value=le*K,h.value=`${t.unref(D)*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(p),backgroundImage:yt(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}},B=_e.debounce(()=>{N()},100),A=()=>{const K=window.MutationObserver;_=new K(B),_.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},R=()=>{_&&(_.disconnect(),_.takeRecords(),_=null)},C=t.ref(!1),{touchRequest:O}=t.inject(Me,{touchRequest:()=>{}}),x=t.ref(""),k=()=>{var le;const{title:K}=e,J=(le=t.unref(l))==null?void 0:le.RECORD;return J?Re(K,{textData:J},{useNewline:!1,useSpace:!1}):K},I=De(e),P=()=>{a&&(document.documentElement.style.overflow="hidden"),x.value=k(),C.value=!0},q=I("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),C.value=!1}),U=()=>{q()},F=()=>{q(),s()},{setModalModel:M,pushUseModalIds:z,popUseModalIds:L}=t.inject(pr,{pushUseModalIds:K=>{},popUseModalIds:()=>{},setModalModel:(K,J)=>{}}),V=t.computed(()=>{let K=e.componentList;const J=_e.cloneDeep(e.componentList),le=r(),be=i(),Se={containerMap:le,combinationMap:be};a&&(K=fl({...Se,componentList:J,sourceList:e.allComponentList})),K=dl({...Se,componentList:K,sourceList:e.allComponentList});const Oe=[];for(const Ie of K)if(Ie.type==="ecanCirculate"){const Be=ha(le,t.unref(J),Ie.id);Ie.componentList=Be,Oe.push(...Be.map(Ce=>Ce.id))}if(Oe!=null&&Oe.length)for(const Ie of Oe){const Be=K.findIndex(Ce=>Ce.id===Ie);Be!==-1&&K.splice(Be,1)}return K}),j=()=>{const K=e.id;let J=[];const le=e.componentList;Array.isArray(le)&&(J=le.map(be=>be.id),M(K,[...new Set(J)]))},X=t.ref(!1),H={};for(const K of e.requestList)H[K.requestName]=qe(K);const ee=async()=>{var K;for(const J in H){const le=await H[J]();d(J,((K=le==null?void 0:le.data)==null?void 0:K.data)||{})}X.value=!0};t.watch(()=>C.value,async K=>{if(K)T.value=!1,await ee(),z(e.id),j(),await t.nextTick(()=>{N(),window.addEventListener("resize",B),A(),T.value=!0}),O();else{for(const J in H)d(J,{});L(),window.removeEventListener("resize",B),R()}});const ne=t.computed(()=>t.unref(D)>=1),ie=t.computed(()=>e.fullModal),oe=t.computed(()=>{let K="ecan-modal";return t.unref(ne)&&(K+=" ecan-full-width-modal"),t.unref(ie)&&(K+=" ecan-full-modal"),K});return Le(e,{showModal:P,hideModal:q}),{modalRef:E,containStyle:v,contentStyle:w,getContainer:c,modalStyle:u,modalWith:h,isFullModal:ie,style:p,visible:C,showModal:P,onOk:U,onCancel:F,isFullWidth:ne,wrapClassName:oe,ready:T,usedComponentList:V,isMobile:a,readyIds:n,hasOwn:$t,onComponentReady:K=>{n.value.push(K)},formatTitle:x,requestLoaded:X}}}),Ih="",Oh="";function Xd(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,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+u},[e.isMobile?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(t.openBlock(),t.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:1},c)),null,16))],64))),128))],2)):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):t.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const kt=pe(me(Jd,[["render",Xd],["__scopeId","data-v-513bc596"]]));Je.use([Et.CanvasRenderer,ht.PieChart,Ae.TitleComponent,Ae.ToolboxComponent,Ae.TooltipComponent,Ae.LegendComponent]);const ef=t.defineComponent({name:"EcanPie",props:{...da},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(!1),a=ke(e),r=t.ref([]),i=t.ref(),s=t.ref({}),l=t.computed(()=>{let{data:A=[]}=t.unref(r)[0]||{};if(Array.isArray(e.colors)){const R=e.isUseLabelColors,C=e.colors;A=A.map((O,x)=>({label:R?{color:C[x]}:{},...O}))}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 R;n.value=!0,(R=i.value)==null||R.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ce.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:R=>{const{marker:C,seriesName:O,name:x,value:k,percent:I,data:P}=R||{};return Re(e.tooltipFormatter,{textData:{marker:C,name:x,value:k,percent:I,a:O,b:x,c:k,d:I,...P}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.unref(s),color:e.colors,series:[{data:A,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:Pc(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 A=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:A+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:A}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:R=>{const{data:C}=r.value[0]||{};let O=0,x,k="0%";if(C)for(const I of C)I.name===R&&(x=+I.value),O+=+I.value;return O&&(k=`${(x/O*100).toFixed(2)}%`),an(e.legendFormatter,{name:R,value:x,percent:k})}}},c=()=>{n.value=!1},{getGlobalModel:u,setGlobalModel:y}=t.inject(Ee,{getGlobalModel:A=>{},setGlobalModel:(A,R)=>{}}),{pageMode:f}=t.inject(Pe,{pageMode:"normal"}),g=(A=[],R)=>{const{dataset:C}=zt(A,R);r.value=C},m=(A=[],R)=>{const C=zt(A,R);r.value=C.dataset};t.watch(()=>e.data,A=>{(e.dataType==="static"||t.unref(f)==="design")&&g(A)},{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 h=t.ref(!1),S=qe(e),D=async()=>{var A,R;if(e.dataType==="request")try{h.value=!0;const C=await S();g((R=(A=C==null?void 0:C.data)==null?void 0:A.data)==null?void 0:R.rows,e.valueTypeDataFieldNames)}catch(C){console.error(C)}finally{h.value=!1}},b=De(e);y(e.id,{type:e.type,RECORD:""});const v=b("click",A=>{const R=u(e.id);y(e.id,{...R,type:e.type,RECORD:A==null?void 0:A.data})}),p=Ze(e),w=async()=>{var A;try{h.value=!0;const R=await p(),{data:C}=(R==null?void 0:R.data)||{};if(C){const{columns:O=[],rows:x=[]}=((A=R==null?void 0:R.data)==null?void 0:A.data)??{};let k=[];if(O.length>0){const I=O[0],P=O[1];k=x.filter(q=>!!q).map(q=>({name:q[I],value:isNaN(q[P])?0:q[P]||0}))}m(k)}}catch(R){console.error(R)}finally{h.value=!1}},{loadedData:T}=t.inject(vt,{loadedData:{}}),E=t.ref(!1);t.watch(T,A=>{if(e.dataType==="indicator"){const R=on(e.graphicConfig);R!=null&&R.length&&(!t.unref(E)&&it(e.graphicConfig,A)?(E.value=!0,_()):it(e.graphicConfig,A)||(E.value=!1))}},{deep:!0});const _=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(T))&&w();break;case"request":D();break}};Le(e,{resetRecord:()=>{const A=e.id,R=u(A);y(A,{...R,RECORD:""})},refreshData:_,click:v}),o({refreshData:_});const{setRequest:B}=t.inject(Me,{setRequest:A=>{}});return typeof B=="function"&&B({id:e.id,requestFn:_,sortNum:e.requestSort}),{option:l,style:a,click:v,onClose:c,loading:h,ecanModal:i}}}),Lh="";function tf(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 ul=pe(me(ef,[["render",tf]])),ga={...Te,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=ve(ga),hl=["click","refreshData","resetRecord"];Je.use([Et.CanvasRenderer,ht.LineChart,Ae.ToolboxComponent,Ae.TitleComponent,Ae.LegendComponent,Ae.MarkLineComponent]);const nf=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=ke(e),i=t.ref([]),s=t.ref([]),l=t.ref(),d=t.computed(()=>a.value?$e:12),c=t.ref({});let u;const y=t.ref([]),f=t.computed(()=>{const x=e.xAxisLabelFormatter,k=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 I;a.value=!0,(I=l.value)==null||I.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(){ce.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:I=>{var F;const P=I.length;let q="",U=e.tooltipFormatter;u=(F=I[0])==null?void 0:F.data,U===""&&(U="{marker} {a} {c}");for(let M=0;M<P;M++){const{marker:z,seriesName:L,name:V,value:j,data:X}=I[M]||{};if(M===0){let H=V;typeof V=="string"&&V[0]==="0"&&!isNaN(+V)&&(H=(+V).toString()),q+=`${lt(x,H)}<br/>`}q+=Re(U,{textData:{marker:z,name:V,value:j,a:L,b:V,c:j||0,...X}},{useNewline:!0,useSpace:!0}),q+="<br/>"}return q},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(s).map(I=>{let P={};return I&&typeof I=="object"?P={...I}:P={value:I},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(I){return typeof I=="string"&&I[0]==="0"&&!isNaN(+I)&&(I=(+I).toString()),lt(x,I)}},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(I){return lt(k,I)}},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(I=>({name:I.name,icon:e.legendType})),formatter:I=>an(e.legendFormatter,{name:I})},series:t.unref(i)}}),g=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:h}=t.inject(Ee,{getGlobalModel:x=>{},setGlobalModel:(x,k)=>{}}),{pageMode:S}=t.inject(Pe,{pageMode:"normal"}),D=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),b=(x=[],k=!1)=>{let I;if(e.dataFieldConfigType==="key"){const F=k?e.keyTypeDataFieldNames:null;I=At(x,F)}else if(e.dataFieldConfigType==="value"){const F=k?e.valueTypeDataFieldNames:null;I=zt(x,F)}s.value=I.dimensions,y.value=I.dataset;const P=I.dataset,q=[],U=P.length;for(let F=0;F<U;F++){const M={};e.shadowColor&&(M.shadowColor=e.shadowColor,M.shadowBlur=e.shadowBlur,M.shadowOffsetY=e.shadowOffsetY,M.shadowOffsetX=e.shadowOffsetX),q.push({type:"line",...P[F],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[F]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[F],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...M},...t.unref(D)})}i.value=q},v=(x=[],k,I=!1)=>{const q=At(x,I?k:null,!0);s.value=q.dimensions,y.value=q.dataset;const U=q.dataset,F=[],M=U.length;for(let z=0;z<M;z++){const L={};e.shadowColor&&(L.shadowColor=e.shadowColor,L.shadowBlur=e.shadowBlur,L.shadowOffsetY=e.shadowOffsetY,L.shadowOffsetX=e.shadowOffsetX),F.push({type:"line",...U[z],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[z]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[z],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...L},...t.unref(D)})}i.value=F};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),w=qe(e),T=async()=>{var x,k;if(e.dataType==="request")try{p.value=!0;const I=await w();b((k=(x=I==null?void 0:I.data)==null?void 0:x.data)==null?void 0:k.rows,!0)}catch(I){console.error(I)}finally{p.value=!1}},E=De(e);h(e.id,{type:e.type,RECORD:""});const _=E("click",x=>{const k=m(e.id);h(e.id,{...k,type:e.type,RECORD:e.tooltipShow?u:x.data})}),N=x=>{n.value.chart.containPixel("grid",[x.offsetX,x.offsetY])&&_()};e.tooltipShow?c.value["zr:click"]=N:c.value.click=_;const B=Ze(e),A=async()=>{var x;try{p.value=!0;const k=await B(),{columns:I=[],rows:P=[]}=((x=k==null?void 0:k.data)==null?void 0:x.data)??{};let q;I.length>0&&(q={name:I[0],types:I.slice(1).map(U=>({label:U,value:U}))}),v(P,q,!0)}catch(k){console.error(k)}finally{p.value=!1}},R=()=>{switch(e.dataType){case"indicator":A();break;case"request":T();break}};Le(e,{refreshData:R,resetRecord:()=>{const x=e.id,k=m(x);h(x,{...k,RECORD:""})},click:_});const{setRequest:O}=t.inject(Me,{setRequest:x=>{}});return typeof O=="function"&&O({id:e.id,requestFn:R,sortNum:e.requestSort}),o({refreshData:R}),{option:f,style:r,click:_,loading:p,onClose:g,ecanModal:l,eventObj:c,echartRef:n}}}),Fh="";function of(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 gl=pe(me(nf,[["render",of]])),ya={...Te,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:""},xa=ve(ya),ml=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,ht.BarChart,Ae.TitleComponent,Ae.LegendComponent,Ae.DatasetComponent,Ae.ToolboxComponent,Ae.MarkLineComponent]);const af=t.defineComponent({name:"EcanBar",props:{...xa},components:{Spin:Ft,Echarts:pt,EcanModal:kt,AModal:ce.Modal},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=t.ref(!1),i=t.ref(null),s=t.ref([]),l=ke(e),d=t.ref([]),c=t.ref(),u=t.ref({});let y;const f=t.computed(()=>a.value?$e:12),g=t.computed(()=>{const{gradientShow:z,gradientColors:L,gradientOffset:V,barBorderRadius:j}=e,X=t.unref(d),H=X.length,ee=[];for(let ne=0;ne<H;ne++){const ie={...X[ne],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(ie.stack="stack"),ie.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:oe=>{let Z="",K=e.labelFormatter;K===""&&(K="{c}");const{seriesName:J,name:le,value:be,data:Se}=oe||{};return Z+=Re(K,{textData:{name:le,value:be,a:J,b:le,c:be||0,...Se}},{useNewline:!0,useSpace:!0}),Z}},ie.itemStyle={},z&&(ie.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[ne]},{offset:V,color:L[ne]},{offset:1,color:L[ne]}]}}),j){const oe=j.split(",");if(oe!=null&&oe.length){const Z=[];for(const K of oe){const J=parseFloat(K);isNaN(J)||Z.push(J)}ie.itemStyle.borderRadius=Z}}e.isShowMarkLine&&(ie.markLine={data:[{type:e.markLineType}]}),ee.push(ie)}return ee}),m=t.ref([]),h=t.ref(!1),S=t.computed(()=>{const z=e.yAxisLabelFormatter,L=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.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(){r.value=!0;const V=n.value.chart.getOption(),{xAxis:j}=V||{};j&&j.length&&(s.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: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 V;a.value=!0,(V=c.value)==null||V.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ce.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:V=>{var ee;const j=V.length;let X="",H=e.tooltipFormatter;y=(ee=V[0])==null?void 0:ee.data,H===""&&(H="{marker} {a} {c}");for(let ne=0;ne<j;ne++){const{marker:ie,seriesName:oe,name:Z,value:K,data:J}=V[ne]||{};if(ne===0){let le=Z;typeof Z=="string"&&Z[0]==="0"&&!isNaN(+Z)&&(le=(+Z).toString()),X+=`${lt(L,le)}<br/>`}X+=Re(H,{textData:{marker:ie,name:Z,value:K,a:oe,b:Z,c:K||0,...J}},{useNewline:!0,useSpace:!0}),X+="<br/>"}return X},textStyle:{color:e.tooltipTextStyleColor,fontSize:f.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:(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((V,j)=>({name:V.name,itemStyle:{color:e.colors[j]},icon:e.legendType})),formatter:V=>an(e.legendFormatter,{name:V})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(w),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(V){return typeof V=="string"&&V[0]==="0"&&!isNaN(+V)&&(V=(+V).toString()),lt(L,V)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(m):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(V){return lt(z,V)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},series:t.unref(g)}}),{pageMode:D}=t.inject(Pe,{pageMode:"normal"}),b=()=>{a.value=!1},v=(z=[],L=!1)=>{let V={};if(e.dataFieldConfigType==="key"){const j=L?e.keyTypeDataFieldNames:null;V=At(z,j)}else if(e.dataFieldConfigType==="value"){const j=L?e.valueTypeDataFieldNames:null;V=zt(z,j)}d.value=V.dataset,m.value=V.dimensions},p=(z=[],L,V=!1)=>{const X=At(z,V?L:null,!0);d.value=X.dataset,m.value=X.dimensions},w=t.computed(()=>t.unref(m).map(z=>{let L={};return z&&typeof z=="object"?L={...z}:L={value:z},L}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([z])=>{(e.dataType==="static"||t.unref(D)==="design")&&v(z)},{immediate:!0,deep:!0});const T=qe(e),E=async()=>{var z,L;try{h.value=!0;const V=await T();v((L=(z=V==null?void 0:V.data)==null?void 0:z.data)==null?void 0:L.rows,!0)}catch(V){console.error(V)}finally{h.value=!1}},_=Ze(e),N=async()=>{var z;try{h.value=!0;const L=await _(),{columns:V=[],rows:j=[]}=((z=L==null?void 0:L.data)==null?void 0:z.data)??{};let X;V.length>0&&(X={name:V[0],types:V.slice(1).map(H=>({label:H,value:H}))}),p(j,X,!0)}catch(L){console.error(L)}finally{h.value=!1}},{loadedData:B}=t.inject(vt,{loadedData:{}}),A=t.ref(!1);t.watch(B,z=>{if(e.dataType==="indicator"){const L=on(e.graphicConfig);L!=null&&L.length&&(!t.unref(A)&&it(e.graphicConfig,z)?(A.value=!0,R()):it(e.graphicConfig,z)||(A.value=!1))}},{deep:!0});const R=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(B))&&N();break;case"request":E();break}},C=(z,L)=>!!t.unref(s)[L.value].value.includes(z),O=async()=>{r.value=!1;const z=n.value.chart.getOption();for(let L=0;L<7;L++)await x(z,L)},x=(z,L)=>new Promise(V=>{setTimeout(()=>{const{series:j,color:X,xAxis:H}=z,ee=n.value.chart,{splitArea:ne={}}=H[0]||{};j.forEach((ie,oe)=>{const Z=ie.data;let K="";L%2?K=X[oe]+"a8":K=X[oe],Z[i.value].itemStyle={color:K}}),L%2?(ne.show=!0,ne.areaStyle.color=t.unref(s).map((ie,oe)=>oe===i.value?"#ff003b26":"")):ne.show=!1,ee.setOption({series:j,xAxis:H}),V()},200)});o({refreshData:R});const k=De(e),{getGlobalModel:I,setGlobalModel:P}=t.inject(Ee,{getGlobalModel:z=>{},setGlobalModel:(z,L)=>{}});P(e.id,{type:e.type,RECORD:""});const q=k("click",z=>{const L=I(e.id);P(e.id,{...L,type:e.type,RECORD:e.tooltipShow?y:z.data})}),{setRequest:U}=t.inject(Me,{setRequest:z=>{}});typeof U=="function"&&U({id:e.id,requestFn:R,sortNum:e.requestSort});const F=()=>{const z=e.id,L=I(z);P(z,{...L,RECORD:""})},M=z=>{n.value.chart.containPixel("grid",[z.offsetX,z.offsetY])&&q()};return e.tooltipShow?u.value["zr:click"]=M:u.value.click=q,Le(e,{refreshData:R,click:q,resetRecord:F}),{option:S,style:l,refreshData:R,click:q,loading:h,onClose:b,ecanModal:c,echartRef:n,handleLocationOk:O,onFilterOption:C,locationVisible:r,locationValue:i,locationNames:s,eventObj:u}}}),Mh="",Ph="",rf=e=>(t.pushScopeId("data-v-21d7ed90"),e=e(),t.popScopeId(),e),lf={class:"location-wrap"},sf=rf(()=>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"),u=t.resolveComponent("a-select"),y=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{class:"ecan-bar",style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",lf,[sf,t.createVNode(u,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=f=>e.locationValue=f),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(f,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 yl=pe(me(af,[["render",cf],["__scopeId","data-v-21d7ed90"]])),pa={...Te,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=ve(pa),xl=["click","refreshData","resetRecord"];Je.use([Et.CanvasRenderer,ht.ScatterChart,Ae.ToolboxComponent,Ae.TitleComponent,Ae.TooltipComponent,Ae.LegendComponent,Ae.MarkLineComponent]);const df=t.defineComponent({name:"EcanScatter",props:{...ba},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e){const o=t.ref(!1),n=ke(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(){ce.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:_,seriesName:N}=E,B=((C=E==null?void 0:E.data)==null?void 0:C.record)??{},{name:A,value:R}=B;return Re(e.tooltipFormatter,{textData:{marker:_,seriesName:N,a:N,b:A,c:R,...B}})},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(Ee,{getGlobalModel:w=>{},setGlobalModel:(w,T)=>{}}),{pageMode:u}=t.inject(Pe,{pageMode:"normal"}),y=(w=[],T)=>{const{name:E="name",value:_="value"}=T||{};a.value=w.map(N=>({value:[N[E],N[_]],record:N}))};t.watch(()=>e.data,w=>{(e.dataType==="static"||t.unref(u)==="design")&&y(w)},{immediate:!0,deep:!0});const f=t.ref(!1),g=qe(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}}},h=()=>{o.value=!1},S=De(e);c(e.id,{type:e.type,RECORD:""});const D=S("click",w=>{const T=e.id,E=d(T);c(T,{...E,type:e.type,RECORD:w==null?void 0:w.data})});Le(e,{refreshData:()=>{m()},click:D,resetRecord:()=>{const w=e.id,T=d(w);c(w,{...T,RECORD:""})}});const{setRequest:p}=t.inject(Me,{setRequest:w=>{}});return typeof p=="function"&&p({id:e.id,requestFn:m,sortNum:e.requestSort}),{option:l,style:n,click:D,loading:f,onClose:h,ecanModal:r}}}),Vh="";function ff(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=pe(me(df,[["render",ff]])),va={...Te,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},Sa=ve(va),uf=t.defineComponent({name:"EcanCustomGraph",props:{...Sa},components:{Echarts:pt},setup(e){const o=ke(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:n0}}});function hf(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 bl=pe(me(uf,[["render",hf]])),Ca={...Te,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:""},wa=ve(Ca),vl=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,ht.BarChart,ht.LineChart,Ae.TitleComponent,Ae.LegendComponent,Ae.DatasetComponent,Ae.ToolboxComponent,Ae.MarkLineComponent]);const gf=t.defineComponent({name:"EcanComboGraph",props:{...wa},components:{Spin:Ft,Echarts:pt,EcanModal:kt,AModal:ce.Modal},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=t.ref(!1),i=t.ref(null),s=t.ref([]),l=t.ref({});let d;const c=ke(e),u=t.ref([]),y=t.ref([]),f=t.ref(),g=t.ref([]),m=t.computed(()=>a.value?$e:12),h=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:a.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(){r.value=!0;const L=n.value.chart.getOption(),{xAxis:V}=L||{};V&&V.length&&(s.value=V[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: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=f.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(){ce.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:(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(g).map((L,V)=>({name:L.name,itemStyle:{color:e.colors[V]},icon:e.legendType})),formatter:L=>an(e.legendFormatter,{name:L})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:L=>{var ee;const V=L.length;let j="",X=e.tooltipFormatter;d=(ee=L[0])==null?void 0:ee.data,X===""&&(X="{marker} {a} {c}");const H=e.seriesTypes;for(let ne=0;ne<V;ne++){const ie=H[ne],{tooltipFormatter:oe}=ie||{},{marker:Z,seriesName:K,name:J,value:le,data:be}=L[ne]||{};if(ne===0){let Se=J;typeof J=="string"&&J[0]==="0"&&!isNaN(+J)&&(Se=(+J).toString()),j+=`${lt(e.xAxisLabelFormatter,Se)}<br/>`}j+=Re(oe||X,{textData:{marker:Z,name:J,value:le,seriesName:K,a:K,b:J,c:le||0,...be}},{useNewline:!0,useSpace:!0}),j+="<br/>"}return j},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(y).map(L=>{let V={};return L&&typeof L=="object"?V={...L}:V={value:L},V}),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(e.xAxisLabelFormatter,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:t.unref(w),series:t.unref(u)})),{pageMode:S}=t.inject(Pe,{pageMode:"normal"}),D=()=>{a.value=!1},b=(L=[],V=!1)=>{let j;if(e.dataFieldConfigType==="key"){const H=V?e.keyTypeDataFieldNames:null;j=At(L,H)}else if(e.dataFieldConfigType==="value"){const H=V?e.valueTypeDataFieldNames:null;j=zt(L,H)}y.value=j.dimensions;const X=j.dataset;g.value=j.dataset,u.value=p(X)},v=(L=[],V,j=!1)=>{const H=At(L,j?V:null,!0);y.value=H.dimensions;const ee=H.dataset;g.value=H.dataset,u.value=p(ee)};function p(L){const V=[],j=L.length,X=e.seriesTypes;for(let H=0;H<j;H++){const ee=X[H],{type:ne,axisIndex:ie}=ee||{};let oe={type:ne,yAxisIndex:ie,...L[H]};if(ne==="line"){const Z={};e.shadowColor&&(Z.shadowColor=e.shadowColor,Z.shadowBlur=e.shadowBlur,Z.shadowOffsetY=e.shadowOffsetY,Z.shadowOffsetX=e.shadowOffsetX),oe={...oe,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[H]},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}}}if(ne==="bar"){const{gradientShow:Z,gradientColors:K,gradientOffset:J}=e,le={};if(e.barBorderRadius){const be=e.barBorderRadius.split(",");if(be!=null&&be.length){const Se=[];for(const Oe of be){const Ie=parseFloat(Oe);isNaN(Ie)||Se.push(Ie)}le.borderRadius=Se}}Z&&(le.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[H]},{offset:J,color:K[H]},{offset:1,color:K[H]}]}),oe={...oe,barWidth:e.barWidth,itemStyle:le}}e.isShowMarkLine&&(oe.markLine={data:[{type:e.markLineType}]}),V.push(oe)}return V}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],([L])=>{(e.dataType==="static"||t.unref(S)==="design")&&b(L)},{immediate:!0,deep:!0});const w=t.computed(()=>{const L=e.yAxis;return L==null?void 0:L.map((V,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(X){return lt(V.axisLabelFormatter,X)}},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"}}))}),T=t.ref(!1),E=qe(e),_=async()=>{var L,V;if(e.dataType==="request")try{T.value=!0;const j=await E();b((V=(L=j==null?void 0:j.data)==null?void 0:L.data)==null?void 0:V.rows,!0)}catch(j){console.error(j)}finally{T.value=!1}},N=Ze(e),B=async()=>{var L;try{T.value=!0;const V=await N(),{columns:j=[],rows:X=[]}=((L=V==null?void 0:V.data)==null?void 0:L.data)??{};let H;j.length>0&&(H={name:j[0],types:j.slice(1).map(ee=>({label:ee,value:ee}))}),v(X,H,!0)}catch(V){console.error(V)}finally{T.value=!1}},{loadedData:A}=t.inject(vt,{loadedData:{}}),R=t.ref(!1);t.watch(A,L=>{if(e.dataType==="indicator"){const V=on(e.graphicConfig);V!=null&&V.length&&(!t.unref(R)&&it(e.graphicConfig,L)?(R.value=!0,C()):it(e.graphicConfig,L)||(R.value=!1))}},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(A))&&B();break;case"request":_();break}},O=(L,V)=>!!t.unref(s)[V.value].value.includes(L),x=async()=>{r.value=!1;const L=n.value.chart.getOption();for(let V=0;V<7;V++)await k(L,V)},k=(L,V)=>new Promise(j=>{setTimeout(()=>{const{series:X,color:H,xAxis:ee}=L,ne=n.value.chart,{splitArea:ie={}}=ee[0]||{};X.forEach((oe,Z)=>{const K=oe.data;let J="";V%2?J=H[Z]+"a8":J=H[Z],K[i.value].itemStyle={color:J}}),V%2?(ie.show=!0,ie.areaStyle.color=t.unref(s).map((oe,Z)=>Z===i.value?"#ff003b26":"")):ie.show=!1,ne.setOption({series:X,xAxis:ee}),j()},200)});o({refreshData:C});const I=De(e),{getGlobalModel:P,setGlobalModel:q}=t.inject(Ee,{getGlobalModel:L=>{},setGlobalModel:(L,V)=>{}});q(e.id,{type:e.type,RECORD:""});const U=I("click",L=>{const V=P(e.id);q(e.id,{...V,type:e.type,RECORD:e.tooltipShow?d:L==null?void 0:L.data})}),F=L=>{n.value.chart.containPixel("grid",[L.offsetX,L.offsetY])&&U()};e.tooltipShow?l.value["zr:click"]=F:l.value.click=U;const{setRequest:M}=t.inject(Me,{setRequest:L=>{}});return typeof M=="function"&&M({id:e.id,requestFn:C,sortNum:e.requestSort}),Le(e,{resetRecord:()=>{const L=e.id,V=P(L);q(L,{...V,RECORD:""})},refreshData:C,click:U}),{style:c,option:h,click:U,loading:T,onClose:D,ecanModal:f,echartRef:n,handleLocationOk:x,onFilterOption:O,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),Wh="",Gh="",mf=e=>(t.pushScopeId("data-v-1858b3c3"),e=e(),t.popScopeId(),e),yf={class:"location-wrap"},xf=mf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function pf(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"),u=t.resolveComponent("a-select"),y=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",yf,[xf,t.createVNode(u,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=f=>e.locationValue=f),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(f,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 Sl=pe(me(gf,[["render",pf],["__scopeId","data-v-1858b3c3"]])),Aa={...Te,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=ve(Aa),Cl=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,ht.RadarChart,Ae.ToolboxComponent,Ae.TitleComponent,Ae.LegendComponent]);const bf=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=ke(e),i=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?$e:12),d=t.ref([]),c=t.ref(e.valueTypeDataFieldNames.name),u=t.computed(()=>{const C=t.unref(d),O=C.length,x=[];for(let k=0;k<O;k++){const{name:I,data:P=[]}=C[k],q=[{name:I,value:P.map(M=>M.value)}];let U=e.colors[k];if(e.gradientShow){const{gradientOffset:M,gradientColors:z}=e;U={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[k]},{offset:M,color:z[k]},{offset:1,color:z[k]}]}}const F={type:"radar",name:I,data:q,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:M=>{const{data:z,value:L}=M;let V=0,j="0%";if(z)for(const X of z.value)V+=+X;return V&&(j=`${(L/V*100).toFixed(2)}%`),Re(e.labelFormatter,{textData:{value:L,percent:j}},{useNewline:!1,useSpace:!1})}}};x.push(F)}return x}),y=t.computed(()=>{var I;const C=[],O=[],x=t.unref(d),k=x.length;for(let P=0;P<k;P++){const{data:q=[]}=x[P];for(let U=0;U<q.length;U++)O.push(q[U].value)}if((I=i.value)!=null&&I.length){const P=O!=null&&O.length?Math.max(...O)*1.2:0;for(const q of i.value)C.push({name:q,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(){ce.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 O="",x=e.tooltipFormatter;x===""&&(x="{marker} {a} {c}");for(let k=0;k<t.unref(y).length;k++){const I=t.unref(y)[k],{marker:P,seriesName:q,value:U}=C||{};k===0&&q&&(O+=`${q}<br/>`),O+=Re(x,{textData:{marker:P,name:I.name,value:U[k],a:I.name,b:I.name,c:U[k]||0,type:q}},{useNewline:!0,useSpace:!0}),O+="<br/>"}return O},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(u)})),g=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:h}=t.inject(Ee,{getGlobalModel:C=>{},setGlobalModel:(C,O)=>{}}),{pageMode:S}=t.inject(Pe,{pageMode:"normal"}),D=(C=[],O=!1)=>{let x;if(e.dataFieldConfigType==="key"){const k=O?e.keyTypeDataFieldNames:null;x=At(C,k)}else if(e.dataFieldConfigType==="value"){const k=O?e.valueTypeDataFieldNames:null;x=zt(C,k)}i.value=x.dimensions,d.value=x.dataset},b=(C=[],O,x=!1)=>{const I=At(C,x?O:null,!0);i.value=I.dimensions,d.value=I.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")&&D(C)},{immediate:!0,deep:!0});const v=t.ref(!1),p=qe(e),w=async()=>{var C,O;if(e.dataType==="request")try{v.value=!0;const x=await p();D((O=(C=x==null?void 0:x.data)==null?void 0:C.data)==null?void 0:O.rows,!0)}catch(x){console.error(x)}finally{v.value=!1}},T=De(e);h(e.id,{type:e.type,RECORD:""});const E=C=>{const O=C.event.topTarget.__dimIdx;O!==void 0&&T("click",()=>{var P;const{value:x,name:k}=C.data||{},I=m(e.id);h(e.id,{...I,type:e.type,RECORD:{[t.unref(c)]:((P=t.unref(y)[O])==null?void 0:P.name)||"",[k]:x[O],seriesName:k}})})()},_=Ze(e),N=async()=>{var C;try{v.value=!0;const O=await _(),{columns:x=[],rows:k=[]}=((C=O==null?void 0:O.data)==null?void 0:C.data)??{};let I;x.length>0&&(c.value=x[0],I={name:x[0],types:x.slice(1).map(P=>({label:P,value:P}))}),b(k,I,!0)}catch(O){console.error(O)}finally{v.value=!1}},B=()=>{switch(e.dataType){case"indicator":N();break;case"request":w();break}};Le(e,{refreshData:B,resetRecord:()=>{const C=e.id,O=m(C);h(C,{...O,RECORD:""})},click:E});const{setRequest:R}=t.inject(Me,{setRequest:C=>{}});return typeof R=="function"&&R({id:e.id,requestFn:B,sortNum:e.requestSort}),o({refreshData:B}),{option:f,style:r,click:E,loading:v,onClose:g,ecanModal:s,echartRef:n}}}),$h="";function vf(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 wl=pe(me(bf,[["render",vf]])),Sf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Cf="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==",wf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Af="data:image/png;base64,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",Ta={...Te,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=ve(Ta),Al=["click"],kf=t.defineComponent({name:"EcanBorder",props:{...Ba},setup(e){const o=ke(e,["background"]),n=t.computed(()=>{const{isTransparent:m,gradientShow:h,gradientColor:S,gradientOffset:D,gradientAngle:b,backgroundColor:v}=e;if(h){let p=S;return m&&(p="transparent"),p?{background:`linear-gradient(${b}, ${v}, ${p} ${D*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:m}=e;let h={};return m!=null&&m.length&&m.find(D=>D.emit==="showModal")&&(h={cursor:"pointer"}),h}),{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":Sf,"../../assets/border-title-decoration-left2.png":Cf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":wf,"../../assets/border-title-decoration-right2.png":Af})[`../../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,h=[],S={};if(m){const D=m.split(",");for(const b of D)(+b||+b==0)&&h.push(+b+"px")}return h!=null&&h.length&&(S.borderRadius=h.join(" ")),S}),y=De(e)("click",()=>{}),f=t.ref([]);t.watch(()=>e.data,m=>{f.value=m},{immediate:!0,deep:!0}),Le(e,{click:y});const{setGlobalModel:g}=t.inject(Ee,{setGlobalModel:(m,h)=>{}});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}}}),Zh="",Tt=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),Tf=["id"],Bf=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Ef=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Df=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Rf=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),If={class:"title-item"},Of=["src"],_f={class:"title"},Lf=["src"],Nf=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Ff=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),zf=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Mf=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Pf={key:2,class:"left-title"},qf={class:"title"};function Vf(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},[Bf,Ef,Df,Rf],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",If,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Of),t.createElementVNode("div",_f,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Lf)])],2),Nf,Ff,zf,Mf],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Pf,[t.createElementVNode("div",qf,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,Tf)}const kl=pe(me(kf,[["render",Vf],["__scopeId","data-v-8dd53b8f"]])),Ea={...Te,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=ve(Ea),Tl=["tabChange"],Hf=t.defineComponent({name:"EcanTabs",props:{...Da},components:{ASelect:ce.Select,ASelectOption:ce.SelectOption,MarqueeScroll:Mn},setup(e){const o=ke(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 h=t.unref(n)+1;h<=m?n.value=h:n.value=0,l.value=t.unref(s)[t.unref(n)],y()},e.autoSwitchInterval*1e3))};t.onMounted(()=>{t.unref(a)!=="design"&&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=De(e),{setGlobalModel:u}=t.inject(Ee,{setGlobalModel:(m,h)=>{}});u(e.id,{value:l,activeKey:n});const{emitRefreshPage:y}=t.inject(tn,{emitRefreshPage:()=>{}}),f=(m,h)=>{c("tabChange",()=>{h!==t.unref(n)&&(l.value=m,n.value=h,y())})()},g=t.computed(()=>{const m=e.componentList.map(h=>parseFloat(h.left)+parseFloat(h.width)).sort((h,S)=>S-h)[0];return{width:m?m+"px":"100%"}});return Le(e,{tabChange:f}),{style:o,activeKey:n,isActive:d,tabChange:f,myData:s,useImagePath:yt,pageMode:a,scrollWrapStyle:g}}}),Qh="",jf=["id"],Wf=["onClick"];function Gf(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,u)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(u)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(u)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:u,onClick:t.withModifiers(y=>e.tabChange(c,u),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(u)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,Wf))),128)):e.tabType==="select"?(t.openBlock(),t.createBlock(l,{key:1,value:e.activeKey,style:t.normalizeStyle({width:e.tabWidth})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(c,u)=>(t.openBlock(),t.createBlock(s,{key:u,value:u,onClick:y=>e.tabChange(c,u)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):t.createCommentVNode("",!0)],4)):t.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,jf)}const Bl=pe(me(Hf,[["render",Gf],["__scopeId","data-v-132544b5"]])),Ra={...Te,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"},Ia=ve(Ra),El=["click","refreshData","resetRecord"];let Dl=(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 Uf=t.defineComponent({name:"EcanCirculate",props:{...Ia,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll:Mn,Skeleton:en},setup(e,{expose:o}){const n=t.ref(!1),a=ke(e,["background"]),r=t.inject("usedComponentList",[]),i=t.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=t.inject(Ee,{getGlobalModel:E=>{},setGlobalModel:(E,_)=>{}}),d=t.ref([]),c=t.ref({}),{pageMode:u}=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 N=_.find(B=>B.id===e.id);if(N)for(const B of E)B.left=parseFloat(B.left)-parseFloat(N.sourceLeft||N.left)+"px",B.top=parseFloat(B.top)-parseFloat(N.sourceTop||N.top)+"px"}const g=E=>{const _=E.sort((B,A)=>parseFloat(B.left)-parseFloat(A.left))[0],N=E.map(B=>parseFloat(B.left)+parseFloat(B.width)).sort((B,A)=>A-B)[0];if(_&&N){const B=parseFloat(_.left);return{width:N-B,left:B}}else return{width:0,left:0}},m=t.ref({}),h=E=>{var I,P;const _=[],{graphicConfig:N,id:B,componentList:A,keyFieldMap:R,unitInterval:C}=e;let O=_e.cloneDeep(A),x=[];if((I=t.unref(r))!=null&&I.length)for(const q of t.unref(r))x.push(q),(P=q==null?void 0:q.componentList)!=null&&P.length&&x.push(...q.componentList);if(N.pageMode==="design"&&N.preview){const{containerMap:q}=N.pageConfig||{};x=N.componentList||[],x.push(e),O=ha(q,_e.cloneDeep(x),B)}f(O,x);const k=g(O);if(E!=null&&E.length){const{width:q,left:U}=k;let F=0;for(const M of E){const z=Dl(),L=_e.cloneDeep(O);for(const V of L){const j=R.find(H=>H.keyName===V.keyName),X=Dl();if(V.left=(parseFloat(V.left)+F)*t.unref(y)+"px",V.top=parseFloat(V.top)*t.unref(y)+"px",V.scale=t.unref(y),V.id=X,V.keyName=V.name+"_"+X,V.unitId=z,j!=null&&j.fieldName)switch(V.type){case"ecanText":{const H=V.text.match(/\{(.+?)\}/g);V.data={value:String(M[j.fieldName])},H!=null&&H.length||(V.text="{value}");break}}}F+=C+q,_.push(...L),m.value[z]=M}c.value={width:(E.length*(q+C)+U)*t.unref(y)+"px"}}d.value=_},S=Ze(e),D=async()=>{var E;try{n.value=!0;const _=await S(),{rows:N=[]}=((E=_==null?void 0:_.data)==null?void 0:E.data)??{};h(N)}catch(_){console.error(_)}finally{n.value=!1}},b=()=>{switch(e.dataType){case"indicator":D();break}};Le(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(Me,{setRequest:E=>{}});typeof p=="function"&&p({id:e.id,requestFn:b,sortNum:e.requestSort});const w=De(e);return{loading:n,style:a,myComponentList:d,scrollWrapStyle:c,pageMode:u,click:E=>{const{target:_}=E;if(_){const N=_.getAttribute("unitId");N&&w("click",()=>{const B=s(e.id);l(e.id,{...B,type:e.type,RECORD:t.unref(m)[N]})})()}}}}}),Xh="",$f=["id"];function Kf(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,$f)}const Rl=pe(me(Uf,[["render",Kf],["__scopeId","data-v-33ddd57a"]])),Oa={...Te,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:""},_a=ve(Oa),Il=["click"],La=t.defineComponent({name:"EcanImage",props:{..._a},setup(e){const o=ke(e),n=t.computed(()=>yt(e.imgUrl)),{pageMode:a}=t.inject(Pe,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=t.inject(Ee,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=De(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||"",u=Bi(t.unref(a),c),y=e.href;let f=y||u;f=Re(f);const g=e.target;g&&(g!=="event"?window.open(f,"_"+g):window.parent.postMessage({type:"openPage",url:y},"*"))});return Le(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),Ol=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},_l=La.setup;La.setup=_l?(e,o)=>(Ol(),_l(e,o)):Ol;const t1="",Zf=["src"];function Yf(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,Zf)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const Ll=pe(me(La,[["render",Yf],["__scopeId","data-v-47ea6e7c"]])),Na={...Te,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Fa=ve(Na),Qf=t.defineComponent({name:"EcanIframe",props:{...Fa},setup(e){const o=ke(e),{contextRequestUrl:n}=t.inject(Pe,{contextRequestUrl:""}),a=t.computed(()=>{let r=Re(e.link);if(e.linkType==="erd"&&r!=null){let i=t.unref(n);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${_s||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),o1="",Jf=["src"];function Xf(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,Jf)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Nl=pe(me(Qf,[["render",Xf],["__scopeId","data-v-19bc100c"]])),za={...Te,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},Ma=ve(za),Fl=["click","refreshData","resetRecord","exportTableData"],eu="data:image/png;base64,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",tu="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==",nu="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:ce.Button,AInput:ce.Input,ACheckboxGroup:ce.CheckboxGroup,ATable:ce.Table,ATableSummary:ce.TableSummary,ATableSummaryRow:ce.TableSummaryRow,ATableSummaryCell:ce.TableSummaryCell},props:{...Ma},setup(e,{expose:o}){const n=t.ref(!1),a=t.computed(()=>{const W=_e.cloneDeep(e.columns);return e.isUseSeq&&W.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&W.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),W}),r=t.ref(),i=t.ref(!1),s=ke(e),l=t.ref([]),d=t.computed(()=>e.scrollX),c=t.ref(0),u=()=>{let W=0;switch(e.size){case"small":W=50;break;case"middle":W=53;break;default:W=65;break}return W};t.watchEffect(()=>{var W;(W=l.value)!=null&&W.length&&e.height&&t.nextTick(()=>{let Y=parseFloat(e.height);const Q=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),re=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),se=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ae=0;if(re&&(Y-=(re==null?void 0:re.clientHeight)||0),se&&e.isSummaryFixed&&(ae=(se==null?void 0:se.clientHeight)||0,Y-=ae),e.paginationShow){let te=0;te=u(),te&&(Y-=te)}(Q==null?void 0:Q.clientHeight)>Y?c.value=Y:c.value=0,t.nextTick(()=>{if(ae){const te=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),ue=(te==null?void 0:te.clientHeight)||0;ae!==ue&&t.unref(c)&&(c.value=Y+ae-ue)}})})});const y=t.ref([]),f=t.ref([]),g=t.ref([]),m=t.ref([]),h=t.ref(0),S=t.ref(1),D=t.ref(e.paginationPageSize||10),b=t.reactive([]),v=(W=[])=>{var Y,Q;if(Array.isArray(W)&&W.length>0){let re=W.length;const se=e.columnsFixedNum;if(e.dataType==="indicator"&&((Y=t.unref(a))!=null&&Y.length)){const{graphicConfig:{indicators:ae=[]}}=e;W.forEach((te,ue)=>{if(t.unref(a)[ue])for(const ze in t.unref(a)[ue])["dataIndex","title"].includes(ze)||(te[ze]=t.unref(a)[ue][ze]);const ge=ae.find(ze=>ze.label===te.title),{showLabel:ye=""}=ge||{};ye&&(te.title=ye)})}for(let ae=re-1;ae>=0;ae--)(Q=W[ae])!=null&&Q.isHidden&&W.splice(ae,1);re=W.length;for(let ae=0;ae<re;ae++){const te=W[ae];if(ae<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:ue="center",cellColor:ge,dataIndex:ye,title:ze,tableFilter:Ye,headerCellAlign:xt,headerCellColor:Ot,overflow:wn}=te;Ye&&(b.push(ye),te.filterOptionsInputValue="",te.filterCheckboxGroupValue=[],te.customFilterDropdown=!0,te.onFilter=(Qe,_t)=>_t[ye].toString().toLowerCase().includes(Qe.toLowerCase())),te.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:xt||"center",color:Ot||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),te.customCell=(Qe,_t)=>({style:{textAlign:ue,color:ge||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(j)===_t&&e.clickHighlight},onClick:U("click",()=>{const Zt=e.id,An=F(Zt);Qe={dataIndex:ye,title:ze,...Qe},M(Zt,{...An,type:e.type,RECORD:Qe})})}),wn==="ellipsis"?te.ellipsis=!0:te.ellipsis=!1,Array.isArray(te.children)&&v(te.children)}}},p=(W=[])=>{var Q;let Y=_e.cloneDeep(W);return(Q=t.unref(m))!=null&&Q.length&&(Y=_e.cloneDeep(t.unref(m))),e.isUseSeq&&Y.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Y.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),v(Y),Y};t.watch(D,()=>{S.value=1,ne(!1)}),t.watch(r,W=>{i.value=!!W}),t.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{y.value=p(_e.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([W,Y])=>{Y==="static"&&(f.value=W)},{immediate:!0});const w=t.ref({}),T=W=>{if(Array.isArray(W)){const Y=W.length,Q=b,re=Q.length,se={};for(let te=0;te<Y;te++){const ue=W[te];for(let ge=0;ge<re;ge++){const ye=Q[ge];if(se[ye])se[ye].add(ue[ye]);else{const ze=new Set;ze.add(ue[ye]),se[ye]=ze}}}const ae={};for(const te in se)if(Object.prototype.hasOwnProperty.call(se,te)){const ue=se[te],ge=Array.from(ue);ae[te]=ge.map(ye=>({label:ye,value:ye}))}w.value=ae}};t.watch(()=>[e.isReverse,y.value,f.value],()=>{const W=t.unref(y),Y=t.unref(f);if(T(Y),e.isReverse){const{columns:Q,dataSource:re}=E(_e.cloneDeep(W),_e.cloneDeep(Y));g.value=Q,l.value=re}else g.value=W,l.value=Y},{immediate:!0});const E=(W,Y)=>{const Q=W[0],re=[{title:Q.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ae=0;ae<Y.length;ae++){const te=Y[ae],ue="col"+(ae+1);re.push({title:te[Q.dataIndex],dataIndex:ue,key:ue,align:"center"})}const se=[];for(let ae=1;ae<W.length;ae++){const te=W[ae],ue={col0:te.title};for(let ge=0;ge<Y.length;ge++){const ye=Y[ge];ue[`col${ge+1}`]=ye[te.dataIndex]}se.push(ue)}return{columns:re,dataSource:se}},_=t.ref(""),N=qe(e),B=async(W=!0,Y={})=>{var Q;try{W&&(n.value=!0),t.unref(_)&&(Y.orderCondition=t.unref(_)),e.paginationShow&&(Y={pageNum:t.unref(S),pageSize:t.unref(D)||"10",layer:"1",...Y});const re=await N(Y),{rows:se=[],total:ae=0}=((Q=re==null?void 0:re.data)==null?void 0:Q.data)||{};if(h.value=ae,Array.isArray(se)&&(f.value=se),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:te=[]}=e,ue=te.find(ge=>ge.key==="dataSqlId");if((ue==null?void 0:ue.value)==="xt_jxzebg"){const ge=se.filter(ye=>!ye.绩效总额).map(ye=>ye.ORG_NAME);ge!=null&&ge.length&&t.nextTick(()=>{ce.notification.warning({message:"提示",description:`当前时段${ge.join("、")}绩效数据为空`,duration:3})})}}}catch(re){console.error(re)}finally{n.value=!1}},A=({current:W},Y,Q)=>{if(S.value=W,Q&&Object.keys(Q).length>0){const{field:re,order:se}=Q,te={ascend:"asc",descend:"desc"}[se];re!=null&&te!=null&&te?_.value=re+" "+te:te||(_.value="")}e.isSortByFront||ne(!1)},R=t.computed(()=>{const W=e.simple,Y=[e.paginationPosition],Q={};return e.isShowTotal&&(Q.showTotal=re=>`共 ${re} 条数据`),e.paginationShow&&{simple:W,position:Y,total:t.unref(h),current:t.unref(S),pageSize:t.unref(D)||"10",showSizeChanger:!1,size:"large",...Q}}),C=W=>+W==1?"是":+W==0?"否":W,O=(W,Y)=>{const{format:Q,retentiondigit:re,customFormatter:se}=Y;if(Q==null||Q==="")return W;const ae={money:Io,percentage:Sn,contrast:Sn,boolean:C,decimals:Vc,custom:Ti};return ae[Q]?Q==="decimals"?ae[Q](W,re)||"":Q==="custom"?ae[Q](W,se)||"":ae[Q](W)||"":""},x=W=>W==="contrast"?"upDown":"",k=W=>{const{text:Y,format:Q,declineColor:re="#39cf93",increaseColor:se="#ff512e"}=W;if(Q==="contrast"){const ae={fontSize:e.fontSize},te=parseFloat(Y+"");return te>=0?ae.color=se:te<0&&(ae.color=re),ae}else return{}},I=t.computed(()=>{const{fontSize:W}=e;return{width:W,height:W,textIndent:`-${parseFloat(W)*2}px`,overflow:"hidden"}}),P=W=>{const{text:Y,declineColor:Q="#39cf93",increaseColor:re="#ff512e"}=W,{fontSize:se}=e,ae=parseFloat(Y+""),te={width:se,verticalAlign:"unset"};return ae>=0?te.filter=`drop-shadow(${re||"#ff512e"} ${se} -1px)`:ae<0&&(te.filter=`drop-shadow(${Q||"#39cf93"} ${se} -1px)`),te},q=W=>{const Y=parseFloat(W+"");if(Y>=0)return Fo;if(Y<0)return zo},U=De(e),{getGlobalModel:F,setGlobalModel:M}=t.inject(Ee,{getGlobalModel:W=>{},setGlobalModel:(W,Y)=>{}});M(e.id,{type:e.type,RECORD:""});const z=(W=[],Y=[])=>{const Q=W.map(re=>({title:re,dataIndex:re,key:re}));m.value=_e.cloneDeep(Q),y.value=p(Q),f.value=Y},L=Ze(e),V=async(W=!0)=>{var Y,Q,re,se;try{W&&(n.value=!0);const ae=t.unref(_).split(" "),te={};e.isSortByFront||(te.sort={order:ae[1],field:ae[0]});const ue=await L(te);z((Q=(Y=ue==null?void 0:ue.data)==null?void 0:Y.data)==null?void 0:Q.columns,(se=(re=ue==null?void 0:ue.data)==null?void 0:re.data)==null?void 0:se.rows)}catch(ae){console.error(ae)}finally{n.value=!1}},j=t.ref(-1),X=(W,Y)=>({onClick:U("rowClick",()=>{const Q=e.id,re=F(Q);M(Q,{...re,type:e.type,RECORD:W}),j.value=Y})}),{loadedData:H}=t.inject(vt,{loadedData:{}}),ee=t.ref(!1);t.watch(H,W=>{if(e.dataType==="indicator"){const Y=on(e.graphicConfig);Y!=null&&Y.length&&(!t.unref(ee)&&it(e.graphicConfig,W)?(ee.value=!0,ne()):it(e.graphicConfig,W)||(ee.value=!1))}},{deep:!0});const ne=(W=!0)=>{switch(e.dataType){case"request":B(W);break;case"indicator":it(e.graphicConfig,t.unref(H))&&V(W);break}},ie=()=>{const W=e.id,Y=F(W);M(W,{...Y,type:e.type,RECORD:""})},oe=t.computed(()=>{const W=t.unref(g);let Y=0;const{subTotalColumn:Q,subTotalName:re}=e;Q&&(Y=W.findIndex(ge=>ge.dataIndex===Q),Y<0&&(Y=0));const se=[];let ae=0;for(let ge=0;ge<W.length;ge++){const ye=W[ge],{isCalcTotal:ze}=ye;ge===Y?se.push({...ye,total:re}):ze?(se.push({...ye,index:ge,total:0}),ae++):se.push({...ye})}if(ae===0)return[];const te=t.unref(l),ue=Z(se);for(let ge=0;ge<ue.length;ge++){const ye=ue[ge];let ze=0;const{isCalcTotal:Ye,dataIndex:xt}=ye;if(Ye===!0){for(let Ot=0;Ot<te.length;Ot++){const Qe=+te[Ot][xt];isNaN(Qe)||(ze=new e0.Big(ze).add(Qe).toNumber())}ye.total=ze}}return ue});function Z(W){var Q;const Y=[];for(const re of W)(Q=re.children)!=null&&Q.length?Y.push(...Z(re.children)):Y.push(re);return Y}const{setRequest:K}=t.inject(Me,{setRequest:W=>{}});typeof K=="function"&&K({id:e.id,requestFn:ne,sortNum:e.requestSort}),o({refreshData:ne});const J=(W="",Y)=>Re(W,Y),le=W=>{if(W!=="event")return{self:"_self",blank:"_blank"}[W]},be=(W,Y="")=>{W==="event"&&window.parent.postMessage({type:"openPage",url:Y},"*")},Se=(W,Y)=>{W(Y.filterCheckboxGroupValue)},Oe=(W,Y)=>{W({confirm:!0}),Y.filterOptionsInputValue="",Y.filterCheckboxGroupValue=[]},Ie=()=>{},Be=W=>{const Y=W.dataIndex;if(typeof Y=="string"){let Q=t.unref(w)[Y];const re=t.unref(W.filterOptionsInputValue).trim();return Array.isArray(Q)?(Q=Q.filter(se=>typeof se.label=="string"?se.label.toLowerCase().includes(re.toLowerCase()):!0),Q):[]}return[]},Ce=async()=>{var ye,ze;const W="EXPORT_KEY";ce.message.loading({key:W,content:"正在导出...",duration:0});let Y=[];if(e.dataType==="static")Y=e.data;else if(e.dataType==="request"){const Ye={layer:"1"};t.unref(_)&&(Ye.orderCondition=t.unref(_));const xt=await N(Ye);Y=((ze=(ye=xt==null?void 0:xt.data)==null?void 0:ye.data)==null?void 0:ze.rows)||{}}const Q=t.unref(g),re=[],se=[];Q==null||Q.forEach(Ye=>{re.push(Ye.dataIndex),se.push(Ye.title)});const ae=Y.map(Ye=>_e.pick(Ye,re)),te=Yt.utils.book_new(),ue=Yt.utils.aoa_to_sheet([se]),ge=Yt.utils.sheet_add_json(ue,ae,{skipHeader:!0,origin:"A2"});Yt.utils.book_append_sheet(te,ge,"sheet"),Yt.writeFile(te,"表格数据.xlsx"),ce.message.success({key:W,content:"导出成功"})},Ve=(W,Y=2)=>{const Q=+W*100;return isNaN(Q)||Q<=0?0:Q>=100?100:Q.toFixed(Y)};Le(e,{resetRecord:ie,refreshData:ne,exportTableData:Ce});const Ue=(W,Y)=>{let Q=null;return e.stripedShow&&(Q=Y%2===1?"table-striped":null),Q},He=t.computed(()=>{let W=0;const{height:Y,isPageBottom:Q}=e;return Q&&Y&&(W=parseFloat(Y)-u()),W?W+"px":"100%"}),je=t.computed(()=>{let W="#071655";return e.headerBackgroundColor&&(W="transparent"),W}),Ge=t.computed(()=>{let W="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(W="transparent"),W}),ut=t.computed(()=>parseFloat(e.fontSize)+16),tt=t.computed(()=>{let W="";const{paginationColor:Y,paginationBgColor:Q,activePaginationColor:re,activePaginationBgColor:se,hoverBackgroundColor:ae}=e;return Y&&(W+="p-color "),Q&&(W+="p-bg-color "),re&&(W+="active-p-color "),se&&(W+="active-p-bg-color "),ae&&(W+="hover-bg-color "),W});return{x:d,y:c,style:s,customRow:X,pagination:R,formatFn:O,contrastClass:x,tableChange:A,summaryList:oe,loading:n,onTouchHrefEvent:be,handleHref:J,handleHrefTarget:le,useRowIndex:j,tableColumns:g,tableDataSource:l,useFilterOptions:Be,useSetSelectedKeys:Se,onResetFilter:Oe,onSearchFilterOptions:Ie,exportTableData:Ce,handleProgressText:Ve,pageSizeVisible:i,pageSize:D,tableRef:r,rowClassName:Ue,tableHeight:He,tableHeaderBgColor:je,tableBodyBgColor:Ge,getChgStyle:k,chgBoxStyle:I,getChgBoxImgStyle:P,getChgBoxImgSrc:q,seqIcon1:eu,seqIcon2:tu,seqIcon3:nu,iconSize:ut,containerClass:tt,getCellStyle:W=>{const{overflow:Y}=W;if(Y==="ellipsis")return{overflow:"hidden",textOverflow:"ellipsis"};if(Y==="wrap")return{}}}}}),zl=()=>{t.useCssVars(e=>({"70c383fc":e.stripedColor,"35e71b39":e.tableHeaderBgColor,"53718c84":e.tableBodyBgColor,cedc7664:e.paginationBgColor,"6ceaca13":e.paginationColor,"25b86a30":e.activePaginationBgColor,"6a9b8ead":e.activePaginationColor,"7d7d7e0f":e.hoverBackgroundColor}))},Ml=Pa.setup;Pa.setup=Ml?(e,o)=>(zl(),Ml(e,o)):zl;const r1="",i1="",ou=e=>(t.pushScopeId("data-v-f641124f"),e=e(),t.popScopeId(),e),au=["id"],ru={key:0,class:"table-tool"},iu=t.createTextVNode("导出数据"),lu=t.createTextVNode(" 搜索 "),su=t.createTextVNode(" 重置 "),cu=["src","width","height"],du=["src","width","height"],fu=["src","width","height"],uu={key:1},hu={key:1,class:"action-list"},gu=["href","target","onClick"],mu={key:2,class:"progress-cell"},yu=["title"],xu=["title"],pu=["src"],bu=["title"],vu=["src"],Su={class:"ant-pagination-options-quick-jumper"},Cu=ou(()=>t.createElementVNode("span",null,"条 / 页",-1));function wu(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"),u=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",ru,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[iu]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(f,{ref:"tableRef",class:"table",style:t.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:t.withCtx(({column:h,selectedKeys:S,setSelectedKeys:D,confirm:b,clearFilters:v})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(l,{value:h.filterOptionsInputValue,"onUpdate:value":p=>h.filterOptionsInputValue=p,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:h.filterCheckboxGroupValue,"onUpdate:value":p=>h.filterCheckboxGroupValue=p,class:"filter-checkbox",options:e.useFilterOptions(h),onChange:p=>e.useSetSelectedKeys(D,h)},null,8,["value","onUpdate:value","options","onChange"]),t.createElementVNode("div",null,[t.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>b()},{default:t.withCtx(()=>[lu]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(p=>e.onResetFilter(v,h),["stop"])},{default:t.withCtx(()=>[su]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:h,index:S,text:D,record:b})=>{var v,p,w,T;return[h.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,cu)):S===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,du)):S>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,fu)):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",uu,t.toDisplayString(S+1),1))],64)):h.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",hu,[(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:N=>e.onTouchHrefEvent(E.target,e.handleHref(E.href,b))},t.toDisplayString(E.title),13,gu)]))),128))])):h.format==="progress"?(t.openBlock(),t.createElementBlock("div",mu,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:h.progressColor||"#1890ff",height:h.progressWidth||"18px",width:`${e.handleProgressText(D,h.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(D)<100?h.progressTextColor||"#333":h.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(D,h.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(h)})},[h.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:0,title:((v=h==null?void 0:h.customFormatter)==null?void 0:v.split("{value}")[0])||""},t.toDisplayString(((p=h==null?void 0:h.customFormatter)==null?void 0:p.split("{value}")[0])||""),9,yu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(h.format)]),style:t.normalizeStyle(e.getChgStyle({...h,text:D})),title:h.format!=null?e.formatFn(D,h):D},[h.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...h,text:D})),src:e.getChgBoxImgSrc(D)},null,12,pu)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(h.format!=null?e.formatFn(D,h):D),1)],14,xu),h.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((w=h==null?void 0:h.customFormatter)==null?void 0:w.split("{value}")[1])||""},t.toDisplayString(((T=h==null?void 0:h.customFormatter)==null?void 0:T.split("{value}")[1])||""),9,bu)):t.createCommentVNode("",!0)],4))]}),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(y,{key:0,fixed:e.isSummaryFixed},{default:t.withCtx(()=>[t.createVNode(u,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(h,S)=>(t.openBlock(),t.createBlock(c,{key:S,index:S,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:h.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(h.format)]),style:t.normalizeStyle({...e.getChgStyle({...h,text:h.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[h.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...h,text:h.total})),src:e.getChgBoxImgSrc(h.total)},null,12,vu)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString((h.format!=null||h.format!=="")&&e.formatFn(h.total,h)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):t.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[t.createElementVNode("div",Su,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=h=>e.pageSize=h)},null,512),[[t.vModelText,e.pageSize]]),Cu])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,au)}const Pl=pe(me(Pa,[["render",wu],["__scopeId","data-v-f641124f"]])),qa={...Te,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=ve(qa),ql=["click"];Je.use([Et.CanvasRenderer,ht.MapChart,ht.ScatterChart,Ae.VisualMapComponent,Ae.TooltipComponent,Ae.GraphicComponent]);const Au=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=ke(e,["backgroundImage"]),l=t.ref(),d=t.computed(()=>yt(e.geoBackgroundImage)),c=t.computed(()=>yt(e.backgroundImage)),u=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 O=e.tooltipFormatter;const x=O.match(/\{(.+?)\}/g);if(x==null||x.length===0)return O;for(let k=0;k<x.length;k++){const I=x[k];let P=I.slice(1,-1).trim();const q=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,U=P.match(q);for(let F=0;F<U.length;F++){const M=U[F],z=C[M];z!=null&&(P=P.replace(M,z))}O=O.replace(I,P)}return O.split(`
|
|
120
|
+
`)},g=t.ref(!1),m=t.ref("");let h=new AbortController;const S=(C,O)=>{const x=h.signal;g.value=!0,r.value=C,n({name:C,signal:x}).then(k=>{var I,P;if(k){const q=((P=(I=k==null?void 0:k.data)==null?void 0:I.data)==null?void 0:P.rows)||[];let U="";for(const F of q){const M=f(F)||[];if(M!=null&&M.length)for(const z of M)U+=`<div style="word-break: break-all;white-space: normal;">${z}</div>`}U=`<div style="max-width:200px;">${U}</div>`,i.value=U,O(t.unref(m),U)}else x.aborted?i.value="Loading":i.value=C,O(t.unref(m),i.value);g.value=!1})},D=t.computed(()=>{const C=e.geoCenter;let O;return typeof C=="string"&&C!==""&&(O=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:O,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(x,k,I)=>{m.value=k;const{name:P=""}=x,{requestUrl:q}=e.tooltipRequestData;if(!q)return P;if(t.unref(g))t.unref(r)!==P&&(h.abort(),h=new AbortController);else{if(t.unref(r)===P)return t.unref(i);S(P,I)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(u),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:t.unref(y),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),b=t.ref(!1),v=async()=>{var x;b.value=!1;const C=e.mapJson,O=`map-${e.id}`;if(C!=null&&C.path){const k=await ft(((x=window==null?void 0:window.config)==null?void 0:x.uploadPath)+C.path);Je.registerMap(O,(k==null?void 0:k.data)||{})}else Je.registerMap(O,{});b.value=!0};t.watch(()=>e.mapJson,()=>{v()},{immediate:!0,deep:!0});const p=async()=>{var C,O;if(e.dataType==="request"){b.value=!1;try{const x=await o(),k=((O=(C=x==null?void 0:x.data)==null?void 0:C.data)==null?void 0:O.rows)||{},I=`map-${e.id}`;if(k!=null&&k.path){const P=await ft(k.path);Je.registerMap(I,(P==null?void 0:P.data)||{})}else Je.registerMap(I,{})}catch(x){console.error(x)}finally{b.value=!0}}},w=()=>{switch(e.dataType){case"request":p();break}},{getGlobalModel:T,setGlobalModel:E}=t.inject(Ee,{getGlobalModel:C=>{},setGlobalModel:(C,O)=>{}}),N=De(e)("click",()=>{const C=T(e.id);E(e.id,{...C,RECORD:t.unref(a)})});Le(e,{refreshData:w});const{setRequest:B}=t.inject(Me,{setRequest:C=>{}});return typeof B=="function"&&B({id:e.id,requestFn:w,sortNum:e.requestSort}),{option:D,style:s,isLoadedData:b,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{t.unref(a)&&N()},onMouseOver:(C={})=>{C.componentType==="geo"&&C.region?a.value=C.region:a.value=null}}}}),s1="",ku=["src"];function Tu(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,ku),[[t.vShow,!1]])],4)}const Vl=pe(me(Au,[["render",Tu],["__scopeId","data-v-10f150ac"]])),Ha={...Te,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},ja=ve(Ha),Hl=["selectChange","refreshData"],Bu=t.defineComponent({name:"EcanDataSelect",components:{ASelect:ce.Select,ASelectOption:ce.SelectOption},props:{...ja},setup(e,{expose:o}){const n=ke(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=qe(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var R;const{mode:A}=e;return(R=t.unref(i))!=null&&R.length?s.value:A==="multiple"||A==="tags"||A==="combobox"?[]:""},set:A=>{s.value=A}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:u}=t.inject(Ee,{getGlobalModel:A=>{},setGlobalModel:(A,R)=>{},getRecordValueByKeyName:A=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:A,selectFirstOption:R,value:C}=e,O=u(C),x=y.value;if(A==="multiple"||A==="tags"||A==="combobox"){if(O)s.value=O.split(",");else if(R){const k=t.unref(i)[0];s.value=k?[k[x]]:[]}}else if(O)s.value=O;else if(R){const k=t.unref(i)[0];s.value=k?k[x]:""}},{immediate:!0});const f=(A,R)=>{const C=y.label,O=y.value;let x;const k=R[C],I=R[O];return k!=null?x=k:I!=null&&(x=I),(x==null?void 0:x.toLowerCase().indexOf(A==null?void 0:A.toLowerCase()))>=0},g=A=>{const{label:R,value:C,options:O}=e.dataFieldNames;if(O&&Array.isArray(A))if(A.some(x=>O in x)){const x={},k=[];A.forEach(I=>{x[I[O]]||(x[I[O]]=[]),x[I[O]].push({[R]:I[R],[C]:I[C]})});for(const I in x)k.push({[R]:I,[O]:x[I]});return k}else return A;else if(!O)return A},m=t.ref(!1),h=async()=>{var A,R;if(e.dataType==="request"){m.value=!0;try{const C=await r();if(i.value=g(((R=(A=C==null?void 0:C.data)==null?void 0:A.data)==null?void 0:R.rows)||[]),e.selectFirstOption){let O=t.unref(i)[0];if(y.options){const x=O[y.options];x&&x.length&&(O=x[0])}s.value=O[y.value]}}catch(C){console.error(C)}finally{m.value=!1}}},S=t.computed(()=>{let A=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const R=y.label,C=y.value;if(e.mode==="multiple")A=t.unref(i).filter(O=>t.unref(s).includes(O[C])).map(O=>O[R]);else{const O=t.unref(i).find(x=>t.unref(s)===x[C]);O&&(A=O[R])}}return A}),D=t.ref([]),b=t.computed(()=>{const A={};if(e.mode!=="multiple"){const R=t.unref(D).find(C=>C.value===t.unref(s));R&&(A.itemCodes=R.item_codes)}return A}),v=t.computed(()=>{const{value:A,label:R}=y,C=t.unref(i).find(O=>O[A]===t.unref(l));return C?{label:C[R],value:C[A]}:{}});c(e.id,{type:e.type,value:S,...t.unref(b),recordData:t.unref(v)});const w=De(e)("selectChange",()=>{const A=e.id,R=d(A);c(A,{...R,...t.unref(b),RECORD:S,recordData:t.unref(v)})}),T=(A=[])=>{if(i.value=g(A),e.selectFirstOption){let R=t.unref(i)[0];if(y.options){const C=R[y.options];C&&C.length&&(R=C[0])}s.value=R[y.value]}c(e.id,{type:e.type,value:S,...t.unref(b),recordData:t.unref(v)})},E=Ze(e),_=async()=>{var A;try{m.value=!0;const R=await E(),{data:C}=(R==null?void 0:R.data)||{},O=y.label,x=y.value;if(C){const k=((A=R==null?void 0:R.data)==null?void 0:A.data)??[];D.value=k;const I=k.map(U=>({[O]:U.label,[x]:U.value})),{id:P}=e,q=d(P);c(P,{...q,...t.unref(b)}),T(I)}else T([])}catch(R){console.error(R)}finally{m.value=!1}},N=()=>{switch(e.dataType){case"indicator":{_();break}case"request":h();break}};Le(e,{selectChange:w,refreshData:N});const{setRequest:B}=t.inject(Me,{setRequest:({id:A,sortNum:R,requestFn:C})=>{}});return typeof B=="function"&&B({id:e.id,requestFn:N,sortNum:e.requestSort}),o({refreshData:N}),{style:n,getPopupContainer:a,myValue:s,selectChange:w,options:i,filterOption:f,loading:m,resultValue:l}}}),d1="",f1="";function Eu(e,o,n,a,r,i){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const jl=pe(me(Bu,[["render",Eu],["__scopeId","data-v-3639c038"]])),Wl=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:yl,EcanBorder:kl,EcanButton:Xi,EcanCheckbox:tl,EcanCirculate:Rl,EcanComboGraph:Sl,EcanCustomGraph:bl,EcanDataSelect:jl,EcanDatePicker:Ui,EcanIframe:Nl,EcanImage:Ll,EcanInput:Hi,EcanLine:gl,EcanList:Mi,EcanMap:Vl,EcanModal:kt,EcanPageConfig:Ei,EcanPie:ul,EcanProportion:qi,EcanProviderConfig:Di,EcanRadar:wl,EcanRadio:ll,EcanRangePicker:Qi,EcanScatter:pl,EcanScrollText:Li,EcanSelect:ol,EcanTable:Pl,EcanTabs:Bl,EcanText:_i,EcanTimeDisplay:Fi,EcanTreeSelect:rl,barComponentProps:xa,barEvents:ml,barProps:ya,borderComponentProps:Ba,borderEvents:Al,borderProps:Ta,buttonComponentProps:ea,buttonEvents:Ji,buttonProps:Xo,checkboxComponentProps:na,checkboxEvents:el,checkboxProps:ta,circulateComponentProps:Ia,circulateEvents:El,circulateProps:Ra,comboGraphComponentProps:wa,comboGraphEvents:vl,comboGraphProps:Ca,customGraphComponentProps:Sa,customGraphProps:va,dataSelectComponentProps:ja,dataSelectEvents:Hl,dataSelectProps:Ha,datePickerComponentProps:Ko,datePickerEvents:ji,datePickerProps:$o,iframeComponentProps:Fa,iframeProps:Na,imageComponentProps:_a,imageEvents:Il,imageProps:Oa,inputComponentProps:Uo,inputEvents:Vi,inputProps:Go,lineComponentProps:ma,lineEvents:hl,lineProps:ga,listComponentProps:Ho,listEvents:zi,listProps:Vo,mapComponentProps:Va,mapEvents:ql,mapProps:qa,modalComponentProps:ua,modalEvents:cl,modalProps:fa,pageConfig:Pn,pageConfigComponentProps:qn,pieComponentProps:da,pieEvents:sl,pieProps:ca,proportionComponentProps:Wo,proportionEvents:Pi,proportionProps:jo,providerConfig:Oo,providerConfigComponentProps:_o,radarComponentProps:ka,radarEvents:Cl,radarProps:Aa,radioComponentProps:sa,radioEvents:il,radioProps:la,rangePickerComponentProps:Qo,rangePickerEvents:$i,rangePickerProps:Yo,scatterComponentProps:ba,scatterEvents:xl,scatterProps:pa,selectComponentProps:aa,selectEvents:nl,selectProps:oa,tableComponentProps:Ma,tableEvents:Fl,tableProps:za,tabsComponentProps:Da,tabsEvents:Tl,tabsProps:Ea,textComponentProps:No,textEvents:Ri,textProps:Lo,timeDisplayComponentProps:qo,timeDisplayEvents:Ni,timeDisplayProps:Po,treeSelectComponentProps:ia,treeSelectEvents:al,treeSelectProps:ra},Symbol.toStringTag,{value:"Module"})),Du={install:e=>{Object.keys(Wl).forEach(o=>{const n=Wl[o];n.install&&e.use(n)})}};G.EcanBar=yl,G.EcanBorder=kl,G.EcanButton=Xi,G.EcanCheckbox=tl,G.EcanCirculate=Rl,G.EcanComboGraph=Sl,G.EcanCustomGraph=bl,G.EcanDataSelect=jl,G.EcanDatePicker=Ui,G.EcanIframe=Nl,G.EcanImage=Ll,G.EcanInput=Hi,G.EcanLine=gl,G.EcanList=Mi,G.EcanMap=Vl,G.EcanModal=kt,G.EcanPageConfig=Ei,G.EcanPie=ul,G.EcanProportion=qi,G.EcanProviderConfig=Di,G.EcanRadar=wl,G.EcanRadio=ll,G.EcanRangePicker=Qi,G.EcanScatter=pl,G.EcanScrollText=Li,G.EcanSelect=ol,G.EcanTable=Pl,G.EcanTabs=Bl,G.EcanText=_i,G.EcanTimeDisplay=Fi,G.EcanTreeSelect=rl,G.barComponentProps=xa,G.barEvents=ml,G.barProps=ya,G.borderComponentProps=Ba,G.borderEvents=Al,G.borderProps=Ta,G.buttonComponentProps=ea,G.buttonEvents=Ji,G.buttonProps=Xo,G.checkboxComponentProps=na,G.checkboxEvents=el,G.checkboxProps=ta,G.circulateComponentProps=Ia,G.circulateEvents=El,G.circulateProps=Ra,G.comboGraphComponentProps=wa,G.comboGraphEvents=vl,G.comboGraphProps=Ca,G.compatibleMobileList=fl,G.customGraphComponentProps=Sa,G.customGraphProps=va,G.dataSelectComponentProps=ja,G.dataSelectEvents=Hl,G.dataSelectProps=Ha,G.datePickerComponentProps=Ko,G.datePickerEvents=ji,G.datePickerProps=$o,G.default=Du,G.handleScrollCombinations=dl,G.iframeComponentProps=Fa,G.iframeProps=Na,G.imageComponentProps=_a,G.imageEvents=Il,G.imageProps=Oa,G.inputComponentProps=Uo,G.inputEvents=Vi,G.inputProps=Go,G.lineComponentProps=ma,G.lineEvents=hl,G.lineProps=ga,G.listComponentProps=Ho,G.listEvents=zi,G.listProps=Vo,G.mapComponentProps=Va,G.mapEvents=ql,G.mapProps=qa,G.modalComponentProps=ua,G.modalEvents=cl,G.modalProps=fa,G.moveToComponentList=ha,G.pageConfig=Pn,G.pageConfigComponentProps=qn,G.pieComponentProps=da,G.pieEvents=sl,G.pieProps=ca,G.proportionComponentProps=Wo,G.proportionEvents=Pi,G.proportionProps=jo,G.providerConfig=Oo,G.providerConfigComponentProps=_o,G.radarComponentProps=ka,G.radarEvents=Cl,G.radarProps=Aa,G.radioComponentProps=sa,G.radioEvents=il,G.radioProps=la,G.rangePickerComponentProps=Qo,G.rangePickerEvents=$i,G.rangePickerProps=Yo,G.scatterComponentProps=ba,G.scatterEvents=xl,G.scatterProps=pa,G.selectComponentProps=aa,G.selectEvents=nl,G.selectProps=oa,G.tableComponentProps=Ma,G.tableEvents=Fl,G.tableProps=za,G.tabsComponentProps=Da,G.tabsEvents=Tl,G.tabsProps=Ea,G.textComponentProps=No,G.textEvents=Ri,G.textProps=Lo,G.timeDisplayComponentProps=qo,G.timeDisplayEvents=Ni,G.timeDisplayProps=Po,G.treeSelectComponentProps=ia,G.treeSelectEvents=al,G.treeSelectProps=ra,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
121
121
|
//# sourceMappingURL=index.umd.js.map
|