@ecan-bi/datav 1.2.20 → 1.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- /*! @ecan-bi/datav@1.2.20 */
2
- (function(M,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):(M=typeof globalThis<"u"?globalThis:M||self,a(M["@ecan/bi-datav"]={},M.Vue,M["echarts/core"],M.ResizeDetector,M.AntDesignVue,null,null,M.LodashEs,M.Dayjs,M.Axios,M.Mitt,null,null,null,M["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,M["echarts/renderers"],M["echarts/charts"],M["echarts/components"],null,M.Echarts,null,null,M.Xlsx,M.big.js))})(this,function(M,a,qe,rr,ae,Pf,zf,He,Le,ja,Ua,Mf,Ff,Vf,ar,qf,Hf,$f,jf,it,Ue,xe,Uf,Ga,Gf,Wf,St,Wa){var Ra,Ia,La,Oa;"use strict";function Za(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 Ka=Za(Ga),Ya=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Xa(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 Ya.forEach(i=>{r[i]=t(i)}),r}return o()}function Ja(e,n,t){let o=null;a.watch([t,e,n],([r,i,l],s,f)=>{r&&i&&l&&(o=qe.throttle(()=>{i.resize()},100),rr.addListener(r,o)),f(()=>{o&&r&&rr.removeListener(r,o)})})}const Qa={autoresize:Boolean},ei="ecLoadingOptions";function ti(e,n,t){const o=a.inject(ei,{}),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 ni={loading:Boolean,loadingOptions:Object},Zf="",oi=/^on[^a-z]/,ri=e=>oi.test(e);function ai(e){const n={};for(const t in e)ri(t)||(n[t]=e[t]);return n}const ii="x-vue-echarts",si="ecTheme",li="ecInitOptions",ci="ecUpdateOptions",Qe=a.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Qa,...ni},inheritAttrs:!1,setup(e,{attrs:n,listeners:t}){const o=a.shallowRef(),r=a.shallowRef(),i=a.shallowRef(),l=a.inject(si,null),s=a.inject(li,null),f=a.inject(ci,null),{autoresize:c,manualUpdate:d,loading:p,loadingOptions:u}=a.toRefs(e),x=a.computed(()=>i.value||e.option||Object.create(null)),h=a.computed(()=>e.theme||a.unref(l)||{}),g=a.computed(()=>e.initOptions||a.unref(s)||{}),y=a.computed(()=>e.updateOptions||a.unref(f)||{}),b=a.computed(()=>ai(n));function m(k){if(r.value||!o.value)return;const A=r.value=qe.init(o.value,h.value,g.value);e.group&&(A.group=e.group);let E=t;E||(E={},Object.keys(n).filter(R=>R.indexOf("on")===0&&R.length>2).forEach(R=>{const B=R.charAt(2).toLowerCase()+R.slice(3);E[B]=n[R]})),Object.keys(E).forEach(R=>{const B=E[R];B&&(R.indexOf("zr:")===0?A.getZr().on(R.slice(3).toLowerCase(),B):A.on(R.toLowerCase(),B))});function C(){if(A&&!A.isDisposed())try{A.resize()}catch(R){if(R.message==="Cannot read property 'get' of undefined")return;throw R}}function T(){A.setOption(k||x.value,y.value)}c.value?a.nextTick(()=>{C(),T()}):T()}function S(k,A){e.manualUpdate&&(i.value=k),r.value?r.value.setOption(k,A||{}):m(k)}function v(){r.value&&(r.value.dispose(),r.value=void 0)}let _=null;a.watch(d,k=>{typeof _=="function"&&(_(),_=null),k||(_=a.watch(()=>e.option,A=>{A&&(r.value?r.value.setOption(A,y.value):m())},{deep:!0}))},{immediate:!0}),a.watch([h,g],()=>{v(),m()},{deep:!0}),a.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const w=Xa(r,m);return ti(r,p,u),Ja(r,c,o),a.onMounted(()=>{e.option&&m()}),a.onUnmounted(v),{chart:r,root:o,setOption:S,nonEventAttrs:b,...w}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",a.h(ii,e)}});function Oe(e,n){fi(e)&&(e="100%");var t=di(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 fi(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function di(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ui(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Nt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function en(e){return e.length===1?"0"+e:String(e)}function hi(e,n,t){return{r:Oe(e,255)*255,g:Oe(n,255)*255,b:Oe(t,255)*255}}function tn(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 xi(e,n,t){var o,r,i;if(e=Oe(e,360),n=Oe(n,100),t=Oe(t,100),n===0)r=t,i=t,o=t;else{var l=t<.5?t*(1+n):t+n-t*n,s=2*t-l;o=tn(s,l,e+1/3),r=tn(s,l,e),i=tn(s,l,e-1/3)}return{r:o*255,g:r*255,b:i*255}}function gi(e,n,t){e=Oe(e,255),n=Oe(n,255),t=Oe(t,255);var o=Math.max(e,n,t),r=Math.min(e,n,t),i=0,l=o,s=o-r,f=o===0?0:s/o;if(o===r)i=0;else{switch(o){case e:i=(n-t)/s+(n<t?6:0);break;case n:i=(t-e)/s+2;break;case t:i=(e-n)/s+4;break}i/=6}return{h:i,s:f,v:l}}function mi(e,n,t){e=Oe(e,360)*6,n=Oe(n,100),t=Oe(t,100);var o=Math.floor(e),r=e-o,i=t*(1-n),l=t*(1-r*n),s=t*(1-(1-r)*n),f=o%6,c=[t,l,i,i,s,t][f],d=[s,t,t,l,i,i][f],p=[i,i,s,t,t,l][f];return{r:c*255,g:d*255,b:p*255}}function pi(e,n,t,o){var r=[en(Math.round(e).toString(16)),en(Math.round(n).toString(16)),en(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 ir(e){return De(e)/255}function De(e){return parseInt(e,16)}var sr={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 wt(e){var n={r:0,g:0,b:0},t=1,o=null,r=null,i=null,l=!1,s=!1;return typeof e=="string"&&(e=bi(e)),typeof e=="object"&&($e(e.r)&&$e(e.g)&&$e(e.b)?(n=hi(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):$e(e.h)&&$e(e.s)&&$e(e.v)?(o=Nt(e.s),r=Nt(e.v),n=mi(e.h,o,r),l=!0,s="hsv"):$e(e.h)&&$e(e.s)&&$e(e.l)&&(o=Nt(e.s),i=Nt(e.l),n=xi(e.h,o,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=ui(t),{ok:l,format:e.format||s,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 yi="[-\\+]?\\d+%?",vi="[-\\+]?\\d*\\.\\d+%?",Ge="(?:".concat(vi,")|(?:").concat(yi,")"),nn="[\\s|\\(]+(".concat(Ge,")[,|\\s]+(").concat(Ge,")[,|\\s]+(").concat(Ge,")\\s*\\)?"),on="[\\s|\\(]+(".concat(Ge,")[,|\\s]+(").concat(Ge,")[,|\\s]+(").concat(Ge,")[,|\\s]+(").concat(Ge,")\\s*\\)?"),ze={CSS_UNIT:new RegExp(Ge),rgb:new RegExp("rgb"+nn),rgba:new RegExp("rgba"+on),hsl:new RegExp("hsl"+nn),hsla:new RegExp("hsla"+on),hsv:new RegExp("hsv"+nn),hsva:new RegExp("hsva"+on),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 bi(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(sr[e])e=sr[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:De(t[1]),g:De(t[2]),b:De(t[3]),a:ir(t[4]),format:n?"name":"hex8"}:(t=ze.hex6.exec(e),t?{r:De(t[1]),g:De(t[2]),b:De(t[3]),format:n?"name":"hex"}:(t=ze.hex4.exec(e),t?{r:De(t[1]+t[1]),g:De(t[2]+t[2]),b:De(t[3]+t[3]),a:ir(t[4]+t[4]),format:n?"name":"hex8"}:(t=ze.hex3.exec(e),t?{r:De(t[1]+t[1]),g:De(t[2]+t[2]),b:De(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function $e(e){return!!ze.CSS_UNIT.exec(String(e))}var Pt=2,lr=.16,Si=.05,wi=.05,Ci=.15,cr=5,fr=4,ki=[{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 dr(e){var n=e.r,t=e.g,o=e.b,r=gi(n,t,o);return{h:r.h*360,s:r.s,v:r.v}}function zt(e){var n=e.r,t=e.g,o=e.b;return"#".concat(pi(n,t,o,!1))}function _i(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 ur(e,n,t){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=t?Math.round(e.h)-Pt*n:Math.round(e.h)+Pt*n:o=t?Math.round(e.h)+Pt*n:Math.round(e.h)-Pt*n,o<0?o+=360:o>=360&&(o-=360),o}function hr(e,n,t){if(e.h===0&&e.s===0)return e.s;var o;return t?o=e.s-lr*n:n===fr?o=e.s+lr:o=e.s+Si*n,o>1&&(o=1),t&&n===cr&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function xr(e,n,t){var o;return t?o=e.v+wi*n:o=e.v-Ci*n,o>1&&(o=1),Number(o.toFixed(2))}function rn(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],o=wt(e),r=cr;r>0;r-=1){var i=dr(o),l=zt(wt({h:ur(i,r,!0),s:hr(i,r,!0),v:xr(i,r,!0)}));t.push(l)}t.push(zt(o));for(var s=1;s<=fr;s+=1){var f=dr(o),c=zt(wt({h:ur(f,s),s:hr(f,s),v:xr(f,s)}));t.push(c)}return n.theme==="dark"?ki.map(function(d){var p=d.index,u=d.opacity,x=zt(_i(wt(n.backgroundColor||"#141414"),wt(t[p]),u*100));return x}):t}var an={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"},sn={},ln={};Object.keys(an).forEach(function(e){sn[e]=rn(an[e]),sn[e].primary=sn[e][5],ln[e]=rn(an[e],{theme:"dark",backgroundColor:"#141414"}),ln[e].primary=ln[e][5]});var gr=[],Ct=[],Ai="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Ei(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Ti(e,n){if(n=n||{},e===void 0)throw new Error(Ai);var t=n.prepend===!0?"prepend":"append",o=n.container!==void 0?n.container:document.querySelector("head"),r=gr.indexOf(o);r===-1&&(r=gr.push(o)-1,Ct[r]={});var i;return Ct[r]!==void 0&&Ct[r][t]!==void 0?i=Ct[r][t]:(i=Ct[r][t]=Ei(),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 mr(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){Bi(e,r,t[r])})}return e}function Bi(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Di(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function Ri(e,n){Di(e,"[@ant-design/icons-vue] ".concat(n))}function pr(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function cn(e,n,t){return t?a.h(e.tag,mr({key:n},t,e.attrs),(e.children||[]).map(function(o,r){return cn(o,"".concat(n,"-").concat(e.tag,"-").concat(r))})):a.h(e.tag,mr({key:n},e.attrs),(e.children||[]).map(function(o,r){return cn(o,"".concat(n,"-").concat(e.tag,"-").concat(r))}))}function yr(e){return rn(e)[0]}function vr(e){return e?Array.isArray(e)?e:[e]:[]}var Ii=`
1
+ /*! @ecan-bi/datav@1.2.22 */
2
+ (function(z,r){typeof exports=="object"&&typeof module<"u"?r(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"],r):(z=typeof globalThis<"u"?globalThis:z||self,r(z["@ecan/bi-datav"]={},z.Vue,z["echarts/core"],z.ResizeDetector,z.AntDesignVue,null,null,z.LodashEs,z.Dayjs,z.Axios,z.Mitt,null,null,null,z["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,z["echarts/renderers"],z["echarts/charts"],z["echarts/components"],null,z.Echarts,null,null,z.Xlsx,z.big.js))})(this,function(z,r,He,ar,ae,Mf,Ff,$e,Oe,Wa,Za,Vf,qf,Hf,ir,$f,jf,Uf,Gf,lt,We,xe,Wf,Ka,Zf,Kf,kt,Ya){var Oa,Na,Pa,za;"use strict";function Xa(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 Ja=Xa(Ka),Qa=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function ei(e,n){function t(a){return(...i)=>{if(e.value||n(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[a].apply(e.value,i)}}function o(){const a=Object.create(null);return Qa.forEach(i=>{a[i]=t(i)}),a}return o()}function ti(e,n,t){let o=null;r.watch([t,e,n],([a,i,l],s,f)=>{a&&i&&l&&(o=He.throttle(()=>{i.resize()},100),ar.addListener(a,o)),f(()=>{o&&a&&ar.removeListener(a,o)})})}const ni={autoresize:Boolean},oi="ecLoadingOptions";function ri(e,n,t){const o=r.inject(oi,{}),a=r.computed(()=>({...r.unref(o),...t==null?void 0:t.value}));r.watchEffect(()=>{const i=e.value;i&&(n.value?i.showLoading(a.value):i.hideLoading())})}const ai={loading:Boolean,loadingOptions:Object},Yf="",ii=/^on[^a-z]/,si=e=>ii.test(e);function li(e){const n={};for(const t in e)si(t)||(n[t]=e[t]);return n}const ci="x-vue-echarts",fi="ecTheme",di="ecInitOptions",ui="ecUpdateOptions",nt=r.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...ni,...ai},inheritAttrs:!1,setup(e,{attrs:n,listeners:t}){const o=r.shallowRef(),a=r.shallowRef(),i=r.shallowRef(),l=r.inject(fi,null),s=r.inject(di,null),f=r.inject(ui,null),{autoresize:c,manualUpdate:d,loading:p,loadingOptions:u}=r.toRefs(e),h=r.computed(()=>i.value||e.option||Object.create(null)),g=r.computed(()=>e.theme||r.unref(l)||{}),x=r.computed(()=>e.initOptions||r.unref(s)||{}),y=r.computed(()=>e.updateOptions||r.unref(f)||{}),S=r.computed(()=>li(n));function m(k){if(a.value||!o.value)return;const A=a.value=He.init(o.value,g.value,x.value);e.group&&(A.group=e.group);let E=t;E||(E={},Object.keys(n).filter(R=>R.indexOf("on")===0&&R.length>2).forEach(R=>{const B=R.charAt(2).toLowerCase()+R.slice(3);E[B]=n[R]})),Object.keys(E).forEach(R=>{const B=E[R];B&&(R.indexOf("zr:")===0?A.getZr().on(R.slice(3).toLowerCase(),B):A.on(R.toLowerCase(),B))});function C(){if(A&&!A.isDisposed())try{A.resize()}catch(R){if(R.message==="Cannot read property 'get' of undefined")return;throw R}}function T(){A.setOption(k||h.value,y.value)}c.value?r.nextTick(()=>{C(),T()}):T()}function b(k,A){e.manualUpdate&&(i.value=k),a.value?a.value.setOption(k,A||{}):m(k)}function v(){a.value&&(a.value.dispose(),a.value=void 0)}let _=null;r.watch(d,k=>{typeof _=="function"&&(_(),_=null),k||(_=r.watch(()=>e.option,A=>{A&&(a.value?a.value.setOption(A,y.value):m())},{deep:!0}))},{immediate:!0}),r.watch([g,x],()=>{v(),m()},{deep:!0}),r.watchEffect(()=>{e.group&&a.value&&(a.value.group=e.group)});const w=ei(a,m);return ri(a,p,u),ti(a,c,o),r.onMounted(()=>{e.option&&m()}),r.onUnmounted(v),{chart:a,root:o,setOption:b,nonEventAttrs:S,...w}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",r.h(ci,e)}});function Ne(e,n){hi(e)&&(e="100%");var t=xi(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 hi(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function xi(e){return typeof e=="string"&&e.indexOf("%")!==-1}function gi(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 en(e){return e.length===1?"0"+e:String(e)}function mi(e,n,t){return{r:Ne(e,255)*255,g:Ne(n,255)*255,b:Ne(t,255)*255}}function tn(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 pi(e,n,t){var o,a,i;if(e=Ne(e,360),n=Ne(n,100),t=Ne(t,100),n===0)a=t,i=t,o=t;else{var l=t<.5?t*(1+n):t+n-t*n,s=2*t-l;o=tn(s,l,e+1/3),a=tn(s,l,e),i=tn(s,l,e-1/3)}return{r:o*255,g:a*255,b:i*255}}function yi(e,n,t){e=Ne(e,255),n=Ne(n,255),t=Ne(t,255);var o=Math.max(e,n,t),a=Math.min(e,n,t),i=0,l=o,s=o-a,f=o===0?0:s/o;if(o===a)i=0;else{switch(o){case e:i=(n-t)/s+(n<t?6:0);break;case n:i=(t-e)/s+2;break;case t:i=(e-n)/s+4;break}i/=6}return{h:i,s:f,v:l}}function vi(e,n,t){e=Ne(e,360)*6,n=Ne(n,100),t=Ne(t,100);var o=Math.floor(e),a=e-o,i=t*(1-n),l=t*(1-a*n),s=t*(1-(1-a)*n),f=o%6,c=[t,l,i,i,s,t][f],d=[s,t,t,l,i,i][f],p=[i,i,s,t,t,l][f];return{r:c*255,g:d*255,b:p*255}}function bi(e,n,t,o){var a=[en(Math.round(e).toString(16)),en(Math.round(n).toString(16)),en(Math.round(t).toString(16))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function sr(e){return Re(e)/255}function Re(e){return parseInt(e,16)}var lr={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 _t(e){var n={r:0,g:0,b:0},t=1,o=null,a=null,i=null,l=!1,s=!1;return typeof e=="string"&&(e=Ci(e)),typeof e=="object"&&(je(e.r)&&je(e.g)&&je(e.b)?(n=mi(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):je(e.h)&&je(e.s)&&je(e.v)?(o=Pt(e.s),a=Pt(e.v),n=vi(e.h,o,a),l=!0,s="hsv"):je(e.h)&&je(e.s)&&je(e.l)&&(o=Pt(e.s),i=Pt(e.l),n=pi(e.h,o,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=gi(t),{ok:l,format:e.format||s,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 Si="[-\\+]?\\d+%?",wi="[-\\+]?\\d*\\.\\d+%?",Ze="(?:".concat(wi,")|(?:").concat(Si,")"),nn="[\\s|\\(]+(".concat(Ze,")[,|\\s]+(").concat(Ze,")[,|\\s]+(").concat(Ze,")\\s*\\)?"),on="[\\s|\\(]+(".concat(Ze,")[,|\\s]+(").concat(Ze,")[,|\\s]+(").concat(Ze,")[,|\\s]+(").concat(Ze,")\\s*\\)?"),Me={CSS_UNIT:new RegExp(Ze),rgb:new RegExp("rgb"+nn),rgba:new RegExp("rgba"+on),hsl:new RegExp("hsl"+nn),hsla:new RegExp("hsla"+on),hsv:new RegExp("hsv"+nn),hsva:new RegExp("hsva"+on),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 Ci(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(lr[e])e=lr[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=Me.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=Me.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Me.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=Me.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Me.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=Me.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Me.hex8.exec(e),t?{r:Re(t[1]),g:Re(t[2]),b:Re(t[3]),a:sr(t[4]),format:n?"name":"hex8"}:(t=Me.hex6.exec(e),t?{r:Re(t[1]),g:Re(t[2]),b:Re(t[3]),format:n?"name":"hex"}:(t=Me.hex4.exec(e),t?{r:Re(t[1]+t[1]),g:Re(t[2]+t[2]),b:Re(t[3]+t[3]),a:sr(t[4]+t[4]),format:n?"name":"hex8"}:(t=Me.hex3.exec(e),t?{r:Re(t[1]+t[1]),g:Re(t[2]+t[2]),b:Re(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function je(e){return!!Me.CSS_UNIT.exec(String(e))}var zt=2,cr=.16,ki=.05,_i=.05,Ai=.15,fr=5,dr=4,Ei=[{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 ur(e){var n=e.r,t=e.g,o=e.b,a=yi(n,t,o);return{h:a.h*360,s:a.s,v:a.v}}function Mt(e){var n=e.r,t=e.g,o=e.b;return"#".concat(bi(n,t,o,!1))}function Ti(e,n,t){var o=t/100,a={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 a}function hr(e,n,t){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=t?Math.round(e.h)-zt*n:Math.round(e.h)+zt*n:o=t?Math.round(e.h)+zt*n:Math.round(e.h)-zt*n,o<0?o+=360:o>=360&&(o-=360),o}function xr(e,n,t){if(e.h===0&&e.s===0)return e.s;var o;return t?o=e.s-cr*n:n===dr?o=e.s+cr:o=e.s+ki*n,o>1&&(o=1),t&&n===fr&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function gr(e,n,t){var o;return t?o=e.v+_i*n:o=e.v-Ai*n,o>1&&(o=1),Number(o.toFixed(2))}function rn(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],o=_t(e),a=fr;a>0;a-=1){var i=ur(o),l=Mt(_t({h:hr(i,a,!0),s:xr(i,a,!0),v:gr(i,a,!0)}));t.push(l)}t.push(Mt(o));for(var s=1;s<=dr;s+=1){var f=ur(o),c=Mt(_t({h:hr(f,s),s:xr(f,s),v:gr(f,s)}));t.push(c)}return n.theme==="dark"?Ei.map(function(d){var p=d.index,u=d.opacity,h=Mt(Ti(_t(n.backgroundColor||"#141414"),_t(t[p]),u*100));return h}):t}var an={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"},sn={},ln={};Object.keys(an).forEach(function(e){sn[e]=rn(an[e]),sn[e].primary=sn[e][5],ln[e]=rn(an[e],{theme:"dark",backgroundColor:"#141414"}),ln[e].primary=ln[e][5]});var mr=[],At=[],Bi="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Di(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Ri(e,n){if(n=n||{},e===void 0)throw new Error(Bi);var t=n.prepend===!0?"prepend":"append",o=n.container!==void 0?n.container:document.querySelector("head"),a=mr.indexOf(o);a===-1&&(a=mr.push(o)-1,At[a]={});var i;return At[a]!==void 0&&At[a][t]!==void 0?i=At[a][t]:(i=At[a][t]=Di(),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 pr(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(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){Ii(e,a,t[a])})}return e}function Ii(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Li(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function Oi(e,n){Li(e,"[@ant-design/icons-vue] ".concat(n))}function yr(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function cn(e,n,t){return t?r.h(e.tag,pr({key:n},t,e.attrs),(e.children||[]).map(function(o,a){return cn(o,"".concat(n,"-").concat(e.tag,"-").concat(a))})):r.h(e.tag,pr({key:n},e.attrs),(e.children||[]).map(function(o,a){return cn(o,"".concat(n,"-").concat(e.tag,"-").concat(a))}))}function vr(e){return rn(e)[0]}function br(e){return e?Array.isArray(e)?e:[e]:[]}var Ni=`
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
- `,br=!1,Li=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ii;a.nextTick(function(){br||(typeof window<"u"&&window.document&&window.document.documentElement&&Ti(n,{prepend:!0}),br=!0)})},Oi=["icon","primaryColor","secondaryColor"];function Ni(e,n){if(e==null)return{};var t=Pi(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 Pi(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 Mt(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){zi(e,r,t[r])})}return e}function zi(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var kt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Mi(e){var n=e.primaryColor,t=e.secondaryColor;kt.primaryColor=n,kt.secondaryColor=t||yr(n),kt.calculated=!!t}function Fi(){return Mt({},kt)}var st=function(n,t){var o=Mt({},n,t.attrs),r=o.icon,i=o.primaryColor,l=o.secondaryColor,s=Ni(o,Oi),f=kt;if(i&&(f={primaryColor:i,secondaryColor:l||yr(i)}),Li(),Ri(pr(r),"icon should be icon definiton, but got ".concat(r)),!pr(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=Mt({},c,{icon:c.icon(f.primaryColor,f.secondaryColor)})),cn(c.icon,"svg-".concat(c.name),Mt({},s,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};st.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},st.inheritAttrs=!1,st.displayName="IconBase",st.getTwoToneColors=Fi,st.setTwoToneColors=Mi;const fn=st;function Vi(e,n){return ji(e)||$i(e,n)||Hi(e,n)||qi()}function qi(){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 Hi(e,n){if(e){if(typeof e=="string")return Sr(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 Sr(e,n)}}function Sr(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 $i(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],r=!0,i=!1,l,s;try{for(t=t.call(e);!(r=(l=t.next()).done)&&(o.push(l.value),!(n&&o.length===n));r=!0);}catch(f){i=!0,s=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw s}}return o}}function ji(e){if(Array.isArray(e))return e}function wr(e){var n=vr(e),t=Vi(n,2),o=t[0],r=t[1];return fn.setTwoToneColors({primaryColor:o,secondaryColor:r})}function Ui(){var e=fn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Gi=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Wi(e,n){return Xi(e)||Yi(e,n)||Ki(e,n)||Zi()}function Zi(){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 Ki(e,n){if(e){if(typeof e=="string")return Cr(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 Cr(e,n)}}function Cr(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 Yi(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],r=!0,i=!1,l,s;try{for(t=t.call(e);!(r=(l=t.next()).done)&&(o.push(l.value),!(n&&o.length===n));r=!0);}catch(f){i=!0,s=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw s}}return o}}function Xi(e){if(Array.isArray(e))return e}function kr(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){dn(e,r,t[r])})}return e}function dn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ji(e,n){if(e==null)return{};var t=Qi(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 Qi(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}wr("#1890ff");var lt=function(n,t){var o,r=kr({},n,t.attrs),i=r.class,l=r.icon,s=r.spin,f=r.rotate,c=r.tabindex,d=r.twoToneColor,p=r.onClick,u=Ji(r,Gi),x=(o={anticon:!0},dn(o,"anticon-".concat(l.name),!!l.name),dn(o,i,i),o),h=s===""||s||l.name==="loading"?"anticon-spin":"",g=c;g===void 0&&p&&(g=-1,u.tabindex=g);var y=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,b=vr(d),m=Wi(b,2),S=m[0],v=m[1];return a.createVNode("span",kr({role:"img","aria-label":l.name},u,{onClick:p,class:x}),[a.createVNode(fn,{class:h,icon:l,primaryColor:S,secondaryColor:v,style:y},null)])};lt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},lt.displayName="AntdIcon",lt.inheritAttrs=!1,lt.getTwoToneColor=Ui,lt.setTwoToneColor=wr;const _r=lt;var es={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 ts=es;function Ar(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){ns(e,r,t[r])})}return e}function ns(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var un=function(n,t){var o=Ar({},n,t.attrs);return a.createVNode(_r,Ar({},o,{icon:ts}),null)};un.displayName="CloseOutlined",un.inheritAttrs=!1;const os=un;var rs={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 as=rs;function Er(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){is(e,r,t[r])})}return e}function is(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var hn=function(n,t){var o=Er({},n,t.attrs);return a.createVNode(_r,Er({},o,{icon:as}),null)};hn.displayName="LoadingOutlined",hn.inheritAttrs=!1;const ss=hn,ls=a.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ae.Spin},setup(){return{indicator:a.h(ss,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Kf="",le=(e,n)=>{const t=e.__vccOpts||e;for(const[o,r]of n)t[o]=r;return t},cs={class:"spin-wrapper"};function fs(e,n,t,o,r,i){const l=a.resolveComponent("a-spin");return a.openBlock(),a.createElementBlock("div",cs,[e.spinning?(a.openBlock(),a.createBlock(l,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):a.renderSlot(e.$slots,"default",{key:1})])}const _t=le(ls,[["render",fs]]),ds=a.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ae.Skeleton}});function us(e,n,t,o,r,i){const l=a.resolveComponent("a-skeleton");return a.openBlock(),a.createBlock(l,{active:"",loading:e.loading},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const Ft=le(ds,[["render",us]]);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},he={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},xn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},gn=de(xn),hs=["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=He.without(hs,...n);return a.computed(()=>He.pick(e,t))},mn="EVENT_BUS",Ee="GLOBAL_CONFIG",Se="GLOBAL_MODEL",Te="REQUEST_MODEL",Tr="GLOBAL_TOKEN",At="REFRESH_PAGE",Br="MODAL_MODEL",ct=18,xs="ygt",gs=(Ra=window==null?void 0:window.config)==null?void 0:Ra.indicatorURL;(Ia=window==null?void 0:window.config)!=null&&Ia.uploadPath;const Dr=((La=window==null?void 0:window.config)==null?void 0:La.routerBaseURL)||"./",ms=((Oa=window==null?void 0:window.config)==null?void 0:Oa.erdURL)||"",be=(e,n)=>{a.watch(()=>e.id,t=>{const o=a.inject(mn,{onEvent:(r,i)=>{}});t!=null&&t!==""&&o.onEvent(t,n)},{immediate:!0})},pe=e=>{const n=e.events,t=e.id,o=a.inject(mn,{emitEvent:(i,l)=>{}}),{touchEventId:r}=a.inject(Ee,{touchEventId:a.ref("")});return(i,l=()=>{})=>function(){l.call(this,...arguments);const{emitEvent:s}=o;n.forEach(f=>{if(i===f.on)try{r.value=t,s(f.target,f.emit)}catch(c){console.error(c)}})}},Et=(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 Set,l=new Map,s=e.length;for(let d=0;d<s;d++){const p=e[d],u=p[t]||"",x=p[o]||"",h=p[r]||"";if(i.add(u),l.has(h)){const g=l.get(h);g.push({name:u,value:x,...p}),l.set(h,g)}else l.set(h,[{name:u,value:x,...p}])}const f=Array.from(i),c=[];for(const[d,p]of l)c.push({name:d,data:p});return{dimensions:f,dataset:c}};var te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ys(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 Rr={exports:{}};function vs(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 pn={exports:{}};const bs=ys(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ir;function re(){return Ir||(Ir=1,function(e,n){(function(t,o){e.exports=o()})(te,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 te<"u"&&te.crypto&&(i=te.crypto),!i&&typeof vs=="function")try{i=bs}catch{}var l=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.")},s=Object.create||function(){function m(){}return function(S){var v;return m.prototype=S,v=new m,m.prototype=null,v}}(),f={},c=f.lib={},d=c.Base=function(){return{extend:function(m){var S=s(this);return m&&S.mixIn(m),(!S.hasOwnProperty("init")||this.init===S.init)&&(S.init=function(){S.$super.init.apply(this,arguments)}),S.init.prototype=S,S.$super=this,S},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var S in m)m.hasOwnProperty(S)&&(this[S]=m[S]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=c.WordArray=d.extend({init:function(m,S){m=this.words=m||[],S!=r?this.sigBytes=S:this.sigBytes=m.length*4},toString:function(m){return(m||x).stringify(this)},concat:function(m){var S=this.words,v=m.words,_=this.sigBytes,w=m.sigBytes;if(this.clamp(),_%4)for(var k=0;k<w;k++){var A=v[k>>>2]>>>24-k%4*8&255;S[_+k>>>2]|=A<<24-(_+k)%4*8}else for(var E=0;E<w;E+=4)S[_+E>>>2]=v[E>>>2];return this.sigBytes+=w,this},clamp:function(){var m=this.words,S=this.sigBytes;m[S>>>2]&=4294967295<<32-S%4*8,m.length=o.ceil(S/4)},clone:function(){var m=d.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var S=[],v=0;v<m;v+=4)S.push(l());return new p.init(S,m)}}),u=f.enc={},x=u.Hex={stringify:function(m){for(var S=m.words,v=m.sigBytes,_=[],w=0;w<v;w++){var k=S[w>>>2]>>>24-w%4*8&255;_.push((k>>>4).toString(16)),_.push((k&15).toString(16))}return _.join("")},parse:function(m){for(var S=m.length,v=[],_=0;_<S;_+=2)v[_>>>3]|=parseInt(m.substr(_,2),16)<<24-_%8*4;return new p.init(v,S/2)}},h=u.Latin1={stringify:function(m){for(var S=m.words,v=m.sigBytes,_=[],w=0;w<v;w++){var k=S[w>>>2]>>>24-w%4*8&255;_.push(String.fromCharCode(k))}return _.join("")},parse:function(m){for(var S=m.length,v=[],_=0;_<S;_++)v[_>>>2]|=(m.charCodeAt(_)&255)<<24-_%4*8;return new p.init(v,S)}},g=u.Utf8={stringify:function(m){try{return decodeURIComponent(escape(h.stringify(m)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(m){return h.parse(unescape(encodeURIComponent(m)))}},y=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=g.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var S,v=this._data,_=v.words,w=v.sigBytes,k=this.blockSize,A=k*4,E=w/A;m?E=o.ceil(E):E=o.max((E|0)-this._minBufferSize,0);var C=E*k,T=o.min(C*4,w);if(C){for(var R=0;R<C;R+=k)this._doProcessBlock(_,R);S=_.splice(0,C),v.sigBytes-=T}return new p.init(S,T)},clone:function(){var m=d.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});c.Hasher=y.extend({cfg:d.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var S=this._doFinalize();return S},blockSize:16,_createHelper:function(m){return function(S,v){return new m.init(v).finalize(S)}},_createHmacHelper:function(m){return function(S,v){return new b.HMAC.init(m,v).finalize(S)}}});var b=f.algo={};return f}(Math);return t})}(pn)),pn.exports}var yn={exports:{}},Lr;function Vt(){return Lr||(Lr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(o){var r=t,i=r.lib,l=i.Base,s=i.WordArray,f=r.x64={};f.Word=l.extend({init:function(c,d){this.high=c,this.low=d}}),f.WordArray=l.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,p=[],u=0;u<d;u++){var x=c[u];p.push(x.high),p.push(x.low)}return s.create(p,this.sigBytes)},clone:function(){for(var c=l.clone.call(this),d=c.words=this.words.slice(0),p=d.length,u=0;u<p;u++)d[u]=d[u].clone();return c}})}(),t})}(yn)),yn.exports}var vn={exports:{}},Or;function Ss(){return Or||(Or=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){if(typeof ArrayBuffer=="function"){var o=t,r=o.lib,i=r.WordArray,l=i.init,s=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=[],p=0;p<c;p++)d[p>>>2]|=f[p]<<24-p%4*8;l.call(this,d,c)}else l.apply(this,arguments)};s.prototype=i}}(),t.lib.WordArray})}(vn)),vn.exports}var bn={exports:{}},Nr;function ws(){return Nr||(Nr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,l=o.enc;l.Utf16=l.Utf16BE={stringify:function(f){for(var c=f.words,d=f.sigBytes,p=[],u=0;u<d;u+=2){var x=c[u>>>2]>>>16-u%4*8&65535;p.push(String.fromCharCode(x))}return p.join("")},parse:function(f){for(var c=f.length,d=[],p=0;p<c;p++)d[p>>>1]|=f.charCodeAt(p)<<16-p%2*16;return i.create(d,c*2)}},l.Utf16LE={stringify:function(f){for(var c=f.words,d=f.sigBytes,p=[],u=0;u<d;u+=2){var x=s(c[u>>>2]>>>16-u%4*8&65535);p.push(String.fromCharCode(x))}return p.join("")},parse:function(f){for(var c=f.length,d=[],p=0;p<c;p++)d[p>>>1]|=s(f.charCodeAt(p)<<16-p%2*16);return i.create(d,c*2)}};function s(f){return f<<8&4278255360|f>>>8&16711935}}(),t.enc.Utf16})}(bn)),bn.exports}var Sn={exports:{}},Pr;function ft(){return Pr||(Pr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,l=o.enc;l.Base64={stringify:function(f){var c=f.words,d=f.sigBytes,p=this._map;f.clamp();for(var u=[],x=0;x<d;x+=3)for(var h=c[x>>>2]>>>24-x%4*8&255,g=c[x+1>>>2]>>>24-(x+1)%4*8&255,y=c[x+2>>>2]>>>24-(x+2)%4*8&255,b=h<<16|g<<8|y,m=0;m<4&&x+m*.75<d;m++)u.push(p.charAt(b>>>6*(3-m)&63));var S=p.charAt(64);if(S)for(;u.length%4;)u.push(S);return u.join("")},parse:function(f){var c=f.length,d=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var u=0;u<d.length;u++)p[d.charCodeAt(u)]=u}var x=d.charAt(64);if(x){var h=f.indexOf(x);h!==-1&&(c=h)}return s(f,c,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(f,c,d){for(var p=[],u=0,x=0;x<c;x++)if(x%4){var h=d[f.charCodeAt(x-1)]<<x%4*2,g=d[f.charCodeAt(x)]>>>6-x%4*2,y=h|g;p[u>>>2]|=y<<24-u%4*8,u++}return i.create(p,u)}}(),t.enc.Base64})}(Sn)),Sn.exports}var wn={exports:{}},zr;function Cs(){return zr||(zr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,l=o.enc;l.Base64url={stringify:function(f,c=!0){var d=f.words,p=f.sigBytes,u=c?this._safe_map:this._map;f.clamp();for(var x=[],h=0;h<p;h+=3)for(var g=d[h>>>2]>>>24-h%4*8&255,y=d[h+1>>>2]>>>24-(h+1)%4*8&255,b=d[h+2>>>2]>>>24-(h+2)%4*8&255,m=g<<16|y<<8|b,S=0;S<4&&h+S*.75<p;S++)x.push(u.charAt(m>>>6*(3-S)&63));var v=u.charAt(64);if(v)for(;x.length%4;)x.push(v);return x.join("")},parse:function(f,c=!0){var d=f.length,p=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var x=0;x<p.length;x++)u[p.charCodeAt(x)]=x}var h=p.charAt(64);if(h){var g=f.indexOf(h);g!==-1&&(d=g)}return s(f,d,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(f,c,d){for(var p=[],u=0,x=0;x<c;x++)if(x%4){var h=d[f.charCodeAt(x-1)]<<x%4*2,g=d[f.charCodeAt(x)]>>>6-x%4*2,y=h|g;p[u>>>2]|=y<<24-u%4*8,u++}return i.create(p,u)}}(),t.enc.Base64url})}(wn)),wn.exports}var Cn={exports:{}},Mr;function dt(){return Mr||(Mr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(o){var r=t,i=r.lib,l=i.WordArray,s=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=s.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,y){for(var b=0;b<16;b++){var m=y+b,S=g[m];g[m]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var v=this._hash.words,_=g[y+0],w=g[y+1],k=g[y+2],A=g[y+3],E=g[y+4],C=g[y+5],T=g[y+6],R=g[y+7],B=g[y+8],F=g[y+9],I=g[y+10],$=g[y+11],q=g[y+12],L=g[y+13],O=g[y+14],H=g[y+15],D=v[0],N=v[1],z=v[2],P=v[3];D=p(D,N,z,P,_,7,c[0]),P=p(P,D,N,z,w,12,c[1]),z=p(z,P,D,N,k,17,c[2]),N=p(N,z,P,D,A,22,c[3]),D=p(D,N,z,P,E,7,c[4]),P=p(P,D,N,z,C,12,c[5]),z=p(z,P,D,N,T,17,c[6]),N=p(N,z,P,D,R,22,c[7]),D=p(D,N,z,P,B,7,c[8]),P=p(P,D,N,z,F,12,c[9]),z=p(z,P,D,N,I,17,c[10]),N=p(N,z,P,D,$,22,c[11]),D=p(D,N,z,P,q,7,c[12]),P=p(P,D,N,z,L,12,c[13]),z=p(z,P,D,N,O,17,c[14]),N=p(N,z,P,D,H,22,c[15]),D=u(D,N,z,P,w,5,c[16]),P=u(P,D,N,z,T,9,c[17]),z=u(z,P,D,N,$,14,c[18]),N=u(N,z,P,D,_,20,c[19]),D=u(D,N,z,P,C,5,c[20]),P=u(P,D,N,z,I,9,c[21]),z=u(z,P,D,N,H,14,c[22]),N=u(N,z,P,D,E,20,c[23]),D=u(D,N,z,P,F,5,c[24]),P=u(P,D,N,z,O,9,c[25]),z=u(z,P,D,N,A,14,c[26]),N=u(N,z,P,D,B,20,c[27]),D=u(D,N,z,P,L,5,c[28]),P=u(P,D,N,z,k,9,c[29]),z=u(z,P,D,N,R,14,c[30]),N=u(N,z,P,D,q,20,c[31]),D=x(D,N,z,P,C,4,c[32]),P=x(P,D,N,z,B,11,c[33]),z=x(z,P,D,N,$,16,c[34]),N=x(N,z,P,D,O,23,c[35]),D=x(D,N,z,P,w,4,c[36]),P=x(P,D,N,z,E,11,c[37]),z=x(z,P,D,N,R,16,c[38]),N=x(N,z,P,D,I,23,c[39]),D=x(D,N,z,P,L,4,c[40]),P=x(P,D,N,z,_,11,c[41]),z=x(z,P,D,N,A,16,c[42]),N=x(N,z,P,D,T,23,c[43]),D=x(D,N,z,P,F,4,c[44]),P=x(P,D,N,z,q,11,c[45]),z=x(z,P,D,N,H,16,c[46]),N=x(N,z,P,D,k,23,c[47]),D=h(D,N,z,P,_,6,c[48]),P=h(P,D,N,z,R,10,c[49]),z=h(z,P,D,N,O,15,c[50]),N=h(N,z,P,D,C,21,c[51]),D=h(D,N,z,P,q,6,c[52]),P=h(P,D,N,z,A,10,c[53]),z=h(z,P,D,N,I,15,c[54]),N=h(N,z,P,D,w,21,c[55]),D=h(D,N,z,P,B,6,c[56]),P=h(P,D,N,z,H,10,c[57]),z=h(z,P,D,N,T,15,c[58]),N=h(N,z,P,D,L,21,c[59]),D=h(D,N,z,P,E,6,c[60]),P=h(P,D,N,z,$,10,c[61]),z=h(z,P,D,N,k,15,c[62]),N=h(N,z,P,D,F,21,c[63]),v[0]=v[0]+D|0,v[1]=v[1]+N|0,v[2]=v[2]+z|0,v[3]=v[3]+P|0},_doFinalize:function(){var g=this._data,y=g.words,b=this._nDataBytes*8,m=g.sigBytes*8;y[m>>>5]|=128<<24-m%32;var S=o.floor(b/4294967296),v=b;y[(m+64>>>9<<4)+15]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,y[(m+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,g.sigBytes=(y.length+1)*4,this._process();for(var _=this._hash,w=_.words,k=0;k<4;k++){var A=w[k];w[k]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return _},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}});function p(g,y,b,m,S,v,_){var w=g+(y&b|~y&m)+S+_;return(w<<v|w>>>32-v)+y}function u(g,y,b,m,S,v,_){var w=g+(y&m|b&~m)+S+_;return(w<<v|w>>>32-v)+y}function x(g,y,b,m,S,v,_){var w=g+(y^b^m)+S+_;return(w<<v|w>>>32-v)+y}function h(g,y,b,m,S,v,_){var w=g+(b^(y|~m))+S+_;return(w<<v|w>>>32-v)+y}r.MD5=s._createHelper(d),r.HmacMD5=s._createHmacHelper(d)}(Math),t.MD5})}(Cn)),Cn.exports}var kn={exports:{}},Fr;function _n(){return Fr||(Fr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,l=r.Hasher,s=o.algo,f=[],c=s.SHA1=l.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,p){for(var u=this._hash.words,x=u[0],h=u[1],g=u[2],y=u[3],b=u[4],m=0;m<80;m++){if(m<16)f[m]=d[p+m]|0;else{var S=f[m-3]^f[m-8]^f[m-14]^f[m-16];f[m]=S<<1|S>>>31}var v=(x<<5|x>>>27)+b+f[m];m<20?v+=(h&g|~h&y)+1518500249:m<40?v+=(h^g^y)+1859775393:m<60?v+=(h&g|h&y|g&y)-1894007588:v+=(h^g^y)-899497514,b=y,y=g,g=h<<30|h>>>2,h=x,x=v}u[0]=u[0]+x|0,u[1]=u[1]+h|0,u[2]=u[2]+g|0,u[3]=u[3]+y|0,u[4]=u[4]+b|0},_doFinalize:function(){var d=this._data,p=d.words,u=this._nDataBytes*8,x=d.sigBytes*8;return p[x>>>5]|=128<<24-x%32,p[(x+64>>>9<<4)+14]=Math.floor(u/4294967296),p[(x+64>>>9<<4)+15]=u,d.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var d=l.clone.call(this);return d._hash=this._hash.clone(),d}});o.SHA1=l._createHelper(c),o.HmacSHA1=l._createHmacHelper(c)}(),t.SHA1})}(kn)),kn.exports}var An={exports:{}},Vr;function qr(){return Vr||(Vr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(o){var r=t,i=r.lib,l=i.WordArray,s=i.Hasher,f=r.algo,c=[],d=[];(function(){function x(b){for(var m=o.sqrt(b),S=2;S<=m;S++)if(!(b%S))return!1;return!0}function h(b){return(b-(b|0))*4294967296|0}for(var g=2,y=0;y<64;)x(g)&&(y<8&&(c[y]=h(o.pow(g,1/2))),d[y]=h(o.pow(g,1/3)),y++),g++})();var p=[],u=f.SHA256=s.extend({_doReset:function(){this._hash=new l.init(c.slice(0))},_doProcessBlock:function(x,h){for(var g=this._hash.words,y=g[0],b=g[1],m=g[2],S=g[3],v=g[4],_=g[5],w=g[6],k=g[7],A=0;A<64;A++){if(A<16)p[A]=x[h+A]|0;else{var E=p[A-15],C=(E<<25|E>>>7)^(E<<14|E>>>18)^E>>>3,T=p[A-2],R=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;p[A]=C+p[A-7]+R+p[A-16]}var B=v&_^~v&w,F=y&b^y&m^b&m,I=(y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22),$=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),q=k+$+B+d[A]+p[A],L=I+F;k=w,w=_,_=v,v=S+q|0,S=m,m=b,b=y,y=q+L|0}g[0]=g[0]+y|0,g[1]=g[1]+b|0,g[2]=g[2]+m|0,g[3]=g[3]+S|0,g[4]=g[4]+v|0,g[5]=g[5]+_|0,g[6]=g[6]+w|0,g[7]=g[7]+k|0},_doFinalize:function(){var x=this._data,h=x.words,g=this._nDataBytes*8,y=x.sigBytes*8;return h[y>>>5]|=128<<24-y%32,h[(y+64>>>9<<4)+14]=o.floor(g/4294967296),h[(y+64>>>9<<4)+15]=g,x.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var x=s.clone.call(this);return x._hash=this._hash.clone(),x}});r.SHA256=s._createHelper(u),r.HmacSHA256=s._createHmacHelper(u)}(Math),t.SHA256})}(An)),An.exports}var En={exports:{}},Hr;function ks(){return Hr||(Hr=1,function(e,n){(function(t,o,r){e.exports=o(re(),qr())})(te,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,l=o.algo,s=l.SHA256,f=l.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=4,c}});o.SHA224=s._createHelper(f),o.HmacSHA224=s._createHmacHelper(f)}(),t.SHA224})}(En)),En.exports}var Tn={exports:{}},$r;function jr(){return $r||($r=1,function(e,n){(function(t,o,r){e.exports=o(re(),Vt())})(te,function(t){return function(){var o=t,r=o.lib,i=r.Hasher,l=o.x64,s=l.Word,f=l.WordArray,c=o.algo;function d(){return s.create.apply(s,arguments)}var p=[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 h=0;h<80;h++)u[h]=d()})();var x=c.SHA512=i.extend({_doReset:function(){this._hash=new f.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(h,g){for(var y=this._hash.words,b=y[0],m=y[1],S=y[2],v=y[3],_=y[4],w=y[5],k=y[6],A=y[7],E=b.high,C=b.low,T=m.high,R=m.low,B=S.high,F=S.low,I=v.high,$=v.low,q=_.high,L=_.low,O=w.high,H=w.low,D=k.high,N=k.low,z=A.high,P=A.low,Y=E,Z=C,Q=T,G=R,ke=B,Xe=F,Rt=I,at=$,Be=q,_e=L,j=O,U=H,K=D,X=N,W=z,ie=P,ee=0;ee<80;ee++){var oe,se,ce=u[ee];if(ee<16)se=ce.high=h[g+ee*2]|0,oe=ce.low=h[g+ee*2+1]|0;else{var Fe=u[ee-15],ve=Fe.high,Ae=Fe.low,It=(ve>>>1|Ae<<31)^(ve>>>8|Ae<<24)^ve>>>7,Lt=(Ae>>>1|ve<<31)^(Ae>>>8|ve<<24)^(Ae>>>7|ve<<25),Qt=u[ee-2],bt=Qt.high,Ot=Qt.low,kf=(bt>>>19|Ot<<13)^(bt<<3|Ot>>>29)^bt>>>6,Na=(Ot>>>19|bt<<13)^(Ot<<3|bt>>>29)^(Ot>>>6|bt<<26),Pa=u[ee-7],_f=Pa.high,Af=Pa.low,za=u[ee-16],Ef=za.high,Ma=za.low;oe=Lt+Af,se=It+_f+(oe>>>0<Lt>>>0?1:0),oe=oe+Na,se=se+kf+(oe>>>0<Na>>>0?1:0),oe=oe+Ma,se=se+Ef+(oe>>>0<Ma>>>0?1:0),ce.high=se,ce.low=oe}var Tf=Be&j^~Be&K,Fa=_e&U^~_e&X,Bf=Y&Q^Y&ke^Q&ke,Df=Z&G^Z&Xe^G&Xe,Rf=(Y>>>28|Z<<4)^(Y<<30|Z>>>2)^(Y<<25|Z>>>7),Va=(Z>>>28|Y<<4)^(Z<<30|Y>>>2)^(Z<<25|Y>>>7),If=(Be>>>14|_e<<18)^(Be>>>18|_e<<14)^(Be<<23|_e>>>9),Lf=(_e>>>14|Be<<18)^(_e>>>18|Be<<14)^(_e<<23|Be>>>9),qa=p[ee],Of=qa.high,Ha=qa.low,Ie=ie+Lf,Je=W+If+(Ie>>>0<ie>>>0?1:0),Ie=Ie+Fa,Je=Je+Tf+(Ie>>>0<Fa>>>0?1:0),Ie=Ie+Ha,Je=Je+Of+(Ie>>>0<Ha>>>0?1:0),Ie=Ie+oe,Je=Je+se+(Ie>>>0<oe>>>0?1:0),$a=Va+Df,Nf=Rf+Bf+($a>>>0<Va>>>0?1:0);W=K,ie=X,K=j,X=U,j=Be,U=_e,_e=at+Ie|0,Be=Rt+Je+(_e>>>0<at>>>0?1:0)|0,Rt=ke,at=Xe,ke=Q,Xe=G,Q=Y,G=Z,Z=Ie+$a|0,Y=Je+Nf+(Z>>>0<Ie>>>0?1:0)|0}C=b.low=C+Z,b.high=E+Y+(C>>>0<Z>>>0?1:0),R=m.low=R+G,m.high=T+Q+(R>>>0<G>>>0?1:0),F=S.low=F+Xe,S.high=B+ke+(F>>>0<Xe>>>0?1:0),$=v.low=$+at,v.high=I+Rt+($>>>0<at>>>0?1:0),L=_.low=L+_e,_.high=q+Be+(L>>>0<_e>>>0?1:0),H=w.low=H+U,w.high=O+j+(H>>>0<U>>>0?1:0),N=k.low=N+X,k.high=D+K+(N>>>0<X>>>0?1:0),P=A.low=P+ie,A.high=z+W+(P>>>0<ie>>>0?1:0)},_doFinalize:function(){var h=this._data,g=h.words,y=this._nDataBytes*8,b=h.sigBytes*8;g[b>>>5]|=128<<24-b%32,g[(b+128>>>10<<5)+30]=Math.floor(y/4294967296),g[(b+128>>>10<<5)+31]=y,h.sigBytes=g.length*4,this._process();var m=this._hash.toX32();return m},clone:function(){var h=i.clone.call(this);return h._hash=this._hash.clone(),h},blockSize:1024/32});o.SHA512=i._createHelper(x),o.HmacSHA512=i._createHmacHelper(x)}(),t.SHA512})}(Tn)),Tn.exports}var Bn={exports:{}},Ur;function _s(){return Ur||(Ur=1,function(e,n){(function(t,o,r){e.exports=o(re(),Vt(),jr())})(te,function(t){return function(){var o=t,r=o.x64,i=r.Word,l=r.WordArray,s=o.algo,f=s.SHA512,c=s.SHA384=f.extend({_doReset:function(){this._hash=new l.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})}(Bn)),Bn.exports}var Dn={exports:{}},Gr;function As(){return Gr||(Gr=1,function(e,n){(function(t,o,r){e.exports=o(re(),Vt())})(te,function(t){return function(o){var r=t,i=r.lib,l=i.WordArray,s=i.Hasher,f=r.x64,c=f.Word,d=r.algo,p=[],u=[],x=[];(function(){for(var y=1,b=0,m=0;m<24;m++){p[y+5*b]=(m+1)*(m+2)/2%64;var S=b%5,v=(2*y+3*b)%5;y=S,b=v}for(var y=0;y<5;y++)for(var b=0;b<5;b++)u[y+5*b]=b+(2*y+3*b)%5*5;for(var _=1,w=0;w<24;w++){for(var k=0,A=0,E=0;E<7;E++){if(_&1){var C=(1<<E)-1;C<32?A^=1<<C:k^=1<<C-32}_&128?_=_<<1^113:_<<=1}x[w]=c.create(k,A)}})();var h=[];(function(){for(var y=0;y<25;y++)h[y]=c.create()})();var g=d.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var y=this._state=[],b=0;b<25;b++)y[b]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(y,b){for(var m=this._state,S=this.blockSize/2,v=0;v<S;v++){var _=y[b+2*v],w=y[b+2*v+1];_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var k=m[v];k.high^=w,k.low^=_}for(var A=0;A<24;A++){for(var E=0;E<5;E++){for(var C=0,T=0,R=0;R<5;R++){var k=m[E+5*R];C^=k.high,T^=k.low}var B=h[E];B.high=C,B.low=T}for(var E=0;E<5;E++)for(var F=h[(E+4)%5],I=h[(E+1)%5],$=I.high,q=I.low,C=F.high^($<<1|q>>>31),T=F.low^(q<<1|$>>>31),R=0;R<5;R++){var k=m[E+5*R];k.high^=C,k.low^=T}for(var L=1;L<25;L++){var C,T,k=m[L],O=k.high,H=k.low,D=p[L];D<32?(C=O<<D|H>>>32-D,T=H<<D|O>>>32-D):(C=H<<D-32|O>>>64-D,T=O<<D-32|H>>>64-D);var N=h[u[L]];N.high=C,N.low=T}var z=h[0],P=m[0];z.high=P.high,z.low=P.low;for(var E=0;E<5;E++)for(var R=0;R<5;R++){var L=E+5*R,k=m[L],Y=h[L],Z=h[(E+1)%5+5*R],Q=h[(E+2)%5+5*R];k.high=Y.high^~Z.high&Q.high,k.low=Y.low^~Z.low&Q.low}var k=m[0],G=x[A];k.high^=G.high,k.low^=G.low}},_doFinalize:function(){var y=this._data,b=y.words;this._nDataBytes*8;var m=y.sigBytes*8,S=this.blockSize*32;b[m>>>5]|=1<<24-m%32,b[(o.ceil((m+1)/S)*S>>>5)-1]|=128,y.sigBytes=b.length*4,this._process();for(var v=this._state,_=this.cfg.outputLength/8,w=_/8,k=[],A=0;A<w;A++){var E=v[A],C=E.high,T=E.low;C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,k.push(T),k.push(C)}return new l.init(k,_)},clone:function(){for(var y=s.clone.call(this),b=y._state=this._state.slice(0),m=0;m<25;m++)b[m]=b[m].clone();return y}});r.SHA3=s._createHelper(g),r.HmacSHA3=s._createHmacHelper(g)}(Math),t.SHA3})}(Dn)),Dn.exports}var Rn={exports:{}},Wr;function Es(){return Wr||(Wr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){/** @preserve
56
+ `,Sr=!1,Pi=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ni;r.nextTick(function(){Sr||(typeof window<"u"&&window.document&&window.document.documentElement&&Ri(n,{prepend:!0}),Sr=!0)})},zi=["icon","primaryColor","secondaryColor"];function Mi(e,n){if(e==null)return{};var t=Fi(e,n),o,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)o=i[a],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}function Fi(e,n){if(e==null)return{};var t={},o=Object.keys(e),a,i;for(i=0;i<o.length;i++)a=o[i],!(n.indexOf(a)>=0)&&(t[a]=e[a]);return t}function Ft(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(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){Vi(e,a,t[a])})}return e}function Vi(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Et={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function qi(e){var n=e.primaryColor,t=e.secondaryColor;Et.primaryColor=n,Et.secondaryColor=t||vr(n),Et.calculated=!!t}function Hi(){return Ft({},Et)}var ct=function(n,t){var o=Ft({},n,t.attrs),a=o.icon,i=o.primaryColor,l=o.secondaryColor,s=Mi(o,zi),f=Et;if(i&&(f={primaryColor:i,secondaryColor:l||vr(i)}),Pi(),Oi(yr(a),"icon should be icon definiton, but got ".concat(a)),!yr(a))return null;var c=a;return c&&typeof c.icon=="function"&&(c=Ft({},c,{icon:c.icon(f.primaryColor,f.secondaryColor)})),cn(c.icon,"svg-".concat(c.name),Ft({},s,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};ct.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},ct.inheritAttrs=!1,ct.displayName="IconBase",ct.getTwoToneColors=Hi,ct.setTwoToneColors=qi;const fn=ct;function $i(e,n){return Wi(e)||Gi(e,n)||Ui(e,n)||ji()}function ji(){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 Ui(e,n){if(e){if(typeof e=="string")return wr(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 wr(e,n)}}function wr(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 Gi(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],a=!0,i=!1,l,s;try{for(t=t.call(e);!(a=(l=t.next()).done)&&(o.push(l.value),!(n&&o.length===n));a=!0);}catch(f){i=!0,s=f}finally{try{!a&&t.return!=null&&t.return()}finally{if(i)throw s}}return o}}function Wi(e){if(Array.isArray(e))return e}function Cr(e){var n=br(e),t=$i(n,2),o=t[0],a=t[1];return fn.setTwoToneColors({primaryColor:o,secondaryColor:a})}function Zi(){var e=fn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Ki=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Yi(e,n){return es(e)||Qi(e,n)||Ji(e,n)||Xi()}function Xi(){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 Ji(e,n){if(e){if(typeof e=="string")return kr(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 kr(e,n)}}function kr(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 Qi(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],a=!0,i=!1,l,s;try{for(t=t.call(e);!(a=(l=t.next()).done)&&(o.push(l.value),!(n&&o.length===n));a=!0);}catch(f){i=!0,s=f}finally{try{!a&&t.return!=null&&t.return()}finally{if(i)throw s}}return o}}function es(e){if(Array.isArray(e))return e}function _r(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(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){dn(e,a,t[a])})}return e}function dn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ts(e,n){if(e==null)return{};var t=ns(e,n),o,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)o=i[a],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}function ns(e,n){if(e==null)return{};var t={},o=Object.keys(e),a,i;for(i=0;i<o.length;i++)a=o[i],!(n.indexOf(a)>=0)&&(t[a]=e[a]);return t}Cr("#1890ff");var ft=function(n,t){var o,a=_r({},n,t.attrs),i=a.class,l=a.icon,s=a.spin,f=a.rotate,c=a.tabindex,d=a.twoToneColor,p=a.onClick,u=ts(a,Ki),h=(o={anticon:!0},dn(o,"anticon-".concat(l.name),!!l.name),dn(o,i,i),o),g=s===""||s||l.name==="loading"?"anticon-spin":"",x=c;x===void 0&&p&&(x=-1,u.tabindex=x);var y=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,S=br(d),m=Yi(S,2),b=m[0],v=m[1];return r.createVNode("span",_r({role:"img","aria-label":l.name},u,{onClick:p,class:h}),[r.createVNode(fn,{class:g,icon:l,primaryColor:b,secondaryColor:v,style:y},null)])};ft.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},ft.displayName="AntdIcon",ft.inheritAttrs=!1,ft.getTwoToneColor=Zi,ft.setTwoToneColor=Cr;const Ar=ft;var os={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 rs=os;function Er(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(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){as(e,a,t[a])})}return e}function as(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var un=function(n,t){var o=Er({},n,t.attrs);return r.createVNode(Ar,Er({},o,{icon:rs}),null)};un.displayName="CloseOutlined",un.inheritAttrs=!1;const is=un;var ss={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 ls=ss;function Tr(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(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){cs(e,a,t[a])})}return e}function cs(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var hn=function(n,t){var o=Tr({},n,t.attrs);return r.createVNode(Ar,Tr({},o,{icon:ls}),null)};hn.displayName="LoadingOutlined",hn.inheritAttrs=!1;const fs=hn,ds=r.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ae.Spin},setup(){return{indicator:r.h(fs,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Xf="",se=(e,n)=>{const t=e.__vccOpts||e;for(const[o,a]of n)t[o]=a;return t},us={class:"spin-wrapper"};function hs(e,n,t,o,a,i){const l=r.resolveComponent("a-spin");return r.openBlock(),r.createElementBlock("div",us,[e.spinning?(r.openBlock(),r.createBlock(l,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):r.renderSlot(e.$slots,"default",{key:1})])}const Tt=se(ds,[["render",hs]]),xs=r.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ae.Skeleton}});function gs(e,n,t,o,a,i){const l=r.resolveComponent("a-skeleton");return r.openBlock(),r.createBlock(l,{active:"",loading:e.loading},{default:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const Vt=se(xs,[["render",gs]]);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},he={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"},fe=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},xn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},gn=fe(xn),ms=["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=$e.without(ms,...n);return r.computed(()=>$e.pick(e,t))},mn="EVENT_BUS",Be="GLOBAL_CONFIG",we="GLOBAL_MODEL",De="REQUEST_MODEL",Br="GLOBAL_TOKEN",Bt="REFRESH_PAGE",Dr="MODAL_MODEL",dt=18,ps="ygt",ys=(Oa=window==null?void 0:window.config)==null?void 0:Oa.indicatorURL;(Na=window==null?void 0:window.config)!=null&&Na.uploadPath;const Rr=((Pa=window==null?void 0:window.config)==null?void 0:Pa.routerBaseURL)||"./",vs=((za=window==null?void 0:window.config)==null?void 0:za.erdURL)||"",be=(e,n)=>{r.watch(()=>e.id,t=>{const o=r.inject(mn,{onEvent:(a,i)=>{}});t!=null&&t!==""&&o.onEvent(t,n)},{immediate:!0})},ye=e=>{const n=e.events,t=e.id,o=r.inject(mn,{emitEvent:(i,l)=>{}}),{touchEventId:a}=r.inject(Be,{touchEventId:r.ref("")});return(i,l=()=>{})=>function(){l.call(this,...arguments);const{emitEvent:s}=o;n.forEach(f=>{if(i===f.on)try{a.value=t,s(f.target,f.emit)}catch(c){console.error(c)}})}},Dt=(e,n)=>{let{name:t="name",value:o="value",type:a="type"}=n||{};t=t==null?void 0:t.trim(),o=o==null?void 0:o.trim(),a=a==null?void 0:a.trim();const i=new Set,l=new Map,s=e.length;for(let d=0;d<s;d++){const p=e[d],u=p[t]||"",h=p[o]||"",g=p[a]||"";if(i.add(u),l.has(g)){const x=l.get(g);x.push({name:u,value:h,...p}),l.set(g,x)}else l.set(g,[{name:u,value:h,...p}])}const f=Array.from(i),c=[];for(const[d,p]of l)c.push({name:d,data:p});return{dimensions:f,dataset:c}};var te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ss(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 a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}),t}var Ir={exports:{}};function ws(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 pn={exports:{}};const Cs=Ss(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Lr;function re(){return Lr||(Lr=1,function(e,n){(function(t,o){e.exports=o()})(te,function(){var t=t||function(o,a){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 te<"u"&&te.crypto&&(i=te.crypto),!i&&typeof ws=="function")try{i=Cs}catch{}var l=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.")},s=Object.create||function(){function m(){}return function(b){var v;return m.prototype=b,v=new m,m.prototype=null,v}}(),f={},c=f.lib={},d=c.Base=function(){return{extend:function(m){var b=s(this);return m&&b.mixIn(m),(!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 m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var b in m)m.hasOwnProperty(b)&&(this[b]=m[b]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=c.WordArray=d.extend({init:function(m,b){m=this.words=m||[],b!=a?this.sigBytes=b:this.sigBytes=m.length*4},toString:function(m){return(m||h).stringify(this)},concat:function(m){var b=this.words,v=m.words,_=this.sigBytes,w=m.sigBytes;if(this.clamp(),_%4)for(var k=0;k<w;k++){var A=v[k>>>2]>>>24-k%4*8&255;b[_+k>>>2]|=A<<24-(_+k)%4*8}else for(var E=0;E<w;E+=4)b[_+E>>>2]=v[E>>>2];return this.sigBytes+=w,this},clamp:function(){var m=this.words,b=this.sigBytes;m[b>>>2]&=4294967295<<32-b%4*8,m.length=o.ceil(b/4)},clone:function(){var m=d.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var b=[],v=0;v<m;v+=4)b.push(l());return new p.init(b,m)}}),u=f.enc={},h=u.Hex={stringify:function(m){for(var b=m.words,v=m.sigBytes,_=[],w=0;w<v;w++){var k=b[w>>>2]>>>24-w%4*8&255;_.push((k>>>4).toString(16)),_.push((k&15).toString(16))}return _.join("")},parse:function(m){for(var b=m.length,v=[],_=0;_<b;_+=2)v[_>>>3]|=parseInt(m.substr(_,2),16)<<24-_%8*4;return new p.init(v,b/2)}},g=u.Latin1={stringify:function(m){for(var b=m.words,v=m.sigBytes,_=[],w=0;w<v;w++){var k=b[w>>>2]>>>24-w%4*8&255;_.push(String.fromCharCode(k))}return _.join("")},parse:function(m){for(var b=m.length,v=[],_=0;_<b;_++)v[_>>>2]|=(m.charCodeAt(_)&255)<<24-_%4*8;return new p.init(v,b)}},x=u.Utf8={stringify:function(m){try{return decodeURIComponent(escape(g.stringify(m)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(m){return g.parse(unescape(encodeURIComponent(m)))}},y=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=x.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var b,v=this._data,_=v.words,w=v.sigBytes,k=this.blockSize,A=k*4,E=w/A;m?E=o.ceil(E):E=o.max((E|0)-this._minBufferSize,0);var C=E*k,T=o.min(C*4,w);if(C){for(var R=0;R<C;R+=k)this._doProcessBlock(_,R);b=_.splice(0,C),v.sigBytes-=T}return new p.init(b,T)},clone:function(){var m=d.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});c.Hasher=y.extend({cfg:d.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(m){return function(b,v){return new m.init(v).finalize(b)}},_createHmacHelper:function(m){return function(b,v){return new S.HMAC.init(m,v).finalize(b)}}});var S=f.algo={};return f}(Math);return t})}(pn)),pn.exports}var yn={exports:{}},Or;function qt(){return Or||(Or=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(o){var a=t,i=a.lib,l=i.Base,s=i.WordArray,f=a.x64={};f.Word=l.extend({init:function(c,d){this.high=c,this.low=d}}),f.WordArray=l.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,p=[],u=0;u<d;u++){var h=c[u];p.push(h.high),p.push(h.low)}return s.create(p,this.sigBytes)},clone:function(){for(var c=l.clone.call(this),d=c.words=this.words.slice(0),p=d.length,u=0;u<p;u++)d[u]=d[u].clone();return c}})}(),t})}(yn)),yn.exports}var vn={exports:{}},Nr;function ks(){return Nr||(Nr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){if(typeof ArrayBuffer=="function"){var o=t,a=o.lib,i=a.WordArray,l=i.init,s=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=[],p=0;p<c;p++)d[p>>>2]|=f[p]<<24-p%4*8;l.call(this,d,c)}else l.apply(this,arguments)};s.prototype=i}}(),t.lib.WordArray})}(vn)),vn.exports}var bn={exports:{}},Pr;function _s(){return Pr||(Pr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=o.enc;l.Utf16=l.Utf16BE={stringify:function(f){for(var c=f.words,d=f.sigBytes,p=[],u=0;u<d;u+=2){var h=c[u>>>2]>>>16-u%4*8&65535;p.push(String.fromCharCode(h))}return p.join("")},parse:function(f){for(var c=f.length,d=[],p=0;p<c;p++)d[p>>>1]|=f.charCodeAt(p)<<16-p%2*16;return i.create(d,c*2)}},l.Utf16LE={stringify:function(f){for(var c=f.words,d=f.sigBytes,p=[],u=0;u<d;u+=2){var h=s(c[u>>>2]>>>16-u%4*8&65535);p.push(String.fromCharCode(h))}return p.join("")},parse:function(f){for(var c=f.length,d=[],p=0;p<c;p++)d[p>>>1]|=s(f.charCodeAt(p)<<16-p%2*16);return i.create(d,c*2)}};function s(f){return f<<8&4278255360|f>>>8&16711935}}(),t.enc.Utf16})}(bn)),bn.exports}var Sn={exports:{}},zr;function ut(){return zr||(zr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=o.enc;l.Base64={stringify:function(f){var c=f.words,d=f.sigBytes,p=this._map;f.clamp();for(var u=[],h=0;h<d;h+=3)for(var g=c[h>>>2]>>>24-h%4*8&255,x=c[h+1>>>2]>>>24-(h+1)%4*8&255,y=c[h+2>>>2]>>>24-(h+2)%4*8&255,S=g<<16|x<<8|y,m=0;m<4&&h+m*.75<d;m++)u.push(p.charAt(S>>>6*(3-m)&63));var b=p.charAt(64);if(b)for(;u.length%4;)u.push(b);return u.join("")},parse:function(f){var c=f.length,d=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var u=0;u<d.length;u++)p[d.charCodeAt(u)]=u}var h=d.charAt(64);if(h){var g=f.indexOf(h);g!==-1&&(c=g)}return s(f,c,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(f,c,d){for(var p=[],u=0,h=0;h<c;h++)if(h%4){var g=d[f.charCodeAt(h-1)]<<h%4*2,x=d[f.charCodeAt(h)]>>>6-h%4*2,y=g|x;p[u>>>2]|=y<<24-u%4*8,u++}return i.create(p,u)}}(),t.enc.Base64})}(Sn)),Sn.exports}var wn={exports:{}},Mr;function As(){return Mr||(Mr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=o.enc;l.Base64url={stringify:function(f,c=!0){var d=f.words,p=f.sigBytes,u=c?this._safe_map:this._map;f.clamp();for(var h=[],g=0;g<p;g+=3)for(var x=d[g>>>2]>>>24-g%4*8&255,y=d[g+1>>>2]>>>24-(g+1)%4*8&255,S=d[g+2>>>2]>>>24-(g+2)%4*8&255,m=x<<16|y<<8|S,b=0;b<4&&g+b*.75<p;b++)h.push(u.charAt(m>>>6*(3-b)&63));var v=u.charAt(64);if(v)for(;h.length%4;)h.push(v);return h.join("")},parse:function(f,c=!0){var d=f.length,p=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h<p.length;h++)u[p.charCodeAt(h)]=h}var g=p.charAt(64);if(g){var x=f.indexOf(g);x!==-1&&(d=x)}return s(f,d,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(f,c,d){for(var p=[],u=0,h=0;h<c;h++)if(h%4){var g=d[f.charCodeAt(h-1)]<<h%4*2,x=d[f.charCodeAt(h)]>>>6-h%4*2,y=g|x;p[u>>>2]|=y<<24-u%4*8,u++}return i.create(p,u)}}(),t.enc.Base64url})}(wn)),wn.exports}var Cn={exports:{}},Fr;function ht(){return Fr||(Fr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(o){var a=t,i=a.lib,l=i.WordArray,s=i.Hasher,f=a.algo,c=[];(function(){for(var x=0;x<64;x++)c[x]=o.abs(o.sin(x+1))*4294967296|0})();var d=f.MD5=s.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(x,y){for(var S=0;S<16;S++){var m=y+S,b=x[m];x[m]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var v=this._hash.words,_=x[y+0],w=x[y+1],k=x[y+2],A=x[y+3],E=x[y+4],C=x[y+5],T=x[y+6],R=x[y+7],B=x[y+8],F=x[y+9],I=x[y+10],$=x[y+11],q=x[y+12],N=x[y+13],L=x[y+14],H=x[y+15],D=v[0],O=v[1],M=v[2],P=v[3];D=p(D,O,M,P,_,7,c[0]),P=p(P,D,O,M,w,12,c[1]),M=p(M,P,D,O,k,17,c[2]),O=p(O,M,P,D,A,22,c[3]),D=p(D,O,M,P,E,7,c[4]),P=p(P,D,O,M,C,12,c[5]),M=p(M,P,D,O,T,17,c[6]),O=p(O,M,P,D,R,22,c[7]),D=p(D,O,M,P,B,7,c[8]),P=p(P,D,O,M,F,12,c[9]),M=p(M,P,D,O,I,17,c[10]),O=p(O,M,P,D,$,22,c[11]),D=p(D,O,M,P,q,7,c[12]),P=p(P,D,O,M,N,12,c[13]),M=p(M,P,D,O,L,17,c[14]),O=p(O,M,P,D,H,22,c[15]),D=u(D,O,M,P,w,5,c[16]),P=u(P,D,O,M,T,9,c[17]),M=u(M,P,D,O,$,14,c[18]),O=u(O,M,P,D,_,20,c[19]),D=u(D,O,M,P,C,5,c[20]),P=u(P,D,O,M,I,9,c[21]),M=u(M,P,D,O,H,14,c[22]),O=u(O,M,P,D,E,20,c[23]),D=u(D,O,M,P,F,5,c[24]),P=u(P,D,O,M,L,9,c[25]),M=u(M,P,D,O,A,14,c[26]),O=u(O,M,P,D,B,20,c[27]),D=u(D,O,M,P,N,5,c[28]),P=u(P,D,O,M,k,9,c[29]),M=u(M,P,D,O,R,14,c[30]),O=u(O,M,P,D,q,20,c[31]),D=h(D,O,M,P,C,4,c[32]),P=h(P,D,O,M,B,11,c[33]),M=h(M,P,D,O,$,16,c[34]),O=h(O,M,P,D,L,23,c[35]),D=h(D,O,M,P,w,4,c[36]),P=h(P,D,O,M,E,11,c[37]),M=h(M,P,D,O,R,16,c[38]),O=h(O,M,P,D,I,23,c[39]),D=h(D,O,M,P,N,4,c[40]),P=h(P,D,O,M,_,11,c[41]),M=h(M,P,D,O,A,16,c[42]),O=h(O,M,P,D,T,23,c[43]),D=h(D,O,M,P,F,4,c[44]),P=h(P,D,O,M,q,11,c[45]),M=h(M,P,D,O,H,16,c[46]),O=h(O,M,P,D,k,23,c[47]),D=g(D,O,M,P,_,6,c[48]),P=g(P,D,O,M,R,10,c[49]),M=g(M,P,D,O,L,15,c[50]),O=g(O,M,P,D,C,21,c[51]),D=g(D,O,M,P,q,6,c[52]),P=g(P,D,O,M,A,10,c[53]),M=g(M,P,D,O,I,15,c[54]),O=g(O,M,P,D,w,21,c[55]),D=g(D,O,M,P,B,6,c[56]),P=g(P,D,O,M,H,10,c[57]),M=g(M,P,D,O,T,15,c[58]),O=g(O,M,P,D,N,21,c[59]),D=g(D,O,M,P,E,6,c[60]),P=g(P,D,O,M,$,10,c[61]),M=g(M,P,D,O,k,15,c[62]),O=g(O,M,P,D,F,21,c[63]),v[0]=v[0]+D|0,v[1]=v[1]+O|0,v[2]=v[2]+M|0,v[3]=v[3]+P|0},_doFinalize:function(){var x=this._data,y=x.words,S=this._nDataBytes*8,m=x.sigBytes*8;y[m>>>5]|=128<<24-m%32;var b=o.floor(S/4294967296),v=S;y[(m+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,y[(m+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,x.sigBytes=(y.length+1)*4,this._process();for(var _=this._hash,w=_.words,k=0;k<4;k++){var A=w[k];w[k]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return _},clone:function(){var x=s.clone.call(this);return x._hash=this._hash.clone(),x}});function p(x,y,S,m,b,v,_){var w=x+(y&S|~y&m)+b+_;return(w<<v|w>>>32-v)+y}function u(x,y,S,m,b,v,_){var w=x+(y&m|S&~m)+b+_;return(w<<v|w>>>32-v)+y}function h(x,y,S,m,b,v,_){var w=x+(y^S^m)+b+_;return(w<<v|w>>>32-v)+y}function g(x,y,S,m,b,v,_){var w=x+(S^(y|~m))+b+_;return(w<<v|w>>>32-v)+y}a.MD5=s._createHelper(d),a.HmacMD5=s._createHmacHelper(d)}(Math),t.MD5})}(Cn)),Cn.exports}var kn={exports:{}},Vr;function _n(){return Vr||(Vr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=a.Hasher,s=o.algo,f=[],c=s.SHA1=l.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,p){for(var u=this._hash.words,h=u[0],g=u[1],x=u[2],y=u[3],S=u[4],m=0;m<80;m++){if(m<16)f[m]=d[p+m]|0;else{var b=f[m-3]^f[m-8]^f[m-14]^f[m-16];f[m]=b<<1|b>>>31}var v=(h<<5|h>>>27)+S+f[m];m<20?v+=(g&x|~g&y)+1518500249:m<40?v+=(g^x^y)+1859775393:m<60?v+=(g&x|g&y|x&y)-1894007588:v+=(g^x^y)-899497514,S=y,y=x,x=g<<30|g>>>2,g=h,h=v}u[0]=u[0]+h|0,u[1]=u[1]+g|0,u[2]=u[2]+x|0,u[3]=u[3]+y|0,u[4]=u[4]+S|0},_doFinalize:function(){var d=this._data,p=d.words,u=this._nDataBytes*8,h=d.sigBytes*8;return p[h>>>5]|=128<<24-h%32,p[(h+64>>>9<<4)+14]=Math.floor(u/4294967296),p[(h+64>>>9<<4)+15]=u,d.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var d=l.clone.call(this);return d._hash=this._hash.clone(),d}});o.SHA1=l._createHelper(c),o.HmacSHA1=l._createHmacHelper(c)}(),t.SHA1})}(kn)),kn.exports}var An={exports:{}},qr;function Hr(){return qr||(qr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){return function(o){var a=t,i=a.lib,l=i.WordArray,s=i.Hasher,f=a.algo,c=[],d=[];(function(){function h(S){for(var m=o.sqrt(S),b=2;b<=m;b++)if(!(S%b))return!1;return!0}function g(S){return(S-(S|0))*4294967296|0}for(var x=2,y=0;y<64;)h(x)&&(y<8&&(c[y]=g(o.pow(x,1/2))),d[y]=g(o.pow(x,1/3)),y++),x++})();var p=[],u=f.SHA256=s.extend({_doReset:function(){this._hash=new l.init(c.slice(0))},_doProcessBlock:function(h,g){for(var x=this._hash.words,y=x[0],S=x[1],m=x[2],b=x[3],v=x[4],_=x[5],w=x[6],k=x[7],A=0;A<64;A++){if(A<16)p[A]=h[g+A]|0;else{var E=p[A-15],C=(E<<25|E>>>7)^(E<<14|E>>>18)^E>>>3,T=p[A-2],R=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;p[A]=C+p[A-7]+R+p[A-16]}var B=v&_^~v&w,F=y&S^y&m^S&m,I=(y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22),$=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),q=k+$+B+d[A]+p[A],N=I+F;k=w,w=_,_=v,v=b+q|0,b=m,m=S,S=y,y=q+N|0}x[0]=x[0]+y|0,x[1]=x[1]+S|0,x[2]=x[2]+m|0,x[3]=x[3]+b|0,x[4]=x[4]+v|0,x[5]=x[5]+_|0,x[6]=x[6]+w|0,x[7]=x[7]+k|0},_doFinalize:function(){var h=this._data,g=h.words,x=this._nDataBytes*8,y=h.sigBytes*8;return g[y>>>5]|=128<<24-y%32,g[(y+64>>>9<<4)+14]=o.floor(x/4294967296),g[(y+64>>>9<<4)+15]=x,h.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});a.SHA256=s._createHelper(u),a.HmacSHA256=s._createHmacHelper(u)}(Math),t.SHA256})}(An)),An.exports}var En={exports:{}},$r;function Es(){return $r||($r=1,function(e,n){(function(t,o,a){e.exports=o(re(),Hr())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=o.algo,s=l.SHA256,f=l.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=4,c}});o.SHA224=s._createHelper(f),o.HmacSHA224=s._createHmacHelper(f)}(),t.SHA224})}(En)),En.exports}var Tn={exports:{}},jr;function Ur(){return jr||(jr=1,function(e,n){(function(t,o,a){e.exports=o(re(),qt())})(te,function(t){return function(){var o=t,a=o.lib,i=a.Hasher,l=o.x64,s=l.Word,f=l.WordArray,c=o.algo;function d(){return s.create.apply(s,arguments)}var p=[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 s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(g,x){for(var y=this._hash.words,S=y[0],m=y[1],b=y[2],v=y[3],_=y[4],w=y[5],k=y[6],A=y[7],E=S.high,C=S.low,T=m.high,R=m.low,B=b.high,F=b.low,I=v.high,$=v.low,q=_.high,N=_.low,L=w.high,H=w.low,D=k.high,O=k.low,M=A.high,P=A.low,Y=E,Z=C,X=T,G=R,pe=B,_e=F,Qe=I,Ge=$,ke=q,Ee=N,wt=L,j=H,U=D,K=O,Q=M,W=P,ne=0;ne<80;ne++){var ee,ie,le=u[ne];if(ne<16)ie=le.high=g[x+ne*2]|0,ee=le.low=g[x+ne*2+1]|0;else{var de=u[ne-15],Te=de.high,Se=de.low,Ve=(Te>>>1|Se<<31)^(Te>>>8|Se<<24)^Te>>>7,Ct=(Se>>>1|Te<<31)^(Se>>>8|Te<<24)^(Se>>>7|Te<<25),Ot=u[ne-2],et=Ot.high,Nt=Ot.low,Af=(et>>>19|Nt<<13)^(et<<3|Nt>>>29)^et>>>6,Ma=(Nt>>>19|et<<13)^(Nt<<3|et>>>29)^(Nt>>>6|et<<26),Fa=u[ne-7],Ef=Fa.high,Tf=Fa.low,Va=u[ne-16],Bf=Va.high,qa=Va.low;ee=Ct+Tf,ie=Ve+Ef+(ee>>>0<Ct>>>0?1:0),ee=ee+Ma,ie=ie+Af+(ee>>>0<Ma>>>0?1:0),ee=ee+qa,ie=ie+Bf+(ee>>>0<qa>>>0?1:0),le.high=ie,le.low=ee}var Df=ke&wt^~ke&U,Ha=Ee&j^~Ee&K,Rf=Y&X^Y&pe^X&pe,If=Z&G^Z&_e^G&_e,Lf=(Y>>>28|Z<<4)^(Y<<30|Z>>>2)^(Y<<25|Z>>>7),$a=(Z>>>28|Y<<4)^(Z<<30|Y>>>2)^(Z<<25|Y>>>7),Of=(ke>>>14|Ee<<18)^(ke>>>18|Ee<<14)^(ke<<23|Ee>>>9),Nf=(Ee>>>14|ke<<18)^(Ee>>>18|ke<<14)^(Ee<<23|ke>>>9),ja=p[ne],Pf=ja.high,Ua=ja.low,Le=W+Nf,tt=Q+Of+(Le>>>0<W>>>0?1:0),Le=Le+Ha,tt=tt+Df+(Le>>>0<Ha>>>0?1:0),Le=Le+Ua,tt=tt+Pf+(Le>>>0<Ua>>>0?1:0),Le=Le+ee,tt=tt+ie+(Le>>>0<ee>>>0?1:0),Ga=$a+If,zf=Lf+Rf+(Ga>>>0<$a>>>0?1:0);Q=U,W=K,U=wt,K=j,wt=ke,j=Ee,Ee=Ge+Le|0,ke=Qe+tt+(Ee>>>0<Ge>>>0?1:0)|0,Qe=pe,Ge=_e,pe=X,_e=G,X=Y,G=Z,Z=Le+Ga|0,Y=tt+zf+(Z>>>0<Le>>>0?1:0)|0}C=S.low=C+Z,S.high=E+Y+(C>>>0<Z>>>0?1:0),R=m.low=R+G,m.high=T+X+(R>>>0<G>>>0?1:0),F=b.low=F+_e,b.high=B+pe+(F>>>0<_e>>>0?1:0),$=v.low=$+Ge,v.high=I+Qe+($>>>0<Ge>>>0?1:0),N=_.low=N+Ee,_.high=q+ke+(N>>>0<Ee>>>0?1:0),H=w.low=H+j,w.high=L+wt+(H>>>0<j>>>0?1:0),O=k.low=O+K,k.high=D+U+(O>>>0<K>>>0?1:0),P=A.low=P+W,A.high=M+Q+(P>>>0<W>>>0?1:0)},_doFinalize:function(){var g=this._data,x=g.words,y=this._nDataBytes*8,S=g.sigBytes*8;x[S>>>5]|=128<<24-S%32,x[(S+128>>>10<<5)+30]=Math.floor(y/4294967296),x[(S+128>>>10<<5)+31]=y,g.sigBytes=x.length*4,this._process();var m=this._hash.toX32();return m},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})}(Tn)),Tn.exports}var Bn={exports:{}},Gr;function Ts(){return Gr||(Gr=1,function(e,n){(function(t,o,a){e.exports=o(re(),qt(),Ur())})(te,function(t){return function(){var o=t,a=o.x64,i=a.Word,l=a.WordArray,s=o.algo,f=s.SHA512,c=s.SHA384=f.extend({_doReset:function(){this._hash=new l.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})}(Bn)),Bn.exports}var Dn={exports:{}},Wr;function Bs(){return Wr||(Wr=1,function(e,n){(function(t,o,a){e.exports=o(re(),qt())})(te,function(t){return function(o){var a=t,i=a.lib,l=i.WordArray,s=i.Hasher,f=a.x64,c=f.Word,d=a.algo,p=[],u=[],h=[];(function(){for(var y=1,S=0,m=0;m<24;m++){p[y+5*S]=(m+1)*(m+2)/2%64;var b=S%5,v=(2*y+3*S)%5;y=b,S=v}for(var y=0;y<5;y++)for(var S=0;S<5;S++)u[y+5*S]=S+(2*y+3*S)%5*5;for(var _=1,w=0;w<24;w++){for(var k=0,A=0,E=0;E<7;E++){if(_&1){var C=(1<<E)-1;C<32?A^=1<<C:k^=1<<C-32}_&128?_=_<<1^113:_<<=1}h[w]=c.create(k,A)}})();var g=[];(function(){for(var y=0;y<25;y++)g[y]=c.create()})();var x=d.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var y=this._state=[],S=0;S<25;S++)y[S]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(y,S){for(var m=this._state,b=this.blockSize/2,v=0;v<b;v++){var _=y[S+2*v],w=y[S+2*v+1];_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var k=m[v];k.high^=w,k.low^=_}for(var A=0;A<24;A++){for(var E=0;E<5;E++){for(var C=0,T=0,R=0;R<5;R++){var k=m[E+5*R];C^=k.high,T^=k.low}var B=g[E];B.high=C,B.low=T}for(var E=0;E<5;E++)for(var F=g[(E+4)%5],I=g[(E+1)%5],$=I.high,q=I.low,C=F.high^($<<1|q>>>31),T=F.low^(q<<1|$>>>31),R=0;R<5;R++){var k=m[E+5*R];k.high^=C,k.low^=T}for(var N=1;N<25;N++){var C,T,k=m[N],L=k.high,H=k.low,D=p[N];D<32?(C=L<<D|H>>>32-D,T=H<<D|L>>>32-D):(C=H<<D-32|L>>>64-D,T=L<<D-32|H>>>64-D);var O=g[u[N]];O.high=C,O.low=T}var M=g[0],P=m[0];M.high=P.high,M.low=P.low;for(var E=0;E<5;E++)for(var R=0;R<5;R++){var N=E+5*R,k=m[N],Y=g[N],Z=g[(E+1)%5+5*R],X=g[(E+2)%5+5*R];k.high=Y.high^~Z.high&X.high,k.low=Y.low^~Z.low&X.low}var k=m[0],G=h[A];k.high^=G.high,k.low^=G.low}},_doFinalize:function(){var y=this._data,S=y.words;this._nDataBytes*8;var m=y.sigBytes*8,b=this.blockSize*32;S[m>>>5]|=1<<24-m%32,S[(o.ceil((m+1)/b)*b>>>5)-1]|=128,y.sigBytes=S.length*4,this._process();for(var v=this._state,_=this.cfg.outputLength/8,w=_/8,k=[],A=0;A<w;A++){var E=v[A],C=E.high,T=E.low;C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,k.push(T),k.push(C)}return new l.init(k,_)},clone:function(){for(var y=s.clone.call(this),S=y._state=this._state.slice(0),m=0;m<25;m++)S[m]=S[m].clone();return y}});a.SHA3=s._createHelper(x),a.HmacSHA3=s._createHmacHelper(x)}(Math),t.SHA3})}(Dn)),Dn.exports}var Rn={exports:{}},Zr;function Ds(){return Zr||(Zr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,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,55 +64,55 @@ 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,l=i.WordArray,s=i.Hasher,f=r.algo,c=l.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=l.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]),p=l.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=l.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),x=l.create([0,1518500249,1859775393,2400959708,2840853838]),h=l.create([1352829926,1548603684,1836072691,2053994217,0]),g=f.RIPEMD160=s.extend({_doReset:function(){this._hash=l.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,k){for(var A=0;A<16;A++){var E=k+A,C=w[E];w[E]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}var T=this._hash.words,R=x.words,B=h.words,F=c.words,I=d.words,$=p.words,q=u.words,L,O,H,D,N,z,P,Y,Z,Q;z=L=T[0],P=O=T[1],Y=H=T[2],Z=D=T[3],Q=N=T[4];for(var G,A=0;A<80;A+=1)G=L+w[k+F[A]]|0,A<16?G+=y(O,H,D)+R[0]:A<32?G+=b(O,H,D)+R[1]:A<48?G+=m(O,H,D)+R[2]:A<64?G+=S(O,H,D)+R[3]:G+=v(O,H,D)+R[4],G=G|0,G=_(G,$[A]),G=G+N|0,L=N,N=D,D=_(H,10),H=O,O=G,G=z+w[k+I[A]]|0,A<16?G+=v(P,Y,Z)+B[0]:A<32?G+=S(P,Y,Z)+B[1]:A<48?G+=m(P,Y,Z)+B[2]:A<64?G+=b(P,Y,Z)+B[3]:G+=y(P,Y,Z)+B[4],G=G|0,G=_(G,q[A]),G=G+Q|0,z=Q,Q=Z,Z=_(Y,10),Y=P,P=G;G=T[1]+H+Z|0,T[1]=T[2]+D+Q|0,T[2]=T[3]+N+z|0,T[3]=T[4]+L+P|0,T[4]=T[0]+O+Y|0,T[0]=G},_doFinalize:function(){var w=this._data,k=w.words,A=this._nDataBytes*8,E=w.sigBytes*8;k[E>>>5]|=128<<24-E%32,k[(E+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,w.sigBytes=(k.length+1)*4,this._process();for(var C=this._hash,T=C.words,R=0;R<5;R++){var B=T[R];T[R]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}return C},clone:function(){var w=s.clone.call(this);return w._hash=this._hash.clone(),w}});function y(w,k,A){return w^k^A}function b(w,k,A){return w&k|~w&A}function m(w,k,A){return(w|~k)^A}function S(w,k,A){return w&A|k&~A}function v(w,k,A){return w^(k|~A)}function _(w,k){return w<<k|w>>>32-k}r.RIPEMD160=s._createHelper(g),r.HmacRIPEMD160=s._createHmacHelper(g)}(),t.RIPEMD160})}(Rn)),Rn.exports}var In={exports:{}},Zr;function Ln(){return Zr||(Zr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){(function(){var o=t,r=o.lib,i=r.Base,l=o.enc,s=l.Utf8,f=o.algo;f.HMAC=i.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=s.parse(d));var p=c.blockSize,u=p*4;d.sigBytes>u&&(d=c.finalize(d)),d.clamp();for(var x=this._oKey=d.clone(),h=this._iKey=d.clone(),g=x.words,y=h.words,b=0;b<p;b++)g[b]^=1549556828,y[b]^=909522486;x.sigBytes=h.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,p=d.finalize(c);d.reset();var u=d.finalize(this._oKey.clone().concat(p));return u}})})()})}(In)),In.exports}var On={exports:{}},Kr;function Ts(){return Kr||(Kr=1,function(e,n){(function(t,o,r){e.exports=o(re(),_n(),Ln())})(te,function(t){return function(){var o=t,r=o.lib,i=r.Base,l=r.WordArray,s=o.algo,f=s.SHA1,c=s.HMAC,d=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,u){for(var x=this.cfg,h=c.create(x.hasher,p),g=l.create(),y=l.create([1]),b=g.words,m=y.words,S=x.keySize,v=x.iterations;b.length<S;){var _=h.update(u).finalize(y);h.reset();for(var w=_.words,k=w.length,A=_,E=1;E<v;E++){A=h.finalize(A),h.reset();for(var C=A.words,T=0;T<k;T++)w[T]^=C[T]}g.concat(_),m[0]++}return g.sigBytes=S*4,g}});o.PBKDF2=function(p,u,x){return d.create(x).compute(p,u)}}(),t.PBKDF2})}(On)),On.exports}var Nn={exports:{}},Yr;function et(){return Yr||(Yr=1,function(e,n){(function(t,o,r){e.exports=o(re(),_n(),Ln())})(te,function(t){return function(){var o=t,r=o.lib,i=r.Base,l=r.WordArray,s=o.algo,f=s.MD5,c=s.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,p){for(var u,x=this.cfg,h=x.hasher.create(),g=l.create(),y=g.words,b=x.keySize,m=x.iterations;y.length<b;){u&&h.update(u),u=h.update(d).finalize(p),h.reset();for(var S=1;S<m;S++)u=h.finalize(u),h.reset();g.concat(u)}return g.sigBytes=b*4,g}});o.EvpKDF=function(d,p,u){return c.create(u).compute(d,p)}}(),t.EvpKDF})}(Nn)),Nn.exports}var Pn={exports:{}},Xr;function we(){return Xr||(Xr=1,function(e,n){(function(t,o,r){e.exports=o(re(),et())})(te,function(t){t.lib.Cipher||function(o){var r=t,i=r.lib,l=i.Base,s=i.WordArray,f=i.BufferedBlockAlgorithm,c=r.enc;c.Utf8;var d=c.Base64,p=r.algo,u=p.EvpKDF,x=i.Cipher=f.extend({cfg:l.extend(),createEncryptor:function(C,T){return this.create(this._ENC_XFORM_MODE,C,T)},createDecryptor:function(C,T){return this.create(this._DEC_XFORM_MODE,C,T)},init:function(C,T,R){this.cfg=this.cfg.extend(R),this._xformMode=C,this._key=T,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(C){return this._append(C),this._process()},finalize:function(C){C&&this._append(C);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function C(T){return typeof T=="string"?E:w}return function(T){return{encrypt:function(R,B,F){return C(B).encrypt(T,R,B,F)},decrypt:function(R,B,F){return C(B).decrypt(T,R,B,F)}}}}()});i.StreamCipher=x.extend({_doFinalize:function(){var C=this._process(!0);return C},blockSize:1});var h=r.mode={},g=i.BlockCipherMode=l.extend({createEncryptor:function(C,T){return this.Encryptor.create(C,T)},createDecryptor:function(C,T){return this.Decryptor.create(C,T)},init:function(C,T){this._cipher=C,this._iv=T}}),y=h.CBC=function(){var C=g.extend();C.Encryptor=C.extend({processBlock:function(R,B){var F=this._cipher,I=F.blockSize;T.call(this,R,B,I),F.encryptBlock(R,B),this._prevBlock=R.slice(B,B+I)}}),C.Decryptor=C.extend({processBlock:function(R,B){var F=this._cipher,I=F.blockSize,$=R.slice(B,B+I);F.decryptBlock(R,B),T.call(this,R,B,I),this._prevBlock=$}});function T(R,B,F){var I,$=this._iv;$?(I=$,this._iv=o):I=this._prevBlock;for(var q=0;q<F;q++)R[B+q]^=I[q]}return C}(),b=r.pad={},m=b.Pkcs7={pad:function(C,T){for(var R=T*4,B=R-C.sigBytes%R,F=B<<24|B<<16|B<<8|B,I=[],$=0;$<B;$+=4)I.push(F);var q=s.create(I,B);C.concat(q)},unpad:function(C){var T=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=T}};i.BlockCipher=x.extend({cfg:x.cfg.extend({mode:y,padding:m}),reset:function(){var C;x.reset.call(this);var T=this.cfg,R=T.iv,B=T.mode;this._xformMode==this._ENC_XFORM_MODE?C=B.createEncryptor:(C=B.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==C?this._mode.init(this,R&&R.words):(this._mode=C.call(B,this,R&&R.words),this._mode.__creator=C)},_doProcessBlock:function(C,T){this._mode.processBlock(C,T)},_doFinalize:function(){var C,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),C=this._process(!0)):(C=this._process(!0),T.unpad(C)),C},blockSize:128/32});var S=i.CipherParams=l.extend({init:function(C){this.mixIn(C)},toString:function(C){return(C||this.formatter).stringify(this)}}),v=r.format={},_=v.OpenSSL={stringify:function(C){var T,R=C.ciphertext,B=C.salt;return B?T=s.create([1398893684,1701076831]).concat(B).concat(R):T=R,T.toString(d)},parse:function(C){var T,R=d.parse(C),B=R.words;return B[0]==1398893684&&B[1]==1701076831&&(T=s.create(B.slice(2,4)),B.splice(0,4),R.sigBytes-=16),S.create({ciphertext:R,salt:T})}},w=i.SerializableCipher=l.extend({cfg:l.extend({format:_}),encrypt:function(C,T,R,B){B=this.cfg.extend(B);var F=C.createEncryptor(R,B),I=F.finalize(T),$=F.cfg;return S.create({ciphertext:I,key:R,iv:$.iv,algorithm:C,mode:$.mode,padding:$.padding,blockSize:C.blockSize,formatter:B.format})},decrypt:function(C,T,R,B){B=this.cfg.extend(B),T=this._parse(T,B.format);var F=C.createDecryptor(R,B).finalize(T.ciphertext);return F},_parse:function(C,T){return typeof C=="string"?T.parse(C,this):C}}),k=r.kdf={},A=k.OpenSSL={execute:function(C,T,R,B){B||(B=s.random(64/8));var F=u.create({keySize:T+R}).compute(C,B),I=s.create(F.words.slice(T),R*4);return F.sigBytes=T*4,S.create({key:F,iv:I,salt:B})}},E=i.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:A}),encrypt:function(C,T,R,B){B=this.cfg.extend(B);var F=B.kdf.execute(R,C.keySize,C.ivSize);B.iv=F.iv;var I=w.encrypt.call(this,C,T,F.key,B);return I.mixIn(F),I},decrypt:function(C,T,R,B){B=this.cfg.extend(B),T=this._parse(T,B.format);var F=B.kdf.execute(R,C.keySize,C.ivSize,T.salt);B.iv=F.iv;var I=w.decrypt.call(this,C,T,F.key,B);return I}})}()})}(Pn)),Pn.exports}var zn={exports:{}},Jr;function Bs(){return Jr||(Jr=1,function(e,n){(function(t,o,r){e.exports=o(re(),we())})(te,function(t){return t.mode.CFB=function(){var o=t.lib.BlockCipherMode.extend();o.Encryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize;r.call(this,i,l,f,s),this._prevBlock=i.slice(l,l+f)}}),o.Decryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize,c=i.slice(l,l+f);r.call(this,i,l,f,s),this._prevBlock=c}});function r(i,l,s,f){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,f.encryptBlock(c,0);for(var p=0;p<s;p++)i[l+p]^=c[p]}return o}(),t.mode.CFB})}(zn)),zn.exports}var Mn={exports:{}},Qr;function Ds(){return Qr||(Qr=1,function(e,n){(function(t,o,r){e.exports=o(re(),we())})(te,function(t){return t.mode.CTR=function(){var o=t.lib.BlockCipherMode.extend(),r=o.Encryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize,c=this._iv,d=this._counter;c&&(d=this._counter=c.slice(0),this._iv=void 0);var p=d.slice(0);s.encryptBlock(p,0),d[f-1]=d[f-1]+1|0;for(var u=0;u<f;u++)i[l+u]^=p[u]}});return o.Decryptor=r,o}(),t.mode.CTR})}(Mn)),Mn.exports}var Fn={exports:{}},e0;function Rs(){return e0||(e0=1,function(e,n){(function(t,o,r){e.exports=o(re(),we())})(te,function(t){/** @preserve
67
+ */return function(o){var a=t,i=a.lib,l=i.WordArray,s=i.Hasher,f=a.algo,c=l.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=l.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]),p=l.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=l.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=l.create([0,1518500249,1859775393,2400959708,2840853838]),g=l.create([1352829926,1548603684,1836072691,2053994217,0]),x=f.RIPEMD160=s.extend({_doReset:function(){this._hash=l.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,k){for(var A=0;A<16;A++){var E=k+A,C=w[E];w[E]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}var T=this._hash.words,R=h.words,B=g.words,F=c.words,I=d.words,$=p.words,q=u.words,N,L,H,D,O,M,P,Y,Z,X;M=N=T[0],P=L=T[1],Y=H=T[2],Z=D=T[3],X=O=T[4];for(var G,A=0;A<80;A+=1)G=N+w[k+F[A]]|0,A<16?G+=y(L,H,D)+R[0]:A<32?G+=S(L,H,D)+R[1]:A<48?G+=m(L,H,D)+R[2]:A<64?G+=b(L,H,D)+R[3]:G+=v(L,H,D)+R[4],G=G|0,G=_(G,$[A]),G=G+O|0,N=O,O=D,D=_(H,10),H=L,L=G,G=M+w[k+I[A]]|0,A<16?G+=v(P,Y,Z)+B[0]:A<32?G+=b(P,Y,Z)+B[1]:A<48?G+=m(P,Y,Z)+B[2]:A<64?G+=S(P,Y,Z)+B[3]:G+=y(P,Y,Z)+B[4],G=G|0,G=_(G,q[A]),G=G+X|0,M=X,X=Z,Z=_(Y,10),Y=P,P=G;G=T[1]+H+Z|0,T[1]=T[2]+D+X|0,T[2]=T[3]+O+M|0,T[3]=T[4]+N+P|0,T[4]=T[0]+L+Y|0,T[0]=G},_doFinalize:function(){var w=this._data,k=w.words,A=this._nDataBytes*8,E=w.sigBytes*8;k[E>>>5]|=128<<24-E%32,k[(E+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,w.sigBytes=(k.length+1)*4,this._process();for(var C=this._hash,T=C.words,R=0;R<5;R++){var B=T[R];T[R]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}return C},clone:function(){var w=s.clone.call(this);return w._hash=this._hash.clone(),w}});function y(w,k,A){return w^k^A}function S(w,k,A){return w&k|~w&A}function m(w,k,A){return(w|~k)^A}function b(w,k,A){return w&A|k&~A}function v(w,k,A){return w^(k|~A)}function _(w,k){return w<<k|w>>>32-k}a.RIPEMD160=s._createHelper(x),a.HmacRIPEMD160=s._createHmacHelper(x)}(),t.RIPEMD160})}(Rn)),Rn.exports}var In={exports:{}},Kr;function Ln(){return Kr||(Kr=1,function(e,n){(function(t,o){e.exports=o(re())})(te,function(t){(function(){var o=t,a=o.lib,i=a.Base,l=o.enc,s=l.Utf8,f=o.algo;f.HMAC=i.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=s.parse(d));var p=c.blockSize,u=p*4;d.sigBytes>u&&(d=c.finalize(d)),d.clamp();for(var h=this._oKey=d.clone(),g=this._iKey=d.clone(),x=h.words,y=g.words,S=0;S<p;S++)x[S]^=1549556828,y[S]^=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,p=d.finalize(c);d.reset();var u=d.finalize(this._oKey.clone().concat(p));return u}})})()})}(In)),In.exports}var On={exports:{}},Yr;function Rs(){return Yr||(Yr=1,function(e,n){(function(t,o,a){e.exports=o(re(),_n(),Ln())})(te,function(t){return function(){var o=t,a=o.lib,i=a.Base,l=a.WordArray,s=o.algo,f=s.SHA1,c=s.HMAC,d=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,u){for(var h=this.cfg,g=c.create(h.hasher,p),x=l.create(),y=l.create([1]),S=x.words,m=y.words,b=h.keySize,v=h.iterations;S.length<b;){var _=g.update(u).finalize(y);g.reset();for(var w=_.words,k=w.length,A=_,E=1;E<v;E++){A=g.finalize(A),g.reset();for(var C=A.words,T=0;T<k;T++)w[T]^=C[T]}x.concat(_),m[0]++}return x.sigBytes=b*4,x}});o.PBKDF2=function(p,u,h){return d.create(h).compute(p,u)}}(),t.PBKDF2})}(On)),On.exports}var Nn={exports:{}},Xr;function ot(){return Xr||(Xr=1,function(e,n){(function(t,o,a){e.exports=o(re(),_n(),Ln())})(te,function(t){return function(){var o=t,a=o.lib,i=a.Base,l=a.WordArray,s=o.algo,f=s.MD5,c=s.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,p){for(var u,h=this.cfg,g=h.hasher.create(),x=l.create(),y=x.words,S=h.keySize,m=h.iterations;y.length<S;){u&&g.update(u),u=g.update(d).finalize(p),g.reset();for(var b=1;b<m;b++)u=g.finalize(u),g.reset();x.concat(u)}return x.sigBytes=S*4,x}});o.EvpKDF=function(d,p,u){return c.create(u).compute(d,p)}}(),t.EvpKDF})}(Nn)),Nn.exports}var Pn={exports:{}},Jr;function Ce(){return Jr||(Jr=1,function(e,n){(function(t,o,a){e.exports=o(re(),ot())})(te,function(t){t.lib.Cipher||function(o){var a=t,i=a.lib,l=i.Base,s=i.WordArray,f=i.BufferedBlockAlgorithm,c=a.enc;c.Utf8;var d=c.Base64,p=a.algo,u=p.EvpKDF,h=i.Cipher=f.extend({cfg:l.extend(),createEncryptor:function(C,T){return this.create(this._ENC_XFORM_MODE,C,T)},createDecryptor:function(C,T){return this.create(this._DEC_XFORM_MODE,C,T)},init:function(C,T,R){this.cfg=this.cfg.extend(R),this._xformMode=C,this._key=T,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(C){return this._append(C),this._process()},finalize:function(C){C&&this._append(C);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function C(T){return typeof T=="string"?E:w}return function(T){return{encrypt:function(R,B,F){return C(B).encrypt(T,R,B,F)},decrypt:function(R,B,F){return C(B).decrypt(T,R,B,F)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var C=this._process(!0);return C},blockSize:1});var g=a.mode={},x=i.BlockCipherMode=l.extend({createEncryptor:function(C,T){return this.Encryptor.create(C,T)},createDecryptor:function(C,T){return this.Decryptor.create(C,T)},init:function(C,T){this._cipher=C,this._iv=T}}),y=g.CBC=function(){var C=x.extend();C.Encryptor=C.extend({processBlock:function(R,B){var F=this._cipher,I=F.blockSize;T.call(this,R,B,I),F.encryptBlock(R,B),this._prevBlock=R.slice(B,B+I)}}),C.Decryptor=C.extend({processBlock:function(R,B){var F=this._cipher,I=F.blockSize,$=R.slice(B,B+I);F.decryptBlock(R,B),T.call(this,R,B,I),this._prevBlock=$}});function T(R,B,F){var I,$=this._iv;$?(I=$,this._iv=o):I=this._prevBlock;for(var q=0;q<F;q++)R[B+q]^=I[q]}return C}(),S=a.pad={},m=S.Pkcs7={pad:function(C,T){for(var R=T*4,B=R-C.sigBytes%R,F=B<<24|B<<16|B<<8|B,I=[],$=0;$<B;$+=4)I.push(F);var q=s.create(I,B);C.concat(q)},unpad:function(C){var T=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=T}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:y,padding:m}),reset:function(){var C;h.reset.call(this);var T=this.cfg,R=T.iv,B=T.mode;this._xformMode==this._ENC_XFORM_MODE?C=B.createEncryptor:(C=B.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==C?this._mode.init(this,R&&R.words):(this._mode=C.call(B,this,R&&R.words),this._mode.__creator=C)},_doProcessBlock:function(C,T){this._mode.processBlock(C,T)},_doFinalize:function(){var C,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),C=this._process(!0)):(C=this._process(!0),T.unpad(C)),C},blockSize:128/32});var b=i.CipherParams=l.extend({init:function(C){this.mixIn(C)},toString:function(C){return(C||this.formatter).stringify(this)}}),v=a.format={},_=v.OpenSSL={stringify:function(C){var T,R=C.ciphertext,B=C.salt;return B?T=s.create([1398893684,1701076831]).concat(B).concat(R):T=R,T.toString(d)},parse:function(C){var T,R=d.parse(C),B=R.words;return B[0]==1398893684&&B[1]==1701076831&&(T=s.create(B.slice(2,4)),B.splice(0,4),R.sigBytes-=16),b.create({ciphertext:R,salt:T})}},w=i.SerializableCipher=l.extend({cfg:l.extend({format:_}),encrypt:function(C,T,R,B){B=this.cfg.extend(B);var F=C.createEncryptor(R,B),I=F.finalize(T),$=F.cfg;return b.create({ciphertext:I,key:R,iv:$.iv,algorithm:C,mode:$.mode,padding:$.padding,blockSize:C.blockSize,formatter:B.format})},decrypt:function(C,T,R,B){B=this.cfg.extend(B),T=this._parse(T,B.format);var F=C.createDecryptor(R,B).finalize(T.ciphertext);return F},_parse:function(C,T){return typeof C=="string"?T.parse(C,this):C}}),k=a.kdf={},A=k.OpenSSL={execute:function(C,T,R,B){B||(B=s.random(64/8));var F=u.create({keySize:T+R}).compute(C,B),I=s.create(F.words.slice(T),R*4);return F.sigBytes=T*4,b.create({key:F,iv:I,salt:B})}},E=i.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:A}),encrypt:function(C,T,R,B){B=this.cfg.extend(B);var F=B.kdf.execute(R,C.keySize,C.ivSize);B.iv=F.iv;var I=w.encrypt.call(this,C,T,F.key,B);return I.mixIn(F),I},decrypt:function(C,T,R,B){B=this.cfg.extend(B),T=this._parse(T,B.format);var F=B.kdf.execute(R,C.keySize,C.ivSize,T.salt);B.iv=F.iv;var I=w.decrypt.call(this,C,T,F.key,B);return I}})}()})}(Pn)),Pn.exports}var zn={exports:{}},Qr;function Is(){return Qr||(Qr=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.mode.CFB=function(){var o=t.lib.BlockCipherMode.extend();o.Encryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize;a.call(this,i,l,f,s),this._prevBlock=i.slice(l,l+f)}}),o.Decryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize,c=i.slice(l,l+f);a.call(this,i,l,f,s),this._prevBlock=c}});function a(i,l,s,f){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,f.encryptBlock(c,0);for(var p=0;p<s;p++)i[l+p]^=c[p]}return o}(),t.mode.CFB})}(zn)),zn.exports}var Mn={exports:{}},e0;function Ls(){return e0||(e0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.mode.CTR=function(){var o=t.lib.BlockCipherMode.extend(),a=o.Encryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize,c=this._iv,d=this._counter;c&&(d=this._counter=c.slice(0),this._iv=void 0);var p=d.slice(0);s.encryptBlock(p,0),d[f-1]=d[f-1]+1|0;for(var u=0;u<f;u++)i[l+u]^=p[u]}});return o.Decryptor=a,o}(),t.mode.CTR})}(Mn)),Mn.exports}var Fn={exports:{}},t0;function Os(){return t0||(t0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,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(s){if((s>>24&255)===255){var f=s>>16&255,c=s>>8&255,d=s&255;f===255?(f=0,c===255?(c=0,d===255?d=0:++d):++c):++f,s=0,s+=f<<16,s+=c<<8,s+=d}else s+=1<<24;return s}function i(s){return(s[0]=r(s[0]))===0&&(s[1]=r(s[1])),s}var l=o.Encryptor=o.extend({processBlock:function(s,f){var c=this._cipher,d=c.blockSize,p=this._iv,u=this._counter;p&&(u=this._counter=p.slice(0),this._iv=void 0),i(u);var x=u.slice(0);c.encryptBlock(x,0);for(var h=0;h<d;h++)s[f+h]^=x[h]}});return o.Decryptor=l,o}(),t.mode.CTRGladman})}(Fn)),Fn.exports}var Vn={exports:{}},t0;function Is(){return t0||(t0=1,function(e,n){(function(t,o,r){e.exports=o(re(),we())})(te,function(t){return t.mode.OFB=function(){var o=t.lib.BlockCipherMode.extend(),r=o.Encryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize,c=this._iv,d=this._keystream;c&&(d=this._keystream=c.slice(0),this._iv=void 0),s.encryptBlock(d,0);for(var p=0;p<f;p++)i[l+p]^=d[p]}});return o.Decryptor=r,o}(),t.mode.OFB})}(Vn)),Vn.exports}var qn={exports:{}},n0;function Ls(){return n0||(n0=1,function(e,n){(function(t,o,r){e.exports=o(re(),we())})(te,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})}(qn)),qn.exports}var Hn={exports:{}},o0;function Os(){return o0||(o0=1,function(e,n){(function(t,o,r){e.exports=o(re(),we())})(te,function(t){return t.pad.AnsiX923={pad:function(o,r){var i=o.sigBytes,l=r*4,s=l-i%l,f=i+s-1;o.clamp(),o.words[f>>>2]|=s<<24-f%4*8,o.sigBytes+=s},unpad:function(o){var r=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=r}},t.pad.Ansix923})}(Hn)),Hn.exports}var $n={exports:{}},r0;function Ns(){return r0||(r0=1,function(e,n){(function(t,o,r){e.exports=o(re(),we())})(te,function(t){return t.pad.Iso10126={pad:function(o,r){var i=r*4,l=i-o.sigBytes%i;o.concat(t.lib.WordArray.random(l-1)).concat(t.lib.WordArray.create([l<<24],1))},unpad:function(o){var r=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=r}},t.pad.Iso10126})}($n)),$n.exports}var jn={exports:{}},a0;function Ps(){return a0||(a0=1,function(e,n){(function(t,o,r){e.exports=o(re(),we())})(te,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})}(jn)),jn.exports}var Un={exports:{}},i0;function zs(){return i0||(i0=1,function(e,n){(function(t,o,r){e.exports=o(re(),we())})(te,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})}(Un)),Un.exports}var Gn={exports:{}},s0;function Ms(){return s0||(s0=1,function(e,n){(function(t,o,r){e.exports=o(re(),we())})(te,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Gn)),Gn.exports}var Wn={exports:{}},l0;function Fs(){return l0||(l0=1,function(e,n){(function(t,o,r){e.exports=o(re(),we())})(te,function(t){return function(o){var r=t,i=r.lib,l=i.CipherParams,s=r.enc,f=s.Hex,c=r.format;c.Hex={stringify:function(d){return d.ciphertext.toString(f)},parse:function(d){var p=f.parse(d);return l.create({ciphertext:p})}}}(),t.format.Hex})}(Wn)),Wn.exports}var Zn={exports:{}},c0;function Vs(){return c0||(c0=1,function(e,n){(function(t,o,r){e.exports=o(re(),ft(),dt(),et(),we())})(te,function(t){return function(){var o=t,r=o.lib,i=r.BlockCipher,l=o.algo,s=[],f=[],c=[],d=[],p=[],u=[],x=[],h=[],g=[],y=[];(function(){for(var S=[],v=0;v<256;v++)v<128?S[v]=v<<1:S[v]=v<<1^283;for(var _=0,w=0,v=0;v<256;v++){var k=w^w<<1^w<<2^w<<3^w<<4;k=k>>>8^k&255^99,s[_]=k,f[k]=_;var A=S[_],E=S[A],C=S[E],T=S[k]*257^k*16843008;c[_]=T<<24|T>>>8,d[_]=T<<16|T>>>16,p[_]=T<<8|T>>>24,u[_]=T;var T=C*16843009^E*65537^A*257^_*16843008;x[k]=T<<24|T>>>8,h[k]=T<<16|T>>>16,g[k]=T<<8|T>>>24,y[k]=T,_?(_=A^S[S[S[C^A]]],w^=S[S[w]]):_=w=1}})();var b=[0,1,2,4,8,16,32,64,128,27,54],m=l.AES=i.extend({_doReset:function(){var S;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var v=this._keyPriorReset=this._key,_=v.words,w=v.sigBytes/4,k=this._nRounds=w+6,A=(k+1)*4,E=this._keySchedule=[],C=0;C<A;C++)C<w?E[C]=_[C]:(S=E[C-1],C%w?w>6&&C%w==4&&(S=s[S>>>24]<<24|s[S>>>16&255]<<16|s[S>>>8&255]<<8|s[S&255]):(S=S<<8|S>>>24,S=s[S>>>24]<<24|s[S>>>16&255]<<16|s[S>>>8&255]<<8|s[S&255],S^=b[C/w|0]<<24),E[C]=E[C-w]^S);for(var T=this._invKeySchedule=[],R=0;R<A;R++){var C=A-R;if(R%4)var S=E[C];else var S=E[C-4];R<4||C<=4?T[R]=S:T[R]=x[s[S>>>24]]^h[s[S>>>16&255]]^g[s[S>>>8&255]]^y[s[S&255]]}}},encryptBlock:function(S,v){this._doCryptBlock(S,v,this._keySchedule,c,d,p,u,s)},decryptBlock:function(S,v){var _=S[v+1];S[v+1]=S[v+3],S[v+3]=_,this._doCryptBlock(S,v,this._invKeySchedule,x,h,g,y,f);var _=S[v+1];S[v+1]=S[v+3],S[v+3]=_},_doCryptBlock:function(S,v,_,w,k,A,E,C){for(var T=this._nRounds,R=S[v]^_[0],B=S[v+1]^_[1],F=S[v+2]^_[2],I=S[v+3]^_[3],$=4,q=1;q<T;q++){var L=w[R>>>24]^k[B>>>16&255]^A[F>>>8&255]^E[I&255]^_[$++],O=w[B>>>24]^k[F>>>16&255]^A[I>>>8&255]^E[R&255]^_[$++],H=w[F>>>24]^k[I>>>16&255]^A[R>>>8&255]^E[B&255]^_[$++],D=w[I>>>24]^k[R>>>16&255]^A[B>>>8&255]^E[F&255]^_[$++];R=L,B=O,F=H,I=D}var L=(C[R>>>24]<<24|C[B>>>16&255]<<16|C[F>>>8&255]<<8|C[I&255])^_[$++],O=(C[B>>>24]<<24|C[F>>>16&255]<<16|C[I>>>8&255]<<8|C[R&255])^_[$++],H=(C[F>>>24]<<24|C[I>>>16&255]<<16|C[R>>>8&255]<<8|C[B&255])^_[$++],D=(C[I>>>24]<<24|C[R>>>16&255]<<16|C[B>>>8&255]<<8|C[F&255])^_[$++];S[v]=L,S[v+1]=O,S[v+2]=H,S[v+3]=D},keySize:256/32});o.AES=i._createHelper(m)}(),t.AES})}(Zn)),Zn.exports}var Kn={exports:{}},f0;function qs(){return f0||(f0=1,function(e,n){(function(t,o,r){e.exports=o(re(),ft(),dt(),et(),we())})(te,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,l=r.BlockCipher,s=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],p=[{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],x=s.DES=l.extend({_doReset:function(){for(var b=this._key,m=b.words,S=[],v=0;v<56;v++){var _=f[v]-1;S[v]=m[_>>>5]>>>31-_%32&1}for(var w=this._subKeys=[],k=0;k<16;k++){for(var A=w[k]=[],E=d[k],v=0;v<24;v++)A[v/6|0]|=S[(c[v]-1+E)%28]<<31-v%6,A[4+(v/6|0)]|=S[28+(c[v+24]-1+E)%28]<<31-v%6;A[0]=A[0]<<1|A[0]>>>31;for(var v=1;v<7;v++)A[v]=A[v]>>>(v-1)*4+3;A[7]=A[7]<<5|A[7]>>>27}for(var C=this._invSubKeys=[],v=0;v<16;v++)C[v]=w[15-v]},encryptBlock:function(b,m){this._doCryptBlock(b,m,this._subKeys)},decryptBlock:function(b,m){this._doCryptBlock(b,m,this._invSubKeys)},_doCryptBlock:function(b,m,S){this._lBlock=b[m],this._rBlock=b[m+1],h.call(this,4,252645135),h.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),h.call(this,1,1431655765);for(var v=0;v<16;v++){for(var _=S[v],w=this._lBlock,k=this._rBlock,A=0,E=0;E<8;E++)A|=p[E][((k^_[E])&u[E])>>>0];this._lBlock=k,this._rBlock=w^A}var C=this._lBlock;this._lBlock=this._rBlock,this._rBlock=C,h.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),b[m]=this._lBlock,b[m+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(b,m){var S=(this._lBlock>>>b^this._rBlock)&m;this._rBlock^=S,this._lBlock^=S<<b}function g(b,m){var S=(this._rBlock>>>b^this._lBlock)&m;this._lBlock^=S,this._rBlock^=S<<b}o.DES=l._createHelper(x);var y=s.TripleDES=l.extend({_doReset:function(){var b=this._key,m=b.words;if(m.length!==2&&m.length!==4&&m.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var S=m.slice(0,2),v=m.length<4?m.slice(0,2):m.slice(2,4),_=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=x.createEncryptor(i.create(S)),this._des2=x.createEncryptor(i.create(v)),this._des3=x.createEncryptor(i.create(_))},encryptBlock:function(b,m){this._des1.encryptBlock(b,m),this._des2.decryptBlock(b,m),this._des3.encryptBlock(b,m)},decryptBlock:function(b,m){this._des3.decryptBlock(b,m),this._des2.encryptBlock(b,m),this._des1.decryptBlock(b,m)},keySize:192/32,ivSize:64/32,blockSize:64/32});o.TripleDES=l._createHelper(y)}(),t.TripleDES})}(Kn)),Kn.exports}var Yn={exports:{}},d0;function Hs(){return d0||(d0=1,function(e,n){(function(t,o,r){e.exports=o(re(),ft(),dt(),et(),we())})(te,function(t){return function(){var o=t,r=o.lib,i=r.StreamCipher,l=o.algo,s=l.RC4=i.extend({_doReset:function(){for(var d=this._key,p=d.words,u=d.sigBytes,x=this._S=[],h=0;h<256;h++)x[h]=h;for(var h=0,g=0;h<256;h++){var y=h%u,b=p[y>>>2]>>>24-y%4*8&255;g=(g+x[h]+b)%256;var m=x[h];x[h]=x[g],x[g]=m}this._i=this._j=0},_doProcessBlock:function(d,p){d[p]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var d=this._S,p=this._i,u=this._j,x=0,h=0;h<4;h++){p=(p+1)%256,u=(u+d[p])%256;var g=d[p];d[p]=d[u],d[u]=g,x|=d[(d[p]+d[u])%256]<<24-h*8}return this._i=p,this._j=u,x}o.RC4=i._createHelper(s);var c=l.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)f.call(this)}});o.RC4Drop=i._createHelper(c)}(),t.RC4})}(Yn)),Yn.exports}var Xn={exports:{}},u0;function $s(){return u0||(u0=1,function(e,n){(function(t,o,r){e.exports=o(re(),ft(),dt(),et(),we())})(te,function(t){return function(){var o=t,r=o.lib,i=r.StreamCipher,l=o.algo,s=[],f=[],c=[],d=l.Rabbit=i.extend({_doReset:function(){for(var u=this._key.words,x=this.cfg.iv,h=0;h<4;h++)u[h]=(u[h]<<8|u[h]>>>24)&16711935|(u[h]<<24|u[h]>>>8)&4278255360;var g=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],y=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 h=0;h<4;h++)p.call(this);for(var h=0;h<8;h++)y[h]^=g[h+4&7];if(x){var b=x.words,m=b[0],S=b[1],v=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,_=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,w=v>>>16|_&4294901760,k=_<<16|v&65535;y[0]^=v,y[1]^=w,y[2]^=_,y[3]^=k,y[4]^=v,y[5]^=w,y[6]^=_,y[7]^=k;for(var h=0;h<4;h++)p.call(this)}},_doProcessBlock:function(u,x){var h=this._X;p.call(this),s[0]=h[0]^h[5]>>>16^h[3]<<16,s[1]=h[2]^h[7]>>>16^h[5]<<16,s[2]=h[4]^h[1]>>>16^h[7]<<16,s[3]=h[6]^h[3]>>>16^h[1]<<16;for(var g=0;g<4;g++)s[g]=(s[g]<<8|s[g]>>>24)&16711935|(s[g]<<24|s[g]>>>8)&4278255360,u[x+g]^=s[g]},blockSize:128/32,ivSize:64/32});function p(){for(var u=this._X,x=this._C,h=0;h<8;h++)f[h]=x[h];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<f[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<f[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<f[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<f[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<f[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<f[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<f[6]>>>0?1:0)|0,this._b=x[7]>>>0<f[7]>>>0?1:0;for(var h=0;h<8;h++){var g=u[h]+x[h],y=g&65535,b=g>>>16,m=((y*y>>>17)+y*b>>>15)+b*b,S=((g&4294901760)*g|0)+((g&65535)*g|0);c[h]=m^S}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o.Rabbit=i._createHelper(d)}(),t.Rabbit})}(Xn)),Xn.exports}var Jn={exports:{}},h0;function js(){return h0||(h0=1,function(e,n){(function(t,o,r){e.exports=o(re(),ft(),dt(),et(),we())})(te,function(t){return function(){var o=t,r=o.lib,i=r.StreamCipher,l=o.algo,s=[],f=[],c=[],d=l.RabbitLegacy=i.extend({_doReset:function(){var u=this._key.words,x=this.cfg.iv,h=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],g=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var y=0;y<4;y++)p.call(this);for(var y=0;y<8;y++)g[y]^=h[y+4&7];if(x){var b=x.words,m=b[0],S=b[1],v=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,_=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,w=v>>>16|_&4294901760,k=_<<16|v&65535;g[0]^=v,g[1]^=w,g[2]^=_,g[3]^=k,g[4]^=v,g[5]^=w,g[6]^=_,g[7]^=k;for(var y=0;y<4;y++)p.call(this)}},_doProcessBlock:function(u,x){var h=this._X;p.call(this),s[0]=h[0]^h[5]>>>16^h[3]<<16,s[1]=h[2]^h[7]>>>16^h[5]<<16,s[2]=h[4]^h[1]>>>16^h[7]<<16,s[3]=h[6]^h[3]>>>16^h[1]<<16;for(var g=0;g<4;g++)s[g]=(s[g]<<8|s[g]>>>24)&16711935|(s[g]<<24|s[g]>>>8)&4278255360,u[x+g]^=s[g]},blockSize:128/32,ivSize:64/32});function p(){for(var u=this._X,x=this._C,h=0;h<8;h++)f[h]=x[h];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<f[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<f[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<f[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<f[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<f[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<f[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<f[6]>>>0?1:0)|0,this._b=x[7]>>>0<f[7]>>>0?1:0;for(var h=0;h<8;h++){var g=u[h]+x[h],y=g&65535,b=g>>>16,m=((y*y>>>17)+y*b>>>15)+b*b,S=((g&4294901760)*g|0)+((g&65535)*g|0);c[h]=m^S}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o.RabbitLegacy=i._createHelper(d)}(),t.RabbitLegacy})}(Jn)),Jn.exports}(function(e,n){(function(t,o,r){e.exports=o(re(),Vt(),Ss(),ws(),ft(),Cs(),dt(),_n(),qr(),ks(),jr(),_s(),As(),Es(),Ln(),Ts(),et(),we(),Bs(),Ds(),Rs(),Is(),Ls(),Os(),Ns(),Ps(),zs(),Ms(),Fs(),Vs(),qs(),Hs(),$s(),js())})(te,function(t){return t})})(Rr);var Us=Rr.exports;const Re=ps(Us);var Gs="0123456789abcdefghijklmnopqrstuvwxyz";function je(e){return Gs.charAt(e)}function Ws(e,n){return e&n}function qt(e,n){return e|n}function x0(e,n){return e^n}function g0(e,n){return e&~n}function Zs(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 Ks(e){for(var n=0;e!=0;)e&=e-1,++n;return n}var ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m0="=";function Ht(e){var n,t,o="";for(n=0;n+3<=e.length;n+=3)t=parseInt(e.substring(n,n+3),16),o+=ut.charAt(t>>6)+ut.charAt(t&63);for(n+1==e.length?(t=parseInt(e.substring(n,n+1),16),o+=ut.charAt(t<<2)):n+2==e.length&&(t=parseInt(e.substring(n,n+2),16),o+=ut.charAt(t>>2)+ut.charAt((t&3)<<4));(o.length&3)>0;)o+=m0;return o}function p0(e){var n="",t,o=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=m0;++t){var i=ut.indexOf(e.charAt(t));i<0||(o==0?(n+=je(i>>2),r=i&3,o=1):o==1?(n+=je(r<<2|i>>4),r=i&15,o=2):o==2?(n+=je(r),n+=je(i>>2),r=i&3,o=3):(n+=je(r<<2|i>>4),n+=je(i&15),o=0))}return o==1&&(n+=je(r<<2)),n}var ht,Ys={decode:function(e){var n;if(ht===void 0){var t="0123456789ABCDEF",o=` \f
72
- \r  \u2028\u2029`;for(ht={},n=0;n<16;++n)ht[t.charAt(n)]=n;for(t=t.toLowerCase(),n=10;n<16;++n)ht[t.charAt(n)]=n;for(n=0;n<o.length;++n)ht[o.charAt(n)]=-1}var r=[],i=0,l=0;for(n=0;n<e.length;++n){var s=e.charAt(n);if(s=="=")break;if(s=ht[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+n);i|=s,++l>=2?(r[r.length]=i,i=0,l=0):i<<=4}}if(l)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},tt,Qn={decode:function(e){var n;if(tt===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=`= \f
73
- \r  \u2028\u2029`;for(tt=Object.create(null),n=0;n<64;++n)tt[t.charAt(n)]=n;for(tt["-"]=62,tt._=63,n=0;n<o.length;++n)tt[o.charAt(n)]=-1}var r=[],i=0,l=0;for(n=0;n<e.length;++n){var s=e.charAt(n);if(s=="=")break;if(s=tt[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+n);i|=s,++l>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=i&255,i=0,l=0):i<<=6}}switch(l){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=Qn.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 Qn.decode(e)}},xt=1e13,Tt=function(){function e(n){this.buf=[+n||0]}return e.prototype.mulAdd=function(n,t){var o=this.buf,r=o.length,i,l;for(i=0;i<r;++i)l=o[i]*n+t,l<xt?t=0:(t=0|l/xt,l-=t*xt),o[i]=l;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+=xt,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+=(xt+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*xt+n[o];return t},e.prototype.simplify=function(){var n=this.buf;return n.length==1?n[0]:this},e}(),y0="…",Xs=/^(\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)?)?$/,Js=/^(\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 gt(e,n){return e.length>n&&(e=e.substring(0,n)+y0),e}var eo=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,l=n;l<t;)r=this.get(l++),i=this.get(l++),o+=String.fromCharCode(r<<8|i);return o},e.prototype.parseTime=function(n,t,o){var r=this.parseStringISO(n,t),i=(o?Xs:Js).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,l,s="";o==i&&++n<t;)o=this.get(n);if(l=t-n,l===0)return r?-1:0;if(l>4){for(s=o,l<<=3;!((+s^i)&128);)s=+s<<1,--l;s="("+l+` bit)
75
- `}r&&(o=o-256);for(var f=new Tt(o),c=n+1;c<t;++c)f.mulAdd(256,this.get(c));return s+f.toString()},e.prototype.parseBitString=function(n,t,o){for(var r=this.get(n),i=(t-n-1<<3)-r,l="("+i+` bit)
76
- `,s="",f=n+1;f<t;++f){for(var c=this.get(f),d=f==t-1?r:0,p=7;p>=d;--p)s+=c>>p&1?"1":"0";if(s.length>o)return l+gt(s,o)}return l+s},e.prototype.parseOctetString=function(n,t,o){if(this.isASCII(n,t))return gt(this.parseStringISO(n,t),o);var r=t-n,i="("+r+` byte)
77
- `;o/=2,r>o&&(t=n+o);for(var l=n;l<t;++l)i+=this.hexByte(this.get(l));return r>o&&(i+=y0),i},e.prototype.parseOID=function(n,t,o){for(var r="",i=new Tt,l=0,s=n;s<t;++s){var f=this.get(s);if(i.mulAdd(128,f&127),l+=7,!(f&128)){if(r==="")if(i=i.simplify(),i instanceof Tt)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 gt(r,o);i=new Tt,l=0}}return l>0&&(r+=".incomplete"),r},e}(),Qs=function(){function e(n,t,o,r,i){if(!(r instanceof v0))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 gt(this.stream.parseStringUTF(t,t+o),n);case 18:case 19:case 20:case 21:case 22:case 26:return gt(this.stream.parseStringISO(t,t+o),n);case 30:return gt(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 eo?t=n:t=new eo(n,0);var o=new eo(t),r=new v0(t),i=e.decodeLength(t),l=t.pos,s=l-o.pos,f=null,c=function(){var p=[];if(i!==null){for(var u=l+i;t.pos<u;)p[p.length]=e.decode(t);if(t.pos!=u)throw new Error("Content size is not correct for container starting at offset "+l)}else try{for(;;){var x=e.decode(t);if(x.tag.isEOC())break;p[p.length]=x}i=l-t.pos}catch(h){throw new Error("Exception while decoding undefined length content: "+h)}return p};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 "+l);t.pos=l+Math.abs(i)}return new e(o,s,i,r,f)},e}(),v0=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 Tt;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}(),We,el=0xdeadbeefcafe,b0=(el&16777215)==15715070,Ce=[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],tl=(1<<26)/Ce[Ce.length-1],J=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,l="",s=this.t,f=this.DB-s*this.DB%t;if(s-- >0)for(f<this.DB&&(r=this[s]>>f)>0&&(i=!0,l=je(r));s>=0;)f<t?(r=(this[s]&(1<<f)-1)<<t-f,r|=this[--s]>>(f+=this.DB-t)):(r=this[s]>>(f-=t)&o,f<=0&&(f+=this.DB,--s)),r>0&&(i=!0),i&&(l+=je(r));return i?l:"0"},e.prototype.negate=function(){var n=ne();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)+jt(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(n){var t=ne();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 S0(t):o=new w0(t),this.exp(n,o)},e.prototype.clone=function(){var n=ne();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=ne();return this.bitwiseTo(n,Ws,t),t},e.prototype.or=function(n){var t=ne();return this.bitwiseTo(n,qt,t),t},e.prototype.xor=function(n){var t=ne();return this.bitwiseTo(n,x0,t),t},e.prototype.andNot=function(n){var t=ne();return this.bitwiseTo(n,g0,t),t},e.prototype.not=function(){for(var n=ne(),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=ne();return n<0?this.rShiftTo(-n,t):this.lShiftTo(n,t),t},e.prototype.shiftRight=function(n){var t=ne();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+Zs(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+=Ks(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,qt)},e.prototype.clearBit=function(n){return this.changeBit(n,g0)},e.prototype.flipBit=function(n){return this.changeBit(n,x0)},e.prototype.add=function(n){var t=ne();return this.addTo(n,t),t},e.prototype.subtract=function(n){var t=ne();return this.subTo(n,t),t},e.prototype.multiply=function(n){var t=ne();return this.multiplyTo(n,t),t},e.prototype.divide=function(n){var t=ne();return this.divRemTo(n,t,null),t},e.prototype.remainder=function(n){var t=ne();return this.divRemTo(n,null,t),t},e.prototype.divideAndRemainder=function(n){var t=ne(),o=ne();return this.divRemTo(n,t,o),[t,o]},e.prototype.modPow=function(n,t){var o=n.bitLength(),r,i=Ze(1),l;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?l=new S0(t):t.isEven()?l=new ol(t):l=new w0(t);var s=[],f=3,c=r-1,d=(1<<r)-1;if(s[1]=l.convert(this),r>1){var p=ne();for(l.sqrTo(s[1],p);f<=d;)s[f]=ne(),l.mulTo(p,s[f-2],s[f]),f+=2}var u=n.t-1,x,h=!0,g=ne(),y;for(o=jt(n[u])-1;u>=0;){for(o>=c?x=n[u]>>o-c&d:(x=(n[u]&(1<<o+1)-1)<<c-o,u>0&&(x|=n[u-1]>>this.DB+o-c)),f=r;!(x&1);)x>>=1,--f;if((o-=f)<0&&(o+=this.DB,--u),h)s[x].copyTo(i),h=!1;else{for(;f>1;)l.sqrTo(i,g),l.sqrTo(g,i),f-=2;f>0?l.sqrTo(i,g):(y=i,i=g,g=y),l.mulTo(g,s[x],i)}for(;u>=0&&!(n[u]&1<<o);)l.sqrTo(i,g),y=i,i=g,g=y,--o<0&&(o=this.DB-1,--u)}return l.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=Ze(1),l=Ze(0),s=Ze(0),f=Ze(1);o.signum()!=0;){for(;o.isEven();)o.rShiftTo(1,o),t?((!i.isEven()||!l.isEven())&&(i.addTo(this,i),l.subTo(n,l)),i.rShiftTo(1,i)):l.isEven()||l.subTo(n,l),l.rShiftTo(1,l);for(;r.isEven();)r.rShiftTo(1,r),t?((!s.isEven()||!f.isEven())&&(s.addTo(this,s),f.subTo(n,f)),s.rShiftTo(1,s)):f.isEven()||f.subTo(n,f),f.rShiftTo(1,f);o.compareTo(r)>=0?(o.subTo(r,o),t&&i.subTo(s,i),l.subTo(f,l)):(r.subTo(o,r),t&&s.subTo(i,s),f.subTo(l,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 nl)},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(),l=o.getLowestSetBit();if(l<0)return t;for(i<l&&(l=i),l>0&&(t.rShiftTo(l,t),o.rShiftTo(l,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 l>0&&o.lShiftTo(l,o),o},e.prototype.isProbablePrime=function(n){var t,o=this.abs();if(o.t==1&&o[0]<=Ce[Ce.length-1]){for(t=0;t<Ce.length;++t)if(o[0]==Ce[t])return!0;return!1}if(o.isEven())return!1;for(t=1;t<Ce.length;){for(var r=Ce[t],i=t+1;i<Ce.length&&r<tl;)r*=Ce[i++];for(r=o.modInt(r);t<i;)if(r%Ce[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,l=0;--r>=0;){var s=o==8?+n[r]&255:k0(n,r);if(s<0){n.charAt(r)=="-"&&(i=!0);continue}i=!1,l==0?this[this.t++]=s:l+o>this.DB?(this[this.t-1]|=(s&(1<<this.DB-l)-1)<<l,this[this.t++]=s>>this.DB-l):this[this.t-1]|=s<<l,l+=o,l>=this.DB&&(l-=this.DB)}o==8&&+n[0]&128&&(this.s=-1,l>0&&(this[this.t-1]|=(1<<this.DB-l)-1<<l)),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,l=Math.floor(n/this.DB),s=this.s<<o&this.DM,f=this.t-1;f>=0;--f)t[f+l+1]=this[f]>>r|s,s=(this[f]&i)<<o;for(var f=l-1;f>=0;--f)t[f]=0;t[l]=s,t.t=this.t+l+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,l=(1<<r)-1;t[0]=this[o]>>r;for(var s=o+1;s<this.t;++s)t[s-o-1]|=(this[s]&l)<<i,t[s-o]=this[s]>>r;r>0&&(t[this.t-o-1]|=(this.s&l)<<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=ne());var l=ne(),s=this.s,f=n.s,c=this.DB-jt(r[r.t-1]);c>0?(r.lShiftTo(c,l),i.lShiftTo(c,o)):(r.copyTo(l),i.copyTo(o));var d=l.t,p=l[d-1];if(p!=0){var u=p*(1<<this.F1)+(d>1?l[d-2]>>this.F2:0),x=this.FV/u,h=(1<<this.F1)/u,g=1<<this.F2,y=o.t,b=y-d,m=t??ne();for(l.dlShiftTo(b,m),o.compareTo(m)>=0&&(o[o.t++]=1,o.subTo(m,o)),e.ONE.dlShiftTo(d,m),m.subTo(l,l);l.t<d;)l[l.t++]=0;for(;--b>=0;){var S=o[--y]==p?this.DM:Math.floor(o[y]*x+(o[y-1]+g)*h);if((o[y]+=l.am(0,S,o,b,0,d))<S)for(l.dlShiftTo(b,m),o.subTo(m,o);o[y]<--S;)o.subTo(m,o)}t!=null&&(o.drShiftTo(d,t),s!=f&&e.ZERO.subTo(t,t)),o.t=d,o.clamp(),c>0&&o.rShiftTo(c,o),s<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=ne(),r=ne(),i=t.convert(this),l=jt(n)-1;for(i.copyTo(o);--l>=0;)if(t.sqrTo(o,r),(n&1<<l)>0)t.mulTo(r,i,o);else{var s=o;o=r,r=s}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=Ze(o),i=ne(),l=ne(),s="";for(this.divRemTo(r,i,l);i.signum()>0;)s=(o+l.intValue()).toString(n).substr(1)+s,i.divRemTo(r,i,l);return l.intValue().toString(n)+s},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,l=0,s=0,f=0;f<n.length;++f){var c=k0(n,f);if(c<0){n.charAt(f)=="-"&&this.signum()==0&&(i=!0);continue}s=t*s+c,++l>=o&&(this.dMultiply(r),this.dAddOffset(s,0),l=0,s=0)}l>0&&(this.dMultiply(Math.pow(t,l)),this.dAddOffset(s,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),qt,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,l=Math.min(n.t,this.t);for(r=0;r<l;++r)o[r]=t(this[r],n[r]);if(n.t<this.t){for(i=n.s&this.DM,r=l;r<this.t;++r)o[r]=t(this[r],i);o.t=this.t}else{for(i=this.s&this.DM,r=l;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>Ce.length&&(n=Ce.length);for(var i=ne(),l=0;l<n;++l){i.fromInt(Ce[Math.floor(Math.random()*Ce.length)]);var s=i.modPow(r,this);if(s.compareTo(e.ONE)!=0&&s.compareTo(t)!=0){for(var f=1;f++<o&&s.compareTo(t)!=0;)if(s=s.modPowInt(2,this),s.compareTo(e.ONE)==0)return!1;if(s.compareTo(t)!=0)return!1}}return!0},e.prototype.square=function(){var n=ne();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 l=o.getLowestSetBit(),s=r.getLowestSetBit();if(s<0){t(o);return}l<s&&(s=l),s>0&&(o.rShiftTo(s,o),r.rShiftTo(s,r));var f=function(){(l=o.getLowestSetBit())>0&&o.rShiftTo(l,o),(l=r.getLowestSetBit())>0&&r.rShiftTo(l,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):(s>0&&r.lShiftTo(s,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),qt,this),this.isEven()&&this.dAddOffset(1,0);var i=this,l=function(){i.dAddOffset(2,0),i.bitLength()>n&&i.subTo(e.ONE.shiftLeft(n-1),i),i.isProbablePrime(t)?setTimeout(function(){r()},0):setTimeout(l,0)};setTimeout(l,0)}else{var s=[],f=n&7;s.length=(n>>3)+1,t.nextBytes(s),f>0?s[0]&=(1<<f)-1:s[0]=0,this.fromString(s,256)}},e}(),nl=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}(),S0=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}(),w0=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=ne();return n.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),n.s<0&&t.compareTo(J.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(n){var t=ne();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}(),ol=function(){function e(n){this.m=n,this.r2=ne(),this.q3=ne(),J.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=ne();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 ne(){return new J(null)}function ge(e,n){return new J(e,n)}var C0=typeof navigator<"u";C0&&b0&&navigator.appName=="Microsoft Internet Explorer"?(J.prototype.am=function(n,t,o,r,i,l){for(var s=t&32767,f=t>>15;--l>=0;){var c=this[n]&32767,d=this[n++]>>15,p=f*c+d*s;c=s*c+((p&32767)<<15)+o[r]+(i&1073741823),i=(c>>>30)+(p>>>15)+f*d+(i>>>30),o[r++]=c&1073741823}return i},We=30):C0&&b0&&navigator.appName!="Netscape"?(J.prototype.am=function(n,t,o,r,i,l){for(;--l>=0;){var s=t*this[n++]+o[r]+i;i=Math.floor(s/67108864),o[r++]=s&67108863}return i},We=26):(J.prototype.am=function(n,t,o,r,i,l){for(var s=t&16383,f=t>>14;--l>=0;){var c=this[n]&16383,d=this[n++]>>14,p=f*c+d*s;c=s*c+((p&16383)<<14)+o[r]+i,i=(c>>28)+(p>>14)+f*d,o[r++]=c&268435455}return i},We=28),J.prototype.DB=We,J.prototype.DM=(1<<We)-1,J.prototype.DV=1<<We;var to=52;J.prototype.FV=Math.pow(2,to),J.prototype.F1=to-We,J.prototype.F2=2*We-to;var $t=[],mt,Ne;for(mt="0".charCodeAt(0),Ne=0;Ne<=9;++Ne)$t[mt++]=Ne;for(mt="a".charCodeAt(0),Ne=10;Ne<36;++Ne)$t[mt++]=Ne;for(mt="A".charCodeAt(0),Ne=10;Ne<36;++Ne)$t[mt++]=Ne;function k0(e,n){var t=$t[e.charCodeAt(n)];return t??-1}function Ze(e){var n=ne();return n.fromInt(e),n}function jt(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}J.ZERO=Ze(0),J.ONE=Ze(1);var rl=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 al(){return new rl}var _0=256,Ut,Ke=null,Me;if(Ke==null){Ke=[],Me=0;var Gt=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var no=new Uint32Array(256);for(window.crypto.getRandomValues(no),Gt=0;Gt<no.length;++Gt)Ke[Me++]=no[Gt]&255}var Wt=0,Zt=function(e){if(Wt=Wt||0,Wt>=256||Me>=_0){window.removeEventListener?window.removeEventListener("mousemove",Zt,!1):window.detachEvent&&window.detachEvent("onmousemove",Zt);return}try{var n=e.x+e.y;Ke[Me++]=n&255,Wt+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Zt,!1):window.attachEvent&&window.attachEvent("onmousemove",Zt))}function il(){if(Ut==null){for(Ut=al();Me<_0;){var e=Math.floor(65536*Math.random());Ke[Me++]=e&255}for(Ut.init(Ke),Me=0;Me<Ke.length;++Me)Ke[Me]=0;Me=0}return Ut.next()}var oo=function(){function e(){}return e.prototype.nextBytes=function(n){for(var t=0;t<n.length;++t)n[t]=il()},e}();function sl(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 ge(i,16)}function ll(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 oo,l=[];n>2;){for(l[0]=0;l[0]==0;)i.nextBytes(l);t[--n]=l[0]}return t[--n]=2,t[--n]=0,new J(t)}var cl=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=ge(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=ll(n,t);if(o==null)return null;var r=this.doPublic(o);if(r==null)return null;for(var i=r.toString(16),l=i.length,s=0;s<t*2-l;s++)i="0"+i;return i},e.prototype.setPrivate=function(n,t,o){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=ge(n,16),this.e=parseInt(t,16),this.d=ge(o,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(n,t,o,r,i,l,s,f){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=ge(n,16),this.e=parseInt(t,16),this.d=ge(o,16),this.p=ge(r,16),this.q=ge(i,16),this.dmp1=ge(l,16),this.dmq1=ge(s,16),this.coeff=ge(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,t){var o=new oo,r=n>>1;this.e=parseInt(t,16);for(var i=new J(t,16);;){for(;this.p=new J(n-r,1,o),!(this.p.subtract(J.ONE).gcd(i).compareTo(J.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new J(r,1,o),!(this.q.subtract(J.ONE).gcd(i).compareTo(J.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var l=this.p;this.p=this.q,this.q=l}var s=this.p.subtract(J.ONE),f=this.q.subtract(J.ONE),c=s.multiply(f);if(c.gcd(i).compareTo(J.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(f),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(n){var t=ge(n,16),o=this.doPrivate(t);return o==null?null:fl(o,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,t,o){var r=new oo,i=n>>1;this.e=parseInt(t,16);var l=new J(t,16),s=this,f=function(){var c=function(){if(s.p.compareTo(s.q)<=0){var u=s.p;s.p=s.q,s.q=u}var x=s.p.subtract(J.ONE),h=s.q.subtract(J.ONE),g=x.multiply(h);g.gcd(l).compareTo(J.ONE)==0?(s.n=s.p.multiply(s.q),s.d=l.modInverse(g),s.dmp1=s.d.mod(x),s.dmq1=s.d.mod(h),s.coeff=s.q.modInverse(s.p),setTimeout(function(){o()},0)):setTimeout(f,0)},d=function(){s.q=ne(),s.q.fromNumberAsync(i,1,r,function(){s.q.subtract(J.ONE).gcda(l,function(u){u.compareTo(J.ONE)==0&&s.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(d,0)})})},p=function(){s.p=ne(),s.p.fromNumberAsync(n-i,1,r,function(){s.p.subtract(J.ONE).gcda(l,function(u){u.compareTo(J.ONE)==0&&s.p.isProbablePrime(10)?setTimeout(d,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(f,0)},e.prototype.sign=function(n,t,o){var r=dl(o),i=r+t(n).toString(),l=sl(i,this.n.bitLength()/4);if(l==null)return null;var s=this.doPrivate(l);if(s==null)return null;var f=s.toString(16);return f.length&1?"0"+f:f},e.prototype.verify=function(n,t,o){var r=ge(t,16),i=this.doPublic(r);if(i==null)return null;var l=i.toString(16).replace(/^1f+00/,""),s=ul(l);return s==o(n).toString()},e}();function fl(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 Kt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function dl(e){return Kt[e]||""}function ul(e){for(var n in Kt)if(Kt.hasOwnProperty(n)){var t=Kt[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 a(s){if((s>>24&255)===255){var f=s>>16&255,c=s>>8&255,d=s&255;f===255?(f=0,c===255?(c=0,d===255?d=0:++d):++c):++f,s=0,s+=f<<16,s+=c<<8,s+=d}else s+=1<<24;return s}function i(s){return(s[0]=a(s[0]))===0&&(s[1]=a(s[1])),s}var l=o.Encryptor=o.extend({processBlock:function(s,f){var c=this._cipher,d=c.blockSize,p=this._iv,u=this._counter;p&&(u=this._counter=p.slice(0),this._iv=void 0),i(u);var h=u.slice(0);c.encryptBlock(h,0);for(var g=0;g<d;g++)s[f+g]^=h[g]}});return o.Decryptor=l,o}(),t.mode.CTRGladman})}(Fn)),Fn.exports}var Vn={exports:{}},n0;function Ns(){return n0||(n0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.mode.OFB=function(){var o=t.lib.BlockCipherMode.extend(),a=o.Encryptor=o.extend({processBlock:function(i,l){var s=this._cipher,f=s.blockSize,c=this._iv,d=this._keystream;c&&(d=this._keystream=c.slice(0),this._iv=void 0),s.encryptBlock(d,0);for(var p=0;p<f;p++)i[l+p]^=d[p]}});return o.Decryptor=a,o}(),t.mode.OFB})}(Vn)),Vn.exports}var qn={exports:{}},o0;function Ps(){return o0||(o0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.mode.ECB=function(){var o=t.lib.BlockCipherMode.extend();return o.Encryptor=o.extend({processBlock:function(a,i){this._cipher.encryptBlock(a,i)}}),o.Decryptor=o.extend({processBlock:function(a,i){this._cipher.decryptBlock(a,i)}}),o}(),t.mode.ECB})}(qn)),qn.exports}var Hn={exports:{}},r0;function zs(){return r0||(r0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.pad.AnsiX923={pad:function(o,a){var i=o.sigBytes,l=a*4,s=l-i%l,f=i+s-1;o.clamp(),o.words[f>>>2]|=s<<24-f%4*8,o.sigBytes+=s},unpad:function(o){var a=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=a}},t.pad.Ansix923})}(Hn)),Hn.exports}var $n={exports:{}},a0;function Ms(){return a0||(a0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.pad.Iso10126={pad:function(o,a){var i=a*4,l=i-o.sigBytes%i;o.concat(t.lib.WordArray.random(l-1)).concat(t.lib.WordArray.create([l<<24],1))},unpad:function(o){var a=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=a}},t.pad.Iso10126})}($n)),$n.exports}var jn={exports:{}},i0;function Fs(){return i0||(i0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.pad.Iso97971={pad:function(o,a){o.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(o,a)},unpad:function(o){t.pad.ZeroPadding.unpad(o),o.sigBytes--}},t.pad.Iso97971})}(jn)),jn.exports}var Un={exports:{}},s0;function Vs(){return s0||(s0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.pad.ZeroPadding={pad:function(o,a){var i=a*4;o.clamp(),o.sigBytes+=i-(o.sigBytes%i||i)},unpad:function(o){for(var a=o.words,i=o.sigBytes-1,i=o.sigBytes-1;i>=0;i--)if(a[i>>>2]>>>24-i%4*8&255){o.sigBytes=i+1;break}}},t.pad.ZeroPadding})}(Un)),Un.exports}var Gn={exports:{}},l0;function qs(){return l0||(l0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Gn)),Gn.exports}var Wn={exports:{}},c0;function Hs(){return c0||(c0=1,function(e,n){(function(t,o,a){e.exports=o(re(),Ce())})(te,function(t){return function(o){var a=t,i=a.lib,l=i.CipherParams,s=a.enc,f=s.Hex,c=a.format;c.Hex={stringify:function(d){return d.ciphertext.toString(f)},parse:function(d){var p=f.parse(d);return l.create({ciphertext:p})}}}(),t.format.Hex})}(Wn)),Wn.exports}var Zn={exports:{}},f0;function $s(){return f0||(f0=1,function(e,n){(function(t,o,a){e.exports=o(re(),ut(),ht(),ot(),Ce())})(te,function(t){return function(){var o=t,a=o.lib,i=a.BlockCipher,l=o.algo,s=[],f=[],c=[],d=[],p=[],u=[],h=[],g=[],x=[],y=[];(function(){for(var b=[],v=0;v<256;v++)v<128?b[v]=v<<1:b[v]=v<<1^283;for(var _=0,w=0,v=0;v<256;v++){var k=w^w<<1^w<<2^w<<3^w<<4;k=k>>>8^k&255^99,s[_]=k,f[k]=_;var A=b[_],E=b[A],C=b[E],T=b[k]*257^k*16843008;c[_]=T<<24|T>>>8,d[_]=T<<16|T>>>16,p[_]=T<<8|T>>>24,u[_]=T;var T=C*16843009^E*65537^A*257^_*16843008;h[k]=T<<24|T>>>8,g[k]=T<<16|T>>>16,x[k]=T<<8|T>>>24,y[k]=T,_?(_=A^b[b[b[C^A]]],w^=b[b[w]]):_=w=1}})();var S=[0,1,2,4,8,16,32,64,128,27,54],m=l.AES=i.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var v=this._keyPriorReset=this._key,_=v.words,w=v.sigBytes/4,k=this._nRounds=w+6,A=(k+1)*4,E=this._keySchedule=[],C=0;C<A;C++)C<w?E[C]=_[C]:(b=E[C-1],C%w?w>6&&C%w==4&&(b=s[b>>>24]<<24|s[b>>>16&255]<<16|s[b>>>8&255]<<8|s[b&255]):(b=b<<8|b>>>24,b=s[b>>>24]<<24|s[b>>>16&255]<<16|s[b>>>8&255]<<8|s[b&255],b^=S[C/w|0]<<24),E[C]=E[C-w]^b);for(var T=this._invKeySchedule=[],R=0;R<A;R++){var C=A-R;if(R%4)var b=E[C];else var b=E[C-4];R<4||C<=4?T[R]=b:T[R]=h[s[b>>>24]]^g[s[b>>>16&255]]^x[s[b>>>8&255]]^y[s[b&255]]}}},encryptBlock:function(b,v){this._doCryptBlock(b,v,this._keySchedule,c,d,p,u,s)},decryptBlock:function(b,v){var _=b[v+1];b[v+1]=b[v+3],b[v+3]=_,this._doCryptBlock(b,v,this._invKeySchedule,h,g,x,y,f);var _=b[v+1];b[v+1]=b[v+3],b[v+3]=_},_doCryptBlock:function(b,v,_,w,k,A,E,C){for(var T=this._nRounds,R=b[v]^_[0],B=b[v+1]^_[1],F=b[v+2]^_[2],I=b[v+3]^_[3],$=4,q=1;q<T;q++){var N=w[R>>>24]^k[B>>>16&255]^A[F>>>8&255]^E[I&255]^_[$++],L=w[B>>>24]^k[F>>>16&255]^A[I>>>8&255]^E[R&255]^_[$++],H=w[F>>>24]^k[I>>>16&255]^A[R>>>8&255]^E[B&255]^_[$++],D=w[I>>>24]^k[R>>>16&255]^A[B>>>8&255]^E[F&255]^_[$++];R=N,B=L,F=H,I=D}var N=(C[R>>>24]<<24|C[B>>>16&255]<<16|C[F>>>8&255]<<8|C[I&255])^_[$++],L=(C[B>>>24]<<24|C[F>>>16&255]<<16|C[I>>>8&255]<<8|C[R&255])^_[$++],H=(C[F>>>24]<<24|C[I>>>16&255]<<16|C[R>>>8&255]<<8|C[B&255])^_[$++],D=(C[I>>>24]<<24|C[R>>>16&255]<<16|C[B>>>8&255]<<8|C[F&255])^_[$++];b[v]=N,b[v+1]=L,b[v+2]=H,b[v+3]=D},keySize:256/32});o.AES=i._createHelper(m)}(),t.AES})}(Zn)),Zn.exports}var Kn={exports:{}},d0;function js(){return d0||(d0=1,function(e,n){(function(t,o,a){e.exports=o(re(),ut(),ht(),ot(),Ce())})(te,function(t){return function(){var o=t,a=o.lib,i=a.WordArray,l=a.BlockCipher,s=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],p=[{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=s.DES=l.extend({_doReset:function(){for(var S=this._key,m=S.words,b=[],v=0;v<56;v++){var _=f[v]-1;b[v]=m[_>>>5]>>>31-_%32&1}for(var w=this._subKeys=[],k=0;k<16;k++){for(var A=w[k]=[],E=d[k],v=0;v<24;v++)A[v/6|0]|=b[(c[v]-1+E)%28]<<31-v%6,A[4+(v/6|0)]|=b[28+(c[v+24]-1+E)%28]<<31-v%6;A[0]=A[0]<<1|A[0]>>>31;for(var v=1;v<7;v++)A[v]=A[v]>>>(v-1)*4+3;A[7]=A[7]<<5|A[7]>>>27}for(var C=this._invSubKeys=[],v=0;v<16;v++)C[v]=w[15-v]},encryptBlock:function(S,m){this._doCryptBlock(S,m,this._subKeys)},decryptBlock:function(S,m){this._doCryptBlock(S,m,this._invSubKeys)},_doCryptBlock:function(S,m,b){this._lBlock=S[m],this._rBlock=S[m+1],g.call(this,4,252645135),g.call(this,16,65535),x.call(this,2,858993459),x.call(this,8,16711935),g.call(this,1,1431655765);for(var v=0;v<16;v++){for(var _=b[v],w=this._lBlock,k=this._rBlock,A=0,E=0;E<8;E++)A|=p[E][((k^_[E])&u[E])>>>0];this._lBlock=k,this._rBlock=w^A}var C=this._lBlock;this._lBlock=this._rBlock,this._rBlock=C,g.call(this,1,1431655765),x.call(this,8,16711935),x.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),S[m]=this._lBlock,S[m+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(S,m){var b=(this._lBlock>>>S^this._rBlock)&m;this._rBlock^=b,this._lBlock^=b<<S}function x(S,m){var b=(this._rBlock>>>S^this._lBlock)&m;this._lBlock^=b,this._rBlock^=b<<S}o.DES=l._createHelper(h);var y=s.TripleDES=l.extend({_doReset:function(){var S=this._key,m=S.words;if(m.length!==2&&m.length!==4&&m.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=m.slice(0,2),v=m.length<4?m.slice(0,2):m.slice(2,4),_=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=h.createEncryptor(i.create(b)),this._des2=h.createEncryptor(i.create(v)),this._des3=h.createEncryptor(i.create(_))},encryptBlock:function(S,m){this._des1.encryptBlock(S,m),this._des2.decryptBlock(S,m),this._des3.encryptBlock(S,m)},decryptBlock:function(S,m){this._des3.decryptBlock(S,m),this._des2.encryptBlock(S,m),this._des1.decryptBlock(S,m)},keySize:192/32,ivSize:64/32,blockSize:64/32});o.TripleDES=l._createHelper(y)}(),t.TripleDES})}(Kn)),Kn.exports}var Yn={exports:{}},u0;function Us(){return u0||(u0=1,function(e,n){(function(t,o,a){e.exports=o(re(),ut(),ht(),ot(),Ce())})(te,function(t){return function(){var o=t,a=o.lib,i=a.StreamCipher,l=o.algo,s=l.RC4=i.extend({_doReset:function(){for(var d=this._key,p=d.words,u=d.sigBytes,h=this._S=[],g=0;g<256;g++)h[g]=g;for(var g=0,x=0;g<256;g++){var y=g%u,S=p[y>>>2]>>>24-y%4*8&255;x=(x+h[g]+S)%256;var m=h[g];h[g]=h[x],h[x]=m}this._i=this._j=0},_doProcessBlock:function(d,p){d[p]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var d=this._S,p=this._i,u=this._j,h=0,g=0;g<4;g++){p=(p+1)%256,u=(u+d[p])%256;var x=d[p];d[p]=d[u],d[u]=x,h|=d[(d[p]+d[u])%256]<<24-g*8}return this._i=p,this._j=u,h}o.RC4=i._createHelper(s);var c=l.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)f.call(this)}});o.RC4Drop=i._createHelper(c)}(),t.RC4})}(Yn)),Yn.exports}var Xn={exports:{}},h0;function Gs(){return h0||(h0=1,function(e,n){(function(t,o,a){e.exports=o(re(),ut(),ht(),ot(),Ce())})(te,function(t){return function(){var o=t,a=o.lib,i=a.StreamCipher,l=o.algo,s=[],f=[],c=[],d=l.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 x=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],y=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++)p.call(this);for(var g=0;g<8;g++)y[g]^=x[g+4&7];if(h){var S=h.words,m=S[0],b=S[1],v=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,_=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=v>>>16|_&4294901760,k=_<<16|v&65535;y[0]^=v,y[1]^=w,y[2]^=_,y[3]^=k,y[4]^=v,y[5]^=w,y[6]^=_,y[7]^=k;for(var g=0;g<4;g++)p.call(this)}},_doProcessBlock:function(u,h){var g=this._X;p.call(this),s[0]=g[0]^g[5]>>>16^g[3]<<16,s[1]=g[2]^g[7]>>>16^g[5]<<16,s[2]=g[4]^g[1]>>>16^g[7]<<16,s[3]=g[6]^g[3]>>>16^g[1]<<16;for(var x=0;x<4;x++)s[x]=(s[x]<<8|s[x]>>>24)&16711935|(s[x]<<24|s[x]>>>8)&4278255360,u[h+x]^=s[x]},blockSize:128/32,ivSize:64/32});function p(){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 x=u[g]+h[g],y=x&65535,S=x>>>16,m=((y*y>>>17)+y*S>>>15)+S*S,b=((x&4294901760)*x|0)+((x&65535)*x|0);c[g]=m^b}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})}(Xn)),Xn.exports}var Jn={exports:{}},x0;function Ws(){return x0||(x0=1,function(e,n){(function(t,o,a){e.exports=o(re(),ut(),ht(),ot(),Ce())})(te,function(t){return function(){var o=t,a=o.lib,i=a.StreamCipher,l=o.algo,s=[],f=[],c=[],d=l.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],x=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 y=0;y<4;y++)p.call(this);for(var y=0;y<8;y++)x[y]^=g[y+4&7];if(h){var S=h.words,m=S[0],b=S[1],v=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,_=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=v>>>16|_&4294901760,k=_<<16|v&65535;x[0]^=v,x[1]^=w,x[2]^=_,x[3]^=k,x[4]^=v,x[5]^=w,x[6]^=_,x[7]^=k;for(var y=0;y<4;y++)p.call(this)}},_doProcessBlock:function(u,h){var g=this._X;p.call(this),s[0]=g[0]^g[5]>>>16^g[3]<<16,s[1]=g[2]^g[7]>>>16^g[5]<<16,s[2]=g[4]^g[1]>>>16^g[7]<<16,s[3]=g[6]^g[3]>>>16^g[1]<<16;for(var x=0;x<4;x++)s[x]=(s[x]<<8|s[x]>>>24)&16711935|(s[x]<<24|s[x]>>>8)&4278255360,u[h+x]^=s[x]},blockSize:128/32,ivSize:64/32});function p(){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 x=u[g]+h[g],y=x&65535,S=x>>>16,m=((y*y>>>17)+y*S>>>15)+S*S,b=((x&4294901760)*x|0)+((x&65535)*x|0);c[g]=m^b}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})}(Jn)),Jn.exports}(function(e,n){(function(t,o,a){e.exports=o(re(),qt(),ks(),_s(),ut(),As(),ht(),_n(),Hr(),Es(),Ur(),Ts(),Bs(),Ds(),Ln(),Rs(),ot(),Ce(),Is(),Ls(),Os(),Ns(),Ps(),zs(),Ms(),Fs(),Vs(),qs(),Hs(),$s(),js(),Us(),Gs(),Ws())})(te,function(t){return t})})(Ir);var Zs=Ir.exports;const Ie=bs(Zs);var Ks="0123456789abcdefghijklmnopqrstuvwxyz";function Ue(e){return Ks.charAt(e)}function Ys(e,n){return e&n}function Ht(e,n){return e|n}function g0(e,n){return e^n}function m0(e,n){return e&~n}function Xs(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 Js(e){for(var n=0;e!=0;)e&=e-1,++n;return n}var xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p0="=";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+=xt.charAt(t>>6)+xt.charAt(t&63);for(n+1==e.length?(t=parseInt(e.substring(n,n+1),16),o+=xt.charAt(t<<2)):n+2==e.length&&(t=parseInt(e.substring(n,n+2),16),o+=xt.charAt(t>>2)+xt.charAt((t&3)<<4));(o.length&3)>0;)o+=p0;return o}function y0(e){var n="",t,o=0,a=0;for(t=0;t<e.length&&e.charAt(t)!=p0;++t){var i=xt.indexOf(e.charAt(t));i<0||(o==0?(n+=Ue(i>>2),a=i&3,o=1):o==1?(n+=Ue(a<<2|i>>4),a=i&15,o=2):o==2?(n+=Ue(a),n+=Ue(i>>2),a=i&3,o=3):(n+=Ue(a<<2|i>>4),n+=Ue(i&15),o=0))}return o==1&&(n+=Ue(a<<2)),n}var gt,Qs={decode:function(e){var n;if(gt===void 0){var t="0123456789ABCDEF",o=` \f
72
+ \r  \u2028\u2029`;for(gt={},n=0;n<16;++n)gt[t.charAt(n)]=n;for(t=t.toLowerCase(),n=10;n<16;++n)gt[t.charAt(n)]=n;for(n=0;n<o.length;++n)gt[o.charAt(n)]=-1}var a=[],i=0,l=0;for(n=0;n<e.length;++n){var s=e.charAt(n);if(s=="=")break;if(s=gt[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+n);i|=s,++l>=2?(a[a.length]=i,i=0,l=0):i<<=4}}if(l)throw new Error("Hex encoding incomplete: 4 bits missing");return a}},rt,Qn={decode:function(e){var n;if(rt===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=`= \f
73
+ \r  \u2028\u2029`;for(rt=Object.create(null),n=0;n<64;++n)rt[t.charAt(n)]=n;for(rt["-"]=62,rt._=63,n=0;n<o.length;++n)rt[o.charAt(n)]=-1}var a=[],i=0,l=0;for(n=0;n<e.length;++n){var s=e.charAt(n);if(s=="=")break;if(s=rt[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+n);i|=s,++l>=4?(a[a.length]=i>>16,a[a.length]=i>>8&255,a[a.length]=i&255,i=0,l=0):i<<=6}}switch(l){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:a[a.length]=i>>10;break;case 3:a[a.length]=i>>16,a[a.length]=i>>8&255;break}return a},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var n=Qn.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 Qn.decode(e)}},mt=1e13,Rt=function(){function e(n){this.buf=[+n||0]}return e.prototype.mulAdd=function(n,t){var o=this.buf,a=o.length,i,l;for(i=0;i<a;++i)l=o[i]*n+t,l<mt?t=0:(t=0|l/mt,l-=t*mt),o[i]=l;t>0&&(o[i]=t)},e.prototype.sub=function(n){var t=this.buf,o=t.length,a,i;for(a=0;a<o;++a)i=t[a]-n,i<0?(i+=mt,n=1):n=0,t[a]=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(),a=t.length-2;a>=0;--a)o+=(mt+t[a]).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*mt+n[o];return t},e.prototype.simplify=function(){var n=this.buf;return n.length==1?n[0]:this},e}(),v0="…",el=/^(\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)?)?$/,tl=/^(\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 pt(e,n){return e.length>n&&(e=e.substring(0,n)+v0),e}var eo=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 a="",i=n;i<t;++i)if(a+=this.hexByte(this.get(i)),o!==!0)switch(i&15){case 7:a+=" ";break;case 15:a+=`
74
+ `;break;default:a+=" "}return a},e.prototype.isASCII=function(n,t){for(var o=n;o<t;++o){var a=this.get(o);if(a<32||a>176)return!1}return!0},e.prototype.parseStringISO=function(n,t){for(var o="",a=n;a<t;++a)o+=String.fromCharCode(this.get(a));return o},e.prototype.parseStringUTF=function(n,t){for(var o="",a=n;a<t;){var i=this.get(a++);i<128?o+=String.fromCharCode(i):i>191&&i<224?o+=String.fromCharCode((i&31)<<6|this.get(a++)&63):o+=String.fromCharCode((i&15)<<12|(this.get(a++)&63)<<6|this.get(a++)&63)}return o},e.prototype.parseStringBMP=function(n,t){for(var o="",a,i,l=n;l<t;)a=this.get(l++),i=this.get(l++),o+=String.fromCharCode(a<<8|i);return o},e.prototype.parseTime=function(n,t,o){var a=this.parseStringISO(n,t),i=(o?el:tl).exec(a);return i?(o&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),a=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(a+=":"+i[5],i[6]&&(a+=":"+i[6],i[7]&&(a+="."+i[7]))),i[8]&&(a+=" UTC",i[8]!="Z"&&(a+=i[8],i[9]&&(a+=":"+i[9]))),a):"Unrecognized time: "+a},e.prototype.parseInteger=function(n,t){for(var o=this.get(n),a=o>127,i=a?255:0,l,s="";o==i&&++n<t;)o=this.get(n);if(l=t-n,l===0)return a?-1:0;if(l>4){for(s=o,l<<=3;!((+s^i)&128);)s=+s<<1,--l;s="("+l+` bit)
75
+ `}a&&(o=o-256);for(var f=new Rt(o),c=n+1;c<t;++c)f.mulAdd(256,this.get(c));return s+f.toString()},e.prototype.parseBitString=function(n,t,o){for(var a=this.get(n),i=(t-n-1<<3)-a,l="("+i+` bit)
76
+ `,s="",f=n+1;f<t;++f){for(var c=this.get(f),d=f==t-1?a:0,p=7;p>=d;--p)s+=c>>p&1?"1":"0";if(s.length>o)return l+pt(s,o)}return l+s},e.prototype.parseOctetString=function(n,t,o){if(this.isASCII(n,t))return pt(this.parseStringISO(n,t),o);var a=t-n,i="("+a+` byte)
77
+ `;o/=2,a>o&&(t=n+o);for(var l=n;l<t;++l)i+=this.hexByte(this.get(l));return a>o&&(i+=v0),i},e.prototype.parseOID=function(n,t,o){for(var a="",i=new Rt,l=0,s=n;s<t;++s){var f=this.get(s);if(i.mulAdd(128,f&127),l+=7,!(f&128)){if(a==="")if(i=i.simplify(),i instanceof Rt)i.sub(80),a="2."+i.toString();else{var c=i<80?i<40?0:1:2;a=c+"."+(i-c*40)}else a+="."+i.toString();if(a.length>o)return pt(a,o);i=new Rt,l=0}}return l>0&&(a+=".incomplete"),a},e}(),nl=function(){function e(n,t,o,a,i){if(!(a instanceof b0))throw new Error("Invalid tag value.");this.stream=n,this.header=t,this.length=o,this.tag=a,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 pt(this.stream.parseStringUTF(t,t+o),n);case 18:case 19:case 20:case 21:case 22:case 26:return pt(this.stream.parseStringISO(t,t+o),n);case 30:return pt(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,a=this.sub.length;o<a;++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 a=0;a<o;++a)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 eo?t=n:t=new eo(n,0);var o=new eo(t),a=new b0(t),i=e.decodeLength(t),l=t.pos,s=l-o.pos,f=null,c=function(){var p=[];if(i!==null){for(var u=l+i;t.pos<u;)p[p.length]=e.decode(t);if(t.pos!=u)throw new Error("Content size is not correct for container starting at offset "+l)}else try{for(;;){var h=e.decode(t);if(h.tag.isEOC())break;p[p.length]=h}i=l-t.pos}catch(g){throw new Error("Exception while decoding undefined length content: "+g)}return p};if(a.tagConstructed)f=c();else if(a.isUniversal()&&(a.tagNumber==3||a.tagNumber==4))try{if(a.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 "+l);t.pos=l+Math.abs(i)}return new e(o,s,i,a,f)},e}(),b0=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 Rt;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}(),Ke,ol=0xdeadbeefcafe,S0=(ol&16777215)==15715070,Ae=[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],rl=(1<<26)/Ae[Ae.length-1],J=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,a,i=!1,l="",s=this.t,f=this.DB-s*this.DB%t;if(s-- >0)for(f<this.DB&&(a=this[s]>>f)>0&&(i=!0,l=Ue(a));s>=0;)f<t?(a=(this[s]&(1<<f)-1)<<t-f,a|=this[--s]>>(f+=this.DB-t)):(a=this[s]>>(f-=t)&o,f<=0&&(f+=this.DB,--s)),a>0&&(i=!0),i&&(l+=Ue(a));return i?l:"0"},e.prototype.negate=function(){var n=oe();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)+Ut(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(n){var t=oe();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 w0(t):o=new C0(t),this.exp(n,o)},e.prototype.clone=function(){var n=oe();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,a,i=0;if(n-- >0)for(o<this.DB&&(a=this[n]>>o)!=(this.s&this.DM)>>o&&(t[i++]=a|this.s<<this.DB-o);n>=0;)o<8?(a=(this[n]&(1<<o)-1)<<8-o,a|=this[--n]>>(o+=this.DB-8)):(a=this[n]>>(o-=8)&255,o<=0&&(o+=this.DB,--n)),a&128&&(a|=-256),i==0&&(this.s&128)!=(a&128)&&++i,(i>0||a!=this.s)&&(t[i++]=a);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=oe();return this.bitwiseTo(n,Ys,t),t},e.prototype.or=function(n){var t=oe();return this.bitwiseTo(n,Ht,t),t},e.prototype.xor=function(n){var t=oe();return this.bitwiseTo(n,g0,t),t},e.prototype.andNot=function(n){var t=oe();return this.bitwiseTo(n,m0,t),t},e.prototype.not=function(){for(var n=oe(),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=oe();return n<0?this.rShiftTo(-n,t):this.lShiftTo(n,t),t},e.prototype.shiftRight=function(n){var t=oe();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+Xs(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+=Js(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,Ht)},e.prototype.clearBit=function(n){return this.changeBit(n,m0)},e.prototype.flipBit=function(n){return this.changeBit(n,g0)},e.prototype.add=function(n){var t=oe();return this.addTo(n,t),t},e.prototype.subtract=function(n){var t=oe();return this.subTo(n,t),t},e.prototype.multiply=function(n){var t=oe();return this.multiplyTo(n,t),t},e.prototype.divide=function(n){var t=oe();return this.divRemTo(n,t,null),t},e.prototype.remainder=function(n){var t=oe();return this.divRemTo(n,null,t),t},e.prototype.divideAndRemainder=function(n){var t=oe(),o=oe();return this.divRemTo(n,t,o),[t,o]},e.prototype.modPow=function(n,t){var o=n.bitLength(),a,i=Ye(1),l;if(o<=0)return i;o<18?a=1:o<48?a=3:o<144?a=4:o<768?a=5:a=6,o<8?l=new w0(t):t.isEven()?l=new il(t):l=new C0(t);var s=[],f=3,c=a-1,d=(1<<a)-1;if(s[1]=l.convert(this),a>1){var p=oe();for(l.sqrTo(s[1],p);f<=d;)s[f]=oe(),l.mulTo(p,s[f-2],s[f]),f+=2}var u=n.t-1,h,g=!0,x=oe(),y;for(o=Ut(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=a;!(h&1);)h>>=1,--f;if((o-=f)<0&&(o+=this.DB,--u),g)s[h].copyTo(i),g=!1;else{for(;f>1;)l.sqrTo(i,x),l.sqrTo(x,i),f-=2;f>0?l.sqrTo(i,x):(y=i,i=x,x=y),l.mulTo(x,s[h],i)}for(;u>=0&&!(n[u]&1<<o);)l.sqrTo(i,x),y=i,i=x,x=y,--o<0&&(o=this.DB-1,--u)}return l.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(),a=this.clone(),i=Ye(1),l=Ye(0),s=Ye(0),f=Ye(1);o.signum()!=0;){for(;o.isEven();)o.rShiftTo(1,o),t?((!i.isEven()||!l.isEven())&&(i.addTo(this,i),l.subTo(n,l)),i.rShiftTo(1,i)):l.isEven()||l.subTo(n,l),l.rShiftTo(1,l);for(;a.isEven();)a.rShiftTo(1,a),t?((!s.isEven()||!f.isEven())&&(s.addTo(this,s),f.subTo(n,f)),s.rShiftTo(1,s)):f.isEven()||f.subTo(n,f),f.rShiftTo(1,f);o.compareTo(a)>=0?(o.subTo(a,o),t&&i.subTo(s,i),l.subTo(f,l)):(a.subTo(o,a),t&&s.subTo(i,s),f.subTo(l,f))}if(a.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 al)},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 a=t;t=o,o=a}var i=t.getLowestSetBit(),l=o.getLowestSetBit();if(l<0)return t;for(i<l&&(l=i),l>0&&(t.rShiftTo(l,t),o.rShiftTo(l,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 l>0&&o.lShiftTo(l,o),o},e.prototype.isProbablePrime=function(n){var t,o=this.abs();if(o.t==1&&o[0]<=Ae[Ae.length-1]){for(t=0;t<Ae.length;++t)if(o[0]==Ae[t])return!0;return!1}if(o.isEven())return!1;for(t=1;t<Ae.length;){for(var a=Ae[t],i=t+1;i<Ae.length&&a<rl;)a*=Ae[i++];for(a=o.modInt(a);t<i;)if(a%Ae[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 a=n.length,i=!1,l=0;--a>=0;){var s=o==8?+n[a]&255:_0(n,a);if(s<0){n.charAt(a)=="-"&&(i=!0);continue}i=!1,l==0?this[this.t++]=s:l+o>this.DB?(this[this.t-1]|=(s&(1<<this.DB-l)-1)<<l,this[this.t++]=s>>this.DB-l):this[this.t-1]|=s<<l,l+=o,l>=this.DB&&(l-=this.DB)}o==8&&+n[0]&128&&(this.s=-1,l>0&&(this[this.t-1]|=(1<<this.DB-l)-1<<l)),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,a=this.DB-o,i=(1<<a)-1,l=Math.floor(n/this.DB),s=this.s<<o&this.DM,f=this.t-1;f>=0;--f)t[f+l+1]=this[f]>>a|s,s=(this[f]&i)<<o;for(var f=l-1;f>=0;--f)t[f]=0;t[l]=s,t.t=this.t+l+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 a=n%this.DB,i=this.DB-a,l=(1<<a)-1;t[0]=this[o]>>a;for(var s=o+1;s<this.t;++s)t[s-o-1]|=(this[s]&l)<<i,t[s-o]=this[s]>>a;a>0&&(t[this.t-o-1]|=(this.s&l)<<i),t.t=this.t-o,t.clamp()},e.prototype.subTo=function(n,t){for(var o=0,a=0,i=Math.min(n.t,this.t);o<i;)a+=this[o]-n[o],t[o++]=a&this.DM,a>>=this.DB;if(n.t<this.t){for(a-=n.s;o<this.t;)a+=this[o],t[o++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;o<n.t;)a-=n[o],t[o++]=a&this.DM,a>>=this.DB;a-=n.s}t.s=a<0?-1:0,a<-1?t[o++]=this.DV+a:a>0&&(t[o++]=a),t.t=o,t.clamp()},e.prototype.multiplyTo=function(n,t){var o=this.abs(),a=n.abs(),i=o.t;for(t.t=i+a.t;--i>=0;)t[i]=0;for(i=0;i<a.t;++i)t[i+o.t]=o.am(0,a[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 a=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,a,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 a=n.abs();if(!(a.t<=0)){var i=this.abs();if(i.t<a.t){t!=null&&t.fromInt(0),o!=null&&this.copyTo(o);return}o==null&&(o=oe());var l=oe(),s=this.s,f=n.s,c=this.DB-Ut(a[a.t-1]);c>0?(a.lShiftTo(c,l),i.lShiftTo(c,o)):(a.copyTo(l),i.copyTo(o));var d=l.t,p=l[d-1];if(p!=0){var u=p*(1<<this.F1)+(d>1?l[d-2]>>this.F2:0),h=this.FV/u,g=(1<<this.F1)/u,x=1<<this.F2,y=o.t,S=y-d,m=t??oe();for(l.dlShiftTo(S,m),o.compareTo(m)>=0&&(o[o.t++]=1,o.subTo(m,o)),e.ONE.dlShiftTo(d,m),m.subTo(l,l);l.t<d;)l[l.t++]=0;for(;--S>=0;){var b=o[--y]==p?this.DM:Math.floor(o[y]*h+(o[y-1]+x)*g);if((o[y]+=l.am(0,b,o,S,0,d))<b)for(l.dlShiftTo(S,m),o.subTo(m,o);o[y]<--b;)o.subTo(m,o)}t!=null&&(o.drShiftTo(d,t),s!=f&&e.ZERO.subTo(t,t)),o.t=d,o.clamp(),c>0&&o.rShiftTo(c,o),s<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=oe(),a=oe(),i=t.convert(this),l=Ut(n)-1;for(i.copyTo(o);--l>=0;)if(t.sqrTo(o,a),(n&1<<l)>0)t.mulTo(a,i,o);else{var s=o;o=a,a=s}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),a=Ye(o),i=oe(),l=oe(),s="";for(this.divRemTo(a,i,l);i.signum()>0;)s=(o+l.intValue()).toString(n).substr(1)+s,i.divRemTo(a,i,l);return l.intValue().toString(n)+s},e.prototype.fromRadix=function(n,t){this.fromInt(0),t==null&&(t=10);for(var o=this.chunkSize(t),a=Math.pow(t,o),i=!1,l=0,s=0,f=0;f<n.length;++f){var c=_0(n,f);if(c<0){n.charAt(f)=="-"&&this.signum()==0&&(i=!0);continue}s=t*s+c,++l>=o&&(this.dMultiply(a),this.dAddOffset(s,0),l=0,s=0)}l>0&&(this.dMultiply(Math.pow(t,l)),this.dAddOffset(s,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),Ht,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 a=[],i=n&7;a.length=(n>>3)+1,t.nextBytes(a),i>0?a[0]&=(1<<i)-1:a[0]=0,this.fromString(a,256)}},e.prototype.bitwiseTo=function(n,t,o){var a,i,l=Math.min(n.t,this.t);for(a=0;a<l;++a)o[a]=t(this[a],n[a]);if(n.t<this.t){for(i=n.s&this.DM,a=l;a<this.t;++a)o[a]=t(this[a],i);o.t=this.t}else{for(i=this.s&this.DM,a=l;a<n.t;++a)o[a]=t(i,n[a]);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,a=0,i=Math.min(n.t,this.t);o<i;)a+=this[o]+n[o],t[o++]=a&this.DM,a>>=this.DB;if(n.t<this.t){for(a+=n.s;o<this.t;)a+=this[o],t[o++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;o<n.t;)a+=n[o],t[o++]=a&this.DM,a>>=this.DB;a+=n.s}t.s=a<0?-1:0,a>0?t[o++]=a:a<-1&&(t[o++]=this.DV+a),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 a=Math.min(this.t+n.t,t);for(o.s=0,o.t=a;a>0;)o[--a]=0;for(var i=o.t-this.t;a<i;++a)o[a+this.t]=this.am(0,n[a],o,a,0,this.t);for(var i=Math.min(n.t,t);a<i;++a)this.am(0,n[a],o,a,0,t-a);o.clamp()},e.prototype.multiplyUpperTo=function(n,t,o){--t;var a=o.t=this.t+n.t-t;for(o.s=0;--a>=0;)o[a]=0;for(a=Math.max(t-this.t,0);a<n.t;++a)o[this.t+a-t]=this.am(t-a,n[a],o,0,0,this.t+a-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 a=this.t-1;a>=0;--a)o=(t*o+this[a])%n;return o},e.prototype.millerRabin=function(n){var t=this.subtract(e.ONE),o=t.getLowestSetBit();if(o<=0)return!1;var a=t.shiftRight(o);n=n+1>>1,n>Ae.length&&(n=Ae.length);for(var i=oe(),l=0;l<n;++l){i.fromInt(Ae[Math.floor(Math.random()*Ae.length)]);var s=i.modPow(a,this);if(s.compareTo(e.ONE)!=0&&s.compareTo(t)!=0){for(var f=1;f++<o&&s.compareTo(t)!=0;)if(s=s.modPowInt(2,this),s.compareTo(e.ONE)==0)return!1;if(s.compareTo(t)!=0)return!1}}return!0},e.prototype.square=function(){var n=oe();return this.squareTo(n),n},e.prototype.gcda=function(n,t){var o=this.s<0?this.negate():this.clone(),a=n.s<0?n.negate():n.clone();if(o.compareTo(a)<0){var i=o;o=a,a=i}var l=o.getLowestSetBit(),s=a.getLowestSetBit();if(s<0){t(o);return}l<s&&(s=l),s>0&&(o.rShiftTo(s,o),a.rShiftTo(s,a));var f=function(){(l=o.getLowestSetBit())>0&&o.rShiftTo(l,o),(l=a.getLowestSetBit())>0&&a.rShiftTo(l,a),o.compareTo(a)>=0?(o.subTo(a,o),o.rShiftTo(1,o)):(a.subTo(o,a),a.rShiftTo(1,a)),o.signum()>0?setTimeout(f,0):(s>0&&a.lShiftTo(s,a),setTimeout(function(){t(a)},0))};setTimeout(f,10)},e.prototype.fromNumberAsync=function(n,t,o,a){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),Ht,this),this.isEven()&&this.dAddOffset(1,0);var i=this,l=function(){i.dAddOffset(2,0),i.bitLength()>n&&i.subTo(e.ONE.shiftLeft(n-1),i),i.isProbablePrime(t)?setTimeout(function(){a()},0):setTimeout(l,0)};setTimeout(l,0)}else{var s=[],f=n&7;s.length=(n>>3)+1,t.nextBytes(s),f>0?s[0]&=(1<<f)-1:s[0]=0,this.fromString(s,256)}},e}(),al=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}(),w0=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}(),C0=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=oe();return n.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),n.s<0&&t.compareTo(J.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(n){var t=oe();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,a=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,a,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}(),il=function(){function e(n){this.m=n,this.r2=oe(),this.q3=oe(),J.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=oe();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 oe(){return new J(null)}function ge(e,n){return new J(e,n)}var k0=typeof navigator<"u";k0&&S0&&navigator.appName=="Microsoft Internet Explorer"?(J.prototype.am=function(n,t,o,a,i,l){for(var s=t&32767,f=t>>15;--l>=0;){var c=this[n]&32767,d=this[n++]>>15,p=f*c+d*s;c=s*c+((p&32767)<<15)+o[a]+(i&1073741823),i=(c>>>30)+(p>>>15)+f*d+(i>>>30),o[a++]=c&1073741823}return i},Ke=30):k0&&S0&&navigator.appName!="Netscape"?(J.prototype.am=function(n,t,o,a,i,l){for(;--l>=0;){var s=t*this[n++]+o[a]+i;i=Math.floor(s/67108864),o[a++]=s&67108863}return i},Ke=26):(J.prototype.am=function(n,t,o,a,i,l){for(var s=t&16383,f=t>>14;--l>=0;){var c=this[n]&16383,d=this[n++]>>14,p=f*c+d*s;c=s*c+((p&16383)<<14)+o[a]+i,i=(c>>28)+(p>>14)+f*d,o[a++]=c&268435455}return i},Ke=28),J.prototype.DB=Ke,J.prototype.DM=(1<<Ke)-1,J.prototype.DV=1<<Ke;var to=52;J.prototype.FV=Math.pow(2,to),J.prototype.F1=to-Ke,J.prototype.F2=2*Ke-to;var jt=[],yt,Pe;for(yt="0".charCodeAt(0),Pe=0;Pe<=9;++Pe)jt[yt++]=Pe;for(yt="a".charCodeAt(0),Pe=10;Pe<36;++Pe)jt[yt++]=Pe;for(yt="A".charCodeAt(0),Pe=10;Pe<36;++Pe)jt[yt++]=Pe;function _0(e,n){var t=jt[e.charCodeAt(n)];return t??-1}function Ye(e){var n=oe();return n.fromInt(e),n}function Ut(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}J.ZERO=Ye(0),J.ONE=Ye(1);var sl=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(n){var t,o,a;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,a=this.S[t],this.S[t]=this.S[o],this.S[o]=a;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 ll(){return new sl}var A0=256,Gt,Xe=null,Fe;if(Xe==null){Xe=[],Fe=0;var Wt=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var no=new Uint32Array(256);for(window.crypto.getRandomValues(no),Wt=0;Wt<no.length;++Wt)Xe[Fe++]=no[Wt]&255}var Zt=0,Kt=function(e){if(Zt=Zt||0,Zt>=256||Fe>=A0){window.removeEventListener?window.removeEventListener("mousemove",Kt,!1):window.detachEvent&&window.detachEvent("onmousemove",Kt);return}try{var n=e.x+e.y;Xe[Fe++]=n&255,Zt+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Kt,!1):window.attachEvent&&window.attachEvent("onmousemove",Kt))}function cl(){if(Gt==null){for(Gt=ll();Fe<A0;){var e=Math.floor(65536*Math.random());Xe[Fe++]=e&255}for(Gt.init(Xe),Fe=0;Fe<Xe.length;++Fe)Xe[Fe]=0;Fe=0}return Gt.next()}var oo=function(){function e(){}return e.prototype.nextBytes=function(n){for(var t=0;t<n.length;++t)n[t]=cl()},e}();function fl(e,n){if(n<e.length+22)return console.error("Message too long for RSA"),null;for(var t=n-e.length-6,o="",a=0;a<t;a+=2)o+="ff";var i="0001"+o+"00"+e;return ge(i,16)}function dl(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 a=e.charCodeAt(o--);a<128?t[--n]=a:a>127&&a<2048?(t[--n]=a&63|128,t[--n]=a>>6|192):(t[--n]=a&63|128,t[--n]=a>>6&63|128,t[--n]=a>>12|224)}t[--n]=0;for(var i=new oo,l=[];n>2;){for(l[0]=0;l[0]==0;)i.nextBytes(l);t[--n]=l[0]}return t[--n]=2,t[--n]=0,new J(t)}var ul=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=ge(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=dl(n,t);if(o==null)return null;var a=this.doPublic(o);if(a==null)return null;for(var i=a.toString(16),l=i.length,s=0;s<t*2-l;s++)i="0"+i;return i},e.prototype.setPrivate=function(n,t,o){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=ge(n,16),this.e=parseInt(t,16),this.d=ge(o,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(n,t,o,a,i,l,s,f){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=ge(n,16),this.e=parseInt(t,16),this.d=ge(o,16),this.p=ge(a,16),this.q=ge(i,16),this.dmp1=ge(l,16),this.dmq1=ge(s,16),this.coeff=ge(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,t){var o=new oo,a=n>>1;this.e=parseInt(t,16);for(var i=new J(t,16);;){for(;this.p=new J(n-a,1,o),!(this.p.subtract(J.ONE).gcd(i).compareTo(J.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new J(a,1,o),!(this.q.subtract(J.ONE).gcd(i).compareTo(J.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var l=this.p;this.p=this.q,this.q=l}var s=this.p.subtract(J.ONE),f=this.q.subtract(J.ONE),c=s.multiply(f);if(c.gcd(i).compareTo(J.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(f),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(n){var t=ge(n,16),o=this.doPrivate(t);return o==null?null:hl(o,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,t,o){var a=new oo,i=n>>1;this.e=parseInt(t,16);var l=new J(t,16),s=this,f=function(){var c=function(){if(s.p.compareTo(s.q)<=0){var u=s.p;s.p=s.q,s.q=u}var h=s.p.subtract(J.ONE),g=s.q.subtract(J.ONE),x=h.multiply(g);x.gcd(l).compareTo(J.ONE)==0?(s.n=s.p.multiply(s.q),s.d=l.modInverse(x),s.dmp1=s.d.mod(h),s.dmq1=s.d.mod(g),s.coeff=s.q.modInverse(s.p),setTimeout(function(){o()},0)):setTimeout(f,0)},d=function(){s.q=oe(),s.q.fromNumberAsync(i,1,a,function(){s.q.subtract(J.ONE).gcda(l,function(u){u.compareTo(J.ONE)==0&&s.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(d,0)})})},p=function(){s.p=oe(),s.p.fromNumberAsync(n-i,1,a,function(){s.p.subtract(J.ONE).gcda(l,function(u){u.compareTo(J.ONE)==0&&s.p.isProbablePrime(10)?setTimeout(d,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(f,0)},e.prototype.sign=function(n,t,o){var a=xl(o),i=a+t(n).toString(),l=fl(i,this.n.bitLength()/4);if(l==null)return null;var s=this.doPrivate(l);if(s==null)return null;var f=s.toString(16);return f.length&1?"0"+f:f},e.prototype.verify=function(n,t,o){var a=ge(t,16),i=this.doPublic(a);if(i==null)return null;var l=i.toString(16).replace(/^1f+00/,""),s=gl(l);return s==o(n).toString()},e}();function hl(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 a="";++o<t.length;){var i=t[o]&255;i<128?a+=String.fromCharCode(i):i>191&&i<224?(a+=String.fromCharCode((i&31)<<6|t[o+1]&63),++o):(a+=String.fromCharCode((i&15)<<12|(t[o+1]&63)<<6|t[o+2]&63),o+=2)}return a}var Yt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function xl(e){return Yt[e]||""}function gl(e){for(var n in Yt)if(Yt.hasOwnProperty(n)){var t=Yt[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
82
82
  version: 2.9.0
83
- */var me={};me.lang={extend:function(e,n,t){if(!n||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var o=function(){};if(o.prototype=n.prototype,e.prototype=new o,e.prototype.constructor=e,e.superclass=n.prototype,n.prototype.constructor==Object.prototype.constructor&&(n.prototype.constructor=n),t){var r;for(r in t)e.prototype[r]=t[r];var i=function(){},l=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(s,f){for(r=0;r<l.length;r=r+1){var c=l[r],d=f[c];typeof d=="function"&&d!=Object.prototype[c]&&(s[c]=d)}})}catch{}i(e.prototype,t)}}};/**
83
+ */var me={};me.lang={extend:function(e,n,t){if(!n||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var o=function(){};if(o.prototype=n.prototype,e.prototype=new o,e.prototype.constructor=e,e.superclass=n.prototype,n.prototype.constructor==Object.prototype.constructor&&(n.prototype.constructor=n),t){var a;for(a in t)e.prototype[a]=t[a];var i=function(){},l=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(s,f){for(a=0;a<l.length;a=a+1){var c=l[a],d=f[c];typeof d=="function"&&d!=Object.prototype[c]&&(s[c]=d)}})}catch{}i(e.prototype,t)}}};/**
84
84
  * @fileOverview
85
85
  * @name asn1-1.0.js
86
86
  * @author Kenji Urushima kenji.urushima@gmail.com
87
87
  * @version asn1 1.0.13 (2017-Jun-02)
88
88
  * @since jsrsasign 2.1
89
89
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
90
- */var V={};(typeof V.asn1>"u"||!V.asn1)&&(V.asn1={}),V.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 l=new J(r,16),s=l.xor(e).add(J.ONE);n=s.toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var n=V,t=n.asn1,o=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,l=t.DEROctetString,s=t.DERNull,f=t.DERObjectIdentifier,c=t.DEREnumerated,d=t.DERUTF8String,p=t.DERNumericString,u=t.DERPrintableString,x=t.DERTeletexString,h=t.DERIA5String,g=t.DERUTCTime,y=t.DERGeneralizedTime,b=t.DERSequence,m=t.DERSet,S=t.DERTaggedObject,v=t.ASN1Util.newObject,_=Object.keys(e);if(_.length!=1)throw"key of param shall be only one.";var w=_[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 l(e[w]);if(w=="null")return new s(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 p(e[w]);if(w=="prnstr")return new u(e[w]);if(w=="telstr")return new x(e[w]);if(w=="ia5str")return new h(e[w]);if(w=="utctime")return new g(e[w]);if(w=="gentime")return new y(e[w]);if(w=="seq"){for(var k=e[w],A=[],E=0;E<k.length;E++){var C=v(k[E]);A.push(C)}return new b({array:A})}if(w=="set"){for(var k=e[w],A=[],E=0;E<k.length;E++){var C=v(k[E]);A.push(C)}return new m({array:A})}if(w=="tag"){var T=e[w];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var R=v(T[2]);return new S({tag:T[0],explicit:T[1],obj:R})}else{var B={};if(T.explicit!==void 0&&(B.explicit=T.explicit),T.tag!==void 0&&(B.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return B.obj=v(T.obj),new S(B)}}},this.jsonToASN1HEX=function(e){var n=this.newObject(e);return n.getEncodedHex()}},V.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="",l=2;l<e.length;l+=2){var s=parseInt(e.substr(l,2),16),f=("00000000"+s.toString(2)).slice(-8);if(i=i+f.substr(1,7),f.substr(0,1)=="0"){var c=new J(i,2);r=r+"."+c.toString(10),i=""}}return r},V.asn1.ASN1Util.oidIntToHex=function(e){var n=function(s){var f=s.toString(16);return f.length==1&&(f="0"+f),f},t=function(s){var f="",c=new J(s,10),d=c.toString(2),p=7-d.length%7;p==7&&(p=0);for(var u="",x=0;x<p;x++)u+="0";d=u+d;for(var x=0;x<d.length-1;x+=7){var h=d.substr(x,7);x!=d.length-7&&(h="1"+h),f+=n(parseInt(h,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 l=0;l<r.length;l++)o+=t(r[l]);return o},V.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""}},V.asn1.DERAbstractString=function(e){V.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))},me.lang.extend(V.asn1.DERAbstractString,V.asn1.ASN1Object),V.asn1.DERAbstractTime=function(e){V.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),l=String(i.getFullYear());t=="utc"&&(l=l.substr(2,2));var s=r(String(i.getMonth()+1),2),f=r(String(i.getDate()),2),c=r(String(i.getHours()),2),d=r(String(i.getMinutes()),2),p=r(String(i.getSeconds()),2),u=l+s+f+c+d+p;if(o===!0){var x=i.getMilliseconds();if(x!=0){var h=r(String(x),3);h=h.replace(/[0]+$/,""),u=u+"."+h}}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,l){var s=new Date(Date.UTC(n,t-1,o,r,i,l,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},me.lang.extend(V.asn1.DERAbstractTime,V.asn1.ASN1Object),V.asn1.DERAbstractStructured=function(e){V.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)},me.lang.extend(V.asn1.DERAbstractStructured,V.asn1.ASN1Object),V.asn1.DERBoolean=function(){V.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},me.lang.extend(V.asn1.DERBoolean,V.asn1.ASN1Object),V.asn1.DERInteger=function(e){V.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=V.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new J(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))},me.lang.extend(V.asn1.DERInteger,V.asn1.ASN1Object),V.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=V.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.getEncodedHex()}V.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 l=t.substr(r,8),s=parseInt(l,2).toString(16);s.length==1&&(s="0"+s),i+=s}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))},me.lang.extend(V.asn1.DERBitString,V.asn1.ASN1Object),V.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=V.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}V.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},me.lang.extend(V.asn1.DEROctetString,V.asn1.DERAbstractString),V.asn1.DERNull=function(){V.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},me.lang.extend(V.asn1.DERNull,V.asn1.ASN1Object),V.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 J(o,10),l=i.toString(2),s=7-l.length%7;s==7&&(s=0);for(var f="",c=0;c<s;c++)f+="0";l=f+l;for(var c=0;c<l.length-1;c+=7){var d=l.substr(c,7);c!=l.length-7&&(d="1"+d),r+=n(parseInt(d,2))}return r};V.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("."),l=parseInt(i[0])*40+parseInt(i[1]);r+=n(l),i.splice(0,2);for(var s=0;s<i.length;s++)r+=t(i[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(o){var r=V.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))},me.lang.extend(V.asn1.DERObjectIdentifier,V.asn1.ASN1Object),V.asn1.DEREnumerated=function(e){V.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=V.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new J(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))},me.lang.extend(V.asn1.DEREnumerated,V.asn1.ASN1Object),V.asn1.DERUTF8String=function(e){V.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},me.lang.extend(V.asn1.DERUTF8String,V.asn1.DERAbstractString),V.asn1.DERNumericString=function(e){V.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},me.lang.extend(V.asn1.DERNumericString,V.asn1.DERAbstractString),V.asn1.DERPrintableString=function(e){V.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},me.lang.extend(V.asn1.DERPrintableString,V.asn1.DERAbstractString),V.asn1.DERTeletexString=function(e){V.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},me.lang.extend(V.asn1.DERTeletexString,V.asn1.DERAbstractString),V.asn1.DERIA5String=function(e){V.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},me.lang.extend(V.asn1.DERIA5String,V.asn1.DERAbstractString),V.asn1.DERUTCTime=function(e){V.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))},me.lang.extend(V.asn1.DERUTCTime,V.asn1.DERAbstractTime),V.asn1.DERGeneralizedTime=function(e){V.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))},me.lang.extend(V.asn1.DERGeneralizedTime,V.asn1.DERAbstractTime),V.asn1.DERSequence=function(e){V.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}},me.lang.extend(V.asn1.DERSequence,V.asn1.DERAbstractStructured),V.asn1.DERSet=function(e){V.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)},me.lang.extend(V.asn1.DERSet,V.asn1.DERAbstractStructured),V.asn1.DERTaggedObject=function(e){V.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)))},me.lang.extend(V.asn1.DERTaggedObject,V.asn1.ASN1Object);var hl=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)}}(),A0=function(e){hl(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*)+$/,l=i.test(t)?Ys.decode(t):Qn.unarmor(t),s=Qs.decode(l);if(s.sub.length===3&&(s=s.sub[2].sub[0]),s.sub.length===9){o=s.sub[1].getHexStringValue(),this.n=ge(o,16),r=s.sub[2].getHexStringValue(),this.e=parseInt(r,16);var f=s.sub[3].getHexStringValue();this.d=ge(f,16);var c=s.sub[4].getHexStringValue();this.p=ge(c,16);var d=s.sub[5].getHexStringValue();this.q=ge(d,16);var p=s.sub[6].getHexStringValue();this.dmp1=ge(p,16);var u=s.sub[7].getHexStringValue();this.dmq1=ge(u,16);var x=s.sub[8].getHexStringValue();this.coeff=ge(x,16)}else if(s.sub.length===2)if(s.sub[0].sub){var h=s.sub[1],g=h.sub[0];o=g.sub[0].getHexStringValue(),this.n=ge(o,16),r=g.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else o=s.sub[0].getHexStringValue(),this.n=ge(o,16),r=s.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},n.prototype.getPrivateBaseKey=function(){var t={array:[new V.asn1.DERInteger({int:0}),new V.asn1.DERInteger({bigint:this.n}),new V.asn1.DERInteger({int:this.e}),new V.asn1.DERInteger({bigint:this.d}),new V.asn1.DERInteger({bigint:this.p}),new V.asn1.DERInteger({bigint:this.q}),new V.asn1.DERInteger({bigint:this.dmp1}),new V.asn1.DERInteger({bigint:this.dmq1}),new V.asn1.DERInteger({bigint:this.coeff})]},o=new V.asn1.DERSequence(t);return o.getEncodedHex()},n.prototype.getPrivateBaseKeyB64=function(){return Ht(this.getPrivateBaseKey())},n.prototype.getPublicBaseKey=function(){var t=new V.asn1.DERSequence({array:[new V.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new V.asn1.DERNull]}),o=new V.asn1.DERSequence({array:[new V.asn1.DERInteger({bigint:this.n}),new V.asn1.DERInteger({int:this.e})]}),r=new V.asn1.DERBitString({hex:"00"+o.getEncodedHex()}),i=new V.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()},n.prototype.getPublicBaseKeyB64=function(){return Ht(this.getPublicBaseKey())},n.wordwrap=function(t,o){if(o=o||64,!t)return t;var r="(.{1,"+o+`})( +|$
91
- ?)|(.{1,`+o+"})";return t.match(RegExp(r,"g")).join(`
90
+ */var V={};(typeof V.asn1>"u"||!V.asn1)&&(V.asn1={}),V.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 a="",i=0;i<o;i++)a+="f";var l=new J(a,16),s=l.xor(e).add(J.ONE);n=s.toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var n=V,t=n.asn1,o=t.DERBoolean,a=t.DERInteger,i=t.DERBitString,l=t.DEROctetString,s=t.DERNull,f=t.DERObjectIdentifier,c=t.DEREnumerated,d=t.DERUTF8String,p=t.DERNumericString,u=t.DERPrintableString,h=t.DERTeletexString,g=t.DERIA5String,x=t.DERUTCTime,y=t.DERGeneralizedTime,S=t.DERSequence,m=t.DERSet,b=t.DERTaggedObject,v=t.ASN1Util.newObject,_=Object.keys(e);if(_.length!=1)throw"key of param shall be only one.";var w=_[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 a(e[w]);if(w=="bitstr")return new i(e[w]);if(w=="octstr")return new l(e[w]);if(w=="null")return new s(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 p(e[w]);if(w=="prnstr")return new u(e[w]);if(w=="telstr")return new h(e[w]);if(w=="ia5str")return new g(e[w]);if(w=="utctime")return new x(e[w]);if(w=="gentime")return new y(e[w]);if(w=="seq"){for(var k=e[w],A=[],E=0;E<k.length;E++){var C=v(k[E]);A.push(C)}return new S({array:A})}if(w=="set"){for(var k=e[w],A=[],E=0;E<k.length;E++){var C=v(k[E]);A.push(C)}return new m({array:A})}if(w=="tag"){var T=e[w];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var R=v(T[2]);return new b({tag:T[0],explicit:T[1],obj:R})}else{var B={};if(T.explicit!==void 0&&(B.explicit=T.explicit),T.tag!==void 0&&(B.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return B.obj=v(T.obj),new b(B)}}},this.jsonToASN1HEX=function(e){var n=this.newObject(e);return n.getEncodedHex()}},V.asn1.ASN1Util.oidHexToInt=function(e){for(var a="",n=parseInt(e.substr(0,2),16),t=Math.floor(n/40),o=n%40,a=t+"."+o,i="",l=2;l<e.length;l+=2){var s=parseInt(e.substr(l,2),16),f=("00000000"+s.toString(2)).slice(-8);if(i=i+f.substr(1,7),f.substr(0,1)=="0"){var c=new J(i,2);a=a+"."+c.toString(10),i=""}}return a},V.asn1.ASN1Util.oidIntToHex=function(e){var n=function(s){var f=s.toString(16);return f.length==1&&(f="0"+f),f},t=function(s){var f="",c=new J(s,10),d=c.toString(2),p=7-d.length%7;p==7&&(p=0);for(var u="",h=0;h<p;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="",a=e.split("."),i=parseInt(a[0])*40+parseInt(a[1]);o+=n(i),a.splice(0,2);for(var l=0;l<a.length;l++)o+=t(a[l]);return o},V.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 a=128+o;return a.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""}},V.asn1.DERAbstractString=function(e){V.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))},me.lang.extend(V.asn1.DERAbstractString,V.asn1.ASN1Object),V.asn1.DERAbstractTime=function(e){V.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 a=this.zeroPadding,i=this.localDateToUTC(n),l=String(i.getFullYear());t=="utc"&&(l=l.substr(2,2));var s=a(String(i.getMonth()+1),2),f=a(String(i.getDate()),2),c=a(String(i.getHours()),2),d=a(String(i.getMinutes()),2),p=a(String(i.getSeconds()),2),u=l+s+f+c+d+p;if(o===!0){var h=i.getMilliseconds();if(h!=0){var g=a(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,a,i,l){var s=new Date(Date.UTC(n,t-1,o,a,i,l,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},me.lang.extend(V.asn1.DERAbstractTime,V.asn1.ASN1Object),V.asn1.DERAbstractStructured=function(e){V.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)},me.lang.extend(V.asn1.DERAbstractStructured,V.asn1.ASN1Object),V.asn1.DERBoolean=function(){V.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},me.lang.extend(V.asn1.DERBoolean,V.asn1.ASN1Object),V.asn1.DERInteger=function(e){V.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=V.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new J(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))},me.lang.extend(V.asn1.DERInteger,V.asn1.ASN1Object),V.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=V.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.getEncodedHex()}V.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 a="0"+t;this.hTLV=null,this.isModified=!0,this.hV=a+o},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var o=8-t.length%8;o==8&&(o=0);for(var a=0;a<=o;a++)t+="0";for(var i="",a=0;a<t.length-1;a+=8){var l=t.substr(a,8),s=parseInt(l,2).toString(16);s.length==1&&(s="0"+s),i+=s}this.hTLV=null,this.isModified=!0,this.hV="0"+o+i},this.setByBooleanArray=function(t){for(var o="",a=0;a<t.length;a++)t[a]==!0?o+="1":o+="0";this.setByBinaryString(o)},this.newFalseArray=function(t){for(var o=new Array(t),a=0;a<t;a++)o[a]=!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))},me.lang.extend(V.asn1.DERBitString,V.asn1.ASN1Object),V.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=V.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}V.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},me.lang.extend(V.asn1.DEROctetString,V.asn1.DERAbstractString),V.asn1.DERNull=function(){V.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},me.lang.extend(V.asn1.DERNull,V.asn1.ASN1Object),V.asn1.DERObjectIdentifier=function(e){var n=function(o){var a=o.toString(16);return a.length==1&&(a="0"+a),a},t=function(o){var a="",i=new J(o,10),l=i.toString(2),s=7-l.length%7;s==7&&(s=0);for(var f="",c=0;c<s;c++)f+="0";l=f+l;for(var c=0;c<l.length-1;c+=7){var d=l.substr(c,7);c!=l.length-7&&(d="1"+d),a+=n(parseInt(d,2))}return a};V.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 a="",i=o.split("."),l=parseInt(i[0])*40+parseInt(i[1]);a+=n(l),i.splice(0,2);for(var s=0;s<i.length;s++)a+=t(i[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueName=function(o){var a=V.asn1.x509.OID.name2oid(o);if(a!=="")this.setValueOidString(a);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))},me.lang.extend(V.asn1.DERObjectIdentifier,V.asn1.ASN1Object),V.asn1.DEREnumerated=function(e){V.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=V.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new J(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))},me.lang.extend(V.asn1.DEREnumerated,V.asn1.ASN1Object),V.asn1.DERUTF8String=function(e){V.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},me.lang.extend(V.asn1.DERUTF8String,V.asn1.DERAbstractString),V.asn1.DERNumericString=function(e){V.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},me.lang.extend(V.asn1.DERNumericString,V.asn1.DERAbstractString),V.asn1.DERPrintableString=function(e){V.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},me.lang.extend(V.asn1.DERPrintableString,V.asn1.DERAbstractString),V.asn1.DERTeletexString=function(e){V.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},me.lang.extend(V.asn1.DERTeletexString,V.asn1.DERAbstractString),V.asn1.DERIA5String=function(e){V.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},me.lang.extend(V.asn1.DERIA5String,V.asn1.DERAbstractString),V.asn1.DERUTCTime=function(e){V.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))},me.lang.extend(V.asn1.DERUTCTime,V.asn1.DERAbstractTime),V.asn1.DERGeneralizedTime=function(e){V.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))},me.lang.extend(V.asn1.DERGeneralizedTime,V.asn1.DERAbstractTime),V.asn1.DERSequence=function(e){V.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}},me.lang.extend(V.asn1.DERSequence,V.asn1.DERAbstractStructured),V.asn1.DERSet=function(e){V.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)},me.lang.extend(V.asn1.DERSet,V.asn1.DERAbstractStructured),V.asn1.DERTaggedObject=function(e){V.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)))},me.lang.extend(V.asn1.DERTaggedObject,V.asn1.ASN1Object);var ml=globalThis&&globalThis.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[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)}}(),E0=function(e){ml(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,a=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,l=i.test(t)?Qs.decode(t):Qn.unarmor(t),s=nl.decode(l);if(s.sub.length===3&&(s=s.sub[2].sub[0]),s.sub.length===9){o=s.sub[1].getHexStringValue(),this.n=ge(o,16),a=s.sub[2].getHexStringValue(),this.e=parseInt(a,16);var f=s.sub[3].getHexStringValue();this.d=ge(f,16);var c=s.sub[4].getHexStringValue();this.p=ge(c,16);var d=s.sub[5].getHexStringValue();this.q=ge(d,16);var p=s.sub[6].getHexStringValue();this.dmp1=ge(p,16);var u=s.sub[7].getHexStringValue();this.dmq1=ge(u,16);var h=s.sub[8].getHexStringValue();this.coeff=ge(h,16)}else if(s.sub.length===2)if(s.sub[0].sub){var g=s.sub[1],x=g.sub[0];o=x.sub[0].getHexStringValue(),this.n=ge(o,16),a=x.sub[1].getHexStringValue(),this.e=parseInt(a,16)}else o=s.sub[0].getHexStringValue(),this.n=ge(o,16),a=s.sub[1].getHexStringValue(),this.e=parseInt(a,16);else return!1;return!0}catch{return!1}},n.prototype.getPrivateBaseKey=function(){var t={array:[new V.asn1.DERInteger({int:0}),new V.asn1.DERInteger({bigint:this.n}),new V.asn1.DERInteger({int:this.e}),new V.asn1.DERInteger({bigint:this.d}),new V.asn1.DERInteger({bigint:this.p}),new V.asn1.DERInteger({bigint:this.q}),new V.asn1.DERInteger({bigint:this.dmp1}),new V.asn1.DERInteger({bigint:this.dmq1}),new V.asn1.DERInteger({bigint:this.coeff})]},o=new V.asn1.DERSequence(t);return o.getEncodedHex()},n.prototype.getPrivateBaseKeyB64=function(){return $t(this.getPrivateBaseKey())},n.prototype.getPublicBaseKey=function(){var t=new V.asn1.DERSequence({array:[new V.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new V.asn1.DERNull]}),o=new V.asn1.DERSequence({array:[new V.asn1.DERInteger({bigint:this.n}),new V.asn1.DERInteger({int:this.e})]}),a=new V.asn1.DERBitString({hex:"00"+o.getEncodedHex()}),i=new V.asn1.DERSequence({array:[t,a]});return i.getEncodedHex()},n.prototype.getPublicBaseKeyB64=function(){return $t(this.getPublicBaseKey())},n.wordwrap=function(t,o){if(o=o||64,!t)return t;var a="(.{1,"+o+`})( +|$
91
+ ?)|(.{1,`+o+"})";return t.match(RegExp(a,"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}(cl),ro,xl=typeof process<"u"?(ro=process.env)===null||ro===void 0?void 0:ro.npm_package_version:void 0,gl=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 A0(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(p0(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return Ht(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,t,o){try{return Ht(this.getKey().sign(n,t,o))}catch{return!1}},e.prototype.verify=function(n,t,o){try{return this.getKey().verify(n,p0(t),o)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new A0,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=xl,e}();const E0=new gl,pt=ml();function ml(){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 T0=Re.enc.Utf8.parse("ABCDEF1234123412");function pl(e,n){n=n||pt;const t=Re.enc.Utf8.parse(n);let o="";switch(typeof e){case"string":o=Re.enc.Utf8.parse(e);break;case"object":o=Re.enc.Utf8.parse(JSON.stringify(e));break;default:o=Re.enc.Utf8.parse(e.toString())}return Re.AES.encrypt(o,t,{iv:T0,mode:Re.mode.CBC,padding:Re.pad.ZeroPadding}).toString()}function B0(e,n){n=n||pt;const t=Re.enc.Utf8.parse(n),o=Re.AES.decrypt(e,t,{iv:T0,mode:Re.mode.CBC,padding:Re.pad.ZeroPadding});return Re.enc.Utf8.stringify(o).toString()}function yl(e){E0.setPublicKey(e)}function vl(e){return E0.encrypt(e)}function D0(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 bl(e){const{paramType:n,data:t,params:o,method:r}=e;n==="form"?["get","delete"].includes(r)?e.params=yt(o,"string"):e.data=yt(t,"string"):["get","delete"].includes(r)?e.params=yt(o,"string"):e.data=yt(t)}function yt(e,n){let t=e||{};if(n==="string"){t="";for(const s in e)if(Object.hasOwnProperty.call(e,s)){const f=e[s];t+=`${s}=${encodeURIComponent(f)}&`}}yl("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=vl(pt);return{c:pl(t,pt),p:r}}window.getEncryptParam=yt;function Sl(e,n){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&D0(e.url)&&(e.data instanceof FormData?e.data=wl(e.data):bl(e))}function wl(e){const n=e.entries(),t=new FormData,o={};for(const i of n){const l=i[0],s=i[1];s instanceof Blob?t.append(l,s):o[l]=s}const r=yt(o,"json");return typeof r=="object"&&(t.append("c",r.c),t.append("p",r.p)),t}window.xhaesKey=pt,window.xhaesDecrypt=B0;function R0(e,n){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&D0(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const o=B0(e.data.data.content,pt);e.data=JSON.parse(o)}}const I0=window.config.requestErrorTip,Ye=ja.create({timeout:1e3*180});Ye.interceptors.request.use(e=>(Sl(e),e),e=>Promise.reject(e)),Ye.interceptors.response.use(e=>{var n,t,o;return I0&&+((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"}),R0(e),e},e=>{if(R0(e==null?void 0:e.response),I0)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 Cl=e=>e.replace(/\\n/g,`
97
- `),ao=(e,n=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},kl=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Yt=(e,n=2)=>{const t=e+"";if(t.includes("%"))return e;const o=parseFloat(t);return isNaN(o)?e:`${(o*100).toFixed(n)}%`},Xt=(e,n)=>typeof e=="string"&&typeof n=="string"?e.toLocaleLowerCase().includes(n.toLocaleLowerCase()):!1,Jt=(e,n)=>{const t={dayjs:Le,...n};let o="";const r=[];for(const s in t)o+=`${s},`,r.push(t[s]);o=o.replace(/,$/,"");const i=`function (${o}){return ${e}}`;let l;try{l=Function(`"use strict";return (${i})`)()(...r)}catch{return e}return l},ye=(e="",{textData:n,codeData:t}={},{useNewline:o=!1,useSpace:r=!1}={})=>{const l={...window.config||{},...n},s=e.match(/\{(.+?)\}/g);if(s==null||s.length===0)return e;for(let f=0;f<s.length;f++){const c=s[f];let d=c.slice(1,-1).trim();const p=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=d.match(p);for(let x=0;x<u.length;x++){const h=u[x],g=l[h];g!=null&&(d=d.replace(h,g))}(/\(.*\)/g.test(d)||/[+/\\*]/g.test(d))&&(d=Jt(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,"&nbsp;&nbsp;")),e},Pe=(e,n=()=>{})=>{const{requestUrl:t,requestMethod:o,requestHeaders:r,requestParams:i,requestInterval:l,isOpenRequestTimer:s}=e,{contextRequestUrl:f,touchEventId:c}=a.inject(Ee,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:d}=a.inject(Se,{getGlobalModel:h=>{}}),p=ye(t),u=async(h={})=>{if(!p||!o||!r)return;let g={};i.forEach(v=>{const{key:_,value:w}=v;if(typeof w=="object"&&w!=null&&w.id){let k={};const{id:A,prop:E,propKey:C,operate:T}=w;A==="THIS"?k=d(a.unref(c))||{}:k=d(A)||{};const R=a.unref(k[E]);let B=null;if(["date","range"].some(I=>Xt(k==null?void 0:k.type,I))){const{value:I,type:$,mode:q}=T||{};if(I&&$&&q)switch($){case"add":B=a.unref(R).add(I,q);break;case"minus":B=a.unref(R).subtract(I,q);break}B==null&&(B=a.unref(R)),B=(B==null?void 0:B.format((C==null?void 0:C.trim())||k.format))||""}else Object.prototype.toString.call(R)==="[object Object]"?C?B=R[C]:B=E?R[E]:R:Xt(k==null?void 0:k.type,"select")&&a.unref(R)&&E&&Array.isArray(a.unref(R))?B=a.unref(R).map(I=>Object.prototype.hasOwnProperty.call(I,E)?I[E]:I):B=R;g[_]=B}else typeof w=="string"&&(g[_]=ye(w))}),g={...window.config.requestParams,...h,...g};let y="";const b=Object.keys(g),m=b.length-1,S=b.length;b.forEach((v,_)=>{let w=g[v];Object.prototype.toString.call(w)==="[object Object]"&&(w=JSON.stringify(w)),_===0?S!==1?y+=`?${v}=${w}&`:y+=`?${v}=${w}`:_===m?y+=`${v}=${w}`:y+=`${v}=${w}&`});try{const v=["get","head"].includes(o);let _=v?p+y:p;g.dataSqlId&&!_.includes("dataSqlId")&&(_+=`${_.includes("?")?"&":"?"}dataSqlId=${g.dataSqlId}`);const w=await Ye({baseURL:a.unref(f)||"",url:_,method:o,headers:r,data:v?{}:g});return n(w),w}catch(v){console.error(v)}},x=s&&setInterval(u,l*1e3);return a.onUnmounted(()=>{clearInterval(x)}),u},vt=(e=[],n)=>{let{name:t="name",types:o=[]}=n||{};t=(t==null?void 0:t.trim())||t;const r=new Set,i=new Map,l=e.length,s=o.length;if(l===1){const d=[];for(let u=0;u<s;u++){const x=o[u],{label:h,value:g}=x,y={...e[0],value:e[0][g]};r.add(h),d.push(y)}const p=e[0][t]||"";i.set(p,d)}else for(let d=0;d<l;d++){const p=e[d],u=p[t];r.add(u);for(let x=0;x<s;x++){const h=o[x],{label:g,value:y}=h,b={...p,value:p[y]};if(i.has(g)){const m=i.get(g);m.push(b),i.set(g,m)}else i.set(g,[b])}}const f=Array.from(r),c=[];for(const[d,p]of i)c.push({name:d,data:p});return{dimensions:f,dataset:c}},nt=(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},L0=(e,n)=>{const t=`${Dr}/preview?pageId=${n}`,o=`${Dr}/${n}`;return e==="preview"?t:o},ot=(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 l=t[i];if(l==null||l==="")break;let s=(r=l.slice(1,-1))==null?void 0:r.trim();s=s==null?void 0:s.replace(/value/g,n);try{let f=s;(/\(.*\)/g.test(s)||/[+/\\*]/g.test(s))&&(f=Jt(s)),e=e.replace(l,f)}catch{e=e.replace(l,s)}}return e},Bt=(e={})=>{const{requestToken:n}=a.inject(Tr,{requestToken:()=>{}});e.dataType==="indicator"&&n();const t=(l={})=>{const{label:s,name:f,location:c,show:d,indexCode:p}=l;return{label:s,columnName:f,location:c,show:d,calcType:"COLUMN",hrpIndexCode:p}},o=(l={})=>{const{label:s,name:f,location:c,show:d,indexCode:p,calcType:u="COLUMN",builtInFormula:x,builtInValueSource:h,builtInCalcWay:g,formula:y,conditions:b}=l;return{label:s,columnName:f,location:c,show:d,calcType:u,hrpIndexCode:p,aggregate:"SUM",builtInFormula:x,builtInValueSource:h,builtInCalcWay:g,formula:y,conditions:b}},{getGlobalModel:r}=a.inject(Se,{getGlobalModel:l=>{}}),i=(l=[])=>{var c;const s=l.length;console.log("controlList",l);const f=[];for(let d=0;d<s;d++){const p=l[d],{id:u,conditionLabel:x,conditionKey:h,conditionValueType:g}=p,y={rule:"NONE",label:x,fieldName:h,fieldValue:"",valueType:g},b=r(u)||{};console.log("model",b);const{value:m,format:S="YYYY-MM-DD"}=b||{};Xt(b.type,"date")?(y.fieldValue=(c=a.unref(m))==null?void 0:c.format(S),y.dateFormat=S):y.fieldValue=a.unref(m),f.push(y)}return f};return async()=>{var R,B;const{graphicConfig:l,type:s}=e;let{source:f,dataViewId:c,plugin:d="1",layer:p,chartType:u,classificationList:x=[],seriesList:h=[],leftAxisList:g=[],rightAxisList:y=[],queryColumnList:b=[],indicators:m=[],controlList:S=[],dataSourceId:v,idxLibMode:_,preview:w=!1}=l||{};p==null&&(Xt(s,"table")?p="1":p="2");let k;if(Array.isArray(x)&&x.length>0){const F=x.length;for(let I=0;I<F;I++){const $=x[I]||{},{label:q="",name:L="",show:O=!1,sort:H,customGroup:D,conditions:N}=$;if(O||F===1){k={label:q,columnName:L,show:O,sort:H,customGroup:D,conditions:N};break}}}let A;if(Array.isArray(h)&&h.length>0){const F=h.length;for(let I=0;I<F;I++){const $=h[I]||{},{label:q="",name:L="",show:O=!1,sort:H,customGroup:D,conditions:N}=$;if(O||F===1){A={label:q,columnName:L,show:O,sort:H,customGroup:D,conditions:N};break}}}const E=[];b==null||b.forEach(F=>{E.push(t(F))});const C=[];if(g==null||g.forEach(F=>{F.location="LEFT",C.push(o(F))}),y==null||y.forEach(F=>{F.location="RIGHT",C.push(o(F))}),m==null||m.forEach(F=>{F.location="LEFT",C.push(o(F))}),p==="1"&&E.length===0)return;if(p==="2"&&C.length===0)return;let T=[];(l==null?void 0:l.pageMode)==="design"?T=l.sqlConditions??[]:T=i(S);try{const F=(R=window==null?void 0:window.config)==null?void 0:R.pageId;return await Ye.post(`${gs}/diagram`,{source:f,dataViewId:c,plugin:d,layer:p,chartType:u,classification:k,series:A,indicatorList:C,queryColumns:E,pageFlag:!0,pageId:F,sqlConditions:T,dataSourceId:v,idxLibMode:_,preview:w},{headers:{Authentication:(B=window==null?void 0:window.config)==null?void 0:B.indicatorToken,operateContext:xs}})}catch(F){console.error(F)}}},_l=()=>{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 l=i.split("=");if(Array.isArray(l)){const s=l[0];o[s]=l[1]}}window.config.requestParams={...window.config.requestParams,...o},window.config={...window.config,...o}},Al=a.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...gn},setup(e){const n=a.computed(()=>({width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:nt(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),t=a.ref(0),o=a.ref(0),r=a.ref(0),i=a.ref(0),l=a.ref(!1),s=a.ref();let f;const c=()=>new Promise(g=>{a.nextTick(()=>{e.width&&e.height?(t.value=parseFloat(e.width),o.value=parseFloat(e.height)):(t.value=s.value.clientWidth,o.value=s.value.clientHeight),(!r.value||!i.value)&&(r.value=window.screen.width,i.value=window.screen.height),g()})}),d=()=>{t.value&&o.value?(s.value.style.width=`${t.value}px`,s.value.style.height=`${o.value}px`):(s.value.style.width=`${r.value}px`,s.value.style.height=`${i.value}px`)},p=()=>{const g=document.body.clientWidth,y=document.body.clientHeight,b=t.value||r.value,m=o.value||i.value,S=g/b,v=y/m;s.value&&(s.value.style.transform=`scale(${S}, ${v})`)},u=He.debounce(async()=>{await c(),p()},100),x=()=>{const g=window.MutationObserver;f=new g(u),f.observe(s.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},h=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return a.onMounted(async()=>{l.value=!1,await c(),d(),p(),window.addEventListener("resize",u),x(),l.value=!0}),a.onUnmounted(()=>{window.removeEventListener("resize",u),h()}),{style:n,container:s,ready:l}}}),Jf="",El={id:"container",ref:"container"};function Tl(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",El,[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 O0=fe(le(Al,[["render",Tl],["__scopeId","data-v-242d350e"]])),io={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{}},so=de(io),Bl=a.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...so},setup(e,{expose:n}){_l();const t=a.ref(),o=()=>{t.value.setAttribute("datav-theme",e.theme)};a.watch(()=>e.theme,()=>{o()}),a.onMounted(()=>{o()});const r=a.computed(()=>ye(e.contextRequestUrl)),i=a.computed(()=>e.pageMode),l=a.computed(()=>e.theme),s=a.ref("");a.provide(Ee,{contextRequestUrl:r,pageMode:i,theme:l,touchEventId:s});const f=new Map;console.log("globalModel",f);const c=I=>f.get(I),d=(I,$)=>{f.set(I,$)};a.provide(Se,{getGlobalModel:c,setGlobalModel:d});const p=[],u=()=>{p.pop()},x=I=>{p.push(I)},h=new Map,g=I=>h.get(I),y=(I,$)=>{h.set(I,$)};a.provide(Br,{popUseModalIds:u,pushUseModalIds:x,getModalModel:g,setModalModel:y});const b=Ua(),m=new Set,S=(I,$)=>{m.add(I),b.on(I,q=>typeof $[q]=="function"&&$[q]()),a.onBeforeUnmount(()=>{v(I)})},v=I=>{m.delete(I),b.off(I)},_=(I,$)=>{if(I==="PAGE"){const q=p.length;let L=[];if(q===0)L=[...m];else{const O=p[q-1];L=[...g(O)]}L.forEach(O=>{b.emit(O,$)})}else b.emit(I,$)};a.provide(mn,{onEvent:S,offEvent:v,emitEvent:_});const w=a.ref(0),k=()=>{w.value=a.unref(w)+1};a.provide(Tr,{requestToken:k});const A=new Map,E=new Map,C=({requestFn:I=()=>{},sortNum:$=0,id:q=""})=>{if(A.has($)){const L=A.get($);L==null||L.push(I)}else A.set($,[I]);E.set(q,I)},T=I=>new Promise(($,q)=>{const L=I.map(O=>O());Promise.all(L).then(O=>{$(O)}).catch(O=>{q(O)})}),R=I=>new Promise(async($,q)=>{if(I){if(typeof I=="string"){const L=E.get(I);if(typeof L=="function"){const O=Ye.interceptors.response.use(H=>($(H),H),H=>(q(H),Promise.reject(H)));L(),Ye.interceptors.response.eject(O)}}}else{const L=Array.from(A);L.sort((H,D)=>D[0]-H[0]);const O=L.length;try{e.pageMode!=="design"&&a.unref(w)>0;for(let H=0;H<O;H++){const D=L[H][1];await T(D)}}catch(H){console.error(H)}finally{A.clear(),$(null)}}});a.provide(Te,{setRequest:C,touchRequest:R});const B=()=>{b.emit(At)};a.provide(At,{emitRefreshPage:B});const F=I=>{b.on(At,()=>I()),a.onMounted(()=>{b.off(At)})};return a.onBeforeUnmount(()=>{A==null||A.clear(),E==null||E.clear()}),n({touchRequest:R,getGlobalModel:c,onRefreshPage:F}),{providerConfig:t}}}),Dl={id:"ProviderConfig",ref:"providerConfig"};function Rl(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",Dl,[a.renderSlot(e.$slots,"default")],512)}const N0=fe(le(Bl,[["render",Rl]])),lo={...he,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"},co=de(lo),P0=["refreshData","click","valueChange"],z0="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=",M0="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==",fo=a.defineComponent({name:"EcanText",components:{Skeleton:Ft},props:{...co},setup(e){const n=ue(e),t=a.ref({}),o=a.computed(()=>"-"+e.variableFontSize);a.watch(()=>[e.data,e.dataType],([h,g])=>{g==="static"&&(t.value=h)},{immediate:!0});const r=a.computed(()=>{var S;const h=a.unref(t),{color:g,variableFontSize:y}=e;let b=e.text;b=b==null?void 0:b.replace(/\n|\\n/g,"<br/>"),b=b==null?void 0:b.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const m=b.match(/\{(.+?)\}/g);if(m==null||m.length===0){if(b&&e.format==="percentage"&&!isNaN(+b)){const v=parseFloat(b),_=(v*100).toFixed(2);v>=0?b=`<span style="color: ${g||"#ED6643"};font-size:${y};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}(ul),ro,pl=typeof process<"u"?(ro=process.env)===null||ro===void 0?void 0:ro.npm_package_version:void 0,yl=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 E0(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(y0(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,y0(t),o)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new E0,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=pl,e}();const T0=new yl,vt=vl();function vl(){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 B0=Ie.enc.Utf8.parse("ABCDEF1234123412");function bl(e,n){n=n||vt;const t=Ie.enc.Utf8.parse(n);let o="";switch(typeof e){case"string":o=Ie.enc.Utf8.parse(e);break;case"object":o=Ie.enc.Utf8.parse(JSON.stringify(e));break;default:o=Ie.enc.Utf8.parse(e.toString())}return Ie.AES.encrypt(o,t,{iv:B0,mode:Ie.mode.CBC,padding:Ie.pad.ZeroPadding}).toString()}function D0(e,n){n=n||vt;const t=Ie.enc.Utf8.parse(n),o=Ie.AES.decrypt(e,t,{iv:B0,mode:Ie.mode.CBC,padding:Ie.pad.ZeroPadding});return Ie.enc.Utf8.stringify(o).toString()}function Sl(e){T0.setPublicKey(e)}function wl(e){return T0.encrypt(e)}function R0(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 Cl(e){const{paramType:n,data:t,params:o,method:a}=e;n==="form"?["get","delete"].includes(a)?e.params=bt(o,"string"):e.data=bt(t,"string"):["get","delete"].includes(a)?e.params=bt(o,"string"):e.data=bt(t)}function bt(e,n){let t=e||{};if(n==="string"){t="";for(const s in e)if(Object.hasOwnProperty.call(e,s)){const f=e[s];t+=`${s}=${encodeURIComponent(f)}&`}}Sl("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const a=wl(vt);return{c:bl(t,vt),p:a}}window.getEncryptParam=bt;function kl(e,n){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&R0(e.url)&&(e.data instanceof FormData?e.data=_l(e.data):Cl(e))}function _l(e){const n=e.entries(),t=new FormData,o={};for(const i of n){const l=i[0],s=i[1];s instanceof Blob?t.append(l,s):o[l]=s}const a=bt(o,"json");return typeof a=="object"&&(t.append("c",a.c),t.append("p",a.p)),t}window.xhaesKey=vt,window.xhaesDecrypt=D0;function I0(e,n){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&R0(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const o=D0(e.data.data.content,vt);e.data=JSON.parse(o)}}const L0=window.config.requestErrorTip,Je=Wa.create({timeout:1e3*180});Je.interceptors.request.use(e=>(kl(e),e),e=>Promise.reject(e)),Je.interceptors.response.use(e=>{var n,t,o;return L0&&+((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"}),I0(e),e},e=>{if(I0(e==null?void 0:e.response),L0)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 Al=e=>e.replace(/\\n/g,`
97
+ `),ao=(e,n=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},El=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Xt=(e,n=2)=>{const t=e+"";if(t.includes("%"))return e;const o=parseFloat(t);return isNaN(o)?e:`${(o*100).toFixed(n)}%`},Jt=(e,n)=>typeof e=="string"&&typeof n=="string"?e.toLocaleLowerCase().includes(n.toLocaleLowerCase()):!1,Qt=(e,n)=>{const t={dayjs:Oe,...n};let o="";const a=[];for(const s in t)o+=`${s},`,a.push(t[s]);o=o.replace(/,$/,"");const i=`function (${o}){return ${e}}`;let l;try{l=Function(`"use strict";return (${i})`)()(...a)}catch{return e}return l},ve=(e="",{textData:n,codeData:t}={},{useNewline:o=!1,useSpace:a=!1}={})=>{const l={...window.config||{},...n},s=e.match(/\{(.+?)\}/g);if(s==null||s.length===0)return e;for(let f=0;f<s.length;f++){const c=s[f];let d=c.slice(1,-1).trim();const p=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=d.match(p);for(let h=0;h<u.length;h++){const g=u[h],x=l[g];x!=null&&(d=d.replace(g,x))}(/\(.*\)/g.test(d)||/[+/\\*]/g.test(d))&&(d=Qt(d,t)),e=e.replace(c,d)}return o&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),a&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},ze=(e,n=()=>{})=>{const{requestUrl:t,requestMethod:o,requestHeaders:a,requestParams:i,requestInterval:l,isOpenRequestTimer:s}=e,{contextRequestUrl:f,touchEventId:c}=r.inject(Be,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:d}=r.inject(we,{getGlobalModel:g=>{}}),p=ve(t),u=async(g={})=>{if(!p||!o||!a)return;let x={};i.forEach(v=>{const{key:_,value:w}=v;if(typeof w=="object"&&w!=null&&w.id){let k={};const{id:A,prop:E,propKey:C,operate:T}=w;A==="THIS"?k=d(r.unref(c))||{}:k=d(A)||{};const R=r.unref(k[E]);let B=null;if(["date","range"].some(I=>Jt(k==null?void 0:k.type,I))){const{value:I,type:$,mode:q}=T||{};if(I&&$&&q)switch($){case"add":B=r.unref(R).add(I,q);break;case"minus":B=r.unref(R).subtract(I,q);break}B==null&&(B=r.unref(R)),B=(B==null?void 0:B.format((C==null?void 0:C.trim())||k.format))||""}else Object.prototype.toString.call(R)==="[object Object]"?C?B=R[C]:B=E?R[E]:R:Jt(k==null?void 0:k.type,"select")&&r.unref(R)&&E&&Array.isArray(r.unref(R))?B=r.unref(R).map(I=>Object.prototype.hasOwnProperty.call(I,E)?I[E]:I):B=R;x[_]=B}else typeof w=="string"&&(x[_]=ve(w))}),x={...window.config.requestParams,...g,...x};let y="";const S=Object.keys(x),m=S.length-1,b=S.length;S.forEach((v,_)=>{let w=x[v];Object.prototype.toString.call(w)==="[object Object]"&&(w=JSON.stringify(w)),_===0?b!==1?y+=`?${v}=${w}&`:y+=`?${v}=${w}`:_===m?y+=`${v}=${w}`:y+=`${v}=${w}&`});try{const v=["get","head"].includes(o);let _=v?p+y:p;x.dataSqlId&&!_.includes("dataSqlId")&&(_+=`${_.includes("?")?"&":"?"}dataSqlId=${x.dataSqlId}`);const w=await Je({baseURL:r.unref(f)||"",url:_,method:o,headers:a,data:v?{}:x});return n(w),w}catch(v){console.error(v)}},h=s&&setInterval(u,l*1e3);return r.onUnmounted(()=>{clearInterval(h)}),u},St=(e=[],n)=>{let{name:t="name",types:o=[]}=n||{};t=(t==null?void 0:t.trim())||t;const a=new Set,i=new Map,l=e.length,s=o.length;if(l===1){const d=[];for(let u=0;u<s;u++){const h=o[u],{label:g,value:x}=h,y={...e[0],value:e[0][x]};a.add(g),d.push(y)}const p=e[0][t]||"";i.set(p,d)}else for(let d=0;d<l;d++){const p=e[d],u=p[t];a.add(u);for(let h=0;h<s;h++){const g=o[h],{label:x,value:y}=g,S={...p,value:p[y]};if(i.has(x)){const m=i.get(x);m.push(S),i.set(x,m)}else i.set(x,[S])}}const f=Array.from(a),c=[];for(const[d,p]of i)c.push({name:d,data:p});return{dimensions:f,dataset:c}},at=(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},O0=(e,n)=>{const t=`${Rr}/preview?pageId=${n}`,o=`${Rr}/${n}`;return e==="preview"?t:o},it=(e,n)=>{var a;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 l=t[i];if(l==null||l==="")break;let s=(a=l.slice(1,-1))==null?void 0:a.trim();s=s==null?void 0:s.replace(/value/g,n);try{let f=s;(/\(.*\)/g.test(s)||/[+/\\*]/g.test(s))&&(f=Qt(s)),e=e.replace(l,f)}catch{e=e.replace(l,s)}}return e},It=(e={})=>{const{requestToken:n}=r.inject(Br,{requestToken:()=>{}});e.dataType==="indicator"&&n();const t=(l={})=>{const{label:s,name:f,location:c,show:d,indexCode:p}=l;return{label:s,columnName:f,location:c,show:d,calcType:"COLUMN",hrpIndexCode:p}},o=(l={})=>{const{label:s,name:f,location:c,show:d,indexCode:p,calcType:u="COLUMN",builtInFormula:h,builtInValueSource:g,builtInCalcWay:x,formula:y,conditions:S}=l;return{label:s,columnName:f,location:c,show:d,calcType:u,hrpIndexCode:p,aggregate:"SUM",builtInFormula:h,builtInValueSource:g,builtInCalcWay:x,formula:y,conditions:S}},{getGlobalModel:a}=r.inject(we,{getGlobalModel:l=>{}}),i=(l=[])=>{var c;const s=l.length;console.log("controlList",l);const f=[];for(let d=0;d<s;d++){const p=l[d],{id:u,conditionLabel:h,conditionKey:g,conditionValueType:x}=p,y={rule:"NONE",label:h,fieldName:g,fieldValue:"",valueType:x},S=a(u)||{};console.log("model",S);const{value:m,format:b="YYYY-MM-DD"}=S||{};Jt(S.type,"date")?(y.fieldValue=(c=r.unref(m))==null?void 0:c.format(b),y.dateFormat=b):y.fieldValue=r.unref(m),f.push(y)}return f};return async()=>{var R,B;const{graphicConfig:l,type:s}=e;let{source:f,dataViewId:c,plugin:d="1",layer:p,chartType:u,classificationList:h=[],seriesList:g=[],leftAxisList:x=[],rightAxisList:y=[],queryColumnList:S=[],indicators:m=[],controlList:b=[],dataSourceId:v,idxLibMode:_,preview:w=!1}=l||{};p==null&&(Jt(s,"table")?p="1":p="2");let k;if(Array.isArray(h)&&h.length>0){const F=h.length;for(let I=0;I<F;I++){const $=h[I]||{},{label:q="",name:N="",show:L=!1,sort:H,customGroup:D,conditions:O}=$;if(L||F===1){k={label:q,columnName:N,show:L,sort:H,customGroup:D,conditions:O};break}}}let A;if(Array.isArray(g)&&g.length>0){const F=g.length;for(let I=0;I<F;I++){const $=g[I]||{},{label:q="",name:N="",show:L=!1,sort:H,customGroup:D,conditions:O}=$;if(L||F===1){A={label:q,columnName:N,show:L,sort:H,customGroup:D,conditions:O};break}}}const E=[];S==null||S.forEach(F=>{E.push(t(F))});const C=[];if(x==null||x.forEach(F=>{F.location="LEFT",C.push(o(F))}),y==null||y.forEach(F=>{F.location="RIGHT",C.push(o(F))}),m==null||m.forEach(F=>{F.location="LEFT",C.push(o(F))}),p==="1"&&E.length===0)return;if(p==="2"&&C.length===0)return;let T=[];(l==null?void 0:l.pageMode)==="design"?T=l.sqlConditions??[]:T=i(b);try{const F=(R=window==null?void 0:window.config)==null?void 0:R.pageId;return await Je.post(`${ys}/diagram`,{source:f,dataViewId:c,plugin:d,layer:p,chartType:u,classification:k,series:A,indicatorList:C,queryColumns:E,pageFlag:!0,pageId:F,sqlConditions:T,dataSourceId:v,idxLibMode:_,preview:w},{headers:{Authentication:(B=window==null?void 0:window.config)==null?void 0:B.indicatorToken,operateContext:ps}})}catch(F){console.error(F)}}},Tl=()=>{const n=window.location.search.slice(1).split("&"),t=n.length,o={};for(let a=0;a<t;a++){const i=n[a];if(i==null||i==="")continue;const l=i.split("=");if(Array.isArray(l)){const s=l[0];o[s]=l[1]}}window.config.requestParams={...window.config.requestParams,...o},window.config={...window.config,...o}},Bl=r.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...gn},setup(e){const n=r.computed(()=>({width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:at(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),t=r.ref(0),o=r.ref(0),a=r.ref(0),i=r.ref(0),l=r.ref(!1),s=r.ref();let f;const c=()=>new Promise(x=>{r.nextTick(()=>{e.width&&e.height?(t.value=parseFloat(e.width),o.value=parseFloat(e.height)):(t.value=s.value.clientWidth,o.value=s.value.clientHeight),(!a.value||!i.value)&&(a.value=window.screen.width,i.value=window.screen.height),x()})}),d=()=>{t.value&&o.value?(s.value.style.width=`${t.value}px`,s.value.style.height=`${o.value}px`):(s.value.style.width=`${a.value}px`,s.value.style.height=`${i.value}px`)},p=()=>{const x=document.body.clientWidth,y=document.body.clientHeight,S=t.value||a.value,m=o.value||i.value,b=x/S,v=y/m;s.value&&(s.value.style.transform=`scale(${b}, ${v})`)},u=$e.debounce(async()=>{await c(),p()},100),h=()=>{const x=window.MutationObserver;f=new x(u),f.observe(s.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},g=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return r.onMounted(async()=>{l.value=!1,await c(),d(),p(),window.addEventListener("resize",u),h(),l.value=!0}),r.onUnmounted(()=>{window.removeEventListener("resize",u),g()}),{style:n,container:s,ready:l}}}),ed="",Dl={id:"container",ref:"container"};function Rl(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",Dl,[e.ready?(r.openBlock(),r.createElementBlock("div",{key:0,class:"page-config",style:r.normalizeStyle(e.style)},[r.renderSlot(e.$slots,"default",{},void 0,!0)],4)):r.createCommentVNode("",!0)],512)}const N0=ce(se(Bl,[["render",Rl],["__scopeId","data-v-242d350e"]])),io={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{}},so=fe(io),Il=r.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...so},setup(e,{expose:n}){Tl();const t=r.ref(),o=()=>{t.value.setAttribute("datav-theme",e.theme)};r.watch(()=>e.theme,()=>{o()}),r.onMounted(()=>{o()});const a=r.computed(()=>ve(e.contextRequestUrl)),i=r.computed(()=>e.pageMode),l=r.computed(()=>e.theme),s=r.ref("");r.provide(Be,{contextRequestUrl:a,pageMode:i,theme:l,touchEventId:s});const f=new Map;console.log("globalModel",f);const c=I=>f.get(I),d=(I,$)=>{f.set(I,$)};r.provide(we,{getGlobalModel:c,setGlobalModel:d});const p=[],u=()=>{p.pop()},h=I=>{p.push(I)},g=new Map,x=I=>g.get(I),y=(I,$)=>{g.set(I,$)};r.provide(Dr,{popUseModalIds:u,pushUseModalIds:h,getModalModel:x,setModalModel:y});const S=Za(),m=new Set,b=(I,$)=>{m.add(I),S.on(I,q=>typeof $[q]=="function"&&$[q]()),r.onBeforeUnmount(()=>{v(I)})},v=I=>{m.delete(I),S.off(I)},_=(I,$)=>{if(I==="PAGE"){const q=p.length;let N=[];if(q===0)N=[...m];else{const L=p[q-1];N=[...x(L)]}N.forEach(L=>{S.emit(L,$)})}else S.emit(I,$)};r.provide(mn,{onEvent:b,offEvent:v,emitEvent:_});const w=r.ref(0),k=()=>{w.value=r.unref(w)+1};r.provide(Br,{requestToken:k});const A=new Map,E=new Map,C=({requestFn:I=()=>{},sortNum:$=0,id:q=""})=>{if(A.has($)){const N=A.get($);N==null||N.push(I)}else A.set($,[I]);E.set(q,I)},T=I=>new Promise(($,q)=>{const N=I.map(L=>L());Promise.all(N).then(L=>{$(L)}).catch(L=>{q(L)})}),R=I=>new Promise(async($,q)=>{if(I){if(typeof I=="string"){const N=E.get(I);if(typeof N=="function"){const L=Je.interceptors.response.use(H=>($(H),H),H=>(q(H),Promise.reject(H)));N(),Je.interceptors.response.eject(L)}}}else{const N=Array.from(A);N.sort((H,D)=>D[0]-H[0]);const L=N.length;try{e.pageMode!=="design"&&r.unref(w)>0;for(let H=0;H<L;H++){const D=N[H][1];await T(D)}}catch(H){console.error(H)}finally{A.clear(),$(null)}}});r.provide(De,{setRequest:C,touchRequest:R});const B=()=>{S.emit(Bt)};r.provide(Bt,{emitRefreshPage:B});const F=I=>{S.on(Bt,()=>I()),r.onMounted(()=>{S.off(Bt)})};return r.onBeforeUnmount(()=>{A==null||A.clear(),E==null||E.clear()}),n({touchRequest:R,getGlobalModel:c,onRefreshPage:F}),{providerConfig:t}}}),Ll={id:"ProviderConfig",ref:"providerConfig"};function Ol(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",Ll,[r.renderSlot(e.$slots,"default")],512)}const P0=ce(se(Il,[["render",Ol]])),lo={...he,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"},co=fe(lo),z0=["refreshData","click","valueChange"],M0="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=",F0="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==",fo=r.defineComponent({name:"EcanText",components:{Skeleton:Vt},props:{...co},setup(e){const n=ue(e),t=r.ref({}),o=r.computed(()=>e.variableFontSize||"14px"),a=r.computed(()=>"-"+r.unref(o));r.watch(()=>[e.data,e.dataType],([x,y])=>{y==="static"&&(t.value=x)},{immediate:!0});const i=r.computed(()=>{var b;const x=r.unref(t),{color:y}=e;let S=e.text;S=S==null?void 0:S.replace(/\n|\\n/g,"<br/>"),S=S==null?void 0:S.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const m=S.match(/\{(.+?)\}/g);if(m==null||m.length===0){if(S&&e.format==="percentage"&&!isNaN(+S)){const v=parseFloat(S),_=(v*100).toFixed(2);v>=0?S=`<span style="color: ${y||"#ED6643"};font-size:${r.unref(o)};display: inline-block;">
98
98
  <div class="percentage-img-box">
99
- <img style="width: ${y};filter: ${`drop-shadow(${g||"#ED6643"} ${y} 0px)`};" src="${z0}"/>
99
+ <img style="width: ${r.unref(o)};filter: ${`drop-shadow(${y||"#ED6643"} ${r.unref(o)} 0px)`};" src="${M0}"/>
100
100
  </div>
101
101
  <span>${_}%</span>
102
- </span>`:b=`<span style="color: ${g||"#6ACB97"};font-size:${y};display: inline-block;">
102
+ </span>`:S=`<span style="color: ${y||"#6ACB97"};font-size:${r.unref(o)};display: inline-block;">
103
103
  <div class="percentage-img-box">
104
- <img style="width: ${y};filter: ${`drop-shadow(${g||"#6ACB97"} ${y} 0px)`};" src="${M0}"/>
104
+ <img style="width: ${r.unref(o)};filter: ${`drop-shadow(${y||"#6ACB97"} ${r.unref(o)} 0px)`};" src="${F0}"/>
105
105
  </div>
106
- <span>${Math.abs(+_)}%</span>
107
- </span>`}return b}for(let v=0;v<m.length;v++){const _=m[v],w=(S=_==null?void 0:_.slice(1,_.length-1))==null?void 0:S.trim();let k=w;const A=w.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let C=0;C<A.length;C++){const T=A[C],R=h[T];R&&(k=w.replace(T,R))}if(/\(.*\)/g.test(k)){const C=Jt(k);C!=null&&(k=C)}let E=k;if(E===w&&(E=e.variableDefaultValue),E!=null){const C=e.format;C==="percentage"?(E=+E,isNaN(E)?b=b.replace(_,`<span style="color:${e.variableColor};font-size:${y}">0%</span>`):E>=0?(E=(E*100).toFixed(2),b=b.replace(_,`<span style="color: ${g||"#ED6643"};font-size:${y};display: inline-block;">
106
+ <span>-${Math.abs(+_)}%</span>
107
+ </span>`}return S}for(let v=0;v<m.length;v++){const _=m[v],w=(b=_==null?void 0:_.slice(1,_.length-1))==null?void 0:b.trim();let k=w;const A=w.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let C=0;C<A.length;C++){const T=A[C],R=x[T];R&&(k=w.replace(T,R))}if(/\(.*\)/g.test(k)){const C=Qt(k);C!=null&&(k=C)}let E=k;if(E===w&&(E=e.variableDefaultValue),E!=null){const C=e.format;C==="percentage"?(E=+E,isNaN(E)?S=S.replace(_,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">0%</span>`):E>=0?(E=(E*100).toFixed(2),S=S.replace(_,`<span style="color: ${y||"#ED6643"};font-size:${r.unref(o)};display: inline-block;">
108
108
  <div class="percentage-img-box">
109
- <img style="width: ${y};filter: ${`drop-shadow(${g||"#ED6643"} ${y} 0px)`};" src="${z0}"/>
109
+ <img style="width: ${r.unref(o)};filter: ${`drop-shadow(${y||"#ED6643"} ${r.unref(o)} 0px)`};" src="${M0}"/>
110
110
  </div>
111
111
  <span>${E}%</span>
112
- </span>`)):(E=(E*100).toFixed(2),b=b.replace(_,`<span style="color: ${g||"#6ACB97"};font-size:${y};display: inline-block;">
112
+ </span>`)):(E=(E*100).toFixed(2),S=S.replace(_,`<span style="color: ${y||"#6ACB97"};font-size:${r.unref(o)};display: inline-block;">
113
113
  <div class="percentage-img-box">
114
- <img style="width: ${y};filter: ${`drop-shadow(${g||"#6ACB97"} ${y} 0px)`};" src="${M0}"/>
114
+ <img style="width: ${r.unref(o)};filter: ${`drop-shadow(${y||"#6ACB97"} ${r.unref(o)} 0px)`};" src="${F0}"/>
115
115
  </div>
116
- <span>${Math.abs(+E)}%</span>
117
- </span>`))):e.format==="percent"?(E=+E,isNaN(E)||(E=(E*100).toFixed(2),b=b.replace(_,`<span style="color:${e.variableColor};font-size:${y}">${E}%</span>`))):e.format==="money"?(E=+E,isNaN(E)||(E=ao(E),b=b.replace(_,`<span style="color:${e.variableColor};font-size:${y}">${E}</span>`))):C==="thousands"?(E=+E,isNaN(E)||(E=kl(E),b=b.replace(_,`<span style="color:${e.variableColor};font-size:${y}">${E}</span>`))):b=b.replace(_,`<span style="color:${e.variableColor};font-size:${y}">${E}</span>`)}}return`<span>${b}</span>`}),{pageMode:i}=a.inject(Ee,{pageMode:"normal"}),l=Pe(e),s=a.ref(!1),f=async()=>{var h;try{s.value=!0;const g=await l();t.value=((h=g==null?void 0:g.data)==null?void 0:h.data)||{}}catch(g){console.error(g)}finally{s.value=!1}},c=()=>{e.dataType!=="static"&&f()};be(e,{refreshData:c});const{setRequest:d}=a.inject(Te,{setRequest:({id:h,sortNum:g,requestFn:y})=>{}});d({id:e.id,requestFn:c,sortNum:e.requestSort}),be(e,{refreshData:c});const p=pe(e),u=p("click",()=>{if(!e.linkPage&&!e.href)return;const h=e.linkPage||"",g=L0(a.unref(i),h),y=e.href;let b=y||g;b=ye(b);const m=e.target;m&&(m!=="event"?window.open(b,"_"+m):window.parent.postMessage({type:"openPage",url:y},"*"))}),x=p("valueChange",()=>{});return a.watch(()=>r.value,(h,g)=>{h!==g&&x()}),{style:n,myText:r,loading:s,click:u,textIndent:o}}}),F0=()=>{a.useCssVars(e=>({"3b06a748":e.variableFontSize,f4b48dee:e.textIndent,"17b36be1":e.percentageSide}))},V0=fo.setup;fo.setup=V0?(e,n)=>(F0(),V0(e,n)):F0;const td="",Il=["innerHTML"];function Ll(e,n,t,o,r,i){const l=a.resolveComponent("skeleton");return e.loading?(a.openBlock(),a.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:a.normalizeStyle(e.style)},[a.createVNode(l,{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]=(...s)=>e.click&&e.click(...s))},null,12,Il))}const q0=fe(le(fo,[["render",Ll],["__scopeId","data-v-743cab9e"]])),Ol=a.defineComponent({name:"EcanScrollText",setup(){return{text:a.ref("基础文本")}}}),od="",Nl={class:"red"};function Pl(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",Nl,a.toDisplayString(e.text),1)}const H0=fe(le(Ol,[["render",Pl],["__scopeId","data-v-4dd9c03e"]])),uo={...he,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"}},ho=de(uo),$0=["timeChange"],zl=a.defineComponent({name:"EcanTimeDisplay",props:{...ho},setup(e){const n=ue(e),t=()=>{const{format:c,operate:d}=e;let p=Le();if(d){const{type:u,value:x,mode:h}=d;switch(u){case"add":p=p.add(x,h);break;case"minus":p=p.subtract(x,h)}}return p.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},s=pe(e)("timeChange",()=>{}),f=()=>{r&&i();let c=1e3;const{value:d,mode:p}=e.updateInterval||{};d&&(c=c*d);const u={second:1,minute:60,hour:60*60,day:24*60*60};p&&(c=c*u[p]),r=setInterval(()=>{o.value=t(),s()},c)};return be(e,{timeChange:s}),a.onMounted(()=>{f()}),a.onUnmounted(()=>{i()}),{style:n,time:o}}}),ad="";function Ml(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 j0=fe(le(zl,[["render",Ml],["__scopeId","data-v-b628fca2"]])),xo={...he,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"}]},go=de(xo),U0=["refreshData","click"],Fl=a.defineComponent({name:"EcanList",components:{Skeleton:Ft},props:{...go},setup(e){const n=a.ref(e.data),t=ue(e,["backgroundColor"]),o=a.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),r=(x,h)=>h==null||h===""?x:{money:ao,percentage:Yt,contrast:Yt}[h](x)||"",i=(x,h)=>{const g=parseFloat(x+"");if(h!=="contrast")return"";switch(!0){case g>=0:return"goUp";case g<0:return"goDown"}},l=Pe(e),s=a.ref(!1),f=async()=>{var x;if(e.dataType==="request")try{s.value=!0;const h=await l();n.value=((x=h==null?void 0:h.data)==null?void 0:x.data.rows)||[]}catch(h){console.error(h)}finally{s.value=!1}},c=()=>{f()},p=pe(e)("click",()=>{});be(e,{refreshData:c});const{setRequest:u}=a.inject(Te,{setRequest:({id:x,sortNum:h,requestFn:g})=>{}});return u({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:t,formatFn:r,columnStyle:o,contrastClass:i,dataSource:n,loading:s,click:p}}}),sd="",ld="",Vl=e=>(a.pushScopeId("data-v-7aa27677"),e=e(),a.popScopeId(),e),ql={key:0,class:"title"},Hl={key:0,class:"ranking"},$l={key:1,class:"ecan-list-content"},jl={key:0,class:"ranking"},Ul=Vl(()=>a.createElementVNode("div",{class:"icon"},null,-1)),Gl={class:"sort"},Wl={key:2,class:"empty"};function Zl(e,n,t,o,r,i){const l=a.resolveComponent("skeleton");return a.openBlock(),a.createElementBlock("div",{class:"ecan-list",style:a.normalizeStyle(e.style)},[a.createVNode(l,{loading:e.loading},{default:a.withCtx(()=>[e.useTitle?(a.openBlock(),a.createElementBlock("div",ql,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columnCount,s=>(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:s%e.columnCount!==0?e.itemColSpan:""}),key:s},[e.useRanking?(a.openBlock(),a.createElementBlock("div",Hl)):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",$l,[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),(s,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:s.id||f,onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[e.useRanking?(a.openBlock(),a.createElementBlock("div",jl,[Ul,a.createElementVNode("div",Gl," 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(s[c.key],c.format)]),key:c.key,style:a.normalizeStyle({fontSize:c.fontSize,color:e.contrastClass(s[c.key],c.format)===""?c.color:"",fontWeight:c.fontWeight,...e.columnStyle})},a.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(s[c.key],c.format)),7))),128))],4))),128))])):(a.openBlock(),a.createElementBlock("div",Wl," 暂无数据 "))]),_:1},8,["loading"])],4)}const G0=fe(le(Fl,[["render",Zl],["__scopeId","data-v-7aa27677"]])),mo={...he,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"},po=de(mo),W0=["refreshData","click"],Kl=a.defineComponent({name:"EcanProportion",components:{AProgress:ae.Progress,Skeleton:Ft},props:{...po},setup(e){const{pageMode:n}=a.inject(Ee,{pageMode:"normal"}),t=ue(e),o=a.computed(()=>{const h=e.width;return parseFloat(h)}),r=a.ref({});a.watch(()=>e.data,()=>{(e.dataType==="static"||a.unref(n)==="design")&&(r.value=e.data)},{immediate:!0,deep:!0});const i=a.computed(()=>{const h=a.unref(r),g=+e.variableDefaultValue;if(h==null)return isNaN(g)?0:g;const y=e.text.match(/\{.+\}/g)||[];let b;const m=new Set(Object.keys(h));for(let S=0;S<y.length;S++){const v=y[S],_=v.slice(1,v.length-1);if(m.has(_)){b=h[_];break}}return typeof b=="number"?b=b*100:typeof b=="string"&&!isNaN(+b)?b=+b*100:isNaN(g)?b=0:b=g*100,e.decimalFormat&&(b=+b.toFixed(2)),b}),l=a.computed(()=>{var m;let h=e.text;if(h==="")return a.unref(i);const g=e.variableDefaultValue,y=a.unref(r),b=h.match(/\{.+\}/g)||[];for(let S=0;S<b.length;S++){const v=b[S];let _=v.slice(1,v.length-1);const w=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,k=v.match(w);for(let E=0;E<(k==null?void 0:k.length);E++){const C=(m=k[E])==null?void 0:m.trim();y[C]!=null&&(_=_.replace(C,y[C]))}let A=_;try{/\(.*\)/g.test(_)&&(A=Jt(_))}catch(E){console.error(E)}typeof+A=="number"&&!isNaN(+A)?(A=+A*100,e.decimalFormat&&(A=A.toFixed(2))):A=g,h=h.replace(v,A+"")}return h}),s=Pe(e),f=a.ref(!1),c=async()=>{var h;if(e.dataType==="request")try{f.value=!0;const g=await s();r.value=((h=g==null?void 0:g.data)==null?void 0:h.data)||{}}catch(g){console.error(g)}finally{f.value=!1}};be(e,{refreshData:()=>{c()}});const u=pe(e)("click",()=>{}),{setRequest:x}=a.inject(Te,{setRequest:({id:h,sortNum:g,requestFn:y})=>{}});return x({id:e.id,requestFn:c,sortNum:e.requestSort}),{style:t,myWidth:o,text:l,myValue:i,loading:f,click:u}}}),fd="";function Yl(e,n,t,o,r,i){const l=a.resolveComponent("skeleton"),s=a.resolveComponent("a-progress");return a.openBlock(),a.createElementBlock("div",{class:"ecan-proportion",style:a.normalizeStyle(e.style)},[a.createVNode(s,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.strokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:a.withCtx(()=>[e.loading?(a.openBlock(),a.createBlock(l,{key:0,loading:e.loading},null,8,["loading"])):(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))]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","gapDegree","onClick"])],4)}const Z0=fe(le(Kl,[["render",Yl],["__scopeId","data-v-00244f8a"]])),yo={...he,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},vo=de(yo),K0=["inputChange","inputBlur"],Xl=a.defineComponent({name:"EcanInput",components:{AInput:ae.Input},props:{...vo},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(Se,{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})},l=pe(e),s=He.debounce(l("inputChange",()=>{i()}),300),f=l("inputBlur",()=>{});return{style:n,myValue:t,inputBlur:f,inputChange:s}}}),ud="";function Jl(e,n,t,o,r,i){const l=a.resolveComponent("a-input");return a.openBlock(),a.createElementBlock("div",{class:"ecan-input",style:a.normalizeStyle(e.style)},[a.createVNode(l,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur},null,8,["value","placeholder","onChange","onBlur"])],4)}const Y0=fe(le(Xl,[["render",Jl]])),bo={...he,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},So=de(bo),X0=["dateChange"],Ql=a.defineComponent({name:"EcanDatePicker",props:{...So},components:{ADatePicker:ae.DatePicker},setup(e){const n=ue(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=a.ref(null);a.watch(()=>[e.value,e.useCurrentTime,e.operate],([f,c,d])=>{let p=null;if(f?p=Le(ye(f)):c&&(p=Le()),d&&p){const{type:u,value:x,mode:h}=d;switch(u){case"add":p=p.add(x,h);break;case"minus":p=p.subtract(x,h)}}o.value=p},{deep:!0,immediate:!0});const{setGlobalModel:r}=a.inject(Se,{setGlobalModel:(f,c)=>{}});r(e.id,{type:e.type,format:e.format,value:o});const l=pe(e)("dateChange",()=>{}),s=()=>{a.unref(o)&&l()};return be(e,{dateChange:l}),{style:n,getPopupContainer:t,myValue:o,locale:ar,change:s}}}),xd="";function ec(e,n,t,o,r,i){const l=a.resolveComponent("a-date-picker");return a.openBlock(),a.createElementBlock("div",{class:"ecan-date-picker",style:a.normalizeStyle(e.style)},[a.createVNode(l,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,getPopupContainer:e.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)}const J0=fe(le(Ql,[["render",ec]])),wo={...he,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:""},Co=de(wo),Q0=["dateChange"],tc=a.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ae.RangePicker},props:{...Co},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],([y,b,m,S,v,_])=>{let w=null,k=null;if(m&&(w=Le().subtract(S,v),k=Le()),y&&(w=Le(ye(y))),b&&(k=Le(ye(b))),_){const{type:A,value:E,mode:C}=_;switch(A){case"add":w=w&&w.add(E,C),k=k&&k.add(E,C);break;case"minus":w=w&&w.subtract(E,C),k=k&&k.subtract(E,C)}}o.value=[w,k]},{immediate:!0});let r=a.unref(o)[0],i=a.unref(o)[1];const l=y=>{Array.isArray(y)?(r=y[0],i=y[1]):(r=null,i=null)},s=y=>{let b=!1,{limitStartTime:m,limitEndTime:S}=e;const v={startTime:`${r||""}`,endTime:`${i||""}`};return m=ye(m,{codeData:v}),S=ye(S,{codeData:v}),m&&S?b=!(Le(m)<y&&y<Le(S)):m?b=Le(m)>y:S&&(b=Le(S)<y),b},{setGlobalModel:f}=a.inject(Se,{setGlobalModel:(y,b)=>{}}),c=a.computed(()=>Array.isArray(a.unref(o))?a.unref(o)[0]:null),d=a.computed(()=>Array.isArray(a.unref(o))?a.unref(o)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:c,endTime:d});const p=pe(e);let u=!1;const x=p("dateChange",()=>{}),h=y=>{const b=a.unref(o),m=b&&b[0]&&b[1];y===!1&&u===!0&&m&&(x(),u=!1)},g=()=>{u=!0};return be(e,{dateChange:x}),{style:n,getPopupContainer:t,locale:ar,dateChange:x,myValue:o,disabledDate:s,calendarChange:l,openChange:h,change:g}}}),md="",pd="";function nc(e,n,t,o,r,i){const l=a.resolveComponent("a-range-picker");return a.openBlock(),a.createElementBlock("div",{class:"ecan-range-picker",style:a.normalizeStyle(e.style)},[a.createVNode(l,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),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},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange"])],4)}const ea=fe(le(tc,[["render",nc],["__scopeId","data-v-ddb2a0fe"]])),ko={...he,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},_o=de(ko),ta=["click"],oc=a.defineComponent({name:"EcanButton",components:{AButton:ae.Button},props:{..._o},setup(e){const n=ue(e),o=pe(e)("click",()=>{const s=a.unref(i);s&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:s},"*")}),r=a.computed(()=>ye(e.text)),i=a.computed(()=>ye(e.href)||null),l=a.computed(()=>{const s=e.target;if(!(s==="event"||a.unref(i)==null))return{self:"_self",blank:"_blank"}[s]});return{style:n,click:o,myText:r,myHref:i,myTarget:l}}}),vd="";function rc(e,n,t,o,r,i){const l=a.resolveComponent("a-button");return a.openBlock(),a.createElementBlock("div",{class:"ecan-button",style:a.normalizeStyle(e.style)},[a.createVNode(l,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget},{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"])],4)}const na=fe(le(oc,[["render",rc]])),Ao={...he,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"}]},Eo=de(Ao),oa=["checkboxChange"],ac=a.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ae.CheckboxGroup},props:{...Eo},setup(e){const n=ue(e),t=a.ref([]),o=a.ref([]),r=u=>{const x=e.value;let h=[];u.forEach(g=>{g.checked&&h.push(g.value)}),typeof x=="string"&&x!==""?h=h.concat(x.split(",")):Array.isArray(x)&&(h=h.concat(x)),t.value=u,o.value=h};a.watch(()=>[e.data,e.value],([u])=>{r(u)},{immediate:!0,deep:!0});const i=Pe(e),l=async()=>{var h,g;if(e.dataType!=="request")return;const u=await i(),x=((g=(h=u==null?void 0:u.data)==null?void 0:h.data)==null?void 0:g.rows)||[];r(x)},{getGlobalModel:s,setGlobalModel:f}=a.inject(Se,{getGlobalModel:u=>{},setGlobalModel:(u,x)=>{}});f(e.id,{type:e.type,value:o});const d=pe(e)("checkboxChange",()=>{const u=s(e.id);f(e.id,{...u,RECORD:o})}),{setRequest:p}=a.inject(Te,{setRequest:({id:u,sortNum:x,requestFn:h})=>{}});return p({id:e.id,requestFn:l,sortNum:e.requestSort}),{myOption:t,style:n,myValue:o,checkboxChange:d}}}),Sd="";function ic(e,n,t,o,r,i){const l=a.resolveComponent("a-checkbox-group");return a.openBlock(),a.createElementBlock("div",{class:"ecan-checkbox",style:a.normalizeStyle(e.style)},[a.createVNode(l,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const ra=fe(le(ac,[["render",ic]])),To={...he,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},Bo=de(To),aa=["selectChange","refreshData"],sc=a.defineComponent({name:"EcanSelect",components:{ASelect:ae.Select},props:{...Bo},setup(e){const n=ue(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=Pe(e),r=a.ref(e.data||[]),i=a.ref();a.watch(()=>[e.value,e.mode,e.selectFirstOption],()=>{const{mode:y,selectFirstOption:b,value:m}=e;y==="multiple"||y==="tags"||y==="combobox"?m?i.value=m.split(","):b&&(i.value=[a.unref(r)[0]]):m?i.value=m:b&&(i.value=a.unref(r)[0])},{immediate:!0});const l=e.dataFieldNames,s=(y,b)=>{const m=l.label,S=l.value;let v;const _=b[m],w=b[S];return _!=null?v=_:w!=null&&(v=w),(v==null?void 0:v.toLowerCase().indexOf(y==null?void 0:y.toLowerCase()))>=0},f=y=>{const{label:b,value:m,options:S}=e.dataFieldNames;if(S&&Array.isArray(y))if(y.some(v=>S in v)){const v={},_=[];y.forEach(w=>{v[w[S]]||(v[w[S]]=[]),v[w[S]].push({[b]:w[b],[m]:w[m]})});for(const w in v)_.push({[b]:w,[S]:v[w]});return _}else return y;else if(!S)return y},c=a.ref(!1),d=async()=>{var y,b;if(e.dataType==="request"){c.value=!0;try{const m=await o();if(r.value=f(((b=(y=m==null?void 0:m.data)==null?void 0:y.data)==null?void 0:b.rows)||[]),e.selectFirstOption){let S=a.unref(r)[0];if(l.options){const v=S[l.options];v&&v.length&&(S=v[0])}i.value=S[l.value]}}catch(m){console.error(m)}finally{c.value=!1}}},{getGlobalModel:p,setGlobalModel:u}=a.inject(Se,{getGlobalModel:y=>{},setGlobalModel:(y,b)=>{}});u(e.id,{type:e.type,value:i});const h=pe(e)("selectChange",()=>{const y=e.id,b=p(y);u(y,{...b,RECORD:i})});be(e,{selectChange:h,refreshData:d});const{setRequest:g}=a.inject(Te,{setRequest:({id:y,sortNum:b,requestFn:m})=>{}});return g({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:n,getPopupContainer:t,myValue:i,selectChange:h,options:r,filterOption:s,loading:c}}}),Cd="",kd="";function lc(e,n,t,o,r,i){const 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.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,showSearch:"",allowClear:"",options:e.options,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange},null,8,["value","placeholder","options","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange"])],4)}const ia=fe(le(sc,[["render",lc],["__scopeId","data-v-7c425ecc"]])),Do={...he,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},Ro=de(Do),sa=["selectChange","refreshData"],cc={name:"EcanTreeSelect",components:{ATreeSelect:ae.TreeSelect},props:{...Ro},setup(e){const n=ue(e),t=a.ref(e.data),o=(x,h)=>{const g=e.dataFieldNames,y=g.label,b=g.value;let m;const S=h[y],v=h[b];return S!=null?m=S:v!=null&&(m=v),(m==null?void 0:m.toLowerCase().indexOf(x==null?void 0:x.toLowerCase()))>=0},r=a.ref();a.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:x,value:h,selectFirstOption:g}=e;x?h?r.value=h.split(","):g&&(r.value=[a.unref(t)[0]]):h?r.value=h:g&&(r.value=a.unref(t)[0])},{immediate:!0});const i=a.ref(!1),l=Pe(e),s=async()=>{var x,h;if(e.dataType==="request"){i.value=!0;try{const g=await l();t.value=((h=(x=g==null?void 0:g.data)==null?void 0:x.data)==null?void 0:h.rows)||[];const y=a.unref(t)[0];e.value===""&&y!=null&&(r.value=y[e.dataFieldNames.value])}catch(g){console.error(g)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=a.inject(Se,{getGlobalModel:x=>{},setGlobalModel:(x,h)=>{}});c(e.id,{type:e.type,value:r});const p=pe(e)("selectChange",()=>{const x=e.id,h=f(x);c(x,{...h,RECORD:r})});be(e,{selectChange:p,refreshData:s});const{setRequest:u}=a.inject(Te,{setRequest:({id:x,sortNum:h,requestFn:g})=>{}});return u({id:e.id,requestFn:s,sortNum:e.reque}),{style:n,treeData:t,filterTreeNode:o,myValue:r,loading:i,selectChange:p}}},Ad="",Ed="";function fc(e,n,t,o,r,i){const l=a.resolveComponent("a-tree-select");return a.openBlock(),a.createElementBlock("div",{class:"ecan-tree-select",style:a.normalizeStyle(o.style)},[a.createVNode(l,{class:"tree-select",value:o.myValue,"onUpdate:value":n[0]||(n[0]=s=>o.myValue=s),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 la=fe(le(cc,[["render",fc],["__scopeId","data-v-37236421"]])),Io={...he,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",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",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:"当前无说明信息"},Lo=de(Io),ca=["click","refreshData","resetRecord"],Dt=async e=>{var f;const n=await Ye.post(e,{},{responseType:"blob"}),{data:t,headers:o}=n,r=o["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),l=document.createElement("a"),s=window.URL.createObjectURL(i);l.href=s,l.download=decodeURI(r),l.style.display="none",document.body.appendChild(l),l.click(),(f=l.parentNode)==null||f.removeChild(l),window.URL.revokeObjectURL(s)},Oo={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"},No=de(Oo),fa=["showModal"],dc=a.defineComponent({name:"EcanModal",components:{AModal:ae.Modal,CloseOutlined:os},props:{...No},setup(e,{emit:n}){const t=()=>document.getElementById("ProviderConfig")||document.body,o=a.computed(()=>{const O=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[O]}}),r=e.fullModal?"1920px":e.width,i=e.fullModal?"1080px":e.height,l=e.originalWidth,s=e.originalHeight,f=a.ref("80%"),c=a.ref(0),d=a.ref(),p=a.ref(0),u=a.ref({}),x=ue(e),h=a.ref({}),g=a.ref(!1),y=a.ref();let b;const m=()=>{d.value=parseFloat(r)/parseFloat(l);const O=parseFloat(i)/parseFloat(s),H=document.body.offsetWidth,D=document.body.offsetHeight;c.value=H*a.unref(d),p.value=D*O,f.value=`${a.unref(d)*100}%`,u.value={width:`${a.unref(c)}px`,height:`${a.unref(p)}px`},h.value={...a.unref(x),backgroundImage:nt(e.backgroundImage,!0),transform:`scale(${a.unref(c)/parseFloat(r)},${a.unref(p)/parseFloat(i)})`,width:r,height:i}},S=He.debounce(()=>{m()},100),v=()=>{const O=window.MutationObserver;b=new O(S),b.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},_=()=>{b&&(b.disconnect(),b.takeRecords(),b=null)},w=a.ref(!1),{touchRequest:k}=a.inject(Te,{touchRequest:()=>{}}),A=()=>{w.value=!0},E=()=>{n("close"),w.value=!1},C=()=>{E()},T=()=>{E()},{setModalModel:R,pushUseModalIds:B,popUseModalIds:F}=a.inject(Br,{pushUseModalIds:O=>{},popUseModalIds:()=>{},setModalModel:(O,H)=>{}}),I=()=>{const O=e.id;let H=[];const D=e.componentList;Array.isArray(D)&&(H=D.map(N=>N.id),R(O,[...new Set(H)]))};a.watch(()=>w.value,async O=>{O?(g.value=!1,B(e.id),I(),await a.nextTick(()=>{m(),window.addEventListener("resize",S),v(),g.value=!0}),k()):(F(),window.removeEventListener("resize",S),_())});const $=a.computed(()=>a.unref(d)>=1),q=a.computed(()=>e.fullModal),L=a.computed(()=>{let O="ecan-modal";return a.unref($)&&(O+=" ecan-full-width-modal"),a.unref(q)&&(O+=" ecan-full-modal"),O});return be(e,{showModal:A}),{modalRef:y,containStyle:u,contentStyle:h,getContainer:t,modalStyle:o,modalWith:f,isFullModal:q,style:x,visible:w,showModal:A,onOk:C,onCancel:T,isFullWidth:$,wrapClassName:L,ready:g}}}),Bd="",Dd="",uc={key:0};function hc(e,n,t,o,r,i){const l=a.resolveComponent("close-outlined"),s=a.resolveComponent("a-modal");return a.openBlock(),a.createBlock(s,{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"},{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"})},[e.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:"ant-modal-title",style:a.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},a.toDisplayString(e.title),5)):a.createCommentVNode("",!0),a.createVNode(l,{class:"close-icon",onClick:e.onCancel},null,8,["onClick"])],4),e.componentList.length?(a.openBlock(),a.createElementBlock("div",uc,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.componentList,(f,c)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(f.type),a.mergeProps({key:f.id+c},f),null,16))),128))])):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"])}const rt=fe(le(dc,[["render",hc],["__scopeId","data-v-4234f235"]]));qe.use([it.CanvasRenderer,Ue.PieChart,xe.TitleComponent,xe.ToolboxComponent,xe.TooltipComponent,xe.LegendComponent]);const xc=a.defineComponent({name:"EcanPie",props:{...Lo},components:{Spin:_t,Echarts:Qe,EcanModal:rt},setup(e,{expose:n}){const t=a.ref(!1),o=ue(e),r=a.ref([]),i=a.ref(),l=a.computed(()=>{let{data:k=[]}=a.unref(r)[0]||{};if(Array.isArray(e.colors)){const A=e.isUseLabelColors,E=e.colors;k=k.map((C,T)=>({label:A?{color:E[T]}:{},...C}))}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 A;t.value=!0,(A=i.value)==null||A.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:A=>{const{marker:E,seriesName:C,name:T,value:R,percent:B,data:F}=A||{};return ye(e.tooltipFormatter,{textData:{marker:E,name:T,value:R,percent:B,a:C,b:T,c:R,d:B,...F}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:t.value?ct:e.labelFontSize}},color:e.colors,series:[{data:k,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?ct:e.labelFontSize,position:e.labelPosition,formatter:Cl(e.labelFormatter)},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),s=()=>{t.value=!1},{getGlobalModel:f,setGlobalModel:c}=a.inject(Se,{getGlobalModel:k=>{},setGlobalModel:(k,A)=>{}}),{pageMode:d}=a.inject(Ee,{pageMode:"normal"}),p=(k=[],A)=>{const{dataset:E}=Et(k,A);r.value=E},u=(k=[],A)=>{const E=Et(k,A);r.value=E.dataset};a.watch(()=>e.data,k=>{(e.dataType==="static"||a.unref(d)==="design")&&p(k)},{immediate:!0,deep:!0});const x=a.ref(!1),h=Pe(e),g=async()=>{var k,A;if(e.dataType==="request")try{x.value=!0;const E=await h();p((A=(k=E==null?void 0:E.data)==null?void 0:k.data)==null?void 0:A.rows,e.valueTypeDataFieldNames)}catch(E){console.error(E)}finally{x.value=!1}},b=pe(e)("click",k=>{const A=f(e.id);c(e.id,{...A,RECORD:k==null?void 0:k.data})}),m=Bt(e),S=async()=>{var k;try{x.value=!0;const A=await m(),{data:E}=A.data||{};if(E){const{columns:C=[],rows:T=[]}=((k=A==null?void 0:A.data)==null?void 0:k.data)??{};let R=[];if(C.length>0){const B=C[0],F=C[1];R=T.map(I=>({name:I[B],value:I[F]}))}u(R)}}catch(A){console.error(A)}finally{x.value=!1}},v=()=>{switch(e.dataType){case"indicator":S();break;case"request":g();break}};be(e,{resetRecord:()=>{const k=e.id,A=f(k);c(k,{...A,RECORD:""})},refreshData:v,click:b}),n({refreshData:v});const{setRequest:w}=a.inject(Te,{setRequest:k=>{}});return typeof w=="function"&&w({id:e.id,requestFn:v,sortNum:e.requestSort}),{option:l,style:o,click:b,onClose:s,loading:x,ecanModal:i}}}),Id="";function gc(e,n,t,o,r,i){const l=a.resolveComponent("echarts"),s=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(s,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{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(s,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const da=fe(le(xc,[["render",gc]])),Po={...he,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:"",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",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},zo=de(Po),ua=["click","refreshData","resetRecord"];qe.use([it.CanvasRenderer,Ue.LineChart,xe.ToolboxComponent,xe.TitleComponent,xe.LegendComponent]);const mc=a.defineComponent({name:"EcanLine",props:{...zo},components:{Spin:_t,Echarts:Qe,EcanModal:rt},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=ue(e),i=a.ref([]),l=a.ref([]),s=a.ref(),f=a.computed(()=>o.value?ct:12),c=a.ref({});let d;const p=a.computed(()=>{const B=e.xAxisLabelFormatter,F=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 I;o.value=!0,(I=s.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})}}}},title:{text:e.titleText,subText:e.titleSubtext,left:"center"},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:I=>{var O;const $=I.length;let q="",L=e.tooltipFormatter;d=(O=I[0])==null?void 0:O.data,L===""&&(L="{marker} {a} {c}");for(let H=0;H<$;H++){const{marker:D,seriesName:N,name:z,value:P,data:Y}=I[H]||{};H===0&&(q+=`${z}<br/>`),q+=ye(L,{textData:{marker:D,name:z,value:P,a:N,b:z,c:P,...Y}},{useNewline:!0,useSpace:!0}),q+="<br/>"}return q}},xAxis:{type:"category",data:a.unref(l).map(I=>{let $={};return I&&typeof I=="object"?$={...I,textStyle:{fontSize:f.value}}:$={value:I,textStyle:{fontSize:f.value}},$}),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,formatter(I){return ot(B,I)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{fontSize:f.value,color:e.yAxisLabelColor,formatter(I){return ot(F,I)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:f.value}},series:a.unref(i)}}),u=()=>{o.value=!1},{getGlobalModel:x,setGlobalModel:h}=a.inject(Se,{getGlobalModel:B=>{},setGlobalModel:(B,F)=>{}}),{pageMode:g}=a.inject(Ee,{pageMode:"normal"}),y=(B=[],F=!1)=>{let I;if(e.dataFieldConfigType==="key"){const O=F?e.keyTypeDataFieldNames:null;I=vt(B,O)}else if(e.dataFieldConfigType==="value"){const O=F?e.valueTypeDataFieldNames:null;I=Et(B,O)}l.value=I.dimensions;const $=I.dataset,q=[],L=$.length;for(let O=0;O<L;O++)q.push({type:"line",...$[O],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});i.value=q},b=(B=[],F,I=!1)=>{const q=vt(B,I?F:null);l.value=q.dimensions;const L=q.dataset,O=[],H=L.length;for(let D=0;D<H;D++)O.push({type:"line",...L[D],symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}});i.value=O};a.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity],([B])=>{(e.dataType==="static"||a.unref(g)==="design")&&y(B)},{immediate:!0,deep:!0});const m=a.ref(!1),S=Pe(e),v=async()=>{var B,F;if(e.dataType==="request")try{m.value=!0;const I=await S();y((F=(B=I==null?void 0:I.data)==null?void 0:B.data)==null?void 0:F.rows,!0)}catch(I){console.error(I)}finally{m.value=!1}},w=pe(e)("click",B=>{const F=x(e.id);h(e.id,{...F,RECORD:e.tooltipShow?d:B.data})}),k=B=>{t.value.chart.containPixel("grid",[B.offsetX,B.offsetY])&&w()};e.tooltipShow?c.value["zr:click"]=k:c.value.click=w;const A=Bt(e),E=async()=>{var B;try{m.value=!0;const F=await A(),{columns:I=[],rows:$=[]}=((B=F==null?void 0:F.data)==null?void 0:B.data)??{};let q;I.length>0&&(q={name:I[0],types:I.slice(1).map(L=>({label:L,value:L}))}),b($,q,!0)}catch(F){console.error(F)}finally{m.value=!1}},C=()=>{switch(e.dataType){case"indicator":E();break;case"request":v();break}};be(e,{refreshData:C,resetRecord:()=>{const B=e.id,F=x(B);h(B,{...F,RECORD:""})},click:w});const{setRequest:R}=a.inject(Te,{setRequest:B=>{}});return typeof R=="function"&&R({id:e.id,requestFn:C,sortNum:e.requestSort}),n({refreshData:C}),{option:p,style:r,click:w,loading:m,onClose:u,ecanModal:s,eventObj:c,echartRef:t}}}),Od="";function pc(e,n,t,o,r,i){const l=a.resolveComponent("echarts"),s=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(s,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,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(s,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ha=fe(le(mc,[["render",pc]])),Mo={...he,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:"",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",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:"",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1},Fo=de(Mo),xa=["refreshData","click","resetRecord"];qe.use([it.CanvasRenderer,Ue.BarChart,xe.TitleComponent,xe.LegendComponent,xe.DatasetComponent,xe.ToolboxComponent]);const yc=a.defineComponent({name:"EcanBar",props:{...Fo},components:{Spin:_t,Echarts:Qe,EcanModal:rt,AModal:ae.Modal},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=a.ref(!1),i=a.ref(null),l=a.ref([]),s=ue(e),f=a.ref([]),c=a.ref(),d=a.computed(()=>o.value?ct:12),p=a.computed(()=>{const{gradientShow:L,gradientColor:O,gradientOffset:H}=e,D=a.unref(f),N=D.length,z=[];for(let P=0;P<N;P++){const Y={...D[P],type:"bar",barWidth:e.barWidth};e.isStack&&(Y.stack="stack"),Y.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},L&&O&&(Y.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[P]},{offset:H,color:O},{offset:1,color:O}]}}),z.push(Y)}return console.log(z),z}),u=a.ref([]),x=a.ref(!1),h=a.computed(()=>{const L=e.yAxisLabelFormatter,O=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:D}=H||{};D&&D.length&&(l.value=D[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 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,left:"center"},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 D=H.length;let N="",z=e.tooltipFormatter;z===""&&(z="{marker} {a} {c}");for(let P=0;P<D;P++){const{marker:Y,seriesName:Z,name:Q,value:G,data:ke}=H[P]||{};P===0&&(N+=`${Q}<br/>`),N+=ye(z,{textData:{marker:Y,name:Q,value:G,a:Z,b:Q,c:G,...ke}},{useNewline:!0,useSpace:!0}),N+="<br/>"}return N},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:d.value}},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:a.unref(S),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,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,formatter(H){return ot(O,H)}},axisLine:{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}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{fontSize:d.value,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(H){return ot(L,H)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:a.unref(p)}}),{pageMode:g}=a.inject(Ee,{pageMode:"normal"}),y=()=>{o.value=!1},b=(L=[],O=!1)=>{let H={};if(e.dataFieldConfigType==="key"){const D=O?e.keyTypeDataFieldNames:null;H=vt(L,D)}else if(e.dataFieldConfigType==="value"){const D=O?e.valueTypeDataFieldNames:null;H=Et(L,D)}f.value=H.dataset,u.value=H.dimensions},m=(L=[],O,H=!1)=>{const N=vt(L,H?O:null);f.value=N.dataset,u.value=N.dimensions},S=a.computed(()=>a.unref(u).map(L=>{let O={};return L&&typeof L=="object"?O={...L,textStyle:{fontSize:d.value}}:O={value:L,textStyle:{fontSize:d.value}},O}));a.watch(()=>e.data,L=>{(e.dataType==="static"||a.unref(g)==="design")&&b(L)},{immediate:!0,deep:!0});const v=Pe(e),_=async()=>{var L,O;try{x.value=!0;const H=await v();b((O=(L=H==null?void 0:H.data)==null?void 0:L.data)==null?void 0:O.rows,!0)}catch(H){console.error(H)}finally{x.value=!1}},w=Bt(e),k=async()=>{var L;try{x.value=!0;const O=await w(),{columns:H=[],rows:D=[]}=((L=O==null?void 0:O.data)==null?void 0:L.data)??{};let N;H.length>0&&(N={name:H[0],types:H.slice(1).map(z=>({label:z,value:z}))}),m(D,N,!0)}catch(O){console.error(O)}finally{x.value=!1}},A=()=>{switch(e.dataType){case"indicator":k();break;case"request":_();break}},E=(L,O)=>!!a.unref(l)[O.value].value.includes(L),C=async()=>{r.value=!1;const L=t.value.chart.getOption();for(let O=0;O<7;O++)await T(L,O)},T=(L,O)=>new Promise(H=>{setTimeout(()=>{const{series:D,color:N,xAxis:z}=L,P=t.value.chart,{splitArea:Y={}}=z[0]||{};D.forEach((Z,Q)=>{const G=Z.data;let ke="";O%2?ke=N[Q]+"a8":ke=N[Q],G[i.value].itemStyle={color:ke}}),O%2?(Y.show=!0,Y.areaStyle.color=a.unref(l).map((Z,Q)=>Q===i.value?"#ff003b26":"")):Y.show=!1,P.setOption({series:D,xAxis:z}),H()},200)});n({refreshData:A});const R=pe(e),{getGlobalModel:B,setGlobalModel:F}=a.inject(Se,{getGlobalModel:L=>{},setGlobalModel:(L,O)=>{}}),I=R("click",L=>{const O=B(e.id);F(e.id,{...O,RECORD:L.data})}),{setRequest:$}=a.inject(Te,{setRequest:L=>{}});return typeof $=="function"&&$({id:e.id,requestFn:A,sortNum:e.requestSort}),be(e,{refreshData:A,click:I,resetRecord:()=>{const L=e.id,O=B(L);F(L,{...O,RECORD:""})}}),{option:h,style:s,refreshData:A,click:I,loading:x,onClose:y,ecanModal:c,echartRef:t,handleLocationOk:C,onFilterOption:E,locationVisible:r,locationValue:i,locationNames:l}}}),Pd="",zd="",vc=e=>(a.pushScopeId("data-v-c027d4fb"),e=e(),a.popScopeId(),e),bc={class:"location-wrap"},Sc=vc(()=>a.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function wc(e,n,t,o,r,i){const l=a.resolveComponent("echarts"),s=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal"),c=a.resolveComponent("a-select-option"),d=a.resolveComponent("a-select"),p=a.resolveComponent("a-modal");return a.openBlock(),a.createElementBlock("div",{class:"ecan-bar",style:a.normalizeStyle(e.style)},[a.createVNode(s,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{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(s,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),a.createVNode(p,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:a.withCtx(()=>[a.createElementVNode("div",bc,[Sc,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,x)=>(a.openBlock(),a.createBlock(c,{key:x,value:x},{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 ga=fe(le(yc,[["render",wc],["__scopeId","data-v-c027d4fb"]])),Vo={...he,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:"",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:"当前无说明信息"},qo=de(Vo),ma=["click","refreshData","resetRecord"];qe.use([it.CanvasRenderer,Ue.ScatterChart,xe.ToolboxComponent,xe.TitleComponent,xe.TooltipComponent,xe.LegendComponent]);const Cc=a.defineComponent({name:"EcanScatter",props:{...qo},components:{Spin:_t,Echarts:Qe,EcanModal:rt},setup(e){const n=a.ref(!1),t=ue(e),o=a.ref([]),r=a.ref(),i=a.computed(()=>n.value?ct:12),l=a.computed(()=>{const v=e.xAxisLabelFormatter,_=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 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,left:"center"},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:i.value,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(w){return ot(v,w)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{fontSize:i.value,color:e.yAxisLabelColor,formatter(w){return ot(_,w)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(w){var R;const{marker:k,seriesName:A}=w,E=((R=w==null?void 0:w.data)==null?void 0:R.record)??{},{name:C,value:T}=E;return ye(e.tooltipFormatter,{textData:{marker:k,seriesName:A,a:A,b:C,c:T,...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:s,setGlobalModel:f}=a.inject(Se,{getGlobalModel:v=>{},setGlobalModel:(v,_)=>{}}),{pageMode:c}=a.inject(Ee,{pageMode:"normal"}),d=(v=[],_)=>{const{name:w="name",value:k="value"}=_||{};o.value=v.map(A=>({value:[A[w],A[k]],record:A}))};a.watch(()=>e.data,v=>{(e.dataType==="static"||a.unref(c)==="design")&&d(v)},{immediate:!0,deep:!0});const p=a.ref(!1),u=Pe(e),x=async()=>{var v,_;if(e.dataType==="request"){p.value=!0;try{const w=await u();d((_=(v=w==null?void 0:w.data)==null?void 0:v.data)==null?void 0:_.rows,e.dataFieldNames)}catch(w){console.error(w)}finally{p.value=!1}}},h=()=>{n.value=!1},y=pe(e)("click",v=>{const _=e.id,w=s(_);f(_,{...w,RECORD:v==null?void 0:v.data})});be(e,{refreshData:()=>{x()},click:y,resetRecord:()=>{const v=e.id,_=s(v);f(v,{..._,RECORD:""})}});const{setRequest:S}=a.inject(Te,{setRequest:v=>{}});return typeof S=="function"&&S({id:e.id,requestFn:x,sortNum:e.requestSort}),{option:l,style:t,click:y,loading:p,onClose:h,ecanModal:r}}}),Fd="";function kc(e,n,t,o,r,i){const l=a.resolveComponent("echarts"),s=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(s,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{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(s,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const pa=fe(le(Cc,[["render",kc]])),Ho={...he,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},$o=de(Ho),_c=a.defineComponent({name:"EcanCustomGraph",props:{...$o},components:{Echarts:Qe},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:Ka}}});function Ac(e,n,t,o,r,i){const l=a.resolveComponent("echarts");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const ya=fe(le(_c,[["render",Ac]])),jo={...he,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:"",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",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,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%"},Uo=de(jo),va=["refreshData","click","resetRecord"];qe.use([it.CanvasRenderer,Ue.BarChart,Ue.LineChart,xe.TitleComponent,xe.LegendComponent,xe.DatasetComponent,xe.ToolboxComponent]);const Ec=a.defineComponent({name:"EcanComboGraph",props:{...Uo},components:{Spin:_t,Echarts:Qe,EcanModal:rt,AModal:ae.Modal},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=a.ref(!1),i=a.ref(null),l=a.ref([]),s=ue(e),f=a.ref([]),c=a.ref([]),d=a.ref(),p=a.computed(()=>o.value?ct:12),u=a.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},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:L}=q||{};L&&L.length&&(l.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(){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=d.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})}}}},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:p.value}},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:q=>{const L=q.length;let O="",H=e.tooltipFormatter;H===""&&(H="{marker} {a} {c}");const D=e.seriesTypes;for(let N=0;N<L;N++){const z=D[N],{tooltipFormatter:P}=z||{},{marker:Y,seriesName:Z,name:Q,value:G,data:ke}=q[N]||{};N===0&&(O+=`${Q}<br/>`),O+=ye(P||H,{textData:{marker:Y,name:Q,value:G,seriesName:Z,a:Z,b:Q,c:G,...ke}},{useNewline:!0,useSpace:!0}),O+="<br/>"}return O},textStyle:{color:e.tooltipTextStyleColor,fontSize:p.value}},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:a.unref(c).map(q=>{let L={};return q&&typeof q=="object"?L={...q,textStyle:{fontSize:p.value}}:L={value:q,textStyle:{fontSize:p.value}},L}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:a.unref(b),series:a.unref(f)})),{pageMode:x}=a.inject(Ee,{pageMode:"normal"}),h=()=>{o.value=!1},g=(q=[],L=!1)=>{let O;if(e.dataFieldConfigType==="key"){const P=L?e.keyTypeDataFieldNames:null;O=vt(q,P)}else if(e.dataFieldConfigType==="value"){const P=L?e.valueTypeDataFieldNames:null;O=Et(q,P)}c.value=O.dimensions;const H=O.dataset,D=[],N=H.length,z=e.seriesTypes;for(let P=0;P<N;P++){const Y=z[P],{type:Z,axisIndex:Q}=Y||{};let G={type:Z,yAxisIndex:Q,...H[P]};Z==="line"&&(G={...G,symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}}),Z==="bar"&&(G={...G,barWidth:e.barWidth}),D.push(G)}f.value=D},y=(q=[],L,O=!1)=>{const D=vt(q,O?L:null);c.value=D.dimensions;const N=D.dataset,z=[],P=N.length,Y=e.seriesTypes;for(let Z=0;Z<P;Z++){const Q=Y[Z];z.push({type:Q==null?void 0:Q.type,yAxisIndex:Q==null?void 0:Q.axisIndex,...N[Z]})}f.value=z};a.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth],([q])=>{(e.dataType==="static"||a.unref(x)==="design")&&g(q)},{immediate:!0,deep:!0});const b=a.computed(()=>{const q=e.yAxis;return q==null?void 0:q.map(L=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{fontSize:p.value,color:e.yAxisLabelColor,formatter(O){return ot(L.axisLabelFormatter,O)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),m=a.ref(!1),S=Pe(e),v=async()=>{var q,L;if(e.dataType==="request")try{m.value=!0;const O=await S();g((L=(q=O==null?void 0:O.data)==null?void 0:q.data)==null?void 0:L.rows,!0)}catch(O){console.error(O)}finally{m.value=!1}},_=Bt(e),w=async()=>{var q;try{m.value=!0;const L=await _(),{columns:O=[],rows:H=[]}=((q=L==null?void 0:L.data)==null?void 0:q.data)??{};let D;O.length>0&&(D={name:O[0],types:O.slice(1).map(N=>({label:N,value:N}))}),y(H,D,!0)}catch(L){console.error(L)}finally{m.value=!1}},k=()=>{switch(e.dataType){case"indicator":w();break;case"request":v();break}},A=(q,L)=>!!a.unref(l)[L.value].value.includes(q),E=async()=>{r.value=!1;const q=t.value.chart.getOption();for(let L=0;L<7;L++)await C(q,L)},C=(q,L)=>new Promise(O=>{setTimeout(()=>{const{series:H,color:D,xAxis:N}=q,z=t.value.chart,{splitArea:P={}}=N[0]||{};H.forEach((Y,Z)=>{const Q=Y.data;let G="";L%2?G=D[Z]+"a8":G=D[Z],Q[i.value].itemStyle={color:G}}),L%2?(P.show=!0,P.areaStyle.color=a.unref(l).map((Y,Z)=>Z===i.value?"#ff003b26":"")):P.show=!1,z.setOption({series:H,xAxis:N}),O()},200)});n({refreshData:k});const T=pe(e),{getGlobalModel:R,setGlobalModel:B}=a.inject(Se,{getGlobalModel:q=>{},setGlobalModel:(q,L)=>{}}),F=T("click",q=>{const L=R(e.id);B(e.id,{...L,RECORD:q==null?void 0:q.data})}),{setRequest:I}=a.inject(Te,{setRequest:q=>{}});return typeof I=="function"&&I({id:e.id,requestFn:k,sortNum:e.requestSort}),be(e,{resetRecord:()=>{const q=e.id,L=R(q);B(q,{...L,RECORD:""})},refreshData:k,click:F}),{style:s,option:u,click:F,loading:m,onClose:h,ecanModal:d,echartRef:t,handleLocationOk:E,onFilterOption:A,locationVisible:r,locationValue:i,locationNames:l}}}),Hd="",$d="",Tc=e=>(a.pushScopeId("data-v-6dda22c0"),e=e(),a.popScopeId(),e),Bc={class:"location-wrap"},Dc=Tc(()=>a.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Rc(e,n,t,o,r,i){const l=a.resolveComponent("echarts"),s=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal"),c=a.resolveComponent("a-select-option"),d=a.resolveComponent("a-select"),p=a.resolveComponent("a-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(s,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{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(s,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),a.createVNode(p,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:a.withCtx(()=>[a.createElementVNode("div",Bc,[Dc,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,x)=>(a.openBlock(),a.createBlock(c,{key:x,value:x},{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 ba=fe(le(Ec,[["render",Rc],["__scopeId","data-v-6dda22c0"]])),Go={...he,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5px",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{}},Wo=de(Go),Sa=["click"],Ic=a.defineComponent({name:"EcanBorder",props:{...Wo},setup(e){const n=ue(e,["background"]),{theme:t}=a.inject(Ee,{theme:"light"}),o=a.computed(()=>({width:"100%",height:"100%"})),i=pe(e)("click",()=>{}),l=a.ref([]);a.watch(()=>e.data,f=>{l.value=f},{immediate:!0,deep:!0}),be(e,{click:i});const{setGlobalModel:s}=a.inject(Se,{setGlobalModel:(f,c)=>{}});return s(e.id,{type:e.type,value:l}),{style:n,click:i,borderStyle:o,theme:t}}}),Lc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Oc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Ud="",Ve=e=>(a.pushScopeId("data-v-1550b11b"),e=e(),a.popScopeId(),e),Nc=Ve(()=>a.createElementVNode("div",{class:"top-left border-item"},null,-1)),Pc=Ve(()=>a.createElementVNode("div",{class:"top-right border-item"},null,-1)),zc=Ve(()=>a.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Mc=Ve(()=>a.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Fc={class:"title-item-wrapper"},Vc={class:"title-item"},qc=Ve(()=>a.createElementVNode("img",{class:"title-decoration-left",src:Lc},null,-1)),Hc={class:"title"},$c=Ve(()=>a.createElementVNode("img",{class:"title-decoration-right",src:Oc},null,-1)),jc=Ve(()=>a.createElementVNode("div",{class:"top-left border-item"},null,-1)),Uc=Ve(()=>a.createElementVNode("div",{class:"top-right border-item"},null,-1)),Gc=Ve(()=>a.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Wc=Ve(()=>a.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Zc={key:2,class:"left-title"},Kc={class:"title"};function Yc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:"ecan-border",style:a.normalizeStyle(e.style),onClick:n[0]||(n[0]=(...l)=>e.click&&e.click(...l))},[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},[Nc,Pc,zc,Mc],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",Fc,[a.createElementVNode("div",Vc,[qc,a.createElementVNode("div",Hc,a.toDisplayString(e.title),1),$c])]),jc,Uc,Gc,Wc],4)):a.createCommentVNode("",!0),e.mode==="left-title"?(a.openBlock(),a.createElementBlock("div",Zc,[a.createElementVNode("div",Kc,[a.createElementVNode("span",null,a.toDisplayString(e.title),1)])])):a.createCommentVNode("",!0)],4)}const wa=fe(le(Ic,[["render",Yc],["__scopeId","data-v-1550b11b"]])),Zo={...he,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"},Ko=de(Zo),Ca=["tabChange"],Xc=a.defineComponent({name:"EcanTabs",props:{...Ko},setup(e){const n=ue(e),t=a.ref(0);a.watch(()=>e.activeKey,x=>{t.value=x},{immediate:!0});const{pageMode:o}=a.inject(Ee,{pageMode:"normal"});let r=null;const i=()=>{const x=Array.isArray(a.unref(l))?a.unref(l).length-1:0;e.autoSwitch&&x>0&&(r=setInterval(()=>{const h=a.unref(t)+1;h<=x?t.value=h:t.value=0,s.value=a.unref(l)[a.unref(t)],p()},e.autoSwitchInterval*1e3))};a.onMounted(()=>{a.unref(o)!=="design"&&i()}),a.onBeforeUnmount(()=>{clearInterval(r)});const l=a.ref([]),s=a.ref({});a.watch(()=>e.data,x=>{l.value=x,s.value=Array.isArray(x)&&x.length>0?x[0]:{}},{immediate:!0,deep:!0});const f=x=>t.value===x,c=pe(e),{setGlobalModel:d}=a.inject(Se,{setGlobalModel:(x,h)=>{}});d(e.id,{value:s,activeKey:t});const{emitRefreshPage:p}=a.inject(At,{emitRefreshPage:()=>{}}),u=c("tabChange",(x,h)=>{h!==a.unref(t)&&(s.value=x,t.value=h,p())});return be(e,{tabChange:u}),{style:n,activeKey:t,isActive:f,tabChange:u,myData:l,useImagePath:nt}}}),Wd="",Jc=["onClick"];function Qc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:"ecan-tabs",style:a.normalizeStyle(e.style)},[a.createElementVNode("div",{class:"tabs-header",style:a.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.myData,(l,s)=>(a.openBlock(),a.createElementBlock("div",{class:"tab",style:a.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(s)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(s)?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:s,onClick:a.withModifiers(f=>e.tabChange(l,s),["prevent","stop"])},[a.createElementVNode("div",{class:"tab-inner",style:a.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(s)?e.activeTabColor:"transparent"}`:""})},a.toDisplayString(l.title),5)],12,Jc))),128))],4)],4)}const ka=fe(le(Xc,[["render",Qc],["__scopeId","data-v-a2045b93"]])),Yo={...he,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},Xo=de(Yo),ef=a.defineComponent({name:"EcanImage",props:{...Xo},setup(e){const n=ue(e),t=a.computed(()=>nt(e.imgUrl)),{pageMode:o}=a.inject(Ee,{pageMode:"normal"});return{style:n,myImgUrl:t,onClick:()=>{if(!e.linkPage&&!e.href)return;const i=e.linkPage||"",l=L0(a.unref(o),i),s=e.href;let f=s||l;f=ye(f);const c=e.target;c&&(c!=="event"?window.open(f,"_"+c):window.parent.postMessage({type:"openPage",url:s},"*"))}}}}),Kd="",tf=["src"];function nf(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]=(...l)=>e.onClick&&e.onClick(...l))},null,12,tf)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"image-placeholder",style:a.normalizeStyle(e.style)}," 请上传图片 ",4))}const _a=fe(le(ef,[["render",nf],["__scopeId","data-v-ef7a7bee"]])),Jo={...he,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Qo=de(Jo),of=a.defineComponent({name:"EcanIframe",props:{...Qo},setup(e){const n=ue(e),{contextRequestUrl:t}=a.inject(Ee,{contextRequestUrl:""}),o=a.computed(()=>{let r=ye(e.link);if(e.linkType==="erd"&&r!=null){let i=a.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${ms||i}?_t=0&uid=${r}`}return r});return{style:n,myLink:o}}}),Xd="",rf=["src"];function af(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,rf)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"iframe-placeholder",style:a.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Aa=fe(le(of,[["render",af],["__scopeId","data-v-19bc100c"]])),er={...he,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:"",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:{}},tr=de(er),Ea=["click","refreshData","resetRecord","exportTableData"],sf=a.defineComponent({name:"EcanTable",components:{Skeleton:Ft,AButton:ae.Button,AInput:ae.Input,ACheckboxGroup:ae.CheckboxGroup,ATable:ae.Table,ATableSummary:ae.TableSummary,ATableSummaryRow:ae.TableSummaryRow,ATableSummaryCell:ae.TableSummaryCell},props:{...tr},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=ue(e),i=a.computed(()=>{if(e.paginationShow)switch(e.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(e.size){case"small":return 40;case"middle":return 47;default:return 55}}),l=a.computed(()=>e.scrollX),s=a.computed(()=>parseFloat(e.height)-a.unref(i)),f=a.ref([]),c=a.ref([]),d=a.ref([]),p=a.ref([]),u=a.ref(0),x=a.ref(1),h=a.ref(e.paginationPageSize||10),g=a.reactive([]),y=(j=[])=>{if(Array.isArray(j)&&j.length>0){const U=j.length,K=e.columnsFixedNum;for(let X=0;X<U;X++){const W=j[X];X<K?W.fixed="left":W.fixed=!1;const{cellAlign:ie="center",cellColor:ee,dataIndex:oe,title:se,tableFilter:ce,headerCellAlign:Fe,headerCellColor:ve}=W;ce&&(g.push(oe),W.filterOptionsInputValue="",W.filterCheckboxGroupValue=[],W.customFilterDropdown=!0,W.onFilter=(Ae,It)=>It[oe].toString().toLowerCase().includes(Ae.toLowerCase())),W.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Fe||"center",color:ve,borderBottomColor:e.borderColor}}),W.customCell=(Ae,It)=>({style:{textAlign:ie,color:ee,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:a.unref(H)===It&&e.clickHighlight},onClick:F("click",()=>{const Lt=e.id,Qt=I(Lt);Ae={dataIndex:oe,title:se,...Ae},$(Lt,{...Qt,RECORD:Ae})})}),Array.isArray(W.children)&&y(W.children)}}},b=(j=[])=>(e.isUseSeq&&j.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&j.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),y(j),j);a.watch(h,()=>{x.value=1,N(!1)}),a.watch(t,j=>{o.value=!!j}),a.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor],()=>{f.value=b(He.cloneDeep(e.columns))},{immediate:!0,deep:!0}),a.watch(()=>[e.data,e.dataType],([j,U])=>{U==="static"&&(c.value=j)},{immediate:!0});const m=a.ref({}),S=j=>{if(Array.isArray(j)){const U=j.length,K=g,X=K.length,W={};for(let ee=0;ee<U;ee++){const oe=j[ee];for(let se=0;se<X;se++){const ce=K[se];if(W[ce])W[ce].add(oe[ce]);else{const Fe=new Set;Fe.add(oe[ce]),W[ce]=Fe}}}const ie={};for(const ee in W)if(Object.prototype.hasOwnProperty.call(W,ee)){const oe=W[ee],se=Array.from(oe);ie[ee]=se.map(ce=>({label:ce,value:ce}))}m.value=ie}};a.watch(()=>[e.isReverse,f.value,c.value],()=>{const j=a.unref(f),U=a.unref(c);if(S(U),e.isReverse){const{columns:K,dataSource:X}=v(He.cloneDeep(j),He.cloneDeep(U));d.value=K,p.value=X}else d.value=j,p.value=U},{immediate:!0});const v=(j,U)=>{const K=j[0],X=[{title:K.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ie=0;ie<U.length;ie++){const ee=U[ie],oe="col"+(ie+1);X.push({title:ee[K.dataIndex],dataIndex:oe,key:oe,align:"center"})}const W=[];for(let ie=1;ie<j.length;ie++){const ee=j[ie],oe={col0:ee.title};for(let se=0;se<U.length;se++){const ce=U[se];oe[`col${se+1}`]=ce[ee.dataIndex]}W.push(oe)}return{columns:X,dataSource:W}},_=a.ref(""),w=Pe(e),k=a.ref(!1),A=async(j=!0,U={})=>{var K;try{j&&(k.value=!0),a.unref(_)&&(U.orderCondition=a.unref(_)),e.paginationShow&&(U={pageNum:a.unref(x),pageSize:a.unref(h)||"10",layer:"1",...U});const X=await w(U),{rows:W=[],total:ie=0}=((K=X==null?void 0:X.data)==null?void 0:K.data)||{};if(u.value=ie,Array.isArray(W)&&(c.value=W),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ee=[]}=e,oe=ee.find(se=>se.key==="dataSqlId");if((oe==null?void 0:oe.value)==="xt_jxzebg"){const se=W.filter(ce=>!ce.绩效总额).map(ce=>ce.ORG_NAME);se!=null&&se.length&&a.nextTick(()=>{ae.notification.warning({message:"提示",description:`当前时段${se.join("、")}绩效数据为空`,duration:3})})}}}catch(X){console.error(X)}finally{k.value=!1}},E=({current:j},U,K)=>{if(x.value=j,K&&Object.keys(K).length>0){const{field:X,order:W}=K,ee={ascend:"asc",descend:"desc"}[W];X!=null&&ee!=null&&(_.value=X+" "+ee,x.value=1)}N(!1)},C=a.computed(()=>{const j=e.simple,U=[e.paginationPosition];return e.paginationShow&&{simple:j,position:U,total:a.unref(u),current:a.unref(x),pageSize:a.unref(h)||"10",showSizeChanger:!1}}),T=j=>+j==1?"是":+j==0?"否":j,R=(j,U)=>U==null||U===""?j:{money:ao,percentage:Yt,contrast:Yt,boolean:T}[U](j)||"",B=(j,U)=>{const K=parseFloat(j+"");if(U!=="contrast")return"";switch(!0){case K>=0:return"goUp";case K<0:return"goDown"}},F=pe(e),{getGlobalModel:I,setGlobalModel:$}=a.inject(Se,{getGlobalModel:j=>{},setGlobalModel:(j,U)=>{}}),q=(j=[],U=[])=>{const K=j.map(X=>({title:X,dataIndex:X,key:X}));f.value=b(K),c.value=U},L=Bt(e),O=async()=>{var j,U,K,X;try{k.value=!0;const W=await L();q((U=(j=W==null?void 0:W.data)==null?void 0:j.data)==null?void 0:U.columns,(X=(K=W==null?void 0:W.data)==null?void 0:K.data)==null?void 0:X.rows)}catch(W){console.error(W)}finally{k.value=!1}},H=a.ref(-1),D=(j,U)=>({onClick:F("rowClick",()=>{const K=e.id,X=I(K);$(K,{...X,RECORD:j}),H.value=U})}),N=(j=!0)=>{switch(e.dataType){case"request":A(j);break;case"indicator":O();break}},z=()=>{const j=e.id,U=I(j);$(j,{...U,RECORD:""})},P=a.computed(()=>{const j=a.unref(d),U=[];let K=0;for(let W=0;W<j.length;W++){const ie=j[W],{isCalcTotal:ee}=ie;e.isUseSeq&&W===0?U.push({...ie,total:"小计"}):ee?(U.push({...ie,index:W,total:0}),K++):U.push({...ie})}if(K===0)return[];const X=a.unref(p);for(let W=0;W<U.length;W++){const ie=U[W];let ee=0;const{isCalcTotal:oe,dataIndex:se}=ie;if(oe===!0){for(let ce=0;ce<X.length;ce++){const ve=+X[ce][se];isNaN(ve)||(ee=new Wa.Big(ee).add(ve).toNumber())}ie.total=ee}}return U}),{setRequest:Y}=a.inject(Te,{setRequest:j=>{}});typeof Y=="function"&&Y({id:e.id,requestFn:N,sortNum:e.requestSort}),n({refreshData:N});const Z=(j="",U)=>ye(j,U),Q=j=>{if(j!=="event")return{self:"_self",blank:"_blank"}[j]},G=(j,U="")=>{j==="event"&&window.parent.postMessage({type:"openPage",url:U},"*")},ke=(j,U)=>{j(U.filterCheckboxGroupValue)},Xe=(j,U)=>{j({confirm:!0}),U.filterOptionsInputValue="",U.filterCheckboxGroupValue=[]},Rt=()=>{},at=j=>{const U=j.dataIndex;if(typeof U=="string"){let K=a.unref(m)[U];const X=a.unref(j.filterOptionsInputValue).trim();return Array.isArray(K)?(K=K.filter(W=>typeof W.label=="string"?W.label.toLowerCase().includes(X.toLowerCase()):!0),K):[]}return[]},Be=async()=>{var ce,Fe;const j="EXPORT_KEY";ae.message.loading({key:j,content:"正在导出...",duration:0});let U=[];if(e.dataType==="static")U=e.data;else if(e.dataType==="request"){const ve={layer:"1"};a.unref(_)&&(ve.orderCondition=a.unref(_));const Ae=await w(ve);U=((Fe=(ce=Ae==null?void 0:Ae.data)==null?void 0:ce.data)==null?void 0:Fe.rows)||{}}const K=a.unref(d),X=[],W=[];K==null||K.forEach(ve=>{X.push(ve.dataIndex),W.push(ve.title)});const ie=U.map(ve=>He.pick(ve,X)),ee=St.utils.book_new(),oe=St.utils.aoa_to_sheet([W]),se=St.utils.sheet_add_json(oe,ie,{skipHeader:!0,origin:"A2"});St.utils.book_append_sheet(ee,se,"sheet"),St.writeFile(ee,"表格数据.xlsx"),ae.message.success({key:j,content:"导出成功"})},_e=(j,U=2)=>{const K=+j*100;return isNaN(K)||K<=0?0:K>=100?100:K.toFixed(U)};return be(e,{resetRecord:z,refreshData:N,exportTableData:Be}),{x:l,y:s,style:r,customRow:D,pagination:C,formatFn:R,contrastClass:B,tableChange:E,summaryList:P,loading:k,onTouchHrefEvent:G,handleHref:Z,handleHrefTarget:Q,useRowIndex:H,tableColumns:d,tableDataSource:p,useFilterOptions:at,useSetSelectedKeys:ke,onResetFilter:Xe,onSearchFilterOptions:Rt,exportTableData:Be,handleProgressText:_e,pageSizeVisible:o,pageSize:h,tableRef:t}}}),Qd="",e1="",lf=["id"],cf={key:0,class:"table-tool"},ff=a.createTextVNode("导出数据"),df=a.createTextVNode(" 搜索 "),uf=a.createTextVNode(" 重置 "),hf={key:0},xf={key:1,class:"action-list"},gf=["href","target","onClick"],mf={key:2,class:"progress-cell"},pf={class:"ant-pagination-options-quick-jumper"},yf=a.createTextVNode(" 条 / 页 ");function vf(e,n,t,o,r,i){const l=a.resolveComponent("a-button"),s=a.resolveComponent("a-input"),f=a.resolveComponent("a-checkbox-group"),c=a.resolveComponent("a-table-summary-cell"),d=a.resolveComponent("a-table-summary-row"),p=a.resolveComponent("a-table-summary"),u=a.resolveComponent("a-table"),x=a.resolveComponent("skeleton");return a.openBlock(),a.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:a.normalizeStyle(e.style)},[a.createVNode(x,{loading:e.loading},{default:a.withCtx(()=>{var h;return[e.isUseExport?(a.openBlock(),a.createElementBlock("div",cf,[a.createVNode(l,{class:"export-button",onClick:e.exportTableData},{default:a.withCtx(()=>[ff]),_:1},8,["onClick"])])):a.createCommentVNode("",!0),a.createVNode(u,{ref:"tableRef",class:"table",style:{height:"100%"},columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:{x:e.x,y:e.y},pagination:e.pagination,onChange:e.tableChange},{customFilterDropdown:a.withCtx(({column:g,selectedKeys:y,setSelectedKeys:b,confirm:m,clearFilters:S})=>[a.createElementVNode("div",{class:"ecan-table-filter",style:a.normalizeStyle({height:e.filterDropdownHeight})},[a.createVNode(s,{value:g.filterOptionsInputValue,"onUpdate:value":v=>g.filterOptionsInputValue=v,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),a.createVNode(f,{value:g.filterCheckboxGroupValue,"onUpdate:value":v=>g.filterCheckboxGroupValue=v,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:v=>e.useSetSelectedKeys(b,g)},null,8,["value","onUpdate:value","options","onChange"]),a.createElementVNode("div",null,[a.createVNode(l,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>m()},{default:a.withCtx(()=>[df]),_:2},1032,["onClick"]),a.createVNode(l,{size:"small",style:{width:"90px"},onClick:a.withModifiers(v=>e.onResetFilter(S,g),["stop"])},{default:a.withCtx(()=>[uf]),_:2},1032,["onClick"])])],4)]),bodyCell:a.withCtx(({column:g,index:y,text:b,record:m})=>[g.dataIndex==="SEQ"?(a.openBlock(),a.createElementBlock("span",hf,a.toDisplayString(y+1),1)):g.dataIndex==="ACTION"?(a.openBlock(),a.createElementBlock("div",xf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.actionList,(S,v)=>(a.openBlock(),a.createElementBlock("div",{class:"action",key:v},[a.createElementVNode("a",{href:e.handleHref(S.href,m),target:e.handleHrefTarget(S.target),style:a.normalizeStyle({color:S.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:_=>e.onTouchHrefEvent(S.target,e.handleHref(S.href,m))},a.toDisplayString(S.title),13,gf)]))),128))])):g.format==="progress"?(a.openBlock(),a.createElementBlock("div",mf,[a.createElementVNode("div",{class:"progress",style:a.normalizeStyle({background:g.progressColor||"#1890ff",height:g.progressWidth||"18px",width:`${e.handleProgressText(b,g.progressTextDecimalPlaces)}%`})},null,4),a.createElementVNode("div",{class:"progress-text",style:a.normalizeStyle({color:e.handleProgressText(b)<100?g.progressTextColor||"#333":g.progressFinishedTextColor||"#fff"})},a.toDisplayString(e.handleProgressText(b,g.progressTextDecimalPlaces))+"% ",5)])):(a.openBlock(),a.createElementBlock("div",{key:3,class:a.normalizeClass([e.contrastClass(b,g.format)]),style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString(g.format!=null?e.formatFn(b,g.format):b),7))]),summary:a.withCtx(()=>[e.summaryList.length>0?(a.openBlock(),a.createBlock(p,{key:0},{default:a.withCtx(()=>[a.createVNode(d,null,{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.summaryList,(g,y)=>(a.openBlock(),a.createBlock(c,{key:y,index:y,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.format)),7)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})):a.createCommentVNode("",!0)]),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","onChange"]),(h=e.tableDataSource)!=null&&h.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(a.openBlock(),a.createBlock(a.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[a.createElementVNode("div",pf,[a.withDirectives(a.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=g=>e.pageSize=g)},null,512),[[a.vModelText,e.pageSize]]),yf])],8,["to"])):a.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,lf)}const Ta=fe(le(sf,[["render",vf],["__scopeId","data-v-7f0c67bf"]])),nr={...he,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:"{b}"},or=de(nr);qe.use([it.CanvasRenderer,Ue.MapChart,Ue.ScatterChart,xe.VisualMapComponent,xe.TooltipComponent,xe.GraphicComponent]);const bf=a.defineComponent({name:"EcanMap",components:{Echarts:Qe},props:{...or},setup(e){const n=ue(e,["backgroundImage"]),t=a.ref(),o=a.computed(()=>nt(e.geoBackgroundImage)),r=a.computed(()=>nt(e.backgroundImage)),i=a.computed(()=>e.geoBackgroundImage?{image:a.unref(t),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),l=a.computed(()=>{const d=e.symbolImage;return e.symbolImage?"image://"+nt(d):"circle"}),s=a.computed(()=>{const d=e.geoCenter;let p;return typeof d=="string"&&d!==""&&(p=d.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:a.unref(r)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:p,map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:a.unref(i),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(l),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,formatter:e.tooltipFormatter,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),f=a.ref(!1),c=async()=>{var p;const d=e.mapJson;if(d!=null&&d.path){const u=await Ye(((p=window==null?void 0:window.config)==null?void 0:p.uploadPath)+d.path);qe.registerMap("map",(u==null?void 0:u.data)||{})}f.value=!0};return a.watch(()=>e.mapJson,()=>{c()},{immediate:!0,deep:!0}),{option:s,style:n,isLoadedData:f,geoBackgroundImageRef:t,myGeoBackgroundImage:o}}}),n1="",Sf=["src"];function wf(e,n,t,o,r,i){const l=a.resolveComponent("echarts");return a.openBlock(),a.createElementBlock("div",{class:"ecan-map",style:a.normalizeStyle(e.style)},[e.isLoadedData?(a.openBlock(),a.createBlock(l,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,Sf),[[a.vShow,!1]])],4)}const Ba=fe(le(bf,[["render",wf],["__scopeId","data-v-1fb5cdee"]])),Da=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:ga,EcanBorder:wa,EcanButton:na,EcanCheckbox:ra,EcanComboGraph:ba,EcanCustomGraph:ya,EcanDatePicker:J0,EcanIframe:Aa,EcanImage:_a,EcanInput:Y0,EcanLine:ha,EcanList:G0,EcanMap:Ba,EcanModal:rt,EcanPageConfig:O0,EcanPie:da,EcanProportion:Z0,EcanProviderConfig:N0,EcanRangePicker:ea,EcanScatter:pa,EcanScrollText:H0,EcanSelect:ia,EcanTable:Ta,EcanTabs:ka,EcanText:q0,EcanTimeDisplay:j0,EcanTreeSelect:la,barComponentProps:Fo,barEvents:xa,barProps:Mo,borderComponentProps:Wo,borderEvents:Sa,borderProps:Go,buttonComponentProps:_o,buttonEvents:ta,buttonProps:ko,checkboxComponentProps:Eo,checkboxEvents:oa,checkboxProps:Ao,comboGraphComponentProps:Uo,comboGraphEvents:va,comboGraphProps:jo,customGraphComponentProps:$o,customGraphProps:Ho,datePickerComponentProps:So,datePickerEvents:X0,datePickerProps:bo,iframeComponentProps:Qo,iframeProps:Jo,imageComponentProps:Xo,imageProps:Yo,inputComponentProps:vo,inputEvents:K0,inputProps:yo,lineComponentProps:zo,lineEvents:ua,lineProps:Po,listComponentProps:go,listEvents:U0,listProps:xo,mapComponentProps:or,mapProps:nr,modalComponentProps:No,modalEvents:fa,modalProps:Oo,pageConfig:xn,pageConfigComponentProps:gn,pieComponentProps:Lo,pieEvents:ca,pieProps:Io,proportionComponentProps:po,proportionEvents:W0,proportionProps:mo,providerConfig:io,providerConfigComponentProps:so,rangePickerComponentProps:Co,rangePickerEvents:Q0,rangePickerProps:wo,scatterComponentProps:qo,scatterEvents:ma,scatterProps:Vo,selectComponentProps:Bo,selectEvents:aa,selectProps:To,tableComponentProps:tr,tableEvents:Ea,tableProps:er,tabsComponentProps:Ko,tabsEvents:Ca,tabsProps:Zo,textComponentProps:co,textEvents:P0,textProps:lo,timeDisplayComponentProps:ho,timeDisplayEvents:$0,timeDisplayProps:uo,treeSelectComponentProps:Ro,treeSelectEvents:sa,treeSelectProps:Do},Symbol.toStringTag,{value:"Module"})),Cf={install:e=>{Object.keys(Da).forEach(n=>{const t=Da[n];t.install&&e.use(t)})}};M.EcanBar=ga,M.EcanBorder=wa,M.EcanButton=na,M.EcanCheckbox=ra,M.EcanComboGraph=ba,M.EcanCustomGraph=ya,M.EcanDatePicker=J0,M.EcanIframe=Aa,M.EcanImage=_a,M.EcanInput=Y0,M.EcanLine=ha,M.EcanList=G0,M.EcanMap=Ba,M.EcanModal=rt,M.EcanPageConfig=O0,M.EcanPie=da,M.EcanProportion=Z0,M.EcanProviderConfig=N0,M.EcanRangePicker=ea,M.EcanScatter=pa,M.EcanScrollText=H0,M.EcanSelect=ia,M.EcanTable=Ta,M.EcanTabs=ka,M.EcanText=q0,M.EcanTimeDisplay=j0,M.EcanTreeSelect=la,M.barComponentProps=Fo,M.barEvents=xa,M.barProps=Mo,M.borderComponentProps=Wo,M.borderEvents=Sa,M.borderProps=Go,M.buttonComponentProps=_o,M.buttonEvents=ta,M.buttonProps=ko,M.checkboxComponentProps=Eo,M.checkboxEvents=oa,M.checkboxProps=Ao,M.comboGraphComponentProps=Uo,M.comboGraphEvents=va,M.comboGraphProps=jo,M.customGraphComponentProps=$o,M.customGraphProps=Ho,M.datePickerComponentProps=So,M.datePickerEvents=X0,M.datePickerProps=bo,M.default=Cf,M.iframeComponentProps=Qo,M.iframeProps=Jo,M.imageComponentProps=Xo,M.imageProps=Yo,M.inputComponentProps=vo,M.inputEvents=K0,M.inputProps=yo,M.lineComponentProps=zo,M.lineEvents=ua,M.lineProps=Po,M.listComponentProps=go,M.listEvents=U0,M.listProps=xo,M.mapComponentProps=or,M.mapProps=nr,M.modalComponentProps=No,M.modalEvents=fa,M.modalProps=Oo,M.pageConfig=xn,M.pageConfigComponentProps=gn,M.pieComponentProps=Lo,M.pieEvents=ca,M.pieProps=Io,M.proportionComponentProps=po,M.proportionEvents=W0,M.proportionProps=mo,M.providerConfig=io,M.providerConfigComponentProps=so,M.rangePickerComponentProps=Co,M.rangePickerEvents=Q0,M.rangePickerProps=wo,M.scatterComponentProps=qo,M.scatterEvents=ma,M.scatterProps=Vo,M.selectComponentProps=Bo,M.selectEvents=aa,M.selectProps=To,M.tableComponentProps=tr,M.tableEvents=Ea,M.tableProps=er,M.tabsComponentProps=Ko,M.tabsEvents=Ca,M.tabsProps=Zo,M.textComponentProps=co,M.textEvents=P0,M.textProps=lo,M.timeDisplayComponentProps=ho,M.timeDisplayEvents=$0,M.timeDisplayProps=uo,M.treeSelectComponentProps=Ro,M.treeSelectEvents=sa,M.treeSelectProps=Do,Object.defineProperties(M,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
116
+ <span>-${Math.abs(+E)}%</span>
117
+ </span>`))):e.format==="percent"?(E=+E,isNaN(E)||(E=(E*100).toFixed(2),S=S.replace(_,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${E}%</span>`))):e.format==="money"?(E=+E,isNaN(E)||(E=ao(E),S=S.replace(_,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${E}</span>`))):C==="thousands"?(E=+E,isNaN(E)||(E=El(E),S=S.replace(_,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${E}</span>`))):S=S.replace(_,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${E}</span>`)}}return`<span>${S}</span>`}),{pageMode:l}=r.inject(Be,{pageMode:"normal"}),s=ze(e),f=r.ref(!1),c=async()=>{var x;try{f.value=!0;const y=await s();t.value=((x=y==null?void 0:y.data)==null?void 0:x.data)||{}}catch(y){console.error(y)}finally{f.value=!1}},d=()=>{e.dataType!=="static"&&c()};be(e,{refreshData:d});const{setRequest:p}=r.inject(De,{setRequest:({id:x,sortNum:y,requestFn:S})=>{}});p({id:e.id,requestFn:d,sortNum:e.requestSort}),be(e,{refreshData:d});const u=ye(e),h=u("click",()=>{if(!e.linkPage&&!e.href)return;const x=e.linkPage||"",y=O0(r.unref(l),x),S=e.href;let m=S||y;m=ve(m);const b=e.target;b&&(b!=="event"?window.open(m,"_"+b):window.parent.postMessage({type:"openPage",url:S},"*"))}),g=u("valueChange",()=>{});return r.watch(()=>i.value,(x,y)=>{x!==y&&g()}),{style:n,myText:i,loading:f,click:h,textIndent:a,vFontSize:o}}}),V0=()=>{r.useCssVars(e=>({"40616da2":e.vFontSize,"7b8c30a0":e.textIndent,"7bb1ef08":e.percentageSide}))},q0=fo.setup;fo.setup=q0?(e,n)=>(V0(),q0(e,n)):V0;const od="",Nl=["innerHTML"];function Pl(e,n,t,o,a,i){const l=r.resolveComponent("skeleton");return e.loading?(r.openBlock(),r.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:r.normalizeStyle(e.style)},[r.createVNode(l,{loading:e.loading},null,8,["loading"])],4)):(r.openBlock(),r.createElementBlock("div",{key:1,class:"ecan-text",style:r.normalizeStyle(e.style),innerHTML:e.myText,onClick:n[0]||(n[0]=(...s)=>e.click&&e.click(...s))},null,12,Nl))}const H0=ce(se(fo,[["render",Pl],["__scopeId","data-v-8ef73215"]])),zl=r.defineComponent({name:"EcanScrollText",setup(){return{text:r.ref("基础文本")}}}),ad="",Ml={class:"red"};function Fl(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",Ml,r.toDisplayString(e.text),1)}const $0=ce(se(zl,[["render",Fl],["__scopeId","data-v-4dd9c03e"]])),uo={...he,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"}},ho=fe(uo),j0=["timeChange"],Vl=r.defineComponent({name:"EcanTimeDisplay",props:{...ho},setup(e){const n=ue(e),t=()=>{const{format:c,operate:d}=e;let p=Oe();if(d){const{type:u,value:h,mode:g}=d;switch(u){case"add":p=p.add(h,g);break;case"minus":p=p.subtract(h,g)}}return p.format(c)},o=r.ref();r.watch(()=>[e.operate,e.format],()=>{o.value=t()},{immediate:!0,deep:!0}),r.watch(()=>e.updateInterval,()=>{f()},{deep:!0});let a=null;const i=()=>{clearInterval(a),a=null},s=ye(e)("timeChange",()=>{}),f=()=>{a&&i();let c=1e3;const{value:d,mode:p}=e.updateInterval||{};d&&(c=c*d);const u={second:1,minute:60,hour:60*60,day:24*60*60};p&&(c=c*u[p]),a=setInterval(()=>{o.value=t(),s()},c)};return be(e,{timeChange:s}),r.onMounted(()=>{f()}),r.onUnmounted(()=>{i()}),{style:n,time:o}}}),sd="";function ql(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",{class:"time-display",style:r.normalizeStyle(e.style)},r.toDisplayString(e.time),5)}const U0=ce(se(Vl,[["render",ql],["__scopeId","data-v-b628fca2"]])),xo={...he,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"}]},go=fe(xo),G0=["refreshData","click"],Hl=r.defineComponent({name:"EcanList",components:{Skeleton:Vt},props:{...go},setup(e){const n=r.ref(e.data),t=ue(e,["backgroundColor"]),o=r.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),a=(h,g)=>g==null||g===""?h:{money:ao,percentage:Xt,contrast:Xt}[g](h)||"",i=(h,g)=>{const x=parseFloat(h+"");if(g!=="contrast")return"";switch(!0){case x>=0:return"goUp";case x<0:return"goDown"}},l=ze(e),s=r.ref(!1),f=async()=>{var h;if(e.dataType==="request")try{s.value=!0;const g=await l();n.value=((h=g==null?void 0:g.data)==null?void 0:h.data.rows)||[]}catch(g){console.error(g)}finally{s.value=!1}},c=()=>{f()},p=ye(e)("click",()=>{});be(e,{refreshData:c});const{setRequest:u}=r.inject(De,{setRequest:({id:h,sortNum:g,requestFn:x})=>{}});return u({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:t,formatFn:a,columnStyle:o,contrastClass:i,dataSource:n,loading:s,click:p}}}),cd="",fd="",$l=e=>(r.pushScopeId("data-v-7aa27677"),e=e(),r.popScopeId(),e),jl={key:0,class:"title"},Ul={key:0,class:"ranking"},Gl={key:1,class:"ecan-list-content"},Wl={key:0,class:"ranking"},Zl=$l(()=>r.createElementVNode("div",{class:"icon"},null,-1)),Kl={class:"sort"},Yl={key:2,class:"empty"};function Xl(e,n,t,o,a,i){const l=r.resolveComponent("skeleton");return r.openBlock(),r.createElementBlock("div",{class:"ecan-list",style:r.normalizeStyle(e.style)},[r.createVNode(l,{loading:e.loading},{default:r.withCtx(()=>[e.useTitle?(r.openBlock(),r.createElementBlock("div",jl,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.columnCount,s=>(r.openBlock(),r.createElementBlock("div",{class:"title-inner",style:r.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:s%e.columnCount!==0?e.itemColSpan:""}),key:s},[e.useRanking?(r.openBlock(),r.createElementBlock("div",Ul)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.columns,(f,c)=>(r.openBlock(),r.createElementBlock("div",{class:"column",key:f.key||c,style:r.normalizeStyle({color:f.titleColor,...e.columnStyle})},r.toDisplayString(f.title),5))),128))],4))),128))])):r.createCommentVNode("",!0),e.dataSource.length>0?(r.openBlock(),r.createElementBlock("div",Gl,[e.useTitle?(r.openBlock(),r.createElementBlock("div",{key:0,class:"title-placeholder",style:r.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.dataSource.slice(0,e.sliceCount),(s,f)=>(r.openBlock(),r.createElementBlock("div",{class:"item",style:r.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:s.id||f,onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[e.useRanking?(r.openBlock(),r.createElementBlock("div",Wl,[Zl,r.createElementVNode("div",Kl," Top "+r.toDisplayString(f+1),1)])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.columns,c=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["column",e.contrastClass(s[c.key],c.format)]),key:c.key,style:r.normalizeStyle({fontSize:c.fontSize,color:e.contrastClass(s[c.key],c.format)===""?c.color:"",fontWeight:c.fontWeight,...e.columnStyle})},r.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(s[c.key],c.format)),7))),128))],4))),128))])):(r.openBlock(),r.createElementBlock("div",Yl," 暂无数据 "))]),_:1},8,["loading"])],4)}const W0=ce(se(Hl,[["render",Xl],["__scopeId","data-v-7aa27677"]])),mo={...he,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},po=fe(mo),Z0=["refreshData","click"],Jl=r.defineComponent({name:"EcanProportion",components:{AProgress:ae.Progress,Skeleton:Vt},props:{...po},setup(e){const{pageMode:n}=r.inject(Be,{pageMode:"normal"}),t=ue(e),o=r.computed(()=>{const x=e.width;return parseFloat(x)}),a=r.ref({});r.watch(()=>e.data,()=>{(e.dataType==="static"||r.unref(n)==="design")&&(a.value=e.data)},{immediate:!0,deep:!0});const i=r.computed(()=>{const x=r.unref(a),y=+e.variableDefaultValue;if(x==null)return isNaN(y)?0:y;const S=e.text.match(/\{.+\}/g)||[];let m;const b=new Set(Object.keys(x));for(let v=0;v<S.length;v++){const _=S[v],w=_.slice(1,_.length-1);if(b.has(w)){m=x[w];break}}return typeof m=="number"?m=m*100:typeof m=="string"&&!isNaN(+m)?m=+m*100:isNaN(y)?m=0:m=y*100,e.decimalFormat&&(m=+m.toFixed(2)),m}),l=r.computed(()=>{var b;let x=e.text;if(x==="")return r.unref(i);const y=e.variableDefaultValue,S=r.unref(a),m=x.match(/\{.+\}/g)||[];for(let v=0;v<m.length;v++){const _=m[v];let w=_.slice(1,_.length-1);const k=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,A=_.match(k);for(let C=0;C<(A==null?void 0:A.length);C++){const T=(b=A[C])==null?void 0:b.trim();S[T]!=null&&(w=w.replace(T,S[T]))}let E=w;try{/\(.*\)/g.test(w)&&(E=Qt(w))}catch(C){console.error(C)}typeof+E=="number"&&!isNaN(+E)?(E=+E*100,e.decimalFormat&&(E=E.toFixed(2))):E=y,x=x.replace(_,E+"")}return x}),s=ze(e),f=r.ref(!1),c=async()=>{var x;if(e.dataType==="request")try{f.value=!0;const y=await s();a.value=((x=y==null?void 0:y.data)==null?void 0:x.data)||{}}catch(y){console.error(y)}finally{f.value=!1}};be(e,{refreshData:()=>{c()}});const u=ye(e)("click",()=>{}),{setRequest:h}=r.inject(De,{setRequest:({id:x,sortNum:y,requestFn:S})=>{}});h({id:e.id,requestFn:c,sortNum:e.requestSort});const g=r.computed(()=>{const{gradientShow:x,gradientColor:y,gradientOffset:S,strokeColor:m}=e;let b=m;return x&&y&&(b={"0%":m,[`${S*100}%`]:y}),b});return{style:t,myWidth:o,text:l,myValue:i,loading:f,click:u,customStrokeColor:g}}}),ud="";function Ql(e,n,t,o,a,i){const l=r.resolveComponent("skeleton"),s=r.resolveComponent("a-progress");return r.openBlock(),r.createElementBlock("div",{class:"ecan-proportion",style:r.normalizeStyle(e.style)},[r.createVNode(s,{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:r.withCtx(()=>[e.loading?(r.openBlock(),r.createBlock(l,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(r.openBlock(),r.createElementBlock("div",{key:1,class:"format",style:r.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},r.toDisplayString(e.text),5)):r.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const K0=ce(se(Jl,[["render",Ql],["__scopeId","data-v-269e1e9a"]])),yo={...he,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},vo=fe(yo),Y0=["inputChange","inputBlur"],ec=r.defineComponent({name:"EcanInput",components:{AInput:ae.Input},props:{...vo},setup(e){const n=ue(e),t=r.ref("");r.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:o,setGlobalModel:a}=r.inject(we,{getGlobalModel:c=>{},setGlobalModel:(c,d)=>{}});a(e.id,{type:e.type,value:t});const i=()=>{const c=o(e.id);a(e.id,{...c,RECORD:t})},l=ye(e),s=$e.debounce(l("inputChange",()=>{i()}),300),f=l("inputBlur",()=>{});return{style:n,myValue:t,inputBlur:f,inputChange:s}}}),xd="";function tc(e,n,t,o,a,i){const l=r.resolveComponent("a-input");return r.openBlock(),r.createElementBlock("div",{class:"ecan-input",style:r.normalizeStyle(e.style)},[r.createVNode(l,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur},null,8,["value","placeholder","onChange","onBlur"])],4)}const X0=ce(se(ec,[["render",tc]])),bo={...he,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},So=fe(bo),J0=["dateChange"],nc=r.defineComponent({name:"EcanDatePicker",props:{...So},components:{ADatePicker:ae.DatePicker},setup(e){const n=ue(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=r.ref(null);r.watch(()=>[e.value,e.useCurrentTime,e.operate],([f,c,d])=>{let p=null;if(f?p=Oe(ve(f)):c&&(p=Oe()),d&&p){const{type:u,value:h,mode:g}=d;switch(u){case"add":p=p.add(h,g);break;case"minus":p=p.subtract(h,g)}}o.value=p},{deep:!0,immediate:!0});const{setGlobalModel:a}=r.inject(we,{setGlobalModel:(f,c)=>{}});a(e.id,{type:e.type,format:e.format,value:o});const l=ye(e)("dateChange",()=>{}),s=()=>{r.unref(o)&&l()};return be(e,{dateChange:l}),{style:n,getPopupContainer:t,myValue:o,locale:ir,change:s}}}),md="";function oc(e,n,t,o,a,i){const l=r.resolveComponent("a-date-picker");return r.openBlock(),r.createElementBlock("div",{class:"ecan-date-picker",style:r.normalizeStyle(e.style)},[r.createVNode(l,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,getPopupContainer:e.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)}const Q0=ce(se(nc,[["render",oc]])),wo={...he,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:""},Co=fe(wo),ea=["dateChange"],rc=r.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ae.RangePicker},props:{...Co},setup(e){const n=ue(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=r.ref([null,null]);r.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([y,S,m,b,v,_])=>{let w=null,k=null;if(m&&(w=Oe().subtract(b,v),k=Oe()),y&&(w=Oe(ve(y))),S&&(k=Oe(ve(S))),_){const{type:A,value:E,mode:C}=_;switch(A){case"add":w=w&&w.add(E,C),k=k&&k.add(E,C);break;case"minus":w=w&&w.subtract(E,C),k=k&&k.subtract(E,C)}}o.value=[w,k]},{immediate:!0});let a=r.unref(o)[0],i=r.unref(o)[1];const l=y=>{Array.isArray(y)?(a=y[0],i=y[1]):(a=null,i=null)},s=y=>{let S=!1,{limitStartTime:m,limitEndTime:b}=e;const v={startTime:`${a||""}`,endTime:`${i||""}`};return m=ve(m,{codeData:v}),b=ve(b,{codeData:v}),m&&b?S=!(Oe(m)<y&&y<Oe(b)):m?S=Oe(m)>y:b&&(S=Oe(b)<y),S},{setGlobalModel:f}=r.inject(we,{setGlobalModel:(y,S)=>{}}),c=r.computed(()=>Array.isArray(r.unref(o))?r.unref(o)[0]:null),d=r.computed(()=>Array.isArray(r.unref(o))?r.unref(o)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:c,endTime:d});const p=ye(e);let u=!1;const h=p("dateChange",()=>{}),g=y=>{const S=r.unref(o),m=S&&S[0]&&S[1];y===!1&&u===!0&&m&&(h(),u=!1)},x=()=>{u=!0};return be(e,{dateChange:h}),{style:n,getPopupContainer:t,locale:ir,dateChange:h,myValue:o,disabledDate:s,calendarChange:l,openChange:g,change:x}}}),yd="",vd="";function ac(e,n,t,o,a,i){const l=r.resolveComponent("a-range-picker");return r.openBlock(),r.createElementBlock("div",{class:"ecan-range-picker",style:r.normalizeStyle(e.style)},[r.createVNode(l,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),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},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange"])],4)}const ta=ce(se(rc,[["render",ac],["__scopeId","data-v-ddb2a0fe"]])),ko={...he,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},_o=fe(ko),na=["click"],ic=r.defineComponent({name:"EcanButton",components:{AButton:ae.Button},props:{..._o},setup(e){const n=ue(e),o=ye(e)("click",()=>{const s=r.unref(i);s&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:s},"*")}),a=r.computed(()=>ve(e.text)),i=r.computed(()=>ve(e.href)||null),l=r.computed(()=>{const s=e.target;if(!(s==="event"||r.unref(i)==null))return{self:"_self",blank:"_blank"}[s]});return{style:n,click:o,myText:a,myHref:i,myTarget:l}}}),Sd="";function sc(e,n,t,o,a,i){const l=r.resolveComponent("a-button");return r.openBlock(),r.createElementBlock("div",{class:"ecan-button",style:r.normalizeStyle(e.style)},[r.createVNode(l,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget},{default:r.withCtx(()=>[r.createElementVNode("span",{style:r.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},r.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target"])],4)}const oa=ce(se(ic,[["render",sc]])),Ao={...he,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"}]},Eo=fe(Ao),ra=["checkboxChange"],lc=r.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ae.CheckboxGroup},props:{...Eo},setup(e){const n=ue(e),t=r.ref([]),o=r.ref([]),a=u=>{const h=e.value;let g=[];u.forEach(x=>{x.checked&&g.push(x.value)}),typeof h=="string"&&h!==""?g=g.concat(h.split(",")):Array.isArray(h)&&(g=g.concat(h)),t.value=u,o.value=g};r.watch(()=>[e.data,e.value],([u])=>{a(u)},{immediate:!0,deep:!0});const i=ze(e),l=async()=>{var g,x;if(e.dataType!=="request")return;const u=await i(),h=((x=(g=u==null?void 0:u.data)==null?void 0:g.data)==null?void 0:x.rows)||[];a(h)},{getGlobalModel:s,setGlobalModel:f}=r.inject(we,{getGlobalModel:u=>{},setGlobalModel:(u,h)=>{}});f(e.id,{type:e.type,value:o});const d=ye(e)("checkboxChange",()=>{const u=s(e.id);f(e.id,{...u,RECORD:o})}),{setRequest:p}=r.inject(De,{setRequest:({id:u,sortNum:h,requestFn:g})=>{}});return p({id:e.id,requestFn:l,sortNum:e.requestSort}),{myOption:t,style:n,myValue:o,checkboxChange:d}}}),Cd="";function cc(e,n,t,o,a,i){const l=r.resolveComponent("a-checkbox-group");return r.openBlock(),r.createElementBlock("div",{class:"ecan-checkbox",style:r.normalizeStyle(e.style)},[r.createVNode(l,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const aa=ce(se(lc,[["render",cc]])),To={...he,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},Bo=fe(To),ia=["selectChange","refreshData"],fc=r.defineComponent({name:"EcanSelect",components:{ASelect:ae.Select},props:{...Bo},setup(e){const n=ue(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=ze(e),a=r.ref(e.data||[]),i=r.ref();r.watch(()=>[e.value,e.mode,e.selectFirstOption],()=>{const{mode:y,selectFirstOption:S,value:m}=e;y==="multiple"||y==="tags"||y==="combobox"?m?i.value=m.split(","):S&&(i.value=[r.unref(a)[0]]):m?i.value=m:S&&(i.value=r.unref(a)[0])},{immediate:!0});const l=e.dataFieldNames,s=(y,S)=>{const m=l.label,b=l.value;let v;const _=S[m],w=S[b];return _!=null?v=_:w!=null&&(v=w),(v==null?void 0:v.toLowerCase().indexOf(y==null?void 0:y.toLowerCase()))>=0},f=y=>{const{label:S,value:m,options:b}=e.dataFieldNames;if(b&&Array.isArray(y))if(y.some(v=>b in v)){const v={},_=[];y.forEach(w=>{v[w[b]]||(v[w[b]]=[]),v[w[b]].push({[S]:w[S],[m]:w[m]})});for(const w in v)_.push({[S]:w,[b]:v[w]});return _}else return y;else if(!b)return y},c=r.ref(!1),d=async()=>{var y,S;if(e.dataType==="request"){c.value=!0;try{const m=await o();if(a.value=f(((S=(y=m==null?void 0:m.data)==null?void 0:y.data)==null?void 0:S.rows)||[]),e.selectFirstOption){let b=r.unref(a)[0];if(l.options){const v=b[l.options];v&&v.length&&(b=v[0])}i.value=b[l.value]}}catch(m){console.error(m)}finally{c.value=!1}}},{getGlobalModel:p,setGlobalModel:u}=r.inject(we,{getGlobalModel:y=>{},setGlobalModel:(y,S)=>{}});u(e.id,{type:e.type,value:i});const g=ye(e)("selectChange",()=>{const y=e.id,S=p(y);u(y,{...S,RECORD:i})});be(e,{selectChange:g,refreshData:d});const{setRequest:x}=r.inject(De,{setRequest:({id:y,sortNum:S,requestFn:m})=>{}});return x({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:n,getPopupContainer:t,myValue:i,selectChange:g,options:a,filterOption:s,loading:c}}}),_d="",Ad="";function dc(e,n,t,o,a,i){const l=r.resolveComponent("a-select");return r.openBlock(),r.createElementBlock("div",{class:"ecan-select",style:r.normalizeStyle(e.style)},[r.createVNode(l,{class:"select",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,showSearch:"",allowClear:"",options:e.options,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange},null,8,["value","placeholder","options","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange"])],4)}const sa=ce(se(fc,[["render",dc],["__scopeId","data-v-7c425ecc"]])),Do={...he,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},Ro=fe(Do),la=["selectChange","refreshData"],uc={name:"EcanTreeSelect",components:{ATreeSelect:ae.TreeSelect},props:{...Ro},setup(e){const n=ue(e),t=r.ref(e.data),o=(h,g)=>{const x=e.dataFieldNames,y=x.label,S=x.value;let m;const b=g[y],v=g[S];return b!=null?m=b:v!=null&&(m=v),(m==null?void 0:m.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},a=r.ref();r.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:g,selectFirstOption:x}=e;h?g?a.value=g.split(","):x&&(a.value=[r.unref(t)[0]]):g?a.value=g:x&&(a.value=r.unref(t)[0])},{immediate:!0});const i=r.ref(!1),l=ze(e),s=async()=>{var h,g;if(e.dataType==="request"){i.value=!0;try{const x=await l();t.value=((g=(h=x==null?void 0:x.data)==null?void 0:h.data)==null?void 0:g.rows)||[];const y=r.unref(t)[0];e.value===""&&y!=null&&(a.value=y[e.dataFieldNames.value])}catch(x){console.error(x)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=r.inject(we,{getGlobalModel:h=>{},setGlobalModel:(h,g)=>{}});c(e.id,{type:e.type,value:a});const p=ye(e)("selectChange",()=>{const h=e.id,g=f(h);c(h,{...g,RECORD:a})});be(e,{selectChange:p,refreshData:s});const{setRequest:u}=r.inject(De,{setRequest:({id:h,sortNum:g,requestFn:x})=>{}});return u({id:e.id,requestFn:s,sortNum:e.reque}),{style:n,treeData:t,filterTreeNode:o,myValue:a,loading:i,selectChange:p}}},Td="",Bd="";function hc(e,n,t,o,a,i){const l=r.resolveComponent("a-tree-select");return r.openBlock(),r.createElementBlock("div",{class:"ecan-tree-select",style:r.normalizeStyle(o.style)},[r.createVNode(l,{class:"tree-select",value:o.myValue,"onUpdate:value":n[0]||(n[0]=s=>o.myValue=s),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 ca=ce(se(uc,[["render",hc],["__scopeId","data-v-37236421"]])),Io={...he,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",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",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:"当前无说明信息"},Lo=fe(Io),fa=["click","refreshData","resetRecord"],Lt=async e=>{var f;const n=await Je.post(e,{},{responseType:"blob"}),{data:t,headers:o}=n,a=o["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),l=document.createElement("a"),s=window.URL.createObjectURL(i);l.href=s,l.download=decodeURI(a),l.style.display="none",document.body.appendChild(l),l.click(),(f=l.parentNode)==null||f.removeChild(l),window.URL.revokeObjectURL(s)},Oo={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"},No=fe(Oo),da=["showModal"],xc=r.defineComponent({name:"EcanModal",components:{AModal:ae.Modal,CloseOutlined:is},props:{...No},setup(e,{emit:n}){const t=()=>document.getElementById("ProviderConfig")||document.body,o=r.computed(()=>{const L=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[L]}}),a=e.fullModal?"1920px":e.width,i=e.fullModal?"1080px":e.height,l=e.originalWidth,s=e.originalHeight,f=r.ref("80%"),c=r.ref(0),d=r.ref(),p=r.ref(0),u=r.ref({}),h=ue(e),g=r.ref({}),x=r.ref(!1),y=r.ref();let S;const m=()=>{d.value=parseFloat(a)/parseFloat(l);const L=parseFloat(i)/parseFloat(s),H=document.body.offsetWidth,D=document.body.offsetHeight;c.value=H*r.unref(d),p.value=D*L,f.value=`${r.unref(d)*100}%`,u.value={width:`${r.unref(c)}px`,height:`${r.unref(p)}px`},g.value={...r.unref(h),backgroundImage:at(e.backgroundImage,!0),transform:`scale(${r.unref(c)/parseFloat(a)},${r.unref(p)/parseFloat(i)})`,width:a,height:i}},b=$e.debounce(()=>{m()},100),v=()=>{const L=window.MutationObserver;S=new L(b),S.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},_=()=>{S&&(S.disconnect(),S.takeRecords(),S=null)},w=r.ref(!1),{touchRequest:k}=r.inject(De,{touchRequest:()=>{}}),A=()=>{w.value=!0},E=()=>{n("close"),w.value=!1},C=()=>{E()},T=()=>{E()},{setModalModel:R,pushUseModalIds:B,popUseModalIds:F}=r.inject(Dr,{pushUseModalIds:L=>{},popUseModalIds:()=>{},setModalModel:(L,H)=>{}}),I=()=>{const L=e.id;let H=[];const D=e.componentList;Array.isArray(D)&&(H=D.map(O=>O.id),R(L,[...new Set(H)]))};r.watch(()=>w.value,async L=>{L?(x.value=!1,B(e.id),I(),await r.nextTick(()=>{m(),window.addEventListener("resize",b),v(),x.value=!0}),k()):(F(),window.removeEventListener("resize",b),_())});const $=r.computed(()=>r.unref(d)>=1),q=r.computed(()=>e.fullModal),N=r.computed(()=>{let L="ecan-modal";return r.unref($)&&(L+=" ecan-full-width-modal"),r.unref(q)&&(L+=" ecan-full-modal"),L});return be(e,{showModal:A}),{modalRef:y,containStyle:u,contentStyle:g,getContainer:t,modalStyle:o,modalWith:f,isFullModal:q,style:h,visible:w,showModal:A,onOk:C,onCancel:T,isFullWidth:$,wrapClassName:N,ready:x}}}),Rd="",Id="",gc={key:0};function mc(e,n,t,o,a,i){const l=r.resolveComponent("close-outlined"),s=r.resolveComponent("a-modal");return r.openBlock(),r.createBlock(s,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:r.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef"},{default:r.withCtx(()=>[r.createElementVNode("div",{class:"contain",ref:"containRef",style:r.normalizeStyle(e.containStyle)},[e.ready?(r.openBlock(),r.createElementBlock("div",{key:0,class:"content",style:r.normalizeStyle(e.contentStyle)},[r.createElementVNode("div",{class:"header-bar",style:r.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px"})},[e.title?(r.openBlock(),r.createElementBlock("div",{key:0,class:"ant-modal-title",style:r.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},r.toDisplayString(e.title),5)):r.createCommentVNode("",!0),r.createVNode(l,{class:"close-icon",onClick:e.onCancel},null,8,["onClick"])],4),e.componentList.length?(r.openBlock(),r.createElementBlock("div",gc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.componentList,(f,c)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(f.type),r.mergeProps({key:f.id+c},f),null,16))),128))])):r.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):r.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])}const st=ce(se(xc,[["render",mc],["__scopeId","data-v-4234f235"]]));He.use([lt.CanvasRenderer,We.PieChart,xe.TitleComponent,xe.ToolboxComponent,xe.TooltipComponent,xe.LegendComponent]);const pc=r.defineComponent({name:"EcanPie",props:{...Lo},components:{Spin:Tt,Echarts:nt,EcanModal:st},setup(e,{expose:n}){const t=r.ref(!1),o=ue(e),a=r.ref([]),i=r.ref(),l=r.computed(()=>{let{data:k=[]}=r.unref(a)[0]||{};if(Array.isArray(e.colors)){const A=e.isUseLabelColors,E=e.colors;k=k.map((C,T)=>({label:A?{color:E[T]}:{},...C}))}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(){Lt(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 A;t.value=!0,(A=i.value)==null||A.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:A=>{const{marker:E,seriesName:C,name:T,value:R,percent:B,data:F}=A||{};return ve(e.tooltipFormatter,{textData:{marker:E,name:T,value:R,percent:B,a:C,b:T,c:R,d:B,...F}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:t.value?dt:e.labelFontSize}},color:e.colors,series:[{data:k,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?dt:e.labelFontSize,position:e.labelPosition,formatter:Al(e.labelFormatter)},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),s=()=>{t.value=!1},{getGlobalModel:f,setGlobalModel:c}=r.inject(we,{getGlobalModel:k=>{},setGlobalModel:(k,A)=>{}}),{pageMode:d}=r.inject(Be,{pageMode:"normal"}),p=(k=[],A)=>{const{dataset:E}=Dt(k,A);a.value=E},u=(k=[],A)=>{const E=Dt(k,A);a.value=E.dataset};r.watch(()=>e.data,k=>{(e.dataType==="static"||r.unref(d)==="design")&&p(k)},{immediate:!0,deep:!0});const h=r.ref(!1),g=ze(e),x=async()=>{var k,A;if(e.dataType==="request")try{h.value=!0;const E=await g();p((A=(k=E==null?void 0:E.data)==null?void 0:k.data)==null?void 0:A.rows,e.valueTypeDataFieldNames)}catch(E){console.error(E)}finally{h.value=!1}},S=ye(e)("click",k=>{const A=f(e.id);c(e.id,{...A,RECORD:k==null?void 0:k.data})}),m=It(e),b=async()=>{var k;try{h.value=!0;const A=await m(),{data:E}=A.data||{};if(E){const{columns:C=[],rows:T=[]}=((k=A==null?void 0:A.data)==null?void 0:k.data)??{};let R=[];if(C.length>0){const B=C[0],F=C[1];R=T.map(I=>({name:I[B],value:I[F]}))}u(R)}}catch(A){console.error(A)}finally{h.value=!1}},v=()=>{switch(e.dataType){case"indicator":b();break;case"request":x();break}};be(e,{resetRecord:()=>{const k=e.id,A=f(k);c(k,{...A,RECORD:""})},refreshData:v,click:S}),n({refreshData:v});const{setRequest:w}=r.inject(De,{setRequest:k=>{}});return typeof w=="function"&&w({id:e.id,requestFn:v,sortNum:e.requestSort}),{option:l,style:o,click:S,onClose:s,loading:h,ecanModal:i}}}),Od="";function yc(e,n,t,o,a,i){const l=r.resolveComponent("echarts"),s=r.resolveComponent("spin"),f=r.resolveComponent("ecan-modal");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(e.style)},[r.createVNode(s,{spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),r.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:r.withCtx(()=>[r.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ua=ce(se(pc,[["render",yc]])),Po={...he,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:"",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},zo=fe(Po),ha=["click","refreshData","resetRecord"];He.use([lt.CanvasRenderer,We.LineChart,xe.ToolboxComponent,xe.TitleComponent,xe.LegendComponent]);const vc=r.defineComponent({name:"EcanLine",props:{...zo},components:{Spin:Tt,Echarts:nt,EcanModal:st},setup(e,{expose:n}){const t=r.ref(),o=r.ref(!1),a=ue(e),i=r.ref([]),l=r.ref([]),s=r.ref(),f=r.computed(()=>o.value?dt:12),c=r.ref({});let d;const p=r.computed(()=>{const B=e.xAxisLabelFormatter,F=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(){Lt(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=s.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})}}}},title:{text:e.titleText,subText:e.titleSubtext,left:"center"},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:I=>{var L;const $=I.length;let q="",N=e.tooltipFormatter;d=(L=I[0])==null?void 0:L.data,N===""&&(N="{marker} {a} {c}");for(let H=0;H<$;H++){const{marker:D,seriesName:O,name:M,value:P,data:Y}=I[H]||{};H===0&&(q+=`${M}<br/>`),q+=ve(N,{textData:{marker:D,name:M,value:P,a:O,b:M,c:P,...Y}},{useNewline:!0,useSpace:!0}),q+="<br/>"}return q}},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:r.unref(l).map(I=>{let $={};return I&&typeof I=="object"?$={...I,textStyle:{fontSize:f.value}}:$={value:I,textStyle:{fontSize:f.value}},$}),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,formatter(I){return it(B,I)}},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}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:f.value,color:e.yAxisLabelColor,formatter(I){return it(F,I)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:f.value}},series:r.unref(i)}}),u=()=>{o.value=!1},{getGlobalModel:h,setGlobalModel:g}=r.inject(we,{getGlobalModel:B=>{},setGlobalModel:(B,F)=>{}}),{pageMode:x}=r.inject(Be,{pageMode:"normal"}),y=(B=[],F=!1)=>{let I;if(e.dataFieldConfigType==="key"){const L=F?e.keyTypeDataFieldNames:null;I=St(B,L)}else if(e.dataFieldConfigType==="value"){const L=F?e.valueTypeDataFieldNames:null;I=Dt(B,L)}l.value=I.dimensions;const $=I.dataset,q=[],N=$.length;for(let L=0;L<N;L++)q.push({type:"line",...$[L],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[L]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[L],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});i.value=q},S=(B=[],F,I=!1)=>{const q=St(B,I?F:null);l.value=q.dimensions;const N=q.dataset,L=[],H=N.length;for(let D=0;D<H;D++)L.push({type:"line",...N[D],symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}});i.value=L};r.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor],([B])=>{(e.dataType==="static"||r.unref(x)==="design")&&y(B)},{immediate:!0,deep:!0});const m=r.ref(!1),b=ze(e),v=async()=>{var B,F;if(e.dataType==="request")try{m.value=!0;const I=await b();y((F=(B=I==null?void 0:I.data)==null?void 0:B.data)==null?void 0:F.rows,!0)}catch(I){console.error(I)}finally{m.value=!1}},w=ye(e)("click",B=>{const F=h(e.id);g(e.id,{...F,RECORD:e.tooltipShow?d:B.data})}),k=B=>{t.value.chart.containPixel("grid",[B.offsetX,B.offsetY])&&w()};e.tooltipShow?c.value["zr:click"]=k:c.value.click=w;const A=It(e),E=async()=>{var B;try{m.value=!0;const F=await A(),{columns:I=[],rows:$=[]}=((B=F==null?void 0:F.data)==null?void 0:B.data)??{};let q;I.length>0&&(q={name:I[0],types:I.slice(1).map(N=>({label:N,value:N}))}),S($,q,!0)}catch(F){console.error(F)}finally{m.value=!1}},C=()=>{switch(e.dataType){case"indicator":E();break;case"request":v();break}};be(e,{refreshData:C,resetRecord:()=>{const B=e.id,F=h(B);g(B,{...F,RECORD:""})},click:w});const{setRequest:R}=r.inject(De,{setRequest:B=>{}});return typeof R=="function"&&R({id:e.id,requestFn:C,sortNum:e.requestSort}),n({refreshData:C}),{option:p,style:a,click:w,loading:m,onClose:u,ecanModal:s,eventObj:c,echartRef:t}}}),Pd="";function bc(e,n,t,o,a,i){const l=r.resolveComponent("echarts"),s=r.resolveComponent("spin"),f=r.resolveComponent("ecan-modal");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(e.style)},[r.createVNode(s,{spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,r.mergeProps({ref:"echartRef",option:e.option,autoresize:""},r.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),r.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:r.withCtx(()=>[r.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const xa=ce(se(vc,[["render",bc]])),Mo={...he,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:"",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:"",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0},Fo=fe(Mo),ga=["refreshData","click","resetRecord"];He.use([lt.CanvasRenderer,We.BarChart,xe.TitleComponent,xe.LegendComponent,xe.DatasetComponent,xe.ToolboxComponent]);const Sc=r.defineComponent({name:"EcanBar",props:{...Fo},components:{Spin:Tt,Echarts:nt,EcanModal:st,AModal:ae.Modal},setup(e,{expose:n}){const t=r.ref(),o=r.ref(!1),a=r.ref(!1),i=r.ref(null),l=r.ref([]),s=ue(e),f=r.ref([]),c=r.ref(),d=r.computed(()=>o.value?dt:12),p=r.computed(()=>{const{gradientShow:N,gradientColor:L,gradientOffset:H,barBorderRadius:D}=e,O=r.unref(f),M=O.length,P=[];for(let Y=0;Y<M;Y++){const Z={...O[Y],type:"bar",barWidth:e.barWidth};if(e.isStack&&(Z.stack="stack"),Z.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},Z.itemStyle={},N&&L&&(Z.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:L},{offset:1,color:L}]}}),D){const X=D.split(",");if(X!=null&&X.length){const G=[];for(const pe of X){const _e=parseFloat(pe);isNaN(_e)||G.push(_e)}Z.itemStyle.borderRadius=G}}P.push(Z)}return P}),u=r.ref([]),h=r.ref(!1),g=r.computed(()=>{const N=e.yAxisLabelFormatter,L=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show: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(){a.value=!0;const H=t.value.chart.getOption(),{xAxis:D}=H||{};D&&D.length&&(l.value=D[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(){Lt(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,left:"center"},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 D=H.length;let O="",M=e.tooltipFormatter;M===""&&(M="{marker} {a} {c}");for(let P=0;P<D;P++){const{marker:Y,seriesName:Z,name:X,value:G,data:pe}=H[P]||{};P===0&&(O+=`${X}<br/>`),O+=ve(M,{textData:{marker:Y,name:X,value:G,a:Z,b:X,c:G,...pe}},{useNewline:!0,useSpace:!0}),O+="<br/>"}return O},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:d.value}},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:r.unref(b),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,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,formatter(H){return it(L,H)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?r.unref(u):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:d.value,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(H){return it(N,H)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:r.unref(p)}}),{pageMode:x}=r.inject(Be,{pageMode:"normal"}),y=()=>{o.value=!1},S=(N=[],L=!1)=>{let H={};if(e.dataFieldConfigType==="key"){const D=L?e.keyTypeDataFieldNames:null;H=St(N,D)}else if(e.dataFieldConfigType==="value"){const D=L?e.valueTypeDataFieldNames:null;H=Dt(N,D)}f.value=H.dataset,u.value=H.dimensions},m=(N=[],L,H=!1)=>{const O=St(N,H?L:null);f.value=O.dataset,u.value=O.dimensions},b=r.computed(()=>r.unref(u).map(N=>{let L={};return N&&typeof N=="object"?L={...N,textStyle:{fontSize:d.value}}:L={value:N,textStyle:{fontSize:d.value}},L}));r.watch(()=>e.data,N=>{(e.dataType==="static"||r.unref(x)==="design")&&S(N)},{immediate:!0,deep:!0});const v=ze(e),_=async()=>{var N,L;try{h.value=!0;const H=await v();S((L=(N=H==null?void 0:H.data)==null?void 0:N.data)==null?void 0:L.rows,!0)}catch(H){console.error(H)}finally{h.value=!1}},w=It(e),k=async()=>{var N;try{h.value=!0;const L=await w(),{columns:H=[],rows:D=[]}=((N=L==null?void 0:L.data)==null?void 0:N.data)??{};let O;H.length>0&&(O={name:H[0],types:H.slice(1).map(M=>({label:M,value:M}))}),m(D,O,!0)}catch(L){console.error(L)}finally{h.value=!1}},A=()=>{switch(e.dataType){case"indicator":k();break;case"request":_();break}},E=(N,L)=>!!r.unref(l)[L.value].value.includes(N),C=async()=>{a.value=!1;const N=t.value.chart.getOption();for(let L=0;L<7;L++)await T(N,L)},T=(N,L)=>new Promise(H=>{setTimeout(()=>{const{series:D,color:O,xAxis:M}=N,P=t.value.chart,{splitArea:Y={}}=M[0]||{};D.forEach((Z,X)=>{const G=Z.data;let pe="";L%2?pe=O[X]+"a8":pe=O[X],G[i.value].itemStyle={color:pe}}),L%2?(Y.show=!0,Y.areaStyle.color=r.unref(l).map((Z,X)=>X===i.value?"#ff003b26":"")):Y.show=!1,P.setOption({series:D,xAxis:M}),H()},200)});n({refreshData:A});const R=ye(e),{getGlobalModel:B,setGlobalModel:F}=r.inject(we,{getGlobalModel:N=>{},setGlobalModel:(N,L)=>{}}),I=R("click",N=>{const L=B(e.id);F(e.id,{...L,RECORD:N.data})}),{setRequest:$}=r.inject(De,{setRequest:N=>{}});return typeof $=="function"&&$({id:e.id,requestFn:A,sortNum:e.requestSort}),be(e,{refreshData:A,click:I,resetRecord:()=>{const N=e.id,L=B(N);F(N,{...L,RECORD:""})}}),{option:g,style:s,refreshData:A,click:I,loading:h,onClose:y,ecanModal:c,echartRef:t,handleLocationOk:C,onFilterOption:E,locationVisible:a,locationValue:i,locationNames:l}}}),Md="",Fd="",wc=e=>(r.pushScopeId("data-v-8e2ebfdc"),e=e(),r.popScopeId(),e),Cc={class:"location-wrap"},kc=wc(()=>r.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _c(e,n,t,o,a,i){const l=r.resolveComponent("echarts"),s=r.resolveComponent("spin"),f=r.resolveComponent("ecan-modal"),c=r.resolveComponent("a-select-option"),d=r.resolveComponent("a-select"),p=r.resolveComponent("a-modal");return r.openBlock(),r.createElementBlock("div",{class:"ecan-bar",style:r.normalizeStyle(e.style)},[r.createVNode(s,{spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),r.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:r.withCtx(()=>[r.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),r.createVNode(p,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:r.withCtx(()=>[r.createElementVNode("div",Cc,[kc,r.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:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.locationNames,(u,h)=>(r.openBlock(),r.createBlock(c,{key:h,value:h},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ma=ce(se(Sc,[["render",_c],["__scopeId","data-v-8e2ebfdc"]])),Vo={...he,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:"",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},qo=fe(Vo),pa=["click","refreshData","resetRecord"];He.use([lt.CanvasRenderer,We.ScatterChart,xe.ToolboxComponent,xe.TitleComponent,xe.TooltipComponent,xe.LegendComponent]);const Ac=r.defineComponent({name:"EcanScatter",props:{...qo},components:{Spin:Tt,Echarts:nt,EcanModal:st},setup(e){const n=r.ref(!1),t=ue(e),o=r.ref([]),a=r.ref(),i=r.computed(()=>n.value?dt:12),l=r.computed(()=>{const v=e.xAxisLabelFormatter,_=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(){Lt(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=a.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,left:"center"},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:i.value,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(w){return it(v,w)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:i.value,color:e.yAxisLabelColor,formatter(w){return it(_,w)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(w){var R;const{marker:k,seriesName:A}=w,E=((R=w==null?void 0:w.data)==null?void 0:R.record)??{},{name:C,value:T}=E;return ve(e.tooltipFormatter,{textData:{marker:k,seriesName:A,a:A,b:C,c:T,...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:r.unref(o),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:s,setGlobalModel:f}=r.inject(we,{getGlobalModel:v=>{},setGlobalModel:(v,_)=>{}}),{pageMode:c}=r.inject(Be,{pageMode:"normal"}),d=(v=[],_)=>{const{name:w="name",value:k="value"}=_||{};o.value=v.map(A=>({value:[A[w],A[k]],record:A}))};r.watch(()=>e.data,v=>{(e.dataType==="static"||r.unref(c)==="design")&&d(v)},{immediate:!0,deep:!0});const p=r.ref(!1),u=ze(e),h=async()=>{var v,_;if(e.dataType==="request"){p.value=!0;try{const w=await u();d((_=(v=w==null?void 0:w.data)==null?void 0:v.data)==null?void 0:_.rows,e.dataFieldNames)}catch(w){console.error(w)}finally{p.value=!1}}},g=()=>{n.value=!1},y=ye(e)("click",v=>{const _=e.id,w=s(_);f(_,{...w,RECORD:v==null?void 0:v.data})});be(e,{refreshData:()=>{h()},click:y,resetRecord:()=>{const v=e.id,_=s(v);f(v,{..._,RECORD:""})}});const{setRequest:b}=r.inject(De,{setRequest:v=>{}});return typeof b=="function"&&b({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:l,style:t,click:y,loading:p,onClose:g,ecanModal:a}}}),qd="";function Ec(e,n,t,o,a,i){const l=r.resolveComponent("echarts"),s=r.resolveComponent("spin"),f=r.resolveComponent("ecan-modal");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(e.style)},[r.createVNode(s,{spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),r.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:r.withCtx(()=>[r.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ya=ce(se(Ac,[["render",Ec]])),Ho={...he,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},$o=fe(Ho),Tc=r.defineComponent({name:"EcanCustomGraph",props:{...$o},components:{Echarts:nt},setup(e){const n=ue(e),t=r.ref();return r.watch(()=>e.optionCode,o=>{try{const a=eval;t.value=a(o)}catch(a){console.error(a)}},{immediate:!0}),{style:n,myOption:t,echarts:Ja}}});function Bc(e,n,t,o,a,i){const l=r.resolveComponent("echarts");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(e.style)},[r.createVNode(l,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const va=ce(se(Tc,[["render",Bc]])),jo={...he,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:"",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,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},Uo=fe(jo),ba=["refreshData","click","resetRecord"];He.use([lt.CanvasRenderer,We.BarChart,We.LineChart,xe.TitleComponent,xe.LegendComponent,xe.DatasetComponent,xe.ToolboxComponent]);const Dc=r.defineComponent({name:"EcanComboGraph",props:{...Uo},components:{Spin:Tt,Echarts:nt,EcanModal:st,AModal:ae.Modal},setup(e,{expose:n}){const t=r.ref(),o=r.ref(!1),a=r.ref(!1),i=r.ref(null),l=r.ref([]),s=ue(e),f=r.ref([]),c=r.ref([]),d=r.ref(),p=r.computed(()=>o.value?dt:12),u=r.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},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(){a.value=!0;const q=t.value.chart.getOption(),{xAxis:N}=q||{};N&&N.length&&(l.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(){Lt(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=d.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})}}}},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:p.value}},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:q=>{const N=q.length;let L="",H=e.tooltipFormatter;H===""&&(H="{marker} {a} {c}");const D=e.seriesTypes;for(let O=0;O<N;O++){const M=D[O],{tooltipFormatter:P}=M||{},{marker:Y,seriesName:Z,name:X,value:G,data:pe}=q[O]||{};O===0&&(L+=`${X}<br/>`),L+=ve(P||H,{textData:{marker:Y,name:X,value:G,seriesName:Z,a:Z,b:X,c:G,...pe}},{useNewline:!0,useSpace:!0}),L+="<br/>"}return L},textStyle:{color:e.tooltipTextStyleColor,fontSize:p.value}},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:r.unref(c).map(q=>{let N={};return q&&typeof q=="object"?N={...q,textStyle:{fontSize:p.value}}:N={value:q,textStyle:{fontSize:p.value}},N}),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},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:r.unref(S),series:r.unref(f)})),{pageMode:h}=r.inject(Be,{pageMode:"normal"}),g=()=>{o.value=!1},x=(q=[],N=!1)=>{let L;if(e.dataFieldConfigType==="key"){const P=N?e.keyTypeDataFieldNames:null;L=St(q,P)}else if(e.dataFieldConfigType==="value"){const P=N?e.valueTypeDataFieldNames:null;L=Dt(q,P)}c.value=L.dimensions;const H=L.dataset,D=[],O=H.length,M=e.seriesTypes;for(let P=0;P<O;P++){const Y=M[P],{type:Z,axisIndex:X}=Y||{};let G={type:Z,yAxisIndex:X,...H[P]};if(Z==="line"&&(G={...G,symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[P]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[P],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}}),Z==="bar"){const pe={};if(e.barBorderRadius){const _e=e.barBorderRadius.split(",");if(_e!=null&&_e.length){const Qe=[];for(const Ge of _e){const ke=parseFloat(Ge);isNaN(ke)||Qe.push(ke)}pe.borderRadius=Qe}}G={...G,barWidth:e.barWidth,itemStyle:pe}}D.push(G)}f.value=D},y=(q=[],N,L=!1)=>{const D=St(q,L?N:null);c.value=D.dimensions;const O=D.dataset,M=[],P=O.length,Y=e.seriesTypes;for(let Z=0;Z<P;Z++){const X=Y[Z];M.push({type:X==null?void 0:X.type,yAxisIndex:X==null?void 0:X.axisIndex,...O[Z]})}f.value=M};r.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor],([q])=>{(e.dataType==="static"||r.unref(h)==="design")&&x(q)},{immediate:!0,deep:!0});const S=r.computed(()=>{const q=e.yAxis;return q==null?void 0:q.map(N=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:p.value,color:e.yAxisLabelColor,formatter(L){return it(N.axisLabelFormatter,L)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),m=r.ref(!1),b=ze(e),v=async()=>{var q,N;if(e.dataType==="request")try{m.value=!0;const L=await b();x((N=(q=L==null?void 0:L.data)==null?void 0:q.data)==null?void 0:N.rows,!0)}catch(L){console.error(L)}finally{m.value=!1}},_=It(e),w=async()=>{var q;try{m.value=!0;const N=await _(),{columns:L=[],rows:H=[]}=((q=N==null?void 0:N.data)==null?void 0:q.data)??{};let D;L.length>0&&(D={name:L[0],types:L.slice(1).map(O=>({label:O,value:O}))}),y(H,D,!0)}catch(N){console.error(N)}finally{m.value=!1}},k=()=>{switch(e.dataType){case"indicator":w();break;case"request":v();break}},A=(q,N)=>!!r.unref(l)[N.value].value.includes(q),E=async()=>{a.value=!1;const q=t.value.chart.getOption();for(let N=0;N<7;N++)await C(q,N)},C=(q,N)=>new Promise(L=>{setTimeout(()=>{const{series:H,color:D,xAxis:O}=q,M=t.value.chart,{splitArea:P={}}=O[0]||{};H.forEach((Y,Z)=>{const X=Y.data;let G="";N%2?G=D[Z]+"a8":G=D[Z],X[i.value].itemStyle={color:G}}),N%2?(P.show=!0,P.areaStyle.color=r.unref(l).map((Y,Z)=>Z===i.value?"#ff003b26":"")):P.show=!1,M.setOption({series:H,xAxis:O}),L()},200)});n({refreshData:k});const T=ye(e),{getGlobalModel:R,setGlobalModel:B}=r.inject(we,{getGlobalModel:q=>{},setGlobalModel:(q,N)=>{}}),F=T("click",q=>{const N=R(e.id);B(e.id,{...N,RECORD:q==null?void 0:q.data})}),{setRequest:I}=r.inject(De,{setRequest:q=>{}});return typeof I=="function"&&I({id:e.id,requestFn:k,sortNum:e.requestSort}),be(e,{resetRecord:()=>{const q=e.id,N=R(q);B(q,{...N,RECORD:""})},refreshData:k,click:F}),{style:s,option:u,click:F,loading:m,onClose:g,ecanModal:d,echartRef:t,handleLocationOk:E,onFilterOption:A,locationVisible:a,locationValue:i,locationNames:l}}}),jd="",Ud="",Rc=e=>(r.pushScopeId("data-v-8a8fae05"),e=e(),r.popScopeId(),e),Ic={class:"location-wrap"},Lc=Rc(()=>r.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Oc(e,n,t,o,a,i){const l=r.resolveComponent("echarts"),s=r.resolveComponent("spin"),f=r.resolveComponent("ecan-modal"),c=r.resolveComponent("a-select-option"),d=r.resolveComponent("a-select"),p=r.resolveComponent("a-modal");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(e.style)},[r.createVNode(s,{spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),r.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:r.withCtx(()=>[r.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:r.withCtx(()=>[r.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),r.createVNode(p,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:r.withCtx(()=>[r.createElementVNode("div",Ic,[Lc,r.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:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.locationNames,(u,h)=>(r.openBlock(),r.createBlock(c,{key:h,value:h},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Sa=ce(se(Dc,[["render",Oc],["__scopeId","data-v-8a8fae05"]])),Go={...he,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5px",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{}},Wo=fe(Go),wa=["click"],Nc=r.defineComponent({name:"EcanBorder",props:{...Wo},setup(e){const n=ue(e,["background"]),{theme:t}=r.inject(Be,{theme:"light"}),o=r.computed(()=>({width:"100%",height:"100%"})),i=ye(e)("click",()=>{}),l=r.ref([]);r.watch(()=>e.data,f=>{l.value=f},{immediate:!0,deep:!0}),be(e,{click:i});const{setGlobalModel:s}=r.inject(we,{setGlobalModel:(f,c)=>{}});return s(e.id,{type:e.type,value:l}),{style:n,click:i,borderStyle:o,theme:t}}}),Pc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",zc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Wd="",qe=e=>(r.pushScopeId("data-v-1550b11b"),e=e(),r.popScopeId(),e),Mc=qe(()=>r.createElementVNode("div",{class:"top-left border-item"},null,-1)),Fc=qe(()=>r.createElementVNode("div",{class:"top-right border-item"},null,-1)),Vc=qe(()=>r.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),qc=qe(()=>r.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Hc={class:"title-item-wrapper"},$c={class:"title-item"},jc=qe(()=>r.createElementVNode("img",{class:"title-decoration-left",src:Pc},null,-1)),Uc={class:"title"},Gc=qe(()=>r.createElementVNode("img",{class:"title-decoration-right",src:zc},null,-1)),Wc=qe(()=>r.createElementVNode("div",{class:"top-left border-item"},null,-1)),Zc=qe(()=>r.createElementVNode("div",{class:"top-right border-item"},null,-1)),Kc=qe(()=>r.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Yc=qe(()=>r.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Xc={key:2,class:"left-title"},Jc={class:"title"};function Qc(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",{class:"ecan-border",style:r.normalizeStyle(e.style),onClick:n[0]||(n[0]=(...l)=>e.click&&e.click(...l))},[e.mode==="no-title"?(r.openBlock(),r.createElementBlock("div",{key:0,class:"no-title",style:r.normalizeStyle(e.borderStyle)},[e.useBorderModify?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[Mc,Fc,Vc,qc],64)):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0),e.mode==="top-title"?(r.openBlock(),r.createElementBlock("div",{key:1,class:"top-title",style:r.normalizeStyle(e.borderStyle)},[r.createElementVNode("div",Hc,[r.createElementVNode("div",$c,[jc,r.createElementVNode("div",Uc,r.toDisplayString(e.title),1),Gc])]),Wc,Zc,Kc,Yc],4)):r.createCommentVNode("",!0),e.mode==="left-title"?(r.openBlock(),r.createElementBlock("div",Xc,[r.createElementVNode("div",Jc,[r.createElementVNode("span",null,r.toDisplayString(e.title),1)])])):r.createCommentVNode("",!0)],4)}const Ca=ce(se(Nc,[["render",Qc],["__scopeId","data-v-1550b11b"]])),Zo={...he,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"},Ko=fe(Zo),ka=["tabChange"],ef=r.defineComponent({name:"EcanTabs",props:{...Ko},setup(e){const n=ue(e),t=r.ref(0);r.watch(()=>e.activeKey,h=>{t.value=h},{immediate:!0});const{pageMode:o}=r.inject(Be,{pageMode:"normal"});let a=null;const i=()=>{const h=Array.isArray(r.unref(l))?r.unref(l).length-1:0;e.autoSwitch&&h>0&&(a=setInterval(()=>{const g=r.unref(t)+1;g<=h?t.value=g:t.value=0,s.value=r.unref(l)[r.unref(t)],p()},e.autoSwitchInterval*1e3))};r.onMounted(()=>{r.unref(o)!=="design"&&i()}),r.onBeforeUnmount(()=>{clearInterval(a)});const l=r.ref([]),s=r.ref({});r.watch(()=>e.data,h=>{l.value=h,s.value=Array.isArray(h)&&h.length>0?h[0]:{}},{immediate:!0,deep:!0});const f=h=>t.value===h,c=ye(e),{setGlobalModel:d}=r.inject(we,{setGlobalModel:(h,g)=>{}});d(e.id,{value:s,activeKey:t});const{emitRefreshPage:p}=r.inject(Bt,{emitRefreshPage:()=>{}}),u=c("tabChange",(h,g)=>{g!==r.unref(t)&&(s.value=h,t.value=g,p())});return be(e,{tabChange:u}),{style:n,activeKey:t,isActive:f,tabChange:u,myData:l,useImagePath:at}}}),Kd="",tf=["onClick"];function nf(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",{class:"ecan-tabs",style:r.normalizeStyle(e.style)},[r.createElementVNode("div",{class:"tabs-header",style:r.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.myData,(l,s)=>(r.openBlock(),r.createElementBlock("div",{class:"tab",style:r.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(s)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(s)?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:s,onClick:r.withModifiers(f=>e.tabChange(l,s),["prevent","stop"])},[r.createElementVNode("div",{class:"tab-inner",style:r.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(s)?e.activeTabColor:"transparent"}`:""})},r.toDisplayString(l.title),5)],12,tf))),128))],4)],4)}const _a=ce(se(ef,[["render",nf],["__scopeId","data-v-a2045b93"]])),Yo={...he,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},Xo=fe(Yo),of=r.defineComponent({name:"EcanImage",props:{...Xo},setup(e){const n=ue(e),t=r.computed(()=>at(e.imgUrl)),{pageMode:o}=r.inject(Be,{pageMode:"normal"});return{style:n,myImgUrl:t,onClick:()=>{if(!e.linkPage&&!e.href)return;const i=e.linkPage||"",l=O0(r.unref(o),i),s=e.href;let f=s||l;f=ve(f);const c=e.target;c&&(c!=="event"?window.open(f,"_"+c):window.parent.postMessage({type:"openPage",url:s},"*"))}}}}),Xd="",rf=["src"];function af(e,n,t,o,a,i){return e.myImgUrl!==""?(r.openBlock(),r.createElementBlock("img",{key:0,style:r.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=(...l)=>e.onClick&&e.onClick(...l))},null,12,rf)):(r.openBlock(),r.createElementBlock("div",{key:1,class:"image-placeholder",style:r.normalizeStyle(e.style)}," 请上传图片 ",4))}const Aa=ce(se(of,[["render",af],["__scopeId","data-v-ef7a7bee"]])),Jo={...he,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Qo=fe(Jo),sf=r.defineComponent({name:"EcanIframe",props:{...Qo},setup(e){const n=ue(e),{contextRequestUrl:t}=r.inject(Be,{contextRequestUrl:""}),o=r.computed(()=>{let a=ve(e.link);if(e.linkType==="erd"&&a!=null){let i=r.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",a=`${vs||i}?_t=0&uid=${a}`}return a});return{style:n,myLink:o}}}),Qd="",lf=["src"];function cf(e,n,t,o,a,i){return e.myLink?(r.openBlock(),r.createElementBlock("iframe",{key:0,src:e.myLink,style:r.normalizeStyle(e.style)},null,12,lf)):(r.openBlock(),r.createElementBlock("div",{key:1,class:"iframe-placeholder",style:r.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Ea=ce(se(sf,[["render",cf],["__scopeId","data-v-19bc100c"]])),er={...he,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:{}},tr=fe(er),Ta=["click","refreshData","resetRecord","exportTableData"],nr=r.defineComponent({name:"EcanTable",components:{Skeleton:Vt,AButton:ae.Button,AInput:ae.Input,ACheckboxGroup:ae.CheckboxGroup,ATable:ae.Table,ATableSummary:ae.TableSummary,ATableSummaryRow:ae.TableSummaryRow,ATableSummaryCell:ae.TableSummaryCell},props:{...tr},setup(e,{expose:n}){const t=r.ref(),o=r.ref(!1),a=ue(e),i=r.computed(()=>{if(e.paginationShow)switch(e.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(e.size){case"small":return 40;case"middle":return 47;default:return 55}}),l=r.computed(()=>e.scrollX),s=r.computed(()=>parseFloat(e.height)-r.unref(i)),f=r.ref([]),c=r.ref([]),d=r.ref([]),p=r.ref([]),u=r.ref(0),h=r.ref(1),g=r.ref(e.paginationPageSize||10),x=r.reactive([]),y=(j=[])=>{if(Array.isArray(j)&&j.length>0){const U=j.length,K=e.columnsFixedNum;for(let Q=0;Q<U;Q++){const W=j[Q];Q<K?W.fixed="left":W.fixed=!1;const{cellAlign:ne="center",cellColor:ee,dataIndex:ie,title:le,tableFilter:de,headerCellAlign:Te,headerCellColor:Se}=W;de&&(x.push(ie),W.filterOptionsInputValue="",W.filterCheckboxGroupValue=[],W.customFilterDropdown=!0,W.onFilter=(Ve,Ct)=>Ct[ie].toString().toLowerCase().includes(Ve.toLowerCase())),W.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Te||"center",color:Se,borderBottomColor:e.borderColor}}),W.customCell=(Ve,Ct)=>({style:{textAlign:ne,color:ee,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:r.unref(H)===Ct&&e.clickHighlight},onClick:F("click",()=>{const Ot=e.id,et=I(Ot);Ve={dataIndex:ie,title:le,...Ve},$(Ot,{...et,RECORD:Ve})})}),Array.isArray(W.children)&&y(W.children)}}},S=(j=[])=>(e.isUseSeq&&j.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&j.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),y(j),j);r.watch(g,()=>{h.value=1,O(!1)}),r.watch(t,j=>{o.value=!!j}),r.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor],()=>{f.value=S($e.cloneDeep(e.columns))},{immediate:!0,deep:!0}),r.watch(()=>[e.data,e.dataType],([j,U])=>{U==="static"&&(c.value=j)},{immediate:!0});const m=r.ref({}),b=j=>{if(Array.isArray(j)){const U=j.length,K=x,Q=K.length,W={};for(let ee=0;ee<U;ee++){const ie=j[ee];for(let le=0;le<Q;le++){const de=K[le];if(W[de])W[de].add(ie[de]);else{const Te=new Set;Te.add(ie[de]),W[de]=Te}}}const ne={};for(const ee in W)if(Object.prototype.hasOwnProperty.call(W,ee)){const ie=W[ee],le=Array.from(ie);ne[ee]=le.map(de=>({label:de,value:de}))}m.value=ne}};r.watch(()=>[e.isReverse,f.value,c.value],()=>{const j=r.unref(f),U=r.unref(c);if(b(U),e.isReverse){const{columns:K,dataSource:Q}=v($e.cloneDeep(j),$e.cloneDeep(U));d.value=K,p.value=Q}else d.value=j,p.value=U},{immediate:!0});const v=(j,U)=>{const K=j[0],Q=[{title:K.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ne=0;ne<U.length;ne++){const ee=U[ne],ie="col"+(ne+1);Q.push({title:ee[K.dataIndex],dataIndex:ie,key:ie,align:"center"})}const W=[];for(let ne=1;ne<j.length;ne++){const ee=j[ne],ie={col0:ee.title};for(let le=0;le<U.length;le++){const de=U[le];ie[`col${le+1}`]=de[ee.dataIndex]}W.push(ie)}return{columns:Q,dataSource:W}},_=r.ref(""),w=ze(e),k=r.ref(!1),A=async(j=!0,U={})=>{var K;try{j&&(k.value=!0),r.unref(_)&&(U.orderCondition=r.unref(_)),e.paginationShow&&(U={pageNum:r.unref(h),pageSize:r.unref(g)||"10",layer:"1",...U});const Q=await w(U),{rows:W=[],total:ne=0}=((K=Q==null?void 0:Q.data)==null?void 0:K.data)||{};if(u.value=ne,Array.isArray(W)&&(c.value=W),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ee=[]}=e,ie=ee.find(le=>le.key==="dataSqlId");if((ie==null?void 0:ie.value)==="xt_jxzebg"){const le=W.filter(de=>!de.绩效总额).map(de=>de.ORG_NAME);le!=null&&le.length&&r.nextTick(()=>{ae.notification.warning({message:"提示",description:`当前时段${le.join("、")}绩效数据为空`,duration:3})})}}}catch(Q){console.error(Q)}finally{k.value=!1}},E=({current:j},U,K)=>{if(h.value=j,K&&Object.keys(K).length>0){const{field:Q,order:W}=K,ee={ascend:"asc",descend:"desc"}[W];Q!=null&&ee!=null&&(_.value=Q+" "+ee,h.value=1)}O(!1)},C=r.computed(()=>{const j=e.simple,U=[e.paginationPosition];return e.paginationShow&&{simple:j,position:U,total:r.unref(u),current:r.unref(h),pageSize:r.unref(g)||"10",showSizeChanger:!1}}),T=j=>+j==1?"是":+j==0?"否":j,R=(j,U)=>U==null||U===""?j:{money:ao,percentage:Xt,contrast:Xt,boolean:T}[U](j)||"",B=(j,U)=>{const K=parseFloat(j+"");if(U!=="contrast")return"";switch(!0){case K>=0:return"goUp";case K<0:return"goDown"}},F=ye(e),{getGlobalModel:I,setGlobalModel:$}=r.inject(we,{getGlobalModel:j=>{},setGlobalModel:(j,U)=>{}}),q=(j=[],U=[])=>{const K=j.map(Q=>({title:Q,dataIndex:Q,key:Q}));f.value=S(K),c.value=U},N=It(e),L=async()=>{var j,U,K,Q;try{k.value=!0;const W=await N();q((U=(j=W==null?void 0:W.data)==null?void 0:j.data)==null?void 0:U.columns,(Q=(K=W==null?void 0:W.data)==null?void 0:K.data)==null?void 0:Q.rows)}catch(W){console.error(W)}finally{k.value=!1}},H=r.ref(-1),D=(j,U)=>({onClick:F("rowClick",()=>{const K=e.id,Q=I(K);$(K,{...Q,RECORD:j}),H.value=U})}),O=(j=!0)=>{switch(e.dataType){case"request":A(j);break;case"indicator":L();break}},M=()=>{const j=e.id,U=I(j);$(j,{...U,RECORD:""})},P=r.computed(()=>{const j=r.unref(d),U=[];let K=0;for(let W=0;W<j.length;W++){const ne=j[W],{isCalcTotal:ee}=ne;e.isUseSeq&&W===0?U.push({...ne,total:"小计"}):ee?(U.push({...ne,index:W,total:0}),K++):U.push({...ne})}if(K===0)return[];const Q=r.unref(p);for(let W=0;W<U.length;W++){const ne=U[W];let ee=0;const{isCalcTotal:ie,dataIndex:le}=ne;if(ie===!0){for(let de=0;de<Q.length;de++){const Se=+Q[de][le];isNaN(Se)||(ee=new Ya.Big(ee).add(Se).toNumber())}ne.total=ee}}return U}),{setRequest:Y}=r.inject(De,{setRequest:j=>{}});typeof Y=="function"&&Y({id:e.id,requestFn:O,sortNum:e.requestSort}),n({refreshData:O});const Z=(j="",U)=>ve(j,U),X=j=>{if(j!=="event")return{self:"_self",blank:"_blank"}[j]},G=(j,U="")=>{j==="event"&&window.parent.postMessage({type:"openPage",url:U},"*")},pe=(j,U)=>{j(U.filterCheckboxGroupValue)},_e=(j,U)=>{j({confirm:!0}),U.filterOptionsInputValue="",U.filterCheckboxGroupValue=[]},Qe=()=>{},Ge=j=>{const U=j.dataIndex;if(typeof U=="string"){let K=r.unref(m)[U];const Q=r.unref(j.filterOptionsInputValue).trim();return Array.isArray(K)?(K=K.filter(W=>typeof W.label=="string"?W.label.toLowerCase().includes(Q.toLowerCase()):!0),K):[]}return[]},ke=async()=>{var de,Te;const j="EXPORT_KEY";ae.message.loading({key:j,content:"正在导出...",duration:0});let U=[];if(e.dataType==="static")U=e.data;else if(e.dataType==="request"){const Se={layer:"1"};r.unref(_)&&(Se.orderCondition=r.unref(_));const Ve=await w(Se);U=((Te=(de=Ve==null?void 0:Ve.data)==null?void 0:de.data)==null?void 0:Te.rows)||{}}const K=r.unref(d),Q=[],W=[];K==null||K.forEach(Se=>{Q.push(Se.dataIndex),W.push(Se.title)});const ne=U.map(Se=>$e.pick(Se,Q)),ee=kt.utils.book_new(),ie=kt.utils.aoa_to_sheet([W]),le=kt.utils.sheet_add_json(ie,ne,{skipHeader:!0,origin:"A2"});kt.utils.book_append_sheet(ee,le,"sheet"),kt.writeFile(ee,"表格数据.xlsx"),ae.message.success({key:j,content:"导出成功"})},Ee=(j,U=2)=>{const K=+j*100;return isNaN(K)||K<=0?0:K>=100?100:K.toFixed(U)};be(e,{resetRecord:M,refreshData:O,exportTableData:ke});const wt=r.computed(()=>e.headerBackgroundColor||"#fafafa");return{x:l,y:s,style:a,customRow:D,pagination:C,formatFn:R,contrastClass:B,tableChange:E,summaryList:P,loading:k,onTouchHrefEvent:G,handleHref:Z,handleHrefTarget:X,useRowIndex:H,tableColumns:d,tableDataSource:p,useFilterOptions:Ge,useSetSelectedKeys:pe,onResetFilter:_e,onSearchFilterOptions:Qe,exportTableData:ke,handleProgressText:Ee,pageSizeVisible:o,pageSize:g,tableRef:t,headerBgColor:wt}}}),Ba=()=>{r.useCssVars(e=>({e311f51e:e.headerBgColor}))},Da=nr.setup;nr.setup=Da?(e,n)=>(Ba(),Da(e,n)):Ba;const t1="",n1="",ff=["id"],df={key:0,class:"table-tool"},uf=r.createTextVNode("导出数据"),hf=r.createTextVNode(" 搜索 "),xf=r.createTextVNode(" 重置 "),gf={key:0},mf={key:1,class:"action-list"},pf=["href","target","onClick"],yf={key:2,class:"progress-cell"},vf={class:"ant-pagination-options-quick-jumper"},bf=r.createTextVNode(" 条 / 页 ");function Sf(e,n,t,o,a,i){const l=r.resolveComponent("a-button"),s=r.resolveComponent("a-input"),f=r.resolveComponent("a-checkbox-group"),c=r.resolveComponent("a-table-summary-cell"),d=r.resolveComponent("a-table-summary-row"),p=r.resolveComponent("a-table-summary"),u=r.resolveComponent("a-table"),h=r.resolveComponent("skeleton");return r.openBlock(),r.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:r.normalizeStyle(e.style)},[r.createVNode(h,{loading:e.loading},{default:r.withCtx(()=>{var g;return[e.isUseExport?(r.openBlock(),r.createElementBlock("div",df,[r.createVNode(l,{class:"export-button",onClick:e.exportTableData},{default:r.withCtx(()=>[uf]),_:1},8,["onClick"])])):r.createCommentVNode("",!0),r.createVNode(u,{ref:"tableRef",class:"table",style:{height:"100%"},columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:{x:e.x,y:e.y},pagination:e.pagination,onChange:e.tableChange},{customFilterDropdown:r.withCtx(({column:x,selectedKeys:y,setSelectedKeys:S,confirm:m,clearFilters:b})=>[r.createElementVNode("div",{class:"ecan-table-filter",style:r.normalizeStyle({height:e.filterDropdownHeight})},[r.createVNode(s,{value:x.filterOptionsInputValue,"onUpdate:value":v=>x.filterOptionsInputValue=v,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),r.createVNode(f,{value:x.filterCheckboxGroupValue,"onUpdate:value":v=>x.filterCheckboxGroupValue=v,class:"filter-checkbox",options:e.useFilterOptions(x),onChange:v=>e.useSetSelectedKeys(S,x)},null,8,["value","onUpdate:value","options","onChange"]),r.createElementVNode("div",null,[r.createVNode(l,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>m()},{default:r.withCtx(()=>[hf]),_:2},1032,["onClick"]),r.createVNode(l,{size:"small",style:{width:"90px"},onClick:r.withModifiers(v=>e.onResetFilter(b,x),["stop"])},{default:r.withCtx(()=>[xf]),_:2},1032,["onClick"])])],4)]),bodyCell:r.withCtx(({column:x,index:y,text:S,record:m})=>[x.dataIndex==="SEQ"?(r.openBlock(),r.createElementBlock("span",gf,r.toDisplayString(y+1),1)):x.dataIndex==="ACTION"?(r.openBlock(),r.createElementBlock("div",mf,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.actionList,(b,v)=>(r.openBlock(),r.createElementBlock("div",{class:"action",key:v},[r.createElementVNode("a",{href:e.handleHref(b.href,m),target:e.handleHrefTarget(b.target),style:r.normalizeStyle({color:b.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:_=>e.onTouchHrefEvent(b.target,e.handleHref(b.href,m))},r.toDisplayString(b.title),13,pf)]))),128))])):x.format==="progress"?(r.openBlock(),r.createElementBlock("div",yf,[r.createElementVNode("div",{class:"progress",style:r.normalizeStyle({background:x.progressColor||"#1890ff",height:x.progressWidth||"18px",width:`${e.handleProgressText(S,x.progressTextDecimalPlaces)}%`})},null,4),r.createElementVNode("div",{class:"progress-text",style:r.normalizeStyle({color:e.handleProgressText(S)<100?x.progressTextColor||"#333":x.progressFinishedTextColor||"#fff"})},r.toDisplayString(e.handleProgressText(S,x.progressTextDecimalPlaces))+"% ",5)])):(r.openBlock(),r.createElementBlock("div",{key:3,class:r.normalizeClass([e.contrastClass(S,x.format)]),style:r.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},r.toDisplayString(x.format!=null?e.formatFn(S,x.format):S),7))]),summary:r.withCtx(()=>[e.summaryList.length>0?(r.openBlock(),r.createBlock(p,{key:0},{default:r.withCtx(()=>[r.createVNode(d,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.summaryList,(x,y)=>(r.openBlock(),r.createBlock(c,{key:y,index:y,style:r.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:x.cellAlign||"center",color:x.cellColor,borderBottomColor:e.borderColor})},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([e.contrastClass(x.total,x.format)]),style:r.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},r.toDisplayString((x.format!=null||x.format!=="")&&e.formatFn(x.total,x.format)),7)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})):r.createCommentVNode("",!0)]),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","onChange"]),(g=e.tableDataSource)!=null&&g.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(r.openBlock(),r.createBlock(r.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[r.createElementVNode("div",vf,[r.withDirectives(r.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=x=>e.pageSize=x)},null,512),[[r.vModelText,e.pageSize]]),bf])],8,["to"])):r.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,ff)}const Ra=ce(se(nr,[["render",Sf],["__scopeId","data-v-e32b44f2"]])),or={...he,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:"{b}"},rr=fe(or);He.use([lt.CanvasRenderer,We.MapChart,We.ScatterChart,xe.VisualMapComponent,xe.TooltipComponent,xe.GraphicComponent]);const wf=r.defineComponent({name:"EcanMap",components:{Echarts:nt},props:{...rr},setup(e){const n=ue(e,["backgroundImage"]),t=r.ref(),o=r.computed(()=>at(e.geoBackgroundImage)),a=r.computed(()=>at(e.backgroundImage)),i=r.computed(()=>e.geoBackgroundImage?{image:r.unref(t),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),l=r.computed(()=>{const d=e.symbolImage;return e.symbolImage?"image://"+at(d):"circle"}),s=r.computed(()=>{const d=e.geoCenter;let p;return typeof d=="string"&&d!==""&&(p=d.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:r.unref(a)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:p,map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:r.unref(i),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:r.unref(l),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,formatter:e.tooltipFormatter,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),f=r.ref(!1),c=async()=>{var p;const d=e.mapJson;if(d!=null&&d.path){const u=await Je(((p=window==null?void 0:window.config)==null?void 0:p.uploadPath)+d.path);He.registerMap("map",(u==null?void 0:u.data)||{})}f.value=!0};return r.watch(()=>e.mapJson,()=>{c()},{immediate:!0,deep:!0}),{option:s,style:n,isLoadedData:f,geoBackgroundImageRef:t,myGeoBackgroundImage:o}}}),r1="",Cf=["src"];function kf(e,n,t,o,a,i){const l=r.resolveComponent("echarts");return r.openBlock(),r.createElementBlock("div",{class:"ecan-map",style:r.normalizeStyle(e.style)},[e.isLoadedData?(r.openBlock(),r.createBlock(l,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,Cf),[[r.vShow,!1]])],4)}const Ia=ce(se(wf,[["render",kf],["__scopeId","data-v-1fb5cdee"]])),La=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:ma,EcanBorder:Ca,EcanButton:oa,EcanCheckbox:aa,EcanComboGraph:Sa,EcanCustomGraph:va,EcanDatePicker:Q0,EcanIframe:Ea,EcanImage:Aa,EcanInput:X0,EcanLine:xa,EcanList:W0,EcanMap:Ia,EcanModal:st,EcanPageConfig:N0,EcanPie:ua,EcanProportion:K0,EcanProviderConfig:P0,EcanRangePicker:ta,EcanScatter:ya,EcanScrollText:$0,EcanSelect:sa,EcanTable:Ra,EcanTabs:_a,EcanText:H0,EcanTimeDisplay:U0,EcanTreeSelect:ca,barComponentProps:Fo,barEvents:ga,barProps:Mo,borderComponentProps:Wo,borderEvents:wa,borderProps:Go,buttonComponentProps:_o,buttonEvents:na,buttonProps:ko,checkboxComponentProps:Eo,checkboxEvents:ra,checkboxProps:Ao,comboGraphComponentProps:Uo,comboGraphEvents:ba,comboGraphProps:jo,customGraphComponentProps:$o,customGraphProps:Ho,datePickerComponentProps:So,datePickerEvents:J0,datePickerProps:bo,iframeComponentProps:Qo,iframeProps:Jo,imageComponentProps:Xo,imageProps:Yo,inputComponentProps:vo,inputEvents:Y0,inputProps:yo,lineComponentProps:zo,lineEvents:ha,lineProps:Po,listComponentProps:go,listEvents:G0,listProps:xo,mapComponentProps:rr,mapProps:or,modalComponentProps:No,modalEvents:da,modalProps:Oo,pageConfig:xn,pageConfigComponentProps:gn,pieComponentProps:Lo,pieEvents:fa,pieProps:Io,proportionComponentProps:po,proportionEvents:Z0,proportionProps:mo,providerConfig:io,providerConfigComponentProps:so,rangePickerComponentProps:Co,rangePickerEvents:ea,rangePickerProps:wo,scatterComponentProps:qo,scatterEvents:pa,scatterProps:Vo,selectComponentProps:Bo,selectEvents:ia,selectProps:To,tableComponentProps:tr,tableEvents:Ta,tableProps:er,tabsComponentProps:Ko,tabsEvents:ka,tabsProps:Zo,textComponentProps:co,textEvents:z0,textProps:lo,timeDisplayComponentProps:ho,timeDisplayEvents:j0,timeDisplayProps:uo,treeSelectComponentProps:Ro,treeSelectEvents:la,treeSelectProps:Do},Symbol.toStringTag,{value:"Module"})),_f={install:e=>{Object.keys(La).forEach(n=>{const t=La[n];t.install&&e.use(t)})}};z.EcanBar=ma,z.EcanBorder=Ca,z.EcanButton=oa,z.EcanCheckbox=aa,z.EcanComboGraph=Sa,z.EcanCustomGraph=va,z.EcanDatePicker=Q0,z.EcanIframe=Ea,z.EcanImage=Aa,z.EcanInput=X0,z.EcanLine=xa,z.EcanList=W0,z.EcanMap=Ia,z.EcanModal=st,z.EcanPageConfig=N0,z.EcanPie=ua,z.EcanProportion=K0,z.EcanProviderConfig=P0,z.EcanRangePicker=ta,z.EcanScatter=ya,z.EcanScrollText=$0,z.EcanSelect=sa,z.EcanTable=Ra,z.EcanTabs=_a,z.EcanText=H0,z.EcanTimeDisplay=U0,z.EcanTreeSelect=ca,z.barComponentProps=Fo,z.barEvents=ga,z.barProps=Mo,z.borderComponentProps=Wo,z.borderEvents=wa,z.borderProps=Go,z.buttonComponentProps=_o,z.buttonEvents=na,z.buttonProps=ko,z.checkboxComponentProps=Eo,z.checkboxEvents=ra,z.checkboxProps=Ao,z.comboGraphComponentProps=Uo,z.comboGraphEvents=ba,z.comboGraphProps=jo,z.customGraphComponentProps=$o,z.customGraphProps=Ho,z.datePickerComponentProps=So,z.datePickerEvents=J0,z.datePickerProps=bo,z.default=_f,z.iframeComponentProps=Qo,z.iframeProps=Jo,z.imageComponentProps=Xo,z.imageProps=Yo,z.inputComponentProps=vo,z.inputEvents=Y0,z.inputProps=yo,z.lineComponentProps=zo,z.lineEvents=ha,z.lineProps=Po,z.listComponentProps=go,z.listEvents=G0,z.listProps=xo,z.mapComponentProps=rr,z.mapProps=or,z.modalComponentProps=No,z.modalEvents=da,z.modalProps=Oo,z.pageConfig=xn,z.pageConfigComponentProps=gn,z.pieComponentProps=Lo,z.pieEvents=fa,z.pieProps=Io,z.proportionComponentProps=po,z.proportionEvents=Z0,z.proportionProps=mo,z.providerConfig=io,z.providerConfigComponentProps=so,z.rangePickerComponentProps=Co,z.rangePickerEvents=ea,z.rangePickerProps=wo,z.scatterComponentProps=qo,z.scatterEvents=pa,z.scatterProps=Vo,z.selectComponentProps=Bo,z.selectEvents=ia,z.selectProps=To,z.tableComponentProps=tr,z.tableEvents=Ta,z.tableProps=er,z.tabsComponentProps=Ko,z.tabsEvents=ka,z.tabsProps=Zo,z.textComponentProps=co,z.textEvents=z0,z.textProps=lo,z.timeDisplayComponentProps=ho,z.timeDisplayEvents=j0,z.timeDisplayProps=uo,z.treeSelectComponentProps=Ro,z.treeSelectEvents=la,z.treeSelectProps=Do,Object.defineProperties(z,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
118
118
  //# sourceMappingURL=index.umd.js.map