@ecan-bi/datav 1.3.57 → 1.3.58

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.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- /*! @ecan-bi/datav@1.3.57 */
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,tt,Qa,me,$u,Ku,_e,ve,rs,ls,Yu,Zu,Qu,Ja,Ju,Xu,eh,th,Lt,bt,Be,nh,ss,oh,ah,en,cs){var ns,os,as,is;"use strict";function ds(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 fs=ds(ss),us=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function hs(e,o){function n(i){return(...r)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[i].apply(e.value,r)}}function a(){const i=Object.create(null);return us.forEach(r=>{i[r]=n(r)}),i}return a()}function gs(e,o,n){let a=null;t.watch([n,e,o],([i,r,s],l,d)=>{i&&r&&s&&(a=tt.throttle(()=>{r.resize()},100),Qa.addListener(i,a)),d(()=>{a&&i&&Qa.removeListener(i,a)})})}const ms={autoresize:Boolean},ys="ecLoadingOptions";function xs(e,o,n){const a=t.inject(ys,{}),i=t.computed(()=>({...t.unref(a),...n==null?void 0:n.value}));t.watchEffect(()=>{const r=e.value;r&&(o.value?r.showLoading(i.value):r.hideLoading())})}const ps={loading:Boolean,loadingOptions:Object},ih="",bs=/^on[^a-z]/,vs=e=>bs.test(e);function Ss(e){const o={};for(const n in e)vs(n)||(o[n]=e[n]);return o}const Cs="x-vue-echarts",ws="ecTheme",As="ecInitOptions",ks="ecUpdateOptions",wt=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...ms,...ps},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),i=t.shallowRef(),r=t.shallowRef(),s=t.inject(ws,null),l=t.inject(As,null),d=t.inject(ks,null),{autoresize:c,manualUpdate:u,loading:y,loadingOptions:f}=t.toRefs(e),g=t.computed(()=>r.value||e.option||Object.create(null)),m=t.computed(()=>e.theme||t.unref(s)||{}),h=t.computed(()=>e.initOptions||t.unref(l)||{}),C=t.computed(()=>e.updateOptions||t.unref(d)||{}),v=t.computed(()=>Ss(o));function x(L){if(i.value||!a.value)return;const A=i.value=tt.init(a.value,m.value,h.value);e.group&&(A.group=e.group);let O=n;O||(O={},Object.keys(o).filter(N=>N.indexOf("on")===0&&N.length>2).forEach(N=>{const D=N.charAt(2).toLowerCase()+N.slice(3);O[D]=o[N]})),Object.keys(O).forEach(N=>{const D=O[N];D&&(N.indexOf("zr:")===0?A.getZr().on(N.slice(3).toLowerCase(),D):A.on(N.toLowerCase(),D))});function w(){if(A&&!A.isDisposed())try{A.resize()}catch(N){if(N.message==="Cannot read property 'get' of undefined")return;throw N}}function I(){A.setOption(L||g.value,C.value)}c.value?t.nextTick(()=>{w(),I()}):I()}function p(L,A){e.manualUpdate&&(r.value=L),i.value?i.value.setOption(L,A||{}):x(L)}function b(){i.value&&(i.value.dispose(),i.value=void 0)}let k=null;t.watch(u,L=>{typeof k=="function"&&(k(),k=null),L||(k=t.watch(()=>e.option,A=>{A&&(i.value?i.value.setOption(A,C.value):x())},{deep:!0}))},{immediate:!0}),t.watch([m,h],()=>{b(),x()},{deep:!0}),t.watchEffect(()=>{e.group&&i.value&&(i.value.group=e.group)});const T=hs(i,x);return xs(i,y,f),gs(i,c,a),t.onMounted(()=>{e.option&&x()}),t.onUnmounted(b),{chart:i,root:a,setOption:p,nonEventAttrs:v,...T}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(Cs,e)}});function lt(e,o){Ts(e)&&(e="100%");var n=Bs(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 Ts(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Bs(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Es(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function hn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Dn(e){return e.length===1?"0"+e:String(e)}function Ds(e,o,n){return{r:lt(e,255)*255,g:lt(o,255)*255,b:lt(n,255)*255}}function In(e,o,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(o-e)*(6*n):n<1/2?o:n<2/3?e+(o-e)*(2/3-n)*6:e}function Is(e,o,n){var a,i,r;if(e=lt(e,360),o=lt(o,100),n=lt(n,100),o===0)i=n,r=n,a=n;else{var s=n<.5?n*(1+o):n+o-n*o,l=2*n-s;a=In(l,s,e+1/3),i=In(l,s,e),r=In(l,s,e-1/3)}return{r:a*255,g:i*255,b:r*255}}function Rs(e,o,n){e=lt(e,255),o=lt(o,255),n=lt(n,255);var a=Math.max(e,o,n),i=Math.min(e,o,n),r=0,s=a,l=a-i,d=a===0?0:l/a;if(a===i)r=0;else{switch(a){case e:r=(o-n)/l+(o<n?6:0);break;case o:r=(n-e)/l+2;break;case n:r=(e-o)/l+4;break}r/=6}return{h:r,s:d,v:s}}function Ls(e,o,n){e=lt(e,360)*6,o=lt(o,100),n=lt(n,100);var a=Math.floor(e),i=e-a,r=n*(1-o),s=n*(1-i*o),l=n*(1-(1-i)*o),d=a%6,c=[n,s,r,r,l,n][d],u=[l,n,n,s,r,r][d],y=[r,r,l,n,n,s][d];return{r:c*255,g:u*255,b:y*255}}function _s(e,o,n,a){var i=[Dn(Math.round(e).toString(16)),Dn(Math.round(o).toString(16)),Dn(Math.round(n).toString(16))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Xa(e){return nt(e)/255}function nt(e){return parseInt(e,16)}var ei={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function tn(e){var o={r:0,g:0,b:0},n=1,a=null,i=null,r=null,s=!1,l=!1;return typeof e=="string"&&(e=Fs(e)),typeof e=="object"&&(vt(e.r)&&vt(e.g)&&vt(e.b)?(o=Ds(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):vt(e.h)&&vt(e.s)&&vt(e.v)?(a=hn(e.s),i=hn(e.v),o=Ls(e.h,a,i),s=!0,l="hsv"):vt(e.h)&&vt(e.s)&&vt(e.l)&&(a=hn(e.s),r=hn(e.l),o=Is(e.h,a,r),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Es(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 Ns="[-\\+]?\\d+%?",Os="[-\\+]?\\d*\\.\\d+%?",At="(?:".concat(Os,")|(?:").concat(Ns,")"),Rn="[\\s|\\(]+(".concat(At,")[,|\\s]+(").concat(At,")[,|\\s]+(").concat(At,")\\s*\\)?"),Ln="[\\s|\\(]+(".concat(At,")[,|\\s]+(").concat(At,")[,|\\s]+(").concat(At,")[,|\\s]+(").concat(At,")\\s*\\)?"),ht={CSS_UNIT:new RegExp(At),rgb:new RegExp("rgb"+Rn),rgba:new RegExp("rgba"+Ln),hsl:new RegExp("hsl"+Rn),hsla:new RegExp("hsla"+Ln),hsv:new RegExp("hsv"+Rn),hsva:new RegExp("hsva"+Ln),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 Fs(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(ei[e])e=ei[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ht.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ht.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ht.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ht.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ht.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ht.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ht.hex8.exec(e),n?{r:nt(n[1]),g:nt(n[2]),b:nt(n[3]),a:Xa(n[4]),format:o?"name":"hex8"}:(n=ht.hex6.exec(e),n?{r:nt(n[1]),g:nt(n[2]),b:nt(n[3]),format:o?"name":"hex"}:(n=ht.hex4.exec(e),n?{r:nt(n[1]+n[1]),g:nt(n[2]+n[2]),b:nt(n[3]+n[3]),a:Xa(n[4]+n[4]),format:o?"name":"hex8"}:(n=ht.hex3.exec(e),n?{r:nt(n[1]+n[1]),g:nt(n[2]+n[2]),b:nt(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function vt(e){return!!ht.CSS_UNIT.exec(String(e))}var gn=2,ti=.16,Ms=.05,zs=.05,Ps=.15,ni=5,oi=4,qs=[{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 ai(e){var o=e.r,n=e.g,a=e.b,i=Rs(o,n,a);return{h:i.h*360,s:i.s,v:i.v}}function mn(e){var o=e.r,n=e.g,a=e.b;return"#".concat(_s(o,n,a,!1))}function Vs(e,o,n){var a=n/100,i={r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b};return i}function ii(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-gn*o:Math.round(e.h)+gn*o:a=n?Math.round(e.h)+gn*o:Math.round(e.h)-gn*o,a<0?a+=360:a>=360&&(a-=360),a}function ri(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-ti*o:o===oi?a=e.s+ti:a=e.s+Ms*o,a>1&&(a=1),n&&o===ni&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function li(e,o,n){var a;return n?a=e.v+zs*o:a=e.v-Ps*o,a>1&&(a=1),Number(a.toFixed(2))}function _n(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=tn(e),i=ni;i>0;i-=1){var r=ai(a),s=mn(tn({h:ii(r,i,!0),s:ri(r,i,!0),v:li(r,i,!0)}));n.push(s)}n.push(mn(a));for(var l=1;l<=oi;l+=1){var d=ai(a),c=mn(tn({h:ii(d,l),s:ri(d,l),v:li(d,l)}));n.push(c)}return o.theme==="dark"?qs.map(function(u){var y=u.index,f=u.opacity,g=mn(Vs(tn(o.backgroundColor||"#141414"),tn(n[y]),f*100));return g}):n}var Nn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},On={},Fn={};Object.keys(Nn).forEach(function(e){On[e]=_n(Nn[e]),On[e].primary=On[e][5],Fn[e]=_n(Nn[e],{theme:"dark",backgroundColor:"#141414"}),Fn[e].primary=Fn[e][5]});var si=[],nn=[],Hs="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function js(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Ws(e,o){if(o=o||{},e===void 0)throw new Error(Hs);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),i=si.indexOf(a);i===-1&&(i=si.push(a)-1,nn[i]={});var r;return nn[i]!==void 0&&nn[i][n]!==void 0?r=nn[i][n]:(r=nn[i][n]=js(),n==="prepend"?a.insertBefore(r,a.childNodes[0]):a.appendChild(r)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),r.styleSheet?r.styleSheet.cssText+=e:r.textContent+=e,r}function ci(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Gs(e,i,n[i])})}return e}function Gs(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function Us(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function $s(e,o){Us(e,"[@ant-design/icons-vue] ".concat(o))}function di(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Mn(e,o,n){return n?t.h(e.tag,ci({key:o},n,e.attrs),(e.children||[]).map(function(a,i){return Mn(a,"".concat(o,"-").concat(e.tag,"-").concat(i))})):t.h(e.tag,ci({key:o},e.attrs),(e.children||[]).map(function(a,i){return Mn(a,"".concat(o,"-").concat(e.tag,"-").concat(i))}))}function fi(e){return _n(e)[0]}function ui(e){return e?Array.isArray(e)?e:[e]:[]}var Ks=`
1
+ /*! @ecan-bi/datav@1.3.58 */
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,nt,Qa,ge,$u,Yu,Ne,Se,rs,ls,Ku,Zu,Qu,Ja,Ju,Xu,eh,th,Lt,bt,Ee,nh,ss,oh,ah,en,cs){var ns,os,as,is;"use strict";function ds(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 fs=ds(ss),us=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function hs(e,o){function n(i){return(...r)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[i].apply(e.value,r)}}function a(){const i=Object.create(null);return us.forEach(r=>{i[r]=n(r)}),i}return a()}function gs(e,o,n){let a=null;t.watch([n,e,o],([i,r,s],l,d)=>{i&&r&&s&&(a=nt.throttle(()=>{r.resize()},100),Qa.addListener(i,a)),d(()=>{a&&i&&Qa.removeListener(i,a)})})}const ms={autoresize:Boolean},ys="ecLoadingOptions";function xs(e,o,n){const a=t.inject(ys,{}),i=t.computed(()=>({...t.unref(a),...n==null?void 0:n.value}));t.watchEffect(()=>{const r=e.value;r&&(o.value?r.showLoading(i.value):r.hideLoading())})}const ps={loading:Boolean,loadingOptions:Object},ih="",bs=/^on[^a-z]/,vs=e=>bs.test(e);function Ss(e){const o={};for(const n in e)vs(n)||(o[n]=e[n]);return o}const Cs="x-vue-echarts",ws="ecTheme",As="ecInitOptions",ks="ecUpdateOptions",wt=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...ms,...ps},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),i=t.shallowRef(),r=t.shallowRef(),s=t.inject(ws,null),l=t.inject(As,null),d=t.inject(ks,null),{autoresize:c,manualUpdate:u,loading:x,loadingOptions:f}=t.toRefs(e),m=t.computed(()=>r.value||e.option||Object.create(null)),y=t.computed(()=>e.theme||t.unref(s)||{}),g=t.computed(()=>e.initOptions||t.unref(l)||{}),S=t.computed(()=>e.updateOptions||t.unref(d)||{}),L=t.computed(()=>Ss(o));function b(_){if(i.value||!a.value)return;const B=i.value=nt.init(a.value,y.value,g.value);e.group&&(B.group=e.group);let N=n;N||(N={},Object.keys(o).filter(D=>D.indexOf("on")===0&&D.length>2).forEach(D=>{const E=D.charAt(2).toLowerCase()+D.slice(3);N[E]=o[D]})),Object.keys(N).forEach(D=>{const E=N[D];E&&(D.indexOf("zr:")===0?B.getZr().on(D.slice(3).toLowerCase(),E):B.on(D.toLowerCase(),E))});function w(){if(B&&!B.isDisposed())try{B.resize()}catch(D){if(D.message==="Cannot read property 'get' of undefined")return;throw D}}function k(){B.setOption(_||m.value,S.value)}c.value?t.nextTick(()=>{w(),k()}):k()}function h(_,B){e.manualUpdate&&(r.value=_),i.value?i.value.setOption(_,B||{}):b(_)}function p(){i.value&&(i.value.dispose(),i.value=void 0)}let C=null;t.watch(u,_=>{typeof C=="function"&&(C(),C=null),_||(C=t.watch(()=>e.option,B=>{B&&(i.value?i.value.setOption(B,S.value):b())},{deep:!0}))},{immediate:!0}),t.watch([y,g],()=>{p(),b()},{deep:!0}),t.watchEffect(()=>{e.group&&i.value&&(i.value.group=e.group)});const A=hs(i,b);return xs(i,x,f),gs(i,c,a),t.onMounted(()=>{e.option&&b()}),t.onUnmounted(p),{chart:i,root:a,setOption:h,nonEventAttrs:L,...A}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(Cs,e)}});function st(e,o){Ts(e)&&(e="100%");var n=Bs(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 Ts(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Bs(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Es(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function hn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Dn(e){return e.length===1?"0"+e:String(e)}function Ds(e,o,n){return{r:st(e,255)*255,g:st(o,255)*255,b:st(n,255)*255}}function In(e,o,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(o-e)*(6*n):n<1/2?o:n<2/3?e+(o-e)*(2/3-n)*6:e}function Is(e,o,n){var a,i,r;if(e=st(e,360),o=st(o,100),n=st(n,100),o===0)i=n,r=n,a=n;else{var s=n<.5?n*(1+o):n+o-n*o,l=2*n-s;a=In(l,s,e+1/3),i=In(l,s,e),r=In(l,s,e-1/3)}return{r:a*255,g:i*255,b:r*255}}function Rs(e,o,n){e=st(e,255),o=st(o,255),n=st(n,255);var a=Math.max(e,o,n),i=Math.min(e,o,n),r=0,s=a,l=a-i,d=a===0?0:l/a;if(a===i)r=0;else{switch(a){case e:r=(o-n)/l+(o<n?6:0);break;case o:r=(n-e)/l+2;break;case n:r=(e-o)/l+4;break}r/=6}return{h:r,s:d,v:s}}function Ls(e,o,n){e=st(e,360)*6,o=st(o,100),n=st(n,100);var a=Math.floor(e),i=e-a,r=n*(1-o),s=n*(1-i*o),l=n*(1-(1-i)*o),d=a%6,c=[n,s,r,r,l,n][d],u=[l,n,n,s,r,r][d],x=[r,r,l,n,n,s][d];return{r:c*255,g:u*255,b:x*255}}function _s(e,o,n,a){var i=[Dn(Math.round(e).toString(16)),Dn(Math.round(o).toString(16)),Dn(Math.round(n).toString(16))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Xa(e){return ot(e)/255}function ot(e){return parseInt(e,16)}var ei={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function tn(e){var o={r:0,g:0,b:0},n=1,a=null,i=null,r=null,s=!1,l=!1;return typeof e=="string"&&(e=Fs(e)),typeof e=="object"&&(vt(e.r)&&vt(e.g)&&vt(e.b)?(o=Ds(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):vt(e.h)&&vt(e.s)&&vt(e.v)?(a=hn(e.s),i=hn(e.v),o=Ls(e.h,a,i),s=!0,l="hsv"):vt(e.h)&&vt(e.s)&&vt(e.l)&&(a=hn(e.s),r=hn(e.l),o=Is(e.h,a,r),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Es(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 Ns="[-\\+]?\\d+%?",Os="[-\\+]?\\d*\\.\\d+%?",At="(?:".concat(Os,")|(?:").concat(Ns,")"),Rn="[\\s|\\(]+(".concat(At,")[,|\\s]+(").concat(At,")[,|\\s]+(").concat(At,")\\s*\\)?"),Ln="[\\s|\\(]+(".concat(At,")[,|\\s]+(").concat(At,")[,|\\s]+(").concat(At,")[,|\\s]+(").concat(At,")\\s*\\)?"),ht={CSS_UNIT:new RegExp(At),rgb:new RegExp("rgb"+Rn),rgba:new RegExp("rgba"+Ln),hsl:new RegExp("hsl"+Rn),hsla:new RegExp("hsla"+Ln),hsv:new RegExp("hsv"+Rn),hsva:new RegExp("hsva"+Ln),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 Fs(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(ei[e])e=ei[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ht.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ht.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ht.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ht.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ht.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ht.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ht.hex8.exec(e),n?{r:ot(n[1]),g:ot(n[2]),b:ot(n[3]),a:Xa(n[4]),format:o?"name":"hex8"}:(n=ht.hex6.exec(e),n?{r:ot(n[1]),g:ot(n[2]),b:ot(n[3]),format:o?"name":"hex"}:(n=ht.hex4.exec(e),n?{r:ot(n[1]+n[1]),g:ot(n[2]+n[2]),b:ot(n[3]+n[3]),a:Xa(n[4]+n[4]),format:o?"name":"hex8"}:(n=ht.hex3.exec(e),n?{r:ot(n[1]+n[1]),g:ot(n[2]+n[2]),b:ot(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function vt(e){return!!ht.CSS_UNIT.exec(String(e))}var gn=2,ti=.16,Ms=.05,zs=.05,Ps=.15,ni=5,oi=4,qs=[{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 ai(e){var o=e.r,n=e.g,a=e.b,i=Rs(o,n,a);return{h:i.h*360,s:i.s,v:i.v}}function mn(e){var o=e.r,n=e.g,a=e.b;return"#".concat(_s(o,n,a,!1))}function Vs(e,o,n){var a=n/100,i={r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b};return i}function ii(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-gn*o:Math.round(e.h)+gn*o:a=n?Math.round(e.h)+gn*o:Math.round(e.h)-gn*o,a<0?a+=360:a>=360&&(a-=360),a}function ri(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-ti*o:o===oi?a=e.s+ti:a=e.s+Ms*o,a>1&&(a=1),n&&o===ni&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function li(e,o,n){var a;return n?a=e.v+zs*o:a=e.v-Ps*o,a>1&&(a=1),Number(a.toFixed(2))}function _n(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=tn(e),i=ni;i>0;i-=1){var r=ai(a),s=mn(tn({h:ii(r,i,!0),s:ri(r,i,!0),v:li(r,i,!0)}));n.push(s)}n.push(mn(a));for(var l=1;l<=oi;l+=1){var d=ai(a),c=mn(tn({h:ii(d,l),s:ri(d,l),v:li(d,l)}));n.push(c)}return o.theme==="dark"?qs.map(function(u){var x=u.index,f=u.opacity,m=mn(Vs(tn(o.backgroundColor||"#141414"),tn(n[x]),f*100));return m}):n}var Nn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},On={},Fn={};Object.keys(Nn).forEach(function(e){On[e]=_n(Nn[e]),On[e].primary=On[e][5],Fn[e]=_n(Nn[e],{theme:"dark",backgroundColor:"#141414"}),Fn[e].primary=Fn[e][5]});var si=[],nn=[],Hs="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function js(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Ws(e,o){if(o=o||{},e===void 0)throw new Error(Hs);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),i=si.indexOf(a);i===-1&&(i=si.push(a)-1,nn[i]={});var r;return nn[i]!==void 0&&nn[i][n]!==void 0?r=nn[i][n]:(r=nn[i][n]=js(),n==="prepend"?a.insertBefore(r,a.childNodes[0]):a.appendChild(r)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),r.styleSheet?r.styleSheet.cssText+=e:r.textContent+=e,r}function ci(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Gs(e,i,n[i])})}return e}function Gs(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function Us(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function $s(e,o){Us(e,"[@ant-design/icons-vue] ".concat(o))}function di(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Mn(e,o,n){return n?t.h(e.tag,ci({key:o},n,e.attrs),(e.children||[]).map(function(a,i){return Mn(a,"".concat(o,"-").concat(e.tag,"-").concat(i))})):t.h(e.tag,ci({key:o},e.attrs),(e.children||[]).map(function(a,i){return Mn(a,"".concat(o,"-").concat(e.tag,"-").concat(i))}))}function fi(e){return _n(e)[0]}function ui(e){return e?Array.isArray(e)?e:[e]:[]}var Ys=`
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
- `,hi=!1,Ys=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ks;t.nextTick(function(){hi||(typeof window<"u"&&window.document&&window.document.documentElement&&Ws(o,{prepend:!0}),hi=!0)})},Zs=["icon","primaryColor","secondaryColor"];function Qs(e,o){if(e==null)return{};var n=Js(e,o),a,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)a=r[i],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function Js(e,o){if(e==null)return{};var n={},a=Object.keys(e),i,r;for(r=0;r<a.length;r++)i=a[r],!(o.indexOf(i)>=0)&&(n[i]=e[i]);return n}function yn(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Xs(e,i,n[i])})}return e}function Xs(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var on={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function e0(e){var o=e.primaryColor,n=e.secondaryColor;on.primaryColor=o,on.secondaryColor=n||fi(o),on.calculated=!!n}function t0(){return yn({},on)}var zt=function(o,n){var a=yn({},o,n.attrs),i=a.icon,r=a.primaryColor,s=a.secondaryColor,l=Qs(a,Zs),d=on;if(r&&(d={primaryColor:r,secondaryColor:s||fi(r)}),Ys(),$s(di(i),"icon should be icon definiton, but got ".concat(i)),!di(i))return null;var c=i;return c&&typeof c.icon=="function"&&(c=yn({},c,{icon:c.icon(d.primaryColor,d.secondaryColor)})),Mn(c.icon,"svg-".concat(c.name),yn({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};zt.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},zt.inheritAttrs=!1,zt.displayName="IconBase",zt.getTwoToneColors=t0,zt.setTwoToneColors=e0;const zn=zt;function n0(e,o){return r0(e)||i0(e,o)||a0(e,o)||o0()}function o0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
56
+ `,hi=!1,Ks=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ys;t.nextTick(function(){hi||(typeof window<"u"&&window.document&&window.document.documentElement&&Ws(o,{prepend:!0}),hi=!0)})},Zs=["icon","primaryColor","secondaryColor"];function Qs(e,o){if(e==null)return{};var n=Js(e,o),a,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)a=r[i],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function Js(e,o){if(e==null)return{};var n={},a=Object.keys(e),i,r;for(r=0;r<a.length;r++)i=a[r],!(o.indexOf(i)>=0)&&(n[i]=e[i]);return n}function yn(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Xs(e,i,n[i])})}return e}function Xs(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var on={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function e0(e){var o=e.primaryColor,n=e.secondaryColor;on.primaryColor=o,on.secondaryColor=n||fi(o),on.calculated=!!n}function t0(){return yn({},on)}var zt=function(o,n){var a=yn({},o,n.attrs),i=a.icon,r=a.primaryColor,s=a.secondaryColor,l=Qs(a,Zs),d=on;if(r&&(d={primaryColor:r,secondaryColor:s||fi(r)}),Ks(),$s(di(i),"icon should be icon definiton, but got ".concat(i)),!di(i))return null;var c=i;return c&&typeof c.icon=="function"&&(c=yn({},c,{icon:c.icon(d.primaryColor,d.secondaryColor)})),Mn(c.icon,"svg-".concat(c.name),yn({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};zt.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},zt.inheritAttrs=!1,zt.displayName="IconBase",zt.getTwoToneColors=t0,zt.setTwoToneColors=e0;const zn=zt;function n0(e,o){return r0(e)||i0(e,o)||a0(e,o)||o0()}function o0(){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 a0(e,o){if(e){if(typeof e=="string")return gi(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 gi(e,o)}}function gi(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 i0(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],i=!0,r=!1,s,l;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));i=!0);}catch(d){r=!0,l=d}finally{try{!i&&n.return!=null&&n.return()}finally{if(r)throw l}}return a}}function r0(e){if(Array.isArray(e))return e}function mi(e){var o=ui(e),n=n0(o,2),a=n[0],i=n[1];return zn.setTwoToneColors({primaryColor:a,secondaryColor:i})}function l0(){var e=zn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var s0=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function c0(e,o){return h0(e)||u0(e,o)||f0(e,o)||d0()}function d0(){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 f0(e,o){if(e){if(typeof e=="string")return yi(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yi(e,o)}}function yi(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function u0(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],i=!0,r=!1,s,l;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));i=!0);}catch(d){r=!0,l=d}finally{try{!i&&n.return!=null&&n.return()}finally{if(r)throw l}}return a}}function h0(e){if(Array.isArray(e))return e}function xi(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Pn(e,i,n[i])})}return e}function Pn(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function g0(e,o){if(e==null)return{};var n=m0(e,o),a,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)a=r[i],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function m0(e,o){if(e==null)return{};var n={},a=Object.keys(e),i,r;for(r=0;r<a.length;r++)i=a[r],!(o.indexOf(i)>=0)&&(n[i]=e[i]);return n}mi("#1890ff");var Pt=function(o,n){var a,i=xi({},o,n.attrs),r=i.class,s=i.icon,l=i.spin,d=i.rotate,c=i.tabindex,u=i.twoToneColor,y=i.onClick,f=g0(i,s0),g=(a={anticon:!0},Pn(a,"anticon-".concat(s.name),!!s.name),Pn(a,r,r),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",h=c;h===void 0&&y&&(h=-1,f.tabindex=h);var C=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,v=ui(u),x=c0(v,2),p=x[0],b=x[1];return t.createVNode("span",xi({role:"img","aria-label":s.name},f,{onClick:y,class:g}),[t.createVNode(zn,{class:m,icon:s,primaryColor:p,secondaryColor:b,style:C},null)])};Pt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Pt.displayName="AntdIcon",Pt.inheritAttrs=!1,Pt.getTwoToneColor=l0,Pt.setTwoToneColor=mi;const pi=Pt;var y0={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 x0=y0;function bi(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){p0(e,i,n[i])})}return e}function p0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var qn=function(o,n){var a=bi({},o,n.attrs);return t.createVNode(pi,bi({},a,{icon:x0}),null)};qn.displayName="CloseOutlined",qn.inheritAttrs=!1;const b0=qn;var v0={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 S0=v0;function vi(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){C0(e,i,n[i])})}return e}function C0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Vn=function(o,n){var a=vi({},o,n.attrs);return t.createVNode(pi,vi({},a,{icon:S0}),null)};Vn.displayName="LoadingOutlined",Vn.inheritAttrs=!1;const w0=Vn,A0=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:me.Spin},setup(){return{indicator:t.h(w0,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),rh="",Se=(e,o)=>{const n=e.__vccOpts||e;for(const[a,i]of o)n[a]=i;return n},k0={class:"spin-wrapper"};function T0(e,o,n,a,i,r){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",k0,[e.spinning?(t.openBlock(),t.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):t.renderSlot(e.$slots,"default",{key:1})])}const qt=Se(A0,[["render",T0]]),B0=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:me.Skeleton}});function E0(e,o,n,a,i,r){const s=t.resolveComponent("a-skeleton");return t.openBlock(),t.createBlock(s,{active:"",loading:e.loading},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const Vt=Se(B0,[["render",E0]]);(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 D0=Object.defineProperty,Si=Object.getOwnPropertySymbols,I0=Object.prototype.hasOwnProperty,R0=Object.prototype.propertyIsEnumerable,Ci=(e,o,n)=>o in e?D0(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,wi=(e,o)=>{for(var n in o||(o={}))I0.call(o,n)&&Ci(e,n,o[n]);if(Si)for(var n of Si(o))R0.call(o,n)&&Ci(e,n,o[n]);return e},L0=(e,o)=>{const n=e.__vccOpts||e;for(const[a,i]of o)n[a]=i;return n};const _0=t.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(e,{emit:o}){const n=t.ref(0),a=t.ref("100%"),i=t.ref("100%"),r=t.ref(0),s=t.ref(!1),l=t.ref(!1),d=t.ref(0),c=t.ref(0),u=t.ref(0),y=t.ref(0),f=t.ref(!1),g=t.ref(!1),m=t.ref(0),h=t.ref(null),C=t.ref("200px"),v=t.ref(!1),x=t.ref(null),p=t.ref(null),b=async()=>{await k(),r.value++},k=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",i.value="0%",x.value!==null&&p.value!==null&&x.value&&p.value)if(e.vertical&&"clientHeight"in x.value&&"clientHeight"in p.value){y.value=x.value.clientHeight,u.value=p.value.clientHeight;const S=Math.ceil(u.value/y.value);return n.value=isFinite(S)?S:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in x.value&&"clientWidth"in p.value){if(c.value=x.value.clientWidth,d.value=p.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const S=Math.ceil(d.value/c.value);return n.value=isFinite(S)?S:0,n.value}else return a.value="100%",i.value="100%",0;else return a.value="100%",i.value="100%",0},100)};t.watch(c,async()=>{e.clone&&b()}),t.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&b()}),t.watch(()=>e.pause,(S,E)=>{S!==E&&o(S?"onResume":"onPause")});const T=()=>{e.pauseOnHover&&(o("onPause"),f.value=!0)},L=()=>{e.pauseOnHover&&(o("onResume"),f.value=!1)},A=()=>{e.pauseOnClick&&(o("onPause"),g.value=!0)},O=()=>{e.pauseOnClick&&(o("onResume"),g.value=!1)},w=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),I=t.computed(()=>e.pauseOnHover&&(f.value||g.value)||!e.pauseOnHover&&w.value==="paused"?"paused":"running"),N=t.computed(()=>e.pauseOnHover&&f.value||e.pauseOnClick&&g.value||!e.pauseOnHover&&w.value==="paused"?"paused":"running"),D=t.computed(()=>{const S={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${I.value}`,"--pauseOnClick":`${N.value}`,"--pauseAnimation":`${w.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${C.value}`,"--min-width":`${a.value}`,"--min-height":`${i.value}`},E={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(E["--orientation"]="scrollY"),wi(wi({},S),E)}),R=t.computed(()=>!!e.gradient),B=async()=>{e.vertical?(i.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(i.value="auto",e.animateOnOverflowOnly?a.value="auto":a.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),C.value=e.gradientWidth):e.gradientLength&&(C.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await k(),b()),v.value=!0};return t.onMounted(async()=>{B(),h.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(h.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(h.value)}),{ready:v,contentWidth:c,containerWidth:d,contentHeight:y,containerHeight:u,loopCounter:m,loopInterval:h,mouseOverMarquee:f,mouseDownMarquee:g,minWidth:a,minHeight:i,animateOnOverflowPause:l,marqueeContent:x,marqueeOverlayContainer:p,componentKey:r,showGradient:R,cloneAmount:n,ForcesUpdate:b,checkForClone:k,setupMarquee:B,getCurrentStyle:D,hoverStarted:T,hoverEnded:L,mouseDown:A,mouseUp:O}}}),N0={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},O0={class:"marquee",ref:"marqueeContent"},F0={key:1,"aria-hidden":!0,class:"marquee"};function M0(e,o,n,a,i,r){return e.ready?(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:t.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:o[0]||(o[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:o[1]||(o[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:o[2]||(o[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:o[3]||(o[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[t.createElementVNode("div",N0,null,512),e.showGradient?(t.openBlock(),t.createElementBlock("div",{key:0,"aria-hidden":!0,class:t.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",O0,[t.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(t.openBlock(),t.createElementBlock("div",F0,[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 z0=L0(_0,[["render",M0]]);const P0=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:z0},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)}}}),lh="";function q0(e,o,n,a,i,r){const s=t.resolveComponent("Vue3Marquee");return e.isAutoScroll?(t.openBlock(),t.createBlock(s,{key:0,class:"vue-marquee",style:{width:"100%"},duration:e.step,vertical:e.vertical,pauseOnHover:!0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["duration","vertical"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"list-wrap",style:t.normalizeStyle(e.wrapStyle)},[t.renderSlot(e.$slots,"default")],4))}const Hn=Se(P0,[["render",q0]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Ae=(e,o)=>{if(e.install=n=>{for(const a of[e,...Object.values(o??{})])n.component(a.name,a)},o)for(const[n,a]of Object.entries(o))e[n]=a;return e},De={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1},ke=e=>{const o={};if(typeof e=="object"&&e!=null)for(const n in e){const a=e[n];o[n]={type:a==null?void 0:a.constructor,default:a}}return o},jn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},Wn=ke(jn),V0=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex","scale"],Ee=(e,o=[])=>{const n=_e.without(V0,...o);return t.computed(()=>_e.pick(e,n))},Gn="EVENT_BUS",He="GLOBAL_CONFIG",Ie="GLOBAL_MODEL",qe="REQUEST_MODEL",Ai="GLOBAL_TOKEN",an="REFRESH_PAGE",ki="MODAL_MODEL",kt="LOADED_DATA",Ke=18,Ti="ygt",Bi=((ns=window==null?void 0:window.config)==null?void 0:ns.indicatorURL)||"";(os=window==null?void 0:window.config)!=null&&os.uploadPath;const Ei=((as=window==null?void 0:window.config)==null?void 0:as.routerBaseURL)||"./",H0=((is=window==null?void 0:window.config)==null?void 0:is.erdURL)||"",Di=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],Ne=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject(Gn,{onEvent:(i,r)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},Re=e=>{const o=e.events,n=e.id,a=t.inject(Gn,{emitEvent:(r,s,l)=>{}}),{touchEventId:i}=t.inject(He,{touchEventId:t.ref("")});return(r,s=()=>{},l)=>function(){s.call(this,...arguments);const{emitEvent:d}=a;o.forEach(c=>{if(r===c.on)try{i.value=n,l?d(c.target,c.emit,l):d(c.target,c.emit)}catch(u){console.error(u)}})}},Ht=(e,o)=>{let{name:n="name",value:a="value",type:i="type"}=o||{};n=n==null?void 0:n.trim(),a=a==null?void 0:a.trim(),i=i==null?void 0:i.trim();const r=new Map,s=e.length;for(let c=0;c<s;c++){const u=e[c],y=u[n]||"",f=u[a]||"",g=u[i]||"";if(r.has(g)){const m=r.get(g);m.push({name:y,value:f,...u}),r.set(g,m)}else r.set(g,[{name:y,value:f,...u}])}const l=[],d=[];for(const[c,u]of r)if(d.push({name:c,data:u}),u!=null&&u.length)if(l.length)for(const y of u)l.includes(y.name)||l.push(y.name);else l.push(...u.map(y=>y.name));return{dimensions:l,dataset:d}};var xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ii(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function j0(e){if(e.__esModule)return e;var o=e.default;if(typeof o=="function"){var n=function a(){return this instanceof a?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};n.prototype=o.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}),n}var Ri={exports:{}};function W0(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Un={exports:{}};const G0=j0(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Li;function Ce(){return Li||(Li=1,function(e,o){(function(n,a){e.exports=a()})(xe,function(){var n=n||function(a,i){var r;if(typeof window<"u"&&window.crypto&&(r=window.crypto),typeof self<"u"&&self.crypto&&(r=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window<"u"&&window.msCrypto&&(r=window.msCrypto),!r&&typeof xe<"u"&&xe.crypto&&(r=xe.crypto),!r&&typeof W0=="function")try{r=G0}catch{}var s=function(){if(r){if(typeof r.getRandomValues=="function")try{return r.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof r.randomBytes=="function")try{return r.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function x(){}return function(p){var b;return x.prototype=p,b=new x,x.prototype=null,b}}(),d={},c=d.lib={},u=c.Base=function(){return{extend:function(x){var p=l(this);return x&&p.mixIn(x),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var p in x)x.hasOwnProperty(p)&&(this[p]=x[p]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=c.WordArray=u.extend({init:function(x,p){x=this.words=x||[],p!=i?this.sigBytes=p:this.sigBytes=x.length*4},toString:function(x){return(x||g).stringify(this)},concat:function(x){var p=this.words,b=x.words,k=this.sigBytes,T=x.sigBytes;if(this.clamp(),k%4)for(var L=0;L<T;L++){var A=b[L>>>2]>>>24-L%4*8&255;p[k+L>>>2]|=A<<24-(k+L)%4*8}else for(var O=0;O<T;O+=4)p[k+O>>>2]=b[O>>>2];return this.sigBytes+=T,this},clamp:function(){var x=this.words,p=this.sigBytes;x[p>>>2]&=4294967295<<32-p%4*8,x.length=a.ceil(p/4)},clone:function(){var x=u.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var p=[],b=0;b<x;b+=4)p.push(s());return new y.init(p,x)}}),f=d.enc={},g=f.Hex={stringify:function(x){for(var p=x.words,b=x.sigBytes,k=[],T=0;T<b;T++){var L=p[T>>>2]>>>24-T%4*8&255;k.push((L>>>4).toString(16)),k.push((L&15).toString(16))}return k.join("")},parse:function(x){for(var p=x.length,b=[],k=0;k<p;k+=2)b[k>>>3]|=parseInt(x.substr(k,2),16)<<24-k%8*4;return new y.init(b,p/2)}},m=f.Latin1={stringify:function(x){for(var p=x.words,b=x.sigBytes,k=[],T=0;T<b;T++){var L=p[T>>>2]>>>24-T%4*8&255;k.push(String.fromCharCode(L))}return k.join("")},parse:function(x){for(var p=x.length,b=[],k=0;k<p;k++)b[k>>>2]|=(x.charCodeAt(k)&255)<<24-k%4*8;return new y.init(b,p)}},h=f.Utf8={stringify:function(x){try{return decodeURIComponent(escape(m.stringify(x)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(x){return m.parse(unescape(encodeURIComponent(x)))}},C=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=h.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var p,b=this._data,k=b.words,T=b.sigBytes,L=this.blockSize,A=L*4,O=T/A;x?O=a.ceil(O):O=a.max((O|0)-this._minBufferSize,0);var w=O*L,I=a.min(w*4,T);if(w){for(var N=0;N<w;N+=L)this._doProcessBlock(k,N);p=k.splice(0,w),b.sigBytes-=I}return new y.init(p,I)},clone:function(){var x=u.clone.call(this);return x._data=this._data.clone(),x},_minBufferSize:0});c.Hasher=C.extend({cfg:u.extend(),init:function(x){this.cfg=this.cfg.extend(x),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(x){return this._append(x),this._process(),this},finalize:function(x){x&&this._append(x);var p=this._doFinalize();return p},blockSize:16,_createHelper:function(x){return function(p,b){return new x.init(b).finalize(p)}},_createHmacHelper:function(x){return function(p,b){return new v.HMAC.init(x,b).finalize(p)}}});var v=d.algo={};return d}(Math);return n})}(Un)),Un.exports}var $n={exports:{}},_i;function xn(){return _i||(_i=1,function(e,o){(function(n,a){e.exports=a(Ce())})(xe,function(n){return function(a){var i=n,r=i.lib,s=r.Base,l=r.WordArray,d=i.x64={};d.Word=s.extend({init:function(c,u){this.high=c,this.low=u}}),d.WordArray=s.extend({init:function(c,u){c=this.words=c||[],u!=a?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,y=[],f=0;f<u;f++){var 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})}($n)),$n.exports}var Kn={exports:{}},Ni;function U0(){return Ni||(Ni=1,function(e,o){(function(n,a){e.exports=a(Ce())})(xe,function(n){return function(){if(typeof ArrayBuffer=="function"){var a=n,i=a.lib,r=i.WordArray,s=r.init,l=r.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var c=d.byteLength,u=[],y=0;y<c;y++)u[y>>>2]|=d[y]<<24-y%4*8;s.call(this,u,c)}else s.apply(this,arguments)};l.prototype=r}}(),n.lib.WordArray})}(Kn)),Kn.exports}var Yn={exports:{}},Oi;function $0(){return Oi||(Oi=1,function(e,o){(function(n,a){e.exports=a(Ce())})(xe,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(d){for(var c=d.words,u=d.sigBytes,y=[],f=0;f<u;f+=2){var 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 r.create(u,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,u=d.sigBytes,y=[],f=0;f<u;f+=2){var 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 r.create(u,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(Yn)),Yn.exports}var Zn={exports:{}},Fi;function jt(){return Fi||(Fi=1,function(e,o){(function(n,a){e.exports=a(Ce())})(xe,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Base64={stringify:function(d){var c=d.words,u=d.sigBytes,y=this._map;d.clamp();for(var f=[],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,C=c[g+2>>>2]>>>24-(g+2)%4*8&255,v=m<<16|h<<8|C,x=0;x<4&&g+x*.75<u;x++)f.push(y.charAt(v>>>6*(3-x)&63));var p=y.charAt(64);if(p)for(;f.length%4;)f.push(p);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,C=m|h;y[f>>>2]|=C<<24-f%4*8,f++}return r.create(y,f)}}(),n.enc.Base64})}(Zn)),Zn.exports}var Qn={exports:{}},Mi;function K0(){return Mi||(Mi=1,function(e,o){(function(n,a){e.exports=a(Ce())})(xe,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var u=d.words,y=d.sigBytes,f=c?this._safe_map:this._map;d.clamp();for(var g=[],m=0;m<y;m+=3)for(var h=u[m>>>2]>>>24-m%4*8&255,C=u[m+1>>>2]>>>24-(m+1)%4*8&255,v=u[m+2>>>2]>>>24-(m+2)%4*8&255,x=h<<16|C<<8|v,p=0;p<4&&m+p*.75<y;p++)g.push(f.charAt(x>>>6*(3-p)&63));var b=f.charAt(64);if(b)for(;g.length%4;)g.push(b);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,C=m|h;y[f>>>2]|=C<<24-f%4*8,f++}return r.create(y,f)}}(),n.enc.Base64url})}(Qn)),Qn.exports}var Jn={exports:{}},zi;function Wt(){return zi||(zi=1,function(e,o){(function(n,a){e.exports=a(Ce())})(xe,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=a.abs(a.sin(h+1))*4294967296|0})();var u=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,C){for(var v=0;v<16;v++){var x=C+v,p=h[x];h[x]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var b=this._hash.words,k=h[C+0],T=h[C+1],L=h[C+2],A=h[C+3],O=h[C+4],w=h[C+5],I=h[C+6],N=h[C+7],D=h[C+8],R=h[C+9],B=h[C+10],S=h[C+11],E=h[C+12],_=h[C+13],M=h[C+14],j=h[C+15],F=b[0],z=b[1],q=b[2],P=b[3];F=y(F,z,q,P,k,7,c[0]),P=y(P,F,z,q,T,12,c[1]),q=y(q,P,F,z,L,17,c[2]),z=y(z,q,P,F,A,22,c[3]),F=y(F,z,q,P,O,7,c[4]),P=y(P,F,z,q,w,12,c[5]),q=y(q,P,F,z,I,17,c[6]),z=y(z,q,P,F,N,22,c[7]),F=y(F,z,q,P,D,7,c[8]),P=y(P,F,z,q,R,12,c[9]),q=y(q,P,F,z,B,17,c[10]),z=y(z,q,P,F,S,22,c[11]),F=y(F,z,q,P,E,7,c[12]),P=y(P,F,z,q,_,12,c[13]),q=y(q,P,F,z,M,17,c[14]),z=y(z,q,P,F,j,22,c[15]),F=f(F,z,q,P,T,5,c[16]),P=f(P,F,z,q,I,9,c[17]),q=f(q,P,F,z,S,14,c[18]),z=f(z,q,P,F,k,20,c[19]),F=f(F,z,q,P,w,5,c[20]),P=f(P,F,z,q,B,9,c[21]),q=f(q,P,F,z,j,14,c[22]),z=f(z,q,P,F,O,20,c[23]),F=f(F,z,q,P,R,5,c[24]),P=f(P,F,z,q,M,9,c[25]),q=f(q,P,F,z,A,14,c[26]),z=f(z,q,P,F,D,20,c[27]),F=f(F,z,q,P,_,5,c[28]),P=f(P,F,z,q,L,9,c[29]),q=f(q,P,F,z,N,14,c[30]),z=f(z,q,P,F,E,20,c[31]),F=g(F,z,q,P,w,4,c[32]),P=g(P,F,z,q,D,11,c[33]),q=g(q,P,F,z,S,16,c[34]),z=g(z,q,P,F,M,23,c[35]),F=g(F,z,q,P,T,4,c[36]),P=g(P,F,z,q,O,11,c[37]),q=g(q,P,F,z,N,16,c[38]),z=g(z,q,P,F,B,23,c[39]),F=g(F,z,q,P,_,4,c[40]),P=g(P,F,z,q,k,11,c[41]),q=g(q,P,F,z,A,16,c[42]),z=g(z,q,P,F,I,23,c[43]),F=g(F,z,q,P,R,4,c[44]),P=g(P,F,z,q,E,11,c[45]),q=g(q,P,F,z,j,16,c[46]),z=g(z,q,P,F,L,23,c[47]),F=m(F,z,q,P,k,6,c[48]),P=m(P,F,z,q,N,10,c[49]),q=m(q,P,F,z,M,15,c[50]),z=m(z,q,P,F,w,21,c[51]),F=m(F,z,q,P,E,6,c[52]),P=m(P,F,z,q,A,10,c[53]),q=m(q,P,F,z,B,15,c[54]),z=m(z,q,P,F,T,21,c[55]),F=m(F,z,q,P,D,6,c[56]),P=m(P,F,z,q,j,10,c[57]),q=m(q,P,F,z,I,15,c[58]),z=m(z,q,P,F,_,21,c[59]),F=m(F,z,q,P,O,6,c[60]),P=m(P,F,z,q,S,10,c[61]),q=m(q,P,F,z,L,15,c[62]),z=m(z,q,P,F,R,21,c[63]),b[0]=b[0]+F|0,b[1]=b[1]+z|0,b[2]=b[2]+q|0,b[3]=b[3]+P|0},_doFinalize:function(){var h=this._data,C=h.words,v=this._nDataBytes*8,x=h.sigBytes*8;C[x>>>5]|=128<<24-x%32;var p=a.floor(v/4294967296),b=v;C[(x+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,C[(x+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,h.sigBytes=(C.length+1)*4,this._process();for(var k=this._hash,T=k.words,L=0;L<4;L++){var A=T[L];T[L]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return k},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});function y(h,C,v,x,p,b,k){var T=h+(C&v|~C&x)+p+k;return(T<<b|T>>>32-b)+C}function f(h,C,v,x,p,b,k){var T=h+(C&x|v&~x)+p+k;return(T<<b|T>>>32-b)+C}function g(h,C,v,x,p,b,k){var T=h+(C^v^x)+p+k;return(T<<b|T>>>32-b)+C}function m(h,C,v,x,p,b,k){var T=h+(v^(C|~x))+p+k;return(T<<b|T>>>32-b)+C}i.MD5=l._createHelper(u),i.HmacMD5=l._createHmacHelper(u)}(Math),n.MD5})}(Jn)),Jn.exports}var Xn={exports:{}},Pi;function eo(){return Pi||(Pi=1,function(e,o){(function(n,a){e.exports=a(Ce())})(xe,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=i.Hasher,l=a.algo,d=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,y){for(var f=this._hash.words,g=f[0],m=f[1],h=f[2],C=f[3],v=f[4],x=0;x<80;x++){if(x<16)d[x]=u[y+x]|0;else{var p=d[x-3]^d[x-8]^d[x-14]^d[x-16];d[x]=p<<1|p>>>31}var b=(g<<5|g>>>27)+v+d[x];x<20?b+=(m&h|~m&C)+1518500249:x<40?b+=(m^h^C)+1859775393:x<60?b+=(m&h|m&C|h&C)-1894007588:b+=(m^h^C)-899497514,v=C,C=h,h=m<<30|m>>>2,m=g,g=b}f[0]=f[0]+g|0,f[1]=f[1]+m|0,f[2]=f[2]+h|0,f[3]=f[3]+C|0,f[4]=f[4]+v|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})}(Xn)),Xn.exports}var to={exports:{}},qi;function Vi(){return qi||(qi=1,function(e,o){(function(n,a){e.exports=a(Ce())})(xe,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.algo,c=[],u=[];(function(){function g(v){for(var x=a.sqrt(v),p=2;p<=x;p++)if(!(v%p))return!1;return!0}function m(v){return(v-(v|0))*4294967296|0}for(var h=2,C=0;C<64;)g(h)&&(C<8&&(c[C]=m(a.pow(h,1/2))),u[C]=m(a.pow(h,1/3)),C++),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,C=h[0],v=h[1],x=h[2],p=h[3],b=h[4],k=h[5],T=h[6],L=h[7],A=0;A<64;A++){if(A<16)y[A]=g[m+A]|0;else{var O=y[A-15],w=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,I=y[A-2],N=(I<<15|I>>>17)^(I<<13|I>>>19)^I>>>10;y[A]=w+y[A-7]+N+y[A-16]}var D=b&k^~b&T,R=C&v^C&x^v&x,B=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),S=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),E=L+S+D+u[A]+y[A],_=B+R;L=T,T=k,k=b,b=p+E|0,p=x,x=v,v=C,C=E+_|0}h[0]=h[0]+C|0,h[1]=h[1]+v|0,h[2]=h[2]+x|0,h[3]=h[3]+p|0,h[4]=h[4]+b|0,h[5]=h[5]+k|0,h[6]=h[6]+T|0,h[7]=h[7]+L|0},_doFinalize:function(){var g=this._data,m=g.words,h=this._nDataBytes*8,C=g.sigBytes*8;return m[C>>>5]|=128<<24-C%32,m[(C+64>>>9<<4)+14]=a.floor(h/4294967296),m[(C+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}});i.SHA256=l._createHelper(f),i.HmacSHA256=l._createHmacHelper(f)}(Math),n.SHA256})}(to)),to.exports}var no={exports:{}},Hi;function Y0(){return Hi||(Hi=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),Vi())})(xe,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.algo,l=s.SHA256,d=s.SHA224=l.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});a.SHA224=l._createHelper(d),a.HmacSHA224=l._createHmacHelper(d)}(),n.SHA224})}(no)),no.exports}var oo={exports:{}},ji;function Wi(){return ji||(ji=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),xn())})(xe,function(n){return function(){var a=n,i=a.lib,r=i.Hasher,s=a.x64,l=s.Word,d=s.WordArray,c=a.algo;function u(){return l.create.apply(l,arguments)}var y=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],f=[];(function(){for(var m=0;m<80;m++)f[m]=u()})();var g=c.SHA512=r.extend({_doReset:function(){this._hash=new d.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(m,h){for(var C=this._hash.words,v=C[0],x=C[1],p=C[2],b=C[3],k=C[4],T=C[5],L=C[6],A=C[7],O=v.high,w=v.low,I=x.high,N=x.low,D=p.high,R=p.low,B=b.high,S=b.low,E=k.high,_=k.low,M=T.high,j=T.low,F=L.high,z=L.low,q=A.high,P=A.low,Z=O,V=w,H=I,$=N,ee=D,ie=R,he=B,ue=S,U=E,Q=_,X=M,ae=j,oe=F,se=z,ne=q,ce=P,fe=0;fe<80;fe++){var Te,Oe,We=f[fe];if(fe<16)Oe=We.high=m[h+fe*2]|0,Te=We.low=m[h+fe*2+1]|0;else{var it=f[fe-15],Ue=it.high,Qe=it.low,Je=(Ue>>>1|Qe<<31)^(Ue>>>8|Qe<<24)^Ue>>>7,ft=(Qe>>>1|Ue<<31)^(Qe>>>8|Ue<<24)^(Qe>>>7|Ue<<25),Xe=f[fe-2],Fe=Xe.high,$e=Xe.low,ut=(Fe>>>19|$e<<13)^(Fe<<3|$e>>>29)^Fe>>>6,pt=($e>>>19|Fe<<13)^($e<<3|Fe>>>29)^($e>>>6|Fe<<26),W=f[fe-7],K=W.high,J=W.low,re=f[fe-16],de=re.high,le=re.low;Te=ft+J,Oe=Je+K+(Te>>>0<ft>>>0?1:0),Te=Te+pt,Oe=Oe+ut+(Te>>>0<pt>>>0?1:0),Te=Te+le,Oe=Oe+de+(Te>>>0<le>>>0?1:0),We.high=Oe,We.low=Te}var te=U&X^~U&oe,ge=Q&ae^~Q&se,be=Z&H^Z&ee^H&ee,we=V&$^V&ie^$&ie,Pe=(Z>>>28|V<<4)^(Z<<30|V>>>2)^(Z<<25|V>>>7),et=(V>>>28|Z<<4)^(V<<30|Z>>>2)^(V<<25|Z>>>7),Ct=(U>>>14|Q<<18)^(U>>>18|Q<<14)^(U<<23|Q>>>9),Ft=(Q>>>14|U<<18)^(Q>>>18|U<<14)^(Q<<23|U>>>9),un=y[fe],Mt=un.high,yt=un.low,je=ce+Ft,rt=ne+Ct+(je>>>0<ce>>>0?1:0),je=je+ge,rt=rt+te+(je>>>0<ge>>>0?1:0),je=je+yt,rt=rt+Mt+(je>>>0<yt>>>0?1:0),je=je+Te,rt=rt+Oe+(je>>>0<Te>>>0?1:0),En=et+we,Uu=Pe+be+(En>>>0<et>>>0?1:0);ne=oe,ce=se,oe=X,se=ae,X=U,ae=Q,Q=ue+je|0,U=he+rt+(Q>>>0<ue>>>0?1:0)|0,he=ee,ue=ie,ee=H,ie=$,H=Z,$=V,V=je+En|0,Z=rt+Uu+(V>>>0<je>>>0?1:0)|0}w=v.low=w+V,v.high=O+Z+(w>>>0<V>>>0?1:0),N=x.low=N+$,x.high=I+H+(N>>>0<$>>>0?1:0),R=p.low=R+ie,p.high=D+ee+(R>>>0<ie>>>0?1:0),S=b.low=S+ue,b.high=B+he+(S>>>0<ue>>>0?1:0),_=k.low=_+Q,k.high=E+U+(_>>>0<Q>>>0?1:0),j=T.low=j+ae,T.high=M+X+(j>>>0<ae>>>0?1:0),z=L.low=z+se,L.high=F+oe+(z>>>0<se>>>0?1:0),P=A.low=P+ce,A.high=q+ne+(P>>>0<ce>>>0?1:0)},_doFinalize:function(){var m=this._data,h=m.words,C=this._nDataBytes*8,v=m.sigBytes*8;h[v>>>5]|=128<<24-v%32,h[(v+128>>>10<<5)+30]=Math.floor(C/4294967296),h[(v+128>>>10<<5)+31]=C,m.sigBytes=h.length*4,this._process();var x=this._hash.toX32();return x},clone:function(){var m=r.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=r._createHelper(g),a.HmacSHA512=r._createHmacHelper(g)}(),n.SHA512})}(oo)),oo.exports}var ao={exports:{}},Gi;function Z0(){return Gi||(Gi=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),xn(),Wi())})(xe,function(n){return function(){var a=n,i=a.x64,r=i.Word,s=i.WordArray,l=a.algo,d=l.SHA512,c=l.SHA384=d.extend({_doReset:function(){this._hash=new s.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var u=d._doFinalize.call(this);return u.sigBytes-=16,u}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(ao)),ao.exports}var io={exports:{}},Ui;function Q0(){return Ui||(Ui=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),xn())})(xe,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.x64,c=d.Word,u=i.algo,y=[],f=[],g=[];(function(){for(var C=1,v=0,x=0;x<24;x++){y[C+5*v]=(x+1)*(x+2)/2%64;var p=v%5,b=(2*C+3*v)%5;C=p,v=b}for(var C=0;C<5;C++)for(var v=0;v<5;v++)f[C+5*v]=v+(2*C+3*v)%5*5;for(var k=1,T=0;T<24;T++){for(var L=0,A=0,O=0;O<7;O++){if(k&1){var w=(1<<O)-1;w<32?A^=1<<w:L^=1<<w-32}k&128?k=k<<1^113:k<<=1}g[T]=c.create(L,A)}})();var m=[];(function(){for(var C=0;C<25;C++)m[C]=c.create()})();var h=u.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var C=this._state=[],v=0;v<25;v++)C[v]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(C,v){for(var x=this._state,p=this.blockSize/2,b=0;b<p;b++){var k=C[v+2*b],T=C[v+2*b+1];k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var L=x[b];L.high^=T,L.low^=k}for(var A=0;A<24;A++){for(var O=0;O<5;O++){for(var w=0,I=0,N=0;N<5;N++){var L=x[O+5*N];w^=L.high,I^=L.low}var D=m[O];D.high=w,D.low=I}for(var O=0;O<5;O++)for(var R=m[(O+4)%5],B=m[(O+1)%5],S=B.high,E=B.low,w=R.high^(S<<1|E>>>31),I=R.low^(E<<1|S>>>31),N=0;N<5;N++){var L=x[O+5*N];L.high^=w,L.low^=I}for(var _=1;_<25;_++){var w,I,L=x[_],M=L.high,j=L.low,F=y[_];F<32?(w=M<<F|j>>>32-F,I=j<<F|M>>>32-F):(w=j<<F-32|M>>>64-F,I=M<<F-32|j>>>64-F);var z=m[f[_]];z.high=w,z.low=I}var q=m[0],P=x[0];q.high=P.high,q.low=P.low;for(var O=0;O<5;O++)for(var N=0;N<5;N++){var _=O+5*N,L=x[_],Z=m[_],V=m[(O+1)%5+5*N],H=m[(O+2)%5+5*N];L.high=Z.high^~V.high&H.high,L.low=Z.low^~V.low&H.low}var L=x[0],$=g[A];L.high^=$.high,L.low^=$.low}},_doFinalize:function(){var C=this._data,v=C.words;this._nDataBytes*8;var x=C.sigBytes*8,p=this.blockSize*32;v[x>>>5]|=1<<24-x%32,v[(a.ceil((x+1)/p)*p>>>5)-1]|=128,C.sigBytes=v.length*4,this._process();for(var b=this._state,k=this.cfg.outputLength/8,T=k/8,L=[],A=0;A<T;A++){var O=b[A],w=O.high,I=O.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,L.push(I),L.push(w)}return new s.init(L,k)},clone:function(){for(var C=l.clone.call(this),v=C._state=this._state.slice(0),x=0;x<25;x++)v[x]=v[x].clone();return C}});i.SHA3=l._createHelper(h),i.HmacSHA3=l._createHmacHelper(h)}(Math),n.SHA3})}(io)),io.exports}var ro={exports:{}},$i;function J0(){return $i||($i=1,function(e,o){(function(n,a){e.exports=a(Ce())})(xe,function(n){/** @preserve
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f0(e,o){if(e){if(typeof e=="string")return yi(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yi(e,o)}}function yi(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function u0(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],i=!0,r=!1,s,l;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));i=!0);}catch(d){r=!0,l=d}finally{try{!i&&n.return!=null&&n.return()}finally{if(r)throw l}}return a}}function h0(e){if(Array.isArray(e))return e}function xi(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Pn(e,i,n[i])})}return e}function Pn(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function g0(e,o){if(e==null)return{};var n=m0(e,o),a,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)a=r[i],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function m0(e,o){if(e==null)return{};var n={},a=Object.keys(e),i,r;for(r=0;r<a.length;r++)i=a[r],!(o.indexOf(i)>=0)&&(n[i]=e[i]);return n}mi("#1890ff");var Pt=function(o,n){var a,i=xi({},o,n.attrs),r=i.class,s=i.icon,l=i.spin,d=i.rotate,c=i.tabindex,u=i.twoToneColor,x=i.onClick,f=g0(i,s0),m=(a={anticon:!0},Pn(a,"anticon-".concat(s.name),!!s.name),Pn(a,r,r),a),y=l===""||l||s.name==="loading"?"anticon-spin":"",g=c;g===void 0&&x&&(g=-1,f.tabindex=g);var S=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,L=ui(u),b=c0(L,2),h=b[0],p=b[1];return t.createVNode("span",xi({role:"img","aria-label":s.name},f,{onClick:x,class:m}),[t.createVNode(zn,{class:y,icon:s,primaryColor:h,secondaryColor:p,style:S},null)])};Pt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Pt.displayName="AntdIcon",Pt.inheritAttrs=!1,Pt.getTwoToneColor=l0,Pt.setTwoToneColor=mi;const pi=Pt;var y0={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 x0=y0;function bi(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){p0(e,i,n[i])})}return e}function p0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var qn=function(o,n){var a=bi({},o,n.attrs);return t.createVNode(pi,bi({},a,{icon:x0}),null)};qn.displayName="CloseOutlined",qn.inheritAttrs=!1;const b0=qn;var v0={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 S0=v0;function vi(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){C0(e,i,n[i])})}return e}function C0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Vn=function(o,n){var a=vi({},o,n.attrs);return t.createVNode(pi,vi({},a,{icon:S0}),null)};Vn.displayName="LoadingOutlined",Vn.inheritAttrs=!1;const w0=Vn,A0=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ge.Spin},setup(){return{indicator:t.h(w0,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),rh="",Ce=(e,o)=>{const n=e.__vccOpts||e;for(const[a,i]of o)n[a]=i;return n},k0={class:"spin-wrapper"};function T0(e,o,n,a,i,r){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",k0,[e.spinning?(t.openBlock(),t.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):t.renderSlot(e.$slots,"default",{key:1})])}const qt=Ce(A0,[["render",T0]]),B0=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ge.Skeleton}});function E0(e,o,n,a,i,r){const s=t.resolveComponent("a-skeleton");return t.openBlock(),t.createBlock(s,{active:"",loading:e.loading},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const Vt=Ce(B0,[["render",E0]]);(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 D0=Object.defineProperty,Si=Object.getOwnPropertySymbols,I0=Object.prototype.hasOwnProperty,R0=Object.prototype.propertyIsEnumerable,Ci=(e,o,n)=>o in e?D0(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,wi=(e,o)=>{for(var n in o||(o={}))I0.call(o,n)&&Ci(e,n,o[n]);if(Si)for(var n of Si(o))R0.call(o,n)&&Ci(e,n,o[n]);return e},L0=(e,o)=>{const n=e.__vccOpts||e;for(const[a,i]of o)n[a]=i;return n};const _0=t.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(e,{emit:o}){const n=t.ref(0),a=t.ref("100%"),i=t.ref("100%"),r=t.ref(0),s=t.ref(!1),l=t.ref(!1),d=t.ref(0),c=t.ref(0),u=t.ref(0),x=t.ref(0),f=t.ref(!1),m=t.ref(!1),y=t.ref(0),g=t.ref(null),S=t.ref("200px"),L=t.ref(!1),b=t.ref(null),h=t.ref(null),p=async()=>{await C(),r.value++},C=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",i.value="0%",b.value!==null&&h.value!==null&&b.value&&h.value)if(e.vertical&&"clientHeight"in b.value&&"clientHeight"in h.value){x.value=b.value.clientHeight,u.value=h.value.clientHeight;const v=Math.ceil(u.value/x.value);return n.value=isFinite(v)?v:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in b.value&&"clientWidth"in h.value){if(c.value=b.value.clientWidth,d.value=h.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const v=Math.ceil(d.value/c.value);return n.value=isFinite(v)?v:0,n.value}else return a.value="100%",i.value="100%",0;else return a.value="100%",i.value="100%",0},100)};t.watch(c,async()=>{e.clone&&p()}),t.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&p()}),t.watch(()=>e.pause,(v,T)=>{v!==T&&o(v?"onResume":"onPause")});const A=()=>{e.pauseOnHover&&(o("onPause"),f.value=!0)},_=()=>{e.pauseOnHover&&(o("onResume"),f.value=!1)},B=()=>{e.pauseOnClick&&(o("onPause"),m.value=!0)},N=()=>{e.pauseOnClick&&(o("onResume"),m.value=!1)},w=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),k=t.computed(()=>e.pauseOnHover&&(f.value||m.value)||!e.pauseOnHover&&w.value==="paused"?"paused":"running"),D=t.computed(()=>e.pauseOnHover&&f.value||e.pauseOnClick&&m.value||!e.pauseOnHover&&w.value==="paused"?"paused":"running"),E=t.computed(()=>{const v={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${k.value}`,"--pauseOnClick":`${D.value}`,"--pauseAnimation":`${w.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${S.value}`,"--min-width":`${a.value}`,"--min-height":`${i.value}`},T={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(T["--orientation"]="scrollY"),wi(wi({},v),T)}),R=t.computed(()=>!!e.gradient),I=async()=>{e.vertical?(i.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(i.value="auto",e.animateOnOverflowOnly?a.value="auto":a.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),S.value=e.gradientWidth):e.gradientLength&&(S.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await C(),p()),L.value=!0};return t.onMounted(async()=>{I(),g.value=setInterval(()=>{y.value++,e.loop!==0&&y.value===e.loop&&(o("onComplete"),clearInterval(g.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(g.value)}),{ready:L,contentWidth:c,containerWidth:d,contentHeight:x,containerHeight:u,loopCounter:y,loopInterval:g,mouseOverMarquee:f,mouseDownMarquee:m,minWidth:a,minHeight:i,animateOnOverflowPause:l,marqueeContent:b,marqueeOverlayContainer:h,componentKey:r,showGradient:R,cloneAmount:n,ForcesUpdate:p,checkForClone:C,setupMarquee:I,getCurrentStyle:E,hoverStarted:A,hoverEnded:_,mouseDown:B,mouseUp:N}}}),N0={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},O0={class:"marquee",ref:"marqueeContent"},F0={key:1,"aria-hidden":!0,class:"marquee"};function M0(e,o,n,a,i,r){return e.ready?(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:t.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:o[0]||(o[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:o[1]||(o[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:o[2]||(o[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:o[3]||(o[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[t.createElementVNode("div",N0,null,512),e.showGradient?(t.openBlock(),t.createElementBlock("div",{key:0,"aria-hidden":!0,class:t.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",O0,[t.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(t.openBlock(),t.createElementBlock("div",F0,[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 z0=L0(_0,[["render",M0]]);const P0=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:z0},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)}}}),lh="";function q0(e,o,n,a,i,r){const s=t.resolveComponent("Vue3Marquee");return e.isAutoScroll?(t.openBlock(),t.createBlock(s,{key:0,class:"vue-marquee",style:{width:"100%"},duration:e.step,vertical:e.vertical,pauseOnHover:!0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["duration","vertical"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"list-wrap",style:t.normalizeStyle(e.wrapStyle)},[t.renderSlot(e.$slots,"default")],4))}const Hn=Ce(P0,[["render",q0]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Te=(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},Ie={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},Be=e=>{const o={};if(typeof e=="object"&&e!=null)for(const n in e){const a=e[n];o[n]={type:a==null?void 0:a.constructor,default:a}}return o},jn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},Wn=Be(jn),V0=["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"],De=(e,o=[])=>{const n=Ne.without(V0,...o);return t.computed(()=>Ne.pick(e,n))},Gn="EVENT_BUS",Ve="GLOBAL_CONFIG",Re="GLOBAL_MODEL",Pe="REQUEST_MODEL",Ai="GLOBAL_TOKEN",an="REFRESH_PAGE",ki="MODAL_MODEL",kt="LOADED_DATA",Ze=18,Ti="ygt",Bi=((ns=window==null?void 0:window.config)==null?void 0:ns.indicatorURL)||"";(os=window==null?void 0:window.config)!=null&&os.uploadPath;const Ei=((as=window==null?void 0:window.config)==null?void 0:as.routerBaseURL)||"./",H0=((is=window==null?void 0:window.config)==null?void 0:is.erdURL)||"",Di=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],Oe=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject(Gn,{onEvent:(i,r)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},Le=e=>{const o=e.events,n=e.id,a=t.inject(Gn,{emitEvent:(r,s,l)=>{}}),{touchEventId:i}=t.inject(Ve,{touchEventId:t.ref("")});return(r,s=()=>{},l)=>function(){s.call(this,...arguments);const{emitEvent:d}=a;o.forEach(c=>{if(r===c.on)try{i.value=n,l?d(c.target,c.emit,l):d(c.target,c.emit)}catch(u){console.error(u)}})}},Ht=(e,o)=>{let{name:n="name",value:a="value",type:i="type"}=o||{};n=n==null?void 0:n.trim(),a=a==null?void 0:a.trim(),i=i==null?void 0:i.trim();const r=new Map,s=e.length;for(let c=0;c<s;c++){const u=e[c],x=u[n]||"",f=u[a]||"",m=u[i]||"";if(r.has(m)){const y=r.get(m);y.push({name:x,value:f,...u}),r.set(m,y)}else r.set(m,[{name:x,value:f,...u}])}const l=[],d=[];for(const[c,u]of r)if(d.push({name:c,data:u}),u!=null&&u.length)if(l.length)for(const x of u)l.includes(x.name)||l.push(x.name);else l.push(...u.map(x=>x.name));return{dimensions:l,dataset:d}};var pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ii(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function j0(e){if(e.__esModule)return e;var o=e.default;if(typeof o=="function"){var n=function a(){return this instanceof a?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};n.prototype=o.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}),n}var Ri={exports:{}};function W0(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Un={exports:{}};const G0=j0(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Li;function we(){return Li||(Li=1,function(e,o){(function(n,a){e.exports=a()})(pe,function(){var n=n||function(a,i){var r;if(typeof window<"u"&&window.crypto&&(r=window.crypto),typeof self<"u"&&self.crypto&&(r=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window<"u"&&window.msCrypto&&(r=window.msCrypto),!r&&typeof pe<"u"&&pe.crypto&&(r=pe.crypto),!r&&typeof W0=="function")try{r=G0}catch{}var s=function(){if(r){if(typeof r.getRandomValues=="function")try{return r.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof r.randomBytes=="function")try{return r.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function b(){}return function(h){var p;return b.prototype=h,p=new b,b.prototype=null,p}}(),d={},c=d.lib={},u=c.Base=function(){return{extend:function(b){var h=l(this);return b&&h.mixIn(b),(!h.hasOwnProperty("init")||this.init===h.init)&&(h.init=function(){h.$super.init.apply(this,arguments)}),h.init.prototype=h,h.$super=this,h},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var h in b)b.hasOwnProperty(h)&&(this[h]=b[h]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=c.WordArray=u.extend({init:function(b,h){b=this.words=b||[],h!=i?this.sigBytes=h:this.sigBytes=b.length*4},toString:function(b){return(b||m).stringify(this)},concat:function(b){var h=this.words,p=b.words,C=this.sigBytes,A=b.sigBytes;if(this.clamp(),C%4)for(var _=0;_<A;_++){var B=p[_>>>2]>>>24-_%4*8&255;h[C+_>>>2]|=B<<24-(C+_)%4*8}else for(var N=0;N<A;N+=4)h[C+N>>>2]=p[N>>>2];return this.sigBytes+=A,this},clamp:function(){var b=this.words,h=this.sigBytes;b[h>>>2]&=4294967295<<32-h%4*8,b.length=a.ceil(h/4)},clone:function(){var b=u.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var h=[],p=0;p<b;p+=4)h.push(s());return new x.init(h,b)}}),f=d.enc={},m=f.Hex={stringify:function(b){for(var h=b.words,p=b.sigBytes,C=[],A=0;A<p;A++){var _=h[A>>>2]>>>24-A%4*8&255;C.push((_>>>4).toString(16)),C.push((_&15).toString(16))}return C.join("")},parse:function(b){for(var h=b.length,p=[],C=0;C<h;C+=2)p[C>>>3]|=parseInt(b.substr(C,2),16)<<24-C%8*4;return new x.init(p,h/2)}},y=f.Latin1={stringify:function(b){for(var h=b.words,p=b.sigBytes,C=[],A=0;A<p;A++){var _=h[A>>>2]>>>24-A%4*8&255;C.push(String.fromCharCode(_))}return C.join("")},parse:function(b){for(var h=b.length,p=[],C=0;C<h;C++)p[C>>>2]|=(b.charCodeAt(C)&255)<<24-C%4*8;return new x.init(p,h)}},g=f.Utf8={stringify:function(b){try{return decodeURIComponent(escape(y.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return y.parse(unescape(encodeURIComponent(b)))}},S=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=g.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var h,p=this._data,C=p.words,A=p.sigBytes,_=this.blockSize,B=_*4,N=A/B;b?N=a.ceil(N):N=a.max((N|0)-this._minBufferSize,0);var w=N*_,k=a.min(w*4,A);if(w){for(var D=0;D<w;D+=_)this._doProcessBlock(C,D);h=C.splice(0,w),p.sigBytes-=k}return new x.init(h,k)},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 h=this._doFinalize();return h},blockSize:16,_createHelper:function(b){return function(h,p){return new b.init(p).finalize(h)}},_createHmacHelper:function(b){return function(h,p){return new L.HMAC.init(b,p).finalize(h)}}});var L=d.algo={};return d}(Math);return n})}(Un)),Un.exports}var $n={exports:{}},_i;function xn(){return _i||(_i=1,function(e,o){(function(n,a){e.exports=a(we())})(pe,function(n){return function(a){var i=n,r=i.lib,s=r.Base,l=r.WordArray,d=i.x64={};d.Word=s.extend({init:function(c,u){this.high=c,this.low=u}}),d.WordArray=s.extend({init:function(c,u){c=this.words=c||[],u!=a?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,x=[],f=0;f<u;f++){var m=c[f];x.push(m.high),x.push(m.low)}return l.create(x,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),u=c.words=this.words.slice(0),x=u.length,f=0;f<x;f++)u[f]=u[f].clone();return c}})}(),n})}($n)),$n.exports}var Yn={exports:{}},Ni;function U0(){return Ni||(Ni=1,function(e,o){(function(n,a){e.exports=a(we())})(pe,function(n){return function(){if(typeof ArrayBuffer=="function"){var a=n,i=a.lib,r=i.WordArray,s=r.init,l=r.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var c=d.byteLength,u=[],x=0;x<c;x++)u[x>>>2]|=d[x]<<24-x%4*8;s.call(this,u,c)}else s.apply(this,arguments)};l.prototype=r}}(),n.lib.WordArray})}(Yn)),Yn.exports}var Kn={exports:{}},Oi;function $0(){return Oi||(Oi=1,function(e,o){(function(n,a){e.exports=a(we())})(pe,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(d){for(var c=d.words,u=d.sigBytes,x=[],f=0;f<u;f+=2){var m=c[f>>>2]>>>16-f%4*8&65535;x.push(String.fromCharCode(m))}return x.join("")},parse:function(d){for(var c=d.length,u=[],x=0;x<c;x++)u[x>>>1]|=d.charCodeAt(x)<<16-x%2*16;return r.create(u,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,u=d.sigBytes,x=[],f=0;f<u;f+=2){var m=l(c[f>>>2]>>>16-f%4*8&65535);x.push(String.fromCharCode(m))}return x.join("")},parse:function(d){for(var c=d.length,u=[],x=0;x<c;x++)u[x>>>1]|=l(d.charCodeAt(x)<<16-x%2*16);return r.create(u,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(Kn)),Kn.exports}var Zn={exports:{}},Fi;function jt(){return Fi||(Fi=1,function(e,o){(function(n,a){e.exports=a(we())})(pe,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Base64={stringify:function(d){var c=d.words,u=d.sigBytes,x=this._map;d.clamp();for(var f=[],m=0;m<u;m+=3)for(var y=c[m>>>2]>>>24-m%4*8&255,g=c[m+1>>>2]>>>24-(m+1)%4*8&255,S=c[m+2>>>2]>>>24-(m+2)%4*8&255,L=y<<16|g<<8|S,b=0;b<4&&m+b*.75<u;b++)f.push(x.charAt(L>>>6*(3-b)&63));var h=x.charAt(64);if(h)for(;f.length%4;)f.push(h);return f.join("")},parse:function(d){var c=d.length,u=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var f=0;f<u.length;f++)x[u.charCodeAt(f)]=f}var m=u.charAt(64);if(m){var y=d.indexOf(m);y!==-1&&(c=y)}return l(d,c,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,u){for(var x=[],f=0,m=0;m<c;m++)if(m%4){var y=u[d.charCodeAt(m-1)]<<m%4*2,g=u[d.charCodeAt(m)]>>>6-m%4*2,S=y|g;x[f>>>2]|=S<<24-f%4*8,f++}return r.create(x,f)}}(),n.enc.Base64})}(Zn)),Zn.exports}var Qn={exports:{}},Mi;function Y0(){return Mi||(Mi=1,function(e,o){(function(n,a){e.exports=a(we())})(pe,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var u=d.words,x=d.sigBytes,f=c?this._safe_map:this._map;d.clamp();for(var m=[],y=0;y<x;y+=3)for(var g=u[y>>>2]>>>24-y%4*8&255,S=u[y+1>>>2]>>>24-(y+1)%4*8&255,L=u[y+2>>>2]>>>24-(y+2)%4*8&255,b=g<<16|S<<8|L,h=0;h<4&&y+h*.75<x;h++)m.push(f.charAt(b>>>6*(3-h)&63));var p=f.charAt(64);if(p)for(;m.length%4;)m.push(p);return m.join("")},parse:function(d,c=!0){var u=d.length,x=c?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var m=0;m<x.length;m++)f[x.charCodeAt(m)]=m}var y=x.charAt(64);if(y){var g=d.indexOf(y);g!==-1&&(u=g)}return l(d,u,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,u){for(var x=[],f=0,m=0;m<c;m++)if(m%4){var y=u[d.charCodeAt(m-1)]<<m%4*2,g=u[d.charCodeAt(m)]>>>6-m%4*2,S=y|g;x[f>>>2]|=S<<24-f%4*8,f++}return r.create(x,f)}}(),n.enc.Base64url})}(Qn)),Qn.exports}var Jn={exports:{}},zi;function Wt(){return zi||(zi=1,function(e,o){(function(n,a){e.exports=a(we())})(pe,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=a.abs(a.sin(g+1))*4294967296|0})();var u=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,S){for(var L=0;L<16;L++){var b=S+L,h=g[b];g[b]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}var p=this._hash.words,C=g[S+0],A=g[S+1],_=g[S+2],B=g[S+3],N=g[S+4],w=g[S+5],k=g[S+6],D=g[S+7],E=g[S+8],R=g[S+9],I=g[S+10],v=g[S+11],T=g[S+12],O=g[S+13],z=g[S+14],M=g[S+15],F=p[0],V=p[1],q=p[2],W=p[3];F=x(F,V,q,W,C,7,c[0]),W=x(W,F,V,q,A,12,c[1]),q=x(q,W,F,V,_,17,c[2]),V=x(V,q,W,F,B,22,c[3]),F=x(F,V,q,W,N,7,c[4]),W=x(W,F,V,q,w,12,c[5]),q=x(q,W,F,V,k,17,c[6]),V=x(V,q,W,F,D,22,c[7]),F=x(F,V,q,W,E,7,c[8]),W=x(W,F,V,q,R,12,c[9]),q=x(q,W,F,V,I,17,c[10]),V=x(V,q,W,F,v,22,c[11]),F=x(F,V,q,W,T,7,c[12]),W=x(W,F,V,q,O,12,c[13]),q=x(q,W,F,V,z,17,c[14]),V=x(V,q,W,F,M,22,c[15]),F=f(F,V,q,W,A,5,c[16]),W=f(W,F,V,q,k,9,c[17]),q=f(q,W,F,V,v,14,c[18]),V=f(V,q,W,F,C,20,c[19]),F=f(F,V,q,W,w,5,c[20]),W=f(W,F,V,q,I,9,c[21]),q=f(q,W,F,V,M,14,c[22]),V=f(V,q,W,F,N,20,c[23]),F=f(F,V,q,W,R,5,c[24]),W=f(W,F,V,q,z,9,c[25]),q=f(q,W,F,V,B,14,c[26]),V=f(V,q,W,F,E,20,c[27]),F=f(F,V,q,W,O,5,c[28]),W=f(W,F,V,q,_,9,c[29]),q=f(q,W,F,V,D,14,c[30]),V=f(V,q,W,F,T,20,c[31]),F=m(F,V,q,W,w,4,c[32]),W=m(W,F,V,q,E,11,c[33]),q=m(q,W,F,V,v,16,c[34]),V=m(V,q,W,F,z,23,c[35]),F=m(F,V,q,W,A,4,c[36]),W=m(W,F,V,q,N,11,c[37]),q=m(q,W,F,V,D,16,c[38]),V=m(V,q,W,F,I,23,c[39]),F=m(F,V,q,W,O,4,c[40]),W=m(W,F,V,q,C,11,c[41]),q=m(q,W,F,V,B,16,c[42]),V=m(V,q,W,F,k,23,c[43]),F=m(F,V,q,W,R,4,c[44]),W=m(W,F,V,q,T,11,c[45]),q=m(q,W,F,V,M,16,c[46]),V=m(V,q,W,F,_,23,c[47]),F=y(F,V,q,W,C,6,c[48]),W=y(W,F,V,q,D,10,c[49]),q=y(q,W,F,V,z,15,c[50]),V=y(V,q,W,F,w,21,c[51]),F=y(F,V,q,W,T,6,c[52]),W=y(W,F,V,q,B,10,c[53]),q=y(q,W,F,V,I,15,c[54]),V=y(V,q,W,F,A,21,c[55]),F=y(F,V,q,W,E,6,c[56]),W=y(W,F,V,q,M,10,c[57]),q=y(q,W,F,V,k,15,c[58]),V=y(V,q,W,F,O,21,c[59]),F=y(F,V,q,W,N,6,c[60]),W=y(W,F,V,q,v,10,c[61]),q=y(q,W,F,V,_,15,c[62]),V=y(V,q,W,F,R,21,c[63]),p[0]=p[0]+F|0,p[1]=p[1]+V|0,p[2]=p[2]+q|0,p[3]=p[3]+W|0},_doFinalize:function(){var g=this._data,S=g.words,L=this._nDataBytes*8,b=g.sigBytes*8;S[b>>>5]|=128<<24-b%32;var h=a.floor(L/4294967296),p=L;S[(b+64>>>9<<4)+15]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,S[(b+64>>>9<<4)+14]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,g.sigBytes=(S.length+1)*4,this._process();for(var C=this._hash,A=C.words,_=0;_<4;_++){var B=A[_];A[_]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}return C},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});function x(g,S,L,b,h,p,C){var A=g+(S&L|~S&b)+h+C;return(A<<p|A>>>32-p)+S}function f(g,S,L,b,h,p,C){var A=g+(S&b|L&~b)+h+C;return(A<<p|A>>>32-p)+S}function m(g,S,L,b,h,p,C){var A=g+(S^L^b)+h+C;return(A<<p|A>>>32-p)+S}function y(g,S,L,b,h,p,C){var A=g+(L^(S|~b))+h+C;return(A<<p|A>>>32-p)+S}i.MD5=l._createHelper(u),i.HmacMD5=l._createHmacHelper(u)}(Math),n.MD5})}(Jn)),Jn.exports}var Xn={exports:{}},Pi;function eo(){return Pi||(Pi=1,function(e,o){(function(n,a){e.exports=a(we())})(pe,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=i.Hasher,l=a.algo,d=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,x){for(var f=this._hash.words,m=f[0],y=f[1],g=f[2],S=f[3],L=f[4],b=0;b<80;b++){if(b<16)d[b]=u[x+b]|0;else{var h=d[b-3]^d[b-8]^d[b-14]^d[b-16];d[b]=h<<1|h>>>31}var p=(m<<5|m>>>27)+L+d[b];b<20?p+=(y&g|~y&S)+1518500249:b<40?p+=(y^g^S)+1859775393:b<60?p+=(y&g|y&S|g&S)-1894007588:p+=(y^g^S)-899497514,L=S,S=g,g=y<<30|y>>>2,y=m,m=p}f[0]=f[0]+m|0,f[1]=f[1]+y|0,f[2]=f[2]+g|0,f[3]=f[3]+S|0,f[4]=f[4]+L|0},_doFinalize:function(){var u=this._data,x=u.words,f=this._nDataBytes*8,m=u.sigBytes*8;return x[m>>>5]|=128<<24-m%32,x[(m+64>>>9<<4)+14]=Math.floor(f/4294967296),x[(m+64>>>9<<4)+15]=f,u.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var u=s.clone.call(this);return u._hash=this._hash.clone(),u}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}(Xn)),Xn.exports}var to={exports:{}},qi;function Vi(){return qi||(qi=1,function(e,o){(function(n,a){e.exports=a(we())})(pe,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.algo,c=[],u=[];(function(){function m(L){for(var b=a.sqrt(L),h=2;h<=b;h++)if(!(L%h))return!1;return!0}function y(L){return(L-(L|0))*4294967296|0}for(var g=2,S=0;S<64;)m(g)&&(S<8&&(c[S]=y(a.pow(g,1/2))),u[S]=y(a.pow(g,1/3)),S++),g++})();var x=[],f=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(m,y){for(var g=this._hash.words,S=g[0],L=g[1],b=g[2],h=g[3],p=g[4],C=g[5],A=g[6],_=g[7],B=0;B<64;B++){if(B<16)x[B]=m[y+B]|0;else{var N=x[B-15],w=(N<<25|N>>>7)^(N<<14|N>>>18)^N>>>3,k=x[B-2],D=(k<<15|k>>>17)^(k<<13|k>>>19)^k>>>10;x[B]=w+x[B-7]+D+x[B-16]}var E=p&C^~p&A,R=S&L^S&b^L&b,I=(S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22),v=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),T=_+v+E+u[B]+x[B],O=I+R;_=A,A=C,C=p,p=h+T|0,h=b,b=L,L=S,S=T+O|0}g[0]=g[0]+S|0,g[1]=g[1]+L|0,g[2]=g[2]+b|0,g[3]=g[3]+h|0,g[4]=g[4]+p|0,g[5]=g[5]+C|0,g[6]=g[6]+A|0,g[7]=g[7]+_|0},_doFinalize:function(){var m=this._data,y=m.words,g=this._nDataBytes*8,S=m.sigBytes*8;return y[S>>>5]|=128<<24-S%32,y[(S+64>>>9<<4)+14]=a.floor(g/4294967296),y[(S+64>>>9<<4)+15]=g,m.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var m=l.clone.call(this);return m._hash=this._hash.clone(),m}});i.SHA256=l._createHelper(f),i.HmacSHA256=l._createHmacHelper(f)}(Math),n.SHA256})}(to)),to.exports}var no={exports:{}},Hi;function K0(){return Hi||(Hi=1,function(e,o){(function(n,a,i){e.exports=a(we(),Vi())})(pe,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.algo,l=s.SHA256,d=s.SHA224=l.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});a.SHA224=l._createHelper(d),a.HmacSHA224=l._createHmacHelper(d)}(),n.SHA224})}(no)),no.exports}var oo={exports:{}},ji;function Wi(){return ji||(ji=1,function(e,o){(function(n,a,i){e.exports=a(we(),xn())})(pe,function(n){return function(){var a=n,i=a.lib,r=i.Hasher,s=a.x64,l=s.Word,d=s.WordArray,c=a.algo;function u(){return l.create.apply(l,arguments)}var x=[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 y=0;y<80;y++)f[y]=u()})();var m=c.SHA512=r.extend({_doReset:function(){this._hash=new d.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(y,g){for(var S=this._hash.words,L=S[0],b=S[1],h=S[2],p=S[3],C=S[4],A=S[5],_=S[6],B=S[7],N=L.high,w=L.low,k=b.high,D=b.low,E=h.high,R=h.low,I=p.high,v=p.low,T=C.high,O=C.low,z=A.high,M=A.low,F=_.high,V=_.low,q=B.high,W=B.low,Q=N,P=w,H=k,Y=D,te=E,ne=R,me=I,fe=v,U=T,Z=O,X=z,ie=M,oe=F,le=V,xe=q,Ae=W,ce=0;ce<80;ce++){var de,ue,He=f[ce];if(ce<16)ue=He.high=y[g+ce*2]|0,de=He.low=y[g+ce*2+1]|0;else{var Xe=f[ce-15],Ge=Xe.high,Ke=Xe.low,yt=(Ge>>>1|Ke<<31)^(Ge>>>8|Ke<<24)^Ge>>>7,ut=(Ke>>>1|Ge<<31)^(Ke>>>8|Ge<<24)^(Ke>>>7|Ge<<25),$e=f[ce-2],Ye=$e.high,je=$e.low,et=(Ye>>>19|je<<13)^(Ye<<3|je>>>29)^Ye>>>6,rt=(je>>>19|Ye<<13)^(je<<3|Ye>>>29)^(je>>>6|Ye<<26),j=f[ce-7],$=j.high,J=j.low,ae=f[ce-16],se=ae.high,re=ae.low;de=ut+J,ue=yt+$+(de>>>0<ut>>>0?1:0),de=de+rt,ue=ue+et+(de>>>0<rt>>>0?1:0),de=de+re,ue=ue+se+(de>>>0<re>>>0?1:0),He.high=ue,He.low=de}var ee=U&X^~U&oe,he=Z&ie^~Z&le,ve=Q&H^Q&te^H&te,ke=P&Y^P&ne^Y&ne,ze=(Q>>>28|P<<4)^(Q<<30|P>>>2)^(Q<<25|P>>>7),tt=(P>>>28|Q<<4)^(P<<30|Q>>>2)^(P<<25|Q>>>7),Ct=(U>>>14|Z<<18)^(U>>>18|Z<<14)^(U<<23|Z>>>9),Ft=(Z>>>14|U<<18)^(Z>>>18|U<<14)^(Z<<23|U>>>9),un=x[ce],Mt=un.high,xt=un.low,We=Ae+Ft,lt=xe+Ct+(We>>>0<Ae>>>0?1:0),We=We+he,lt=lt+ee+(We>>>0<he>>>0?1:0),We=We+xt,lt=lt+Mt+(We>>>0<xt>>>0?1:0),We=We+de,lt=lt+ue+(We>>>0<de>>>0?1:0),En=tt+ke,Uu=ze+ve+(En>>>0<tt>>>0?1:0);xe=oe,Ae=le,oe=X,le=ie,X=U,ie=Z,Z=fe+We|0,U=me+lt+(Z>>>0<fe>>>0?1:0)|0,me=te,fe=ne,te=H,ne=Y,H=Q,Y=P,P=We+En|0,Q=lt+Uu+(P>>>0<We>>>0?1:0)|0}w=L.low=w+P,L.high=N+Q+(w>>>0<P>>>0?1:0),D=b.low=D+Y,b.high=k+H+(D>>>0<Y>>>0?1:0),R=h.low=R+ne,h.high=E+te+(R>>>0<ne>>>0?1:0),v=p.low=v+fe,p.high=I+me+(v>>>0<fe>>>0?1:0),O=C.low=O+Z,C.high=T+U+(O>>>0<Z>>>0?1:0),M=A.low=M+ie,A.high=z+X+(M>>>0<ie>>>0?1:0),V=_.low=V+le,_.high=F+oe+(V>>>0<le>>>0?1:0),W=B.low=W+Ae,B.high=q+xe+(W>>>0<Ae>>>0?1:0)},_doFinalize:function(){var y=this._data,g=y.words,S=this._nDataBytes*8,L=y.sigBytes*8;g[L>>>5]|=128<<24-L%32,g[(L+128>>>10<<5)+30]=Math.floor(S/4294967296),g[(L+128>>>10<<5)+31]=S,y.sigBytes=g.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var y=r.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});a.SHA512=r._createHelper(m),a.HmacSHA512=r._createHmacHelper(m)}(),n.SHA512})}(oo)),oo.exports}var ao={exports:{}},Gi;function Z0(){return Gi||(Gi=1,function(e,o){(function(n,a,i){e.exports=a(we(),xn(),Wi())})(pe,function(n){return function(){var a=n,i=a.x64,r=i.Word,s=i.WordArray,l=a.algo,d=l.SHA512,c=l.SHA384=d.extend({_doReset:function(){this._hash=new s.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var u=d._doFinalize.call(this);return u.sigBytes-=16,u}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(ao)),ao.exports}var io={exports:{}},Ui;function Q0(){return Ui||(Ui=1,function(e,o){(function(n,a,i){e.exports=a(we(),xn())})(pe,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.x64,c=d.Word,u=i.algo,x=[],f=[],m=[];(function(){for(var S=1,L=0,b=0;b<24;b++){x[S+5*L]=(b+1)*(b+2)/2%64;var h=L%5,p=(2*S+3*L)%5;S=h,L=p}for(var S=0;S<5;S++)for(var L=0;L<5;L++)f[S+5*L]=L+(2*S+3*L)%5*5;for(var C=1,A=0;A<24;A++){for(var _=0,B=0,N=0;N<7;N++){if(C&1){var w=(1<<N)-1;w<32?B^=1<<w:_^=1<<w-32}C&128?C=C<<1^113:C<<=1}m[A]=c.create(_,B)}})();var y=[];(function(){for(var S=0;S<25;S++)y[S]=c.create()})();var g=u.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var S=this._state=[],L=0;L<25;L++)S[L]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(S,L){for(var b=this._state,h=this.blockSize/2,p=0;p<h;p++){var C=S[L+2*p],A=S[L+2*p+1];C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var _=b[p];_.high^=A,_.low^=C}for(var B=0;B<24;B++){for(var N=0;N<5;N++){for(var w=0,k=0,D=0;D<5;D++){var _=b[N+5*D];w^=_.high,k^=_.low}var E=y[N];E.high=w,E.low=k}for(var N=0;N<5;N++)for(var R=y[(N+4)%5],I=y[(N+1)%5],v=I.high,T=I.low,w=R.high^(v<<1|T>>>31),k=R.low^(T<<1|v>>>31),D=0;D<5;D++){var _=b[N+5*D];_.high^=w,_.low^=k}for(var O=1;O<25;O++){var w,k,_=b[O],z=_.high,M=_.low,F=x[O];F<32?(w=z<<F|M>>>32-F,k=M<<F|z>>>32-F):(w=M<<F-32|z>>>64-F,k=z<<F-32|M>>>64-F);var V=y[f[O]];V.high=w,V.low=k}var q=y[0],W=b[0];q.high=W.high,q.low=W.low;for(var N=0;N<5;N++)for(var D=0;D<5;D++){var O=N+5*D,_=b[O],Q=y[O],P=y[(N+1)%5+5*D],H=y[(N+2)%5+5*D];_.high=Q.high^~P.high&H.high,_.low=Q.low^~P.low&H.low}var _=b[0],Y=m[B];_.high^=Y.high,_.low^=Y.low}},_doFinalize:function(){var S=this._data,L=S.words;this._nDataBytes*8;var b=S.sigBytes*8,h=this.blockSize*32;L[b>>>5]|=1<<24-b%32,L[(a.ceil((b+1)/h)*h>>>5)-1]|=128,S.sigBytes=L.length*4,this._process();for(var p=this._state,C=this.cfg.outputLength/8,A=C/8,_=[],B=0;B<A;B++){var N=p[B],w=N.high,k=N.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,_.push(k),_.push(w)}return new s.init(_,C)},clone:function(){for(var S=l.clone.call(this),L=S._state=this._state.slice(0),b=0;b<25;b++)L[b]=L[b].clone();return S}});i.SHA3=l._createHelper(g),i.HmacSHA3=l._createHmacHelper(g)}(Math),n.SHA3})}(io)),io.exports}var ro={exports:{}},$i;function J0(){return $i||($i=1,function(e,o){(function(n,a){e.exports=a(we())})(pe,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 i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),y=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),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,L){for(var A=0;A<16;A++){var O=L+A,w=T[O];T[O]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var I=this._hash.words,N=g.words,D=m.words,R=c.words,B=u.words,S=y.words,E=f.words,_,M,j,F,z,q,P,Z,V,H;q=_=I[0],P=M=I[1],Z=j=I[2],V=F=I[3],H=z=I[4];for(var $,A=0;A<80;A+=1)$=_+T[L+R[A]]|0,A<16?$+=C(M,j,F)+N[0]:A<32?$+=v(M,j,F)+N[1]:A<48?$+=x(M,j,F)+N[2]:A<64?$+=p(M,j,F)+N[3]:$+=b(M,j,F)+N[4],$=$|0,$=k($,S[A]),$=$+z|0,_=z,z=F,F=k(j,10),j=M,M=$,$=q+T[L+B[A]]|0,A<16?$+=b(P,Z,V)+D[0]:A<32?$+=p(P,Z,V)+D[1]:A<48?$+=x(P,Z,V)+D[2]:A<64?$+=v(P,Z,V)+D[3]:$+=C(P,Z,V)+D[4],$=$|0,$=k($,E[A]),$=$+H|0,q=H,H=V,V=k(Z,10),Z=P,P=$;$=I[1]+j+V|0,I[1]=I[2]+F+H|0,I[2]=I[3]+z+q|0,I[3]=I[4]+_+P|0,I[4]=I[0]+M+Z|0,I[0]=$},_doFinalize:function(){var T=this._data,L=T.words,A=this._nDataBytes*8,O=T.sigBytes*8;L[O>>>5]|=128<<24-O%32,L[(O+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,T.sigBytes=(L.length+1)*4,this._process();for(var w=this._hash,I=w.words,N=0;N<5;N++){var D=I[N];I[N]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return w},clone:function(){var T=l.clone.call(this);return T._hash=this._hash.clone(),T}});function C(T,L,A){return T^L^A}function v(T,L,A){return T&L|~T&A}function x(T,L,A){return(T|~L)^A}function p(T,L,A){return T&A|L&~A}function b(T,L,A){return T^(L|~A)}function k(T,L){return T<<L|T>>>32-L}i.RIPEMD160=l._createHelper(h),i.HmacRIPEMD160=l._createHmacHelper(h)}(),n.RIPEMD160})}(ro)),ro.exports}var lo={exports:{}},Ki;function so(){return Ki||(Ki=1,function(e,o){(function(n,a){e.exports=a(Ce())})(xe,function(n){(function(){var a=n,i=a.lib,r=i.Base,s=a.enc,l=s.Utf8,d=a.algo;d.HMAC=r.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=l.parse(u));var y=c.blockSize,f=y*4;u.sigBytes>f&&(u=c.finalize(u)),u.clamp();for(var g=this._oKey=u.clone(),m=this._iKey=u.clone(),h=g.words,C=m.words,v=0;v<y;v++)h[v]^=1549556828,C[v]^=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}})})()})}(lo)),lo.exports}var co={exports:{}},Yi;function X0(){return Yi||(Yi=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),eo(),so())})(xe,function(n){return function(){var a=n,i=a.lib,r=i.Base,s=i.WordArray,l=a.algo,d=l.SHA1,c=l.HMAC,u=l.PBKDF2=r.extend({cfg:r.extend({keySize:128/32,hasher:d,iterations:1}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,f){for(var g=this.cfg,m=c.create(g.hasher,y),h=s.create(),C=s.create([1]),v=h.words,x=C.words,p=g.keySize,b=g.iterations;v.length<p;){var k=m.update(f).finalize(C);m.reset();for(var T=k.words,L=T.length,A=k,O=1;O<b;O++){A=m.finalize(A),m.reset();for(var w=A.words,I=0;I<L;I++)T[I]^=w[I]}h.concat(k),x[0]++}return h.sigBytes=p*4,h}});a.PBKDF2=function(y,f,g){return u.create(g).compute(y,f)}}(),n.PBKDF2})}(co)),co.exports}var fo={exports:{}},Zi;function _t(){return Zi||(Zi=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),eo(),so())})(xe,function(n){return function(){var a=n,i=a.lib,r=i.Base,s=i.WordArray,l=a.algo,d=l.MD5,c=l.EvpKDF=r.extend({cfg:r.extend({keySize:128/32,hasher:d,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,y){for(var f,g=this.cfg,m=g.hasher.create(),h=s.create(),C=h.words,v=g.keySize,x=g.iterations;C.length<v;){f&&m.update(f),f=m.update(u).finalize(y),m.reset();for(var p=1;p<x;p++)f=m.finalize(f),m.reset();h.concat(f)}return h.sigBytes=v*4,h}});a.EvpKDF=function(u,y,f){return c.create(f).compute(u,y)}}(),n.EvpKDF})}(fo)),fo.exports}var uo={exports:{}},Qi;function Ge(){return Qi||(Qi=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),_t())})(xe,function(n){n.lib.Cipher||function(a){var i=n,r=i.lib,s=r.Base,l=r.WordArray,d=r.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var u=c.Base64,y=i.algo,f=y.EvpKDF,g=r.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(w,I){return this.create(this._ENC_XFORM_MODE,w,I)},createDecryptor:function(w,I){return this.create(this._DEC_XFORM_MODE,w,I)},init:function(w,I,N){this.cfg=this.cfg.extend(N),this._xformMode=w,this._key=I,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var I=this._doFinalize();return I},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function w(I){return typeof I=="string"?O:T}return function(I){return{encrypt:function(N,D,R){return w(D).encrypt(I,N,D,R)},decrypt:function(N,D,R){return w(D).decrypt(I,N,D,R)}}}}()});r.StreamCipher=g.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var m=i.mode={},h=r.BlockCipherMode=s.extend({createEncryptor:function(w,I){return this.Encryptor.create(w,I)},createDecryptor:function(w,I){return this.Decryptor.create(w,I)},init:function(w,I){this._cipher=w,this._iv=I}}),C=m.CBC=function(){var w=h.extend();w.Encryptor=w.extend({processBlock:function(N,D){var R=this._cipher,B=R.blockSize;I.call(this,N,D,B),R.encryptBlock(N,D),this._prevBlock=N.slice(D,D+B)}}),w.Decryptor=w.extend({processBlock:function(N,D){var R=this._cipher,B=R.blockSize,S=N.slice(D,D+B);R.decryptBlock(N,D),I.call(this,N,D,B),this._prevBlock=S}});function I(N,D,R){var B,S=this._iv;S?(B=S,this._iv=a):B=this._prevBlock;for(var E=0;E<R;E++)N[D+E]^=B[E]}return w}(),v=i.pad={},x=v.Pkcs7={pad:function(w,I){for(var N=I*4,D=N-w.sigBytes%N,R=D<<24|D<<16|D<<8|D,B=[],S=0;S<D;S+=4)B.push(R);var E=l.create(B,D);w.concat(E)},unpad:function(w){var I=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=I}};r.BlockCipher=g.extend({cfg:g.cfg.extend({mode:C,padding:x}),reset:function(){var w;g.reset.call(this);var I=this.cfg,N=I.iv,D=I.mode;this._xformMode==this._ENC_XFORM_MODE?w=D.createEncryptor:(w=D.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,N&&N.words):(this._mode=w.call(D,this,N&&N.words),this._mode.__creator=w)},_doProcessBlock:function(w,I){this._mode.processBlock(w,I)},_doFinalize:function(){var w,I=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(I.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),I.unpad(w)),w},blockSize:128/32});var p=r.CipherParams=s.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),b=i.format={},k=b.OpenSSL={stringify:function(w){var I,N=w.ciphertext,D=w.salt;return D?I=l.create([1398893684,1701076831]).concat(D).concat(N):I=N,I.toString(u)},parse:function(w){var I,N=u.parse(w),D=N.words;return D[0]==1398893684&&D[1]==1701076831&&(I=l.create(D.slice(2,4)),D.splice(0,4),N.sigBytes-=16),p.create({ciphertext:N,salt:I})}},T=r.SerializableCipher=s.extend({cfg:s.extend({format:k}),encrypt:function(w,I,N,D){D=this.cfg.extend(D);var R=w.createEncryptor(N,D),B=R.finalize(I),S=R.cfg;return p.create({ciphertext:B,key:N,iv:S.iv,algorithm:w,mode:S.mode,padding:S.padding,blockSize:w.blockSize,formatter:D.format})},decrypt:function(w,I,N,D){D=this.cfg.extend(D),I=this._parse(I,D.format);var R=w.createDecryptor(N,D).finalize(I.ciphertext);return R},_parse:function(w,I){return typeof w=="string"?I.parse(w,this):w}}),L=i.kdf={},A=L.OpenSSL={execute:function(w,I,N,D){D||(D=l.random(64/8));var R=f.create({keySize:I+N}).compute(w,D),B=l.create(R.words.slice(I),N*4);return R.sigBytes=I*4,p.create({key:R,iv:B,salt:D})}},O=r.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:A}),encrypt:function(w,I,N,D){D=this.cfg.extend(D);var R=D.kdf.execute(N,w.keySize,w.ivSize);D.iv=R.iv;var B=T.encrypt.call(this,w,I,R.key,D);return B.mixIn(R),B},decrypt:function(w,I,N,D){D=this.cfg.extend(D),I=this._parse(I,D.format);var R=D.kdf.execute(N,w.keySize,w.ivSize,I.salt);D.iv=R.iv;var B=T.decrypt.call(this,w,I,R.key,D);return B}})}()})}(uo)),uo.exports}var ho={exports:{}},Ji;function ec(){return Ji||(Ji=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),Ge())})(xe,function(n){return n.mode.CFB=function(){var a=n.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize;i.call(this,r,s,d,l),this._prevBlock=r.slice(s,s+d)}}),a.Decryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize,c=r.slice(s,s+d);i.call(this,r,s,d,l),this._prevBlock=c}});function i(r,s,l,d){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var y=0;y<l;y++)r[s+y]^=c[y]}return a}(),n.mode.CFB})}(ho)),ho.exports}var go={exports:{}},Xi;function tc(){return Xi||(Xi=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),Ge())})(xe,function(n){return n.mode.CTR=function(){var a=n.lib.BlockCipherMode.extend(),i=a.Encryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var y=u.slice(0);l.encryptBlock(y,0),u[d-1]=u[d-1]+1|0;for(var f=0;f<d;f++)r[s+f]^=y[f]}});return a.Decryptor=i,a}(),n.mode.CTR})}(go)),go.exports}var mo={exports:{}},er;function nc(){return er||(er=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),Ge())})(xe,function(n){/** @preserve
67
+ */return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),x=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]),m=s.create([0,1518500249,1859775393,2400959708,2840853838]),y=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(A,_){for(var B=0;B<16;B++){var N=_+B,w=A[N];A[N]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var k=this._hash.words,D=m.words,E=y.words,R=c.words,I=u.words,v=x.words,T=f.words,O,z,M,F,V,q,W,Q,P,H;q=O=k[0],W=z=k[1],Q=M=k[2],P=F=k[3],H=V=k[4];for(var Y,B=0;B<80;B+=1)Y=O+A[_+R[B]]|0,B<16?Y+=S(z,M,F)+D[0]:B<32?Y+=L(z,M,F)+D[1]:B<48?Y+=b(z,M,F)+D[2]:B<64?Y+=h(z,M,F)+D[3]:Y+=p(z,M,F)+D[4],Y=Y|0,Y=C(Y,v[B]),Y=Y+V|0,O=V,V=F,F=C(M,10),M=z,z=Y,Y=q+A[_+I[B]]|0,B<16?Y+=p(W,Q,P)+E[0]:B<32?Y+=h(W,Q,P)+E[1]:B<48?Y+=b(W,Q,P)+E[2]:B<64?Y+=L(W,Q,P)+E[3]:Y+=S(W,Q,P)+E[4],Y=Y|0,Y=C(Y,T[B]),Y=Y+H|0,q=H,H=P,P=C(Q,10),Q=W,W=Y;Y=k[1]+M+P|0,k[1]=k[2]+F+H|0,k[2]=k[3]+V+q|0,k[3]=k[4]+O+W|0,k[4]=k[0]+z+Q|0,k[0]=Y},_doFinalize:function(){var A=this._data,_=A.words,B=this._nDataBytes*8,N=A.sigBytes*8;_[N>>>5]|=128<<24-N%32,_[(N+64>>>9<<4)+14]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,A.sigBytes=(_.length+1)*4,this._process();for(var w=this._hash,k=w.words,D=0;D<5;D++){var E=k[D];k[D]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}return w},clone:function(){var A=l.clone.call(this);return A._hash=this._hash.clone(),A}});function S(A,_,B){return A^_^B}function L(A,_,B){return A&_|~A&B}function b(A,_,B){return(A|~_)^B}function h(A,_,B){return A&B|_&~B}function p(A,_,B){return A^(_|~B)}function C(A,_){return A<<_|A>>>32-_}i.RIPEMD160=l._createHelper(g),i.HmacRIPEMD160=l._createHmacHelper(g)}(),n.RIPEMD160})}(ro)),ro.exports}var lo={exports:{}},Yi;function so(){return Yi||(Yi=1,function(e,o){(function(n,a){e.exports=a(we())})(pe,function(n){(function(){var a=n,i=a.lib,r=i.Base,s=a.enc,l=s.Utf8,d=a.algo;d.HMAC=r.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=l.parse(u));var x=c.blockSize,f=x*4;u.sigBytes>f&&(u=c.finalize(u)),u.clamp();for(var m=this._oKey=u.clone(),y=this._iKey=u.clone(),g=m.words,S=y.words,L=0;L<x;L++)g[L]^=1549556828,S[L]^=909522486;m.sigBytes=y.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,x=u.finalize(c);u.reset();var f=u.finalize(this._oKey.clone().concat(x));return f}})})()})}(lo)),lo.exports}var co={exports:{}},Ki;function X0(){return Ki||(Ki=1,function(e,o){(function(n,a,i){e.exports=a(we(),eo(),so())})(pe,function(n){return function(){var a=n,i=a.lib,r=i.Base,s=i.WordArray,l=a.algo,d=l.SHA1,c=l.HMAC,u=l.PBKDF2=r.extend({cfg:r.extend({keySize:128/32,hasher:d,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,f){for(var m=this.cfg,y=c.create(m.hasher,x),g=s.create(),S=s.create([1]),L=g.words,b=S.words,h=m.keySize,p=m.iterations;L.length<h;){var C=y.update(f).finalize(S);y.reset();for(var A=C.words,_=A.length,B=C,N=1;N<p;N++){B=y.finalize(B),y.reset();for(var w=B.words,k=0;k<_;k++)A[k]^=w[k]}g.concat(C),b[0]++}return g.sigBytes=h*4,g}});a.PBKDF2=function(x,f,m){return u.create(m).compute(x,f)}}(),n.PBKDF2})}(co)),co.exports}var fo={exports:{}},Zi;function _t(){return Zi||(Zi=1,function(e,o){(function(n,a,i){e.exports=a(we(),eo(),so())})(pe,function(n){return function(){var a=n,i=a.lib,r=i.Base,s=i.WordArray,l=a.algo,d=l.MD5,c=l.EvpKDF=r.extend({cfg:r.extend({keySize:128/32,hasher:d,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,x){for(var f,m=this.cfg,y=m.hasher.create(),g=s.create(),S=g.words,L=m.keySize,b=m.iterations;S.length<L;){f&&y.update(f),f=y.update(u).finalize(x),y.reset();for(var h=1;h<b;h++)f=y.finalize(f),y.reset();g.concat(f)}return g.sigBytes=L*4,g}});a.EvpKDF=function(u,x,f){return c.create(f).compute(u,x)}}(),n.EvpKDF})}(fo)),fo.exports}var uo={exports:{}},Qi;function Ue(){return Qi||(Qi=1,function(e,o){(function(n,a,i){e.exports=a(we(),_t())})(pe,function(n){n.lib.Cipher||function(a){var i=n,r=i.lib,s=r.Base,l=r.WordArray,d=r.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var u=c.Base64,x=i.algo,f=x.EvpKDF,m=r.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(w,k){return this.create(this._ENC_XFORM_MODE,w,k)},createDecryptor:function(w,k){return this.create(this._DEC_XFORM_MODE,w,k)},init:function(w,k,D){this.cfg=this.cfg.extend(D),this._xformMode=w,this._key=k,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var k=this._doFinalize();return k},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function w(k){return typeof k=="string"?N:A}return function(k){return{encrypt:function(D,E,R){return w(E).encrypt(k,D,E,R)},decrypt:function(D,E,R){return w(E).decrypt(k,D,E,R)}}}}()});r.StreamCipher=m.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var y=i.mode={},g=r.BlockCipherMode=s.extend({createEncryptor:function(w,k){return this.Encryptor.create(w,k)},createDecryptor:function(w,k){return this.Decryptor.create(w,k)},init:function(w,k){this._cipher=w,this._iv=k}}),S=y.CBC=function(){var w=g.extend();w.Encryptor=w.extend({processBlock:function(D,E){var R=this._cipher,I=R.blockSize;k.call(this,D,E,I),R.encryptBlock(D,E),this._prevBlock=D.slice(E,E+I)}}),w.Decryptor=w.extend({processBlock:function(D,E){var R=this._cipher,I=R.blockSize,v=D.slice(E,E+I);R.decryptBlock(D,E),k.call(this,D,E,I),this._prevBlock=v}});function k(D,E,R){var I,v=this._iv;v?(I=v,this._iv=a):I=this._prevBlock;for(var T=0;T<R;T++)D[E+T]^=I[T]}return w}(),L=i.pad={},b=L.Pkcs7={pad:function(w,k){for(var D=k*4,E=D-w.sigBytes%D,R=E<<24|E<<16|E<<8|E,I=[],v=0;v<E;v+=4)I.push(R);var T=l.create(I,E);w.concat(T)},unpad:function(w){var k=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=k}};r.BlockCipher=m.extend({cfg:m.cfg.extend({mode:S,padding:b}),reset:function(){var w;m.reset.call(this);var k=this.cfg,D=k.iv,E=k.mode;this._xformMode==this._ENC_XFORM_MODE?w=E.createEncryptor:(w=E.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,D&&D.words):(this._mode=w.call(E,this,D&&D.words),this._mode.__creator=w)},_doProcessBlock:function(w,k){this._mode.processBlock(w,k)},_doFinalize:function(){var w,k=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(k.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),k.unpad(w)),w},blockSize:128/32});var h=r.CipherParams=s.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),p=i.format={},C=p.OpenSSL={stringify:function(w){var k,D=w.ciphertext,E=w.salt;return E?k=l.create([1398893684,1701076831]).concat(E).concat(D):k=D,k.toString(u)},parse:function(w){var k,D=u.parse(w),E=D.words;return E[0]==1398893684&&E[1]==1701076831&&(k=l.create(E.slice(2,4)),E.splice(0,4),D.sigBytes-=16),h.create({ciphertext:D,salt:k})}},A=r.SerializableCipher=s.extend({cfg:s.extend({format:C}),encrypt:function(w,k,D,E){E=this.cfg.extend(E);var R=w.createEncryptor(D,E),I=R.finalize(k),v=R.cfg;return h.create({ciphertext:I,key:D,iv:v.iv,algorithm:w,mode:v.mode,padding:v.padding,blockSize:w.blockSize,formatter:E.format})},decrypt:function(w,k,D,E){E=this.cfg.extend(E),k=this._parse(k,E.format);var R=w.createDecryptor(D,E).finalize(k.ciphertext);return R},_parse:function(w,k){return typeof w=="string"?k.parse(w,this):w}}),_=i.kdf={},B=_.OpenSSL={execute:function(w,k,D,E){E||(E=l.random(64/8));var R=f.create({keySize:k+D}).compute(w,E),I=l.create(R.words.slice(k),D*4);return R.sigBytes=k*4,h.create({key:R,iv:I,salt:E})}},N=r.PasswordBasedCipher=A.extend({cfg:A.cfg.extend({kdf:B}),encrypt:function(w,k,D,E){E=this.cfg.extend(E);var R=E.kdf.execute(D,w.keySize,w.ivSize);E.iv=R.iv;var I=A.encrypt.call(this,w,k,R.key,E);return I.mixIn(R),I},decrypt:function(w,k,D,E){E=this.cfg.extend(E),k=this._parse(k,E.format);var R=E.kdf.execute(D,w.keySize,w.ivSize,k.salt);E.iv=R.iv;var I=A.decrypt.call(this,w,k,R.key,E);return I}})}()})}(uo)),uo.exports}var ho={exports:{}},Ji;function ec(){return Ji||(Ji=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(pe,function(n){return n.mode.CFB=function(){var a=n.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize;i.call(this,r,s,d,l),this._prevBlock=r.slice(s,s+d)}}),a.Decryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize,c=r.slice(s,s+d);i.call(this,r,s,d,l),this._prevBlock=c}});function i(r,s,l,d){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var x=0;x<l;x++)r[s+x]^=c[x]}return a}(),n.mode.CFB})}(ho)),ho.exports}var go={exports:{}},Xi;function tc(){return Xi||(Xi=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(pe,function(n){return n.mode.CTR=function(){var a=n.lib.BlockCipherMode.extend(),i=a.Encryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var x=u.slice(0);l.encryptBlock(x,0),u[d-1]=u[d-1]+1|0;for(var f=0;f<d;f++)r[s+f]^=x[f]}});return a.Decryptor=i,a}(),n.mode.CTR})}(go)),go.exports}var mo={exports:{}},er;function nc(){return er||(er=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(pe,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 i(l){if((l>>24&255)===255){var d=l>>16&255,c=l>>8&255,u=l&255;d===255?(d=0,c===255?(c=0,u===255?u=0:++u):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=u}else l+=1<<24;return l}function r(l){return(l[0]=i(l[0]))===0&&(l[1]=i(l[1])),l}var s=a.Encryptor=a.extend({processBlock:function(l,d){var c=this._cipher,u=c.blockSize,y=this._iv,f=this._counter;y&&(f=this._counter=y.slice(0),this._iv=void 0),r(f);var 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})}(mo)),mo.exports}var yo={exports:{}},tr;function oc(){return tr||(tr=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),Ge())})(xe,function(n){return n.mode.OFB=function(){var a=n.lib.BlockCipherMode.extend(),i=a.Encryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(u,0);for(var y=0;y<d;y++)r[s+y]^=u[y]}});return a.Decryptor=i,a}(),n.mode.OFB})}(yo)),yo.exports}var xo={exports:{}},nr;function ac(){return nr||(nr=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),Ge())})(xe,function(n){return n.mode.ECB=function(){var a=n.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(i,r){this._cipher.encryptBlock(i,r)}}),a.Decryptor=a.extend({processBlock:function(i,r){this._cipher.decryptBlock(i,r)}}),a}(),n.mode.ECB})}(xo)),xo.exports}var po={exports:{}},or;function ic(){return or||(or=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),Ge())})(xe,function(n){return n.pad.AnsiX923={pad:function(a,i){var r=a.sigBytes,s=i*4,l=s-r%s,d=r+l-1;a.clamp(),a.words[d>>>2]|=l<<24-d%4*8,a.sigBytes+=l},unpad:function(a){var i=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=i}},n.pad.Ansix923})}(po)),po.exports}var bo={exports:{}},ar;function rc(){return ar||(ar=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),Ge())})(xe,function(n){return n.pad.Iso10126={pad:function(a,i){var r=i*4,s=r-a.sigBytes%r;a.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(a){var i=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=i}},n.pad.Iso10126})}(bo)),bo.exports}var vo={exports:{}},ir;function lc(){return ir||(ir=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),Ge())})(xe,function(n){return n.pad.Iso97971={pad:function(a,i){a.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(a,i)},unpad:function(a){n.pad.ZeroPadding.unpad(a),a.sigBytes--}},n.pad.Iso97971})}(vo)),vo.exports}var So={exports:{}},rr;function sc(){return rr||(rr=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),Ge())})(xe,function(n){return n.pad.ZeroPadding={pad:function(a,i){var r=i*4;a.clamp(),a.sigBytes+=r-(a.sigBytes%r||r)},unpad:function(a){for(var i=a.words,r=a.sigBytes-1,r=a.sigBytes-1;r>=0;r--)if(i[r>>>2]>>>24-r%4*8&255){a.sigBytes=r+1;break}}},n.pad.ZeroPadding})}(So)),So.exports}var Co={exports:{}},lr;function cc(){return lr||(lr=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),Ge())})(xe,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(Co)),Co.exports}var wo={exports:{}},sr;function dc(){return sr||(sr=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),Ge())})(xe,function(n){return function(a){var i=n,r=i.lib,s=r.CipherParams,l=i.enc,d=l.Hex,c=i.format;c.Hex={stringify:function(u){return u.ciphertext.toString(d)},parse:function(u){var y=d.parse(u);return s.create({ciphertext:y})}}}(),n.format.Hex})}(wo)),wo.exports}var Ao={exports:{}},cr;function fc(){return cr||(cr=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),jt(),Wt(),_t(),Ge())})(xe,function(n){return function(){var a=n,i=a.lib,r=i.BlockCipher,s=a.algo,l=[],d=[],c=[],u=[],y=[],f=[],g=[],m=[],h=[],C=[];(function(){for(var p=[],b=0;b<256;b++)b<128?p[b]=b<<1:p[b]=b<<1^283;for(var k=0,T=0,b=0;b<256;b++){var L=T^T<<1^T<<2^T<<3^T<<4;L=L>>>8^L&255^99,l[k]=L,d[L]=k;var A=p[k],O=p[A],w=p[O],I=p[L]*257^L*16843008;c[k]=I<<24|I>>>8,u[k]=I<<16|I>>>16,y[k]=I<<8|I>>>24,f[k]=I;var I=w*16843009^O*65537^A*257^k*16843008;g[L]=I<<24|I>>>8,m[L]=I<<16|I>>>16,h[L]=I<<8|I>>>24,C[L]=I,k?(k=A^p[p[p[w^A]]],T^=p[p[T]]):k=T=1}})();var v=[0,1,2,4,8,16,32,64,128,27,54],x=s.AES=r.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,k=b.words,T=b.sigBytes/4,L=this._nRounds=T+6,A=(L+1)*4,O=this._keySchedule=[],w=0;w<A;w++)w<T?O[w]=k[w]:(p=O[w-1],w%T?T>6&&w%T==4&&(p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255]):(p=p<<8|p>>>24,p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255],p^=v[w/T|0]<<24),O[w]=O[w-T]^p);for(var I=this._invKeySchedule=[],N=0;N<A;N++){var w=A-N;if(N%4)var p=O[w];else var p=O[w-4];N<4||w<=4?I[N]=p:I[N]=g[l[p>>>24]]^m[l[p>>>16&255]]^h[l[p>>>8&255]]^C[l[p&255]]}}},encryptBlock:function(p,b){this._doCryptBlock(p,b,this._keySchedule,c,u,y,f,l)},decryptBlock:function(p,b){var k=p[b+1];p[b+1]=p[b+3],p[b+3]=k,this._doCryptBlock(p,b,this._invKeySchedule,g,m,h,C,d);var k=p[b+1];p[b+1]=p[b+3],p[b+3]=k},_doCryptBlock:function(p,b,k,T,L,A,O,w){for(var I=this._nRounds,N=p[b]^k[0],D=p[b+1]^k[1],R=p[b+2]^k[2],B=p[b+3]^k[3],S=4,E=1;E<I;E++){var _=T[N>>>24]^L[D>>>16&255]^A[R>>>8&255]^O[B&255]^k[S++],M=T[D>>>24]^L[R>>>16&255]^A[B>>>8&255]^O[N&255]^k[S++],j=T[R>>>24]^L[B>>>16&255]^A[N>>>8&255]^O[D&255]^k[S++],F=T[B>>>24]^L[N>>>16&255]^A[D>>>8&255]^O[R&255]^k[S++];N=_,D=M,R=j,B=F}var _=(w[N>>>24]<<24|w[D>>>16&255]<<16|w[R>>>8&255]<<8|w[B&255])^k[S++],M=(w[D>>>24]<<24|w[R>>>16&255]<<16|w[B>>>8&255]<<8|w[N&255])^k[S++],j=(w[R>>>24]<<24|w[B>>>16&255]<<16|w[N>>>8&255]<<8|w[D&255])^k[S++],F=(w[B>>>24]<<24|w[N>>>16&255]<<16|w[D>>>8&255]<<8|w[R&255])^k[S++];p[b]=_,p[b+1]=M,p[b+2]=j,p[b+3]=F},keySize:256/32});a.AES=r._createHelper(x)}(),n.AES})}(Ao)),Ao.exports}var ko={exports:{}},dr;function uc(){return dr||(dr=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),jt(),Wt(),_t(),Ge())})(xe,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=i.BlockCipher,l=a.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],y=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=l.DES=s.extend({_doReset:function(){for(var v=this._key,x=v.words,p=[],b=0;b<56;b++){var k=d[b]-1;p[b]=x[k>>>5]>>>31-k%32&1}for(var T=this._subKeys=[],L=0;L<16;L++){for(var A=T[L]=[],O=u[L],b=0;b<24;b++)A[b/6|0]|=p[(c[b]-1+O)%28]<<31-b%6,A[4+(b/6|0)]|=p[28+(c[b+24]-1+O)%28]<<31-b%6;A[0]=A[0]<<1|A[0]>>>31;for(var b=1;b<7;b++)A[b]=A[b]>>>(b-1)*4+3;A[7]=A[7]<<5|A[7]>>>27}for(var w=this._invSubKeys=[],b=0;b<16;b++)w[b]=T[15-b]},encryptBlock:function(v,x){this._doCryptBlock(v,x,this._subKeys)},decryptBlock:function(v,x){this._doCryptBlock(v,x,this._invSubKeys)},_doCryptBlock:function(v,x,p){this._lBlock=v[x],this._rBlock=v[x+1],m.call(this,4,252645135),m.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),m.call(this,1,1431655765);for(var b=0;b<16;b++){for(var k=p[b],T=this._lBlock,L=this._rBlock,A=0,O=0;O<8;O++)A|=y[O][((L^k[O])&f[O])>>>0];this._lBlock=L,this._rBlock=T^A}var w=this._lBlock;this._lBlock=this._rBlock,this._rBlock=w,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),v[x]=this._lBlock,v[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(v,x){var p=(this._lBlock>>>v^this._rBlock)&x;this._rBlock^=p,this._lBlock^=p<<v}function h(v,x){var p=(this._rBlock>>>v^this._lBlock)&x;this._lBlock^=p,this._rBlock^=p<<v}a.DES=s._createHelper(g);var C=l.TripleDES=s.extend({_doReset:function(){var v=this._key,x=v.words;if(x.length!==2&&x.length!==4&&x.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var p=x.slice(0,2),b=x.length<4?x.slice(0,2):x.slice(2,4),k=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=g.createEncryptor(r.create(p)),this._des2=g.createEncryptor(r.create(b)),this._des3=g.createEncryptor(r.create(k))},encryptBlock:function(v,x){this._des1.encryptBlock(v,x),this._des2.decryptBlock(v,x),this._des3.encryptBlock(v,x)},decryptBlock:function(v,x){this._des3.decryptBlock(v,x),this._des2.encryptBlock(v,x),this._des1.decryptBlock(v,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(C)}(),n.TripleDES})}(ko)),ko.exports}var To={exports:{}},fr;function hc(){return fr||(fr=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),jt(),Wt(),_t(),Ge())})(xe,function(n){return function(){var a=n,i=a.lib,r=i.StreamCipher,s=a.algo,l=s.RC4=r.extend({_doReset:function(){for(var u=this._key,y=u.words,f=u.sigBytes,g=this._S=[],m=0;m<256;m++)g[m]=m;for(var m=0,h=0;m<256;m++){var C=m%f,v=y[C>>>2]>>>24-C%4*8&255;h=(h+g[m]+v)%256;var x=g[m];g[m]=g[h],g[h]=x}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=r._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)d.call(this)}});a.RC4Drop=r._createHelper(c)}(),n.RC4})}(To)),To.exports}var Bo={exports:{}},ur;function gc(){return ur||(ur=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),jt(),Wt(),_t(),Ge())})(xe,function(n){return function(){var a=n,i=a.lib,r=i.StreamCipher,s=a.algo,l=[],d=[],c=[],u=s.Rabbit=r.extend({_doReset:function(){for(var f=this._key.words,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],C=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++)C[m]^=h[m+4&7];if(g){var v=g.words,x=v[0],p=v[1],b=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,k=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,T=b>>>16|k&4294901760,L=k<<16|b&65535;C[0]^=b,C[1]^=T,C[2]^=k,C[3]^=L,C[4]^=b,C[5]^=T,C[6]^=k,C[7]^=L;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],C=h&65535,v=h>>>16,x=((C*C>>>17)+C*v>>>15)+v*v,p=((h&4294901760)*h|0)+((h&65535)*h|0);c[m]=x^p}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=r._createHelper(u)}(),n.Rabbit})}(Bo)),Bo.exports}var Eo={exports:{}},hr;function mc(){return hr||(hr=1,function(e,o){(function(n,a,i){e.exports=a(Ce(),jt(),Wt(),_t(),Ge())})(xe,function(n){return function(){var a=n,i=a.lib,r=i.StreamCipher,s=a.algo,l=[],d=[],c=[],u=s.RabbitLegacy=r.extend({_doReset:function(){var f=this._key.words,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 C=0;C<4;C++)y.call(this);for(var C=0;C<8;C++)h[C]^=m[C+4&7];if(g){var v=g.words,x=v[0],p=v[1],b=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,k=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,T=b>>>16|k&4294901760,L=k<<16|b&65535;h[0]^=b,h[1]^=T,h[2]^=k,h[3]^=L,h[4]^=b,h[5]^=T,h[6]^=k,h[7]^=L;for(var C=0;C<4;C++)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],C=h&65535,v=h>>>16,x=((C*C>>>17)+C*v>>>15)+v*v,p=((h&4294901760)*h|0)+((h&65535)*h|0);c[m]=x^p}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=r._createHelper(u)}(),n.RabbitLegacy})}(Eo)),Eo.exports}(function(e,o){(function(n,a,i){e.exports=a(Ce(),xn(),U0(),$0(),jt(),K0(),Wt(),eo(),Vi(),Y0(),Wi(),Z0(),Q0(),J0(),so(),X0(),_t(),Ge(),ec(),tc(),nc(),oc(),ac(),ic(),rc(),lc(),sc(),cc(),dc(),fc(),uc(),hc(),gc(),mc())})(xe,function(n){return n})})(Ri);var yc=Ri.exports;const ot=Ii(yc);var xc="0123456789abcdefghijklmnopqrstuvwxyz";function St(e){return xc.charAt(e)}function pc(e,o){return e&o}function pn(e,o){return e|o}function gr(e,o){return e^o}function mr(e,o){return e&~o}function bc(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 vc(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yr="=";function bn(e){var o,n,a="";for(o=0;o+3<=e.length;o+=3)n=parseInt(e.substring(o,o+3),16),a+=Gt.charAt(n>>6)+Gt.charAt(n&63);for(o+1==e.length?(n=parseInt(e.substring(o,o+1),16),a+=Gt.charAt(n<<2)):o+2==e.length&&(n=parseInt(e.substring(o,o+2),16),a+=Gt.charAt(n>>2)+Gt.charAt((n&3)<<4));(a.length&3)>0;)a+=yr;return a}function xr(e){var o="",n,a=0,i=0;for(n=0;n<e.length&&e.charAt(n)!=yr;++n){var r=Gt.indexOf(e.charAt(n));r<0||(a==0?(o+=St(r>>2),i=r&3,a=1):a==1?(o+=St(i<<2|r>>4),i=r&15,a=2):a==2?(o+=St(i),o+=St(r>>2),i=r&3,a=3):(o+=St(i<<2|r>>4),o+=St(r&15),a=0))}return a==1&&(o+=St(i<<2)),o}var Ut,Sc={decode:function(e){var o;if(Ut===void 0){var n="0123456789ABCDEF",a=` \f
71
+ */return n.mode.CTRGladman=function(){var a=n.lib.BlockCipherMode.extend();function i(l){if((l>>24&255)===255){var d=l>>16&255,c=l>>8&255,u=l&255;d===255?(d=0,c===255?(c=0,u===255?u=0:++u):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=u}else l+=1<<24;return l}function r(l){return(l[0]=i(l[0]))===0&&(l[1]=i(l[1])),l}var s=a.Encryptor=a.extend({processBlock:function(l,d){var c=this._cipher,u=c.blockSize,x=this._iv,f=this._counter;x&&(f=this._counter=x.slice(0),this._iv=void 0),r(f);var m=f.slice(0);c.encryptBlock(m,0);for(var y=0;y<u;y++)l[d+y]^=m[y]}});return a.Decryptor=s,a}(),n.mode.CTRGladman})}(mo)),mo.exports}var yo={exports:{}},tr;function oc(){return tr||(tr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(pe,function(n){return n.mode.OFB=function(){var a=n.lib.BlockCipherMode.extend(),i=a.Encryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(u,0);for(var x=0;x<d;x++)r[s+x]^=u[x]}});return a.Decryptor=i,a}(),n.mode.OFB})}(yo)),yo.exports}var xo={exports:{}},nr;function ac(){return nr||(nr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(pe,function(n){return n.mode.ECB=function(){var a=n.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(i,r){this._cipher.encryptBlock(i,r)}}),a.Decryptor=a.extend({processBlock:function(i,r){this._cipher.decryptBlock(i,r)}}),a}(),n.mode.ECB})}(xo)),xo.exports}var po={exports:{}},or;function ic(){return or||(or=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(pe,function(n){return n.pad.AnsiX923={pad:function(a,i){var r=a.sigBytes,s=i*4,l=s-r%s,d=r+l-1;a.clamp(),a.words[d>>>2]|=l<<24-d%4*8,a.sigBytes+=l},unpad:function(a){var i=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=i}},n.pad.Ansix923})}(po)),po.exports}var bo={exports:{}},ar;function rc(){return ar||(ar=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(pe,function(n){return n.pad.Iso10126={pad:function(a,i){var r=i*4,s=r-a.sigBytes%r;a.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(a){var i=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=i}},n.pad.Iso10126})}(bo)),bo.exports}var vo={exports:{}},ir;function lc(){return ir||(ir=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(pe,function(n){return n.pad.Iso97971={pad:function(a,i){a.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(a,i)},unpad:function(a){n.pad.ZeroPadding.unpad(a),a.sigBytes--}},n.pad.Iso97971})}(vo)),vo.exports}var So={exports:{}},rr;function sc(){return rr||(rr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(pe,function(n){return n.pad.ZeroPadding={pad:function(a,i){var r=i*4;a.clamp(),a.sigBytes+=r-(a.sigBytes%r||r)},unpad:function(a){for(var i=a.words,r=a.sigBytes-1,r=a.sigBytes-1;r>=0;r--)if(i[r>>>2]>>>24-r%4*8&255){a.sigBytes=r+1;break}}},n.pad.ZeroPadding})}(So)),So.exports}var Co={exports:{}},lr;function cc(){return lr||(lr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(pe,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(Co)),Co.exports}var wo={exports:{}},sr;function dc(){return sr||(sr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(pe,function(n){return function(a){var i=n,r=i.lib,s=r.CipherParams,l=i.enc,d=l.Hex,c=i.format;c.Hex={stringify:function(u){return u.ciphertext.toString(d)},parse:function(u){var x=d.parse(u);return s.create({ciphertext:x})}}}(),n.format.Hex})}(wo)),wo.exports}var Ao={exports:{}},cr;function fc(){return cr||(cr=1,function(e,o){(function(n,a,i){e.exports=a(we(),jt(),Wt(),_t(),Ue())})(pe,function(n){return function(){var a=n,i=a.lib,r=i.BlockCipher,s=a.algo,l=[],d=[],c=[],u=[],x=[],f=[],m=[],y=[],g=[],S=[];(function(){for(var h=[],p=0;p<256;p++)p<128?h[p]=p<<1:h[p]=p<<1^283;for(var C=0,A=0,p=0;p<256;p++){var _=A^A<<1^A<<2^A<<3^A<<4;_=_>>>8^_&255^99,l[C]=_,d[_]=C;var B=h[C],N=h[B],w=h[N],k=h[_]*257^_*16843008;c[C]=k<<24|k>>>8,u[C]=k<<16|k>>>16,x[C]=k<<8|k>>>24,f[C]=k;var k=w*16843009^N*65537^B*257^C*16843008;m[_]=k<<24|k>>>8,y[_]=k<<16|k>>>16,g[_]=k<<8|k>>>24,S[_]=k,C?(C=B^h[h[h[w^B]]],A^=h[h[A]]):C=A=1}})();var L=[0,1,2,4,8,16,32,64,128,27,54],b=s.AES=r.extend({_doReset:function(){var h;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var p=this._keyPriorReset=this._key,C=p.words,A=p.sigBytes/4,_=this._nRounds=A+6,B=(_+1)*4,N=this._keySchedule=[],w=0;w<B;w++)w<A?N[w]=C[w]:(h=N[w-1],w%A?A>6&&w%A==4&&(h=l[h>>>24]<<24|l[h>>>16&255]<<16|l[h>>>8&255]<<8|l[h&255]):(h=h<<8|h>>>24,h=l[h>>>24]<<24|l[h>>>16&255]<<16|l[h>>>8&255]<<8|l[h&255],h^=L[w/A|0]<<24),N[w]=N[w-A]^h);for(var k=this._invKeySchedule=[],D=0;D<B;D++){var w=B-D;if(D%4)var h=N[w];else var h=N[w-4];D<4||w<=4?k[D]=h:k[D]=m[l[h>>>24]]^y[l[h>>>16&255]]^g[l[h>>>8&255]]^S[l[h&255]]}}},encryptBlock:function(h,p){this._doCryptBlock(h,p,this._keySchedule,c,u,x,f,l)},decryptBlock:function(h,p){var C=h[p+1];h[p+1]=h[p+3],h[p+3]=C,this._doCryptBlock(h,p,this._invKeySchedule,m,y,g,S,d);var C=h[p+1];h[p+1]=h[p+3],h[p+3]=C},_doCryptBlock:function(h,p,C,A,_,B,N,w){for(var k=this._nRounds,D=h[p]^C[0],E=h[p+1]^C[1],R=h[p+2]^C[2],I=h[p+3]^C[3],v=4,T=1;T<k;T++){var O=A[D>>>24]^_[E>>>16&255]^B[R>>>8&255]^N[I&255]^C[v++],z=A[E>>>24]^_[R>>>16&255]^B[I>>>8&255]^N[D&255]^C[v++],M=A[R>>>24]^_[I>>>16&255]^B[D>>>8&255]^N[E&255]^C[v++],F=A[I>>>24]^_[D>>>16&255]^B[E>>>8&255]^N[R&255]^C[v++];D=O,E=z,R=M,I=F}var O=(w[D>>>24]<<24|w[E>>>16&255]<<16|w[R>>>8&255]<<8|w[I&255])^C[v++],z=(w[E>>>24]<<24|w[R>>>16&255]<<16|w[I>>>8&255]<<8|w[D&255])^C[v++],M=(w[R>>>24]<<24|w[I>>>16&255]<<16|w[D>>>8&255]<<8|w[E&255])^C[v++],F=(w[I>>>24]<<24|w[D>>>16&255]<<16|w[E>>>8&255]<<8|w[R&255])^C[v++];h[p]=O,h[p+1]=z,h[p+2]=M,h[p+3]=F},keySize:256/32});a.AES=r._createHelper(b)}(),n.AES})}(Ao)),Ao.exports}var ko={exports:{}},dr;function uc(){return dr||(dr=1,function(e,o){(function(n,a,i){e.exports=a(we(),jt(),Wt(),_t(),Ue())})(pe,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=i.BlockCipher,l=a.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{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],m=l.DES=s.extend({_doReset:function(){for(var L=this._key,b=L.words,h=[],p=0;p<56;p++){var C=d[p]-1;h[p]=b[C>>>5]>>>31-C%32&1}for(var A=this._subKeys=[],_=0;_<16;_++){for(var B=A[_]=[],N=u[_],p=0;p<24;p++)B[p/6|0]|=h[(c[p]-1+N)%28]<<31-p%6,B[4+(p/6|0)]|=h[28+(c[p+24]-1+N)%28]<<31-p%6;B[0]=B[0]<<1|B[0]>>>31;for(var p=1;p<7;p++)B[p]=B[p]>>>(p-1)*4+3;B[7]=B[7]<<5|B[7]>>>27}for(var w=this._invSubKeys=[],p=0;p<16;p++)w[p]=A[15-p]},encryptBlock:function(L,b){this._doCryptBlock(L,b,this._subKeys)},decryptBlock:function(L,b){this._doCryptBlock(L,b,this._invSubKeys)},_doCryptBlock:function(L,b,h){this._lBlock=L[b],this._rBlock=L[b+1],y.call(this,4,252645135),y.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),y.call(this,1,1431655765);for(var p=0;p<16;p++){for(var C=h[p],A=this._lBlock,_=this._rBlock,B=0,N=0;N<8;N++)B|=x[N][((_^C[N])&f[N])>>>0];this._lBlock=_,this._rBlock=A^B}var w=this._lBlock;this._lBlock=this._rBlock,this._rBlock=w,y.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),L[b]=this._lBlock,L[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(L,b){var h=(this._lBlock>>>L^this._rBlock)&b;this._rBlock^=h,this._lBlock^=h<<L}function g(L,b){var h=(this._rBlock>>>L^this._lBlock)&b;this._lBlock^=h,this._rBlock^=h<<L}a.DES=s._createHelper(m);var S=l.TripleDES=s.extend({_doReset:function(){var L=this._key,b=L.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 h=b.slice(0,2),p=b.length<4?b.slice(0,2):b.slice(2,4),C=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=m.createEncryptor(r.create(h)),this._des2=m.createEncryptor(r.create(p)),this._des3=m.createEncryptor(r.create(C))},encryptBlock:function(L,b){this._des1.encryptBlock(L,b),this._des2.decryptBlock(L,b),this._des3.encryptBlock(L,b)},decryptBlock:function(L,b){this._des3.decryptBlock(L,b),this._des2.encryptBlock(L,b),this._des1.decryptBlock(L,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(S)}(),n.TripleDES})}(ko)),ko.exports}var To={exports:{}},fr;function hc(){return fr||(fr=1,function(e,o){(function(n,a,i){e.exports=a(we(),jt(),Wt(),_t(),Ue())})(pe,function(n){return function(){var a=n,i=a.lib,r=i.StreamCipher,s=a.algo,l=s.RC4=r.extend({_doReset:function(){for(var u=this._key,x=u.words,f=u.sigBytes,m=this._S=[],y=0;y<256;y++)m[y]=y;for(var y=0,g=0;y<256;y++){var S=y%f,L=x[S>>>2]>>>24-S%4*8&255;g=(g+m[y]+L)%256;var b=m[y];m[y]=m[g],m[g]=b}this._i=this._j=0},_doProcessBlock:function(u,x){u[x]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var u=this._S,x=this._i,f=this._j,m=0,y=0;y<4;y++){x=(x+1)%256,f=(f+u[x])%256;var g=u[x];u[x]=u[f],u[f]=g,m|=u[(u[x]+u[f])%256]<<24-y*8}return this._i=x,this._j=f,m}a.RC4=r._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)d.call(this)}});a.RC4Drop=r._createHelper(c)}(),n.RC4})}(To)),To.exports}var Bo={exports:{}},ur;function gc(){return ur||(ur=1,function(e,o){(function(n,a,i){e.exports=a(we(),jt(),Wt(),_t(),Ue())})(pe,function(n){return function(){var a=n,i=a.lib,r=i.StreamCipher,s=a.algo,l=[],d=[],c=[],u=s.Rabbit=r.extend({_doReset:function(){for(var f=this._key.words,m=this.cfg.iv,y=0;y<4;y++)f[y]=(f[y]<<8|f[y]>>>24)&16711935|(f[y]<<24|f[y]>>>8)&4278255360;var g=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 y=0;y<4;y++)x.call(this);for(var y=0;y<8;y++)S[y]^=g[y+4&7];if(m){var L=m.words,b=L[0],h=L[1],p=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,C=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,A=p>>>16|C&4294901760,_=C<<16|p&65535;S[0]^=p,S[1]^=A,S[2]^=C,S[3]^=_,S[4]^=p,S[5]^=A,S[6]^=C,S[7]^=_;for(var y=0;y<4;y++)x.call(this)}},_doProcessBlock:function(f,m){var y=this._X;x.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[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,f[m+g]^=l[g]},blockSize:128/32,ivSize:64/32});function x(){for(var f=this._X,m=this._C,y=0;y<8;y++)d[y]=m[y];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<d[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<d[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<d[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<d[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<d[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<d[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<d[6]>>>0?1:0)|0,this._b=m[7]>>>0<d[7]>>>0?1:0;for(var y=0;y<8;y++){var g=f[y]+m[y],S=g&65535,L=g>>>16,b=((S*S>>>17)+S*L>>>15)+L*L,h=((g&4294901760)*g|0)+((g&65535)*g|0);c[y]=b^h}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=r._createHelper(u)}(),n.Rabbit})}(Bo)),Bo.exports}var Eo={exports:{}},hr;function mc(){return hr||(hr=1,function(e,o){(function(n,a,i){e.exports=a(we(),jt(),Wt(),_t(),Ue())})(pe,function(n){return function(){var a=n,i=a.lib,r=i.StreamCipher,s=a.algo,l=[],d=[],c=[],u=s.RabbitLegacy=r.extend({_doReset:function(){var f=this._key.words,m=this.cfg.iv,y=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],g=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var S=0;S<4;S++)x.call(this);for(var S=0;S<8;S++)g[S]^=y[S+4&7];if(m){var L=m.words,b=L[0],h=L[1],p=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,C=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,A=p>>>16|C&4294901760,_=C<<16|p&65535;g[0]^=p,g[1]^=A,g[2]^=C,g[3]^=_,g[4]^=p,g[5]^=A,g[6]^=C,g[7]^=_;for(var S=0;S<4;S++)x.call(this)}},_doProcessBlock:function(f,m){var y=this._X;x.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[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,f[m+g]^=l[g]},blockSize:128/32,ivSize:64/32});function x(){for(var f=this._X,m=this._C,y=0;y<8;y++)d[y]=m[y];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<d[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<d[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<d[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<d[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<d[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<d[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<d[6]>>>0?1:0)|0,this._b=m[7]>>>0<d[7]>>>0?1:0;for(var y=0;y<8;y++){var g=f[y]+m[y],S=g&65535,L=g>>>16,b=((S*S>>>17)+S*L>>>15)+L*L,h=((g&4294901760)*g|0)+((g&65535)*g|0);c[y]=b^h}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=r._createHelper(u)}(),n.RabbitLegacy})}(Eo)),Eo.exports}(function(e,o){(function(n,a,i){e.exports=a(we(),xn(),U0(),$0(),jt(),Y0(),Wt(),eo(),Vi(),K0(),Wi(),Z0(),Q0(),J0(),so(),X0(),_t(),Ue(),ec(),tc(),nc(),oc(),ac(),ic(),rc(),lc(),sc(),cc(),dc(),fc(),uc(),hc(),gc(),mc())})(pe,function(n){return n})})(Ri);var yc=Ri.exports;const at=Ii(yc);var xc="0123456789abcdefghijklmnopqrstuvwxyz";function St(e){return xc.charAt(e)}function pc(e,o){return e&o}function pn(e,o){return e|o}function gr(e,o){return e^o}function mr(e,o){return e&~o}function bc(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 vc(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yr="=";function bn(e){var o,n,a="";for(o=0;o+3<=e.length;o+=3)n=parseInt(e.substring(o,o+3),16),a+=Gt.charAt(n>>6)+Gt.charAt(n&63);for(o+1==e.length?(n=parseInt(e.substring(o,o+1),16),a+=Gt.charAt(n<<2)):o+2==e.length&&(n=parseInt(e.substring(o,o+2),16),a+=Gt.charAt(n>>2)+Gt.charAt((n&3)<<4));(a.length&3)>0;)a+=yr;return a}function xr(e){var o="",n,a=0,i=0;for(n=0;n<e.length&&e.charAt(n)!=yr;++n){var r=Gt.indexOf(e.charAt(n));r<0||(a==0?(o+=St(r>>2),i=r&3,a=1):a==1?(o+=St(i<<2|r>>4),i=r&15,a=2):a==2?(o+=St(i),o+=St(r>>2),i=r&3,a=3):(o+=St(i<<2|r>>4),o+=St(r&15),a=0))}return a==1&&(o+=St(i<<2)),o}var Ut,Sc={decode:function(e){var o;if(Ut===void 0){var n="0123456789ABCDEF",a=` \f
72
72
  \r  \u2028\u2029`;for(Ut={},o=0;o<16;++o)Ut[n.charAt(o)]=o;for(n=n.toLowerCase(),o=10;o<16;++o)Ut[n.charAt(o)]=o;for(o=0;o<a.length;++o)Ut[a.charAt(o)]=-1}var i=[],r=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=Ut[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);r|=l,++s>=2?(i[i.length]=r,r=0,s=0):r<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Nt,Do={decode:function(e){var o;if(Nt===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=`= \f
73
- \r  \u2028\u2029`;for(Nt=Object.create(null),o=0;o<64;++o)Nt[n.charAt(o)]=o;for(Nt["-"]=62,Nt._=63,o=0;o<a.length;++o)Nt[a.charAt(o)]=-1}var i=[],r=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=Nt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);r|=l,++s>=4?(i[i.length]=r>>16,i[i.length]=r>>8&255,i[i.length]=r&255,r=0,s=0):r<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=r>>10;break;case 3:i[i.length]=r>>16,i[i.length]=r>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var o=Do.re.exec(e);if(o)if(o[1])e=o[1];else if(o[2])e=o[2];else throw new Error("RegExp out of sync");return Do.decode(e)}},$t=1e13,rn=function(){function e(o){this.buf=[+o||0]}return e.prototype.mulAdd=function(o,n){var a=this.buf,i=a.length,r,s;for(r=0;r<i;++r)s=a[r]*o+n,s<$t?n=0:(n=0|s/$t,s-=n*$t),a[r]=s;n>0&&(a[r]=n)},e.prototype.sub=function(o){var n=this.buf,a=n.length,i,r;for(i=0;i<a;++i)r=n[i]-o,r<0?(r+=$t,o=1):o=0,n[i]=r;for(;n[n.length-1]===0;)n.pop()},e.prototype.toString=function(o){if((o||10)!=10)throw new Error("only base 10 is supported");for(var n=this.buf,a=n[n.length-1].toString(),i=n.length-2;i>=0;--i)a+=($t+n[i]).toString().substring(1);return a},e.prototype.valueOf=function(){for(var o=this.buf,n=0,a=o.length-1;a>=0;--a)n=n*$t+o[a];return n},e.prototype.simplify=function(){var o=this.buf;return o.length==1?o[0]:this},e}(),pr="…",Cc=/^(\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)?)?$/,wc=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Kt(e,o){return e.length>o&&(e=e.substring(0,o)+pr),e}var Io=function(){function e(o,n){this.hexDigits="0123456789ABCDEF",o instanceof e?(this.enc=o.enc,this.pos=o.pos):(this.enc=o,this.pos=n)}return e.prototype.get=function(o){if(o===void 0&&(o=this.pos++),o>=this.enc.length)throw new Error("Requesting byte offset ".concat(o," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(o):this.enc[o]},e.prototype.hexByte=function(o){return this.hexDigits.charAt(o>>4&15)+this.hexDigits.charAt(o&15)},e.prototype.hexDump=function(o,n,a){for(var i="",r=o;r<n;++r)if(i+=this.hexByte(this.get(r)),a!==!0)switch(r&15){case 7:i+=" ";break;case 15:i+=`
73
+ \r  \u2028\u2029`;for(Nt=Object.create(null),o=0;o<64;++o)Nt[n.charAt(o)]=o;for(Nt["-"]=62,Nt._=63,o=0;o<a.length;++o)Nt[a.charAt(o)]=-1}var i=[],r=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=Nt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);r|=l,++s>=4?(i[i.length]=r>>16,i[i.length]=r>>8&255,i[i.length]=r&255,r=0,s=0):r<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=r>>10;break;case 3:i[i.length]=r>>16,i[i.length]=r>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var o=Do.re.exec(e);if(o)if(o[1])e=o[1];else if(o[2])e=o[2];else throw new Error("RegExp out of sync");return Do.decode(e)}},$t=1e13,rn=function(){function e(o){this.buf=[+o||0]}return e.prototype.mulAdd=function(o,n){var a=this.buf,i=a.length,r,s;for(r=0;r<i;++r)s=a[r]*o+n,s<$t?n=0:(n=0|s/$t,s-=n*$t),a[r]=s;n>0&&(a[r]=n)},e.prototype.sub=function(o){var n=this.buf,a=n.length,i,r;for(i=0;i<a;++i)r=n[i]-o,r<0?(r+=$t,o=1):o=0,n[i]=r;for(;n[n.length-1]===0;)n.pop()},e.prototype.toString=function(o){if((o||10)!=10)throw new Error("only base 10 is supported");for(var n=this.buf,a=n[n.length-1].toString(),i=n.length-2;i>=0;--i)a+=($t+n[i]).toString().substring(1);return a},e.prototype.valueOf=function(){for(var o=this.buf,n=0,a=o.length-1;a>=0;--a)n=n*$t+o[a];return n},e.prototype.simplify=function(){var o=this.buf;return o.length==1?o[0]:this},e}(),pr="…",Cc=/^(\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)?)?$/,wc=/^(\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 Yt(e,o){return e.length>o&&(e=e.substring(0,o)+pr),e}var Io=function(){function e(o,n){this.hexDigits="0123456789ABCDEF",o instanceof e?(this.enc=o.enc,this.pos=o.pos):(this.enc=o,this.pos=n)}return e.prototype.get=function(o){if(o===void 0&&(o=this.pos++),o>=this.enc.length)throw new Error("Requesting byte offset ".concat(o," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(o):this.enc[o]},e.prototype.hexByte=function(o){return this.hexDigits.charAt(o>>4&15)+this.hexDigits.charAt(o&15)},e.prototype.hexDump=function(o,n,a){for(var i="",r=o;r<n;++r)if(i+=this.hexByte(this.get(r)),a!==!0)switch(r&15){case 7:i+=" ";break;case 15:i+=`
74
74
  `;break;default:i+=" "}return i},e.prototype.isASCII=function(o,n){for(var a=o;a<n;++a){var i=this.get(a);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(o,n){for(var a="",i=o;i<n;++i)a+=String.fromCharCode(this.get(i));return a},e.prototype.parseStringUTF=function(o,n){for(var a="",i=o;i<n;){var r=this.get(i++);r<128?a+=String.fromCharCode(r):r>191&&r<224?a+=String.fromCharCode((r&31)<<6|this.get(i++)&63):a+=String.fromCharCode((r&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return a},e.prototype.parseStringBMP=function(o,n){for(var a="",i,r,s=o;s<n;)i=this.get(s++),r=this.get(s++),a+=String.fromCharCode(i<<8|r);return a},e.prototype.parseTime=function(o,n,a){var i=this.parseStringISO(o,n),r=(a?Cc:wc).exec(i);return r?(a&&(r[1]=+r[1],r[1]+=+r[1]<70?2e3:1900),i=r[1]+"-"+r[2]+"-"+r[3]+" "+r[4],r[5]&&(i+=":"+r[5],r[6]&&(i+=":"+r[6],r[7]&&(i+="."+r[7]))),r[8]&&(i+=" UTC",r[8]!="Z"&&(i+=r[8],r[9]&&(i+=":"+r[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(o,n){for(var a=this.get(o),i=a>127,r=i?255:0,s,l="";a==r&&++o<n;)a=this.get(o);if(s=n-o,s===0)return i?-1:0;if(s>4){for(l=a,s<<=3;!((+l^r)&128);)l=+l<<1,--s;l="("+s+` bit)
75
75
  `}i&&(a=a-256);for(var d=new rn(a),c=o+1;c<n;++c)d.mulAdd(256,this.get(c));return l+d.toString()},e.prototype.parseBitString=function(o,n,a){for(var i=this.get(o),r=(n-o-1<<3)-i,s="("+r+` bit)
76
- `,l="",d=o+1;d<n;++d){for(var c=this.get(d),u=d==n-1?i:0,y=7;y>=u;--y)l+=c>>y&1?"1":"0";if(l.length>a)return s+Kt(l,a)}return s+l},e.prototype.parseOctetString=function(o,n,a){if(this.isASCII(o,n))return Kt(this.parseStringISO(o,n),a);var i=n-o,r="("+i+` byte)
77
- `;a/=2,i>a&&(n=o+a);for(var s=o;s<n;++s)r+=this.hexByte(this.get(s));return i>a&&(r+=pr),r},e.prototype.parseOID=function(o,n,a){for(var i="",r=new rn,s=0,l=o;l<n;++l){var d=this.get(l);if(r.mulAdd(128,d&127),s+=7,!(d&128)){if(i==="")if(r=r.simplify(),r instanceof rn)r.sub(80),i="2."+r.toString();else{var c=r<80?r<40?0:1:2;i=c+"."+(r-c*40)}else i+="."+r.toString();if(i.length>a)return Kt(i,a);r=new rn,s=0}}return s>0&&(i+=".incomplete"),i},e}(),Ac=function(){function e(o,n,a,i,r){if(!(i instanceof br))throw new Error("Invalid tag value.");this.stream=o,this.header=n,this.length=a,this.tag=i,this.sub=r}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(o){if(this.tag===void 0)return null;o===void 0&&(o=1/0);var n=this.posContent(),a=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+a,o);switch(this.tag.tagNumber){case 1:return this.stream.get(n)===0?"false":"true";case 2:return this.stream.parseInteger(n,n+a);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(n,n+a,o);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+a,o);case 6:return this.stream.parseOID(n,n+a,o);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Kt(this.stream.parseStringUTF(n,n+a),o);case 18:case 19:case 20:case 21:case 22:case 26:return Kt(this.stream.parseStringISO(n,n+a),o);case 30:return Kt(this.stream.parseStringBMP(n,n+a),o);case 23:case 24:return this.stream.parseTime(n,n+a,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(o){o===void 0&&(o="");var n=o+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(n+="+"),n+=this.length,this.tag.tagConstructed?n+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(n+=" (encapsulates)"),n+=`
78
- `,this.sub!==null){o+=" ";for(var a=0,i=this.sub.length;a<i;++a)n+=this.sub[a].toPrettyString(o)}return n},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(o){var n=o.get(),a=n&127;if(a==n)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(o.pos-1));if(a===0)return null;n=0;for(var i=0;i<a;++i)n=n*256+o.get();return n},e.prototype.getHexStringValue=function(){var o=this.toHexString(),n=this.header*2,a=this.length*2;return o.substr(n,a)},e.decode=function(o){var n;o instanceof Io?n=o:n=new Io(o,0);var a=new Io(n),i=new br(n),r=e.decodeLength(n),s=n.pos,l=s-a.pos,d=null,c=function(){var y=[];if(r!==null){for(var f=s+r;n.pos<f;)y[y.length]=e.decode(n);if(n.pos!=f)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var g=e.decode(n);if(g.tag.isEOC())break;y[y.length]=g}r=s-n.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return y};if(i.tagConstructed)d=c();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");d=c();for(var u=0;u<d.length;++u)if(d[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{d=null}if(d===null){if(r===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(r)}return new e(a,l,r,i,d)},e}(),br=function(){function e(o){var n=o.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var a=new rn;do n=o.get(),a.mulAdd(128,n&127);while(n&128);this.tagNumber=a.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Tt,kc=0xdeadbeefcafe,vr=(kc&16777215)==15715070,Ye=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Tc=(1<<26)/Ye[Ye.length-1],ye=function(){function e(o,n,a){o!=null&&(typeof o=="number"?this.fromNumber(o,n,a):n==null&&typeof o!="string"?this.fromString(o,256):this.fromString(o,n))}return e.prototype.toString=function(o){if(this.s<0)return"-"+this.negate().toString(o);var n;if(o==16)n=4;else if(o==8)n=3;else if(o==2)n=1;else if(o==32)n=5;else if(o==4)n=2;else return this.toRadix(o);var a=(1<<n)-1,i,r=!1,s="",l=this.t,d=this.DB-l*this.DB%n;if(l-- >0)for(d<this.DB&&(i=this[l]>>d)>0&&(r=!0,s=St(i));l>=0;)d<n?(i=(this[l]&(1<<d)-1)<<n-d,i|=this[--l]>>(d+=this.DB-n)):(i=this[l]>>(d-=n)&a,d<=0&&(d+=this.DB,--l)),i>0&&(r=!0),r&&(s+=St(i));return r?s:"0"},e.prototype.negate=function(){var o=pe();return e.ZERO.subTo(this,o),o},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(o){var n=this.s-o.s;if(n!=0)return n;var a=this.t;if(n=a-o.t,n!=0)return this.s<0?-n:n;for(;--a>=0;)if((n=this[a]-o[a])!=0)return n;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Sn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var n=pe();return this.abs().divRemTo(o,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&o.subTo(n,n),n},e.prototype.modPowInt=function(o,n){var a;return o<256||n.isEven()?a=new Sr(n):a=new Cr(n),this.exp(o,a)},e.prototype.clone=function(){var o=pe();return this.copyTo(o),o},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var o=this.t,n=[];n[0]=this.s;var a=this.DB-o*this.DB%8,i,r=0;if(o-- >0)for(a<this.DB&&(i=this[o]>>a)!=(this.s&this.DM)>>a&&(n[r++]=i|this.s<<this.DB-a);o>=0;)a<8?(i=(this[o]&(1<<a)-1)<<8-a,i|=this[--o]>>(a+=this.DB-8)):(i=this[o]>>(a-=8)&255,a<=0&&(a+=this.DB,--o)),i&128&&(i|=-256),r==0&&(this.s&128)!=(i&128)&&++r,(r>0||i!=this.s)&&(n[r++]=i);return n},e.prototype.equals=function(o){return this.compareTo(o)==0},e.prototype.min=function(o){return this.compareTo(o)<0?this:o},e.prototype.max=function(o){return this.compareTo(o)>0?this:o},e.prototype.and=function(o){var n=pe();return this.bitwiseTo(o,pc,n),n},e.prototype.or=function(o){var n=pe();return this.bitwiseTo(o,pn,n),n},e.prototype.xor=function(o){var n=pe();return this.bitwiseTo(o,gr,n),n},e.prototype.andNot=function(o){var n=pe();return this.bitwiseTo(o,mr,n),n},e.prototype.not=function(){for(var o=pe(),n=0;n<this.t;++n)o[n]=this.DM&~this[n];return o.t=this.t,o.s=~this.s,o},e.prototype.shiftLeft=function(o){var n=pe();return o<0?this.rShiftTo(-o,n):this.lShiftTo(o,n),n},e.prototype.shiftRight=function(o){var n=pe();return o<0?this.lShiftTo(-o,n):this.rShiftTo(o,n),n},e.prototype.getLowestSetBit=function(){for(var o=0;o<this.t;++o)if(this[o]!=0)return o*this.DB+bc(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+=vc(this[a]^n);return o},e.prototype.testBit=function(o){var n=Math.floor(o/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<o%this.DB)!=0},e.prototype.setBit=function(o){return this.changeBit(o,pn)},e.prototype.clearBit=function(o){return this.changeBit(o,mr)},e.prototype.flipBit=function(o){return this.changeBit(o,gr)},e.prototype.add=function(o){var n=pe();return this.addTo(o,n),n},e.prototype.subtract=function(o){var n=pe();return this.subTo(o,n),n},e.prototype.multiply=function(o){var n=pe();return this.multiplyTo(o,n),n},e.prototype.divide=function(o){var n=pe();return this.divRemTo(o,n,null),n},e.prototype.remainder=function(o){var n=pe();return this.divRemTo(o,null,n),n},e.prototype.divideAndRemainder=function(o){var n=pe(),a=pe();return this.divRemTo(o,n,a),[n,a]},e.prototype.modPow=function(o,n){var a=o.bitLength(),i,r=Bt(1),s;if(a<=0)return r;a<18?i=1:a<48?i=3:a<144?i=4:a<768?i=5:i=6,a<8?s=new Sr(n):n.isEven()?s=new Ec(n):s=new Cr(n);var l=[],d=3,c=i-1,u=(1<<i)-1;if(l[1]=s.convert(this),i>1){var y=pe();for(s.sqrTo(l[1],y);d<=u;)l[d]=pe(),s.mulTo(y,l[d-2],l[d]),d+=2}var f=o.t-1,g,m=!0,h=pe(),C;for(a=Sn(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=i;!(g&1);)g>>=1,--d;if((a-=d)<0&&(a+=this.DB,--f),m)l[g].copyTo(r),m=!1;else{for(;d>1;)s.sqrTo(r,h),s.sqrTo(h,r),d-=2;d>0?s.sqrTo(r,h):(C=r,r=h,h=C),s.mulTo(h,l[g],r)}for(;f>=0&&!(o[f]&1<<a);)s.sqrTo(r,h),C=r,r=h,h=C,--a<0&&(a=this.DB-1,--f)}return s.revert(r)},e.prototype.modInverse=function(o){var n=o.isEven();if(this.isEven()&&n||o.signum()==0)return e.ZERO;for(var a=o.clone(),i=this.clone(),r=Bt(1),s=Bt(0),l=Bt(0),d=Bt(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),n?((!r.isEven()||!s.isEven())&&(r.addTo(this,r),s.subTo(o,s)),r.rShiftTo(1,r)):s.isEven()||s.subTo(o,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),n?((!l.isEven()||!d.isEven())&&(l.addTo(this,l),d.subTo(o,d)),l.rShiftTo(1,l)):d.isEven()||d.subTo(o,d),d.rShiftTo(1,d);a.compareTo(i)>=0?(a.subTo(i,a),n&&r.subTo(l,r),s.subTo(d,s)):(i.subTo(a,i),n&&l.subTo(r,l),d.subTo(s,d))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(d.compareTo(o)>=0)return d.subtract(o);if(d.signum()<0)d.addTo(o,d);else return d;return d.signum()<0?d.add(o):d},e.prototype.pow=function(o){return this.exp(o,new Bc)},e.prototype.gcd=function(o){var n=this.s<0?this.negate():this.clone(),a=o.s<0?o.negate():o.clone();if(n.compareTo(a)<0){var i=n;n=a,a=i}var r=n.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return n;for(r<s&&(s=r),s>0&&(n.rShiftTo(s,n),a.rShiftTo(s,a));n.signum()>0;)(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),(r=a.getLowestSetBit())>0&&a.rShiftTo(r,a),n.compareTo(a)>=0?(n.subTo(a,n),n.rShiftTo(1,n)):(a.subTo(n,a),a.rShiftTo(1,a));return s>0&&a.lShiftTo(s,a),a},e.prototype.isProbablePrime=function(o){var n,a=this.abs();if(a.t==1&&a[0]<=Ye[Ye.length-1]){for(n=0;n<Ye.length;++n)if(a[0]==Ye[n])return!0;return!1}if(a.isEven())return!1;for(n=1;n<Ye.length;){for(var i=Ye[n],r=n+1;r<Ye.length&&i<Tc;)i*=Ye[r++];for(i=a.modInt(i);n<r;)if(i%Ye[n++]==0)return!1}return a.millerRabin(o)},e.prototype.copyTo=function(o){for(var n=this.t-1;n>=0;--n)o[n]=this[n];o.t=this.t,o.s=this.s},e.prototype.fromInt=function(o){this.t=1,this.s=o<0?-1:0,o>0?this[0]=o:o<-1?this[0]=o+this.DV:this.t=0},e.prototype.fromString=function(o,n){var a;if(n==16)a=4;else if(n==8)a=3;else if(n==256)a=8;else if(n==2)a=1;else if(n==32)a=5;else if(n==4)a=2;else{this.fromRadix(o,n);return}this.t=0,this.s=0;for(var i=o.length,r=!1,s=0;--i>=0;){var l=a==8?+o[i]&255:Ar(o,i);if(l<0){o.charAt(i)=="-"&&(r=!0);continue}r=!1,s==0?this[this.t++]=l:s+a>this.DB?(this[this.t-1]|=(l&(1<<this.DB-s)-1)<<s,this[this.t++]=l>>this.DB-s):this[this.t-1]|=l<<s,s+=a,s>=this.DB&&(s-=this.DB)}a==8&&+o[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),r&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var o=this.s&this.DM;this.t>0&&this[this.t-1]==o;)--this.t},e.prototype.dlShiftTo=function(o,n){var a;for(a=this.t-1;a>=0;--a)n[a+o]=this[a];for(a=o-1;a>=0;--a)n[a]=0;n.t=this.t+o,n.s=this.s},e.prototype.drShiftTo=function(o,n){for(var a=o;a<this.t;++a)n[a-o]=this[a];n.t=Math.max(this.t-o,0),n.s=this.s},e.prototype.lShiftTo=function(o,n){for(var a=o%this.DB,i=this.DB-a,r=(1<<i)-1,s=Math.floor(o/this.DB),l=this.s<<a&this.DM,d=this.t-1;d>=0;--d)n[d+s+1]=this[d]>>i|l,l=(this[d]&r)<<a;for(var d=s-1;d>=0;--d)n[d]=0;n[s]=l,n.t=this.t+s+1,n.s=this.s,n.clamp()},e.prototype.rShiftTo=function(o,n){n.s=this.s;var a=Math.floor(o/this.DB);if(a>=this.t){n.t=0;return}var i=o%this.DB,r=this.DB-i,s=(1<<i)-1;n[0]=this[a]>>i;for(var l=a+1;l<this.t;++l)n[l-a-1]|=(this[l]&s)<<r,n[l-a]=this[l]>>i;i>0&&(n[this.t-a-1]|=(this.s&s)<<r),n.t=this.t-a,n.clamp()},e.prototype.subTo=function(o,n){for(var a=0,i=0,r=Math.min(o.t,this.t);a<r;)i+=this[a]-o[a],n[a++]=i&this.DM,i>>=this.DB;if(o.t<this.t){for(i-=o.s;a<this.t;)i+=this[a],n[a++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;a<o.t;)i-=o[a],n[a++]=i&this.DM,i>>=this.DB;i-=o.s}n.s=i<0?-1:0,i<-1?n[a++]=this.DV+i:i>0&&(n[a++]=i),n.t=a,n.clamp()},e.prototype.multiplyTo=function(o,n){var a=this.abs(),i=o.abs(),r=a.t;for(n.t=r+i.t;--r>=0;)n[r]=0;for(r=0;r<i.t;++r)n[r+a.t]=a.am(0,i[r],n,r,0,a.t);n.s=0,n.clamp(),this.s!=o.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(o){for(var n=this.abs(),a=o.t=2*n.t;--a>=0;)o[a]=0;for(a=0;a<n.t-1;++a){var i=n.am(a,n[a],o,2*a,0,1);(o[a+n.t]+=n.am(a+1,2*n[a],o,2*a+1,i,n.t-a-1))>=n.DV&&(o[a+n.t]-=n.DV,o[a+n.t+1]=1)}o.t>0&&(o[o.t-1]+=n.am(a,n[a],o,2*a,0,1)),o.s=0,o.clamp()},e.prototype.divRemTo=function(o,n,a){var i=o.abs();if(!(i.t<=0)){var r=this.abs();if(r.t<i.t){n!=null&&n.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=pe());var s=pe(),l=this.s,d=o.s,c=this.DB-Sn(i[i.t-1]);c>0?(i.lShiftTo(c,s),r.lShiftTo(c,a)):(i.copyTo(s),r.copyTo(a));var u=s.t,y=s[u-1];if(y!=0){var f=y*(1<<this.F1)+(u>1?s[u-2]>>this.F2:0),g=this.FV/f,m=(1<<this.F1)/f,h=1<<this.F2,C=a.t,v=C-u,x=n??pe();for(s.dlShiftTo(v,x),a.compareTo(x)>=0&&(a[a.t++]=1,a.subTo(x,a)),e.ONE.dlShiftTo(u,x),x.subTo(s,s);s.t<u;)s[s.t++]=0;for(;--v>=0;){var p=a[--C]==y?this.DM:Math.floor(a[C]*g+(a[C-1]+h)*m);if((a[C]+=s.am(0,p,a,v,0,u))<p)for(s.dlShiftTo(v,x),a.subTo(x,a);a[C]<--p;)a.subTo(x,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=pe(),i=pe(),r=n.convert(this),s=Sn(o)-1;for(r.copyTo(a);--s>=0;)if(n.sqrTo(a,i),(o&1<<s)>0)n.mulTo(i,r,a);else{var l=a;a=i,i=l}return n.revert(a)},e.prototype.chunkSize=function(o){return Math.floor(Math.LN2*this.DB/Math.log(o))},e.prototype.toRadix=function(o){if(o==null&&(o=10),this.signum()==0||o<2||o>36)return"0";var n=this.chunkSize(o),a=Math.pow(o,n),i=Bt(a),r=pe(),s=pe(),l="";for(this.divRemTo(i,r,s);r.signum()>0;)l=(a+s.intValue()).toString(o).substr(1)+l,r.divRemTo(i,r,s);return s.intValue().toString(o)+l},e.prototype.fromRadix=function(o,n){this.fromInt(0),n==null&&(n=10);for(var a=this.chunkSize(n),i=Math.pow(n,a),r=!1,s=0,l=0,d=0;d<o.length;++d){var c=Ar(o,d);if(c<0){o.charAt(d)=="-"&&this.signum()==0&&(r=!0);continue}l=n*l+c,++s>=a&&(this.dMultiply(i),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(l,0)),r&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(o,n,a){if(typeof n=="number")if(o<2)this.fromInt(1);else for(this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),pn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>o&&this.subTo(e.ONE.shiftLeft(o-1),this);else{var i=[],r=o&7;i.length=(o>>3)+1,n.nextBytes(i),r>0?i[0]&=(1<<r)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(o,n,a){var i,r,s=Math.min(o.t,this.t);for(i=0;i<s;++i)a[i]=n(this[i],o[i]);if(o.t<this.t){for(r=o.s&this.DM,i=s;i<this.t;++i)a[i]=n(this[i],r);a.t=this.t}else{for(r=this.s&this.DM,i=s;i<o.t;++i)a[i]=n(r,o[i]);a.t=o.t}a.s=n(this.s,o.s),a.clamp()},e.prototype.changeBit=function(o,n){var a=e.ONE.shiftLeft(o);return this.bitwiseTo(a,n,a),a},e.prototype.addTo=function(o,n){for(var a=0,i=0,r=Math.min(o.t,this.t);a<r;)i+=this[a]+o[a],n[a++]=i&this.DM,i>>=this.DB;if(o.t<this.t){for(i+=o.s;a<this.t;)i+=this[a],n[a++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;a<o.t;)i+=o[a],n[a++]=i&this.DM,i>>=this.DB;i+=o.s}n.s=i<0?-1:0,i>0?n[a++]=i:i<-1&&(n[a++]=this.DV+i),n.t=a,n.clamp()},e.prototype.dMultiply=function(o){this[this.t]=this.am(0,o-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(o,n){if(o!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=o;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},e.prototype.multiplyLowerTo=function(o,n,a){var i=Math.min(this.t+o.t,n);for(a.s=0,a.t=i;i>0;)a[--i]=0;for(var r=a.t-this.t;i<r;++i)a[i+this.t]=this.am(0,o[i],a,i,0,this.t);for(var r=Math.min(o.t,n);i<r;++i)this.am(0,o[i],a,i,0,n-i);a.clamp()},e.prototype.multiplyUpperTo=function(o,n,a){--n;var i=a.t=this.t+o.t-n;for(a.s=0;--i>=0;)a[i]=0;for(i=Math.max(n-this.t,0);i<o.t;++i)a[this.t+i-n]=this.am(n-i,o[i],a,0,0,this.t+i-n);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(o){if(o<=0)return 0;var n=this.DV%o,a=this.s<0?o-1:0;if(this.t>0)if(n==0)a=this[0]%o;else for(var i=this.t-1;i>=0;--i)a=(n*a+this[i])%o;return a},e.prototype.millerRabin=function(o){var n=this.subtract(e.ONE),a=n.getLowestSetBit();if(a<=0)return!1;var i=n.shiftRight(a);o=o+1>>1,o>Ye.length&&(o=Ye.length);for(var r=pe(),s=0;s<o;++s){r.fromInt(Ye[Math.floor(Math.random()*Ye.length)]);var l=r.modPow(i,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(n)!=0){for(var d=1;d++<a&&l.compareTo(n)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(n)!=0)return!1}}return!0},e.prototype.square=function(){var o=pe();return this.squareTo(o),o},e.prototype.gcda=function(o,n){var a=this.s<0?this.negate():this.clone(),i=o.s<0?o.negate():o.clone();if(a.compareTo(i)<0){var r=a;a=i,i=r}var s=a.getLowestSetBit(),l=i.getLowestSetBit();if(l<0){n(a);return}s<l&&(l=s),l>0&&(a.rShiftTo(l,a),i.rShiftTo(l,i));var d=function(){(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),a.compareTo(i)>=0?(a.subTo(i,a),a.rShiftTo(1,a)):(i.subTo(a,i),i.rShiftTo(1,i)),a.signum()>0?setTimeout(d,0):(l>0&&i.lShiftTo(l,i),setTimeout(function(){n(i)},0))};setTimeout(d,10)},e.prototype.fromNumberAsync=function(o,n,a,i){if(typeof n=="number")if(o<2)this.fromInt(1);else{this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),pn,this),this.isEven()&&this.dAddOffset(1,0);var r=this,s=function(){r.dAddOffset(2,0),r.bitLength()>o&&r.subTo(e.ONE.shiftLeft(o-1),r),r.isProbablePrime(n)?setTimeout(function(){i()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],d=o&7;l.length=(o>>3)+1,n.nextBytes(l),d>0?l[0]&=(1<<d)-1:l[0]=0,this.fromString(l,256)}},e}(),Bc=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}(),Sr=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}(),Cr=function(){function e(o){this.m=o,this.mp=o.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<o.DB-15)-1,this.mt2=2*o.t}return e.prototype.convert=function(o){var n=pe();return o.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),o.s<0&&n.compareTo(ye.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(o){var n=pe();return o.copyTo(n),this.reduce(n),n},e.prototype.reduce=function(o){for(;o.t<=this.mt2;)o[o.t++]=0;for(var n=0;n<this.m.t;++n){var a=o[n]&32767,i=a*this.mpl+((a*this.mph+(o[n]>>15)*this.mpl&this.um)<<15)&o.DM;for(a=n+this.m.t,o[a]+=this.m.am(0,i,o,n,0,this.m.t);o[a]>=o.DV;)o[a]-=o.DV,o[++a]++}o.clamp(),o.drShiftTo(this.m.t,o),o.compareTo(this.m)>=0&&o.subTo(this.m,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}(),Ec=function(){function e(o){this.m=o,this.r2=pe(),this.q3=pe(),ye.ONE.dlShiftTo(2*o.t,this.r2),this.mu=this.r2.divide(o)}return e.prototype.convert=function(o){if(o.s<0||o.t>2*this.m.t)return o.mod(this.m);if(o.compareTo(this.m)<0)return o;var n=pe();return o.copyTo(n),this.reduce(n),n},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){for(o.drShiftTo(this.m.t-1,this.r2),o.t>this.m.t+1&&(o.t=this.m.t+1,o.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);o.compareTo(this.r2)<0;)o.dAddOffset(1,this.m.t+1);for(o.subTo(this.r2,o);o.compareTo(this.m)>=0;)o.subTo(this.m,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}();function pe(){return new ye(null)}function Me(e,o){return new ye(e,o)}var wr=typeof navigator<"u";wr&&vr&&navigator.appName=="Microsoft Internet Explorer"?(ye.prototype.am=function(o,n,a,i,r,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,u=this[o++]>>15,y=d*c+u*l;c=l*c+((y&32767)<<15)+a[i]+(r&1073741823),r=(c>>>30)+(y>>>15)+d*u+(r>>>30),a[i++]=c&1073741823}return r},Tt=30):wr&&vr&&navigator.appName!="Netscape"?(ye.prototype.am=function(o,n,a,i,r,s){for(;--s>=0;){var l=n*this[o++]+a[i]+r;r=Math.floor(l/67108864),a[i++]=l&67108863}return r},Tt=26):(ye.prototype.am=function(o,n,a,i,r,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,u=this[o++]>>14,y=d*c+u*l;c=l*c+((y&16383)<<14)+a[i]+r,r=(c>>28)+(y>>14)+d*u,a[i++]=c&268435455}return r},Tt=28),ye.prototype.DB=Tt,ye.prototype.DM=(1<<Tt)-1,ye.prototype.DV=1<<Tt;var Ro=52;ye.prototype.FV=Math.pow(2,Ro),ye.prototype.F1=Ro-Tt,ye.prototype.F2=2*Tt-Ro;var vn=[],Yt,st;for(Yt="0".charCodeAt(0),st=0;st<=9;++st)vn[Yt++]=st;for(Yt="a".charCodeAt(0),st=10;st<36;++st)vn[Yt++]=st;for(Yt="A".charCodeAt(0),st=10;st<36;++st)vn[Yt++]=st;function Ar(e,o){var n=vn[e.charCodeAt(o)];return n??-1}function Bt(e){var o=pe();return o.fromInt(e),o}function Sn(e){var o=1,n;return(n=e>>>16)!=0&&(e=n,o+=16),(n=e>>8)!=0&&(e=n,o+=8),(n=e>>4)!=0&&(e=n,o+=4),(n=e>>2)!=0&&(e=n,o+=2),(n=e>>1)!=0&&(e=n,o+=1),o}ye.ZERO=Bt(0),ye.ONE=Bt(1);var Dc=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(o){var n,a,i;for(n=0;n<256;++n)this.S[n]=n;for(a=0,n=0;n<256;++n)a=a+this.S[n]+o[n%o.length]&255,i=this.S[n],this.S[n]=this.S[a],this.S[a]=i;this.i=0,this.j=0},e.prototype.next=function(){var o;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,o=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=o,this.S[o+this.S[this.i]&255]},e}();function Ic(){return new Dc}var kr=256,Cn,Et=null,gt;if(Et==null){Et=[],gt=0;var wn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Lo=new Uint32Array(256);for(window.crypto.getRandomValues(Lo),wn=0;wn<Lo.length;++wn)Et[gt++]=Lo[wn]&255}var An=0,kn=function(e){if(An=An||0,An>=256||gt>=kr){window.removeEventListener?window.removeEventListener("mousemove",kn,!1):window.detachEvent&&window.detachEvent("onmousemove",kn);return}try{var o=e.x+e.y;Et[gt++]=o&255,An+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",kn,!1):window.attachEvent&&window.attachEvent("onmousemove",kn))}function Rc(){if(Cn==null){for(Cn=Ic();gt<kr;){var e=Math.floor(65536*Math.random());Et[gt++]=e&255}for(Cn.init(Et),gt=0;gt<Et.length;++gt)Et[gt]=0;gt=0}return Cn.next()}var _o=function(){function e(){}return e.prototype.nextBytes=function(o){for(var n=0;n<o.length;++n)o[n]=Rc()},e}();function Lc(e,o){if(o<e.length+22)return console.error("Message too long for RSA"),null;for(var n=o-e.length-6,a="",i=0;i<n;i+=2)a+="ff";var r="0001"+a+"00"+e;return Me(r,16)}function _c(e,o){if(o<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],a=e.length-1;a>=0&&o>0;){var i=e.charCodeAt(a--);i<128?n[--o]=i:i>127&&i<2048?(n[--o]=i&63|128,n[--o]=i>>6|192):(n[--o]=i&63|128,n[--o]=i>>6&63|128,n[--o]=i>>12|224)}n[--o]=0;for(var r=new _o,s=[];o>2;){for(s[0]=0;s[0]==0;)r.nextBytes(s);n[--o]=s[0]}return n[--o]=2,n[--o]=0,new ye(n)}var Nc=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(o){return o.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(o){if(this.p==null||this.q==null)return o.modPow(this.d,this.n);for(var n=o.mod(this.p).modPow(this.dmp1,this.p),a=o.mod(this.q).modPow(this.dmq1,this.q);n.compareTo(a)<0;)n=n.add(this.p);return n.subtract(a).multiply(this.coeff).mod(this.p).multiply(this.q).add(a)},e.prototype.setPublic=function(o,n){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Me(o,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(o){var n=this.n.bitLength()+7>>3,a=_c(o,n);if(a==null)return null;var i=this.doPublic(a);if(i==null)return null;for(var r=i.toString(16),s=r.length,l=0;l<n*2-s;l++)r="0"+r;return r},e.prototype.setPrivate=function(o,n,a){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Me(o,16),this.e=parseInt(n,16),this.d=Me(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(o,n,a,i,r,s,l,d){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Me(o,16),this.e=parseInt(n,16),this.d=Me(a,16),this.p=Me(i,16),this.q=Me(r,16),this.dmp1=Me(s,16),this.dmq1=Me(l,16),this.coeff=Me(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,n){var a=new _o,i=o>>1;this.e=parseInt(n,16);for(var r=new ye(n,16);;){for(;this.p=new ye(o-i,1,a),!(this.p.subtract(ye.ONE).gcd(r).compareTo(ye.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ye(i,1,a),!(this.q.subtract(ye.ONE).gcd(r).compareTo(ye.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(ye.ONE),d=this.q.subtract(ye.ONE),c=l.multiply(d);if(c.gcd(r).compareTo(ye.ONE)==0){this.n=this.p.multiply(this.q),this.d=r.modInverse(c),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(d),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(o){var n=Me(o,16),a=this.doPrivate(n);return a==null?null:Oc(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,n,a){var i=new _o,r=o>>1;this.e=parseInt(n,16);var s=new ye(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(ye.ONE),m=l.q.subtract(ye.ONE),h=g.multiply(m);h.gcd(s).compareTo(ye.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=pe(),l.q.fromNumberAsync(r,1,i,function(){l.q.subtract(ye.ONE).gcda(s,function(f){f.compareTo(ye.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},y=function(){l.p=pe(),l.p.fromNumberAsync(o-r,1,i,function(){l.p.subtract(ye.ONE).gcda(s,function(f){f.compareTo(ye.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(y,0)})})};setTimeout(y,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var i=Fc(a),r=i+n(o).toString(),s=Lc(r,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var d=l.toString(16);return d.length&1?"0"+d:d},e.prototype.verify=function(o,n,a){var i=Me(n,16),r=this.doPublic(i);if(r==null)return null;var s=r.toString(16).replace(/^1f+00/,""),l=Mc(s);return l==a(o).toString()},e}();function Oc(e,o){for(var n=e.toByteArray(),a=0;a<n.length&&n[a]==0;)++a;if(n.length-a!=o-1||n[a]!=2)return null;for(++a;n[a]!=0;)if(++a>=n.length)return null;for(var i="";++a<n.length;){var r=n[a]&255;r<128?i+=String.fromCharCode(r):r>191&&r<224?(i+=String.fromCharCode((r&31)<<6|n[a+1]&63),++a):(i+=String.fromCharCode((r&15)<<12|(n[a+1]&63)<<6|n[a+2]&63),a+=2)}return i}var Tn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Fc(e){return Tn[e]||""}function Mc(e){for(var o in Tn)if(Tn.hasOwnProperty(o)){var n=Tn[o],a=n.length;if(e.substr(0,a)==n)return e.substr(a)}return e}/*!
76
+ `,l="",d=o+1;d<n;++d){for(var c=this.get(d),u=d==n-1?i:0,x=7;x>=u;--x)l+=c>>x&1?"1":"0";if(l.length>a)return s+Yt(l,a)}return s+l},e.prototype.parseOctetString=function(o,n,a){if(this.isASCII(o,n))return Yt(this.parseStringISO(o,n),a);var i=n-o,r="("+i+` byte)
77
+ `;a/=2,i>a&&(n=o+a);for(var s=o;s<n;++s)r+=this.hexByte(this.get(s));return i>a&&(r+=pr),r},e.prototype.parseOID=function(o,n,a){for(var i="",r=new rn,s=0,l=o;l<n;++l){var d=this.get(l);if(r.mulAdd(128,d&127),s+=7,!(d&128)){if(i==="")if(r=r.simplify(),r instanceof rn)r.sub(80),i="2."+r.toString();else{var c=r<80?r<40?0:1:2;i=c+"."+(r-c*40)}else i+="."+r.toString();if(i.length>a)return Yt(i,a);r=new rn,s=0}}return s>0&&(i+=".incomplete"),i},e}(),Ac=function(){function e(o,n,a,i,r){if(!(i instanceof br))throw new Error("Invalid tag value.");this.stream=o,this.header=n,this.length=a,this.tag=i,this.sub=r}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(o){if(this.tag===void 0)return null;o===void 0&&(o=1/0);var n=this.posContent(),a=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+a,o);switch(this.tag.tagNumber){case 1:return this.stream.get(n)===0?"false":"true";case 2:return this.stream.parseInteger(n,n+a);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(n,n+a,o);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+a,o);case 6:return this.stream.parseOID(n,n+a,o);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Yt(this.stream.parseStringUTF(n,n+a),o);case 18:case 19:case 20:case 21:case 22:case 26:return Yt(this.stream.parseStringISO(n,n+a),o);case 30:return Yt(this.stream.parseStringBMP(n,n+a),o);case 23:case 24:return this.stream.parseTime(n,n+a,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(o){o===void 0&&(o="");var n=o+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(n+="+"),n+=this.length,this.tag.tagConstructed?n+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(n+=" (encapsulates)"),n+=`
78
+ `,this.sub!==null){o+=" ";for(var a=0,i=this.sub.length;a<i;++a)n+=this.sub[a].toPrettyString(o)}return n},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(o){var n=o.get(),a=n&127;if(a==n)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(o.pos-1));if(a===0)return null;n=0;for(var i=0;i<a;++i)n=n*256+o.get();return n},e.prototype.getHexStringValue=function(){var o=this.toHexString(),n=this.header*2,a=this.length*2;return o.substr(n,a)},e.decode=function(o){var n;o instanceof Io?n=o:n=new Io(o,0);var a=new Io(n),i=new br(n),r=e.decodeLength(n),s=n.pos,l=s-a.pos,d=null,c=function(){var x=[];if(r!==null){for(var f=s+r;n.pos<f;)x[x.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 m=e.decode(n);if(m.tag.isEOC())break;x[x.length]=m}r=s-n.pos}catch(y){throw new Error("Exception while decoding undefined length content: "+y)}return x};if(i.tagConstructed)d=c();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");d=c();for(var u=0;u<d.length;++u)if(d[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{d=null}if(d===null){if(r===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(r)}return new e(a,l,r,i,d)},e}(),br=function(){function e(o){var n=o.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var a=new rn;do n=o.get(),a.mulAdd(128,n&127);while(n&128);this.tagNumber=a.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Tt,kc=0xdeadbeefcafe,vr=(kc&16777215)==15715070,Qe=[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],Tc=(1<<26)/Qe[Qe.length-1],ye=function(){function e(o,n,a){o!=null&&(typeof o=="number"?this.fromNumber(o,n,a):n==null&&typeof o!="string"?this.fromString(o,256):this.fromString(o,n))}return e.prototype.toString=function(o){if(this.s<0)return"-"+this.negate().toString(o);var n;if(o==16)n=4;else if(o==8)n=3;else if(o==2)n=1;else if(o==32)n=5;else if(o==4)n=2;else return this.toRadix(o);var a=(1<<n)-1,i,r=!1,s="",l=this.t,d=this.DB-l*this.DB%n;if(l-- >0)for(d<this.DB&&(i=this[l]>>d)>0&&(r=!0,s=St(i));l>=0;)d<n?(i=(this[l]&(1<<d)-1)<<n-d,i|=this[--l]>>(d+=this.DB-n)):(i=this[l]>>(d-=n)&a,d<=0&&(d+=this.DB,--l)),i>0&&(r=!0),r&&(s+=St(i));return r?s:"0"},e.prototype.negate=function(){var o=be();return e.ZERO.subTo(this,o),o},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(o){var n=this.s-o.s;if(n!=0)return n;var a=this.t;if(n=a-o.t,n!=0)return this.s<0?-n:n;for(;--a>=0;)if((n=this[a]-o[a])!=0)return n;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Sn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var n=be();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 Sr(n):a=new Cr(n),this.exp(o,a)},e.prototype.clone=function(){var o=be();return this.copyTo(o),o},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var o=this.t,n=[];n[0]=this.s;var a=this.DB-o*this.DB%8,i,r=0;if(o-- >0)for(a<this.DB&&(i=this[o]>>a)!=(this.s&this.DM)>>a&&(n[r++]=i|this.s<<this.DB-a);o>=0;)a<8?(i=(this[o]&(1<<a)-1)<<8-a,i|=this[--o]>>(a+=this.DB-8)):(i=this[o]>>(a-=8)&255,a<=0&&(a+=this.DB,--o)),i&128&&(i|=-256),r==0&&(this.s&128)!=(i&128)&&++r,(r>0||i!=this.s)&&(n[r++]=i);return n},e.prototype.equals=function(o){return this.compareTo(o)==0},e.prototype.min=function(o){return this.compareTo(o)<0?this:o},e.prototype.max=function(o){return this.compareTo(o)>0?this:o},e.prototype.and=function(o){var n=be();return this.bitwiseTo(o,pc,n),n},e.prototype.or=function(o){var n=be();return this.bitwiseTo(o,pn,n),n},e.prototype.xor=function(o){var n=be();return this.bitwiseTo(o,gr,n),n},e.prototype.andNot=function(o){var n=be();return this.bitwiseTo(o,mr,n),n},e.prototype.not=function(){for(var o=be(),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=be();return o<0?this.rShiftTo(-o,n):this.lShiftTo(o,n),n},e.prototype.shiftRight=function(o){var n=be();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+bc(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+=vc(this[a]^n);return o},e.prototype.testBit=function(o){var n=Math.floor(o/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<o%this.DB)!=0},e.prototype.setBit=function(o){return this.changeBit(o,pn)},e.prototype.clearBit=function(o){return this.changeBit(o,mr)},e.prototype.flipBit=function(o){return this.changeBit(o,gr)},e.prototype.add=function(o){var n=be();return this.addTo(o,n),n},e.prototype.subtract=function(o){var n=be();return this.subTo(o,n),n},e.prototype.multiply=function(o){var n=be();return this.multiplyTo(o,n),n},e.prototype.divide=function(o){var n=be();return this.divRemTo(o,n,null),n},e.prototype.remainder=function(o){var n=be();return this.divRemTo(o,null,n),n},e.prototype.divideAndRemainder=function(o){var n=be(),a=be();return this.divRemTo(o,n,a),[n,a]},e.prototype.modPow=function(o,n){var a=o.bitLength(),i,r=Bt(1),s;if(a<=0)return r;a<18?i=1:a<48?i=3:a<144?i=4:a<768?i=5:i=6,a<8?s=new Sr(n):n.isEven()?s=new Ec(n):s=new Cr(n);var l=[],d=3,c=i-1,u=(1<<i)-1;if(l[1]=s.convert(this),i>1){var x=be();for(s.sqrTo(l[1],x);d<=u;)l[d]=be(),s.mulTo(x,l[d-2],l[d]),d+=2}var f=o.t-1,m,y=!0,g=be(),S;for(a=Sn(o[f])-1;f>=0;){for(a>=c?m=o[f]>>a-c&u:(m=(o[f]&(1<<a+1)-1)<<c-a,f>0&&(m|=o[f-1]>>this.DB+a-c)),d=i;!(m&1);)m>>=1,--d;if((a-=d)<0&&(a+=this.DB,--f),y)l[m].copyTo(r),y=!1;else{for(;d>1;)s.sqrTo(r,g),s.sqrTo(g,r),d-=2;d>0?s.sqrTo(r,g):(S=r,r=g,g=S),s.mulTo(g,l[m],r)}for(;f>=0&&!(o[f]&1<<a);)s.sqrTo(r,g),S=r,r=g,g=S,--a<0&&(a=this.DB-1,--f)}return s.revert(r)},e.prototype.modInverse=function(o){var n=o.isEven();if(this.isEven()&&n||o.signum()==0)return e.ZERO;for(var a=o.clone(),i=this.clone(),r=Bt(1),s=Bt(0),l=Bt(0),d=Bt(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),n?((!r.isEven()||!s.isEven())&&(r.addTo(this,r),s.subTo(o,s)),r.rShiftTo(1,r)):s.isEven()||s.subTo(o,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),n?((!l.isEven()||!d.isEven())&&(l.addTo(this,l),d.subTo(o,d)),l.rShiftTo(1,l)):d.isEven()||d.subTo(o,d),d.rShiftTo(1,d);a.compareTo(i)>=0?(a.subTo(i,a),n&&r.subTo(l,r),s.subTo(d,s)):(i.subTo(a,i),n&&l.subTo(r,l),d.subTo(s,d))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(d.compareTo(o)>=0)return d.subtract(o);if(d.signum()<0)d.addTo(o,d);else return d;return d.signum()<0?d.add(o):d},e.prototype.pow=function(o){return this.exp(o,new Bc)},e.prototype.gcd=function(o){var n=this.s<0?this.negate():this.clone(),a=o.s<0?o.negate():o.clone();if(n.compareTo(a)<0){var i=n;n=a,a=i}var r=n.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return n;for(r<s&&(s=r),s>0&&(n.rShiftTo(s,n),a.rShiftTo(s,a));n.signum()>0;)(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),(r=a.getLowestSetBit())>0&&a.rShiftTo(r,a),n.compareTo(a)>=0?(n.subTo(a,n),n.rShiftTo(1,n)):(a.subTo(n,a),a.rShiftTo(1,a));return s>0&&a.lShiftTo(s,a),a},e.prototype.isProbablePrime=function(o){var n,a=this.abs();if(a.t==1&&a[0]<=Qe[Qe.length-1]){for(n=0;n<Qe.length;++n)if(a[0]==Qe[n])return!0;return!1}if(a.isEven())return!1;for(n=1;n<Qe.length;){for(var i=Qe[n],r=n+1;r<Qe.length&&i<Tc;)i*=Qe[r++];for(i=a.modInt(i);n<r;)if(i%Qe[n++]==0)return!1}return a.millerRabin(o)},e.prototype.copyTo=function(o){for(var n=this.t-1;n>=0;--n)o[n]=this[n];o.t=this.t,o.s=this.s},e.prototype.fromInt=function(o){this.t=1,this.s=o<0?-1:0,o>0?this[0]=o:o<-1?this[0]=o+this.DV:this.t=0},e.prototype.fromString=function(o,n){var a;if(n==16)a=4;else if(n==8)a=3;else if(n==256)a=8;else if(n==2)a=1;else if(n==32)a=5;else if(n==4)a=2;else{this.fromRadix(o,n);return}this.t=0,this.s=0;for(var i=o.length,r=!1,s=0;--i>=0;){var l=a==8?+o[i]&255:Ar(o,i);if(l<0){o.charAt(i)=="-"&&(r=!0);continue}r=!1,s==0?this[this.t++]=l:s+a>this.DB?(this[this.t-1]|=(l&(1<<this.DB-s)-1)<<s,this[this.t++]=l>>this.DB-s):this[this.t-1]|=l<<s,s+=a,s>=this.DB&&(s-=this.DB)}a==8&&+o[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),r&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var o=this.s&this.DM;this.t>0&&this[this.t-1]==o;)--this.t},e.prototype.dlShiftTo=function(o,n){var a;for(a=this.t-1;a>=0;--a)n[a+o]=this[a];for(a=o-1;a>=0;--a)n[a]=0;n.t=this.t+o,n.s=this.s},e.prototype.drShiftTo=function(o,n){for(var a=o;a<this.t;++a)n[a-o]=this[a];n.t=Math.max(this.t-o,0),n.s=this.s},e.prototype.lShiftTo=function(o,n){for(var a=o%this.DB,i=this.DB-a,r=(1<<i)-1,s=Math.floor(o/this.DB),l=this.s<<a&this.DM,d=this.t-1;d>=0;--d)n[d+s+1]=this[d]>>i|l,l=(this[d]&r)<<a;for(var d=s-1;d>=0;--d)n[d]=0;n[s]=l,n.t=this.t+s+1,n.s=this.s,n.clamp()},e.prototype.rShiftTo=function(o,n){n.s=this.s;var a=Math.floor(o/this.DB);if(a>=this.t){n.t=0;return}var i=o%this.DB,r=this.DB-i,s=(1<<i)-1;n[0]=this[a]>>i;for(var l=a+1;l<this.t;++l)n[l-a-1]|=(this[l]&s)<<r,n[l-a]=this[l]>>i;i>0&&(n[this.t-a-1]|=(this.s&s)<<r),n.t=this.t-a,n.clamp()},e.prototype.subTo=function(o,n){for(var a=0,i=0,r=Math.min(o.t,this.t);a<r;)i+=this[a]-o[a],n[a++]=i&this.DM,i>>=this.DB;if(o.t<this.t){for(i-=o.s;a<this.t;)i+=this[a],n[a++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;a<o.t;)i-=o[a],n[a++]=i&this.DM,i>>=this.DB;i-=o.s}n.s=i<0?-1:0,i<-1?n[a++]=this.DV+i:i>0&&(n[a++]=i),n.t=a,n.clamp()},e.prototype.multiplyTo=function(o,n){var a=this.abs(),i=o.abs(),r=a.t;for(n.t=r+i.t;--r>=0;)n[r]=0;for(r=0;r<i.t;++r)n[r+a.t]=a.am(0,i[r],n,r,0,a.t);n.s=0,n.clamp(),this.s!=o.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(o){for(var n=this.abs(),a=o.t=2*n.t;--a>=0;)o[a]=0;for(a=0;a<n.t-1;++a){var i=n.am(a,n[a],o,2*a,0,1);(o[a+n.t]+=n.am(a+1,2*n[a],o,2*a+1,i,n.t-a-1))>=n.DV&&(o[a+n.t]-=n.DV,o[a+n.t+1]=1)}o.t>0&&(o[o.t-1]+=n.am(a,n[a],o,2*a,0,1)),o.s=0,o.clamp()},e.prototype.divRemTo=function(o,n,a){var i=o.abs();if(!(i.t<=0)){var r=this.abs();if(r.t<i.t){n!=null&&n.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=be());var s=be(),l=this.s,d=o.s,c=this.DB-Sn(i[i.t-1]);c>0?(i.lShiftTo(c,s),r.lShiftTo(c,a)):(i.copyTo(s),r.copyTo(a));var u=s.t,x=s[u-1];if(x!=0){var f=x*(1<<this.F1)+(u>1?s[u-2]>>this.F2:0),m=this.FV/f,y=(1<<this.F1)/f,g=1<<this.F2,S=a.t,L=S-u,b=n??be();for(s.dlShiftTo(L,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(;--L>=0;){var h=a[--S]==x?this.DM:Math.floor(a[S]*m+(a[S-1]+g)*y);if((a[S]+=s.am(0,h,a,L,0,u))<h)for(s.dlShiftTo(L,b),a.subTo(b,a);a[S]<--h;)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=be(),i=be(),r=n.convert(this),s=Sn(o)-1;for(r.copyTo(a);--s>=0;)if(n.sqrTo(a,i),(o&1<<s)>0)n.mulTo(i,r,a);else{var l=a;a=i,i=l}return n.revert(a)},e.prototype.chunkSize=function(o){return Math.floor(Math.LN2*this.DB/Math.log(o))},e.prototype.toRadix=function(o){if(o==null&&(o=10),this.signum()==0||o<2||o>36)return"0";var n=this.chunkSize(o),a=Math.pow(o,n),i=Bt(a),r=be(),s=be(),l="";for(this.divRemTo(i,r,s);r.signum()>0;)l=(a+s.intValue()).toString(o).substr(1)+l,r.divRemTo(i,r,s);return s.intValue().toString(o)+l},e.prototype.fromRadix=function(o,n){this.fromInt(0),n==null&&(n=10);for(var a=this.chunkSize(n),i=Math.pow(n,a),r=!1,s=0,l=0,d=0;d<o.length;++d){var c=Ar(o,d);if(c<0){o.charAt(d)=="-"&&this.signum()==0&&(r=!0);continue}l=n*l+c,++s>=a&&(this.dMultiply(i),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(l,0)),r&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(o,n,a){if(typeof n=="number")if(o<2)this.fromInt(1);else for(this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),pn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>o&&this.subTo(e.ONE.shiftLeft(o-1),this);else{var i=[],r=o&7;i.length=(o>>3)+1,n.nextBytes(i),r>0?i[0]&=(1<<r)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(o,n,a){var i,r,s=Math.min(o.t,this.t);for(i=0;i<s;++i)a[i]=n(this[i],o[i]);if(o.t<this.t){for(r=o.s&this.DM,i=s;i<this.t;++i)a[i]=n(this[i],r);a.t=this.t}else{for(r=this.s&this.DM,i=s;i<o.t;++i)a[i]=n(r,o[i]);a.t=o.t}a.s=n(this.s,o.s),a.clamp()},e.prototype.changeBit=function(o,n){var a=e.ONE.shiftLeft(o);return this.bitwiseTo(a,n,a),a},e.prototype.addTo=function(o,n){for(var a=0,i=0,r=Math.min(o.t,this.t);a<r;)i+=this[a]+o[a],n[a++]=i&this.DM,i>>=this.DB;if(o.t<this.t){for(i+=o.s;a<this.t;)i+=this[a],n[a++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;a<o.t;)i+=o[a],n[a++]=i&this.DM,i>>=this.DB;i+=o.s}n.s=i<0?-1:0,i>0?n[a++]=i:i<-1&&(n[a++]=this.DV+i),n.t=a,n.clamp()},e.prototype.dMultiply=function(o){this[this.t]=this.am(0,o-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(o,n){if(o!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=o;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},e.prototype.multiplyLowerTo=function(o,n,a){var i=Math.min(this.t+o.t,n);for(a.s=0,a.t=i;i>0;)a[--i]=0;for(var r=a.t-this.t;i<r;++i)a[i+this.t]=this.am(0,o[i],a,i,0,this.t);for(var r=Math.min(o.t,n);i<r;++i)this.am(0,o[i],a,i,0,n-i);a.clamp()},e.prototype.multiplyUpperTo=function(o,n,a){--n;var i=a.t=this.t+o.t-n;for(a.s=0;--i>=0;)a[i]=0;for(i=Math.max(n-this.t,0);i<o.t;++i)a[this.t+i-n]=this.am(n-i,o[i],a,0,0,this.t+i-n);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(o){if(o<=0)return 0;var n=this.DV%o,a=this.s<0?o-1:0;if(this.t>0)if(n==0)a=this[0]%o;else for(var i=this.t-1;i>=0;--i)a=(n*a+this[i])%o;return a},e.prototype.millerRabin=function(o){var n=this.subtract(e.ONE),a=n.getLowestSetBit();if(a<=0)return!1;var i=n.shiftRight(a);o=o+1>>1,o>Qe.length&&(o=Qe.length);for(var r=be(),s=0;s<o;++s){r.fromInt(Qe[Math.floor(Math.random()*Qe.length)]);var l=r.modPow(i,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(n)!=0){for(var d=1;d++<a&&l.compareTo(n)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(n)!=0)return!1}}return!0},e.prototype.square=function(){var o=be();return this.squareTo(o),o},e.prototype.gcda=function(o,n){var a=this.s<0?this.negate():this.clone(),i=o.s<0?o.negate():o.clone();if(a.compareTo(i)<0){var r=a;a=i,i=r}var s=a.getLowestSetBit(),l=i.getLowestSetBit();if(l<0){n(a);return}s<l&&(l=s),l>0&&(a.rShiftTo(l,a),i.rShiftTo(l,i));var d=function(){(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),a.compareTo(i)>=0?(a.subTo(i,a),a.rShiftTo(1,a)):(i.subTo(a,i),i.rShiftTo(1,i)),a.signum()>0?setTimeout(d,0):(l>0&&i.lShiftTo(l,i),setTimeout(function(){n(i)},0))};setTimeout(d,10)},e.prototype.fromNumberAsync=function(o,n,a,i){if(typeof n=="number")if(o<2)this.fromInt(1);else{this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),pn,this),this.isEven()&&this.dAddOffset(1,0);var r=this,s=function(){r.dAddOffset(2,0),r.bitLength()>o&&r.subTo(e.ONE.shiftLeft(o-1),r),r.isProbablePrime(n)?setTimeout(function(){i()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],d=o&7;l.length=(o>>3)+1,n.nextBytes(l),d>0?l[0]&=(1<<d)-1:l[0]=0,this.fromString(l,256)}},e}(),Bc=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}(),Sr=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}(),Cr=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=be();return o.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),o.s<0&&n.compareTo(ye.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(o){var n=be();return o.copyTo(n),this.reduce(n),n},e.prototype.reduce=function(o){for(;o.t<=this.mt2;)o[o.t++]=0;for(var n=0;n<this.m.t;++n){var a=o[n]&32767,i=a*this.mpl+((a*this.mph+(o[n]>>15)*this.mpl&this.um)<<15)&o.DM;for(a=n+this.m.t,o[a]+=this.m.am(0,i,o,n,0,this.m.t);o[a]>=o.DV;)o[a]-=o.DV,o[++a]++}o.clamp(),o.drShiftTo(this.m.t,o),o.compareTo(this.m)>=0&&o.subTo(this.m,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}(),Ec=function(){function e(o){this.m=o,this.r2=be(),this.q3=be(),ye.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=be();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 be(){return new ye(null)}function Fe(e,o){return new ye(e,o)}var wr=typeof navigator<"u";wr&&vr&&navigator.appName=="Microsoft Internet Explorer"?(ye.prototype.am=function(o,n,a,i,r,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,u=this[o++]>>15,x=d*c+u*l;c=l*c+((x&32767)<<15)+a[i]+(r&1073741823),r=(c>>>30)+(x>>>15)+d*u+(r>>>30),a[i++]=c&1073741823}return r},Tt=30):wr&&vr&&navigator.appName!="Netscape"?(ye.prototype.am=function(o,n,a,i,r,s){for(;--s>=0;){var l=n*this[o++]+a[i]+r;r=Math.floor(l/67108864),a[i++]=l&67108863}return r},Tt=26):(ye.prototype.am=function(o,n,a,i,r,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,u=this[o++]>>14,x=d*c+u*l;c=l*c+((x&16383)<<14)+a[i]+r,r=(c>>28)+(x>>14)+d*u,a[i++]=c&268435455}return r},Tt=28),ye.prototype.DB=Tt,ye.prototype.DM=(1<<Tt)-1,ye.prototype.DV=1<<Tt;var Ro=52;ye.prototype.FV=Math.pow(2,Ro),ye.prototype.F1=Ro-Tt,ye.prototype.F2=2*Tt-Ro;var vn=[],Kt,ct;for(Kt="0".charCodeAt(0),ct=0;ct<=9;++ct)vn[Kt++]=ct;for(Kt="a".charCodeAt(0),ct=10;ct<36;++ct)vn[Kt++]=ct;for(Kt="A".charCodeAt(0),ct=10;ct<36;++ct)vn[Kt++]=ct;function Ar(e,o){var n=vn[e.charCodeAt(o)];return n??-1}function Bt(e){var o=be();return o.fromInt(e),o}function Sn(e){var o=1,n;return(n=e>>>16)!=0&&(e=n,o+=16),(n=e>>8)!=0&&(e=n,o+=8),(n=e>>4)!=0&&(e=n,o+=4),(n=e>>2)!=0&&(e=n,o+=2),(n=e>>1)!=0&&(e=n,o+=1),o}ye.ZERO=Bt(0),ye.ONE=Bt(1);var Dc=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(o){var n,a,i;for(n=0;n<256;++n)this.S[n]=n;for(a=0,n=0;n<256;++n)a=a+this.S[n]+o[n%o.length]&255,i=this.S[n],this.S[n]=this.S[a],this.S[a]=i;this.i=0,this.j=0},e.prototype.next=function(){var o;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,o=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=o,this.S[o+this.S[this.i]&255]},e}();function Ic(){return new Dc}var kr=256,Cn,Et=null,gt;if(Et==null){Et=[],gt=0;var wn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Lo=new Uint32Array(256);for(window.crypto.getRandomValues(Lo),wn=0;wn<Lo.length;++wn)Et[gt++]=Lo[wn]&255}var An=0,kn=function(e){if(An=An||0,An>=256||gt>=kr){window.removeEventListener?window.removeEventListener("mousemove",kn,!1):window.detachEvent&&window.detachEvent("onmousemove",kn);return}try{var o=e.x+e.y;Et[gt++]=o&255,An+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",kn,!1):window.attachEvent&&window.attachEvent("onmousemove",kn))}function Rc(){if(Cn==null){for(Cn=Ic();gt<kr;){var e=Math.floor(65536*Math.random());Et[gt++]=e&255}for(Cn.init(Et),gt=0;gt<Et.length;++gt)Et[gt]=0;gt=0}return Cn.next()}var _o=function(){function e(){}return e.prototype.nextBytes=function(o){for(var n=0;n<o.length;++n)o[n]=Rc()},e}();function Lc(e,o){if(o<e.length+22)return console.error("Message too long for RSA"),null;for(var n=o-e.length-6,a="",i=0;i<n;i+=2)a+="ff";var r="0001"+a+"00"+e;return Fe(r,16)}function _c(e,o){if(o<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],a=e.length-1;a>=0&&o>0;){var i=e.charCodeAt(a--);i<128?n[--o]=i:i>127&&i<2048?(n[--o]=i&63|128,n[--o]=i>>6|192):(n[--o]=i&63|128,n[--o]=i>>6&63|128,n[--o]=i>>12|224)}n[--o]=0;for(var r=new _o,s=[];o>2;){for(s[0]=0;s[0]==0;)r.nextBytes(s);n[--o]=s[0]}return n[--o]=2,n[--o]=0,new ye(n)}var Nc=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=Fe(o,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(o){var n=this.n.bitLength()+7>>3,a=_c(o,n);if(a==null)return null;var i=this.doPublic(a);if(i==null)return null;for(var r=i.toString(16),s=r.length,l=0;l<n*2-s;l++)r="0"+r;return r},e.prototype.setPrivate=function(o,n,a){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Fe(o,16),this.e=parseInt(n,16),this.d=Fe(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(o,n,a,i,r,s,l,d){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Fe(o,16),this.e=parseInt(n,16),this.d=Fe(a,16),this.p=Fe(i,16),this.q=Fe(r,16),this.dmp1=Fe(s,16),this.dmq1=Fe(l,16),this.coeff=Fe(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,n){var a=new _o,i=o>>1;this.e=parseInt(n,16);for(var r=new ye(n,16);;){for(;this.p=new ye(o-i,1,a),!(this.p.subtract(ye.ONE).gcd(r).compareTo(ye.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ye(i,1,a),!(this.q.subtract(ye.ONE).gcd(r).compareTo(ye.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(ye.ONE),d=this.q.subtract(ye.ONE),c=l.multiply(d);if(c.gcd(r).compareTo(ye.ONE)==0){this.n=this.p.multiply(this.q),this.d=r.modInverse(c),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(d),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(o){var n=Fe(o,16),a=this.doPrivate(n);return a==null?null:Oc(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,n,a){var i=new _o,r=o>>1;this.e=parseInt(n,16);var s=new ye(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 m=l.p.subtract(ye.ONE),y=l.q.subtract(ye.ONE),g=m.multiply(y);g.gcd(s).compareTo(ye.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(g),l.dmp1=l.d.mod(m),l.dmq1=l.d.mod(y),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},u=function(){l.q=be(),l.q.fromNumberAsync(r,1,i,function(){l.q.subtract(ye.ONE).gcda(s,function(f){f.compareTo(ye.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},x=function(){l.p=be(),l.p.fromNumberAsync(o-r,1,i,function(){l.p.subtract(ye.ONE).gcda(s,function(f){f.compareTo(ye.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(x,0)})})};setTimeout(x,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var i=Fc(a),r=i+n(o).toString(),s=Lc(r,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var d=l.toString(16);return d.length&1?"0"+d:d},e.prototype.verify=function(o,n,a){var i=Fe(n,16),r=this.doPublic(i);if(r==null)return null;var s=r.toString(16).replace(/^1f+00/,""),l=Mc(s);return l==a(o).toString()},e}();function Oc(e,o){for(var n=e.toByteArray(),a=0;a<n.length&&n[a]==0;)++a;if(n.length-a!=o-1||n[a]!=2)return null;for(++a;n[a]!=0;)if(++a>=n.length)return null;for(var i="";++a<n.length;){var r=n[a]&255;r<128?i+=String.fromCharCode(r):r>191&&r<224?(i+=String.fromCharCode((r&31)<<6|n[a+1]&63),++a):(i+=String.fromCharCode((r&15)<<12|(n[a+1]&63)<<6|n[a+2]&63),a+=2)}return i}var Tn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Fc(e){return Tn[e]||""}function Mc(e){for(var o in Tn)if(Tn.hasOwnProperty(o)){var n=Tn[o],a=n.length;if(e.substr(0,a)==n)return e.substr(a)}return e}/*!
79
79
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
80
80
  Code licensed under the BSD License:
81
81
  http://developer.yahoo.com/yui/license.html
82
82
  version: 2.9.0
83
- */var ze={};ze.lang={extend:function(e,o,n){if(!o||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var a=function(){};if(a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e,e.superclass=o.prototype,o.prototype.constructor==Object.prototype.constructor&&(o.prototype.constructor=o),n){var i;for(i in n)e.prototype[i]=n[i];var r=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(r=function(l,d){for(i=0;i<s.length;i=i+1){var c=s[i],u=d[c];typeof u=="function"&&u!=Object.prototype[c]&&(l[c]=u)}})}catch{}r(e.prototype,n)}}};/**
83
+ */var Me={};Me.lang={extend:function(e,o,n){if(!o||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var a=function(){};if(a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e,e.superclass=o.prototype,o.prototype.constructor==Object.prototype.constructor&&(o.prototype.constructor=o),n){var i;for(i in n)e.prototype[i]=n[i];var r=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(r=function(l,d){for(i=0;i<s.length;i=i+1){var c=s[i],u=d[c];typeof u=="function"&&u!=Object.prototype[c]&&(l[c]=u)}})}catch{}r(e.prototype,n)}}};/**
84
84
  * @fileOverview
85
85
  * @name asn1-1.0.js
86
86
  * @author Kenji Urushima kenji.urushima@gmail.com
87
87
  * @version asn1 1.0.13 (2017-Jun-02)
88
88
  * @since jsrsasign 2.1
89
89
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
90
- */var Y={};(typeof Y.asn1>"u"||!Y.asn1)&&(Y.asn1={}),Y.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var o=e.toString(16);return o.length%2==1&&(o="0"+o),o},this.bigIntToMinTwosComplementsHex=function(e){var o=e.toString(16);if(o.substr(0,1)!="-")o.length%2==1?o="0"+o:o.match(/^[0-7]/)||(o="00"+o);else{var n=o.substr(1),a=n.length;a%2==1?a+=1:o.match(/^[0-7]/)||(a+=2);for(var i="",r=0;r<a;r++)i+="f";var s=new ye(i,16),l=s.xor(e).add(ye.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=Y,n=o.asn1,a=n.DERBoolean,i=n.DERInteger,r=n.DERBitString,s=n.DEROctetString,l=n.DERNull,d=n.DERObjectIdentifier,c=n.DEREnumerated,u=n.DERUTF8String,y=n.DERNumericString,f=n.DERPrintableString,g=n.DERTeletexString,m=n.DERIA5String,h=n.DERUTCTime,C=n.DERGeneralizedTime,v=n.DERSequence,x=n.DERSet,p=n.DERTaggedObject,b=n.ASN1Util.newObject,k=Object.keys(e);if(k.length!=1)throw"key of param shall be only one.";var T=k[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 i(e[T]);if(T=="bitstr")return new r(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 C(e[T]);if(T=="seq"){for(var L=e[T],A=[],O=0;O<L.length;O++){var w=b(L[O]);A.push(w)}return new v({array:A})}if(T=="set"){for(var L=e[T],A=[],O=0;O<L.length;O++){var w=b(L[O]);A.push(w)}return new x({array:A})}if(T=="tag"){var I=e[T];if(Object.prototype.toString.call(I)==="[object Array]"&&I.length==3){var N=b(I[2]);return new p({tag:I[0],explicit:I[1],obj:N})}else{var D={};if(I.explicit!==void 0&&(D.explicit=I.explicit),I.tag!==void 0&&(D.tag=I.tag),I.obj===void 0)throw"obj shall be specified for 'tag'.";return D.obj=b(I.obj),new p(D)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},Y.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",o=parseInt(e.substr(0,2),16),n=Math.floor(o/40),a=o%40,i=n+"."+a,r="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),d=("00000000"+l.toString(2)).slice(-8);if(r=r+d.substr(1,7),d.substr(0,1)=="0"){var c=new ye(r,2);i=i+"."+c.toString(10),r=""}}return i},Y.asn1.ASN1Util.oidIntToHex=function(e){var o=function(l){var d=l.toString(16);return d.length==1&&(d="0"+d),d},n=function(l){var d="",c=new ye(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="",i=e.split("."),r=parseInt(i[0])*40+parseInt(i[1]);a+=o(r),i.splice(0,2);for(var s=0;s<i.length;s++)a+=n(i[s]);return a},Y.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var o=this.hV.length/2,n=o.toString(16);if(n.length%2==1&&(n="0"+n),o<128)return n;var a=n.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+o.toString(16);var i=128+a;return i.toString(16)+n},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},Y.asn1.DERAbstractString=function(e){Y.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(this.s)},this.setStringHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},ze.lang.extend(Y.asn1.DERAbstractString,Y.asn1.ASN1Object),Y.asn1.DERAbstractTime=function(e){Y.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(o){utc=o.getTime()+o.getTimezoneOffset()*6e4;var n=new Date(utc);return n},this.formatDate=function(o,n,a){var i=this.zeroPadding,r=this.localDateToUTC(o),s=String(r.getFullYear());n=="utc"&&(s=s.substr(2,2));var l=i(String(r.getMonth()+1),2),d=i(String(r.getDate()),2),c=i(String(r.getHours()),2),u=i(String(r.getMinutes()),2),y=i(String(r.getSeconds()),2),f=s+l+d+c+u+y;if(a===!0){var g=r.getMilliseconds();if(g!=0){var m=i(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,i,r,s){var l=new Date(Date.UTC(o,n-1,a,i,r,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},ze.lang.extend(Y.asn1.DERAbstractTime,Y.asn1.ASN1Object),Y.asn1.DERAbstractStructured=function(e){Y.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array=o},this.appendASN1Object=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array.push(o)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},ze.lang.extend(Y.asn1.DERAbstractStructured,Y.asn1.ASN1Object),Y.asn1.DERBoolean=function(){Y.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},ze.lang.extend(Y.asn1.DERBoolean,Y.asn1.ASN1Object),Y.asn1.DERInteger=function(e){Y.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=Y.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ye(String(o),10);this.setByBigInteger(n)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},ze.lang.extend(Y.asn1.DERInteger,Y.asn1.ASN1Object),Y.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=Y.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}Y.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(n){this.hTLV=null,this.isModified=!0,this.hV=n},this.setUnusedBitsAndHexValue=function(n,a){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var i="0"+n;this.hTLV=null,this.isModified=!0,this.hV=i+a},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var a=8-n.length%8;a==8&&(a=0);for(var i=0;i<=a;i++)n+="0";for(var r="",i=0;i<n.length-1;i+=8){var s=n.substr(i,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),r+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+a+r},this.setByBooleanArray=function(n){for(var a="",i=0;i<n.length;i++)n[i]==!0?a+="1":a+="0";this.setByBinaryString(a)},this.newFalseArray=function(n){for(var a=new Array(n),i=0;i<n;i++)a[i]=!1;return a},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},ze.lang.extend(Y.asn1.DERBitString,Y.asn1.ASN1Object),Y.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=Y.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}Y.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},ze.lang.extend(Y.asn1.DEROctetString,Y.asn1.DERAbstractString),Y.asn1.DERNull=function(){Y.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},ze.lang.extend(Y.asn1.DERNull,Y.asn1.ASN1Object),Y.asn1.DERObjectIdentifier=function(e){var o=function(a){var i=a.toString(16);return i.length==1&&(i="0"+i),i},n=function(a){var i="",r=new ye(a,10),s=r.toString(2),l=7-s.length%7;l==7&&(l=0);for(var d="",c=0;c<l;c++)d+="0";s=d+s;for(var c=0;c<s.length-1;c+=7){var u=s.substr(c,7);c!=s.length-7&&(u="1"+u),i+=o(parseInt(u,2))}return i};Y.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(a){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueOidString=function(a){if(!a.match(/^[0-9.]+$/))throw"malformed oid string: "+a;var i="",r=a.split("."),s=parseInt(r[0])*40+parseInt(r[1]);i+=o(s),r.splice(0,2);for(var l=0;l<r.length;l++)i+=n(r[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(a){var i=Y.asn1.x509.OID.name2oid(a);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+a},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},ze.lang.extend(Y.asn1.DERObjectIdentifier,Y.asn1.ASN1Object),Y.asn1.DEREnumerated=function(e){Y.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=Y.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ye(String(o),10);this.setByBigInteger(n)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},ze.lang.extend(Y.asn1.DEREnumerated,Y.asn1.ASN1Object),Y.asn1.DERUTF8String=function(e){Y.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},ze.lang.extend(Y.asn1.DERUTF8String,Y.asn1.DERAbstractString),Y.asn1.DERNumericString=function(e){Y.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},ze.lang.extend(Y.asn1.DERNumericString,Y.asn1.DERAbstractString),Y.asn1.DERPrintableString=function(e){Y.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},ze.lang.extend(Y.asn1.DERPrintableString,Y.asn1.DERAbstractString),Y.asn1.DERTeletexString=function(e){Y.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},ze.lang.extend(Y.asn1.DERTeletexString,Y.asn1.DERAbstractString),Y.asn1.DERIA5String=function(e){Y.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},ze.lang.extend(Y.asn1.DERIA5String,Y.asn1.DERAbstractString),Y.asn1.DERUTCTime=function(e){Y.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},ze.lang.extend(Y.asn1.DERUTCTime,Y.asn1.DERAbstractTime),Y.asn1.DERGeneralizedTime=function(e){Y.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},ze.lang.extend(Y.asn1.DERGeneralizedTime,Y.asn1.DERAbstractTime),Y.asn1.DERSequence=function(e){Y.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var o="",n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];o+=a.getEncodedHex()}return this.hV=o,this.hV}},ze.lang.extend(Y.asn1.DERSequence,Y.asn1.DERAbstractStructured),Y.asn1.DERSet=function(e){Y.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var o=new Array,n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];o.push(a.getEncodedHex())}return this.sortFlag==!0&&o.sort(),this.hV=o.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},ze.lang.extend(Y.asn1.DERSet,Y.asn1.DERAbstractStructured),Y.asn1.DERTaggedObject=function(e){Y.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(o,n,a){this.hT=n,this.isExplicit=o,this.asn1Object=a,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=a.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,n),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},ze.lang.extend(Y.asn1.DERTaggedObject,Y.asn1.ASN1Object);var zc=globalThis&&globalThis.__extends||function(){var e=function(o,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,i){a.__proto__=i}||function(a,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i[r])},e(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(o,n);function a(){this.constructor=o}o.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Tr=function(e){zc(o,e);function o(n){var a=e.call(this)||this;return n&&(typeof n=="string"?a.parseKey(n):(o.hasPrivateKeyProperty(n)||o.hasPublicKeyProperty(n))&&a.parsePropertiesFrom(n)),a}return o.prototype.parseKey=function(n){try{var a=0,i=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=r.test(n)?Sc.decode(n):Do.unarmor(n),l=Ac.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Me(a,16),i=l.sub[2].getHexStringValue(),this.e=parseInt(i,16);var d=l.sub[3].getHexStringValue();this.d=Me(d,16);var c=l.sub[4].getHexStringValue();this.p=Me(c,16);var u=l.sub[5].getHexStringValue();this.q=Me(u,16);var y=l.sub[6].getHexStringValue();this.dmp1=Me(y,16);var f=l.sub[7].getHexStringValue();this.dmq1=Me(f,16);var g=l.sub[8].getHexStringValue();this.coeff=Me(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=Me(a,16),i=h.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else a=l.sub[0].getHexStringValue(),this.n=Me(a,16),i=l.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch{return!1}},o.prototype.getPrivateBaseKey=function(){var n={array:[new Y.asn1.DERInteger({int:0}),new Y.asn1.DERInteger({bigint:this.n}),new Y.asn1.DERInteger({int:this.e}),new Y.asn1.DERInteger({bigint:this.d}),new Y.asn1.DERInteger({bigint:this.p}),new Y.asn1.DERInteger({bigint:this.q}),new Y.asn1.DERInteger({bigint:this.dmp1}),new Y.asn1.DERInteger({bigint:this.dmq1}),new Y.asn1.DERInteger({bigint:this.coeff})]},a=new Y.asn1.DERSequence(n);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return bn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var n=new Y.asn1.DERSequence({array:[new Y.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Y.asn1.DERNull]}),a=new Y.asn1.DERSequence({array:[new Y.asn1.DERInteger({bigint:this.n}),new Y.asn1.DERInteger({int:this.e})]}),i=new Y.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),r=new Y.asn1.DERSequence({array:[n,i]});return r.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return bn(this.getPublicBaseKey())},o.wordwrap=function(n,a){if(a=a||64,!n)return n;var i="(.{1,"+a+`})( +|$
90
+ */var K={};(typeof K.asn1>"u"||!K.asn1)&&(K.asn1={}),K.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var o=e.toString(16);return o.length%2==1&&(o="0"+o),o},this.bigIntToMinTwosComplementsHex=function(e){var o=e.toString(16);if(o.substr(0,1)!="-")o.length%2==1?o="0"+o:o.match(/^[0-7]/)||(o="00"+o);else{var n=o.substr(1),a=n.length;a%2==1?a+=1:o.match(/^[0-7]/)||(a+=2);for(var i="",r=0;r<a;r++)i+="f";var s=new ye(i,16),l=s.xor(e).add(ye.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=K,n=o.asn1,a=n.DERBoolean,i=n.DERInteger,r=n.DERBitString,s=n.DEROctetString,l=n.DERNull,d=n.DERObjectIdentifier,c=n.DEREnumerated,u=n.DERUTF8String,x=n.DERNumericString,f=n.DERPrintableString,m=n.DERTeletexString,y=n.DERIA5String,g=n.DERUTCTime,S=n.DERGeneralizedTime,L=n.DERSequence,b=n.DERSet,h=n.DERTaggedObject,p=n.ASN1Util.newObject,C=Object.keys(e);if(C.length!=1)throw"key of param shall be only one.";var A=C[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+A+":")==-1)throw"undefined key: "+A;if(A=="bool")return new a(e[A]);if(A=="int")return new i(e[A]);if(A=="bitstr")return new r(e[A]);if(A=="octstr")return new s(e[A]);if(A=="null")return new l(e[A]);if(A=="oid")return new d(e[A]);if(A=="enum")return new c(e[A]);if(A=="utf8str")return new u(e[A]);if(A=="numstr")return new x(e[A]);if(A=="prnstr")return new f(e[A]);if(A=="telstr")return new m(e[A]);if(A=="ia5str")return new y(e[A]);if(A=="utctime")return new g(e[A]);if(A=="gentime")return new S(e[A]);if(A=="seq"){for(var _=e[A],B=[],N=0;N<_.length;N++){var w=p(_[N]);B.push(w)}return new L({array:B})}if(A=="set"){for(var _=e[A],B=[],N=0;N<_.length;N++){var w=p(_[N]);B.push(w)}return new b({array:B})}if(A=="tag"){var k=e[A];if(Object.prototype.toString.call(k)==="[object Array]"&&k.length==3){var D=p(k[2]);return new h({tag:k[0],explicit:k[1],obj:D})}else{var E={};if(k.explicit!==void 0&&(E.explicit=k.explicit),k.tag!==void 0&&(E.tag=k.tag),k.obj===void 0)throw"obj shall be specified for 'tag'.";return E.obj=p(k.obj),new h(E)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},K.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",o=parseInt(e.substr(0,2),16),n=Math.floor(o/40),a=o%40,i=n+"."+a,r="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),d=("00000000"+l.toString(2)).slice(-8);if(r=r+d.substr(1,7),d.substr(0,1)=="0"){var c=new ye(r,2);i=i+"."+c.toString(10),r=""}}return i},K.asn1.ASN1Util.oidIntToHex=function(e){var o=function(l){var d=l.toString(16);return d.length==1&&(d="0"+d),d},n=function(l){var d="",c=new ye(l,10),u=c.toString(2),x=7-u.length%7;x==7&&(x=0);for(var f="",m=0;m<x;m++)f+="0";u=f+u;for(var m=0;m<u.length-1;m+=7){var y=u.substr(m,7);m!=u.length-7&&(y="1"+y),d+=o(parseInt(y,2))}return d};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var a="",i=e.split("."),r=parseInt(i[0])*40+parseInt(i[1]);a+=o(r),i.splice(0,2);for(var s=0;s<i.length;s++)a+=n(i[s]);return a},K.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var o=this.hV.length/2,n=o.toString(16);if(n.length%2==1&&(n="0"+n),o<128)return n;var a=n.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+o.toString(16);var i=128+a;return i.toString(16)+n},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},K.asn1.DERAbstractString=function(e){K.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(this.s)},this.setStringHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},Me.lang.extend(K.asn1.DERAbstractString,K.asn1.ASN1Object),K.asn1.DERAbstractTime=function(e){K.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(o){utc=o.getTime()+o.getTimezoneOffset()*6e4;var n=new Date(utc);return n},this.formatDate=function(o,n,a){var i=this.zeroPadding,r=this.localDateToUTC(o),s=String(r.getFullYear());n=="utc"&&(s=s.substr(2,2));var l=i(String(r.getMonth()+1),2),d=i(String(r.getDate()),2),c=i(String(r.getHours()),2),u=i(String(r.getMinutes()),2),x=i(String(r.getSeconds()),2),f=s+l+d+c+u+x;if(a===!0){var m=r.getMilliseconds();if(m!=0){var y=i(String(m),3);y=y.replace(/[0]+$/,""),f=f+"."+y}}return f+"Z"},this.zeroPadding=function(o,n){return o.length>=n?o:new Array(n-o.length+1).join("0")+o},this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(o)},this.setByDateValue=function(o,n,a,i,r,s){var l=new Date(Date.UTC(o,n-1,a,i,r,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},Me.lang.extend(K.asn1.DERAbstractTime,K.asn1.ASN1Object),K.asn1.DERAbstractStructured=function(e){K.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array=o},this.appendASN1Object=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array.push(o)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},Me.lang.extend(K.asn1.DERAbstractStructured,K.asn1.ASN1Object),K.asn1.DERBoolean=function(){K.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Me.lang.extend(K.asn1.DERBoolean,K.asn1.ASN1Object),K.asn1.DERInteger=function(e){K.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=K.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ye(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))},Me.lang.extend(K.asn1.DERInteger,K.asn1.ASN1Object),K.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=K.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}K.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(n){this.hTLV=null,this.isModified=!0,this.hV=n},this.setUnusedBitsAndHexValue=function(n,a){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var i="0"+n;this.hTLV=null,this.isModified=!0,this.hV=i+a},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var a=8-n.length%8;a==8&&(a=0);for(var i=0;i<=a;i++)n+="0";for(var r="",i=0;i<n.length-1;i+=8){var s=n.substr(i,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),r+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+a+r},this.setByBooleanArray=function(n){for(var a="",i=0;i<n.length;i++)n[i]==!0?a+="1":a+="0";this.setByBinaryString(a)},this.newFalseArray=function(n){for(var a=new Array(n),i=0;i<n;i++)a[i]=!1;return a},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},Me.lang.extend(K.asn1.DERBitString,K.asn1.ASN1Object),K.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=K.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}K.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Me.lang.extend(K.asn1.DEROctetString,K.asn1.DERAbstractString),K.asn1.DERNull=function(){K.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Me.lang.extend(K.asn1.DERNull,K.asn1.ASN1Object),K.asn1.DERObjectIdentifier=function(e){var o=function(a){var i=a.toString(16);return i.length==1&&(i="0"+i),i},n=function(a){var i="",r=new ye(a,10),s=r.toString(2),l=7-s.length%7;l==7&&(l=0);for(var d="",c=0;c<l;c++)d+="0";s=d+s;for(var c=0;c<s.length-1;c+=7){var u=s.substr(c,7);c!=s.length-7&&(u="1"+u),i+=o(parseInt(u,2))}return i};K.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(a){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueOidString=function(a){if(!a.match(/^[0-9.]+$/))throw"malformed oid string: "+a;var i="",r=a.split("."),s=parseInt(r[0])*40+parseInt(r[1]);i+=o(s),r.splice(0,2);for(var l=0;l<r.length;l++)i+=n(r[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(a){var i=K.asn1.x509.OID.name2oid(a);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+a},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},Me.lang.extend(K.asn1.DERObjectIdentifier,K.asn1.ASN1Object),K.asn1.DEREnumerated=function(e){K.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=K.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ye(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))},Me.lang.extend(K.asn1.DEREnumerated,K.asn1.ASN1Object),K.asn1.DERUTF8String=function(e){K.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Me.lang.extend(K.asn1.DERUTF8String,K.asn1.DERAbstractString),K.asn1.DERNumericString=function(e){K.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Me.lang.extend(K.asn1.DERNumericString,K.asn1.DERAbstractString),K.asn1.DERPrintableString=function(e){K.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Me.lang.extend(K.asn1.DERPrintableString,K.asn1.DERAbstractString),K.asn1.DERTeletexString=function(e){K.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Me.lang.extend(K.asn1.DERTeletexString,K.asn1.DERAbstractString),K.asn1.DERIA5String=function(e){K.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Me.lang.extend(K.asn1.DERIA5String,K.asn1.DERAbstractString),K.asn1.DERUTCTime=function(e){K.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},Me.lang.extend(K.asn1.DERUTCTime,K.asn1.DERAbstractTime),K.asn1.DERGeneralizedTime=function(e){K.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},Me.lang.extend(K.asn1.DERGeneralizedTime,K.asn1.DERAbstractTime),K.asn1.DERSequence=function(e){K.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var o="",n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];o+=a.getEncodedHex()}return this.hV=o,this.hV}},Me.lang.extend(K.asn1.DERSequence,K.asn1.DERAbstractStructured),K.asn1.DERSet=function(e){K.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var o=new Array,n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];o.push(a.getEncodedHex())}return this.sortFlag==!0&&o.sort(),this.hV=o.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},Me.lang.extend(K.asn1.DERSet,K.asn1.DERAbstractStructured),K.asn1.DERTaggedObject=function(e){K.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(o,n,a){this.hT=n,this.isExplicit=o,this.asn1Object=a,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=a.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,n),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Me.lang.extend(K.asn1.DERTaggedObject,K.asn1.ASN1Object);var zc=globalThis&&globalThis.__extends||function(){var e=function(o,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,i){a.__proto__=i}||function(a,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i[r])},e(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(o,n);function a(){this.constructor=o}o.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Tr=function(e){zc(o,e);function o(n){var a=e.call(this)||this;return n&&(typeof n=="string"?a.parseKey(n):(o.hasPrivateKeyProperty(n)||o.hasPublicKeyProperty(n))&&a.parsePropertiesFrom(n)),a}return o.prototype.parseKey=function(n){try{var a=0,i=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=r.test(n)?Sc.decode(n):Do.unarmor(n),l=Ac.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Fe(a,16),i=l.sub[2].getHexStringValue(),this.e=parseInt(i,16);var d=l.sub[3].getHexStringValue();this.d=Fe(d,16);var c=l.sub[4].getHexStringValue();this.p=Fe(c,16);var u=l.sub[5].getHexStringValue();this.q=Fe(u,16);var x=l.sub[6].getHexStringValue();this.dmp1=Fe(x,16);var f=l.sub[7].getHexStringValue();this.dmq1=Fe(f,16);var m=l.sub[8].getHexStringValue();this.coeff=Fe(m,16)}else if(l.sub.length===2)if(l.sub[0].sub){var y=l.sub[1],g=y.sub[0];a=g.sub[0].getHexStringValue(),this.n=Fe(a,16),i=g.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else a=l.sub[0].getHexStringValue(),this.n=Fe(a,16),i=l.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch{return!1}},o.prototype.getPrivateBaseKey=function(){var n={array:[new K.asn1.DERInteger({int:0}),new K.asn1.DERInteger({bigint:this.n}),new K.asn1.DERInteger({int:this.e}),new K.asn1.DERInteger({bigint:this.d}),new K.asn1.DERInteger({bigint:this.p}),new K.asn1.DERInteger({bigint:this.q}),new K.asn1.DERInteger({bigint:this.dmp1}),new K.asn1.DERInteger({bigint:this.dmq1}),new K.asn1.DERInteger({bigint:this.coeff})]},a=new K.asn1.DERSequence(n);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return bn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var n=new K.asn1.DERSequence({array:[new K.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new K.asn1.DERNull]}),a=new K.asn1.DERSequence({array:[new K.asn1.DERInteger({bigint:this.n}),new K.asn1.DERInteger({int:this.e})]}),i=new K.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),r=new K.asn1.DERSequence({array:[n,i]});return r.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return bn(this.getPublicBaseKey())},o.wordwrap=function(n,a){if(a=a||64,!n)return n;var i="(.{1,"+a+`})( +|$
91
91
  ?)|(.{1,`+a+"})";return n.match(RegExp(i,"g")).join(`
92
92
  `)},o.prototype.getPrivateKey=function(){var n=`-----BEGIN RSA PRIVATE KEY-----
93
93
  `;return n+=o.wordwrap(this.getPrivateBaseKeyB64())+`
94
94
  `,n+="-----END RSA PRIVATE KEY-----",n},o.prototype.getPublicKey=function(){var n=`-----BEGIN PUBLIC KEY-----
95
95
  `;return n+=o.wordwrap(this.getPublicBaseKeyB64())+`
96
- `,n+="-----END PUBLIC KEY-----",n},o.hasPublicKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")},o.hasPrivateKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")&&n.hasOwnProperty("d")&&n.hasOwnProperty("p")&&n.hasOwnProperty("q")&&n.hasOwnProperty("dmp1")&&n.hasOwnProperty("dmq1")&&n.hasOwnProperty("coeff")},o.prototype.parsePropertiesFrom=function(n){this.n=n.n,this.e=n.e,n.hasOwnProperty("d")&&(this.d=n.d,this.p=n.p,this.q=n.q,this.dmp1=n.dmp1,this.dmq1=n.dmq1,this.coeff=n.coeff)},o}(Nc),No,Pc=typeof process<"u"?(No=process.env)===null||No===void 0?void 0:No.npm_package_version:void 0,qc=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 Tr(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(xr(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return bn(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,n,a){try{return bn(this.getKey().sign(o,n,a))}catch{return!1}},e.prototype.verify=function(o,n,a){try{return this.getKey().verify(o,xr(n),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new Tr,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=Pc,e}();const Br=new qc,Zt=Vc();function Vc(){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 Er=ot.enc.Utf8.parse("ABCDEF1234123412");function Hc(e,o){o=o||Zt;const n=ot.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=ot.enc.Utf8.parse(e);break;case"object":a=ot.enc.Utf8.parse(JSON.stringify(e));break;default:a=ot.enc.Utf8.parse(e.toString())}return ot.AES.encrypt(a,n,{iv:Er,mode:ot.mode.CBC,padding:ot.pad.ZeroPadding}).toString()}function Dr(e,o){o=o||Zt;const n=ot.enc.Utf8.parse(o),a=ot.AES.decrypt(e,n,{iv:Er,mode:ot.mode.CBC,padding:ot.pad.ZeroPadding});return ot.enc.Utf8.stringify(a).toString()}function jc(e){Br.setPublicKey(e)}function Wc(e){return Br.encrypt(e)}function Ir(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 Gc(e){const{paramType:o,data:n,params:a,method:i}=e;o==="form"?["get","delete"].includes(i)?e.params=Qt(a,"string"):e.data=Qt(n,"string"):["get","delete"].includes(i)?e.params=Qt(a,"string"):e.data=Qt(n)}function Qt(e,o){let n=e||{};if(o==="string"){n="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const d=e[l];n+=`${l}=${encodeURIComponent(d)}&`}}jc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const i=Wc(Zt);return{c:Hc(n,Zt),p:i}}window.getEncryptParam=Qt;function Uc(e,o){var n;(n=window==null?void 0:window.config)!=null&&n.encryptFlag&&Ir(e.url)&&(e.data instanceof FormData?e.data=$c(e.data):Gc(e))}function $c(e){const o=e.entries(),n=new FormData,a={};for(const r of o){const s=r[0],l=r[1];l instanceof Blob?n.append(s,l):a[s]=l}const i=Qt(a,"json");return typeof i=="object"&&(n.append("c",i.c),n.append("p",i.p)),n}window.xhaesKey=Zt,window.xhaesDecrypt=Dr;function Rr(e,o){var n;if((n=window==null?void 0:window.config)!=null&&n.encryptFlag&&Ir(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=Dr(e.data.data.content,Zt);e.data=JSON.parse(a)}}const Lr=window.config.requestErrorTip,xt=rs.create({timeout:1e3*180});xt.interceptors.request.use(e=>{const{requestParams:o={}}=window.config;return o!=null&&o.pltToken&&(e.headers["Plt-Token"]=o.pltToken),Uc(e),e},e=>Promise.reject(e)),xt.interceptors.response.use(e=>{var o,n,a;return Lr&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&me.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}),Rr(e),e},e=>{if(Rr(e==null?void 0:e.response),Lr)if(e.message.includes("timeout"))me.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&me.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),o>=500&&me.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const Kc=e=>e.replace(/\\n/g,`
97
- `),Oo=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Yc=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Bn=(e,o=2)=>{const n=e+"";if(n.includes("%"))return e;const a=parseFloat(n);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},Zc=(e,o=2)=>{const n=e+"",a=parseFloat(n);return isNaN(a)?e:a.toFixed(o)},_r=(e,o)=>dt(o,e),at=(e,o)=>{if(typeof e=="string"&&typeof o=="string")return e.toLocaleLowerCase().includes(o.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(o)){const n=o.length;for(let a=0;a<n;a++){const i=o[a];if(typeof i=="string"&&e.toLocaleLowerCase().includes(i.toLocaleLowerCase()))return!0}}return!1},Jt=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),ln=e=>{const{leftAxisList:o=[],rightAxisList:n=[],queryColumnList:a=[],indicators:i=[]}=e;return[...o,...n,...a,...i].filter(r=>(r==null?void 0:r.calcType)==="COMPONENT").map(r=>({keyName:r.builtInCalcWay,id:r.builtInValueSource}))},ct=(e,o)=>{let n=!0;const a=ln(e);return a!=null&&a.length&&(n=a.map(i=>o[i.id]).every(i=>i)),n},sn=(e,o)=>{var s;const n=e.match(/\{(.+?)\}/g),a=((s=e.split(`
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}(Nc),No,Pc=typeof process<"u"?(No=process.env)===null||No===void 0?void 0:No.npm_package_version:void 0,qc=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 Tr(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(xr(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return bn(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,n,a){try{return bn(this.getKey().sign(o,n,a))}catch{return!1}},e.prototype.verify=function(o,n,a){try{return this.getKey().verify(o,xr(n),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new Tr,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=Pc,e}();const Br=new qc,Zt=Vc();function Vc(){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 Er=at.enc.Utf8.parse("ABCDEF1234123412");function Hc(e,o){o=o||Zt;const n=at.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=at.enc.Utf8.parse(e);break;case"object":a=at.enc.Utf8.parse(JSON.stringify(e));break;default:a=at.enc.Utf8.parse(e.toString())}return at.AES.encrypt(a,n,{iv:Er,mode:at.mode.CBC,padding:at.pad.ZeroPadding}).toString()}function Dr(e,o){o=o||Zt;const n=at.enc.Utf8.parse(o),a=at.AES.decrypt(e,n,{iv:Er,mode:at.mode.CBC,padding:at.pad.ZeroPadding});return at.enc.Utf8.stringify(a).toString()}function jc(e){Br.setPublicKey(e)}function Wc(e){return Br.encrypt(e)}function Ir(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 Gc(e){const{paramType:o,data:n,params:a,method:i}=e;o==="form"?["get","delete"].includes(i)?e.params=Qt(a,"string"):e.data=Qt(n,"string"):["get","delete"].includes(i)?e.params=Qt(a,"string"):e.data=Qt(n)}function Qt(e,o){let n=e||{};if(o==="string"){n="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const d=e[l];n+=`${l}=${encodeURIComponent(d)}&`}}jc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const i=Wc(Zt);return{c:Hc(n,Zt),p:i}}window.getEncryptParam=Qt;function Uc(e,o){var n;(n=window==null?void 0:window.config)!=null&&n.encryptFlag&&Ir(e.url)&&(e.data instanceof FormData?e.data=$c(e.data):Gc(e))}function $c(e){const o=e.entries(),n=new FormData,a={};for(const r of o){const s=r[0],l=r[1];l instanceof Blob?n.append(s,l):a[s]=l}const i=Qt(a,"json");return typeof i=="object"&&(n.append("c",i.c),n.append("p",i.p)),n}window.xhaesKey=Zt,window.xhaesDecrypt=Dr;function Rr(e,o){var n;if((n=window==null?void 0:window.config)!=null&&n.encryptFlag&&Ir(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=Dr(e.data.data.content,Zt);e.data=JSON.parse(a)}}const Lr=window.config.requestErrorTip,pt=rs.create({timeout:1e3*180});pt.interceptors.request.use(e=>{const{requestParams:o={}}=window.config;return o!=null&&o.pltToken&&(e.headers["Plt-Token"]=o.pltToken),Uc(e),e},e=>Promise.reject(e)),pt.interceptors.response.use(e=>{var o,n,a;return Lr&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&ge.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}),Rr(e),e},e=>{if(Rr(e==null?void 0:e.response),Lr)if(e.message.includes("timeout"))ge.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&ge.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),o>=500&&ge.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const Yc=e=>e.replace(/\\n/g,`
97
+ `),Oo=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Kc=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Bn=(e,o=2)=>{const n=e+"";if(n.includes("%"))return e;const a=parseFloat(n);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},Zc=(e,o=2)=>{const n=e+"",a=parseFloat(n);return isNaN(a)?e:a.toFixed(o)},_r=(e,o)=>ft(o,e),it=(e,o)=>{if(typeof e=="string"&&typeof o=="string")return e.toLocaleLowerCase().includes(o.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(o)){const n=o.length;for(let a=0;a<n;a++){const i=o[a];if(typeof i=="string"&&e.toLocaleLowerCase().includes(i.toLocaleLowerCase()))return!0}}return!1},Jt=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),ln=e=>{const{leftAxisList:o=[],rightAxisList:n=[],queryColumnList:a=[],indicators:i=[]}=e;return[...o,...n,...a,...i].filter(r=>(r==null?void 0:r.calcType)==="COMPONENT").map(r=>({keyName:r.builtInCalcWay,id:r.builtInValueSource}))},dt=(e,o)=>{let n=!0;const a=ln(e);return a!=null&&a.length&&(n=a.map(i=>o[i.id]).every(i=>i)),n},sn=(e,o)=>{var s;const n=e.match(/\{(.+?)\}/g),a=((s=e.split(`
98
98
  `))==null?void 0:s.length)-1;let i="";if(a)for(let l=0;l<a;l++)i+=`
99
- `;let r=e;if(n!=null&&n.length){for(const l of n){const d=Le(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(r=r.replace(l,d))}return`${i}{text|${r}}`}else return e},Nr=(e,o)=>{const{props:n,componentList:a,getGlobalModel:i}=e,{graphicConfig:r={},startValue:s,endValue:l}=n,d=Qc({graphicConfig:r,startValue:s,endValue:l,componentList:a,getGlobalModel:i}),{dimensions:c,dataset:u}=o,{classificationList:y=[]}=r,g=y.find(m=>m.show).label||"";for(const m of d)c.includes(m)||c.push(m);c.sort((m,h)=>ve(m).isBefore(ve(h))?-1:1);for(const m of u){const{data:h}=m;if(h!=null&&h.length){const C=[];for(const v of d)if(h.find(x=>x[g]!==v)){const x=_e.cloneDeep(h[0]);for(const p in x)p===g?x[p]=v:x[p]=0;C.push(x)}m.data.push(...C),m.data.sort((v,x)=>ve(v[g]).isBefore(ve(x[g]))?-1:1)}}},cn=e=>{const o=[];for(const n of e)n.conditions?o.push(...cn(n.conditions)):(n==null?void 0:n.dataType)==="component"&&o.push(n);return o};function Qc(e){const{startValue:o,endValue:n,componentList:a,graphicConfig:i,getGlobalModel:r}=e,s=Or(o),l=Or(n),d=[];if(s&&l){const c=a.find(y=>y.keyName===s.keyName),u=a.find(y=>y.keyName===l.keyName);if(c&&u){const y=r(c.id),f=r(u.id),{classificationList:g=[]}=i,m=g.find(h=>h.show);if(m){let h="YYYY-MM";switch(m.name){case"the_year":h="YYYY";break;case"the_month":h="MM";break;case"the_day":h="DD";break;case"the_date":h=(m==null?void 0:m.dateFormat)||h;break}const C=Fr(h);if(h){const v=t.unref(y[s.field]),x=t.unref(f[l.field]);let p=ve(v);const b=ve(x);for(d.push(b.format(h));p.isBefore(b);)d.push(p.format(h)),p=p.add(1,C)}}}}return d}function Or(e){let o=null;if(e){const n=e.match(/\{(.+?)\}/g);if(n!=null&&n.length){let a=n[0].slice(1,-1).trim();const i=a.match(/\[(.+?)\]/g);let r="";i!=null&&i.length&&(a=a.replace(i[0],""),r=i[0].slice(1,-1).trim()),o={keyName:a,field:r}}}return o}function Fr(e){const o=e.split("-");let n="";if(o!=null&&o.length)switch(o[o.length-1]){case"YYYY":n="year";break;case"MM":n="month";break;case"DD":n="day";break}return n}const dn=(e,o)=>{const n={dayjs:ve,...o};let a="";const i=[];for(const l in n)a+=`${l},`,i.push(n[l]);a=a.replace(/,$/,"");const r=`function (${a}){return ${e}}`;let s;try{s=Function(`"use strict";return (${r})`)()(...i)}catch{return e}return s},Le=(e="",{textData:o,codeData:n}={},{useNewline:a=!1,useSpace:i=!1}={})=>{const s={...window.config||{},...o},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let d=0;d<l.length;d++){const c=l[d];let u=c.slice(1,-1).trim();const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,f=u.match(y);for(let 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=dn(u,n)),e=e.replace(c,u)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),i&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},Ve=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:i,requestParams:r,requestInterval:s,isOpenRequestTimer:l,openCustomRequestData:d,projectRequestUrl:c="",getModel:u}=e,{contextRequestUrl:y,touchEventId:f}=t.inject(He,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:g}=t.inject(Ie,{getGlobalModel:x=>{}})||{},m=u||g,h=Le(n),C=async(x={})=>{if(!h||!a||!i)return;let p={};r.forEach(A=>{const{key:O,value:w}=A;if(typeof w=="object"&&w!=null&&w.id){let I={};const{id:N,prop:D,propKey:R,operate:B}=w;N==="THIS"?I=m(t.unref(f))||{}:I=m(N)||{};const S=t.unref(I[D]);let E=null;if(["date","range"].some(M=>at(I==null?void 0:I.type,M))){const{value:M,type:j,mode:F}=B||{};if(M&&j&&F)switch(j){case"add":E=t.unref(S).add(M,F);break;case"minus":E=t.unref(S).subtract(M,F);break}E==null&&(E=t.unref(S)),E=(E==null?void 0:E.format((R==null?void 0:R.trim())||I.format))||""}else Object.prototype.toString.call(S)==="[object Object]"?R?E=S[R]:E=D?S[D]:S:at(I==null?void 0:I.type,"select")&&t.unref(S)&&D&&Array.isArray(t.unref(S))?E=t.unref(S).map(M=>Object.prototype.hasOwnProperty.call(M,D)?M[D]:M):E=S;p[O]=E}else typeof w=="string"&&(p[O]=Le(w))}),p={...window.config.requestParams,...x,...p};let b="";const k=Object.keys(p),T=k.length-1,L=k.length;k.forEach((A,O)=>{let w=p[A];Object.prototype.toString.call(w)==="[object Object]"&&(w=JSON.stringify(w)),O===0?L!==1?b+=`?${A}=${w}&`:b+=`?${A}=${w}`:O===T?b+=`${A}=${w}`:b+=`${A}=${w}&`});try{const A=["get","head"].includes(a),O={};let w=A?h+b:h;p.dataSqlId&&!w.includes("dataSqlId")&&(w+=`${w.includes("?")?"&":"?"}dataSqlId=${p.dataSqlId}`),Object.prototype.hasOwnProperty.call(p,"signal")&&(O.signal=p.signal);const I=await xt({baseURL:t.unref(y)||c||"",url:w,method:a,headers:i,data:A?{}:p,...O});return o(I),I}catch(A){console.error(A)}},v=l&&d&&setInterval(C,s*1e3);return t.onUnmounted(()=>{clearInterval(v)}),C},Dt=(e=[],o,n=!1)=>{let{name:a="name",types:i=[]}=o||{};a=(a==null?void 0:a.trim())||a;const r=new Set,s=new Map,l=e.length,d=i.length;if(l===1&&!n){const y=[];for(let g=0;g<d;g++){const m=i[g],{label:h,value:C}=m,v={...e[0],value:e[0][C]};r.add(h),y.push(v)}const f=e[0][a]||"";s.set(f,y)}else for(let y=0;y<l;y++){const f=e[y],g=f[a];r.add(g);for(let m=0;m<d;m++){const h=i[m],{label:C,value:v}=h,x={...f,value:f[v]||0};if(s.has(C)){const p=s.get(C);p.push(x),s.set(C,p)}else s.set(C,[x])}}const c=Array.from(r),u=[];for(const[y,f]of s)u.push({name:y,data:f});return{dimensions:c,dataset:u}},mt=(e,o=!1)=>{var a;if(!e)return e;let n="";return e!=null&&e.includes("://")?n=e:n=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,o&&(n=`url(${n})`),n},Fo=(e,o)=>{const n=`${Ei}/preview?pageId=${o}`,a=`${Ei}/${o}`;return e==="preview"?n:a},dt=(e,o)=>{var i;if(e==null)return o;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return o;const a=n.length;for(let r=0;r<a;r++){const s=n[r];if(s==null||s==="")break;let l=(i=s.slice(1,-1))==null?void 0:i.trim();l=l==null?void 0:l.replace(/value/g,o);try{let d=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(d=dn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},Ze=(e={})=>{const{requestToken:o}=t.inject(Ai,{requestToken:()=>{}}),{setLoadedData:n}=t.inject(kt,{setLoadedData:(v,x)=>{}}),{getGlobalModel:a}=t.inject(Ie,{getGlobalModel:v=>{}});e.dataType==="indicator"&&o();const i=v=>{const{around:x,unit:p,id:b}=v;let k="";const{pageMode:T="",componentList:L=[]}=(e==null?void 0:e.graphicConfig)||{};let A=null,O=null;if(T==="design"){const w=L==null?void 0:L.find(E=>E.id===b);if(!w)return[];const{interval:I,intervalUnit:N,startTime:D,endTime:R,operate:B,useCurrentTime:S}=w||{};if(S&&(A=ve().subtract(I,N),O=ve()),D&&(A=ve(D)),R&&(O=ve(R)),B){const{type:E,value:_,mode:M}=B;switch(E){case"add":A=A&&A.add(_,M),O=O&&O.add(_,M);break;case"minus":A=A&&A.subtract(_,M),O=O&&O.subtract(_,M)}}}else{const w=a(b)||{};t.unref(w.startTime)&&(A=ve(t.unref(w.startTime))),t.unref(w.endTime)&&(O=ve(t.unref(w.endTime)))}if(A&&O){const w=O.diff(A,p.toLowerCase());k=`${x==="before"?"-":""}${w+1}`}return k?[k]:[]},r=(v,x)=>Object.prototype.hasOwnProperty.call(v,x),s=(v,x)=>{if(x)r(v,"indexCode")&&(v.hrpIndexCode=v.indexCode,delete v.indexCode),r(v,"indexCodeNum")&&(v.hrpIndexCodeNum=v.indexCodeNum,delete v.indexCodeNum),r(v,"dataType")&&delete v.dataType;else{const{calcWays:p=[],dateCalcTypes:b=[],activeKey:k,componentId:T=""}=v;if(k===5&&(p!=null&&p.length)&&(b!=null&&b.length)&&T){const L=p[0].split("-");(L==null?void 0:L.length)>1&&L[0]==="rangeValue"&&(v.calcWays=i({around:L[1],unit:b[0],id:T})),delete v.radioValue}r(v,"dataType")&&(v.fieldType==="DATE"&&(v.label=v.fieldName),v.dataType==="component"&&(v.fieldValue="${"+v.fieldValue+"}"),delete v.dataType),r(v,"activeKey")&&delete v.activeKey,r(v,"radioValue")&&delete v.radioValue,r(v,"indexCode")&&(v.hrpIndexCode=v.indexCode,delete v.indexCode),r(v,"indexCodeNum")&&(v.hrpIndexCodeNum=v.indexCodeNum,delete v.indexCodeNum),v.dataType!=="component"&&v.useCurrentTime&&(v.fieldValue=ve().format(v.dateFormat)),delete v.useCurrentTime}},l=(v,x)=>{const p=[];return v!=null&&v.length&&_e.cloneDeep(v).forEach(b=>{if(b.join&&b.conditions){const k=!b.conditions.some(T=>T.join&&T.conditions);b.conditions.forEach((T,L)=>{s(T,x);const A={};if(L<b.conditions.length-1&&(A.join=b.join),k)p.push({...A,...T});else if(T.join&&T.conditions){const O=x?"sqlConditions":"conditions";p.push({[O]:l([T],x),...A})}else p.push({...A,...T})})}else s(b,x),p.push(b)}),p},d=(v={},x)=>{if(v!=null&&v.sortCpnts&&x){const F=C(v);F&&(x.sort=F)}const{label:p,name:b,location:k,show:T,indexCode:L,indexCodeNum:A,calcType:O="COLUMN",builtInFormula:w,builtInValueSource:I,builtInCalcWay:N,formula:D,conditions:R,aggregate:B,distinct:S,dimByCount:E,dataTo:_}=v;let M;if(R&&(M=l(R)),O==="COMPONENT"){const F={};return m(F,I),{label:p.trim(),columnName:b,show:T,calcType:O,componentAlias:N,componentValue:F.fieldValue||null}}const j={label:p.trim(),columnName:b,location:k,show:T,calcType:_==="1"?"VIEW":O,hrpIndexCode:L,hrpIndexCodeNum:A,aggregate:B,builtInFormula:w,builtInValueSource:I,formula:D,conditions:M};if(w==="DATE_OFFSET"){const F=N.split("-");if((F==null?void 0:F.length)===3){let z=F[0];return F[2]==="before"&&F[0]!=="0"&&(z=`-${F[0]}`),{...j,calcWays:[z],dateCalcTypes:[F[1]]}}}else return b==="the_count"&&(j.calcType="AGGREGATE",j.distinct=!!S,j.typeGuid=E),{...j,builtInCalcWay:N}},c=v=>{if(!v)return[];const x=_e.cloneDeep((v==null?void 0:v.controlList)||[]),{classificationList:p=[],rowHeaderList:b=[],dimensionList:k=[],seriesList:T=[],leftAxisList:L=[],rightAxisList:A=[],queryColumnList:O=[],indicators:w=[]}=v;f(x);const I=[...p,...b,...k,...T,...L,...A,...O,...w],N=[];for(const B of I){const S=cn((B==null?void 0:B.conditions)||[]);if(S!=null&&S.length){const E=S.filter(_=>(_==null?void 0:_.dataType)==="component").map(_=>{const M={};return _!=null&&_.dateFormat&&(M.format=_.dateFormat),{conditionKey:_.fieldName,conditionLabel:_.fieldName,conditionName:_.fieldName,conditionValueType:_.fieldType,id:_.componentId,keyName:_.fieldValue,rule:_.rule,notGlobal:!0,indexCode:_.indexCode,typeGuid:_.typeGuid,indexCodeNum:_.indexCodeNum,...M}});if(E!=null&&E.length)for(const _ of E)N.find(M=>M.keyName===_.keyName)||N.push(_)}}const D=N.length,R=x;for(let B=0;B<D;B++){const S=N[B];if((S==null?void 0:S.conditionKey)==="parentCode")continue;const{id:E,keyName:_,prop:M,format:j,modelKey:F,dataType:z="component",customValue:q}=S,P=u(S);m(P,E,{prop:M,dateFormat:j,modelKey:F,keyName:_}),z===""&&(P.fieldValue=q||""),R.push(P)}for(let B=R.length-1;B>=0;B--){const S=R[B];S.globalCondition||cn(R).find(_=>_.alias===S.alias&&_.globalCondition)&&R.splice(B,1)}return R};function u(v){const{id:x,keyName:p,conditionLabel:b,conditionKey:k,conditionValueType:T,prop:L,rule:A="NONE",notGlobal:O=!1,indexCode:w,typeGuid:I,indexCodeNum:N,dataType:D="component"}=v;let R=p||x;R&&L&&(R+=`-${L}`);let B=A;return B==="NONE"&&(["startTime","endTime"].includes(L)?B=L==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":p!=null&&p.includes("startTime")?B=L==="GREATER_EQUAL":p!=null&&p.includes("endTime")?B=L==="LESS_EQUAL":B="EQUAL"),{rule:B,label:b,fieldName:k,fieldValue:"",valueType:T,alias:R,globalCondition:!O,indexCode:w,typeGuid:I,indexCodeNum:N,dataType:D}}const y=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function f(v){if(v!=null&&v.length)for(const x of v)if(x!=null&&x.conditions)f(x.conditions);else{const{id:p,keyName:b,prop:k,modelKey:T,format:L,dataType:A="component",customValue:O}=x,w=u(x);m(w,p,{prop:k,dateFormat:L,modelKey:T,keyName:b}),A===""&&(w.fieldValue=O||"");for(const I in w)x[I]=w[I];for(const I of y)delete x[I]}}function g(v){const x=[];if(v!=null&&v.length){for(const p of v)if(p.variableName){const b={variateName:p.variableName,globalCondition:!1,valueType:p.variableType,alias:p.keyName||""};m(b,p.id,{dateFormat:p.format,prop:p.dateTypeValue,keyName:p.keyName}),p.dataType===""&&(b.fieldValue=p.variableValue),p.format&&(b.dateFormat=p.format),p.label&&(b.label=p.label),x.push(b)}}return x}function m(v,x,p){var B,S;const b=a(x)||{},{prop:k="",dateFormat:T="",modelKey:L="",keyName:A=""}=p||{},{value:O,format:w="YYYY-MM-DD",type:I="",useCurrentTime:N,RECORD:D}=b||{},R=T||w;if(at(b.type,"date"))N?O?v.fieldValue=(B=t.unref(O))==null?void 0:B.format(R):v.fieldValue=ve().format(R):v.fieldValue=(S=t.unref(O))==null?void 0:S.format(R),v.dateFormat=R;else if(I==="ecanRangePicker"){let E=k;if(!k){const M=A&&A.split("-");M!=null&&M.length&&(E=M[M.length-1])}if(!E)return;let _=null;if(t.unref(b[E])&&(_=ve(t.unref(b[E]))),_&&(v.fieldValue=_==null?void 0:_.format(R)),E==="rangeValue"&&b.startTime&&b.endTime){const M=Fr(R);M&&(v.fieldValue=t.unref(b.endTime).diff(t.unref(b.startTime),M)+1)}v.dateFormat=R}else at(I,Di)?L&&D?v.fieldValue=D[L]:!L&&D?v.fieldValue=D.value:v.fieldValue=t.unref(O):v.fieldValue=t.unref(O)}const h=v=>{if(v){const x=_e.cloneDeep(v);return v.defaultCode&&(x.label=x.columnName,delete x.defaultCode),x}else return v},C=v=>{const{sortCpnts:x=[]}=v;let p,b="";for(const k of x){const T=a(k)||{},{type:L,RECORD:A}=T;if(at(L,"image")&&at(A==null?void 0:A.value,["asc","desc"])){b=A.value.toUpperCase();break}}return b&&(p={label:v.label,columnName:v.name,order:b,type:"NORMAL"}),p};return async(v={})=>{var U,Q,X,ae,oe,se;n(e.id,!1);const{graphicConfig:x,type:p,isGroupTable:b=!1}=e;let{source:k,dataViewId:T,plugin:L="1",layer:A,chartType:O,classificationList:w=[],rowHeaderList:I=[],dimensionList:N=[],seriesList:D=[],leftAxisList:R=[],rightAxisList:B=[],queryColumnList:S=[],indicators:E=[],controlList:_=[],formFields:M={},variableList:j=[],variableConditions:F=[],idxLibMode:z,preview:q=!1}=x||{},P=[];if((x==null?void 0:x.pageMode)==="design"?(P=(x.sqlConditions??[]).map(ne=>{const ce={};if(!r(ne,"globalCondition")&&!ne.join&&(ce.globalCondition=!0),!ne.join){const fe=ne.rule||"EQUAL";ce.rule=fe==="NONE"?"EQUAL":fe}return{...ne,...ce}}),F!=null&&F.length&&(P=P.concat(F))):(P=c(x),j!=null&&j.length&&(P=P.concat(g(j)))),P!=null&&P.length){const ne=P.filter(fe=>fe.globalCondition),ce=P.filter(fe=>!fe.globalCondition);(ne==null?void 0:ne.length)>1&&(P=[{join:"&&",conditions:ne},...ce])}P!=null&&P.length&&(P=l(P,"1")),A==null&&(at(p,["table"])||at(p,"list")&&(w==null?void 0:w.length)>1?A="1":at(p,["select","checkbox","radio"])?A="3":A="2");let Z,V="";if(Array.isArray(w)&&w.length>0&&(p!=="ecanList"||(w==null?void 0:w.length)===1)){const ne=w.length;for(let ce=0;ce<ne;ce++){const fe=w[ce]||{},{label:Te="",name:Oe="",show:We=!1,sort:it,customGroup:Ue,conditions:Qe,dateFormat:Je,typeGuid:ft="",truncations:Xe=[]}=fe;if(We||ne===1){V=ft,Z={label:Te.trim(),columnName:Oe,show:We,sort:C(fe)||h(it)||it,customGroup:Ue,conditions:l(Qe),typeGuid:ft},Je&&(Z.dateFormat=Je),Oe==="the_date"&&!Z.dateFormat&&(Z.dateFormat="YYYY-MM");const Fe={};if(Array.isArray(Xe)&&Xe.length>0){const $e=Xe.length;for(let ut=0;ut<$e;ut++){const pt=Xe[ut]||{},{rule:W="",num:K=0,name:J=""}=pt;W&&K&&(Fe.num=K,Fe.rule=W,J&&(Fe.otherGroupName=J))}}(U=Object.keys(Fe))!=null&&U.length&&(Z.truncation=Fe);break}}}let H;if(Array.isArray(D)&&D.length>0){const ne=D.length;for(let ce=0;ce<ne;ce++){const fe=D[ce]||{},{label:Te="",name:Oe="",show:We=!1,sort:it,customGroup:Ue,conditions:Qe}=fe;if(We||ne===1){H={label:Te.trim(),columnName:Oe,show:We,sort:it,customGroup:Ue,conditions:l(Qe)};break}}}const $=[];R==null||R.forEach(ne=>{ne.location="LEFT",$.push(d(ne,Z))}),B==null||B.forEach(ne=>{ne.location="RIGHT",$.push(d(ne,Z))}),E==null||E.forEach(ne=>{ne.location="LEFT",$.push(d(ne,Z))});const ee=[];p==="ecanList"&&(w==null?void 0:w.length)>1&&(S=w),S==null||S.forEach(ne=>{const{label:ce,name:fe,location:Te,show:Oe,indexCode:We,sort:it,typeGuid:Ue,indexCodeNum:Qe}=ne;let Je=it;if(v.sort){const{field:ft,order:Xe}=v.sort;let Fe=$.find($e=>$e.label===ft);!Fe&&ce===ft&&(Fe=ne),Fe&&(Je={columnName:Fe.columnName,label:v.sort.field,order:Xe.toUpperCase(),type:"NORMAL"})}ee.push({label:ce,columnName:fe,location:Te,show:Oe,sort:Je,calcType:"COLUMN",hrpIndexCode:We,hrpIndexCodeNum:Qe,typeGuid:Ue})});const ie=[];let he=[];if(Array.isArray(I)&&I.length>0?he=I:Array.isArray(N)&&N.length>0&&(he=N),he!=null&&he.length){const ne=he.length;for(let ce=0;ce<ne;ce++){const fe=he[ce]||{},{label:Te="",name:Oe="",show:We=!1,sort:it,customGroup:Ue,conditions:Qe,truncations:Je,typeGuid:ft="",dateFormat:Xe}=fe;let Fe=it;if(v.sort){const{field:pt,order:W}=v.sort;let K=$.find(J=>J.label===pt);!K&&fe.label===pt&&(K=fe),K&&(Fe={columnName:K.columnName,label:v.sort.field,order:W.toUpperCase(),type:"NORMAL"})}const $e={label:Te.trim(),columnName:Oe,show:We,sort:Fe,customGroup:Ue,conditions:l(Qe),typeGuid:ft};Xe&&($e.dateFormat=Xe),Oe==="the_date"&&!$e.dateFormat&&($e.dateFormat="YYYY-MM");const ut={};if(Array.isArray(Je)&&Je.length>0){const pt=Je.length;for(let W=0;W<pt;W++){const K=Je[W]||{},{rule:J="",num:re=0,name:de=""}=K;J&&re&&(ut.num=re,ut.rule=J,de&&(ut.otherGroupName=de))}}(Q=Object.keys(ut))!=null&&Q.length&&($e.truncation=ut),ie.push($e)}}if(at(p,["text","proportion","counter"])&&(O="zb"),b){if(ie.length===0||$.length===0)return;O="grouptable"}else{if(A==="1"&&ee.length===0)return;if(A==="2"&&$.length===0)return;if(A==="3"&&(!V||!M.labelField||!M.valueField))return;if(A==="3"&&p==="ecanDataSelect"&&$.length===0)return}N!=null&&N.length&&(A="1",O="grouptable");let ue=(X=window==null?void 0:window.config)==null?void 0:X.pageId;if(!ue){const{pathname:ne}=window==null?void 0:window.location;if(ne){const ce=ne.split("/");ce!=null&&ce.length&&(ue=ce[ce.length-1])}}if((ae=Object.keys(M))!=null&&ae.length){const ne=cn(_).find(fe=>fe.conditionKey==="parentCode"),ce={};if(ne){const fe=a(ne.id)||{};if(fe!=null&&fe.itemCodes)ce.parentItemCodes=fe.itemCodes;else return}p==="ecanDataSelect"&&(ce.indicatorList=$.filter(fe=>fe.show));try{return await xt.post(`${Bi}/diagram/formData`,{source:k,dataViewId:T,plugin:"4",layer:A,chartType:"normalSelect",rangeIndexTypeGuid:V,type:p==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:M.labelField,valueField:M.valueField,pageId:ue,sqlConditions:P,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...ce},{headers:{Authentication:(oe=window==null?void 0:window.config)==null?void 0:oe.indicatorToken,operateContext:Ti}})}catch(fe){console.error(fe)}finally{}}else try{return await xt.post(`${Bi}/diagram`,{source:k,dataViewId:T,plugin:L,layer:A,chartType:O,classification:Z,series:H,indicatorList:$,queryColumns:b?[]:ee,pageFlag:!0,pageId:ue,sqlConditions:P.map(ce=>{const{fieldValue:fe}=ce,Te={};return fe&&Array.isArray(fe)&&(Te.fieldValue=JSON.stringify(fe)),{...ce,...Te}}),idxLibMode:z,preview:q,rowHeaders:ie,keyName:e.keyName},{headers:{Authentication:(se=window==null?void 0:window.config)==null?void 0:se.indicatorToken,operateContext:Ti}})}catch(ne){console.error(ne)}finally{}}},Jc=()=>{const o=window.location.search.slice(1).split("&"),n=o.length,a={};for(let i=0;i<n;i++){const r=o[i];if(r==null||r==="")continue;const s=r.split("=");if(Array.isArray(s)){const l=s[0];l.includes("{")||(a[l]=s[1])}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},Xc=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Wn},setup(e){const{width:o,height:n}=t.inject(He,{width:null,height:null}),a=t.inject("setPageHeight",b=>{}),i=t.inject("isMobile",!1),r=t.computed(()=>{const b={};return i||(b.width=o.value,b.height=n.value),{...b,backgroundColor:e.backgroundColor,backgroundImage:mt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=t.ref(0),l=t.ref(0),d=t.ref(0),c=t.ref(0),u=t.ref(!1),y=t.ref();let f;const g=()=>new Promise(b=>{t.nextTick(()=>{o.value&&n.value?(s.value=parseFloat(o.value),l.value=parseFloat(n.value)):(s.value=y.value.clientWidth,l.value=y.value.clientHeight),(!d.value||!c.value)&&(d.value=window.screen.width,c.value=window.screen.height),b()})}),m=()=>{s.value&&l.value?(y.value.style.width=`${s.value}px`,y.value.style.height=`${l.value}px`):(y.value.style.width=`${d.value}px`,y.value.style.height=`${c.value}px`)};t.watch([o,n],async()=>{await g(),m(),C(),window.addEventListener("resize",v),x(),u.value=!0},{immediate:!0});const h=t.ref({});t.provide("scaleValue",h);const C=()=>{if(i){y.value.style.width="100%",y.value.style.height="auto",a("auto");return}const b=document.body.clientWidth,k=document.body.clientHeight,T=s.value||d.value,L=l.value||c.value,A=b/T;let O=k/L;(s.value!==1920||l.value!==1080)&&(O=l.value/s.value*b/L),h.value={widthScale:A,heightScale:O},y.value&&(y.value.style.transform=`scale(${A}, ${O})`),a(O)},v=_e.debounce(async()=>{await g(),C()},100),x=()=>{const b=window.MutationObserver;f=new b(v),f.observe(y.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},p=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return t.onMounted(()=>{u.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",v),p()}),{style:r,container:y,ready:u}}}),dh="",ed={id:"container",ref:"container"};function td(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",ed,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],512)}const Mr=Ae(Se(Xc,[["render",td],["__scopeId","data-v-b496b36e"]])),Mo={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},zo=ke(Mo),nd=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...zo},setup(e,{expose:o}){Jc();const n=t.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),a=t.ref(),i=()=>{a.value.setAttribute("datav-theme",e.theme)},r=t.inject("usedComponentList",[]),s=t.inject("componentList",[]),l=t.computed(()=>{const U=[];for(const Q of t.unref(r))Q.type==="ecanModal"?U.push(...Q.componentList):U.push(Q);return U});t.watch(()=>e.theme,()=>{i()}),t.onMounted(()=>{i()});const d=t.computed(()=>Le(e.contextRequestUrl)),c=t.computed(()=>e.pageMode),u=t.computed(()=>e.theme),y=t.computed(()=>e.width),f=t.computed(()=>e.height),g=t.computed(()=>e.pageFontFamily),m=t.computed(()=>{const U=[],Q=t.unref(s).filter(X=>X.type==="ecanModal");for(const X of Q)X!=null&&X.requestList&&U.push(...X.requestList);return[...U,...e.requestList]}),h=t.ref("");t.provide(He,{contextRequestUrl:d,pageMode:c,theme:u,touchEventId:h,width:y,height:f,fontFamily:g,requestList:m});const C=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",U=>{let Q=U;n.value||(Q=parseFloat(f.value)*U+"px"),C.value.height=Q}),t.provide("isMobile",n.value),t.provide("getContainerMap",()=>e.containerMap),t.provide("getCombinationMap",()=>e.combinationMap);const v=t.ref(),x=new Map;console.log("globalModel",x);const p=U=>x.get(U),b=(U,Q)=>{v.value=Q,x.set(U,Q)},k=()=>{v.value=null},T=U=>{let Q=U;if(Q){const X=U.match(/\{(.+?)\}/g);if(X!=null&&X.length){let ae=X[0].slice(1,-1).trim();const oe=ae.match(/\[(.+?)\]/g);let se="";oe!=null&&oe.length&&(ae=ae.replace(oe[0],""),se=oe[0].slice(1,-1).trim());const ne=t.unref(r).find(ce=>ce.keyName===ae);if(ne){const ce=p(ne.id),{type:fe,value:Te,RECORD:Oe,recordData:We}=ce||{};at(fe,Di)?Q=Oe[se]:at(fe,"select")?Q=We[se]:at(fe,["rangePicker","date"])?ve.isDayjs(t.unref(ce[se]))?Q=t.unref(ce[se]).format(ce.format):Q=t.unref(ce[se]):Q=Te}else Q=""}}return Q},L=new Map,A={},O=async(U,Q)=>{var ne;const{requestName:X}=U,ae=await Ve({...U,projectRequestUrl:t.unref(d),getModel:p})(),oe=((ne=ae==null?void 0:ae.data)==null?void 0:ne.data)||{},se=L.get(X);if(se!=null&&se.length&&(!Q||A[X])){for(const ce of se)ce(oe);Q||L.delete(X)}},w=(U,Q)=>{A[U]&&(clearInterval(A[U]),delete A[U],L.delete(U));const X=t.unref(l).filter(oe=>oe.customRequestName===U),ae=L.get(U)||[];if((X==null?void 0:X.length)>ae.length&&(ae.push(Q),L.set(U,ae),(X==null?void 0:X.length)===ae.length)){const oe=t.unref(m).find(se=>se.requestName===U);oe&&(oe!=null&&oe.isOpenRequestTimer&&(oe!=null&&oe.requestInterval)?(O(oe,!0),A[U]=setInterval(()=>{O(oe,!0)},oe.requestInterval*1e3)):O(oe))}};t.provide(Ie,{getGlobalModel:p,setGlobalModel:b,clearInteractiveData:k,getRecordValueByKeyName:T,hanldePageRequestData:w,interactiveData:v});const I=t.ref({}),N=(U,Q)=>{I.value[U]=Q};t.provide(kt,{loadedData:I,setLoadedData:N});const D=[],R=()=>{D.pop()},B=U=>{D.push(U)},S=new Map,E=U=>S.get(U),_=(U,Q)=>{S.set(U,Q)};t.provide(ki,{popUseModalIds:R,pushUseModalIds:B,getModalModel:E,setModalModel:_});const M=ls(),j=new Set,F=(U,Q)=>{j.add(U),M.on(U,X=>{const{eventName:ae,params:oe}=X;return typeof Q[ae]=="function"&&Q[ae](oe)}),t.onBeforeUnmount(()=>{z(U)})},z=U=>{j.delete(U),M.off(U)},q=(U,Q,X={})=>{if(U==="PAGE"){const ae=D.length;let oe=[];if(ae===0)oe=[...j];else{const se=D[ae-1];oe=[...E(se)]}oe.forEach(se=>{M.emit(se,{eventName:Q,params:X})})}else M.emit(U,{eventName:Q,params:X})};t.provide(Gn,{onEvent:F,offEvent:z,emitEvent:q});const P=t.ref(0),Z=()=>{P.value=t.unref(P)+1};t.provide(Ai,{requestToken:Z});const V=new Map,H=new Map,$=({requestFn:U=()=>{},sortNum:Q=0,id:X=""})=>{if(V.has(Q)){const ae=V.get(Q);ae==null||ae.push(U)}else V.set(Q,[U]);H.set(X,U)},ee=U=>new Promise((Q,X)=>{const ae=U.map(oe=>oe());Promise.all(ae).then(oe=>{Q(oe)}).catch(oe=>{X(oe)})}),ie=U=>new Promise(async(Q,X)=>{if(U){if(typeof U=="string"){const ae=H.get(U);if(typeof ae=="function"){const oe=xt.interceptors.response.use(se=>(Q(se),se),se=>(X(se),Promise.reject(se)));ae(),xt.interceptors.response.eject(oe)}}}else{const ae=Array.from(V);ae.sort((se,ne)=>ne[0]-se[0]);const oe=ae.length;try{e.pageMode!=="design"&&t.unref(P)>0;for(let se=0;se<oe;se++){const ne=ae[se][1];await ee(ne)}}catch(se){console.error(se)}finally{V.clear(),Q(null)}}});t.provide(qe,{setRequest:$,touchRequest:ie});const he=()=>{M.emit(an)};t.provide(an,{emitRefreshPage:he});const ue=U=>{M.on(an,()=>U()),t.onMounted(()=>{M.off(an)})};return t.watchEffect(()=>{var U;if((U=t.unref(r))!=null&&U.length&&t.unref(c)!=="design"){const{jumpType:Q,jumpTime:X,jumpPage:ae,jumpLink:oe}=e;if(X!=null&&X.value){let se=0;switch(X==null?void 0:X.suffix){case"hours":se=X.value*60*60*1e3;break;case"minute":se=X.value*60*1e3;break;case"seconds":se=X.value*1e3;break}setTimeout(()=>{let ne="";Q==="page"&&ae?ne=Fo(t.unref(c),ae):Q==="link"&&oe&&(ne=oe),ne=Le(ne),window.open(ne,"_self")},se)}}}),t.onBeforeUnmount(()=>{V==null||V.clear(),H==null||H.clear()}),o({touchRequest:ie,getGlobalModel:p,onRefreshPage:ue}),{providerConfig:a,configStyle:C}}}),uh="";function od(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:t.normalizeStyle({...e.configStyle,fontFamily:e.pageFontFamily})},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const zr=Ae(Se(nd,[["render",od],["__scopeId","data-v-fc92f909"]])),Po={...De,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[]},qo=ke(Po),Pr=["refreshData","click","valueChange"],Vo="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=",Ho="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==",jo=t.defineComponent({name:"EcanText",components:{Skeleton:Vt},props:{...qo},setup(e,{expose:o}){const n=t.ref(!1),a=Ee(e),i=t.ref({}),r=t.computed(()=>e.variableFontSize||"14px"),s=t.computed(()=>"-"+t.unref(r)),l=R=>{var B;if(e.showAnimation){const S=e.text.match(/\{(.+?)\}/g)||[];if(S!=null&&S.length){const E=(B=S[0].slice(1,-1))==null?void 0:B.trim();if(t.unref(i)[E]===R){i.value=R;return}const _=+R[E],M=String(Math.abs(_)).length;if(isNaN(_))i.value=R;else{let j=[];for(let z=0;z<5;z++){const q=Math.ceil(Math.random()*(Math.abs(_)+1)-1);j.includes(q)||j.push(q)}j.sort((z,q)=>z-q),j=j.map(z=>{const q=String(z).split("").reverse(),P=[];for(let Z=0;Z<M;Z++)q&&q[Z]?P.push(q[Z]):P.push("0");return(_<0?"-":"")+P.reverse().join("")}),j.push(_);let F=0;for(const z of j)setTimeout(()=>{i.value={...t.unref(i),[E]:z}},F*1e3),F+=.1}}else i.value=R}else i.value=R};t.watch(()=>[e.data,e.dataType],([R,B])=>{B==="static"&&l(R)},{immediate:!0});const{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:u,hanldePageRequestData:y}=t.inject(Ie,{getGlobalModel:R=>{},setGlobalModel:(R,B)=>{},getRecordValueByKeyName:R=>{},hanldePageRequestData:(R,B)=>{}}),{setLoadedData:f}=t.inject(kt,{setLoadedData:(R,B)=>{}}),g=t.computed(()=>{let R="";if(e.gradientShow){const{gradientColor:B,gradientOffset:S,gradientAngle:E,color:_}=e;R+=`background: linear-gradient(${E}, ${_}, ${B||"transparent"} ${S*100}%);-webkit-background-clip: text;color: transparent;`}return R}),m=t.computed(()=>{const R={};if(e.gradientShow){const{gradientColor:B,gradientOffset:S,gradientAngle:E,color:_}=e,M=B||"transparent";R.background=`linear-gradient(${E}, ${_}, ${M} ${S*100}%)`,R["-webkit-background-clip"]="text",R.color="transparent"}return R}),h=t.computed(()=>{var F;if(t.unref(n))return"NaN";const R=t.unref(i),B=e.increaseColor||e.color,S=e.declineColor||e.color;let E=e.text;E=E==null?void 0:E.replace(/\n|\\n/g,"<br/>"),E=E==null?void 0:E.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const _=E.match(/\{(.+?)\}/g)||[];let M="";const j=e.showEllipsis?"show-ellipsis":"";if(_==null||_.length===0){if(E&&e.format==="percentage"&&!isNaN(+E)){const z=parseFloat(E),q=z*100,P=C(q.toFixed(2));z>=0?E=`<span class="${j}" style="color: ${P||B||"#ED6643"};font-size:${t.unref(r)};display: inline-block;${t.unref(g)}">
99
+ `;let r=e;if(n!=null&&n.length){for(const l of n){const d=_e(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(r=r.replace(l,d))}return`${i}{text|${r}}`}else return e},Nr=(e,o)=>{const{props:n,componentList:a,getGlobalModel:i}=e,{graphicConfig:r={},startValue:s,endValue:l}=n,d=Qc({graphicConfig:r,startValue:s,endValue:l,componentList:a,getGlobalModel:i}),{dimensions:c,dataset:u}=o,{classificationList:x=[]}=r,m=x.find(y=>y.show).label||"";for(const y of d)c.includes(y)||c.push(y);c.sort((y,g)=>Se(y).isBefore(Se(g))?-1:1);for(const y of u){const{data:g}=y;if(g!=null&&g.length){const S=[];for(const L of d)if(g.find(b=>b[m]!==L)){const b=Ne.cloneDeep(g[0]);for(const h in b)h===m?b[h]=L:b[h]=0;S.push(b)}y.data.push(...S),y.data.sort((L,b)=>Se(L[m]).isBefore(Se(b[m]))?-1:1)}}},cn=e=>{const o=[];for(const n of e)n.conditions?o.push(...cn(n.conditions)):(n==null?void 0:n.dataType)==="component"&&o.push(n);return o};function Qc(e){const{startValue:o,endValue:n,componentList:a,graphicConfig:i,getGlobalModel:r}=e,s=Or(o),l=Or(n),d=[];if(s&&l){const c=a.find(x=>x.keyName===s.keyName),u=a.find(x=>x.keyName===l.keyName);if(c&&u){const x=r(c.id),f=r(u.id),{classificationList:m=[]}=i,y=m.find(g=>g.show);if(y){let g="YYYY-MM";switch(y.name){case"the_year":g="YYYY";break;case"the_month":g="MM";break;case"the_day":g="DD";break;case"the_date":g=(y==null?void 0:y.dateFormat)||g;break}const S=Fr(g);if(g){const L=t.unref(x[s.field]),b=t.unref(f[l.field]);let h=Se(L);const p=Se(b);for(d.push(p.format(g));h.isBefore(p);)d.push(h.format(g)),h=h.add(1,S)}}}}return d}function Or(e){let o=null;if(e){const n=e.match(/\{(.+?)\}/g);if(n!=null&&n.length){let a=n[0].slice(1,-1).trim();const i=a.match(/\[(.+?)\]/g);let r="";i!=null&&i.length&&(a=a.replace(i[0],""),r=i[0].slice(1,-1).trim()),o={keyName:a,field:r}}}return o}function Fr(e){const o=e.split("-");let n="";if(o!=null&&o.length)switch(o[o.length-1]){case"YYYY":n="year";break;case"MM":n="month";break;case"DD":n="day";break}return n}const dn=(e,o)=>{const n={dayjs:Se,...o};let a="";const i=[];for(const l in n)a+=`${l},`,i.push(n[l]);a=a.replace(/,$/,"");const r=`function (${a}){return ${e}}`;let s;try{s=Function(`"use strict";return (${r})`)()(...i)}catch{return e}return s},_e=(e="",{textData:o,codeData:n}={},{useNewline:a=!1,useSpace:i=!1}={})=>{const s={...window.config||{},...o},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let d=0;d<l.length;d++){const c=l[d];let u=c.slice(1,-1).trim();const x=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,f=u.match(x);for(let m=0;m<f.length;m++){const y=f[m],g=s[y];g!=null&&typeof g!="function"&&(u=u.replace(y,g))}(/\(.*\)/g.test(u)||/[+/\\*]/g.test(u))&&(u=dn(u,n)),e=e.replace(c,u)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),i&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},qe=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:i,requestParams:r,requestInterval:s,isOpenRequestTimer:l,openCustomRequestData:d,projectRequestUrl:c="",getModel:u}=e,{contextRequestUrl:x,touchEventId:f}=t.inject(Ve,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:m}=t.inject(Re,{getGlobalModel:b=>{}})||{},y=u||m,g=_e(n),S=async(b={})=>{if(!g||!a||!i)return;let h={};r.forEach(B=>{const{key:N,value:w}=B;if(typeof w=="object"&&w!=null&&w.id){let k={};const{id:D,prop:E,propKey:R,operate:I}=w;D==="THIS"?k=y(t.unref(f))||{}:k=y(D)||{};const v=t.unref(k[E]);let T=null;if(["date","range"].some(z=>it(k==null?void 0:k.type,z))){const{value:z,type:M,mode:F}=I||{};if(z&&M&&F)switch(M){case"add":T=t.unref(v).add(z,F);break;case"minus":T=t.unref(v).subtract(z,F);break}T==null&&(T=t.unref(v)),T=(T==null?void 0:T.format((R==null?void 0:R.trim())||k.format))||""}else Object.prototype.toString.call(v)==="[object Object]"?R?T=v[R]:T=E?v[E]:v:it(k==null?void 0:k.type,"select")&&t.unref(v)&&E&&Array.isArray(t.unref(v))?T=t.unref(v).map(z=>Object.prototype.hasOwnProperty.call(z,E)?z[E]:z):T=v;h[N]=T}else typeof w=="string"&&(h[N]=_e(w))}),h={...window.config.requestParams,...b,...h};let p="";const C=Object.keys(h),A=C.length-1,_=C.length;C.forEach((B,N)=>{let w=h[B];Object.prototype.toString.call(w)==="[object Object]"&&(w=JSON.stringify(w)),N===0?_!==1?p+=`?${B}=${w}&`:p+=`?${B}=${w}`:N===A?p+=`${B}=${w}`:p+=`${B}=${w}&`});try{const B=["get","head"].includes(a),N={};let w=B?g+p:g;h.dataSqlId&&!w.includes("dataSqlId")&&(w+=`${w.includes("?")?"&":"?"}dataSqlId=${h.dataSqlId}`),Object.prototype.hasOwnProperty.call(h,"signal")&&(N.signal=h.signal);const k=await pt({baseURL:t.unref(x)||c||"",url:w,method:a,headers:i,data:B?{}:h,...N});return o(k),k}catch(B){console.error(B)}},L=l&&d&&setInterval(S,s*1e3);return t.onUnmounted(()=>{clearInterval(L)}),S},Dt=(e=[],o,n=!1)=>{let{name:a="name",types:i=[]}=o||{};a=(a==null?void 0:a.trim())||a;const r=new Set,s=new Map,l=e.length,d=i.length;if(l===1&&!n){const x=[];for(let m=0;m<d;m++){const y=i[m],{label:g,value:S}=y,L={...e[0],value:e[0][S]};r.add(g),x.push(L)}const f=e[0][a]||"";s.set(f,x)}else for(let x=0;x<l;x++){const f=e[x],m=f[a];r.add(m);for(let y=0;y<d;y++){const g=i[y],{label:S,value:L}=g,b={...f,value:f[L]||0};if(s.has(S)){const h=s.get(S);h.push(b),s.set(S,h)}else s.set(S,[b])}}const c=Array.from(r),u=[];for(const[x,f]of s)u.push({name:x,data:f});return{dimensions:c,dataset:u}},mt=(e,o=!1)=>{var a;if(!e)return e;let n="";return e!=null&&e.includes("://")?n=e:n=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,o&&(n=`url(${n})`),n},Fo=(e,o)=>{const n=`${Ei}/preview?pageId=${o}`,a=`${Ei}/${o}`;return e==="preview"?n:a},ft=(e,o)=>{var i;if(e==null)return o;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return o;const a=n.length;for(let r=0;r<a;r++){const s=n[r];if(s==null||s==="")break;let l=(i=s.slice(1,-1))==null?void 0:i.trim();l=l==null?void 0:l.replace(/value/g,o);try{let d=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(d=dn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},Je=(e={})=>{const{requestToken:o}=t.inject(Ai,{requestToken:()=>{}}),{setLoadedData:n}=t.inject(kt,{setLoadedData:(h,p)=>{}}),{getGlobalModel:a}=t.inject(Re,{getGlobalModel:h=>{}});e.dataType==="indicator"&&o();const i=h=>{const{around:p,unit:C,id:A}=h;let _="";const{pageMode:B="",componentList:N=[]}=(e==null?void 0:e.graphicConfig)||{};let w=null,k=null;if(B==="design"){const D=N==null?void 0:N.find(z=>z.id===A);if(!D)return[];const{interval:E,intervalUnit:R,startTime:I,endTime:v,operate:T,useCurrentTime:O}=D||{};if(O&&(w=Se().subtract(E,R),k=Se()),I&&(w=Se(I)),v&&(k=Se(v)),T){const{type:z,value:M,mode:F}=T;switch(z){case"add":w=w&&w.add(M,F),k=k&&k.add(M,F);break;case"minus":w=w&&w.subtract(M,F),k=k&&k.subtract(M,F)}}}else{const D=a(A)||{};t.unref(D.startTime)&&(w=Se(t.unref(D.startTime))),t.unref(D.endTime)&&(k=Se(t.unref(D.endTime)))}if(w&&k){const D=k.diff(w,C.toLowerCase());_=`${p==="before"?"-":""}${D+1}`}return _?[_]:[]},r=(h,p)=>Object.prototype.hasOwnProperty.call(h,p),s=(h,p)=>{if(p)r(h,"indexCode")&&(h.hrpIndexCode=h.indexCode,delete h.indexCode),r(h,"indexCodeNum")&&(h.hrpIndexCodeNum=h.indexCodeNum,delete h.indexCodeNum),r(h,"dataType")&&delete h.dataType;else{const{calcWays:C=[],dateCalcTypes:A=[],activeKey:_,componentId:B=""}=h;if(_===5&&(C!=null&&C.length)&&(A!=null&&A.length)&&B){const N=C[0].split("-");(N==null?void 0:N.length)>1&&N[0]==="rangeValue"&&(h.calcWays=i({around:N[1],unit:A[0],id:B})),delete h.radioValue}r(h,"dataType")&&(h.fieldType==="DATE"&&(h.label=h.fieldName),h.dataType==="component"&&(h.fieldValue="${"+h.fieldValue+"}"),delete h.dataType),r(h,"activeKey")&&delete h.activeKey,r(h,"radioValue")&&delete h.radioValue,r(h,"indexCode")&&(h.hrpIndexCode=h.indexCode,delete h.indexCode),r(h,"indexCodeNum")&&(h.hrpIndexCodeNum=h.indexCodeNum,delete h.indexCodeNum),h.dataType!=="component"&&h.useCurrentTime&&(h.fieldValue=Se().format(h.dateFormat)),delete h.useCurrentTime}},l=(h,p)=>{const C=[];return h!=null&&h.length&&Ne.cloneDeep(h).forEach(A=>{if(A.join&&A.conditions){const _=!A.conditions.some(B=>B.join&&B.conditions);A.conditions.forEach((B,N)=>{s(B,p);const w={};if(N<A.conditions.length-1&&(w.join=A.join),_)C.push({...w,...B});else if(B.join&&B.conditions){const k=p?"sqlConditions":"conditions";C.push({[k]:l([B],p),...w})}else C.push({...w,...B})})}else s(A,p),C.push(A)}),C},d=(h={},p)=>{if(h!=null&&h.sortCpnts&&p){const q=S(h);q&&(p.sort=q)}const{label:C,name:A,location:_,show:B,indexCode:N,indexCodeNum:w,calcType:k="COLUMN",builtInFormula:D,builtInValueSource:E,builtInCalcWay:R,formula:I,conditions:v,aggregate:T,distinct:O,dimByCount:z,dataTo:M}=h;let F;if(v&&(F=l(v)),k==="COMPONENT"){const q={};return y(q,E),{label:C.trim(),columnName:A,show:B,calcType:k,componentAlias:R,componentValue:q.fieldValue||null}}const V={label:C.trim(),columnName:A,location:_,show:B,calcType:M==="1"?"VIEW":k,hrpIndexCode:N,hrpIndexCodeNum:w,aggregate:T,builtInFormula:D,builtInValueSource:E,formula:I,conditions:F};if(D==="DATE_OFFSET"){const q=R.split("-");if((q==null?void 0:q.length)===3){let W=q[0];return q[2]==="before"&&q[0]!=="0"&&(W=`-${q[0]}`),{...V,calcWays:[W],dateCalcTypes:[q[1]]}}}else return A==="the_count"&&(V.calcType="AGGREGATE",V.distinct=!!O,V.typeGuid=z),{...V,builtInCalcWay:R}},c=h=>{if(!h)return[];const p=Ne.cloneDeep((h==null?void 0:h.controlList)||[]),{classificationList:C=[],rowHeaderList:A=[],dimensionList:_=[],seriesList:B=[],leftAxisList:N=[],rightAxisList:w=[],queryColumnList:k=[],indicators:D=[]}=h;f(p);const E=[...C,...A,..._,...B,...N,...w,...k,...D],R=[];for(const T of E){const O=cn((T==null?void 0:T.conditions)||[]);if(O!=null&&O.length){const z=O.filter(M=>(M==null?void 0:M.dataType)==="component").map(M=>{const F={};return M!=null&&M.dateFormat&&(F.format=M.dateFormat),{conditionKey:M.fieldName,conditionLabel:M.fieldName,conditionName:M.fieldName,conditionValueType:M.fieldType,id:M.componentId,keyName:M.fieldValue,rule:M.rule,notGlobal:!0,indexCode:M.indexCode,typeGuid:M.typeGuid,indexCodeNum:M.indexCodeNum,...F}});if(z!=null&&z.length)for(const M of z)R.find(F=>F.keyName===M.keyName)||R.push(M)}}const I=R.length,v=p;for(let T=0;T<I;T++){const O=R[T];if((O==null?void 0:O.conditionKey)==="parentCode")continue;const{id:z,keyName:M,prop:F,format:V,modelKey:q,dataType:W="component",customValue:Q}=O,P=u(O);y(P,z,{prop:F,dateFormat:V,modelKey:q,keyName:M}),W===""&&(P.fieldValue=Q||""),v.push(P)}for(let T=v.length-1;T>=0;T--){const O=v[T];O.globalCondition||cn(v).find(M=>M.alias===O.alias&&M.globalCondition)&&v.splice(T,1)}return v};function u(h){const{id:p,keyName:C,conditionLabel:A,conditionKey:_,conditionValueType:B,prop:N,rule:w="NONE",notGlobal:k=!1,indexCode:D,typeGuid:E,indexCodeNum:R,dataType:I="component"}=h;let v=C||p;v&&N&&(v+=`-${N}`);let T=w;return T==="NONE"&&(["startTime","endTime"].includes(N)?T=N==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":C!=null&&C.includes("startTime")?T=N==="GREATER_EQUAL":C!=null&&C.includes("endTime")?T=N==="LESS_EQUAL":T="EQUAL"),{rule:T,label:A,fieldName:_,fieldValue:"",valueType:B,alias:v,globalCondition:!k,indexCode:D,typeGuid:E,indexCodeNum:R,dataType:I}}const x=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function f(h){if(h!=null&&h.length)for(const p of h)if(p!=null&&p.conditions)f(p.conditions);else{const{id:C,keyName:A,prop:_,modelKey:B,format:N,dataType:w="component",customValue:k}=p,D=u(p);y(D,C,{prop:_,dateFormat:N,modelKey:B,keyName:A}),w===""&&(D.fieldValue=k||"");for(const E in D)p[E]=D[E];for(const E of x)delete p[E]}}function m(h){const p=[];if(h!=null&&h.length){for(const C of h)if(C.variableName){const A={variateName:C.variableName,globalCondition:!1,valueType:C.variableType,alias:C.keyName||""};y(A,C.id,{dateFormat:C.format,prop:C.dateTypeValue,keyName:C.keyName}),C.dataType===""&&(A.fieldValue=C.variableValue),C.format&&(A.dateFormat=C.format),C.label&&(A.label=C.label),p.push(A)}}return p}function y(h,p,C){var T,O;const A=a(p)||{},{prop:_="",dateFormat:B="",modelKey:N="",keyName:w=""}=C||{},{value:k,format:D="YYYY-MM-DD",type:E="",useCurrentTime:R,RECORD:I}=A||{},v=B||D;if(it(A.type,"date"))R?k?h.fieldValue=(T=t.unref(k))==null?void 0:T.format(v):h.fieldValue=Se().format(v):h.fieldValue=(O=t.unref(k))==null?void 0:O.format(v),h.dateFormat=v;else if(E==="ecanRangePicker"){let z=_;if(!_){const F=w&&w.split("-");F!=null&&F.length&&(z=F[F.length-1])}if(!z)return;let M=null;if(t.unref(A[z])&&(M=Se(t.unref(A[z]))),M&&(h.fieldValue=M==null?void 0:M.format(v)),z==="rangeValue"&&A.startTime&&A.endTime){const F=Fr(v);F&&(h.fieldValue=t.unref(A.endTime).diff(t.unref(A.startTime),F)+1)}h.dateFormat=v}else it(E,Di)?N&&I?h.fieldValue=I[N]:!N&&I?h.fieldValue=I.value:h.fieldValue=t.unref(k):h.fieldValue=t.unref(k)}const g=h=>{if(h){const p=Ne.cloneDeep(h);return h.defaultCode&&(p.label=p.columnName,delete p.defaultCode),p}else return h},S=h=>{const{sortCpnts:p=[]}=h;let C,A="";for(const _ of p){const B=a(_)||{},{type:N,RECORD:w}=B;if(it(N,"image")&&it(w==null?void 0:w.value,["asc","desc"])){A=w.value.toUpperCase();break}}return A&&(C={label:h.label,columnName:h.name,order:A,type:"NORMAL"}),C},L=async(h={})=>{var X,ie,oe,le,xe,Ae;n(e.id,!1);const{graphicConfig:p,type:C,isGroupTable:A=!1}=e;let{source:_,dataViewId:B,plugin:N="1",layer:w,chartType:k,classificationList:D=[],rowHeaderList:E=[],dimensionList:R=[],seriesList:I=[],leftAxisList:v=[],rightAxisList:T=[],queryColumnList:O=[],indicators:z=[],controlList:M=[],formFields:F={},variableList:V=[],variableConditions:q=[],idxLibMode:W,preview:Q=!1}=p||{},P=[];if((p==null?void 0:p.pageMode)==="design"?(P=(p.sqlConditions??[]).map(ce=>{const de={};if(!r(ce,"globalCondition")&&!ce.join&&(de.globalCondition=!0),!ce.join){const ue=ce.rule||"EQUAL";de.rule=ue==="NONE"?"EQUAL":ue}return{...ce,...de}}),q!=null&&q.length&&(P=P.concat(q))):(P=c(p),V!=null&&V.length&&(P=P.concat(m(V)))),P!=null&&P.length){const ce=P.filter(ue=>ue.globalCondition),de=P.filter(ue=>!ue.globalCondition);(ce==null?void 0:ce.length)>1&&(P=[{join:"&&",conditions:ce},...de])}P!=null&&P.length&&(P=l(P,"1")),w==null&&(it(C,["table"])||it(C,["list","circulate"])&&(D==null?void 0:D.length)>1?w="1":it(C,["select","checkbox","radio"])?w="3":w="2");let H,Y="";if(Array.isArray(D)&&D.length>0&&(!["ecanList","ecanCirculate"].includes(C)||(D==null?void 0:D.length)===1)){const ce=D.length;for(let de=0;de<ce;de++){const ue=D[de]||{},{label:He="",name:Xe="",show:Ge=!1,sort:Ke,customGroup:yt,conditions:ut,dateFormat:$e,typeGuid:Ye="",truncations:je=[]}=ue;if(Ge||ce===1){Y=Ye,H={label:He.trim(),columnName:Xe,show:Ge,sort:S(ue)||g(Ke)||Ke,customGroup:yt,conditions:l(ut),typeGuid:Ye},$e&&(H.dateFormat=$e),Xe==="the_date"&&!H.dateFormat&&(H.dateFormat="YYYY-MM");const et={};if(Array.isArray(je)&&je.length>0){const rt=je.length;for(let j=0;j<rt;j++){const $=je[j]||{},{rule:J="",num:ae=0,name:se=""}=$;J&&ae&&(et.num=ae,et.rule=J,se&&(et.otherGroupName=se))}}(X=Object.keys(et))!=null&&X.length&&(H.truncation=et);break}}}let te;if(Array.isArray(I)&&I.length>0){const ce=I.length;for(let de=0;de<ce;de++){const ue=I[de]||{},{label:He="",name:Xe="",show:Ge=!1,sort:Ke,customGroup:yt,conditions:ut,typeGuid:$e}=ue;if(Ge||ce===1){te={label:He.trim(),columnName:Xe,show:Ge,sort:Ke,customGroup:yt,conditions:l(ut),typeGuid:$e};break}}}const ne=[];v==null||v.forEach(ce=>{ce.location="LEFT",ne.push(d(ce,H))}),T==null||T.forEach(ce=>{ce.location="RIGHT",ne.push(d(ce,H))}),z==null||z.forEach(ce=>{ce.location="LEFT",ne.push(d(ce,H))});const me=[];["ecanList","ecanCirculate"].includes(C)&&(D==null?void 0:D.length)>1&&(O=D),O==null||O.forEach(ce=>{const{label:de,name:ue,location:He,show:Xe,indexCode:Ge,sort:Ke,typeGuid:yt,indexCodeNum:ut,dateFormat:$e}=ce;let Ye=Ke;if(h.sort){const{field:et,order:rt}=h.sort;let j=ne.find($=>$.label===et);!j&&de===et&&(j=ce),j&&(Ye={columnName:j.columnName,label:h.sort.field,order:rt.toUpperCase(),type:"NORMAL"})}const je={label:de,columnName:ue,location:He,show:Xe,sort:Ye,calcType:"COLUMN",hrpIndexCode:Ge,hrpIndexCodeNum:ut,typeGuid:yt};$e&&(je.dateFormat=$e),ue==="the_date"&&!je.dateFormat&&(je.dateFormat="YYYY-MM"),me.push(je)});const fe=[];let U=[];if(Array.isArray(E)&&E.length>0?U=E:Array.isArray(R)&&R.length>0&&(U=R),U!=null&&U.length){const ce=U.length;for(let de=0;de<ce;de++){const ue=U[de]||{},{label:He="",name:Xe="",show:Ge=!1,sort:Ke,customGroup:yt,conditions:ut,truncations:$e,typeGuid:Ye="",dateFormat:je}=ue;let et=Ke;if(h.sort){const{field:$,order:J}=h.sort;let ae=ne.find(se=>se.label===$);!ae&&ue.label===$&&(ae=ue),ae&&(et={columnName:ae.columnName,label:h.sort.field,order:J.toUpperCase(),type:"NORMAL"})}const rt={label:He.trim(),columnName:Xe,show:Ge,sort:et,customGroup:yt,conditions:l(ut),typeGuid:Ye};je&&(rt.dateFormat=je),Xe==="the_date"&&!rt.dateFormat&&(rt.dateFormat="YYYY-MM");const j={};if(Array.isArray($e)&&$e.length>0){const $=$e.length;for(let J=0;J<$;J++){const ae=$e[J]||{},{rule:se="",num:re=0,name:ee=""}=ae;se&&re&&(j.num=re,j.rule=se,ee&&(j.otherGroupName=ee))}}(ie=Object.keys(j))!=null&&ie.length&&(rt.truncation=j),fe.push(rt)}}if(it(C,["text","proportion","counter"])&&(k="zb"),A){if(fe.length===0||ne.length===0)return;k="grouptable"}else{if(w==="1"&&me.length===0)return;if(w==="2"&&ne.length===0)return;if(w==="3"&&(!Y||!F.labelField||!F.valueField))return;if(w==="3"&&C==="ecanDataSelect"&&ne.length===0)return}R!=null&&R.length&&(w="1",k="grouptable");let Z=(oe=window==null?void 0:window.config)==null?void 0:oe.pageId;if(!Z){const{pathname:ce}=window==null?void 0:window.location;if(ce){const de=ce.split("/");de!=null&&de.length&&(Z=de[de.length-1])}}if((le=Object.keys(F))!=null&&le.length){const ce=cn(M).find(ue=>ue.conditionKey==="parentCode"),de={};if(ce){const ue=a(ce.id)||{};if(ue!=null&&ue.itemCodes)de.parentItemCodes=ue.itemCodes;else return}C==="ecanDataSelect"&&(de.indicatorList=ne.filter(ue=>ue.show));try{return await pt.post(`${Bi}/diagram/formData`,{source:_,dataViewId:B,plugin:"4",layer:w,chartType:"normalSelect",rangeIndexTypeGuid:Y,type:C==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:F.labelField,valueField:F.valueField,pageId:Z,sqlConditions:P,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...de},{headers:{Authentication:(xe=window==null?void 0:window.config)==null?void 0:xe.indicatorToken,operateContext:Ti}})}catch(ue){console.error(ue)}finally{}}else try{return await pt.post(`${Bi}/diagram`,{source:_,dataViewId:B,plugin:N,layer:w,chartType:k,classification:H,series:te,indicatorList:ne,queryColumns:A?[]:me,pageFlag:!0,pageId:Z,sqlConditions:P.map(de=>{const{fieldValue:ue}=de,He={};return ue&&Array.isArray(ue)&&(He.fieldValue=JSON.stringify(ue)),{...de,...He}}),idxLibMode:W,preview:Q,rowHeaders:fe,keyName:e.keyName},{headers:{Authentication:(Ae=window==null?void 0:window.config)==null?void 0:Ae.indicatorToken,operateContext:Ti}})}catch(ce){console.error(ce)}finally{}},b=e.isOpenRequestTimer&&e.requestInterval&&setInterval(L,e.requestInterval*1e3);return t.onUnmounted(()=>{clearInterval(b)}),L},Jc=()=>{const o=window.location.search.slice(1).split("&"),n=o.length,a={};for(let i=0;i<n;i++){const r=o[i];if(r==null||r==="")continue;const s=r.split("=");if(Array.isArray(s)){const l=s[0];l.includes("{")||(a[l]=s[1])}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},Xc=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Wn},setup(e){const{width:o,height:n}=t.inject(Ve,{width:null,height:null}),a=t.inject("setPageHeight",p=>{}),i=t.inject("isMobile",!1),r=t.computed(()=>{const p={};return i||(p.width=o.value,p.height=n.value),{...p,backgroundColor:e.backgroundColor,backgroundImage:mt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=t.ref(0),l=t.ref(0),d=t.ref(0),c=t.ref(0),u=t.ref(!1),x=t.ref();let f;const m=()=>new Promise(p=>{t.nextTick(()=>{o.value&&n.value?(s.value=parseFloat(o.value),l.value=parseFloat(n.value)):(s.value=x.value.clientWidth,l.value=x.value.clientHeight),(!d.value||!c.value)&&(d.value=window.screen.width,c.value=window.screen.height),p()})}),y=()=>{s.value&&l.value?(x.value.style.width=`${s.value}px`,x.value.style.height=`${l.value}px`):(x.value.style.width=`${d.value}px`,x.value.style.height=`${c.value}px`)};t.watch([o,n],async()=>{await m(),y(),S(),window.addEventListener("resize",L),b(),u.value=!0},{immediate:!0});const g=t.ref({});t.provide("scaleValue",g);const S=()=>{if(i){x.value.style.width="100%",x.value.style.height="auto",a("auto");return}const p=document.body.clientWidth,C=document.body.clientHeight,A=s.value||d.value,_=l.value||c.value,B=p/A;let N=C/_;(s.value!==1920||l.value!==1080)&&(N=l.value/s.value*p/_),g.value={widthScale:B,heightScale:N},x.value&&(x.value.style.transform=`scale(${B}, ${N})`),a(N)},L=Ne.debounce(async()=>{await m(),S()},100),b=()=>{const p=window.MutationObserver;f=new p(L),f.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},h=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return t.onMounted(()=>{u.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",L),h()}),{style:r,container:x,ready:u}}}),dh="",ed={id:"container",ref:"container"};function td(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",ed,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],512)}const Mr=Te(Ce(Xc,[["render",td],["__scopeId","data-v-b496b36e"]])),Mo={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},zo=Be(Mo),nd=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...zo},setup(e,{expose:o}){Jc();const n=t.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),a=t.ref(),i=()=>{a.value.setAttribute("datav-theme",e.theme)},r=t.inject("usedComponentList",[]),s=t.inject("componentList",[]),l=t.computed(()=>{const U=[];for(const Z of t.unref(r))Z.type==="ecanModal"?U.push(...Z.componentList):U.push(Z);return U});t.watch(()=>e.theme,()=>{i()}),t.onMounted(()=>{i()});const d=t.computed(()=>_e(e.contextRequestUrl)),c=t.computed(()=>e.pageMode),u=t.computed(()=>e.theme),x=t.computed(()=>e.width),f=t.computed(()=>e.height),m=t.computed(()=>e.pageFontFamily),y=t.computed(()=>{const U=[],Z=t.unref(s).filter(X=>X.type==="ecanModal");for(const X of Z)X!=null&&X.requestList&&U.push(...X.requestList);return[...U,...e.requestList]}),g=t.ref("");t.provide(Ve,{contextRequestUrl:d,pageMode:c,theme:u,touchEventId:g,width:x,height:f,fontFamily:m,requestList:y});const S=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",U=>{let Z=U;n.value||(Z=parseFloat(f.value)*U+"px"),S.value.height=Z}),t.provide("isMobile",n.value),t.provide("getContainerMap",()=>e.containerMap),t.provide("getCombinationMap",()=>e.combinationMap);const L=t.ref(),b=new Map;console.log("globalModel",b);const h=U=>b.get(U),p=(U,Z)=>{L.value=Z,b.set(U,Z)},C=()=>{L.value=null},A=U=>{let Z=U;if(Z){const X=U.match(/\{(.+?)\}/g);if(X!=null&&X.length){let ie=X[0].slice(1,-1).trim();const oe=ie.match(/\[(.+?)\]/g);let le="";oe!=null&&oe.length&&(ie=ie.replace(oe[0],""),le=oe[0].slice(1,-1).trim());const xe=t.unref(r).find(Ae=>Ae.keyName===ie);if(xe){const Ae=h(xe.id),{type:ce,value:de,RECORD:ue,recordData:He}=Ae||{};it(ce,Di)?Z=ue[le]:it(ce,"select")?Z=He[le]:it(ce,["rangePicker","date"])?Se.isDayjs(t.unref(Ae[le]))?Z=t.unref(Ae[le]).format(Ae.format):Z=t.unref(Ae[le]):Z=de}else Z=""}}return Z},_=new Map,B={},N=async(U,Z)=>{var xe;const{requestName:X}=U,ie=await qe({...U,projectRequestUrl:t.unref(d),getModel:h})(),oe=((xe=ie==null?void 0:ie.data)==null?void 0:xe.data)||{},le=_.get(X);if(le!=null&&le.length&&(!Z||B[X])){for(const Ae of le)Ae(oe);Z||_.delete(X)}},w=(U,Z)=>{B[U]&&(clearInterval(B[U]),delete B[U],_.delete(U));const X=t.unref(l).filter(oe=>oe.customRequestName===U),ie=_.get(U)||[];if((X==null?void 0:X.length)>ie.length&&(ie.push(Z),_.set(U,ie),(X==null?void 0:X.length)===ie.length)){const oe=t.unref(y).find(le=>le.requestName===U);oe&&(oe!=null&&oe.isOpenRequestTimer&&(oe!=null&&oe.requestInterval)?(N(oe,!0),B[U]=setInterval(()=>{N(oe,!0)},oe.requestInterval*1e3)):N(oe))}};t.provide(Re,{getGlobalModel:h,setGlobalModel:p,clearInteractiveData:C,getRecordValueByKeyName:A,hanldePageRequestData:w,interactiveData:L});const k=t.ref({}),D=(U,Z)=>{k.value[U]=Z};t.provide(kt,{loadedData:k,setLoadedData:D});const E=[],R=()=>{E.pop()},I=U=>{E.push(U)},v=new Map,T=U=>v.get(U),O=(U,Z)=>{v.set(U,Z)};t.provide(ki,{popUseModalIds:R,pushUseModalIds:I,getModalModel:T,setModalModel:O});const z=ls(),M=new Set,F=(U,Z)=>{M.add(U),z.on(U,X=>{const{eventName:ie,params:oe}=X;return typeof Z[ie]=="function"&&Z[ie](oe)}),t.onBeforeUnmount(()=>{V(U)})},V=U=>{M.delete(U),z.off(U)},q=(U,Z,X={})=>{if(U==="PAGE"){const ie=E.length;let oe=[];if(ie===0)oe=[...M];else{const le=E[ie-1];oe=[...T(le)]}oe.forEach(le=>{z.emit(le,{eventName:Z,params:X})})}else z.emit(U,{eventName:Z,params:X})};t.provide(Gn,{onEvent:F,offEvent:V,emitEvent:q});const W=t.ref(0),Q=()=>{W.value=t.unref(W)+1};t.provide(Ai,{requestToken:Q});const P=new Map,H=new Map,Y=({requestFn:U=()=>{},sortNum:Z=0,id:X=""})=>{if(P.has(Z)){const ie=P.get(Z);ie==null||ie.push(U)}else P.set(Z,[U]);H.set(X,U)},te=U=>new Promise((Z,X)=>{const ie=U.map(oe=>oe());Promise.all(ie).then(oe=>{Z(oe)}).catch(oe=>{X(oe)})}),ne=U=>new Promise(async(Z,X)=>{if(U){if(typeof U=="string"){const ie=H.get(U);if(typeof ie=="function"){const oe=pt.interceptors.response.use(le=>(Z(le),le),le=>(X(le),Promise.reject(le)));ie(),pt.interceptors.response.eject(oe)}}}else{const ie=Array.from(P);ie.sort((le,xe)=>xe[0]-le[0]);const oe=ie.length;try{e.pageMode!=="design"&&t.unref(W)>0;for(let le=0;le<oe;le++){const xe=ie[le][1];await te(xe)}}catch(le){console.error(le)}finally{P.clear(),Z(null)}}});t.provide(Pe,{setRequest:Y,touchRequest:ne});const me=()=>{z.emit(an)};t.provide(an,{emitRefreshPage:me});const fe=U=>{z.on(an,()=>U()),t.onMounted(()=>{z.off(an)})};return t.watchEffect(()=>{var U;if((U=t.unref(r))!=null&&U.length&&t.unref(c)!=="design"){const{jumpType:Z,jumpTime:X,jumpPage:ie,jumpLink:oe}=e;if(X!=null&&X.value){let le=0;switch(X==null?void 0:X.suffix){case"hours":le=X.value*60*60*1e3;break;case"minute":le=X.value*60*1e3;break;case"seconds":le=X.value*1e3;break}setTimeout(()=>{let xe="";Z==="page"&&ie?xe=Fo(t.unref(c),ie):Z==="link"&&oe&&(xe=oe),xe=_e(xe),window.open(xe,"_self")},le)}}}),t.onBeforeUnmount(()=>{P==null||P.clear(),H==null||H.clear()}),o({touchRequest:ne,getGlobalModel:h,onRefreshPage:fe}),{providerConfig:a,configStyle:S}}}),uh="";function od(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:t.normalizeStyle({...e.configStyle,fontFamily:e.pageFontFamily})},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const zr=Te(Ce(nd,[["render",od],["__scopeId","data-v-fc92f909"]])),Po={...Ie,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:""},qo=Be(Po),Pr=["refreshData","click","valueChange"],Vo="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=",Ho="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==",jo=t.defineComponent({name:"EcanText",components:{Skeleton:Vt},props:{...qo},setup(e,{expose:o}){const n=t.ref(!1),a=De(e),i=t.ref({}),r=t.computed(()=>e.variableFontSize||"14px"),s=t.computed(()=>"-"+t.unref(r)),l=R=>{var I;if(e.showAnimation){const v=e.text.match(/\{(.+?)\}/g)||[];if(v!=null&&v.length){const T=(I=v[0].slice(1,-1))==null?void 0:I.trim();if(t.unref(i)[T]===R){i.value=R;return}const O=+R[T],z=String(Math.abs(O)).length;if(isNaN(O))i.value=R;else{let M=[];for(let V=0;V<5;V++){const q=Math.ceil(Math.random()*(Math.abs(O)+1)-1);M.includes(q)||M.push(q)}M.sort((V,q)=>V-q),M=M.map(V=>{const q=String(V).split("").reverse(),W=[];for(let Q=0;Q<z;Q++)q&&q[Q]?W.push(q[Q]):W.push("0");return(O<0?"-":"")+W.reverse().join("")}),M.push(O);let F=0;for(const V of M)setTimeout(()=>{i.value={...t.unref(i),[T]:V}},F*1e3),F+=.1}}else i.value=R}else i.value=R};t.watch(()=>[e.data,e.dataType],([R,I])=>{I==="static"&&l(R)},{immediate:!0});const{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:u,hanldePageRequestData:x}=t.inject(Re,{getGlobalModel:R=>{},setGlobalModel:(R,I)=>{},getRecordValueByKeyName:R=>{},hanldePageRequestData:(R,I)=>{}}),{setLoadedData:f}=t.inject(kt,{setLoadedData:(R,I)=>{}}),m=t.computed(()=>{let R="";if(e.gradientShow){const{gradientColor:I,gradientOffset:v,gradientAngle:T,color:O}=e;R+=`background: linear-gradient(${T}, ${O}, ${I||"transparent"} ${v*100}%);-webkit-background-clip: text;color: transparent;`}return R}),y=t.computed(()=>{const R={};if(e.gradientShow){const{gradientColor:I,gradientOffset:v,gradientAngle:T,color:O}=e,z=I||"transparent";R.background=`linear-gradient(${T}, ${O}, ${z} ${v*100}%)`,R["-webkit-background-clip"]="text",R.color="transparent"}return R}),g=t.computed(()=>{var F;if(t.unref(n))return"NaN";const R=t.unref(i),I=e.increaseColor||e.color,v=e.declineColor||e.color;let T=e.text;T=T==null?void 0:T.replace(/\n|\\n/g,"<br/>"),T=T==null?void 0:T.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const O=T.match(/\{(.+?)\}/g)||[];let z="",M="";if(e.exceedConfig==="wrap"?M="show-wrap":e.exceedConfig==="ellipsis"&&(M="show-ellipsis"),O==null||O.length===0){if(T&&e.format==="percentage"&&!isNaN(+T)){const V=parseFloat(T),q=V*100,W=S(q.toFixed(2));V>=0?T=`<span class="${M}" style="color: ${W||I||"#ED6643"};font-size:${t.unref(r)};display: inline-block;${t.unref(m)}">
100
100
  <div class="percentage-img-box">
101
- <img style="width: ${t.unref(r)};filter: ${`drop-shadow(${P||B||"#ED6643"} ${t.unref(r)} 0px)`};" src="${Vo}"/>
101
+ <img style="width: ${t.unref(r)};filter: ${`drop-shadow(${W||I||"#ED6643"} ${t.unref(r)} 0px)`};" src="${Vo}"/>
102
102
  </div>
103
- <span style="color: ${P||e.color};${t.unref(g)}">${Math.abs(+q).toFixed(2)}%</span>
104
- </span>`:E=`<span class="${j}" style="color: ${P||S||"#6ACB97"};font-size:${t.unref(r)};display: inline-block;${t.unref(g)}">
103
+ <span style="color: ${W||e.color};${t.unref(m)}">${Math.abs(+q).toFixed(2)}%</span>
104
+ </span>`:T=`<span class="${M}" style="color: ${W||v||"#6ACB97"};font-size:${t.unref(r)};display: inline-block;${t.unref(m)}">
105
105
  <div class="percentage-img-box">
106
- <img style="width: ${t.unref(r)};filter: ${`drop-shadow(${P||S||"#6ACB97"} ${t.unref(r)} 0px)`};" src="${Ho}"/>
106
+ <img style="width: ${t.unref(r)};filter: ${`drop-shadow(${W||v||"#6ACB97"} ${t.unref(r)} 0px)`};" src="${Ho}"/>
107
107
  </div>
108
- <span style="color: ${P||e.color};${t.unref(g)}">${e.minusSignShow?"-":""}${Math.abs(+q).toFixed(2)}%</span>
109
- </span>`}M=E}for(let z=0;z<_.length;z++){const q=_[z],P=(F=q==null?void 0:q.slice(1,q.length-1))==null?void 0:F.trim();let Z=P;const V=P.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let $=0;$<V.length;$++){const ee=V[$],ie=R[ee];ie&&(Z=P.replace(ee,u(String(ie))||ie))}if(/\(.*\)/g.test(Z)){const $=dn(Z);$!=null&&(Z=$)}let H=Z;if(H===P&&(H=e.variableDefaultValue),H!=null){const $=e.format;if($==="percentage")if(H=+H,isNaN(H))E=E.replace(q,`<span class="${j}" style="color:${C("0.00")||e.variableColor};font-size:${t.unref(r)};${t.unref(g)}">0%</span>`);else if(H>=0){H=H*100;const ee=C(H.toFixed(2));E=E.replace(q,`<span class="${j}" style="color: ${ee||B||"#ED6643"};font-size:${t.unref(r)};display: inline-block;${t.unref(g)}">
108
+ <span style="color: ${W||e.color};${t.unref(m)}">${e.minusSignShow?"-":""}${Math.abs(+q).toFixed(2)}%</span>
109
+ </span>`}z=T}for(let V=0;V<O.length;V++){const q=O[V],W=(F=q==null?void 0:q.slice(1,q.length-1))==null?void 0:F.trim();let Q=W;const P=W.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let Y=0;Y<P.length;Y++){const te=P[Y],ne=R[te];ne&&(Q=W.replace(te,u(String(ne))||ne))}if(/\(.*\)/g.test(Q)){const Y=dn(Q);Y!=null&&(Q=Y)}let H=Q;if(H===W&&(H=e.variableDefaultValue),H!=null){const Y=e.format;if(Y==="percentage")if(H=+H,isNaN(H))T=T.replace(q,`<span class="${M}" style="color:${S("0.00")||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">0%</span>`);else if(H>=0){H=H*100;const te=S(H.toFixed(2));T=T.replace(q,`<span class="${M}" style="color: ${te||I||"#ED6643"};font-size:${t.unref(r)};display: inline-block;${t.unref(m)}">
110
110
  <div class="percentage-img-box">
111
- <img style="width: ${t.unref(r)};filter: ${`drop-shadow(${ee||B||"#ED6643"} ${t.unref(r)} 0px)`};" src="${Vo}"/>
111
+ <img style="width: ${t.unref(r)};filter: ${`drop-shadow(${te||I||"#ED6643"} ${t.unref(r)} 0px)`};" src="${Vo}"/>
112
112
  </div>
113
- <span style="color: ${ee||e.color};${t.unref(g)}">${Math.abs(+H).toFixed(2)}%</span>
114
- </span>`)}else{H=H*100;const ee=C(H.toFixed(2));E=E.replace(q,`<span class="${j}" style="color: ${ee||S||"#6ACB97"};font-size:${t.unref(r)};display: inline-block;${t.unref(g)}">
113
+ <span style="color: ${te||e.color};${t.unref(m)}">${Math.abs(+H).toFixed(2)}%</span>
114
+ </span>`)}else{H=H*100;const te=S(H.toFixed(2));T=T.replace(q,`<span class="${M}" style="color: ${te||v||"#6ACB97"};font-size:${t.unref(r)};display: inline-block;${t.unref(m)}">
115
115
  <div class="percentage-img-box">
116
- <img style="width: ${t.unref(r)};filter: ${`drop-shadow(${ee||S||"#6ACB97"} ${t.unref(r)} 0px)`};" src="${Ho}"/>
116
+ <img style="width: ${t.unref(r)};filter: ${`drop-shadow(${te||v||"#6ACB97"} ${t.unref(r)} 0px)`};" src="${Ho}"/>
117
117
  </div>
118
- <span style="color: ${ee||e.color};${t.unref(g)}">${e.minusSignShow?"-":""}${Math.abs(+H).toFixed(2)}%</span>
119
- </span>`)}else e.format==="percent"?(H=+H,isNaN(H)||(H=(H*100).toFixed(2),E=E.replace(q,`<span class="${j}" style="color:${C(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(g)}">${H}%</span>`))):e.format==="money"?(H=+H,isNaN(H)||(H=Oo(H),E=E.replace(q,`<span class="${j}" style="color:${C(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(g)}">${H}</span>`))):$==="thousands"?(H=+H,isNaN(H)||(H=Yc(H),E=E.replace(q,`<span class="${j}" style="color:${C(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(g)}">${H}</span>`))):E=E.replace(q,`<span class="${j}" style="color:${C(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(g)}">${H}</span>`)}}if(M||(M=`<span class="${j}" style="color: ${C(E)};${t.unref(g)}">${E}</span>`),e.unitShow&&e.unitText){const{unitTop:z,unitLeft:q}=e;let P="position:relative;";z&&(P+=`top:${z};`),q&&(P+=`margin-left:${q};`),M+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${P};${t.unref(g)}'>${e.unitText}</span>`}return e.showEllipsis&&(M=`<span class="show-ellipsis" style="display: inline-block;">${M}</span>`),M});function C(R){let B="",S=!1;const{targetValue:E,targetShow:_,notExpectColor:M}=e;if(_){switch(e.targetRule){case"equal":R!==E&&(S=!0);break;case"greater":R<=E&&(S=!0);break;case"greater_equal":R<E&&(S=!0);break;case"less":R>=E&&(S=!0);break;case"less_equal":R>E&&(S=!0);break}S&&(B=M)}return B}const{pageMode:v}=t.inject(He,{pageMode:"normal",requestList:[]}),x=Ve(e),p=t.ref(!1),b=async()=>{var R;try{p.value=!0;const B=await x();l(((R=B==null?void 0:B.data)==null?void 0:R.data)||{})}catch(B){console.error(B)}finally{p.value=!1}},k=R=>{const B=e.id,S=d(B);c(B,{...S,value:R||"",RECORD:R||""})},T=()=>{k("")},L=Ze(e),A=async()=>{var R,B;try{p.value=!0;const S=await L(),{data:E}=(S==null?void 0:S.data)||{};if(E){n.value=!1;const{columns:_=[],rows:M=[]}=((R=S==null?void 0:S.data)==null?void 0:R.data)??{},{graphicConfig:j}=e;let F={};if(_.length>0)if((B=j==null?void 0:j.dimensionList)!=null&&B.length){const z=_[0];z&&(M!=null&&M.length)&&(F={value:M[0][z]})}else{const z=_.find(q=>!!q);z&&(F={value:isNaN(M[z])?0:M[z]||0})}k(F==null?void 0:F.value),l(F)}else n.value=!0,k("NaN"),l({value:"NaN"})}catch(S){console.error(S)}finally{p.value=!1,f(e.id,!0)}},O=()=>{switch(e.dataType){case"indicator":A();break;case"request":{const{openCustomRequestData:R,customRequestName:B,customRequestField:S}=e;R||R===void 0?b():y(B,E=>{E&&l({[S]:E[S]})});break}}},{setRequest:w}=t.inject(qe,{setRequest:({id:R,sortNum:B,requestFn:S})=>{}});typeof w=="function"&&w({id:e.id,requestFn:O,sortNum:e.requestSort}),Ne(e,{refreshData:O,resetRecord:T}),o({refreshData:O});const I=Re(e),N=I("click",()=>{var j;const R=document.getElementsByClassName(`ecan-text_${e.id}`);if(R!=null&&R.length&&k(R[0].innerText),setTimeout(()=>{k("")},0),!e.linkPage&&!e.href)return;const B=e.linkPage||"",S=Fo(t.unref(v),B),E=e.href;let _=E||S;_=Le(_);const M=e.target;if(M)if(M!=="event"){if((j=e.transParams)!=null&&j.length){_.includes("?")?_+="&":_+="?";const F=[];for(const z of e.transParams)F.push(`${z.keyName}=${u(String(z.fieldName))}`);_+=F.join("&")}window.open(_,"_"+M)}else window.parent.postMessage({type:"openPage",url:E},"*")}),D=I("valueChange",()=>{});return t.watch(()=>h.value,(R,B)=>{R!==B&&D()}),{style:a,myText:h,loading:p,click:N,textIndent:s,vFontSize:r,gradientStyle:m}}}),qr=()=>{t.useCssVars(e=>({de23caca:e.vFontSize,"34f543c4":e.textIndent,"2a79211c":e.percentageSide}))},Vr=jo.setup;jo.setup=Vr?(e,o)=>(qr(),Vr(e,o)):qr;const gh="",mh="",ad=["innerHTML"];function id(e,o,n,a,i,r){const s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["ecan-text","ecan-text_"+e.id]),style:t.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,14,ad))}const Hr=Ae(Se(jo,[["render",id],["__scopeId","data-v-daa40be8"]])),rd=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),xh="",ld={class:"red"};function sd(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",ld,t.toDisplayString(e.text),1)}const jr=Ae(Se(rd,[["render",sd],["__scopeId","data-v-4dd9c03e"]])),Wo={...De,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},Go=ke(Wo),Wr=["timeChange"],cd=t.defineComponent({name:"EcanTimeDisplay",props:{...Go},setup(e){const o=Ee(e),n=()=>{const{format:c,operate:u}=e;let y=ve();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 i=null;const r=()=>{clearInterval(i),i=null},l=Re(e)("timeChange",()=>{}),d=()=>{i&&r();let c=1e3;const{value:u,mode:y}=e.updateInterval||{};u&&(c=c*u);const f={second:1,minute:60,hour:60*60,day:24*60*60};y&&(c=c*f[y]),i=setInterval(()=>{a.value=n(),l()},c)};return Ne(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{r()}),{style:o,time:a}}}),bh="";function dd(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const Gr=Ae(Se(cd,[["render",dd],["__scopeId","data-v-b628fca2"]])),Uo={...De,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"0px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}",itemWidth:"100%"},$o=ke(Uo),Ur=["refreshData","click","resetRecord"],fd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",ud="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",hd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",gd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",md=t.defineComponent({name:"EcanList",components:{Skeleton:Vt,ATooltip:me.Tooltip,MarqueeScroll:Hn},props:{...$o},setup(e,{expose:o}){const n=t.ref(),a=Ee(e,["backgroundColor"]),i=(S,E)=>{const{format:_,customFormatter:M}=E;if(_==null||_==="")return S;const j={money:Oo,percentage:Bn,contrast:Bn,custom:_r};return j[_]?_==="custom"?j[_](S,M)||"":j[_](S)||"":""},r=(S,E)=>{const _=parseFloat(S+"");if(E!=="contrast")return"";switch(!0){case _>=0:return"goUp";case _<0:return"goDown"}},s=Ve(e),l=t.ref(!1),d=async()=>{var S;if(e.dataType==="request")try{l.value=!0;const E=await s();n.value=((S=E==null?void 0:E.data)==null?void 0:S.data.rows)||[]}catch(E){console.error(E)}finally{l.value=!1}};t.watch(()=>e.data,()=>{(e.dataType==="static"||!t.unref(n))&&(n.value=e.data)},{immediate:!0,deep:!0});const c=t.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),u=t.computed(()=>{const{columns:S,isUseSeq:E}=e;return E?[t.unref(c),...S]:S}),y=Ze(e),f=async()=>{var S;try{l.value=!0;const E=await y(),{columns:_=[],rows:M=[]}=((S=E==null?void 0:E.data)==null?void 0:S.data)??{};e.isUseSeq&&_.unshift(e.seqName),u.value.forEach((j,F)=>{(!e.isUseSeq||F!==0)&&(j.title=_[F],j.key=_[F])}),n.value=M}catch(E){console.error(E)}finally{l.value=!1}},g=()=>{switch(e.dataType){case"indicator":f();break;case"request":d();break}},m=Re(e),{getGlobalModel:h,setGlobalModel:C}=t.inject(Ie,{getGlobalModel:S=>{},setGlobalModel:(S,E)=>{}}),v=S=>{m("click",()=>{const E=h(e.id);C(e.id,{...E,type:e.type,RECORD:S})})()};Ne(e,{refreshData:g,resetRecord:()=>{const S=e.id,E=h(S);C(S,{...E,type:e.type,RECORD:""})}});const{setRequest:p}=t.inject(qe,{setRequest:({id:S,sortNum:E,requestFn:_})=>{}});typeof p=="function"&&p({id:e.id,requestFn:g,sortNum:e.requestSort}),o({refreshData:g});const b=(S,E)=>({flex:S.width?"none":"1",width:S.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:(E?S.cellAlign:S.align)||"left",backgroundColor:S.cellColor}),k=(S,E)=>{let _=0;const M=t.unref(n).map(F=>F[E]),j=Math.max(...M);return j&&(_=S[E]/j*100),_},T=S=>{const{progressColor:E="#1890ff",progressGradientColor:_=""}=S;return _?{background:`linear-gradient(to right, ${E} 0%, ${_} 100%)`}:{backgroundColor:E||"#1890ff"}},L=t.computed(()=>{const S=parseFloat(e.seqFontSize)+5;return{width:S+10,height:S}}),{pageMode:A}=t.inject(He,{pageMode:"normal"}),O=t.computed(()=>t.unref(A)!=="design"&&e.isAutoScroll),w=S=>{const{seqIconConfig:E}=e;let _=E.find(M=>M.key===S+1);return _||(_=E.find(M=>M.key==="other")),!!(_!=null&&_.icon)},I=(S,E)=>{const{seqIconConfig:_}=e;let M=_.find(j=>j.key===S+1);return M||(M=_.find(j=>j.key==="other")),E===1?M!=null&&M.icon?mt(M.icon):"":E===2?(M==null?void 0:M.color)||"#fff":""},N=S=>{const{seqIndexFormatter:E}=e,_=S+1;return E?Le(E,{textData:{index:_}},{useNewline:!1,useSpace:!0}):_},D=t.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),R=t.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:a,formatFn:i,contrastClass:r,dataSource:n,loading:l,myColumns:u,click:v,getColumnStyle:b,getPercentage:k,getBackgroundColor:T,isShowSeqIcon:w,getSeqIconData:I,seqIcon4:fd,seqIcon5:ud,seqIcon6:hd,seqIcon7:gd,iconSize:L,isScroll:O,formatSeq:N,wrapStyle:D,colSpan:R,getText:(S,E)=>(S.format!=null||S.format!=="")&&i(E[S.key],S)}}}),Sh="",Ch="",yd=e=>(t.pushScopeId("data-v-8c32652d"),e=e(),t.popScopeId(),e),xd={key:0,class:"title"},pd={key:0,class:"ranking"},bd=["onClick"],vd={key:0,class:"ranking"},Sd=yd(()=>t.createElementVNode("div",{class:"icon"},null,-1)),Cd={class:"sort"},wd=["src"],Ad={key:1},kd=["src","width","height"],Td=["src","width","height"],Bd=["src","width","height"],Ed=["src","width","height"],Dd={key:1},Id=["title"],Rd={key:2,class:"empty"};function Ld(e,o,n,a,i,r){const s=t.resolveComponent("a-tooltip"),l=t.resolveComponent("marquee-scroll"),d=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(d,{loading:e.loading},{default:t.withCtx(()=>[e.useTitle?(t.openBlock(),t.createElementBlock("div",xd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columnCount,c=>(t.openBlock(),t.createElementBlock("div",{class:"title-inner",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:c},[e.useRanking?(t.openBlock(),t.createElementBlock("div",pd)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(u,y)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:u.key||y,style:t.normalizeStyle({color:u.titleColor,...e.getColumnStyle(u)})},t.toDisplayString(u.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-list-content",style:t.normalizeStyle({paddingTop:e.useTitle?e.itemRowSpan:0,height:e.useTitle?"calc(100% - 40px)":"100%"})},[t.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...e.wrapStyle}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(${e.itemWidth} - ${e.colSpan})`,marginRight:e.colSpan,marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||u,onClick:y=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",vd,[Sd,t.createElementVNode("div",Cd," Top "+t.toDisplayString(u+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,y=>{var f;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(c[y.key],y.format),y.key==="SEQ"?"seq-column":""]),key:y.key,style:t.normalizeStyle({fontSize:y.fontSize,color:e.contrastClass(c[y.key],y.format)===""?y.color:"",fontWeight:y.fontWeight,...e.getColumnStyle(y,"cell")})},[y.key==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(f=e.seqIconConfig)!=null&&f.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"icon-box",style:t.normalizeStyle({width:e.seqIconWidth||"",height:e.seqIconHeight||""})},[e.seqIconWidth&&e.seqIconHeight&&e.isShowSeqIcon(u)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(u,1),style:t.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,wd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"custom-seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(u,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(e.formatSeq(u)),5)],4)):(t.openBlock(),t.createElementBlock("div",Ad,[u===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,kd)):u===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,Td)):u===2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,Bd)):u>=3?(t.openBlock(),t.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,Ed)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize})},t.toDisplayString(e.formatSeq(u)),5)]))],64)):(t.openBlock(),t.createElementBlock("span",Dd,t.toDisplayString(e.formatSeq(u)),1))],64)):y.format==="progress"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"progress-cell",style:t.normalizeStyle({height:e.itemHeight})},[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({height:y.progressWidth||"14px",backgroundColor:y.progressBaseColor})},[t.createVNode(s,{title:c[y.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({borderRadius:"10px",height:y.progressWidth||"14px",width:`${e.getPercentage(c,y.key)}%`,...e.getBackgroundColor(y)})},null,4)]),_:2},1032,["title"])],4)],4)):(t.openBlock(),t.createElementBlock("span",{key:2,title:e.getText(y,c)},t.toDisplayString(e.getText(y,c)),9,Id))],6)}),128))],12,bd))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(t.openBlock(),t.createElementBlock("div",Rd," 暂无数据 "))]),_:1},8,["loading"])],4)}const $r=Ae(Se(md,[["render",Ld],["__scopeId","data-v-8c32652d"]])),Ko={...De,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}{%}",fontSize:"26px",color:"#4091f7",variableColor:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},Yo=ke(Ko),Kr=["refreshData","click"],_d=t.defineComponent({name:"EcanProportion",components:{AProgress:me.Progress,Skeleton:Vt},props:{...Yo},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(He,{pageMode:"normal"}),i=Ee(e),r=t.computed(()=>{const b=e.width;return parseFloat(b)}),s=t.ref({});t.watch(()=>e.data,()=>{(e.dataType==="static"||t.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=t.computed(()=>{const b=t.unref(s),k=+e.variableDefaultValue;if(b==null)return isNaN(k)?0:k;const T=e.text.match(/\{(.+?)\}/g)||[];let L;const A=new Set(Object.keys(b));for(let O=0;O<T.length;O++){const w=T[O],I=w.slice(1,w.length-1);if(A.has(I)){L=b[I];break}}return typeof L=="number"?L=L*100:typeof L=="string"&&!isNaN(+L)?L=+L*100:isNaN(k)?L=0:L=k*100,e.decimalFormat&&(L=+L.toFixed(2)),L}),d=t.computed(()=>{var A;let b=e.text;if(b==="")return t.unref(l);const k=e.variableDefaultValue,T=t.unref(s),L=b.match(/\{(.+?)\}/g)||[];for(let O=0;O<L.length;O++){const w=L[O];let I=w.slice(1,w.length-1);const N=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,D=w.match(N);for(let B=0;B<(D==null?void 0:D.length);B++){const S=(A=D[B])==null?void 0:A.trim();T[S]!=null&&(I=I.replace(S,T[S]))}let R=I;try{(/\(.*\)/g.test(I)||/[+/\\*]/g.test(I))&&(R=dn(I))}catch(B){console.error(B)}typeof+R=="number"&&!isNaN(+R)?(R=+R*100,e.decimalFormat&&(R=R.toFixed(2))):typeof R!="string"&&(R=k),b=b.replace(w,`<span style="color: ${e.variableColor};">${R+""}</span>`)}return b=b==null?void 0:b.replace(/\n|\\n/g,"<br/>"),t.unref(n)?"NaN":b}),c=Ve(e),u=t.ref(!1),y=async()=>{var b;if(e.dataType==="request")try{u.value=!0;const k=await c();s.value=((b=k==null?void 0:k.data)==null?void 0:b.data)||{}}catch(k){console.error(k)}finally{u.value=!1}},f=(b={})=>{s.value=b},g=Ze(e),m=async()=>{var b;try{u.value=!0;const k=await g(),{data:T}=(k==null?void 0:k.data)||{};if(T){n.value=!1;const{columns:L=[],rows:A=[]}=((b=k==null?void 0:k.data)==null?void 0:b.data)??{};let O={};if(L.length>0){const w=L.find(I=>!!I);w&&(O={percent:A[w]})}f(O)}else n.value=!0,f({percent:"NaN"})}catch(k){console.error(k)}finally{u.value=!1}},h=()=>{switch(e.dataType){case"indicator":m();break;case"request":y();break}};Ne(e,{refreshData:h}),o({refreshData:h});const v=Re(e)("click",()=>{}),{setRequest:x}=t.inject(qe,{setRequest:({id:b,sortNum:k,requestFn:T})=>{}});typeof x=="function"&&x({id:e.id,requestFn:h,sortNum:e.requestSort});const p=t.computed(()=>{const{gradientShow:b,gradientColor:k,gradientOffset:T,strokeColor:L}=e;let A=L;return b&&k&&(A={"0%":L,[`${T*100}%`]:k}),A});return{style:i,myWidth:r,text:d,myValue:l,loading:u,click:v,customStrokeColor:p}}}),Ah="",Nd=["innerHTML"];function Od(e,o,n,a,i,r){const s=t.resolveComponent("skeleton"),l=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:t.withCtx(()=>[e.loading?(t.openBlock(),t.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(t.openBlock(),t.createElementBlock("div",{key:1,class:"format",style:t.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},[t.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:e.text},null,8,Nd)],4)):t.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Yr=Ae(Se(_d,[["render",Od],["__scopeId","data-v-e1397944"]])),Zo={...De,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{}},Qo=ke(Zo),Zr=["refreshData","click","resetRecord"],Fd=t.defineComponent({name:"EcanCounter",components:{Skeleton:Vt},props:{...Qo},setup(e,{expose:o}){const n=t.ref(),a=Ee(e),i=t.computed(()=>({width:e.unitWidth,height:e.unitHeight,marginRight:e.unitInterval+"px"})),r=t.computed(()=>({color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle}));t.watch(()=>[e.data,e.dataType],([p,b])=>{b==="static"&&(n.value=p)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=t.inject(Ie,{getGlobalModel:p=>{},setGlobalModel:(p,b)=>{}}),c=Re(e)("click",()=>{const p=s(e.id);l(e.id,{...p,type:e.type,value:t.unref(n)})}),u=()=>{const p=e.id,b=s(p);l(p,{...b,type:e.type,value:""})},y=Ve(e),f=t.ref(!1),g=async()=>{var p,b;try{f.value=!0;const k=await y();n.value=((b=(p=k==null?void 0:k.data)==null?void 0:p.data)==null?void 0:b.value)||""}catch(k){console.error(k)}finally{f.value=!1}},m=Ze(e),h=async()=>{var p;try{f.value=!0;const b=await m(),{data:k}=(b==null?void 0:b.data)||{};let T="";if(k){const{columns:L=[],rows:A=[]}=((p=b==null?void 0:b.data)==null?void 0:p.data)??{};if(L.length>0){const O=L.find(w=>!!w);O&&(T=A[O]||"")}}n.value=String(T)}catch(b){console.error(b)}finally{f.value=!1}},C=()=>{switch(e.dataType){case"indicator":h();break;case"request":g();break}},v=t.computed(()=>{const p=[],{digits:b}=e,k=t.unref(n)?t.unref(n).split("").reverse().join(""):"";for(let T=0;T<b;T++)k&&k[T]?p.push(k[T]):p.push("0");return p.reverse()});Ne(e,{refreshData:C,resetRecord:u});const{setRequest:x}=t.inject(qe,{setRequest:({id:p,sortNum:b,requestFn:k})=>{}});return typeof x=="function"&&x({id:e.id,requestFn:C,sortNum:e.requestSort}),o({refreshData:C}),{style:a,valueList:v,digitsStyle:i,fontStyle:r,loading:f,useImagePath:mt,click:c}}}),Th="",Md=["src"];function zd(e,o,n,a,i,r){var l;const s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-counter",style:t.normalizeStyle(e.style),onClick:o[0]||(o[0]=(...d)=>e.click&&e.click(...d))},[(l=e.valueList)!=null&&l.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.valueList,(d,c)=>(t.openBlock(),t.createElementBlock("div",{class:"digits-item",style:t.normalizeStyle(e.digitsStyle),key:c},[e.counterBackgroundImage?(t.openBlock(),t.createElementBlock("img",{key:0,class:"item-image",src:e.useImagePath(e.counterBackgroundImage)},null,8,Md)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"item-text",style:t.normalizeStyle(e.fontStyle)},t.toDisplayString(d),5)],4))),128)):t.createCommentVNode("",!0)],4))}const Qr=Ae(Se(Fd,[["render",zd],["__scopeId","data-v-f32a2cbe"]])),Jo={...De,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Xo=ke(Jo),Jr=["inputChange","inputBlur"],Pd=t.defineComponent({name:"EcanInput",components:{AInput:me.Input},props:{...Xo},setup(e){const o=Ee(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:i,getRecordValueByKeyName:r}=t.inject(Ie,{getGlobalModel:u=>{},setGlobalModel:(u,y)=>{},getRecordValueByKeyName:u=>{}});t.watch(()=>e.value,u=>{n.value=r(u)},{immediate:!0}),i(e.id,{type:e.type,value:n});const s=()=>{const u=a(e.id);i(e.id,{...u,RECORD:n})},l=Re(e),d=_e.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),Eh="";function qd(e,o,n,a,i,r){const s=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Xr=Ae(Se(Pd,[["render",qd]])),ea={...De,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px"},ta=ke(ea),el=["dateChange"],na=t.defineComponent({name:"EcanDatePicker",props:{...ta},components:{ADatePicker:me.DatePicker},setup(e){const o=t.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=Ee(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([f,g,m])=>{let h=null;if(f?h=ve(Le(f)):g&&(h=ve()),m&&h){const{type:C,value:v,mode:x}=m;switch(C){case"add":h=h.add(v,x);break;case"minus":h=h.subtract(v,x)}}i.value=h},{deep:!0,immediate:!0});const{setGlobalModel:r}=t.inject(Ie,{setGlobalModel:(f,g)=>{}});r(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:i});const l=Re(e)("dateChange",()=>{}),d=()=>{t.unref(i)&&l()};Ne(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:i,locale:Ja,change:d,scaleValue:o,popupStyle:c,customStyle:u,openChange:y}}}),tl=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},nl=na.setup;na.setup=nl?(e,o)=>(tl(),nl(e,o)):tl;const Ih="",Rh="",Vd=["id"];function Hd(e,o,n,a,i,r){const s=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[t.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"])],12,Vd)}const ol=Ae(Se(na,[["render",Hd],["__scopeId","data-v-d4ec0d66"]])),oa={...De,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},aa=ke(oa),al=["dateChange"];var il={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(xe,function(){var n="month",a="quarter";return function(i,r){var s=r.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,u){return c=Number(c),this.$utils().p(u)===a?this.add(3*c,n):l.bind(this)(c,u)};var d=s.startOf;s.startOf=function(c,u){var y=this.$utils(),f=!!y.u(u)||u;if(y.p(c)===a){var 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)}}})})(il);var jd=il.exports;const Wd=Ii(jd);ve.extend(Wd);const ia=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:me.RangePicker},props:{...aa},setup(e){const o=Ee(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([p,b,k,T,L,A])=>{let O=null,w=null;if(k&&(O=ve().subtract(T,L),w=ve()),p&&(O=ve(Le(p))),b&&(w=ve(Le(b))),A){const{type:I,value:N,mode:D}=A;switch(I){case"add":O=O&&O.add(N,D),w=w&&w.add(N,D);break;case"minus":O=O&&O.subtract(N,D),w=w&&w.subtract(N,D)}}a.value=[O,w]},{immediate:!0});let i=t.unref(a)[0],r=t.unref(a)[1],s="";const l=(p,b,k)=>{Array.isArray(p)?(i=p[0],r=p[1],s=k.range):(i=null,r=null)};window.dayjs=ve;const d=p=>{let b=!1,{limitStartTime:k,limitEndTime:T}=e;const L={startTime:`${i||""}`,endTime:`${r||""}`};if(k=Le(k,{codeData:L}),T=Le(T,{codeData:L}),k&&T?b=!(ve(k)<p&&p<ve(T)):k?b=ve(k)>p:T&&(b=ve(T)<p),!e.isAllowSpanYear&&s){let A=null;if(s==="start"?A=i:s==="end"&&(A=r),A){const O=A.startOf("year"),w=A.endOf("year");b=!(O<=p&&p<w)}}if(!b){const{value:A=0,mode:O="year"}=e.limitInterval||{};A&&(s==="start"?b=i.add(A,O)<p:s==="end"&&(b=r.subtract(A,O)>p))}return b},{getGlobalModel:c,setGlobalModel:u}=t.inject(Ie,{getGlobalModel:p=>{},setGlobalModel:(p,b)=>{}}),y=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),f=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);u(e.id,{type:e.type,format:e.format,startTime:y,endTime:f,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const g=Re(e);let m=!1;const h=g("dateChange",()=>{}),C=p=>{const b=t.unref(a),k=b&&b[0]&&b[1];p===!1&&m===!0&&k&&(h(),m=!1),p||(s="")},v=()=>{m=!0};return Ne(e,{dateChange:()=>{const{associated:p}=e;if(p){const b=c(p)||{};if(b){const{value:k}=b;if(k)switch(t.unref(k)){case"month":a.value=[ve().startOf("month"),ve().endOf("month")];break;case"quarter":a.value=[ve().startOf("quarter"),ve().endOf("quarter")];break;case"year":a.value=[ve().startOf("year"),ve().endOf("year")];break}}}h()}}),{style:o,getPopupContainer:n,locale:Ja,dateChange:h,myValue:a,disabledDate:d,calendarChange:l,openChange:C,change:v}}}),rl=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},ll=ia.setup;ia.setup=ll?(e,o)=>(rl(),ll(e,o)):rl;const _h="",Nh="";function Gd(e,o,n,a,i,r){const s=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"])],4)}const sl=Ae(Se(ia,[["render",Gd],["__scopeId","data-v-c9c68612"]])),ra={...De,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},la=ke(ra),cl=["click"],Ud=t.defineComponent({name:"EcanButton",components:{AButton:me.Button},props:{...la},setup(e){const o=Ee(e),a=Re(e)("click",()=>{const d=t.unref(s);d&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:d},"*")}),i=t.computed(()=>{const d={};return e.mode!=="primary"&&(d.backgroundColor=e.buttonBackgroundColor||"transparent",d.color=e.tooltipTextStyleColor,d.borderColor=e.borderColor||"transparent"),{height:e.height,...d}}),r=t.computed(()=>Le(e.text)),s=t.computed(()=>Le(e.href)||null),l=t.computed(()=>{const d=e.target;if(!(d==="event"||t.unref(s)==null))return{self:"_self",blank:"_blank"}[d]});return{style:o,click:a,myText:r,myHref:s,myTarget:l,buttonStyle:i}}}),Fh="";function $d(e,o,n,a,i,r){const s=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-button",style:t.normalizeStyle(e.style)},[t.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:t.normalizeStyle(e.buttonStyle),class:t.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:t.withCtx(()=>[t.createElementVNode("span",{style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const dl=Ae(Se(Ud,[["render",$d]])),sa={...De,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},ca=ke(sa),fl=["checkboxChange"],Kd=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:me.CheckboxGroup},props:{...ca},setup(e,{expose:o}){const n=Ee(e),a=t.ref([]),i=t.ref([]),r=C=>{const v=e.value;let x=[];C.forEach(p=>{p.checked&&x.push(p.value)}),typeof v=="string"&&v!==""?x=x.concat(v.split(",")):Array.isArray(v)&&(x=x.concat(v)),a.value=C,i.value=x};t.watch(()=>[e.data,e.value],([C])=>{r(C)},{immediate:!0,deep:!0});const s=Ve(e),l=async()=>{var x,p;if(e.dataType!=="request")return;const C=await s(),v=((p=(x=C==null?void 0:C.data)==null?void 0:x.data)==null?void 0:p.rows)||[];r(v)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Ie,{getGlobalModel:C=>{},setGlobalModel:(C,v)=>{}});c(e.id,{type:e.type,value:i});const y=Re(e)("checkboxChange",()=>{const C=d(e.id);c(e.id,{...C,RECORD:i})}),f=Ze(e),g=async()=>{var C;try{const v=await f(),{data:x}=(v==null?void 0:v.data)||{};if(x){const b=(((C=v==null?void 0:v.data)==null?void 0:C.data)??[]).map(k=>({label:k.label,value:k.value}));r(b)}else r([])}catch(v){console.error(v)}},m=()=>{switch(e.dataType){case"indicator":g();break;case"request":l();break}},{setRequest:h}=t.inject(qe,{setRequest:({id:C,sortNum:v,requestFn:x})=>{}});return typeof h=="function"&&h({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:n,myValue:i,checkboxChange:y}}}),zh="";function Yd(e,o,n,a,i,r){const s=t.resolveComponent("a-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"ecan-checkbox",style:t.normalizeStyle(e.style)},[t.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const ul=Ae(Se(Kd,[["render",Yd]])),da={...De,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},fa=ke(da),hl=["selectChange","refreshData"],Zd=t.defineComponent({name:"EcanSelect",components:{ASelect:me.Select,ASelectOption:me.SelectOption},props:{...fa},setup(e,{expose:o}){const n=Ee(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=Ve(e),r=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var S;const{mode:B}=e;return(S=t.unref(r))!=null&&S.length?s.value:B==="multiple"||B==="tags"||B==="combobox"?[]:""},set:B=>{s.value=B}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:u}=t.inject(Ie,{getGlobalModel:B=>{},setGlobalModel:(B,S)=>{},getRecordValueByKeyName:B=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,r.value],()=>{const{mode:B,selectFirstOption:S,value:E}=e,_=u(E),M=y.value;if(B==="multiple"||B==="tags"||B==="combobox"){if(_)s.value=_.split(",");else if(S){const j=t.unref(r)[0];s.value=j?[j[M]]:[]}}else if(_)s.value=_;else if(S){const j=t.unref(r)[0];s.value=j?j[M]:""}},{immediate:!0});const f=(B,S)=>{const E=y.label,_=y.value;let M;const j=S[E],F=S[_];return j!=null?M=j:F!=null&&(M=F),(M==null?void 0:M.toLowerCase().indexOf(B==null?void 0:B.toLowerCase()))>=0},g=B=>{const{label:S,value:E,options:_}=e.dataFieldNames;if(_&&Array.isArray(B))if(B.some(M=>_ in M)){const M={},j=[];B.forEach(F=>{M[F[_]]||(M[F[_]]=[]),M[F[_]].push({[S]:F[S],[E]:F[E]})});for(const F in M)j.push({[S]:F,[_]:M[F]});return j}else return B;else if(!_)return B},m=t.ref(!1),h=async()=>{var B,S;if(e.dataType==="request"){m.value=!0;try{const E=await i();if(r.value=g(((S=(B=E==null?void 0:E.data)==null?void 0:B.data)==null?void 0:S.rows)||[]),e.selectFirstOption){let _=t.unref(r)[0];if(y.options){const M=_[y.options];M&&M.length&&(_=M[0])}s.value=_[y.value]}}catch(E){console.error(E)}finally{m.value=!1}}},{setLoadedData:C,loadedData:v}=t.inject(kt,{setLoadedData:(B,S)=>{},loadedData:{}}),x=t.computed(()=>{let B=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(r)){const S=y.label,E=y.value;if(e.mode==="multiple")B=t.unref(r).filter(_=>t.unref(s).includes(_[E])).map(_=>_[S]);else{const _=t.unref(r).find(M=>t.unref(s)===M[E]);_&&(B=_[S])}}return B}),p=t.ref([]),b=t.computed(()=>{const B={};if(e.mode!=="multiple"){const S=t.unref(p).find(E=>E.value===t.unref(s));S&&(B.itemCodes=S.item_codes)}return B}),k=t.computed(()=>{const{value:B,label:S}=y,E=t.unref(r).find(_=>_[B]===t.unref(l));return E?{label:E[S],value:E[B]}:{}});c(e.id,{type:e.type,value:x,...t.unref(b),recordData:t.unref(k)});const L=Re(e)("selectChange",()=>{const B=e.id,S=d(B);c(B,{...S,...t.unref(b),RECORD:x,recordData:t.unref(k)})}),A=(B=[])=>{if(r.value=g(B),e.selectFirstOption){let S=t.unref(r)[0];if(y.options){const E=S[y.options];E&&E.length&&(S=E[0])}s.value=S[y.value]}c(e.id,{type:e.type,value:x,...t.unref(b),recordData:t.unref(k)})},O=Ze(e),w=async()=>{var B;try{m.value=!0;const S=await O(),{data:E}=(S==null?void 0:S.data)||{},_=y.label,M=y.value;if(E){const j=((B=S==null?void 0:S.data)==null?void 0:B.data)??[];p.value=j;const F=j.map(P=>({[_]:P.label,[M]:P.value})),{id:z}=e,q=d(z);c(z,{...q,...t.unref(b)}),C(z,!0),A(F)}else A([])}catch(S){console.error(S)}finally{m.value=!1}},I=t.computed(()=>{var B,S;return(S=cn(((B=e==null?void 0:e.graphicConfig)==null?void 0:B.controlList)||[]))==null?void 0:S.find(E=>E.conditionKey==="parentCode")}),N=t.ref(!1);t.watch(v,B=>{!t.unref(N)&&t.unref(I)&&B[t.unref(I).id]&&(N.value=!0,D())},{deep:!0});const D=()=>{switch(e.dataType){case"indicator":{if(t.unref(I)){if(t.unref(v)[t.unref(I).id]){const{mode:B}=e;B==="multiple"||B==="tags"||B==="combobox"?l.value=[]:l.value="",w()}}else w();break}case"request":h();break}};Ne(e,{selectChange:L,refreshData:D});const{setRequest:R}=t.inject(qe,{setRequest:({id:B,sortNum:S,requestFn:E})=>{}});return typeof R=="function"&&R({id:e.id,requestFn:D,sortNum:e.requestSort}),o({refreshData:D}),{style:n,getPopupContainer:a,myValue:s,selectChange:L,options:r,filterOption:f,loading:m,resultValue:l}}}),qh="",Vh="";function Qd(e,o,n,a,i,r){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const gl=Ae(Se(Zd,[["render",Qd],["__scopeId","data-v-2102cdda"]])),ua={...De,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},ha=ke(ua),ml=["selectChange","refreshData"],Jd={name:"EcanTreeSelect",components:{ATreeSelect:me.TreeSelect},props:{...ha},setup(e){const o=Ee(e),n=t.ref(e.data),a=(g,m)=>{const h=e.dataFieldNames,C=h.label,v=h.value;let x;const p=m[C],b=m[v];return p!=null?x=p:b!=null&&(x=b),(x==null?void 0:x.toLowerCase().indexOf(g==null?void 0:g.toLowerCase()))>=0},i=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:g,value:m,selectFirstOption:h}=e;g?m?i.value=m.split(","):h&&(i.value=[t.unref(n)[0]]):m?i.value=m:h&&(i.value=t.unref(n)[0])},{immediate:!0});const r=t.ref(!1),s=Ve(e),l=async()=>{var g,m;if(e.dataType==="request"){r.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 C=t.unref(n)[0];e.value===""&&C!=null&&(i.value=C[e.dataFieldNames.value])}catch(h){console.error(h)}finally{r.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=t.inject(Ie,{getGlobalModel:g=>{},setGlobalModel:(g,m)=>{}});c(e.id,{type:e.type,value:i});const y=Re(e)("selectChange",()=>{const g=e.id,m=d(g);c(g,{...m,RECORD:i})});Ne(e,{selectChange:y,refreshData:l});const{setRequest:f}=t.inject(qe,{setRequest:({id:g,sortNum:m,requestFn:h})=>{}});return f({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:n,filterTreeNode:a,myValue:i,loading:r,selectChange:y}}},jh="",Wh="";function Xd(e,o,n,a,i,r){const s=t.resolveComponent("a-tree-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tree-select",style:t.normalizeStyle(a.style)},[t.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":o[0]||(o[0]=l=>a.myValue=l),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const yl=Ae(Se(Jd,[["render",Xd],["__scopeId","data-v-37236421"]])),ga={...De,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:""},ma=ke(ga),xl=["checkboxChange","click"],ef=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:me.RadioGroup,ARadioButton:me.RadioButton,ARadio:me.Radio},props:{...ma},setup(e,{expose:o}){const{pageMode:n}=t.inject(He,{pageMode:"normal"}),a=Ee(e),i=t.ref([]),r=t.ref(""),s=b=>{const k=e.value;let T=[];typeof k=="string"&&k!==""?T=T.concat(k.split(",")):Array.isArray(k)&&(T=T.concat(k)),i.value=b,r.value=T[0]||""};t.watch(()=>[e.data,e.value],([b])=>{t.unref(n)==="design"&&s(b)},{immediate:!0,deep:!0});const l=Ve(e),d=async()=>{var T,L;if(e.dataType!=="request")return;const b=await l(),k=((L=(T=b==null?void 0:b.data)==null?void 0:T.data)==null?void 0:L.rows)||[];s(k)},{getGlobalModel:c,setGlobalModel:u}=t.inject(Ie,{getGlobalModel:b=>{},setGlobalModel:(b,k)=>{}});u(e.id,{type:e.type,value:r});const y=Re(e),f=()=>{const b=t.unref(i).find(k=>k.value===t.unref(r))||{};y("checkboxChange",()=>{const k=c(e.id);u(e.id,{...k,RECORD:r})},b)()},g=b=>{r.value=b,y("click",()=>{const k=c(e.id);u(e.id,{...k,RECORD:r})})()};t.watch(r,()=>{f()});const m=Ze(e),h=async()=>{var b;try{const k=await m(),{data:T}=(k==null?void 0:k.data)||{};if(T){const A=(((b=k==null?void 0:k.data)==null?void 0:b.data)??[]).map(O=>({label:O.label,value:O.value}));s(A)}else s([])}catch(k){console.error(k)}},C=()=>{switch(e.dataType){case"indicator":h();break;case"request":d();break}},{setRequest:v}=t.inject(qe,{setRequest:({id:b,sortNum:k,requestFn:T})=>{}});typeof v=="function"&&v({id:e.id,requestFn:C,sortNum:e.requestSort});const x=b=>{r.value=b.value},p=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return t.onMounted(()=>{s(e.data)}),o({refreshData:C}),{myOption:i,style:a,myValue:r,radioStyle:p,onClickButton:g,useImagePath:mt,tabChange:x}}}),Uh="",$h="",tf=["onClick"];function nf(e,o,n,a,i,r){const s=t.resolveComponent("a-radio"),l=t.resolveComponent("a-radio-button"),d=t.resolveComponent("a-radio-group");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ecan-radio",e.optionType]),style:t.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:u,onClick:t.withModifiers(y=>e.tabChange(c),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.label),5)],12,tf))),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 pl=Ae(Se(ef,[["render",nf],["__scopeId","data-v-83a05acd"]])),ya={...De,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},xa=ke(ya),bl=["click","refreshData","resetRecord"],Xt=async e=>{var d;const o=await xt.post(e,{},{responseType:"blob"}),{data:n,headers:a}=o,i=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),r=new Blob([n]),s=document.createElement("a"),l=window.URL.createObjectURL(r);s.href=l,s.download=decodeURI(i),s.style.display="none",document.body.appendChild(s),s.click(),(d=s.parentNode)==null||d.removeChild(s),window.URL.revokeObjectURL(l)},pa={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:[]},ba=ke(pa),vl=["showModal","hideModal"],Ot=["ecanBorder","ecanTabs","ecanCirculate"];function Sl(e){const{containerMap:o={},sourceList:n=[]}=e,a=_e.cloneDeep(e.componentList),i=a.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(i!=null&&i.length)for(const r of i){const s=o[r.id],l=[];if((!Jt(r,"componentList")||!(r!=null&&r.componentList))&&(r.componentList=[]),s){let d=0;for(const c in s){const u=s[c],y=[];if(u!=null&&u.length)for(const f of u){let g=a.find(m=>m.id===f);g||(g=n.find(m=>m.id===f)),g&&(y.push(g),Ot.includes(g.type)&&y.push(...fn(g.id,o,n)))}for(const f of y)Jt(f,"scale")?parseFloat(c)>0&&(f.left=parseFloat(f.left)+d+"px"):(f.left=parseFloat(f.sourceLeft||f.left)-parseFloat(r.sourceLeft||r.left)+d+"px",f.top=parseFloat(f.sourceTop||f.top)-parseFloat(r.sourceTop||r.top)+"px"),l.includes(f.id)||l.push(f.id);r.componentList.push(...y),d=cf(y)}}for(const d of l){const c=a.findIndex(u=>u.id===d);c!==-1&&a.splice(c,1)}}return a}function Cl(e){var r,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,i=_e.cloneDeep([...e.componentList,...af(a,n)]);if(of(a,i),(r=Object.keys(a))!=null&&r.length||(s=Object.keys(o))!=null&&s.length){for(const f in a){const g=i.find(m=>m.id===f);if(g){Jt(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 C=i.find(v=>v.id===h);C&&(C.parentId=f,C.sourceLeft=C.left,C.sourceTop=C.top,C.left=parseFloat(C.left)-parseFloat(g.sourceLeft||g.left)+"px",C.top=parseFloat(C.top)-parseFloat(g.sourceTop||g.top)+"px")}}}const l=Array.from(new Set(i.filter(f=>(!Jt(f,"parentId")||f.parentId==="")&&f.combinationId).map(f=>f.combinationId))),d=rf(l,{...e,componentList:i});d!=null&&d.length&&i.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],u=i.filter(f=>c.includes(f.type)&&!Jt(f,"parentId")),y=[];for(const f of u)if(f){const 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&&i.unshift(...y);for(const f of i){const g=document.body.clientWidth;if(f.parentId===""&&Ot.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=i.find(h=>h.id===f.parentId);if((m==null?void 0:m.parentId)===""){const h=m.sourceWidth||parseFloat(m.width),C=g/h;f.scale=C,f.top=parseFloat(f.top)*C-parseFloat(f.height)*(1-C)/2+"px",f.left=parseFloat(f.left)*C-parseFloat(f.width)*(1-C)/2+"px"}}f.type==="ecanModal"&&(f.parentId="",f.fullModal=!0)}return lf(i)}return i}function of(e,o){const n=_e.cloneDeep(e),a=o.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(a!=null&&a.length)for(const i of a){const r=n[i.id];for(const s in r)for(const l of r[s]){const d=o.find(c=>c.id===l);if(d&&Ot.includes(d.type)){const c=fn(d.id,n,o);for(const u of c)e[i.id][s].push(u.id),Ot.includes(u.type)&&delete e[u.id];delete e[d.id]}}}}function af(e,o){const n=[],a=o.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(a!=null&&a.length)for(const i of a){const r=e[i.id];for(const s in r)if(parseFloat(s)>0)for(const l of r[s]){const d=o.find(c=>c.id===l);d&&(n.push(d),Ot.includes(d.type)&&n.push(...fn(d.id,e,o)))}}return n}function fn(e,o,n){const a=[],i=o[e];for(const r in i)for(const s of i[r]){const l=n.find(d=>d.id===s);l&&(a.push(l),Ot.includes(l.type)&&a.push(...fn(l.id,o,n)))}return a}function rf(e,o,n){const{combinationMap:a={},componentList:i=[]}=o,r=[];for(const s of e){const l=a[s];if(l!=null&&l.length){const d=i.filter(c=>l.includes(c.id));if(d!=null&&d.length){const c=sf(d);if(c){r.push({...c,id:s,keyName:s,parentId:n||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:c.left,sourceTop:c.top});for(const u of d)u&&(u.parentId=s,u.sourceLeft=u.left,u.sourceTop=u.top,u.left=parseFloat(u.left)-parseFloat(c.left)+"px",u.top=parseFloat(u.top)-parseFloat(c.top)+"px")}}}}return r}function lf(e){const n=e.filter(a=>a.parentId==="");if(n!=null&&n.length){const a=_e.cloneDeep(n).map(i=>({...i,sourceTop:parseFloat(i.sourceTop),sourceLeft:parseFloat(i.sourceLeft)}));for(let i=0;i<a.length-1;i++)for(let r=0;r<a.length-i-1;r++){let s=!1;if((a[r].sourceTop-a[r+1].sourceTop>50||Math.abs(a[r+1].sourceTop-a[r].sourceTop)<=50&&a[r].sourceLeft>a[r+1].sourceLeft)&&(s=!0),s){const l=a[r];a[r]=a[r+1],a[r+1]=l}}for(const i of a){const r=e.findIndex(s=>s.id===i.id);r!==-1&&e.splice(r,1)}return[...a,...e]}return e}function sf(e){const o=e.sort((r,s)=>parseFloat(r.top)-parseFloat(s.top))[0],n=e.sort((r,s)=>parseFloat(r.left)-parseFloat(s.left))[0],a=e.map(r=>({...r,computedTop:parseFloat(r.top)+parseFloat(r.height)})).sort((r,s)=>s.computedTop-r.computedTop)[0],i=e.map(r=>({...r,computedLeft:parseFloat(r.left)+parseFloat(r.width)})).sort((r,s)=>s.computedLeft-r.computedLeft)[0];return o&&n&&a&&i?{left:n.left,top:o.top,width:i.computedLeft-parseFloat(n.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}function cf(e){const o=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,a)=>a-n)[0];return o||0}function va(e,o,n){const a=e[n],i=[];if(a)for(const r in a){const s=a[r];for(const l of s){const d=o.find(c=>c.id===l);d&&(i.push(d),Ot.includes(d.type)&&i.push(...fn(d.id,e,o)))}}return i}const df=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function ff(e,o,n,a,i,r){return e.component.parentId?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#container_"+e.component.parentId},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.normalizeProps(t.mergeProps({key:1},e.component)),null,16))}const uf=Ae(Se(df,[["render",ff]])),hf=t.defineComponent({name:"EcanModal",components:{AModal:me.Modal,CloseOutlined:b0,Render:uf},props:{...ba},setup(e,{emit:o}){const n=t.ref([]),a=t.inject("isMobile",!1),i=t.inject("getContainerMap",()=>{}),r=t.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l,setRequestData:d}=t.inject(Ie,{setRequestData:(U,Q)=>{},clearInteractiveData:()=>{},interactiveData:null}),c=()=>document.getElementById("ProviderConfig")||document.body,u=t.computed(()=>{const U=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[U]}}),y=e.fullModal?"1920px":e.width,f=e.fullModal?"1080px":e.height,g=e.originalWidth,m=e.originalHeight,h=t.ref("80%"),C=t.ref(0),v=t.ref(),x=t.ref(0),p=t.ref({}),b=Ee(e),k=t.ref({}),T=t.ref(!1),L=t.ref();let A;const O=()=>{v.value=parseFloat(y)/parseFloat(g);const U=parseFloat(f)/parseFloat(m),Q=document.body.offsetWidth,X=document.body.offsetHeight;C.value=Q*t.unref(v),x.value=X*U,h.value=`${t.unref(v)*100}%`,p.value={width:`${t.unref(C)}px`,height:`${t.unref(x)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},k.value={...t.unref(b),backgroundImage:mt(e.backgroundImage,!0)},a?k.value={...k.value,width:"100%",height:"100%"}:k.value={...k.value,transform:`scale(${t.unref(C)/parseFloat(y)},${t.unref(x)/parseFloat(f)})`,width:y,height:f}},w=_e.debounce(()=>{O()},100),I=()=>{const U=window.MutationObserver;A=new U(w),A.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},N=()=>{A&&(A.disconnect(),A.takeRecords(),A=null)},D=t.ref(!1),{touchRequest:R}=t.inject(qe,{touchRequest:()=>{}}),B=t.ref(""),S=()=>{var X;const{title:U}=e,Q=(X=t.unref(l))==null?void 0:X.RECORD;return Q?Le(U,{textData:Q},{useNewline:!1,useSpace:!1}):U},E=Re(e),_=()=>{a&&(document.documentElement.style.overflow="hidden"),B.value=S(),D.value=!0},M=E("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),D.value=!1}),j=()=>{M()},F=()=>{M(),s()},{setModalModel:z,pushUseModalIds:q,popUseModalIds:P}=t.inject(ki,{pushUseModalIds:U=>{},popUseModalIds:()=>{},setModalModel:(U,Q)=>{}}),Z=t.computed(()=>{let U=e.componentList;const Q=_e.cloneDeep(e.componentList),X=i(),ae=r(),oe={containerMap:X,combinationMap:ae};a&&(U=Cl({...oe,componentList:Q,sourceList:e.allComponentList})),U=Sl({...oe,componentList:U,sourceList:e.allComponentList});const se=[];for(const ne of U)if(ne.type==="ecanCirculate"){const ce=va(X,t.unref(Q),ne.id);ne.componentList=ce,se.push(...ce.map(fe=>fe.id))}if(se!=null&&se.length)for(const ne of se){const ce=U.findIndex(fe=>fe.id===ne);ce!==-1&&U.splice(ce,1)}return U}),V=()=>{const U=e.id;let Q=[];const X=e.componentList;Array.isArray(X)&&(Q=X.map(ae=>ae.id),z(U,[...new Set(Q)]))},H=t.ref(!1),$={};for(const U of e.requestList)$[U.requestName]=Ve(U);t.watch(()=>D.value,async U=>{if(U)T.value=!1,q(e.id),V(),await t.nextTick(()=>{O(),window.addEventListener("resize",w),I(),T.value=!0}),R();else{for(const Q in $)d(Q,{});P(),window.removeEventListener("resize",w),N()}});const ee=t.computed(()=>t.unref(v)>=1),ie=t.computed(()=>e.fullModal),he=t.computed(()=>{let U="ecan-modal";return t.unref(ee)&&(U+=" ecan-full-width-modal"),t.unref(ie)&&(U+=" ecan-full-modal"),U});return Ne(e,{showModal:_,hideModal:M}),{modalRef:L,containStyle:p,contentStyle:k,getContainer:c,modalStyle:u,modalWith:h,isFullModal:ie,style:b,visible:D,showModal:_,onOk:j,onCancel:F,isFullWidth:ee,wrapClassName:he,ready:T,usedComponentList:Z,isMobile:a,readyIds:n,hasOwn:Jt,onComponentReady:U=>{n.value.push(U)},formatTitle:B,requestLoaded:H}}}),Zh="",Qh="";function gf(e,o,n,a,i,r){const s=t.resolveComponent("close-outlined"),l=t.resolveComponent("render"),d=t.resolveComponent("a-modal");return t.openBlock(),t.createBlock(d,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:t.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"contain",ref:"containRef",style:t.normalizeStyle(e.containStyle)},[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"content",style:t.normalizeStyle(e.contentStyle)},[t.createElementVNode("div",{class:"header-bar",style:t.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ant-modal-title",style:t.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},t.toDisplayString(e.formatTitle),5)):t.createCommentVNode("",!0),e.isShowCloseBtn?(t.openBlock(),t.createBlock(s,{key:1,class:"close-icon",style:t.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):t.createCommentVNode("",!0)],4),e.usedComponentList.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.isMobile?"mobile-wrap":"")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.usedComponentList,(c,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+u},[e.isMobile?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(t.openBlock(),t.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:1},c)),null,16))],64))),128))],2)):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):t.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const It=Ae(Se(hf,[["render",gf],["__scopeId","data-v-000999c2"]]));tt.use([Lt.CanvasRenderer,bt.PieChart,Be.TitleComponent,Be.ToolboxComponent,Be.TooltipComponent,Be.LegendComponent]);const mf=t.defineComponent({name:"EcanPie",props:{...xa},components:{Spin:qt,Echarts:wt,EcanModal:It},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(He,{pageMode:"normal",fontFamily:""}),i=t.ref(!1),r=Ee(e),s=t.ref([]),l=t.ref(),d=t.ref({}),c=t.computed(()=>{let{data:N=[]}=t.unref(s)[0]||{};if(Array.isArray(e.colors)){const D=e.isUseLabelColors,R=e.colors;N=N.map((B,S)=>({label:D?{color:R[S]}:{},...B}))}return{textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Xt(e.toolboxDownloadUrl)}},myDataZoom:{show:i.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var D;i.value=!0,(D=l.value)==null||D.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){me.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:D=>{const{marker:R,seriesName:B,name:S,value:E,percent:_,data:M}=D||{};return Le(e.tooltipFormatter,{textData:{marker:R,name:S,value:E,percent:_,a:B,b:S,c:E,d:_,...M}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.unref(d),color:e.colors,series:[{data:N,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:i.value?Ke:e.labelFontSize,position:e.labelPosition,formatter:Kc(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),u=()=>{const N=i.value?Ke:parseFloat(e.legendFontSize);d.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:N+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:N}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:D=>{const{data:R}=s.value[0]||{};let B=0,S,E="0%";if(R)for(const _ of R)_.name===D&&(S=+_.value),B+=+_.value;return B&&(E=`${(S/B*100).toFixed(2)}%`),sn(e.legendFormatter,{name:D,value:S,percent:E})}}},y=()=>{i.value=!1},{getGlobalModel:f,setGlobalModel:g}=t.inject(Ie,{getGlobalModel:N=>{},setGlobalModel:(N,D)=>{}}),m=(N=[],D)=>{const{dataset:R}=Ht(N,D);s.value=R},h=(N=[],D)=>{const R=Ht(N,D);s.value=R.dataset};t.watch(()=>e.data,N=>{(e.dataType==="static"||t.unref(n)==="design")&&m(N)},{immediate:!0,deep:!0}),t.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{u()},{immediate:!0});const C=t.ref(!1),v=Ve(e),x=async()=>{var N,D;if(e.dataType==="request")try{C.value=!0;const R=await v();m((D=(N=R==null?void 0:R.data)==null?void 0:N.data)==null?void 0:D.rows,e.valueTypeDataFieldNames)}catch(R){console.error(R)}finally{C.value=!1}},p=Re(e);g(e.id,{type:e.type,RECORD:""});const b=p("click",N=>{const D=f(e.id);g(e.id,{...D,type:e.type,RECORD:N==null?void 0:N.data})}),k=Ze(e),T=async()=>{var N;try{C.value=!0;const D=await k(),{data:R}=(D==null?void 0:D.data)||{};if(R){const{columns:B=[],rows:S=[]}=((N=D==null?void 0:D.data)==null?void 0:N.data)??{};let E=[];if(B.length>0){const _=B[0],M=B[1];E=S.filter(j=>!!j).map(j=>({name:j[_],value:isNaN(j[M])?0:j[M]||0}))}h(E)}}catch(D){console.error(D)}finally{C.value=!1}},{loadedData:L}=t.inject(kt,{loadedData:{}}),A=t.ref(!1);t.watch(L,N=>{if(e.dataType==="indicator"){const D=ln(e.graphicConfig);D!=null&&D.length&&(!t.unref(A)&&ct(e.graphicConfig,N)?(A.value=!0,O()):ct(e.graphicConfig,N)||(A.value=!1))}},{deep:!0});const O=()=>{switch(e.dataType){case"indicator":ct(e.graphicConfig,t.unref(L))&&T();break;case"request":x();break}};Ne(e,{resetRecord:()=>{const N=e.id,D=f(N);g(N,{...D,RECORD:""})},refreshData:O,click:b}),o({refreshData:O});const{setRequest:I}=t.inject(qe,{setRequest:N=>{}});return typeof I=="function"&&I({id:e.id,requestFn:O,sortNum:e.requestSort}),{option:c,style:r,click:b,onClose:y,loading:C,ecanModal:l}}}),Xh="";function yf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const wl=Ae(Se(mf,[["render",yf]])),Sa={...De,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null},Ca=ke(Sa),Al=["click","refreshData","resetRecord"];tt.use([Lt.CanvasRenderer,bt.LineChart,Be.ToolboxComponent,Be.TitleComponent,Be.LegendComponent,Be.MarkLineComponent]);const xf=t.defineComponent({name:"EcanLine",props:{...Ca},components:{Spin:qt,Echarts:wt,EcanModal:It},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(He,{pageMode:"normal",fontFamily:""}),i=t.ref(),r=t.ref(!1),s=Ee(e),l=t.ref([]),d=t.ref([]),c=t.ref(),u=t.computed(()=>r.value?Ke:12),y=t.ref({});let f;const g=t.ref([]),m=t.computed(()=>{const S=e.xAxisLabelFormatter,E=e.yAxisLabelFormatter;return{textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Xt(e.toolboxDownloadUrl)}},myDataZoom:{show:r.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var _;r.value=!0,(_=c.value)==null||_.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){me.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:u.value},show:e.tooltipShow,formatter:_=>{var z;const M=_.length;let j="",F=e.tooltipFormatter;f=(z=_[0])==null?void 0:z.data,F===""&&(F="{marker} {a} {c}");for(let q=0;q<M;q++){const{marker:P,seriesName:Z,name:V,value:H,data:$}=_[q]||{};if(q===0){let ee=V;typeof V=="string"&&V[0]==="0"&&!isNaN(+V)&&(ee=(+V).toString()),j+=`${dt(S,ee)}<br/>`}j+=Le(F,{textData:{marker:P,name:V,value:H,a:Z,b:V,c:H||0,...$}},{useNewline:!0,useSpace:!0}),j+="<br/>"}return j},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(d).map(_=>{let M={};return _&&typeof _=="object"?M={..._}:M={value:_},M}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(_){return typeof _=="string"&&_[0]==="0"&&!isNaN(+_)&&(_=(+_).toString()),dt(S,_)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(_){return dt(E,_)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(r.value?Ke:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?Ke:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(g).map(_=>({name:_.name,icon:e.legendType})),formatter:_=>sn(e.legendFormatter,{name:_})},series:t.unref(l)}}),h=()=>{r.value=!1},{getGlobalModel:C,setGlobalModel:v}=t.inject(Ie,{getGlobalModel:S=>{},setGlobalModel:(S,E)=>{}}),x=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),p=(S=[],E=!1)=>{let _;if(e.dataFieldConfigType==="key"){const z=E?e.keyTypeDataFieldNames:null;_=Dt(S,z)}else if(e.dataFieldConfigType==="value"){const z=E?e.valueTypeDataFieldNames:null;_=Ht(S,z)}d.value=_.dimensions,g.value=_.dataset;const M=_.dataset,j=[],F=M.length;for(let z=0;z<F;z++){const q={};e.shadowColor&&(q.shadowColor=e.shadowColor,q.shadowBlur=e.shadowBlur,q.shadowOffsetY=e.shadowOffsetY,q.shadowOffsetX=e.shadowOffsetX),j.push({type:"line",...M[z],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[z]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[z],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...q},...t.unref(x)})}l.value=j},b=(S=[],E,_=!1)=>{const j=Dt(S,_?E:null,!0);d.value=j.dimensions,g.value=j.dataset;const F=j.dataset,z=[],q=F.length;for(let P=0;P<q;P++){const Z={};e.shadowColor&&(Z.shadowColor=e.shadowColor,Z.shadowBlur=e.shadowBlur,Z.shadowOffsetY=e.shadowOffsetY,Z.shadowOffsetX=e.shadowOffsetX),z.push({type:"line",...F[P],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[P]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[P],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...Z},...t.unref(x)})}l.value=z};t.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([S])=>{(e.dataType==="static"||t.unref(n)==="design")&&p(S)},{immediate:!0,deep:!0});const k=t.ref(!1),T=Ve(e),L=async()=>{var S,E;if(e.dataType==="request")try{k.value=!0;const _=await T();p((E=(S=_==null?void 0:_.data)==null?void 0:S.data)==null?void 0:E.rows,!0)}catch(_){console.error(_)}finally{k.value=!1}},A=Re(e);v(e.id,{type:e.type,RECORD:""});const O=A("click",S=>{const E=C(e.id);v(e.id,{...E,type:e.type,RECORD:e.tooltipShow?f:S.data})}),w=S=>{i.value.chart.containPixel("grid",[S.offsetX,S.offsetY])&&O()};e.tooltipShow?y.value["zr:click"]=w:y.value.click=O;const I=Ze(e),N=async()=>{var S;try{k.value=!0;const E=await I(),{columns:_=[],rows:M=[]}=((S=E==null?void 0:E.data)==null?void 0:S.data)??{};let j;_.length>0&&(j={name:_[0],types:_.slice(1).map(F=>({label:F,value:F}))}),b(M,j,!0)}catch(E){console.error(E)}finally{k.value=!1}},D=()=>{switch(e.dataType){case"indicator":N();break;case"request":L();break}};Ne(e,{refreshData:D,resetRecord:()=>{const S=e.id,E=C(S);v(S,{...E,RECORD:""})},click:O});const{setRequest:B}=t.inject(qe,{setRequest:S=>{}});return typeof B=="function"&&B({id:e.id,requestFn:D,sortNum:e.requestSort}),o({refreshData:D}),{option:m,style:s,click:O,loading:k,onClose:h,ecanModal:c,eventObj:y,echartRef:i}}}),t1="";function pf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,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 kl=Ae(Se(xf,[["render",pf]])),wa={...De,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null},Aa=ke(wa),Tl=["refreshData","click","resetRecord"];tt.use([Lt.CanvasRenderer,bt.BarChart,Be.TitleComponent,Be.LegendComponent,Be.DatasetComponent,Be.ToolboxComponent,Be.MarkLineComponent]);const bf=t.defineComponent({name:"EcanBar",props:{...Aa},components:{Spin:qt,Echarts:wt,EcanModal:It,AModal:me.Modal},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(He,{pageMode:"normal",fontFamily:""}),i=t.inject("usedComponentList",[]),r=t.ref(),s=t.ref(!1),l=t.ref(!1),d=t.ref(null),c=t.ref([]),u=Ee(e),y=t.ref([]),f=t.ref(),g=t.ref({});let m;const h=t.computed(()=>s.value?Ke:12),C=t.computed(()=>{const{gradientShow:Z,gradientColors:V,gradientOffset:H,barBorderRadius:$}=e,ee=t.unref(y),ie=ee.length,he=[];for(let ue=0;ue<ie;ue++){const U={...ee[ue],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(U.stack="stack"),U.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:Q=>{let X="",ae=e.labelFormatter;ae===""&&(ae="{c}");const{seriesName:oe,name:se,value:ne,data:ce}=Q||{};return X+=Le(ae,{textData:{name:se,value:ne,a:oe,b:se,c:ne||0,...ce}},{useNewline:!0,useSpace:!0}),X}},U.itemStyle={},Z&&(U.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[ue]},{offset:H,color:V[ue]},{offset:1,color:V[ue]}]}}),$){const Q=$.split(",");if(Q!=null&&Q.length){const X=[];for(const ae of Q){const oe=parseFloat(ae);isNaN(oe)||X.push(oe)}U.itemStyle.borderRadius=X}}e.isShowMarkLine&&(U.markLine={data:[{type:e.markLineType}]}),he.push(U)}return he}),v=t.ref([]),x=t.ref(!1),p=t.computed(()=>{const Z=e.yAxisLabelFormatter,V=e.xAxisLabelFormatter;return{textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:s.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){l.value=!0;const H=r.value.chart.getOption(),{xAxis:$}=H||{};$&&$.length&&(c.value=$[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Xt(e.toolboxDownloadUrl)}},myDataZoom:{show:s.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var H;s.value=!0,(H=f.value)==null||H.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){me.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:H=>{var he;const $=H.length;let ee="",ie=e.tooltipFormatter;m=(he=H[0])==null?void 0:he.data,ie===""&&(ie="{marker} {a} {c}");for(let ue=0;ue<$;ue++){const{marker:U,seriesName:Q,name:X,value:ae,data:oe}=H[ue]||{};if(ue===0){let se=X;typeof X=="string"&&X[0]==="0"&&!isNaN(+X)&&(se=(+X).toString()),ee+=`${dt(V,se)}<br/>`}ee+=Le(ie,{textData:{marker:U,name:X,value:ae,a:Q,b:X,c:ae||0,...oe}},{useNewline:!0,useSpace:!0}),ee+="<br/>"}return ee},textStyle:{color:e.tooltipTextStyleColor,fontSize:h.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(s.value?Ke:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:s.value?Ke:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(y).map((H,$)=>({name:H.name,itemStyle:{color:e.colors[$]},icon:e.legendType})),formatter:H=>sn(e.legendFormatter,{name:H})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(L),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(H){return typeof H=="string"&&H[0]==="0"&&!isNaN(+H)&&(H=(+H).toString()),dt(V,H)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(v):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(H){return dt(Z,H)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},series:t.unref(C)}}),b=()=>{s.value=!1},k=(Z=[],V=!1)=>{let H={};if(e.dataFieldConfigType==="key"){const $=V?e.keyTypeDataFieldNames:null;H=Dt(Z,$)}else if(e.dataFieldConfigType==="value"){const $=V?e.valueTypeDataFieldNames:null;H=Ht(Z,$)}y.value=H.dataset,v.value=H.dimensions},T=(Z=[],V,H=!1)=>{const ee=Dt(Z,H?V:null,!0);e.defaultRangeValue&&Nr({props:e,componentList:t.unref(i),getGlobalModel:M},ee),y.value=ee.dataset,v.value=ee.dimensions},L=t.computed(()=>t.unref(v).map(Z=>{let V={};return Z&&typeof Z=="object"?V={...Z}:V={value:Z},V}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([Z])=>{(e.dataType==="static"||t.unref(n)==="design")&&k(Z)},{immediate:!0,deep:!0});const A=Ve(e),O=async()=>{var Z,V;try{x.value=!0;const H=await A();k((V=(Z=H==null?void 0:H.data)==null?void 0:Z.data)==null?void 0:V.rows,!0)}catch(H){console.error(H)}finally{x.value=!1}},w=Ze(e),I=async()=>{var Z;try{x.value=!0;const V=await w(),{columns:H=[],rows:$=[]}=((Z=V==null?void 0:V.data)==null?void 0:Z.data)??{};let ee;H.length>0&&(ee={name:H[0],types:H.slice(1).map(ie=>({label:ie,value:ie}))}),T($,ee,!0)}catch(V){console.error(V)}finally{x.value=!1}},{loadedData:N}=t.inject(kt,{loadedData:{}}),D=t.ref(!1);t.watch(N,Z=>{if(e.dataType==="indicator"){const V=ln(e.graphicConfig);V!=null&&V.length&&(!t.unref(D)&&ct(e.graphicConfig,Z)?(D.value=!0,R()):ct(e.graphicConfig,Z)||(D.value=!1))}},{deep:!0});const R=()=>{switch(e.dataType){case"indicator":ct(e.graphicConfig,t.unref(N))&&I();break;case"request":O();break}},B=(Z,V)=>!!t.unref(c)[V.value].value.includes(Z),S=async()=>{l.value=!1;const Z=r.value.chart.getOption();for(let V=0;V<7;V++)await E(Z,V)},E=(Z,V)=>new Promise(H=>{setTimeout(()=>{const{series:$,color:ee,xAxis:ie}=Z,he=r.value.chart,{splitArea:ue={}}=ie[0]||{};$.forEach((U,Q)=>{const X=U.data;let ae="";V%2?ae=ee[Q]+"a8":ae=ee[Q],X[d.value].itemStyle={color:ae}}),V%2?(ue.show=!0,ue.areaStyle.color=t.unref(c).map((U,Q)=>Q===d.value?"#ff003b26":"")):ue.show=!1,he.setOption({series:$,xAxis:ie}),H()},200)});o({refreshData:R});const _=Re(e),{getGlobalModel:M,setGlobalModel:j}=t.inject(Ie,{getGlobalModel:Z=>{},setGlobalModel:(Z,V)=>{}});j(e.id,{type:e.type,RECORD:""});const F=_("click",Z=>{const V=M(e.id);j(e.id,{...V,type:e.type,RECORD:e.tooltipShow?m:Z.data})}),{setRequest:z}=t.inject(qe,{setRequest:Z=>{}});typeof z=="function"&&z({id:e.id,requestFn:R,sortNum:e.requestSort});const q=()=>{const Z=e.id,V=M(Z);j(Z,{...V,RECORD:""})},P=Z=>{r.value.chart.containPixel("grid",[Z.offsetX,Z.offsetY])&&F()};return e.tooltipShow?g.value["zr:click"]=P:g.value.click=F,Ne(e,{refreshData:R,click:F,resetRecord:q}),{option:p,style:u,refreshData:R,click:F,loading:x,onClose:b,ecanModal:f,echartRef:r,handleLocationOk:S,onFilterOption:B,locationVisible:l,locationValue:d,locationNames:c,eventObj:g}}}),o1="",a1="",vf=e=>(t.pushScopeId("data-v-d8caf47f"),e=e(),t.popScopeId(),e),Sf={class:"location-wrap"},Cf=vf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function wf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),u=t.resolveComponent("a-select"),y=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{class:"ecan-bar",style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",Sf,[Cf,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 Bl=Ae(Se(bf,[["render",wf],["__scopeId","data-v-d8caf47f"]])),ka={...De,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",yAxisName:"",xAxisName:""},Ta=ke(ka),El=["click","refreshData","resetRecord"];tt.use([Lt.CanvasRenderer,bt.ScatterChart,Be.ToolboxComponent,Be.TitleComponent,Be.TooltipComponent,Be.LegendComponent,Be.MarkLineComponent]);const Af=t.defineComponent({name:"EcanScatter",props:{...Ta},components:{Spin:qt,Echarts:wt,EcanModal:It},setup(e){const{pageMode:o,fontFamily:n}=t.inject(He,{pageMode:"normal",fontFamily:""}),a=t.ref(!1),i=Ee(e),r=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?Ke:12),d=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),c=t.computed(()=>{const T=e.xAxisLabelFormatter,L=e.yAxisLabelFormatter;return{textStyle:{fontFamily:t.unref(n)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Xt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var A;a.value=!0,(A=s.value)==null||A.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){me.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(A){return typeof A=="string"&&A[0]==="0"&&!isNaN(+A)&&(A=(+A).toString()),dt(T,A)}},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(A){return dt(L,A)}},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(A){var R;const{marker:O,seriesName:w}=A,I=((R=A==null?void 0:A.data)==null?void 0:R.record)??{},{name:N,value:D}=I;return Le(e.tooltipFormatter,{textData:{marker:O,seriesName:w,a:w,b:N,c:D,...I}})},axisPointer:{type:"cross"},textStyle:{fontSize:l.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:l.value}},series:[{data:t.unref(r),type:"scatter",symbolSize:e.symbolSize,...t.unref(d)}]}}),{getGlobalModel:u,setGlobalModel:y}=t.inject(Ie,{getGlobalModel:T=>{},setGlobalModel:(T,L)=>{}}),f=(T=[],L)=>{const{name:A="name",value:O="value"}=L||{};r.value=T.map(w=>({value:[w[A],w[O]],record:w}))};t.watch(()=>e.data,T=>{(e.dataType==="static"||t.unref(o)==="design")&&f(T)},{immediate:!0,deep:!0});const g=t.ref(!1),m=Ve(e),h=async()=>{var T,L;if(e.dataType==="request"){g.value=!0;try{const A=await m();f((L=(T=A==null?void 0:A.data)==null?void 0:T.data)==null?void 0:L.rows,e.dataFieldNames)}catch(A){console.error(A)}finally{g.value=!1}}},C=()=>{a.value=!1},v=Re(e);y(e.id,{type:e.type,RECORD:""});const x=v("click",T=>{const L=e.id,A=u(L);y(L,{...A,type:e.type,RECORD:T==null?void 0:T.data})});Ne(e,{refreshData:()=>{h()},click:x,resetRecord:()=>{const T=e.id,L=u(T);y(T,{...L,RECORD:""})}});const{setRequest:k}=t.inject(qe,{setRequest:T=>{}});return typeof k=="function"&&k({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:c,style:i,click:x,loading:g,onClose:C,ecanModal:s}}}),r1="";function kf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Dl=Ae(Se(Af,[["render",kf]])),Ba={...De,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},Ea=ke(Ba),Tf=t.defineComponent({name:"EcanCustomGraph",props:{...Ea},components:{Echarts:wt},setup(e){const o=Ee(e),n=t.ref();return t.watch(()=>e.optionCode,a=>{try{const i=eval;n.value=i(a)}catch(i){console.error(i)}},{immediate:!0}),{style:o,myOption:n,echarts:fs}}});function Bf(e,o,n,a,i,r){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const Il=Ae(Se(Tf,[["render",Bf]])),Da={...De,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null},Ia=ke(Da),Rl=["refreshData","click","resetRecord"];tt.use([Lt.CanvasRenderer,bt.BarChart,bt.LineChart,Be.TitleComponent,Be.LegendComponent,Be.DatasetComponent,Be.ToolboxComponent,Be.MarkLineComponent]);const Ef=t.defineComponent({name:"EcanComboGraph",props:{...Ia},components:{Spin:qt,Echarts:wt,EcanModal:It,AModal:me.Modal},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(He,{pageMode:"normal",fontFamily:""}),i=t.inject("usedComponentList",[]),{getGlobalModel:r,setGlobalModel:s}=t.inject(Ie,{getGlobalModel:V=>{},setGlobalModel:(V,H)=>{}}),l=t.ref(),d=t.ref(!1),c=t.ref(!1),u=t.ref(null),y=t.ref([]),f=t.ref({});let g;const m=Ee(e),h=t.ref([]),C=t.ref([]),v=t.ref(),x=t.ref([]),p=t.computed(()=>d.value?Ke:12),b=t.computed(()=>({textStyle:{fontFamily:t.unref(a)},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:d.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){c.value=!0;const V=l.value.chart.getOption(),{xAxis:H}=V||{};H&&H.length&&(y.value=H[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Xt(e.toolboxDownloadUrl)}},myDataZoom:{show:d.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var V;d.value=!0,(V=v.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(){me.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(d.value?Ke:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:d.value?Ke:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(x).map((V,H)=>({name:V.name,itemStyle:{color:e.colors[H]},icon:e.legendType})),formatter:V=>sn(e.legendFormatter,{name:V})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:V=>{var he;const H=V.length;let $="",ee=e.tooltipFormatter;g=(he=V[0])==null?void 0:he.data,ee===""&&(ee="{marker} {a} {c}");const ie=e.seriesTypes;for(let ue=0;ue<H;ue++){const U=ie[ue],{tooltipFormatter:Q}=U||{},{marker:X,seriesName:ae,name:oe,value:se,data:ne}=V[ue]||{};if(ue===0){let ce=oe;typeof oe=="string"&&oe[0]==="0"&&!isNaN(+oe)&&(ce=(+oe).toString()),$+=`${dt(e.xAxisLabelFormatter,ce)}<br/>`}$+=Le(Q||ee,{textData:{marker:X,name:oe,value:se,seriesName:ae,a:ae,b:oe,c:se||0,...ne}},{useNewline:!0,useSpace:!0}),$+="<br/>"}return $},textStyle:{color:e.tooltipTextStyleColor,fontSize:p.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(C).map(V=>{let H={};return V&&typeof V=="object"?H={...V}:H={value:V},H}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(V){return typeof V=="string"&&V[0]==="0"&&!isNaN(+V)&&(V=(+V).toString()),dt(e.xAxisLabelFormatter,V)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:t.unref(O),series:t.unref(h)})),k=()=>{d.value=!1},T=(V=[],H=!1)=>{let $;if(e.dataFieldConfigType==="key"){const ie=H?e.keyTypeDataFieldNames:null;$=Dt(V,ie)}else if(e.dataFieldConfigType==="value"){const ie=H?e.valueTypeDataFieldNames:null;$=Ht(V,ie)}C.value=$.dimensions;const ee=$.dataset;x.value=$.dataset,h.value=A(ee)},L=(V=[],H,$=!1)=>{const ie=Dt(V,$?H:null,!0);e.defaultRangeValue&&Nr({props:e,componentList:t.unref(i),getGlobalModel:r},ie),C.value=ie.dimensions;const he=ie.dataset;x.value=ie.dataset,h.value=A(he)};function A(V){const H=[],$=V.length,ee=e.seriesTypes;for(let ie=0;ie<$;ie++){const he=ee[ie],{type:ue,axisIndex:U}=he||{};let Q={type:ue,yAxisIndex:U,...V[ie]};if(ue==="line"){const X={};e.shadowColor&&(X.shadowColor=e.shadowColor,X.shadowBlur=e.shadowBlur,X.shadowOffsetY=e.shadowOffsetY,X.shadowOffsetX=e.shadowOffsetX),Q={...Q,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[ie]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[ie]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[ie],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...X}}}if(ue==="bar"){const{gradientShow:X,gradientColors:ae,gradientOffset:oe}=e,se={};if(e.barBorderRadius){const ne=e.barBorderRadius.split(",");if(ne!=null&&ne.length){const ce=[];for(const fe of ne){const Te=parseFloat(fe);isNaN(Te)||ce.push(Te)}se.borderRadius=ce}}X&&(se.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[ie]},{offset:oe,color:ae[ie]},{offset:1,color:ae[ie]}]}),Q={...Q,barWidth:e.barWidth,itemStyle:se}}e.isShowMarkLine&&(Q.markLine={data:[{type:e.markLineType}]}),H.push(Q)}return H}t.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([V])=>{(e.dataType==="static"||t.unref(n)==="design")&&T(V)},{immediate:!0,deep:!0});const O=t.computed(()=>{const V=e.yAxis;return V==null?void 0:V.map((H,$)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:$===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:$===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(ee){return dt(H.axisLabelFormatter,ee)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:$===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:$===0?"right":"left"},max:e.yAxisMaxValue||null}))}),w=t.ref(!1),I=Ve(e),N=async()=>{var V,H;if(e.dataType==="request")try{w.value=!0;const $=await I();T((H=(V=$==null?void 0:$.data)==null?void 0:V.data)==null?void 0:H.rows,!0)}catch($){console.error($)}finally{w.value=!1}},D=Ze(e),R=async()=>{var V;try{w.value=!0;const H=await D(),{columns:$=[],rows:ee=[]}=((V=H==null?void 0:H.data)==null?void 0:V.data)??{};let ie;$.length>0&&(ie={name:$[0],types:$.slice(1).map(he=>({label:he,value:he}))}),L(ee,ie,!0)}catch(H){console.error(H)}finally{w.value=!1}},{loadedData:B}=t.inject(kt,{loadedData:{}}),S=t.ref(!1);t.watch(B,V=>{if(e.dataType==="indicator"){const H=ln(e.graphicConfig);H!=null&&H.length&&(!t.unref(S)&&ct(e.graphicConfig,V)?(S.value=!0,E()):ct(e.graphicConfig,V)||(S.value=!1))}},{deep:!0});const E=()=>{switch(e.dataType){case"indicator":ct(e.graphicConfig,t.unref(B))&&R();break;case"request":N();break}},_=(V,H)=>!!t.unref(y)[H.value].value.includes(V),M=async()=>{c.value=!1;const V=l.value.chart.getOption();for(let H=0;H<7;H++)await j(V,H)},j=(V,H)=>new Promise($=>{setTimeout(()=>{const{series:ee,color:ie,xAxis:he}=V,ue=l.value.chart,{splitArea:U={}}=he[0]||{};ee.forEach((Q,X)=>{const ae=Q.data;let oe="";H%2?oe=ie[X]+"a8":oe=ie[X],ae[u.value].itemStyle={color:oe}}),H%2?(U.show=!0,U.areaStyle.color=t.unref(y).map((Q,X)=>X===u.value?"#ff003b26":"")):U.show=!1,ue.setOption({series:ee,xAxis:he}),$()},200)});o({refreshData:E});const F=Re(e);s(e.id,{type:e.type,RECORD:""});const z=F("click",V=>{const H=r(e.id);s(e.id,{...H,type:e.type,RECORD:e.tooltipShow?g:V==null?void 0:V.data})}),q=V=>{l.value.chart.containPixel("grid",[V.offsetX,V.offsetY])&&z()};e.tooltipShow?f.value["zr:click"]=q:f.value.click=z;const{setRequest:P}=t.inject(qe,{setRequest:V=>{}});return typeof P=="function"&&P({id:e.id,requestFn:E,sortNum:e.requestSort}),Ne(e,{resetRecord:()=>{const V=e.id,H=r(V);s(V,{...H,RECORD:""})},refreshData:E,click:z}),{style:m,option:b,click:z,loading:w,onClose:k,ecanModal:v,echartRef:l,handleLocationOk:M,onFilterOption:_,locationVisible:c,locationValue:u,locationNames:y,eventObj:f}}}),c1="",d1="",Df=e=>(t.pushScopeId("data-v-b2e232e1"),e=e(),t.popScopeId(),e),If={class:"location-wrap"},Rf=Df(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Lf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),u=t.resolveComponent("a-select"),y=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",If,[Rf,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 Ll=Ae(Se(Ef,[["render",Lf],["__scopeId","data-v-b2e232e1"]])),Ra={...De,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1},La=ke(Ra),_l=["refreshData","click","resetRecord"];tt.use([Lt.CanvasRenderer,bt.RadarChart,Be.ToolboxComponent,Be.TitleComponent,Be.LegendComponent]);const _f=t.defineComponent({name:"EcanRadar",props:{...La},components:{Spin:qt,Echarts:wt,EcanModal:It},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(He,{pageMode:"normal",fontFamily:""}),i=t.ref(),r=t.ref(!1),s=Ee(e),l=t.ref([]),d=t.ref(),c=t.computed(()=>r.value?Ke:12),u=t.ref([]),y=t.ref(e.valueTypeDataFieldNames.name),f=t.computed(()=>{const R=t.unref(u),B=R.length,S=[];for(let E=0;E<B;E++){const{name:_,data:M=[]}=R[E],j=[{name:_,value:M.map(q=>q.value)}];let F=e.colors[E];if(e.gradientShow){const{gradientOffset:q,gradientColors:P}=e;F={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[E]},{offset:q,color:P[E]},{offset:1,color:P[E]}]}}const z={type:"radar",name:_,data:j,areaStyle:{color:F,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:q=>{const{data:P,value:Z}=q;let V=0,H="0%";if(P)for(const $ of P.value)V+=+$;return V&&(H=`${(Z/V*100).toFixed(2)}%`),Le(e.labelFormatter,{textData:{value:Z,percent:H}},{useNewline:!1,useSpace:!1})}}};S.push(z)}return S}),g=t.computed(()=>{var _;const R=[],B=[],S=t.unref(u),E=S.length;for(let M=0;M<E;M++){const{data:j=[]}=S[M];for(let F=0;F<j.length;F++)B.push(j[F].value)}if((_=l.value)!=null&&_.length){const M=B!=null&&B.length?Math.max(...B)*1.2:0;for(const j of l.value)R.push({name:j,max:M})}return R}),m=t.computed(()=>({textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Xt(e.toolboxDownloadUrl)}},myDataZoom:{show:r.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var R;r.value=!0,(R=d.value)==null||R.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){me.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:c.value},show:e.tooltipShow,formatter:R=>{let B="",S=e.tooltipFormatter;S===""&&(S="{marker} {a} {c}");for(let E=0;E<t.unref(g).length;E++){const _=t.unref(g)[E],{marker:M,seriesName:j,value:F}=R||{};E===0&&j&&(B+=`${j}<br/>`),B+=Le(S,{textData:{marker:M,name:_.name,value:F[E],a:_.name,b:_.name,c:F[E]||0,type:j}},{useNewline:!0,useSpace:!0}),B+="<br/>"}return B},position:e.tooltipPosition||void 0},radar:{indicator:t.unref(g),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(r.value?Ke:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?Ke:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(u).map(R=>({name:R.name,icon:e.legendType})),formatter:R=>sn(e.legendFormatter,{name:R})},series:t.unref(f)})),h=()=>{r.value=!1},{getGlobalModel:C,setGlobalModel:v}=t.inject(Ie,{getGlobalModel:R=>{},setGlobalModel:(R,B)=>{}}),x=(R=[],B=!1)=>{let S;if(e.dataFieldConfigType==="key"){const E=B?e.keyTypeDataFieldNames:null;S=Dt(R,E)}else if(e.dataFieldConfigType==="value"){const E=B?e.valueTypeDataFieldNames:null;S=Ht(R,E)}l.value=S.dimensions,u.value=S.dataset},p=(R=[],B,S=!1)=>{const _=Dt(R,S?B:null,!0);l.value=_.dimensions,u.value=_.dataset};t.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([R])=>{(e.dataType==="static"||t.unref(n)==="design")&&x(R)},{immediate:!0,deep:!0});const b=t.ref(!1),k=Ve(e),T=async()=>{var R,B;if(e.dataType==="request")try{b.value=!0;const S=await k();x((B=(R=S==null?void 0:S.data)==null?void 0:R.data)==null?void 0:B.rows,!0)}catch(S){console.error(S)}finally{b.value=!1}},L=Re(e);v(e.id,{type:e.type,RECORD:""});const A=R=>{const B=R.event.topTarget.__dimIdx;B!==void 0&&L("click",()=>{var M;const{value:S,name:E}=R.data||{},_=C(e.id);v(e.id,{..._,type:e.type,RECORD:{[t.unref(y)]:((M=t.unref(g)[B])==null?void 0:M.name)||"",[E]:S[B],seriesName:E}})})()},O=Ze(e),w=async()=>{var R;try{b.value=!0;const B=await O(),{columns:S=[],rows:E=[]}=((R=B==null?void 0:B.data)==null?void 0:R.data)??{};let _;S.length>0&&(y.value=S[0],_={name:S[0],types:S.slice(1).map(M=>({label:M,value:M}))}),p(E,_,!0)}catch(B){console.error(B)}finally{b.value=!1}},I=()=>{switch(e.dataType){case"indicator":w();break;case"request":T();break}};Ne(e,{refreshData:I,resetRecord:()=>{const R=e.id,B=C(R);v(R,{...B,RECORD:""})},click:A});const{setRequest:D}=t.inject(qe,{setRequest:R=>{}});return typeof D=="function"&&D({id:e.id,requestFn:I,sortNum:e.requestSort}),o({refreshData:I}),{option:m,style:s,click:A,loading:b,onClose:h,ecanModal:d,echartRef:i}}}),u1="";function Nf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Nl=Ae(Se(_f,[["render",Nf]])),Of="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Ff="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==",Mf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",zf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",_a={...De,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},Na=ke(_a),Ol=["click"],Pf=t.defineComponent({name:"EcanBorder",props:{...Na},setup(e){const o=Ee(e,["background"]),n=t.computed(()=>{const{isTransparent:m,gradientShow:h,gradientColor:C,gradientOffset:v,gradientAngle:x,backgroundColor:p}=e;if(h){let b=C;return m&&(b="transparent"),b?{background:`linear-gradient(${x}, ${p}, ${b} ${v*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:m}=e;let h={};return m!=null&&m.length&&m.find(v=>v.emit==="showModal")&&(h={cursor:"pointer"}),h}),{theme:i}=t.inject(He,{theme:"light"}),r=t.computed(()=>{let m="";switch(e.titleMode){case"type-2":m="2";break}return m}),s=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":Of,"../../assets/border-title-decoration-left2.png":Ff})[`../../assets/border-title-decoration-left${r.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":Mf,"../../assets/border-title-decoration-right2.png":zf})[`../../assets/border-title-decoration-right${r.value}.png`],self.location).href),d=t.computed(()=>({width:"100%",height:"100%"})),c=t.computed(()=>{const{borderRadius:m}=e,h=[],C={};if(m){const v=m.split(",");for(const x of v)(+x||+x==0)&&h.push(+x+"px")}return h!=null&&h.length&&(C.borderRadius=h.join(" ")),C}),y=Re(e)("click",()=>{}),f=t.ref([]);t.watch(()=>e.data,m=>{f.value=m},{immediate:!0,deep:!0}),Ne(e,{click:y});const{setGlobalModel:g}=t.inject(Ie,{setGlobalModel:(m,h)=>{}});return g(e.id,{type:e.type,value:f}),{style:o,gradientStyle:n,click:y,borderStyle:d,theme:i,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),g1="",Rt=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),qf=["id"],Vf=Rt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Hf=Rt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),jf=Rt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Wf=Rt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Gf={class:"title-item"},Uf=["src"],$f={class:"title"},Kf=["src"],Yf=Rt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Zf=Rt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Qf=Rt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Jf=Rt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Xf={key:2,class:"left-title"},eu={class:"title"};function tu(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"no-title",style:t.normalizeStyle(e.borderStyle)},[e.useBorderModify?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Vf,Hf,jf,Wf],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",Gf,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Uf),t.createElementVNode("div",$f,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Kf)])],2),Yf,Zf,Qf,Jf],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Xf,[t.createElementVNode("div",eu,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,qf)}const Fl=Ae(Se(Pf,[["render",tu],["__scopeId","data-v-8dd53b8f"]])),Oa={...De,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:10,componentList:[],hideTabs:!1,gridTopPx:"0",gridBottomPx:"0",gridLeftPx:"0",gridRightPx:"0"},Fa=ke(Oa),Ml=["tabChange"],nu=t.defineComponent({name:"EcanTabs",props:{...Fa},components:{ASelect:me.Select,ASelectOption:me.SelectOption,MarqueeScroll:Hn},setup(e){const o=Ee(e),n=t.ref(0);t.watch(()=>e.activeKey,m=>{n.value=m},{immediate:!0});const{pageMode:a}=t.inject(He,{pageMode:"normal"});let i=null;const r=()=>{const m=Array.isArray(t.unref(s))?t.unref(s).length-1:0;!e.isAutoScroll&&e.autoSwitch&&m>0&&(i=setInterval(()=>{const h=t.unref(n)+1;h<=m?n.value=h:n.value=0,l.value=t.unref(s)[t.unref(n)],y()},e.autoSwitchInterval*1e3))};t.onMounted(()=>{t.unref(a)!=="design"&&r()}),t.onBeforeUnmount(()=>{clearInterval(i)});const s=t.ref([]),l=t.ref({});t.watch(()=>e.data,m=>{s.value=m,l.value=Array.isArray(m)&&m.length>0?m[0]:{}},{immediate:!0,deep:!0});const d=m=>n.value===m,c=Re(e),{setGlobalModel:u}=t.inject(Ie,{setGlobalModel:(m,h)=>{}});u(e.id,{value:l,activeKey:n});const{emitRefreshPage:y}=t.inject(an,{emitRefreshPage:()=>{}}),f=m=>{let{tab:h,index:C}=m||{};if(m.label){const v=t.unref(s).findIndex(x=>x.title===m.label);v!==-1&&(C=v,h=t.unref(s)[v])}c("tabChange",()=>{!isNaN(+C)&&C!==t.unref(n)&&(l.value=h,n.value=C,y())})()},g=t.computed(()=>{const m=e.componentList.map(h=>parseFloat(h.left)+parseFloat(h.width)).sort((h,C)=>C-h)[0];return{width:m?m+"px":"100%"}});return Ne(e,{tabChange:f}),{style:o,activeKey:n,isActive:d,tabChange:f,myData:s,useImagePath:mt,pageMode:a,scrollWrapStyle:g}}}),y1="",ou=["id"],au=["onClick"];function iu(e,o,n,a,i,r){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select"),d=t.resolveComponent("marquee-scroll");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tabs",style:t.normalizeStyle(e.style),id:"container_"+e.id},[e.pageMode==="design"||!e.isAutoScroll?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection,margin:`${e.gridTopPx||0} ${e.gridRightPx||0} ${e.gridBottomPx||0} ${e.gridLeftPx||0}`})},[e.tabType==="tabs"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.myData,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(u)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(u)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:u,onClick:t.withModifiers(y=>e.tabChange({tab:c,index:u}),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(u)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,au))),128)):e.tabType==="select"?(t.openBlock(),t.createBlock(l,{key:1,value:e.activeKey,style:t.normalizeStyle({width:e.tabWidth})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(c,u)=>(t.openBlock(),t.createBlock(s,{key:u,value:u,onClick:y=>e.tabChange({tab:c,index:u})},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):t.createCommentVNode("",!0)],4)),[[t.vShow,e.pageMode==="design"||!e.hideTabs]]):t.createCommentVNode("",!0),e.pageMode!=="design"&&e.isAutoScroll?(t.openBlock(),t.createBlock(d,{key:1,visible:e.isAutoScroll,step:e.scrollSpeed,vertical:!1,style:t.normalizeStyle({height:e.height})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"scroll-wrap",style:t.normalizeStyle(e.scrollWrapStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,c=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):t.createCommentVNode("",!0)],12,ou)}const zl=Ae(Se(nu,[["render",iu],["__scopeId","data-v-e657f8ce"]])),Ma={...De,name:"循环列表",type:"ecanCirculate",keyName:"循环列表",width:"300px",height:"300px",zIndex:0,borderColor:"#eee",borderStyle:"solid",borderWidth:"2px",graphicConfig:{},isAutoScroll:!1,scrollSpeed:10,componentList:[],data:[],dataType:"indicator",keyFieldMap:[],unitInterval:15,backgroundColor:"#ffffff",colNum:null,scrollDirection:"horizontal"},za=ke(Ma),Pl=["click","refreshData","resetRecord"];let ql=(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 ru=t.defineComponent({name:"EcanCirculate",props:{...za,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll:Hn,Skeleton:Vt},setup(e,{expose:o}){const n=t.ref(!1),a=Ee(e,["background"]),i=t.inject("usedComponentList",[]),r=t.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=t.inject(Ie,{getGlobalModel:L=>{},setGlobalModel:(L,A)=>{}}),d=t.ref([]),c=t.ref({}),{pageMode:u}=t.inject(He,{pageMode:"normal"}),y=t.computed(()=>{if(t.unref(r)){const L=document.body.clientWidth,A=e.sourceWidth||parseFloat(e.width);return L/A||1}else return 1});function f(L,A){const O=A.find(w=>w.id===e.id);if(O)for(const w of L)w.left=parseFloat(w.left)-parseFloat(O.sourceLeft||O.left)+"px",w.top=parseFloat(w.top)-parseFloat(O.sourceTop||O.top)+"px"}const g=L=>{const A=L.sort((N,D)=>parseFloat(N.top)-parseFloat(D.top))[0],O=L.sort((N,D)=>parseFloat(N.left)-parseFloat(D.left))[0],w=L.map(N=>parseFloat(N.left)+parseFloat(N.width)).sort((N,D)=>D-N)[0],I=L.map(N=>parseFloat(N.top)+parseFloat(N.height)).sort((N,D)=>D-N)[0];if(O&&w&&A&&I){const N=parseFloat(O.left),D=parseFloat(A.top);return{width:w-N,height:I-D,left:N}}else return{width:0,height:0,left:0}},m=t.ref({}),h=L=>{var _,M;const A=[],{graphicConfig:O,id:w,componentList:I,keyFieldMap:N,unitInterval:D,colNum:R}=e;let B=_e.cloneDeep(I),S=[];if((_=t.unref(i))!=null&&_.length)for(const j of t.unref(i))S.push(j),(M=j==null?void 0:j.componentList)!=null&&M.length&&S.push(...j.componentList);if(O.pageMode==="design"&&O.preview){const{containerMap:j}=O.pageConfig||{};S=O.componentList||[],S.push(e),B=va(j,_e.cloneDeep(S),w)}f(B,S);const E=g(B);if(L!=null&&L.length){const{width:j,left:F,height:z}=E;let q=0,P=0;L.forEach((Z,V)=>{Z.index=V+1;const H=ql(),$=_e.cloneDeep(B);for(const ee of $){const ie=N.find(ue=>ue.keyName===ee.keyName),he=ql();if(ee.left=(parseFloat(ee.left)+q)*t.unref(y)+"px",ee.top=(parseFloat(ee.top)+P)*t.unref(y)+"px",ee.scale=t.unref(y),ee.id=he,ee.keyName=ee.name+"_"+he,ee.unitId=H,ie!=null&&ie.fieldName){const ue=ee.text.match(/\{(.+?)\}/g);switch(ee.type){case"ecanText":{ee.data={value:String(Z[ie.fieldName])},ue!=null&&ue.length||(ee.text="{value}");break}case"ecanProportion":{ee.data={percent:String(Z[ie.fieldName])},ue!=null&&ue.length||(ee.text="{percent}");break}}}}R&&Z.index%R===0?(q=0,P+=D+z):q+=D+j,A.push(...$),m.value[H]=Z}),c.value={width:((R||L.length)*(j+D)+F)*t.unref(y)+"px"}}d.value=A},C=Ze(e),v=async()=>{var L;try{n.value=!0;const A=await C(),{rows:O=[]}=((L=A==null?void 0:A.data)==null?void 0:L.data)??{};h(O)}catch(A){console.error(A)}finally{n.value=!1}},x=()=>{switch(e.dataType){case"indicator":v();break}};Ne(e,{refreshData:x,resetRecord:()=>{const L=e.id,A=s(L);l(L,{...A,RECORD:""})}}),o({refreshData:x}),l(e.id,{type:e.type,RECORD:""});const{setRequest:b}=t.inject(qe,{setRequest:L=>{}});typeof b=="function"&&b({id:e.id,requestFn:x,sortNum:e.requestSort});const k=Re(e);return{loading:n,style:a,myComponentList:d,scrollWrapStyle:c,pageMode:u,click:L=>{let A=L.target;if(A){let O=A.getAttribute("unitId");for(;!O&&!A.className.includes("ecan-");)A=A.parentElement,O=A.getAttribute("unitId");O&&k("click",()=>{const w=s(e.id);l(e.id,{...w,type:e.type,RECORD:t.unref(m)[O]})})()}}}}}),p1="",lu=["id"];function su(e,o,n,a,i,r){const s=t.resolveComponent("marquee-scroll"),l=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-circulate",style:t.normalizeStyle(e.style),id:"container_"+e.id,onClick:o[0]||(o[0]=(...d)=>e.click&&e.click(...d))},[t.createVNode(l,{loading:e.loading},{default:t.withCtx(()=>{var d;return[(d=e.myComponentList)!=null&&d.length?(t.openBlock(),t.createBlock(s,{key:0,visible:e.pageMode!=="design"&&e.isAutoScroll,step:e.scrollSpeed,vertical:e.scrollDirection==="vertical",style:t.normalizeStyle({height:e.height}),wrapStyle:{overflow:"auto"}},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"scroll-wrap",style:t.normalizeStyle(e.scrollWrapStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myComponentList,c=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","vertical","style"])):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,lu)}const Vl=Ae(Se(ru,[["render",su],["__scopeId","data-v-7d2188ee"]])),Pa={...De,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:""},qa=ke(Pa),Hl=["click"],Va=t.defineComponent({name:"EcanImage",props:{...qa},setup(e){const o=Ee(e),n=t.computed(()=>mt(e.imgUrl)),{pageMode:a}=t.inject(He,{pageMode:"normal"}),{getGlobalModel:i,setGlobalModel:r}=t.inject(Ie,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Re(e)("click",()=>{const d=i(e.id);if(r(e.id,{...d,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{r(e.id,{...d,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",u=Fo(t.unref(a),c),y=e.href;let f=y||u;f=Le(f);const g=e.target;g&&(g!=="event"?window.open(f,"_"+g):window.parent.postMessage({type:"openPage",url:y},"*"))});return Ne(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),jl=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},Wl=Va.setup;Va.setup=Wl?(e,o)=>(jl(),Wl(e,o)):jl;const v1="",cu=["src"];function du(e,o,n,a,i,r){return e.myImgUrl!==""?(t.openBlock(),t.createElementBlock("img",{key:0,class:"ecan-image",style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,cu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const Gl=Ae(Se(Va,[["render",du],["__scopeId","data-v-47ea6e7c"]])),Ha={...De,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},ja=ke(Ha),fu=t.defineComponent({name:"EcanIframe",props:{...ja},setup(e){const o=Ee(e),{contextRequestUrl:n}=t.inject(He,{contextRequestUrl:""}),a=t.computed(()=>{let i=Le(e.link);if(e.linkType==="erd"&&i!=null){let r=t.unref(n);r[r.length-1]==="/"?r+="erdReport":r+="/erdReport",i=`${H0||r}?_t=0&uid=${i}`}return i});return{style:o,myLink:a}}}),C1="",uu=["src"];function hu(e,o,n,a,i,r){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,uu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Ul=Ae(Se(fu,[["render",hu],["__scopeId","data-v-19bc100c"]])),Wa={...De,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},Ga=ke(Wa),$l=["click","refreshData","resetRecord","exportTableData"],gu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC",mu="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==",yu="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==",Ua=t.defineComponent({name:"EcanTable",components:{Skeleton:Vt,AButton:me.Button,AInput:me.Input,ACheckboxGroup:me.CheckboxGroup,ATable:me.Table,ATableSummary:me.TableSummary,ATableSummaryRow:me.TableSummaryRow,ATableSummaryCell:me.TableSummaryCell},props:{...Ga},setup(e,{expose:o}){const n=t.ref(!1),a=t.computed(()=>{const W=_e.cloneDeep(e.columns);return e.isUseSeq&&W.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&W.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),W}),i=t.ref(),r=t.ref(!1),s=Ee(e),l=t.ref([]),d=t.computed(()=>e.scrollX),c=t.ref(0),u=()=>{let W=0;switch(e.size){case"small":W=50;break;case"middle":W=53;break;default:W=65;break}return W};t.watchEffect(()=>{var W;(W=l.value)!=null&&W.length&&e.height&&t.nextTick(()=>{let K=parseFloat(e.height);const J=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),re=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),de=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let le=0;if(re&&(K-=(re==null?void 0:re.clientHeight)||0),de&&e.isSummaryFixed&&(le=(de==null?void 0:de.clientHeight)||0,K-=le),e.paginationShow){let te=0;te=u(),te&&(K-=te)}(J==null?void 0:J.clientHeight)>K?c.value=K:c.value=0,t.nextTick(()=>{if(le){const te=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),ge=(te==null?void 0:te.clientHeight)||0;le!==ge&&t.unref(c)&&(c.value=K+le-ge)}})})});const y=t.ref([]),f=t.ref([]),g=t.ref([]),m=t.ref([]),h=t.ref(0),C=t.ref(1),v=t.ref(e.paginationPageSize||10),x=t.reactive([]),p=(W,K)=>{let J="";return W.forEach((re,de)=>{const{value:le,rule:te}=re;re.conditions?J+=`(${p(re.conditions,re.join)})`:le&&te&&(J+=`value ${te} '${le}'`),J+=`${de===W.length-1?"":K?" "+K+" ":""}`}),J},b=(W=[])=>{var K,J;if(Array.isArray(W)&&W.length>0){let re=W.length;const de=e.columnsFixedNum;if(e.dataType==="indicator"&&((K=t.unref(a))!=null&&K.length)){const{graphicConfig:{indicators:le=[]}}=e;W.forEach((te,ge)=>{if(t.unref(a)[ge])for(const Pe in t.unref(a)[ge])["dataIndex","title"].includes(Pe)||(te[Pe]=t.unref(a)[ge][Pe]);const be=le.find(Pe=>Pe.label===te.title),{showLabel:we=""}=be||{};we&&(te.title=we)})}for(let le=re-1;le>=0;le--)(J=W[le])!=null&&J.isHidden&&W.splice(le,1);re=W.length;for(let le=0;le<re;le++){const te=W[le];if(le<de?te.fixed="left":te.fixed=!1,e.isSortByFront&&te.sorter){const yt=te.dataIndex;te.sorter=(je,rt)=>je[yt]-rt[yt]}const{cellAlign:ge="center",cellColor:be,dataIndex:we,title:Pe,tableFilter:et,headerCellAlign:Ct,headerCellColor:Ft,overflow:un,conditions:Mt}=te;et&&(x.push(we),te.filterOptionsInputValue="",te.filterCheckboxGroupValue=[],te.customFilterDropdown=!0,te.onFilter=(yt,je)=>je[we].toString().toLowerCase().includes(yt.toLowerCase())),Mt&&(te.conditionCode=p(Mt)),te.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Ct||"center",color:Ft||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),te.customCell=(yt,je)=>({style:{textAlign:ge,color:be||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(H)===je&&e.clickHighlight},onClick:F("click",()=>{const rt=e.id,En=z(rt);yt={dataIndex:we,title:Pe,...yt},q(rt,{...En,type:e.type,RECORD:yt})})}),un==="ellipsis"?te.ellipsis=!0:te.ellipsis=!1,Array.isArray(te.children)&&b(te.children)}}},k=(W=[])=>{var J;let K=_e.cloneDeep(W);return(J=t.unref(m))!=null&&J.length&&(K=_e.cloneDeep(t.unref(m))),e.isUseSeq&&K.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&K.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),b(K),K};t.watch(v,()=>{C.value=1,he(!1)}),t.watch(i,W=>{r.value=!!W}),t.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{y.value=k(_e.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([W,K])=>{K==="static"&&(f.value=W)},{immediate:!0});const T=t.ref({}),L=W=>{if(Array.isArray(W)){const K=W.length,J=x,re=J.length,de={};for(let te=0;te<K;te++){const ge=W[te];for(let be=0;be<re;be++){const we=J[be];if(de[we])de[we].add(ge[we]);else{const Pe=new Set;Pe.add(ge[we]),de[we]=Pe}}}const le={};for(const te in de)if(Object.prototype.hasOwnProperty.call(de,te)){const ge=de[te],be=Array.from(ge);le[te]=be.map(we=>({label:we,value:we}))}T.value=le}};t.watch(()=>[e.isReverse,y.value,f.value],()=>{const W=t.unref(y),K=t.unref(f);if(L(K),e.isReverse){const{columns:J,dataSource:re}=A(_e.cloneDeep(W),_e.cloneDeep(K));g.value=J,l.value=re}else g.value=W,l.value=K},{immediate:!0});const A=(W,K)=>{const J=W[0],re=[{title:J.title,dataIndex:"col0",key:"col0",align:"center"}];for(let le=0;le<K.length;le++){const te=K[le],ge="col"+(le+1);re.push({title:te[J.dataIndex],dataIndex:ge,key:ge,align:"center"})}const de=[];for(let le=1;le<W.length;le++){const te=W[le],ge={col0:te.title};for(let be=0;be<K.length;be++){const we=K[be];ge[`col${be+1}`]=we[te.dataIndex]}de.push(ge)}return{columns:re,dataSource:de}},O=t.ref(""),w=Ve(e),I=async(W=!0,K={})=>{var J;try{W&&(n.value=!0),t.unref(O)&&(K.orderCondition=t.unref(O)),e.paginationShow&&(K={pageNum:t.unref(C),pageSize:t.unref(v)||"10",layer:"1",...K});const re=await w(K),{rows:de=[],total:le=0}=((J=re==null?void 0:re.data)==null?void 0:J.data)||{};if(h.value=le,Array.isArray(de)&&(f.value=de),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:te=[]}=e,ge=te.find(be=>be.key==="dataSqlId");if((ge==null?void 0:ge.value)==="xt_jxzebg"){const be=de.filter(we=>!we.绩效总额).map(we=>we.ORG_NAME);be!=null&&be.length&&t.nextTick(()=>{me.notification.warning({message:"提示",description:`当前时段${be.join("、")}绩效数据为空`,duration:3})})}}}catch(re){console.error(re)}finally{n.value=!1}},N=({current:W},K,J)=>{if(C.value=W,J&&Object.keys(J).length>0){const{field:re,order:de}=J,te={ascend:"asc",descend:"desc"}[de];re!=null&&te!=null&&te?O.value=re+" "+te:te||(O.value="")}e.isSortByFront||he(!1)},D=t.computed(()=>{const W=e.simple,K=[e.paginationPosition],J={};return e.isShowTotal&&(J.showTotal=re=>`共 ${re} 条数据`),e.paginationShow&&{simple:W,position:K,total:t.unref(h),current:t.unref(C),pageSize:t.unref(v)||"10",showSizeChanger:!1,size:"large",...J}}),R=W=>+W==1?"是":+W==0?"否":W,B=(W,K)=>{const{format:J,retentiondigit:re,customFormatter:de,defaultVal:le}=K;let te="";if(J==null||J==="")te=W;else{const ge={money:Oo,percentage:Bn,contrast:Bn,boolean:R,decimals:Zc,custom:_r};ge[J]||(te=""),J==="decimals"?te=ge[J](W,re)||"":J==="custom"?te=ge[J](W,de)||"":te=ge[J](W)||""}return te||(te=le),te},S=W=>W==="contrast"?"upDown":"",E=W=>{const{text:K,format:J,declineColor:re="#39cf93",increaseColor:de="#ff512e"}=W;if(J==="contrast"){const le={fontSize:e.fontSize},te=parseFloat(K+"");return te>=0?le.color=de:te<0&&(le.color=re),le}else return{}},_=t.computed(()=>{const{fontSize:W}=e;return{width:W,height:W,textIndent:`-${parseFloat(W)*2}px`,overflow:"hidden"}}),M=W=>{const{text:K,declineColor:J="#39cf93",increaseColor:re="#ff512e"}=W,{fontSize:de}=e,le=parseFloat(K+""),te={width:de,verticalAlign:"unset"};return le>=0?te.filter=`drop-shadow(${re||"#ff512e"} ${de} -1px)`:le<0&&(te.filter=`drop-shadow(${J||"#39cf93"} ${de} -1px)`),te},j=W=>{const K=parseFloat(W+"");if(K>=0)return Vo;if(K<0)return Ho},F=Re(e),{getGlobalModel:z,setGlobalModel:q}=t.inject(Ie,{getGlobalModel:W=>{},setGlobalModel:(W,K)=>{}});q(e.id,{type:e.type,RECORD:""});const P=(W=[],K=[])=>{const J=W.map(re=>({title:re,dataIndex:re,key:re}));m.value=_e.cloneDeep(J),y.value=k(J),f.value=K},Z=Ze(e),V=async(W=!0)=>{var K,J,re,de;try{W&&(n.value=!0);const le=t.unref(O).split(" "),te={};e.isSortByFront||(te.sort={order:le[1],field:le[0]});const ge=await Z(te);P((J=(K=ge==null?void 0:ge.data)==null?void 0:K.data)==null?void 0:J.columns,(de=(re=ge==null?void 0:ge.data)==null?void 0:re.data)==null?void 0:de.rows)}catch(le){console.error(le)}finally{n.value=!1}},H=t.ref(-1),$=(W,K)=>({onClick:F("rowClick",()=>{const J=e.id,re=z(J);q(J,{...re,type:e.type,RECORD:W}),H.value=K})}),{loadedData:ee}=t.inject(kt,{loadedData:{}}),ie=t.ref(!1);t.watch(ee,W=>{if(e.dataType==="indicator"){const K=ln(e.graphicConfig);K!=null&&K.length&&(!t.unref(ie)&&ct(e.graphicConfig,W)?(ie.value=!0,he()):ct(e.graphicConfig,W)||(ie.value=!1))}},{deep:!0});const he=(W=!0)=>{switch(e.dataType){case"request":I(W);break;case"indicator":ct(e.graphicConfig,t.unref(ee))&&V(W);break}},ue=()=>{const W=e.id,K=z(W);q(W,{...K,type:e.type,RECORD:""})},U=t.computed(()=>{const W=t.unref(g);let K=0;const{subTotalColumn:J,subTotalName:re}=e;J&&(K=W.findIndex(be=>be.dataIndex===J),K<0&&(K=0));const de=[];let le=0;for(let be=0;be<W.length;be++){const we=W[be],{isCalcTotal:Pe}=we;be===K?de.push({...we,total:re}):Pe?(de.push({...we,index:be,total:0}),le++):de.push({...we})}if(le===0)return[];const te=t.unref(l),ge=Q(de);for(let be=0;be<ge.length;be++){const we=ge[be];let Pe=0;const{isCalcTotal:et,dataIndex:Ct}=we;if(et===!0){for(let Ft=0;Ft<te.length;Ft++){const Mt=+te[Ft][Ct];isNaN(Mt)||(Pe=new cs.Big(Pe).add(Mt).toNumber())}we.total=Pe}}return ge});function Q(W){var J;const K=[];for(const re of W)(J=re.children)!=null&&J.length?K.push(...Q(re.children)):K.push(re);return K}const{setRequest:X}=t.inject(qe,{setRequest:W=>{}});typeof X=="function"&&X({id:e.id,requestFn:he,sortNum:e.requestSort}),o({refreshData:he});const ae=(W="",K)=>Le(W,K),oe=W=>{if(W!=="event")return{self:"_self",blank:"_blank"}[W]},se=(W,K="")=>{W==="event"&&window.parent.postMessage({type:"openPage",url:K},"*")},ne=(W,K)=>{W(K.filterCheckboxGroupValue)},ce=(W,K)=>{W({confirm:!0}),K.filterOptionsInputValue="",K.filterCheckboxGroupValue=[]},fe=()=>{},Te=W=>{const K=W.dataIndex;if(typeof K=="string"){let J=t.unref(T)[K];const re=t.unref(W.filterOptionsInputValue).trim();return Array.isArray(J)?(J=J.filter(de=>typeof de.label=="string"?de.label.toLowerCase().includes(re.toLowerCase()):!0),J):[]}return[]},Oe=async()=>{var we,Pe;const W="EXPORT_KEY";me.message.loading({key:W,content:"正在导出...",duration:0});let K=[];if(e.dataType==="static")K=e.data;else if(e.dataType==="request"){const et={layer:"1"};t.unref(O)&&(et.orderCondition=t.unref(O));const Ct=await w(et);K=((Pe=(we=Ct==null?void 0:Ct.data)==null?void 0:we.data)==null?void 0:Pe.rows)||{}}const J=t.unref(g),re=[],de=[];J==null||J.forEach(et=>{re.push(et.dataIndex),de.push(et.title)});const le=K.map(et=>_e.pick(et,re)),te=en.utils.book_new(),ge=en.utils.aoa_to_sheet([de]),be=en.utils.sheet_add_json(ge,le,{skipHeader:!0,origin:"A2"});en.utils.book_append_sheet(te,be,"sheet"),en.writeFile(te,"表格数据.xlsx"),me.message.success({key:W,content:"导出成功"})},We=(W,K=2)=>{const J=+W*100;return isNaN(J)||J<=0?0:J>=100?100:J.toFixed(K)};Ne(e,{resetRecord:ue,refreshData:he,exportTableData:Oe});const it=(W,K)=>{let J=null;return e.stripedShow&&(J=K%2===1?"table-striped":null),J},Ue=t.computed(()=>{let W=0;const{height:K,isPageBottom:J}=e;return J&&K&&(W=parseFloat(K)-u()),W?W+"px":"100%"}),Qe=t.computed(()=>{let W="#071655";return e.headerBackgroundColor&&(W="transparent"),W}),Je=t.computed(()=>{let W="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(W="transparent"),W}),ft=t.computed(()=>parseFloat(e.fontSize)+16),Xe=t.computed(()=>{let W="";const{paginationColor:K,paginationBgColor:J,activePaginationColor:re,activePaginationBgColor:de,hoverBackgroundColor:le}=e;return K&&(W+="p-color "),J&&(W+="p-bg-color "),re&&(W+="active-p-color "),de&&(W+="active-p-bg-color "),le&&(W+="hover-bg-color "),W}),Fe=(W,K)=>{const{conditionCode:J}=W;return dn(J,{value:K})};return{x:d,y:c,style:s,customRow:$,pagination:D,formatFn:B,contrastClass:S,tableChange:N,summaryList:U,loading:n,onTouchHrefEvent:se,handleHref:ae,handleHrefTarget:oe,useRowIndex:H,tableColumns:g,tableDataSource:l,useFilterOptions:Te,useSetSelectedKeys:ne,onResetFilter:ce,onSearchFilterOptions:fe,exportTableData:Oe,handleProgressText:We,pageSizeVisible:r,pageSize:v,tableRef:i,rowClassName:it,tableHeight:Ue,tableHeaderBgColor:Qe,tableBodyBgColor:Je,getChgStyle:E,chgBoxStyle:_,getChgBoxImgStyle:M,getChgBoxImgSrc:j,seqIcon1:gu,seqIcon2:mu,seqIcon3:yu,iconSize:ft,containerClass:Xe,getCellStyle:(W,K)=>{const{overflow:J,conditionCode:re,attribute:de}=W,le={};return J==="ellipsis"&&(le.overflow="hidden",le.textOverflow="ellipsis"),re&&(de!=null&&de.color)&&Fe(W,K)&&(le.color=de.color),de!=null&&de.icon&&(W==null?void 0:W.cellAlign)==="right"&&(le.display="flex",le.alignItems="center",le.justifyContent="flex-end"),le},isMatchCondition:Fe,getAttrImgSrc:W=>{const{attribute:K}=W;let J="";return K!=null&&K.icon&&(J=mt(K.icon)),J},getAttrImgStyle:W=>{let K={};return(W==null?void 0:W.cellAlign)==="right"?K={marginRight:"5px"}:K={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(e.fontSize)+6+"px",...K}}}}}),Kl=()=>{t.useCssVars(e=>({"0de7b3a0":e.stripedColor,"08a5a8e7":e.tableHeaderBgColor,"6398a49c":e.tableBodyBgColor,"7613c960":e.paginationBgColor,dc2e69b6:e.paginationColor,"353ecc0c":e.activePaginationBgColor,"10f60b82":e.activePaginationColor,ca614f86:e.hoverBackgroundColor}))},Yl=Ua.setup;Ua.setup=Yl?(e,o)=>(Kl(),Yl(e,o)):Kl;const A1="",k1="",xu=e=>(t.pushScopeId("data-v-c2087b7c"),e=e(),t.popScopeId(),e),pu=["id"],bu={key:0,class:"table-tool"},vu=t.createTextVNode("导出数据"),Su=t.createTextVNode(" 搜索 "),Cu=t.createTextVNode(" 重置 "),wu=["src","width","height"],Au=["src","width","height"],ku=["src","width","height"],Tu={key:1},Bu={key:1,class:"action-list"},Eu=["href","target","onClick"],Du={key:2,class:"progress-cell"},Iu=["src"],Ru=["title"],Lu=["title"],_u=["src"],Nu=["title"],Ou=["src"],Fu=["src"],Mu={class:"ant-pagination-options-quick-jumper"},zu=xu(()=>t.createElementVNode("span",null,"条 / 页",-1));function Pu(e,o,n,a,i,r){const s=t.resolveComponent("a-button"),l=t.resolveComponent("a-input"),d=t.resolveComponent("a-checkbox-group"),c=t.resolveComponent("a-table-summary-cell"),u=t.resolveComponent("a-table-summary-row"),y=t.resolveComponent("a-table-summary"),f=t.resolveComponent("a-table"),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",bu,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[vu]),_: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:C,setSelectedKeys:v,confirm:x,clearFilters:p})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(l,{value:h.filterOptionsInputValue,"onUpdate:value":b=>h.filterOptionsInputValue=b,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:h.filterCheckboxGroupValue,"onUpdate:value":b=>h.filterCheckboxGroupValue=b,class:"filter-checkbox",options:e.useFilterOptions(h),onChange:b=>e.useSetSelectedKeys(v,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:()=>x()},{default:t.withCtx(()=>[Su]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(b=>e.onResetFilter(p,h),["stop"])},{default:t.withCtx(()=>[Cu]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:h,index:C,text:v,record:x})=>{var p,b,k,T,L,A;return[h.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,wu)):C===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Au)):C>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,ku)):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",Tu,t.toDisplayString(C+1),1))],64)):h.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",Bu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(O,w)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:w},[t.createElementVNode("a",{href:e.handleHref(O.href,x),target:e.handleHrefTarget(O.target),style:t.normalizeStyle({color:O.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:I=>e.onTouchHrefEvent(O.target,e.handleHref(O.href,x))},t.toDisplayString(O.title),13,Eu)]))),128))])):h.format==="progress"?(t.openBlock(),t.createElementBlock("div",Du,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:h.progressColor||"#1890ff",height:h.progressWidth||"18px",width:`${e.handleProgressText(v,h.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(v)<100?h.progressTextColor||"#333":h.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(v,h.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(h,v)})},[e.isMatchCondition(h,v)&&(h==null?void 0:h.cellAlign)==="right"&&((p=h==null?void 0:h.attribute)!=null&&p.icon)?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.getAttrImgStyle(h)),src:e.getAttrImgSrc(h)},null,12,Iu)):t.createCommentVNode("",!0),h.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((b=h==null?void 0:h.customFormatter)==null?void 0:b.split("{value}")[0])||""},t.toDisplayString(((k=h==null?void 0:h.customFormatter)==null?void 0:k.split("{value}")[0])||""),9,Ru)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(h.format)]),style:t.normalizeStyle(e.getChgStyle({...h,text:v})),title:h.format!=null?e.formatFn(v,h):v},[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:v})),src:e.getChgBoxImgSrc(v)},null,12,_u)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(h.format!=null?e.formatFn(v,h):v||(h==null?void 0:h.defaultVal)),1)],14,Lu),h.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:2,title:((T=h==null?void 0:h.customFormatter)==null?void 0:T.split("{value}")[1])||""},t.toDisplayString(((L=h==null?void 0:h.customFormatter)==null?void 0:L.split("{value}")[1])||""),9,Nu)):t.createCommentVNode("",!0),e.isMatchCondition(h,v)&&(h==null?void 0:h.cellAlign)!=="right"&&((A=h==null?void 0:h.attribute)!=null&&A.icon)?(t.openBlock(),t.createElementBlock("img",{key:3,style:t.normalizeStyle(e.getAttrImgStyle(h)),src:e.getAttrImgSrc(h)},null,12,Ou)):t.createCommentVNode("",!0)],4))]}),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(y,{key:0,fixed:e.isSummaryFixed},{default:t.withCtx(()=>[t.createVNode(u,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(h,C)=>(t.openBlock(),t.createBlock(c,{key:C,index:C,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,Fu)],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",Mu,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=h=>e.pageSize=h)},null,512),[[t.vModelText,e.pageSize]]),zu])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,pu)}const Zl=Ae(Se(Ua,[["render",Pu],["__scopeId","data-v-c2087b7c"]])),$a={...De,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff"},Ka=ke($a),Ql=["click"];tt.use([Lt.CanvasRenderer,bt.MapChart,bt.ScatterChart,Be.VisualMapComponent,Be.TooltipComponent,Be.GraphicComponent]);const qu=t.defineComponent({name:"EcanMap",components:{Echarts:wt},props:{...Ka},setup(e){const o=Ve(e),n=Ve({...e.tooltipRequestData,requestHeaders:{}}),a=t.ref(),i=t.ref(""),r=t.ref(""),s=Ee(e,["backgroundImage"]),l=t.ref(),d=t.computed(()=>mt(e.geoBackgroundImage)),c=t.computed(()=>mt(e.backgroundImage)),u=t.computed(()=>e.geoBackgroundImage?{image:t.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),y=t.computed(()=>{const D=e.symbolImage;return e.symbolImage?"image://"+mt(D):"circle"}),f=D=>{let R=e.tooltipFormatter;const B=R.match(/\{(.+?)\}/g);if(B==null||B.length===0)return R;for(let S=0;S<B.length;S++){const E=B[S];let _=E.slice(1,-1).trim();const M=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,j=_.match(M);for(let F=0;F<j.length;F++){const z=j[F],q=D[z];q!=null&&(_=_.replace(z,q))}R=R.replace(E,_)}return R.split(`
120
- `)},g=t.ref(!1),m=t.ref("");let h=new AbortController;const C=(D,R)=>{const B=h.signal;g.value=!0,i.value=D,n({name:D,signal:B}).then(S=>{var E,_;if(S){const M=((_=(E=S==null?void 0:S.data)==null?void 0:E.data)==null?void 0:_.rows)||[];let j="";for(const F of M){const z=f(F)||[];if(z!=null&&z.length)for(const q of z)j+=`<div style="word-break: break-all;white-space: normal;">${q}</div>`}j=`<div style="max-width:200px;">${j}</div>`,r.value=j,R(t.unref(m),j)}else B.aborted?r.value="Loading":r.value=D,R(t.unref(m),r.value);g.value=!1})},v=t.computed(()=>{const D=e.geoCenter;let R;return typeof D=="string"&&D!==""&&(R=D.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:R,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(B,S,E)=>{m.value=S;const{name:_=""}=B,{requestUrl:M}=e.tooltipRequestData;if(!M)return _;if(t.unref(g))t.unref(i)!==_&&(h.abort(),h=new AbortController);else{if(t.unref(i)===_)return t.unref(r);C(_,E)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(u),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:t.unref(y),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),x=t.ref(!1),p=async()=>{var B;x.value=!1;const D=e.mapJson,R=`map-${e.id}`;if(D!=null&&D.path){const S=await xt(((B=window==null?void 0:window.config)==null?void 0:B.uploadPath)+D.path);tt.registerMap(R,(S==null?void 0:S.data)||{})}else tt.registerMap(R,{});x.value=!0};t.watch(()=>e.mapJson,()=>{p()},{immediate:!0,deep:!0});const b=async()=>{var D,R;if(e.dataType==="request"){x.value=!1;try{const B=await o(),S=((R=(D=B==null?void 0:B.data)==null?void 0:D.data)==null?void 0:R.rows)||{},E=`map-${e.id}`;if(S!=null&&S.path){const _=await xt(S.path);tt.registerMap(E,(_==null?void 0:_.data)||{})}else tt.registerMap(E,{})}catch(B){console.error(B)}finally{x.value=!0}}},k=()=>{switch(e.dataType){case"request":b();break}},{getGlobalModel:T,setGlobalModel:L}=t.inject(Ie,{getGlobalModel:D=>{},setGlobalModel:(D,R)=>{}}),O=Re(e)("click",()=>{const D=T(e.id);L(e.id,{...D,RECORD:t.unref(a)})});Ne(e,{refreshData:k});const{setRequest:w}=t.inject(qe,{setRequest:D=>{}});return typeof w=="function"&&w({id:e.id,requestFn:k,sortNum:e.requestSort}),{option:v,style:s,isLoadedData:x,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{t.unref(a)&&O()},onMouseOver:(D={})=>{D.componentType==="geo"&&D.region?a.value=D.region:a.value=null}}}}),B1="",Vu=["src"];function Hu(e,o,n,a,i,r){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":e.customClick,onMouseover:e.onMouseOver},null,8,["option","onZr:click","onMouseover"])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,Vu),[[t.vShow,!1]])],4)}const Jl=Ae(Se(qu,[["render",Hu],["__scopeId","data-v-10f150ac"]])),Ya={...De,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},Za=ke(Ya),Xl=["selectChange","refreshData"],ju=t.defineComponent({name:"EcanDataSelect",components:{ASelect:me.Select,ASelectOption:me.SelectOption},props:{...Za},setup(e,{expose:o}){const n=Ee(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=Ve(e),r=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var N;const{mode:I}=e;return(N=t.unref(r))!=null&&N.length?s.value:I==="multiple"||I==="tags"||I==="combobox"?[]:""},set:I=>{s.value=I}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:u}=t.inject(Ie,{getGlobalModel:I=>{},setGlobalModel:(I,N)=>{},getRecordValueByKeyName:I=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,r.value],()=>{const{mode:I,selectFirstOption:N,value:D}=e,R=u(D),B=y.value;if(I==="multiple"||I==="tags"||I==="combobox"){if(R)s.value=R.split(",");else if(N){const S=t.unref(r)[0];s.value=S?[S[B]]:[]}}else if(R)s.value=R;else if(N){const S=t.unref(r)[0];s.value=S?S[B]:""}},{immediate:!0});const f=(I,N)=>{const D=y.label,R=y.value;let B;const S=N[D],E=N[R];return S!=null?B=S:E!=null&&(B=E),(B==null?void 0:B.toLowerCase().indexOf(I==null?void 0:I.toLowerCase()))>=0},g=I=>{const{label:N,value:D,options:R}=e.dataFieldNames;if(R&&Array.isArray(I))if(I.some(B=>R in B)){const B={},S=[];I.forEach(E=>{B[E[R]]||(B[E[R]]=[]),B[E[R]].push({[N]:E[N],[D]:E[D]})});for(const E in B)S.push({[N]:E,[R]:B[E]});return S}else return I;else if(!R)return I},m=t.ref(!1),h=async()=>{var I,N;if(e.dataType==="request"){m.value=!0;try{const D=await i();if(r.value=g(((N=(I=D==null?void 0:D.data)==null?void 0:I.data)==null?void 0:N.rows)||[]),e.selectFirstOption){let R=t.unref(r)[0];if(y.options){const B=R[y.options];B&&B.length&&(R=B[0])}s.value=R[y.value]}}catch(D){console.error(D)}finally{m.value=!1}}},C=t.computed(()=>{let I=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(r)){const N=y.label,D=y.value;if(e.mode==="multiple")I=t.unref(r).filter(R=>t.unref(s).includes(R[D])).map(R=>R[N]);else{const R=t.unref(r).find(B=>t.unref(s)===B[D]);R&&(I=R[N])}}return I}),v=t.ref([]),x=t.computed(()=>{const I={};if(e.mode!=="multiple"){const N=t.unref(v).find(D=>D.value===t.unref(s));N&&(I.itemCodes=N.item_codes)}return I}),p=t.computed(()=>{const{value:I,label:N}=y,D=t.unref(r).find(R=>R[I]===t.unref(l));return D?{label:D[N],value:D[I]}:{}});c(e.id,{type:e.type,value:C,...t.unref(x),recordData:t.unref(p)});const k=Re(e)("selectChange",()=>{const I=e.id,N=d(I);c(I,{...N,...t.unref(x),RECORD:C,recordData:t.unref(p)})}),T=(I=[])=>{if(r.value=g(I),e.selectFirstOption){let N=t.unref(r)[0];if(y.options){const D=N[y.options];D&&D.length&&(N=D[0])}s.value=N[y.value]}c(e.id,{type:e.type,value:C,...t.unref(x),recordData:t.unref(p)})},L=Ze(e),A=async()=>{var I;try{m.value=!0;const N=await L(),{data:D}=(N==null?void 0:N.data)||{},R=y.label,B=y.value;if(D){const S=((I=N==null?void 0:N.data)==null?void 0:I.data)??[];v.value=S;const E=S.map(j=>({[R]:j.label,[B]:j.value})),{id:_}=e,M=d(_);c(_,{...M,...t.unref(x)}),T(E)}else T([])}catch(N){console.error(N)}finally{m.value=!1}},O=()=>{switch(e.dataType){case"indicator":{A();break}case"request":h();break}};Ne(e,{selectChange:k,refreshData:O});const{setRequest:w}=t.inject(qe,{setRequest:({id:I,sortNum:N,requestFn:D})=>{}});return typeof w=="function"&&w({id:e.id,requestFn:O,sortNum:e.requestSort}),o({refreshData:O}),{style:n,getPopupContainer:a,myValue:s,selectChange:k,options:r,filterOption:f,loading:m,resultValue:l}}}),D1="",I1="";function Wu(e,o,n,a,i,r){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const es=Ae(Se(ju,[["render",Wu],["__scopeId","data-v-3639c038"]])),ts=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:Bl,EcanBorder:Fl,EcanButton:dl,EcanCheckbox:ul,EcanCirculate:Vl,EcanComboGraph:Ll,EcanCounter:Qr,EcanCustomGraph:Il,EcanDataSelect:es,EcanDatePicker:ol,EcanIframe:Ul,EcanImage:Gl,EcanInput:Xr,EcanLine:kl,EcanList:$r,EcanMap:Jl,EcanModal:It,EcanPageConfig:Mr,EcanPie:wl,EcanProportion:Yr,EcanProviderConfig:zr,EcanRadar:Nl,EcanRadio:pl,EcanRangePicker:sl,EcanScatter:Dl,EcanScrollText:jr,EcanSelect:gl,EcanTable:Zl,EcanTabs:zl,EcanText:Hr,EcanTimeDisplay:Gr,EcanTreeSelect:yl,barComponentProps:Aa,barEvents:Tl,barProps:wa,borderComponentProps:Na,borderEvents:Ol,borderProps:_a,buttonComponentProps:la,buttonEvents:cl,buttonProps:ra,checkboxComponentProps:ca,checkboxEvents:fl,checkboxProps:sa,circulateComponentProps:za,circulateEvents:Pl,circulateProps:Ma,comboGraphComponentProps:Ia,comboGraphEvents:Rl,comboGraphProps:Da,counterComponentProps:Qo,counterEvents:Zr,counterProps:Zo,customGraphComponentProps:Ea,customGraphProps:Ba,dataSelectComponentProps:Za,dataSelectEvents:Xl,dataSelectProps:Ya,datePickerComponentProps:ta,datePickerEvents:el,datePickerProps:ea,iframeComponentProps:ja,iframeProps:Ha,imageComponentProps:qa,imageEvents:Hl,imageProps:Pa,inputComponentProps:Xo,inputEvents:Jr,inputProps:Jo,lineComponentProps:Ca,lineEvents:Al,lineProps:Sa,listComponentProps:$o,listEvents:Ur,listProps:Uo,mapComponentProps:Ka,mapEvents:Ql,mapProps:$a,modalComponentProps:ba,modalEvents:vl,modalProps:pa,pageConfig:jn,pageConfigComponentProps:Wn,pieComponentProps:xa,pieEvents:bl,pieProps:ya,proportionComponentProps:Yo,proportionEvents:Kr,proportionProps:Ko,providerConfig:Mo,providerConfigComponentProps:zo,radarComponentProps:La,radarEvents:_l,radarProps:Ra,radioComponentProps:ma,radioEvents:xl,radioProps:ga,rangePickerComponentProps:aa,rangePickerEvents:al,rangePickerProps:oa,scatterComponentProps:Ta,scatterEvents:El,scatterProps:ka,selectComponentProps:fa,selectEvents:hl,selectProps:da,tableComponentProps:Ga,tableEvents:$l,tableProps:Wa,tabsComponentProps:Fa,tabsEvents:Ml,tabsProps:Oa,textComponentProps:qo,textEvents:Pr,textProps:Po,timeDisplayComponentProps:Go,timeDisplayEvents:Wr,timeDisplayProps:Wo,treeSelectComponentProps:ha,treeSelectEvents:ml,treeSelectProps:ua},Symbol.toStringTag,{value:"Module"})),Gu={install:e=>{Object.keys(ts).forEach(o=>{const n=ts[o];n.install&&e.use(n)})}};G.EcanBar=Bl,G.EcanBorder=Fl,G.EcanButton=dl,G.EcanCheckbox=ul,G.EcanCirculate=Vl,G.EcanComboGraph=Ll,G.EcanCounter=Qr,G.EcanCustomGraph=Il,G.EcanDataSelect=es,G.EcanDatePicker=ol,G.EcanIframe=Ul,G.EcanImage=Gl,G.EcanInput=Xr,G.EcanLine=kl,G.EcanList=$r,G.EcanMap=Jl,G.EcanModal=It,G.EcanPageConfig=Mr,G.EcanPie=wl,G.EcanProportion=Yr,G.EcanProviderConfig=zr,G.EcanRadar=Nl,G.EcanRadio=pl,G.EcanRangePicker=sl,G.EcanScatter=Dl,G.EcanScrollText=jr,G.EcanSelect=gl,G.EcanTable=Zl,G.EcanTabs=zl,G.EcanText=Hr,G.EcanTimeDisplay=Gr,G.EcanTreeSelect=yl,G.barComponentProps=Aa,G.barEvents=Tl,G.barProps=wa,G.borderComponentProps=Na,G.borderEvents=Ol,G.borderProps=_a,G.buttonComponentProps=la,G.buttonEvents=cl,G.buttonProps=ra,G.checkboxComponentProps=ca,G.checkboxEvents=fl,G.checkboxProps=sa,G.circulateComponentProps=za,G.circulateEvents=Pl,G.circulateProps=Ma,G.comboGraphComponentProps=Ia,G.comboGraphEvents=Rl,G.comboGraphProps=Da,G.compatibleMobileList=Cl,G.counterComponentProps=Qo,G.counterEvents=Zr,G.counterProps=Zo,G.customGraphComponentProps=Ea,G.customGraphProps=Ba,G.dataSelectComponentProps=Za,G.dataSelectEvents=Xl,G.dataSelectProps=Ya,G.datePickerComponentProps=ta,G.datePickerEvents=el,G.datePickerProps=ea,G.default=Gu,G.handleScrollCombinations=Sl,G.iframeComponentProps=ja,G.iframeProps=Ha,G.imageComponentProps=qa,G.imageEvents=Hl,G.imageProps=Pa,G.inputComponentProps=Xo,G.inputEvents=Jr,G.inputProps=Jo,G.lineComponentProps=Ca,G.lineEvents=Al,G.lineProps=Sa,G.listComponentProps=$o,G.listEvents=Ur,G.listProps=Uo,G.mapComponentProps=Ka,G.mapEvents=Ql,G.mapProps=$a,G.modalComponentProps=ba,G.modalEvents=vl,G.modalProps=pa,G.moveToComponentList=va,G.pageConfig=jn,G.pageConfigComponentProps=Wn,G.pieComponentProps=xa,G.pieEvents=bl,G.pieProps=ya,G.proportionComponentProps=Yo,G.proportionEvents=Kr,G.proportionProps=Ko,G.providerConfig=Mo,G.providerConfigComponentProps=zo,G.radarComponentProps=La,G.radarEvents=_l,G.radarProps=Ra,G.radioComponentProps=ma,G.radioEvents=xl,G.radioProps=ga,G.rangePickerComponentProps=aa,G.rangePickerEvents=al,G.rangePickerProps=oa,G.scatterComponentProps=Ta,G.scatterEvents=El,G.scatterProps=ka,G.selectComponentProps=fa,G.selectEvents=hl,G.selectProps=da,G.tableComponentProps=Ga,G.tableEvents=$l,G.tableProps=Wa,G.tabsComponentProps=Fa,G.tabsEvents=Ml,G.tabsProps=Oa,G.textComponentProps=qo,G.textEvents=Pr,G.textProps=Po,G.timeDisplayComponentProps=Go,G.timeDisplayEvents=Wr,G.timeDisplayProps=Wo,G.treeSelectComponentProps=ha,G.treeSelectEvents=ml,G.treeSelectProps=ua,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
118
+ <span style="color: ${te||e.color};${t.unref(m)}">${e.minusSignShow?"-":""}${Math.abs(+H).toFixed(2)}%</span>
119
+ </span>`)}else e.format==="percent"?(H=+H,isNaN(H)||(H=(H*100).toFixed(2),T=T.replace(q,`<span class="${M}" style="color:${S(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}%</span>`))):e.format==="money"?(H=+H,isNaN(H)||(H=Oo(H),T=T.replace(q,`<span class="${M}" style="color:${S(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}</span>`))):Y==="thousands"?(H=+H,isNaN(H)||(H=Kc(H),T=T.replace(q,`<span class="${M}" style="color:${S(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}</span>`))):T=T.replace(q,`<span class="${M}" style="color:${S(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}</span>`)}}if(z||(z=`<span class="${M}" style="color: ${S(T)};${t.unref(m)}">${T}</span>`),e.unitShow&&e.unitText){const{unitTop:V,unitLeft:q}=e;let W="position:relative;";V&&(W+=`top:${V};`),q&&(W+=`margin-left:${q};`),z+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${W};${t.unref(m)}'>${e.unitText}</span>`}return e.exceedConfig&&(z=`<span class="${M}" style="display: inline-block;color: ${S(z)};">${z}</span>`),z.includes("span")||(z=`<span class="${M}" style="color: ${S(z)};">${z}</span>`),z});function S(R){let I="",v=!1;const{targetValue:T,targetShow:O,notExpectColor:z}=e;if(O){switch(e.targetRule){case"equal":R!==T&&(v=!0);break;case"greater":R<=T&&(v=!0);break;case"greater_equal":R<T&&(v=!0);break;case"less":R>=T&&(v=!0);break;case"less_equal":R>T&&(v=!0);break}v&&(I=z)}return I}const{pageMode:L}=t.inject(Ve,{pageMode:"normal",requestList:[]}),b=qe(e),h=t.ref(!1),p=async()=>{var R;try{h.value=!0;const I=await b();l(((R=I==null?void 0:I.data)==null?void 0:R.data)||{})}catch(I){console.error(I)}finally{h.value=!1}},C=R=>{const I=e.id,v=d(I);c(I,{...v,value:R||"",RECORD:R||""})},A=()=>{C("")},_=Je(e),B=async()=>{var R,I;try{h.value=!0;const v=await _(),{data:T}=(v==null?void 0:v.data)||{};if(T){n.value=!1;const{columns:O=[],rows:z=[]}=((R=v==null?void 0:v.data)==null?void 0:R.data)??{},{graphicConfig:M}=e;let F={};if(O.length>0)if((I=M==null?void 0:M.dimensionList)!=null&&I.length){const V=O[0];V&&(z!=null&&z.length)&&(F={value:z[0][V]})}else{const V=O.find(q=>!!q);V&&(F={value:isNaN(z[V])?0:z[V]||0})}C(F==null?void 0:F.value),l(F)}else n.value=!0,C("NaN"),l({value:"NaN"})}catch(v){console.error(v)}finally{h.value=!1,f(e.id,!0)}},N=()=>{switch(e.dataType){case"indicator":B();break;case"request":{const{openCustomRequestData:R,customRequestName:I,customRequestField:v}=e;R||R===void 0?p():x(I,T=>{T&&l({[v]:T[v]})});break}}},{setRequest:w}=t.inject(Pe,{setRequest:({id:R,sortNum:I,requestFn:v})=>{}});typeof w=="function"&&w({id:e.id,requestFn:N,sortNum:e.requestSort}),Oe(e,{refreshData:N,resetRecord:A}),o({refreshData:N});const k=Le(e),D=k("click",()=>{var M;const R=document.getElementsByClassName(`ecan-text_${e.id}`);if(R!=null&&R.length&&C(R[0].innerText),setTimeout(()=>{C("")},0),!e.linkPage&&!e.href)return;const I=e.linkPage||"",v=Fo(t.unref(L),I),T=e.href;let O=T||v;O=_e(O);const z=e.target;if(z)if(z!=="event"){if((M=e.transParams)!=null&&M.length){O.includes("?")?O+="&":O+="?";const F=[];for(const V of e.transParams)F.push(`${V.keyName}=${u(String(V.fieldName))}`);O+=F.join("&")}window.open(O,"_"+z)}else window.parent.postMessage({type:"openPage",url:T},"*")}),E=k("valueChange",()=>{});return t.watch(()=>g.value,(R,I)=>{R!==I&&E()}),{style:a,myText:g,loading:h,click:D,textIndent:s,vFontSize:r,gradientStyle:y}}}),qr=()=>{t.useCssVars(e=>({a3c558d0:e.vFontSize,"84a5ab32":e.textIndent,"31c6fe3f":e.percentageSide}))},Vr=jo.setup;jo.setup=Vr?(e,o)=>(qr(),Vr(e,o)):qr;const gh="",mh="",ad=["innerHTML"];function id(e,o,n,a,i,r){const s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["ecan-text","ecan-text_"+e.id]),style:t.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,14,ad))}const Hr=Te(Ce(jo,[["render",id],["__scopeId","data-v-dd3e0d2d"]])),rd=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),xh="",ld={class:"red"};function sd(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",ld,t.toDisplayString(e.text),1)}const jr=Te(Ce(rd,[["render",sd],["__scopeId","data-v-4dd9c03e"]])),Wo={...Ie,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"}},Go=Be(Wo),Wr=["timeChange"],cd=t.defineComponent({name:"EcanTimeDisplay",props:{...Go},setup(e){const o=De(e),n=()=>{const{format:c,operate:u}=e;let x=Se();if(u){const{type:f,value:m,mode:y}=u;switch(f){case"add":x=x.add(m,y);break;case"minus":x=x.subtract(m,y)}}return x.format(c)},a=t.ref();t.watch(()=>[e.operate,e.format],()=>{a.value=n()},{immediate:!0,deep:!0}),t.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let i=null;const r=()=>{clearInterval(i),i=null},l=Le(e)("timeChange",()=>{}),d=()=>{i&&r();let c=1e3;const{value:u,mode:x}=e.updateInterval||{};u&&(c=c*u);const f={second:1,minute:60,hour:60*60,day:24*60*60};x&&(c=c*f[x]),i=setInterval(()=>{a.value=n(),l()},c)};return Oe(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{r()}),{style:o,time:a}}}),bh="";function dd(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const Gr=Te(Ce(cd,[["render",dd],["__scopeId","data-v-b628fca2"]])),Uo={...Ie,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%"},$o=Be(Uo),Ur=["refreshData","click","resetRecord"],fd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",ud="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",hd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",gd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",md=t.defineComponent({name:"EcanList",components:{Skeleton:Vt,ATooltip:ge.Tooltip,MarqueeScroll:Hn},props:{...$o},setup(e,{expose:o}){const n=t.ref(),a=De(e,["backgroundColor"]),i=(v,T)=>{const{format:O,customFormatter:z}=T;if(O==null||O==="")return v;const M={money:Oo,percentage:Bn,contrast:Bn,custom:_r};return M[O]?O==="custom"?M[O](v,z)||"":M[O](v)||"":""},r=(v,T)=>{const O=parseFloat(v+"");if(T!=="contrast")return"";switch(!0){case O>=0:return"goUp";case O<0:return"goDown"}},s=qe(e),l=t.ref(!1),d=async()=>{var v;if(e.dataType==="request")try{l.value=!0;const T=await s();n.value=((v=T==null?void 0:T.data)==null?void 0:v.data.rows)||[]}catch(T){console.error(T)}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:v,isUseSeq:T}=e;return T?[t.unref(c),...v]:v}),x=Je(e),f=async()=>{var v;try{l.value=!0;const T=await x(),{columns:O=[],rows:z=[]}=((v=T==null?void 0:T.data)==null?void 0:v.data)??{};e.isUseSeq&&O.unshift(e.seqName),u.value.forEach((M,F)=>{(!e.isUseSeq||F!==0)&&(M.title=O[F],M.key=O[F])}),n.value=z}catch(T){console.error(T)}finally{l.value=!1}},m=()=>{switch(e.dataType){case"indicator":f();break;case"request":d();break}},y=Le(e),{getGlobalModel:g,setGlobalModel:S}=t.inject(Re,{getGlobalModel:v=>{},setGlobalModel:(v,T)=>{}}),L=v=>{y("click",()=>{const T=g(e.id);S(e.id,{...T,type:e.type,RECORD:v})})()};Oe(e,{refreshData:m,resetRecord:()=>{const v=e.id,T=g(v);S(v,{...T,type:e.type,RECORD:""})}});const{setRequest:h}=t.inject(Pe,{setRequest:({id:v,sortNum:T,requestFn:O})=>{}});typeof h=="function"&&h({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m});const p=(v,T)=>({flex:v.width?"none":"1",width:v.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:(T?v.cellAlign:v.align)||"left",backgroundColor:v.cellColor}),C=(v,T)=>{let O=0;const z=t.unref(n).map(F=>F[T]),M=Math.max(...z);return M&&(O=v[T]/M*100),O},A=v=>{const{progressColor:T="#1890ff",progressGradientColor:O=""}=v;return O?{background:`linear-gradient(to right, ${T} 0%, ${O} 100%)`}:{backgroundColor:T||"#1890ff"}},_=t.computed(()=>{const v=parseFloat(e.seqFontSize)+5;return{width:v+10,height:v}}),{pageMode:B}=t.inject(Ve,{pageMode:"normal"}),N=t.computed(()=>t.unref(B)!=="design"&&e.isAutoScroll),w=v=>{const{seqIconConfig:T}=e;let O=T.find(z=>z.key===v+1);return O||(O=T.find(z=>z.key==="other")),!!(O!=null&&O.icon)},k=(v,T)=>{const{seqIconConfig:O}=e;let z=O.find(M=>M.key===v+1);return z||(z=O.find(M=>M.key==="other")),T===1?z!=null&&z.icon?mt(z.icon):"":T===2?(z==null?void 0:z.color)||"#fff":""},D=v=>{const{seqIndexFormatter:T}=e,O=v+1;return T?_e(T,{textData:{index:O}},{useNewline:!1,useSpace:!0}):O},E=t.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),R=t.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:a,formatFn:i,contrastClass:r,dataSource:n,loading:l,myColumns:u,click:L,getColumnStyle:p,getPercentage:C,getBackgroundColor:A,isShowSeqIcon:w,getSeqIconData:k,seqIcon4:fd,seqIcon5:ud,seqIcon6:hd,seqIcon7:gd,iconSize:_,isScroll:N,formatSeq:D,wrapStyle:E,colSpan:R,getText:(v,T)=>(v.format!=null||v.format!=="")&&i(T[v.key],v)}}}),Sh="",Ch="",yd=e=>(t.pushScopeId("data-v-8c32652d"),e=e(),t.popScopeId(),e),xd={key:0,class:"title"},pd={key:0,class:"ranking"},bd=["onClick"],vd={key:0,class:"ranking"},Sd=yd(()=>t.createElementVNode("div",{class:"icon"},null,-1)),Cd={class:"sort"},wd=["src"],Ad={key:1},kd=["src","width","height"],Td=["src","width","height"],Bd=["src","width","height"],Ed=["src","width","height"],Dd={key:1},Id=["title"],Rd={key:2,class:"empty"};function Ld(e,o,n,a,i,r){const s=t.resolveComponent("a-tooltip"),l=t.resolveComponent("marquee-scroll"),d=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(d,{loading:e.loading},{default:t.withCtx(()=>[e.useTitle?(t.openBlock(),t.createElementBlock("div",xd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columnCount,c=>(t.openBlock(),t.createElementBlock("div",{class:"title-inner",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:c},[e.useRanking?(t.openBlock(),t.createElementBlock("div",pd)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(u,x)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:u.key||x,style:t.normalizeStyle({color:u.titleColor,...e.getColumnStyle(u)})},t.toDisplayString(u.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-list-content",style:t.normalizeStyle({paddingTop:e.useTitle?e.itemRowSpan:0,height:e.useTitle?"calc(100% - 40px)":"100%"})},[t.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...e.wrapStyle}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(${e.itemWidth} - ${e.colSpan})`,marginRight:e.colSpan,marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||u,onClick:x=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",vd,[Sd,t.createElementVNode("div",Cd," Top "+t.toDisplayString(u+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,x=>{var f;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(c[x.key],x.format),x.key==="SEQ"?"seq-column":""]),key:x.key,style:t.normalizeStyle({fontSize:x.fontSize,color:e.contrastClass(c[x.key],x.format)===""?x.color:"",fontWeight:x.fontWeight,...e.getColumnStyle(x,"cell")})},[x.key==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(f=e.seqIconConfig)!=null&&f.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"icon-box",style:t.normalizeStyle({width:e.seqIconWidth||"",height:e.seqIconHeight||""})},[e.seqIconWidth&&e.seqIconHeight&&e.isShowSeqIcon(u)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(u,1),style:t.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,wd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"custom-seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(u,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(e.formatSeq(u)),5)],4)):(t.openBlock(),t.createElementBlock("div",Ad,[u===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,kd)):u===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,Td)):u===2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,Bd)):u>=3?(t.openBlock(),t.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,Ed)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize})},t.toDisplayString(e.formatSeq(u)),5)]))],64)):(t.openBlock(),t.createElementBlock("span",Dd,t.toDisplayString(e.formatSeq(u)),1))],64)):x.format==="progress"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"progress-cell",style:t.normalizeStyle({height:e.itemHeight})},[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({height:x.progressWidth||"14px",backgroundColor:x.progressBaseColor})},[t.createVNode(s,{title:c[x.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({borderRadius:"10px",height:x.progressWidth||"14px",width:`${e.getPercentage(c,x.key)}%`,...e.getBackgroundColor(x)})},null,4)]),_:2},1032,["title"])],4)],4)):(t.openBlock(),t.createElementBlock("span",{key:2,title:e.getText(x,c)},t.toDisplayString(e.getText(x,c)),9,Id))],6)}),128))],12,bd))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(t.openBlock(),t.createElementBlock("div",Rd," 暂无数据 "))]),_:1},8,["loading"])],4)}const $r=Te(Ce(md,[["render",Ld],["__scopeId","data-v-8c32652d"]])),Yo={...Ie,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}{%}",fontSize:"26px",color:"#4091f7",variableColor:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},Ko=Be(Yo),Yr=["refreshData","click"],_d=t.defineComponent({name:"EcanProportion",components:{AProgress:ge.Progress,Skeleton:Vt},props:{...Ko},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(Ve,{pageMode:"normal"}),i=De(e),r=t.computed(()=>{const p=e.width;return parseFloat(p)}),s=t.ref({});t.watch(()=>e.data,()=>{(e.dataType==="static"||t.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=t.computed(()=>{const p=t.unref(s),C=+e.variableDefaultValue;if(p==null)return isNaN(C)?0:C;const A=e.text.match(/\{(.+?)\}/g)||[];let _;const B=new Set(Object.keys(p));for(let N=0;N<A.length;N++){const w=A[N],k=w.slice(1,w.length-1);if(B.has(k)){_=p[k];break}}return typeof _=="number"?_=_*100:typeof _=="string"&&!isNaN(+_)?_=+_*100:isNaN(C)?_=0:_=C*100,e.decimalFormat&&(_=+_.toFixed(2)),_}),d=t.computed(()=>{var B;let p=e.text;if(p==="")return t.unref(l);const C=e.variableDefaultValue,A=t.unref(s),_=p.match(/\{(.+?)\}/g)||[];for(let N=0;N<_.length;N++){const w=_[N];let k=w.slice(1,w.length-1);const D=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,E=w.match(D);for(let I=0;I<(E==null?void 0:E.length);I++){const v=(B=E[I])==null?void 0:B.trim();A[v]!=null&&(k=k.replace(v,A[v]))}let R=k;try{(/\(.*\)/g.test(k)||/[+/\\*]/g.test(k))&&(R=dn(k))}catch(I){console.error(I)}typeof+R=="number"&&!isNaN(+R)?(R=+R*100,e.decimalFormat&&(R=R.toFixed(2))):typeof R!="string"&&(R=C),p=p.replace(w,`<span style="color: ${e.variableColor};">${R+""}</span>`)}return p=p==null?void 0:p.replace(/\n|\\n/g,"<br/>"),t.unref(n)?"NaN":p}),c=qe(e),u=t.ref(!1),x=async()=>{var p;if(e.dataType==="request")try{u.value=!0;const C=await c();s.value=((p=C==null?void 0:C.data)==null?void 0:p.data)||{}}catch(C){console.error(C)}finally{u.value=!1}},f=(p={})=>{s.value=p},m=Je(e),y=async()=>{var p;try{u.value=!0;const C=await m(),{data:A}=(C==null?void 0:C.data)||{};if(A){n.value=!1;const{columns:_=[],rows:B=[]}=((p=C==null?void 0:C.data)==null?void 0:p.data)??{};let N={};if(_.length>0){const w=_.find(k=>!!k);w&&(N={percent:B[w]})}f(N)}else n.value=!0,f({percent:"NaN"})}catch(C){console.error(C)}finally{u.value=!1}},g=()=>{switch(e.dataType){case"indicator":y();break;case"request":x();break}};Oe(e,{refreshData:g}),o({refreshData:g});const L=Le(e)("click",()=>{}),{setRequest:b}=t.inject(Pe,{setRequest:({id:p,sortNum:C,requestFn:A})=>{}});typeof b=="function"&&b({id:e.id,requestFn:g,sortNum:e.requestSort});const h=t.computed(()=>{const{gradientShow:p,gradientColor:C,gradientOffset:A,strokeColor:_}=e;let B=_;return p&&C&&(B={"0%":_,[`${A*100}%`]:C}),B});return{style:i,myWidth:r,text:d,myValue:l,loading:u,click:L,customStrokeColor:h}}}),Ah="",Nd=["innerHTML"];function Od(e,o,n,a,i,r){const s=t.resolveComponent("skeleton"),l=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:t.withCtx(()=>[e.loading?(t.openBlock(),t.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(t.openBlock(),t.createElementBlock("div",{key:1,class:"format",style:t.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},[t.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:e.text},null,8,Nd)],4)):t.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Kr=Te(Ce(_d,[["render",Od],["__scopeId","data-v-e1397944"]])),Zo={...Ie,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{}},Qo=Be(Zo),Zr=["refreshData","click","resetRecord"],Fd=t.defineComponent({name:"EcanCounter",components:{Skeleton:Vt},props:{...Qo},setup(e,{expose:o}){const n=t.ref(),a=De(e),i=t.computed(()=>({width:e.unitWidth,height:e.unitHeight,marginRight:e.unitInterval+"px"})),r=t.computed(()=>({color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle}));t.watch(()=>[e.data,e.dataType],([h,p])=>{p==="static"&&(n.value=h)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=t.inject(Re,{getGlobalModel:h=>{},setGlobalModel:(h,p)=>{}}),c=Le(e)("click",()=>{const h=s(e.id);l(e.id,{...h,type:e.type,value:t.unref(n)})}),u=()=>{const h=e.id,p=s(h);l(h,{...p,type:e.type,value:""})},x=qe(e),f=t.ref(!1),m=async()=>{var h,p;try{f.value=!0;const C=await x();n.value=((p=(h=C==null?void 0:C.data)==null?void 0:h.data)==null?void 0:p.value)||""}catch(C){console.error(C)}finally{f.value=!1}},y=Je(e),g=async()=>{var h;try{f.value=!0;const p=await y(),{data:C}=(p==null?void 0:p.data)||{};let A="";if(C){const{columns:_=[],rows:B=[]}=((h=p==null?void 0:p.data)==null?void 0:h.data)??{};if(_.length>0){const N=_.find(w=>!!w);N&&(A=B[N]||"")}}n.value=String(A)}catch(p){console.error(p)}finally{f.value=!1}},S=()=>{switch(e.dataType){case"indicator":g();break;case"request":m();break}},L=t.computed(()=>{const h=[],{digits:p}=e,C=t.unref(n)?t.unref(n).split("").reverse().join(""):"";for(let A=0;A<p;A++)C&&C[A]?h.push(C[A]):h.push("0");return h.reverse()});Oe(e,{refreshData:S,resetRecord:u});const{setRequest:b}=t.inject(Pe,{setRequest:({id:h,sortNum:p,requestFn:C})=>{}});return typeof b=="function"&&b({id:e.id,requestFn:S,sortNum:e.requestSort}),o({refreshData:S}),{style:a,valueList:L,digitsStyle:i,fontStyle:r,loading:f,useImagePath:mt,click:c}}}),Th="",Md=["src"];function zd(e,o,n,a,i,r){var l;const s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-counter",style:t.normalizeStyle(e.style),onClick:o[0]||(o[0]=(...d)=>e.click&&e.click(...d))},[(l=e.valueList)!=null&&l.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.valueList,(d,c)=>(t.openBlock(),t.createElementBlock("div",{class:"digits-item",style:t.normalizeStyle(e.digitsStyle),key:c},[e.counterBackgroundImage?(t.openBlock(),t.createElementBlock("img",{key:0,class:"item-image",src:e.useImagePath(e.counterBackgroundImage)},null,8,Md)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"item-text",style:t.normalizeStyle(e.fontStyle)},t.toDisplayString(d),5)],4))),128)):t.createCommentVNode("",!0)],4))}const Qr=Te(Ce(Fd,[["render",zd],["__scopeId","data-v-f32a2cbe"]])),Jo={...Ie,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Xo=Be(Jo),Jr=["inputChange","inputBlur"],Pd=t.defineComponent({name:"EcanInput",components:{AInput:ge.Input},props:{...Xo},setup(e){const o=De(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:i,getRecordValueByKeyName:r}=t.inject(Re,{getGlobalModel:u=>{},setGlobalModel:(u,x)=>{},getRecordValueByKeyName:u=>{}});t.watch(()=>e.value,u=>{n.value=r(u)},{immediate:!0}),i(e.id,{type:e.type,value:n});const s=()=>{const u=a(e.id);i(e.id,{...u,RECORD:n})},l=Le(e),d=Ne.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),Eh="";function qd(e,o,n,a,i,r){const s=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Xr=Te(Ce(Pd,[["render",qd]])),ea={...Ie,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"},ta=Be(ea),el=["dateChange"],na=t.defineComponent({name:"EcanDatePicker",props:{...ta},components:{ADatePicker:ge.DatePicker},setup(e){const o=t.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=De(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([f,m,y])=>{let g=null;if(f?g=Se(_e(f)):m&&(g=Se()),y&&g){const{type:S,value:L,mode:b}=y;switch(S){case"add":g=g.add(L,b);break;case"minus":g=g.subtract(L,b)}}i.value=g},{deep:!0,immediate:!0});const{setGlobalModel:r}=t.inject(Re,{setGlobalModel:(f,m)=>{}});r(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:i});const l=Le(e)("dateChange",()=>{}),d=()=>{t.unref(i)&&l()};Oe(e,{dateChange:l});const c=t.ref({}),u=t.ref({}),x=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 m=f.getBoundingClientRect(),y=parseFloat(t.unref(o).widthScale)*280;document.body.clientWidth-m.left<y&&(c.value.marginLeft=-1*(y-m.width)+"px")}},0)}),{style:n,getPopupContainer:a,myValue:i,locale:Ja,change:d,scaleValue:o,popupStyle:c,customStyle:u,openChange:x}}}),tl=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},nl=na.setup;na.setup=nl?(e,o)=>(tl(),nl(e,o)):tl;const Ih="",Rh="",Vd=["id"];function Hd(e,o,n,a,i,r){const s=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[t.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"])],12,Vd)}const ol=Te(Ce(na,[["render",Hd],["__scopeId","data-v-d4ec0d66"]])),oa={...Ie,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},aa=Be(oa),al=["dateChange"];var il={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(pe,function(){var n="month",a="quarter";return function(i,r){var s=r.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,u){return c=Number(c),this.$utils().p(u)===a?this.add(3*c,n):l.bind(this)(c,u)};var d=s.startOf;s.startOf=function(c,u){var x=this.$utils(),f=!!x.u(u)||u;if(x.p(c)===a){var m=this.quarter()-1;return f?this.month(3*m).startOf(n).startOf("day"):this.month(3*m+2).endOf(n).endOf("day")}return d.bind(this)(c,u)}}})})(il);var jd=il.exports;const Wd=Ii(jd);Se.extend(Wd);const ia=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ge.RangePicker},props:{...aa},setup(e){const o=De(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],([h,p,C,A,_,B])=>{let N=null,w=null;if(C&&(N=Se().subtract(A,_),w=Se()),h&&(N=Se(_e(h))),p&&(w=Se(_e(p))),B){const{type:k,value:D,mode:E}=B;switch(k){case"add":N=N&&N.add(D,E),w=w&&w.add(D,E);break;case"minus":N=N&&N.subtract(D,E),w=w&&w.subtract(D,E)}}a.value=[N,w]},{immediate:!0});let i=t.unref(a)[0],r=t.unref(a)[1],s="";const l=(h,p,C)=>{Array.isArray(h)?(i=h[0],r=h[1],s=C.range):(i=null,r=null)};window.dayjs=Se;const d=h=>{let p=!1,{limitStartTime:C,limitEndTime:A}=e;const _={startTime:`${i||""}`,endTime:`${r||""}`};if(C=_e(C,{codeData:_}),A=_e(A,{codeData:_}),C&&A?p=!(Se(C)<h&&h<Se(A)):C?p=Se(C)>h:A&&(p=Se(A)<h),!e.isAllowSpanYear&&s){let B=null;if(s==="start"?B=i:s==="end"&&(B=r),B){const N=B.startOf("year"),w=B.endOf("year");p=!(N<=h&&h<w)}}if(!p){const{value:B=0,mode:N="year"}=e.limitInterval||{};B&&(s==="start"?p=i.add(B,N)<h:s==="end"&&(p=r.subtract(B,N)>h))}return p},{getGlobalModel:c,setGlobalModel:u}=t.inject(Re,{getGlobalModel:h=>{},setGlobalModel:(h,p)=>{}}),x=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:x,endTime:f,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const m=Le(e);let y=!1;const g=m("dateChange",()=>{}),S=h=>{const p=t.unref(a),C=p&&p[0]&&p[1];h===!1&&y===!0&&C&&(g(),y=!1),h||(s="")},L=()=>{y=!0};return Oe(e,{dateChange:()=>{const{associated:h}=e;if(h){const p=c(h)||{};if(p){const{value:C}=p;if(C)switch(t.unref(C)){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:Ja,dateChange:g,myValue:a,disabledDate:d,calendarChange:l,openChange:S,change:L}}}),rl=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},ll=ia.setup;ia.setup=ll?(e,o)=>(rl(),ll(e,o)):rl;const _h="",Nh="";function Gd(e,o,n,a,i,r){const s=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"])],4)}const sl=Te(Ce(ia,[["render",Gd],["__scopeId","data-v-c9c68612"]])),ra={...Ie,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"},la=Be(ra),cl=["click"],Ud=t.defineComponent({name:"EcanButton",components:{AButton:ge.Button},props:{...la},setup(e){const o=De(e),a=Le(e)("click",()=>{const d=t.unref(s);d&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:d},"*")}),i=t.computed(()=>{const d={};return e.mode!=="primary"&&(d.backgroundColor=e.buttonBackgroundColor||"transparent",d.color=e.tooltipTextStyleColor,d.borderColor=e.borderColor||"transparent"),{height:e.height,...d}}),r=t.computed(()=>_e(e.text)),s=t.computed(()=>_e(e.href)||null),l=t.computed(()=>{const d=e.target;if(!(d==="event"||t.unref(s)==null))return{self:"_self",blank:"_blank"}[d]});return{style:o,click:a,myText:r,myHref:s,myTarget:l,buttonStyle:i}}}),Fh="";function $d(e,o,n,a,i,r){const s=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-button",style:t.normalizeStyle(e.style)},[t.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:t.normalizeStyle(e.buttonStyle),class:t.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:t.withCtx(()=>[t.createElementVNode("span",{style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const dl=Te(Ce(Ud,[["render",$d]])),sa={...Ie,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:{}},ca=Be(sa),fl=["checkboxChange"],Yd=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ge.CheckboxGroup},props:{...ca},setup(e,{expose:o}){const n=De(e),a=t.ref([]),i=t.ref([]),r=S=>{const L=e.value;let b=[];S.forEach(h=>{h.checked&&b.push(h.value)}),typeof L=="string"&&L!==""?b=b.concat(L.split(",")):Array.isArray(L)&&(b=b.concat(L)),a.value=S,i.value=b};t.watch(()=>[e.data,e.value],([S])=>{r(S)},{immediate:!0,deep:!0});const s=qe(e),l=async()=>{var b,h;if(e.dataType!=="request")return;const S=await s(),L=((h=(b=S==null?void 0:S.data)==null?void 0:b.data)==null?void 0:h.rows)||[];r(L)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Re,{getGlobalModel:S=>{},setGlobalModel:(S,L)=>{}});c(e.id,{type:e.type,value:i});const x=Le(e)("checkboxChange",()=>{const S=d(e.id);c(e.id,{...S,RECORD:i})}),f=Je(e),m=async()=>{var S;try{const L=await f(),{data:b}=(L==null?void 0:L.data)||{};if(b){const p=(((S=L==null?void 0:L.data)==null?void 0:S.data)??[]).map(C=>({label:C.label,value:C.value}));r(p)}else r([])}catch(L){console.error(L)}},y=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:g}=t.inject(Pe,{setRequest:({id:S,sortNum:L,requestFn:b})=>{}});return typeof g=="function"&&g({id:e.id,requestFn:y,sortNum:e.requestSort}),o({refreshData:y}),{myOption:a,style:n,myValue:i,checkboxChange:x}}}),zh="";function Kd(e,o,n,a,i,r){const s=t.resolveComponent("a-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"ecan-checkbox",style:t.normalizeStyle(e.style)},[t.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const ul=Te(Ce(Yd,[["render",Kd]])),da={...Ie,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"},fa=Be(da),hl=["selectChange","refreshData"],Zd=t.defineComponent({name:"EcanSelect",components:{ASelect:ge.Select,ASelectOption:ge.SelectOption},props:{...fa},setup(e,{expose:o}){const n=De(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=qe(e),r=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var v;const{mode:I}=e;return(v=t.unref(r))!=null&&v.length?s.value:I==="multiple"||I==="tags"||I==="combobox"?[]:""},set:I=>{s.value=I}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:u}=t.inject(Re,{getGlobalModel:I=>{},setGlobalModel:(I,v)=>{},getRecordValueByKeyName:I=>{}}),x=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,r.value],()=>{const{mode:I,selectFirstOption:v,value:T}=e,O=u(T),z=x.value;if(I==="multiple"||I==="tags"||I==="combobox"){if(O)s.value=O.split(",");else if(v){const M=t.unref(r)[0];s.value=M?[M[z]]:[]}}else if(O)s.value=O;else if(v){const M=t.unref(r)[0];s.value=M?M[z]:""}},{immediate:!0});const f=(I,v)=>{const T=x.label,O=x.value;let z;const M=v[T],F=v[O];return M!=null?z=M:F!=null&&(z=F),(z==null?void 0:z.toLowerCase().indexOf(I==null?void 0:I.toLowerCase()))>=0},m=I=>{const{label:v,value:T,options:O}=e.dataFieldNames;if(O&&Array.isArray(I))if(I.some(z=>O in z)){const z={},M=[];I.forEach(F=>{z[F[O]]||(z[F[O]]=[]),z[F[O]].push({[v]:F[v],[T]:F[T]})});for(const F in z)M.push({[v]:F,[O]:z[F]});return M}else return I;else if(!O)return I},y=t.ref(!1),g=async()=>{var I,v;if(e.dataType==="request"){y.value=!0;try{const T=await i();if(r.value=m(((v=(I=T==null?void 0:T.data)==null?void 0:I.data)==null?void 0:v.rows)||[]),e.selectFirstOption){let O=t.unref(r)[0];if(x.options){const z=O[x.options];z&&z.length&&(O=z[0])}s.value=O[x.value]}}catch(T){console.error(T)}finally{y.value=!1}}},{setLoadedData:S,loadedData:L}=t.inject(kt,{setLoadedData:(I,v)=>{},loadedData:{}}),b=t.computed(()=>{let I=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(r)){const v=x.label,T=x.value;if(e.mode==="multiple")I=t.unref(r).filter(O=>t.unref(s).includes(O[T])).map(O=>O[v]);else{const O=t.unref(r).find(z=>t.unref(s)===z[T]);O&&(I=O[v])}}return I}),h=t.ref([]),p=t.computed(()=>{const I={};if(e.mode!=="multiple"){const v=t.unref(h).find(T=>T.value===t.unref(s));v&&(I.itemCodes=v.item_codes)}return I}),C=t.computed(()=>{const{value:I,label:v}=x,T=t.unref(r).find(O=>O[I]===t.unref(l));return T?{label:T[v],value:T[I]}:{}});c(e.id,{type:e.type,value:b,...t.unref(p),recordData:t.unref(C)});const _=Le(e)("selectChange",()=>{const I=e.id,v=d(I);c(I,{...v,...t.unref(p),RECORD:b,recordData:t.unref(C)})}),B=(I=[])=>{if(r.value=m(I),e.selectFirstOption){let v=t.unref(r)[0];if(x.options){const T=v[x.options];T&&T.length&&(v=T[0])}s.value=v[x.value]}c(e.id,{type:e.type,value:b,...t.unref(p),recordData:t.unref(C)})},N=Je(e),w=async()=>{var I;try{y.value=!0;const v=await N(),{data:T}=(v==null?void 0:v.data)||{},O=x.label,z=x.value;if(T){const M=((I=v==null?void 0:v.data)==null?void 0:I.data)??[];h.value=M;const F=M.map(W=>({[O]:W.label,[z]:W.value})),{id:V}=e,q=d(V);c(V,{...q,...t.unref(p)}),S(V,!0),B(F)}else B([])}catch(v){console.error(v)}finally{y.value=!1}},k=t.computed(()=>{var I,v;return(v=cn(((I=e==null?void 0:e.graphicConfig)==null?void 0:I.controlList)||[]))==null?void 0:v.find(T=>T.conditionKey==="parentCode")}),D=t.ref(!1);t.watch(L,I=>{!t.unref(D)&&t.unref(k)&&I[t.unref(k).id]&&(D.value=!0,E())},{deep:!0});const E=()=>{switch(e.dataType){case"indicator":{if(t.unref(k)){if(t.unref(L)[t.unref(k).id]){const{mode:I}=e;I==="multiple"||I==="tags"||I==="combobox"?l.value=[]:l.value="",w()}}else w();break}case"request":g();break}};Oe(e,{selectChange:_,refreshData:E});const{setRequest:R}=t.inject(Pe,{setRequest:({id:I,sortNum:v,requestFn:T})=>{}});return typeof R=="function"&&R({id:e.id,requestFn:E,sortNum:e.requestSort}),o({refreshData:E}),{style:n,getPopupContainer:a,myValue:s,selectChange:_,options:r,filterOption:f,loading:y,resultValue:l}}}),qh="",Vh="";function Qd(e,o,n,a,i,r){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const gl=Te(Ce(Zd,[["render",Qd],["__scopeId","data-v-2102cdda"]])),ua={...Ie,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},ha=Be(ua),ml=["selectChange","refreshData"],Jd={name:"EcanTreeSelect",components:{ATreeSelect:ge.TreeSelect},props:{...ha},setup(e){const o=De(e),n=t.ref(e.data),a=(m,y)=>{const g=e.dataFieldNames,S=g.label,L=g.value;let b;const h=y[S],p=y[L];return h!=null?b=h:p!=null&&(b=p),(b==null?void 0:b.toLowerCase().indexOf(m==null?void 0:m.toLowerCase()))>=0},i=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:m,value:y,selectFirstOption:g}=e;m?y?i.value=y.split(","):g&&(i.value=[t.unref(n)[0]]):y?i.value=y:g&&(i.value=t.unref(n)[0])},{immediate:!0});const r=t.ref(!1),s=qe(e),l=async()=>{var m,y;if(e.dataType==="request"){r.value=!0;try{const g=await s();n.value=((y=(m=g==null?void 0:g.data)==null?void 0:m.data)==null?void 0:y.rows)||[];const S=t.unref(n)[0];e.value===""&&S!=null&&(i.value=S[e.dataFieldNames.value])}catch(g){console.error(g)}finally{r.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=t.inject(Re,{getGlobalModel:m=>{},setGlobalModel:(m,y)=>{}});c(e.id,{type:e.type,value:i});const x=Le(e)("selectChange",()=>{const m=e.id,y=d(m);c(m,{...y,RECORD:i})});Oe(e,{selectChange:x,refreshData:l});const{setRequest:f}=t.inject(Pe,{setRequest:({id:m,sortNum:y,requestFn:g})=>{}});return f({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:n,filterTreeNode:a,myValue:i,loading:r,selectChange:x}}},jh="",Wh="";function Xd(e,o,n,a,i,r){const s=t.resolveComponent("a-tree-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tree-select",style:t.normalizeStyle(a.style)},[t.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":o[0]||(o[0]=l=>a.myValue=l),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const yl=Te(Ce(Jd,[["render",Xd],["__scopeId","data-v-37236421"]])),ga={...Ie,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:""},ma=Be(ga),xl=["checkboxChange","click"],ef=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:ge.RadioGroup,ARadioButton:ge.RadioButton,ARadio:ge.Radio},props:{...ma},setup(e,{expose:o}){const{pageMode:n}=t.inject(Ve,{pageMode:"normal"}),a=De(e),i=t.ref([]),r=t.ref(""),s=p=>{const C=e.value;let A=[];typeof C=="string"&&C!==""?A=A.concat(C.split(",")):Array.isArray(C)&&(A=A.concat(C)),i.value=p,r.value=A[0]||""};t.watch(()=>[e.data,e.value],([p])=>{t.unref(n)==="design"&&s(p)},{immediate:!0,deep:!0});const l=qe(e),d=async()=>{var A,_;if(e.dataType!=="request")return;const p=await l(),C=((_=(A=p==null?void 0:p.data)==null?void 0:A.data)==null?void 0:_.rows)||[];s(C)},{getGlobalModel:c,setGlobalModel:u}=t.inject(Re,{getGlobalModel:p=>{},setGlobalModel:(p,C)=>{}});u(e.id,{type:e.type,value:r});const x=Le(e),f=()=>{const p=t.unref(i).find(C=>C.value===t.unref(r))||{};x("checkboxChange",()=>{const C=c(e.id);u(e.id,{...C,RECORD:r})},p)()},m=p=>{r.value=p,x("click",()=>{const C=c(e.id);u(e.id,{...C,RECORD:r})})()};t.watch(r,()=>{f()});const y=Je(e),g=async()=>{var p;try{const C=await y(),{data:A}=(C==null?void 0:C.data)||{};if(A){const B=(((p=C==null?void 0:C.data)==null?void 0:p.data)??[]).map(N=>({label:N.label,value:N.value}));s(B)}else s([])}catch(C){console.error(C)}},S=()=>{switch(e.dataType){case"indicator":g();break;case"request":d();break}},{setRequest:L}=t.inject(Pe,{setRequest:({id:p,sortNum:C,requestFn:A})=>{}});typeof L=="function"&&L({id:e.id,requestFn:S,sortNum:e.requestSort});const b=p=>{r.value=p.value},h=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return t.onMounted(()=>{s(e.data)}),o({refreshData:S}),{myOption:i,style:a,myValue:r,radioStyle:h,onClickButton:m,useImagePath:mt,tabChange:b}}}),Uh="",$h="",tf=["onClick"];function nf(e,o,n,a,i,r){const s=t.resolveComponent("a-radio"),l=t.resolveComponent("a-radio-button"),d=t.resolveComponent("a-radio-group");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ecan-radio",e.optionType]),style:t.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:u,onClick:t.withModifiers(x=>e.tabChange(c),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.label),5)],12,tf))),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 pl=Te(Ce(ef,[["render",nf],["__scopeId","data-v-83a05acd"]])),ya={...Ie,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},xa=Be(ya),bl=["click","refreshData","resetRecord"],Xt=async e=>{var d;const o=await pt.post(e,{},{responseType:"blob"}),{data:n,headers:a}=o,i=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),r=new Blob([n]),s=document.createElement("a"),l=window.URL.createObjectURL(r);s.href=l,s.download=decodeURI(i),s.style.display="none",document.body.appendChild(s),s.click(),(d=s.parentNode)==null||d.removeChild(s),window.URL.revokeObjectURL(l)},pa={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:[]},ba=Be(pa),vl=["showModal","hideModal"],Ot=["ecanBorder","ecanTabs","ecanCirculate"];function Sl(e){const{containerMap:o={},sourceList:n=[]}=e,a=Ne.cloneDeep(e.componentList),i=a.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(i!=null&&i.length)for(const r of i){const s=o[r.id],l=[];if((!Jt(r,"componentList")||!(r!=null&&r.componentList))&&(r.componentList=[]),s){let d=0;for(const c in s){const u=s[c],x=[];if(u!=null&&u.length)for(const f of u){let m=a.find(y=>y.id===f);m||(m=n.find(y=>y.id===f)),m&&(x.push(m),Ot.includes(m.type)&&x.push(...fn(m.id,o,n)))}for(const f of x)Jt(f,"scale")?parseFloat(c)>0&&(f.left=parseFloat(f.left)+d+"px"):(f.left=parseFloat(f.sourceLeft||f.left)-parseFloat(r.sourceLeft||r.left)+d+"px",f.top=parseFloat(f.sourceTop||f.top)-parseFloat(r.sourceTop||r.top)+"px"),l.includes(f.id)||l.push(f.id);r.componentList.push(...x),d=cf(x)}}for(const d of l){const c=a.findIndex(u=>u.id===d);c!==-1&&a.splice(c,1)}}return a}function Cl(e){var r,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,i=Ne.cloneDeep([...e.componentList,...af(a,n)]);if(of(a,i),(r=Object.keys(a))!=null&&r.length||(s=Object.keys(o))!=null&&s.length){for(const f in a){const m=i.find(y=>y.id===f);if(m){Jt(m,"parentId")||(m.parentId="",m.sourceLeft=m.left,m.sourceTop=m.top);for(const y in a[f])if(a[f][y])for(const g of a[f][y]){const S=i.find(L=>L.id===g);S&&(S.parentId=f,S.sourceLeft=S.left,S.sourceTop=S.top,S.left=parseFloat(S.left)-parseFloat(m.sourceLeft||m.left)+"px",S.top=parseFloat(S.top)-parseFloat(m.sourceTop||m.top)+"px")}}}const l=Array.from(new Set(i.filter(f=>(!Jt(f,"parentId")||f.parentId==="")&&f.combinationId).map(f=>f.combinationId))),d=rf(l,{...e,componentList:i});d!=null&&d.length&&i.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],u=i.filter(f=>c.includes(f.type)&&!Jt(f,"parentId")),x=[];for(const f of u)if(f){const m=f.id+"_vir";x.push({id:m,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=m,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=0,f.top=0}x!=null&&x.length&&i.unshift(...x);for(const f of i){const m=document.body.clientWidth;if(f.parentId===""&&Ot.includes(f.type))f.sourceWidth=parseFloat(f.width),f.height=(m/(f.sourceWidth/parseFloat(f.height))).toFixed(2)+"px",f.width="100%",f.position="relative",f.top="auto",f.left="auto";else{const y=i.find(g=>g.id===f.parentId);if((y==null?void 0:y.parentId)===""){const g=y.sourceWidth||parseFloat(y.width),S=m/g;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 lf(i)}return i}function of(e,o){const n=Ne.cloneDeep(e),a=o.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(a!=null&&a.length)for(const i of a){const r=n[i.id];for(const s in r)for(const l of r[s]){const d=o.find(c=>c.id===l);if(d&&Ot.includes(d.type)){const c=fn(d.id,n,o);for(const u of c)e[i.id][s].push(u.id),Ot.includes(u.type)&&delete e[u.id];delete e[d.id]}}}}function af(e,o){const n=[],a=o.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(a!=null&&a.length)for(const i of a){const r=e[i.id];for(const s in r)if(parseFloat(s)>0)for(const l of r[s]){const d=o.find(c=>c.id===l);d&&(n.push(d),Ot.includes(d.type)&&n.push(...fn(d.id,e,o)))}}return n}function fn(e,o,n){const a=[],i=o[e];for(const r in i)for(const s of i[r]){const l=n.find(d=>d.id===s);l&&(a.push(l),Ot.includes(l.type)&&a.push(...fn(l.id,o,n)))}return a}function rf(e,o,n){const{combinationMap:a={},componentList:i=[]}=o,r=[];for(const s of e){const l=a[s];if(l!=null&&l.length){const d=i.filter(c=>l.includes(c.id));if(d!=null&&d.length){const c=sf(d);if(c){r.push({...c,id:s,keyName:s,parentId:n||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:c.left,sourceTop:c.top});for(const u of d)u&&(u.parentId=s,u.sourceLeft=u.left,u.sourceTop=u.top,u.left=parseFloat(u.left)-parseFloat(c.left)+"px",u.top=parseFloat(u.top)-parseFloat(c.top)+"px")}}}}return r}function lf(e){const n=e.filter(a=>a.parentId==="");if(n!=null&&n.length){const a=Ne.cloneDeep(n).map(i=>({...i,sourceTop:parseFloat(i.sourceTop),sourceLeft:parseFloat(i.sourceLeft)}));for(let i=0;i<a.length-1;i++)for(let r=0;r<a.length-i-1;r++){let s=!1;if((a[r].sourceTop-a[r+1].sourceTop>50||Math.abs(a[r+1].sourceTop-a[r].sourceTop)<=50&&a[r].sourceLeft>a[r+1].sourceLeft)&&(s=!0),s){const l=a[r];a[r]=a[r+1],a[r+1]=l}}for(const i of a){const r=e.findIndex(s=>s.id===i.id);r!==-1&&e.splice(r,1)}return[...a,...e]}return e}function sf(e){const o=e.sort((r,s)=>parseFloat(r.top)-parseFloat(s.top))[0],n=e.sort((r,s)=>parseFloat(r.left)-parseFloat(s.left))[0],a=e.map(r=>({...r,computedTop:parseFloat(r.top)+parseFloat(r.height)})).sort((r,s)=>s.computedTop-r.computedTop)[0],i=e.map(r=>({...r,computedLeft:parseFloat(r.left)+parseFloat(r.width)})).sort((r,s)=>s.computedLeft-r.computedLeft)[0];return o&&n&&a&&i?{left:n.left,top:o.top,width:i.computedLeft-parseFloat(n.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}function cf(e){const o=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,a)=>a-n)[0];return o||0}function va(e,o,n){const a=e[n],i=[];if(a)for(const r in a){const s=a[r];for(const l of s){const d=o.find(c=>c.id===l);d&&(i.push(d),Ot.includes(d.type)&&i.push(...fn(d.id,e,o)))}}return i}const df=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function ff(e,o,n,a,i,r){return e.component.parentId?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#container_"+e.component.parentId},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.normalizeProps(t.mergeProps({key:1},e.component)),null,16))}const uf=Te(Ce(df,[["render",ff]])),hf=t.defineComponent({name:"EcanModal",components:{AModal:ge.Modal,CloseOutlined:b0,Render:uf},props:{...ba},setup(e,{emit:o}){const n=t.ref([]),a=t.inject("isMobile",!1),i=t.inject("getContainerMap",()=>{}),r=t.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l,setRequestData:d}=t.inject(Re,{setRequestData:(U,Z)=>{},clearInteractiveData:()=>{},interactiveData:null}),c=()=>document.getElementById("ProviderConfig")||document.body,u=t.computed(()=>{const U=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[U]}}),x=e.fullModal?"1920px":e.width,f=e.fullModal?"1080px":e.height,m=e.originalWidth,y=e.originalHeight,g=t.ref("80%"),S=t.ref(0),L=t.ref(),b=t.ref(0),h=t.ref({}),p=De(e),C=t.ref({}),A=t.ref(!1),_=t.ref();let B;const N=()=>{L.value=parseFloat(x)/parseFloat(m);const U=parseFloat(f)/parseFloat(y),Z=document.body.offsetWidth,X=document.body.offsetHeight;S.value=Z*t.unref(L),b.value=X*U,g.value=`${t.unref(L)*100}%`,h.value={width:`${t.unref(S)}px`,height:`${t.unref(b)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},C.value={...t.unref(p),backgroundImage:mt(e.backgroundImage,!0)},a?C.value={...C.value,width:"100%",height:"100%"}:C.value={...C.value,transform:`scale(${t.unref(S)/parseFloat(x)},${t.unref(b)/parseFloat(f)})`,width:x,height:f}},w=Ne.debounce(()=>{N()},100),k=()=>{const U=window.MutationObserver;B=new U(w),B.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},D=()=>{B&&(B.disconnect(),B.takeRecords(),B=null)},E=t.ref(!1),{touchRequest:R}=t.inject(Pe,{touchRequest:()=>{}}),I=t.ref(""),v=()=>{var X;const{title:U}=e,Z=(X=t.unref(l))==null?void 0:X.RECORD;return Z?_e(U,{textData:Z},{useNewline:!1,useSpace:!1}):U},T=Le(e),O=()=>{a&&(document.documentElement.style.overflow="hidden"),I.value=v(),E.value=!0},z=T("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),E.value=!1}),M=()=>{z()},F=()=>{z(),s()},{setModalModel:V,pushUseModalIds:q,popUseModalIds:W}=t.inject(ki,{pushUseModalIds:U=>{},popUseModalIds:()=>{},setModalModel:(U,Z)=>{}}),Q=t.computed(()=>{let U=e.componentList;const Z=Ne.cloneDeep(e.componentList),X=i(),ie=r(),oe={containerMap:X,combinationMap:ie};a&&(U=Cl({...oe,componentList:Z,sourceList:e.allComponentList})),U=Sl({...oe,componentList:U,sourceList:e.allComponentList});const le=[];for(const xe of U)if(xe.type==="ecanCirculate"){const Ae=va(X,t.unref(Z),xe.id);xe.componentList=Ae,le.push(...Ae.map(ce=>ce.id))}if(le!=null&&le.length)for(const xe of le){const Ae=U.findIndex(ce=>ce.id===xe);Ae!==-1&&U.splice(Ae,1)}return U}),P=()=>{const U=e.id;let Z=[];const X=e.componentList;Array.isArray(X)&&(Z=X.map(ie=>ie.id),V(U,[...new Set(Z)]))},H=t.ref(!1),Y={};for(const U of e.requestList)Y[U.requestName]=qe(U);t.watch(()=>E.value,async U=>{if(U)A.value=!1,q(e.id),P(),await t.nextTick(()=>{N(),window.addEventListener("resize",w),k(),A.value=!0}),R();else{for(const Z in Y)d(Z,{});W(),window.removeEventListener("resize",w),D()}});const te=t.computed(()=>t.unref(L)>=1),ne=t.computed(()=>e.fullModal),me=t.computed(()=>{let U="ecan-modal";return t.unref(te)&&(U+=" ecan-full-width-modal"),t.unref(ne)&&(U+=" ecan-full-modal"),U});return Oe(e,{showModal:O,hideModal:z}),{modalRef:_,containStyle:h,contentStyle:C,getContainer:c,modalStyle:u,modalWith:g,isFullModal:ne,style:p,visible:E,showModal:O,onOk:M,onCancel:F,isFullWidth:te,wrapClassName:me,ready:A,usedComponentList:Q,isMobile:a,readyIds:n,hasOwn:Jt,onComponentReady:U=>{n.value.push(U)},formatTitle:I,requestLoaded:H}}}),Zh="",Qh="";function gf(e,o,n,a,i,r){const s=t.resolveComponent("close-outlined"),l=t.resolveComponent("render"),d=t.resolveComponent("a-modal");return t.openBlock(),t.createBlock(d,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:t.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"contain",ref:"containRef",style:t.normalizeStyle(e.containStyle)},[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"content",style:t.normalizeStyle(e.contentStyle)},[t.createElementVNode("div",{class:"header-bar",style:t.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ant-modal-title",style:t.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},t.toDisplayString(e.formatTitle),5)):t.createCommentVNode("",!0),e.isShowCloseBtn?(t.openBlock(),t.createBlock(s,{key:1,class:"close-icon",style:t.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):t.createCommentVNode("",!0)],4),e.usedComponentList.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.isMobile?"mobile-wrap":"")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.usedComponentList,(c,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+u},[e.isMobile?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(t.openBlock(),t.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:1},c)),null,16))],64))),128))],2)):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):t.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const It=Te(Ce(hf,[["render",gf],["__scopeId","data-v-000999c2"]]));nt.use([Lt.CanvasRenderer,bt.PieChart,Ee.TitleComponent,Ee.ToolboxComponent,Ee.TooltipComponent,Ee.LegendComponent]);const mf=t.defineComponent({name:"EcanPie",props:{...xa},components:{Spin:qt,Echarts:wt,EcanModal:It},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(Ve,{pageMode:"normal",fontFamily:""}),i=t.ref(!1),r=De(e),s=t.ref([]),l=t.ref(),d=t.ref({}),c=t.computed(()=>{let{data:D=[]}=t.unref(s)[0]||{};if(Array.isArray(e.colors)){const E=e.isUseLabelColors,R=e.colors;D=D.map((I,v)=>({label:E?{color:R[v]}:{},...I}))}return{textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Xt(e.toolboxDownloadUrl)}},myDataZoom:{show:i.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var E;i.value=!0,(E=l.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(){ge.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:E=>{const{marker:R,seriesName:I,name:v,value:T,percent:O,data:z}=E||{};return _e(e.tooltipFormatter,{textData:{marker:R,name:v,value:T,percent:O,a:I,b:v,c:T,d:O,...z}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.unref(d),color:e.colors,series:[{data:D,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:i.value?Ze:e.labelFontSize,position:e.labelPosition,formatter:Yc(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),u=()=>{const D=i.value?Ze:parseFloat(e.legendFontSize);d.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:D+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:D}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:E=>{const{data:R}=s.value[0]||{};let I=0,v,T="0%";if(R)for(const O of R)O.name===E&&(v=+O.value),I+=+O.value;return I&&(T=`${(v/I*100).toFixed(2)}%`),sn(e.legendFormatter,{name:E,value:v,percent:T})}}},x=()=>{i.value=!1},{getGlobalModel:f,setGlobalModel:m}=t.inject(Re,{getGlobalModel:D=>{},setGlobalModel:(D,E)=>{}}),y=(D=[],E)=>{const{dataset:R}=Ht(D,E);s.value=R},g=(D=[],E)=>{const R=Ht(D,E);s.value=R.dataset};t.watch(()=>e.data,D=>{(e.dataType==="static"||t.unref(n)==="design")&&y(D)},{immediate:!0,deep:!0}),t.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{u()},{immediate:!0});const S=t.ref(!1),L=qe(e),b=async()=>{var D,E;if(e.dataType==="request")try{S.value=!0;const R=await L();y((E=(D=R==null?void 0:R.data)==null?void 0:D.data)==null?void 0:E.rows,e.valueTypeDataFieldNames)}catch(R){console.error(R)}finally{S.value=!1}},h=Le(e);m(e.id,{type:e.type,RECORD:""});const p=h("click",D=>{const E=f(e.id);m(e.id,{...E,type:e.type,RECORD:D==null?void 0:D.data})}),C=Je(e),A=async()=>{var D;try{S.value=!0;const E=await C(),{data:R}=(E==null?void 0:E.data)||{};if(R){const{columns:I=[],rows:v=[]}=((D=E==null?void 0:E.data)==null?void 0:D.data)??{};let T=[];if(I.length>0){const O=I[0],z=I[1];T=v.filter(M=>!!M).map(M=>({name:M[O],value:isNaN(M[z])?0:M[z]||0}))}g(T)}}catch(E){console.error(E)}finally{S.value=!1}},{loadedData:_}=t.inject(kt,{loadedData:{}}),B=t.ref(!1);t.watch(_,D=>{if(e.dataType==="indicator"){const E=ln(e.graphicConfig);E!=null&&E.length&&(!t.unref(B)&&dt(e.graphicConfig,D)?(B.value=!0,N()):dt(e.graphicConfig,D)||(B.value=!1))}},{deep:!0});const N=()=>{switch(e.dataType){case"indicator":dt(e.graphicConfig,t.unref(_))&&A();break;case"request":b();break}};Oe(e,{resetRecord:()=>{const D=e.id,E=f(D);m(D,{...E,RECORD:""})},refreshData:N,click:p}),o({refreshData:N});const{setRequest:k}=t.inject(Pe,{setRequest:D=>{}});return typeof k=="function"&&k({id:e.id,requestFn:N,sortNum:e.requestSort}),{option:c,style:r,click:p,onClose:x,loading:S,ecanModal:l}}}),Xh="";function yf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const wl=Te(Ce(mf,[["render",yf]])),Sa={...Ie,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null},Ca=Be(Sa),Al=["click","refreshData","resetRecord"];nt.use([Lt.CanvasRenderer,bt.LineChart,Ee.ToolboxComponent,Ee.TitleComponent,Ee.LegendComponent,Ee.MarkLineComponent]);const xf=t.defineComponent({name:"EcanLine",props:{...Ca},components:{Spin:qt,Echarts:wt,EcanModal:It},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(Ve,{pageMode:"normal",fontFamily:""}),i=t.ref(),r=t.ref(!1),s=De(e),l=t.ref([]),d=t.ref([]),c=t.ref(),u=t.computed(()=>r.value?Ze:12),x=t.ref({});let f;const m=t.ref([]),y=t.computed(()=>{const v=e.xAxisLabelFormatter,T=e.yAxisLabelFormatter;return{textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Xt(e.toolboxDownloadUrl)}},myDataZoom:{show:r.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var O;r.value=!0,(O=c.value)==null||O.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ge.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:u.value},show:e.tooltipShow,formatter:O=>{var V;const z=O.length;let M="",F=e.tooltipFormatter;f=(V=O[0])==null?void 0:V.data,F===""&&(F="{marker} {a} {c}");for(let q=0;q<z;q++){const{marker:W,seriesName:Q,name:P,value:H,data:Y}=O[q]||{};if(q===0){let te=P;typeof P=="string"&&P[0]==="0"&&!isNaN(+P)&&(te=(+P).toString()),M+=`${ft(v,te)}<br/>`}M+=_e(F,{textData:{marker:W,name:P,value:H,a:Q,b:P,c:H||0,...Y}},{useNewline:!0,useSpace:!0}),M+="<br/>"}return M},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(d).map(O=>{let z={};return O&&typeof O=="object"?z={...O}:z={value:O},z}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(O){return typeof O=="string"&&O[0]==="0"&&!isNaN(+O)&&(O=(+O).toString()),ft(v,O)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(O){return ft(T,O)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(r.value?Ze:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?Ze:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(m).map(O=>({name:O.name,icon:e.legendType})),formatter:O=>sn(e.legendFormatter,{name:O})},series:t.unref(l)}}),g=()=>{r.value=!1},{getGlobalModel:S,setGlobalModel:L}=t.inject(Re,{getGlobalModel:v=>{},setGlobalModel:(v,T)=>{}}),b=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),h=(v=[],T=!1)=>{let O;if(e.dataFieldConfigType==="key"){const V=T?e.keyTypeDataFieldNames:null;O=Dt(v,V)}else if(e.dataFieldConfigType==="value"){const V=T?e.valueTypeDataFieldNames:null;O=Ht(v,V)}d.value=O.dimensions,m.value=O.dataset;const z=O.dataset,M=[],F=z.length;for(let V=0;V<F;V++){const q={};e.shadowColor&&(q.shadowColor=e.shadowColor,q.shadowBlur=e.shadowBlur,q.shadowOffsetY=e.shadowOffsetY,q.shadowOffsetX=e.shadowOffsetX),M.push({type:"line",...z[V],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[V]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[V],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...q},...t.unref(b)})}l.value=M},p=(v=[],T,O=!1)=>{const M=Dt(v,O?T:null,!0);d.value=M.dimensions,m.value=M.dataset;const F=M.dataset,V=[],q=F.length;for(let W=0;W<q;W++){const Q={};e.shadowColor&&(Q.shadowColor=e.shadowColor,Q.shadowBlur=e.shadowBlur,Q.shadowOffsetY=e.shadowOffsetY,Q.shadowOffsetX=e.shadowOffsetX),V.push({type:"line",...F[W],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[W]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[W],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...Q},...t.unref(b)})}l.value=V};t.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([v])=>{(e.dataType==="static"||t.unref(n)==="design")&&h(v)},{immediate:!0,deep:!0});const C=t.ref(!1),A=qe(e),_=async()=>{var v,T;if(e.dataType==="request")try{C.value=!0;const O=await A();h((T=(v=O==null?void 0:O.data)==null?void 0:v.data)==null?void 0:T.rows,!0)}catch(O){console.error(O)}finally{C.value=!1}},B=Le(e);L(e.id,{type:e.type,RECORD:""});const N=B("click",v=>{const T=S(e.id);L(e.id,{...T,type:e.type,RECORD:e.tooltipShow?f:v.data})}),w=v=>{i.value.chart.containPixel("grid",[v.offsetX,v.offsetY])&&N()};e.tooltipShow?x.value["zr:click"]=w:x.value.click=N;const k=Je(e),D=async()=>{var v;try{C.value=!0;const T=await k(),{columns:O=[],rows:z=[]}=((v=T==null?void 0:T.data)==null?void 0:v.data)??{};let M;O.length>0&&(M={name:O[0],types:O.slice(1).map(F=>({label:F,value:F}))}),p(z,M,!0)}catch(T){console.error(T)}finally{C.value=!1}},E=()=>{switch(e.dataType){case"indicator":D();break;case"request":_();break}};Oe(e,{refreshData:E,resetRecord:()=>{const v=e.id,T=S(v);L(v,{...T,RECORD:""})},click:N});const{setRequest:I}=t.inject(Pe,{setRequest:v=>{}});return typeof I=="function"&&I({id:e.id,requestFn:E,sortNum:e.requestSort}),o({refreshData:E}),{option:y,style:s,click:N,loading:C,onClose:g,ecanModal:c,eventObj:x,echartRef:i}}}),t1="";function pf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,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 kl=Te(Ce(xf,[["render",pf]])),wa={...Ie,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null},Aa=Be(wa),Tl=["refreshData","click","resetRecord"];nt.use([Lt.CanvasRenderer,bt.BarChart,Ee.TitleComponent,Ee.LegendComponent,Ee.DatasetComponent,Ee.ToolboxComponent,Ee.MarkLineComponent]);const bf=t.defineComponent({name:"EcanBar",props:{...Aa},components:{Spin:qt,Echarts:wt,EcanModal:It,AModal:ge.Modal},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(Ve,{pageMode:"normal",fontFamily:""}),i=t.inject("usedComponentList",[]),r=t.ref(),s=t.ref(!1),l=t.ref(!1),d=t.ref(null),c=t.ref([]),u=De(e),x=t.ref([]),f=t.ref(),m=t.ref({});let y;const g=t.computed(()=>s.value?Ze:12),S=t.computed(()=>{const{gradientShow:Q,gradientColors:P,gradientOffset:H,barBorderRadius:Y}=e,te=t.unref(x),ne=te.length,me=[];for(let fe=0;fe<ne;fe++){const U={...te[fe],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(U.stack="stack"),U.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:Z=>{let X="",ie=e.labelFormatter;ie===""&&(ie="{c}");const{seriesName:oe,name:le,value:xe,data:Ae}=Z||{};return X+=_e(ie,{textData:{name:le,value:xe,a:oe,b:le,c:xe||0,...Ae}},{useNewline:!0,useSpace:!0}),X}},U.itemStyle={},Q&&(U.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[fe]},{offset:H,color:P[fe]},{offset:1,color:P[fe]}]}}),Y){const Z=Y.split(",");if(Z!=null&&Z.length){const X=[];for(const ie of Z){const oe=parseFloat(ie);isNaN(oe)||X.push(oe)}U.itemStyle.borderRadius=X}}e.isShowMarkLine&&(U.markLine={data:[{type:e.markLineType}]}),me.push(U)}return me}),L=t.ref([]),b=t.ref(!1),h=t.computed(()=>{const Q=e.yAxisLabelFormatter,P=e.xAxisLabelFormatter;return{textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:s.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){l.value=!0;const H=r.value.chart.getOption(),{xAxis:Y}=H||{};Y&&Y.length&&(c.value=Y[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Xt(e.toolboxDownloadUrl)}},myDataZoom:{show:s.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var H;s.value=!0,(H=f.value)==null||H.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ge.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:H=>{var me;const Y=H.length;let te="",ne=e.tooltipFormatter;y=(me=H[0])==null?void 0:me.data,ne===""&&(ne="{marker} {a} {c}");for(let fe=0;fe<Y;fe++){const{marker:U,seriesName:Z,name:X,value:ie,data:oe}=H[fe]||{};if(fe===0){let le=X;typeof X=="string"&&X[0]==="0"&&!isNaN(+X)&&(le=(+X).toString()),te+=`${ft(P,le)}<br/>`}te+=_e(ne,{textData:{marker:U,name:X,value:ie,a:Z,b:X,c:ie||0,...oe}},{useNewline:!0,useSpace:!0}),te+="<br/>"}return te},textStyle:{color:e.tooltipTextStyleColor,fontSize:g.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(s.value?Ze:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:s.value?Ze:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(x).map((H,Y)=>({name:H.name,itemStyle:{color:e.colors[Y]},icon:e.legendType})),formatter:H=>sn(e.legendFormatter,{name:H})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(_),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(H){return typeof H=="string"&&H[0]==="0"&&!isNaN(+H)&&(H=(+H).toString()),ft(P,H)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(L):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(H){return ft(Q,H)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},series:t.unref(S)}}),p=()=>{s.value=!1},C=(Q=[],P=!1)=>{let H={};if(e.dataFieldConfigType==="key"){const Y=P?e.keyTypeDataFieldNames:null;H=Dt(Q,Y)}else if(e.dataFieldConfigType==="value"){const Y=P?e.valueTypeDataFieldNames:null;H=Ht(Q,Y)}x.value=H.dataset,L.value=H.dimensions},A=(Q=[],P,H=!1)=>{const te=Dt(Q,H?P:null,!0);e.defaultRangeValue&&Nr({props:e,componentList:t.unref(i),getGlobalModel:z},te),x.value=te.dataset,L.value=te.dimensions},_=t.computed(()=>t.unref(L).map(Q=>{let P={};return Q&&typeof Q=="object"?P={...Q}:P={value:Q},P}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([Q])=>{(e.dataType==="static"||t.unref(n)==="design")&&C(Q)},{immediate:!0,deep:!0});const B=qe(e),N=async()=>{var Q,P;try{b.value=!0;const H=await B();C((P=(Q=H==null?void 0:H.data)==null?void 0:Q.data)==null?void 0:P.rows,!0)}catch(H){console.error(H)}finally{b.value=!1}},w=Je(e),k=async()=>{var Q;try{b.value=!0;const P=await w(),{columns:H=[],rows:Y=[]}=((Q=P==null?void 0:P.data)==null?void 0:Q.data)??{};let te;H.length>0&&(te={name:H[0],types:H.slice(1).map(ne=>({label:ne,value:ne}))}),A(Y,te,!0)}catch(P){console.error(P)}finally{b.value=!1}},{loadedData:D}=t.inject(kt,{loadedData:{}}),E=t.ref(!1);t.watch(D,Q=>{if(e.dataType==="indicator"){const P=ln(e.graphicConfig);P!=null&&P.length&&(!t.unref(E)&&dt(e.graphicConfig,Q)?(E.value=!0,R()):dt(e.graphicConfig,Q)||(E.value=!1))}},{deep:!0});const R=()=>{switch(e.dataType){case"indicator":dt(e.graphicConfig,t.unref(D))&&k();break;case"request":N();break}},I=(Q,P)=>!!t.unref(c)[P.value].value.includes(Q),v=async()=>{l.value=!1;const Q=r.value.chart.getOption();for(let P=0;P<7;P++)await T(Q,P)},T=(Q,P)=>new Promise(H=>{setTimeout(()=>{const{series:Y,color:te,xAxis:ne}=Q,me=r.value.chart,{splitArea:fe={}}=ne[0]||{};Y.forEach((U,Z)=>{const X=U.data;let ie="";P%2?ie=te[Z]+"a8":ie=te[Z],X[d.value].itemStyle={color:ie}}),P%2?(fe.show=!0,fe.areaStyle.color=t.unref(c).map((U,Z)=>Z===d.value?"#ff003b26":"")):fe.show=!1,me.setOption({series:Y,xAxis:ne}),H()},200)});o({refreshData:R});const O=Le(e),{getGlobalModel:z,setGlobalModel:M}=t.inject(Re,{getGlobalModel:Q=>{},setGlobalModel:(Q,P)=>{}});M(e.id,{type:e.type,RECORD:""});const F=O("click",Q=>{const P=z(e.id);M(e.id,{...P,type:e.type,RECORD:e.tooltipShow?y:Q.data})}),{setRequest:V}=t.inject(Pe,{setRequest:Q=>{}});typeof V=="function"&&V({id:e.id,requestFn:R,sortNum:e.requestSort});const q=()=>{const Q=e.id,P=z(Q);M(Q,{...P,RECORD:""})},W=Q=>{r.value.chart.containPixel("grid",[Q.offsetX,Q.offsetY])&&F()};return e.tooltipShow?m.value["zr:click"]=W:m.value.click=F,Oe(e,{refreshData:R,click:F,resetRecord:q}),{option:h,style:u,refreshData:R,click:F,loading:b,onClose:p,ecanModal:f,echartRef:r,handleLocationOk:v,onFilterOption:I,locationVisible:l,locationValue:d,locationNames:c,eventObj:m}}}),o1="",a1="",vf=e=>(t.pushScopeId("data-v-d8caf47f"),e=e(),t.popScopeId(),e),Sf={class:"location-wrap"},Cf=vf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function wf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),u=t.resolveComponent("a-select"),x=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{class:"ecan-bar",style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",Sf,[Cf,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,m)=>(t.openBlock(),t.createBlock(c,{key:m,value:m},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bl=Te(Ce(bf,[["render",wf],["__scopeId","data-v-d8caf47f"]])),ka={...Ie,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:""},Ta=Be(ka),El=["click","refreshData","resetRecord"];nt.use([Lt.CanvasRenderer,bt.ScatterChart,Ee.ToolboxComponent,Ee.TitleComponent,Ee.TooltipComponent,Ee.LegendComponent,Ee.MarkLineComponent]);const Af=t.defineComponent({name:"EcanScatter",props:{...Ta},components:{Spin:qt,Echarts:wt,EcanModal:It},setup(e){const{pageMode:o,fontFamily:n}=t.inject(Ve,{pageMode:"normal",fontFamily:""}),a=t.ref(!1),i=De(e),r=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?Ze:12),d=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),c=t.computed(()=>{const A=e.xAxisLabelFormatter,_=e.yAxisLabelFormatter;return{textStyle:{fontFamily:t.unref(n)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Xt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var B;a.value=!0,(B=s.value)==null||B.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(){ge.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(B){return typeof B=="string"&&B[0]==="0"&&!isNaN(+B)&&(B=(+B).toString()),ft(A,B)}},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(B){return ft(_,B)}},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(B){var R;const{marker:N,seriesName:w}=B,k=((R=B==null?void 0:B.data)==null?void 0:R.record)??{},{name:D,value:E}=k;return _e(e.tooltipFormatter,{textData:{marker:N,seriesName:w,a:w,b:D,c:E,...k}})},axisPointer:{type:"cross"},textStyle:{fontSize:l.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:l.value}},series:[{data:t.unref(r),type:"scatter",symbolSize:e.symbolSize,...t.unref(d)}]}}),{getGlobalModel:u,setGlobalModel:x}=t.inject(Re,{getGlobalModel:A=>{},setGlobalModel:(A,_)=>{}}),f=(A=[],_)=>{const{name:B="name",value:N="value"}=_||{};r.value=A.map(w=>({value:[w[B],w[N]],record:w}))};t.watch(()=>e.data,A=>{(e.dataType==="static"||t.unref(o)==="design")&&f(A)},{immediate:!0,deep:!0});const m=t.ref(!1),y=qe(e),g=async()=>{var A,_;if(e.dataType==="request"){m.value=!0;try{const B=await y();f((_=(A=B==null?void 0:B.data)==null?void 0:A.data)==null?void 0:_.rows,e.dataFieldNames)}catch(B){console.error(B)}finally{m.value=!1}}},S=()=>{a.value=!1},L=Le(e);x(e.id,{type:e.type,RECORD:""});const b=L("click",A=>{const _=e.id,B=u(_);x(_,{...B,type:e.type,RECORD:A==null?void 0:A.data})});Oe(e,{refreshData:()=>{g()},click:b,resetRecord:()=>{const A=e.id,_=u(A);x(A,{..._,RECORD:""})}});const{setRequest:C}=t.inject(Pe,{setRequest:A=>{}});return typeof C=="function"&&C({id:e.id,requestFn:g,sortNum:e.requestSort}),{option:c,style:i,click:b,loading:m,onClose:S,ecanModal:s}}}),r1="";function kf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Dl=Te(Ce(Af,[["render",kf]])),Ba={...Ie,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},Ea=Be(Ba),Tf=t.defineComponent({name:"EcanCustomGraph",props:{...Ea},components:{Echarts:wt},setup(e){const o=De(e),n=t.ref();return t.watch(()=>e.optionCode,a=>{try{const i=eval;n.value=i(a)}catch(i){console.error(i)}},{immediate:!0}),{style:o,myOption:n,echarts:fs}}});function Bf(e,o,n,a,i,r){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const Il=Te(Ce(Tf,[["render",Bf]])),Da={...Ie,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null},Ia=Be(Da),Rl=["refreshData","click","resetRecord"];nt.use([Lt.CanvasRenderer,bt.BarChart,bt.LineChart,Ee.TitleComponent,Ee.LegendComponent,Ee.DatasetComponent,Ee.ToolboxComponent,Ee.MarkLineComponent]);const Ef=t.defineComponent({name:"EcanComboGraph",props:{...Ia},components:{Spin:qt,Echarts:wt,EcanModal:It,AModal:ge.Modal},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(Ve,{pageMode:"normal",fontFamily:""}),i=t.inject("usedComponentList",[]),{getGlobalModel:r,setGlobalModel:s}=t.inject(Re,{getGlobalModel:P=>{},setGlobalModel:(P,H)=>{}}),l=t.ref(),d=t.ref(!1),c=t.ref(!1),u=t.ref(null),x=t.ref([]),f=t.ref({});let m;const y=De(e),g=t.ref([]),S=t.ref([]),L=t.ref(),b=t.ref([]),h=t.computed(()=>d.value?Ze:12),p=t.computed(()=>({textStyle:{fontFamily:t.unref(a)},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:d.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){c.value=!0;const P=l.value.chart.getOption(),{xAxis:H}=P||{};H&&H.length&&(x.value=H[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Xt(e.toolboxDownloadUrl)}},myDataZoom:{show:d.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var P;d.value=!0,(P=L.value)==null||P.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ge.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(d.value?Ze:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:d.value?Ze:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(b).map((P,H)=>({name:P.name,itemStyle:{color:e.colors[H]},icon:e.legendType})),formatter:P=>sn(e.legendFormatter,{name:P})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:P=>{var me;const H=P.length;let Y="",te=e.tooltipFormatter;m=(me=P[0])==null?void 0:me.data,te===""&&(te="{marker} {a} {c}");const ne=e.seriesTypes;for(let fe=0;fe<H;fe++){const U=ne[fe],{tooltipFormatter:Z}=U||{},{marker:X,seriesName:ie,name:oe,value:le,data:xe}=P[fe]||{};if(fe===0){let Ae=oe;typeof oe=="string"&&oe[0]==="0"&&!isNaN(+oe)&&(Ae=(+oe).toString()),Y+=`${ft(e.xAxisLabelFormatter,Ae)}<br/>`}Y+=_e(Z||te,{textData:{marker:X,name:oe,value:le,seriesName:ie,a:ie,b:oe,c:le||0,...xe}},{useNewline:!0,useSpace:!0}),Y+="<br/>"}return Y},textStyle:{color:e.tooltipTextStyleColor,fontSize:h.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(S).map(P=>{let H={};return P&&typeof P=="object"?H={...P}:H={value:P},H}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(P){return typeof P=="string"&&P[0]==="0"&&!isNaN(+P)&&(P=(+P).toString()),ft(e.xAxisLabelFormatter,P)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:t.unref(N),series:t.unref(g)})),C=()=>{d.value=!1},A=(P=[],H=!1)=>{let Y;if(e.dataFieldConfigType==="key"){const ne=H?e.keyTypeDataFieldNames:null;Y=Dt(P,ne)}else if(e.dataFieldConfigType==="value"){const ne=H?e.valueTypeDataFieldNames:null;Y=Ht(P,ne)}S.value=Y.dimensions;const te=Y.dataset;b.value=Y.dataset,g.value=B(te)},_=(P=[],H,Y=!1)=>{const ne=Dt(P,Y?H:null,!0);e.defaultRangeValue&&Nr({props:e,componentList:t.unref(i),getGlobalModel:r},ne),S.value=ne.dimensions;const me=ne.dataset;b.value=ne.dataset,g.value=B(me)};function B(P){const H=[],Y=P.length,te=e.seriesTypes;for(let ne=0;ne<Y;ne++){const me=te[ne],{type:fe,axisIndex:U}=me||{};let Z={type:fe,yAxisIndex:U,...P[ne]};if(fe==="line"){const X={};e.shadowColor&&(X.shadowColor=e.shadowColor,X.shadowBlur=e.shadowBlur,X.shadowOffsetY=e.shadowOffsetY,X.shadowOffsetX=e.shadowOffsetX),Z={...Z,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[ne]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[ne]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[ne],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...X}}}if(fe==="bar"){const{gradientShow:X,gradientColors:ie,gradientOffset:oe}=e,le={};if(e.barBorderRadius){const xe=e.barBorderRadius.split(",");if(xe!=null&&xe.length){const Ae=[];for(const ce of xe){const de=parseFloat(ce);isNaN(de)||Ae.push(de)}le.borderRadius=Ae}}X&&(le.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[ne]},{offset:oe,color:ie[ne]},{offset:1,color:ie[ne]}]}),Z={...Z,barWidth:e.barWidth,itemStyle:le}}e.isShowMarkLine&&(Z.markLine={data:[{type:e.markLineType}]}),H.push(Z)}return H}t.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([P])=>{(e.dataType==="static"||t.unref(n)==="design")&&A(P)},{immediate:!0,deep:!0});const N=t.computed(()=>{const P=e.yAxis;return P==null?void 0:P.map((H,Y)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:Y===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:Y===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(te){return ft(H.axisLabelFormatter,te)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:Y===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:Y===0?"right":"left"},max:e.yAxisMaxValue||null}))}),w=t.ref(!1),k=qe(e),D=async()=>{var P,H;if(e.dataType==="request")try{w.value=!0;const Y=await k();A((H=(P=Y==null?void 0:Y.data)==null?void 0:P.data)==null?void 0:H.rows,!0)}catch(Y){console.error(Y)}finally{w.value=!1}},E=Je(e),R=async()=>{var P;try{w.value=!0;const H=await E(),{columns:Y=[],rows:te=[]}=((P=H==null?void 0:H.data)==null?void 0:P.data)??{};let ne;Y.length>0&&(ne={name:Y[0],types:Y.slice(1).map(me=>({label:me,value:me}))}),_(te,ne,!0)}catch(H){console.error(H)}finally{w.value=!1}},{loadedData:I}=t.inject(kt,{loadedData:{}}),v=t.ref(!1);t.watch(I,P=>{if(e.dataType==="indicator"){const H=ln(e.graphicConfig);H!=null&&H.length&&(!t.unref(v)&&dt(e.graphicConfig,P)?(v.value=!0,T()):dt(e.graphicConfig,P)||(v.value=!1))}},{deep:!0});const T=()=>{switch(e.dataType){case"indicator":dt(e.graphicConfig,t.unref(I))&&R();break;case"request":D();break}},O=(P,H)=>!!t.unref(x)[H.value].value.includes(P),z=async()=>{c.value=!1;const P=l.value.chart.getOption();for(let H=0;H<7;H++)await M(P,H)},M=(P,H)=>new Promise(Y=>{setTimeout(()=>{const{series:te,color:ne,xAxis:me}=P,fe=l.value.chart,{splitArea:U={}}=me[0]||{};te.forEach((Z,X)=>{const ie=Z.data;let oe="";H%2?oe=ne[X]+"a8":oe=ne[X],ie[u.value].itemStyle={color:oe}}),H%2?(U.show=!0,U.areaStyle.color=t.unref(x).map((Z,X)=>X===u.value?"#ff003b26":"")):U.show=!1,fe.setOption({series:te,xAxis:me}),Y()},200)});o({refreshData:T});const F=Le(e);s(e.id,{type:e.type,RECORD:""});const V=F("click",P=>{const H=r(e.id);s(e.id,{...H,type:e.type,RECORD:e.tooltipShow?m:P==null?void 0:P.data})}),q=P=>{l.value.chart.containPixel("grid",[P.offsetX,P.offsetY])&&V()};e.tooltipShow?f.value["zr:click"]=q:f.value.click=V;const{setRequest:W}=t.inject(Pe,{setRequest:P=>{}});return typeof W=="function"&&W({id:e.id,requestFn:T,sortNum:e.requestSort}),Oe(e,{resetRecord:()=>{const P=e.id,H=r(P);s(P,{...H,RECORD:""})},refreshData:T,click:V}),{style:y,option:p,click:V,loading:w,onClose:C,ecanModal:L,echartRef:l,handleLocationOk:z,onFilterOption:O,locationVisible:c,locationValue:u,locationNames:x,eventObj:f}}}),c1="",d1="",Df=e=>(t.pushScopeId("data-v-b2e232e1"),e=e(),t.popScopeId(),e),If={class:"location-wrap"},Rf=Df(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Lf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),u=t.resolveComponent("a-select"),x=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",If,[Rf,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,m)=>(t.openBlock(),t.createBlock(c,{key:m,value:m},{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 Ll=Te(Ce(Ef,[["render",Lf],["__scopeId","data-v-b2e232e1"]])),Ra={...Ie,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},La=Be(Ra),_l=["refreshData","click","resetRecord"];nt.use([Lt.CanvasRenderer,bt.RadarChart,Ee.ToolboxComponent,Ee.TitleComponent,Ee.LegendComponent]);const _f=t.defineComponent({name:"EcanRadar",props:{...La},components:{Spin:qt,Echarts:wt,EcanModal:It},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(Ve,{pageMode:"normal",fontFamily:""}),i=t.ref(),r=t.ref(!1),s=De(e),l=t.ref([]),d=t.ref(),c=t.computed(()=>r.value?Ze:12),u=t.ref([]),x=t.ref(e.valueTypeDataFieldNames.name),f=t.computed(()=>{const R=t.unref(u),I=R.length,v=[];for(let T=0;T<I;T++){const{name:O,data:z=[]}=R[T],M=[{name:O,value:z.map(q=>q.value)}];let F=e.colors[T];if(e.gradientShow){const{gradientOffset:q,gradientColors:W}=e;F={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[T]},{offset:q,color:W[T]},{offset:1,color:W[T]}]}}const V={type:"radar",name:O,data:M,areaStyle:{color:F,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:q=>{const{data:W,value:Q}=q;let P=0,H="0%";if(W)for(const Y of W.value)P+=+Y;return P&&(H=`${(Q/P*100).toFixed(2)}%`),_e(e.labelFormatter,{textData:{value:Q,percent:H}},{useNewline:!1,useSpace:!1})}}};v.push(V)}return v}),m=t.computed(()=>{var O;const R=[],I=[],v=t.unref(u),T=v.length;for(let z=0;z<T;z++){const{data:M=[]}=v[z];for(let F=0;F<M.length;F++)I.push(M[F].value)}if((O=l.value)!=null&&O.length){const z=I!=null&&I.length?Math.max(...I)*1.2:0;for(const M of l.value)R.push({name:M,max:z})}return R}),y=t.computed(()=>({textStyle:{fontFamily:t.unref(a)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Xt(e.toolboxDownloadUrl)}},myDataZoom:{show:r.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var R;r.value=!0,(R=d.value)==null||R.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ge.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:c.value},show:e.tooltipShow,formatter:R=>{let I="",v=e.tooltipFormatter;v===""&&(v="{marker} {a} {c}");for(let T=0;T<t.unref(m).length;T++){const O=t.unref(m)[T],{marker:z,seriesName:M,value:F}=R||{};T===0&&M&&(I+=`${M}<br/>`),I+=_e(v,{textData:{marker:z,name:O.name,value:F[T],a:O.name,b:O.name,c:F[T]||0,type:M}},{useNewline:!0,useSpace:!0}),I+="<br/>"}return I},position:e.tooltipPosition||void 0},radar:{indicator:t.unref(m),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(r.value?Ze:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?Ze:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(u).map(R=>({name:R.name,icon:e.legendType})),formatter:R=>sn(e.legendFormatter,{name:R})},series:t.unref(f)})),g=()=>{r.value=!1},{getGlobalModel:S,setGlobalModel:L}=t.inject(Re,{getGlobalModel:R=>{},setGlobalModel:(R,I)=>{}}),b=(R=[],I=!1)=>{let v;if(e.dataFieldConfigType==="key"){const T=I?e.keyTypeDataFieldNames:null;v=Dt(R,T)}else if(e.dataFieldConfigType==="value"){const T=I?e.valueTypeDataFieldNames:null;v=Ht(R,T)}l.value=v.dimensions,u.value=v.dataset},h=(R=[],I,v=!1)=>{const O=Dt(R,v?I:null,!0);l.value=O.dimensions,u.value=O.dataset};t.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([R])=>{(e.dataType==="static"||t.unref(n)==="design")&&b(R)},{immediate:!0,deep:!0});const p=t.ref(!1),C=qe(e),A=async()=>{var R,I;if(e.dataType==="request")try{p.value=!0;const v=await C();b((I=(R=v==null?void 0:v.data)==null?void 0:R.data)==null?void 0:I.rows,!0)}catch(v){console.error(v)}finally{p.value=!1}},_=Le(e);L(e.id,{type:e.type,RECORD:""});const B=R=>{const I=R.event.topTarget.__dimIdx;I!==void 0&&_("click",()=>{var z;const{value:v,name:T}=R.data||{},O=S(e.id);L(e.id,{...O,type:e.type,RECORD:{[t.unref(x)]:((z=t.unref(m)[I])==null?void 0:z.name)||"",[T]:v[I],seriesName:T}})})()},N=Je(e),w=async()=>{var R;try{p.value=!0;const I=await N(),{columns:v=[],rows:T=[]}=((R=I==null?void 0:I.data)==null?void 0:R.data)??{};let O;v.length>0&&(x.value=v[0],O={name:v[0],types:v.slice(1).map(z=>({label:z,value:z}))}),h(T,O,!0)}catch(I){console.error(I)}finally{p.value=!1}},k=()=>{switch(e.dataType){case"indicator":w();break;case"request":A();break}};Oe(e,{refreshData:k,resetRecord:()=>{const R=e.id,I=S(R);L(R,{...I,RECORD:""})},click:B});const{setRequest:E}=t.inject(Pe,{setRequest:R=>{}});return typeof E=="function"&&E({id:e.id,requestFn:k,sortNum:e.requestSort}),o({refreshData:k}),{option:y,style:s,click:B,loading:p,onClose:g,ecanModal:d,echartRef:i}}}),u1="";function Nf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Nl=Te(Ce(_f,[["render",Nf]])),Of="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Ff="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==",Mf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",zf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",_a={...Ie,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"},Na=Be(_a),Ol=["click"],Pf=t.defineComponent({name:"EcanBorder",props:{...Na},setup(e){const o=De(e,["background"]),n=t.computed(()=>{const{isTransparent:y,gradientShow:g,gradientColor:S,gradientOffset:L,gradientAngle:b,backgroundColor:h}=e;if(g){let p=S;return y&&(p="transparent"),p?{background:`linear-gradient(${b}, ${h}, ${p} ${L*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:y}=e;let g={};return y!=null&&y.length&&y.find(L=>L.emit==="showModal")&&(g={cursor:"pointer"}),g}),{theme:i}=t.inject(Ve,{theme:"light"}),r=t.computed(()=>{let y="";switch(e.titleMode){case"type-2":y="2";break}return y}),s=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":Of,"../../assets/border-title-decoration-left2.png":Ff})[`../../assets/border-title-decoration-left${r.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":Mf,"../../assets/border-title-decoration-right2.png":zf})[`../../assets/border-title-decoration-right${r.value}.png`],self.location).href),d=t.computed(()=>({width:"100%",height:"100%"})),c=t.computed(()=>{const{borderRadius:y}=e,g=[],S={};if(y){const L=y.split(",");for(const b of L)(+b||+b==0)&&g.push(+b+"px")}return g!=null&&g.length&&(S.borderRadius=g.join(" ")),S}),x=Le(e)("click",()=>{}),f=t.ref([]);t.watch(()=>e.data,y=>{f.value=y},{immediate:!0,deep:!0}),Oe(e,{click:x});const{setGlobalModel:m}=t.inject(Re,{setGlobalModel:(y,g)=>{}});return m(e.id,{type:e.type,value:f}),{style:o,gradientStyle:n,click:x,borderStyle:d,theme:i,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),g1="",Rt=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),qf=["id"],Vf=Rt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Hf=Rt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),jf=Rt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Wf=Rt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Gf={class:"title-item"},Uf=["src"],$f={class:"title"},Yf=["src"],Kf=Rt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Zf=Rt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Qf=Rt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Jf=Rt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Xf={key:2,class:"left-title"},eu={class:"title"};function tu(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"no-title",style:t.normalizeStyle(e.borderStyle)},[e.useBorderModify?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Vf,Hf,jf,Wf],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",Gf,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Uf),t.createElementVNode("div",$f,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Yf)])],2),Kf,Zf,Qf,Jf],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Xf,[t.createElementVNode("div",eu,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,qf)}const Fl=Te(Ce(Pf,[["render",tu],["__scopeId","data-v-8dd53b8f"]])),Oa={...Ie,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:10,componentList:[],hideTabs:!1,gridTopPx:"0",gridBottomPx:"0",gridLeftPx:"0",gridRightPx:"0"},Fa=Be(Oa),Ml=["tabChange"],nu=t.defineComponent({name:"EcanTabs",props:{...Fa},components:{ASelect:ge.Select,ASelectOption:ge.SelectOption,MarqueeScroll:Hn},setup(e){const o=De(e),n=t.ref(0);t.watch(()=>e.activeKey,y=>{n.value=y},{immediate:!0});const{pageMode:a}=t.inject(Ve,{pageMode:"normal"});let i=null;const r=()=>{const y=Array.isArray(t.unref(s))?t.unref(s).length-1:0;!e.isAutoScroll&&e.autoSwitch&&y>0&&(i=setInterval(()=>{const g=t.unref(n)+1;g<=y?n.value=g:n.value=0,l.value=t.unref(s)[t.unref(n)],x()},e.autoSwitchInterval*1e3))};t.onMounted(()=>{t.unref(a)!=="design"&&r()}),t.onBeforeUnmount(()=>{clearInterval(i)});const s=t.ref([]),l=t.ref({});t.watch(()=>e.data,y=>{s.value=y,l.value=Array.isArray(y)&&y.length>0?y[0]:{}},{immediate:!0,deep:!0});const d=y=>n.value===y,c=Le(e),{setGlobalModel:u}=t.inject(Re,{setGlobalModel:(y,g)=>{}});u(e.id,{value:l,activeKey:n});const{emitRefreshPage:x}=t.inject(an,{emitRefreshPage:()=>{}}),f=y=>{let{tab:g,index:S}=y||{};if(y.label){const L=t.unref(s).findIndex(b=>b.title===y.label);L!==-1&&(S=L,g=t.unref(s)[L])}c("tabChange",()=>{!isNaN(+S)&&S!==t.unref(n)&&(l.value=g,n.value=S,x())})()},m=t.computed(()=>{const y=e.componentList.map(g=>parseFloat(g.left)+parseFloat(g.width)).sort((g,S)=>S-g)[0];return{width:y?y+"px":"100%"}});return Oe(e,{tabChange:f}),{style:o,activeKey:n,isActive:d,tabChange:f,myData:s,useImagePath:mt,pageMode:a,scrollWrapStyle:m}}}),y1="",ou=["id"],au=["onClick"];function iu(e,o,n,a,i,r){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select"),d=t.resolveComponent("marquee-scroll");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tabs",style:t.normalizeStyle(e.style),id:"container_"+e.id},[e.pageMode==="design"||!e.isAutoScroll?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection,margin:`${e.gridTopPx||0} ${e.gridRightPx||0} ${e.gridBottomPx||0} ${e.gridLeftPx||0}`})},[e.tabType==="tabs"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.myData,(c,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(x=>e.tabChange({tab:c,index:u}),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(u)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,au))),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:x=>e.tabChange({tab:c,index:u})},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):t.createCommentVNode("",!0)],4)),[[t.vShow,e.pageMode==="design"||!e.hideTabs]]):t.createCommentVNode("",!0),e.pageMode!=="design"&&e.isAutoScroll?(t.openBlock(),t.createBlock(d,{key:1,visible:e.isAutoScroll,step:e.scrollSpeed,vertical:!1,style:t.normalizeStyle({height:e.height})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"scroll-wrap",style:t.normalizeStyle(e.scrollWrapStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,c=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):t.createCommentVNode("",!0)],12,ou)}const zl=Te(Ce(nu,[["render",iu],["__scopeId","data-v-e657f8ce"]])),Ma={...Ie,name:"循环列表",type:"ecanCirculate",keyName:"循环列表",width:"300px",height:"300px",zIndex:0,borderColor:"#eee",borderStyle:"solid",borderWidth:"2px",graphicConfig:{},isAutoScroll:!1,scrollSpeed:10,componentList:[],data:[],dataType:"indicator",keyFieldMap:[],unitInterval:15,backgroundColor:"#ffffff",colNum:null,scrollDirection:"horizontal"},za=Be(Ma),Pl=["click","refreshData","resetRecord"];let ql=(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 ru=t.defineComponent({name:"EcanCirculate",props:{...za,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll:Hn,Skeleton:Vt},setup(e,{expose:o}){const n=t.ref(!1),a=De(e,["background"]),i=t.inject("usedComponentList",[]),r=t.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=t.inject(Re,{getGlobalModel:_=>{},setGlobalModel:(_,B)=>{}}),d=t.ref([]),c=t.ref({}),{pageMode:u}=t.inject(Ve,{pageMode:"normal"}),x=t.computed(()=>{if(t.unref(r)){const _=document.body.clientWidth,B=e.sourceWidth||parseFloat(e.width);return _/B||1}else return 1});function f(_,B){const N=B.find(w=>w.id===e.id);if(N)for(const w of _)w.left=parseFloat(w.left)-parseFloat(N.sourceLeft||N.left)+"px",w.top=parseFloat(w.top)-parseFloat(N.sourceTop||N.top)+"px"}const m=_=>{const B=_.sort((D,E)=>parseFloat(D.top)-parseFloat(E.top))[0],N=_.sort((D,E)=>parseFloat(D.left)-parseFloat(E.left))[0],w=_.map(D=>parseFloat(D.left)+parseFloat(D.width)).sort((D,E)=>E-D)[0],k=_.map(D=>parseFloat(D.top)+parseFloat(D.height)).sort((D,E)=>E-D)[0];if(N&&w&&B&&k){const D=parseFloat(N.left),E=parseFloat(B.top);return{width:w-D,height:k-E,left:D}}else return{width:0,height:0,left:0}},y=t.ref({}),g=_=>{var O,z;const B=[],{graphicConfig:N,id:w,componentList:k,keyFieldMap:D,unitInterval:E,colNum:R}=e;let I=Ne.cloneDeep(k),v=[];if((O=t.unref(i))!=null&&O.length)for(const M of t.unref(i))v.push(M),(z=M==null?void 0:M.componentList)!=null&&z.length&&v.push(...M.componentList);if(N.pageMode==="design"&&N.preview){const{containerMap:M}=N.pageConfig||{};v=N.componentList||[],v.push(e),I=va(M,Ne.cloneDeep(v),w)}f(I,v);const T=m(I);if(_!=null&&_.length){const{width:M,left:F,height:V}=T;let q=0,W=0;_.forEach((Q,P)=>{Q.index=P+1;const H=ql(),Y=Ne.cloneDeep(I);for(const te of Y){const ne=D.find(fe=>fe.keyName===te.keyName),me=ql();if(te.left=(parseFloat(te.left)+q)*t.unref(x)+"px",te.top=(parseFloat(te.top)+W)*t.unref(x)+"px",te.scale=t.unref(x),te.id=me,te.keyName=te.name+"_"+me,te.unitId=H,ne!=null&&ne.fieldName){const fe=te.text.match(/\{(.+?)\}/g);switch(te.type){case"ecanText":{te.data={value:String(Q[ne.fieldName])},fe!=null&&fe.length||(te.text="{value}");break}case"ecanProportion":{te.data={percent:String(Q[ne.fieldName])},fe!=null&&fe.length||(te.text="{percent}");break}}}}R&&Q.index%R===0?(q=0,W+=E+V):q+=E+M,B.push(...Y),y.value[H]=Q}),c.value={width:((R||_.length)*(M+E)+F)*t.unref(x)+"px"}}d.value=B},S=Je(e),L=async()=>{var _;try{n.value=!0;const B=await S(),{rows:N=[]}=((_=B==null?void 0:B.data)==null?void 0:_.data)??{};g(N)}catch(B){console.error(B)}finally{n.value=!1}},b=()=>{switch(e.dataType){case"indicator":L();break}};Oe(e,{refreshData:b,resetRecord:()=>{const _=e.id,B=s(_);l(_,{...B,RECORD:""})}}),o({refreshData:b}),l(e.id,{type:e.type,RECORD:""});const{setRequest:p}=t.inject(Pe,{setRequest:_=>{}});typeof p=="function"&&p({id:e.id,requestFn:b,sortNum:e.requestSort});const C=Le(e);return{loading:n,style:a,myComponentList:d,scrollWrapStyle:c,pageMode:u,click:_=>{let B=_.target;if(B){let N=B.getAttribute("unitId");for(;!N&&!B.className.includes("ecan-");)B=B.parentElement,N=B.getAttribute("unitId");N&&C("click",()=>{const w=s(e.id);l(e.id,{...w,type:e.type,RECORD:t.unref(y)[N]})})()}}}}}),p1="",lu=["id"];function su(e,o,n,a,i,r){const s=t.resolveComponent("marquee-scroll"),l=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-circulate",style:t.normalizeStyle(e.style),id:"container_"+e.id,onClick:o[0]||(o[0]=(...d)=>e.click&&e.click(...d))},[t.createVNode(l,{loading:e.loading},{default:t.withCtx(()=>{var d;return[(d=e.myComponentList)!=null&&d.length?(t.openBlock(),t.createBlock(s,{key:0,visible:e.pageMode!=="design"&&e.isAutoScroll,step:e.scrollSpeed,vertical:e.scrollDirection==="vertical",style:t.normalizeStyle({height:e.height}),wrapStyle:{overflow:"auto"}},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"scroll-wrap",style:t.normalizeStyle(e.scrollWrapStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myComponentList,c=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","vertical","style"])):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,lu)}const Vl=Te(Ce(ru,[["render",su],["__scopeId","data-v-7d2188ee"]])),Pa={...Ie,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:""},qa=Be(Pa),Hl=["click"],Va=t.defineComponent({name:"EcanImage",props:{...qa},setup(e){const o=De(e),n=t.computed(()=>mt(e.imgUrl)),{pageMode:a}=t.inject(Ve,{pageMode:"normal"}),{getGlobalModel:i,setGlobalModel:r}=t.inject(Re,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Le(e)("click",()=>{const d=i(e.id);if(r(e.id,{...d,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{r(e.id,{...d,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",u=Fo(t.unref(a),c),x=e.href;let f=x||u;f=_e(f);const m=e.target;m&&(m!=="event"?window.open(f,"_"+m):window.parent.postMessage({type:"openPage",url:x},"*"))});return Oe(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),jl=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},Wl=Va.setup;Va.setup=Wl?(e,o)=>(jl(),Wl(e,o)):jl;const v1="",cu=["src"];function du(e,o,n,a,i,r){return e.myImgUrl!==""?(t.openBlock(),t.createElementBlock("img",{key:0,class:"ecan-image",style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,cu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const Gl=Te(Ce(Va,[["render",du],["__scopeId","data-v-47ea6e7c"]])),Ha={...Ie,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},ja=Be(Ha),fu=t.defineComponent({name:"EcanIframe",props:{...ja},setup(e){const o=De(e),{contextRequestUrl:n}=t.inject(Ve,{contextRequestUrl:""}),a=t.computed(()=>{let i=_e(e.link);if(e.linkType==="erd"&&i!=null){let r=t.unref(n);r[r.length-1]==="/"?r+="erdReport":r+="/erdReport",i=`${H0||r}?_t=0&uid=${i}`}return i});return{style:o,myLink:a}}}),C1="",uu=["src"];function hu(e,o,n,a,i,r){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,uu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Ul=Te(Ce(fu,[["render",hu],["__scopeId","data-v-19bc100c"]])),Wa={...Ie,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},Ga=Be(Wa),$l=["click","refreshData","resetRecord","exportTableData"],gu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC",mu="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==",yu="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==",Ua=t.defineComponent({name:"EcanTable",components:{Skeleton:Vt,AButton:ge.Button,AInput:ge.Input,ACheckboxGroup:ge.CheckboxGroup,ATable:ge.Table,ATableSummary:ge.TableSummary,ATableSummaryRow:ge.TableSummaryRow,ATableSummaryCell:ge.TableSummaryCell},props:{...Ga},setup(e,{expose:o}){const n=t.ref(!1),a=t.computed(()=>{const j=Ne.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}),i=t.ref(),r=t.ref(!1),s=De(e),l=t.ref([]),d=t.computed(()=>e.scrollX),c=t.ref(0),u=()=>{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 $=parseFloat(e.height);const J=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),ae=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),se=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let re=0;if(ae&&($-=(ae==null?void 0:ae.clientHeight)||0),se&&e.isSummaryFixed&&(re=(se==null?void 0:se.clientHeight)||0,$-=re),e.paginationShow){let ee=0;ee=u(),ee&&($-=ee)}(J==null?void 0:J.clientHeight)>$?c.value=$:c.value=0,t.nextTick(()=>{if(re){const ee=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),he=(ee==null?void 0:ee.clientHeight)||0;re!==he&&t.unref(c)&&(c.value=$+re-he)}})})});const x=t.ref([]),f=t.ref([]),m=t.ref([]),y=t.ref([]),g=t.ref(0),S=t.ref(1),L=t.ref(e.paginationPageSize||10),b=t.reactive([]),h=(j,$)=>{let J="";return j.forEach((ae,se)=>{const{value:re,rule:ee}=ae;ae.conditions?J+=`(${h(ae.conditions,ae.join)})`:re&&ee&&(J+=`value ${ee} '${re}'`),J+=`${se===j.length-1?"":$?" "+$+" ":""}`}),J},p=(j=[])=>{var $,J;if(Array.isArray(j)&&j.length>0){let ae=j.length;const se=e.columnsFixedNum;if(e.dataType==="indicator"&&(($=t.unref(a))!=null&&$.length)){const{graphicConfig:{indicators:re=[]}}=e;j.forEach((ee,he)=>{if(t.unref(a)[he])for(const ze in t.unref(a)[he])["dataIndex","title"].includes(ze)||(ee[ze]=t.unref(a)[he][ze]);const ve=re.find(ze=>ze.label===ee.title),{showLabel:ke=""}=ve||{};ke&&(ee.title=ke)})}for(let re=ae-1;re>=0;re--)(J=j[re])!=null&&J.isHidden&&j.splice(re,1);ae=j.length;for(let re=0;re<ae;re++){const ee=j[re];if(re<se?ee.fixed="left":ee.fixed=!1,e.isSortByFront&&ee.sorter){const xt=ee.dataIndex;ee.sorter=(We,lt)=>We[xt]-lt[xt]}const{cellAlign:he="center",cellColor:ve,dataIndex:ke,title:ze,tableFilter:tt,headerCellAlign:Ct,headerCellColor:Ft,overflow:un,conditions:Mt}=ee;tt&&(b.push(ke),ee.filterOptionsInputValue="",ee.filterCheckboxGroupValue=[],ee.customFilterDropdown=!0,ee.onFilter=(xt,We)=>We[ke].toString().toLowerCase().includes(xt.toLowerCase())),Mt&&(ee.conditionCode=h(Mt)),ee.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Ct||"center",color:Ft||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),ee.customCell=(xt,We)=>({style:{textAlign:he,color:ve||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(H)===We&&e.clickHighlight},onClick:F("click",()=>{const lt=e.id,En=V(lt);xt={dataIndex:ke,title:ze,...xt},q(lt,{...En,type:e.type,RECORD:xt})})}),un==="ellipsis"?ee.ellipsis=!0:ee.ellipsis=!1,Array.isArray(ee.children)&&p(ee.children)}}},C=(j=[])=>{var J;let $=Ne.cloneDeep(j);return(J=t.unref(y))!=null&&J.length&&($=Ne.cloneDeep(t.unref(y))),e.isUseSeq&&$.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&$.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),p($),$};t.watch(L,()=>{S.value=1,me(!1)}),t.watch(i,j=>{r.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],()=>{x.value=C(Ne.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([j,$])=>{$==="static"&&(f.value=j)},{immediate:!0});const A=t.ref({}),_=j=>{if(Array.isArray(j)){const $=j.length,J=b,ae=J.length,se={};for(let ee=0;ee<$;ee++){const he=j[ee];for(let ve=0;ve<ae;ve++){const ke=J[ve];if(se[ke])se[ke].add(he[ke]);else{const ze=new Set;ze.add(he[ke]),se[ke]=ze}}}const re={};for(const ee in se)if(Object.prototype.hasOwnProperty.call(se,ee)){const he=se[ee],ve=Array.from(he);re[ee]=ve.map(ke=>({label:ke,value:ke}))}A.value=re}};t.watch(()=>[e.isReverse,x.value,f.value],()=>{const j=t.unref(x),$=t.unref(f);if(_($),e.isReverse){const{columns:J,dataSource:ae}=B(Ne.cloneDeep(j),Ne.cloneDeep($));m.value=J,l.value=ae}else m.value=j,l.value=$},{immediate:!0});const B=(j,$)=>{const J=j[0],ae=[{title:J.title,dataIndex:"col0",key:"col0",align:"center"}];for(let re=0;re<$.length;re++){const ee=$[re],he="col"+(re+1);ae.push({title:ee[J.dataIndex],dataIndex:he,key:he,align:"center"})}const se=[];for(let re=1;re<j.length;re++){const ee=j[re],he={col0:ee.title};for(let ve=0;ve<$.length;ve++){const ke=$[ve];he[`col${ve+1}`]=ke[ee.dataIndex]}se.push(he)}return{columns:ae,dataSource:se}},N=t.ref(""),w=qe(e),k=async(j=!0,$={})=>{var J;try{j&&(n.value=!0),t.unref(N)&&($.orderCondition=t.unref(N)),e.paginationShow&&($={pageNum:t.unref(S),pageSize:t.unref(L)||"10",layer:"1",...$});const ae=await w($),{rows:se=[],total:re=0}=((J=ae==null?void 0:ae.data)==null?void 0:J.data)||{};if(g.value=re,Array.isArray(se)&&(f.value=se),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ee=[]}=e,he=ee.find(ve=>ve.key==="dataSqlId");if((he==null?void 0:he.value)==="xt_jxzebg"){const ve=se.filter(ke=>!ke.绩效总额).map(ke=>ke.ORG_NAME);ve!=null&&ve.length&&t.nextTick(()=>{ge.notification.warning({message:"提示",description:`当前时段${ve.join("、")}绩效数据为空`,duration:3})})}}}catch(ae){console.error(ae)}finally{n.value=!1}},D=({current:j},$,J)=>{if(S.value=j,J&&Object.keys(J).length>0){const{field:ae,order:se}=J,ee={ascend:"asc",descend:"desc"}[se];ae!=null&&ee!=null&&ee?N.value=ae+" "+ee:ee||(N.value="")}e.isSortByFront||me(!1)},E=t.computed(()=>{const j=e.simple,$=[e.paginationPosition],J={};return e.isShowTotal&&(J.showTotal=ae=>`共 ${ae} 条数据`),e.paginationShow&&{simple:j,position:$,total:t.unref(g),current:t.unref(S),pageSize:t.unref(L)||"10",showSizeChanger:!1,size:"large",...J}}),R=j=>+j==1?"是":+j==0?"否":j,I=(j,$)=>{const{format:J,retentiondigit:ae,customFormatter:se,defaultVal:re}=$;let ee="";if(J==null||J==="")ee=j;else{const he={money:Oo,percentage:Bn,contrast:Bn,boolean:R,decimals:Zc,custom:_r};he[J]||(ee=""),J==="decimals"?ee=he[J](j,ae)||"":J==="custom"?ee=he[J](j,se)||"":ee=he[J](j)||""}return ee||(ee=re),ee},v=j=>j==="contrast"?"upDown":"",T=j=>{const{text:$,format:J,declineColor:ae="#39cf93",increaseColor:se="#ff512e"}=j;if(J==="contrast"){const re={fontSize:e.fontSize},ee=parseFloat($+"");return ee>=0?re.color=se:ee<0&&(re.color=ae),re}else return{}},O=t.computed(()=>{const{fontSize:j}=e;return{width:j,height:j,textIndent:`-${parseFloat(j)*2}px`,overflow:"hidden"}}),z=j=>{const{text:$,declineColor:J="#39cf93",increaseColor:ae="#ff512e"}=j,{fontSize:se}=e,re=parseFloat($+""),ee={width:se,verticalAlign:"unset"};return re>=0?ee.filter=`drop-shadow(${ae||"#ff512e"} ${se} -1px)`:re<0&&(ee.filter=`drop-shadow(${J||"#39cf93"} ${se} -1px)`),ee},M=j=>{const $=parseFloat(j+"");if($>=0)return Vo;if($<0)return Ho},F=Le(e),{getGlobalModel:V,setGlobalModel:q}=t.inject(Re,{getGlobalModel:j=>{},setGlobalModel:(j,$)=>{}});q(e.id,{type:e.type,RECORD:""});const W=(j=[],$=[])=>{const J=j.map(ae=>({title:ae,dataIndex:ae,key:ae}));y.value=Ne.cloneDeep(J),x.value=C(J),f.value=$},Q=Je(e),P=async(j=!0)=>{var $,J,ae,se;try{j&&(n.value=!0);const re=t.unref(N).split(" "),ee={};e.isSortByFront||(ee.sort={order:re[1],field:re[0]});const he=await Q(ee);W((J=($=he==null?void 0:he.data)==null?void 0:$.data)==null?void 0:J.columns,(se=(ae=he==null?void 0:he.data)==null?void 0:ae.data)==null?void 0:se.rows)}catch(re){console.error(re)}finally{n.value=!1}},H=t.ref(-1),Y=(j,$)=>({onClick:F("rowClick",()=>{const J=e.id,ae=V(J);q(J,{...ae,type:e.type,RECORD:j}),H.value=$})}),{loadedData:te}=t.inject(kt,{loadedData:{}}),ne=t.ref(!1);t.watch(te,j=>{if(e.dataType==="indicator"){const $=ln(e.graphicConfig);$!=null&&$.length&&(!t.unref(ne)&&dt(e.graphicConfig,j)?(ne.value=!0,me()):dt(e.graphicConfig,j)||(ne.value=!1))}},{deep:!0});const me=(j=!0)=>{switch(e.dataType){case"request":k(j);break;case"indicator":dt(e.graphicConfig,t.unref(te))&&P(j);break}},fe=()=>{const j=e.id,$=V(j);q(j,{...$,type:e.type,RECORD:""})},U=t.computed(()=>{const j=t.unref(m);let $=0;const{subTotalColumn:J,subTotalName:ae}=e;J&&($=j.findIndex(ve=>ve.dataIndex===J),$<0&&($=0));const se=[];let re=0;for(let ve=0;ve<j.length;ve++){const ke=j[ve],{isCalcTotal:ze}=ke;ve===$?se.push({...ke,total:ae}):ze?(se.push({...ke,index:ve,total:0}),re++):se.push({...ke})}if(re===0)return[];const ee=t.unref(l),he=Z(se);for(let ve=0;ve<he.length;ve++){const ke=he[ve];let ze=0;const{isCalcTotal:tt,dataIndex:Ct}=ke;if(tt===!0){for(let Ft=0;Ft<ee.length;Ft++){const Mt=+ee[Ft][Ct];isNaN(Mt)||(ze=new cs.Big(ze).add(Mt).toNumber())}ke.total=ze}}return he});function Z(j){var J;const $=[];for(const ae of j)(J=ae.children)!=null&&J.length?$.push(...Z(ae.children)):$.push(ae);return $}const{setRequest:X}=t.inject(Pe,{setRequest:j=>{}});typeof X=="function"&&X({id:e.id,requestFn:me,sortNum:e.requestSort}),o({refreshData:me});const ie=(j="",$)=>_e(j,$),oe=j=>{if(j!=="event")return{self:"_self",blank:"_blank"}[j]},le=(j,$="")=>{j==="event"&&window.parent.postMessage({type:"openPage",url:$},"*")},xe=(j,$)=>{j($.filterCheckboxGroupValue)},Ae=(j,$)=>{j({confirm:!0}),$.filterOptionsInputValue="",$.filterCheckboxGroupValue=[]},ce=()=>{},de=j=>{const $=j.dataIndex;if(typeof $=="string"){let J=t.unref(A)[$];const ae=t.unref(j.filterOptionsInputValue).trim();return Array.isArray(J)?(J=J.filter(se=>typeof se.label=="string"?se.label.toLowerCase().includes(ae.toLowerCase()):!0),J):[]}return[]},ue=async()=>{var ke,ze;const j="EXPORT_KEY";ge.message.loading({key:j,content:"正在导出...",duration:0});let $=[];if(e.dataType==="static")$=e.data;else if(e.dataType==="request"){const tt={layer:"1"};t.unref(N)&&(tt.orderCondition=t.unref(N));const Ct=await w(tt);$=((ze=(ke=Ct==null?void 0:Ct.data)==null?void 0:ke.data)==null?void 0:ze.rows)||{}}const J=t.unref(m),ae=[],se=[];J==null||J.forEach(tt=>{ae.push(tt.dataIndex),se.push(tt.title)});const re=$.map(tt=>Ne.pick(tt,ae)),ee=en.utils.book_new(),he=en.utils.aoa_to_sheet([se]),ve=en.utils.sheet_add_json(he,re,{skipHeader:!0,origin:"A2"});en.utils.book_append_sheet(ee,ve,"sheet"),en.writeFile(ee,"表格数据.xlsx"),ge.message.success({key:j,content:"导出成功"})},He=(j,$=2)=>{const J=+j*100;return isNaN(J)||J<=0?0:J>=100?100:J.toFixed($)};Oe(e,{resetRecord:fe,refreshData:me,exportTableData:ue});const Xe=(j,$)=>{let J=null;return e.stripedShow&&(J=$%2===1?"table-striped":null),J},Ge=t.computed(()=>{let j=0;const{height:$,isPageBottom:J}=e;return J&&$&&(j=parseFloat($)-u()),j?j+"px":"100%"}),Ke=t.computed(()=>{let j="#071655";return e.headerBackgroundColor&&(j="transparent"),j}),yt=t.computed(()=>{let j="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(j="transparent"),j}),ut=t.computed(()=>parseFloat(e.fontSize)+16),$e=t.computed(()=>{let j="";const{paginationColor:$,paginationBgColor:J,activePaginationColor:ae,activePaginationBgColor:se,hoverBackgroundColor:re}=e;return $&&(j+="p-color "),J&&(j+="p-bg-color "),ae&&(j+="active-p-color "),se&&(j+="active-p-bg-color "),re&&(j+="hover-bg-color "),j}),Ye=(j,$)=>{const{conditionCode:J}=j;return dn(J,{value:$})};return{x:d,y:c,style:s,customRow:Y,pagination:E,formatFn:I,contrastClass:v,tableChange:D,summaryList:U,loading:n,onTouchHrefEvent:le,handleHref:ie,handleHrefTarget:oe,useRowIndex:H,tableColumns:m,tableDataSource:l,useFilterOptions:de,useSetSelectedKeys:xe,onResetFilter:Ae,onSearchFilterOptions:ce,exportTableData:ue,handleProgressText:He,pageSizeVisible:r,pageSize:L,tableRef:i,rowClassName:Xe,tableHeight:Ge,tableHeaderBgColor:Ke,tableBodyBgColor:yt,getChgStyle:T,chgBoxStyle:O,getChgBoxImgStyle:z,getChgBoxImgSrc:M,seqIcon1:gu,seqIcon2:mu,seqIcon3:yu,iconSize:ut,containerClass:$e,getCellStyle:(j,$)=>{const{overflow:J,conditionCode:ae,attribute:se}=j,re={};return J==="ellipsis"&&(re.overflow="hidden",re.textOverflow="ellipsis"),ae&&(se!=null&&se.color)&&Ye(j,$)&&(re.color=se.color),se!=null&&se.icon&&(j==null?void 0:j.cellAlign)==="right"&&(re.display="flex",re.alignItems="center",re.justifyContent="flex-end"),re},isMatchCondition:Ye,getAttrImgSrc:j=>{const{attribute:$}=j;let J="";return $!=null&&$.icon&&(J=mt($.icon)),J},getAttrImgStyle:j=>{let $={};return(j==null?void 0:j.cellAlign)==="right"?$={marginRight:"5px"}:$={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(e.fontSize)+6+"px",...$}}}}}),Yl=()=>{t.useCssVars(e=>({"0de7b3a0":e.stripedColor,"08a5a8e7":e.tableHeaderBgColor,"6398a49c":e.tableBodyBgColor,"7613c960":e.paginationBgColor,dc2e69b6:e.paginationColor,"353ecc0c":e.activePaginationBgColor,"10f60b82":e.activePaginationColor,ca614f86:e.hoverBackgroundColor}))},Kl=Ua.setup;Ua.setup=Kl?(e,o)=>(Yl(),Kl(e,o)):Yl;const A1="",k1="",xu=e=>(t.pushScopeId("data-v-c2087b7c"),e=e(),t.popScopeId(),e),pu=["id"],bu={key:0,class:"table-tool"},vu=t.createTextVNode("导出数据"),Su=t.createTextVNode(" 搜索 "),Cu=t.createTextVNode(" 重置 "),wu=["src","width","height"],Au=["src","width","height"],ku=["src","width","height"],Tu={key:1},Bu={key:1,class:"action-list"},Eu=["href","target","onClick"],Du={key:2,class:"progress-cell"},Iu=["src"],Ru=["title"],Lu=["title"],_u=["src"],Nu=["title"],Ou=["src"],Fu=["src"],Mu={class:"ant-pagination-options-quick-jumper"},zu=xu(()=>t.createElementVNode("span",null,"条 / 页",-1));function Pu(e,o,n,a,i,r){const s=t.resolveComponent("a-button"),l=t.resolveComponent("a-input"),d=t.resolveComponent("a-checkbox-group"),c=t.resolveComponent("a-table-summary-cell"),u=t.resolveComponent("a-table-summary-row"),x=t.resolveComponent("a-table-summary"),f=t.resolveComponent("a-table"),m=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:t.normalizeStyle(e.style)},[t.createVNode(m,{loading:e.loading},{default:t.withCtx(()=>{var y;return[e.isUseExport?(t.openBlock(),t.createElementBlock("div",bu,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[vu]),_: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:g,selectedKeys:S,setSelectedKeys:L,confirm:b,clearFilters:h})=>[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(L,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:()=>b()},{default:t.withCtx(()=>[Su]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(p=>e.onResetFilter(h,g),["stop"])},{default:t.withCtx(()=>[Cu]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:g,index:S,text:L,record:b})=>{var h,p,C,A,_,B;return[g.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,wu)):S===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Au)):S>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,ku)):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",Tu,t.toDisplayString(S+1),1))],64)):g.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",Bu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(N,w)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:w},[t.createElementVNode("a",{href:e.handleHref(N.href,b),target:e.handleHrefTarget(N.target),style:t.normalizeStyle({color:N.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:k=>e.onTouchHrefEvent(N.target,e.handleHref(N.href,b))},t.toDisplayString(N.title),13,Eu)]))),128))])):g.format==="progress"?(t.openBlock(),t.createElementBlock("div",Du,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:g.progressColor||"#1890ff",height:g.progressWidth||"18px",width:`${e.handleProgressText(L,g.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(L)<100?g.progressTextColor||"#333":g.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(L,g.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(g,L)})},[e.isMatchCondition(g,L)&&(g==null?void 0:g.cellAlign)==="right"&&((h=g==null?void 0:g.attribute)!=null&&h.icon)?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.getAttrImgStyle(g)),src:e.getAttrImgSrc(g)},null,12,Iu)):t.createCommentVNode("",!0),g.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((p=g==null?void 0:g.customFormatter)==null?void 0:p.split("{value}")[0])||""},t.toDisplayString(((C=g==null?void 0:g.customFormatter)==null?void 0:C.split("{value}")[0])||""),9,Ru)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(g.format)]),style:t.normalizeStyle(e.getChgStyle({...g,text:L})),title:g.format!=null?e.formatFn(L,g):L},[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:L})),src:e.getChgBoxImgSrc(L)},null,12,_u)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(g.format!=null?e.formatFn(L,g):L||(g==null?void 0:g.defaultVal)),1)],14,Lu),g.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:2,title:((A=g==null?void 0:g.customFormatter)==null?void 0:A.split("{value}")[1])||""},t.toDisplayString(((_=g==null?void 0:g.customFormatter)==null?void 0:_.split("{value}")[1])||""),9,Nu)):t.createCommentVNode("",!0),e.isMatchCondition(g,L)&&(g==null?void 0:g.cellAlign)!=="right"&&((B=g==null?void 0:g.attribute)!=null&&B.icon)?(t.openBlock(),t.createElementBlock("img",{key:3,style:t.normalizeStyle(e.getAttrImgStyle(g)),src:e.getAttrImgSrc(g)},null,12,Ou)):t.createCommentVNode("",!0)],4))]}),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(x,{key:0,fixed:e.isSummaryFixed},{default:t.withCtx(()=>[t.createVNode(u,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(g,S)=>(t.openBlock(),t.createBlock(c,{key:S,index:S,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,Fu)],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},[(y=e.tableDataSource)!=null&&y.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[t.createElementVNode("div",Mu,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=g=>e.pageSize=g)},null,512),[[t.vModelText,e.pageSize]]),zu])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,pu)}const Zl=Te(Ce(Ua,[["render",Pu],["__scopeId","data-v-c2087b7c"]])),$a={...Ie,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"},Ya=Be($a),Ql=["click"];nt.use([Lt.CanvasRenderer,bt.MapChart,bt.ScatterChart,Ee.VisualMapComponent,Ee.TooltipComponent,Ee.GraphicComponent]);const qu=t.defineComponent({name:"EcanMap",components:{Echarts:wt},props:{...Ya},setup(e){const o=qe(e),n=qe({...e.tooltipRequestData,requestHeaders:{}}),a=t.ref(),i=t.ref(""),r=t.ref(""),s=De(e,["backgroundImage"]),l=t.ref(),d=t.computed(()=>mt(e.geoBackgroundImage)),c=t.computed(()=>mt(e.backgroundImage)),u=t.computed(()=>e.geoBackgroundImage?{image:t.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),x=t.computed(()=>{const E=e.symbolImage;return e.symbolImage?"image://"+mt(E):"circle"}),f=E=>{let R=e.tooltipFormatter;const I=R.match(/\{(.+?)\}/g);if(I==null||I.length===0)return R;for(let v=0;v<I.length;v++){const T=I[v];let O=T.slice(1,-1).trim();const z=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,M=O.match(z);for(let F=0;F<M.length;F++){const V=M[F],q=E[V];q!=null&&(O=O.replace(V,q))}R=R.replace(T,O)}return R.split(`
120
+ `)},m=t.ref(!1),y=t.ref("");let g=new AbortController;const S=(E,R)=>{const I=g.signal;m.value=!0,i.value=E,n({name:E,signal:I}).then(v=>{var T,O;if(v){const z=((O=(T=v==null?void 0:v.data)==null?void 0:T.data)==null?void 0:O.rows)||[];let M="";for(const F of z){const V=f(F)||[];if(V!=null&&V.length)for(const q of V)M+=`<div style="word-break: break-all;white-space: normal;">${q}</div>`}M=`<div style="max-width:200px;">${M}</div>`,r.value=M,R(t.unref(y),M)}else I.aborted?r.value="Loading":r.value=E,R(t.unref(y),r.value);m.value=!1})},L=t.computed(()=>{const E=e.geoCenter;let R;return typeof E=="string"&&E!==""&&(R=E.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:R,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(I,v,T)=>{y.value=v;const{name:O=""}=I,{requestUrl:z}=e.tooltipRequestData;if(!z)return O;if(t.unref(m))t.unref(i)!==O&&(g.abort(),g=new AbortController);else{if(t.unref(i)===O)return t.unref(r);S(O,T)}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(x),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),h=async()=>{var I;b.value=!1;const E=e.mapJson,R=`map-${e.id}`;if(E!=null&&E.path){const v=await pt(((I=window==null?void 0:window.config)==null?void 0:I.uploadPath)+E.path);nt.registerMap(R,(v==null?void 0:v.data)||{})}else nt.registerMap(R,{});b.value=!0};t.watch(()=>e.mapJson,()=>{h()},{immediate:!0,deep:!0});const p=async()=>{var E,R;if(e.dataType==="request"){b.value=!1;try{const I=await o(),v=((R=(E=I==null?void 0:I.data)==null?void 0:E.data)==null?void 0:R.rows)||{},T=`map-${e.id}`;if(v!=null&&v.path){const O=await pt(v.path);nt.registerMap(T,(O==null?void 0:O.data)||{})}else nt.registerMap(T,{})}catch(I){console.error(I)}finally{b.value=!0}}},C=()=>{switch(e.dataType){case"request":p();break}},{getGlobalModel:A,setGlobalModel:_}=t.inject(Re,{getGlobalModel:E=>{},setGlobalModel:(E,R)=>{}}),N=Le(e)("click",()=>{const E=A(e.id);_(e.id,{...E,RECORD:t.unref(a)})});Oe(e,{refreshData:C});const{setRequest:w}=t.inject(Pe,{setRequest:E=>{}});return typeof w=="function"&&w({id:e.id,requestFn:C,sortNum:e.requestSort}),{option:L,style:s,isLoadedData:b,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{t.unref(a)&&N()},onMouseOver:(E={})=>{E.componentType==="geo"&&E.region?a.value=E.region:a.value=null}}}}),B1="",Vu=["src"];function Hu(e,o,n,a,i,r){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":e.customClick,onMouseover:e.onMouseOver},null,8,["option","onZr:click","onMouseover"])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,Vu),[[t.vShow,!1]])],4)}const Jl=Te(Ce(qu,[["render",Hu],["__scopeId","data-v-10f150ac"]])),Ka={...Ie,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"},Za=Be(Ka),Xl=["selectChange","refreshData"],ju=t.defineComponent({name:"EcanDataSelect",components:{ASelect:ge.Select,ASelectOption:ge.SelectOption},props:{...Za},setup(e,{expose:o}){const n=De(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=qe(e),r=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var D;const{mode:k}=e;return(D=t.unref(r))!=null&&D.length?s.value:k==="multiple"||k==="tags"||k==="combobox"?[]:""},set:k=>{s.value=k}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:u}=t.inject(Re,{getGlobalModel:k=>{},setGlobalModel:(k,D)=>{},getRecordValueByKeyName:k=>{}}),x=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,r.value],()=>{const{mode:k,selectFirstOption:D,value:E}=e,R=u(E),I=x.value;if(k==="multiple"||k==="tags"||k==="combobox"){if(R)s.value=R.split(",");else if(D){const v=t.unref(r)[0];s.value=v?[v[I]]:[]}}else if(R)s.value=R;else if(D){const v=t.unref(r)[0];s.value=v?v[I]:""}},{immediate:!0});const f=(k,D)=>{const E=x.label,R=x.value;let I;const v=D[E],T=D[R];return v!=null?I=v:T!=null&&(I=T),(I==null?void 0:I.toLowerCase().indexOf(k==null?void 0:k.toLowerCase()))>=0},m=k=>{const{label:D,value:E,options:R}=e.dataFieldNames;if(R&&Array.isArray(k))if(k.some(I=>R in I)){const I={},v=[];k.forEach(T=>{I[T[R]]||(I[T[R]]=[]),I[T[R]].push({[D]:T[D],[E]:T[E]})});for(const T in I)v.push({[D]:T,[R]:I[T]});return v}else return k;else if(!R)return k},y=t.ref(!1),g=async()=>{var k,D;if(e.dataType==="request"){y.value=!0;try{const E=await i();if(r.value=m(((D=(k=E==null?void 0:E.data)==null?void 0:k.data)==null?void 0:D.rows)||[]),e.selectFirstOption){let R=t.unref(r)[0];if(x.options){const I=R[x.options];I&&I.length&&(R=I[0])}s.value=R[x.value]}}catch(E){console.error(E)}finally{y.value=!1}}},S=t.computed(()=>{let k=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(r)){const D=x.label,E=x.value;if(e.mode==="multiple")k=t.unref(r).filter(R=>t.unref(s).includes(R[E])).map(R=>R[D]);else{const R=t.unref(r).find(I=>t.unref(s)===I[E]);R&&(k=R[D])}}return k}),L=t.ref([]),b=t.computed(()=>{const k={};if(e.mode!=="multiple"){const D=t.unref(L).find(E=>E.value===t.unref(s));D&&(k.itemCodes=D.item_codes)}return k}),h=t.computed(()=>{const{value:k,label:D}=x,E=t.unref(r).find(R=>R[k]===t.unref(l));return E?{label:E[D],value:E[k]}:{}});c(e.id,{type:e.type,value:S,...t.unref(b),recordData:t.unref(h)});const C=Le(e)("selectChange",()=>{const k=e.id,D=d(k);c(k,{...D,...t.unref(b),RECORD:S,recordData:t.unref(h)})}),A=(k=[])=>{if(r.value=m(k),e.selectFirstOption){let D=t.unref(r)[0];if(x.options){const E=D[x.options];E&&E.length&&(D=E[0])}s.value=D[x.value]}c(e.id,{type:e.type,value:S,...t.unref(b),recordData:t.unref(h)})},_=Je(e),B=async()=>{var k;try{y.value=!0;const D=await _(),{data:E}=(D==null?void 0:D.data)||{},R=x.label,I=x.value;if(E){const v=((k=D==null?void 0:D.data)==null?void 0:k.data)??[];L.value=v;const T=v.map(M=>({[R]:M.label,[I]:M.value})),{id:O}=e,z=d(O);c(O,{...z,...t.unref(b)}),A(T)}else A([])}catch(D){console.error(D)}finally{y.value=!1}},N=()=>{switch(e.dataType){case"indicator":{B();break}case"request":g();break}};Oe(e,{selectChange:C,refreshData:N});const{setRequest:w}=t.inject(Pe,{setRequest:({id:k,sortNum:D,requestFn:E})=>{}});return typeof w=="function"&&w({id:e.id,requestFn:N,sortNum:e.requestSort}),o({refreshData:N}),{style:n,getPopupContainer:a,myValue:s,selectChange:C,options:r,filterOption:f,loading:y,resultValue:l}}}),D1="",I1="";function Wu(e,o,n,a,i,r){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const es=Te(Ce(ju,[["render",Wu],["__scopeId","data-v-3639c038"]])),ts=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:Bl,EcanBorder:Fl,EcanButton:dl,EcanCheckbox:ul,EcanCirculate:Vl,EcanComboGraph:Ll,EcanCounter:Qr,EcanCustomGraph:Il,EcanDataSelect:es,EcanDatePicker:ol,EcanIframe:Ul,EcanImage:Gl,EcanInput:Xr,EcanLine:kl,EcanList:$r,EcanMap:Jl,EcanModal:It,EcanPageConfig:Mr,EcanPie:wl,EcanProportion:Kr,EcanProviderConfig:zr,EcanRadar:Nl,EcanRadio:pl,EcanRangePicker:sl,EcanScatter:Dl,EcanScrollText:jr,EcanSelect:gl,EcanTable:Zl,EcanTabs:zl,EcanText:Hr,EcanTimeDisplay:Gr,EcanTreeSelect:yl,barComponentProps:Aa,barEvents:Tl,barProps:wa,borderComponentProps:Na,borderEvents:Ol,borderProps:_a,buttonComponentProps:la,buttonEvents:cl,buttonProps:ra,checkboxComponentProps:ca,checkboxEvents:fl,checkboxProps:sa,circulateComponentProps:za,circulateEvents:Pl,circulateProps:Ma,comboGraphComponentProps:Ia,comboGraphEvents:Rl,comboGraphProps:Da,counterComponentProps:Qo,counterEvents:Zr,counterProps:Zo,customGraphComponentProps:Ea,customGraphProps:Ba,dataSelectComponentProps:Za,dataSelectEvents:Xl,dataSelectProps:Ka,datePickerComponentProps:ta,datePickerEvents:el,datePickerProps:ea,iframeComponentProps:ja,iframeProps:Ha,imageComponentProps:qa,imageEvents:Hl,imageProps:Pa,inputComponentProps:Xo,inputEvents:Jr,inputProps:Jo,lineComponentProps:Ca,lineEvents:Al,lineProps:Sa,listComponentProps:$o,listEvents:Ur,listProps:Uo,mapComponentProps:Ya,mapEvents:Ql,mapProps:$a,modalComponentProps:ba,modalEvents:vl,modalProps:pa,pageConfig:jn,pageConfigComponentProps:Wn,pieComponentProps:xa,pieEvents:bl,pieProps:ya,proportionComponentProps:Ko,proportionEvents:Yr,proportionProps:Yo,providerConfig:Mo,providerConfigComponentProps:zo,radarComponentProps:La,radarEvents:_l,radarProps:Ra,radioComponentProps:ma,radioEvents:xl,radioProps:ga,rangePickerComponentProps:aa,rangePickerEvents:al,rangePickerProps:oa,scatterComponentProps:Ta,scatterEvents:El,scatterProps:ka,selectComponentProps:fa,selectEvents:hl,selectProps:da,tableComponentProps:Ga,tableEvents:$l,tableProps:Wa,tabsComponentProps:Fa,tabsEvents:Ml,tabsProps:Oa,textComponentProps:qo,textEvents:Pr,textProps:Po,timeDisplayComponentProps:Go,timeDisplayEvents:Wr,timeDisplayProps:Wo,treeSelectComponentProps:ha,treeSelectEvents:ml,treeSelectProps:ua},Symbol.toStringTag,{value:"Module"})),Gu={install:e=>{Object.keys(ts).forEach(o=>{const n=ts[o];n.install&&e.use(n)})}};G.EcanBar=Bl,G.EcanBorder=Fl,G.EcanButton=dl,G.EcanCheckbox=ul,G.EcanCirculate=Vl,G.EcanComboGraph=Ll,G.EcanCounter=Qr,G.EcanCustomGraph=Il,G.EcanDataSelect=es,G.EcanDatePicker=ol,G.EcanIframe=Ul,G.EcanImage=Gl,G.EcanInput=Xr,G.EcanLine=kl,G.EcanList=$r,G.EcanMap=Jl,G.EcanModal=It,G.EcanPageConfig=Mr,G.EcanPie=wl,G.EcanProportion=Kr,G.EcanProviderConfig=zr,G.EcanRadar=Nl,G.EcanRadio=pl,G.EcanRangePicker=sl,G.EcanScatter=Dl,G.EcanScrollText=jr,G.EcanSelect=gl,G.EcanTable=Zl,G.EcanTabs=zl,G.EcanText=Hr,G.EcanTimeDisplay=Gr,G.EcanTreeSelect=yl,G.barComponentProps=Aa,G.barEvents=Tl,G.barProps=wa,G.borderComponentProps=Na,G.borderEvents=Ol,G.borderProps=_a,G.buttonComponentProps=la,G.buttonEvents=cl,G.buttonProps=ra,G.checkboxComponentProps=ca,G.checkboxEvents=fl,G.checkboxProps=sa,G.circulateComponentProps=za,G.circulateEvents=Pl,G.circulateProps=Ma,G.comboGraphComponentProps=Ia,G.comboGraphEvents=Rl,G.comboGraphProps=Da,G.compatibleMobileList=Cl,G.counterComponentProps=Qo,G.counterEvents=Zr,G.counterProps=Zo,G.customGraphComponentProps=Ea,G.customGraphProps=Ba,G.dataSelectComponentProps=Za,G.dataSelectEvents=Xl,G.dataSelectProps=Ka,G.datePickerComponentProps=ta,G.datePickerEvents=el,G.datePickerProps=ea,G.default=Gu,G.handleScrollCombinations=Sl,G.iframeComponentProps=ja,G.iframeProps=Ha,G.imageComponentProps=qa,G.imageEvents=Hl,G.imageProps=Pa,G.inputComponentProps=Xo,G.inputEvents=Jr,G.inputProps=Jo,G.lineComponentProps=Ca,G.lineEvents=Al,G.lineProps=Sa,G.listComponentProps=$o,G.listEvents=Ur,G.listProps=Uo,G.mapComponentProps=Ya,G.mapEvents=Ql,G.mapProps=$a,G.modalComponentProps=ba,G.modalEvents=vl,G.modalProps=pa,G.moveToComponentList=va,G.pageConfig=jn,G.pageConfigComponentProps=Wn,G.pieComponentProps=xa,G.pieEvents=bl,G.pieProps=ya,G.proportionComponentProps=Ko,G.proportionEvents=Yr,G.proportionProps=Yo,G.providerConfig=Mo,G.providerConfigComponentProps=zo,G.radarComponentProps=La,G.radarEvents=_l,G.radarProps=Ra,G.radioComponentProps=ma,G.radioEvents=xl,G.radioProps=ga,G.rangePickerComponentProps=aa,G.rangePickerEvents=al,G.rangePickerProps=oa,G.scatterComponentProps=Ta,G.scatterEvents=El,G.scatterProps=ka,G.selectComponentProps=fa,G.selectEvents=hl,G.selectProps=da,G.tableComponentProps=Ga,G.tableEvents=$l,G.tableProps=Wa,G.tabsComponentProps=Fa,G.tabsEvents=Ml,G.tabsProps=Oa,G.textComponentProps=qo,G.textEvents=Pr,G.textProps=Po,G.timeDisplayComponentProps=Go,G.timeDisplayEvents=Wr,G.timeDisplayProps=Wo,G.treeSelectComponentProps=ha,G.treeSelectEvents=ml,G.treeSelectProps=ua,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
121
121
  //# sourceMappingURL=index.umd.js.map