@ecan-bi/datav 1.2.78 → 1.2.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +3854 -3800
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +30 -30
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/container/border/Border.vue.d.ts +10 -2
- package/types/container/border/index.d.ts +10 -2
- package/types/container/border/props.d.ts +5 -0
- package/types/table/table/Table.vue.d.ts +26 -1
- package/types/table/table/index.d.ts +26 -1
- package/types/table/table/props.d.ts +15 -0
- package/types/text/text/Text.vue.d.ts +33 -0
- package/types/text/text/index.d.ts +33 -0
- package/types/text/text/props.d.ts +20 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.2.
|
|
2
|
-
(function(V,a){typeof exports=="object"&&typeof module<"u"?a(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"],a):(V=typeof globalThis<"u"?globalThis:V||self,a(V["@ecan/bi-datav"]={},V.Vue,V["echarts/core"],V.ResizeDetector,V.AntDesignVue,null,null,V.LodashEs,V.Dayjs,V.Axios,V.Mitt,null,null,null,V["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,V["echarts/renderers"],V["echarts/charts"],V["echarts/components"],null,V.Echarts,null,null,V.Xlsx,V.big.js))})(this,function(V,a,Pe,ga,ae,xd,yd,Ge,Ae,y0,p0,pd,bd,vd,ma,Sd,wd,Cd,Ad,ut,Je,ge,kd,b0,Td,Ed,Rt,v0){var i0,l0,s0,c0;"use strict";function S0(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const w0=S0(b0),C0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function A0(e,n){function t(r){return(...i)=>{if(e.value||n(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}function o(){const r=Object.create(null);return C0.forEach(i=>{r[i]=t(i)}),r}return o()}function k0(e,n,t){let o=null;a.watch([t,e,n],([r,i,s],l,f)=>{r&&i&&s&&(o=Pe.throttle(()=>{i.resize()},100),ga.addListener(r,o)),f(()=>{o&&r&&ga.removeListener(r,o)})})}const T0={autoresize:Boolean},E0="ecLoadingOptions";function B0(e,n,t){const o=a.inject(E0,{}),r=a.computed(()=>({...a.unref(o),...t==null?void 0:t.value}));a.watchEffect(()=>{const i=e.value;i&&(n.value?i.showLoading(r.value):i.hideLoading())})}const _0={loading:Boolean,loadingOptions:Object},Bd="",D0=/^on[^a-z]/,R0=e=>D0.test(e);function I0(e){const n={};for(const t in e)R0(t)||(n[t]=e[t]);return n}const O0="x-vue-echarts",L0="ecTheme",N0="ecInitOptions",z0="ecUpdateOptions",ot=a.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...T0,..._0},inheritAttrs:!1,setup(e,{attrs:n,listeners:t}){const o=a.shallowRef(),r=a.shallowRef(),i=a.shallowRef(),s=a.inject(L0,null),l=a.inject(N0,null),f=a.inject(z0,null),{autoresize:c,manualUpdate:d,loading:x,loadingOptions:u}=a.toRefs(e),h=a.computed(()=>i.value||e.option||Object.create(null)),g=a.computed(()=>e.theme||a.unref(s)||{}),m=a.computed(()=>e.initOptions||a.unref(l)||{}),S=a.computed(()=>e.updateOptions||a.unref(f)||{}),k=a.computed(()=>I0(n));function y(T){if(r.value||!o.value)return;const E=r.value=Pe.init(o.value,g.value,m.value);e.group&&(E.group=e.group);let _=t;_||(_={},Object.keys(n).filter(L=>L.indexOf("on")===0&&L.length>2).forEach(L=>{const A=L.charAt(2).toLowerCase()+L.slice(3);_[A]=n[L]})),Object.keys(_).forEach(L=>{const A=_[L];A&&(L.indexOf("zr:")===0?E.getZr().on(L.slice(3).toLowerCase(),A):E.on(L.toLowerCase(),A))});function w(){if(E&&!E.isDisposed())try{E.resize()}catch(L){if(L.message==="Cannot read property 'get' of undefined")return;throw L}}function B(){E.setOption(T||h.value,S.value)}c.value?a.nextTick(()=>{w(),B()}):B()}function p(T,E){e.manualUpdate&&(i.value=T),r.value?r.value.setOption(T,E||{}):y(T)}function b(){r.value&&(r.value.dispose(),r.value=void 0)}let C=null;a.watch(d,T=>{typeof C=="function"&&(C(),C=null),T||(C=a.watch(()=>e.option,E=>{E&&(r.value?r.value.setOption(E,S.value):y())},{deep:!0}))},{immediate:!0}),a.watch([g,m],()=>{b(),y()},{deep:!0}),a.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const v=A0(r,y);return B0(r,x,u),k0(r,c,o),a.onMounted(()=>{e.option&&y()}),a.onUnmounted(b),{chart:r,root:o,setOption:p,nonEventAttrs:k,...v}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",a.h(O0,e)}});function We(e,n){M0(e)&&(e="100%");var t=F0(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function M0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function F0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function P0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Pt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function on(e){return e.length===1?"0"+e:String(e)}function H0(e,n,t){return{r:We(e,255)*255,g:We(n,255)*255,b:We(t,255)*255}}function an(e,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(n-e)*(6*t):t<1/2?n:t<2/3?e+(n-e)*(2/3-t)*6:e}function q0(e,n,t){var o,r,i;if(e=We(e,360),n=We(n,100),t=We(t,100),n===0)r=t,i=t,o=t;else{var s=t<.5?t*(1+n):t+n-t*n,l=2*t-s;o=an(l,s,e+1/3),r=an(l,s,e),i=an(l,s,e-1/3)}return{r:o*255,g:r*255,b:i*255}}function V0(e,n,t){e=We(e,255),n=We(n,255),t=We(t,255);var o=Math.max(e,n,t),r=Math.min(e,n,t),i=0,s=o,l=o-r,f=o===0?0:l/o;if(o===r)i=0;else{switch(o){case e:i=(n-t)/l+(n<t?6:0);break;case n:i=(t-e)/l+2;break;case t:i=(e-n)/l+4;break}i/=6}return{h:i,s:f,v:s}}function j0(e,n,t){e=We(e,360)*6,n=We(n,100),t=We(t,100);var o=Math.floor(e),r=e-o,i=t*(1-n),s=t*(1-r*n),l=t*(1-(1-r)*n),f=o%6,c=[t,s,i,i,l,t][f],d=[l,t,t,s,i,i][f],x=[i,i,l,t,t,s][f];return{r:c*255,g:d*255,b:x*255}}function G0(e,n,t,o){var r=[on(Math.round(e).toString(16)),on(Math.round(n).toString(16)),on(Math.round(t).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function xa(e){return He(e)/255}function He(e){return parseInt(e,16)}var ya={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 It(e){var n={r:0,g:0,b:0},t=1,o=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=$0(e)),typeof e=="object"&&(et(e.r)&&et(e.g)&&et(e.b)?(n=H0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):et(e.h)&&et(e.s)&&et(e.v)?(o=Pt(e.s),r=Pt(e.v),n=j0(e.h,o,r),s=!0,l="hsv"):et(e.h)&&et(e.s)&&et(e.l)&&(o=Pt(e.s),i=Pt(e.l),n=q0(e.h,o,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=P0(t),{ok:s,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:t}}var W0="[-\\+]?\\d+%?",U0="[-\\+]?\\d*\\.\\d+%?",at="(?:".concat(U0,")|(?:").concat(W0,")"),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*\\)?"),Ze={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 $0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(ya[e])e=ya[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=Ze.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=Ze.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Ze.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=Ze.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Ze.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=Ze.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Ze.hex8.exec(e),t?{r:He(t[1]),g:He(t[2]),b:He(t[3]),a:xa(t[4]),format:n?"name":"hex8"}:(t=Ze.hex6.exec(e),t?{r:He(t[1]),g:He(t[2]),b:He(t[3]),format:n?"name":"hex"}:(t=Ze.hex4.exec(e),t?{r:He(t[1]+t[1]),g:He(t[2]+t[2]),b:He(t[3]+t[3]),a:xa(t[4]+t[4]),format:n?"name":"hex8"}:(t=Ze.hex3.exec(e),t?{r:He(t[1]+t[1]),g:He(t[2]+t[2]),b:He(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function et(e){return!!Ze.CSS_UNIT.exec(String(e))}var Ht=2,pa=.16,Z0=.05,Y0=.05,K0=.15,ba=5,va=4,X0=[{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 Sa(e){var n=e.r,t=e.g,o=e.b,r=V0(n,t,o);return{h:r.h*360,s:r.s,v:r.v}}function qt(e){var n=e.r,t=e.g,o=e.b;return"#".concat(G0(n,t,o,!1))}function Q0(e,n,t){var o=t/100,r={r:(n.r-e.r)*o+e.r,g:(n.g-e.g)*o+e.g,b:(n.b-e.b)*o+e.b};return r}function wa(e,n,t){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=t?Math.round(e.h)-Ht*n:Math.round(e.h)+Ht*n:o=t?Math.round(e.h)+Ht*n:Math.round(e.h)-Ht*n,o<0?o+=360:o>=360&&(o-=360),o}function Ca(e,n,t){if(e.h===0&&e.s===0)return e.s;var o;return t?o=e.s-pa*n:n===va?o=e.s+pa:o=e.s+Z0*n,o>1&&(o=1),t&&n===ba&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function Aa(e,n,t){var o;return t?o=e.v+Y0*n:o=e.v-K0*n,o>1&&(o=1),Number(o.toFixed(2))}function sn(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],o=It(e),r=ba;r>0;r-=1){var i=Sa(o),s=qt(It({h:wa(i,r,!0),s:Ca(i,r,!0),v:Aa(i,r,!0)}));t.push(s)}t.push(qt(o));for(var l=1;l<=va;l+=1){var f=Sa(o),c=qt(It({h:wa(f,l),s:Ca(f,l),v:Aa(f,l)}));t.push(c)}return n.theme==="dark"?X0.map(function(d){var x=d.index,u=d.opacity,h=qt(Q0(It(n.backgroundColor||"#141414"),It(t[x]),u*100));return h}):t}var cn={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"},fn={},dn={};Object.keys(cn).forEach(function(e){fn[e]=sn(cn[e]),fn[e].primary=fn[e][5],dn[e]=sn(cn[e],{theme:"dark",backgroundColor:"#141414"}),dn[e].primary=dn[e][5]});var ka=[],Ot=[],J0="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function el(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function tl(e,n){if(n=n||{},e===void 0)throw new Error(J0);var t=n.prepend===!0?"prepend":"append",o=n.container!==void 0?n.container:document.querySelector("head"),r=ka.indexOf(o);r===-1&&(r=ka.push(o)-1,Ot[r]={});var i;return Ot[r]!==void 0&&Ot[r][t]!==void 0?i=Ot[r][t]:(i=Ot[r][t]=el(),t==="prepend"?o.insertBefore(i,o.childNodes[0]):o.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function Ta(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){nl(e,r,t[r])})}return e}function nl(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ol(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function al(e,n){ol(e,"[@ant-design/icons-vue] ".concat(n))}function Ea(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function un(e,n,t){return t?a.h(e.tag,Ta({key:n},t,e.attrs),(e.children||[]).map(function(o,r){return un(o,"".concat(n,"-").concat(e.tag,"-").concat(r))})):a.h(e.tag,Ta({key:n},e.attrs),(e.children||[]).map(function(o,r){return un(o,"".concat(n,"-").concat(e.tag,"-").concat(r))}))}function Ba(e){return sn(e)[0]}function _a(e){return e?Array.isArray(e)?e:[e]:[]}var rl=`
|
|
1
|
+
/*! @ecan-bi/datav@1.2.79 */
|
|
2
|
+
(function(V,a){typeof exports=="object"&&typeof module<"u"?a(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"],a):(V=typeof globalThis<"u"?globalThis:V||self,a(V["@ecan/bi-datav"]={},V.Vue,V["echarts/core"],V.ResizeDetector,V.AntDesignVue,null,null,V.LodashEs,V.Dayjs,V.Axios,V.Mitt,null,null,null,V["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,V["echarts/renderers"],V["echarts/charts"],V["echarts/components"],null,V.Echarts,null,null,V.Xlsx,V.big.js))})(this,function(V,a,Fe,xa,ae,pd,bd,je,Ae,b0,v0,vd,Sd,wd,ya,Cd,Ad,kd,Td,gt,et,me,Ed,S0,Bd,_d,Lt,w0){var s0,c0,f0,d0;"use strict";function C0(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const A0=C0(S0),k0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function T0(e,n){function t(r){return(...i)=>{if(e.value||n(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}function o(){const r=Object.create(null);return k0.forEach(i=>{r[i]=t(i)}),r}return o()}function E0(e,n,t){let o=null;a.watch([t,e,n],([r,i,s],l,f)=>{r&&i&&s&&(o=Fe.throttle(()=>{i.resize()},100),xa.addListener(r,o)),f(()=>{o&&r&&xa.removeListener(r,o)})})}const B0={autoresize:Boolean},_0="ecLoadingOptions";function D0(e,n,t){const o=a.inject(_0,{}),r=a.computed(()=>({...a.unref(o),...t==null?void 0:t.value}));a.watchEffect(()=>{const i=e.value;i&&(n.value?i.showLoading(r.value):i.hideLoading())})}const R0={loading:Boolean,loadingOptions:Object},Dd="",I0=/^on[^a-z]/,O0=e=>I0.test(e);function L0(e){const n={};for(const t in e)O0(t)||(n[t]=e[t]);return n}const N0="x-vue-echarts",z0="ecTheme",M0="ecInitOptions",F0="ecUpdateOptions",at=a.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...B0,...R0},inheritAttrs:!1,setup(e,{attrs:n,listeners:t}){const o=a.shallowRef(),r=a.shallowRef(),i=a.shallowRef(),s=a.inject(z0,null),l=a.inject(M0,null),f=a.inject(F0,null),{autoresize:c,manualUpdate:d,loading:x,loadingOptions:h}=a.toRefs(e),u=a.computed(()=>i.value||e.option||Object.create(null)),m=a.computed(()=>e.theme||a.unref(s)||{}),g=a.computed(()=>e.initOptions||a.unref(l)||{}),S=a.computed(()=>e.updateOptions||a.unref(f)||{}),A=a.computed(()=>L0(n));function y(C){if(r.value||!o.value)return;const B=r.value=Fe.init(o.value,m.value,g.value);e.group&&(B.group=e.group);let _=t;_||(_={},Object.keys(n).filter(z=>z.indexOf("on")===0&&z.length>2).forEach(z=>{const k=z.charAt(2).toLowerCase()+z.slice(3);_[k]=n[z]})),Object.keys(_).forEach(z=>{const k=_[z];k&&(z.indexOf("zr:")===0?B.getZr().on(z.slice(3).toLowerCase(),k):B.on(z.toLowerCase(),k))});function v(){if(B&&!B.isDisposed())try{B.resize()}catch(z){if(z.message==="Cannot read property 'get' of undefined")return;throw z}}function E(){B.setOption(C||u.value,S.value)}c.value?a.nextTick(()=>{v(),E()}):E()}function b(C,B){e.manualUpdate&&(i.value=C),r.value?r.value.setOption(C,B||{}):y(C)}function p(){r.value&&(r.value.dispose(),r.value=void 0)}let T=null;a.watch(d,C=>{typeof T=="function"&&(T(),T=null),C||(T=a.watch(()=>e.option,B=>{B&&(r.value?r.value.setOption(B,S.value):y())},{deep:!0}))},{immediate:!0}),a.watch([m,g],()=>{p(),y()},{deep:!0}),a.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const w=T0(r,y);return D0(r,x,h),E0(r,c,o),a.onMounted(()=>{e.option&&y()}),a.onUnmounted(p),{chart:r,root:o,setOption:b,nonEventAttrs:A,...w}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",a.h(N0,e)}});function Ge(e,n){P0(e)&&(e="100%");var t=H0(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function P0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function H0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function q0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ht(e){return e<=1?"".concat(Number(e)*100,"%"):e}function an(e){return e.length===1?"0"+e:String(e)}function V0(e,n,t){return{r:Ge(e,255)*255,g:Ge(n,255)*255,b:Ge(t,255)*255}}function rn(e,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(n-e)*(6*t):t<1/2?n:t<2/3?e+(n-e)*(2/3-t)*6:e}function j0(e,n,t){var o,r,i;if(e=Ge(e,360),n=Ge(n,100),t=Ge(t,100),n===0)r=t,i=t,o=t;else{var s=t<.5?t*(1+n):t+n-t*n,l=2*t-s;o=rn(l,s,e+1/3),r=rn(l,s,e),i=rn(l,s,e-1/3)}return{r:o*255,g:r*255,b:i*255}}function G0(e,n,t){e=Ge(e,255),n=Ge(n,255),t=Ge(t,255);var o=Math.max(e,n,t),r=Math.min(e,n,t),i=0,s=o,l=o-r,f=o===0?0:l/o;if(o===r)i=0;else{switch(o){case e:i=(n-t)/l+(n<t?6:0);break;case n:i=(t-e)/l+2;break;case t:i=(e-n)/l+4;break}i/=6}return{h:i,s:f,v:s}}function W0(e,n,t){e=Ge(e,360)*6,n=Ge(n,100),t=Ge(t,100);var o=Math.floor(e),r=e-o,i=t*(1-n),s=t*(1-r*n),l=t*(1-(1-r)*n),f=o%6,c=[t,s,i,i,l,t][f],d=[l,t,t,s,i,i][f],x=[i,i,l,t,t,s][f];return{r:c*255,g:d*255,b:x*255}}function U0(e,n,t,o){var r=[an(Math.round(e).toString(16)),an(Math.round(n).toString(16)),an(Math.round(t).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function pa(e){return Pe(e)/255}function Pe(e){return parseInt(e,16)}var ba={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 Nt(e){var n={r:0,g:0,b:0},t=1,o=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=Y0(e)),typeof e=="object"&&(tt(e.r)&&tt(e.g)&&tt(e.b)?(n=V0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):tt(e.h)&&tt(e.s)&&tt(e.v)?(o=Ht(e.s),r=Ht(e.v),n=W0(e.h,o,r),s=!0,l="hsv"):tt(e.h)&&tt(e.s)&&tt(e.l)&&(o=Ht(e.s),i=Ht(e.l),n=j0(e.h,o,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=q0(t),{ok:s,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:t}}var $0="[-\\+]?\\d+%?",Z0="[-\\+]?\\d*\\.\\d+%?",rt="(?:".concat(Z0,")|(?:").concat($0,")"),ln="[\\s|\\(]+(".concat(rt,")[,|\\s]+(").concat(rt,")[,|\\s]+(").concat(rt,")\\s*\\)?"),sn="[\\s|\\(]+(".concat(rt,")[,|\\s]+(").concat(rt,")[,|\\s]+(").concat(rt,")[,|\\s]+(").concat(rt,")\\s*\\)?"),$e={CSS_UNIT:new RegExp(rt),rgb:new RegExp("rgb"+ln),rgba:new RegExp("rgba"+sn),hsl:new RegExp("hsl"+ln),hsla:new RegExp("hsla"+sn),hsv:new RegExp("hsv"+ln),hsva:new RegExp("hsva"+sn),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 Y0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(ba[e])e=ba[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=$e.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=$e.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=$e.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=$e.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=$e.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=$e.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=$e.hex8.exec(e),t?{r:Pe(t[1]),g:Pe(t[2]),b:Pe(t[3]),a:pa(t[4]),format:n?"name":"hex8"}:(t=$e.hex6.exec(e),t?{r:Pe(t[1]),g:Pe(t[2]),b:Pe(t[3]),format:n?"name":"hex"}:(t=$e.hex4.exec(e),t?{r:Pe(t[1]+t[1]),g:Pe(t[2]+t[2]),b:Pe(t[3]+t[3]),a:pa(t[4]+t[4]),format:n?"name":"hex8"}:(t=$e.hex3.exec(e),t?{r:Pe(t[1]+t[1]),g:Pe(t[2]+t[2]),b:Pe(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function tt(e){return!!$e.CSS_UNIT.exec(String(e))}var qt=2,va=.16,K0=.05,X0=.05,Q0=.15,Sa=5,wa=4,J0=[{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 Ca(e){var n=e.r,t=e.g,o=e.b,r=G0(n,t,o);return{h:r.h*360,s:r.s,v:r.v}}function Vt(e){var n=e.r,t=e.g,o=e.b;return"#".concat(U0(n,t,o,!1))}function el(e,n,t){var o=t/100,r={r:(n.r-e.r)*o+e.r,g:(n.g-e.g)*o+e.g,b:(n.b-e.b)*o+e.b};return r}function Aa(e,n,t){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=t?Math.round(e.h)-qt*n:Math.round(e.h)+qt*n:o=t?Math.round(e.h)+qt*n:Math.round(e.h)-qt*n,o<0?o+=360:o>=360&&(o-=360),o}function ka(e,n,t){if(e.h===0&&e.s===0)return e.s;var o;return t?o=e.s-va*n:n===wa?o=e.s+va:o=e.s+K0*n,o>1&&(o=1),t&&n===Sa&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function Ta(e,n,t){var o;return t?o=e.v+X0*n:o=e.v-Q0*n,o>1&&(o=1),Number(o.toFixed(2))}function cn(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],o=Nt(e),r=Sa;r>0;r-=1){var i=Ca(o),s=Vt(Nt({h:Aa(i,r,!0),s:ka(i,r,!0),v:Ta(i,r,!0)}));t.push(s)}t.push(Vt(o));for(var l=1;l<=wa;l+=1){var f=Ca(o),c=Vt(Nt({h:Aa(f,l),s:ka(f,l),v:Ta(f,l)}));t.push(c)}return n.theme==="dark"?J0.map(function(d){var x=d.index,h=d.opacity,u=Vt(el(Nt(n.backgroundColor||"#141414"),Nt(t[x]),h*100));return u}):t}var fn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},dn={},un={};Object.keys(fn).forEach(function(e){dn[e]=cn(fn[e]),dn[e].primary=dn[e][5],un[e]=cn(fn[e],{theme:"dark",backgroundColor:"#141414"}),un[e].primary=un[e][5]});var Ea=[],zt=[],tl="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function nl(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function ol(e,n){if(n=n||{},e===void 0)throw new Error(tl);var t=n.prepend===!0?"prepend":"append",o=n.container!==void 0?n.container:document.querySelector("head"),r=Ea.indexOf(o);r===-1&&(r=Ea.push(o)-1,zt[r]={});var i;return zt[r]!==void 0&&zt[r][t]!==void 0?i=zt[r][t]:(i=zt[r][t]=nl(),t==="prepend"?o.insertBefore(i,o.childNodes[0]):o.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function Ba(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){al(e,r,t[r])})}return e}function al(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function rl(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function il(e,n){rl(e,"[@ant-design/icons-vue] ".concat(n))}function _a(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function hn(e,n,t){return t?a.h(e.tag,Ba({key:n},t,e.attrs),(e.children||[]).map(function(o,r){return hn(o,"".concat(n,"-").concat(e.tag,"-").concat(r))})):a.h(e.tag,Ba({key:n},e.attrs),(e.children||[]).map(function(o,r){return hn(o,"".concat(n,"-").concat(e.tag,"-").concat(r))}))}function Da(e){return cn(e)[0]}function Ra(e){return e?Array.isArray(e)?e:[e]:[]}var ll=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
5
5
|
color: inherit;
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
transform: rotate(360deg);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wl(e,n){if(e){if(typeof e=="string")return Oa(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Oa(e,n)}}function Oa(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function Cl(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],r=!0,i=!1,s,l;try{for(t=t.call(e);!(r=(s=t.next()).done)&&(o.push(s.value),!(n&&o.length===n));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return o}}function Al(e){if(Array.isArray(e))return e}function La(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){gn(e,r,t[r])})}return e}function gn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function kl(e,n){if(e==null)return{};var t=Tl(e,n),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}function Tl(e,n){if(e==null)return{};var t={},o=Object.keys(e),r,i;for(i=0;i<o.length;i++)r=o[i],!(n.indexOf(r)>=0)&&(t[r]=e[r]);return t}Ia("#1890ff");var yt=function(n,t){var o,r=La({},n,t.attrs),i=r.class,s=r.icon,l=r.spin,f=r.rotate,c=r.tabindex,d=r.twoToneColor,x=r.onClick,u=kl(r,bl),h=(o={anticon:!0},gn(o,"anticon-".concat(s.name),!!s.name),gn(o,i,i),o),g=l===""||l||s.name==="loading"?"anticon-spin":"",m=c;m===void 0&&x&&(m=-1,u.tabindex=m);var S=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,k=_a(d),y=vl(k,2),p=y[0],b=y[1];return a.createVNode("span",La({role:"img","aria-label":s.name},u,{onClick:x,class:h}),[a.createVNode(hn,{class:g,icon:s,primaryColor:p,secondaryColor:b,style:S},null)])};yt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},yt.displayName="AntdIcon",yt.inheritAttrs=!1,yt.getTwoToneColor=pl,yt.setTwoToneColor=Ia;const Na=yt;var El={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 Bl=El;function za(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){_l(e,r,t[r])})}return e}function _l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var mn=function(n,t){var o=za({},n,t.attrs);return a.createVNode(Na,za({},o,{icon:Bl}),null)};mn.displayName="CloseOutlined",mn.inheritAttrs=!1;const Dl=mn;var Rl={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 Il=Rl;function Ma(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){Ol(e,r,t[r])})}return e}function Ol(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var xn=function(n,t){var o=Ma({},n,t.attrs);return a.createVNode(Na,Ma({},o,{icon:Il}),null)};xn.displayName="LoadingOutlined",xn.inheritAttrs=!1;const Ll=xn,Nl=a.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ae.Spin},setup(){return{indicator:a.h(Ll,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),_d="",ce=(e,n)=>{const t=e.__vccOpts||e;for(const[o,r]of n)t[o]=r;return t},zl={class:"spin-wrapper"};function Ml(e,n,t,o,r,i){const s=a.resolveComponent("a-spin");return a.openBlock(),a.createElementBlock("div",zl,[e.spinning?(a.openBlock(),a.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):a.renderSlot(e.$slots,"default",{key:1})])}const pt=ce(Nl,[["render",Ml]]),Fl=a.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ae.Skeleton}});function Pl(e,n,t,o,r,i){const s=a.resolveComponent("a-skeleton");return a.openBlock(),a.createBlock(s,{active:"",loading:e.loading},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const jt=ce(Fl,[["render",Pl]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const fe=(e,n)=>{if(e.install=t=>{for(const o of[e,...Object.values(n??{})])t.component(o.name,o)},n)for(const[t,o]of Object.entries(n))e[t]=o;return e},me={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"},de=e=>{const n={};if(typeof e=="object"&&e!=null)for(const t in e){const o=e[t];n[t]={type:o==null?void 0:o.constructor,default:o}}return n},yn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},pn=de(yn),Hl=["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"],ue=(e,n=[])=>{const t=Ge.without(Hl,...n);return a.computed(()=>Ge.pick(e,t))},bn="EVENT_BUS",Ie="GLOBAL_CONFIG",we="GLOBAL_MODEL",_e="REQUEST_MODEL",Fa="GLOBAL_TOKEN",Nt="REFRESH_PAGE",Pa="MODAL_MODEL",Ha="LOADED_DATA",Ye=18,qa="ygt",Va=(i0=window==null?void 0:window.config)==null?void 0:i0.indicatorURL;(l0=window==null?void 0:window.config)!=null&&l0.uploadPath;const ja=((s0=window==null?void 0:window.config)==null?void 0:s0.routerBaseURL)||"./",ql=((c0=window==null?void 0:window.config)==null?void 0:c0.erdURL)||"",Te=(e,n)=>{a.watch(()=>e.id,t=>{const o=a.inject(bn,{onEvent:(r,i)=>{}});t!=null&&t!==""&&o.onEvent(t,n)},{immediate:!0})},ve=e=>{const n=e.events,t=e.id,o=a.inject(bn,{emitEvent:(i,s)=>{}}),{touchEventId:r}=a.inject(Ie,{touchEventId:a.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=o;n.forEach(f=>{if(i===f.on)try{r.value=t,l(f.target,f.emit)}catch(c){console.error(c)}})}},bt=(e,n)=>{let{name:t="name",value:o="value",type:r="type"}=n||{};t=t==null?void 0:t.trim(),o=o==null?void 0:o.trim(),r=r==null?void 0:r.trim();const i=new Map,s=e.length;for(let c=0;c<s;c++){const d=e[c],x=d[t]||"",u=d[o]||"",h=d[r]||"";if(i.has(h)){const g=i.get(h);g.push({name:x,value:u,...d}),i.set(h,g)}else i.set(h,[{name:x,value:u,...d}])}const l=[],f=[];for(const[c,d]of i)if(f.push({name:c,data:d}),d!=null&&d.length)if(l.length)for(const x of d)l.includes(x.name)||l.push(x.name);else l.push(...d.map(x=>x.name));return{dimensions:l,dataset:f}};var re=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ga(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vl(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function o(){return this instanceof o?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),t}var Wa={exports:{}};function jl(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 vn={exports:{}};const Gl=Vl(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ua;function se(){return Ua||(Ua=1,function(e,n){(function(t,o){e.exports=o()})(re,function(){var t=t||function(o,r){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof re<"u"&&re.crypto&&(i=re.crypto),!i&&typeof jl=="function")try{i=Gl}catch{}var s=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function y(){}return function(p){var b;return y.prototype=p,b=new y,y.prototype=null,b}}(),f={},c=f.lib={},d=c.Base=function(){return{extend:function(y){var p=l(this);return y&&p.mixIn(y),(!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 y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var p in y)y.hasOwnProperty(p)&&(this[p]=y[p]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=c.WordArray=d.extend({init:function(y,p){y=this.words=y||[],p!=r?this.sigBytes=p:this.sigBytes=y.length*4},toString:function(y){return(y||h).stringify(this)},concat:function(y){var p=this.words,b=y.words,C=this.sigBytes,v=y.sigBytes;if(this.clamp(),C%4)for(var T=0;T<v;T++){var E=b[T>>>2]>>>24-T%4*8&255;p[C+T>>>2]|=E<<24-(C+T)%4*8}else for(var _=0;_<v;_+=4)p[C+_>>>2]=b[_>>>2];return this.sigBytes+=v,this},clamp:function(){var y=this.words,p=this.sigBytes;y[p>>>2]&=4294967295<<32-p%4*8,y.length=o.ceil(p/4)},clone:function(){var y=d.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var p=[],b=0;b<y;b+=4)p.push(s());return new x.init(p,y)}}),u=f.enc={},h=u.Hex={stringify:function(y){for(var p=y.words,b=y.sigBytes,C=[],v=0;v<b;v++){var T=p[v>>>2]>>>24-v%4*8&255;C.push((T>>>4).toString(16)),C.push((T&15).toString(16))}return C.join("")},parse:function(y){for(var p=y.length,b=[],C=0;C<p;C+=2)b[C>>>3]|=parseInt(y.substr(C,2),16)<<24-C%8*4;return new x.init(b,p/2)}},g=u.Latin1={stringify:function(y){for(var p=y.words,b=y.sigBytes,C=[],v=0;v<b;v++){var T=p[v>>>2]>>>24-v%4*8&255;C.push(String.fromCharCode(T))}return C.join("")},parse:function(y){for(var p=y.length,b=[],C=0;C<p;C++)b[C>>>2]|=(y.charCodeAt(C)&255)<<24-C%4*8;return new x.init(b,p)}},m=u.Utf8={stringify:function(y){try{return decodeURIComponent(escape(g.stringify(y)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(y){return g.parse(unescape(encodeURIComponent(y)))}},S=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=m.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var p,b=this._data,C=b.words,v=b.sigBytes,T=this.blockSize,E=T*4,_=v/E;y?_=o.ceil(_):_=o.max((_|0)-this._minBufferSize,0);var w=_*T,B=o.min(w*4,v);if(w){for(var L=0;L<w;L+=T)this._doProcessBlock(C,L);p=C.splice(0,w),b.sigBytes-=B}return new x.init(p,B)},clone:function(){var y=d.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});c.Hasher=S.extend({cfg:d.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var p=this._doFinalize();return p},blockSize:16,_createHelper:function(y){return function(p,b){return new y.init(b).finalize(p)}},_createHmacHelper:function(y){return function(p,b){return new k.HMAC.init(y,b).finalize(p)}}});var k=f.algo={};return f}(Math);return t})}(vn)),vn.exports}var Sn={exports:{}},$a;function Gt(){return $a||($a=1,function(e,n){(function(t,o){e.exports=o(se())})(re,function(t){return function(o){var r=t,i=r.lib,s=i.Base,l=i.WordArray,f=r.x64={};f.Word=s.extend({init:function(c,d){this.high=c,this.low=d}}),f.WordArray=s.extend({init:function(c,d){c=this.words=c||[],d!=o?this.sigBytes=d:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,d=c.length,x=[],u=0;u<d;u++){var h=c[u];x.push(h.high),x.push(h.low)}return l.create(x,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),d=c.words=this.words.slice(0),x=d.length,u=0;u<x;u++)d[u]=d[u].clone();return c}})}(),t})}(Sn)),Sn.exports}var wn={exports:{}},Za;function Wl(){return Za||(Za=1,function(e,n){(function(t,o){e.exports=o(se())})(re,function(t){return function(){if(typeof ArrayBuffer=="function"){var o=t,r=o.lib,i=r.WordArray,s=i.init,l=i.init=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),(f instanceof Int8Array||typeof Uint8ClampedArray<"u"&&f instanceof Uint8ClampedArray||f instanceof Int16Array||f instanceof Uint16Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array)&&(f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength)),f instanceof Uint8Array){for(var c=f.byteLength,d=[],x=0;x<c;x++)d[x>>>2]|=f[x]<<24-x%4*8;s.call(this,d,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(wn)),wn.exports}var Cn={exports:{}},Ya;function Ul(){return Ya||(Ya=1,function(e,n){(function(t,o){e.exports=o(se())})(re,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=o.enc;s.Utf16=s.Utf16BE={stringify:function(f){for(var c=f.words,d=f.sigBytes,x=[],u=0;u<d;u+=2){var h=c[u>>>2]>>>16-u%4*8&65535;x.push(String.fromCharCode(h))}return x.join("")},parse:function(f){for(var c=f.length,d=[],x=0;x<c;x++)d[x>>>1]|=f.charCodeAt(x)<<16-x%2*16;return i.create(d,c*2)}},s.Utf16LE={stringify:function(f){for(var c=f.words,d=f.sigBytes,x=[],u=0;u<d;u+=2){var h=l(c[u>>>2]>>>16-u%4*8&65535);x.push(String.fromCharCode(h))}return x.join("")},parse:function(f){for(var c=f.length,d=[],x=0;x<c;x++)d[x>>>1]|=l(f.charCodeAt(x)<<16-x%2*16);return i.create(d,c*2)}};function l(f){return f<<8&4278255360|f>>>8&16711935}}(),t.enc.Utf16})}(Cn)),Cn.exports}var An={exports:{}},Ka;function vt(){return Ka||(Ka=1,function(e,n){(function(t,o){e.exports=o(se())})(re,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=o.enc;s.Base64={stringify:function(f){var c=f.words,d=f.sigBytes,x=this._map;f.clamp();for(var u=[],h=0;h<d;h+=3)for(var g=c[h>>>2]>>>24-h%4*8&255,m=c[h+1>>>2]>>>24-(h+1)%4*8&255,S=c[h+2>>>2]>>>24-(h+2)%4*8&255,k=g<<16|m<<8|S,y=0;y<4&&h+y*.75<d;y++)u.push(x.charAt(k>>>6*(3-y)&63));var p=x.charAt(64);if(p)for(;u.length%4;)u.push(p);return u.join("")},parse:function(f){var c=f.length,d=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var u=0;u<d.length;u++)x[d.charCodeAt(u)]=u}var h=d.charAt(64);if(h){var g=f.indexOf(h);g!==-1&&(c=g)}return l(f,c,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(f,c,d){for(var x=[],u=0,h=0;h<c;h++)if(h%4){var g=d[f.charCodeAt(h-1)]<<h%4*2,m=d[f.charCodeAt(h)]>>>6-h%4*2,S=g|m;x[u>>>2]|=S<<24-u%4*8,u++}return i.create(x,u)}}(),t.enc.Base64})}(An)),An.exports}var kn={exports:{}},Xa;function $l(){return Xa||(Xa=1,function(e,n){(function(t,o){e.exports=o(se())})(re,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=o.enc;s.Base64url={stringify:function(f,c=!0){var d=f.words,x=f.sigBytes,u=c?this._safe_map:this._map;f.clamp();for(var h=[],g=0;g<x;g+=3)for(var m=d[g>>>2]>>>24-g%4*8&255,S=d[g+1>>>2]>>>24-(g+1)%4*8&255,k=d[g+2>>>2]>>>24-(g+2)%4*8&255,y=m<<16|S<<8|k,p=0;p<4&&g+p*.75<x;p++)h.push(u.charAt(y>>>6*(3-p)&63));var b=u.charAt(64);if(b)for(;h.length%4;)h.push(b);return h.join("")},parse:function(f,c=!0){var d=f.length,x=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h<x.length;h++)u[x.charCodeAt(h)]=h}var g=x.charAt(64);if(g){var m=f.indexOf(g);m!==-1&&(d=m)}return l(f,d,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(f,c,d){for(var x=[],u=0,h=0;h<c;h++)if(h%4){var g=d[f.charCodeAt(h-1)]<<h%4*2,m=d[f.charCodeAt(h)]>>>6-h%4*2,S=g|m;x[u>>>2]|=S<<24-u%4*8,u++}return i.create(x,u)}}(),t.enc.Base64url})}(kn)),kn.exports}var Tn={exports:{}},Qa;function St(){return Qa||(Qa=1,function(e,n){(function(t,o){e.exports=o(se())})(re,function(t){return function(o){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[];(function(){for(var m=0;m<64;m++)c[m]=o.abs(o.sin(m+1))*4294967296|0})();var d=f.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,S){for(var k=0;k<16;k++){var y=S+k,p=m[y];m[y]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var b=this._hash.words,C=m[S+0],v=m[S+1],T=m[S+2],E=m[S+3],_=m[S+4],w=m[S+5],B=m[S+6],L=m[S+7],A=m[S+8],O=m[S+9],H=m[S+10],R=m[S+11],F=m[S+12],D=m[S+13],z=m[S+14],q=m[S+15],N=b[0],P=b[1],I=b[2],M=b[3];N=x(N,P,I,M,C,7,c[0]),M=x(M,N,P,I,v,12,c[1]),I=x(I,M,N,P,T,17,c[2]),P=x(P,I,M,N,E,22,c[3]),N=x(N,P,I,M,_,7,c[4]),M=x(M,N,P,I,w,12,c[5]),I=x(I,M,N,P,B,17,c[6]),P=x(P,I,M,N,L,22,c[7]),N=x(N,P,I,M,A,7,c[8]),M=x(M,N,P,I,O,12,c[9]),I=x(I,M,N,P,H,17,c[10]),P=x(P,I,M,N,R,22,c[11]),N=x(N,P,I,M,F,7,c[12]),M=x(M,N,P,I,D,12,c[13]),I=x(I,M,N,P,z,17,c[14]),P=x(P,I,M,N,q,22,c[15]),N=u(N,P,I,M,v,5,c[16]),M=u(M,N,P,I,B,9,c[17]),I=u(I,M,N,P,R,14,c[18]),P=u(P,I,M,N,C,20,c[19]),N=u(N,P,I,M,w,5,c[20]),M=u(M,N,P,I,H,9,c[21]),I=u(I,M,N,P,q,14,c[22]),P=u(P,I,M,N,_,20,c[23]),N=u(N,P,I,M,O,5,c[24]),M=u(M,N,P,I,z,9,c[25]),I=u(I,M,N,P,E,14,c[26]),P=u(P,I,M,N,A,20,c[27]),N=u(N,P,I,M,D,5,c[28]),M=u(M,N,P,I,T,9,c[29]),I=u(I,M,N,P,L,14,c[30]),P=u(P,I,M,N,F,20,c[31]),N=h(N,P,I,M,w,4,c[32]),M=h(M,N,P,I,A,11,c[33]),I=h(I,M,N,P,R,16,c[34]),P=h(P,I,M,N,z,23,c[35]),N=h(N,P,I,M,v,4,c[36]),M=h(M,N,P,I,_,11,c[37]),I=h(I,M,N,P,L,16,c[38]),P=h(P,I,M,N,H,23,c[39]),N=h(N,P,I,M,D,4,c[40]),M=h(M,N,P,I,C,11,c[41]),I=h(I,M,N,P,E,16,c[42]),P=h(P,I,M,N,B,23,c[43]),N=h(N,P,I,M,O,4,c[44]),M=h(M,N,P,I,F,11,c[45]),I=h(I,M,N,P,q,16,c[46]),P=h(P,I,M,N,T,23,c[47]),N=g(N,P,I,M,C,6,c[48]),M=g(M,N,P,I,L,10,c[49]),I=g(I,M,N,P,z,15,c[50]),P=g(P,I,M,N,w,21,c[51]),N=g(N,P,I,M,F,6,c[52]),M=g(M,N,P,I,E,10,c[53]),I=g(I,M,N,P,H,15,c[54]),P=g(P,I,M,N,v,21,c[55]),N=g(N,P,I,M,A,6,c[56]),M=g(M,N,P,I,q,10,c[57]),I=g(I,M,N,P,B,15,c[58]),P=g(P,I,M,N,D,21,c[59]),N=g(N,P,I,M,_,6,c[60]),M=g(M,N,P,I,R,10,c[61]),I=g(I,M,N,P,T,15,c[62]),P=g(P,I,M,N,O,21,c[63]),b[0]=b[0]+N|0,b[1]=b[1]+P|0,b[2]=b[2]+I|0,b[3]=b[3]+M|0},_doFinalize:function(){var m=this._data,S=m.words,k=this._nDataBytes*8,y=m.sigBytes*8;S[y>>>5]|=128<<24-y%32;var p=o.floor(k/4294967296),b=k;S[(y+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,S[(y+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,m.sigBytes=(S.length+1)*4,this._process();for(var C=this._hash,v=C.words,T=0;T<4;T++){var E=v[T];v[T]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}return C},clone:function(){var m=l.clone.call(this);return m._hash=this._hash.clone(),m}});function x(m,S,k,y,p,b,C){var v=m+(S&k|~S&y)+p+C;return(v<<b|v>>>32-b)+S}function u(m,S,k,y,p,b,C){var v=m+(S&y|k&~y)+p+C;return(v<<b|v>>>32-b)+S}function h(m,S,k,y,p,b,C){var v=m+(S^k^y)+p+C;return(v<<b|v>>>32-b)+S}function g(m,S,k,y,p,b,C){var v=m+(k^(S|~y))+p+C;return(v<<b|v>>>32-b)+S}r.MD5=l._createHelper(d),r.HmacMD5=l._createHmacHelper(d)}(Math),t.MD5})}(Tn)),Tn.exports}var En={exports:{}},Ja;function Bn(){return Ja||(Ja=1,function(e,n){(function(t,o){e.exports=o(se())})(re,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=r.Hasher,l=o.algo,f=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,x){for(var u=this._hash.words,h=u[0],g=u[1],m=u[2],S=u[3],k=u[4],y=0;y<80;y++){if(y<16)f[y]=d[x+y]|0;else{var p=f[y-3]^f[y-8]^f[y-14]^f[y-16];f[y]=p<<1|p>>>31}var b=(h<<5|h>>>27)+k+f[y];y<20?b+=(g&m|~g&S)+1518500249:y<40?b+=(g^m^S)+1859775393:y<60?b+=(g&m|g&S|m&S)-1894007588:b+=(g^m^S)-899497514,k=S,S=m,m=g<<30|g>>>2,g=h,h=b}u[0]=u[0]+h|0,u[1]=u[1]+g|0,u[2]=u[2]+m|0,u[3]=u[3]+S|0,u[4]=u[4]+k|0},_doFinalize:function(){var d=this._data,x=d.words,u=this._nDataBytes*8,h=d.sigBytes*8;return x[h>>>5]|=128<<24-h%32,x[(h+64>>>9<<4)+14]=Math.floor(u/4294967296),x[(h+64>>>9<<4)+15]=u,d.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var d=s.clone.call(this);return d._hash=this._hash.clone(),d}});o.SHA1=s._createHelper(c),o.HmacSHA1=s._createHmacHelper(c)}(),t.SHA1})}(En)),En.exports}var _n={exports:{}},er;function tr(){return er||(er=1,function(e,n){(function(t,o){e.exports=o(se())})(re,function(t){return function(o){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[],d=[];(function(){function h(k){for(var y=o.sqrt(k),p=2;p<=y;p++)if(!(k%p))return!1;return!0}function g(k){return(k-(k|0))*4294967296|0}for(var m=2,S=0;S<64;)h(m)&&(S<8&&(c[S]=g(o.pow(m,1/2))),d[S]=g(o.pow(m,1/3)),S++),m++})();var x=[],u=f.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(h,g){for(var m=this._hash.words,S=m[0],k=m[1],y=m[2],p=m[3],b=m[4],C=m[5],v=m[6],T=m[7],E=0;E<64;E++){if(E<16)x[E]=h[g+E]|0;else{var _=x[E-15],w=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,B=x[E-2],L=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;x[E]=w+x[E-7]+L+x[E-16]}var A=b&C^~b&v,O=S&k^S&y^k&y,H=(S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22),R=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),F=T+R+A+d[E]+x[E],D=H+O;T=v,v=C,C=b,b=p+F|0,p=y,y=k,k=S,S=F+D|0}m[0]=m[0]+S|0,m[1]=m[1]+k|0,m[2]=m[2]+y|0,m[3]=m[3]+p|0,m[4]=m[4]+b|0,m[5]=m[5]+C|0,m[6]=m[6]+v|0,m[7]=m[7]+T|0},_doFinalize:function(){var h=this._data,g=h.words,m=this._nDataBytes*8,S=h.sigBytes*8;return g[S>>>5]|=128<<24-S%32,g[(S+64>>>9<<4)+14]=o.floor(m/4294967296),g[(S+64>>>9<<4)+15]=m,h.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA256=l._createHelper(u),r.HmacSHA256=l._createHmacHelper(u)}(Math),t.SHA256})}(_n)),_n.exports}var Dn={exports:{}},nr;function Zl(){return nr||(nr=1,function(e,n){(function(t,o,r){e.exports=o(se(),tr())})(re,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=o.algo,l=s.SHA256,f=s.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});o.SHA224=l._createHelper(f),o.HmacSHA224=l._createHmacHelper(f)}(),t.SHA224})}(Dn)),Dn.exports}var Rn={exports:{}},or;function ar(){return or||(or=1,function(e,n){(function(t,o,r){e.exports=o(se(),Gt())})(re,function(t){return function(){var o=t,r=o.lib,i=r.Hasher,s=o.x64,l=s.Word,f=s.WordArray,c=o.algo;function d(){return l.create.apply(l,arguments)}var x=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],u=[];(function(){for(var g=0;g<80;g++)u[g]=d()})();var h=c.SHA512=i.extend({_doReset:function(){this._hash=new f.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(g,m){for(var S=this._hash.words,k=S[0],y=S[1],p=S[2],b=S[3],C=S[4],v=S[5],T=S[6],E=S[7],_=k.high,w=k.low,B=y.high,L=y.low,A=p.high,O=p.low,H=b.high,R=b.low,F=C.high,D=C.low,z=v.high,q=v.low,N=T.high,P=T.low,I=E.high,M=E.low,Y=_,U=w,Z=B,j=L,J=A,oe=O,pe=H,Ee=R,xe=F,he=D,Le=z,Ve=q,Ne=N,ze=P,nt=I,W=M,$=0;$<80;$++){var K,X,Q=u[$];if($<16)X=Q.high=g[m+$*2]|0,K=Q.low=g[m+$*2+1]|0;else{var te=u[$-15],ee=te.high,le=te.low,ye=(ee>>>1|le<<31)^(ee>>>8|le<<24)^ee>>>7,be=(le>>>1|ee<<31)^(le>>>8|ee<<24)^(le>>>7|ee<<25),Fe=u[$-2],Re=Fe.high,Be=Fe.low,Mt=(Re>>>19|Be<<13)^(Re<<3|Be>>>29)^Re>>>6,Ft=(Be>>>19|Re<<13)^(Be<<3|Re>>>29)^(Be>>>6|Re<<26),nn=u[$-7],rd=nn.high,id=nn.low,f0=u[$-16],ld=f0.high,d0=f0.low;K=be+id,X=ye+rd+(K>>>0<be>>>0?1:0),K=K+Ft,X=X+Mt+(K>>>0<Ft>>>0?1:0),K=K+d0,X=X+ld+(K>>>0<d0>>>0?1:0),Q.high=X,Q.low=K}var sd=xe&Le^~xe&Ne,u0=he&Ve^~he&ze,cd=Y&Z^Y&J^Z&J,fd=U&j^U&oe^j&oe,dd=(Y>>>28|U<<4)^(Y<<30|U>>>2)^(Y<<25|U>>>7),h0=(U>>>28|Y<<4)^(U<<30|Y>>>2)^(U<<25|Y>>>7),ud=(xe>>>14|he<<18)^(xe>>>18|he<<14)^(xe<<23|he>>>9),hd=(he>>>14|xe<<18)^(he>>>18|xe<<14)^(he<<23|xe>>>9),g0=x[$],gd=g0.high,m0=g0.low,je=W+hd,dt=nt+ud+(je>>>0<W>>>0?1:0),je=je+u0,dt=dt+sd+(je>>>0<u0>>>0?1:0),je=je+m0,dt=dt+gd+(je>>>0<m0>>>0?1:0),je=je+K,dt=dt+X+(je>>>0<K>>>0?1:0),x0=h0+fd,md=dd+cd+(x0>>>0<h0>>>0?1:0);nt=Ne,W=ze,Ne=Le,ze=Ve,Le=xe,Ve=he,he=Ee+je|0,xe=pe+dt+(he>>>0<Ee>>>0?1:0)|0,pe=J,Ee=oe,J=Z,oe=j,Z=Y,j=U,U=je+x0|0,Y=dt+md+(U>>>0<je>>>0?1:0)|0}w=k.low=w+U,k.high=_+Y+(w>>>0<U>>>0?1:0),L=y.low=L+j,y.high=B+Z+(L>>>0<j>>>0?1:0),O=p.low=O+oe,p.high=A+J+(O>>>0<oe>>>0?1:0),R=b.low=R+Ee,b.high=H+pe+(R>>>0<Ee>>>0?1:0),D=C.low=D+he,C.high=F+xe+(D>>>0<he>>>0?1:0),q=v.low=q+Ve,v.high=z+Le+(q>>>0<Ve>>>0?1:0),P=T.low=P+ze,T.high=N+Ne+(P>>>0<ze>>>0?1:0),M=E.low=M+W,E.high=I+nt+(M>>>0<W>>>0?1:0)},_doFinalize:function(){var g=this._data,m=g.words,S=this._nDataBytes*8,k=g.sigBytes*8;m[k>>>5]|=128<<24-k%32,m[(k+128>>>10<<5)+30]=Math.floor(S/4294967296),m[(k+128>>>10<<5)+31]=S,g.sigBytes=m.length*4,this._process();var y=this._hash.toX32();return y},clone:function(){var g=i.clone.call(this);return g._hash=this._hash.clone(),g},blockSize:1024/32});o.SHA512=i._createHelper(h),o.HmacSHA512=i._createHmacHelper(h)}(),t.SHA512})}(Rn)),Rn.exports}var In={exports:{}},rr;function Yl(){return rr||(rr=1,function(e,n){(function(t,o,r){e.exports=o(se(),Gt(),ar())})(re,function(t){return function(){var o=t,r=o.x64,i=r.Word,s=r.WordArray,l=o.algo,f=l.SHA512,c=l.SHA384=f.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var d=f._doFinalize.call(this);return d.sigBytes-=16,d}});o.SHA384=f._createHelper(c),o.HmacSHA384=f._createHmacHelper(c)}(),t.SHA384})}(In)),In.exports}var On={exports:{}},ir;function Kl(){return ir||(ir=1,function(e,n){(function(t,o,r){e.exports=o(se(),Gt())})(re,function(t){return function(o){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.x64,c=f.Word,d=r.algo,x=[],u=[],h=[];(function(){for(var S=1,k=0,y=0;y<24;y++){x[S+5*k]=(y+1)*(y+2)/2%64;var p=k%5,b=(2*S+3*k)%5;S=p,k=b}for(var S=0;S<5;S++)for(var k=0;k<5;k++)u[S+5*k]=k+(2*S+3*k)%5*5;for(var C=1,v=0;v<24;v++){for(var T=0,E=0,_=0;_<7;_++){if(C&1){var w=(1<<_)-1;w<32?E^=1<<w:T^=1<<w-32}C&128?C=C<<1^113:C<<=1}h[v]=c.create(T,E)}})();var g=[];(function(){for(var S=0;S<25;S++)g[S]=c.create()})();var m=d.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var S=this._state=[],k=0;k<25;k++)S[k]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(S,k){for(var y=this._state,p=this.blockSize/2,b=0;b<p;b++){var C=S[k+2*b],v=S[k+2*b+1];C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,v=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360;var T=y[b];T.high^=v,T.low^=C}for(var E=0;E<24;E++){for(var _=0;_<5;_++){for(var w=0,B=0,L=0;L<5;L++){var T=y[_+5*L];w^=T.high,B^=T.low}var A=g[_];A.high=w,A.low=B}for(var _=0;_<5;_++)for(var O=g[(_+4)%5],H=g[(_+1)%5],R=H.high,F=H.low,w=O.high^(R<<1|F>>>31),B=O.low^(F<<1|R>>>31),L=0;L<5;L++){var T=y[_+5*L];T.high^=w,T.low^=B}for(var D=1;D<25;D++){var w,B,T=y[D],z=T.high,q=T.low,N=x[D];N<32?(w=z<<N|q>>>32-N,B=q<<N|z>>>32-N):(w=q<<N-32|z>>>64-N,B=z<<N-32|q>>>64-N);var P=g[u[D]];P.high=w,P.low=B}var I=g[0],M=y[0];I.high=M.high,I.low=M.low;for(var _=0;_<5;_++)for(var L=0;L<5;L++){var D=_+5*L,T=y[D],Y=g[D],U=g[(_+1)%5+5*L],Z=g[(_+2)%5+5*L];T.high=Y.high^~U.high&Z.high,T.low=Y.low^~U.low&Z.low}var T=y[0],j=h[E];T.high^=j.high,T.low^=j.low}},_doFinalize:function(){var S=this._data,k=S.words;this._nDataBytes*8;var y=S.sigBytes*8,p=this.blockSize*32;k[y>>>5]|=1<<24-y%32,k[(o.ceil((y+1)/p)*p>>>5)-1]|=128,S.sigBytes=k.length*4,this._process();for(var b=this._state,C=this.cfg.outputLength/8,v=C/8,T=[],E=0;E<v;E++){var _=b[E],w=_.high,B=_.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,T.push(B),T.push(w)}return new s.init(T,C)},clone:function(){for(var S=l.clone.call(this),k=S._state=this._state.slice(0),y=0;y<25;y++)k[y]=k[y].clone();return S}});r.SHA3=l._createHelper(m),r.HmacSHA3=l._createHmacHelper(m)}(Math),t.SHA3})}(On)),On.exports}var Ln={exports:{}},lr;function Xl(){return lr||(lr=1,function(e,n){(function(t,o){e.exports=o(se())})(re,function(t){/** @preserve
|
|
56
|
+
`,Ia=!1,sl=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ll;a.nextTick(function(){Ia||(typeof window<"u"&&window.document&&window.document.documentElement&&ol(n,{prepend:!0}),Ia=!0)})},cl=["icon","primaryColor","secondaryColor"];function fl(e,n){if(e==null)return{};var t=dl(e,n),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}function dl(e,n){if(e==null)return{};var t={},o=Object.keys(e),r,i;for(i=0;i<o.length;i++)r=o[i],!(n.indexOf(r)>=0)&&(t[r]=e[r]);return t}function jt(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){ul(e,r,t[r])})}return e}function ul(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Mt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function hl(e){var n=e.primaryColor,t=e.secondaryColor;Mt.primaryColor=n,Mt.secondaryColor=t||Da(n),Mt.calculated=!!t}function gl(){return jt({},Mt)}var pt=function(n,t){var o=jt({},n,t.attrs),r=o.icon,i=o.primaryColor,s=o.secondaryColor,l=fl(o,cl),f=Mt;if(i&&(f={primaryColor:i,secondaryColor:s||Da(i)}),sl(),il(_a(r),"icon should be icon definiton, but got ".concat(r)),!_a(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=jt({},c,{icon:c.icon(f.primaryColor,f.secondaryColor)})),hn(c.icon,"svg-".concat(c.name),jt({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};pt.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},pt.inheritAttrs=!1,pt.displayName="IconBase",pt.getTwoToneColors=gl,pt.setTwoToneColors=hl;const gn=pt;function ml(e,n){return bl(e)||pl(e,n)||yl(e,n)||xl()}function xl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
57
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yl(e,n){if(e){if(typeof e=="string")return Oa(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Oa(e,n)}}function Oa(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function pl(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],r=!0,i=!1,s,l;try{for(t=t.call(e);!(r=(s=t.next()).done)&&(o.push(s.value),!(n&&o.length===n));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return o}}function bl(e){if(Array.isArray(e))return e}function La(e){var n=Ra(e),t=ml(n,2),o=t[0],r=t[1];return gn.setTwoToneColors({primaryColor:o,secondaryColor:r})}function vl(){var e=gn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Sl=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function wl(e,n){return Tl(e)||kl(e,n)||Al(e,n)||Cl()}function Cl(){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 Al(e,n){if(e){if(typeof e=="string")return Na(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Na(e,n)}}function Na(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function kl(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],r=!0,i=!1,s,l;try{for(t=t.call(e);!(r=(s=t.next()).done)&&(o.push(s.value),!(n&&o.length===n));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return o}}function Tl(e){if(Array.isArray(e))return e}function za(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){mn(e,r,t[r])})}return e}function mn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function El(e,n){if(e==null)return{};var t=Bl(e,n),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}function Bl(e,n){if(e==null)return{};var t={},o=Object.keys(e),r,i;for(i=0;i<o.length;i++)r=o[i],!(n.indexOf(r)>=0)&&(t[r]=e[r]);return t}La("#1890ff");var bt=function(n,t){var o,r=za({},n,t.attrs),i=r.class,s=r.icon,l=r.spin,f=r.rotate,c=r.tabindex,d=r.twoToneColor,x=r.onClick,h=El(r,Sl),u=(o={anticon:!0},mn(o,"anticon-".concat(s.name),!!s.name),mn(o,i,i),o),m=l===""||l||s.name==="loading"?"anticon-spin":"",g=c;g===void 0&&x&&(g=-1,h.tabindex=g);var S=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,A=Ra(d),y=wl(A,2),b=y[0],p=y[1];return a.createVNode("span",za({role:"img","aria-label":s.name},h,{onClick:x,class:u}),[a.createVNode(gn,{class:m,icon:s,primaryColor:b,secondaryColor:p,style:S},null)])};bt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},bt.displayName="AntdIcon",bt.inheritAttrs=!1,bt.getTwoToneColor=vl,bt.setTwoToneColor=La;const Ma=bt;var _l={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 Dl=_l;function Fa(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){Rl(e,r,t[r])})}return e}function Rl(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var xn=function(n,t){var o=Fa({},n,t.attrs);return a.createVNode(Ma,Fa({},o,{icon:Dl}),null)};xn.displayName="CloseOutlined",xn.inheritAttrs=!1;const Il=xn;var Ol={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 Ll=Ol;function Pa(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){Nl(e,r,t[r])})}return e}function Nl(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var yn=function(n,t){var o=Pa({},n,t.attrs);return a.createVNode(Ma,Pa({},o,{icon:Ll}),null)};yn.displayName="LoadingOutlined",yn.inheritAttrs=!1;const zl=yn,Ml=a.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ae.Spin},setup(){return{indicator:a.h(zl,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Rd="",se=(e,n)=>{const t=e.__vccOpts||e;for(const[o,r]of n)t[o]=r;return t},Fl={class:"spin-wrapper"};function Pl(e,n,t,o,r,i){const s=a.resolveComponent("a-spin");return a.openBlock(),a.createElementBlock("div",Fl,[e.spinning?(a.openBlock(),a.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):a.renderSlot(e.$slots,"default",{key:1})])}const vt=se(Ml,[["render",Pl]]),Hl=a.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ae.Skeleton}});function ql(e,n,t,o,r,i){const s=a.resolveComponent("a-skeleton");return a.openBlock(),a.createBlock(s,{active:"",loading:e.loading},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const Gt=se(Hl,[["render",ql]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const ce=(e,n)=>{if(e.install=t=>{for(const o of[e,...Object.values(n??{})])t.component(o.name,o)},n)for(const[t,o]of Object.entries(n))e[t]=o;return e},xe={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"},de=e=>{const n={};if(typeof e=="object"&&e!=null)for(const t in e){const o=e[t];n[t]={type:o==null?void 0:o.constructor,default:o}}return n},pn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},bn=de(pn),Vl=["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"],he=(e,n=[])=>{const t=je.without(Vl,...n);return a.computed(()=>je.pick(e,t))},vn="EVENT_BUS",Re="GLOBAL_CONFIG",we="GLOBAL_MODEL",_e="REQUEST_MODEL",Ha="GLOBAL_TOKEN",Ft="REFRESH_PAGE",qa="MODAL_MODEL",Va="LOADED_DATA",Ze=18,ja="ygt",Ga=(s0=window==null?void 0:window.config)==null?void 0:s0.indicatorURL;(c0=window==null?void 0:window.config)!=null&&c0.uploadPath;const Wa=((f0=window==null?void 0:window.config)==null?void 0:f0.routerBaseURL)||"./",jl=((d0=window==null?void 0:window.config)==null?void 0:d0.erdURL)||"",Te=(e,n)=>{a.watch(()=>e.id,t=>{const o=a.inject(vn,{onEvent:(r,i)=>{}});t!=null&&t!==""&&o.onEvent(t,n)},{immediate:!0})},ve=e=>{const n=e.events,t=e.id,o=a.inject(vn,{emitEvent:(i,s)=>{}}),{touchEventId:r}=a.inject(Re,{touchEventId:a.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=o;n.forEach(f=>{if(i===f.on)try{r.value=t,l(f.target,f.emit)}catch(c){console.error(c)}})}},St=(e,n)=>{let{name:t="name",value:o="value",type:r="type"}=n||{};t=t==null?void 0:t.trim(),o=o==null?void 0:o.trim(),r=r==null?void 0:r.trim();const i=new Map,s=e.length;for(let c=0;c<s;c++){const d=e[c],x=d[t]||"",h=d[o]||"",u=d[r]||"";if(i.has(u)){const m=i.get(u);m.push({name:x,value:h,...d}),i.set(u,m)}else i.set(u,[{name:x,value:h,...d}])}const l=[],f=[];for(const[c,d]of i)if(f.push({name:c,data:d}),d!=null&&d.length)if(l.length)for(const x of d)l.includes(x.name)||l.push(x.name);else l.push(...d.map(x=>x.name));return{dimensions:l,dataset:f}};var re=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ua(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gl(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function o(){return this instanceof o?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),t}var $a={exports:{}};function Wl(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 Sn={exports:{}};const Ul=Gl(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Za;function le(){return Za||(Za=1,function(e,n){(function(t,o){e.exports=o()})(re,function(){var t=t||function(o,r){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof re<"u"&&re.crypto&&(i=re.crypto),!i&&typeof Wl=="function")try{i=Ul}catch{}var s=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function y(){}return function(b){var p;return y.prototype=b,p=new y,y.prototype=null,p}}(),f={},c=f.lib={},d=c.Base=function(){return{extend:function(y){var b=l(this);return y&&b.mixIn(y),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var b in y)y.hasOwnProperty(b)&&(this[b]=y[b]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=c.WordArray=d.extend({init:function(y,b){y=this.words=y||[],b!=r?this.sigBytes=b:this.sigBytes=y.length*4},toString:function(y){return(y||u).stringify(this)},concat:function(y){var b=this.words,p=y.words,T=this.sigBytes,w=y.sigBytes;if(this.clamp(),T%4)for(var C=0;C<w;C++){var B=p[C>>>2]>>>24-C%4*8&255;b[T+C>>>2]|=B<<24-(T+C)%4*8}else for(var _=0;_<w;_+=4)b[T+_>>>2]=p[_>>>2];return this.sigBytes+=w,this},clamp:function(){var y=this.words,b=this.sigBytes;y[b>>>2]&=4294967295<<32-b%4*8,y.length=o.ceil(b/4)},clone:function(){var y=d.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var b=[],p=0;p<y;p+=4)b.push(s());return new x.init(b,y)}}),h=f.enc={},u=h.Hex={stringify:function(y){for(var b=y.words,p=y.sigBytes,T=[],w=0;w<p;w++){var C=b[w>>>2]>>>24-w%4*8&255;T.push((C>>>4).toString(16)),T.push((C&15).toString(16))}return T.join("")},parse:function(y){for(var b=y.length,p=[],T=0;T<b;T+=2)p[T>>>3]|=parseInt(y.substr(T,2),16)<<24-T%8*4;return new x.init(p,b/2)}},m=h.Latin1={stringify:function(y){for(var b=y.words,p=y.sigBytes,T=[],w=0;w<p;w++){var C=b[w>>>2]>>>24-w%4*8&255;T.push(String.fromCharCode(C))}return T.join("")},parse:function(y){for(var b=y.length,p=[],T=0;T<b;T++)p[T>>>2]|=(y.charCodeAt(T)&255)<<24-T%4*8;return new x.init(p,b)}},g=h.Utf8={stringify:function(y){try{return decodeURIComponent(escape(m.stringify(y)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(y){return m.parse(unescape(encodeURIComponent(y)))}},S=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=g.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var b,p=this._data,T=p.words,w=p.sigBytes,C=this.blockSize,B=C*4,_=w/B;y?_=o.ceil(_):_=o.max((_|0)-this._minBufferSize,0);var v=_*C,E=o.min(v*4,w);if(v){for(var z=0;z<v;z+=C)this._doProcessBlock(T,z);b=T.splice(0,v),p.sigBytes-=E}return new x.init(b,E)},clone:function(){var y=d.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});c.Hasher=S.extend({cfg:d.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(y){return function(b,p){return new y.init(p).finalize(b)}},_createHmacHelper:function(y){return function(b,p){return new A.HMAC.init(y,p).finalize(b)}}});var A=f.algo={};return f}(Math);return t})}(Sn)),Sn.exports}var wn={exports:{}},Ya;function Wt(){return Ya||(Ya=1,function(e,n){(function(t,o){e.exports=o(le())})(re,function(t){return function(o){var r=t,i=r.lib,s=i.Base,l=i.WordArray,f=r.x64={};f.Word=s.extend({init:function(c,d){this.high=c,this.low=d}}),f.WordArray=s.extend({init:function(c,d){c=this.words=c||[],d!=o?this.sigBytes=d:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,d=c.length,x=[],h=0;h<d;h++){var u=c[h];x.push(u.high),x.push(u.low)}return l.create(x,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),d=c.words=this.words.slice(0),x=d.length,h=0;h<x;h++)d[h]=d[h].clone();return c}})}(),t})}(wn)),wn.exports}var Cn={exports:{}},Ka;function $l(){return Ka||(Ka=1,function(e,n){(function(t,o){e.exports=o(le())})(re,function(t){return function(){if(typeof ArrayBuffer=="function"){var o=t,r=o.lib,i=r.WordArray,s=i.init,l=i.init=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),(f instanceof Int8Array||typeof Uint8ClampedArray<"u"&&f instanceof Uint8ClampedArray||f instanceof Int16Array||f instanceof Uint16Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array)&&(f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength)),f instanceof Uint8Array){for(var c=f.byteLength,d=[],x=0;x<c;x++)d[x>>>2]|=f[x]<<24-x%4*8;s.call(this,d,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(Cn)),Cn.exports}var An={exports:{}},Xa;function Zl(){return Xa||(Xa=1,function(e,n){(function(t,o){e.exports=o(le())})(re,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=o.enc;s.Utf16=s.Utf16BE={stringify:function(f){for(var c=f.words,d=f.sigBytes,x=[],h=0;h<d;h+=2){var u=c[h>>>2]>>>16-h%4*8&65535;x.push(String.fromCharCode(u))}return x.join("")},parse:function(f){for(var c=f.length,d=[],x=0;x<c;x++)d[x>>>1]|=f.charCodeAt(x)<<16-x%2*16;return i.create(d,c*2)}},s.Utf16LE={stringify:function(f){for(var c=f.words,d=f.sigBytes,x=[],h=0;h<d;h+=2){var u=l(c[h>>>2]>>>16-h%4*8&65535);x.push(String.fromCharCode(u))}return x.join("")},parse:function(f){for(var c=f.length,d=[],x=0;x<c;x++)d[x>>>1]|=l(f.charCodeAt(x)<<16-x%2*16);return i.create(d,c*2)}};function l(f){return f<<8&4278255360|f>>>8&16711935}}(),t.enc.Utf16})}(An)),An.exports}var kn={exports:{}},Qa;function wt(){return Qa||(Qa=1,function(e,n){(function(t,o){e.exports=o(le())})(re,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=o.enc;s.Base64={stringify:function(f){var c=f.words,d=f.sigBytes,x=this._map;f.clamp();for(var h=[],u=0;u<d;u+=3)for(var m=c[u>>>2]>>>24-u%4*8&255,g=c[u+1>>>2]>>>24-(u+1)%4*8&255,S=c[u+2>>>2]>>>24-(u+2)%4*8&255,A=m<<16|g<<8|S,y=0;y<4&&u+y*.75<d;y++)h.push(x.charAt(A>>>6*(3-y)&63));var b=x.charAt(64);if(b)for(;h.length%4;)h.push(b);return h.join("")},parse:function(f){var c=f.length,d=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var h=0;h<d.length;h++)x[d.charCodeAt(h)]=h}var u=d.charAt(64);if(u){var m=f.indexOf(u);m!==-1&&(c=m)}return l(f,c,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(f,c,d){for(var x=[],h=0,u=0;u<c;u++)if(u%4){var m=d[f.charCodeAt(u-1)]<<u%4*2,g=d[f.charCodeAt(u)]>>>6-u%4*2,S=m|g;x[h>>>2]|=S<<24-h%4*8,h++}return i.create(x,h)}}(),t.enc.Base64})}(kn)),kn.exports}var Tn={exports:{}},Ja;function Yl(){return Ja||(Ja=1,function(e,n){(function(t,o){e.exports=o(le())})(re,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=o.enc;s.Base64url={stringify:function(f,c=!0){var d=f.words,x=f.sigBytes,h=c?this._safe_map:this._map;f.clamp();for(var u=[],m=0;m<x;m+=3)for(var g=d[m>>>2]>>>24-m%4*8&255,S=d[m+1>>>2]>>>24-(m+1)%4*8&255,A=d[m+2>>>2]>>>24-(m+2)%4*8&255,y=g<<16|S<<8|A,b=0;b<4&&m+b*.75<x;b++)u.push(h.charAt(y>>>6*(3-b)&63));var p=h.charAt(64);if(p)for(;u.length%4;)u.push(p);return u.join("")},parse:function(f,c=!0){var d=f.length,x=c?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var u=0;u<x.length;u++)h[x.charCodeAt(u)]=u}var m=x.charAt(64);if(m){var g=f.indexOf(m);g!==-1&&(d=g)}return l(f,d,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(f,c,d){for(var x=[],h=0,u=0;u<c;u++)if(u%4){var m=d[f.charCodeAt(u-1)]<<u%4*2,g=d[f.charCodeAt(u)]>>>6-u%4*2,S=m|g;x[h>>>2]|=S<<24-h%4*8,h++}return i.create(x,h)}}(),t.enc.Base64url})}(Tn)),Tn.exports}var En={exports:{}},er;function Ct(){return er||(er=1,function(e,n){(function(t,o){e.exports=o(le())})(re,function(t){return function(o){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=o.abs(o.sin(g+1))*4294967296|0})();var d=f.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,S){for(var A=0;A<16;A++){var y=S+A,b=g[y];g[y]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var p=this._hash.words,T=g[S+0],w=g[S+1],C=g[S+2],B=g[S+3],_=g[S+4],v=g[S+5],E=g[S+6],z=g[S+7],k=g[S+8],N=g[S+9],M=g[S+10],D=g[S+11],q=g[S+12],I=g[S+13],R=g[S+14],H=g[S+15],L=p[0],P=p[1],O=p[2],F=p[3];L=x(L,P,O,F,T,7,c[0]),F=x(F,L,P,O,w,12,c[1]),O=x(O,F,L,P,C,17,c[2]),P=x(P,O,F,L,B,22,c[3]),L=x(L,P,O,F,_,7,c[4]),F=x(F,L,P,O,v,12,c[5]),O=x(O,F,L,P,E,17,c[6]),P=x(P,O,F,L,z,22,c[7]),L=x(L,P,O,F,k,7,c[8]),F=x(F,L,P,O,N,12,c[9]),O=x(O,F,L,P,M,17,c[10]),P=x(P,O,F,L,D,22,c[11]),L=x(L,P,O,F,q,7,c[12]),F=x(F,L,P,O,I,12,c[13]),O=x(O,F,L,P,R,17,c[14]),P=x(P,O,F,L,H,22,c[15]),L=h(L,P,O,F,w,5,c[16]),F=h(F,L,P,O,E,9,c[17]),O=h(O,F,L,P,D,14,c[18]),P=h(P,O,F,L,T,20,c[19]),L=h(L,P,O,F,v,5,c[20]),F=h(F,L,P,O,M,9,c[21]),O=h(O,F,L,P,H,14,c[22]),P=h(P,O,F,L,_,20,c[23]),L=h(L,P,O,F,N,5,c[24]),F=h(F,L,P,O,R,9,c[25]),O=h(O,F,L,P,B,14,c[26]),P=h(P,O,F,L,k,20,c[27]),L=h(L,P,O,F,I,5,c[28]),F=h(F,L,P,O,C,9,c[29]),O=h(O,F,L,P,z,14,c[30]),P=h(P,O,F,L,q,20,c[31]),L=u(L,P,O,F,v,4,c[32]),F=u(F,L,P,O,k,11,c[33]),O=u(O,F,L,P,D,16,c[34]),P=u(P,O,F,L,R,23,c[35]),L=u(L,P,O,F,w,4,c[36]),F=u(F,L,P,O,_,11,c[37]),O=u(O,F,L,P,z,16,c[38]),P=u(P,O,F,L,M,23,c[39]),L=u(L,P,O,F,I,4,c[40]),F=u(F,L,P,O,T,11,c[41]),O=u(O,F,L,P,B,16,c[42]),P=u(P,O,F,L,E,23,c[43]),L=u(L,P,O,F,N,4,c[44]),F=u(F,L,P,O,q,11,c[45]),O=u(O,F,L,P,H,16,c[46]),P=u(P,O,F,L,C,23,c[47]),L=m(L,P,O,F,T,6,c[48]),F=m(F,L,P,O,z,10,c[49]),O=m(O,F,L,P,R,15,c[50]),P=m(P,O,F,L,v,21,c[51]),L=m(L,P,O,F,q,6,c[52]),F=m(F,L,P,O,B,10,c[53]),O=m(O,F,L,P,M,15,c[54]),P=m(P,O,F,L,w,21,c[55]),L=m(L,P,O,F,k,6,c[56]),F=m(F,L,P,O,H,10,c[57]),O=m(O,F,L,P,E,15,c[58]),P=m(P,O,F,L,I,21,c[59]),L=m(L,P,O,F,_,6,c[60]),F=m(F,L,P,O,D,10,c[61]),O=m(O,F,L,P,C,15,c[62]),P=m(P,O,F,L,N,21,c[63]),p[0]=p[0]+L|0,p[1]=p[1]+P|0,p[2]=p[2]+O|0,p[3]=p[3]+F|0},_doFinalize:function(){var g=this._data,S=g.words,A=this._nDataBytes*8,y=g.sigBytes*8;S[y>>>5]|=128<<24-y%32;var b=o.floor(A/4294967296),p=A;S[(y+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,S[(y+64>>>9<<4)+14]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,g.sigBytes=(S.length+1)*4,this._process();for(var T=this._hash,w=T.words,C=0;C<4;C++){var B=w[C];w[C]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}return T},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});function x(g,S,A,y,b,p,T){var w=g+(S&A|~S&y)+b+T;return(w<<p|w>>>32-p)+S}function h(g,S,A,y,b,p,T){var w=g+(S&y|A&~y)+b+T;return(w<<p|w>>>32-p)+S}function u(g,S,A,y,b,p,T){var w=g+(S^A^y)+b+T;return(w<<p|w>>>32-p)+S}function m(g,S,A,y,b,p,T){var w=g+(A^(S|~y))+b+T;return(w<<p|w>>>32-p)+S}r.MD5=l._createHelper(d),r.HmacMD5=l._createHmacHelper(d)}(Math),t.MD5})}(En)),En.exports}var Bn={exports:{}},tr;function _n(){return tr||(tr=1,function(e,n){(function(t,o){e.exports=o(le())})(re,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=r.Hasher,l=o.algo,f=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,x){for(var h=this._hash.words,u=h[0],m=h[1],g=h[2],S=h[3],A=h[4],y=0;y<80;y++){if(y<16)f[y]=d[x+y]|0;else{var b=f[y-3]^f[y-8]^f[y-14]^f[y-16];f[y]=b<<1|b>>>31}var p=(u<<5|u>>>27)+A+f[y];y<20?p+=(m&g|~m&S)+1518500249:y<40?p+=(m^g^S)+1859775393:y<60?p+=(m&g|m&S|g&S)-1894007588:p+=(m^g^S)-899497514,A=S,S=g,g=m<<30|m>>>2,m=u,u=p}h[0]=h[0]+u|0,h[1]=h[1]+m|0,h[2]=h[2]+g|0,h[3]=h[3]+S|0,h[4]=h[4]+A|0},_doFinalize:function(){var d=this._data,x=d.words,h=this._nDataBytes*8,u=d.sigBytes*8;return x[u>>>5]|=128<<24-u%32,x[(u+64>>>9<<4)+14]=Math.floor(h/4294967296),x[(u+64>>>9<<4)+15]=h,d.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var d=s.clone.call(this);return d._hash=this._hash.clone(),d}});o.SHA1=s._createHelper(c),o.HmacSHA1=s._createHmacHelper(c)}(),t.SHA1})}(Bn)),Bn.exports}var Dn={exports:{}},nr;function or(){return nr||(nr=1,function(e,n){(function(t,o){e.exports=o(le())})(re,function(t){return function(o){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[],d=[];(function(){function u(A){for(var y=o.sqrt(A),b=2;b<=y;b++)if(!(A%b))return!1;return!0}function m(A){return(A-(A|0))*4294967296|0}for(var g=2,S=0;S<64;)u(g)&&(S<8&&(c[S]=m(o.pow(g,1/2))),d[S]=m(o.pow(g,1/3)),S++),g++})();var x=[],h=f.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(u,m){for(var g=this._hash.words,S=g[0],A=g[1],y=g[2],b=g[3],p=g[4],T=g[5],w=g[6],C=g[7],B=0;B<64;B++){if(B<16)x[B]=u[m+B]|0;else{var _=x[B-15],v=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,E=x[B-2],z=(E<<15|E>>>17)^(E<<13|E>>>19)^E>>>10;x[B]=v+x[B-7]+z+x[B-16]}var k=p&T^~p&w,N=S&A^S&y^A&y,M=(S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22),D=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),q=C+D+k+d[B]+x[B],I=M+N;C=w,w=T,T=p,p=b+q|0,b=y,y=A,A=S,S=q+I|0}g[0]=g[0]+S|0,g[1]=g[1]+A|0,g[2]=g[2]+y|0,g[3]=g[3]+b|0,g[4]=g[4]+p|0,g[5]=g[5]+T|0,g[6]=g[6]+w|0,g[7]=g[7]+C|0},_doFinalize:function(){var u=this._data,m=u.words,g=this._nDataBytes*8,S=u.sigBytes*8;return m[S>>>5]|=128<<24-S%32,m[(S+64>>>9<<4)+14]=o.floor(g/4294967296),m[(S+64>>>9<<4)+15]=g,u.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var u=l.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA256=l._createHelper(h),r.HmacSHA256=l._createHmacHelper(h)}(Math),t.SHA256})}(Dn)),Dn.exports}var Rn={exports:{}},ar;function Kl(){return ar||(ar=1,function(e,n){(function(t,o,r){e.exports=o(le(),or())})(re,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=o.algo,l=s.SHA256,f=s.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});o.SHA224=l._createHelper(f),o.HmacSHA224=l._createHmacHelper(f)}(),t.SHA224})}(Rn)),Rn.exports}var In={exports:{}},rr;function ir(){return rr||(rr=1,function(e,n){(function(t,o,r){e.exports=o(le(),Wt())})(re,function(t){return function(){var o=t,r=o.lib,i=r.Hasher,s=o.x64,l=s.Word,f=s.WordArray,c=o.algo;function d(){return l.create.apply(l,arguments)}var x=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],h=[];(function(){for(var m=0;m<80;m++)h[m]=d()})();var u=c.SHA512=i.extend({_doReset:function(){this._hash=new f.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(m,g){for(var S=this._hash.words,A=S[0],y=S[1],b=S[2],p=S[3],T=S[4],w=S[5],C=S[6],B=S[7],_=A.high,v=A.low,E=y.high,z=y.low,k=b.high,N=b.low,M=p.high,D=p.low,q=T.high,I=T.low,R=w.high,H=w.low,L=C.high,P=C.low,O=B.high,F=B.low,Y=_,U=v,Z=E,j=z,ee=k,oe=N,pe=M,Ee=D,ye=q,ge=I,Oe=R,qe=H,Le=L,Ne=P,ot=O,Xe=F,G=0;G<80;G++){var $,K,Q=h[G];if(G<16)K=Q.high=m[g+G*2]|0,$=Q.low=m[g+G*2+1]|0;else{var te=h[G-15],X=te.high,J=te.low,fe=(X>>>1|J<<31)^(X>>>8|J<<24)^X>>>7,ue=(J>>>1|X<<31)^(J>>>8|X<<24)^(J>>>7|X<<25),be=h[G-2],Be=be.high,ze=be.low,Je=(Be>>>19|ze<<13)^(Be<<3|ze>>>29)^Be>>>6,ut=(ze>>>19|Be<<13)^(ze<<3|Be>>>29)^(ze>>>6|Be<<26),Ot=h[G-7],on=Ot.high,ma=Ot.low,u0=h[G-16],cd=u0.high,h0=u0.low;$=ue+ma,K=fe+on+($>>>0<ue>>>0?1:0),$=$+ut,K=K+Je+($>>>0<ut>>>0?1:0),$=$+h0,K=K+cd+($>>>0<h0>>>0?1:0),Q.high=K,Q.low=$}var fd=ye&Oe^~ye&Le,g0=ge&qe^~ge&Ne,dd=Y&Z^Y&ee^Z&ee,ud=U&j^U&oe^j&oe,hd=(Y>>>28|U<<4)^(Y<<30|U>>>2)^(Y<<25|U>>>7),m0=(U>>>28|Y<<4)^(U<<30|Y>>>2)^(U<<25|Y>>>7),gd=(ye>>>14|ge<<18)^(ye>>>18|ge<<14)^(ye<<23|ge>>>9),md=(ge>>>14|ye<<18)^(ge>>>18|ye<<14)^(ge<<23|ye>>>9),x0=x[G],xd=x0.high,y0=x0.low,Ve=Xe+md,ht=ot+gd+(Ve>>>0<Xe>>>0?1:0),Ve=Ve+g0,ht=ht+fd+(Ve>>>0<g0>>>0?1:0),Ve=Ve+y0,ht=ht+xd+(Ve>>>0<y0>>>0?1:0),Ve=Ve+$,ht=ht+K+(Ve>>>0<$>>>0?1:0),p0=m0+ud,yd=hd+dd+(p0>>>0<m0>>>0?1:0);ot=Le,Xe=Ne,Le=Oe,Ne=qe,Oe=ye,qe=ge,ge=Ee+Ve|0,ye=pe+ht+(ge>>>0<Ee>>>0?1:0)|0,pe=ee,Ee=oe,ee=Z,oe=j,Z=Y,j=U,U=Ve+p0|0,Y=ht+yd+(U>>>0<Ve>>>0?1:0)|0}v=A.low=v+U,A.high=_+Y+(v>>>0<U>>>0?1:0),z=y.low=z+j,y.high=E+Z+(z>>>0<j>>>0?1:0),N=b.low=N+oe,b.high=k+ee+(N>>>0<oe>>>0?1:0),D=p.low=D+Ee,p.high=M+pe+(D>>>0<Ee>>>0?1:0),I=T.low=I+ge,T.high=q+ye+(I>>>0<ge>>>0?1:0),H=w.low=H+qe,w.high=R+Oe+(H>>>0<qe>>>0?1:0),P=C.low=P+Ne,C.high=L+Le+(P>>>0<Ne>>>0?1:0),F=B.low=F+Xe,B.high=O+ot+(F>>>0<Xe>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,S=this._nDataBytes*8,A=m.sigBytes*8;g[A>>>5]|=128<<24-A%32,g[(A+128>>>10<<5)+30]=Math.floor(S/4294967296),g[(A+128>>>10<<5)+31]=S,m.sigBytes=g.length*4,this._process();var y=this._hash.toX32();return y},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});o.SHA512=i._createHelper(u),o.HmacSHA512=i._createHmacHelper(u)}(),t.SHA512})}(In)),In.exports}var On={exports:{}},lr;function Xl(){return lr||(lr=1,function(e,n){(function(t,o,r){e.exports=o(le(),Wt(),ir())})(re,function(t){return function(){var o=t,r=o.x64,i=r.Word,s=r.WordArray,l=o.algo,f=l.SHA512,c=l.SHA384=f.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var d=f._doFinalize.call(this);return d.sigBytes-=16,d}});o.SHA384=f._createHelper(c),o.HmacSHA384=f._createHmacHelper(c)}(),t.SHA384})}(On)),On.exports}var Ln={exports:{}},sr;function Ql(){return sr||(sr=1,function(e,n){(function(t,o,r){e.exports=o(le(),Wt())})(re,function(t){return function(o){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.x64,c=f.Word,d=r.algo,x=[],h=[],u=[];(function(){for(var S=1,A=0,y=0;y<24;y++){x[S+5*A]=(y+1)*(y+2)/2%64;var b=A%5,p=(2*S+3*A)%5;S=b,A=p}for(var S=0;S<5;S++)for(var A=0;A<5;A++)h[S+5*A]=A+(2*S+3*A)%5*5;for(var T=1,w=0;w<24;w++){for(var C=0,B=0,_=0;_<7;_++){if(T&1){var v=(1<<_)-1;v<32?B^=1<<v:C^=1<<v-32}T&128?T=T<<1^113:T<<=1}u[w]=c.create(C,B)}})();var m=[];(function(){for(var S=0;S<25;S++)m[S]=c.create()})();var g=d.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var S=this._state=[],A=0;A<25;A++)S[A]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(S,A){for(var y=this._state,b=this.blockSize/2,p=0;p<b;p++){var T=S[A+2*p],w=S[A+2*p+1];T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var C=y[p];C.high^=w,C.low^=T}for(var B=0;B<24;B++){for(var _=0;_<5;_++){for(var v=0,E=0,z=0;z<5;z++){var C=y[_+5*z];v^=C.high,E^=C.low}var k=m[_];k.high=v,k.low=E}for(var _=0;_<5;_++)for(var N=m[(_+4)%5],M=m[(_+1)%5],D=M.high,q=M.low,v=N.high^(D<<1|q>>>31),E=N.low^(q<<1|D>>>31),z=0;z<5;z++){var C=y[_+5*z];C.high^=v,C.low^=E}for(var I=1;I<25;I++){var v,E,C=y[I],R=C.high,H=C.low,L=x[I];L<32?(v=R<<L|H>>>32-L,E=H<<L|R>>>32-L):(v=H<<L-32|R>>>64-L,E=R<<L-32|H>>>64-L);var P=m[h[I]];P.high=v,P.low=E}var O=m[0],F=y[0];O.high=F.high,O.low=F.low;for(var _=0;_<5;_++)for(var z=0;z<5;z++){var I=_+5*z,C=y[I],Y=m[I],U=m[(_+1)%5+5*z],Z=m[(_+2)%5+5*z];C.high=Y.high^~U.high&Z.high,C.low=Y.low^~U.low&Z.low}var C=y[0],j=u[B];C.high^=j.high,C.low^=j.low}},_doFinalize:function(){var S=this._data,A=S.words;this._nDataBytes*8;var y=S.sigBytes*8,b=this.blockSize*32;A[y>>>5]|=1<<24-y%32,A[(o.ceil((y+1)/b)*b>>>5)-1]|=128,S.sigBytes=A.length*4,this._process();for(var p=this._state,T=this.cfg.outputLength/8,w=T/8,C=[],B=0;B<w;B++){var _=p[B],v=_.high,E=_.low;v=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,C.push(E),C.push(v)}return new s.init(C,T)},clone:function(){for(var S=l.clone.call(this),A=S._state=this._state.slice(0),y=0;y<25;y++)A[y]=A[y].clone();return S}});r.SHA3=l._createHelper(g),r.HmacSHA3=l._createHmacHelper(g)}(Math),t.SHA3})}(Ln)),Ln.exports}var Nn={exports:{}},cr;function Jl(){return cr||(cr=1,function(e,n){(function(t,o){e.exports=o(le())})(re,function(t){/** @preserve
|
|
59
59
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
60
60
|
|
|
61
61
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -64,18 +64,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64
64
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
65
65
|
|
|
66
66
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
67
|
-
*/return function(o){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),d=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]),u=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=s.create([0,1518500249,1859775393,2400959708,2840853838]),g=s.create([1352829926,1548603684,1836072691,2053994217,0]),m=f.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(v,T){for(var E=0;E<16;E++){var _=T+E,w=v[_];v[_]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var B=this._hash.words,L=h.words,A=g.words,O=c.words,H=d.words,R=x.words,F=u.words,D,z,q,N,P,I,M,Y,U,Z;I=D=B[0],M=z=B[1],Y=q=B[2],U=N=B[3],Z=P=B[4];for(var j,E=0;E<80;E+=1)j=D+v[T+O[E]]|0,E<16?j+=S(z,q,N)+L[0]:E<32?j+=k(z,q,N)+L[1]:E<48?j+=y(z,q,N)+L[2]:E<64?j+=p(z,q,N)+L[3]:j+=b(z,q,N)+L[4],j=j|0,j=C(j,R[E]),j=j+P|0,D=P,P=N,N=C(q,10),q=z,z=j,j=I+v[T+H[E]]|0,E<16?j+=b(M,Y,U)+A[0]:E<32?j+=p(M,Y,U)+A[1]:E<48?j+=y(M,Y,U)+A[2]:E<64?j+=k(M,Y,U)+A[3]:j+=S(M,Y,U)+A[4],j=j|0,j=C(j,F[E]),j=j+Z|0,I=Z,Z=U,U=C(Y,10),Y=M,M=j;j=B[1]+q+U|0,B[1]=B[2]+N+Z|0,B[2]=B[3]+P+I|0,B[3]=B[4]+D+M|0,B[4]=B[0]+z+Y|0,B[0]=j},_doFinalize:function(){var v=this._data,T=v.words,E=this._nDataBytes*8,_=v.sigBytes*8;T[_>>>5]|=128<<24-_%32,T[(_+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,v.sigBytes=(T.length+1)*4,this._process();for(var w=this._hash,B=w.words,L=0;L<5;L++){var A=B[L];B[L]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return w},clone:function(){var v=l.clone.call(this);return v._hash=this._hash.clone(),v}});function S(v,T,E){return v^T^E}function k(v,T,E){return v&T|~v&E}function y(v,T,E){return(v|~T)^E}function p(v,T,E){return v&E|T&~E}function b(v,T,E){return v^(T|~E)}function C(v,T){return v<<T|v>>>32-T}r.RIPEMD160=l._createHelper(m),r.HmacRIPEMD160=l._createHmacHelper(m)}(),t.RIPEMD160})}(Ln)),Ln.exports}var Nn={exports:{}},sr;function zn(){return sr||(sr=1,function(e,n){(function(t,o){e.exports=o(se())})(re,function(t){(function(){var o=t,r=o.lib,i=r.Base,s=o.enc,l=s.Utf8,f=o.algo;f.HMAC=i.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=l.parse(d));var x=c.blockSize,u=x*4;d.sigBytes>u&&(d=c.finalize(d)),d.clamp();for(var h=this._oKey=d.clone(),g=this._iKey=d.clone(),m=h.words,S=g.words,k=0;k<x;k++)m[k]^=1549556828,S[k]^=909522486;h.sigBytes=g.sigBytes=u,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var d=this._hasher,x=d.finalize(c);d.reset();var u=d.finalize(this._oKey.clone().concat(x));return u}})})()})}(Nn)),Nn.exports}var Mn={exports:{}},cr;function Ql(){return cr||(cr=1,function(e,n){(function(t,o,r){e.exports=o(se(),Bn(),zn())})(re,function(t){return function(){var o=t,r=o.lib,i=r.Base,s=r.WordArray,l=o.algo,f=l.SHA1,c=l.HMAC,d=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,u){for(var h=this.cfg,g=c.create(h.hasher,x),m=s.create(),S=s.create([1]),k=m.words,y=S.words,p=h.keySize,b=h.iterations;k.length<p;){var C=g.update(u).finalize(S);g.reset();for(var v=C.words,T=v.length,E=C,_=1;_<b;_++){E=g.finalize(E),g.reset();for(var w=E.words,B=0;B<T;B++)v[B]^=w[B]}m.concat(C),y[0]++}return m.sigBytes=p*4,m}});o.PBKDF2=function(x,u,h){return d.create(h).compute(x,u)}}(),t.PBKDF2})}(Mn)),Mn.exports}var Fn={exports:{}},fr;function ht(){return fr||(fr=1,function(e,n){(function(t,o,r){e.exports=o(se(),Bn(),zn())})(re,function(t){return function(){var o=t,r=o.lib,i=r.Base,s=r.WordArray,l=o.algo,f=l.MD5,c=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,x){for(var u,h=this.cfg,g=h.hasher.create(),m=s.create(),S=m.words,k=h.keySize,y=h.iterations;S.length<k;){u&&g.update(u),u=g.update(d).finalize(x),g.reset();for(var p=1;p<y;p++)u=g.finalize(u),g.reset();m.concat(u)}return m.sigBytes=k*4,m}});o.EvpKDF=function(d,x,u){return c.create(u).compute(d,x)}}(),t.EvpKDF})}(Fn)),Fn.exports}var Pn={exports:{}},dr;function De(){return dr||(dr=1,function(e,n){(function(t,o,r){e.exports=o(se(),ht())})(re,function(t){t.lib.Cipher||function(o){var r=t,i=r.lib,s=i.Base,l=i.WordArray,f=i.BufferedBlockAlgorithm,c=r.enc;c.Utf8;var d=c.Base64,x=r.algo,u=x.EvpKDF,h=i.Cipher=f.extend({cfg:s.extend(),createEncryptor:function(w,B){return this.create(this._ENC_XFORM_MODE,w,B)},createDecryptor:function(w,B){return this.create(this._DEC_XFORM_MODE,w,B)},init:function(w,B,L){this.cfg=this.cfg.extend(L),this._xformMode=w,this._key=B,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var B=this._doFinalize();return B},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function w(B){return typeof B=="string"?_:v}return function(B){return{encrypt:function(L,A,O){return w(A).encrypt(B,L,A,O)},decrypt:function(L,A,O){return w(A).decrypt(B,L,A,O)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var g=r.mode={},m=i.BlockCipherMode=s.extend({createEncryptor:function(w,B){return this.Encryptor.create(w,B)},createDecryptor:function(w,B){return this.Decryptor.create(w,B)},init:function(w,B){this._cipher=w,this._iv=B}}),S=g.CBC=function(){var w=m.extend();w.Encryptor=w.extend({processBlock:function(L,A){var O=this._cipher,H=O.blockSize;B.call(this,L,A,H),O.encryptBlock(L,A),this._prevBlock=L.slice(A,A+H)}}),w.Decryptor=w.extend({processBlock:function(L,A){var O=this._cipher,H=O.blockSize,R=L.slice(A,A+H);O.decryptBlock(L,A),B.call(this,L,A,H),this._prevBlock=R}});function B(L,A,O){var H,R=this._iv;R?(H=R,this._iv=o):H=this._prevBlock;for(var F=0;F<O;F++)L[A+F]^=H[F]}return w}(),k=r.pad={},y=k.Pkcs7={pad:function(w,B){for(var L=B*4,A=L-w.sigBytes%L,O=A<<24|A<<16|A<<8|A,H=[],R=0;R<A;R+=4)H.push(O);var F=l.create(H,A);w.concat(F)},unpad:function(w){var B=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=B}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:S,padding:y}),reset:function(){var w;h.reset.call(this);var B=this.cfg,L=B.iv,A=B.mode;this._xformMode==this._ENC_XFORM_MODE?w=A.createEncryptor:(w=A.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,L&&L.words):(this._mode=w.call(A,this,L&&L.words),this._mode.__creator=w)},_doProcessBlock:function(w,B){this._mode.processBlock(w,B)},_doFinalize:function(){var w,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),B.unpad(w)),w},blockSize:128/32});var p=i.CipherParams=s.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),b=r.format={},C=b.OpenSSL={stringify:function(w){var B,L=w.ciphertext,A=w.salt;return A?B=l.create([1398893684,1701076831]).concat(A).concat(L):B=L,B.toString(d)},parse:function(w){var B,L=d.parse(w),A=L.words;return A[0]==1398893684&&A[1]==1701076831&&(B=l.create(A.slice(2,4)),A.splice(0,4),L.sigBytes-=16),p.create({ciphertext:L,salt:B})}},v=i.SerializableCipher=s.extend({cfg:s.extend({format:C}),encrypt:function(w,B,L,A){A=this.cfg.extend(A);var O=w.createEncryptor(L,A),H=O.finalize(B),R=O.cfg;return p.create({ciphertext:H,key:L,iv:R.iv,algorithm:w,mode:R.mode,padding:R.padding,blockSize:w.blockSize,formatter:A.format})},decrypt:function(w,B,L,A){A=this.cfg.extend(A),B=this._parse(B,A.format);var O=w.createDecryptor(L,A).finalize(B.ciphertext);return O},_parse:function(w,B){return typeof w=="string"?B.parse(w,this):w}}),T=r.kdf={},E=T.OpenSSL={execute:function(w,B,L,A){A||(A=l.random(64/8));var O=u.create({keySize:B+L}).compute(w,A),H=l.create(O.words.slice(B),L*4);return O.sigBytes=B*4,p.create({key:O,iv:H,salt:A})}},_=i.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:E}),encrypt:function(w,B,L,A){A=this.cfg.extend(A);var O=A.kdf.execute(L,w.keySize,w.ivSize);A.iv=O.iv;var H=v.encrypt.call(this,w,B,O.key,A);return H.mixIn(O),H},decrypt:function(w,B,L,A){A=this.cfg.extend(A),B=this._parse(B,A.format);var O=A.kdf.execute(L,w.keySize,w.ivSize,B.salt);A.iv=O.iv;var H=v.decrypt.call(this,w,B,O.key,A);return H}})}()})}(Pn)),Pn.exports}var Hn={exports:{}},ur;function Jl(){return ur||(ur=1,function(e,n){(function(t,o,r){e.exports=o(se(),De())})(re,function(t){return t.mode.CFB=function(){var o=t.lib.BlockCipherMode.extend();o.Encryptor=o.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize;r.call(this,i,s,f,l),this._prevBlock=i.slice(s,s+f)}}),o.Decryptor=o.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=i.slice(s,s+f);r.call(this,i,s,f,l),this._prevBlock=c}});function r(i,s,l,f){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,f.encryptBlock(c,0);for(var x=0;x<l;x++)i[s+x]^=c[x]}return o}(),t.mode.CFB})}(Hn)),Hn.exports}var qn={exports:{}},hr;function es(){return hr||(hr=1,function(e,n){(function(t,o,r){e.exports=o(se(),De())})(re,function(t){return t.mode.CTR=function(){var o=t.lib.BlockCipherMode.extend(),r=o.Encryptor=o.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=this._iv,d=this._counter;c&&(d=this._counter=c.slice(0),this._iv=void 0);var x=d.slice(0);l.encryptBlock(x,0),d[f-1]=d[f-1]+1|0;for(var u=0;u<f;u++)i[s+u]^=x[u]}});return o.Decryptor=r,o}(),t.mode.CTR})}(qn)),qn.exports}var Vn={exports:{}},gr;function ts(){return gr||(gr=1,function(e,n){(function(t,o,r){e.exports=o(se(),De())})(re,function(t){/** @preserve
|
|
67
|
+
*/return function(o){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),d=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]),h=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]),u=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),g=f.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,C){for(var B=0;B<16;B++){var _=C+B,v=w[_];w[_]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var E=this._hash.words,z=u.words,k=m.words,N=c.words,M=d.words,D=x.words,q=h.words,I,R,H,L,P,O,F,Y,U,Z;O=I=E[0],F=R=E[1],Y=H=E[2],U=L=E[3],Z=P=E[4];for(var j,B=0;B<80;B+=1)j=I+w[C+N[B]]|0,B<16?j+=S(R,H,L)+z[0]:B<32?j+=A(R,H,L)+z[1]:B<48?j+=y(R,H,L)+z[2]:B<64?j+=b(R,H,L)+z[3]:j+=p(R,H,L)+z[4],j=j|0,j=T(j,D[B]),j=j+P|0,I=P,P=L,L=T(H,10),H=R,R=j,j=O+w[C+M[B]]|0,B<16?j+=p(F,Y,U)+k[0]:B<32?j+=b(F,Y,U)+k[1]:B<48?j+=y(F,Y,U)+k[2]:B<64?j+=A(F,Y,U)+k[3]:j+=S(F,Y,U)+k[4],j=j|0,j=T(j,q[B]),j=j+Z|0,O=Z,Z=U,U=T(Y,10),Y=F,F=j;j=E[1]+H+U|0,E[1]=E[2]+L+Z|0,E[2]=E[3]+P+O|0,E[3]=E[4]+I+F|0,E[4]=E[0]+R+Y|0,E[0]=j},_doFinalize:function(){var w=this._data,C=w.words,B=this._nDataBytes*8,_=w.sigBytes*8;C[_>>>5]|=128<<24-_%32,C[(_+64>>>9<<4)+14]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,w.sigBytes=(C.length+1)*4,this._process();for(var v=this._hash,E=v.words,z=0;z<5;z++){var k=E[z];E[z]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}return v},clone:function(){var w=l.clone.call(this);return w._hash=this._hash.clone(),w}});function S(w,C,B){return w^C^B}function A(w,C,B){return w&C|~w&B}function y(w,C,B){return(w|~C)^B}function b(w,C,B){return w&B|C&~B}function p(w,C,B){return w^(C|~B)}function T(w,C){return w<<C|w>>>32-C}r.RIPEMD160=l._createHelper(g),r.HmacRIPEMD160=l._createHmacHelper(g)}(),t.RIPEMD160})}(Nn)),Nn.exports}var zn={exports:{}},fr;function Mn(){return fr||(fr=1,function(e,n){(function(t,o){e.exports=o(le())})(re,function(t){(function(){var o=t,r=o.lib,i=r.Base,s=o.enc,l=s.Utf8,f=o.algo;f.HMAC=i.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=l.parse(d));var x=c.blockSize,h=x*4;d.sigBytes>h&&(d=c.finalize(d)),d.clamp();for(var u=this._oKey=d.clone(),m=this._iKey=d.clone(),g=u.words,S=m.words,A=0;A<x;A++)g[A]^=1549556828,S[A]^=909522486;u.sigBytes=m.sigBytes=h,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 d=this._hasher,x=d.finalize(c);d.reset();var h=d.finalize(this._oKey.clone().concat(x));return h}})})()})}(zn)),zn.exports}var Fn={exports:{}},dr;function es(){return dr||(dr=1,function(e,n){(function(t,o,r){e.exports=o(le(),_n(),Mn())})(re,function(t){return function(){var o=t,r=o.lib,i=r.Base,s=r.WordArray,l=o.algo,f=l.SHA1,c=l.HMAC,d=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,h){for(var u=this.cfg,m=c.create(u.hasher,x),g=s.create(),S=s.create([1]),A=g.words,y=S.words,b=u.keySize,p=u.iterations;A.length<b;){var T=m.update(h).finalize(S);m.reset();for(var w=T.words,C=w.length,B=T,_=1;_<p;_++){B=m.finalize(B),m.reset();for(var v=B.words,E=0;E<C;E++)w[E]^=v[E]}g.concat(T),y[0]++}return g.sigBytes=b*4,g}});o.PBKDF2=function(x,h,u){return d.create(u).compute(x,h)}}(),t.PBKDF2})}(Fn)),Fn.exports}var Pn={exports:{}},ur;function mt(){return ur||(ur=1,function(e,n){(function(t,o,r){e.exports=o(le(),_n(),Mn())})(re,function(t){return function(){var o=t,r=o.lib,i=r.Base,s=r.WordArray,l=o.algo,f=l.MD5,c=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,x){for(var h,u=this.cfg,m=u.hasher.create(),g=s.create(),S=g.words,A=u.keySize,y=u.iterations;S.length<A;){h&&m.update(h),h=m.update(d).finalize(x),m.reset();for(var b=1;b<y;b++)h=m.finalize(h),m.reset();g.concat(h)}return g.sigBytes=A*4,g}});o.EvpKDF=function(d,x,h){return c.create(h).compute(d,x)}}(),t.EvpKDF})}(Pn)),Pn.exports}var Hn={exports:{}},hr;function De(){return hr||(hr=1,function(e,n){(function(t,o,r){e.exports=o(le(),mt())})(re,function(t){t.lib.Cipher||function(o){var r=t,i=r.lib,s=i.Base,l=i.WordArray,f=i.BufferedBlockAlgorithm,c=r.enc;c.Utf8;var d=c.Base64,x=r.algo,h=x.EvpKDF,u=i.Cipher=f.extend({cfg:s.extend(),createEncryptor:function(v,E){return this.create(this._ENC_XFORM_MODE,v,E)},createDecryptor:function(v,E){return this.create(this._DEC_XFORM_MODE,v,E)},init:function(v,E,z){this.cfg=this.cfg.extend(z),this._xformMode=v,this._key=E,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(v){return this._append(v),this._process()},finalize:function(v){v&&this._append(v);var E=this._doFinalize();return E},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function v(E){return typeof E=="string"?_:w}return function(E){return{encrypt:function(z,k,N){return v(k).encrypt(E,z,k,N)},decrypt:function(z,k,N){return v(k).decrypt(E,z,k,N)}}}}()});i.StreamCipher=u.extend({_doFinalize:function(){var v=this._process(!0);return v},blockSize:1});var m=r.mode={},g=i.BlockCipherMode=s.extend({createEncryptor:function(v,E){return this.Encryptor.create(v,E)},createDecryptor:function(v,E){return this.Decryptor.create(v,E)},init:function(v,E){this._cipher=v,this._iv=E}}),S=m.CBC=function(){var v=g.extend();v.Encryptor=v.extend({processBlock:function(z,k){var N=this._cipher,M=N.blockSize;E.call(this,z,k,M),N.encryptBlock(z,k),this._prevBlock=z.slice(k,k+M)}}),v.Decryptor=v.extend({processBlock:function(z,k){var N=this._cipher,M=N.blockSize,D=z.slice(k,k+M);N.decryptBlock(z,k),E.call(this,z,k,M),this._prevBlock=D}});function E(z,k,N){var M,D=this._iv;D?(M=D,this._iv=o):M=this._prevBlock;for(var q=0;q<N;q++)z[k+q]^=M[q]}return v}(),A=r.pad={},y=A.Pkcs7={pad:function(v,E){for(var z=E*4,k=z-v.sigBytes%z,N=k<<24|k<<16|k<<8|k,M=[],D=0;D<k;D+=4)M.push(N);var q=l.create(M,k);v.concat(q)},unpad:function(v){var E=v.words[v.sigBytes-1>>>2]&255;v.sigBytes-=E}};i.BlockCipher=u.extend({cfg:u.cfg.extend({mode:S,padding:y}),reset:function(){var v;u.reset.call(this);var E=this.cfg,z=E.iv,k=E.mode;this._xformMode==this._ENC_XFORM_MODE?v=k.createEncryptor:(v=k.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==v?this._mode.init(this,z&&z.words):(this._mode=v.call(k,this,z&&z.words),this._mode.__creator=v)},_doProcessBlock:function(v,E){this._mode.processBlock(v,E)},_doFinalize:function(){var v,E=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(E.pad(this._data,this.blockSize),v=this._process(!0)):(v=this._process(!0),E.unpad(v)),v},blockSize:128/32});var b=i.CipherParams=s.extend({init:function(v){this.mixIn(v)},toString:function(v){return(v||this.formatter).stringify(this)}}),p=r.format={},T=p.OpenSSL={stringify:function(v){var E,z=v.ciphertext,k=v.salt;return k?E=l.create([1398893684,1701076831]).concat(k).concat(z):E=z,E.toString(d)},parse:function(v){var E,z=d.parse(v),k=z.words;return k[0]==1398893684&&k[1]==1701076831&&(E=l.create(k.slice(2,4)),k.splice(0,4),z.sigBytes-=16),b.create({ciphertext:z,salt:E})}},w=i.SerializableCipher=s.extend({cfg:s.extend({format:T}),encrypt:function(v,E,z,k){k=this.cfg.extend(k);var N=v.createEncryptor(z,k),M=N.finalize(E),D=N.cfg;return b.create({ciphertext:M,key:z,iv:D.iv,algorithm:v,mode:D.mode,padding:D.padding,blockSize:v.blockSize,formatter:k.format})},decrypt:function(v,E,z,k){k=this.cfg.extend(k),E=this._parse(E,k.format);var N=v.createDecryptor(z,k).finalize(E.ciphertext);return N},_parse:function(v,E){return typeof v=="string"?E.parse(v,this):v}}),C=r.kdf={},B=C.OpenSSL={execute:function(v,E,z,k){k||(k=l.random(64/8));var N=h.create({keySize:E+z}).compute(v,k),M=l.create(N.words.slice(E),z*4);return N.sigBytes=E*4,b.create({key:N,iv:M,salt:k})}},_=i.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:B}),encrypt:function(v,E,z,k){k=this.cfg.extend(k);var N=k.kdf.execute(z,v.keySize,v.ivSize);k.iv=N.iv;var M=w.encrypt.call(this,v,E,N.key,k);return M.mixIn(N),M},decrypt:function(v,E,z,k){k=this.cfg.extend(k),E=this._parse(E,k.format);var N=k.kdf.execute(z,v.keySize,v.ivSize,E.salt);k.iv=N.iv;var M=w.decrypt.call(this,v,E,N.key,k);return M}})}()})}(Hn)),Hn.exports}var qn={exports:{}},gr;function ts(){return gr||(gr=1,function(e,n){(function(t,o,r){e.exports=o(le(),De())})(re,function(t){return t.mode.CFB=function(){var o=t.lib.BlockCipherMode.extend();o.Encryptor=o.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize;r.call(this,i,s,f,l),this._prevBlock=i.slice(s,s+f)}}),o.Decryptor=o.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=i.slice(s,s+f);r.call(this,i,s,f,l),this._prevBlock=c}});function r(i,s,l,f){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,f.encryptBlock(c,0);for(var x=0;x<l;x++)i[s+x]^=c[x]}return o}(),t.mode.CFB})}(qn)),qn.exports}var Vn={exports:{}},mr;function ns(){return mr||(mr=1,function(e,n){(function(t,o,r){e.exports=o(le(),De())})(re,function(t){return t.mode.CTR=function(){var o=t.lib.BlockCipherMode.extend(),r=o.Encryptor=o.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=this._iv,d=this._counter;c&&(d=this._counter=c.slice(0),this._iv=void 0);var x=d.slice(0);l.encryptBlock(x,0),d[f-1]=d[f-1]+1|0;for(var h=0;h<f;h++)i[s+h]^=x[h]}});return o.Decryptor=r,o}(),t.mode.CTR})}(Vn)),Vn.exports}var jn={exports:{}},xr;function os(){return xr||(xr=1,function(e,n){(function(t,o,r){e.exports=o(le(),De())})(re,function(t){/** @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 t.mode.CTRGladman=function(){var o=t.lib.BlockCipherMode.extend();function r(l){if((l>>24&255)===255){var f=l>>16&255,c=l>>8&255,d=l&255;f===255?(f=0,c===255?(c=0,d===255?d=0:++d):++c):++f,l=0,l+=f<<16,l+=c<<8,l+=d}else l+=1<<24;return l}function i(l){return(l[0]=r(l[0]))===0&&(l[1]=r(l[1])),l}var s=o.Encryptor=o.extend({processBlock:function(l,f){var c=this._cipher,d=c.blockSize,x=this._iv,u=this._counter;x&&(u=this._counter=x.slice(0),this._iv=void 0),i(u);var h=u.slice(0);c.encryptBlock(h,0);for(var g=0;g<d;g++)l[f+g]^=h[g]}});return o.Decryptor=s,o}(),t.mode.CTRGladman})}(Vn)),Vn.exports}var jn={exports:{}},mr;function ns(){return mr||(mr=1,function(e,n){(function(t,o,r){e.exports=o(se(),De())})(re,function(t){return t.mode.OFB=function(){var o=t.lib.BlockCipherMode.extend(),r=o.Encryptor=o.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=this._iv,d=this._keystream;c&&(d=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(d,0);for(var x=0;x<f;x++)i[s+x]^=d[x]}});return o.Decryptor=r,o}(),t.mode.OFB})}(jn)),jn.exports}var Gn={exports:{}},xr;function os(){return xr||(xr=1,function(e,n){(function(t,o,r){e.exports=o(se(),De())})(re,function(t){return t.mode.ECB=function(){var o=t.lib.BlockCipherMode.extend();return o.Encryptor=o.extend({processBlock:function(r,i){this._cipher.encryptBlock(r,i)}}),o.Decryptor=o.extend({processBlock:function(r,i){this._cipher.decryptBlock(r,i)}}),o}(),t.mode.ECB})}(Gn)),Gn.exports}var Wn={exports:{}},yr;function as(){return yr||(yr=1,function(e,n){(function(t,o,r){e.exports=o(se(),De())})(re,function(t){return t.pad.AnsiX923={pad:function(o,r){var i=o.sigBytes,s=r*4,l=s-i%s,f=i+l-1;o.clamp(),o.words[f>>>2]|=l<<24-f%4*8,o.sigBytes+=l},unpad:function(o){var r=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=r}},t.pad.Ansix923})}(Wn)),Wn.exports}var Un={exports:{}},pr;function rs(){return pr||(pr=1,function(e,n){(function(t,o,r){e.exports=o(se(),De())})(re,function(t){return t.pad.Iso10126={pad:function(o,r){var i=r*4,s=i-o.sigBytes%i;o.concat(t.lib.WordArray.random(s-1)).concat(t.lib.WordArray.create([s<<24],1))},unpad:function(o){var r=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=r}},t.pad.Iso10126})}(Un)),Un.exports}var $n={exports:{}},br;function is(){return br||(br=1,function(e,n){(function(t,o,r){e.exports=o(se(),De())})(re,function(t){return t.pad.Iso97971={pad:function(o,r){o.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(o,r)},unpad:function(o){t.pad.ZeroPadding.unpad(o),o.sigBytes--}},t.pad.Iso97971})}($n)),$n.exports}var Zn={exports:{}},vr;function ls(){return vr||(vr=1,function(e,n){(function(t,o,r){e.exports=o(se(),De())})(re,function(t){return t.pad.ZeroPadding={pad:function(o,r){var i=r*4;o.clamp(),o.sigBytes+=i-(o.sigBytes%i||i)},unpad:function(o){for(var r=o.words,i=o.sigBytes-1,i=o.sigBytes-1;i>=0;i--)if(r[i>>>2]>>>24-i%4*8&255){o.sigBytes=i+1;break}}},t.pad.ZeroPadding})}(Zn)),Zn.exports}var Yn={exports:{}},Sr;function ss(){return Sr||(Sr=1,function(e,n){(function(t,o,r){e.exports=o(se(),De())})(re,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Yn)),Yn.exports}var Kn={exports:{}},wr;function cs(){return wr||(wr=1,function(e,n){(function(t,o,r){e.exports=o(se(),De())})(re,function(t){return function(o){var r=t,i=r.lib,s=i.CipherParams,l=r.enc,f=l.Hex,c=r.format;c.Hex={stringify:function(d){return d.ciphertext.toString(f)},parse:function(d){var x=f.parse(d);return s.create({ciphertext:x})}}}(),t.format.Hex})}(Kn)),Kn.exports}var Xn={exports:{}},Cr;function fs(){return Cr||(Cr=1,function(e,n){(function(t,o,r){e.exports=o(se(),vt(),St(),ht(),De())})(re,function(t){return function(){var o=t,r=o.lib,i=r.BlockCipher,s=o.algo,l=[],f=[],c=[],d=[],x=[],u=[],h=[],g=[],m=[],S=[];(function(){for(var p=[],b=0;b<256;b++)b<128?p[b]=b<<1:p[b]=b<<1^283;for(var C=0,v=0,b=0;b<256;b++){var T=v^v<<1^v<<2^v<<3^v<<4;T=T>>>8^T&255^99,l[C]=T,f[T]=C;var E=p[C],_=p[E],w=p[_],B=p[T]*257^T*16843008;c[C]=B<<24|B>>>8,d[C]=B<<16|B>>>16,x[C]=B<<8|B>>>24,u[C]=B;var B=w*16843009^_*65537^E*257^C*16843008;h[T]=B<<24|B>>>8,g[T]=B<<16|B>>>16,m[T]=B<<8|B>>>24,S[T]=B,C?(C=E^p[p[p[w^E]]],v^=p[p[v]]):C=v=1}})();var k=[0,1,2,4,8,16,32,64,128,27,54],y=s.AES=i.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,C=b.words,v=b.sigBytes/4,T=this._nRounds=v+6,E=(T+1)*4,_=this._keySchedule=[],w=0;w<E;w++)w<v?_[w]=C[w]:(p=_[w-1],w%v?v>6&&w%v==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^=k[w/v|0]<<24),_[w]=_[w-v]^p);for(var B=this._invKeySchedule=[],L=0;L<E;L++){var w=E-L;if(L%4)var p=_[w];else var p=_[w-4];L<4||w<=4?B[L]=p:B[L]=h[l[p>>>24]]^g[l[p>>>16&255]]^m[l[p>>>8&255]]^S[l[p&255]]}}},encryptBlock:function(p,b){this._doCryptBlock(p,b,this._keySchedule,c,d,x,u,l)},decryptBlock:function(p,b){var C=p[b+1];p[b+1]=p[b+3],p[b+3]=C,this._doCryptBlock(p,b,this._invKeySchedule,h,g,m,S,f);var C=p[b+1];p[b+1]=p[b+3],p[b+3]=C},_doCryptBlock:function(p,b,C,v,T,E,_,w){for(var B=this._nRounds,L=p[b]^C[0],A=p[b+1]^C[1],O=p[b+2]^C[2],H=p[b+3]^C[3],R=4,F=1;F<B;F++){var D=v[L>>>24]^T[A>>>16&255]^E[O>>>8&255]^_[H&255]^C[R++],z=v[A>>>24]^T[O>>>16&255]^E[H>>>8&255]^_[L&255]^C[R++],q=v[O>>>24]^T[H>>>16&255]^E[L>>>8&255]^_[A&255]^C[R++],N=v[H>>>24]^T[L>>>16&255]^E[A>>>8&255]^_[O&255]^C[R++];L=D,A=z,O=q,H=N}var D=(w[L>>>24]<<24|w[A>>>16&255]<<16|w[O>>>8&255]<<8|w[H&255])^C[R++],z=(w[A>>>24]<<24|w[O>>>16&255]<<16|w[H>>>8&255]<<8|w[L&255])^C[R++],q=(w[O>>>24]<<24|w[H>>>16&255]<<16|w[L>>>8&255]<<8|w[A&255])^C[R++],N=(w[H>>>24]<<24|w[L>>>16&255]<<16|w[A>>>8&255]<<8|w[O&255])^C[R++];p[b]=D,p[b+1]=z,p[b+2]=q,p[b+3]=N},keySize:256/32});o.AES=i._createHelper(y)}(),t.AES})}(Xn)),Xn.exports}var Qn={exports:{}},Ar;function ds(){return Ar||(Ar=1,function(e,n){(function(t,o,r){e.exports=o(se(),vt(),St(),ht(),De())})(re,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=r.BlockCipher,l=o.algo,f=[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],d=[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}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=l.DES=s.extend({_doReset:function(){for(var k=this._key,y=k.words,p=[],b=0;b<56;b++){var C=f[b]-1;p[b]=y[C>>>5]>>>31-C%32&1}for(var v=this._subKeys=[],T=0;T<16;T++){for(var E=v[T]=[],_=d[T],b=0;b<24;b++)E[b/6|0]|=p[(c[b]-1+_)%28]<<31-b%6,E[4+(b/6|0)]|=p[28+(c[b+24]-1+_)%28]<<31-b%6;E[0]=E[0]<<1|E[0]>>>31;for(var b=1;b<7;b++)E[b]=E[b]>>>(b-1)*4+3;E[7]=E[7]<<5|E[7]>>>27}for(var w=this._invSubKeys=[],b=0;b<16;b++)w[b]=v[15-b]},encryptBlock:function(k,y){this._doCryptBlock(k,y,this._subKeys)},decryptBlock:function(k,y){this._doCryptBlock(k,y,this._invSubKeys)},_doCryptBlock:function(k,y,p){this._lBlock=k[y],this._rBlock=k[y+1],g.call(this,4,252645135),g.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),g.call(this,1,1431655765);for(var b=0;b<16;b++){for(var C=p[b],v=this._lBlock,T=this._rBlock,E=0,_=0;_<8;_++)E|=x[_][((T^C[_])&u[_])>>>0];this._lBlock=T,this._rBlock=v^E}var w=this._lBlock;this._lBlock=this._rBlock,this._rBlock=w,g.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),k[y]=this._lBlock,k[y+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(k,y){var p=(this._lBlock>>>k^this._rBlock)&y;this._rBlock^=p,this._lBlock^=p<<k}function m(k,y){var p=(this._rBlock>>>k^this._lBlock)&y;this._lBlock^=p,this._rBlock^=p<<k}o.DES=s._createHelper(h);var S=l.TripleDES=s.extend({_doReset:function(){var k=this._key,y=k.words;if(y.length!==2&&y.length!==4&&y.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var p=y.slice(0,2),b=y.length<4?y.slice(0,2):y.slice(2,4),C=y.length<6?y.slice(0,2):y.slice(4,6);this._des1=h.createEncryptor(i.create(p)),this._des2=h.createEncryptor(i.create(b)),this._des3=h.createEncryptor(i.create(C))},encryptBlock:function(k,y){this._des1.encryptBlock(k,y),this._des2.decryptBlock(k,y),this._des3.encryptBlock(k,y)},decryptBlock:function(k,y){this._des3.decryptBlock(k,y),this._des2.encryptBlock(k,y),this._des1.decryptBlock(k,y)},keySize:192/32,ivSize:64/32,blockSize:64/32});o.TripleDES=s._createHelper(S)}(),t.TripleDES})}(Qn)),Qn.exports}var Jn={exports:{}},kr;function us(){return kr||(kr=1,function(e,n){(function(t,o,r){e.exports=o(se(),vt(),St(),ht(),De())})(re,function(t){return function(){var o=t,r=o.lib,i=r.StreamCipher,s=o.algo,l=s.RC4=i.extend({_doReset:function(){for(var d=this._key,x=d.words,u=d.sigBytes,h=this._S=[],g=0;g<256;g++)h[g]=g;for(var g=0,m=0;g<256;g++){var S=g%u,k=x[S>>>2]>>>24-S%4*8&255;m=(m+h[g]+k)%256;var y=h[g];h[g]=h[m],h[m]=y}this._i=this._j=0},_doProcessBlock:function(d,x){d[x]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var d=this._S,x=this._i,u=this._j,h=0,g=0;g<4;g++){x=(x+1)%256,u=(u+d[x])%256;var m=d[x];d[x]=d[u],d[u]=m,h|=d[(d[x]+d[u])%256]<<24-g*8}return this._i=x,this._j=u,h}o.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)f.call(this)}});o.RC4Drop=i._createHelper(c)}(),t.RC4})}(Jn)),Jn.exports}var eo={exports:{}},Tr;function hs(){return Tr||(Tr=1,function(e,n){(function(t,o,r){e.exports=o(se(),vt(),St(),ht(),De())})(re,function(t){return function(){var o=t,r=o.lib,i=r.StreamCipher,s=o.algo,l=[],f=[],c=[],d=s.Rabbit=i.extend({_doReset:function(){for(var u=this._key.words,h=this.cfg.iv,g=0;g<4;g++)u[g]=(u[g]<<8|u[g]>>>24)&16711935|(u[g]<<24|u[g]>>>8)&4278255360;var m=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],S=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var g=0;g<4;g++)x.call(this);for(var g=0;g<8;g++)S[g]^=m[g+4&7];if(h){var k=h.words,y=k[0],p=k[1],b=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,C=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,v=b>>>16|C&4294901760,T=C<<16|b&65535;S[0]^=b,S[1]^=v,S[2]^=C,S[3]^=T,S[4]^=b,S[5]^=v,S[6]^=C,S[7]^=T;for(var g=0;g<4;g++)x.call(this)}},_doProcessBlock:function(u,h){var g=this._X;x.call(this),l[0]=g[0]^g[5]>>>16^g[3]<<16,l[1]=g[2]^g[7]>>>16^g[5]<<16,l[2]=g[4]^g[1]>>>16^g[7]<<16,l[3]=g[6]^g[3]>>>16^g[1]<<16;for(var m=0;m<4;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360,u[h+m]^=l[m]},blockSize:128/32,ivSize:64/32});function x(){for(var u=this._X,h=this._C,g=0;g<8;g++)f[g]=h[g];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<f[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<f[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<f[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<f[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<f[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<f[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<f[6]>>>0?1:0)|0,this._b=h[7]>>>0<f[7]>>>0?1:0;for(var g=0;g<8;g++){var m=u[g]+h[g],S=m&65535,k=m>>>16,y=((S*S>>>17)+S*k>>>15)+k*k,p=((m&4294901760)*m|0)+((m&65535)*m|0);c[g]=y^p}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o.Rabbit=i._createHelper(d)}(),t.Rabbit})}(eo)),eo.exports}var to={exports:{}},Er;function gs(){return Er||(Er=1,function(e,n){(function(t,o,r){e.exports=o(se(),vt(),St(),ht(),De())})(re,function(t){return function(){var o=t,r=o.lib,i=r.StreamCipher,s=o.algo,l=[],f=[],c=[],d=s.RabbitLegacy=i.extend({_doReset:function(){var u=this._key.words,h=this.cfg.iv,g=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],m=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var S=0;S<4;S++)x.call(this);for(var S=0;S<8;S++)m[S]^=g[S+4&7];if(h){var k=h.words,y=k[0],p=k[1],b=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,C=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,v=b>>>16|C&4294901760,T=C<<16|b&65535;m[0]^=b,m[1]^=v,m[2]^=C,m[3]^=T,m[4]^=b,m[5]^=v,m[6]^=C,m[7]^=T;for(var S=0;S<4;S++)x.call(this)}},_doProcessBlock:function(u,h){var g=this._X;x.call(this),l[0]=g[0]^g[5]>>>16^g[3]<<16,l[1]=g[2]^g[7]>>>16^g[5]<<16,l[2]=g[4]^g[1]>>>16^g[7]<<16,l[3]=g[6]^g[3]>>>16^g[1]<<16;for(var m=0;m<4;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360,u[h+m]^=l[m]},blockSize:128/32,ivSize:64/32});function x(){for(var u=this._X,h=this._C,g=0;g<8;g++)f[g]=h[g];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<f[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<f[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<f[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<f[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<f[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<f[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<f[6]>>>0?1:0)|0,this._b=h[7]>>>0<f[7]>>>0?1:0;for(var g=0;g<8;g++){var m=u[g]+h[g],S=m&65535,k=m>>>16,y=((S*S>>>17)+S*k>>>15)+k*k,p=((m&4294901760)*m|0)+((m&65535)*m|0);c[g]=y^p}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o.RabbitLegacy=i._createHelper(d)}(),t.RabbitLegacy})}(to)),to.exports}(function(e,n){(function(t,o,r){e.exports=o(se(),Gt(),Wl(),Ul(),vt(),$l(),St(),Bn(),tr(),Zl(),ar(),Yl(),Kl(),Xl(),zn(),Ql(),ht(),De(),Jl(),es(),ts(),ns(),os(),as(),rs(),is(),ls(),ss(),cs(),fs(),ds(),us(),hs(),gs())})(re,function(t){return t})})(Wa);var ms=Wa.exports;const qe=Ga(ms);var xs="0123456789abcdefghijklmnopqrstuvwxyz";function tt(e){return xs.charAt(e)}function ys(e,n){return e&n}function Wt(e,n){return e|n}function Br(e,n){return e^n}function _r(e,n){return e&~n}function ps(e){if(e==0)return-1;var n=0;return e&65535||(e>>=16,n+=16),e&255||(e>>=8,n+=8),e&15||(e>>=4,n+=4),e&3||(e>>=2,n+=2),e&1||++n,n}function bs(e){for(var n=0;e!=0;)e&=e-1,++n;return n}var wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Dr="=";function Ut(e){var n,t,o="";for(n=0;n+3<=e.length;n+=3)t=parseInt(e.substring(n,n+3),16),o+=wt.charAt(t>>6)+wt.charAt(t&63);for(n+1==e.length?(t=parseInt(e.substring(n,n+1),16),o+=wt.charAt(t<<2)):n+2==e.length&&(t=parseInt(e.substring(n,n+2),16),o+=wt.charAt(t>>2)+wt.charAt((t&3)<<4));(o.length&3)>0;)o+=Dr;return o}function Rr(e){var n="",t,o=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=Dr;++t){var i=wt.indexOf(e.charAt(t));i<0||(o==0?(n+=tt(i>>2),r=i&3,o=1):o==1?(n+=tt(r<<2|i>>4),r=i&15,o=2):o==2?(n+=tt(r),n+=tt(i>>2),r=i&3,o=3):(n+=tt(r<<2|i>>4),n+=tt(i&15),o=0))}return o==1&&(n+=tt(r<<2)),n}var Ct,vs={decode:function(e){var n;if(Ct===void 0){var t="0123456789ABCDEF",o=` \f
|
|
72
|
-
\r \u2028\u2029`;for(
|
|
73
|
-
\r \u2028\u2029`;for(
|
|
74
|
-
`;break;default:r+=" "}return r},e.prototype.isASCII=function(n,t){for(var o=n;o<t;++o){var r=this.get(o);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(n,t){for(var o="",r=n;r<t;++r)o+=String.fromCharCode(this.get(r));return o},e.prototype.parseStringUTF=function(n,t){for(var o="",r=n;r<t;){var i=this.get(r++);i<128?o+=String.fromCharCode(i):i>191&&i<224?o+=String.fromCharCode((i&31)<<6|this.get(r++)&63):o+=String.fromCharCode((i&15)<<12|(this.get(r++)&63)<<6|this.get(r++)&63)}return o},e.prototype.parseStringBMP=function(n,t){for(var o="",r,i,s=n;s<t;)r=this.get(s++),i=this.get(s++),o+=String.fromCharCode(r<<8|i);return o},e.prototype.parseTime=function(n,t,o){var r=this.parseStringISO(n,t),i=(o?
|
|
75
|
-
`}r&&(o=o-256);for(var f=new
|
|
76
|
-
`,l="",f=n+1;f<t;++f){for(var c=this.get(f),d=f==t-1?r:0,x=7;x>=d;--x)l+=c>>x&1?"1":"0";if(l.length>o)return s+
|
|
77
|
-
`;o/=2,r>o&&(t=n+o);for(var s=n;s<t;++s)i+=this.hexByte(this.get(s));return r>o&&(i+=
|
|
78
|
-
`,this.sub!==null){n+=" ";for(var o=0,r=this.sub.length;o<r;++o)t+=this.sub[o].toPrettyString(n)}return t},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(n){var t=n.get(),o=t&127;if(o==t)return o;if(o>6)throw new Error("Length over 48 bits not supported at position "+(n.pos-1));if(o===0)return null;t=0;for(var r=0;r<o;++r)t=t*256+n.get();return t},e.prototype.getHexStringValue=function(){var n=this.toHexString(),t=this.header*2,o=this.length*2;return n.substr(t,o)},e.decode=function(n){var t;n instanceof oo?t=n:t=new oo(n,0);var o=new oo(t),r=new Or(t),i=e.decodeLength(t),s=t.pos,l=s-o.pos,f=null,c=function(){var x=[];if(i!==null){for(var u=s+i;t.pos<u;)x[x.length]=e.decode(t);if(t.pos!=u)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var h=e.decode(t);if(h.tag.isEOC())break;x[x.length]=h}i=s-t.pos}catch(g){throw new Error("Exception while decoding undefined length content: "+g)}return x};if(r.tagConstructed)f=c();else if(r.isUniversal()&&(r.tagNumber==3||r.tagNumber==4))try{if(r.tagNumber==3&&t.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");f=c();for(var d=0;d<f.length;++d)if(f[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{f=null}if(f===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);t.pos=s+Math.abs(i)}return new e(o,l,i,r,f)},e}(),Or=function(){function e(n){var t=n.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var o=new zt;do t=n.get(),o.mulAdd(128,t&127);while(t&128);this.tagNumber=o.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),rt,As=0xdeadbeefcafe,Lr=(As&16777215)==15715070,Me=[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],ks=(1<<26)/Me[Me.length-1],ne=function(){function e(n,t,o){n!=null&&(typeof n=="number"?this.fromNumber(n,t,o):t==null&&typeof n!="string"?this.fromString(n,256):this.fromString(n,t))}return e.prototype.toString=function(n){if(this.s<0)return"-"+this.negate().toString(n);var t;if(n==16)t=4;else if(n==8)t=3;else if(n==2)t=1;else if(n==32)t=5;else if(n==4)t=2;else return this.toRadix(n);var o=(1<<t)-1,r,i=!1,s="",l=this.t,f=this.DB-l*this.DB%t;if(l-- >0)for(f<this.DB&&(r=this[l]>>f)>0&&(i=!0,s=tt(r));l>=0;)f<t?(r=(this[l]&(1<<f)-1)<<t-f,r|=this[--l]>>(f+=this.DB-t)):(r=this[l]>>(f-=t)&o,f<=0&&(f+=this.DB,--l)),r>0&&(i=!0),i&&(s+=tt(r));return i?s:"0"},e.prototype.negate=function(){var n=ie();return e.ZERO.subTo(this,n),n},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(n){var t=this.s-n.s;if(t!=0)return t;var o=this.t;if(t=o-n.t,t!=0)return this.s<0?-t:t;for(;--o>=0;)if((t=this[o]-n[o])!=0)return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Zt(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(n){var t=ie();return this.abs().divRemTo(n,null,t),this.s<0&&t.compareTo(e.ZERO)>0&&n.subTo(t,t),t},e.prototype.modPowInt=function(n,t){var o;return n<256||t.isEven()?o=new Nr(t):o=new zr(t),this.exp(n,o)},e.prototype.clone=function(){var n=ie();return this.copyTo(n),n},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 n=this.t,t=[];t[0]=this.s;var o=this.DB-n*this.DB%8,r,i=0;if(n-- >0)for(o<this.DB&&(r=this[n]>>o)!=(this.s&this.DM)>>o&&(t[i++]=r|this.s<<this.DB-o);n>=0;)o<8?(r=(this[n]&(1<<o)-1)<<8-o,r|=this[--n]>>(o+=this.DB-8)):(r=this[n]>>(o-=8)&255,o<=0&&(o+=this.DB,--n)),r&128&&(r|=-256),i==0&&(this.s&128)!=(r&128)&&++i,(i>0||r!=this.s)&&(t[i++]=r);return t},e.prototype.equals=function(n){return this.compareTo(n)==0},e.prototype.min=function(n){return this.compareTo(n)<0?this:n},e.prototype.max=function(n){return this.compareTo(n)>0?this:n},e.prototype.and=function(n){var t=ie();return this.bitwiseTo(n,ys,t),t},e.prototype.or=function(n){var t=ie();return this.bitwiseTo(n,Wt,t),t},e.prototype.xor=function(n){var t=ie();return this.bitwiseTo(n,Br,t),t},e.prototype.andNot=function(n){var t=ie();return this.bitwiseTo(n,_r,t),t},e.prototype.not=function(){for(var n=ie(),t=0;t<this.t;++t)n[t]=this.DM&~this[t];return n.t=this.t,n.s=~this.s,n},e.prototype.shiftLeft=function(n){var t=ie();return n<0?this.rShiftTo(-n,t):this.lShiftTo(n,t),t},e.prototype.shiftRight=function(n){var t=ie();return n<0?this.lShiftTo(-n,t):this.rShiftTo(n,t),t},e.prototype.getLowestSetBit=function(){for(var n=0;n<this.t;++n)if(this[n]!=0)return n*this.DB+ps(this[n]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var n=0,t=this.s&this.DM,o=0;o<this.t;++o)n+=bs(this[o]^t);return n},e.prototype.testBit=function(n){var t=Math.floor(n/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<n%this.DB)!=0},e.prototype.setBit=function(n){return this.changeBit(n,Wt)},e.prototype.clearBit=function(n){return this.changeBit(n,_r)},e.prototype.flipBit=function(n){return this.changeBit(n,Br)},e.prototype.add=function(n){var t=ie();return this.addTo(n,t),t},e.prototype.subtract=function(n){var t=ie();return this.subTo(n,t),t},e.prototype.multiply=function(n){var t=ie();return this.multiplyTo(n,t),t},e.prototype.divide=function(n){var t=ie();return this.divRemTo(n,t,null),t},e.prototype.remainder=function(n){var t=ie();return this.divRemTo(n,null,t),t},e.prototype.divideAndRemainder=function(n){var t=ie(),o=ie();return this.divRemTo(n,t,o),[t,o]},e.prototype.modPow=function(n,t){var o=n.bitLength(),r,i=it(1),s;if(o<=0)return i;o<18?r=1:o<48?r=3:o<144?r=4:o<768?r=5:r=6,o<8?s=new Nr(t):t.isEven()?s=new Es(t):s=new zr(t);var l=[],f=3,c=r-1,d=(1<<r)-1;if(l[1]=s.convert(this),r>1){var x=ie();for(s.sqrTo(l[1],x);f<=d;)l[f]=ie(),s.mulTo(x,l[f-2],l[f]),f+=2}var u=n.t-1,h,g=!0,m=ie(),S;for(o=Zt(n[u])-1;u>=0;){for(o>=c?h=n[u]>>o-c&d:(h=(n[u]&(1<<o+1)-1)<<c-o,u>0&&(h|=n[u-1]>>this.DB+o-c)),f=r;!(h&1);)h>>=1,--f;if((o-=f)<0&&(o+=this.DB,--u),g)l[h].copyTo(i),g=!1;else{for(;f>1;)s.sqrTo(i,m),s.sqrTo(m,i),f-=2;f>0?s.sqrTo(i,m):(S=i,i=m,m=S),s.mulTo(m,l[h],i)}for(;u>=0&&!(n[u]&1<<o);)s.sqrTo(i,m),S=i,i=m,m=S,--o<0&&(o=this.DB-1,--u)}return s.revert(i)},e.prototype.modInverse=function(n){var t=n.isEven();if(this.isEven()&&t||n.signum()==0)return e.ZERO;for(var o=n.clone(),r=this.clone(),i=it(1),s=it(0),l=it(0),f=it(1);o.signum()!=0;){for(;o.isEven();)o.rShiftTo(1,o),t?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(n,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(n,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),t?((!l.isEven()||!f.isEven())&&(l.addTo(this,l),f.subTo(n,f)),l.rShiftTo(1,l)):f.isEven()||f.subTo(n,f),f.rShiftTo(1,f);o.compareTo(r)>=0?(o.subTo(r,o),t&&i.subTo(l,i),s.subTo(f,s)):(r.subTo(o,r),t&&l.subTo(i,l),f.subTo(s,f))}if(r.compareTo(e.ONE)!=0)return e.ZERO;if(f.compareTo(n)>=0)return f.subtract(n);if(f.signum()<0)f.addTo(n,f);else return f;return f.signum()<0?f.add(n):f},e.prototype.pow=function(n){return this.exp(n,new Ts)},e.prototype.gcd=function(n){var t=this.s<0?this.negate():this.clone(),o=n.s<0?n.negate():n.clone();if(t.compareTo(o)<0){var r=t;t=o,o=r}var i=t.getLowestSetBit(),s=o.getLowestSetBit();if(s<0)return t;for(i<s&&(s=i),s>0&&(t.rShiftTo(s,t),o.rShiftTo(s,o));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=o.getLowestSetBit())>0&&o.rShiftTo(i,o),t.compareTo(o)>=0?(t.subTo(o,t),t.rShiftTo(1,t)):(o.subTo(t,o),o.rShiftTo(1,o));return s>0&&o.lShiftTo(s,o),o},e.prototype.isProbablePrime=function(n){var t,o=this.abs();if(o.t==1&&o[0]<=Me[Me.length-1]){for(t=0;t<Me.length;++t)if(o[0]==Me[t])return!0;return!1}if(o.isEven())return!1;for(t=1;t<Me.length;){for(var r=Me[t],i=t+1;i<Me.length&&r<ks;)r*=Me[i++];for(r=o.modInt(r);t<i;)if(r%Me[t++]==0)return!1}return o.millerRabin(n)},e.prototype.copyTo=function(n){for(var t=this.t-1;t>=0;--t)n[t]=this[t];n.t=this.t,n.s=this.s},e.prototype.fromInt=function(n){this.t=1,this.s=n<0?-1:0,n>0?this[0]=n:n<-1?this[0]=n+this.DV:this.t=0},e.prototype.fromString=function(n,t){var o;if(t==16)o=4;else if(t==8)o=3;else if(t==256)o=8;else if(t==2)o=1;else if(t==32)o=5;else if(t==4)o=2;else{this.fromRadix(n,t);return}this.t=0,this.s=0;for(var r=n.length,i=!1,s=0;--r>=0;){var l=o==8?+n[r]&255:Fr(n,r);if(l<0){n.charAt(r)=="-"&&(i=!0);continue}i=!1,s==0?this[this.t++]=l:s+o>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+=o,s>=this.DB&&(s-=this.DB)}o==8&&+n[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var n=this.s&this.DM;this.t>0&&this[this.t-1]==n;)--this.t},e.prototype.dlShiftTo=function(n,t){var o;for(o=this.t-1;o>=0;--o)t[o+n]=this[o];for(o=n-1;o>=0;--o)t[o]=0;t.t=this.t+n,t.s=this.s},e.prototype.drShiftTo=function(n,t){for(var o=n;o<this.t;++o)t[o-n]=this[o];t.t=Math.max(this.t-n,0),t.s=this.s},e.prototype.lShiftTo=function(n,t){for(var o=n%this.DB,r=this.DB-o,i=(1<<r)-1,s=Math.floor(n/this.DB),l=this.s<<o&this.DM,f=this.t-1;f>=0;--f)t[f+s+1]=this[f]>>r|l,l=(this[f]&i)<<o;for(var f=s-1;f>=0;--f)t[f]=0;t[s]=l,t.t=this.t+s+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(n,t){t.s=this.s;var o=Math.floor(n/this.DB);if(o>=this.t){t.t=0;return}var r=n%this.DB,i=this.DB-r,s=(1<<r)-1;t[0]=this[o]>>r;for(var l=o+1;l<this.t;++l)t[l-o-1]|=(this[l]&s)<<i,t[l-o]=this[l]>>r;r>0&&(t[this.t-o-1]|=(this.s&s)<<i),t.t=this.t-o,t.clamp()},e.prototype.subTo=function(n,t){for(var o=0,r=0,i=Math.min(n.t,this.t);o<i;)r+=this[o]-n[o],t[o++]=r&this.DM,r>>=this.DB;if(n.t<this.t){for(r-=n.s;o<this.t;)r+=this[o],t[o++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;o<n.t;)r-=n[o],t[o++]=r&this.DM,r>>=this.DB;r-=n.s}t.s=r<0?-1:0,r<-1?t[o++]=this.DV+r:r>0&&(t[o++]=r),t.t=o,t.clamp()},e.prototype.multiplyTo=function(n,t){var o=this.abs(),r=n.abs(),i=o.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;++i)t[i+o.t]=o.am(0,r[i],t,i,0,o.t);t.s=0,t.clamp(),this.s!=n.s&&e.ZERO.subTo(t,t)},e.prototype.squareTo=function(n){for(var t=this.abs(),o=n.t=2*t.t;--o>=0;)n[o]=0;for(o=0;o<t.t-1;++o){var r=t.am(o,t[o],n,2*o,0,1);(n[o+t.t]+=t.am(o+1,2*t[o],n,2*o+1,r,t.t-o-1))>=t.DV&&(n[o+t.t]-=t.DV,n[o+t.t+1]=1)}n.t>0&&(n[n.t-1]+=t.am(o,t[o],n,2*o,0,1)),n.s=0,n.clamp()},e.prototype.divRemTo=function(n,t,o){var r=n.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t){t!=null&&t.fromInt(0),o!=null&&this.copyTo(o);return}o==null&&(o=ie());var s=ie(),l=this.s,f=n.s,c=this.DB-Zt(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,o)):(r.copyTo(s),i.copyTo(o));var d=s.t,x=s[d-1];if(x!=0){var u=x*(1<<this.F1)+(d>1?s[d-2]>>this.F2:0),h=this.FV/u,g=(1<<this.F1)/u,m=1<<this.F2,S=o.t,k=S-d,y=t??ie();for(s.dlShiftTo(k,y),o.compareTo(y)>=0&&(o[o.t++]=1,o.subTo(y,o)),e.ONE.dlShiftTo(d,y),y.subTo(s,s);s.t<d;)s[s.t++]=0;for(;--k>=0;){var p=o[--S]==x?this.DM:Math.floor(o[S]*h+(o[S-1]+m)*g);if((o[S]+=s.am(0,p,o,k,0,d))<p)for(s.dlShiftTo(k,y),o.subTo(y,o);o[S]<--p;)o.subTo(y,o)}t!=null&&(o.drShiftTo(d,t),l!=f&&e.ZERO.subTo(t,t)),o.t=d,o.clamp(),c>0&&o.rShiftTo(c,o),l<0&&e.ZERO.subTo(o,o)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var n=this[0];if(!(n&1))return 0;var t=n&3;return t=t*(2-(n&15)*t)&15,t=t*(2-(n&255)*t)&255,t=t*(2-((n&65535)*t&65535))&65535,t=t*(2-n*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(n,t){if(n>4294967295||n<1)return e.ONE;var o=ie(),r=ie(),i=t.convert(this),s=Zt(n)-1;for(i.copyTo(o);--s>=0;)if(t.sqrTo(o,r),(n&1<<s)>0)t.mulTo(r,i,o);else{var l=o;o=r,r=l}return t.revert(o)},e.prototype.chunkSize=function(n){return Math.floor(Math.LN2*this.DB/Math.log(n))},e.prototype.toRadix=function(n){if(n==null&&(n=10),this.signum()==0||n<2||n>36)return"0";var t=this.chunkSize(n),o=Math.pow(n,t),r=it(o),i=ie(),s=ie(),l="";for(this.divRemTo(r,i,s);i.signum()>0;)l=(o+s.intValue()).toString(n).substr(1)+l,i.divRemTo(r,i,s);return s.intValue().toString(n)+l},e.prototype.fromRadix=function(n,t){this.fromInt(0),t==null&&(t=10);for(var o=this.chunkSize(t),r=Math.pow(t,o),i=!1,s=0,l=0,f=0;f<n.length;++f){var c=Fr(n,f);if(c<0){n.charAt(f)=="-"&&this.signum()==0&&(i=!0);continue}l=t*l+c,++s>=o&&(this.dMultiply(r),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(l,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(n,t,o){if(typeof t=="number")if(n<2)this.fromInt(1);else for(this.fromNumber(n,o),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),Wt,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>n&&this.subTo(e.ONE.shiftLeft(n-1),this);else{var r=[],i=n&7;r.length=(n>>3)+1,t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(n,t,o){var r,i,s=Math.min(n.t,this.t);for(r=0;r<s;++r)o[r]=t(this[r],n[r]);if(n.t<this.t){for(i=n.s&this.DM,r=s;r<this.t;++r)o[r]=t(this[r],i);o.t=this.t}else{for(i=this.s&this.DM,r=s;r<n.t;++r)o[r]=t(i,n[r]);o.t=n.t}o.s=t(this.s,n.s),o.clamp()},e.prototype.changeBit=function(n,t){var o=e.ONE.shiftLeft(n);return this.bitwiseTo(o,t,o),o},e.prototype.addTo=function(n,t){for(var o=0,r=0,i=Math.min(n.t,this.t);o<i;)r+=this[o]+n[o],t[o++]=r&this.DM,r>>=this.DB;if(n.t<this.t){for(r+=n.s;o<this.t;)r+=this[o],t[o++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;o<n.t;)r+=n[o],t[o++]=r&this.DM,r>>=this.DB;r+=n.s}t.s=r<0?-1:0,r>0?t[o++]=r:r<-1&&(t[o++]=this.DV+r),t.t=o,t.clamp()},e.prototype.dMultiply=function(n){this[this.t]=this.am(0,n-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(n,t){if(n!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=n;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(n,t,o){var r=Math.min(this.t+n.t,t);for(o.s=0,o.t=r;r>0;)o[--r]=0;for(var i=o.t-this.t;r<i;++r)o[r+this.t]=this.am(0,n[r],o,r,0,this.t);for(var i=Math.min(n.t,t);r<i;++r)this.am(0,n[r],o,r,0,t-r);o.clamp()},e.prototype.multiplyUpperTo=function(n,t,o){--t;var r=o.t=this.t+n.t-t;for(o.s=0;--r>=0;)o[r]=0;for(r=Math.max(t-this.t,0);r<n.t;++r)o[this.t+r-t]=this.am(t-r,n[r],o,0,0,this.t+r-t);o.clamp(),o.drShiftTo(1,o)},e.prototype.modInt=function(n){if(n<=0)return 0;var t=this.DV%n,o=this.s<0?n-1:0;if(this.t>0)if(t==0)o=this[0]%n;else for(var r=this.t-1;r>=0;--r)o=(t*o+this[r])%n;return o},e.prototype.millerRabin=function(n){var t=this.subtract(e.ONE),o=t.getLowestSetBit();if(o<=0)return!1;var r=t.shiftRight(o);n=n+1>>1,n>Me.length&&(n=Me.length);for(var i=ie(),s=0;s<n;++s){i.fromInt(Me[Math.floor(Math.random()*Me.length)]);var l=i.modPow(r,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(t)!=0){for(var f=1;f++<o&&l.compareTo(t)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(t)!=0)return!1}}return!0},e.prototype.square=function(){var n=ie();return this.squareTo(n),n},e.prototype.gcda=function(n,t){var o=this.s<0?this.negate():this.clone(),r=n.s<0?n.negate():n.clone();if(o.compareTo(r)<0){var i=o;o=r,r=i}var s=o.getLowestSetBit(),l=r.getLowestSetBit();if(l<0){t(o);return}s<l&&(l=s),l>0&&(o.rShiftTo(l,o),r.rShiftTo(l,r));var f=function(){(s=o.getLowestSetBit())>0&&o.rShiftTo(s,o),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),o.compareTo(r)>=0?(o.subTo(r,o),o.rShiftTo(1,o)):(r.subTo(o,r),r.rShiftTo(1,r)),o.signum()>0?setTimeout(f,0):(l>0&&r.lShiftTo(l,r),setTimeout(function(){t(r)},0))};setTimeout(f,10)},e.prototype.fromNumberAsync=function(n,t,o,r){if(typeof t=="number")if(n<2)this.fromInt(1);else{this.fromNumber(n,o),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),Wt,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>n&&i.subTo(e.ONE.shiftLeft(n-1),i),i.isProbablePrime(t)?setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],f=n&7;l.length=(n>>3)+1,t.nextBytes(l),f>0?l[0]&=(1<<f)-1:l[0]=0,this.fromString(l,256)}},e}(),Ts=function(){function e(){}return e.prototype.convert=function(n){return n},e.prototype.revert=function(n){return n},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o)},e.prototype.sqrTo=function(n,t){n.squareTo(t)},e}(),Nr=function(){function e(n){this.m=n}return e.prototype.convert=function(n){return n.s<0||n.compareTo(this.m)>=0?n.mod(this.m):n},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){n.divRemTo(this.m,null,n)},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),zr=function(){function e(n){this.m=n,this.mp=n.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<n.DB-15)-1,this.mt2=2*n.t}return e.prototype.convert=function(n){var t=ie();return n.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),n.s<0&&t.compareTo(ne.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(n){var t=ie();return n.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(n){for(;n.t<=this.mt2;)n[n.t++]=0;for(var t=0;t<this.m.t;++t){var o=n[t]&32767,r=o*this.mpl+((o*this.mph+(n[t]>>15)*this.mpl&this.um)<<15)&n.DM;for(o=t+this.m.t,n[o]+=this.m.am(0,r,n,t,0,this.m.t);n[o]>=n.DV;)n[o]-=n.DV,n[++o]++}n.clamp(),n.drShiftTo(this.m.t,n),n.compareTo(this.m)>=0&&n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),Es=function(){function e(n){this.m=n,this.r2=ie(),this.q3=ie(),ne.ONE.dlShiftTo(2*n.t,this.r2),this.mu=this.r2.divide(n)}return e.prototype.convert=function(n){if(n.s<0||n.t>2*this.m.t)return n.mod(this.m);if(n.compareTo(this.m)<0)return n;var t=ie();return n.copyTo(t),this.reduce(t),t},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){for(n.drShiftTo(this.m.t-1,this.r2),n.t>this.m.t+1&&(n.t=this.m.t+1,n.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);n.compareTo(this.r2)<0;)n.dAddOffset(1,this.m.t+1);for(n.subTo(this.r2,n);n.compareTo(this.m)>=0;)n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}();function ie(){return new ne(null)}function Ce(e,n){return new ne(e,n)}var Mr=typeof navigator<"u";Mr&&Lr&&navigator.appName=="Microsoft Internet Explorer"?(ne.prototype.am=function(n,t,o,r,i,s){for(var l=t&32767,f=t>>15;--s>=0;){var c=this[n]&32767,d=this[n++]>>15,x=f*c+d*l;c=l*c+((x&32767)<<15)+o[r]+(i&1073741823),i=(c>>>30)+(x>>>15)+f*d+(i>>>30),o[r++]=c&1073741823}return i},rt=30):Mr&&Lr&&navigator.appName!="Netscape"?(ne.prototype.am=function(n,t,o,r,i,s){for(;--s>=0;){var l=t*this[n++]+o[r]+i;i=Math.floor(l/67108864),o[r++]=l&67108863}return i},rt=26):(ne.prototype.am=function(n,t,o,r,i,s){for(var l=t&16383,f=t>>14;--s>=0;){var c=this[n]&16383,d=this[n++]>>14,x=f*c+d*l;c=l*c+((x&16383)<<14)+o[r]+i,i=(c>>28)+(x>>14)+f*d,o[r++]=c&268435455}return i},rt=28),ne.prototype.DB=rt,ne.prototype.DM=(1<<rt)-1,ne.prototype.DV=1<<rt;var ao=52;ne.prototype.FV=Math.pow(2,ao),ne.prototype.F1=ao-rt,ne.prototype.F2=2*rt-ao;var $t=[],Tt,Ue;for(Tt="0".charCodeAt(0),Ue=0;Ue<=9;++Ue)$t[Tt++]=Ue;for(Tt="a".charCodeAt(0),Ue=10;Ue<36;++Ue)$t[Tt++]=Ue;for(Tt="A".charCodeAt(0),Ue=10;Ue<36;++Ue)$t[Tt++]=Ue;function Fr(e,n){var t=$t[e.charCodeAt(n)];return t??-1}function it(e){var n=ie();return n.fromInt(e),n}function Zt(e){var n=1,t;return(t=e>>>16)!=0&&(e=t,n+=16),(t=e>>8)!=0&&(e=t,n+=8),(t=e>>4)!=0&&(e=t,n+=4),(t=e>>2)!=0&&(e=t,n+=2),(t=e>>1)!=0&&(e=t,n+=1),n}ne.ZERO=it(0),ne.ONE=it(1);var Bs=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(n){var t,o,r;for(t=0;t<256;++t)this.S[t]=t;for(o=0,t=0;t<256;++t)o=o+this.S[t]+n[t%n.length]&255,r=this.S[t],this.S[t]=this.S[o],this.S[o]=r;this.i=0,this.j=0},e.prototype.next=function(){var n;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,n=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=n,this.S[n+this.S[this.i]&255]},e}();function _s(){return new Bs}var Pr=256,Yt,lt=null,Ke;if(lt==null){lt=[],Ke=0;var Kt=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var ro=new Uint32Array(256);for(window.crypto.getRandomValues(ro),Kt=0;Kt<ro.length;++Kt)lt[Ke++]=ro[Kt]&255}var Xt=0,Qt=function(e){if(Xt=Xt||0,Xt>=256||Ke>=Pr){window.removeEventListener?window.removeEventListener("mousemove",Qt,!1):window.detachEvent&&window.detachEvent("onmousemove",Qt);return}try{var n=e.x+e.y;lt[Ke++]=n&255,Xt+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Qt,!1):window.attachEvent&&window.attachEvent("onmousemove",Qt))}function Ds(){if(Yt==null){for(Yt=_s();Ke<Pr;){var e=Math.floor(65536*Math.random());lt[Ke++]=e&255}for(Yt.init(lt),Ke=0;Ke<lt.length;++Ke)lt[Ke]=0;Ke=0}return Yt.next()}var io=function(){function e(){}return e.prototype.nextBytes=function(n){for(var t=0;t<n.length;++t)n[t]=Ds()},e}();function Rs(e,n){if(n<e.length+22)return console.error("Message too long for RSA"),null;for(var t=n-e.length-6,o="",r=0;r<t;r+=2)o+="ff";var i="0001"+o+"00"+e;return Ce(i,16)}function Is(e,n){if(n<e.length+11)return console.error("Message too long for RSA"),null;for(var t=[],o=e.length-1;o>=0&&n>0;){var r=e.charCodeAt(o--);r<128?t[--n]=r:r>127&&r<2048?(t[--n]=r&63|128,t[--n]=r>>6|192):(t[--n]=r&63|128,t[--n]=r>>6&63|128,t[--n]=r>>12|224)}t[--n]=0;for(var i=new io,s=[];n>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);t[--n]=s[0]}return t[--n]=2,t[--n]=0,new ne(t)}var Os=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(n){return n.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(n){if(this.p==null||this.q==null)return n.modPow(this.d,this.n);for(var t=n.mod(this.p).modPow(this.dmp1,this.p),o=n.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(o)<0;)t=t.add(this.p);return t.subtract(o).multiply(this.coeff).mod(this.p).multiply(this.q).add(o)},e.prototype.setPublic=function(n,t){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=Ce(n,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(n){var t=this.n.bitLength()+7>>3,o=Is(n,t);if(o==null)return null;var r=this.doPublic(o);if(r==null)return null;for(var i=r.toString(16),s=i.length,l=0;l<t*2-s;l++)i="0"+i;return i},e.prototype.setPrivate=function(n,t,o){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=Ce(n,16),this.e=parseInt(t,16),this.d=Ce(o,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(n,t,o,r,i,s,l,f){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=Ce(n,16),this.e=parseInt(t,16),this.d=Ce(o,16),this.p=Ce(r,16),this.q=Ce(i,16),this.dmp1=Ce(s,16),this.dmq1=Ce(l,16),this.coeff=Ce(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,t){var o=new io,r=n>>1;this.e=parseInt(t,16);for(var i=new ne(t,16);;){for(;this.p=new ne(n-r,1,o),!(this.p.subtract(ne.ONE).gcd(i).compareTo(ne.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ne(r,1,o),!(this.q.subtract(ne.ONE).gcd(i).compareTo(ne.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(ne.ONE),f=this.q.subtract(ne.ONE),c=l.multiply(f);if(c.gcd(i).compareTo(ne.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(f),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(n){var t=Ce(n,16),o=this.doPrivate(t);return o==null?null:Ls(o,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,t,o){var r=new io,i=n>>1;this.e=parseInt(t,16);var s=new ne(t,16),l=this,f=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var u=l.p;l.p=l.q,l.q=u}var h=l.p.subtract(ne.ONE),g=l.q.subtract(ne.ONE),m=h.multiply(g);m.gcd(s).compareTo(ne.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(m),l.dmp1=l.d.mod(h),l.dmq1=l.d.mod(g),l.coeff=l.q.modInverse(l.p),setTimeout(function(){o()},0)):setTimeout(f,0)},d=function(){l.q=ie(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(ne.ONE).gcda(s,function(u){u.compareTo(ne.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(d,0)})})},x=function(){l.p=ie(),l.p.fromNumberAsync(n-i,1,r,function(){l.p.subtract(ne.ONE).gcda(s,function(u){u.compareTo(ne.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(d,0):setTimeout(x,0)})})};setTimeout(x,0)};setTimeout(f,0)},e.prototype.sign=function(n,t,o){var r=Ns(o),i=r+t(n).toString(),s=Rs(i,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var f=l.toString(16);return f.length&1?"0"+f:f},e.prototype.verify=function(n,t,o){var r=Ce(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=zs(s);return l==o(n).toString()},e}();function Ls(e,n){for(var t=e.toByteArray(),o=0;o<t.length&&t[o]==0;)++o;if(t.length-o!=n-1||t[o]!=2)return null;for(++o;t[o]!=0;)if(++o>=t.length)return null;for(var r="";++o<t.length;){var i=t[o]&255;i<128?r+=String.fromCharCode(i):i>191&&i<224?(r+=String.fromCharCode((i&31)<<6|t[o+1]&63),++o):(r+=String.fromCharCode((i&15)<<12|(t[o+1]&63)<<6|t[o+2]&63),o+=2)}return r}var Jt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Ns(e){return Jt[e]||""}function zs(e){for(var n in Jt)if(Jt.hasOwnProperty(n)){var t=Jt[n],o=t.length;if(e.substr(0,o)==t)return e.substr(o)}return e}/*!
|
|
71
|
+
*/return t.mode.CTRGladman=function(){var o=t.lib.BlockCipherMode.extend();function r(l){if((l>>24&255)===255){var f=l>>16&255,c=l>>8&255,d=l&255;f===255?(f=0,c===255?(c=0,d===255?d=0:++d):++c):++f,l=0,l+=f<<16,l+=c<<8,l+=d}else l+=1<<24;return l}function i(l){return(l[0]=r(l[0]))===0&&(l[1]=r(l[1])),l}var s=o.Encryptor=o.extend({processBlock:function(l,f){var c=this._cipher,d=c.blockSize,x=this._iv,h=this._counter;x&&(h=this._counter=x.slice(0),this._iv=void 0),i(h);var u=h.slice(0);c.encryptBlock(u,0);for(var m=0;m<d;m++)l[f+m]^=u[m]}});return o.Decryptor=s,o}(),t.mode.CTRGladman})}(jn)),jn.exports}var Gn={exports:{}},yr;function as(){return yr||(yr=1,function(e,n){(function(t,o,r){e.exports=o(le(),De())})(re,function(t){return t.mode.OFB=function(){var o=t.lib.BlockCipherMode.extend(),r=o.Encryptor=o.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=this._iv,d=this._keystream;c&&(d=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(d,0);for(var x=0;x<f;x++)i[s+x]^=d[x]}});return o.Decryptor=r,o}(),t.mode.OFB})}(Gn)),Gn.exports}var Wn={exports:{}},pr;function rs(){return pr||(pr=1,function(e,n){(function(t,o,r){e.exports=o(le(),De())})(re,function(t){return t.mode.ECB=function(){var o=t.lib.BlockCipherMode.extend();return o.Encryptor=o.extend({processBlock:function(r,i){this._cipher.encryptBlock(r,i)}}),o.Decryptor=o.extend({processBlock:function(r,i){this._cipher.decryptBlock(r,i)}}),o}(),t.mode.ECB})}(Wn)),Wn.exports}var Un={exports:{}},br;function is(){return br||(br=1,function(e,n){(function(t,o,r){e.exports=o(le(),De())})(re,function(t){return t.pad.AnsiX923={pad:function(o,r){var i=o.sigBytes,s=r*4,l=s-i%s,f=i+l-1;o.clamp(),o.words[f>>>2]|=l<<24-f%4*8,o.sigBytes+=l},unpad:function(o){var r=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=r}},t.pad.Ansix923})}(Un)),Un.exports}var $n={exports:{}},vr;function ls(){return vr||(vr=1,function(e,n){(function(t,o,r){e.exports=o(le(),De())})(re,function(t){return t.pad.Iso10126={pad:function(o,r){var i=r*4,s=i-o.sigBytes%i;o.concat(t.lib.WordArray.random(s-1)).concat(t.lib.WordArray.create([s<<24],1))},unpad:function(o){var r=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=r}},t.pad.Iso10126})}($n)),$n.exports}var Zn={exports:{}},Sr;function ss(){return Sr||(Sr=1,function(e,n){(function(t,o,r){e.exports=o(le(),De())})(re,function(t){return t.pad.Iso97971={pad:function(o,r){o.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(o,r)},unpad:function(o){t.pad.ZeroPadding.unpad(o),o.sigBytes--}},t.pad.Iso97971})}(Zn)),Zn.exports}var Yn={exports:{}},wr;function cs(){return wr||(wr=1,function(e,n){(function(t,o,r){e.exports=o(le(),De())})(re,function(t){return t.pad.ZeroPadding={pad:function(o,r){var i=r*4;o.clamp(),o.sigBytes+=i-(o.sigBytes%i||i)},unpad:function(o){for(var r=o.words,i=o.sigBytes-1,i=o.sigBytes-1;i>=0;i--)if(r[i>>>2]>>>24-i%4*8&255){o.sigBytes=i+1;break}}},t.pad.ZeroPadding})}(Yn)),Yn.exports}var Kn={exports:{}},Cr;function fs(){return Cr||(Cr=1,function(e,n){(function(t,o,r){e.exports=o(le(),De())})(re,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Kn)),Kn.exports}var Xn={exports:{}},Ar;function ds(){return Ar||(Ar=1,function(e,n){(function(t,o,r){e.exports=o(le(),De())})(re,function(t){return function(o){var r=t,i=r.lib,s=i.CipherParams,l=r.enc,f=l.Hex,c=r.format;c.Hex={stringify:function(d){return d.ciphertext.toString(f)},parse:function(d){var x=f.parse(d);return s.create({ciphertext:x})}}}(),t.format.Hex})}(Xn)),Xn.exports}var Qn={exports:{}},kr;function us(){return kr||(kr=1,function(e,n){(function(t,o,r){e.exports=o(le(),wt(),Ct(),mt(),De())})(re,function(t){return function(){var o=t,r=o.lib,i=r.BlockCipher,s=o.algo,l=[],f=[],c=[],d=[],x=[],h=[],u=[],m=[],g=[],S=[];(function(){for(var b=[],p=0;p<256;p++)p<128?b[p]=p<<1:b[p]=p<<1^283;for(var T=0,w=0,p=0;p<256;p++){var C=w^w<<1^w<<2^w<<3^w<<4;C=C>>>8^C&255^99,l[T]=C,f[C]=T;var B=b[T],_=b[B],v=b[_],E=b[C]*257^C*16843008;c[T]=E<<24|E>>>8,d[T]=E<<16|E>>>16,x[T]=E<<8|E>>>24,h[T]=E;var E=v*16843009^_*65537^B*257^T*16843008;u[C]=E<<24|E>>>8,m[C]=E<<16|E>>>16,g[C]=E<<8|E>>>24,S[C]=E,T?(T=B^b[b[b[v^B]]],w^=b[b[w]]):T=w=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],y=s.AES=i.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var p=this._keyPriorReset=this._key,T=p.words,w=p.sigBytes/4,C=this._nRounds=w+6,B=(C+1)*4,_=this._keySchedule=[],v=0;v<B;v++)v<w?_[v]=T[v]:(b=_[v-1],v%w?w>6&&v%w==4&&(b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255]):(b=b<<8|b>>>24,b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255],b^=A[v/w|0]<<24),_[v]=_[v-w]^b);for(var E=this._invKeySchedule=[],z=0;z<B;z++){var v=B-z;if(z%4)var b=_[v];else var b=_[v-4];z<4||v<=4?E[z]=b:E[z]=u[l[b>>>24]]^m[l[b>>>16&255]]^g[l[b>>>8&255]]^S[l[b&255]]}}},encryptBlock:function(b,p){this._doCryptBlock(b,p,this._keySchedule,c,d,x,h,l)},decryptBlock:function(b,p){var T=b[p+1];b[p+1]=b[p+3],b[p+3]=T,this._doCryptBlock(b,p,this._invKeySchedule,u,m,g,S,f);var T=b[p+1];b[p+1]=b[p+3],b[p+3]=T},_doCryptBlock:function(b,p,T,w,C,B,_,v){for(var E=this._nRounds,z=b[p]^T[0],k=b[p+1]^T[1],N=b[p+2]^T[2],M=b[p+3]^T[3],D=4,q=1;q<E;q++){var I=w[z>>>24]^C[k>>>16&255]^B[N>>>8&255]^_[M&255]^T[D++],R=w[k>>>24]^C[N>>>16&255]^B[M>>>8&255]^_[z&255]^T[D++],H=w[N>>>24]^C[M>>>16&255]^B[z>>>8&255]^_[k&255]^T[D++],L=w[M>>>24]^C[z>>>16&255]^B[k>>>8&255]^_[N&255]^T[D++];z=I,k=R,N=H,M=L}var I=(v[z>>>24]<<24|v[k>>>16&255]<<16|v[N>>>8&255]<<8|v[M&255])^T[D++],R=(v[k>>>24]<<24|v[N>>>16&255]<<16|v[M>>>8&255]<<8|v[z&255])^T[D++],H=(v[N>>>24]<<24|v[M>>>16&255]<<16|v[z>>>8&255]<<8|v[k&255])^T[D++],L=(v[M>>>24]<<24|v[z>>>16&255]<<16|v[k>>>8&255]<<8|v[N&255])^T[D++];b[p]=I,b[p+1]=R,b[p+2]=H,b[p+3]=L},keySize:256/32});o.AES=i._createHelper(y)}(),t.AES})}(Qn)),Qn.exports}var Jn={exports:{}},Tr;function hs(){return Tr||(Tr=1,function(e,n){(function(t,o,r){e.exports=o(le(),wt(),Ct(),mt(),De())})(re,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=r.BlockCipher,l=o.algo,f=[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],d=[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}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=l.DES=s.extend({_doReset:function(){for(var A=this._key,y=A.words,b=[],p=0;p<56;p++){var T=f[p]-1;b[p]=y[T>>>5]>>>31-T%32&1}for(var w=this._subKeys=[],C=0;C<16;C++){for(var B=w[C]=[],_=d[C],p=0;p<24;p++)B[p/6|0]|=b[(c[p]-1+_)%28]<<31-p%6,B[4+(p/6|0)]|=b[28+(c[p+24]-1+_)%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 v=this._invSubKeys=[],p=0;p<16;p++)v[p]=w[15-p]},encryptBlock:function(A,y){this._doCryptBlock(A,y,this._subKeys)},decryptBlock:function(A,y){this._doCryptBlock(A,y,this._invSubKeys)},_doCryptBlock:function(A,y,b){this._lBlock=A[y],this._rBlock=A[y+1],m.call(this,4,252645135),m.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),m.call(this,1,1431655765);for(var p=0;p<16;p++){for(var T=b[p],w=this._lBlock,C=this._rBlock,B=0,_=0;_<8;_++)B|=x[_][((C^T[_])&h[_])>>>0];this._lBlock=C,this._rBlock=w^B}var v=this._lBlock;this._lBlock=this._rBlock,this._rBlock=v,m.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),A[y]=this._lBlock,A[y+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(A,y){var b=(this._lBlock>>>A^this._rBlock)&y;this._rBlock^=b,this._lBlock^=b<<A}function g(A,y){var b=(this._rBlock>>>A^this._lBlock)&y;this._lBlock^=b,this._rBlock^=b<<A}o.DES=s._createHelper(u);var S=l.TripleDES=s.extend({_doReset:function(){var A=this._key,y=A.words;if(y.length!==2&&y.length!==4&&y.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=y.slice(0,2),p=y.length<4?y.slice(0,2):y.slice(2,4),T=y.length<6?y.slice(0,2):y.slice(4,6);this._des1=u.createEncryptor(i.create(b)),this._des2=u.createEncryptor(i.create(p)),this._des3=u.createEncryptor(i.create(T))},encryptBlock:function(A,y){this._des1.encryptBlock(A,y),this._des2.decryptBlock(A,y),this._des3.encryptBlock(A,y)},decryptBlock:function(A,y){this._des3.decryptBlock(A,y),this._des2.encryptBlock(A,y),this._des1.decryptBlock(A,y)},keySize:192/32,ivSize:64/32,blockSize:64/32});o.TripleDES=s._createHelper(S)}(),t.TripleDES})}(Jn)),Jn.exports}var eo={exports:{}},Er;function gs(){return Er||(Er=1,function(e,n){(function(t,o,r){e.exports=o(le(),wt(),Ct(),mt(),De())})(re,function(t){return function(){var o=t,r=o.lib,i=r.StreamCipher,s=o.algo,l=s.RC4=i.extend({_doReset:function(){for(var d=this._key,x=d.words,h=d.sigBytes,u=this._S=[],m=0;m<256;m++)u[m]=m;for(var m=0,g=0;m<256;m++){var S=m%h,A=x[S>>>2]>>>24-S%4*8&255;g=(g+u[m]+A)%256;var y=u[m];u[m]=u[g],u[g]=y}this._i=this._j=0},_doProcessBlock:function(d,x){d[x]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var d=this._S,x=this._i,h=this._j,u=0,m=0;m<4;m++){x=(x+1)%256,h=(h+d[x])%256;var g=d[x];d[x]=d[h],d[h]=g,u|=d[(d[x]+d[h])%256]<<24-m*8}return this._i=x,this._j=h,u}o.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)f.call(this)}});o.RC4Drop=i._createHelper(c)}(),t.RC4})}(eo)),eo.exports}var to={exports:{}},Br;function ms(){return Br||(Br=1,function(e,n){(function(t,o,r){e.exports=o(le(),wt(),Ct(),mt(),De())})(re,function(t){return function(){var o=t,r=o.lib,i=r.StreamCipher,s=o.algo,l=[],f=[],c=[],d=s.Rabbit=i.extend({_doReset:function(){for(var h=this._key.words,u=this.cfg.iv,m=0;m<4;m++)h[m]=(h[m]<<8|h[m]>>>24)&16711935|(h[m]<<24|h[m]>>>8)&4278255360;var g=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],S=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var m=0;m<4;m++)x.call(this);for(var m=0;m<8;m++)S[m]^=g[m+4&7];if(u){var A=u.words,y=A[0],b=A[1],p=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,T=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=p>>>16|T&4294901760,C=T<<16|p&65535;S[0]^=p,S[1]^=w,S[2]^=T,S[3]^=C,S[4]^=p,S[5]^=w,S[6]^=T,S[7]^=C;for(var m=0;m<4;m++)x.call(this)}},_doProcessBlock:function(h,u){var m=this._X;x.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,h[u+g]^=l[g]},blockSize:128/32,ivSize:64/32});function x(){for(var h=this._X,u=this._C,m=0;m<8;m++)f[m]=u[m];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<f[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<f[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<f[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<f[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<f[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<f[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<f[6]>>>0?1:0)|0,this._b=u[7]>>>0<f[7]>>>0?1:0;for(var m=0;m<8;m++){var g=h[m]+u[m],S=g&65535,A=g>>>16,y=((S*S>>>17)+S*A>>>15)+A*A,b=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=y^b}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o.Rabbit=i._createHelper(d)}(),t.Rabbit})}(to)),to.exports}var no={exports:{}},_r;function xs(){return _r||(_r=1,function(e,n){(function(t,o,r){e.exports=o(le(),wt(),Ct(),mt(),De())})(re,function(t){return function(){var o=t,r=o.lib,i=r.StreamCipher,s=o.algo,l=[],f=[],c=[],d=s.RabbitLegacy=i.extend({_doReset:function(){var h=this._key.words,u=this.cfg.iv,m=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],g=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var S=0;S<4;S++)x.call(this);for(var S=0;S<8;S++)g[S]^=m[S+4&7];if(u){var A=u.words,y=A[0],b=A[1],p=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,T=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=p>>>16|T&4294901760,C=T<<16|p&65535;g[0]^=p,g[1]^=w,g[2]^=T,g[3]^=C,g[4]^=p,g[5]^=w,g[6]^=T,g[7]^=C;for(var S=0;S<4;S++)x.call(this)}},_doProcessBlock:function(h,u){var m=this._X;x.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,h[u+g]^=l[g]},blockSize:128/32,ivSize:64/32});function x(){for(var h=this._X,u=this._C,m=0;m<8;m++)f[m]=u[m];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<f[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<f[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<f[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<f[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<f[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<f[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<f[6]>>>0?1:0)|0,this._b=u[7]>>>0<f[7]>>>0?1:0;for(var m=0;m<8;m++){var g=h[m]+u[m],S=g&65535,A=g>>>16,y=((S*S>>>17)+S*A>>>15)+A*A,b=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=y^b}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o.RabbitLegacy=i._createHelper(d)}(),t.RabbitLegacy})}(no)),no.exports}(function(e,n){(function(t,o,r){e.exports=o(le(),Wt(),$l(),Zl(),wt(),Yl(),Ct(),_n(),or(),Kl(),ir(),Xl(),Ql(),Jl(),Mn(),es(),mt(),De(),ts(),ns(),os(),as(),rs(),is(),ls(),ss(),cs(),fs(),ds(),us(),hs(),gs(),ms(),xs())})(re,function(t){return t})})($a);var ys=$a.exports;const He=Ua(ys);var ps="0123456789abcdefghijklmnopqrstuvwxyz";function nt(e){return ps.charAt(e)}function bs(e,n){return e&n}function Ut(e,n){return e|n}function Dr(e,n){return e^n}function Rr(e,n){return e&~n}function vs(e){if(e==0)return-1;var n=0;return e&65535||(e>>=16,n+=16),e&255||(e>>=8,n+=8),e&15||(e>>=4,n+=4),e&3||(e>>=2,n+=2),e&1||++n,n}function Ss(e){for(var n=0;e!=0;)e&=e-1,++n;return n}var At="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ir="=";function $t(e){var n,t,o="";for(n=0;n+3<=e.length;n+=3)t=parseInt(e.substring(n,n+3),16),o+=At.charAt(t>>6)+At.charAt(t&63);for(n+1==e.length?(t=parseInt(e.substring(n,n+1),16),o+=At.charAt(t<<2)):n+2==e.length&&(t=parseInt(e.substring(n,n+2),16),o+=At.charAt(t>>2)+At.charAt((t&3)<<4));(o.length&3)>0;)o+=Ir;return o}function Or(e){var n="",t,o=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=Ir;++t){var i=At.indexOf(e.charAt(t));i<0||(o==0?(n+=nt(i>>2),r=i&3,o=1):o==1?(n+=nt(r<<2|i>>4),r=i&15,o=2):o==2?(n+=nt(r),n+=nt(i>>2),r=i&3,o=3):(n+=nt(r<<2|i>>4),n+=nt(i&15),o=0))}return o==1&&(n+=nt(r<<2)),n}var kt,ws={decode:function(e){var n;if(kt===void 0){var t="0123456789ABCDEF",o=` \f
|
|
72
|
+
\r \u2028\u2029`;for(kt={},n=0;n<16;++n)kt[t.charAt(n)]=n;for(t=t.toLowerCase(),n=10;n<16;++n)kt[t.charAt(n)]=n;for(n=0;n<o.length;++n)kt[o.charAt(n)]=-1}var r=[],i=0,s=0;for(n=0;n<e.length;++n){var l=e.charAt(n);if(l=="=")break;if(l=kt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+n);i|=l,++s>=2?(r[r.length]=i,i=0,s=0):i<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},xt,oo={decode:function(e){var n;if(xt===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=`= \f
|
|
73
|
+
\r \u2028\u2029`;for(xt=Object.create(null),n=0;n<64;++n)xt[t.charAt(n)]=n;for(xt["-"]=62,xt._=63,n=0;n<o.length;++n)xt[o.charAt(n)]=-1}var r=[],i=0,s=0;for(n=0;n<e.length;++n){var l=e.charAt(n);if(l=="=")break;if(l=xt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+n);i|=l,++s>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=i&255,i=0,s=0):i<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255;break}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var n=oo.re.exec(e);if(n)if(n[1])e=n[1];else if(n[2])e=n[2];else throw new Error("RegExp out of sync");return oo.decode(e)}},Tt=1e13,Pt=function(){function e(n){this.buf=[+n||0]}return e.prototype.mulAdd=function(n,t){var o=this.buf,r=o.length,i,s;for(i=0;i<r;++i)s=o[i]*n+t,s<Tt?t=0:(t=0|s/Tt,s-=t*Tt),o[i]=s;t>0&&(o[i]=t)},e.prototype.sub=function(n){var t=this.buf,o=t.length,r,i;for(r=0;r<o;++r)i=t[r]-n,i<0?(i+=Tt,n=1):n=0,t[r]=i;for(;t[t.length-1]===0;)t.pop()},e.prototype.toString=function(n){if((n||10)!=10)throw new Error("only base 10 is supported");for(var t=this.buf,o=t[t.length-1].toString(),r=t.length-2;r>=0;--r)o+=(Tt+t[r]).toString().substring(1);return o},e.prototype.valueOf=function(){for(var n=this.buf,t=0,o=n.length-1;o>=0;--o)t=t*Tt+n[o];return t},e.prototype.simplify=function(){var n=this.buf;return n.length==1?n[0]:this},e}(),Lr="…",Cs=/^(\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)?)?$/,As=/^(\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 Et(e,n){return e.length>n&&(e=e.substring(0,n)+Lr),e}var ao=function(){function e(n,t){this.hexDigits="0123456789ABCDEF",n instanceof e?(this.enc=n.enc,this.pos=n.pos):(this.enc=n,this.pos=t)}return e.prototype.get=function(n){if(n===void 0&&(n=this.pos++),n>=this.enc.length)throw new Error("Requesting byte offset ".concat(n," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(n):this.enc[n]},e.prototype.hexByte=function(n){return this.hexDigits.charAt(n>>4&15)+this.hexDigits.charAt(n&15)},e.prototype.hexDump=function(n,t,o){for(var r="",i=n;i<t;++i)if(r+=this.hexByte(this.get(i)),o!==!0)switch(i&15){case 7:r+=" ";break;case 15:r+=`
|
|
74
|
+
`;break;default:r+=" "}return r},e.prototype.isASCII=function(n,t){for(var o=n;o<t;++o){var r=this.get(o);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(n,t){for(var o="",r=n;r<t;++r)o+=String.fromCharCode(this.get(r));return o},e.prototype.parseStringUTF=function(n,t){for(var o="",r=n;r<t;){var i=this.get(r++);i<128?o+=String.fromCharCode(i):i>191&&i<224?o+=String.fromCharCode((i&31)<<6|this.get(r++)&63):o+=String.fromCharCode((i&15)<<12|(this.get(r++)&63)<<6|this.get(r++)&63)}return o},e.prototype.parseStringBMP=function(n,t){for(var o="",r,i,s=n;s<t;)r=this.get(s++),i=this.get(s++),o+=String.fromCharCode(r<<8|i);return o},e.prototype.parseTime=function(n,t,o){var r=this.parseStringISO(n,t),i=(o?Cs:As).exec(r);return i?(o&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC",i[8]!="Z"&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(n,t){for(var o=this.get(n),r=o>127,i=r?255:0,s,l="";o==i&&++n<t;)o=this.get(n);if(s=t-n,s===0)return r?-1:0;if(s>4){for(l=o,s<<=3;!((+l^i)&128);)l=+l<<1,--s;l="("+s+` bit)
|
|
75
|
+
`}r&&(o=o-256);for(var f=new Pt(o),c=n+1;c<t;++c)f.mulAdd(256,this.get(c));return l+f.toString()},e.prototype.parseBitString=function(n,t,o){for(var r=this.get(n),i=(t-n-1<<3)-r,s="("+i+` bit)
|
|
76
|
+
`,l="",f=n+1;f<t;++f){for(var c=this.get(f),d=f==t-1?r:0,x=7;x>=d;--x)l+=c>>x&1?"1":"0";if(l.length>o)return s+Et(l,o)}return s+l},e.prototype.parseOctetString=function(n,t,o){if(this.isASCII(n,t))return Et(this.parseStringISO(n,t),o);var r=t-n,i="("+r+` byte)
|
|
77
|
+
`;o/=2,r>o&&(t=n+o);for(var s=n;s<t;++s)i+=this.hexByte(this.get(s));return r>o&&(i+=Lr),i},e.prototype.parseOID=function(n,t,o){for(var r="",i=new Pt,s=0,l=n;l<t;++l){var f=this.get(l);if(i.mulAdd(128,f&127),s+=7,!(f&128)){if(r==="")if(i=i.simplify(),i instanceof Pt)i.sub(80),r="2."+i.toString();else{var c=i<80?i<40?0:1:2;r=c+"."+(i-c*40)}else r+="."+i.toString();if(r.length>o)return Et(r,o);i=new Pt,s=0}}return s>0&&(r+=".incomplete"),r},e}(),ks=function(){function e(n,t,o,r,i){if(!(r instanceof Nr))throw new Error("Invalid tag value.");this.stream=n,this.header=t,this.length=o,this.tag=r,this.sub=i}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(n){if(this.tag===void 0)return null;n===void 0&&(n=1/0);var t=this.posContent(),o=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+o,n);switch(this.tag.tagNumber){case 1:return this.stream.get(t)===0?"false":"true";case 2:return this.stream.parseInteger(t,t+o);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+o,n);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+o,n);case 6:return this.stream.parseOID(t,t+o,n);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Et(this.stream.parseStringUTF(t,t+o),n);case 18:case 19:case 20:case 21:case 22:case 26:return Et(this.stream.parseStringISO(t,t+o),n);case 30:return Et(this.stream.parseStringBMP(t,t+o),n);case 23:case 24:return this.stream.parseTime(t,t+o,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(n){n===void 0&&(n="");var t=n+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(t+=" (encapsulates)"),t+=`
|
|
78
|
+
`,this.sub!==null){n+=" ";for(var o=0,r=this.sub.length;o<r;++o)t+=this.sub[o].toPrettyString(n)}return t},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(n){var t=n.get(),o=t&127;if(o==t)return o;if(o>6)throw new Error("Length over 48 bits not supported at position "+(n.pos-1));if(o===0)return null;t=0;for(var r=0;r<o;++r)t=t*256+n.get();return t},e.prototype.getHexStringValue=function(){var n=this.toHexString(),t=this.header*2,o=this.length*2;return n.substr(t,o)},e.decode=function(n){var t;n instanceof ao?t=n:t=new ao(n,0);var o=new ao(t),r=new Nr(t),i=e.decodeLength(t),s=t.pos,l=s-o.pos,f=null,c=function(){var x=[];if(i!==null){for(var h=s+i;t.pos<h;)x[x.length]=e.decode(t);if(t.pos!=h)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var u=e.decode(t);if(u.tag.isEOC())break;x[x.length]=u}i=s-t.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return x};if(r.tagConstructed)f=c();else if(r.isUniversal()&&(r.tagNumber==3||r.tagNumber==4))try{if(r.tagNumber==3&&t.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");f=c();for(var d=0;d<f.length;++d)if(f[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{f=null}if(f===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);t.pos=s+Math.abs(i)}return new e(o,l,i,r,f)},e}(),Nr=function(){function e(n){var t=n.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var o=new Pt;do t=n.get(),o.mulAdd(128,t&127);while(t&128);this.tagNumber=o.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),it,Ts=0xdeadbeefcafe,zr=(Ts&16777215)==15715070,Me=[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],Es=(1<<26)/Me[Me.length-1],ne=function(){function e(n,t,o){n!=null&&(typeof n=="number"?this.fromNumber(n,t,o):t==null&&typeof n!="string"?this.fromString(n,256):this.fromString(n,t))}return e.prototype.toString=function(n){if(this.s<0)return"-"+this.negate().toString(n);var t;if(n==16)t=4;else if(n==8)t=3;else if(n==2)t=1;else if(n==32)t=5;else if(n==4)t=2;else return this.toRadix(n);var o=(1<<t)-1,r,i=!1,s="",l=this.t,f=this.DB-l*this.DB%t;if(l-- >0)for(f<this.DB&&(r=this[l]>>f)>0&&(i=!0,s=nt(r));l>=0;)f<t?(r=(this[l]&(1<<f)-1)<<t-f,r|=this[--l]>>(f+=this.DB-t)):(r=this[l]>>(f-=t)&o,f<=0&&(f+=this.DB,--l)),r>0&&(i=!0),i&&(s+=nt(r));return i?s:"0"},e.prototype.negate=function(){var n=ie();return e.ZERO.subTo(this,n),n},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(n){var t=this.s-n.s;if(t!=0)return t;var o=this.t;if(t=o-n.t,t!=0)return this.s<0?-t:t;for(;--o>=0;)if((t=this[o]-n[o])!=0)return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Yt(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(n){var t=ie();return this.abs().divRemTo(n,null,t),this.s<0&&t.compareTo(e.ZERO)>0&&n.subTo(t,t),t},e.prototype.modPowInt=function(n,t){var o;return n<256||t.isEven()?o=new Mr(t):o=new Fr(t),this.exp(n,o)},e.prototype.clone=function(){var n=ie();return this.copyTo(n),n},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 n=this.t,t=[];t[0]=this.s;var o=this.DB-n*this.DB%8,r,i=0;if(n-- >0)for(o<this.DB&&(r=this[n]>>o)!=(this.s&this.DM)>>o&&(t[i++]=r|this.s<<this.DB-o);n>=0;)o<8?(r=(this[n]&(1<<o)-1)<<8-o,r|=this[--n]>>(o+=this.DB-8)):(r=this[n]>>(o-=8)&255,o<=0&&(o+=this.DB,--n)),r&128&&(r|=-256),i==0&&(this.s&128)!=(r&128)&&++i,(i>0||r!=this.s)&&(t[i++]=r);return t},e.prototype.equals=function(n){return this.compareTo(n)==0},e.prototype.min=function(n){return this.compareTo(n)<0?this:n},e.prototype.max=function(n){return this.compareTo(n)>0?this:n},e.prototype.and=function(n){var t=ie();return this.bitwiseTo(n,bs,t),t},e.prototype.or=function(n){var t=ie();return this.bitwiseTo(n,Ut,t),t},e.prototype.xor=function(n){var t=ie();return this.bitwiseTo(n,Dr,t),t},e.prototype.andNot=function(n){var t=ie();return this.bitwiseTo(n,Rr,t),t},e.prototype.not=function(){for(var n=ie(),t=0;t<this.t;++t)n[t]=this.DM&~this[t];return n.t=this.t,n.s=~this.s,n},e.prototype.shiftLeft=function(n){var t=ie();return n<0?this.rShiftTo(-n,t):this.lShiftTo(n,t),t},e.prototype.shiftRight=function(n){var t=ie();return n<0?this.lShiftTo(-n,t):this.rShiftTo(n,t),t},e.prototype.getLowestSetBit=function(){for(var n=0;n<this.t;++n)if(this[n]!=0)return n*this.DB+vs(this[n]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var n=0,t=this.s&this.DM,o=0;o<this.t;++o)n+=Ss(this[o]^t);return n},e.prototype.testBit=function(n){var t=Math.floor(n/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<n%this.DB)!=0},e.prototype.setBit=function(n){return this.changeBit(n,Ut)},e.prototype.clearBit=function(n){return this.changeBit(n,Rr)},e.prototype.flipBit=function(n){return this.changeBit(n,Dr)},e.prototype.add=function(n){var t=ie();return this.addTo(n,t),t},e.prototype.subtract=function(n){var t=ie();return this.subTo(n,t),t},e.prototype.multiply=function(n){var t=ie();return this.multiplyTo(n,t),t},e.prototype.divide=function(n){var t=ie();return this.divRemTo(n,t,null),t},e.prototype.remainder=function(n){var t=ie();return this.divRemTo(n,null,t),t},e.prototype.divideAndRemainder=function(n){var t=ie(),o=ie();return this.divRemTo(n,t,o),[t,o]},e.prototype.modPow=function(n,t){var o=n.bitLength(),r,i=lt(1),s;if(o<=0)return i;o<18?r=1:o<48?r=3:o<144?r=4:o<768?r=5:r=6,o<8?s=new Mr(t):t.isEven()?s=new _s(t):s=new Fr(t);var l=[],f=3,c=r-1,d=(1<<r)-1;if(l[1]=s.convert(this),r>1){var x=ie();for(s.sqrTo(l[1],x);f<=d;)l[f]=ie(),s.mulTo(x,l[f-2],l[f]),f+=2}var h=n.t-1,u,m=!0,g=ie(),S;for(o=Yt(n[h])-1;h>=0;){for(o>=c?u=n[h]>>o-c&d:(u=(n[h]&(1<<o+1)-1)<<c-o,h>0&&(u|=n[h-1]>>this.DB+o-c)),f=r;!(u&1);)u>>=1,--f;if((o-=f)<0&&(o+=this.DB,--h),m)l[u].copyTo(i),m=!1;else{for(;f>1;)s.sqrTo(i,g),s.sqrTo(g,i),f-=2;f>0?s.sqrTo(i,g):(S=i,i=g,g=S),s.mulTo(g,l[u],i)}for(;h>=0&&!(n[h]&1<<o);)s.sqrTo(i,g),S=i,i=g,g=S,--o<0&&(o=this.DB-1,--h)}return s.revert(i)},e.prototype.modInverse=function(n){var t=n.isEven();if(this.isEven()&&t||n.signum()==0)return e.ZERO;for(var o=n.clone(),r=this.clone(),i=lt(1),s=lt(0),l=lt(0),f=lt(1);o.signum()!=0;){for(;o.isEven();)o.rShiftTo(1,o),t?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(n,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(n,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),t?((!l.isEven()||!f.isEven())&&(l.addTo(this,l),f.subTo(n,f)),l.rShiftTo(1,l)):f.isEven()||f.subTo(n,f),f.rShiftTo(1,f);o.compareTo(r)>=0?(o.subTo(r,o),t&&i.subTo(l,i),s.subTo(f,s)):(r.subTo(o,r),t&&l.subTo(i,l),f.subTo(s,f))}if(r.compareTo(e.ONE)!=0)return e.ZERO;if(f.compareTo(n)>=0)return f.subtract(n);if(f.signum()<0)f.addTo(n,f);else return f;return f.signum()<0?f.add(n):f},e.prototype.pow=function(n){return this.exp(n,new Bs)},e.prototype.gcd=function(n){var t=this.s<0?this.negate():this.clone(),o=n.s<0?n.negate():n.clone();if(t.compareTo(o)<0){var r=t;t=o,o=r}var i=t.getLowestSetBit(),s=o.getLowestSetBit();if(s<0)return t;for(i<s&&(s=i),s>0&&(t.rShiftTo(s,t),o.rShiftTo(s,o));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=o.getLowestSetBit())>0&&o.rShiftTo(i,o),t.compareTo(o)>=0?(t.subTo(o,t),t.rShiftTo(1,t)):(o.subTo(t,o),o.rShiftTo(1,o));return s>0&&o.lShiftTo(s,o),o},e.prototype.isProbablePrime=function(n){var t,o=this.abs();if(o.t==1&&o[0]<=Me[Me.length-1]){for(t=0;t<Me.length;++t)if(o[0]==Me[t])return!0;return!1}if(o.isEven())return!1;for(t=1;t<Me.length;){for(var r=Me[t],i=t+1;i<Me.length&&r<Es;)r*=Me[i++];for(r=o.modInt(r);t<i;)if(r%Me[t++]==0)return!1}return o.millerRabin(n)},e.prototype.copyTo=function(n){for(var t=this.t-1;t>=0;--t)n[t]=this[t];n.t=this.t,n.s=this.s},e.prototype.fromInt=function(n){this.t=1,this.s=n<0?-1:0,n>0?this[0]=n:n<-1?this[0]=n+this.DV:this.t=0},e.prototype.fromString=function(n,t){var o;if(t==16)o=4;else if(t==8)o=3;else if(t==256)o=8;else if(t==2)o=1;else if(t==32)o=5;else if(t==4)o=2;else{this.fromRadix(n,t);return}this.t=0,this.s=0;for(var r=n.length,i=!1,s=0;--r>=0;){var l=o==8?+n[r]&255:Hr(n,r);if(l<0){n.charAt(r)=="-"&&(i=!0);continue}i=!1,s==0?this[this.t++]=l:s+o>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+=o,s>=this.DB&&(s-=this.DB)}o==8&&+n[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var n=this.s&this.DM;this.t>0&&this[this.t-1]==n;)--this.t},e.prototype.dlShiftTo=function(n,t){var o;for(o=this.t-1;o>=0;--o)t[o+n]=this[o];for(o=n-1;o>=0;--o)t[o]=0;t.t=this.t+n,t.s=this.s},e.prototype.drShiftTo=function(n,t){for(var o=n;o<this.t;++o)t[o-n]=this[o];t.t=Math.max(this.t-n,0),t.s=this.s},e.prototype.lShiftTo=function(n,t){for(var o=n%this.DB,r=this.DB-o,i=(1<<r)-1,s=Math.floor(n/this.DB),l=this.s<<o&this.DM,f=this.t-1;f>=0;--f)t[f+s+1]=this[f]>>r|l,l=(this[f]&i)<<o;for(var f=s-1;f>=0;--f)t[f]=0;t[s]=l,t.t=this.t+s+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(n,t){t.s=this.s;var o=Math.floor(n/this.DB);if(o>=this.t){t.t=0;return}var r=n%this.DB,i=this.DB-r,s=(1<<r)-1;t[0]=this[o]>>r;for(var l=o+1;l<this.t;++l)t[l-o-1]|=(this[l]&s)<<i,t[l-o]=this[l]>>r;r>0&&(t[this.t-o-1]|=(this.s&s)<<i),t.t=this.t-o,t.clamp()},e.prototype.subTo=function(n,t){for(var o=0,r=0,i=Math.min(n.t,this.t);o<i;)r+=this[o]-n[o],t[o++]=r&this.DM,r>>=this.DB;if(n.t<this.t){for(r-=n.s;o<this.t;)r+=this[o],t[o++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;o<n.t;)r-=n[o],t[o++]=r&this.DM,r>>=this.DB;r-=n.s}t.s=r<0?-1:0,r<-1?t[o++]=this.DV+r:r>0&&(t[o++]=r),t.t=o,t.clamp()},e.prototype.multiplyTo=function(n,t){var o=this.abs(),r=n.abs(),i=o.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;++i)t[i+o.t]=o.am(0,r[i],t,i,0,o.t);t.s=0,t.clamp(),this.s!=n.s&&e.ZERO.subTo(t,t)},e.prototype.squareTo=function(n){for(var t=this.abs(),o=n.t=2*t.t;--o>=0;)n[o]=0;for(o=0;o<t.t-1;++o){var r=t.am(o,t[o],n,2*o,0,1);(n[o+t.t]+=t.am(o+1,2*t[o],n,2*o+1,r,t.t-o-1))>=t.DV&&(n[o+t.t]-=t.DV,n[o+t.t+1]=1)}n.t>0&&(n[n.t-1]+=t.am(o,t[o],n,2*o,0,1)),n.s=0,n.clamp()},e.prototype.divRemTo=function(n,t,o){var r=n.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t){t!=null&&t.fromInt(0),o!=null&&this.copyTo(o);return}o==null&&(o=ie());var s=ie(),l=this.s,f=n.s,c=this.DB-Yt(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,o)):(r.copyTo(s),i.copyTo(o));var d=s.t,x=s[d-1];if(x!=0){var h=x*(1<<this.F1)+(d>1?s[d-2]>>this.F2:0),u=this.FV/h,m=(1<<this.F1)/h,g=1<<this.F2,S=o.t,A=S-d,y=t??ie();for(s.dlShiftTo(A,y),o.compareTo(y)>=0&&(o[o.t++]=1,o.subTo(y,o)),e.ONE.dlShiftTo(d,y),y.subTo(s,s);s.t<d;)s[s.t++]=0;for(;--A>=0;){var b=o[--S]==x?this.DM:Math.floor(o[S]*u+(o[S-1]+g)*m);if((o[S]+=s.am(0,b,o,A,0,d))<b)for(s.dlShiftTo(A,y),o.subTo(y,o);o[S]<--b;)o.subTo(y,o)}t!=null&&(o.drShiftTo(d,t),l!=f&&e.ZERO.subTo(t,t)),o.t=d,o.clamp(),c>0&&o.rShiftTo(c,o),l<0&&e.ZERO.subTo(o,o)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var n=this[0];if(!(n&1))return 0;var t=n&3;return t=t*(2-(n&15)*t)&15,t=t*(2-(n&255)*t)&255,t=t*(2-((n&65535)*t&65535))&65535,t=t*(2-n*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(n,t){if(n>4294967295||n<1)return e.ONE;var o=ie(),r=ie(),i=t.convert(this),s=Yt(n)-1;for(i.copyTo(o);--s>=0;)if(t.sqrTo(o,r),(n&1<<s)>0)t.mulTo(r,i,o);else{var l=o;o=r,r=l}return t.revert(o)},e.prototype.chunkSize=function(n){return Math.floor(Math.LN2*this.DB/Math.log(n))},e.prototype.toRadix=function(n){if(n==null&&(n=10),this.signum()==0||n<2||n>36)return"0";var t=this.chunkSize(n),o=Math.pow(n,t),r=lt(o),i=ie(),s=ie(),l="";for(this.divRemTo(r,i,s);i.signum()>0;)l=(o+s.intValue()).toString(n).substr(1)+l,i.divRemTo(r,i,s);return s.intValue().toString(n)+l},e.prototype.fromRadix=function(n,t){this.fromInt(0),t==null&&(t=10);for(var o=this.chunkSize(t),r=Math.pow(t,o),i=!1,s=0,l=0,f=0;f<n.length;++f){var c=Hr(n,f);if(c<0){n.charAt(f)=="-"&&this.signum()==0&&(i=!0);continue}l=t*l+c,++s>=o&&(this.dMultiply(r),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(l,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(n,t,o){if(typeof t=="number")if(n<2)this.fromInt(1);else for(this.fromNumber(n,o),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),Ut,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>n&&this.subTo(e.ONE.shiftLeft(n-1),this);else{var r=[],i=n&7;r.length=(n>>3)+1,t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(n,t,o){var r,i,s=Math.min(n.t,this.t);for(r=0;r<s;++r)o[r]=t(this[r],n[r]);if(n.t<this.t){for(i=n.s&this.DM,r=s;r<this.t;++r)o[r]=t(this[r],i);o.t=this.t}else{for(i=this.s&this.DM,r=s;r<n.t;++r)o[r]=t(i,n[r]);o.t=n.t}o.s=t(this.s,n.s),o.clamp()},e.prototype.changeBit=function(n,t){var o=e.ONE.shiftLeft(n);return this.bitwiseTo(o,t,o),o},e.prototype.addTo=function(n,t){for(var o=0,r=0,i=Math.min(n.t,this.t);o<i;)r+=this[o]+n[o],t[o++]=r&this.DM,r>>=this.DB;if(n.t<this.t){for(r+=n.s;o<this.t;)r+=this[o],t[o++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;o<n.t;)r+=n[o],t[o++]=r&this.DM,r>>=this.DB;r+=n.s}t.s=r<0?-1:0,r>0?t[o++]=r:r<-1&&(t[o++]=this.DV+r),t.t=o,t.clamp()},e.prototype.dMultiply=function(n){this[this.t]=this.am(0,n-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(n,t){if(n!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=n;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(n,t,o){var r=Math.min(this.t+n.t,t);for(o.s=0,o.t=r;r>0;)o[--r]=0;for(var i=o.t-this.t;r<i;++r)o[r+this.t]=this.am(0,n[r],o,r,0,this.t);for(var i=Math.min(n.t,t);r<i;++r)this.am(0,n[r],o,r,0,t-r);o.clamp()},e.prototype.multiplyUpperTo=function(n,t,o){--t;var r=o.t=this.t+n.t-t;for(o.s=0;--r>=0;)o[r]=0;for(r=Math.max(t-this.t,0);r<n.t;++r)o[this.t+r-t]=this.am(t-r,n[r],o,0,0,this.t+r-t);o.clamp(),o.drShiftTo(1,o)},e.prototype.modInt=function(n){if(n<=0)return 0;var t=this.DV%n,o=this.s<0?n-1:0;if(this.t>0)if(t==0)o=this[0]%n;else for(var r=this.t-1;r>=0;--r)o=(t*o+this[r])%n;return o},e.prototype.millerRabin=function(n){var t=this.subtract(e.ONE),o=t.getLowestSetBit();if(o<=0)return!1;var r=t.shiftRight(o);n=n+1>>1,n>Me.length&&(n=Me.length);for(var i=ie(),s=0;s<n;++s){i.fromInt(Me[Math.floor(Math.random()*Me.length)]);var l=i.modPow(r,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(t)!=0){for(var f=1;f++<o&&l.compareTo(t)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(t)!=0)return!1}}return!0},e.prototype.square=function(){var n=ie();return this.squareTo(n),n},e.prototype.gcda=function(n,t){var o=this.s<0?this.negate():this.clone(),r=n.s<0?n.negate():n.clone();if(o.compareTo(r)<0){var i=o;o=r,r=i}var s=o.getLowestSetBit(),l=r.getLowestSetBit();if(l<0){t(o);return}s<l&&(l=s),l>0&&(o.rShiftTo(l,o),r.rShiftTo(l,r));var f=function(){(s=o.getLowestSetBit())>0&&o.rShiftTo(s,o),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),o.compareTo(r)>=0?(o.subTo(r,o),o.rShiftTo(1,o)):(r.subTo(o,r),r.rShiftTo(1,r)),o.signum()>0?setTimeout(f,0):(l>0&&r.lShiftTo(l,r),setTimeout(function(){t(r)},0))};setTimeout(f,10)},e.prototype.fromNumberAsync=function(n,t,o,r){if(typeof t=="number")if(n<2)this.fromInt(1);else{this.fromNumber(n,o),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),Ut,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>n&&i.subTo(e.ONE.shiftLeft(n-1),i),i.isProbablePrime(t)?setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],f=n&7;l.length=(n>>3)+1,t.nextBytes(l),f>0?l[0]&=(1<<f)-1:l[0]=0,this.fromString(l,256)}},e}(),Bs=function(){function e(){}return e.prototype.convert=function(n){return n},e.prototype.revert=function(n){return n},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o)},e.prototype.sqrTo=function(n,t){n.squareTo(t)},e}(),Mr=function(){function e(n){this.m=n}return e.prototype.convert=function(n){return n.s<0||n.compareTo(this.m)>=0?n.mod(this.m):n},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){n.divRemTo(this.m,null,n)},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),Fr=function(){function e(n){this.m=n,this.mp=n.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<n.DB-15)-1,this.mt2=2*n.t}return e.prototype.convert=function(n){var t=ie();return n.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),n.s<0&&t.compareTo(ne.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(n){var t=ie();return n.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(n){for(;n.t<=this.mt2;)n[n.t++]=0;for(var t=0;t<this.m.t;++t){var o=n[t]&32767,r=o*this.mpl+((o*this.mph+(n[t]>>15)*this.mpl&this.um)<<15)&n.DM;for(o=t+this.m.t,n[o]+=this.m.am(0,r,n,t,0,this.m.t);n[o]>=n.DV;)n[o]-=n.DV,n[++o]++}n.clamp(),n.drShiftTo(this.m.t,n),n.compareTo(this.m)>=0&&n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),_s=function(){function e(n){this.m=n,this.r2=ie(),this.q3=ie(),ne.ONE.dlShiftTo(2*n.t,this.r2),this.mu=this.r2.divide(n)}return e.prototype.convert=function(n){if(n.s<0||n.t>2*this.m.t)return n.mod(this.m);if(n.compareTo(this.m)<0)return n;var t=ie();return n.copyTo(t),this.reduce(t),t},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){for(n.drShiftTo(this.m.t-1,this.r2),n.t>this.m.t+1&&(n.t=this.m.t+1,n.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);n.compareTo(this.r2)<0;)n.dAddOffset(1,this.m.t+1);for(n.subTo(this.r2,n);n.compareTo(this.m)>=0;)n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}();function ie(){return new ne(null)}function Ce(e,n){return new ne(e,n)}var Pr=typeof navigator<"u";Pr&&zr&&navigator.appName=="Microsoft Internet Explorer"?(ne.prototype.am=function(n,t,o,r,i,s){for(var l=t&32767,f=t>>15;--s>=0;){var c=this[n]&32767,d=this[n++]>>15,x=f*c+d*l;c=l*c+((x&32767)<<15)+o[r]+(i&1073741823),i=(c>>>30)+(x>>>15)+f*d+(i>>>30),o[r++]=c&1073741823}return i},it=30):Pr&&zr&&navigator.appName!="Netscape"?(ne.prototype.am=function(n,t,o,r,i,s){for(;--s>=0;){var l=t*this[n++]+o[r]+i;i=Math.floor(l/67108864),o[r++]=l&67108863}return i},it=26):(ne.prototype.am=function(n,t,o,r,i,s){for(var l=t&16383,f=t>>14;--s>=0;){var c=this[n]&16383,d=this[n++]>>14,x=f*c+d*l;c=l*c+((x&16383)<<14)+o[r]+i,i=(c>>28)+(x>>14)+f*d,o[r++]=c&268435455}return i},it=28),ne.prototype.DB=it,ne.prototype.DM=(1<<it)-1,ne.prototype.DV=1<<it;var ro=52;ne.prototype.FV=Math.pow(2,ro),ne.prototype.F1=ro-it,ne.prototype.F2=2*it-ro;var Zt=[],Bt,We;for(Bt="0".charCodeAt(0),We=0;We<=9;++We)Zt[Bt++]=We;for(Bt="a".charCodeAt(0),We=10;We<36;++We)Zt[Bt++]=We;for(Bt="A".charCodeAt(0),We=10;We<36;++We)Zt[Bt++]=We;function Hr(e,n){var t=Zt[e.charCodeAt(n)];return t??-1}function lt(e){var n=ie();return n.fromInt(e),n}function Yt(e){var n=1,t;return(t=e>>>16)!=0&&(e=t,n+=16),(t=e>>8)!=0&&(e=t,n+=8),(t=e>>4)!=0&&(e=t,n+=4),(t=e>>2)!=0&&(e=t,n+=2),(t=e>>1)!=0&&(e=t,n+=1),n}ne.ZERO=lt(0),ne.ONE=lt(1);var Ds=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(n){var t,o,r;for(t=0;t<256;++t)this.S[t]=t;for(o=0,t=0;t<256;++t)o=o+this.S[t]+n[t%n.length]&255,r=this.S[t],this.S[t]=this.S[o],this.S[o]=r;this.i=0,this.j=0},e.prototype.next=function(){var n;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,n=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=n,this.S[n+this.S[this.i]&255]},e}();function Rs(){return new Ds}var qr=256,Kt,st=null,Ye;if(st==null){st=[],Ye=0;var Xt=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var io=new Uint32Array(256);for(window.crypto.getRandomValues(io),Xt=0;Xt<io.length;++Xt)st[Ye++]=io[Xt]&255}var Qt=0,Jt=function(e){if(Qt=Qt||0,Qt>=256||Ye>=qr){window.removeEventListener?window.removeEventListener("mousemove",Jt,!1):window.detachEvent&&window.detachEvent("onmousemove",Jt);return}try{var n=e.x+e.y;st[Ye++]=n&255,Qt+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Jt,!1):window.attachEvent&&window.attachEvent("onmousemove",Jt))}function Is(){if(Kt==null){for(Kt=Rs();Ye<qr;){var e=Math.floor(65536*Math.random());st[Ye++]=e&255}for(Kt.init(st),Ye=0;Ye<st.length;++Ye)st[Ye]=0;Ye=0}return Kt.next()}var lo=function(){function e(){}return e.prototype.nextBytes=function(n){for(var t=0;t<n.length;++t)n[t]=Is()},e}();function Os(e,n){if(n<e.length+22)return console.error("Message too long for RSA"),null;for(var t=n-e.length-6,o="",r=0;r<t;r+=2)o+="ff";var i="0001"+o+"00"+e;return Ce(i,16)}function Ls(e,n){if(n<e.length+11)return console.error("Message too long for RSA"),null;for(var t=[],o=e.length-1;o>=0&&n>0;){var r=e.charCodeAt(o--);r<128?t[--n]=r:r>127&&r<2048?(t[--n]=r&63|128,t[--n]=r>>6|192):(t[--n]=r&63|128,t[--n]=r>>6&63|128,t[--n]=r>>12|224)}t[--n]=0;for(var i=new lo,s=[];n>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);t[--n]=s[0]}return t[--n]=2,t[--n]=0,new ne(t)}var Ns=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(n){return n.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(n){if(this.p==null||this.q==null)return n.modPow(this.d,this.n);for(var t=n.mod(this.p).modPow(this.dmp1,this.p),o=n.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(o)<0;)t=t.add(this.p);return t.subtract(o).multiply(this.coeff).mod(this.p).multiply(this.q).add(o)},e.prototype.setPublic=function(n,t){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=Ce(n,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(n){var t=this.n.bitLength()+7>>3,o=Ls(n,t);if(o==null)return null;var r=this.doPublic(o);if(r==null)return null;for(var i=r.toString(16),s=i.length,l=0;l<t*2-s;l++)i="0"+i;return i},e.prototype.setPrivate=function(n,t,o){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=Ce(n,16),this.e=parseInt(t,16),this.d=Ce(o,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(n,t,o,r,i,s,l,f){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=Ce(n,16),this.e=parseInt(t,16),this.d=Ce(o,16),this.p=Ce(r,16),this.q=Ce(i,16),this.dmp1=Ce(s,16),this.dmq1=Ce(l,16),this.coeff=Ce(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,t){var o=new lo,r=n>>1;this.e=parseInt(t,16);for(var i=new ne(t,16);;){for(;this.p=new ne(n-r,1,o),!(this.p.subtract(ne.ONE).gcd(i).compareTo(ne.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ne(r,1,o),!(this.q.subtract(ne.ONE).gcd(i).compareTo(ne.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(ne.ONE),f=this.q.subtract(ne.ONE),c=l.multiply(f);if(c.gcd(i).compareTo(ne.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(f),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(n){var t=Ce(n,16),o=this.doPrivate(t);return o==null?null:zs(o,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,t,o){var r=new lo,i=n>>1;this.e=parseInt(t,16);var s=new ne(t,16),l=this,f=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var h=l.p;l.p=l.q,l.q=h}var u=l.p.subtract(ne.ONE),m=l.q.subtract(ne.ONE),g=u.multiply(m);g.gcd(s).compareTo(ne.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(g),l.dmp1=l.d.mod(u),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){o()},0)):setTimeout(f,0)},d=function(){l.q=ie(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(ne.ONE).gcda(s,function(h){h.compareTo(ne.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(d,0)})})},x=function(){l.p=ie(),l.p.fromNumberAsync(n-i,1,r,function(){l.p.subtract(ne.ONE).gcda(s,function(h){h.compareTo(ne.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(d,0):setTimeout(x,0)})})};setTimeout(x,0)};setTimeout(f,0)},e.prototype.sign=function(n,t,o){var r=Ms(o),i=r+t(n).toString(),s=Os(i,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var f=l.toString(16);return f.length&1?"0"+f:f},e.prototype.verify=function(n,t,o){var r=Ce(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Fs(s);return l==o(n).toString()},e}();function zs(e,n){for(var t=e.toByteArray(),o=0;o<t.length&&t[o]==0;)++o;if(t.length-o!=n-1||t[o]!=2)return null;for(++o;t[o]!=0;)if(++o>=t.length)return null;for(var r="";++o<t.length;){var i=t[o]&255;i<128?r+=String.fromCharCode(i):i>191&&i<224?(r+=String.fromCharCode((i&31)<<6|t[o+1]&63),++o):(r+=String.fromCharCode((i&15)<<12|(t[o+1]&63)<<6|t[o+2]&63),o+=2)}return r}var en={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Ms(e){return en[e]||""}function Fs(e){for(var n in en)if(en.hasOwnProperty(n)){var t=en[n],o=t.length;if(e.substr(0,o)==t)return e.substr(o)}return e}/*!
|
|
79
79
|
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
80
80
|
Code licensed under the BSD License:
|
|
81
81
|
http://developer.yahoo.com/yui/license.html
|
|
@@ -87,33 +87,33 @@ version: 2.9.0
|
|
|
87
87
|
* @version asn1 1.0.13 (2017-Jun-02)
|
|
88
88
|
* @since jsrsasign 2.1
|
|
89
89
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
90
|
-
*/var G={};(typeof G.asn1>"u"||!G.asn1)&&(G.asn1={}),G.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var n=e.toString(16);return n.length%2==1&&(n="0"+n),n},this.bigIntToMinTwosComplementsHex=function(e){var n=e.toString(16);if(n.substr(0,1)!="-")n.length%2==1?n="0"+n:n.match(/^[0-7]/)||(n="00"+n);else{var t=n.substr(1),o=t.length;o%2==1?o+=1:n.match(/^[0-7]/)||(o+=2);for(var r="",i=0;i<o;i++)r+="f";var s=new ne(r,16),l=s.xor(e).add(ne.ONE);n=l.toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var n=G,t=n.asn1,o=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,s=t.DEROctetString,l=t.DERNull,f=t.DERObjectIdentifier,c=t.DEREnumerated,d=t.DERUTF8String,x=t.DERNumericString,u=t.DERPrintableString,h=t.DERTeletexString,g=t.DERIA5String,m=t.DERUTCTime,S=t.DERGeneralizedTime,k=t.DERSequence,y=t.DERSet,p=t.DERTaggedObject,b=t.ASN1Util.newObject,C=Object.keys(e);if(C.length!=1)throw"key of param shall be only one.";var v=C[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+v+":")==-1)throw"undefined key: "+v;if(v=="bool")return new o(e[v]);if(v=="int")return new r(e[v]);if(v=="bitstr")return new i(e[v]);if(v=="octstr")return new s(e[v]);if(v=="null")return new l(e[v]);if(v=="oid")return new f(e[v]);if(v=="enum")return new c(e[v]);if(v=="utf8str")return new d(e[v]);if(v=="numstr")return new x(e[v]);if(v=="prnstr")return new u(e[v]);if(v=="telstr")return new h(e[v]);if(v=="ia5str")return new g(e[v]);if(v=="utctime")return new m(e[v]);if(v=="gentime")return new S(e[v]);if(v=="seq"){for(var T=e[v],E=[],_=0;_<T.length;_++){var w=b(T[_]);E.push(w)}return new k({array:E})}if(v=="set"){for(var T=e[v],E=[],_=0;_<T.length;_++){var w=b(T[_]);E.push(w)}return new y({array:E})}if(v=="tag"){var B=e[v];if(Object.prototype.toString.call(B)==="[object Array]"&&B.length==3){var L=b(B[2]);return new p({tag:B[0],explicit:B[1],obj:L})}else{var A={};if(B.explicit!==void 0&&(A.explicit=B.explicit),B.tag!==void 0&&(A.tag=B.tag),B.obj===void 0)throw"obj shall be specified for 'tag'.";return A.obj=b(B.obj),new p(A)}}},this.jsonToASN1HEX=function(e){var n=this.newObject(e);return n.getEncodedHex()}},G.asn1.ASN1Util.oidHexToInt=function(e){for(var r="",n=parseInt(e.substr(0,2),16),t=Math.floor(n/40),o=n%40,r=t+"."+o,i="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),f=("00000000"+l.toString(2)).slice(-8);if(i=i+f.substr(1,7),f.substr(0,1)=="0"){var c=new ne(i,2);r=r+"."+c.toString(10),i=""}}return r},G.asn1.ASN1Util.oidIntToHex=function(e){var n=function(l){var f=l.toString(16);return f.length==1&&(f="0"+f),f},t=function(l){var f="",c=new ne(l,10),d=c.toString(2),x=7-d.length%7;x==7&&(x=0);for(var u="",h=0;h<x;h++)u+="0";d=u+d;for(var h=0;h<d.length-1;h+=7){var g=d.substr(h,7);h!=d.length-7&&(g="1"+g),f+=n(parseInt(g,2))}return f};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var o="",r=e.split("."),i=parseInt(r[0])*40+parseInt(r[1]);o+=n(i),r.splice(0,2);for(var s=0;s<r.length;s++)o+=t(r[s]);return o},G.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 n=this.hV.length/2,t=n.toString(16);if(t.length%2==1&&(t="0"+t),n<128)return t;var o=t.length/2;if(o>15)throw"ASN.1 length too long to represent by 8x: n = "+n.toString(16);var r=128+o;return r.toString(16)+t},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""}},G.asn1.DERAbstractString=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(this.s)},this.setStringHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},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))},ke.lang.extend(G.asn1.DERAbstractString,G.asn1.ASN1Object),G.asn1.DERAbstractTime=function(e){G.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(n){utc=n.getTime()+n.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(n,t,o){var r=this.zeroPadding,i=this.localDateToUTC(n),s=String(i.getFullYear());t=="utc"&&(s=s.substr(2,2));var l=r(String(i.getMonth()+1),2),f=r(String(i.getDate()),2),c=r(String(i.getHours()),2),d=r(String(i.getMinutes()),2),x=r(String(i.getSeconds()),2),u=s+l+f+c+d+x;if(o===!0){var h=i.getMilliseconds();if(h!=0){var g=r(String(h),3);g=g.replace(/[0]+$/,""),u=u+"."+g}}return u+"Z"},this.zeroPadding=function(n,t){return n.length>=t?n:new Array(t-n.length+1).join("0")+n},this.getString=function(){return this.s},this.setString=function(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(n)},this.setByDateValue=function(n,t,o,r,i,s){var l=new Date(Date.UTC(n,t-1,o,r,i,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},ke.lang.extend(G.asn1.DERAbstractTime,G.asn1.ASN1Object),G.asn1.DERAbstractStructured=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array=n},this.appendASN1Object=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array.push(n)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},ke.lang.extend(G.asn1.DERAbstractStructured,G.asn1.ASN1Object),G.asn1.DERBoolean=function(){G.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},ke.lang.extend(G.asn1.DERBoolean,G.asn1.ASN1Object),G.asn1.DERInteger=function(e){G.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new ne(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},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))},ke.lang.extend(G.asn1.DERInteger,G.asn1.ASN1Object),G.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=G.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.getEncodedHex()}G.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,o){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null,this.isModified=!0,this.hV=r+o},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var o=8-t.length%8;o==8&&(o=0);for(var r=0;r<=o;r++)t+="0";for(var i="",r=0;r<t.length-1;r+=8){var s=t.substr(r,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),i+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+o+i},this.setByBooleanArray=function(t){for(var o="",r=0;r<t.length;r++)t[r]==!0?o+="1":o+="0";this.setByBinaryString(o)},this.newFalseArray=function(t){for(var o=new Array(t),r=0;r<t;r++)o[r]=!1;return o},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))},ke.lang.extend(G.asn1.DERBitString,G.asn1.ASN1Object),G.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=G.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}G.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},ke.lang.extend(G.asn1.DEROctetString,G.asn1.DERAbstractString),G.asn1.DERNull=function(){G.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},ke.lang.extend(G.asn1.DERNull,G.asn1.ASN1Object),G.asn1.DERObjectIdentifier=function(e){var n=function(o){var r=o.toString(16);return r.length==1&&(r="0"+r),r},t=function(o){var r="",i=new ne(o,10),s=i.toString(2),l=7-s.length%7;l==7&&(l=0);for(var f="",c=0;c<l;c++)f+="0";s=f+s;for(var c=0;c<s.length-1;c+=7){var d=s.substr(c,7);c!=s.length-7&&(d="1"+d),r+=n(parseInt(d,2))}return r};G.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.setValueOidString=function(o){if(!o.match(/^[0-9.]+$/))throw"malformed oid string: "+o;var r="",i=o.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=n(s),i.splice(0,2);for(var l=0;l<i.length;l++)r+=t(i[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(o){var r=G.asn1.x509.OID.name2oid(o);if(r!=="")this.setValueOidString(r);else throw"DERObjectIdentifier oidName undefined: "+o},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))},ke.lang.extend(G.asn1.DERObjectIdentifier,G.asn1.ASN1Object),G.asn1.DEREnumerated=function(e){G.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new ne(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},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))},ke.lang.extend(G.asn1.DEREnumerated,G.asn1.ASN1Object),G.asn1.DERUTF8String=function(e){G.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},ke.lang.extend(G.asn1.DERUTF8String,G.asn1.DERAbstractString),G.asn1.DERNumericString=function(e){G.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},ke.lang.extend(G.asn1.DERNumericString,G.asn1.DERAbstractString),G.asn1.DERPrintableString=function(e){G.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},ke.lang.extend(G.asn1.DERPrintableString,G.asn1.DERAbstractString),G.asn1.DERTeletexString=function(e){G.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},ke.lang.extend(G.asn1.DERTeletexString,G.asn1.DERAbstractString),G.asn1.DERIA5String=function(e){G.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},ke.lang.extend(G.asn1.DERIA5String,G.asn1.DERAbstractString),G.asn1.DERUTCTime=function(e){G.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,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))},ke.lang.extend(G.asn1.DERUTCTime,G.asn1.DERAbstractTime),G.asn1.DERGeneralizedTime=function(e){G.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,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))},ke.lang.extend(G.asn1.DERGeneralizedTime,G.asn1.DERAbstractTime),G.asn1.DERSequence=function(e){G.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var n="",t=0;t<this.asn1Array.length;t++){var o=this.asn1Array[t];n+=o.getEncodedHex()}return this.hV=n,this.hV}},ke.lang.extend(G.asn1.DERSequence,G.asn1.DERAbstractStructured),G.asn1.DERSet=function(e){G.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var n=new Array,t=0;t<this.asn1Array.length;t++){var o=this.asn1Array[t];n.push(o.getEncodedHex())}return this.sortFlag==!0&&n.sort(),this.hV=n.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},ke.lang.extend(G.asn1.DERSet,G.asn1.DERAbstractStructured),G.asn1.DERTaggedObject=function(e){G.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(n,t,o){this.hT=t,this.isExplicit=n,this.asn1Object=o,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=o.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),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)))},ke.lang.extend(G.asn1.DERTaggedObject,G.asn1.ASN1Object);var Ms=globalThis&&globalThis.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(o[i]=r[i])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function o(){this.constructor=n}n.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}(),Hr=function(e){Ms(n,e);function n(t){var o=e.call(this)||this;return t&&(typeof t=="string"?o.parseKey(t):(n.hasPrivateKeyProperty(t)||n.hasPublicKeyProperty(t))&&o.parsePropertiesFrom(t)),o}return n.prototype.parseKey=function(t){try{var o=0,r=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=i.test(t)?vs.decode(t):no.unarmor(t),l=Cs.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){o=l.sub[1].getHexStringValue(),this.n=Ce(o,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var f=l.sub[3].getHexStringValue();this.d=Ce(f,16);var c=l.sub[4].getHexStringValue();this.p=Ce(c,16);var d=l.sub[5].getHexStringValue();this.q=Ce(d,16);var x=l.sub[6].getHexStringValue();this.dmp1=Ce(x,16);var u=l.sub[7].getHexStringValue();this.dmq1=Ce(u,16);var h=l.sub[8].getHexStringValue();this.coeff=Ce(h,16)}else if(l.sub.length===2)if(l.sub[0].sub){var g=l.sub[1],m=g.sub[0];o=m.sub[0].getHexStringValue(),this.n=Ce(o,16),r=m.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else o=l.sub[0].getHexStringValue(),this.n=Ce(o,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},n.prototype.getPrivateBaseKey=function(){var t={array:[new G.asn1.DERInteger({int:0}),new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e}),new G.asn1.DERInteger({bigint:this.d}),new G.asn1.DERInteger({bigint:this.p}),new G.asn1.DERInteger({bigint:this.q}),new G.asn1.DERInteger({bigint:this.dmp1}),new G.asn1.DERInteger({bigint:this.dmq1}),new G.asn1.DERInteger({bigint:this.coeff})]},o=new G.asn1.DERSequence(t);return o.getEncodedHex()},n.prototype.getPrivateBaseKeyB64=function(){return Ut(this.getPrivateBaseKey())},n.prototype.getPublicBaseKey=function(){var t=new G.asn1.DERSequence({array:[new G.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new G.asn1.DERNull]}),o=new G.asn1.DERSequence({array:[new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e})]}),r=new G.asn1.DERBitString({hex:"00"+o.getEncodedHex()}),i=new G.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()},n.prototype.getPublicBaseKeyB64=function(){return Ut(this.getPublicBaseKey())},n.wordwrap=function(t,o){if(o=o||64,!t)return t;var r="(.{1,"+o+`})( +|$
|
|
90
|
+
*/var W={};(typeof W.asn1>"u"||!W.asn1)&&(W.asn1={}),W.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var n=e.toString(16);return n.length%2==1&&(n="0"+n),n},this.bigIntToMinTwosComplementsHex=function(e){var n=e.toString(16);if(n.substr(0,1)!="-")n.length%2==1?n="0"+n:n.match(/^[0-7]/)||(n="00"+n);else{var t=n.substr(1),o=t.length;o%2==1?o+=1:n.match(/^[0-7]/)||(o+=2);for(var r="",i=0;i<o;i++)r+="f";var s=new ne(r,16),l=s.xor(e).add(ne.ONE);n=l.toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var n=W,t=n.asn1,o=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,s=t.DEROctetString,l=t.DERNull,f=t.DERObjectIdentifier,c=t.DEREnumerated,d=t.DERUTF8String,x=t.DERNumericString,h=t.DERPrintableString,u=t.DERTeletexString,m=t.DERIA5String,g=t.DERUTCTime,S=t.DERGeneralizedTime,A=t.DERSequence,y=t.DERSet,b=t.DERTaggedObject,p=t.ASN1Util.newObject,T=Object.keys(e);if(T.length!=1)throw"key of param shall be only one.";var w=T[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+w+":")==-1)throw"undefined key: "+w;if(w=="bool")return new o(e[w]);if(w=="int")return new r(e[w]);if(w=="bitstr")return new i(e[w]);if(w=="octstr")return new s(e[w]);if(w=="null")return new l(e[w]);if(w=="oid")return new f(e[w]);if(w=="enum")return new c(e[w]);if(w=="utf8str")return new d(e[w]);if(w=="numstr")return new x(e[w]);if(w=="prnstr")return new h(e[w]);if(w=="telstr")return new u(e[w]);if(w=="ia5str")return new m(e[w]);if(w=="utctime")return new g(e[w]);if(w=="gentime")return new S(e[w]);if(w=="seq"){for(var C=e[w],B=[],_=0;_<C.length;_++){var v=p(C[_]);B.push(v)}return new A({array:B})}if(w=="set"){for(var C=e[w],B=[],_=0;_<C.length;_++){var v=p(C[_]);B.push(v)}return new y({array:B})}if(w=="tag"){var E=e[w];if(Object.prototype.toString.call(E)==="[object Array]"&&E.length==3){var z=p(E[2]);return new b({tag:E[0],explicit:E[1],obj:z})}else{var k={};if(E.explicit!==void 0&&(k.explicit=E.explicit),E.tag!==void 0&&(k.tag=E.tag),E.obj===void 0)throw"obj shall be specified for 'tag'.";return k.obj=p(E.obj),new b(k)}}},this.jsonToASN1HEX=function(e){var n=this.newObject(e);return n.getEncodedHex()}},W.asn1.ASN1Util.oidHexToInt=function(e){for(var r="",n=parseInt(e.substr(0,2),16),t=Math.floor(n/40),o=n%40,r=t+"."+o,i="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),f=("00000000"+l.toString(2)).slice(-8);if(i=i+f.substr(1,7),f.substr(0,1)=="0"){var c=new ne(i,2);r=r+"."+c.toString(10),i=""}}return r},W.asn1.ASN1Util.oidIntToHex=function(e){var n=function(l){var f=l.toString(16);return f.length==1&&(f="0"+f),f},t=function(l){var f="",c=new ne(l,10),d=c.toString(2),x=7-d.length%7;x==7&&(x=0);for(var h="",u=0;u<x;u++)h+="0";d=h+d;for(var u=0;u<d.length-1;u+=7){var m=d.substr(u,7);u!=d.length-7&&(m="1"+m),f+=n(parseInt(m,2))}return f};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var o="",r=e.split("."),i=parseInt(r[0])*40+parseInt(r[1]);o+=n(i),r.splice(0,2);for(var s=0;s<r.length;s++)o+=t(r[s]);return o},W.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 n=this.hV.length/2,t=n.toString(16);if(t.length%2==1&&(t="0"+t),n<128)return t;var o=t.length/2;if(o>15)throw"ASN.1 length too long to represent by 8x: n = "+n.toString(16);var r=128+o;return r.toString(16)+t},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""}},W.asn1.DERAbstractString=function(e){W.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(this.s)},this.setStringHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},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))},ke.lang.extend(W.asn1.DERAbstractString,W.asn1.ASN1Object),W.asn1.DERAbstractTime=function(e){W.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(n){utc=n.getTime()+n.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(n,t,o){var r=this.zeroPadding,i=this.localDateToUTC(n),s=String(i.getFullYear());t=="utc"&&(s=s.substr(2,2));var l=r(String(i.getMonth()+1),2),f=r(String(i.getDate()),2),c=r(String(i.getHours()),2),d=r(String(i.getMinutes()),2),x=r(String(i.getSeconds()),2),h=s+l+f+c+d+x;if(o===!0){var u=i.getMilliseconds();if(u!=0){var m=r(String(u),3);m=m.replace(/[0]+$/,""),h=h+"."+m}}return h+"Z"},this.zeroPadding=function(n,t){return n.length>=t?n:new Array(t-n.length+1).join("0")+n},this.getString=function(){return this.s},this.setString=function(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(n)},this.setByDateValue=function(n,t,o,r,i,s){var l=new Date(Date.UTC(n,t-1,o,r,i,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},ke.lang.extend(W.asn1.DERAbstractTime,W.asn1.ASN1Object),W.asn1.DERAbstractStructured=function(e){W.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array=n},this.appendASN1Object=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array.push(n)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},ke.lang.extend(W.asn1.DERAbstractStructured,W.asn1.ASN1Object),W.asn1.DERBoolean=function(){W.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},ke.lang.extend(W.asn1.DERBoolean,W.asn1.ASN1Object),W.asn1.DERInteger=function(e){W.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=W.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new ne(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},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))},ke.lang.extend(W.asn1.DERInteger,W.asn1.ASN1Object),W.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=W.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.getEncodedHex()}W.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,o){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null,this.isModified=!0,this.hV=r+o},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var o=8-t.length%8;o==8&&(o=0);for(var r=0;r<=o;r++)t+="0";for(var i="",r=0;r<t.length-1;r+=8){var s=t.substr(r,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),i+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+o+i},this.setByBooleanArray=function(t){for(var o="",r=0;r<t.length;r++)t[r]==!0?o+="1":o+="0";this.setByBinaryString(o)},this.newFalseArray=function(t){for(var o=new Array(t),r=0;r<t;r++)o[r]=!1;return o},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))},ke.lang.extend(W.asn1.DERBitString,W.asn1.ASN1Object),W.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=W.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}W.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},ke.lang.extend(W.asn1.DEROctetString,W.asn1.DERAbstractString),W.asn1.DERNull=function(){W.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},ke.lang.extend(W.asn1.DERNull,W.asn1.ASN1Object),W.asn1.DERObjectIdentifier=function(e){var n=function(o){var r=o.toString(16);return r.length==1&&(r="0"+r),r},t=function(o){var r="",i=new ne(o,10),s=i.toString(2),l=7-s.length%7;l==7&&(l=0);for(var f="",c=0;c<l;c++)f+="0";s=f+s;for(var c=0;c<s.length-1;c+=7){var d=s.substr(c,7);c!=s.length-7&&(d="1"+d),r+=n(parseInt(d,2))}return r};W.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.setValueOidString=function(o){if(!o.match(/^[0-9.]+$/))throw"malformed oid string: "+o;var r="",i=o.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=n(s),i.splice(0,2);for(var l=0;l<i.length;l++)r+=t(i[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(o){var r=W.asn1.x509.OID.name2oid(o);if(r!=="")this.setValueOidString(r);else throw"DERObjectIdentifier oidName undefined: "+o},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))},ke.lang.extend(W.asn1.DERObjectIdentifier,W.asn1.ASN1Object),W.asn1.DEREnumerated=function(e){W.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=W.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new ne(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},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))},ke.lang.extend(W.asn1.DEREnumerated,W.asn1.ASN1Object),W.asn1.DERUTF8String=function(e){W.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},ke.lang.extend(W.asn1.DERUTF8String,W.asn1.DERAbstractString),W.asn1.DERNumericString=function(e){W.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},ke.lang.extend(W.asn1.DERNumericString,W.asn1.DERAbstractString),W.asn1.DERPrintableString=function(e){W.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},ke.lang.extend(W.asn1.DERPrintableString,W.asn1.DERAbstractString),W.asn1.DERTeletexString=function(e){W.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},ke.lang.extend(W.asn1.DERTeletexString,W.asn1.DERAbstractString),W.asn1.DERIA5String=function(e){W.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},ke.lang.extend(W.asn1.DERIA5String,W.asn1.DERAbstractString),W.asn1.DERUTCTime=function(e){W.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,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))},ke.lang.extend(W.asn1.DERUTCTime,W.asn1.DERAbstractTime),W.asn1.DERGeneralizedTime=function(e){W.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,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))},ke.lang.extend(W.asn1.DERGeneralizedTime,W.asn1.DERAbstractTime),W.asn1.DERSequence=function(e){W.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var n="",t=0;t<this.asn1Array.length;t++){var o=this.asn1Array[t];n+=o.getEncodedHex()}return this.hV=n,this.hV}},ke.lang.extend(W.asn1.DERSequence,W.asn1.DERAbstractStructured),W.asn1.DERSet=function(e){W.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var n=new Array,t=0;t<this.asn1Array.length;t++){var o=this.asn1Array[t];n.push(o.getEncodedHex())}return this.sortFlag==!0&&n.sort(),this.hV=n.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},ke.lang.extend(W.asn1.DERSet,W.asn1.DERAbstractStructured),W.asn1.DERTaggedObject=function(e){W.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(n,t,o){this.hT=t,this.isExplicit=n,this.asn1Object=o,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=o.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),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)))},ke.lang.extend(W.asn1.DERTaggedObject,W.asn1.ASN1Object);var Ps=globalThis&&globalThis.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(o[i]=r[i])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function o(){this.constructor=n}n.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}(),Vr=function(e){Ps(n,e);function n(t){var o=e.call(this)||this;return t&&(typeof t=="string"?o.parseKey(t):(n.hasPrivateKeyProperty(t)||n.hasPublicKeyProperty(t))&&o.parsePropertiesFrom(t)),o}return n.prototype.parseKey=function(t){try{var o=0,r=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=i.test(t)?ws.decode(t):oo.unarmor(t),l=ks.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){o=l.sub[1].getHexStringValue(),this.n=Ce(o,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var f=l.sub[3].getHexStringValue();this.d=Ce(f,16);var c=l.sub[4].getHexStringValue();this.p=Ce(c,16);var d=l.sub[5].getHexStringValue();this.q=Ce(d,16);var x=l.sub[6].getHexStringValue();this.dmp1=Ce(x,16);var h=l.sub[7].getHexStringValue();this.dmq1=Ce(h,16);var u=l.sub[8].getHexStringValue();this.coeff=Ce(u,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],g=m.sub[0];o=g.sub[0].getHexStringValue(),this.n=Ce(o,16),r=g.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else o=l.sub[0].getHexStringValue(),this.n=Ce(o,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},n.prototype.getPrivateBaseKey=function(){var t={array:[new W.asn1.DERInteger({int:0}),new W.asn1.DERInteger({bigint:this.n}),new W.asn1.DERInteger({int:this.e}),new W.asn1.DERInteger({bigint:this.d}),new W.asn1.DERInteger({bigint:this.p}),new W.asn1.DERInteger({bigint:this.q}),new W.asn1.DERInteger({bigint:this.dmp1}),new W.asn1.DERInteger({bigint:this.dmq1}),new W.asn1.DERInteger({bigint:this.coeff})]},o=new W.asn1.DERSequence(t);return o.getEncodedHex()},n.prototype.getPrivateBaseKeyB64=function(){return $t(this.getPrivateBaseKey())},n.prototype.getPublicBaseKey=function(){var t=new W.asn1.DERSequence({array:[new W.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new W.asn1.DERNull]}),o=new W.asn1.DERSequence({array:[new W.asn1.DERInteger({bigint:this.n}),new W.asn1.DERInteger({int:this.e})]}),r=new W.asn1.DERBitString({hex:"00"+o.getEncodedHex()}),i=new W.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()},n.prototype.getPublicBaseKeyB64=function(){return $t(this.getPublicBaseKey())},n.wordwrap=function(t,o){if(o=o||64,!t)return t;var r="(.{1,"+o+`})( +|$
|
|
91
91
|
?)|(.{1,`+o+"})";return t.match(RegExp(r,"g")).join(`
|
|
92
92
|
`)},n.prototype.getPrivateKey=function(){var t=`-----BEGIN RSA PRIVATE KEY-----
|
|
93
93
|
`;return t+=n.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
94
94
|
`,t+="-----END RSA PRIVATE KEY-----",t},n.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
|
|
95
95
|
`;return t+=n.wordwrap(this.getPublicBaseKeyB64())+`
|
|
96
|
-
`,t+="-----END PUBLIC KEY-----",t},n.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},n.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},n.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},n}(
|
|
97
|
-
`),so=(e,n=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Zs=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},en=(e,n=2)=>{const t=e+"";if(t.includes("%"))return e;const o=parseFloat(t);return isNaN(o)?e:`${(o*100).toFixed(n)}%`},Ys=(e,n=2)=>{const t=e+"",o=parseFloat(t);return isNaN(o)?e:o.toFixed(n)},Ks=(e,n)=>$e(n,e),_t=(e,n)=>{if(typeof e=="string"&&typeof n=="string")return e.toLocaleLowerCase().includes(n.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(n)){const t=n.length;for(let o=0;o<t;o++){const r=n[o];if(typeof r=="string"&&e.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return!0}}return!1},$r=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),tn=(e,n)=>{const t={dayjs:Ae,...n};let o="";const r=[];for(const l in t)o+=`${l},`,r.push(t[l]);o=o.replace(/,$/,"");const i=`function (${o}){return ${e}}`;let s;try{s=Function(`"use strict";return (${i})`)()(...r)}catch{return e}return s},Se=(e="",{textData:n,codeData:t}={},{useNewline:o=!1,useSpace:r=!1}={})=>{const s={...window.config||{},...n},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let f=0;f<l.length;f++){const c=l[f];let d=c.slice(1,-1).trim();const x=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=d.match(x);for(let h=0;h<u.length;h++){const g=u[h],m=s[g];m!=null&&(d=d.replace(g,m))}(/\(.*\)/g.test(d)||/[+/\\*]/g.test(d))&&(d=tn(d,t)),e=e.replace(c,d)}return o&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),r&&(e=e==null?void 0:e.replace(/\s{2,}?/g," ")),e},Oe=(e,n=()=>{})=>{const{requestUrl:t,requestMethod:o,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:f,touchEventId:c}=a.inject(Ie,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:d}=a.inject(we,{getGlobalModel:g=>{}}),x=Se(t),u=async(g={})=>{if(!x||!o||!r)return;let m={};i.forEach(b=>{const{key:C,value:v}=b;if(typeof v=="object"&&v!=null&&v.id){let T={};const{id:E,prop:_,propKey:w,operate:B}=v;E==="THIS"?T=d(a.unref(c))||{}:T=d(E)||{};const L=a.unref(T[_]);let A=null;if(["date","range"].some(H=>_t(T==null?void 0:T.type,H))){const{value:H,type:R,mode:F}=B||{};if(H&&R&&F)switch(R){case"add":A=a.unref(L).add(H,F);break;case"minus":A=a.unref(L).subtract(H,F);break}A==null&&(A=a.unref(L)),A=(A==null?void 0:A.format((w==null?void 0:w.trim())||T.format))||""}else Object.prototype.toString.call(L)==="[object Object]"?w?A=L[w]:A=_?L[_]:L:_t(T==null?void 0:T.type,"select")&&a.unref(L)&&_&&Array.isArray(a.unref(L))?A=a.unref(L).map(H=>Object.prototype.hasOwnProperty.call(H,_)?H[_]:H):A=L;m[C]=A}else typeof v=="string"&&(m[C]=Se(v))}),m={...window.config.requestParams,...g,...m};let S="";const k=Object.keys(m),y=k.length-1,p=k.length;k.forEach((b,C)=>{let v=m[b];Object.prototype.toString.call(v)==="[object Object]"&&(v=JSON.stringify(v)),C===0?p!==1?S+=`?${b}=${v}&`:S+=`?${b}=${v}`:C===y?S+=`${b}=${v}`:S+=`${b}=${v}&`});try{const b=["get","head"].includes(o),C={};let v=b?x+S:x;m.dataSqlId&&!v.includes("dataSqlId")&&(v+=`${v.includes("?")?"&":"?"}dataSqlId=${m.dataSqlId}`),Object.prototype.hasOwnProperty.call(m,"signal")&&(C.signal=m.signal);const T=await Qe({baseURL:a.unref(f)||"",url:v,method:o,headers:r,data:b?{}:m,...C});return n(T),T}catch(b){console.error(b)}},h=l&&setInterval(u,s*1e3);return a.onUnmounted(()=>{clearInterval(h)}),u},st=(e=[],n,t=!1)=>{let{name:o="name",types:r=[]}=n||{};o=(o==null?void 0:o.trim())||o;const i=new Set,s=new Map,l=e.length,f=r.length;if(l===1&&!t){const x=[];for(let h=0;h<f;h++){const g=r[h],{label:m,value:S}=g,k={...e[0],value:e[0][S]};i.add(m),x.push(k)}const u=e[0][o]||"";s.set(u,x)}else for(let x=0;x<l;x++){const u=e[x],h=u[o];i.add(h);for(let g=0;g<f;g++){const m=r[g],{label:S,value:k}=m,y={...u,value:u[k]};if(s.has(S)){const p=s.get(S);p.push(y),s.set(S,p)}else s.set(S,[y])}}const c=Array.from(i),d=[];for(const[x,u]of s)d.push({name:x,data:u});return console.log("dimensions",c),console.log("dataset",d),{dimensions:c,dataset:d}},mt=(e,n=!1)=>{var o;if(!e)return e;let t="";return e!=null&&e.includes("://")?t=e:t=((o=window==null?void 0:window.config)==null?void 0:o.uploadPath)+e,n&&(t=`url(${t})`),t},Zr=(e,n)=>{const t=`${ja}/preview?pageId=${n}`,o=`${ja}/${n}`;return e==="preview"?t:o},$e=(e,n)=>{var r;if(e==null)return n;const t=e.match(/\{.*\}/g);if(t==null||t.length===0)return n;const o=t.length;for(let i=0;i<o;i++){const s=t[i];if(s==null||s==="")break;let l=(r=s.slice(1,-1))==null?void 0:r.trim();l=l==null?void 0:l.replace(/value/g,n);try{let f=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(f=tn(l)),e=e.replace(s,f)}catch{e=e.replace(s,l)}}return e},Xe=(e={})=>{const{requestToken:n}=a.inject(Fa,{requestToken:()=>{}});e.dataType==="indicator"&&n();const t=(c={})=>{const{label:d,name:x,location:u,show:h,indexCode:g}=c;return{label:d,columnName:x,location:u,show:h,calcType:"COLUMN",hrpIndexCode:g}},o=(c,d)=>Object.prototype.hasOwnProperty.call(c,d),r=c=>{o(c,"dataType")&&(c.fieldType==="DATE"&&(c.label=c.fieldName,c.dataType==="component"&&(c.fieldValue="${"+c.fieldValue+"}")),delete c.dataType),o(c,"activeKey")&&delete c.activeKey,o(c,"radioValue")&&delete c.radioValue},i=c=>{const d=[];return c!=null&&c.length&&c.forEach(x=>{if(x.join&&x.conditions){const u=!x.conditions.some(h=>h.join&&h.conditions);x.conditions.forEach((h,g)=>{r(h),u?g<x.conditions.length-1?d.push({join:x.join,...h}):d.push(h):h.join&&h.conditions?d.push({conditions:i([h]),join:x.join}):d.push(h)})}else r(x),d.push(x)}),d},s=(c={})=>{const{label:d,name:x,location:u,show:h,indexCode:g,calcType:m="COLUMN",builtInFormula:S,builtInValueSource:k,builtInCalcWay:y,formula:p,conditions:b,aggregate:C}=c;let v;return b&&(v=i(b)),{label:d.trim(),columnName:x,location:u,show:h,calcType:m,hrpIndexCode:g,aggregate:C,builtInFormula:S,builtInValueSource:k,builtInCalcWay:y,formula:p,conditions:v}},{getGlobalModel:l}=a.inject(we,{getGlobalModel:c=>{}}),f=(c=[])=>{var u,h,g;const d=c.length,x=[];for(let m=0;m<d;m++){const S=c[m];if(S.mode==="cascade")continue;const{id:k,keyName:y,conditionLabel:p,conditionKey:b,conditionValueType:C,prop:v}=S,T={rule:"NONE",label:p,fieldName:b,fieldValue:"",valueType:C,alias:`${y||k}-${v}`},E=l(k)||{},{value:_,format:w="YYYY-MM-DD",type:B="",useCurrentTime:L}=E||{};_t(E.type,"date")?(L?_?T.fieldValue=(u=a.unref(_))==null?void 0:u.format(w):T.fieldValue=Ae().format(w):T.fieldValue=(h=a.unref(_))==null?void 0:h.format(w),T.dateFormat=w):B==="ecanRangePicker"&&v?(v==="startTime"?T.rule="GREATER_EQUAL":v==="endTime"&&(T.rule="LESS_EQUAL"),v==="endTime"&&L?T.fieldValue=Ae().format(w):T.fieldValue=(g=a.unref(E[v]))==null?void 0:g.format(w),T.dateFormat=w):T.fieldValue=a.unref(_),x.push(T)}return x};return async(c={})=>{var N,P,I,M,Y;const{graphicConfig:d,type:x,isGroupTable:u=!1}=e;let{source:h,dataViewId:g,plugin:m="1",layer:S,chartType:k,classificationList:y=[],rowHeaderList:p=[],seriesList:b=[],leftAxisList:C=[],rightAxisList:v=[],queryColumnList:T=[],indicators:E=[],controlList:_=[],formFields:w={},idxLibMode:B,preview:L=!1}=d||{};S==null&&(_t(x,["table"])?S="1":_t(x,["select","checkbox","radio"])?S="3":S="2");let A,O="";if(Array.isArray(y)&&y.length>0){const U=y.length;for(let Z=0;Z<U;Z++){const j=y[Z]||{},{label:J="",name:oe="",show:pe=!1,sort:Ee,customGroup:xe,conditions:he,dateFormat:Le,typeGuid:Ve,truncations:Ne=[]}=j;if(pe||U===1){O=Ve,A={label:J.trim(),columnName:oe,show:pe,sort:Ee,customGroup:xe,conditions:i(he)},Le&&(A.dateFormat=Le),oe==="the_date"&&!A.dateFormat&&(A.dateFormat="YYYY-MM");const ze={};if(Array.isArray(Ne)&&Ne.length>0){const nt=Ne.length;for(let W=0;W<nt;W++){const $=Ne[W]||{},{rule:K="",num:X=0,name:Q=""}=$;K&&X&&(ze.num=X,ze.rule=K,Q&&(ze.otherGroupName=Q))}}(N=Object.keys(ze))!=null&&N.length&&(A.truncation=ze);break}}}let H;if(Array.isArray(b)&&b.length>0){const U=b.length;for(let Z=0;Z<U;Z++){const j=b[Z]||{},{label:J="",name:oe="",show:pe=!1,sort:Ee,customGroup:xe,conditions:he}=j;if(pe||U===1){H={label:J.trim(),columnName:oe,show:pe,sort:Ee,customGroup:xe,conditions:i(he)};break}}}const R=[];T==null||T.forEach(U=>{R.push(t(U))});const F=[];C==null||C.forEach(U=>{U.location="LEFT",F.push(s(U))}),v==null||v.forEach(U=>{U.location="RIGHT",F.push(s(U))}),E==null||E.forEach(U=>{U.location="LEFT",F.push(s(U))});const D=[];if(Array.isArray(p)&&p.length>0){const U=p.length;for(let Z=0;Z<U;Z++){const j=p[Z]||{},{label:J="",name:oe="",show:pe=!1,sort:Ee,customGroup:xe,conditions:he}=j;let Le=Ee;if(c.sort){const{field:Ve,order:Ne}=c.sort,ze=F.find(nt=>nt.label===Ve);ze&&(Le={columnName:ze.columnName,label:c.sort.field,order:Ne.toUpperCase(),type:"NORMAL"})}D.push({label:J.trim(),columnName:oe,show:pe,sort:Le,customGroup:xe,conditions:i(he)})}}if(_t(x,["text","proportion"])&&(k="zb"),u){if(D.length===0||F.length===0)return;k="grouptable"}else{if(S==="1"&&R.length===0)return;if(S==="2"&&F.length===0)return;if(S==="3"&&(!O||!w.labelField||!w.valueField))return}let z=[];(d==null?void 0:d.pageMode)==="design"?z=d.sqlConditions??[]:z=f(_);const q=(P=window==null?void 0:window.config)==null?void 0:P.pageId;if((I=Object.keys(w))!=null&&I.length){const U=_.find(j=>j.mode==="cascade"),Z={};if(U){const j=l(U.id)||{};if(j!=null&&j.itemCodes)Z.parentItemCodes=j.itemCodes;else return}try{return await Qe.post(`${Va}/diagram/formData`,{source:h,dataViewId:g,plugin:"4",layer:S,chartType:"normalSelect",rangeIndexTypeGuid:O,type:"normalSelect",labelField:w.labelField,valueField:w.valueField,pageId:q,sqlConditions:z,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...Z},{headers:{Authentication:(M=window==null?void 0:window.config)==null?void 0:M.indicatorToken,operateContext:qa}})}catch(j){console.error(j)}}else try{return await Qe.post(`${Va}/diagram`,{source:h,dataViewId:g,plugin:m,layer:S,chartType:k,classification:A,series:H,indicatorList:F,queryColumns:u?[]:R,pageFlag:!0,pageId:q,sqlConditions:z,idxLibMode:B,preview:L,rowHeaders:D,keyName:e.keyName},{headers:{Authentication:(Y=window==null?void 0:window.config)==null?void 0:Y.indicatorToken,operateContext:qa}})}catch(U){console.error(U)}}},Xs=()=>{const n=window.location.search.slice(1).split("&"),t=n.length,o={};for(let r=0;r<t;r++){const i=n[r];if(i==null||i==="")continue;const s=i.split("=");if(Array.isArray(s)){const l=s[0];o[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...o},window.config={...window.config,...o}},Qs=a.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pn},setup(e){const{width:n,height:t}=a.inject(Ie,{width:null,height:null}),o=a.inject("setPageHeight",b=>{}),r=a.inject("isMobile",!1),i=a.computed(()=>{const b={};return r||(b.width=n.value,b.height=t.value),{...b,backgroundColor:e.backgroundColor,backgroundImage:mt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=a.ref(0),l=a.ref(0),f=a.ref(0),c=a.ref(0),d=a.ref(!1),x=a.ref();let u;const h=()=>new Promise(b=>{a.nextTick(()=>{n.value&&t.value?(s.value=parseFloat(n.value),l.value=parseFloat(t.value)):(s.value=x.value.clientWidth,l.value=x.value.clientHeight),(!f.value||!c.value)&&(f.value=window.screen.width,c.value=window.screen.height),b()})}),g=()=>{s.value&&l.value?(x.value.style.width=`${s.value}px`,x.value.style.height=`${l.value}px`):(x.value.style.width=`${f.value}px`,x.value.style.height=`${c.value}px`)};a.watch([n,t],async()=>{await h(),g(),S(),window.addEventListener("resize",k),y(),d.value=!0},{immediate:!0});const m=a.ref({});a.provide("scaleValue",m);const S=()=>{if(r){x.value.style.width="100%",x.value.style.height="auto",o("auto");return}const b=document.body.clientWidth,C=document.body.clientHeight,v=s.value||f.value,T=l.value||c.value,E=b/v;let _=C/T;(s.value!==1920||l.value!==1080)&&(_=l.value/s.value*b/T),m.value={widthScale:E,heightScale:_},x.value&&(x.value.style.transform=`scale(${E}, ${_})`),o(_)},k=Ge.debounce(async()=>{await h(),S()},100),y=()=>{const b=window.MutationObserver;u=new b(k),u.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},p=()=>{u&&(u.disconnect(),u.takeRecords(),u=null)};return a.onMounted(()=>{d.value=!1}),a.onUnmounted(()=>{window.removeEventListener("resize",k),p()}),{style:i,container:x,ready:d}}}),Id="",Js={id:"container",ref:"container"};function ec(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",Js,[e.ready?(a.openBlock(),a.createElementBlock("div",{key:0,class:"page-config",style:a.normalizeStyle(e.style)},[a.renderSlot(e.$slots,"default",{},void 0,!0)],4)):a.createCommentVNode("",!0)],512)}const Yr=fe(ce(Qs,[["render",ec],["__scopeId","data-v-b496b36e"]])),co={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},width:"1920px",height:"1080px"},fo=de(co),tc=a.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...fo},setup(e,{expose:n}){Xs();const t=a.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)),o=a.ref(),r=()=>{o.value.setAttribute("datav-theme",e.theme)};a.watch(()=>e.theme,()=>{r()}),a.onMounted(()=>{r()});const i=a.computed(()=>Se(e.contextRequestUrl)),s=a.computed(()=>e.pageMode),l=a.computed(()=>e.theme),f=a.computed(()=>e.width),c=a.computed(()=>e.height),d=a.ref("");a.provide(Ie,{contextRequestUrl:i,pageMode:s,theme:l,touchEventId:d,width:f,height:c});const x=a.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});a.provide("setPageHeight",I=>{let M=I;t.value||(M=parseFloat(c.value)*I+"px"),x.value.height=M}),a.provide("isMobile",t.value),a.provide("getContainerMap",()=>e.containerMap);const u=a.ref(),h=new Map;console.log("globalModel",h);const g=I=>h.get(I),m=(I,M)=>{u.value=M,h.set(I,M)},S=()=>{u.value=null};a.provide(we,{getGlobalModel:g,setGlobalModel:m,clearInteractiveData:S,interactiveData:u});const k=a.ref({}),y=(I,M)=>{k.value[I]=M};a.provide(Ha,{loadedData:k,setLoadedData:y});const p=[],b=()=>{p.pop()},C=I=>{p.push(I)},v=new Map,T=I=>v.get(I),E=(I,M)=>{v.set(I,M)};a.provide(Pa,{popUseModalIds:b,pushUseModalIds:C,getModalModel:T,setModalModel:E});const _=p0(),w=new Set,B=(I,M)=>{w.add(I),_.on(I,Y=>typeof M[Y]=="function"&&M[Y]()),a.onBeforeUnmount(()=>{L(I)})},L=I=>{w.delete(I),_.off(I)},A=(I,M)=>{if(I==="PAGE"){const Y=p.length;let U=[];if(Y===0)U=[...w];else{const Z=p[Y-1];U=[...T(Z)]}U.forEach(Z=>{_.emit(Z,M)})}else _.emit(I,M)};a.provide(bn,{onEvent:B,offEvent:L,emitEvent:A});const O=a.ref(0),H=()=>{O.value=a.unref(O)+1};a.provide(Fa,{requestToken:H});const R=new Map,F=new Map,D=({requestFn:I=()=>{},sortNum:M=0,id:Y=""})=>{if(R.has(M)){const U=R.get(M);U==null||U.push(I)}else R.set(M,[I]);F.set(Y,I)},z=I=>new Promise((M,Y)=>{const U=I.map(Z=>Z());Promise.all(U).then(Z=>{M(Z)}).catch(Z=>{Y(Z)})}),q=I=>new Promise(async(M,Y)=>{if(I){if(typeof I=="string"){const U=F.get(I);if(typeof U=="function"){const Z=Qe.interceptors.response.use(j=>(M(j),j),j=>(Y(j),Promise.reject(j)));U(),Qe.interceptors.response.eject(Z)}}}else{const U=Array.from(R);U.sort((j,J)=>J[0]-j[0]);const Z=U.length;try{e.pageMode!=="design"&&a.unref(O)>0;for(let j=0;j<Z;j++){const J=U[j][1];await z(J)}}catch(j){console.error(j)}finally{R.clear(),M(null)}}});a.provide(_e,{setRequest:D,touchRequest:q});const N=()=>{_.emit(Nt)};a.provide(Nt,{emitRefreshPage:N});const P=I=>{_.on(Nt,()=>I()),a.onMounted(()=>{_.off(Nt)})};return a.onBeforeUnmount(()=>{R==null||R.clear(),F==null||F.clear()}),n({touchRequest:q,getGlobalModel:g,onRefreshPage:P}),{providerConfig:o,configStyle:x}}}),Ld="";function nc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:a.normalizeStyle(e.configStyle)},[a.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const Kr=fe(ce(tc,[["render",nc],["__scopeId","data-v-7b276b2c"]])),uo={...me,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:""},ho=de(uo),Xr=["refreshData","click","valueChange"],Qr="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=",Jr="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==",go=a.defineComponent({name:"EcanText",components:{Skeleton:jt},props:{...ho},setup(e,{expose:n}){const t=a.ref(!1),o=ue(e),r=a.ref({}),i=a.computed(()=>e.variableFontSize||"14px"),s=a.computed(()=>"-"+a.unref(i));a.watch(()=>[e.data,e.dataType],([C,v])=>{v==="static"&&(r.value=C)},{immediate:!0});const l=a.computed(()=>{var B;if(a.unref(t))return"NaN";const C=a.unref(r),v=e.increaseColor||e.color,T=e.declineColor||e.color;let E=e.text;E=E==null?void 0:E.replace(/\n|\\n/g,"<br/>"),E=E==null?void 0:E.replace(/\s(?!\{) | (?!\})\s/g," ");const _=E.match(/\{(.+?)\}/g)||[];let w="";if(_==null||_.length===0){if(E&&e.format==="percentage"&&!isNaN(+E)){const L=parseFloat(E),A=L*100,O=f(A.toFixed(2));L>=0?E=`<span style="color: ${O||v||"#ED6643"};font-size:${a.unref(i)};display: inline-block;">
|
|
96
|
+
`,t+="-----END PUBLIC KEY-----",t},n.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},n.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},n.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},n}(Ns),so,Hs=typeof process<"u"?(so=process.env)===null||so===void 0?void 0:so.npm_package_version:void 0,qs=function(){function e(n){n===void 0&&(n={}),n=n||{},this.default_key_size=n.default_key_size?parseInt(n.default_key_size,10):1024,this.default_public_exponent=n.default_public_exponent||"010001",this.log=n.log||!1,this.key=null}return e.prototype.setKey=function(n){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Vr(n)},e.prototype.setPrivateKey=function(n){this.setKey(n)},e.prototype.setPublicKey=function(n){this.setKey(n)},e.prototype.decrypt=function(n){try{return this.getKey().decrypt(Or(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return $t(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,t,o){try{return $t(this.getKey().sign(n,t,o))}catch{return!1}},e.prototype.verify=function(n,t,o){try{return this.getKey().verify(n,Or(t),o)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new Vr,n&&{}.toString.call(n)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,n);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=Hs,e}();const jr=new qs,_t=Vs();function Vs(){let n=Math.random().toString(36).substr(2);for(;n.length<16;)n+=Math.random().toString(36).substr(2);return n=n.substr(0,16),n}const Gr=He.enc.Utf8.parse("ABCDEF1234123412");function js(e,n){n=n||_t;const t=He.enc.Utf8.parse(n);let o="";switch(typeof e){case"string":o=He.enc.Utf8.parse(e);break;case"object":o=He.enc.Utf8.parse(JSON.stringify(e));break;default:o=He.enc.Utf8.parse(e.toString())}return He.AES.encrypt(o,t,{iv:Gr,mode:He.mode.CBC,padding:He.pad.ZeroPadding}).toString()}function Wr(e,n){n=n||_t;const t=He.enc.Utf8.parse(n),o=He.AES.decrypt(e,t,{iv:Gr,mode:He.mode.CBC,padding:He.pad.ZeroPadding});return He.enc.Utf8.stringify(o).toString()}function Gs(e){jr.setPublicKey(e)}function Ws(e){return jr.encrypt(e)}function Ur(e=""){e.startsWith("/")||(e="/"+e),e=e.split("?")[0];const t=["/diagram","/dataview"].map(o=>`^(.*?)${o}(/|$)`);for(const o of t)if(new RegExp(o).test(e))return!0;return!1}function Us(e){const{paramType:n,data:t,params:o,method:r}=e;n==="form"?["get","delete"].includes(r)?e.params=Dt(o,"string"):e.data=Dt(t,"string"):["get","delete"].includes(r)?e.params=Dt(o,"string"):e.data=Dt(t)}function Dt(e,n){let t=e||{};if(n==="string"){t="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const f=e[l];t+=`${l}=${encodeURIComponent(f)}&`}}Gs("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=Ws(_t);return{c:js(t,_t),p:r}}window.getEncryptParam=Dt;function $s(e,n){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&Ur(e.url)&&(e.data instanceof FormData?e.data=Zs(e.data):Us(e))}function Zs(e){const n=e.entries(),t=new FormData,o={};for(const i of n){const s=i[0],l=i[1];l instanceof Blob?t.append(s,l):o[s]=l}const r=Dt(o,"json");return typeof r=="object"&&(t.append("c",r.c),t.append("p",r.p)),t}window.xhaesKey=_t,window.xhaesDecrypt=Wr;function $r(e,n){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&Ur(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const o=Wr(e.data.data.content,_t);e.data=JSON.parse(o)}}const Zr=window.config.requestErrorTip,Qe=b0.create({timeout:1e3*180});Qe.interceptors.request.use(e=>($s(e),e),e=>Promise.reject(e)),Qe.interceptors.response.use(e=>{var n,t,o;return Zr&&+((n=e==null?void 0:e.data)==null?void 0:n.code)==500&&ae.message.error({content:((t=e==null?void 0:e.data)==null?void 0:t.msg)||((o=e==null?void 0:e.data)==null?void 0:o.message)||"服务器异常",key:"SERVER_ERROR"}),$r(e),e},e=>{if($r(e==null?void 0:e.response),Zr)if(e.message.includes("timeout"))ae.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{const{status:n}=(e==null?void 0:e.response)||{};n>=400&&n<500&&ae.message.error({content:"请求异常",key:"REQUEST_ERROR"}),n>=500&&ae.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)});const Ys=e=>e.replace(/\\n/g,`
|
|
97
|
+
`),co=(e,n=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Ks=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},tn=(e,n=2)=>{const t=e+"";if(t.includes("%"))return e;const o=parseFloat(t);return isNaN(o)?e:`${(o*100).toFixed(n)}%`},Xs=(e,n=2)=>{const t=e+"",o=parseFloat(t);return isNaN(o)?e:o.toFixed(n)},Qs=(e,n)=>Ue(n,e),Rt=(e,n)=>{if(typeof e=="string"&&typeof n=="string")return e.toLocaleLowerCase().includes(n.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(n)){const t=n.length;for(let o=0;o<t;o++){const r=n[o];if(typeof r=="string"&&e.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return!0}}return!1},Yr=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),nn=(e,n)=>{const t={dayjs:Ae,...n};let o="";const r=[];for(const l in t)o+=`${l},`,r.push(t[l]);o=o.replace(/,$/,"");const i=`function (${o}){return ${e}}`;let s;try{s=Function(`"use strict";return (${i})`)()(...r)}catch{return e}return s},Se=(e="",{textData:n,codeData:t}={},{useNewline:o=!1,useSpace:r=!1}={})=>{const s={...window.config||{},...n},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let f=0;f<l.length;f++){const c=l[f];let d=c.slice(1,-1).trim();const x=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,h=d.match(x);for(let u=0;u<h.length;u++){const m=h[u],g=s[m];g!=null&&(d=d.replace(m,g))}(/\(.*\)/g.test(d)||/[+/\\*]/g.test(d))&&(d=nn(d,t)),e=e.replace(c,d)}return o&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),r&&(e=e==null?void 0:e.replace(/\s{2,}?/g," ")),e},Ie=(e,n=()=>{})=>{const{requestUrl:t,requestMethod:o,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:f,touchEventId:c}=a.inject(Re,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:d}=a.inject(we,{getGlobalModel:m=>{}}),x=Se(t),h=async(m={})=>{if(!x||!o||!r)return;let g={};i.forEach(p=>{const{key:T,value:w}=p;if(typeof w=="object"&&w!=null&&w.id){let C={};const{id:B,prop:_,propKey:v,operate:E}=w;B==="THIS"?C=d(a.unref(c))||{}:C=d(B)||{};const z=a.unref(C[_]);let k=null;if(["date","range"].some(M=>Rt(C==null?void 0:C.type,M))){const{value:M,type:D,mode:q}=E||{};if(M&&D&&q)switch(D){case"add":k=a.unref(z).add(M,q);break;case"minus":k=a.unref(z).subtract(M,q);break}k==null&&(k=a.unref(z)),k=(k==null?void 0:k.format((v==null?void 0:v.trim())||C.format))||""}else Object.prototype.toString.call(z)==="[object Object]"?v?k=z[v]:k=_?z[_]:z:Rt(C==null?void 0:C.type,"select")&&a.unref(z)&&_&&Array.isArray(a.unref(z))?k=a.unref(z).map(M=>Object.prototype.hasOwnProperty.call(M,_)?M[_]:M):k=z;g[T]=k}else typeof w=="string"&&(g[T]=Se(w))}),g={...window.config.requestParams,...m,...g};let S="";const A=Object.keys(g),y=A.length-1,b=A.length;A.forEach((p,T)=>{let w=g[p];Object.prototype.toString.call(w)==="[object Object]"&&(w=JSON.stringify(w)),T===0?b!==1?S+=`?${p}=${w}&`:S+=`?${p}=${w}`:T===y?S+=`${p}=${w}`:S+=`${p}=${w}&`});try{const p=["get","head"].includes(o),T={};let w=p?x+S:x;g.dataSqlId&&!w.includes("dataSqlId")&&(w+=`${w.includes("?")?"&":"?"}dataSqlId=${g.dataSqlId}`),Object.prototype.hasOwnProperty.call(g,"signal")&&(T.signal=g.signal);const C=await Qe({baseURL:a.unref(f)||"",url:w,method:o,headers:r,data:p?{}:g,...T});return n(C),C}catch(p){console.error(p)}},u=l&&setInterval(h,s*1e3);return a.onUnmounted(()=>{clearInterval(u)}),h},ct=(e=[],n,t=!1)=>{let{name:o="name",types:r=[]}=n||{};o=(o==null?void 0:o.trim())||o;const i=new Set,s=new Map,l=e.length,f=r.length;if(l===1&&!t){const x=[];for(let u=0;u<f;u++){const m=r[u],{label:g,value:S}=m,A={...e[0],value:e[0][S]};i.add(g),x.push(A)}const h=e[0][o]||"";s.set(h,x)}else for(let x=0;x<l;x++){const h=e[x],u=h[o];i.add(u);for(let m=0;m<f;m++){const g=r[m],{label:S,value:A}=g,y={...h,value:h[A]};if(s.has(S)){const b=s.get(S);b.push(y),s.set(S,b)}else s.set(S,[y])}}const c=Array.from(i),d=[];for(const[x,h]of s)d.push({name:x,data:h});return console.log("dimensions",c),console.log("dataset",d),{dimensions:c,dataset:d}},yt=(e,n=!1)=>{var o;if(!e)return e;let t="";return e!=null&&e.includes("://")?t=e:t=((o=window==null?void 0:window.config)==null?void 0:o.uploadPath)+e,n&&(t=`url(${t})`),t},Kr=(e,n)=>{const t=`${Wa}/preview?pageId=${n}`,o=`${Wa}/${n}`;return e==="preview"?t:o},Ue=(e,n)=>{var r;if(e==null)return n;const t=e.match(/\{.*\}/g);if(t==null||t.length===0)return n;const o=t.length;for(let i=0;i<o;i++){const s=t[i];if(s==null||s==="")break;let l=(r=s.slice(1,-1))==null?void 0:r.trim();l=l==null?void 0:l.replace(/value/g,n);try{let f=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(f=nn(l)),e=e.replace(s,f)}catch{e=e.replace(s,l)}}return e},Ke=(e={})=>{const{requestToken:n}=a.inject(Ha,{requestToken:()=>{}});e.dataType==="indicator"&&n();const t=(c={})=>{const{label:d,name:x,location:h,show:u,indexCode:m}=c;return{label:d,columnName:x,location:h,show:u,calcType:"COLUMN",hrpIndexCode:m}},o=(c,d)=>Object.prototype.hasOwnProperty.call(c,d),r=c=>{o(c,"dataType")&&(c.fieldType==="DATE"&&(c.label=c.fieldName),c.dataType==="component"&&(c.fieldValue="${"+c.fieldValue+"}"),delete c.dataType),o(c,"activeKey")&&delete c.activeKey,o(c,"radioValue")&&delete c.radioValue},i=c=>{const d=[];return c!=null&&c.length&&c.forEach(x=>{if(x.join&&x.conditions){const h=!x.conditions.some(u=>u.join&&u.conditions);x.conditions.forEach((u,m)=>{r(u),h?m<x.conditions.length-1?d.push({join:x.join,...u}):d.push(u):u.join&&u.conditions?d.push({conditions:i([u]),join:x.join}):d.push(u)})}else r(x),d.push(x)}),d},s=(c={})=>{const{label:d,name:x,location:h,show:u,indexCode:m,calcType:g="COLUMN",builtInFormula:S,builtInValueSource:A,builtInCalcWay:y,formula:b,conditions:p,aggregate:T}=c;let w;return p&&(w=i(p)),{label:d.trim(),columnName:x,location:h,show:u,calcType:g,hrpIndexCode:m,aggregate:T,builtInFormula:S,builtInValueSource:A,builtInCalcWay:y,formula:b,conditions:w}},{getGlobalModel:l}=a.inject(we,{getGlobalModel:c=>{}}),f=(c=[])=>{var h,u,m;const d=c.length,x=[];for(let g=0;g<d;g++){const S=c[g];if(S.mode==="cascade")continue;const{id:A,keyName:y,conditionLabel:b,conditionKey:p,conditionValueType:T,prop:w}=S,C={rule:"NONE",label:b,fieldName:p,fieldValue:"",valueType:T,alias:`${y||A}-${w}`},B=l(A)||{},{value:_,format:v="YYYY-MM-DD",type:E="",useCurrentTime:z}=B||{};Rt(B.type,"date")?(z?_?C.fieldValue=(h=a.unref(_))==null?void 0:h.format(v):C.fieldValue=Ae().format(v):C.fieldValue=(u=a.unref(_))==null?void 0:u.format(v),C.dateFormat=v):E==="ecanRangePicker"&&w?(w==="startTime"?C.rule="GREATER_EQUAL":w==="endTime"&&(C.rule="LESS_EQUAL"),w==="endTime"&&z?C.fieldValue=Ae().format(v):C.fieldValue=(m=a.unref(B[w]))==null?void 0:m.format(v),C.dateFormat=v):C.fieldValue=a.unref(_),x.push(C)}return x};return async(c={})=>{var L,P,O,F,Y;const{graphicConfig:d,type:x,isGroupTable:h=!1}=e;let{source:u,dataViewId:m,plugin:g="1",layer:S,chartType:A,classificationList:y=[],rowHeaderList:b=[],seriesList:p=[],leftAxisList:T=[],rightAxisList:w=[],queryColumnList:C=[],indicators:B=[],controlList:_=[],formFields:v={},idxLibMode:E,preview:z=!1}=d||{};S==null&&(Rt(x,["table"])?S="1":Rt(x,["select","checkbox","radio"])?S="3":S="2");let k,N="";if(Array.isArray(y)&&y.length>0){const U=y.length;for(let Z=0;Z<U;Z++){const j=y[Z]||{},{label:ee="",name:oe="",show:pe=!1,sort:Ee,customGroup:ye,conditions:ge,dateFormat:Oe,typeGuid:qe,truncations:Le=[]}=j;if(pe||U===1){N=qe,k={label:ee.trim(),columnName:oe,show:pe,sort:Ee,customGroup:ye,conditions:i(ge)},Oe&&(k.dateFormat=Oe),oe==="the_date"&&!k.dateFormat&&(k.dateFormat="YYYY-MM");const Ne={};if(Array.isArray(Le)&&Le.length>0){const ot=Le.length;for(let Xe=0;Xe<ot;Xe++){const G=Le[Xe]||{},{rule:$="",num:K=0,name:Q=""}=G;$&&K&&(Ne.num=K,Ne.rule=$,Q&&(Ne.otherGroupName=Q))}}(L=Object.keys(Ne))!=null&&L.length&&(k.truncation=Ne);break}}}let M;if(Array.isArray(p)&&p.length>0){const U=p.length;for(let Z=0;Z<U;Z++){const j=p[Z]||{},{label:ee="",name:oe="",show:pe=!1,sort:Ee,customGroup:ye,conditions:ge}=j;if(pe||U===1){M={label:ee.trim(),columnName:oe,show:pe,sort:Ee,customGroup:ye,conditions:i(ge)};break}}}const D=[];C==null||C.forEach(U=>{D.push(t(U))});const q=[];T==null||T.forEach(U=>{U.location="LEFT",q.push(s(U))}),w==null||w.forEach(U=>{U.location="RIGHT",q.push(s(U))}),B==null||B.forEach(U=>{U.location="LEFT",q.push(s(U))});const I=[];if(Array.isArray(b)&&b.length>0){const U=b.length;for(let Z=0;Z<U;Z++){const j=b[Z]||{},{label:ee="",name:oe="",show:pe=!1,sort:Ee,customGroup:ye,conditions:ge}=j;let Oe=Ee;if(c.sort){const{field:qe,order:Le}=c.sort,Ne=q.find(ot=>ot.label===qe);Ne&&(Oe={columnName:Ne.columnName,label:c.sort.field,order:Le.toUpperCase(),type:"NORMAL"})}I.push({label:ee.trim(),columnName:oe,show:pe,sort:Oe,customGroup:ye,conditions:i(ge)})}}if(Rt(x,["text","proportion"])&&(A="zb"),h){if(I.length===0||q.length===0)return;A="grouptable"}else{if(S==="1"&&D.length===0)return;if(S==="2"&&q.length===0)return;if(S==="3"&&(!N||!v.labelField||!v.valueField))return}let R=[];(d==null?void 0:d.pageMode)==="design"?R=d.sqlConditions??[]:R=f(_);const H=(P=window==null?void 0:window.config)==null?void 0:P.pageId;if((O=Object.keys(v))!=null&&O.length){const U=_.find(j=>j.mode==="cascade"),Z={};if(U){const j=l(U.id)||{};if(j!=null&&j.itemCodes)Z.parentItemCodes=j.itemCodes;else return}try{return await Qe.post(`${Ga}/diagram/formData`,{source:u,dataViewId:m,plugin:"4",layer:S,chartType:"normalSelect",rangeIndexTypeGuid:N,type:"normalSelect",labelField:v.labelField,valueField:v.valueField,pageId:H,sqlConditions:R,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...Z},{headers:{Authentication:(F=window==null?void 0:window.config)==null?void 0:F.indicatorToken,operateContext:ja}})}catch(j){console.error(j)}}else try{return await Qe.post(`${Ga}/diagram`,{source:u,dataViewId:m,plugin:g,layer:S,chartType:A,classification:k,series:M,indicatorList:q,queryColumns:h?[]:D,pageFlag:!0,pageId:H,sqlConditions:R,idxLibMode:E,preview:z,rowHeaders:I,keyName:e.keyName},{headers:{Authentication:(Y=window==null?void 0:window.config)==null?void 0:Y.indicatorToken,operateContext:ja}})}catch(U){console.error(U)}}},Js=()=>{const n=window.location.search.slice(1).split("&"),t=n.length,o={};for(let r=0;r<t;r++){const i=n[r];if(i==null||i==="")continue;const s=i.split("=");if(Array.isArray(s)){const l=s[0];o[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...o},window.config={...window.config,...o}},ec=a.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...bn},setup(e){const{width:n,height:t}=a.inject(Re,{width:null,height:null}),o=a.inject("setPageHeight",p=>{}),r=a.inject("isMobile",!1),i=a.computed(()=>{const p={};return r||(p.width=n.value,p.height=t.value),{...p,backgroundColor:e.backgroundColor,backgroundImage:yt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=a.ref(0),l=a.ref(0),f=a.ref(0),c=a.ref(0),d=a.ref(!1),x=a.ref();let h;const u=()=>new Promise(p=>{a.nextTick(()=>{n.value&&t.value?(s.value=parseFloat(n.value),l.value=parseFloat(t.value)):(s.value=x.value.clientWidth,l.value=x.value.clientHeight),(!f.value||!c.value)&&(f.value=window.screen.width,c.value=window.screen.height),p()})}),m=()=>{s.value&&l.value?(x.value.style.width=`${s.value}px`,x.value.style.height=`${l.value}px`):(x.value.style.width=`${f.value}px`,x.value.style.height=`${c.value}px`)};a.watch([n,t],async()=>{await u(),m(),S(),window.addEventListener("resize",A),y(),d.value=!0},{immediate:!0});const g=a.ref({});a.provide("scaleValue",g);const S=()=>{if(r){x.value.style.width="100%",x.value.style.height="auto",o("auto");return}const p=document.body.clientWidth,T=document.body.clientHeight,w=s.value||f.value,C=l.value||c.value,B=p/w;let _=T/C;(s.value!==1920||l.value!==1080)&&(_=l.value/s.value*p/C),g.value={widthScale:B,heightScale:_},x.value&&(x.value.style.transform=`scale(${B}, ${_})`),o(_)},A=je.debounce(async()=>{await u(),S()},100),y=()=>{const p=window.MutationObserver;h=new p(A),h.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},b=()=>{h&&(h.disconnect(),h.takeRecords(),h=null)};return a.onMounted(()=>{d.value=!1}),a.onUnmounted(()=>{window.removeEventListener("resize",A),b()}),{style:i,container:x,ready:d}}}),Ld="",tc={id:"container",ref:"container"};function nc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",tc,[e.ready?(a.openBlock(),a.createElementBlock("div",{key:0,class:"page-config",style:a.normalizeStyle(e.style)},[a.renderSlot(e.$slots,"default",{},void 0,!0)],4)):a.createCommentVNode("",!0)],512)}const Xr=ce(se(ec,[["render",nc],["__scopeId","data-v-b496b36e"]])),fo={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},width:"1920px",height:"1080px"},uo=de(fo),oc=a.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...uo},setup(e,{expose:n}){Js();const t=a.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)),o=a.ref(),r=()=>{o.value.setAttribute("datav-theme",e.theme)};a.watch(()=>e.theme,()=>{r()}),a.onMounted(()=>{r()});const i=a.computed(()=>Se(e.contextRequestUrl)),s=a.computed(()=>e.pageMode),l=a.computed(()=>e.theme),f=a.computed(()=>e.width),c=a.computed(()=>e.height),d=a.ref("");a.provide(Re,{contextRequestUrl:i,pageMode:s,theme:l,touchEventId:d,width:f,height:c});const x=a.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});a.provide("setPageHeight",O=>{let F=O;t.value||(F=parseFloat(c.value)*O+"px"),x.value.height=F}),a.provide("isMobile",t.value),a.provide("getContainerMap",()=>e.containerMap);const h=a.ref(),u=new Map;console.log("globalModel",u);const m=O=>u.get(O),g=(O,F)=>{h.value=F,u.set(O,F)},S=()=>{h.value=null};a.provide(we,{getGlobalModel:m,setGlobalModel:g,clearInteractiveData:S,interactiveData:h});const A=a.ref({}),y=(O,F)=>{A.value[O]=F};a.provide(Va,{loadedData:A,setLoadedData:y});const b=[],p=()=>{b.pop()},T=O=>{b.push(O)},w=new Map,C=O=>w.get(O),B=(O,F)=>{w.set(O,F)};a.provide(qa,{popUseModalIds:p,pushUseModalIds:T,getModalModel:C,setModalModel:B});const _=v0(),v=new Set,E=(O,F)=>{v.add(O),_.on(O,Y=>typeof F[Y]=="function"&&F[Y]()),a.onBeforeUnmount(()=>{z(O)})},z=O=>{v.delete(O),_.off(O)},k=(O,F)=>{if(O==="PAGE"){const Y=b.length;let U=[];if(Y===0)U=[...v];else{const Z=b[Y-1];U=[...C(Z)]}U.forEach(Z=>{_.emit(Z,F)})}else _.emit(O,F)};a.provide(vn,{onEvent:E,offEvent:z,emitEvent:k});const N=a.ref(0),M=()=>{N.value=a.unref(N)+1};a.provide(Ha,{requestToken:M});const D=new Map,q=new Map,I=({requestFn:O=()=>{},sortNum:F=0,id:Y=""})=>{if(D.has(F)){const U=D.get(F);U==null||U.push(O)}else D.set(F,[O]);q.set(Y,O)},R=O=>new Promise((F,Y)=>{const U=O.map(Z=>Z());Promise.all(U).then(Z=>{F(Z)}).catch(Z=>{Y(Z)})}),H=O=>new Promise(async(F,Y)=>{if(O){if(typeof O=="string"){const U=q.get(O);if(typeof U=="function"){const Z=Qe.interceptors.response.use(j=>(F(j),j),j=>(Y(j),Promise.reject(j)));U(),Qe.interceptors.response.eject(Z)}}}else{const U=Array.from(D);U.sort((j,ee)=>ee[0]-j[0]);const Z=U.length;try{e.pageMode!=="design"&&a.unref(N)>0;for(let j=0;j<Z;j++){const ee=U[j][1];await R(ee)}}catch(j){console.error(j)}finally{D.clear(),F(null)}}});a.provide(_e,{setRequest:I,touchRequest:H});const L=()=>{_.emit(Ft)};a.provide(Ft,{emitRefreshPage:L});const P=O=>{_.on(Ft,()=>O()),a.onMounted(()=>{_.off(Ft)})};return a.onBeforeUnmount(()=>{D==null||D.clear(),q==null||q.clear()}),n({touchRequest:H,getGlobalModel:m,onRefreshPage:P}),{providerConfig:o,configStyle:x}}}),zd="";function ac(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:a.normalizeStyle(e.configStyle)},[a.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const Qr=ce(se(oc,[["render",ac],["__scopeId","data-v-7b276b2c"]])),ho={...xe,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"},go=de(ho),Jr=["refreshData","click","valueChange"],ei="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=",ti="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",mo=a.defineComponent({name:"EcanText",components:{Skeleton:Gt},props:{...go},setup(e,{expose:n}){const t=a.ref(!1),o=he(e),r=a.ref({}),i=a.computed(()=>e.variableFontSize||"14px"),s=a.computed(()=>"-"+a.unref(i));a.watch(()=>[e.data,e.dataType],([C,B])=>{B==="static"&&(r.value=C)},{immediate:!0});const l=a.computed(()=>{let C="";if(e.gradientShow){const{gradientColor:B,gradientOffset:_,gradientAngle:v,color:E}=e;C+=`background: linear-gradient(${v}, ${E}, ${B||"transparent"} ${_*100}%);-webkit-background-clip: text;color: transparent;`}return C}),f=a.computed(()=>{const C={};if(e.gradientShow){const{gradientColor:B,gradientOffset:_,gradientAngle:v,color:E}=e,z=B||"transparent";C.background=`linear-gradient(${v}, ${E}, ${z} ${_*100}%)`,C["-webkit-background-clip"]="text",C.color="transparent"}return C}),c=a.computed(()=>{var k;if(a.unref(t))return"NaN";const C=a.unref(r),B=e.increaseColor||e.color,_=e.declineColor||e.color;let v=e.text;v=v==null?void 0:v.replace(/\n|\\n/g,"<br/>"),v=v==null?void 0:v.replace(/\s(?!\{) | (?!\})\s/g," ");const E=v.match(/\{(.+?)\}/g)||[];let z="";if(E==null||E.length===0){if(v&&e.format==="percentage"&&!isNaN(+v)){const N=parseFloat(v),M=N*100,D=d(M.toFixed(2));N>=0?v=`<span style="color: ${D||B||"#ED6643"};font-size:${a.unref(i)};display: inline-block;${a.unref(l)}">
|
|
98
98
|
<div class="percentage-img-box">
|
|
99
|
-
<img style="width: ${a.unref(i)};filter: ${`drop-shadow(${
|
|
99
|
+
<img style="width: ${a.unref(i)};filter: ${`drop-shadow(${D||B||"#ED6643"} ${a.unref(i)} 0px)`};" src="${ei}"/>
|
|
100
100
|
</div>
|
|
101
|
-
<span style="color: ${
|
|
102
|
-
</span>`:
|
|
101
|
+
<span style="color: ${D||e.color};${a.unref(l)}">${Math.abs(+M).toFixed(2)}%</span>
|
|
102
|
+
</span>`:v=`<span style="color: ${D||_||"#6ACB97"};font-size:${a.unref(i)};display: inline-block;${a.unref(l)}">
|
|
103
103
|
<div class="percentage-img-box">
|
|
104
|
-
<img style="width: ${a.unref(i)};filter: ${`drop-shadow(${
|
|
104
|
+
<img style="width: ${a.unref(i)};filter: ${`drop-shadow(${D||_||"#6ACB97"} ${a.unref(i)} 0px)`};" src="${ti}"/>
|
|
105
105
|
</div>
|
|
106
|
-
<span style="color: ${
|
|
107
|
-
</span>`}
|
|
106
|
+
<span style="color: ${D||e.color};${a.unref(l)}">${e.minusSignShow?"-":""}${Math.abs(+M).toFixed(2)}%</span>
|
|
107
|
+
</span>`}z=v}for(let N=0;N<E.length;N++){const M=E[N],D=(k=M==null?void 0:M.slice(1,M.length-1))==null?void 0:k.trim();let q=D;const I=D.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let H=0;H<I.length;H++){const L=I[H],P=C[L];P&&(q=D.replace(L,P))}if(/\(.*\)/g.test(q)){const H=nn(q);H!=null&&(q=H)}let R=q;if(R===D&&(R=e.variableDefaultValue),R!=null){const H=e.format;if(H==="percentage")if(R=+R,isNaN(R))v=v.replace(M,`<span style="color:${d("0.00")||e.variableColor};font-size:${a.unref(i)};${a.unref(l)}">0%</span>`);else if(R>=0){R=R*100;const L=d(R.toFixed(2));v=v.replace(M,`<span style="color: ${L||B||"#ED6643"};font-size:${a.unref(i)};display: inline-block;${a.unref(l)}">
|
|
108
108
|
<div class="percentage-img-box">
|
|
109
|
-
<img style="width: ${a.unref(i)};filter: ${`drop-shadow(${
|
|
109
|
+
<img style="width: ${a.unref(i)};filter: ${`drop-shadow(${L||B||"#ED6643"} ${a.unref(i)} 0px)`};" src="${ei}"/>
|
|
110
110
|
</div>
|
|
111
|
-
<span style="color: ${
|
|
112
|
-
</span>`)}else{
|
|
111
|
+
<span style="color: ${L||e.color};${a.unref(l)}">${Math.abs(+R).toFixed(2)}%</span>
|
|
112
|
+
</span>`)}else{R=R*100;const L=d(R.toFixed(2));v=v.replace(M,`<span style="color: ${L||_||"#6ACB97"};font-size:${a.unref(i)};display: inline-block;${a.unref(l)}">
|
|
113
113
|
<div class="percentage-img-box">
|
|
114
|
-
<img style="width: ${a.unref(i)};filter: ${`drop-shadow(${
|
|
114
|
+
<img style="width: ${a.unref(i)};filter: ${`drop-shadow(${L||_||"#6ACB97"} ${a.unref(i)} 0px)`};" src="${ti}"/>
|
|
115
115
|
</div>
|
|
116
|
-
<span style="color: ${
|
|
117
|
-
</span>`)}else e.format==="percent"?(F=+F,isNaN(F)||(F=(F*100).toFixed(2),E=E.replace(A,`<span style="color:${f(F)||e.variableColor};font-size:${a.unref(i)}">${F}%</span>`))):e.format==="money"?(F=+F,isNaN(F)||(F=so(F),E=E.replace(A,`<span style="color:${f(F)||e.variableColor};font-size:${a.unref(i)}">${F}</span>`))):D==="thousands"?(F=+F,isNaN(F)||(F=Zs(F),E=E.replace(A,`<span style="color:${f(F)||e.variableColor};font-size:${a.unref(i)}">${F}</span>`))):E=E.replace(A,`<span style="color:${f(F)||e.variableColor};font-size:${a.unref(i)}">${F}</span>`)}}if(w||(w=`<span style="color: ${f(E)}">${E}</span>`),e.unitShow&&e.unitText){const{unitTop:L,unitLeft:A}=e;let O="position:relative;";L&&(O+=`top:${L};`),A&&(O+=`margin-left:${A};`),w+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${O}'>${e.unitText}</span>`}return w});function f(C){let v="",T=!1;const{targetValue:E,targetShow:_,notExpectColor:w}=e;if(_){switch(e.targetRule){case"equal":C!==E&&(T=!0);break;case"greater":C<=E&&(T=!0);break;case"greater_equal":C<E&&(T=!0);break;case"less":C>=E&&(T=!0);break;case"less_equal":C>E&&(T=!0);break}T&&(v=w)}return v}const{pageMode:c}=a.inject(Ie,{pageMode:"normal"}),d=Oe(e),x=a.ref(!1),u=async()=>{var C;try{x.value=!0;const v=await d();r.value=((C=v==null?void 0:v.data)==null?void 0:C.data)||{}}catch(v){console.error(v)}finally{x.value=!1}},h=(C={})=>{r.value=C},g=Xe(e),m=async()=>{var C;try{x.value=!0;const v=await g(),{data:T}=(v==null?void 0:v.data)||{};if(T){t.value=!1;const{columns:E=[],rows:_=[]}=((C=v==null?void 0:v.data)==null?void 0:C.data)??{};let w={};if(E.length>0){const B=E.find(L=>!!L);B&&(w={value:isNaN(_[B])?0:_[B]||0})}h(w)}else t.value=!0,h({value:"NaN"})}catch(v){console.error(v)}finally{x.value=!1}},S=()=>{switch(e.dataType){case"indicator":m();break;case"request":u();break}},{setRequest:k}=a.inject(_e,{setRequest:({id:C,sortNum:v,requestFn:T})=>{}});typeof k=="function"&&k({id:e.id,requestFn:S,sortNum:e.requestSort}),Te(e,{refreshData:S}),n({refreshData:S});const y=ve(e),p=y("click",()=>{if(!e.linkPage&&!e.href)return;const C=e.linkPage||"",v=Zr(a.unref(c),C),T=e.href;let E=T||v;E=Se(E);const _=e.target;_&&(_!=="event"?window.open(E,"_"+_):window.parent.postMessage({type:"openPage",url:T},"*"))}),b=y("valueChange",()=>{});return a.watch(()=>l.value,(C,v)=>{C!==v&&b()}),{style:o,myText:l,loading:x,click:p,textIndent:s,vFontSize:i}}}),ei=()=>{a.useCssVars(e=>({e4e366f8:e.vFontSize,"6749620a":e.textIndent,"3ce8b8d3":e.percentageSide}))},ti=go.setup;go.setup=ti?(e,n)=>(ei(),ti(e,n)):ei;const zd="",oc=["innerHTML"];function ac(e,n,t,o,r,i){const s=a.resolveComponent("skeleton");return e.loading?(a.openBlock(),a.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:a.normalizeStyle(e.style)},[a.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"ecan-text",style:a.normalizeStyle(e.style),innerHTML:e.myText,onClick:n[0]||(n[0]=(...l)=>e.click&&e.click(...l))},null,12,oc))}const ni=fe(ce(go,[["render",ac],["__scopeId","data-v-87f2badf"]])),rc=a.defineComponent({name:"EcanScrollText",setup(){return{text:a.ref("基础文本")}}}),Fd="",ic={class:"red"};function lc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",ic,a.toDisplayString(e.text),1)}const oi=fe(ce(rc,[["render",lc],["__scopeId","data-v-4dd9c03e"]])),mo={...me,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"}},xo=de(mo),ai=["timeChange"],sc=a.defineComponent({name:"EcanTimeDisplay",props:{...xo},setup(e){const n=ue(e),t=()=>{const{format:c,operate:d}=e;let x=Ae();if(d){const{type:u,value:h,mode:g}=d;switch(u){case"add":x=x.add(h,g);break;case"minus":x=x.subtract(h,g)}}return x.format(c)},o=a.ref();a.watch(()=>[e.operate,e.format],()=>{o.value=t()},{immediate:!0,deep:!0}),a.watch(()=>e.updateInterval,()=>{f()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=ve(e)("timeChange",()=>{}),f=()=>{r&&i();let c=1e3;const{value:d,mode:x}=e.updateInterval||{};d&&(c=c*d);const u={second:1,minute:60,hour:60*60,day:24*60*60};x&&(c=c*u[x]),r=setInterval(()=>{o.value=t(),l()},c)};return Te(e,{timeChange:l}),a.onMounted(()=>{f()}),a.onUnmounted(()=>{i()}),{style:n,time:o}}}),Hd="";function cc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:"time-display",style:a.normalizeStyle(e.style)},a.toDisplayString(e.time),5)}const ri=fe(ce(sc,[["render",cc],["__scopeId","data-v-b628fca2"]])),yo={...me,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},po=de(yo),ii=["refreshData","click"],fc=a.defineComponent({name:"EcanList",components:{Skeleton:jt},props:{...po},setup(e){const n=a.ref(e.data),t=ue(e,["backgroundColor"]),o=a.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),r=(h,g)=>g==null||g===""?h:{money:so,percentage:en,contrast:en}[g](h)||"",i=(h,g)=>{const m=parseFloat(h+"");if(g!=="contrast")return"";switch(!0){case m>=0:return"goUp";case m<0:return"goDown"}},s=Oe(e),l=a.ref(!1),f=async()=>{var h;if(e.dataType==="request")try{l.value=!0;const g=await s();n.value=((h=g==null?void 0:g.data)==null?void 0:h.data.rows)||[]}catch(g){console.error(g)}finally{l.value=!1}},c=()=>{f()},x=ve(e)("click",()=>{});Te(e,{refreshData:c});const{setRequest:u}=a.inject(_e,{setRequest:({id:h,sortNum:g,requestFn:m})=>{}});return u({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:t,formatFn:r,columnStyle:o,contrastClass:i,dataSource:n,loading:l,click:x}}}),Vd="",jd="",dc=e=>(a.pushScopeId("data-v-7aa27677"),e=e(),a.popScopeId(),e),uc={key:0,class:"title"},hc={key:0,class:"ranking"},gc={key:1,class:"ecan-list-content"},mc={key:0,class:"ranking"},xc=dc(()=>a.createElementVNode("div",{class:"icon"},null,-1)),yc={class:"sort"},pc={key:2,class:"empty"};function bc(e,n,t,o,r,i){const s=a.resolveComponent("skeleton");return a.openBlock(),a.createElementBlock("div",{class:"ecan-list",style:a.normalizeStyle(e.style)},[a.createVNode(s,{loading:e.loading},{default:a.withCtx(()=>[e.useTitle?(a.openBlock(),a.createElementBlock("div",uc,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columnCount,l=>(a.openBlock(),a.createElementBlock("div",{class:"title-inner",style:a.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:l%e.columnCount!==0?e.itemColSpan:""}),key:l},[e.useRanking?(a.openBlock(),a.createElementBlock("div",hc)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columns,(f,c)=>(a.openBlock(),a.createElementBlock("div",{class:"column",key:f.key||c,style:a.normalizeStyle({color:f.titleColor,...e.columnStyle})},a.toDisplayString(f.title),5))),128))],4))),128))])):a.createCommentVNode("",!0),e.dataSource.length>0?(a.openBlock(),a.createElementBlock("div",gc,[e.useTitle?(a.openBlock(),a.createElementBlock("div",{key:0,class:"title-placeholder",style:a.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.dataSource.slice(0,e.sliceCount),(l,f)=>(a.openBlock(),a.createElementBlock("div",{class:"item",style:a.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(f+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan}),key:l.id||f,onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[e.useRanking?(a.openBlock(),a.createElementBlock("div",mc,[xc,a.createElementVNode("div",yc," Top "+a.toDisplayString(f+1),1)])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columns,c=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["column",e.contrastClass(l[c.key],c.format)]),key:c.key,style:a.normalizeStyle({fontSize:c.fontSize,color:e.contrastClass(l[c.key],c.format)===""?c.color:"",fontWeight:c.fontWeight,...e.columnStyle})},a.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(l[c.key],c.format)),7))),128))],4))),128))])):(a.openBlock(),a.createElementBlock("div",pc," 暂无数据 "))]),_:1},8,["loading"])],4)}const li=fe(ce(fc,[["render",bc],["__scopeId","data-v-7aa27677"]])),bo={...me,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},vo=de(bo),si=["refreshData","click"],vc=a.defineComponent({name:"EcanProportion",components:{AProgress:ae.Progress,Skeleton:jt},props:{...vo},setup(e,{expose:n}){const t=a.ref(!1),{pageMode:o}=a.inject(Ie,{pageMode:"normal"}),r=ue(e),i=a.computed(()=>{const b=e.width;return parseFloat(b)}),s=a.ref({});a.watch(()=>e.data,()=>{(e.dataType==="static"||a.unref(o)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=a.computed(()=>{const b=a.unref(s),C=+e.variableDefaultValue;if(b==null)return isNaN(C)?0:C;const v=e.text.match(/\{.+\}/g)||[];let T;const E=new Set(Object.keys(b));for(let _=0;_<v.length;_++){const w=v[_],B=w.slice(1,w.length-1);if(E.has(B)){T=b[B];break}}return typeof T=="number"?T=T*100:typeof T=="string"&&!isNaN(+T)?T=+T*100:isNaN(C)?T=0:T=C*100,e.decimalFormat&&(T=+T.toFixed(2)),T}),f=a.computed(()=>{var E;let b=e.text;if(b==="")return a.unref(l);const C=e.variableDefaultValue,v=a.unref(s),T=b.match(/\{.+\}/g)||[];for(let _=0;_<T.length;_++){const w=T[_];let B=w.slice(1,w.length-1);const L=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,A=w.match(L);for(let H=0;H<(A==null?void 0:A.length);H++){const R=(E=A[H])==null?void 0:E.trim();v[R]!=null&&(B=B.replace(R,v[R]))}let O=B;try{/\(.*\)/g.test(B)&&(O=tn(B))}catch(H){console.error(H)}typeof+O=="number"&&!isNaN(+O)?(O=+O*100,e.decimalFormat&&(O=O.toFixed(2))):O=C,b=b.replace(w,O+"")}return a.unref(t)?"NaN":b}),c=Oe(e),d=a.ref(!1),x=async()=>{var b;if(e.dataType==="request")try{d.value=!0;const C=await c();s.value=((b=C==null?void 0:C.data)==null?void 0:b.data)||{}}catch(C){console.error(C)}finally{d.value=!1}},u=(b={})=>{s.value=b},h=Xe(e),g=async()=>{var b;try{d.value=!0;const C=await h(),{data:v}=(C==null?void 0:C.data)||{};if(v){t.value=!1;const{columns:T=[],rows:E=[]}=((b=C==null?void 0:C.data)==null?void 0:b.data)??{};let _={};if(T.length>0){const w=T.find(B=>!!B);w&&(_={percent:E[w]})}u(_)}else t.value=!0,u({percent:"NaN"})}catch(C){console.error(C)}finally{d.value=!1}},m=()=>{switch(e.dataType){case"indicator":g();break;case"request":x();break}};Te(e,{refreshData:m}),n({refreshData:m});const k=ve(e)("click",()=>{}),{setRequest:y}=a.inject(_e,{setRequest:({id:b,sortNum:C,requestFn:v})=>{}});typeof y=="function"&&y({id:e.id,requestFn:m,sortNum:e.requestSort});const p=a.computed(()=>{const{gradientShow:b,gradientColor:C,gradientOffset:v,strokeColor:T}=e;let E=T;return b&&C&&(E={"0%":T,[`${v*100}%`]:C}),E});return{style:r,myWidth:i,text:f,myValue:l,loading:d,click:k,customStrokeColor:p}}}),Wd="";function Sc(e,n,t,o,r,i){const s=a.resolveComponent("skeleton"),l=a.resolveComponent("a-progress");return a.openBlock(),a.createElementBlock("div",{class:"ecan-proportion",style:a.normalizeStyle(e.style)},[a.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:a.withCtx(()=>[e.loading?(a.openBlock(),a.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(a.openBlock(),a.createElementBlock("div",{key:1,class:"format",style:a.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},a.toDisplayString(e.text),5)):a.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const ci=fe(ce(vc,[["render",Sc],["__scopeId","data-v-cf942b5f"]])),So={...me,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},wo=de(So),fi=["inputChange","inputBlur"],wc=a.defineComponent({name:"EcanInput",components:{AInput:ae.Input},props:{...wo},setup(e){const n=ue(e),t=a.ref("");a.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:o,setGlobalModel:r}=a.inject(we,{getGlobalModel:c=>{},setGlobalModel:(c,d)=>{}});r(e.id,{type:e.type,value:t});const i=()=>{const c=o(e.id);r(e.id,{...c,RECORD:t})},s=ve(e),l=Ge.debounce(s("inputChange",()=>{i()}),300),f=s("inputBlur",()=>{});return{style:n,myValue:t,inputBlur:f,inputChange:l}}}),$d="";function Cc(e,n,t,o,r,i){const s=a.resolveComponent("a-input");return a.openBlock(),a.createElementBlock("div",{class:"ecan-input",style:a.normalizeStyle(e.style)},[a.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:a.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const di=fe(ce(wc,[["render",Cc]])),Co={...me,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"},Ao=de(Co),ui=["dateChange"],ko=a.defineComponent({name:"EcanDatePicker",props:{...Ao},components:{ADatePicker:ae.DatePicker},setup(e){const n=a.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=ue(e),o=()=>document.getElementById("ProviderConfig")||document.body,r=a.ref(null);a.watch(()=>[e.value,e.useCurrentTime,e.operate],([u,h,g])=>{let m=null;if(u?m=Ae(Se(u)):h&&(m=Ae()),g&&m){const{type:S,value:k,mode:y}=g;switch(S){case"add":m=m.add(k,y);break;case"minus":m=m.subtract(k,y)}}r.value=m},{deep:!0,immediate:!0});const{setGlobalModel:i}=a.inject(we,{setGlobalModel:(u,h)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=ve(e)("dateChange",()=>{}),f=()=>{a.unref(r)&&l()};Te(e,{dateChange:l});const c=a.ref({}),d=a.ref({}),x=u=>{u?setTimeout(()=>{d.value=a.unref(c)},300):d.value={}};return a.onMounted(()=>{setTimeout(()=>{const u=document.querySelector(`#ecan-date-picker-${e.id}`);if(u){const h=u.getBoundingClientRect(),g=parseFloat(a.unref(n).widthScale)*280;document.body.clientWidth-h.left<g&&(c.value.marginLeft=-1*(g-h.width)+"px")}},0)}),{style:t,getPopupContainer:o,myValue:r,locale:ma,change:f,scaleValue:n,popupStyle:c,customStyle:d,openChange:x}}}),hi=()=>{a.useCssVars(e=>({"09dfdb0c":e.optionFontSize}))},gi=ko.setup;ko.setup=gi?(e,n)=>(hi(),gi(e,n)):hi;const Yd="",Kd="",Ac=["id"];function kc(e,n,t,o,r,i){const s=a.resolveComponent("a-date-picker");return a.openBlock(),a.createElementBlock("div",{class:"ecan-date-picker",style:a.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[a.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[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,Ac)}const mi=fe(ce(ko,[["render",kc],["__scopeId","data-v-67056087"]])),To={...me,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},Eo=de(To),xi=["dateChange"];var yi={exports:{}};(function(e,n){(function(t,o){e.exports=o()})(re,function(){var t="month",o="quarter";return function(r,i){var s=i.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,d){return c=Number(c),this.$utils().p(d)===o?this.add(3*c,t):l.bind(this)(c,d)};var f=s.startOf;s.startOf=function(c,d){var x=this.$utils(),u=!!x.u(d)||d;if(x.p(c)===o){var h=this.quarter()-1;return u?this.month(3*h).startOf(t).startOf("day"):this.month(3*h+2).endOf(t).endOf("day")}return f.bind(this)(c,d)}}})})(yi);var Tc=yi.exports;const Ec=Ga(Tc);Ae.extend(Ec);const Bo=a.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ae.RangePicker},props:{...Eo},setup(e){const n=ue(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=a.ref([null,null]);a.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([p,b,C,v,T,E])=>{let _=null,w=null;if(C&&(_=Ae().subtract(v,T),w=Ae()),p&&(_=Ae(Se(p))),b&&(w=Ae(Se(b))),E){const{type:B,value:L,mode:A}=E;switch(B){case"add":_=_&&_.add(L,A),w=w&&w.add(L,A);break;case"minus":_=_&&_.subtract(L,A),w=w&&w.subtract(L,A)}}o.value=[_,w]},{immediate:!0});let r=a.unref(o)[0],i=a.unref(o)[1],s="";const l=(p,b,C)=>{Array.isArray(p)?(r=p[0],i=p[1],s=C.range):(r=null,i=null)},f=p=>{let b=!1,{limitStartTime:C,limitEndTime:v}=e;const T={startTime:`${r||""}`,endTime:`${i||""}`};if(C=Se(C,{codeData:T}),v=Se(v,{codeData:T}),C&&v?b=!(Ae(C)<p&&p<Ae(v)):C?b=Ae(C)>p:v&&(b=Ae(v)<p),!e.isAllowSpanYear&&s){let E=null;if(s==="start"?E=r:s==="end"&&(E=i),E){const _=E.startOf("year"),w=E.endOf("year");b=!(_<=p&&p<w)}}return b},{getGlobalModel:c,setGlobalModel:d}=a.inject(we,{getGlobalModel:p=>{},setGlobalModel:(p,b)=>{}}),x=a.computed(()=>Array.isArray(a.unref(o))?a.unref(o)[0]:null),u=a.computed(()=>Array.isArray(a.unref(o))?a.unref(o)[1]:null);d(e.id,{type:e.type,format:e.format,startTime:x,endTime:u});const h=ve(e);let g=!1;const m=h("dateChange",()=>{}),S=p=>{const b=a.unref(o),C=b&&b[0]&&b[1];p===!1&&g===!0&&C&&(m(),g=!1),p||(s="")},k=()=>{g=!0};return Te(e,{dateChange:()=>{const{associated:p}=e;if(p){const b=c(p)||{};if(b){const{value:C}=b;if(C)switch(a.unref(C)){case"month":o.value=[Ae().startOf("month"),Ae().endOf("month")];break;case"quarter":o.value=[Ae().startOf("quarter"),Ae().endOf("quarter")];break;case"year":o.value=[Ae().startOf("year"),Ae().endOf("year")];break}}}m()}}),{style:n,getPopupContainer:t,locale:ma,dateChange:m,myValue:o,disabledDate:f,calendarChange:l,openChange:S,change:k}}}),pi=()=>{a.useCssVars(e=>({"454f10ac":e.optionFontSize}))},bi=Bo.setup;Bo.setup=bi?(e,n)=>(pi(),bi(e,n)):pi;const Qd="",Jd="";function Bc(e,n,t,o,r,i){const s=a.resolveComponent("a-range-picker");return a.openBlock(),a.createElementBlock("div",{class:"ecan-range-picker",style:a.normalizeStyle(e.style)},[a.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[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 vi=fe(ce(Bo,[["render",Bc],["__scopeId","data-v-ca49f365"]])),_o={...me,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"},Do=de(_o),Si=["click"],_c=a.defineComponent({name:"EcanButton",components:{AButton:ae.Button},props:{...Do},setup(e){const n=ue(e),o=ve(e)("click",()=>{const f=a.unref(s);f&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:f},"*")}),r=a.computed(()=>{const f={};return e.mode!=="primary"&&(f.backgroundColor=e.buttonBackgroundColor||"transparent",f.color=e.tooltipTextStyleColor,f.borderColor=e.borderColor||"transparent"),{height:e.height,...f}}),i=a.computed(()=>Se(e.text)),s=a.computed(()=>Se(e.href)||null),l=a.computed(()=>{const f=e.target;if(!(f==="event"||a.unref(s)==null))return{self:"_self",blank:"_blank"}[f]});return{style:n,click:o,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),t1="";function Dc(e,n,t,o,r,i){const s=a.resolveComponent("a-button");return a.openBlock(),a.createElementBlock("div",{class:"ecan-button",style:a.normalizeStyle(e.style)},[a.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:a.normalizeStyle(e.buttonStyle),class:a.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:a.withCtx(()=>[a.createElementVNode("span",{style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const wi=fe(ce(_c,[["render",Dc]])),Ro={...me,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:{}},Io=de(Ro),Ci=["checkboxChange"],Rc=a.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ae.CheckboxGroup},props:{...Io},setup(e,{expose:n}){const t=ue(e),o=a.ref([]),r=a.ref([]),i=S=>{const k=e.value;let y=[];S.forEach(p=>{p.checked&&y.push(p.value)}),typeof k=="string"&&k!==""?y=y.concat(k.split(",")):Array.isArray(k)&&(y=y.concat(k)),o.value=S,r.value=y};a.watch(()=>[e.data,e.value],([S])=>{i(S)},{immediate:!0,deep:!0});const s=Oe(e),l=async()=>{var y,p;if(e.dataType!=="request")return;const S=await s(),k=((p=(y=S==null?void 0:S.data)==null?void 0:y.data)==null?void 0:p.rows)||[];i(k)},{getGlobalModel:f,setGlobalModel:c}=a.inject(we,{getGlobalModel:S=>{},setGlobalModel:(S,k)=>{}});c(e.id,{type:e.type,value:r});const x=ve(e)("checkboxChange",()=>{const S=f(e.id);c(e.id,{...S,RECORD:r})}),u=Xe(e),h=async()=>{var S;try{const k=await u(),{data:y}=(k==null?void 0:k.data)||{};if(y){const b=(((S=k==null?void 0:k.data)==null?void 0:S.data)??[]).map(C=>({label:C.label,value:C.value}));i(b)}else i([])}catch(k){console.error(k)}},g=()=>{switch(e.dataType){case"indicator":h();break;case"request":l();break}},{setRequest:m}=a.inject(_e,{setRequest:({id:S,sortNum:k,requestFn:y})=>{}});return typeof m=="function"&&m({id:e.id,requestFn:g,sortNum:e.requestSort}),n({refreshData:g}),{myOption:o,style:t,myValue:r,checkboxChange:x}}}),o1="";function Ic(e,n,t,o,r,i){const s=a.resolveComponent("a-checkbox-group");return a.openBlock(),a.createElementBlock("div",{class:"ecan-checkbox",style:a.normalizeStyle(e.style)},[a.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Ai=fe(ce(Rc,[["render",Ic]])),Oo={...me,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"},Lo=de(Oo),ki=["selectChange","refreshData"],Oc=a.defineComponent({name:"EcanSelect",components:{ASelect:ae.Select,ASelectOption:ae.SelectOption},props:{...Lo},setup(e,{expose:n}){const t=ue(e),o=()=>document.getElementById("ProviderConfig")||document.body,r=Oe(e),i=a.ref(e.data||[]),s=a.ref(),l=a.computed({get:()=>{var O;const{mode:A}=e;return(O=a.unref(i))!=null&&O.length?s.value:A==="multiple"||A==="tags"||A==="combobox"?[]:""},set:A=>{s.value=A}});a.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:A,selectFirstOption:O,value:H}=e;A==="multiple"||A==="tags"||A==="combobox"?H?s.value=H.split(","):O&&(s.value=[a.unref(i)[0]]):H?s.value=H:O&&(s.value=a.unref(i)[0])},{immediate:!0});const f=e.dataFieldNames,c=(A,O)=>{const H=f.label,R=f.value;let F;const D=O[H],z=O[R];return D!=null?F=D:z!=null&&(F=z),(F==null?void 0:F.toLowerCase().indexOf(A==null?void 0:A.toLowerCase()))>=0},d=A=>{const{label:O,value:H,options:R}=e.dataFieldNames;if(R&&Array.isArray(A))if(A.some(F=>R in F)){const F={},D=[];A.forEach(z=>{F[z[R]]||(F[z[R]]=[]),F[z[R]].push({[O]:z[O],[H]:z[H]})});for(const z in F)D.push({[O]:z,[R]:F[z]});return D}else return A;else if(!R)return A},x=a.ref(!1),u=async()=>{var A,O;if(e.dataType==="request"){x.value=!0;try{const H=await r();if(i.value=d(((O=(A=H==null?void 0:H.data)==null?void 0:A.data)==null?void 0:O.rows)||[]),e.selectFirstOption){let R=a.unref(i)[0];if(f.options){const F=R[f.options];F&&F.length&&(R=F[0])}s.value=R[f.value]}}catch(H){console.error(H)}finally{x.value=!1}}},{getGlobalModel:h,setGlobalModel:g}=a.inject(we,{getGlobalModel:A=>{},setGlobalModel:(A,O)=>{}}),{setLoadedData:m,loadedData:S}=a.inject(Ha,{setLoadedData:(A,O)=>{},loadedData:{}}),k=a.computed(()=>{let A=s.value;if(e.valueType==="label"&&a.unref(s)&&a.unref(i)){const O=f.label,H=f.value;if(e.mode==="multiple")A=a.unref(i).filter(R=>a.unref(s).includes(R[H])).map(R=>R[O]);else{const R=a.unref(i).find(F=>a.unref(s)===F[H]);R&&(A=R[O])}}return A}),y=a.ref([]),p=a.computed(()=>{const A={};if(e.mode!=="multiple"){const O=a.unref(y).find(H=>H.value===a.unref(s));O&&(A.itemCodes=O.item_codes)}return A});g(e.id,{type:e.type,value:k,...a.unref(p)});const C=ve(e)("selectChange",()=>{const A=e.id,O=h(A);g(A,{...O,...a.unref(p),RECORD:k})}),v=(A=[])=>{if(i.value=d(A),e.selectFirstOption){let O=a.unref(i)[0];if(f.options){const H=O[f.options];H&&H.length&&(O=H[0])}s.value=O[f.value]}},T=Xe(e),E=async()=>{var A;try{x.value=!0;const O=await T(),{data:H}=(O==null?void 0:O.data)||{},R=f.label,F=f.value;if(H){const D=((A=O==null?void 0:O.data)==null?void 0:A.data)??[];y.value=D;const z=D.map(P=>({[R]:P.label,[F]:P.value})),{id:q}=e,N=h(q);g(q,{...N,...a.unref(p)}),m(q,!0),v(z)}else v([])}catch(O){console.error(O)}finally{x.value=!1}},_=a.computed(()=>{var A,O;return(O=(A=e==null?void 0:e.graphicConfig)==null?void 0:A.controlList)==null?void 0:O.find(H=>H.mode==="cascade")}),w=a.ref(!1);a.watch(S,A=>{!a.unref(w)&&a.unref(_)&&A[a.unref(_).id]&&(w.value=!0,B())},{deep:!0});const B=()=>{switch(e.dataType){case"indicator":{a.unref(_)?a.unref(S)[a.unref(_).id]&&E():E();break}case"request":u();break}};Te(e,{selectChange:C,refreshData:B});const{setRequest:L}=a.inject(_e,{setRequest:({id:A,sortNum:O,requestFn:H})=>{}});return typeof L=="function"&&L({id:e.id,requestFn:B,sortNum:e.requestSort}),n({refreshData:B}),{style:t,getPopupContainer:o,myValue:s,selectChange:C,options:i,filterOption:c,loading:x,resultValue:l}}}),r1="",i1="";function Lc(e,n,t,o,r,i){const s=a.resolveComponent("a-select-option"),l=a.resolveComponent("a-select");return a.openBlock(),a.createElementBlock("div",{class:"ecan-select",style:a.normalizeStyle(e.style)},[a.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":n[0]||(n[0]=f=>e.resultValue=f),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:a.normalizeStyle({fontSize:e.optionFontSize})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.options,(f,c)=>(a.openBlock(),a.createBlock(s,{key:c,value:f.value,label:f.label,style:a.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 Ti=fe(ce(Oc,[["render",Lc],["__scopeId","data-v-e59f5cca"]])),No={...me,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},zo=de(No),Ei=["selectChange","refreshData"],Nc={name:"EcanTreeSelect",components:{ATreeSelect:ae.TreeSelect},props:{...zo},setup(e){const n=ue(e),t=a.ref(e.data),o=(h,g)=>{const m=e.dataFieldNames,S=m.label,k=m.value;let y;const p=g[S],b=g[k];return p!=null?y=p:b!=null&&(y=b),(y==null?void 0:y.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},r=a.ref();a.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:g,selectFirstOption:m}=e;h?g?r.value=g.split(","):m&&(r.value=[a.unref(t)[0]]):g?r.value=g:m&&(r.value=a.unref(t)[0])},{immediate:!0});const i=a.ref(!1),s=Oe(e),l=async()=>{var h,g;if(e.dataType==="request"){i.value=!0;try{const m=await s();t.value=((g=(h=m==null?void 0:m.data)==null?void 0:h.data)==null?void 0:g.rows)||[];const S=a.unref(t)[0];e.value===""&&S!=null&&(r.value=S[e.dataFieldNames.value])}catch(m){console.error(m)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=a.inject(we,{getGlobalModel:h=>{},setGlobalModel:(h,g)=>{}});c(e.id,{type:e.type,value:r});const x=ve(e)("selectChange",()=>{const h=e.id,g=f(h);c(h,{...g,RECORD:r})});Te(e,{selectChange:x,refreshData:l});const{setRequest:u}=a.inject(_e,{setRequest:({id:h,sortNum:g,requestFn:m})=>{}});return u({id:e.id,requestFn:l,sortNum:e.reque}),{style:n,treeData:t,filterTreeNode:o,myValue:r,loading:i,selectChange:x}}},s1="",c1="";function zc(e,n,t,o,r,i){const s=a.resolveComponent("a-tree-select");return a.openBlock(),a.createElementBlock("div",{class:"ecan-tree-select",style:a.normalizeStyle(o.style)},[a.createVNode(s,{class:"tree-select",value:o.myValue,"onUpdate:value":n[0]||(n[0]=l=>o.myValue=l),allowClear:"",showSearch:"",loading:o.loading,fieldNames:e.dataFieldNames,treeData:o.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:o.filterTreeNode,placeholder:e.placeholder,onChange:o.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const Bi=fe(ce(Nc,[["render",zc],["__scopeId","data-v-37236421"]])),Mo={...me,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",graphicConfig:{}},Fo=de(Mo),_i=["checkboxChange","click"],Mc=a.defineComponent({name:"EcanRadio",components:{ARadioGroup:ae.RadioGroup,ARadioButton:ae.RadioButton,ARadio:ae.Radio},props:{...Fo},setup(e,{expose:n}){const t=ue(e),o=a.ref([]),r=a.ref(""),i=k=>{const y=e.value;let p=[];k.forEach(b=>{b.checked&&p.push(b.value)}),typeof y=="string"&&y!==""?p=p.concat(y.split(",")):Array.isArray(y)&&(p=p.concat(y)),o.value=k,r.value=p[0]||""};a.watch(()=>[e.data,e.value],([k])=>{i(k)},{immediate:!0,deep:!0});const s=Oe(e),l=async()=>{var p,b;if(e.dataType!=="request")return;const k=await s(),y=((b=(p=k==null?void 0:k.data)==null?void 0:p.data)==null?void 0:b.rows)||[];i(y)},{getGlobalModel:f,setGlobalModel:c}=a.inject(we,{getGlobalModel:k=>{},setGlobalModel:(k,y)=>{}});c(e.id,{type:e.type,value:r});const d=ve(e),x=d("checkboxChange",()=>{const k=f(e.id);c(e.id,{...k,RECORD:r})}),u=k=>{r.value=k,d("click",()=>{const y=f(e.id);c(e.id,{...y,RECORD:r})})()};a.watch(r,()=>{x()});const h=Xe(e),g=async()=>{var k;try{const y=await h(),{data:p}=(y==null?void 0:y.data)||{};if(p){const C=(((k=y==null?void 0:y.data)==null?void 0:k.data)??[]).map(v=>({label:v.label,value:v.value}));i(C)}else i([])}catch(y){console.error(y)}},m=()=>{switch(e.dataType){case"indicator":g();break;case"request":l();break}},{setRequest:S}=a.inject(_e,{setRequest:({id:k,sortNum:y,requestFn:p})=>{}});return typeof S=="function"&&S({id:e.id,requestFn:m,sortNum:e.requestSort}),n({refreshData:m}),{myOption:o,style:t,myValue:r,onClickButton:u}}}),d1="";function Fc(e,n,t,o,r,i){const s=a.resolveComponent("a-radio"),l=a.resolveComponent("a-radio-button"),f=a.resolveComponent("a-radio-group");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ecan-radio",e.optionType]),style:a.normalizeStyle(e.style)},[a.createVNode(f,{value:e.myValue,"onUpdate:value":n[0]||(n[0]=c=>e.myValue=c)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.myOption,c=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:c.value},[e.optionType==="default"?(a.openBlock(),a.createBlock(s,{key:0,checked:c.checked,value:c.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c.label),1)]),_:2},1032,["checked","value"])):e.optionType==="button"?(a.openBlock(),a.createBlock(l,{key:1,checked:c.checked,value:c.value,onClick:d=>e.onClickButton(c.value)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c.label),1)]),_:2},1032,["checked","value","onClick"])):a.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"])],6)}const Di=fe(ce(Mc,[["render",Fc]])),Po={...me,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",graphicType:"ecanPie"},Ho=de(Po),Ri=["click","refreshData","resetRecord"],Dt=async e=>{var f;const n=await Qe.post(e,{},{responseType:"blob"}),{data:t,headers:o}=n,r=o["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),s=document.createElement("a"),l=window.URL.createObjectURL(i);s.href=l,s.download=decodeURI(r),s.style.display="none",document.body.appendChild(s),s.click(),(f=s.parentNode)==null||f.removeChild(s),window.URL.revokeObjectURL(l)},qo={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"},Vo=de(qo),Ii=["showModal"];function Oi(e){var o,r;const{componentList:n,containerMap:t}=e;if((o=Object.keys(t))!=null&&o.length){for(const i in t){const s=n.find(l=>l.id===i);if(s&&($r(s,"parentId")||(s.parentId="",s.sourceLeft=s.left,s.sourceTop=s.top),(r=t[i][0])!=null&&r.length))for(const l of t[i][0]){const f=n.find(c=>c.id===l);f&&(f.parentId=i,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(s.sourceLeft||s.left)+"px",f.top=parseFloat(f.top)-parseFloat(s.sourceTop||s.top)+"px")}}for(const i of n){const s=document.body.clientWidth;if(i.parentId===""&&i.type==="ecanBorder")i.sourceWidth=parseFloat(i.width),i.height=(s/(i.sourceWidth/parseFloat(i.height))).toFixed(2)+"px",i.width="100%",i.position="relative",i.top="auto",i.left="auto";else{const l=n.find(f=>f.id===i.parentId);if((l==null?void 0:l.parentId)===""){const f=l.sourceWidth||parseFloat(l.width),c=s/f;i.scale=c,i.top=parseFloat(i.top)*c-parseFloat(i.height)*(1-c)/2+"px",i.left=parseFloat(i.left)*c-parseFloat(i.width)*(1-c)/2+"px"}}i.type==="ecanModal"&&(i.parentId="",i.fullModal=!0)}return Pc(n)}return n}function Pc(e){const t=e.filter(o=>o.parentId==="");if(t!=null&&t.length){const o=Ge.cloneDeep(t).map(r=>({...r,sourceTop:parseFloat(r.sourceTop),sourceLeft:parseFloat(r.sourceLeft)}));for(let r=0;r<o.length-1;r++)for(let i=0;i<o.length-r-1;i++){let s=!1;if((o[i].sourceTop-o[i+1].sourceTop>50||Math.abs(o[i+1].sourceTop-o[i].sourceTop)<=50&&o[i].sourceLeft>o[i+1].sourceLeft)&&(s=!0),s){const l=o[i];o[i]=o[i+1],o[i+1]=l}}for(const r of o){const i=e.findIndex(s=>s.id===r.id);i!==-1&&e.splice(i,1)}return[...o,...e]}return e}const Hc=a.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:n}){n("ready",e.component.id)}});function qc(e,n,t,o,r,i){return e.component.parentId?(a.openBlock(),a.createBlock(a.Teleport,{key:0,to:"#container_"+e.component.parentId},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.component.type),a.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.component.type),a.normalizeProps(a.mergeProps({key:1},e.component)),null,16))}const Vc=fe(ce(Hc,[["render",qc]])),jc=a.defineComponent({name:"EcanModal",components:{AModal:ae.Modal,CloseOutlined:Dl,Render:Vc},props:{...Vo},setup(e,{emit:n}){const t=a.ref([]),o=a.inject("isMobile",!1),r=a.inject("getContainerMap",()=>{}),{clearInteractiveData:i,interactiveData:s}=a.inject(we,{clearInteractiveData:()=>{},interactiveData:null}),l=()=>document.getElementById("ProviderConfig")||document.body,f=a.computed(()=>{const j=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[j]}}),c=e.fullModal?"1920px":e.width,d=e.fullModal?"1080px":e.height,x=e.originalWidth,u=e.originalHeight,h=a.ref("80%"),g=a.ref(0),m=a.ref(),S=a.ref(0),k=a.ref({}),y=ue(e),p=a.ref({}),b=a.ref(!1),C=a.ref();let v;const T=()=>{m.value=parseFloat(c)/parseFloat(x);const j=parseFloat(d)/parseFloat(u),J=document.body.offsetWidth,oe=document.body.offsetHeight;g.value=J*a.unref(m),S.value=oe*j,h.value=`${a.unref(m)*100}%`,k.value={width:`${a.unref(g)}px`,height:`${a.unref(S)}px`},p.value={...a.unref(y),backgroundImage:mt(e.backgroundImage,!0)},o?p.value={...p.value,width:"100%",height:"100%"}:p.value={...p.value,transform:`scale(${a.unref(g)/parseFloat(c)},${a.unref(S)/parseFloat(d)})`,width:c,height:d}},E=Ge.debounce(()=>{T()},100),_=()=>{const j=window.MutationObserver;v=new j(E),v.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},w=()=>{v&&(v.disconnect(),v.takeRecords(),v=null)},B=a.ref(!1),{touchRequest:L}=a.inject(_e,{touchRequest:()=>{}}),A=a.ref(""),O=()=>{var oe;console.log("interactiveData",s);const{title:j}=e,J=(oe=a.unref(s))==null?void 0:oe.RECORD;return J?Se(j,{textData:J},{useNewline:!1,useSpace:!1}):j},H=()=>{o&&(document.documentElement.style.overflow="hidden"),A.value=O(),B.value=!0},R=()=>{n("close"),o&&(document.documentElement.style.overflow="hidden auto",t.value=[]),B.value=!1},F=()=>{R()},D=()=>{R(),i()},{setModalModel:z,pushUseModalIds:q,popUseModalIds:N}=a.inject(Pa,{pushUseModalIds:j=>{},popUseModalIds:()=>{},setModalModel:(j,J)=>{}}),P=a.computed(()=>{if(o){const j=Ge.cloneDeep(e.componentList),J=r();return Oi({componentList:j,containerMap:J})}else return e.componentList}),I=()=>{const j=e.id;let J=[];const oe=e.componentList;Array.isArray(oe)&&(J=oe.map(pe=>pe.id),z(j,[...new Set(J)]))};a.watch(()=>B.value,async j=>{j?(b.value=!1,q(e.id),I(),await a.nextTick(()=>{T(),window.addEventListener("resize",E),_(),b.value=!0}),L()):(N(),window.removeEventListener("resize",E),w())});const M=a.computed(()=>a.unref(m)>=1),Y=a.computed(()=>e.fullModal),U=a.computed(()=>{let j="ecan-modal";return a.unref(M)&&(j+=" ecan-full-width-modal"),a.unref(Y)&&(j+=" ecan-full-modal"),j});return Te(e,{showModal:H}),{modalRef:C,containStyle:k,contentStyle:p,getContainer:l,modalStyle:f,modalWith:h,isFullModal:Y,style:y,visible:B,showModal:H,onOk:F,onCancel:D,isFullWidth:M,wrapClassName:U,ready:b,usedComponentList:P,isMobile:o,readyIds:t,hasOwn:$r,onComponentReady:j=>{t.value.push(j)},formatTitle:A}}}),g1="",m1="";function Gc(e,n,t,o,r,i){const s=a.resolveComponent("close-outlined"),l=a.resolveComponent("render"),f=a.resolveComponent("a-modal");return a.openBlock(),a.createBlock(f,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:a.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"contain",ref:"containRef",style:a.normalizeStyle(e.containStyle)},[e.ready?(a.openBlock(),a.createElementBlock("div",{key:0,class:"content",style:a.normalizeStyle(e.contentStyle)},[a.createElementVNode("div",{class:"header-bar",style:a.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(a.openBlock(),a.createElementBlock("div",{key:0,class:"ant-modal-title",style:a.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},a.toDisplayString(e.formatTitle),5)):a.createCommentVNode("",!0),a.createVNode(s,{class:"close-icon",onClick:e.onCancel},null,8,["onClick"])],4),e.usedComponentList.length?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.isMobile?"mobile-wrap":"")},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.usedComponentList,(c,d)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:c.id+d},[e.isMobile?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(a.openBlock(),a.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):a.createCommentVNode("",!0)],64)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.type),a.normalizeProps(a.mergeProps({key:1},c)),null,16))],64))),128))],2)):a.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):a.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const ct=fe(ce(jc,[["render",Gc],["__scopeId","data-v-94800d97"]]));Pe.use([ut.CanvasRenderer,Je.PieChart,ge.TitleComponent,ge.ToolboxComponent,ge.TooltipComponent,ge.LegendComponent]);const Wc=a.defineComponent({name:"EcanPie",props:{...Ho},components:{Spin:pt,Echarts:ot,EcanModal:ct},setup(e,{expose:n}){const t=a.ref(!1),o=ue(e),r=a.ref([]),i=a.ref(),s=a.ref({}),l=a.computed(()=>{let{data:_=[]}=a.unref(r)[0]||{};if(Array.isArray(e.colors)){const w=e.isUseLabelColors,B=e.colors;_=_.map((L,A)=>({label:w?{color:B[A]}:{},...L}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:t.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 w;t.value=!0,(w=i.value)==null||w.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(){ae.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:w=>{const{marker:B,seriesName:L,name:A,value:O,percent:H,data:R}=w||{};return Se(e.tooltipFormatter,{textData:{marker:B,name:A,value:O,percent:H,a:L,b:A,c:O,d:H,...R}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:a.unref(s),color:e.colors,series:[{data:_,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!1,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:t.value?Ye:e.labelFontSize,position:e.labelPosition,formatter:$s(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),f=()=>{s.value={show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{color:e.legendTextStyleColor,fontSize:t.value?Ye:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:_=>{console.log("name",_);const{data:w}=r.value[0]||{};let B;if(w){const L=w.find(A=>A.name===_);L&&(B=L.value)}return Se(e.legendFormatter,{textData:{name:_,value:B}},{useNewline:!1,useSpace:!1})}}},c=()=>{t.value=!1},{getGlobalModel:d,setGlobalModel:x}=a.inject(we,{getGlobalModel:_=>{},setGlobalModel:(_,w)=>{}}),{pageMode:u}=a.inject(Ie,{pageMode:"normal"}),h=(_=[],w)=>{const{dataset:B}=bt(_,w);r.value=B},g=(_=[],w)=>{const B=bt(_,w);r.value=B.dataset};a.watch(()=>e.data,_=>{(e.dataType==="static"||a.unref(u)==="design")&&h(_)},{immediate:!0,deep:!0}),a.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize],()=>{f()},{immediate:!0});const m=a.ref(!1),S=Oe(e),k=async()=>{var _,w;if(e.dataType==="request")try{m.value=!0;const B=await S();h((w=(_=B==null?void 0:B.data)==null?void 0:_.data)==null?void 0:w.rows,e.valueTypeDataFieldNames)}catch(B){console.error(B)}finally{m.value=!1}},p=ve(e)("click",_=>{const w=d(e.id);x(e.id,{...w,RECORD:_==null?void 0:_.data})}),b=Xe(e),C=async()=>{var _;try{m.value=!0;const w=await b(),{data:B}=w.data||{};if(B){const{columns:L=[],rows:A=[]}=((_=w==null?void 0:w.data)==null?void 0:_.data)??{};let O=[];if(L.length>0){const H=L[0],R=L[1];O=A.map(F=>({name:F[H],value:isNaN(F[R])?0:F[R]||0}))}g(O)}}catch(w){console.error(w)}finally{m.value=!1}},v=()=>{switch(e.dataType){case"indicator":C();break;case"request":k();break}};Te(e,{resetRecord:()=>{const _=e.id,w=d(_);x(_,{...w,RECORD:""})},refreshData:v,click:p}),n({refreshData:v});const{setRequest:E}=a.inject(_e,{setRequest:_=>{}});return typeof E=="function"&&E({id:e.id,requestFn:v,sortNum:e.requestSort}),{option:l,style:o,click:p,onClose:c,loading:m,ecanModal:i}}}),y1="";function Uc(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Li=fe(ce(Wc,[["render",Uc]])),jo={...me,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",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"},Go=de(jo),Ni=["click","refreshData","resetRecord"];Pe.use([ut.CanvasRenderer,Je.LineChart,ge.ToolboxComponent,ge.TitleComponent,ge.LegendComponent]);const $c=a.defineComponent({name:"EcanLine",props:{...Go},components:{Spin:pt,Echarts:ot,EcanModal:ct},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=ue(e),i=a.ref([]),s=a.ref([]),l=a.ref(),f=a.computed(()=>o.value?Ye:12),c=a.ref({});let d;const x=a.ref([]),u=a.computed(()=>{const O=e.xAxisLabelFormatter,H=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var R;o.value=!0,(R=l.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(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:f.value},show:e.tooltipShow,formatter:R=>{var q;const F=R.length;let D="",z=e.tooltipFormatter;d=(q=R[0])==null?void 0:q.data,z===""&&(z="{marker} {a} {c}");for(let N=0;N<F;N++){const{marker:P,seriesName:I,name:M,value:Y,data:U}=R[N]||{};if(N===0){let Z=M;typeof M=="string"&&M[0]==="0"&&!isNaN(+M)&&(Z=(+M).toString()),D+=`${$e(O,Z)}<br/>`}D+=Se(z,{textData:{marker:P,name:M,value:Y,a:I,b:M,c:Y||0,...U}},{useNewline:!0,useSpace:!0}),D+="<br/>"}return D}},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:a.unref(s).map(R=>{let F={};return R&&typeof R=="object"?F={...R}:F={value:R},F}),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(R){return typeof R=="string"&&R[0]==="0"&&!isNaN(+R)&&(R=(+R).toString()),$e(O,R)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},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(R){return $e(H,R)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:o.value?Ye:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(x).map(R=>({name:R.name,icon:e.legendType}))},series:a.unref(i)}}),h=()=>{o.value=!1},{getGlobalModel:g,setGlobalModel:m}=a.inject(we,{getGlobalModel:O=>{},setGlobalModel:(O,H)=>{}}),{pageMode:S}=a.inject(Ie,{pageMode:"normal"}),k=(O=[],H=!1)=>{let R;if(e.dataFieldConfigType==="key"){const q=H?e.keyTypeDataFieldNames:null;R=st(O,q)}else if(e.dataFieldConfigType==="value"){const q=H?e.valueTypeDataFieldNames:null;R=bt(O,q)}s.value=R.dimensions,x.value=R.dataset;const F=R.dataset,D=[],z=F.length;for(let q=0;q<z;q++){const N={};e.shadowColor&&(N.shadowColor=e.shadowColor,N.shadowBlur=e.shadowBlur,N.shadowOffsetY=e.shadowOffsetY,N.shadowOffsetX=e.shadowOffsetX),D.push({type:"line",...F[q],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[q]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[q],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...N}})}i.value=D},y=(O=[],H,R=!1)=>{const D=st(O,R?H:null,!0);s.value=D.dimensions,x.value=D.dataset;const z=D.dataset,q=[],N=z.length;for(let P=0;P<N;P++){const I={};e.shadowColor&&(I.shadowColor=e.shadowColor,I.shadowBlur=e.shadowBlur,I.shadowOffsetY=e.shadowOffsetY,I.shadowOffsetX=e.shadowOffsetX),q.push({type:"line",...z[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,...I}})}i.value=q};a.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],([O])=>{(e.dataType==="static"||a.unref(S)==="design")&&k(O)},{immediate:!0,deep:!0});const p=a.ref(!1),b=Oe(e),C=async()=>{var O,H;if(e.dataType==="request")try{p.value=!0;const R=await b();k((H=(O=R==null?void 0:R.data)==null?void 0:O.data)==null?void 0:H.rows,!0)}catch(R){console.error(R)}finally{p.value=!1}},T=ve(e)("click",O=>{const H=g(e.id);m(e.id,{...H,RECORD:e.tooltipShow?d:O.data})}),E=O=>{t.value.chart.containPixel("grid",[O.offsetX,O.offsetY])&&T()};e.tooltipShow?c.value["zr:click"]=E:c.value.click=T;const _=Xe(e),w=async()=>{var O;try{p.value=!0;const H=await _(),{columns:R=[],rows:F=[]}=((O=H==null?void 0:H.data)==null?void 0:O.data)??{};let D;R.length>0&&(D={name:R[0],types:R.slice(1).map(z=>({label:z,value:z}))}),y(F,D,!0)}catch(H){console.error(H)}finally{p.value=!1}},B=()=>{switch(e.dataType){case"indicator":w();break;case"request":C();break}};Te(e,{refreshData:B,resetRecord:()=>{const O=e.id,H=g(O);m(O,{...H,RECORD:""})},click:T});const{setRequest:A}=a.inject(_e,{setRequest:O=>{}});return typeof A=="function"&&A({id:e.id,requestFn:B,sortNum:e.requestSort}),n({refreshData:B}),{option:u,style:r,click:T,loading:p,onClose:h,ecanModal:l,eventObj:c,echartRef:t}}}),b1="";function Zc(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,a.mergeProps({ref:"echartRef",option:e.option,autoresize:""},a.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const zi=fe(ce($c,[["render",Zc]])),Wo={...me,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"},Uo=de(Wo),Mi=["refreshData","click","resetRecord"];Pe.use([ut.CanvasRenderer,Je.BarChart,ge.TitleComponent,ge.LegendComponent,ge.DatasetComponent,ge.ToolboxComponent]);const Yc=a.defineComponent({name:"EcanBar",props:{...Uo},components:{Spin:pt,Echarts:ot,EcanModal:ct,AModal:ae.Modal},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=a.ref(!1),i=a.ref(null),s=a.ref([]),l=ue(e),f=a.ref([]),c=a.ref(),d=a.computed(()=>o.value?Ye:12),x=a.computed(()=>{const{gradientShow:D,gradientColors:z,gradientOffset:q,barBorderRadius:N}=e,P=a.unref(f),I=P.length,M=[];for(let Y=0;Y<I;Y++){const U={...P[Y],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 j="",J=e.labelFormatter;J===""&&(J="{c}");const{seriesName:oe,name:pe,value:Ee,data:xe}=Z||{};return j+=Se(J,{textData:{name:pe,value:Ee,a:oe,b:pe,c:Ee||0,...xe}},{useNewline:!0,useSpace:!0}),j}},U.itemStyle={},D&&(U.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Y]},{offset:q,color:z[Y]},{offset:1,color:z[Y]}]}}),N){const Z=N.split(",");if(Z!=null&&Z.length){const j=[];for(const J of Z){const oe=parseFloat(J);isNaN(oe)||j.push(oe)}U.itemStyle.borderRadius=j}}M.push(U)}return M}),u=a.ref([]),h=a.ref(!1),g=a.computed(()=>{const D=e.yAxisLabelFormatter,z=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:o.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const q=t.value.chart.getOption(),{xAxis:N}=q||{};N&&N.length&&(s.value=N[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(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var q;o.value=!0,(q=c.value)==null||q.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:q=>{const N=q.length;let P="",I=e.tooltipFormatter;I===""&&(I="{marker} {a} {c}");for(let M=0;M<N;M++){const{marker:Y,seriesName:U,name:Z,value:j,data:J}=q[M]||{};if(M===0){let oe=Z;typeof Z=="string"&&Z[0]==="0"&&!isNaN(+Z)&&(oe=(+Z).toString()),P+=`${$e(z,oe)}<br/>`}P+=Se(I,{textData:{marker:Y,name:Z,value:j,a:U,b:Z,c:j||0,...J}},{useNewline:!0,useSpace:!0}),P+="<br/>"}return P},textStyle:{color:e.tooltipTextStyleColor,fontSize:d.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:o.value?Ye:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(f).map((q,N)=>({name:q.name,itemStyle:{color:e.colors[N]},icon:e.legendType}))},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:a.unref(p),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(q){return typeof q=="string"&&q[0]==="0"&&!isNaN(+q)&&(q=(+q).toString()),$e(z,q)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?a.unref(u):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(q){return $e(D,q)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:a.unref(x)}}),{pageMode:m}=a.inject(Ie,{pageMode:"normal"}),S=()=>{o.value=!1},k=(D=[],z=!1)=>{let q={};if(e.dataFieldConfigType==="key"){const N=z?e.keyTypeDataFieldNames:null;q=st(D,N)}else if(e.dataFieldConfigType==="value"){const N=z?e.valueTypeDataFieldNames:null;q=bt(D,N)}f.value=q.dataset,u.value=q.dimensions},y=(D=[],z,q=!1)=>{const P=st(D,q?z:null,!0);f.value=P.dataset,u.value=P.dimensions},p=a.computed(()=>a.unref(u).map(D=>{let z={};return D&&typeof D=="object"?z={...D}:z={value:D},z}));a.watch(()=>[e.data,e.labelFormatter],([D])=>{(e.dataType==="static"||a.unref(m)==="design")&&k(D)},{immediate:!0,deep:!0});const b=Oe(e),C=async()=>{var D,z;try{h.value=!0;const q=await b();k((z=(D=q==null?void 0:q.data)==null?void 0:D.data)==null?void 0:z.rows,!0)}catch(q){console.error(q)}finally{h.value=!1}},v=Xe(e),T=async()=>{var D;try{h.value=!0;const z=await v(),{columns:q=[],rows:N=[]}=((D=z==null?void 0:z.data)==null?void 0:D.data)??{};let P;q.length>0&&(P={name:q[0],types:q.slice(1).map(I=>({label:I,value:I}))}),y(N,P,!0)}catch(z){console.error(z)}finally{h.value=!1}},E=()=>{switch(e.dataType){case"indicator":T();break;case"request":C();break}},_=(D,z)=>!!a.unref(s)[z.value].value.includes(D),w=async()=>{r.value=!1;const D=t.value.chart.getOption();for(let z=0;z<7;z++)await B(D,z)},B=(D,z)=>new Promise(q=>{setTimeout(()=>{const{series:N,color:P,xAxis:I}=D,M=t.value.chart,{splitArea:Y={}}=I[0]||{};N.forEach((U,Z)=>{const j=U.data;let J="";z%2?J=P[Z]+"a8":J=P[Z],j[i.value].itemStyle={color:J}}),z%2?(Y.show=!0,Y.areaStyle.color=a.unref(s).map((U,Z)=>Z===i.value?"#ff003b26":"")):Y.show=!1,M.setOption({series:N,xAxis:I}),q()},200)});n({refreshData:E});const L=ve(e),{getGlobalModel:A,setGlobalModel:O}=a.inject(we,{getGlobalModel:D=>{},setGlobalModel:(D,z)=>{}}),H=L("click",D=>{const z=A(e.id);O(e.id,{...z,RECORD:D.data})}),{setRequest:R}=a.inject(_e,{setRequest:D=>{}});return typeof R=="function"&&R({id:e.id,requestFn:E,sortNum:e.requestSort}),Te(e,{refreshData:E,click:H,resetRecord:()=>{const D=e.id,z=A(D);O(D,{...z,RECORD:""})}}),{option:g,style:l,refreshData:E,click:H,loading:h,onClose:S,ecanModal:c,echartRef:t,handleLocationOk:w,onFilterOption:_,locationVisible:r,locationValue:i,locationNames:s}}}),S1="",w1="",Kc=e=>(a.pushScopeId("data-v-c9356df7"),e=e(),a.popScopeId(),e),Xc={class:"location-wrap"},Qc=Kc(()=>a.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Jc(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal"),c=a.resolveComponent("a-select-option"),d=a.resolveComponent("a-select"),x=a.resolveComponent("a-modal");return a.openBlock(),a.createElementBlock("div",{class:"ecan-bar",style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),a.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:a.withCtx(()=>[a.createElementVNode("div",Xc,[Qc,a.createVNode(d,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.locationNames,(u,h)=>(a.openBlock(),a.createBlock(c,{key:h,value:h},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Fi=fe(ce(Yc,[["render",Jc],["__scopeId","data-v-c9356df7"]])),$o={...me,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",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"},Zo=de($o),Pi=["click","refreshData","resetRecord"];Pe.use([ut.CanvasRenderer,Je.ScatterChart,ge.ToolboxComponent,ge.TitleComponent,ge.TooltipComponent,ge.LegendComponent]);const ef=a.defineComponent({name:"EcanScatter",props:{...Zo},components:{Spin:pt,Echarts:ot,EcanModal:ct},setup(e){const n=a.ref(!1),t=ue(e),o=a.ref([]),r=a.ref(),i=a.computed(()=>n.value?Ye:12),s=a.computed(()=>{const b=e.xAxisLabelFormatter,C=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:n.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var v;n.value=!0,(v=r.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(){ae.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(v){return typeof v=="string"&&v[0]==="0"&&!isNaN(+v)&&(v=(+v).toString()),$e(b,v)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},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(v){return $e(C,v)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(v){var L;const{marker:T,seriesName:E}=v,_=((L=v==null?void 0:v.data)==null?void 0:L.record)??{},{name:w,value:B}=_;return Se(e.tooltipFormatter,{textData:{marker:T,seriesName:E,a:E,b:w,c:B,..._}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:i.value}},series:[{data:a.unref(o),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:l,setGlobalModel:f}=a.inject(we,{getGlobalModel:b=>{},setGlobalModel:(b,C)=>{}}),{pageMode:c}=a.inject(Ie,{pageMode:"normal"}),d=(b=[],C)=>{const{name:v="name",value:T="value"}=C||{};o.value=b.map(E=>({value:[E[v],E[T]],record:E}))};a.watch(()=>e.data,b=>{(e.dataType==="static"||a.unref(c)==="design")&&d(b)},{immediate:!0,deep:!0});const x=a.ref(!1),u=Oe(e),h=async()=>{var b,C;if(e.dataType==="request"){x.value=!0;try{const v=await u();d((C=(b=v==null?void 0:v.data)==null?void 0:b.data)==null?void 0:C.rows,e.dataFieldNames)}catch(v){console.error(v)}finally{x.value=!1}}},g=()=>{n.value=!1},S=ve(e)("click",b=>{const C=e.id,v=l(C);f(C,{...v,RECORD:b==null?void 0:b.data})});Te(e,{refreshData:()=>{h()},click:S,resetRecord:()=>{const b=e.id,C=l(b);f(b,{...C,RECORD:""})}});const{setRequest:p}=a.inject(_e,{setRequest:b=>{}});return typeof p=="function"&&p({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:s,style:t,click:S,loading:x,onClose:g,ecanModal:r}}}),A1="";function tf(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Hi=fe(ce(ef,[["render",tf]])),Yo={...me,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},Ko=de(Yo),nf=a.defineComponent({name:"EcanCustomGraph",props:{...Ko},components:{Echarts:ot},setup(e){const n=ue(e),t=a.ref();return a.watch(()=>e.optionCode,o=>{try{const r=eval;t.value=r(o)}catch(r){console.error(r)}},{immediate:!0}),{style:n,myOption:t,echarts:w0}}});function of(e,n,t,o,r,i){const s=a.resolveComponent("echarts");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const qi=fe(ce(nf,[["render",of]])),Xo={...me,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,yAxisSplitLineShow:!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,yAxisSplitLineType:"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"},Qo=de(Xo),Vi=["refreshData","click","resetRecord"];Pe.use([ut.CanvasRenderer,Je.BarChart,Je.LineChart,ge.TitleComponent,ge.LegendComponent,ge.DatasetComponent,ge.ToolboxComponent]);const af=a.defineComponent({name:"EcanComboGraph",props:{...Qo},components:{Spin:pt,Echarts:ot,EcanModal:ct,AModal:ae.Modal},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=a.ref(!1),i=a.ref(null),s=a.ref([]),l=ue(e),f=a.ref([]),c=a.ref([]),d=a.ref(),x=a.ref([]),u=a.computed(()=>o.value?Ye:12),h=a.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:o.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const D=t.value.chart.getOption(),{xAxis:z}=D||{};z&&z.length&&(s.value=z[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(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var D;o.value=!0,(D=d.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(){ae.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:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:o.value?Ye:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(x).map((D,z)=>({name:D.name,itemStyle:{color:e.colors[z]},icon:e.legendType}))},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:D=>{const z=D.length;let q="",N=e.tooltipFormatter;N===""&&(N="{marker} {a} {c}");const P=e.seriesTypes;for(let I=0;I<z;I++){const M=P[I],{tooltipFormatter:Y}=M||{},{marker:U,seriesName:Z,name:j,value:J,data:oe}=D[I]||{};if(I===0){let pe=j;typeof j=="string"&&j[0]==="0"&&!isNaN(+j)&&(pe=(+j).toString()),q+=`${$e(e.xAxisLabelFormatter,pe)}<br/>`}q+=Se(Y||N,{textData:{marker:U,name:j,value:J,seriesName:Z,a:Z,b:j,c:J||0,...oe}},{useNewline:!0,useSpace:!0}),q+="<br/>"}return q},textStyle:{color:e.tooltipTextStyleColor,fontSize:u.value}},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:a.unref(c).map(D=>{let z={};return D&&typeof D=="object"?z={...D}:z={value:D},z}),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(D){return typeof D=="string"&&D[0]==="0"&&!isNaN(+D)&&(D=(+D).toString()),$e(e.xAxisLabelFormatter,D)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:a.unref(y),series:a.unref(f)})),{pageMode:g}=a.inject(Ie,{pageMode:"normal"}),m=()=>{o.value=!1},S=(D=[],z=!1)=>{let q;if(e.dataFieldConfigType==="key"){const Y=z?e.keyTypeDataFieldNames:null;q=st(D,Y)}else if(e.dataFieldConfigType==="value"){const Y=z?e.valueTypeDataFieldNames:null;q=bt(D,Y)}c.value=q.dimensions;const N=q.dataset;x.value=q.dataset;const P=[],I=N.length,M=e.seriesTypes;for(let Y=0;Y<I;Y++){const U=M[Y],{type:Z,axisIndex:j}=U||{};let J={type:Z,yAxisIndex:j,...N[Y]};if(Z==="line"){const oe={};e.shadowColor&&(oe.shadowColor=e.shadowColor,oe.shadowBlur=e.shadowBlur,oe.shadowOffsetY=e.shadowOffsetY,oe.shadowOffsetX=e.shadowOffsetX),J={...J,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[Y]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[Y]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[Y],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...oe}}}if(Z==="bar"){const{gradientShow:oe,gradientColors:pe,gradientOffset:Ee}=e,xe={};if(e.barBorderRadius){const he=e.barBorderRadius.split(",");if(he!=null&&he.length){const Le=[];for(const Ve of he){const Ne=parseFloat(Ve);isNaN(Ne)||Le.push(Ne)}xe.borderRadius=Le}}oe&&(xe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[Y]},{offset:Ee,color:pe[Y]},{offset:1,color:pe[Y]}]}),J={...J,barWidth:e.barWidth,itemStyle:xe}}P.push(J)}f.value=P},k=(D=[],z,q=!1)=>{const P=st(D,q?z:null,!0);c.value=P.dimensions;const I=P.dataset;x.value=P.dataset;const M=[],Y=I.length,U=e.seriesTypes;for(let Z=0;Z<Y;Z++){const j=U[Z];M.push({type:j==null?void 0:j.type,yAxisIndex:j==null?void 0:j.axisIndex,...I[Z]})}f.value=M};a.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],([D])=>{(e.dataType==="static"||a.unref(g)==="design")&&S(D)},{immediate:!0,deep:!0});const y=a.computed(()=>{const D=e.yAxis;return D==null?void 0:D.map(z=>({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(q){return $e(z.axisLabelFormatter,q)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),p=a.ref(!1),b=Oe(e),C=async()=>{var D,z;if(e.dataType==="request")try{p.value=!0;const q=await b();S((z=(D=q==null?void 0:q.data)==null?void 0:D.data)==null?void 0:z.rows,!0)}catch(q){console.error(q)}finally{p.value=!1}},v=Xe(e),T=async()=>{var D;try{p.value=!0;const z=await v(),{columns:q=[],rows:N=[]}=((D=z==null?void 0:z.data)==null?void 0:D.data)??{};let P;q.length>0&&(P={name:q[0],types:q.slice(1).map(I=>({label:I,value:I}))}),k(N,P,!0)}catch(z){console.error(z)}finally{p.value=!1}},E=()=>{switch(e.dataType){case"indicator":T();break;case"request":C();break}},_=(D,z)=>!!a.unref(s)[z.value].value.includes(D),w=async()=>{r.value=!1;const D=t.value.chart.getOption();for(let z=0;z<7;z++)await B(D,z)},B=(D,z)=>new Promise(q=>{setTimeout(()=>{const{series:N,color:P,xAxis:I}=D,M=t.value.chart,{splitArea:Y={}}=I[0]||{};N.forEach((U,Z)=>{const j=U.data;let J="";z%2?J=P[Z]+"a8":J=P[Z],j[i.value].itemStyle={color:J}}),z%2?(Y.show=!0,Y.areaStyle.color=a.unref(s).map((U,Z)=>Z===i.value?"#ff003b26":"")):Y.show=!1,M.setOption({series:N,xAxis:I}),q()},200)});n({refreshData:E});const L=ve(e),{getGlobalModel:A,setGlobalModel:O}=a.inject(we,{getGlobalModel:D=>{},setGlobalModel:(D,z)=>{}}),H=L("click",D=>{const z=A(e.id);O(e.id,{...z,RECORD:D==null?void 0:D.data})}),{setRequest:R}=a.inject(_e,{setRequest:D=>{}});return typeof R=="function"&&R({id:e.id,requestFn:E,sortNum:e.requestSort}),Te(e,{resetRecord:()=>{const D=e.id,z=A(D);O(D,{...z,RECORD:""})},refreshData:E,click:H}),{style:l,option:h,click:H,loading:p,onClose:m,ecanModal:d,echartRef:t,handleLocationOk:w,onFilterOption:_,locationVisible:r,locationValue:i,locationNames:s}}}),E1="",B1="",rf=e=>(a.pushScopeId("data-v-fb3a679f"),e=e(),a.popScopeId(),e),lf={class:"location-wrap"},sf=rf(()=>a.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function cf(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal"),c=a.resolveComponent("a-select-option"),d=a.resolveComponent("a-select"),x=a.resolveComponent("a-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),a.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:a.withCtx(()=>[a.createElementVNode("div",lf,[sf,a.createVNode(d,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.locationNames,(u,h)=>(a.openBlock(),a.createBlock(c,{key:h,value:h},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ji=fe(ce(af,[["render",cf],["__scopeId","data-v-fb3a679f"]])),Jo={...me,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",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",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar"},ea=de(Jo),Gi=["refreshData","click","resetRecord"];Pe.use([ut.CanvasRenderer,Je.RadarChart,ge.ToolboxComponent,ge.TitleComponent,ge.LegendComponent]);const ff=a.defineComponent({name:"EcanRadar",props:{...ea},components:{Spin:pt,Echarts:ot,EcanModal:ct},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=ue(e),i=a.ref([]),s=a.ref(),l=a.computed(()=>o.value?Ye:12),f=a.ref({});let c;const d=a.ref([]),x=a.ref(e.valueTypeDataFieldNames.name),u=a.computed(()=>{const R=a.unref(d),F=R.length,D=[];for(let z=0;z<F;z++){const{name:q,data:N=[]}=R[z],P=[{name:q,value:N.map(M=>M.value)}],I={type:"radar",name:q,data:P,areaStyle:{color:e.colors[z],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}};D.push(I)}return D}),h=a.computed(()=>{var q,N;const R=[],F={},D=a.unref(d),z=D.length;for(let P=0;P<z;P++){const{data:I=[]}=D[P];if(I!=null&&I.length)for(let M=0;M<I.length;M++)F[I[M][x.value]]?F[I[M][x.value]].push(I[M].value):F[I[M][x.value]]=[I[M].value]}if((q=i.value)!=null&&q.length)for(const P of i.value)R.push({name:P,max:(N=F[P])!=null&&N.length?Math.max(...F[P])*1.2:0});return R}),g=a.computed(()=>({toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var R;o.value=!0,(R=s.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(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:l.value},show:e.tooltipShow,formatter:R=>{var z;let F="",D=e.tooltipFormatter;c=(z=R[0])==null?void 0:z.data,D===""&&(D="{marker} {a} {c}");for(let q=0;q<a.unref(h).length;q++){const N=a.unref(h)[q],{marker:P,seriesName:I,value:M}=R||{};q===0&&I&&(F+=`${I}<br/>`),F+=Se(D,{textData:{marker:P,name:N.name,value:M[q],a:N.name,b:N.name,c:M[q]||0,type:I}},{useNewline:!0,useSpace:!0}),F+="<br/>"}return F}},radar:{indicator:a.unref(h),axisName:{color:e.axisNameColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:o.value?Ye:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(d).map(R=>({name:R.name,icon:e.legendType}))},series:a.unref(u)})),m=()=>{o.value=!1},{getGlobalModel:S,setGlobalModel:k}=a.inject(we,{getGlobalModel:R=>{},setGlobalModel:(R,F)=>{}}),{pageMode:y}=a.inject(Ie,{pageMode:"normal"}),p=(R=[],F=!1)=>{let D;if(e.dataFieldConfigType==="key"){const z=F?e.keyTypeDataFieldNames:null;D=st(R,z)}else if(e.dataFieldConfigType==="value"){const z=F?e.valueTypeDataFieldNames:null;D=bt(R,z)}i.value=D.dimensions,d.value=D.dataset},b=(R=[],F,D=!1)=>{const q=st(R,D?F:null,!0);i.value=q.dimensions,d.value=q.dataset};a.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize],([R])=>{(e.dataType==="static"||a.unref(y)==="design")&&p(R)},{immediate:!0,deep:!0});const C=a.ref(!1),v=Oe(e),T=async()=>{var R,F;if(e.dataType==="request")try{C.value=!0;const D=await v();p((F=(R=D==null?void 0:D.data)==null?void 0:R.data)==null?void 0:F.rows,!0)}catch(D){console.error(D)}finally{C.value=!1}},_=ve(e)("click",R=>{const F=S(e.id);k(e.id,{...F,RECORD:e.tooltipShow?c:R.data})}),w=R=>{t.value.chart.containPixel("grid",[R.offsetX,R.offsetY])&&_()};e.tooltipShow?f.value["zr:click"]=w:f.value.click=_;const B=Xe(e),L=async()=>{var R;try{C.value=!0;const F=await B(),{columns:D=[],rows:z=[]}=((R=F==null?void 0:F.data)==null?void 0:R.data)??{};let q;D.length>0&&(x.value=D[0],q={name:D[0],types:D.slice(1).map(N=>({label:N,value:N}))}),b(z,q,!0)}catch(F){console.error(F)}finally{C.value=!1}},A=()=>{switch(e.dataType){case"indicator":L();break;case"request":T();break}};Te(e,{refreshData:A,resetRecord:()=>{const R=e.id,F=S(R);k(R,{...F,RECORD:""})},click:_});const{setRequest:H}=a.inject(_e,{setRequest:R=>{}});return typeof H=="function"&&H({id:e.id,requestFn:A,sortNum:e.requestSort}),n({refreshData:A}),{option:g,style:r,click:_,loading:C,onClose:m,ecanModal:s,eventObj:f,echartRef:t}}}),D1="";function df(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,a.mergeProps({ref:"echartRef",option:e.option,autoresize:""},a.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Wi=fe(ce(ff,[["render",df]])),uf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",hf="data:image/png;base64,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",gf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",mf="data:image/png;base64,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",ta={...me,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:!0,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",titleMode:"type-1"},na=de(ta),Ui=["click"],xf=a.defineComponent({name:"EcanBorder",props:{...na},setup(e){const n=ue(e,["background"]),t=a.computed(()=>{const{gradientShow:g,gradientColor:m,gradientOffset:S,gradientAngle:k,backgroundColor:y}=e;return g&&m?{backgroundImage:`linear-gradient(${k}, ${y}, ${m} ${S*100}%)`}:{}}),o=a.computed(()=>{const{events:g}=e;let m={};return g!=null&&g.length&&g.find(k=>k.emit==="showModal")&&(m={cursor:"pointer"}),m}),{theme:r}=a.inject(Ie,{theme:"light"}),i=a.computed(()=>{let g="";switch(e.titleMode){case"type-2":g="2";break}return g}),s=a.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":uf,"../../assets/border-title-decoration-left2.png":hf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=a.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":gf,"../../assets/border-title-decoration-right2.png":mf})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),f=a.computed(()=>({width:"100%",height:"100%"})),c=a.computed(()=>{const{borderRadius:g}=e,m=[],S={};if(g){const k=g.split(",");for(const y of k)(+y||+y==0)&&m.push(+y+"px")}return m!=null&&m.length&&(S.borderRadius=m.join(" ")),S}),x=ve(e)("click",()=>{}),u=a.ref([]);a.watch(()=>e.data,g=>{u.value=g},{immediate:!0,deep:!0}),Te(e,{click:x});const{setGlobalModel:h}=a.inject(we,{setGlobalModel:(g,m)=>{}});return h(e.id,{type:e.type,value:u}),{style:n,gradientStyle:t,click:x,borderStyle:f,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:o}}}),I1="",ft=e=>(a.pushScopeId("data-v-a6ae5d6a"),e=e(),a.popScopeId(),e),yf=["id"],pf=ft(()=>a.createElementVNode("div",{class:"top-left border-item"},null,-1)),bf=ft(()=>a.createElementVNode("div",{class:"top-right border-item"},null,-1)),vf=ft(()=>a.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Sf=ft(()=>a.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),wf={class:"title-item"},Cf=["src"],Af={class:"title"},kf=["src"],Tf=ft(()=>a.createElementVNode("div",{class:"top-left border-item"},null,-1)),Ef=ft(()=>a.createElementVNode("div",{class:"top-right border-item"},null,-1)),Bf=ft(()=>a.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_f=ft(()=>a.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Df={key:2,class:"left-title"},Rf={class:"title"};function If(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:"ecan-border",style:a.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:n[0]||(n[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"no-title",style:a.normalizeStyle(e.borderStyle)},[e.useBorderModify?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[pf,bf,vf,Sf],64)):a.createCommentVNode("",!0)],4)):a.createCommentVNode("",!0),e.mode==="top-title"?(a.openBlock(),a.createElementBlock("div",{key:1,class:"top-title",style:a.normalizeStyle(e.borderStyle)},[a.createElementVNode("div",{class:a.normalizeClass(["title-item-wrapper",e.titleMode])},[a.createElementVNode("div",wf,[a.createElementVNode("img",{class:a.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Cf),a.createElementVNode("div",Af,a.toDisplayString(e.title),1),a.createElementVNode("img",{class:a.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,kf)])],2),Tf,Ef,Bf,_f],4)):a.createCommentVNode("",!0),e.mode==="left-title"?(a.openBlock(),a.createElementBlock("div",Df,[a.createElementVNode("div",Rf,[a.createElementVNode("span",null,a.toDisplayString(e.title),1)])])):a.createCommentVNode("",!0)],12,yf)}const $i=fe(ce(xf,[["render",If],["__scopeId","data-v-a6ae5d6a"]])),oa={...me,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,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px"},aa=de(oa),Zi=["tabChange"],Of=a.defineComponent({name:"EcanTabs",props:{...aa},components:{ASelect:ae.Select,ASelectOption:ae.SelectOption},setup(e){const n=ue(e),t=a.ref(0);a.watch(()=>e.activeKey,h=>{t.value=h},{immediate:!0});const{pageMode:o}=a.inject(Ie,{pageMode:"normal"});let r=null;const i=()=>{const h=Array.isArray(a.unref(s))?a.unref(s).length-1:0;e.autoSwitch&&h>0&&(r=setInterval(()=>{const g=a.unref(t)+1;g<=h?t.value=g:t.value=0,l.value=a.unref(s)[a.unref(t)],x()},e.autoSwitchInterval*1e3))};a.onMounted(()=>{a.unref(o)!=="design"&&i()}),a.onBeforeUnmount(()=>{clearInterval(r)});const s=a.ref([]),l=a.ref({});a.watch(()=>e.data,h=>{s.value=h,l.value=Array.isArray(h)&&h.length>0?h[0]:{}},{immediate:!0,deep:!0});const f=h=>t.value===h,c=ve(e),{setGlobalModel:d}=a.inject(we,{setGlobalModel:(h,g)=>{}});d(e.id,{value:l,activeKey:t});const{emitRefreshPage:x}=a.inject(Nt,{emitRefreshPage:()=>{}}),u=c("tabChange",(h,g)=>{g!==a.unref(t)&&(l.value=h,t.value=g,x())});return Te(e,{tabChange:u}),{style:n,activeKey:t,isActive:f,tabChange:u,myData:s,useImagePath:mt}}}),L1="",Lf=["id"],Nf=["onClick"];function zf(e,n,t,o,r,i){const s=a.resolveComponent("a-select-option"),l=a.resolveComponent("a-select");return a.openBlock(),a.createElementBlock("div",{class:"ecan-tabs",style:a.normalizeStyle(e.style),id:"container_"+e.id},[a.createElementVNode("div",{class:"tabs-header",style:a.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(e.myData,(f,c)=>(a.openBlock(),a.createElementBlock("div",{class:"tab",style:a.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(c)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(c)?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:c,onClick:a.withModifiers(d=>e.tabChange(f,c),["prevent","stop"])},[a.createElementVNode("div",{class:"tab-inner",style:a.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(c)?e.activeTabColor:"transparent"}`:""})},a.toDisplayString(f.title),5)],12,Nf))),128)):e.tabType==="select"?(a.openBlock(),a.createBlock(l,{key:1,value:e.activeKey,style:a.normalizeStyle({width:e.tabWidth})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.myData,(f,c)=>(a.openBlock(),a.createBlock(s,{key:c,value:c,onClick:d=>e.tabChange(f,c)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(f.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):a.createCommentVNode("",!0)],4)],12,Lf)}const Yi=fe(ce(Of,[["render",zf],["__scopeId","data-v-fbab260a"]])),ra={...me,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{}},ia=de(ra),Ki=["click"],Mf=a.defineComponent({name:"EcanImage",props:{...ia},setup(e){const n=ue(e),t=a.computed(()=>mt(e.imgUrl)),{pageMode:o}=a.inject(Ie,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=a.inject(we,{getGlobalModel:f=>{},setGlobalModel:(f,c)=>{}}),l=ve(e)("click",()=>{const f=r(e.id);if(i(e.id,{...f,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...f,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",d=Zr(a.unref(o),c),x=e.href;let u=x||d;u=Se(u);const h=e.target;h&&(h!=="event"?window.open(u,"_"+h):window.parent.postMessage({type:"openPage",url:x},"*"))});return Te(e,{click:l}),{style:n,myImgUrl:t,onClick:l}}}),z1="",Ff=["src"];function Pf(e,n,t,o,r,i){return e.myImgUrl!==""?(a.openBlock(),a.createElementBlock("img",{key:0,style:a.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Ff)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"image-placeholder",style:a.normalizeStyle(e.style)}," 请上传图片 ",4))}const Xi=fe(ce(Mf,[["render",Pf],["__scopeId","data-v-3665dde7"]])),la={...me,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},sa=de(la),Hf=a.defineComponent({name:"EcanIframe",props:{...sa},setup(e){const n=ue(e),{contextRequestUrl:t}=a.inject(Ie,{contextRequestUrl:""}),o=a.computed(()=>{let r=Se(e.link);if(e.linkType==="erd"&&r!=null){let i=a.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${ql||i}?_t=0&uid=${r}`}return r});return{style:n,myLink:o}}}),F1="",qf=["src"];function Vf(e,n,t,o,r,i){return e.myLink?(a.openBlock(),a.createElementBlock("iframe",{key:0,src:e.myLink,style:a.normalizeStyle(e.style)},null,12,qf)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"iframe-placeholder",style:a.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Qi=fe(ce(Hf,[["render",Vf],["__scopeId","data-v-19bc100c"]])),ca={...me,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",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:"",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%",isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1},fa=de(ca),Ji=["click","refreshData","resetRecord","exportTableData"],da=a.defineComponent({name:"EcanTable",components:{Skeleton:jt,AButton:ae.Button,AInput:ae.Input,ACheckboxGroup:ae.CheckboxGroup,ATable:ae.Table,ATableSummary:ae.TableSummary,ATableSummaryRow:ae.TableSummaryRow,ATableSummaryCell:ae.TableSummaryCell},props:{...fa},setup(e,{expose:n}){const t=a.ref(!1),o=Ge.cloneDeep(e.columns),r=a.ref(),i=a.ref(!1),s=ue(e),l=a.ref([]),f=a.computed(()=>e.scrollX),c=a.ref(0),d=()=>{let W=0;switch(e.size){case"small":W=50;break;case"middle":W=53;break;default:W=65;break}return W};a.watchEffect(()=>{var W;(W=l.value)!=null&&W.length&&e.height&&a.nextTick(()=>{let $=parseFloat(e.height);const K=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),X=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),Q=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let te=0;if(X&&($-=(X==null?void 0:X.clientHeight)||0),Q&&e.isSummaryFixed&&(te=(Q==null?void 0:Q.clientHeight)||0,$-=te),e.paginationShow){let ee=0;ee=d(),ee&&($-=ee)}(K==null?void 0:K.clientHeight)>$?c.value=$:c.value=0,a.nextTick(()=>{if(te){const ee=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),le=(ee==null?void 0:ee.clientHeight)||0;te!==le&&a.unref(c)&&(c.value=$+te-le)}})})});const x=a.ref([]),u=a.ref([]),h=a.ref([]),g=a.ref(0),m=a.ref(1),S=a.ref(e.paginationPageSize||10),k=a.reactive([]),y=(W=[])=>{if(Array.isArray(W)&&W.length>0){const $=W.length,K=e.columnsFixedNum;e.dataType==="indicator"&&(o!=null&&o.length)&&W.forEach((X,Q)=>{if(o[Q])for(const te in o[Q])["dataIndex","title"].includes(te)||(X[te]=o[Q][te])});for(let X=0;X<$;X++){const Q=W[X];X<K?Q.fixed="left":Q.fixed=!1;const{cellAlign:te="center",cellColor:ee,dataIndex:le,title:ye,tableFilter:be,headerCellAlign:Fe,headerCellColor:Re}=Q;be&&(k.push(le),Q.filterOptionsInputValue="",Q.filterCheckboxGroupValue=[],Q.customFilterDropdown=!0,Q.onFilter=(Be,Mt)=>Mt[le].toString().toLowerCase().includes(Be.toLowerCase())),Q.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Fe||"center",color:Re,borderBottomColor:e.borderColor}}),Q.customCell=(Be,Mt)=>({style:{textAlign:te,color:ee,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:a.unref(N)===Mt&&e.clickHighlight},onClick:H("click",()=>{const Ft=e.id,nn=R(Ft);Be={dataIndex:le,title:ye,...Be},F(Ft,{...nn,RECORD:Be})})}),Array.isArray(Q.children)&&y(Q.children)}}},p=(W=[])=>(e.isUseSeq&&W.unshift({title:"序号",dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&W.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),y(W),W);a.watch(S,()=>{m.value=1,I(!1)}),a.watch(r,W=>{i.value=!!W}),a.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor,e.stripedColor],()=>{x.value=p(Ge.cloneDeep(e.columns))},{immediate:!0,deep:!0}),a.watch(()=>[e.data,e.dataType],([W,$])=>{$==="static"&&(u.value=W)},{immediate:!0});const b=a.ref({}),C=W=>{if(Array.isArray(W)){const $=W.length,K=k,X=K.length,Q={};for(let ee=0;ee<$;ee++){const le=W[ee];for(let ye=0;ye<X;ye++){const be=K[ye];if(Q[be])Q[be].add(le[be]);else{const Fe=new Set;Fe.add(le[be]),Q[be]=Fe}}}const te={};for(const ee in Q)if(Object.prototype.hasOwnProperty.call(Q,ee)){const le=Q[ee],ye=Array.from(le);te[ee]=ye.map(be=>({label:be,value:be}))}b.value=te}};a.watch(()=>[e.isReverse,x.value,u.value],()=>{const W=a.unref(x),$=a.unref(u);if(C($),e.isReverse){const{columns:K,dataSource:X}=v(Ge.cloneDeep(W),Ge.cloneDeep($));h.value=K,l.value=X}else h.value=W,l.value=$},{immediate:!0});const v=(W,$)=>{const K=W[0],X=[{title:K.title,dataIndex:"col0",key:"col0",align:"center"}];for(let te=0;te<$.length;te++){const ee=$[te],le="col"+(te+1);X.push({title:ee[K.dataIndex],dataIndex:le,key:le,align:"center"})}const Q=[];for(let te=1;te<W.length;te++){const ee=W[te],le={col0:ee.title};for(let ye=0;ye<$.length;ye++){const be=$[ye];le[`col${ye+1}`]=be[ee.dataIndex]}Q.push(le)}return{columns:X,dataSource:Q}},T=a.ref(""),E=Oe(e),_=async(W=!0,$={})=>{var K;try{W&&(t.value=!0),a.unref(T)&&($.orderCondition=a.unref(T)),e.paginationShow&&($={pageNum:a.unref(m),pageSize:a.unref(S)||"10",layer:"1",...$});const X=await E($),{rows:Q=[],total:te=0}=((K=X==null?void 0:X.data)==null?void 0:K.data)||{};if(g.value=te,Array.isArray(Q)&&(u.value=Q),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ee=[]}=e,le=ee.find(ye=>ye.key==="dataSqlId");if((le==null?void 0:le.value)==="xt_jxzebg"){const ye=Q.filter(be=>!be.绩效总额).map(be=>be.ORG_NAME);ye!=null&&ye.length&&a.nextTick(()=>{ae.notification.warning({message:"提示",description:`当前时段${ye.join("、")}绩效数据为空`,duration:3})})}}}catch(X){console.error(X)}finally{t.value=!1}},w=({current:W},$,K)=>{if(m.value=W,K&&Object.keys(K).length>0){const{field:X,order:Q}=K,ee={ascend:"asc",descend:"desc"}[Q];X!=null&&ee!=null&&(T.value=X+" "+ee)}I(!1)},B=a.computed(()=>{const W=e.simple,$=[e.paginationPosition],K={};return e.isShowTotal&&(K.showTotal=X=>`共 ${X} 条数据`),e.paginationShow&&{simple:W,position:$,total:a.unref(g),current:a.unref(m),pageSize:a.unref(S)||"10",showSizeChanger:!1,...K}}),L=W=>+W==1?"是":+W==0?"否":W,A=(W,$)=>{const{format:K,retentiondigit:X,customFormatter:Q}=$;if(K==null||K==="")return W;const te={money:so,percentage:en,contrast:en,boolean:L,decimals:Ys,custom:Ks};return K==="decimals"?te[K](W,X)||"":K==="custom"?te[K](W,Q)||"":te[K](W)||""},O=(W,$)=>{const K=parseFloat(W+"");if($!=="contrast")return"";switch(!0){case K>=0:return"goUp";case K<0:return"goDown"}},H=ve(e),{getGlobalModel:R,setGlobalModel:F}=a.inject(we,{getGlobalModel:W=>{},setGlobalModel:(W,$)=>{}}),D=(W=[],$=[])=>{const K=W.map(X=>({title:X,dataIndex:X,key:X}));x.value=p(K),u.value=$},z=Xe(e),q=async(W=!0)=>{var $,K,X,Q;try{W&&(t.value=!0);const te=a.unref(T).split(" "),ee=await z({sort:{order:te[1],field:te[0]}});D((K=($=ee==null?void 0:ee.data)==null?void 0:$.data)==null?void 0:K.columns,(Q=(X=ee==null?void 0:ee.data)==null?void 0:X.data)==null?void 0:Q.rows)}catch(te){console.error(te)}finally{t.value=!1}},N=a.ref(-1),P=(W,$)=>({onClick:H("rowClick",()=>{const K=e.id,X=R(K);F(K,{...X,RECORD:W}),N.value=$})}),I=(W=!0)=>{switch(e.dataType){case"request":_(W);break;case"indicator":q(W);break}},M=()=>{const W=e.id,$=R(W);F(W,{...$,RECORD:""})},Y=a.computed(()=>{const W=a.unref(h),$=[];let K=0;for(let te=0;te<W.length;te++){const ee=W[te],{isCalcTotal:le}=ee;e.isUseSeq&&te===0?$.push({...ee,total:"小计"}):le?($.push({...ee,index:te,total:0}),K++):$.push({...ee})}if(K===0)return[];const X=a.unref(l),Q=U($);for(let te=0;te<Q.length;te++){const ee=Q[te];let le=0;const{isCalcTotal:ye,dataIndex:be}=ee;if(ye===!0){for(let Fe=0;Fe<X.length;Fe++){const Be=+X[Fe][be];isNaN(Be)||(le=new v0.Big(le).add(Be).toNumber())}ee.total=le}}return Q});function U(W){var K;const $=[];for(const X of W)(K=X.children)!=null&&K.length?$.push(...U(X.children)):$.push(X);return $}const{setRequest:Z}=a.inject(_e,{setRequest:W=>{}});typeof Z=="function"&&Z({id:e.id,requestFn:I,sortNum:e.requestSort}),n({refreshData:I});const j=(W="",$)=>Se(W,$),J=W=>{if(W!=="event")return{self:"_self",blank:"_blank"}[W]},oe=(W,$="")=>{W==="event"&&window.parent.postMessage({type:"openPage",url:$},"*")},pe=(W,$)=>{W($.filterCheckboxGroupValue)},Ee=(W,$)=>{W({confirm:!0}),$.filterOptionsInputValue="",$.filterCheckboxGroupValue=[]},xe=()=>{},he=W=>{const $=W.dataIndex;if(typeof $=="string"){let K=a.unref(b)[$];const X=a.unref(W.filterOptionsInputValue).trim();return Array.isArray(K)?(K=K.filter(Q=>typeof Q.label=="string"?Q.label.toLowerCase().includes(X.toLowerCase()):!0),K):[]}return[]},Le=async()=>{var be,Fe;const W="EXPORT_KEY";ae.message.loading({key:W,content:"正在导出...",duration:0});let $=[];if(e.dataType==="static")$=e.data;else if(e.dataType==="request"){const Re={layer:"1"};a.unref(T)&&(Re.orderCondition=a.unref(T));const Be=await E(Re);$=((Fe=(be=Be==null?void 0:Be.data)==null?void 0:be.data)==null?void 0:Fe.rows)||{}}const K=a.unref(h),X=[],Q=[];K==null||K.forEach(Re=>{X.push(Re.dataIndex),Q.push(Re.title)});const te=$.map(Re=>Ge.pick(Re,X)),ee=Rt.utils.book_new(),le=Rt.utils.aoa_to_sheet([Q]),ye=Rt.utils.sheet_add_json(le,te,{skipHeader:!0,origin:"A2"});Rt.utils.book_append_sheet(ee,ye,"sheet"),Rt.writeFile(ee,"表格数据.xlsx"),ae.message.success({key:W,content:"导出成功"})},Ve=(W,$=2)=>{const K=+W*100;return isNaN(K)||K<=0?0:K>=100?100:K.toFixed($)};Te(e,{resetRecord:M,refreshData:I,exportTableData:Le});const Ne=a.computed(()=>e.headerBackgroundColor||"#fafafa"),ze=(W,$)=>{let K=null;return e.stripedShow&&(K=$%2===1?"table-striped":null),K},nt=a.computed(()=>{let W=0;const{height:$,isPageBottom:K}=e;return K&&$&&(W=parseFloat($)-d()),W?W+"px":"100%"});return{x:f,y:c,style:s,customRow:P,pagination:B,formatFn:A,contrastClass:O,tableChange:w,summaryList:Y,loading:t,onTouchHrefEvent:oe,handleHref:j,handleHrefTarget:J,useRowIndex:N,tableColumns:h,tableDataSource:l,useFilterOptions:he,useSetSelectedKeys:pe,onResetFilter:Ee,onSearchFilterOptions:xe,exportTableData:Le,handleProgressText:Ve,pageSizeVisible:i,pageSize:S,tableRef:r,headerBgColor:Ne,rowClassName:ze,tableHeight:nt}}}),e0=()=>{a.useCssVars(e=>({"1c638fd3":e.headerBgColor,"34851aaa":e.stripedColor}))},t0=da.setup;da.setup=t0?(e,n)=>(e0(),t0(e,n)):e0;const H1="",q1="",jf=["id"],Gf={key:0,class:"table-tool"},Wf=a.createTextVNode("导出数据"),Uf=a.createTextVNode(" 搜索 "),$f=a.createTextVNode(" 重置 "),Zf={key:0},Yf={key:1,class:"action-list"},Kf=["href","target","onClick"],Xf={key:2,class:"progress-cell"},Qf={class:"ant-pagination-options-quick-jumper"},Jf=a.createTextVNode(" 条 / 页 ");function ed(e,n,t,o,r,i){const s=a.resolveComponent("a-button"),l=a.resolveComponent("a-input"),f=a.resolveComponent("a-checkbox-group"),c=a.resolveComponent("a-table-summary-cell"),d=a.resolveComponent("a-table-summary-row"),x=a.resolveComponent("a-table-summary"),u=a.resolveComponent("a-table"),h=a.resolveComponent("skeleton");return a.openBlock(),a.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:a.normalizeStyle(e.style)},[a.createVNode(h,{loading:e.loading},{default:a.withCtx(()=>{var g;return[e.isUseExport?(a.openBlock(),a.createElementBlock("div",Gf,[a.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:a.withCtx(()=>[Wf]),_:1},8,["onClick"])])):a.createCommentVNode("",!0),a.createVNode(u,{ref:"tableRef",class:"table",style:a.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,onChange:e.tableChange},{customFilterDropdown:a.withCtx(({column:m,selectedKeys:S,setSelectedKeys:k,confirm:y,clearFilters:p})=>[a.createElementVNode("div",{class:"ecan-table-filter",style:a.normalizeStyle({height:e.filterDropdownHeight})},[a.createVNode(l,{value:m.filterOptionsInputValue,"onUpdate:value":b=>m.filterOptionsInputValue=b,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),a.createVNode(f,{value:m.filterCheckboxGroupValue,"onUpdate:value":b=>m.filterCheckboxGroupValue=b,class:"filter-checkbox",options:e.useFilterOptions(m),onChange:b=>e.useSetSelectedKeys(k,m)},null,8,["value","onUpdate:value","options","onChange"]),a.createElementVNode("div",null,[a.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>y()},{default:a.withCtx(()=>[Uf]),_:2},1032,["onClick"]),a.createVNode(s,{size:"small",style:{width:"90px"},onClick:a.withModifiers(b=>e.onResetFilter(p,m),["stop"])},{default:a.withCtx(()=>[$f]),_:2},1032,["onClick"])])],4)]),bodyCell:a.withCtx(({column:m,index:S,text:k,record:y})=>[m.dataIndex==="SEQ"?(a.openBlock(),a.createElementBlock("span",Zf,a.toDisplayString(S+1),1)):m.dataIndex==="ACTION"?(a.openBlock(),a.createElementBlock("div",Yf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.actionList,(p,b)=>(a.openBlock(),a.createElementBlock("div",{class:"action",key:b},[a.createElementVNode("a",{href:e.handleHref(p.href,y),target:e.handleHrefTarget(p.target),style:a.normalizeStyle({color:p.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:C=>e.onTouchHrefEvent(p.target,e.handleHref(p.href,y))},a.toDisplayString(p.title),13,Kf)]))),128))])):m.format==="progress"?(a.openBlock(),a.createElementBlock("div",Xf,[a.createElementVNode("div",{class:"progress",style:a.normalizeStyle({background:m.progressColor||"#1890ff",height:m.progressWidth||"18px",width:`${e.handleProgressText(k,m.progressTextDecimalPlaces)}%`})},null,4),a.createElementVNode("div",{class:"progress-text",style:a.normalizeStyle({color:+e.handleProgressText(k)<100?m.progressTextColor||"#333":m.progressFinishedTextColor||"#fff"})},a.toDisplayString(e.handleProgressText(k,m.progressTextDecimalPlaces))+"% ",5)])):(a.openBlock(),a.createElementBlock("div",{key:3,class:a.normalizeClass([e.contrastClass(k,m.format)]),style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString(m.format!=null?e.formatFn(k,m):k),7))]),summary:a.withCtx(()=>[e.summaryList.length>0?(a.openBlock(),a.createBlock(x,{key:0,fixed:e.isSummaryFixed},{default:a.withCtx(()=>[a.createVNode(d,null,{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.summaryList,(m,S)=>(a.openBlock(),a.createBlock(c,{key:S,index:S,style:a.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:m.cellAlign||"center",color:m.cellColor,borderBottomColor:e.borderColor})},{default:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass([e.contrastClass(m.total,m.format)]),style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString((m.format!=null||m.format!=="")&&e.formatFn(m.total,m)),7)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):a.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","onChange"]),(g=e.tableDataSource)!=null&&g.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(a.openBlock(),a.createBlock(a.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[a.createElementVNode("div",Qf,[a.withDirectives(a.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=m=>e.pageSize=m)},null,512),[[a.vModelText,e.pageSize]]),Jf])],8,["to"])):a.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,jf)}const n0=fe(ce(da,[["render",ed],["__scopeId","data-v-d409167a"]])),ua={...me,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"},ha=de(ua),o0=["click"];Pe.use([ut.CanvasRenderer,Je.MapChart,Je.ScatterChart,ge.VisualMapComponent,ge.TooltipComponent,ge.GraphicComponent]);const td=a.defineComponent({name:"EcanMap",components:{Echarts:ot},props:{...ha},setup(e){const n=Oe(e),t=Oe({...e.tooltipRequestData,requestHeaders:{}}),o=a.ref(),r=a.ref(""),i=a.ref(""),s=ue(e,["backgroundImage"]),l=a.ref(),f=a.computed(()=>mt(e.geoBackgroundImage)),c=a.computed(()=>mt(e.backgroundImage)),d=a.computed(()=>e.geoBackgroundImage?{image:a.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),x=a.computed(()=>{const A=e.symbolImage;return e.symbolImage?"image://"+mt(A):"circle"}),u=A=>{let O=e.tooltipFormatter;const H=O.match(/\{(.+?)\}/g);if(H==null||H.length===0)return O;for(let R=0;R<H.length;R++){const F=H[R];let D=F.slice(1,-1).trim();const z=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,q=D.match(z);for(let N=0;N<q.length;N++){const P=q[N],I=A[P];I!=null&&(D=D.replace(P,I))}O=O.replace(F,D)}return O.split(`
|
|
118
|
-
`)},
|
|
116
|
+
<span style="color: ${L||e.color};${a.unref(l)}">${e.minusSignShow?"-":""}${Math.abs(+R).toFixed(2)}%</span>
|
|
117
|
+
</span>`)}else e.format==="percent"?(R=+R,isNaN(R)||(R=(R*100).toFixed(2),v=v.replace(M,`<span style="color:${d(R)||e.variableColor};font-size:${a.unref(i)};${a.unref(l)}">${R}%</span>`))):e.format==="money"?(R=+R,isNaN(R)||(R=co(R),v=v.replace(M,`<span style="color:${d(R)||e.variableColor};font-size:${a.unref(i)};${a.unref(l)}">${R}</span>`))):H==="thousands"?(R=+R,isNaN(R)||(R=Ks(R),v=v.replace(M,`<span style="color:${d(R)||e.variableColor};font-size:${a.unref(i)};${a.unref(l)}">${R}</span>`))):v=v.replace(M,`<span style="color:${d(R)||e.variableColor};font-size:${a.unref(i)};${a.unref(l)}">${R}</span>`)}}if(z||(z=`<span style="color: ${d(v)};${a.unref(l)}">${v}</span>`),e.unitShow&&e.unitText){const{unitTop:N,unitLeft:M}=e;let D="position:relative;";N&&(D+=`top:${N};`),M&&(D+=`margin-left:${M};`),z+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${D};${a.unref(l)}'>${e.unitText}</span>`}return z});function d(C){let B="",_=!1;const{targetValue:v,targetShow:E,notExpectColor:z}=e;if(E){switch(e.targetRule){case"equal":C!==v&&(_=!0);break;case"greater":C<=v&&(_=!0);break;case"greater_equal":C<v&&(_=!0);break;case"less":C>=v&&(_=!0);break;case"less_equal":C>v&&(_=!0);break}_&&(B=z)}return B}const{pageMode:x}=a.inject(Re,{pageMode:"normal"}),h=Ie(e),u=a.ref(!1),m=async()=>{var C;try{u.value=!0;const B=await h();r.value=((C=B==null?void 0:B.data)==null?void 0:C.data)||{}}catch(B){console.error(B)}finally{u.value=!1}},g=(C={})=>{r.value=C},S=Ke(e),A=async()=>{var C;try{u.value=!0;const B=await S(),{data:_}=(B==null?void 0:B.data)||{};if(_){t.value=!1;const{columns:v=[],rows:E=[]}=((C=B==null?void 0:B.data)==null?void 0:C.data)??{};let z={};if(v.length>0){const k=v.find(N=>!!N);k&&(z={value:isNaN(E[k])?0:E[k]||0})}g(z)}else t.value=!0,g({value:"NaN"})}catch(B){console.error(B)}finally{u.value=!1}},y=()=>{switch(e.dataType){case"indicator":A();break;case"request":m();break}},{setRequest:b}=a.inject(_e,{setRequest:({id:C,sortNum:B,requestFn:_})=>{}});typeof b=="function"&&b({id:e.id,requestFn:y,sortNum:e.requestSort}),Te(e,{refreshData:y}),n({refreshData:y});const p=ve(e),T=p("click",()=>{if(!e.linkPage&&!e.href)return;const C=e.linkPage||"",B=Kr(a.unref(x),C),_=e.href;let v=_||B;v=Se(v);const E=e.target;E&&(E!=="event"?window.open(v,"_"+E):window.parent.postMessage({type:"openPage",url:_},"*"))}),w=p("valueChange",()=>{});return a.watch(()=>c.value,(C,B)=>{C!==B&&w()}),{style:o,myText:c,loading:u,click:T,textIndent:s,vFontSize:i,gradientStyle:f}}}),ni=()=>{a.useCssVars(e=>({"3b17338a":e.vFontSize,"14386c24":e.textIndent,"2d9dcd08":e.percentageSide}))},oi=mo.setup;mo.setup=oi?(e,n)=>(ni(),oi(e,n)):ni;const Fd="",rc=["innerHTML"];function ic(e,n,t,o,r,i){const s=a.resolveComponent("skeleton");return e.loading?(a.openBlock(),a.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:a.normalizeStyle(e.style)},[a.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"ecan-text",style:a.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:n[0]||(n[0]=(...l)=>e.click&&e.click(...l))},null,12,rc))}const ai=ce(se(mo,[["render",ic],["__scopeId","data-v-7adbab5a"]])),lc=a.defineComponent({name:"EcanScrollText",setup(){return{text:a.ref("基础文本")}}}),Hd="",sc={class:"red"};function cc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",sc,a.toDisplayString(e.text),1)}const ri=ce(se(lc,[["render",cc],["__scopeId","data-v-4dd9c03e"]])),xo={...xe,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"}},yo=de(xo),ii=["timeChange"],fc=a.defineComponent({name:"EcanTimeDisplay",props:{...yo},setup(e){const n=he(e),t=()=>{const{format:c,operate:d}=e;let x=Ae();if(d){const{type:h,value:u,mode:m}=d;switch(h){case"add":x=x.add(u,m);break;case"minus":x=x.subtract(u,m)}}return x.format(c)},o=a.ref();a.watch(()=>[e.operate,e.format],()=>{o.value=t()},{immediate:!0,deep:!0}),a.watch(()=>e.updateInterval,()=>{f()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=ve(e)("timeChange",()=>{}),f=()=>{r&&i();let c=1e3;const{value:d,mode:x}=e.updateInterval||{};d&&(c=c*d);const h={second:1,minute:60,hour:60*60,day:24*60*60};x&&(c=c*h[x]),r=setInterval(()=>{o.value=t(),l()},c)};return Te(e,{timeChange:l}),a.onMounted(()=>{f()}),a.onUnmounted(()=>{i()}),{style:n,time:o}}}),Vd="";function dc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:"time-display",style:a.normalizeStyle(e.style)},a.toDisplayString(e.time),5)}const li=ce(se(fc,[["render",dc],["__scopeId","data-v-b628fca2"]])),po={...xe,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},bo=de(po),si=["refreshData","click"],uc=a.defineComponent({name:"EcanList",components:{Skeleton:Gt},props:{...bo},setup(e){const n=a.ref(e.data),t=he(e,["backgroundColor"]),o=a.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),r=(u,m)=>m==null||m===""?u:{money:co,percentage:tn,contrast:tn}[m](u)||"",i=(u,m)=>{const g=parseFloat(u+"");if(m!=="contrast")return"";switch(!0){case g>=0:return"goUp";case g<0:return"goDown"}},s=Ie(e),l=a.ref(!1),f=async()=>{var u;if(e.dataType==="request")try{l.value=!0;const m=await s();n.value=((u=m==null?void 0:m.data)==null?void 0:u.data.rows)||[]}catch(m){console.error(m)}finally{l.value=!1}},c=()=>{f()},x=ve(e)("click",()=>{});Te(e,{refreshData:c});const{setRequest:h}=a.inject(_e,{setRequest:({id:u,sortNum:m,requestFn:g})=>{}});return h({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:t,formatFn:r,columnStyle:o,contrastClass:i,dataSource:n,loading:l,click:x}}}),Gd="",Wd="",hc=e=>(a.pushScopeId("data-v-7aa27677"),e=e(),a.popScopeId(),e),gc={key:0,class:"title"},mc={key:0,class:"ranking"},xc={key:1,class:"ecan-list-content"},yc={key:0,class:"ranking"},pc=hc(()=>a.createElementVNode("div",{class:"icon"},null,-1)),bc={class:"sort"},vc={key:2,class:"empty"};function Sc(e,n,t,o,r,i){const s=a.resolveComponent("skeleton");return a.openBlock(),a.createElementBlock("div",{class:"ecan-list",style:a.normalizeStyle(e.style)},[a.createVNode(s,{loading:e.loading},{default:a.withCtx(()=>[e.useTitle?(a.openBlock(),a.createElementBlock("div",gc,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columnCount,l=>(a.openBlock(),a.createElementBlock("div",{class:"title-inner",style:a.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:l%e.columnCount!==0?e.itemColSpan:""}),key:l},[e.useRanking?(a.openBlock(),a.createElementBlock("div",mc)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columns,(f,c)=>(a.openBlock(),a.createElementBlock("div",{class:"column",key:f.key||c,style:a.normalizeStyle({color:f.titleColor,...e.columnStyle})},a.toDisplayString(f.title),5))),128))],4))),128))])):a.createCommentVNode("",!0),e.dataSource.length>0?(a.openBlock(),a.createElementBlock("div",xc,[e.useTitle?(a.openBlock(),a.createElementBlock("div",{key:0,class:"title-placeholder",style:a.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.dataSource.slice(0,e.sliceCount),(l,f)=>(a.openBlock(),a.createElementBlock("div",{class:"item",style:a.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(f+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan}),key:l.id||f,onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[e.useRanking?(a.openBlock(),a.createElementBlock("div",yc,[pc,a.createElementVNode("div",bc," Top "+a.toDisplayString(f+1),1)])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columns,c=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["column",e.contrastClass(l[c.key],c.format)]),key:c.key,style:a.normalizeStyle({fontSize:c.fontSize,color:e.contrastClass(l[c.key],c.format)===""?c.color:"",fontWeight:c.fontWeight,...e.columnStyle})},a.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(l[c.key],c.format)),7))),128))],4))),128))])):(a.openBlock(),a.createElementBlock("div",vc," 暂无数据 "))]),_:1},8,["loading"])],4)}const ci=ce(se(uc,[["render",Sc],["__scopeId","data-v-7aa27677"]])),vo={...xe,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},So=de(vo),fi=["refreshData","click"],wc=a.defineComponent({name:"EcanProportion",components:{AProgress:ae.Progress,Skeleton:Gt},props:{...So},setup(e,{expose:n}){const t=a.ref(!1),{pageMode:o}=a.inject(Re,{pageMode:"normal"}),r=he(e),i=a.computed(()=>{const p=e.width;return parseFloat(p)}),s=a.ref({});a.watch(()=>e.data,()=>{(e.dataType==="static"||a.unref(o)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=a.computed(()=>{const p=a.unref(s),T=+e.variableDefaultValue;if(p==null)return isNaN(T)?0:T;const w=e.text.match(/\{.+\}/g)||[];let C;const B=new Set(Object.keys(p));for(let _=0;_<w.length;_++){const v=w[_],E=v.slice(1,v.length-1);if(B.has(E)){C=p[E];break}}return typeof C=="number"?C=C*100:typeof C=="string"&&!isNaN(+C)?C=+C*100:isNaN(T)?C=0:C=T*100,e.decimalFormat&&(C=+C.toFixed(2)),C}),f=a.computed(()=>{var B;let p=e.text;if(p==="")return a.unref(l);const T=e.variableDefaultValue,w=a.unref(s),C=p.match(/\{.+\}/g)||[];for(let _=0;_<C.length;_++){const v=C[_];let E=v.slice(1,v.length-1);const z=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,k=v.match(z);for(let M=0;M<(k==null?void 0:k.length);M++){const D=(B=k[M])==null?void 0:B.trim();w[D]!=null&&(E=E.replace(D,w[D]))}let N=E;try{/\(.*\)/g.test(E)&&(N=nn(E))}catch(M){console.error(M)}typeof+N=="number"&&!isNaN(+N)?(N=+N*100,e.decimalFormat&&(N=N.toFixed(2))):N=T,p=p.replace(v,N+"")}return a.unref(t)?"NaN":p}),c=Ie(e),d=a.ref(!1),x=async()=>{var p;if(e.dataType==="request")try{d.value=!0;const T=await c();s.value=((p=T==null?void 0:T.data)==null?void 0:p.data)||{}}catch(T){console.error(T)}finally{d.value=!1}},h=(p={})=>{s.value=p},u=Ke(e),m=async()=>{var p;try{d.value=!0;const T=await u(),{data:w}=(T==null?void 0:T.data)||{};if(w){t.value=!1;const{columns:C=[],rows:B=[]}=((p=T==null?void 0:T.data)==null?void 0:p.data)??{};let _={};if(C.length>0){const v=C.find(E=>!!E);v&&(_={percent:B[v]})}h(_)}else t.value=!0,h({percent:"NaN"})}catch(T){console.error(T)}finally{d.value=!1}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":x();break}};Te(e,{refreshData:g}),n({refreshData:g});const A=ve(e)("click",()=>{}),{setRequest:y}=a.inject(_e,{setRequest:({id:p,sortNum:T,requestFn:w})=>{}});typeof y=="function"&&y({id:e.id,requestFn:g,sortNum:e.requestSort});const b=a.computed(()=>{const{gradientShow:p,gradientColor:T,gradientOffset:w,strokeColor:C}=e;let B=C;return p&&T&&(B={"0%":C,[`${w*100}%`]:T}),B});return{style:r,myWidth:i,text:f,myValue:l,loading:d,click:A,customStrokeColor:b}}}),$d="";function Cc(e,n,t,o,r,i){const s=a.resolveComponent("skeleton"),l=a.resolveComponent("a-progress");return a.openBlock(),a.createElementBlock("div",{class:"ecan-proportion",style:a.normalizeStyle(e.style)},[a.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:a.withCtx(()=>[e.loading?(a.openBlock(),a.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(a.openBlock(),a.createElementBlock("div",{key:1,class:"format",style:a.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},a.toDisplayString(e.text),5)):a.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const di=ce(se(wc,[["render",Cc],["__scopeId","data-v-cf942b5f"]])),wo={...xe,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Co=de(wo),ui=["inputChange","inputBlur"],Ac=a.defineComponent({name:"EcanInput",components:{AInput:ae.Input},props:{...Co},setup(e){const n=he(e),t=a.ref("");a.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:o,setGlobalModel:r}=a.inject(we,{getGlobalModel:c=>{},setGlobalModel:(c,d)=>{}});r(e.id,{type:e.type,value:t});const i=()=>{const c=o(e.id);r(e.id,{...c,RECORD:t})},s=ve(e),l=je.debounce(s("inputChange",()=>{i()}),300),f=s("inputBlur",()=>{});return{style:n,myValue:t,inputBlur:f,inputChange:l}}}),Yd="";function kc(e,n,t,o,r,i){const s=a.resolveComponent("a-input");return a.openBlock(),a.createElementBlock("div",{class:"ecan-input",style:a.normalizeStyle(e.style)},[a.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:a.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const hi=ce(se(Ac,[["render",kc]])),Ao={...xe,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px"},ko=de(Ao),gi=["dateChange"],To=a.defineComponent({name:"EcanDatePicker",props:{...ko},components:{ADatePicker:ae.DatePicker},setup(e){const n=a.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=he(e),o=()=>document.getElementById("ProviderConfig")||document.body,r=a.ref(null);a.watch(()=>[e.value,e.useCurrentTime,e.operate],([h,u,m])=>{let g=null;if(h?g=Ae(Se(h)):u&&(g=Ae()),m&&g){const{type:S,value:A,mode:y}=m;switch(S){case"add":g=g.add(A,y);break;case"minus":g=g.subtract(A,y)}}r.value=g},{deep:!0,immediate:!0});const{setGlobalModel:i}=a.inject(we,{setGlobalModel:(h,u)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=ve(e)("dateChange",()=>{}),f=()=>{a.unref(r)&&l()};Te(e,{dateChange:l});const c=a.ref({}),d=a.ref({}),x=h=>{h?setTimeout(()=>{d.value=a.unref(c)},300):d.value={}};return a.onMounted(()=>{setTimeout(()=>{const h=document.querySelector(`#ecan-date-picker-${e.id}`);if(h){const u=h.getBoundingClientRect(),m=parseFloat(a.unref(n).widthScale)*280;document.body.clientWidth-u.left<m&&(c.value.marginLeft=-1*(m-u.width)+"px")}},0)}),{style:t,getPopupContainer:o,myValue:r,locale:ya,change:f,scaleValue:n,popupStyle:c,customStyle:d,openChange:x}}}),mi=()=>{a.useCssVars(e=>({"09dfdb0c":e.optionFontSize}))},xi=To.setup;To.setup=xi?(e,n)=>(mi(),xi(e,n)):mi;const Xd="",Qd="",Tc=["id"];function Ec(e,n,t,o,r,i){const s=a.resolveComponent("a-date-picker");return a.openBlock(),a.createElementBlock("div",{class:"ecan-date-picker",style:a.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[a.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[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,Tc)}const yi=ce(se(To,[["render",Ec],["__scopeId","data-v-67056087"]])),Eo={...xe,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},Bo=de(Eo),pi=["dateChange"];var bi={exports:{}};(function(e,n){(function(t,o){e.exports=o()})(re,function(){var t="month",o="quarter";return function(r,i){var s=i.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,d){return c=Number(c),this.$utils().p(d)===o?this.add(3*c,t):l.bind(this)(c,d)};var f=s.startOf;s.startOf=function(c,d){var x=this.$utils(),h=!!x.u(d)||d;if(x.p(c)===o){var u=this.quarter()-1;return h?this.month(3*u).startOf(t).startOf("day"):this.month(3*u+2).endOf(t).endOf("day")}return f.bind(this)(c,d)}}})})(bi);var Bc=bi.exports;const _c=Ua(Bc);Ae.extend(_c);const _o=a.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ae.RangePicker},props:{...Bo},setup(e){const n=he(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=a.ref([null,null]);a.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([b,p,T,w,C,B])=>{let _=null,v=null;if(T&&(_=Ae().subtract(w,C),v=Ae()),b&&(_=Ae(Se(b))),p&&(v=Ae(Se(p))),B){const{type:E,value:z,mode:k}=B;switch(E){case"add":_=_&&_.add(z,k),v=v&&v.add(z,k);break;case"minus":_=_&&_.subtract(z,k),v=v&&v.subtract(z,k)}}o.value=[_,v]},{immediate:!0});let r=a.unref(o)[0],i=a.unref(o)[1],s="";const l=(b,p,T)=>{Array.isArray(b)?(r=b[0],i=b[1],s=T.range):(r=null,i=null)},f=b=>{let p=!1,{limitStartTime:T,limitEndTime:w}=e;const C={startTime:`${r||""}`,endTime:`${i||""}`};if(T=Se(T,{codeData:C}),w=Se(w,{codeData:C}),T&&w?p=!(Ae(T)<b&&b<Ae(w)):T?p=Ae(T)>b:w&&(p=Ae(w)<b),!e.isAllowSpanYear&&s){let B=null;if(s==="start"?B=r:s==="end"&&(B=i),B){const _=B.startOf("year"),v=B.endOf("year");p=!(_<=b&&b<v)}}return p},{getGlobalModel:c,setGlobalModel:d}=a.inject(we,{getGlobalModel:b=>{},setGlobalModel:(b,p)=>{}}),x=a.computed(()=>Array.isArray(a.unref(o))?a.unref(o)[0]:null),h=a.computed(()=>Array.isArray(a.unref(o))?a.unref(o)[1]:null);d(e.id,{type:e.type,format:e.format,startTime:x,endTime:h});const u=ve(e);let m=!1;const g=u("dateChange",()=>{}),S=b=>{const p=a.unref(o),T=p&&p[0]&&p[1];b===!1&&m===!0&&T&&(g(),m=!1),b||(s="")},A=()=>{m=!0};return Te(e,{dateChange:()=>{const{associated:b}=e;if(b){const p=c(b)||{};if(p){const{value:T}=p;if(T)switch(a.unref(T)){case"month":o.value=[Ae().startOf("month"),Ae().endOf("month")];break;case"quarter":o.value=[Ae().startOf("quarter"),Ae().endOf("quarter")];break;case"year":o.value=[Ae().startOf("year"),Ae().endOf("year")];break}}}g()}}),{style:n,getPopupContainer:t,locale:ya,dateChange:g,myValue:o,disabledDate:f,calendarChange:l,openChange:S,change:A}}}),vi=()=>{a.useCssVars(e=>({"454f10ac":e.optionFontSize}))},Si=_o.setup;_o.setup=Si?(e,n)=>(vi(),Si(e,n)):vi;const e1="",t1="";function Dc(e,n,t,o,r,i){const s=a.resolveComponent("a-range-picker");return a.openBlock(),a.createElementBlock("div",{class:"ecan-range-picker",style:a.normalizeStyle(e.style)},[a.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[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 wi=ce(se(_o,[["render",Dc],["__scopeId","data-v-ca49f365"]])),Do={...xe,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"},Ro=de(Do),Ci=["click"],Rc=a.defineComponent({name:"EcanButton",components:{AButton:ae.Button},props:{...Ro},setup(e){const n=he(e),o=ve(e)("click",()=>{const f=a.unref(s);f&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:f},"*")}),r=a.computed(()=>{const f={};return e.mode!=="primary"&&(f.backgroundColor=e.buttonBackgroundColor||"transparent",f.color=e.tooltipTextStyleColor,f.borderColor=e.borderColor||"transparent"),{height:e.height,...f}}),i=a.computed(()=>Se(e.text)),s=a.computed(()=>Se(e.href)||null),l=a.computed(()=>{const f=e.target;if(!(f==="event"||a.unref(s)==null))return{self:"_self",blank:"_blank"}[f]});return{style:n,click:o,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),o1="";function Ic(e,n,t,o,r,i){const s=a.resolveComponent("a-button");return a.openBlock(),a.createElementBlock("div",{class:"ecan-button",style:a.normalizeStyle(e.style)},[a.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:a.normalizeStyle(e.buttonStyle),class:a.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:a.withCtx(()=>[a.createElementVNode("span",{style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Ai=ce(se(Rc,[["render",Ic]])),Io={...xe,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:{}},Oo=de(Io),ki=["checkboxChange"],Oc=a.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ae.CheckboxGroup},props:{...Oo},setup(e,{expose:n}){const t=he(e),o=a.ref([]),r=a.ref([]),i=S=>{const A=e.value;let y=[];S.forEach(b=>{b.checked&&y.push(b.value)}),typeof A=="string"&&A!==""?y=y.concat(A.split(",")):Array.isArray(A)&&(y=y.concat(A)),o.value=S,r.value=y};a.watch(()=>[e.data,e.value],([S])=>{i(S)},{immediate:!0,deep:!0});const s=Ie(e),l=async()=>{var y,b;if(e.dataType!=="request")return;const S=await s(),A=((b=(y=S==null?void 0:S.data)==null?void 0:y.data)==null?void 0:b.rows)||[];i(A)},{getGlobalModel:f,setGlobalModel:c}=a.inject(we,{getGlobalModel:S=>{},setGlobalModel:(S,A)=>{}});c(e.id,{type:e.type,value:r});const x=ve(e)("checkboxChange",()=>{const S=f(e.id);c(e.id,{...S,RECORD:r})}),h=Ke(e),u=async()=>{var S;try{const A=await h(),{data:y}=(A==null?void 0:A.data)||{};if(y){const p=(((S=A==null?void 0:A.data)==null?void 0:S.data)??[]).map(T=>({label:T.label,value:T.value}));i(p)}else i([])}catch(A){console.error(A)}},m=()=>{switch(e.dataType){case"indicator":u();break;case"request":l();break}},{setRequest:g}=a.inject(_e,{setRequest:({id:S,sortNum:A,requestFn:y})=>{}});return typeof g=="function"&&g({id:e.id,requestFn:m,sortNum:e.requestSort}),n({refreshData:m}),{myOption:o,style:t,myValue:r,checkboxChange:x}}}),r1="";function Lc(e,n,t,o,r,i){const s=a.resolveComponent("a-checkbox-group");return a.openBlock(),a.createElementBlock("div",{class:"ecan-checkbox",style:a.normalizeStyle(e.style)},[a.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Ti=ce(se(Oc,[["render",Lc]])),Lo={...xe,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"},No=de(Lo),Ei=["selectChange","refreshData"],Nc=a.defineComponent({name:"EcanSelect",components:{ASelect:ae.Select,ASelectOption:ae.SelectOption},props:{...No},setup(e,{expose:n}){const t=he(e),o=()=>document.getElementById("ProviderConfig")||document.body,r=Ie(e),i=a.ref(e.data||[]),s=a.ref(),l=a.computed({get:()=>{var N;const{mode:k}=e;return(N=a.unref(i))!=null&&N.length?s.value:k==="multiple"||k==="tags"||k==="combobox"?[]:""},set:k=>{s.value=k}});a.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:k,selectFirstOption:N,value:M}=e;k==="multiple"||k==="tags"||k==="combobox"?M?s.value=M.split(","):N&&(s.value=[a.unref(i)[0]]):M?s.value=M:N&&(s.value=a.unref(i)[0])},{immediate:!0});const f=e.dataFieldNames,c=(k,N)=>{const M=f.label,D=f.value;let q;const I=N[M],R=N[D];return I!=null?q=I:R!=null&&(q=R),(q==null?void 0:q.toLowerCase().indexOf(k==null?void 0:k.toLowerCase()))>=0},d=k=>{const{label:N,value:M,options:D}=e.dataFieldNames;if(D&&Array.isArray(k))if(k.some(q=>D in q)){const q={},I=[];k.forEach(R=>{q[R[D]]||(q[R[D]]=[]),q[R[D]].push({[N]:R[N],[M]:R[M]})});for(const R in q)I.push({[N]:R,[D]:q[R]});return I}else return k;else if(!D)return k},x=a.ref(!1),h=async()=>{var k,N;if(e.dataType==="request"){x.value=!0;try{const M=await r();if(i.value=d(((N=(k=M==null?void 0:M.data)==null?void 0:k.data)==null?void 0:N.rows)||[]),e.selectFirstOption){let D=a.unref(i)[0];if(f.options){const q=D[f.options];q&&q.length&&(D=q[0])}s.value=D[f.value]}}catch(M){console.error(M)}finally{x.value=!1}}},{getGlobalModel:u,setGlobalModel:m}=a.inject(we,{getGlobalModel:k=>{},setGlobalModel:(k,N)=>{}}),{setLoadedData:g,loadedData:S}=a.inject(Va,{setLoadedData:(k,N)=>{},loadedData:{}}),A=a.computed(()=>{let k=s.value;if(e.valueType==="label"&&a.unref(s)&&a.unref(i)){const N=f.label,M=f.value;if(e.mode==="multiple")k=a.unref(i).filter(D=>a.unref(s).includes(D[M])).map(D=>D[N]);else{const D=a.unref(i).find(q=>a.unref(s)===q[M]);D&&(k=D[N])}}return k}),y=a.ref([]),b=a.computed(()=>{const k={};if(e.mode!=="multiple"){const N=a.unref(y).find(M=>M.value===a.unref(s));N&&(k.itemCodes=N.item_codes)}return k});m(e.id,{type:e.type,value:A,...a.unref(b)});const T=ve(e)("selectChange",()=>{const k=e.id,N=u(k);m(k,{...N,...a.unref(b),RECORD:A})}),w=(k=[])=>{if(i.value=d(k),e.selectFirstOption){let N=a.unref(i)[0];if(f.options){const M=N[f.options];M&&M.length&&(N=M[0])}s.value=N[f.value]}},C=Ke(e),B=async()=>{var k;try{x.value=!0;const N=await C(),{data:M}=(N==null?void 0:N.data)||{},D=f.label,q=f.value;if(M){const I=((k=N==null?void 0:N.data)==null?void 0:k.data)??[];y.value=I;const R=I.map(P=>({[D]:P.label,[q]:P.value})),{id:H}=e,L=u(H);m(H,{...L,...a.unref(b)}),g(H,!0),w(R)}else w([])}catch(N){console.error(N)}finally{x.value=!1}},_=a.computed(()=>{var k,N;return(N=(k=e==null?void 0:e.graphicConfig)==null?void 0:k.controlList)==null?void 0:N.find(M=>M.mode==="cascade")}),v=a.ref(!1);a.watch(S,k=>{!a.unref(v)&&a.unref(_)&&k[a.unref(_).id]&&(v.value=!0,E())},{deep:!0});const E=()=>{switch(e.dataType){case"indicator":{a.unref(_)?a.unref(S)[a.unref(_).id]&&B():B();break}case"request":h();break}};Te(e,{selectChange:T,refreshData:E});const{setRequest:z}=a.inject(_e,{setRequest:({id:k,sortNum:N,requestFn:M})=>{}});return typeof z=="function"&&z({id:e.id,requestFn:E,sortNum:e.requestSort}),n({refreshData:E}),{style:t,getPopupContainer:o,myValue:s,selectChange:T,options:i,filterOption:c,loading:x,resultValue:l}}}),l1="",s1="";function zc(e,n,t,o,r,i){const s=a.resolveComponent("a-select-option"),l=a.resolveComponent("a-select");return a.openBlock(),a.createElementBlock("div",{class:"ecan-select",style:a.normalizeStyle(e.style)},[a.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":n[0]||(n[0]=f=>e.resultValue=f),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:a.normalizeStyle({fontSize:e.optionFontSize})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.options,(f,c)=>(a.openBlock(),a.createBlock(s,{key:c,value:f.value,label:f.label,style:a.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 Bi=ce(se(Nc,[["render",zc],["__scopeId","data-v-e59f5cca"]])),zo={...xe,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},Mo=de(zo),_i=["selectChange","refreshData"],Mc={name:"EcanTreeSelect",components:{ATreeSelect:ae.TreeSelect},props:{...Mo},setup(e){const n=he(e),t=a.ref(e.data),o=(u,m)=>{const g=e.dataFieldNames,S=g.label,A=g.value;let y;const b=m[S],p=m[A];return b!=null?y=b:p!=null&&(y=p),(y==null?void 0:y.toLowerCase().indexOf(u==null?void 0:u.toLowerCase()))>=0},r=a.ref();a.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:u,value:m,selectFirstOption:g}=e;u?m?r.value=m.split(","):g&&(r.value=[a.unref(t)[0]]):m?r.value=m:g&&(r.value=a.unref(t)[0])},{immediate:!0});const i=a.ref(!1),s=Ie(e),l=async()=>{var u,m;if(e.dataType==="request"){i.value=!0;try{const g=await s();t.value=((m=(u=g==null?void 0:g.data)==null?void 0:u.data)==null?void 0:m.rows)||[];const S=a.unref(t)[0];e.value===""&&S!=null&&(r.value=S[e.dataFieldNames.value])}catch(g){console.error(g)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=a.inject(we,{getGlobalModel:u=>{},setGlobalModel:(u,m)=>{}});c(e.id,{type:e.type,value:r});const x=ve(e)("selectChange",()=>{const u=e.id,m=f(u);c(u,{...m,RECORD:r})});Te(e,{selectChange:x,refreshData:l});const{setRequest:h}=a.inject(_e,{setRequest:({id:u,sortNum:m,requestFn:g})=>{}});return h({id:e.id,requestFn:l,sortNum:e.reque}),{style:n,treeData:t,filterTreeNode:o,myValue:r,loading:i,selectChange:x}}},f1="",d1="";function Fc(e,n,t,o,r,i){const s=a.resolveComponent("a-tree-select");return a.openBlock(),a.createElementBlock("div",{class:"ecan-tree-select",style:a.normalizeStyle(o.style)},[a.createVNode(s,{class:"tree-select",value:o.myValue,"onUpdate:value":n[0]||(n[0]=l=>o.myValue=l),allowClear:"",showSearch:"",loading:o.loading,fieldNames:e.dataFieldNames,treeData:o.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:o.filterTreeNode,placeholder:e.placeholder,onChange:o.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const Di=ce(se(Mc,[["render",Fc],["__scopeId","data-v-37236421"]])),Fo={...xe,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",graphicConfig:{}},Po=de(Fo),Ri=["checkboxChange","click"],Pc=a.defineComponent({name:"EcanRadio",components:{ARadioGroup:ae.RadioGroup,ARadioButton:ae.RadioButton,ARadio:ae.Radio},props:{...Po},setup(e,{expose:n}){const t=he(e),o=a.ref([]),r=a.ref(""),i=A=>{const y=e.value;let b=[];A.forEach(p=>{p.checked&&b.push(p.value)}),typeof y=="string"&&y!==""?b=b.concat(y.split(",")):Array.isArray(y)&&(b=b.concat(y)),o.value=A,r.value=b[0]||""};a.watch(()=>[e.data,e.value],([A])=>{i(A)},{immediate:!0,deep:!0});const s=Ie(e),l=async()=>{var b,p;if(e.dataType!=="request")return;const A=await s(),y=((p=(b=A==null?void 0:A.data)==null?void 0:b.data)==null?void 0:p.rows)||[];i(y)},{getGlobalModel:f,setGlobalModel:c}=a.inject(we,{getGlobalModel:A=>{},setGlobalModel:(A,y)=>{}});c(e.id,{type:e.type,value:r});const d=ve(e),x=d("checkboxChange",()=>{const A=f(e.id);c(e.id,{...A,RECORD:r})}),h=A=>{r.value=A,d("click",()=>{const y=f(e.id);c(e.id,{...y,RECORD:r})})()};a.watch(r,()=>{x()});const u=Ke(e),m=async()=>{var A;try{const y=await u(),{data:b}=(y==null?void 0:y.data)||{};if(b){const T=(((A=y==null?void 0:y.data)==null?void 0:A.data)??[]).map(w=>({label:w.label,value:w.value}));i(T)}else i([])}catch(y){console.error(y)}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:S}=a.inject(_e,{setRequest:({id:A,sortNum:y,requestFn:b})=>{}});return typeof S=="function"&&S({id:e.id,requestFn:g,sortNum:e.requestSort}),n({refreshData:g}),{myOption:o,style:t,myValue:r,onClickButton:h}}}),h1="";function Hc(e,n,t,o,r,i){const s=a.resolveComponent("a-radio"),l=a.resolveComponent("a-radio-button"),f=a.resolveComponent("a-radio-group");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ecan-radio",e.optionType]),style:a.normalizeStyle(e.style)},[a.createVNode(f,{value:e.myValue,"onUpdate:value":n[0]||(n[0]=c=>e.myValue=c)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.myOption,c=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:c.value},[e.optionType==="default"?(a.openBlock(),a.createBlock(s,{key:0,checked:c.checked,value:c.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c.label),1)]),_:2},1032,["checked","value"])):e.optionType==="button"?(a.openBlock(),a.createBlock(l,{key:1,checked:c.checked,value:c.value,onClick:d=>e.onClickButton(c.value)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c.label),1)]),_:2},1032,["checked","value","onClick"])):a.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"])],6)}const Ii=ce(se(Pc,[["render",Hc]])),Ho={...xe,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",graphicType:"ecanPie"},qo=de(Ho),Oi=["click","refreshData","resetRecord"],It=async e=>{var f;const n=await Qe.post(e,{},{responseType:"blob"}),{data:t,headers:o}=n,r=o["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),s=document.createElement("a"),l=window.URL.createObjectURL(i);s.href=l,s.download=decodeURI(r),s.style.display="none",document.body.appendChild(s),s.click(),(f=s.parentNode)==null||f.removeChild(s),window.URL.revokeObjectURL(l)},Vo={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"},jo=de(Vo),Li=["showModal"];function Ni(e){var o,r;const{componentList:n,containerMap:t}=e;if((o=Object.keys(t))!=null&&o.length){for(const i in t){const s=n.find(l=>l.id===i);if(s&&(Yr(s,"parentId")||(s.parentId="",s.sourceLeft=s.left,s.sourceTop=s.top),(r=t[i][0])!=null&&r.length))for(const l of t[i][0]){const f=n.find(c=>c.id===l);f&&(f.parentId=i,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(s.sourceLeft||s.left)+"px",f.top=parseFloat(f.top)-parseFloat(s.sourceTop||s.top)+"px")}}for(const i of n){const s=document.body.clientWidth;if(i.parentId===""&&i.type==="ecanBorder")i.sourceWidth=parseFloat(i.width),i.height=(s/(i.sourceWidth/parseFloat(i.height))).toFixed(2)+"px",i.width="100%",i.position="relative",i.top="auto",i.left="auto";else{const l=n.find(f=>f.id===i.parentId);if((l==null?void 0:l.parentId)===""){const f=l.sourceWidth||parseFloat(l.width),c=s/f;i.scale=c,i.top=parseFloat(i.top)*c-parseFloat(i.height)*(1-c)/2+"px",i.left=parseFloat(i.left)*c-parseFloat(i.width)*(1-c)/2+"px"}}i.type==="ecanModal"&&(i.parentId="",i.fullModal=!0)}return qc(n)}return n}function qc(e){const t=e.filter(o=>o.parentId==="");if(t!=null&&t.length){const o=je.cloneDeep(t).map(r=>({...r,sourceTop:parseFloat(r.sourceTop),sourceLeft:parseFloat(r.sourceLeft)}));for(let r=0;r<o.length-1;r++)for(let i=0;i<o.length-r-1;i++){let s=!1;if((o[i].sourceTop-o[i+1].sourceTop>50||Math.abs(o[i+1].sourceTop-o[i].sourceTop)<=50&&o[i].sourceLeft>o[i+1].sourceLeft)&&(s=!0),s){const l=o[i];o[i]=o[i+1],o[i+1]=l}}for(const r of o){const i=e.findIndex(s=>s.id===r.id);i!==-1&&e.splice(i,1)}return[...o,...e]}return e}const Vc=a.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:n}){n("ready",e.component.id)}});function jc(e,n,t,o,r,i){return e.component.parentId?(a.openBlock(),a.createBlock(a.Teleport,{key:0,to:"#container_"+e.component.parentId},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.component.type),a.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.component.type),a.normalizeProps(a.mergeProps({key:1},e.component)),null,16))}const Gc=ce(se(Vc,[["render",jc]])),Wc=a.defineComponent({name:"EcanModal",components:{AModal:ae.Modal,CloseOutlined:Il,Render:Gc},props:{...jo},setup(e,{emit:n}){const t=a.ref([]),o=a.inject("isMobile",!1),r=a.inject("getContainerMap",()=>{}),{clearInteractiveData:i,interactiveData:s}=a.inject(we,{clearInteractiveData:()=>{},interactiveData:null}),l=()=>document.getElementById("ProviderConfig")||document.body,f=a.computed(()=>{const j=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[j]}}),c=e.fullModal?"1920px":e.width,d=e.fullModal?"1080px":e.height,x=e.originalWidth,h=e.originalHeight,u=a.ref("80%"),m=a.ref(0),g=a.ref(),S=a.ref(0),A=a.ref({}),y=he(e),b=a.ref({}),p=a.ref(!1),T=a.ref();let w;const C=()=>{g.value=parseFloat(c)/parseFloat(x);const j=parseFloat(d)/parseFloat(h),ee=document.body.offsetWidth,oe=document.body.offsetHeight;m.value=ee*a.unref(g),S.value=oe*j,u.value=`${a.unref(g)*100}%`,A.value={width:`${a.unref(m)}px`,height:`${a.unref(S)}px`},b.value={...a.unref(y),backgroundImage:yt(e.backgroundImage,!0)},o?b.value={...b.value,width:"100%",height:"100%"}:b.value={...b.value,transform:`scale(${a.unref(m)/parseFloat(c)},${a.unref(S)/parseFloat(d)})`,width:c,height:d}},B=je.debounce(()=>{C()},100),_=()=>{const j=window.MutationObserver;w=new j(B),w.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},v=()=>{w&&(w.disconnect(),w.takeRecords(),w=null)},E=a.ref(!1),{touchRequest:z}=a.inject(_e,{touchRequest:()=>{}}),k=a.ref(""),N=()=>{var oe;console.log("interactiveData",s);const{title:j}=e,ee=(oe=a.unref(s))==null?void 0:oe.RECORD;return ee?Se(j,{textData:ee},{useNewline:!1,useSpace:!1}):j},M=()=>{o&&(document.documentElement.style.overflow="hidden"),k.value=N(),E.value=!0},D=()=>{n("close"),o&&(document.documentElement.style.overflow="hidden auto",t.value=[]),E.value=!1},q=()=>{D()},I=()=>{D(),i()},{setModalModel:R,pushUseModalIds:H,popUseModalIds:L}=a.inject(qa,{pushUseModalIds:j=>{},popUseModalIds:()=>{},setModalModel:(j,ee)=>{}}),P=a.computed(()=>{if(o){const j=je.cloneDeep(e.componentList),ee=r();return Ni({componentList:j,containerMap:ee})}else return e.componentList}),O=()=>{const j=e.id;let ee=[];const oe=e.componentList;Array.isArray(oe)&&(ee=oe.map(pe=>pe.id),R(j,[...new Set(ee)]))};a.watch(()=>E.value,async j=>{j?(p.value=!1,H(e.id),O(),await a.nextTick(()=>{C(),window.addEventListener("resize",B),_(),p.value=!0}),z()):(L(),window.removeEventListener("resize",B),v())});const F=a.computed(()=>a.unref(g)>=1),Y=a.computed(()=>e.fullModal),U=a.computed(()=>{let j="ecan-modal";return a.unref(F)&&(j+=" ecan-full-width-modal"),a.unref(Y)&&(j+=" ecan-full-modal"),j});return Te(e,{showModal:M}),{modalRef:T,containStyle:A,contentStyle:b,getContainer:l,modalStyle:f,modalWith:u,isFullModal:Y,style:y,visible:E,showModal:M,onOk:q,onCancel:I,isFullWidth:F,wrapClassName:U,ready:p,usedComponentList:P,isMobile:o,readyIds:t,hasOwn:Yr,onComponentReady:j=>{t.value.push(j)},formatTitle:k}}}),x1="",y1="";function Uc(e,n,t,o,r,i){const s=a.resolveComponent("close-outlined"),l=a.resolveComponent("render"),f=a.resolveComponent("a-modal");return a.openBlock(),a.createBlock(f,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:a.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"contain",ref:"containRef",style:a.normalizeStyle(e.containStyle)},[e.ready?(a.openBlock(),a.createElementBlock("div",{key:0,class:"content",style:a.normalizeStyle(e.contentStyle)},[a.createElementVNode("div",{class:"header-bar",style:a.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(a.openBlock(),a.createElementBlock("div",{key:0,class:"ant-modal-title",style:a.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},a.toDisplayString(e.formatTitle),5)):a.createCommentVNode("",!0),a.createVNode(s,{class:"close-icon",onClick:e.onCancel},null,8,["onClick"])],4),e.usedComponentList.length?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.isMobile?"mobile-wrap":"")},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.usedComponentList,(c,d)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:c.id+d},[e.isMobile?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(a.openBlock(),a.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):a.createCommentVNode("",!0)],64)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.type),a.normalizeProps(a.mergeProps({key:1},c)),null,16))],64))),128))],2)):a.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):a.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const ft=ce(se(Wc,[["render",Uc],["__scopeId","data-v-94800d97"]]));Fe.use([gt.CanvasRenderer,et.PieChart,me.TitleComponent,me.ToolboxComponent,me.TooltipComponent,me.LegendComponent]);const $c=a.defineComponent({name:"EcanPie",props:{...qo},components:{Spin:vt,Echarts:at,EcanModal:ft},setup(e,{expose:n}){const t=a.ref(!1),o=he(e),r=a.ref([]),i=a.ref(),s=a.ref({}),l=a.computed(()=>{let{data:_=[]}=a.unref(r)[0]||{};if(Array.isArray(e.colors)){const v=e.isUseLabelColors,E=e.colors;_=_.map((z,k)=>({label:v?{color:E[k]}:{},...z}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){It(e.toolboxDownloadUrl)}},myDataZoom:{show:t.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;t.value=!0,(v=i.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(){ae.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:v=>{const{marker:E,seriesName:z,name:k,value:N,percent:M,data:D}=v||{};return Se(e.tooltipFormatter,{textData:{marker:E,name:k,value:N,percent:M,a:z,b:k,c:N,d:M,...D}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:a.unref(s),color:e.colors,series:[{data:_,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!1,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:t.value?Ze:e.labelFontSize,position:e.labelPosition,formatter:Ys(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),f=()=>{s.value={show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{color:e.legendTextStyleColor,fontSize:t.value?Ze:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:_=>{console.log("name",_);const{data:v}=r.value[0]||{};let E;if(v){const z=v.find(k=>k.name===_);z&&(E=z.value)}return Se(e.legendFormatter,{textData:{name:_,value:E}},{useNewline:!1,useSpace:!1})}}},c=()=>{t.value=!1},{getGlobalModel:d,setGlobalModel:x}=a.inject(we,{getGlobalModel:_=>{},setGlobalModel:(_,v)=>{}}),{pageMode:h}=a.inject(Re,{pageMode:"normal"}),u=(_=[],v)=>{const{dataset:E}=St(_,v);r.value=E},m=(_=[],v)=>{const E=St(_,v);r.value=E.dataset};a.watch(()=>e.data,_=>{(e.dataType==="static"||a.unref(h)==="design")&&u(_)},{immediate:!0,deep:!0}),a.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize],()=>{f()},{immediate:!0});const g=a.ref(!1),S=Ie(e),A=async()=>{var _,v;if(e.dataType==="request")try{g.value=!0;const E=await S();u((v=(_=E==null?void 0:E.data)==null?void 0:_.data)==null?void 0:v.rows,e.valueTypeDataFieldNames)}catch(E){console.error(E)}finally{g.value=!1}},b=ve(e)("click",_=>{const v=d(e.id);x(e.id,{...v,RECORD:_==null?void 0:_.data})}),p=Ke(e),T=async()=>{var _;try{g.value=!0;const v=await p(),{data:E}=v.data||{};if(E){const{columns:z=[],rows:k=[]}=((_=v==null?void 0:v.data)==null?void 0:_.data)??{};let N=[];if(z.length>0){const M=z[0],D=z[1];N=k.map(q=>({name:q[M],value:isNaN(q[D])?0:q[D]||0}))}m(N)}}catch(v){console.error(v)}finally{g.value=!1}},w=()=>{switch(e.dataType){case"indicator":T();break;case"request":A();break}};Te(e,{resetRecord:()=>{const _=e.id,v=d(_);x(_,{...v,RECORD:""})},refreshData:w,click:b}),n({refreshData:w});const{setRequest:B}=a.inject(_e,{setRequest:_=>{}});return typeof B=="function"&&B({id:e.id,requestFn:w,sortNum:e.requestSort}),{option:l,style:o,click:b,onClose:c,loading:g,ecanModal:i}}}),b1="";function Zc(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const zi=ce(se($c,[["render",Zc]])),Go={...xe,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",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"},Wo=de(Go),Mi=["click","refreshData","resetRecord"];Fe.use([gt.CanvasRenderer,et.LineChart,me.ToolboxComponent,me.TitleComponent,me.LegendComponent]);const Yc=a.defineComponent({name:"EcanLine",props:{...Wo},components:{Spin:vt,Echarts:at,EcanModal:ft},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=he(e),i=a.ref([]),s=a.ref([]),l=a.ref(),f=a.computed(()=>o.value?Ze:12),c=a.ref({});let d;const x=a.ref([]),h=a.computed(()=>{const N=e.xAxisLabelFormatter,M=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){It(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var D;o.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(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:f.value},show:e.tooltipShow,formatter:D=>{var H;const q=D.length;let I="",R=e.tooltipFormatter;d=(H=D[0])==null?void 0:H.data,R===""&&(R="{marker} {a} {c}");for(let L=0;L<q;L++){const{marker:P,seriesName:O,name:F,value:Y,data:U}=D[L]||{};if(L===0){let Z=F;typeof F=="string"&&F[0]==="0"&&!isNaN(+F)&&(Z=(+F).toString()),I+=`${Ue(N,Z)}<br/>`}I+=Se(R,{textData:{marker:P,name:F,value:Y,a:O,b:F,c:Y||0,...U}},{useNewline:!0,useSpace:!0}),I+="<br/>"}return I}},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:a.unref(s).map(D=>{let q={};return D&&typeof D=="object"?q={...D}:q={value:D},q}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(D){return typeof D=="string"&&D[0]==="0"&&!isNaN(+D)&&(D=(+D).toString()),Ue(N,D)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},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(D){return Ue(M,D)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:o.value?Ze:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(x).map(D=>({name:D.name,icon:e.legendType}))},series:a.unref(i)}}),u=()=>{o.value=!1},{getGlobalModel:m,setGlobalModel:g}=a.inject(we,{getGlobalModel:N=>{},setGlobalModel:(N,M)=>{}}),{pageMode:S}=a.inject(Re,{pageMode:"normal"}),A=(N=[],M=!1)=>{let D;if(e.dataFieldConfigType==="key"){const H=M?e.keyTypeDataFieldNames:null;D=ct(N,H)}else if(e.dataFieldConfigType==="value"){const H=M?e.valueTypeDataFieldNames:null;D=St(N,H)}s.value=D.dimensions,x.value=D.dataset;const q=D.dataset,I=[],R=q.length;for(let H=0;H<R;H++){const L={};e.shadowColor&&(L.shadowColor=e.shadowColor,L.shadowBlur=e.shadowBlur,L.shadowOffsetY=e.shadowOffsetY,L.shadowOffsetX=e.shadowOffsetX),I.push({type:"line",...q[H],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[H]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[H],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...L}})}i.value=I},y=(N=[],M,D=!1)=>{const I=ct(N,D?M:null,!0);s.value=I.dimensions,x.value=I.dataset;const R=I.dataset,H=[],L=R.length;for(let P=0;P<L;P++){const O={};e.shadowColor&&(O.shadowColor=e.shadowColor,O.shadowBlur=e.shadowBlur,O.shadowOffsetY=e.shadowOffsetY,O.shadowOffsetX=e.shadowOffsetX),H.push({type:"line",...R[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,...O}})}i.value=H};a.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],([N])=>{(e.dataType==="static"||a.unref(S)==="design")&&A(N)},{immediate:!0,deep:!0});const b=a.ref(!1),p=Ie(e),T=async()=>{var N,M;if(e.dataType==="request")try{b.value=!0;const D=await p();A((M=(N=D==null?void 0:D.data)==null?void 0:N.data)==null?void 0:M.rows,!0)}catch(D){console.error(D)}finally{b.value=!1}},C=ve(e)("click",N=>{const M=m(e.id);g(e.id,{...M,RECORD:e.tooltipShow?d:N.data})}),B=N=>{t.value.chart.containPixel("grid",[N.offsetX,N.offsetY])&&C()};e.tooltipShow?c.value["zr:click"]=B:c.value.click=C;const _=Ke(e),v=async()=>{var N;try{b.value=!0;const M=await _(),{columns:D=[],rows:q=[]}=((N=M==null?void 0:M.data)==null?void 0:N.data)??{};let I;D.length>0&&(I={name:D[0],types:D.slice(1).map(R=>({label:R,value:R}))}),y(q,I,!0)}catch(M){console.error(M)}finally{b.value=!1}},E=()=>{switch(e.dataType){case"indicator":v();break;case"request":T();break}};Te(e,{refreshData:E,resetRecord:()=>{const N=e.id,M=m(N);g(N,{...M,RECORD:""})},click:C});const{setRequest:k}=a.inject(_e,{setRequest:N=>{}});return typeof k=="function"&&k({id:e.id,requestFn:E,sortNum:e.requestSort}),n({refreshData:E}),{option:h,style:r,click:C,loading:b,onClose:u,ecanModal:l,eventObj:c,echartRef:t}}}),S1="";function Kc(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,a.mergeProps({ref:"echartRef",option:e.option,autoresize:""},a.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Fi=ce(se(Yc,[["render",Kc]])),Uo={...xe,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"},$o=de(Uo),Pi=["refreshData","click","resetRecord"];Fe.use([gt.CanvasRenderer,et.BarChart,me.TitleComponent,me.LegendComponent,me.DatasetComponent,me.ToolboxComponent]);const Xc=a.defineComponent({name:"EcanBar",props:{...$o},components:{Spin:vt,Echarts:at,EcanModal:ft,AModal:ae.Modal},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=a.ref(!1),i=a.ref(null),s=a.ref([]),l=he(e),f=a.ref([]),c=a.ref(),d=a.computed(()=>o.value?Ze:12),x=a.computed(()=>{const{gradientShow:I,gradientColors:R,gradientOffset:H,barBorderRadius:L}=e,P=a.unref(f),O=P.length,F=[];for(let Y=0;Y<O;Y++){const U={...P[Y],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 j="",ee=e.labelFormatter;ee===""&&(ee="{c}");const{seriesName:oe,name:pe,value:Ee,data:ye}=Z||{};return j+=Se(ee,{textData:{name:pe,value:Ee,a:oe,b:pe,c:Ee||0,...ye}},{useNewline:!0,useSpace:!0}),j}},U.itemStyle={},I&&(U.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Y]},{offset:H,color:R[Y]},{offset:1,color:R[Y]}]}}),L){const Z=L.split(",");if(Z!=null&&Z.length){const j=[];for(const ee of Z){const oe=parseFloat(ee);isNaN(oe)||j.push(oe)}U.itemStyle.borderRadius=j}}F.push(U)}return F}),h=a.ref([]),u=a.ref(!1),m=a.computed(()=>{const I=e.yAxisLabelFormatter,R=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:o.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const H=t.value.chart.getOption(),{xAxis:L}=H||{};L&&L.length&&(s.value=L[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){It(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var H;o.value=!0,(H=c.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(){ae.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=>{const L=H.length;let P="",O=e.tooltipFormatter;O===""&&(O="{marker} {a} {c}");for(let F=0;F<L;F++){const{marker:Y,seriesName:U,name:Z,value:j,data:ee}=H[F]||{};if(F===0){let oe=Z;typeof Z=="string"&&Z[0]==="0"&&!isNaN(+Z)&&(oe=(+Z).toString()),P+=`${Ue(R,oe)}<br/>`}P+=Se(O,{textData:{marker:Y,name:Z,value:j,a:U,b:Z,c:j||0,...ee}},{useNewline:!0,useSpace:!0}),P+="<br/>"}return P},textStyle:{color:e.tooltipTextStyleColor,fontSize:d.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:o.value?Ze:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(f).map((H,L)=>({name:H.name,itemStyle:{color:e.colors[L]},icon:e.legendType}))},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:a.unref(b),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(H){return typeof H=="string"&&H[0]==="0"&&!isNaN(+H)&&(H=(+H).toString()),Ue(R,H)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?a.unref(h):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 Ue(I,H)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:a.unref(x)}}),{pageMode:g}=a.inject(Re,{pageMode:"normal"}),S=()=>{o.value=!1},A=(I=[],R=!1)=>{let H={};if(e.dataFieldConfigType==="key"){const L=R?e.keyTypeDataFieldNames:null;H=ct(I,L)}else if(e.dataFieldConfigType==="value"){const L=R?e.valueTypeDataFieldNames:null;H=St(I,L)}f.value=H.dataset,h.value=H.dimensions},y=(I=[],R,H=!1)=>{const P=ct(I,H?R:null,!0);f.value=P.dataset,h.value=P.dimensions},b=a.computed(()=>a.unref(h).map(I=>{let R={};return I&&typeof I=="object"?R={...I}:R={value:I},R}));a.watch(()=>[e.data,e.labelFormatter],([I])=>{(e.dataType==="static"||a.unref(g)==="design")&&A(I)},{immediate:!0,deep:!0});const p=Ie(e),T=async()=>{var I,R;try{u.value=!0;const H=await p();A((R=(I=H==null?void 0:H.data)==null?void 0:I.data)==null?void 0:R.rows,!0)}catch(H){console.error(H)}finally{u.value=!1}},w=Ke(e),C=async()=>{var I;try{u.value=!0;const R=await w(),{columns:H=[],rows:L=[]}=((I=R==null?void 0:R.data)==null?void 0:I.data)??{};let P;H.length>0&&(P={name:H[0],types:H.slice(1).map(O=>({label:O,value:O}))}),y(L,P,!0)}catch(R){console.error(R)}finally{u.value=!1}},B=()=>{switch(e.dataType){case"indicator":C();break;case"request":T();break}},_=(I,R)=>!!a.unref(s)[R.value].value.includes(I),v=async()=>{r.value=!1;const I=t.value.chart.getOption();for(let R=0;R<7;R++)await E(I,R)},E=(I,R)=>new Promise(H=>{setTimeout(()=>{const{series:L,color:P,xAxis:O}=I,F=t.value.chart,{splitArea:Y={}}=O[0]||{};L.forEach((U,Z)=>{const j=U.data;let ee="";R%2?ee=P[Z]+"a8":ee=P[Z],j[i.value].itemStyle={color:ee}}),R%2?(Y.show=!0,Y.areaStyle.color=a.unref(s).map((U,Z)=>Z===i.value?"#ff003b26":"")):Y.show=!1,F.setOption({series:L,xAxis:O}),H()},200)});n({refreshData:B});const z=ve(e),{getGlobalModel:k,setGlobalModel:N}=a.inject(we,{getGlobalModel:I=>{},setGlobalModel:(I,R)=>{}}),M=z("click",I=>{const R=k(e.id);N(e.id,{...R,RECORD:I.data})}),{setRequest:D}=a.inject(_e,{setRequest:I=>{}});return typeof D=="function"&&D({id:e.id,requestFn:B,sortNum:e.requestSort}),Te(e,{refreshData:B,click:M,resetRecord:()=>{const I=e.id,R=k(I);N(I,{...R,RECORD:""})}}),{option:m,style:l,refreshData:B,click:M,loading:u,onClose:S,ecanModal:c,echartRef:t,handleLocationOk:v,onFilterOption:_,locationVisible:r,locationValue:i,locationNames:s}}}),C1="",A1="",Qc=e=>(a.pushScopeId("data-v-c9356df7"),e=e(),a.popScopeId(),e),Jc={class:"location-wrap"},ef=Qc(()=>a.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function tf(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal"),c=a.resolveComponent("a-select-option"),d=a.resolveComponent("a-select"),x=a.resolveComponent("a-modal");return a.openBlock(),a.createElementBlock("div",{class:"ecan-bar",style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),a.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=h=>e.locationVisible=h),title:"快速定位",onOk:e.handleLocationOk},{default:a.withCtx(()=>[a.createElementVNode("div",Jc,[ef,a.createVNode(d,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=h=>e.locationValue=h),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.locationNames,(h,u)=>(a.openBlock(),a.createBlock(c,{key:u,value:u},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Hi=ce(se(Xc,[["render",tf],["__scopeId","data-v-c9356df7"]])),Zo={...xe,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",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"},Yo=de(Zo),qi=["click","refreshData","resetRecord"];Fe.use([gt.CanvasRenderer,et.ScatterChart,me.ToolboxComponent,me.TitleComponent,me.TooltipComponent,me.LegendComponent]);const nf=a.defineComponent({name:"EcanScatter",props:{...Yo},components:{Spin:vt,Echarts:at,EcanModal:ft},setup(e){const n=a.ref(!1),t=he(e),o=a.ref([]),r=a.ref(),i=a.computed(()=>n.value?Ze:12),s=a.computed(()=>{const p=e.xAxisLabelFormatter,T=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){It(e.toolboxDownloadUrl)}},myDataZoom:{show:n.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var w;n.value=!0,(w=r.value)==null||w.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(){ae.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(w){return typeof w=="string"&&w[0]==="0"&&!isNaN(+w)&&(w=(+w).toString()),Ue(p,w)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},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(w){return Ue(T,w)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(w){var z;const{marker:C,seriesName:B}=w,_=((z=w==null?void 0:w.data)==null?void 0:z.record)??{},{name:v,value:E}=_;return Se(e.tooltipFormatter,{textData:{marker:C,seriesName:B,a:B,b:v,c:E,..._}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:i.value}},series:[{data:a.unref(o),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:l,setGlobalModel:f}=a.inject(we,{getGlobalModel:p=>{},setGlobalModel:(p,T)=>{}}),{pageMode:c}=a.inject(Re,{pageMode:"normal"}),d=(p=[],T)=>{const{name:w="name",value:C="value"}=T||{};o.value=p.map(B=>({value:[B[w],B[C]],record:B}))};a.watch(()=>e.data,p=>{(e.dataType==="static"||a.unref(c)==="design")&&d(p)},{immediate:!0,deep:!0});const x=a.ref(!1),h=Ie(e),u=async()=>{var p,T;if(e.dataType==="request"){x.value=!0;try{const w=await h();d((T=(p=w==null?void 0:w.data)==null?void 0:p.data)==null?void 0:T.rows,e.dataFieldNames)}catch(w){console.error(w)}finally{x.value=!1}}},m=()=>{n.value=!1},S=ve(e)("click",p=>{const T=e.id,w=l(T);f(T,{...w,RECORD:p==null?void 0:p.data})});Te(e,{refreshData:()=>{u()},click:S,resetRecord:()=>{const p=e.id,T=l(p);f(p,{...T,RECORD:""})}});const{setRequest:b}=a.inject(_e,{setRequest:p=>{}});return typeof b=="function"&&b({id:e.id,requestFn:u,sortNum:e.requestSort}),{option:s,style:t,click:S,loading:x,onClose:m,ecanModal:r}}}),T1="";function of(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Vi=ce(se(nf,[["render",of]])),Ko={...xe,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},Xo=de(Ko),af=a.defineComponent({name:"EcanCustomGraph",props:{...Xo},components:{Echarts:at},setup(e){const n=he(e),t=a.ref();return a.watch(()=>e.optionCode,o=>{try{const r=eval;t.value=r(o)}catch(r){console.error(r)}},{immediate:!0}),{style:n,myOption:t,echarts:A0}}});function rf(e,n,t,o,r,i){const s=a.resolveComponent("echarts");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const ji=ce(se(af,[["render",rf]])),Qo={...xe,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,yAxisSplitLineShow:!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,yAxisSplitLineType:"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"},Jo=de(Qo),Gi=["refreshData","click","resetRecord"];Fe.use([gt.CanvasRenderer,et.BarChart,et.LineChart,me.TitleComponent,me.LegendComponent,me.DatasetComponent,me.ToolboxComponent]);const lf=a.defineComponent({name:"EcanComboGraph",props:{...Jo},components:{Spin:vt,Echarts:at,EcanModal:ft,AModal:ae.Modal},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=a.ref(!1),i=a.ref(null),s=a.ref([]),l=he(e),f=a.ref([]),c=a.ref([]),d=a.ref(),x=a.ref([]),h=a.computed(()=>o.value?Ze:12),u=a.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:o.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const I=t.value.chart.getOption(),{xAxis:R}=I||{};R&&R.length&&(s.value=R[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(){It(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var I;o.value=!0,(I=d.value)==null||I.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.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:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:o.value?Ze:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(x).map((I,R)=>({name:I.name,itemStyle:{color:e.colors[R]},icon:e.legendType}))},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:I=>{const R=I.length;let H="",L=e.tooltipFormatter;L===""&&(L="{marker} {a} {c}");const P=e.seriesTypes;for(let O=0;O<R;O++){const F=P[O],{tooltipFormatter:Y}=F||{},{marker:U,seriesName:Z,name:j,value:ee,data:oe}=I[O]||{};if(O===0){let pe=j;typeof j=="string"&&j[0]==="0"&&!isNaN(+j)&&(pe=(+j).toString()),H+=`${Ue(e.xAxisLabelFormatter,pe)}<br/>`}H+=Se(Y||L,{textData:{marker:U,name:j,value:ee,seriesName:Z,a:Z,b:j,c:ee||0,...oe}},{useNewline:!0,useSpace:!0}),H+="<br/>"}return H},textStyle:{color:e.tooltipTextStyleColor,fontSize:h.value}},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:a.unref(c).map(I=>{let R={};return I&&typeof I=="object"?R={...I}:R={value:I},R}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(I){return typeof I=="string"&&I[0]==="0"&&!isNaN(+I)&&(I=(+I).toString()),Ue(e.xAxisLabelFormatter,I)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:a.unref(y),series:a.unref(f)})),{pageMode:m}=a.inject(Re,{pageMode:"normal"}),g=()=>{o.value=!1},S=(I=[],R=!1)=>{let H;if(e.dataFieldConfigType==="key"){const Y=R?e.keyTypeDataFieldNames:null;H=ct(I,Y)}else if(e.dataFieldConfigType==="value"){const Y=R?e.valueTypeDataFieldNames:null;H=St(I,Y)}c.value=H.dimensions;const L=H.dataset;x.value=H.dataset;const P=[],O=L.length,F=e.seriesTypes;for(let Y=0;Y<O;Y++){const U=F[Y],{type:Z,axisIndex:j}=U||{};let ee={type:Z,yAxisIndex:j,...L[Y]};if(Z==="line"){const oe={};e.shadowColor&&(oe.shadowColor=e.shadowColor,oe.shadowBlur=e.shadowBlur,oe.shadowOffsetY=e.shadowOffsetY,oe.shadowOffsetX=e.shadowOffsetX),ee={...ee,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[Y]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[Y]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[Y],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...oe}}}if(Z==="bar"){const{gradientShow:oe,gradientColors:pe,gradientOffset:Ee}=e,ye={};if(e.barBorderRadius){const ge=e.barBorderRadius.split(",");if(ge!=null&&ge.length){const Oe=[];for(const qe of ge){const Le=parseFloat(qe);isNaN(Le)||Oe.push(Le)}ye.borderRadius=Oe}}oe&&(ye.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[Y]},{offset:Ee,color:pe[Y]},{offset:1,color:pe[Y]}]}),ee={...ee,barWidth:e.barWidth,itemStyle:ye}}P.push(ee)}f.value=P},A=(I=[],R,H=!1)=>{const P=ct(I,H?R:null,!0);c.value=P.dimensions;const O=P.dataset;x.value=P.dataset;const F=[],Y=O.length,U=e.seriesTypes;for(let Z=0;Z<Y;Z++){const j=U[Z];F.push({type:j==null?void 0:j.type,yAxisIndex:j==null?void 0:j.axisIndex,...O[Z]})}f.value=F};a.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],([I])=>{(e.dataType==="static"||a.unref(m)==="design")&&S(I)},{immediate:!0,deep:!0});const y=a.computed(()=>{const I=e.yAxis;return I==null?void 0:I.map(R=>({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(H){return Ue(R.axisLabelFormatter,H)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),b=a.ref(!1),p=Ie(e),T=async()=>{var I,R;if(e.dataType==="request")try{b.value=!0;const H=await p();S((R=(I=H==null?void 0:H.data)==null?void 0:I.data)==null?void 0:R.rows,!0)}catch(H){console.error(H)}finally{b.value=!1}},w=Ke(e),C=async()=>{var I;try{b.value=!0;const R=await w(),{columns:H=[],rows:L=[]}=((I=R==null?void 0:R.data)==null?void 0:I.data)??{};let P;H.length>0&&(P={name:H[0],types:H.slice(1).map(O=>({label:O,value:O}))}),A(L,P,!0)}catch(R){console.error(R)}finally{b.value=!1}},B=()=>{switch(e.dataType){case"indicator":C();break;case"request":T();break}},_=(I,R)=>!!a.unref(s)[R.value].value.includes(I),v=async()=>{r.value=!1;const I=t.value.chart.getOption();for(let R=0;R<7;R++)await E(I,R)},E=(I,R)=>new Promise(H=>{setTimeout(()=>{const{series:L,color:P,xAxis:O}=I,F=t.value.chart,{splitArea:Y={}}=O[0]||{};L.forEach((U,Z)=>{const j=U.data;let ee="";R%2?ee=P[Z]+"a8":ee=P[Z],j[i.value].itemStyle={color:ee}}),R%2?(Y.show=!0,Y.areaStyle.color=a.unref(s).map((U,Z)=>Z===i.value?"#ff003b26":"")):Y.show=!1,F.setOption({series:L,xAxis:O}),H()},200)});n({refreshData:B});const z=ve(e),{getGlobalModel:k,setGlobalModel:N}=a.inject(we,{getGlobalModel:I=>{},setGlobalModel:(I,R)=>{}}),M=z("click",I=>{const R=k(e.id);N(e.id,{...R,RECORD:I==null?void 0:I.data})}),{setRequest:D}=a.inject(_e,{setRequest:I=>{}});return typeof D=="function"&&D({id:e.id,requestFn:B,sortNum:e.requestSort}),Te(e,{resetRecord:()=>{const I=e.id,R=k(I);N(I,{...R,RECORD:""})},refreshData:B,click:M}),{style:l,option:u,click:M,loading:b,onClose:g,ecanModal:d,echartRef:t,handleLocationOk:v,onFilterOption:_,locationVisible:r,locationValue:i,locationNames:s}}}),_1="",D1="",sf=e=>(a.pushScopeId("data-v-fb3a679f"),e=e(),a.popScopeId(),e),cf={class:"location-wrap"},ff=sf(()=>a.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function df(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal"),c=a.resolveComponent("a-select-option"),d=a.resolveComponent("a-select"),x=a.resolveComponent("a-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),a.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=h=>e.locationVisible=h),title:"快速定位",onOk:e.handleLocationOk},{default:a.withCtx(()=>[a.createElementVNode("div",cf,[ff,a.createVNode(d,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=h=>e.locationValue=h),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.locationNames,(h,u)=>(a.openBlock(),a.createBlock(c,{key:u,value:u},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Wi=ce(se(lf,[["render",df],["__scopeId","data-v-fb3a679f"]])),ea={...xe,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",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",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar"},ta=de(ea),Ui=["refreshData","click","resetRecord"];Fe.use([gt.CanvasRenderer,et.RadarChart,me.ToolboxComponent,me.TitleComponent,me.LegendComponent]);const uf=a.defineComponent({name:"EcanRadar",props:{...ta},components:{Spin:vt,Echarts:at,EcanModal:ft},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=he(e),i=a.ref([]),s=a.ref(),l=a.computed(()=>o.value?Ze:12),f=a.ref({});let c;const d=a.ref([]),x=a.ref(e.valueTypeDataFieldNames.name),h=a.computed(()=>{const D=a.unref(d),q=D.length,I=[];for(let R=0;R<q;R++){const{name:H,data:L=[]}=D[R],P=[{name:H,value:L.map(F=>F.value)}],O={type:"radar",name:H,data:P,areaStyle:{color:e.colors[R],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}};I.push(O)}return I}),u=a.computed(()=>{var H,L;const D=[],q={},I=a.unref(d),R=I.length;for(let P=0;P<R;P++){const{data:O=[]}=I[P];if(O!=null&&O.length)for(let F=0;F<O.length;F++)q[O[F][x.value]]?q[O[F][x.value]].push(O[F].value):q[O[F][x.value]]=[O[F].value]}if((H=i.value)!=null&&H.length)for(const P of i.value)D.push({name:P,max:(L=q[P])!=null&&L.length?Math.max(...q[P])*1.2:0});return D}),m=a.computed(()=>({toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){It(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var D;o.value=!0,(D=s.value)==null||D.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:l.value},show:e.tooltipShow,formatter:D=>{var R;let q="",I=e.tooltipFormatter;c=(R=D[0])==null?void 0:R.data,I===""&&(I="{marker} {a} {c}");for(let H=0;H<a.unref(u).length;H++){const L=a.unref(u)[H],{marker:P,seriesName:O,value:F}=D||{};H===0&&O&&(q+=`${O}<br/>`),q+=Se(I,{textData:{marker:P,name:L.name,value:F[H],a:L.name,b:L.name,c:F[H]||0,type:O}},{useNewline:!0,useSpace:!0}),q+="<br/>"}return q}},radar:{indicator:a.unref(u),axisName:{color:e.axisNameColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:o.value?Ze:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(d).map(D=>({name:D.name,icon:e.legendType}))},series:a.unref(h)})),g=()=>{o.value=!1},{getGlobalModel:S,setGlobalModel:A}=a.inject(we,{getGlobalModel:D=>{},setGlobalModel:(D,q)=>{}}),{pageMode:y}=a.inject(Re,{pageMode:"normal"}),b=(D=[],q=!1)=>{let I;if(e.dataFieldConfigType==="key"){const R=q?e.keyTypeDataFieldNames:null;I=ct(D,R)}else if(e.dataFieldConfigType==="value"){const R=q?e.valueTypeDataFieldNames:null;I=St(D,R)}i.value=I.dimensions,d.value=I.dataset},p=(D=[],q,I=!1)=>{const H=ct(D,I?q:null,!0);i.value=H.dimensions,d.value=H.dataset};a.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize],([D])=>{(e.dataType==="static"||a.unref(y)==="design")&&b(D)},{immediate:!0,deep:!0});const T=a.ref(!1),w=Ie(e),C=async()=>{var D,q;if(e.dataType==="request")try{T.value=!0;const I=await w();b((q=(D=I==null?void 0:I.data)==null?void 0:D.data)==null?void 0:q.rows,!0)}catch(I){console.error(I)}finally{T.value=!1}},_=ve(e)("click",D=>{const q=S(e.id);A(e.id,{...q,RECORD:e.tooltipShow?c:D.data})}),v=D=>{t.value.chart.containPixel("grid",[D.offsetX,D.offsetY])&&_()};e.tooltipShow?f.value["zr:click"]=v:f.value.click=_;const E=Ke(e),z=async()=>{var D;try{T.value=!0;const q=await E(),{columns:I=[],rows:R=[]}=((D=q==null?void 0:q.data)==null?void 0:D.data)??{};let H;I.length>0&&(x.value=I[0],H={name:I[0],types:I.slice(1).map(L=>({label:L,value:L}))}),p(R,H,!0)}catch(q){console.error(q)}finally{T.value=!1}},k=()=>{switch(e.dataType){case"indicator":z();break;case"request":C();break}};Te(e,{refreshData:k,resetRecord:()=>{const D=e.id,q=S(D);A(D,{...q,RECORD:""})},click:_});const{setRequest:M}=a.inject(_e,{setRequest:D=>{}});return typeof M=="function"&&M({id:e.id,requestFn:k,sortNum:e.requestSort}),n({refreshData:k}),{option:m,style:r,click:_,loading:T,onClose:g,ecanModal:s,eventObj:f,echartRef:t}}}),I1="";function hf(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,a.mergeProps({ref:"echartRef",option:e.option,autoresize:""},a.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const $i=ce(se(uf,[["render",hf]])),gf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",mf="data:image/png;base64,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",xf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",yf="data:image/png;base64,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",na={...xe,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"},oa=de(na),Zi=["click"],pf=a.defineComponent({name:"EcanBorder",props:{...oa},setup(e){const n=he(e,["background"]),t=a.computed(()=>{const{isTransparent:m,gradientShow:g,gradientColor:S,gradientOffset:A,gradientAngle:y,backgroundColor:b}=e;if(g){let p=S;return m&&(p="transparent"),p?{background:`linear-gradient(${y}, ${b}, ${p} ${A*100}%)`}:{}}else return{}}),o=a.computed(()=>{const{events:m}=e;let g={};return m!=null&&m.length&&m.find(A=>A.emit==="showModal")&&(g={cursor:"pointer"}),g}),{theme:r}=a.inject(Re,{theme:"light"}),i=a.computed(()=>{let m="";switch(e.titleMode){case"type-2":m="2";break}return m}),s=a.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":gf,"../../assets/border-title-decoration-left2.png":mf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=a.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":xf,"../../assets/border-title-decoration-right2.png":yf})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),f=a.computed(()=>({width:"100%",height:"100%"})),c=a.computed(()=>{const{borderRadius:m}=e,g=[],S={};if(m){const A=m.split(",");for(const y of A)(+y||+y==0)&&g.push(+y+"px")}return g!=null&&g.length&&(S.borderRadius=g.join(" ")),S}),x=ve(e)("click",()=>{}),h=a.ref([]);a.watch(()=>e.data,m=>{h.value=m},{immediate:!0,deep:!0}),Te(e,{click:x});const{setGlobalModel:u}=a.inject(we,{setGlobalModel:(m,g)=>{}});return u(e.id,{type:e.type,value:h}),{style:n,gradientStyle:t,click:x,borderStyle:f,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:o}}}),L1="",dt=e=>(a.pushScopeId("data-v-8dd53b8f"),e=e(),a.popScopeId(),e),bf=["id"],vf=dt(()=>a.createElementVNode("div",{class:"top-left border-item"},null,-1)),Sf=dt(()=>a.createElementVNode("div",{class:"top-right border-item"},null,-1)),wf=dt(()=>a.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Cf=dt(()=>a.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Af={class:"title-item"},kf=["src"],Tf={class:"title"},Ef=["src"],Bf=dt(()=>a.createElementVNode("div",{class:"top-left border-item"},null,-1)),_f=dt(()=>a.createElementVNode("div",{class:"top-right border-item"},null,-1)),Df=dt(()=>a.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Rf=dt(()=>a.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),If={key:2,class:"left-title"},Of={class:"title"};function Lf(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:"ecan-border",style:a.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:n[0]||(n[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"no-title",style:a.normalizeStyle(e.borderStyle)},[e.useBorderModify?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[vf,Sf,wf,Cf],64)):a.createCommentVNode("",!0)],4)):a.createCommentVNode("",!0),e.mode==="top-title"?(a.openBlock(),a.createElementBlock("div",{key:1,class:"top-title",style:a.normalizeStyle(e.borderStyle)},[a.createElementVNode("div",{class:a.normalizeClass(["title-item-wrapper",e.titleMode])},[a.createElementVNode("div",Af,[a.createElementVNode("img",{class:a.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,kf),a.createElementVNode("div",Tf,a.toDisplayString(e.title),1),a.createElementVNode("img",{class:a.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Ef)])],2),Bf,_f,Df,Rf],4)):a.createCommentVNode("",!0),e.mode==="left-title"?(a.openBlock(),a.createElementBlock("div",If,[a.createElementVNode("div",Of,[a.createElementVNode("span",null,a.toDisplayString(e.title),1)])])):a.createCommentVNode("",!0)],12,bf)}const Yi=ce(se(pf,[["render",Lf],["__scopeId","data-v-8dd53b8f"]])),aa={...xe,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,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px"},ra=de(aa),Ki=["tabChange"],Nf=a.defineComponent({name:"EcanTabs",props:{...ra},components:{ASelect:ae.Select,ASelectOption:ae.SelectOption},setup(e){const n=he(e),t=a.ref(0);a.watch(()=>e.activeKey,u=>{t.value=u},{immediate:!0});const{pageMode:o}=a.inject(Re,{pageMode:"normal"});let r=null;const i=()=>{const u=Array.isArray(a.unref(s))?a.unref(s).length-1:0;e.autoSwitch&&u>0&&(r=setInterval(()=>{const m=a.unref(t)+1;m<=u?t.value=m:t.value=0,l.value=a.unref(s)[a.unref(t)],x()},e.autoSwitchInterval*1e3))};a.onMounted(()=>{a.unref(o)!=="design"&&i()}),a.onBeforeUnmount(()=>{clearInterval(r)});const s=a.ref([]),l=a.ref({});a.watch(()=>e.data,u=>{s.value=u,l.value=Array.isArray(u)&&u.length>0?u[0]:{}},{immediate:!0,deep:!0});const f=u=>t.value===u,c=ve(e),{setGlobalModel:d}=a.inject(we,{setGlobalModel:(u,m)=>{}});d(e.id,{value:l,activeKey:t});const{emitRefreshPage:x}=a.inject(Ft,{emitRefreshPage:()=>{}}),h=c("tabChange",(u,m)=>{m!==a.unref(t)&&(l.value=u,t.value=m,x())});return Te(e,{tabChange:h}),{style:n,activeKey:t,isActive:f,tabChange:h,myData:s,useImagePath:yt}}}),z1="",zf=["id"],Mf=["onClick"];function Ff(e,n,t,o,r,i){const s=a.resolveComponent("a-select-option"),l=a.resolveComponent("a-select");return a.openBlock(),a.createElementBlock("div",{class:"ecan-tabs",style:a.normalizeStyle(e.style),id:"container_"+e.id},[a.createElementVNode("div",{class:"tabs-header",style:a.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(e.myData,(f,c)=>(a.openBlock(),a.createElementBlock("div",{class:"tab",style:a.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(c)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(c)?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:c,onClick:a.withModifiers(d=>e.tabChange(f,c),["prevent","stop"])},[a.createElementVNode("div",{class:"tab-inner",style:a.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(c)?e.activeTabColor:"transparent"}`:""})},a.toDisplayString(f.title),5)],12,Mf))),128)):e.tabType==="select"?(a.openBlock(),a.createBlock(l,{key:1,value:e.activeKey,style:a.normalizeStyle({width:e.tabWidth})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.myData,(f,c)=>(a.openBlock(),a.createBlock(s,{key:c,value:c,onClick:d=>e.tabChange(f,c)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(f.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):a.createCommentVNode("",!0)],4)],12,zf)}const Xi=ce(se(Nf,[["render",Ff],["__scopeId","data-v-fbab260a"]])),ia={...xe,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{}},la=de(ia),Qi=["click"],Pf=a.defineComponent({name:"EcanImage",props:{...la},setup(e){const n=he(e),t=a.computed(()=>yt(e.imgUrl)),{pageMode:o}=a.inject(Re,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=a.inject(we,{getGlobalModel:f=>{},setGlobalModel:(f,c)=>{}}),l=ve(e)("click",()=>{const f=r(e.id);if(i(e.id,{...f,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...f,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",d=Kr(a.unref(o),c),x=e.href;let h=x||d;h=Se(h);const u=e.target;u&&(u!=="event"?window.open(h,"_"+u):window.parent.postMessage({type:"openPage",url:x},"*"))});return Te(e,{click:l}),{style:n,myImgUrl:t,onClick:l}}}),F1="",Hf=["src"];function qf(e,n,t,o,r,i){return e.myImgUrl!==""?(a.openBlock(),a.createElementBlock("img",{key:0,style:a.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Hf)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"image-placeholder",style:a.normalizeStyle(e.style)}," 请上传图片 ",4))}const Ji=ce(se(Pf,[["render",qf],["__scopeId","data-v-3665dde7"]])),sa={...xe,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},ca=de(sa),Vf=a.defineComponent({name:"EcanIframe",props:{...ca},setup(e){const n=he(e),{contextRequestUrl:t}=a.inject(Re,{contextRequestUrl:""}),o=a.computed(()=>{let r=Se(e.link);if(e.linkType==="erd"&&r!=null){let i=a.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${jl||i}?_t=0&uid=${r}`}return r});return{style:n,myLink:o}}}),H1="",jf=["src"];function Gf(e,n,t,o,r,i){return e.myLink?(a.openBlock(),a.createElementBlock("iframe",{key:0,src:e.myLink,style:a.normalizeStyle(e.style)},null,12,jf)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"iframe-placeholder",style:a.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const e0=ce(se(Vf,[["render",Gf],["__scopeId","data-v-19bc100c"]])),fa={...xe,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%",isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1},da=de(fa),t0=["click","refreshData","resetRecord","exportTableData"],ua=a.defineComponent({name:"EcanTable",components:{Skeleton:Gt,AButton:ae.Button,AInput:ae.Input,ACheckboxGroup:ae.CheckboxGroup,ATable:ae.Table,ATableSummary:ae.TableSummary,ATableSummaryRow:ae.TableSummaryRow,ATableSummaryCell:ae.TableSummaryCell},props:{...da},setup(e,{expose:n}){const t=a.ref(!1),o=je.cloneDeep(e.columns),r=a.ref(),i=a.ref(!1),s=he(e),l=a.ref([]),f=a.computed(()=>e.scrollX),c=a.ref(0),d=()=>{let G=0;switch(e.size){case"small":G=50;break;case"middle":G=53;break;default:G=65;break}return G};a.watchEffect(()=>{var G;(G=l.value)!=null&&G.length&&e.height&&a.nextTick(()=>{let $=parseFloat(e.height);const K=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),Q=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),te=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let X=0;if(Q&&($-=(Q==null?void 0:Q.clientHeight)||0),te&&e.isSummaryFixed&&(X=(te==null?void 0:te.clientHeight)||0,$-=X),e.paginationShow){let J=0;J=d(),J&&($-=J)}(K==null?void 0:K.clientHeight)>$?c.value=$:c.value=0,a.nextTick(()=>{if(X){const J=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),fe=(J==null?void 0:J.clientHeight)||0;X!==fe&&a.unref(c)&&(c.value=$+X-fe)}})})});const x=a.ref([]),h=a.ref([]),u=a.ref([]),m=a.ref(0),g=a.ref(1),S=a.ref(e.paginationPageSize||10),A=a.reactive([]),y=(G=[])=>{var $;if(console.log("_columns",G),Array.isArray(G)&&G.length>0){let K=G.length;const Q=e.columnsFixedNum;e.dataType==="indicator"&&(o!=null&&o.length)&&G.forEach((te,X)=>{if(o[X])for(const J in o[X])["dataIndex","title"].includes(J)||(te[J]=o[X][J])});for(let te=K-1;te>=0;te--)($=G[te])!=null&&$.isHidden&&G.splice(te,1);K=G.length;for(let te=0;te<K;te++){const X=G[te];te<Q?X.fixed="left":X.fixed=!1;const{cellAlign:J="center",cellColor:fe,dataIndex:ue,title:be,tableFilter:Be,headerCellAlign:ze,headerCellColor:Je}=X;Be&&(A.push(ue),X.filterOptionsInputValue="",X.filterCheckboxGroupValue=[],X.customFilterDropdown=!0,X.onFilter=(ut,Ot)=>Ot[ue].toString().toLowerCase().includes(ut.toLowerCase())),X.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:ze||"center",color:Je||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),X.customCell=(ut,Ot)=>({style:{textAlign:J,color:fe||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:a.unref(L)===Ot&&e.clickHighlight},onClick:M("click",()=>{const on=e.id,ma=D(on);ut={dataIndex:ue,title:be,...ut},q(on,{...ma,RECORD:ut})})}),Array.isArray(X.children)&&y(X.children)}}},b=(G=[])=>(e.isUseSeq&&G.unshift({title:"序号",dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&G.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),y(G),G);a.watch(S,()=>{g.value=1,O(!1)}),a.watch(r,G=>{i.value=!!G}),a.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{x.value=b(je.cloneDeep(e.columns))},{immediate:!0,deep:!0}),a.watch(()=>[e.data,e.dataType],([G,$])=>{$==="static"&&(h.value=G)},{immediate:!0});const p=a.ref({}),T=G=>{if(Array.isArray(G)){const $=G.length,K=A,Q=K.length,te={};for(let J=0;J<$;J++){const fe=G[J];for(let ue=0;ue<Q;ue++){const be=K[ue];if(te[be])te[be].add(fe[be]);else{const Be=new Set;Be.add(fe[be]),te[be]=Be}}}const X={};for(const J in te)if(Object.prototype.hasOwnProperty.call(te,J)){const fe=te[J],ue=Array.from(fe);X[J]=ue.map(be=>({label:be,value:be}))}p.value=X}};a.watch(()=>[e.isReverse,x.value,h.value],()=>{const G=a.unref(x),$=a.unref(h);if(T($),e.isReverse){const{columns:K,dataSource:Q}=w(je.cloneDeep(G),je.cloneDeep($));u.value=K,l.value=Q}else u.value=G,l.value=$},{immediate:!0});const w=(G,$)=>{const K=G[0],Q=[{title:K.title,dataIndex:"col0",key:"col0",align:"center"}];for(let X=0;X<$.length;X++){const J=$[X],fe="col"+(X+1);Q.push({title:J[K.dataIndex],dataIndex:fe,key:fe,align:"center"})}const te=[];for(let X=1;X<G.length;X++){const J=G[X],fe={col0:J.title};for(let ue=0;ue<$.length;ue++){const be=$[ue];fe[`col${ue+1}`]=be[J.dataIndex]}te.push(fe)}return{columns:Q,dataSource:te}},C=a.ref(""),B=Ie(e),_=async(G=!0,$={})=>{var K;try{G&&(t.value=!0),a.unref(C)&&($.orderCondition=a.unref(C)),e.paginationShow&&($={pageNum:a.unref(g),pageSize:a.unref(S)||"10",layer:"1",...$});const Q=await B($),{rows:te=[],total:X=0}=((K=Q==null?void 0:Q.data)==null?void 0:K.data)||{};if(m.value=X,Array.isArray(te)&&(h.value=te),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:J=[]}=e,fe=J.find(ue=>ue.key==="dataSqlId");if((fe==null?void 0:fe.value)==="xt_jxzebg"){const ue=te.filter(be=>!be.绩效总额).map(be=>be.ORG_NAME);ue!=null&&ue.length&&a.nextTick(()=>{ae.notification.warning({message:"提示",description:`当前时段${ue.join("、")}绩效数据为空`,duration:3})})}}}catch(Q){console.error(Q)}finally{t.value=!1}},v=({current:G},$,K)=>{if(g.value=G,K&&Object.keys(K).length>0){const{field:Q,order:te}=K,J={ascend:"asc",descend:"desc"}[te];Q!=null&&J!=null&&(C.value=Q+" "+J)}O(!1)},E=a.computed(()=>{const G=e.simple,$=[e.paginationPosition],K={};return e.isShowTotal&&(K.showTotal=Q=>`共 ${Q} 条数据`),e.paginationShow&&{simple:G,position:$,total:a.unref(m),current:a.unref(g),pageSize:a.unref(S)||"10",showSizeChanger:!1,...K}}),z=G=>+G==1?"是":+G==0?"否":G,k=(G,$)=>{const{format:K,retentiondigit:Q,customFormatter:te}=$;if(K==null||K==="")return G;const X={money:co,percentage:tn,contrast:tn,boolean:z,decimals:Xs,custom:Qs};return K==="decimals"?X[K](G,Q)||"":K==="custom"?X[K](G,te)||"":X[K](G)||""},N=(G,$)=>{const K=parseFloat(G+"");if($!=="contrast")return"";switch(!0){case K>=0:return"goUp";case K<0:return"goDown"}},M=ve(e),{getGlobalModel:D,setGlobalModel:q}=a.inject(we,{getGlobalModel:G=>{},setGlobalModel:(G,$)=>{}}),I=(G=[],$=[])=>{const K=G.map(Q=>({title:Q,dataIndex:Q,key:Q}));x.value=b(K),h.value=$},R=Ke(e),H=async(G=!0)=>{var $,K,Q,te;try{G&&(t.value=!0);const X=a.unref(C).split(" "),J=await R({sort:{order:X[1],field:X[0]}});I((K=($=J==null?void 0:J.data)==null?void 0:$.data)==null?void 0:K.columns,(te=(Q=J==null?void 0:J.data)==null?void 0:Q.data)==null?void 0:te.rows)}catch(X){console.error(X)}finally{t.value=!1}},L=a.ref(-1),P=(G,$)=>({onClick:M("rowClick",()=>{const K=e.id,Q=D(K);q(K,{...Q,RECORD:G}),L.value=$})}),O=(G=!0)=>{switch(e.dataType){case"request":_(G);break;case"indicator":H(G);break}},F=()=>{const G=e.id,$=D(G);q(G,{...$,RECORD:""})},Y=a.computed(()=>{const G=a.unref(u),$=[];let K=0;for(let X=0;X<G.length;X++){const J=G[X],{isCalcTotal:fe}=J;e.isUseSeq&&X===0?$.push({...J,total:"小计"}):fe?($.push({...J,index:X,total:0}),K++):$.push({...J})}if(K===0)return[];const Q=a.unref(l),te=U($);for(let X=0;X<te.length;X++){const J=te[X];let fe=0;const{isCalcTotal:ue,dataIndex:be}=J;if(ue===!0){for(let Be=0;Be<Q.length;Be++){const Je=+Q[Be][be];isNaN(Je)||(fe=new w0.Big(fe).add(Je).toNumber())}J.total=fe}}return te});function U(G){var K;const $=[];for(const Q of G)(K=Q.children)!=null&&K.length?$.push(...U(Q.children)):$.push(Q);return $}const{setRequest:Z}=a.inject(_e,{setRequest:G=>{}});typeof Z=="function"&&Z({id:e.id,requestFn:O,sortNum:e.requestSort}),n({refreshData:O});const j=(G="",$)=>Se(G,$),ee=G=>{if(G!=="event")return{self:"_self",blank:"_blank"}[G]},oe=(G,$="")=>{G==="event"&&window.parent.postMessage({type:"openPage",url:$},"*")},pe=(G,$)=>{G($.filterCheckboxGroupValue)},Ee=(G,$)=>{G({confirm:!0}),$.filterOptionsInputValue="",$.filterCheckboxGroupValue=[]},ye=()=>{},ge=G=>{const $=G.dataIndex;if(typeof $=="string"){let K=a.unref(p)[$];const Q=a.unref(G.filterOptionsInputValue).trim();return Array.isArray(K)?(K=K.filter(te=>typeof te.label=="string"?te.label.toLowerCase().includes(Q.toLowerCase()):!0),K):[]}return[]},Oe=async()=>{var be,Be;const G="EXPORT_KEY";ae.message.loading({key:G,content:"正在导出...",duration:0});let $=[];if(e.dataType==="static")$=e.data;else if(e.dataType==="request"){const ze={layer:"1"};a.unref(C)&&(ze.orderCondition=a.unref(C));const Je=await B(ze);$=((Be=(be=Je==null?void 0:Je.data)==null?void 0:be.data)==null?void 0:Be.rows)||{}}const K=a.unref(u),Q=[],te=[];K==null||K.forEach(ze=>{Q.push(ze.dataIndex),te.push(ze.title)});const X=$.map(ze=>je.pick(ze,Q)),J=Lt.utils.book_new(),fe=Lt.utils.aoa_to_sheet([te]),ue=Lt.utils.sheet_add_json(fe,X,{skipHeader:!0,origin:"A2"});Lt.utils.book_append_sheet(J,ue,"sheet"),Lt.writeFile(J,"表格数据.xlsx"),ae.message.success({key:G,content:"导出成功"})},qe=(G,$=2)=>{const K=+G*100;return isNaN(K)||K<=0?0:K>=100?100:K.toFixed($)};Te(e,{resetRecord:F,refreshData:O,exportTableData:Oe});const Le=(G,$)=>{let K=null;return e.stripedShow&&(K=$%2===1?"table-striped":null),K},Ne=a.computed(()=>{let G=0;const{height:$,isPageBottom:K}=e;return K&&$&&(G=parseFloat($)-d()),G?G+"px":"100%"}),ot=a.computed(()=>{let G="#071655";return e.headerBackgroundColor&&(G="transparent"),G}),Xe=a.computed(()=>{let G="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(G="transparent"),G});return{x:f,y:c,style:s,customRow:P,pagination:E,formatFn:k,contrastClass:N,tableChange:v,summaryList:Y,loading:t,onTouchHrefEvent:oe,handleHref:j,handleHrefTarget:ee,useRowIndex:L,tableColumns:u,tableDataSource:l,useFilterOptions:ge,useSetSelectedKeys:pe,onResetFilter:Ee,onSearchFilterOptions:ye,exportTableData:Oe,handleProgressText:qe,pageSizeVisible:i,pageSize:S,tableRef:r,rowClassName:Le,tableHeight:Ne,tableHeaderBgColor:ot,tableBodyBgColor:Xe}}}),n0=()=>{a.useCssVars(e=>({"259caf3d":e.stripedColor,"6e9c7434":e.tableHeaderBgColor,"83e22f82":e.tableBodyBgColor}))},o0=ua.setup;ua.setup=o0?(e,n)=>(n0(),o0(e,n)):n0;const V1="",j1="",Wf=["id"],Uf={key:0,class:"table-tool"},$f=a.createTextVNode("导出数据"),Zf=a.createTextVNode(" 搜索 "),Yf=a.createTextVNode(" 重置 "),Kf={key:0},Xf={key:1,class:"action-list"},Qf=["href","target","onClick"],Jf={key:2,class:"progress-cell"},ed={key:0},td={key:1},nd={class:"ant-pagination-options-quick-jumper"},od=a.createTextVNode(" 条 / 页 ");function ad(e,n,t,o,r,i){const s=a.resolveComponent("a-button"),l=a.resolveComponent("a-input"),f=a.resolveComponent("a-checkbox-group"),c=a.resolveComponent("a-table-summary-cell"),d=a.resolveComponent("a-table-summary-row"),x=a.resolveComponent("a-table-summary"),h=a.resolveComponent("a-table"),u=a.resolveComponent("skeleton");return a.openBlock(),a.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:a.normalizeStyle(e.style)},[a.createVNode(u,{loading:e.loading},{default:a.withCtx(()=>{var m;return[e.isUseExport?(a.openBlock(),a.createElementBlock("div",Uf,[a.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:a.withCtx(()=>[$f]),_:1},8,["onClick"])])):a.createCommentVNode("",!0),a.createVNode(h,{ref:"tableRef",class:"table",style:a.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:a.withCtx(({column:g,selectedKeys:S,setSelectedKeys:A,confirm:y,clearFilters:b})=>[a.createElementVNode("div",{class:"ecan-table-filter",style:a.normalizeStyle({height:e.filterDropdownHeight})},[a.createVNode(l,{value:g.filterOptionsInputValue,"onUpdate:value":p=>g.filterOptionsInputValue=p,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),a.createVNode(f,{value:g.filterCheckboxGroupValue,"onUpdate:value":p=>g.filterCheckboxGroupValue=p,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:p=>e.useSetSelectedKeys(A,g)},null,8,["value","onUpdate:value","options","onChange"]),a.createElementVNode("div",null,[a.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>y()},{default:a.withCtx(()=>[Zf]),_:2},1032,["onClick"]),a.createVNode(s,{size:"small",style:{width:"90px"},onClick:a.withModifiers(p=>e.onResetFilter(b,g),["stop"])},{default:a.withCtx(()=>[Yf]),_:2},1032,["onClick"])])],4)]),bodyCell:a.withCtx(({column:g,index:S,text:A,record:y})=>{var b,p;return[g.dataIndex==="SEQ"?(a.openBlock(),a.createElementBlock("span",Kf,a.toDisplayString(S+1),1)):g.dataIndex==="ACTION"?(a.openBlock(),a.createElementBlock("div",Xf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.actionList,(T,w)=>(a.openBlock(),a.createElementBlock("div",{class:"action",key:w},[a.createElementVNode("a",{href:e.handleHref(T.href,y),target:e.handleHrefTarget(T.target),style:a.normalizeStyle({color:T.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:C=>e.onTouchHrefEvent(T.target,e.handleHref(T.href,y))},a.toDisplayString(T.title),13,Qf)]))),128))])):g.format==="progress"?(a.openBlock(),a.createElementBlock("div",Jf,[a.createElementVNode("div",{class:"progress",style:a.normalizeStyle({background:g.progressColor||"#1890ff",height:g.progressWidth||"18px",width:`${e.handleProgressText(A,g.progressTextDecimalPlaces)}%`})},null,4),a.createElementVNode("div",{class:"progress-text",style:a.normalizeStyle({color:+e.handleProgressText(A)<100?g.progressTextColor||"#333":g.progressFinishedTextColor||"#fff"})},a.toDisplayString(e.handleProgressText(A,g.progressTextDecimalPlaces))+"% ",5)])):(a.openBlock(),a.createElementBlock("div",{key:3,style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},[g.format==="contrast"?(a.openBlock(),a.createElementBlock("span",ed,a.toDisplayString(((b=g==null?void 0:g.customFormatter)==null?void 0:b.split("{value}")[0])||""),1)):a.createCommentVNode("",!0),a.createElementVNode("span",{class:a.normalizeClass([e.contrastClass(A,g.format)])},a.toDisplayString(g.format!=null?e.formatFn(A,g):A),3),g.format==="contrast"?(a.openBlock(),a.createElementBlock("span",td,a.toDisplayString(((p=g==null?void 0:g.customFormatter)==null?void 0:p.split("{value}")[1])||""),1)):a.createCommentVNode("",!0)],4))]}),summary:a.withCtx(()=>[e.summaryList.length>0?(a.openBlock(),a.createBlock(x,{key:0,fixed:e.isSummaryFixed},{default:a.withCtx(()=>[a.createVNode(d,null,{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.summaryList,(g,S)=>(a.openBlock(),a.createBlock(c,{key:S,index:S,style:a.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:g.cellAlign||"center",color:g.cellColor,borderBottomColor:e.borderColor})},{default:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass([e.contrastClass(g.total,g.format)]),style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(g.total,g)),7)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):a.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(a.openBlock(),a.createBlock(a.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[a.createElementVNode("div",nd,[a.withDirectives(a.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=g=>e.pageSize=g)},null,512),[[a.vModelText,e.pageSize]]),od])],8,["to"])):a.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,Wf)}const a0=ce(se(ua,[["render",ad],["__scopeId","data-v-2bbb95b1"]])),ha={...xe,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"},ga=de(ha),r0=["click"];Fe.use([gt.CanvasRenderer,et.MapChart,et.ScatterChart,me.VisualMapComponent,me.TooltipComponent,me.GraphicComponent]);const rd=a.defineComponent({name:"EcanMap",components:{Echarts:at},props:{...ga},setup(e){const n=Ie(e),t=Ie({...e.tooltipRequestData,requestHeaders:{}}),o=a.ref(),r=a.ref(""),i=a.ref(""),s=he(e,["backgroundImage"]),l=a.ref(),f=a.computed(()=>yt(e.geoBackgroundImage)),c=a.computed(()=>yt(e.backgroundImage)),d=a.computed(()=>e.geoBackgroundImage?{image:a.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),x=a.computed(()=>{const k=e.symbolImage;return e.symbolImage?"image://"+yt(k):"circle"}),h=k=>{let N=e.tooltipFormatter;const M=N.match(/\{(.+?)\}/g);if(M==null||M.length===0)return N;for(let D=0;D<M.length;D++){const q=M[D];let I=q.slice(1,-1).trim();const R=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,H=I.match(R);for(let L=0;L<H.length;L++){const P=H[L],O=k[P];O!=null&&(I=I.replace(P,O))}N=N.replace(q,I)}return N.split(`
|
|
118
|
+
`)},u=a.ref(!1),m=a.ref("");let g=new AbortController;const S=(k,N)=>{const M=g.signal;u.value=!0,r.value=k,t({name:k,signal:M}).then(D=>{var q,I;if(D){const R=((I=(q=D==null?void 0:D.data)==null?void 0:q.data)==null?void 0:I.rows)||[];let H="";for(const L of R){const P=h(L)||[];if(P!=null&&P.length)for(const O of P)H+=`<div style="word-break: break-all;white-space: normal;">${O}</div>`}H=`<div style="max-width:200px;">${H}</div>`,i.value=H,N(a.unref(m),H)}else M.aborted?i.value="Loading":i.value=k,N(a.unref(m),i.value);u.value=!1})},A=a.computed(()=>{const k=e.geoCenter;let N;return typeof k=="string"&&k!==""&&(N=k.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:a.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:N,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(M,D,q)=>{m.value=D;const{name:I=""}=M,{requestUrl:R}=e.tooltipRequestData;if(!R)return I;if(a.unref(u))a.unref(r)!==I&&(g.abort(),g=new AbortController);else{if(a.unref(r)===I)return a.unref(i);S(I,q)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:a.unref(d),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:a.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}]}}),y=a.ref(!1),b=async()=>{var M;y.value=!1;const k=e.mapJson,N=`map-${e.id}`;if(k!=null&&k.path){const D=await Qe(((M=window==null?void 0:window.config)==null?void 0:M.uploadPath)+k.path);Fe.registerMap(N,(D==null?void 0:D.data)||{})}else Fe.registerMap(N,{});y.value=!0};a.watch(()=>e.mapJson,()=>{b()},{immediate:!0,deep:!0});const p=async()=>{var k,N;if(e.dataType==="request"){y.value=!1;try{const M=await n(),D=((N=(k=M==null?void 0:M.data)==null?void 0:k.data)==null?void 0:N.rows)||{},q=`map-${e.id}`;if(D!=null&&D.path){const I=await Qe(D.path);Fe.registerMap(q,(I==null?void 0:I.data)||{})}else Fe.registerMap(q,{})}catch(M){console.error(M)}finally{y.value=!0}}},T=()=>{switch(e.dataType){case"request":p();break}},{getGlobalModel:w,setGlobalModel:C}=a.inject(we,{getGlobalModel:k=>{},setGlobalModel:(k,N)=>{}}),_=ve(e)("click",()=>{const k=w(e.id);C(e.id,{...k,RECORD:a.unref(o)})});Te(e,{refreshData:T});const{setRequest:v}=a.inject(_e,{setRequest:k=>{}});return typeof v=="function"&&v({id:e.id,requestFn:T,sortNum:e.requestSort}),{option:A,style:s,isLoadedData:y,geoBackgroundImageRef:l,myGeoBackgroundImage:f,customClick:()=>{a.unref(o)&&_()},onMouseOver:(k={})=>{k.componentType==="geo"&&k.region?o.value=k.region:o.value=null}}}}),W1="",id=["src"];function ld(e,n,t,o,r,i){const s=a.resolveComponent("echarts");return a.openBlock(),a.createElementBlock("div",{class:"ecan-map",style:a.normalizeStyle(e.style)},[e.isLoadedData?(a.openBlock(),a.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"])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,id),[[a.vShow,!1]])],4)}const i0=ce(se(rd,[["render",ld],["__scopeId","data-v-10f150ac"]])),l0=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:Hi,EcanBorder:Yi,EcanButton:Ai,EcanCheckbox:Ti,EcanComboGraph:Wi,EcanCustomGraph:ji,EcanDatePicker:yi,EcanIframe:e0,EcanImage:Ji,EcanInput:hi,EcanLine:Fi,EcanList:ci,EcanMap:i0,EcanModal:ft,EcanPageConfig:Xr,EcanPie:zi,EcanProportion:di,EcanProviderConfig:Qr,EcanRadar:$i,EcanRadio:Ii,EcanRangePicker:wi,EcanScatter:Vi,EcanScrollText:ri,EcanSelect:Bi,EcanTable:a0,EcanTabs:Xi,EcanText:ai,EcanTimeDisplay:li,EcanTreeSelect:Di,barComponentProps:$o,barEvents:Pi,barProps:Uo,borderComponentProps:oa,borderEvents:Zi,borderProps:na,buttonComponentProps:Ro,buttonEvents:Ci,buttonProps:Do,checkboxComponentProps:Oo,checkboxEvents:ki,checkboxProps:Io,comboGraphComponentProps:Jo,comboGraphEvents:Gi,comboGraphProps:Qo,customGraphComponentProps:Xo,customGraphProps:Ko,datePickerComponentProps:ko,datePickerEvents:gi,datePickerProps:Ao,iframeComponentProps:ca,iframeProps:sa,imageComponentProps:la,imageEvents:Qi,imageProps:ia,inputComponentProps:Co,inputEvents:ui,inputProps:wo,lineComponentProps:Wo,lineEvents:Mi,lineProps:Go,listComponentProps:bo,listEvents:si,listProps:po,mapComponentProps:ga,mapEvents:r0,mapProps:ha,modalComponentProps:jo,modalEvents:Li,modalProps:Vo,pageConfig:pn,pageConfigComponentProps:bn,pieComponentProps:qo,pieEvents:Oi,pieProps:Ho,proportionComponentProps:So,proportionEvents:fi,proportionProps:vo,providerConfig:fo,providerConfigComponentProps:uo,radarComponentProps:ta,radarEvents:Ui,radarProps:ea,radioComponentProps:Po,radioEvents:Ri,radioProps:Fo,rangePickerComponentProps:Bo,rangePickerEvents:pi,rangePickerProps:Eo,scatterComponentProps:Yo,scatterEvents:qi,scatterProps:Zo,selectComponentProps:No,selectEvents:Ei,selectProps:Lo,tableComponentProps:da,tableEvents:t0,tableProps:fa,tabsComponentProps:ra,tabsEvents:Ki,tabsProps:aa,textComponentProps:go,textEvents:Jr,textProps:ho,timeDisplayComponentProps:yo,timeDisplayEvents:ii,timeDisplayProps:xo,treeSelectComponentProps:Mo,treeSelectEvents:_i,treeSelectProps:zo},Symbol.toStringTag,{value:"Module"})),sd={install:e=>{Object.keys(l0).forEach(n=>{const t=l0[n];t.install&&e.use(t)})}};V.EcanBar=Hi,V.EcanBorder=Yi,V.EcanButton=Ai,V.EcanCheckbox=Ti,V.EcanComboGraph=Wi,V.EcanCustomGraph=ji,V.EcanDatePicker=yi,V.EcanIframe=e0,V.EcanImage=Ji,V.EcanInput=hi,V.EcanLine=Fi,V.EcanList=ci,V.EcanMap=i0,V.EcanModal=ft,V.EcanPageConfig=Xr,V.EcanPie=zi,V.EcanProportion=di,V.EcanProviderConfig=Qr,V.EcanRadar=$i,V.EcanRadio=Ii,V.EcanRangePicker=wi,V.EcanScatter=Vi,V.EcanScrollText=ri,V.EcanSelect=Bi,V.EcanTable=a0,V.EcanTabs=Xi,V.EcanText=ai,V.EcanTimeDisplay=li,V.EcanTreeSelect=Di,V.barComponentProps=$o,V.barEvents=Pi,V.barProps=Uo,V.borderComponentProps=oa,V.borderEvents=Zi,V.borderProps=na,V.buttonComponentProps=Ro,V.buttonEvents=Ci,V.buttonProps=Do,V.checkboxComponentProps=Oo,V.checkboxEvents=ki,V.checkboxProps=Io,V.comboGraphComponentProps=Jo,V.comboGraphEvents=Gi,V.comboGraphProps=Qo,V.compatibleMobileList=Ni,V.customGraphComponentProps=Xo,V.customGraphProps=Ko,V.datePickerComponentProps=ko,V.datePickerEvents=gi,V.datePickerProps=Ao,V.default=sd,V.iframeComponentProps=ca,V.iframeProps=sa,V.imageComponentProps=la,V.imageEvents=Qi,V.imageProps=ia,V.inputComponentProps=Co,V.inputEvents=ui,V.inputProps=wo,V.lineComponentProps=Wo,V.lineEvents=Mi,V.lineProps=Go,V.listComponentProps=bo,V.listEvents=si,V.listProps=po,V.mapComponentProps=ga,V.mapEvents=r0,V.mapProps=ha,V.modalComponentProps=jo,V.modalEvents=Li,V.modalProps=Vo,V.pageConfig=pn,V.pageConfigComponentProps=bn,V.pieComponentProps=qo,V.pieEvents=Oi,V.pieProps=Ho,V.proportionComponentProps=So,V.proportionEvents=fi,V.proportionProps=vo,V.providerConfig=fo,V.providerConfigComponentProps=uo,V.radarComponentProps=ta,V.radarEvents=Ui,V.radarProps=ea,V.radioComponentProps=Po,V.radioEvents=Ri,V.radioProps=Fo,V.rangePickerComponentProps=Bo,V.rangePickerEvents=pi,V.rangePickerProps=Eo,V.scatterComponentProps=Yo,V.scatterEvents=qi,V.scatterProps=Zo,V.selectComponentProps=No,V.selectEvents=Ei,V.selectProps=Lo,V.tableComponentProps=da,V.tableEvents=t0,V.tableProps=fa,V.tabsComponentProps=ra,V.tabsEvents=Ki,V.tabsProps=aa,V.textComponentProps=go,V.textEvents=Jr,V.textProps=ho,V.timeDisplayComponentProps=yo,V.timeDisplayEvents=ii,V.timeDisplayProps=xo,V.treeSelectComponentProps=Mo,V.treeSelectEvents=_i,V.treeSelectProps=zo,Object.defineProperties(V,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
119
119
|
//# sourceMappingURL=index.umd.js.map
|